@nosana/kit
Version:
Nosana KIT
43 lines (42 loc) • 3.31 kB
TypeScript
/**
* This code was AUTOGENERATED using the codama library.
* Please DO NOT EDIT THIS FILE, instead use visitors
* to add features, then rerun codama to update it.
*
* @see https://github.com/codama-idl/codama
*/
import { type Address, type Codec, type Decoder, type Encoder, type IAccountMeta, type IAccountSignerMeta, type IInstruction, type IInstructionWithAccounts, type IInstructionWithData, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from '@solana/kit';
import { NOSANA_JOBS_PROGRAM_ADDRESS } from '../programs';
export declare const QUIT_ADMIN_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
export declare function getQuitAdminDiscriminatorBytes(): ReadonlyUint8Array;
export type QuitAdminInstruction<TProgram extends string = typeof NOSANA_JOBS_PROGRAM_ADDRESS, TAccountRun extends string | IAccountMeta<string> = string, TAccountPayer extends string | IAccountMeta<string> = string, TAccountAuthority extends string | IAccountMeta<string> = string, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
TAccountRun extends string ? WritableAccount<TAccountRun> : TAccountRun,
TAccountPayer extends string ? WritableAccount<TAccountPayer> : TAccountPayer,
TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
...TRemainingAccounts
]>;
export type QuitAdminInstructionData = {
discriminator: ReadonlyUint8Array;
};
export type QuitAdminInstructionDataArgs = {};
export declare function getQuitAdminInstructionDataEncoder(): Encoder<QuitAdminInstructionDataArgs>;
export declare function getQuitAdminInstructionDataDecoder(): Decoder<QuitAdminInstructionData>;
export declare function getQuitAdminInstructionDataCodec(): Codec<QuitAdminInstructionDataArgs, QuitAdminInstructionData>;
export type QuitAdminInput<TAccountRun extends string = string, TAccountPayer extends string = string, TAccountAuthority extends string = string> = {
run: Address<TAccountRun>;
payer: Address<TAccountPayer>;
authority: TransactionSigner<TAccountAuthority>;
};
export declare function getQuitAdminInstruction<TAccountRun extends string, TAccountPayer extends string, TAccountAuthority extends string, TProgramAddress extends Address = typeof NOSANA_JOBS_PROGRAM_ADDRESS>(input: QuitAdminInput<TAccountRun, TAccountPayer, TAccountAuthority>, config?: {
programAddress?: TProgramAddress;
}): QuitAdminInstruction<TProgramAddress, TAccountRun, TAccountPayer, TAccountAuthority>;
export type ParsedQuitAdminInstruction<TProgram extends string = typeof NOSANA_JOBS_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
programAddress: Address<TProgram>;
accounts: {
run: TAccountMetas[0];
payer: TAccountMetas[1];
authority: TAccountMetas[2];
};
data: QuitAdminInstructionData;
};
export declare function parseQuitAdminInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedQuitAdminInstruction<TProgram, TAccountMetas>;