From b90fa787032b840c89d3abac8c7bdd5a2e70c5a0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 21 Nov 2025 13:39:10 +0000 Subject: [PATCH 1/4] chore(deps): bump minio from 7.1.3 to 8.0.6 Bumps [minio](https://github.com/minio/minio-js) from 7.1.3 to 8.0.6. - [Release notes](https://github.com/minio/minio-js/releases) - [Commits](https://github.com/minio/minio-js/compare/7.1.3...8.0.6) --- updated-dependencies: - dependency-name: minio dependency-version: 8.0.6 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .../exchange-oracle/server/package.json | 2 +- .../fortune/recording-oracle/package.json | 2 +- .../apps/job-launcher/server/package.json | 2 +- .../reputation-oracle/server/package.json | 2 +- .../human-protocol-sdk/package.json | 2 +- yarn.lock | 43 ++++++++++++++++--- 6 files changed, 41 insertions(+), 12 deletions(-) diff --git a/packages/apps/fortune/exchange-oracle/server/package.json b/packages/apps/fortune/exchange-oracle/server/package.json index 200a8b103d..05c40a846a 100644 --- a/packages/apps/fortune/exchange-oracle/server/package.json +++ b/packages/apps/fortune/exchange-oracle/server/package.json @@ -50,7 +50,7 @@ "ethers": "~6.15.0", "joi": "^17.13.3", "jsonwebtoken": "^9.0.2", - "minio": "7.1.3", + "minio": "8.0.6", "passport": "^0.7.0", "passport-jwt": "^4.0.1", "pg": "8.13.1", diff --git a/packages/apps/fortune/recording-oracle/package.json b/packages/apps/fortune/recording-oracle/package.json index e345eda085..4c946d8cf7 100644 --- a/packages/apps/fortune/recording-oracle/package.json +++ b/packages/apps/fortune/recording-oracle/package.json @@ -38,7 +38,7 @@ "dotenv": "^17.2.2", "helmet": "^7.1.0", "joi": "^17.13.3", - "minio": "7.1.3", + "minio": "8.0.6", "reflect-metadata": "^0.2.2", "rxjs": "^7.2.0" }, diff --git a/packages/apps/job-launcher/server/package.json b/packages/apps/job-launcher/server/package.json index 045925b139..ae9410ca26 100644 --- a/packages/apps/job-launcher/server/package.json +++ b/packages/apps/job-launcher/server/package.json @@ -59,7 +59,7 @@ "helmet": "^7.1.0", "joi": "^17.13.3", "json-stable-stringify": "^1.2.1", - "minio": "7.1.3", + "minio": "8.0.6", "nestjs-minio-client": "^2.2.0", "node-cache": "^5.1.2", "passport": "^0.7.0", diff --git a/packages/apps/reputation-oracle/server/package.json b/packages/apps/reputation-oracle/server/package.json index 017b71be37..9a548e6d81 100644 --- a/packages/apps/reputation-oracle/server/package.json +++ b/packages/apps/reputation-oracle/server/package.json @@ -59,7 +59,7 @@ "joi": "^17.13.3", "json-stable-stringify": "^1.2.1", "lodash": "^4.17.21", - "minio": "7.1.3", + "minio": "8.0.6", "passport": "^0.7.0", "passport-jwt": "^4.0.1", "pg": "8.13.1", diff --git a/packages/sdk/typescript/human-protocol-sdk/package.json b/packages/sdk/typescript/human-protocol-sdk/package.json index cc8f68f444..090d111d4c 100644 --- a/packages/sdk/typescript/human-protocol-sdk/package.json +++ b/packages/sdk/typescript/human-protocol-sdk/package.json @@ -44,7 +44,7 @@ "graphql": "^16.8.1", "graphql-request": "^6.1.0", "graphql-tag": "^2.12.6", - "minio": "7.1.3", + "minio": "8.0.6", "openpgp": "^5.11.2", "secp256k1": "^5.0.1", "validator": "^13.12.0", diff --git a/yarn.lock b/yarn.lock index 028d2ea7a3..4398bc42a2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -327,7 +327,7 @@ __metadata: jest: "npm:29.7.0" joi: "npm:^17.13.3" jsonwebtoken: "npm:^9.0.2" - minio: "npm:7.1.3" + minio: "npm:8.0.6" passport: "npm:^0.7.0" passport-jwt: "npm:^4.0.1" pg: "npm:8.13.1" @@ -372,7 +372,7 @@ __metadata: helmet: "npm:^7.1.0" jest: "npm:^29.7.0" joi: "npm:^17.13.3" - minio: "npm:7.1.3" + minio: "npm:8.0.6" prettier: "npm:^3.4.2" reflect-metadata: "npm:^0.2.2" rxjs: "npm:^7.2.0" @@ -638,7 +638,7 @@ __metadata: jest: "npm:29.7.0" joi: "npm:^17.13.3" json-stable-stringify: "npm:^1.2.1" - minio: "npm:7.1.3" + minio: "npm:8.0.6" nestjs-minio-client: "npm:^2.2.0" node-cache: "npm:^5.1.2" passport: "npm:^0.7.0" @@ -714,7 +714,7 @@ __metadata: joi: "npm:^17.13.3" json-stable-stringify: "npm:^1.2.1" lodash: "npm:^4.17.21" - minio: "npm:7.1.3" + minio: "npm:8.0.6" nock: "npm:^14.0.3" passport: "npm:^0.7.0" passport-jwt: "npm:^4.0.1" @@ -4999,7 +4999,7 @@ __metadata: graphql: "npm:^16.8.1" graphql-request: "npm:^6.1.0" graphql-tag: "npm:^2.12.6" - minio: "npm:7.1.3" + minio: "npm:8.0.6" openpgp: "npm:^5.11.2" prettier: "npm:^3.4.2" secp256k1: "npm:^5.0.1" @@ -15056,6 +15056,13 @@ __metadata: languageName: node linkType: hard +"buffer-crc32@npm:^1.0.0": + version: 1.0.0 + resolution: "buffer-crc32@npm:1.0.0" + checksum: 10c0/8b86e161cee4bb48d5fa622cbae4c18f25e4857e5203b89e23de59e627ab26beb82d9d7999f2b8de02580165f61f83f997beaf02980cdf06affd175b651921ab + languageName: node + linkType: hard + "buffer-equal-constant-time@npm:^1.0.1": version: 1.0.1 resolution: "buffer-equal-constant-time@npm:1.0.1" @@ -23762,6 +23769,28 @@ __metadata: languageName: node linkType: hard +"minio@npm:8.0.6": + version: 8.0.6 + resolution: "minio@npm:8.0.6" + dependencies: + async: "npm:^3.2.4" + block-stream2: "npm:^2.1.0" + browser-or-node: "npm:^2.1.1" + buffer-crc32: "npm:^1.0.0" + eventemitter3: "npm:^5.0.1" + fast-xml-parser: "npm:^4.4.1" + ipaddr.js: "npm:^2.0.1" + lodash: "npm:^4.17.21" + mime-types: "npm:^2.1.35" + query-string: "npm:^7.1.3" + stream-json: "npm:^1.8.0" + through2: "npm:^4.0.2" + web-encoding: "npm:^1.1.5" + xml2js: "npm:^0.5.0 || ^0.6.2" + checksum: 10c0/7b10b1d780f300d1ac8881be32e9b5a1d172f9c3e72bfb86f966d085746aa5e5aa9c54c41d728ba00d8cd8c4969ac219214c5e763d1f7918f53f1081fef1a19a + languageName: node + linkType: hard + "minipass-collect@npm:^2.0.1": version: 2.0.1 resolution: "minipass-collect@npm:2.0.1" @@ -28436,7 +28465,7 @@ __metadata: languageName: node linkType: hard -"stream-json@npm:^1.9.1": +"stream-json@npm:^1.8.0, stream-json@npm:^1.9.1": version: 1.9.1 resolution: "stream-json@npm:1.9.1" dependencies: @@ -31733,7 +31762,7 @@ __metadata: languageName: node linkType: hard -"xml2js@npm:^0.6.2": +"xml2js@npm:^0.5.0 || ^0.6.2, xml2js@npm:^0.6.2": version: 0.6.2 resolution: "xml2js@npm:0.6.2" dependencies: From a580113b2b70a984e8bc16514853f2e2c6069dcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20L=C3=B3pez?= Date: Fri, 21 Nov 2025 17:52:37 +0100 Subject: [PATCH 2/4] chore: update minio putObject calls to use undefined for size parameter --- .../fortune/exchange-oracle/server/scripts/setup-kv-store.ts | 2 +- .../server/src/modules/storage/storage.service.ts | 1 + .../apps/fortune/recording-oracle/scripts/setup-kv-store.ts | 2 +- .../recording-oracle/src/modules/storage/storage.service.ts | 1 + packages/apps/job-launcher/server/scripts/setup-kv-store.ts | 2 +- .../job-launcher/server/src/modules/storage/storage.service.ts | 1 + .../apps/reputation-oracle/server/scripts/setup-kv-store.ts | 2 +- .../server/src/modules/storage/storage.service.ts | 1 + packages/sdk/typescript/human-protocol-sdk/src/storage.ts | 2 +- 9 files changed, 9 insertions(+), 5 deletions(-) diff --git a/packages/apps/fortune/exchange-oracle/server/scripts/setup-kv-store.ts b/packages/apps/fortune/exchange-oracle/server/scripts/setup-kv-store.ts index d28014975b..21c9c9a9bf 100644 --- a/packages/apps/fortune/exchange-oracle/server/scripts/setup-kv-store.ts +++ b/packages/apps/fortune/exchange-oracle/server/scripts/setup-kv-store.ts @@ -73,7 +73,7 @@ async function setupPublicKeyFile( throw new Error('Bucket does not exists'); } - await minioClient.putObject(s3Bucket, keyName, publicKey, { + await minioClient.putObject(s3Bucket, keyName, publicKey, undefined, { 'Content-Type': 'text/plain', 'Cache-Control': 'no-store', }); diff --git a/packages/apps/fortune/exchange-oracle/server/src/modules/storage/storage.service.ts b/packages/apps/fortune/exchange-oracle/server/src/modules/storage/storage.service.ts index c885e0b6b1..fcbc708fa6 100644 --- a/packages/apps/fortune/exchange-oracle/server/src/modules/storage/storage.service.ts +++ b/packages/apps/fortune/exchange-oracle/server/src/modules/storage/storage.service.ts @@ -120,6 +120,7 @@ export class StorageService { this.s3ConfigService.bucket, `${escrowAddress}-${chainId}.json`, fileToUpload, + undefined, { 'Content-Type': 'application/json', 'Cache-Control': 'no-store', diff --git a/packages/apps/fortune/recording-oracle/scripts/setup-kv-store.ts b/packages/apps/fortune/recording-oracle/scripts/setup-kv-store.ts index 211d863379..0e4e9051cb 100644 --- a/packages/apps/fortune/recording-oracle/scripts/setup-kv-store.ts +++ b/packages/apps/fortune/recording-oracle/scripts/setup-kv-store.ts @@ -74,7 +74,7 @@ async function setupPublicKeyFile( throw new Error('Bucket does not exists'); } - await minioClient.putObject(s3Bucket, keyName, publicKey, { + await minioClient.putObject(s3Bucket, keyName, publicKey, undefined, { 'Content-Type': 'text/plain', 'Cache-Control': 'no-store', }); diff --git a/packages/apps/fortune/recording-oracle/src/modules/storage/storage.service.ts b/packages/apps/fortune/recording-oracle/src/modules/storage/storage.service.ts index d2abeb58c8..ea720f7bd1 100644 --- a/packages/apps/fortune/recording-oracle/src/modules/storage/storage.service.ts +++ b/packages/apps/fortune/recording-oracle/src/modules/storage/storage.service.ts @@ -126,6 +126,7 @@ export class StorageService { this.s3ConfigService.bucket, `${hash}.json`, fileToUpload, + undefined, { 'Content-Type': 'application/json', 'Cache-Control': 'no-store', diff --git a/packages/apps/job-launcher/server/scripts/setup-kv-store.ts b/packages/apps/job-launcher/server/scripts/setup-kv-store.ts index 63a790a62c..6a07297935 100644 --- a/packages/apps/job-launcher/server/scripts/setup-kv-store.ts +++ b/packages/apps/job-launcher/server/scripts/setup-kv-store.ts @@ -80,7 +80,7 @@ async function setupPublicKeyFile( throw new Error('Bucket does not exists'); } - await minioClient.putObject(s3Bucket, keyName, publicKey, { + await minioClient.putObject(s3Bucket, keyName, publicKey, undefined, { 'Content-Type': 'text/plain', 'Cache-Control': 'no-store', }); diff --git a/packages/apps/job-launcher/server/src/modules/storage/storage.service.ts b/packages/apps/job-launcher/server/src/modules/storage/storage.service.ts index 523298f568..37f3558830 100644 --- a/packages/apps/job-launcher/server/src/modules/storage/storage.service.ts +++ b/packages/apps/job-launcher/server/src/modules/storage/storage.service.ts @@ -127,6 +127,7 @@ export class StorageService { this.s3ConfigService.bucket, fileKey, fileContents, + undefined, { 'Content-Type': contentType, 'Cache-Control': 'no-store', diff --git a/packages/apps/reputation-oracle/server/scripts/setup-kv-store.ts b/packages/apps/reputation-oracle/server/scripts/setup-kv-store.ts index 5165db585c..45ded5aea5 100644 --- a/packages/apps/reputation-oracle/server/scripts/setup-kv-store.ts +++ b/packages/apps/reputation-oracle/server/scripts/setup-kv-store.ts @@ -80,7 +80,7 @@ async function setupPublicKeyFile( throw new Error('Bucket does not exists'); } - await minioClient.putObject(s3Bucket, keyName, publicKey, { + await minioClient.putObject(s3Bucket, keyName, publicKey, undefined, { 'Content-Type': 'text/plain', 'Cache-Control': 'no-store', }); diff --git a/packages/apps/reputation-oracle/server/src/modules/storage/storage.service.ts b/packages/apps/reputation-oracle/server/src/modules/storage/storage.service.ts index 105b797ee2..6103f45ee0 100644 --- a/packages/apps/reputation-oracle/server/src/modules/storage/storage.service.ts +++ b/packages/apps/reputation-oracle/server/src/modules/storage/storage.service.ts @@ -108,6 +108,7 @@ export class StorageService { this.s3ConfigService.bucket, fileName, content, + undefined, { 'Content-Type': contentType, 'Cache-Control': 'no-store', diff --git a/packages/sdk/typescript/human-protocol-sdk/src/storage.ts b/packages/sdk/typescript/human-protocol-sdk/src/storage.ts index 81656fcaf9..6762161b7b 100644 --- a/packages/sdk/typescript/human-protocol-sdk/src/storage.ts +++ b/packages/sdk/typescript/human-protocol-sdk/src/storage.ts @@ -212,7 +212,7 @@ export class StorageClient { const key = `s3${hash}.json`; try { - await this.client.putObject(bucket, key, content, { + await this.client.putObject(bucket, key, content, undefined, { 'Content-Type': 'application/json', 'Cache-Control': 'no-store', }); From 94285b33d14b02a35b04c58d8579052541b4a6bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20L=C3=B3pez?= Date: Tue, 25 Nov 2025 17:29:16 +0100 Subject: [PATCH 3/4] Remove deprecated storage utilities and tests --- .changeset/gold-doodles-ask.md | 6 + .../src/common/guards/strategy/jwt.http.ts | 7 +- .../server/src/common/utils/storage.ts | 33 ++ .../src/modules/job/job.service.spec.ts | 28 +- .../server/src/modules/job/job.service.ts | 5 +- .../modules/storage/storage.service.spec.ts | 26 +- .../src/modules/storage/storage.service.ts | 4 +- .../src/common/utils/storage.ts | 33 ++ .../src/modules/job/job.service.spec.ts | 49 +-- .../modules/storage/storage.service.spec.ts | 24 +- .../src/modules/storage/storage.service.ts | 4 +- .../server/src/common/utils/storage.ts | 33 ++ .../integrations/kv-store/kv-store.gateway.ts | 10 +- .../server/src/modules/job/job.service.ts | 2 - .../src/modules/manifest/manifest.service.ts | 8 +- .../sdk/python/human-protocol-sdk/Pipfile | 1 - .../human_protocol_sdk/storage/__init__.py | 11 - .../storage/storage_client.py | 379 ----------------- .../storage/storage_utils.py | 58 --- .../human_protocol_sdk/storage/__init__.py | 0 .../storage/test_storage_client.py | 311 -------------- .../storage/test_storage_utils.py | 37 -- .../human-protocol-sdk/package.json | 1 - .../human-protocol-sdk/src/error.ts | 36 -- .../human-protocol-sdk/src/index.ts | 2 - .../human-protocol-sdk/src/storage.ts | 313 -------------- .../human-protocol-sdk/src/types.ts | 57 --- .../human-protocol-sdk/test/storage.test.ts | 400 ------------------ yarn.lock | 1 - 29 files changed, 172 insertions(+), 1707 deletions(-) create mode 100644 .changeset/gold-doodles-ask.md create mode 100644 packages/apps/fortune/exchange-oracle/server/src/common/utils/storage.ts create mode 100644 packages/apps/fortune/recording-oracle/src/common/utils/storage.ts create mode 100644 packages/apps/human-app/server/src/common/utils/storage.ts delete mode 100644 packages/sdk/python/human-protocol-sdk/human_protocol_sdk/storage/__init__.py delete mode 100644 packages/sdk/python/human-protocol-sdk/human_protocol_sdk/storage/storage_client.py delete mode 100644 packages/sdk/python/human-protocol-sdk/human_protocol_sdk/storage/storage_utils.py delete mode 100644 packages/sdk/python/human-protocol-sdk/test/human_protocol_sdk/storage/__init__.py delete mode 100644 packages/sdk/python/human-protocol-sdk/test/human_protocol_sdk/storage/test_storage_client.py delete mode 100644 packages/sdk/python/human-protocol-sdk/test/human_protocol_sdk/storage/test_storage_utils.py delete mode 100644 packages/sdk/typescript/human-protocol-sdk/src/storage.ts delete mode 100644 packages/sdk/typescript/human-protocol-sdk/test/storage.test.ts diff --git a/.changeset/gold-doodles-ask.md b/.changeset/gold-doodles-ask.md new file mode 100644 index 0000000000..6c88f4957e --- /dev/null +++ b/.changeset/gold-doodles-ask.md @@ -0,0 +1,6 @@ +--- +"@human-protocol/sdk": major +"@human-protocol/python-sdk": major +--- + +Remove deprecated storage utilities and tests diff --git a/packages/apps/fortune/exchange-oracle/server/src/common/guards/strategy/jwt.http.ts b/packages/apps/fortune/exchange-oracle/server/src/common/guards/strategy/jwt.http.ts index 7f948fddc8..7c99af6b7a 100644 --- a/packages/apps/fortune/exchange-oracle/server/src/common/guards/strategy/jwt.http.ts +++ b/packages/apps/fortune/exchange-oracle/server/src/common/guards/strategy/jwt.http.ts @@ -3,7 +3,7 @@ import { PassportStrategy } from '@nestjs/passport'; import { ExtractJwt, Strategy } from 'passport-jwt'; import { KVStore__factory } from '@human-protocol/core/typechain-types'; -import { ChainId, NETWORKS, StorageClient } from '@human-protocol/sdk'; +import { ChainId, NETWORKS } from '@human-protocol/sdk'; import { ethers } from 'ethers'; import * as jwt from 'jsonwebtoken'; import { JWT_KVSTORE_KEY, KYC_APPROVED } from '../../../common/constant'; @@ -11,6 +11,7 @@ import { Role } from '../../../common/enums/role'; import { JwtUser } from '../../../common/types/jwt'; import { Web3Service } from '../../../modules/web3/web3.service'; import { AuthError, ValidationError } from '../../errors'; +import { downloadFileFromUrl } from '../../utils/storage'; @Injectable() export class JwtHttpStrategy extends PassportStrategy(Strategy, 'jwt-http') { @@ -47,9 +48,7 @@ export class JwtHttpStrategy extends PassportStrategy(Strategy, 'jwt-http') { address, JWT_KVSTORE_KEY, ); - publicKey = (await StorageClient.downloadFileFromUrl( - url, - )) as string; + publicKey = (await downloadFileFromUrl(url)) as string; this.publicKeyCache.set(cacheKey, { value: publicKey, diff --git a/packages/apps/fortune/exchange-oracle/server/src/common/utils/storage.ts b/packages/apps/fortune/exchange-oracle/server/src/common/utils/storage.ts new file mode 100644 index 0000000000..104070d7af --- /dev/null +++ b/packages/apps/fortune/exchange-oracle/server/src/common/utils/storage.ts @@ -0,0 +1,33 @@ +import axios from 'axios'; +import { HttpStatus } from '@nestjs/common'; + +export const isValidUrl = (maybeUrl: string): boolean => { + try { + const { protocol } = new URL(maybeUrl); + return protocol === 'http:' || protocol === 'https:'; + } catch { + return false; + } +}; + +export async function downloadFileFromUrl(url: string): Promise { + if (!isValidUrl(url)) { + throw new Error('Invalid URL string'); + } + + try { + const { data, status } = await axios.get(url, { + headers: { + 'Content-Type': 'application/json', + }, + }); + + if (status !== HttpStatus.OK) { + throw new Error('Storage file not found'); + } + + return data; + } catch { + throw new Error('Storage file not found'); + } +} diff --git a/packages/apps/fortune/exchange-oracle/server/src/modules/job/job.service.spec.ts b/packages/apps/fortune/exchange-oracle/server/src/modules/job/job.service.spec.ts index 5eea7efe29..8cde61c092 100644 --- a/packages/apps/fortune/exchange-oracle/server/src/modules/job/job.service.spec.ts +++ b/packages/apps/fortune/exchange-oracle/server/src/modules/job/job.service.spec.ts @@ -1,10 +1,5 @@ import { createMock } from '@golevelup/ts-jest'; -import { - Encryption, - EscrowClient, - OperatorUtils, - StorageClient, -} from '@human-protocol/sdk'; +import { Encryption, EscrowClient, OperatorUtils } from '@human-protocol/sdk'; import { HttpService } from '@nestjs/axios'; import { ConfigService } from '@nestjs/config'; import { Test } from '@nestjs/testing'; @@ -36,6 +31,7 @@ import { S3ConfigService } from '../../common/config/s3-config.service'; import { ErrorJob, ErrorAssignment } from '../../common/constant/errors'; import { BadRequestException, NotFoundException } from '@nestjs/common'; import { HMToken__factory } from '@human-protocol/core/typechain-types'; +import { downloadFileFromUrl } from '../../common/utils/storage'; jest.mock('@human-protocol/sdk', () => ({ ...jest.requireActual('@human-protocol/sdk'), @@ -45,13 +41,14 @@ jest.mock('@human-protocol/sdk', () => ({ OperatorUtils: { getOperator: jest.fn(), }, - StorageClient: { - downloadFileFromUrl: jest.fn(), - }, Encryption: { build: jest.fn(), }, })); +jest.mock('../../common/utils/storage', () => ({ + ...jest.requireActual('../../common/utils/storage'), + downloadFileFromUrl: jest.fn(), +})); jest.mock('minio', () => { class Client { putObject = jest.fn(); @@ -442,6 +439,7 @@ describe('JobService', () => { }); describe('solveJob', () => { + const downloadFileFromUrlMock = jest.mocked(downloadFileFromUrl); const assignment = { id: 1, jobId: 1, @@ -480,9 +478,7 @@ describe('JobService', () => { storageService.downloadJobSolutions = jest.fn().mockResolvedValueOnce([]); - StorageClient.downloadFileFromUrl = jest - .fn() - .mockResolvedValueOnce(manifest); + downloadFileFromUrlMock.mockResolvedValueOnce(manifest); const solutionsUrl = 'http://localhost:9000/solution/0x1234567890123456789012345678901234567890-1.json'; @@ -547,9 +543,7 @@ describe('JobService', () => { }, ]); - StorageClient.downloadFileFromUrl = jest - .fn() - .mockResolvedValueOnce(manifest); + downloadFileFromUrlMock.mockResolvedValueOnce(manifest); (Encryption.build as any).mockImplementation(() => ({ decrypt: jest.fn().mockResolvedValue(JSON.stringify(manifest)), @@ -582,9 +576,7 @@ describe('JobService', () => { }, ]); - StorageClient.downloadFileFromUrl = jest - .fn() - .mockResolvedValueOnce(manifest); + downloadFileFromUrlMock.mockResolvedValueOnce(manifest); (Encryption.build as any).mockImplementation(() => ({ decrypt: jest.fn().mockResolvedValue(JSON.stringify(manifest)), diff --git a/packages/apps/fortune/exchange-oracle/server/src/modules/job/job.service.ts b/packages/apps/fortune/exchange-oracle/server/src/modules/job/job.service.ts index 40bbae2104..27646027f3 100644 --- a/packages/apps/fortune/exchange-oracle/server/src/modules/job/job.service.ts +++ b/packages/apps/fortune/exchange-oracle/server/src/modules/job/job.service.ts @@ -7,10 +7,10 @@ import { Encryption, EncryptionUtils, EscrowClient, - StorageClient, } from '@human-protocol/sdk'; import { Inject, Injectable } from '@nestjs/common'; +import { downloadFileFromUrl } from '../../common/utils/storage'; import { PGPConfigService } from '../../common/config/pgp-config.service'; import { ErrorAssignment, ErrorJob } from '../../common/constant/errors'; import { SortDirection } from '../../common/enums/collection'; @@ -348,8 +348,7 @@ export class JobService { let manifest: ManifestDto | null = null; try { - const manifestEncrypted = - await StorageClient.downloadFileFromUrl(manifestUrl); + const manifestEncrypted = await downloadFileFromUrl(manifestUrl); if ( typeof manifestEncrypted === 'string' && diff --git a/packages/apps/fortune/exchange-oracle/server/src/modules/storage/storage.service.spec.ts b/packages/apps/fortune/exchange-oracle/server/src/modules/storage/storage.service.spec.ts index a8d561b7b9..0f35c5e1bb 100644 --- a/packages/apps/fortune/exchange-oracle/server/src/modules/storage/storage.service.spec.ts +++ b/packages/apps/fortune/exchange-oracle/server/src/modules/storage/storage.service.spec.ts @@ -2,7 +2,6 @@ import { ChainId, Encryption, EncryptionUtils, - StorageClient, EscrowClient, KVStoreUtils, } from '@human-protocol/sdk'; @@ -13,12 +12,10 @@ import { Web3Service } from '../web3/web3.service'; import { ConfigService } from '@nestjs/config'; import { S3ConfigService } from '../../common/config/s3-config.service'; import { PGPConfigService } from '../../common/config/pgp-config.service'; +import { downloadFileFromUrl } from '../../common/utils/storage'; jest.mock('@human-protocol/sdk', () => ({ ...jest.requireActual('@human-protocol/sdk'), - StorageClient: { - downloadFileFromUrl: jest.fn(), - }, Encryption: { build: jest.fn(), }, @@ -33,6 +30,11 @@ jest.mock('@human-protocol/sdk', () => ({ }, })); +jest.mock('../../common/utils/storage', () => ({ + ...jest.requireActual('../../common/utils/storage'), + downloadFileFromUrl: jest.fn(), +})); + jest.mock('minio', () => { class Client { putObject = jest.fn(); @@ -125,6 +127,7 @@ describe('StorageService', () => { s3ConfigService.bucket, `${escrowAddress}-${chainId}.json`, 'encrypted', + undefined, { 'Content-Type': 'application/json', 'Cache-Control': 'no-store', @@ -159,6 +162,7 @@ describe('StorageService', () => { s3ConfigService.bucket, `${escrowAddress}-${chainId}.json`, 'encrypted', + undefined, { 'Content-Type': 'application/json', 'Cache-Control': 'no-store', @@ -239,6 +243,8 @@ describe('StorageService', () => { }); describe('downloadJobSolutions', () => { + const downloadFileFromUrlMock = jest.mocked(downloadFileFromUrl); + it('should download the encrypted file correctly', async () => { const workerAddress = '0x1234567890123456789012345678901234567891'; const escrowAddress = '0x1234567890123456789012345678901234567890'; @@ -252,9 +258,7 @@ describe('StorageService', () => { }, ]; - StorageClient.downloadFileFromUrl = jest - .fn() - .mockResolvedValue('encrypted-content'); + downloadFileFromUrlMock.mockResolvedValue('encrypted-content'); EncryptionUtils.isEncrypted = jest.fn().mockReturnValue(true); @@ -282,9 +286,7 @@ describe('StorageService', () => { }, ]; - StorageClient.downloadFileFromUrl = jest - .fn() - .mockResolvedValue(expectedJobFile); + downloadFileFromUrlMock.mockResolvedValue(expectedJobFile); EncryptionUtils.isEncrypted = jest.fn().mockReturnValue(false); @@ -299,9 +301,7 @@ describe('StorageService', () => { const escrowAddress = '0x1234567890123456789012345678901234567890'; const chainId = ChainId.LOCALHOST; - StorageClient.downloadFileFromUrl = jest - .fn() - .mockRejectedValue('Network error'); + downloadFileFromUrlMock.mockRejectedValue('Network error'); const solutionsFile = await storageService.downloadJobSolutions( escrowAddress, diff --git a/packages/apps/fortune/exchange-oracle/server/src/modules/storage/storage.service.ts b/packages/apps/fortune/exchange-oracle/server/src/modules/storage/storage.service.ts index fcbc708fa6..4259033e6e 100644 --- a/packages/apps/fortune/exchange-oracle/server/src/modules/storage/storage.service.ts +++ b/packages/apps/fortune/exchange-oracle/server/src/modules/storage/storage.service.ts @@ -4,11 +4,11 @@ import { EncryptionUtils, EscrowClient, KVStoreUtils, - StorageClient, } from '@human-protocol/sdk'; import { Inject, Injectable } from '@nestjs/common'; import * as Minio from 'minio'; +import { downloadFileFromUrl } from '../../common/utils/storage'; import logger from '../../logger'; import { PGPConfigService } from '../../common/config/pgp-config.service'; import { S3ConfigService } from '../../common/config/s3-config.service'; @@ -49,7 +49,7 @@ export class StorageService { ): Promise { const url = this.getJobUrl(escrowAddress, chainId); try { - const fileContent = await StorageClient.downloadFileFromUrl(url); + const fileContent = await downloadFileFromUrl(url); if (EncryptionUtils.isEncrypted(fileContent)) { const encryption = await Encryption.build( this.pgpConfigService.privateKey!, diff --git a/packages/apps/fortune/recording-oracle/src/common/utils/storage.ts b/packages/apps/fortune/recording-oracle/src/common/utils/storage.ts new file mode 100644 index 0000000000..104070d7af --- /dev/null +++ b/packages/apps/fortune/recording-oracle/src/common/utils/storage.ts @@ -0,0 +1,33 @@ +import axios from 'axios'; +import { HttpStatus } from '@nestjs/common'; + +export const isValidUrl = (maybeUrl: string): boolean => { + try { + const { protocol } = new URL(maybeUrl); + return protocol === 'http:' || protocol === 'https:'; + } catch { + return false; + } +}; + +export async function downloadFileFromUrl(url: string): Promise { + if (!isValidUrl(url)) { + throw new Error('Invalid URL string'); + } + + try { + const { data, status } = await axios.get(url, { + headers: { + 'Content-Type': 'application/json', + }, + }); + + if (status !== HttpStatus.OK) { + throw new Error('Storage file not found'); + } + + return data; + } catch { + throw new Error('Storage file not found'); + } +} diff --git a/packages/apps/fortune/recording-oracle/src/modules/job/job.service.spec.ts b/packages/apps/fortune/recording-oracle/src/modules/job/job.service.spec.ts index 6f36cd7353..d2fbb23d43 100644 --- a/packages/apps/fortune/recording-oracle/src/modules/job/job.service.spec.ts +++ b/packages/apps/fortune/recording-oracle/src/modules/job/job.service.spec.ts @@ -5,7 +5,6 @@ import { EscrowClient, EscrowStatus, KVStoreUtils, - StorageClient, } from '@human-protocol/sdk'; import { HttpService } from '@nestjs/axios'; import { ConfigService } from '@nestjs/config'; @@ -36,6 +35,7 @@ import { Web3Service } from '../web3/web3.service'; import { WebhookDto } from '../webhook/webhook.dto'; import { JobService } from './job.service'; import { HMToken__factory } from '@human-protocol/core/typechain-types'; +import { downloadFileFromUrl } from '@/common/utils/storage'; jest.mock('minio', () => { class Client { @@ -51,19 +51,16 @@ jest.mock('minio', () => { return { Client }; }); +jest.mock('@/common/utils/storage', () => ({ + ...jest.requireActual('@/common/utils/storage'), + downloadFileFromUrl: jest.fn(), +})); + jest.mock('@human-protocol/sdk', () => ({ ...jest.requireActual('@human-protocol/sdk'), EscrowClient: { build: jest.fn().mockImplementation(() => ({})), }, - StorageClient: jest.fn().mockImplementation(() => ({ - downloadFileFromUrl: jest.fn().mockResolvedValue( - JSON.stringify({ - submissionsRequired: 3, - requestType: JobRequestType.FORTUNE, - }), - ), - })), KVStoreUtils: { get: jest.fn(), getPublicKey: jest.fn().mockResolvedValue('publicKey'), @@ -75,6 +72,7 @@ jest.mock('@human-protocol/sdk', () => ({ describe('JobService', () => { let jobService: JobService; + const downloadFileFromUrlMock = jest.mocked(downloadFileFromUrl); jest .spyOn(Web3ConfigService.prototype, 'privateKey', 'get') @@ -193,9 +191,9 @@ describe('JobService', () => { getManifest: jest.fn().mockResolvedValue('http://example.com/manifest'), }; (EscrowClient.build as jest.Mock).mockResolvedValue(escrowClient); - StorageClient.downloadFileFromUrl = jest - .fn() - .mockResolvedValue(JSON.stringify(invalidManifest)); + downloadFileFromUrlMock.mockResolvedValue( + JSON.stringify(invalidManifest), + ); const jobSolution: WebhookDto = { escrowAddress: MOCK_ADDRESS, @@ -221,9 +219,9 @@ describe('JobService', () => { getManifest: jest.fn().mockResolvedValue('http://example.com/manifest'), }; (EscrowClient.build as jest.Mock).mockResolvedValue(escrowClient); - StorageClient.downloadFileFromUrl = jest - .fn() - .mockResolvedValue(JSON.stringify(invalidManifest)); + downloadFileFromUrlMock.mockResolvedValue( + JSON.stringify(invalidManifest), + ); EncryptionUtils.isEncrypted = jest.fn().mockReturnValueOnce(false); const jobSolution: WebhookDto = { @@ -283,8 +281,7 @@ describe('JobService', () => { }, ]; - StorageClient.downloadFileFromUrl = jest - .fn() + downloadFileFromUrlMock .mockResolvedValueOnce(JSON.stringify(manifest)) .mockResolvedValueOnce(JSON.stringify(existingJobSolutions)) .mockResolvedValue(JSON.stringify(exchangeJobSolutions)); @@ -341,8 +338,7 @@ describe('JobService', () => { }, ]; - StorageClient.downloadFileFromUrl = jest - .fn() + downloadFileFromUrlMock .mockResolvedValueOnce(JSON.stringify(manifest)) .mockResolvedValueOnce(JSON.stringify(existingJobSolutions)) .mockResolvedValue(JSON.stringify(exchangeJobSolutions)); @@ -403,8 +399,7 @@ describe('JobService', () => { }, ]; - StorageClient.downloadFileFromUrl = jest - .fn() + downloadFileFromUrlMock .mockResolvedValueOnce(JSON.stringify(manifest)) .mockResolvedValueOnce(JSON.stringify(existingJobSolutions)) .mockResolvedValue(JSON.stringify(exchangeJobSolutions)); @@ -464,8 +459,7 @@ describe('JobService', () => { }, ]; - StorageClient.downloadFileFromUrl = jest - .fn() + downloadFileFromUrlMock .mockResolvedValueOnce(JSON.stringify(manifest)) .mockResolvedValueOnce(JSON.stringify(existingJobSolutions)) .mockResolvedValue(JSON.stringify(exchangeJobSolutions)); @@ -555,8 +549,7 @@ describe('JobService', () => { solution: 'Solution 4', }, ]; - StorageClient.downloadFileFromUrl = jest - .fn() + downloadFileFromUrlMock .mockResolvedValueOnce(JSON.stringify(manifest)) .mockResolvedValueOnce(JSON.stringify(existingJobSolutions)) .mockResolvedValue(JSON.stringify(exchangeJobSolutions)); @@ -633,8 +626,7 @@ describe('JobService', () => { solution: 'Solution 2', }, ]; - StorageClient.downloadFileFromUrl = jest - .fn() + downloadFileFromUrlMock .mockResolvedValueOnce(JSON.stringify(manifest)) .mockResolvedValueOnce(JSON.stringify(existingJobSolutions)) .mockResolvedValue(JSON.stringify(exchangeJobSolutions)); @@ -716,8 +708,7 @@ describe('JobService', () => { solution: 'ass', }, ]; - StorageClient.downloadFileFromUrl = jest - .fn() + downloadFileFromUrlMock .mockResolvedValueOnce(JSON.stringify(manifest)) .mockResolvedValueOnce(JSON.stringify(existingJobSolutions)) .mockResolvedValue(JSON.stringify(exchangeJobSolutions)); diff --git a/packages/apps/fortune/recording-oracle/src/modules/storage/storage.service.spec.ts b/packages/apps/fortune/recording-oracle/src/modules/storage/storage.service.spec.ts index 855cd7911c..ad41fd39f9 100644 --- a/packages/apps/fortune/recording-oracle/src/modules/storage/storage.service.spec.ts +++ b/packages/apps/fortune/recording-oracle/src/modules/storage/storage.service.spec.ts @@ -4,7 +4,6 @@ import { EncryptionUtils, EscrowClient, KVStoreUtils, - StorageClient, } from '@human-protocol/sdk'; import { ConfigService } from '@nestjs/config'; import { Test } from '@nestjs/testing'; @@ -17,12 +16,10 @@ import { PGPConfigService } from '../../common/config/pgp-config.service'; import { S3ConfigService } from '../../common/config/s3-config.service'; import { Web3Service } from '../web3/web3.service'; import { StorageService } from './storage.service'; +import { downloadFileFromUrl } from '@/common/utils/storage'; jest.mock('@human-protocol/sdk', () => ({ ...jest.requireActual('@human-protocol/sdk'), - StorageClient: { - downloadFileFromUrl: jest.fn(), - }, Encryption: { build: jest.fn(), }, @@ -37,6 +34,11 @@ jest.mock('@human-protocol/sdk', () => ({ }, })); +jest.mock('@/common/utils/storage', () => ({ + ...jest.requireActual('@/common/utils/storage'), + downloadFileFromUrl: jest.fn(), +})); + jest.mock('minio', () => { class Client { putObject = jest.fn(); @@ -133,6 +135,7 @@ describe('StorageService', () => { s3ConfigService.bucket, `${hash}.json`, 'encrypted', + undefined, { 'Content-Type': 'application/json', 'Cache-Control': 'no-store', @@ -211,6 +214,7 @@ describe('StorageService', () => { }); describe('download', () => { + const downloadFileFromUrlMock = jest.mocked(downloadFileFromUrl); it('should download the non encrypted file correctly', async () => { const exchangeAddress = '0x1234567890123456789012345678901234567892'; const workerAddress = '0x1234567890123456789012345678901234567891'; @@ -226,9 +230,7 @@ describe('StorageService', () => { ], }; - StorageClient.downloadFileFromUrl = jest - .fn() - .mockResolvedValue(expectedJobFile); + downloadFileFromUrlMock.mockResolvedValue(expectedJobFile); EncryptionUtils.isEncrypted = jest.fn().mockReturnValue(false); const solutionsFile = await storageService.download(MOCK_FILE_URL); expect(solutionsFile).toStrictEqual(expectedJobFile); @@ -249,9 +251,7 @@ describe('StorageService', () => { ], }; - StorageClient.downloadFileFromUrl = jest - .fn() - .mockResolvedValue('encrypted-content'); + downloadFileFromUrlMock.mockResolvedValue('encrypted-content'); Encryption.build = jest.fn().mockResolvedValue({ decrypt: jest.fn().mockResolvedValue(JSON.stringify(expectedJobFile)), @@ -262,9 +262,7 @@ describe('StorageService', () => { }); it('should return empty array when file cannot be downloaded', async () => { - StorageClient.downloadFileFromUrl = jest - .fn() - .mockRejectedValue('Network error'); + downloadFileFromUrlMock.mockRejectedValue('Network error'); const solutionsFile = await storageService.download(MOCK_FILE_URL); expect(solutionsFile).toStrictEqual([]); diff --git a/packages/apps/fortune/recording-oracle/src/modules/storage/storage.service.ts b/packages/apps/fortune/recording-oracle/src/modules/storage/storage.service.ts index ea720f7bd1..330bc072b3 100644 --- a/packages/apps/fortune/recording-oracle/src/modules/storage/storage.service.ts +++ b/packages/apps/fortune/recording-oracle/src/modules/storage/storage.service.ts @@ -4,7 +4,6 @@ import { EncryptionUtils, EscrowClient, KVStoreUtils, - StorageClient, } from '@human-protocol/sdk'; import { Inject, Injectable } from '@nestjs/common'; import crypto from 'crypto'; @@ -15,6 +14,7 @@ import { ServerError, ValidationError } from '../../common/errors'; import { ISolution } from '../../common/interfaces/job'; import { SaveSolutionsDto } from '../job/job.dto'; import { Web3Service } from '../web3/web3.service'; +import { downloadFileFromUrl } from '../../common/utils/storage'; @Injectable() export class StorageService { @@ -42,7 +42,7 @@ export class StorageService { public async download(url: string): Promise { try { - const fileContent = await StorageClient.downloadFileFromUrl(url); + const fileContent = await downloadFileFromUrl(url); if ( typeof fileContent === 'string' && diff --git a/packages/apps/human-app/server/src/common/utils/storage.ts b/packages/apps/human-app/server/src/common/utils/storage.ts new file mode 100644 index 0000000000..104070d7af --- /dev/null +++ b/packages/apps/human-app/server/src/common/utils/storage.ts @@ -0,0 +1,33 @@ +import axios from 'axios'; +import { HttpStatus } from '@nestjs/common'; + +export const isValidUrl = (maybeUrl: string): boolean => { + try { + const { protocol } = new URL(maybeUrl); + return protocol === 'http:' || protocol === 'https:'; + } catch { + return false; + } +}; + +export async function downloadFileFromUrl(url: string): Promise { + if (!isValidUrl(url)) { + throw new Error('Invalid URL string'); + } + + try { + const { data, status } = await axios.get(url, { + headers: { + 'Content-Type': 'application/json', + }, + }); + + if (status !== HttpStatus.OK) { + throw new Error('Storage file not found'); + } + + return data; + } catch { + throw new Error('Storage file not found'); + } +} diff --git a/packages/apps/human-app/server/src/integrations/kv-store/kv-store.gateway.ts b/packages/apps/human-app/server/src/integrations/kv-store/kv-store.gateway.ts index d57967369f..6b513c8047 100644 --- a/packages/apps/human-app/server/src/integrations/kv-store/kv-store.gateway.ts +++ b/packages/apps/human-app/server/src/integrations/kv-store/kv-store.gateway.ts @@ -1,9 +1,4 @@ -import { - ChainId, - KVStoreKeys, - KVStoreUtils, - StorageClient, -} from '@human-protocol/sdk'; +import { ChainId, KVStoreKeys, KVStoreUtils } from '@human-protocol/sdk'; import { CACHE_MANAGER } from '@nestjs/cache-manager'; import { HttpException, Inject, Injectable } from '@nestjs/common'; import { Cache } from 'cache-manager'; @@ -14,6 +9,7 @@ import { ORACLE_URL_CACHE_KEY, REPUTATION_ORACLE_PUBLIC_KEY, } from '../../common/constants/cache'; +import { downloadFileFromUrl } from '../../common/utils/storage'; @Injectable() export class KvStoreGateway { @@ -119,7 +115,7 @@ export class KvStoreGateway { address, JWT_KVSTORE_KEY, ); - publicKey = (await StorageClient.downloadFileFromUrl(url)) as string; + publicKey = (await downloadFileFromUrl(url)) as string; } catch (e) { if (e.toString().includes('Error: Invalid address')) { throw new HttpException( diff --git a/packages/apps/job-launcher/server/src/modules/job/job.service.ts b/packages/apps/job-launcher/server/src/modules/job/job.service.ts index b3907d4d26..a9f74bc5e6 100644 --- a/packages/apps/job-launcher/server/src/modules/job/job.service.ts +++ b/packages/apps/job-launcher/server/src/modules/job/job.service.ts @@ -6,7 +6,6 @@ import { KVStoreKeys, KVStoreUtils, NETWORKS, - StorageParams, } from '@human-protocol/sdk'; import { Inject, Injectable } from '@nestjs/common'; import { ModuleRef } from '@nestjs/core'; @@ -84,7 +83,6 @@ import { JobRepository } from './job.repository'; @Injectable() export class JobService { private readonly logger = logger.child({ context: JobService.name }); - public readonly storageParams: StorageParams; public readonly bucket: string; private cronJobRepository: CronJobRepository; diff --git a/packages/apps/job-launcher/server/src/modules/manifest/manifest.service.ts b/packages/apps/job-launcher/server/src/modules/manifest/manifest.service.ts index 73c51cb03a..665aeebad4 100644 --- a/packages/apps/job-launcher/server/src/modules/manifest/manifest.service.ts +++ b/packages/apps/job-launcher/server/src/modules/manifest/manifest.service.ts @@ -1,9 +1,4 @@ -import { - ChainId, - Encryption, - KVStoreUtils, - StorageParams, -} from '@human-protocol/sdk'; +import { ChainId, Encryption, KVStoreUtils } from '@human-protocol/sdk'; import { ValidationError as ClassValidationError, Injectable, @@ -72,7 +67,6 @@ import { @Injectable() export class ManifestService { - public readonly storageParams: StorageParams; public readonly bucket: string; constructor( diff --git a/packages/sdk/python/human-protocol-sdk/Pipfile b/packages/sdk/python/human-protocol-sdk/Pipfile index b78efee08b..ae9b732d16 100644 --- a/packages/sdk/python/human-protocol-sdk/Pipfile +++ b/packages/sdk/python/human-protocol-sdk/Pipfile @@ -17,7 +17,6 @@ sphinx-autodoc-typehints = "*" [packages] cryptography = "*" -minio = "*" validators = "*" web3 = "*" aiohttp = "<4.0.0" # broken freeze in one of dependencies diff --git a/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/storage/__init__.py b/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/storage/__init__.py deleted file mode 100644 index d995f00412..0000000000 --- a/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/storage/__init__.py +++ /dev/null @@ -1,11 +0,0 @@ -""" -This modules contains an s3 client and utilities for files sharing. -""" - -from .storage_client import ( - StorageClient, - StorageClientError, - StorageFileNotFoundError, - Credentials, -) -from .storage_utils import StorageUtils diff --git a/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/storage/storage_client.py b/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/storage/storage_client.py deleted file mode 100644 index 47b2dec081..0000000000 --- a/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/storage/storage_client.py +++ /dev/null @@ -1,379 +0,0 @@ -""" -This client enables to interact with S3 cloud storage services like Amazon S3 Bucket, -Google Cloud Storage and others. - -If credentials are not provided, anonymous access will be used (for downloading files). - -Code Example ------------- - -.. code-block:: python - - from human_protocol_sdk.storage import ( - Credentials, - StorageClient, - ) - - credentials = Credentials( - access_key="my-access-key", - secret_key="my-secret-key", - ) - - storage_client = StorageClient( - endpoint_url="s3.us-west-2.amazonaws.com", - region="us-west-2", - credentials=credentials, - ) - -Module ------- -""" - -import hashlib -import io -import json -import logging -import os -from typing import List, Optional -from warnings import warn - -from minio import Minio - -logging.getLogger("minio").setLevel(logging.INFO) - -DEBUG = "true" in os.getenv("DEBUG", "false").lower() -LOG = logging.getLogger("human_protocol_sdk.storage") -LOG.setLevel(logging.DEBUG if DEBUG else logging.INFO) - - -warn(f"The module {__name__} is deprecated.", DeprecationWarning, stacklevel=2) - - -class StorageClientError(Exception): - """ - Raises when some error happens when interacting with storage. - """ - - pass - - -class StorageFileNotFoundError(StorageClientError): - """ - Raises when some error happens when file is not found by its key. - """ - - pass - - -class Credentials: - """ - A class to represent the credentials required to authenticate with an S3-compatible service. - - Example:: - - credentials = Credentials( - access_key='my-access-key', - secret_key='my-secret-key' - ) - - """ - - def __init__(self, access_key: str, secret_key: str): - """ - Initializes a Credentials instance. - - :param access_key: The access key for the S3-compatible service. - :param secret_key: The secret key for the S3-compatible service. - """ - - self.access_key = access_key - self.secret_key = secret_key - - -class StorageClient: - """ - A class for downloading files from an S3-compatible service. - - :attribute: - - client (Minio): The S3-compatible client used for interacting with the service. - - :example: - .. code-block:: python - - # Download a list of files from an S3-compatible service - client = StorageClient( - endpoint_url='https://s3.us-west-2.amazonaws.com', - region='us-west-2', - credentials=Credentials( - access_key='my-access-key', - secret_key='my-secret-key' - ) - ) - files = ['file1.txt', 'file2.txt'] - bucket = 'my-bucket' - result_files = client.download_files(files=files, bucket=bucket) - - """ - - def __init__( - self, - endpoint_url: str, - region: Optional[str] = None, - credentials: Optional[Credentials] = None, - secure: Optional[bool] = True, - ): - """ - Initializes the StorageClient with the given endpoint_url, region, and credentials. - - If credentials are not provided, anonymous access will be used. - - :param endpoint_url: The URL of the S3-compatible service. - :param region: The region of the S3-compatible service. Defaults to None. - :param credentials: The credentials required to authenticate with the S3-compatible service. - Defaults to None for anonymous access. - :param secure: Flag to indicate to use secure (TLS) connection to S3 service or not. - Defaults to True. - """ - try: - self.client = ( - Minio( - region=region, - endpoint=endpoint_url, - secure=secure, - ) # anonymous access - if credentials is None - else Minio( - access_key=credentials.access_key, - secret_key=credentials.secret_key, - region=region, - endpoint=endpoint_url, - secure=secure, - ) # authenticated access - ) - self.endpoint = endpoint_url - self.secure = secure - except Exception as e: - LOG.error(f"Connection with S3 failed because of: {e}") - raise e - - def download_files(self, files: List[str], bucket: str) -> List[bytes]: - """ - Downloads a list of files from the specified S3-compatible bucket. - - :param files: A list of file keys to download. - :param bucket: The name of the S3-compatible bucket to download from. - - :return: A list of file contents (bytes) downloaded from the bucket. - - :raise StorageClientError: If an error occurs while downloading the files. - :raise StorageFileNotFoundError: If one of the specified files is not found in the bucket. - - :example: - .. code-block:: python - - from human_protocol_sdk.storage import ( - Credentials, - StorageClient, - ) - - credentials = Credentials( - access_key="my-access-key", - secret_key="my-secret-key", - ) - - storage_client = StorageClient( - endpoint_url="s3.us-west-2.amazonaws.com", - region="us-west-2", - credentials=credentials, - ) - - result = storage_client.download_files( - files = ["file1.txt", "file2.txt"], - bucket = "my-bucket" - ) - """ - result_files = [] - for file in files: - try: - response = self.client.get_object(bucket_name=bucket, object_name=file) - result_files.append(response.read()) - except Exception as e: - if hasattr(e, "code") and str(e.code) == "NoSuchKey": - raise StorageFileNotFoundError("No object found - returning empty") - LOG.warning( - f"Reading the key {file} with S3 failed" f" because of: {str(e)}" - ) - raise StorageClientError(str(e)) - return result_files - - def upload_files(self, files: List[dict], bucket: str) -> List[dict]: - """ - Uploads a list of files to the specified S3-compatible bucket. - - :param files: A list of files to upload. - :param bucket: The name of the S3-compatible bucket to upload to. - - :return: List of dict with key, url, hash fields - - :raise StorageClientError: If an error occurs while uploading the files. - - :example: - .. code-block:: python - - from human_protocol_sdk.storage import ( - Credentials, - StorageClient, - ) - - credentials = Credentials( - access_key="my-access-key", - secret_key="my-secret-key", - ) - - storage_client = StorageClient( - endpoint_url="s3.us-west-2.amazonaws.com", - region="us-west-2", - credentials=credentials, - ) - - result = storage_client.upload_files( - files = [{"file": "file content", "key": "file1.txt", "hash": "hash1"}], - bucket = "my-bucket" - ) - """ - result_files = [] - for file in files: - if "file" in file and "key" in file and "hash" in file: - data = file["file"] - hash = file["hash"] - key = file["key"] - else: - try: - artifact = json.dumps(file, sort_keys=True) - except Exception as e: - LOG.error("Can't extract the json from the object") - raise e - data = artifact.encode("utf-8") - hash = hashlib.sha1(data).hexdigest() - key = f"s3{hash}.json" - - url = ( - f"{'https' if self.secure else 'http'}://{self.endpoint}/{bucket}/{key}" - ) - file_exist = None - - try: - # check if file with same hash already exists in bucket - file_exist = self.client.stat_object( - bucket_name=bucket, object_name=key - ) - except Exception as e: - if hasattr(e, "code") and str(e.code) == "NoSuchKey": - # file does not exist in bucket, so upload it - pass - else: - LOG.warning( - f"Reading the key {key} in S3 failed" f" because of: {str(e)}" - ) - raise StorageClientError(str(e)) - - if not file_exist: - # file does not exist in bucket, so upload it - try: - self.client.put_object( - bucket_name=bucket, - object_name=key, - data=io.BytesIO(data), - length=len(data), - ) - LOG.debug(f"Uploaded to S3, key: {key}") - except Exception as e: - raise StorageClientError(str(e)) - - result_files.append({"key": key, "url": url, "hash": hash}) - - return result_files - - def bucket_exists(self, bucket: str) -> bool: - """ - Check if a given bucket exists. - - :param bucket: The name of the bucket to check. - - :return: True if the bucket exists, False otherwise. - - :raise StorageClientError: If an error occurs while checking the bucket. - - :example: - .. code-block:: python - - from human_protocol_sdk.storage import ( - Credentials, - StorageClient, - ) - - credentials = Credentials( - access_key="my-access-key", - secret_key="my-secret-key", - ) - - storage_client = StorageClient( - endpoint_url="s3.us-west-2.amazonaws.com", - region="us-west-2", - credentials=credentials, - ) - - is_exists = storage_client.bucket_exists( - bucket = "my-bucket" - ) - """ - try: - return self.client.bucket_exists(bucket_name=bucket) - except Exception as e: - LOG.warning( - f"Checking the bucket {bucket} in S3 failed" f" because of: {str(e)}" - ) - raise StorageClientError(str(e)) - - def list_objects(self, bucket: str) -> List[str]: - """ - Return a list of all objects in a given bucket. - - :param bucket: The name of the bucket to list objects from. - - :return: A list of object keys in the given bucket. - - :raise StorageClientError: If an error occurs while listing the objects. - - :example: - .. code-block:: python - - from human_protocol_sdk.storage import ( - Credentials, - StorageClient, - ) - - credentials = Credentials( - access_key="my-access-key", - secret_key="my-secret-key", - ) - - storage_client = StorageClient( - endpoint_url="s3.us-west-2.amazonaws.com", - region="us-west-2", - credentials=credentials, - ) - - result = storage_client.list_objects( - bucket = "my-bucket" - ) - """ - try: - objects = list(self.client.list_objects(bucket_name=bucket)) - if objects: - return [obj._object_name for obj in objects] - else: - return [] - except Exception as e: - LOG.warning(f"Listing objects in S3 failed because of: {str(e)}") - raise StorageClientError(str(e)) diff --git a/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/storage/storage_utils.py b/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/storage/storage_utils.py deleted file mode 100644 index ee15eb2d9b..0000000000 --- a/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/storage/storage_utils.py +++ /dev/null @@ -1,58 +0,0 @@ -""" -Utility class for storage-related operations. -""" - -import logging -import os -from warnings import warn - -import requests - -from human_protocol_sdk.storage.storage_client import StorageClientError -from human_protocol_sdk.utils import validate_url - -logging.getLogger("minio").setLevel(logging.INFO) - -DEBUG = "true" in os.getenv("DEBUG", "false").lower() -LOG = logging.getLogger("human_protocol_sdk.storage") -LOG.setLevel(logging.DEBUG if DEBUG else logging.INFO) - - -warn(f"The module {__name__} is deprecated.", DeprecationWarning, stacklevel=2) - - -class StorageUtils: - """ - Utility class for storage-related operations. - """ - - @staticmethod - def download_file_from_url(url: str) -> bytes: - """ - Downloads a file from the specified URL. - - :param url: The URL of the file to download. - - :return: The content of the downloaded file. - - :raise StorageClientError: If an error occurs while downloading the file. - - :example: - .. code-block:: python - - from human_protocol_sdk.storage import StorageUtils - - result = StorageUtils.download_file_from_url( - "https://www.example.com/file.txt" - ) - """ - if not validate_url(url): - raise StorageClientError(f"Invalid URL: {url}") - - try: - response = requests.get(url) - response.raise_for_status() - - return response.content - except Exception as e: - raise StorageClientError(str(e)) diff --git a/packages/sdk/python/human-protocol-sdk/test/human_protocol_sdk/storage/__init__.py b/packages/sdk/python/human-protocol-sdk/test/human_protocol_sdk/storage/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/packages/sdk/python/human-protocol-sdk/test/human_protocol_sdk/storage/test_storage_client.py b/packages/sdk/python/human-protocol-sdk/test/human_protocol_sdk/storage/test_storage_client.py deleted file mode 100644 index e079badeb5..0000000000 --- a/packages/sdk/python/human-protocol-sdk/test/human_protocol_sdk/storage/test_storage_client.py +++ /dev/null @@ -1,311 +0,0 @@ -import hashlib -import json -import random -import unittest -from unittest.mock import MagicMock, patch -import types -from minio import S3Error - -from human_protocol_sdk.storage import ( - Credentials, - StorageClient, - StorageClientError, - StorageFileNotFoundError, -) - - -class TestCredentials(unittest.TestCase): - def test_credentials(self): - credentials = Credentials( - access_key="my-access-key", secret_key="my-secret-key" - ) - self.assertEqual(credentials.access_key, "my-access-key") - self.assertEqual(credentials.secret_key, "my-secret-key") - - -class TestStorageClient(unittest.TestCase): - @classmethod - def setUpClass(cls): - cls.endpoint_url = "s3.us-west-2.amazonaws.com" - cls.bucket = "my-bucket" - cls.files = ["file1.txt", "file2.txt"] - cls.region = "us-west-2" - cls.credentials = Credentials( - access_key="my-access-key", secret_key="my-secret-key" - ) - - def setUp(self): - self.client = StorageClient( - endpoint_url=self.endpoint_url, - region=self.region, - credentials=self.credentials, - ) - - def test_init_authenticated_access(self): - with patch("human_protocol_sdk.storage.storage_client.Minio") as mock_client: - client = StorageClient( - endpoint_url=self.endpoint_url, - region=self.region, - credentials=self.credentials, - ) - mock_client.assert_called_once_with( - access_key=self.credentials.access_key, - secret_key=self.credentials.secret_key, - region=self.region, - endpoint=self.endpoint_url, - secure=True, - ) - self.assertIsNotNone(client.client) - - def test_init_anonymous_access(self): - with patch("human_protocol_sdk.storage.storage_client.Minio") as mock_client: - client = StorageClient( - endpoint_url=self.endpoint_url, - ) - mock_client.assert_called_once() - self.assertEqual(mock_client.call_args_list[0].kwargs["region"], None) - self.assertEqual( - mock_client.call_args_list[0].kwargs["endpoint"], self.endpoint_url - ) - self.assertIsNotNone(client.client) - - def test_init_error(self): - # Connection error - with patch("human_protocol_sdk.storage.storage_client.Minio") as mock_client: - mock_client.side_effect = Exception("Connection error") - with self.assertRaises(Exception): - StorageClient(endpoint_url=self.endpoint_url) - - def test_download_files(self): - expected_result = [b"file1 contents", b"file2 contents"] - self.client.client.get_object = MagicMock( - side_effect=[ - MagicMock(read=MagicMock(return_value=expected_result[0])), - MagicMock(read=MagicMock(return_value=expected_result[1])), - ] - ) - result = self.client.download_files(files=self.files, bucket=self.bucket) - self.assertEqual(result, expected_result) - - def test_download_files_error(self): - self.client.client.get_object = MagicMock( - side_effect=S3Error( - code="NoSuchKey", - message="Key not found", - resource="", - request_id="", - host_id="", - response="", - ) - ) - with self.assertRaises(StorageFileNotFoundError): - self.client.download_files(files=self.files, bucket=self.bucket) - - def test_download_files_anonymous_error(self): - self.client.client.get_object = MagicMock( - side_effect=S3Error( - code="InvalidAccessKeyId", - message="Access denied", - resource="", - request_id="", - host_id="", - response="", - ) - ) - with self.assertRaises(StorageClientError): - self.client.download_files(files=self.files, bucket=self.bucket) - - def test_download_files_exception(self): - self.client.client.get_object = MagicMock( - side_effect=Exception("Connection error") - ) - with self.assertRaises(StorageClientError): - self.client.download_files(files=self.files, bucket=self.bucket) - - def test_upload_files(self): - file3 = "file3 content" - hash = hashlib.sha1(json.dumps("file3 content").encode("utf-8")).hexdigest() - key3 = f"s3{hash}.json" - - self.client.client.stat_object = MagicMock( - side_effect=S3Error( - code="NoSuchKey", - message="Object does not exist", - resource="", - request_id="", - host_id="", - response="", - ) - ) - self.client.client.put_object = MagicMock() - result = self.client.upload_files(files=[file3], bucket=self.bucket) - self.assertEqual(result[0]["key"], key3) - self.assertEqual( - result[0]["url"], f"https://s3.us-west-2.amazonaws.com/my-bucket/{key3}" - ) - self.assertEqual(result[0]["hash"], hash) - - def test_upload_encrypted_files(self): - encrypted_file = "encrypted file content" - hash = hashlib.sha1(json.dumps(encrypted_file).encode("utf-8")).hexdigest() - encrypted_file_key = f"s3{hash}" - file = { - "file": encrypted_file.encode("utf-8"), - "hash": hash, - "key": encrypted_file_key, - } - - self.client.client.stat_object = MagicMock( - side_effect=S3Error( - code="NoSuchKey", - message="Object does not exist", - resource="", - request_id="", - host_id="", - response="", - ) - ) - self.client.client.put_object = MagicMock() - result = self.client.upload_files(files=[file], bucket=self.bucket) - self.assertEqual(result[0]["key"], encrypted_file_key) - self.assertEqual( - result[0]["url"], - f"https://s3.us-west-2.amazonaws.com/my-bucket/{encrypted_file_key}", - ) - self.assertEqual(result[0]["hash"], hash) - - def test_upload_files_exist(self): - file3 = "file3 content" - hash = hashlib.sha1(json.dumps("file3 content").encode("utf-8")).hexdigest() - key3 = f"s3{hash}.json" - - self.client.client.stat_object = MagicMock( - side_effect=[{"_object_name": "1234567890"}] - ) - self.client.client.put_object = MagicMock() - result = self.client.upload_files(files=[file3], bucket=self.bucket) - self.assertEqual(result[0]["key"], key3) - self.assertEqual( - result[0]["url"], f"https://s3.us-west-2.amazonaws.com/my-bucket/{key3}" - ) - self.assertEqual(result[0]["hash"], hash) - - def test_upload_files_error(self): - file3 = "file3 content" - - # HeadObject error - self.client.client.head_object = MagicMock( - side_effect=S3Error( - code="InvalidAccessKeyId", - message="Access denied", - resource="", - request_id="", - host_id="", - response="", - ) - ) - with self.assertRaises(StorageClientError): - self.client.upload_files(files=[file3], bucket=self.bucket) - - # PutObject error - self.client.client.upload_fileobj = MagicMock( - side_effect=S3Error( - code="InvalidAccessKeyId", - message="Access denied", - resource="", - request_id="", - host_id="", - response="", - ) - ) - with self.assertRaises(StorageClientError): - self.client.upload_files(files=[file3], bucket=self.bucket) - - def test_bucket_exists(self): - self.client.client.bucket_exists = MagicMock(side_effect=[True]) - result = self.client.bucket_exists(bucket=self.bucket) - self.assertEqual(result, True) - - def test_bucket_exists_anonymous(self): - client = StorageClient( - endpoint_url=self.endpoint_url, - ) - client.client.bucket_exists = MagicMock(side_effect=[True]) - result = client.bucket_exists(bucket=self.bucket) - self.assertEqual(result, True) - - def test_bucket_not_exists(self): - self.client.client.bucket_exists = MagicMock(side_effect=[False]) - result = self.client.bucket_exists(bucket=self.bucket) - self.assertEqual(result, False) - - def test_bucket_error(self): - self.client.client.bucket_exists = MagicMock( - side_effect=Exception("Connection error") - ) - with self.assertRaises(StorageClientError): - self.client.bucket_exists(bucket=self.bucket) - - def test_list_objects(self): - file1 = types.SimpleNamespace() - file2 = types.SimpleNamespace() - file1._object_name = "file1" - file2._object_name = "file2" - self.client.client.list_objects = MagicMock(side_effect=[[file1, file2]]) - result = self.client.list_objects(bucket=self.bucket) - self.assertEqual(result, ["file1", "file2"]) - - def test_list_objects_anonymous(self): - client = StorageClient( - endpoint_url=self.endpoint_url, - ) - file1 = types.SimpleNamespace() - file2 = types.SimpleNamespace() - file1._object_name = "file1" - file2._object_name = "file2" - client.client.list_objects = MagicMock(side_effect=[[file1, file2]]) - result = client.list_objects(bucket=self.bucket) - self.assertEqual(result, ["file1", "file2"]) - - def test_list_objects_empty(self): - self.client.client.list_objects = MagicMock(side_effect=[[]]) - result = self.client.list_objects(bucket=self.bucket) - self.assertEqual(result, []) - - def test_list_objects_error(self): - self.client.client.head_bucket = MagicMock( - side_effect=Exception("Connection error") - ) - with self.assertRaises(StorageClientError): - self.client.list_objects(bucket=self.bucket) - - def test_list_objects_length(self): - expected_length = random.randint(1, 10) - mock_client = MagicMock() - mock_client.list_objects.return_value = [ - types.SimpleNamespace(_object_name=f"file{i}") - for i in range(expected_length) - ] - with patch( - "human_protocol_sdk.storage.storage_client.Minio", return_value=mock_client - ): - client = StorageClient(endpoint_url="https://example.com", credentials=None) - object_list = client.list_objects(bucket="my-bucket") - self.assertEqual(len(object_list), expected_length) - - def test_list_objects_length_error(self): - expected_length = random.randint(1, 10) - mock_client = MagicMock() - mock_client.list_objects.return_value = [ - types.SimpleNamespace(_object_name=f"file{i}") - for i in range(expected_length) - ] - with patch( - "human_protocol_sdk.storage.storage_client.Minio", return_value=mock_client - ): - client = StorageClient(endpoint_url="https://example.com", credentials=None) - object_list = client.list_objects(bucket="my-bucket") - if len(object_list) != expected_length: - raise AssertionError( - f"Expected {expected_length} objects, but found {len(object_list)}" - ) diff --git a/packages/sdk/python/human-protocol-sdk/test/human_protocol_sdk/storage/test_storage_utils.py b/packages/sdk/python/human-protocol-sdk/test/human_protocol_sdk/storage/test_storage_utils.py deleted file mode 100644 index e8dab760db..0000000000 --- a/packages/sdk/python/human-protocol-sdk/test/human_protocol_sdk/storage/test_storage_utils.py +++ /dev/null @@ -1,37 +0,0 @@ -import unittest -from unittest.mock import patch - -from human_protocol_sdk.storage import StorageUtils, StorageClientError -import requests - - -class TestStorageUtils(unittest.TestCase): - def test_download_file_from_url(self): - with patch("requests.get") as mock_get: - mock_response = mock_get.return_value - mock_response.raise_for_status.return_value = None - mock_response.content = b"Test file content" - url = "https://www.example.com/file.txt" - - result = StorageUtils.download_file_from_url(url) - - self.assertEqual(result, b"Test file content") - - def test_download_file_from_url_invalid_url(self): - url = "invalid_url" - - with self.assertRaises(StorageClientError) as cm: - StorageUtils.download_file_from_url(url) - self.assertEqual(f"Invalid URL: {url}", str(cm.exception)) - - def test_download_file_from_url_error(self): - with patch("requests.get") as mock_get: - url = "https://www.example.com/file.txt" - mock_response = mock_get.return_value - mock_response.raise_for_status.side_effect = requests.exceptions.HTTPError( - f"Not Found for url: {url}", response=mock_response - ) - - with self.assertRaises(StorageClientError) as cm: - StorageUtils.download_file_from_url(url) - self.assertEqual(f"Not Found for url: {url}", str(cm.exception)) diff --git a/packages/sdk/typescript/human-protocol-sdk/package.json b/packages/sdk/typescript/human-protocol-sdk/package.json index 090d111d4c..140cc542d1 100644 --- a/packages/sdk/typescript/human-protocol-sdk/package.json +++ b/packages/sdk/typescript/human-protocol-sdk/package.json @@ -44,7 +44,6 @@ "graphql": "^16.8.1", "graphql-request": "^6.1.0", "graphql-tag": "^2.12.6", - "minio": "8.0.6", "openpgp": "^5.11.2", "secp256k1": "^5.0.1", "validator": "^13.12.0", diff --git a/packages/sdk/typescript/human-protocol-sdk/src/error.ts b/packages/sdk/typescript/human-protocol-sdk/src/error.ts index 3a2d61888d..f5cbe8fd4c 100644 --- a/packages/sdk/typescript/human-protocol-sdk/src/error.ts +++ b/packages/sdk/typescript/human-protocol-sdk/src/error.ts @@ -3,42 +3,6 @@ */ export const ErrorStakingMissing = new Error('Staking contract is missing'); -/** - * @constant {Error} - The Storage client not initialized. - */ -export const ErrorStorageClientNotInitialized = new Error( - 'Storage client not initialized' -); - -/** - * @constant {Error} - The Storage client does not exist. - */ -export const ErrorStorageClientNotExists = new Error( - 'Storage client does not exist' -); - -/** - * @constant {Error} - The Storage credentials are missing. - */ -export const ErrorStorageCredentialsMissing = new Error( - 'Storage credentials are missing' -); - -/** - * @constant {Error} - The Storage bucket not found. - */ -export const ErrorStorageBucketNotFound = new Error('Bucket not found'); - -/** - * @constant {Error} - The Storage file not found. - */ -export const ErrorStorageFileNotFound = new Error('File not found'); - -/** - * @constant {Error} - The Storage file not uploaded. - */ -export const ErrorStorageFileNotUploaded = new Error('File not uploaded'); - /** * @constant {Error} - The KVStore key cannot be empty. */ diff --git a/packages/sdk/typescript/human-protocol-sdk/src/index.ts b/packages/sdk/typescript/human-protocol-sdk/src/index.ts index 047bfb6782..15a363bae2 100644 --- a/packages/sdk/typescript/human-protocol-sdk/src/index.ts +++ b/packages/sdk/typescript/human-protocol-sdk/src/index.ts @@ -1,5 +1,4 @@ import { StakingClient, StakingUtils } from './staking'; -import { StorageClient } from './storage'; import { KVStoreClient, KVStoreUtils } from './kvstore'; import { EscrowClient, EscrowUtils } from './escrow'; import { StatisticsClient } from './statistics'; @@ -27,7 +26,6 @@ export { export { StakingClient, - StorageClient, KVStoreClient, KVStoreUtils, EscrowClient, diff --git a/packages/sdk/typescript/human-protocol-sdk/src/storage.ts b/packages/sdk/typescript/human-protocol-sdk/src/storage.ts deleted file mode 100644 index 6762161b7b..0000000000 --- a/packages/sdk/typescript/human-protocol-sdk/src/storage.ts +++ /dev/null @@ -1,313 +0,0 @@ -/* eslint-disable @typescript-eslint/no-explicit-any */ -import axios from 'axios'; -import crypto from 'crypto'; -import * as Minio from 'minio'; -import { - ErrorInvalidUrl, - ErrorStorageBucketNotFound, - ErrorStorageClientNotInitialized, - ErrorStorageFileNotFound, - ErrorStorageFileNotUploaded, -} from './error'; -import { UploadFile, StorageCredentials, StorageParams } from './types'; -import { isValidUrl } from './utils'; -import { HttpStatus } from './constants'; - -/** - * - * @deprecated StorageClient is deprecated. Use Minio.Client directly. - * - * ## Introduction - * - * This client enables interacting with S3 cloud storage services like Amazon S3 Bucket, Google Cloud Storage, and others. - * - * The instance creation of `StorageClient` should be made using its constructor: - * - * ```ts - * constructor(params: StorageParams, credentials?: StorageCredentials) - * ``` - * - * > If credentials are not provided, it uses anonymous access to the bucket for downloading files. - * - * ## Installation - * - * ### npm - * ```bash - * npm install @human-protocol/sdk - * ``` - * - * ### yarn - * ```bash - * yarn install @human-protocol/sdk - * ``` - * - * ## Code example - * - * ```ts - * import { StorageClient, StorageCredentials, StorageParams } from '@human-protocol/sdk'; - * - * const credentials: StorageCredentials = { - * accessKey: 'ACCESS_KEY', - * secretKey: 'SECRET_KEY', - * }; - * const params: StorageParams = { - * endPoint: 'http://localhost', - * port: 9000, - * useSSL: false, - * region: 'us-east-1' - * }; - * - * const storageClient = new StorageClient(params, credentials); - * ``` - */ -export class StorageClient { - private client: Minio.Client; - private clientParams: StorageParams; - - /** - * **Storage client constructor** - * - * @param {StorageParams} params - Cloud storage params - * @param {StorageCredentials} credentials - Optional. Cloud storage access data. If credentials are not provided - use anonymous access to the bucket - */ - constructor(params: StorageParams, credentials?: StorageCredentials) { - try { - this.clientParams = params; - - this.client = new Minio.Client({ - ...params, - accessKey: credentials?.accessKey ?? '', - secretKey: credentials?.secretKey ?? '', - }); - } catch { - throw ErrorStorageClientNotInitialized; - } - } - - /** - * This function downloads files from a bucket. - * - * @param {string[]} keys Array of filenames to download. - * @param {string} bucket Bucket name. - * @returns {Promise} Returns an array of JSON files downloaded and parsed into objects. - * - * **Code example** - * - * ```ts - * import { StorageClient, StorageCredentials, StorageParams } from '@human-protocol/sdk'; - * - * const params: StorageParams = { - * endPoint: 'http://localhost', - * port: 9000, - * useSSL: false, - * region: 'us-east-1' - * }; - * - * const storageClient = new StorageClient(params); - * - * const keys = ['file1.json', 'file2.json']; - * const files = await storageClient.downloadFiles(keys, 'bucket-name'); - * ``` - */ - public async downloadFiles(keys: string[], bucket: string): Promise { - const isBucketExists = await this.client.bucketExists(bucket); - if (!isBucketExists) { - throw ErrorStorageBucketNotFound; - } - - return Promise.all( - keys.map(async (key) => { - try { - const response = await this.client.getObject(bucket, key); - const content = response?.read(); - - return { key, content: JSON.parse(content?.toString('utf-8') || '') }; - } catch { - throw ErrorStorageFileNotFound; - } - }) - ); - } - - /** - * This function downloads files from a URL. - * - * @param {string} url URL of the file to download. - * @returns {Promise} Returns the JSON file downloaded and parsed into an object. - * - * **Code example** - * - * ```ts - * import { StorageClient } from '@human-protocol/sdk'; - * - * const file = await StorageClient.downloadFileFromUrl('http://localhost/file.json'); - * ``` - */ - public static async downloadFileFromUrl(url: string): Promise { - if (!isValidUrl(url)) { - throw ErrorInvalidUrl; - } - - try { - const { data, status } = await axios.get(url, { - headers: { - 'Content-Type': 'application/json', - }, - }); - - if (status !== HttpStatus.OK) { - throw ErrorStorageFileNotFound; - } - - return data; - } catch { - throw ErrorStorageFileNotFound; - } - } - - /** - * This function uploads files to a bucket. - * - * @param {any[]} files Array of objects to upload serialized into JSON. - * @param {string} bucket Bucket name. - * @returns {Promise} Returns an array of uploaded file metadata. - * - * **Code example** - * - * ```ts - * import { StorageClient, StorageCredentials, StorageParams } from '@human-protocol/sdk'; - * - * const credentials: StorageCredentials = { - * accessKey: 'ACCESS_KEY', - * secretKey: 'SECRET_KEY', - * }; - * const params: StorageParams = { - * endPoint: 'http://localhost', - * port: 9000, - * useSSL: false, - * region: 'us-east-1' - * }; - * - * const storageClient = new StorageClient(params, credentials); - * const file1 = { name: 'file1', description: 'description of file1' }; - * const file2 = { name: 'file2', description: 'description of file2' }; - * const files = [file1, file2]; - * const uploadedFiles = await storageClient.uploadFiles(files, 'bucket-name'); - * ``` - */ - public async uploadFiles( - files: any[], - bucket: string - ): Promise { - const isBucketExists = await this.client.bucketExists(bucket); - if (!isBucketExists) { - throw ErrorStorageBucketNotFound; - } - - return Promise.all( - files.map(async (file) => { - const content = JSON.stringify(file); - - const hash = crypto.createHash('sha1').update(content).digest('hex'); - const key = `s3${hash}.json`; - - try { - await this.client.putObject(bucket, key, content, undefined, { - 'Content-Type': 'application/json', - 'Cache-Control': 'no-store', - }); - - return { - key, - url: `${this.clientParams.useSSL ? 'https' : 'http'}://${ - this.clientParams.endPoint - }${ - this.clientParams.port ? `:${this.clientParams.port}` : '' - }/${bucket}/${key}`, - hash, - }; - } catch { - throw ErrorStorageFileNotUploaded; - } - }) - ); - } - - /** - * This function checks if a bucket exists. - * - * @param {string} bucket Bucket name. - * @returns {Promise} Returns `true` if exists, `false` if it doesn't. - * - * **Code example** - * - * ```ts - * import { StorageClient, StorageCredentials, StorageParams } from '@human-protocol/sdk'; - * - * const credentials: StorageCredentials = { - * accessKey: 'ACCESS_KEY', - * secretKey: 'SECRET_KEY', - * }; - * const params: StorageParams = { - * endPoint: 'http://localhost', - * port: 9000, - * useSSL: false, - * region: 'us-east-1' - * }; - * - * const storageClient = new StorageClient(params, credentials); - * const exists = await storageClient.bucketExists('bucket-name'); - * ``` - */ - public async bucketExists(bucket: string): Promise { - return this.client.bucketExists(bucket); - } - - /** - * This function lists all file names contained in the bucket. - * - * @param {string} bucket Bucket name. - * @returns {Promise} Returns the list of file names contained in the bucket. - * - * **Code example** - * - * ```ts - * import { StorageClient, StorageCredentials, StorageParams } from '@human-protocol/sdk'; - * - * const credentials: StorageCredentials = { - * accessKey: 'ACCESS_KEY', - * secretKey: 'SECRET_KEY', - * }; - * const params: StorageParams = { - * endPoint: 'http://localhost', - * port: 9000, - * useSSL: false, - * region: 'us-east-1' - * }; - * - * const storageClient = new StorageClient(params, credentials); - * const fileNames = await storageClient.listObjects('bucket-name'); - * ``` - */ - public async listObjects(bucket: string): Promise { - const isBucketExists = await this.client.bucketExists(bucket); - if (!isBucketExists) { - throw ErrorStorageBucketNotFound; - } - - try { - return new Promise((resolve, reject) => { - const keys: string[] = []; - const stream = this.client.listObjectsV2(bucket, '', true, ''); - - stream.on('data', (obj: { name: string }) => keys.push(obj.name)); - stream.on('error', reject); - stream.on('end', () => { - resolve(keys); - }); - }); - } catch (e) { - throw new Error(String(e)); - } - } -} diff --git a/packages/sdk/typescript/human-protocol-sdk/src/types.ts b/packages/sdk/typescript/human-protocol-sdk/src/types.ts index 14497c4bc5..6d5ae3a7ba 100644 --- a/packages/sdk/typescript/human-protocol-sdk/src/types.ts +++ b/packages/sdk/typescript/human-protocol-sdk/src/types.ts @@ -36,63 +36,6 @@ export enum EscrowStatus { ToCancel, } -/** - * AWS/GCP cloud storage access data - * @readonly - * @deprecated StorageClient is deprecated. Use Minio.Client directly. - */ -export type StorageCredentials = { - /** - * Access Key - */ - accessKey: string; - /** - * Secret Key - */ - secretKey: string; -}; - -/** - * @deprecated StorageClient is deprecated. Use Minio.Client directly. - */ -export type StorageParams = { - /** - * Request endPoint - */ - endPoint: string; - /** - * Enable secure (HTTPS) access. Default value set to false - */ - useSSL: boolean; - /** - * Region - */ - region?: string; - /** - * TCP/IP port number. Default value set to 80 for HTTP and 443 for HTTPs - */ - port?: number; -}; - -/** - * Upload file data - * @readonly - */ -export type UploadFile = { - /** - * Uploaded object key - */ - key: string; - /** - * Uploaded object URL - */ - url: string; - /** - * Hash of uploaded object key - */ - hash: string; -}; - /** * Network data */ diff --git a/packages/sdk/typescript/human-protocol-sdk/test/storage.test.ts b/packages/sdk/typescript/human-protocol-sdk/test/storage.test.ts deleted file mode 100644 index 6c1988c700..0000000000 --- a/packages/sdk/typescript/human-protocol-sdk/test/storage.test.ts +++ /dev/null @@ -1,400 +0,0 @@ -// Create a Minio.Client mock -vi.mock('minio', () => { - class Client { - getObject = vi.fn().mockImplementation(() => { - const read = () => { - return JSON.stringify({ key: STORAGE_TEST_FILE_VALUE }); - }; - return Promise.resolve({ read }); - }); // getObject mock - putObject = vi.fn(); // putObject mock - bucketExists = vi.fn().mockImplementation((bucketName) => { - // Add conditional logic here based on the test scenario - if (bucketName === STORAGE_FAKE_BUCKET) { - return Promise.resolve(false); // Return false for fake scenario - } else { - return Promise.resolve(true); // Return true for other scenarios - } - }); - } - - // Return Minio.Client mock - return { Client }; -}); - -import { describe, test, expect, vi, beforeAll } from 'vitest'; -import axios from 'axios'; -import crypto from 'crypto'; -import { - DEFAULT_ENDPOINT, - DEFAULT_PORT, - DEFAULT_PUBLIC_BUCKET, - DEFAULT_REGION, - DEFAULT_USE_SSL, - HttpStatus, - StorageCredentials, - StorageParams, -} from '../src'; -import { - ErrorInvalidUrl, - ErrorStorageFileNotFound, - ErrorStorageFileNotUploaded, -} from '../src/error'; -import { StorageClient } from '../src/storage'; -import { - FAKE_URL, - STORAGE_FAKE_BUCKET, - STORAGE_TEST_ACCESS_KEY, - STORAGE_TEST_FILE_VALUE, - STORAGE_TEST_FILE_VALUE_2, - STORAGE_TEST_SECRET_KEY, -} from './utils/constants'; - -describe('Storage tests', () => { - describe('Client initialization', () => { - test('should set correct credentials', async () => { - const storageCredentials: StorageCredentials = { - accessKey: STORAGE_TEST_ACCESS_KEY, - secretKey: STORAGE_TEST_SECRET_KEY, - }; - - expect(storageCredentials.accessKey).toEqual(STORAGE_TEST_ACCESS_KEY); - expect(storageCredentials.secretKey).toEqual(STORAGE_TEST_SECRET_KEY); - }); - - test('should set correct params', async () => { - const storageParams: StorageParams = { - endPoint: DEFAULT_ENDPOINT, - port: DEFAULT_PORT, - useSSL: DEFAULT_USE_SSL, - region: DEFAULT_REGION, - }; - - expect(storageParams.endPoint).toEqual(DEFAULT_ENDPOINT); - expect(storageParams.port).toEqual(DEFAULT_PORT); - expect(storageParams.useSSL).toEqual(false); - expect(storageParams.region).toEqual(DEFAULT_REGION); - }); - - test('should init client with empty credentials', async () => { - const storageParams: StorageParams = { - endPoint: DEFAULT_ENDPOINT, - port: DEFAULT_PORT, - useSSL: DEFAULT_USE_SSL, - }; - - const storageClient = new StorageClient(storageParams); - - expect(storageClient).toBeInstanceOf(StorageClient); - }); - }); - - describe('Client anonymous access', () => { - let storageClient: StorageClient; - - beforeAll(async () => { - const storageParams: StorageParams = { - endPoint: DEFAULT_ENDPOINT, - port: DEFAULT_PORT, - useSSL: DEFAULT_USE_SSL, - }; - - storageClient = new StorageClient(storageParams); - }); - - test('should return the bucket exists', async () => { - const isExists = await storageClient.bucketExists(DEFAULT_PUBLIC_BUCKET); - expect(isExists).toEqual(true); - }); - - test('should return the bucket does not exist', async () => { - const isExists = await storageClient.bucketExists(STORAGE_FAKE_BUCKET); - expect(isExists).toEqual(false); - }); - - test('should upload the file with success', async () => { - const file = { key: STORAGE_TEST_FILE_VALUE }; - - const uploadedResults = await storageClient.uploadFiles( - [file], - DEFAULT_PUBLIC_BUCKET - ); - - const hash = crypto - .createHash('sha1') - .update(JSON.stringify(file)) - .digest('hex'); - const key = `s3${hash}.json`; - - expect(storageClient['client'].putObject).toHaveBeenCalledWith( - DEFAULT_PUBLIC_BUCKET, - key, - JSON.stringify(file), - { - 'Content-Type': 'application/json', - 'Cache-Control': 'no-store', - } - ); - expect(uploadedResults[0].key).toEqual(key); - expect(uploadedResults[0].url).toEqual( - `http://${DEFAULT_ENDPOINT}:${DEFAULT_PORT}/${DEFAULT_PUBLIC_BUCKET}/${key}` - ); - expect(uploadedResults[0].hash).toEqual(hash); - }); - - test('should not upload the file with an error', async () => { - const file = { key: STORAGE_TEST_FILE_VALUE }; - vi.spyOn(storageClient, 'uploadFiles').mockImplementation(() => { - throw ErrorStorageFileNotUploaded; - }); - expect(() => - storageClient.uploadFiles([file], DEFAULT_PUBLIC_BUCKET) - ).toThrow(ErrorStorageFileNotUploaded); - }); - - test('should download the files with success', async () => { - const file = { key: STORAGE_TEST_FILE_VALUE }; - - const hash = crypto - .createHash('sha1') - .update(JSON.stringify(file)) - .digest('hex'); - const key = `s3${hash}.json`; - - const downloadedResults = await storageClient.downloadFiles( - [key], - DEFAULT_PUBLIC_BUCKET - ); - - expect(storageClient['client'].getObject).toHaveBeenCalledWith( - DEFAULT_PUBLIC_BUCKET, - key - ); - expect(downloadedResults[0].key).toEqual(key); - expect(downloadedResults[0].content).toEqual(file); - }); - - test('should not download the files with an error', async () => { - vi.spyOn(storageClient, 'downloadFiles').mockImplementation(() => { - throw ErrorStorageFileNotFound; - }); - expect(() => - storageClient.downloadFiles( - [STORAGE_TEST_FILE_VALUE], - DEFAULT_PUBLIC_BUCKET - ) - ).toThrow(ErrorStorageFileNotFound); - }); - - test('should fail URL validation', async () => { - await expect(StorageClient.downloadFileFromUrl(FAKE_URL)).rejects.toThrow( - ErrorInvalidUrl - ); - }); - - test('should download the file from URL with success', async () => { - const file = { key: STORAGE_TEST_FILE_VALUE }; - - vi.spyOn(axios, 'get').mockImplementation(() => - Promise.resolve({ data: file, status: HttpStatus.OK }) - ); - - const hash = crypto - .createHash('sha1') - .update(JSON.stringify(file)) - .digest('hex'); - const url = `http://${DEFAULT_ENDPOINT}:${DEFAULT_PORT}/${DEFAULT_PUBLIC_BUCKET}/${hash}.json`; - - const result = await StorageClient.downloadFileFromUrl(url); - expect(result).toEqual(file); - }); - - test('should not download the file from URL with an error', async () => { - const file = { key: STORAGE_TEST_FILE_VALUE }; - - const hash = crypto - .createHash('sha1') - .update(JSON.stringify(file)) - .digest('hex'); - const url = `http://${DEFAULT_ENDPOINT}:${DEFAULT_PORT}/${DEFAULT_PUBLIC_BUCKET}/${hash}.json`; - - vi.spyOn(StorageClient, 'downloadFileFromUrl').mockImplementation(() => { - throw ErrorStorageFileNotFound; - }); - expect(() => StorageClient.downloadFileFromUrl(url)).toThrow( - ErrorStorageFileNotFound - ); - }); - - test('should return a list of objects with success', async () => { - const file1 = { key: STORAGE_TEST_FILE_VALUE }; - const hash1 = crypto - .createHash('sha1') - .update(JSON.stringify(file1)) - .digest('hex'); - const key1 = `s3${hash1}.json`; - - const file2 = { key: STORAGE_TEST_FILE_VALUE_2 }; - const hash2 = crypto - .createHash('sha1') - .update(JSON.stringify(file2)) - .digest('hex'); - const key2 = `s3${hash2}.json`; - - vi.spyOn(storageClient, 'listObjects').mockImplementation(() => - Promise.resolve([key1, key2]) - ); - - const results = await storageClient.listObjects(DEFAULT_PUBLIC_BUCKET); - - expect(results[0]).toEqual(key1); - expect(results[1]).toEqual(key2); - }); - - test('should not return a list of objects with an error', async () => { - vi.spyOn(storageClient, 'listObjects').mockImplementation(() => { - throw new Error(); - }); - expect(() => storageClient.listObjects(DEFAULT_PUBLIC_BUCKET)).toThrow( - new Error() - ); - }); - }); - - describe('Client with credentials', () => { - let storageClient: StorageClient; - - beforeAll(async () => { - const storageCredentials: StorageCredentials = { - accessKey: STORAGE_TEST_ACCESS_KEY, - secretKey: STORAGE_TEST_SECRET_KEY, - }; - - const storageParams: StorageParams = { - endPoint: DEFAULT_ENDPOINT, - port: DEFAULT_PORT, - useSSL: DEFAULT_USE_SSL, - }; - - storageClient = new StorageClient(storageParams, storageCredentials); - }); - - test('should return the bucket exists', async () => { - const isExists = await storageClient.bucketExists(DEFAULT_PUBLIC_BUCKET); - expect(isExists).toEqual(true); - }); - - test('should return the bucket does not exist', async () => { - const isExists = await storageClient.bucketExists(STORAGE_FAKE_BUCKET); - expect(isExists).toEqual(false); - }); - - test('should upload the file with success', async () => { - const file = { key: STORAGE_TEST_FILE_VALUE }; - - const uploadedResults = await storageClient.uploadFiles( - [file], - DEFAULT_PUBLIC_BUCKET - ); - - const hash = crypto - .createHash('sha1') - .update(JSON.stringify(file)) - .digest('hex'); - const key = `s3${hash}.json`; - - expect(storageClient['client'].putObject).toHaveBeenCalledWith( - DEFAULT_PUBLIC_BUCKET, - key, - JSON.stringify(file), - { - 'Content-Type': 'application/json', - 'Cache-Control': 'no-store', - } - ); - expect(uploadedResults[0].key).toEqual(key); - expect(uploadedResults[0].url).toEqual( - `http://${DEFAULT_ENDPOINT}:${DEFAULT_PORT}/${DEFAULT_PUBLIC_BUCKET}/${key}` - ); - expect(uploadedResults[0].hash).toEqual(hash); - }); - - test('should not upload the file with an error', async () => { - const file = { key: STORAGE_TEST_FILE_VALUE }; - vi.spyOn(storageClient, 'uploadFiles').mockImplementation(() => { - throw ErrorStorageFileNotUploaded; - }); - expect(() => - storageClient.uploadFiles([file], DEFAULT_PUBLIC_BUCKET) - ).toThrow(ErrorStorageFileNotUploaded); - }); - - test('should download the file with success', async () => { - const file = { key: STORAGE_TEST_FILE_VALUE }; - - const hash = crypto - .createHash('sha1') - .update(JSON.stringify(file)) - .digest('hex'); - const key = `s3${hash}.json`; - - const downloadedResults = await storageClient.downloadFiles( - [key], - DEFAULT_PUBLIC_BUCKET - ); - - expect(storageClient['client'].getObject).toHaveBeenCalledWith( - DEFAULT_PUBLIC_BUCKET, - key - ); - expect(downloadedResults[0].key).toEqual(key); - expect(downloadedResults[0].content).toEqual(file); - }); - - test('should not download the file with an error', async () => { - vi.spyOn(storageClient, 'downloadFiles').mockImplementation(() => { - throw ErrorStorageFileNotFound; - }); - expect(() => - storageClient.downloadFiles( - [STORAGE_TEST_FILE_VALUE], - DEFAULT_PUBLIC_BUCKET - ) - ).toThrow(ErrorStorageFileNotFound); - }); - - test('should return a list of objects with success', async () => { - const file1 = { key: STORAGE_TEST_FILE_VALUE }; - const hash1 = crypto - .createHash('sha1') - .update(JSON.stringify(file1)) - .digest('hex'); - const key1 = `s3${hash1}.json`; - - const file2 = { key: STORAGE_TEST_FILE_VALUE_2 }; - const hash2 = crypto - .createHash('sha1') - .update(JSON.stringify(file2)) - .digest('hex'); - const key2 = `s3${hash2}.json`; - - vi.spyOn(storageClient, 'listObjects').mockImplementation(() => - Promise.resolve([key1, key2]) - ); - - const results = await storageClient.listObjects(DEFAULT_PUBLIC_BUCKET); - - expect(results[0]).toEqual(key1); - expect(results[1]).toEqual(key2); - }); - - test('should not return a list of objects with an error', async () => { - vi.spyOn(storageClient, 'listObjects').mockImplementation(() => { - throw new Error(); - }); - expect(() => storageClient.listObjects(DEFAULT_PUBLIC_BUCKET)).toThrow( - new Error() - ); - }); - }); -}); diff --git a/yarn.lock b/yarn.lock index 4398bc42a2..c45b15f6ac 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4999,7 +4999,6 @@ __metadata: graphql: "npm:^16.8.1" graphql-request: "npm:^6.1.0" graphql-tag: "npm:^2.12.6" - minio: "npm:8.0.6" openpgp: "npm:^5.11.2" prettier: "npm:^3.4.2" secp256k1: "npm:^5.0.1" From a3dc2439fb55c31188d9661432144f0a1c940950 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20L=C3=B3pez?= Date: Tue, 25 Nov 2025 17:35:05 +0100 Subject: [PATCH 4/4] Merge branch 'develop' into dependabot/npm_and_yarn/develop/minio-8.0.6 --- .changeset/nine-eggs-run.md | 6 - .changeset/quick-eels-show.md | 8 - .../workflows/cd-cvat-exchange-oracle.yaml | 4 +- .../workflows/cd-cvat-recording-oracle.yaml | 4 +- .github/workflows/cd-deploy-contracts.yaml | 6 +- .github/workflows/cd-gitbook-sdk-docs.yaml | 4 +- .github/workflows/cd-job-launcher-server.yaml | 4 +- .github/workflows/cd-packages.yaml | 4 +- .github/workflows/cd-python-sdk.yaml | 2 +- .github/workflows/cd-reputation-oracle.yaml | 4 +- .github/workflows/cd-subgraph.yaml | 4 +- .github/workflows/ci-dependency-review.yaml | 2 +- .../ci-lint-cvat-exchange-oracle.yaml | 2 +- .../ci-lint-cvat-recording-oracle.yaml | 2 +- .github/workflows/ci-lint.yaml | 4 +- .github/workflows/ci-test-core.yaml | 4 +- .../ci-test-cvat-exchange-oracle.yaml | 2 +- .../ci-test-cvat-recording-oracle.yaml | 2 +- .github/workflows/ci-test-dashboard.yaml | 4 +- .github/workflows/ci-test-faucet-server.yaml | 4 +- .github/workflows/ci-test-fortune.yaml | 8 +- .github/workflows/ci-test-human-app.yaml | 4 +- .github/workflows/ci-test-job-launcher.yaml | 4 +- .github/workflows/ci-test-node-sdk.yaml | 4 +- .github/workflows/ci-test-python-sdk.yaml | 2 +- .../workflows/ci-test-reputation-oracle.yaml | 4 +- .github/workflows/ci-test-subgraph.yaml | 4 +- docs/sdk/python/human_protocol_sdk.md | 1 + docs/sdk/python/human_protocol_sdk.utils.md | 6 +- .../base/classes/BaseEthersClient.md | 8 +- .../encryption/classes/Encryption.md | 12 +- .../encryption/classes/EncryptionUtils.md | 12 +- .../typescript/enums/enumerations/ChainId.md | 18 +- .../enums/enumerations/OperatorCategory.md | 6 +- .../enums/enumerations/OrderDirection.md | 6 +- .../typescript/escrow/classes/EscrowClient.md | 64 +- .../typescript/escrow/classes/EscrowUtils.md | 14 +- .../types/interfaces/IOperatorSubgraph.md | 34 +- .../interfaces/IReputationNetworkSubgraph.md | 8 +- .../type-aliases/CancellationRefundData.md | 16 +- .../graphql/types/type-aliases/EscrowData.md | 50 +- .../type-aliases/EscrowStatisticsData.md | 22 +- .../types/type-aliases/EventDayData.md | 38 +- .../types/type-aliases/HMTHolderData.md | 6 +- .../types/type-aliases/HMTStatisticsData.md | 14 +- .../type-aliases/InternalTransactionData.md | 18 +- .../graphql/types/type-aliases/KVStoreData.md | 14 +- .../graphql/types/type-aliases/PayoutData.md | 12 +- .../type-aliases/RewardAddedEventData.md | 10 +- .../graphql/types/type-aliases/StakerData.md | 18 +- .../graphql/types/type-aliases/StatusEvent.md | 8 +- .../types/type-aliases/TransactionData.md | 24 +- .../graphql/types/type-aliases/WorkerData.md | 10 +- .../interfaces/ICancellationRefund.md | 16 +- .../interfaces/ICancellationRefundFilter.md | 18 +- .../interfaces/interfaces/IDailyEscrow.md | 14 +- .../interfaces/interfaces/IDailyHMT.md | 12 +- .../interfaces/interfaces/IDailyPayment.md | 10 +- .../interfaces/interfaces/IDailyWorker.md | 6 +- .../interfaces/interfaces/IEscrow.md | 52 +- .../interfaces/interfaces/IEscrowConfig.md | 18 +- .../interfaces/IEscrowStatistics.md | 6 +- .../interfaces/interfaces/IEscrowWithdraw.md | 8 +- .../interfaces/interfaces/IEscrowsFilter.md | 26 +- .../interfaces/interfaces/IHMTHolder.md | 6 +- .../interfaces/IHMTHoldersParams.md | 10 +- .../interfaces/interfaces/IHMTStatistics.md | 8 +- .../interfaces/interfaces/IKVStore.md | 6 +- .../interfaces/interfaces/IKeyPair.md | 10 +- .../interfaces/interfaces/IOperator.md | 44 +- .../interfaces/interfaces/IOperatorsFilter.md | 16 +- .../interfaces/interfaces/IPagination.md | 8 +- .../interfaces/IPaymentStatistics.md | 4 +- .../interfaces/interfaces/IPayout.md | 12 +- .../interfaces/interfaces/IPayoutFilter.md | 18 +- .../interfaces/IReputationNetwork.md | 8 +- .../interfaces/interfaces/IReward.md | 6 +- .../interfaces/interfaces/IStaker.md | 16 +- .../interfaces/interfaces/IStakersFilter.md | 28 +- .../interfaces/IStatisticsFilter.md | 12 +- .../interfaces/interfaces/IStatusEvent.md | 10 +- .../interfaces/IStatusEventFilter.md | 18 +- .../interfaces/interfaces/ITransaction.md | 24 +- .../interfaces/ITransactionsFilter.md | 28 +- .../interfaces/interfaces/IWorker.md | 10 +- .../interfaces/IWorkerStatistics.md | 4 +- .../interfaces/interfaces/IWorkersFilter.md | 14 +- .../interfaces/InternalTransaction.md | 16 +- .../interfaces/interfaces/StakerInfo.md | 10 +- .../interfaces/interfaces/SubgraphOptions.md | 17 +- .../kvstore/classes/KVStoreClient.md | 18 +- .../kvstore/classes/KVStoreUtils.md | 10 +- .../operator/classes/OperatorUtils.md | 10 +- .../staking/classes/StakingClient.md | 28 +- .../staking/classes/StakingUtils.md | 6 +- .../statistics/classes/StatisticsClient.md | 20 +- .../storage/classes/StorageClient.md | 14 +- .../transaction/classes/TransactionUtils.md | 6 +- .../types/enumerations/EscrowStatus.md | 16 +- .../types/type-aliases/NetworkData.md | 24 +- .../types/type-aliases/StorageCredentials.md | 6 +- .../types/type-aliases/StorageParams.md | 10 +- .../type-aliases/TransactionLikeWithNonce.md | 2 +- .../types/type-aliases/UploadFile.md | 8 +- packages/apps/dashboard/server/package.json | 4 +- .../src/modules/details/details.spec.ts | 2 +- packages/apps/faucet/server/package.json | 2 +- .../exchange-oracle/server/package.json | 4 +- .../transform-enum.interceptor.spec.ts | 4 +- .../assignment/assignment.service.spec.ts | 22 +- .../src/modules/job/job.service.spec.ts | 36 +- .../modules/webhook/webhook.service.spec.ts | 6 +- .../fortune/recording-oracle/package.json | 2 +- .../transform-enum.interceptor.spec.ts | 6 +- .../src/modules/job/job.service.spec.ts | 30 +- packages/apps/human-app/frontend/.env.example | 2 - packages/apps/human-app/frontend/package.json | 2 +- .../hcaptcha-labeling.page.tsx | 7 +- .../apps/human-app/frontend/src/shared/env.ts | 2 - packages/apps/human-app/server/package.json | 4 +- .../common/filter/exception.filter.spec.ts | 16 +- .../transform-enum.interceptor.spec.ts | 6 +- .../spec/reputation-oracle.gateway.spec.ts | 70 +- .../h-captcha/spec/h-captcha.service.spec.ts | 4 +- .../apps/job-launcher/client/package.json | 2 +- .../apps/job-launcher/server/package.json | 4 +- .../server/src/common/config/env-schema.ts | 1 + .../src/common/config/web3-config.service.ts | 4 + .../server/src/common/constants/index.ts | 2 - .../server/src/common/constants/tokens.ts | 19 +- .../server/src/common/enums/cron-job.ts | 2 - .../server/src/common/enums/job.ts | 2 - .../transform-enum.interceptor.spec.ts | 6 +- .../server/src/common/interfaces/web3.ts | 7 + .../server/src/common/utils/signature.spec.ts | 8 +- .../1763628908882-removeUnusedTypes.ts | 113 ++ .../modules/cron-job/cron-job.service.spec.ts | 242 --- .../src/modules/cron-job/cron-job.service.ts | 84 +- .../server/src/modules/job/job.repository.ts | 2 - .../src/modules/job/job.service.spec.ts | 303 ++-- .../server/src/modules/job/job.service.ts | 220 +-- .../src/modules/manifest/manifest.service.ts | 2 +- .../modules/payment/payment.service.spec.ts | 10 +- .../src/modules/payment/payment.service.ts | 2 +- .../providers/stripe/stripe.service.spec.ts | 2 +- .../qualification.service.spec.ts | 8 + .../modules/storage/storage.service.spec.ts | 2 +- .../src/modules/web3/web3.controller.ts | 2 +- .../server/src/modules/web3/web3.module.ts | 3 +- .../src/modules/web3/web3.service.spec.ts | 142 +- .../server/src/modules/web3/web3.service.ts | 68 +- .../modules/webhook/webhook.service.spec.ts | 4 +- .../job-launcher/server/test/fixtures/web3.ts | 15 +- .../reputation-oracle/server/package.json | 4 +- .../src/modules/auth/auth.service.spec.ts | 2 +- packages/core/.openzeppelin/bsc-testnet.json | 157 ++ packages/core/.openzeppelin/bsc.json | 319 +++- packages/core/.openzeppelin/mainnet.json | 319 +++- packages/core/.openzeppelin/polygon.json | 321 +++- packages/core/.openzeppelin/sepolia.json | 157 ++ .../core/.openzeppelin/unknown-80002.json | 157 ++ packages/core/contracts/Escrow.sol | 14 +- packages/core/package.json | 4 +- packages/core/test/Escrow.ts | 62 +- packages/examples/gcv/package.json | 2 +- packages/examples/gcv/src/utils/storage.ts | 2 +- packages/libs/logger/package.json | 2 +- .../python/human-protocol-sdk/package.json | 2 +- .../human-protocol-sdk/package.json | 6 +- .../human-protocol-sdk/src/encryption.ts | 2 +- .../human-protocol-sdk/src/escrow.ts | 1 + yarn.lock | 1320 +++++++++-------- 172 files changed, 3533 insertions(+), 2114 deletions(-) delete mode 100644 .changeset/nine-eggs-run.md delete mode 100644 .changeset/quick-eels-show.md create mode 100644 packages/apps/job-launcher/server/src/common/interfaces/web3.ts create mode 100644 packages/apps/job-launcher/server/src/database/migrations/1763628908882-removeUnusedTypes.ts diff --git a/.changeset/nine-eggs-run.md b/.changeset/nine-eggs-run.md deleted file mode 100644 index a14c8104e8..0000000000 --- a/.changeset/nine-eggs-run.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@human-protocol/sdk": minor -"@human-protocol/python-sdk": minor ---- - -Add an indexer id parameter to subgraph requests diff --git a/.changeset/quick-eels-show.md b/.changeset/quick-eels-show.md deleted file mode 100644 index 3da5422692..0000000000 --- a/.changeset/quick-eels-show.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@human-protocol/logger": minor ---- - -- improved serialization of errors -- bumped `pino` and `pino-pretty` -- updated docs and added examples -- use named constants for important keys diff --git a/.github/workflows/cd-cvat-exchange-oracle.yaml b/.github/workflows/cd-cvat-exchange-oracle.yaml index b99219c9b6..e77b4c3931 100644 --- a/.github/workflows/cd-cvat-exchange-oracle.yaml +++ b/.github/workflows/cd-cvat-exchange-oracle.yaml @@ -25,7 +25,7 @@ jobs: if: ${{ github.event_name == 'pull_request' }} steps: - name: Checkout - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: PR check run: | @@ -45,7 +45,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v5 + uses: actions/checkout@v6 - uses: convictional/trigger-workflow-and-wait@v1.6.5 with: diff --git a/.github/workflows/cd-cvat-recording-oracle.yaml b/.github/workflows/cd-cvat-recording-oracle.yaml index 4daf9e47ff..a4f66686a6 100644 --- a/.github/workflows/cd-cvat-recording-oracle.yaml +++ b/.github/workflows/cd-cvat-recording-oracle.yaml @@ -26,7 +26,7 @@ jobs: if: ${{ github.event_name == 'pull_request' }} steps: - name: Checkout - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: PR check run: | @@ -46,7 +46,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v5 + uses: actions/checkout@v6 - uses: convictional/trigger-workflow-and-wait@v1.6.5 with: diff --git a/.github/workflows/cd-deploy-contracts.yaml b/.github/workflows/cd-deploy-contracts.yaml index ccfcea1803..324ffdae2d 100644 --- a/.github/workflows/cd-deploy-contracts.yaml +++ b/.github/workflows/cd-deploy-contracts.yaml @@ -32,10 +32,10 @@ jobs: MOONSCAN_API_KEY: ${{ secrets.MOONSCAN_API_KEY }} AVALANCHE_API_KEY: ${{ secrets.AVALANCHE_API_KEY }} steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 with: token: ${{ secrets.GH_TOKEN_CD_CONTRACTS }} - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 with: node-version-file: .nvmrc cache: yarn @@ -126,7 +126,7 @@ jobs: git stash --include-untracked - name: Checkout develop if: always() && steps.check_changes.outputs.changes == 'true' - uses: actions/checkout@v5 + uses: actions/checkout@v6 with: ref: develop token: ${{ secrets.GH_TOKEN_CD_CONTRACTS }} diff --git a/.github/workflows/cd-gitbook-sdk-docs.yaml b/.github/workflows/cd-gitbook-sdk-docs.yaml index 29c0a30136..574253955c 100644 --- a/.github/workflows/cd-gitbook-sdk-docs.yaml +++ b/.github/workflows/cd-gitbook-sdk-docs.yaml @@ -13,8 +13,8 @@ jobs: name: Sync docs to GitBook runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: .nvmrc - name: Publish docs diff --git a/.github/workflows/cd-job-launcher-server.yaml b/.github/workflows/cd-job-launcher-server.yaml index ad4ebb8f4a..02a075af78 100644 --- a/.github/workflows/cd-job-launcher-server.yaml +++ b/.github/workflows/cd-job-launcher-server.yaml @@ -22,7 +22,7 @@ jobs: if: ${{ github.event_name == 'pull_request' }} steps: - name: Checkout - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: PR check run: | @@ -42,7 +42,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v5 + uses: actions/checkout@v6 - uses: convictional/trigger-workflow-and-wait@v1.6.5 with: diff --git a/.github/workflows/cd-packages.yaml b/.github/workflows/cd-packages.yaml index 23417d6472..ea030917e4 100644 --- a/.github/workflows/cd-packages.yaml +++ b/.github/workflows/cd-packages.yaml @@ -33,14 +33,14 @@ jobs: NPM_PUBLISH_TAG: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.npm_tag || 'latest' }} PUSH_GIT_TAGS: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.push_git_tags || 'true' }} steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 with: token: ${{ secrets.GH_GITBOOK_TOKEN }} - name: Setup git identity run: | git config --global user.name "github-actions[bot]" git config --global user.email "github-actions[bot]@users.noreply.github.com" - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 with: node-version-file: .nvmrc cache: yarn diff --git a/.github/workflows/cd-python-sdk.yaml b/.github/workflows/cd-python-sdk.yaml index 5994e38d83..2af293b225 100644 --- a/.github/workflows/cd-python-sdk.yaml +++ b/.github/workflows/cd-python-sdk.yaml @@ -24,7 +24,7 @@ jobs: env: PUSH_GIT_TAGS: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.push_git_tags || 'true' }} steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 with: token: ${{ secrets.GH_GITBOOK_TOKEN }} - name: Setup git identity diff --git a/.github/workflows/cd-reputation-oracle.yaml b/.github/workflows/cd-reputation-oracle.yaml index 6f25f8b6cb..396733e638 100644 --- a/.github/workflows/cd-reputation-oracle.yaml +++ b/.github/workflows/cd-reputation-oracle.yaml @@ -22,7 +22,7 @@ jobs: if: ${{ github.event_name == 'pull_request' }} steps: - name: Checkout - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: PR check run: | @@ -42,7 +42,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v5 + uses: actions/checkout@v6 - uses: convictional/trigger-workflow-and-wait@v1.6.5 with: diff --git a/.github/workflows/cd-subgraph.yaml b/.github/workflows/cd-subgraph.yaml index 095a97c23e..6969c1582c 100644 --- a/.github/workflows/cd-subgraph.yaml +++ b/.github/workflows/cd-subgraph.yaml @@ -25,8 +25,8 @@ jobs: fail-fast: true max-parallel: 3 steps: - - uses: actions/checkout@v5 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: .nvmrc cache: yarn diff --git a/.github/workflows/ci-dependency-review.yaml b/.github/workflows/ci-dependency-review.yaml index 265f68f099..e30c6d1045 100644 --- a/.github/workflows/ci-dependency-review.yaml +++ b/.github/workflows/ci-dependency-review.yaml @@ -12,7 +12,7 @@ jobs: dependency-review: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Dependency Review uses: actions/dependency-review-action@v4.8.2 with: diff --git a/.github/workflows/ci-lint-cvat-exchange-oracle.yaml b/.github/workflows/ci-lint-cvat-exchange-oracle.yaml index f072d7b048..22525975c8 100644 --- a/.github/workflows/ci-lint-cvat-exchange-oracle.yaml +++ b/.github/workflows/ci-lint-cvat-exchange-oracle.yaml @@ -19,7 +19,7 @@ jobs: name: CVAT Exchange Oracle Lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Install Poetry uses: snok/install-poetry@v1 with: diff --git a/.github/workflows/ci-lint-cvat-recording-oracle.yaml b/.github/workflows/ci-lint-cvat-recording-oracle.yaml index fed003eee1..7d4e0390f1 100644 --- a/.github/workflows/ci-lint-cvat-recording-oracle.yaml +++ b/.github/workflows/ci-lint-cvat-recording-oracle.yaml @@ -19,7 +19,7 @@ jobs: name: CVAT Recording Oracle Lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Install Poetry uses: snok/install-poetry@v1 with: diff --git a/.github/workflows/ci-lint.yaml b/.github/workflows/ci-lint.yaml index 84ac0fa6bc..f9b87355b8 100644 --- a/.github/workflows/ci-lint.yaml +++ b/.github/workflows/ci-lint.yaml @@ -11,8 +11,8 @@ jobs: name: Lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: .nvmrc cache: yarn diff --git a/.github/workflows/ci-test-core.yaml b/.github/workflows/ci-test-core.yaml index 0f755f9e37..e8c8953b2d 100644 --- a/.github/workflows/ci-test-core.yaml +++ b/.github/workflows/ci-test-core.yaml @@ -11,8 +11,8 @@ jobs: name: Core Test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: .nvmrc cache: yarn diff --git a/.github/workflows/ci-test-cvat-exchange-oracle.yaml b/.github/workflows/ci-test-cvat-exchange-oracle.yaml index 09418d040a..f5e28dec2c 100644 --- a/.github/workflows/ci-test-cvat-exchange-oracle.yaml +++ b/.github/workflows/ci-test-cvat-exchange-oracle.yaml @@ -12,7 +12,7 @@ jobs: name: CVAT Test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: CVAT Exchange Oracle tests working-directory: ./packages/examples/cvat/exchange-oracle run: docker compose -f docker-compose.test.yml up --attach test --exit-code-from test diff --git a/.github/workflows/ci-test-cvat-recording-oracle.yaml b/.github/workflows/ci-test-cvat-recording-oracle.yaml index 303382a91f..38d5f39f75 100644 --- a/.github/workflows/ci-test-cvat-recording-oracle.yaml +++ b/.github/workflows/ci-test-cvat-recording-oracle.yaml @@ -12,7 +12,7 @@ jobs: name: CVAT Test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: CVAT Recording Oracle tests working-directory: ./packages/examples/cvat/recording-oracle run: docker compose -f docker-compose.test.yml up --attach test --exit-code-from test diff --git a/.github/workflows/ci-test-dashboard.yaml b/.github/workflows/ci-test-dashboard.yaml index 0428609d85..aeb06fe38d 100644 --- a/.github/workflows/ci-test-dashboard.yaml +++ b/.github/workflows/ci-test-dashboard.yaml @@ -13,8 +13,8 @@ jobs: name: Dashboard Server Test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: .nvmrc cache: yarn diff --git a/.github/workflows/ci-test-faucet-server.yaml b/.github/workflows/ci-test-faucet-server.yaml index b3d5c9fc4c..93c53d226c 100644 --- a/.github/workflows/ci-test-faucet-server.yaml +++ b/.github/workflows/ci-test-faucet-server.yaml @@ -13,8 +13,8 @@ jobs: name: Faucet Server Test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: .nvmrc cache: yarn diff --git a/.github/workflows/ci-test-fortune.yaml b/.github/workflows/ci-test-fortune.yaml index 7e49199dc1..497848d717 100644 --- a/.github/workflows/ci-test-fortune.yaml +++ b/.github/workflows/ci-test-fortune.yaml @@ -13,8 +13,8 @@ jobs: name: Fortune Exchange Oracle Tests runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: .nvmrc cache: yarn @@ -29,8 +29,8 @@ jobs: name: Fortune Recording Oracle Tests runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: .nvmrc cache: yarn diff --git a/.github/workflows/ci-test-human-app.yaml b/.github/workflows/ci-test-human-app.yaml index 30a8fa5007..b1b8db3183 100644 --- a/.github/workflows/ci-test-human-app.yaml +++ b/.github/workflows/ci-test-human-app.yaml @@ -13,8 +13,8 @@ jobs: name: Human App Server Test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: .nvmrc cache: yarn diff --git a/.github/workflows/ci-test-job-launcher.yaml b/.github/workflows/ci-test-job-launcher.yaml index ca94a2ec70..e3c8cbc85e 100644 --- a/.github/workflows/ci-test-job-launcher.yaml +++ b/.github/workflows/ci-test-job-launcher.yaml @@ -13,8 +13,8 @@ jobs: name: Job Launcher Server Test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: .nvmrc cache: yarn diff --git a/.github/workflows/ci-test-node-sdk.yaml b/.github/workflows/ci-test-node-sdk.yaml index ca13233b8c..1de6985fa3 100644 --- a/.github/workflows/ci-test-node-sdk.yaml +++ b/.github/workflows/ci-test-node-sdk.yaml @@ -12,8 +12,8 @@ jobs: name: Node.js SDK Test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: .nvmrc cache: yarn diff --git a/.github/workflows/ci-test-python-sdk.yaml b/.github/workflows/ci-test-python-sdk.yaml index 3639badcbd..69b7520cae 100644 --- a/.github/workflows/ci-test-python-sdk.yaml +++ b/.github/workflows/ci-test-python-sdk.yaml @@ -12,7 +12,7 @@ jobs: name: Python Test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - uses: actions/setup-node@v4 with: node-version-file: .nvmrc diff --git a/.github/workflows/ci-test-reputation-oracle.yaml b/.github/workflows/ci-test-reputation-oracle.yaml index f6b6dda3e9..15e86cf6c3 100644 --- a/.github/workflows/ci-test-reputation-oracle.yaml +++ b/.github/workflows/ci-test-reputation-oracle.yaml @@ -13,8 +13,8 @@ jobs: name: Reputation Oracle Test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: .nvmrc cache: yarn diff --git a/.github/workflows/ci-test-subgraph.yaml b/.github/workflows/ci-test-subgraph.yaml index c0ce343a5c..37c7d68da4 100644 --- a/.github/workflows/ci-test-subgraph.yaml +++ b/.github/workflows/ci-test-subgraph.yaml @@ -13,8 +13,8 @@ jobs: # TODO: Use ubuntu-latest when graph binary is not failing on ubuntu 24.04 runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v5 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: .nvmrc cache: yarn diff --git a/docs/sdk/python/human_protocol_sdk.md b/docs/sdk/python/human_protocol_sdk.md index 65c44efcce..09d67a12cb 100644 --- a/docs/sdk/python/human_protocol_sdk.md +++ b/docs/sdk/python/human_protocol_sdk.md @@ -207,6 +207,7 @@ * [`SubgraphOptions`](human_protocol_sdk.utils.md#human_protocol_sdk.utils.SubgraphOptions) * [`SubgraphOptions.__init__()`](human_protocol_sdk.utils.md#human_protocol_sdk.utils.SubgraphOptions.__init__) * [`SubgraphOptions.base_delay`](human_protocol_sdk.utils.md#human_protocol_sdk.utils.SubgraphOptions.base_delay) + * [`SubgraphOptions.indexer_id`](human_protocol_sdk.utils.md#human_protocol_sdk.utils.SubgraphOptions.indexer_id) * [`SubgraphOptions.max_retries`](human_protocol_sdk.utils.md#human_protocol_sdk.utils.SubgraphOptions.max_retries) * [`custom_gql_fetch()`](human_protocol_sdk.utils.md#human_protocol_sdk.utils.custom_gql_fetch) * [`get_contract_interface()`](human_protocol_sdk.utils.md#human_protocol_sdk.utils.get_contract_interface) diff --git a/docs/sdk/python/human_protocol_sdk.utils.md b/docs/sdk/python/human_protocol_sdk.utils.md index 497c686849..e2b2289ca3 100644 --- a/docs/sdk/python/human_protocol_sdk.utils.md +++ b/docs/sdk/python/human_protocol_sdk.utils.md @@ -1,15 +1,17 @@ # human_protocol_sdk.utils module -### *class* human_protocol_sdk.utils.SubgraphOptions(max_retries=None, base_delay=None) +### *class* human_protocol_sdk.utils.SubgraphOptions(max_retries=None, base_delay=None, indexer_id=None) Bases: `object` Configuration for subgraph logic. -#### \_\_init_\_(max_retries=None, base_delay=None) +#### \_\_init_\_(max_retries=None, base_delay=None, indexer_id=None) #### base_delay *: `Optional`[`int`]* *= None* +#### indexer_id *: `Optional`[`str`]* *= None* + #### max_retries *: `Optional`[`int`]* *= None* ### human_protocol_sdk.utils.custom_gql_fetch(network, query, params=None, options=None) diff --git a/docs/sdk/typescript/base/classes/BaseEthersClient.md b/docs/sdk/typescript/base/classes/BaseEthersClient.md index 60d7959b0e..67d2394395 100644 --- a/docs/sdk/typescript/base/classes/BaseEthersClient.md +++ b/docs/sdk/typescript/base/classes/BaseEthersClient.md @@ -6,7 +6,7 @@ # Abstract Class: BaseEthersClient -Defined in: [base.ts:10](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L10) +Defined in: [base.ts:10](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L10) ## Introduction @@ -24,7 +24,7 @@ This class is used as a base class for other clients making on-chain calls. > **new BaseEthersClient**(`runner`, `networkData`): `BaseEthersClient` -Defined in: [base.ts:20](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L20) +Defined in: [base.ts:20](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L20) **BaseClient constructor** @@ -52,7 +52,7 @@ The network information required to connect to the contracts > **networkData**: [`NetworkData`](../../types/type-aliases/NetworkData.md) -Defined in: [base.ts:12](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12) +Defined in: [base.ts:12](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12) *** @@ -60,4 +60,4 @@ Defined in: [base.ts:12](https://github.com/humanprotocol/human-protocol/blob/61 > `protected` **runner**: `ContractRunner` -Defined in: [base.ts:11](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L11) +Defined in: [base.ts:11](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L11) diff --git a/docs/sdk/typescript/encryption/classes/Encryption.md b/docs/sdk/typescript/encryption/classes/Encryption.md index 8aa3c68e40..1e622c6cfb 100644 --- a/docs/sdk/typescript/encryption/classes/Encryption.md +++ b/docs/sdk/typescript/encryption/classes/Encryption.md @@ -6,7 +6,7 @@ # Class: Encryption -Defined in: [encryption.ts:58](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L58) +Defined in: [encryption.ts:58](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L58) ## Introduction @@ -53,7 +53,7 @@ const encryption = await Encryption.build(privateKey, passphrase); > **new Encryption**(`privateKey`): `Encryption` -Defined in: [encryption.ts:66](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L66) +Defined in: [encryption.ts:66](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L66) Constructor for the Encryption class. @@ -75,7 +75,7 @@ The private key. > **decrypt**(`message`, `publicKey?`): `Promise`\<`Uint8Array`\<`ArrayBufferLike`\>\> -Defined in: [encryption.ts:194](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L194) +Defined in: [encryption.ts:194](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L194) This function decrypts messages using the private key. In addition, the public key can be added for signature verification. @@ -129,7 +129,7 @@ const resultMessage = await encryption.decrypt('message'); > **sign**(`message`): `Promise`\<`string`\> -Defined in: [encryption.ts:251](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L251) +Defined in: [encryption.ts:251](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L251) This function signs a message using the private key used to initialize the client. @@ -165,7 +165,7 @@ const resultMessage = await encryption.sign('message'); > **signAndEncrypt**(`message`, `publicKeys`): `Promise`\<`string`\> -Defined in: [encryption.ts:142](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L142) +Defined in: [encryption.ts:142](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L142) This function signs and encrypts a message using the private key used to initialize the client and the specified public keys. @@ -232,7 +232,7 @@ const resultMessage = await encryption.signAndEncrypt('message', publicKeys); > `static` **build**(`privateKeyArmored`, `passphrase?`): `Promise`\<`Encryption`\> -Defined in: [encryption.ts:77](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L77) +Defined in: [encryption.ts:77](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L77) Builds an Encryption instance by decrypting the private key from an encrypted private key and passphrase. diff --git a/docs/sdk/typescript/encryption/classes/EncryptionUtils.md b/docs/sdk/typescript/encryption/classes/EncryptionUtils.md index 1e7f4f6b06..75f3cbcc88 100644 --- a/docs/sdk/typescript/encryption/classes/EncryptionUtils.md +++ b/docs/sdk/typescript/encryption/classes/EncryptionUtils.md @@ -6,7 +6,7 @@ # Class: EncryptionUtils -Defined in: [encryption.ts:290](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L290) +Defined in: [encryption.ts:290](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L290) ## Introduction @@ -48,7 +48,7 @@ const keyPair = await EncryptionUtils.generateKeyPair('Human', 'human@hmt.ai'); > `static` **encrypt**(`message`, `publicKeys`): `Promise`\<`string`\> -Defined in: [encryption.ts:444](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L444) +Defined in: [encryption.ts:444](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L444) This function encrypts a message using the specified public keys. @@ -111,7 +111,7 @@ const result = await EncryptionUtils.encrypt('message', publicKeys); > `static` **generateKeyPair**(`name`, `email`, `passphrase`): `Promise`\<[`IKeyPair`](../../interfaces/interfaces/IKeyPair.md)\> -Defined in: [encryption.ts:382](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L382) +Defined in: [encryption.ts:382](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L382) This function generates a key pair for encryption and decryption. @@ -158,7 +158,7 @@ const result = await EncryptionUtils.generateKeyPair(name, email, passphrase); > `static` **getSignedData**(`message`): `Promise`\<`string`\> -Defined in: [encryption.ts:351](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L351) +Defined in: [encryption.ts:351](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L351) This function gets signed data from a signed message. @@ -190,7 +190,7 @@ const signedData = await EncryptionUtils.getSignedData('message'); > `static` **isEncrypted**(`message`): `boolean` -Defined in: [encryption.ts:494](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L494) +Defined in: [encryption.ts:494](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L494) Verifies if a message appears to be encrypted with OpenPGP. @@ -238,7 +238,7 @@ if (isEncrypted) { > `static` **verify**(`message`, `publicKey`): `Promise`\<`boolean`\> -Defined in: [encryption.ts:318](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L318) +Defined in: [encryption.ts:318](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L318) This function verifies the signature of a signed message using the public key. diff --git a/docs/sdk/typescript/enums/enumerations/ChainId.md b/docs/sdk/typescript/enums/enumerations/ChainId.md index f509f60efe..2a65625054 100644 --- a/docs/sdk/typescript/enums/enumerations/ChainId.md +++ b/docs/sdk/typescript/enums/enumerations/ChainId.md @@ -6,7 +6,7 @@ # Enumeration: ChainId -Defined in: [enums.ts:1](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L1) +Defined in: [enums.ts:1](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L1) ## Enumeration Members @@ -14,7 +14,7 @@ Defined in: [enums.ts:1](https://github.com/humanprotocol/human-protocol/blob/61 > **ALL**: `-1` -Defined in: [enums.ts:2](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L2) +Defined in: [enums.ts:2](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L2) *** @@ -22,7 +22,7 @@ Defined in: [enums.ts:2](https://github.com/humanprotocol/human-protocol/blob/61 > **BSC\_MAINNET**: `56` -Defined in: [enums.ts:5](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L5) +Defined in: [enums.ts:5](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L5) *** @@ -30,7 +30,7 @@ Defined in: [enums.ts:5](https://github.com/humanprotocol/human-protocol/blob/61 > **BSC\_TESTNET**: `97` -Defined in: [enums.ts:6](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L6) +Defined in: [enums.ts:6](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L6) *** @@ -38,7 +38,7 @@ Defined in: [enums.ts:6](https://github.com/humanprotocol/human-protocol/blob/61 > **LOCALHOST**: `1338` -Defined in: [enums.ts:9](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L9) +Defined in: [enums.ts:9](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L9) *** @@ -46,7 +46,7 @@ Defined in: [enums.ts:9](https://github.com/humanprotocol/human-protocol/blob/61 > **MAINNET**: `1` -Defined in: [enums.ts:3](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L3) +Defined in: [enums.ts:3](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L3) *** @@ -54,7 +54,7 @@ Defined in: [enums.ts:3](https://github.com/humanprotocol/human-protocol/blob/61 > **POLYGON**: `137` -Defined in: [enums.ts:7](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L7) +Defined in: [enums.ts:7](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L7) *** @@ -62,7 +62,7 @@ Defined in: [enums.ts:7](https://github.com/humanprotocol/human-protocol/blob/61 > **POLYGON\_AMOY**: `80002` -Defined in: [enums.ts:8](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L8) +Defined in: [enums.ts:8](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L8) *** @@ -70,4 +70,4 @@ Defined in: [enums.ts:8](https://github.com/humanprotocol/human-protocol/blob/61 > **SEPOLIA**: `11155111` -Defined in: [enums.ts:4](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L4) +Defined in: [enums.ts:4](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L4) diff --git a/docs/sdk/typescript/enums/enumerations/OperatorCategory.md b/docs/sdk/typescript/enums/enumerations/OperatorCategory.md index 6619d45f18..dcfb8ec5f7 100644 --- a/docs/sdk/typescript/enums/enumerations/OperatorCategory.md +++ b/docs/sdk/typescript/enums/enumerations/OperatorCategory.md @@ -6,7 +6,7 @@ # Enumeration: OperatorCategory -Defined in: [enums.ts:17](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L17) +Defined in: [enums.ts:17](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L17) ## Enumeration Members @@ -14,7 +14,7 @@ Defined in: [enums.ts:17](https://github.com/humanprotocol/human-protocol/blob/6 > **MACHINE\_LEARNING**: `"machine_learning"` -Defined in: [enums.ts:18](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L18) +Defined in: [enums.ts:18](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L18) *** @@ -22,4 +22,4 @@ Defined in: [enums.ts:18](https://github.com/humanprotocol/human-protocol/blob/6 > **MARKET\_MAKING**: `"market_making"` -Defined in: [enums.ts:19](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L19) +Defined in: [enums.ts:19](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L19) diff --git a/docs/sdk/typescript/enums/enumerations/OrderDirection.md b/docs/sdk/typescript/enums/enumerations/OrderDirection.md index 41709226b7..e02a68c904 100644 --- a/docs/sdk/typescript/enums/enumerations/OrderDirection.md +++ b/docs/sdk/typescript/enums/enumerations/OrderDirection.md @@ -6,7 +6,7 @@ # Enumeration: OrderDirection -Defined in: [enums.ts:12](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L12) +Defined in: [enums.ts:12](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L12) ## Enumeration Members @@ -14,7 +14,7 @@ Defined in: [enums.ts:12](https://github.com/humanprotocol/human-protocol/blob/6 > **ASC**: `"asc"` -Defined in: [enums.ts:13](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L13) +Defined in: [enums.ts:13](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L13) *** @@ -22,4 +22,4 @@ Defined in: [enums.ts:13](https://github.com/humanprotocol/human-protocol/blob/6 > **DESC**: `"desc"` -Defined in: [enums.ts:14](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L14) +Defined in: [enums.ts:14](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L14) diff --git a/docs/sdk/typescript/escrow/classes/EscrowClient.md b/docs/sdk/typescript/escrow/classes/EscrowClient.md index cf42422acb..6f353e103f 100644 --- a/docs/sdk/typescript/escrow/classes/EscrowClient.md +++ b/docs/sdk/typescript/escrow/classes/EscrowClient.md @@ -6,7 +6,7 @@ # Class: EscrowClient -Defined in: [escrow.ts:148](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L148) +Defined in: [escrow.ts:148](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L148) ## Introduction @@ -86,7 +86,7 @@ const escrowClient = await EscrowClient.build(provider); > **new EscrowClient**(`runner`, `networkData`): `EscrowClient` -Defined in: [escrow.ts:157](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L157) +Defined in: [escrow.ts:157](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L157) **EscrowClient constructor** @@ -118,7 +118,7 @@ The network information required to connect to the Escrow contract > **networkData**: [`NetworkData`](../../types/type-aliases/NetworkData.md) -Defined in: [base.ts:12](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12) +Defined in: [base.ts:12](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12) #### Inherited from @@ -130,7 +130,7 @@ Defined in: [base.ts:12](https://github.com/humanprotocol/human-protocol/blob/61 > `protected` **runner**: `ContractRunner` -Defined in: [base.ts:11](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L11) +Defined in: [base.ts:11](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L11) #### Inherited from @@ -144,7 +144,7 @@ Defined in: [base.ts:11](https://github.com/humanprotocol/human-protocol/blob/61 > **bulkPayOut**(`escrowAddress`, `recipients`, `amounts`, `finalResultsUrl`, `finalResultsHash`, `txId`, `forceComplete`, `txOptions?`): `Promise`\<`void`\> -Defined in: [escrow.ts:802](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L802) +Defined in: [escrow.ts:803](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L803) This function pays out the amounts specified to the workers and sets the URL of the final results file. @@ -232,7 +232,7 @@ await escrowClient.bulkPayOut('0x62dD51230A30401C455c8398d06F85e4EaB6309f', reci > **bulkPayOut**(`escrowAddress`, `recipients`, `amounts`, `finalResultsUrl`, `finalResultsHash`, `payoutId`, `forceComplete`, `txOptions?`): `Promise`\<`void`\> -Defined in: [escrow.ts:852](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L852) +Defined in: [escrow.ts:853](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L853) This function pays out the amounts specified to the workers and sets the URL of the final results file. @@ -323,7 +323,7 @@ await escrowClient.bulkPayOut('0x62dD51230A30401C455c8398d06F85e4EaB6309f', reci > **cancel**(`escrowAddress`, `txOptions?`): `Promise`\<`void`\> -Defined in: [escrow.ts:951](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L951) +Defined in: [escrow.ts:952](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L952) This function cancels the specified escrow and sends the balance to the canceler. @@ -369,7 +369,7 @@ await escrowClient.cancel('0x62dD51230A30401C455c8398d06F85e4EaB6309f'); > **complete**(`escrowAddress`, `txOptions?`): `Promise`\<`void`\> -Defined in: [escrow.ts:742](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L742) +Defined in: [escrow.ts:743](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L743) This function sets the status of an escrow to completed. @@ -417,7 +417,7 @@ await escrowClient.complete('0x62dD51230A30401C455c8398d06F85e4EaB6309f'); > **createBulkPayoutTransaction**(`escrowAddress`, `recipients`, `amounts`, `finalResultsUrl`, `finalResultsHash`, `payoutId`, `forceComplete`, `txOptions?`): `Promise`\<[`TransactionLikeWithNonce`](../../types/type-aliases/TransactionLikeWithNonce.md)\> -Defined in: [escrow.ts:1149](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1149) +Defined in: [escrow.ts:1150](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1150) Creates a prepared transaction for bulk payout without immediately sending it. @@ -511,7 +511,7 @@ console.log('Tx hash:', ethers.keccak256(signedTransaction)); > **createEscrow**(`tokenAddress`, `jobRequesterId`, `txOptions?`): `Promise`\<`string`\> -Defined in: [escrow.ts:235](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L235) +Defined in: [escrow.ts:235](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L235) This function creates an escrow contract that uses the token passed to pay oracle fees and reward workers. @@ -567,7 +567,7 @@ const escrowAddress = await escrowClient.createEscrow(tokenAddress, jobRequester > **createFundAndSetupEscrow**(`tokenAddress`, `amount`, `jobRequesterId`, `escrowConfig`, `txOptions?`): `Promise`\<`string`\> -Defined in: [escrow.ts:372](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L372) +Defined in: [escrow.ts:373](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L373) Creates, funds, and sets up a new escrow contract in a single transaction. @@ -664,7 +664,7 @@ console.log('Escrow created at:', escrowAddress); > **fund**(`escrowAddress`, `amount`, `txOptions?`): `Promise`\<`void`\> -Defined in: [escrow.ts:545](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L545) +Defined in: [escrow.ts:546](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L546) This function adds funds of the chosen token to the escrow. @@ -717,7 +717,7 @@ await escrowClient.fund('0x62dD51230A30401C455c8398d06F85e4EaB6309f', amount); > **getBalance**(`escrowAddress`): `Promise`\<`bigint`\> -Defined in: [escrow.ts:1294](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1294) +Defined in: [escrow.ts:1295](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1295) This function returns the balance for a specified escrow address. @@ -755,7 +755,7 @@ const balance = await escrowClient.getBalance('0x62dD51230A30401C455c8398d06F85e > **getExchangeOracleAddress**(`escrowAddress`): `Promise`\<`string`\> -Defined in: [escrow.ts:1755](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1755) +Defined in: [escrow.ts:1756](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1756) This function returns the exchange oracle address for a given escrow. @@ -793,7 +793,7 @@ const oracleAddress = await escrowClient.getExchangeOracleAddress('0x62dD51230A3 > **getFactoryAddress**(`escrowAddress`): `Promise`\<`string`\> -Defined in: [escrow.ts:1793](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1793) +Defined in: [escrow.ts:1794](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1794) This function returns the escrow factory address for a given escrow. @@ -831,7 +831,7 @@ const factoryAddress = await escrowClient.getFactoryAddress('0x62dD51230A30401C4 > **getIntermediateResultsHash**(`escrowAddress`): `Promise`\<`string`\> -Defined in: [escrow.ts:1527](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1527) +Defined in: [escrow.ts:1528](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1528) This function returns the intermediate results hash. @@ -869,7 +869,7 @@ const intermediateResultsHash = await escrowClient.getIntermediateResultsHash('0 > **getIntermediateResultsUrl**(`escrowAddress`): `Promise`\<`string`\> -Defined in: [escrow.ts:1489](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1489) +Defined in: [escrow.ts:1490](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1490) This function returns the intermediate results file URL. @@ -907,7 +907,7 @@ const intermediateResultsUrl = await escrowClient.getIntermediateResultsUrl('0x6 > **getJobLauncherAddress**(`escrowAddress`): `Promise`\<`string`\> -Defined in: [escrow.ts:1679](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1679) +Defined in: [escrow.ts:1680](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1680) This function returns the job launcher address for a given escrow. @@ -945,7 +945,7 @@ const jobLauncherAddress = await escrowClient.getJobLauncherAddress('0x62dD51230 > **getManifest**(`escrowAddress`): `Promise`\<`string`\> -Defined in: [escrow.ts:1413](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1413) +Defined in: [escrow.ts:1414](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1414) This function returns the manifest. Could be a URL or a JSON string. @@ -983,7 +983,7 @@ const manifest = await escrowClient.getManifest('0x62dD51230A30401C455c8398d06F8 > **getManifestHash**(`escrowAddress`): `Promise`\<`string`\> -Defined in: [escrow.ts:1375](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1375) +Defined in: [escrow.ts:1376](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1376) This function returns the manifest file hash. @@ -1021,7 +1021,7 @@ const manifestHash = await escrowClient.getManifestHash('0x62dD51230A30401C455c8 > **getRecordingOracleAddress**(`escrowAddress`): `Promise`\<`string`\> -Defined in: [escrow.ts:1641](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1641) +Defined in: [escrow.ts:1642](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1642) This function returns the recording oracle address for a given escrow. @@ -1059,7 +1059,7 @@ const oracleAddress = await escrowClient.getRecordingOracleAddress('0x62dD51230A > **getReputationOracleAddress**(`escrowAddress`): `Promise`\<`string`\> -Defined in: [escrow.ts:1717](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1717) +Defined in: [escrow.ts:1718](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1718) This function returns the reputation oracle address for a given escrow. @@ -1097,7 +1097,7 @@ const oracleAddress = await escrowClient.getReputationOracleAddress('0x62dD51230 > **getReservedFunds**(`escrowAddress`): `Promise`\<`bigint`\> -Defined in: [escrow.ts:1338](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1338) +Defined in: [escrow.ts:1339](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1339) This function returns the reserved funds for a specified escrow address. @@ -1135,7 +1135,7 @@ const reservedFunds = await escrowClient.getReservedFunds('0x62dD51230A30401C455 > **getResultsUrl**(`escrowAddress`): `Promise`\<`string`\> -Defined in: [escrow.ts:1451](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1451) +Defined in: [escrow.ts:1452](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1452) This function returns the results file URL. @@ -1173,7 +1173,7 @@ const resultsUrl = await escrowClient.getResultsUrl('0x62dD51230A30401C455c8398d > **getStatus**(`escrowAddress`): `Promise`\<[`EscrowStatus`](../../types/enumerations/EscrowStatus.md)\> -Defined in: [escrow.ts:1603](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1603) +Defined in: [escrow.ts:1604](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1604) This function returns the current status of the escrow. @@ -1211,7 +1211,7 @@ const status = await escrowClient.getStatus('0x62dD51230A30401C455c8398d06F85e4E > **getTokenAddress**(`escrowAddress`): `Promise`\<`string`\> -Defined in: [escrow.ts:1565](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1565) +Defined in: [escrow.ts:1566](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1566) This function returns the token address used for funding the escrow. @@ -1249,7 +1249,7 @@ const tokenAddress = await escrowClient.getTokenAddress('0x62dD51230A30401C455c8 > **requestCancellation**(`escrowAddress`, `txOptions?`): `Promise`\<`void`\> -Defined in: [escrow.ts:997](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L997) +Defined in: [escrow.ts:998](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L998) This function requests the cancellation of the specified escrow (moves status to ToCancel or finalizes if expired). @@ -1297,7 +1297,7 @@ await escrowClient.requestCancellation('0x62dD51230A30401C455c8398d06F85e4EaB630 > **setup**(`escrowAddress`, `escrowConfig`, `txOptions?`): `Promise`\<`void`\> -Defined in: [escrow.ts:469](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L469) +Defined in: [escrow.ts:470](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L470) This function sets up the parameters of the escrow. @@ -1364,7 +1364,7 @@ await escrowClient.setup(escrowAddress, escrowConfig); > **storeResults**(`escrowAddress`, `url`, `hash`, `fundsToReserve`, `txOptions?`): `Promise`\<`void`\> -Defined in: [escrow.ts:611](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L611) +Defined in: [escrow.ts:612](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L612) This function stores the results URL and hash. @@ -1428,7 +1428,7 @@ await escrowClient.storeResults('0x62dD51230A30401C455c8398d06F85e4EaB6309f', 'h > **storeResults**(`escrowAddress`, `url`, `hash`, `txOptions?`): `Promise`\<`void`\> -Defined in: [escrow.ts:647](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L647) +Defined in: [escrow.ts:648](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L648) This function stores the results URL and hash. @@ -1488,7 +1488,7 @@ await escrowClient.storeResults('0x62dD51230A30401C455c8398d06F85e4EaB6309f', 'h > **withdraw**(`escrowAddress`, `tokenAddress`, `txOptions?`): `Promise`\<[`IEscrowWithdraw`](../../interfaces/interfaces/IEscrowWithdraw.md)\> -Defined in: [escrow.ts:1048](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1048) +Defined in: [escrow.ts:1049](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1049) This function withdraws additional tokens in the escrow to the canceler. @@ -1545,7 +1545,7 @@ await escrowClient.withdraw( > `static` **build**(`runner`): `Promise`\<`EscrowClient`\> -Defined in: [escrow.ts:175](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L175) +Defined in: [escrow.ts:175](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L175) Creates an instance of EscrowClient from a Runner. diff --git a/docs/sdk/typescript/escrow/classes/EscrowUtils.md b/docs/sdk/typescript/escrow/classes/EscrowUtils.md index 6c1d187a70..68694e7429 100644 --- a/docs/sdk/typescript/escrow/classes/EscrowUtils.md +++ b/docs/sdk/typescript/escrow/classes/EscrowUtils.md @@ -6,7 +6,7 @@ # Class: EscrowUtils -Defined in: [escrow.ts:1842](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1842) +Defined in: [escrow.ts:1843](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1843) ## Introduction @@ -54,7 +54,7 @@ const escrowAddresses = new EscrowUtils.getEscrows({ > `static` **getCancellationRefund**(`chainId`, `escrowAddress`, `options?`): `Promise`\<[`ICancellationRefund`](../../interfaces/interfaces/ICancellationRefund.md) \| `null`\> -Defined in: [escrow.ts:2434](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L2434) +Defined in: [escrow.ts:2435](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L2435) This function returns the cancellation refund for a given escrow address. @@ -127,7 +127,7 @@ const cancellationRefund = await EscrowUtils.getCancellationRefund(ChainId.POLYG > `static` **getCancellationRefunds**(`filter`, `options?`): `Promise`\<[`ICancellationRefund`](../../interfaces/interfaces/ICancellationRefund.md)[]\> -Defined in: [escrow.ts:2338](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L2338) +Defined in: [escrow.ts:2339](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L2339) This function returns the cancellation refunds for a given set of networks. @@ -198,7 +198,7 @@ console.log(cancellationRefunds); > `static` **getEscrow**(`chainId`, `escrowAddress`, `options?`): `Promise`\<[`IEscrow`](../../interfaces/interfaces/IEscrow.md) \| `null`\> -Defined in: [escrow.ts:2067](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L2067) +Defined in: [escrow.ts:2068](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L2068) This function returns the escrow data for a given address. @@ -289,7 +289,7 @@ const escrow = new EscrowUtils.getEscrow(ChainId.POLYGON_AMOY, "0x12345678901234 > `static` **getEscrows**(`filter`, `options?`): `Promise`\<[`IEscrow`](../../interfaces/interfaces/IEscrow.md)[]\> -Defined in: [escrow.ts:1946](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1946) +Defined in: [escrow.ts:1947](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1947) This function returns an array of escrows based on the specified filter parameters. @@ -413,7 +413,7 @@ const escrows = await EscrowUtils.getEscrows(filters); > `static` **getPayouts**(`filter`, `options?`): `Promise`\<[`IPayout`](../../interfaces/interfaces/IPayout.md)[]\> -Defined in: [escrow.ts:2242](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L2242) +Defined in: [escrow.ts:2243](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L2243) This function returns the payouts for a given set of networks. @@ -463,7 +463,7 @@ console.log(payouts); > `static` **getStatusEvents**(`filter`, `options?`): `Promise`\<[`IStatusEvent`](../../interfaces/interfaces/IStatusEvent.md)[]\> -Defined in: [escrow.ts:2150](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L2150) +Defined in: [escrow.ts:2151](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L2151) This function returns the status events for a given set of networks within an optional date range. diff --git a/docs/sdk/typescript/graphql/types/interfaces/IOperatorSubgraph.md b/docs/sdk/typescript/graphql/types/interfaces/IOperatorSubgraph.md index fde9259f62..d94e596899 100644 --- a/docs/sdk/typescript/graphql/types/interfaces/IOperatorSubgraph.md +++ b/docs/sdk/typescript/graphql/types/interfaces/IOperatorSubgraph.md @@ -6,7 +6,7 @@ # Interface: IOperatorSubgraph -Defined in: [graphql/types.ts:143](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L143) +Defined in: [graphql/types.ts:143](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L143) ## Properties @@ -14,7 +14,7 @@ Defined in: [graphql/types.ts:143](https://github.com/humanprotocol/human-protoc > **address**: `string` -Defined in: [graphql/types.ts:145](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L145) +Defined in: [graphql/types.ts:145](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L145) *** @@ -22,7 +22,7 @@ Defined in: [graphql/types.ts:145](https://github.com/humanprotocol/human-protoc > **amountJobsProcessed**: `string` -Defined in: [graphql/types.ts:146](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L146) +Defined in: [graphql/types.ts:146](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L146) *** @@ -30,7 +30,7 @@ Defined in: [graphql/types.ts:146](https://github.com/humanprotocol/human-protoc > **category**: `string` \| `null` -Defined in: [graphql/types.ts:156](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L156) +Defined in: [graphql/types.ts:156](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L156) *** @@ -38,7 +38,7 @@ Defined in: [graphql/types.ts:156](https://github.com/humanprotocol/human-protoc > **fee**: `string` \| `null` -Defined in: [graphql/types.ts:148](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L148) +Defined in: [graphql/types.ts:148](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L148) *** @@ -46,7 +46,7 @@ Defined in: [graphql/types.ts:148](https://github.com/humanprotocol/human-protoc > **id**: `string` -Defined in: [graphql/types.ts:144](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L144) +Defined in: [graphql/types.ts:144](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L144) *** @@ -54,7 +54,7 @@ Defined in: [graphql/types.ts:144](https://github.com/humanprotocol/human-protoc > **jobTypes**: `string` \| `string`[] \| `null` -Defined in: [graphql/types.ts:157](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L157) +Defined in: [graphql/types.ts:157](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L157) *** @@ -62,7 +62,7 @@ Defined in: [graphql/types.ts:157](https://github.com/humanprotocol/human-protoc > **name**: `string` \| `null` -Defined in: [graphql/types.ts:155](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L155) +Defined in: [graphql/types.ts:155](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L155) *** @@ -70,7 +70,7 @@ Defined in: [graphql/types.ts:155](https://github.com/humanprotocol/human-protoc > **publicKey**: `string` \| `null` -Defined in: [graphql/types.ts:149](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L149) +Defined in: [graphql/types.ts:149](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L149) *** @@ -78,7 +78,7 @@ Defined in: [graphql/types.ts:149](https://github.com/humanprotocol/human-protoc > **registrationInstructions**: `string` \| `null` -Defined in: [graphql/types.ts:154](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L154) +Defined in: [graphql/types.ts:154](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L154) *** @@ -86,7 +86,7 @@ Defined in: [graphql/types.ts:154](https://github.com/humanprotocol/human-protoc > **registrationNeeded**: `boolean` \| `null` -Defined in: [graphql/types.ts:153](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L153) +Defined in: [graphql/types.ts:153](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L153) *** @@ -94,7 +94,7 @@ Defined in: [graphql/types.ts:153](https://github.com/humanprotocol/human-protoc > **reputationNetworks**: `object`[] -Defined in: [graphql/types.ts:158](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L158) +Defined in: [graphql/types.ts:158](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L158) #### address @@ -106,7 +106,7 @@ Defined in: [graphql/types.ts:158](https://github.com/humanprotocol/human-protoc > **role**: `string` \| `null` -Defined in: [graphql/types.ts:147](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L147) +Defined in: [graphql/types.ts:147](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L147) *** @@ -114,7 +114,7 @@ Defined in: [graphql/types.ts:147](https://github.com/humanprotocol/human-protoc > **staker**: \{ `lastDepositTimestamp`: `string`; `lockedAmount`: `string`; `lockedUntilTimestamp`: `string`; `slashedAmount`: `string`; `stakedAmount`: `string`; `withdrawnAmount`: `string`; \} \| `null` -Defined in: [graphql/types.ts:159](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L159) +Defined in: [graphql/types.ts:159](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L159) *** @@ -122,7 +122,7 @@ Defined in: [graphql/types.ts:159](https://github.com/humanprotocol/human-protoc > **url**: `string` \| `null` -Defined in: [graphql/types.ts:152](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L152) +Defined in: [graphql/types.ts:152](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L152) *** @@ -130,7 +130,7 @@ Defined in: [graphql/types.ts:152](https://github.com/humanprotocol/human-protoc > **webhookUrl**: `string` \| `null` -Defined in: [graphql/types.ts:150](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L150) +Defined in: [graphql/types.ts:150](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L150) *** @@ -138,4 +138,4 @@ Defined in: [graphql/types.ts:150](https://github.com/humanprotocol/human-protoc > **website**: `string` \| `null` -Defined in: [graphql/types.ts:151](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L151) +Defined in: [graphql/types.ts:151](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L151) diff --git a/docs/sdk/typescript/graphql/types/interfaces/IReputationNetworkSubgraph.md b/docs/sdk/typescript/graphql/types/interfaces/IReputationNetworkSubgraph.md index 3aa1d49877..abeb311aa3 100644 --- a/docs/sdk/typescript/graphql/types/interfaces/IReputationNetworkSubgraph.md +++ b/docs/sdk/typescript/graphql/types/interfaces/IReputationNetworkSubgraph.md @@ -6,7 +6,7 @@ # Interface: IReputationNetworkSubgraph -Defined in: [graphql/types.ts:169](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L169) +Defined in: [graphql/types.ts:169](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L169) ## Extends @@ -18,7 +18,7 @@ Defined in: [graphql/types.ts:169](https://github.com/humanprotocol/human-protoc > **address**: `string` -Defined in: [interfaces.ts:42](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L42) +Defined in: [interfaces.ts:42](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L42) #### Inherited from @@ -30,7 +30,7 @@ Defined in: [interfaces.ts:42](https://github.com/humanprotocol/human-protocol/b > **id**: `string` -Defined in: [interfaces.ts:41](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L41) +Defined in: [interfaces.ts:41](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L41) #### Inherited from @@ -42,4 +42,4 @@ Defined in: [interfaces.ts:41](https://github.com/humanprotocol/human-protocol/b > **operators**: [`IOperatorSubgraph`](IOperatorSubgraph.md)[] -Defined in: [graphql/types.ts:171](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L171) +Defined in: [graphql/types.ts:171](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L171) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/CancellationRefundData.md b/docs/sdk/typescript/graphql/types/type-aliases/CancellationRefundData.md index 83dcc92dc4..e0b294825e 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/CancellationRefundData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/CancellationRefundData.md @@ -8,7 +8,7 @@ > **CancellationRefundData** = `object` -Defined in: [graphql/types.ts:182](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L182) +Defined in: [graphql/types.ts:182](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L182) ## Properties @@ -16,7 +16,7 @@ Defined in: [graphql/types.ts:182](https://github.com/humanprotocol/human-protoc > **amount**: `string` -Defined in: [graphql/types.ts:186](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L186) +Defined in: [graphql/types.ts:186](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L186) *** @@ -24,7 +24,7 @@ Defined in: [graphql/types.ts:186](https://github.com/humanprotocol/human-protoc > **block**: `string` -Defined in: [graphql/types.ts:187](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L187) +Defined in: [graphql/types.ts:187](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L187) *** @@ -32,7 +32,7 @@ Defined in: [graphql/types.ts:187](https://github.com/humanprotocol/human-protoc > **escrowAddress**: `string` -Defined in: [graphql/types.ts:184](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L184) +Defined in: [graphql/types.ts:184](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L184) *** @@ -40,7 +40,7 @@ Defined in: [graphql/types.ts:184](https://github.com/humanprotocol/human-protoc > **id**: `string` -Defined in: [graphql/types.ts:183](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L183) +Defined in: [graphql/types.ts:183](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L183) *** @@ -48,7 +48,7 @@ Defined in: [graphql/types.ts:183](https://github.com/humanprotocol/human-protoc > **receiver**: `string` -Defined in: [graphql/types.ts:185](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L185) +Defined in: [graphql/types.ts:185](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L185) *** @@ -56,7 +56,7 @@ Defined in: [graphql/types.ts:185](https://github.com/humanprotocol/human-protoc > **timestamp**: `string` -Defined in: [graphql/types.ts:188](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L188) +Defined in: [graphql/types.ts:188](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L188) *** @@ -64,4 +64,4 @@ Defined in: [graphql/types.ts:188](https://github.com/humanprotocol/human-protoc > **txHash**: `string` -Defined in: [graphql/types.ts:189](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L189) +Defined in: [graphql/types.ts:189](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L189) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/EscrowData.md b/docs/sdk/typescript/graphql/types/type-aliases/EscrowData.md index 59bcce6f27..adefaab72c 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/EscrowData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/EscrowData.md @@ -8,7 +8,7 @@ > **EscrowData** = `object` -Defined in: [graphql/types.ts:3](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L3) +Defined in: [graphql/types.ts:3](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L3) ## Properties @@ -16,7 +16,7 @@ Defined in: [graphql/types.ts:3](https://github.com/humanprotocol/human-protocol > **address**: `string` -Defined in: [graphql/types.ts:5](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L5) +Defined in: [graphql/types.ts:5](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L5) *** @@ -24,7 +24,7 @@ Defined in: [graphql/types.ts:5](https://github.com/humanprotocol/human-protocol > **amountPaid**: `string` -Defined in: [graphql/types.ts:6](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L6) +Defined in: [graphql/types.ts:6](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L6) *** @@ -32,7 +32,7 @@ Defined in: [graphql/types.ts:6](https://github.com/humanprotocol/human-protocol > **balance**: `string` -Defined in: [graphql/types.ts:7](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L7) +Defined in: [graphql/types.ts:7](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L7) *** @@ -40,7 +40,7 @@ Defined in: [graphql/types.ts:7](https://github.com/humanprotocol/human-protocol > **count**: `string` -Defined in: [graphql/types.ts:8](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L8) +Defined in: [graphql/types.ts:8](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L8) *** @@ -48,7 +48,7 @@ Defined in: [graphql/types.ts:8](https://github.com/humanprotocol/human-protocol > **createdAt**: `string` -Defined in: [graphql/types.ts:27](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L27) +Defined in: [graphql/types.ts:27](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L27) *** @@ -56,7 +56,7 @@ Defined in: [graphql/types.ts:27](https://github.com/humanprotocol/human-protoco > **exchangeOracle**: `string` \| `null` -Defined in: [graphql/types.ts:20](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L20) +Defined in: [graphql/types.ts:20](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L20) *** @@ -64,7 +64,7 @@ Defined in: [graphql/types.ts:20](https://github.com/humanprotocol/human-protoco > **exchangeOracleFee**: `string` \| `null` -Defined in: [graphql/types.ts:23](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L23) +Defined in: [graphql/types.ts:23](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L23) *** @@ -72,7 +72,7 @@ Defined in: [graphql/types.ts:23](https://github.com/humanprotocol/human-protoco > **factoryAddress**: `string` -Defined in: [graphql/types.ts:9](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L9) +Defined in: [graphql/types.ts:9](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L9) *** @@ -80,7 +80,7 @@ Defined in: [graphql/types.ts:9](https://github.com/humanprotocol/human-protocol > **finalResultsHash**: `string` \| `null` -Defined in: [graphql/types.ts:11](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L11) +Defined in: [graphql/types.ts:11](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L11) *** @@ -88,7 +88,7 @@ Defined in: [graphql/types.ts:11](https://github.com/humanprotocol/human-protoco > **finalResultsUrl**: `string` \| `null` -Defined in: [graphql/types.ts:10](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L10) +Defined in: [graphql/types.ts:10](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L10) *** @@ -96,7 +96,7 @@ Defined in: [graphql/types.ts:10](https://github.com/humanprotocol/human-protoco > **id**: `string` -Defined in: [graphql/types.ts:4](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L4) +Defined in: [graphql/types.ts:4](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L4) *** @@ -104,7 +104,7 @@ Defined in: [graphql/types.ts:4](https://github.com/humanprotocol/human-protocol > **intermediateResultsHash**: `string` \| `null` -Defined in: [graphql/types.ts:13](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L13) +Defined in: [graphql/types.ts:13](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L13) *** @@ -112,7 +112,7 @@ Defined in: [graphql/types.ts:13](https://github.com/humanprotocol/human-protoco > **intermediateResultsUrl**: `string` \| `null` -Defined in: [graphql/types.ts:12](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L12) +Defined in: [graphql/types.ts:12](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L12) *** @@ -120,7 +120,7 @@ Defined in: [graphql/types.ts:12](https://github.com/humanprotocol/human-protoco > **jobRequesterId**: `string` \| `null` -Defined in: [graphql/types.ts:15](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L15) +Defined in: [graphql/types.ts:15](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L15) *** @@ -128,7 +128,7 @@ Defined in: [graphql/types.ts:15](https://github.com/humanprotocol/human-protoco > **launcher**: `string` -Defined in: [graphql/types.ts:14](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L14) +Defined in: [graphql/types.ts:14](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L14) *** @@ -136,7 +136,7 @@ Defined in: [graphql/types.ts:14](https://github.com/humanprotocol/human-protoco > **manifest**: `string` \| `null` -Defined in: [graphql/types.ts:17](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L17) +Defined in: [graphql/types.ts:17](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L17) *** @@ -144,7 +144,7 @@ Defined in: [graphql/types.ts:17](https://github.com/humanprotocol/human-protoco > **manifestHash**: `string` \| `null` -Defined in: [graphql/types.ts:16](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L16) +Defined in: [graphql/types.ts:16](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L16) *** @@ -152,7 +152,7 @@ Defined in: [graphql/types.ts:16](https://github.com/humanprotocol/human-protoco > **recordingOracle**: `string` \| `null` -Defined in: [graphql/types.ts:18](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L18) +Defined in: [graphql/types.ts:18](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L18) *** @@ -160,7 +160,7 @@ Defined in: [graphql/types.ts:18](https://github.com/humanprotocol/human-protoco > **recordingOracleFee**: `string` \| `null` -Defined in: [graphql/types.ts:21](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L21) +Defined in: [graphql/types.ts:21](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L21) *** @@ -168,7 +168,7 @@ Defined in: [graphql/types.ts:21](https://github.com/humanprotocol/human-protoco > **reputationOracle**: `string` \| `null` -Defined in: [graphql/types.ts:19](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L19) +Defined in: [graphql/types.ts:19](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L19) *** @@ -176,7 +176,7 @@ Defined in: [graphql/types.ts:19](https://github.com/humanprotocol/human-protoco > **reputationOracleFee**: `string` \| `null` -Defined in: [graphql/types.ts:22](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L22) +Defined in: [graphql/types.ts:22](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L22) *** @@ -184,7 +184,7 @@ Defined in: [graphql/types.ts:22](https://github.com/humanprotocol/human-protoco > **status**: `string` -Defined in: [graphql/types.ts:24](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L24) +Defined in: [graphql/types.ts:24](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L24) *** @@ -192,7 +192,7 @@ Defined in: [graphql/types.ts:24](https://github.com/humanprotocol/human-protoco > **token**: `string` -Defined in: [graphql/types.ts:25](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L25) +Defined in: [graphql/types.ts:25](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L25) *** @@ -200,4 +200,4 @@ Defined in: [graphql/types.ts:25](https://github.com/humanprotocol/human-protoco > **totalFundedAmount**: `string` -Defined in: [graphql/types.ts:26](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L26) +Defined in: [graphql/types.ts:26](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L26) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/EscrowStatisticsData.md b/docs/sdk/typescript/graphql/types/type-aliases/EscrowStatisticsData.md index 0f40d779cd..eb323e97c4 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/EscrowStatisticsData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/EscrowStatisticsData.md @@ -8,7 +8,7 @@ > **EscrowStatisticsData** = `object` -Defined in: [graphql/types.ts:71](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L71) +Defined in: [graphql/types.ts:71](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L71) ## Properties @@ -16,7 +16,7 @@ Defined in: [graphql/types.ts:71](https://github.com/humanprotocol/human-protoco > **bulkPayoutEventCount**: `string` -Defined in: [graphql/types.ts:74](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L74) +Defined in: [graphql/types.ts:74](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L74) *** @@ -24,7 +24,7 @@ Defined in: [graphql/types.ts:74](https://github.com/humanprotocol/human-protoco > **cancelledStatusEventCount**: `string` -Defined in: [graphql/types.ts:76](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L76) +Defined in: [graphql/types.ts:76](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L76) *** @@ -32,7 +32,7 @@ Defined in: [graphql/types.ts:76](https://github.com/humanprotocol/human-protoco > **completedStatusEventCount**: `string` -Defined in: [graphql/types.ts:79](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L79) +Defined in: [graphql/types.ts:79](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L79) *** @@ -40,7 +40,7 @@ Defined in: [graphql/types.ts:79](https://github.com/humanprotocol/human-protoco > **fundEventCount**: `string` -Defined in: [graphql/types.ts:72](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L72) +Defined in: [graphql/types.ts:72](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L72) *** @@ -48,7 +48,7 @@ Defined in: [graphql/types.ts:72](https://github.com/humanprotocol/human-protoco > **paidStatusEventCount**: `string` -Defined in: [graphql/types.ts:78](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L78) +Defined in: [graphql/types.ts:78](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L78) *** @@ -56,7 +56,7 @@ Defined in: [graphql/types.ts:78](https://github.com/humanprotocol/human-protoco > **partialStatusEventCount**: `string` -Defined in: [graphql/types.ts:77](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L77) +Defined in: [graphql/types.ts:77](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L77) *** @@ -64,7 +64,7 @@ Defined in: [graphql/types.ts:77](https://github.com/humanprotocol/human-protoco > **pendingStatusEventCount**: `string` -Defined in: [graphql/types.ts:75](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L75) +Defined in: [graphql/types.ts:75](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L75) *** @@ -72,7 +72,7 @@ Defined in: [graphql/types.ts:75](https://github.com/humanprotocol/human-protoco > **storeResultsEventCount**: `string` -Defined in: [graphql/types.ts:73](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L73) +Defined in: [graphql/types.ts:73](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L73) *** @@ -80,7 +80,7 @@ Defined in: [graphql/types.ts:73](https://github.com/humanprotocol/human-protoco > **totalEscrowCount**: `string` -Defined in: [graphql/types.ts:81](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L81) +Defined in: [graphql/types.ts:81](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L81) *** @@ -88,4 +88,4 @@ Defined in: [graphql/types.ts:81](https://github.com/humanprotocol/human-protoco > **totalEventCount**: `string` -Defined in: [graphql/types.ts:80](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L80) +Defined in: [graphql/types.ts:80](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L80) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/EventDayData.md b/docs/sdk/typescript/graphql/types/type-aliases/EventDayData.md index 7d9021d6d7..45f63bd761 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/EventDayData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/EventDayData.md @@ -8,7 +8,7 @@ > **EventDayData** = `object` -Defined in: [graphql/types.ts:84](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L84) +Defined in: [graphql/types.ts:84](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L84) ## Properties @@ -16,7 +16,7 @@ Defined in: [graphql/types.ts:84](https://github.com/humanprotocol/human-protoco > **dailyBulkPayoutEventCount**: `string` -Defined in: [graphql/types.ts:88](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L88) +Defined in: [graphql/types.ts:88](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L88) *** @@ -24,7 +24,7 @@ Defined in: [graphql/types.ts:88](https://github.com/humanprotocol/human-protoco > **dailyCancelledStatusEventCount**: `string` -Defined in: [graphql/types.ts:90](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L90) +Defined in: [graphql/types.ts:90](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L90) *** @@ -32,7 +32,7 @@ Defined in: [graphql/types.ts:90](https://github.com/humanprotocol/human-protoco > **dailyCompletedStatusEventCount**: `string` -Defined in: [graphql/types.ts:93](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L93) +Defined in: [graphql/types.ts:93](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L93) *** @@ -40,7 +40,7 @@ Defined in: [graphql/types.ts:93](https://github.com/humanprotocol/human-protoco > **dailyEscrowCount**: `string` -Defined in: [graphql/types.ts:95](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L95) +Defined in: [graphql/types.ts:95](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L95) *** @@ -48,7 +48,7 @@ Defined in: [graphql/types.ts:95](https://github.com/humanprotocol/human-protoco > **dailyFundEventCount**: `string` -Defined in: [graphql/types.ts:86](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L86) +Defined in: [graphql/types.ts:86](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L86) *** @@ -56,7 +56,7 @@ Defined in: [graphql/types.ts:86](https://github.com/humanprotocol/human-protoco > **dailyHMTPayoutAmount**: `string` -Defined in: [graphql/types.ts:98](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L98) +Defined in: [graphql/types.ts:98](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L98) *** @@ -64,7 +64,7 @@ Defined in: [graphql/types.ts:98](https://github.com/humanprotocol/human-protoco > **dailyHMTTransferAmount**: `string` -Defined in: [graphql/types.ts:100](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L100) +Defined in: [graphql/types.ts:100](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L100) *** @@ -72,7 +72,7 @@ Defined in: [graphql/types.ts:100](https://github.com/humanprotocol/human-protoc > **dailyHMTTransferCount**: `string` -Defined in: [graphql/types.ts:99](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L99) +Defined in: [graphql/types.ts:99](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L99) *** @@ -80,7 +80,7 @@ Defined in: [graphql/types.ts:99](https://github.com/humanprotocol/human-protoco > **dailyPaidStatusEventCount**: `string` -Defined in: [graphql/types.ts:92](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L92) +Defined in: [graphql/types.ts:92](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L92) *** @@ -88,7 +88,7 @@ Defined in: [graphql/types.ts:92](https://github.com/humanprotocol/human-protoco > **dailyPartialStatusEventCount**: `string` -Defined in: [graphql/types.ts:91](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L91) +Defined in: [graphql/types.ts:91](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L91) *** @@ -96,7 +96,7 @@ Defined in: [graphql/types.ts:91](https://github.com/humanprotocol/human-protoco > **dailyPayoutCount**: `string` -Defined in: [graphql/types.ts:97](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L97) +Defined in: [graphql/types.ts:97](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L97) *** @@ -104,7 +104,7 @@ Defined in: [graphql/types.ts:97](https://github.com/humanprotocol/human-protoco > **dailyPendingStatusEventCount**: `string` -Defined in: [graphql/types.ts:89](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L89) +Defined in: [graphql/types.ts:89](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L89) *** @@ -112,7 +112,7 @@ Defined in: [graphql/types.ts:89](https://github.com/humanprotocol/human-protoco > **dailyStoreResultsEventCount**: `string` -Defined in: [graphql/types.ts:87](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L87) +Defined in: [graphql/types.ts:87](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L87) *** @@ -120,7 +120,7 @@ Defined in: [graphql/types.ts:87](https://github.com/humanprotocol/human-protoco > **dailyTotalEventCount**: `string` -Defined in: [graphql/types.ts:94](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L94) +Defined in: [graphql/types.ts:94](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L94) *** @@ -128,7 +128,7 @@ Defined in: [graphql/types.ts:94](https://github.com/humanprotocol/human-protoco > **dailyUniqueReceivers**: `string` -Defined in: [graphql/types.ts:102](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L102) +Defined in: [graphql/types.ts:102](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L102) *** @@ -136,7 +136,7 @@ Defined in: [graphql/types.ts:102](https://github.com/humanprotocol/human-protoc > **dailyUniqueSenders**: `string` -Defined in: [graphql/types.ts:101](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L101) +Defined in: [graphql/types.ts:101](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L101) *** @@ -144,7 +144,7 @@ Defined in: [graphql/types.ts:101](https://github.com/humanprotocol/human-protoc > **dailyWorkerCount**: `string` -Defined in: [graphql/types.ts:96](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L96) +Defined in: [graphql/types.ts:96](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L96) *** @@ -152,4 +152,4 @@ Defined in: [graphql/types.ts:96](https://github.com/humanprotocol/human-protoco > **timestamp**: `string` -Defined in: [graphql/types.ts:85](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L85) +Defined in: [graphql/types.ts:85](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L85) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/HMTHolderData.md b/docs/sdk/typescript/graphql/types/type-aliases/HMTHolderData.md index c91399eb6e..081a4eecf1 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/HMTHolderData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/HMTHolderData.md @@ -8,7 +8,7 @@ > **HMTHolderData** = `object` -Defined in: [graphql/types.ts:112](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L112) +Defined in: [graphql/types.ts:112](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L112) ## Properties @@ -16,7 +16,7 @@ Defined in: [graphql/types.ts:112](https://github.com/humanprotocol/human-protoc > **address**: `string` -Defined in: [graphql/types.ts:113](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L113) +Defined in: [graphql/types.ts:113](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L113) *** @@ -24,4 +24,4 @@ Defined in: [graphql/types.ts:113](https://github.com/humanprotocol/human-protoc > **balance**: `string` -Defined in: [graphql/types.ts:114](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L114) +Defined in: [graphql/types.ts:114](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L114) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/HMTStatisticsData.md b/docs/sdk/typescript/graphql/types/type-aliases/HMTStatisticsData.md index 3fe9a477b8..2359e61314 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/HMTStatisticsData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/HMTStatisticsData.md @@ -8,7 +8,7 @@ > **HMTStatisticsData** = `object` -Defined in: [graphql/types.ts:62](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L62) +Defined in: [graphql/types.ts:62](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L62) ## Properties @@ -16,7 +16,7 @@ Defined in: [graphql/types.ts:62](https://github.com/humanprotocol/human-protoco > **holders**: `string` -Defined in: [graphql/types.ts:68](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L68) +Defined in: [graphql/types.ts:68](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L68) *** @@ -24,7 +24,7 @@ Defined in: [graphql/types.ts:68](https://github.com/humanprotocol/human-protoco > **totalApprovalEventCount**: `string` -Defined in: [graphql/types.ts:65](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L65) +Defined in: [graphql/types.ts:65](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L65) *** @@ -32,7 +32,7 @@ Defined in: [graphql/types.ts:65](https://github.com/humanprotocol/human-protoco > **totalBulkApprovalEventCount**: `string` -Defined in: [graphql/types.ts:66](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L66) +Defined in: [graphql/types.ts:66](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L66) *** @@ -40,7 +40,7 @@ Defined in: [graphql/types.ts:66](https://github.com/humanprotocol/human-protoco > **totalBulkTransferEventCount**: `string` -Defined in: [graphql/types.ts:64](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L64) +Defined in: [graphql/types.ts:64](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L64) *** @@ -48,7 +48,7 @@ Defined in: [graphql/types.ts:64](https://github.com/humanprotocol/human-protoco > **totalTransferEventCount**: `string` -Defined in: [graphql/types.ts:63](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L63) +Defined in: [graphql/types.ts:63](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L63) *** @@ -56,4 +56,4 @@ Defined in: [graphql/types.ts:63](https://github.com/humanprotocol/human-protoco > **totalValueTransfered**: `string` -Defined in: [graphql/types.ts:67](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L67) +Defined in: [graphql/types.ts:67](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L67) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/InternalTransactionData.md b/docs/sdk/typescript/graphql/types/type-aliases/InternalTransactionData.md index ba5c11d9d9..1cd45eafa9 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/InternalTransactionData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/InternalTransactionData.md @@ -8,7 +8,7 @@ > **InternalTransactionData** = `object` -Defined in: [graphql/types.ts:37](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L37) +Defined in: [graphql/types.ts:37](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L37) ## Properties @@ -16,7 +16,7 @@ Defined in: [graphql/types.ts:37](https://github.com/humanprotocol/human-protoco > **escrow**: `string` \| `null` -Defined in: [graphql/types.ts:43](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L43) +Defined in: [graphql/types.ts:43](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L43) *** @@ -24,7 +24,7 @@ Defined in: [graphql/types.ts:43](https://github.com/humanprotocol/human-protoco > **from**: `string` -Defined in: [graphql/types.ts:38](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L38) +Defined in: [graphql/types.ts:38](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L38) *** @@ -32,7 +32,7 @@ Defined in: [graphql/types.ts:38](https://github.com/humanprotocol/human-protoco > **id**: `string` \| `null` -Defined in: [graphql/types.ts:45](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L45) +Defined in: [graphql/types.ts:45](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L45) *** @@ -40,7 +40,7 @@ Defined in: [graphql/types.ts:45](https://github.com/humanprotocol/human-protoco > **method**: `string` -Defined in: [graphql/types.ts:41](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L41) +Defined in: [graphql/types.ts:41](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L41) *** @@ -48,7 +48,7 @@ Defined in: [graphql/types.ts:41](https://github.com/humanprotocol/human-protoco > **receiver**: `string` \| `null` -Defined in: [graphql/types.ts:42](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L42) +Defined in: [graphql/types.ts:42](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L42) *** @@ -56,7 +56,7 @@ Defined in: [graphql/types.ts:42](https://github.com/humanprotocol/human-protoco > **to**: `string` -Defined in: [graphql/types.ts:39](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L39) +Defined in: [graphql/types.ts:39](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L39) *** @@ -64,7 +64,7 @@ Defined in: [graphql/types.ts:39](https://github.com/humanprotocol/human-protoco > **token**: `string` \| `null` -Defined in: [graphql/types.ts:44](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L44) +Defined in: [graphql/types.ts:44](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L44) *** @@ -72,4 +72,4 @@ Defined in: [graphql/types.ts:44](https://github.com/humanprotocol/human-protoco > **value**: `string` -Defined in: [graphql/types.ts:40](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L40) +Defined in: [graphql/types.ts:40](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L40) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/KVStoreData.md b/docs/sdk/typescript/graphql/types/type-aliases/KVStoreData.md index c9f44939aa..d7b229b9f0 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/KVStoreData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/KVStoreData.md @@ -8,7 +8,7 @@ > **KVStoreData** = `object` -Defined in: [graphql/types.ts:123](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L123) +Defined in: [graphql/types.ts:123](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L123) ## Properties @@ -16,7 +16,7 @@ Defined in: [graphql/types.ts:123](https://github.com/humanprotocol/human-protoc > **address**: `string` -Defined in: [graphql/types.ts:125](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L125) +Defined in: [graphql/types.ts:125](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L125) *** @@ -24,7 +24,7 @@ Defined in: [graphql/types.ts:125](https://github.com/humanprotocol/human-protoc > **block**: `string` -Defined in: [graphql/types.ts:129](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L129) +Defined in: [graphql/types.ts:129](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L129) *** @@ -32,7 +32,7 @@ Defined in: [graphql/types.ts:129](https://github.com/humanprotocol/human-protoc > **id**: `string` -Defined in: [graphql/types.ts:124](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L124) +Defined in: [graphql/types.ts:124](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L124) *** @@ -40,7 +40,7 @@ Defined in: [graphql/types.ts:124](https://github.com/humanprotocol/human-protoc > **key**: `string` -Defined in: [graphql/types.ts:126](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L126) +Defined in: [graphql/types.ts:126](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L126) *** @@ -48,7 +48,7 @@ Defined in: [graphql/types.ts:126](https://github.com/humanprotocol/human-protoc > **timestamp**: `Date` -Defined in: [graphql/types.ts:128](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L128) +Defined in: [graphql/types.ts:128](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L128) *** @@ -56,4 +56,4 @@ Defined in: [graphql/types.ts:128](https://github.com/humanprotocol/human-protoc > **value**: `string` -Defined in: [graphql/types.ts:127](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L127) +Defined in: [graphql/types.ts:127](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L127) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/PayoutData.md b/docs/sdk/typescript/graphql/types/type-aliases/PayoutData.md index 59706d5da3..31d0634ce1 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/PayoutData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/PayoutData.md @@ -8,7 +8,7 @@ > **PayoutData** = `object` -Defined in: [graphql/types.ts:174](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L174) +Defined in: [graphql/types.ts:174](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L174) ## Properties @@ -16,7 +16,7 @@ Defined in: [graphql/types.ts:174](https://github.com/humanprotocol/human-protoc > **amount**: `string` -Defined in: [graphql/types.ts:178](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L178) +Defined in: [graphql/types.ts:178](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L178) *** @@ -24,7 +24,7 @@ Defined in: [graphql/types.ts:178](https://github.com/humanprotocol/human-protoc > **createdAt**: `string` -Defined in: [graphql/types.ts:179](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L179) +Defined in: [graphql/types.ts:179](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L179) *** @@ -32,7 +32,7 @@ Defined in: [graphql/types.ts:179](https://github.com/humanprotocol/human-protoc > **escrowAddress**: `string` -Defined in: [graphql/types.ts:176](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L176) +Defined in: [graphql/types.ts:176](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L176) *** @@ -40,7 +40,7 @@ Defined in: [graphql/types.ts:176](https://github.com/humanprotocol/human-protoc > **id**: `string` -Defined in: [graphql/types.ts:175](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L175) +Defined in: [graphql/types.ts:175](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L175) *** @@ -48,4 +48,4 @@ Defined in: [graphql/types.ts:175](https://github.com/humanprotocol/human-protoc > **recipient**: `string` -Defined in: [graphql/types.ts:177](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L177) +Defined in: [graphql/types.ts:177](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L177) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/RewardAddedEventData.md b/docs/sdk/typescript/graphql/types/type-aliases/RewardAddedEventData.md index b2e1c660a5..0526b1f7dd 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/RewardAddedEventData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/RewardAddedEventData.md @@ -8,7 +8,7 @@ > **RewardAddedEventData** = `object` -Defined in: [graphql/types.ts:105](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L105) +Defined in: [graphql/types.ts:105](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L105) ## Properties @@ -16,7 +16,7 @@ Defined in: [graphql/types.ts:105](https://github.com/humanprotocol/human-protoc > **amount**: `string` -Defined in: [graphql/types.ts:109](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L109) +Defined in: [graphql/types.ts:109](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L109) *** @@ -24,7 +24,7 @@ Defined in: [graphql/types.ts:109](https://github.com/humanprotocol/human-protoc > **escrowAddress**: `string` -Defined in: [graphql/types.ts:106](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L106) +Defined in: [graphql/types.ts:106](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L106) *** @@ -32,7 +32,7 @@ Defined in: [graphql/types.ts:106](https://github.com/humanprotocol/human-protoc > **slasher**: `string` -Defined in: [graphql/types.ts:108](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L108) +Defined in: [graphql/types.ts:108](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L108) *** @@ -40,4 +40,4 @@ Defined in: [graphql/types.ts:108](https://github.com/humanprotocol/human-protoc > **staker**: `string` -Defined in: [graphql/types.ts:107](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L107) +Defined in: [graphql/types.ts:107](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L107) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/StakerData.md b/docs/sdk/typescript/graphql/types/type-aliases/StakerData.md index bd2ff925a8..7947db29fb 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/StakerData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/StakerData.md @@ -8,7 +8,7 @@ > **StakerData** = `object` -Defined in: [graphql/types.ts:132](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L132) +Defined in: [graphql/types.ts:132](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L132) ## Properties @@ -16,7 +16,7 @@ Defined in: [graphql/types.ts:132](https://github.com/humanprotocol/human-protoc > **address**: `string` -Defined in: [graphql/types.ts:134](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L134) +Defined in: [graphql/types.ts:134](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L134) *** @@ -24,7 +24,7 @@ Defined in: [graphql/types.ts:134](https://github.com/humanprotocol/human-protoc > **id**: `string` -Defined in: [graphql/types.ts:133](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L133) +Defined in: [graphql/types.ts:133](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L133) *** @@ -32,7 +32,7 @@ Defined in: [graphql/types.ts:133](https://github.com/humanprotocol/human-protoc > **lastDepositTimestamp**: `string` -Defined in: [graphql/types.ts:140](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L140) +Defined in: [graphql/types.ts:140](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L140) *** @@ -40,7 +40,7 @@ Defined in: [graphql/types.ts:140](https://github.com/humanprotocol/human-protoc > **lockedAmount**: `string` -Defined in: [graphql/types.ts:136](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L136) +Defined in: [graphql/types.ts:136](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L136) *** @@ -48,7 +48,7 @@ Defined in: [graphql/types.ts:136](https://github.com/humanprotocol/human-protoc > **lockedUntilTimestamp**: `string` -Defined in: [graphql/types.ts:139](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L139) +Defined in: [graphql/types.ts:139](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L139) *** @@ -56,7 +56,7 @@ Defined in: [graphql/types.ts:139](https://github.com/humanprotocol/human-protoc > **slashedAmount**: `string` -Defined in: [graphql/types.ts:138](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L138) +Defined in: [graphql/types.ts:138](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L138) *** @@ -64,7 +64,7 @@ Defined in: [graphql/types.ts:138](https://github.com/humanprotocol/human-protoc > **stakedAmount**: `string` -Defined in: [graphql/types.ts:135](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L135) +Defined in: [graphql/types.ts:135](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L135) *** @@ -72,4 +72,4 @@ Defined in: [graphql/types.ts:135](https://github.com/humanprotocol/human-protoc > **withdrawnAmount**: `string` -Defined in: [graphql/types.ts:137](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L137) +Defined in: [graphql/types.ts:137](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L137) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/StatusEvent.md b/docs/sdk/typescript/graphql/types/type-aliases/StatusEvent.md index 3548911365..97325a8485 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/StatusEvent.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/StatusEvent.md @@ -8,7 +8,7 @@ > **StatusEvent** = `object` -Defined in: [graphql/types.ts:117](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L117) +Defined in: [graphql/types.ts:117](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L117) ## Properties @@ -16,7 +16,7 @@ Defined in: [graphql/types.ts:117](https://github.com/humanprotocol/human-protoc > **escrowAddress**: `string` -Defined in: [graphql/types.ts:119](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L119) +Defined in: [graphql/types.ts:119](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L119) *** @@ -24,7 +24,7 @@ Defined in: [graphql/types.ts:119](https://github.com/humanprotocol/human-protoc > **status**: `string` -Defined in: [graphql/types.ts:120](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L120) +Defined in: [graphql/types.ts:120](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L120) *** @@ -32,4 +32,4 @@ Defined in: [graphql/types.ts:120](https://github.com/humanprotocol/human-protoc > **timestamp**: `string` -Defined in: [graphql/types.ts:118](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L118) +Defined in: [graphql/types.ts:118](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L118) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/TransactionData.md b/docs/sdk/typescript/graphql/types/type-aliases/TransactionData.md index 5977b6f575..97f53a8542 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/TransactionData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/TransactionData.md @@ -8,7 +8,7 @@ > **TransactionData** = `object` -Defined in: [graphql/types.ts:48](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L48) +Defined in: [graphql/types.ts:48](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L48) ## Properties @@ -16,7 +16,7 @@ Defined in: [graphql/types.ts:48](https://github.com/humanprotocol/human-protoco > **block**: `string` -Defined in: [graphql/types.ts:49](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L49) +Defined in: [graphql/types.ts:49](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L49) *** @@ -24,7 +24,7 @@ Defined in: [graphql/types.ts:49](https://github.com/humanprotocol/human-protoco > **escrow**: `string` \| `null` -Defined in: [graphql/types.ts:57](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L57) +Defined in: [graphql/types.ts:57](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L57) *** @@ -32,7 +32,7 @@ Defined in: [graphql/types.ts:57](https://github.com/humanprotocol/human-protoco > **from**: `string` -Defined in: [graphql/types.ts:51](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L51) +Defined in: [graphql/types.ts:51](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L51) *** @@ -40,7 +40,7 @@ Defined in: [graphql/types.ts:51](https://github.com/humanprotocol/human-protoco > **internalTransactions**: [`InternalTransactionData`](InternalTransactionData.md)[] -Defined in: [graphql/types.ts:59](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L59) +Defined in: [graphql/types.ts:59](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L59) *** @@ -48,7 +48,7 @@ Defined in: [graphql/types.ts:59](https://github.com/humanprotocol/human-protoco > **method**: `string` -Defined in: [graphql/types.ts:55](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L55) +Defined in: [graphql/types.ts:55](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L55) *** @@ -56,7 +56,7 @@ Defined in: [graphql/types.ts:55](https://github.com/humanprotocol/human-protoco > **receiver**: `string` \| `null` -Defined in: [graphql/types.ts:56](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L56) +Defined in: [graphql/types.ts:56](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L56) *** @@ -64,7 +64,7 @@ Defined in: [graphql/types.ts:56](https://github.com/humanprotocol/human-protoco > **timestamp**: `string` -Defined in: [graphql/types.ts:53](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L53) +Defined in: [graphql/types.ts:53](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L53) *** @@ -72,7 +72,7 @@ Defined in: [graphql/types.ts:53](https://github.com/humanprotocol/human-protoco > **to**: `string` -Defined in: [graphql/types.ts:52](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L52) +Defined in: [graphql/types.ts:52](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L52) *** @@ -80,7 +80,7 @@ Defined in: [graphql/types.ts:52](https://github.com/humanprotocol/human-protoco > **token**: `string` \| `null` -Defined in: [graphql/types.ts:58](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L58) +Defined in: [graphql/types.ts:58](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L58) *** @@ -88,7 +88,7 @@ Defined in: [graphql/types.ts:58](https://github.com/humanprotocol/human-protoco > **txHash**: `string` -Defined in: [graphql/types.ts:50](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L50) +Defined in: [graphql/types.ts:50](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L50) *** @@ -96,4 +96,4 @@ Defined in: [graphql/types.ts:50](https://github.com/humanprotocol/human-protoco > **value**: `string` -Defined in: [graphql/types.ts:54](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L54) +Defined in: [graphql/types.ts:54](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L54) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/WorkerData.md b/docs/sdk/typescript/graphql/types/type-aliases/WorkerData.md index 6ecc58e9a0..c7d57e521b 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/WorkerData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/WorkerData.md @@ -8,7 +8,7 @@ > **WorkerData** = `object` -Defined in: [graphql/types.ts:30](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L30) +Defined in: [graphql/types.ts:30](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L30) ## Properties @@ -16,7 +16,7 @@ Defined in: [graphql/types.ts:30](https://github.com/humanprotocol/human-protoco > **address**: `string` -Defined in: [graphql/types.ts:32](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L32) +Defined in: [graphql/types.ts:32](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L32) *** @@ -24,7 +24,7 @@ Defined in: [graphql/types.ts:32](https://github.com/humanprotocol/human-protoco > **id**: `string` -Defined in: [graphql/types.ts:31](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L31) +Defined in: [graphql/types.ts:31](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L31) *** @@ -32,7 +32,7 @@ Defined in: [graphql/types.ts:31](https://github.com/humanprotocol/human-protoco > **payoutCount**: `string` -Defined in: [graphql/types.ts:34](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L34) +Defined in: [graphql/types.ts:34](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L34) *** @@ -40,4 +40,4 @@ Defined in: [graphql/types.ts:34](https://github.com/humanprotocol/human-protoco > **totalHMTAmountReceived**: `string` -Defined in: [graphql/types.ts:33](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L33) +Defined in: [graphql/types.ts:33](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L33) diff --git a/docs/sdk/typescript/interfaces/interfaces/ICancellationRefund.md b/docs/sdk/typescript/interfaces/interfaces/ICancellationRefund.md index b2d5d3351e..2092fbeb8e 100644 --- a/docs/sdk/typescript/interfaces/interfaces/ICancellationRefund.md +++ b/docs/sdk/typescript/interfaces/interfaces/ICancellationRefund.md @@ -6,7 +6,7 @@ # Interface: ICancellationRefund -Defined in: [interfaces.ts:292](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L292) +Defined in: [interfaces.ts:292](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L292) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:292](https://github.com/humanprotocol/human-protocol/ > **amount**: `bigint` -Defined in: [interfaces.ts:296](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L296) +Defined in: [interfaces.ts:296](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L296) *** @@ -22,7 +22,7 @@ Defined in: [interfaces.ts:296](https://github.com/humanprotocol/human-protocol/ > **block**: `number` -Defined in: [interfaces.ts:297](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L297) +Defined in: [interfaces.ts:297](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L297) *** @@ -30,7 +30,7 @@ Defined in: [interfaces.ts:297](https://github.com/humanprotocol/human-protocol/ > **escrowAddress**: `string` -Defined in: [interfaces.ts:294](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L294) +Defined in: [interfaces.ts:294](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L294) *** @@ -38,7 +38,7 @@ Defined in: [interfaces.ts:294](https://github.com/humanprotocol/human-protocol/ > **id**: `string` -Defined in: [interfaces.ts:293](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L293) +Defined in: [interfaces.ts:293](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L293) *** @@ -46,7 +46,7 @@ Defined in: [interfaces.ts:293](https://github.com/humanprotocol/human-protocol/ > **receiver**: `string` -Defined in: [interfaces.ts:295](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L295) +Defined in: [interfaces.ts:295](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L295) *** @@ -54,7 +54,7 @@ Defined in: [interfaces.ts:295](https://github.com/humanprotocol/human-protocol/ > **timestamp**: `number` -Defined in: [interfaces.ts:298](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L298) +Defined in: [interfaces.ts:298](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L298) *** @@ -62,4 +62,4 @@ Defined in: [interfaces.ts:298](https://github.com/humanprotocol/human-protocol/ > **txHash**: `string` -Defined in: [interfaces.ts:299](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L299) +Defined in: [interfaces.ts:299](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L299) diff --git a/docs/sdk/typescript/interfaces/interfaces/ICancellationRefundFilter.md b/docs/sdk/typescript/interfaces/interfaces/ICancellationRefundFilter.md index e4cc99c668..656f138e73 100644 --- a/docs/sdk/typescript/interfaces/interfaces/ICancellationRefundFilter.md +++ b/docs/sdk/typescript/interfaces/interfaces/ICancellationRefundFilter.md @@ -6,7 +6,7 @@ # Interface: ICancellationRefundFilter -Defined in: [interfaces.ts:224](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L224) +Defined in: [interfaces.ts:224](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L224) ## Extends @@ -18,7 +18,7 @@ Defined in: [interfaces.ts:224](https://github.com/humanprotocol/human-protocol/ > **chainId**: [`ChainId`](../../enums/enumerations/ChainId.md) -Defined in: [interfaces.ts:225](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L225) +Defined in: [interfaces.ts:225](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L225) *** @@ -26,7 +26,7 @@ Defined in: [interfaces.ts:225](https://github.com/humanprotocol/human-protocol/ > `optional` **escrowAddress**: `string` -Defined in: [interfaces.ts:226](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L226) +Defined in: [interfaces.ts:226](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L226) *** @@ -34,7 +34,7 @@ Defined in: [interfaces.ts:226](https://github.com/humanprotocol/human-protocol/ > `optional` **first**: `number` -Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) +Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) #### Inherited from @@ -46,7 +46,7 @@ Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/ > `optional` **from**: `Date` -Defined in: [interfaces.ts:228](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L228) +Defined in: [interfaces.ts:228](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L228) *** @@ -54,7 +54,7 @@ Defined in: [interfaces.ts:228](https://github.com/humanprotocol/human-protocol/ > `optional` **orderDirection**: [`OrderDirection`](../../enums/enumerations/OrderDirection.md) -Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) +Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) #### Inherited from @@ -66,7 +66,7 @@ Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/ > `optional` **receiver**: `string` -Defined in: [interfaces.ts:227](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L227) +Defined in: [interfaces.ts:227](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L227) *** @@ -74,7 +74,7 @@ Defined in: [interfaces.ts:227](https://github.com/humanprotocol/human-protocol/ > `optional` **skip**: `number` -Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) +Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) #### Inherited from @@ -86,4 +86,4 @@ Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/ > `optional` **to**: `Date` -Defined in: [interfaces.ts:229](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L229) +Defined in: [interfaces.ts:229](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L229) diff --git a/docs/sdk/typescript/interfaces/interfaces/IDailyEscrow.md b/docs/sdk/typescript/interfaces/interfaces/IDailyEscrow.md index 55a4afcd05..61395c4264 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IDailyEscrow.md +++ b/docs/sdk/typescript/interfaces/interfaces/IDailyEscrow.md @@ -6,7 +6,7 @@ # Interface: IDailyEscrow -Defined in: [interfaces.ts:232](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L232) +Defined in: [interfaces.ts:232](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L232) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:232](https://github.com/humanprotocol/human-protocol/ > **escrowsCancelled**: `number` -Defined in: [interfaces.ts:238](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L238) +Defined in: [interfaces.ts:238](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L238) *** @@ -22,7 +22,7 @@ Defined in: [interfaces.ts:238](https://github.com/humanprotocol/human-protocol/ > **escrowsPaid**: `number` -Defined in: [interfaces.ts:237](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L237) +Defined in: [interfaces.ts:237](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L237) *** @@ -30,7 +30,7 @@ Defined in: [interfaces.ts:237](https://github.com/humanprotocol/human-protocol/ > **escrowsPending**: `number` -Defined in: [interfaces.ts:235](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L235) +Defined in: [interfaces.ts:235](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L235) *** @@ -38,7 +38,7 @@ Defined in: [interfaces.ts:235](https://github.com/humanprotocol/human-protocol/ > **escrowsSolved**: `number` -Defined in: [interfaces.ts:236](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L236) +Defined in: [interfaces.ts:236](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L236) *** @@ -46,7 +46,7 @@ Defined in: [interfaces.ts:236](https://github.com/humanprotocol/human-protocol/ > **escrowsTotal**: `number` -Defined in: [interfaces.ts:234](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L234) +Defined in: [interfaces.ts:234](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L234) *** @@ -54,4 +54,4 @@ Defined in: [interfaces.ts:234](https://github.com/humanprotocol/human-protocol/ > **timestamp**: `number` -Defined in: [interfaces.ts:233](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L233) +Defined in: [interfaces.ts:233](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L233) diff --git a/docs/sdk/typescript/interfaces/interfaces/IDailyHMT.md b/docs/sdk/typescript/interfaces/interfaces/IDailyHMT.md index 9822fb2712..fd697e470f 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IDailyHMT.md +++ b/docs/sdk/typescript/interfaces/interfaces/IDailyHMT.md @@ -6,7 +6,7 @@ # Interface: IDailyHMT -Defined in: [interfaces.ts:277](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L277) +Defined in: [interfaces.ts:277](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L277) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:277](https://github.com/humanprotocol/human-protocol/ > **dailyUniqueReceivers**: `number` -Defined in: [interfaces.ts:282](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L282) +Defined in: [interfaces.ts:282](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L282) *** @@ -22,7 +22,7 @@ Defined in: [interfaces.ts:282](https://github.com/humanprotocol/human-protocol/ > **dailyUniqueSenders**: `number` -Defined in: [interfaces.ts:281](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L281) +Defined in: [interfaces.ts:281](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L281) *** @@ -30,7 +30,7 @@ Defined in: [interfaces.ts:281](https://github.com/humanprotocol/human-protocol/ > **timestamp**: `number` -Defined in: [interfaces.ts:278](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L278) +Defined in: [interfaces.ts:278](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L278) *** @@ -38,7 +38,7 @@ Defined in: [interfaces.ts:278](https://github.com/humanprotocol/human-protocol/ > **totalTransactionAmount**: `bigint` -Defined in: [interfaces.ts:279](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L279) +Defined in: [interfaces.ts:279](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L279) *** @@ -46,4 +46,4 @@ Defined in: [interfaces.ts:279](https://github.com/humanprotocol/human-protocol/ > **totalTransactionCount**: `number` -Defined in: [interfaces.ts:280](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L280) +Defined in: [interfaces.ts:280](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L280) diff --git a/docs/sdk/typescript/interfaces/interfaces/IDailyPayment.md b/docs/sdk/typescript/interfaces/interfaces/IDailyPayment.md index 940fb1c6fa..2e12e938e8 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IDailyPayment.md +++ b/docs/sdk/typescript/interfaces/interfaces/IDailyPayment.md @@ -6,7 +6,7 @@ # Interface: IDailyPayment -Defined in: [interfaces.ts:255](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L255) +Defined in: [interfaces.ts:255](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L255) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:255](https://github.com/humanprotocol/human-protocol/ > **averageAmountPerWorker**: `bigint` -Defined in: [interfaces.ts:259](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L259) +Defined in: [interfaces.ts:259](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L259) *** @@ -22,7 +22,7 @@ Defined in: [interfaces.ts:259](https://github.com/humanprotocol/human-protocol/ > **timestamp**: `number` -Defined in: [interfaces.ts:256](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L256) +Defined in: [interfaces.ts:256](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L256) *** @@ -30,7 +30,7 @@ Defined in: [interfaces.ts:256](https://github.com/humanprotocol/human-protocol/ > **totalAmountPaid**: `bigint` -Defined in: [interfaces.ts:257](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L257) +Defined in: [interfaces.ts:257](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L257) *** @@ -38,4 +38,4 @@ Defined in: [interfaces.ts:257](https://github.com/humanprotocol/human-protocol/ > **totalCount**: `number` -Defined in: [interfaces.ts:258](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L258) +Defined in: [interfaces.ts:258](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L258) diff --git a/docs/sdk/typescript/interfaces/interfaces/IDailyWorker.md b/docs/sdk/typescript/interfaces/interfaces/IDailyWorker.md index 240090aea0..935861839f 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IDailyWorker.md +++ b/docs/sdk/typescript/interfaces/interfaces/IDailyWorker.md @@ -6,7 +6,7 @@ # Interface: IDailyWorker -Defined in: [interfaces.ts:246](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L246) +Defined in: [interfaces.ts:246](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L246) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:246](https://github.com/humanprotocol/human-protocol/ > **activeWorkers**: `number` -Defined in: [interfaces.ts:248](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L248) +Defined in: [interfaces.ts:248](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L248) *** @@ -22,4 +22,4 @@ Defined in: [interfaces.ts:248](https://github.com/humanprotocol/human-protocol/ > **timestamp**: `number` -Defined in: [interfaces.ts:247](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L247) +Defined in: [interfaces.ts:247](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L247) diff --git a/docs/sdk/typescript/interfaces/interfaces/IEscrow.md b/docs/sdk/typescript/interfaces/interfaces/IEscrow.md index 751be00b4d..669953a6b8 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IEscrow.md +++ b/docs/sdk/typescript/interfaces/interfaces/IEscrow.md @@ -6,7 +6,7 @@ # Interface: IEscrow -Defined in: [interfaces.ts:46](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L46) +Defined in: [interfaces.ts:46](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L46) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:46](https://github.com/humanprotocol/human-protocol/b > **address**: `string` -Defined in: [interfaces.ts:48](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L48) +Defined in: [interfaces.ts:48](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L48) *** @@ -22,7 +22,7 @@ Defined in: [interfaces.ts:48](https://github.com/humanprotocol/human-protocol/b > **amountPaid**: `bigint` -Defined in: [interfaces.ts:49](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L49) +Defined in: [interfaces.ts:49](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L49) *** @@ -30,7 +30,7 @@ Defined in: [interfaces.ts:49](https://github.com/humanprotocol/human-protocol/b > **balance**: `bigint` -Defined in: [interfaces.ts:50](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L50) +Defined in: [interfaces.ts:50](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L50) *** @@ -38,7 +38,7 @@ Defined in: [interfaces.ts:50](https://github.com/humanprotocol/human-protocol/b > **chainId**: `number` -Defined in: [interfaces.ts:71](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L71) +Defined in: [interfaces.ts:71](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L71) *** @@ -46,7 +46,7 @@ Defined in: [interfaces.ts:71](https://github.com/humanprotocol/human-protocol/b > **count**: `number` -Defined in: [interfaces.ts:51](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L51) +Defined in: [interfaces.ts:51](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L51) *** @@ -54,7 +54,7 @@ Defined in: [interfaces.ts:51](https://github.com/humanprotocol/human-protocol/b > **createdAt**: `number` -Defined in: [interfaces.ts:70](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L70) +Defined in: [interfaces.ts:70](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L70) *** @@ -62,7 +62,7 @@ Defined in: [interfaces.ts:70](https://github.com/humanprotocol/human-protocol/b > **exchangeOracle**: `string` \| `null` -Defined in: [interfaces.ts:63](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L63) +Defined in: [interfaces.ts:63](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L63) *** @@ -70,7 +70,7 @@ Defined in: [interfaces.ts:63](https://github.com/humanprotocol/human-protocol/b > **exchangeOracleFee**: `number` \| `null` -Defined in: [interfaces.ts:66](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L66) +Defined in: [interfaces.ts:66](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L66) *** @@ -78,7 +78,7 @@ Defined in: [interfaces.ts:66](https://github.com/humanprotocol/human-protocol/b > **factoryAddress**: `string` -Defined in: [interfaces.ts:52](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L52) +Defined in: [interfaces.ts:52](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L52) *** @@ -86,7 +86,7 @@ Defined in: [interfaces.ts:52](https://github.com/humanprotocol/human-protocol/b > **finalResultsHash**: `string` \| `null` -Defined in: [interfaces.ts:54](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L54) +Defined in: [interfaces.ts:54](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L54) *** @@ -94,7 +94,7 @@ Defined in: [interfaces.ts:54](https://github.com/humanprotocol/human-protocol/b > **finalResultsUrl**: `string` \| `null` -Defined in: [interfaces.ts:53](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L53) +Defined in: [interfaces.ts:53](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L53) *** @@ -102,7 +102,7 @@ Defined in: [interfaces.ts:53](https://github.com/humanprotocol/human-protocol/b > **id**: `string` -Defined in: [interfaces.ts:47](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L47) +Defined in: [interfaces.ts:47](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L47) *** @@ -110,7 +110,7 @@ Defined in: [interfaces.ts:47](https://github.com/humanprotocol/human-protocol/b > **intermediateResultsHash**: `string` \| `null` -Defined in: [interfaces.ts:56](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L56) +Defined in: [interfaces.ts:56](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L56) *** @@ -118,7 +118,7 @@ Defined in: [interfaces.ts:56](https://github.com/humanprotocol/human-protocol/b > **intermediateResultsUrl**: `string` \| `null` -Defined in: [interfaces.ts:55](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L55) +Defined in: [interfaces.ts:55](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L55) *** @@ -126,7 +126,7 @@ Defined in: [interfaces.ts:55](https://github.com/humanprotocol/human-protocol/b > **jobRequesterId**: `string` \| `null` -Defined in: [interfaces.ts:58](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L58) +Defined in: [interfaces.ts:58](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L58) *** @@ -134,7 +134,7 @@ Defined in: [interfaces.ts:58](https://github.com/humanprotocol/human-protocol/b > **launcher**: `string` -Defined in: [interfaces.ts:57](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L57) +Defined in: [interfaces.ts:57](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L57) *** @@ -142,7 +142,7 @@ Defined in: [interfaces.ts:57](https://github.com/humanprotocol/human-protocol/b > **manifest**: `string` \| `null` -Defined in: [interfaces.ts:60](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L60) +Defined in: [interfaces.ts:60](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L60) *** @@ -150,7 +150,7 @@ Defined in: [interfaces.ts:60](https://github.com/humanprotocol/human-protocol/b > **manifestHash**: `string` \| `null` -Defined in: [interfaces.ts:59](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L59) +Defined in: [interfaces.ts:59](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L59) *** @@ -158,7 +158,7 @@ Defined in: [interfaces.ts:59](https://github.com/humanprotocol/human-protocol/b > **recordingOracle**: `string` \| `null` -Defined in: [interfaces.ts:61](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L61) +Defined in: [interfaces.ts:61](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L61) *** @@ -166,7 +166,7 @@ Defined in: [interfaces.ts:61](https://github.com/humanprotocol/human-protocol/b > **recordingOracleFee**: `number` \| `null` -Defined in: [interfaces.ts:64](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L64) +Defined in: [interfaces.ts:64](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L64) *** @@ -174,7 +174,7 @@ Defined in: [interfaces.ts:64](https://github.com/humanprotocol/human-protocol/b > **reputationOracle**: `string` \| `null` -Defined in: [interfaces.ts:62](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L62) +Defined in: [interfaces.ts:62](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L62) *** @@ -182,7 +182,7 @@ Defined in: [interfaces.ts:62](https://github.com/humanprotocol/human-protocol/b > **reputationOracleFee**: `number` \| `null` -Defined in: [interfaces.ts:65](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L65) +Defined in: [interfaces.ts:65](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L65) *** @@ -190,7 +190,7 @@ Defined in: [interfaces.ts:65](https://github.com/humanprotocol/human-protocol/b > **status**: `string` -Defined in: [interfaces.ts:67](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L67) +Defined in: [interfaces.ts:67](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L67) *** @@ -198,7 +198,7 @@ Defined in: [interfaces.ts:67](https://github.com/humanprotocol/human-protocol/b > **token**: `string` -Defined in: [interfaces.ts:68](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L68) +Defined in: [interfaces.ts:68](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L68) *** @@ -206,4 +206,4 @@ Defined in: [interfaces.ts:68](https://github.com/humanprotocol/human-protocol/b > **totalFundedAmount**: `bigint` -Defined in: [interfaces.ts:69](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L69) +Defined in: [interfaces.ts:69](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L69) diff --git a/docs/sdk/typescript/interfaces/interfaces/IEscrowConfig.md b/docs/sdk/typescript/interfaces/interfaces/IEscrowConfig.md index 195135a8ef..7704b93b03 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IEscrowConfig.md +++ b/docs/sdk/typescript/interfaces/interfaces/IEscrowConfig.md @@ -6,7 +6,7 @@ # Interface: IEscrowConfig -Defined in: [interfaces.ts:86](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L86) +Defined in: [interfaces.ts:86](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L86) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:86](https://github.com/humanprotocol/human-protocol/b > **exchangeOracle**: `string` -Defined in: [interfaces.ts:89](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L89) +Defined in: [interfaces.ts:89](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L89) *** @@ -22,7 +22,7 @@ Defined in: [interfaces.ts:89](https://github.com/humanprotocol/human-protocol/b > **exchangeOracleFee**: `bigint` -Defined in: [interfaces.ts:92](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L92) +Defined in: [interfaces.ts:92](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L92) *** @@ -30,7 +30,7 @@ Defined in: [interfaces.ts:92](https://github.com/humanprotocol/human-protocol/b > **manifest**: `string` -Defined in: [interfaces.ts:93](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L93) +Defined in: [interfaces.ts:93](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L93) *** @@ -38,7 +38,7 @@ Defined in: [interfaces.ts:93](https://github.com/humanprotocol/human-protocol/b > **manifestHash**: `string` -Defined in: [interfaces.ts:94](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L94) +Defined in: [interfaces.ts:94](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L94) *** @@ -46,7 +46,7 @@ Defined in: [interfaces.ts:94](https://github.com/humanprotocol/human-protocol/b > **recordingOracle**: `string` -Defined in: [interfaces.ts:87](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L87) +Defined in: [interfaces.ts:87](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L87) *** @@ -54,7 +54,7 @@ Defined in: [interfaces.ts:87](https://github.com/humanprotocol/human-protocol/b > **recordingOracleFee**: `bigint` -Defined in: [interfaces.ts:90](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L90) +Defined in: [interfaces.ts:90](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L90) *** @@ -62,7 +62,7 @@ Defined in: [interfaces.ts:90](https://github.com/humanprotocol/human-protocol/b > **reputationOracle**: `string` -Defined in: [interfaces.ts:88](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L88) +Defined in: [interfaces.ts:88](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L88) *** @@ -70,4 +70,4 @@ Defined in: [interfaces.ts:88](https://github.com/humanprotocol/human-protocol/b > **reputationOracleFee**: `bigint` -Defined in: [interfaces.ts:91](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L91) +Defined in: [interfaces.ts:91](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L91) diff --git a/docs/sdk/typescript/interfaces/interfaces/IEscrowStatistics.md b/docs/sdk/typescript/interfaces/interfaces/IEscrowStatistics.md index 8cf72764f1..264b132811 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IEscrowStatistics.md +++ b/docs/sdk/typescript/interfaces/interfaces/IEscrowStatistics.md @@ -6,7 +6,7 @@ # Interface: IEscrowStatistics -Defined in: [interfaces.ts:241](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L241) +Defined in: [interfaces.ts:241](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L241) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:241](https://github.com/humanprotocol/human-protocol/ > **dailyEscrowsData**: [`IDailyEscrow`](IDailyEscrow.md)[] -Defined in: [interfaces.ts:243](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L243) +Defined in: [interfaces.ts:243](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L243) *** @@ -22,4 +22,4 @@ Defined in: [interfaces.ts:243](https://github.com/humanprotocol/human-protocol/ > **totalEscrows**: `number` -Defined in: [interfaces.ts:242](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L242) +Defined in: [interfaces.ts:242](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L242) diff --git a/docs/sdk/typescript/interfaces/interfaces/IEscrowWithdraw.md b/docs/sdk/typescript/interfaces/interfaces/IEscrowWithdraw.md index b30d119514..81c22bcbc7 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IEscrowWithdraw.md +++ b/docs/sdk/typescript/interfaces/interfaces/IEscrowWithdraw.md @@ -6,7 +6,7 @@ # Interface: IEscrowWithdraw -Defined in: [interfaces.ts:310](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L310) +Defined in: [interfaces.ts:310](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L310) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:310](https://github.com/humanprotocol/human-protocol/ > **tokenAddress**: `string` -Defined in: [interfaces.ts:312](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L312) +Defined in: [interfaces.ts:312](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L312) *** @@ -22,7 +22,7 @@ Defined in: [interfaces.ts:312](https://github.com/humanprotocol/human-protocol/ > **txHash**: `string` -Defined in: [interfaces.ts:311](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L311) +Defined in: [interfaces.ts:311](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L311) *** @@ -30,4 +30,4 @@ Defined in: [interfaces.ts:311](https://github.com/humanprotocol/human-protocol/ > **withdrawnAmount**: `bigint` -Defined in: [interfaces.ts:313](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L313) +Defined in: [interfaces.ts:313](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L313) diff --git a/docs/sdk/typescript/interfaces/interfaces/IEscrowsFilter.md b/docs/sdk/typescript/interfaces/interfaces/IEscrowsFilter.md index 584f3b20da..1060470aa0 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IEscrowsFilter.md +++ b/docs/sdk/typescript/interfaces/interfaces/IEscrowsFilter.md @@ -6,7 +6,7 @@ # Interface: IEscrowsFilter -Defined in: [interfaces.ts:74](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L74) +Defined in: [interfaces.ts:74](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L74) ## Extends @@ -18,7 +18,7 @@ Defined in: [interfaces.ts:74](https://github.com/humanprotocol/human-protocol/b > **chainId**: [`ChainId`](../../enums/enumerations/ChainId.md) -Defined in: [interfaces.ts:83](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L83) +Defined in: [interfaces.ts:83](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L83) *** @@ -26,7 +26,7 @@ Defined in: [interfaces.ts:83](https://github.com/humanprotocol/human-protocol/b > `optional` **exchangeOracle**: `string` -Defined in: [interfaces.ts:78](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L78) +Defined in: [interfaces.ts:78](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L78) *** @@ -34,7 +34,7 @@ Defined in: [interfaces.ts:78](https://github.com/humanprotocol/human-protocol/b > `optional` **first**: `number` -Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) +Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) #### Inherited from @@ -46,7 +46,7 @@ Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/ > `optional` **from**: `Date` -Defined in: [interfaces.ts:81](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L81) +Defined in: [interfaces.ts:81](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L81) *** @@ -54,7 +54,7 @@ Defined in: [interfaces.ts:81](https://github.com/humanprotocol/human-protocol/b > `optional` **jobRequesterId**: `string` -Defined in: [interfaces.ts:79](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L79) +Defined in: [interfaces.ts:79](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L79) *** @@ -62,7 +62,7 @@ Defined in: [interfaces.ts:79](https://github.com/humanprotocol/human-protocol/b > `optional` **launcher**: `string` -Defined in: [interfaces.ts:75](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L75) +Defined in: [interfaces.ts:75](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L75) *** @@ -70,7 +70,7 @@ Defined in: [interfaces.ts:75](https://github.com/humanprotocol/human-protocol/b > `optional` **orderDirection**: [`OrderDirection`](../../enums/enumerations/OrderDirection.md) -Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) +Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) #### Inherited from @@ -82,7 +82,7 @@ Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/ > `optional` **recordingOracle**: `string` -Defined in: [interfaces.ts:77](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L77) +Defined in: [interfaces.ts:77](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L77) *** @@ -90,7 +90,7 @@ Defined in: [interfaces.ts:77](https://github.com/humanprotocol/human-protocol/b > `optional` **reputationOracle**: `string` -Defined in: [interfaces.ts:76](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L76) +Defined in: [interfaces.ts:76](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L76) *** @@ -98,7 +98,7 @@ Defined in: [interfaces.ts:76](https://github.com/humanprotocol/human-protocol/b > `optional` **skip**: `number` -Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) +Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) #### Inherited from @@ -110,7 +110,7 @@ Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/ > `optional` **status**: [`EscrowStatus`](../../types/enumerations/EscrowStatus.md) \| [`EscrowStatus`](../../types/enumerations/EscrowStatus.md)[] -Defined in: [interfaces.ts:80](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L80) +Defined in: [interfaces.ts:80](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L80) *** @@ -118,4 +118,4 @@ Defined in: [interfaces.ts:80](https://github.com/humanprotocol/human-protocol/b > `optional` **to**: `Date` -Defined in: [interfaces.ts:82](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L82) +Defined in: [interfaces.ts:82](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L82) diff --git a/docs/sdk/typescript/interfaces/interfaces/IHMTHolder.md b/docs/sdk/typescript/interfaces/interfaces/IHMTHolder.md index 766e505f02..51af45bfaa 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IHMTHolder.md +++ b/docs/sdk/typescript/interfaces/interfaces/IHMTHolder.md @@ -6,7 +6,7 @@ # Interface: IHMTHolder -Defined in: [interfaces.ts:272](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L272) +Defined in: [interfaces.ts:272](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L272) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:272](https://github.com/humanprotocol/human-protocol/ > **address**: `string` -Defined in: [interfaces.ts:273](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L273) +Defined in: [interfaces.ts:273](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L273) *** @@ -22,4 +22,4 @@ Defined in: [interfaces.ts:273](https://github.com/humanprotocol/human-protocol/ > **balance**: `bigint` -Defined in: [interfaces.ts:274](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L274) +Defined in: [interfaces.ts:274](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L274) diff --git a/docs/sdk/typescript/interfaces/interfaces/IHMTHoldersParams.md b/docs/sdk/typescript/interfaces/interfaces/IHMTHoldersParams.md index 963e907ee5..e35e8e43ae 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IHMTHoldersParams.md +++ b/docs/sdk/typescript/interfaces/interfaces/IHMTHoldersParams.md @@ -6,7 +6,7 @@ # Interface: IHMTHoldersParams -Defined in: [interfaces.ts:109](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L109) +Defined in: [interfaces.ts:109](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L109) ## Extends @@ -18,7 +18,7 @@ Defined in: [interfaces.ts:109](https://github.com/humanprotocol/human-protocol/ > `optional` **address**: `string` -Defined in: [interfaces.ts:110](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L110) +Defined in: [interfaces.ts:110](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L110) *** @@ -26,7 +26,7 @@ Defined in: [interfaces.ts:110](https://github.com/humanprotocol/human-protocol/ > `optional` **first**: `number` -Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) +Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) #### Inherited from @@ -38,7 +38,7 @@ Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/ > `optional` **orderDirection**: [`OrderDirection`](../../enums/enumerations/OrderDirection.md) -Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) +Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) #### Inherited from @@ -50,7 +50,7 @@ Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/ > `optional` **skip**: `number` -Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) +Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) #### Inherited from diff --git a/docs/sdk/typescript/interfaces/interfaces/IHMTStatistics.md b/docs/sdk/typescript/interfaces/interfaces/IHMTStatistics.md index 04ed19e75b..1b73821946 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IHMTStatistics.md +++ b/docs/sdk/typescript/interfaces/interfaces/IHMTStatistics.md @@ -6,7 +6,7 @@ # Interface: IHMTStatistics -Defined in: [interfaces.ts:266](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L266) +Defined in: [interfaces.ts:266](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L266) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:266](https://github.com/humanprotocol/human-protocol/ > **totalHolders**: `number` -Defined in: [interfaces.ts:269](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L269) +Defined in: [interfaces.ts:269](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L269) *** @@ -22,7 +22,7 @@ Defined in: [interfaces.ts:269](https://github.com/humanprotocol/human-protocol/ > **totalTransferAmount**: `bigint` -Defined in: [interfaces.ts:267](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L267) +Defined in: [interfaces.ts:267](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L267) *** @@ -30,4 +30,4 @@ Defined in: [interfaces.ts:267](https://github.com/humanprotocol/human-protocol/ > **totalTransferCount**: `number` -Defined in: [interfaces.ts:268](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L268) +Defined in: [interfaces.ts:268](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L268) diff --git a/docs/sdk/typescript/interfaces/interfaces/IKVStore.md b/docs/sdk/typescript/interfaces/interfaces/IKVStore.md index d43315bb6e..ac67cd4bd9 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IKVStore.md +++ b/docs/sdk/typescript/interfaces/interfaces/IKVStore.md @@ -6,7 +6,7 @@ # Interface: IKVStore -Defined in: [interfaces.ts:121](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L121) +Defined in: [interfaces.ts:121](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L121) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:121](https://github.com/humanprotocol/human-protocol/ > **key**: `string` -Defined in: [interfaces.ts:122](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L122) +Defined in: [interfaces.ts:122](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L122) *** @@ -22,4 +22,4 @@ Defined in: [interfaces.ts:122](https://github.com/humanprotocol/human-protocol/ > **value**: `string` -Defined in: [interfaces.ts:123](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L123) +Defined in: [interfaces.ts:123](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L123) diff --git a/docs/sdk/typescript/interfaces/interfaces/IKeyPair.md b/docs/sdk/typescript/interfaces/interfaces/IKeyPair.md index e5a76c6cbf..3eaef5d813 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IKeyPair.md +++ b/docs/sdk/typescript/interfaces/interfaces/IKeyPair.md @@ -6,7 +6,7 @@ # Interface: IKeyPair -Defined in: [interfaces.ts:97](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L97) +Defined in: [interfaces.ts:97](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L97) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:97](https://github.com/humanprotocol/human-protocol/b > **passphrase**: `string` -Defined in: [interfaces.ts:100](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L100) +Defined in: [interfaces.ts:100](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L100) *** @@ -22,7 +22,7 @@ Defined in: [interfaces.ts:100](https://github.com/humanprotocol/human-protocol/ > **privateKey**: `string` -Defined in: [interfaces.ts:98](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L98) +Defined in: [interfaces.ts:98](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L98) *** @@ -30,7 +30,7 @@ Defined in: [interfaces.ts:98](https://github.com/humanprotocol/human-protocol/b > **publicKey**: `string` -Defined in: [interfaces.ts:99](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L99) +Defined in: [interfaces.ts:99](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L99) *** @@ -38,4 +38,4 @@ Defined in: [interfaces.ts:99](https://github.com/humanprotocol/human-protocol/b > `optional` **revocationCertificate**: `string` -Defined in: [interfaces.ts:101](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L101) +Defined in: [interfaces.ts:101](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L101) diff --git a/docs/sdk/typescript/interfaces/interfaces/IOperator.md b/docs/sdk/typescript/interfaces/interfaces/IOperator.md index 2b1350f9ce..958f25833a 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IOperator.md +++ b/docs/sdk/typescript/interfaces/interfaces/IOperator.md @@ -6,7 +6,7 @@ # Interface: IOperator -Defined in: [interfaces.ts:9](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L9) +Defined in: [interfaces.ts:9](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L9) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:9](https://github.com/humanprotocol/human-protocol/bl > **address**: `string` -Defined in: [interfaces.ts:12](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L12) +Defined in: [interfaces.ts:12](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L12) *** @@ -22,7 +22,7 @@ Defined in: [interfaces.ts:12](https://github.com/humanprotocol/human-protocol/b > **amountJobsProcessed**: `bigint` \| `null` -Defined in: [interfaces.ts:18](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L18) +Defined in: [interfaces.ts:18](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L18) *** @@ -30,7 +30,7 @@ Defined in: [interfaces.ts:18](https://github.com/humanprotocol/human-protocol/b > **category**: `string` \| `null` -Defined in: [interfaces.ts:30](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L30) +Defined in: [interfaces.ts:30](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L30) *** @@ -38,7 +38,7 @@ Defined in: [interfaces.ts:30](https://github.com/humanprotocol/human-protocol/b > **chainId**: [`ChainId`](../../enums/enumerations/ChainId.md) -Defined in: [interfaces.ts:11](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L11) +Defined in: [interfaces.ts:11](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L11) *** @@ -46,7 +46,7 @@ Defined in: [interfaces.ts:11](https://github.com/humanprotocol/human-protocol/b > **fee**: `bigint` \| `null` -Defined in: [interfaces.ts:20](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L20) +Defined in: [interfaces.ts:20](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L20) *** @@ -54,7 +54,7 @@ Defined in: [interfaces.ts:20](https://github.com/humanprotocol/human-protocol/b > **id**: `string` -Defined in: [interfaces.ts:10](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L10) +Defined in: [interfaces.ts:10](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L10) *** @@ -62,7 +62,7 @@ Defined in: [interfaces.ts:10](https://github.com/humanprotocol/human-protocol/b > **jobTypes**: `string`[] \| `null` -Defined in: [interfaces.ts:25](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L25) +Defined in: [interfaces.ts:25](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L25) *** @@ -70,7 +70,7 @@ Defined in: [interfaces.ts:25](https://github.com/humanprotocol/human-protocol/b > **lockedAmount**: `bigint` \| `null` -Defined in: [interfaces.ts:14](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L14) +Defined in: [interfaces.ts:14](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L14) *** @@ -78,7 +78,7 @@ Defined in: [interfaces.ts:14](https://github.com/humanprotocol/human-protocol/b > **lockedUntilTimestamp**: `number` \| `null` -Defined in: [interfaces.ts:15](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L15) +Defined in: [interfaces.ts:15](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L15) *** @@ -86,7 +86,7 @@ Defined in: [interfaces.ts:15](https://github.com/humanprotocol/human-protocol/b > **name**: `string` \| `null` -Defined in: [interfaces.ts:29](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L29) +Defined in: [interfaces.ts:29](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L29) *** @@ -94,7 +94,7 @@ Defined in: [interfaces.ts:29](https://github.com/humanprotocol/human-protocol/b > **publicKey**: `string` \| `null` -Defined in: [interfaces.ts:21](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L21) +Defined in: [interfaces.ts:21](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L21) *** @@ -102,7 +102,7 @@ Defined in: [interfaces.ts:21](https://github.com/humanprotocol/human-protocol/b > **registrationInstructions**: `string` \| `null` -Defined in: [interfaces.ts:27](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L27) +Defined in: [interfaces.ts:27](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L27) *** @@ -110,7 +110,7 @@ Defined in: [interfaces.ts:27](https://github.com/humanprotocol/human-protocol/b > **registrationNeeded**: `boolean` \| `null` -Defined in: [interfaces.ts:26](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L26) +Defined in: [interfaces.ts:26](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L26) *** @@ -118,7 +118,7 @@ Defined in: [interfaces.ts:26](https://github.com/humanprotocol/human-protocol/b > **reputationNetworks**: `string`[] -Defined in: [interfaces.ts:28](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L28) +Defined in: [interfaces.ts:28](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L28) *** @@ -126,7 +126,7 @@ Defined in: [interfaces.ts:28](https://github.com/humanprotocol/human-protocol/b > **role**: `string` \| `null` -Defined in: [interfaces.ts:19](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L19) +Defined in: [interfaces.ts:19](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L19) *** @@ -134,7 +134,7 @@ Defined in: [interfaces.ts:19](https://github.com/humanprotocol/human-protocol/b > **slashedAmount**: `bigint` \| `null` -Defined in: [interfaces.ts:17](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L17) +Defined in: [interfaces.ts:17](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L17) *** @@ -142,7 +142,7 @@ Defined in: [interfaces.ts:17](https://github.com/humanprotocol/human-protocol/b > **stakedAmount**: `bigint` \| `null` -Defined in: [interfaces.ts:13](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L13) +Defined in: [interfaces.ts:13](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L13) *** @@ -150,7 +150,7 @@ Defined in: [interfaces.ts:13](https://github.com/humanprotocol/human-protocol/b > **url**: `string` \| `null` -Defined in: [interfaces.ts:24](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L24) +Defined in: [interfaces.ts:24](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L24) *** @@ -158,7 +158,7 @@ Defined in: [interfaces.ts:24](https://github.com/humanprotocol/human-protocol/b > **webhookUrl**: `string` \| `null` -Defined in: [interfaces.ts:22](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L22) +Defined in: [interfaces.ts:22](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L22) *** @@ -166,7 +166,7 @@ Defined in: [interfaces.ts:22](https://github.com/humanprotocol/human-protocol/b > **website**: `string` \| `null` -Defined in: [interfaces.ts:23](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L23) +Defined in: [interfaces.ts:23](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L23) *** @@ -174,4 +174,4 @@ Defined in: [interfaces.ts:23](https://github.com/humanprotocol/human-protocol/b > **withdrawnAmount**: `bigint` \| `null` -Defined in: [interfaces.ts:16](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L16) +Defined in: [interfaces.ts:16](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L16) diff --git a/docs/sdk/typescript/interfaces/interfaces/IOperatorsFilter.md b/docs/sdk/typescript/interfaces/interfaces/IOperatorsFilter.md index c00e91d606..7280f6f369 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IOperatorsFilter.md +++ b/docs/sdk/typescript/interfaces/interfaces/IOperatorsFilter.md @@ -6,7 +6,7 @@ # Interface: IOperatorsFilter -Defined in: [interfaces.ts:33](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L33) +Defined in: [interfaces.ts:33](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L33) ## Extends @@ -18,7 +18,7 @@ Defined in: [interfaces.ts:33](https://github.com/humanprotocol/human-protocol/b > **chainId**: [`ChainId`](../../enums/enumerations/ChainId.md) -Defined in: [interfaces.ts:34](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L34) +Defined in: [interfaces.ts:34](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L34) *** @@ -26,7 +26,7 @@ Defined in: [interfaces.ts:34](https://github.com/humanprotocol/human-protocol/b > `optional` **first**: `number` -Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) +Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) #### Inherited from @@ -38,7 +38,7 @@ Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/ > `optional` **minStakedAmount**: `number` -Defined in: [interfaces.ts:36](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L36) +Defined in: [interfaces.ts:36](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L36) *** @@ -46,7 +46,7 @@ Defined in: [interfaces.ts:36](https://github.com/humanprotocol/human-protocol/b > `optional` **orderBy**: `string` -Defined in: [interfaces.ts:37](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L37) +Defined in: [interfaces.ts:37](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L37) *** @@ -54,7 +54,7 @@ Defined in: [interfaces.ts:37](https://github.com/humanprotocol/human-protocol/b > `optional` **orderDirection**: [`OrderDirection`](../../enums/enumerations/OrderDirection.md) -Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) +Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) #### Inherited from @@ -66,7 +66,7 @@ Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/ > `optional` **roles**: `string`[] -Defined in: [interfaces.ts:35](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L35) +Defined in: [interfaces.ts:35](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L35) *** @@ -74,7 +74,7 @@ Defined in: [interfaces.ts:35](https://github.com/humanprotocol/human-protocol/b > `optional` **skip**: `number` -Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) +Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) #### Inherited from diff --git a/docs/sdk/typescript/interfaces/interfaces/IPagination.md b/docs/sdk/typescript/interfaces/interfaces/IPagination.md index 96c747c2cd..c1019d2ad3 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IPagination.md +++ b/docs/sdk/typescript/interfaces/interfaces/IPagination.md @@ -6,7 +6,7 @@ # Interface: IPagination -Defined in: [interfaces.ts:163](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L163) +Defined in: [interfaces.ts:163](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L163) ## Extended by @@ -27,7 +27,7 @@ Defined in: [interfaces.ts:163](https://github.com/humanprotocol/human-protocol/ > `optional` **first**: `number` -Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) +Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) *** @@ -35,7 +35,7 @@ Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/ > `optional` **orderDirection**: [`OrderDirection`](../../enums/enumerations/OrderDirection.md) -Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) +Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) *** @@ -43,4 +43,4 @@ Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/ > `optional` **skip**: `number` -Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) +Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) diff --git a/docs/sdk/typescript/interfaces/interfaces/IPaymentStatistics.md b/docs/sdk/typescript/interfaces/interfaces/IPaymentStatistics.md index afff9a5b84..8c27f833ca 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IPaymentStatistics.md +++ b/docs/sdk/typescript/interfaces/interfaces/IPaymentStatistics.md @@ -6,7 +6,7 @@ # Interface: IPaymentStatistics -Defined in: [interfaces.ts:262](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L262) +Defined in: [interfaces.ts:262](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L262) ## Properties @@ -14,4 +14,4 @@ Defined in: [interfaces.ts:262](https://github.com/humanprotocol/human-protocol/ > **dailyPaymentsData**: [`IDailyPayment`](IDailyPayment.md)[] -Defined in: [interfaces.ts:263](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L263) +Defined in: [interfaces.ts:263](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L263) diff --git a/docs/sdk/typescript/interfaces/interfaces/IPayout.md b/docs/sdk/typescript/interfaces/interfaces/IPayout.md index 60c7f7bb5a..aea8e9ac32 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IPayout.md +++ b/docs/sdk/typescript/interfaces/interfaces/IPayout.md @@ -6,7 +6,7 @@ # Interface: IPayout -Defined in: [interfaces.ts:302](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L302) +Defined in: [interfaces.ts:302](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L302) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:302](https://github.com/humanprotocol/human-protocol/ > **amount**: `bigint` -Defined in: [interfaces.ts:306](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L306) +Defined in: [interfaces.ts:306](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L306) *** @@ -22,7 +22,7 @@ Defined in: [interfaces.ts:306](https://github.com/humanprotocol/human-protocol/ > **createdAt**: `number` -Defined in: [interfaces.ts:307](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L307) +Defined in: [interfaces.ts:307](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L307) *** @@ -30,7 +30,7 @@ Defined in: [interfaces.ts:307](https://github.com/humanprotocol/human-protocol/ > **escrowAddress**: `string` -Defined in: [interfaces.ts:304](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L304) +Defined in: [interfaces.ts:304](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L304) *** @@ -38,7 +38,7 @@ Defined in: [interfaces.ts:304](https://github.com/humanprotocol/human-protocol/ > **id**: `string` -Defined in: [interfaces.ts:303](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L303) +Defined in: [interfaces.ts:303](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L303) *** @@ -46,4 +46,4 @@ Defined in: [interfaces.ts:303](https://github.com/humanprotocol/human-protocol/ > **recipient**: `string` -Defined in: [interfaces.ts:305](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L305) +Defined in: [interfaces.ts:305](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L305) diff --git a/docs/sdk/typescript/interfaces/interfaces/IPayoutFilter.md b/docs/sdk/typescript/interfaces/interfaces/IPayoutFilter.md index e9512e58c0..5ae548411d 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IPayoutFilter.md +++ b/docs/sdk/typescript/interfaces/interfaces/IPayoutFilter.md @@ -6,7 +6,7 @@ # Interface: IPayoutFilter -Defined in: [interfaces.ts:113](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L113) +Defined in: [interfaces.ts:113](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L113) ## Extends @@ -18,7 +18,7 @@ Defined in: [interfaces.ts:113](https://github.com/humanprotocol/human-protocol/ > **chainId**: [`ChainId`](../../enums/enumerations/ChainId.md) -Defined in: [interfaces.ts:114](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L114) +Defined in: [interfaces.ts:114](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L114) *** @@ -26,7 +26,7 @@ Defined in: [interfaces.ts:114](https://github.com/humanprotocol/human-protocol/ > `optional` **escrowAddress**: `string` -Defined in: [interfaces.ts:115](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L115) +Defined in: [interfaces.ts:115](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L115) *** @@ -34,7 +34,7 @@ Defined in: [interfaces.ts:115](https://github.com/humanprotocol/human-protocol/ > `optional` **first**: `number` -Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) +Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) #### Inherited from @@ -46,7 +46,7 @@ Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/ > `optional` **from**: `Date` -Defined in: [interfaces.ts:117](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L117) +Defined in: [interfaces.ts:117](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L117) *** @@ -54,7 +54,7 @@ Defined in: [interfaces.ts:117](https://github.com/humanprotocol/human-protocol/ > `optional` **orderDirection**: [`OrderDirection`](../../enums/enumerations/OrderDirection.md) -Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) +Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) #### Inherited from @@ -66,7 +66,7 @@ Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/ > `optional` **recipient**: `string` -Defined in: [interfaces.ts:116](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L116) +Defined in: [interfaces.ts:116](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L116) *** @@ -74,7 +74,7 @@ Defined in: [interfaces.ts:116](https://github.com/humanprotocol/human-protocol/ > `optional` **skip**: `number` -Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) +Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) #### Inherited from @@ -86,4 +86,4 @@ Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/ > `optional` **to**: `Date` -Defined in: [interfaces.ts:118](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L118) +Defined in: [interfaces.ts:118](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L118) diff --git a/docs/sdk/typescript/interfaces/interfaces/IReputationNetwork.md b/docs/sdk/typescript/interfaces/interfaces/IReputationNetwork.md index 295f9a5689..e31e857b8f 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IReputationNetwork.md +++ b/docs/sdk/typescript/interfaces/interfaces/IReputationNetwork.md @@ -6,7 +6,7 @@ # Interface: IReputationNetwork -Defined in: [interfaces.ts:40](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L40) +Defined in: [interfaces.ts:40](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L40) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:40](https://github.com/humanprotocol/human-protocol/b > **address**: `string` -Defined in: [interfaces.ts:42](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L42) +Defined in: [interfaces.ts:42](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L42) *** @@ -22,7 +22,7 @@ Defined in: [interfaces.ts:42](https://github.com/humanprotocol/human-protocol/b > **id**: `string` -Defined in: [interfaces.ts:41](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L41) +Defined in: [interfaces.ts:41](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L41) *** @@ -30,4 +30,4 @@ Defined in: [interfaces.ts:41](https://github.com/humanprotocol/human-protocol/b > **operators**: [`IOperator`](IOperator.md)[] -Defined in: [interfaces.ts:43](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L43) +Defined in: [interfaces.ts:43](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L43) diff --git a/docs/sdk/typescript/interfaces/interfaces/IReward.md b/docs/sdk/typescript/interfaces/interfaces/IReward.md index a9084a901b..a88ede941c 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IReward.md +++ b/docs/sdk/typescript/interfaces/interfaces/IReward.md @@ -6,7 +6,7 @@ # Interface: IReward -Defined in: [interfaces.ts:4](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L4) +Defined in: [interfaces.ts:4](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L4) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:4](https://github.com/humanprotocol/human-protocol/bl > **amount**: `bigint` -Defined in: [interfaces.ts:6](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L6) +Defined in: [interfaces.ts:6](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L6) *** @@ -22,4 +22,4 @@ Defined in: [interfaces.ts:6](https://github.com/humanprotocol/human-protocol/bl > **escrowAddress**: `string` -Defined in: [interfaces.ts:5](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L5) +Defined in: [interfaces.ts:5](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L5) diff --git a/docs/sdk/typescript/interfaces/interfaces/IStaker.md b/docs/sdk/typescript/interfaces/interfaces/IStaker.md index 2c2c907145..f93db8d21d 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IStaker.md +++ b/docs/sdk/typescript/interfaces/interfaces/IStaker.md @@ -6,7 +6,7 @@ # Interface: IStaker -Defined in: [interfaces.ts:197](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L197) +Defined in: [interfaces.ts:197](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L197) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:197](https://github.com/humanprotocol/human-protocol/ > **address**: `string` -Defined in: [interfaces.ts:198](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L198) +Defined in: [interfaces.ts:198](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L198) *** @@ -22,7 +22,7 @@ Defined in: [interfaces.ts:198](https://github.com/humanprotocol/human-protocol/ > **lastDepositTimestamp**: `number` -Defined in: [interfaces.ts:204](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L204) +Defined in: [interfaces.ts:204](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L204) *** @@ -30,7 +30,7 @@ Defined in: [interfaces.ts:204](https://github.com/humanprotocol/human-protocol/ > **lockedAmount**: `bigint` -Defined in: [interfaces.ts:200](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L200) +Defined in: [interfaces.ts:200](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L200) *** @@ -38,7 +38,7 @@ Defined in: [interfaces.ts:200](https://github.com/humanprotocol/human-protocol/ > **lockedUntil**: `number` -Defined in: [interfaces.ts:203](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L203) +Defined in: [interfaces.ts:203](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L203) *** @@ -46,7 +46,7 @@ Defined in: [interfaces.ts:203](https://github.com/humanprotocol/human-protocol/ > **slashedAmount**: `bigint` -Defined in: [interfaces.ts:202](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L202) +Defined in: [interfaces.ts:202](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L202) *** @@ -54,7 +54,7 @@ Defined in: [interfaces.ts:202](https://github.com/humanprotocol/human-protocol/ > **stakedAmount**: `bigint` -Defined in: [interfaces.ts:199](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L199) +Defined in: [interfaces.ts:199](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L199) *** @@ -62,4 +62,4 @@ Defined in: [interfaces.ts:199](https://github.com/humanprotocol/human-protocol/ > **withdrawableAmount**: `bigint` -Defined in: [interfaces.ts:201](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L201) +Defined in: [interfaces.ts:201](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L201) diff --git a/docs/sdk/typescript/interfaces/interfaces/IStakersFilter.md b/docs/sdk/typescript/interfaces/interfaces/IStakersFilter.md index 91bcbd8873..f9d3aa5a99 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IStakersFilter.md +++ b/docs/sdk/typescript/interfaces/interfaces/IStakersFilter.md @@ -6,7 +6,7 @@ # Interface: IStakersFilter -Defined in: [interfaces.ts:207](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L207) +Defined in: [interfaces.ts:207](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L207) ## Extends @@ -18,7 +18,7 @@ Defined in: [interfaces.ts:207](https://github.com/humanprotocol/human-protocol/ > **chainId**: [`ChainId`](../../enums/enumerations/ChainId.md) -Defined in: [interfaces.ts:208](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L208) +Defined in: [interfaces.ts:208](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L208) *** @@ -26,7 +26,7 @@ Defined in: [interfaces.ts:208](https://github.com/humanprotocol/human-protocol/ > `optional` **first**: `number` -Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) +Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) #### Inherited from @@ -38,7 +38,7 @@ Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/ > `optional` **maxLockedAmount**: `string` -Defined in: [interfaces.ts:212](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L212) +Defined in: [interfaces.ts:212](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L212) *** @@ -46,7 +46,7 @@ Defined in: [interfaces.ts:212](https://github.com/humanprotocol/human-protocol/ > `optional` **maxSlashedAmount**: `string` -Defined in: [interfaces.ts:216](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L216) +Defined in: [interfaces.ts:216](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L216) *** @@ -54,7 +54,7 @@ Defined in: [interfaces.ts:216](https://github.com/humanprotocol/human-protocol/ > `optional` **maxStakedAmount**: `string` -Defined in: [interfaces.ts:210](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L210) +Defined in: [interfaces.ts:210](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L210) *** @@ -62,7 +62,7 @@ Defined in: [interfaces.ts:210](https://github.com/humanprotocol/human-protocol/ > `optional` **maxWithdrawnAmount**: `string` -Defined in: [interfaces.ts:214](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L214) +Defined in: [interfaces.ts:214](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L214) *** @@ -70,7 +70,7 @@ Defined in: [interfaces.ts:214](https://github.com/humanprotocol/human-protocol/ > `optional` **minLockedAmount**: `string` -Defined in: [interfaces.ts:211](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L211) +Defined in: [interfaces.ts:211](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L211) *** @@ -78,7 +78,7 @@ Defined in: [interfaces.ts:211](https://github.com/humanprotocol/human-protocol/ > `optional` **minSlashedAmount**: `string` -Defined in: [interfaces.ts:215](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L215) +Defined in: [interfaces.ts:215](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L215) *** @@ -86,7 +86,7 @@ Defined in: [interfaces.ts:215](https://github.com/humanprotocol/human-protocol/ > `optional` **minStakedAmount**: `string` -Defined in: [interfaces.ts:209](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L209) +Defined in: [interfaces.ts:209](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L209) *** @@ -94,7 +94,7 @@ Defined in: [interfaces.ts:209](https://github.com/humanprotocol/human-protocol/ > `optional` **minWithdrawnAmount**: `string` -Defined in: [interfaces.ts:213](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L213) +Defined in: [interfaces.ts:213](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L213) *** @@ -102,7 +102,7 @@ Defined in: [interfaces.ts:213](https://github.com/humanprotocol/human-protocol/ > `optional` **orderBy**: `"stakedAmount"` \| `"lockedAmount"` \| `"withdrawnAmount"` \| `"slashedAmount"` \| `"lastDepositTimestamp"` -Defined in: [interfaces.ts:217](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L217) +Defined in: [interfaces.ts:217](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L217) *** @@ -110,7 +110,7 @@ Defined in: [interfaces.ts:217](https://github.com/humanprotocol/human-protocol/ > `optional` **orderDirection**: [`OrderDirection`](../../enums/enumerations/OrderDirection.md) -Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) +Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) #### Inherited from @@ -122,7 +122,7 @@ Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/ > `optional` **skip**: `number` -Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) +Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) #### Inherited from diff --git a/docs/sdk/typescript/interfaces/interfaces/IStatisticsFilter.md b/docs/sdk/typescript/interfaces/interfaces/IStatisticsFilter.md index 27fe68d89b..263048e88d 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IStatisticsFilter.md +++ b/docs/sdk/typescript/interfaces/interfaces/IStatisticsFilter.md @@ -6,7 +6,7 @@ # Interface: IStatisticsFilter -Defined in: [interfaces.ts:104](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L104) +Defined in: [interfaces.ts:104](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L104) ## Extends @@ -18,7 +18,7 @@ Defined in: [interfaces.ts:104](https://github.com/humanprotocol/human-protocol/ > `optional` **first**: `number` -Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) +Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) #### Inherited from @@ -30,7 +30,7 @@ Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/ > `optional` **from**: `Date` -Defined in: [interfaces.ts:105](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L105) +Defined in: [interfaces.ts:105](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L105) *** @@ -38,7 +38,7 @@ Defined in: [interfaces.ts:105](https://github.com/humanprotocol/human-protocol/ > `optional` **orderDirection**: [`OrderDirection`](../../enums/enumerations/OrderDirection.md) -Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) +Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) #### Inherited from @@ -50,7 +50,7 @@ Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/ > `optional` **skip**: `number` -Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) +Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) #### Inherited from @@ -62,4 +62,4 @@ Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/ > `optional` **to**: `Date` -Defined in: [interfaces.ts:106](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L106) +Defined in: [interfaces.ts:106](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L106) diff --git a/docs/sdk/typescript/interfaces/interfaces/IStatusEvent.md b/docs/sdk/typescript/interfaces/interfaces/IStatusEvent.md index f577513e47..21910c67da 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IStatusEvent.md +++ b/docs/sdk/typescript/interfaces/interfaces/IStatusEvent.md @@ -6,7 +6,7 @@ # Interface: IStatusEvent -Defined in: [interfaces.ts:285](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L285) +Defined in: [interfaces.ts:285](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L285) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:285](https://github.com/humanprotocol/human-protocol/ > **chainId**: [`ChainId`](../../enums/enumerations/ChainId.md) -Defined in: [interfaces.ts:289](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L289) +Defined in: [interfaces.ts:289](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L289) *** @@ -22,7 +22,7 @@ Defined in: [interfaces.ts:289](https://github.com/humanprotocol/human-protocol/ > **escrowAddress**: `string` -Defined in: [interfaces.ts:287](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L287) +Defined in: [interfaces.ts:287](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L287) *** @@ -30,7 +30,7 @@ Defined in: [interfaces.ts:287](https://github.com/humanprotocol/human-protocol/ > **status**: [`EscrowStatus`](../../types/enumerations/EscrowStatus.md) -Defined in: [interfaces.ts:288](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L288) +Defined in: [interfaces.ts:288](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L288) *** @@ -38,4 +38,4 @@ Defined in: [interfaces.ts:288](https://github.com/humanprotocol/human-protocol/ > **timestamp**: `number` -Defined in: [interfaces.ts:286](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L286) +Defined in: [interfaces.ts:286](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L286) diff --git a/docs/sdk/typescript/interfaces/interfaces/IStatusEventFilter.md b/docs/sdk/typescript/interfaces/interfaces/IStatusEventFilter.md index a98e743db7..86b812d8d0 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IStatusEventFilter.md +++ b/docs/sdk/typescript/interfaces/interfaces/IStatusEventFilter.md @@ -6,7 +6,7 @@ # Interface: IStatusEventFilter -Defined in: [interfaces.ts:176](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L176) +Defined in: [interfaces.ts:176](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L176) ## Extends @@ -18,7 +18,7 @@ Defined in: [interfaces.ts:176](https://github.com/humanprotocol/human-protocol/ > **chainId**: [`ChainId`](../../enums/enumerations/ChainId.md) -Defined in: [interfaces.ts:177](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L177) +Defined in: [interfaces.ts:177](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L177) *** @@ -26,7 +26,7 @@ Defined in: [interfaces.ts:177](https://github.com/humanprotocol/human-protocol/ > `optional` **first**: `number` -Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) +Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) #### Inherited from @@ -38,7 +38,7 @@ Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/ > `optional` **from**: `Date` -Defined in: [interfaces.ts:179](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L179) +Defined in: [interfaces.ts:179](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L179) *** @@ -46,7 +46,7 @@ Defined in: [interfaces.ts:179](https://github.com/humanprotocol/human-protocol/ > `optional` **launcher**: `string` -Defined in: [interfaces.ts:181](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L181) +Defined in: [interfaces.ts:181](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L181) *** @@ -54,7 +54,7 @@ Defined in: [interfaces.ts:181](https://github.com/humanprotocol/human-protocol/ > `optional` **orderDirection**: [`OrderDirection`](../../enums/enumerations/OrderDirection.md) -Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) +Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) #### Inherited from @@ -66,7 +66,7 @@ Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/ > `optional` **skip**: `number` -Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) +Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) #### Inherited from @@ -78,7 +78,7 @@ Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/ > `optional` **statuses**: [`EscrowStatus`](../../types/enumerations/EscrowStatus.md)[] -Defined in: [interfaces.ts:178](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L178) +Defined in: [interfaces.ts:178](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L178) *** @@ -86,4 +86,4 @@ Defined in: [interfaces.ts:178](https://github.com/humanprotocol/human-protocol/ > `optional` **to**: `Date` -Defined in: [interfaces.ts:180](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L180) +Defined in: [interfaces.ts:180](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L180) diff --git a/docs/sdk/typescript/interfaces/interfaces/ITransaction.md b/docs/sdk/typescript/interfaces/interfaces/ITransaction.md index e88974ec68..9481267b97 100644 --- a/docs/sdk/typescript/interfaces/interfaces/ITransaction.md +++ b/docs/sdk/typescript/interfaces/interfaces/ITransaction.md @@ -6,7 +6,7 @@ # Interface: ITransaction -Defined in: [interfaces.ts:136](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L136) +Defined in: [interfaces.ts:136](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L136) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:136](https://github.com/humanprotocol/human-protocol/ > **block**: `bigint` -Defined in: [interfaces.ts:137](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L137) +Defined in: [interfaces.ts:137](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L137) *** @@ -22,7 +22,7 @@ Defined in: [interfaces.ts:137](https://github.com/humanprotocol/human-protocol/ > **escrow**: `string` \| `null` -Defined in: [interfaces.ts:145](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L145) +Defined in: [interfaces.ts:145](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L145) *** @@ -30,7 +30,7 @@ Defined in: [interfaces.ts:145](https://github.com/humanprotocol/human-protocol/ > **from**: `string` -Defined in: [interfaces.ts:139](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L139) +Defined in: [interfaces.ts:139](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L139) *** @@ -38,7 +38,7 @@ Defined in: [interfaces.ts:139](https://github.com/humanprotocol/human-protocol/ > **internalTransactions**: [`InternalTransaction`](InternalTransaction.md)[] -Defined in: [interfaces.ts:147](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L147) +Defined in: [interfaces.ts:147](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L147) *** @@ -46,7 +46,7 @@ Defined in: [interfaces.ts:147](https://github.com/humanprotocol/human-protocol/ > **method**: `string` -Defined in: [interfaces.ts:143](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L143) +Defined in: [interfaces.ts:143](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L143) *** @@ -54,7 +54,7 @@ Defined in: [interfaces.ts:143](https://github.com/humanprotocol/human-protocol/ > **receiver**: `string` \| `null` -Defined in: [interfaces.ts:144](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L144) +Defined in: [interfaces.ts:144](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L144) *** @@ -62,7 +62,7 @@ Defined in: [interfaces.ts:144](https://github.com/humanprotocol/human-protocol/ > **timestamp**: `number` -Defined in: [interfaces.ts:141](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L141) +Defined in: [interfaces.ts:141](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L141) *** @@ -70,7 +70,7 @@ Defined in: [interfaces.ts:141](https://github.com/humanprotocol/human-protocol/ > **to**: `string` -Defined in: [interfaces.ts:140](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L140) +Defined in: [interfaces.ts:140](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L140) *** @@ -78,7 +78,7 @@ Defined in: [interfaces.ts:140](https://github.com/humanprotocol/human-protocol/ > **token**: `string` \| `null` -Defined in: [interfaces.ts:146](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L146) +Defined in: [interfaces.ts:146](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L146) *** @@ -86,7 +86,7 @@ Defined in: [interfaces.ts:146](https://github.com/humanprotocol/human-protocol/ > **txHash**: `string` -Defined in: [interfaces.ts:138](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L138) +Defined in: [interfaces.ts:138](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L138) *** @@ -94,4 +94,4 @@ Defined in: [interfaces.ts:138](https://github.com/humanprotocol/human-protocol/ > **value**: `bigint` -Defined in: [interfaces.ts:142](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L142) +Defined in: [interfaces.ts:142](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L142) diff --git a/docs/sdk/typescript/interfaces/interfaces/ITransactionsFilter.md b/docs/sdk/typescript/interfaces/interfaces/ITransactionsFilter.md index 5123c9b67f..425de8a393 100644 --- a/docs/sdk/typescript/interfaces/interfaces/ITransactionsFilter.md +++ b/docs/sdk/typescript/interfaces/interfaces/ITransactionsFilter.md @@ -6,7 +6,7 @@ # Interface: ITransactionsFilter -Defined in: [interfaces.ts:150](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L150) +Defined in: [interfaces.ts:150](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L150) ## Extends @@ -18,7 +18,7 @@ Defined in: [interfaces.ts:150](https://github.com/humanprotocol/human-protocol/ > **chainId**: [`ChainId`](../../enums/enumerations/ChainId.md) -Defined in: [interfaces.ts:151](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L151) +Defined in: [interfaces.ts:151](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L151) *** @@ -26,7 +26,7 @@ Defined in: [interfaces.ts:151](https://github.com/humanprotocol/human-protocol/ > `optional` **endBlock**: `number` -Defined in: [interfaces.ts:153](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L153) +Defined in: [interfaces.ts:153](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L153) *** @@ -34,7 +34,7 @@ Defined in: [interfaces.ts:153](https://github.com/humanprotocol/human-protocol/ > `optional` **endDate**: `Date` -Defined in: [interfaces.ts:155](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L155) +Defined in: [interfaces.ts:155](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L155) *** @@ -42,7 +42,7 @@ Defined in: [interfaces.ts:155](https://github.com/humanprotocol/human-protocol/ > `optional` **escrow**: `string` -Defined in: [interfaces.ts:159](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L159) +Defined in: [interfaces.ts:159](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L159) *** @@ -50,7 +50,7 @@ Defined in: [interfaces.ts:159](https://github.com/humanprotocol/human-protocol/ > `optional` **first**: `number` -Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) +Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) #### Inherited from @@ -62,7 +62,7 @@ Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/ > `optional` **fromAddress**: `string` -Defined in: [interfaces.ts:156](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L156) +Defined in: [interfaces.ts:156](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L156) *** @@ -70,7 +70,7 @@ Defined in: [interfaces.ts:156](https://github.com/humanprotocol/human-protocol/ > `optional` **method**: `string` -Defined in: [interfaces.ts:158](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L158) +Defined in: [interfaces.ts:158](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L158) *** @@ -78,7 +78,7 @@ Defined in: [interfaces.ts:158](https://github.com/humanprotocol/human-protocol/ > `optional` **orderDirection**: [`OrderDirection`](../../enums/enumerations/OrderDirection.md) -Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) +Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) #### Inherited from @@ -90,7 +90,7 @@ Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/ > `optional` **skip**: `number` -Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) +Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) #### Inherited from @@ -102,7 +102,7 @@ Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/ > `optional` **startBlock**: `number` -Defined in: [interfaces.ts:152](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L152) +Defined in: [interfaces.ts:152](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L152) *** @@ -110,7 +110,7 @@ Defined in: [interfaces.ts:152](https://github.com/humanprotocol/human-protocol/ > `optional` **startDate**: `Date` -Defined in: [interfaces.ts:154](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L154) +Defined in: [interfaces.ts:154](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L154) *** @@ -118,7 +118,7 @@ Defined in: [interfaces.ts:154](https://github.com/humanprotocol/human-protocol/ > `optional` **toAddress**: `string` -Defined in: [interfaces.ts:157](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L157) +Defined in: [interfaces.ts:157](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L157) *** @@ -126,4 +126,4 @@ Defined in: [interfaces.ts:157](https://github.com/humanprotocol/human-protocol/ > `optional` **token**: `string` -Defined in: [interfaces.ts:160](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L160) +Defined in: [interfaces.ts:160](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L160) diff --git a/docs/sdk/typescript/interfaces/interfaces/IWorker.md b/docs/sdk/typescript/interfaces/interfaces/IWorker.md index c3d777b095..f6bbe9d7ca 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IWorker.md +++ b/docs/sdk/typescript/interfaces/interfaces/IWorker.md @@ -6,7 +6,7 @@ # Interface: IWorker -Defined in: [interfaces.ts:184](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L184) +Defined in: [interfaces.ts:184](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L184) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:184](https://github.com/humanprotocol/human-protocol/ > **address**: `string` -Defined in: [interfaces.ts:186](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L186) +Defined in: [interfaces.ts:186](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L186) *** @@ -22,7 +22,7 @@ Defined in: [interfaces.ts:186](https://github.com/humanprotocol/human-protocol/ > **id**: `string` -Defined in: [interfaces.ts:185](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L185) +Defined in: [interfaces.ts:185](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L185) *** @@ -30,7 +30,7 @@ Defined in: [interfaces.ts:185](https://github.com/humanprotocol/human-protocol/ > **payoutCount**: `number` -Defined in: [interfaces.ts:188](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L188) +Defined in: [interfaces.ts:188](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L188) *** @@ -38,4 +38,4 @@ Defined in: [interfaces.ts:188](https://github.com/humanprotocol/human-protocol/ > **totalHMTAmountReceived**: `bigint` -Defined in: [interfaces.ts:187](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L187) +Defined in: [interfaces.ts:187](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L187) diff --git a/docs/sdk/typescript/interfaces/interfaces/IWorkerStatistics.md b/docs/sdk/typescript/interfaces/interfaces/IWorkerStatistics.md index 1e33d4d353..d18cbdc5a9 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IWorkerStatistics.md +++ b/docs/sdk/typescript/interfaces/interfaces/IWorkerStatistics.md @@ -6,7 +6,7 @@ # Interface: IWorkerStatistics -Defined in: [interfaces.ts:251](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L251) +Defined in: [interfaces.ts:251](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L251) ## Properties @@ -14,4 +14,4 @@ Defined in: [interfaces.ts:251](https://github.com/humanprotocol/human-protocol/ > **dailyWorkersData**: [`IDailyWorker`](IDailyWorker.md)[] -Defined in: [interfaces.ts:252](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L252) +Defined in: [interfaces.ts:252](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L252) diff --git a/docs/sdk/typescript/interfaces/interfaces/IWorkersFilter.md b/docs/sdk/typescript/interfaces/interfaces/IWorkersFilter.md index 5c5f3849a8..9a2f129882 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IWorkersFilter.md +++ b/docs/sdk/typescript/interfaces/interfaces/IWorkersFilter.md @@ -6,7 +6,7 @@ # Interface: IWorkersFilter -Defined in: [interfaces.ts:191](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L191) +Defined in: [interfaces.ts:191](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L191) ## Extends @@ -18,7 +18,7 @@ Defined in: [interfaces.ts:191](https://github.com/humanprotocol/human-protocol/ > `optional` **address**: `string` -Defined in: [interfaces.ts:193](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L193) +Defined in: [interfaces.ts:193](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L193) *** @@ -26,7 +26,7 @@ Defined in: [interfaces.ts:193](https://github.com/humanprotocol/human-protocol/ > **chainId**: [`ChainId`](../../enums/enumerations/ChainId.md) -Defined in: [interfaces.ts:192](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L192) +Defined in: [interfaces.ts:192](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L192) *** @@ -34,7 +34,7 @@ Defined in: [interfaces.ts:192](https://github.com/humanprotocol/human-protocol/ > `optional` **first**: `number` -Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) +Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) #### Inherited from @@ -46,7 +46,7 @@ Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/ > `optional` **orderBy**: `string` -Defined in: [interfaces.ts:194](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L194) +Defined in: [interfaces.ts:194](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L194) *** @@ -54,7 +54,7 @@ Defined in: [interfaces.ts:194](https://github.com/humanprotocol/human-protocol/ > `optional` **orderDirection**: [`OrderDirection`](../../enums/enumerations/OrderDirection.md) -Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) +Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) #### Inherited from @@ -66,7 +66,7 @@ Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/ > `optional` **skip**: `number` -Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) +Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) #### Inherited from diff --git a/docs/sdk/typescript/interfaces/interfaces/InternalTransaction.md b/docs/sdk/typescript/interfaces/interfaces/InternalTransaction.md index f7b64eb07e..b55dfbfd6e 100644 --- a/docs/sdk/typescript/interfaces/interfaces/InternalTransaction.md +++ b/docs/sdk/typescript/interfaces/interfaces/InternalTransaction.md @@ -6,7 +6,7 @@ # Interface: InternalTransaction -Defined in: [interfaces.ts:126](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L126) +Defined in: [interfaces.ts:126](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L126) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:126](https://github.com/humanprotocol/human-protocol/ > **escrow**: `string` \| `null` -Defined in: [interfaces.ts:132](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L132) +Defined in: [interfaces.ts:132](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L132) *** @@ -22,7 +22,7 @@ Defined in: [interfaces.ts:132](https://github.com/humanprotocol/human-protocol/ > **from**: `string` -Defined in: [interfaces.ts:127](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L127) +Defined in: [interfaces.ts:127](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L127) *** @@ -30,7 +30,7 @@ Defined in: [interfaces.ts:127](https://github.com/humanprotocol/human-protocol/ > **method**: `string` -Defined in: [interfaces.ts:130](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L130) +Defined in: [interfaces.ts:130](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L130) *** @@ -38,7 +38,7 @@ Defined in: [interfaces.ts:130](https://github.com/humanprotocol/human-protocol/ > **receiver**: `string` \| `null` -Defined in: [interfaces.ts:131](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L131) +Defined in: [interfaces.ts:131](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L131) *** @@ -46,7 +46,7 @@ Defined in: [interfaces.ts:131](https://github.com/humanprotocol/human-protocol/ > **to**: `string` -Defined in: [interfaces.ts:128](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L128) +Defined in: [interfaces.ts:128](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L128) *** @@ -54,7 +54,7 @@ Defined in: [interfaces.ts:128](https://github.com/humanprotocol/human-protocol/ > **token**: `string` \| `null` -Defined in: [interfaces.ts:133](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L133) +Defined in: [interfaces.ts:133](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L133) *** @@ -62,4 +62,4 @@ Defined in: [interfaces.ts:133](https://github.com/humanprotocol/human-protocol/ > **value**: `bigint` -Defined in: [interfaces.ts:129](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L129) +Defined in: [interfaces.ts:129](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L129) diff --git a/docs/sdk/typescript/interfaces/interfaces/StakerInfo.md b/docs/sdk/typescript/interfaces/interfaces/StakerInfo.md index 37bd6b0c99..6ae97c9b48 100644 --- a/docs/sdk/typescript/interfaces/interfaces/StakerInfo.md +++ b/docs/sdk/typescript/interfaces/interfaces/StakerInfo.md @@ -6,7 +6,7 @@ # Interface: StakerInfo -Defined in: [interfaces.ts:169](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L169) +Defined in: [interfaces.ts:169](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L169) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:169](https://github.com/humanprotocol/human-protocol/ > **lockedAmount**: `bigint` -Defined in: [interfaces.ts:171](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L171) +Defined in: [interfaces.ts:171](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L171) *** @@ -22,7 +22,7 @@ Defined in: [interfaces.ts:171](https://github.com/humanprotocol/human-protocol/ > **lockedUntil**: `bigint` -Defined in: [interfaces.ts:172](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L172) +Defined in: [interfaces.ts:172](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L172) *** @@ -30,7 +30,7 @@ Defined in: [interfaces.ts:172](https://github.com/humanprotocol/human-protocol/ > **stakedAmount**: `bigint` -Defined in: [interfaces.ts:170](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L170) +Defined in: [interfaces.ts:170](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L170) *** @@ -38,4 +38,4 @@ Defined in: [interfaces.ts:170](https://github.com/humanprotocol/human-protocol/ > **withdrawableAmount**: `bigint` -Defined in: [interfaces.ts:173](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L173) +Defined in: [interfaces.ts:173](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L173) diff --git a/docs/sdk/typescript/interfaces/interfaces/SubgraphOptions.md b/docs/sdk/typescript/interfaces/interfaces/SubgraphOptions.md index 841e50b8cf..4cf671b12d 100644 --- a/docs/sdk/typescript/interfaces/interfaces/SubgraphOptions.md +++ b/docs/sdk/typescript/interfaces/interfaces/SubgraphOptions.md @@ -6,7 +6,7 @@ # Interface: SubgraphOptions -Defined in: [interfaces.ts:319](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L319) +Defined in: [interfaces.ts:319](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L319) Configuration options for subgraph requests with retry logic. @@ -16,16 +16,27 @@ Configuration options for subgraph requests with retry logic. > `optional` **baseDelay**: `number` -Defined in: [interfaces.ts:323](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L323) +Defined in: [interfaces.ts:323](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L323) Base delay between retries in milliseconds *** +### indexerId? + +> `optional` **indexerId**: `string` + +Defined in: [interfaces.ts:328](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L328) + +Optional indexer identifier. When provided, requests target +`{gateway}/deployments/id//indexers/id/`. + +*** + ### maxRetries? > `optional` **maxRetries**: `number` -Defined in: [interfaces.ts:321](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L321) +Defined in: [interfaces.ts:321](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L321) Maximum number of retry attempts diff --git a/docs/sdk/typescript/kvstore/classes/KVStoreClient.md b/docs/sdk/typescript/kvstore/classes/KVStoreClient.md index 5e9f0a5bb4..d27b0651c1 100644 --- a/docs/sdk/typescript/kvstore/classes/KVStoreClient.md +++ b/docs/sdk/typescript/kvstore/classes/KVStoreClient.md @@ -6,7 +6,7 @@ # Class: KVStoreClient -Defined in: [kvstore.ts:98](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L98) +Defined in: [kvstore.ts:98](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L98) ## Introduction @@ -86,7 +86,7 @@ const kvstoreClient = await KVStoreClient.build(provider); > **new KVStoreClient**(`runner`, `networkData`): `KVStoreClient` -Defined in: [kvstore.ts:107](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L107) +Defined in: [kvstore.ts:107](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L107) **KVStoreClient constructor** @@ -118,7 +118,7 @@ The network information required to connect to the KVStore contract > **networkData**: [`NetworkData`](../../types/type-aliases/NetworkData.md) -Defined in: [base.ts:12](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12) +Defined in: [base.ts:12](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12) #### Inherited from @@ -130,7 +130,7 @@ Defined in: [base.ts:12](https://github.com/humanprotocol/human-protocol/blob/61 > `protected` **runner**: `ContractRunner` -Defined in: [base.ts:11](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L11) +Defined in: [base.ts:11](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L11) #### Inherited from @@ -142,7 +142,7 @@ Defined in: [base.ts:11](https://github.com/humanprotocol/human-protocol/blob/61 > **get**(`address`, `key`): `Promise`\<`string`\> -Defined in: [kvstore.ts:308](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L308) +Defined in: [kvstore.ts:308](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L308) Gets the value of a key-value pair in the contract. @@ -188,7 +188,7 @@ const value = await kvstoreClient.get('0xf39Fd6e51aad88F6F4ce6aB8827279cffFb9226 > **set**(`key`, `value`, `txOptions?`): `Promise`\<`void`\> -Defined in: [kvstore.ts:170](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L170) +Defined in: [kvstore.ts:170](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L170) This function sets a key-value pair associated with the address that submits the transaction. @@ -242,7 +242,7 @@ await kvstoreClient.set('Role', 'RecordingOracle'); > **setBulk**(`keys`, `values`, `txOptions?`): `Promise`\<`void`\> -Defined in: [kvstore.ts:213](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L213) +Defined in: [kvstore.ts:213](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L213) This function sets key-value pairs in bulk associated with the address that submits the transaction. @@ -298,7 +298,7 @@ await kvstoreClient.setBulk(keys, values); > **setFileUrlAndHash**(`url`, `urlKey`, `txOptions?`): `Promise`\<`void`\> -Defined in: [kvstore.ts:256](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L256) +Defined in: [kvstore.ts:256](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L256) Sets a URL value for the address that submits the transaction, and its hash. @@ -351,7 +351,7 @@ await kvstoreClient.setFileUrlAndHash('linkedin.com/example', 'linkedin_url'); > `static` **build**(`runner`): `Promise`\<`KVStoreClient`\> -Defined in: [kvstore.ts:125](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L125) +Defined in: [kvstore.ts:125](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L125) Creates an instance of KVStoreClient from a runner. diff --git a/docs/sdk/typescript/kvstore/classes/KVStoreUtils.md b/docs/sdk/typescript/kvstore/classes/KVStoreUtils.md index ef3b59967b..0f3f3bd30a 100644 --- a/docs/sdk/typescript/kvstore/classes/KVStoreUtils.md +++ b/docs/sdk/typescript/kvstore/classes/KVStoreUtils.md @@ -6,7 +6,7 @@ # Class: KVStoreUtils -Defined in: [kvstore.ts:354](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L354) +Defined in: [kvstore.ts:354](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L354) ## Introduction @@ -55,7 +55,7 @@ const KVStoreAddresses = await KVStoreUtils.getKVStoreData( > `static` **get**(`chainId`, `address`, `key`, `options?`): `Promise`\<`string`\> -Defined in: [kvstore.ts:429](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L429) +Defined in: [kvstore.ts:429](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L429) Gets the value of a key-value pair in the KVStore using the subgraph. @@ -122,7 +122,7 @@ console.log(value); > `static` **getFileUrlAndVerifyHash**(`chainId`, `address`, `urlKey`, `options?`): `Promise`\<`string`\> -Defined in: [kvstore.ts:479](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L479) +Defined in: [kvstore.ts:479](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L479) Gets the URL value of the given entity, and verifies its hash. @@ -176,7 +176,7 @@ console.log(url); > `static` **getKVStoreData**(`chainId`, `address`, `options?`): `Promise`\<[`IKVStore`](../../interfaces/interfaces/IKVStore.md)[]\> -Defined in: [kvstore.ts:374](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L374) +Defined in: [kvstore.ts:374](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L374) This function returns the KVStore data for a given address. @@ -229,7 +229,7 @@ console.log(kvStoreData); > `static` **getPublicKey**(`chainId`, `address`, `options?`): `Promise`\<`string`\> -Defined in: [kvstore.ts:540](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L540) +Defined in: [kvstore.ts:540](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L540) Gets the public key of the given entity, and verifies its hash. diff --git a/docs/sdk/typescript/operator/classes/OperatorUtils.md b/docs/sdk/typescript/operator/classes/OperatorUtils.md index 1558ef88d9..5cf1517005 100644 --- a/docs/sdk/typescript/operator/classes/OperatorUtils.md +++ b/docs/sdk/typescript/operator/classes/OperatorUtils.md @@ -6,7 +6,7 @@ # Class: OperatorUtils -Defined in: [operator.ts:29](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/operator.ts#L29) +Defined in: [operator.ts:29](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/operator.ts#L29) ## Constructors @@ -24,7 +24,7 @@ Defined in: [operator.ts:29](https://github.com/humanprotocol/human-protocol/blo > `static` **getOperator**(`chainId`, `address`, `options?`): `Promise`\<[`IOperator`](../../interfaces/interfaces/IOperator.md) \| `null`\> -Defined in: [operator.ts:46](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/operator.ts#L46) +Defined in: [operator.ts:46](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/operator.ts#L46) This function returns the operator data for the given address. @@ -68,7 +68,7 @@ const operator = await OperatorUtils.getOperator(ChainId.POLYGON_AMOY, '0x62dD51 > `static` **getOperators**(`filter`, `options?`): `Promise`\<[`IOperator`](../../interfaces/interfaces/IOperator.md)[]\> -Defined in: [operator.ts:92](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/operator.ts#L92) +Defined in: [operator.ts:92](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/operator.ts#L92) This function returns all the operator details of the protocol. @@ -109,7 +109,7 @@ const operators = await OperatorUtils.getOperators(filter); > `static` **getReputationNetworkOperators**(`chainId`, `address`, `role?`, `options?`): `Promise`\<[`IOperator`](../../interfaces/interfaces/IOperator.md)[]\> -Defined in: [operator.ts:159](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/operator.ts#L159) +Defined in: [operator.ts:159](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/operator.ts#L159) Retrieves the reputation network operators of the specified address. @@ -159,7 +159,7 @@ const operators = await OperatorUtils.getReputationNetworkOperators(ChainId.POLY > `static` **getRewards**(`chainId`, `slasherAddress`, `options?`): `Promise`\<[`IReward`](../../interfaces/interfaces/IReward.md)[]\> -Defined in: [operator.ts:205](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/operator.ts#L205) +Defined in: [operator.ts:205](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/operator.ts#L205) This function returns information about the rewards for a given slasher address. diff --git a/docs/sdk/typescript/staking/classes/StakingClient.md b/docs/sdk/typescript/staking/classes/StakingClient.md index 23f67459ea..63d86b550b 100644 --- a/docs/sdk/typescript/staking/classes/StakingClient.md +++ b/docs/sdk/typescript/staking/classes/StakingClient.md @@ -6,7 +6,7 @@ # Class: StakingClient -Defined in: [staking.ts:108](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L108) +Defined in: [staking.ts:108](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L108) ## Introduction @@ -86,7 +86,7 @@ const stakingClient = await StakingClient.build(provider); > **new StakingClient**(`runner`, `networkData`): `StakingClient` -Defined in: [staking.ts:119](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L119) +Defined in: [staking.ts:119](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L119) **StakingClient constructor** @@ -118,7 +118,7 @@ The network information required to connect to the Staking contract > **escrowFactoryContract**: `EscrowFactory` -Defined in: [staking.ts:111](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L111) +Defined in: [staking.ts:111](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L111) *** @@ -126,7 +126,7 @@ Defined in: [staking.ts:111](https://github.com/humanprotocol/human-protocol/blo > **networkData**: [`NetworkData`](../../types/type-aliases/NetworkData.md) -Defined in: [base.ts:12](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12) +Defined in: [base.ts:12](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12) #### Inherited from @@ -138,7 +138,7 @@ Defined in: [base.ts:12](https://github.com/humanprotocol/human-protocol/blob/61 > `protected` **runner**: `ContractRunner` -Defined in: [base.ts:11](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L11) +Defined in: [base.ts:11](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L11) #### Inherited from @@ -150,7 +150,7 @@ Defined in: [base.ts:11](https://github.com/humanprotocol/human-protocol/blob/61 > **stakingContract**: `Staking` -Defined in: [staking.ts:110](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L110) +Defined in: [staking.ts:110](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L110) *** @@ -158,7 +158,7 @@ Defined in: [staking.ts:110](https://github.com/humanprotocol/human-protocol/blo > **tokenContract**: `HMToken` -Defined in: [staking.ts:109](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L109) +Defined in: [staking.ts:109](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L109) ## Methods @@ -166,7 +166,7 @@ Defined in: [staking.ts:109](https://github.com/humanprotocol/human-protocol/blo > **approveStake**(`amount`, `txOptions?`): `Promise`\<`void`\> -Defined in: [staking.ts:204](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L204) +Defined in: [staking.ts:204](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L204) This function approves the staking contract to transfer a specified amount of tokens when the user stakes. It increases the allowance for the staking contract. @@ -213,7 +213,7 @@ await stakingClient.approveStake(amount); > **getStakerInfo**(`stakerAddress`): `Promise`\<[`StakerInfo`](../../interfaces/interfaces/StakerInfo.md)\> -Defined in: [staking.ts:446](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L446) +Defined in: [staking.ts:446](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L446) Retrieves comprehensive staking information for a staker. @@ -249,7 +249,7 @@ console.log(stakingInfo.tokensStaked); > **slash**(`slasher`, `staker`, `escrowAddress`, `amount`, `txOptions?`): `Promise`\<`void`\> -Defined in: [staking.ts:384](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L384) +Defined in: [staking.ts:384](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L384) This function reduces the allocated amount by a staker in an escrow and transfers those tokens to the reward pool. This allows the slasher to claim them later. @@ -314,7 +314,7 @@ await stakingClient.slash('0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266', '0xf39Fd > **stake**(`amount`, `txOptions?`): `Promise`\<`void`\> -Defined in: [staking.ts:258](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L258) +Defined in: [staking.ts:258](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L258) This function stakes a specified amount of tokens on a specific network. @@ -364,7 +364,7 @@ await stakingClient.stake(amount); > **unstake**(`amount`, `txOptions?`): `Promise`\<`void`\> -Defined in: [staking.ts:302](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L302) +Defined in: [staking.ts:302](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L302) This function unstakes tokens from staking contract. The unstaked tokens stay locked for a period of time. @@ -413,7 +413,7 @@ await stakingClient.unstake(amount); > **withdraw**(`txOptions?`): `Promise`\<`void`\> -Defined in: [staking.ts:347](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L347) +Defined in: [staking.ts:347](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L347) This function withdraws unstaked and non-locked tokens from staking contract to the user wallet. @@ -455,7 +455,7 @@ await stakingClient.withdraw(); > `static` **build**(`runner`): `Promise`\<`StakingClient`\> -Defined in: [staking.ts:147](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L147) +Defined in: [staking.ts:147](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L147) Creates an instance of StakingClient from a Runner. diff --git a/docs/sdk/typescript/staking/classes/StakingUtils.md b/docs/sdk/typescript/staking/classes/StakingUtils.md index 2fe8961d5a..7d60d0498a 100644 --- a/docs/sdk/typescript/staking/classes/StakingUtils.md +++ b/docs/sdk/typescript/staking/classes/StakingUtils.md @@ -6,7 +6,7 @@ # Class: StakingUtils -Defined in: [staking.ts:484](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L484) +Defined in: [staking.ts:484](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L484) Utility class for Staking-related subgraph queries. @@ -26,7 +26,7 @@ Utility class for Staking-related subgraph queries. > `static` **getStaker**(`chainId`, `stakerAddress`, `options?`): `Promise`\<[`IStaker`](../../interfaces/interfaces/IStaker.md)\> -Defined in: [staking.ts:493](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L493) +Defined in: [staking.ts:493](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L493) Gets staking info for a staker from the subgraph. @@ -62,7 +62,7 @@ Staker info from subgraph > `static` **getStakers**(`filter`, `options?`): `Promise`\<[`IStaker`](../../interfaces/interfaces/IStaker.md)[]\> -Defined in: [staking.ts:528](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L528) +Defined in: [staking.ts:528](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L528) Gets all stakers from the subgraph with filters, pagination and ordering. diff --git a/docs/sdk/typescript/statistics/classes/StatisticsClient.md b/docs/sdk/typescript/statistics/classes/StatisticsClient.md index ebc2034720..67b75646e3 100644 --- a/docs/sdk/typescript/statistics/classes/StatisticsClient.md +++ b/docs/sdk/typescript/statistics/classes/StatisticsClient.md @@ -6,7 +6,7 @@ # Class: StatisticsClient -Defined in: [statistics.ts:64](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L64) +Defined in: [statistics.ts:64](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L64) ## Introduction @@ -45,7 +45,7 @@ const statisticsClient = new StatisticsClient(NETWORKS[ChainId.POLYGON_AMOY]); > **new StatisticsClient**(`networkData`): `StatisticsClient` -Defined in: [statistics.ts:73](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L73) +Defined in: [statistics.ts:73](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L73) **StatisticsClient constructor** @@ -67,7 +67,7 @@ The network information required to connect to the Statistics contract > **networkData**: [`NetworkData`](../../types/type-aliases/NetworkData.md) -Defined in: [statistics.ts:65](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L65) +Defined in: [statistics.ts:65](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L65) *** @@ -75,7 +75,7 @@ Defined in: [statistics.ts:65](https://github.com/humanprotocol/human-protocol/b > **subgraphUrl**: `string` -Defined in: [statistics.ts:66](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L66) +Defined in: [statistics.ts:66](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L66) ## Methods @@ -83,7 +83,7 @@ Defined in: [statistics.ts:66](https://github.com/humanprotocol/human-protocol/b > **getEscrowStatistics**(`filter`, `options?`): `Promise`\<[`IEscrowStatistics`](../../interfaces/interfaces/IEscrowStatistics.md)\> -Defined in: [statistics.ts:127](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L127) +Defined in: [statistics.ts:127](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L127) This function returns the statistical data of escrows. @@ -155,7 +155,7 @@ const escrowStatisticsApril = await statisticsClient.getEscrowStatistics({ > **getHMTDailyData**(`filter`, `options?`): `Promise`\<[`IDailyHMT`](../../interfaces/interfaces/IDailyHMT.md)[]\> -Defined in: [statistics.ts:510](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L510) +Defined in: [statistics.ts:510](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L510) This function returns the statistical data of HMToken day by day. @@ -226,7 +226,7 @@ console.log('HMT statistics from 5/8 - 6/8:', hmtStatisticsRange); > **getHMTHolders**(`params`, `options?`): `Promise`\<[`IHMTHolder`](../../interfaces/interfaces/IHMTHolder.md)[]\> -Defined in: [statistics.ts:434](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L434) +Defined in: [statistics.ts:434](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L434) This function returns the holders of the HMToken with optional filters and ordering. @@ -275,7 +275,7 @@ console.log('HMT holders:', hmtHolders.map((h) => ({ > **getHMTStatistics**(`options?`): `Promise`\<[`IHMTStatistics`](../../interfaces/interfaces/IHMTStatistics.md)\> -Defined in: [statistics.ts:392](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L392) +Defined in: [statistics.ts:392](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L392) This function returns the statistical data of HMToken. @@ -322,7 +322,7 @@ console.log('HMT statistics:', { > **getPaymentStatistics**(`filter`, `options?`): `Promise`\<[`IPaymentStatistics`](../../interfaces/interfaces/IPaymentStatistics.md)\> -Defined in: [statistics.ts:321](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L321) +Defined in: [statistics.ts:321](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L321) This function returns the statistical data of payments. @@ -412,7 +412,7 @@ console.log( > **getWorkerStatistics**(`filter`, `options?`): `Promise`\<[`IWorkerStatistics`](../../interfaces/interfaces/IWorkerStatistics.md)\> -Defined in: [statistics.ts:218](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L218) +Defined in: [statistics.ts:218](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L218) This function returns the statistical data of workers. diff --git a/docs/sdk/typescript/storage/classes/StorageClient.md b/docs/sdk/typescript/storage/classes/StorageClient.md index 2cd637a09b..f50a29d10d 100644 --- a/docs/sdk/typescript/storage/classes/StorageClient.md +++ b/docs/sdk/typescript/storage/classes/StorageClient.md @@ -6,7 +6,7 @@ # ~~Class: StorageClient~~ -Defined in: [storage.ts:63](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L63) +Defined in: [storage.ts:63](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L63) ## Deprecated @@ -61,7 +61,7 @@ const storageClient = new StorageClient(params, credentials); > **new StorageClient**(`params`, `credentials?`): `StorageClient` -Defined in: [storage.ts:73](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L73) +Defined in: [storage.ts:73](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L73) **Storage client constructor** @@ -89,7 +89,7 @@ Optional. Cloud storage access data. If credentials are not provided - use anony > **bucketExists**(`bucket`): `Promise`\<`boolean`\> -Defined in: [storage.ts:262](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L262) +Defined in: [storage.ts:262](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L262) This function checks if a bucket exists. @@ -133,7 +133,7 @@ const exists = await storageClient.bucketExists('bucket-name'); > **downloadFiles**(`keys`, `bucket`): `Promise`\<`any`[]\> -Defined in: [storage.ts:112](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L112) +Defined in: [storage.ts:112](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L112) This function downloads files from a bucket. @@ -181,7 +181,7 @@ const files = await storageClient.downloadFiles(keys, 'bucket-name'); > **listObjects**(`bucket`): `Promise`\<`string`[]\> -Defined in: [storage.ts:292](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L292) +Defined in: [storage.ts:292](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L292) This function lists all file names contained in the bucket. @@ -225,7 +225,7 @@ const fileNames = await storageClient.listObjects('bucket-name'); > **uploadFiles**(`files`, `bucket`): `Promise`\<[`UploadFile`](../../types/type-aliases/UploadFile.md)[]\> -Defined in: [storage.ts:198](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L198) +Defined in: [storage.ts:198](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L198) This function uploads files to a bucket. @@ -278,7 +278,7 @@ const uploadedFiles = await storageClient.uploadFiles(files, 'bucket-name'); > `static` **downloadFileFromUrl**(`url`): `Promise`\<`any`\> -Defined in: [storage.ts:146](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L146) +Defined in: [storage.ts:146](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L146) This function downloads files from a URL. diff --git a/docs/sdk/typescript/transaction/classes/TransactionUtils.md b/docs/sdk/typescript/transaction/classes/TransactionUtils.md index 4d418a54bb..5bf2a6d329 100644 --- a/docs/sdk/typescript/transaction/classes/TransactionUtils.md +++ b/docs/sdk/typescript/transaction/classes/TransactionUtils.md @@ -6,7 +6,7 @@ # Class: TransactionUtils -Defined in: [transaction.ts:23](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/transaction.ts#L23) +Defined in: [transaction.ts:22](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/transaction.ts#L22) ## Constructors @@ -24,7 +24,7 @@ Defined in: [transaction.ts:23](https://github.com/humanprotocol/human-protocol/ > `static` **getTransaction**(`chainId`, `hash`, `options?`): `Promise`\<[`ITransaction`](../../interfaces/interfaces/ITransaction.md) \| `null`\> -Defined in: [transaction.ts:68](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/transaction.ts#L68) +Defined in: [transaction.ts:67](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/transaction.ts#L67) This function returns the transaction data for the given hash. @@ -96,7 +96,7 @@ const transaction = await TransactionUtils.getTransaction(ChainId.POLYGON, '0x62 > `static` **getTransactions**(`filter`, `options?`): `Promise`\<[`ITransaction`](../../interfaces/interfaces/ITransaction.md)[]\> -Defined in: [transaction.ts:170](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/transaction.ts#L170) +Defined in: [transaction.ts:169](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/transaction.ts#L169) This function returns all transaction details based on the provided filter. diff --git a/docs/sdk/typescript/types/enumerations/EscrowStatus.md b/docs/sdk/typescript/types/enumerations/EscrowStatus.md index 2edaa0c575..65a776ba14 100644 --- a/docs/sdk/typescript/types/enumerations/EscrowStatus.md +++ b/docs/sdk/typescript/types/enumerations/EscrowStatus.md @@ -6,7 +6,7 @@ # Enumeration: EscrowStatus -Defined in: [types.ts:8](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L8) +Defined in: [types.ts:8](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L8) Enum for escrow statuses. @@ -16,7 +16,7 @@ Enum for escrow statuses. > **Cancelled**: `5` -Defined in: [types.ts:32](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L32) +Defined in: [types.ts:32](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L32) Escrow is cancelled. @@ -26,7 +26,7 @@ Escrow is cancelled. > **Complete**: `4` -Defined in: [types.ts:28](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L28) +Defined in: [types.ts:28](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L28) Escrow is finished. @@ -36,7 +36,7 @@ Escrow is finished. > **Launched**: `0` -Defined in: [types.ts:12](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L12) +Defined in: [types.ts:12](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L12) Escrow is launched. @@ -46,7 +46,7 @@ Escrow is launched. > **Paid**: `3` -Defined in: [types.ts:24](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L24) +Defined in: [types.ts:24](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L24) Escrow is fully paid. @@ -56,7 +56,7 @@ Escrow is fully paid. > **Partial**: `2` -Defined in: [types.ts:20](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L20) +Defined in: [types.ts:20](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L20) Escrow is partially paid out. @@ -66,7 +66,7 @@ Escrow is partially paid out. > **Pending**: `1` -Defined in: [types.ts:16](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L16) +Defined in: [types.ts:16](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L16) Escrow is funded, and waiting for the results to be submitted. @@ -76,6 +76,6 @@ Escrow is funded, and waiting for the results to be submitted. > **ToCancel**: `6` -Defined in: [types.ts:36](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L36) +Defined in: [types.ts:36](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L36) Escrow is cancelled. diff --git a/docs/sdk/typescript/types/type-aliases/NetworkData.md b/docs/sdk/typescript/types/type-aliases/NetworkData.md index bc32ba3450..b3868ee662 100644 --- a/docs/sdk/typescript/types/type-aliases/NetworkData.md +++ b/docs/sdk/typescript/types/type-aliases/NetworkData.md @@ -8,7 +8,7 @@ > **NetworkData** = `object` -Defined in: [types.ts:99](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L99) +Defined in: [types.ts:99](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L99) Network data @@ -18,7 +18,7 @@ Network data > **chainId**: `number` -Defined in: [types.ts:103](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L103) +Defined in: [types.ts:103](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L103) Network chain id @@ -28,7 +28,7 @@ Network chain id > **factoryAddress**: `string` -Defined in: [types.ts:119](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L119) +Defined in: [types.ts:119](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L119) Escrow Factory contract address @@ -38,7 +38,7 @@ Escrow Factory contract address > **hmtAddress**: `string` -Defined in: [types.ts:115](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L115) +Defined in: [types.ts:115](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L115) HMT Token contract address @@ -48,7 +48,7 @@ HMT Token contract address > **kvstoreAddress**: `string` -Defined in: [types.ts:127](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L127) +Defined in: [types.ts:127](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L127) KVStore contract address @@ -58,7 +58,7 @@ KVStore contract address > **oldFactoryAddress**: `string` -Defined in: [types.ts:143](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L143) +Defined in: [types.ts:143](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L143) Old Escrow Factory contract address @@ -68,7 +68,7 @@ Old Escrow Factory contract address > **oldSubgraphUrl**: `string` -Defined in: [types.ts:139](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L139) +Defined in: [types.ts:139](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L139) Old subgraph URL @@ -78,7 +78,7 @@ Old subgraph URL > **scanUrl**: `string` -Defined in: [types.ts:111](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L111) +Defined in: [types.ts:111](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L111) Network scanner URL @@ -88,7 +88,7 @@ Network scanner URL > **stakingAddress**: `string` -Defined in: [types.ts:123](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L123) +Defined in: [types.ts:123](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L123) Staking contract address @@ -98,7 +98,7 @@ Staking contract address > **subgraphUrl**: `string` -Defined in: [types.ts:131](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L131) +Defined in: [types.ts:131](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L131) Subgraph URL @@ -108,7 +108,7 @@ Subgraph URL > **subgraphUrlApiKey**: `string` -Defined in: [types.ts:135](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L135) +Defined in: [types.ts:135](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L135) Subgraph URL API key @@ -118,6 +118,6 @@ Subgraph URL API key > **title**: `string` -Defined in: [types.ts:107](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L107) +Defined in: [types.ts:107](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L107) Network title diff --git a/docs/sdk/typescript/types/type-aliases/StorageCredentials.md b/docs/sdk/typescript/types/type-aliases/StorageCredentials.md index 7e9fdb3b1a..628674af66 100644 --- a/docs/sdk/typescript/types/type-aliases/StorageCredentials.md +++ b/docs/sdk/typescript/types/type-aliases/StorageCredentials.md @@ -8,7 +8,7 @@ > `readonly` **StorageCredentials** = `object` -Defined in: [types.ts:44](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L44) +Defined in: [types.ts:44](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L44) AWS/GCP cloud storage access data @@ -22,7 +22,7 @@ StorageClient is deprecated. Use Minio.Client directly. > **accessKey**: `string` -Defined in: [types.ts:48](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L48) +Defined in: [types.ts:48](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L48) Access Key @@ -32,6 +32,6 @@ Access Key > **secretKey**: `string` -Defined in: [types.ts:52](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L52) +Defined in: [types.ts:52](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L52) Secret Key diff --git a/docs/sdk/typescript/types/type-aliases/StorageParams.md b/docs/sdk/typescript/types/type-aliases/StorageParams.md index d3407c10c8..188ee87bd4 100644 --- a/docs/sdk/typescript/types/type-aliases/StorageParams.md +++ b/docs/sdk/typescript/types/type-aliases/StorageParams.md @@ -8,7 +8,7 @@ > **StorageParams** = `object` -Defined in: [types.ts:58](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L58) +Defined in: [types.ts:58](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L58) ## Deprecated @@ -20,7 +20,7 @@ StorageClient is deprecated. Use Minio.Client directly. > **endPoint**: `string` -Defined in: [types.ts:62](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L62) +Defined in: [types.ts:62](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L62) Request endPoint @@ -30,7 +30,7 @@ Request endPoint > `optional` **port**: `number` -Defined in: [types.ts:74](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L74) +Defined in: [types.ts:74](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L74) TCP/IP port number. Default value set to 80 for HTTP and 443 for HTTPs @@ -40,7 +40,7 @@ TCP/IP port number. Default value set to 80 for HTTP and 443 for HTTPs > `optional` **region**: `string` -Defined in: [types.ts:70](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L70) +Defined in: [types.ts:70](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L70) Region @@ -50,6 +50,6 @@ Region > **useSSL**: `boolean` -Defined in: [types.ts:66](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L66) +Defined in: [types.ts:66](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L66) Enable secure (HTTPS) access. Default value set to false diff --git a/docs/sdk/typescript/types/type-aliases/TransactionLikeWithNonce.md b/docs/sdk/typescript/types/type-aliases/TransactionLikeWithNonce.md index 3d75569501..efa93be4e3 100644 --- a/docs/sdk/typescript/types/type-aliases/TransactionLikeWithNonce.md +++ b/docs/sdk/typescript/types/type-aliases/TransactionLikeWithNonce.md @@ -8,7 +8,7 @@ > **TransactionLikeWithNonce** = `TransactionLike` & `object` -Defined in: [types.ts:146](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L146) +Defined in: [types.ts:146](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L146) ## Type Declaration diff --git a/docs/sdk/typescript/types/type-aliases/UploadFile.md b/docs/sdk/typescript/types/type-aliases/UploadFile.md index a5ee434fef..22e3859877 100644 --- a/docs/sdk/typescript/types/type-aliases/UploadFile.md +++ b/docs/sdk/typescript/types/type-aliases/UploadFile.md @@ -8,7 +8,7 @@ > `readonly` **UploadFile** = `object` -Defined in: [types.ts:81](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L81) +Defined in: [types.ts:81](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L81) Upload file data @@ -18,7 +18,7 @@ Upload file data > **hash**: `string` -Defined in: [types.ts:93](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L93) +Defined in: [types.ts:93](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L93) Hash of uploaded object key @@ -28,7 +28,7 @@ Hash of uploaded object key > **key**: `string` -Defined in: [types.ts:85](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L85) +Defined in: [types.ts:85](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L85) Uploaded object key @@ -38,6 +38,6 @@ Uploaded object key > **url**: `string` -Defined in: [types.ts:89](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L89) +Defined in: [types.ts:89](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L89) Uploaded object URL diff --git a/packages/apps/dashboard/server/package.json b/packages/apps/dashboard/server/package.json index c739f53819..dde650391f 100644 --- a/packages/apps/dashboard/server/package.json +++ b/packages/apps/dashboard/server/package.json @@ -44,7 +44,7 @@ "@nestjs/schematics": "^11.0.2", "@nestjs/testing": "^10.4.6", "@types/express": "^4.17.13", - "@types/jest": "29.5.1", + "@types/jest": "30.0.0", "@types/node": "22.10.5", "@typescript-eslint/eslint-plugin": "^5.0.0", "@typescript-eslint/parser": "^8.46.3", @@ -52,7 +52,7 @@ "eslint-config-prettier": "^9.1.0", "eslint-plugin-jest": "^28.9.0", "eslint-plugin-prettier": "^5.2.1", - "jest": "29.5.0", + "jest": "30.2.0", "prettier": "^3.4.2", "source-map-support": "^0.5.20", "ts-jest": "29.2.5", diff --git a/packages/apps/dashboard/server/src/modules/details/details.spec.ts b/packages/apps/dashboard/server/src/modules/details/details.spec.ts index 182b93091a..0b0dc899d3 100644 --- a/packages/apps/dashboard/server/src/modules/details/details.spec.ts +++ b/packages/apps/dashboard/server/src/modules/details/details.spec.ts @@ -145,7 +145,7 @@ describe('DetailsService', () => { expect(result[1].address).toBe('0xC'); expect(result[2].address).toBe('0xD'); expect(result.length).toBe(5); - expect(getOperatorsSpy).toBeCalledWith( + expect(getOperatorsSpy).toHaveBeenCalledWith( expect.objectContaining({ first: 5, }), diff --git a/packages/apps/faucet/server/package.json b/packages/apps/faucet/server/package.json index 9441a70e1b..0fbd758582 100644 --- a/packages/apps/faucet/server/package.json +++ b/packages/apps/faucet/server/package.json @@ -31,7 +31,7 @@ "concurrently": "^9.1.2", "eslint": "^9.39.1", "hardhat": "^2.26.0", - "jest": "^29.7.0", + "jest": "^30.2.0", "ts-node": "^10.9.2", "typescript": "^5.8.3" } diff --git a/packages/apps/fortune/exchange-oracle/server/package.json b/packages/apps/fortune/exchange-oracle/server/package.json index 05c40a846a..74e23e701c 100644 --- a/packages/apps/fortune/exchange-oracle/server/package.json +++ b/packages/apps/fortune/exchange-oracle/server/package.json @@ -66,7 +66,7 @@ "@nestjs/testing": "^10.4.6", "@types/body-parser": "^1", "@types/express": "^4.17.13", - "@types/jest": "29.5.12", + "@types/jest": "30.0.0", "@types/jsonwebtoken": "^9.0.7", "@types/node": "22.10.5", "@types/passport": "^0", @@ -77,7 +77,7 @@ "eslint-config-prettier": "^9.1.0", "eslint-plugin-jest": "^28.9.0", "eslint-plugin-prettier": "^5.2.1", - "jest": "29.7.0", + "jest": "30.2.0", "prettier": "^3.4.2", "source-map-support": "^0.5.20", "ts-jest": "29.2.5", diff --git a/packages/apps/fortune/exchange-oracle/server/src/common/interceptors/transform-enum.interceptor.spec.ts b/packages/apps/fortune/exchange-oracle/server/src/common/interceptors/transform-enum.interceptor.spec.ts index b0420dd949..801a0f5936 100644 --- a/packages/apps/fortune/exchange-oracle/server/src/common/interceptors/transform-enum.interceptor.spec.ts +++ b/packages/apps/fortune/exchange-oracle/server/src/common/interceptors/transform-enum.interceptor.spec.ts @@ -87,7 +87,7 @@ describe('TransformEnumInterceptor', () => { amount: 5, address: '0xCf88b3f1992458C2f5a229573c768D0E9F70C44e', }); - expect(callHandler.handle).toBeCalled(); // Ensure the handler is called + expect(callHandler.handle).toHaveBeenCalled(); // Ensure the handler is called }); it('should throw an error if the value is not a valid enum', async () => { @@ -125,7 +125,7 @@ describe('TransformEnumInterceptor', () => { expect(request.body.address).toBe( '0xCf88b3f1992458C2f5a229573c768D0E9F70C44e', ); // Non-enum string should remain unchanged - expect(callHandler.handle).toBeCalled(); + expect(callHandler.handle).toHaveBeenCalled(); }); it('should handle nested objects with enums', async () => { diff --git a/packages/apps/fortune/exchange-oracle/server/src/modules/assignment/assignment.service.spec.ts b/packages/apps/fortune/exchange-oracle/server/src/modules/assignment/assignment.service.spec.ts index 6bd57ac270..0144bac268 100644 --- a/packages/apps/fortune/exchange-oracle/server/src/modules/assignment/assignment.service.spec.ts +++ b/packages/apps/fortune/exchange-oracle/server/src/modules/assignment/assignment.service.spec.ts @@ -1,4 +1,5 @@ import { createMock } from '@golevelup/ts-jest'; +import { Escrow__factory } from '@human-protocol/core/typechain-types'; import { ConfigService } from '@nestjs/config'; import { Test } from '@nestjs/testing'; import { @@ -6,7 +7,16 @@ import { MOCK_MANIFEST_URL, MOCK_PRIVATE_KEY, } from '../../../test/constants'; -import { AssignmentStatus, JobStatus, JobType } from '../../common/enums/job'; +import { ServerConfigService } from '../../common/config/server-config.service'; +import { ErrorAssignment, ErrorJob } from '../../common/constant/errors'; +import { SortDirection } from '../../common/enums/collection'; +import { + AssignmentSortField, + AssignmentStatus, + JobStatus, + JobType, +} from '../../common/enums/job'; +import { ConflictError, ServerError } from '../../common/errors'; import { AssignmentRepository } from '../assignment/assignment.repository'; import { AssignmentService } from '../assignment/assignment.service'; import { ManifestDto } from '../job/job.dto'; @@ -14,13 +24,7 @@ import { JobRepository } from '../job/job.repository'; import { JobService } from '../job/job.service'; import { Web3Service } from '../web3/web3.service'; import { AssignmentDto, CreateAssignmentDto } from './assignment.dto'; -import { Escrow__factory } from '@human-protocol/core/typechain-types'; -import { AssignmentSortField } from '../../common/enums/job'; -import { SortDirection } from '../../common/enums/collection'; import { AssignmentEntity } from './assignment.entity'; -import { ErrorAssignment, ErrorJob } from '../../common/constant/errors'; -import { BadRequestException } from '@nestjs/common'; -import { ServerConfigService } from '../../common/config/server-config.service'; jest.mock('@human-protocol/core/typechain-types', () => ({ ...jest.requireActual('@human-protocol/core/typechain-types'), @@ -518,7 +522,7 @@ describe('AssignmentService', () => { await expect( assignmentService.resign(assignmentId, workerAddress), - ).rejects.toThrow(new BadRequestException(ErrorAssignment.NotFound)); + ).rejects.toThrow(new ServerError(ErrorAssignment.NotFound)); }); it('should throw InvalidStatus if assignment status is not ACTIVE', async () => { @@ -536,7 +540,7 @@ describe('AssignmentService', () => { await expect( assignmentService.resign(assignmentId, workerAddress), - ).rejects.toThrow(new BadRequestException(ErrorAssignment.InvalidStatus)); + ).rejects.toThrow(new ConflictError(ErrorAssignment.InvalidStatus)); }); }); }); diff --git a/packages/apps/fortune/exchange-oracle/server/src/modules/job/job.service.spec.ts b/packages/apps/fortune/exchange-oracle/server/src/modules/job/job.service.spec.ts index 8cde61c092..d39c5d9dd6 100644 --- a/packages/apps/fortune/exchange-oracle/server/src/modules/job/job.service.spec.ts +++ b/packages/apps/fortune/exchange-oracle/server/src/modules/job/job.service.spec.ts @@ -1,4 +1,5 @@ import { createMock } from '@golevelup/ts-jest'; +import { HMToken__factory } from '@human-protocol/core/typechain-types'; import { Encryption, EscrowClient, OperatorUtils } from '@human-protocol/sdk'; import { HttpService } from '@nestjs/axios'; import { ConfigService } from '@nestjs/config'; @@ -9,6 +10,9 @@ import { MOCK_MANIFEST_URL, mockConfig, } from '../../../test/constants'; +import { PGPConfigService } from '../../common/config/pgp-config.service'; +import { S3ConfigService } from '../../common/config/s3-config.service'; +import { ErrorAssignment, ErrorJob } from '../../common/constant/errors'; import { AssignmentStatus, JobFieldName, @@ -16,6 +20,12 @@ import { JobType, } from '../../common/enums/job'; import { EventType, WebhookStatus } from '../../common/enums/webhook'; +import { + ConflictError, + ServerError, + ValidationError, +} from '../../common/errors'; +import { downloadFileFromUrl } from '../../common/utils/storage'; import { AssignmentEntity } from '../assignment/assignment.entity'; import { AssignmentRepository } from '../assignment/assignment.repository'; import { StorageService } from '../storage/storage.service'; @@ -26,12 +36,6 @@ import { ManifestDto } from './job.dto'; import { JobEntity } from './job.entity'; import { JobRepository } from './job.repository'; import { JobService } from './job.service'; -import { PGPConfigService } from '../../common/config/pgp-config.service'; -import { S3ConfigService } from '../../common/config/s3-config.service'; -import { ErrorJob, ErrorAssignment } from '../../common/constant/errors'; -import { BadRequestException, NotFoundException } from '@nestjs/common'; -import { HMToken__factory } from '@human-protocol/core/typechain-types'; -import { downloadFileFromUrl } from '../../common/utils/storage'; jest.mock('@human-protocol/sdk', () => ({ ...jest.requireActual('@human-protocol/sdk'), @@ -248,17 +252,17 @@ describe('JobService', () => { ); }); - it('should throw NotFoundException if job does not exist', async () => { + it('should throw ServerError if job does not exist', async () => { jest .spyOn(jobRepository, 'findOneByChainIdAndEscrowAddressWithAssignments') .mockResolvedValue(null); await expect(jobService.completeJob(webhook)).rejects.toThrow( - new NotFoundException(ErrorJob.NotFound), + new ServerError(ErrorJob.NotFound), ); }); - it('should throw BadRequestException if job is already completed', async () => { + it('should throw ConflictError if job is already completed', async () => { const jobEntity = new JobEntity(); jobEntity.chainId = chainId; jobEntity.escrowAddress = escrowAddress; @@ -269,7 +273,7 @@ describe('JobService', () => { .mockResolvedValue(jobEntity); await expect(jobService.completeJob(webhook)).rejects.toThrow( - new BadRequestException(ErrorJob.AlreadyCompleted), + new ConflictError(ErrorJob.AlreadyCompleted), ); }); }); @@ -322,17 +326,17 @@ describe('JobService', () => { ); }); - it('should throw NotFoundException if job does not exist', async () => { + it('should throw ServerError if job does not exist', async () => { jest .spyOn(jobRepository, 'findOneByChainIdAndEscrowAddressWithAssignments') .mockResolvedValue(null); await expect(jobService.cancelJob(webhook)).rejects.toThrow( - new NotFoundException(ErrorJob.NotFound), + new ServerError(ErrorJob.NotFound), ); }); - it('should throw BadRequestException if job is already canceled', async () => { + it('should throw ConflictError if job is already canceled', async () => { const jobEntity = new JobEntity(); jobEntity.chainId = chainId; jobEntity.escrowAddress = escrowAddress; @@ -343,7 +347,7 @@ describe('JobService', () => { .mockResolvedValue(jobEntity); await expect(jobService.cancelJob(webhook)).rejects.toThrow( - new BadRequestException(ErrorJob.AlreadyCanceled), + new ConflictError(ErrorJob.AlreadyCanceled), ); }); }); @@ -509,7 +513,7 @@ describe('JobService', () => { assignment.status = AssignmentStatus.CANCELED; await expect(jobService.solveJob(1, 'solution')).rejects.toThrow( - new BadRequestException(ErrorAssignment.InvalidStatus), + new ConflictError(ErrorAssignment.InvalidStatus), ); expect(web3Service.getSigner).toHaveBeenCalledWith(chainId); }); @@ -583,7 +587,7 @@ describe('JobService', () => { })); await expect(jobService.solveJob(1, 'solution')).rejects.toThrow( - new BadRequestException(ErrorJob.SolutionAlreadySubmitted), + new ValidationError(ErrorJob.SolutionAlreadySubmitted), ); expect(web3Service.getSigner).toHaveBeenCalledWith(chainId); }); diff --git a/packages/apps/fortune/exchange-oracle/server/src/modules/webhook/webhook.service.spec.ts b/packages/apps/fortune/exchange-oracle/server/src/modules/webhook/webhook.service.spec.ts index fd0565bdb7..003a29cffc 100644 --- a/packages/apps/fortune/exchange-oracle/server/src/modules/webhook/webhook.service.spec.ts +++ b/packages/apps/fortune/exchange-oracle/server/src/modules/webhook/webhook.service.spec.ts @@ -206,7 +206,7 @@ describe('WebhookService', () => { .mockResolvedValue(''); await expect( (webhookService as any).sendWebhook(webhookEntity), - ).rejects.toThrowError(ErrorWebhook.UrlNotFound); + ).rejects.toThrow(ErrorWebhook.UrlNotFound); }); it('should handle error if any exception is thrown', async () => { @@ -218,7 +218,7 @@ describe('WebhookService', () => { }); await expect( (webhookService as any).sendWebhook(webhookEntity), - ).rejects.toThrowError('HTTP request failed'); + ).rejects.toThrow('HTTP request failed'); }); it('should successfully process a webhook with signature', async () => { @@ -295,7 +295,7 @@ describe('WebhookService', () => { ChainId.LOCALHOST, EventType.ESCROW_CREATED, ), - ).rejects.toThrowError('Invalid outgoing event type'); + ).rejects.toThrow('Invalid outgoing event type'); }); it('should throw NotFoundError if operator is not found', async () => { diff --git a/packages/apps/fortune/recording-oracle/package.json b/packages/apps/fortune/recording-oracle/package.json index 4c946d8cf7..fb17499389 100644 --- a/packages/apps/fortune/recording-oracle/package.json +++ b/packages/apps/fortune/recording-oracle/package.json @@ -51,7 +51,7 @@ "eslint": "^9.39.1", "eslint-plugin-jest": "^28.9.0", "eslint-plugin-prettier": "^5.2.1", - "jest": "^29.7.0", + "jest": "^30.2.0", "prettier": "^3.4.2", "ts-node": "^10.9.2", "typescript": "^5.8.3" diff --git a/packages/apps/fortune/recording-oracle/src/common/interceptors/transform-enum.interceptor.spec.ts b/packages/apps/fortune/recording-oracle/src/common/interceptors/transform-enum.interceptor.spec.ts index 8e012a1f44..e0477fc7d4 100644 --- a/packages/apps/fortune/recording-oracle/src/common/interceptors/transform-enum.interceptor.spec.ts +++ b/packages/apps/fortune/recording-oracle/src/common/interceptors/transform-enum.interceptor.spec.ts @@ -87,7 +87,7 @@ describe('TransformEnumInterceptor', () => { expect(request.query).toEqual({ jobType: 'fortune', }); - expect(callHandler.handle).toBeCalled(); // Ensure the handler is called + expect(callHandler.handle).toHaveBeenCalled(); // Ensure the handler is called }); it('should throw an error if the query value is not a valid enum', async () => { @@ -125,7 +125,7 @@ describe('TransformEnumInterceptor', () => { amount: 5, address: '0xCf88b3f1992458C2f5a229573c768D0E9F70C44e', }); - expect(callHandler.handle).toBeCalled(); // Ensure the handler is called + expect(callHandler.handle).toHaveBeenCalled(); // Ensure the handler is called }); it('should throw an error if the value is not a valid enum', async () => { @@ -164,7 +164,7 @@ describe('TransformEnumInterceptor', () => { expect(request.body.address).toBe( '0xCf88b3f1992458C2f5a229573c768D0E9F70C44e', ); // Non-enum string should remain unchanged - expect(callHandler.handle).toBeCalled(); + expect(callHandler.handle).toHaveBeenCalled(); }); it('should handle nested objects with enums', async () => { diff --git a/packages/apps/fortune/recording-oracle/src/modules/job/job.service.spec.ts b/packages/apps/fortune/recording-oracle/src/modules/job/job.service.spec.ts index d2fbb23d43..e9094e4d21 100644 --- a/packages/apps/fortune/recording-oracle/src/modules/job/job.service.spec.ts +++ b/packages/apps/fortune/recording-oracle/src/modules/job/job.service.spec.ts @@ -156,9 +156,9 @@ describe('JobService', () => { eventData: { solutionsUrl: MOCK_FILE_URL }, }; - await expect( - jobService.processJobSolution(jobSolution), - ).rejects.toThrowError(ErrorJob.AddressMismatches); + await expect(jobService.processJobSolution(jobSolution)).rejects.toThrow( + ErrorJob.AddressMismatches, + ); }); it('should throw bad request exception when escrow status is not pending', async () => { @@ -175,9 +175,9 @@ describe('JobService', () => { eventData: { solutionsUrl: MOCK_FILE_URL }, }; - await expect( - jobService.processJobSolution(jobSolution), - ).rejects.toThrowError(ErrorJob.InvalidStatus); + await expect(jobService.processJobSolution(jobSolution)).rejects.toThrow( + ErrorJob.InvalidStatus, + ); }); it('should throw bad request exception when manifest is invalid', async () => { @@ -202,9 +202,9 @@ describe('JobService', () => { eventData: { solutionsUrl: MOCK_FILE_URL }, }; - await expect( - jobService.processJobSolution(jobSolution), - ).rejects.toThrowError(ErrorJob.InvalidManifest); + await expect(jobService.processJobSolution(jobSolution)).rejects.toThrow( + ErrorJob.InvalidManifest, + ); }); it('should throw bad request exception when manifest contains an invalid job type', async () => { @@ -231,9 +231,9 @@ describe('JobService', () => { eventData: { solutionsUrl: MOCK_FILE_URL }, }; - await expect( - jobService.processJobSolution(jobSolution), - ).rejects.toThrowError(ErrorJob.InvalidJobType); + await expect(jobService.processJobSolution(jobSolution)).rejects.toThrow( + ErrorJob.InvalidJobType, + ); }); it('should throw bad request exception when all solutions have already been sent', async () => { @@ -293,9 +293,9 @@ describe('JobService', () => { eventData: { solutionsUrl: MOCK_FILE_URL }, }; - await expect( - jobService.processJobSolution(newSolution), - ).rejects.toThrowError(ErrorJob.AllSolutionsHaveAlreadyBeenSent); + await expect(jobService.processJobSolution(newSolution)).rejects.toThrow( + ErrorJob.AllSolutionsHaveAlreadyBeenSent, + ); }); it('should throw bad request exception when webhook was not sent', async () => { diff --git a/packages/apps/human-app/frontend/.env.example b/packages/apps/human-app/frontend/.env.example index 4c0b161ec5..620826e71d 100644 --- a/packages/apps/human-app/frontend/.env.example +++ b/packages/apps/human-app/frontend/.env.example @@ -10,8 +10,6 @@ VITE_DAPP_META_NAME=Human App Local VITE_DAPP_META_URL=http://localhost:3001 # hCapthca -VITE_H_CAPTCHA_EXCHANGE_URL=https://foundation-yellow-exchange.hmt.ai -VITE_H_CAPTCHA_LABELING_BASE_URL=https://foundation-yellow-accounts.hmt.ai VITE_H_CAPTCHA_SITE_KEY=10000000-ffff-ffff-ffff-000000000001 VITE_DAILY_SOLVED_CAPTCHA_LIMIT=0 VITE_HMT_DAILY_SPENT_LIMIT=0 diff --git a/packages/apps/human-app/frontend/package.json b/packages/apps/human-app/frontend/package.json index 8b46655e75..1894d6f579 100644 --- a/packages/apps/human-app/frontend/package.json +++ b/packages/apps/human-app/frontend/package.json @@ -21,7 +21,7 @@ "@faker-js/faker": "^9.7.0", "@fontsource/inter": "^5.0.17", "@fontsource/roboto": "^5.2.6", - "@hcaptcha/react-hcaptcha": "^0.3.6", + "@hcaptcha/react-hcaptcha": "^1.14.0", "@hookform/resolvers": "^5.1.0", "@human-protocol/sdk": "workspace:*", "@mui/icons-material": "^7.0.1", diff --git a/packages/apps/human-app/frontend/src/modules/worker/hcaptcha-labeling/hcaptcha-labeling.page.tsx b/packages/apps/human-app/frontend/src/modules/worker/hcaptcha-labeling/hcaptcha-labeling.page.tsx index 2e27f715db..534121be7e 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/hcaptcha-labeling/hcaptcha-labeling.page.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/hcaptcha-labeling/hcaptcha-labeling.page.tsx @@ -144,14 +144,11 @@ export function HcaptchaLabelingPage() { {canSolveCaptcha ? ( ) : ( diff --git a/packages/apps/human-app/frontend/src/shared/env.ts b/packages/apps/human-app/frontend/src/shared/env.ts index b442081d05..9e51cfb1d1 100644 --- a/packages/apps/human-app/frontend/src/shared/env.ts +++ b/packages/apps/human-app/frontend/src/shared/env.ts @@ -18,8 +18,6 @@ const envSchema = z.object({ .string() .transform((value) => Number(value)) .pipe(z.number()), - VITE_H_CAPTCHA_EXCHANGE_URL: z.string(), - VITE_H_CAPTCHA_LABELING_BASE_URL: z.string(), VITE_WALLET_CONNECT_PROJECT_ID: z.string(), VITE_DAPP_META_NAME: z.string(), VITE_DAPP_META_DESCRIPTION: z.string(), diff --git a/packages/apps/human-app/server/package.json b/packages/apps/human-app/server/package.json index 1927d027e4..7a1451a287 100644 --- a/packages/apps/human-app/server/package.json +++ b/packages/apps/human-app/server/package.json @@ -58,7 +58,7 @@ "@nestjs/schematics": "^11.0.2", "@nestjs/testing": "^10.4.6", "@types/express": "^4.17.13", - "@types/jest": "29.5.12", + "@types/jest": "30.0.0", "@types/jsonwebtoken": "^9.0.7", "@types/lodash": "^4.17.14", "@types/node": "22.10.5", @@ -69,7 +69,7 @@ "eslint-config-prettier": "^9.1.0", "eslint-plugin-jest": "^28.9.0", "eslint-plugin-prettier": "^5.2.1", - "jest": "29.7.0", + "jest": "30.2.0", "nock": "^13.5.1", "prettier": "^3.4.2", "source-map-support": "^0.5.20", diff --git a/packages/apps/human-app/server/src/common/filter/exception.filter.spec.ts b/packages/apps/human-app/server/src/common/filter/exception.filter.spec.ts index 201f8c22e5..60f1f20dd4 100644 --- a/packages/apps/human-app/server/src/common/filter/exception.filter.spec.ts +++ b/packages/apps/human-app/server/src/common/filter/exception.filter.spec.ts @@ -47,13 +47,13 @@ describe('ExceptionFilter', () => { new HttpException('Http exception', HttpStatus.BAD_REQUEST), mockArgumentsHost, ); - expect(mockHttpArgumentsHost).toBeCalledTimes(1); - expect(mockHttpArgumentsHost).toBeCalledWith(); - expect(mockGetResponse).toBeCalledTimes(1); - expect(mockGetResponse).toBeCalledWith(); - expect(mockStatus).toBeCalledTimes(1); - expect(mockStatus).toBeCalledWith(HttpStatus.BAD_REQUEST); - expect(mockJson).toBeCalledTimes(1); - expect(mockJson).toBeCalledWith('Http exception'); + expect(mockHttpArgumentsHost).toHaveBeenCalledTimes(1); + expect(mockHttpArgumentsHost).toHaveBeenCalledWith(); + expect(mockGetResponse).toHaveBeenCalledTimes(1); + expect(mockGetResponse).toHaveBeenCalledWith(); + expect(mockStatus).toHaveBeenCalledTimes(1); + expect(mockStatus).toHaveBeenCalledWith(HttpStatus.BAD_REQUEST); + expect(mockJson).toHaveBeenCalledTimes(1); + expect(mockJson).toHaveBeenCalledWith('Http exception'); }); }); diff --git a/packages/apps/human-app/server/src/common/interceptors/transform-enum.interceptor.spec.ts b/packages/apps/human-app/server/src/common/interceptors/transform-enum.interceptor.spec.ts index 7063047191..819e03baa0 100644 --- a/packages/apps/human-app/server/src/common/interceptors/transform-enum.interceptor.spec.ts +++ b/packages/apps/human-app/server/src/common/interceptors/transform-enum.interceptor.spec.ts @@ -88,7 +88,7 @@ describe('TransformEnumInterceptor', () => { expect(request.query).toEqual({ userType: 'operator', }); - expect(callHandler.handle).toBeCalled(); // Ensure the handler is called + expect(callHandler.handle).toHaveBeenCalled(); // Ensure the handler is called }); it('should throw an error if the query value is not a valid enum', async () => { @@ -126,7 +126,7 @@ describe('TransformEnumInterceptor', () => { amount: 5, address: '0xCf88b3f1992458C2f5a229573c768D0E9F70C44e', }); - expect(callHandler.handle).toBeCalled(); // Ensure the handler is called + expect(callHandler.handle).toHaveBeenCalled(); // Ensure the handler is called }); it('should throw an error if the value is not a valid enum', async () => { @@ -164,7 +164,7 @@ describe('TransformEnumInterceptor', () => { expect(request.body.address).toBe( '0xCf88b3f1992458C2f5a229573c768D0E9F70C44e', ); // Non-enum string should remain unchanged - expect(callHandler.handle).toBeCalled(); + expect(callHandler.handle).toHaveBeenCalled(); }); it('should handle nested objects with enums', async () => { diff --git a/packages/apps/human-app/server/src/integrations/reputation-oracle/spec/reputation-oracle.gateway.spec.ts b/packages/apps/human-app/server/src/integrations/reputation-oracle/spec/reputation-oracle.gateway.spec.ts index bec7e9af5e..76afaeef04 100644 --- a/packages/apps/human-app/server/src/integrations/reputation-oracle/spec/reputation-oracle.gateway.spec.ts +++ b/packages/apps/human-app/server/src/integrations/reputation-oracle/spec/reputation-oracle.gateway.spec.ts @@ -169,10 +169,7 @@ describe('ReputationOracleGateway', () => { .mockReturnValue(throwError(() => new Error('Internal Server Error'))); await expect(service.sendWorkerSignup(command)).rejects.toThrow( - new HttpException( - 'Internal Server Error', - HttpStatus.INTERNAL_SERVER_ERROR, - ), + new Error('Internal Server Error'), ); }); }); @@ -230,12 +227,7 @@ describe('ReputationOracleGateway', () => { await expect( service.sendRegistrationInExchangeOracle(command), - ).rejects.toThrow( - new HttpException( - 'Internal Server Error', - HttpStatus.INTERNAL_SERVER_ERROR, - ), - ); + ).rejects.toThrow(new Error('Internal Server Error')); }); }); @@ -361,10 +353,7 @@ describe('ReputationOracleGateway', () => { .mockReturnValue(throwError(() => new Error('Internal Server Error'))); await expect(service.sendWorkerSignin(command)).rejects.toThrow( - new HttpException( - 'Internal Server Error', - HttpStatus.INTERNAL_SERVER_ERROR, - ), + new Error('Internal Server Error'), ); }); }); @@ -412,10 +401,7 @@ describe('ReputationOracleGateway', () => { const command: EmailVerificationCommand = emailVerificationCommandFixture; await expect(service.sendEmailVerification(command)).rejects.toThrow( - new HttpException( - 'Internal Server Error', - HttpStatus.INTERNAL_SERVER_ERROR, - ), + new Error('Internal Server Error'), ); }); }); @@ -471,12 +457,7 @@ describe('ReputationOracleGateway', () => { resendEmailVerificationCommandFixture; await expect( service.sendResendEmailVerification(command), - ).rejects.toThrow( - new HttpException( - 'Internal Server Error', - HttpStatus.INTERNAL_SERVER_ERROR, - ), - ); + ).rejects.toThrow(new Error('Internal Server Error')); }); }); @@ -523,10 +504,7 @@ describe('ReputationOracleGateway', () => { const command: ForgotPasswordCommand = forgotPasswordCommandFixture; await expect(service.sendForgotPassword(command)).rejects.toThrow( - new HttpException( - 'Internal Server Error', - HttpStatus.INTERNAL_SERVER_ERROR, - ), + new Error('Internal Server Error'), ); }); }); @@ -574,12 +552,7 @@ describe('ReputationOracleGateway', () => { await expect( service.sendRestorePassword(restorePasswordCommandFixture), - ).rejects.toThrow( - new HttpException( - 'Internal Server Error', - HttpStatus.INTERNAL_SERVER_ERROR, - ), - ); + ).rejects.toThrow(new Error('Internal Server Error')); }); }); @@ -631,10 +604,7 @@ describe('ReputationOracleGateway', () => { const command: PrepareSignatureCommand = prepareSignatureCommandFixture; await expect(service.sendPrepareSignature(command)).rejects.toThrow( - new HttpException( - 'Internal Server Error', - HttpStatus.INTERNAL_SERVER_ERROR, - ), + new Error('Internal Server Error'), ); }); }); @@ -682,12 +652,7 @@ describe('ReputationOracleGateway', () => { await expect( service.sendDisableOperator(disableOperatorCommandFixture), - ).rejects.toThrow( - new HttpException( - 'Internal Server Error', - HttpStatus.INTERNAL_SERVER_ERROR, - ), - ); + ).rejects.toThrow(new Error('Internal Server Error')); }); }); describe('sendKycOnChain', () => { @@ -735,10 +700,7 @@ describe('ReputationOracleGateway', () => { .mockReturnValue(throwError(() => new Error('Internal Server Error'))); await expect(service.sendKycProcedureStart('token')).rejects.toThrow( - new HttpException( - 'Internal Server Error', - HttpStatus.INTERNAL_SERVER_ERROR, - ), + new Error('Internal Server Error'), ); }); }); @@ -786,12 +748,7 @@ describe('ReputationOracleGateway', () => { await expect( service.approveUserAsLabeler(enableLabelingCommandFixture), - ).rejects.toThrow( - new HttpException( - 'Internal Server Error', - HttpStatus.INTERNAL_SERVER_ERROR, - ), - ); + ).rejects.toThrow(new Error('Internal Server Error')); }); }); describe('sendBlockchainAddressRegistration', () => { @@ -870,10 +827,7 @@ describe('ReputationOracleGateway', () => { refreshToken: 'token', }; await expect(service.sendRefreshToken(command)).rejects.toThrow( - new HttpException( - 'Internal Server Error', - HttpStatus.INTERNAL_SERVER_ERROR, - ), + new Error('Internal Server Error'), ); }); }); diff --git a/packages/apps/human-app/server/src/modules/h-captcha/spec/h-captcha.service.spec.ts b/packages/apps/human-app/server/src/modules/h-captcha/spec/h-captcha.service.spec.ts index 08ec304388..4f3a735fe7 100644 --- a/packages/apps/human-app/server/src/modules/h-captcha/spec/h-captcha.service.spec.ts +++ b/packages/apps/human-app/server/src/modules/h-captcha/spec/h-captcha.service.spec.ts @@ -121,7 +121,7 @@ describe('HCaptchaService', () => { .spyOn(hCaptchaVerifyGateway, 'sendTokenToVerify') .mockResolvedValue(apiResponse); - await expect(service.verifyToken(command)).rejects.toThrowError( + await expect(service.verifyToken(command)).rejects.toThrow( errorMessageFixture, ); }); @@ -135,7 +135,7 @@ describe('HCaptchaService', () => { .spyOn(hCaptchaVerifyGateway, 'sendTokenToVerify') .mockResolvedValue(apiResponse); - await expect(service.verifyToken(command)).rejects.toThrowError( + await expect(service.verifyToken(command)).rejects.toThrow( errorMessageFixture, ); }); diff --git a/packages/apps/job-launcher/client/package.json b/packages/apps/job-launcher/client/package.json index b0a21766a5..24fc2a1abe 100644 --- a/packages/apps/job-launcher/client/package.json +++ b/packages/apps/job-launcher/client/package.json @@ -6,7 +6,7 @@ "dependencies": { "@emotion/react": "^11.10.5", "@emotion/styled": "^11.10.5", - "@hcaptcha/react-hcaptcha": "^1.10.1", + "@hcaptcha/react-hcaptcha": "^1.14.0", "@human-protocol/sdk": "workspace:*", "@mui/icons-material": "^7.0.1", "@mui/lab": "^5.0.0-alpha.141", diff --git a/packages/apps/job-launcher/server/package.json b/packages/apps/job-launcher/server/package.json index ae9410ca26..5bf4ee45c4 100644 --- a/packages/apps/job-launcher/server/package.json +++ b/packages/apps/job-launcher/server/package.json @@ -81,7 +81,7 @@ "@nestjs/testing": "^10.4.6", "@types/bcrypt": "^5.0.2", "@types/express": "^4.17.13", - "@types/jest": "29.5.12", + "@types/jest": "30.0.0", "@types/node": "22.10.5", "@types/xml2js": "0.4.14", "@types/zxcvbn": "4.4.5", @@ -91,7 +91,7 @@ "eslint-config-prettier": "^9.1.0", "eslint-plugin-jest": "^28.9.0", "eslint-plugin-prettier": "^5.2.1", - "jest": "29.7.0", + "jest": "30.2.0", "prettier": "^3.4.2", "source-map-support": "^0.5.20", "ts-jest": "29.2.5", diff --git a/packages/apps/job-launcher/server/src/common/config/env-schema.ts b/packages/apps/job-launcher/server/src/common/config/env-schema.ts index e7fd7cbc95..98b5204cb4 100644 --- a/packages/apps/job-launcher/server/src/common/config/env-schema.ts +++ b/packages/apps/job-launcher/server/src/common/config/env-schema.ts @@ -27,6 +27,7 @@ export const envValidator = Joi.object({ WEB3_ENV: Joi.string(), WEB3_PRIVATE_KEY: Joi.string().required(), GAS_PRICE_MULTIPLIER: Joi.number(), + APPROVE_AMOUNT_USD: Joi.number(), REPUTATION_ORACLE_ADDRESS: Joi.string().required(), REPUTATION_ORACLES: Joi.string().required(), CVAT_EXCHANGE_ORACLE_ADDRESS: Joi.string().required(), diff --git a/packages/apps/job-launcher/server/src/common/config/web3-config.service.ts b/packages/apps/job-launcher/server/src/common/config/web3-config.service.ts index 323833a600..f5a5ee8742 100644 --- a/packages/apps/job-launcher/server/src/common/config/web3-config.service.ts +++ b/packages/apps/job-launcher/server/src/common/config/web3-config.service.ts @@ -110,4 +110,8 @@ export class Web3ConfigService { 'AUDINO_RECORDING_ORACLE_ADDRESS', ); } + + get approveAmountUsd(): number { + return this.configService.get('APPROVE_AMOUNT_USD', 0); + } } diff --git a/packages/apps/job-launcher/server/src/common/constants/index.ts b/packages/apps/job-launcher/server/src/common/constants/index.ts index 3518b69d51..72ada66583 100644 --- a/packages/apps/job-launcher/server/src/common/constants/index.ts +++ b/packages/apps/job-launcher/server/src/common/constants/index.ts @@ -37,8 +37,6 @@ export const CANCEL_JOB_STATUSES = [ JobStatus.PAID, JobStatus.FAILED, JobStatus.LAUNCHED, - JobStatus.FUNDED, - JobStatus.CREATED, JobStatus.PARTIAL, ]; diff --git a/packages/apps/job-launcher/server/src/common/constants/tokens.ts b/packages/apps/job-launcher/server/src/common/constants/tokens.ts index 7df587babf..bb20d188ed 100644 --- a/packages/apps/job-launcher/server/src/common/constants/tokens.ts +++ b/packages/apps/job-launcher/server/src/common/constants/tokens.ts @@ -1,56 +1,63 @@ import { ChainId, NETWORKS } from '@human-protocol/sdk'; import { EscrowFundToken } from '../enums/job'; +import { IERC20Token } from '../interfaces/web3'; export const TOKEN_ADDRESSES: { [chainId in ChainId]?: { - [token in EscrowFundToken]?: { - address: string; - decimals: number; - }; + [token in EscrowFundToken]?: IERC20Token; }; } = { [ChainId.MAINNET]: { [EscrowFundToken.HMT]: { address: NETWORKS[ChainId.MAINNET]!.hmtAddress, decimals: 18, + symbol: EscrowFundToken.HMT, }, [EscrowFundToken.USDT]: { address: '0xdAC17F958D2ee523a2206206994597C13D831ec7', decimals: 6, + symbol: EscrowFundToken.USDT, }, [EscrowFundToken.USDC]: { address: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', decimals: 6, + symbol: EscrowFundToken.USDC, }, }, [ChainId.SEPOLIA]: { [EscrowFundToken.HMT]: { address: NETWORKS[ChainId.SEPOLIA]!.hmtAddress, decimals: 18, + symbol: EscrowFundToken.HMT, }, [EscrowFundToken.USDT]: { address: '0xaA8E23Fb1079EA71e0a56F48a2aA51851D8433D0', decimals: 6, + symbol: EscrowFundToken.USDT, }, [EscrowFundToken.USDC]: { address: '0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238', decimals: 6, + symbol: EscrowFundToken.USDC, }, }, [ChainId.BSC_MAINNET]: { [EscrowFundToken.HMT]: { address: NETWORKS[ChainId.BSC_MAINNET]!.hmtAddress, decimals: 18, + symbol: EscrowFundToken.HMT, }, }, [ChainId.POLYGON]: { [EscrowFundToken.HMT]: { address: NETWORKS[ChainId.POLYGON]!.hmtAddress, decimals: 18, + symbol: EscrowFundToken.HMT, }, [EscrowFundToken.USDT0]: { address: '0xc2132D05D31c914a87C6611C10748AEb04B58e8F', decimals: 6, + symbol: EscrowFundToken.USDT0, }, // Disabled // [EscrowFundToken.USDC]: { @@ -62,22 +69,26 @@ export const TOKEN_ADDRESSES: { [EscrowFundToken.HMT]: { address: NETWORKS[ChainId.POLYGON_AMOY]!.hmtAddress, decimals: 18, + symbol: EscrowFundToken.HMT, }, [EscrowFundToken.USDC]: { address: '0x41e94eb019c0762f9bfcf9fb1e58725bfb0e7582', decimals: 6, + symbol: EscrowFundToken.USDC, }, }, [ChainId.LOCALHOST]: { [EscrowFundToken.HMT]: { address: NETWORKS[ChainId.LOCALHOST]!.hmtAddress, decimals: 18, + symbol: EscrowFundToken.HMT, }, }, [ChainId.BSC_TESTNET]: { [EscrowFundToken.HMT]: { address: NETWORKS[ChainId.BSC_TESTNET]!.hmtAddress, decimals: 18, + symbol: EscrowFundToken.HMT, }, }, }; diff --git a/packages/apps/job-launcher/server/src/common/enums/cron-job.ts b/packages/apps/job-launcher/server/src/common/enums/cron-job.ts index 8136a7bde7..6cb71352ec 100644 --- a/packages/apps/job-launcher/server/src/common/enums/cron-job.ts +++ b/packages/apps/job-launcher/server/src/common/enums/cron-job.ts @@ -1,8 +1,6 @@ export enum CronJobType { ContentModeration = 'content-moderation', CreateEscrow = 'create-escrow', - SetupEscrow = 'setup-escrow', - FundEscrow = 'fund-escrow', CancelEscrow = 'cancel-escrow', ProcessPendingWebhook = 'process-pending-webhook', SyncJobStatuses = 'sync-job-statuses', diff --git a/packages/apps/job-launcher/server/src/common/enums/job.ts b/packages/apps/job-launcher/server/src/common/enums/job.ts index 7a700cbb59..bfba218ae5 100644 --- a/packages/apps/job-launcher/server/src/common/enums/job.ts +++ b/packages/apps/job-launcher/server/src/common/enums/job.ts @@ -3,8 +3,6 @@ export enum JobStatus { UNDER_MODERATION = 'under_moderation', MODERATION_PASSED = 'moderation_passed', POSSIBLE_ABUSE_IN_REVIEW = 'possible_abuse_in_review', - CREATED = 'created', - FUNDED = 'funded', LAUNCHED = 'launched', PARTIAL = 'partial', COMPLETED = 'completed', diff --git a/packages/apps/job-launcher/server/src/common/interceptors/transform-enum.interceptor.spec.ts b/packages/apps/job-launcher/server/src/common/interceptors/transform-enum.interceptor.spec.ts index bc47543f2c..362b6ce3f4 100644 --- a/packages/apps/job-launcher/server/src/common/interceptors/transform-enum.interceptor.spec.ts +++ b/packages/apps/job-launcher/server/src/common/interceptors/transform-enum.interceptor.spec.ts @@ -102,7 +102,7 @@ describe('TransformEnumInterceptor', () => { status: 'paid', userType: 'operator', }); - expect(callHandler.handle).toBeCalled(); // Ensure the handler is called + expect(callHandler.handle).toHaveBeenCalled(); // Ensure the handler is called }); it('should throw an error if the query value is not a valid enum', async () => { @@ -143,7 +143,7 @@ describe('TransformEnumInterceptor', () => { amount: 5, address: '0xCf88b3f1992458C2f5a229573c768D0E9F70C44e', }); - expect(callHandler.handle).toBeCalled(); // Ensure the handler is called + expect(callHandler.handle).toHaveBeenCalled(); // Ensure the handler is called }); it('should throw an error if the value is not a valid enum', async () => { @@ -182,7 +182,7 @@ describe('TransformEnumInterceptor', () => { expect(request.body.address).toBe( '0xCf88b3f1992458C2f5a229573c768D0E9F70C44e', ); // Non-enum string should remain unchanged - expect(callHandler.handle).toBeCalled(); + expect(callHandler.handle).toHaveBeenCalled(); }); it('should handle nested objects with enums', async () => { diff --git a/packages/apps/job-launcher/server/src/common/interfaces/web3.ts b/packages/apps/job-launcher/server/src/common/interfaces/web3.ts new file mode 100644 index 0000000000..4d589c057d --- /dev/null +++ b/packages/apps/job-launcher/server/src/common/interfaces/web3.ts @@ -0,0 +1,7 @@ +import { EscrowFundToken } from '../enums/job'; + +export interface IERC20Token { + address: string; + decimals: number; + symbol: EscrowFundToken; +} diff --git a/packages/apps/job-launcher/server/src/common/utils/signature.spec.ts b/packages/apps/job-launcher/server/src/common/utils/signature.spec.ts index ca5ed5620f..c89716880d 100644 --- a/packages/apps/job-launcher/server/src/common/utils/signature.spec.ts +++ b/packages/apps/job-launcher/server/src/common/utils/signature.spec.ts @@ -1,6 +1,6 @@ import { MOCK_ADDRESS, MOCK_PRIVATE_KEY } from '../../../test/constants'; import { ErrorSignature } from '../constants/errors'; -import { ConflictError } from '../errors'; +import { ConflictError, ValidationError } from '../errors'; import { recoverSigner, signMessage, verifySignature } from './signature'; jest.doMock('ethers', () => { @@ -38,7 +38,7 @@ describe('Signature utility', () => { expect(() => { verifySignature(message, invalidSignature, [invalidAddress]); - }).toThrow(new ConflictError(ErrorSignature.SignatureNotVerified)); + }).toThrow(new ValidationError(ErrorSignature.SignatureNotVerified)); }); it('should throw conflict exception for invalid signature', () => { @@ -47,7 +47,7 @@ describe('Signature utility', () => { expect(() => { verifySignature(message, invalidSignature, [MOCK_ADDRESS]); - }).toThrow(new ConflictError(ErrorSignature.InvalidSignature)); + }).toThrow(new ValidationError(ErrorSignature.InvalidSignature)); }); }); @@ -67,7 +67,7 @@ describe('Signature utility', () => { expect(() => { recoverSigner(message, invalidSignature); - }).toThrow(new ConflictError(ErrorSignature.InvalidSignature)); + }).toThrow(new ValidationError(ErrorSignature.InvalidSignature)); }); it('should stringify message object if it is not already a string', async () => { diff --git a/packages/apps/job-launcher/server/src/database/migrations/1763628908882-removeUnusedTypes.ts b/packages/apps/job-launcher/server/src/database/migrations/1763628908882-removeUnusedTypes.ts new file mode 100644 index 0000000000..d7e583e960 --- /dev/null +++ b/packages/apps/job-launcher/server/src/database/migrations/1763628908882-removeUnusedTypes.ts @@ -0,0 +1,113 @@ +import { MigrationInterface, QueryRunner } from 'typeorm'; + +export class RemoveUnusedTypes1763628908882 implements MigrationInterface { + name = 'RemoveUnusedTypes1763628908882'; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query(` + DELETE FROM "hmt"."cron-jobs" + WHERE "cron_job_type" IN ('setup-escrow', 'fund-escrow') + `); + await queryRunner.query(` + ALTER TYPE "hmt"."jobs_status_enum" + RENAME TO "jobs_status_enum_old" + `); + await queryRunner.query(` + CREATE TYPE "hmt"."jobs_status_enum" AS ENUM( + 'paid', + 'under_moderation', + 'moderation_passed', + 'possible_abuse_in_review', + 'launched', + 'partial', + 'completed', + 'failed', + 'to_cancel', + 'canceling', + 'canceled' + ) + `); + await queryRunner.query(` + ALTER TABLE "hmt"."jobs" + ALTER COLUMN "status" TYPE "hmt"."jobs_status_enum" USING "status"::"text"::"hmt"."jobs_status_enum" + `); + await queryRunner.query(` + DROP TYPE "hmt"."jobs_status_enum_old" + `); + await queryRunner.query(` + ALTER TYPE "hmt"."cron-jobs_cron_job_type_enum" + RENAME TO "cron-jobs_cron_job_type_enum_old" + `); + await queryRunner.query(` + CREATE TYPE "hmt"."cron-jobs_cron_job_type_enum" AS ENUM( + 'content-moderation', + 'create-escrow', + 'cancel-escrow', + 'process-pending-webhook', + 'sync-job-statuses', + 'abuse' + ) + `); + await queryRunner.query(` + ALTER TABLE "hmt"."cron-jobs" + ALTER COLUMN "cron_job_type" TYPE "hmt"."cron-jobs_cron_job_type_enum" USING "cron_job_type"::"text"::"hmt"."cron-jobs_cron_job_type_enum" + `); + await queryRunner.query(` + DROP TYPE "hmt"."cron-jobs_cron_job_type_enum_old" + `); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query(` + CREATE TYPE "hmt"."cron-jobs_cron_job_type_enum_old" AS ENUM( + 'abuse', + 'cancel-escrow', + 'content-moderation', + 'create-escrow', + 'fund-escrow', + 'process-pending-webhook', + 'setup-escrow', + 'sync-job-statuses' + ) + `); + await queryRunner.query(` + ALTER TABLE "hmt"."cron-jobs" + ALTER COLUMN "cron_job_type" TYPE "hmt"."cron-jobs_cron_job_type_enum_old" USING "cron_job_type"::"text"::"hmt"."cron-jobs_cron_job_type_enum_old" + `); + await queryRunner.query(` + DROP TYPE "hmt"."cron-jobs_cron_job_type_enum" + `); + await queryRunner.query(` + ALTER TYPE "hmt"."cron-jobs_cron_job_type_enum_old" + RENAME TO "cron-jobs_cron_job_type_enum" + `); + await queryRunner.query(` + CREATE TYPE "hmt"."jobs_status_enum_old" AS ENUM( + 'canceled', + 'canceling', + 'completed', + 'created', + 'failed', + 'funded', + 'launched', + 'moderation_passed', + 'paid', + 'partial', + 'possible_abuse_in_review', + 'to_cancel', + 'under_moderation' + ) + `); + await queryRunner.query(` + ALTER TABLE "hmt"."jobs" + ALTER COLUMN "status" TYPE "hmt"."jobs_status_enum_old" USING "status"::"text"::"hmt"."jobs_status_enum_old" + `); + await queryRunner.query(` + DROP TYPE "hmt"."jobs_status_enum" + `); + await queryRunner.query(` + ALTER TYPE "hmt"."jobs_status_enum_old" + RENAME TO "jobs_status_enum" + `); + } +} diff --git a/packages/apps/job-launcher/server/src/modules/cron-job/cron-job.service.spec.ts b/packages/apps/job-launcher/server/src/modules/cron-job/cron-job.service.spec.ts index e7121a703a..b84aedfc8a 100644 --- a/packages/apps/job-launcher/server/src/modules/cron-job/cron-job.service.spec.ts +++ b/packages/apps/job-launcher/server/src/modules/cron-job/cron-job.service.spec.ts @@ -16,7 +16,6 @@ import { HttpService } from '@nestjs/axios'; import { ConfigService } from '@nestjs/config'; import { Test, TestingModule } from '@nestjs/testing'; import { ethers } from 'ethers'; -import { DeepPartial } from 'typeorm'; import { MOCK_ADDRESS, MOCK_EXCHANGE_ORACLE_ADDRESS, @@ -48,7 +47,6 @@ import { GCVContentModerationService } from '../content-moderation/gcv-content-m import { JobEntity } from '../job/job.entity'; import { JobRepository } from '../job/job.repository'; import { JobService } from '../job/job.service'; -import { CvatManifestDto } from '../manifest/manifest.dto'; import { ManifestService } from '../manifest/manifest.service'; import { PaymentRepository } from '../payment/payment.repository'; import { PaymentService } from '../payment/payment.service'; @@ -438,246 +436,6 @@ describe('CronJobService', () => { }); }); - describe('setupEscrowCronJob', () => { - let setupEscrowMock: any; - let cronJobEntityMock: Partial; - let jobEntityMock1: Partial, jobEntityMock2: Partial; - - beforeEach(() => { - cronJobEntityMock = { - cronJobType: CronJobType.SetupEscrow, - createdAt: new Date(), - }; - - jobEntityMock1 = { - status: JobStatus.CREATED, - fundAmount: 100, - userId: 1, - id: 1, - manifestUrl: MOCK_FILE_URL, - manifestHash: MOCK_FILE_HASH, - escrowAddress: MOCK_ADDRESS, - chainId: ChainId.LOCALHOST, - retriesCount: 1, - }; - - jobEntityMock2 = { - status: JobStatus.CREATED, - fundAmount: 100, - userId: 1, - id: 1, - manifestUrl: MOCK_FILE_URL, - manifestHash: MOCK_FILE_HASH, - escrowAddress: MOCK_ADDRESS, - chainId: ChainId.LOCALHOST, - retriesCount: 1, - }; - - jest - .spyOn(jobRepository, 'findByStatus') - .mockResolvedValue([jobEntityMock1 as any, jobEntityMock2 as any]); - - setupEscrowMock = jest.spyOn(jobService, 'setupEscrow'); - setupEscrowMock.mockResolvedValue(true); - - jest.spyOn(service, 'isCronJobRunning').mockResolvedValue(false); - - jest.spyOn(repository, 'findOneByType').mockResolvedValue(null); - jest - .spyOn(repository, 'createUnique') - .mockResolvedValue(cronJobEntityMock as any); - }); - - afterEach(() => { - jest.restoreAllMocks(); - }); - - it('should not run if the cron job is already running', async () => { - jest.spyOn(service, 'isCronJobRunning').mockResolvedValueOnce(true); - - await service.setupEscrowCronJob(); - - expect(setupEscrowMock).not.toHaveBeenCalled(); - }); - - it('should create cron job entity on database to lock', async () => { - jest - .spyOn(service, 'startCronJob') - .mockResolvedValueOnce(cronJobEntityMock as any); - - await service.setupEscrowCronJob(); - - expect(service.startCronJob).toHaveBeenCalledWith( - CronJobType.SetupEscrow, - ); - }); - - it('should run setupEscrow for all of the jobs with status LAUNCHING', async () => { - await service.setupEscrowCronJob(); - - expect(setupEscrowMock).toHaveBeenCalledTimes(2); - }); - - it('should increase retriesCount by 1, if the job setup fails', async () => { - setupEscrowMock.mockRejectedValueOnce(new Error('setup failed')); - - await service.setupEscrowCronJob(); - - expect(setupEscrowMock).toHaveBeenCalledTimes(2); - expect(jobEntityMock1.retriesCount).toBe(2); - expect(jobEntityMock2.retriesCount).toBe(1); - }); - - it('should mark job as failed if the job setup fails more than max retries count', async () => { - setupEscrowMock.mockRejectedValueOnce(new Error('setup failed')); - jobEntityMock1.retriesCount = MOCK_MAX_RETRY_COUNT; - - await service.setupEscrowCronJob(); - - expect(setupEscrowMock).toHaveBeenCalledTimes(2); - expect(jobEntityMock1.status).toBe(JobStatus.FAILED); - expect(jobEntityMock2.status).toBe(JobStatus.CREATED); - }); - - it('should complete the cron job entity on database to unlock', async () => { - jest - .spyOn(service, 'completeCronJob') - .mockResolvedValueOnce(cronJobEntityMock as any); - - await service.setupEscrowCronJob(); - - expect(service.completeCronJob).toHaveBeenCalledWith({ - cronJobType: CronJobType.SetupEscrow, - createdAt: expect.any(Date), - }); - }); - }); - - describe('fundEscrowCronJob', () => { - let fundEscrowMock: any; - let cronJobEntityMock: Partial; - let jobEntityMock1: Partial, jobEntityMock2: Partial; - - beforeEach(() => { - cronJobEntityMock = { - cronJobType: CronJobType.FundEscrow, - createdAt: new Date(), - }; - - jobEntityMock1 = { - status: JobStatus.FUNDED, - fundAmount: 100, - userId: 1, - id: 1, - manifestUrl: MOCK_FILE_URL, - manifestHash: MOCK_FILE_HASH, - escrowAddress: MOCK_ADDRESS, - chainId: ChainId.LOCALHOST, - retriesCount: 1, - }; - - jobEntityMock2 = { - status: JobStatus.FUNDED, - fundAmount: 100, - userId: 1, - id: 1, - manifestUrl: MOCK_FILE_URL, - manifestHash: MOCK_FILE_HASH, - escrowAddress: MOCK_ADDRESS, - chainId: ChainId.LOCALHOST, - retriesCount: 1, - }; - - jest - .spyOn(jobRepository, 'findByStatus') - .mockResolvedValue([jobEntityMock1 as any, jobEntityMock2 as any]); - - fundEscrowMock = jest.spyOn(jobService, 'fundEscrow'); - fundEscrowMock.mockResolvedValue(true); - - jest.spyOn(service, 'isCronJobRunning').mockResolvedValue(false); - - const cvatManifestMock: DeepPartial = { - data: { - data_url: MOCK_FILE_URL, - }, - annotation: { - type: CvatJobType.IMAGE_POINTS, - }, - }; - jest - .spyOn(storageService, 'downloadJsonLikeData') - .mockResolvedValue(cvatManifestMock); - - jest.spyOn(repository, 'findOneByType').mockResolvedValue(null); - jest - .spyOn(repository, 'createUnique') - .mockResolvedValue(cronJobEntityMock as any); - }); - - afterEach(() => { - jest.restoreAllMocks(); - }); - - it('should not run if the cron job is already running', async () => { - jest.spyOn(service, 'isCronJobRunning').mockResolvedValueOnce(true); - - await service.fundEscrowCronJob(); - - expect(fundEscrowMock).not.toHaveBeenCalled(); - }); - - it('should create cron job entity on database to lock', async () => { - jest - .spyOn(service, 'startCronJob') - .mockResolvedValueOnce(cronJobEntityMock as any); - - await service.fundEscrowCronJob(); - - expect(service.startCronJob).toHaveBeenCalledWith(CronJobType.FundEscrow); - }); - - it('should run fundEscrow for all of the jobs with status FUNDING, and trigger webhook', async () => { - await service.fundEscrowCronJob(); - - expect(fundEscrowMock).toHaveBeenCalledTimes(2); - }); - - it('should increase retriesCount by 1, if the job fund fails', async () => { - fundEscrowMock.mockRejectedValueOnce(new Error('fund failed')); - - await service.fundEscrowCronJob(); - - expect(fundEscrowMock).toHaveBeenCalledTimes(2); - expect(jobEntityMock1.retriesCount).toBe(2); - expect(jobEntityMock2.retriesCount).toBe(1); - }); - - it('should mark job as failed if the job fund fails more than max retries count', async () => { - fundEscrowMock.mockRejectedValueOnce(new Error('fund failed')); - jobEntityMock1.retriesCount = MOCK_MAX_RETRY_COUNT; - - await service.fundEscrowCronJob(); - - expect(fundEscrowMock).toHaveBeenCalledTimes(2); - expect(jobEntityMock1.status).toBe(JobStatus.FAILED); - expect(jobEntityMock2.status).toBe(JobStatus.FUNDED); - }); - - it('should complete the cron job entity on database to unlock', async () => { - jest - .spyOn(service, 'completeCronJob') - .mockResolvedValueOnce(cronJobEntityMock as any); - - await service.fundEscrowCronJob(); - - expect(service.completeCronJob).toHaveBeenCalledWith({ - cronJobType: CronJobType.FundEscrow, - createdAt: expect.any(Date), - }); - }); - }); - describe('cancelCronJob', () => { let findJobMock: any, cronJobEntityMock: Partial, diff --git a/packages/apps/job-launcher/server/src/modules/cron-job/cron-job.service.ts b/packages/apps/job-launcher/server/src/modules/cron-job/cron-job.service.ts index 2a0b4c4e24..37022526eb 100644 --- a/packages/apps/job-launcher/server/src/modules/cron-job/cron-job.service.ts +++ b/packages/apps/job-launcher/server/src/modules/cron-job/cron-job.service.ts @@ -142,7 +142,7 @@ export class CronJobService { try { await this.jobService.createEscrow(jobEntity); } catch (error) { - this.logger.error('Error in moderateContentCronJob', { + this.logger.error('Error in createEscrowCronJob', { jobId: jobEntity.id, error, }); @@ -160,86 +160,6 @@ export class CronJobService { await this.completeCronJob(cronJob); } - @Cron('1-59/2 * * * *') - public async setupEscrowCronJob() { - const isCronJobRunning = await this.isCronJobRunning( - CronJobType.SetupEscrow, - ); - - if (isCronJobRunning) { - return; - } - - this.logger.debug('Setup escrow START'); - const cronJob = await this.startCronJob(CronJobType.SetupEscrow); - - try { - const jobEntities = await this.jobRepository.findByStatus( - JobStatus.FUNDED, - ); - - for (const jobEntity of jobEntities) { - try { - await this.jobService.setupEscrow(jobEntity); - } catch (error) { - this.logger.error('Error setting up escrow', { - jobId: jobEntity.id, - error, - }); - await this.jobService.handleProcessJobFailure( - jobEntity, - ErrorEscrow.NotSetup, - ); - } - } - } catch (error) { - this.logger.error('Error in setupEscrow cron job', error); - } - - this.logger.debug('Setup escrow STOP'); - await this.completeCronJob(cronJob); - } - - @Cron('*/2 * * * *') - public async fundEscrowCronJob() { - const isCronJobRunning = await this.isCronJobRunning( - CronJobType.FundEscrow, - ); - - if (isCronJobRunning) { - return; - } - - this.logger.debug('Fund escrow START'); - const cronJob = await this.startCronJob(CronJobType.FundEscrow); - - try { - const jobEntities = await this.jobRepository.findByStatus( - JobStatus.CREATED, - ); - - for (const jobEntity of jobEntities) { - try { - await this.jobService.fundEscrow(jobEntity); - } catch (error) { - this.logger.error('Error funding escrow', { - jobId: jobEntity.id, - error, - }); - await this.jobService.handleProcessJobFailure( - jobEntity, - ErrorEscrow.NotFunded, - ); - } - } - } catch (error) { - this.logger.error('Error in fundEscrow cron job', error); - } - - this.logger.debug('Fund escrow STOP'); - await this.completeCronJob(cronJob); - } - @Cron('*/2 * * * *') public async cancelCronJob() { const isCronJobRunning = await this.isCronJobRunning( @@ -471,7 +391,7 @@ export class CronJobService { chainId: network.chainId, statuses, from, - launcher: this.web3Service.getOperatorAddress(), + launcher: await this.web3Service.getOperatorAddress(), first: 100, skip, }); diff --git a/packages/apps/job-launcher/server/src/modules/job/job.repository.ts b/packages/apps/job-launcher/server/src/modules/job/job.repository.ts index 8c3828a48b..31a644e310 100644 --- a/packages/apps/job-launcher/server/src/modules/job/job.repository.ts +++ b/packages/apps/job-launcher/server/src/modules/job/job.repository.ts @@ -113,8 +113,6 @@ export class JobRepository extends BaseRepository { JobStatus.UNDER_MODERATION, JobStatus.MODERATION_PASSED, JobStatus.POSSIBLE_ABUSE_IN_REVIEW, - JobStatus.CREATED, - JobStatus.FUNDED, ]; break; case JobStatusFilter.CANCELED: diff --git a/packages/apps/job-launcher/server/src/modules/job/job.service.spec.ts b/packages/apps/job-launcher/server/src/modules/job/job.service.spec.ts index 06a12845e3..b0c635ffd0 100644 --- a/packages/apps/job-launcher/server/src/modules/job/job.service.spec.ts +++ b/packages/apps/job-launcher/server/src/modules/job/job.service.spec.ts @@ -12,7 +12,7 @@ import { NETWORKS, } from '@human-protocol/sdk'; import { Test } from '@nestjs/testing'; -import { ethers, Wallet, ZeroAddress } from 'ethers'; +import { ethers, ZeroAddress } from 'ethers'; import { createSignerMock } from '../../../test/fixtures/web3'; import { ServerConfigService } from '../../common/config/server-config.service'; import { ErrorEscrow, ErrorJob } from '../../common/constants/errors'; @@ -27,11 +27,7 @@ import { JobStatusFilter, } from '../../common/enums/job'; import { PaymentCurrency, PaymentType } from '../../common/enums/payment'; -import { - EventType, - OracleType, - WebhookStatus, -} from '../../common/enums/webhook'; +import { EventType, OracleType } from '../../common/enums/webhook'; import { ConflictError, NotFoundError, @@ -827,181 +823,126 @@ describe('JobService', () => { escrowAddress: null, }); - const escrowAddress = faker.finance.ethereumAddress(); - mockedEscrowClient.build.mockResolvedValueOnce({ - createEscrow: jest.fn().mockResolvedValueOnce(escrowAddress), - } as unknown as EscrowClient); - - mockWeb3Service.calculateGasPrice.mockResolvedValueOnce(1n); - - const result = await jobService.createEscrow(jobEntity); + const signer = createSignerMock(); + mockWeb3Service.getSigner.mockReturnValueOnce(signer); - expect(mockWeb3Service.getSigner).toHaveBeenCalledWith(jobEntity.chainId); - expect(mockWeb3Service.calculateGasPrice).toHaveBeenCalledWith( - jobEntity.chainId, - ); - expect(result.status).toBe(JobStatus.CREATED); - expect(result.escrowAddress).toBe(escrowAddress); - expect(mockJobRepository.updateOne).toHaveBeenCalledWith({ - ...jobEntity, - status: JobStatus.CREATED, - escrowAddress, - }); - }); - - it('should throw if escrow address is not returned', async () => { - const jobEntity = createJobEntity({ - status: JobStatus.MODERATION_PASSED, - token: EscrowFundToken.HMT, - escrowAddress: null, - }); + const getOracleFeeSpy = jest + .spyOn(jobService as any, 'getOracleFee') + .mockResolvedValue(1n); + const escrowAddress = faker.finance.ethereumAddress(); + const createFundAndSetupEscrowMock = jest + .fn() + .mockResolvedValueOnce(escrowAddress); mockedEscrowClient.build.mockResolvedValueOnce({ - createEscrow: jest.fn().mockResolvedValueOnce(undefined), + createFundAndSetupEscrow: createFundAndSetupEscrowMock, } as unknown as EscrowClient); + mockWeb3Service.ensureEscrowAllowance.mockResolvedValueOnce(undefined); mockWeb3Service.calculateGasPrice.mockResolvedValueOnce(1n); - await expect(jobService.createEscrow(jobEntity)).rejects.toThrow( - new ConflictError(ErrorEscrow.NotCreated), + const token = (TOKEN_ADDRESSES[jobEntity.chainId as ChainId] ?? {})[ + jobEntity.token as EscrowFundToken + ]!; + const expectedWeiAmount = ethers.parseUnits( + jobEntity.fundAmount.toString(), + token.decimals, ); - }); - }); - - describe('setupEscrow', () => { - it('should setup escrow and update job status', async () => { - const jobEntity = createJobEntity({ - status: JobStatus.FUNDED, - }); - - const escrowClientMock = { - setup: jest.fn().mockResolvedValueOnce(undefined), - }; - mockedEscrowClient.build.mockResolvedValueOnce( - escrowClientMock as unknown as EscrowClient, - ); - - mockWeb3Service.calculateGasPrice.mockResolvedValueOnce(1n); - mockedKVStoreUtils.get.mockImplementation(async (_chainId, address) => { - switch (address) { - case jobEntity.reputationOracle: - return '1'; - case jobEntity.recordingOracle: - return '2'; - case jobEntity.exchangeOracle: - return '3'; - default: - return ''; - } - }); - const result = await jobService.setupEscrow(jobEntity); + const result = await jobService.createEscrow(jobEntity); expect(mockWeb3Service.getSigner).toHaveBeenCalledWith(jobEntity.chainId); + expect(mockedEscrowClient.build).toHaveBeenCalledWith(signer); + expect(mockWeb3Service.ensureEscrowAllowance).toHaveBeenCalledWith( + jobEntity.chainId, + token, + expectedWeiAmount, + NETWORKS[jobEntity.chainId as ChainId]!.factoryAddress, + ); expect(mockWeb3Service.calculateGasPrice).toHaveBeenCalledWith( jobEntity.chainId, ); - expect(escrowClientMock.setup).toHaveBeenCalledWith( - jobEntity.escrowAddress, - { + expect(createFundAndSetupEscrowMock).toHaveBeenCalledWith( + token.address, + expectedWeiAmount, + jobEntity.userId.toString(), + expect.objectContaining({ + recordingOracle: jobEntity.recordingOracle, + recordingOracleFee: 1n, reputationOracle: jobEntity.reputationOracle, reputationOracleFee: 1n, - recordingOracle: jobEntity.recordingOracle, - recordingOracleFee: 2n, exchangeOracle: jobEntity.exchangeOracle, - exchangeOracleFee: 3n, + exchangeOracleFee: 1n, manifest: jobEntity.manifestUrl, manifestHash: jobEntity.manifestHash, - }, + }), { gasPrice: 1n }, ); + expect(result.status).toBe(JobStatus.LAUNCHED); + expect(result.escrowAddress).toBe(escrowAddress); expect(mockJobRepository.updateOne).toHaveBeenCalledWith({ ...jobEntity, status: JobStatus.LAUNCHED, + escrowAddress, }); - expect(result.status).toBe(JobStatus.LAUNCHED); - expect(mockWebhookRepository.createUnique).toHaveBeenCalledWith({ - escrowAddress: jobEntity.escrowAddress, - chainId: jobEntity.chainId, - eventType: EventType.ESCROW_CREATED, - oracleType: jobEntity.requestType, - oracleAddress: jobEntity.exchangeOracle, - hasSignature: true, - status: WebhookStatus.PENDING, - retriesCount: 0, - waitUntil: expect.any(Date), - }); + + getOracleFeeSpy.mockRestore(); }); - it('should throw if escrowClient setup fails', async () => { + it('should throw if escrow address is not returned', async () => { const jobEntity = createJobEntity({ - status: JobStatus.FUNDED, + status: JobStatus.MODERATION_PASSED, + token: EscrowFundToken.HMT, + escrowAddress: null, }); - const signer = createSignerMock() as unknown as Wallet; + const signer = createSignerMock(); mockWeb3Service.getSigner.mockReturnValueOnce(signer); - const escrowClientMock = { - setup: jest.fn().mockRejectedValueOnce(new Error('Network error')), - }; - mockedEscrowClient.build.mockResolvedValueOnce( - escrowClientMock as unknown as EscrowClient, - ); - - mockWeb3Service.calculateGasPrice.mockResolvedValueOnce(1n); - mockedKVStoreUtils.get.mockResolvedValueOnce('1'); - - await expect(jobService.setupEscrow(jobEntity)).rejects.toThrow( - 'Network error', - ); - }); - }); + const getOracleFeeSpy = jest + .spyOn(jobService as any, 'getOracleFee') + .mockResolvedValue(1n); - describe('fundEscrow', () => { - it('should fund escrow with the correct amount and update status', async () => { - const jobEntityMock = createJobEntity({ - status: JobStatus.PAID, - token: EscrowFundToken.HMT, - }); - mockedKVStoreUtils.get.mockResolvedValueOnce('1'); + const createFundAndSetupEscrowMock = jest + .fn() + .mockResolvedValueOnce(undefined); mockedEscrowClient.build.mockResolvedValueOnce({ - fund: jest.fn().mockResolvedValueOnce(undefined), + createFundAndSetupEscrow: createFundAndSetupEscrowMock, } as unknown as EscrowClient); + mockWeb3Service.ensureEscrowAllowance.mockResolvedValueOnce(undefined); mockWeb3Service.calculateGasPrice.mockResolvedValueOnce(1n); - await jobService.fundEscrow(jobEntityMock); - - expect(mockWeb3Service.getSigner).toHaveBeenCalledWith( - jobEntityMock.chainId, + const token = (TOKEN_ADDRESSES[jobEntity.chainId as ChainId] ?? {})[ + jobEntity.token as EscrowFundToken + ]!; + const expectedWeiAmount = ethers.parseUnits( + jobEntity.fundAmount.toString(), + token.decimals, ); - expect(mockWeb3Service.calculateGasPrice).toHaveBeenCalledWith( - jobEntityMock.chainId, - ); - expect(mockJobRepository.updateOne).toHaveBeenCalledWith({ - ...jobEntityMock, - status: JobStatus.FUNDED, - }); - }); - - it('should throw if escrowClient fund fails', async () => { - const jobEntityMock = createJobEntity({ - status: JobStatus.PAID, - token: EscrowFundToken.HMT, - }); + const expectedFactoryAddress = + NETWORKS[jobEntity.chainId as ChainId]!.factoryAddress; - mockWeb3Service.getSigner.mockReturnValueOnce( - createSignerMock() as unknown as Wallet, + await expect(jobService.createEscrow(jobEntity)).rejects.toThrow( + new ConflictError(ErrorEscrow.NotCreated), ); - mockedEscrowClient.build.mockResolvedValueOnce({ - fund: jest.fn().mockRejectedValueOnce(new Error('Network error')), - } as unknown as EscrowClient); - mockWeb3Service.calculateGasPrice.mockResolvedValueOnce(1n); - - await expect(jobService.fundEscrow(jobEntityMock)).rejects.toThrow( - 'Network error', + expect(mockWeb3Service.ensureEscrowAllowance).toHaveBeenCalledWith( + jobEntity.chainId, + token, + expectedWeiAmount, + expectedFactoryAddress, + ); + expect(createFundAndSetupEscrowMock).toHaveBeenCalledWith( + token.address, + expectedWeiAmount, + jobEntity.userId.toString(), + expect.any(Object), + { gasPrice: 1n }, ); + expect(mockJobRepository.updateOne).not.toHaveBeenCalled(); + + getOracleFeeSpy.mockRestore(); }); }); @@ -1042,9 +983,7 @@ describe('JobService', () => { jobEntityMock.userId, jobEntityMock.id, ), - ).rejects.toThrow( - new ValidationError(ErrorJob.InvalidStatusCancellation), - ); + ).rejects.toThrow(new ConflictError(ErrorJob.InvalidStatusCancellation)); }); }); @@ -1093,9 +1032,7 @@ describe('JobService', () => { ChainId.POLYGON_AMOY, jobEntityMock.escrowAddress!, ), - ).rejects.toThrow( - new ValidationError(ErrorJob.InvalidStatusCancellation), - ); + ).rejects.toThrow(new ConflictError(ErrorJob.InvalidStatusCancellation)); expect(mockWeb3Service.validateChainId).toHaveBeenCalledWith( ChainId.POLYGON_AMOY, ); @@ -1505,7 +1442,7 @@ describe('JobService', () => { escrowAddress: '0x', eventData: { reason: faker.lorem.sentence() }, }), - ).rejects.toThrow(new ValidationError(ErrorJob.NotLaunched)); + ).rejects.toThrow(new ConflictError(ErrorJob.NotLaunched)); }); it('should throw an error if event data is missing', async () => { @@ -1572,7 +1509,7 @@ describe('JobService', () => { mockJobRepository.findOneByIdAndUserId.mockResolvedValueOnce(jobEntity); mockedEscrowUtils.getEscrow.mockResolvedValueOnce(getEscrowData); mockManifestService.downloadManifest.mockResolvedValueOnce(manifestMock); - const signer = createSignerMock() as unknown as Wallet; + const signer = createSignerMock(); mockWeb3Service.getSigner.mockReturnValueOnce(signer); const result = await jobService.getDetails( @@ -1601,7 +1538,7 @@ describe('JobService', () => { exchangeOracleAddress: jobEntity.exchangeOracle, recordingOracleAddress: jobEntity.recordingOracle, reputationOracleAddress: jobEntity.reputationOracle, - requesterAddress: signer.address, + requesterAddress: await signer.getAddress(), tokenAddress: getEscrowData.token, }, }); @@ -1616,7 +1553,7 @@ describe('JobService', () => { mockJobRepository.findOneByIdAndUserId.mockResolvedValueOnce(jobEntity); mockManifestService.downloadManifest.mockResolvedValueOnce(manifestMock); - const signer = createSignerMock() as unknown as Wallet; + const signer = createSignerMock(); mockWeb3Service.getSigner.mockReturnValueOnce(signer); const result = await jobService.getDetails( @@ -1644,7 +1581,7 @@ describe('JobService', () => { exchangeOracleAddress: ZeroAddress, recordingOracleAddress: ZeroAddress, reputationOracleAddress: ZeroAddress, - requesterAddress: signer.address, + requesterAddress: await signer.getAddress(), tokenAddress: ZeroAddress, }, }); @@ -1804,16 +1741,78 @@ describe('JobService', () => { expect(mockJobRepository.updateOne).toHaveBeenCalledWith(jobEntity); }); - it('should throw ConflictError if no refund is found', async () => { + it('should not create a refund and set status to CANCELED when no refund is found', async () => { const jobEntity = createJobEntity(); mockPaymentService.getJobPayments.mockResolvedValueOnce([]); mockedEscrowUtils.getCancellationRefund.mockResolvedValueOnce( null as any, ); - await expect(jobService.cancelJob(jobEntity)).rejects.toThrow( - new ConflictError(ErrorJob.NoRefundFound), + jest + .spyOn(jobService as any, 'getRefundAmount') + .mockResolvedValueOnce(0n); + + mockJobRepository.updateOne.mockResolvedValueOnce(jobEntity); + + await jobService.cancelJob(jobEntity); + + expect(mockPaymentService.getJobPayments).toHaveBeenCalledWith( + jobEntity.id, + PaymentType.SLASH, + ); + expect(EscrowUtils.getCancellationRefund).toHaveBeenCalledWith( + jobEntity.chainId, + jobEntity.escrowAddress, + ); + expect(mockPaymentService.createRefundPayment).not.toHaveBeenCalled(); + expect(jobEntity.status).toBe(JobStatus.CANCELED); + expect(mockJobRepository.updateOne).toHaveBeenCalledWith(jobEntity); + }); + + it('should create a refund when on-chain refund amount is greater than 0', async () => { + const jobEntity = createJobEntity(); + const tokenDecimals = (TOKEN_ADDRESSES[jobEntity.chainId as ChainId] ?? + {})[jobEntity.token as EscrowFundToken]?.decimals; + + mockPaymentService.getJobPayments.mockResolvedValueOnce([]); + mockedEscrowUtils.getCancellationRefund.mockResolvedValueOnce( + null as any, ); + + const refundAmount = faker.number.float({ + min: 1, + max: 10, + fractionDigits: tokenDecimals, + }); + + // Mock on-chain refund lookup to return a positive amount + jest + .spyOn(jobService as any, 'getRefundAmount') + .mockResolvedValueOnce( + ethers.parseUnits(refundAmount.toString(), tokenDecimals), + ); + + mockPaymentService.createRefundPayment.mockResolvedValueOnce(undefined); + mockJobRepository.updateOne.mockResolvedValueOnce(jobEntity); + + await jobService.cancelJob(jobEntity); + + expect(mockPaymentService.getJobPayments).toHaveBeenCalledWith( + jobEntity.id, + PaymentType.SLASH, + ); + expect(EscrowUtils.getCancellationRefund).toHaveBeenCalledWith( + jobEntity.chainId, + jobEntity.escrowAddress, + ); + expect(mockPaymentService.createRefundPayment).toHaveBeenCalledWith({ + refundAmount: refundAmount, + refundCurrency: jobEntity.token, + userId: jobEntity.userId, + jobId: jobEntity.id, + }); + expect(jobEntity.status).toBe(JobStatus.CANCELED); + expect(mockJobRepository.updateOne).toHaveBeenCalledWith(jobEntity); }); it('should throw ConflictError if refund.amount is empty', async () => { diff --git a/packages/apps/job-launcher/server/src/modules/job/job.service.ts b/packages/apps/job-launcher/server/src/modules/job/job.service.ts index a9f74bc5e6..723d818338 100644 --- a/packages/apps/job-launcher/server/src/modules/job/job.service.ts +++ b/packages/apps/job-launcher/server/src/modules/job/job.service.ts @@ -3,6 +3,7 @@ import { EscrowClient, EscrowStatus, EscrowUtils, + ICancellationRefund, KVStoreKeys, KVStoreUtils, NETWORKS, @@ -66,7 +67,6 @@ import { StorageService } from '../storage/storage.service'; import { UserEntity } from '../user/user.entity'; import { Web3Service } from '../web3/web3.service'; import { WebhookDataDto } from '../webhook/webhook.dto'; -import { WebhookEntity } from '../webhook/webhook.entity'; import { WebhookRepository } from '../webhook/webhook.repository'; import { WhitelistService } from '../whitelist/whitelist.service'; import { @@ -79,6 +79,7 @@ import { } from './job.dto'; import { JobEntity } from './job.entity'; import { JobRepository } from './job.repository'; +import { Escrow, Escrow__factory } from '@human-protocol/core/typechain-types'; @Injectable() export class JobService { @@ -142,7 +143,10 @@ export class JobService { } const feePercentage = Number( - await this.getOracleFee(this.web3Service.getOperatorAddress(), chainId), + await this.getOracleFee( + await this.web3Service.getOperatorAddress(), + chainId, + ), ); const paymentCurrencyRate = await this.rateService.getRate( @@ -308,31 +312,14 @@ export class JobService { const escrowClient = await EscrowClient.build(signer); - const escrowAddress = await escrowClient.createEscrow( - (TOKEN_ADDRESSES[jobEntity.chainId as ChainId] ?? {})[ - jobEntity.token as EscrowFundToken - ]!.address, - jobEntity.userId.toString(), - { - gasPrice: await this.web3Service.calculateGasPrice(jobEntity.chainId), - }, - ); - - if (!escrowAddress) { - throw new ConflictError(ErrorEscrow.NotCreated); - } - - jobEntity.status = JobStatus.CREATED; - jobEntity.escrowAddress = escrowAddress; - await this.jobRepository.updateOne(jobEntity); - - return jobEntity; - } - - public async setupEscrow(jobEntity: JobEntity): Promise { - const signer = this.web3Service.getSigner(jobEntity.chainId); + const token = (TOKEN_ADDRESSES[jobEntity.chainId as ChainId] ?? {})[ + jobEntity.token as EscrowFundToken + ]!; - const escrowClient = await EscrowClient.build(signer); + const weiAmount = ethers.parseUnits( + jobEntity.fundAmount.toString(), + token.decimals, + ); const escrowConfig = { recordingOracle: jobEntity.recordingOracle, @@ -354,49 +341,34 @@ export class JobService { manifestHash: jobEntity.manifestHash, }; - await escrowClient.setup(jobEntity.escrowAddress!, escrowConfig, { - gasPrice: await this.web3Service.calculateGasPrice(jobEntity.chainId), - }); + await this.web3Service.ensureEscrowAllowance( + jobEntity.chainId, + token, + weiAmount, + NETWORKS[jobEntity.chainId as ChainId]!.factoryAddress, + ); + + const escrowAddress = await escrowClient.createFundAndSetupEscrow( + token.address, + weiAmount, + jobEntity.userId.toString(), + escrowConfig, + { + gasPrice: await this.web3Service.calculateGasPrice(jobEntity.chainId), + }, + ); + + if (!escrowAddress) { + throw new ConflictError(ErrorEscrow.NotCreated); + } jobEntity.status = JobStatus.LAUNCHED; + jobEntity.escrowAddress = escrowAddress; await this.jobRepository.updateOne(jobEntity); - const oracleType = this.getOracleType(jobEntity.requestType); - const webhookEntity = new WebhookEntity(); - Object.assign(webhookEntity, { - escrowAddress: jobEntity.escrowAddress, - chainId: jobEntity.chainId, - eventType: EventType.ESCROW_CREATED, - oracleType: oracleType, - hasSignature: oracleType !== OracleType.HCAPTCHA ? true : false, - oracleAddress: jobEntity.exchangeOracle, - }); - await this.webhookRepository.createUnique(webhookEntity); - return jobEntity; } - public async fundEscrow(jobEntity: JobEntity): Promise { - const signer = this.web3Service.getSigner(jobEntity.chainId); - - const escrowClient = await EscrowClient.build(signer); - - const token = (TOKEN_ADDRESSES[jobEntity.chainId as ChainId] ?? {})[ - jobEntity.token as EscrowFundToken - ]!; - - const weiAmount = ethers.parseUnits( - jobEntity.fundAmount.toString(), - token.decimals, - ); - await escrowClient.fund(jobEntity.escrowAddress!, weiAmount, { - gasPrice: await this.web3Service.calculateGasPrice(jobEntity.chainId), - }); - - jobEntity.status = JobStatus.FUNDED; - return this.jobRepository.updateOne(jobEntity); - } - public async requestToCancelJobById( userId: number, jobId: number, @@ -447,30 +419,13 @@ export class JobService { throw new ConflictError(ErrorJob.InvalidStatusCancellation); } - let status = JobStatus.TO_CANCEL; - switch (jobEntity.status) { - case JobStatus.PAID: - if (await this.isCronJobRunning(CronJobType.CreateEscrow)) { - status = JobStatus.FAILED; - } - break; - case JobStatus.CREATED: - if (await this.isCronJobRunning(CronJobType.FundEscrow)) { - status = JobStatus.FAILED; - } - break; - case JobStatus.FUNDED: - if (await this.isCronJobRunning(CronJobType.SetupEscrow)) { - status = JobStatus.FAILED; - } - break; - } - - if (status === JobStatus.FAILED) { - throw new ConflictError(ErrorJob.CancelWhileProcessing); + if (jobEntity.status === JobStatus.PAID) { + if (await this.isCronJobRunning(CronJobType.CreateEscrow)) { + throw new ConflictError(ErrorJob.CancelWhileProcessing); + } } - jobEntity.status = status; + jobEntity.status = JobStatus.TO_CANCEL; jobEntity.retriesCount = 0; await this.jobRepository.updateOne(jobEntity); @@ -741,7 +696,7 @@ export class JobService { const baseManifestDetails = { chainId, tokenAddress: escrow ? escrow.token : ethers.ZeroAddress, - requesterAddress: signer.address, + requesterAddress: await signer.getAddress(), fundAmount: escrow ? Number( ethers.formatUnits(escrow.totalFundedAmount, fundTokenDecimals), @@ -921,24 +876,95 @@ export class JobService { PaymentType.SLASH, ); if (!slash?.length) { - const refund = await EscrowUtils.getCancellationRefund( - jobEntity.chainId, - jobEntity.escrowAddress!, - ); + let refund: ICancellationRefund | null = null; + try { + refund = await EscrowUtils.getCancellationRefund( + jobEntity.chainId, + jobEntity.escrowAddress!, + ); + } catch { + // Ignore error + } - if (!refund || !refund.amount) { - throw new ConflictError(ErrorJob.NoRefundFound); + let amount = 0n; + + if (!refund) { + //Temp fix + amount = await this.getRefundAmount( + jobEntity.chainId, + jobEntity.escrowAddress!, + token.address, + ); + } else { + if (!refund.amount) { + throw new ConflictError(ErrorJob.NoRefundFound); + } + amount = refund.amount; } - await this.paymentService.createRefundPayment({ - refundAmount: Number(ethers.formatUnits(refund.amount, token.decimals)), - refundCurrency: jobEntity.token, - userId: jobEntity.userId, - jobId: jobEntity.id, - }); + if (amount > 0n) { + await this.paymentService.createRefundPayment({ + refundAmount: Number(ethers.formatUnits(amount, token.decimals)), + refundCurrency: jobEntity.token, + userId: jobEntity.userId, + jobId: jobEntity.id, + }); + } } jobEntity.status = JobStatus.CANCELED; await this.jobRepository.updateOne(jobEntity); } + + public async getRefundAmount( + chainId: ChainId, + escrowAddress: string, + tokenAddress: string, + ): Promise { + const signer = this.web3Service.getSigner(chainId); + const provider = signer.provider!; + const contract: Escrow = Escrow__factory.connect(escrowAddress!, provider); + const fromBlock = 79278120; //This issue started at this block + const toBlock = 'latest'; + const cancelledFilter = contract.filters?.Cancelled?.(); + const cancelledLogs = await contract.queryFilter( + cancelledFilter, + fromBlock, + toBlock, + ); + + for (const log of cancelledLogs) { + const erc20Interface = new ethers.Interface([ + 'event Transfer(address indexed from, address indexed to, uint256 value)', + ]); + + const transferTopic = erc20Interface.getEvent('Transfer')!.topicHash; + const receipt = await provider.getTransactionReceipt(log.transactionHash); + + const transferLogs = receipt!.logs.filter( + (l) => + l.address.toLowerCase() === tokenAddress.toLowerCase() && + l.topics[0] === transferTopic, + ); + for (const tlog of transferLogs) { + const decoded = erc20Interface.decodeEventLog( + 'Transfer', + tlog.data, + tlog.topics, + ); + + const from = decoded.from as string; + const to = decoded.to as string; + const value = decoded.value as bigint; + if ( + from.toLowerCase() === escrowAddress.toLowerCase() && + to.toLowerCase() === signer.address.toLowerCase() + ) { + return value; + } + } + } + + return 0n; + } } diff --git a/packages/apps/job-launcher/server/src/modules/manifest/manifest.service.ts b/packages/apps/job-launcher/server/src/modules/manifest/manifest.service.ts index 665aeebad4..5399c0be61 100644 --- a/packages/apps/job-launcher/server/src/modules/manifest/manifest.service.ts +++ b/packages/apps/job-launcher/server/src/modules/manifest/manifest.service.ts @@ -571,7 +571,7 @@ export class ManifestService { if (this.pgpConfigService.encrypt) { const signer = this.web3Service.getSigner(chainId); const publicKeys: string[] = [ - await KVStoreUtils.getPublicKey(chainId, signer.address), + await KVStoreUtils.getPublicKey(chainId, await signer.getAddress()), ]; for (const address of oracleAddresses) { diff --git a/packages/apps/job-launcher/server/src/modules/payment/payment.service.spec.ts b/packages/apps/job-launcher/server/src/modules/payment/payment.service.spec.ts index 14208d45fc..4967147338 100644 --- a/packages/apps/job-launcher/server/src/modules/payment/payment.service.spec.ts +++ b/packages/apps/job-launcher/server/src/modules/payment/payment.service.spec.ts @@ -3,7 +3,7 @@ jest.mock('../../common/utils/signature', () => ({ verifySignature: jest.fn().mockReturnValue(true), })); -import { faker } from '@faker-js/faker/.'; +import { faker } from '@faker-js/faker'; import { createMock } from '@golevelup/ts-jest'; import { HMToken__factory } from '@human-protocol/core/typechain-types'; import { ChainId, NETWORKS } from '@human-protocol/sdk'; @@ -62,7 +62,7 @@ describe('PaymentService', () => { let rateService: jest.Mocked; const signerMock = { - address: MOCK_ADDRESS, + getAddress: jest.fn().mockResolvedValue(MOCK_ADDRESS), getNetwork: jest.fn().mockResolvedValue({ chainId: ChainId.LOCALHOST }), }; @@ -554,7 +554,9 @@ describe('PaymentService', () => { await expect( paymentService.createCryptoPayment(userId, dto, MOCK_SIGNATURE), - ).rejects.toThrow(new ConflictError(ErrorSignature.SignatureNotVerified)); + ).rejects.toThrow( + new ConflictException(ErrorSignature.SignatureNotVerified), + ); }); it('should throw a not found exception if the transaction is not found by hash', async () => { @@ -873,7 +875,7 @@ describe('PaymentService', () => { setupId: '1', defaultCard: false, }), - ).rejects.toThrow(new ServerError(ErrorPayment.SetupNotFound)); + ).rejects.toThrow(new NotFoundError(ErrorPayment.SetupNotFound)); }); }); diff --git a/packages/apps/job-launcher/server/src/modules/payment/payment.service.ts b/packages/apps/job-launcher/server/src/modules/payment/payment.service.ts index d5dcf34622..606cb6bc5f 100644 --- a/packages/apps/job-launcher/server/src/modules/payment/payment.service.ts +++ b/packages/apps/job-launcher/server/src/modules/payment/payment.service.ts @@ -253,7 +253,7 @@ export class PaymentService { topics: transaction.logs[0].topics as string[], data: transaction.logs[0].data, })?.args['_to'], - ) !== ethers.hexlify(signer.address) + ) !== ethers.hexlify(await signer.getAddress()) ) { throw new ConflictError(ErrorPayment.InvalidRecipient); } diff --git a/packages/apps/job-launcher/server/src/modules/payment/providers/stripe/stripe.service.spec.ts b/packages/apps/job-launcher/server/src/modules/payment/providers/stripe/stripe.service.spec.ts index 0d9c24098d..7eb2ad0c7e 100644 --- a/packages/apps/job-launcher/server/src/modules/payment/providers/stripe/stripe.service.spec.ts +++ b/packages/apps/job-launcher/server/src/modules/payment/providers/stripe/stripe.service.spec.ts @@ -742,7 +742,7 @@ describe('StripeService', () => { await expect( service.getReceiptUrl(mockPaymentIntent.id, customerId), - ).rejects.toThrow(new NotFoundError(ErrorPayment.NotFound)); + ).rejects.toThrow(new ServerError(ErrorPayment.NotFound)); }); }); diff --git a/packages/apps/job-launcher/server/src/modules/qualification/qualification.service.spec.ts b/packages/apps/job-launcher/server/src/modules/qualification/qualification.service.spec.ts index 5136a5e6af..df1f6b43bc 100644 --- a/packages/apps/job-launcher/server/src/modules/qualification/qualification.service.spec.ts +++ b/packages/apps/job-launcher/server/src/modules/qualification/qualification.service.spec.ts @@ -21,6 +21,10 @@ import { ErrorQualification, ErrorWeb3 } from '../../common/constants/errors'; import { ServerError, ValidationError } from '../../common/errors'; import { Web3Service } from '../web3/web3.service'; import { QualificationService } from './qualification.service'; +import { RateService } from '../rate/rate.service'; +import { createMock } from '@golevelup/ts-jest'; + +const mockRateService = createMock(); describe.only('QualificationService', () => { let qualificationService: QualificationService, httpService: HttpService; @@ -50,6 +54,10 @@ describe.only('QualificationService', () => { get: jest.fn(), }, }, + { + provide: RateService, + useValue: mockRateService, + }, ], }) .overrideProvider(NetworkConfigService) diff --git a/packages/apps/job-launcher/server/src/modules/storage/storage.service.spec.ts b/packages/apps/job-launcher/server/src/modules/storage/storage.service.spec.ts index f6a0bc9c73..a41ffabf7e 100644 --- a/packages/apps/job-launcher/server/src/modules/storage/storage.service.spec.ts +++ b/packages/apps/job-launcher/server/src/modules/storage/storage.service.spec.ts @@ -38,7 +38,7 @@ import { ContentType } from '../../common/enums/storage'; import { ServerError, ValidationError } from '../../common/errors'; import { hashString } from '../../common/utils'; import { StorageService } from './storage.service'; -import { faker } from '@faker-js/faker/.'; +import { faker } from '@faker-js/faker'; describe('StorageService', () => { let storageService: StorageService; diff --git a/packages/apps/job-launcher/server/src/modules/web3/web3.controller.ts b/packages/apps/job-launcher/server/src/modules/web3/web3.controller.ts index 52658fd5fc..9873601138 100644 --- a/packages/apps/job-launcher/server/src/modules/web3/web3.controller.ts +++ b/packages/apps/job-launcher/server/src/modules/web3/web3.controller.ts @@ -52,7 +52,7 @@ export class Web3Controller { }) @Public() @Get('/operator-address') - getOperatorAddress(): string { + async getOperatorAddress(): Promise { return this.web3Service.getOperatorAddress(); } diff --git a/packages/apps/job-launcher/server/src/modules/web3/web3.module.ts b/packages/apps/job-launcher/server/src/modules/web3/web3.module.ts index f3f43a070a..97acce6175 100644 --- a/packages/apps/job-launcher/server/src/modules/web3/web3.module.ts +++ b/packages/apps/job-launcher/server/src/modules/web3/web3.module.ts @@ -2,9 +2,10 @@ import { Module } from '@nestjs/common'; import { Web3Service } from './web3.service'; import { ConfigModule } from '@nestjs/config'; import { Web3Controller } from './web3.controller'; +import { RateModule } from '../rate/rate.module'; @Module({ - imports: [ConfigModule], + imports: [ConfigModule, RateModule], providers: [Web3Service], exports: [Web3Service], controllers: [Web3Controller], diff --git a/packages/apps/job-launcher/server/src/modules/web3/web3.service.spec.ts b/packages/apps/job-launcher/server/src/modules/web3/web3.service.spec.ts index 96daa6a720..aa67bf2f1c 100644 --- a/packages/apps/job-launcher/server/src/modules/web3/web3.service.spec.ts +++ b/packages/apps/job-launcher/server/src/modules/web3/web3.service.spec.ts @@ -1,9 +1,14 @@ +import { faker } from '@faker-js/faker/.'; +import { HMToken__factory } from '@human-protocol/core/typechain-types'; import { ChainId, OperatorUtils, Role } from '@human-protocol/sdk'; import { ConfigService } from '@nestjs/config'; import { Test } from '@nestjs/testing'; +import { NonceManager, ethers } from 'ethers'; +import { createSignerMock } from '../../../test/fixtures/web3'; import { NetworkConfigService } from '../../common/config/network-config.service'; import { Web3ConfigService } from '../../common/config/web3-config.service'; import { ErrorWeb3 } from '../../common/constants/errors'; +import { EscrowFundToken } from '../../common/enums/job'; import { Web3Env } from '../../common/enums/web3'; import { ConflictError, ValidationError } from '../../common/errors'; import { @@ -13,6 +18,7 @@ import { MOCK_REPUTATION_ORACLES, mockConfig, } from './../../../test/constants'; +import { RateService } from '../rate/rate.service'; import { OracleDataDto } from './web3.dto'; import { Web3Service } from './web3.service'; @@ -30,6 +36,9 @@ jest.mock('@human-protocol/sdk', () => { describe('Web3Service', () => { let configService: ConfigService; let web3Service: Web3Service; + const mockRateService = { + getRate: jest.fn(), + }; beforeAll(async () => { const moduleRef = await Test.createTestingModule({ @@ -49,6 +58,10 @@ describe('Web3Service', () => { Web3Service, NetworkConfigService, Web3ConfigService, + { + provide: RateService, + useValue: mockRateService, + }, ], }).compile(); @@ -68,6 +81,7 @@ describe('Web3Service', () => { new Web3Service( new Web3ConfigService(configService), new NetworkConfigService(configService), + mockRateService as unknown as RateService, ), ).toThrow(new Error(ErrorWeb3.NoValidNetworks)); }); @@ -95,8 +109,8 @@ describe('Web3Service', () => { }); describe('getOperatorAddress', () => { - it('should get the operator address', () => { - const operatorAddress = web3Service.getOperatorAddress(); + it('should get the operator address', async () => { + const operatorAddress = await web3Service.getOperatorAddress(); expect(operatorAddress).toBe(MOCK_ADDRESS); }); }); @@ -457,4 +471,128 @@ describe('Web3Service', () => { expect(OperatorUtils.getOperator).toHaveBeenCalledTimes(1); }); }); + + describe('ensureEscrowAllowance', () => { + let mockSigner: jest.Mocked; + const mockToken = { + address: faker.finance.ethereumAddress(), + decimals: 18, + symbol: EscrowFundToken.HMT, + }; + const mockSpender = faker.finance.ethereumAddress(); + const mockRequiredAmount = faker.number.bigInt(); + let approveAmountUsdSpy: jest.SpyInstance; + + beforeAll(async () => { + mockSigner = createSignerMock(); + jest.spyOn(web3Service, 'getSigner').mockReturnValue(mockSigner); + jest + .spyOn(web3Service, 'getOperatorAddress') + .mockResolvedValue(await mockSigner.getAddress()); + approveAmountUsdSpy = jest + .spyOn(web3Service.web3ConfigService, 'approveAmountUsd', 'get') + .mockReturnValue(0); + }); + + afterAll(() => { + jest.restoreAllMocks(); + }); + + it('should call approve on the ERC20 token if current allowance is less than required amount', async () => { + const mockApprove = jest.fn().mockResolvedValue({ + wait: jest.fn().mockResolvedValue({}), + }); + const mockAllowance = mockRequiredAmount - 1n; + const mockErc20 = { + allowance: jest.fn().mockResolvedValue(mockAllowance), + approve: mockApprove, + }; + + jest + .spyOn(HMToken__factory, 'connect') + .mockReturnValue(mockErc20 as never); + + await web3Service.ensureEscrowAllowance( + ChainId.POLYGON_AMOY, + mockToken, + mockRequiredAmount, + mockSpender, + ); + + expect(mockErc20.allowance).toHaveBeenCalledWith( + await mockSigner.getAddress(), + mockSpender, + ); + expect(mockApprove).toHaveBeenCalledWith(mockSpender, mockRequiredAmount); + expect(mockRateService.getRate).not.toHaveBeenCalled(); + }); + + it('should not call approve if current allowance is greater than or equal to required amount', async () => { + const mockAllowance = mockRequiredAmount + 1n; + const mockApprove = jest.fn().mockResolvedValue({ + wait: jest.fn(), + }); + const mockErc20 = { + allowance: jest.fn().mockResolvedValue(mockAllowance), + approve: mockApprove, + }; + + jest + .spyOn(HMToken__factory, 'connect') + .mockReturnValue(mockErc20 as never); + + await web3Service.ensureEscrowAllowance( + ChainId.POLYGON_AMOY, + mockToken, + mockRequiredAmount, + mockSpender, + ); + + expect(mockErc20.allowance).toHaveBeenCalledWith( + await mockSigner.getAddress(), + mockSpender, + ); + expect(mockApprove).not.toHaveBeenCalled(); + expect(mockRateService.getRate).not.toHaveBeenCalled(); + }); + + it('should convert approveAmountUsd to token units when higher than required amount', async () => { + const mockApproveAmount = faker.number.int({ min: 50, max: 150 }); + const mockRate = faker.number.float({ min: 1, max: 5 }); + + approveAmountUsdSpy.mockReturnValue(mockApproveAmount); + mockRateService.getRate.mockResolvedValue(mockRate); + + const mockApprove = jest.fn().mockResolvedValue({ + wait: jest.fn().mockResolvedValue({}), + }); + const mockAllowance = mockRequiredAmount - 1n; + const mockErc20 = { + allowance: jest.fn().mockResolvedValue(mockAllowance), + approve: mockApprove, + }; + + jest + .spyOn(HMToken__factory, 'connect') + .mockReturnValue(mockErc20 as never); + + await web3Service.ensureEscrowAllowance( + ChainId.POLYGON_AMOY, + mockToken, + mockRequiredAmount, + mockSpender, + ); + + const expectedAmount = ethers.parseUnits( + (mockApproveAmount * mockRate).toString(), + mockToken.decimals, + ); + + expect(mockRateService.getRate).toHaveBeenCalledWith( + 'usd', + mockToken.symbol, + ); + expect(mockApprove).toHaveBeenCalledWith(mockSpender, expectedAmount); + }); + }); }); diff --git a/packages/apps/job-launcher/server/src/modules/web3/web3.service.ts b/packages/apps/job-launcher/server/src/modules/web3/web3.service.ts index 26979e3338..a288dc2be3 100644 --- a/packages/apps/job-launcher/server/src/modules/web3/web3.service.ts +++ b/packages/apps/job-launcher/server/src/modules/web3/web3.service.ts @@ -1,22 +1,25 @@ +import { HMToken__factory } from '@human-protocol/core/typechain-types'; import { ChainId, OperatorUtils, Role } from '@human-protocol/sdk'; import { Injectable } from '@nestjs/common'; -import { Wallet, ethers } from 'ethers'; +import { NonceManager, Wallet, ethers } from 'ethers'; import { NetworkConfigService } from '../../common/config/network-config.service'; import { Web3ConfigService } from '../../common/config/web3-config.service'; import { ErrorWeb3 } from '../../common/constants/errors'; import { ConflictError, ValidationError } from '../../common/errors'; -import { AvailableOraclesDto, OracleDataDto } from './web3.dto'; +import { IERC20Token } from '../../common/interfaces/web3'; import logger from '../../logger'; +import { RateService } from '../rate/rate.service'; +import { AvailableOraclesDto, OracleDataDto } from './web3.dto'; @Injectable() export class Web3Service { private readonly logger = logger.child({ context: Web3Service.name }); - private signers: { [key: number]: Wallet } = {}; - public readonly signerAddress: string; + private signers: { [key: number]: NonceManager } = {}; constructor( public readonly web3ConfigService: Web3ConfigService, public readonly networkConfigService: NetworkConfigService, + private readonly rateService: RateService, ) { const privateKey = this.web3ConfigService.privateKey; @@ -26,11 +29,12 @@ export class Web3Service { for (const network of this.networkConfigService.networks) { const provider = new ethers.JsonRpcProvider(network.rpcUrl); - this.signers[network.chainId] = new Wallet(privateKey, provider); + const baseWallet = new Wallet(privateKey, provider); + this.signers[network.chainId] = new NonceManager(baseWallet); } } - public getSigner(chainId: number): Wallet { + public getSigner(chainId: number): NonceManager { this.validateChainId(chainId); return this.signers[chainId]; } @@ -52,8 +56,8 @@ export class Web3Service { throw new ConflictError(ErrorWeb3.GasPriceError); } - public getOperatorAddress(): string { - return Object.values(this.signers)[0].address; + public async getOperatorAddress(): Promise { + return Object.values(this.signers)[0].getAddress(); } public async getAvailableOracles( @@ -141,7 +145,7 @@ export class Web3Service { ): Promise { const operator = await OperatorUtils.getOperator( chainId, - this.getOperatorAddress(), + await this.getOperatorAddress(), ); if (!operator || !operator.reputationNetworks) { @@ -178,4 +182,50 @@ export class Web3Service { return matchingOracles.filter(Boolean) as string[]; } + + public async ensureEscrowAllowance( + chainId: number, + token: IERC20Token, + requiredAmount: bigint, + spender: string, + ): Promise { + const signer = this.getSigner(chainId); + const erc20 = HMToken__factory.connect(token.address, signer); + + const currentAllowance = await erc20.allowance( + await this.getOperatorAddress(), + spender, + ); + + if (currentAllowance >= requiredAmount) { + return; + } + + let approveAmount = requiredAmount; + if (this.web3ConfigService.approveAmountUsd > 0) { + try { + const usdToTokenRate = await this.rateService.getRate( + 'usd', + token.symbol, + ); + const tokenAmount = + this.web3ConfigService.approveAmountUsd * usdToTokenRate; + const converted = ethers.parseUnits( + tokenAmount.toString(), + token.decimals, + ); + if (converted > approveAmount) { + approveAmount = converted; + } + } catch (error) { + this.logger.error('Failed to convert approve amount from USD', { + chainId, + token: token.symbol, + error, + }); + } + } + const tx = await erc20.approve(spender, approveAmount); + await tx.wait(); + } } diff --git a/packages/apps/job-launcher/server/src/modules/webhook/webhook.service.spec.ts b/packages/apps/job-launcher/server/src/modules/webhook/webhook.service.spec.ts index a8db5e9550..220856996c 100644 --- a/packages/apps/job-launcher/server/src/modules/webhook/webhook.service.spec.ts +++ b/packages/apps/job-launcher/server/src/modules/webhook/webhook.service.spec.ts @@ -1,4 +1,4 @@ -import { faker } from '@faker-js/faker/.'; +import { faker } from '@faker-js/faker'; import { createMock } from '@golevelup/ts-jest'; import { ChainId, KVStoreUtils } from '@human-protocol/sdk'; import { HttpService } from '@nestjs/axios'; @@ -111,7 +111,7 @@ describe('WebhookService', () => { }); await expect( (webhookService as any).sendWebhook(webhookEntity), - ).rejects.toThrow(new ServerError('HTTP request failed')); + ).rejects.toThrow(new Error('HTTP request failed')); }); it('should successfully process a fortune webhook', async () => { diff --git a/packages/apps/job-launcher/server/test/fixtures/web3.ts b/packages/apps/job-launcher/server/test/fixtures/web3.ts index 6ac5909e8d..0bbe730af8 100644 --- a/packages/apps/job-launcher/server/test/fixtures/web3.ts +++ b/packages/apps/job-launcher/server/test/fixtures/web3.ts @@ -1,18 +1,13 @@ -import { Wallet } from 'ethers'; +import { faker } from '@faker-js/faker/.'; +import { NonceManager } from 'ethers'; -export type SignerMock = jest.Mocked> & { - __transactionResponse: { - wait: jest.Mock; - }; -}; - -export function createSignerMock(): SignerMock { +export function createSignerMock() { const transactionResponse = { wait: jest.fn(), }; return { sendTransaction: jest.fn().mockResolvedValue(transactionResponse), - __transactionResponse: transactionResponse, - }; + getAddress: jest.fn().mockResolvedValue(faker.finance.ethereumAddress()), + } as unknown as jest.Mocked; } diff --git a/packages/apps/reputation-oracle/server/package.json b/packages/apps/reputation-oracle/server/package.json index 9a548e6d81..9a8dcf6733 100644 --- a/packages/apps/reputation-oracle/server/package.json +++ b/packages/apps/reputation-oracle/server/package.json @@ -80,7 +80,7 @@ "@nestjs/testing": "^10.4.6", "@types/bcrypt": "^5.0.2", "@types/express": "^4.17.13", - "@types/jest": "29.5.12", + "@types/jest": "30.0.0", "@types/lodash": "^4.17.14", "@types/node": "22.10.5", "@types/uuid": "^10.0.0", @@ -91,7 +91,7 @@ "eslint-plugin-import": "^2.32.0", "eslint-plugin-prettier": "^5.5.4", "globals": "^16.3.0", - "jest": "29.7.0", + "jest": "30.2.0", "nock": "^14.0.3", "prettier": "^3.4.2", "ts-jest": "29.2.5", diff --git a/packages/apps/reputation-oracle/server/src/modules/auth/auth.service.spec.ts b/packages/apps/reputation-oracle/server/src/modules/auth/auth.service.spec.ts index 8fe72fc2a0..121e37346d 100644 --- a/packages/apps/reputation-oracle/server/src/modules/auth/auth.service.spec.ts +++ b/packages/apps/reputation-oracle/server/src/modules/auth/auth.service.spec.ts @@ -427,7 +427,7 @@ describe('AuthService', () => { await expect( service.web3Signup(signature, ethWallet.address), - ).rejects.toThrow(new AuthErrors.InvalidOperatorFeeError('')); + ).rejects.toThrow(new AuthErrors.InvalidOperatorUrlError('')); }); }); diff --git a/packages/core/.openzeppelin/bsc-testnet.json b/packages/core/.openzeppelin/bsc-testnet.json index a4f4a54b95..7079e24781 100644 --- a/packages/core/.openzeppelin/bsc-testnet.json +++ b/packages/core/.openzeppelin/bsc-testnet.json @@ -2956,6 +2956,163 @@ }, "namespaces": {} } + }, + "addfe6d6ad3f78f6ccf914624fcf7eba6c970f5ba3a20a52f0184991b3d172e1": { + "address": "0xa68c1566f23C2335c142D798f8094F460d487044", + "txHash": "0x69327fb1132a9f7f15e2550822477c921c531375a50dc429eef4ecfefefe841a", + "layout": { + "solcVersion": "0.8.23", + "storage": [ + { + "label": "_initialized", + "offset": 0, + "slot": "0", + "type": "t_uint8", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:63", + "retypedFrom": "bool" + }, + { + "label": "_initializing", + "offset": 1, + "slot": "0", + "type": "t_bool", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:68" + }, + { + "label": "__gap", + "offset": 0, + "slot": "1", + "type": "t_array(t_uint256)50_storage", + "contract": "ContextUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:40" + }, + { + "label": "_owner", + "offset": 0, + "slot": "51", + "type": "t_address", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22" + }, + { + "label": "__gap", + "offset": 0, + "slot": "52", + "type": "t_array(t_uint256)49_storage", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:94" + }, + { + "label": "__gap", + "offset": 0, + "slot": "101", + "type": "t_array(t_uint256)50_storage", + "contract": "ERC1967UpgradeUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol:169" + }, + { + "label": "__gap", + "offset": 0, + "slot": "151", + "type": "t_array(t_uint256)50_storage", + "contract": "UUPSUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol:111" + }, + { + "label": "counter", + "offset": 0, + "slot": "201", + "type": "t_uint256", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:17" + }, + { + "label": "escrowCounters", + "offset": 0, + "slot": "202", + "type": "t_mapping(t_address,t_uint256)", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:18" + }, + { + "label": "lastEscrow", + "offset": 0, + "slot": "203", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:19" + }, + { + "label": "staking", + "offset": 0, + "slot": "204", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:20" + }, + { + "label": "minimumStake", + "offset": 0, + "slot": "205", + "type": "t_uint256", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:21" + }, + { + "label": "admin", + "offset": 0, + "slot": "206", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:22" + }, + { + "label": "__gap", + "offset": 0, + "slot": "207", + "type": "t_array(t_uint256)44_storage", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:189" + } + ], + "types": { + "t_address": { + "label": "address", + "numberOfBytes": "20" + }, + "t_array(t_uint256)44_storage": { + "label": "uint256[44]", + "numberOfBytes": "1408" + }, + "t_array(t_uint256)49_storage": { + "label": "uint256[49]", + "numberOfBytes": "1568" + }, + "t_array(t_uint256)50_storage": { + "label": "uint256[50]", + "numberOfBytes": "1600" + }, + "t_bool": { + "label": "bool", + "numberOfBytes": "1" + }, + "t_mapping(t_address,t_uint256)": { + "label": "mapping(address => uint256)", + "numberOfBytes": "32" + }, + "t_uint256": { + "label": "uint256", + "numberOfBytes": "32" + }, + "t_uint8": { + "label": "uint8", + "numberOfBytes": "1" + } + }, + "namespaces": {} + } } } } diff --git a/packages/core/.openzeppelin/bsc.json b/packages/core/.openzeppelin/bsc.json index 85d546d749..7666d5d45a 100644 --- a/packages/core/.openzeppelin/bsc.json +++ b/packages/core/.openzeppelin/bsc.json @@ -2,15 +2,15 @@ "manifestVersion": "3.2", "proxies": [ { - "address": "0x92FD968AcBd521c232f5fB8c33b342923cC72714", + "address": "0xdFbB79dC35a3A53741be54a2C9b587d6BafAbd1C", "kind": "uups" }, { - "address": "0xdFbB79dC35a3A53741be54a2C9b587d6BafAbd1C", + "address": "0xf376443BCc6d4d4D63eeC086bc4A9E4a83878e0e", "kind": "uups" }, { - "address": "0xf376443BCc6d4d4D63eeC086bc4A9E4a83878e0e", + "address": "0x92FD968AcBd521c232f5fB8c33b342923cC72714", "kind": "uups" } ], @@ -1416,6 +1416,319 @@ }, "namespaces": {} } + }, + "addfe6d6ad3f78f6ccf914624fcf7eba6c970f5ba3a20a52f0284991b3d172e1": { + "address": "0xAF1cc7A493f642dcFA58Aae07C09acF567384890", + "layout": { + "solcVersion": "0.8.23", + "storage": [ + { + "label": "_initialized", + "offset": 0, + "slot": "0", + "type": "t_uint8", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:63", + "retypedFrom": "bool" + }, + { + "label": "_initializing", + "offset": 1, + "slot": "0", + "type": "t_bool", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:68" + }, + { + "label": "__gap", + "offset": 0, + "slot": "1", + "type": "t_array(t_uint256)50_storage", + "contract": "ContextUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:40" + }, + { + "label": "_owner", + "offset": 0, + "slot": "51", + "type": "t_address", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22" + }, + { + "label": "__gap", + "offset": 0, + "slot": "52", + "type": "t_array(t_uint256)49_storage", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:94" + }, + { + "label": "__gap", + "offset": 0, + "slot": "101", + "type": "t_array(t_uint256)50_storage", + "contract": "ERC1967UpgradeUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol:169" + }, + { + "label": "__gap", + "offset": 0, + "slot": "151", + "type": "t_array(t_uint256)50_storage", + "contract": "UUPSUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol:111" + }, + { + "label": "counter", + "offset": 0, + "slot": "201", + "type": "t_uint256", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:17" + }, + { + "label": "escrowCounters", + "offset": 0, + "slot": "202", + "type": "t_mapping(t_address,t_uint256)", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:18" + }, + { + "label": "lastEscrow", + "offset": 0, + "slot": "203", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:19" + }, + { + "label": "staking", + "offset": 0, + "slot": "204", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:20" + }, + { + "label": "minimumStake", + "offset": 0, + "slot": "205", + "type": "t_uint256", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:21" + }, + { + "label": "admin", + "offset": 0, + "slot": "206", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:22" + }, + { + "label": "__gap", + "offset": 0, + "slot": "207", + "type": "t_array(t_uint256)44_storage", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:189" + } + ], + "types": { + "t_address": { + "label": "address", + "numberOfBytes": "20" + }, + "t_array(t_uint256)44_storage": { + "label": "uint256[44]", + "numberOfBytes": "1408" + }, + "t_array(t_uint256)49_storage": { + "label": "uint256[49]", + "numberOfBytes": "1568" + }, + "t_array(t_uint256)50_storage": { + "label": "uint256[50]", + "numberOfBytes": "1600" + }, + "t_bool": { + "label": "bool", + "numberOfBytes": "1" + }, + "t_mapping(t_address,t_uint256)": { + "label": "mapping(address => uint256)", + "numberOfBytes": "32" + }, + "t_uint256": { + "label": "uint256", + "numberOfBytes": "32" + }, + "t_uint8": { + "label": "uint8", + "numberOfBytes": "1" + } + }, + "namespaces": {} + } + }, + "addfe6d6ad3f78f6ccf914624fcf7eba6c970f5ba3a20a52f0184991b3d172e1": { + "address": "0x203af21338a52Ba03bE690C58952DC9935401201", + "txHash": "0x69f850c6e6329dc36337438e5fb791126a318466a4731ad4747601fe253eecfb", + "layout": { + "solcVersion": "0.8.23", + "storage": [ + { + "label": "_initialized", + "offset": 0, + "slot": "0", + "type": "t_uint8", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:63", + "retypedFrom": "bool" + }, + { + "label": "_initializing", + "offset": 1, + "slot": "0", + "type": "t_bool", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:68" + }, + { + "label": "__gap", + "offset": 0, + "slot": "1", + "type": "t_array(t_uint256)50_storage", + "contract": "ContextUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:40" + }, + { + "label": "_owner", + "offset": 0, + "slot": "51", + "type": "t_address", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22" + }, + { + "label": "__gap", + "offset": 0, + "slot": "52", + "type": "t_array(t_uint256)49_storage", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:94" + }, + { + "label": "__gap", + "offset": 0, + "slot": "101", + "type": "t_array(t_uint256)50_storage", + "contract": "ERC1967UpgradeUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol:169" + }, + { + "label": "__gap", + "offset": 0, + "slot": "151", + "type": "t_array(t_uint256)50_storage", + "contract": "UUPSUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol:111" + }, + { + "label": "counter", + "offset": 0, + "slot": "201", + "type": "t_uint256", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:17" + }, + { + "label": "escrowCounters", + "offset": 0, + "slot": "202", + "type": "t_mapping(t_address,t_uint256)", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:18" + }, + { + "label": "lastEscrow", + "offset": 0, + "slot": "203", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:19" + }, + { + "label": "staking", + "offset": 0, + "slot": "204", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:20" + }, + { + "label": "minimumStake", + "offset": 0, + "slot": "205", + "type": "t_uint256", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:21" + }, + { + "label": "admin", + "offset": 0, + "slot": "206", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:22" + }, + { + "label": "__gap", + "offset": 0, + "slot": "207", + "type": "t_array(t_uint256)44_storage", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:189" + } + ], + "types": { + "t_address": { + "label": "address", + "numberOfBytes": "20" + }, + "t_array(t_uint256)44_storage": { + "label": "uint256[44]", + "numberOfBytes": "1408" + }, + "t_array(t_uint256)49_storage": { + "label": "uint256[49]", + "numberOfBytes": "1568" + }, + "t_array(t_uint256)50_storage": { + "label": "uint256[50]", + "numberOfBytes": "1600" + }, + "t_bool": { + "label": "bool", + "numberOfBytes": "1" + }, + "t_mapping(t_address,t_uint256)": { + "label": "mapping(address => uint256)", + "numberOfBytes": "32" + }, + "t_uint256": { + "label": "uint256", + "numberOfBytes": "32" + }, + "t_uint8": { + "label": "uint8", + "numberOfBytes": "1" + } + }, + "namespaces": {} + } } } } diff --git a/packages/core/.openzeppelin/mainnet.json b/packages/core/.openzeppelin/mainnet.json index ed035a9370..ee64d50eff 100644 --- a/packages/core/.openzeppelin/mainnet.json +++ b/packages/core/.openzeppelin/mainnet.json @@ -2,15 +2,15 @@ "manifestVersion": "3.2", "proxies": [ { - "address": "0xD9c75a1Aa4237BB72a41E5E26bd8384f10c1f55a", + "address": "0x05398211bA2046E296fBc9a9D3EB49e3F15C3123", "kind": "uups" }, { - "address": "0x05398211bA2046E296fBc9a9D3EB49e3F15C3123", + "address": "0x4A5963Dd6792692e9147EdC7659936b96251917a", "kind": "uups" }, { - "address": "0x4A5963Dd6792692e9147EdC7659936b96251917a", + "address": "0xD9c75a1Aa4237BB72a41E5E26bd8384f10c1f55a", "kind": "uups" } ], @@ -1416,6 +1416,319 @@ }, "namespaces": {} } + }, + "addfe6d6ad3f78f6ccf914624fcf7eba6c970f5ba3a21a52f0184991b3d172e1": { + "address": "0x1ddd6eDE6f0C924adDb7109D366844A9aDf51deF", + "layout": { + "solcVersion": "0.8.23", + "storage": [ + { + "label": "_initialized", + "offset": 0, + "slot": "0", + "type": "t_uint8", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:63", + "retypedFrom": "bool" + }, + { + "label": "_initializing", + "offset": 1, + "slot": "0", + "type": "t_bool", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:68" + }, + { + "label": "__gap", + "offset": 0, + "slot": "1", + "type": "t_array(t_uint256)50_storage", + "contract": "ContextUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:40" + }, + { + "label": "_owner", + "offset": 0, + "slot": "51", + "type": "t_address", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22" + }, + { + "label": "__gap", + "offset": 0, + "slot": "52", + "type": "t_array(t_uint256)49_storage", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:94" + }, + { + "label": "__gap", + "offset": 0, + "slot": "101", + "type": "t_array(t_uint256)50_storage", + "contract": "ERC1967UpgradeUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol:169" + }, + { + "label": "__gap", + "offset": 0, + "slot": "151", + "type": "t_array(t_uint256)50_storage", + "contract": "UUPSUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol:111" + }, + { + "label": "counter", + "offset": 0, + "slot": "201", + "type": "t_uint256", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:17" + }, + { + "label": "escrowCounters", + "offset": 0, + "slot": "202", + "type": "t_mapping(t_address,t_uint256)", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:18" + }, + { + "label": "lastEscrow", + "offset": 0, + "slot": "203", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:19" + }, + { + "label": "staking", + "offset": 0, + "slot": "204", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:20" + }, + { + "label": "minimumStake", + "offset": 0, + "slot": "205", + "type": "t_uint256", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:21" + }, + { + "label": "admin", + "offset": 0, + "slot": "206", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:22" + }, + { + "label": "__gap", + "offset": 0, + "slot": "207", + "type": "t_array(t_uint256)44_storage", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:189" + } + ], + "types": { + "t_address": { + "label": "address", + "numberOfBytes": "20" + }, + "t_array(t_uint256)44_storage": { + "label": "uint256[44]", + "numberOfBytes": "1408" + }, + "t_array(t_uint256)49_storage": { + "label": "uint256[49]", + "numberOfBytes": "1568" + }, + "t_array(t_uint256)50_storage": { + "label": "uint256[50]", + "numberOfBytes": "1600" + }, + "t_bool": { + "label": "bool", + "numberOfBytes": "1" + }, + "t_mapping(t_address,t_uint256)": { + "label": "mapping(address => uint256)", + "numberOfBytes": "32" + }, + "t_uint256": { + "label": "uint256", + "numberOfBytes": "32" + }, + "t_uint8": { + "label": "uint8", + "numberOfBytes": "1" + } + }, + "namespaces": {} + } + }, + "addfe6d6ad3f78f6ccf914624fcf7eba6c970f5ba3a20a52f0184991b3d172e1": { + "address": "0x798d74224C35887495F45e8fBBf495C247EAA4c9", + "txHash": "0x758a238b3e424f349f6c413c3ff111a2c1a191a7075587129456cfca238f91ec", + "layout": { + "solcVersion": "0.8.23", + "storage": [ + { + "label": "_initialized", + "offset": 0, + "slot": "0", + "type": "t_uint8", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:63", + "retypedFrom": "bool" + }, + { + "label": "_initializing", + "offset": 1, + "slot": "0", + "type": "t_bool", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:68" + }, + { + "label": "__gap", + "offset": 0, + "slot": "1", + "type": "t_array(t_uint256)50_storage", + "contract": "ContextUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:40" + }, + { + "label": "_owner", + "offset": 0, + "slot": "51", + "type": "t_address", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22" + }, + { + "label": "__gap", + "offset": 0, + "slot": "52", + "type": "t_array(t_uint256)49_storage", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:94" + }, + { + "label": "__gap", + "offset": 0, + "slot": "101", + "type": "t_array(t_uint256)50_storage", + "contract": "ERC1967UpgradeUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol:169" + }, + { + "label": "__gap", + "offset": 0, + "slot": "151", + "type": "t_array(t_uint256)50_storage", + "contract": "UUPSUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol:111" + }, + { + "label": "counter", + "offset": 0, + "slot": "201", + "type": "t_uint256", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:17" + }, + { + "label": "escrowCounters", + "offset": 0, + "slot": "202", + "type": "t_mapping(t_address,t_uint256)", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:18" + }, + { + "label": "lastEscrow", + "offset": 0, + "slot": "203", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:19" + }, + { + "label": "staking", + "offset": 0, + "slot": "204", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:20" + }, + { + "label": "minimumStake", + "offset": 0, + "slot": "205", + "type": "t_uint256", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:21" + }, + { + "label": "admin", + "offset": 0, + "slot": "206", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:22" + }, + { + "label": "__gap", + "offset": 0, + "slot": "207", + "type": "t_array(t_uint256)44_storage", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:189" + } + ], + "types": { + "t_address": { + "label": "address", + "numberOfBytes": "20" + }, + "t_array(t_uint256)44_storage": { + "label": "uint256[44]", + "numberOfBytes": "1408" + }, + "t_array(t_uint256)49_storage": { + "label": "uint256[49]", + "numberOfBytes": "1568" + }, + "t_array(t_uint256)50_storage": { + "label": "uint256[50]", + "numberOfBytes": "1600" + }, + "t_bool": { + "label": "bool", + "numberOfBytes": "1" + }, + "t_mapping(t_address,t_uint256)": { + "label": "mapping(address => uint256)", + "numberOfBytes": "32" + }, + "t_uint256": { + "label": "uint256", + "numberOfBytes": "32" + }, + "t_uint8": { + "label": "uint8", + "numberOfBytes": "1" + } + }, + "namespaces": {} + } } } } diff --git a/packages/core/.openzeppelin/polygon.json b/packages/core/.openzeppelin/polygon.json index 3e7e80a6bc..ecfb3f007c 100644 --- a/packages/core/.openzeppelin/polygon.json +++ b/packages/core/.openzeppelin/polygon.json @@ -1,10 +1,6 @@ { "manifestVersion": "3.2", "proxies": [ - { - "address": "0xBDBfD2cC708199C5640C6ECdf3B0F4A4C67AdfcB", - "kind": "uups" - }, { "address": "0xcbAd56bE3f504E98bd70875823d3CC0242B7bB29", "kind": "uups" @@ -17,6 +13,10 @@ "address": "0x98ca1cbCf337e500c7557F28b3B0770602f4Bb81", "txHash": "0x568b30c00c08f20af291b8d517c5c51c775d1b18a9fb6b9d8ed78869a77e8747", "kind": "transparent" + }, + { + "address": "0xBDBfD2cC708199C5640C6ECdf3B0F4A4C67AdfcB", + "kind": "uups" } ], "impls": { @@ -1412,6 +1412,319 @@ }, "namespaces": {} } + }, + "addfe6d6ad3f78f6ccf914624fcf7eba6c970f5ba3a20a52f0184992b3d172e1": { + "address": "0x6512d894cc3d3FE93Da9d0420430136fA889FaB9", + "layout": { + "solcVersion": "0.8.23", + "storage": [ + { + "label": "_initialized", + "offset": 0, + "slot": "0", + "type": "t_uint8", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:63", + "retypedFrom": "bool" + }, + { + "label": "_initializing", + "offset": 1, + "slot": "0", + "type": "t_bool", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:68" + }, + { + "label": "__gap", + "offset": 0, + "slot": "1", + "type": "t_array(t_uint256)50_storage", + "contract": "ContextUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:40" + }, + { + "label": "_owner", + "offset": 0, + "slot": "51", + "type": "t_address", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22" + }, + { + "label": "__gap", + "offset": 0, + "slot": "52", + "type": "t_array(t_uint256)49_storage", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:94" + }, + { + "label": "__gap", + "offset": 0, + "slot": "101", + "type": "t_array(t_uint256)50_storage", + "contract": "ERC1967UpgradeUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol:169" + }, + { + "label": "__gap", + "offset": 0, + "slot": "151", + "type": "t_array(t_uint256)50_storage", + "contract": "UUPSUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol:111" + }, + { + "label": "counter", + "offset": 0, + "slot": "201", + "type": "t_uint256", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:17" + }, + { + "label": "escrowCounters", + "offset": 0, + "slot": "202", + "type": "t_mapping(t_address,t_uint256)", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:18" + }, + { + "label": "lastEscrow", + "offset": 0, + "slot": "203", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:19" + }, + { + "label": "staking", + "offset": 0, + "slot": "204", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:20" + }, + { + "label": "minimumStake", + "offset": 0, + "slot": "205", + "type": "t_uint256", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:21" + }, + { + "label": "admin", + "offset": 0, + "slot": "206", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:22" + }, + { + "label": "__gap", + "offset": 0, + "slot": "207", + "type": "t_array(t_uint256)44_storage", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:189" + } + ], + "types": { + "t_address": { + "label": "address", + "numberOfBytes": "20" + }, + "t_array(t_uint256)44_storage": { + "label": "uint256[44]", + "numberOfBytes": "1408" + }, + "t_array(t_uint256)49_storage": { + "label": "uint256[49]", + "numberOfBytes": "1568" + }, + "t_array(t_uint256)50_storage": { + "label": "uint256[50]", + "numberOfBytes": "1600" + }, + "t_bool": { + "label": "bool", + "numberOfBytes": "1" + }, + "t_mapping(t_address,t_uint256)": { + "label": "mapping(address => uint256)", + "numberOfBytes": "32" + }, + "t_uint256": { + "label": "uint256", + "numberOfBytes": "32" + }, + "t_uint8": { + "label": "uint8", + "numberOfBytes": "1" + } + }, + "namespaces": {} + } + }, + "addfe6d6ad3f78f6ccf914624fcf7eba6c970f5ba3a20a52f0184991b3d172e1": { + "address": "0xEf6Da3aB52c33925Be3F84038193a7e1331F51E6", + "txHash": "0x277d6d5a3e483af8f13ca30b4c1c721b2ec0e66e7c0cdd762e8fc740f9c21440", + "layout": { + "solcVersion": "0.8.23", + "storage": [ + { + "label": "_initialized", + "offset": 0, + "slot": "0", + "type": "t_uint8", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:63", + "retypedFrom": "bool" + }, + { + "label": "_initializing", + "offset": 1, + "slot": "0", + "type": "t_bool", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:68" + }, + { + "label": "__gap", + "offset": 0, + "slot": "1", + "type": "t_array(t_uint256)50_storage", + "contract": "ContextUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:40" + }, + { + "label": "_owner", + "offset": 0, + "slot": "51", + "type": "t_address", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22" + }, + { + "label": "__gap", + "offset": 0, + "slot": "52", + "type": "t_array(t_uint256)49_storage", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:94" + }, + { + "label": "__gap", + "offset": 0, + "slot": "101", + "type": "t_array(t_uint256)50_storage", + "contract": "ERC1967UpgradeUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol:169" + }, + { + "label": "__gap", + "offset": 0, + "slot": "151", + "type": "t_array(t_uint256)50_storage", + "contract": "UUPSUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol:111" + }, + { + "label": "counter", + "offset": 0, + "slot": "201", + "type": "t_uint256", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:17" + }, + { + "label": "escrowCounters", + "offset": 0, + "slot": "202", + "type": "t_mapping(t_address,t_uint256)", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:18" + }, + { + "label": "lastEscrow", + "offset": 0, + "slot": "203", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:19" + }, + { + "label": "staking", + "offset": 0, + "slot": "204", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:20" + }, + { + "label": "minimumStake", + "offset": 0, + "slot": "205", + "type": "t_uint256", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:21" + }, + { + "label": "admin", + "offset": 0, + "slot": "206", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:22" + }, + { + "label": "__gap", + "offset": 0, + "slot": "207", + "type": "t_array(t_uint256)44_storage", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:189" + } + ], + "types": { + "t_address": { + "label": "address", + "numberOfBytes": "20" + }, + "t_array(t_uint256)44_storage": { + "label": "uint256[44]", + "numberOfBytes": "1408" + }, + "t_array(t_uint256)49_storage": { + "label": "uint256[49]", + "numberOfBytes": "1568" + }, + "t_array(t_uint256)50_storage": { + "label": "uint256[50]", + "numberOfBytes": "1600" + }, + "t_bool": { + "label": "bool", + "numberOfBytes": "1" + }, + "t_mapping(t_address,t_uint256)": { + "label": "mapping(address => uint256)", + "numberOfBytes": "32" + }, + "t_uint256": { + "label": "uint256", + "numberOfBytes": "32" + }, + "t_uint8": { + "label": "uint8", + "numberOfBytes": "1" + } + }, + "namespaces": {} + } } } } diff --git a/packages/core/.openzeppelin/sepolia.json b/packages/core/.openzeppelin/sepolia.json index 9666a47f72..8c7acb1181 100644 --- a/packages/core/.openzeppelin/sepolia.json +++ b/packages/core/.openzeppelin/sepolia.json @@ -3863,6 +3863,163 @@ }, "namespaces": {} } + }, + "addfe6d6ad3f78f6ccf914624fcf7eba6c970f5ba3a20a52f0184991b3d172e1": { + "address": "0x779875bdBF7b9Da080c946b0c603F02837D65646", + "txHash": "0x76f8f486b23b6ef79f30edfab76821366b2d656f06ba1e53e576efaff3f327cc", + "layout": { + "solcVersion": "0.8.23", + "storage": [ + { + "label": "_initialized", + "offset": 0, + "slot": "0", + "type": "t_uint8", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:63", + "retypedFrom": "bool" + }, + { + "label": "_initializing", + "offset": 1, + "slot": "0", + "type": "t_bool", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:68" + }, + { + "label": "__gap", + "offset": 0, + "slot": "1", + "type": "t_array(t_uint256)50_storage", + "contract": "ContextUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:40" + }, + { + "label": "_owner", + "offset": 0, + "slot": "51", + "type": "t_address", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22" + }, + { + "label": "__gap", + "offset": 0, + "slot": "52", + "type": "t_array(t_uint256)49_storage", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:94" + }, + { + "label": "__gap", + "offset": 0, + "slot": "101", + "type": "t_array(t_uint256)50_storage", + "contract": "ERC1967UpgradeUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol:169" + }, + { + "label": "__gap", + "offset": 0, + "slot": "151", + "type": "t_array(t_uint256)50_storage", + "contract": "UUPSUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol:111" + }, + { + "label": "counter", + "offset": 0, + "slot": "201", + "type": "t_uint256", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:17" + }, + { + "label": "escrowCounters", + "offset": 0, + "slot": "202", + "type": "t_mapping(t_address,t_uint256)", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:18" + }, + { + "label": "lastEscrow", + "offset": 0, + "slot": "203", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:19" + }, + { + "label": "staking", + "offset": 0, + "slot": "204", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:20" + }, + { + "label": "minimumStake", + "offset": 0, + "slot": "205", + "type": "t_uint256", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:21" + }, + { + "label": "admin", + "offset": 0, + "slot": "206", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:22" + }, + { + "label": "__gap", + "offset": 0, + "slot": "207", + "type": "t_array(t_uint256)44_storage", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:189" + } + ], + "types": { + "t_address": { + "label": "address", + "numberOfBytes": "20" + }, + "t_array(t_uint256)44_storage": { + "label": "uint256[44]", + "numberOfBytes": "1408" + }, + "t_array(t_uint256)49_storage": { + "label": "uint256[49]", + "numberOfBytes": "1568" + }, + "t_array(t_uint256)50_storage": { + "label": "uint256[50]", + "numberOfBytes": "1600" + }, + "t_bool": { + "label": "bool", + "numberOfBytes": "1" + }, + "t_mapping(t_address,t_uint256)": { + "label": "mapping(address => uint256)", + "numberOfBytes": "32" + }, + "t_uint256": { + "label": "uint256", + "numberOfBytes": "32" + }, + "t_uint8": { + "label": "uint8", + "numberOfBytes": "1" + } + }, + "namespaces": {} + } } } } diff --git a/packages/core/.openzeppelin/unknown-80002.json b/packages/core/.openzeppelin/unknown-80002.json index 2664aad429..0d69cc975a 100644 --- a/packages/core/.openzeppelin/unknown-80002.json +++ b/packages/core/.openzeppelin/unknown-80002.json @@ -1965,6 +1965,163 @@ }, "namespaces": {} } + }, + "addfe6d6ad3f78f6ccf914624fcf7eba6c970f5ba3a20a52f0184991b3d172e1": { + "address": "0x1993e1436BcDC573F7583EebEc49D1854f09D103", + "txHash": "0xb382151653575a86d21c87063dfc409b33888b2bd39c1f0172834a8771f3c9ed", + "layout": { + "solcVersion": "0.8.23", + "storage": [ + { + "label": "_initialized", + "offset": 0, + "slot": "0", + "type": "t_uint8", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:63", + "retypedFrom": "bool" + }, + { + "label": "_initializing", + "offset": 1, + "slot": "0", + "type": "t_bool", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:68" + }, + { + "label": "__gap", + "offset": 0, + "slot": "1", + "type": "t_array(t_uint256)50_storage", + "contract": "ContextUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:40" + }, + { + "label": "_owner", + "offset": 0, + "slot": "51", + "type": "t_address", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22" + }, + { + "label": "__gap", + "offset": 0, + "slot": "52", + "type": "t_array(t_uint256)49_storage", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:94" + }, + { + "label": "__gap", + "offset": 0, + "slot": "101", + "type": "t_array(t_uint256)50_storage", + "contract": "ERC1967UpgradeUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol:169" + }, + { + "label": "__gap", + "offset": 0, + "slot": "151", + "type": "t_array(t_uint256)50_storage", + "contract": "UUPSUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol:111" + }, + { + "label": "counter", + "offset": 0, + "slot": "201", + "type": "t_uint256", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:17" + }, + { + "label": "escrowCounters", + "offset": 0, + "slot": "202", + "type": "t_mapping(t_address,t_uint256)", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:18" + }, + { + "label": "lastEscrow", + "offset": 0, + "slot": "203", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:19" + }, + { + "label": "staking", + "offset": 0, + "slot": "204", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:20" + }, + { + "label": "minimumStake", + "offset": 0, + "slot": "205", + "type": "t_uint256", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:21" + }, + { + "label": "admin", + "offset": 0, + "slot": "206", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:22" + }, + { + "label": "__gap", + "offset": 0, + "slot": "207", + "type": "t_array(t_uint256)44_storage", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:189" + } + ], + "types": { + "t_address": { + "label": "address", + "numberOfBytes": "20" + }, + "t_array(t_uint256)44_storage": { + "label": "uint256[44]", + "numberOfBytes": "1408" + }, + "t_array(t_uint256)49_storage": { + "label": "uint256[49]", + "numberOfBytes": "1568" + }, + "t_array(t_uint256)50_storage": { + "label": "uint256[50]", + "numberOfBytes": "1600" + }, + "t_bool": { + "label": "bool", + "numberOfBytes": "1" + }, + "t_mapping(t_address,t_uint256)": { + "label": "mapping(address => uint256)", + "numberOfBytes": "32" + }, + "t_uint256": { + "label": "uint256", + "numberOfBytes": "32" + }, + "t_uint8": { + "label": "uint8", + "numberOfBytes": "1" + } + }, + "namespaces": {} + } } } } diff --git a/packages/core/contracts/Escrow.sol b/packages/core/contracts/Escrow.sol index c6e677d168..0025f402a2 100644 --- a/packages/core/contracts/Escrow.sol +++ b/packages/core/contracts/Escrow.sol @@ -269,12 +269,20 @@ contract Escrow is IEscrow, ReentrancyGuard { * and updating the status to Complete or Cancelled. */ function _finalize() private { - if (remainingFunds > 0) { - IERC20(token).safeTransfer(launcher, remainingFunds); + EscrowStatuses _status = status; + uint256 _remaining = remainingFunds; + + if (_remaining > 0) { + IERC20 tokenContract = IERC20(token); + tokenContract.safeTransfer(launcher, _remaining); + if (_status == EscrowStatuses.ToCancel) { + emit CancellationRefund(_remaining); + } remainingFunds = 0; reservedFunds = 0; } - if (status == EscrowStatuses.ToCancel) { + + if (_status == EscrowStatuses.ToCancel) { status = EscrowStatuses.Cancelled; emit Cancelled(); } else { diff --git a/packages/core/package.json b/packages/core/package.json index c6f086f5bc..ff7700b083 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,7 +1,7 @@ { "name": "@human-protocol/core", "description": "Human Protocol Core Smart Contracts", - "version": "5.0.0", + "version": "5.0.1", "files": [ "contracts/**/*.sol", "abis/**/*.json", @@ -79,7 +79,7 @@ "hardhat-contract-sizer": "^2.6.1", "hardhat-dependency-compiler": "^1.2.1", "hardhat-gas-reporter": "^2.0.2", - "openpgp": "5.11.2", + "openpgp": "6.2.2", "prettier": "^3.4.2", "prettier-plugin-solidity": "^1.3.1", "solidity-coverage": "^0.8.16", diff --git a/packages/core/test/Escrow.ts b/packages/core/test/Escrow.ts index a49bf9aa95..1a4cbd9eb2 100644 --- a/packages/core/test/Escrow.ts +++ b/packages/core/test/Escrow.ts @@ -465,7 +465,9 @@ describe('Escrow', function () { await escrow.connect(launcher).requestCancellation(); await expect(storeResults()) .to.emit(escrow, 'IntermediateStorage') - .withArgs(FIXTURE_URL, FIXTURE_HASH); + .withArgs(FIXTURE_URL, FIXTURE_HASH) + .to.emit(escrow, 'CancellationRefund') + .withArgs(FIXTURE_FUND_AMOUNT); expect(await escrow.intermediateResultsUrl()).to.equal(FIXTURE_URL); expect(await escrow.status()).to.equal(Status.Cancelled); expect(await escrow.remainingFunds()).to.equal(ethers.parseEther('0')); @@ -491,7 +493,9 @@ describe('Escrow', function () { storeResults(FIXTURE_URL, FIXTURE_HASH, ethers.parseEther('0'), admin) ) .to.emit(escrow, 'IntermediateStorage') - .withArgs(FIXTURE_URL, FIXTURE_HASH); + .withArgs(FIXTURE_URL, FIXTURE_HASH) + .to.emit(escrow, 'CancellationRefund') + .withArgs(FIXTURE_FUND_AMOUNT); expect(await escrow.intermediateResultsUrl()).to.equal(FIXTURE_URL); expect(await escrow.status()).to.equal(Status.Cancelled); expect(await escrow.remainingFunds()).to.equal(ethers.parseEther('0')); @@ -1565,10 +1569,11 @@ describe('Escrow', function () { escrow.getAddress() ); - await expect(escrow.connect(reputationOracle).cancel()).to.emit( - escrow, - 'Cancelled' - ); + await expect(escrow.connect(reputationOracle).cancel()) + .to.emit(escrow, 'CancellationRefund') + .withArgs(initialEscrowBalance) + .to.emit(escrow, 'Cancelled'); + expect(await escrow.status()).to.equal(Status.Cancelled); expect(await escrow.remainingFunds()).to.equal('0'); @@ -1586,10 +1591,11 @@ describe('Escrow', function () { escrow.getAddress() ); - await expect(escrow.connect(admin).cancel()).to.emit( - escrow, - 'Cancelled' - ); + await expect(escrow.connect(admin).cancel()) + .to.emit(escrow, 'CancellationRefund') + .withArgs(initialEscrowBalance) + .to.emit(escrow, 'Cancelled'); + expect(await escrow.status()).to.equal(Status.Cancelled); expect(await escrow.remainingFunds()).to.equal('0'); @@ -1609,10 +1615,11 @@ describe('Escrow', function () { await storeResults(FIXTURE_URL, FIXTURE_HASH, initialEscrowBalance); - await expect(escrow.connect(reputationOracle).cancel()).to.emit( - escrow, - 'Cancelled' - ); + await expect(escrow.connect(reputationOracle).cancel()) + .to.emit(escrow, 'CancellationRefund') + .withArgs(initialEscrowBalance) + .to.emit(escrow, 'Cancelled'); + expect(await escrow.status()).to.equal(Status.Cancelled); expect(await escrow.remainingFunds()).to.equal('0'); @@ -1632,10 +1639,11 @@ describe('Escrow', function () { await storeResults(FIXTURE_URL, FIXTURE_HASH, initialEscrowBalance); - await expect(escrow.connect(admin).cancel()).to.emit( - escrow, - 'Cancelled' - ); + await expect(escrow.connect(admin).cancel()) + .to.emit(escrow, 'CancellationRefund') + .withArgs(initialEscrowBalance) + .to.emit(escrow, 'Cancelled'); + expect(await escrow.status()).to.equal(Status.Cancelled); expect(await escrow.remainingFunds()).to.equal('0'); @@ -1660,10 +1668,11 @@ describe('Escrow', function () { 'bulkPayOut(address[],uint256[],string,string,string,bool)' ]([externalAddress], [initialEscrowBalance / 2n], FIXTURE_URL, FIXTURE_HASH, '000', false); - await expect(escrow.connect(reputationOracle).cancel()).to.emit( - escrow, - 'Cancelled' - ); + await expect(escrow.connect(reputationOracle).cancel()) + .to.emit(escrow, 'CancellationRefund') + .withArgs(initialEscrowBalance / 2n) + .to.emit(escrow, 'Cancelled'); + expect(await escrow.status()).to.equal(Status.Cancelled); expect(await escrow.remainingFunds()).to.equal('0'); @@ -1688,10 +1697,11 @@ describe('Escrow', function () { 'bulkPayOut(address[],uint256[],string,string,string,bool)' ]([externalAddress], [initialEscrowBalance / 2n], FIXTURE_URL, FIXTURE_HASH, '000', false); - await expect(escrow.connect(admin).cancel()).to.emit( - escrow, - 'Cancelled' - ); + await expect(escrow.connect(admin).cancel()) + .to.emit(escrow, 'CancellationRefund') + .withArgs(initialEscrowBalance / 2n) + .to.emit(escrow, 'Cancelled'); + expect(await escrow.status()).to.equal(Status.Cancelled); expect(await escrow.remainingFunds()).to.equal('0'); diff --git a/packages/examples/gcv/package.json b/packages/examples/gcv/package.json index 8d8946ddc7..e3c5389ff9 100644 --- a/packages/examples/gcv/package.json +++ b/packages/examples/gcv/package.json @@ -21,7 +21,7 @@ "@types/xml2js": "^0.4.14", "eslint": "^9.39.1", "eslint-plugin-jest": "^28.9.0", - "jest": "^29.7.0", + "jest": "^30.2.0", "typescript": "^5.8.3" } } diff --git a/packages/examples/gcv/src/utils/storage.ts b/packages/examples/gcv/src/utils/storage.ts index 93764ed547..f0976d74d8 100644 --- a/packages/examples/gcv/src/utils/storage.ts +++ b/packages/examples/gcv/src/utils/storage.ts @@ -78,7 +78,7 @@ export async function listObjectsInBucket(url: URL): Promise { if (response.status === HttpStatus.OK && response.data) { parseString(response.data, (err: any, result: any) => { if (err) { - reject(err); + throw new Error(err); } nextContinuationToken = result.ListBucketResult.NextContinuationToken ? result.ListBucketResult.NextContinuationToken[0] diff --git a/packages/libs/logger/package.json b/packages/libs/logger/package.json index 99c6be7f1b..7267f84582 100644 --- a/packages/libs/logger/package.json +++ b/packages/libs/logger/package.json @@ -1,6 +1,6 @@ { "name": "@human-protocol/logger", - "version": "1.1.2", + "version": "1.2.0", "description": "Unified logging package for HUMAN Protocol", "type": "commonjs", "main": "dist/index.js", diff --git a/packages/sdk/python/human-protocol-sdk/package.json b/packages/sdk/python/human-protocol-sdk/package.json index d9d3bd2049..906c73371b 100644 --- a/packages/sdk/python/human-protocol-sdk/package.json +++ b/packages/sdk/python/human-protocol-sdk/package.json @@ -1,6 +1,6 @@ { "name": "@human-protocol/python-sdk", - "version": "5.1.0", + "version": "5.2.0", "private": true, "description": "Stub package to integrate the Python SDK with Changesets (dev-only).", "license": "MIT" diff --git a/packages/sdk/typescript/human-protocol-sdk/package.json b/packages/sdk/typescript/human-protocol-sdk/package.json index 140cc542d1..fed510c51e 100644 --- a/packages/sdk/typescript/human-protocol-sdk/package.json +++ b/packages/sdk/typescript/human-protocol-sdk/package.json @@ -1,7 +1,7 @@ { "name": "@human-protocol/sdk", "description": "Human Protocol SDK", - "version": "5.1.0", + "version": "5.2.0", "files": [ "src", "dist" @@ -42,9 +42,9 @@ "axios": "^1.4.0", "ethers": "~6.15.0", "graphql": "^16.8.1", - "graphql-request": "^6.1.0", + "graphql-request": "^7.3.4", "graphql-tag": "^2.12.6", - "openpgp": "^5.11.2", + "openpgp": "^6.2.2", "secp256k1": "^5.0.1", "validator": "^13.12.0", "vitest": "^3.0.9" diff --git a/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts b/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts index c0cb9d3f6d..38d1921f93 100644 --- a/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts +++ b/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts @@ -387,7 +387,7 @@ export class EncryptionUtils { const { privateKey, publicKey, revocationCertificate } = await openpgp.generateKey({ type: 'ecc', - curve: 'ed25519', + curve: 'ed25519Legacy', userIDs: [{ name: name, email: email }], passphrase: passphrase, format: 'armored', diff --git a/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts b/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts index f22af6f593..6ade2c66e6 100644 --- a/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts +++ b/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts @@ -265,6 +265,7 @@ export class EscrowClient extends BaseEthersClient { return throwError(e); } } + private verifySetupParameters(escrowConfig: IEscrowConfig) { const { recordingOracle, diff --git a/yarn.lock b/yarn.lock index c45b15f6ac..1e635094d0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -169,7 +169,7 @@ __metadata: "@nestjs/schematics": "npm:^11.0.2" "@nestjs/testing": "npm:^10.4.6" "@types/express": "npm:^4.17.13" - "@types/jest": "npm:29.5.1" + "@types/jest": "npm:30.0.0" "@types/node": "npm:22.10.5" "@typescript-eslint/eslint-plugin": "npm:^5.0.0" "@typescript-eslint/parser": "npm:^8.46.3" @@ -182,7 +182,7 @@ __metadata: eslint-plugin-jest: "npm:^28.9.0" eslint-plugin-prettier: "npm:^5.2.1" ethers: "npm:~6.15.0" - jest: "npm:29.5.0" + jest: "npm:30.2.0" lodash: "npm:^4.17.21" prettier: "npm:^3.4.2" reflect-metadata: "npm:^0.2.2" @@ -240,7 +240,7 @@ __metadata: express: "npm:^4.21.0" express-rate-limit: "npm:^7.3.0" hardhat: "npm:^2.26.0" - jest: "npm:^29.7.0" + jest: "npm:^30.2.0" node-cache: "npm:^5.1.2" ts-node: "npm:^10.9.2" typescript: "npm:^5.8.3" @@ -306,7 +306,7 @@ __metadata: "@nestjs/typeorm": "npm:^10.0.1" "@types/body-parser": "npm:^1" "@types/express": "npm:^4.17.13" - "@types/jest": "npm:29.5.12" + "@types/jest": "npm:30.0.0" "@types/jsonwebtoken": "npm:^9.0.7" "@types/node": "npm:22.10.5" "@types/passport": "npm:^0" @@ -324,7 +324,7 @@ __metadata: eslint-plugin-jest: "npm:^28.9.0" eslint-plugin-prettier: "npm:^5.2.1" ethers: "npm:~6.15.0" - jest: "npm:29.7.0" + jest: "npm:30.2.0" joi: "npm:^17.13.3" jsonwebtoken: "npm:^9.0.2" minio: "npm:8.0.6" @@ -370,7 +370,7 @@ __metadata: eslint-plugin-jest: "npm:^28.9.0" eslint-plugin-prettier: "npm:^5.2.1" helmet: "npm:^7.1.0" - jest: "npm:^29.7.0" + jest: "npm:^30.2.0" joi: "npm:^17.13.3" minio: "npm:8.0.6" prettier: "npm:^3.4.2" @@ -392,7 +392,7 @@ __metadata: dotenv: "npm:^17.2.2" eslint: "npm:^9.39.1" eslint-plugin-jest: "npm:^28.9.0" - jest: "npm:^29.7.0" + jest: "npm:^30.2.0" typescript: "npm:^5.8.3" xml2js: "npm:^0.6.2" languageName: unknown @@ -407,7 +407,7 @@ __metadata: "@faker-js/faker": "npm:^9.7.0" "@fontsource/inter": "npm:^5.0.17" "@fontsource/roboto": "npm:^5.2.6" - "@hcaptcha/react-hcaptcha": "npm:^0.3.6" + "@hcaptcha/react-hcaptcha": "npm:^1.14.0" "@hookform/resolvers": "npm:^5.1.0" "@human-protocol/sdk": "workspace:*" "@mui/icons-material": "npm:^7.0.1" @@ -492,7 +492,7 @@ __metadata: "@nestjs/terminus": "npm:^11.0.0" "@nestjs/testing": "npm:^10.4.6" "@types/express": "npm:^4.17.13" - "@types/jest": "npm:29.5.12" + "@types/jest": "npm:30.0.0" "@types/jsonwebtoken": "npm:^9.0.7" "@types/lodash": "npm:^4.17.14" "@types/node": "npm:22.10.5" @@ -510,7 +510,7 @@ __metadata: eslint-plugin-jest: "npm:^28.9.0" eslint-plugin-prettier: "npm:^5.2.1" ethers: "npm:^6.15.0" - jest: "npm:29.7.0" + jest: "npm:30.2.0" joi: "npm:^17.13.3" jsonwebtoken: "npm:^9.0.2" jwt-decode: "npm:^4.0.0" @@ -535,7 +535,7 @@ __metadata: dependencies: "@emotion/react": "npm:^11.10.5" "@emotion/styled": "npm:^11.10.5" - "@hcaptcha/react-hcaptcha": "npm:^1.10.1" + "@hcaptcha/react-hcaptcha": "npm:^1.14.0" "@human-protocol/sdk": "workspace:*" "@mui/icons-material": "npm:^7.0.1" "@mui/lab": "npm:^5.0.0-alpha.141" @@ -614,7 +614,7 @@ __metadata: "@sendgrid/mail": "npm:^8.1.3" "@types/bcrypt": "npm:^5.0.2" "@types/express": "npm:^4.17.13" - "@types/jest": "npm:29.5.12" + "@types/jest": "npm:30.0.0" "@types/node": "npm:22.10.5" "@types/passport-jwt": "npm:^4.0.1" "@types/uuid": "npm:^10.0.0" @@ -635,7 +635,7 @@ __metadata: eslint-plugin-jest: "npm:^28.9.0" eslint-plugin-prettier: "npm:^5.2.1" helmet: "npm:^7.1.0" - jest: "npm:29.7.0" + jest: "npm:30.2.0" joi: "npm:^17.13.3" json-stable-stringify: "npm:^1.2.1" minio: "npm:8.0.6" @@ -690,7 +690,7 @@ __metadata: "@slack/webhook": "npm:^7.0.5" "@types/bcrypt": "npm:^5.0.2" "@types/express": "npm:^4.17.13" - "@types/jest": "npm:29.5.12" + "@types/jest": "npm:30.0.0" "@types/lodash": "npm:^4.17.14" "@types/node": "npm:22.10.5" "@types/passport-jwt": "npm:^4.0.1" @@ -710,7 +710,7 @@ __metadata: ethers: "npm:~6.15.0" globals: "npm:^16.3.0" helmet: "npm:^7.1.0" - jest: "npm:29.7.0" + jest: "npm:30.2.0" joi: "npm:^17.13.3" json-stable-stringify: "npm:^1.2.1" lodash: "npm:^4.17.21" @@ -1351,7 +1351,7 @@ __metadata: languageName: node linkType: hard -"@babel/code-frame@npm:^7.0.0, @babel/code-frame@npm:^7.12.13, @babel/code-frame@npm:^7.16.7, @babel/code-frame@npm:^7.18.6, @babel/code-frame@npm:^7.27.1": +"@babel/code-frame@npm:^7.0.0, @babel/code-frame@npm:^7.16.7, @babel/code-frame@npm:^7.18.6, @babel/code-frame@npm:^7.27.1": version: 7.27.1 resolution: "@babel/code-frame@npm:7.27.1" dependencies: @@ -1369,7 +1369,7 @@ __metadata: languageName: node linkType: hard -"@babel/core@npm:^7.11.6, @babel/core@npm:^7.12.3, @babel/core@npm:^7.16.0, @babel/core@npm:^7.21.3, @babel/core@npm:^7.23.9, @babel/core@npm:^7.24.0, @babel/core@npm:^7.28.0": +"@babel/core@npm:^7.16.0, @babel/core@npm:^7.21.3, @babel/core@npm:^7.23.9, @babel/core@npm:^7.24.0, @babel/core@npm:^7.27.4, @babel/core@npm:^7.28.0": version: 7.28.5 resolution: "@babel/core@npm:7.28.5" dependencies: @@ -1406,7 +1406,7 @@ __metadata: languageName: node linkType: hard -"@babel/generator@npm:^7.28.5, @babel/generator@npm:^7.7.2": +"@babel/generator@npm:^7.27.5, @babel/generator@npm:^7.28.5": version: 7.28.5 resolution: "@babel/generator@npm:7.28.5" dependencies: @@ -1620,7 +1620,7 @@ __metadata: languageName: node linkType: hard -"@babel/parser@npm:^7.1.0, @babel/parser@npm:^7.14.7, @babel/parser@npm:^7.16.8, @babel/parser@npm:^7.20.7, @babel/parser@npm:^7.23.9, @babel/parser@npm:^7.27.2, @babel/parser@npm:^7.28.5": +"@babel/parser@npm:^7.1.0, @babel/parser@npm:^7.16.8, @babel/parser@npm:^7.20.7, @babel/parser@npm:^7.23.9, @babel/parser@npm:^7.27.2, @babel/parser@npm:^7.28.5": version: 7.28.5 resolution: "@babel/parser@npm:7.28.5" dependencies: @@ -1897,7 +1897,7 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-syntax-jsx@npm:^7.27.1, @babel/plugin-syntax-jsx@npm:^7.7.2": +"@babel/plugin-syntax-jsx@npm:^7.27.1": version: 7.27.1 resolution: "@babel/plugin-syntax-jsx@npm:7.27.1" dependencies: @@ -1996,7 +1996,7 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-syntax-typescript@npm:^7.27.1, @babel/plugin-syntax-typescript@npm:^7.7.2": +"@babel/plugin-syntax-typescript@npm:^7.27.1": version: 7.27.1 resolution: "@babel/plugin-syntax-typescript@npm:7.27.1" dependencies: @@ -2874,7 +2874,7 @@ __metadata: languageName: node linkType: hard -"@babel/template@npm:^7.27.1, @babel/template@npm:^7.27.2, @babel/template@npm:^7.3.3": +"@babel/template@npm:^7.27.1, @babel/template@npm:^7.27.2": version: 7.27.2 resolution: "@babel/template@npm:7.27.2" dependencies: @@ -2900,7 +2900,7 @@ __metadata: languageName: node linkType: hard -"@babel/types@npm:^7.0.0, @babel/types@npm:^7.16.8, @babel/types@npm:^7.20.7, @babel/types@npm:^7.21.3, @babel/types@npm:^7.27.1, @babel/types@npm:^7.27.3, @babel/types@npm:^7.28.2, @babel/types@npm:^7.28.4, @babel/types@npm:^7.28.5, @babel/types@npm:^7.3.3, @babel/types@npm:^7.4.4": +"@babel/types@npm:^7.0.0, @babel/types@npm:^7.16.8, @babel/types@npm:^7.20.7, @babel/types@npm:^7.21.3, @babel/types@npm:^7.27.1, @babel/types@npm:^7.27.3, @babel/types@npm:^7.28.2, @babel/types@npm:^7.28.4, @babel/types@npm:^7.28.5, @babel/types@npm:^7.4.4": version: 7.28.5 resolution: "@babel/types@npm:7.28.5" dependencies: @@ -4851,17 +4851,7 @@ __metadata: languageName: node linkType: hard -"@hcaptcha/react-hcaptcha@npm:^0.3.6": - version: 0.3.10 - resolution: "@hcaptcha/react-hcaptcha@npm:0.3.10" - peerDependencies: - react: ">= 16.3.0" - react-dom: ">= 16.3.0" - checksum: 10c0/cb9af880be869baffc0088833b24b8ad2338db997f5a19d4c64f4fd9173d7d339639c2811802d6578d8b2f711a25417ef7f3923e23641cbc31e803d7ac732370 - languageName: node - linkType: hard - -"@hcaptcha/react-hcaptcha@npm:^1.10.1": +"@hcaptcha/react-hcaptcha@npm:^1.14.0": version: 1.14.0 resolution: "@hcaptcha/react-hcaptcha@npm:1.14.0" dependencies: @@ -4923,7 +4913,7 @@ __metadata: hardhat-contract-sizer: "npm:^2.6.1" hardhat-dependency-compiler: "npm:^1.2.1" hardhat-gas-reporter: "npm:^2.0.2" - openpgp: "npm:5.11.2" + openpgp: "npm:6.2.2" prettier: "npm:^3.4.2" prettier-plugin-solidity: "npm:^1.3.1" solidity-coverage: "npm:^0.8.16" @@ -4997,9 +4987,9 @@ __metadata: eslint-plugin-prettier: "npm:^5.2.1" ethers: "npm:~6.15.0" graphql: "npm:^16.8.1" - graphql-request: "npm:^6.1.0" + graphql-request: "npm:^7.3.4" graphql-tag: "npm:^2.12.6" - openpgp: "npm:^5.11.2" + openpgp: "npm:^6.2.2" prettier: "npm:^3.4.2" secp256k1: "npm:^5.0.1" ts-node: "npm:^10.9.2" @@ -5377,152 +5367,184 @@ __metadata: languageName: node linkType: hard -"@jest/console@npm:^29.7.0": - version: 29.7.0 - resolution: "@jest/console@npm:29.7.0" +"@jest/console@npm:30.2.0": + version: 30.2.0 + resolution: "@jest/console@npm:30.2.0" dependencies: - "@jest/types": "npm:^29.6.3" + "@jest/types": "npm:30.2.0" "@types/node": "npm:*" - chalk: "npm:^4.0.0" - jest-message-util: "npm:^29.7.0" - jest-util: "npm:^29.7.0" + chalk: "npm:^4.1.2" + jest-message-util: "npm:30.2.0" + jest-util: "npm:30.2.0" slash: "npm:^3.0.0" - checksum: 10c0/7be408781d0a6f657e969cbec13b540c329671819c2f57acfad0dae9dbfe2c9be859f38fe99b35dba9ff1536937dc6ddc69fdcd2794812fa3c647a1619797f6c + checksum: 10c0/ecf7ca43698863095500710a5aa08c38b1731c9d89ba32f4d9da7424b53ce1e86b3db8ccbbb27b695f49b4f94bc1d7d0c63c751d73c83d59488a682bc98b7e70 languageName: node linkType: hard -"@jest/core@npm:^29.5.0, @jest/core@npm:^29.7.0": - version: 29.7.0 - resolution: "@jest/core@npm:29.7.0" +"@jest/core@npm:30.2.0": + version: 30.2.0 + resolution: "@jest/core@npm:30.2.0" dependencies: - "@jest/console": "npm:^29.7.0" - "@jest/reporters": "npm:^29.7.0" - "@jest/test-result": "npm:^29.7.0" - "@jest/transform": "npm:^29.7.0" - "@jest/types": "npm:^29.6.3" + "@jest/console": "npm:30.2.0" + "@jest/pattern": "npm:30.0.1" + "@jest/reporters": "npm:30.2.0" + "@jest/test-result": "npm:30.2.0" + "@jest/transform": "npm:30.2.0" + "@jest/types": "npm:30.2.0" "@types/node": "npm:*" - ansi-escapes: "npm:^4.2.1" - chalk: "npm:^4.0.0" - ci-info: "npm:^3.2.0" - exit: "npm:^0.1.2" - graceful-fs: "npm:^4.2.9" - jest-changed-files: "npm:^29.7.0" - jest-config: "npm:^29.7.0" - jest-haste-map: "npm:^29.7.0" - jest-message-util: "npm:^29.7.0" - jest-regex-util: "npm:^29.6.3" - jest-resolve: "npm:^29.7.0" - jest-resolve-dependencies: "npm:^29.7.0" - jest-runner: "npm:^29.7.0" - jest-runtime: "npm:^29.7.0" - jest-snapshot: "npm:^29.7.0" - jest-util: "npm:^29.7.0" - jest-validate: "npm:^29.7.0" - jest-watcher: "npm:^29.7.0" - micromatch: "npm:^4.0.4" - pretty-format: "npm:^29.7.0" + ansi-escapes: "npm:^4.3.2" + chalk: "npm:^4.1.2" + ci-info: "npm:^4.2.0" + exit-x: "npm:^0.2.2" + graceful-fs: "npm:^4.2.11" + jest-changed-files: "npm:30.2.0" + jest-config: "npm:30.2.0" + jest-haste-map: "npm:30.2.0" + jest-message-util: "npm:30.2.0" + jest-regex-util: "npm:30.0.1" + jest-resolve: "npm:30.2.0" + jest-resolve-dependencies: "npm:30.2.0" + jest-runner: "npm:30.2.0" + jest-runtime: "npm:30.2.0" + jest-snapshot: "npm:30.2.0" + jest-util: "npm:30.2.0" + jest-validate: "npm:30.2.0" + jest-watcher: "npm:30.2.0" + micromatch: "npm:^4.0.8" + pretty-format: "npm:30.2.0" slash: "npm:^3.0.0" - strip-ansi: "npm:^6.0.0" peerDependencies: node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 peerDependenciesMeta: node-notifier: optional: true - checksum: 10c0/934f7bf73190f029ac0f96662c85cd276ec460d407baf6b0dbaec2872e157db4d55a7ee0b1c43b18874602f662b37cb973dda469a4e6d88b4e4845b521adeeb2 + checksum: 10c0/03b3e35df3bbbbe28e2b53c0fe82d39b748d99b3bc88bb645c76593cdca44d7115f03ef6e6a1715f0862151d0ebab496199283def248fc05eb520f6aec6b20f3 languageName: node linkType: hard -"@jest/environment@npm:^29.7.0": - version: 29.7.0 - resolution: "@jest/environment@npm:29.7.0" +"@jest/diff-sequences@npm:30.0.1": + version: 30.0.1 + resolution: "@jest/diff-sequences@npm:30.0.1" + checksum: 10c0/3a840404e6021725ef7f86b11f7b2d13dd02846481264db0e447ee33b7ee992134e402cdc8b8b0ac969d37c6c0183044e382dedee72001cdf50cfb3c8088de74 + languageName: node + linkType: hard + +"@jest/environment@npm:30.2.0": + version: 30.2.0 + resolution: "@jest/environment@npm:30.2.0" dependencies: - "@jest/fake-timers": "npm:^29.7.0" - "@jest/types": "npm:^29.6.3" + "@jest/fake-timers": "npm:30.2.0" + "@jest/types": "npm:30.2.0" "@types/node": "npm:*" - jest-mock: "npm:^29.7.0" - checksum: 10c0/c7b1b40c618f8baf4d00609022d2afa086d9c6acc706f303a70bb4b67275868f620ad2e1a9efc5edd418906157337cce50589a627a6400bbdf117d351b91ef86 + jest-mock: "npm:30.2.0" + checksum: 10c0/56a9f1b82ee2623c13eece7d58188be35bd6e5c3c4ee3fbaedb1c4d7242c1b57d020f1a26ab127fa9496fdc11306c7ad1c4a2b7eba1fc726a27ae0873e907e47 languageName: node linkType: hard -"@jest/expect-utils@npm:^29.7.0": - version: 29.7.0 - resolution: "@jest/expect-utils@npm:29.7.0" +"@jest/expect-utils@npm:30.2.0": + version: 30.2.0 + resolution: "@jest/expect-utils@npm:30.2.0" dependencies: - jest-get-type: "npm:^29.6.3" - checksum: 10c0/60b79d23a5358dc50d9510d726443316253ecda3a7fb8072e1526b3e0d3b14f066ee112db95699b7a43ad3f0b61b750c72e28a5a1cac361d7a2bb34747fa938a + "@jest/get-type": "npm:30.1.0" + checksum: 10c0/e25a809ff2ab62292e2569f8d97f89168d27d078903f0306af5f70f1771b7efc62c458eca1dcb491ab1ed96cefedf403bd7acbb050c997105bc29b220fd9d61a languageName: node linkType: hard -"@jest/expect@npm:^29.7.0": - version: 29.7.0 - resolution: "@jest/expect@npm:29.7.0" +"@jest/expect@npm:30.2.0": + version: 30.2.0 + resolution: "@jest/expect@npm:30.2.0" dependencies: - expect: "npm:^29.7.0" - jest-snapshot: "npm:^29.7.0" - checksum: 10c0/b41f193fb697d3ced134349250aed6ccea075e48c4f803159db102b826a4e473397c68c31118259868fd69a5cba70e97e1c26d2c2ff716ca39dc73a2ccec037e + expect: "npm:30.2.0" + jest-snapshot: "npm:30.2.0" + checksum: 10c0/3984879022780dd480301c560cef465156b29d610f2c698fcdf81ad76930411d7816eff7cb721e81a1d9aaa8c2240a73c20be9385d1978c14b405a2ac6c9104a languageName: node linkType: hard -"@jest/fake-timers@npm:^29.7.0": - version: 29.7.0 - resolution: "@jest/fake-timers@npm:29.7.0" +"@jest/fake-timers@npm:30.2.0": + version: 30.2.0 + resolution: "@jest/fake-timers@npm:30.2.0" dependencies: - "@jest/types": "npm:^29.6.3" - "@sinonjs/fake-timers": "npm:^10.0.2" + "@jest/types": "npm:30.2.0" + "@sinonjs/fake-timers": "npm:^13.0.0" "@types/node": "npm:*" - jest-message-util: "npm:^29.7.0" - jest-mock: "npm:^29.7.0" - jest-util: "npm:^29.7.0" - checksum: 10c0/cf0a8bcda801b28dc2e2b2ba36302200ee8104a45ad7a21e6c234148932f826cb3bc57c8df3b7b815aeea0861d7b6ca6f0d4778f93b9219398ef28749e03595c + jest-message-util: "npm:30.2.0" + jest-mock: "npm:30.2.0" + jest-util: "npm:30.2.0" + checksum: 10c0/b29505528e546f08489535814f7dfcd3a2318660b987d605f44d41672e91a0c8c0dfc01e3dd1302e66e511409c3012d41e2e16703b214502b54ccc023773e3dc languageName: node linkType: hard -"@jest/globals@npm:^29.7.0": - version: 29.7.0 - resolution: "@jest/globals@npm:29.7.0" +"@jest/get-type@npm:30.1.0": + version: 30.1.0 + resolution: "@jest/get-type@npm:30.1.0" + checksum: 10c0/3e65fd5015f551c51ec68fca31bbd25b466be0e8ee8075d9610fa1c686ea1e70a942a0effc7b10f4ea9a338c24337e1ad97ff69d3ebacc4681b7e3e80d1b24ac + languageName: node + linkType: hard + +"@jest/globals@npm:30.2.0": + version: 30.2.0 + resolution: "@jest/globals@npm:30.2.0" dependencies: - "@jest/environment": "npm:^29.7.0" - "@jest/expect": "npm:^29.7.0" - "@jest/types": "npm:^29.6.3" - jest-mock: "npm:^29.7.0" - checksum: 10c0/a385c99396878fe6e4460c43bd7bb0a5cc52befb462cc6e7f2a3810f9e7bcce7cdeb51908fd530391ee452dc856c98baa2c5f5fa8a5b30b071d31ef7f6955cea + "@jest/environment": "npm:30.2.0" + "@jest/expect": "npm:30.2.0" + "@jest/types": "npm:30.2.0" + jest-mock: "npm:30.2.0" + checksum: 10c0/7433a501e3122e94b24a7bacc44fdc3921b20abf67c9d795f5bdd169f1beac058cff8109e4fddf71fdc8b18e532cb88c55412ca9927966f354930d6bb3fcaf9c languageName: node linkType: hard -"@jest/reporters@npm:^29.7.0": - version: 29.7.0 - resolution: "@jest/reporters@npm:29.7.0" +"@jest/pattern@npm:30.0.1": + version: 30.0.1 + resolution: "@jest/pattern@npm:30.0.1" + dependencies: + "@types/node": "npm:*" + jest-regex-util: "npm:30.0.1" + checksum: 10c0/32c5a7bfb6c591f004dac0ed36d645002ed168971e4c89bd915d1577031672870032594767557b855c5bc330aa1e39a2f54bf150d2ee88a7a0886e9cb65318bc + languageName: node + linkType: hard + +"@jest/reporters@npm:30.2.0": + version: 30.2.0 + resolution: "@jest/reporters@npm:30.2.0" dependencies: "@bcoe/v8-coverage": "npm:^0.2.3" - "@jest/console": "npm:^29.7.0" - "@jest/test-result": "npm:^29.7.0" - "@jest/transform": "npm:^29.7.0" - "@jest/types": "npm:^29.6.3" - "@jridgewell/trace-mapping": "npm:^0.3.18" + "@jest/console": "npm:30.2.0" + "@jest/test-result": "npm:30.2.0" + "@jest/transform": "npm:30.2.0" + "@jest/types": "npm:30.2.0" + "@jridgewell/trace-mapping": "npm:^0.3.25" "@types/node": "npm:*" - chalk: "npm:^4.0.0" - collect-v8-coverage: "npm:^1.0.0" - exit: "npm:^0.1.2" - glob: "npm:^7.1.3" - graceful-fs: "npm:^4.2.9" + chalk: "npm:^4.1.2" + collect-v8-coverage: "npm:^1.0.2" + exit-x: "npm:^0.2.2" + glob: "npm:^10.3.10" + graceful-fs: "npm:^4.2.11" istanbul-lib-coverage: "npm:^3.0.0" istanbul-lib-instrument: "npm:^6.0.0" istanbul-lib-report: "npm:^3.0.0" - istanbul-lib-source-maps: "npm:^4.0.0" + istanbul-lib-source-maps: "npm:^5.0.0" istanbul-reports: "npm:^3.1.3" - jest-message-util: "npm:^29.7.0" - jest-util: "npm:^29.7.0" - jest-worker: "npm:^29.7.0" + jest-message-util: "npm:30.2.0" + jest-util: "npm:30.2.0" + jest-worker: "npm:30.2.0" slash: "npm:^3.0.0" - string-length: "npm:^4.0.1" - strip-ansi: "npm:^6.0.0" + string-length: "npm:^4.0.2" v8-to-istanbul: "npm:^9.0.1" peerDependencies: node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 peerDependenciesMeta: node-notifier: optional: true - checksum: 10c0/a754402a799541c6e5aff2c8160562525e2a47e7d568f01ebfc4da66522de39cbb809bbb0a841c7052e4270d79214e70aec3c169e4eae42a03bc1a8a20cb9fa2 + checksum: 10c0/1f25d0896f857f220466cae3145a20f9e13e7d73aeccf87a1f8a5accb42bb7a564864ba63befa3494d76d1335b86c24d66054d62330c3dcffc9c2c5f4e740d6e + languageName: node + linkType: hard + +"@jest/schemas@npm:30.0.5": + version: 30.0.5 + resolution: "@jest/schemas@npm:30.0.5" + dependencies: + "@sinclair/typebox": "npm:^0.34.0" + checksum: 10c0/449dcd7ec5c6505e9ac3169d1143937e67044ae3e66a729ce4baf31812dfd30535f2b3b2934393c97cfdf5984ff581120e6b38f62b8560c8b5b7cc07f4175f65 languageName: node linkType: hard @@ -5535,65 +5557,92 @@ __metadata: languageName: node linkType: hard -"@jest/source-map@npm:^29.6.3": - version: 29.6.3 - resolution: "@jest/source-map@npm:29.6.3" +"@jest/snapshot-utils@npm:30.2.0": + version: 30.2.0 + resolution: "@jest/snapshot-utils@npm:30.2.0" dependencies: - "@jridgewell/trace-mapping": "npm:^0.3.18" - callsites: "npm:^3.0.0" - graceful-fs: "npm:^4.2.9" - checksum: 10c0/a2f177081830a2e8ad3f2e29e20b63bd40bade294880b595acf2fc09ec74b6a9dd98f126a2baa2bf4941acd89b13a4ade5351b3885c224107083a0059b60a219 + "@jest/types": "npm:30.2.0" + chalk: "npm:^4.1.2" + graceful-fs: "npm:^4.2.11" + natural-compare: "npm:^1.4.0" + checksum: 10c0/df69ee3b95d64db6d1e79e39d5dc226e417b412a1d5113264b487eb3a8887366a7952c350c378e2292f8e83ec1b3be22040317b795e85eb431830cbde06d09d8 languageName: node linkType: hard -"@jest/test-result@npm:^29.7.0": - version: 29.7.0 - resolution: "@jest/test-result@npm:29.7.0" +"@jest/source-map@npm:30.0.1": + version: 30.0.1 + resolution: "@jest/source-map@npm:30.0.1" dependencies: - "@jest/console": "npm:^29.7.0" - "@jest/types": "npm:^29.6.3" - "@types/istanbul-lib-coverage": "npm:^2.0.0" - collect-v8-coverage: "npm:^1.0.0" - checksum: 10c0/7de54090e54a674ca173470b55dc1afdee994f2d70d185c80236003efd3fa2b753fff51ffcdda8e2890244c411fd2267529d42c4a50a8303755041ee493e6a04 + "@jridgewell/trace-mapping": "npm:^0.3.25" + callsites: "npm:^3.1.0" + graceful-fs: "npm:^4.2.11" + checksum: 10c0/e7bda2786fc9f483d9dd7566c58c4bd948830997be862dfe80a3ae5550ff3f84753abb52e705d02ebe9db9f34ba7ebec4c2db11882048cdeef7a66f6332b3897 languageName: node linkType: hard -"@jest/test-sequencer@npm:^29.7.0": - version: 29.7.0 - resolution: "@jest/test-sequencer@npm:29.7.0" +"@jest/test-result@npm:30.2.0": + version: 30.2.0 + resolution: "@jest/test-result@npm:30.2.0" dependencies: - "@jest/test-result": "npm:^29.7.0" - graceful-fs: "npm:^4.2.9" - jest-haste-map: "npm:^29.7.0" + "@jest/console": "npm:30.2.0" + "@jest/types": "npm:30.2.0" + "@types/istanbul-lib-coverage": "npm:^2.0.6" + collect-v8-coverage: "npm:^1.0.2" + checksum: 10c0/87566d56b4f90630282c103f41ea9031f4647902f2cd9839bc49af6248301c1a95cbc4432a9512e61f6c6d778e8b925d0573588b26a211d3198c62471ba08c81 + languageName: node + linkType: hard + +"@jest/test-sequencer@npm:30.2.0": + version: 30.2.0 + resolution: "@jest/test-sequencer@npm:30.2.0" + dependencies: + "@jest/test-result": "npm:30.2.0" + graceful-fs: "npm:^4.2.11" + jest-haste-map: "npm:30.2.0" slash: "npm:^3.0.0" - checksum: 10c0/593a8c4272797bb5628984486080cbf57aed09c7cfdc0a634e8c06c38c6bef329c46c0016e84555ee55d1cd1f381518cf1890990ff845524c1123720c8c1481b + checksum: 10c0/b8366e629b885bfc4b2b95f34f47405e70120eb8601f42de20ea4de308a5088d7bd9f535abf67a2a0d083a2b49864176e1333e036426a5d6b6bd02c1c4dda40b languageName: node linkType: hard -"@jest/transform@npm:^29.7.0": - version: 29.7.0 - resolution: "@jest/transform@npm:29.7.0" +"@jest/transform@npm:30.2.0": + version: 30.2.0 + resolution: "@jest/transform@npm:30.2.0" dependencies: - "@babel/core": "npm:^7.11.6" - "@jest/types": "npm:^29.6.3" - "@jridgewell/trace-mapping": "npm:^0.3.18" - babel-plugin-istanbul: "npm:^6.1.1" - chalk: "npm:^4.0.0" + "@babel/core": "npm:^7.27.4" + "@jest/types": "npm:30.2.0" + "@jridgewell/trace-mapping": "npm:^0.3.25" + babel-plugin-istanbul: "npm:^7.0.1" + chalk: "npm:^4.1.2" convert-source-map: "npm:^2.0.0" fast-json-stable-stringify: "npm:^2.1.0" - graceful-fs: "npm:^4.2.9" - jest-haste-map: "npm:^29.7.0" - jest-regex-util: "npm:^29.6.3" - jest-util: "npm:^29.7.0" - micromatch: "npm:^4.0.4" - pirates: "npm:^4.0.4" + graceful-fs: "npm:^4.2.11" + jest-haste-map: "npm:30.2.0" + jest-regex-util: "npm:30.0.1" + jest-util: "npm:30.2.0" + micromatch: "npm:^4.0.8" + pirates: "npm:^4.0.7" slash: "npm:^3.0.0" - write-file-atomic: "npm:^4.0.2" - checksum: 10c0/7f4a7f73dcf45dfdf280c7aa283cbac7b6e5a904813c3a93ead7e55873761fc20d5c4f0191d2019004fac6f55f061c82eb3249c2901164ad80e362e7a7ede5a6 + write-file-atomic: "npm:^5.0.1" + checksum: 10c0/c0f21576de9f7ad8a2647450b5cd127d7c60176c19a666230241d121b9f928b036dd19973363e4acd7db2f8b82caff2b624930f57471be6092d73a7775365606 + languageName: node + linkType: hard + +"@jest/types@npm:30.2.0": + version: 30.2.0 + resolution: "@jest/types@npm:30.2.0" + dependencies: + "@jest/pattern": "npm:30.0.1" + "@jest/schemas": "npm:30.0.5" + "@types/istanbul-lib-coverage": "npm:^2.0.6" + "@types/istanbul-reports": "npm:^3.0.4" + "@types/node": "npm:*" + "@types/yargs": "npm:^17.0.33" + chalk: "npm:^4.1.2" + checksum: 10c0/ae121f6963bd9ed1cd9651db7be91bf14c05bff0d0eec4fca9fecf586bea4005e8f1de8cc9b8ef72e424ea96a309d123bef510b55a6a17a3b4b91a39d775e5cd languageName: node linkType: hard -"@jest/types@npm:^29.5.0, @jest/types@npm:^29.6.3": +"@jest/types@npm:^29.6.3": version: 29.6.3 resolution: "@jest/types@npm:29.6.3" dependencies: @@ -5661,7 +5710,7 @@ __metadata: languageName: node linkType: hard -"@jridgewell/trace-mapping@npm:^0.3.12, @jridgewell/trace-mapping@npm:^0.3.18, @jridgewell/trace-mapping@npm:^0.3.24, @jridgewell/trace-mapping@npm:^0.3.25, @jridgewell/trace-mapping@npm:^0.3.28": +"@jridgewell/trace-mapping@npm:^0.3.12, @jridgewell/trace-mapping@npm:^0.3.23, @jridgewell/trace-mapping@npm:^0.3.24, @jridgewell/trace-mapping@npm:^0.3.25, @jridgewell/trace-mapping@npm:^0.3.28": version: 0.3.31 resolution: "@jridgewell/trace-mapping@npm:0.3.31" dependencies: @@ -9084,7 +9133,14 @@ __metadata: languageName: node linkType: hard -"@sinonjs/commons@npm:^3.0.0": +"@sinclair/typebox@npm:^0.34.0": + version: 0.34.41 + resolution: "@sinclair/typebox@npm:0.34.41" + checksum: 10c0/0fb61fc2f90c25e30b19b0096eb8ab3ccef401d3e2acfce42168ff0ee877ba5981c8243fa6b1035ac756cde95316724e978b2837dd642d7e4e095de03a999c90 + languageName: node + linkType: hard + +"@sinonjs/commons@npm:^3.0.1": version: 3.0.1 resolution: "@sinonjs/commons@npm:3.0.1" dependencies: @@ -9093,12 +9149,12 @@ __metadata: languageName: node linkType: hard -"@sinonjs/fake-timers@npm:^10.0.2": - version: 10.3.0 - resolution: "@sinonjs/fake-timers@npm:10.3.0" +"@sinonjs/fake-timers@npm:^13.0.0": + version: 13.0.5 + resolution: "@sinonjs/fake-timers@npm:13.0.5" dependencies: - "@sinonjs/commons": "npm:^3.0.0" - checksum: 10c0/2e2fb6cc57f227912814085b7b01fede050cd4746ea8d49a1e44d5a0e56a804663b0340ae2f11af7559ea9bf4d087a11f2f646197a660ea3cb04e19efc04aa63 + "@sinonjs/commons": "npm:^3.0.1" + checksum: 10c0/a707476efd523d2138ef6bba916c83c4a377a8372ef04fad87499458af9f01afc58f4f245c5fd062793d6d70587309330c6f96947b5bd5697961c18004dc3e26 languageName: node linkType: hard @@ -10871,7 +10927,7 @@ __metadata: languageName: node linkType: hard -"@types/babel__core@npm:^7.1.14, @types/babel__core@npm:^7.20.5": +"@types/babel__core@npm:^7.20.5": version: 7.20.5 resolution: "@types/babel__core@npm:7.20.5" dependencies: @@ -10903,7 +10959,7 @@ __metadata: languageName: node linkType: hard -"@types/babel__traverse@npm:*, @types/babel__traverse@npm:^7.0.6": +"@types/babel__traverse@npm:*": version: 7.28.0 resolution: "@types/babel__traverse@npm:7.28.0" dependencies: @@ -11183,15 +11239,6 @@ __metadata: languageName: node linkType: hard -"@types/graceful-fs@npm:^4.1.3": - version: 4.1.9 - resolution: "@types/graceful-fs@npm:4.1.9" - dependencies: - "@types/node": "npm:*" - checksum: 10c0/235d2fc69741448e853333b7c3d1180a966dd2b8972c8cbcd6b2a0c6cd7f8d582ab2b8e58219dbc62cce8f1b40aa317ff78ea2201cdd8249da5025adebed6f0b - languageName: node - linkType: hard - "@types/hast@npm:^3.0.4": version: 3.0.4 resolution: "@types/hast@npm:3.0.4" @@ -11226,7 +11273,7 @@ __metadata: languageName: node linkType: hard -"@types/istanbul-lib-coverage@npm:*, @types/istanbul-lib-coverage@npm:^2.0.0, @types/istanbul-lib-coverage@npm:^2.0.1": +"@types/istanbul-lib-coverage@npm:*, @types/istanbul-lib-coverage@npm:^2.0.0, @types/istanbul-lib-coverage@npm:^2.0.1, @types/istanbul-lib-coverage@npm:^2.0.6": version: 2.0.6 resolution: "@types/istanbul-lib-coverage@npm:2.0.6" checksum: 10c0/3948088654f3eeb45363f1db158354fb013b362dba2a5c2c18c559484d5eb9f6fd85b23d66c0a7c2fcfab7308d0a585b14dadaca6cc8bf89ebfdc7f8f5102fb7 @@ -11242,7 +11289,7 @@ __metadata: languageName: node linkType: hard -"@types/istanbul-reports@npm:^3.0.0": +"@types/istanbul-reports@npm:^3.0.0, @types/istanbul-reports@npm:^3.0.4": version: 3.0.4 resolution: "@types/istanbul-reports@npm:3.0.4" dependencies: @@ -11251,23 +11298,13 @@ __metadata: languageName: node linkType: hard -"@types/jest@npm:29.5.1": - version: 29.5.1 - resolution: "@types/jest@npm:29.5.1" +"@types/jest@npm:30.0.0": + version: 30.0.0 + resolution: "@types/jest@npm:30.0.0" dependencies: - expect: "npm:^29.0.0" - pretty-format: "npm:^29.0.0" - checksum: 10c0/ba9df58fa0c813e1dda529e34bcec2d0e0bbac2d3e921a86c8e10d77fc5165bd8e5324eeb7071bfe0490e7d1055db34ef80d57e05bd967edae00df4158097ec6 - languageName: node - linkType: hard - -"@types/jest@npm:29.5.12": - version: 29.5.12 - resolution: "@types/jest@npm:29.5.12" - dependencies: - expect: "npm:^29.0.0" - pretty-format: "npm:^29.0.0" - checksum: 10c0/25fc8e4c611fa6c4421e631432e9f0a6865a8cb07c9815ec9ac90d630271cad773b2ee5fe08066f7b95bebd18bb967f8ce05d018ee9ab0430f9dfd1d84665b6f + expect: "npm:^30.0.0" + pretty-format: "npm:^30.0.0" + checksum: 10c0/20c6ce574154bc16f8dd6a97afacca4b8c4921a819496a3970382031c509ebe87a1b37b152a1b8475089b82d8ca951a9e95beb4b9bf78fbf579b1536f0b65969 languageName: node linkType: hard @@ -11638,7 +11675,7 @@ __metadata: languageName: node linkType: hard -"@types/stack-utils@npm:^2.0.0": +"@types/stack-utils@npm:^2.0.3": version: 2.0.3 resolution: "@types/stack-utils@npm:2.0.3" checksum: 10c0/1f4658385ae936330581bcb8aa3a066df03867d90281cdf89cc356d404bd6579be0f11902304e1f775d92df22c6dd761d4451c804b0a4fba973e06211e9bd77c @@ -11744,6 +11781,15 @@ __metadata: languageName: node linkType: hard +"@types/yargs@npm:^17.0.33": + version: 17.0.35 + resolution: "@types/yargs@npm:17.0.35" + dependencies: + "@types/yargs-parser": "npm:*" + checksum: 10c0/609557826a6b85e73ccf587923f6429850d6dc70e420b455bab4601b670bfadf684b09ae288bccedab042c48ba65f1666133cf375814204b544009f57d6eef63 + languageName: node + linkType: hard + "@types/yargs@npm:^17.0.8": version: 17.0.34 resolution: "@types/yargs@npm:17.0.34" @@ -12421,6 +12467,13 @@ __metadata: languageName: node linkType: hard +"@ungap/structured-clone@npm:^1.3.0": + version: 1.3.0 + resolution: "@ungap/structured-clone@npm:1.3.0" + checksum: 10c0/0fc3097c2540ada1fc340ee56d58d96b5b536a2a0dab6e3ec17d4bfc8c4c86db345f61a375a8185f9da96f01c69678f836a2b57eeaa9e4b8eeafd26428e57b0a + languageName: node + linkType: hard + "@unrs/resolver-binding-android-arm-eabi@npm:1.11.1": version: 1.11.1 resolution: "@unrs/resolver-binding-android-arm-eabi@npm:1.11.1" @@ -13906,7 +13959,7 @@ __metadata: languageName: node linkType: hard -"ansi-styles@npm:^5.0.0": +"ansi-styles@npm:^5.2.0": version: 5.2.0 resolution: "ansi-styles@npm:5.2.0" checksum: 10c0/9c4ca80eb3c2fb7b33841c210d2f20807f40865d27008d7c3f707b7f95cab7d67462a565e2388ac3285b71cb3d9bb2173de8da37c57692a362885ec34d6e27df @@ -13934,7 +13987,7 @@ __metadata: languageName: node linkType: hard -"anymatch@npm:^3.0.3, anymatch@npm:^3.1.3, anymatch@npm:~3.1.2": +"anymatch@npm:^3.1.3, anymatch@npm:~3.1.2": version: 3.1.3 resolution: "anymatch@npm:3.1.3" dependencies: @@ -14433,45 +14486,42 @@ __metadata: languageName: node linkType: hard -"babel-jest@npm:^29.7.0": - version: 29.7.0 - resolution: "babel-jest@npm:29.7.0" +"babel-jest@npm:30.2.0": + version: 30.2.0 + resolution: "babel-jest@npm:30.2.0" dependencies: - "@jest/transform": "npm:^29.7.0" - "@types/babel__core": "npm:^7.1.14" - babel-plugin-istanbul: "npm:^6.1.1" - babel-preset-jest: "npm:^29.6.3" - chalk: "npm:^4.0.0" - graceful-fs: "npm:^4.2.9" + "@jest/transform": "npm:30.2.0" + "@types/babel__core": "npm:^7.20.5" + babel-plugin-istanbul: "npm:^7.0.1" + babel-preset-jest: "npm:30.2.0" + chalk: "npm:^4.1.2" + graceful-fs: "npm:^4.2.11" slash: "npm:^3.0.0" peerDependencies: - "@babel/core": ^7.8.0 - checksum: 10c0/2eda9c1391e51936ca573dd1aedfee07b14c59b33dbe16ef347873ddd777bcf6e2fc739681e9e9661ab54ef84a3109a03725be2ac32cd2124c07ea4401cbe8c1 + "@babel/core": ^7.11.0 || ^8.0.0-0 + checksum: 10c0/673b8c87e5aec97c4f7372319c005d1e2b018e2f2e973378c7fb0a4f1e111f89872e6f1e49dd50aff6290cd881c865117ade67f2c78a356a8275ab21af47340d languageName: node linkType: hard -"babel-plugin-istanbul@npm:^6.1.1": - version: 6.1.1 - resolution: "babel-plugin-istanbul@npm:6.1.1" +"babel-plugin-istanbul@npm:^7.0.1": + version: 7.0.1 + resolution: "babel-plugin-istanbul@npm:7.0.1" dependencies: "@babel/helper-plugin-utils": "npm:^7.0.0" "@istanbuljs/load-nyc-config": "npm:^1.0.0" - "@istanbuljs/schema": "npm:^0.1.2" - istanbul-lib-instrument: "npm:^5.0.4" + "@istanbuljs/schema": "npm:^0.1.3" + istanbul-lib-instrument: "npm:^6.0.2" test-exclude: "npm:^6.0.0" - checksum: 10c0/1075657feb705e00fd9463b329921856d3775d9867c5054b449317d39153f8fbcebd3e02ebf00432824e647faff3683a9ca0a941325ef1afe9b3c4dd51b24beb + checksum: 10c0/92975e3df12503b168695463b451468da0c20e117807221652eb8e33a26c160f3b9d4c5c4e65495657420e871c6a54e5e31f539e2e1da37ef2261d7ddd4b1dfd languageName: node linkType: hard -"babel-plugin-jest-hoist@npm:^29.6.3": - version: 29.6.3 - resolution: "babel-plugin-jest-hoist@npm:29.6.3" +"babel-plugin-jest-hoist@npm:30.2.0": + version: 30.2.0 + resolution: "babel-plugin-jest-hoist@npm:30.2.0" dependencies: - "@babel/template": "npm:^7.3.3" - "@babel/types": "npm:^7.3.3" - "@types/babel__core": "npm:^7.1.14" - "@types/babel__traverse": "npm:^7.0.6" - checksum: 10c0/7e6451caaf7dce33d010b8aafb970e62f1b0c0b57f4978c37b0d457bbcf0874d75a395a102daf0bae0bd14eafb9f6e9a165ee5e899c0a4f1f3bb2e07b304ed2e + "@types/babel__core": "npm:^7.20.5" + checksum: 10c0/a2bd862aaa4875127c02e6020d3da67556a8f25981060252668dda65cf9a146202937ae80d2e8612c3c47afe19ac85577647b8cc216faa98567c685525a3f203 languageName: node linkType: hard @@ -14529,7 +14579,7 @@ __metadata: languageName: node linkType: hard -"babel-preset-current-node-syntax@npm:^1.0.0": +"babel-preset-current-node-syntax@npm:^1.2.0": version: 1.2.0 resolution: "babel-preset-current-node-syntax@npm:1.2.0" dependencies: @@ -14554,15 +14604,15 @@ __metadata: languageName: node linkType: hard -"babel-preset-jest@npm:^29.6.3": - version: 29.6.3 - resolution: "babel-preset-jest@npm:29.6.3" +"babel-preset-jest@npm:30.2.0": + version: 30.2.0 + resolution: "babel-preset-jest@npm:30.2.0" dependencies: - babel-plugin-jest-hoist: "npm:^29.6.3" - babel-preset-current-node-syntax: "npm:^1.0.0" + babel-plugin-jest-hoist: "npm:30.2.0" + babel-preset-current-node-syntax: "npm:^1.2.0" peerDependencies: - "@babel/core": ^7.0.0 - checksum: 10c0/ec5fd0276b5630b05f0c14bb97cc3815c6b31600c683ebb51372e54dcb776cff790bdeeabd5b8d01ede375a040337ccbf6a3ccd68d3a34219125945e167ad943 + "@babel/core": ^7.11.0 || ^8.0.0-beta.1 + checksum: 10c0/fb2727bad450256146d63b5231b83a7638e73b96c9612296a20afd65fb8c76678ef9bc6fa56e81d1303109258aeb4fccea5b96568744059e47d3c6e3ebc98bd9 languageName: node linkType: hard @@ -15277,7 +15327,7 @@ __metadata: languageName: node linkType: hard -"callsites@npm:^3.0.0": +"callsites@npm:^3.0.0, callsites@npm:^3.1.0": version: 3.1.0 resolution: "callsites@npm:3.1.0" checksum: 10c0/fff92277400eb06c3079f9e74f3af120db9f8ea03bad0e84d9aede54bbe2d44a56cccb5f6cf12211f93f52306df87077ecec5b712794c5a9b5dac6d615a3f301 @@ -15291,7 +15341,7 @@ __metadata: languageName: node linkType: hard -"camelcase@npm:^6.0.0, camelcase@npm:^6.2.0": +"camelcase@npm:^6.0.0, camelcase@npm:^6.2.0, camelcase@npm:^6.3.0": version: 6.3.0 resolution: "camelcase@npm:6.3.0" checksum: 10c0/0d701658219bd3116d12da3eab31acddb3f9440790c0792e0d398f0a520a6a4058018e546862b6fba89d7ae990efaeb97da71e1913e9ebf5a8b5621a3d55c710 @@ -15569,7 +15619,7 @@ __metadata: languageName: node linkType: hard -"ci-info@npm:^4.0.0": +"ci-info@npm:^4.0.0, ci-info@npm:^4.2.0": version: 4.3.1 resolution: "ci-info@npm:4.3.1" checksum: 10c0/7dd82000f514d76ddfe7775e4cb0d66e5c638f5fa0e2a3be29557e898da0d32ac04f231217d414d07fb968b1fbc6d980ee17ddde0d2c516f23da9cfff608f6c1 @@ -15587,10 +15637,10 @@ __metadata: languageName: node linkType: hard -"cjs-module-lexer@npm:^1.0.0": - version: 1.4.3 - resolution: "cjs-module-lexer@npm:1.4.3" - checksum: 10c0/076b3af85adc4d65dbdab1b5b240fe5b45d44fcf0ef9d429044dd94d19be5589376805c44fb2d4b3e684e5fe6a9b7cf3e426476a6507c45283c5fc6ff95240be +"cjs-module-lexer@npm:^2.1.0": + version: 2.1.1 + resolution: "cjs-module-lexer@npm:2.1.1" + checksum: 10c0/813697c0ed1533f4a88bd8051d8ae1cb1b21d3ff1c6a5720353817d50c3f3f83bb2af6bd83922aae94b3ef90d64d01a6eb123fa8249f4dc7215e3afd89364f86 languageName: node linkType: hard @@ -15824,7 +15874,7 @@ __metadata: languageName: node linkType: hard -"collect-v8-coverage@npm:^1.0.0": +"collect-v8-coverage@npm:^1.0.2": version: 1.0.3 resolution: "collect-v8-coverage@npm:1.0.3" checksum: 10c0/bc62ba251bcce5e3354a8f88fa6442bee56e3e612fec08d4dfcf66179b41ea0bf544b0f78c4ebc0f8050871220af95bb5c5578a6aef346feea155640582f09dc @@ -16342,23 +16392,6 @@ __metadata: languageName: node linkType: hard -"create-jest@npm:^29.7.0": - version: 29.7.0 - resolution: "create-jest@npm:29.7.0" - dependencies: - "@jest/types": "npm:^29.6.3" - chalk: "npm:^4.0.0" - exit: "npm:^0.1.2" - graceful-fs: "npm:^4.2.9" - jest-config: "npm:^29.7.0" - jest-util: "npm:^29.7.0" - prompts: "npm:^2.0.1" - bin: - create-jest: bin/create-jest.js - checksum: 10c0/e7e54c280692470d3398f62a6238fd396327e01c6a0757002833f06d00afc62dd7bfe04ff2b9cd145264460e6b4d1eb8386f2925b7e567f97939843b7b0e812f - languageName: node - linkType: hard - "create-require@npm:^1.1.0, create-require@npm:^1.1.1": version: 1.1.1 resolution: "create-require@npm:1.1.1" @@ -16799,7 +16832,7 @@ __metadata: languageName: node linkType: hard -"dedent@npm:^1.0.0, dedent@npm:^1.6.0": +"dedent@npm:^1.6.0": version: 1.7.0 resolution: "dedent@npm:1.7.0" peerDependencies: @@ -16848,7 +16881,7 @@ __metadata: languageName: node linkType: hard -"deepmerge@npm:^4.2.2": +"deepmerge@npm:^4.2.2, deepmerge@npm:^4.3.1": version: 4.3.1 resolution: "deepmerge@npm:4.3.1" checksum: 10c0/e53481aaf1aa2c4082b5342be6b6d8ad9dfe387bc92ce197a66dea08bd4265904a087e75e464f14d1347cf2ac8afe1e4c16b266e0561cc5df29382d3c5f80044 @@ -17043,7 +17076,7 @@ __metadata: languageName: node linkType: hard -"detect-newline@npm:^3.0.0": +"detect-newline@npm:^3.1.0": version: 3.1.0 resolution: "detect-newline@npm:3.1.0" checksum: 10c0/c38cfc8eeb9fda09febb44bcd85e467c970d4e3bf526095394e5a4f18bc26dd0cf6b22c69c1fa9969261521c593836db335c2795218f6d781a512aea2fb8209d @@ -17057,13 +17090,6 @@ __metadata: languageName: node linkType: hard -"diff-sequences@npm:^29.6.3": - version: 29.6.3 - resolution: "diff-sequences@npm:29.6.3" - checksum: 10c0/32e27ac7dbffdf2fb0eb5a84efd98a9ad084fbabd5ac9abb8757c6770d5320d2acd172830b28c4add29bb873d59420601dfc805ac4064330ce59b1adfd0593b2 - languageName: node - linkType: hard - "diff@npm:^4.0.1": version: 4.0.2 resolution: "diff@npm:4.0.2" @@ -18664,7 +18690,7 @@ __metadata: languageName: node linkType: hard -"execa@npm:5.1.1, execa@npm:^5.0.0, execa@npm:^5.1.1": +"execa@npm:5.1.1, execa@npm:^5.1.1": version: 5.1.1 resolution: "execa@npm:5.1.1" dependencies: @@ -18698,10 +18724,10 @@ __metadata: languageName: node linkType: hard -"exit@npm:^0.1.2": - version: 0.1.2 - resolution: "exit@npm:0.1.2" - checksum: 10c0/71d2ad9b36bc25bb8b104b17e830b40a08989be7f7d100b13269aaae7c3784c3e6e1e88a797e9e87523993a25ba27c8958959a554535370672cfb4d824af8989 +"exit-x@npm:^0.2.2": + version: 0.2.2 + resolution: "exit-x@npm:0.2.2" + checksum: 10c0/212a7a095ca5540e9581f1ef2d1d6a40df7a6027c8cc96e78ce1d16b86d1a88326d4a0eff8dff2b5ec1e68bb0c1edd5d0dfdde87df1869bf7514d4bc6a5cbd72 languageName: node linkType: hard @@ -18712,16 +18738,17 @@ __metadata: languageName: node linkType: hard -"expect@npm:^29.0.0, expect@npm:^29.7.0": - version: 29.7.0 - resolution: "expect@npm:29.7.0" +"expect@npm:30.2.0, expect@npm:^30.0.0": + version: 30.2.0 + resolution: "expect@npm:30.2.0" dependencies: - "@jest/expect-utils": "npm:^29.7.0" - jest-get-type: "npm:^29.6.3" - jest-matcher-utils: "npm:^29.7.0" - jest-message-util: "npm:^29.7.0" - jest-util: "npm:^29.7.0" - checksum: 10c0/2eddeace66e68b8d8ee5f7be57f3014b19770caaf6815c7a08d131821da527fb8c8cb7b3dcd7c883d2d3d8d184206a4268984618032d1e4b16dc8d6596475d41 + "@jest/expect-utils": "npm:30.2.0" + "@jest/get-type": "npm:30.1.0" + jest-matcher-utils: "npm:30.2.0" + jest-message-util: "npm:30.2.0" + jest-mock: "npm:30.2.0" + jest-util: "npm:30.2.0" + checksum: 10c0/fe440b3a036e2de1a3ede84bc6a699925328056e74324fbd2fdd9ce7b7358d03e515ac8db559c33828bcb0b7887b493dbaaece565e67d88748685850da5d9209 languageName: node linkType: hard @@ -19033,7 +19060,7 @@ __metadata: languageName: node linkType: hard -"fb-watchman@npm:^2.0.0": +"fb-watchman@npm:^2.0.2": version: 2.0.2 resolution: "fb-watchman@npm:2.0.2" dependencies: @@ -19460,7 +19487,7 @@ __metadata: languageName: node linkType: hard -"fsevents@npm:^2.3.2, fsevents@npm:~2.3.2, fsevents@npm:~2.3.3": +"fsevents@npm:^2.3.3, fsevents@npm:~2.3.2, fsevents@npm:~2.3.3": version: 2.3.3 resolution: "fsevents@npm:2.3.3" dependencies: @@ -19470,7 +19497,7 @@ __metadata: languageName: node linkType: hard -"fsevents@patch:fsevents@npm%3A^2.3.2#optional!builtin, fsevents@patch:fsevents@npm%3A~2.3.2#optional!builtin, fsevents@patch:fsevents@npm%3A~2.3.3#optional!builtin": +"fsevents@patch:fsevents@npm%3A^2.3.3#optional!builtin, fsevents@patch:fsevents@npm%3A~2.3.2#optional!builtin, fsevents@patch:fsevents@npm%3A~2.3.3#optional!builtin": version: 2.3.3 resolution: "fsevents@patch:fsevents@npm%3A2.3.3#optional!builtin::version=2.3.3&hash=df0bf1" dependencies: @@ -20057,6 +20084,17 @@ __metadata: languageName: node linkType: hard +"graphql-request@npm:^7.3.4": + version: 7.3.4 + resolution: "graphql-request@npm:7.3.4" + dependencies: + "@graphql-typed-document-node/core": "npm:^3.2.0" + peerDependencies: + graphql: 14 - 16 + checksum: 10c0/dc4d012f614b11c1f92b6eeb273bcc936f621b10e751710a899b88d9762160601b523773ac60a01b702728c9d98c9461602d472554cf4b0cb97b1fac6687c139 + languageName: node + linkType: hard + "graphql-tag@npm:^2.12.6": version: 2.12.6 resolution: "graphql-tag@npm:2.12.6" @@ -20778,7 +20816,7 @@ __metadata: languageName: node linkType: hard -"import-local@npm:^3.0.2": +"import-local@npm:^3.2.0": version: 3.2.0 resolution: "import-local@npm:3.2.0" dependencies: @@ -21165,7 +21203,7 @@ __metadata: languageName: node linkType: hard -"is-generator-fn@npm:^2.0.0": +"is-generator-fn@npm:^2.1.0": version: 2.1.0 resolution: "is-generator-fn@npm:2.1.0" checksum: 10c0/2957cab387997a466cd0bf5c1b6047bd21ecb32bdcfd8996b15747aa01002c1c88731802f1b3d34ac99f4f6874b626418bd118658cf39380fe5fff32a3af9c4d @@ -21564,20 +21602,7 @@ __metadata: languageName: node linkType: hard -"istanbul-lib-instrument@npm:^5.0.4": - version: 5.2.1 - resolution: "istanbul-lib-instrument@npm:5.2.1" - dependencies: - "@babel/core": "npm:^7.12.3" - "@babel/parser": "npm:^7.14.7" - "@istanbuljs/schema": "npm:^0.1.2" - istanbul-lib-coverage: "npm:^3.2.0" - semver: "npm:^6.3.0" - checksum: 10c0/8a1bdf3e377dcc0d33ec32fe2b6ecacdb1e4358fd0eb923d4326bb11c67622c0ceb99600a680f3dad5d29c66fc1991306081e339b4d43d0b8a2ab2e1d910a6ee - languageName: node - linkType: hard - -"istanbul-lib-instrument@npm:^6.0.0": +"istanbul-lib-instrument@npm:^6.0.0, istanbul-lib-instrument@npm:^6.0.2": version: 6.0.3 resolution: "istanbul-lib-instrument@npm:6.0.3" dependencies: @@ -21601,14 +21626,14 @@ __metadata: languageName: node linkType: hard -"istanbul-lib-source-maps@npm:^4.0.0": - version: 4.0.1 - resolution: "istanbul-lib-source-maps@npm:4.0.1" +"istanbul-lib-source-maps@npm:^5.0.0": + version: 5.0.6 + resolution: "istanbul-lib-source-maps@npm:5.0.6" dependencies: + "@jridgewell/trace-mapping": "npm:^0.3.23" debug: "npm:^4.1.1" istanbul-lib-coverage: "npm:^3.0.0" - source-map: "npm:^0.6.1" - checksum: 10c0/19e4cc405016f2c906dff271a76715b3e881fa9faeb3f09a86cb99b8512b3a5ed19cadfe0b54c17ca0e54c1142c9c6de9330d65506e35873994e06634eebeb66 + checksum: 10c0/ffe75d70b303a3621ee4671554f306e0831b16f39ab7f4ab52e54d356a5d33e534d97563e318f1333a6aae1d42f91ec49c76b6cd3f3fb378addcb5c81da0255f languageName: node linkType: hard @@ -21776,238 +21801,235 @@ __metadata: languageName: node linkType: hard -"jest-changed-files@npm:^29.7.0": - version: 29.7.0 - resolution: "jest-changed-files@npm:29.7.0" +"jest-changed-files@npm:30.2.0": + version: 30.2.0 + resolution: "jest-changed-files@npm:30.2.0" dependencies: - execa: "npm:^5.0.0" - jest-util: "npm:^29.7.0" + execa: "npm:^5.1.1" + jest-util: "npm:30.2.0" p-limit: "npm:^3.1.0" - checksum: 10c0/e071384d9e2f6bb462231ac53f29bff86f0e12394c1b49ccafbad225ce2ab7da226279a8a94f421949920bef9be7ef574fd86aee22e8adfa149be73554ab828b + checksum: 10c0/0ce838f8bffdadcdc19028f4b7a24c04d2f9885ee5c5c1bb4746c205cb96649934090ef6492c3dc45b1be097672b4f8043ad141278bc82f390579fa3ea4c11fe languageName: node linkType: hard -"jest-circus@npm:^29.7.0": - version: 29.7.0 - resolution: "jest-circus@npm:29.7.0" +"jest-circus@npm:30.2.0": + version: 30.2.0 + resolution: "jest-circus@npm:30.2.0" dependencies: - "@jest/environment": "npm:^29.7.0" - "@jest/expect": "npm:^29.7.0" - "@jest/test-result": "npm:^29.7.0" - "@jest/types": "npm:^29.6.3" + "@jest/environment": "npm:30.2.0" + "@jest/expect": "npm:30.2.0" + "@jest/test-result": "npm:30.2.0" + "@jest/types": "npm:30.2.0" "@types/node": "npm:*" - chalk: "npm:^4.0.0" + chalk: "npm:^4.1.2" co: "npm:^4.6.0" - dedent: "npm:^1.0.0" - is-generator-fn: "npm:^2.0.0" - jest-each: "npm:^29.7.0" - jest-matcher-utils: "npm:^29.7.0" - jest-message-util: "npm:^29.7.0" - jest-runtime: "npm:^29.7.0" - jest-snapshot: "npm:^29.7.0" - jest-util: "npm:^29.7.0" + dedent: "npm:^1.6.0" + is-generator-fn: "npm:^2.1.0" + jest-each: "npm:30.2.0" + jest-matcher-utils: "npm:30.2.0" + jest-message-util: "npm:30.2.0" + jest-runtime: "npm:30.2.0" + jest-snapshot: "npm:30.2.0" + jest-util: "npm:30.2.0" p-limit: "npm:^3.1.0" - pretty-format: "npm:^29.7.0" - pure-rand: "npm:^6.0.0" + pretty-format: "npm:30.2.0" + pure-rand: "npm:^7.0.0" slash: "npm:^3.0.0" - stack-utils: "npm:^2.0.3" - checksum: 10c0/8d15344cf7a9f14e926f0deed64ed190c7a4fa1ed1acfcd81e4cc094d3cc5bf7902ebb7b874edc98ada4185688f90c91e1747e0dfd7ac12463b097968ae74b5e + stack-utils: "npm:^2.0.6" + checksum: 10c0/32fc88e13d3e811a9af5ca02d31f7cc742e726a0128df0b023330d6dff6ac29bf981da09937162f7c0705cf327df8d24e46de84860f6817dbc134438315c2967 languageName: node linkType: hard -"jest-cli@npm:^29.5.0, jest-cli@npm:^29.7.0": - version: 29.7.0 - resolution: "jest-cli@npm:29.7.0" +"jest-cli@npm:30.2.0": + version: 30.2.0 + resolution: "jest-cli@npm:30.2.0" dependencies: - "@jest/core": "npm:^29.7.0" - "@jest/test-result": "npm:^29.7.0" - "@jest/types": "npm:^29.6.3" - chalk: "npm:^4.0.0" - create-jest: "npm:^29.7.0" - exit: "npm:^0.1.2" - import-local: "npm:^3.0.2" - jest-config: "npm:^29.7.0" - jest-util: "npm:^29.7.0" - jest-validate: "npm:^29.7.0" - yargs: "npm:^17.3.1" + "@jest/core": "npm:30.2.0" + "@jest/test-result": "npm:30.2.0" + "@jest/types": "npm:30.2.0" + chalk: "npm:^4.1.2" + exit-x: "npm:^0.2.2" + import-local: "npm:^3.2.0" + jest-config: "npm:30.2.0" + jest-util: "npm:30.2.0" + jest-validate: "npm:30.2.0" + yargs: "npm:^17.7.2" peerDependencies: node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 peerDependenciesMeta: node-notifier: optional: true bin: - jest: bin/jest.js - checksum: 10c0/a658fd55050d4075d65c1066364595962ead7661711495cfa1dfeecf3d6d0a8ffec532f3dbd8afbb3e172dd5fd2fb2e813c5e10256e7cf2fea766314942fb43a + jest: ./bin/jest.js + checksum: 10c0/b722a98cdf7b0ff1c273dd4efbaf331d683335f1f338a76a24492574e582a4e5a12a9df66e41bf4c92c7cffe0f51b759818ecd42044cd9bbef67d40359240989 languageName: node linkType: hard -"jest-config@npm:^29.7.0": - version: 29.7.0 - resolution: "jest-config@npm:29.7.0" +"jest-config@npm:30.2.0": + version: 30.2.0 + resolution: "jest-config@npm:30.2.0" dependencies: - "@babel/core": "npm:^7.11.6" - "@jest/test-sequencer": "npm:^29.7.0" - "@jest/types": "npm:^29.6.3" - babel-jest: "npm:^29.7.0" - chalk: "npm:^4.0.0" - ci-info: "npm:^3.2.0" - deepmerge: "npm:^4.2.2" - glob: "npm:^7.1.3" - graceful-fs: "npm:^4.2.9" - jest-circus: "npm:^29.7.0" - jest-environment-node: "npm:^29.7.0" - jest-get-type: "npm:^29.6.3" - jest-regex-util: "npm:^29.6.3" - jest-resolve: "npm:^29.7.0" - jest-runner: "npm:^29.7.0" - jest-util: "npm:^29.7.0" - jest-validate: "npm:^29.7.0" - micromatch: "npm:^4.0.4" + "@babel/core": "npm:^7.27.4" + "@jest/get-type": "npm:30.1.0" + "@jest/pattern": "npm:30.0.1" + "@jest/test-sequencer": "npm:30.2.0" + "@jest/types": "npm:30.2.0" + babel-jest: "npm:30.2.0" + chalk: "npm:^4.1.2" + ci-info: "npm:^4.2.0" + deepmerge: "npm:^4.3.1" + glob: "npm:^10.3.10" + graceful-fs: "npm:^4.2.11" + jest-circus: "npm:30.2.0" + jest-docblock: "npm:30.2.0" + jest-environment-node: "npm:30.2.0" + jest-regex-util: "npm:30.0.1" + jest-resolve: "npm:30.2.0" + jest-runner: "npm:30.2.0" + jest-util: "npm:30.2.0" + jest-validate: "npm:30.2.0" + micromatch: "npm:^4.0.8" parse-json: "npm:^5.2.0" - pretty-format: "npm:^29.7.0" + pretty-format: "npm:30.2.0" slash: "npm:^3.0.0" strip-json-comments: "npm:^3.1.1" peerDependencies: "@types/node": "*" + esbuild-register: ">=3.4.0" ts-node: ">=9.0.0" peerDependenciesMeta: "@types/node": optional: true + esbuild-register: + optional: true ts-node: optional: true - checksum: 10c0/bab23c2eda1fff06e0d104b00d6adfb1d1aabb7128441899c9bff2247bd26710b050a5364281ce8d52b46b499153bf7e3ee88b19831a8f3451f1477a0246a0f1 + checksum: 10c0/f02bb747e3382cdbb5a00abd583e9118a0b4f1d9d4cad01b5cc06b7fab9b817419ec183856cd791b2e9167051cad52b3d22ea34319a28c8f3e70a5ce73d05faa languageName: node linkType: hard -"jest-diff@npm:^29.7.0": - version: 29.7.0 - resolution: "jest-diff@npm:29.7.0" +"jest-diff@npm:30.2.0": + version: 30.2.0 + resolution: "jest-diff@npm:30.2.0" dependencies: - chalk: "npm:^4.0.0" - diff-sequences: "npm:^29.6.3" - jest-get-type: "npm:^29.6.3" - pretty-format: "npm:^29.7.0" - checksum: 10c0/89a4a7f182590f56f526443dde69acefb1f2f0c9e59253c61d319569856c4931eae66b8a3790c443f529267a0ddba5ba80431c585deed81827032b2b2a1fc999 + "@jest/diff-sequences": "npm:30.0.1" + "@jest/get-type": "npm:30.1.0" + chalk: "npm:^4.1.2" + pretty-format: "npm:30.2.0" + checksum: 10c0/5fac2cd89a10b282c5a68fc6206a95dfff9955ed0b758d24ffb0edcb20fb2f98e1fa5045c5c4205d952712ea864c6a086654f80cdd500cce054a2f5daf5b4419 languageName: node linkType: hard -"jest-docblock@npm:^29.7.0": - version: 29.7.0 - resolution: "jest-docblock@npm:29.7.0" +"jest-docblock@npm:30.2.0": + version: 30.2.0 + resolution: "jest-docblock@npm:30.2.0" dependencies: - detect-newline: "npm:^3.0.0" - checksum: 10c0/d932a8272345cf6b6142bb70a2bb63e0856cc0093f082821577ea5bdf4643916a98744dfc992189d2b1417c38a11fa42466f6111526bc1fb81366f56410f3be9 + detect-newline: "npm:^3.1.0" + checksum: 10c0/2578366604eef1b36d59ffe1fc52a710995571535d437f83d94ff94756a83f78e699c1ba004c38a34c01859d669fd6c64e865c23c5a7d5bf4837cfca4bef3dda languageName: node linkType: hard -"jest-each@npm:^29.7.0": - version: 29.7.0 - resolution: "jest-each@npm:29.7.0" +"jest-each@npm:30.2.0": + version: 30.2.0 + resolution: "jest-each@npm:30.2.0" dependencies: - "@jest/types": "npm:^29.6.3" - chalk: "npm:^4.0.0" - jest-get-type: "npm:^29.6.3" - jest-util: "npm:^29.7.0" - pretty-format: "npm:^29.7.0" - checksum: 10c0/f7f9a90ebee80cc688e825feceb2613627826ac41ea76a366fa58e669c3b2403d364c7c0a74d862d469b103c843154f8456d3b1c02b487509a12afa8b59edbb4 + "@jest/get-type": "npm:30.1.0" + "@jest/types": "npm:30.2.0" + chalk: "npm:^4.1.2" + jest-util: "npm:30.2.0" + pretty-format: "npm:30.2.0" + checksum: 10c0/4fa7e88a2741daaebd58cf49f9add8bd6c68657d2c106a170ebe4d7f86082c9eede2b13924304277a92e02b31b59a3c34949877da077bc27712b57913bb88321 languageName: node linkType: hard -"jest-environment-node@npm:^29.7.0": - version: 29.7.0 - resolution: "jest-environment-node@npm:29.7.0" +"jest-environment-node@npm:30.2.0": + version: 30.2.0 + resolution: "jest-environment-node@npm:30.2.0" dependencies: - "@jest/environment": "npm:^29.7.0" - "@jest/fake-timers": "npm:^29.7.0" - "@jest/types": "npm:^29.6.3" + "@jest/environment": "npm:30.2.0" + "@jest/fake-timers": "npm:30.2.0" + "@jest/types": "npm:30.2.0" "@types/node": "npm:*" - jest-mock: "npm:^29.7.0" - jest-util: "npm:^29.7.0" - checksum: 10c0/61f04fec077f8b1b5c1a633e3612fc0c9aa79a0ab7b05600683428f1e01a4d35346c474bde6f439f9fcc1a4aa9a2861ff852d079a43ab64b02105d1004b2592b + jest-mock: "npm:30.2.0" + jest-util: "npm:30.2.0" + jest-validate: "npm:30.2.0" + checksum: 10c0/866ba2c04ccf003845a8ca1f372081d76923849ae8e06e50cdfed792e41a976b5f953e15f3af17ff51b111b9540cf846f7f582530ca724c2a2abf15d15a99728 languageName: node linkType: hard -"jest-get-type@npm:^29.6.3": - version: 29.6.3 - resolution: "jest-get-type@npm:29.6.3" - checksum: 10c0/552e7a97a983d3c2d4e412a44eb7de0430ff773dd99f7500962c268d6dfbfa431d7d08f919c9d960530e5f7f78eb47f267ad9b318265e5092b3ff9ede0db7c2b - languageName: node - linkType: hard - -"jest-haste-map@npm:^29.7.0": - version: 29.7.0 - resolution: "jest-haste-map@npm:29.7.0" +"jest-haste-map@npm:30.2.0": + version: 30.2.0 + resolution: "jest-haste-map@npm:30.2.0" dependencies: - "@jest/types": "npm:^29.6.3" - "@types/graceful-fs": "npm:^4.1.3" + "@jest/types": "npm:30.2.0" "@types/node": "npm:*" - anymatch: "npm:^3.0.3" - fb-watchman: "npm:^2.0.0" - fsevents: "npm:^2.3.2" - graceful-fs: "npm:^4.2.9" - jest-regex-util: "npm:^29.6.3" - jest-util: "npm:^29.7.0" - jest-worker: "npm:^29.7.0" - micromatch: "npm:^4.0.4" + anymatch: "npm:^3.1.3" + fb-watchman: "npm:^2.0.2" + fsevents: "npm:^2.3.3" + graceful-fs: "npm:^4.2.11" + jest-regex-util: "npm:30.0.1" + jest-util: "npm:30.2.0" + jest-worker: "npm:30.2.0" + micromatch: "npm:^4.0.8" walker: "npm:^1.0.8" dependenciesMeta: fsevents: optional: true - checksum: 10c0/2683a8f29793c75a4728787662972fedd9267704c8f7ef9d84f2beed9a977f1cf5e998c07b6f36ba5603f53cb010c911fe8cd0ac9886e073fe28ca66beefd30c + checksum: 10c0/61b4ad5a59b4dfadac2f903f3d723d9017aada268c49b9222ec1e15c4892fd4c36af59b65f37f026d747d829672ab9679509fea5d4248d07a93b892963e1bb4e languageName: node linkType: hard -"jest-leak-detector@npm:^29.7.0": - version: 29.7.0 - resolution: "jest-leak-detector@npm:29.7.0" +"jest-leak-detector@npm:30.2.0": + version: 30.2.0 + resolution: "jest-leak-detector@npm:30.2.0" dependencies: - jest-get-type: "npm:^29.6.3" - pretty-format: "npm:^29.7.0" - checksum: 10c0/71bb9f77fc489acb842a5c7be030f2b9acb18574dc9fb98b3100fc57d422b1abc55f08040884bd6e6dbf455047a62f7eaff12aa4058f7cbdc11558718ca6a395 + "@jest/get-type": "npm:30.1.0" + pretty-format: "npm:30.2.0" + checksum: 10c0/68e2822aabe302983b65a08b19719a2444259af8a23ff20a6e2b6ce7759f55730f51c7cf16c65cb6be930c80a6cc70a4820239c84e8f333c9670a8e3a4a21801 languageName: node linkType: hard -"jest-matcher-utils@npm:^29.7.0": - version: 29.7.0 - resolution: "jest-matcher-utils@npm:29.7.0" +"jest-matcher-utils@npm:30.2.0": + version: 30.2.0 + resolution: "jest-matcher-utils@npm:30.2.0" dependencies: - chalk: "npm:^4.0.0" - jest-diff: "npm:^29.7.0" - jest-get-type: "npm:^29.6.3" - pretty-format: "npm:^29.7.0" - checksum: 10c0/0d0e70b28fa5c7d4dce701dc1f46ae0922102aadc24ed45d594dd9b7ae0a8a6ef8b216718d1ab79e451291217e05d4d49a82666e1a3cc2b428b75cd9c933244e + "@jest/get-type": "npm:30.1.0" + chalk: "npm:^4.1.2" + jest-diff: "npm:30.2.0" + pretty-format: "npm:30.2.0" + checksum: 10c0/f221c8afa04cee693a2be735482c5db4ec6f845f8ca3a04cb419be34c6257f4531dab89c836251f31d1859318c38997e8e9f34bf7b4cdcc8c7be8ae6e2ecb9f2 languageName: node linkType: hard -"jest-message-util@npm:^29.7.0": - version: 29.7.0 - resolution: "jest-message-util@npm:29.7.0" +"jest-message-util@npm:30.2.0": + version: 30.2.0 + resolution: "jest-message-util@npm:30.2.0" dependencies: - "@babel/code-frame": "npm:^7.12.13" - "@jest/types": "npm:^29.6.3" - "@types/stack-utils": "npm:^2.0.0" - chalk: "npm:^4.0.0" - graceful-fs: "npm:^4.2.9" - micromatch: "npm:^4.0.4" - pretty-format: "npm:^29.7.0" + "@babel/code-frame": "npm:^7.27.1" + "@jest/types": "npm:30.2.0" + "@types/stack-utils": "npm:^2.0.3" + chalk: "npm:^4.1.2" + graceful-fs: "npm:^4.2.11" + micromatch: "npm:^4.0.8" + pretty-format: "npm:30.2.0" slash: "npm:^3.0.0" - stack-utils: "npm:^2.0.3" - checksum: 10c0/850ae35477f59f3e6f27efac5215f706296e2104af39232bb14e5403e067992afb5c015e87a9243ec4d9df38525ef1ca663af9f2f4766aa116f127247008bd22 + stack-utils: "npm:^2.0.6" + checksum: 10c0/9c4aae95f9e73a754e5ecababa06e5c00cf549ff1651bbbf9aadc671ee57e688b01606ef0e9932d9dfe3d4b8f4511b6e8d01e131a49d2f82761c820ab93ae519 languageName: node linkType: hard -"jest-mock@npm:^29.7.0": - version: 29.7.0 - resolution: "jest-mock@npm:29.7.0" +"jest-mock@npm:30.2.0": + version: 30.2.0 + resolution: "jest-mock@npm:30.2.0" dependencies: - "@jest/types": "npm:^29.6.3" + "@jest/types": "npm:30.2.0" "@types/node": "npm:*" - jest-util: "npm:^29.7.0" - checksum: 10c0/7b9f8349ee87695a309fe15c46a74ab04c853369e5c40952d68061d9dc3159a0f0ed73e215f81b07ee97a9faaf10aebe5877a9d6255068a0977eae6a9ff1d5ac + jest-util: "npm:30.2.0" + checksum: 10c0/dfc8eb87f4075242f1b31d9dcac606f945c4f6a245d2bb67273738d266bea6345e10de3afa675076d545361bc96b754f764cffb0ccc2e99767484bece981b2f8 languageName: node linkType: hard -"jest-pnp-resolver@npm:^1.2.2": +"jest-pnp-resolver@npm:^1.2.3": version: 1.2.3 resolution: "jest-pnp-resolver@npm:1.2.3" peerDependencies: @@ -22019,128 +22041,143 @@ __metadata: languageName: node linkType: hard -"jest-regex-util@npm:^29.6.3": - version: 29.6.3 - resolution: "jest-regex-util@npm:29.6.3" - checksum: 10c0/4e33fb16c4f42111159cafe26397118dcfc4cf08bc178a67149fb05f45546a91928b820894572679d62559839d0992e21080a1527faad65daaae8743a5705a3b +"jest-regex-util@npm:30.0.1": + version: 30.0.1 + resolution: "jest-regex-util@npm:30.0.1" + checksum: 10c0/f30c70524ebde2d1012afe5ffa5691d5d00f7d5ba9e43d588f6460ac6fe96f9e620f2f9b36a02d0d3e7e77bc8efb8b3450ae3b80ac53c8be5099e01bf54f6728 languageName: node linkType: hard -"jest-resolve-dependencies@npm:^29.7.0": - version: 29.7.0 - resolution: "jest-resolve-dependencies@npm:29.7.0" +"jest-resolve-dependencies@npm:30.2.0": + version: 30.2.0 + resolution: "jest-resolve-dependencies@npm:30.2.0" dependencies: - jest-regex-util: "npm:^29.6.3" - jest-snapshot: "npm:^29.7.0" - checksum: 10c0/b6e9ad8ae5b6049474118ea6441dfddd385b6d1fc471db0136f7c8fbcfe97137a9665e4f837a9f49f15a29a1deb95a14439b7aec812f3f99d08f228464930f0d + jest-regex-util: "npm:30.0.1" + jest-snapshot: "npm:30.2.0" + checksum: 10c0/f98f2187b490f402dd9ed6b15b5d324b1220d250a5768d46b1f1582cef05b830311351532a7d19f1868a2ce0049856ae6c26587f3869995cae7850739088b879 languageName: node linkType: hard -"jest-resolve@npm:^29.7.0": - version: 29.7.0 - resolution: "jest-resolve@npm:29.7.0" +"jest-resolve@npm:30.2.0": + version: 30.2.0 + resolution: "jest-resolve@npm:30.2.0" dependencies: - chalk: "npm:^4.0.0" - graceful-fs: "npm:^4.2.9" - jest-haste-map: "npm:^29.7.0" - jest-pnp-resolver: "npm:^1.2.2" - jest-util: "npm:^29.7.0" - jest-validate: "npm:^29.7.0" - resolve: "npm:^1.20.0" - resolve.exports: "npm:^2.0.0" + chalk: "npm:^4.1.2" + graceful-fs: "npm:^4.2.11" + jest-haste-map: "npm:30.2.0" + jest-pnp-resolver: "npm:^1.2.3" + jest-util: "npm:30.2.0" + jest-validate: "npm:30.2.0" slash: "npm:^3.0.0" - checksum: 10c0/59da5c9c5b50563e959a45e09e2eace783d7f9ac0b5dcc6375dea4c0db938d2ebda97124c8161310082760e8ebbeff9f6b177c15ca2f57fb424f637a5d2adb47 + unrs-resolver: "npm:^1.7.11" + checksum: 10c0/149576b81609a79889d08298a95d52920839f796d24f8701beacaf998a4916df205acf86b64d0bc294172a821b88d144facf44ae5a4cb3cfaa03fa06a3fc666d languageName: node linkType: hard -"jest-runner@npm:^29.7.0": - version: 29.7.0 - resolution: "jest-runner@npm:29.7.0" +"jest-runner@npm:30.2.0": + version: 30.2.0 + resolution: "jest-runner@npm:30.2.0" dependencies: - "@jest/console": "npm:^29.7.0" - "@jest/environment": "npm:^29.7.0" - "@jest/test-result": "npm:^29.7.0" - "@jest/transform": "npm:^29.7.0" - "@jest/types": "npm:^29.6.3" + "@jest/console": "npm:30.2.0" + "@jest/environment": "npm:30.2.0" + "@jest/test-result": "npm:30.2.0" + "@jest/transform": "npm:30.2.0" + "@jest/types": "npm:30.2.0" "@types/node": "npm:*" - chalk: "npm:^4.0.0" + chalk: "npm:^4.1.2" emittery: "npm:^0.13.1" - graceful-fs: "npm:^4.2.9" - jest-docblock: "npm:^29.7.0" - jest-environment-node: "npm:^29.7.0" - jest-haste-map: "npm:^29.7.0" - jest-leak-detector: "npm:^29.7.0" - jest-message-util: "npm:^29.7.0" - jest-resolve: "npm:^29.7.0" - jest-runtime: "npm:^29.7.0" - jest-util: "npm:^29.7.0" - jest-watcher: "npm:^29.7.0" - jest-worker: "npm:^29.7.0" + exit-x: "npm:^0.2.2" + graceful-fs: "npm:^4.2.11" + jest-docblock: "npm:30.2.0" + jest-environment-node: "npm:30.2.0" + jest-haste-map: "npm:30.2.0" + jest-leak-detector: "npm:30.2.0" + jest-message-util: "npm:30.2.0" + jest-resolve: "npm:30.2.0" + jest-runtime: "npm:30.2.0" + jest-util: "npm:30.2.0" + jest-watcher: "npm:30.2.0" + jest-worker: "npm:30.2.0" p-limit: "npm:^3.1.0" source-map-support: "npm:0.5.13" - checksum: 10c0/2194b4531068d939f14c8d3274fe5938b77fa73126aedf9c09ec9dec57d13f22c72a3b5af01ac04f5c1cf2e28d0ac0b4a54212a61b05f10b5d6b47f2a1097bb4 + checksum: 10c0/68cb5eb993b4a02143fc442c245b17567432709879ad5f859fec635ccdf4ad0ef128c9fc6765c1582b3f5136b36cad5c5dd173926081bfc527d490b27406383e languageName: node linkType: hard -"jest-runtime@npm:^29.7.0": - version: 29.7.0 - resolution: "jest-runtime@npm:29.7.0" - dependencies: - "@jest/environment": "npm:^29.7.0" - "@jest/fake-timers": "npm:^29.7.0" - "@jest/globals": "npm:^29.7.0" - "@jest/source-map": "npm:^29.6.3" - "@jest/test-result": "npm:^29.7.0" - "@jest/transform": "npm:^29.7.0" - "@jest/types": "npm:^29.6.3" +"jest-runtime@npm:30.2.0": + version: 30.2.0 + resolution: "jest-runtime@npm:30.2.0" + dependencies: + "@jest/environment": "npm:30.2.0" + "@jest/fake-timers": "npm:30.2.0" + "@jest/globals": "npm:30.2.0" + "@jest/source-map": "npm:30.0.1" + "@jest/test-result": "npm:30.2.0" + "@jest/transform": "npm:30.2.0" + "@jest/types": "npm:30.2.0" "@types/node": "npm:*" - chalk: "npm:^4.0.0" - cjs-module-lexer: "npm:^1.0.0" - collect-v8-coverage: "npm:^1.0.0" - glob: "npm:^7.1.3" - graceful-fs: "npm:^4.2.9" - jest-haste-map: "npm:^29.7.0" - jest-message-util: "npm:^29.7.0" - jest-mock: "npm:^29.7.0" - jest-regex-util: "npm:^29.6.3" - jest-resolve: "npm:^29.7.0" - jest-snapshot: "npm:^29.7.0" - jest-util: "npm:^29.7.0" + chalk: "npm:^4.1.2" + cjs-module-lexer: "npm:^2.1.0" + collect-v8-coverage: "npm:^1.0.2" + glob: "npm:^10.3.10" + graceful-fs: "npm:^4.2.11" + jest-haste-map: "npm:30.2.0" + jest-message-util: "npm:30.2.0" + jest-mock: "npm:30.2.0" + jest-regex-util: "npm:30.0.1" + jest-resolve: "npm:30.2.0" + jest-snapshot: "npm:30.2.0" + jest-util: "npm:30.2.0" slash: "npm:^3.0.0" strip-bom: "npm:^4.0.0" - checksum: 10c0/7cd89a1deda0bda7d0941835434e44f9d6b7bd50b5c5d9b0fc9a6c990b2d4d2cab59685ab3cb2850ed4cc37059f6de903af5a50565d7f7f1192a77d3fd6dd2a6 + checksum: 10c0/d77b7eb75485f2b4913f635aeffa8e3e1b9baafb7a7f901f3c212195beb31f519e4b03358b5e454caee5cc94a2b9952c962fa7e5b0ff2ed06009a661924fd23e languageName: node linkType: hard -"jest-snapshot@npm:^29.7.0": - version: 29.7.0 - resolution: "jest-snapshot@npm:29.7.0" - dependencies: - "@babel/core": "npm:^7.11.6" - "@babel/generator": "npm:^7.7.2" - "@babel/plugin-syntax-jsx": "npm:^7.7.2" - "@babel/plugin-syntax-typescript": "npm:^7.7.2" - "@babel/types": "npm:^7.3.3" - "@jest/expect-utils": "npm:^29.7.0" - "@jest/transform": "npm:^29.7.0" - "@jest/types": "npm:^29.6.3" - babel-preset-current-node-syntax: "npm:^1.0.0" - chalk: "npm:^4.0.0" - expect: "npm:^29.7.0" - graceful-fs: "npm:^4.2.9" - jest-diff: "npm:^29.7.0" - jest-get-type: "npm:^29.6.3" - jest-matcher-utils: "npm:^29.7.0" - jest-message-util: "npm:^29.7.0" - jest-util: "npm:^29.7.0" - natural-compare: "npm:^1.4.0" - pretty-format: "npm:^29.7.0" - semver: "npm:^7.5.3" - checksum: 10c0/6e9003c94ec58172b4a62864a91c0146513207bedf4e0a06e1e2ac70a4484088a2683e3a0538d8ea913bcfd53dc54a9b98a98cdfa562e7fe1d1339aeae1da570 +"jest-snapshot@npm:30.2.0": + version: 30.2.0 + resolution: "jest-snapshot@npm:30.2.0" + dependencies: + "@babel/core": "npm:^7.27.4" + "@babel/generator": "npm:^7.27.5" + "@babel/plugin-syntax-jsx": "npm:^7.27.1" + "@babel/plugin-syntax-typescript": "npm:^7.27.1" + "@babel/types": "npm:^7.27.3" + "@jest/expect-utils": "npm:30.2.0" + "@jest/get-type": "npm:30.1.0" + "@jest/snapshot-utils": "npm:30.2.0" + "@jest/transform": "npm:30.2.0" + "@jest/types": "npm:30.2.0" + babel-preset-current-node-syntax: "npm:^1.2.0" + chalk: "npm:^4.1.2" + expect: "npm:30.2.0" + graceful-fs: "npm:^4.2.11" + jest-diff: "npm:30.2.0" + jest-matcher-utils: "npm:30.2.0" + jest-message-util: "npm:30.2.0" + jest-util: "npm:30.2.0" + pretty-format: "npm:30.2.0" + semver: "npm:^7.7.2" + synckit: "npm:^0.11.8" + checksum: 10c0/961b13a3c9dcf8c533fe2ab8375bcdf441bd8680a7a7878245d8d8a4697432d806f7817cfaa061904e0c6cc939a38f1fe9f5af868b86328e77833a58822b3b63 languageName: node linkType: hard -"jest-util@npm:^29.0.0, jest-util@npm:^29.7.0": +"jest-util@npm:30.2.0": + version: 30.2.0 + resolution: "jest-util@npm:30.2.0" + dependencies: + "@jest/types": "npm:30.2.0" + "@types/node": "npm:*" + chalk: "npm:^4.1.2" + ci-info: "npm:^4.2.0" + graceful-fs: "npm:^4.2.11" + picomatch: "npm:^4.0.2" + checksum: 10c0/896d663554b35258a87ec1a0a0fdd8741fdf4f3239d09fc52fdd88fa5c411a5ece7903bbbbd7d5194743fcb69f62afc3287e90f57736a91e7df95ad421937936 + languageName: node + linkType: hard + +"jest-util@npm:^29.0.0": version: 29.7.0 resolution: "jest-util@npm:29.7.0" dependencies: @@ -22154,94 +22191,76 @@ __metadata: languageName: node linkType: hard -"jest-validate@npm:^29.7.0": - version: 29.7.0 - resolution: "jest-validate@npm:29.7.0" +"jest-validate@npm:30.2.0": + version: 30.2.0 + resolution: "jest-validate@npm:30.2.0" dependencies: - "@jest/types": "npm:^29.6.3" - camelcase: "npm:^6.2.0" - chalk: "npm:^4.0.0" - jest-get-type: "npm:^29.6.3" + "@jest/get-type": "npm:30.1.0" + "@jest/types": "npm:30.2.0" + camelcase: "npm:^6.3.0" + chalk: "npm:^4.1.2" leven: "npm:^3.1.0" - pretty-format: "npm:^29.7.0" - checksum: 10c0/a20b930480c1ed68778c739f4739dce39423131bc070cd2505ddede762a5570a256212e9c2401b7ae9ba4d7b7c0803f03c5b8f1561c62348213aba18d9dbece2 + pretty-format: "npm:30.2.0" + checksum: 10c0/56566643d79ca07f021fa14cebb62c423ae405757cb8d742113ff0070f0761b80c77f665fac8d89622faaab71fc5452e1471939028187a88c8445303d7976255 languageName: node linkType: hard -"jest-watcher@npm:^29.7.0": - version: 29.7.0 - resolution: "jest-watcher@npm:29.7.0" +"jest-watcher@npm:30.2.0": + version: 30.2.0 + resolution: "jest-watcher@npm:30.2.0" dependencies: - "@jest/test-result": "npm:^29.7.0" - "@jest/types": "npm:^29.6.3" + "@jest/test-result": "npm:30.2.0" + "@jest/types": "npm:30.2.0" "@types/node": "npm:*" - ansi-escapes: "npm:^4.2.1" - chalk: "npm:^4.0.0" + ansi-escapes: "npm:^4.3.2" + chalk: "npm:^4.1.2" emittery: "npm:^0.13.1" - jest-util: "npm:^29.7.0" - string-length: "npm:^4.0.1" - checksum: 10c0/ec6c75030562fc8f8c727cb8f3b94e75d831fc718785abfc196e1f2a2ebc9a2e38744a15147170039628a853d77a3b695561ce850375ede3a4ee6037a2574567 + jest-util: "npm:30.2.0" + string-length: "npm:^4.0.2" + checksum: 10c0/51587968fabb5b180383d638a04db253b82d9cc3f53fbba06ba7b0544146178d50becc090aca7931e2d4eb9aa1624bb3fbd1a2571484c9391554404e8b5d8fe7 languageName: node linkType: hard -"jest-worker@npm:^27.4.5": - version: 27.5.1 - resolution: "jest-worker@npm:27.5.1" +"jest-worker@npm:30.2.0": + version: 30.2.0 + resolution: "jest-worker@npm:30.2.0" dependencies: "@types/node": "npm:*" + "@ungap/structured-clone": "npm:^1.3.0" + jest-util: "npm:30.2.0" merge-stream: "npm:^2.0.0" - supports-color: "npm:^8.0.0" - checksum: 10c0/8c4737ffd03887b3c6768e4cc3ca0269c0336c1e4b1b120943958ddb035ed2a0fc6acab6dc99631720a3720af4e708ff84fb45382ad1e83c27946adf3623969b + supports-color: "npm:^8.1.1" + checksum: 10c0/1ea47f6c682ba6cdbd50630544236aabccacf1d88335607206c10871a9777a45b0fc6336c8eb6344e32e69dd7681de17b2199b4d4552b00d48aade303627125c languageName: node linkType: hard -"jest-worker@npm:^29.7.0": - version: 29.7.0 - resolution: "jest-worker@npm:29.7.0" +"jest-worker@npm:^27.4.5": + version: 27.5.1 + resolution: "jest-worker@npm:27.5.1" dependencies: "@types/node": "npm:*" - jest-util: "npm:^29.7.0" merge-stream: "npm:^2.0.0" supports-color: "npm:^8.0.0" - checksum: 10c0/5570a3a005b16f46c131968b8a5b56d291f9bbb85ff4217e31c80bd8a02e7de799e59a54b95ca28d5c302f248b54cbffde2d177c2f0f52ffcee7504c6eabf660 - languageName: node - linkType: hard - -"jest@npm:29.5.0": - version: 29.5.0 - resolution: "jest@npm:29.5.0" - dependencies: - "@jest/core": "npm:^29.5.0" - "@jest/types": "npm:^29.5.0" - import-local: "npm:^3.0.2" - jest-cli: "npm:^29.5.0" - peerDependencies: - node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 - peerDependenciesMeta: - node-notifier: - optional: true - bin: - jest: bin/jest.js - checksum: 10c0/32e29cfa2373530ed323ea65dfb4fd5172026349be48ebb7a2dc5660adadd1c68f6b0fe2b67cc3ee723cc34e2d4552a852730ac787251b406cf58e37a90f6dac + checksum: 10c0/8c4737ffd03887b3c6768e4cc3ca0269c0336c1e4b1b120943958ddb035ed2a0fc6acab6dc99631720a3720af4e708ff84fb45382ad1e83c27946adf3623969b languageName: node linkType: hard -"jest@npm:29.7.0, jest@npm:^29.7.0": - version: 29.7.0 - resolution: "jest@npm:29.7.0" +"jest@npm:30.2.0, jest@npm:^30.2.0": + version: 30.2.0 + resolution: "jest@npm:30.2.0" dependencies: - "@jest/core": "npm:^29.7.0" - "@jest/types": "npm:^29.6.3" - import-local: "npm:^3.0.2" - jest-cli: "npm:^29.7.0" + "@jest/core": "npm:30.2.0" + "@jest/types": "npm:30.2.0" + import-local: "npm:^3.2.0" + jest-cli: "npm:30.2.0" peerDependencies: node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 peerDependenciesMeta: node-notifier: optional: true bin: - jest: bin/jest.js - checksum: 10c0/f40eb8171cf147c617cc6ada49d062fbb03b4da666cb8d39cdbfb739a7d75eea4c3ca150fb072d0d273dce0c753db4d0467d54906ad0293f59c54f9db4a09d8b + jest: ./bin/jest.js + checksum: 10c0/af580c6e265d21870c2c98e31f17f2f5cb5c9e6cf9be26b95eaf4fad4140a01579f3b5844d4264cd8357eb24908e95f983ea84d20b8afef46e62aed3dd9452eb languageName: node linkType: hard @@ -23555,7 +23574,7 @@ __metadata: languageName: node linkType: hard -"micromatch@npm:^4.0.4, micromatch@npm:^4.0.5, micromatch@npm:^4.0.8": +"micromatch@npm:^4.0.5, micromatch@npm:^4.0.8": version: 4.0.8 resolution: "micromatch@npm:4.0.8" dependencies: @@ -24790,12 +24809,10 @@ __metadata: languageName: node linkType: hard -"openpgp@npm:5.11.2": - version: 5.11.2 - resolution: "openpgp@npm:5.11.2" - dependencies: - asn1.js: "npm:^5.0.0" - checksum: 10c0/e16141ef507789b080e2b8c94a3081773ca27cf4782a23d4dbcf80cc6394c8ff1d4d64e072c82fd59c81eedc20c57fdbaca109974733a6e0316d869aa8d7fd27 +"openpgp@npm:6.2.2, openpgp@npm:^6.2.2": + version: 6.2.2 + resolution: "openpgp@npm:6.2.2" + checksum: 10c0/dd284ff20ad087c341ec86369e12d5c210056aa28edacba192b20bd0d20892ce21c6aef83c6d79f082f533343e80b8ad63a58ee9ebf5d7651173890e70833ae2 languageName: node linkType: hard @@ -25720,7 +25737,7 @@ __metadata: languageName: node linkType: hard -"pirates@npm:^4.0.4": +"pirates@npm:^4.0.7": version: 4.0.7 resolution: "pirates@npm:4.0.7" checksum: 10c0/a51f108dd811beb779d58a76864bbd49e239fa40c7984cd11596c75a121a8cc789f1c8971d8bb15f0dbf9d48b76c05bb62fcbce840f89b688c0fa64b37e8478a @@ -26004,14 +26021,14 @@ __metadata: languageName: node linkType: hard -"pretty-format@npm:^29.0.0, pretty-format@npm:^29.7.0": - version: 29.7.0 - resolution: "pretty-format@npm:29.7.0" +"pretty-format@npm:30.2.0, pretty-format@npm:^30.0.0": + version: 30.2.0 + resolution: "pretty-format@npm:30.2.0" dependencies: - "@jest/schemas": "npm:^29.6.3" - ansi-styles: "npm:^5.0.0" - react-is: "npm:^18.0.0" - checksum: 10c0/edc5ff89f51916f036c62ed433506b55446ff739358de77207e63e88a28ca2894caac6e73dcb68166a606e51c8087d32d400473e6a9fdd2dbe743f46c9c0276f + "@jest/schemas": "npm:30.0.5" + ansi-styles: "npm:^5.2.0" + react-is: "npm:^18.3.1" + checksum: 10c0/8fdacfd281aa98124e5df80b2c17223fdcb84433876422b54863a6849381b3059eb42b9806d92d2853826bcb966bcb98d499bea5b1e912d869a3c3107fd38d35 languageName: node linkType: hard @@ -26081,7 +26098,7 @@ __metadata: languageName: node linkType: hard -"prompts@npm:^2.0.1, prompts@npm:^2.4.2": +"prompts@npm:^2.4.2": version: 2.4.2 resolution: "prompts@npm:2.4.2" dependencies: @@ -26250,10 +26267,10 @@ __metadata: languageName: node linkType: hard -"pure-rand@npm:^6.0.0": - version: 6.1.0 - resolution: "pure-rand@npm:6.1.0" - checksum: 10c0/1abe217897bf74dcb3a0c9aba3555fe975023147b48db540aa2faf507aee91c03bf54f6aef0eb2bf59cc259a16d06b28eca37f0dc426d94f4692aeff02fb0e65 +"pure-rand@npm:^7.0.0": + version: 7.0.1 + resolution: "pure-rand@npm:7.0.1" + checksum: 10c0/9cade41030f5ec95f5d55a11a71404cd6f46b69becaad892097cd7f58e2c6248cd0a933349ca7d21336ab629f1da42ffe899699b671bc4651600eaf6e57f837e languageName: node linkType: hard @@ -26502,7 +26519,7 @@ __metadata: languageName: node linkType: hard -"react-is@npm:^18.0.0, react-is@npm:^18.3.1": +"react-is@npm:^18.3.1": version: 18.3.1 resolution: "react-is@npm:18.3.1" checksum: 10c0/f2f1e60010c683479e74c63f96b09fb41603527cd131a9959e2aee1e5a8b0caf270b365e5ca77d4a6b18aae659b60a86150bb3979073528877029b35aecd2072 @@ -27045,13 +27062,6 @@ __metadata: languageName: node linkType: hard -"resolve.exports@npm:^2.0.0": - version: 2.0.3 - resolution: "resolve.exports@npm:2.0.3" - checksum: 10c0/1ade1493f4642a6267d0a5e68faeac20b3d220f18c28b140343feb83694d8fed7a286852aef43689d16042c61e2ddb270be6578ad4a13990769e12065191200d - languageName: node - linkType: hard - "resolve@npm:1.1.x": version: 1.1.7 resolution: "resolve@npm:1.1.7" @@ -27068,7 +27078,7 @@ __metadata: languageName: node linkType: hard -"resolve@npm:^1.1.6, resolve@npm:^1.10.0, resolve@npm:^1.17.0, resolve@npm:^1.19.0, resolve@npm:^1.20.0, resolve@npm:^1.22.10, resolve@npm:^1.22.4": +"resolve@npm:^1.1.6, resolve@npm:^1.10.0, resolve@npm:^1.17.0, resolve@npm:^1.19.0, resolve@npm:^1.22.10, resolve@npm:^1.22.4": version: 1.22.11 resolution: "resolve@npm:1.22.11" dependencies: @@ -27120,7 +27130,7 @@ __metadata: languageName: node linkType: hard -"resolve@patch:resolve@npm%3A^1.1.6#optional!builtin, resolve@patch:resolve@npm%3A^1.10.0#optional!builtin, resolve@patch:resolve@npm%3A^1.17.0#optional!builtin, resolve@patch:resolve@npm%3A^1.19.0#optional!builtin, resolve@patch:resolve@npm%3A^1.20.0#optional!builtin, resolve@patch:resolve@npm%3A^1.22.10#optional!builtin, resolve@patch:resolve@npm%3A^1.22.4#optional!builtin": +"resolve@patch:resolve@npm%3A^1.1.6#optional!builtin, resolve@patch:resolve@npm%3A^1.10.0#optional!builtin, resolve@patch:resolve@npm%3A^1.17.0#optional!builtin, resolve@patch:resolve@npm%3A^1.19.0#optional!builtin, resolve@patch:resolve@npm%3A^1.22.10#optional!builtin, resolve@patch:resolve@npm%3A^1.22.4#optional!builtin": version: 1.22.11 resolution: "resolve@patch:resolve@npm%3A1.22.11#optional!builtin::version=1.22.11&hash=c3c19d" dependencies: @@ -27652,7 +27662,7 @@ __metadata: languageName: node linkType: hard -"semver@npm:^7.3.4, semver@npm:^7.3.5, semver@npm:^7.3.7, semver@npm:^7.3.8, semver@npm:^7.5.2, semver@npm:^7.5.3, semver@npm:^7.5.4, semver@npm:^7.6.0, semver@npm:^7.6.3, semver@npm:^7.7.1, semver@npm:^7.7.3": +"semver@npm:^7.3.4, semver@npm:^7.3.5, semver@npm:^7.3.7, semver@npm:^7.3.8, semver@npm:^7.5.2, semver@npm:^7.5.3, semver@npm:^7.5.4, semver@npm:^7.6.0, semver@npm:^7.6.3, semver@npm:^7.7.1, semver@npm:^7.7.2, semver@npm:^7.7.3": version: 7.7.3 resolution: "semver@npm:7.7.3" bin: @@ -27949,7 +27959,7 @@ __metadata: languageName: node linkType: hard -"signal-exit@npm:^3.0.0, signal-exit@npm:^3.0.2, signal-exit@npm:^3.0.3, signal-exit@npm:^3.0.7": +"signal-exit@npm:^3.0.0, signal-exit@npm:^3.0.2, signal-exit@npm:^3.0.3": version: 3.0.7 resolution: "signal-exit@npm:3.0.7" checksum: 10c0/25d272fa73e146048565e08f3309d5b942c1979a6f4a58a8c59d5fa299728e9c2fcd1a759ec870863b1fd38653670240cd420dad2ad9330c71f36608a6a1c912 @@ -28370,7 +28380,7 @@ __metadata: languageName: node linkType: hard -"stack-utils@npm:^2.0.3": +"stack-utils@npm:^2.0.6": version: 2.0.6 resolution: "stack-utils@npm:2.0.6" dependencies: @@ -28531,7 +28541,7 @@ __metadata: languageName: node linkType: hard -"string-length@npm:^4.0.1": +"string-length@npm:^4.0.2": version: 4.0.2 resolution: "string-length@npm:4.0.2" dependencies: @@ -28967,7 +28977,7 @@ __metadata: languageName: node linkType: hard -"synckit@npm:0.11.11, synckit@npm:^0.11.7": +"synckit@npm:0.11.11, synckit@npm:^0.11.7, synckit@npm:^0.11.8": version: 0.11.11 resolution: "synckit@npm:0.11.11" dependencies: @@ -31663,13 +31673,13 @@ __metadata: languageName: node linkType: hard -"write-file-atomic@npm:^4.0.2": - version: 4.0.2 - resolution: "write-file-atomic@npm:4.0.2" +"write-file-atomic@npm:^5.0.1": + version: 5.0.1 + resolution: "write-file-atomic@npm:5.0.1" dependencies: imurmurhash: "npm:^0.1.4" - signal-exit: "npm:^3.0.7" - checksum: 10c0/a2c282c95ef5d8e1c27b335ae897b5eca00e85590d92a3fd69a437919b7b93ff36a69ea04145da55829d2164e724bc62202cdb5f4b208b425aba0807889375c7 + signal-exit: "npm:^4.0.1" + checksum: 10c0/e8c850a8e3e74eeadadb8ad23c9d9d63e4e792bd10f4836ed74189ef6e996763959f1249c5650e232f3c77c11169d239cbfc8342fc70f3fe401407d23810505d languageName: node linkType: hard @@ -31902,7 +31912,7 @@ __metadata: languageName: node linkType: hard -"yargs@npm:17.7.2, yargs@npm:^17.3.1, yargs@npm:^17.7.2": +"yargs@npm:17.7.2, yargs@npm:^17.7.2": version: 17.7.2 resolution: "yargs@npm:17.7.2" dependencies: