Skip to content

Commit

Permalink
Move nft-related things from models to helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
chiliec committed Aug 10, 2024
1 parent e563822 commit c36d41f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/bot/features/admin/collection.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Composer } from "grammy"
import type { Context } from "#root/bot/context.js"
import { logHandle } from "#root/bot/helpers/logging.js"
import { NftCollection } from "#root/bot/models/nft-collection.js"
import { NftCollection } from "#root/bot/helpers/nft-collection.js"
import { config } from "#root/config.js"
import { chatAction } from "@grammyjs/auto-chat-action"
import { openWallet, waitSeqno } from "#root/bot/helpers/ton.js"
Expand Down
4 changes: 2 additions & 2 deletions src/bot/features/admin/queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import { Address, toNano } from "@ton/core"
import { PhotoSize } from "@grammyjs/types"
import { changeImageData } from "#root/bot/callback-data/image-selection.js"
import { SelectImageButton, photoKeyboard } from "#root/bot/keyboards/photo.js"
import { NftCollection } from "#root/bot/models/nft-collection.js"
import { NFTMintParameters, NftItem } from "#root/bot/models/nft-item.js"
import { NftCollection } from "#root/bot/helpers/nft-collection.js"
import { NFTMintParameters, NftItem } from "#root/bot/helpers/nft-item.js"
import {
pinImageURLToIPFS,
pinJSONToIPFS,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
} from "#root/bot/helpers/ton.js"
import { config } from "#root/config.js"
import { logger } from "#root/logger"
import { OpenedWallet } from "../helpers/wallet"
import { OpenedWallet } from "#root/bot/helpers/wallet.js"

export type collectionData = {
ownerAddress: Address
Expand Down
6 changes: 3 additions & 3 deletions src/bot/models/nft-item.ts → src/bot/helpers/nft-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
import { Address, beginCell, Cell, internal, SendMode, toNano } from "@ton/core"
import { OpenedWallet } from "#root/bot/helpers/wallet.js"
import { config } from "#root/config.js"
import { logger } from "#root/logger"
import { openWallet, sleep, waitSeqno } from "../helpers/ton"
import { NftCollection } from "./nft-collection"
import { logger } from "#root/logger.js"
import { NftCollection } from "#root/bot/helpers/nft-collection.js"
import { openWallet, sleep, waitSeqno } from "#root/bot/helpers/ton.js"

export type NFTMintParameters = {
queryId: number
Expand Down

0 comments on commit c36d41f

Please sign in to comment.