UNPKG

@rainfi/sdk

Version:

This package is used to interact with Rain.fi protocol on Solana

79 lines (78 loc) 2.7 kB
/** * This code was GENERATED using the solita package. * Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality. * * See: https://github.com/metaplex-foundation/solita */ import * as beet from '@metaplex-foundation/beet'; import * as web3 from '@solana/web3.js'; import { AuthorizationDataLocal } from '../types/AuthorizationDataLocal'; /** * @category Instructions * @category BuyNftFromPair * @category generated */ export type BuyNftFromPairInstructionArgs = { maxAmountToPay: beet.bignum; skipFailed: boolean; authorizationData: beet.COption<AuthorizationDataLocal>; payRoyalty: boolean; }; /** * Accounts required by the _buyNftFromPair_ instruction * * @property [_writable_] nftPairBox * @property [_writable_] pair * @property [_writable_, **signer**] user * @property [_writable_] fundsSolVault * @property [] nftsOwner * @property [_writable_] feeSolVault * @property [_writable_] nftMint * @property [_writable_] vaultNftTokenAccount * @property [_writable_] nftUserTokenAccount * @property [_writable_] assetReceiver * @property [] editionInfo * @property [_writable_] metadataInfo * @property [_writable_] ownerTokenRecord * @property [_writable_] destTokenRecord * @property [] instructions * @property [] authorizationRulesProgram * @property [_writable_] protocolFeeReceiver * @property [] associatedTokenProgram * @property [] metadataProgram * @category Instructions * @category BuyNftFromPair * @category generated */ export type BuyNftFromPairInstructionAccounts = { nftPairBox: web3.PublicKey; pair: web3.PublicKey; user: web3.PublicKey; fundsSolVault: web3.PublicKey; nftsOwner: web3.PublicKey; feeSolVault: web3.PublicKey; nftMint: web3.PublicKey; vaultNftTokenAccount: web3.PublicKey; nftUserTokenAccount: web3.PublicKey; assetReceiver: web3.PublicKey; editionInfo: web3.PublicKey; metadataInfo: web3.PublicKey; ownerTokenRecord: web3.PublicKey; destTokenRecord: web3.PublicKey; instructions: web3.PublicKey; authorizationRulesProgram: web3.PublicKey; protocolFeeReceiver: web3.PublicKey; associatedTokenProgram: web3.PublicKey; metadataProgram: web3.PublicKey; }; /** * Creates a _BuyNftFromPair_ instruction. * * @param accounts that will be accessed while the instruction is processed * @param args to provide as instruction data to the program * * @category Instructions * @category BuyNftFromPair * @category generated */ export declare function createBuyNftFromPairInstruction(accounts: BuyNftFromPairInstructionAccounts, args: BuyNftFromPairInstructionArgs): web3.TransactionInstruction;