UNPKG

@rainfi/sdk

Version:

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

88 lines (87 loc) 2.89 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 { CompressedArgs } from '../types/CompressedArgs'; /** * @category Instructions * @category RepayCompressed * @category generated */ export type RepayCompressedInstructionArgs = { collectionId: number; compressedArgs: CompressedArgs; }; /** * @category Instructions * @category RepayCompressed * @category generated */ export declare const repayCompressedStruct: beet.BeetArgsStruct<RepayCompressedInstructionArgs & { instructionDiscriminator: number[]; }>; /** * Accounts required by the _repayCompressed_ instruction * * @property [_writable_, **signer**] signer * @property [_writable_] signerStats * @property [_writable_] signerTa * @property [_writable_] loan * @property [_writable_] collection * @property [_writable_] poolOwner * @property [_writable_] pool * @property [_writable_] authority * @property [] treeAuthority * @property [_writable_] merkleTree * @property [_writable_] vault * @property [_writable_] poolOwnerAta * @property [] poolMint * @property [_writable_] rainTa * @property [] logWrapper * @property [] compressionProgram * @property [] bubblegumProgram * @property [] associatedTokenProgram * @category Instructions * @category RepayCompressed * @category generated */ export type RepayCompressedInstructionAccounts = { signer: web3.PublicKey; signerStats: web3.PublicKey; signerTa: web3.PublicKey; loan: web3.PublicKey; collection: web3.PublicKey; poolOwner: web3.PublicKey; pool: web3.PublicKey; authority: web3.PublicKey; treeAuthority: web3.PublicKey; merkleTree: web3.PublicKey; vault: web3.PublicKey; poolOwnerAta: web3.PublicKey; poolMint: web3.PublicKey; rainTa: web3.PublicKey; systemProgram?: web3.PublicKey; tokenProgram?: web3.PublicKey; logWrapper: web3.PublicKey; compressionProgram: web3.PublicKey; bubblegumProgram: web3.PublicKey; associatedTokenProgram: web3.PublicKey; rent?: web3.PublicKey; anchorRemainingAccounts?: web3.AccountMeta[]; }; export declare const repayCompressedInstructionDiscriminator: number[]; /** * Creates a _RepayCompressed_ 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 RepayCompressed * @category generated */ export declare function createRepayCompressedInstruction(accounts: RepayCompressedInstructionAccounts, args: RepayCompressedInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;