UNPKG

@rainfi/sdk

Version:

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

91 lines (90 loc) 3.06 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'; /** * @category Instructions * @category BotLiquidate * @category generated */ export type BotLiquidateInstructionArgs = { collectionId: number; }; /** * @category Instructions * @category BotLiquidate * @category generated */ export declare const botLiquidateStruct: beet.BeetArgsStruct<BotLiquidateInstructionArgs & { instructionDiscriminator: number[]; }>; /** * Accounts required by the _botLiquidate_ instruction * * @property [_writable_, **signer**] signer * @property [_writable_] lender * @property [_writable_] nftAta * @property [_writable_] nftMint * @property [_writable_] nftMetadata * @property [_writable_] nftEdition (optional) * @property [_writable_] collection * @property [_writable_] borrower * @property [_writable_] borrowerNftAta * @property [_writable_] borrowerStats * @property [_writable_] loan * @property [_writable_] vaultTokenAccount * @property [_writable_] pool * @property [_writable_] authority * @property [] instructions * @property [] authorizationRulesProgram * @property [] metadataProgram * @property [] associatedTokenProgram * @category Instructions * @category BotLiquidate * @category generated */ export type BotLiquidateInstructionAccounts = { signer: web3.PublicKey; lender: web3.PublicKey; nftAta: web3.PublicKey; nftMint: web3.PublicKey; nftMetadata: web3.PublicKey; nftEdition?: web3.PublicKey; collection: web3.PublicKey; borrower: web3.PublicKey; borrowerNftAta: web3.PublicKey; borrowerStats: web3.PublicKey; loan: web3.PublicKey; vaultTokenAccount: web3.PublicKey; pool: web3.PublicKey; authority: 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 botLiquidateInstructionDiscriminator: number[]; /** * Creates a _BotLiquidate_ instruction. * * Optional accounts that are not provided will be omitted from the accounts * array passed with the instruction. * An optional account that is set cannot follow an optional account that is unset. * Otherwise an Error is raised. * * @param accounts that will be accessed while the instruction is processed * @param args to provide as instruction data to the program * * @category Instructions * @category BotLiquidate * @category generated */ export declare function createBotLiquidateInstruction(accounts: BotLiquidateInstructionAccounts, args: BotLiquidateInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;