UNPKG

@rainfi/sdk

Version:

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

57 lines (56 loc) 1.84 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'; /** * @category Instructions * @category UpdateCollection * @category generated */ export type UpdateCollectionInstructionArgs = { collectionId: number; floorPrice: beet.bignum; supply: beet.bignum; isLocked: boolean; optName: beet.COption<number[]>; }; /** * @category Instructions * @category UpdateCollection * @category generated */ export declare const updateCollectionStruct: beet.FixableBeetArgsStruct<UpdateCollectionInstructionArgs & { instructionDiscriminator: number[]; }>; /** * Accounts required by the _updateCollection_ instruction * * @property [_writable_, **signer**] signer * @property [_writable_] collection * @category Instructions * @category UpdateCollection * @category generated */ export type UpdateCollectionInstructionAccounts = { signer: web3.PublicKey; collection: web3.PublicKey; systemProgram?: web3.PublicKey; rent?: web3.PublicKey; anchorRemainingAccounts?: web3.AccountMeta[]; }; export declare const updateCollectionInstructionDiscriminator: number[]; /** * Creates a _UpdateCollection_ 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 UpdateCollection * @category generated */ export declare function createUpdateCollectionInstruction(accounts: UpdateCollectionInstructionAccounts, args: UpdateCollectionInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;