UNPKG

@nosana/kit

Version:

Nosana KIT

43 lines (42 loc) 3.25 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 IAccountSignerMeta, type IInstruction, type IInstructionWithAccounts, type IInstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from '@solana/kit'; import { NOSANA_JOBS_PROGRAM_ADDRESS } from '../programs'; export declare const STOP_DISCRIMINATOR: Uint8Array<ArrayBuffer>; export declare function getStopDiscriminatorBytes(): ReadonlyUint8Array; export type StopInstruction<TProgram extends string = typeof NOSANA_JOBS_PROGRAM_ADDRESS, TAccountMarket extends string | IAccountMeta<string> = string, TAccountNode extends string | IAccountMeta<string> = string, TAccountAuthority extends string | IAccountMeta<string> = string, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[ TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket, TAccountNode extends string ? ReadonlyAccount<TAccountNode> : TAccountNode, TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority, ...TRemainingAccounts ]>; export type StopInstructionData = { discriminator: ReadonlyUint8Array; }; export type StopInstructionDataArgs = {}; export declare function getStopInstructionDataEncoder(): Encoder<StopInstructionDataArgs>; export declare function getStopInstructionDataDecoder(): Decoder<StopInstructionData>; export declare function getStopInstructionDataCodec(): Codec<StopInstructionDataArgs, StopInstructionData>; export type StopInput<TAccountMarket extends string = string, TAccountNode extends string = string, TAccountAuthority extends string = string> = { market: Address<TAccountMarket>; node: Address<TAccountNode>; authority: TransactionSigner<TAccountAuthority>; }; export declare function getStopInstruction<TAccountMarket extends string, TAccountNode extends string, TAccountAuthority extends string, TProgramAddress extends Address = typeof NOSANA_JOBS_PROGRAM_ADDRESS>(input: StopInput<TAccountMarket, TAccountNode, TAccountAuthority>, config?: { programAddress?: TProgramAddress; }): StopInstruction<TProgramAddress, TAccountMarket, TAccountNode, TAccountAuthority>; export type ParsedStopInstruction<TProgram extends string = typeof NOSANA_JOBS_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = { programAddress: Address<TProgram>; accounts: { market: TAccountMetas[0]; node: TAccountMetas[1]; authority: TAccountMetas[2]; }; data: StopInstructionData; }; export declare function parseStopInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedStopInstruction<TProgram, TAccountMetas>;