@rainfi/sdk
Version:
This package is used to interact with Rain.fi protocol on Solana
70 lines (69 loc) • 2.3 kB
TypeScript
/**
* 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';
/**
* @category Instructions
* @category DelistNft
* @category generated
*/
export declare const delistNftStruct: beet.BeetArgsStruct<{
instructionDiscriminator: number[];
}>;
/**
* Accounts required by the _delistNft_ instruction
*
* @property [_writable_, **signer**] signer
* @property [] nftMint
* @property [] nftMetadata
* @property [_writable_] nftEdition
* @property [_writable_] loan
* @property [_writable_] vaultTokenAccount
* @property [_writable_] poolOwner
* @property [_writable_] pool
* @property [_writable_] authority
* @property [_writable_] tempVaultTokenAccount
* @property [_writable_] loanAuthority
* @property [] instructions
* @property [] authorizationRulesProgram
* @property [] metadataProgram
* @property [] associatedTokenProgram
* @category Instructions
* @category DelistNft
* @category generated
*/
export type DelistNftInstructionAccounts = {
signer: web3.PublicKey;
nftMint: web3.PublicKey;
nftMetadata: web3.PublicKey;
nftEdition: web3.PublicKey;
loan: web3.PublicKey;
vaultTokenAccount: web3.PublicKey;
poolOwner: web3.PublicKey;
pool: web3.PublicKey;
authority: web3.PublicKey;
tempVaultTokenAccount: web3.PublicKey;
loanAuthority: web3.PublicKey;
instructions: web3.PublicKey;
authorizationRulesProgram: web3.PublicKey;
metadataProgram: web3.PublicKey;
systemProgram?: web3.PublicKey;
tokenProgram?: web3.PublicKey;
associatedTokenProgram: web3.PublicKey;
rent?: web3.PublicKey;
anchorRemainingAccounts?: web3.AccountMeta[];
};
export declare const delistNftInstructionDiscriminator: number[];
/**
* Creates a _DelistNft_ instruction.
*
* @param accounts that will be accessed while the instruction is processed
* @category Instructions
* @category DelistNft
* @category generated
*/
export declare function createDelistNftInstruction(accounts: DelistNftInstructionAccounts, programId?: web3.PublicKey): web3.TransactionInstruction;