@nosana/kit
Version:
Nosana KIT
79 lines (78 loc) • 3.51 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 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';
export declare const NOSANA_JOBS_PROGRAM_ADDRESS: Address<"nosJTmGQxvwXy23vng5UjkTbfv91Bzf9jEuro78dAGR">;
export declare enum NosanaJobsAccount {
MarketAccount = 0,
JobAccount = 1,
RunAccount = 2
}
export declare function identifyNosanaJobsAccount(account: {
data: ReadonlyUint8Array;
} | ReadonlyUint8Array): NosanaJobsAccount;
export declare enum NosanaJobsInstruction {
Open = 0,
Update = 1,
Close = 2,
CloseAdmin = 3,
List = 4,
Delist = 5,
Recover = 6,
Extend = 7,
End = 8,
Work = 9,
Stop = 10,
Claim = 11,
Complete = 12,
Finish = 13,
Quit = 14,
QuitAdmin = 15,
Clean = 16,
CleanAdmin = 17
}
export declare function identifyNosanaJobsInstruction(instruction: {
data: ReadonlyUint8Array;
} | ReadonlyUint8Array): NosanaJobsInstruction;
export type ParsedNosanaJobsInstruction<TProgram extends string = 'nosJTmGQxvwXy23vng5UjkTbfv91Bzf9jEuro78dAGR'> = ({
instructionType: NosanaJobsInstruction.Open;
} & ParsedOpenInstruction<TProgram>) | ({
instructionType: NosanaJobsInstruction.Update;
} & ParsedUpdateInstruction<TProgram>) | ({
instructionType: NosanaJobsInstruction.Close;
} & ParsedCloseInstruction<TProgram>) | ({
instructionType: NosanaJobsInstruction.CloseAdmin;
} & ParsedCloseAdminInstruction<TProgram>) | ({
instructionType: NosanaJobsInstruction.List;
} & ParsedListInstruction<TProgram>) | ({
instructionType: NosanaJobsInstruction.Delist;
} & ParsedDelistInstruction<TProgram>) | ({
instructionType: NosanaJobsInstruction.Recover;
} & ParsedRecoverInstruction<TProgram>) | ({
instructionType: NosanaJobsInstruction.Extend;
} & ParsedExtendInstruction<TProgram>) | ({
instructionType: NosanaJobsInstruction.End;
} & ParsedEndInstruction<TProgram>) | ({
instructionType: NosanaJobsInstruction.Work;
} & ParsedWorkInstruction<TProgram>) | ({
instructionType: NosanaJobsInstruction.Stop;
} & ParsedStopInstruction<TProgram>) | ({
instructionType: NosanaJobsInstruction.Claim;
} & ParsedClaimInstruction<TProgram>) | ({
instructionType: NosanaJobsInstruction.Complete;
} & ParsedCompleteInstruction<TProgram>) | ({
instructionType: NosanaJobsInstruction.Finish;
} & ParsedFinishInstruction<TProgram>) | ({
instructionType: NosanaJobsInstruction.Quit;
} & ParsedQuitInstruction<TProgram>) | ({
instructionType: NosanaJobsInstruction.QuitAdmin;
} & ParsedQuitAdminInstruction<TProgram>) | ({
instructionType: NosanaJobsInstruction.Clean;
} & ParsedCleanInstruction<TProgram>) | ({
instructionType: NosanaJobsInstruction.CleanAdmin;
} & ParsedCleanAdminInstruction<TProgram>);