UNPKG

@rainfi/sdk

Version:

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

103 lines (102 loc) 3.5 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 ExtendDefiLoanV2 * @category generated */ export type ExtendDefiLoanV2InstructionArgs = { collectionId: number; duration: beet.bignum; interest: beet.bignum; amountBorrowed: beet.bignum; slippage: number; whitelistIndex: number; }; /** * @category Instructions * @category ExtendDefiLoanV2 * @category generated */ export declare const extendDefiLoanV2Struct: beet.BeetArgsStruct<ExtendDefiLoanV2InstructionArgs & { instructionDiscriminator: number[]; }>; /** * Accounts required by the _extendDefiLoanV2_ instruction * * @property [_writable_, **signer**] signer * @property [_writable_] signerStats * @property [_writable_] signerTa * @property [_writable_] loan * @property [_writable_, **signer**] newLoan * @property [_writable_] collateralVaultTa * @property [_writable_] newCollateralVaultTa * @property [_writable_] collection * @property [_writable_] poolOwner * @property [_writable_] pool * @property [_writable_] authority * @property [_writable_] vault * @property [] poolCurrency * @property [] collateralCurrency * @property [_writable_] assetManager * @property [_writable_] poolOwnerAta * @property [] pythOutFeed * @property [] pythInFeed * @property [_writable_] rainTa * @property [_writable_] referrerTa (optional) * @property [] associatedTokenProgram * @property [] lookupTable (optional) * @category Instructions * @category ExtendDefiLoanV2 * @category generated */ export type ExtendDefiLoanV2InstructionAccounts = { signer: web3.PublicKey; signerStats: web3.PublicKey; signerTa: web3.PublicKey; loan: web3.PublicKey; newLoan: web3.PublicKey; collateralVaultTa: web3.PublicKey; newCollateralVaultTa: web3.PublicKey; collection: web3.PublicKey; poolOwner: web3.PublicKey; pool: web3.PublicKey; authority: web3.PublicKey; vault: web3.PublicKey; poolCurrency: web3.PublicKey; collateralCurrency: web3.PublicKey; assetManager: web3.PublicKey; poolOwnerAta: web3.PublicKey; pythOutFeed: web3.PublicKey; pythInFeed: web3.PublicKey; rainTa: web3.PublicKey; referrerTa?: web3.PublicKey; systemProgram?: web3.PublicKey; tokenProgram?: web3.PublicKey; associatedTokenProgram: web3.PublicKey; lookupTable?: web3.PublicKey; anchorRemainingAccounts?: web3.AccountMeta[]; }; export declare const extendDefiLoanV2InstructionDiscriminator: number[]; /** * Creates a _ExtendDefiLoanV2_ 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 ExtendDefiLoanV2 * @category generated */ export declare function createExtendDefiLoanV2Instruction(accounts: ExtendDefiLoanV2InstructionAccounts, args: ExtendDefiLoanV2InstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;