UNPKG

@rainfi/sdk

Version:

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

64 lines (63 loc) 2.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'; import { LoanKind } from '../types/LoanKind'; import { Marketplace } from '../types/Marketplace'; /** * @category Instructions * @category AcceptProposal * @category generated */ export type AcceptProposalInstructionArgs = { collectionId: number; kind: LoanKind; amount: beet.bignum; duration: beet.bignum; price: beet.bignum; marketplace: Marketplace; }; /** * @category Instructions * @category AcceptProposal * @category generated */ export declare const acceptProposalStruct: beet.BeetArgsStruct<AcceptProposalInstructionArgs & { instructionDiscriminator: number[]; }>; /** * Accounts required by the _acceptProposal_ instruction * * @property [_writable_, **signer**] signer * @property [] borrower * @property [] nftMint * @property [_writable_] request * @property [_writable_] pool * @category Instructions * @category AcceptProposal * @category generated */ export type AcceptProposalInstructionAccounts = { signer: web3.PublicKey; borrower: web3.PublicKey; nftMint: web3.PublicKey; request: web3.PublicKey; pool: web3.PublicKey; anchorRemainingAccounts?: web3.AccountMeta[]; }; export declare const acceptProposalInstructionDiscriminator: number[]; /** * Creates a _AcceptProposal_ 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 AcceptProposal * @category generated */ export declare function createAcceptProposalInstruction(accounts: AcceptProposalInstructionAccounts, args: AcceptProposalInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;