UNPKG

@rainfi/sdk

Version:

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

94 lines (93 loc) 3.02 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 BuyLoan * @category generated */ export type BuyLoanInstructionArgs = { price: beet.bignum; }; /** * @category Instructions * @category BuyLoan * @category generated */ export declare const buyLoanStruct: beet.BeetArgsStruct<BuyLoanInstructionArgs & { instructionDiscriminator: number[]; }>; /** * Accounts required by the _buyLoan_ instruction * * @property [_writable_, **signer**] signer * @property [_writable_] signerStats * @property [_writable_] signerTa * @property [_writable_] borrower * @property [_writable_] borrowerTa * @property [_writable_] borrowerNftTa * @property [_writable_] borrowerStats * @property [_writable_] vaultTokenAccount * @property [_writable_] nftMint * @property [_writable_] nftMetadata * @property [_writable_] nftEdition * @property [_writable_, **signer**] newLoan * @property [_writable_] oldLoan * @property [_writable_] poolOwner * @property [_writable_] pool * @property [_writable_] authority * @property [] poolCurrency * @property [_writable_] rainTa * @property [] instructions * @property [] authorizationRulesProgram * @property [] metadataProgram * @property [] associatedTokenProgram * @category Instructions * @category BuyLoan * @category generated */ export type BuyLoanInstructionAccounts = { signer: web3.PublicKey; signerStats: web3.PublicKey; signerTa: web3.PublicKey; borrower: web3.PublicKey; borrowerTa: web3.PublicKey; borrowerNftTa: web3.PublicKey; borrowerStats: web3.PublicKey; vaultTokenAccount: web3.PublicKey; nftMint: web3.PublicKey; nftMetadata: web3.PublicKey; nftEdition: web3.PublicKey; newLoan: web3.PublicKey; oldLoan: web3.PublicKey; poolOwner: web3.PublicKey; pool: web3.PublicKey; authority: web3.PublicKey; poolCurrency: web3.PublicKey; rainTa: 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 buyLoanInstructionDiscriminator: number[]; /** * Creates a _BuyLoan_ 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 BuyLoan * @category generated */ export declare function createBuyLoanInstruction(accounts: BuyLoanInstructionAccounts, args: BuyLoanInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;