UNPKG

hadeswap-sdk

Version:

HadeSwap SDK for interacting with protocol

31 lines (30 loc) 924 B
import { web3 } from '@project-serum/anchor'; declare type BuyNftFromPair = (params: { programId: web3.PublicKey; connection: web3.Connection; args: { maxAmountToPay: number; skipFailed: boolean; pnft?: { nameForRuleSet?: string; payerRuleSet?: web3.PublicKey; }; payRoyalty?: boolean; }; accounts: { nftPairBox: web3.PublicKey; nftMint: web3.PublicKey; vaultNftTokenAccount: web3.PublicKey; assetReceiver: web3.PublicKey; protocolFeeReceiver: web3.PublicKey; pair: web3.PublicKey; userPubkey: web3.PublicKey; }; sendTxn: (transaction: web3.Transaction, signers: web3.Signer[]) => Promise<void>; }) => Promise<{ account: null; instructions: web3.TransactionInstruction[]; signers: web3.Signer[]; }>; export declare const buyNftFromPair: BuyNftFromPair; export {};