Skip to content

JobsClient

Functions

FunctionDescription
decodeJobAccount-
decodeMarketAccount-
decodeRunAccount-
fetchAllJobAccount-
fetchAllMarketAccount-
fetchAllMaybeJobAccount-
fetchAllMaybeMarketAccount-
fetchAllMaybeRunAccount-
fetchAllRunAccount-
fetchJobAccount-
fetchMarketAccount-
fetchMaybeJobAccount-
fetchMaybeMarketAccount-
fetchMaybeRunAccount-
fetchRunAccount-
getAssignDiscriminatorBytes-
getAssignInstruction-
getAssignInstructionDataCodec-
getAssignInstructionDataDecoder-
getAssignInstructionDataEncoder-
getClaimDiscriminatorBytes-
getClaimInstruction-
getClaimInstructionDataCodec-
getClaimInstructionDataDecoder-
getClaimInstructionDataEncoder-
getCleanAdminDiscriminatorBytes-
getCleanAdminInstruction-
getCleanAdminInstructionDataCodec-
getCleanAdminInstructionDataDecoder-
getCleanAdminInstructionDataEncoder-
getCleanDiscriminatorBytes-
getCleanInstruction-
getCleanInstructionDataCodec-
getCleanInstructionDataDecoder-
getCleanInstructionDataEncoder-
getCloseAdminDiscriminatorBytes-
getCloseAdminInstruction-
getCloseAdminInstructionDataCodec-
getCloseAdminInstructionDataDecoder-
getCloseAdminInstructionDataEncoder-
getCloseDiscriminatorBytes-
getCloseInstruction-
getCloseInstructionDataCodec-
getCloseInstructionDataDecoder-
getCloseInstructionDataEncoder-
getCompleteDiscriminatorBytes-
getCompleteInstruction-
getCompleteInstructionDataCodec-
getCompleteInstructionDataDecoder-
getCompleteInstructionDataEncoder-
getDelistDiscriminatorBytes-
getDelistInstruction-
getDelistInstructionDataCodec-
getDelistInstructionDataDecoder-
getDelistInstructionDataEncoder-
getEndDiscriminatorBytes-
getEndInstruction-
getEndInstructionDataCodec-
getEndInstructionDataDecoder-
getEndInstructionDataEncoder-
getExtendDiscriminatorBytes-
getExtendInstruction-
getExtendInstructionDataCodec-
getExtendInstructionDataDecoder-
getExtendInstructionDataEncoder-
getFinishDiscriminatorBytes-
getFinishInstruction-
getFinishInstructionDataCodec-
getFinishInstructionDataDecoder-
getFinishInstructionDataEncoder-
getJobAccountCodecGets the codec for JobAccount account data.
getJobAccountDecoderGets the decoder for JobAccount account data.
getJobAccountDiscriminatorBytes-
getJobAccountEncoderGets the encoder for JobAccountArgs account data.
getJobAccountSize-
getJobStateCodec-
getJobStateDecoder-
getJobStateEncoder-
getJobTypeCodec-
getJobTypeDecoder-
getJobTypeEncoder-
getListDiscriminatorBytes-
getListInstruction-
getListInstructionDataCodec-
getListInstructionDataDecoder-
getListInstructionDataEncoder-
getMarketAccountCodecGets the codec for MarketAccount account data.
getMarketAccountDecoderGets the decoder for MarketAccount account data.
getMarketAccountDiscriminatorBytes-
getMarketAccountEncoderGets the encoder for MarketAccountArgs account data.
getNosanaJobsErrorMessage-
getOpenDiscriminatorBytes-
getOpenInstruction-
getOpenInstructionDataCodec-
getOpenInstructionDataDecoder-
getOpenInstructionDataEncoder-
getQueueTypeCodec-
getQueueTypeDecoder-
getQueueTypeEncoder-
getQuitAdminDiscriminatorBytes-
getQuitAdminInstruction-
getQuitAdminInstructionDataCodec-
getQuitAdminInstructionDataDecoder-
getQuitAdminInstructionDataEncoder-
getQuitDiscriminatorBytes-
getQuitInstruction-
getQuitInstructionDataCodec-
getQuitInstructionDataDecoder-
getQuitInstructionDataEncoder-
getRecoverDiscriminatorBytes-
getRecoverInstruction-
getRecoverInstructionDataCodec-
getRecoverInstructionDataDecoder-
getRecoverInstructionDataEncoder-
getRunAccountCodecGets the codec for RunAccount account data.
getRunAccountDecoderGets the decoder for RunAccount account data.
getRunAccountDiscriminatorBytes-
getRunAccountEncoderGets the encoder for RunAccountArgs account data.
getRunAccountSize-
getStopDiscriminatorBytes-
getStopInstruction-
getStopInstructionDataCodec-
getStopInstructionDataDecoder-
getStopInstructionDataEncoder-
getUpdateDiscriminatorBytes-
getUpdateInstruction-
getUpdateInstructionDataCodec-
getUpdateInstructionDataDecoder-
getUpdateInstructionDataEncoder-
getWorkDiscriminatorBytes-
getWorkInstruction-
getWorkInstructionDataCodec-
getWorkInstructionDataDecoder-
getWorkInstructionDataEncoder-
identifyNosanaJobsAccount-
identifyNosanaJobsInstruction-
isNosanaJobsError-
parseAssignInstruction-
parseClaimInstruction-
parseCleanAdminInstruction-
parseCleanInstruction-
parseCloseAdminInstruction-
parseCloseInstruction-
parseCompleteInstruction-
parseDelistInstruction-
parseEndInstruction-
parseExtendInstruction-
parseFinishInstruction-
parseListInstruction-
parseOpenInstruction-
parseQuitAdminInstruction-
parseQuitInstruction-
parseRecoverInstruction-
parseStopInstruction-
parseUpdateInstruction-
parseWorkInstruction-

Type Aliases

Type AliasDescription
AssignInput-
AssignInstruction-
AssignInstructionAccountName-
AssignInstructionData-
AssignInstructionDataArgs-
ClaimInput-
ClaimInstruction-
ClaimInstructionAccountName-
ClaimInstructionData-
ClaimInstructionDataArgs-
CleanAdminInput-
CleanAdminInstruction-
CleanAdminInstructionAccountName-
CleanAdminInstructionData-
CleanAdminInstructionDataArgs-
CleanInput-
CleanInstruction-
CleanInstructionAccountName-
CleanInstructionData-
CleanInstructionDataArgs-
CloseAdminInput-
CloseAdminInstruction-
CloseAdminInstructionAccountName-
CloseAdminInstructionData-
CloseAdminInstructionDataArgs-
CloseInput-
CloseInstruction-
CloseInstructionAccountName-
CloseInstructionData-
CloseInstructionDataArgs-
CompleteInput-
CompleteInstruction-
CompleteInstructionAccountName-
CompleteInstructionData-
CompleteInstructionDataArgs-
DelistInput-
DelistInstruction-
DelistInstructionAccountName-
DelistInstructionData-
DelistInstructionDataArgs-
EndInput-
EndInstruction-
EndInstructionAccountName-
EndInstructionData-
EndInstructionDataArgs-
ExtendInput-
ExtendInstruction-
ExtendInstructionAccountName-
ExtendInstructionData-
ExtendInstructionDataArgs-
FinishInput-
FinishInstruction-
FinishInstructionAccountName-
FinishInstructionData-
FinishInstructionDataArgs-
JobAccountThe JobAccount struct holds all the information about any individual jobs.
JobAccountArgs-
JobState-
JobStateArgs-
JobType-
JobTypeArgs-
ListInput-
ListInstruction-
ListInstructionAccountName-
ListInstructionData-
ListInstructionDataArgs-
MarketAccountThe MarketAccount struct holds all the information about jobs and the nodes queue.
MarketAccountArgs-
NosanaJobsAccount-
NosanaJobsError-
NosanaJobsInstruction-
OpenInput-
OpenInstruction-
OpenInstructionAccountName-
OpenInstructionData-
OpenInstructionDataArgs-
ParsedAssignInstruction-
ParsedClaimInstruction-
ParsedCleanAdminInstruction-
ParsedCleanInstruction-
ParsedCloseAdminInstruction-
ParsedCloseInstruction-
ParsedCompleteInstruction-
ParsedDelistInstruction-
ParsedEndInstruction-
ParsedExtendInstruction-
ParsedFinishInstruction-
ParsedListInstruction-
ParsedNosanaJobsInstruction-
ParsedOpenInstruction-
ParsedQuitAdminInstruction-
ParsedQuitInstruction-
ParsedRecoverInstruction-
ParsedStopInstruction-
ParsedUpdateInstruction-
ParsedWorkInstruction-
QueueType-
QueueTypeArgs-
QuitAdminInput-
QuitAdminInstruction-
QuitAdminInstructionAccountName-
QuitAdminInstructionData-
QuitAdminInstructionDataArgs-
QuitInput-
QuitInstruction-
QuitInstructionAccountName-
QuitInstructionData-
QuitInstructionDataArgs-
RecoverInput-
RecoverInstruction-
RecoverInstructionAccountName-
RecoverInstructionData-
RecoverInstructionDataArgs-
RunAccountThe RunAccount struct holds temporary information that matches nodes to jobs.
RunAccountArgs-
StopInput-
StopInstruction-
StopInstructionAccountName-
StopInstructionData-
StopInstructionDataArgs-
UpdateInput-
UpdateInstruction-
UpdateInstructionAccountName-
UpdateInstructionData-
UpdateInstructionDataArgs-
WorkInput-
WorkInstruction-
WorkInstructionAccountName-
WorkInstructionData-
WorkInstructionDataArgs-

Variables

VariableDescription
ASSIGN_DISCRIMINATOR-
ASSIGN_INSTRUCTION_ACCOUNTS-
CLAIM_DISCRIMINATOR-
CLAIM_INSTRUCTION_ACCOUNTS-
CLEAN_ADMIN_DISCRIMINATOR-
CLEAN_ADMIN_INSTRUCTION_ACCOUNTS-
CLEAN_DISCRIMINATOR-
CLEAN_INSTRUCTION_ACCOUNTS-
CLOSE_ADMIN_DISCRIMINATOR-
CLOSE_ADMIN_INSTRUCTION_ACCOUNTS-
CLOSE_DISCRIMINATOR-
CLOSE_INSTRUCTION_ACCOUNTS-
COMPLETE_DISCRIMINATOR-
COMPLETE_INSTRUCTION_ACCOUNTS-
DELIST_DISCRIMINATOR-
DELIST_INSTRUCTION_ACCOUNTS-
END_DISCRIMINATOR-
END_INSTRUCTION_ACCOUNTS-
EXTEND_DISCRIMINATOR-
EXTEND_INSTRUCTION_ACCOUNTS-
FINISH_DISCRIMINATOR-
FINISH_INSTRUCTION_ACCOUNTS-
JOB_ACCOUNT_DISCRIMINATOR-
JobStateThe JobState describes the status of a job.
JobTypeThe JobType describes the type of any job.
LIST_DISCRIMINATOR-
LIST_INSTRUCTION_ACCOUNTS-
MARKET_ACCOUNT_DISCRIMINATOR-
NOSANA_JOBS_ERROR__INVALID_JOB_ACCOUNTInvalidJobAccount: This job account is not valid.
NOSANA_JOBS_ERROR__INVALID_MARKET_ACCOUNTInvalidMarketAccount: This market account is not valid.
NOSANA_JOBS_ERROR__JOB_IN_WRONG_STATEJobInWrongState: This job does not have the right status.
NOSANA_JOBS_ERROR__JOB_INVALID_PROJECTJobInvalidProject: The job has a different project owner.
NOSANA_JOBS_ERROR__JOB_INVALID_RUN_ACCOUNTJobInvalidRunAccount: The run account does not match the job.
NOSANA_JOBS_ERROR__JOB_NOT_EXPIREDJobNotExpired: The job has not yet expired.
NOSANA_JOBS_ERROR__JOB_RESULT_NULLJobResultNull: The job result can not be null.
NOSANA_JOBS_ERROR__JOB_RESULTS_ALREADY_SETJobResultsAlreadySet: The job results are already set.
NOSANA_JOBS_ERROR__JOB_TIMEOUT_NOT_GREATERJobTimeoutNotGreater: The new job timeout should be larger than the current one.
NOSANA_JOBS_ERROR__MARKET_IN_WRONG_STATEMarketInWrongState: This market does not have the right status.
NOSANA_JOBS_ERROR__NODE_ALREADY_QUEUEDNodeAlreadyQueued: This node is already present in the queue.
NOSANA_JOBS_ERROR__NODE_KEY_INVALID_COLLECTIONNodeKeyInvalidCollection: This access key does not belong to a verified collection.
NOSANA_JOBS_ERROR__NODE_NFT_INVALID_AMOUNTNodeNftInvalidAmount: Access NFT amount cannot be 0.
NOSANA_JOBS_ERROR__NODE_NFT_WRONG_METADATANodeNftWrongMetadata: This metadata does not have the correct address.
NOSANA_JOBS_ERROR__NODE_NFT_WRONG_OWNERNodeNftWrongOwner: This NFT is not owned by this node.
NOSANA_JOBS_ERROR__NODE_NOT_ENOUGH_STAKENodeNotEnoughStake: This node has not staked enough tokens.
NOSANA_JOBS_ERROR__NODE_QUEUE_DOES_NOT_MATCHNodeQueueDoesNotMatch: This node queue does not match.
NOSANA_JOBS_ERROR__NODE_STAKE_UNAUTHORIZEDNodeStakeUnauthorized: This node is not authorizing this stake.
NOSANA_JOBS_ERROR__NOT_IN_MARKET_QUEUENotInMarketQueue: Account cannot be find account in market queue.
NOSANA_JOBS_PROGRAM_ADDRESS-
NosanaJobsAccount-
NosanaJobsInstruction-
OPEN_DISCRIMINATOR-
OPEN_INSTRUCTION_ACCOUNTS-
QueueTypeThe QueueType describes the type of queue
QUIT_ADMIN_DISCRIMINATOR-
QUIT_ADMIN_INSTRUCTION_ACCOUNTS-
QUIT_DISCRIMINATOR-
QUIT_INSTRUCTION_ACCOUNTS-
RECOVER_DISCRIMINATOR-
RECOVER_INSTRUCTION_ACCOUNTS-
RUN_ACCOUNT_DISCRIMINATOR-
STOP_DISCRIMINATOR-
STOP_INSTRUCTION_ACCOUNTS-
UPDATE_DISCRIMINATOR-
UPDATE_INSTRUCTION_ACCOUNTS-
WORK_DISCRIMINATOR-
WORK_INSTRUCTION_ACCOUNTS-