UNPKG

@rainfi/sdk

Version:

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

64 lines (63 loc) 1.99 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 CreateStats * @category generated */ export type CreateStatsInstructionArgs = { totalLoan: beet.bignum; totalMortgage: beet.bignum; totalLiquidation: beet.bignum; currentLoan: beet.bignum; currentMortgage: beet.bignum; totalVolumeBorrower: beet.bignum; totalVolumePool: beet.bignum; points: beet.bignum; creditScore: beet.bignum; referrer: web3.PublicKey; }; /** * @category Instructions * @category CreateStats * @category generated */ export declare const createStatsStruct: beet.BeetArgsStruct<CreateStatsInstructionArgs & { instructionDiscriminator: number[]; }>; /** * Accounts required by the _createStats_ instruction * * @property [_writable_, **signer**] signer * @property [] user * @property [_writable_] userStats * @category Instructions * @category CreateStats * @category generated */ export type CreateStatsInstructionAccounts = { signer: web3.PublicKey; user: web3.PublicKey; userStats: web3.PublicKey; systemProgram?: web3.PublicKey; rent?: web3.PublicKey; anchorRemainingAccounts?: web3.AccountMeta[]; }; export declare const createStatsInstructionDiscriminator: number[]; /** * Creates a _CreateStats_ 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 CreateStats * @category generated */ export declare function createCreateStatsInstruction(accounts: CreateStatsInstructionAccounts, args: CreateStatsInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;