@nosana/kit
Version:
Nosana KIT
84 lines (83 loc) • 4.25 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 ReadonlyUint8Array } from '@solana/kit';
import { type ParsedAssignInstruction, type ParsedClaimInstruction, type ParsedCleanAdminInstruction, type ParsedCleanInstruction, type ParsedCloseAdminInstruction, type ParsedCloseInstruction, type ParsedCompleteInstruction, type ParsedDelistInstruction, type ParsedEndInstruction, type ParsedExtendInstruction, type ParsedFinishInstruction, type ParsedListInstruction, type ParsedOpenInstruction, type ParsedQuitAdminInstruction, type ParsedQuitInstruction, type ParsedRecoverInstruction, type ParsedStopInstruction, type ParsedUpdateInstruction, type ParsedWorkInstruction } from '../instructions/index.js';
export declare const NOSANA_JOBS_PROGRAM_ADDRESS: Address<"">;
export declare const NosanaJobsAccount: {
readonly MarketAccount: "MarketAccount";
readonly JobAccount: "JobAccount";
readonly RunAccount: "RunAccount";
};
export type NosanaJobsAccount = (typeof NosanaJobsAccount)[keyof typeof NosanaJobsAccount];
export declare function identifyNosanaJobsAccount(account: {
data: ReadonlyUint8Array;
} | ReadonlyUint8Array): NosanaJobsAccount;
export declare const NosanaJobsInstruction: {
readonly Open: "Open";
readonly Update: "Update";
readonly Close: "Close";
readonly CloseAdmin: "CloseAdmin";
readonly Assign: "Assign";
readonly List: "List";
readonly Delist: "Delist";
readonly Recover: "Recover";
readonly Extend: "Extend";
readonly End: "End";
readonly Work: "Work";
readonly Stop: "Stop";
readonly Claim: "Claim";
readonly Complete: "Complete";
readonly Finish: "Finish";
readonly Quit: "Quit";
readonly QuitAdmin: "QuitAdmin";
readonly Clean: "Clean";
readonly CleanAdmin: "CleanAdmin";
};
export type NosanaJobsInstruction = (typeof NosanaJobsInstruction)[keyof typeof NosanaJobsInstruction];
export declare function identifyNosanaJobsInstruction(instruction: {
data: ReadonlyUint8Array;
} | ReadonlyUint8Array): NosanaJobsInstruction;
export type ParsedNosanaJobsInstruction<TProgram extends string = ''> = ({
instructionType: typeof NosanaJobsInstruction.Open;
} & ParsedOpenInstruction<TProgram>) | ({
instructionType: typeof NosanaJobsInstruction.Update;
} & ParsedUpdateInstruction<TProgram>) | ({
instructionType: typeof NosanaJobsInstruction.Close;
} & ParsedCloseInstruction<TProgram>) | ({
instructionType: typeof NosanaJobsInstruction.CloseAdmin;
} & ParsedCloseAdminInstruction<TProgram>) | ({
instructionType: typeof NosanaJobsInstruction.Assign;
} & ParsedAssignInstruction<TProgram>) | ({
instructionType: typeof NosanaJobsInstruction.List;
} & ParsedListInstruction<TProgram>) | ({
instructionType: typeof NosanaJobsInstruction.Delist;
} & ParsedDelistInstruction<TProgram>) | ({
instructionType: typeof NosanaJobsInstruction.Recover;
} & ParsedRecoverInstruction<TProgram>) | ({
instructionType: typeof NosanaJobsInstruction.Extend;
} & ParsedExtendInstruction<TProgram>) | ({
instructionType: typeof NosanaJobsInstruction.End;
} & ParsedEndInstruction<TProgram>) | ({
instructionType: typeof NosanaJobsInstruction.Work;
} & ParsedWorkInstruction<TProgram>) | ({
instructionType: typeof NosanaJobsInstruction.Stop;
} & ParsedStopInstruction<TProgram>) | ({
instructionType: typeof NosanaJobsInstruction.Claim;
} & ParsedClaimInstruction<TProgram>) | ({
instructionType: typeof NosanaJobsInstruction.Complete;
} & ParsedCompleteInstruction<TProgram>) | ({
instructionType: typeof NosanaJobsInstruction.Finish;
} & ParsedFinishInstruction<TProgram>) | ({
instructionType: typeof NosanaJobsInstruction.Quit;
} & ParsedQuitInstruction<TProgram>) | ({
instructionType: typeof NosanaJobsInstruction.QuitAdmin;
} & ParsedQuitAdminInstruction<TProgram>) | ({
instructionType: typeof NosanaJobsInstruction.Clean;
} & ParsedCleanInstruction<TProgram>) | ({
instructionType: typeof NosanaJobsInstruction.CleanAdmin;
} & ParsedCleanAdminInstruction<TProgram>);