Closed Darkness4 closed 1 year ago
To match with the Go CLI client:
getAllowance
watchApproval
watchAllowance
getBalance
transferCredits
watchTransfer
watchBalance
Added lazy iterator getJobs:
getJobs
async *getJobs(walletAddress?: Hex): AsyncIterable<JobSummary> { const jobIds = await this.listJob(walletAddress); for (const jobId of jobIds) { yield await this.getJob(jobId); } }
waitForTransactionReceipt
watchNewJobRequest
watchJobTransition
FormatJobStatus(s: number): string
What's missing compared to Go:
Possible bugs:
To match with the Go CLI client:
getAllowance
,watchApproval
,watchAllowance
)getBalance
,transferCredits
,watchTransfer
,watchBalance
)Added lazy iterator
getJobs
:waitForTransactionReceipt
to avoid race conditions on some sensitive functionswatchNewJobRequest
andwatchJobTransition
FormatJobStatus(s: number): string
What's missing compared to Go:
Possible bugs: