UNPKG

@orca-so/wavebreak

Version:

The wavebreak JS client for interacting with the wavebreak program.

36 lines (35 loc) 3.36 kB
import { AccountMeta, AccountSignerMeta, Address, FixedSizeCodec, FixedSizeDecoder, FixedSizeEncoder, Instruction, InstructionWithAccounts, InstructionWithData, ReadonlyAccount, ReadonlyUint8Array, TransactionSigner, WritableAccount, WritableSignerAccount } from '@solana/kit'; import { WAVEBREAK_PROGRAM_ADDRESS } from '../programs'; export declare const MINT_CONFIG_CLOSE_DISCRIMINATOR = 25; export declare function getMintConfigCloseDiscriminatorBytes(): ReadonlyUint8Array; export type MintConfigCloseInstruction<TProgram extends string = typeof WAVEBREAK_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountMintConfig extends string | AccountMeta<string> = string, TAccountAuthorityConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority, TAccountMintConfig extends string ? WritableAccount<TAccountMintConfig> : TAccountMintConfig, TAccountAuthorityConfig extends string ? ReadonlyAccount<TAccountAuthorityConfig> : TAccountAuthorityConfig, ...TRemainingAccounts ]>; export type MintConfigCloseInstructionData = { discriminator: number; }; export type MintConfigCloseInstructionDataArgs = {}; export declare function getMintConfigCloseInstructionDataEncoder(): FixedSizeEncoder<MintConfigCloseInstructionDataArgs>; export declare function getMintConfigCloseInstructionDataDecoder(): FixedSizeDecoder<MintConfigCloseInstructionData>; export declare function getMintConfigCloseInstructionDataCodec(): FixedSizeCodec<MintConfigCloseInstructionDataArgs, MintConfigCloseInstructionData>; export type MintConfigCloseInput<TAccountAuthority extends string = string, TAccountMintConfig extends string = string, TAccountAuthorityConfig extends string = string> = { authority: TransactionSigner<TAccountAuthority>; mintConfig: Address<TAccountMintConfig>; authorityConfig: Address<TAccountAuthorityConfig>; }; export declare function getMintConfigCloseInstruction<TAccountAuthority extends string, TAccountMintConfig extends string, TAccountAuthorityConfig extends string, TProgramAddress extends Address = typeof WAVEBREAK_PROGRAM_ADDRESS>(input: MintConfigCloseInput<TAccountAuthority, TAccountMintConfig, TAccountAuthorityConfig>, config?: { programAddress?: TProgramAddress; }): MintConfigCloseInstruction<TProgramAddress, TAccountAuthority, TAccountMintConfig, TAccountAuthorityConfig>; export type ParsedMintConfigCloseInstruction<TProgram extends string = typeof WAVEBREAK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = { programAddress: Address<TProgram>; accounts: { authority: TAccountMetas[0]; mintConfig: TAccountMetas[1]; authorityConfig: TAccountMetas[2]; }; data: MintConfigCloseInstructionData; }; export declare function parseMintConfigCloseInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedMintConfigCloseInstruction<TProgram, TAccountMetas>;