@orca-so/wavebreak
Version:
The wavebreak JS client for interacting with the wavebreak program.
36 lines (35 loc) • 3.31 kB
TypeScript
import { Address, Codec, Decoder, Encoder, IAccountMeta, IAccountSignerMeta, IInstruction, IInstructionWithAccounts, IInstructionWithData, ReadonlyAccount, TransactionSigner, WritableAccount, WritableSignerAccount } from '@solana/kit';
import { WAVEBREAK_PROGRAM_ADDRESS } from '../programs';
export declare const MINT_CONFIG_CLOSE_DISCRIMINATOR = 25;
export declare function getMintConfigCloseDiscriminatorBytes(): import('@solana/kit').ReadonlyUint8Array;
export type MintConfigCloseInstruction<TProgram extends string = typeof WAVEBREAK_PROGRAM_ADDRESS, TAccountAuthority extends string | IAccountMeta<string> = string, TAccountMintConfig extends string | IAccountMeta<string> = string, TAccountAuthorityConfig extends string | IAccountMeta<string> = string, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<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(): Encoder<MintConfigCloseInstructionDataArgs>;
export declare function getMintConfigCloseInstructionDataDecoder(): Decoder<MintConfigCloseInstructionData>;
export declare function getMintConfigCloseInstructionDataCodec(): Codec<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 IAccountMeta[] = readonly IAccountMeta[]> = {
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 IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedMintConfigCloseInstruction<TProgram, TAccountMetas>;