@rainfi/sdk
Version:
This package is used to interact with Rain.fi protocol on Solana
80 lines (79 loc) • 2.63 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 { Curve } from '../types/Curve';
import { UserInputPoolCollection } from '../types/UserInputPoolCollection';
/**
* @category Instructions
* @category CreatePool
* @category generated
*/
export type CreatePoolInstructionArgs = {
isCompounded: boolean;
amount: beet.bignum;
curve: Curve;
collections: UserInputPoolCollection[];
};
/**
* @category Instructions
* @category CreatePool
* @category generated
*/
export declare const createPoolStruct: beet.FixableBeetArgsStruct<CreatePoolInstructionArgs & {
instructionDiscriminator: number[];
}>;
/**
* Accounts required by the _createPool_ instruction
*
* @property [_writable_, **signer**] signer
* @property [_writable_] signerStats
* @property [_writable_] signerTa
* @property [_writable_] pool
* @property [_writable_] authority
* @property [_writable_] vault
* @property [] currency
* @property [] pythPoolFeed
* @property [] pythSolFeed
* @property [_writable_] referrer (optional)
* @category Instructions
* @category CreatePool
* @category generated
*/
export type CreatePoolInstructionAccounts = {
signer: web3.PublicKey;
signerStats: web3.PublicKey;
signerTa: web3.PublicKey;
pool: web3.PublicKey;
authority: web3.PublicKey;
vault: web3.PublicKey;
currency: web3.PublicKey;
pythPoolFeed: web3.PublicKey;
pythSolFeed: web3.PublicKey;
referrer?: web3.PublicKey;
systemProgram?: web3.PublicKey;
tokenProgram?: web3.PublicKey;
rent?: web3.PublicKey;
anchorRemainingAccounts?: web3.AccountMeta[];
};
export declare const createPoolInstructionDiscriminator: number[];
/**
* Creates a _CreatePool_ instruction.
*
* Optional accounts that are not provided will be omitted from the accounts
* array passed with the instruction.
* An optional account that is set cannot follow an optional account that is unset.
* Otherwise an Error is raised.
*
* @param accounts that will be accessed while the instruction is processed
* @param args to provide as instruction data to the program
*
* @category Instructions
* @category CreatePool
* @category generated
*/
export declare function createCreatePoolInstruction(accounts: CreatePoolInstructionAccounts, args: CreatePoolInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;