@rainfi/sdk
Version:
This package is used to interact with Rain.fi protocol on Solana
80 lines (79 loc) • 2.68 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 BotDefiLiquidateV2
* @category generated
*/
export type BotDefiLiquidateV2InstructionArgs = {
collectionId: number;
isLiquidation: boolean;
jupData: beet.COption<Uint8Array>;
};
/**
* @category Instructions
* @category BotDefiLiquidateV2
* @category generated
*/
export declare const botDefiLiquidateV2Struct: beet.FixableBeetArgsStruct<BotDefiLiquidateV2InstructionArgs & {
instructionDiscriminator: number[];
}>;
/**
* Accounts required by the _botDefiLiquidateV2_ instruction
*
* @property [_writable_, **signer**] signer
* @property [_writable_] lender
* @property [_writable_] collection
* @property [_writable_] borrower
* @property [_writable_] borrowerStats
* @property [_writable_] loan
* @property [_writable_] collateralVaultTa
* @property [_writable_] pool
* @property [_writable_] authority
* @property [_writable_] vault
* @property [_writable_] lenderAta
* @property [] collateralCurrency
* @property [] jupiterProgram
* @property [] associatedTokenProgram
* @category Instructions
* @category BotDefiLiquidateV2
* @category generated
*/
export type BotDefiLiquidateV2InstructionAccounts = {
signer: web3.PublicKey;
lender: web3.PublicKey;
collection: web3.PublicKey;
borrower: web3.PublicKey;
borrowerStats: web3.PublicKey;
loan: web3.PublicKey;
collateralVaultTa: web3.PublicKey;
pool: web3.PublicKey;
authority: web3.PublicKey;
vault: web3.PublicKey;
lenderAta: web3.PublicKey;
collateralCurrency: web3.PublicKey;
jupiterProgram: web3.PublicKey;
systemProgram?: web3.PublicKey;
tokenProgram?: web3.PublicKey;
associatedTokenProgram: web3.PublicKey;
rent?: web3.PublicKey;
anchorRemainingAccounts?: web3.AccountMeta[];
};
export declare const botDefiLiquidateV2InstructionDiscriminator: number[];
/**
* Creates a _BotDefiLiquidateV2_ 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 BotDefiLiquidateV2
* @category generated
*/
export declare function createBotDefiLiquidateV2Instruction(accounts: BotDefiLiquidateV2InstructionAccounts, args: BotDefiLiquidateV2InstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;