UNPKG

@nosana/kit

Version:

Nosana KIT

43 lines (42 loc) 3.09 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 Address, type Codec, type Decoder, type Encoder, type IAccountMeta, type IInstruction, type IInstructionWithAccounts, type IInstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type WritableAccount } from '@solana/kit'; import { NOSANA_JOBS_PROGRAM_ADDRESS } from '../programs'; export declare const CLEAN_DISCRIMINATOR: Uint8Array<ArrayBuffer>; export declare function getCleanDiscriminatorBytes(): ReadonlyUint8Array; export type CleanInstruction<TProgram extends string = typeof NOSANA_JOBS_PROGRAM_ADDRESS, TAccountJob extends string | IAccountMeta<string> = string, TAccountMarket extends string | IAccountMeta<string> = string, TAccountPayer extends string | IAccountMeta<string> = string, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[ TAccountJob extends string ? WritableAccount<TAccountJob> : TAccountJob, TAccountMarket extends string ? ReadonlyAccount<TAccountMarket> : TAccountMarket, TAccountPayer extends string ? WritableAccount<TAccountPayer> : TAccountPayer, ...TRemainingAccounts ]>; export type CleanInstructionData = { discriminator: ReadonlyUint8Array; }; export type CleanInstructionDataArgs = {}; export declare function getCleanInstructionDataEncoder(): Encoder<CleanInstructionDataArgs>; export declare function getCleanInstructionDataDecoder(): Decoder<CleanInstructionData>; export declare function getCleanInstructionDataCodec(): Codec<CleanInstructionDataArgs, CleanInstructionData>; export type CleanInput<TAccountJob extends string = string, TAccountMarket extends string = string, TAccountPayer extends string = string> = { job: Address<TAccountJob>; market: Address<TAccountMarket>; payer: Address<TAccountPayer>; }; export declare function getCleanInstruction<TAccountJob extends string, TAccountMarket extends string, TAccountPayer extends string, TProgramAddress extends Address = typeof NOSANA_JOBS_PROGRAM_ADDRESS>(input: CleanInput<TAccountJob, TAccountMarket, TAccountPayer>, config?: { programAddress?: TProgramAddress; }): CleanInstruction<TProgramAddress, TAccountJob, TAccountMarket, TAccountPayer>; export type ParsedCleanInstruction<TProgram extends string = typeof NOSANA_JOBS_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = { programAddress: Address<TProgram>; accounts: { job: TAccountMetas[0]; market: TAccountMetas[1]; payer: TAccountMetas[2]; }; data: CleanInstructionData; }; export declare function parseCleanInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedCleanInstruction<TProgram, TAccountMetas>;