@rainfi/sdk
Version:
This package is used to interact with Rain.fi protocol on Solana
62 lines (61 loc) • 2.02 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 CreateCollection
* @category generated
*/
export type CreateCollectionInstructionArgs = {
collectionId: number;
floorPrice: beet.bignum;
supply: beet.bignum;
risk: number;
};
/**
* @category Instructions
* @category CreateCollection
* @category generated
*/
export declare const createCollectionStruct: beet.BeetArgsStruct<CreateCollectionInstructionArgs & {
instructionDiscriminator: number[];
}>;
/**
* Accounts required by the _createCollection_ instruction
*
* @property [_writable_, **signer**] signer
* @property [_writable_] collection
* @property [] collectionGlobalOffer
* @property [] metaplexCollection
* @property [] metaplexCreator
* @category Instructions
* @category CreateCollection
* @category generated
*/
export type CreateCollectionInstructionAccounts = {
signer: web3.PublicKey;
collection: web3.PublicKey;
collectionGlobalOffer: web3.PublicKey;
metaplexCollection: web3.PublicKey;
metaplexCreator: web3.PublicKey;
systemProgram?: web3.PublicKey;
rent?: web3.PublicKey;
anchorRemainingAccounts?: web3.AccountMeta[];
};
export declare const createCollectionInstructionDiscriminator: number[];
/**
* Creates a _CreateCollection_ 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 CreateCollection
* @category generated
*/
export declare function createCreateCollectionInstruction(accounts: CreateCollectionInstructionAccounts, args: CreateCollectionInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;