Skip to content
Nosana Kit
Search
Main Navigation
Home
Guide
Examples
SDK Reference
Appearance
Menu
Return to top
On this page
JobsClient
Functions
Function
Description
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
-
getJobAccountCodec
Gets the codec for
JobAccount
account data.
getJobAccountDecoder
Gets the decoder for
JobAccount
account data.
getJobAccountDiscriminatorBytes
-
getJobAccountEncoder
Gets the encoder for
JobAccountArgs
account data.
getJobAccountSize
-
getJobStateCodec
-
getJobStateDecoder
-
getJobStateEncoder
-
getJobTypeCodec
-
getJobTypeDecoder
-
getJobTypeEncoder
-
getListDiscriminatorBytes
-
getListInstruction
-
getListInstructionDataCodec
-
getListInstructionDataDecoder
-
getListInstructionDataEncoder
-
getMarketAccountCodec
Gets the codec for
MarketAccount
account data.
getMarketAccountDecoder
Gets the decoder for
MarketAccount
account data.
getMarketAccountDiscriminatorBytes
-
getMarketAccountEncoder
Gets 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
-
getRunAccountCodec
Gets the codec for
RunAccount
account data.
getRunAccountDecoder
Gets the decoder for
RunAccount
account data.
getRunAccountDiscriminatorBytes
-
getRunAccountEncoder
Gets 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 Alias
Description
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
-
JobAccount
The
JobAccount
struct holds all the information about any individual jobs.
JobAccountArgs
-
JobState
-
JobStateArgs
-
JobType
-
JobTypeArgs
-
ListInput
-
ListInstruction
-
ListInstructionAccountName
-
ListInstructionData
-
ListInstructionDataArgs
-
MarketAccount
The
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
-
RunAccount
The
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
Variable
Description
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
-
JobState
The
JobState
describes the status of a job.
JobType
The
JobType
describes the type of any job.
LIST_DISCRIMINATOR
-
LIST_INSTRUCTION_ACCOUNTS
-
MARKET_ACCOUNT_DISCRIMINATOR
-
NOSANA_JOBS_ERROR__INVALID_JOB_ACCOUNT
InvalidJobAccount: This job account is not valid.
NOSANA_JOBS_ERROR__INVALID_MARKET_ACCOUNT
InvalidMarketAccount: This market account is not valid.
NOSANA_JOBS_ERROR__JOB_IN_WRONG_STATE
JobInWrongState: This job does not have the right status.
NOSANA_JOBS_ERROR__JOB_INVALID_PROJECT
JobInvalidProject: The job has a different project owner.
NOSANA_JOBS_ERROR__JOB_INVALID_RUN_ACCOUNT
JobInvalidRunAccount: The run account does not match the job.
NOSANA_JOBS_ERROR__JOB_NOT_EXPIRED
JobNotExpired: The job has not yet expired.
NOSANA_JOBS_ERROR__JOB_RESULT_NULL
JobResultNull: The job result can not be null.
NOSANA_JOBS_ERROR__JOB_RESULTS_ALREADY_SET
JobResultsAlreadySet: The job results are already set.
NOSANA_JOBS_ERROR__JOB_TIMEOUT_NOT_GREATER
JobTimeoutNotGreater: The new job timeout should be larger than the current one.
NOSANA_JOBS_ERROR__MARKET_IN_WRONG_STATE
MarketInWrongState: This market does not have the right status.
NOSANA_JOBS_ERROR__NODE_ALREADY_QUEUED
NodeAlreadyQueued: This node is already present in the queue.
NOSANA_JOBS_ERROR__NODE_KEY_INVALID_COLLECTION
NodeKeyInvalidCollection: This access key does not belong to a verified collection.
NOSANA_JOBS_ERROR__NODE_NFT_INVALID_AMOUNT
NodeNftInvalidAmount: Access NFT amount cannot be 0.
NOSANA_JOBS_ERROR__NODE_NFT_WRONG_METADATA
NodeNftWrongMetadata: This metadata does not have the correct address.
NOSANA_JOBS_ERROR__NODE_NFT_WRONG_OWNER
NodeNftWrongOwner: This NFT is not owned by this node.
NOSANA_JOBS_ERROR__NODE_NOT_ENOUGH_STAKE
NodeNotEnoughStake: This node has not staked enough tokens.
NOSANA_JOBS_ERROR__NODE_QUEUE_DOES_NOT_MATCH
NodeQueueDoesNotMatch: This node queue does not match.
NOSANA_JOBS_ERROR__NODE_STAKE_UNAUTHORIZED
NodeStakeUnauthorized: This node is not authorizing this stake.
NOSANA_JOBS_ERROR__NOT_IN_MARKET_QUEUE
NotInMarketQueue: Account cannot be find account in market queue.
NOSANA_JOBS_PROGRAM_ADDRESS
-
NosanaJobsAccount
-
NosanaJobsInstruction
-
OPEN_DISCRIMINATOR
-
OPEN_INSTRUCTION_ACCOUNTS
-
QueueType
The
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
-