solana-framework
Version:
solana-framework is solana uni-tools for typescript
71 lines • 2.64 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 { ApproveUseAuthorityArgs } from '../types/ApproveUseAuthorityArgs';
/**
* @category Instructions
* @category ApproveUseAuthority
* @category generated
*/
export type ApproveUseAuthorityInstructionArgs = {
approveUseAuthorityArgs: ApproveUseAuthorityArgs;
};
/**
* @category Instructions
* @category ApproveUseAuthority
* @category generated
*/
export declare const ApproveUseAuthorityStruct: beet.BeetArgsStruct<ApproveUseAuthorityInstructionArgs & {
instructionDiscriminator: number;
}>;
/**
* Accounts required by the _ApproveUseAuthority_ instruction
*
* @property [_writable_] useAuthorityRecord Use Authority Record PDA
* @property [_writable_, **signer**] owner Owner
* @property [_writable_, **signer**] payer Payer
* @property [] user A Use Authority
* @property [_writable_] ownerTokenAccount Owned Token Account Of Mint
* @property [] metadata Metadata account
* @property [] mint Mint of Metadata
* @property [] burner Program As Signer (Burner)
* @category Instructions
* @category ApproveUseAuthority
* @category generated
*/
export type ApproveUseAuthorityInstructionAccounts = {
useAuthorityRecord: web3.PublicKey;
owner: web3.PublicKey;
payer: web3.PublicKey;
user: web3.PublicKey;
ownerTokenAccount: web3.PublicKey;
metadata: web3.PublicKey;
mint: web3.PublicKey;
burner: web3.PublicKey;
tokenProgram?: web3.PublicKey;
systemProgram?: web3.PublicKey;
rent?: web3.PublicKey;
};
export declare const approveUseAuthorityInstructionDiscriminator = 20;
/**
* Creates a _ApproveUseAuthority_ 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 ApproveUseAuthority
* @category generated
*/
export declare function createApproveUseAuthorityInstruction(accounts: ApproveUseAuthorityInstructionAccounts, args: ApproveUseAuthorityInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
//# sourceMappingURL=ApproveUseAuthority.d.ts.map