UNPKG

@nosana/kit

Version:

Nosana KIT

43 lines (42 loc) 3.15 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 Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type WritableAccount } from '@solana/kit'; import { NOSANA_JOBS_PROGRAM_ADDRESS } from '../programs/index.js'; 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 | AccountMeta<string> = string, TAccountMarket extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[ 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(): FixedSizeEncoder<CleanInstructionDataArgs>; export declare function getCleanInstructionDataDecoder(): FixedSizeDecoder<CleanInstructionData>; export declare function getCleanInstructionDataCodec(): FixedSizeCodec<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 AccountMeta[] = readonly AccountMeta[]> = { 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 AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCleanInstruction<TProgram, TAccountMetas>;