import { BN, Idl, Program, web3 } from '@project-serum/anchor'; import { AnchorWallet } from '@solana/wallet-adapter-react'; import { CandyShopVersion } from '../../shop/base/BaseShopModel'; import { Creator } from '../../factory/conveyor/sol/parseData'; /** * Get NodeWallet from specified keypair * * @param {Keypair} wallet keypair wallet will be created for * @returns */ export declare const getNodeWallet: (wallet: web3.Keypair) => any; export declare const getCandyShopVersion: (shopProgramId: web3.PublicKey) => CandyShopVersion; /** * Gets anchor Program object for Candy Shop program * * @param {AnchorWallet | web3.Keypair} wallet Wallet or keypair of connected user */ export declare const getProgram: (connection: web3.Connection, candyShopProgramId: web3.PublicKey, wallet: AnchorWallet | web3.Keypair) => Program; export declare const getAuction: (candyShop: web3.PublicKey, mint: web3.PublicKey, marketProgramId: web3.PublicKey) => Promise<[web3.PublicKey, number]>; export declare const getBid: (auction: web3.PublicKey, wallet: web3.PublicKey, marketProgramId: web3.PublicKey) => Promise<[web3.PublicKey, number]>; export declare const getBidWallet: (auction: web3.PublicKey, wallet: web3.PublicKey, marketProgramId: web3.PublicKey) => Promise<[web3.PublicKey, number]>; export declare const getAuctionHouse: (authority: web3.PublicKey, treasuryMint: web3.PublicKey) => Promise<[web3.PublicKey, number]>; export declare const getAuctionHouseAuthority: (creator: web3.PublicKey, treasuryMint: web3.PublicKey, marketProgramId: web3.PublicKey) => Promise<[web3.PublicKey, number]>; export declare const getCandyShop: (creator: web3.PublicKey, treasuryMint: web3.PublicKey, marketProgramId: web3.PublicKey) => Promise<[web3.PublicKey, number]>; export declare const getCandyShopSync: (creator: web3.PublicKey, treasuryMint: web3.PublicKey, marketProgramId: web3.PublicKey) => [web3.PublicKey, number]; export declare const getAuctionHouseProgramAsSigner: () => Promise<[web3.PublicKey, number]>; export declare const getAuctionHouseTradeState: (auctionHouse: web3.PublicKey, wallet: web3.PublicKey, tokenAccount: web3.PublicKey, treasuryMint: web3.PublicKey, tokenMint: web3.PublicKey, tokenSize: BN, buyPrice: BN) => Promise<[web3.PublicKey, number]>; export declare const getAuctionHouseFeeAcct: (auctionHouse: web3.PublicKey) => Promise<[web3.PublicKey, number]>; export declare const getAuctionHouseTreasuryAcct: (auctionHouse: web3.PublicKey) => Promise<[web3.PublicKey, number]>; export declare const getAuctionHouseEscrow: (auctionHouse: web3.PublicKey, wallet: web3.PublicKey) => Promise<[web3.PublicKey, number]>; export declare const getEditionVaultAccount: (candyShop: web3.PublicKey, masterTokenAccount: web3.PublicKey) => Promise<[web3.PublicKey, number]>; export declare const getAtaForMint: (mint: web3.PublicKey, buyer: web3.PublicKey) => Promise<[web3.PublicKey, number]>; export declare const getMetadataAccount: (tokenMint: web3.PublicKey) => Promise<[web3.PublicKey, number]>; export declare const getMasterEditionAccount: (tokenMint: web3.PublicKey) => Promise<[web3.PublicKey, number]>; export declare const getEditionMarkAccount: (tokenMint: web3.PublicKey, edition: number) => Promise<[web3.PublicKey, number]>; export declare const getSignedTx: (wallet: AnchorWallet | web3.Keypair, transaction: web3.Transaction, extraSigners?: web3.Keypair[] | undefined) => web3.Transaction | Promise; export declare const getCandyShopData: (candyShop: web3.PublicKey, isEnterprise: boolean, program: Program) => Promise>>; export declare const getEditionVaultData: (vaultAccount: web3.PublicKey, program: Program) => Promise>>; export declare const getAuctionData: (auction: web3.PublicKey, program: Program) => Promise>>; export declare const getBidData: (bid: web3.PublicKey, program: Program) => Promise>>; export declare const compileAtaCreationIxs: (payer: web3.PublicKey, addresses: string[], mint: web3.PublicKey, program: Program) => Promise; export declare const sendTx: (wallet: AnchorWallet | web3.Keypair, transaction: web3.Transaction, program: Program, extraSigners?: web3.Keypair[] | undefined) => Promise; export declare const treasuryMintIsNative: (treasuryMint: web3.PublicKey) => boolean; export declare const getNftCreators: (metadata: web3.PublicKey, connection: web3.Connection) => Promise; export declare const getRemainingAccountsForExecuteSaleIx: (metadata: web3.PublicKey, connection: web3.Connection, treasuryMint: web3.PublicKey, isNative: boolean) => Promise<{ pubkey: web3.PublicKey; isWritable: boolean; isSigner: boolean; }[]>; export declare const getMintReceipt: (vaultAccount: web3.PublicKey, editionMint: web3.PublicKey) => Promise<[web3.PublicKey, number]>;