@rainfi/sdk
Version:
This package is used to interact with Rain.fi protocol on Solana
55 lines (54 loc) • 1.65 kB
TypeScript
/**
* 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 SellLoan
* @category generated
*/
export type SellLoanInstructionArgs = {
isForSale: boolean;
salePrice: beet.bignum;
};
/**
* @category Instructions
* @category SellLoan
* @category generated
*/
export declare const sellLoanStruct: beet.BeetArgsStruct<SellLoanInstructionArgs & {
instructionDiscriminator: number[];
}>;
/**
* Accounts required by the _sellLoan_ instruction
*
* @property [_writable_, **signer**] signer
* @property [] nftMint
* @property [_writable_] loan
* @category Instructions
* @category SellLoan
* @category generated
*/
export type SellLoanInstructionAccounts = {
signer: web3.PublicKey;
nftMint: web3.PublicKey;
loan: web3.PublicKey;
systemProgram?: web3.PublicKey;
anchorRemainingAccounts?: web3.AccountMeta[];
};
export declare const sellLoanInstructionDiscriminator: number[];
/**
* Creates a _SellLoan_ 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 SellLoan
* @category generated
*/
export declare function createSellLoanInstruction(accounts: SellLoanInstructionAccounts, args: SellLoanInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;