@rainfi/sdk
Version:
This package is used to interact with Rain.fi protocol on Solana
91 lines (90 loc) • 2.95 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';
import { Marketplace } from '../types/Marketplace';
/**
* @category Instructions
* @category ExecuteMortgage
* @category generated
*/
export type ExecuteMortgageInstructionArgs = {
collectionId: number;
marketplace: Marketplace;
duration: beet.bignum;
interest: beet.bignum;
amountInLamports: beet.bignum;
slippage: number;
price: beet.bignum;
data: Uint8Array;
};
/**
* @category Instructions
* @category ExecuteMortgage
* @category generated
*/
export declare const executeMortgageStruct: beet.FixableBeetArgsStruct<ExecuteMortgageInstructionArgs & {
instructionDiscriminator: number[];
}>;
/**
* Accounts required by the _executeMortgage_ instruction
*
* @property [_writable_, **signer**] signer
* @property [_writable_] signerStats
* @property [_writable_] vaultTokenAccount
* @property [_writable_] request
* @property [_writable_, **signer**] loan
* @property [] nftMetadata
* @property [_writable_] nftMint
* @property [_writable_] collection
* @property [_writable_] poolOwner
* @property [_writable_] pool
* @property [_writable_] authority
* @property [_writable_] vault
* @property [_writable_] wsolVault
* @property [] nativeMint
* @property [] whitelist
* @property [_writable_] rainFees
* @property [] associatedTokenProgram
* @category Instructions
* @category ExecuteMortgage
* @category generated
*/
export type ExecuteMortgageInstructionAccounts = {
signer: web3.PublicKey;
signerStats: web3.PublicKey;
vaultTokenAccount: web3.PublicKey;
request: web3.PublicKey;
loan: web3.PublicKey;
nftMetadata: web3.PublicKey;
nftMint: web3.PublicKey;
collection: web3.PublicKey;
poolOwner: web3.PublicKey;
pool: web3.PublicKey;
authority: web3.PublicKey;
vault: web3.PublicKey;
wsolVault: web3.PublicKey;
nativeMint: web3.PublicKey;
whitelist: web3.PublicKey;
rainFees: web3.PublicKey;
systemProgram?: web3.PublicKey;
tokenProgram?: web3.PublicKey;
associatedTokenProgram: web3.PublicKey;
anchorRemainingAccounts?: web3.AccountMeta[];
};
export declare const executeMortgageInstructionDiscriminator: number[];
/**
* Creates a _ExecuteMortgage_ 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 ExecuteMortgage
* @category generated
*/
export declare function createExecuteMortgageInstruction(accounts: ExecuteMortgageInstructionAccounts, args: ExecuteMortgageInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;