UNPKG

hadeswap-sdk-public

Version:

HadeSwap SDK for interacting with protocol

30 lines (29 loc) 894 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; }; }; 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 {};