UNPKG

hadeswap-sdk

Version:

HadeSwap SDK for interacting with protocol

27 lines (26 loc) 830 B
/// <reference types="node" /> import { web3 } from '@project-serum/anchor'; declare type ValidateNft = (params: { programId: web3.PublicKey; connection: web3.Connection; args: { proof: Buffer[]; }; accounts: { userPubkey: web3.PublicKey; nftMint: web3.PublicKey; fraktMarket: web3.PublicKey; whitelistedAddress: web3.PublicKey; pair: web3.PublicKey; hadoMarket: web3.PublicKey; hadeSwapProgramId: web3.PublicKey; fraktMarketRegistryProgramId: web3.PublicKey; }; sendTxn: (transaction: web3.Transaction, signers: web3.Signer[]) => Promise<void>; }) => Promise<{ account: web3.PublicKey; instructions: web3.TransactionInstruction[]; signers: web3.Signer[]; }>; export declare const validateNft: ValidateNft; export {};