UNPKG

@frakt-protocol/frakt-sdk

Version:

Frakt SDK for interacting with frakt.xyz protocols

16 lines (15 loc) 692 B
import * as anchor from '@project-serum/anchor'; import { PublicKey, Keypair, Transaction } from '@solana/web3.js'; export { Provider, Program } from '@project-serum/anchor'; export declare function withdrawNftByTicket({ communityPool, lotteryTicket, safetyDepositBox, nftMint, storeNftTokenAccount, }: { communityPool: PublicKey; lotteryTicket: PublicKey; safetyDepositBox: PublicKey; nftMint: PublicKey; storeNftTokenAccount: PublicKey; }, { userPubkey, provider, programId, sendTxn, }: { programId: PublicKey; userPubkey: PublicKey; provider: anchor.Provider; sendTxn: (transaction: Transaction, signers: Keypair[]) => Promise<void>; }): Promise<void>;