UNPKG

@nosana/kit

Version:

Nosana KIT

43 lines (42 loc) 3.39 kB
/** * 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 AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from '@solana/kit'; import { NOSANA_JOBS_PROGRAM_ADDRESS } from '../programs/index.js'; export declare const CLEAN_ADMIN_DISCRIMINATOR: Uint8Array<ArrayBuffer>; export declare function getCleanAdminDiscriminatorBytes(): ReadonlyUint8Array; export type CleanAdminInstruction<TProgram extends string = typeof NOSANA_JOBS_PROGRAM_ADDRESS, TAccountJob extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[ TAccountJob extends string ? WritableAccount<TAccountJob> : TAccountJob, TAccountPayer extends string ? WritableAccount<TAccountPayer> : TAccountPayer, TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority, ...TRemainingAccounts ]>; export type CleanAdminInstructionData = { discriminator: ReadonlyUint8Array; }; export type CleanAdminInstructionDataArgs = {}; export declare function getCleanAdminInstructionDataEncoder(): FixedSizeEncoder<CleanAdminInstructionDataArgs>; export declare function getCleanAdminInstructionDataDecoder(): FixedSizeDecoder<CleanAdminInstructionData>; export declare function getCleanAdminInstructionDataCodec(): FixedSizeCodec<CleanAdminInstructionDataArgs, CleanAdminInstructionData>; export type CleanAdminInput<TAccountJob extends string = string, TAccountPayer extends string = string, TAccountAuthority extends string = string> = { job: Address<TAccountJob>; payer: Address<TAccountPayer>; authority: TransactionSigner<TAccountAuthority>; }; export declare function getCleanAdminInstruction<TAccountJob extends string, TAccountPayer extends string, TAccountAuthority extends string, TProgramAddress extends Address = typeof NOSANA_JOBS_PROGRAM_ADDRESS>(input: CleanAdminInput<TAccountJob, TAccountPayer, TAccountAuthority>, config?: { programAddress?: TProgramAddress; }): CleanAdminInstruction<TProgramAddress, TAccountJob, TAccountPayer, TAccountAuthority>; export type ParsedCleanAdminInstruction<TProgram extends string = typeof NOSANA_JOBS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = { programAddress: Address<TProgram>; accounts: { job: TAccountMetas[0]; payer: TAccountMetas[1]; authority: TAccountMetas[2]; }; data: CleanAdminInstructionData; }; export declare function parseCleanAdminInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCleanAdminInstruction<TProgram, TAccountMetas>;