solana-framework
Version:
solana-framework is solana uni-tools for typescript
79 lines • 2.99 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 { MintArgs } from '../types/MintArgs';
/**
* @category Instructions
* @category Mint
* @category generated
*/
export type MintInstructionArgs = {
mintArgs: MintArgs;
};
/**
* @category Instructions
* @category Mint
* @category generated
*/
export declare const MintStruct: beet.FixableBeetArgsStruct<MintInstructionArgs & {
instructionDiscriminator: number;
}>;
/**
* Accounts required by the _Mint_ instruction
*
* @property [_writable_] token Token or Associated Token account
* @property [] tokenOwner (optional) Owner of the token account
* @property [] metadata Metadata account (pda of ['metadata', program id, mint id])
* @property [_writable_] masterEdition (optional) Master Edition account
* @property [_writable_] tokenRecord (optional) Token record account
* @property [_writable_] mint Mint of token asset
* @property [**signer**] authority (Mint or Update) authority
* @property [] delegateRecord (optional) Metadata delegate record
* @property [_writable_, **signer**] payer Payer
* @property [] sysvarInstructions Instructions sysvar account
* @property [] splTokenProgram SPL Token program
* @property [] splAtaProgram SPL Associated Token Account program
* @property [] authorizationRulesProgram (optional) Token Authorization Rules program
* @property [] authorizationRules (optional) Token Authorization Rules account
* @category Instructions
* @category Mint
* @category generated
*/
export type MintInstructionAccounts = {
token: web3.PublicKey;
tokenOwner?: web3.PublicKey;
metadata: web3.PublicKey;
masterEdition?: web3.PublicKey;
tokenRecord?: web3.PublicKey;
mint: web3.PublicKey;
authority: web3.PublicKey;
delegateRecord?: web3.PublicKey;
payer: web3.PublicKey;
systemProgram?: web3.PublicKey;
sysvarInstructions: web3.PublicKey;
splTokenProgram: web3.PublicKey;
splAtaProgram: web3.PublicKey;
authorizationRulesProgram?: web3.PublicKey;
authorizationRules?: web3.PublicKey;
};
export declare const mintInstructionDiscriminator = 43;
/**
* Creates a _Mint_ 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 Mint
* @category generated
*/
export declare function createMintInstruction(accounts: MintInstructionAccounts, args: MintInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
//# sourceMappingURL=Mint.d.ts.map