UNPKG

solana-framework

Version:

solana-framework is solana uni-tools for typescript

73 lines 2.58 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 { UseArgs } from '../types/UseArgs'; /** * @category Instructions * @category Use * @category generated */ export type UseInstructionArgs = { useArgs: UseArgs; }; /** * @category Instructions * @category Use * @category generated */ export declare const UseStruct: beet.FixableBeetArgsStruct<UseInstructionArgs & { instructionDiscriminator: number; }>; /** * Accounts required by the _Use_ instruction * * @property [**signer**] authority Token owner or delegate * @property [_writable_] delegateRecord (optional) Delegate record PDA * @property [_writable_] token (optional) Token account * @property [] mint Mint account * @property [_writable_] metadata Metadata account * @property [_writable_] edition (optional) Edition account * @property [**signer**] payer Payer * @property [] sysvarInstructions System program * @property [] splTokenProgram (optional) SPL Token Program * @property [] authorizationRulesProgram (optional) Token Authorization Rules Program * @property [] authorizationRules (optional) Token Authorization Rules account * @category Instructions * @category Use * @category generated */ export type UseInstructionAccounts = { authority: web3.PublicKey; delegateRecord?: web3.PublicKey; token?: web3.PublicKey; mint: web3.PublicKey; metadata: web3.PublicKey; edition?: web3.PublicKey; payer: web3.PublicKey; systemProgram?: web3.PublicKey; sysvarInstructions: web3.PublicKey; splTokenProgram?: web3.PublicKey; authorizationRulesProgram?: web3.PublicKey; authorizationRules?: web3.PublicKey; }; export declare const useInstructionDiscriminator = 51; /** * Creates a _Use_ instruction. * * Optional accounts that are not provided default to the program ID since * this was indicated in the IDL from which this instruction was generated. * * @param accounts that will be accessed while the instruction is processed * @param args to provide as instruction data to the program * * @category Instructions * @category Use * @category generated */ export declare function createUseInstruction(accounts: UseInstructionAccounts, args: UseInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction; //# sourceMappingURL=Use.d.ts.map