UNPKG

@rainfi/sdk

Version:

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

70 lines (69 loc) 2.17 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'; import { LoanKind } from '../types/LoanKind'; import { Marketplace } from '../types/Marketplace'; /** * @category Instructions * @category ProposeLoan * @category generated */ export type ProposeLoanInstructionArgs = { collectionId: number; kind: LoanKind; amount: beet.bignum; duration: beet.bignum; price: beet.bignum; marketplace: Marketplace; }; /** * @category Instructions * @category ProposeLoan * @category generated */ export declare const proposeLoanStruct: beet.BeetArgsStruct<ProposeLoanInstructionArgs & { instructionDiscriminator: number[]; }>; /** * Accounts required by the _proposeLoan_ instruction * * @property [_writable_, **signer**] signer * @property [] nftMint * @property [] nftMetadata * @property [_writable_] collection * @property [] pool * @property [_writable_] request * @property [] whitelist * @category Instructions * @category ProposeLoan * @category generated */ export type ProposeLoanInstructionAccounts = { signer: web3.PublicKey; nftMint: web3.PublicKey; nftMetadata: web3.PublicKey; collection: web3.PublicKey; pool: web3.PublicKey; request: web3.PublicKey; whitelist: web3.PublicKey; systemProgram?: web3.PublicKey; tokenProgram?: web3.PublicKey; anchorRemainingAccounts?: web3.AccountMeta[]; }; export declare const proposeLoanInstructionDiscriminator: number[]; /** * Creates a _ProposeLoan_ 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 ProposeLoan * @category generated */ export declare function createProposeLoanInstruction(accounts: ProposeLoanInstructionAccounts, args: ProposeLoanInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;