import { BN, web3 } from '@project-serum/anchor'; import { AnchorWallet } from '@solana/wallet-adapter-react'; import { ListBase, Nft, Order, ShopStats, SingleBase, Trade, WhitelistNft } from 'solana-candy-shop-schema/dist'; import { OrdersFilterQuery } from './api/backend/OrderAPI'; export * from './utils'; export { SortBy as OrderSortBy, OrdersFilterQuery } from "./api"; /** * @field currencySymbol your shop transaction currency symbol (default is SOL) * @field currencyDecimals your shop transaction currency decimals (default is 9 for SOL) * @field priceDecimals number of decimals to display for price numbers (default is 3) * @field volumeDecimals number of decimals to display for volume numbers (default is 1) */ export declare type CandyShopSettings = { currencySymbol: string; currencyDecimals: number; priceDecimals: number; volumeDecimals: number; }; /** * @class CandyShop */ export declare class CandyShop { private _candyShopAddress; private _candyShopCreatorAddress; private _treasuryMint; private _programId; private _env; private _settings; private _baseUnitsPerCurrency; private _program; /** * @constructor * @param candyShopCreatorAddress creator address (i.e. your wallet address) * @param treasuryMint treasury mint (i.e. currency to buy and sell with) * @param candyShopProgramId Candy Shop program id * @param env web3.Cluster mainnet, devnet * @param settings optional, additional shop settings */ constructor(candyShopCreatorAddress: web3.PublicKey, treasuryMint: web3.PublicKey, candyShopProgramId: web3.PublicKey, env: web3.Cluster, settings?: CandyShopSettings); /** * Initiate the CandyShop object */ getStaticProgram(wallet: AnchorWallet): Promise; get treasuryMint(): web3.PublicKey; get connectedPublicKey(): web3.PublicKey | undefined; get candyShopAddress(): web3.PublicKey; get candyShopCreatorAddress(): web3.PublicKey; get programId(): web3.PublicKey; get baseUnitsPerCurrency(): number; get currencySymbol(): string; get priceDecimals(): number; get volumeDecimals(): number; buy(seller: web3.PublicKey, tokenAccount: web3.PublicKey, tokenMint: web3.PublicKey, price: BN, wallet: AnchorWallet): Promise; sell(tokenAccount: web3.PublicKey, tokenMint: web3.PublicKey, price: BN, wallet: AnchorWallet): Promise; cancel(tokenAccount: web3.PublicKey, tokenMint: web3.PublicKey, price: BN, wallet: AnchorWallet): Promise; stats(): Promise; transactions(): Promise; nftInfo(mint: string): Promise; orders(ordersFilterQuery: OrdersFilterQuery, identifiers?: number[]): Promise>; activeOrdersByWalletAddress(walletAddress: string): Promise; shopWlNfts(): Promise>; activeOrderByMintAddress(mintAddress: string): Promise>; } //# sourceMappingURL=index.d.ts.map