From 10fe6e543594da4b9499fe5d0c99cb35953c4a56 Mon Sep 17 00:00:00 2001 From: Eric Lee <98655210+leric7@users.noreply.github.com> Date: Fri, 17 Jan 2025 00:51:00 -0500 Subject: [PATCH 01/44] [Subgraph] Add `name` and `category` to leader entity (#3011) * feat: add name and category to subgraph * feat: update documenation * fix: subgraph test * fix: use ubuntu 22.04 for runner image for subgraph test * feat: add TODO comment for graph test github action * fix: const and enum * feat: update doc * regenerate docs --- .github/workflows/ci-test-subgraph.yaml | 3 +- .../python/human_protocol_sdk.constants.md | 14 ++++ docs/sdk/python/human_protocol_sdk.md | 5 ++ ...an_protocol_sdk.operator.operator_utils.md | 6 +- docs/sdk/python/index.md | 1 + .../base/classes/BaseEthersClient.md | 6 +- .../encryption/classes/Encryption.md | 10 +-- .../encryption/classes/EncryptionUtils.md | 10 +-- docs/sdk/typescript/enums/README.md | 1 + .../typescript/enums/enumerations/ChainId.md | 38 +++++------ .../enums/enumerations/LeaderCategory.md | 27 ++++++++ .../enums/enumerations/OrderDirection.md | 4 +- .../typescript/escrow/classes/EscrowClient.md | 52 +++++++-------- .../typescript/escrow/classes/EscrowUtils.md | 6 +- .../types/type-aliases/DailyEscrowData.md | 2 +- .../types/type-aliases/DailyHMTData.md | 2 +- .../types/type-aliases/DailyPaymentData.md | 2 +- .../types/type-aliases/DailyTaskData.md | 2 +- .../types/type-aliases/DailyWorkerData.md | 2 +- .../graphql/types/type-aliases/EscrowData.md | 2 +- .../types/type-aliases/EscrowStatistics.md | 2 +- .../type-aliases/EscrowStatisticsData.md | 2 +- .../types/type-aliases/EventDayData.md | 2 +- .../graphql/types/type-aliases/HMTHolder.md | 2 +- .../types/type-aliases/HMTHolderData.md | 2 +- .../types/type-aliases/HMTStatistics.md | 2 +- .../types/type-aliases/HMTStatisticsData.md | 2 +- .../graphql/types/type-aliases/IMData.md | 2 +- .../types/type-aliases/IMDataEntity.md | 2 +- .../graphql/types/type-aliases/KVStoreData.md | 2 +- .../types/type-aliases/PaymentStatistics.md | 2 +- .../graphql/types/type-aliases/PayoutData.md | 2 +- .../type-aliases/RewardAddedEventData.md | 2 +- .../graphql/types/type-aliases/StatusEvent.md | 2 +- .../types/type-aliases/TaskStatistics.md | 2 +- .../types/type-aliases/WorkerStatistics.md | 2 +- .../interfaces/interfaces/IEscrowConfig.md | 16 ++--- .../interfaces/interfaces/IEscrowsFilter.md | 24 +++---- .../interfaces/IHMTHoldersParams.md | 8 +-- .../interfaces/interfaces/IKVStore.md | 4 +- .../interfaces/interfaces/IKeyPair.md | 8 +-- .../interfaces/interfaces/ILeader.md | 60 +++++++++++------ .../interfaces/interfaces/ILeaderSubgraph.md | 66 +++++++++++++------ .../interfaces/interfaces/ILeadersFilter.md | 14 ++-- .../interfaces/interfaces/IOperator.md | 12 ++-- .../interfaces/IOperatorSubgraph.md | 12 ++-- .../interfaces/interfaces/IPagination.md | 6 +- .../interfaces/interfaces/IPayoutFilter.md | 8 +-- .../interfaces/IReputationNetwork.md | 6 +- .../interfaces/IReputationNetworkSubgraph.md | 6 +- .../interfaces/interfaces/IReward.md | 4 +- .../interfaces/IStatisticsFilter.md | 10 +-- .../interfaces/interfaces/ITransaction.md | 22 +++---- .../interfaces/ITransactionsFilter.md | 20 +++--- .../interfaces/InternalTransaction.md | 14 ++-- .../interfaces/interfaces/StakerInfo.md | 8 +-- .../kvstore/classes/KVStoreClient.md | 14 ++-- .../kvstore/classes/KVStoreUtils.md | 8 +-- .../operator/classes/OperatorUtils.md | 8 +-- .../staking/classes/StakingClient.md | 26 ++++---- .../statistics/classes/StatisticsClient.md | 18 ++--- .../storage/classes/StorageClient.md | 12 ++-- .../transaction/classes/TransactionUtils.md | 4 +- .../types/enumerations/EscrowStatus.md | 12 ++-- .../types/type-aliases/EscrowCancel.md | 2 +- .../types/type-aliases/EscrowWithdraw.md | 2 +- .../types/type-aliases/NetworkData.md | 2 +- .../types/type-aliases/StorageCredentials.md | 2 +- .../types/type-aliases/StorageParams.md | 2 +- .../type-aliases/TransactionLikeWithNonce.md | 2 +- .../types/type-aliases/UploadFile.md | 2 +- .../human_protocol_sdk/constants.py | 9 +++ .../human_protocol_sdk/gql/operator.py | 2 + .../operator/operator_utils.py | 10 +++ .../operator/test_operator_utils.py | 24 +++++++ .../human-protocol-sdk/src/constants.ts | 2 + .../human-protocol-sdk/src/enums.ts | 5 ++ .../src/graphql/queries/operator.ts | 2 + .../human-protocol-sdk/src/interfaces.ts | 2 + .../human-protocol-sdk/test/operator.test.ts | 2 + .../sdk/typescript/subgraph/schema.graphql | 3 + .../subgraph/src/mapping/KVStore.ts | 4 ++ .../subgraph/tests/kvstore/kvstore.test.ts | 52 +++++++++++++++ 83 files changed, 502 insertions(+), 286 deletions(-) create mode 100644 docs/sdk/typescript/enums/enumerations/LeaderCategory.md diff --git a/.github/workflows/ci-test-subgraph.yaml b/.github/workflows/ci-test-subgraph.yaml index c3146e96d4..a48cba94a0 100644 --- a/.github/workflows/ci-test-subgraph.yaml +++ b/.github/workflows/ci-test-subgraph.yaml @@ -13,7 +13,8 @@ on: jobs: subgraph-test: name: Subgraph Test - runs-on: ubuntu-latest + # TODO: Use ubuntu-latest when graph binary is not failing on ubuntu 24.04 + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 - run: npm install --global yarn && yarn diff --git a/docs/sdk/python/human_protocol_sdk.constants.md b/docs/sdk/python/human_protocol_sdk.constants.md index 8184f41422..961e2a206f 100644 --- a/docs/sdk/python/human_protocol_sdk.constants.md +++ b/docs/sdk/python/human_protocol_sdk.constants.md @@ -48,10 +48,14 @@ Bases: `Enum` Enum for KVStore keys +#### category *= 'category'* + #### fee *= 'fee'* #### job_types *= 'job_types'* +#### name *= 'name'* + #### public_key *= 'public_key'* #### registration_instructions *= 'registration_instructions'* @@ -64,6 +68,16 @@ Enum for KVStore keys #### webhook_url *= 'webhook_url'* +### *class* human_protocol_sdk.constants.LeaderCategory(value) + +Bases: `Enum` + +Enum for leader categories + +#### MACHINE_LEARNING *= 'machine_learning'* + +#### MARKET_MAKING *= 'market_making'* + ### *class* human_protocol_sdk.constants.OrderDirection(value) Bases: `Enum` diff --git a/docs/sdk/python/human_protocol_sdk.md b/docs/sdk/python/human_protocol_sdk.md index 6e9d0c4f79..ed892e3b7c 100644 --- a/docs/sdk/python/human_protocol_sdk.md +++ b/docs/sdk/python/human_protocol_sdk.md @@ -148,14 +148,19 @@ * [`ChainId.XLAYER`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.ChainId.XLAYER) * [`ChainId.XLAYER_TESTNET`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.ChainId.XLAYER_TESTNET) * [`KVStoreKeys`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.KVStoreKeys) + * [`KVStoreKeys.category`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.KVStoreKeys.category) * [`KVStoreKeys.fee`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.KVStoreKeys.fee) * [`KVStoreKeys.job_types`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.KVStoreKeys.job_types) + * [`KVStoreKeys.name`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.KVStoreKeys.name) * [`KVStoreKeys.public_key`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.KVStoreKeys.public_key) * [`KVStoreKeys.registration_instructions`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.KVStoreKeys.registration_instructions) * [`KVStoreKeys.registration_needed`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.KVStoreKeys.registration_needed) * [`KVStoreKeys.role`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.KVStoreKeys.role) * [`KVStoreKeys.url`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.KVStoreKeys.url) * [`KVStoreKeys.webhook_url`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.KVStoreKeys.webhook_url) + * [`LeaderCategory`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.LeaderCategory) + * [`LeaderCategory.MACHINE_LEARNING`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.LeaderCategory.MACHINE_LEARNING) + * [`LeaderCategory.MARKET_MAKING`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.LeaderCategory.MARKET_MAKING) * [`OrderDirection`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.OrderDirection) * [`OrderDirection.ASC`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.OrderDirection.ASC) * [`OrderDirection.DESC`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.OrderDirection.DESC) diff --git a/docs/sdk/python/human_protocol_sdk.operator.operator_utils.md b/docs/sdk/python/human_protocol_sdk.operator.operator_utils.md index 2b0ba2b266..1200f47d0d 100644 --- a/docs/sdk/python/human_protocol_sdk.operator.operator_utils.md +++ b/docs/sdk/python/human_protocol_sdk.operator.operator_utils.md @@ -17,11 +17,11 @@ print( ## Module -### *class* human_protocol_sdk.operator.operator_utils.LeaderData(chain_id, id, address, amount_staked, amount_locked, locked_until_timestamp, amount_withdrawn, amount_slashed, reward, amount_jobs_processed, role=None, fee=None, public_key=None, webhook_url=None, website=None, url=None, job_types=None, registration_needed=None, registration_instructions=None, reputation_networks=None) +### *class* human_protocol_sdk.operator.operator_utils.LeaderData(chain_id, id, address, amount_staked, amount_locked, locked_until_timestamp, amount_withdrawn, amount_slashed, reward, amount_jobs_processed, role=None, fee=None, public_key=None, webhook_url=None, website=None, url=None, job_types=None, registration_needed=None, registration_instructions=None, reputation_networks=None, name=None, category=None) Bases: `object` -#### \_\_init_\_(chain_id, id, address, amount_staked, amount_locked, locked_until_timestamp, amount_withdrawn, amount_slashed, reward, amount_jobs_processed, role=None, fee=None, public_key=None, webhook_url=None, website=None, url=None, job_types=None, registration_needed=None, registration_instructions=None, reputation_networks=None) +#### \_\_init_\_(chain_id, id, address, amount_staked, amount_locked, locked_until_timestamp, amount_withdrawn, amount_slashed, reward, amount_jobs_processed, role=None, fee=None, public_key=None, webhook_url=None, website=None, url=None, job_types=None, registration_needed=None, registration_instructions=None, reputation_networks=None, name=None, category=None) Initializes a LeaderData instance. @@ -46,6 +46,8 @@ Initializes a LeaderData instance. * **registration_needed** (`Optional`[`bool`]) – Whether registration is needed * **registration_instructions** (`Optional`[`str`]) – Registration instructions * **reputation_networks** (`Optional`[`List`[`str`]]) – List of reputation networks + * **name** (`Optional`[`str`]) – Name + * **category** (`Optional`[`str`]) – Category ### *class* human_protocol_sdk.operator.operator_utils.LeaderFilter(chain_id, roles=[], min_amount_staked=None, order_by=None, order_direction=OrderDirection.DESC, first=10, skip=0) diff --git a/docs/sdk/python/index.md b/docs/sdk/python/index.md index b0c6143ea2..01c89fc3ba 100644 --- a/docs/sdk/python/index.md +++ b/docs/sdk/python/index.md @@ -51,6 +51,7 @@ pip install human-protocol-sdk[agreement] * [human_protocol_sdk.constants module](human_protocol_sdk.constants.md) * [`ChainId`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.ChainId) * [`KVStoreKeys`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.KVStoreKeys) + * [`LeaderCategory`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.LeaderCategory) * [`OrderDirection`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.OrderDirection) * [`Role`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.Role) * [`Status`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.Status) diff --git a/docs/sdk/typescript/base/classes/BaseEthersClient.md b/docs/sdk/typescript/base/classes/BaseEthersClient.md index aab302b3c0..613eeee2e2 100644 --- a/docs/sdk/typescript/base/classes/BaseEthersClient.md +++ b/docs/sdk/typescript/base/classes/BaseEthersClient.md @@ -44,7 +44,7 @@ The network information required to connect to the contracts #### Defined in -[base.ts:20](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L20) +[base.ts:20](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L20) ## Properties @@ -54,7 +54,7 @@ The network information required to connect to the contracts #### Defined in -[base.ts:12](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12) +[base.ts:12](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12) *** @@ -64,4 +64,4 @@ The network information required to connect to the contracts #### Defined in -[base.ts:11](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L11) +[base.ts:11](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/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 9eb33287cc..bfc879b7fc 100644 --- a/docs/sdk/typescript/encryption/classes/Encryption.md +++ b/docs/sdk/typescript/encryption/classes/Encryption.md @@ -67,7 +67,7 @@ The private key. #### Defined in -[encryption.ts:66](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L66) +[encryption.ts:66](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L66) ## Methods @@ -123,7 +123,7 @@ const resultMessage = await encryption.decrypt('message'); #### Defined in -[encryption.ts:194](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L194) +[encryption.ts:194](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L194) *** @@ -161,7 +161,7 @@ const resultMessage = await encryption.sign('message'); #### Defined in -[encryption.ts:251](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L251) +[encryption.ts:251](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L251) *** @@ -230,7 +230,7 @@ const resultMessage = await encryption.signAndEncrypt('message', publicKeys); #### Defined in -[encryption.ts:142](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L142) +[encryption.ts:142](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L142) *** @@ -262,4 +262,4 @@ Optional: The passphrase for the private key. #### Defined in -[encryption.ts:77](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L77) +[encryption.ts:77](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L77) diff --git a/docs/sdk/typescript/encryption/classes/EncryptionUtils.md b/docs/sdk/typescript/encryption/classes/EncryptionUtils.md index 639f450450..3a1d80399d 100644 --- a/docs/sdk/typescript/encryption/classes/EncryptionUtils.md +++ b/docs/sdk/typescript/encryption/classes/EncryptionUtils.md @@ -103,7 +103,7 @@ const result = await EncryptionUtils.encrypt('message', publicKeys); #### Defined in -[encryption.ts:444](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L444) +[encryption.ts:444](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L444) *** @@ -152,7 +152,7 @@ const result = await EncryptionUtils.generateKeyPair(name, email, passphrase); #### Defined in -[encryption.ts:382](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L382) +[encryption.ts:382](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L382) *** @@ -186,7 +186,7 @@ const signedData = await EncryptionUtils.getSignedData('message'); #### Defined in -[encryption.ts:351](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L351) +[encryption.ts:351](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L351) *** @@ -236,7 +236,7 @@ if (isEncrypted) { #### Defined in -[encryption.ts:494](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L494) +[encryption.ts:494](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L494) *** @@ -288,4 +288,4 @@ const result = await EncryptionUtils.verify('message', publicKey); #### Defined in -[encryption.ts:318](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L318) +[encryption.ts:318](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L318) diff --git a/docs/sdk/typescript/enums/README.md b/docs/sdk/typescript/enums/README.md index ea796f9dd0..a24fdec353 100644 --- a/docs/sdk/typescript/enums/README.md +++ b/docs/sdk/typescript/enums/README.md @@ -11,4 +11,5 @@ ### Enumerations - [ChainId](enumerations/ChainId.md) +- [LeaderCategory](enumerations/LeaderCategory.md) - [OrderDirection](enumerations/OrderDirection.md) diff --git a/docs/sdk/typescript/enums/enumerations/ChainId.md b/docs/sdk/typescript/enums/enumerations/ChainId.md index 1126047e1a..90c904a64a 100644 --- a/docs/sdk/typescript/enums/enumerations/ChainId.md +++ b/docs/sdk/typescript/enums/enumerations/ChainId.md @@ -14,7 +14,7 @@ #### Defined in -[enums.ts:2](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L2) +[enums.ts:2](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L2) *** @@ -24,7 +24,7 @@ #### Defined in -[enums.ts:15](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L15) +[enums.ts:15](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L15) *** @@ -34,7 +34,7 @@ #### Defined in -[enums.ts:14](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L14) +[enums.ts:14](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L14) *** @@ -44,7 +44,7 @@ #### Defined in -[enums.ts:7](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L7) +[enums.ts:7](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L7) *** @@ -54,7 +54,7 @@ #### Defined in -[enums.ts:8](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L8) +[enums.ts:8](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L8) *** @@ -64,7 +64,7 @@ #### Defined in -[enums.ts:16](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L16) +[enums.ts:16](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L16) *** @@ -74,7 +74,7 @@ #### Defined in -[enums.ts:17](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L17) +[enums.ts:17](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L17) *** @@ -84,7 +84,7 @@ #### Defined in -[enums.ts:5](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L5) +[enums.ts:5](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L5) *** @@ -94,7 +94,7 @@ #### Defined in -[enums.ts:19](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L19) +[enums.ts:19](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L19) *** @@ -104,7 +104,7 @@ #### Defined in -[enums.ts:3](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L3) +[enums.ts:3](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L3) *** @@ -114,7 +114,7 @@ #### Defined in -[enums.ts:13](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L13) +[enums.ts:13](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L13) *** @@ -124,7 +124,7 @@ #### Defined in -[enums.ts:12](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L12) +[enums.ts:12](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L12) *** @@ -134,7 +134,7 @@ #### Defined in -[enums.ts:9](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L9) +[enums.ts:9](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L9) *** @@ -144,7 +144,7 @@ #### Defined in -[enums.ts:11](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L11) +[enums.ts:11](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L11) *** @@ -154,7 +154,7 @@ #### Defined in -[enums.ts:10](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L10) +[enums.ts:10](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L10) *** @@ -164,7 +164,7 @@ #### Defined in -[enums.ts:4](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L4) +[enums.ts:4](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L4) *** @@ -174,7 +174,7 @@ #### Defined in -[enums.ts:6](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L6) +[enums.ts:6](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L6) *** @@ -184,7 +184,7 @@ #### Defined in -[enums.ts:20](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L20) +[enums.ts:20](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L20) *** @@ -194,4 +194,4 @@ #### Defined in -[enums.ts:18](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L18) +[enums.ts:18](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L18) diff --git a/docs/sdk/typescript/enums/enumerations/LeaderCategory.md b/docs/sdk/typescript/enums/enumerations/LeaderCategory.md new file mode 100644 index 0000000000..d683b08b4f --- /dev/null +++ b/docs/sdk/typescript/enums/enumerations/LeaderCategory.md @@ -0,0 +1,27 @@ +[**@human-protocol/sdk**](../../README.md) + +*** + +[@human-protocol/sdk](../../modules.md) / [enums](../README.md) / LeaderCategory + +# Enumeration: LeaderCategory + +## Enumeration Members + +### MACHINE\_LEARNING + +> **MACHINE\_LEARNING**: `"machine_learning"` + +#### Defined in + +[enums.ts:29](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L29) + +*** + +### MARKET\_MAKING + +> **MARKET\_MAKING**: `"market_making"` + +#### Defined in + +[enums.ts:30](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L30) diff --git a/docs/sdk/typescript/enums/enumerations/OrderDirection.md b/docs/sdk/typescript/enums/enumerations/OrderDirection.md index bf0533ffbf..1a66e5acb5 100644 --- a/docs/sdk/typescript/enums/enumerations/OrderDirection.md +++ b/docs/sdk/typescript/enums/enumerations/OrderDirection.md @@ -14,7 +14,7 @@ #### Defined in -[enums.ts:24](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L24) +[enums.ts:24](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L24) *** @@ -24,4 +24,4 @@ #### Defined in -[enums.ts:25](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L25) +[enums.ts:25](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L25) diff --git a/docs/sdk/typescript/escrow/classes/EscrowClient.md b/docs/sdk/typescript/escrow/classes/EscrowClient.md index 68e862ef62..7b46000dee 100644 --- a/docs/sdk/typescript/escrow/classes/EscrowClient.md +++ b/docs/sdk/typescript/escrow/classes/EscrowClient.md @@ -110,7 +110,7 @@ The network information required to connect to the Escrow contract #### Defined in -[escrow.ts:138](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L138) +[escrow.ts:138](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L138) ## Properties @@ -124,7 +124,7 @@ The network information required to connect to the Escrow contract #### Defined in -[base.ts:12](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12) +[base.ts:12](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12) *** @@ -138,7 +138,7 @@ The network information required to connect to the Escrow contract #### Defined in -[base.ts:11](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L11) +[base.ts:11](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L11) ## Methods @@ -195,7 +195,7 @@ await escrowClient.addTrustedHandlers('0x62dD51230A30401C455c8398d06F85e4EaB6309 #### Defined in -[escrow.ts:766](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L766) +[escrow.ts:766](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L766) *** @@ -287,7 +287,7 @@ await escrowClient.bulkPayOut('0x62dD51230A30401C455c8398d06F85e4EaB6309f', reci #### Defined in -[escrow.ts:599](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L599) +[escrow.ts:599](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L599) *** @@ -337,7 +337,7 @@ await escrowClient.cancel('0x62dD51230A30401C455c8398d06F85e4EaB6309f'); #### Defined in -[escrow.ts:680](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L680) +[escrow.ts:680](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L680) *** @@ -387,7 +387,7 @@ await escrowClient.complete('0x62dD51230A30401C455c8398d06F85e4EaB6309f'); #### Defined in -[escrow.ts:538](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L538) +[escrow.ts:538](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L538) *** @@ -483,7 +483,7 @@ console.log('Tx hash:', ethers.keccak256(signedTransaction)); #### Defined in -[escrow.ts:935](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L935) +[escrow.ts:935](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L935) *** @@ -548,7 +548,7 @@ const escrowAddress = await escrowClient.createEscrow(tokenAddress, trustedHandl #### Defined in -[escrow.ts:218](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L218) +[escrow.ts:218](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L218) *** @@ -603,7 +603,7 @@ await escrowClient.fund('0x62dD51230A30401C455c8398d06F85e4EaB6309f', amount); #### Defined in -[escrow.ts:409](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L409) +[escrow.ts:409](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L409) *** @@ -643,7 +643,7 @@ const balance = await escrowClient.getBalance('0x62dD51230A30401C455c8398d06F85e #### Defined in -[escrow.ts:1080](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1080) +[escrow.ts:1080](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1080) *** @@ -683,7 +683,7 @@ const oracleAddress = await escrowClient.getExchangeOracleAddress('0x62dD51230A3 #### Defined in -[escrow.ts:1466](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1466) +[escrow.ts:1466](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1466) *** @@ -723,7 +723,7 @@ const factoryAddress = await escrowClient.getFactoryAddress('0x62dD51230A30401C4 #### Defined in -[escrow.ts:1504](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1504) +[escrow.ts:1504](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1504) *** @@ -763,7 +763,7 @@ const intermediateResultsUrl = await escrowClient.getIntermediateResultsUrl('0x6 #### Defined in -[escrow.ts:1238](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1238) +[escrow.ts:1238](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1238) *** @@ -803,7 +803,7 @@ const jobLauncherAddress = await escrowClient.getJobLauncherAddress('0x62dD51230 #### Defined in -[escrow.ts:1390](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1390) +[escrow.ts:1390](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1390) *** @@ -843,7 +843,7 @@ const manifestHash = await escrowClient.getManifestHash('0x62dD51230A30401C455c8 #### Defined in -[escrow.ts:1124](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1124) +[escrow.ts:1124](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1124) *** @@ -883,7 +883,7 @@ const manifestUrl = await escrowClient.getManifestUrl('0x62dD51230A30401C455c839 #### Defined in -[escrow.ts:1162](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1162) +[escrow.ts:1162](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1162) *** @@ -923,7 +923,7 @@ const oracleAddress = await escrowClient.getRecordingOracleAddress('0x62dD51230A #### Defined in -[escrow.ts:1352](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1352) +[escrow.ts:1352](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1352) *** @@ -963,7 +963,7 @@ const oracleAddress = await escrowClient.getReputationOracleAddress('0x62dD51230 #### Defined in -[escrow.ts:1428](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1428) +[escrow.ts:1428](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1428) *** @@ -1003,7 +1003,7 @@ const resultsUrl = await escrowClient.getResultsUrl('0x62dD51230A30401C455c8398d #### Defined in -[escrow.ts:1200](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1200) +[escrow.ts:1200](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1200) *** @@ -1043,7 +1043,7 @@ const status = await escrowClient.getStatus('0x62dD51230A30401C455c8398d06F85e4E #### Defined in -[escrow.ts:1314](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1314) +[escrow.ts:1314](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1314) *** @@ -1083,7 +1083,7 @@ const tokenAddress = await escrowClient.getTokenAddress('0x62dD51230A30401C455c8 #### Defined in -[escrow.ts:1276](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1276) +[escrow.ts:1276](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1276) *** @@ -1150,7 +1150,7 @@ await escrowClient.setup(escrowAddress, escrowConfig); #### Defined in -[escrow.ts:299](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L299) +[escrow.ts:299](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L299) *** @@ -1212,7 +1212,7 @@ await escrowClient.storeResults('0x62dD51230A30401C455c8398d06F85e4EaB6309f', 'h #### Defined in -[escrow.ts:474](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L474) +[escrow.ts:474](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L474) *** @@ -1271,7 +1271,7 @@ await escrowClient.withdraw( #### Defined in -[escrow.ts:832](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L832) +[escrow.ts:832](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L832) *** @@ -1305,4 +1305,4 @@ Thrown if the network's chainId is not supported #### Defined in -[escrow.ts:156](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L156) +[escrow.ts:156](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L156) diff --git a/docs/sdk/typescript/escrow/classes/EscrowUtils.md b/docs/sdk/typescript/escrow/classes/EscrowUtils.md index c61c8d723a..f0782ef4b6 100644 --- a/docs/sdk/typescript/escrow/classes/EscrowUtils.md +++ b/docs/sdk/typescript/escrow/classes/EscrowUtils.md @@ -133,7 +133,7 @@ const escrowData = new EscrowUtils.getEscrow(ChainId.POLYGON_AMOY, "0x1234567890 #### Defined in -[escrow.ts:1784](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1784) +[escrow.ts:1784](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1784) *** @@ -255,7 +255,7 @@ const escrowDatas = await EscrowUtils.getEscrows(filters); #### Defined in -[escrow.ts:1658](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1658) +[escrow.ts:1658](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1658) *** @@ -384,4 +384,4 @@ import { ChainId, EscrowUtils, EscrowStatus } from '@human-protocol/sdk'; #### Defined in -[escrow.ts:1882](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1882) +[escrow.ts:1882](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1882) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/DailyEscrowData.md b/docs/sdk/typescript/graphql/types/type-aliases/DailyEscrowData.md index 6939c17073..c2844dbc0f 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/DailyEscrowData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/DailyEscrowData.md @@ -36,4 +36,4 @@ ## Defined in -[graphql/types.ts:83](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L83) +[graphql/types.ts:83](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L83) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/DailyHMTData.md b/docs/sdk/typescript/graphql/types/type-aliases/DailyHMTData.md index 631a1136f5..4ebe50a1f0 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/DailyHMTData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/DailyHMTData.md @@ -32,4 +32,4 @@ ## Defined in -[graphql/types.ts:127](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L127) +[graphql/types.ts:127](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L127) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/DailyPaymentData.md b/docs/sdk/typescript/graphql/types/type-aliases/DailyPaymentData.md index c00cd71a39..a2f26f93c0 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/DailyPaymentData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/DailyPaymentData.md @@ -28,4 +28,4 @@ ## Defined in -[graphql/types.ts:106](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L106) +[graphql/types.ts:106](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L106) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/DailyTaskData.md b/docs/sdk/typescript/graphql/types/type-aliases/DailyTaskData.md index 6dad88e163..ce22ceb348 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/DailyTaskData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/DailyTaskData.md @@ -24,4 +24,4 @@ ## Defined in -[graphql/types.ts:148](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L148) +[graphql/types.ts:148](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L148) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/DailyWorkerData.md b/docs/sdk/typescript/graphql/types/type-aliases/DailyWorkerData.md index 9db6c7728c..f6840c8690 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/DailyWorkerData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/DailyWorkerData.md @@ -20,4 +20,4 @@ ## Defined in -[graphql/types.ts:97](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L97) +[graphql/types.ts:97](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L97) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/EscrowData.md b/docs/sdk/typescript/graphql/types/type-aliases/EscrowData.md index 5016e99053..28d8691a16 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/EscrowData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/EscrowData.md @@ -88,4 +88,4 @@ ## Defined in -[graphql/types.ts:3](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L3) +[graphql/types.ts:3](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L3) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/EscrowStatistics.md b/docs/sdk/typescript/graphql/types/type-aliases/EscrowStatistics.md index 6f053e052a..7d248397cf 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/EscrowStatistics.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/EscrowStatistics.md @@ -20,4 +20,4 @@ ## Defined in -[graphql/types.ts:92](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L92) +[graphql/types.ts:92](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L92) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/EscrowStatisticsData.md b/docs/sdk/typescript/graphql/types/type-aliases/EscrowStatisticsData.md index 2217dcc069..ddc0cb4727 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/EscrowStatisticsData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/EscrowStatisticsData.md @@ -52,4 +52,4 @@ ## Defined in -[graphql/types.ts:42](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L42) +[graphql/types.ts:42](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L42) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/EventDayData.md b/docs/sdk/typescript/graphql/types/type-aliases/EventDayData.md index 75aebe52f0..a6cd5b3800 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/EventDayData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/EventDayData.md @@ -84,4 +84,4 @@ ## Defined in -[graphql/types.ts:55](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L55) +[graphql/types.ts:55](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L55) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/HMTHolder.md b/docs/sdk/typescript/graphql/types/type-aliases/HMTHolder.md index 705bf707dd..e1eff3734b 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/HMTHolder.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/HMTHolder.md @@ -20,4 +20,4 @@ ## Defined in -[graphql/types.ts:122](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L122) +[graphql/types.ts:122](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L122) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/HMTHolderData.md b/docs/sdk/typescript/graphql/types/type-aliases/HMTHolderData.md index e556d5c3ac..016af5ff6a 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/HMTHolderData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/HMTHolderData.md @@ -20,4 +20,4 @@ ## Defined in -[graphql/types.ts:117](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L117) +[graphql/types.ts:117](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L117) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/HMTStatistics.md b/docs/sdk/typescript/graphql/types/type-aliases/HMTStatistics.md index e9bf2db822..348252f12e 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/HMTStatistics.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/HMTStatistics.md @@ -24,4 +24,4 @@ ## Defined in -[graphql/types.ts:135](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L135) +[graphql/types.ts:135](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L135) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/HMTStatisticsData.md b/docs/sdk/typescript/graphql/types/type-aliases/HMTStatisticsData.md index 5f6cd95556..35cf8ffdbe 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/HMTStatisticsData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/HMTStatisticsData.md @@ -36,4 +36,4 @@ ## Defined in -[graphql/types.ts:33](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L33) +[graphql/types.ts:33](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L33) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/IMData.md b/docs/sdk/typescript/graphql/types/type-aliases/IMData.md index 55e5b90f48..aa4bfe26ed 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/IMData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/IMData.md @@ -10,4 +10,4 @@ ## Defined in -[graphql/types.ts:146](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L146) +[graphql/types.ts:146](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L146) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/IMDataEntity.md b/docs/sdk/typescript/graphql/types/type-aliases/IMDataEntity.md index 6a2393c1d7..5f3d99408d 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/IMDataEntity.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/IMDataEntity.md @@ -20,4 +20,4 @@ ## Defined in -[graphql/types.ts:141](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L141) +[graphql/types.ts:141](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L141) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/KVStoreData.md b/docs/sdk/typescript/graphql/types/type-aliases/KVStoreData.md index 0766b090c1..a23716825b 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/KVStoreData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/KVStoreData.md @@ -36,4 +36,4 @@ ## Defined in -[graphql/types.ts:165](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L165) +[graphql/types.ts:165](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L165) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/PaymentStatistics.md b/docs/sdk/typescript/graphql/types/type-aliases/PaymentStatistics.md index 4537a6a134..9036ab9846 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/PaymentStatistics.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/PaymentStatistics.md @@ -16,4 +16,4 @@ ## Defined in -[graphql/types.ts:113](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L113) +[graphql/types.ts:113](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L113) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/PayoutData.md b/docs/sdk/typescript/graphql/types/type-aliases/PayoutData.md index 23eafd31c1..526ac92fe2 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/PayoutData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/PayoutData.md @@ -32,4 +32,4 @@ ## Defined in -[graphql/types.ts:25](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L25) +[graphql/types.ts:25](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L25) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/RewardAddedEventData.md b/docs/sdk/typescript/graphql/types/type-aliases/RewardAddedEventData.md index d647adb306..75192e497c 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/RewardAddedEventData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/RewardAddedEventData.md @@ -28,4 +28,4 @@ ## Defined in -[graphql/types.ts:76](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L76) +[graphql/types.ts:76](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L76) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/StatusEvent.md b/docs/sdk/typescript/graphql/types/type-aliases/StatusEvent.md index 062aa352a2..7c24cfcf19 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/StatusEvent.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/StatusEvent.md @@ -28,4 +28,4 @@ ## Defined in -[graphql/types.ts:158](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L158) +[graphql/types.ts:158](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L158) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/TaskStatistics.md b/docs/sdk/typescript/graphql/types/type-aliases/TaskStatistics.md index 519f786bbc..2628ae6732 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/TaskStatistics.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/TaskStatistics.md @@ -16,4 +16,4 @@ ## Defined in -[graphql/types.ts:154](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L154) +[graphql/types.ts:154](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L154) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/WorkerStatistics.md b/docs/sdk/typescript/graphql/types/type-aliases/WorkerStatistics.md index 17b8ea44cd..f3fd2ee427 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/WorkerStatistics.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/WorkerStatistics.md @@ -16,4 +16,4 @@ ## Defined in -[graphql/types.ts:102](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L102) +[graphql/types.ts:102](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L102) diff --git a/docs/sdk/typescript/interfaces/interfaces/IEscrowConfig.md b/docs/sdk/typescript/interfaces/interfaces/IEscrowConfig.md index bbba2181bd..1aa3690310 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IEscrowConfig.md +++ b/docs/sdk/typescript/interfaces/interfaces/IEscrowConfig.md @@ -14,7 +14,7 @@ #### Defined in -[interfaces.ts:84](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L84) +[interfaces.ts:86](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L86) *** @@ -24,7 +24,7 @@ #### Defined in -[interfaces.ts:87](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L87) +[interfaces.ts:89](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L89) *** @@ -34,7 +34,7 @@ #### Defined in -[interfaces.ts:89](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L89) +[interfaces.ts:91](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L91) *** @@ -44,7 +44,7 @@ #### Defined in -[interfaces.ts:88](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L88) +[interfaces.ts:90](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L90) *** @@ -54,7 +54,7 @@ #### Defined in -[interfaces.ts:82](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L82) +[interfaces.ts:84](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L84) *** @@ -64,7 +64,7 @@ #### Defined in -[interfaces.ts:85](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L85) +[interfaces.ts:87](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L87) *** @@ -74,7 +74,7 @@ #### Defined in -[interfaces.ts:83](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L83) +[interfaces.ts:85](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L85) *** @@ -84,4 +84,4 @@ #### Defined in -[interfaces.ts:86](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L86) +[interfaces.ts:88](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L88) diff --git a/docs/sdk/typescript/interfaces/interfaces/IEscrowsFilter.md b/docs/sdk/typescript/interfaces/interfaces/IEscrowsFilter.md index 953c6c0683..a81e3e1366 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IEscrowsFilter.md +++ b/docs/sdk/typescript/interfaces/interfaces/IEscrowsFilter.md @@ -18,7 +18,7 @@ #### Defined in -[interfaces.ts:78](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L78) +[interfaces.ts:80](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L80) *** @@ -28,7 +28,7 @@ #### Defined in -[interfaces.ts:73](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L73) +[interfaces.ts:75](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L75) *** @@ -42,7 +42,7 @@ #### Defined in -[interfaces.ts:155](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L155) +[interfaces.ts:157](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L157) *** @@ -52,7 +52,7 @@ #### Defined in -[interfaces.ts:76](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L76) +[interfaces.ts:78](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L78) *** @@ -62,7 +62,7 @@ #### Defined in -[interfaces.ts:74](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L74) +[interfaces.ts:76](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L76) *** @@ -72,7 +72,7 @@ #### Defined in -[interfaces.ts:70](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L70) +[interfaces.ts:72](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L72) *** @@ -86,7 +86,7 @@ #### Defined in -[interfaces.ts:157](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L157) +[interfaces.ts:159](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L159) *** @@ -96,7 +96,7 @@ #### Defined in -[interfaces.ts:72](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L72) +[interfaces.ts:74](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L74) *** @@ -106,7 +106,7 @@ #### Defined in -[interfaces.ts:71](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L71) +[interfaces.ts:73](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L73) *** @@ -120,7 +120,7 @@ #### Defined in -[interfaces.ts:156](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L156) +[interfaces.ts:158](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L158) *** @@ -130,7 +130,7 @@ #### Defined in -[interfaces.ts:75](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L75) +[interfaces.ts:77](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L77) *** @@ -140,4 +140,4 @@ #### Defined in -[interfaces.ts:77](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L77) +[interfaces.ts:79](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L79) diff --git a/docs/sdk/typescript/interfaces/interfaces/IHMTHoldersParams.md b/docs/sdk/typescript/interfaces/interfaces/IHMTHoldersParams.md index 765f1fbcb4..491f52a03a 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IHMTHoldersParams.md +++ b/docs/sdk/typescript/interfaces/interfaces/IHMTHoldersParams.md @@ -18,7 +18,7 @@ #### Defined in -[interfaces.ts:105](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L105) +[interfaces.ts:107](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L107) *** @@ -32,7 +32,7 @@ #### Defined in -[interfaces.ts:155](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L155) +[interfaces.ts:157](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L157) *** @@ -46,7 +46,7 @@ #### Defined in -[interfaces.ts:157](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L157) +[interfaces.ts:159](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L159) *** @@ -60,4 +60,4 @@ #### Defined in -[interfaces.ts:156](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L156) +[interfaces.ts:158](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L158) diff --git a/docs/sdk/typescript/interfaces/interfaces/IKVStore.md b/docs/sdk/typescript/interfaces/interfaces/IKVStore.md index 095f7bf67a..0093b1656c 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IKVStore.md +++ b/docs/sdk/typescript/interfaces/interfaces/IKVStore.md @@ -14,7 +14,7 @@ #### Defined in -[interfaces.ts:116](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L116) +[interfaces.ts:118](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L118) *** @@ -24,4 +24,4 @@ #### Defined in -[interfaces.ts:117](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L117) +[interfaces.ts:119](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L119) diff --git a/docs/sdk/typescript/interfaces/interfaces/IKeyPair.md b/docs/sdk/typescript/interfaces/interfaces/IKeyPair.md index 4617446a23..e6c8201a6b 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IKeyPair.md +++ b/docs/sdk/typescript/interfaces/interfaces/IKeyPair.md @@ -14,7 +14,7 @@ #### Defined in -[interfaces.ts:95](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L95) +[interfaces.ts:97](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L97) *** @@ -24,7 +24,7 @@ #### Defined in -[interfaces.ts:93](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L93) +[interfaces.ts:95](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L95) *** @@ -34,7 +34,7 @@ #### Defined in -[interfaces.ts:94](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L94) +[interfaces.ts:96](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L96) *** @@ -44,4 +44,4 @@ #### Defined in -[interfaces.ts:96](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L96) +[interfaces.ts:98](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L98) diff --git a/docs/sdk/typescript/interfaces/interfaces/ILeader.md b/docs/sdk/typescript/interfaces/interfaces/ILeader.md index d6294e29e9..b6528e34ae 100644 --- a/docs/sdk/typescript/interfaces/interfaces/ILeader.md +++ b/docs/sdk/typescript/interfaces/interfaces/ILeader.md @@ -14,7 +14,7 @@ #### Defined in -[interfaces.ts:12](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L12) +[interfaces.ts:12](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L12) *** @@ -24,7 +24,7 @@ #### Defined in -[interfaces.ts:19](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L19) +[interfaces.ts:19](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L19) *** @@ -34,7 +34,7 @@ #### Defined in -[interfaces.ts:14](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L14) +[interfaces.ts:14](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L14) *** @@ -44,7 +44,7 @@ #### Defined in -[interfaces.ts:17](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L17) +[interfaces.ts:17](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L17) *** @@ -54,7 +54,7 @@ #### Defined in -[interfaces.ts:13](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L13) +[interfaces.ts:13](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L13) *** @@ -64,7 +64,17 @@ #### Defined in -[interfaces.ts:16](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L16) +[interfaces.ts:16](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L16) + +*** + +### category? + +> `optional` **category**: `string` + +#### Defined in + +[interfaces.ts:31](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L31) *** @@ -74,7 +84,7 @@ #### Defined in -[interfaces.ts:11](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L11) +[interfaces.ts:11](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L11) *** @@ -84,7 +94,7 @@ #### Defined in -[interfaces.ts:21](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L21) +[interfaces.ts:21](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L21) *** @@ -94,7 +104,7 @@ #### Defined in -[interfaces.ts:10](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L10) +[interfaces.ts:10](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L10) *** @@ -104,7 +114,7 @@ #### Defined in -[interfaces.ts:26](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L26) +[interfaces.ts:26](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L26) *** @@ -114,7 +124,17 @@ #### Defined in -[interfaces.ts:15](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L15) +[interfaces.ts:15](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L15) + +*** + +### name? + +> `optional` **name**: `string` + +#### Defined in + +[interfaces.ts:30](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L30) *** @@ -124,7 +144,7 @@ #### Defined in -[interfaces.ts:22](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L22) +[interfaces.ts:22](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L22) *** @@ -134,7 +154,7 @@ #### Defined in -[interfaces.ts:28](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L28) +[interfaces.ts:28](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L28) *** @@ -144,7 +164,7 @@ #### Defined in -[interfaces.ts:27](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L27) +[interfaces.ts:27](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L27) *** @@ -154,7 +174,7 @@ #### Defined in -[interfaces.ts:29](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L29) +[interfaces.ts:29](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L29) *** @@ -164,7 +184,7 @@ #### Defined in -[interfaces.ts:18](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L18) +[interfaces.ts:18](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L18) *** @@ -174,7 +194,7 @@ #### Defined in -[interfaces.ts:20](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L20) +[interfaces.ts:20](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L20) *** @@ -184,7 +204,7 @@ #### Defined in -[interfaces.ts:25](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L25) +[interfaces.ts:25](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L25) *** @@ -194,7 +214,7 @@ #### Defined in -[interfaces.ts:23](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L23) +[interfaces.ts:23](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L23) *** @@ -204,4 +224,4 @@ #### Defined in -[interfaces.ts:24](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L24) +[interfaces.ts:24](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L24) diff --git a/docs/sdk/typescript/interfaces/interfaces/ILeaderSubgraph.md b/docs/sdk/typescript/interfaces/interfaces/ILeaderSubgraph.md index b63dc1076a..ebed266c8f 100644 --- a/docs/sdk/typescript/interfaces/interfaces/ILeaderSubgraph.md +++ b/docs/sdk/typescript/interfaces/interfaces/ILeaderSubgraph.md @@ -22,7 +22,7 @@ #### Defined in -[interfaces.ts:12](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L12) +[interfaces.ts:12](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L12) *** @@ -36,7 +36,7 @@ #### Defined in -[interfaces.ts:19](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L19) +[interfaces.ts:19](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L19) *** @@ -50,7 +50,7 @@ #### Defined in -[interfaces.ts:14](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L14) +[interfaces.ts:14](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L14) *** @@ -64,7 +64,7 @@ #### Defined in -[interfaces.ts:17](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L17) +[interfaces.ts:17](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L17) *** @@ -78,7 +78,7 @@ #### Defined in -[interfaces.ts:13](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L13) +[interfaces.ts:13](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L13) *** @@ -92,7 +92,21 @@ #### Defined in -[interfaces.ts:16](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L16) +[interfaces.ts:16](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L16) + +*** + +### category? + +> `optional` **category**: `string` + +#### Inherited from + +`Omit.category` + +#### Defined in + +[interfaces.ts:31](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L31) *** @@ -106,7 +120,7 @@ #### Defined in -[interfaces.ts:21](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L21) +[interfaces.ts:21](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L21) *** @@ -120,7 +134,7 @@ #### Defined in -[interfaces.ts:10](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L10) +[interfaces.ts:10](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L10) *** @@ -130,7 +144,7 @@ #### Defined in -[interfaces.ts:34](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L34) +[interfaces.ts:36](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L36) *** @@ -144,7 +158,21 @@ #### Defined in -[interfaces.ts:15](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L15) +[interfaces.ts:15](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L15) + +*** + +### name? + +> `optional` **name**: `string` + +#### Inherited from + +`Omit.name` + +#### Defined in + +[interfaces.ts:30](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L30) *** @@ -158,7 +186,7 @@ #### Defined in -[interfaces.ts:22](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L22) +[interfaces.ts:22](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L22) *** @@ -172,7 +200,7 @@ #### Defined in -[interfaces.ts:28](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L28) +[interfaces.ts:28](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L28) *** @@ -186,7 +214,7 @@ #### Defined in -[interfaces.ts:27](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L27) +[interfaces.ts:27](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L27) *** @@ -196,7 +224,7 @@ #### Defined in -[interfaces.ts:35](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L35) +[interfaces.ts:37](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L37) *** @@ -210,7 +238,7 @@ #### Defined in -[interfaces.ts:18](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L18) +[interfaces.ts:18](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L18) *** @@ -224,7 +252,7 @@ #### Defined in -[interfaces.ts:20](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L20) +[interfaces.ts:20](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L20) *** @@ -238,7 +266,7 @@ #### Defined in -[interfaces.ts:25](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L25) +[interfaces.ts:25](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L25) *** @@ -252,7 +280,7 @@ #### Defined in -[interfaces.ts:23](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L23) +[interfaces.ts:23](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L23) *** @@ -266,4 +294,4 @@ #### Defined in -[interfaces.ts:24](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L24) +[interfaces.ts:24](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L24) diff --git a/docs/sdk/typescript/interfaces/interfaces/ILeadersFilter.md b/docs/sdk/typescript/interfaces/interfaces/ILeadersFilter.md index 03b77ee114..29aeaa662c 100644 --- a/docs/sdk/typescript/interfaces/interfaces/ILeadersFilter.md +++ b/docs/sdk/typescript/interfaces/interfaces/ILeadersFilter.md @@ -18,7 +18,7 @@ #### Defined in -[interfaces.ts:39](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L39) +[interfaces.ts:41](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L41) *** @@ -32,7 +32,7 @@ #### Defined in -[interfaces.ts:155](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L155) +[interfaces.ts:157](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L157) *** @@ -42,7 +42,7 @@ #### Defined in -[interfaces.ts:41](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L41) +[interfaces.ts:43](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L43) *** @@ -52,7 +52,7 @@ #### Defined in -[interfaces.ts:42](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L42) +[interfaces.ts:44](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L44) *** @@ -66,7 +66,7 @@ #### Defined in -[interfaces.ts:157](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L157) +[interfaces.ts:159](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L159) *** @@ -76,7 +76,7 @@ #### Defined in -[interfaces.ts:40](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L40) +[interfaces.ts:42](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L42) *** @@ -90,4 +90,4 @@ #### Defined in -[interfaces.ts:156](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L156) +[interfaces.ts:158](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L158) diff --git a/docs/sdk/typescript/interfaces/interfaces/IOperator.md b/docs/sdk/typescript/interfaces/interfaces/IOperator.md index 14d310da5f..51b089d8d0 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IOperator.md +++ b/docs/sdk/typescript/interfaces/interfaces/IOperator.md @@ -14,7 +14,7 @@ #### Defined in -[interfaces.ts:57](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L57) +[interfaces.ts:59](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L59) *** @@ -24,7 +24,7 @@ #### Defined in -[interfaces.ts:60](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L60) +[interfaces.ts:62](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L62) *** @@ -34,7 +34,7 @@ #### Defined in -[interfaces.ts:62](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L62) +[interfaces.ts:64](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L64) *** @@ -44,7 +44,7 @@ #### Defined in -[interfaces.ts:61](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L61) +[interfaces.ts:63](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L63) *** @@ -54,7 +54,7 @@ #### Defined in -[interfaces.ts:58](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L58) +[interfaces.ts:60](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L60) *** @@ -64,4 +64,4 @@ #### Defined in -[interfaces.ts:59](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L59) +[interfaces.ts:61](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L61) diff --git a/docs/sdk/typescript/interfaces/interfaces/IOperatorSubgraph.md b/docs/sdk/typescript/interfaces/interfaces/IOperatorSubgraph.md index f5737a7811..af2ff49483 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IOperatorSubgraph.md +++ b/docs/sdk/typescript/interfaces/interfaces/IOperatorSubgraph.md @@ -22,7 +22,7 @@ #### Defined in -[interfaces.ts:57](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L57) +[interfaces.ts:59](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L59) *** @@ -32,7 +32,7 @@ #### Defined in -[interfaces.ts:66](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L66) +[interfaces.ts:68](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L68) *** @@ -46,7 +46,7 @@ #### Defined in -[interfaces.ts:62](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L62) +[interfaces.ts:64](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L64) *** @@ -60,7 +60,7 @@ #### Defined in -[interfaces.ts:61](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L61) +[interfaces.ts:63](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L63) *** @@ -74,7 +74,7 @@ #### Defined in -[interfaces.ts:58](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L58) +[interfaces.ts:60](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L60) *** @@ -88,4 +88,4 @@ #### Defined in -[interfaces.ts:59](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L59) +[interfaces.ts:61](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L61) diff --git a/docs/sdk/typescript/interfaces/interfaces/IPagination.md b/docs/sdk/typescript/interfaces/interfaces/IPagination.md index 67a0229bfa..c80f2318b0 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IPagination.md +++ b/docs/sdk/typescript/interfaces/interfaces/IPagination.md @@ -22,7 +22,7 @@ #### Defined in -[interfaces.ts:155](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L155) +[interfaces.ts:157](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L157) *** @@ -32,7 +32,7 @@ #### Defined in -[interfaces.ts:157](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L157) +[interfaces.ts:159](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L159) *** @@ -42,4 +42,4 @@ #### Defined in -[interfaces.ts:156](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L156) +[interfaces.ts:158](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L158) diff --git a/docs/sdk/typescript/interfaces/interfaces/IPayoutFilter.md b/docs/sdk/typescript/interfaces/interfaces/IPayoutFilter.md index 8eaf8bf075..db620b4f11 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IPayoutFilter.md +++ b/docs/sdk/typescript/interfaces/interfaces/IPayoutFilter.md @@ -14,7 +14,7 @@ #### Defined in -[interfaces.ts:109](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L109) +[interfaces.ts:111](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L111) *** @@ -24,7 +24,7 @@ #### Defined in -[interfaces.ts:111](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L111) +[interfaces.ts:113](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L113) *** @@ -34,7 +34,7 @@ #### Defined in -[interfaces.ts:110](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L110) +[interfaces.ts:112](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L112) *** @@ -44,4 +44,4 @@ #### Defined in -[interfaces.ts:112](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L112) +[interfaces.ts:114](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L114) diff --git a/docs/sdk/typescript/interfaces/interfaces/IReputationNetwork.md b/docs/sdk/typescript/interfaces/interfaces/IReputationNetwork.md index 3f904e9eb0..0b328a7d99 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IReputationNetwork.md +++ b/docs/sdk/typescript/interfaces/interfaces/IReputationNetwork.md @@ -14,7 +14,7 @@ #### Defined in -[interfaces.ts:47](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L47) +[interfaces.ts:49](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L49) *** @@ -24,7 +24,7 @@ #### Defined in -[interfaces.ts:46](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L46) +[interfaces.ts:48](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L48) *** @@ -34,4 +34,4 @@ #### Defined in -[interfaces.ts:48](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L48) +[interfaces.ts:50](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L50) diff --git a/docs/sdk/typescript/interfaces/interfaces/IReputationNetworkSubgraph.md b/docs/sdk/typescript/interfaces/interfaces/IReputationNetworkSubgraph.md index 623849a7b9..6439fc1153 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IReputationNetworkSubgraph.md +++ b/docs/sdk/typescript/interfaces/interfaces/IReputationNetworkSubgraph.md @@ -22,7 +22,7 @@ #### Defined in -[interfaces.ts:47](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L47) +[interfaces.ts:49](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L49) *** @@ -36,7 +36,7 @@ #### Defined in -[interfaces.ts:46](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L46) +[interfaces.ts:48](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L48) *** @@ -46,4 +46,4 @@ #### Defined in -[interfaces.ts:53](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L53) +[interfaces.ts:55](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L55) diff --git a/docs/sdk/typescript/interfaces/interfaces/IReward.md b/docs/sdk/typescript/interfaces/interfaces/IReward.md index 5e2cc1f0f9..7caf428800 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IReward.md +++ b/docs/sdk/typescript/interfaces/interfaces/IReward.md @@ -14,7 +14,7 @@ #### Defined in -[interfaces.ts:6](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L6) +[interfaces.ts:6](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L6) *** @@ -24,4 +24,4 @@ #### Defined in -[interfaces.ts:5](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L5) +[interfaces.ts:5](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L5) diff --git a/docs/sdk/typescript/interfaces/interfaces/IStatisticsFilter.md b/docs/sdk/typescript/interfaces/interfaces/IStatisticsFilter.md index df1bd7a969..4ecd62e17e 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IStatisticsFilter.md +++ b/docs/sdk/typescript/interfaces/interfaces/IStatisticsFilter.md @@ -22,7 +22,7 @@ #### Defined in -[interfaces.ts:155](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L155) +[interfaces.ts:157](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L157) *** @@ -32,7 +32,7 @@ #### Defined in -[interfaces.ts:100](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L100) +[interfaces.ts:102](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L102) *** @@ -46,7 +46,7 @@ #### Defined in -[interfaces.ts:157](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L157) +[interfaces.ts:159](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L159) *** @@ -60,7 +60,7 @@ #### Defined in -[interfaces.ts:156](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L156) +[interfaces.ts:158](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L158) *** @@ -70,4 +70,4 @@ #### Defined in -[interfaces.ts:101](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L101) +[interfaces.ts:103](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L103) diff --git a/docs/sdk/typescript/interfaces/interfaces/ITransaction.md b/docs/sdk/typescript/interfaces/interfaces/ITransaction.md index 4f3900f362..1efbef2888 100644 --- a/docs/sdk/typescript/interfaces/interfaces/ITransaction.md +++ b/docs/sdk/typescript/interfaces/interfaces/ITransaction.md @@ -14,7 +14,7 @@ #### Defined in -[interfaces.ts:131](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L131) +[interfaces.ts:133](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L133) *** @@ -24,7 +24,7 @@ #### Defined in -[interfaces.ts:139](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L139) +[interfaces.ts:141](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L141) *** @@ -34,7 +34,7 @@ #### Defined in -[interfaces.ts:133](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L133) +[interfaces.ts:135](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L135) *** @@ -44,7 +44,7 @@ #### Defined in -[interfaces.ts:141](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L141) +[interfaces.ts:143](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L143) *** @@ -54,7 +54,7 @@ #### Defined in -[interfaces.ts:137](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L137) +[interfaces.ts:139](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L139) *** @@ -64,7 +64,7 @@ #### Defined in -[interfaces.ts:138](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L138) +[interfaces.ts:140](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L140) *** @@ -74,7 +74,7 @@ #### Defined in -[interfaces.ts:135](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L135) +[interfaces.ts:137](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L137) *** @@ -84,7 +84,7 @@ #### Defined in -[interfaces.ts:134](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L134) +[interfaces.ts:136](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L136) *** @@ -94,7 +94,7 @@ #### Defined in -[interfaces.ts:140](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L140) +[interfaces.ts:142](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L142) *** @@ -104,7 +104,7 @@ #### Defined in -[interfaces.ts:132](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L132) +[interfaces.ts:134](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L134) *** @@ -114,4 +114,4 @@ #### Defined in -[interfaces.ts:136](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L136) +[interfaces.ts:138](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L138) diff --git a/docs/sdk/typescript/interfaces/interfaces/ITransactionsFilter.md b/docs/sdk/typescript/interfaces/interfaces/ITransactionsFilter.md index c8bc1caaa3..156fb1b79a 100644 --- a/docs/sdk/typescript/interfaces/interfaces/ITransactionsFilter.md +++ b/docs/sdk/typescript/interfaces/interfaces/ITransactionsFilter.md @@ -18,7 +18,7 @@ #### Defined in -[interfaces.ts:145](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L145) +[interfaces.ts:147](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L147) *** @@ -28,7 +28,7 @@ #### Defined in -[interfaces.ts:147](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L147) +[interfaces.ts:149](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L149) *** @@ -38,7 +38,7 @@ #### Defined in -[interfaces.ts:149](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L149) +[interfaces.ts:151](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L151) *** @@ -52,7 +52,7 @@ #### Defined in -[interfaces.ts:155](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L155) +[interfaces.ts:157](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L157) *** @@ -62,7 +62,7 @@ #### Defined in -[interfaces.ts:150](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L150) +[interfaces.ts:152](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L152) *** @@ -76,7 +76,7 @@ #### Defined in -[interfaces.ts:157](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L157) +[interfaces.ts:159](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L159) *** @@ -90,7 +90,7 @@ #### Defined in -[interfaces.ts:156](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L156) +[interfaces.ts:158](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L158) *** @@ -100,7 +100,7 @@ #### Defined in -[interfaces.ts:146](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L146) +[interfaces.ts:148](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L148) *** @@ -110,7 +110,7 @@ #### Defined in -[interfaces.ts:148](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L148) +[interfaces.ts:150](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L150) *** @@ -120,4 +120,4 @@ #### Defined in -[interfaces.ts:151](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L151) +[interfaces.ts:153](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L153) diff --git a/docs/sdk/typescript/interfaces/interfaces/InternalTransaction.md b/docs/sdk/typescript/interfaces/interfaces/InternalTransaction.md index 4232571832..990e9a11f0 100644 --- a/docs/sdk/typescript/interfaces/interfaces/InternalTransaction.md +++ b/docs/sdk/typescript/interfaces/interfaces/InternalTransaction.md @@ -14,7 +14,7 @@ #### Defined in -[interfaces.ts:126](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L126) +[interfaces.ts:128](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L128) *** @@ -24,7 +24,7 @@ #### Defined in -[interfaces.ts:121](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L121) +[interfaces.ts:123](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L123) *** @@ -34,7 +34,7 @@ #### Defined in -[interfaces.ts:124](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L124) +[interfaces.ts:126](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L126) *** @@ -44,7 +44,7 @@ #### Defined in -[interfaces.ts:125](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L125) +[interfaces.ts:127](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L127) *** @@ -54,7 +54,7 @@ #### Defined in -[interfaces.ts:122](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L122) +[interfaces.ts:124](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L124) *** @@ -64,7 +64,7 @@ #### Defined in -[interfaces.ts:127](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L127) +[interfaces.ts:129](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L129) *** @@ -74,4 +74,4 @@ #### Defined in -[interfaces.ts:123](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L123) +[interfaces.ts:125](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L125) diff --git a/docs/sdk/typescript/interfaces/interfaces/StakerInfo.md b/docs/sdk/typescript/interfaces/interfaces/StakerInfo.md index ca9eef85bf..bad5b6654e 100644 --- a/docs/sdk/typescript/interfaces/interfaces/StakerInfo.md +++ b/docs/sdk/typescript/interfaces/interfaces/StakerInfo.md @@ -14,7 +14,7 @@ #### Defined in -[interfaces.ts:162](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L162) +[interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) *** @@ -24,7 +24,7 @@ #### Defined in -[interfaces.ts:163](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L163) +[interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) *** @@ -34,7 +34,7 @@ #### Defined in -[interfaces.ts:161](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L161) +[interfaces.ts:163](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L163) *** @@ -44,4 +44,4 @@ #### Defined in -[interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) +[interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) diff --git a/docs/sdk/typescript/kvstore/classes/KVStoreClient.md b/docs/sdk/typescript/kvstore/classes/KVStoreClient.md index 99bebf359f..c5bdd2ab67 100644 --- a/docs/sdk/typescript/kvstore/classes/KVStoreClient.md +++ b/docs/sdk/typescript/kvstore/classes/KVStoreClient.md @@ -110,7 +110,7 @@ The network information required to connect to the KVStore contract #### Defined in -[kvstore.ts:108](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L108) +[kvstore.ts:108](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L108) ## Properties @@ -124,7 +124,7 @@ The network information required to connect to the KVStore contract #### Defined in -[base.ts:12](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12) +[base.ts:12](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12) *** @@ -138,7 +138,7 @@ The network information required to connect to the KVStore contract #### Defined in -[base.ts:11](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L11) +[base.ts:11](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L11) ## Methods @@ -194,7 +194,7 @@ await kvstoreClient.set('Role', 'RecordingOracle'); #### Defined in -[kvstore.ts:171](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L171) +[kvstore.ts:171](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L171) *** @@ -252,7 +252,7 @@ await kvstoreClient.setBulk(keys, values); #### Defined in -[kvstore.ts:214](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L214) +[kvstore.ts:214](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L214) *** @@ -307,7 +307,7 @@ await kvstoreClient.setFileUrlAndHash('linkedin.com/example', 'linkedin_url'); #### Defined in -[kvstore.ts:257](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L257) +[kvstore.ts:257](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L257) *** @@ -341,4 +341,4 @@ The Runner object to interact with the Ethereum network #### Defined in -[kvstore.ts:126](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L126) +[kvstore.ts:126](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L126) diff --git a/docs/sdk/typescript/kvstore/classes/KVStoreUtils.md b/docs/sdk/typescript/kvstore/classes/KVStoreUtils.md index 282ac129c2..32a75b9523 100644 --- a/docs/sdk/typescript/kvstore/classes/KVStoreUtils.md +++ b/docs/sdk/typescript/kvstore/classes/KVStoreUtils.md @@ -108,7 +108,7 @@ console.log(value); #### Defined in -[kvstore.ts:389](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L389) +[kvstore.ts:389](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L389) *** @@ -158,7 +158,7 @@ console.log(url); #### Defined in -[kvstore.ts:436](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L436) +[kvstore.ts:436](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L436) *** @@ -207,7 +207,7 @@ console.log(kvStoreData); #### Defined in -[kvstore.ts:337](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L337) +[kvstore.ts:337](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L337) *** @@ -251,4 +251,4 @@ console.log(publicKey); #### Defined in -[kvstore.ts:496](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L496) +[kvstore.ts:496](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L496) diff --git a/docs/sdk/typescript/operator/classes/OperatorUtils.md b/docs/sdk/typescript/operator/classes/OperatorUtils.md index 56db12b9ee..ef537adb80 100644 --- a/docs/sdk/typescript/operator/classes/OperatorUtils.md +++ b/docs/sdk/typescript/operator/classes/OperatorUtils.md @@ -54,7 +54,7 @@ const leader = await OperatorUtils.getLeader(ChainId.POLYGON_AMOY, '0x62dD51230A #### Defined in -[operator.ts:44](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/operator.ts#L44) +[operator.ts:44](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/operator.ts#L44) *** @@ -91,7 +91,7 @@ const leaders = await OperatorUtils.getLeaders(filter); #### Defined in -[operator.ts:107](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/operator.ts#L107) +[operator.ts:107](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/operator.ts#L107) *** @@ -137,7 +137,7 @@ const operators = await OperatorUtils.getReputationNetworkOperators(ChainId.POLY #### Defined in -[operator.ts:186](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/operator.ts#L186) +[operator.ts:186](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/operator.ts#L186) *** @@ -177,4 +177,4 @@ const rewards = await OperatorUtils.getRewards(ChainId.POLYGON_AMOY, '0x62dD5123 #### Defined in -[operator.ts:236](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/operator.ts#L236) +[operator.ts:236](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/operator.ts#L236) diff --git a/docs/sdk/typescript/staking/classes/StakingClient.md b/docs/sdk/typescript/staking/classes/StakingClient.md index d3d4fa0724..d91a75d514 100644 --- a/docs/sdk/typescript/staking/classes/StakingClient.md +++ b/docs/sdk/typescript/staking/classes/StakingClient.md @@ -110,7 +110,7 @@ The network information required to connect to the Staking contract #### Defined in -[staking.ts:108](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L108) +[staking.ts:108](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L108) ## Properties @@ -120,7 +120,7 @@ The network information required to connect to the Staking contract #### Defined in -[staking.ts:100](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L100) +[staking.ts:100](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L100) *** @@ -134,7 +134,7 @@ The network information required to connect to the Staking contract #### Defined in -[base.ts:12](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12) +[base.ts:12](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12) *** @@ -148,7 +148,7 @@ The network information required to connect to the Staking contract #### Defined in -[base.ts:11](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L11) +[base.ts:11](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L11) *** @@ -158,7 +158,7 @@ The network information required to connect to the Staking contract #### Defined in -[staking.ts:99](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L99) +[staking.ts:99](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L99) *** @@ -168,7 +168,7 @@ The network information required to connect to the Staking contract #### Defined in -[staking.ts:98](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L98) +[staking.ts:98](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L98) ## Methods @@ -217,7 +217,7 @@ await stakingClient.approveStake(amount); #### Defined in -[staking.ts:193](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L193) +[staking.ts:193](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L193) *** @@ -255,7 +255,7 @@ console.log(stakingInfo.tokensStaked); #### Defined in -[staking.ts:435](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L435) +[staking.ts:435](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L435) *** @@ -322,7 +322,7 @@ await stakingClient.slash('0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266', '0xf39Fd #### Defined in -[staking.ts:373](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L373) +[staking.ts:373](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L373) *** @@ -374,7 +374,7 @@ await stakingClient.stake(amount); #### Defined in -[staking.ts:247](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L247) +[staking.ts:247](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L247) *** @@ -425,7 +425,7 @@ await stakingClient.unstake(amount); #### Defined in -[staking.ts:291](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L291) +[staking.ts:291](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L291) *** @@ -469,7 +469,7 @@ await stakingClient.withdraw(); #### Defined in -[staking.ts:336](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L336) +[staking.ts:336](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L336) *** @@ -503,4 +503,4 @@ The Runner object to interact with the Ethereum network #### Defined in -[staking.ts:136](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L136) +[staking.ts:136](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L136) diff --git a/docs/sdk/typescript/statistics/classes/StatisticsClient.md b/docs/sdk/typescript/statistics/classes/StatisticsClient.md index 44461b4bd6..6e40cf6c43 100644 --- a/docs/sdk/typescript/statistics/classes/StatisticsClient.md +++ b/docs/sdk/typescript/statistics/classes/StatisticsClient.md @@ -59,7 +59,7 @@ The network information required to connect to the Statistics contract #### Defined in -[statistics.ts:67](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L67) +[statistics.ts:67](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L67) ## Properties @@ -69,7 +69,7 @@ The network information required to connect to the Statistics contract #### Defined in -[statistics.ts:59](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L59) +[statistics.ts:59](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L59) *** @@ -79,7 +79,7 @@ The network information required to connect to the Statistics contract #### Defined in -[statistics.ts:60](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L60) +[statistics.ts:60](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L60) ## Methods @@ -147,7 +147,7 @@ const escrowStatisticsApril = await statisticsClient.getEscrowStatistics({ #### Defined in -[statistics.ts:120](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L120) +[statistics.ts:120](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L120) *** @@ -214,7 +214,7 @@ console.log('HMT statistics from 5/8 - 6/8:', hmtStatisticsRange); #### Defined in -[statistics.ts:478](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L478) +[statistics.ts:478](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L478) *** @@ -259,7 +259,7 @@ console.log('HMT holders:', hmtHolders.map((h) => ({ #### Defined in -[statistics.ts:407](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L407) +[statistics.ts:407](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L407) *** @@ -300,7 +300,7 @@ console.log('HMT statistics:', { #### Defined in -[statistics.ts:364](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L364) +[statistics.ts:364](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L364) *** @@ -386,7 +386,7 @@ console.log( #### Defined in -[statistics.ts:300](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L300) +[statistics.ts:300](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L300) *** @@ -449,4 +449,4 @@ const workerStatisticsApril = await statisticsClient.getWorkerStatistics({ #### Defined in -[statistics.ts:204](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L204) +[statistics.ts:204](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L204) diff --git a/docs/sdk/typescript/storage/classes/StorageClient.md b/docs/sdk/typescript/storage/classes/StorageClient.md index 86d8855a7d..4df4e4d2a7 100644 --- a/docs/sdk/typescript/storage/classes/StorageClient.md +++ b/docs/sdk/typescript/storage/classes/StorageClient.md @@ -81,7 +81,7 @@ Optional. Cloud storage access data. If credentials are not provided - use anony #### Defined in -[storage.ts:73](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L73) +[storage.ts:73](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L73) ## Methods @@ -127,7 +127,7 @@ const exists = await storageClient.bucketExists('bucket-name'); #### Defined in -[storage.ts:262](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L262) +[storage.ts:262](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L262) *** @@ -177,7 +177,7 @@ const files = await storageClient.downloadFiles(keys, 'bucket-name'); #### Defined in -[storage.ts:112](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L112) +[storage.ts:112](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L112) *** @@ -223,7 +223,7 @@ const fileNames = await storageClient.listObjects('bucket-name'); #### Defined in -[storage.ts:292](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L292) +[storage.ts:292](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L292) *** @@ -278,7 +278,7 @@ const uploadedFiles = await storageClient.uploadFiles(files, 'bucket-name'); #### Defined in -[storage.ts:198](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L198) +[storage.ts:198](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L198) *** @@ -312,4 +312,4 @@ const file = await StorageClient.downloadFileFromUrl('http://localhost/file.json #### Defined in -[storage.ts:146](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L146) +[storage.ts:146](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L146) diff --git a/docs/sdk/typescript/transaction/classes/TransactionUtils.md b/docs/sdk/typescript/transaction/classes/TransactionUtils.md index 9e9693a3df..05d79aa710 100644 --- a/docs/sdk/typescript/transaction/classes/TransactionUtils.md +++ b/docs/sdk/typescript/transaction/classes/TransactionUtils.md @@ -54,7 +54,7 @@ const transaction = await TransactionUtils.getTransaction(ChainId.POLYGON, '0x62 #### Defined in -[transaction.ts:34](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/transaction.ts#L34) +[transaction.ts:34](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/transaction.ts#L34) *** @@ -127,4 +127,4 @@ const transactions = await TransactionUtils.getTransactions(filter); #### Defined in -[transaction.ts:109](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/transaction.ts#L109) +[transaction.ts:109](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/transaction.ts#L109) diff --git a/docs/sdk/typescript/types/enumerations/EscrowStatus.md b/docs/sdk/typescript/types/enumerations/EscrowStatus.md index 216b18273a..fc741bbebc 100644 --- a/docs/sdk/typescript/types/enumerations/EscrowStatus.md +++ b/docs/sdk/typescript/types/enumerations/EscrowStatus.md @@ -18,7 +18,7 @@ Escrow is cancelled. #### Defined in -[types.ts:32](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L32) +[types.ts:32](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L32) *** @@ -30,7 +30,7 @@ Escrow is finished. #### Defined in -[types.ts:28](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L28) +[types.ts:28](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L28) *** @@ -42,7 +42,7 @@ Escrow is launched. #### Defined in -[types.ts:12](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L12) +[types.ts:12](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L12) *** @@ -54,7 +54,7 @@ Escrow is fully paid. #### Defined in -[types.ts:24](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L24) +[types.ts:24](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L24) *** @@ -66,7 +66,7 @@ Escrow is partially paid out. #### Defined in -[types.ts:20](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L20) +[types.ts:20](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L20) *** @@ -78,4 +78,4 @@ Escrow is funded, and waiting for the results to be submitted. #### Defined in -[types.ts:16](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L16) +[types.ts:16](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L16) diff --git a/docs/sdk/typescript/types/type-aliases/EscrowCancel.md b/docs/sdk/typescript/types/type-aliases/EscrowCancel.md index 34a40f9a8b..1676b13f50 100644 --- a/docs/sdk/typescript/types/type-aliases/EscrowCancel.md +++ b/docs/sdk/typescript/types/type-aliases/EscrowCancel.md @@ -26,4 +26,4 @@ The hash of the transaction associated with the escrow cancellation. ## Defined in -[types.ts:145](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L145) +[types.ts:145](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L145) diff --git a/docs/sdk/typescript/types/type-aliases/EscrowWithdraw.md b/docs/sdk/typescript/types/type-aliases/EscrowWithdraw.md index 71dc329883..f3220c7b97 100644 --- a/docs/sdk/typescript/types/type-aliases/EscrowWithdraw.md +++ b/docs/sdk/typescript/types/type-aliases/EscrowWithdraw.md @@ -32,4 +32,4 @@ The hash of the transaction associated with the escrow withdrawal. ## Defined in -[types.ts:159](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L159) +[types.ts:159](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L159) diff --git a/docs/sdk/typescript/types/type-aliases/NetworkData.md b/docs/sdk/typescript/types/type-aliases/NetworkData.md index 83a5bc2e19..c4868e5bca 100644 --- a/docs/sdk/typescript/types/type-aliases/NetworkData.md +++ b/docs/sdk/typescript/types/type-aliases/NetworkData.md @@ -80,4 +80,4 @@ Network title ## Defined in -[types.ts:95](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L95) +[types.ts:95](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L95) diff --git a/docs/sdk/typescript/types/type-aliases/StorageCredentials.md b/docs/sdk/typescript/types/type-aliases/StorageCredentials.md index 0161f59062..bafad2f7cc 100644 --- a/docs/sdk/typescript/types/type-aliases/StorageCredentials.md +++ b/docs/sdk/typescript/types/type-aliases/StorageCredentials.md @@ -30,4 +30,4 @@ StorageClient is deprecated. Use Minio.Client directly. ## Defined in -[types.ts:40](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L40) +[types.ts:40](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L40) diff --git a/docs/sdk/typescript/types/type-aliases/StorageParams.md b/docs/sdk/typescript/types/type-aliases/StorageParams.md index c900a7461e..db84f3120f 100644 --- a/docs/sdk/typescript/types/type-aliases/StorageParams.md +++ b/docs/sdk/typescript/types/type-aliases/StorageParams.md @@ -40,4 +40,4 @@ StorageClient is deprecated. Use Minio.Client directly. ## Defined in -[types.ts:54](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L54) +[types.ts:54](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L54) diff --git a/docs/sdk/typescript/types/type-aliases/TransactionLikeWithNonce.md b/docs/sdk/typescript/types/type-aliases/TransactionLikeWithNonce.md index 0118484b2d..293495cfef 100644 --- a/docs/sdk/typescript/types/type-aliases/TransactionLikeWithNonce.md +++ b/docs/sdk/typescript/types/type-aliases/TransactionLikeWithNonce.md @@ -16,4 +16,4 @@ ## Defined in -[types.ts:174](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L174) +[types.ts:174](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L174) diff --git a/docs/sdk/typescript/types/type-aliases/UploadFile.md b/docs/sdk/typescript/types/type-aliases/UploadFile.md index 2e61465a0e..41fa5e3947 100644 --- a/docs/sdk/typescript/types/type-aliases/UploadFile.md +++ b/docs/sdk/typescript/types/type-aliases/UploadFile.md @@ -32,4 +32,4 @@ Uploaded object URL ## Defined in -[types.ts:77](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L77) +[types.ts:77](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L77) diff --git a/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/constants.py b/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/constants.py index e5d6d405d5..dca9919041 100644 --- a/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/constants.py +++ b/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/constants.py @@ -32,6 +32,13 @@ class OrderDirection(Enum): DESC = "desc" +class LeaderCategory(Enum): + """Enum for leader categories""" + + MACHINE_LEARNING = "machine_learning" + MARKET_MAKING = "market_making" + + NETWORKS = { ChainId.MAINNET: { "title": "Ethereum", @@ -352,6 +359,8 @@ class KVStoreKeys(Enum): job_types = "job_types" registration_needed = "registration_needed" registration_instructions = "registration_instructions" + name = "name" + category = "category" ESCROW_BULK_PAYOUT_MAX_ITEMS = 99 diff --git a/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/gql/operator.py b/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/gql/operator.py index 5a683eec62..fd6c3a29c4 100644 --- a/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/gql/operator.py +++ b/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/gql/operator.py @@ -25,6 +25,8 @@ reputationNetworks { address } + name + category } """ diff --git a/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/operator/operator_utils.py b/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/operator/operator_utils.py index 23d5dabe21..f64c81bad5 100644 --- a/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/operator/operator_utils.py +++ b/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/operator/operator_utils.py @@ -106,6 +106,8 @@ def __init__( registration_needed: Optional[bool] = None, registration_instructions: Optional[str] = None, reputation_networks: Optional[List[str]] = None, + name: Optional[str] = None, + category: Optional[str] = None, ): """ Initializes a LeaderData instance. @@ -130,6 +132,8 @@ def __init__( :param registration_needed: Whether registration is needed :param registration_instructions: Registration instructions :param reputation_networks: List of reputation networks + :param name: Name + :param category: Category """ self.chain_id = chain_id @@ -152,6 +156,8 @@ def __init__( self.registration_needed = registration_needed self.registration_instructions = registration_instructions self.reputation_networks = reputation_networks + self.name = name + self.category = category class RewardData: @@ -305,6 +311,8 @@ def get_leaders(filter: LeaderFilter) -> List[LeaderData]: "registrationInstructions", None ), reputation_networks=reputation_networks, + name=leader.get("name", None), + category=leader.get("category", None), ) ) @@ -405,6 +413,8 @@ def get_leader( registration_needed=leader.get("registrationNeeded", None), registration_instructions=leader.get("registrationInstructions", None), reputation_networks=reputation_networks, + name=leader.get("name", None), + category=leader.get("category", None), ) @staticmethod diff --git a/packages/sdk/python/human-protocol-sdk/test/human_protocol_sdk/operator/test_operator_utils.py b/packages/sdk/python/human-protocol-sdk/test/human_protocol_sdk/operator/test_operator_utils.py index 162acc1fbe..01b3e01f12 100644 --- a/packages/sdk/python/human-protocol-sdk/test/human_protocol_sdk/operator/test_operator_utils.py +++ b/packages/sdk/python/human-protocol-sdk/test/human_protocol_sdk/operator/test_operator_utils.py @@ -44,6 +44,8 @@ def test_get_leaders(self): "registrationNeeded": True, "registrationInstructions": "www.google.com", "reputationNetworks": [{"address": "0x01"}], + "name": "Alice", + "category": "machine_learning", } ], } @@ -85,6 +87,8 @@ def test_get_leaders(self): self.assertEqual(leaders[0].registration_needed, True) self.assertEqual(leaders[0].registration_instructions, "www.google.com") self.assertEqual(leaders[0].reputation_networks, ["0x01"]) + self.assertEqual(leaders[0].name, "Alice") + self.assertEqual(leaders[0].category, "machine_learning") def test_get_leaders_when_job_types_is_none(self): filter = LeaderFilter(chain_id=ChainId.POLYGON, roles=[Role.exchange_oracle]) @@ -115,6 +119,8 @@ def test_get_leaders_when_job_types_is_none(self): "url": None, "jobTypes": None, "reputationNetworks": [{"address": "0x01"}], + "name": "Alice", + "category": "machine_learning", } ], } @@ -156,6 +162,8 @@ def test_get_leaders_when_job_types_is_none(self): self.assertEqual(leaders[0].registration_instructions, None) self.assertEqual(leaders[0].job_types, []) self.assertEqual(leaders[0].reputation_networks, ["0x01"]) + self.assertEqual(leaders[0].name, "Alice") + self.assertEqual(leaders[0].category, "machine_learning") def test_get_leaders_when_job_types_is_array(self): filter = LeaderFilter(chain_id=ChainId.POLYGON, roles=[Role.exchange_oracle]) @@ -186,6 +194,8 @@ def test_get_leaders_when_job_types_is_array(self): "url": None, "jobTypes": ["type1", "type2", "type3"], "reputationNetworks": [{"address": "0x01"}], + "name": "Alice", + "category": "machine_learning", } ], } @@ -227,6 +237,8 @@ def test_get_leaders_when_job_types_is_array(self): leaders[0].job_types, ["type1", "type2", "type3"] ) # Should the same array self.assertEqual(leaders[0].reputation_networks, ["0x01"]) + self.assertEqual(leaders[0].name, "Alice") + self.assertEqual(leaders[0].category, "machine_learning") def test_get_leaders_empty_data(self): filter = LeaderFilter(chain_id=ChainId.POLYGON, roles=[Role.exchange_oracle]) @@ -291,6 +303,8 @@ def test_get_leader(self): "registrationNeeded": True, "registrationInstructions": "www.google.com", "reputationNetworks": [{"address": "0x01"}], + "name": "Alice", + "category": "machine_learning", } } } @@ -324,6 +338,8 @@ def test_get_leader(self): self.assertEqual(leader.registration_needed, True) self.assertEqual(leader.registration_instructions, "www.google.com") self.assertEqual(leader.reputation_networks, ["0x01"]) + self.assertEqual(leader.name, "Alice") + self.assertEqual(leader.category, "machine_learning") def test_get_leader_when_job_types_is_none(self): staker_address = "0x1234567890123456789012345678901234567891" @@ -354,6 +370,8 @@ def test_get_leader_when_job_types_is_none(self): "url": None, "jobTypes": None, "reputationNetworks": [{"address": "0x01"}], + "name": "Alice", + "category": "machine_learning", } } } @@ -387,6 +405,8 @@ def test_get_leader_when_job_types_is_none(self): self.assertEqual(leader.registration_needed, None) self.assertEqual(leader.registration_instructions, None) self.assertEqual(leader.reputation_networks, ["0x01"]) + self.assertEqual(leader.name, "Alice") + self.assertEqual(leader.category, "machine_learning") def test_get_leader_when_job_types_is_array(self): staker_address = "0x1234567890123456789012345678901234567891" @@ -417,6 +437,8 @@ def test_get_leader_when_job_types_is_array(self): "url": None, "jobTypes": ["type1", "type2", "type3"], "reputationNetworks": [{"address": "0x01"}], + "name": "Alice", + "category": "machine_learning", } } } @@ -448,6 +470,8 @@ def test_get_leader_when_job_types_is_array(self): self.assertEqual(leader.url, None) self.assertEqual(leader.job_types, ["type1", "type2", "type3"]) self.assertEqual(leader.reputation_networks, ["0x01"]) + self.assertEqual(leader.name, "Alice") + self.assertEqual(leader.category, "machine_learning") def test_get_leader_empty_data(self): staker_address = "0x1234567890123456789012345678901234567891" diff --git a/packages/sdk/typescript/human-protocol-sdk/src/constants.ts b/packages/sdk/typescript/human-protocol-sdk/src/constants.ts index b783a6b030..afe10e1117 100644 --- a/packages/sdk/typescript/human-protocol-sdk/src/constants.ts +++ b/packages/sdk/typescript/human-protocol-sdk/src/constants.ts @@ -308,6 +308,8 @@ export const KVStoreKeys = { jobTypes: 'job_types', registrationNeeded: 'registration_needed', registrationInstructions: 'registration_instructions', + name: 'name', + category: 'category', }; export const Role = { diff --git a/packages/sdk/typescript/human-protocol-sdk/src/enums.ts b/packages/sdk/typescript/human-protocol-sdk/src/enums.ts index a212aa4d23..0a24004005 100644 --- a/packages/sdk/typescript/human-protocol-sdk/src/enums.ts +++ b/packages/sdk/typescript/human-protocol-sdk/src/enums.ts @@ -24,3 +24,8 @@ export enum OrderDirection { ASC = 'asc', DESC = 'desc', } + +export enum LeaderCategory { + MACHINE_LEARNING = 'machine_learning', + MARKET_MAKING = 'market_making', +} diff --git a/packages/sdk/typescript/human-protocol-sdk/src/graphql/queries/operator.ts b/packages/sdk/typescript/human-protocol-sdk/src/graphql/queries/operator.ts index 7a124e0881..c480710d72 100644 --- a/packages/sdk/typescript/human-protocol-sdk/src/graphql/queries/operator.ts +++ b/packages/sdk/typescript/human-protocol-sdk/src/graphql/queries/operator.ts @@ -22,6 +22,8 @@ const LEADER_FRAGMENT = gql` registrationNeeded registrationInstructions reputationNetworks + name + category } `; diff --git a/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts b/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts index 428c42fd27..641c78e3ea 100644 --- a/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts +++ b/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts @@ -27,6 +27,8 @@ export interface ILeader { registrationNeeded?: boolean; registrationInstructions?: string; reputationNetworks?: string[]; + name?: string; + category?: string; } export interface ILeaderSubgraph diff --git a/packages/sdk/typescript/human-protocol-sdk/test/operator.test.ts b/packages/sdk/typescript/human-protocol-sdk/test/operator.test.ts index b9cb37cee6..7c5e7e7281 100644 --- a/packages/sdk/typescript/human-protocol-sdk/test/operator.test.ts +++ b/packages/sdk/typescript/human-protocol-sdk/test/operator.test.ts @@ -199,6 +199,8 @@ describe('OperatorUtils', () => { address: '0x01', }, ], + name: 'Alice', + category: 'machine_learning', }; const mockLeader: ILeader = { diff --git a/packages/sdk/typescript/subgraph/schema.graphql b/packages/sdk/typescript/subgraph/schema.graphql index 06f6b3773e..d8ee8d67df 100644 --- a/packages/sdk/typescript/subgraph/schema.graphql +++ b/packages/sdk/typescript/subgraph/schema.graphql @@ -51,6 +51,9 @@ type Leader @entity { reputationNetworks: [ReputationNetwork!] registrationNeeded: Boolean registrationInstructions: String + + name: String + category: String } type LeaderURL @entity { diff --git a/packages/sdk/typescript/subgraph/src/mapping/KVStore.ts b/packages/sdk/typescript/subgraph/src/mapping/KVStore.ts index 929ca3b506..ed2c5374f4 100644 --- a/packages/sdk/typescript/subgraph/src/mapping/KVStore.ts +++ b/packages/sdk/typescript/subgraph/src/mapping/KVStore.ts @@ -128,6 +128,10 @@ export function handleDataSaved(event: DataSaved): void { leader.registrationNeeded = event.params.value.toLowerCase() == 'true'; } else if (key == 'registration_instructions') { leader.registrationInstructions = event.params.value; + } else if (key == 'name') { + leader.name = event.params.value; + } else if (key == 'category') { + leader.category = event.params.value; } if (key.indexOf('url') > -1) { diff --git a/packages/sdk/typescript/subgraph/tests/kvstore/kvstore.test.ts b/packages/sdk/typescript/subgraph/tests/kvstore/kvstore.test.ts index 6129d239af..61b6bf5fd1 100644 --- a/packages/sdk/typescript/subgraph/tests/kvstore/kvstore.test.ts +++ b/packages/sdk/typescript/subgraph/tests/kvstore/kvstore.test.ts @@ -663,4 +663,56 @@ describe('KVStore', () => { 'https://validator.example.com' ); }); + + test("Should properly update leader's name", () => { + const data1 = createDataSavedEvent( + '0xD979105297fB0eee83F7433fC09279cb5B94fFC6', + 'name', + 'Alice', + BigInt.fromI32(10) + ); + const data2 = createDataSavedEvent( + '0x92a2eEF7Ff696BCef98957a0189872680600a959', + 'name', + 'Bob', + BigInt.fromI32(11) + ); + + handleDataSaved(data1); + handleDataSaved(data2); + + assert.fieldEquals('Leader', data1.params.sender.toHex(), 'name', 'Alice'); + assert.fieldEquals('Leader', data2.params.sender.toHex(), 'name', 'Bob'); + }); + + test("Should properly update leader's category", () => { + const data1 = createDataSavedEvent( + '0xD979105297fB0eee83F7433fC09279cb5B94fFC6', + 'category', + 'machine_learning', + BigInt.fromI32(10) + ); + const data2 = createDataSavedEvent( + '0x92a2eEF7Ff696BCef98957a0189872680600a959', + 'category', + 'market_making', + BigInt.fromI32(11) + ); + + handleDataSaved(data1); + handleDataSaved(data2); + + assert.fieldEquals( + 'Leader', + data1.params.sender.toHex(), + 'category', + 'machine_learning' + ); + assert.fieldEquals( + 'Leader', + data2.params.sender.toHex(), + 'category', + 'market_making' + ); + }); }); From 0f022f249047329ebeb11ab4d54eaa2525282a59 Mon Sep 17 00:00:00 2001 From: portuu3 <61605646+portuu3@users.noreply.github.com> Date: Fri, 17 Jan 2025 10:04:17 +0100 Subject: [PATCH 02/44] Add Vercel config for staking dashboard deployment (#3020) * add vercel.json * add vercel build --- packages/apps/staking/package.json | 3 ++- packages/apps/staking/vercel.json | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 packages/apps/staking/vercel.json diff --git a/packages/apps/staking/package.json b/packages/apps/staking/package.json index f2e514c499..9a72d1b8dc 100644 --- a/packages/apps/staking/package.json +++ b/packages/apps/staking/package.json @@ -11,7 +11,8 @@ "test": "vitest run -u", "format:prettier": "prettier --write \"**/*.{ts,tsx,js,jsx}\"", "format:lint": "eslint --fix \"**/*.{ts,tsx,js,jsx}\"", - "format": "yarn format:prettier && yarn format:lint" + "format": "yarn format:prettier && yarn format:lint", + "vercel-build": "yarn workspace @human-protocol/sdk build && yarn build" }, "browserslist": { "production": [ diff --git a/packages/apps/staking/vercel.json b/packages/apps/staking/vercel.json new file mode 100644 index 0000000000..d48a2865b8 --- /dev/null +++ b/packages/apps/staking/vercel.json @@ -0,0 +1,9 @@ +{ + "rewrites": [ + { + "source": "/(.*)", + "destination": "/index.html" + } + ] + } + \ No newline at end of file From 2ad06731e148a30fb77ebb982445ac326db32344 Mon Sep 17 00:00:00 2001 From: Dzeranov Date: Fri, 17 Jan 2025 12:21:48 +0300 Subject: [PATCH 03/44] [Reputation Oracle] hCaptcha token validation moved to the `HCaptchaGuard` (#2999) * hCaptcha token validation moved to the `HCaptchaGuard` * fix: remove redundant files * fix: `@UseGuards` used separately for each endpoint in `User` controller to maintain the correct order of guards (`HCaptchaGuard` before `JwtAuthGuard`) * refactor: comment changed in `guards/hcaptcha.ts` file * fix: resolve PR comments --- .../src/common/config/auth-config.service.ts | 7 +++ .../server/src/common/config/env-schema.ts | 3 + .../server/src/common/constants/errors.ts | 8 --- .../server/src/common/guards/hcaptcha.ts | 56 +++++++++++++++++ .../src/modules/auth/auth.controller.ts | 7 ++- .../server/src/modules/auth/auth.errors.ts | 3 +- .../server/src/modules/auth/auth.service.ts | 61 +------------------ .../src/modules/user/user.controller.ts | 14 ++++- .../src/modules/user/user.service.spec.ts | 33 +--------- .../server/src/modules/user/user.service.ts | 25 +------- 10 files changed, 90 insertions(+), 127 deletions(-) create mode 100644 packages/apps/reputation-oracle/server/src/common/guards/hcaptcha.ts diff --git a/packages/apps/reputation-oracle/server/src/common/config/auth-config.service.ts b/packages/apps/reputation-oracle/server/src/common/config/auth-config.service.ts index 2cca2a6bee..81c24aa0e1 100644 --- a/packages/apps/reputation-oracle/server/src/common/config/auth-config.service.ts +++ b/packages/apps/reputation-oracle/server/src/common/config/auth-config.service.ts @@ -61,4 +61,11 @@ export class AuthConfigService { 86400, ); } + + /** + * Human APP email. + */ + get humanAppEmail(): string { + return this.configService.getOrThrow('HUMAN_APP_EMAIL'); + } } diff --git a/packages/apps/reputation-oracle/server/src/common/config/env-schema.ts b/packages/apps/reputation-oracle/server/src/common/config/env-schema.ts index 1a1a8a05c7..98609817c7 100644 --- a/packages/apps/reputation-oracle/server/src/common/config/env-schema.ts +++ b/packages/apps/reputation-oracle/server/src/common/config/env-schema.ts @@ -69,4 +69,7 @@ export const envValidator = Joi.object({ KYC_API_KEY: Joi.string(), KYC_API_PRIVATE_KEY: Joi.string().required(), KYC_BASE_URL: Joi.string(), + + // Human App + HUMAN_APP_EMAIL: Joi.string().email().required(), }); diff --git a/packages/apps/reputation-oracle/server/src/common/constants/errors.ts b/packages/apps/reputation-oracle/server/src/common/constants/errors.ts index 44fc676bf0..cee20b71b5 100644 --- a/packages/apps/reputation-oracle/server/src/common/constants/errors.ts +++ b/packages/apps/reputation-oracle/server/src/common/constants/errors.ts @@ -52,14 +52,6 @@ export enum ErrorUser { DuplicatedAddress = 'The address you are trying to use already exists. Please check that the address is correct or use a different address.', } -/** - * Represents error messages related to captcha. - */ -export enum ErrorCapthca { - InvalidToken = 'Invalid captcha token provided', - VerificationFailed = 'Captcha verification failed', -} - /** * Represents error messages related to send grid. */ diff --git a/packages/apps/reputation-oracle/server/src/common/guards/hcaptcha.ts b/packages/apps/reputation-oracle/server/src/common/guards/hcaptcha.ts new file mode 100644 index 0000000000..72c5ef8209 --- /dev/null +++ b/packages/apps/reputation-oracle/server/src/common/guards/hcaptcha.ts @@ -0,0 +1,56 @@ +import { + Injectable, + CanActivate, + ExecutionContext, + HttpStatus, + HttpException, + Logger, +} from '@nestjs/common'; +import { Request } from 'express'; +import { HCaptchaService } from '../../integrations/hcaptcha/hcaptcha.service'; +import { AuthConfigService } from '../config/auth-config.service'; + +@Injectable() +export class HCaptchaGuard implements CanActivate { + logger = new Logger(HCaptchaGuard.name); + constructor( + private readonly hCaptchaService: HCaptchaService, + private readonly authConfigSerice: AuthConfigService, + ) {} + public async canActivate(context: ExecutionContext): Promise { + const request: Request = context.switchToHttp().getRequest(); + + const { body } = request; + const hCaptchaToken = body['h_captcha_token']; + + // TODO: Remove 27-45 lines once we figure out how to replace human app user + if (request.path === '/auth/signin') { + const email = body['email']; + // Checking email here to avoid unnecessary db calls + if (email === this.authConfigSerice.humanAppEmail) { + return true; + } + } + + if (!hCaptchaToken) { + const message = 'hCaptcha token not provided'; + this.logger.error(message, request.path); + throw new HttpException( + { + message, + timestamp: new Date().toISOString(), + }, + HttpStatus.BAD_REQUEST, + ); + } + + const captchaVerificationResult = await this.hCaptchaService.verifyToken({ + token: hCaptchaToken, + }); + if (!captchaVerificationResult.success) { + throw new HttpException('Invalid hCaptcha token', HttpStatus.BAD_REQUEST); + } + + return true; + } +} diff --git a/packages/apps/reputation-oracle/server/src/modules/auth/auth.controller.ts b/packages/apps/reputation-oracle/server/src/modules/auth/auth.controller.ts index 9fa0ba1a90..2620fe40bf 100644 --- a/packages/apps/reputation-oracle/server/src/modules/auth/auth.controller.ts +++ b/packages/apps/reputation-oracle/server/src/modules/auth/auth.controller.ts @@ -32,6 +32,7 @@ import { } from './auth.dto'; import { AuthService } from './auth.service'; import { JwtAuthGuard } from '../../common/guards'; +import { HCaptchaGuard } from '../../common/guards/hcaptcha'; import { RequestWithUser } from '../../common/types'; import { TokenRepository } from './token.repository'; import { TokenType } from './token.entity'; @@ -66,6 +67,7 @@ export class AuthJwtController { @Public() @Post('/signup') + @UseGuards(HCaptchaGuard) @UseInterceptors(ClassSerializerInterceptor) @ApiOperation({ summary: 'User Signup', @@ -87,6 +89,7 @@ export class AuthJwtController { @Public() @Post('/signin') + @UseGuards(HCaptchaGuard) @HttpCode(200) @ApiOperation({ summary: 'User Signin', @@ -188,6 +191,7 @@ export class AuthJwtController { @Public() @Post('/forgot-password') + @UseGuards(HCaptchaGuard) @HttpCode(204) @ApiOperation({ summary: 'Forgot Password', @@ -212,6 +216,7 @@ export class AuthJwtController { @Public() @Post('/restore-password') + @UseGuards(HCaptchaGuard) @HttpCode(204) @ApiOperation({ summary: 'Restore Password', @@ -251,7 +256,7 @@ export class AuthJwtController { } @ApiBearerAuth() - @UseGuards(JwtAuthGuard) + @UseGuards(HCaptchaGuard, JwtAuthGuard) @HttpCode(204) @Post('/resend-email-verification') @ApiOperation({ diff --git a/packages/apps/reputation-oracle/server/src/modules/auth/auth.errors.ts b/packages/apps/reputation-oracle/server/src/modules/auth/auth.errors.ts index edf8e651e1..120c9b9594 100644 --- a/packages/apps/reputation-oracle/server/src/modules/auth/auth.errors.ts +++ b/packages/apps/reputation-oracle/server/src/modules/auth/auth.errors.ts @@ -1,4 +1,3 @@ -import { ErrorCapthca } from '../../common/constants/errors'; import { BaseError } from '../../common/errors/base'; export enum AuthErrorMessage { @@ -9,7 +8,7 @@ export enum AuthErrorMessage { } export class AuthError extends BaseError { - constructor(message: AuthErrorMessage | ErrorCapthca) { + constructor(message: AuthErrorMessage) { super(message); } } diff --git a/packages/apps/reputation-oracle/server/src/modules/auth/auth.service.ts b/packages/apps/reputation-oracle/server/src/modules/auth/auth.service.ts index 69faa8e82a..e6b71665d1 100644 --- a/packages/apps/reputation-oracle/server/src/modules/auth/auth.service.ts +++ b/packages/apps/reputation-oracle/server/src/modules/auth/auth.service.ts @@ -1,7 +1,6 @@ import { Injectable } from '@nestjs/common'; import { JwtService } from '@nestjs/jwt'; -import { ErrorCapthca } from '../../common/constants/errors'; import { OperatorStatus, Role as UserRole, @@ -65,14 +64,9 @@ export class AuthService { private readonly sendgridService: SendGridService, private readonly web3Service: Web3Service, private readonly userRepository: UserRepository, - private readonly hCaptchaService: HCaptchaService, ) {} - public async signin({ - email, - password, - hCaptchaToken, - }: SignInDto): Promise { + public async signin({ email, password }: SignInDto): Promise { const userEntity = await this.userRepository.findOneByEmail(email); if (!userEntity) { throw new AuthError(AuthErrorMessage.INVALID_CREDENTIALS); @@ -82,33 +76,10 @@ export class AuthService { throw new AuthError(AuthErrorMessage.INVALID_CREDENTIALS); } - if (userEntity.role !== UserRole.HUMAN_APP) { - if (!hCaptchaToken) { - throw new AuthError(ErrorCapthca.InvalidToken); - } - - const captchaVerificationResult = await this.hCaptchaService.verifyToken({ - token: hCaptchaToken, - }); - if (!captchaVerificationResult.success) { - throw new AuthError(ErrorCapthca.VerificationFailed); - } - } - return this.auth(userEntity); } public async signup(data: UserCreateDto): Promise { - if (!data.hCaptchaToken) { - throw new AuthError(ErrorCapthca.InvalidToken); - } - const captchaVerificationResult = await this.hCaptchaService.verifyToken({ - token: data.hCaptchaToken, - }); - if (!captchaVerificationResult.success) { - throw new AuthError(ErrorCapthca.VerificationFailed); - } - const storedUser = await this.userRepository.findOneByEmail(data.email); if (storedUser) { throw new DuplicatedUserError(data.email); @@ -237,16 +208,6 @@ export class AuthService { } public async forgotPassword(data: ForgotPasswordDto): Promise { - if (!data.hCaptchaToken) { - throw new AuthError(ErrorCapthca.InvalidToken); - } - const captchaVerificationResult = await this.hCaptchaService.verifyToken({ - token: data.hCaptchaToken, - }); - if (!captchaVerificationResult.success) { - throw new AuthError(ErrorCapthca.VerificationFailed); - } - const userEntity = await this.userRepository.findOneByEmail(data.email); if (!userEntity) { @@ -287,16 +248,6 @@ export class AuthService { } public async restorePassword(data: RestorePasswordDto): Promise { - if (!data.hCaptchaToken) { - throw new AuthError(ErrorCapthca.InvalidToken); - } - const captchaVerificationResult = await this.hCaptchaService.verifyToken({ - token: data.hCaptchaToken, - }); - if (!captchaVerificationResult.success) { - throw new AuthError(ErrorCapthca.VerificationFailed); - } - const tokenEntity = await this.tokenRepository.findOneByUuidAndType( data.token, TokenType.PASSWORD, @@ -347,16 +298,6 @@ export class AuthService { public async resendEmailVerification( data: ResendEmailVerificationDto, ): Promise { - if (!data.hCaptchaToken) { - throw new AuthError(ErrorCapthca.InvalidToken); - } - const captchaVerificationResult = await this.hCaptchaService.verifyToken({ - token: data.hCaptchaToken, - }); - if (!captchaVerificationResult.success) { - throw new AuthError(ErrorCapthca.VerificationFailed); - } - const userEntity = await this.userRepository.findOneByEmail(data.email); if (!userEntity || userEntity.status !== UserStatus.PENDING) { return; diff --git a/packages/apps/reputation-oracle/server/src/modules/user/user.controller.ts b/packages/apps/reputation-oracle/server/src/modules/user/user.controller.ts index 4e2fe18bd0..b8c08a7d33 100644 --- a/packages/apps/reputation-oracle/server/src/modules/user/user.controller.ts +++ b/packages/apps/reputation-oracle/server/src/modules/user/user.controller.ts @@ -27,6 +27,7 @@ import { RegistrationInExchangeOracleResponseDto, } from './user.dto'; import { JwtAuthGuard } from '../../common/guards'; +import { HCaptchaGuard } from '../../common/guards/hcaptcha'; import { RequestWithUser } from '../../common/types'; import { UserService } from './user.service'; import { Public } from '../../common/decorators'; @@ -35,12 +36,12 @@ import { KycSignedAddressDto } from '../kyc/kyc.dto'; @ApiTags('User') @Controller('/user') @ApiBearerAuth() -@UseGuards(JwtAuthGuard) export class UserController { constructor(private readonly userService: UserService) {} @Post('/register-labeler') @HttpCode(200) + @UseGuards(JwtAuthGuard) @ApiOperation({ summary: 'Register Labeler', description: 'Endpoint to register user as a labeler on hcaptcha services.', @@ -72,6 +73,7 @@ export class UserController { @Post('/register-address') @HttpCode(200) + @UseGuards(JwtAuthGuard) @ApiOperation({ summary: 'Register Blockchain Address', description: 'Endpoint to register blockchain address.', @@ -103,6 +105,7 @@ export class UserController { @Post('/enable-operator') @HttpCode(204) + @UseGuards(JwtAuthGuard) @ApiOperation({ summary: 'Enable an operator', description: 'Endpoint to enable an operator.', @@ -125,6 +128,7 @@ export class UserController { @Post('/disable-operator') @HttpCode(204) + @UseGuards(JwtAuthGuard) @ApiOperation({ summary: 'Disable an operator', description: 'Endpoint to disable an operator.', @@ -147,6 +151,7 @@ export class UserController { @Public() @Post('/prepare-signature') + @UseGuards(JwtAuthGuard) @ApiOperation({ summary: 'Web3 signature body', description: @@ -170,6 +175,7 @@ export class UserController { @Post('/exchange-oracle-registration') @HttpCode(200) + @UseGuards(HCaptchaGuard, JwtAuthGuard) @ApiOperation({ summary: 'Notifies registration in Exchange Oracle completed', description: @@ -193,13 +199,17 @@ export class UserController { @Req() request: RequestWithUser, @Body() data: RegistrationInExchangeOracleDto, ): Promise { - await this.userService.registrationInExchangeOracle(request.user, data); + await this.userService.registrationInExchangeOracle( + request.user, + data.oracleAddress, + ); return { oracleAddress: data.oracleAddress }; } @Get('/exchange-oracle-registration') @HttpCode(200) + @UseGuards(JwtAuthGuard) @ApiOperation({ summary: 'Retrieves Exchange Oracles the user is registered in', description: diff --git a/packages/apps/reputation-oracle/server/src/modules/user/user.service.spec.ts b/packages/apps/reputation-oracle/server/src/modules/user/user.service.spec.ts index ca10165c42..75f05289c9 100644 --- a/packages/apps/reputation-oracle/server/src/modules/user/user.service.spec.ts +++ b/packages/apps/reputation-oracle/server/src/modules/user/user.service.spec.ts @@ -30,7 +30,6 @@ import { HCaptchaConfigService } from '../../common/config/hcaptcha-config.servi import { HttpService } from '@nestjs/axios'; import { ControlledError } from '../../common/errors/controlled'; import { - ErrorCapthca, ErrorOperator, ErrorSignature, ErrorUser, @@ -835,7 +834,7 @@ describe('UserService', () => { const result = await userService.registrationInExchangeOracle( userEntity as UserEntity, - oracleRegistration, + oracleRegistration.oracleAddress, ); expect(siteKeyRepository.createUnique).toHaveBeenCalledWith( @@ -874,41 +873,13 @@ describe('UserService', () => { const result = await userService.registrationInExchangeOracle( userEntity as UserEntity, - oracleRegistration, + oracleRegistration.oracleAddress, ); expect(siteKeyRepository.createUnique).not.toHaveBeenCalled(); expect(result).toEqual(siteKeyMock); }); - - it('should throw if captcha verification fails', async () => { - const userEntity: DeepPartial = { - id: 1, - email: 'test@example.com', - }; - - const oracleRegistration: RegistrationInExchangeOracleDto = { - oracleAddress: '0xOracleAddress', - hCaptchaToken: 'hcaptcha-token', - }; - - jest - .spyOn(hcaptchaService, 'verifyToken') - .mockResolvedValueOnce({ success: false }); - - await expect( - userService.registrationInExchangeOracle( - userEntity as UserEntity, - oracleRegistration, - ), - ).rejects.toThrow( - new ControlledError( - ErrorCapthca.VerificationFailed, - HttpStatus.BAD_REQUEST, - ), - ); - }); }); describe('getRegisteredOracles', () => { diff --git a/packages/apps/reputation-oracle/server/src/modules/user/user.service.ts b/packages/apps/reputation-oracle/server/src/modules/user/user.service.ts index 0a2ba26fd7..8da0e63bac 100644 --- a/packages/apps/reputation-oracle/server/src/modules/user/user.service.ts +++ b/packages/apps/reputation-oracle/server/src/modules/user/user.service.ts @@ -5,11 +5,7 @@ import { Logger, } from '@nestjs/common'; import * as bcrypt from 'bcrypt'; -import { - ErrorCapthca, - ErrorOperator, - ErrorUser, -} from '../../common/constants/errors'; +import { ErrorOperator, ErrorUser } from '../../common/constants/errors'; import { KycStatus, OperatorStatus, @@ -52,7 +48,6 @@ export class UserService { private readonly web3ConfigService: Web3ConfigService, private readonly hcaptchaConfigService: HCaptchaConfigService, private readonly networkConfigService: NetworkConfigService, - private readonly hCaptchaService: HCaptchaService, ) {} static checkPasswordMatchesHash( @@ -369,24 +364,8 @@ export class UserService { public async registrationInExchangeOracle( user: UserEntity, - { hCaptchaToken, oracleAddress }: RegistrationInExchangeOracleDto, + oracleAddress: string, ): Promise { - if (!hCaptchaToken) { - throw new ControlledError( - ErrorCapthca.InvalidToken, - HttpStatus.BAD_REQUEST, - ); - } - const captchaVerificationResult = await this.hCaptchaService.verifyToken({ - token: hCaptchaToken, - }); - if (!captchaVerificationResult.success) { - throw new ControlledError( - ErrorCapthca.VerificationFailed, - HttpStatus.BAD_REQUEST, - ); - } - const siteKey = await this.siteKeyRepository.findByUserSiteKeyAndType( user, oracleAddress, From cf52f6a6e3c7e10af83ac411a91e7fed6742c312 Mon Sep 17 00:00:00 2001 From: Maxim Zhiltsov Date: Tue, 21 Jan 2025 18:38:26 +0300 Subject: [PATCH 04/44] Fix default in migration (#3034) --- .../alembic/versions/1e89224ad721_add_gt_labels_in_gt_stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/examples/cvat/recording-oracle/alembic/versions/1e89224ad721_add_gt_labels_in_gt_stats.py b/packages/examples/cvat/recording-oracle/alembic/versions/1e89224ad721_add_gt_labels_in_gt_stats.py index 3b8351099f..abd4f3576c 100644 --- a/packages/examples/cvat/recording-oracle/alembic/versions/1e89224ad721_add_gt_labels_in_gt_stats.py +++ b/packages/examples/cvat/recording-oracle/alembic/versions/1e89224ad721_add_gt_labels_in_gt_stats.py @@ -20,7 +20,7 @@ def upgrade() -> None: # ### commands auto generated by Alembic - please adjust! ### op.add_column( - "gt_stats", sa.Column("label_set", sa.String(), nullable=False, server_default="") + "gt_stats", sa.Column("label_set", sa.String(), nullable=False, server_default="[]") ) # ### end Alembic commands ### From 285c9c5e49ce1f941b3d5acd4c3ebdd3874809fc Mon Sep 17 00:00:00 2001 From: Maxim Zhiltsov Date: Tue, 21 Jan 2025 18:38:47 +0300 Subject: [PATCH 05/44] [CVAT] Fix validation layout update calls (#3033) * Fix honeypot update calls * Update tests --- .../recording-oracle/src/cvat/api_calls.py | 14 +++------- .../handlers/process_intermediate_results.py | 14 ++++------ .../services/test_validation_service.py | 26 ++++++++++--------- 3 files changed, 22 insertions(+), 32 deletions(-) diff --git a/packages/examples/cvat/recording-oracle/src/cvat/api_calls.py b/packages/examples/cvat/recording-oracle/src/cvat/api_calls.py index 0d6caebf33..0b51e7986c 100644 --- a/packages/examples/cvat/recording-oracle/src/cvat/api_calls.py +++ b/packages/examples/cvat/recording-oracle/src/cvat/api_calls.py @@ -161,8 +161,7 @@ def get_task_validation_layout(task_id: int) -> models.TaskValidationLayoutRead: def update_task_validation_layout( task_id: int, *, - disabled_frames: list[int], - honeypot_real_frames: list[int] | None, + honeypot_real_frames: list[int], ) -> None: logger = logging.getLogger("app") @@ -171,15 +170,8 @@ def update_task_validation_layout( validation_layout, _ = api_client.tasks_api.partial_update_validation_layout( task_id, patched_task_validation_layout_write_request=models.PatchedTaskValidationLayoutWriteRequest( - disabled_frames=disabled_frames, - **( - { - "honeypot_real_frames": honeypot_real_frames, - "frame_selection_method": models.FrameSelectionMethod("manual"), - } - if honeypot_real_frames - else {} - ), + honeypot_real_frames=honeypot_real_frames, + frame_selection_method=models.FrameSelectionMethod("manual"), ), ) except exceptions.ApiException as ex: diff --git a/packages/examples/cvat/recording-oracle/src/handlers/process_intermediate_results.py b/packages/examples/cvat/recording-oracle/src/handlers/process_intermediate_results.py index 475c3d7e0d..95e46d2e7f 100644 --- a/packages/examples/cvat/recording-oracle/src/handlers/process_intermediate_results.py +++ b/packages/examples/cvat/recording-oracle/src/handlers/process_intermediate_results.py @@ -418,7 +418,7 @@ def __init__( self.rng = rng @cached_property - def _get_gt_frame_uses(self) -> dict[GtKey, int]: + def _gt_frame_uses(self) -> dict[GtKey, int]: return {gt_key: gt_stat.total_uses for gt_key, gt_stat in self.gt_stats.items()} def _select_random_least_used( @@ -598,7 +598,7 @@ def update_honeypots(self) -> _HoneypotUpdateResult: self._check_warmup_annotation_speed() - gt_frame_uses = self._get_gt_frame_uses + gt_frame_uses = self._gt_frame_uses tasks_with_rejected_jobs = grouped( rejected_jobs, key=lambda jid: self._job_annotation_meta_by_job_id[jid].task_id @@ -658,12 +658,6 @@ def update_honeypots(self) -> _HoneypotUpdateResult: if task_validation_frame_to_gt_key[validation_frame] in task_available_gt_keys ] - task_updated_disabled_frames = [ - validation_frame - for validation_frame in task_validation_layout.validation_frames - if validation_frame not in task_available_validation_frames - ] - task_honeypot_to_index: dict[int, int] = { honeypot: i for i, honeypot in enumerate(task_validation_layout.honeypot_frames) } # honeypot -> honeypot list index @@ -697,9 +691,11 @@ def update_honeypots(self) -> _HoneypotUpdateResult: } ) == len(job_honeypots) + # Don't use disabled frames to avoid request fails because of + # the already accepted jobs with (possibly newly) excluded frames. + # The updated honeypots will include unmodified jobs as well. cvat_api.update_task_validation_layout( cvat_task_id, - disabled_frames=task_updated_disabled_frames, honeypot_real_frames=task_updated_honeypot_real_frames, ) diff --git a/packages/examples/cvat/recording-oracle/tests/integration/services/test_validation_service.py b/packages/examples/cvat/recording-oracle/tests/integration/services/test_validation_service.py index c203c08bc1..619a1862fd 100644 --- a/packages/examples/cvat/recording-oracle/tests/integration/services/test_validation_service.py +++ b/packages/examples/cvat/recording-oracle/tests/integration/services/test_validation_service.py @@ -477,20 +477,20 @@ def patched_prepare_merged_dataset(self): assert {j.job_id for j in annotation_meta.jobs} == set(vr.rejected_jobs) assert mock_update_task_validation_layout.call_count == 1 + assert mock_update_task_validation_layout.call_args.args == (cvat_task_id,) + assert len(mock_update_task_validation_layout.call_args.kwargs) == 1 - updated_disabled_frames = mock_update_task_validation_layout.call_args.kwargs[ - "disabled_frames" + updated_honeypot_real_frames = mock_update_task_validation_layout.call_args.kwargs[ + "honeypot_real_frames" ] - assert all(v in task_validation_frames for v in updated_disabled_frames) - assert { + + assert all(f in task_validation_frames for f in updated_honeypot_real_frames) + + excluded_validation_frames = { f for f, c in Counter(task_honeypot_real_frames).items() if c == max_validation_frame_uses - } == set(updated_disabled_frames), Counter(task_honeypot_real_frames) - - updated_honeypot_real_frames = mock_update_task_validation_layout.call_args.kwargs[ - "honeypot_real_frames" - ] + } for job_start, job_stop in job_frame_ranges: job_honeypot_positions = [ @@ -504,7 +504,7 @@ def patched_prepare_merged_dataset(self): assert sorted(job_updated_honeypots) == sorted(set(job_updated_honeypots)) # Check that the new frames are not from the excluded set - assert set(job_updated_honeypots).isdisjoint(updated_disabled_frames) + assert set(job_updated_honeypots).isdisjoint(excluded_validation_frames) def _get_job_frame_ranges(self, jobs: Sequence[Sequence[str]]) -> list[tuple[int, int]]: job_frame_ranges = [] @@ -902,9 +902,11 @@ def patched_get_jobs_quality_reports(task_id: int): assert len(mock_update_task_validation_layout.mock_calls) == 2 for call in mock_update_task_validation_layout.mock_calls: if call.args[0] == cvat_task_id1: - assert call.kwargs["disabled_frames"] == [2] + assert "disabled_frames" not in call.kwargs + assert 2 not in call.kwargs["honeypot_real_frames"] elif call.args[0] == cvat_task_id2: - assert call.kwargs["disabled_frames"] == [3] + assert "disabled_frames" not in call.kwargs + assert 3 not in call.kwargs["honeypot_real_frames"] else: raise AssertionError From 08aebbd0843a1b374f192e63b7f6d483981e64dd Mon Sep 17 00:00:00 2001 From: ivhus <94983079+ivhus@users.noreply.github.com> Date: Tue, 21 Jan 2025 21:38:11 -0300 Subject: [PATCH 06/44] Fix/locking (#3016) * Update cd-cvat-recording-oracle.yaml * Update cd-cvat-exchange-oracle.yaml * Move locking to workflow-level cd-cvat-recording-oracle.yaml * Move locking to workflow-level cd-cvat-exchange-oracle.yaml * Concurrency group cd-cvat-exchange-oracle.yaml * Concurrency group cd-cvat-recording-oracle.yaml --- .github/workflows/cd-cvat-exchange-oracle.yaml | 3 +++ .github/workflows/cd-cvat-recording-oracle.yaml | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/.github/workflows/cd-cvat-exchange-oracle.yaml b/.github/workflows/cd-cvat-exchange-oracle.yaml index a1f2679eec..894e01d50f 100644 --- a/.github/workflows/cd-cvat-exchange-oracle.yaml +++ b/.github/workflows/cd-cvat-exchange-oracle.yaml @@ -14,6 +14,9 @@ on: permissions: id-token: write contents: read +concurrency: + group: docker-compose-oracles-${{ github.ref }} + cancel-in-progress: false # Ensure the workflow waits instead of canceling others jobs: pull-request-check: diff --git a/.github/workflows/cd-cvat-recording-oracle.yaml b/.github/workflows/cd-cvat-recording-oracle.yaml index 487c51876b..f2e64bd8c6 100644 --- a/.github/workflows/cd-cvat-recording-oracle.yaml +++ b/.github/workflows/cd-cvat-recording-oracle.yaml @@ -15,6 +15,10 @@ permissions: id-token: write contents: read +concurrency: + group: docker-compose-oracles-${{ github.ref }} + cancel-in-progress: false # Ensure the workflow waits instead of canceling others + jobs: pull-request-check: runs-on: ubuntu-latest From 94d3d1fc804ecbe818ebc0596741a40cdeb2d34c Mon Sep 17 00:00:00 2001 From: eugenvoronov <104138627+eugenvoronov@users.noreply.github.com> Date: Wed, 22 Jan 2025 11:40:32 +0300 Subject: [PATCH 07/44] Removed validator role (#3035) --- .../human_protocol_sdk/constants.py | 1 - .../subgraph/tests/kvstore/kvstore.test.ts | 34 +++++++++---------- 2 files changed, 17 insertions(+), 18 deletions(-) diff --git a/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/constants.py b/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/constants.py index dca9919041..d723adccb3 100644 --- a/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/constants.py +++ b/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/constants.py @@ -338,7 +338,6 @@ class Status(Enum): class Role(Enum): """Enum for roles.""" - validator = "Validator" job_launcher = "Job Launcher" exchange_oracle = "Exchange Oracle" reputation_oracle = "Reputation Oracle" diff --git a/packages/sdk/typescript/subgraph/tests/kvstore/kvstore.test.ts b/packages/sdk/typescript/subgraph/tests/kvstore/kvstore.test.ts index 61b6bf5fd1..da1078f119 100644 --- a/packages/sdk/typescript/subgraph/tests/kvstore/kvstore.test.ts +++ b/packages/sdk/typescript/subgraph/tests/kvstore/kvstore.test.ts @@ -38,7 +38,7 @@ describe('KVStore', () => { const data2 = createDataSavedEvent( '0x92a2eEF7Ff696BCef98957a0189872680600a959', 'role', - 'Validator', + 'Job Launcher', BigInt.fromI32(11) ); @@ -102,7 +102,7 @@ describe('KVStore', () => { data2.params.sender.toHex() ); assert.fieldEquals('KVStoreSetEvent', id2, 'key', 'role'); - assert.fieldEquals('KVStoreSetEvent', id2, 'value', 'Validator'); + assert.fieldEquals('KVStoreSetEvent', id2, 'value', 'Job Launcher'); }); test('Should properly create a transaction with set method', () => { @@ -115,7 +115,7 @@ describe('KVStore', () => { const data2 = createDataSavedEvent( '0x92a2eEF7Ff696BCef98957a0189872680600a959', 'role', - 'Validator', + 'Job Launcher', BigInt.fromI32(11) ); @@ -275,7 +275,7 @@ describe('KVStore', () => { const data2 = createDataSavedEvent( '0x92a2eEF7Ff696BCef98957a0189872680600a959', 'role', - 'Validator', + 'Job Launcher', BigInt.fromI32(11) ); @@ -292,7 +292,7 @@ describe('KVStore', () => { 'Leader', data2.params.sender.toHex(), 'role', - 'Validator' + 'Job Launcher' ); }); @@ -378,7 +378,7 @@ describe('KVStore', () => { const data2 = createDataSavedEvent( '0x92a2eEF7Ff696BCef98957a0189872680600a959', 'webhook_url', - 'https://validator.example.com', + 'https://job-launcher.example.com', BigInt.fromI32(11) ); @@ -408,7 +408,7 @@ describe('KVStore', () => { 'Leader', data2.params.sender.toHex(), 'webhookUrl', - 'https://validator.example.com' + 'https://job-launcher.example.com' ); assert.fieldEquals( 'LeaderURL', @@ -420,7 +420,7 @@ describe('KVStore', () => { 'LeaderURL', data2.params.sender.concat(toBytes('webhook_url')).toHex(), 'url', - 'https://validator.example.com' + 'https://job-launcher.example.com' ); }); @@ -434,7 +434,7 @@ describe('KVStore', () => { const data2 = createDataSavedEvent( '0x92a2eEF7Ff696BCef98957a0189872680600a959', 'website', - 'https://validator.example.com', + 'https://job-launcher.example.com', BigInt.fromI32(11) ); @@ -452,7 +452,7 @@ describe('KVStore', () => { 'Leader', data2.params.sender.toHex(), 'website', - 'https://validator.example.com' + 'https://job-launcher.example.com' ); }); @@ -466,7 +466,7 @@ describe('KVStore', () => { const data2 = createDataSavedEvent( '0x92a2eEF7Ff696BCef98957a0189872680600a959', 'URL', - 'https://validator.example.com', + 'https://job-launcher.example.com', BigInt.fromI32(11) ); @@ -496,7 +496,7 @@ describe('KVStore', () => { 'Leader', data2.params.sender.toHex(), 'url', - 'https://validator.example.com' + 'https://job-launcher.example.com' ); assert.fieldEquals( 'LeaderURL', @@ -508,7 +508,7 @@ describe('KVStore', () => { 'LeaderURL', data2.params.sender.concat(toBytes('url')).toHex(), 'url', - 'https://validator.example.com' + 'https://job-launcher.example.com' ); }); @@ -636,13 +636,13 @@ describe('KVStore', () => { const data1 = createDataSavedEvent( '0xD979105297fB0eee83F7433fC09279cb5B94fFC6', 'registration_instructions', - 'https://validator.example.com', + 'https://job-launcher.example.com', BigInt.fromI32(10) ); const data2 = createDataSavedEvent( '0x92a2eEF7Ff696BCef98957a0189872680600a959', 'registration_instructions', - 'https://validator.example.com', + 'https://job-launcher.example.com', BigInt.fromI32(11) ); @@ -653,14 +653,14 @@ describe('KVStore', () => { 'Leader', data1.params.sender.toHex(), 'registrationInstructions', - 'https://validator.example.com' + 'https://job-launcher.example.com' ); assert.fieldEquals( 'Leader', data2.params.sender.toHex(), 'registrationInstructions', - 'https://validator.example.com' + 'https://job-launcher.example.com' ); }); From ba4514f9be3e3e193eeb475c510829217c873f47 Mon Sep 17 00:00:00 2001 From: eugenvoronov <104138627+eugenvoronov@users.noreply.github.com> Date: Wed, 22 Jan 2025 14:54:06 +0300 Subject: [PATCH 08/44] [SDK] Removed unused networks (#3031) * Removed unused networks * Added localhost * Updated services * Fixed tests * Updated networks * Undo changes for default endpoint * remove networks from subgraph workflow --------- Co-authored-by: portuu3 --- .github/workflows/cd-subgraph.yaml | 16 +- .../python/human_protocol_sdk.constants.md | 22 --- docs/sdk/python/human_protocol_sdk.md | 11 -- .../base/classes/BaseEthersClient.md | 6 +- .../encryption/classes/Encryption.md | 10 +- .../encryption/classes/EncryptionUtils.md | 10 +- .../typescript/enums/enumerations/ChainId.md | 126 +----------- .../enums/enumerations/LeaderCategory.md | 4 +- .../enums/enumerations/OrderDirection.md | 4 +- .../typescript/escrow/classes/EscrowClient.md | 52 ++--- .../typescript/escrow/classes/EscrowUtils.md | 37 +--- .../types/type-aliases/DailyEscrowData.md | 2 +- .../types/type-aliases/DailyHMTData.md | 2 +- .../types/type-aliases/DailyPaymentData.md | 2 +- .../types/type-aliases/DailyTaskData.md | 2 +- .../types/type-aliases/DailyWorkerData.md | 2 +- .../graphql/types/type-aliases/EscrowData.md | 2 +- .../types/type-aliases/EscrowStatistics.md | 2 +- .../type-aliases/EscrowStatisticsData.md | 2 +- .../types/type-aliases/EventDayData.md | 2 +- .../graphql/types/type-aliases/HMTHolder.md | 2 +- .../types/type-aliases/HMTHolderData.md | 2 +- .../types/type-aliases/HMTStatistics.md | 2 +- .../types/type-aliases/HMTStatisticsData.md | 2 +- .../graphql/types/type-aliases/IMData.md | 2 +- .../types/type-aliases/IMDataEntity.md | 2 +- .../graphql/types/type-aliases/KVStoreData.md | 2 +- .../types/type-aliases/PaymentStatistics.md | 2 +- .../graphql/types/type-aliases/PayoutData.md | 2 +- .../type-aliases/RewardAddedEventData.md | 2 +- .../graphql/types/type-aliases/StatusEvent.md | 2 +- .../types/type-aliases/TaskStatistics.md | 2 +- .../types/type-aliases/WorkerStatistics.md | 2 +- .../interfaces/interfaces/IEscrowConfig.md | 16 +- .../interfaces/interfaces/IEscrowsFilter.md | 24 +-- .../interfaces/IHMTHoldersParams.md | 8 +- .../interfaces/interfaces/IKVStore.md | 4 +- .../interfaces/interfaces/IKeyPair.md | 8 +- .../interfaces/interfaces/ILeader.md | 44 ++--- .../interfaces/interfaces/ILeaderSubgraph.md | 42 ++-- .../interfaces/interfaces/ILeadersFilter.md | 14 +- .../interfaces/interfaces/IOperator.md | 12 +- .../interfaces/IOperatorSubgraph.md | 12 +- .../interfaces/interfaces/IPagination.md | 6 +- .../interfaces/interfaces/IPayoutFilter.md | 8 +- .../interfaces/IReputationNetwork.md | 6 +- .../interfaces/IReputationNetworkSubgraph.md | 6 +- .../interfaces/interfaces/IReward.md | 4 +- .../interfaces/IStatisticsFilter.md | 10 +- .../interfaces/interfaces/ITransaction.md | 22 +-- .../interfaces/ITransactionsFilter.md | 20 +- .../interfaces/InternalTransaction.md | 14 +- .../interfaces/interfaces/StakerInfo.md | 8 +- .../kvstore/classes/KVStoreClient.md | 14 +- .../kvstore/classes/KVStoreUtils.md | 8 +- .../operator/classes/OperatorUtils.md | 8 +- .../staking/classes/StakingClient.md | 26 +-- .../statistics/classes/StatisticsClient.md | 18 +- .../storage/classes/StorageClient.md | 12 +- .../transaction/classes/TransactionUtils.md | 4 +- .../types/enumerations/EscrowStatus.md | 12 +- .../types/type-aliases/EscrowCancel.md | 2 +- .../types/type-aliases/EscrowWithdraw.md | 2 +- .../types/type-aliases/NetworkData.md | 2 +- .../types/type-aliases/StorageCredentials.md | 2 +- .../types/type-aliases/StorageParams.md | 2 +- .../type-aliases/TransactionLikeWithNonce.md | 2 +- .../types/type-aliases/UploadFile.md | 2 +- .../common/config/network-config.service.ts | 18 -- .../apps/faucet/client/src/constants/index.ts | 4 - .../faucet/server/src/constants/networks.ts | 12 -- .../client/src/constants/chains.ts | 1 - .../common/config/network-config.service.ts | 18 -- .../server/src/common/constant/index.ts | 1 - .../assignment/assignment.controller.spec.ts | 4 +- .../common/config/network-config.service.ts | 9 - .../src/modules/smart-contracts/chains.ts | 11 -- .../config/environment-config.service.spec.ts | 8 +- .../spec/oracle-discovery.fixture.ts | 2 +- .../spec/oracle-discovery.service.spec.ts | 2 +- .../src/components/Icons/AvalancheIcon.tsx | 21 -- .../client/src/components/Icons/CeloIcon.tsx | 13 -- .../components/Icons/MoonbaseAlphaIcon.tsx | 69 ------- .../src/components/Icons/MoonbeamIcon.tsx | 76 -------- .../client/src/components/Icons/OkxIcon.tsx | 13 -- .../src/components/Icons/XLayerIcon.tsx | 45 ----- .../client/src/components/Icons/chains.tsx | 16 -- .../client/src/constants/chains.ts | 22 --- .../common/config/network-config.service.ts | 36 ---- .../server/src/common/constants/index.ts | 2 - .../src/modules/job/job.service.spec.ts | 12 +- .../common/config/network-config.service.ts | 27 --- .../server/src/common/constants/networks.ts | 1 - packages/apps/staking/src/constants/chains.ts | 1 - packages/core/README.md | 8 +- .../human_protocol_sdk/constants.py | 179 +----------------- .../human-protocol-sdk/src/constants.ts | 166 ---------------- .../human-protocol-sdk/src/enums.ts | 11 -- .../human-protocol-sdk/src/escrow.ts | 31 +-- packages/sdk/typescript/subgraph/README.md | 7 +- 100 files changed, 312 insertions(+), 1280 deletions(-) delete mode 100644 packages/apps/job-launcher/client/src/components/Icons/AvalancheIcon.tsx delete mode 100644 packages/apps/job-launcher/client/src/components/Icons/CeloIcon.tsx delete mode 100644 packages/apps/job-launcher/client/src/components/Icons/MoonbaseAlphaIcon.tsx delete mode 100644 packages/apps/job-launcher/client/src/components/Icons/MoonbeamIcon.tsx delete mode 100644 packages/apps/job-launcher/client/src/components/Icons/OkxIcon.tsx delete mode 100644 packages/apps/job-launcher/client/src/components/Icons/XLayerIcon.tsx diff --git a/.github/workflows/cd-subgraph.yaml b/.github/workflows/cd-subgraph.yaml index 8e1be41306..1d60a9b942 100644 --- a/.github/workflows/cd-subgraph.yaml +++ b/.github/workflows/cd-subgraph.yaml @@ -15,29 +15,25 @@ jobs: matrix: network: - name: amoy - - name: avalanche - name: bsc-testnet - name: bsc - - name: celo-alfajores - - name: celo - name: ethereum - - name: fuji - - name: moonbase-alpha - - name: moonbeam - name: polygon - name: sepolia - - name: xlayer-testnet - - name: xlayer fail-fast: true max-parallel: 3 steps: - uses: actions/checkout@v4 - - run: npm install --global yarn && yarn --ignore-scripts + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '18.20.1' + - run: npm install --global yarn && yarn name: Install dependencies - run: yarn build name: Build core package working-directory: ./packages/core - - run: yarn global add @graphprotocol/graph-cli + - run: yarn global add @graphprotocol/graph-cli@0.71.2 name: Install Graph CLI - run: graph auth --studio ${API_KEY} name: Authenticate Graph CLI diff --git a/docs/sdk/python/human_protocol_sdk.constants.md b/docs/sdk/python/human_protocol_sdk.constants.md index 961e2a206f..dcf03e00cd 100644 --- a/docs/sdk/python/human_protocol_sdk.constants.md +++ b/docs/sdk/python/human_protocol_sdk.constants.md @@ -6,42 +6,20 @@ Bases: `Enum` Enum for chain IDs. -#### AVALANCHE *= 43114* - -#### AVALANCHE_TESTNET *= 43113* - #### BSC_MAINNET *= 56* #### BSC_TESTNET *= 97* -#### CELO *= 42220* - -#### CELO_ALFAJORES *= 44787* - -#### GOERLI *= 5* - #### LOCALHOST *= 1338* #### MAINNET *= 1* -#### MOONBASE_ALPHA *= 1287* - -#### MOONBEAM *= 1284* - #### POLYGON *= 137* #### POLYGON_AMOY *= 80002* -#### POLYGON_MUMBAI *= 80001* - -#### RINKEBY *= 4* - #### SEPOLIA *= 11155111* -#### XLAYER *= 196* - -#### XLAYER_TESTNET *= 195* - ### *class* human_protocol_sdk.constants.KVStoreKeys(value) Bases: `Enum` diff --git a/docs/sdk/python/human_protocol_sdk.md b/docs/sdk/python/human_protocol_sdk.md index ed892e3b7c..4a5708c80d 100644 --- a/docs/sdk/python/human_protocol_sdk.md +++ b/docs/sdk/python/human_protocol_sdk.md @@ -129,24 +129,13 @@ * [human_protocol_sdk.constants module](human_protocol_sdk.constants.md) * [`ChainId`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.ChainId) - * [`ChainId.AVALANCHE`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.ChainId.AVALANCHE) - * [`ChainId.AVALANCHE_TESTNET`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.ChainId.AVALANCHE_TESTNET) * [`ChainId.BSC_MAINNET`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.ChainId.BSC_MAINNET) * [`ChainId.BSC_TESTNET`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.ChainId.BSC_TESTNET) - * [`ChainId.CELO`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.ChainId.CELO) - * [`ChainId.CELO_ALFAJORES`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.ChainId.CELO_ALFAJORES) - * [`ChainId.GOERLI`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.ChainId.GOERLI) * [`ChainId.LOCALHOST`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.ChainId.LOCALHOST) * [`ChainId.MAINNET`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.ChainId.MAINNET) - * [`ChainId.MOONBASE_ALPHA`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.ChainId.MOONBASE_ALPHA) - * [`ChainId.MOONBEAM`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.ChainId.MOONBEAM) * [`ChainId.POLYGON`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.ChainId.POLYGON) * [`ChainId.POLYGON_AMOY`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.ChainId.POLYGON_AMOY) - * [`ChainId.POLYGON_MUMBAI`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.ChainId.POLYGON_MUMBAI) - * [`ChainId.RINKEBY`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.ChainId.RINKEBY) * [`ChainId.SEPOLIA`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.ChainId.SEPOLIA) - * [`ChainId.XLAYER`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.ChainId.XLAYER) - * [`ChainId.XLAYER_TESTNET`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.ChainId.XLAYER_TESTNET) * [`KVStoreKeys`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.KVStoreKeys) * [`KVStoreKeys.category`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.KVStoreKeys.category) * [`KVStoreKeys.fee`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.KVStoreKeys.fee) diff --git a/docs/sdk/typescript/base/classes/BaseEthersClient.md b/docs/sdk/typescript/base/classes/BaseEthersClient.md index 613eeee2e2..a06975db6c 100644 --- a/docs/sdk/typescript/base/classes/BaseEthersClient.md +++ b/docs/sdk/typescript/base/classes/BaseEthersClient.md @@ -44,7 +44,7 @@ The network information required to connect to the contracts #### Defined in -[base.ts:20](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L20) +[base.ts:20](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L20) ## Properties @@ -54,7 +54,7 @@ The network information required to connect to the contracts #### Defined in -[base.ts:12](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12) +[base.ts:12](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12) *** @@ -64,4 +64,4 @@ The network information required to connect to the contracts #### Defined in -[base.ts:11](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L11) +[base.ts:11](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/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 bfc879b7fc..68f5c2881f 100644 --- a/docs/sdk/typescript/encryption/classes/Encryption.md +++ b/docs/sdk/typescript/encryption/classes/Encryption.md @@ -67,7 +67,7 @@ The private key. #### Defined in -[encryption.ts:66](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L66) +[encryption.ts:66](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L66) ## Methods @@ -123,7 +123,7 @@ const resultMessage = await encryption.decrypt('message'); #### Defined in -[encryption.ts:194](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L194) +[encryption.ts:194](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L194) *** @@ -161,7 +161,7 @@ const resultMessage = await encryption.sign('message'); #### Defined in -[encryption.ts:251](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L251) +[encryption.ts:251](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L251) *** @@ -230,7 +230,7 @@ const resultMessage = await encryption.signAndEncrypt('message', publicKeys); #### Defined in -[encryption.ts:142](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L142) +[encryption.ts:142](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L142) *** @@ -262,4 +262,4 @@ Optional: The passphrase for the private key. #### Defined in -[encryption.ts:77](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L77) +[encryption.ts:77](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L77) diff --git a/docs/sdk/typescript/encryption/classes/EncryptionUtils.md b/docs/sdk/typescript/encryption/classes/EncryptionUtils.md index 3a1d80399d..c448eb3e0b 100644 --- a/docs/sdk/typescript/encryption/classes/EncryptionUtils.md +++ b/docs/sdk/typescript/encryption/classes/EncryptionUtils.md @@ -103,7 +103,7 @@ const result = await EncryptionUtils.encrypt('message', publicKeys); #### Defined in -[encryption.ts:444](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L444) +[encryption.ts:444](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L444) *** @@ -152,7 +152,7 @@ const result = await EncryptionUtils.generateKeyPair(name, email, passphrase); #### Defined in -[encryption.ts:382](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L382) +[encryption.ts:382](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L382) *** @@ -186,7 +186,7 @@ const signedData = await EncryptionUtils.getSignedData('message'); #### Defined in -[encryption.ts:351](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L351) +[encryption.ts:351](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L351) *** @@ -236,7 +236,7 @@ if (isEncrypted) { #### Defined in -[encryption.ts:494](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L494) +[encryption.ts:494](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L494) *** @@ -288,4 +288,4 @@ const result = await EncryptionUtils.verify('message', publicKey); #### Defined in -[encryption.ts:318](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L318) +[encryption.ts:318](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L318) diff --git a/docs/sdk/typescript/enums/enumerations/ChainId.md b/docs/sdk/typescript/enums/enumerations/ChainId.md index 90c904a64a..c68340c9c7 100644 --- a/docs/sdk/typescript/enums/enumerations/ChainId.md +++ b/docs/sdk/typescript/enums/enumerations/ChainId.md @@ -14,27 +14,7 @@ #### Defined in -[enums.ts:2](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L2) - -*** - -### AVALANCHE - -> **AVALANCHE**: `43114` - -#### Defined in - -[enums.ts:15](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L15) - -*** - -### AVALANCHE\_TESTNET - -> **AVALANCHE\_TESTNET**: `43113` - -#### Defined in - -[enums.ts:14](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L14) +[enums.ts:2](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L2) *** @@ -44,7 +24,7 @@ #### Defined in -[enums.ts:7](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L7) +[enums.ts:5](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L5) *** @@ -54,37 +34,7 @@ #### Defined in -[enums.ts:8](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L8) - -*** - -### CELO - -> **CELO**: `42220` - -#### Defined in - -[enums.ts:16](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L16) - -*** - -### CELO\_ALFAJORES - -> **CELO\_ALFAJORES**: `44787` - -#### Defined in - -[enums.ts:17](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L17) - -*** - -### GOERLI - -> **GOERLI**: `5` - -#### Defined in - -[enums.ts:5](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L5) +[enums.ts:6](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L6) *** @@ -94,7 +44,7 @@ #### Defined in -[enums.ts:19](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L19) +[enums.ts:9](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L9) *** @@ -104,27 +54,7 @@ #### Defined in -[enums.ts:3](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L3) - -*** - -### MOONBASE\_ALPHA - -> **MOONBASE\_ALPHA**: `1287` - -#### Defined in - -[enums.ts:13](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L13) - -*** - -### MOONBEAM - -> **MOONBEAM**: `1284` - -#### Defined in - -[enums.ts:12](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L12) +[enums.ts:3](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L3) *** @@ -134,7 +64,7 @@ #### Defined in -[enums.ts:9](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L9) +[enums.ts:7](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L7) *** @@ -144,27 +74,7 @@ #### Defined in -[enums.ts:11](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L11) - -*** - -### POLYGON\_MUMBAI - -> **POLYGON\_MUMBAI**: `80001` - -#### Defined in - -[enums.ts:10](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L10) - -*** - -### RINKEBY - -> **RINKEBY**: `4` - -#### Defined in - -[enums.ts:4](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L4) +[enums.ts:8](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L8) *** @@ -174,24 +84,4 @@ #### Defined in -[enums.ts:6](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L6) - -*** - -### XLAYER - -> **XLAYER**: `196` - -#### Defined in - -[enums.ts:20](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L20) - -*** - -### XLAYER\_TESTNET - -> **XLAYER\_TESTNET**: `195` - -#### Defined in - -[enums.ts:18](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L18) +[enums.ts:4](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L4) diff --git a/docs/sdk/typescript/enums/enumerations/LeaderCategory.md b/docs/sdk/typescript/enums/enumerations/LeaderCategory.md index d683b08b4f..3852b8a6f6 100644 --- a/docs/sdk/typescript/enums/enumerations/LeaderCategory.md +++ b/docs/sdk/typescript/enums/enumerations/LeaderCategory.md @@ -14,7 +14,7 @@ #### Defined in -[enums.ts:29](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L29) +[enums.ts:18](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L18) *** @@ -24,4 +24,4 @@ #### Defined in -[enums.ts:30](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L30) +[enums.ts:19](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/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 1a66e5acb5..3d2ae3ce16 100644 --- a/docs/sdk/typescript/enums/enumerations/OrderDirection.md +++ b/docs/sdk/typescript/enums/enumerations/OrderDirection.md @@ -14,7 +14,7 @@ #### Defined in -[enums.ts:24](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L24) +[enums.ts:13](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L13) *** @@ -24,4 +24,4 @@ #### Defined in -[enums.ts:25](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L25) +[enums.ts:14](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/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 7b46000dee..73a0d4a2bf 100644 --- a/docs/sdk/typescript/escrow/classes/EscrowClient.md +++ b/docs/sdk/typescript/escrow/classes/EscrowClient.md @@ -110,7 +110,7 @@ The network information required to connect to the Escrow contract #### Defined in -[escrow.ts:138](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L138) +[escrow.ts:138](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L138) ## Properties @@ -124,7 +124,7 @@ The network information required to connect to the Escrow contract #### Defined in -[base.ts:12](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12) +[base.ts:12](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12) *** @@ -138,7 +138,7 @@ The network information required to connect to the Escrow contract #### Defined in -[base.ts:11](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L11) +[base.ts:11](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L11) ## Methods @@ -195,7 +195,7 @@ await escrowClient.addTrustedHandlers('0x62dD51230A30401C455c8398d06F85e4EaB6309 #### Defined in -[escrow.ts:766](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L766) +[escrow.ts:766](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L766) *** @@ -287,7 +287,7 @@ await escrowClient.bulkPayOut('0x62dD51230A30401C455c8398d06F85e4EaB6309f', reci #### Defined in -[escrow.ts:599](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L599) +[escrow.ts:599](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L599) *** @@ -337,7 +337,7 @@ await escrowClient.cancel('0x62dD51230A30401C455c8398d06F85e4EaB6309f'); #### Defined in -[escrow.ts:680](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L680) +[escrow.ts:680](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L680) *** @@ -387,7 +387,7 @@ await escrowClient.complete('0x62dD51230A30401C455c8398d06F85e4EaB6309f'); #### Defined in -[escrow.ts:538](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L538) +[escrow.ts:538](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L538) *** @@ -483,7 +483,7 @@ console.log('Tx hash:', ethers.keccak256(signedTransaction)); #### Defined in -[escrow.ts:935](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L935) +[escrow.ts:935](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L935) *** @@ -548,7 +548,7 @@ const escrowAddress = await escrowClient.createEscrow(tokenAddress, trustedHandl #### Defined in -[escrow.ts:218](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L218) +[escrow.ts:218](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L218) *** @@ -603,7 +603,7 @@ await escrowClient.fund('0x62dD51230A30401C455c8398d06F85e4EaB6309f', amount); #### Defined in -[escrow.ts:409](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L409) +[escrow.ts:409](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L409) *** @@ -643,7 +643,7 @@ const balance = await escrowClient.getBalance('0x62dD51230A30401C455c8398d06F85e #### Defined in -[escrow.ts:1080](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1080) +[escrow.ts:1080](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1080) *** @@ -683,7 +683,7 @@ const oracleAddress = await escrowClient.getExchangeOracleAddress('0x62dD51230A3 #### Defined in -[escrow.ts:1466](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1466) +[escrow.ts:1466](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1466) *** @@ -723,7 +723,7 @@ const factoryAddress = await escrowClient.getFactoryAddress('0x62dD51230A30401C4 #### Defined in -[escrow.ts:1504](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1504) +[escrow.ts:1504](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1504) *** @@ -763,7 +763,7 @@ const intermediateResultsUrl = await escrowClient.getIntermediateResultsUrl('0x6 #### Defined in -[escrow.ts:1238](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1238) +[escrow.ts:1238](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1238) *** @@ -803,7 +803,7 @@ const jobLauncherAddress = await escrowClient.getJobLauncherAddress('0x62dD51230 #### Defined in -[escrow.ts:1390](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1390) +[escrow.ts:1390](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1390) *** @@ -843,7 +843,7 @@ const manifestHash = await escrowClient.getManifestHash('0x62dD51230A30401C455c8 #### Defined in -[escrow.ts:1124](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1124) +[escrow.ts:1124](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1124) *** @@ -883,7 +883,7 @@ const manifestUrl = await escrowClient.getManifestUrl('0x62dD51230A30401C455c839 #### Defined in -[escrow.ts:1162](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1162) +[escrow.ts:1162](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1162) *** @@ -923,7 +923,7 @@ const oracleAddress = await escrowClient.getRecordingOracleAddress('0x62dD51230A #### Defined in -[escrow.ts:1352](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1352) +[escrow.ts:1352](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1352) *** @@ -963,7 +963,7 @@ const oracleAddress = await escrowClient.getReputationOracleAddress('0x62dD51230 #### Defined in -[escrow.ts:1428](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1428) +[escrow.ts:1428](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1428) *** @@ -1003,7 +1003,7 @@ const resultsUrl = await escrowClient.getResultsUrl('0x62dD51230A30401C455c8398d #### Defined in -[escrow.ts:1200](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1200) +[escrow.ts:1200](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1200) *** @@ -1043,7 +1043,7 @@ const status = await escrowClient.getStatus('0x62dD51230A30401C455c8398d06F85e4E #### Defined in -[escrow.ts:1314](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1314) +[escrow.ts:1314](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1314) *** @@ -1083,7 +1083,7 @@ const tokenAddress = await escrowClient.getTokenAddress('0x62dD51230A30401C455c8 #### Defined in -[escrow.ts:1276](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1276) +[escrow.ts:1276](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1276) *** @@ -1150,7 +1150,7 @@ await escrowClient.setup(escrowAddress, escrowConfig); #### Defined in -[escrow.ts:299](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L299) +[escrow.ts:299](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L299) *** @@ -1212,7 +1212,7 @@ await escrowClient.storeResults('0x62dD51230A30401C455c8398d06F85e4EaB6309f', 'h #### Defined in -[escrow.ts:474](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L474) +[escrow.ts:474](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L474) *** @@ -1271,7 +1271,7 @@ await escrowClient.withdraw( #### Defined in -[escrow.ts:832](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L832) +[escrow.ts:832](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L832) *** @@ -1305,4 +1305,4 @@ Thrown if the network's chainId is not supported #### Defined in -[escrow.ts:156](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L156) +[escrow.ts:156](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L156) diff --git a/docs/sdk/typescript/escrow/classes/EscrowUtils.md b/docs/sdk/typescript/escrow/classes/EscrowUtils.md index f0782ef4b6..2d852104dc 100644 --- a/docs/sdk/typescript/escrow/classes/EscrowUtils.md +++ b/docs/sdk/typescript/escrow/classes/EscrowUtils.md @@ -62,19 +62,11 @@ This function returns the escrow data for a given address. enum ChainId { ALL = -1, MAINNET = 1, - RINKEBY = 4, - GOERLI = 5, + SEPOLIA = 11155111, BSC_MAINNET = 56, BSC_TESTNET = 97, POLYGON = 137, - POLYGON_MUMBAI = 80001, POLYGON_AMOY = 80002, - MOONBEAM = 1284, - MOONBASE_ALPHA = 1287, - AVALANCHE = 43114, - AVALANCHE_TESTNET = 43113, - CELO = 42220, - CELO_ALFAJORES = 44787, LOCALHOST = 1338, } ``` @@ -133,7 +125,7 @@ const escrowData = new EscrowUtils.getEscrow(ChainId.POLYGON_AMOY, "0x1234567890 #### Defined in -[escrow.ts:1784](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1784) +[escrow.ts:1768](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1768) *** @@ -166,19 +158,11 @@ interface IEscrowsFilter { enum ChainId { ALL = -1, MAINNET = 1, - RINKEBY = 4, - GOERLI = 5, + SEPOLIA = 11155111, BSC_MAINNET = 56, BSC_TESTNET = 97, POLYGON = 137, - POLYGON_MUMBAI = 80001, POLYGON_AMOY=80002, - MOONBEAM = 1284, - MOONBASE_ALPHA = 1287, - AVALANCHE = 43114, - AVALANCHE_TESTNET = 43113, - CELO = 42220, - CELO_ALFAJORES = 44787, LOCALHOST = 1338, } ``` @@ -255,7 +239,7 @@ const escrowDatas = await EscrowUtils.getEscrows(filters); #### Defined in -[escrow.ts:1658](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1658) +[escrow.ts:1650](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1650) *** @@ -273,23 +257,12 @@ This function returns the status events for a given set of networks within an op enum ChainId { ALL = -1, MAINNET = 1, - RINKEBY = 4, - GOERLI = 5, SEPOLIA = 11155111, BSC_MAINNET = 56, BSC_TESTNET = 97, POLYGON = 137, - POLYGON_MUMBAI = 80001, POLYGON_AMOY = 80002, - MOONBEAM = 1284, - MOONBASE_ALPHA = 1287, - AVALANCHE = 43114, - AVALANCHE_TESTNET = 43113, - CELO = 42220, - CELO_ALFAJORES = 44787, LOCALHOST = 1338, - XLAYER_TESTNET = 195, - XLAYER = 196, } ``` @@ -384,4 +357,4 @@ import { ChainId, EscrowUtils, EscrowStatus } from '@human-protocol/sdk'; #### Defined in -[escrow.ts:1882](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1882) +[escrow.ts:1855](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1855) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/DailyEscrowData.md b/docs/sdk/typescript/graphql/types/type-aliases/DailyEscrowData.md index c2844dbc0f..6863bf63a8 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/DailyEscrowData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/DailyEscrowData.md @@ -36,4 +36,4 @@ ## Defined in -[graphql/types.ts:83](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L83) +[graphql/types.ts:83](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L83) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/DailyHMTData.md b/docs/sdk/typescript/graphql/types/type-aliases/DailyHMTData.md index 4ebe50a1f0..8e6782b2c5 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/DailyHMTData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/DailyHMTData.md @@ -32,4 +32,4 @@ ## Defined in -[graphql/types.ts:127](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L127) +[graphql/types.ts:127](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L127) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/DailyPaymentData.md b/docs/sdk/typescript/graphql/types/type-aliases/DailyPaymentData.md index a2f26f93c0..dd6247ac12 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/DailyPaymentData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/DailyPaymentData.md @@ -28,4 +28,4 @@ ## Defined in -[graphql/types.ts:106](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L106) +[graphql/types.ts:106](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L106) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/DailyTaskData.md b/docs/sdk/typescript/graphql/types/type-aliases/DailyTaskData.md index ce22ceb348..07f897c946 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/DailyTaskData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/DailyTaskData.md @@ -24,4 +24,4 @@ ## Defined in -[graphql/types.ts:148](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L148) +[graphql/types.ts:148](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L148) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/DailyWorkerData.md b/docs/sdk/typescript/graphql/types/type-aliases/DailyWorkerData.md index f6840c8690..b4d35dacfb 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/DailyWorkerData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/DailyWorkerData.md @@ -20,4 +20,4 @@ ## Defined in -[graphql/types.ts:97](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L97) +[graphql/types.ts:97](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L97) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/EscrowData.md b/docs/sdk/typescript/graphql/types/type-aliases/EscrowData.md index 28d8691a16..3587f6f91f 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/EscrowData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/EscrowData.md @@ -88,4 +88,4 @@ ## Defined in -[graphql/types.ts:3](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L3) +[graphql/types.ts:3](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L3) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/EscrowStatistics.md b/docs/sdk/typescript/graphql/types/type-aliases/EscrowStatistics.md index 7d248397cf..1183f1d9d4 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/EscrowStatistics.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/EscrowStatistics.md @@ -20,4 +20,4 @@ ## Defined in -[graphql/types.ts:92](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L92) +[graphql/types.ts:92](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L92) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/EscrowStatisticsData.md b/docs/sdk/typescript/graphql/types/type-aliases/EscrowStatisticsData.md index ddc0cb4727..6a98db3cf2 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/EscrowStatisticsData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/EscrowStatisticsData.md @@ -52,4 +52,4 @@ ## Defined in -[graphql/types.ts:42](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L42) +[graphql/types.ts:42](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L42) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/EventDayData.md b/docs/sdk/typescript/graphql/types/type-aliases/EventDayData.md index a6cd5b3800..2517f34fdd 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/EventDayData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/EventDayData.md @@ -84,4 +84,4 @@ ## Defined in -[graphql/types.ts:55](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L55) +[graphql/types.ts:55](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L55) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/HMTHolder.md b/docs/sdk/typescript/graphql/types/type-aliases/HMTHolder.md index e1eff3734b..93039501be 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/HMTHolder.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/HMTHolder.md @@ -20,4 +20,4 @@ ## Defined in -[graphql/types.ts:122](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L122) +[graphql/types.ts:122](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L122) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/HMTHolderData.md b/docs/sdk/typescript/graphql/types/type-aliases/HMTHolderData.md index 016af5ff6a..790bfeeb0d 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/HMTHolderData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/HMTHolderData.md @@ -20,4 +20,4 @@ ## Defined in -[graphql/types.ts:117](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L117) +[graphql/types.ts:117](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L117) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/HMTStatistics.md b/docs/sdk/typescript/graphql/types/type-aliases/HMTStatistics.md index 348252f12e..4a37aac434 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/HMTStatistics.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/HMTStatistics.md @@ -24,4 +24,4 @@ ## Defined in -[graphql/types.ts:135](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L135) +[graphql/types.ts:135](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L135) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/HMTStatisticsData.md b/docs/sdk/typescript/graphql/types/type-aliases/HMTStatisticsData.md index 35cf8ffdbe..0c8fced61c 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/HMTStatisticsData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/HMTStatisticsData.md @@ -36,4 +36,4 @@ ## Defined in -[graphql/types.ts:33](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L33) +[graphql/types.ts:33](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L33) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/IMData.md b/docs/sdk/typescript/graphql/types/type-aliases/IMData.md index aa4bfe26ed..d2a4c833f5 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/IMData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/IMData.md @@ -10,4 +10,4 @@ ## Defined in -[graphql/types.ts:146](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L146) +[graphql/types.ts:146](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L146) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/IMDataEntity.md b/docs/sdk/typescript/graphql/types/type-aliases/IMDataEntity.md index 5f3d99408d..91ebe0ab78 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/IMDataEntity.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/IMDataEntity.md @@ -20,4 +20,4 @@ ## Defined in -[graphql/types.ts:141](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L141) +[graphql/types.ts:141](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L141) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/KVStoreData.md b/docs/sdk/typescript/graphql/types/type-aliases/KVStoreData.md index a23716825b..cd5c59906e 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/KVStoreData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/KVStoreData.md @@ -36,4 +36,4 @@ ## Defined in -[graphql/types.ts:165](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L165) +[graphql/types.ts:165](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L165) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/PaymentStatistics.md b/docs/sdk/typescript/graphql/types/type-aliases/PaymentStatistics.md index 9036ab9846..e3032278e0 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/PaymentStatistics.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/PaymentStatistics.md @@ -16,4 +16,4 @@ ## Defined in -[graphql/types.ts:113](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L113) +[graphql/types.ts:113](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L113) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/PayoutData.md b/docs/sdk/typescript/graphql/types/type-aliases/PayoutData.md index 526ac92fe2..775e48632a 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/PayoutData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/PayoutData.md @@ -32,4 +32,4 @@ ## Defined in -[graphql/types.ts:25](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L25) +[graphql/types.ts:25](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L25) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/RewardAddedEventData.md b/docs/sdk/typescript/graphql/types/type-aliases/RewardAddedEventData.md index 75192e497c..2d4f128bd3 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/RewardAddedEventData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/RewardAddedEventData.md @@ -28,4 +28,4 @@ ## Defined in -[graphql/types.ts:76](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L76) +[graphql/types.ts:76](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L76) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/StatusEvent.md b/docs/sdk/typescript/graphql/types/type-aliases/StatusEvent.md index 7c24cfcf19..b2340f5a0a 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/StatusEvent.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/StatusEvent.md @@ -28,4 +28,4 @@ ## Defined in -[graphql/types.ts:158](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L158) +[graphql/types.ts:158](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L158) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/TaskStatistics.md b/docs/sdk/typescript/graphql/types/type-aliases/TaskStatistics.md index 2628ae6732..38de7f3405 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/TaskStatistics.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/TaskStatistics.md @@ -16,4 +16,4 @@ ## Defined in -[graphql/types.ts:154](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L154) +[graphql/types.ts:154](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L154) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/WorkerStatistics.md b/docs/sdk/typescript/graphql/types/type-aliases/WorkerStatistics.md index f3fd2ee427..a7b65e472a 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/WorkerStatistics.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/WorkerStatistics.md @@ -16,4 +16,4 @@ ## Defined in -[graphql/types.ts:102](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L102) +[graphql/types.ts:102](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L102) diff --git a/docs/sdk/typescript/interfaces/interfaces/IEscrowConfig.md b/docs/sdk/typescript/interfaces/interfaces/IEscrowConfig.md index 1aa3690310..ea88a4b36f 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IEscrowConfig.md +++ b/docs/sdk/typescript/interfaces/interfaces/IEscrowConfig.md @@ -14,7 +14,7 @@ #### Defined in -[interfaces.ts:86](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L86) +[interfaces.ts:86](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L86) *** @@ -24,7 +24,7 @@ #### Defined in -[interfaces.ts:89](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L89) +[interfaces.ts:89](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L89) *** @@ -34,7 +34,7 @@ #### Defined in -[interfaces.ts:91](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L91) +[interfaces.ts:91](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L91) *** @@ -44,7 +44,7 @@ #### Defined in -[interfaces.ts:90](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L90) +[interfaces.ts:90](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L90) *** @@ -54,7 +54,7 @@ #### Defined in -[interfaces.ts:84](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L84) +[interfaces.ts:84](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L84) *** @@ -64,7 +64,7 @@ #### Defined in -[interfaces.ts:87](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L87) +[interfaces.ts:87](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L87) *** @@ -74,7 +74,7 @@ #### Defined in -[interfaces.ts:85](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L85) +[interfaces.ts:85](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L85) *** @@ -84,4 +84,4 @@ #### Defined in -[interfaces.ts:88](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L88) +[interfaces.ts:88](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L88) diff --git a/docs/sdk/typescript/interfaces/interfaces/IEscrowsFilter.md b/docs/sdk/typescript/interfaces/interfaces/IEscrowsFilter.md index a81e3e1366..c5e9901e20 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IEscrowsFilter.md +++ b/docs/sdk/typescript/interfaces/interfaces/IEscrowsFilter.md @@ -18,7 +18,7 @@ #### Defined in -[interfaces.ts:80](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L80) +[interfaces.ts:80](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L80) *** @@ -28,7 +28,7 @@ #### Defined in -[interfaces.ts:75](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L75) +[interfaces.ts:75](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L75) *** @@ -42,7 +42,7 @@ #### Defined in -[interfaces.ts:157](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L157) +[interfaces.ts:157](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L157) *** @@ -52,7 +52,7 @@ #### Defined in -[interfaces.ts:78](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L78) +[interfaces.ts:78](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L78) *** @@ -62,7 +62,7 @@ #### Defined in -[interfaces.ts:76](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L76) +[interfaces.ts:76](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L76) *** @@ -72,7 +72,7 @@ #### Defined in -[interfaces.ts:72](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L72) +[interfaces.ts:72](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L72) *** @@ -86,7 +86,7 @@ #### Defined in -[interfaces.ts:159](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L159) +[interfaces.ts:159](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L159) *** @@ -96,7 +96,7 @@ #### Defined in -[interfaces.ts:74](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L74) +[interfaces.ts:74](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L74) *** @@ -106,7 +106,7 @@ #### Defined in -[interfaces.ts:73](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L73) +[interfaces.ts:73](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L73) *** @@ -120,7 +120,7 @@ #### Defined in -[interfaces.ts:158](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L158) +[interfaces.ts:158](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L158) *** @@ -130,7 +130,7 @@ #### Defined in -[interfaces.ts:77](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L77) +[interfaces.ts:77](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L77) *** @@ -140,4 +140,4 @@ #### Defined in -[interfaces.ts:79](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L79) +[interfaces.ts:79](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L79) diff --git a/docs/sdk/typescript/interfaces/interfaces/IHMTHoldersParams.md b/docs/sdk/typescript/interfaces/interfaces/IHMTHoldersParams.md index 491f52a03a..bd3e25373f 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IHMTHoldersParams.md +++ b/docs/sdk/typescript/interfaces/interfaces/IHMTHoldersParams.md @@ -18,7 +18,7 @@ #### Defined in -[interfaces.ts:107](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L107) +[interfaces.ts:107](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L107) *** @@ -32,7 +32,7 @@ #### Defined in -[interfaces.ts:157](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L157) +[interfaces.ts:157](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L157) *** @@ -46,7 +46,7 @@ #### Defined in -[interfaces.ts:159](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L159) +[interfaces.ts:159](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L159) *** @@ -60,4 +60,4 @@ #### Defined in -[interfaces.ts:158](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L158) +[interfaces.ts:158](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L158) diff --git a/docs/sdk/typescript/interfaces/interfaces/IKVStore.md b/docs/sdk/typescript/interfaces/interfaces/IKVStore.md index 0093b1656c..db6b66f928 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IKVStore.md +++ b/docs/sdk/typescript/interfaces/interfaces/IKVStore.md @@ -14,7 +14,7 @@ #### Defined in -[interfaces.ts:118](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L118) +[interfaces.ts:118](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L118) *** @@ -24,4 +24,4 @@ #### Defined in -[interfaces.ts:119](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L119) +[interfaces.ts:119](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L119) diff --git a/docs/sdk/typescript/interfaces/interfaces/IKeyPair.md b/docs/sdk/typescript/interfaces/interfaces/IKeyPair.md index e6c8201a6b..63e68f5b57 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IKeyPair.md +++ b/docs/sdk/typescript/interfaces/interfaces/IKeyPair.md @@ -14,7 +14,7 @@ #### Defined in -[interfaces.ts:97](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L97) +[interfaces.ts:97](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L97) *** @@ -24,7 +24,7 @@ #### Defined in -[interfaces.ts:95](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L95) +[interfaces.ts:95](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L95) *** @@ -34,7 +34,7 @@ #### Defined in -[interfaces.ts:96](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L96) +[interfaces.ts:96](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L96) *** @@ -44,4 +44,4 @@ #### Defined in -[interfaces.ts:98](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L98) +[interfaces.ts:98](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L98) diff --git a/docs/sdk/typescript/interfaces/interfaces/ILeader.md b/docs/sdk/typescript/interfaces/interfaces/ILeader.md index b6528e34ae..9d5b812fa6 100644 --- a/docs/sdk/typescript/interfaces/interfaces/ILeader.md +++ b/docs/sdk/typescript/interfaces/interfaces/ILeader.md @@ -14,7 +14,7 @@ #### Defined in -[interfaces.ts:12](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L12) +[interfaces.ts:12](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L12) *** @@ -24,7 +24,7 @@ #### Defined in -[interfaces.ts:19](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L19) +[interfaces.ts:19](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L19) *** @@ -34,7 +34,7 @@ #### Defined in -[interfaces.ts:14](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L14) +[interfaces.ts:14](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L14) *** @@ -44,7 +44,7 @@ #### Defined in -[interfaces.ts:17](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L17) +[interfaces.ts:17](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L17) *** @@ -54,7 +54,7 @@ #### Defined in -[interfaces.ts:13](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L13) +[interfaces.ts:13](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L13) *** @@ -64,7 +64,7 @@ #### Defined in -[interfaces.ts:16](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L16) +[interfaces.ts:16](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L16) *** @@ -74,7 +74,7 @@ #### Defined in -[interfaces.ts:31](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L31) +[interfaces.ts:31](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L31) *** @@ -84,7 +84,7 @@ #### Defined in -[interfaces.ts:11](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L11) +[interfaces.ts:11](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L11) *** @@ -94,7 +94,7 @@ #### Defined in -[interfaces.ts:21](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L21) +[interfaces.ts:21](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L21) *** @@ -104,7 +104,7 @@ #### Defined in -[interfaces.ts:10](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L10) +[interfaces.ts:10](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L10) *** @@ -114,7 +114,7 @@ #### Defined in -[interfaces.ts:26](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L26) +[interfaces.ts:26](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L26) *** @@ -124,7 +124,7 @@ #### Defined in -[interfaces.ts:15](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L15) +[interfaces.ts:15](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L15) *** @@ -134,7 +134,7 @@ #### Defined in -[interfaces.ts:30](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L30) +[interfaces.ts:30](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L30) *** @@ -144,7 +144,7 @@ #### Defined in -[interfaces.ts:22](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L22) +[interfaces.ts:22](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L22) *** @@ -154,7 +154,7 @@ #### Defined in -[interfaces.ts:28](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L28) +[interfaces.ts:28](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L28) *** @@ -164,7 +164,7 @@ #### Defined in -[interfaces.ts:27](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L27) +[interfaces.ts:27](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L27) *** @@ -174,7 +174,7 @@ #### Defined in -[interfaces.ts:29](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L29) +[interfaces.ts:29](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L29) *** @@ -184,7 +184,7 @@ #### Defined in -[interfaces.ts:18](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L18) +[interfaces.ts:18](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L18) *** @@ -194,7 +194,7 @@ #### Defined in -[interfaces.ts:20](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L20) +[interfaces.ts:20](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L20) *** @@ -204,7 +204,7 @@ #### Defined in -[interfaces.ts:25](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L25) +[interfaces.ts:25](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L25) *** @@ -214,7 +214,7 @@ #### Defined in -[interfaces.ts:23](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L23) +[interfaces.ts:23](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L23) *** @@ -224,4 +224,4 @@ #### Defined in -[interfaces.ts:24](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L24) +[interfaces.ts:24](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L24) diff --git a/docs/sdk/typescript/interfaces/interfaces/ILeaderSubgraph.md b/docs/sdk/typescript/interfaces/interfaces/ILeaderSubgraph.md index ebed266c8f..b75c7167da 100644 --- a/docs/sdk/typescript/interfaces/interfaces/ILeaderSubgraph.md +++ b/docs/sdk/typescript/interfaces/interfaces/ILeaderSubgraph.md @@ -22,7 +22,7 @@ #### Defined in -[interfaces.ts:12](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L12) +[interfaces.ts:12](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L12) *** @@ -36,7 +36,7 @@ #### Defined in -[interfaces.ts:19](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L19) +[interfaces.ts:19](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L19) *** @@ -50,7 +50,7 @@ #### Defined in -[interfaces.ts:14](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L14) +[interfaces.ts:14](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L14) *** @@ -64,7 +64,7 @@ #### Defined in -[interfaces.ts:17](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L17) +[interfaces.ts:17](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L17) *** @@ -78,7 +78,7 @@ #### Defined in -[interfaces.ts:13](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L13) +[interfaces.ts:13](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L13) *** @@ -92,7 +92,7 @@ #### Defined in -[interfaces.ts:16](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L16) +[interfaces.ts:16](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L16) *** @@ -106,7 +106,7 @@ #### Defined in -[interfaces.ts:31](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L31) +[interfaces.ts:31](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L31) *** @@ -120,7 +120,7 @@ #### Defined in -[interfaces.ts:21](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L21) +[interfaces.ts:21](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L21) *** @@ -134,7 +134,7 @@ #### Defined in -[interfaces.ts:10](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L10) +[interfaces.ts:10](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L10) *** @@ -144,7 +144,7 @@ #### Defined in -[interfaces.ts:36](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L36) +[interfaces.ts:36](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L36) *** @@ -158,7 +158,7 @@ #### Defined in -[interfaces.ts:15](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L15) +[interfaces.ts:15](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L15) *** @@ -172,7 +172,7 @@ #### Defined in -[interfaces.ts:30](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L30) +[interfaces.ts:30](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L30) *** @@ -186,7 +186,7 @@ #### Defined in -[interfaces.ts:22](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L22) +[interfaces.ts:22](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L22) *** @@ -200,7 +200,7 @@ #### Defined in -[interfaces.ts:28](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L28) +[interfaces.ts:28](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L28) *** @@ -214,7 +214,7 @@ #### Defined in -[interfaces.ts:27](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L27) +[interfaces.ts:27](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L27) *** @@ -224,7 +224,7 @@ #### Defined in -[interfaces.ts:37](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L37) +[interfaces.ts:37](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L37) *** @@ -238,7 +238,7 @@ #### Defined in -[interfaces.ts:18](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L18) +[interfaces.ts:18](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L18) *** @@ -252,7 +252,7 @@ #### Defined in -[interfaces.ts:20](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L20) +[interfaces.ts:20](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L20) *** @@ -266,7 +266,7 @@ #### Defined in -[interfaces.ts:25](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L25) +[interfaces.ts:25](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L25) *** @@ -280,7 +280,7 @@ #### Defined in -[interfaces.ts:23](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L23) +[interfaces.ts:23](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L23) *** @@ -294,4 +294,4 @@ #### Defined in -[interfaces.ts:24](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L24) +[interfaces.ts:24](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L24) diff --git a/docs/sdk/typescript/interfaces/interfaces/ILeadersFilter.md b/docs/sdk/typescript/interfaces/interfaces/ILeadersFilter.md index 29aeaa662c..6fe7065ace 100644 --- a/docs/sdk/typescript/interfaces/interfaces/ILeadersFilter.md +++ b/docs/sdk/typescript/interfaces/interfaces/ILeadersFilter.md @@ -18,7 +18,7 @@ #### Defined in -[interfaces.ts:41](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L41) +[interfaces.ts:41](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L41) *** @@ -32,7 +32,7 @@ #### Defined in -[interfaces.ts:157](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L157) +[interfaces.ts:157](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L157) *** @@ -42,7 +42,7 @@ #### Defined in -[interfaces.ts:43](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L43) +[interfaces.ts:43](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L43) *** @@ -52,7 +52,7 @@ #### Defined in -[interfaces.ts:44](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L44) +[interfaces.ts:44](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L44) *** @@ -66,7 +66,7 @@ #### Defined in -[interfaces.ts:159](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L159) +[interfaces.ts:159](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L159) *** @@ -76,7 +76,7 @@ #### Defined in -[interfaces.ts:42](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L42) +[interfaces.ts:42](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L42) *** @@ -90,4 +90,4 @@ #### Defined in -[interfaces.ts:158](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L158) +[interfaces.ts:158](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L158) diff --git a/docs/sdk/typescript/interfaces/interfaces/IOperator.md b/docs/sdk/typescript/interfaces/interfaces/IOperator.md index 51b089d8d0..99424397bb 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IOperator.md +++ b/docs/sdk/typescript/interfaces/interfaces/IOperator.md @@ -14,7 +14,7 @@ #### Defined in -[interfaces.ts:59](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L59) +[interfaces.ts:59](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L59) *** @@ -24,7 +24,7 @@ #### Defined in -[interfaces.ts:62](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L62) +[interfaces.ts:62](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L62) *** @@ -34,7 +34,7 @@ #### Defined in -[interfaces.ts:64](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L64) +[interfaces.ts:64](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L64) *** @@ -44,7 +44,7 @@ #### Defined in -[interfaces.ts:63](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L63) +[interfaces.ts:63](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L63) *** @@ -54,7 +54,7 @@ #### Defined in -[interfaces.ts:60](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L60) +[interfaces.ts:60](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L60) *** @@ -64,4 +64,4 @@ #### Defined in -[interfaces.ts:61](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L61) +[interfaces.ts:61](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L61) diff --git a/docs/sdk/typescript/interfaces/interfaces/IOperatorSubgraph.md b/docs/sdk/typescript/interfaces/interfaces/IOperatorSubgraph.md index af2ff49483..a243741df2 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IOperatorSubgraph.md +++ b/docs/sdk/typescript/interfaces/interfaces/IOperatorSubgraph.md @@ -22,7 +22,7 @@ #### Defined in -[interfaces.ts:59](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L59) +[interfaces.ts:59](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L59) *** @@ -32,7 +32,7 @@ #### Defined in -[interfaces.ts:68](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L68) +[interfaces.ts:68](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L68) *** @@ -46,7 +46,7 @@ #### Defined in -[interfaces.ts:64](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L64) +[interfaces.ts:64](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L64) *** @@ -60,7 +60,7 @@ #### Defined in -[interfaces.ts:63](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L63) +[interfaces.ts:63](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L63) *** @@ -74,7 +74,7 @@ #### Defined in -[interfaces.ts:60](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L60) +[interfaces.ts:60](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L60) *** @@ -88,4 +88,4 @@ #### Defined in -[interfaces.ts:61](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L61) +[interfaces.ts:61](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L61) diff --git a/docs/sdk/typescript/interfaces/interfaces/IPagination.md b/docs/sdk/typescript/interfaces/interfaces/IPagination.md index c80f2318b0..05bfb447ad 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IPagination.md +++ b/docs/sdk/typescript/interfaces/interfaces/IPagination.md @@ -22,7 +22,7 @@ #### Defined in -[interfaces.ts:157](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L157) +[interfaces.ts:157](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L157) *** @@ -32,7 +32,7 @@ #### Defined in -[interfaces.ts:159](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L159) +[interfaces.ts:159](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L159) *** @@ -42,4 +42,4 @@ #### Defined in -[interfaces.ts:158](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L158) +[interfaces.ts:158](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L158) diff --git a/docs/sdk/typescript/interfaces/interfaces/IPayoutFilter.md b/docs/sdk/typescript/interfaces/interfaces/IPayoutFilter.md index db620b4f11..ee57224799 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IPayoutFilter.md +++ b/docs/sdk/typescript/interfaces/interfaces/IPayoutFilter.md @@ -14,7 +14,7 @@ #### Defined in -[interfaces.ts:111](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L111) +[interfaces.ts:111](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L111) *** @@ -24,7 +24,7 @@ #### Defined in -[interfaces.ts:113](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L113) +[interfaces.ts:113](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L113) *** @@ -34,7 +34,7 @@ #### Defined in -[interfaces.ts:112](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L112) +[interfaces.ts:112](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L112) *** @@ -44,4 +44,4 @@ #### Defined in -[interfaces.ts:114](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L114) +[interfaces.ts:114](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L114) diff --git a/docs/sdk/typescript/interfaces/interfaces/IReputationNetwork.md b/docs/sdk/typescript/interfaces/interfaces/IReputationNetwork.md index 0b328a7d99..455a32bd5d 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IReputationNetwork.md +++ b/docs/sdk/typescript/interfaces/interfaces/IReputationNetwork.md @@ -14,7 +14,7 @@ #### Defined in -[interfaces.ts:49](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L49) +[interfaces.ts:49](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L49) *** @@ -24,7 +24,7 @@ #### Defined in -[interfaces.ts:48](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L48) +[interfaces.ts:48](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L48) *** @@ -34,4 +34,4 @@ #### Defined in -[interfaces.ts:50](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L50) +[interfaces.ts:50](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L50) diff --git a/docs/sdk/typescript/interfaces/interfaces/IReputationNetworkSubgraph.md b/docs/sdk/typescript/interfaces/interfaces/IReputationNetworkSubgraph.md index 6439fc1153..0f0c107df0 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IReputationNetworkSubgraph.md +++ b/docs/sdk/typescript/interfaces/interfaces/IReputationNetworkSubgraph.md @@ -22,7 +22,7 @@ #### Defined in -[interfaces.ts:49](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L49) +[interfaces.ts:49](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L49) *** @@ -36,7 +36,7 @@ #### Defined in -[interfaces.ts:48](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L48) +[interfaces.ts:48](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L48) *** @@ -46,4 +46,4 @@ #### Defined in -[interfaces.ts:55](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L55) +[interfaces.ts:55](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L55) diff --git a/docs/sdk/typescript/interfaces/interfaces/IReward.md b/docs/sdk/typescript/interfaces/interfaces/IReward.md index 7caf428800..cf372790c4 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IReward.md +++ b/docs/sdk/typescript/interfaces/interfaces/IReward.md @@ -14,7 +14,7 @@ #### Defined in -[interfaces.ts:6](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L6) +[interfaces.ts:6](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L6) *** @@ -24,4 +24,4 @@ #### Defined in -[interfaces.ts:5](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L5) +[interfaces.ts:5](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L5) diff --git a/docs/sdk/typescript/interfaces/interfaces/IStatisticsFilter.md b/docs/sdk/typescript/interfaces/interfaces/IStatisticsFilter.md index 4ecd62e17e..3d5214863a 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IStatisticsFilter.md +++ b/docs/sdk/typescript/interfaces/interfaces/IStatisticsFilter.md @@ -22,7 +22,7 @@ #### Defined in -[interfaces.ts:157](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L157) +[interfaces.ts:157](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L157) *** @@ -32,7 +32,7 @@ #### Defined in -[interfaces.ts:102](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L102) +[interfaces.ts:102](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L102) *** @@ -46,7 +46,7 @@ #### Defined in -[interfaces.ts:159](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L159) +[interfaces.ts:159](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L159) *** @@ -60,7 +60,7 @@ #### Defined in -[interfaces.ts:158](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L158) +[interfaces.ts:158](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L158) *** @@ -70,4 +70,4 @@ #### Defined in -[interfaces.ts:103](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L103) +[interfaces.ts:103](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L103) diff --git a/docs/sdk/typescript/interfaces/interfaces/ITransaction.md b/docs/sdk/typescript/interfaces/interfaces/ITransaction.md index 1efbef2888..fb40c049e8 100644 --- a/docs/sdk/typescript/interfaces/interfaces/ITransaction.md +++ b/docs/sdk/typescript/interfaces/interfaces/ITransaction.md @@ -14,7 +14,7 @@ #### Defined in -[interfaces.ts:133](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L133) +[interfaces.ts:133](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L133) *** @@ -24,7 +24,7 @@ #### Defined in -[interfaces.ts:141](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L141) +[interfaces.ts:141](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L141) *** @@ -34,7 +34,7 @@ #### Defined in -[interfaces.ts:135](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L135) +[interfaces.ts:135](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L135) *** @@ -44,7 +44,7 @@ #### Defined in -[interfaces.ts:143](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L143) +[interfaces.ts:143](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L143) *** @@ -54,7 +54,7 @@ #### Defined in -[interfaces.ts:139](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L139) +[interfaces.ts:139](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L139) *** @@ -64,7 +64,7 @@ #### Defined in -[interfaces.ts:140](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L140) +[interfaces.ts:140](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L140) *** @@ -74,7 +74,7 @@ #### Defined in -[interfaces.ts:137](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L137) +[interfaces.ts:137](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L137) *** @@ -84,7 +84,7 @@ #### Defined in -[interfaces.ts:136](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L136) +[interfaces.ts:136](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L136) *** @@ -94,7 +94,7 @@ #### Defined in -[interfaces.ts:142](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L142) +[interfaces.ts:142](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L142) *** @@ -104,7 +104,7 @@ #### Defined in -[interfaces.ts:134](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L134) +[interfaces.ts:134](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L134) *** @@ -114,4 +114,4 @@ #### Defined in -[interfaces.ts:138](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L138) +[interfaces.ts:138](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L138) diff --git a/docs/sdk/typescript/interfaces/interfaces/ITransactionsFilter.md b/docs/sdk/typescript/interfaces/interfaces/ITransactionsFilter.md index 156fb1b79a..17a496035f 100644 --- a/docs/sdk/typescript/interfaces/interfaces/ITransactionsFilter.md +++ b/docs/sdk/typescript/interfaces/interfaces/ITransactionsFilter.md @@ -18,7 +18,7 @@ #### Defined in -[interfaces.ts:147](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L147) +[interfaces.ts:147](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L147) *** @@ -28,7 +28,7 @@ #### Defined in -[interfaces.ts:149](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L149) +[interfaces.ts:149](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L149) *** @@ -38,7 +38,7 @@ #### Defined in -[interfaces.ts:151](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L151) +[interfaces.ts:151](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L151) *** @@ -52,7 +52,7 @@ #### Defined in -[interfaces.ts:157](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L157) +[interfaces.ts:157](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L157) *** @@ -62,7 +62,7 @@ #### Defined in -[interfaces.ts:152](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L152) +[interfaces.ts:152](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L152) *** @@ -76,7 +76,7 @@ #### Defined in -[interfaces.ts:159](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L159) +[interfaces.ts:159](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L159) *** @@ -90,7 +90,7 @@ #### Defined in -[interfaces.ts:158](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L158) +[interfaces.ts:158](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L158) *** @@ -100,7 +100,7 @@ #### Defined in -[interfaces.ts:148](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L148) +[interfaces.ts:148](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L148) *** @@ -110,7 +110,7 @@ #### Defined in -[interfaces.ts:150](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L150) +[interfaces.ts:150](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L150) *** @@ -120,4 +120,4 @@ #### Defined in -[interfaces.ts:153](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L153) +[interfaces.ts:153](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L153) diff --git a/docs/sdk/typescript/interfaces/interfaces/InternalTransaction.md b/docs/sdk/typescript/interfaces/interfaces/InternalTransaction.md index 990e9a11f0..d923973e8d 100644 --- a/docs/sdk/typescript/interfaces/interfaces/InternalTransaction.md +++ b/docs/sdk/typescript/interfaces/interfaces/InternalTransaction.md @@ -14,7 +14,7 @@ #### Defined in -[interfaces.ts:128](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L128) +[interfaces.ts:128](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L128) *** @@ -24,7 +24,7 @@ #### Defined in -[interfaces.ts:123](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L123) +[interfaces.ts:123](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L123) *** @@ -34,7 +34,7 @@ #### Defined in -[interfaces.ts:126](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L126) +[interfaces.ts:126](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L126) *** @@ -44,7 +44,7 @@ #### Defined in -[interfaces.ts:127](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L127) +[interfaces.ts:127](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L127) *** @@ -54,7 +54,7 @@ #### Defined in -[interfaces.ts:124](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L124) +[interfaces.ts:124](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L124) *** @@ -64,7 +64,7 @@ #### Defined in -[interfaces.ts:129](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L129) +[interfaces.ts:129](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L129) *** @@ -74,4 +74,4 @@ #### Defined in -[interfaces.ts:125](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L125) +[interfaces.ts:125](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L125) diff --git a/docs/sdk/typescript/interfaces/interfaces/StakerInfo.md b/docs/sdk/typescript/interfaces/interfaces/StakerInfo.md index bad5b6654e..5b50eee97a 100644 --- a/docs/sdk/typescript/interfaces/interfaces/StakerInfo.md +++ b/docs/sdk/typescript/interfaces/interfaces/StakerInfo.md @@ -14,7 +14,7 @@ #### Defined in -[interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) +[interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) *** @@ -24,7 +24,7 @@ #### Defined in -[interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) +[interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) *** @@ -34,7 +34,7 @@ #### Defined in -[interfaces.ts:163](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L163) +[interfaces.ts:163](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L163) *** @@ -44,4 +44,4 @@ #### Defined in -[interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) +[interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) diff --git a/docs/sdk/typescript/kvstore/classes/KVStoreClient.md b/docs/sdk/typescript/kvstore/classes/KVStoreClient.md index c5bdd2ab67..060c23824f 100644 --- a/docs/sdk/typescript/kvstore/classes/KVStoreClient.md +++ b/docs/sdk/typescript/kvstore/classes/KVStoreClient.md @@ -110,7 +110,7 @@ The network information required to connect to the KVStore contract #### Defined in -[kvstore.ts:108](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L108) +[kvstore.ts:108](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L108) ## Properties @@ -124,7 +124,7 @@ The network information required to connect to the KVStore contract #### Defined in -[base.ts:12](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12) +[base.ts:12](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12) *** @@ -138,7 +138,7 @@ The network information required to connect to the KVStore contract #### Defined in -[base.ts:11](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L11) +[base.ts:11](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L11) ## Methods @@ -194,7 +194,7 @@ await kvstoreClient.set('Role', 'RecordingOracle'); #### Defined in -[kvstore.ts:171](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L171) +[kvstore.ts:171](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L171) *** @@ -252,7 +252,7 @@ await kvstoreClient.setBulk(keys, values); #### Defined in -[kvstore.ts:214](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L214) +[kvstore.ts:214](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L214) *** @@ -307,7 +307,7 @@ await kvstoreClient.setFileUrlAndHash('linkedin.com/example', 'linkedin_url'); #### Defined in -[kvstore.ts:257](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L257) +[kvstore.ts:257](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L257) *** @@ -341,4 +341,4 @@ The Runner object to interact with the Ethereum network #### Defined in -[kvstore.ts:126](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L126) +[kvstore.ts:126](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L126) diff --git a/docs/sdk/typescript/kvstore/classes/KVStoreUtils.md b/docs/sdk/typescript/kvstore/classes/KVStoreUtils.md index 32a75b9523..e53deea390 100644 --- a/docs/sdk/typescript/kvstore/classes/KVStoreUtils.md +++ b/docs/sdk/typescript/kvstore/classes/KVStoreUtils.md @@ -108,7 +108,7 @@ console.log(value); #### Defined in -[kvstore.ts:389](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L389) +[kvstore.ts:389](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L389) *** @@ -158,7 +158,7 @@ console.log(url); #### Defined in -[kvstore.ts:436](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L436) +[kvstore.ts:436](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L436) *** @@ -207,7 +207,7 @@ console.log(kvStoreData); #### Defined in -[kvstore.ts:337](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L337) +[kvstore.ts:337](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L337) *** @@ -251,4 +251,4 @@ console.log(publicKey); #### Defined in -[kvstore.ts:496](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L496) +[kvstore.ts:496](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L496) diff --git a/docs/sdk/typescript/operator/classes/OperatorUtils.md b/docs/sdk/typescript/operator/classes/OperatorUtils.md index ef537adb80..4dbbc249d5 100644 --- a/docs/sdk/typescript/operator/classes/OperatorUtils.md +++ b/docs/sdk/typescript/operator/classes/OperatorUtils.md @@ -54,7 +54,7 @@ const leader = await OperatorUtils.getLeader(ChainId.POLYGON_AMOY, '0x62dD51230A #### Defined in -[operator.ts:44](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/operator.ts#L44) +[operator.ts:44](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/operator.ts#L44) *** @@ -91,7 +91,7 @@ const leaders = await OperatorUtils.getLeaders(filter); #### Defined in -[operator.ts:107](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/operator.ts#L107) +[operator.ts:107](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/operator.ts#L107) *** @@ -137,7 +137,7 @@ const operators = await OperatorUtils.getReputationNetworkOperators(ChainId.POLY #### Defined in -[operator.ts:186](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/operator.ts#L186) +[operator.ts:186](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/operator.ts#L186) *** @@ -177,4 +177,4 @@ const rewards = await OperatorUtils.getRewards(ChainId.POLYGON_AMOY, '0x62dD5123 #### Defined in -[operator.ts:236](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/operator.ts#L236) +[operator.ts:236](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/operator.ts#L236) diff --git a/docs/sdk/typescript/staking/classes/StakingClient.md b/docs/sdk/typescript/staking/classes/StakingClient.md index d91a75d514..5ca5d949a7 100644 --- a/docs/sdk/typescript/staking/classes/StakingClient.md +++ b/docs/sdk/typescript/staking/classes/StakingClient.md @@ -110,7 +110,7 @@ The network information required to connect to the Staking contract #### Defined in -[staking.ts:108](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L108) +[staking.ts:108](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L108) ## Properties @@ -120,7 +120,7 @@ The network information required to connect to the Staking contract #### Defined in -[staking.ts:100](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L100) +[staking.ts:100](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L100) *** @@ -134,7 +134,7 @@ The network information required to connect to the Staking contract #### Defined in -[base.ts:12](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12) +[base.ts:12](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12) *** @@ -148,7 +148,7 @@ The network information required to connect to the Staking contract #### Defined in -[base.ts:11](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L11) +[base.ts:11](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L11) *** @@ -158,7 +158,7 @@ The network information required to connect to the Staking contract #### Defined in -[staking.ts:99](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L99) +[staking.ts:99](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L99) *** @@ -168,7 +168,7 @@ The network information required to connect to the Staking contract #### Defined in -[staking.ts:98](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L98) +[staking.ts:98](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L98) ## Methods @@ -217,7 +217,7 @@ await stakingClient.approveStake(amount); #### Defined in -[staking.ts:193](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L193) +[staking.ts:193](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L193) *** @@ -255,7 +255,7 @@ console.log(stakingInfo.tokensStaked); #### Defined in -[staking.ts:435](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L435) +[staking.ts:435](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L435) *** @@ -322,7 +322,7 @@ await stakingClient.slash('0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266', '0xf39Fd #### Defined in -[staking.ts:373](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L373) +[staking.ts:373](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L373) *** @@ -374,7 +374,7 @@ await stakingClient.stake(amount); #### Defined in -[staking.ts:247](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L247) +[staking.ts:247](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L247) *** @@ -425,7 +425,7 @@ await stakingClient.unstake(amount); #### Defined in -[staking.ts:291](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L291) +[staking.ts:291](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L291) *** @@ -469,7 +469,7 @@ await stakingClient.withdraw(); #### Defined in -[staking.ts:336](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L336) +[staking.ts:336](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L336) *** @@ -503,4 +503,4 @@ The Runner object to interact with the Ethereum network #### Defined in -[staking.ts:136](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L136) +[staking.ts:136](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L136) diff --git a/docs/sdk/typescript/statistics/classes/StatisticsClient.md b/docs/sdk/typescript/statistics/classes/StatisticsClient.md index 6e40cf6c43..137738ee0b 100644 --- a/docs/sdk/typescript/statistics/classes/StatisticsClient.md +++ b/docs/sdk/typescript/statistics/classes/StatisticsClient.md @@ -59,7 +59,7 @@ The network information required to connect to the Statistics contract #### Defined in -[statistics.ts:67](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L67) +[statistics.ts:67](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L67) ## Properties @@ -69,7 +69,7 @@ The network information required to connect to the Statistics contract #### Defined in -[statistics.ts:59](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L59) +[statistics.ts:59](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L59) *** @@ -79,7 +79,7 @@ The network information required to connect to the Statistics contract #### Defined in -[statistics.ts:60](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L60) +[statistics.ts:60](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L60) ## Methods @@ -147,7 +147,7 @@ const escrowStatisticsApril = await statisticsClient.getEscrowStatistics({ #### Defined in -[statistics.ts:120](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L120) +[statistics.ts:120](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L120) *** @@ -214,7 +214,7 @@ console.log('HMT statistics from 5/8 - 6/8:', hmtStatisticsRange); #### Defined in -[statistics.ts:478](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L478) +[statistics.ts:478](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L478) *** @@ -259,7 +259,7 @@ console.log('HMT holders:', hmtHolders.map((h) => ({ #### Defined in -[statistics.ts:407](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L407) +[statistics.ts:407](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L407) *** @@ -300,7 +300,7 @@ console.log('HMT statistics:', { #### Defined in -[statistics.ts:364](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L364) +[statistics.ts:364](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L364) *** @@ -386,7 +386,7 @@ console.log( #### Defined in -[statistics.ts:300](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L300) +[statistics.ts:300](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L300) *** @@ -449,4 +449,4 @@ const workerStatisticsApril = await statisticsClient.getWorkerStatistics({ #### Defined in -[statistics.ts:204](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L204) +[statistics.ts:204](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L204) diff --git a/docs/sdk/typescript/storage/classes/StorageClient.md b/docs/sdk/typescript/storage/classes/StorageClient.md index 4df4e4d2a7..351a9b5ed5 100644 --- a/docs/sdk/typescript/storage/classes/StorageClient.md +++ b/docs/sdk/typescript/storage/classes/StorageClient.md @@ -81,7 +81,7 @@ Optional. Cloud storage access data. If credentials are not provided - use anony #### Defined in -[storage.ts:73](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L73) +[storage.ts:73](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L73) ## Methods @@ -127,7 +127,7 @@ const exists = await storageClient.bucketExists('bucket-name'); #### Defined in -[storage.ts:262](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L262) +[storage.ts:262](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L262) *** @@ -177,7 +177,7 @@ const files = await storageClient.downloadFiles(keys, 'bucket-name'); #### Defined in -[storage.ts:112](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L112) +[storage.ts:112](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L112) *** @@ -223,7 +223,7 @@ const fileNames = await storageClient.listObjects('bucket-name'); #### Defined in -[storage.ts:292](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L292) +[storage.ts:292](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L292) *** @@ -278,7 +278,7 @@ const uploadedFiles = await storageClient.uploadFiles(files, 'bucket-name'); #### Defined in -[storage.ts:198](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L198) +[storage.ts:198](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L198) *** @@ -312,4 +312,4 @@ const file = await StorageClient.downloadFileFromUrl('http://localhost/file.json #### Defined in -[storage.ts:146](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L146) +[storage.ts:146](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L146) diff --git a/docs/sdk/typescript/transaction/classes/TransactionUtils.md b/docs/sdk/typescript/transaction/classes/TransactionUtils.md index 05d79aa710..7b9069e563 100644 --- a/docs/sdk/typescript/transaction/classes/TransactionUtils.md +++ b/docs/sdk/typescript/transaction/classes/TransactionUtils.md @@ -54,7 +54,7 @@ const transaction = await TransactionUtils.getTransaction(ChainId.POLYGON, '0x62 #### Defined in -[transaction.ts:34](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/transaction.ts#L34) +[transaction.ts:34](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/transaction.ts#L34) *** @@ -127,4 +127,4 @@ const transactions = await TransactionUtils.getTransactions(filter); #### Defined in -[transaction.ts:109](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/transaction.ts#L109) +[transaction.ts:109](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/transaction.ts#L109) diff --git a/docs/sdk/typescript/types/enumerations/EscrowStatus.md b/docs/sdk/typescript/types/enumerations/EscrowStatus.md index fc741bbebc..055e93321c 100644 --- a/docs/sdk/typescript/types/enumerations/EscrowStatus.md +++ b/docs/sdk/typescript/types/enumerations/EscrowStatus.md @@ -18,7 +18,7 @@ Escrow is cancelled. #### Defined in -[types.ts:32](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L32) +[types.ts:32](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L32) *** @@ -30,7 +30,7 @@ Escrow is finished. #### Defined in -[types.ts:28](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L28) +[types.ts:28](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L28) *** @@ -42,7 +42,7 @@ Escrow is launched. #### Defined in -[types.ts:12](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L12) +[types.ts:12](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L12) *** @@ -54,7 +54,7 @@ Escrow is fully paid. #### Defined in -[types.ts:24](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L24) +[types.ts:24](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L24) *** @@ -66,7 +66,7 @@ Escrow is partially paid out. #### Defined in -[types.ts:20](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L20) +[types.ts:20](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L20) *** @@ -78,4 +78,4 @@ Escrow is funded, and waiting for the results to be submitted. #### Defined in -[types.ts:16](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L16) +[types.ts:16](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L16) diff --git a/docs/sdk/typescript/types/type-aliases/EscrowCancel.md b/docs/sdk/typescript/types/type-aliases/EscrowCancel.md index 1676b13f50..2c7f364fa8 100644 --- a/docs/sdk/typescript/types/type-aliases/EscrowCancel.md +++ b/docs/sdk/typescript/types/type-aliases/EscrowCancel.md @@ -26,4 +26,4 @@ The hash of the transaction associated with the escrow cancellation. ## Defined in -[types.ts:145](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L145) +[types.ts:145](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L145) diff --git a/docs/sdk/typescript/types/type-aliases/EscrowWithdraw.md b/docs/sdk/typescript/types/type-aliases/EscrowWithdraw.md index f3220c7b97..4c0cf0f8e9 100644 --- a/docs/sdk/typescript/types/type-aliases/EscrowWithdraw.md +++ b/docs/sdk/typescript/types/type-aliases/EscrowWithdraw.md @@ -32,4 +32,4 @@ The hash of the transaction associated with the escrow withdrawal. ## Defined in -[types.ts:159](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L159) +[types.ts:159](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L159) diff --git a/docs/sdk/typescript/types/type-aliases/NetworkData.md b/docs/sdk/typescript/types/type-aliases/NetworkData.md index c4868e5bca..9561a9c2f7 100644 --- a/docs/sdk/typescript/types/type-aliases/NetworkData.md +++ b/docs/sdk/typescript/types/type-aliases/NetworkData.md @@ -80,4 +80,4 @@ Network title ## Defined in -[types.ts:95](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L95) +[types.ts:95](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L95) diff --git a/docs/sdk/typescript/types/type-aliases/StorageCredentials.md b/docs/sdk/typescript/types/type-aliases/StorageCredentials.md index bafad2f7cc..f5e299a268 100644 --- a/docs/sdk/typescript/types/type-aliases/StorageCredentials.md +++ b/docs/sdk/typescript/types/type-aliases/StorageCredentials.md @@ -30,4 +30,4 @@ StorageClient is deprecated. Use Minio.Client directly. ## Defined in -[types.ts:40](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L40) +[types.ts:40](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L40) diff --git a/docs/sdk/typescript/types/type-aliases/StorageParams.md b/docs/sdk/typescript/types/type-aliases/StorageParams.md index db84f3120f..ba6e11413e 100644 --- a/docs/sdk/typescript/types/type-aliases/StorageParams.md +++ b/docs/sdk/typescript/types/type-aliases/StorageParams.md @@ -40,4 +40,4 @@ StorageClient is deprecated. Use Minio.Client directly. ## Defined in -[types.ts:54](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L54) +[types.ts:54](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L54) diff --git a/docs/sdk/typescript/types/type-aliases/TransactionLikeWithNonce.md b/docs/sdk/typescript/types/type-aliases/TransactionLikeWithNonce.md index 293495cfef..cb594d9ca8 100644 --- a/docs/sdk/typescript/types/type-aliases/TransactionLikeWithNonce.md +++ b/docs/sdk/typescript/types/type-aliases/TransactionLikeWithNonce.md @@ -16,4 +16,4 @@ ## Defined in -[types.ts:174](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L174) +[types.ts:174](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L174) diff --git a/docs/sdk/typescript/types/type-aliases/UploadFile.md b/docs/sdk/typescript/types/type-aliases/UploadFile.md index 41fa5e3947..d1a8d0f74e 100644 --- a/docs/sdk/typescript/types/type-aliases/UploadFile.md +++ b/docs/sdk/typescript/types/type-aliases/UploadFile.md @@ -32,4 +32,4 @@ Uploaded object URL ## Defined in -[types.ts:77](https://github.com/humanprotocol/human-protocol/blob/3ddf95c166a160d89d0a36078325a2fc8283f02c/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L77) +[types.ts:77](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L77) diff --git a/packages/apps/dashboard/server/src/common/config/network-config.service.ts b/packages/apps/dashboard/server/src/common/config/network-config.service.ts index 6437fbacdd..82805f0fb8 100644 --- a/packages/apps/dashboard/server/src/common/config/network-config.service.ts +++ b/packages/apps/dashboard/server/src/common/config/network-config.service.ts @@ -62,24 +62,6 @@ export class NetworkConfigService { rpcUrl: this.configService.get('RPC_URL_BSC_TESTNET'), }, }), - ...(this.configService.get('RPC_URL_MOONBEAM') && { - moonbeam: { - chainId: ChainId.MOONBEAM, - rpcUrl: this.configService.get('RPC_URL_MOONBEAM'), - }, - }), - ...(this.configService.get('RPC_URL_XLAYER_TESTNET') && { - xlayertestnet: { - chainId: ChainId.XLAYER_TESTNET, - rpcUrl: this.configService.get('RPC_URL_XLAYER_TESTNET'), - }, - }), - ...(this.configService.get('RPC_URL_XLAYER') && { - xlayer: { - chainId: ChainId.XLAYER, - rpcUrl: this.configService.get('RPC_URL_XLAYER'), - }, - }), ...(this.configService.get('RPC_URL_LOCALHOST') && { localhost: { chainId: ChainId.LOCALHOST, diff --git a/packages/apps/faucet/client/src/constants/index.ts b/packages/apps/faucet/client/src/constants/index.ts index 8ee6eadd11..60ad7fbdfb 100644 --- a/packages/apps/faucet/client/src/constants/index.ts +++ b/packages/apps/faucet/client/src/constants/index.ts @@ -4,8 +4,4 @@ export const FAUCET_CHAIN_IDS = [ ChainId.SEPOLIA, ChainId.BSC_TESTNET, ChainId.POLYGON_AMOY, - ChainId.MOONBASE_ALPHA, - ChainId.AVALANCHE_TESTNET, - ChainId.CELO_ALFAJORES, - ChainId.XLAYER_TESTNET, ]; diff --git a/packages/apps/faucet/server/src/constants/networks.ts b/packages/apps/faucet/server/src/constants/networks.ts index d62293666f..e79f7ddb62 100644 --- a/packages/apps/faucet/server/src/constants/networks.ts +++ b/packages/apps/faucet/server/src/constants/networks.ts @@ -16,18 +16,6 @@ export const FAUCET_NETWORKS: { [ChainId.POLYGON_AMOY]: { rpcUrl: process.env.RPC_URL_POLYGON_AMOY || '', }, - [ChainId.MOONBASE_ALPHA]: { - rpcUrl: process.env.RPC_URL_MOONBASE_ALPHA || '', - }, - [ChainId.AVALANCHE_TESTNET]: { - rpcUrl: process.env.RPC_URL_AVALANCHE_TESTNET || '', - }, - [ChainId.CELO_ALFAJORES]: { - rpcUrl: process.env.RPC_URL_CELO_ALFAJORES || '', - }, - [ChainId.XLAYER_TESTNET]: { - rpcUrl: process.env.RPC_URL_XLAYER_TESTNET || '', - }, [ChainId.LOCALHOST]: { rpcUrl: process.env.RPC_PORT ? `http://127.0.0.1:${process.env.RPC_PORT}` diff --git a/packages/apps/fortune/exchange-oracle/client/src/constants/chains.ts b/packages/apps/fortune/exchange-oracle/client/src/constants/chains.ts index aecd68e9a9..7d7d5ffea3 100644 --- a/packages/apps/fortune/exchange-oracle/client/src/constants/chains.ts +++ b/packages/apps/fortune/exchange-oracle/client/src/constants/chains.ts @@ -14,7 +14,6 @@ switch (import.meta.env.VITE_APP_ENVIRONMENT.toLowerCase()) { ChainId.BSC_TESTNET, ChainId.POLYGON_AMOY, ChainId.SEPOLIA, - ChainId.XLAYER_TESTNET, ]; break; case 'localhost': diff --git a/packages/apps/fortune/exchange-oracle/server/src/common/config/network-config.service.ts b/packages/apps/fortune/exchange-oracle/server/src/common/config/network-config.service.ts index d414a012d2..416f8f1a67 100644 --- a/packages/apps/fortune/exchange-oracle/server/src/common/config/network-config.service.ts +++ b/packages/apps/fortune/exchange-oracle/server/src/common/config/network-config.service.ts @@ -62,24 +62,6 @@ export class NetworkConfigService { rpcUrl: this.configService.get('RPC_URL_BSC_TESTNET'), }, }), - ...(this.configService.get('RPC_URL_MOONBEAM') && { - moonbeam: { - chainId: ChainId.MOONBEAM, - /** - * The RPC URL for the Moonbeam network. - */ - rpcUrl: this.configService.get('RPC_URL_MOONBEAM'), - }, - }), - ...(this.configService.get('RPC_URL_XLAYER') && { - xLayer: { - chainId: ChainId.XLAYER, - /** - * The RPC URL for the XLayer network. - */ - rpcUrl: this.configService.get('RPC_URL_XLAYER'), - }, - }), ...(this.configService.get('RPC_URL_LOCALHOST') && { localhost: { chainId: ChainId.LOCALHOST, diff --git a/packages/apps/fortune/exchange-oracle/server/src/common/constant/index.ts b/packages/apps/fortune/exchange-oracle/server/src/common/constant/index.ts index 132258f27b..d083a54a22 100644 --- a/packages/apps/fortune/exchange-oracle/server/src/common/constant/index.ts +++ b/packages/apps/fortune/exchange-oracle/server/src/common/constant/index.ts @@ -14,7 +14,6 @@ export const TESTNET_CHAIN_IDS = [ export const MAINNET_CHAIN_IDS = [ ChainId.POLYGON, ChainId.BSC_MAINNET, - ChainId.MOONBEAM, ]; export const JWT_KVSTORE_KEY = 'jwt_public_key'; diff --git a/packages/apps/fortune/exchange-oracle/server/src/modules/assignment/assignment.controller.spec.ts b/packages/apps/fortune/exchange-oracle/server/src/modules/assignment/assignment.controller.spec.ts index 7594876b8e..50bb4303a2 100644 --- a/packages/apps/fortune/exchange-oracle/server/src/modules/assignment/assignment.controller.spec.ts +++ b/packages/apps/fortune/exchange-oracle/server/src/modules/assignment/assignment.controller.spec.ts @@ -40,7 +40,7 @@ describe('assignmentController', () => { describe('getAssignmentList', () => { it('should call assignmentService.getAssignmentList', async () => { const query: GetAssignmentsDto = { - chainId: 80001, + chainId: 80002, jobType: JobType.FORTUNE, escrowAddress: escrowAddress, status: AssignmentStatus.ACTIVE, @@ -73,7 +73,7 @@ describe('assignmentController', () => { describe('createAssignment', () => { it('should call assignmentService.createAssignment', async () => { const body: CreateAssignmentDto = { - chainId: 80001, + chainId: 80002, escrowAddress: escrowAddress, }; jest.spyOn(assignmentService, 'createAssignment').mockResolvedValue({ diff --git a/packages/apps/fortune/recording-oracle/src/common/config/network-config.service.ts b/packages/apps/fortune/recording-oracle/src/common/config/network-config.service.ts index a01fa50076..a2571f7619 100644 --- a/packages/apps/fortune/recording-oracle/src/common/config/network-config.service.ts +++ b/packages/apps/fortune/recording-oracle/src/common/config/network-config.service.ts @@ -62,15 +62,6 @@ export class NetworkConfigService { rpcUrl: this.configService.get('RPC_URL_BSC_TESTNET'), }, }), - ...(this.configService.get('RPC_URL_MOONBEAM') && { - moonbeam: { - chainId: ChainId.MOONBEAM, - /** - * The RPC URL for the Moonbeam network. - */ - rpcUrl: this.configService.get('RPC_URL_MOONBEAM'), - }, - }), ...(this.configService.get('RPC_URL_LOCALHOST') && { localhost: { chainId: ChainId.LOCALHOST, diff --git a/packages/apps/human-app/frontend/src/modules/smart-contracts/chains.ts b/packages/apps/human-app/frontend/src/modules/smart-contracts/chains.ts index 3dccd83c1e..107f8355d1 100644 --- a/packages/apps/human-app/frontend/src/modules/smart-contracts/chains.ts +++ b/packages/apps/human-app/frontend/src/modules/smart-contracts/chains.ts @@ -26,14 +26,7 @@ export type ChainWithAddresses = Chain & { export const TestnetChainsIds = [ ChainId.POLYGON_AMOY, ChainId.SEPOLIA, - ChainId.RINKEBY, - ChainId.GOERLI, ChainId.BSC_TESTNET, - ChainId.POLYGON_MUMBAI, - ChainId.MOONBASE_ALPHA, - ChainId.AVALANCHE_TESTNET, - ChainId.CELO_ALFAJORES, - ChainId.XLAYER_TESTNET, ChainId.LOCALHOST, ] as const; @@ -41,10 +34,6 @@ export const MainnetChainsIds = [ ChainId.POLYGON, ChainId.MAINNET, ChainId.BSC_MAINNET, - ChainId.MOONBEAM, - ChainId.AVALANCHE, - ChainId.CELO, - ChainId.XLAYER, ChainId.ALL, ] as const; diff --git a/packages/apps/human-app/server/src/common/config/environment-config.service.spec.ts b/packages/apps/human-app/server/src/common/config/environment-config.service.spec.ts index 09a419b3be..2e0b9e0a68 100644 --- a/packages/apps/human-app/server/src/common/config/environment-config.service.spec.ts +++ b/packages/apps/human-app/server/src/common/config/environment-config.service.spec.ts @@ -25,27 +25,27 @@ describe('EnvironmentConfigService', () => { }); it('should return an array of valid ChainIds when CHAIN_IDS_ENABLED is valid', () => { - (configService.getOrThrow as jest.Mock).mockReturnValue('1, 4, 80002'); + (configService.getOrThrow as jest.Mock).mockReturnValue('1, 11155111, 80002'); const result = service.chainIdsEnabled; expect(result).toEqual([ ChainId.MAINNET, - ChainId.RINKEBY, + ChainId.SEPOLIA, ChainId.POLYGON_AMOY, ]); }); it('should ignore invalid chain IDs and only return valid ChainIds', () => { (configService.getOrThrow as jest.Mock).mockReturnValue( - '1, 4, 99999, 80002', + '1, 11155111, 99999, 80002', ); const result = service.chainIdsEnabled; expect(result).toEqual([ ChainId.MAINNET, - ChainId.RINKEBY, + ChainId.SEPOLIA, ChainId.POLYGON_AMOY, ]); }); diff --git a/packages/apps/human-app/server/src/modules/oracle-discovery/spec/oracle-discovery.fixture.ts b/packages/apps/human-app/server/src/modules/oracle-discovery/spec/oracle-discovery.fixture.ts index 37dd12011d..ff121ffba7 100644 --- a/packages/apps/human-app/server/src/modules/oracle-discovery/spec/oracle-discovery.fixture.ts +++ b/packages/apps/human-app/server/src/modules/oracle-discovery/spec/oracle-discovery.fixture.ts @@ -39,7 +39,7 @@ const response3: DiscoveredOracle = { }; const response4: DiscoveredOracle = { address: '0xd83422155c058D78e4D5fB5f50E125F06eb39d', - chainId: ChainId.MOONBASE_ALPHA, + chainId: ChainId.BSC_TESTNET, role: 'role3', url: 'common-url', jobTypes: ['job-type-1', 'job-type-3', 'job-type-4'], diff --git a/packages/apps/human-app/server/src/modules/oracle-discovery/spec/oracle-discovery.service.spec.ts b/packages/apps/human-app/server/src/modules/oracle-discovery/spec/oracle-discovery.service.spec.ts index 5bbcc85dba..7d041cc051 100644 --- a/packages/apps/human-app/server/src/modules/oracle-discovery/spec/oracle-discovery.service.spec.ts +++ b/packages/apps/human-app/server/src/modules/oracle-discovery/spec/oracle-discovery.service.spec.ts @@ -30,7 +30,7 @@ jest.mock('@human-protocol/sdk', () => { describe('OracleDiscoveryService', () => { const EXCHANGE_ORACLE = 'Exchange Oracle'; - const EXPECTED_CHAIN_IDS = [ChainId.POLYGON_AMOY, ChainId.MOONBASE_ALPHA]; + const EXPECTED_CHAIN_IDS = [ChainId.POLYGON_AMOY, ChainId.BSC_TESTNET]; const REPUTATION_ORACLE_ADDRESS = 'the_oracle'; const TTL = '300'; const JOB_TYPES = 'job-type-1,job-type-2,job-type-3'; diff --git a/packages/apps/job-launcher/client/src/components/Icons/AvalancheIcon.tsx b/packages/apps/job-launcher/client/src/components/Icons/AvalancheIcon.tsx deleted file mode 100644 index 3bc44f307e..0000000000 --- a/packages/apps/job-launcher/client/src/components/Icons/AvalancheIcon.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon'; -import { FC } from 'react'; - -export const AvalancheIcon: FC = (props) => { - return ( - - - - - ); -}; diff --git a/packages/apps/job-launcher/client/src/components/Icons/CeloIcon.tsx b/packages/apps/job-launcher/client/src/components/Icons/CeloIcon.tsx deleted file mode 100644 index 4e217297a5..0000000000 --- a/packages/apps/job-launcher/client/src/components/Icons/CeloIcon.tsx +++ /dev/null @@ -1,13 +0,0 @@ -import SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon'; -import { FC } from 'react'; - -export const CeloIcon: FC = (props) => { - return ( - - - - ); -}; diff --git a/packages/apps/job-launcher/client/src/components/Icons/MoonbaseAlphaIcon.tsx b/packages/apps/job-launcher/client/src/components/Icons/MoonbaseAlphaIcon.tsx deleted file mode 100644 index 12f3e55cf8..0000000000 --- a/packages/apps/job-launcher/client/src/components/Icons/MoonbaseAlphaIcon.tsx +++ /dev/null @@ -1,69 +0,0 @@ -import SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon'; -import { FC } from 'react'; - -export const MoonbaseAlphaIcon: FC = (props) => { - return ( - - - - - - - - - - - - - - - - - - ); -}; diff --git a/packages/apps/job-launcher/client/src/components/Icons/MoonbeamIcon.tsx b/packages/apps/job-launcher/client/src/components/Icons/MoonbeamIcon.tsx deleted file mode 100644 index 920a23e75a..0000000000 --- a/packages/apps/job-launcher/client/src/components/Icons/MoonbeamIcon.tsx +++ /dev/null @@ -1,76 +0,0 @@ -import SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon'; -import { FC } from 'react'; - -export const MoonbeamIcon: FC = (props) => { - return ( - - - - - - - - - - - - - - - - - - - - - - - - - ); -}; diff --git a/packages/apps/job-launcher/client/src/components/Icons/OkxIcon.tsx b/packages/apps/job-launcher/client/src/components/Icons/OkxIcon.tsx deleted file mode 100644 index 45bd036fde..0000000000 --- a/packages/apps/job-launcher/client/src/components/Icons/OkxIcon.tsx +++ /dev/null @@ -1,13 +0,0 @@ -import SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon'; -import { FC } from 'react'; - -export const OkxIcon: FC = (props) => { - return ( - - - - ); -}; diff --git a/packages/apps/job-launcher/client/src/components/Icons/XLayerIcon.tsx b/packages/apps/job-launcher/client/src/components/Icons/XLayerIcon.tsx deleted file mode 100644 index 433dc6da35..0000000000 --- a/packages/apps/job-launcher/client/src/components/Icons/XLayerIcon.tsx +++ /dev/null @@ -1,45 +0,0 @@ -import SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon'; -import { FC } from 'react'; - -export const XLayerIcon: FC = (props) => { - return ( - - - - - - - - - - - - ); -}; diff --git a/packages/apps/job-launcher/client/src/components/Icons/chains.tsx b/packages/apps/job-launcher/client/src/components/Icons/chains.tsx index 96fa949352..10b628ef7a 100644 --- a/packages/apps/job-launcher/client/src/components/Icons/chains.tsx +++ b/packages/apps/job-launcher/client/src/components/Icons/chains.tsx @@ -1,35 +1,19 @@ import { ChainId } from '@human-protocol/sdk'; import { ReactElement } from 'react'; -import { AvalancheIcon } from './AvalancheIcon'; import { BinanceSmartChainIcon } from './BinanceSmartChainIcon'; -import { CeloIcon } from './CeloIcon'; import { EthereumIcon } from './EthereumIcon'; import { HumanIcon } from './HumanIcon'; -import { MoonbaseAlphaIcon } from './MoonbaseAlphaIcon'; -import { MoonbeamIcon } from './MoonbeamIcon'; -import { OkxIcon } from './OkxIcon'; import { PolygonIcon } from './PolygonIcon'; -import { XLayerIcon } from './XLayerIcon'; export const CHAIN_ICONS: { [chainId in ChainId]?: ReactElement } = { [ChainId.ALL]: , [ChainId.MAINNET]: , - [ChainId.GOERLI]: , [ChainId.SEPOLIA]: , [ChainId.POLYGON]: , - [ChainId.POLYGON_MUMBAI]: , [ChainId.POLYGON_AMOY]: , [ChainId.BSC_MAINNET]: , [ChainId.BSC_TESTNET]: , - [ChainId.MOONBEAM]: , - [ChainId.MOONBASE_ALPHA]: , - [ChainId.AVALANCHE]: , - [ChainId.AVALANCHE_TESTNET]: , - [ChainId.CELO]: , - [ChainId.CELO_ALFAJORES]: , - [ChainId.XLAYER_TESTNET]: , - [ChainId.XLAYER]: , }; export const TOKEN_ICONS: Record = { diff --git a/packages/apps/job-launcher/client/src/constants/chains.ts b/packages/apps/job-launcher/client/src/constants/chains.ts index 1e30ac8658..cf7f021d19 100644 --- a/packages/apps/job-launcher/client/src/constants/chains.ts +++ b/packages/apps/job-launcher/client/src/constants/chains.ts @@ -15,7 +15,6 @@ switch (import.meta.env.VITE_APP_ENVIRONMENT.toLowerCase()) { ChainId.BSC_TESTNET, ChainId.POLYGON_AMOY, ChainId.SEPOLIA, - ChainId.XLAYER_TESTNET, ]; break; case 'localhost': @@ -77,28 +76,7 @@ export const NETWORK_TOKENS: Record< }, [ChainId.ALL]: { hmt: NETWORKS[ChainId.ALL]?.hmtAddress }, [ChainId.MAINNET]: { hmt: NETWORKS[ChainId.MAINNET]?.hmtAddress }, - [ChainId.RINKEBY]: { hmt: NETWORKS[ChainId.RINKEBY]?.hmtAddress }, - [ChainId.GOERLI]: { hmt: NETWORKS[ChainId.GOERLI]?.hmtAddress }, [ChainId.BSC_MAINNET]: { hmt: NETWORKS[ChainId.BSC_MAINNET]?.hmtAddress }, [ChainId.BSC_TESTNET]: { hmt: NETWORKS[ChainId.BSC_TESTNET]?.hmtAddress }, - [ChainId.POLYGON_MUMBAI]: { - hmt: NETWORKS[ChainId.POLYGON_MUMBAI]?.hmtAddress, - }, - [ChainId.MOONBEAM]: { hmt: NETWORKS[ChainId.MOONBEAM]?.hmtAddress }, - [ChainId.MOONBASE_ALPHA]: { - hmt: NETWORKS[ChainId.MOONBASE_ALPHA]?.hmtAddress, - }, - [ChainId.AVALANCHE_TESTNET]: { - hmt: NETWORKS[ChainId.AVALANCHE_TESTNET]?.hmtAddress, - }, - [ChainId.AVALANCHE]: { hmt: NETWORKS[ChainId.AVALANCHE]?.hmtAddress }, - [ChainId.CELO]: { hmt: NETWORKS[ChainId.CELO]?.hmtAddress }, - [ChainId.CELO_ALFAJORES]: { - hmt: NETWORKS[ChainId.CELO_ALFAJORES]?.hmtAddress, - }, - [ChainId.XLAYER_TESTNET]: { - hmt: NETWORKS[ChainId.XLAYER_TESTNET]?.hmtAddress, - }, [ChainId.LOCALHOST]: { hmt: NETWORKS[ChainId.LOCALHOST]?.hmtAddress }, - [ChainId.XLAYER]: { hmt: NETWORKS[ChainId.XLAYER]?.hmtAddress }, }; diff --git a/packages/apps/job-launcher/server/src/common/config/network-config.service.ts b/packages/apps/job-launcher/server/src/common/config/network-config.service.ts index d03d3007b4..33e8530efc 100644 --- a/packages/apps/job-launcher/server/src/common/config/network-config.service.ts +++ b/packages/apps/job-launcher/server/src/common/config/network-config.service.ts @@ -90,42 +90,6 @@ export class NetworkConfigService { }, }, }), - ...(this.configService.get('RPC_URL_MOONBEAM') && { - moonbeam: { - chainId: ChainId.MOONBEAM, - /** - * The RPC URL for the Moonbeam network. - */ - rpcUrl: this.configService.get('RPC_URL_MOONBEAM'), - tokens: { - hmt: NETWORKS[ChainId.MOONBEAM]?.hmtAddress, - }, - }, - }), - ...(this.configService.get('RPC_URL_XLAYER_TESTNET') && { - xlayertestnet: { - chainId: ChainId.XLAYER_TESTNET, - /** - * The RPC URL for the XLayer Testnet network. - */ - rpcUrl: this.configService.get('RPC_URL_XLAYER_TESTNET'), - tokens: { - hmt: NETWORKS[ChainId.XLAYER_TESTNET]?.hmtAddress, - }, - }, - }), - ...(this.configService.get('RPC_URL_XLAYER') && { - xlayer: { - chainId: ChainId.XLAYER, - /** - * The RPC URL for the XLayer network. - */ - rpcUrl: this.configService.get('RPC_URL_XLAYER'), - tokens: { - hmt: NETWORKS[ChainId.XLAYER]?.hmtAddress, - }, - }, - }), ...(this.configService.get('RPC_URL_LOCALHOST') && { localhost: { chainId: ChainId.LOCALHOST, 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 8ccdf69672..0e8a052281 100644 --- a/packages/apps/job-launcher/server/src/common/constants/index.ts +++ b/packages/apps/job-launcher/server/src/common/constants/index.ts @@ -18,12 +18,10 @@ export const TESTNET_CHAIN_IDS = [ ChainId.BSC_TESTNET, ChainId.POLYGON_AMOY, ChainId.SEPOLIA, - ChainId.XLAYER_TESTNET, ]; export const MAINNET_CHAIN_IDS = [ ChainId.BSC_MAINNET, ChainId.POLYGON, - ChainId.MOONBEAM, ]; export const SENDGRID_API_KEY_REGEX = 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 5887ffa6cc..52d79d96b5 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 @@ -562,7 +562,7 @@ describe('JobService', () => { jest .spyOn(routingProtocolService, 'selectNetwork') - .mockReturnValue(ChainId.MOONBEAM); + .mockReturnValue(ChainId.POLYGON); KVStoreUtils.get = jest.fn().mockResolvedValue(MOCK_ORACLE_FEE); KVStoreUtils.getPublicKey = jest @@ -576,7 +576,7 @@ describe('JobService', () => { expect(paymentService.getUserBalance).toHaveBeenCalledWith(userMock.id); expect(jobRepository.createUnique).toHaveBeenCalledWith({ - chainId: ChainId.MOONBEAM, + chainId: ChainId.POLYGON, userId: userMock.id, manifestUrl: expect.any(String), manifestHash: expect.any(String), @@ -1696,7 +1696,7 @@ describe('JobService', () => { jest .spyOn(routingProtocolService, 'selectNetwork') - .mockReturnValue(ChainId.MOONBEAM); + .mockReturnValue(ChainId.POLYGON); KVStoreUtils.get = jest.fn().mockResolvedValue(MOCK_ORACLE_FEE); KVStoreUtils.getPublicKey = jest @@ -1722,7 +1722,7 @@ describe('JobService', () => { expect(paymentService.getUserBalance).toHaveBeenCalledWith(userMock.id); expect(jobRepository.createUnique).toHaveBeenCalledWith({ - chainId: ChainId.MOONBEAM, + chainId: ChainId.POLYGON, userId: userMock.id, manifestUrl: expect.any(String), manifestHash: expect.any(String), @@ -1888,7 +1888,7 @@ describe('JobService', () => { jest .spyOn(routingProtocolService, 'selectNetwork') - .mockReturnValue(ChainId.MOONBEAM); + .mockReturnValue(ChainId.POLYGON); await jobService.createJob(userMock, JobRequestType.HCAPTCHA, { ...hCaptchaJobDto, @@ -1897,7 +1897,7 @@ describe('JobService', () => { expect(paymentService.getUserBalance).toHaveBeenCalledWith(userMock.id); expect(jobRepository.createUnique).toHaveBeenCalledWith({ - chainId: ChainId.MOONBEAM, + chainId: ChainId.POLYGON, userId: userMock.id, manifestUrl: expect.any(String), manifestHash: expect.any(String), diff --git a/packages/apps/reputation-oracle/server/src/common/config/network-config.service.ts b/packages/apps/reputation-oracle/server/src/common/config/network-config.service.ts index 8658598c7e..15079cbd64 100644 --- a/packages/apps/reputation-oracle/server/src/common/config/network-config.service.ts +++ b/packages/apps/reputation-oracle/server/src/common/config/network-config.service.ts @@ -71,33 +71,6 @@ export class NetworkConfigService { rpcUrl: this.configService.get('RPC_URL_BSC_TESTNET'), }, }), - ...(this.configService.get('RPC_URL_MOONBEAM') && { - moonbeam: { - chainId: ChainId.MOONBEAM, - /** - * The RPC URL for the Moonbeam network. - */ - rpcUrl: this.configService.get('RPC_URL_MOONBEAM'), - }, - }), - ...(this.configService.get('RPC_URL_XLAYER_TESTNET') && { - xlayertestnet: { - chainId: ChainId.XLAYER_TESTNET, - /** - * The RPC URL for the XLayer Testnet network. - */ - rpcUrl: this.configService.get('RPC_URL_XLAYER_TESTNET'), - }, - }), - ...(this.configService.get('RPC_URL_XLAYER') && { - xlayer: { - chainId: ChainId.XLAYER, - /** - * The RPC URL for the XLayer network. - */ - rpcUrl: this.configService.get('RPC_URL_XLAYER'), - }, - }), ...(this.configService.get('RPC_URL_LOCALHOST') && { localhost: { chainId: ChainId.LOCALHOST, diff --git a/packages/apps/reputation-oracle/server/src/common/constants/networks.ts b/packages/apps/reputation-oracle/server/src/common/constants/networks.ts index 9f128d0b71..751dac3d9e 100644 --- a/packages/apps/reputation-oracle/server/src/common/constants/networks.ts +++ b/packages/apps/reputation-oracle/server/src/common/constants/networks.ts @@ -9,7 +9,6 @@ export const TESTNET_CHAIN_IDS = [ export const MAINNET_CHAIN_IDS = [ ChainId.BSC_MAINNET, ChainId.POLYGON, - ChainId.MOONBEAM, ]; export const LOCALHOST_CHAIN_IDS = [ChainId.LOCALHOST]; diff --git a/packages/apps/staking/src/constants/chains.ts b/packages/apps/staking/src/constants/chains.ts index aecd68e9a9..7d7d5ffea3 100644 --- a/packages/apps/staking/src/constants/chains.ts +++ b/packages/apps/staking/src/constants/chains.ts @@ -14,7 +14,6 @@ switch (import.meta.env.VITE_APP_ENVIRONMENT.toLowerCase()) { ChainId.BSC_TESTNET, ChainId.POLYGON_AMOY, ChainId.SEPOLIA, - ChainId.XLAYER_TESTNET, ]; break; case 'localhost': diff --git a/packages/core/README.md b/packages/core/README.md index a206adfe1d..0ff2c114ad 100644 --- a/packages/core/README.md +++ b/packages/core/README.md @@ -157,10 +157,10 @@ KVStore is the simple key-value store. ### Deploy contracts with proxy to a live network -1. Create a .env file in the root folder of core package, with the following variables(this is an example for Polygon Mumbai, for other networks `check hardhat.config.ts`): +1. Create a .env file in the root folder of core package, with the following variables(this is an example for Polygon Amoy, for other networks `check hardhat.config.ts`): ```bash -ETH_POLYGON_MUMBAI_URL= +ETH_POLYGON_AMOY_URL= PRIVATE_KEY= HMT_ADDRESS= POLYGONSCAN_API_KEY= @@ -184,11 +184,11 @@ npx hardhat verify --network [NETWORK_NAME] [CONTRACT_ADDRESS] ### Upgrade contracts with proxy -1. Create a .env file in the root folder of core package, with the following variables(this is an example to update EscrowFactory on Polygon Mumbai, if you want to upgrade +1. Create a .env file in the root folder of core package, with the following variables(this is an example to update EscrowFactory on Polygon Amoy, if you want to upgrade more proxies you need to add the corresponding addresses. Also, for other networks `check hardhat.config.ts`): ```bash -ETH_POLYGON_MUMBAI_URL= +ETH_POLYGON_AMOY_URL= PRIVATE_KEY= POLYGONSCAN_API_KEY= ESCROW_FACTORY_ADDRESS= diff --git a/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/constants.py b/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/constants.py index d723adccb3..ea55e4a4b2 100644 --- a/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/constants.py +++ b/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/constants.py @@ -6,22 +6,11 @@ class ChainId(Enum): """Enum for chain IDs.""" MAINNET = 1 - RINKEBY = 4 - GOERLI = 5 SEPOLIA = 11155111 BSC_MAINNET = 56 BSC_TESTNET = 97 POLYGON = 137 - POLYGON_MUMBAI = 80001 POLYGON_AMOY = 80002 - MOONBEAM = 1284 - MOONBASE_ALPHA = 1287 - AVALANCHE_TESTNET = 43113 - AVALANCHE = 43114 - CELO = 42220 - CELO_ALFAJORES = 44787 - XLAYER_TESTNET = 195 - XLAYER = 196 LOCALHOST = 1338 @@ -56,23 +45,7 @@ class LeaderCategory(Enum): "old_subgraph_url": "", "old_factory_address": "", }, - ChainId.GOERLI: { - "title": "Ethereum Goerli", - "scan_url": "https://goerli.etherscan.io", - "subgraph_url": ( - "https://api.thegraph.com/subgraphs/name/humanprotocol/goerli-v2" - ), - "subgraph_url_api_key": "", - "hmt_address": "0xd3A31D57FDD790725d0F6B78095F62E8CD4ab317", - "factory_address": "0x87469B4f2Fcf37cBd34E54244c0BD4Fa0603664c", - "staking_address": "0xf46B45Df3d956369726d8Bd93Ba33963Ab692920", - "kvstore_address": "0x19Fc3e859C1813ac9427a7a78BeB9ae102CE96d3", - "old_subgraph_url": ( - "https://api.thegraph.com/subgraphs/name/humanprotocol/goerli" - ), - "old_factory_address": "0xaAe6a2646C1F88763E62e0cD08aD050Ea66AC46F", - }, - ChainId.SEPOLIA: { + ChainId.LOCALHOST: { "title": "Sepolia", "scan_url": "https://sepolia.etherscan.io", "subgraph_url": ( @@ -140,22 +113,6 @@ class LeaderCategory(Enum): ), "old_factory_address": "0x45eBc3eAE6DA485097054ae10BA1A0f8e8c7f794", }, - ChainId.POLYGON_MUMBAI: { - "title": "Polygon Mumbai", - "scan_url": "https://mumbai.polygonscan.com", - "subgraph_url": ( - "https://api.thegraph.com/subgraphs/name/humanprotocol/mumbai-v2" - ), - "subgraph_url_api_key": "", - "hmt_address": "0x0376D26246Eb35FF4F9924cF13E6C05fd0bD7Fb4", - "factory_address": "0xA8D927C4DA17A6b71675d2D49dFda4E9eBE58f2d", - "staking_address": "0x7Fd3dF914E7b6Bd96B4c744Df32183b51368Bfac", - "kvstore_address": "0xD96158c7267Ea658a4688F4aEf1c85659851625d", - "old_subgraph_url": ( - "https://api.thegraph.com/subgraphs/name/humanprotocol/mumbai" - ), - "old_factory_address": "0x558cd800f9F0B02f3B149667bDe003284c867E94", - }, ChainId.POLYGON_AMOY: { "title": "Polygon Amoy", "scan_url": "https://amoy.polygonscan.com", @@ -172,140 +129,6 @@ class LeaderCategory(Enum): "old_subgraph_url": "", "old_factory_address": "", }, - ChainId.MOONBEAM: { - "title": "Moonbeam", - "scan_url": "https://moonbeam.moonscan.io", - "subgraph_url": ( - "https://api.studio.thegraph.com/query/74256/moonbeam/version/latest" - ), - "subgraph_url_api_key": ( - "https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmYe9hsFYuVgQsH719AsqRNqgVM8YBYfCuhBNYjXtBqQru" - ), - "hmt_address": "0x3b25BC1dC591D24d60560d0135D6750A561D4764", - "factory_address": "0xD9c75a1Aa4237BB72a41E5E26bd8384f10c1f55a", - "staking_address": "0x05398211bA2046E296fBc9a9D3EB49e3F15C3123", - "kvstore_address": "0x2B95bEcb6EBC4589f64CB000dFCF716b4aeF8aA6", - "old_subgraph_url": ( - "https://api.thegraph.com/subgraphs/name/humanprotocol/moonbeam" - ), - "old_factory_address": "0x98108c28B7767a52BE38B4860832dd4e11A7ecad", - }, - ChainId.MOONBASE_ALPHA: { - "title": "Moonbase Alpha", - "scan_url": "https://moonbase.moonscan.io/", - "subgraph_url": ( - "https://api.studio.thegraph.com/query/74256/moonbase-alpha/version/latest" - ), - "subgraph_url_api_key": ( - "https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmSDPbm5xxMvYVSJzHFVsRiMekvJVYSJ7UfZw17DhPMdaH" - ), - "hmt_address": "0x2dd72db2bBA65cE663e476bA8b84A1aAF802A8e3", - "factory_address": "0x5e622FF522D81aa426f082bDD95210BC25fCA7Ed", - "staking_address": "0xbA537fEF2442cD48f60686FE1Bbbe40F964a7940", - "kvstore_address": "0xcC561f4482f4Ff051D2Dcc65c2cE1A0f291bbA46", - "old_subgraph_url": "", - "old_factory_address": "", - }, - ChainId.AVALANCHE: { - "title": "Avalanche C-Chain Mainnet", - "scan_url": "https://snowtrace.io", - "subgraph_url": ( - "https://api.studio.thegraph.com/query/74256/avalanche/version/latest" - ), - "subgraph_url_api_key": ( - "https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmYR8NUuAQVoGmGSwKanUJLjX9iZxrEyGH39HjUuXLmsum" - ), - "hmt_address": "0x12365293cb6477d4fc2686e46BB97E3Fb64f1550", - "factory_address": "0xD9c75a1Aa4237BB72a41E5E26bd8384f10c1f55a", - "staking_address": "0x05398211bA2046E296fBc9a9D3EB49e3F15C3123", - "kvstore_address": "0x9Bc7bff35B2Be2413708d48c3B0aEF5c43646728", - "old_subgraph_url": ( - "https://api.thegraph.com/subgraphs/name/humanprotocol/avalanche" - ), - "old_factory_address": "0x9767a578ba7a5FA1563c8229943cB01cd8446BB4", - }, - ChainId.AVALANCHE_TESTNET: { - "title": "Fuji C-Chain", - "scan_url": "https://testnet.snowtrace.io", - "subgraph_url": ( - "https://api.studio.thegraph.com/query/74256/fuji/version/latest" - ), - "subgraph_url_api_key": ( - "https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmYXwNPwC5DcitK1SLVUR6gPANmEn3UsVvGeTbjCv1tTb2" - ), - "hmt_address": "0x9406d5c635AD22b0d76c75E52De57A2177919ca3", - "factory_address": "0x56C2ba540726ED4f46E7a134b6b9Ee9C867FcF92", - "staking_address": "0xbA537fEF2442cD48f60686FE1Bbbe40F964a7940", - "kvstore_address": "0x3aD4B091E054f192a822D1406f4535eAd38580e4", - "old_subgraph_url": ( - "https://api.thegraph.com/subgraphs/name/humanprotocol/fuji" - ), - "old_factory_address": "0xfb4469201951C3B9a7F1996c477cb7BDBEcE0A88", - }, - ChainId.CELO: { - "title": "Celo", - "scan_url": "https://celoscan.io/", - "subgraph_url": ( - "https://api.studio.thegraph.com/query/74256/celo/version/latest" - ), - "subgraph_url_api_key": ( - "https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/Qmeeb5zshw1z9Q38NNPun2Pd7P951Mkzz5ywK171tauNRY" - ), - "hmt_address": "0x19Ead835951493A763c96910255d5eeF147E914F", - "factory_address": "0xc90B43a5d576D9d8026c48904dfbaED50C15Fa08", - "staking_address": "0x34cD3Bd6B16c559f321799b516dE61E12017fFd1", - "kvstore_address": "0x86Af9f6Cd34B69Db1B202223C6d6D109f2491569", - "old_subgraph_url": "", - "old_factory_address": "", - }, - ChainId.CELO_ALFAJORES: { - "title": "Celo", - "scan_url": "https://alfajores.celoscan.io/", - "subgraph_url": ( - "https://api.studio.thegraph.com/query/74256/celo-alfajores/version/latest" - ), - "subgraph_url_api_key": ( - "https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/Qmb2WKCFFhT7REAjTuMd9pZvGw7rRpzeZSPJ3KRztD2pMM" - ), - "hmt_address": "0x2736B33455A872dC478E1E004106D04c35472468", - "factory_address": "0x86Af9f6Cd34B69Db1B202223C6d6D109f2491569", - "staking_address": "0x003548Df34be8836cF0F9673403a1E40ba449a0F", - "kvstore_address": "0x938335006ea6F9Eb0e8020969cFF94404425e298", - "old_subgraph_url": "", - "old_factory_address": "", - }, - ChainId.XLAYER: { - "title": "XLayer", - "scan_url": "https://www.oklink.com/xlayer", - "subgraph_url": ( - "https://api.studio.thegraph.com/query/74256/xlayer/version/latest" - ), - "subgraph_url_api_key": ( - "https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmWTggMrB5sRSs2fePuqQG9WbLMk8HtnfLH3VbRhmVdF8s" - ), - "hmt_address": "0x10acbe3b9e6a2ff7f341e5cbf4b6617741ff44aa", - "factory_address": "0x4949C9DFFD83F0D5Ab0AB24C57C4D403D5c20C15", - "staking_address": "0x01D115E9E8bF0C58318793624CC662a030D07F1D", - "kvstore_address": "0x6512d894cc3d3FE93Da9d0420430136fA889FaB9", - "old_subgraph_url": "", - "old_factory_address": "", - }, - ChainId.XLAYER_TESTNET: { - "title": "X Layer Testnet", - "scan_url": "https://www.oklink.com/oktc-test", - "subgraph_url": ( - "https://api.studio.thegraph.com/query/74256/xlayer-testnet/version/latest" - ), - "subgraph_url_api_key": ( - "https://gateway-testnet-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmNoRyqZtJTRrkbKAmWMZQUHuah7YSs8U9R3nzPu8WEhtY" - ), - "hmt_address": "0x792abbcC99c01dbDec49c9fa9A828a186Da45C33", - "factory_address": "0x6Cd3ecAD36ee88E9ef3665CF381D9dAE0FE0a32e", - "staking_address": "0xeF9849a904dF0d494D69ac0B0a6860a3A7936114", - "kvstore_address": "0xdE8BE9E3C12E9F546309A429cd88d026a25EaF8C", - "old_subgraph_url": "", - "old_factory_address": "", - }, ChainId.LOCALHOST: { "title": "Localhost", "scan_url": "", diff --git a/packages/sdk/typescript/human-protocol-sdk/src/constants.ts b/packages/sdk/typescript/human-protocol-sdk/src/constants.ts index afe10e1117..f0e2179fb0 100644 --- a/packages/sdk/typescript/human-protocol-sdk/src/constants.ts +++ b/packages/sdk/typescript/human-protocol-sdk/src/constants.ts @@ -40,34 +40,6 @@ export const NETWORKS: { oldSubgraphUrl: '', oldFactoryAddress: '', }, - [ChainId.RINKEBY]: { - chainId: ChainId.RINKEBY, - title: 'Ethereum Rinkeby', - scanUrl: 'https://rinkeby.etherscan.io', - factoryAddress: '0x925B24444511c86F4d4E63141D8Be0A025E2dca4', - hmtAddress: '0x4dCf5ac4509888714dd43A5cCc46d7ab389D9c23', - stakingAddress: '', - kvstoreAddress: '', - subgraphUrl: '', - subgraphUrlApiKey: '', - oldSubgraphUrl: '', - oldFactoryAddress: '', - }, - [ChainId.GOERLI]: { - chainId: ChainId.GOERLI, - title: 'Ethereum Goerli', - scanUrl: 'https://goerli.etherscan.io', - factoryAddress: '0x87469B4f2Fcf37cBd34E54244c0BD4Fa0603664c', - hmtAddress: '0xd3A31D57FDD790725d0F6B78095F62E8CD4ab317', - stakingAddress: '0xf46B45Df3d956369726d8Bd93Ba33963Ab692920', - kvstoreAddress: '0x19Fc3e859C1813ac9427a7a78BeB9ae102CE96d3', - subgraphUrl: - 'https://api.thegraph.com/subgraphs/name/humanprotocol/goerli-v2', - subgraphUrlApiKey: '', - oldSubgraphUrl: - 'https://api.thegraph.com/subgraphs/name/humanprotocol/goerli', - oldFactoryAddress: '0xaAe6a2646C1F88763E62e0cD08aD050Ea66AC46F', - }, [ChainId.SEPOLIA]: { chainId: ChainId.SEPOLIA, title: 'Ethereum Sepolia', @@ -130,21 +102,6 @@ export const NETWORKS: { 'https://api.thegraph.com/subgraphs/name/humanprotocol/polygon', oldFactoryAddress: '0x45eBc3eAE6DA485097054ae10BA1A0f8e8c7f794', }, - [ChainId.POLYGON_MUMBAI]: { - chainId: ChainId.POLYGON_MUMBAI, - title: 'Polygon Mumbai', - scanUrl: 'https://mumbai.polygonscan.com', - factoryAddress: '0xA8D927C4DA17A6b71675d2D49dFda4E9eBE58f2d', - hmtAddress: '0x0376D26246Eb35FF4F9924cF13E6C05fd0bD7Fb4', - stakingAddress: '0x7Fd3dF914E7b6Bd96B4c744Df32183b51368Bfac', - kvstoreAddress: '0xD96158c7267Ea658a4688F4aEf1c85659851625d', - subgraphUrl: - 'https://api.thegraph.com/subgraphs/name/humanprotocol/mumbai-v2', - subgraphUrlApiKey: '', - oldSubgraphUrl: - 'https://api.thegraph.com/subgraphs/name/humanprotocol/mumbai', - oldFactoryAddress: '0x558cd800f9F0B02f3B149667bDe003284c867E94', - }, [ChainId.POLYGON_AMOY]: { chainId: ChainId.POLYGON_AMOY, title: 'Polygon Amoy', @@ -160,129 +117,6 @@ export const NETWORKS: { oldSubgraphUrl: '', oldFactoryAddress: '', }, - [ChainId.MOONBEAM]: { - chainId: ChainId.MOONBEAM, - title: 'Moonbeam', - scanUrl: 'https://moonbeam.moonscan.io', - factoryAddress: '0xD9c75a1Aa4237BB72a41E5E26bd8384f10c1f55a', - hmtAddress: '0x3b25BC1dC591D24d60560d0135D6750A561D4764', - stakingAddress: '0x05398211bA2046E296fBc9a9D3EB49e3F15C3123', - kvstoreAddress: '0x2B95bEcb6EBC4589f64CB000dFCF716b4aeF8aA6', - subgraphUrl: - 'https://api.studio.thegraph.com/query/74256/moonbeam/version/latest', - subgraphUrlApiKey: - 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmYe9hsFYuVgQsH719AsqRNqgVM8YBYfCuhBNYjXtBqQru', - oldSubgraphUrl: - 'https://api.thegraph.com/subgraphs/name/humanprotocol/moonbeam', - oldFactoryAddress: '0x98108c28B7767a52BE38B4860832dd4e11A7ecad', - }, - [ChainId.MOONBASE_ALPHA]: { - chainId: ChainId.MOONBASE_ALPHA, - title: 'Moonbase Alpha', - scanUrl: 'https://moonbase.moonscan.io/', - factoryAddress: '0x5e622FF522D81aa426f082bDD95210BC25fCA7Ed', - hmtAddress: '0x2dd72db2bBA65cE663e476bA8b84A1aAF802A8e3', - stakingAddress: '0xbA537fEF2442cD48f60686FE1Bbbe40F964a7940', - kvstoreAddress: '0xcC561f4482f4Ff051D2Dcc65c2cE1A0f291bbA46', - subgraphUrl: - 'https://api.studio.thegraph.com/query/74256/moonbase-alpha/version/latest', - subgraphUrlApiKey: - 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmSDPbm5xxMvYVSJzHFVsRiMekvJVYSJ7UfZw17DhPMdaH', - oldSubgraphUrl: '', - oldFactoryAddress: '', - }, - [ChainId.AVALANCHE_TESTNET]: { - chainId: ChainId.AVALANCHE_TESTNET, - title: 'Fuji C-Chain', - scanUrl: 'https://testnet.snowtrace.io', - factoryAddress: '0x56C2ba540726ED4f46E7a134b6b9Ee9C867FcF92', - hmtAddress: '0x9406d5c635AD22b0d76c75E52De57A2177919ca3', - stakingAddress: '0xbA537fEF2442cD48f60686FE1Bbbe40F964a7940', - kvstoreAddress: '0x3aD4B091E054f192a822D1406f4535eAd38580e4', - subgraphUrl: - 'https://api.studio.thegraph.com/query/74256/fuji/version/latest', - subgraphUrlApiKey: - 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmYXwNPwC5DcitK1SLVUR6gPANmEn3UsVvGeTbjCv1tTb2', - oldSubgraphUrl: - 'https://api.thegraph.com/subgraphs/name/humanprotocol/fuji', - oldFactoryAddress: '0xfb4469201951C3B9a7F1996c477cb7BDBEcE0A88', - }, - [ChainId.AVALANCHE]: { - chainId: ChainId.AVALANCHE, - title: 'Avalanche C-Chain Mainnet', - scanUrl: 'https://snowtrace.io', - factoryAddress: '0xD9c75a1Aa4237BB72a41E5E26bd8384f10c1f55a', - hmtAddress: '0x12365293cb6477d4fc2686e46BB97E3Fb64f1550', - stakingAddress: '0x05398211bA2046E296fBc9a9D3EB49e3F15C3123', - kvstoreAddress: '0x9Bc7bff35B2Be2413708d48c3B0aEF5c43646728', - subgraphUrl: - 'https://api.studio.thegraph.com/query/74256/avalanche/version/latest', - subgraphUrlApiKey: - 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmYR8NUuAQVoGmGSwKanUJLjX9iZxrEyGH39HjUuXLmsum', - oldSubgraphUrl: - 'https://api.thegraph.com/subgraphs/name/humanprotocol/avalanche', - oldFactoryAddress: '0x9767a578ba7a5FA1563c8229943cB01cd8446BB4', - }, - [ChainId.CELO_ALFAJORES]: { - chainId: ChainId.CELO_ALFAJORES, - title: 'Celo Alfajores', - scanUrl: 'https://alfajores.celoscan.io/', - factoryAddress: '0x86Af9f6Cd34B69Db1B202223C6d6D109f2491569', - hmtAddress: '0x2736B33455A872dC478E1E004106D04c35472468', - stakingAddress: '0x003548Df34be8836cF0F9673403a1E40ba449a0F', - kvstoreAddress: '0x938335006ea6F9Eb0e8020969cFF94404425e298', - subgraphUrl: - 'https://api.studio.thegraph.com/query/74256/celo-alfajores/version/latest', - subgraphUrlApiKey: - 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/Qmb2WKCFFhT7REAjTuMd9pZvGw7rRpzeZSPJ3KRztD2pMM', - oldSubgraphUrl: '', - oldFactoryAddress: '', - }, - [ChainId.CELO]: { - chainId: ChainId.CELO, - title: 'Celo', - scanUrl: 'https://celoscan.io/', - factoryAddress: '0xc90B43a5d576D9d8026c48904dfbaED50C15Fa08', - hmtAddress: '0x19Ead835951493A763c96910255d5eeF147E914F', - stakingAddress: '0x34cD3Bd6B16c559f321799b516dE61E12017fFd1', - kvstoreAddress: '0x86Af9f6Cd34B69Db1B202223C6d6D109f2491569', - subgraphUrl: - 'https://api.studio.thegraph.com/query/74256/celo/version/latest', - subgraphUrlApiKey: - 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/Qmeeb5zshw1z9Q38NNPun2Pd7P951Mkzz5ywK171tauNRY', - oldSubgraphUrl: '', - oldFactoryAddress: '', - }, - [ChainId.XLAYER]: { - chainId: ChainId.XLAYER, - title: 'XLayer', - scanUrl: 'https://www.oklink.com/xlayer', - factoryAddress: '0x4949C9DFFD83F0D5Ab0AB24C57C4D403D5c20C15', - hmtAddress: '0x10acbe3b9e6a2ff7f341e5cbf4b6617741ff44aa', - stakingAddress: '0x01D115E9E8bF0C58318793624CC662a030D07F1D', - kvstoreAddress: '0x6512d894cc3d3FE93Da9d0420430136fA889FaB9', - subgraphUrl: - 'https://api.studio.thegraph.com/query/74256/xlayer/version/latest', - subgraphUrlApiKey: - 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmWTggMrB5sRSs2fePuqQG9WbLMk8HtnfLH3VbRhmVdF8s', - oldSubgraphUrl: '', - oldFactoryAddress: '', - }, - [ChainId.XLAYER_TESTNET]: { - chainId: ChainId.XLAYER_TESTNET, - title: 'XLayer Testnet', - scanUrl: 'https://www.okx.com/explorer/xlayer-test', - factoryAddress: '0x6Cd3ecAD36ee88E9ef3665CF381D9dAE0FE0a32e', - hmtAddress: '0x792abbcC99c01dbDec49c9fa9A828a186Da45C33', - stakingAddress: '0xeF9849a904dF0d494D69ac0B0a6860a3A7936114', - kvstoreAddress: '0xdE8BE9E3C12E9F546309A429cd88d026a25EaF8C', - subgraphUrl: - 'https://api.studio.thegraph.com/query/74256/xlayer-testnet/version/latest', - subgraphUrlApiKey: - 'https://gateway-testnet-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmNoRyqZtJTRrkbKAmWMZQUHuah7YSs8U9R3nzPu8WEhtY', - oldSubgraphUrl: '', - oldFactoryAddress: '', - }, [ChainId.LOCALHOST]: { chainId: ChainId.LOCALHOST, title: 'Localhost', diff --git a/packages/sdk/typescript/human-protocol-sdk/src/enums.ts b/packages/sdk/typescript/human-protocol-sdk/src/enums.ts index 0a24004005..6f71feb39e 100644 --- a/packages/sdk/typescript/human-protocol-sdk/src/enums.ts +++ b/packages/sdk/typescript/human-protocol-sdk/src/enums.ts @@ -1,23 +1,12 @@ export enum ChainId { ALL = -1, MAINNET = 1, - RINKEBY = 4, - GOERLI = 5, SEPOLIA = 11155111, BSC_MAINNET = 56, BSC_TESTNET = 97, POLYGON = 137, - POLYGON_MUMBAI = 80001, POLYGON_AMOY = 80002, - MOONBEAM = 1284, - MOONBASE_ALPHA = 1287, - AVALANCHE_TESTNET = 43113, - AVALANCHE = 43114, - CELO = 42220, - CELO_ALFAJORES = 44787, - XLAYER_TESTNET = 195, LOCALHOST = 1338, - XLAYER = 196, } export enum OrderDirection { diff --git a/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts b/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts index 121f1f3e70..2acef5dd45 100644 --- a/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts +++ b/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts @@ -1578,19 +1578,11 @@ export class EscrowUtils { * enum ChainId { * ALL = -1, * MAINNET = 1, - * RINKEBY = 4, - * GOERLI = 5, + * SEPOLIA = 11155111, * BSC_MAINNET = 56, * BSC_TESTNET = 97, * POLYGON = 137, - * POLYGON_MUMBAI = 80001, * POLYGON_AMOY=80002, - * MOONBEAM = 1284, - * MOONBASE_ALPHA = 1287, - * AVALANCHE = 43114, - * AVALANCHE_TESTNET = 43113, - * CELO = 42220, - * CELO_ALFAJORES = 44787, * LOCALHOST = 1338, * } * ``` @@ -1727,19 +1719,11 @@ export class EscrowUtils { * enum ChainId { * ALL = -1, * MAINNET = 1, - * RINKEBY = 4, - * GOERLI = 5, + * SEPOLIA = 11155111, * BSC_MAINNET = 56, * BSC_TESTNET = 97, * POLYGON = 137, - * POLYGON_MUMBAI = 80001, * POLYGON_AMOY = 80002, - * MOONBEAM = 1284, - * MOONBASE_ALPHA = 1287, - * AVALANCHE = 43114, - * AVALANCHE_TESTNET = 43113, - * CELO = 42220, - * CELO_ALFAJORES = 44787, * LOCALHOST = 1338, * } * ``` @@ -1815,23 +1799,12 @@ export class EscrowUtils { * enum ChainId { * ALL = -1, * MAINNET = 1, - * RINKEBY = 4, - * GOERLI = 5, * SEPOLIA = 11155111, * BSC_MAINNET = 56, * BSC_TESTNET = 97, * POLYGON = 137, - * POLYGON_MUMBAI = 80001, * POLYGON_AMOY = 80002, - * MOONBEAM = 1284, - * MOONBASE_ALPHA = 1287, - * AVALANCHE = 43114, - * AVALANCHE_TESTNET = 43113, - * CELO = 42220, - * CELO_ALFAJORES = 44787, * LOCALHOST = 1338, - * XLAYER_TESTNET = 195, - * XLAYER = 196, * } * ``` * diff --git a/packages/sdk/typescript/subgraph/README.md b/packages/sdk/typescript/subgraph/README.md index a3999306ec..f2821e40db 100644 --- a/packages/sdk/typescript/subgraph/README.md +++ b/packages/sdk/typescript/subgraph/README.md @@ -65,9 +65,12 @@ yarn test Following networks are supported : +- Ethereum Mainnet +- Sepolia (testnet) +- BSC Mainnet +- BSC Testnet (testnet) - Polygon/matic -- Goerli -- Polygon Mumbai (testnet) +- Polygon Amoy (testnet) # Add a new network From c4190c82201feb0102fe789c358bec7f41731886 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 22 Jan 2025 12:56:00 +0100 Subject: [PATCH 09/44] chore(deps-dev): bump hardhat from 2.22.16 to 2.22.18 (#3028) Bumps [hardhat](https://github.com/nomiclabs/hardhat) from 2.22.16 to 2.22.18. - [Release notes](https://github.com/nomiclabs/hardhat/releases) - [Commits](https://github.com/nomiclabs/hardhat/compare/hardhat@2.22.16...hardhat@2.22.18) --- updated-dependencies: - dependency-name: hardhat dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/core/package.json | 2 +- yarn.lock | 119 ++++++++++++++++++++++--------------- 2 files changed, 73 insertions(+), 48 deletions(-) diff --git a/packages/core/package.json b/packages/core/package.json index c3eb589907..b1ba24d4ab 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -65,7 +65,7 @@ "@types/chai": "^4.3.3", "@types/mocha": "^10.0.8", "chai": "^4.5.0", - "hardhat": "^2.22.10", + "hardhat": "^2.22.18", "hardhat-abi-exporter": "^2.10.1", "hardhat-contract-sizer": "^2.6.1", "hardhat-dependency-compiler": "^1.2.1", diff --git a/yarn.lock b/yarn.lock index e77a6b67f3..bdaed99323 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3425,53 +3425,53 @@ resolved "https://registry.yarnpkg.com/@nolyfill/is-core-module/-/is-core-module-1.0.39.tgz#3dc35ba0f1e66b403c00b39344f870298ebb1c8e" integrity sha512-nn5ozdjYQpUCZlWGuxcJY/KpxkWQs4DcbMCmKojjyrYDEAGy4Ce19NN4v5MduafTwJlbKc99UA8YhSVqq9yPZA== -"@nomicfoundation/edr-darwin-arm64@0.6.5": - version "0.6.5" - resolved "https://registry.yarnpkg.com/@nomicfoundation/edr-darwin-arm64/-/edr-darwin-arm64-0.6.5.tgz#37a31565d7ef42bed9028ac44aed82144de30bd1" - integrity sha512-A9zCCbbNxBpLgjS1kEJSpqxIvGGAX4cYbpDYCU2f3jVqOwaZ/NU761y1SvuCRVpOwhoCXqByN9b7HPpHi0L4hw== +"@nomicfoundation/edr-darwin-arm64@0.7.0": + version "0.7.0" + resolved "https://registry.yarnpkg.com/@nomicfoundation/edr-darwin-arm64/-/edr-darwin-arm64-0.7.0.tgz#2be3338a61508ed1d24326c82b9aa9224a844dd7" + integrity sha512-vAH20oh4GaSB/iQFTRcoO8jLc0CLd9XuLY9I7vtcqZWAiM4U1J4Y8cu67PWmtxbvUQOqXR7S6FtAr8/AlWm14g== -"@nomicfoundation/edr-darwin-x64@0.6.5": - version "0.6.5" - resolved "https://registry.yarnpkg.com/@nomicfoundation/edr-darwin-x64/-/edr-darwin-x64-0.6.5.tgz#3252f6e86397af460b7a480bfe1b889464d75b89" - integrity sha512-x3zBY/v3R0modR5CzlL6qMfFMdgwd6oHrWpTkuuXnPFOX8SU31qq87/230f4szM+ukGK8Hi+mNq7Ro2VF4Fj+w== +"@nomicfoundation/edr-darwin-x64@0.7.0": + version "0.7.0" + resolved "https://registry.yarnpkg.com/@nomicfoundation/edr-darwin-x64/-/edr-darwin-x64-0.7.0.tgz#d2f782fc43bcae1c9aca3130aca6aa2a964e8559" + integrity sha512-WHDdIrPvLlgXQr2eKypBM5xOZAwdxhDAEQIvEMQL8tEEm2qYW2bliUlssBPrs8E3bdivFbe1HizImslMAfU3+g== -"@nomicfoundation/edr-linux-arm64-gnu@0.6.5": - version "0.6.5" - resolved "https://registry.yarnpkg.com/@nomicfoundation/edr-linux-arm64-gnu/-/edr-linux-arm64-gnu-0.6.5.tgz#e7dc2934920b6cfabeb5ee7a5e26c8fb0d4964ac" - integrity sha512-HGpB8f1h8ogqPHTyUpyPRKZxUk2lu061g97dOQ/W4CxevI0s/qiw5DB3U3smLvSnBHKOzYS1jkxlMeGN01ky7A== +"@nomicfoundation/edr-linux-arm64-gnu@0.7.0": + version "0.7.0" + resolved "https://registry.yarnpkg.com/@nomicfoundation/edr-linux-arm64-gnu/-/edr-linux-arm64-gnu-0.7.0.tgz#48b156744989acc8e6b0b754158a26e10ad865ed" + integrity sha512-WXpJB54ukz1no7gxCPXVEw9pgl/9UZ/WO3l1ctyv/T7vOygjqA4SUd6kppTs6MNXAuTiisPtvJ/fmvHiMBLrsw== -"@nomicfoundation/edr-linux-arm64-musl@0.6.5": - version "0.6.5" - resolved "https://registry.yarnpkg.com/@nomicfoundation/edr-linux-arm64-musl/-/edr-linux-arm64-musl-0.6.5.tgz#00459cd53e9fb7bd5b7e32128b508a6e89079d89" - integrity sha512-ESvJM5Y9XC03fZg9KaQg3Hl+mbx7dsSkTIAndoJS7X2SyakpL9KZpOSYrDk135o8s9P9lYJdPOyiq+Sh+XoCbQ== +"@nomicfoundation/edr-linux-arm64-musl@0.7.0": + version "0.7.0" + resolved "https://registry.yarnpkg.com/@nomicfoundation/edr-linux-arm64-musl/-/edr-linux-arm64-musl-0.7.0.tgz#60351352ec26704fed8a232430bf3793d17c29cd" + integrity sha512-1iZYOcEgc+zJI7JQrlAFziuy9sBz1WgnIx3HIIu0J7lBRZ/AXeHHgATb+4InqxtEx9O3W8A0s7f11SyFqJL4Aw== -"@nomicfoundation/edr-linux-x64-gnu@0.6.5": - version "0.6.5" - resolved "https://registry.yarnpkg.com/@nomicfoundation/edr-linux-x64-gnu/-/edr-linux-x64-gnu-0.6.5.tgz#5c9e4e2655caba48e0196977cba395bbde6fe97d" - integrity sha512-HCM1usyAR1Ew6RYf5AkMYGvHBy64cPA5NMbaeY72r0mpKaH3txiMyydcHibByOGdQ8iFLWpyUdpl1egotw+Tgg== +"@nomicfoundation/edr-linux-x64-gnu@0.7.0": + version "0.7.0" + resolved "https://registry.yarnpkg.com/@nomicfoundation/edr-linux-x64-gnu/-/edr-linux-x64-gnu-0.7.0.tgz#a7b056bfd46ccfde4d55c9601da5a410c2fce40f" + integrity sha512-wSjC94WcR5MM8sg9w3OsAmT6+bbmChJw6uJKoXR3qscps/jdhjzJWzfgT0XGRq3XMUfimyafW2RWOyfX3ouhrQ== -"@nomicfoundation/edr-linux-x64-musl@0.6.5": - version "0.6.5" - resolved "https://registry.yarnpkg.com/@nomicfoundation/edr-linux-x64-musl/-/edr-linux-x64-musl-0.6.5.tgz#9c220751b66452dc43a365f380e1e236a0a8c5a9" - integrity sha512-nB2uFRyczhAvWUH7NjCsIO6rHnQrof3xcCe6Mpmnzfl2PYcGyxN7iO4ZMmRcQS7R1Y670VH6+8ZBiRn8k43m7A== +"@nomicfoundation/edr-linux-x64-musl@0.7.0": + version "0.7.0" + resolved "https://registry.yarnpkg.com/@nomicfoundation/edr-linux-x64-musl/-/edr-linux-x64-musl-0.7.0.tgz#0fe9f5ace05072e845f71c8fbd28e57798dd6ab5" + integrity sha512-Us22+AZ7wkG1mZwxqE4S4ZcuwkEA5VrUiBOJSvKHGOgy6vFvB/Euh5Lkp4GovwjrtiXuvyGO2UmtkzymZKDxZw== -"@nomicfoundation/edr-win32-x64-msvc@0.6.5": - version "0.6.5" - resolved "https://registry.yarnpkg.com/@nomicfoundation/edr-win32-x64-msvc/-/edr-win32-x64-msvc-0.6.5.tgz#90d3ac2a6a8a687522bda5ff2e92dd97e68126ea" - integrity sha512-B9QD/4DSSCFtWicO8A3BrsnitO1FPv7axB62wq5Q+qeJ50yJlTmyeGY3cw62gWItdvy2mh3fRM6L1LpnHiB77A== +"@nomicfoundation/edr-win32-x64-msvc@0.7.0": + version "0.7.0" + resolved "https://registry.yarnpkg.com/@nomicfoundation/edr-win32-x64-msvc/-/edr-win32-x64-msvc-0.7.0.tgz#f1b9a0a643db8dffcf5edb827c18e1cef25c4367" + integrity sha512-HAry0heTsWkzReVtjHwoIq3BgFCvXpVhJ5qPmTnegZGsr/KxqvMmHyDMifzKao4bycU8yrpTSyOiAJt27RWjzQ== -"@nomicfoundation/edr@^0.6.4": - version "0.6.5" - resolved "https://registry.yarnpkg.com/@nomicfoundation/edr/-/edr-0.6.5.tgz#b3b1ebcdd0148cfe67cca128e7ebe8092e200359" - integrity sha512-tAqMslLP+/2b2sZP4qe9AuGxG3OkQ5gGgHE4isUuq6dUVjwCRPFhAOhpdFl+OjY5P3yEv3hmq9HjUGRa2VNjng== +"@nomicfoundation/edr@^0.7.0": + version "0.7.0" + resolved "https://registry.yarnpkg.com/@nomicfoundation/edr/-/edr-0.7.0.tgz#175cb8a81eac585dc76ad41585c908542acb9383" + integrity sha512-+Zyu7TE47TGNcPhOfWLPA/zISs32WDMXrhSWdWYyPHDVn/Uux5TVuOeScKb0BR/R8EJ+leR8COUF/EGxvDOVKg== dependencies: - "@nomicfoundation/edr-darwin-arm64" "0.6.5" - "@nomicfoundation/edr-darwin-x64" "0.6.5" - "@nomicfoundation/edr-linux-arm64-gnu" "0.6.5" - "@nomicfoundation/edr-linux-arm64-musl" "0.6.5" - "@nomicfoundation/edr-linux-x64-gnu" "0.6.5" - "@nomicfoundation/edr-linux-x64-musl" "0.6.5" - "@nomicfoundation/edr-win32-x64-msvc" "0.6.5" + "@nomicfoundation/edr-darwin-arm64" "0.7.0" + "@nomicfoundation/edr-darwin-x64" "0.7.0" + "@nomicfoundation/edr-linux-arm64-gnu" "0.7.0" + "@nomicfoundation/edr-linux-arm64-musl" "0.7.0" + "@nomicfoundation/edr-linux-x64-gnu" "0.7.0" + "@nomicfoundation/edr-linux-x64-musl" "0.7.0" + "@nomicfoundation/edr-win32-x64-msvc" "0.7.0" "@nomicfoundation/ethereumjs-common@4.0.4": version "4.0.4" @@ -12014,14 +12014,14 @@ hardhat-gas-reporter@^2.0.2: sha1 "^1.1.1" viem "2.7.14" -hardhat@^2.22.10: - version "2.22.16" - resolved "https://registry.yarnpkg.com/hardhat/-/hardhat-2.22.16.tgz#6cf3413f63b14770f863f35452da891ac2bd50cb" - integrity sha512-d52yQZ09u0roL6GlgJSvtknsBtIuj9JrJ/U8VMzr/wue+gO5v2tQayvOX6llerlR57Zw2EOTQjLAt6RpHvjwHA== +hardhat@^2.22.18: + version "2.22.18" + resolved "https://registry.yarnpkg.com/hardhat/-/hardhat-2.22.18.tgz#e299a26a67b521bbb225370eb47a032d4e097e3a" + integrity sha512-2+kUz39gvMo56s75cfLBhiFedkQf+gXdrwCcz4R/5wW0oBdwiyfj2q9BIkMoaA0WIGYYMU2I1Cc4ucTunhfjzw== dependencies: "@ethersproject/abi" "^5.1.2" "@metamask/eth-sig-util" "^4.0.0" - "@nomicfoundation/edr" "^0.6.4" + "@nomicfoundation/edr" "^0.7.0" "@nomicfoundation/ethereumjs-common" "4.0.4" "@nomicfoundation/ethereumjs-tx" "5.0.4" "@nomicfoundation/ethereumjs-util" "9.0.4" @@ -18153,7 +18153,16 @@ string-natural-compare@^3.0.1: resolved "https://registry.yarnpkg.com/string-natural-compare/-/string-natural-compare-3.0.1.tgz#7a42d58474454963759e8e8b7ae63d71c1e7fdf4" integrity sha512-n3sPwynL1nwKi3WJ6AIsClwBMa0zTi54fn2oLU6ndfTSIO05xaznjSf15PcBZU6FNWbmN5Q6cxT4V5hGvB4taw== -"string-width-cjs@npm:string-width@^4.2.0", "string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.2, string-width@^4.2.3: +"string-width-cjs@npm:string-width@^4.2.0": + version "4.2.3" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" + integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.1" + +"string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.2, string-width@^4.2.3: version "4.2.3" resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== @@ -18262,7 +18271,7 @@ string_decoder@~1.1.1: dependencies: safe-buffer "~5.1.0" -"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1: +"strip-ansi-cjs@npm:strip-ansi@^6.0.1": version "6.0.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== @@ -18276,6 +18285,13 @@ strip-ansi@^5.2.0: dependencies: ansi-regex "^4.1.0" +strip-ansi@^6.0.0, strip-ansi@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" + integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== + dependencies: + ansi-regex "^5.0.1" + strip-ansi@^7.0.1, strip-ansi@^7.1.0: version "7.1.0" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-7.1.0.tgz#d5b6568ca689d8561370b0707685d22434faff45" @@ -20324,7 +20340,7 @@ workerpool@^6.5.1: resolved "https://registry.yarnpkg.com/workerpool/-/workerpool-6.5.1.tgz#060f73b39d0caf97c6db64da004cd01b4c099544" integrity sha512-Fs4dNYcsdpYSAfVxhnl1L5zTksjvOJxtC5hzMNl+1t9B8hTJTdKDyZ5ju7ztgPy+ft9tBFXoOlDNiOT9WUXZlA== -"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0: +"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0": version "7.0.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== @@ -20342,6 +20358,15 @@ wrap-ansi@^6.0.1, wrap-ansi@^6.2.0: string-width "^4.1.0" strip-ansi "^6.0.0" +wrap-ansi@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" + integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== + dependencies: + ansi-styles "^4.0.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" + wrap-ansi@^8.0.1, wrap-ansi@^8.1.0: version "8.1.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214" From ec1d9210a7a11f8f0d7ae55d689967ea4600c5f6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 22 Jan 2025 12:56:19 +0100 Subject: [PATCH 10/44] chore(deps-dev): bump @types/xml2js from 0.4.13 to 0.4.14 (#3027) Bumps [@types/xml2js](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/xml2js) from 0.4.13 to 0.4.14. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/xml2js) --- updated-dependencies: - dependency-name: "@types/xml2js" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/apps/job-launcher/server/package.json | 2 +- yarn.lock | 9 +-------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/packages/apps/job-launcher/server/package.json b/packages/apps/job-launcher/server/package.json index 3844b2d54e..599e215cd3 100644 --- a/packages/apps/job-launcher/server/package.json +++ b/packages/apps/job-launcher/server/package.json @@ -71,7 +71,7 @@ "@types/json-stable-stringify": "^1.0.36", "@types/node": "22.10.5", "@types/supertest": "^6.0.2", - "@types/xml2js": "0.4.13", + "@types/xml2js": "0.4.14", "@types/zxcvbn": "4.4.5", "@typescript-eslint/eslint-plugin": "^5.0.0", "@typescript-eslint/parser": "^5.0.0", diff --git a/yarn.lock b/yarn.lock index bdaed99323..fcef811eff 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5860,14 +5860,7 @@ dependencies: "@types/node" "*" -"@types/xml2js@0.4.13": - version "0.4.13" - resolved "https://registry.yarnpkg.com/@types/xml2js/-/xml2js-0.4.13.tgz#219134d550c21e2f1d7b0e2fbb9174144c6053ed" - integrity sha512-nuT42GzgoUa4zZgBoF4d+Zqc12/FlVxXCT4xU6j3RfqTFVQWrUAClI/0sNJ5ImM9Wv6KB42KMG2xsVMn4cSBzA== - dependencies: - "@types/node" "*" - -"@types/xml2js@^0.4.14": +"@types/xml2js@0.4.14", "@types/xml2js@^0.4.14": version "0.4.14" resolved "https://registry.yarnpkg.com/@types/xml2js/-/xml2js-0.4.14.tgz#5d462a2a7330345e2309c6b549a183a376de8f9a" integrity sha512-4YnrRemBShWRO2QjvUin8ESA41rH+9nQGLUGZV/1IDhi3SL9OhdpNC/MrulTWuptXKwhx/aDxE7toV0f/ypIXQ== From 479f6ed1a9b32d93a420b58dde36ce8899abd5d2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 22 Jan 2025 12:56:43 +0100 Subject: [PATCH 11/44] chore(deps): bump react-number-format from 5.4.2 to 5.4.3 (#3026) Bumps [react-number-format](https://github.com/s-yadav/react-number-format) from 5.4.2 to 5.4.3. - [Release notes](https://github.com/s-yadav/react-number-format/releases) - [Commits](https://github.com/s-yadav/react-number-format/compare/v5.4.2...v5.4.3) --- updated-dependencies: - dependency-name: react-number-format dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/apps/dashboard/ui-2024/package.json | 2 +- packages/apps/human-app/frontend/package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/apps/dashboard/ui-2024/package.json b/packages/apps/dashboard/ui-2024/package.json index 0686f5d3b6..64c45c4ce6 100644 --- a/packages/apps/dashboard/ui-2024/package.json +++ b/packages/apps/dashboard/ui-2024/package.json @@ -29,7 +29,7 @@ "node-sass": "^9.0.0", "react": "^18.2.0", "react-dom": "^18.2.0", - "react-number-format": "^5.4.0", + "react-number-format": "^5.4.3", "react-router-dom": "^6.23.1", "recharts": "^2.13.0-alpha.4", "simplebar-react": "^3.2.5", diff --git a/packages/apps/human-app/frontend/package.json b/packages/apps/human-app/frontend/package.json index d7ad7ecabe..e814adced6 100644 --- a/packages/apps/human-app/frontend/package.json +++ b/packages/apps/human-app/frontend/package.json @@ -41,7 +41,7 @@ "react-hook-form": "^7.53.2", "react-i18next": "^15.1.0", "react-imask": "^7.4.0", - "react-number-format": "^5.3.4", + "react-number-format": "^5.4.3", "react-router-dom": "^6.22.0", "viem": "^2.21.44", "vite-plugin-svgr": "^4.2.0", diff --git a/yarn.lock b/yarn.lock index fcef811eff..41054eae18 100644 --- a/yarn.lock +++ b/yarn.lock @@ -16771,10 +16771,10 @@ react-native-fetch-api@^3.0.0: dependencies: p-defer "^3.0.0" -react-number-format@^5.3.4, react-number-format@^5.4.0: - version "5.4.2" - resolved "https://registry.yarnpkg.com/react-number-format/-/react-number-format-5.4.2.tgz#aec282241f36cee31da13dc5e0f364c0fc6902ab" - integrity sha512-cg//jVdS49PYDgmcYoBnMMHl4XNTMuV723ZnHD2aXYtWWWqbVF3hjQ8iB+UZEuXapLbeA8P8H+1o6ZB1lcw3vg== +react-number-format@^5.4.3: + version "5.4.3" + resolved "https://registry.yarnpkg.com/react-number-format/-/react-number-format-5.4.3.tgz#e634df907da7742faf597afab3f25f9a59689d60" + integrity sha512-VCY5hFg/soBighAoGcdE+GagkJq0230qN6jcS5sp8wQX1qy1fYN/RX7/BXkrs0oyzzwqR8/+eSUrqXbGeywdUQ== react-redux@^9.1.0: version "9.1.2" From 11fca1bf33425a45e50feeacb1eee535520fa158 Mon Sep 17 00:00:00 2001 From: portuu3 <61605646+portuu3@users.noreply.github.com> Date: Wed, 22 Jan 2025 15:47:34 +0100 Subject: [PATCH 12/44] update deployed subgraphs and update deployment workflow (#3037) --- .github/workflows/cd-subgraph.yaml | 25 +++++++++++++++++++ .../human_protocol_sdk/constants.py | 14 +++++------ .../human-protocol-sdk/src/constants.ts | 12 ++++----- 3 files changed, 38 insertions(+), 13 deletions(-) diff --git a/.github/workflows/cd-subgraph.yaml b/.github/workflows/cd-subgraph.yaml index 1d60a9b942..76d798cd17 100644 --- a/.github/workflows/cd-subgraph.yaml +++ b/.github/workflows/cd-subgraph.yaml @@ -6,6 +6,9 @@ on: label: description: 'New version label' required: true + networks: + description: 'Comma-separated list of networks to deploy' + required: true jobs: subgraph: @@ -28,24 +31,46 @@ jobs: uses: actions/setup-node@v3 with: node-version: '18.20.1' + - name: Filter Networks + id: filter_networks + run: | + INPUT_NETWORKS="${{ github.event.inputs.networks }}" + IFS=',' read -ra NETWORK_LIST <<< "$INPUT_NETWORKS" + echo "Input networks: $INPUT_NETWORKS" + echo "Current matrix network: ${{ matrix.network.name }}" + MATCH=false + for network in "${NETWORK_LIST[@]}"; do + if [[ "${network}" == "${{ matrix.network.name }}" ]]; then + MATCH=true + break + fi + done + echo "Match found: $MATCH" + echo "::set-output name=continue::$MATCH" - run: npm install --global yarn && yarn name: Install dependencies + if: steps.filter_networks.outputs.continue == 'true' - run: yarn build name: Build core package working-directory: ./packages/core + if: steps.filter_networks.outputs.continue == 'true' - run: yarn global add @graphprotocol/graph-cli@0.71.2 name: Install Graph CLI + if: steps.filter_networks.outputs.continue == 'true' - run: graph auth --studio ${API_KEY} name: Authenticate Graph CLI env: API_KEY: ${{ secrets.HP_GRAPH_API_KEY }} + if: steps.filter_networks.outputs.continue == 'true' - run: yarn generate && yarn build name: Generate and build Subgraph working-directory: ./packages/sdk/typescript/subgraph env: NETWORK: ${{ matrix.network.name }} + if: steps.filter_networks.outputs.continue == 'true' - run: graph deploy --studio ${NETWORK} -l ${{ github.event.inputs.label }} name: Deploy Subgraph working-directory: ./packages/sdk/typescript/subgraph env: NETWORK: ${{ matrix.network.name }} + if: steps.filter_networks.outputs.continue == 'true' diff --git a/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/constants.py b/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/constants.py index ea55e4a4b2..a276a05962 100644 --- a/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/constants.py +++ b/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/constants.py @@ -36,7 +36,7 @@ class LeaderCategory(Enum): "https://api.studio.thegraph.com/query/74256/ethereum/version/latest" ), "subgraph_url_api_key": ( - "https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmNTdYHpQLW4sbrCxihXNdQwhxa2zdyu1yPkCUuTbqESba" + "https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmWeaETaRqxX2eiFpPPpdn3q75fUKPzXzq32HR1MQPHsQh" ), "hmt_address": "0xd1ba9BAC957322D6e8c07a160a3A8dA11A0d2867", "factory_address": "0xD9c75a1Aa4237BB72a41E5E26bd8384f10c1f55a", @@ -45,14 +45,14 @@ class LeaderCategory(Enum): "old_subgraph_url": "", "old_factory_address": "", }, - ChainId.LOCALHOST: { + ChainId.SEPOLIA: { "title": "Sepolia", "scan_url": "https://sepolia.etherscan.io", "subgraph_url": ( "https://api.studio.thegraph.com/query/74256/sepolia/version/latest" ), "subgraph_url_api_key": ( - "https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmXVFVCLm2XxupxdKgnLRzvmkPJnpRbcoe4RNXoTqSRHsg" + "https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/Qme5eCUKPuLbEoYTj7QKXWgkFLebc9BePe8QFtT7VBu1az" ), "hmt_address": "0x792abbcC99c01dbDec49c9fa9A828a186Da45C33", "factory_address": "0x5987A5558d961ee674efe4A8c8eB7B1b5495D3bf", @@ -68,7 +68,7 @@ class LeaderCategory(Enum): "https://api.studio.thegraph.com/query/74256/bsc/version/latest" ), "subgraph_url_api_key": ( - "hthttps://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmPMS6G5evLm5ZpbnmpCfUy8bHJPwzPkZTv9DgfNdFfrCM" + "hthttps://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmafB8bJn2FRPT8d8HoB7ENy9pckSon8cKxfc5hJUsCz6r" ), "hmt_address": "0x711Fd6ab6d65A98904522d4e3586F492B989c527", "factory_address": "0x92FD968AcBd521c232f5fB8c33b342923cC72714", @@ -84,7 +84,7 @@ class LeaderCategory(Enum): "https://api.studio.thegraph.com/query/74256/bsc-testnet/version/latest" ), "subgraph_url_api_key": ( - "https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmW6JqXvhDnhRVHU6ixKVSD65U1GKWUf3xwJo8E6mTBsAu" + "https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmZcWc6hKUHvV12kggKcDXkNpe1LXvHoeU2fo26HU1VjAm" ), "hmt_address": "0xE3D74BBFa45B4bCa69FF28891fBE392f4B4d4e4d", "factory_address": "0x2bfA592DBDaF434DDcbb893B1916120d181DAD18", @@ -102,7 +102,7 @@ class LeaderCategory(Enum): "https://api.studio.thegraph.com/query/74256/polygon/version/latest" ), "subgraph_url_api_key": ( - "https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmTyCQMQd5QtogeTEuiqxnGQZa2PtgpUBsWLYwPCCFPbUe" + "https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmNkup687LE9KS85cGGaBLu7FmwP73RVqqY2NKeHUaEYjz" ), "hmt_address": "0xc748B2A084F8eFc47E086ccdDD9b7e67aEb571BF", "factory_address": "0xBDBfD2cC708199C5640C6ECdf3B0F4A4C67AdfcB", @@ -120,7 +120,7 @@ class LeaderCategory(Enum): "https://api.studio.thegraph.com/query/74256/amoy/version/latest" ), "subgraph_url_api_key": ( - "https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmawobiPUYsGNK9chtb5PvicUtaa8Jsjpwvv8dNyMVXQ9r" + "https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmTdEpKGntDfxxNXddJ62dNpBSo8mBU4VihesVnqK6WLq4" ), "hmt_address": "0x792abbcC99c01dbDec49c9fa9A828a186Da45C33", "factory_address": "0xAFf5a986A530ff839d49325A5dF69F96627E8D29", diff --git a/packages/sdk/typescript/human-protocol-sdk/src/constants.ts b/packages/sdk/typescript/human-protocol-sdk/src/constants.ts index f0e2179fb0..23a72a92ac 100644 --- a/packages/sdk/typescript/human-protocol-sdk/src/constants.ts +++ b/packages/sdk/typescript/human-protocol-sdk/src/constants.ts @@ -36,7 +36,7 @@ export const NETWORKS: { subgraphUrl: 'https://api.studio.thegraph.com/query/74256/ethereum/version/latest', subgraphUrlApiKey: - 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmNTdYHpQLW4sbrCxihXNdQwhxa2zdyu1yPkCUuTbqESba', + 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmWeaETaRqxX2eiFpPPpdn3q75fUKPzXzq32HR1MQPHsQh', oldSubgraphUrl: '', oldFactoryAddress: '', }, @@ -51,7 +51,7 @@ export const NETWORKS: { subgraphUrl: 'https://api.studio.thegraph.com/query/74256/sepolia/version/latest', subgraphUrlApiKey: - 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmXVFVCLm2XxupxdKgnLRzvmkPJnpRbcoe4RNXoTqSRHsg', + 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/Qme5eCUKPuLbEoYTj7QKXWgkFLebc9BePe8QFtT7VBu1az', oldSubgraphUrl: '', oldFactoryAddress: '', }, @@ -66,7 +66,7 @@ export const NETWORKS: { subgraphUrl: 'https://api.studio.thegraph.com/query/74256/bsc/version/latest', subgraphUrlApiKey: - 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmPMS6G5evLm5ZpbnmpCfUy8bHJPwzPkZTv9DgfNdFfrCM', + 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmafB8bJn2FRPT8d8HoB7ENy9pckSon8cKxfc5hJUsCz6r', oldSubgraphUrl: 'https://api.thegraph.com/subgraphs/name/humanprotocol/bsc', oldFactoryAddress: '0xc88bC422cAAb2ac8812de03176402dbcA09533f4', }, @@ -81,7 +81,7 @@ export const NETWORKS: { subgraphUrl: 'https://api.studio.thegraph.com/query/74256/bsc-testnet/version/latest', subgraphUrlApiKey: - 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmW6JqXvhDnhRVHU6ixKVSD65U1GKWUf3xwJo8E6mTBsAu', + 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmZcWc6hKUHvV12kggKcDXkNpe1LXvHoeU2fo26HU1VjAm', oldSubgraphUrl: 'https://api.thegraph.com/subgraphs/name/humanprotocol/bsctest', oldFactoryAddress: '0xaae6a2646c1f88763e62e0cd08ad050ea66ac46f', @@ -97,7 +97,7 @@ export const NETWORKS: { subgraphUrl: 'https://api.studio.thegraph.com/query/74256/polygon/version/latest', subgraphUrlApiKey: - 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmTyCQMQd5QtogeTEuiqxnGQZa2PtgpUBsWLYwPCCFPbUe', + 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmNkup687LE9KS85cGGaBLu7FmwP73RVqqY2NKeHUaEYjz', oldSubgraphUrl: 'https://api.thegraph.com/subgraphs/name/humanprotocol/polygon', oldFactoryAddress: '0x45eBc3eAE6DA485097054ae10BA1A0f8e8c7f794', @@ -113,7 +113,7 @@ export const NETWORKS: { subgraphUrl: 'https://api.studio.thegraph.com/query/74256/amoy/version/latest', subgraphUrlApiKey: - 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmawobiPUYsGNK9chtb5PvicUtaa8Jsjpwvv8dNyMVXQ9r', + 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmTdEpKGntDfxxNXddJ62dNpBSo8mBU4VihesVnqK6WLq4', oldSubgraphUrl: '', oldFactoryAddress: '', }, From b7554f0000b4e08af4420f8a25349f1ea141e5a8 Mon Sep 17 00:00:00 2001 From: mpblocky <185767042+mpblocky@users.noreply.github.com> Date: Thu, 23 Jan 2025 13:20:00 +0100 Subject: [PATCH 13/44] [Human App] refactor: hcaptcha components (#2991) --- .../email-verification/verify-email.page.tsx | 4 +- .../views/registration/registration.page.tsx | 4 +- .../reset-password/reset-password.page.tsx | 4 +- .../send-reset-link-success.page.tsx | 4 +- .../send-reset-link/send-reset-link.page.tsx | 4 +- .../worker/views/sign/sign-in.page.tsx | 4 +- .../worker/views/sign/sign-up.page.tsx | 4 +- .../src/shared/components/h-captcha.tsx | 65 ------------------- .../components/hcaptcha/h-captcha-form.tsx | 42 ++++++++++++ .../shared/components/hcaptcha/h-captcha.tsx | 41 ++++++++++++ .../src/shared/components/hcaptcha/types.ts | 3 + 11 files changed, 100 insertions(+), 79 deletions(-) delete mode 100644 packages/apps/human-app/frontend/src/shared/components/h-captcha.tsx create mode 100644 packages/apps/human-app/frontend/src/shared/components/hcaptcha/h-captcha-form.tsx create mode 100644 packages/apps/human-app/frontend/src/shared/components/hcaptcha/h-captcha.tsx create mode 100644 packages/apps/human-app/frontend/src/shared/components/hcaptcha/types.ts diff --git a/packages/apps/human-app/frontend/src/modules/worker/views/email-verification/verify-email.page.tsx b/packages/apps/human-app/frontend/src/modules/worker/views/email-verification/verify-email.page.tsx index 426c4a9c9f..ecfaef9067 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/views/email-verification/verify-email.page.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/views/email-verification/verify-email.page.tsx @@ -17,7 +17,7 @@ import { } from '@/modules/worker/services/resend-email-verification'; import { Alert } from '@/shared/components/ui/alert'; import { getErrorMessageForError } from '@/shared/errors'; -import { FormCaptcha } from '@/shared/components/h-captcha'; +import { HCaptchaForm } from '@/shared/components/hcaptcha/h-captcha-form'; import { Button } from '@/shared/components/ui/button'; import { useAuth } from '@/modules/auth/hooks/use-auth'; import { routerPaths } from '@/router/router-paths'; @@ -118,7 +118,7 @@ export function VerifyEmailWorkerPage() { {isAuthenticated ? ( <> - diff --git a/packages/apps/human-app/frontend/src/modules/worker/views/registration/registration.page.tsx b/packages/apps/human-app/frontend/src/modules/worker/views/registration/registration.page.tsx index 0e006de11c..b39c744ef8 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/views/registration/registration.page.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/views/registration/registration.page.tsx @@ -4,7 +4,7 @@ import { FormProvider, useForm } from 'react-hook-form'; import { useTranslation } from 'react-i18next'; import { useNavigate, useParams } from 'react-router-dom'; import { zodResolver } from '@hookform/resolvers/zod'; -import { FormCaptcha } from '@/shared/components/h-captcha'; +import { HCaptchaForm } from '@/shared/components/hcaptcha/h-captcha-form'; import { Button } from '@/shared/components/ui/button'; import { type RegistrationInExchangeOracleDto, @@ -122,7 +122,7 @@ export function RegistrationPage() { } > - diff --git a/packages/apps/human-app/frontend/src/modules/worker/views/reset-password/reset-password.page.tsx b/packages/apps/human-app/frontend/src/modules/worker/views/reset-password/reset-password.page.tsx index d3ec835c62..bd2ba7d871 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/views/reset-password/reset-password.page.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/views/reset-password/reset-password.page.tsx @@ -18,7 +18,7 @@ import { import { Alert } from '@/shared/components/ui/alert'; import { getErrorMessageForError } from '@/shared/errors'; import { routerPaths } from '@/router/router-paths'; -import { FormCaptcha } from '@/shared/components/h-captcha'; +import { HCaptchaForm } from '@/shared/components/hcaptcha/h-captcha-form'; import { useResetMutationErrors } from '@/shared/hooks/use-reset-mutation-errors'; export function ResetPasswordWorkerPage() { @@ -81,7 +81,7 @@ export function ResetPasswordWorkerPage() { label={t('worker.resetPassword.fields.confirm')} name="confirmPassword" /> - diff --git a/packages/apps/human-app/frontend/src/modules/worker/views/send-reset-link/send-reset-link-success.page.tsx b/packages/apps/human-app/frontend/src/modules/worker/views/send-reset-link/send-reset-link-success.page.tsx index f0f61811f8..8f3ca93ef2 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/views/send-reset-link/send-reset-link-success.page.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/views/send-reset-link/send-reset-link-success.page.tsx @@ -15,7 +15,7 @@ import { } from '@/modules/worker/services/send-reset-link'; import { Alert } from '@/shared/components/ui/alert'; import { getErrorMessageForError } from '@/shared/errors'; -import { FormCaptcha } from '@/shared/components/h-captcha'; +import { HCaptchaForm } from '@/shared/components/hcaptcha/h-captcha-form'; import { MailTo } from '@/shared/components/ui/mail-to'; import { useResetMutationErrors } from '@/shared/hooks/use-reset-mutation-errors'; import { useColorMode } from '@/shared/hooks/use-color-mode'; @@ -90,7 +90,7 @@ export function SendResetLinkWorkerSuccessPage() { values={{ email }} /> - + - - - )} - - ); -} diff --git a/packages/apps/human-app/frontend/src/shared/components/ui/page-card-loader.tsx b/packages/apps/human-app/frontend/src/shared/components/ui/page-card-loader.tsx deleted file mode 100644 index 9ff9424a91..0000000000 --- a/packages/apps/human-app/frontend/src/shared/components/ui/page-card-loader.tsx +++ /dev/null @@ -1,131 +0,0 @@ -import type { SxProps, Theme } from '@mui/material'; -import { Grid } from '@mui/material'; -import { useNavigate } from 'react-router-dom'; -import { useEffect } from 'react'; -import { t } from 'i18next'; -import { Button } from '@/shared/components/ui/button'; -import { breakpoints } from '@/shared/styles/breakpoints'; -import { routerPaths } from '@/router/router-paths'; -import { colorPalette as constColorPalette } from '@/shared/styles/color-palette'; -import { useBackgroundColorStore } from '@/shared/hooks/use-background-store'; -import { Loader } from '@/shared/components/ui/loader'; -import { Alert } from '@/shared/components/ui/alert'; -import { darkColorPalette as constDarkColorPalette } from '@/shared/styles/dark-color-palette'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; - -const commonStyles: SxProps = { - flexDirection: 'column', - justifyContent: 'center', - alignItems: 'center', - borderRadius: '20px', - minHeight: '70vh', - maxWidth: '1600px', - width: '100%', - background: constColorPalette.white, -}; - -const commonStylesDark: SxProps = { - flexDirection: 'column', - justifyContent: 'center', - alignItems: 'center', - borderRadius: '20px', - minHeight: '70vh', - maxWidth: '1600px', - width: '100%', - background: constDarkColorPalette.paper.main, - [breakpoints.mobile]: { - background: constDarkColorPalette.backgroundColor, - }, -}; - -export function PageCardLoader({ - withLayoutBackground = true, - cardMaxWidth = '100%', -}: { - cardMaxWidth?: string; - withLayoutBackground?: boolean; -}) { - const { isDarkMode } = useColorMode(); - const { setGrayBackground } = useBackgroundColorStore(); - - useEffect(() => { - if (withLayoutBackground) { - setGrayBackground(); - } - // eslint-disable-next-line react-hooks/exhaustive-deps -- call this effect once - }, []); - - const commonStyleForTheme = isDarkMode ? commonStylesDark : commonStyles; - - const sx = cardMaxWidth - ? { - ...commonStyleForTheme, - maxWidth: cardMaxWidth, - } - : commonStyleForTheme; - - return ( - - - - ); -} -export function PageCardError({ - errorMessage, - children, - withLayoutBackground, - cardMaxWidth = '100%', -}: - | { - errorMessage: string; - children?: never; - cardMaxWidth?: string; - withLayoutBackground?: boolean; - } - | { - errorMessage?: never; - children: React.ReactElement; - cardMaxWidth?: string; - withLayoutBackground?: boolean; - }) { - const { isDarkMode } = useColorMode(); - const navigate = useNavigate(); - const { setGrayBackground } = useBackgroundColorStore(); - const commonStyleForTheme = isDarkMode ? commonStylesDark : commonStyles; - - const sx = cardMaxWidth - ? { ...commonStyleForTheme, maxWidth: cardMaxWidth } - : commonStyleForTheme; - - useEffect(() => { - if (withLayoutBackground) { - setGrayBackground(); - } - // eslint-disable-next-line react-hooks/exhaustive-deps -- call this effect once - }, []); - - return ( - - {children ? ( - children - ) : ( - <> - - {errorMessage} - - - - - )} - - ); -} diff --git a/packages/apps/human-app/frontend/src/shared/components/ui/page-card/index.ts b/packages/apps/human-app/frontend/src/shared/components/ui/page-card/index.ts new file mode 100644 index 0000000000..91f6dbc39d --- /dev/null +++ b/packages/apps/human-app/frontend/src/shared/components/ui/page-card/index.ts @@ -0,0 +1,3 @@ +export * from './page-card'; +export * from './page-card-error'; +export * from './page-card-loader'; diff --git a/packages/apps/human-app/frontend/src/shared/components/ui/page-card/page-card-error.tsx b/packages/apps/human-app/frontend/src/shared/components/ui/page-card/page-card-error.tsx new file mode 100644 index 0000000000..91830fb2af --- /dev/null +++ b/packages/apps/human-app/frontend/src/shared/components/ui/page-card/page-card-error.tsx @@ -0,0 +1,49 @@ +import { Grid } from '@mui/material'; +import { useNavigate } from 'react-router-dom'; +import { t } from 'i18next'; +import { Button } from '@/shared/components/ui/button'; +import { routerPaths } from '@/router/router-paths'; +import { Alert } from '@/shared/components/ui/alert'; +import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { commonDarkPageCardStyles, commonPageCardStyles } from './styles'; +import { type ErrorMessageProps } from './types'; + +export function PageCardError({ + errorMessage, + cardMaxWidth = '100%', +}: Readonly) { + const { isDarkMode } = useColorMode(); + const navigate = useNavigate(); + + const commonStyleForTheme = isDarkMode + ? commonDarkPageCardStyles + : commonPageCardStyles; + + const sx = cardMaxWidth + ? { ...commonStyleForTheme, maxWidth: cardMaxWidth } + : commonStyleForTheme; + + return ( + + + {errorMessage} + + + + + ); +} diff --git a/packages/apps/human-app/frontend/src/shared/components/ui/page-card/page-card-loader.tsx b/packages/apps/human-app/frontend/src/shared/components/ui/page-card/page-card-loader.tsx new file mode 100644 index 0000000000..fc33fcd7f0 --- /dev/null +++ b/packages/apps/human-app/frontend/src/shared/components/ui/page-card/page-card-loader.tsx @@ -0,0 +1,26 @@ +import { Grid } from '@mui/material'; +import { Loader } from '@/shared/components/ui/loader'; +import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { commonDarkPageCardStyles, commonPageCardStyles } from './styles'; +import { type CommonProps } from './types'; + +export function PageCardLoader({ cardMaxWidth = '100%' }: CommonProps) { + const { isDarkMode } = useColorMode(); + + const commonStyleForTheme = isDarkMode + ? commonDarkPageCardStyles + : commonPageCardStyles; + + const sx = cardMaxWidth + ? { + ...commonStyleForTheme, + maxWidth: cardMaxWidth, + } + : commonStyleForTheme; + + return ( + + + + ); +} diff --git a/packages/apps/human-app/frontend/src/shared/components/ui/page-card.tsx b/packages/apps/human-app/frontend/src/shared/components/ui/page-card/page-card.tsx similarity index 62% rename from packages/apps/human-app/frontend/src/shared/components/ui/page-card.tsx rename to packages/apps/human-app/frontend/src/shared/components/ui/page-card/page-card.tsx index 36b53f435e..6d1ed25f48 100644 --- a/packages/apps/human-app/frontend/src/shared/components/ui/page-card.tsx +++ b/packages/apps/human-app/frontend/src/shared/components/ui/page-card/page-card.tsx @@ -1,20 +1,14 @@ -import type { SxProps, Theme } from '@mui/material'; import { Grid, Typography, styled } from '@mui/material'; import ArrowBackIcon from '@mui/icons-material/ArrowBack'; import { useNavigate } from 'react-router-dom'; -import { useEffect } from 'react'; import { t } from 'i18next'; import { Button } from '@/shared/components/ui/button'; import { breakpoints } from '@/shared/styles/breakpoints'; import { routerPaths } from '@/router/router-paths'; -import { colorPalette as constColorPalette } from '@/shared/styles/color-palette'; -import { useBackgroundColorStore } from '@/shared/hooks/use-background-store'; -import { - darkColorPalette as constDarkColorPalette, - onlyDarkModeColor, -} from '@/shared/styles/dark-color-palette'; +import { onlyDarkModeColor } from '@/shared/styles/dark-color-palette'; import { useColorMode } from '@/shared/hooks/use-color-mode'; import { useIsMobile } from '@/shared/hooks/use-is-mobile'; +import { commonDarkPageCardStyles, commonPageCardStyles } from './styles'; const IconWrapper = styled('div')(() => ({ width: '40px', @@ -30,44 +24,18 @@ const IconWrapper = styled('div')(() => ({ fontSize: '26px', })); -const commonStyles: SxProps = { - flexDirection: 'column', - justifyContent: 'center', - alignItems: 'center', - borderRadius: '20px', - minHeight: '70vh', - maxWidth: '1600px', - width: '100%', - background: constColorPalette.white, -}; - -const commonStylesDark: SxProps = { - flexDirection: 'column', - justifyContent: 'center', - alignItems: 'center', - borderRadius: '20px', - minHeight: '70vh', - maxWidth: '1600px', - width: '100%', - background: constDarkColorPalette.paper.main, - [breakpoints.mobile]: { - background: constDarkColorPalette.backgroundColor, - }, -}; - -type ButtonsProps = string | -1 | (() => void); +type NavigationTarget = string | (() => void); -interface FormCardProps { +interface PageCardProps { children: React.JSX.Element; maxContentWidth?: string; childrenMaxWidth?: string; title?: React.JSX.Element | string; alert?: React.JSX.Element; - backArrowPath?: ButtonsProps; - cancelRouterPathOrCallback?: ButtonsProps; - hiddenCancelButton?: boolean; - hiddenArrowButton?: boolean; - withLayoutBackground?: boolean; + backNavigation?: NavigationTarget; + cancelNavigation?: NavigationTarget; + showCancelButton?: boolean; + showBackButton?: boolean; loader?: boolean; } @@ -75,18 +43,17 @@ export function PageCard({ children, title, alert, + backNavigation, maxContentWidth = '376px', childrenMaxWidth = '486px', - backArrowPath = -1, - cancelRouterPathOrCallback = routerPaths.homePage, - withLayoutBackground = true, - hiddenCancelButton = false, - hiddenArrowButton = false, -}: FormCardProps) { + cancelNavigation = routerPaths.homePage, + showCancelButton = true, + showBackButton = true, +}: Readonly) { const { isDarkMode, colorPalette } = useColorMode(); - const { setGrayBackground } = useBackgroundColorStore(); const navigate = useNavigate(); const isMobile = useIsMobile('md'); + const contentStyles = { maxWidth: maxContentWidth, width: '100%', @@ -95,34 +62,35 @@ export function PageCard({ }, }; - useEffect(() => { - if (withLayoutBackground && !isDarkMode) { - setGrayBackground(); - } - // eslint-disable-next-line react-hooks/exhaustive-deps -- call this effect once - }, []); - - const goBack = (pathOrCallback: ButtonsProps) => { - if (pathOrCallback instanceof Function) { - pathOrCallback(); + const goBack = (navigationTarget: NavigationTarget | undefined) => { + if (navigationTarget instanceof Function) { + navigationTarget(); return; } - if (typeof pathOrCallback === 'string') { - navigate(pathOrCallback); + if (typeof navigationTarget === 'string') { + navigate(navigationTarget); return; } - navigate(pathOrCallback); + navigate(-1); + }; + + const handleBackButton = () => { + goBack(backNavigation); + }; + + const handleCancelButton = () => { + goBack(cancelNavigation); }; return ( - {!hiddenCancelButton && ( + {showCancelButton && ( - + setIsModalOpen(false)} + initialData={filteredData} + onSave={handleSaveChanges} + /> + + + Please note: The data displayed is fetched from the subgraph and may + take some time to update. As a result, the table might temporarily show + outdated information. + + + ); +}; + +export default KVStoreTable; diff --git a/packages/apps/staking/src/components/modals/BaseModal.tsx b/packages/apps/staking/src/components/modals/BaseModal.tsx index e20823c06b..a5eef857a6 100644 --- a/packages/apps/staking/src/components/modals/BaseModal.tsx +++ b/packages/apps/staking/src/components/modals/BaseModal.tsx @@ -1,14 +1,15 @@ import React from 'react'; -import { Modal, Box, IconButton } from '@mui/material'; +import { Modal, Box, IconButton, SxProps, Theme } from '@mui/material'; import CloseIcon from '@mui/icons-material/Close'; type Props = { open: boolean; onClose: () => void; children: React.ReactNode; + sx?: SxProps; }; -const BaseModal: React.FC = ({ open, onClose, children }) => { +const BaseModal: React.FC = ({ open, onClose, children, sx }) => { return ( = ({ open, onClose, children }) => { backgroundColor: '#fff', borderRadius: 2, position: 'relative', + ...sx, }} > void; + initialData: IKVStore[]; + onSave: (keys: string[], values: string[]) => Promise; +}; + +const KVStoreModal: React.FC = ({ + open, + onClose, + initialData, + onSave, +}) => { + const [formData, setFormData] = useState< + { key: string; value: string; isCustom?: boolean }[] + >([]); + const [pendingChanges, setPendingChanges] = useState< + { key: string; value: string }[] + >([]); + const [loading, setLoading] = useState(false); + const { showError } = useSnackbar(); + + useEffect(() => { + if (open) { + const preparedData = initialData.map((item) => ({ + ...item, + isCustom: !Object.values(KVStoreKeys).includes(item.key), + })); + setFormData(preparedData); + setPendingChanges([]); + } + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [open]); + + const updatePendingChanges = (key: string, value: string) => { + setPendingChanges((prev) => { + const existingChangeIndex = prev.findIndex( + (change) => change.key === key + ); + const newChanges = [...prev]; + + if (existingChangeIndex >= 0) { + newChanges[existingChangeIndex].value = value; + } else { + newChanges.push({ key, value }); + } + + return newChanges; + }); + }; + + const handleKeyChange = (index: number, newKey: string) => { + if (formData.some((item, i) => i !== index && item.key === newKey)) { + showError('Duplicate keys are not allowed.'); + return; + } + + const updatedData = [...formData]; + updatedData[index].key = newKey; + updatedData[index].isCustom = newKey === 'custom'; + + if (newKey === 'custom') { + updatedData[index].key = ''; + } + + setFormData(updatedData); + + if (!updatedData[index].isCustom) { + updatePendingChanges(newKey, updatedData[index].value); + } + }; + + const handleCustomKeyChange = (index: number, customKey: string) => { + if (formData.some((item, i) => i !== index && item.key === customKey)) { + showError('Duplicate keys are not allowed.'); + return; + } + + const updatedData = [...formData]; + updatedData[index].key = customKey; + + setFormData(updatedData); + }; + + const handleValueChange = (index: number, newValue: string) => { + const updatedData = [...formData]; + updatedData[index].value = newValue; + + if (!updatedData[index].isCustom) { + updatePendingChanges(updatedData[index].key, newValue); + } + setFormData(updatedData); + }; + + const handleDelete = (index: number) => { + const updatedData = formData.filter((_, i) => i !== index); + updatePendingChanges(formData[index].key, ''); + setFormData(updatedData); + }; + + const handleAddField = () => { + setFormData((prev) => [...prev, { key: '', value: '' }]); + }; + + const handleSave = async () => { + setLoading(true); + try { + const customChanges = formData + .filter( + (item) => + item.isCustom && + !initialData.some( + (data) => data.key === item.key && data.value === item.value + ) + ) + .map((item) => ({ + key: item.key, + value: item.value, + })); + const finalChanges = [...pendingChanges, ...customChanges].filter( + (item) => item.key !== '' + ); + const keys = finalChanges.map((item) => item.key); + const values = finalChanges.map((item) => item.value); + if (finalChanges.length > 0) { + await onSave(keys, values); + } + onClose(); + } finally { + setLoading(false); + } + }; + + return ( + + + Edit KVStore + + + {formData.map((item, index) => ( + + + + + Key + + + {item.isCustom && ( + + handleCustomKeyChange(index, e.target.value) + } + fullWidth + sx={{ flex: 0.7 }} + disabled={initialData.some((data) => data.key === item.key)} + /> + )} + + + + {item.key === 'role' ? ( + + + Value + + + + ) : item.key === 'category' ? ( + + + Value + + + + ) : ( + handleValueChange(index, e.target.value)} + type={item.key === 'fee' ? 'number' : 'text'} + inputProps={{ min: item.key === 'fee' ? '0' : undefined }} + /> + )} + + + + handleDelete(index)}> + + + + + + ))} + + + + + + + ); +}; + +export default KVStoreModal; diff --git a/packages/apps/staking/src/components/modals/UnstakeModal.tsx b/packages/apps/staking/src/components/modals/UnstakeModal.tsx index 55b8fd1ec4..486038e748 100644 --- a/packages/apps/staking/src/components/modals/UnstakeModal.tsx +++ b/packages/apps/staking/src/components/modals/UnstakeModal.tsx @@ -15,11 +15,13 @@ type Props = { }; const UnstakeModal: React.FC = ({ open, onClose }) => { - const { stakedAmount, lockedAmount, handleUnstake } = useStakeContext(); + const { stakedAmount, lockedAmount, withdrawableAmount, handleUnstake } = + useStakeContext(); const [amount, setAmount] = useState(''); const [loading, setLoading] = useState(false); - const availableAmount = Number(stakedAmount) - Number(lockedAmount); + const availableAmount = + Number(stakedAmount) - Number(lockedAmount) - Number(withdrawableAmount); const handleInputChange = (e: React.ChangeEvent) => { const value = e.target.value; diff --git a/packages/apps/staking/src/constants/chains.ts b/packages/apps/staking/src/constants/chains.ts index 7d7d5ffea3..c079b7577f 100644 --- a/packages/apps/staking/src/constants/chains.ts +++ b/packages/apps/staking/src/constants/chains.ts @@ -35,13 +35,6 @@ if (SUPPORTED_CHAIN_IDS.length === 0) { ); } -export const CHAIN_ID_BY_NAME: Record = { - 'Polygon Amoy': ChainId.POLYGON_AMOY, - 'Binance Smart Chain': ChainId.BSC_MAINNET, - 'Ethereum Sepolia': ChainId.SEPOLIA, - Localhost: ChainId.LOCALHOST, -}; - export const LOCALHOST = { id: 1338, name: 'Localhost', diff --git a/packages/apps/staking/src/constants/index.tsx b/packages/apps/staking/src/constants/index.tsx deleted file mode 100644 index 60a4cd3b44..0000000000 --- a/packages/apps/staking/src/constants/index.tsx +++ /dev/null @@ -1 +0,0 @@ -export const HUMAN_SIGNATURE_KEY = 'human-signature'; diff --git a/packages/apps/staking/src/contexts/kvstore.tsx b/packages/apps/staking/src/contexts/kvstore.tsx new file mode 100644 index 0000000000..385eddcccd --- /dev/null +++ b/packages/apps/staking/src/contexts/kvstore.tsx @@ -0,0 +1,27 @@ +import React, { createContext, useContext } from 'react'; +import { useKVStore } from '../hooks/useKVStore'; + +const KVStoreContext = createContext | undefined>( + undefined +); + +export const KVStoreProvider: React.FC<{ children: React.ReactNode }> = ({ + children, +}) => { + const kvStore = useKVStore(); + + return ( + + {children} + + ); +}; + +// eslint-disable-next-line react-refresh/only-export-components +export const useKVStoreContext = () => { + const context = useContext(KVStoreContext); + if (!context) { + throw new Error('useKVStoreContext must be used within a KVStoreProvider'); + } + return context; +}; diff --git a/packages/apps/staking/src/contexts/stake.tsx b/packages/apps/staking/src/contexts/stake.tsx index c7f00e5b01..7334fb62ea 100644 --- a/packages/apps/staking/src/contexts/stake.tsx +++ b/packages/apps/staking/src/contexts/stake.tsx @@ -15,6 +15,7 @@ export const StakeProvider: React.FC<{ children: React.ReactNode }> = ({ ); }; +// eslint-disable-next-line react-refresh/only-export-components export const useStakeContext = () => { const context = useContext(StakeContext); if (!context) { diff --git a/packages/apps/staking/src/hooks/useKVStore.ts b/packages/apps/staking/src/hooks/useKVStore.ts new file mode 100644 index 0000000000..694c5e230f --- /dev/null +++ b/packages/apps/staking/src/hooks/useKVStore.ts @@ -0,0 +1,110 @@ +import { ChainId, IKVStore, KVStoreClient } from '@human-protocol/sdk'; +import { ethers } from 'ethers'; +import { useEffect, useState } from 'react'; +import { useAccount, useWalletClient } from 'wagmi'; +import { SUPPORTED_CHAIN_IDS } from '../constants/chains'; +import { useSnackbar } from '../providers/SnackProvider'; +import { parseErrorMessage } from '../utils/string'; +import { getKVStoreData } from '../services/dashboard'; + +export const useKVStore = () => { + const { address, chainId } = useAccount(); + const { data: walletClient } = useWalletClient(); + const { showError, openSnackbar } = useSnackbar(); + + const [kvStore, setKVStore] = useState([]); + const [loading, setLoading] = useState(false); + const [kvstoreClient, setKVStoreClient] = useState( + null + ); + + const fetchKVStore = async () => { + setLoading(true); + try { + if (address && chainId) { + const data = await getKVStoreData(address, chainId); + setKVStore(data); + } + } catch (err) { + console.error(err); + showError('Failed to fetch KVStore data'); + setKVStore([]); + } finally { + setLoading(false); + } + }; + + useEffect(() => { + const initStakingClient = async () => { + try { + if (walletClient && address) { + checkSupportedChain(); + const provider = new ethers.BrowserProvider(window.ethereum); + const signer = await provider.getSigner(); + + const client = await KVStoreClient.build(signer); + setKVStoreClient(client); + await fetchKVStore(); + } + } catch (error) { + showError(parseErrorMessage(error)); + resetData(); + } + }; + + initStakingClient(); + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [walletClient, address, chainId]); + + const checkSupportedChain = () => { + const isSupportedChain = SUPPORTED_CHAIN_IDS.includes(chainId as ChainId); + if (!isSupportedChain) { + resetData(); + throw new Error( + 'Unsupported chain. Please switch to a supported network.' + ); + } + }; + + const resetData = () => { + setKVStore([]); + }; + + const set = async (key: string, value: string) => { + setLoading(true); + try { + checkSupportedChain(); + if (kvstoreClient && key) { + await kvstoreClient.set(key, value); + await new Promise((resolve) => setTimeout(resolve, 5000)); + openSnackbar('KVStore updated successfully!', 'success'); + await fetchKVStore(); + } + } catch (err) { + showError(parseErrorMessage(err)); + console.error(err); + } finally { + setLoading(false); + } + }; + + const setBulk = async (keys: string[], values: string[]) => { + setLoading(true); + try { + checkSupportedChain(); + if (kvstoreClient) { + await kvstoreClient.setBulk(keys, values); + await new Promise((resolve) => setTimeout(resolve, 5000)); + openSnackbar('KVStore updated successfully!', 'success'); + await fetchKVStore(); + } + } catch (err) { + showError(parseErrorMessage(err)); + console.error(err); + } finally { + setLoading(false); + } + }; + + return { kvStore, fetchKVStore, set, setBulk, loading }; +}; diff --git a/packages/apps/staking/src/hooks/useStake.ts b/packages/apps/staking/src/hooks/useStake.ts index ddd8e3be70..b87dc32682 100644 --- a/packages/apps/staking/src/hooks/useStake.ts +++ b/packages/apps/staking/src/hooks/useStake.ts @@ -7,15 +7,15 @@ import { } from '@human-protocol/sdk'; import { ethers } from 'ethers'; import { useEffect, useState } from 'react'; -import { useAccount, useChainId, useWalletClient } from 'wagmi'; +import { useAccount, useWalletClient } from 'wagmi'; import { useSnackbar } from '../providers/SnackProvider'; import { parseErrorMessage } from '../utils/string'; import { formatAmount } from '../utils/units'; +import { SUPPORTED_CHAIN_IDS } from '../constants/chains'; export const useStake = () => { - const { address } = useAccount(); + const { address, chainId } = useAccount(); const { data: walletClient } = useWalletClient(); - const chainId = useChainId(); const { showError, openSnackbar } = useSnackbar(); const [stakingClient, setStakingClient] = useState( @@ -28,24 +28,42 @@ export const useStake = () => { const initStakingClient = async () => { try { if (walletClient && address) { + checkSupportedChain(); const provider = new ethers.BrowserProvider(window.ethereum); const signer = await provider.getSigner(); const client = await StakingClient.build(signer); setStakingClient(client); - await fetchStakingData(client); await fetchTokenBalance(provider, address, chainId); } } catch (error) { - showError('Invalid network'); + showError(error); + resetData(); } }; initStakingClient(); + // eslint-disable-next-line react-hooks/exhaustive-deps }, [walletClient, address, chainId]); + const checkSupportedChain = () => { + const isSupportedChain = SUPPORTED_CHAIN_IDS.includes(chainId as ChainId); + if (!isSupportedChain) { + resetData(); + throw new Error( + 'Unsupported chain. Please switch to a supported network.' + ); + } + }; + + const resetData = () => { + setStakingData(null); + setTokenBalance(0); + }; + const fetchStakingData = async (stakingClient: StakingClient) => { + checkSupportedChain(); try { const stakingInfo = await stakingClient.getStakerInfo(address!); setStakingData(stakingInfo); @@ -57,8 +75,9 @@ export const useStake = () => { const fetchTokenBalance = async ( provider: ethers.BrowserProvider, address: string, - chainId: number + chainId?: number ) => { + checkSupportedChain(); try { const tokenAddress = NETWORKS[chainId as ChainId]?.hmtAddress; if (!tokenAddress) { @@ -81,6 +100,7 @@ export const useStake = () => { const handleStake = async (amount: string) => { try { + checkSupportedChain(); if (stakingClient && amount) { const weiAmount = ethers.parseUnits(amount, 'ether'); await stakingClient.approveStake(weiAmount); @@ -100,6 +120,7 @@ export const useStake = () => { const handleUnstake = async (amount: string) => { try { + checkSupportedChain(); if (stakingClient && amount) { const weiAmount = ethers.parseUnits(amount, 'ether'); await stakingClient.unstake(weiAmount); @@ -118,6 +139,7 @@ export const useStake = () => { const handleWithdraw = async () => { try { + checkSupportedChain(); if (stakingClient) { await stakingClient.withdraw(); await fetchStakingData(stakingClient); diff --git a/packages/apps/staking/src/main.tsx b/packages/apps/staking/src/main.tsx index c0a50bc94f..42ad0ec619 100644 --- a/packages/apps/staking/src/main.tsx +++ b/packages/apps/staking/src/main.tsx @@ -12,6 +12,7 @@ import { QueryClientProvider } from './providers/QueryClientProvider'; import './assets/styles/main.scss'; import 'simplebar-react/dist/simplebar.min.css'; import { StakeProvider } from './contexts/stake'; +import { KVStoreProvider } from './contexts/kvstore'; ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render( @@ -22,7 +23,9 @@ ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render( - + + + diff --git a/packages/apps/staking/src/pages/Dashboard/index.tsx b/packages/apps/staking/src/pages/Dashboard/index.tsx index 792fa0bb2e..824238ee81 100644 --- a/packages/apps/staking/src/pages/Dashboard/index.tsx +++ b/packages/apps/staking/src/pages/Dashboard/index.tsx @@ -1,17 +1,23 @@ +import { Box, Container, Grid, Typography, useMediaQuery } from '@mui/material'; +import { useTheme } from '@mui/material/styles'; import React, { useState } from 'react'; -import { Box, Grid, Container, Typography } from '@mui/material'; +import { KVStoreIcon } from '../../assets/KVStoreIcon'; import BalanceCard from '../../components/BalanceCard'; -import StakedAmountCard from '../../components/StakedAmountCard'; import LockedAmountCard from '../../components/LockedAmountCard'; -import WithdrawableAmountCard from '../../components/WithdrawableAmountCard'; import StakeModal from '../../components/modals/StakeModal'; import UnstakeModal from '../../components/modals/UnstakeModal'; -import PageWrapper from '../../components/PageWrapper'; import NetworkStatus from '../../components/NetworkStatus'; +import PageWrapper from '../../components/PageWrapper'; +import ShadowIcon from '../../components/ShadowIcon'; +import StakedAmountCard from '../../components/StakedAmountCard'; +import KVStoreTable from '../../components/Tables/kvstore'; +import WithdrawableAmountCard from '../../components/WithdrawableAmountCard'; const Dashboard: React.FC = () => { const [stakeModalOpen, setStakeModalOpen] = useState(false); const [unstakeModalOpen, setUnstakeModalOpen] = useState(false); + const theme = useTheme(); + const isSmallScreen = useMediaQuery(theme.breakpoints.down('sm')); return ( @@ -22,11 +28,17 @@ const Dashboard: React.FC = () => { mt: 6, mb: 8, display: 'flex', + flexDirection: isSmallScreen ? 'column' : 'row', justifyContent: 'space-between', - alignItems: 'center', + alignItems: isSmallScreen ? 'flex-start' : 'center', + gap: 2, }} > - + Staking Overview @@ -52,6 +64,15 @@ const Dashboard: React.FC = () => { + + + } + /> + + diff --git a/packages/apps/staking/src/providers/WagmiProvider.tsx b/packages/apps/staking/src/providers/WagmiProvider.tsx index a0d72e5061..b684251dc0 100644 --- a/packages/apps/staking/src/providers/WagmiProvider.tsx +++ b/packages/apps/staking/src/providers/WagmiProvider.tsx @@ -1,52 +1,48 @@ import { FC, PropsWithChildren } from 'react'; import { createConfig, http, WagmiProvider as WWagmiProvider } from 'wagmi'; +import { walletConnect, coinbaseWallet } from 'wagmi/connectors'; import * as wagmiChains from 'wagmi/chains'; -import { coinbaseWallet, walletConnect } from 'wagmi/connectors'; - -import { LOCALHOST } from '../constants/chains'; +import { LOCALHOST, SUPPORTED_CHAIN_IDS } from '../constants/chains'; const projectId = import.meta.env.VITE_APP_WALLETCONNECT_PROJECT_ID; +const chainIdToChainMap: Record = { + [wagmiChains.mainnet.id]: wagmiChains.mainnet, + [wagmiChains.sepolia.id]: wagmiChains.sepolia, + [wagmiChains.bsc.id]: wagmiChains.bsc, + [wagmiChains.bscTestnet.id]: wagmiChains.bscTestnet, + [wagmiChains.polygon.id]: wagmiChains.polygon, + [wagmiChains.polygonAmoy.id]: wagmiChains.polygonAmoy, + [wagmiChains.moonbeam.id]: wagmiChains.moonbeam, + [wagmiChains.moonbaseAlpha.id]: wagmiChains.moonbaseAlpha, + [wagmiChains.avalanche.id]: wagmiChains.avalanche, + [wagmiChains.avalancheFuji.id]: wagmiChains.avalancheFuji, + [wagmiChains.xLayer.id]: wagmiChains.xLayer, + [wagmiChains.xLayerTestnet.id]: wagmiChains.xLayerTestnet, + [LOCALHOST.id]: LOCALHOST, +}; + +const supportedChains = SUPPORTED_CHAIN_IDS.map( + (id) => chainIdToChainMap[id] +).filter(Boolean); + export const wagmiConfig = createConfig({ - chains: [ - wagmiChains.mainnet, - wagmiChains.sepolia, - wagmiChains.bsc, - wagmiChains.bscTestnet, - wagmiChains.polygon, - wagmiChains.polygonAmoy, - wagmiChains.moonbeam, - wagmiChains.moonbaseAlpha, - wagmiChains.avalancheFuji, - wagmiChains.avalanche, - wagmiChains.xLayer, - wagmiChains.xLayerTestnet, - LOCALHOST, - ], + chains: supportedChains as any, connectors: [ walletConnect({ showQrModal: true, projectId: projectId ?? '', }), coinbaseWallet({ - appName: 'human-job-launcher', + appName: 'human-staking-dashboard', }), ], - transports: { - [wagmiChains.mainnet.id]: http(), - [wagmiChains.sepolia.id]: http(), - [wagmiChains.bsc.id]: http(), - [wagmiChains.bscTestnet.id]: http(), - [wagmiChains.polygon.id]: http(), - [wagmiChains.polygonAmoy.id]: http(), - [wagmiChains.moonbeam.id]: http(), - [wagmiChains.moonbaseAlpha.id]: http(), - [wagmiChains.avalanche.id]: http(), - [wagmiChains.avalancheFuji.id]: http(), - [wagmiChains.xLayer.id]: http(), - [wagmiChains.xLayerTestnet.id]: http(), - [LOCALHOST.id]: http(LOCALHOST.rpcUrls.default.http[0]), - }, + transports: Object.fromEntries( + supportedChains.map((chain) => [ + chain.id, + http(chain.rpcUrls.default.http[0]), + ]) + ), }); export const WagmiProvider: FC = ({ children }) => { diff --git a/packages/apps/staking/src/services/dashboard.ts b/packages/apps/staking/src/services/dashboard.ts new file mode 100644 index 0000000000..5900576d32 --- /dev/null +++ b/packages/apps/staking/src/services/dashboard.ts @@ -0,0 +1,20 @@ +import { IKVStore } from '@human-protocol/sdk'; +import api from '../utils/api'; + +export const getKVStoreData = async ( + address: string, + chainId: number +): Promise => { + const response = await api.get(`details/kvstore/${address}`, { + params: { chain_id: chainId }, + }); + + // Validate if response is IKVStore[] + if ( + Array.isArray(response.data) && + response.data.every((item) => 'key' in item && 'value' in item) + ) { + return response.data; + } + return []; +}; diff --git a/packages/apps/staking/src/services/job.ts b/packages/apps/staking/src/services/job.ts deleted file mode 100644 index 7861141972..0000000000 --- a/packages/apps/staking/src/services/job.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { WalletClient } from 'viem'; - -import { HUMAN_SIGNATURE_KEY } from '../constants'; -import api from '../utils/api'; - -export const solveJob = async (signer: WalletClient, body: any) => { - if (!signer.account) { - throw new Error('Account not found'); - } - - const signature = await signer.signMessage({ - account: signer.account, - message: JSON.stringify(body), - }); - await api.post('/job/solve', body, { - headers: { [HUMAN_SIGNATURE_KEY]: signature }, - }); -}; diff --git a/packages/apps/staking/src/theme.ts b/packages/apps/staking/src/theme.ts index ae150fcc8e..f8040f973e 100644 --- a/packages/apps/staking/src/theme.ts +++ b/packages/apps/staking/src/theme.ts @@ -1,154 +1,357 @@ import { createTheme } from '@mui/material/styles'; +import { + PaletteColorOptions, + PaletteColor, +} from '@mui/material/styles/createPalette'; +import { ThemeOptions } from '@mui/material'; +import { colorPalette } from './assets/styles/color-palette'; +import { CSSProperties } from 'react'; -const theme = createTheme({ +declare module '@mui/material/Typography' { + interface TypographyPropsVariantOverrides { + ['Components/Button Small']: true; + ['Components/Button Large']: true; + ['Components/Chip']: true; + ['Components/Table Header']: true; + ['H6-Mobile']: true; + body3: true; + } +} + +declare module '@mui/material/styles' { + interface TypographyVariants { + ['Components/Button Small']: CSSProperties; + ['Components/Button Large']: CSSProperties; + ['Components/Chip']: CSSProperties; + ['Components/Table Header']: CSSProperties; + ['H6-Mobile']: CSSProperties; + body3: CSSProperties; + } + + // allow configuration using `createTheme` + interface TypographyVariantsOptions { + ['Components/Button Small']?: CSSProperties; + ['Components/Button Large']?: CSSProperties; + ['Components/Chip']?: CSSProperties; + ['Components/Table Header']?: CSSProperties; + ['H6-Mobile']: CSSProperties; + body3?: CSSProperties; + } +} + +declare module '@mui/material/styles' { + interface Palette { + sky: PaletteColor; + white: PaletteColor; + textSecondary: PaletteColor; + } + interface PaletteOptions { + sky?: PaletteColorOptions; + white?: PaletteColorOptions; + textSecondary?: PaletteColorOptions; + } +} + +declare module '@mui/material/Button' { + interface ButtonPropsColorOverrides { + sky: true; + white: true; + textSecondary: true; + } +} + +declare module '@mui/material/IconButton' { + interface IconButtonPropsColorOverrides { + sky: true; + white: true; + textSecondary: true; + } +} + +declare module '@mui/material/SvgIcon' { + interface SvgIconPropsColorOverrides { + sky: true; + white: true; + textSecondary: true; + } +} + +const theme: ThemeOptions = createTheme({ palette: { primary: { - main: '#320a8d', - light: '#320a8d', - dark: '#4a148c', + main: colorPalette.primary.main, + light: colorPalette.primary.light, }, info: { - main: '#eeeeee', - light: '#f5f5f5', - dark: '#bdbdbd', + main: colorPalette.info.main, + light: colorPalette.info.light, + dark: colorPalette.info.dark, }, secondary: { - main: '#858ec6', - light: '#6309ff', - dark: '#00867d', - contrastText: '#000', + main: colorPalette.secondary.main, + light: colorPalette.secondary.light, }, text: { - primary: '#320a8d', - secondary: '#858ec6', + primary: colorPalette.primary.main, + secondary: colorPalette.fog.main, }, - success: { - main: '#0E976E', + sky: { + main: colorPalette.sky.main, + light: colorPalette.sky.light, + dark: colorPalette.sky.dark, + contrastText: colorPalette.sky.contrastText, }, - warning: { - main: '#FF9800', - }, - error: { - main: '#F20D5F', + white: { + main: '#fff', + light: '#fff', + dark: '#fff', + contrastText: '#fff', }, + textSecondary: colorPalette.textSecondary, }, typography: { - fontFamily: 'Inter', + fontFamily: 'Inter, Arial, sans-serif', + h1: { + fontSize: 32, + }, h2: { - fontSize: '80px', - lineHeight: 1.5, - letterSpacing: '-0.5px', - fontWeight: 800, + fontSize: 34, + fontWeight: 600, + }, + h3: { + fontSize: 24, + fontWeight: 500, + '@media (max-width:600px)': { + fontSize: 20, + }, }, h4: { - fontSize: '34px', + fontSize: 20, + fontWeight: 500, + }, + h5: { + fontSize: 18, fontWeight: 600, }, h6: { + fontSize: 20, + fontWeight: 500, + }, + 'H6-Mobile': { fontSize: '20px', - lineHeight: '160%', + fontWeight: 500, + lineHeight: '32px', + letterSpacing: '0.15px', + textAlign: 'left', }, body1: { - fontSize: '16px', - lineHeight: '28px', + fontSize: 16, + fontWeight: 400, }, body2: { + fontSize: 14, + fontWeight: 500, + }, + body3: { + fontSize: '12px', + fontWeight: 400, + lineHeight: '19.92px', + letterSpacing: '0.4px', + textAlign: 'left', + }, + 'Components/Button Small': { + fontSize: '13px', + fontWeight: 600, + lineHeight: '22px', + letterSpacing: '0.1px', + textAlign: 'left', + }, + 'Components/Button Large': { + fontSize: '15px', + fontWeight: 600, + lineHeight: '26px', + letterSpacing: '0.1px', + textAlign: 'left', + }, + 'Components/Chip': { + fontSize: '13px', + fontWeight: 400, + lineHeight: '18px', + letterSpacing: '0.16px', + textAlign: 'left', + }, + 'Components/Table Header': { + fontFamily: 'Roboto', fontSize: '14px', + fontWeight: 500, lineHeight: '24px', + letterSpacing: '0.17px', + textAlign: 'left', + }, + subtitle1: { + fontSize: 12, + }, + subtitle2: { + fontSize: 14, + fontWeight: 600, + lineHeight: '21.9px', + }, + caption: { + fontSize: 10, }, }, components: { - MuiAlert: { + MuiButton: { styleOverrides: { - outlinedSuccess: { - color: '#320a8d', - borderColor: '#320a8d', + root: { + fontWeight: 600, + textTransform: 'none', }, - // icon: { - // color: '#320a8d !important', - // }, }, }, - MuiButton: { + MuiToolbar: { styleOverrides: { root: { - textTransform: 'none', + '@media (min-width:1280px)': { + paddingX: 56, + }, + }, + }, + }, + MuiTooltip: { + styleOverrides: { + tooltip: { + backgroundColor: colorPalette.secondary.main, + color: colorPalette.whiteSolid, }, - sizeLarge: { - fontSize: '15px', - fontWeight: '600', - lineHeight: '24px', - padding: '12px 24px', + arrow: { + color: colorPalette.secondary.main, }, }, }, - MuiCard: { + MuiIconButton: { styleOverrides: { - root: { - borderRadius: '16px', - background: '#fff', - boxShadow: - '0px 1px 5px 0px rgba(233, 235, 250, 0.20), 0px 2px 2px 0px rgba(233, 235, 250, 0.50), 0px 3px 1px -2px #E9EBFA', + sizeMedium: { + color: colorPalette.primary.main, }, }, }, - MuiCardContent: { + MuiSelect: { styleOverrides: { root: { - padding: '32px 20px 18px !important', + borderRadius: 4, + borderWidth: 2, + color: colorPalette.primary.main, + '& .MuiOutlinedInput-notchedOutline': { + borderColor: colorPalette.primary.main, + borderWidth: 2, + }, + '&:hover .MuiOutlinedInput-notchedOutline': { + borderColor: colorPalette.primary.main, + }, + '&.Mui-focused .MuiOutlinedInput-notchedOutline': { + borderColor: colorPalette.primary.main, + }, + '& .MuiSvgIcon-root': { + color: colorPalette.primary.main, + }, }, }, }, - MuiLink: { + MuiTypography: { styleOverrides: { root: { - textDecoration: 'none', + wordBreak: 'break-word', }, }, }, MuiOutlinedInput: { styleOverrides: { root: { - '&.Mui-focused .MuiOutlinedInput-notchedOutline': { - borderWidth: '1px', - }, - }, - notchedOutline: { - borderColor: '#858ec6', + backgroundColor: colorPalette.white, }, }, }, - MuiSelect: { + MuiMenuItem: { styleOverrides: { - icon: { - color: '#320a8d', + root: { + '&:hover': { + backgroundColor: '#1406B207', + }, }, }, }, - MuiToggleButton: { + MuiTablePagination: { styleOverrides: { - root: { - textTransform: 'none', - borderRadius: '8px', - border: '1px solid #320a8d', - color: '#320a8d', - fontWeight: 600, - fontSize: '14px', - '&.Mui-selected': { - background: '#320a8d', - color: '#fff', + toolbar: { + '@media (max-width: 440px)': { + display: 'grid', + gridTemplateColumns: '1fr 3fr 2fr', + gridTemplateRows: 'auto auto', + gridAutoFlow: 'row', + }, + }, + selectLabel: { + '@media (max-width: 440px)': { + gridColumn: '2 / 3', + gridRow: '1', + whiteSpace: 'nowrap', + color: colorPalette.fog.main, + justifySelf: 'end', + marginBottom: `17px`, + position: 'relative', + right: '-38px', }, - '&.Mui-selected:hover': { - background: '#320a8d', + '&:focus': { + background: 'inherit', + }, + }, + input: { + '@media (max-width: 440px)': { + gridColumn: '3 / 3', + gridRow: '1', + marginRight: '8px', + width: '48px', + justifySelf: 'flex-end', + }, + }, + select: { + '&:focus': { + background: 'inherit', + }, + }, + displayedRows: { + '@media (max-width: 440px)': { + gridColumn: '2 / 3', + gridRow: '2', + justifySelf: 'end', + position: 'relative', + right: '-12px', + }, + }, + actions: { + '@media (max-width: 440px)': { + gridColumn: '3 / 3', + gridRow: '2', + justifySelf: 'end', + marginLeft: 0, + minWidth: '90px', + }, + button: { + marginLeft: '5px', }, }, }, }, - MuiMenuItem: { + MuiLink: { styleOverrides: { root: { - '&.Mui-selected': { - backgroundColor: '#f9faff', + color: colorPalette.link, + '&:hover': { + color: `${colorPalette.linkHover}!important`, + }, + '&:visited': { + color: colorPalette.linkVisited, }, }, }, diff --git a/packages/apps/staking/src/utils/api.ts b/packages/apps/staking/src/utils/api.ts index 75febb176c..ac5315fb3b 100644 --- a/packages/apps/staking/src/utils/api.ts +++ b/packages/apps/staking/src/utils/api.ts @@ -2,7 +2,7 @@ import axios from 'axios'; import { CaseConverter } from './case-converter'; const axiosInstance = axios.create({ - baseURL: import.meta.env.VITE_APP_DASHBOARD_SERVER_URL, + baseURL: import.meta.env.VITE_APP_DASHBOARD_API_URL, }); axiosInstance.interceptors.request.use( diff --git a/packages/apps/staking/src/utils/string.ts b/packages/apps/staking/src/utils/string.ts index 319d9b45b5..c9e402d27c 100644 --- a/packages/apps/staking/src/utils/string.ts +++ b/packages/apps/staking/src/utils/string.ts @@ -4,11 +4,11 @@ export const parseErrorMessage = (error: any) => { return error; } - if (error.response) { + if (error?.response) { return error.response?.data?.message ?? 'Something went wrong.'; } - if (error.message) { + if (error?.message) { const match = error.message.match(/Contract execution error: (.+)/); if (match && match[1]) { return match[1].trim(); diff --git a/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/constants.py b/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/constants.py index 4985996628..732e16accd 100644 --- a/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/constants.py +++ b/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/constants.py @@ -176,7 +176,9 @@ class KVStoreKeys(Enum): role = "role" fee = "fee" public_key = "public_key" + public_key_hash = "public_key_hash" webhook_url = "webhook_url" + website = "website" url = "url" job_types = "job_types" registration_needed = "registration_needed" diff --git a/packages/sdk/typescript/human-protocol-sdk/src/constants.ts b/packages/sdk/typescript/human-protocol-sdk/src/constants.ts index 931344937b..2ae65f5120 100644 --- a/packages/sdk/typescript/human-protocol-sdk/src/constants.ts +++ b/packages/sdk/typescript/human-protocol-sdk/src/constants.ts @@ -136,6 +136,7 @@ export const KVStoreKeys = { role: 'role', fee: 'fee', publicKey: 'public_key', + publicKeyHash: 'public_key_hash', webhookUrl: 'webhook_url', website: 'website', url: 'url', diff --git a/yarn.lock b/yarn.lock index 41054eae18..5eab5d2ce3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2007,11 +2007,6 @@ resolved "https://registry.yarnpkg.com/@fontsource/inter/-/inter-5.1.0.tgz#ab629b2c662457022d2d6a29854b8dc8ba538c47" integrity sha512-zKZR3kf1G0noIes1frLfOHP5EXVVm0M7sV/l9f/AaYf+M/DId35FO4LkigWjqWYjTJZGgplhdv4cB+ssvCqr5A== -"@gar/promisify@^1.0.1", "@gar/promisify@^1.1.3": - version "1.1.3" - resolved "https://registry.yarnpkg.com/@gar/promisify/-/promisify-1.1.3.tgz#555193ab2e3bb3b6adc3d551c9c030d9e860daf6" - integrity sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw== - "@gerrit0/mini-shiki@^1.24.0": version "1.24.1" resolved "https://registry.yarnpkg.com/@gerrit0/mini-shiki/-/mini-shiki-1.24.1.tgz#60ef10f4e2cfac7a9223e10b88c128438aa44fd8" @@ -3647,22 +3642,6 @@ lru-cache "^10.0.1" socks-proxy-agent "^8.0.3" -"@npmcli/fs@^1.0.0": - version "1.1.1" - resolved "https://registry.yarnpkg.com/@npmcli/fs/-/fs-1.1.1.tgz#72f719fe935e687c56a4faecf3c03d06ba593257" - integrity sha512-8KG5RD0GVP4ydEzRn/I4BNDuxDtqVbOdm8675T49OIG/NGhaK0pjPX7ZcDlvKYbA+ulvVK3ztfcF4uBdOxuJbQ== - dependencies: - "@gar/promisify" "^1.0.1" - semver "^7.3.5" - -"@npmcli/fs@^2.1.0": - version "2.1.2" - resolved "https://registry.yarnpkg.com/@npmcli/fs/-/fs-2.1.2.tgz#a9e2541a4a2fec2e69c29b35e6060973da79b865" - integrity sha512-yOJKRvohFOaLqipNtwYB9WugyZKhC/DZC4VYPmpaCzDBrA8YpK3qHZ8/HGscMnE4GqbkLNuVcCnxkeQEdGt6LQ== - dependencies: - "@gar/promisify" "^1.1.3" - semver "^7.3.5" - "@npmcli/fs@^3.1.0": version "3.1.1" resolved "https://registry.yarnpkg.com/@npmcli/fs/-/fs-3.1.1.tgz#59cdaa5adca95d135fc00f2bb53f5771575ce726" @@ -3670,22 +3649,6 @@ dependencies: semver "^7.3.5" -"@npmcli/move-file@^1.0.1": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@npmcli/move-file/-/move-file-1.1.2.tgz#1a82c3e372f7cae9253eb66d72543d6b8685c674" - integrity sha512-1SUf/Cg2GzGDyaf15aR9St9TWlb+XvbZXWpDx8YKs7MLzMH/BCeopv+y9vzrzgkfykCGuWOlSu3mZhj2+FQcrg== - dependencies: - mkdirp "^1.0.4" - rimraf "^3.0.2" - -"@npmcli/move-file@^2.0.0": - version "2.0.1" - resolved "https://registry.yarnpkg.com/@npmcli/move-file/-/move-file-2.0.1.tgz#26f6bdc379d87f75e55739bab89db525b06100e4" - integrity sha512-mJd2Z5TjYWq/ttPLLGqArdtnC74J6bOzg4rMDnN+p1xTacZ2yPRCk2y0oSWQtygLR9YVQXgOcONrwtnk3JupxQ== - dependencies: - mkdirp "^1.0.4" - rimraf "^3.0.2" - "@npmcli/redact@^2.0.0": version "2.0.1" resolved "https://registry.yarnpkg.com/@npmcli/redact/-/redact-2.0.1.tgz#95432fd566e63b35c04494621767a4312c316762" @@ -5061,11 +5024,6 @@ "@testing-library/dom" "^10.0.0" "@types/react-dom" "^18.0.0" -"@tootallnate/once@1": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-1.1.2.tgz#ccb91445360179a04e7fe6aff78c00ffc1eeaf82" - integrity sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw== - "@tootallnate/once@2": version "2.0.0" resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-2.0.0.tgz#f544a148d3ab35801c1f633a7441fd87c2e484bf" @@ -5556,11 +5514,6 @@ resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.5.tgz#1001cc5e6a3704b83c236027e77f2f58ea010f40" integrity sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ== -"@types/minimist@^1.2.0": - version "1.2.5" - resolved "https://registry.yarnpkg.com/@types/minimist/-/minimist-1.2.5.tgz#ec10755e871497bcd83efe927e43ec46e8c0747e" - integrity sha512-hov8bUuiLiyFPGyFPE1lwWhmzYbirOXQNNo40+y3zow8aFVTeyn3VWL0VFFfdNddA8S4Vf0Tc062rzyNr7Paag== - "@types/mocha@^10.0.8": version "10.0.10" resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-10.0.10.tgz#91f62905e8d23cbd66225312f239454a23bebfa0" @@ -6939,7 +6892,7 @@ aes-js@4.0.0-beta.5: resolved "https://registry.yarnpkg.com/aes-js/-/aes-js-4.0.0-beta.5.tgz#8d2452c52adedebc3a3e28465d858c11ca315873" integrity sha512-G965FqalsNyrPqgEGON7nIx1e/OVENSgiEIzyC63haUMuvNnwIgIjMs52hlTCKhkBny7A2ORNlfY9Zu+jmGk1Q== -agent-base@6, agent-base@^6.0.2: +agent-base@6: version "6.0.2" resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-6.0.2.tgz#49fff58577cfee3f37176feab4c22e00f86d7f77" integrity sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ== @@ -6953,13 +6906,6 @@ agent-base@^7.0.2, agent-base@^7.1.0, agent-base@^7.1.1: dependencies: debug "^4.3.4" -agentkeepalive@^4.1.3, agentkeepalive@^4.2.1: - version "4.5.0" - resolved "https://registry.yarnpkg.com/agentkeepalive/-/agentkeepalive-4.5.0.tgz#2673ad1389b3c418c5a20c5d7364f93ca04be923" - integrity sha512-5GG/5IbQQpC9FpkRGsSvZI5QYeSCzlJHdpBQntCsuTOxhKD8lqKhrleg2Yi7yvMIf82Ycmmqln9U8V9qwEiJew== - dependencies: - humanize-ms "^1.2.1" - aggregate-error@^3.0.0: version "3.1.0" resolved "https://registry.yarnpkg.com/aggregate-error/-/aggregate-error-3.1.0.tgz#92670ff50f5359bdb7a3e0d40d0ec30c5737687a" @@ -7172,14 +7118,6 @@ are-we-there-yet@^2.0.0: delegates "^1.0.0" readable-stream "^3.6.0" -are-we-there-yet@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-3.0.1.tgz#679df222b278c64f2cdba1175cdc00b0d96164bd" - integrity sha512-QZW4EDmGwlYur0Yyf/b2uGucHQMa8aFUP7eu9ddR73vvhFyt4V0Vl3QHPcTNJ8l6qYOBdxgXdnBXQrHilfRQBg== - dependencies: - delegates "^1.0.0" - readable-stream "^3.6.0" - arg@5.0.2: version "5.0.2" resolved "https://registry.yarnpkg.com/arg/-/arg-5.0.2.tgz#c81433cc427c92c4dcf4865142dbca6f15acd59c" @@ -7409,11 +7347,6 @@ astral-regex@^2.0.0: resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-2.0.0.tgz#483143c567aeed4785759c0865786dc77d7d2e31" integrity sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ== -async-foreach@^0.1.3: - version "0.1.3" - resolved "https://registry.yarnpkg.com/async-foreach/-/async-foreach-0.1.3.tgz#36121f845c0578172de419a97dbeb1d16ec34542" - integrity sha512-VUeSMD8nEGBWaZK4lizI1sf3yEC7pnAQ/mrI7pC2fBz2s/tq5jWWEngTwaf0Gruu/OoXRGLGg1XFqpYBiGTYJA== - async-listen@3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/async-listen/-/async-listen-3.0.0.tgz#2e5941390b7d8c753d4dbe94bc6aecbdde52ec5e" @@ -8083,54 +8016,6 @@ cac@^6.7.14: resolved "https://registry.yarnpkg.com/cac/-/cac-6.7.14.tgz#804e1e6f506ee363cb0e3ccbb09cad5dd9870959" integrity sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ== -cacache@^15.2.0: - version "15.3.0" - resolved "https://registry.yarnpkg.com/cacache/-/cacache-15.3.0.tgz#dc85380fb2f556fe3dda4c719bfa0ec875a7f1eb" - integrity sha512-VVdYzXEn+cnbXpFgWs5hTT7OScegHVmLhJIR8Ufqk3iFD6A6j5iSX1KuBTfNEv4tdJWE2PzA6IVFtcLC7fN9wQ== - dependencies: - "@npmcli/fs" "^1.0.0" - "@npmcli/move-file" "^1.0.1" - chownr "^2.0.0" - fs-minipass "^2.0.0" - glob "^7.1.4" - infer-owner "^1.0.4" - lru-cache "^6.0.0" - minipass "^3.1.1" - minipass-collect "^1.0.2" - minipass-flush "^1.0.5" - minipass-pipeline "^1.2.2" - mkdirp "^1.0.3" - p-map "^4.0.0" - promise-inflight "^1.0.1" - rimraf "^3.0.2" - ssri "^8.0.1" - tar "^6.0.2" - unique-filename "^1.1.1" - -cacache@^16.1.0: - version "16.1.3" - resolved "https://registry.yarnpkg.com/cacache/-/cacache-16.1.3.tgz#a02b9f34ecfaf9a78c9f4bc16fceb94d5d67a38e" - integrity sha512-/+Emcj9DAXxX4cwlLmRI9c166RuL3w30zp4R7Joiv2cQTtTtA+jeuCAjH3ZlGnYS3tKENSrKhAzVVP9GVyzeYQ== - dependencies: - "@npmcli/fs" "^2.1.0" - "@npmcli/move-file" "^2.0.0" - chownr "^2.0.0" - fs-minipass "^2.1.0" - glob "^8.0.1" - infer-owner "^1.0.4" - lru-cache "^7.7.1" - minipass "^3.1.6" - minipass-collect "^1.0.2" - minipass-flush "^1.0.5" - minipass-pipeline "^1.2.4" - mkdirp "^1.0.4" - p-map "^4.0.0" - promise-inflight "^1.0.1" - rimraf "^3.0.2" - ssri "^9.0.0" - tar "^6.1.11" - unique-filename "^2.0.0" - cacache@^18.0.0: version "18.0.4" resolved "https://registry.yarnpkg.com/cacache/-/cacache-18.0.4.tgz#4601d7578dadb59c66044e157d02a3314682d6a5" @@ -8189,15 +8074,6 @@ callsites@^3.0.0: resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== -camelcase-keys@^6.2.2: - version "6.2.2" - resolved "https://registry.yarnpkg.com/camelcase-keys/-/camelcase-keys-6.2.2.tgz#5e755d6ba51aa223ec7d3d52f25778210f9dc3c0" - integrity sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg== - dependencies: - camelcase "^5.3.1" - map-obj "^4.0.0" - quick-lru "^4.0.1" - camelcase@^5.0.0, camelcase@^5.3.1: version "5.3.1" resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" @@ -8683,7 +8559,7 @@ color-name@~1.1.4: resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== -color-support@^1.1.2, color-support@^1.1.3: +color-support@^1.1.2: version "1.1.3" resolved "https://registry.yarnpkg.com/color-support/-/color-support-1.1.3.tgz#93834379a1cc9a0c61f82f52f0d04322251bd5a2" integrity sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg== @@ -9323,7 +9199,7 @@ debug@2.6.9: dependencies: ms "2.0.0" -debug@4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.3.3, debug@^4.3.4, debug@^4.3.5, debug@^4.3.7, debug@~4.4.0: +debug@4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.3.4, debug@^4.3.5, debug@^4.3.7, debug@~4.4.0: version "4.4.0" resolved "https://registry.yarnpkg.com/debug/-/debug-4.4.0.tgz#2b3f2aea2ffeb776477460267377dc8710faba8a" integrity sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA== @@ -9351,15 +9227,7 @@ debug@~4.3.1, debug@~4.3.2: dependencies: ms "^2.1.3" -decamelize-keys@^1.1.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/decamelize-keys/-/decamelize-keys-1.1.1.tgz#04a2d523b2f18d80d0158a43b895d56dff8d19d8" - integrity sha512-WiPxgEirIV0/eIOMcnFBA3/IJZAZqKnwAwWyvvdi4lsr1WCN22nhdf/3db3DoZcUjTV2SqfzIwNyp6y2xs3nmg== - dependencies: - decamelize "^1.1.0" - map-obj "^1.0.0" - -decamelize@^1.1.0, decamelize@^1.2.0: +decamelize@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" integrity sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA== @@ -9824,7 +9692,7 @@ encodeurl@~2.0.0: resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-2.0.0.tgz#7b8ea898077d7e409d3ac45474ea38eaf0857a58" integrity sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg== -encoding@^0.1.12, encoding@^0.1.13: +encoding@^0.1.13: version "0.1.13" resolved "https://registry.yarnpkg.com/encoding/-/encoding-0.1.13.tgz#56574afdd791f54a8e9b2785c0582a2d26210fa9" integrity sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A== @@ -11367,7 +11235,7 @@ fs-jetpack@4.3.1: minimatch "^3.0.2" rimraf "^2.6.3" -fs-minipass@^2.0.0, fs-minipass@^2.1.0: +fs-minipass@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-2.1.0.tgz#7f5036fdbf12c63c169190cbe4199c852271f9fb" integrity sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg== @@ -11431,20 +11299,6 @@ gauge@^3.0.0: strip-ansi "^6.0.1" wide-align "^1.1.2" -gauge@^4.0.3: - version "4.0.4" - resolved "https://registry.yarnpkg.com/gauge/-/gauge-4.0.4.tgz#52ff0652f2bbf607a989793d53b751bef2328dce" - integrity sha512-f9m+BEN5jkg6a0fZjleidjN51VE1X+mPFQ2DJ0uv1V39oCLCbsGe6yjbBnp7eK7z/+GAon99a3nHuqbuuthyPg== - dependencies: - aproba "^1.0.3 || ^2.0.0" - color-support "^1.1.3" - console-control-strings "^1.1.0" - has-unicode "^2.0.1" - signal-exit "^3.0.7" - string-width "^4.2.3" - strip-ansi "^6.0.1" - wide-align "^1.1.5" - gaxios@^6.0.0, gaxios@^6.1.1: version "6.7.1" resolved "https://registry.yarnpkg.com/gaxios/-/gaxios-6.7.1.tgz#ebd9f7093ede3ba502685e73390248bb5b7f71fb" @@ -11456,13 +11310,6 @@ gaxios@^6.0.0, gaxios@^6.1.1: node-fetch "^2.6.9" uuid "^9.0.1" -gaze@^1.0.0: - version "1.1.3" - resolved "https://registry.yarnpkg.com/gaze/-/gaze-1.1.3.tgz#c441733e13b927ac8c0ff0b4c3b033f28812924a" - integrity sha512-BRdNm8hbWzFzWHERTrejLqwHDfS4GibPoq5wjTPIoJHoBtKGPg3xAFfxmM+9ztbXelxcf2hwQcaz1PtmFeue8g== - dependencies: - globule "^1.0.0" - gcp-metadata@^6.1.0: version "6.1.0" resolved "https://registry.yarnpkg.com/gcp-metadata/-/gcp-metadata-6.1.0.tgz#9b0dd2b2445258e7597f2024332d20611cbd6b8c" @@ -11527,11 +11374,6 @@ get-port@^3.1.0: resolved "https://registry.yarnpkg.com/get-port/-/get-port-3.2.0.tgz#dd7ce7de187c06c8bf353796ac71e099f0980ebc" integrity sha512-x5UJKlgeUiNT8nyo/AcnwLnZuZNcSjSw0kogRB+Whd1fjjFq4B1hySFxSFWWSn4mIBzg3sRNUDFYc4g5gjPoLg== -get-stdin@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-4.0.1.tgz#b968c6b0a04384324902e8bf1a5df32579a450fe" - integrity sha512-F5aQMywwJ2n85s4hJPTT9RPxGmubonuB10MNYo17/xph174n2MIR33HRguhzVag10O/npM7SPk73LMZNP+FaWw== - get-stdin@^9.0.0: version "9.0.0" resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-9.0.0.tgz#3983ff82e03d56f1b2ea0d3e60325f39d703a575" @@ -11607,7 +11449,7 @@ glob@10.4.5, glob@^10.2.2, glob@^10.3.10: package-json-from-dist "^1.0.0" path-scurry "^1.11.1" -glob@7.1.7, glob@~7.1.1: +glob@7.1.7: version "7.1.7" resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.7.tgz#3b193e9233f01d42d0b3f78294bbeeb418f94a90" integrity sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ== @@ -11640,7 +11482,7 @@ glob@^5.0.15: once "^1.3.0" path-is-absolute "^1.0.0" -glob@^7.0.0, glob@^7.0.3, glob@^7.1.3, glob@^7.1.4: +glob@^7.0.0, glob@^7.1.3, glob@^7.1.4: version "7.2.3" resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b" integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== @@ -11652,7 +11494,7 @@ glob@^7.0.0, glob@^7.0.3, glob@^7.1.3, glob@^7.1.4: once "^1.3.0" path-is-absolute "^1.0.0" -glob@^8.0.1, glob@^8.1.0: +glob@^8.1.0: version "8.1.0" resolved "https://registry.yarnpkg.com/glob/-/glob-8.1.0.tgz#d388f656593ef708ee3e34640fdfb99a9fd1c33e" integrity sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ== @@ -11725,15 +11567,6 @@ globby@^11.0.3, globby@^11.1.0: merge2 "^1.4.1" slash "^3.0.0" -globule@^1.0.0: - version "1.3.4" - resolved "https://registry.yarnpkg.com/globule/-/globule-1.3.4.tgz#7c11c43056055a75a6e68294453c17f2796170fb" - integrity sha512-OPTIfhMBh7JbBYDpa5b+Q5ptmMWKwcNcFSR/0c6t8V4f3ZAVBEsKNY37QdVqmLRYSMhOUGYrY0QhSoEpzGr/Eg== - dependencies: - glob "~7.1.1" - lodash "^4.17.21" - minimatch "~3.0.2" - gluegun@5.1.6, gluegun@^5.0.0: version "5.2.0" resolved "https://registry.yarnpkg.com/gluegun/-/gluegun-5.2.0.tgz#88ba1f76f20e68a135557a4a4c8ea283291a7491" @@ -11812,7 +11645,7 @@ gopd@^1.0.1: dependencies: get-intrinsic "^1.1.3" -graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.11, graceful-fs@^4.2.4, graceful-fs@^4.2.6, graceful-fs@^4.2.9: +graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.11, graceful-fs@^4.2.4, graceful-fs@^4.2.9: version "4.2.11" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== @@ -11929,11 +11762,6 @@ happy-dom@^12.9.1: whatwg-encoding "^2.0.0" whatwg-mimetype "^3.0.0" -hard-rejection@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/hard-rejection/-/hard-rejection-2.1.0.tgz#1c6eda5c1685c63942766d79bb40ae773cecd883" - integrity sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA== - hardhat-abi-exporter@^2.10.1: version "2.10.1" resolved "https://registry.yarnpkg.com/hardhat-abi-exporter/-/hardhat-abi-exporter-2.10.1.tgz#b14884e233c73fe3f43360f014ad7fd6df4b6d25" @@ -12204,13 +12032,6 @@ hosted-git-info@^2.1.4: resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.9.tgz#dffc0bf9a21c02209090f2aa69429e1414daf3f9" integrity sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw== -hosted-git-info@^4.0.1: - version "4.1.0" - resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-4.1.0.tgz#827b82867e9ff1c8d0c4d9d53880397d2c86d224" - integrity sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA== - dependencies: - lru-cache "^6.0.0" - hosted-git-info@^7.0.0: version "7.0.2" resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-7.0.2.tgz#9b751acac097757667f30114607ef7b661ff4f17" @@ -12254,7 +12075,7 @@ http-basic@^8.1.1: http-response-object "^3.0.1" parse-cache-control "^1.0.1" -http-cache-semantics@^4.1.0, http-cache-semantics@^4.1.1: +http-cache-semantics@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz#abe02fcb2985460bf0323be664436ec3476a6d5a" integrity sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ== @@ -12270,15 +12091,6 @@ http-errors@2.0.0: statuses "2.0.1" toidentifier "1.0.1" -http-proxy-agent@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz#8a8c8ef7f5932ccf953c296ca8291b95aa74aa3a" - integrity sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg== - dependencies: - "@tootallnate/once" "1" - agent-base "6" - debug "4" - http-proxy-agent@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz#5129800203520d434f142bc78ff3c170800f2b43" @@ -12339,13 +12151,6 @@ human-signals@^5.0.0: resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-5.0.0.tgz#42665a284f9ae0dade3ba41ebc37eb4b852f3a28" integrity sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ== -humanize-ms@^1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/humanize-ms/-/humanize-ms-1.2.1.tgz#c46e3159a293f6b896da29316d8b6fe8bb79bbed" - integrity sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ== - dependencies: - ms "^2.0.0" - husky@^9.1.6: version "9.1.7" resolved "https://registry.yarnpkg.com/husky/-/husky-9.1.7.tgz#d46a38035d101b46a70456a850ff4201344c0b2d" @@ -12462,11 +12267,6 @@ indent-string@^4.0.0: resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-4.0.0.tgz#624f8f4497d619b2d9768531d58f4122854d7251" integrity sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg== -infer-owner@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/infer-owner/-/infer-owner-1.0.4.tgz#c4cefcaa8e51051c2a40ba2ce8a3d27295af9467" - integrity sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A== - inflight@^1.0.4: version "1.0.6" resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" @@ -12754,7 +12554,7 @@ is-callable@^1.1.3, is-callable@^1.2.7: resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.7.tgz#3bc2a85ea742d9e36205dcacdd72ca1fdc51b055" integrity sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA== -is-core-module@^2.1.0, is-core-module@^2.13.0, is-core-module@^2.15.1, is-core-module@^2.5.0: +is-core-module@^2.1.0, is-core-module@^2.13.0, is-core-module@^2.15.1: version "2.15.1" resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.15.1.tgz#a7363a25bee942fefab0de13bf6aa372c82dcc37" integrity sha512-z0vtXSwucUJtANQWldhbtbt7BnL0vxiFjIdDLAatwhDYty2bad6s+rijD6Ri4YuYJubLzIJLUidCh09e1djEVQ== @@ -12902,11 +12702,6 @@ is-path-inside@^3.0.3: resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-3.0.3.tgz#d231362e53a07ff2b0e0ea7fed049161ffd16283" integrity sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ== -is-plain-obj@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e" - integrity sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg== - is-plain-obj@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-2.1.0.tgz#45e42e37fccf1f40da8e5f76ee21515840c09287" @@ -13655,11 +13450,6 @@ joi@^17.13.3: "@sideway/formula" "^3.0.1" "@sideway/pinpoint" "^2.0.0" -js-base64@^2.4.9: - version "2.6.4" - resolved "https://registry.yarnpkg.com/js-base64/-/js-base64-2.6.4.tgz#f4e686c5de1ea1f867dbcad3d46d969428df98c4" - integrity sha512-pZe//GGmwJndub7ZghVHz7vjb2LgC1m8B07Au3eYqeqv9emhESByMXxaEgkUkEqJe87oBbSniGYoQNIBklc7IQ== - js-cookie@^2.2.1: version "2.2.1" resolved "https://registry.yarnpkg.com/js-cookie/-/js-cookie-2.2.1.tgz#69e106dc5d5806894562902aa5baec3744e9b2b8" @@ -13986,7 +13776,7 @@ keyvaluestorage-interface@^1.0.0: resolved "https://registry.yarnpkg.com/keyvaluestorage-interface/-/keyvaluestorage-interface-1.0.0.tgz#13ebdf71f5284ad54be94bd1ad9ed79adad515ff" integrity sha512-8t6Q3TclQ4uZynJY9IGr2+SsIGwK9JHcO6ootkHCGA0CrQCRy+VkouYNO2xicET6b9al7QKzpebNow+gkpCL8g== -kind-of@^6.0.2, kind-of@^6.0.3: +kind-of@^6.0.2: version "6.0.3" resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd" integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw== @@ -14404,18 +14194,6 @@ lru-cache@^5.1.1: dependencies: yallist "^3.0.2" -lru-cache@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94" - integrity sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA== - dependencies: - yallist "^4.0.0" - -lru-cache@^7.7.1: - version "7.18.3" - resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-7.18.3.tgz#f793896e0fd0e954a59dfdd82f0773808df6aa89" - integrity sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA== - lru_map@^0.3.3: version "0.3.3" resolved "https://registry.yarnpkg.com/lru_map/-/lru_map-0.3.3.tgz#b5c8351b9464cbd750335a79650a0ec0e56118dd" @@ -14469,28 +14247,6 @@ make-error@^1.1.1, make-error@^1.3.6: resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2" integrity sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw== -make-fetch-happen@^10.0.4: - version "10.2.1" - resolved "https://registry.yarnpkg.com/make-fetch-happen/-/make-fetch-happen-10.2.1.tgz#f5e3835c5e9817b617f2770870d9492d28678164" - integrity sha512-NgOPbRiaQM10DYXvN3/hhGVI2M5MtITFryzBGxHM5p4wnFxsVCbxkrBrDsk+EZ5OB4jEOT7AjDxtdF+KVEFT7w== - dependencies: - agentkeepalive "^4.2.1" - cacache "^16.1.0" - http-cache-semantics "^4.1.0" - http-proxy-agent "^5.0.0" - https-proxy-agent "^5.0.0" - is-lambda "^1.0.1" - lru-cache "^7.7.1" - minipass "^3.1.6" - minipass-collect "^1.0.2" - minipass-fetch "^2.0.3" - minipass-flush "^1.0.5" - minipass-pipeline "^1.2.4" - negotiator "^0.6.3" - promise-retry "^2.0.1" - socks-proxy-agent "^7.0.0" - ssri "^9.0.0" - make-fetch-happen@^13.0.0: version "13.0.1" resolved "https://registry.yarnpkg.com/make-fetch-happen/-/make-fetch-happen-13.0.1.tgz#273ba2f78f45e1f3a6dca91cede87d9fa4821e36" @@ -14509,28 +14265,6 @@ make-fetch-happen@^13.0.0: promise-retry "^2.0.1" ssri "^10.0.0" -make-fetch-happen@^9.1.0: - version "9.1.0" - resolved "https://registry.yarnpkg.com/make-fetch-happen/-/make-fetch-happen-9.1.0.tgz#53085a09e7971433e6765f7971bf63f4e05cb968" - integrity sha512-+zopwDy7DNknmwPQplem5lAZX/eCOzSvSNNcSKm5eVwTkOBzoktEfXsa9L23J/GIRhxRsaxzkPEhrJEpE2F4Gg== - dependencies: - agentkeepalive "^4.1.3" - cacache "^15.2.0" - http-cache-semantics "^4.1.0" - http-proxy-agent "^4.0.1" - https-proxy-agent "^5.0.0" - is-lambda "^1.0.1" - lru-cache "^6.0.0" - minipass "^3.1.3" - minipass-collect "^1.0.2" - minipass-fetch "^1.3.2" - minipass-flush "^1.0.5" - minipass-pipeline "^1.2.4" - negotiator "^0.6.2" - promise-retry "^2.0.1" - socks-proxy-agent "^6.0.0" - ssri "^8.0.0" - makeerror@1.0.12: version "1.0.12" resolved "https://registry.yarnpkg.com/makeerror/-/makeerror-1.0.12.tgz#3e5dd2079a82e812e983cc6610c4a2cb0eaa801a" @@ -14538,16 +14272,6 @@ makeerror@1.0.12: dependencies: tmpl "1.0.5" -map-obj@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-1.0.1.tgz#d933ceb9205d82bdcf4886f6742bdc2b4dea146d" - integrity sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg== - -map-obj@^4.0.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-4.3.0.tgz#9304f906e93faae70880da102a9f1df0ea8bb05a" - integrity sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ== - markdown-it@^14.1.0: version "14.1.0" resolved "https://registry.yarnpkg.com/markdown-it/-/markdown-it-14.1.0.tgz#3c3c5992883c633db4714ccb4d7b5935d98b7d45" @@ -14620,24 +14344,6 @@ memorystream@^0.3.1: resolved "https://registry.yarnpkg.com/memorystream/-/memorystream-0.3.1.tgz#86d7090b30ce455d63fbae12dda51a47ddcaf9b2" integrity sha512-S3UwM3yj5mtUSEfP41UZmt/0SCoVYUcU1rkXv+BQ5Ig8ndL4sPoJNBUJERafdPb5jjHJGuMgytgKvKIf58XNBw== -meow@^9.0.0: - version "9.0.0" - resolved "https://registry.yarnpkg.com/meow/-/meow-9.0.0.tgz#cd9510bc5cac9dee7d03c73ee1f9ad959f4ea364" - integrity sha512-+obSblOQmRhcyBt62furQqRAQpNyWXo8BuQ5bN7dG8wmwQ+vwHKp/rCFD4CrTP8CsDQD1sjoZ94K417XEUk8IQ== - dependencies: - "@types/minimist" "^1.2.0" - camelcase-keys "^6.2.2" - decamelize "^1.2.0" - decamelize-keys "^1.1.0" - hard-rejection "^2.1.0" - minimist-options "4.1.0" - normalize-package-data "^3.0.0" - read-pkg-up "^7.0.1" - redent "^3.0.0" - trim-newlines "^3.0.0" - type-fest "^0.18.0" - yargs-parser "^20.2.3" - merge-descriptors@1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-1.0.3.tgz#d80319a65f3c7935351e5cfdac8f9318504dbed5" @@ -14807,22 +14513,6 @@ minimatch@^9.0.4, minimatch@^9.0.5: dependencies: brace-expansion "^2.0.1" -minimatch@~3.0.2: - version "3.0.8" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.8.tgz#5e6a59bd11e2ab0de1cfb843eb2d82e546c321c1" - integrity sha512-6FsRAQsxQ61mw+qP1ZzbL9Bc78x2p5OqNgNpnoAFLTrX8n5Kxph0CsnhmKKNXTWjXqU5L0pGPR7hYk+XWZr60Q== - dependencies: - brace-expansion "^1.1.7" - -minimist-options@4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/minimist-options/-/minimist-options-4.1.0.tgz#c0655713c53a8a2ebd77ffa247d342c40f010619" - integrity sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A== - dependencies: - arrify "^1.0.1" - is-plain-obj "^1.1.0" - kind-of "^6.0.3" - minimist@^1.2.0, minimist@^1.2.5, minimist@^1.2.6, minimist@^1.2.7: version "1.2.8" resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c" @@ -14868,13 +14558,6 @@ minio@^7.1.3: web-encoding "^1.1.5" xml2js "^0.5.0" -minipass-collect@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/minipass-collect/-/minipass-collect-1.0.2.tgz#22b813bf745dc6edba2576b940022ad6edc8c617" - integrity sha512-6T6lH0H8OG9kITm/Jm6tdooIbogG9e0tLgpY6mphXSm/A9u8Nq1ryBG+Qspiub9LjWlBPsPS3tWQ/Botq4FdxA== - dependencies: - minipass "^3.0.0" - minipass-collect@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/minipass-collect/-/minipass-collect-2.0.1.tgz#1621bc77e12258a12c60d34e2276ec5c20680863" @@ -14882,28 +14565,6 @@ minipass-collect@^2.0.1: dependencies: minipass "^7.0.3" -minipass-fetch@^1.3.2: - version "1.4.1" - resolved "https://registry.yarnpkg.com/minipass-fetch/-/minipass-fetch-1.4.1.tgz#d75e0091daac1b0ffd7e9d41629faff7d0c1f1b6" - integrity sha512-CGH1eblLq26Y15+Azk7ey4xh0J/XfJfrCox5LDJiKqI2Q2iwOLOKrlmIaODiSQS8d18jalF6y2K2ePUm0CmShw== - dependencies: - minipass "^3.1.0" - minipass-sized "^1.0.3" - minizlib "^2.0.0" - optionalDependencies: - encoding "^0.1.12" - -minipass-fetch@^2.0.3: - version "2.1.2" - resolved "https://registry.yarnpkg.com/minipass-fetch/-/minipass-fetch-2.1.2.tgz#95560b50c472d81a3bc76f20ede80eaed76d8add" - integrity sha512-LT49Zi2/WMROHYoqGgdlQIZh8mLPZmOrN2NdJjMXxYe4nkN6FUyuPuOAOedNJDrx0IRGg9+4guZewtp8hE6TxA== - dependencies: - minipass "^3.1.6" - minipass-sized "^1.0.3" - minizlib "^2.1.2" - optionalDependencies: - encoding "^0.1.13" - minipass-fetch@^3.0.0: version "3.0.5" resolved "https://registry.yarnpkg.com/minipass-fetch/-/minipass-fetch-3.0.5.tgz#f0f97e40580affc4a35cc4a1349f05ae36cb1e4c" @@ -14922,7 +14583,7 @@ minipass-flush@^1.0.5: dependencies: minipass "^3.0.0" -minipass-pipeline@^1.2.2, minipass-pipeline@^1.2.4: +minipass-pipeline@^1.2.4: version "1.2.4" resolved "https://registry.yarnpkg.com/minipass-pipeline/-/minipass-pipeline-1.2.4.tgz#68472f79711c084657c067c5c6ad93cddea8214c" integrity sha512-xuIq7cIOt09RPRJ19gdi4b+RiNvDFYe5JH+ggNvBqGqpQXcru3PcRmOZuHBKWK1Txf9+cQ+HMVN4d6z46LZP7A== @@ -14936,7 +14597,7 @@ minipass-sized@^1.0.3: dependencies: minipass "^3.0.0" -minipass@^3.0.0, minipass@^3.1.0, minipass@^3.1.1, minipass@^3.1.3, minipass@^3.1.6: +minipass@^3.0.0: version "3.3.6" resolved "https://registry.yarnpkg.com/minipass/-/minipass-3.3.6.tgz#7bba384db3a1520d18c9c0e5251c3444e95dd94a" integrity sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw== @@ -14958,7 +14619,7 @@ minipass@^5.0.0: resolved "https://registry.yarnpkg.com/minipass/-/minipass-7.1.2.tgz#93a9626ce5e5e66bd4db86849e7515e92340a707" integrity sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw== -minizlib@^2.0.0, minizlib@^2.1.1, minizlib@^2.1.2: +minizlib@^2.1.1, minizlib@^2.1.2: version "2.1.2" resolved "https://registry.yarnpkg.com/minizlib/-/minizlib-2.1.2.tgz#e90d3466ba209b932451508a11ce3d3632145931" integrity sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg== @@ -15063,7 +14724,7 @@ ms@2.1.2: resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== -ms@2.1.3, ms@^2.0.0, ms@^2.1.1, ms@^2.1.3: +ms@2.1.3, ms@^2.1.1, ms@^2.1.3: version "2.1.3" resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== @@ -15143,11 +14804,6 @@ mz@^2.4.0: object-assign "^4.0.1" thenify-all "^1.0.0" -nan@^2.17.0: - version "2.22.0" - resolved "https://registry.yarnpkg.com/nan/-/nan-2.22.0.tgz#31bc433fc33213c97bad36404bb68063de604de3" - integrity sha512-nbajikzWTMwsW+eSsNm3QwlOs7het9gGJU5dDZzRTQGk03vyBOauxgI4VakDzE0PtsGTmXPsXTbbjVhRwR5mpw== - nanoid@^3.0.2, nanoid@^3.1.20, nanoid@^3.1.23, nanoid@^3.3.7: version "3.3.8" resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.8.tgz#b1be3030bee36aaff18bacb375e5cce521684baf" @@ -15199,7 +14855,7 @@ negotiator@0.6.3: resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.3.tgz#58e323a72fedc0d6f9cd4d31fe49f51479590ccd" integrity sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg== -negotiator@^0.6.2, negotiator@^0.6.3: +negotiator@^0.6.3: version "0.6.4" resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.4.tgz#777948e2452651c570b712dd01c23e262713fff7" integrity sha512-myRT3DiWPHqho5PrJaIRyaMv2kgYf0mUVgBNOYMuCH5Ki1yEiQaf/ZJuQ62nvpc44wL5WDbTX7yGJi1Neevw8w== @@ -15291,22 +14947,6 @@ node-gyp-build@^4.2.0, node-gyp-build@^4.2.2, node-gyp-build@^4.3.0: resolved "https://registry.yarnpkg.com/node-gyp-build/-/node-gyp-build-4.8.4.tgz#8a70ee85464ae52327772a90d66c6077a900cfc8" integrity sha512-LA4ZjwlnUblHVgq0oBF3Jl/6h/Nvs5fzBLwdEF4nuxnFdsfajde4WfxtJr3CaiH+F6ewcIB/q4jQ4UzPyid+CQ== -node-gyp@^8.4.1: - version "8.4.1" - resolved "https://registry.yarnpkg.com/node-gyp/-/node-gyp-8.4.1.tgz#3d49308fc31f768180957d6b5746845fbd429937" - integrity sha512-olTJRgUtAb/hOXG0E93wZDs5YiJlgbXxTwQAFHyNlRsXQnYzUaF2aGgujZbw+hR8aF4ZG/rST57bWMWD16jr9w== - dependencies: - env-paths "^2.2.0" - glob "^7.1.4" - graceful-fs "^4.2.6" - make-fetch-happen "^9.1.0" - nopt "^5.0.0" - npmlog "^6.0.0" - rimraf "^3.0.2" - semver "^7.3.5" - tar "^6.1.2" - which "^2.0.2" - node-int64@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" @@ -15317,26 +14957,6 @@ node-releases@^2.0.18: resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.18.tgz#f010e8d35e2fe8d6b2944f03f70213ecedc4ca3f" integrity sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g== -node-sass@^9.0.0: - version "9.0.0" - resolved "https://registry.yarnpkg.com/node-sass/-/node-sass-9.0.0.tgz#c21cd17bd9379c2d09362b3baf2cbf089bce08ed" - integrity sha512-yltEuuLrfH6M7Pq2gAj5B6Zm7m+gdZoG66wTqG6mIZV/zijq3M2OO2HswtT6oBspPyFhHDcaxWpsBm0fRNDHPg== - dependencies: - async-foreach "^0.1.3" - chalk "^4.1.2" - cross-spawn "^7.0.3" - gaze "^1.0.0" - get-stdin "^4.0.1" - glob "^7.0.3" - lodash "^4.17.15" - make-fetch-happen "^10.0.4" - meow "^9.0.0" - nan "^2.17.0" - node-gyp "^8.4.1" - sass-graph "^4.0.1" - stdout-stream "^1.4.0" - "true-case-path" "^2.2.1" - node-stdlib-browser@^1.2.0: version "1.3.0" resolved "https://registry.yarnpkg.com/node-stdlib-browser/-/node-stdlib-browser-1.3.0.tgz#6e04d149f9abfc345a2271b2820a75df0f9cd7de" @@ -15399,16 +15019,6 @@ normalize-package-data@^2.5.0: semver "2 || 3 || 4 || 5" validate-npm-package-license "^3.0.1" -normalize-package-data@^3.0.0: - version "3.0.3" - resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-3.0.3.tgz#dbcc3e2da59509a0983422884cd172eefdfa525e" - integrity sha512-p2W1sgqij3zMMyRC067Dg16bfzVH+w7hyegmpIvZ4JNjqtGOVAIvLmjBx3yP7YTe9vKJgkoNOPjwQGogDoMXFA== - dependencies: - hosted-git-info "^4.0.1" - is-core-module "^2.5.0" - semver "^7.3.4" - validate-npm-package-license "^3.0.1" - normalize-path@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" @@ -15477,16 +15087,6 @@ npmlog@^5.0.1: gauge "^3.0.0" set-blocking "^2.0.0" -npmlog@^6.0.0: - version "6.0.2" - resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-6.0.2.tgz#c8166017a42f2dea92d6453168dd865186a70830" - integrity sha512-/vBvz5Jfr9dT/aFWd0FIRf+T/Q2WBsLENygUaFUqstqsycmZAP/t5BvFJTK0viFmSUxiUKTUplWy5vt+rvKIxg== - dependencies: - are-we-there-yet "^3.0.0" - console-control-strings "^1.1.0" - gauge "^4.0.3" - set-blocking "^2.0.0" - number-to-bn@1.7.0: version "1.7.0" resolved "https://registry.yarnpkg.com/number-to-bn/-/number-to-bn-1.7.0.tgz#bb3623592f7e5f9e0030b1977bd41a0c53fe1ea0" @@ -16408,11 +16008,6 @@ promise-coalesce@^1.1.2: resolved "https://registry.yarnpkg.com/promise-coalesce/-/promise-coalesce-1.1.2.tgz#5d3bc4d0b2cf2e41e9df7cbeb6519b2a09459e3d" integrity sha512-zLaJ9b8hnC564fnJH6NFSOGZYYdzrAJn2JUUIwzoQb32fG2QAakpDNM+CZo1km6keXkRXRM+hml1BFAPVnPkxg== -promise-inflight@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/promise-inflight/-/promise-inflight-1.0.1.tgz#98472870bf228132fcbdd868129bad12c3c029e3" - integrity sha512-6zWPyEOFaQBJYcGMHBKTKJ3u6TBsnMFOIZSa6ce1e/ZrrsOlnHRHbabMjLiBYKp+n44X9eUI6VUPaukCXHuG4g== - promise-retry@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/promise-retry/-/promise-retry-2.0.1.tgz#ff747a13620ab57ba688f5fc67855410c370da22" @@ -16655,11 +16250,6 @@ quick-format-unescaped@^4.0.3: resolved "https://registry.yarnpkg.com/quick-format-unescaped/-/quick-format-unescaped-4.0.4.tgz#93ef6dd8d3453cbc7970dd614fad4c5954d6b5a7" integrity sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg== -quick-lru@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/quick-lru/-/quick-lru-4.0.1.tgz#5b8878f113a58217848c6482026c73e1ba57727f" - integrity sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g== - radix3@^1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/radix3/-/radix3-1.1.2.tgz#fd27d2af3896c6bf4bcdfab6427c69c2afc69ec0" @@ -16858,7 +16448,7 @@ readable-stream@3, readable-stream@^3.0.0, readable-stream@^3.1.1, readable-stre string_decoder "^1.1.1" util-deprecate "^1.0.1" -readable-stream@^2.0.1, readable-stream@^2.2.2, readable-stream@^2.3.0, readable-stream@^2.3.3, readable-stream@^2.3.5, readable-stream@^2.3.8: +readable-stream@^2.2.2, readable-stream@^2.3.0, readable-stream@^2.3.3, readable-stream@^2.3.5, readable-stream@^2.3.8: version "2.3.8" resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.8.tgz#91125e8042bba1b9887f49345f6277027ce8be9b" integrity sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA== @@ -17395,27 +16985,6 @@ safe-stable-stringify@^2.1.0: resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== -sass-graph@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/sass-graph/-/sass-graph-4.0.1.tgz#2ff8ca477224d694055bf4093f414cf6cfad1d2e" - integrity sha512-5YCfmGBmxoIRYHnKK2AKzrAkCoQ8ozO+iumT8K4tXJXRVCPf+7s1/9KxTSW3Rbvf+7Y7b4FR3mWyLnQr3PHocA== - dependencies: - glob "^7.0.0" - lodash "^4.17.11" - scss-tokenizer "^0.4.3" - yargs "^17.2.1" - -sass@^1.78.0: - version "1.81.0" - resolved "https://registry.yarnpkg.com/sass/-/sass-1.81.0.tgz#a9010c0599867909dfdbad057e4a6fbdd5eec941" - integrity sha512-Q4fOxRfhmv3sqCLoGfvrC9pRV8btc0UtqL9mN6Yrv6Qi9ScL55CVH1vlPP863ISLEEMNLLuu9P+enCeGHlnzhA== - dependencies: - chokidar "^4.0.0" - immutable "^5.0.2" - source-map-js ">=0.6.2 <2.0.0" - optionalDependencies: - "@parcel/watcher" "^2.4.1" - sass@^1.83.4: version "1.83.4" resolved "https://registry.yarnpkg.com/sass/-/sass-1.83.4.tgz#5ccf60f43eb61eeec300b780b8dcb85f16eec6d1" @@ -17480,14 +17049,6 @@ scrypt-js@3.0.1, scrypt-js@^3.0.0: resolved "https://registry.yarnpkg.com/scrypt-js/-/scrypt-js-3.0.1.tgz#d314a57c2aef69d1ad98a138a21fe9eafa9ee312" integrity sha512-cdwTTnqPu0Hyvf5in5asVdZocVDTNRmR7XEcJuIzMjJeSHybHl7vpB66AzwTaIg6CLSbtjcxc8fqcySfnTkccA== -scss-tokenizer@^0.4.3: - version "0.4.3" - resolved "https://registry.yarnpkg.com/scss-tokenizer/-/scss-tokenizer-0.4.3.tgz#1058400ee7d814d71049c29923d2b25e61dc026c" - integrity sha512-raKLgf1LI5QMQnG+RxHz6oK0sL3x3I4FN2UDLqgLOGO8hodECNnNh5BXn7fAyBxrA8zVzdQizQ6XjNJQ+uBwMw== - dependencies: - js-base64 "^2.4.9" - source-map "^0.7.3" - secp256k1@^4.0.1: version "4.0.4" resolved "https://registry.yarnpkg.com/secp256k1/-/secp256k1-4.0.4.tgz#58f0bfe1830fe777d9ca1ffc7574962a8189f8ab" @@ -17782,24 +17343,6 @@ socket.io-parser@~4.2.4: "@socket.io/component-emitter" "~3.1.0" debug "~4.3.1" -socks-proxy-agent@^6.0.0: - version "6.2.1" - resolved "https://registry.yarnpkg.com/socks-proxy-agent/-/socks-proxy-agent-6.2.1.tgz#2687a31f9d7185e38d530bef1944fe1f1496d6ce" - integrity sha512-a6KW9G+6B3nWZ1yB8G7pJwL3ggLy1uTzKAgCb7ttblwqdz9fMGJUuTy3uFzEP48FAs9FLILlmzDlE2JJhVQaXQ== - dependencies: - agent-base "^6.0.2" - debug "^4.3.3" - socks "^2.6.2" - -socks-proxy-agent@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/socks-proxy-agent/-/socks-proxy-agent-7.0.0.tgz#dc069ecf34436621acb41e3efa66ca1b5fed15b6" - integrity sha512-Fgl0YPZ902wEsAyiQ+idGd1A7rSFx/ayC1CQVMw5P+EQx2V0SgpGtf6OKFhVjPflPUl9YMmEOnmfjCdMUsygww== - dependencies: - agent-base "^6.0.2" - debug "^4.3.3" - socks "^2.6.2" - socks-proxy-agent@^8.0.3: version "8.0.4" resolved "https://registry.yarnpkg.com/socks-proxy-agent/-/socks-proxy-agent-8.0.4.tgz#9071dca17af95f483300316f4b063578fa0db08c" @@ -17809,7 +17352,7 @@ socks-proxy-agent@^8.0.3: debug "^4.3.4" socks "^2.8.3" -socks@^2.6.2, socks@^2.8.3: +socks@^2.8.3: version "2.8.3" resolved "https://registry.yarnpkg.com/socks/-/socks-2.8.3.tgz#1ebd0f09c52ba95a09750afe3f3f9f724a800cb5" integrity sha512-l5x7VUUWbjVFbafGLxPWkYsHIhEvmF85tbIeFZWc8ZPtoMyybuEhL7Jye/ooC4/d48FgOjSJXgsF/AJPYCW8Zw== @@ -17907,7 +17450,7 @@ source-map-support@^0.5.13, source-map-support@^0.5.20, source-map-support@~0.5. buffer-from "^1.0.0" source-map "^0.6.0" -source-map@0.7.4, source-map@^0.7.3, source-map@^0.7.4: +source-map@0.7.4, source-map@^0.7.4: version "0.7.4" resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.4.tgz#a9bbe705c9d8846f4e08ff6765acf0f1b0898656" integrity sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA== @@ -18004,20 +17547,6 @@ ssri@^10.0.0: dependencies: minipass "^7.0.3" -ssri@^8.0.0, ssri@^8.0.1: - version "8.0.1" - resolved "https://registry.yarnpkg.com/ssri/-/ssri-8.0.1.tgz#638e4e439e2ffbd2cd289776d5ca457c4f51a2af" - integrity sha512-97qShzy1AiyxvPNIkLWoGua7xoQzzPjQ0HAH4B0rWKo7SZ6USuPcrUiAFrws0UH8RrbWmgq3LMTObhPIHbbBeQ== - dependencies: - minipass "^3.1.1" - -ssri@^9.0.0: - version "9.0.1" - resolved "https://registry.yarnpkg.com/ssri/-/ssri-9.0.1.tgz#544d4c357a8d7b71a19700074b6883fcb4eae057" - integrity sha512-o57Wcn66jMQvfHG1FlYbWeZWW/dHZhJXjpIcTfXldXEk5nz5lStPo3mK0OJQfGR3RbZUlbISexbljkJzuEj/8Q== - dependencies: - minipass "^3.1.1" - stable-hash@^0.0.4: version "0.0.4" resolved "https://registry.yarnpkg.com/stable-hash/-/stable-hash-0.0.4.tgz#55ae7dadc13e4b3faed13601587cec41859b42f7" @@ -18052,13 +17581,6 @@ std-env@^3.5.0, std-env@^3.7.0: resolved "https://registry.yarnpkg.com/std-env/-/std-env-3.8.0.tgz#b56ffc1baf1a29dcc80a3bdf11d7fca7c315e7d5" integrity sha512-Bc3YwwCB+OzldMxOXJIIvC6cPRWr/LxOp48CdQTOkPyk/t4JWWJbrilwBd7RJzKV8QW7tJkcgAmeuLLJugl5/w== -stdout-stream@^1.4.0: - version "1.4.1" - resolved "https://registry.yarnpkg.com/stdout-stream/-/stdout-stream-1.4.1.tgz#5ac174cdd5cd726104aa0c0b2bd83815d8d535de" - integrity sha512-j4emi03KXqJWcIeF8eIXkjMFN1Cmb8gUlDYGeBALLPo5qdyTfA9bOtl8m33lRoC+vFMkP3gl0WsDr6+gzxbbTA== - dependencies: - readable-stream "^2.0.1" - stream-browserify@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/stream-browserify/-/stream-browserify-3.0.0.tgz#22b0a2850cdf6503e73085da1fc7b7d0c2122f2f" @@ -18146,16 +17668,7 @@ string-natural-compare@^3.0.1: resolved "https://registry.yarnpkg.com/string-natural-compare/-/string-natural-compare-3.0.1.tgz#7a42d58474454963759e8e8b7ae63d71c1e7fdf4" integrity sha512-n3sPwynL1nwKi3WJ6AIsClwBMa0zTi54fn2oLU6ndfTSIO05xaznjSf15PcBZU6FNWbmN5Q6cxT4V5hGvB4taw== -"string-width-cjs@npm:string-width@^4.2.0": - version "4.2.3" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" - integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== - dependencies: - emoji-regex "^8.0.0" - is-fullwidth-code-point "^3.0.0" - strip-ansi "^6.0.1" - -"string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.2, string-width@^4.2.3: +"string-width-cjs@npm:string-width@^4.2.0", "string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.2, string-width@^4.2.3: version "4.2.3" resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== @@ -18264,7 +17777,7 @@ string_decoder@~1.1.1: dependencies: safe-buffer "~5.1.0" -"strip-ansi-cjs@npm:strip-ansi@^6.0.1": +"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1: version "6.0.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== @@ -18278,13 +17791,6 @@ strip-ansi@^5.2.0: dependencies: ansi-regex "^4.1.0" -strip-ansi@^6.0.0, strip-ansi@^6.0.1: - version "6.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" - integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== - dependencies: - ansi-regex "^5.0.1" - strip-ansi@^7.0.1, strip-ansi@^7.1.0: version "7.1.0" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-7.1.0.tgz#d5b6568ca689d8561370b0707685d22434faff45" @@ -18573,7 +18079,7 @@ tar-stream@^1.1.2: to-buffer "^1.1.1" xtend "^4.0.0" -tar@^6.0.2, tar@^6.1.0, tar@^6.1.11, tar@^6.1.2: +tar@^6.1.0, tar@^6.1.11: version "6.2.1" resolved "https://registry.yarnpkg.com/tar/-/tar-6.2.1.tgz#717549c541bc3c2af15751bea94b1dd068d4b03a" integrity sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A== @@ -18869,16 +18375,6 @@ tree-kill@1.2.2, tree-kill@^1.2.2: resolved "https://registry.yarnpkg.com/tree-kill/-/tree-kill-1.2.2.tgz#4ca09a9092c88b73a7cdc5e8a01b507b0790a0cc" integrity sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A== -trim-newlines@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-3.0.1.tgz#260a5d962d8b752425b32f3a7db0dcacd176c144" - integrity sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw== - -"true-case-path@^2.2.1": - version "2.2.1" - resolved "https://registry.yarnpkg.com/true-case-path/-/true-case-path-2.2.1.tgz#c5bf04a5bbec3fd118be4084461b3a27c4d796bf" - integrity sha512-0z3j8R7MCjy10kc/g+qg7Ln3alJTodw9aDuVWZa3uiWqfuBMKeAeP2ocWcxoyM3D73yz3Jt/Pu4qPr4wHSdB/Q== - ts-api-utils@^1.0.1, ts-api-utils@^1.3.0: version "1.4.2" resolved "https://registry.yarnpkg.com/ts-api-utils/-/ts-api-utils-1.4.2.tgz#a6a6dff26117ac7965624fc118525971edc6a82a" @@ -19088,11 +18584,6 @@ type-detect@^4.0.0, type-detect@^4.1.0: resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.1.0.tgz#deb2453e8f08dcae7ae98c626b13dddb0155906c" integrity sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw== -type-fest@^0.18.0: - version "0.18.1" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.18.1.tgz#db4bc151a4a2cf4eebf9add5db75508db6cc841f" - integrity sha512-OIAYXk8+ISY+qTOwkHtKqzAuxchoMiD9Udx+FSGQDuiRR+PJKJHc2NJAXlbhkGwTt/4/nKZxELY1w3ReWOL8mw== - type-fest@^0.20.2: version "0.20.2" resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.20.2.tgz#1bf207f4b28f91583666cb5fbd327887301cd5f4" @@ -19369,20 +18860,6 @@ unicode-property-aliases-ecmascript@^2.0.0: resolved "https://registry.yarnpkg.com/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz#43d41e3be698bd493ef911077c9b131f827e8ccd" integrity sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w== -unique-filename@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/unique-filename/-/unique-filename-1.1.1.tgz#1d69769369ada0583103a1e6ae87681b56573230" - integrity sha512-Vmp0jIp2ln35UTXuryvjzkjGdRyf9b2lTXuSYUiPmzRcl3FDtYqAwOnTJkAngD9SWhnoJzDbTKwaOrZ+STtxNQ== - dependencies: - unique-slug "^2.0.0" - -unique-filename@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/unique-filename/-/unique-filename-2.0.1.tgz#e785f8675a9a7589e0ac77e0b5c34d2eaeac6da2" - integrity sha512-ODWHtkkdx3IAR+veKxFV+VBkUMcN+FaqzUUd7IZzt+0zhDZFPFxhlqwPF3YQvMHx1TD0tdgYl+kuPnJ8E6ql7A== - dependencies: - unique-slug "^3.0.0" - unique-filename@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/unique-filename/-/unique-filename-3.0.0.tgz#48ba7a5a16849f5080d26c760c86cf5cf05770ea" @@ -19390,20 +18867,6 @@ unique-filename@^3.0.0: dependencies: unique-slug "^4.0.0" -unique-slug@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/unique-slug/-/unique-slug-2.0.2.tgz#baabce91083fc64e945b0f3ad613e264f7cd4e6c" - integrity sha512-zoWr9ObaxALD3DOPfjPSqxt4fnZiWblxHIgeWqW8x7UqDzEtHEQLzji2cuJYQFCU6KmoJikOYAZlrTHHebjx2w== - dependencies: - imurmurhash "^0.1.4" - -unique-slug@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/unique-slug/-/unique-slug-3.0.0.tgz#6d347cf57c8a7a7a6044aabd0e2d74e4d76dc7c9" - integrity sha512-8EyMynh679x/0gqE9fT9oilG+qEt+ibFyqjuVTsZn1+CMxH+XLlpvr2UZx4nVcCwTpx81nICr2JQFkM+HPLq4w== - dependencies: - imurmurhash "^0.1.4" - unique-slug@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/unique-slug/-/unique-slug-4.0.0.tgz#6bae6bb16be91351badd24cdce741f892a6532e3" @@ -20267,7 +19730,7 @@ which-typed-array@^1.1.14, which-typed-array@^1.1.15, which-typed-array@^1.1.2: gopd "^1.0.1" has-tostringtag "^1.0.2" -which@2.0.2, which@^2.0.1, which@^2.0.2: +which@2.0.2, which@^2.0.1: version "2.0.2" resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1" integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== @@ -20289,7 +19752,7 @@ why-is-node-running@^2.2.2: siginfo "^2.0.0" stackback "0.0.2" -wide-align@^1.1.2, wide-align@^1.1.5: +wide-align@^1.1.2: version "1.1.5" resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.5.tgz#df1d4c206854369ecf3c9a4898f1b23fbd9d15d3" integrity sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg== @@ -20333,7 +19796,7 @@ workerpool@^6.5.1: resolved "https://registry.yarnpkg.com/workerpool/-/workerpool-6.5.1.tgz#060f73b39d0caf97c6db64da004cd01b4c099544" integrity sha512-Fs4dNYcsdpYSAfVxhnl1L5zTksjvOJxtC5hzMNl+1t9B8hTJTdKDyZ5ju7ztgPy+ft9tBFXoOlDNiOT9WUXZlA== -"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0": +"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== @@ -20351,15 +19814,6 @@ wrap-ansi@^6.0.1, wrap-ansi@^6.2.0: string-width "^4.1.0" strip-ansi "^6.0.0" -wrap-ansi@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" - integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== - dependencies: - ansi-styles "^4.0.0" - string-width "^4.1.0" - strip-ansi "^6.0.0" - wrap-ansi@^8.0.1, wrap-ansi@^8.1.0: version "8.1.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214" @@ -20495,7 +19949,7 @@ yargs-parser@^18.1.2: camelcase "^5.0.0" decamelize "^1.2.0" -yargs-parser@^20.2.2, yargs-parser@^20.2.3, yargs-parser@^20.2.9: +yargs-parser@^20.2.2, yargs-parser@^20.2.9: version "20.2.9" resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.9.tgz#2eb7dc3b0289718fc295f362753845c41a0c94ee" integrity sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w== @@ -20540,7 +19994,7 @@ yargs@^16.0.0, yargs@^16.2.0: y18n "^5.0.5" yargs-parser "^20.2.2" -yargs@^17.2.1, yargs@^17.3.1, yargs@^17.6.2, yargs@^17.7.2: +yargs@^17.3.1, yargs@^17.6.2, yargs@^17.7.2: version "17.7.2" resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.7.2.tgz#991df39aca675a192b816e1e0363f9d75d2aa269" integrity sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w== From 40080d9a39c57d9cc713d1930cdf6e507a399f0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20L=C3=B3pez?= <50665615+flopez7@users.noreply.github.com> Date: Tue, 28 Jan 2025 10:00:58 +0100 Subject: [PATCH 19/44] [SDK] fix: date rounding issues (#3044) * Fix date rounding issues * Create a new method to get unix timestamp and update its references --- .../human-protocol-sdk/src/escrow.ts | 15 ++++++++++----- .../human-protocol-sdk/src/statistics.ts | 18 +++++++++--------- .../human-protocol-sdk/src/transaction.ts | 8 +++----- .../typescript/human-protocol-sdk/src/utils.ts | 10 ++++++++++ .../human-protocol-sdk/test/statistics.test.ts | 16 ++++++++-------- 5 files changed, 40 insertions(+), 27 deletions(-) diff --git a/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts b/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts index 2acef5dd45..97d51bdfef 100644 --- a/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts +++ b/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts @@ -55,7 +55,12 @@ import { NetworkData, TransactionLikeWithNonce, } from './types'; -import { getSubgraphUrl, isValidUrl, throwError } from './utils'; +import { + getSubgraphUrl, + getUnixTimestamp, + isValidUrl, + throwError, +} from './utils'; /** * ## Introduction @@ -1692,8 +1697,8 @@ export class EscrowUtils { ([, value]) => value === filter.status )?.[0] : undefined, - from: filter.from ? +filter.from.getTime() / 1000 : undefined, - to: filter.to ? +filter.to.getTime() / 1000 : undefined, + from: filter.from ? getUnixTimestamp(filter.from) : undefined, + to: filter.to ? getUnixTimestamp(filter.to) : undefined, orderDirection: orderDirection, first: first, skip: skip, @@ -1894,8 +1899,8 @@ export class EscrowUtils { GET_STATUS_UPDATES_QUERY(from, to, launcher), { status: statusNames, - from: from ? Math.floor(from.getTime() / 1000) : undefined, - to: to ? Math.floor(to.getTime() / 1000) : undefined, + from: from ? getUnixTimestamp(from) : undefined, + to: to ? getUnixTimestamp(to) : undefined, launcher: launcher || undefined, orderDirection: orderDirection, first: first, diff --git a/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts b/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts index b071c4545f..f54fe02d9f 100644 --- a/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts +++ b/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts @@ -20,7 +20,7 @@ import { } from './graphql'; import { IHMTHoldersParams, IStatisticsFilter } from './interfaces'; import { NetworkData } from './types'; -import { getSubgraphUrl, throwError } from './utils'; +import { getSubgraphUrl, getUnixTimestamp, throwError } from './utils'; import { OrderDirection } from './enums'; /** @@ -133,8 +133,8 @@ export class StatisticsClient { const { eventDayDatas } = await gqlFetch<{ eventDayDatas: EventDayData[]; }>(this.subgraphUrl, GET_EVENT_DAY_DATA_QUERY(filter), { - from: filter.from ? filter.from.getTime() / 1000 : undefined, - to: filter.to ? filter.to.getTime() / 1000 : undefined, + from: filter.from ? getUnixTimestamp(filter.from) : undefined, + to: filter.to ? getUnixTimestamp(filter.to) : undefined, orderDirection: orderDirection, first: first, skip: skip, @@ -213,8 +213,8 @@ export class StatisticsClient { const { eventDayDatas } = await gqlFetch<{ eventDayDatas: EventDayData[]; }>(this.subgraphUrl, GET_EVENT_DAY_DATA_QUERY(filter), { - from: filter.from ? filter.from.getTime() / 1000 : undefined, - to: filter.to ? filter.to.getTime() / 1000 : undefined, + from: filter.from ? getUnixTimestamp(filter.from) : undefined, + to: filter.to ? getUnixTimestamp(filter.to) : undefined, orderDirection: orderDirection, first: first, skip: skip, @@ -309,8 +309,8 @@ export class StatisticsClient { const { eventDayDatas } = await gqlFetch<{ eventDayDatas: EventDayData[]; }>(this.subgraphUrl, GET_EVENT_DAY_DATA_QUERY(filter), { - from: filter.from ? filter.from.getTime() / 1000 : undefined, - to: filter.to ? filter.to.getTime() / 1000 : undefined, + from: filter.from ? getUnixTimestamp(filter.from) : undefined, + to: filter.to ? getUnixTimestamp(filter.to) : undefined, orderDirection: orderDirection, first: first, skip: skip, @@ -487,8 +487,8 @@ export class StatisticsClient { const { eventDayDatas } = await gqlFetch<{ eventDayDatas: EventDayData[]; }>(this.subgraphUrl, GET_EVENT_DAY_DATA_QUERY(filter), { - from: filter.from ? filter.from.getTime() / 1000 : undefined, - to: filter.to ? filter.to.getTime() / 1000 : undefined, + from: filter.from ? getUnixTimestamp(filter.from) : undefined, + to: filter.to ? getUnixTimestamp(filter.to) : undefined, orderDirection: orderDirection, first: first, skip: skip, diff --git a/packages/sdk/typescript/human-protocol-sdk/src/transaction.ts b/packages/sdk/typescript/human-protocol-sdk/src/transaction.ts index 7444bf7f9b..37397c7914 100644 --- a/packages/sdk/typescript/human-protocol-sdk/src/transaction.ts +++ b/packages/sdk/typescript/human-protocol-sdk/src/transaction.ts @@ -13,7 +13,7 @@ import { GET_TRANSACTION_QUERY, } from './graphql/queries/transaction'; import { ITransaction, ITransactionsFilter } from './interfaces'; -import { getSubgraphUrl } from './utils'; +import { getSubgraphUrl, getUnixTimestamp } from './utils'; export class TransactionUtils { /** @@ -132,11 +132,9 @@ export class TransactionUtils { fromAddress: filter?.fromAddress, toAddress: filter?.toAddress, startDate: filter?.startDate - ? Math.floor(filter?.startDate.getTime() / 1000) - : undefined, - endDate: filter.endDate - ? Math.floor(filter.endDate.getTime() / 1000) + ? getUnixTimestamp(filter?.startDate) : undefined, + endDate: filter.endDate ? getUnixTimestamp(filter.endDate) : undefined, startBlock: filter.startBlock ? filter.startBlock : undefined, endBlock: filter.endBlock ? filter.endBlock : undefined, orderDirection: orderDirection, diff --git a/packages/sdk/typescript/human-protocol-sdk/src/utils.ts b/packages/sdk/typescript/human-protocol-sdk/src/utils.ts index 2f22784fc2..4cff1453ed 100644 --- a/packages/sdk/typescript/human-protocol-sdk/src/utils.ts +++ b/packages/sdk/typescript/human-protocol-sdk/src/utils.ts @@ -73,3 +73,13 @@ export const getSubgraphUrl = (networkData: NetworkData) => { return subgraphUrl; }; + +/** + * **Convert a date to Unix timestamp (seconds since epoch).* + * + * @param {Date} date + * @returns {number} + */ +export const getUnixTimestamp = (date: Date): number => { + return Math.floor(date.getTime() / 1000); +}; diff --git a/packages/sdk/typescript/human-protocol-sdk/test/statistics.test.ts b/packages/sdk/typescript/human-protocol-sdk/test/statistics.test.ts index f3db21d616..ab88a6e9ed 100644 --- a/packages/sdk/typescript/human-protocol-sdk/test/statistics.test.ts +++ b/packages/sdk/typescript/human-protocol-sdk/test/statistics.test.ts @@ -69,8 +69,8 @@ describe('StatisticsClient', () => { 'https://api.studio.thegraph.com/query/74256/polygon/version/latest', GET_EVENT_DAY_DATA_QUERY({ from, to }), { - from: from.getTime() / 1000, - to: to.getTime() / 1000, + from: Math.floor(from.getTime() / 1000), + to: Math.floor(to.getTime() / 1000), orderDirection: OrderDirection.ASC, first: 10, skip: 0, @@ -131,8 +131,8 @@ describe('StatisticsClient', () => { 'https://api.studio.thegraph.com/query/74256/polygon/version/latest', GET_EVENT_DAY_DATA_QUERY({ from, to }), { - from: from.getTime() / 1000, - to: to.getTime() / 1000, + from: Math.floor(from.getTime() / 1000), + to: Math.floor(to.getTime() / 1000), orderDirection: OrderDirection.ASC, first: 10, skip: 0, @@ -190,8 +190,8 @@ describe('StatisticsClient', () => { 'https://api.studio.thegraph.com/query/74256/polygon/version/latest', GET_EVENT_DAY_DATA_QUERY({ from, to }), { - from: from.getTime() / 1000, - to: to.getTime() / 1000, + from: Math.floor(from.getTime() / 1000), + to: Math.floor(to.getTime() / 1000), orderDirection: OrderDirection.ASC, first: 10, skip: 0, @@ -444,8 +444,8 @@ describe('StatisticsClient', () => { 'https://api.studio.thegraph.com/query/74256/polygon/version/latest', GET_EVENT_DAY_DATA_QUERY({ from, to }), { - from: from.getTime() / 1000, - to: to.getTime() / 1000, + from: Math.floor(from.getTime() / 1000), + to: Math.floor(to.getTime() / 1000), orderDirection: OrderDirection.ASC, first: 10, skip: 0, From abff99685406dbfeb0643ee78aa27f177b0e3a89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20L=C3=B3pez?= <50665615+flopez7@users.noreply.github.com> Date: Tue, 28 Jan 2025 14:23:48 +0100 Subject: [PATCH 20/44] Create a new env var to modify dashboard url (#3051) --- packages/apps/staking/.env.example | 2 ++ .../apps/staking/src/components/Headers/DefaultHeader.tsx | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/apps/staking/.env.example b/packages/apps/staking/.env.example index ddf7e89b25..611f637438 100644 --- a/packages/apps/staking/.env.example +++ b/packages/apps/staking/.env.example @@ -1,6 +1,8 @@ VITE_APP_DASHBOARD_API_URL= VITE_APP_ENVIRONMENT=testnet VITE_APP_SUPPORTED_CHAINS=80002 +# links to header +VITE_HEADER_LINK_DASHBOARD= # links to footer socials VITE_FOOTER_LINK_GITHUB= VITE_FOOTER_LINK_DISCORD= diff --git a/packages/apps/staking/src/components/Headers/DefaultHeader.tsx b/packages/apps/staking/src/components/Headers/DefaultHeader.tsx index 0abc506166..46a9f644a5 100644 --- a/packages/apps/staking/src/components/Headers/DefaultHeader.tsx +++ b/packages/apps/staking/src/components/Headers/DefaultHeader.tsx @@ -51,7 +51,7 @@ export const DefaultHeader: FC = () => { Dashboard @@ -108,7 +108,7 @@ export const DefaultHeader: FC = () => { toggleDrawer(false)} > From 096b350d04395776bb334ef76ad72b9776657b33 Mon Sep 17 00:00:00 2001 From: mpblocky <185767042+mpblocky@users.noreply.github.com> Date: Tue, 28 Jan 2025 17:03:10 +0100 Subject: [PATCH 21/44] [Human App] refactor: homepage state context (#3005) --- .../choose-sign-up-account-type.tsx | 2 +- .../modules/homepage/components/welcome.tsx | 2 +- .../src/modules/homepage/views/home.page.tsx | 2 +- .../components/layout/unprotected/navbar.tsx | 2 +- .../{ => homepage-state}/homepage-state.tsx | 27 +++++++------------ .../shared/contexts/homepage-state/index.ts | 2 ++ .../homepage-state/use-homepage-state.tsx | 12 +++++++++ .../hooks/use-handle-main-nav-icon-click.tsx | 2 +- 8 files changed, 29 insertions(+), 22 deletions(-) rename packages/apps/human-app/frontend/src/shared/contexts/{ => homepage-state}/homepage-state.tsx (59%) create mode 100644 packages/apps/human-app/frontend/src/shared/contexts/homepage-state/index.ts create mode 100644 packages/apps/human-app/frontend/src/shared/contexts/homepage-state/use-homepage-state.tsx diff --git a/packages/apps/human-app/frontend/src/modules/homepage/components/choose-sign-up-account-type.tsx b/packages/apps/human-app/frontend/src/modules/homepage/components/choose-sign-up-account-type.tsx index 4e47f59897..d3768ced6f 100644 --- a/packages/apps/human-app/frontend/src/modules/homepage/components/choose-sign-up-account-type.tsx +++ b/packages/apps/human-app/frontend/src/modules/homepage/components/choose-sign-up-account-type.tsx @@ -7,8 +7,8 @@ import { routerPaths } from '@/router/router-paths'; import { PageCard } from '@/shared/components/ui/page-card'; import type { HomePageStageType } from '@/modules/homepage/views/home.page'; import { useColorMode } from '@/shared/hooks/use-color-mode'; -import { useHomePageState } from '@/shared/contexts/homepage-state'; import { onlyDarkModeColor } from '@/shared/styles/dark-color-palette'; +import { useHomePageState } from '@/shared/contexts/homepage-state'; interface ChooseSignUpAccountType { setStage: (step: HomePageStageType) => void; diff --git a/packages/apps/human-app/frontend/src/modules/homepage/components/welcome.tsx b/packages/apps/human-app/frontend/src/modules/homepage/components/welcome.tsx index e1294de4bb..2ab371fed6 100644 --- a/packages/apps/human-app/frontend/src/modules/homepage/components/welcome.tsx +++ b/packages/apps/human-app/frontend/src/modules/homepage/components/welcome.tsx @@ -12,8 +12,8 @@ import { useIsMobile } from '@/shared/hooks/use-is-mobile'; import { OperatorSignIn } from '@/modules/homepage/hooks/use-operator-signin'; import { WorkerSignIn } from '@/modules/homepage/components/worker-signin'; import { useColorMode } from '@/shared/hooks/use-color-mode'; -import { useHomePageState } from '@/shared/contexts/homepage-state'; import { useBackgroundColorStore } from '@/shared/hooks/use-background-store'; +import { useHomePageState } from '@/shared/contexts/homepage-state'; export function Welcome() { const { colorPalette, isDarkMode } = useColorMode(); diff --git a/packages/apps/human-app/frontend/src/modules/homepage/views/home.page.tsx b/packages/apps/human-app/frontend/src/modules/homepage/views/home.page.tsx index a3a69c973a..dd6d805e80 100644 --- a/packages/apps/human-app/frontend/src/modules/homepage/views/home.page.tsx +++ b/packages/apps/human-app/frontend/src/modules/homepage/views/home.page.tsx @@ -8,8 +8,8 @@ import { useAuth } from '@/modules/auth/hooks/use-auth'; import { routerPaths } from '@/router/router-paths'; import { Button } from '@/shared/components/ui/button'; import { useColorMode } from '@/shared/hooks/use-color-mode'; -import { useHomePageState } from '@/shared/contexts/homepage-state'; import { HomeContainer } from '@/modules/homepage/components/home-container'; +import { useHomePageState } from '@/shared/contexts/homepage-state'; export type HomePageStageType = 'welcome' | 'chooseSignUpAccountType'; diff --git a/packages/apps/human-app/frontend/src/shared/components/layout/unprotected/navbar.tsx b/packages/apps/human-app/frontend/src/shared/components/layout/unprotected/navbar.tsx index 9709223f32..fa241c0ddb 100644 --- a/packages/apps/human-app/frontend/src/shared/components/layout/unprotected/navbar.tsx +++ b/packages/apps/human-app/frontend/src/shared/components/layout/unprotected/navbar.tsx @@ -11,9 +11,9 @@ import { useIsMobile } from '@/shared/hooks/use-is-mobile'; import { Button } from '@/shared/components/ui/button'; import { breakpoints } from '@/shared/styles/breakpoints'; import { env } from '@/shared/env'; -import { useHomePageState } from '@/shared/contexts/homepage-state'; import { DarkModeSwitch } from '@/shared/components/ui/dark-mode-switch'; import { useHandleMainNavIconClick } from '@/shared/hooks/use-handle-main-nav-icon-click'; +import { useHomePageState } from '@/shared/contexts/homepage-state'; interface NavbarProps { withNavigation: boolean; diff --git a/packages/apps/human-app/frontend/src/shared/contexts/homepage-state.tsx b/packages/apps/human-app/frontend/src/shared/contexts/homepage-state/homepage-state.tsx similarity index 59% rename from packages/apps/human-app/frontend/src/shared/contexts/homepage-state.tsx rename to packages/apps/human-app/frontend/src/shared/contexts/homepage-state/homepage-state.tsx index b75a37f3b7..7b5f0cabba 100644 --- a/packages/apps/human-app/frontend/src/shared/contexts/homepage-state.tsx +++ b/packages/apps/human-app/frontend/src/shared/contexts/homepage-state/homepage-state.tsx @@ -1,8 +1,8 @@ -import React, { createContext, useState, useContext } from 'react'; +import React, { createContext, useMemo, useState } from 'react'; import { useLocation } from 'react-router-dom'; import { routerPaths } from '@/router/router-paths'; -export type HomePageStateType = 'welcome' | 'chooseSignUpAccountType'; +type HomePageStateType = 'welcome' | 'chooseSignUpAccountType'; interface HomePageStageContextProps { pageView: HomePageStateType; @@ -15,30 +15,23 @@ export const HomePageStateContext = export function HomePageStateProvider({ children, -}: { +}: Readonly<{ children: React.ReactNode; -}) { +}>) { const [pageView, setPageView] = useState('welcome'); const location = useLocation(); const isMainPage = location.pathname === routerPaths.homePage && pageView === 'welcome'; + const contextValue = useMemo( + () => ({ pageView, setPageView, isMainPage }), + [pageView, setPageView, isMainPage] + ); + return ( - + {children} ); } - -export const useHomePageState = () => { - const context = useContext(HomePageStateContext); - if (!context) { - throw new Error( - 'useHomePageState must be used within a HomePageStageProvider' - ); - } - return context; -}; diff --git a/packages/apps/human-app/frontend/src/shared/contexts/homepage-state/index.ts b/packages/apps/human-app/frontend/src/shared/contexts/homepage-state/index.ts new file mode 100644 index 0000000000..781cb6bd33 --- /dev/null +++ b/packages/apps/human-app/frontend/src/shared/contexts/homepage-state/index.ts @@ -0,0 +1,2 @@ +export * from './homepage-state'; +export * from './use-homepage-state'; diff --git a/packages/apps/human-app/frontend/src/shared/contexts/homepage-state/use-homepage-state.tsx b/packages/apps/human-app/frontend/src/shared/contexts/homepage-state/use-homepage-state.tsx new file mode 100644 index 0000000000..c228db521f --- /dev/null +++ b/packages/apps/human-app/frontend/src/shared/contexts/homepage-state/use-homepage-state.tsx @@ -0,0 +1,12 @@ +import { useContext } from 'react'; +import { HomePageStateContext } from './homepage-state'; + +export const useHomePageState = () => { + const context = useContext(HomePageStateContext); + if (!context) { + throw new Error( + 'useHomePageState must be used within a HomePageStageProvider' + ); + } + return context; +}; diff --git a/packages/apps/human-app/frontend/src/shared/hooks/use-handle-main-nav-icon-click.tsx b/packages/apps/human-app/frontend/src/shared/hooks/use-handle-main-nav-icon-click.tsx index 0c5a01f880..1e81c7d114 100644 --- a/packages/apps/human-app/frontend/src/shared/hooks/use-handle-main-nav-icon-click.tsx +++ b/packages/apps/human-app/frontend/src/shared/hooks/use-handle-main-nav-icon-click.tsx @@ -1,8 +1,8 @@ import { useNavigate } from 'react-router-dom'; import { useWeb3Auth } from '@/modules/auth-web3/hooks/use-web3-auth'; import { useAuth } from '@/modules/auth/hooks/use-auth'; -import { useHomePageState } from '@/shared/contexts/homepage-state'; import { routerPaths } from '@/router/router-paths'; +import { useHomePageState } from '../contexts/homepage-state/use-homepage-state'; export const useHandleMainNavIconClick = () => { const navigate = useNavigate(); From 4a2acf3b9cc7d4d2062ded71b3a05610b4e850bb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 29 Jan 2025 09:45:11 +0100 Subject: [PATCH 22/44] chore(deps): bump @nestjs/platform-express from 10.4.11 to 11.0.6 (#3046) Bumps [@nestjs/platform-express](https://github.com/nestjs/nest/tree/HEAD/packages/platform-express) from 10.4.11 to 11.0.6. - [Release notes](https://github.com/nestjs/nest/releases) - [Commits](https://github.com/nestjs/nest/commits/v11.0.6/packages/platform-express) --- updated-dependencies: - dependency-name: "@nestjs/platform-express" dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/apps/dashboard/server/package.json | 2 +- yarn.lock | 303 +++++++++++++++++--- 2 files changed, 270 insertions(+), 35 deletions(-) diff --git a/packages/apps/dashboard/server/package.json b/packages/apps/dashboard/server/package.json index 0822378082..c70d07e6c7 100644 --- a/packages/apps/dashboard/server/package.json +++ b/packages/apps/dashboard/server/package.json @@ -27,7 +27,7 @@ "@nestjs/config": "^3.2.3", "@nestjs/core": "^10.2.8", "@nestjs/mapped-types": "*", - "@nestjs/platform-express": "^10.3.10", + "@nestjs/platform-express": "^11.0.6", "cache-manager": "^5.4.0", "cache-manager-redis-yet": "^5.1.5", "dayjs": "^1.11.12", diff --git a/yarn.lock b/yarn.lock index 5eab5d2ce3..b7dcce9189 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3243,16 +3243,16 @@ resolved "https://registry.yarnpkg.com/@nestjs/passport/-/passport-10.0.3.tgz#26ec5b2167d364e04962c115fcef80d10e185367" integrity sha512-znJ9Y4S8ZDVY+j4doWAJ8EuuVO7SkQN3yOBmzxbGaXbvcSwFDAdGJ+OMCg52NdzIO4tQoN4pYKx8W6M0ArfFRQ== -"@nestjs/platform-express@^10.3.10": - version "10.4.11" - resolved "https://registry.yarnpkg.com/@nestjs/platform-express/-/platform-express-10.4.11.tgz#5c80ae93dda45c3bac146bc560e0307747661b9a" - integrity sha512-YjhoIOdCbpxy3p5Em2pqYsUY+5cpyocguCzMI91qh41/jTAUzBD25K+hAiMyENZXEkDyscoF8OajyZvWm1ihdQ== +"@nestjs/platform-express@^11.0.6": + version "11.0.6" + resolved "https://registry.yarnpkg.com/@nestjs/platform-express/-/platform-express-11.0.6.tgz#4ab7b81078ab63175db874a939513ddac1f9a08d" + integrity sha512-fP6vrpqDIBaf1FNfFtBeJm/BwtGtueatI4FHxaBgw93XxKmIOV4G4ZO7ouQKqfgyIxV2mkYr/Fhg7hwRmizIjw== dependencies: - body-parser "1.20.3" cors "2.8.5" - express "4.21.1" - multer "1.4.4-lts.1" - tslib "2.7.0" + express "5.0.1" + multer "1.4.5-lts.1" + path-to-regexp "8.2.0" + tslib "2.8.1" "@nestjs/schedule@^4.0.1": version "4.1.1" @@ -6839,6 +6839,14 @@ abort-controller@^3.0.0: dependencies: event-target-shim "^5.0.0" +accepts@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/accepts/-/accepts-2.0.0.tgz#bbcf4ba5075467f3f2131eab3cffc73c2f5d7895" + integrity sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng== + dependencies: + mime-types "^3.0.0" + negotiator "^1.0.0" + accepts@~1.3.5, accepts@~1.3.8: version "1.3.8" resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.8.tgz#0bf0be125b67014adcb0b0921e62db7bffe16b2e" @@ -7175,6 +7183,11 @@ array-flatten@1.1.1: resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2" integrity sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg== +array-flatten@3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-3.0.0.tgz#6428ca2ee52c7b823192ec600fa3ed2f157cd541" + integrity sha512-zPMVc3ZYlGLNk4mpK1NzP2wg0ml9t7fUgDsayR5Y5rSzxQilzR9FGu/EH2jQOcKSAeAfWeylyW8juy3OkWRvNA== + array-includes@^3.1.6, array-includes@^3.1.8: version "3.1.8" resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.1.8.tgz#5e370cbe172fdd5dd6530c1d4aadda25281ba97d" @@ -7712,6 +7725,22 @@ body-parser@1.20.3, body-parser@^1.20.0, body-parser@^1.20.2: type-is "~1.6.18" unpipe "1.0.0" +body-parser@^2.0.1: + version "2.0.2" + resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-2.0.2.tgz#52a90ca70bfafae03210b5b998e4ffcc3ecaecae" + integrity sha512-SNMk0OONlQ01uk8EPeiBvTW7W4ovpL5b1O3t1sjpPgfxOQ6BqQJ6XjxinDPR79Z6HdcD5zBBwr5ssiTlgdNztQ== + dependencies: + bytes "3.1.2" + content-type "~1.0.5" + debug "3.1.0" + destroy "1.2.0" + http-errors "2.0.0" + iconv-lite "0.5.2" + on-finished "2.4.1" + qs "6.13.0" + raw-body "^3.0.0" + type-is "~1.6.18" + bowser@^2.9.0: version "2.11.0" resolved "https://registry.yarnpkg.com/bowser/-/bowser-2.11.0.tgz#5ca3c35757a7aa5771500c70a73a9f91ef420a8f" @@ -8749,7 +8778,14 @@ content-disposition@0.5.4: dependencies: safe-buffer "5.2.1" -content-type@~1.0.4, content-type@~1.0.5: +content-disposition@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-1.0.0.tgz#844426cb398f934caefcbb172200126bc7ceace2" + integrity sha512-Au9nRL8VNUut/XSzbQA38+M78dzP4D+eqg3gfJHMIHHYa3bg067xj1KxMUWj+VULbiZMowKngFFbKczUrNJ1mg== + dependencies: + safe-buffer "5.2.1" + +content-type@^1.0.5, content-type@~1.0.4, content-type@~1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.5.tgz#8b773162656d1d1086784c8f23a54ce6d73d7918" integrity sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA== @@ -8779,6 +8815,11 @@ cookie-signature@1.0.6: resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-1.0.6.tgz#e303a882b342cc3ee8ca513a79999734dab3ae2c" integrity sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ== +cookie-signature@^1.2.1: + version "1.2.2" + resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-1.2.2.tgz#57c7fc3cc293acab9fec54d73e15690ebe4a1793" + integrity sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg== + cookie@0.7.1: version "0.7.1" resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.7.1.tgz#2f73c42142d5d5cf71310a74fc4ae61670e5dbc9" @@ -9199,6 +9240,13 @@ debug@2.6.9: dependencies: ms "2.0.0" +debug@3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/debug/-/debug-3.1.0.tgz#5bb5a0672628b64149566ba16819e61518c67261" + integrity sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g== + dependencies: + ms "2.0.0" + debug@4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.3.4, debug@^4.3.5, debug@^4.3.7, debug@~4.4.0: version "4.4.0" resolved "https://registry.yarnpkg.com/debug/-/debug-4.4.0.tgz#2b3f2aea2ffeb776477460267377dc8710faba8a" @@ -9213,6 +9261,13 @@ debug@4.3.4: dependencies: ms "2.1.2" +debug@4.3.6: + version "4.3.6" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.6.tgz#2ab2c38fbaffebf8aa95fdfe6d88438c7a13c52b" + integrity sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg== + dependencies: + ms "2.1.2" + debug@^3.2.6, debug@^3.2.7: version "3.2.7" resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.7.tgz#72580b7e9145fb39b6676f9c5e5fb100b934179a" @@ -9372,7 +9427,7 @@ destr@^2.0.3: resolved "https://registry.yarnpkg.com/destr/-/destr-2.0.3.tgz#7f9e97cb3d16dbdca7be52aca1644ce402cfe449" integrity sha512-2N3BOUU4gYMpTP24s5rF5iP7BDr7uNTCs4ozw3kf/eKfvWSIu93GEBi5m427YoyJoeOzQ5smuu4nNAPGb8idSQ== -destroy@1.2.0: +destroy@1.2.0, destroy@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.2.0.tgz#4803735509ad8be552934c67df614f94e66fa015" integrity sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg== @@ -9682,16 +9737,16 @@ encode-utf8@^1.0.2: resolved "https://registry.yarnpkg.com/encode-utf8/-/encode-utf8-1.0.3.tgz#f30fdd31da07fb596f281beb2f6b027851994cda" integrity sha512-ucAnuBEhUK4boH2HjVYG5Q2mQyPorvv0u/ocS+zhdw0S8AlHYY+GOFhP1Gio5z4icpP2ivFSvhtFjQi8+T9ppw== +encodeurl@^2.0.0, encodeurl@~2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-2.0.0.tgz#7b8ea898077d7e409d3ac45474ea38eaf0857a58" + integrity sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg== + encodeurl@~1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59" integrity sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w== -encodeurl@~2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-2.0.0.tgz#7b8ea898077d7e409d3ac45474ea38eaf0857a58" - integrity sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg== - encoding@^0.1.13: version "0.1.13" resolved "https://registry.yarnpkg.com/encoding/-/encoding-0.1.13.tgz#56574afdd791f54a8e9b2785c0582a2d26210fa9" @@ -10076,7 +10131,7 @@ escalade@^3.1.1, escalade@^3.2.0: resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.2.0.tgz#011a3f69856ba189dffa7dc8fcce99d2a87903e5" integrity sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA== -escape-html@~1.0.3: +escape-html@^1.0.3, escape-html@~1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" integrity sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow== @@ -10507,7 +10562,7 @@ esutils@^2.0.2: resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== -etag@1.8.1, etag@~1.8.1: +etag@1.8.1, etag@^1.8.1, etag@~1.8.1: version "1.8.1" resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887" integrity sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg== @@ -10778,7 +10833,45 @@ express-rate-limit@^7.3.0: resolved "https://registry.yarnpkg.com/express-rate-limit/-/express-rate-limit-7.4.1.tgz#90954ecbcde9e7ae7b5000325395f86991191d94" integrity sha512-KS3efpnpIDVIXopMc65EMbWbUht7qvTCdtCR2dD/IZmi9MIkopYESwyRqLgv8Pfu589+KqDqOdzJWW7AHoACeg== -express@4.21.1, express@^4.21.0: +express@5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/express/-/express-5.0.1.tgz#5d359a2550655be33124ecbc7400cd38436457e9" + integrity sha512-ORF7g6qGnD+YtUG9yx4DFoqCShNMmUKiXuT5oWMHiOvt/4WFbHC6yCwQMTSBMno7AqntNCAzzcnnjowRkTL9eQ== + dependencies: + accepts "^2.0.0" + body-parser "^2.0.1" + content-disposition "^1.0.0" + content-type "~1.0.4" + cookie "0.7.1" + cookie-signature "^1.2.1" + debug "4.3.6" + depd "2.0.0" + encodeurl "~2.0.0" + escape-html "~1.0.3" + etag "~1.8.1" + finalhandler "^2.0.0" + fresh "2.0.0" + http-errors "2.0.0" + merge-descriptors "^2.0.0" + methods "~1.1.2" + mime-types "^3.0.0" + on-finished "2.4.1" + once "1.4.0" + parseurl "~1.3.3" + proxy-addr "~2.0.7" + qs "6.13.0" + range-parser "~1.2.1" + router "^2.0.0" + safe-buffer "5.2.1" + send "^1.1.0" + serve-static "^2.1.0" + setprototypeof "1.2.0" + statuses "2.0.1" + type-is "^2.0.0" + utils-merge "1.0.1" + vary "~1.1.2" + +express@^4.21.0: version "4.21.1" resolved "https://registry.yarnpkg.com/express/-/express-4.21.1.tgz#9dae5dda832f16b4eec941a4e44aa89ec481b281" integrity sha512-YSFlK1Ee0/GC8QaO91tHcDxJiE/X4FbpAyQWkxAvG6AXCuR65YzK8ua6D9hvi/TzUfZMpc+BwuM1IPw8fmQBiQ== @@ -11031,6 +11124,19 @@ finalhandler@1.3.1: statuses "2.0.1" unpipe "~1.0.0" +finalhandler@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-2.0.0.tgz#9d3c79156dfa798069db7de7dd53bc37546f564b" + integrity sha512-MX6Zo2adDViYh+GcxxB1dpO43eypOGUOL12rLCOTMQv/DfIbpSJUy4oQIIZhVZkH9e+bZWKMon0XHFEju16tkQ== + dependencies: + debug "2.6.9" + encodeurl "~1.0.2" + escape-html "~1.0.3" + on-finished "2.4.1" + parseurl "~1.3.3" + statuses "2.0.1" + unpipe "~1.0.0" + find-replace@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/find-replace/-/find-replace-3.0.0.tgz#3e7e23d3b05167a76f770c9fbd5258b0def68c38" @@ -11180,11 +11286,16 @@ fp-ts@^1.0.0: resolved "https://registry.yarnpkg.com/fp-ts/-/fp-ts-1.19.5.tgz#3da865e585dfa1fdfd51785417357ac50afc520a" integrity sha512-wDNqTimnzs8QqpldiId9OavWK2NptormjXnRJTQecNjzwfyp6P/8s/zG8e4h3ja3oqkKaY72UlTjQYt/1yXf9A== -fresh@0.5.2: +fresh@0.5.2, fresh@^0.5.2: version "0.5.2" resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7" integrity sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q== +fresh@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/fresh/-/fresh-2.0.0.tgz#8dd7df6a1b3a1b3a5cf186c05a5dd267622635a4" + integrity sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A== + fs-constants@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/fs-constants/-/fs-constants-1.0.0.tgz#6be0de9be998ce16af8afc24497b9ee9b7ccd9ad" @@ -12080,7 +12191,7 @@ http-cache-semantics@^4.1.1: resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz#abe02fcb2985460bf0323be664436ec3476a6d5a" integrity sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ== -http-errors@2.0.0: +http-errors@2.0.0, http-errors@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-2.0.0.tgz#b7774a1486ef73cf7667ac9ae0858c012c57b9d3" integrity sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ== @@ -12175,6 +12286,13 @@ iconv-lite@0.4.24, iconv-lite@^0.4.24: dependencies: safer-buffer ">= 2.1.2 < 3" +iconv-lite@0.5.2: + version "0.5.2" + resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.5.2.tgz#af6d628dccfb463b7364d97f715e4b74b8c8c2b8" + integrity sha512-kERHXvpSaB4aU3eANwidg79K8FlrN77m8G9V+0vOR3HYaRifrlwMEpT7ZBJqLSEIHnEgJTHcWK82wwLwwKwtag== + dependencies: + safer-buffer ">= 2.1.2 < 3" + iconv-lite@0.6.3, iconv-lite@^0.6.2, iconv-lite@^0.6.3: version "0.6.3" resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.6.3.tgz#a52f80bf38da1952eb5c681790719871a1a72501" @@ -12722,6 +12840,11 @@ is-potential-custom-element-name@^1.0.1: resolved "https://registry.yarnpkg.com/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz#171ed6f19e3ac554394edf78caa05784a45bebb5" integrity sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ== +is-promise@4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/is-promise/-/is-promise-4.0.0.tgz#42ff9f84206c1991d26debf520dd5c01042dd2f3" + integrity sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ== + is-regex@^1.1.4: version "1.1.4" resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.1.4.tgz#eef5663cd59fa4c0ae339505323df6854bb15958" @@ -14332,6 +14455,11 @@ media-typer@0.3.0: resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748" integrity sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ== +media-typer@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-1.1.0.tgz#6ab74b8f2d3320f2064b2a87a38e7931ff3a5561" + integrity sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw== + memfs@^3.4.1: version "3.6.0" resolved "https://registry.yarnpkg.com/memfs/-/memfs-3.6.0.tgz#d7a2110f86f79dd950a8b6df6d57bc984aa185f6" @@ -14349,6 +14477,11 @@ merge-descriptors@1.0.3: resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-1.0.3.tgz#d80319a65f3c7935351e5cfdac8f9318504dbed5" integrity sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ== +merge-descriptors@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-2.0.0.tgz#ea922f660635a2249ee565e0449f951e6b603808" + integrity sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g== + merge-options@^3.0.4: version "3.0.4" resolved "https://registry.yarnpkg.com/merge-options/-/merge-options-3.0.4.tgz#84709c2aa2a4b24c1981f66c179fe5565cc6dbb7" @@ -14402,7 +14535,7 @@ mime-db@1.52.0: resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== -"mime-db@>= 1.43.0 < 2": +"mime-db@>= 1.43.0 < 2", mime-db@^1.53.0: version "1.53.0" resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.53.0.tgz#3cb63cd820fc29896d9d4e8c32ab4fcd74ccb447" integrity sha512-oHlN/w+3MQ3rba9rqFr6V/ypF10LSkdwUysQL7GkXoTgIWeV+tcXGA852TBxH+gsh8UWoyhR1hKcoMJTuWflpg== @@ -14426,6 +14559,13 @@ mime-types@^2.1.12, mime-types@^2.1.27, mime-types@^2.1.35, mime-types@~2.1.24, dependencies: mime-db "1.52.0" +mime-types@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-3.0.0.tgz#148453a900475522d095a445355c074cca4f5217" + integrity sha512-XqoSHeCGjVClAmoGFG3lVFqQFRIrTVw2OH3axRqAcfaw+gHWIfnASS92AV+Rl/mk0MupgZTRHQOjxY6YVnzK5w== + dependencies: + mime-db "^1.53.0" + mime@1.6.0: version "1.6.0" resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" @@ -14734,10 +14874,10 @@ mui-image@^1.0.7: resolved "https://registry.yarnpkg.com/mui-image/-/mui-image-1.0.7.tgz#f665432d2cbf6140a34903b9a5143560ebd4df27" integrity sha512-U79TWMKMfMC1ZiGnv/M+SaVJeUpubEjXOdy7w53RsvidUAMZ+4nW+QmDG9yg5fgWeYy6YJgLHyI9BHSDw76iIg== -multer@1.4.4-lts.1: - version "1.4.4-lts.1" - resolved "https://registry.yarnpkg.com/multer/-/multer-1.4.4-lts.1.tgz#24100f701a4611211cfae94ae16ea39bb314e04d" - integrity sha512-WeSGziVj6+Z2/MwQo3GvqzgR+9Uc+qt8SwHKh3gvNPiISKfsMfG4SvCOFYlxxgkXt7yIV2i1yczehm0EOKIxIg== +multer@1.4.5-lts.1: + version "1.4.5-lts.1" + resolved "https://registry.yarnpkg.com/multer/-/multer-1.4.5-lts.1.tgz#803e24ad1984f58edffbc79f56e305aec5cfd1ac" + integrity sha512-ywPWvcDMeH+z9gQq5qYHCCy+ethsk4goepZ45GLD63fOu0YcNecQxi64nDs3qluZB+murG3/D4dJ7+dGctcCQQ== dependencies: append-field "^1.0.0" busboy "^1.0.0" @@ -14860,6 +15000,11 @@ negotiator@^0.6.3: resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.4.tgz#777948e2452651c570b712dd01c23e262713fff7" integrity sha512-myRT3DiWPHqho5PrJaIRyaMv2kgYf0mUVgBNOYMuCH5Ki1yEiQaf/ZJuQ62nvpc44wL5WDbTX7yGJi1Neevw8w== +negotiator@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-1.0.0.tgz#b6c91bb47172d69f93cfd7c357bbb529019b5f6a" + integrity sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg== + neo-async@^2.6.2: version "2.6.2" resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f" @@ -15218,7 +15363,7 @@ on-exit-leak-free@^0.2.0: resolved "https://registry.yarnpkg.com/on-exit-leak-free/-/on-exit-leak-free-0.2.0.tgz#b39c9e3bf7690d890f4861558b0d7b90a442d209" integrity sha512-dqaz3u44QbRXQooZLTUKU41ZrzYrcvLISVgbrzbyCMxpmSLJvZ3ZamIJIZ29P6OhZIkNIQKosdeM6t1LYbA9hg== -on-finished@2.4.1: +on-finished@2.4.1, on-finished@^2.4.1: version "2.4.1" resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.4.1.tgz#58c8c44116e54845ad57f14ab10b03533184ac3f" integrity sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg== @@ -15230,7 +15375,7 @@ on-headers@~1.0.2: resolved "https://registry.yarnpkg.com/on-headers/-/on-headers-1.0.2.tgz#772b0ae6aaa525c399e489adfad90c403eb3c28f" integrity sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA== -once@1.x, once@^1.3.0, once@^1.3.1, once@^1.4.0: +once@1.4.0, once@1.x, once@^1.3.0, once@^1.3.1, once@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w== @@ -15502,7 +15647,7 @@ parse5@^7.0.0, parse5@^7.1.1, parse5@^7.1.2: dependencies: entities "^4.5.0" -parseurl@~1.3.3: +parseurl@^1.3.3, parseurl@~1.3.3: version "1.3.3" resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.3.tgz#9da19e7bee8d12dff0513ed5b76957793bc2e8d4" integrity sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ== @@ -15605,6 +15750,11 @@ path-to-regexp@6.2.1: resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-6.2.1.tgz#d54934d6798eb9e5ef14e7af7962c945906918e5" integrity sha512-JLyh7xT1kizaEvcaXOQwOc2/Yhw6KZOvPf1S8401UyLk86CU79LN3vl7ztXGm/pZ+YjoyAJ4rxmHwbkBXJX+yw== +path-to-regexp@8.2.0, path-to-regexp@^8.0.0: + version "8.2.0" + resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-8.2.0.tgz#73990cc29e57a3ff2a0d914095156df5db79e8b4" + integrity sha512-TdrF7fW9Rphjq4RjrW0Kp2AW0Ahwu9sRGTkS6bvDi0SCwZlEZYmcfDbEsTz8RVk0EHIS/Vd1bv3JhG+1xZuAyQ== + path-type@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b" @@ -16275,7 +16425,7 @@ range-parser@1.2.0: resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.0.tgz#f49be6b487894ddc40dcc94a322f611092e00d5e" integrity sha512-kA5WQoNVo4t9lNx2kQNFCxKeBl5IbbSNBl1M/tLkw9WCn+hxNBAW5Qh8gdhs63CJnhjJ2zQWFoqPJP2sK1AV5A== -range-parser@~1.2.1: +range-parser@^1.2.1, range-parser@~1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.1.tgz#3cf37023d199e1c24d1a55b84800c2f3e6468031" integrity sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg== @@ -16290,6 +16440,16 @@ raw-body@2.5.2, raw-body@^2.4.1: iconv-lite "0.4.24" unpipe "1.0.0" +raw-body@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-3.0.0.tgz#25b3476f07a51600619dae3fe82ddc28a36e5e0f" + integrity sha512-RmkhL8CAyCRPXCE28MMH0z2PNWQBNk2Q09ZdxM9IOOXwxwZbN+qbWaatPkdkWIKL2ZVDImrN/pK5HTRz2PcS4g== + dependencies: + bytes "3.1.2" + http-errors "2.0.0" + iconv-lite "0.6.3" + unpipe "1.0.0" + rc@^1.0.1, rc@^1.1.6: version "1.2.8" resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.8.tgz#cd924bf5200a075b83c188cd6b9e211b7fc0d3ed" @@ -16917,6 +17077,19 @@ rollup@^4.20.0: "@rollup/rollup-win32-x64-msvc" "4.27.4" fsevents "~2.3.2" +router@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/router/-/router-2.0.0.tgz#8692720b95de83876870d7bc638dd3c7e1ae8a27" + integrity sha512-dIM5zVoG8xhC6rnSN8uoAgFARwTE7BQs8YwHEvK0VCmfxQXMaOuA1uiR1IPwsW7JyK5iTt7Od/TC9StasS2NPQ== + dependencies: + array-flatten "3.0.0" + is-promise "4.0.0" + methods "~1.1.2" + parseurl "~1.3.3" + path-to-regexp "^8.0.0" + setprototypeof "1.2.0" + utils-merge "1.0.1" + rrweb-cssom@^0.7.1: version "0.7.1" resolved "https://registry.yarnpkg.com/rrweb-cssom/-/rrweb-cssom-0.7.1.tgz#c73451a484b86dd7cfb1e0b2898df4b703183e4b" @@ -17091,6 +17264,24 @@ send@0.19.0: range-parser "~1.2.1" statuses "2.0.1" +send@^1.0.0, send@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/send/-/send-1.1.0.tgz#4efe6ff3bb2139b0e5b2648d8b18d4dec48fc9c5" + integrity sha512-v67WcEouB5GxbTWL/4NeToqcZiAWEq90N888fczVArY8A79J0L4FD7vj5hm3eUMua5EpoQ59wa/oovY6TLvRUA== + dependencies: + debug "^4.3.5" + destroy "^1.2.0" + encodeurl "^2.0.0" + escape-html "^1.0.3" + etag "^1.8.1" + fresh "^0.5.2" + http-errors "^2.0.0" + mime-types "^2.1.35" + ms "^2.1.3" + on-finished "^2.4.1" + range-parser "^1.2.1" + statuses "^2.0.1" + serialize-javascript@^6.0.1, serialize-javascript@^6.0.2: version "6.0.2" resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-6.0.2.tgz#defa1e055c83bf6d59ea805d8da862254eb6a6c2" @@ -17121,6 +17312,16 @@ serve-static@1.16.2: parseurl "~1.3.3" send "0.19.0" +serve-static@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-2.1.0.tgz#1b4eacbe93006b79054faa4d6d0a501d7f0e84e2" + integrity sha512-A3We5UfEjG8Z7VkDv6uItWw6HY2bBSBJT1KtVESn6EOoOr2jAxNhxWCLY3jDE2WcuHXByWju74ck3ZgLwL8xmA== + dependencies: + encodeurl "^2.0.0" + escape-html "^1.0.3" + parseurl "^1.3.3" + send "^1.0.0" + serve@^14.2.4: version "14.2.4" resolved "https://registry.yarnpkg.com/serve/-/serve-14.2.4.tgz#ba4c425c3c965f496703762e808f34b913f42fb0" @@ -17571,7 +17772,7 @@ stacktrace-parser@^0.1.10: dependencies: type-fest "^0.7.1" -statuses@2.0.1: +statuses@2.0.1, statuses@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/statuses/-/statuses-2.0.1.tgz#55cb000ccf1d48728bd23c685a063998cf1a1b63" integrity sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ== @@ -17668,7 +17869,16 @@ string-natural-compare@^3.0.1: resolved "https://registry.yarnpkg.com/string-natural-compare/-/string-natural-compare-3.0.1.tgz#7a42d58474454963759e8e8b7ae63d71c1e7fdf4" integrity sha512-n3sPwynL1nwKi3WJ6AIsClwBMa0zTi54fn2oLU6ndfTSIO05xaznjSf15PcBZU6FNWbmN5Q6cxT4V5hGvB4taw== -"string-width-cjs@npm:string-width@^4.2.0", "string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.2, string-width@^4.2.3: +"string-width-cjs@npm:string-width@^4.2.0": + version "4.2.3" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" + integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.1" + +"string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.2, string-width@^4.2.3: version "4.2.3" resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== @@ -17777,7 +17987,7 @@ string_decoder@~1.1.1: dependencies: safe-buffer "~5.1.0" -"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1: +"strip-ansi-cjs@npm:strip-ansi@^6.0.1": version "6.0.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== @@ -17791,6 +18001,13 @@ strip-ansi@^5.2.0: dependencies: ansi-regex "^4.1.0" +strip-ansi@^6.0.0, strip-ansi@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" + integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== + dependencies: + ansi-regex "^5.0.1" + strip-ansi@^7.0.1, strip-ansi@^7.1.0: version "7.1.0" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-7.1.0.tgz#d5b6568ca689d8561370b0707685d22434faff45" @@ -18523,7 +18740,7 @@ tslib@2.7.0: resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.7.0.tgz#d9b40c5c40ab59e8738f297df3087bf1a2690c01" integrity sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA== -tslib@^2.0.0, tslib@^2.0.3, tslib@^2.1.0, tslib@^2.3.0, tslib@^2.3.1, tslib@^2.4.0, tslib@^2.4.1, tslib@^2.5.0, tslib@^2.6.0, tslib@^2.6.2, tslib@^2.7.0, tslib@^2.8.1: +tslib@2.8.1, tslib@^2.0.0, tslib@^2.0.3, tslib@^2.1.0, tslib@^2.3.0, tslib@^2.3.1, tslib@^2.4.0, tslib@^2.4.1, tslib@^2.5.0, tslib@^2.6.0, tslib@^2.6.2, tslib@^2.7.0, tslib@^2.8.1: version "2.8.1" resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.8.1.tgz#612efe4ed235d567e8aba5f2a5fab70280ade83f" integrity sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w== @@ -18622,6 +18839,15 @@ type-is@^1.6.4, type-is@~1.6.18: media-typer "0.3.0" mime-types "~2.1.24" +type-is@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/type-is/-/type-is-2.0.0.tgz#7d249c2e2af716665cc149575dadb8b3858653af" + integrity sha512-gd0sGezQYCbWSbkZr75mln4YBidWUN60+devscpLF5mtRDUpiaTvKpBNrdaCvel1NdR2k6vclXybU5fBd2i+nw== + dependencies: + content-type "^1.0.5" + media-typer "^1.1.0" + mime-types "^3.0.0" + typechain@^8.3.2: version "8.3.2" resolved "https://registry.yarnpkg.com/typechain/-/typechain-8.3.2.tgz#1090dd8d9c57b6ef2aed3640a516bdbf01b00d73" @@ -19796,7 +20022,7 @@ workerpool@^6.5.1: resolved "https://registry.yarnpkg.com/workerpool/-/workerpool-6.5.1.tgz#060f73b39d0caf97c6db64da004cd01b4c099544" integrity sha512-Fs4dNYcsdpYSAfVxhnl1L5zTksjvOJxtC5hzMNl+1t9B8hTJTdKDyZ5ju7ztgPy+ft9tBFXoOlDNiOT9WUXZlA== -"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0: +"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0": version "7.0.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== @@ -19814,6 +20040,15 @@ wrap-ansi@^6.0.1, wrap-ansi@^6.2.0: string-width "^4.1.0" strip-ansi "^6.0.0" +wrap-ansi@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" + integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== + dependencies: + ansi-styles "^4.0.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" + wrap-ansi@^8.0.1, wrap-ansi@^8.1.0: version "8.1.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214" From 529bb4dcd512f26c32b637de2ae399d79f027281 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 29 Jan 2025 09:45:39 +0100 Subject: [PATCH 23/44] chore(deps): bump @mui/styled-engine-sc from 6.1.3 to 6.4.0 (#3047) Bumps [@mui/styled-engine-sc](https://github.com/mui/material-ui/tree/HEAD/packages/mui-styled-engine-sc) from 6.1.3 to 6.4.0. - [Release notes](https://github.com/mui/material-ui/releases) - [Changelog](https://github.com/mui/material-ui/blob/master/CHANGELOG.md) - [Commits](https://github.com/mui/material-ui/commits/v6.4.0/packages/mui-styled-engine-sc) --- updated-dependencies: - dependency-name: "@mui/styled-engine-sc" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/apps/dashboard/ui-2024/package.json | 2 +- yarn.lock | 21 ++++++++++---------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/packages/apps/dashboard/ui-2024/package.json b/packages/apps/dashboard/ui-2024/package.json index 80ad969874..ede1ec9e8d 100644 --- a/packages/apps/dashboard/ui-2024/package.json +++ b/packages/apps/dashboard/ui-2024/package.json @@ -17,7 +17,7 @@ "@emotion/styled": "^11.11.5", "@mui/icons-material": "^6.2.0", "@mui/material": "^5.15.18", - "@mui/styled-engine-sc": "6.1.3", + "@mui/styled-engine-sc": "6.4.0", "@mui/x-data-grid": "^7.23.2", "@mui/x-date-pickers": "^7.23.6", "@tanstack/react-query": "^5.48.0", diff --git a/yarn.lock b/yarn.lock index b7dcce9189..63f8adf972 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1188,7 +1188,7 @@ core-js-pure "^3.30.2" regenerator-runtime "^0.14.0" -"@babel/runtime@^7.12.5", "@babel/runtime@^7.16.3", "@babel/runtime@^7.17.9", "@babel/runtime@^7.18.3", "@babel/runtime@^7.21.0", "@babel/runtime@^7.23.2", "@babel/runtime@^7.23.9", "@babel/runtime@^7.25.0", "@babel/runtime@^7.25.6", "@babel/runtime@^7.25.7", "@babel/runtime@^7.26.0", "@babel/runtime@^7.5.5", "@babel/runtime@^7.8.4", "@babel/runtime@^7.8.7": +"@babel/runtime@^7.12.5", "@babel/runtime@^7.16.3", "@babel/runtime@^7.17.9", "@babel/runtime@^7.18.3", "@babel/runtime@^7.21.0", "@babel/runtime@^7.23.2", "@babel/runtime@^7.23.9", "@babel/runtime@^7.25.0", "@babel/runtime@^7.25.7", "@babel/runtime@^7.26.0", "@babel/runtime@^7.5.5", "@babel/runtime@^7.8.4", "@babel/runtime@^7.8.7": version "7.26.0" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.26.0.tgz#8600c2f595f277c60815256418b85356a65173c1" integrity sha512-FDSOghenHTiToteC/QRlv2q3DhPZ/oOXTBoirfWNx1Cx3TMVcGWQtMMmQcSvb/JjpNeGzx8Pq/b4fKEJuWm1sw== @@ -3051,12 +3051,13 @@ "@mui/utils" "^5.16.8" prop-types "^15.8.1" -"@mui/styled-engine-sc@6.1.3": - version "6.1.3" - resolved "https://registry.yarnpkg.com/@mui/styled-engine-sc/-/styled-engine-sc-6.1.3.tgz#f7f7db4c0e9d4c9a0d076060c99e47744bd2659b" - integrity sha512-Y+BZHQxygyKklawo9eMilthFALQpndcfDdEz0LpoZmkvVtWBD3kAPCyYeSAlqFRFQ++MdiQWlWY8O1R9ORuxJg== +"@mui/styled-engine-sc@6.4.0": + version "6.4.0" + resolved "https://registry.yarnpkg.com/@mui/styled-engine-sc/-/styled-engine-sc-6.4.0.tgz#70503295703c350c1b4ac7c97b844757049a6804" + integrity sha512-DkR/10Zn+/uL9mqZS+YA/vyWuz/zpnBGSDv8IWE7kqdFHRAnVSzz70tBffAiBNMuHKr+0r5dLnvOW9xfz6u6/g== dependencies: - "@babel/runtime" "^7.25.6" + "@babel/runtime" "^7.26.0" + "@types/hoist-non-react-statics" "^3.3.6" csstype "^3.1.3" hoist-non-react-statics "^3.3.2" prop-types "^15.8.1" @@ -5373,10 +5374,10 @@ resolved "https://registry.yarnpkg.com/@types/history/-/history-4.7.11.tgz#56588b17ae8f50c53983a524fc3cc47437969d64" integrity sha512-qjDJRrmvBMiTx+jyLxvLfJU7UznFuokDv4f3WRuriHKERccVpFU+8XMQUAbDzoiJCsmexxRExQeMwwCdamSKDA== -"@types/hoist-non-react-statics@^3.3.1": - version "3.3.5" - resolved "https://registry.yarnpkg.com/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.5.tgz#dab7867ef789d87e2b4b0003c9d65c49cc44a494" - integrity sha512-SbcrWzkKBw2cdwRTwQAswfpB9g9LJWfjtUeW/jvNwbhC8cpmmNYVePa+ncbUe0rGTQ7G3Ff6mYUN2VMfLVr+Sg== +"@types/hoist-non-react-statics@^3.3.1", "@types/hoist-non-react-statics@^3.3.6": + version "3.3.6" + resolved "https://registry.yarnpkg.com/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.6.tgz#6bba74383cdab98e8db4e20ce5b4a6b98caed010" + integrity sha512-lPByRJUer/iN/xa4qpyL0qmL11DqNW81iU/IG1S3uvRUq4oKagz8VCxZjiWkumgt66YT3vOdDgZ0o32sGKtCEw== dependencies: "@types/react" "*" hoist-non-react-statics "^3.3.0" From 3079173b52c86603cf11bc98290fa9640e0fd94a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 29 Jan 2025 09:46:21 +0100 Subject: [PATCH 24/44] chore(deps): bump actions/setup-node from 3 to 4 (#3049) Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3 to 4. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/cd-subgraph.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cd-subgraph.yaml b/.github/workflows/cd-subgraph.yaml index 76d798cd17..d8858b1e56 100644 --- a/.github/workflows/cd-subgraph.yaml +++ b/.github/workflows/cd-subgraph.yaml @@ -28,7 +28,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: '18.20.1' - name: Filter Networks From 06e0f696b89c31a85fcd1d1b03b7ead0051aca28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20L=C3=B3pez?= <50665615+flopez7@users.noreply.github.com> Date: Wed, 29 Jan 2025 09:58:51 +0100 Subject: [PATCH 25/44] [Subgraph] Clean KVStore fee values (#3043) * Added conditional to avoid errors when deleting fee from KVStore * Updated subgraph tests for checking empty fee values * Set keys to null if value is '' and remove KVStore entity --- .../subgraph/src/mapping/KVStore.ts | 128 ++++++++++-------- .../subgraph/tests/kvstore/kvstore.test.ts | 81 ++++++++++- 2 files changed, 149 insertions(+), 60 deletions(-) diff --git a/packages/sdk/typescript/subgraph/src/mapping/KVStore.ts b/packages/sdk/typescript/subgraph/src/mapping/KVStore.ts index ed2c5374f4..b89ff9927a 100644 --- a/packages/sdk/typescript/subgraph/src/mapping/KVStore.ts +++ b/packages/sdk/typescript/subgraph/src/mapping/KVStore.ts @@ -1,3 +1,11 @@ +import { + Address, + BigInt, + Bytes, + dataSource, + Value, +} from '@graphprotocol/graph-ts'; +import { DataSaved } from '../../generated/KVStore/KVStore'; import { KVStore, KVStoreSetEvent, @@ -5,13 +13,12 @@ import { LeaderURL, ReputationNetwork, } from '../../generated/schema'; -import { DataSaved } from '../../generated/KVStore/KVStore'; import { createOrLoadLeader } from './Staking'; -import { toEventId } from './utils/event'; import { isValidEthAddress } from './utils/ethAdrress'; -import { Address, BigInt, Bytes, dataSource } from '@graphprotocol/graph-ts'; -import { createTransaction } from './utils/transaction'; +import { toEventId } from './utils/event'; import { toBytes } from './utils/string'; +import { createTransaction } from './utils/transaction'; +import { store } from '@graphprotocol/graph-ts'; export function createOrLoadLeaderURL(leader: Leader, key: string): LeaderURL { const entityId = leader.address.concat(toBytes(key)); @@ -45,6 +52,11 @@ export function createOrUpdateKVStore(event: DataSaved): void { const kvstoreId = event.params.sender.concat(toBytes(event.params.key)); let kvstore = KVStore.load(kvstoreId); + if (event.params.value == '' && kvstore) { + store.remove('KVStore', kvstoreId.toHexString()); + return; + } + if (!kvstore) { kvstore = new KVStore(kvstoreId); kvstore.address = event.params.sender; @@ -76,62 +88,66 @@ export function handleDataSaved(event: DataSaved): void { const leader = createOrLoadLeader(event.params.sender); const key = event.params.key.toLowerCase(); - if (key == 'role') { - leader.role = event.params.value; - } else if (key == 'fee') { - leader.fee = BigInt.fromString(event.params.value); - } else if (key == 'publickey' || key == 'public_key') { - leader.publicKey = event.params.value; - } else if (key == 'webhookurl' || key == 'webhook_url') { - leader.webhookUrl = event.params.value; - } else if (key == 'website') { - leader.website = event.params.value; - } else if (key == 'url') { - leader.url = event.params.value; - } else if (key == 'jobtypes' || key == 'job_types') { - leader.jobTypes = event.params.value - .split(',') - .map((type) => type.trim()); - } else if ( - isValidEthAddress(event.params.key) && - leader.role == 'Reputation Oracle' - ) { - const ethAddress = Address.fromString(event.params.key); - - const reputationNetwork = createOrLoadReputationNetwork( - event.params.sender - ); - - const operator = createOrLoadLeader(ethAddress); - - let reputationNetworks = operator.reputationNetworks; - if (reputationNetworks === null) { - reputationNetworks = []; - } + if (event.params.value == '') { + leader.set(key, Value.fromNull()); + } else { + if (key == 'role') { + leader.role = event.params.value; + } else if (key == 'fee') { + leader.fee = BigInt.fromString(event.params.value); + } else if (key == 'publickey' || key == 'public_key') { + leader.publicKey = event.params.value; + } else if (key == 'webhookurl' || key == 'webhook_url') { + leader.webhookUrl = event.params.value; + } else if (key == 'website') { + leader.website = event.params.value; + } else if (key == 'url') { + leader.url = event.params.value; + } else if (key == 'jobtypes' || key == 'job_types') { + leader.jobTypes = event.params.value + .split(',') + .map((type) => type.trim()); + } else if ( + isValidEthAddress(event.params.key) && + leader.role == 'Reputation Oracle' + ) { + const ethAddress = Address.fromString(event.params.key); + + const reputationNetwork = createOrLoadReputationNetwork( + event.params.sender + ); + + const operator = createOrLoadLeader(ethAddress); + + let reputationNetworks = operator.reputationNetworks; + if (reputationNetworks === null) { + reputationNetworks = []; + } - if (event.params.value.toLowerCase() == 'active') { - reputationNetworks.push(reputationNetwork.id); - } else if (event.params.value.toLowerCase() == 'inactive') { - const filteredNetworks: Bytes[] = []; - for (let i = 0; i < reputationNetworks.length; i++) { - if (reputationNetworks[i] != reputationNetwork.id) { - filteredNetworks.push(reputationNetworks[i]); + if (event.params.value.toLowerCase() == 'active') { + reputationNetworks.push(reputationNetwork.id); + } else if (event.params.value.toLowerCase() == 'inactive') { + const filteredNetworks: Bytes[] = []; + for (let i = 0; i < reputationNetworks.length; i++) { + if (reputationNetworks[i] != reputationNetwork.id) { + filteredNetworks.push(reputationNetworks[i]); + } } + reputationNetworks = filteredNetworks; } - reputationNetworks = filteredNetworks; - } - operator.reputationNetworks = reputationNetworks; - - operator.save(); - } else if (key == 'registration_needed') { - leader.registrationNeeded = event.params.value.toLowerCase() == 'true'; - } else if (key == 'registration_instructions') { - leader.registrationInstructions = event.params.value; - } else if (key == 'name') { - leader.name = event.params.value; - } else if (key == 'category') { - leader.category = event.params.value; + operator.reputationNetworks = reputationNetworks; + + operator.save(); + } else if (key == 'registration_needed') { + leader.registrationNeeded = event.params.value.toLowerCase() == 'true'; + } else if (key == 'registration_instructions') { + leader.registrationInstructions = event.params.value; + } else if (key == 'name') { + leader.name = event.params.value; + } else if (key == 'category') { + leader.category = event.params.value; + } } if (key.indexOf('url') > -1) { diff --git a/packages/sdk/typescript/subgraph/tests/kvstore/kvstore.test.ts b/packages/sdk/typescript/subgraph/tests/kvstore/kvstore.test.ts index da1078f119..97e95952e8 100644 --- a/packages/sdk/typescript/subgraph/tests/kvstore/kvstore.test.ts +++ b/packages/sdk/typescript/subgraph/tests/kvstore/kvstore.test.ts @@ -1,14 +1,15 @@ import { BigInt, DataSourceContext } from '@graphprotocol/graph-ts'; import { - describe, - test, + afterEach, assert, + beforeAll, clearStore, - afterEach, dataSourceMock, - beforeAll, + describe, + test, } from 'matchstick-as/assembly'; +import { Leader } from '../../generated/schema'; import { handleDataSaved } from '../../src/mapping/KVStore'; import { toEventId } from '../../src/mapping/utils/event'; import { toBytes } from '../../src/mapping/utils/string'; @@ -264,6 +265,78 @@ describe('KVStore', () => { 'set' ); }); + test('Should properly remove KVStore entity when value is empty', () => { + const data1 = createDataSavedEvent( + '0xD979105297fB0eee83F7433fC09279cb5B94fFC6', + 'role', + 'Operator', + BigInt.fromI32(10) + ); + const data2 = createDataSavedEvent( + '0xD979105297fB0eee83F7433fC09279cb5B94fFC6', + 'role', + '', + BigInt.fromI32(11) + ); + + handleDataSaved(data1); + + assert.fieldEquals( + 'KVStore', + data1.params.sender.concat(toBytes(data1.params.key)).toHex(), + 'value', + 'Operator' + ); + + handleDataSaved(data2); + + assert.notInStore( + 'KVStore', + data2.params.sender.concat(toBytes(data2.params.key)).toHex() + ); + }); + + test("Should properly set leader's attribute to null when value is empty and remove KVStore entity", () => { + const data1 = createDataSavedEvent( + '0xD979105297fB0eee83F7433fC09279cb5B94fFC6', + 'role', + 'Operator', + BigInt.fromI32(10) + ); + const data2 = createDataSavedEvent( + '0xD979105297fB0eee83F7433fC09279cb5B94fFC6', + 'role', + '', + BigInt.fromI32(11) + ); + + handleDataSaved(data1); + + assert.fieldEquals( + 'Leader', + data1.params.sender.toHex(), + 'role', + 'Operator' + ); + assert.fieldEquals( + 'KVStore', + data1.params.sender.concat(toBytes(data1.params.key)).toHex(), + 'key', + 'role' + ); + + handleDataSaved(data2); + + const leader = Leader.load(data2.params.sender); + assert.assertNotNull(leader); + if (leader != null) { + assert.assertNull(leader.role); + } + assert.notInStore( + 'KVStore', + data1.params.sender.concat(toBytes(data1.params.key)).toHex() + ); + }); test('Should properly update leader role', () => { const data1 = createDataSavedEvent( From 2efa35cf5632040e8e991c8c4f7448da6afd1631 Mon Sep 17 00:00:00 2001 From: mpblocky <185767042+mpblocky@users.noreply.github.com> Date: Wed, 29 Jan 2025 10:26:28 +0100 Subject: [PATCH 26/44] [Human App] refactor: redistribute registered oracles files (#3021) --- .../views/registration/registration.page.tsx | 2 +- .../contexts/registered-oracles/index.ts | 2 ++ .../registered-oracles.tsx | 30 +++++++------------ .../use-registered-oracles.tsx | 12 ++++++++ 4 files changed, 25 insertions(+), 21 deletions(-) create mode 100644 packages/apps/human-app/frontend/src/shared/contexts/registered-oracles/index.ts rename packages/apps/human-app/frontend/src/shared/contexts/{ => registered-oracles}/registered-oracles.tsx (52%) create mode 100644 packages/apps/human-app/frontend/src/shared/contexts/registered-oracles/use-registered-oracles.tsx diff --git a/packages/apps/human-app/frontend/src/modules/worker/views/registration/registration.page.tsx b/packages/apps/human-app/frontend/src/modules/worker/views/registration/registration.page.tsx index b39c744ef8..e207df2a26 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/views/registration/registration.page.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/views/registration/registration.page.tsx @@ -11,9 +11,9 @@ import { registrationInExchangeOracleDtoSchema, useExchangeOracleRegistrationMutation, } from '@/modules/worker/services/registration-in-exchange-oracles'; -import { useRegisteredOracles } from '@/shared/contexts/registered-oracles'; import { useGetOracles } from '@/modules/worker/services/oracles'; import { routerPaths } from '@/router/router-paths'; +import { useRegisteredOracles } from '@/shared/contexts/registered-oracles'; export function RegistrationPage() { const navigate = useNavigate(); diff --git a/packages/apps/human-app/frontend/src/shared/contexts/registered-oracles/index.ts b/packages/apps/human-app/frontend/src/shared/contexts/registered-oracles/index.ts new file mode 100644 index 0000000000..8c5fb5fd81 --- /dev/null +++ b/packages/apps/human-app/frontend/src/shared/contexts/registered-oracles/index.ts @@ -0,0 +1,2 @@ +export * from './registered-oracles'; +export * from './use-registered-oracles'; diff --git a/packages/apps/human-app/frontend/src/shared/contexts/registered-oracles.tsx b/packages/apps/human-app/frontend/src/shared/contexts/registered-oracles/registered-oracles.tsx similarity index 52% rename from packages/apps/human-app/frontend/src/shared/contexts/registered-oracles.tsx rename to packages/apps/human-app/frontend/src/shared/contexts/registered-oracles/registered-oracles.tsx index 7e79b0f74b..ad1affa7ed 100644 --- a/packages/apps/human-app/frontend/src/shared/contexts/registered-oracles.tsx +++ b/packages/apps/human-app/frontend/src/shared/contexts/registered-oracles/registered-oracles.tsx @@ -1,5 +1,5 @@ import type { ReactNode } from 'react'; -import { createContext, useContext, useState } from 'react'; +import { createContext, useMemo, useState } from 'react'; interface RegisteredOraclesContextProps { registeredOracles: string[] | undefined; @@ -8,37 +8,27 @@ interface RegisteredOraclesContextProps { >; } -const RegisteredOraclesContext = createContext< +export const RegisteredOraclesContext = createContext< RegisteredOraclesContextProps | undefined >(undefined); export function RegisteredOraclesProvider({ children, -}: { +}: Readonly<{ children: ReactNode; -}) { +}>) { const [registeredOracles, setRegisteredOracles] = useState< string[] | undefined >(undefined); + const oraclesContextValue = useMemo( + () => ({ registeredOracles, setRegisteredOracles }), + [registeredOracles, setRegisteredOracles] + ); + return ( - + {children} ); } - -export const useRegisteredOracles = () => { - const context = useContext(RegisteredOraclesContext); - if (!context) { - throw new Error( - 'useRegisteredOracles must be used within a RegisteredOraclesProvider' - ); - } - return context; -}; diff --git a/packages/apps/human-app/frontend/src/shared/contexts/registered-oracles/use-registered-oracles.tsx b/packages/apps/human-app/frontend/src/shared/contexts/registered-oracles/use-registered-oracles.tsx new file mode 100644 index 0000000000..76907c3efc --- /dev/null +++ b/packages/apps/human-app/frontend/src/shared/contexts/registered-oracles/use-registered-oracles.tsx @@ -0,0 +1,12 @@ +import { useContext } from 'react'; +import { RegisteredOraclesContext } from './registered-oracles'; + +export const useRegisteredOracles = () => { + const context = useContext(RegisteredOraclesContext); + if (!context) { + throw new Error( + 'useRegisteredOracles must be used within a RegisteredOraclesProvider' + ); + } + return context; +}; From 9a48e1ee1e87324b659d45d1a2e61a0d74ad30ad Mon Sep 17 00:00:00 2001 From: Dmitry Nechay Date: Wed, 29 Jan 2025 12:51:36 +0300 Subject: [PATCH 27/44] feat: local setup via docker-compose (#3030) --- .dockerignore | 24 + .gitignore | 4 +- packages/apps/human-app/frontend/.env.example | 2 - packages/apps/human-app/frontend/Dockerfile | 28 + packages/apps/human-app/frontend/package.json | 4 +- .../components/wallet-connect-modal.tsx | 18 +- .../apps/human-app/frontend/src/shared/env.ts | 2 - .../frontend/src/shared/i18n/en.json | 2 +- packages/apps/human-app/server/.dockerignore | 5 - packages/apps/human-app/server/Dockerfile | 28 +- packages/apps/human-app/server/package.json | 7 + .../apps/human-app/server/src/app.module.ts | 1 + .../src/common/config/cache-factory.config.ts | 1 + .../config/environment-config.service.ts | 7 + packages/apps/job-launcher/client/Dockerfile | 28 + .../apps/job-launcher/server/.env.example | 3 - packages/apps/job-launcher/server/Dockerfile | 28 +- .../apps/job-launcher/server/package.json | 5 + .../server/src/common/utils/storage.ts | 40 +- .../server/src/modules/job/job.dto.ts | 1 + .../server/src/modules/job/job.repository.ts | 16 +- .../job-launcher/server/test/e2e/env-setup.ts | 5 - .../reputation-oracle/server/.dockerignore | 5 - .../apps/reputation-oracle/server/Dockerfile | 28 +- .../reputation-oracle/server/package.json | 12 +- .../server/scripts/setup-kv-store.ts | 165 ++++++ .../src/services/cloud/types.py | 5 +- .../cvat/recording-oracle/src/core/config.py | 5 +- scripts/cvat/Makefile | 18 + scripts/cvat/docker-compose.local.yml | 493 ++++++++++++++++++ scripts/cvat/env-files/.env.compose | 21 + scripts/cvat/env-files/.env.exchange-oracle | 57 ++ scripts/cvat/env-files/.env.human-app-client | 28 + scripts/cvat/env-files/.env.human-app-server | 14 + scripts/cvat/env-files/.env.job-launcher | 66 +++ .../cvat/env-files/.env.job-launcher-client | 10 + scripts/cvat/env-files/.env.recording-oracle | 50 ++ scripts/cvat/env-files/.env.reputation-oracle | 48 ++ scripts/cvat/initdb/create-dbs.sql | 4 + yarn.lock | 15 +- 40 files changed, 1199 insertions(+), 104 deletions(-) create mode 100644 .dockerignore create mode 100644 packages/apps/human-app/frontend/Dockerfile delete mode 100644 packages/apps/human-app/server/.dockerignore create mode 100644 packages/apps/job-launcher/client/Dockerfile delete mode 100644 packages/apps/reputation-oracle/server/.dockerignore create mode 100644 packages/apps/reputation-oracle/server/scripts/setup-kv-store.ts create mode 100644 scripts/cvat/Makefile create mode 100644 scripts/cvat/docker-compose.local.yml create mode 100644 scripts/cvat/env-files/.env.compose create mode 100644 scripts/cvat/env-files/.env.exchange-oracle create mode 100644 scripts/cvat/env-files/.env.human-app-client create mode 100644 scripts/cvat/env-files/.env.human-app-server create mode 100644 scripts/cvat/env-files/.env.job-launcher create mode 100644 scripts/cvat/env-files/.env.job-launcher-client create mode 100644 scripts/cvat/env-files/.env.recording-oracle create mode 100644 scripts/cvat/env-files/.env.reputation-oracle create mode 100644 scripts/cvat/initdb/create-dbs.sql diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000000..d3337c5373 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,24 @@ +# Common file for apps that rely on root context +.git +.github +.husky +audits +docs +scripts +**/node_modules +**/build +**/dist + +# Core package artifacts +# Hardhat files +**/abis +**/artifacts +**/cache +**/.deps +# TypeScript bindings output directory +**/typechain-types + +# Docker-related +.dockerignore +**/Dockerfile* +**/docker-compose* diff --git a/.gitignore b/.gitignore index 03a667ba70..0fb820a136 100644 --- a/.gitignore +++ b/.gitignore @@ -3,10 +3,8 @@ node_modules # dotenv environment variable files .env -.env.development.local -.env.test.local -.env.production.local .env.local +.env.*.local # Log files npm-debug.log* diff --git a/packages/apps/human-app/frontend/.env.example b/packages/apps/human-app/frontend/.env.example index 9239e2bbad..2035eeae60 100644 --- a/packages/apps/human-app/frontend/.env.example +++ b/packages/apps/human-app/frontend/.env.example @@ -10,8 +10,6 @@ VITE_HUMAN_PROTOCOL_HELP_URL= #string VITE_HUMAN_SUPPORT_EMAIL= #string # link to human web page VITE_HUMAN_PROTOCOL_URL= #string -# link to "Learn more" in wallet connect modal -VITE_WALLET_CONNECT_MODAL_LINK= #string # link to human web page in main page navbar VITE_NAVBAR__LINK__PROTOCOL_URL= #string # link to human web page section in main page navbar diff --git a/packages/apps/human-app/frontend/Dockerfile b/packages/apps/human-app/frontend/Dockerfile new file mode 100644 index 0000000000..8473ebefe0 --- /dev/null +++ b/packages/apps/human-app/frontend/Dockerfile @@ -0,0 +1,28 @@ +# Using bullseye instead of slim because it needs Python and build tools for node-gyp +FROM node:18-bullseye +ARG APP_PATH=packages/apps/human-app/frontend + +# Create app directory +WORKDIR /usr/src/app + +# Copy expected yarn dist +COPY .yarn ./.yarn +COPY .yarnrc ./ +# Copy files for deps installation +COPY package.json yarn.lock ./ +COPY ${APP_PATH}/package.json ./${APP_PATH}/package.json +# Some deps are referenced as "*", so we need to build them +COPY tsconfig.json ./ +COPY packages/core ./packages/core +COPY packages/sdk ./packages/sdk + +RUN yarn install + +# Copy everything else to ensure proper build process +COPY . . + +WORKDIR ./${APP_PATH} +RUN yarn build + +# Start the server using the build +CMD [ "yarn", "start:prod" ] \ No newline at end of file diff --git a/packages/apps/human-app/frontend/package.json b/packages/apps/human-app/frontend/package.json index e814adced6..5a0e437ffb 100644 --- a/packages/apps/human-app/frontend/package.json +++ b/packages/apps/human-app/frontend/package.json @@ -23,6 +23,7 @@ "@human-protocol/sdk": "*", "@mui/icons-material": "^6.2.0", "@mui/material": "^5.16.7", + "@mui/x-date-pickers": "^7.23.6", "@reown/appkit": "1.3.2", "@reown/appkit-adapter-wagmi": "1.3.2", "@synaps-io/verify-sdk": "^4.0.45", @@ -32,7 +33,7 @@ "i18next": "^23.8.2", "jwt-decode": "^4.0.0", "lodash": "^4.17.21", - "material-react-table": "^3.0.1", + "material-react-table": "3.0.1", "mui-image": "^1.0.7", "notistack": "^3.0.1", "query-string": "^9.0.0", @@ -43,6 +44,7 @@ "react-imask": "^7.4.0", "react-number-format": "^5.4.3", "react-router-dom": "^6.22.0", + "serve": "^14.2.4", "viem": "^2.21.44", "vite-plugin-svgr": "^4.2.0", "wagmi": "2.14.6", diff --git a/packages/apps/human-app/frontend/src/modules/auth-web3/components/wallet-connect-modal.tsx b/packages/apps/human-app/frontend/src/modules/auth-web3/components/wallet-connect-modal.tsx index 89ac0c446e..8a5b8f8bd8 100644 --- a/packages/apps/human-app/frontend/src/modules/auth-web3/components/wallet-connect-modal.tsx +++ b/packages/apps/human-app/frontend/src/modules/auth-web3/components/wallet-connect-modal.tsx @@ -1,12 +1,10 @@ import { t } from 'i18next'; import { Grid, Typography } from '@mui/material'; import { Trans } from 'react-i18next'; -import { Link } from 'react-router-dom'; import { useEffect } from 'react'; import { Button } from '@/shared/components/ui/button'; import { ConnectWalletBtn } from '@/shared/components/ui/connect-wallet-btn'; import { useModalStore } from '@/shared/components/ui/modal/modal.store'; -import { env } from '@/shared/env'; import { useWalletConnect } from '@/shared/hooks/use-wallet-connect'; export function WalletConnectModal() { @@ -46,21 +44,7 @@ export function WalletConnectModal() { }} > - - ), - }} - i18nKey="walletConnectModal.paragraph" - /> + {t('walletConnectModal.connectBtn')} diff --git a/packages/apps/human-app/frontend/src/shared/env.ts b/packages/apps/human-app/frontend/src/shared/env.ts index 5ba7f86733..a65c1bb2f5 100644 --- a/packages/apps/human-app/frontend/src/shared/env.ts +++ b/packages/apps/human-app/frontend/src/shared/env.ts @@ -10,7 +10,6 @@ const envSchema = z.object({ VITE_NAVBAR__LINK__HOW_IT_WORK_URL: z.string(), VITE_HUMAN_SUPPORT_EMAIL: z.string(), VITE_HUMAN_PROTOCOL_HELP_URL: z.string(), - VITE_WALLET_CONNECT_MODAL_LINK: z.string(), VITE_H_CAPTCHA_SITE_KEY: z.string(), VITE_HMT_DAILY_SPENT_LIMIT: z .string() @@ -59,7 +58,6 @@ try { validEnvs = envSchema.parse(import.meta.env); } catch (error) { if (error instanceof ZodError) { - console.error('Invalid .env file'); error.issues.forEach((issue) => { console.error('Invalid env:', issue.path.join()); console.error(issue); diff --git a/packages/apps/human-app/frontend/src/shared/i18n/en.json b/packages/apps/human-app/frontend/src/shared/i18n/en.json index 3d9ea2209f..483f116631 100644 --- a/packages/apps/human-app/frontend/src/shared/i18n/en.json +++ b/packages/apps/human-app/frontend/src/shared/i18n/en.json @@ -394,7 +394,7 @@ }, "walletConnectModal": { "header": "Connect Wallet", - "paragraph": "HUMAN App is a multichain platform, please provide a wallet address which will be compatible with different chains. <1>Learn more or FAQ link.", + "paragraph": "HUMAN App is a multichain platform, please provide a wallet address which will be compatible with different chains.", "connectBtn": "Connect Wallet", "cancelBtn": "Cancel" }, diff --git a/packages/apps/human-app/server/.dockerignore b/packages/apps/human-app/server/.dockerignore deleted file mode 100644 index 1d7d55faac..0000000000 --- a/packages/apps/human-app/server/.dockerignore +++ /dev/null @@ -1,5 +0,0 @@ -Dockerfile -.dockerignore -node_modules -npm-debug.log -dist \ No newline at end of file diff --git a/packages/apps/human-app/server/Dockerfile b/packages/apps/human-app/server/Dockerfile index 2d5efe5498..6e355e5ccb 100644 --- a/packages/apps/human-app/server/Dockerfile +++ b/packages/apps/human-app/server/Dockerfile @@ -1,17 +1,27 @@ -# Base image -FROM node:18 +FROM node:18-slim +ARG APP_PATH=packages/apps/human-app/server # Create app directory WORKDIR /usr/src/app -# Bundle app source -COPY . . +# Copy expected yarn dist +COPY .yarn ./.yarn +COPY .yarnrc ./ +# Copy files for deps installation +COPY package.json yarn.lock ./ +COPY ${APP_PATH}/package.json ./${APP_PATH}/package.json +# Some deps are referenced as "*", so we need to build them +COPY tsconfig.json ./ +COPY packages/core ./packages/core +COPY packages/sdk ./packages/sdk -# Install app dependencies RUN yarn install -# Creates a "dist" folder with the production build -RUN yarn workspace @human-protocol/human-app-server build +# Copy everything else to ensure proper build process +COPY . . + +WORKDIR ./${APP_PATH} +RUN yarn build -# Start the server using the production build -CMD [ "node", "packages/apps/human-app/server/dist/src/main.js" ] +# Start the server using the build +CMD [ "yarn", "start:prod" ] \ No newline at end of file diff --git a/packages/apps/human-app/server/package.json b/packages/apps/human-app/server/package.json index 1889a97d7f..b8a6db3c0c 100644 --- a/packages/apps/human-app/server/package.json +++ b/packages/apps/human-app/server/package.json @@ -30,6 +30,8 @@ "@nestjs/common": "^10.2.7", "@nestjs/config": "^3.1.1", "@nestjs/core": "^10.3.10", + "@nestjs/platform-express": "^10.3.10", + "@nestjs/schedule": "^4.0.1", "@nestjs/swagger": "^7.4.2", "@nestjs/terminus": "^10.2.3", "cache-manager": "^5.4.0", @@ -38,7 +40,10 @@ "class-validator": "^0.14.1", "ethers": "^6.12.1", "joi": "^17.13.3", + "jsonwebtoken": "^9.0.2", + "jwt-decode": "^4.0.0", "lodash": "^4.17.21", + "reflect-metadata": "^0.2.2", "rxjs": "^7.2.0" }, "devDependencies": { @@ -47,6 +52,8 @@ "@nestjs/testing": "^10.4.6", "@types/express": "^4.17.13", "@types/jest": "29.5.12", + "@types/jsonwebtoken": "^9.0.7", + "@types/lodash": "^4.17.14", "@types/node": "22.10.5", "@types/supertest": "^2.0.15", "@typescript-eslint/eslint-plugin": "^5.0.0", diff --git a/packages/apps/human-app/server/src/app.module.ts b/packages/apps/human-app/server/src/app.module.ts index 35c816d192..58ec0021da 100644 --- a/packages/apps/human-app/server/src/app.module.ts +++ b/packages/apps/human-app/server/src/app.module.ts @@ -58,6 +58,7 @@ const JOI_BOOLEAN_STRING_SCHEMA = Joi.string().valid('true', 'false'); REPUTATION_ORACLE_ADDRESS: Joi.string().required(), REDIS_PORT: Joi.number().required(), REDIS_HOST: Joi.string().required(), + REDIS_DB: Joi.number(), RPC_URL: Joi.string().required(), HCAPTCHA_LABELING_STATS_API_URL: Joi.string().required(), HCAPTCHA_LABELING_VERIFY_API_URL: Joi.string().required(), diff --git a/packages/apps/human-app/server/src/common/config/cache-factory.config.ts b/packages/apps/human-app/server/src/common/config/cache-factory.config.ts index 31f98f895a..53b06b8793 100644 --- a/packages/apps/human-app/server/src/common/config/cache-factory.config.ts +++ b/packages/apps/human-app/server/src/common/config/cache-factory.config.ts @@ -21,6 +21,7 @@ export const CacheFactoryConfig: CacheModuleAsyncOptions = { host: configService.cacheHost, port: configService.cachePort, }, + database: configService.cacheDbNumber, disableOfflineQueue: true, }); diff --git a/packages/apps/human-app/server/src/common/config/environment-config.service.ts b/packages/apps/human-app/server/src/common/config/environment-config.service.ts index 8621f011fa..fd7b513dce 100644 --- a/packages/apps/human-app/server/src/common/config/environment-config.service.ts +++ b/packages/apps/human-app/server/src/common/config/environment-config.service.ts @@ -92,6 +92,13 @@ export class EnvironmentConfigService { return this.configService.getOrThrow('REDIS_HOST'); } + /** + * The DB number of the Redis cache server + */ + get cacheDbNumber(): number { + return this.configService.get('REDIS_DB', 0); + } + /** * The cache time-to-live (TTL) for oracle statistics. * Default: 12 hours diff --git a/packages/apps/job-launcher/client/Dockerfile b/packages/apps/job-launcher/client/Dockerfile new file mode 100644 index 0000000000..ece5e34e0b --- /dev/null +++ b/packages/apps/job-launcher/client/Dockerfile @@ -0,0 +1,28 @@ +# Using bullseye instead of slim because it needs Python and build tools for node-gyp +FROM node:18-bullseye +ARG APP_PATH=packages/apps/job-launcher/client + +# Create app directory +WORKDIR /usr/src/app + +# Copy expected yarn dist +COPY .yarn ./.yarn +COPY .yarnrc ./ +# Copy files for deps installation +COPY package.json yarn.lock ./ +COPY ${APP_PATH}/package.json ./${APP_PATH}/package.json +# Some deps are referenced as "*", so we need to build them +COPY tsconfig.json ./ +COPY packages/core ./packages/core +COPY packages/sdk ./packages/sdk + +RUN yarn install + +# Copy everything else to ensure proper build process +COPY . . + +WORKDIR ./${APP_PATH} +RUN yarn build + +# Start the server using the build +CMD [ "yarn", "start:prod" ] \ No newline at end of file diff --git a/packages/apps/job-launcher/server/.env.example b/packages/apps/job-launcher/server/.env.example index 45eabf1bc0..84e8cb920e 100644 --- a/packages/apps/job-launcher/server/.env.example +++ b/packages/apps/job-launcher/server/.env.example @@ -68,6 +68,3 @@ STRIPE_APP_INFO_URL= # Sendgrid SENDGRID_API_KEY= - -# Cron Job Secret -CRON_SECRET="cron-secret" diff --git a/packages/apps/job-launcher/server/Dockerfile b/packages/apps/job-launcher/server/Dockerfile index 51a61a583a..63a89f533d 100644 --- a/packages/apps/job-launcher/server/Dockerfile +++ b/packages/apps/job-launcher/server/Dockerfile @@ -1,17 +1,27 @@ -# Base image -FROM node:18 +FROM node:18-slim +ARG APP_PATH=packages/apps/job-launcher/server # Create app directory WORKDIR /usr/src/app -# Bundle app source -COPY . . +# Copy expected yarn dist +COPY .yarn ./.yarn +COPY .yarnrc ./ +# Copy files for deps installation +COPY package.json yarn.lock ./ +COPY ${APP_PATH}/package.json ./${APP_PATH}/package.json +# Some deps are referenced as "*", so we need to build them +COPY tsconfig.json ./ +COPY packages/core ./packages/core +COPY packages/sdk ./packages/sdk -# Install app dependencies RUN yarn install -# Creates a "dist" folder with the production build -RUN yarn workspace @human-protocol/job-launcher-server build +# Copy everything else to ensure proper build process +COPY . . + +WORKDIR ./${APP_PATH} +RUN yarn build -# Start the server using the production build -CMD [ "node", "packages/apps/job-launcher/server/dist/src/main.js" ] +# Start the server using the build +CMD [ "yarn", "start:prod" ] \ No newline at end of file diff --git a/packages/apps/job-launcher/server/package.json b/packages/apps/job-launcher/server/package.json index 599e215cd3..875d27aa6f 100644 --- a/packages/apps/job-launcher/server/package.json +++ b/packages/apps/job-launcher/server/package.json @@ -36,6 +36,7 @@ "@nestjs/core": "^10.3.10", "@nestjs/jwt": "^10.2.0", "@nestjs/passport": "^10.0.0", + "@nestjs/platform-express": "^10.3.10", "@nestjs/schedule": "^4.0.1", "@nestjs/serve-static": "^4.0.1", "@nestjs/swagger": "^7.4.2", @@ -43,10 +44,14 @@ "@nestjs/typeorm": "^10.0.1", "@sendgrid/mail": "^8.1.3", "@types/passport-jwt": "^4.0.1", + "@types/uuid": "^10.0.0", "async-mutex": "^0.5.0", "bcrypt": "^5.1.1", + "body-parser": "^1.20.3", "class-transformer": "^0.5.1", + "class-validator": "^0.14.1", "decimal.js": "^10.4.3", + "helmet": "^7.1.0", "joi": "^17.13.3", "json-stable-stringify": "^1.1.1", "nestjs-minio-client": "^2.2.0", diff --git a/packages/apps/job-launcher/server/src/common/utils/storage.ts b/packages/apps/job-launcher/server/src/common/utils/storage.ts index 0126cb1388..a71ead25d1 100644 --- a/packages/apps/job-launcher/server/src/common/utils/storage.ts +++ b/packages/apps/job-launcher/server/src/common/utils/storage.ts @@ -80,26 +80,32 @@ export async function listObjectsInBucket(url: URL): Promise { let nextContinuationToken: string | undefined; const baseUrl = `${url.protocol}//${url.host}`; do { - let requestOptions = `${baseUrl}`; + let requestUrl = `${baseUrl}`; + if (['localhost', 'minio'].includes(url.hostname)) { + const pathname = url.pathname.replace(/^\//, ''); + const [bucketName, ...folderParts] = pathname.split('/'); - if (url.hostname !== 'localhost') { - requestOptions += `?list-type=2${ - nextContinuationToken - ? `&continuation-token=${encodeURIComponent( - nextContinuationToken, - )}` - : '' - }${url.pathname ? `&prefix=${url.pathname.replace(/^\//, '')}` : ''}`; + requestUrl += `/${bucketName}?list-type=2`; + + const folderPrefix = folderParts.join('/'); + if (folderPrefix) { + requestUrl += `&prefix=${folderPrefix}`; + } } else { - requestOptions += `${url.pathname ? `${url.pathname.replace(/^\//, '')}` : ''}?list-type=2${ - nextContinuationToken - ? `&continuation-token=${encodeURIComponent( - nextContinuationToken, - )}` - : '' - }`; + requestUrl += `?list-type=2`; + + if (url.pathname) { + requestUrl += `&prefix=${url.pathname.replace(/^\//, '')}`; + } } - const response = await axios.get(requestOptions); + + if (nextContinuationToken) { + requestUrl += `&continuation-token=${encodeURIComponent( + nextContinuationToken, + )}`; + } + + const response = await axios.get(requestUrl); if (response.status === HttpStatus.OK && response.data) { parseString(response.data, (err: any, result: any) => { diff --git a/packages/apps/job-launcher/server/src/modules/job/job.dto.ts b/packages/apps/job-launcher/server/src/modules/job/job.dto.ts index 2f2f557091..5b543451d4 100644 --- a/packages/apps/job-launcher/server/src/modules/job/job.dto.ts +++ b/packages/apps/job-launcher/server/src/modules/job/job.dto.ts @@ -191,6 +191,7 @@ export class JobCvatDto extends JobDto { @ApiProperty({ name: 'min_quality' }) @IsNumber() @IsPositive() + @Max(1) public minQuality: number; @ApiProperty({ name: 'ground_truth' }) 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 162445c015..c054f14d56 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 @@ -170,9 +170,9 @@ export class JobRepository extends BaseRepository { const result = await queryBuilder.getRawOne(); return { - average: parseFloat(result.average), - maximum: parseFloat(result.maximum), - minimum: parseFloat(result.minimum), + average: parseFloat(result.average) || 0, + maximum: parseFloat(result.maximum) || 0, + minimum: parseFloat(result.minimum) || 0, }; } @@ -199,11 +199,11 @@ export class JobRepository extends BaseRepository { const result = await queryBuilder.getRawOne(); return { - totalJobs: parseInt(result.totalJobs, 10), - launched: parseInt(result.totalJobs, 10), - partial: parseInt(result.partial, 10), - completed: parseInt(result.completed, 10), - canceled: parseInt(result.canceled, 10), + totalJobs: parseInt(result.totalJobs, 10) || 0, + launched: parseInt(result.totalJobs, 10) || 0, + partial: parseInt(result.partial, 10) || 0, + completed: parseInt(result.completed, 10) || 0, + canceled: parseInt(result.canceled, 10) || 0, }; } diff --git a/packages/apps/job-launcher/server/test/e2e/env-setup.ts b/packages/apps/job-launcher/server/test/e2e/env-setup.ts index f9c9ee98bf..8dec352553 100644 --- a/packages/apps/job-launcher/server/test/e2e/env-setup.ts +++ b/packages/apps/job-launcher/server/test/e2e/env-setup.ts @@ -59,9 +59,6 @@ t86lkzfAep9bfBxbaCBbUhJ1s9+9eeLMG/nUMAaGxWeOwJ92L/KvzN6RFw== process.env.S3_BUCKET = 'bucket'; process.env.S3_USE_SSL = 'false'; - process.env.MINIO_ROOT_USER = 'access-key'; - process.env.MINIO_ROOT_PASSWORD = 'secrets-key'; - process.env.STRIPE_API_VERSION = '2022-11-15'; process.env.STRIPE_APP_NAME = 'Staging Launcher Server'; process.env.STRIPE_APP_VERSION = '1.0.0'; @@ -69,6 +66,4 @@ t86lkzfAep9bfBxbaCBbUhJ1s9+9eeLMG/nUMAaGxWeOwJ92L/KvzN6RFw== 'https://github.com/humanprotocol/human-protocol/tree/main/packages/apps/job-launcher/server'; process.env.SENDGRID_API_KEY = 'sendgrid-disabled'; - - process.env.CRON_SECRET = 'test'; } diff --git a/packages/apps/reputation-oracle/server/.dockerignore b/packages/apps/reputation-oracle/server/.dockerignore deleted file mode 100644 index aa3a93b8dd..0000000000 --- a/packages/apps/reputation-oracle/server/.dockerignore +++ /dev/null @@ -1,5 +0,0 @@ -Dockerfile -.dockerignore -node_modules -npm-debug.log -dist diff --git a/packages/apps/reputation-oracle/server/Dockerfile b/packages/apps/reputation-oracle/server/Dockerfile index e1c1bf2423..8e81ef1787 100644 --- a/packages/apps/reputation-oracle/server/Dockerfile +++ b/packages/apps/reputation-oracle/server/Dockerfile @@ -1,17 +1,27 @@ -# Base image -FROM node:18 +FROM node:18-slim +ARG APP_PATH=packages/apps/reputation-oracle/server # Create app directory WORKDIR /usr/src/app -# Bundle app source -COPY . . +# Copy expected yarn dist +COPY .yarn ./.yarn +COPY .yarnrc ./ +# Copy files for deps installation +COPY package.json yarn.lock ./ +COPY ${APP_PATH}/package.json ./${APP_PATH}/package.json +# Some deps are referenced as "*", so we need to build them +COPY tsconfig.json ./ +COPY packages/core ./packages/core +COPY packages/sdk ./packages/sdk -# Install app dependencies RUN yarn install -# Creates a "dist" folder with the production build -RUN yarn workspace @human-protocol/reputation-oracle build +# Copy everything else to ensure proper build process +COPY . . + +WORKDIR ./${APP_PATH} +RUN yarn build -# Start the server using the production build -CMD [ "node", "packages/apps/reputation-oracle/server/dist/src/main.js" ] +# Start the server using the build +CMD [ "yarn", "start:prod" ] \ No newline at end of file diff --git a/packages/apps/reputation-oracle/server/package.json b/packages/apps/reputation-oracle/server/package.json index c236638728..3a246b25c5 100644 --- a/packages/apps/reputation-oracle/server/package.json +++ b/packages/apps/reputation-oracle/server/package.json @@ -38,18 +38,26 @@ "@nestjs/core": "^10.3.10", "@nestjs/jwt": "^10.2.0", "@nestjs/passport": "^10.0.0", + "@nestjs/platform-express": "^10.3.10", "@nestjs/schedule": "^4.0.1", + "@nestjs/serve-static": "^4.0.2", "@nestjs/swagger": "^7.4.2", "@nestjs/terminus": "^10.2.1", "@nestjs/typeorm": "^10.0.1", + "@sendgrid/mail": "^8.1.3", + "@types/json-stable-stringify": "^1.0.36", "@types/passport-jwt": "^4.0.1", "bcrypt": "^5.1.1", + "body-parser": "^1.20.3", "class-transformer": "^0.5.1", "class-validator": "^0.14.1", + "dotenv": "^16.3.2", + "ethers": "^6.13.1", "helmet": "^7.1.0", "joi": "^17.13.3", + "json-stable-stringify": "^1.1.1", "lodash": "^4.17.21", - "nestjs-minio-client": "^2.2.0", + "minio": "7.1.3", "passport": "^0.7.0", "passport-jwt": "^4.0.1", "pg": "8.13.1", @@ -67,6 +75,8 @@ "@types/bcrypt": "^5.0.2", "@types/express": "^4.17.13", "@types/jest": "29.5.12", + "@types/json-stable-stringify": "^1.0.36", + "@types/lodash": "^4.17.14", "@types/node": "22.10.5", "@types/supertest": "^6.0.2", "@types/uuid": "^10.0.0", diff --git a/packages/apps/reputation-oracle/server/scripts/setup-kv-store.ts b/packages/apps/reputation-oracle/server/scripts/setup-kv-store.ts new file mode 100644 index 0000000000..cd51e5822d --- /dev/null +++ b/packages/apps/reputation-oracle/server/scripts/setup-kv-store.ts @@ -0,0 +1,165 @@ +import 'dotenv/config'; +import { KVStoreClient, KVStoreKeys, Role } from '@human-protocol/sdk'; +import { Wallet, ethers } from 'ethers'; +import * as Minio from 'minio'; + +async function setupCommonValues(kvStoreClient: KVStoreClient): Promise { + const { SUPPORTED_JOB_TYPES = '', SERVER_URL = '', FEE = '' } = process.env; + + if (!SUPPORTED_JOB_TYPES || SUPPORTED_JOB_TYPES.split(',').length === 0) { + throw new Error('SUPPORTED_JOB_TYPES should be comma-separated list'); + } + try { + new URL(SERVER_URL || ''); + } catch (noop) { + throw new Error('Invalid SERVER_URL'); + } + let url = SERVER_URL.endsWith('/') ? SERVER_URL.slice(0, -1) : SERVER_URL; + if (!url.startsWith('http')) { + url = `http://${url}`; + } + + const fee = Number(FEE); + if (!Number.isInteger(fee) || fee < 1) { + throw new Error('Fee must be positive integer'); + } + + await kvStoreClient.setBulk( + [ + KVStoreKeys.role, + KVStoreKeys.fee, + KVStoreKeys.url, + KVStoreKeys.webhookUrl, + KVStoreKeys.jobTypes, + ], + [ + Role.ReputationOracle, + `${fee}`, + url, + `${url}/webhook`, + SUPPORTED_JOB_TYPES, + ], + ); +} + +type SetupPublicKeyFileMeta = { + keyName: string; + publicKey: string; + s3Bucket: string; + s3Endpoint: string; + s3Port: string; + kvKey: string; +}; + +async function setupPublicKeyFile( + kvStoreClient: KVStoreClient, + minioClient: Minio.Client, + meta: SetupPublicKeyFileMeta, +): Promise { + const { keyName, kvKey, publicKey, s3Bucket, s3Endpoint, s3Port } = meta; + const exists = await minioClient.bucketExists(s3Bucket); + if (!exists) { + throw new Error('Bucket does not exists'); + } + + await minioClient.putObject(s3Bucket, keyName, publicKey, { + 'Content-Type': 'text/plain', + 'Cache-Control': 'no-store', + }); + /** + * Protocol is required for 'setFileUrlAndHash' + */ + const _s3Endpoint = s3Endpoint.startsWith('http') + ? s3Endpoint + : `http://${s3Endpoint}`; + const fileUrl = `${_s3Endpoint}:${s3Port}/${s3Bucket}/${keyName}`; + await kvStoreClient.setFileUrlAndHash(fileUrl, kvKey); +} + +async function setup(): Promise { + const { WEB3_PRIVATE_KEY, RPC_URL } = process.env; + if (!WEB3_PRIVATE_KEY) { + throw new Error('Private key is empty'); + } + if (!RPC_URL) { + throw new Error('RPC url is empty'); + } + + const provider = new ethers.JsonRpcProvider(RPC_URL); + const wallet = new Wallet(WEB3_PRIVATE_KEY, provider); + + const kvStoreClient = await KVStoreClient.build(wallet); + + await setupCommonValues(kvStoreClient); + + const { + S3_ENDPOINT, + S3_PORT, + S3_USE_SSL, + S3_ACCESS_KEY, + S3_SECRET_KEY, + S3_BUCKET, + } = process.env; + + if ( + [S3_ENDPOINT, S3_PORT, S3_ACCESS_KEY, S3_SECRET_KEY, S3_BUCKET].some( + (value) => !value, + ) + ) { + throw new Error('Missing S3 config value'); + } + if (!S3_ACCESS_KEY || !S3_SECRET_KEY) { + throw new Error('S3 key is missing'); + } + if (!S3_BUCKET) { + throw new Error('S3 bucket is missing'); + } + + const s3Endpoint = S3_ENDPOINT || 'localhost'; + const s3Port = S3_PORT || '9000'; + const minioClient = new Minio.Client({ + endPoint: s3Endpoint, + port: parseInt(s3Port, 10), + useSSL: S3_USE_SSL === 'true', + accessKey: S3_ACCESS_KEY, + secretKey: S3_SECRET_KEY, + }); + + const { PGP_ENCRYPT, PGP_PUBLIC_KEY } = process.env; + if (PGP_ENCRYPT && PGP_ENCRYPT === 'true') { + if (!PGP_PUBLIC_KEY) { + throw new Error('PGP public key is empty'); + } + await setupPublicKeyFile(kvStoreClient, minioClient, { + s3Endpoint, + s3Port, + s3Bucket: S3_BUCKET, + publicKey: PGP_PUBLIC_KEY, + keyName: 'pgp-public-key', + kvKey: KVStoreKeys.publicKey, + }); + } + + const { JWT_PUBLIC_KEY } = process.env; + if (!JWT_PUBLIC_KEY) { + throw new Error('JWT_PUBLIC_KEY is missing'); + } + await setupPublicKeyFile(kvStoreClient, minioClient, { + s3Endpoint, + s3Port, + s3Bucket: S3_BUCKET, + publicKey: JWT_PUBLIC_KEY, + keyName: 'jwt-public-key', + kvKey: 'jwt_public_key', + }); +} + +(async () => { + try { + await setup(); + process.exit(0); + } catch (error) { + console.error('Failed to setup KV', error); + process.exit(1); + } +})(); diff --git a/packages/examples/cvat/exchange-oracle/src/services/cloud/types.py b/packages/examples/cvat/exchange-oracle/src/services/cloud/types.py index 211fca4ef1..3286fa540b 100644 --- a/packages/examples/cvat/exchange-oracle/src/services/cloud/types.py +++ b/packages/examples/cvat/exchange-oracle/src/services/cloud/types.py @@ -1,6 +1,7 @@ from __future__ import annotations import json +import re from dataclasses import asdict, dataclass, is_dataclass from enum import Enum, auto from inspect import isclass @@ -111,7 +112,9 @@ def from_url(cls, url: str) -> BucketAccessInfo: path=parsed_url.path.lstrip("/"), ) elif Config.features.enable_custom_cloud_host: - if is_ipv4(parsed_url.netloc): + # Check if netloc is an ip address + # or localhost with port (or its /etc/hosts aliast, e.g. minio:9000) + if is_ipv4(parsed_url.netloc) or re.fullmatch(r"\w+:\d{4}", parsed_url.netloc): host = parsed_url.netloc bucket_name, path = parsed_url.path.lstrip("/").split("/", maxsplit=1) else: diff --git a/packages/examples/cvat/recording-oracle/src/core/config.py b/packages/examples/cvat/recording-oracle/src/core/config.py index 11b9c6e8bf..fa262b8b0b 100644 --- a/packages/examples/cvat/recording-oracle/src/core/config.py +++ b/packages/examples/cvat/recording-oracle/src/core/config.py @@ -104,6 +104,7 @@ class IStorageConfig: data_bucket_name: ClassVar[str] secure: ClassVar[bool] endpoint_url: ClassVar[str] # TODO: probably should be optional + use_path_style: ClassVar[bool] # AWS S3 specific attributes access_key: ClassVar[str | None] secret_key: ClassVar[str | None] @@ -120,7 +121,7 @@ def provider_endpoint_url(cls) -> str: @classmethod def bucket_url(cls) -> str: - if is_ipv4(cls.endpoint_url): + if is_ipv4(cls.endpoint_url) or cls.use_path_style: return f"{cls.get_scheme()}{cls.endpoint_url}/{cls.data_bucket_name}/" return f"{cls.get_scheme()}{cls.data_bucket_name}.{cls.endpoint_url}/" @@ -130,6 +131,7 @@ class StorageConfig(IStorageConfig): endpoint_url = os.environ["STORAGE_ENDPOINT_URL"] # TODO: probably should be optional data_bucket_name = os.environ["STORAGE_RESULTS_BUCKET_NAME"] secure = to_bool(getenv("STORAGE_USE_SSL", "true")) + use_path_style = to_bool(getenv("STORAGE_USE_PATH_STYLE", "false")) # AWS S3 specific attributes access_key = getenv("STORAGE_ACCESS_KEY") @@ -148,6 +150,7 @@ class ExchangeOracleStorageConfig(IStorageConfig): data_bucket_name = os.environ["EXCHANGE_ORACLE_STORAGE_RESULTS_BUCKET_NAME"] results_dir_suffix = getenv("STORAGE_RESULTS_DIR_SUFFIX", "-results") secure = to_bool(getenv("EXCHANGE_ORACLE_STORAGE_USE_SSL", "true")) + use_path_style = to_bool(getenv("EXCHANGE_ORACLE_STORAGE_USE_PATH_STYLE", "false")) # AWS S3 specific attributes access_key = getenv("EXCHANGE_ORACLE_STORAGE_ACCESS_KEY") secret_key = getenv("EXCHANGE_ORACLE_STORAGE_SECRET_KEY") diff --git a/scripts/cvat/Makefile b/scripts/cvat/Makefile new file mode 100644 index 0000000000..03ca3c11fe --- /dev/null +++ b/scripts/cvat/Makefile @@ -0,0 +1,18 @@ +.PHONY: copy-env-files + +copy-env-files: +# Copying .env file for compose itself + @cp ./env-files/.env.compose .env.compose.local +# Copying .env files for backend services + @cp ./env-files/.env.reputation-oracle ./.env.reputation-oracle.local + @cp ./env-files/.env.human-app-server .env.human-app-server.local + @cp ./env-files/.env.job-launcher ./.env.job-launcher.local + @cp ./env-files/.env.exchange-oracle ./.env.exchange-oracle.local + @cp ./env-files/.env.recording-oracle ./.env.recording-oracle.local +# Copying .env files for client apps. +# It should be placed in corresponding app folder +# because used during Docker image build process + @cp ./env-files/.env.human-app-client ../../packages/apps/human-app/frontend/.env.local + @cp ./env-files/.env.job-launcher-client ../../packages/apps/job-launcher/client/.env.local +# Restore original files + @git checkout . > /dev/null 2>&1 \ No newline at end of file diff --git a/scripts/cvat/docker-compose.local.yml b/scripts/cvat/docker-compose.local.yml new file mode 100644 index 0000000000..14ccd6e9bd --- /dev/null +++ b/scripts/cvat/docker-compose.local.yml @@ -0,0 +1,493 @@ +name: human-protocol-local-setup + +x-service-default-config: + restart: &default-restart unless-stopped + logging: &default-logging + options: + max-size: 10m + max-file: 3 + +x-hardcoded-vars: + frontend_default_port: &frontend_default_port 3000 + all_interfaces_ip: &all_interfaces_ip '0.0.0.0' + web3_env: &web3_env testnet + postgres_host: &postgres_host postgres + postgres_port: &postgres_port 5432 + redis_host: &redis_host redis + redis_port: &redis_port 6379 + minio_host: &minio_host minio + node_env: &node_env local + cvat_lb_url: &cvat_lb_url 'http://cvat-lb:8080' + cvat_oracle_storage_provider: &cvat_oracle_storage_provider aws + +x-general-env-variables: + # GENERAL VARS + subgraph_api_key: &subgraph_api_key ${SUBGRAPH_API_KEY} + sendgrid_api_key: &sendgrid_api_key ${SENDGRID_API_KEY:-sendgrid-disabled} + rpc_url_polygon_amoy: &rpc_url_polygon_amoy ${RPC_URL_POLYGON_AMOY:-} + # POSTGRES VARS + postgres_user: &postgres_user ${POSTGRES_USER:-default} + postgres_password: &postgres_password ${POSTGRES_PASSWORD:-qwerty} + # MINIO VARS + minio_port: &minio_port ${MINIO_PORT:?} + minio_console_port: &minio_console_port ${MINIO_CONSOLE_PORT:-9001} + minio_root_user: &minio_root_user ${MINIO_ROOT_USER:-minioadmin} + minio_root_password: &minio_root_password ${MINIO_ROOT_PASSWORD:-minioadmin} + minio_services_access_key: &minio_services_access_key ${MINIO_SERVICES_ACCESS_KEY:-human-oracle} + minio_services_secret_key: &minio_services_secret_key ${MINIO_SERVICES_SECRET_KEY:-human-oracle-s3-secret} + # BUCKET NAMES + bucket_name_manifests: &bucket_name_manifests ${BUCKET_NAME_MANIFESTS:-manifests} + bucket_name_datasets: &bucket_name_datasets ${BUCKET_NAME_DATASETS:-datasets} + bucket_name_rep_o: &bucket_name_rep_o ${BUCKET_NAME_REPUTATION_ORACLE:-reputation-oracle} + bucket_name_exc_o: &bucket_name_exc_o ${BUCKET_NAME_EXCHANGE_ORACLE:-exchange-oracle} + bucket_name_rec_o: &bucket_name_rec_o ${BUCKET_NAME_RECORDING_ORACLE:-recording-oracle} + # WEB3 ADDRESSES + reputation_oracle_address: &reputation_oracle_address ${REPUTATION_ORACLE_ADDRESS:?} + exchange_oracle_address: &exchange_oracle_address ${EXCHANGE_ORACLE_ADDRESS:?} + recording_oracle_address: &recording_oracle_address ${RECORDING_ORACLE_ADDRESS:?} + # OTHER + backend_apps_internal_port: &backend_apps_internal_port ${BACKEND_APPS_INTERNAL_PORT:?} + human_app_email: &human_app_email ${HUMAN_APP_EMAIL:?} + reputation_oracle_jwt_public_key: &reputation_oracle_jwt_public_key ${REPUTATION_ORACLE_JWT_PUBLIC_KEY:?} + cvat_oracle_storage_endpoint: &cvat_oracle_storage_endpoint minio:${MINIO_PORT:?} + +x-service-env-vars-groups: + postgres_auth_vars: &postgres_auth_vars + POSTGRES_USER: *postgres_user + POSTGRES_PASSWORD: *postgres_password + redis_app_vars: &redis_app_vars + REDIS_HOST: *redis_host + REDIS_PORT: *redis_port + nodejs_app_vars: &nodejs_app_vars + NODE_ENV: *node_env + WEB3_ENV: *web3_env + RPC_URL_POLYGON_AMOY: *rpc_url_polygon_amoy + SENDGRID_API_KEY: *sendgrid_api_key + SUBGRAPH_API_KEY: *subgraph_api_key + HCAPTCHA_SITE_KEY: ${HCAPTCHA_SITE_KEY:-10000000-ffff-ffff-ffff-000000000001} + HCAPTCHA_SECRET: ${HCAPTCHA_SECRET:-0x0000000000000000000000000000000000000000} + HCAPTCHA_API_KEY: ${HCAPTCHA_API_KEY:-test} + nodejs_app_postgres_vars: &nodejs_app_postgres_vars + <<: *postgres_auth_vars + POSTGRES_HOST: *postgres_host + POSTGRES_PORT: *postgres_port + POSTGRES_SSL: 'false' + nodejs_app_s3_vars: &nodejs_app_s3_vars + S3_ENDPOINT: *minio_host + S3_PORT: *minio_port + S3_ACCESS_KEY: *minio_services_access_key + S3_SECRET_KEY: *minio_services_secret_key + S3_USE_SSL: 'false' + cvat_oracle_postgres_vars: &cvat_oracle_postgres_vars + PG_HOST: *postgres_host + PG_PORT: *postgres_port + PG_USER: *postgres_user + PG_PASSWORD: *postgres_password + cvat_oracle_storage_connection_vars: &cvat_oracle_storage_connection_vars + STORAGE_PROVIDER: *cvat_oracle_storage_provider + STORAGE_ENDPOINT_URL: *cvat_oracle_storage_endpoint + STORAGE_ACCESS_KEY: *minio_services_access_key + STORAGE_SECRET_KEY: *minio_services_secret_key + STORAGE_USE_SSL: 'false' + cvat_connection_vars: &cvat_connection_vars + CVAT_URL: *cvat_lb_url + CVAT_ADMIN: ${CVAT_ADMIN:-human-protocol} + CVAT_ADMIN_PASS: ${CVAT_ADMIN_PASS:-qwe123qwe123Q!} + CVAT_ORG_SLUG: HumanAppLocal + +services: + postgres: + container_name: human-postgres + image: postgres:16 + restart: *default-restart + logging: + <<: *default-logging + networks: + - human_protocol + ports: + - name: instance_port + target: *postgres_port + # default 5432 is used by CVAT installation + published: ${POSTGRES_PORT:-5433} + volumes: + - ./initdb:/docker-entrypoint-initdb.d + - postgres-data:/var/lib/postgresql/data + environment: + <<: *postgres_auth_vars + healthcheck: + test: ["CMD", "pg_isready"] + interval: 10s + timeout: 5s + retries: 5 + + redis: + container_name: human-redis + image: redis:6 + restart: *default-restart + logging: + <<: *default-logging + networks: + - human_protocol + ports: + - name: instance_port + target: *redis_port + # default 6379 is used by CVAT installation + published: ${REDIS_PORT:-6380} + volumes: + - redis-data:/data + command: [ + "redis-server", + # we don not expect a lot of writes on local + "--save", "60", "100", + "--appendonly", "yes", + ] + + minio: + container_name: human-minio + image: minio/minio:RELEASE.2024-12-18T13-15-44Z + restart: *default-restart + logging: + <<: *default-logging + entrypoint: 'sh' + networks: + - human_protocol + - human_cvat_bridge + ports: + - name: instance_port + target: 9000 + published: *minio_port + - name: console_port + target: 9001 + published: *minio_console_port + volumes: + - minio-data:/data + environment: + MINIO_ROOT_USER: *minio_root_user + MINIO_ROOT_PASSWORD: *minio_root_password + command: + -c "minio server /data --console-address ':9001'" + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"] + interval: 5s + timeout: 5s + retries: 3 + + minio-client: + container_name: human-minio-client + image: minio/mc:RELEASE.2024-11-21T17-21-54Z + depends_on: + minio: + condition: service_healthy + networks: + - human_protocol + environment: + MINIO_ROOT_USER: *minio_root_user + MINIO_ROOT_PASSWORD: *minio_root_password + SERVICES_ACCESS_KEY: *minio_services_access_key + SERVICES_SECRET_KEY: *minio_services_secret_key + BUCKET_MANIFESTS: *bucket_name_manifests + BUCKET_DATASETS: *bucket_name_datasets + BUCKET_REPUTATION_ORACLE: *bucket_name_rep_o + BUCKET_EXCHANGE_ORACLE: *bucket_name_exc_o + BUCKET_RECORDING_ORACLE: *bucket_name_rec_o + entrypoint: > + /bin/sh -c " + mc alias set myminio http://minio:9000 $$MINIO_ROOT_USER $$MINIO_ROOT_PASSWORD + + mc admin user add myminio $$SERVICES_ACCESS_KEY $$SERVICES_SECRET_KEY + mc admin policy attach myminio readwrite --user=$$SERVICES_ACCESS_KEY + + mc mb myminio/$$BUCKET_MANIFESTS; + mc anonymous set public myminio/$$BUCKET_MANIFESTS; + + mc mb myminio/$$BUCKET_DATASETS; + mc anonymous set public myminio/$$BUCKET_DATASETS; + + mc mb myminio/$$BUCKET_REPUTATION_ORACLE; + mc anonymous set public myminio/$$BUCKET_REPUTATION_ORACLE; + + mc mb myminio/$$BUCKET_EXCHANGE_ORACLE; + mc anonymous set public myminio/$$BUCKET_EXCHANGE_ORACLE; + + mc mb myminio/$$BUCKET_RECORDING_ORACLE; + mc anonymous set public myminio/$$BUCKET_RECORDING_ORACLE; + " + + reputation-oracle: + container_name: reputation-oracle + image: human-protocol/reputation-oracle + pull_policy: build + depends_on: + postgres: + condition: service_healthy + minio: + condition: service_healthy + minio-client: + condition: service_completed_successfully + restart: *default-restart + logging: + <<: *default-logging + build: + context: ../../ + dockerfile: packages/apps/reputation-oracle/server/Dockerfile + expose: + - *backend_apps_internal_port + networks: + - human_protocol + ports: + - name: server_port + target: *backend_apps_internal_port + published: ${REPUTATION_ORACLE_PORT:-5001} + env_file: ./.env.reputation-oracle.local + environment: + <<: [*nodejs_app_vars, *nodejs_app_postgres_vars, *nodejs_app_s3_vars] + HOST: *all_interfaces_ip + PORT: *backend_apps_internal_port + POSTGRES_DATABASE: reputation-oracle + S3_BUCKET: *bucket_name_rep_o + KYC_API_PRIVATE_KEY: ${KYC_API_PRIVATE_KEY:-none} + HUMAN_APP_EMAIL: *human_app_email + # It is accessed by user, not from container + # so put here exposed port, not internal + FE_URL: http://localhost:${HUMAN_APP_CLIENT_PORT:?} + JWT_PUBLIC_KEY: *reputation_oracle_jwt_public_key + + human-app-server: + container_name: human-app-server + image: human-protocol/human-app-server + pull_policy: build + depends_on: + redis: + condition: service_started + restart: *default-restart + logging: + <<: *default-logging + build: + context: ../../ + dockerfile: packages/apps/human-app/server/Dockerfile + expose: + - *backend_apps_internal_port + networks: + - human_protocol + ports: + - name: server_port + target: *backend_apps_internal_port + published: ${HUMAN_APP_SERVER_PORT:-5002} + env_file: ./.env.human-app-server.local + environment: + <<: [*nodejs_app_vars, *redis_app_vars] + HOST: *all_interfaces_ip + PORT: *backend_apps_internal_port + REDIS_DB: 1 + RPC_URL: *rpc_url_polygon_amoy + HUMAN_APP_EMAIL: *human_app_email + REPUTATION_ORACLE_URL: "http://reputation-oracle:${BACKEND_APPS_INTERNAL_PORT:?}" + REPUTATION_ORACLE_ADDRESS: *reputation_oracle_address + + human-app-client: + container_name: human-app-client + image: human-protocol/human-app-client + pull_policy: build + depends_on: + human-app-server: + condition: service_started + restart: *default-restart + logging: + <<: *default-logging + build: + context: ../../ + dockerfile: packages/apps/human-app/frontend/Dockerfile + expose: + - *frontend_default_port + networks: + - human_protocol + ports: + - name: server_port + target: *frontend_default_port + published: ${HUMAN_APP_CLIENT_PORT:?} + environment: + PORT: *frontend_default_port + + exchange-oracle: + container_name: exchange-oracle-cvat + image: human-protocol/exchange-oracle-cvat + pull_policy: build + depends_on: + postgres: + condition: service_healthy + minio: + condition: service_healthy + minio-client: + condition: service_completed_successfully + redis: + condition: service_started + restart: *default-restart + logging: + <<: *default-logging + build: + context: ../../packages/examples/cvat/exchange-oracle + dockerfile: ./Dockerfile + expose: + - *backend_apps_internal_port + networks: + human_protocol: + human_cvat_bridge: + aliases: + - exchange-oracle.app + ports: + - name: server_port + target: *backend_apps_internal_port + published: ${EXCHANGE_ORACLE_PORT:-5003} + env_file: ./.env.exchange-oracle.local + environment: + HOST: *all_interfaces_ip + PORT: *backend_apps_internal_port + <<: [ + *cvat_oracle_postgres_vars, + *redis_app_vars, + *cvat_oracle_storage_connection_vars, + *cvat_connection_vars + ] + REDIS_DB: 2 + PG_DB: exchange-oracle + POLYGON_AMOY_RPC_API_URL: *rpc_url_polygon_amoy + POLYGON_AMOY_ADDR: *exchange_oracle_address + STORAGE_BUCKET_NAME: *bucket_name_exc_o + HUMAN_APP_JWT_KEY: *reputation_oracle_jwt_public_key + CVAT_INCOMING_WEBHOOKS_URL: "http://exchange-oracle.app:${BACKEND_APPS_INTERNAL_PORT:?}/cvat-webhook" + LOCALHOST_RECORDING_ORACLE_URL: "http://recording-oracle:${BACKEND_APPS_INTERNAL_PORT:?}/webhook" + LOCALHOST_JOB_LAUNCHER_URL: "http://job-launcher:${BACKEND_APPS_INTERNAL_PORT:?}/webhook" + LOCALHOST_RECORDING_ORACLE_ADDRESS: *recording_oracle_address + + recording-oracle: + container_name: recording-oracle-cvat + image: human-protocol/recording-oracle-cvat + pull_policy: build + depends_on: + postgres: + condition: service_healthy + minio: + condition: service_healthy + minio-client: + condition: service_completed_successfully + restart: *default-restart + logging: + <<: *default-logging + build: + context: ../../packages/examples/cvat/recording-oracle + dockerfile: ./Dockerfile + expose: + - *backend_apps_internal_port + networks: + - human_protocol + - human_cvat_bridge + ports: + - name: server_port + target: *backend_apps_internal_port + published: ${RECORDING_ORACLE_PORT:-5004} + env_file: ./.env.recording-oracle.local + environment: + HOST: *all_interfaces_ip + PORT: *backend_apps_internal_port + <<: [ + *cvat_oracle_postgres_vars, + *cvat_oracle_storage_connection_vars, + *cvat_connection_vars + ] + PG_DB: recording-oracle + POLYGON_AMOY_RPC_API_URL: *rpc_url_polygon_amoy + POLYGON_AMOY_ADDR: *recording_oracle_address + STORAGE_RESULTS_BUCKET_NAME: *bucket_name_rec_o + STORAGE_USE_PATH_STYLE: "true" + EXCHANGE_ORACLE_STORAGE_PROVIDER: *cvat_oracle_storage_provider + EXCHANGE_ORACLE_STORAGE_ENDPOINT_URL: *cvat_oracle_storage_endpoint + EXCHANGE_ORACLE_STORAGE_ACCESS_KEY: *minio_services_access_key + EXCHANGE_ORACLE_STORAGE_SECRET_KEY: *minio_services_secret_key + EXCHANGE_ORACLE_STORAGE_RESULTS_BUCKET_NAME: *bucket_name_exc_o + EXCHANGE_ORACLE_STORAGE_USE_SSL: 'false' + LOCALHOST_EXCHANGE_ORACLE_URL: "http://exchange-oracle:${BACKEND_APPS_INTERNAL_PORT:?}/webhook" + LOCALHOST_REPUTATION_ORACLE_URL: "http://reputation-oracle:${BACKEND_APPS_INTERNAL_PORT:?}/webhook" + LOCALHOST_EXCHANGE_ORACLE_ADDRESS: *exchange_oracle_address + + job-launcher: + container_name: job-launcher + image: human-protocol/job-launcher + pull_policy: build + depends_on: + postgres: + condition: service_healthy + minio: + condition: service_healthy + minio-client: + condition: service_completed_successfully + restart: *default-restart + logging: + <<: *default-logging + build: + context: ../../ + dockerfile: packages/apps/job-launcher/server/Dockerfile + expose: + - *backend_apps_internal_port + networks: + - human_protocol + ports: + - name: server_port + target: *backend_apps_internal_port + published: ${JOB_LAUNCHER_PORT:-5005} + env_file: ./.env.job-launcher.local + environment: + <<: [*nodejs_app_vars, *nodejs_app_postgres_vars, *nodejs_app_s3_vars] + HOST: *all_interfaces_ip + PORT: *backend_apps_internal_port + POSTGRES_DATABASE: job-launcher + S3_BUCKET: *bucket_name_manifests + REPUTATION_ORACLES: *exchange_oracle_address + CVAT_EXCHANGE_ORACLE_ADDRESS: *exchange_oracle_address + CVAT_RECORDING_ORACLE_ADDRESS: *recording_oracle_address + REPUTATION_ORACLE_ADDRESS: *reputation_oracle_address + FE_URL: http://localhost:${JOB_LAUNCHER_CLIENT_PORT:?} + + job-launcher-client: + container_name: job-launcher-client + image: human-protocol/job-launcher-client + pull_policy: build + depends_on: + job-launcher: + condition: service_started + restart: *default-restart + logging: + <<: *default-logging + build: + context: ../../ + dockerfile: packages/apps/job-launcher/client/Dockerfile + expose: + - *frontend_default_port + networks: + - human_protocol + ports: + - name: server_port + target: *frontend_default_port + published: ${JOB_LAUNCHER_CLIENT_PORT:?} + environment: + PORT: *frontend_default_port + +volumes: + # When init for the first time postgres requires empty directory + # that is exclusive to its user, so providing a separate volume + postgres-data: + redis-data: + minio-data: + +networks: + human_protocol: + name: human-protocol + # CVAT oracles since they need to access CVAT + human_cvat_bridge: + name: human-cvat-bridge + driver: bridge + driver_opts: + # Default is also 'true' + com.docker.network.bridge.enable_icc: 'true' + # Default is also 'true' + com.docker.network.bridge.enable_ip_masquerade: 'true' + com.docker.network.driver.mtu: 1500 diff --git a/scripts/cvat/env-files/.env.compose b/scripts/cvat/env-files/.env.compose new file mode 100644 index 0000000000..9a307825f1 --- /dev/null +++ b/scripts/cvat/env-files/.env.compose @@ -0,0 +1,21 @@ +MINIO_PORT=9000 + +BACKEND_APPS_INTERNAL_PORT=5000 +REPUTATION_ORACLE_EXPOSED_PORT=5001 +HUMAN_APP_CLIENT_PORT=3001 +JOB_LAUNCHER_CLIENT_PORT=3002 + +HUMAN_APP_EMAIL=human-app@local.app +REPUTATION_ORACLE_JWT_PUBLIC_KEY="-----BEGIN PUBLIC KEY----- +MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEkPekD3q96LHt4IfvY1UY1YukTeEf +K+XryPXhU57nKuhZXBPRrQ+lMDeFpYpHWpGqA/K576n+rDvjbBgHfQiHKg== +-----END PUBLIC KEY-----" + +RPC_URL_POLYGON_AMOY=https://rpc-amoy.polygon.technology +# Oracle addresses +REPUTATION_ORACLE_ADDRESS=replace_me +EXCHANGE_ORACLE_ADDRESS=replace_me +RECORDING_ORACLE_ADDRESS=replace_me + +# Might be empty +SUBGRAPH_API_KEY= diff --git a/scripts/cvat/env-files/.env.exchange-oracle b/scripts/cvat/env-files/.env.exchange-oracle new file mode 100644 index 0000000000..6ee37a5497 --- /dev/null +++ b/scripts/cvat/env-files/.env.exchange-oracle @@ -0,0 +1,57 @@ +## Polygon Amoy Config +POLYGON_AMOY_PRIVATE_KEY=replace_me + +## Cron Config +## To make environment more convenient with faster updates +PROCESS_JOB_LAUNCHER_WEBHOOKS_INT=10 +PROCESS_RECORDING_ORACLE_WEBHOOKS_INT=10 +TRACK_COMPLETED_PROJECTS_INT=10 +TRACK_COMPLETED_TASKS_INT=10 +TRACK_COMPLETED_ESCROWS_INT=10 +TRACK_CREATING_TASKS_INT=10 +TRACK_ASSIGNMENTS_INT=10 +TRACK_ESCROW_CREATION_INT=100 + +## Features +ENABLE_CUSTOM_CLOUD_HOST="yes" +REQUEST_LOGGING_ENABLED="yes" +PROFILING_ENABLED="yes" + +## Core +DEFAULT_ASSIGNMENT_TIME=600 + +## PGP Keys data +PGP_PRIVATE_KEY="-----BEGIN PGP PRIVATE KEY BLOCK----- + +xYYEZ4+2FxYJKwYBBAHaRw8BAQdAodfgvZwd1/s2tStzumk9T+WhuirhI8AD +eEOG4jdMhdD+CQMI9hA7Uf00eCXgAmMXD7ffmZaIpOjJXd3I4GM8mvKqP2DV +Ts6iDtfTy0f/jqEdTgNoh9Q5Q6uXW3/zAXivDtc7hGaMMA6/ITQsk7tg7LtL +HM0rRXhjaGFuZ2UgT3JhY2xlIDxleGNoYW5nZS1vcmFjbGVAbG9jYWwuYXBw +PsKMBBAWCgA+BYJnj7YXBAsJBwgJkNHy48FpPLsnAxUICgQWAAIBAhkBApsD +Ah4BFiEEydMT95OC9OCzQFjL0fLjwWk8uycAALavAP9RKP8wUxhuFKxFQ7IB +SQTTAZgamwezk0KqEuy6U70UtwEAiWyjFo3Y5oTzaOABs3YTogumq3v+Kmnn +yYNl/UHyZwXHiwRnj7YXEgorBgEEAZdVAQUBAQdA0THKoGl7/bviCOOm0MZ2 +6CSyN/PbPL5j9C6m5T/90GcDAQgH/gkDCBJs91BQdiVL4PZj8WlKnyu+7sBD +p1pKRAqCxx/DDnYWGTFyW8JMgM6bcEfCIl+q5WeO35k1SXFJKUu2Wd1Cl5r1 +kp/DonyJmiRM+Lo/evbCeAQYFgoAKgWCZ4+2FwmQ0fLjwWk8uycCmwwWIQTJ +0xP3k4L04LNAWMvR8uPBaTy7JwAAVCEBAKBllZtzefLZsoE0behnwu5SCnSS +ORb+9kItQJMdBcnWAP9HcsCq3Ve6pOUXBuMWlmQ8IspXQ/oPHdQ7gEJ8+q6H +Bw== +=w1I+ +-----END PGP PRIVATE KEY BLOCK-----" +PGP_PASSPHRASE=exc-o-pgp-password +PGP_PUBLIC_KEY="-----BEGIN PGP PUBLIC KEY BLOCK----- + +xjMEZ4+2FxYJKwYBBAHaRw8BAQdAodfgvZwd1/s2tStzumk9T+WhuirhI8AD +eEOG4jdMhdDNK0V4Y2hhbmdlIE9yYWNsZSA8ZXhjaGFuZ2Utb3JhY2xlQGxv +Y2FsLmFwcD7CjAQQFgoAPgWCZ4+2FwQLCQcICZDR8uPBaTy7JwMVCAoEFgAC +AQIZAQKbAwIeARYhBMnTE/eTgvTgs0BYy9Hy48FpPLsnAAC2rwD/USj/MFMY +bhSsRUOyAUkE0wGYGpsHs5NCqhLsulO9FLcBAIlsoxaN2OaE82jgAbN2E6IL +pqt7/ipp58mDZf1B8mcFzjgEZ4+2FxIKKwYBBAGXVQEFAQEHQNExyqBpe/27 +4gjjptDGdugksjfz2zy+Y/QupuU//dBnAwEIB8J4BBgWCgAqBYJnj7YXCZDR +8uPBaTy7JwKbDBYhBMnTE/eTgvTgs0BYy9Hy48FpPLsnAABUIQEAoGWVm3N5 +8tmygTRt6GfC7lIKdJI5Fv72Qi1Akx0FydYA/0dywKrdV7qk5RcG4xaWZDwi +yldD+g8d1DuAQnz6rocH +=AVB0 +-----END PGP PUBLIC KEY BLOCK-----" +PGP_PUBLIC_KEY_URL=http://minio:9000/exchange-oracle/pgp-public-key diff --git a/scripts/cvat/env-files/.env.human-app-client b/scripts/cvat/env-files/.env.human-app-client new file mode 100644 index 0000000000..30464f42d5 --- /dev/null +++ b/scripts/cvat/env-files/.env.human-app-client @@ -0,0 +1,28 @@ +VITE_API_URL=http://localhost:5002 +VITE_NETWORK=testnet +# Reown project id +VITE_WALLET_CONNECT_PROJECT_ID=replace_me +VITE_DAPP_ICONS=icon1,icon2 +VITE_DAPP_META_DESCRIPTION=Complete jobs, earn HMT +VITE_DAPP_META_NAME=Human App Local +VITE_DAPP_META_URL=http://localhost:3001 +# Keep it empty +VITE_H_CAPTCHA_EXCHANGE_URL= +# Keep it empty +VITE_H_CAPTCHA_LABELING_BASE_URL= +VITE_H_CAPTCHA_SITE_KEY=10000000-ffff-ffff-ffff-000000000001 +VITE_DAILY_SOLVED_CAPTCHA_LIMIT=0 +VITE_HMT_DAILY_SPENT_LIMIT=0 +VITE_HUMAN_PROTOCOL_HELP_URL=https://docs.humanprotocol.org/ +VITE_HUMAN_PROTOCOL_URL=https://humanprotocol.org/ +VITE_HUMAN_SUPPORT_EMAIL=support@local.app +VITE_NAVBAR__LINK__HOW_IT_WORK_URL=https://humanprotocol.org/ +VITE_NAVBAR__LINK__PROTOCOL_URL=https://humanprotocol.org/ +VITE_PRIVACY_POLICY_URL=http://local.app/privacy-policy/ +VITE_TERMS_OF_SERVICE_URL=http://local.app/terms-and-conditions/ +VITE_H_CAPTCHA_ORACLE_ANNOTATION_TOOL=hcaptcha +VITE_H_CAPTCHA_ORACLE_ROLE=hcaptcha +# Keep it empty +VITE_H_CAPTCHA_ORACLE_ADDRESS= +VITE_H_CAPTCHA_ORACLE_TASK_TYPES=image_points,image_boxes +VITE_FEATURE_FLAG_JOBS_DISCOVERY=true \ No newline at end of file diff --git a/scripts/cvat/env-files/.env.human-app-server b/scripts/cvat/env-files/.env.human-app-server new file mode 100644 index 0000000000..7eef62257c --- /dev/null +++ b/scripts/cvat/env-files/.env.human-app-server @@ -0,0 +1,14 @@ +CHAIN_IDS_ENABLED=80002 +HCAPTCHA_LABELING_STATS_API_URL=disabled +HCAPTCHA_LABELING_VERIFY_API_URL=disabled +HCAPTCHA_LABELING_API_KEY=disabled +# Should be the one you will use to access human-app-server API +ALLOWED_HOST=localhost:5002 +HUMAN_APP_PASSWORD=HumanAppPassword +# CORS +CORS_ALLOWED_ORIGIN=* +CORS_ALLOWED_HEADERS='Content-Type,Authorization,X-Requested-With,Accept,Origin' +CORS_ENABLED=true +IS_CACHE_TO_RESTART=false +# FEATURE FLAGS +FEATURE_FLAG_JOBS_DISCOVERY=true diff --git a/scripts/cvat/env-files/.env.job-launcher b/scripts/cvat/env-files/.env.job-launcher new file mode 100644 index 0000000000..5784c6b2ca --- /dev/null +++ b/scripts/cvat/env-files/.env.job-launcher @@ -0,0 +1,66 @@ +# Database +POSTGRES_DATABASE=job-launcher + +# Web3 +WEB3_PRIVATE_KEY=replace_me + +GAS_PRICE_MULTIPLIER=1 + +# Encryption +PGP_ENCRYPT=true +PGP_PRIVATE_KEY="-----BEGIN PGP PRIVATE KEY BLOCK----- + +xYYEZ4+y/xYJKwYBBAHaRw8BAQdAlIkUUttKB25Zf/g3lf26lU15V4PcS6eM +YiqfFUeyZGn+CQMIW8oNkxnBpSfgI4VBMN4ZamblXNYjg3u6HdSvuPrSjryR +zEVPcE/QPTE+sljRLve2E4MEcGcs9c/JWxmD0Dlq7gpbctghQKkEbViwsj36 +L80lSm9iIExhdW5jaGVyIDxqb2ItbGF1bmNoZXJAbG9jYWwuYXBwPsKMBBAW +CgA+BYJnj7L/BAsJBwgJkFvOlfsfiS2NAxUICgQWAAIBAhkBApsDAh4BFiEE +nhDZweAQiTFNFnMEW86V+x+JLY0AAFrrAQDUTb30NvyMX1rvIAUdX7OnEQFu +u+IkL52ZcvH0lJBHsAEA+iDL/03LCLIDK1g1l2mBZNUudEqncB0i0rAifeli +hwLHiwRnj7L/EgorBgEEAZdVAQUBAQdASe/9TcJE/EnMLYE2K0o/ROxsRDi8 +cRtPEKSNVNLeCB4DAQgH/gkDCHtTPVsCMa9X4H1NkDo5Ijnyp74a2ZklE5l6 +coHvKRndTyT/UwxRPUo38pq3mI5U/bRCvrwFD6ehWWhlsfjm/D0Xsjj7J6jF +uKxZgW+CGwfCeAQYFgoAKgWCZ4+y/wmQW86V+x+JLY0CmwwWIQSeENnB4BCJ +MU0WcwRbzpX7H4ktjQAAZqoBAJ5Llw1V+5i9w9bOTS2NlQDSqtQAClCECEhD +z9cFhU1RAQCBG62i7Cjsy+4RXxubBqVhNWCk02JhSn+vDAYT/TeqBA== +=B2Ed +-----END PGP PRIVATE KEY BLOCK-----" +PGP_PASSPHRASE=job-launcher-pgp-password +# Put it here just to easily set up KV later +PGP_PUBLIC_KEY="-----BEGIN PGP PUBLIC KEY BLOCK----- + +xjMEZ4+y/xYJKwYBBAHaRw8BAQdAlIkUUttKB25Zf/g3lf26lU15V4PcS6eM +YiqfFUeyZGnNJUpvYiBMYXVuY2hlciA8am9iLWxhdW5jaGVyQGxvY2FsLmFw +cD7CjAQQFgoAPgWCZ4+y/wQLCQcICZBbzpX7H4ktjQMVCAoEFgACAQIZAQKb +AwIeARYhBJ4Q2cHgEIkxTRZzBFvOlfsfiS2NAABa6wEA1E299Db8jF9a7yAF +HV+zpxEBbrviJC+dmXLx9JSQR7ABAPogy/9NywiyAytYNZdpgWTVLnRKp3Ad +ItKwIn3pYocCzjgEZ4+y/xIKKwYBBAGXVQEFAQEHQEnv/U3CRPxJzC2BNitK +P0TsbEQ4vHEbTxCkjVTS3ggeAwEIB8J4BBgWCgAqBYJnj7L/CZBbzpX7H4kt +jQKbDBYhBJ4Q2cHgEIkxTRZzBFvOlfsfiS2NAABmqgEAnkuXDVX7mL3D1s5N +LY2VANKq1AAKUIQISEPP1wWFTVEBAIEbraLsKOzL7hFfG5sGpWE1YKTTYmFK +f68MBhP9N6oE +=dNxu +-----END PGP PUBLIC KEY BLOCK-----" + +FORTUNE_EXCHANGE_ORACLE_ADDRESS=disabled +FORTUNE_RECORDING_ORACLE_ADDRESS=disabled +HCAPTCHA_RECORDING_ORACLE_URI=disabled +HCAPTCHA_REPUTATION_ORACLE_URI=disabled +HCAPTCHA_ORACLE_ADDRESS=disabled + +# Auth +JWT_PRIVATE_KEY="-----BEGIN PRIVATE KEY----- +MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgjwW8ZeWIKizY9pSl +phyKfwYFp3aRHeMuV+jOKp49hX6hRANCAATeitytad5Rh0tx6AP/VHptsRvsZ+Xp +/24PICdk4nsMxZEAe76InmWdqhud13JV76Jl02DVenFEJVM5IjRk+mLG +-----END PRIVATE KEY-----" +JWT_PUBLIC_KEY="-----BEGIN PUBLIC KEY----- +MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE3orcrWneUYdLcegD/1R6bbEb7Gfl +6f9uDyAnZOJ7DMWRAHu+iJ5lnaobnddyVe+iZdNg1XpxRCVTOSI0ZPpixg== +-----END PUBLIC KEY-----" + +# Stripe +STRIPE_SECRET_KEY=disabled +STRIPE_APP_NAME=Launcher Server Local +STRIPE_APP_VERSION=1.0.0 +STRIPE_APP_INFO_URL=http://local.app diff --git a/scripts/cvat/env-files/.env.job-launcher-client b/scripts/cvat/env-files/.env.job-launcher-client new file mode 100644 index 0000000000..aaa46b98bf --- /dev/null +++ b/scripts/cvat/env-files/.env.job-launcher-client @@ -0,0 +1,10 @@ +VITE_APP_JOB_LAUNCHER_SERVER_URL=http://localhost:5005 +# Reown project id +VITE_APP_WALLETCONNECT_PROJECT_ID=replace_me +VITE_APP_STRIPE_PUBLISHABLE_KEY=disabled +VITE_APP_HCAPTCHA_SITE_KEY=10000000-ffff-ffff-ffff-000000000001 +VITE_APP_HCAPTCHA_EXCHANGE_URL=disabled +VITE_APP_HCAPTCHA_LABELING_BASE_URL=disabled +VITE_APP_ENVIRONMENT=testnet +VITE_APP_RPC_URL_POLYGON_AMOY=https://rpc-amoy.polygon.technology +VITE_APP_SUPPORTED_CHAINS=80002 diff --git a/scripts/cvat/env-files/.env.recording-oracle b/scripts/cvat/env-files/.env.recording-oracle new file mode 100644 index 0000000000..6c8bbb1a88 --- /dev/null +++ b/scripts/cvat/env-files/.env.recording-oracle @@ -0,0 +1,50 @@ +# Polygon Amoy +POLYGON_AMOY_PRIVATE_KEY=replace_me + +# Cron jobs +PROCESS_EXCHANGE_ORACLE_WEBHOOKS_INT=10 +PROCESS_REPUTATION_ORACLE_WEBHOOKS_INT=10 + +# Features +ENABLE_CUSTOM_CLOUD_HOST="yes" + + +# Encryption +PGP_PRIVATE_KEY="-----BEGIN PGP PRIVATE KEY BLOCK----- + +xYYEZ4+5NBYJKwYBBAHaRw8BAQdAB8sDU5DxBk145aSEDgzsDqVvSbxoQffZ +6wybUtZ/s+3+CQMI6+l2w9YuLXDgz7GAmnrbFaUciZFIfAzjng3ZjbABRoWI +5+qwhJ4AITBpNzrju6SZV+NGlkgnYaljDk+cO+eIIL2N8D+v+UDGJokWy9P5 +PM0yQ1ZBVCByZWNvcmRpbmcgb3JhY2xlIDxyZWNvcmRpbmctb3JhY2xlQGxv +Y2FsLmFwcD7CjAQQFgoAPgWCZ4+5NAQLCQcICZDA/EkpGIzNeAMVCAoEFgAC +AQIZAQKbAwIeARYhBL5Bsw7o2pz/KrGZjMD8SSkYjM14AAA+wgEAzTwwMKXJ +QUlIeUwmLR3OHrCuyHQIPWFzxLQcxESPftkA/1PTr20UozX+YNUV9XRLehJt +3pmBtFzQZdndN3rTNJQKx4sEZ4+5NBIKKwYBBAGXVQEFAQEHQBJRjDJjbOVh +k0ofZQv6VZF+GtvMzoZTErWOBSZnjJ5lAwEIB/4JAwhW7zmaNYAF+uA6JpwB +zaAC1o2Cm5IRnBp66vdGG7RsyZBoca0R6aHht/UfzlrUwPKUmP13oTSQ1vxU +Z5Fx+owW1V+w8ZDuxyN1zTWGgQh7wngEGBYKACoFgmePuTQJkMD8SSkYjM14 +ApsMFiEEvkGzDujanP8qsZmMwPxJKRiMzXgAANG2AQCA5PVDyVwo54y9Givv +4V8HSyNHNVgxj0dLknOxJB3HSAEA/jO1djl9b99okxC3cgfic0ArMIT1V3gm +9SSdFWQpfww= +=X8yi +-----END PGP PRIVATE KEY BLOCK-----" +PGP_PASSPHRASE=rec-o-pgp-password +PGP_PUBLIC_KEY="-----BEGIN PGP PRIVATE KEY BLOCK----- + +xYYEZ4+5NBYJKwYBBAHaRw8BAQdAB8sDU5DxBk145aSEDgzsDqVvSbxoQffZ +6wybUtZ/s+3+CQMI6+l2w9YuLXDgz7GAmnrbFaUciZFIfAzjng3ZjbABRoWI +5+qwhJ4AITBpNzrju6SZV+NGlkgnYaljDk+cO+eIIL2N8D+v+UDGJokWy9P5 +PM0yQ1ZBVCByZWNvcmRpbmcgb3JhY2xlIDxyZWNvcmRpbmctb3JhY2xlQGxv +Y2FsLmFwcD7CjAQQFgoAPgWCZ4+5NAQLCQcICZDA/EkpGIzNeAMVCAoEFgAC +AQIZAQKbAwIeARYhBL5Bsw7o2pz/KrGZjMD8SSkYjM14AAA+wgEAzTwwMKXJ +QUlIeUwmLR3OHrCuyHQIPWFzxLQcxESPftkA/1PTr20UozX+YNUV9XRLehJt +3pmBtFzQZdndN3rTNJQKx4sEZ4+5NBIKKwYBBAGXVQEFAQEHQBJRjDJjbOVh +k0ofZQv6VZF+GtvMzoZTErWOBSZnjJ5lAwEIB/4JAwhW7zmaNYAF+uA6JpwB +zaAC1o2Cm5IRnBp66vdGG7RsyZBoca0R6aHht/UfzlrUwPKUmP13oTSQ1vxU +Z5Fx+owW1V+w8ZDuxyN1zTWGgQh7wngEGBYKACoFgmePuTQJkMD8SSkYjM14 +ApsMFiEEvkGzDujanP8qsZmMwPxJKRiMzXgAANG2AQCA5PVDyVwo54y9Givv +4V8HSyNHNVgxj0dLknOxJB3HSAEA/jO1djl9b99okxC3cgfic0ArMIT1V3gm +9SSdFWQpfww= +=X8yi +-----END PGP PRIVATE KEY BLOCK-----" +PGP_PUBLIC_KEY_URL=http://minio:9000/recording-oracle/pgp-public-key diff --git a/scripts/cvat/env-files/.env.reputation-oracle b/scripts/cvat/env-files/.env.reputation-oracle new file mode 100644 index 0000000000..f53545576b --- /dev/null +++ b/scripts/cvat/env-files/.env.reputation-oracle @@ -0,0 +1,48 @@ +# Auth +JWT_PRIVATE_KEY="-----BEGIN PRIVATE KEY----- +MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQg9T4TcNz4sFIvOZTE +wBHX986G90H20Cryp4++7APQfu6hRANCAASQ96QPer3ose3gh+9jVRjVi6RN4R8r +5evI9eFTnucq6FlcE9GtD6UwN4WlikdakaoD8rnvqf6sO+NsGAd9CIcq +-----END PRIVATE KEY-----" + +# web3 +WEB3_PRIVATE_KEY=replace_me + +# Encryption +PGP_ENCRYPT=true +PGP_PRIVATE_KEY="-----BEGIN PGP PRIVATE KEY BLOCK----- + +xYYEZ4+FFhYJKwYBBAHaRw8BAQdA/BEzpkXk107UOpQrUro20UxYryOW4g8x +yAXIh2cH5ff+CQMI0h7UaI9LgBXgKHJF0y9LMaRyjZwkKYQa/yn5T1pfkgTn +T2piULy9a+2w8EWyve2cv8zMBtZAcno75sV0X3BbMpkf9ru8hOoWQvkv8arN +Wc01UmVwdXRhdGlvbiBPcmFjbGUgTG9jYWwgPHJlcHV0YXRpb24tb3JhY2xl +QGxvY2FsLmFwcD7CjAQQFgoAPgWCZ4+FFgQLCQcICZCe6Z27JtHYsAMVCAoE +FgACAQIZAQKbAwIeARYhBMXQP7WbhM4roaDkzZ7pnbsm0diwAACDdAEAkLuS +rUp2eLBD2MEBP96wU8FqIUGsyju5Esd+yS7VGzIBAO8hmR8QEwk/+P2lKqLg +6lgQnT0xubb7PqcNmJNoSX8Hx4sEZ4+FFhIKKwYBBAGXVQEFAQEHQJHtNaFR +30ahNwXuUoYRyIA22K3B686H+mZCF5Nfy6JDAwEIB/4JAwj2Ltq6kZ0KfuC6 +78oX1t2wh/ZYJA9hZRa+8qyizfHZ9WKe7IWEXBW8yRc4IHNL0nYFCF5w5zoc +NMHddSoQdIWhja8s5odZqA0uV1YaDHuOwngEGBYKACoFgmePhRYJkJ7pnbsm +0diwApsMFiEExdA/tZuEziuhoOTNnumduybR2LAAAFNTAQDL0L2pHyi6CPPV +fw6LtGasCu9iLT59kNj+gUabWgYVtQEApNxRcbFcYRyqmFjDDNXtyZhZB8Jj +F8tN26blow3txgI= +=68Rz +-----END PGP PRIVATE KEY BLOCK-----" +PGP_PASSPHRASE=rep-o-pgp-password +# Put it here just to easily set up KV later +PGP_PUBLIC_KEY="-----BEGIN PGP PUBLIC KEY BLOCK----- + +xjMEZ4+FFhYJKwYBBAHaRw8BAQdA/BEzpkXk107UOpQrUro20UxYryOW4g8x +yAXIh2cH5ffNNVJlcHV0YXRpb24gT3JhY2xlIExvY2FsIDxyZXB1dGF0aW9u +LW9yYWNsZUBsb2NhbC5hcHA+wowEEBYKAD4FgmePhRYECwkHCAmQnumduybR +2LADFQgKBBYAAgECGQECmwMCHgEWIQTF0D+1m4TOK6Gg5M2e6Z27JtHYsAAA +g3QBAJC7kq1KdniwQ9jBAT/esFPBaiFBrMo7uRLHfsku1RsyAQDvIZkfEBMJ +P/j9pSqi4OpYEJ09Mbm2+z6nDZiTaEl/B844BGePhRYSCisGAQQBl1UBBQEB +B0CR7TWhUd9GoTcF7lKGEciANtitwevOh/pmQheTX8uiQwMBCAfCeAQYFgoA +KgWCZ4+FFgmQnumduybR2LACmwwWIQTF0D+1m4TOK6Gg5M2e6Z27JtHYsAAA +U1MBAMvQvakfKLoI89V/Dou0ZqwK72ItPn2Q2P6BRptaBhW1AQCk3FFxsVxh +HKqYWMMM1e3JmFkHwmMXy03bpuWjDe3GAg== +=pqBc +-----END PGP PUBLIC KEY BLOCK-----" + +KYC_API_KEY=disabled diff --git a/scripts/cvat/initdb/create-dbs.sql b/scripts/cvat/initdb/create-dbs.sql new file mode 100644 index 0000000000..3b5f93e98e --- /dev/null +++ b/scripts/cvat/initdb/create-dbs.sql @@ -0,0 +1,4 @@ +CREATE DATABASE "reputation-oracle"; +CREATE DATABASE "exchange-oracle"; +CREATE DATABASE "recording-oracle"; +CREATE DATABASE "job-launcher"; diff --git a/yarn.lock b/yarn.lock index 63f8adf972..b35eac4129 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3274,7 +3274,7 @@ jsonc-parser "3.3.1" pluralize "8.0.0" -"@nestjs/serve-static@^4.0.1": +"@nestjs/serve-static@^4.0.1", "@nestjs/serve-static@^4.0.2": version "4.0.2" resolved "https://registry.yarnpkg.com/@nestjs/serve-static/-/serve-static-4.0.2.tgz#f003bbd90922bdc73d0261edacf001dfef174c96" integrity sha512-cT0vdWN5ar7jDI2NKbhf4LcwJzU4vS5sVpMkVrHuyLcltbrz6JdGi1TfIMMatP2pNiq5Ie/uUdPSFDVaZX/URQ== @@ -5454,7 +5454,7 @@ resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee" integrity sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ== -"@types/jsonwebtoken@*": +"@types/jsonwebtoken@*", "@types/jsonwebtoken@^9.0.7": version "9.0.7" resolved "https://registry.yarnpkg.com/@types/jsonwebtoken/-/jsonwebtoken-9.0.7.tgz#e49b96c2b29356ed462e9708fc73b833014727d2" integrity sha512-ugo316mmTYBl2g81zDFnZ7cfxlut3o+/EQdaP7J8QN2kY6lJ22hmQYCK5EHcJHbrW+dkCGSCPgbG8JtYj6qSrg== @@ -5480,6 +5480,11 @@ resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.17.13.tgz#786e2d67cfd95e32862143abe7463a7f90c300eb" integrity sha512-lfx+dftrEZcdBPczf9d0Qv0x+j/rfNCMuC6OcfXmO8gkfeNAY88PgKUbvG56whcN23gc27yenwF6oJZXGFpYxg== +"@types/lodash@^4.17.14": + version "4.17.14" + resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.17.14.tgz#bafc053533f4cdc5fcc9635af46a963c1f3deaff" + integrity sha512-jsxagdikDiDBeIRaPYtArcT8my4tN1og7MtMRquFT3XNA6axxyHDRUemqDz/taRDdOUn0GnGHRCuff4q48sW9A== + "@types/long@^4.0.0", "@types/long@^4.0.1": version "4.0.2" resolved "https://registry.yarnpkg.com/@types/long/-/long-4.0.2.tgz#b74129719fc8d11c01868010082d483b7545591a" @@ -7708,7 +7713,7 @@ bn.js@^5.1.2, bn.js@^5.2.0, bn.js@^5.2.1: resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-5.2.1.tgz#0bc527a6a0d18d0aa8d5b0538ce4a77dccfa7b70" integrity sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ== -body-parser@1.20.3, body-parser@^1.20.0, body-parser@^1.20.2: +body-parser@1.20.3, body-parser@^1.20.0, body-parser@^1.20.2, body-parser@^1.20.3: version "1.20.3" resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.20.3.tgz#1953431221c6fb5cd63c4b36d53fab0928e548c6" integrity sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g== @@ -13814,7 +13819,7 @@ jsonschema@^1.2.4, jsonschema@^1.4.1: resolved "https://registry.yarnpkg.com/jsonschema/-/jsonschema-1.4.1.tgz#cc4c3f0077fb4542982973d8a083b6b34f482dab" integrity sha512-S6cATIPVv1z0IlxdN+zUk5EPjkGCdnhN4wVSBlvoUO1tOLJootbo9CquNJmbIh4yikWHiUedhRYrNPn1arpEmQ== -jsonwebtoken@9.0.2, jsonwebtoken@^9.0.0: +jsonwebtoken@9.0.2, jsonwebtoken@^9.0.0, jsonwebtoken@^9.0.2: version "9.0.2" resolved "https://registry.yarnpkg.com/jsonwebtoken/-/jsonwebtoken-9.0.2.tgz#65ff91f4abef1784697d40952bb1998c504caaf3" integrity sha512-PRp66vJ865SSqOlgqS8hujT5U4AOgMfhrwYIuIhfKaoSCZcirrmASQr8CX7cUg+RMih+hgznrjp99o+W4pJLHQ== @@ -14427,7 +14432,7 @@ matchstick-as@^0.6.0: dependencies: wabt "1.0.24" -material-react-table@^3.0.1: +material-react-table@3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/material-react-table/-/material-react-table-3.0.1.tgz#a6d592a1e370acfd453c37f1deaa870c47e7bf5b" integrity sha512-RP+bnpsOAH5j6zwP04u9HB37fyqbd6mVv9mkT4IUJC3e3gEqixZmkNdJMVM1ZVHoq7yIaM381xf22mpBVe0IaA== From 6ed367e5cba1df0adec167722caf4dda8c7b0129 Mon Sep 17 00:00:00 2001 From: Dzeranov Date: Wed, 29 Jan 2025 16:29:06 +0300 Subject: [PATCH 28/44] [Reputation Oracle] Refactor `User` module error handling (#3042) * refactor: `User` module error handling * fix: tests * fix: cleanup * fix: resolve PR comments * fix: typo * fix: missing filter usage --- .../server/src/common/constants/errors.ts | 32 --- .../server/src/common/enums/web3.ts | 1 - .../src/common/guards/signature.auth.spec.ts | 58 +++-- .../src/common/guards/signature.auth.ts | 63 ++--- .../server/src/common/utils/signature.spec.ts | 43 +--- .../server/src/common/utils/signature.ts | 41 ++-- .../src/modules/auth/auth.controller.ts | 2 +- ...h.error-filter.ts => auth.error.filter.ts} | 19 +- .../auth/{auth.errors.ts => auth.error.ts} | 11 +- .../src/modules/auth/auth.service.spec.ts | 101 +++----- .../server/src/modules/auth/auth.service.ts | 45 ++-- .../credentials/credential.service.spec.ts | 1 - .../modules/credentials/credential.service.ts | 63 +---- .../src/modules/user/user.controller.ts | 24 +- .../server/src/modules/user/user.dto.ts | 3 +- .../src/modules/user/user.error.filter.ts | 42 ++++ .../server/src/modules/user/user.error.ts | 35 +++ .../src/modules/user/user.service.spec.ts | 221 +++++++----------- .../server/src/modules/user/user.service.ts | 199 +++++----------- 19 files changed, 424 insertions(+), 580 deletions(-) rename packages/apps/reputation-oracle/server/src/modules/auth/{auth.error-filter.ts => auth.error.filter.ts} (76%) rename packages/apps/reputation-oracle/server/src/modules/auth/{auth.errors.ts => auth.error.ts} (80%) create mode 100644 packages/apps/reputation-oracle/server/src/modules/user/user.error.filter.ts create mode 100644 packages/apps/reputation-oracle/server/src/modules/user/user.error.ts diff --git a/packages/apps/reputation-oracle/server/src/common/constants/errors.ts b/packages/apps/reputation-oracle/server/src/common/constants/errors.ts index cee20b71b5..9c6b738173 100644 --- a/packages/apps/reputation-oracle/server/src/common/constants/errors.ts +++ b/packages/apps/reputation-oracle/server/src/common/constants/errors.ts @@ -28,30 +28,6 @@ export enum ErrorManifest { UnsupportedManifestType = 'Unsupported manifest type', } -/** - * Represents error messages related to signature. - */ -export enum ErrorSignature { - SignatureNotVerified = 'Signature not verified', - InvalidSignature = 'Invalid signature', -} - -/** - * Represents error messages related to user. - */ -export enum ErrorUser { - NotFound = 'User not found.', - AccountCannotBeRegistered = 'Account cannot be registered.', - BalanceCouldNotBeRetreived = 'User balance could not be retrieved.', - InvalidCredentials = 'Invalid credentials.', - AlreadyAssigned = 'User already has an address assigned.', - NoWalletAddresRegistered = 'No wallet address registered on your account.', - KycNotApproved = 'KYC not approved.', - LabelingEnableFailed = 'Failed to enable labeling for this account.', - InvalidType = 'User has invalid type.', - DuplicatedAddress = 'The address you are trying to use already exists. Please check that the address is correct or use a different address.', -} - /** * Represents error messages related to send grid. */ @@ -77,11 +53,3 @@ export enum ErrorWeb3 { InvalidChainId = 'Invalid chain id provided for the configured environment', GasPriceError = 'Error calculating gas price', } - -/** - * Represents error messages related to operator. - */ -export enum ErrorOperator { - OperatorAlreadyActive = 'Operator is already active', - OperatorNotActive = 'Operator not active', -} diff --git a/packages/apps/reputation-oracle/server/src/common/enums/web3.ts b/packages/apps/reputation-oracle/server/src/common/enums/web3.ts index e3fee4c9fc..d99650b26e 100644 --- a/packages/apps/reputation-oracle/server/src/common/enums/web3.ts +++ b/packages/apps/reputation-oracle/server/src/common/enums/web3.ts @@ -9,6 +9,5 @@ export enum SignatureType { SIGNIN = 'signin', ENABLE_OPERATOR = 'enable_operator', DISABLE_OPERATOR = 'disable_operator', - CERTIFICATE_AUTHENTICATION = 'certificate_authentication', REGISTER_ADDRESS = 'register_address', } diff --git a/packages/apps/reputation-oracle/server/src/common/guards/signature.auth.spec.ts b/packages/apps/reputation-oracle/server/src/common/guards/signature.auth.spec.ts index 7d23cb7138..c32d407d86 100644 --- a/packages/apps/reputation-oracle/server/src/common/guards/signature.auth.spec.ts +++ b/packages/apps/reputation-oracle/server/src/common/guards/signature.auth.spec.ts @@ -1,22 +1,15 @@ import { Test, TestingModule } from '@nestjs/testing'; -import { ExecutionContext, HttpStatus } from '@nestjs/common'; +import { ExecutionContext, HttpException, HttpStatus } from '@nestjs/common'; import { SignatureAuthGuard } from './signature.auth'; -import { verifySignature } from '../utils/signature'; +import { signMessage } from '../utils/signature'; import { ChainId, EscrowUtils } from '@human-protocol/sdk'; -import { MOCK_ADDRESS } from '../../../test/constants'; +import { MOCK_ADDRESS, MOCK_PRIVATE_KEY } from '../../../test/constants'; import { AuthSignatureRole } from '../enums/role'; -import { ControlledError } from '../errors/controlled'; - -jest.mock('../../common/utils/signature'); jest.mock('@human-protocol/sdk', () => ({ ...jest.requireActual('@human-protocol/sdk'), EscrowUtils: { - getEscrow: jest.fn().mockResolvedValue({ - launcher: '0x1234567890123456789012345678901234567890', - exchangeOracle: '0x1234567890123456789012345678901234567891', - reputationOracle: '0x1234567890123456789012345678901234567892', - }), + getEscrow: jest.fn(), }, })); @@ -38,6 +31,11 @@ describe('SignatureAuthGuard', () => { }).compile(); guard = module.get(SignatureAuthGuard); + EscrowUtils.getEscrow = jest.fn().mockResolvedValueOnce({ + launcher: MOCK_ADDRESS, + exchangeOracle: MOCK_ADDRESS, + reputationOracle: MOCK_ADDRESS, + }); }); it('should be defined', () => { @@ -63,13 +61,13 @@ describe('SignatureAuthGuard', () => { }); it('should return true if signature is verified', async () => { - mockRequest.headers['header-signature-key'] = 'validSignature'; - mockRequest.body = { + const body = { escrow_address: MOCK_ADDRESS, chain_id: ChainId.LOCALHOST, }; - (verifySignature as jest.Mock).mockReturnValue(true); - + const signature = await signMessage(body, MOCK_PRIVATE_KEY); + mockRequest.headers['human-signature'] = signature; + mockRequest.body = body; const result = await guard.canActivate(context as any); expect(result).toBeTruthy(); expect(EscrowUtils.getEscrow).toHaveBeenCalledWith( @@ -79,18 +77,36 @@ describe('SignatureAuthGuard', () => { }); it('should throw unauthorized exception if signature is not verified', async () => { - (verifySignature as jest.Mock).mockReturnValue(false); - - await expect(guard.canActivate(context as any)).rejects.toThrow( - new ControlledError('Unauthorized', HttpStatus.UNAUTHORIZED), + let catchedError; + try { + await guard.canActivate(context as any); + } catch (error) { + catchedError = error; + } + expect(catchedError).toBeInstanceOf(HttpException); + expect(catchedError.response).toHaveProperty( + 'message', + 'Invalid web3 signature', ); + expect(catchedError.response).toHaveProperty('timestamp'); + expect(catchedError).toHaveProperty('status', HttpStatus.UNAUTHORIZED); }); it('should throw unauthorized exception for unrecognized oracle type', async () => { mockRequest.originalUrl = '/some/random/path'; - await expect(guard.canActivate(context as any)).rejects.toThrow( - new ControlledError('Unauthorized', HttpStatus.UNAUTHORIZED), + let catchedError; + try { + await guard.canActivate(context as any); + } catch (error) { + catchedError = error; + } + expect(catchedError).toBeInstanceOf(HttpException); + expect(catchedError.response).toHaveProperty( + 'message', + 'Invalid web3 signature', ); + expect(catchedError.response).toHaveProperty('timestamp'); + expect(catchedError).toHaveProperty('status', HttpStatus.UNAUTHORIZED); }); }); }); diff --git a/packages/apps/reputation-oracle/server/src/common/guards/signature.auth.ts b/packages/apps/reputation-oracle/server/src/common/guards/signature.auth.ts index 3e7015c8d9..6eb7a09bda 100644 --- a/packages/apps/reputation-oracle/server/src/common/guards/signature.auth.ts +++ b/packages/apps/reputation-oracle/server/src/common/guards/signature.auth.ts @@ -1,17 +1,19 @@ import { CanActivate, ExecutionContext, + HttpException, HttpStatus, Injectable, + Logger, } from '@nestjs/common'; import { verifySignature } from '../utils/signature'; import { HEADER_SIGNATURE_KEY } from '../constants'; import { EscrowUtils } from '@human-protocol/sdk'; import { AuthSignatureRole } from '../enums/role'; -import { ControlledError } from '../errors/controlled'; @Injectable() export class SignatureAuthGuard implements CanActivate { + logger = new Logger(SignatureAuthGuard.name); constructor(private role: AuthSignatureRole[]) {} public async canActivate(context: ExecutionContext): Promise { @@ -20,36 +22,39 @@ export class SignatureAuthGuard implements CanActivate { const data = request.body; const signature = request.headers[HEADER_SIGNATURE_KEY]; const oracleAdresses: string[] = []; - try { - const escrowData = await EscrowUtils.getEscrow( - data.chain_id, - data.escrow_address, - ); - if ( - this.role.includes(AuthSignatureRole.JobLauncher) && - escrowData.launcher.length - ) - oracleAdresses.push(escrowData.launcher); - if ( - this.role.includes(AuthSignatureRole.Exchange) && - escrowData.exchangeOracle?.length - ) - oracleAdresses.push(escrowData.exchangeOracle); - if ( - this.role.includes(AuthSignatureRole.Recording) && - escrowData.recordingOracle?.length - ) - oracleAdresses.push(escrowData.recordingOracle); + const escrowData = await EscrowUtils.getEscrow( + data.chain_id, + data.escrow_address, + ); + if ( + this.role.includes(AuthSignatureRole.JobLauncher) && + escrowData.launcher.length + ) + oracleAdresses.push(escrowData.launcher); + if ( + this.role.includes(AuthSignatureRole.Exchange) && + escrowData.exchangeOracle?.length + ) + oracleAdresses.push(escrowData.exchangeOracle); + if ( + this.role.includes(AuthSignatureRole.Recording) && + escrowData.recordingOracle?.length + ) + oracleAdresses.push(escrowData.recordingOracle); - const isVerified = verifySignature(data, signature, oracleAdresses); + const isVerified = verifySignature(data, signature, oracleAdresses); - if (isVerified) { - return true; - } - } catch (error) { - console.error(error); + if (!isVerified) { + const message = 'Invalid web3 signature'; + this.logger.error(message, request.path); + throw new HttpException( + { + message, + timestamp: new Date().toISOString(), + }, + HttpStatus.UNAUTHORIZED, + ); } - - throw new ControlledError('Unauthorized', HttpStatus.UNAUTHORIZED); + return true; } } diff --git a/packages/apps/reputation-oracle/server/src/common/utils/signature.spec.ts b/packages/apps/reputation-oracle/server/src/common/utils/signature.spec.ts index 31e868621b..8f51eb4974 100644 --- a/packages/apps/reputation-oracle/server/src/common/utils/signature.spec.ts +++ b/packages/apps/reputation-oracle/server/src/common/utils/signature.spec.ts @@ -1,27 +1,5 @@ import { verifySignature, recoverSigner, signMessage } from './signature'; import { MOCK_ADDRESS, MOCK_PRIVATE_KEY } from '../../../test/constants'; -import { ErrorSignature } from '../constants/errors'; -import { ControlledError } from '../errors/controlled'; -import { HttpStatus } from '@nestjs/common'; - -jest.doMock('ethers', () => { - return { - utils: { - get verifyMessage() { - return jest.fn((message, signature) => { - if (message === 'valid-message' && signature === 'valid-signature') { - return 'recovered-address'; - } else { - throw new ControlledError( - ErrorSignature.InvalidSignature, - HttpStatus.UNAUTHORIZED, - ); - } - }); - }, - }, - }; -}); describe('Signature utility', () => { describe('verifySignature', () => { @@ -34,24 +12,24 @@ describe('Signature utility', () => { expect(result).toBe(true); }); - it('should throw conflict exception for signature not verified', async () => { + it('should return false for signature not verified', async () => { const message = 'Hello, this is a signed message!'; const invalidSignature = await signMessage(message, MOCK_PRIVATE_KEY); const invalidAddress = '0x1234567890123456789012345678901234567892'; - expect(() => { - verifySignature(message, invalidSignature, [invalidAddress]); - }).toThrow(ErrorSignature.SignatureNotVerified); + const result = verifySignature(message, invalidSignature, [ + invalidAddress, + ]); + expect(result).toBe(false); }); - it('should throw conflict exception for invalid signature', () => { + it('should return false in case of invalid signature', () => { const message = 'Hello, this is a signed message!'; const invalidSignature = '0xInvalidSignature'; - expect(() => { - verifySignature(message, invalidSignature, [MOCK_ADDRESS]); - }).toThrow(ErrorSignature.InvalidSignature); + const result = verifySignature(message, invalidSignature, [MOCK_ADDRESS]); + expect(result).toBe(false); }); }); @@ -69,9 +47,8 @@ describe('Signature utility', () => { const message = 'Hello, this is a signed message!'; const invalidSignature = '0xInvalidSignature'; - expect(() => { - recoverSigner(message, invalidSignature); - }).toThrow(ErrorSignature.InvalidSignature); + const signer = recoverSigner(message, invalidSignature); + expect(signer).toBe(''); }); it('should stringify message object if it is not already a string', async () => { diff --git a/packages/apps/reputation-oracle/server/src/common/utils/signature.ts b/packages/apps/reputation-oracle/server/src/common/utils/signature.ts index cec11ad4bc..a6d06bdef4 100644 --- a/packages/apps/reputation-oracle/server/src/common/utils/signature.ts +++ b/packages/apps/reputation-oracle/server/src/common/utils/signature.ts @@ -1,7 +1,4 @@ -import { HttpStatus } from '@nestjs/common'; import { ethers } from 'ethers'; -import { ErrorSignature } from '../constants/errors'; -import { ControlledError } from '../errors/controlled'; export function verifySignature( message: object | string, @@ -10,16 +7,9 @@ export function verifySignature( ): boolean { const signer = recoverSigner(message, signature); - if ( - !addresses.some((address) => address.toLowerCase() === signer.toLowerCase()) - ) { - throw new ControlledError( - ErrorSignature.SignatureNotVerified, - HttpStatus.CONFLICT, - ); - } - - return true; + return addresses.some( + (address) => address.toLowerCase() === signer.toLowerCase(), + ); } export async function signMessage( @@ -47,13 +37,30 @@ export function recoverSigner( try { return ethers.verifyMessage(message, signature); } catch (e) { - throw new ControlledError( - ErrorSignature.InvalidSignature, - HttpStatus.CONFLICT, - ); + return ''; } } export function generateNonce(): string { return Buffer.from(ethers.randomBytes(16)).toString('hex'); } + +type SignatureBody = { + from: string; + to: string; + contents: string; + nonce?: string; +}; +export function prepareSignatureBody({ + from, + to, + contents, + nonce, +}: SignatureBody): SignatureBody { + return { + from: from.toLowerCase(), + to: to.toLowerCase(), + contents, + nonce: nonce ?? undefined, + }; +} diff --git a/packages/apps/reputation-oracle/server/src/modules/auth/auth.controller.ts b/packages/apps/reputation-oracle/server/src/modules/auth/auth.controller.ts index 2620fe40bf..4a3105f660 100644 --- a/packages/apps/reputation-oracle/server/src/modules/auth/auth.controller.ts +++ b/packages/apps/reputation-oracle/server/src/modules/auth/auth.controller.ts @@ -36,7 +36,7 @@ import { HCaptchaGuard } from '../../common/guards/hcaptcha'; import { RequestWithUser } from '../../common/types'; import { TokenRepository } from './token.repository'; import { TokenType } from './token.entity'; -import { AuthControllerErrorsFilter } from './auth.error-filter'; +import { AuthControllerErrorsFilter } from './auth.error.filter'; @ApiTags('Auth') @ApiResponse({ diff --git a/packages/apps/reputation-oracle/server/src/modules/auth/auth.error-filter.ts b/packages/apps/reputation-oracle/server/src/modules/auth/auth.error.filter.ts similarity index 76% rename from packages/apps/reputation-oracle/server/src/modules/auth/auth.error-filter.ts rename to packages/apps/reputation-oracle/server/src/modules/auth/auth.error.filter.ts index 8be962b18b..64f6072ed2 100644 --- a/packages/apps/reputation-oracle/server/src/modules/auth/auth.error-filter.ts +++ b/packages/apps/reputation-oracle/server/src/modules/auth/auth.error.filter.ts @@ -9,16 +9,23 @@ import { Request, Response } from 'express'; import { AuthError, - DuplicatedUserError, + DuplicatedUserAddressError, + DuplicatedUserEmailError, InvalidOperatorSignupDataError, -} from './auth.errors'; +} from './auth.error'; type AuthControllerError = | AuthError - | DuplicatedUserError - | InvalidOperatorSignupDataError; + | DuplicatedUserEmailError + | InvalidOperatorSignupDataError + | DuplicatedUserAddressError; -@Catch(AuthError, DuplicatedUserError, InvalidOperatorSignupDataError) +@Catch( + AuthError, + DuplicatedUserEmailError, + DuplicatedUserAddressError, + InvalidOperatorSignupDataError, +) export class AuthControllerErrorsFilter implements ExceptionFilter { private logger = new Logger(AuthControllerErrorsFilter.name); catch(exception: AuthControllerError, host: ArgumentsHost) { @@ -28,7 +35,7 @@ export class AuthControllerErrorsFilter implements ExceptionFilter { let status = HttpStatus.UNAUTHORIZED; let logContext: string | undefined; - if (exception instanceof DuplicatedUserError) { + if (exception instanceof DuplicatedUserEmailError) { status = HttpStatus.CONFLICT; logContext = exception.email; } else if (exception instanceof InvalidOperatorSignupDataError) { diff --git a/packages/apps/reputation-oracle/server/src/modules/auth/auth.errors.ts b/packages/apps/reputation-oracle/server/src/modules/auth/auth.error.ts similarity index 80% rename from packages/apps/reputation-oracle/server/src/modules/auth/auth.errors.ts rename to packages/apps/reputation-oracle/server/src/modules/auth/auth.error.ts index 120c9b9594..f9c643dd5a 100644 --- a/packages/apps/reputation-oracle/server/src/modules/auth/auth.errors.ts +++ b/packages/apps/reputation-oracle/server/src/modules/auth/auth.error.ts @@ -5,6 +5,7 @@ export enum AuthErrorMessage { INVALID_REFRESH_TOKEN = 'Refresh token is not valid', REFRESH_TOKEN_EXPIRED = 'Refresh token expired', INVALID_WEB3_SIGNATURE = 'Invalid signature', + INVALID_ADDRESS = 'Invalid address', } export class AuthError extends BaseError { @@ -43,10 +44,18 @@ export class InvalidOperatorJobTypesError extends InvalidOperatorSignupDataError } } -export class DuplicatedUserError extends BaseError { +export class DuplicatedUserEmailError extends BaseError { constructor(public readonly email: string) { super( 'The email you are trying to use already exists. Please check that the email is correct or use a different email.', ); } } + +export class DuplicatedUserAddressError extends BaseError { + constructor(public readonly address: string) { + super( + 'The address you are trying to use already exists. Please, use a different address.', + ); + } +} 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 a026ddddbc..8c1f213618 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 @@ -7,7 +7,6 @@ import { UserRepository } from '../user/user.repository'; import { JwtService } from '@nestjs/jwt'; import { UserService } from '../user/user.service'; import { UserEntity } from '../user/user.entity'; -import { ErrorSignature, ErrorUser } from '../../common/constants/errors'; import { MOCK_ACCESS_TOKEN, MOCK_ADDRESS, @@ -24,12 +23,15 @@ import { TokenEntity, TokenType } from './token.entity'; import { v4 } from 'uuid'; import { UserStatus, Role } from '../../common/enums/user'; import { SendGridService } from '../sendgrid/sendgrid.service'; -import { HttpStatus } from '@nestjs/common'; import { SENDGRID_TEMPLATES, SERVICE_NAME } from '../../common/constants'; -import { generateNonce, signMessage } from '../../common/utils/signature'; +import { + generateNonce, + signMessage, + prepareSignatureBody, +} from '../../common/utils/signature'; import { Web3Service } from '../web3/web3.service'; import { ChainId, KVStoreClient, KVStoreUtils } from '@human-protocol/sdk'; -import { PrepareSignatureDto, SignatureBodyDto } from '../user/user.dto'; +import { PrepareSignatureDto } from '../user/user.dto'; import { SignatureType } from '../../common/enums/web3'; import { AuthConfigService } from '../../common/config/auth-config.service'; import { ServerConfigService } from '../../common/config/server-config.service'; @@ -38,18 +40,17 @@ import { ConfigService } from '@nestjs/config'; import { SiteKeyRepository } from '../user/site-key.repository'; import { HCaptchaService } from '../../integrations/hcaptcha/hcaptcha.service'; import { HCaptchaConfigService } from '../../common/config/hcaptcha-config.service'; -import { ControlledError } from '../../common/errors/controlled'; import { NetworkConfigService } from '../../common/config/network-config.service'; import { JobRequestType } from '../../common/enums'; import { AuthError, AuthErrorMessage, - DuplicatedUserError, + DuplicatedUserEmailError, InvalidOperatorFeeError, InvalidOperatorJobTypesError, InvalidOperatorRoleError, InvalidOperatorUrlError, -} from './auth.errors'; +} from './auth.error'; jest.mock('@human-protocol/sdk', () => ({ ...jest.requireActual('@human-protocol/sdk'), @@ -129,7 +130,6 @@ describe('AuthService', () => { { provide: Web3Service, useValue: { - prepareSignatureBody: jest.fn(), getSigner: jest.fn().mockReturnValue(signerMock), signMessage: jest.fn(), getOperatorAddress: jest.fn().mockReturnValue(MOCK_ADDRESS), @@ -263,7 +263,7 @@ describe('AuthService', () => { .mockResolvedValue(userEntity as any); await expect(authService.signup(userCreateDto)).rejects.toThrow( - new DuplicatedUserError(userEntity.email), + new DuplicatedUserEmailError(userEntity.email), ); expect(userRepository.findOneByEmail).toHaveBeenCalledWith( @@ -641,7 +641,7 @@ describe('AuthService', () => { let updateNonceMock: any; beforeEach(() => { - getByAddressMock = jest.spyOn(userService, 'getByAddress'); + getByAddressMock = jest.spyOn(userRepository, 'findOneByAddress'); updateNonceMock = jest.spyOn(userService, 'updateNonce'); jest.spyOn(authService, 'auth').mockResolvedValue({ @@ -677,7 +677,9 @@ describe('AuthService', () => { signature, }); - expect(userService.getByAddress).toHaveBeenCalledWith(MOCK_ADDRESS); + expect(userRepository.findOneByAddress).toHaveBeenCalledWith( + MOCK_ADDRESS, + ); expect(userService.updateNonce).toHaveBeenCalledWith(userEntity); expect(authService.auth).toHaveBeenCalledWith(userEntity); @@ -699,10 +701,7 @@ describe('AuthService', () => { signature: invalidSignature, }), ).rejects.toThrow( - new ControlledError( - ErrorSignature.SignatureNotVerified, - HttpStatus.CONFLICT, - ), + new AuthError(AuthErrorMessage.INVALID_WEB3_SIGNATURE), ); }); }); @@ -721,12 +720,12 @@ describe('AuthService', () => { nonce, }; - const preSignUpDataMock: SignatureBodyDto = { - from: MOCK_ADDRESS.toLowerCase(), - to: MOCK_ADDRESS.toLowerCase(), - contents: 'signup', - nonce: undefined, - }; + const preSignUpData = prepareSignatureBody({ + from: web3PreSignUpDto.address, + to: MOCK_ADDRESS, + contents: SignatureType.SIGNUP, + }); + let createUserMock: any; beforeEach(() => { @@ -738,39 +737,15 @@ describe('AuthService', () => { accessToken: MOCK_ACCESS_TOKEN, refreshToken: MOCK_REFRESH_TOKEN, }); - jest - .spyOn(web3Service as any, 'prepareSignatureBody') - .mockReturnValue(preSignUpDataMock); + .spyOn(userRepository, 'findOneByAddress') + .mockResolvedValue(null); }); afterEach(() => { jest.clearAllMocks(); }); - it('should prepare the signature body and return it', async () => { - const signatureType = SignatureType.SIGNUP; - const address = '0xCf88b3f1992458C2f5a229573c768D0E9F70C44e'; - - const expectedResult = { - from: address, - to: '0xCf88b3f1992458C2f5a229573c768D0E9F70C44e', - contents: 'signup', - nonce: undefined, - }; - - jest - .spyOn(userService, 'prepareSignatureBody') - .mockResolvedValue(expectedResult); - - const result = await userService.prepareSignatureBody( - signatureType, - address, - ); - - expect(result).toEqual(expectedResult); - }); - it('should create a new web3 user and return the token', async () => { (KVStoreClient.build as any).mockImplementationOnce(() => ({ set: jest.fn(), @@ -782,10 +757,7 @@ describe('AuthService', () => { .mockResolvedValueOnce(1) .mockResolvedValueOnce(JobRequestType.FORTUNE); - const signature = await signMessage( - preSignUpDataMock, - MOCK_PRIVATE_KEY, - ); + const signature = await signMessage(preSignUpData, MOCK_PRIVATE_KEY); const result = await authService.web3Signup({ address: web3PreSignUpDto.address, @@ -817,18 +789,13 @@ describe('AuthService', () => { signature: invalidSignature, }), ).rejects.toThrow( - new ControlledError( - ErrorSignature.SignatureNotVerified, - HttpStatus.CONFLICT, - ), + new AuthError(AuthErrorMessage.INVALID_WEB3_SIGNATURE), ); }); it('should throw if role is not in KVStore', async () => { KVStoreUtils.get = jest.fn().mockResolvedValueOnce(''); - const signature = await signMessage( - preSignUpDataMock, - MOCK_PRIVATE_KEY, - ); + + const signature = await signMessage(preSignUpData, MOCK_PRIVATE_KEY); await expect( authService.web3Signup({ @@ -840,10 +807,8 @@ describe('AuthService', () => { }); it('should throw if fee is not in KVStore', async () => { KVStoreUtils.get = jest.fn().mockResolvedValueOnce('Job Launcher'); - const signature = await signMessage( - preSignUpDataMock, - MOCK_PRIVATE_KEY, - ); + + const signature = await signMessage(preSignUpData, MOCK_PRIVATE_KEY); await expect( authService.web3Signup({ @@ -859,10 +824,7 @@ describe('AuthService', () => { .mockResolvedValueOnce('Job Launcher') .mockResolvedValueOnce('url'); - const signature = await signMessage( - preSignUpDataMock, - MOCK_PRIVATE_KEY, - ); + const signature = await signMessage(preSignUpData, MOCK_PRIVATE_KEY); await expect( authService.web3Signup({ @@ -879,10 +841,7 @@ describe('AuthService', () => { .mockResolvedValueOnce('url') .mockResolvedValueOnce(1); - const signature = await signMessage( - preSignUpDataMock, - MOCK_PRIVATE_KEY, - ); + const signature = await signMessage(preSignUpData, MOCK_PRIVATE_KEY); await expect( authService.web3Signup({ diff --git a/packages/apps/reputation-oracle/server/src/modules/auth/auth.service.ts b/packages/apps/reputation-oracle/server/src/modules/auth/auth.service.ts index e6b71665d1..1830848350 100644 --- a/packages/apps/reputation-oracle/server/src/modules/auth/auth.service.ts +++ b/packages/apps/reputation-oracle/server/src/modules/auth/auth.service.ts @@ -34,6 +34,7 @@ import { Role, } from '@human-protocol/sdk'; import { SignatureType, Web3Env } from '../../common/enums/web3'; +import { prepareSignatureBody } from '../../common/utils/signature'; import { UserRepository } from '../user/user.repository'; import { AuthConfigService } from '../../common/config/auth-config.service'; import { ServerConfigService } from '../../common/config/server-config.service'; @@ -43,12 +44,13 @@ import { SiteKeyType } from '../../common/enums'; import { AuthError, AuthErrorMessage, - DuplicatedUserError, + DuplicatedUserAddressError, + DuplicatedUserEmailError, InvalidOperatorFeeError, InvalidOperatorJobTypesError, InvalidOperatorRoleError, InvalidOperatorUrlError, -} from './auth.errors'; +} from './auth.error'; @Injectable() export class AuthService { @@ -82,7 +84,7 @@ export class AuthService { public async signup(data: UserCreateDto): Promise { const storedUser = await this.userRepository.findOneByEmail(data.email); if (storedUser) { - throw new DuplicatedUserError(data.email); + throw new DuplicatedUserEmailError(data.email); } const userEntity = await this.userService.create(data); @@ -337,10 +339,11 @@ export class AuthService { } public async web3Signup(data: Web3SignUpDto): Promise { - const preSignUpData = await this.userService.prepareSignatureBody( - SignatureType.SIGNUP, - data.address, - ); + const preSignUpData = prepareSignatureBody({ + from: data.address, + to: this.web3Service.getOperatorAddress(), + contents: SignatureType.SIGNUP, + }); const verified = verifySignature(preSignUpData, data.signature, [ data.address, @@ -409,6 +412,11 @@ export class AuthService { throw new InvalidOperatorJobTypesError(jobTypes); } + const user = await this.userRepository.findOneByAddress(data.address); + + if (user) { + throw new DuplicatedUserAddressError(data.address); + } const userEntity = await this.userService.createWeb3User(data.address); await kvstore.set(data.address.toLowerCase(), OperatorStatus.ACTIVE); @@ -417,16 +425,21 @@ export class AuthService { } public async web3Signin(data: Web3SignInDto): Promise { - const userEntity = await this.userService.getByAddress(data.address); + const userEntity = await this.userRepository.findOneByAddress(data.address); - const verified = verifySignature( - await this.userService.prepareSignatureBody( - SignatureType.SIGNIN, - data.address, - ), - data.signature, - [data.address], - ); + if (!userEntity) { + throw new AuthError(AuthErrorMessage.INVALID_ADDRESS); + } + + const preSigninData = prepareSignatureBody({ + from: data.address, + to: this.web3Service.getOperatorAddress(), + contents: SignatureType.SIGNIN, + nonce: (await this.userRepository.findOneByAddress(data.address))?.nonce, + }); + const verified = verifySignature(preSigninData, data.signature, [ + data.address, + ]); if (!verified) { throw new AuthError(AuthErrorMessage.INVALID_WEB3_SIGNATURE); diff --git a/packages/apps/reputation-oracle/server/src/modules/credentials/credential.service.spec.ts b/packages/apps/reputation-oracle/server/src/modules/credentials/credential.service.spec.ts index 1bf34f7f1c..2450233fcf 100644 --- a/packages/apps/reputation-oracle/server/src/modules/credentials/credential.service.spec.ts +++ b/packages/apps/reputation-oracle/server/src/modules/credentials/credential.service.spec.ts @@ -47,7 +47,6 @@ describe('CredentialService', () => { useValue: { getSigner: jest.fn().mockReturnValue({ address: MOCK_ADDRESS }), signMessage: jest.fn(), - prepareSignatureBody: jest.fn(), }, }, { diff --git a/packages/apps/reputation-oracle/server/src/modules/credentials/credential.service.ts b/packages/apps/reputation-oracle/server/src/modules/credentials/credential.service.ts index 829369808e..b97103405e 100644 --- a/packages/apps/reputation-oracle/server/src/modules/credentials/credential.service.ts +++ b/packages/apps/reputation-oracle/server/src/modules/credentials/credential.service.ts @@ -4,12 +4,7 @@ import { CredentialRepository } from './credential.repository'; import { CredentialEntity } from './credential.entity'; import { CredentialStatus } from '../../common/enums/credential'; import { Web3Service } from '../web3/web3.service'; -import { verifySignature } from '../../common/utils/signature'; -import { ErrorSignature } from '../../common/constants/errors'; -import { ChainId, KVStoreClient } from '@human-protocol/sdk'; -import { SignatureType, Web3Env } from '../../common/enums/web3'; import { Web3ConfigService } from '../../common/config/web3-config.service'; -import { EscrowClient } from '@human-protocol/sdk'; import { UserService } from '../user/user.service'; import { ControlledError } from '../../common/errors/controlled'; @@ -17,12 +12,7 @@ import { ControlledError } from '../../common/errors/controlled'; export class CredentialService { private readonly logger = new Logger(CredentialService.name); - constructor( - private readonly credentialRepository: CredentialRepository, - private readonly web3Service: Web3Service, - private readonly userService: UserService, - private readonly web3ConfigService: Web3ConfigService, - ) {} + constructor(private readonly credentialRepository: CredentialRepository) {} /** * Create a new credential based on provided data. @@ -117,55 +107,4 @@ export class CredentialService { this.logger.log(`Credential ${reference} validated successfully.`); } - - public async addCredentialOnChain( - reference: string, - workerAddress: string, - signature: string, - chainId: ChainId, - escrowAddress: string, - ): Promise { - let signer = this.web3Service.getSigner(chainId); - const escrowClient = await EscrowClient.build(signer); - - const reputationOracleAddress = - await escrowClient.getReputationOracleAddress(escrowAddress); - - const signatureBody = await this.userService.prepareSignatureBody( - SignatureType.CERTIFICATE_AUTHENTICATION, - reputationOracleAddress, - { - reference: reference, - workerAddress: workerAddress, - }, - ); - - if (!verifySignature(signatureBody.contents, signature, [workerAddress])) { - throw new ControlledError( - ErrorSignature.InvalidSignature, - HttpStatus.UNAUTHORIZED, - ); - } - - const currentWeb3Env = this.web3ConfigService.env; - if (currentWeb3Env === Web3Env.MAINNET) { - signer = this.web3Service.getSigner(ChainId.POLYGON); - } else if (currentWeb3Env === Web3Env.TESTNET) { - signer = this.web3Service.getSigner(ChainId.POLYGON_AMOY); - } else { - signer = this.web3Service.getSigner(ChainId.LOCALHOST); - } - const kvstore = await KVStoreClient.build(signer); - const key = `${reference}-${reputationOracleAddress}`; - const value = JSON.stringify({ - signature, - contents: signatureBody.contents, - }); - - await kvstore.set(key, value); - - this.logger.log( - `Credential added to the blockchain for reference: ${reference}`, - ); - } } diff --git a/packages/apps/reputation-oracle/server/src/modules/user/user.controller.ts b/packages/apps/reputation-oracle/server/src/modules/user/user.controller.ts index b8c08a7d33..e1917f9eda 100644 --- a/packages/apps/reputation-oracle/server/src/modules/user/user.controller.ts +++ b/packages/apps/reputation-oracle/server/src/modules/user/user.controller.ts @@ -14,6 +14,7 @@ import { UseGuards, Request, Get, + UseFilters, } from '@nestjs/common'; import { DisableOperatorDto, @@ -29,15 +30,25 @@ import { import { JwtAuthGuard } from '../../common/guards'; import { HCaptchaGuard } from '../../common/guards/hcaptcha'; import { RequestWithUser } from '../../common/types'; +import { prepareSignatureBody } from '../../common/utils/signature'; import { UserService } from './user.service'; import { Public } from '../../common/decorators'; import { KycSignedAddressDto } from '../kyc/kyc.dto'; +import { Web3Service } from '../web3/web3.service'; +import { UserRepository } from './user.repository'; +import { SignatureType } from '../../common/enums/web3'; +import { UserErrorFilter } from './user.error.filter'; @ApiTags('User') @Controller('/user') +@UseFilters(UserErrorFilter) @ApiBearerAuth() export class UserController { - constructor(private readonly userService: UserService) {} + constructor( + private readonly userService: UserService, + private readonly web3Service: Web3Service, + private readonly userRepository: UserRepository, + ) {} @Post('/register-labeler') @HttpCode(200) @@ -170,7 +181,16 @@ export class UserController { public async prepareSignature( @Body() data: PrepareSignatureDto, ): Promise { - return await this.userService.prepareSignatureBody(data.type, data.address); + let nonce; + if (data.type === SignatureType.SIGNIN) { + nonce = (await this.userRepository.findOneByAddress(data.address))?.nonce; + } + return prepareSignatureBody({ + from: data.address, + to: this.web3Service.getOperatorAddress(), + contents: data.type, + nonce, + }); } @Post('/exchange-oracle-registration') diff --git a/packages/apps/reputation-oracle/server/src/modules/user/user.dto.ts b/packages/apps/reputation-oracle/server/src/modules/user/user.dto.ts index 1db6ffc89e..f282b53f3e 100644 --- a/packages/apps/reputation-oracle/server/src/modules/user/user.dto.ts +++ b/packages/apps/reputation-oracle/server/src/modules/user/user.dto.ts @@ -93,8 +93,9 @@ export class SignatureBodyDto { public contents: string; @ApiProperty() + @IsOptional() @IsString() - public nonce: string | undefined; + public nonce?: string | undefined; } export class PrepareSignatureDto { diff --git a/packages/apps/reputation-oracle/server/src/modules/user/user.error.filter.ts b/packages/apps/reputation-oracle/server/src/modules/user/user.error.filter.ts new file mode 100644 index 0000000000..bbd2556429 --- /dev/null +++ b/packages/apps/reputation-oracle/server/src/modules/user/user.error.filter.ts @@ -0,0 +1,42 @@ +import { + ExceptionFilter, + Catch, + ArgumentsHost, + HttpStatus, + Logger, +} from '@nestjs/common'; +import { Request, Response } from 'express'; + +import { + UserError, + DuplicatedWalletAddressError, + InvalidWeb3SignatureError, +} from './user.error'; + +type UserControllerError = + | UserError + | DuplicatedWalletAddressError + | InvalidWeb3SignatureError; + +@Catch(UserError, DuplicatedWalletAddressError, InvalidWeb3SignatureError) +export class UserErrorFilter implements ExceptionFilter { + private logger = new Logger(UserErrorFilter.name); + catch(exception: UserControllerError, host: ArgumentsHost) { + const ctx = host.switchToHttp(); + const response = ctx.getResponse(); + const request = ctx.getRequest(); + let status = HttpStatus.BAD_REQUEST; + + if (exception instanceof DuplicatedWalletAddressError) { + status = HttpStatus.CONFLICT; + } + + this.logger.error(exception.message, exception.stack, exception.userId); + + return response.status(status).json({ + message: exception.message, + timestamp: new Date().toISOString(), + path: request.url, + }); + } +} diff --git a/packages/apps/reputation-oracle/server/src/modules/user/user.error.ts b/packages/apps/reputation-oracle/server/src/modules/user/user.error.ts new file mode 100644 index 0000000000..4a7aa3a515 --- /dev/null +++ b/packages/apps/reputation-oracle/server/src/modules/user/user.error.ts @@ -0,0 +1,35 @@ +import { BaseError } from '../../common/errors/base'; + +export enum UserErrorMessage { + INVALID_ROLE = 'Invalid user role', + MISSING_ADDRESS = 'Wallet address is missing', + ADDRESS_EXISTS = 'Wallet address is already assigned', + KYC_NOT_APPROVED = 'KYC not approved', + LABELING_ENABLE_FAILED = 'Failed to enable hCaptcha labeling', + OPERATOR_ALREADY_ACTIVE = 'Operator status is already active', + OPERATOR_NOT_ACTIVE = 'Operator status is not active', +} + +export class UserError extends BaseError { + userId: number; + constructor(message: UserErrorMessage, userId: number) { + super(message); + this.userId = userId; + } +} + +export class DuplicatedWalletAddressError extends BaseError { + userId: number; + constructor(userId: number, address: string) { + super(`Wallet address already exists: ${address}`); + this.userId = userId; + } +} + +export class InvalidWeb3SignatureError extends BaseError { + userId: number; + constructor(userId: number, address: string) { + super(`Invalid web3 signature provided for: ${address}`); + this.userId = userId; + } +} diff --git a/packages/apps/reputation-oracle/server/src/modules/user/user.service.spec.ts b/packages/apps/reputation-oracle/server/src/modules/user/user.service.spec.ts index 75f05289c9..95b41b63dd 100644 --- a/packages/apps/reputation-oracle/server/src/modules/user/user.service.spec.ts +++ b/packages/apps/reputation-oracle/server/src/modules/user/user.service.spec.ts @@ -10,7 +10,10 @@ import { UserStatus, Role, } from '../../common/enums/user'; -import { signMessage, verifySignature } from '../../common/utils/signature'; +import { + signMessage, + prepareSignatureBody, +} from '../../common/utils/signature'; import { MOCK_ADDRESS, MOCK_EMAIL, @@ -28,13 +31,12 @@ import { SiteKeyEntity } from './site-key.entity'; import { HCaptchaService } from '../../integrations/hcaptcha/hcaptcha.service'; import { HCaptchaConfigService } from '../../common/config/hcaptcha-config.service'; import { HttpService } from '@nestjs/axios'; -import { ControlledError } from '../../common/errors/controlled'; import { - ErrorOperator, - ErrorSignature, - ErrorUser, -} from '../../common/constants/errors'; -import { BadRequestException, HttpStatus } from '@nestjs/common'; + UserError, + UserErrorMessage, + DuplicatedWalletAddressError, + InvalidWeb3SignatureError, +} from '../../modules/user/user.error'; import { NetworkConfigService } from '../../common/config/network-config.service'; import { SiteKeyType } from '../../common/enums'; @@ -90,7 +92,6 @@ describe('UserService', () => { useValue: { getSigner: jest.fn().mockReturnValue(signerMock), signMessage: jest.fn(), - prepareSignatureBody: jest.fn(), getOperatorAddress: jest .fn() .mockReturnValue(MOCK_ADDRESS.toLowerCase()), @@ -164,25 +165,6 @@ describe('UserService', () => { }); }); - describe('getByAddress', () => { - it('should return the user entity if the address exists', async () => { - const address = '0x0755D4d722a4a201c1C5A4B5E614D913e7747b36'; - const userEntity: Partial = { - id: 1, - evmAddress: address, - }; - - jest - .spyOn(userRepository, 'findOneByAddress') - .mockResolvedValue(userEntity as UserEntity); - - const result = await userService.getByAddress(address); - - expect(userRepository.findOneByAddress).toHaveBeenCalledWith(address); - expect(result).toBe(userEntity); - }); - }); - describe('registerLabeler', () => { it('should register labeler successfully and return site key', async () => { const userEntity: DeepPartial = { @@ -230,7 +212,9 @@ describe('UserService', () => { await expect( userService.registerLabeler(userEntity as UserEntity), - ).rejects.toThrow(new BadRequestException(ErrorUser.InvalidType)); + ).rejects.toThrow( + new UserError(UserErrorMessage.INVALID_ROLE, userEntity.id as number), + ); }); it('should throw KycNotApproved if user KYC status is not approved', async () => { @@ -248,7 +232,12 @@ describe('UserService', () => { await expect( userService.registerLabeler(userEntity as UserEntity), - ).rejects.toThrow(new BadRequestException(ErrorUser.KycNotApproved)); + ).rejects.toThrow( + new UserError( + UserErrorMessage.KYC_NOT_APPROVED, + userEntity.id as number, + ), + ); }); it('should return site key if user is already registered as a labeler', async () => { @@ -298,9 +287,9 @@ describe('UserService', () => { await expect( userService.registerLabeler(userEntity as UserEntity), ).rejects.toThrow( - new ControlledError( - ErrorUser.LabelingEnableFailed, - HttpStatus.BAD_REQUEST, + new UserError( + UserErrorMessage.LABELING_ENABLE_FAILED, + userEntity.id as number, ), ); }); @@ -324,9 +313,9 @@ describe('UserService', () => { await expect( userService.registerLabeler(userEntity as UserEntity), ).rejects.toThrow( - new ControlledError( - ErrorUser.LabelingEnableFailed, - HttpStatus.BAD_REQUEST, + new UserError( + UserErrorMessage.LABELING_ENABLE_FAILED, + userEntity.id as number, ), ); }); @@ -348,9 +337,9 @@ describe('UserService', () => { await expect( userService.registerLabeler(userEntity as UserEntity), ).rejects.toThrow( - new ControlledError( - ErrorUser.NoWalletAddresRegistered, - HttpStatus.BAD_REQUEST, + new UserError( + UserErrorMessage.MISSING_ADDRESS, + userEntity.id as number, ), ); }); @@ -376,37 +365,34 @@ describe('UserService', () => { save: jest.fn(), }; - const address = '0x123'; - const signature = 'valid-signature'; + const signature = await signMessage( + prepareSignatureBody({ + from: MOCK_ADDRESS, + to: MOCK_ADDRESS, + contents: SignatureType.REGISTER_ADDRESS, + nonce: undefined, + }), + MOCK_PRIVATE_KEY, + ); // Mock web3Service methods web3Service.getSigner = jest.fn().mockReturnValue({ - signMessage: jest.fn().mockResolvedValue('signature'), + signMessage: jest.fn().mockResolvedValue(signature), }); - // Mock signature verification - jest.spyOn(userService, 'prepareSignatureBody').mockResolvedValue({ - from: address, - to: 'operator-address', - contents: 'register-address', - nonce: undefined, - }); - - (verifySignature as jest.Mock) = jest.fn().mockReturnValue(true); - const result = await userService.registerAddress( userEntity as UserEntity, - { address, signature }, + { address: MOCK_ADDRESS, signature }, ); expect(userRepository.updateOne).toHaveBeenCalledWith(userEntity); expect(result).toEqual({ key: `KYC-${MOCK_ADDRESS.toLowerCase()}`, - value: 'signature', + value: signature, }); }); - it("should fail if address is different from user's evm address", async () => { + it('should fail if user already have a wallet address', async () => { const userEntity: Partial = { id: 1, email: '', @@ -422,7 +408,7 @@ describe('UserService', () => { signature, }), ).rejects.toThrow( - new ControlledError(ErrorUser.AlreadyAssigned, HttpStatus.BAD_REQUEST), + new UserError(UserErrorMessage.ADDRESS_EXISTS, userEntity.id as number), ); }); @@ -445,7 +431,10 @@ describe('UserService', () => { signature, }), ).rejects.toThrow( - new ControlledError(ErrorUser.KycNotApproved, HttpStatus.BAD_REQUEST), + new UserError( + UserErrorMessage.KYC_NOT_APPROVED, + userEntity.id as number, + ), ); }); @@ -473,7 +462,7 @@ describe('UserService', () => { signature, }), ).rejects.toThrow( - new ControlledError(ErrorUser.AlreadyAssigned, HttpStatus.BAD_REQUEST), + new UserError(UserErrorMessage.ADDRESS_EXISTS, userEntity.id as number), ); }); @@ -502,10 +491,7 @@ describe('UserService', () => { signature, }), ).rejects.toThrow( - new ControlledError( - ErrorUser.DuplicatedAddress, - HttpStatus.BAD_REQUEST, - ), + new DuplicatedWalletAddressError(userEntity.id as number, address), ); }); @@ -528,54 +514,29 @@ describe('UserService', () => { signMessage: jest.fn().mockResolvedValue('signature'), }); - // Mock signature verification - jest.spyOn(userService, 'prepareSignatureBody').mockResolvedValue({ - from: address, - to: 'operator-address', - contents: 'register-address', - nonce: undefined, - }); - - (verifySignature as jest.Mock) = jest.fn().mockImplementation(() => { - throw new ControlledError( - ErrorSignature.SignatureNotVerified, - HttpStatus.CONFLICT, - ); - }); - await expect( userService.registerAddress(userEntity as UserEntity, { address, signature, }), ).rejects.toThrow( - new ControlledError( - ErrorSignature.SignatureNotVerified, - HttpStatus.CONFLICT, - ), + new InvalidWeb3SignatureError(userEntity.id as number, address), ); }); }); describe('enableOperator', () => { - const signatureBody: SignatureBodyDto = { + const signatureBody = prepareSignatureBody({ from: MOCK_ADDRESS, to: MOCK_ADDRESS, - contents: 'enable-operator', - nonce: undefined, - }; + contents: SignatureType.ENABLE_OPERATOR, + }); const userEntity: DeepPartial = { id: 1, evmAddress: MOCK_ADDRESS, }; - beforeEach(() => { - jest - .spyOn(userService as any, 'prepareSignatureBody') - .mockReturnValue(signatureBody); - }); - afterEach(() => { jest.resetAllMocks(); }); @@ -598,10 +559,6 @@ describe('UserService', () => { ); expect(result).toBe(undefined); - expect(userService.prepareSignatureBody).toHaveBeenCalledWith( - SignatureType.ENABLE_OPERATOR, - MOCK_ADDRESS, - ); expect(web3Service.getSigner).toHaveBeenCalledWith(ChainId.POLYGON_AMOY); expect(KVStoreUtils.get).toHaveBeenCalledWith( @@ -625,13 +582,6 @@ describe('UserService', () => { KVStoreUtils.get = jest.fn().mockResolvedValue(OperatorStatus.INACTIVE); - (verifySignature as jest.Mock) = jest.fn().mockImplementation(() => { - throw new ControlledError( - ErrorSignature.SignatureNotVerified, - HttpStatus.CONFLICT, - ); - }); - const invalidSignature = await signMessage( 'invalid message', MOCK_PRIVATE_KEY, @@ -640,9 +590,9 @@ describe('UserService', () => { await expect( userService.enableOperator(userEntity as any, invalidSignature), ).rejects.toThrow( - new ControlledError( - ErrorSignature.SignatureNotVerified, - HttpStatus.BAD_REQUEST, + new InvalidWeb3SignatureError( + userEntity.id as number, + userEntity.evmAddress as string, ), ); }); @@ -655,33 +605,26 @@ describe('UserService', () => { await expect( userService.enableOperator(userEntity as any, signature), ).rejects.toThrow( - new ControlledError( - ErrorOperator.OperatorAlreadyActive, - HttpStatus.BAD_REQUEST, + new UserError( + UserErrorMessage.OPERATOR_ALREADY_ACTIVE, + userEntity.id as number, ), ); }); }); describe('disableOperator', () => { - const signatureBody: SignatureBodyDto = { + const signatureBody = prepareSignatureBody({ from: MOCK_ADDRESS, to: MOCK_ADDRESS, - contents: 'disable-operator', - nonce: undefined, - }; + contents: SignatureType.DISABLE_OPERATOR, + }); const userEntity: DeepPartial = { id: 1, evmAddress: MOCK_ADDRESS, }; - beforeEach(() => { - jest - .spyOn(userService as any, 'prepareSignatureBody') - .mockReturnValue(signatureBody); - }); - afterEach(() => { jest.resetAllMocks(); }); @@ -704,10 +647,6 @@ describe('UserService', () => { ); expect(result).toBe(undefined); - expect(userService.prepareSignatureBody).toHaveBeenCalledWith( - SignatureType.DISABLE_OPERATOR, - MOCK_ADDRESS, - ); expect(web3Service.getSigner).toHaveBeenCalledWith(ChainId.POLYGON_AMOY); expect(KVStoreUtils.get).toHaveBeenCalledWith( @@ -730,12 +669,6 @@ describe('UserService', () => { ); KVStoreUtils.get = jest.fn().mockResolvedValue(OperatorStatus.ACTIVE); - (verifySignature as jest.Mock) = jest.fn().mockImplementation(() => { - throw new ControlledError( - ErrorSignature.SignatureNotVerified, - HttpStatus.CONFLICT, - ); - }); const invalidSignature = await signMessage( 'invalid message', @@ -745,23 +678,23 @@ describe('UserService', () => { await expect( userService.disableOperator(userEntity as any, invalidSignature), ).rejects.toThrow( - new ControlledError( - ErrorSignature.SignatureNotVerified, - HttpStatus.BAD_REQUEST, + new InvalidWeb3SignatureError( + userEntity.id as number, + userEntity.evmAddress as string, ), ); }); - it('should throw BadRequestException if operator already disabled in KVStore', async () => { + it('should throw UserErrorMessage.OPERATOR_NOT_ACTIVE if operator already disabled in KVStore', async () => { KVStoreUtils.get = jest.fn().mockResolvedValue(OperatorStatus.INACTIVE); const signature = await signMessage(signatureBody, MOCK_PRIVATE_KEY); await expect( userService.disableOperator(userEntity as any, signature), ).rejects.toThrow( - new ControlledError( - ErrorOperator.OperatorNotActive, - HttpStatus.BAD_REQUEST, + new UserError( + UserErrorMessage.OPERATOR_NOT_ACTIVE, + userEntity.id as number, ), ); }); @@ -780,10 +713,11 @@ describe('UserService', () => { nonce: undefined, }; - const result = await userService.prepareSignatureBody( - SignatureType.SIGNUP, - MOCK_ADDRESS, - ); + const result = prepareSignatureBody({ + from: MOCK_ADDRESS, + to: MOCK_ADDRESS, + contents: SignatureType.SIGNUP, + }); expect(result).toStrictEqual(expectedData); }); @@ -792,14 +726,15 @@ describe('UserService', () => { const expectedData: SignatureBodyDto = { from: MOCK_ADDRESS.toLowerCase(), to: MOCK_ADDRESS.toLowerCase(), - contents: 'register-address', + contents: 'register_address', nonce: undefined, }; - const result = await userService.prepareSignatureBody( - SignatureType.REGISTER_ADDRESS, - MOCK_ADDRESS, - ); + const result = prepareSignatureBody({ + from: MOCK_ADDRESS, + to: MOCK_ADDRESS, + contents: SignatureType.REGISTER_ADDRESS, + }); expect(result).toStrictEqual(expectedData); }); diff --git a/packages/apps/reputation-oracle/server/src/modules/user/user.service.ts b/packages/apps/reputation-oracle/server/src/modules/user/user.service.ts index 8da0e63bac..9b86af43ff 100644 --- a/packages/apps/reputation-oracle/server/src/modules/user/user.service.ts +++ b/packages/apps/reputation-oracle/server/src/modules/user/user.service.ts @@ -1,11 +1,5 @@ -import { - BadRequestException, - HttpStatus, - Injectable, - Logger, -} from '@nestjs/common'; +import { Injectable, Logger } from '@nestjs/common'; import * as bcrypt from 'bcrypt'; -import { ErrorOperator, ErrorUser } from '../../common/constants/errors'; import { KycStatus, OperatorStatus, @@ -14,12 +8,7 @@ import { } from '../../common/enums/user'; import { generateNonce, verifySignature } from '../../common/utils/signature'; import { UserEntity } from './user.entity'; -import { - RegistrationInExchangeOracleDto, - RegisterAddressRequestDto, - SignatureBodyDto, - UserCreateDto, -} from './user.dto'; +import { RegisterAddressRequestDto, UserCreateDto } from './user.dto'; import { UserRepository } from './user.repository'; import { ValidatePasswordDto } from '../auth/auth.dto'; import { Web3Service } from '../web3/web3.service'; @@ -30,11 +19,17 @@ import { SiteKeyEntity } from './site-key.entity'; import { SiteKeyRepository } from './site-key.repository'; import { SiteKeyType } from '../../common/enums'; import { HCaptchaService } from '../../integrations/hcaptcha/hcaptcha.service'; -import { ControlledError } from '../../common/errors/controlled'; import { HCaptchaConfigService } from '../../common/config/hcaptcha-config.service'; import { NetworkConfigService } from '../../common/config/network-config.service'; +import { prepareSignatureBody } from '../../common/utils/signature'; import { KycSignedAddressDto } from '../kyc/kyc.dto'; import { ethers } from 'ethers'; +import { + UserError, + UserErrorMessage, + DuplicatedWalletAddressError, + InvalidWeb3SignatureError, +} from './user.error'; @Injectable() export class UserService { @@ -81,8 +76,6 @@ export class UserService { } public async createWeb3User(address: string): Promise { - await this.checkEvmAddress(address); - const newUser = new UserEntity(); newUser.evmAddress = address.toLowerCase(); newUser.nonce = generateNonce(); @@ -93,28 +86,6 @@ export class UserService { return newUser; } - public async checkEvmAddress(address: string): Promise { - const userEntity = await this.userRepository.findOneByAddress(address); - - if (userEntity) { - this.logger.log(ErrorUser.AccountCannotBeRegistered, UserService.name); - throw new ControlledError( - ErrorUser.AccountCannotBeRegistered, - HttpStatus.CONFLICT, - ); - } - } - - public async getByAddress(address: string): Promise { - const userEntity = await this.userRepository.findOneByAddress(address); - - if (!userEntity) { - throw new ControlledError(ErrorUser.NotFound, HttpStatus.NOT_FOUND); - } - - return userEntity; - } - public async updateNonce(userEntity: UserEntity): Promise { userEntity.nonce = generateNonce(); return this.userRepository.updateOne(userEntity); @@ -122,18 +93,15 @@ export class UserService { public async registerLabeler(user: UserEntity): Promise { if (user.role !== Role.WORKER) { - throw new BadRequestException(ErrorUser.InvalidType); + throw new UserError(UserErrorMessage.INVALID_ROLE, user.id); } if (!user.evmAddress) { - throw new ControlledError( - ErrorUser.NoWalletAddresRegistered, - HttpStatus.BAD_REQUEST, - ); + throw new UserError(UserErrorMessage.MISSING_ADDRESS, user.id); } if (user.kyc?.status !== KycStatus.APPROVED) { - throw new BadRequestException(ErrorUser.KycNotApproved); + throw new UserError(UserErrorMessage.KYC_NOT_APPROVED, user.id); } if (user.siteKeys && user.siteKeys.length > 0) { @@ -154,10 +122,7 @@ export class UserService { }); if (!registeredLabeler) { - throw new ControlledError( - ErrorUser.LabelingEnableFailed, - HttpStatus.BAD_REQUEST, - ); + throw new UserError(UserErrorMessage.LABELING_ENABLE_FAILED, user.id); } // Retrieve labeler site key from hcaptcha foundation @@ -165,10 +130,7 @@ export class UserService { email: user.email, }); if (!labelerData || !labelerData.sitekeys.length) { - throw new ControlledError( - ErrorUser.LabelingEnableFailed, - HttpStatus.BAD_REQUEST, - ); + throw new UserError(UserErrorMessage.LABELING_ENABLE_FAILED, user.id); } const siteKey = labelerData.sitekeys[0].sitekey; @@ -186,43 +148,42 @@ export class UserService { user: UserEntity, data: RegisterAddressRequestDto, ): Promise { - data.address = data.address.toLowerCase(); + const lowercasedAddress = data.address.toLocaleLowerCase(); if (user.evmAddress) { - throw new ControlledError( - ErrorUser.AlreadyAssigned, - HttpStatus.BAD_REQUEST, - ); + throw new UserError(UserErrorMessage.ADDRESS_EXISTS, user.id); } if (user.kyc?.status !== KycStatus.APPROVED) { - throw new ControlledError( - ErrorUser.KycNotApproved, - HttpStatus.BAD_REQUEST, - ); + throw new UserError(UserErrorMessage.KYC_NOT_APPROVED, user.id); } - const dbUser = await this.userRepository.findOneByAddress(data.address); + const dbUser = + await this.userRepository.findOneByAddress(lowercasedAddress); if (dbUser) { - throw new ControlledError( - ErrorUser.DuplicatedAddress, - HttpStatus.BAD_REQUEST, - ); + throw new DuplicatedWalletAddressError(user.id, lowercasedAddress); } // Prepare signed data and verify the signature - const signedData = await this.prepareSignatureBody( - SignatureType.REGISTER_ADDRESS, - data.address, - ); - verifySignature(signedData, data.signature, [data.address]); + const signedData = prepareSignatureBody({ + from: lowercasedAddress, + to: this.web3Service.getOperatorAddress(), + contents: SignatureType.REGISTER_ADDRESS, + }); + const verified = verifySignature(signedData, data.signature, [ + lowercasedAddress, + ]); + + if (!verified) { + throw new InvalidWeb3SignatureError(user.id, lowercasedAddress); + } - user.evmAddress = data.address.toLowerCase(); + user.evmAddress = lowercasedAddress; await this.userRepository.updateOne(user); const signature = await this.web3Service .getSigner(this.networkConfigService.networks[0].chainId) - .signMessage(data.address); + .signMessage(lowercasedAddress); return { key: `KYC-${this.web3Service.getOperatorAddress()}`, @@ -234,12 +195,17 @@ export class UserService { user: UserEntity, signature: string, ): Promise { - const signedData = await this.prepareSignatureBody( - SignatureType.ENABLE_OPERATOR, - user.evmAddress, - ); + const signedData = prepareSignatureBody({ + from: user.evmAddress, + to: this.web3Service.getOperatorAddress(), + contents: SignatureType.ENABLE_OPERATOR, + }); - verifySignature(signedData, signature, [user.evmAddress]); + const verified = verifySignature(signedData, signature, [user.evmAddress]); + + if (!verified) { + throw new InvalidWeb3SignatureError(user.id, user.evmAddress); + } let chainId: ChainId; const currentWeb3Env = this.web3ConfigService.env; @@ -260,10 +226,7 @@ export class UserService { } catch {} if (status === OperatorStatus.ACTIVE) { - throw new ControlledError( - ErrorOperator.OperatorAlreadyActive, - HttpStatus.BAD_REQUEST, - ); + throw new UserError(UserErrorMessage.OPERATOR_ALREADY_ACTIVE, user.id); } await kvstore.set(user.evmAddress.toLowerCase(), OperatorStatus.ACTIVE); @@ -273,12 +236,17 @@ export class UserService { user: UserEntity, signature: string, ): Promise { - const signedData = await this.prepareSignatureBody( - SignatureType.DISABLE_OPERATOR, - user.evmAddress, - ); + const signedData = prepareSignatureBody({ + from: user.evmAddress, + to: this.web3Service.getOperatorAddress(), + contents: SignatureType.DISABLE_OPERATOR, + }); + + const verified = verifySignature(signedData, signature, [user.evmAddress]); - verifySignature(signedData, signature, [user.evmAddress]); + if (!verified) { + throw new InvalidWeb3SignatureError(user.id, user.evmAddress); + } let chainId: ChainId; const currentWeb3Env = this.web3ConfigService.env; @@ -301,67 +269,12 @@ export class UserService { ); if (status === OperatorStatus.INACTIVE) { - throw new ControlledError( - ErrorOperator.OperatorNotActive, - HttpStatus.BAD_REQUEST, - ); + throw new UserError(UserErrorMessage.OPERATOR_NOT_ACTIVE, user.id); } await kvstore.set(user.evmAddress.toLowerCase(), OperatorStatus.INACTIVE); } - public async prepareSignatureBody( - type: SignatureType, - address: string, - additionalData?: { reference?: string; workerAddress?: string }, - ): Promise { - let content: string; - let nonce: string | undefined; - switch (type) { - case SignatureType.SIGNUP: - content = 'signup'; - break; - case SignatureType.SIGNIN: - content = 'signin'; - nonce = (await this.userRepository.findOneByAddress(address))?.nonce; - break; - case SignatureType.ENABLE_OPERATOR: - content = 'enable-operator'; - break; - case SignatureType.DISABLE_OPERATOR: - content = 'disable-operator'; - break; - case SignatureType.CERTIFICATE_AUTHENTICATION: - if ( - !additionalData || - !additionalData.reference || - !additionalData.workerAddress - ) { - throw new ControlledError( - 'Missing necessary credential data', - HttpStatus.BAD_REQUEST, - ); - } - content = JSON.stringify({ - reference: additionalData.reference, - workerJson: additionalData.workerAddress.toLowerCase(), - }); - break; - case SignatureType.REGISTER_ADDRESS: - content = 'register-address'; - break; - default: - throw new ControlledError('Type not allowed', HttpStatus.BAD_REQUEST); - } - - return { - from: address.toLowerCase(), - to: this.web3Service.getOperatorAddress().toLowerCase(), - contents: content, - nonce: nonce ?? undefined, - }; - } - public async registrationInExchangeOracle( user: UserEntity, oracleAddress: string, From 5fe5b5690ef399b781b93f835a767cd11be4283a Mon Sep 17 00:00:00 2001 From: portuu3 <61605646+portuu3@users.noreply.github.com> Date: Wed, 29 Jan 2025 15:54:58 +0100 Subject: [PATCH 29/44] update subgraph ids (#3055) --- .../human_protocol_sdk/constants.py | 12 ++++++------ .../typescript/human-protocol-sdk/src/constants.ts | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/constants.py b/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/constants.py index 732e16accd..802ec9e1a5 100644 --- a/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/constants.py +++ b/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/constants.py @@ -36,7 +36,7 @@ class LeaderCategory(Enum): "https://api.studio.thegraph.com/query/74256/ethereum/version/latest" ), "subgraph_url_api_key": ( - "https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmWeaETaRqxX2eiFpPPpdn3q75fUKPzXzq32HR1MQPHsQh" + "https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/Qmc8ikCj9y2uvYGTeELkM9wybPdcD2PgpW4tjJMwnogLrq" ), "hmt_address": "0xd1ba9BAC957322D6e8c07a160a3A8dA11A0d2867", "factory_address": "0xD9c75a1Aa4237BB72a41E5E26bd8384f10c1f55a", @@ -52,7 +52,7 @@ class LeaderCategory(Enum): "https://api.studio.thegraph.com/query/74256/sepolia/version/latest" ), "subgraph_url_api_key": ( - "https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/Qme5eCUKPuLbEoYTj7QKXWgkFLebc9BePe8QFtT7VBu1az" + "https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmfB1oqYCMTKZB2vcYJzQmGGvVS8cMCHohpYbjKFWoFo8z" ), "hmt_address": "0x792abbcC99c01dbDec49c9fa9A828a186Da45C33", "factory_address": "0x5987A5558d961ee674efe4A8c8eB7B1b5495D3bf", @@ -68,7 +68,7 @@ class LeaderCategory(Enum): "https://api.studio.thegraph.com/query/74256/bsc/version/latest" ), "subgraph_url_api_key": ( - "hthttps://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmafB8bJn2FRPT8d8HoB7ENy9pckSon8cKxfc5hJUsCz6r" + "hthttps://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmPEaCSuzbVHDrGEWTS7T4N8U7kBMMMfkj4b4ZeqheVuMc" ), "hmt_address": "0x711Fd6ab6d65A98904522d4e3586F492B989c527", "factory_address": "0x92FD968AcBd521c232f5fB8c33b342923cC72714", @@ -84,7 +84,7 @@ class LeaderCategory(Enum): "https://api.studio.thegraph.com/query/74256/bsc-testnet/version/latest" ), "subgraph_url_api_key": ( - "https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmZcWc6hKUHvV12kggKcDXkNpe1LXvHoeU2fo26HU1VjAm" + "https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/Qmbp8jzcYurrKdk1Mg5ycJ8jcxwou3wWsmNcRdAc16aQEt" ), "hmt_address": "0xE3D74BBFa45B4bCa69FF28891fBE392f4B4d4e4d", "factory_address": "0x2bfA592DBDaF434DDcbb893B1916120d181DAD18", @@ -102,7 +102,7 @@ class LeaderCategory(Enum): "https://api.studio.thegraph.com/query/74256/polygon/version/latest" ), "subgraph_url_api_key": ( - "https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmNkup687LE9KS85cGGaBLu7FmwP73RVqqY2NKeHUaEYjz" + "https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmeSoEuFieiKXtqzDY3WUBz5gKFWwYVPP7iaebpBpJyo7Y" ), "hmt_address": "0xc748B2A084F8eFc47E086ccdDD9b7e67aEb571BF", "factory_address": "0xBDBfD2cC708199C5640C6ECdf3B0F4A4C67AdfcB", @@ -120,7 +120,7 @@ class LeaderCategory(Enum): "https://api.studio.thegraph.com/query/74256/amoy/version/latest" ), "subgraph_url_api_key": ( - "https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmZnaSXpJodb2iSjDShkDPg33qEYbYmcMF3EVCdByzWgvd" + "https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmQUUv8SK2skarDrJpB8LXXqMwjzxg3Z42dx12uEL5Pmeq" ), "hmt_address": "0x792abbcC99c01dbDec49c9fa9A828a186Da45C33", "factory_address": "0xAFf5a986A530ff839d49325A5dF69F96627E8D29", diff --git a/packages/sdk/typescript/human-protocol-sdk/src/constants.ts b/packages/sdk/typescript/human-protocol-sdk/src/constants.ts index 2ae65f5120..79737b77fd 100644 --- a/packages/sdk/typescript/human-protocol-sdk/src/constants.ts +++ b/packages/sdk/typescript/human-protocol-sdk/src/constants.ts @@ -36,7 +36,7 @@ export const NETWORKS: { subgraphUrl: 'https://api.studio.thegraph.com/query/74256/ethereum/version/latest', subgraphUrlApiKey: - 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmWeaETaRqxX2eiFpPPpdn3q75fUKPzXzq32HR1MQPHsQh', + 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/Qmc8ikCj9y2uvYGTeELkM9wybPdcD2PgpW4tjJMwnogLrq', oldSubgraphUrl: '', oldFactoryAddress: '', }, @@ -51,7 +51,7 @@ export const NETWORKS: { subgraphUrl: 'https://api.studio.thegraph.com/query/74256/sepolia/version/latest', subgraphUrlApiKey: - 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/Qme5eCUKPuLbEoYTj7QKXWgkFLebc9BePe8QFtT7VBu1az', + 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmfB1oqYCMTKZB2vcYJzQmGGvVS8cMCHohpYbjKFWoFo8z', oldSubgraphUrl: '', oldFactoryAddress: '', }, @@ -66,7 +66,7 @@ export const NETWORKS: { subgraphUrl: 'https://api.studio.thegraph.com/query/74256/bsc/version/latest', subgraphUrlApiKey: - 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmafB8bJn2FRPT8d8HoB7ENy9pckSon8cKxfc5hJUsCz6r', + 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmPEaCSuzbVHDrGEWTS7T4N8U7kBMMMfkj4b4ZeqheVuMc', oldSubgraphUrl: 'https://api.thegraph.com/subgraphs/name/humanprotocol/bsc', oldFactoryAddress: '0xc88bC422cAAb2ac8812de03176402dbcA09533f4', }, @@ -81,7 +81,7 @@ export const NETWORKS: { subgraphUrl: 'https://api.studio.thegraph.com/query/74256/bsc-testnet/version/latest', subgraphUrlApiKey: - 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmZcWc6hKUHvV12kggKcDXkNpe1LXvHoeU2fo26HU1VjAm', + 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/Qmbp8jzcYurrKdk1Mg5ycJ8jcxwou3wWsmNcRdAc16aQEt', oldSubgraphUrl: 'https://api.thegraph.com/subgraphs/name/humanprotocol/bsctest', oldFactoryAddress: '0xaae6a2646c1f88763e62e0cd08ad050ea66ac46f', @@ -97,7 +97,7 @@ export const NETWORKS: { subgraphUrl: 'https://api.studio.thegraph.com/query/74256/polygon/version/latest', subgraphUrlApiKey: - 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmNkup687LE9KS85cGGaBLu7FmwP73RVqqY2NKeHUaEYjz', + 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmeSoEuFieiKXtqzDY3WUBz5gKFWwYVPP7iaebpBpJyo7Y', oldSubgraphUrl: 'https://api.thegraph.com/subgraphs/name/humanprotocol/polygon', oldFactoryAddress: '0x45eBc3eAE6DA485097054ae10BA1A0f8e8c7f794', @@ -113,7 +113,7 @@ export const NETWORKS: { subgraphUrl: 'https://api.studio.thegraph.com/query/74256/amoy/version/latest', subgraphUrlApiKey: - 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmZnaSXpJodb2iSjDShkDPg33qEYbYmcMF3EVCdByzWgvd', + 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmQUUv8SK2skarDrJpB8LXXqMwjzxg3Z42dx12uEL5Pmeq', oldSubgraphUrl: '', oldFactoryAddress: '', }, From 4d9ae627667c5b2b72bf6866f36f37d4dfa9d06c Mon Sep 17 00:00:00 2001 From: Dzeranov Date: Wed, 29 Jan 2025 18:53:50 +0300 Subject: [PATCH 30/44] [Reputation Oracle] Delete `Credentials` module (#3056) * delete: `Credentials` module * feat: added migration to delete `credentials` and `credential_validations` tables --- .../server/src/common/constants/networks.ts | 5 +- .../server/src/common/enums/credential.ts | 11 -- .../server/src/database/database.module.ts | 4 - .../1738163861072-deleteCredentials.ts | 59 ++++++ .../src/modules/credentials/credential.dto.ts | 19 -- .../modules/credentials/credential.entity.ts | 47 ----- .../modules/credentials/credential.module.ts | 14 -- .../credentials/credential.repository.ts | 29 --- .../credentials/credential.service.spec.ts | 171 ------------------ .../modules/credentials/credential.service.ts | 110 ----------- 10 files changed, 60 insertions(+), 409 deletions(-) delete mode 100644 packages/apps/reputation-oracle/server/src/common/enums/credential.ts create mode 100644 packages/apps/reputation-oracle/server/src/database/migrations/1738163861072-deleteCredentials.ts delete mode 100644 packages/apps/reputation-oracle/server/src/modules/credentials/credential.dto.ts delete mode 100644 packages/apps/reputation-oracle/server/src/modules/credentials/credential.entity.ts delete mode 100644 packages/apps/reputation-oracle/server/src/modules/credentials/credential.module.ts delete mode 100644 packages/apps/reputation-oracle/server/src/modules/credentials/credential.repository.ts delete mode 100644 packages/apps/reputation-oracle/server/src/modules/credentials/credential.service.spec.ts delete mode 100644 packages/apps/reputation-oracle/server/src/modules/credentials/credential.service.ts diff --git a/packages/apps/reputation-oracle/server/src/common/constants/networks.ts b/packages/apps/reputation-oracle/server/src/common/constants/networks.ts index 751dac3d9e..9868bed377 100644 --- a/packages/apps/reputation-oracle/server/src/common/constants/networks.ts +++ b/packages/apps/reputation-oracle/server/src/common/constants/networks.ts @@ -6,9 +6,6 @@ export const TESTNET_CHAIN_IDS = [ ChainId.SEPOLIA, ]; -export const MAINNET_CHAIN_IDS = [ - ChainId.BSC_MAINNET, - ChainId.POLYGON, -]; +export const MAINNET_CHAIN_IDS = [ChainId.BSC_MAINNET, ChainId.POLYGON]; export const LOCALHOST_CHAIN_IDS = [ChainId.LOCALHOST]; diff --git a/packages/apps/reputation-oracle/server/src/common/enums/credential.ts b/packages/apps/reputation-oracle/server/src/common/enums/credential.ts deleted file mode 100644 index fb07f83a49..0000000000 --- a/packages/apps/reputation-oracle/server/src/common/enums/credential.ts +++ /dev/null @@ -1,11 +0,0 @@ -export enum CredentialStatus { - ACTIVE = 'active', - EXPIRED = 'expired', - VALIDATED = 'validated', - ON_CHAIN = 'on_chain', -} - -export enum CredentialValidationStatus { - VALIDATED = 'validated', - ON_CHAIN = 'on_chain', -} diff --git a/packages/apps/reputation-oracle/server/src/database/database.module.ts b/packages/apps/reputation-oracle/server/src/database/database.module.ts index cc4a9269f9..88d7fd3d19 100644 --- a/packages/apps/reputation-oracle/server/src/database/database.module.ts +++ b/packages/apps/reputation-oracle/server/src/database/database.module.ts @@ -15,8 +15,6 @@ import { LoggerOptions } from 'typeorm'; import { DatabaseConfigService } from '../common/config/database-config.service'; import { ServerConfigService } from '../common/config/server-config.service'; import { SiteKeyEntity } from '../modules/user/site-key.entity'; -import { CredentialValidationEntity } from '../modules/credentials/credential.entity'; -import { CredentialEntity } from '../modules/credentials/credential.entity'; import { QualificationEntity } from '../modules/qualification/qualification.entity'; import { UserQualificationEntity } from '../modules/qualification/user-qualification.entity'; import { WebhookIncomingEntity } from '../modules/webhook/webhook-incoming.entity'; @@ -53,8 +51,6 @@ import { EscrowPayoutsBatchEntity } from '../modules/escrow-completion/escrow-pa EscrowCompletionEntity, EscrowPayoutsBatchEntity, ReputationEntity, - CredentialEntity, - CredentialValidationEntity, TokenEntity, UserEntity, KycEntity, diff --git a/packages/apps/reputation-oracle/server/src/database/migrations/1738163861072-deleteCredentials.ts b/packages/apps/reputation-oracle/server/src/database/migrations/1738163861072-deleteCredentials.ts new file mode 100644 index 0000000000..367a491108 --- /dev/null +++ b/packages/apps/reputation-oracle/server/src/database/migrations/1738163861072-deleteCredentials.ts @@ -0,0 +1,59 @@ +import { MigrationInterface, QueryRunner } from 'typeorm'; + +export class DeleteCredentials1738163861072 implements MigrationInterface { + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query( + `ALTER TABLE "hmt"."credential_validations" DROP CONSTRAINT "FK_d1896792b36ed073631703df40a"`, + ); + await queryRunner.query( + `ALTER TABLE "hmt"."credential_validations" DROP CONSTRAINT "FK_a546350ec2c97f067c802ff672a"`, + ); + await queryRunner.query( + `CREATE TYPE "hmt"."reputation_type_enum_old" AS ENUM('worker', 'job_launcher', 'exchange_oracle', 'recording_oracle', 'reputation_oracle')`, + ); + await queryRunner.query( + `ALTER TABLE "hmt"."reputation" ALTER COLUMN "type" TYPE "hmt"."reputation_type_enum_old" USING "type"::"text"::"hmt"."reputation_type_enum_old"`, + ); + await queryRunner.query(`DROP TYPE "hmt"."reputation_type_enum"`); + await queryRunner.query( + `ALTER TYPE "hmt"."reputation_type_enum_old" RENAME TO "reputation_type_enum"`, + ); + await queryRunner.query(`DROP TABLE "hmt"."credential_validations"`); + await queryRunner.query( + `DROP TYPE "hmt"."credential_validations_status_enum"`, + ); + await queryRunner.query(`DROP TABLE "hmt"."credentials"`); + await queryRunner.query(`DROP TYPE "hmt"."credentials_status_enum"`); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query( + `CREATE TYPE "hmt"."credentials_status_enum" AS ENUM('active', 'expired', 'validated', 'on_chain')`, + ); + await queryRunner.query( + `CREATE TABLE "hmt"."credentials" ("id" SERIAL NOT NULL, "created_at" TIMESTAMP WITH TIME ZONE NOT NULL, "updated_at" TIMESTAMP WITH TIME ZONE NOT NULL, "reference" character varying NOT NULL, "description" text NOT NULL, "url" character varying NOT NULL, "status" "hmt"."credentials_status_enum" NOT NULL, "starts_at" TIMESTAMP WITH TIME ZONE NOT NULL, "expires_at" TIMESTAMP WITH TIME ZONE, CONSTRAINT "UQ_481aa1ff346d6eee7656880c568" UNIQUE ("reference"), CONSTRAINT "PK_1e38bc43be6697cdda548ad27a6" PRIMARY KEY ("id"))`, + ); + await queryRunner.query( + `CREATE TYPE "hmt"."credential_validations_status_enum" AS ENUM('validated', 'on_chain')`, + ); + await queryRunner.query( + `CREATE TABLE "hmt"."credential_validations" ("id" SERIAL NOT NULL, "created_at" TIMESTAMP WITH TIME ZONE NOT NULL, "updated_at" TIMESTAMP WITH TIME ZONE NOT NULL, "status" "hmt"."credential_validations_status_enum" NOT NULL, "certificate" character varying, "credential_id" integer, "user_id" integer, CONSTRAINT "PK_ea03b6fbdfcddca7c2625f6a091" PRIMARY KEY ("id"))`, + ); + await queryRunner.query( + `ALTER TYPE "hmt"."reputation_type_enum" RENAME TO "reputation_type_enum_old"`, + ); + await queryRunner.query( + `CREATE TYPE "hmt"."reputation_type_enum" AS ENUM('worker', 'job_launcher', 'exchange_oracle', 'recording_oracle', 'reputation_oracle', 'credential_validator')`, + ); + await queryRunner.query( + `ALTER TABLE "hmt"."reputation" ALTER COLUMN "type" TYPE "hmt"."reputation_type_enum" USING "type"::"text"::"hmt"."reputation_type_enum"`, + ); + await queryRunner.query(`DROP TYPE "hmt"."reputation_type_enum_old"`); + await queryRunner.query( + `ALTER TABLE "hmt"."credential_validations" ADD CONSTRAINT "FK_a546350ec2c97f067c802ff672a" FOREIGN KEY ("credential_id") REFERENCES "hmt"."credentials"("id") ON DELETE NO ACTION ON UPDATE NO ACTION`, + ); + await queryRunner.query( + `ALTER TABLE "hmt"."credential_validations" ADD CONSTRAINT "FK_d1896792b36ed073631703df40a" FOREIGN KEY ("user_id") REFERENCES "hmt"."users"("id") ON DELETE NO ACTION ON UPDATE NO ACTION`, + ); + } +} diff --git a/packages/apps/reputation-oracle/server/src/modules/credentials/credential.dto.ts b/packages/apps/reputation-oracle/server/src/modules/credentials/credential.dto.ts deleted file mode 100644 index 7b2cba0123..0000000000 --- a/packages/apps/reputation-oracle/server/src/modules/credentials/credential.dto.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { IsString, IsOptional, IsDateString } from 'class-validator'; - -export class CreateCredentialDto { - @IsString() - public reference: string; - - @IsString() - public description: string; - - @IsString() - public url: string; - - @IsDateString() - public startsAt: Date; - - @IsOptional() - @IsDateString() - public expiresAt?: Date; -} diff --git a/packages/apps/reputation-oracle/server/src/modules/credentials/credential.entity.ts b/packages/apps/reputation-oracle/server/src/modules/credentials/credential.entity.ts deleted file mode 100644 index 7bb8540fd3..0000000000 --- a/packages/apps/reputation-oracle/server/src/modules/credentials/credential.entity.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { Column, Entity, ManyToOne } from 'typeorm'; -import { NS } from '../../common/constants'; -import { BaseEntity } from '../../database/base.entity'; -import { - CredentialStatus, - CredentialValidationStatus, -} from '../../common/enums/credential'; -import { UserEntity } from '../user/user.entity'; - -@Entity({ schema: NS, name: 'credentials' }) -export class CredentialEntity extends BaseEntity { - @Column({ type: 'varchar', unique: true }) - public reference: string; - - @Column({ type: 'text' }) - public description: string; - - @Column({ type: 'varchar' }) - public url: string; - - @Column({ - type: 'enum', - enum: CredentialStatus, - }) - public status: CredentialStatus; - - @Column({ type: 'timestamptz' }) - public startsAt: Date; - - @Column({ type: 'timestamptz', nullable: true }) - public expiresAt?: Date; -} - -@Entity({ schema: NS, name: 'credential_validations' }) -export class CredentialValidationEntity extends BaseEntity { - @ManyToOne(() => CredentialEntity, { eager: true }) - credential: CredentialEntity; - - @ManyToOne(() => UserEntity, { eager: true }) - user: UserEntity; - - @Column({ type: 'enum', enum: CredentialValidationStatus }) - status: CredentialValidationStatus; - - @Column({ nullable: true }) - certificate: string; -} diff --git a/packages/apps/reputation-oracle/server/src/modules/credentials/credential.module.ts b/packages/apps/reputation-oracle/server/src/modules/credentials/credential.module.ts deleted file mode 100644 index 2113180f66..0000000000 --- a/packages/apps/reputation-oracle/server/src/modules/credentials/credential.module.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { Logger, Module } from '@nestjs/common'; -import { ConfigModule } from '@nestjs/config'; - -import { CredentialService } from './credential.service'; -import { CredentialRepository } from './credential.repository'; -import { Web3Module } from '../web3/web3.module'; // Assuming integration with blockchain -import { UserModule } from '../user/user.module'; - -@Module({ - imports: [ConfigModule, Web3Module, UserModule], - providers: [Logger, CredentialService, CredentialRepository], - exports: [CredentialService], -}) -export class CredentialModule {} diff --git a/packages/apps/reputation-oracle/server/src/modules/credentials/credential.repository.ts b/packages/apps/reputation-oracle/server/src/modules/credentials/credential.repository.ts deleted file mode 100644 index 0127af471d..0000000000 --- a/packages/apps/reputation-oracle/server/src/modules/credentials/credential.repository.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { Injectable, Logger } from '@nestjs/common'; -import { BaseRepository } from '../../database/base.repository'; -import { DataSource } from 'typeorm'; -import { CredentialEntity } from './credential.entity'; - -@Injectable() -export class CredentialRepository extends BaseRepository { - private readonly logger = new Logger(CredentialRepository.name); - - constructor(private dataSource: DataSource) { - super(CredentialEntity, dataSource); - } - - async findByReference(reference: string): Promise { - const credentialEntity = this.findOne({ where: { reference } }); - return credentialEntity; - } - - async getCredentials(status?: string): Promise { - let queryBuilder = this.createQueryBuilder('credential'); - if (status) { - queryBuilder = queryBuilder.where('credential.status = :status', { - status, - }); - } - const credentials = await queryBuilder.getMany(); - return credentials; - } -} diff --git a/packages/apps/reputation-oracle/server/src/modules/credentials/credential.service.spec.ts b/packages/apps/reputation-oracle/server/src/modules/credentials/credential.service.spec.ts deleted file mode 100644 index 2450233fcf..0000000000 --- a/packages/apps/reputation-oracle/server/src/modules/credentials/credential.service.spec.ts +++ /dev/null @@ -1,171 +0,0 @@ -import { Test } from '@nestjs/testing'; -import { CredentialService } from './credential.service'; -import { CredentialRepository } from './credential.repository'; -import { Web3ConfigService } from '../../common/config/web3-config.service'; -import { createMock } from '@golevelup/ts-jest'; -import { CredentialEntity } from './credential.entity'; -import { MOCK_ADDRESS } from '../../../test/constants'; -import { Web3Service } from '../web3/web3.service'; -import { SelectQueryBuilder } from 'typeorm'; -import { CredentialStatus } from '../../common/enums/credential'; -import { CreateCredentialDto } from './credential.dto'; -import { UserService } from '../user/user.service'; -import { ControlledError } from '../../common/errors/controlled'; -import { HttpStatus } from '@nestjs/common'; - -jest.mock('@human-protocol/sdk', () => ({ - ...jest.requireActual('@human-protocol/sdk'), - EscrowClient: { - build: jest.fn().mockImplementation(() => ({ - getReputationOracleAddress: jest.fn().mockResolvedValue('MOCK_ADDRESS'), - })), - }, - KVStoreClient: { - build: jest.fn().mockImplementation(() => ({ - set: jest.fn(), - })), - }, - KVStoreUtils: { - get: jest.fn(), - }, -})); - -describe('CredentialService', () => { - let credentialService: CredentialService; - let credentialRepository: CredentialRepository; - - beforeEach(async () => { - const moduleRef = await Test.createTestingModule({ - providers: [ - CredentialService, - { - provide: CredentialRepository, - useValue: createMock(), - }, - { - provide: Web3Service, - useValue: { - getSigner: jest.fn().mockReturnValue({ address: MOCK_ADDRESS }), - signMessage: jest.fn(), - }, - }, - { - provide: Web3ConfigService, - useValue: createMock(), - }, - { - provide: UserService, - useValue: createMock(), - }, - ], - }).compile(); - - credentialService = moduleRef.get(CredentialService); - credentialRepository = moduleRef.get(CredentialRepository); - }); - - describe('createCredential', () => { - it('should create a new credential and return a credential entity', async () => { - const startsAtDate = new Date('2024-05-12T13:48:35.938Z'); - const createCredentialDto: CreateCredentialDto = { - reference: 'bbe5b21336ce', - description: 'expertise skill', - url: 'https://credentials-validator.com?credential_id=1', - startsAt: startsAtDate, - }; - - const createdCredential = new CredentialEntity(); - createdCredential.reference = createCredentialDto.reference; - createdCredential.description = createCredentialDto.description; - createdCredential.url = createCredentialDto.url; - createdCredential.startsAt = startsAtDate; - createdCredential.status = CredentialStatus.ACTIVE; - - jest - .spyOn(credentialRepository, 'createUnique') - .mockResolvedValue(createdCredential); - - const result = - await credentialService.createCredential(createdCredential); - - expect(credentialRepository.createUnique).toHaveBeenCalledWith( - createdCredential, - ); - - expect(result).toMatchObject(createdCredential); - }); - - describe('getCredentials', () => { - it('should return a list of credentials for a user', async () => { - const credentials = [new CredentialEntity()]; - const mockQueryBuilder = { - where: jest.fn().mockReturnThis(), - andWhere: jest.fn().mockReturnThis(), - getMany: jest.fn().mockResolvedValue(credentials), - } as Partial>; - - jest - .spyOn(credentialRepository, 'createQueryBuilder') - .mockReturnValue( - mockQueryBuilder as SelectQueryBuilder, - ); - - const result = await credentialService.getCredentials( - { id: 'user123' }, - CredentialStatus.ACTIVE, - ); - expect(result).toEqual(credentials); - }); - }); - - describe('getByReference', () => { - it('should return a credential by reference', async () => { - const credential = new CredentialEntity(); - jest - .spyOn(credentialRepository, 'findByReference') - .mockResolvedValue(credential); - - const result = await credentialService.getByReference('ref123'); - expect(result).toEqual(credential); - }); - - it('should return null if the credential is expired', async () => { - const credential = { - status: CredentialStatus.EXPIRED, - } as CredentialEntity; - jest - .spyOn(credentialRepository, 'findByReference') - .mockResolvedValue(credential); - - const result = await credentialService.getByReference('ref123'); - expect(result).toBeNull(); - }); - }); - - describe('validateCredential', () => { - it('should validate an active credential', async () => { - const credential = { - status: CredentialStatus.ACTIVE, - } as CredentialEntity; - jest - .spyOn(credentialRepository, 'findByReference') - .mockResolvedValue(credential); - jest.spyOn(credentialRepository, 'save').mockResolvedValue(credential); - - await credentialService.validateCredential('ref123'); - expect(credential.status).toEqual(CredentialStatus.VALIDATED); - }); - - it('should throw an error if the credential is not found', async () => { - jest - .spyOn(credentialRepository, 'findByReference') - .mockResolvedValue(null); - await expect( - credentialService.validateCredential('ref123'), - ).rejects.toThrow( - new ControlledError('Credential not found.', HttpStatus.BAD_REQUEST), - ); - }); - }); - }); -}); diff --git a/packages/apps/reputation-oracle/server/src/modules/credentials/credential.service.ts b/packages/apps/reputation-oracle/server/src/modules/credentials/credential.service.ts deleted file mode 100644 index b97103405e..0000000000 --- a/packages/apps/reputation-oracle/server/src/modules/credentials/credential.service.ts +++ /dev/null @@ -1,110 +0,0 @@ -import { HttpStatus, Injectable, Logger } from '@nestjs/common'; -import { CreateCredentialDto } from './credential.dto'; -import { CredentialRepository } from './credential.repository'; -import { CredentialEntity } from './credential.entity'; -import { CredentialStatus } from '../../common/enums/credential'; -import { Web3Service } from '../web3/web3.service'; -import { Web3ConfigService } from '../../common/config/web3-config.service'; -import { UserService } from '../user/user.service'; -import { ControlledError } from '../../common/errors/controlled'; - -@Injectable() -export class CredentialService { - private readonly logger = new Logger(CredentialService.name); - - constructor(private readonly credentialRepository: CredentialRepository) {} - - /** - * Create a new credential based on provided data. - * @param createCredentialDto Data needed to create the credential. - * @returns The created credential entity. - */ - public async createCredential( - createCredentialDto: CreateCredentialDto, - ): Promise { - const newCredential = new CredentialEntity(); - newCredential.reference = createCredentialDto.reference; - newCredential.description = createCredentialDto.description; - newCredential.url = createCredentialDto.url; - newCredential.startsAt = new Date(createCredentialDto.startsAt); - if (createCredentialDto.expiresAt) { - const providedExpiresAt = new Date(createCredentialDto.expiresAt); - if (providedExpiresAt <= newCredential.startsAt) { - throw new ControlledError( - 'ExpiresAt must be after StartsAt.', - HttpStatus.BAD_REQUEST, - ); - } else { - newCredential.expiresAt = providedExpiresAt; - } - } - newCredential.status = CredentialStatus.ACTIVE; - await this.credentialRepository.createUnique(newCredential); - return newCredential; - } - - public async getCredentials( - user: any, - status?: string, - ): Promise { - let query = this.credentialRepository.createQueryBuilder('credential'); - query = query.where('credential.userId = :userId', { userId: user.id }); - - if (status) { - query = query.andWhere('credential.status = :status', { status: status }); - } - try { - return query.getMany(); - } catch (error) { - throw new ControlledError( - `Failed to fetch credentials: ${error.message}`, - HttpStatus.BAD_REQUEST, - ); - } - } - - public async getByReference( - reference: string, - ): Promise { - const credentialEntity = - await this.credentialRepository.findByReference(reference); - - if ( - !credentialEntity || - CredentialStatus.EXPIRED === credentialEntity.status - ) { - return null; - } - - return credentialEntity; - } - - /** - * Validate a credential based on provided data. - * @param {string} reference - The unique reference of the credential. - * @param {string} workerAddress - The address of the user that completed the training or activity. - * @returns {Promise} - */ - public async validateCredential(reference: string): Promise { - const credential = - await this.credentialRepository.findByReference(reference); - - if (!credential) { - throw new ControlledError( - 'Credential not found.', - HttpStatus.BAD_REQUEST, - ); - } - - if (credential.status !== CredentialStatus.ACTIVE) { - throw new ControlledError( - 'Credential is not in a valid state for validation.', - HttpStatus.BAD_REQUEST, - ); - } - credential.status = CredentialStatus.VALIDATED; - await this.credentialRepository.save(credential); - - this.logger.log(`Credential ${reference} validated successfully.`); - } -} From f94e2afcd65c6c999b0c3e2312db0679ac7756a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20L=C3=B3pez?= <50665615+flopez7@users.noreply.github.com> Date: Thu, 30 Jan 2025 09:48:31 +0100 Subject: [PATCH 31/44] Update readme and change folder name in dashboard client (#3058) --- package.json | 2 +- .../{ui-2024 => client}/.env.example | 0 .../{ui-2024 => client}/.eslintrc.cjs | 0 .../dashboard/{ui-2024 => client}/.gitignore | 0 .../dashboard/{ui-2024 => client}/.prettierrc | 0 packages/apps/dashboard/client/README.md | 78 ++++++++++++++++++ .../dashboard/{ui-2024 => client}/index.html | 0 .../{ui-2024 => client}/package.json | 2 +- .../{ui-2024 => client}/public/vite.svg | 0 .../dashboard/{ui-2024 => client}/src/App.css | 0 .../dashboard/{ui-2024 => client}/src/App.tsx | 0 .../{ui-2024 => client}/src/assets/bing.png | Bin .../src/assets/bitfinex.png | Bin .../src/assets/coinlist.png | Bin .../src/assets/ethereum.png | Bin .../src/assets/exchange.png | Bin .../{ui-2024 => client}/src/assets/gate.png | Bin .../{ui-2024 => client}/src/assets/human.png | Bin .../src/assets/icons/binance.svg | 0 .../src/assets/icons/celo.svg | 0 .../src/assets/icons/discord.svg | 0 .../src/assets/icons/ethereum.svg | 0 .../src/assets/icons/exchange-oracle.svg | 0 .../src/assets/icons/excluded/escrow.svg | 0 .../src/assets/icons/excluded/wallet.svg | 0 .../src/assets/icons/human-app.svg | 0 .../src/assets/icons/job-launcher.svg | 0 .../src/assets/icons/moonbeam.svg | 0 .../src/assets/icons/okx.svg | 0 .../src/assets/icons/polygon.svg | 0 .../src/assets/icons/recording-oracle.svg | 0 .../src/assets/icons/reputation-oracle.svg | 0 .../src/assets/icons/xlayer.svg | 0 .../{ui-2024 => client}/src/assets/lbank.png | Bin .../src/assets/logo-mobile.png | Bin .../{ui-2024 => client}/src/assets/logo.png | Bin .../src/assets/probitGlobal.png | Bin .../{ui-2024 => client}/src/assets/react.svg | 0 .../src/assets/recording.png | Bin .../src/assets/reputation.png | Bin .../src/assets/styles/_breadcrumbs.scss | 0 .../src/assets/styles/_const.scss | 0 .../src/assets/styles/_footer.scss | 0 .../src/assets/styles/_graph-swipper.scss | 0 .../src/assets/styles/_header.scss | 0 .../src/assets/styles/_home-page.scss | 0 .../src/assets/styles/_nothing-found.scss | 0 .../src/assets/styles/_page-wrapper.scss | 0 .../src/assets/styles/_search.scss | 0 .../src/assets/styles/_shadow-icon.scss | 0 .../src/assets/styles/color-palette.ts | 0 .../src/assets/styles/favicon.ico | Bin .../src/assets/styles/main.scss | 0 .../components/Breadcrumbs/Breadcrumbs.tsx | 0 .../src/components/Breadcrumbs/index.ts | 0 .../src/components/Charts/AreaChart.tsx | 0 .../components/Charts/CustomChartTooltip.tsx | 0 .../src/components/Charts/CustomXAxisTick.tsx | 0 .../src/components/Charts/ToggleCharts.tsx | 0 .../src/components/Charts/index.ts | 0 .../src/components/Clipboard/Clipboard.tsx | 0 .../src/components/Clipboard/index.ts | 0 .../CustomTooltip/CustomTooltip.tsx | 0 .../src/components/CustomTooltip/index.tsx | 0 .../src/components/DataEntry/DatePicker.tsx | 0 .../components/DataEntry/ToggleButtons.tsx | 0 .../src/components/DataEntry/index.ts | 0 .../src/components/Footer/Footer.tsx | 0 .../src/components/Footer/index.ts | 0 .../src/components/Header/Header.tsx | 0 .../src/components/Header/index.ts | 0 .../src/components/Home/FormatNumber.tsx | 0 .../src/components/Home/GraphSwiper.tsx | 0 .../src/components/Home/SmallGraph.tsx | 0 .../src/components/Home/index.ts | 0 .../src/components/Icons/AvalancheIcon.tsx | 0 .../Icons/BinanceSmartChainIcon.tsx | 0 .../src/components/Icons/CeloIcon.tsx | 0 .../src/components/Icons/DiscordIcon.tsx | 0 .../components/Icons/EscrowAddressIcon.tsx | 0 .../src/components/Icons/EthereumIcon.tsx | 0 .../components/Icons/ExchangeOracleIcon.tsx | 0 .../src/components/Icons/HumanIcon.tsx | 0 .../src/components/Icons/JobLauncher.tsx | 0 .../src/components/Icons/LeaderboardIcon.tsx | 0 .../src/components/Icons/LogoBlockIcon.tsx | 0 .../components/Icons/LogoBlockIconMobile.tsx | 0 .../components/Icons/MoonbaseAlphaIcon.tsx | 0 .../src/components/Icons/MoonbeamIcon.tsx | 0 .../src/components/Icons/PolygonIcon.tsx | 0 .../src/components/Icons/RecordingOracle.tsx | 0 .../src/components/Icons/ReputationOracle.tsx | 0 .../src/components/Icons/WalletIcon.tsx | 0 .../src/components/Icons/XLayerIcon.tsx | 0 .../src/components/Loader/index.tsx | 0 .../src/components/NetworkIcon/index.tsx | 0 .../components/NothingFound/NothingFound.tsx | 0 .../src/components/NothingFound/index.ts | 0 .../components/PageWrapper/PageWrapper.tsx | 0 .../src/components/PageWrapper/index.ts | 0 .../components/SearchBar/SearchBar.styles.ts | 0 .../src/components/SearchBar/SearchBar.tsx | 0 .../SearchResults/AbbreviateClipboard.tsx | 0 .../SearchResults/TitleSectionWrapper.tsx | 0 .../src/components/SearchResults/index.ts | 0 .../src/components/ShadowIcon/ShadowIcon.tsx | 0 .../src/components/ShadowIcon/index.ts | 0 .../Leaderboard/components/AddressCell.tsx | 0 .../Leaderboard/components/CategoryCell.tsx | 0 .../Leaderboard/components/ChainCell.tsx | 0 .../components/DataGridWrapper.tsx | 0 .../Leaderboard/components/EntityIcon.tsx | 0 .../components/ReputationLabel.tsx | 0 .../Leaderboard/components/RoleCell.tsx | 0 .../Leaderboard/components/SelectNetwork.tsx | 0 .../Leaderboard/components/TextCell.tsx | 0 .../Leaderboard/hooks/useDataGrid.tsx | 0 .../Leaderboard/hooks/useDatagridOptions.tsx | 0 .../src/features/Leaderboard/index.tsx | 0 .../src/helpers/abbreviateValue.ts | 0 .../{ui-2024 => client}/src/helpers/env.ts | 0 .../src/helpers/formatDate.ts | 0 .../src/helpers/formatHMTDecimals.ts | 0 .../src/helpers/formatNumber.ts | 0 .../{ui-2024 => client}/src/helpers/index.ts | 0 .../src/helpers/isValidEVMAddress.ts | 0 .../{ui-2024 => client}/src/index.css | 0 .../{ui-2024 => client}/src/main.tsx | 0 .../src/pages/Graph/Graph.tsx | 0 .../src/pages/Graph/index.ts | 0 .../src/pages/Home/HMTPrice.tsx | 0 .../src/pages/Home/Holders.tsx | 0 .../src/pages/Home/Home.tsx | 0 .../src/pages/Home/Leaderboard.tsx | 0 .../src/pages/Home/TotalNumberOfTasks.tsx | 0 .../src/pages/Home/TotalTransactions.tsx | 0 .../src/pages/Home/index.ts | 0 .../src/pages/Leaderboard/index.tsx | 0 .../EscrowAddress/EscrowAddress.tsx | 0 .../EscrowAddress/HMTBalance.tsx | 0 .../SearchResults/EscrowAddress/index.ts | 0 .../SearchResults/RoleDetails/RoleDetails.tsx | 0 .../RoleDetailsEscrowsTable.tsx | 0 .../tableComponents/EscrowsTableBody.tsx | 0 .../EscrowsTableBodyContainer.tsx | 0 .../pages/SearchResults/RoleDetails/index.ts | 0 .../src/pages/SearchResults/SearchResults.tsx | 0 .../WalletAddress/WalletAddress.tsx | 0 .../WalletAddressTransactionsTable.tsx | 0 .../cells/TransactionTableCellMethod.tsx | 0 .../cells/TransactionTableCellValue.tsx | 0 .../tableComponents/TransactionsTableBody.tsx | 0 .../TransactionsTableBodyContainer.tsx | 0 .../tableComponents/TransactionsTableHead.tsx | 0 .../SearchResults/WalletAddress/index.ts | 0 .../src/pages/SearchResults/index.ts | 0 .../src/services/api-paths.ts | 0 .../src/services/api/use-address-details.tsx | 2 +- .../src/services/api/use-escrows-details.tsx | 0 .../src/services/api/use-general-stats.tsx | 0 .../api/use-graph-page-chart-data.tsx | 0 .../api/use-hcaptcha-general-stats.tsx | 0 .../src/services/api/use-hmt-price.tsx | 0 .../services/api/use-leaderboard-details.tsx | 0 .../services/api/use-transaction-details.tsx | 0 .../src/services/global.type.ts | 0 .../src/services/handle-error-message.ts | 0 .../src/services/http-service.ts | 0 .../src/services/validate-response.ts | 0 .../{ui-2024 => client}/src/theme.tsx | 0 .../src/utils/config/networks.ts | 0 .../utils/hooks/use-escrows-details-dto.ts | 0 .../src/utils/hooks/use-filtered-networks.ts | 0 .../hooks/use-graph-page-chart-params.tsx | 0 .../src/utils/hooks/use-is-mobile.tsx | 0 .../src/utils/hooks/use-leaderboard-search.ts | 0 .../hooks/use-transactions-details-dto.ts | 0 .../src/utils/hooks/use-wallet-search.ts | 0 .../{ui-2024 => client}/src/vite-env.d.ts | 0 .../{ui-2024 => client}/tsconfig.json | 0 .../{ui-2024 => client}/tsconfig.node.json | 0 .../dashboard/{ui-2024 => client}/vercel.json | 0 .../{ui-2024 => client}/vite.config.ts | 0 packages/apps/dashboard/ui-2024/README.md | 30 ------- 184 files changed, 81 insertions(+), 33 deletions(-) rename packages/apps/dashboard/{ui-2024 => client}/.env.example (100%) rename packages/apps/dashboard/{ui-2024 => client}/.eslintrc.cjs (100%) rename packages/apps/dashboard/{ui-2024 => client}/.gitignore (100%) rename packages/apps/dashboard/{ui-2024 => client}/.prettierrc (100%) create mode 100644 packages/apps/dashboard/client/README.md rename packages/apps/dashboard/{ui-2024 => client}/index.html (100%) rename packages/apps/dashboard/{ui-2024 => client}/package.json (97%) rename packages/apps/dashboard/{ui-2024 => client}/public/vite.svg (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/App.css (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/App.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/assets/bing.png (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/assets/bitfinex.png (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/assets/coinlist.png (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/assets/ethereum.png (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/assets/exchange.png (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/assets/gate.png (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/assets/human.png (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/assets/icons/binance.svg (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/assets/icons/celo.svg (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/assets/icons/discord.svg (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/assets/icons/ethereum.svg (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/assets/icons/exchange-oracle.svg (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/assets/icons/excluded/escrow.svg (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/assets/icons/excluded/wallet.svg (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/assets/icons/human-app.svg (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/assets/icons/job-launcher.svg (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/assets/icons/moonbeam.svg (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/assets/icons/okx.svg (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/assets/icons/polygon.svg (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/assets/icons/recording-oracle.svg (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/assets/icons/reputation-oracle.svg (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/assets/icons/xlayer.svg (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/assets/lbank.png (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/assets/logo-mobile.png (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/assets/logo.png (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/assets/probitGlobal.png (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/assets/react.svg (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/assets/recording.png (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/assets/reputation.png (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/assets/styles/_breadcrumbs.scss (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/assets/styles/_const.scss (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/assets/styles/_footer.scss (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/assets/styles/_graph-swipper.scss (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/assets/styles/_header.scss (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/assets/styles/_home-page.scss (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/assets/styles/_nothing-found.scss (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/assets/styles/_page-wrapper.scss (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/assets/styles/_search.scss (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/assets/styles/_shadow-icon.scss (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/assets/styles/color-palette.ts (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/assets/styles/favicon.ico (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/assets/styles/main.scss (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/Breadcrumbs/Breadcrumbs.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/Breadcrumbs/index.ts (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/Charts/AreaChart.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/Charts/CustomChartTooltip.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/Charts/CustomXAxisTick.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/Charts/ToggleCharts.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/Charts/index.ts (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/Clipboard/Clipboard.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/Clipboard/index.ts (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/CustomTooltip/CustomTooltip.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/CustomTooltip/index.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/DataEntry/DatePicker.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/DataEntry/ToggleButtons.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/DataEntry/index.ts (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/Footer/Footer.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/Footer/index.ts (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/Header/Header.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/Header/index.ts (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/Home/FormatNumber.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/Home/GraphSwiper.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/Home/SmallGraph.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/Home/index.ts (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/Icons/AvalancheIcon.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/Icons/BinanceSmartChainIcon.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/Icons/CeloIcon.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/Icons/DiscordIcon.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/Icons/EscrowAddressIcon.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/Icons/EthereumIcon.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/Icons/ExchangeOracleIcon.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/Icons/HumanIcon.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/Icons/JobLauncher.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/Icons/LeaderboardIcon.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/Icons/LogoBlockIcon.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/Icons/LogoBlockIconMobile.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/Icons/MoonbaseAlphaIcon.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/Icons/MoonbeamIcon.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/Icons/PolygonIcon.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/Icons/RecordingOracle.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/Icons/ReputationOracle.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/Icons/WalletIcon.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/Icons/XLayerIcon.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/Loader/index.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/NetworkIcon/index.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/NothingFound/NothingFound.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/NothingFound/index.ts (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/PageWrapper/PageWrapper.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/PageWrapper/index.ts (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/SearchBar/SearchBar.styles.ts (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/SearchBar/SearchBar.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/SearchResults/AbbreviateClipboard.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/SearchResults/TitleSectionWrapper.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/SearchResults/index.ts (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/ShadowIcon/ShadowIcon.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/components/ShadowIcon/index.ts (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/features/Leaderboard/components/AddressCell.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/features/Leaderboard/components/CategoryCell.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/features/Leaderboard/components/ChainCell.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/features/Leaderboard/components/DataGridWrapper.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/features/Leaderboard/components/EntityIcon.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/features/Leaderboard/components/ReputationLabel.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/features/Leaderboard/components/RoleCell.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/features/Leaderboard/components/SelectNetwork.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/features/Leaderboard/components/TextCell.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/features/Leaderboard/hooks/useDataGrid.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/features/Leaderboard/hooks/useDatagridOptions.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/features/Leaderboard/index.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/helpers/abbreviateValue.ts (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/helpers/env.ts (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/helpers/formatDate.ts (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/helpers/formatHMTDecimals.ts (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/helpers/formatNumber.ts (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/helpers/index.ts (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/helpers/isValidEVMAddress.ts (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/index.css (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/main.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/pages/Graph/Graph.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/pages/Graph/index.ts (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/pages/Home/HMTPrice.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/pages/Home/Holders.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/pages/Home/Home.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/pages/Home/Leaderboard.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/pages/Home/TotalNumberOfTasks.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/pages/Home/TotalTransactions.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/pages/Home/index.ts (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/pages/Leaderboard/index.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/pages/SearchResults/EscrowAddress/EscrowAddress.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/pages/SearchResults/EscrowAddress/HMTBalance.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/pages/SearchResults/EscrowAddress/index.ts (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/pages/SearchResults/RoleDetails/RoleDetails.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/pages/SearchResults/RoleDetails/RoleDetailsEscrows/RoleDetailsEscrowsTable.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/pages/SearchResults/RoleDetails/RoleDetailsEscrows/tableComponents/EscrowsTableBody.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/pages/SearchResults/RoleDetails/RoleDetailsEscrows/tableComponents/EscrowsTableBodyContainer.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/pages/SearchResults/RoleDetails/index.ts (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/pages/SearchResults/SearchResults.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/pages/SearchResults/WalletAddress/WalletAddress.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/pages/SearchResults/WalletAddress/WalletAddressTransactions/WalletAddressTransactionsTable.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/pages/SearchResults/WalletAddress/WalletAddressTransactions/cells/TransactionTableCellMethod.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/pages/SearchResults/WalletAddress/WalletAddressTransactions/cells/TransactionTableCellValue.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/pages/SearchResults/WalletAddress/WalletAddressTransactions/tableComponents/TransactionsTableBody.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/pages/SearchResults/WalletAddress/WalletAddressTransactions/tableComponents/TransactionsTableBodyContainer.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/pages/SearchResults/WalletAddress/WalletAddressTransactions/tableComponents/TransactionsTableHead.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/pages/SearchResults/WalletAddress/index.ts (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/pages/SearchResults/index.ts (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/services/api-paths.ts (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/services/api/use-address-details.tsx (98%) rename packages/apps/dashboard/{ui-2024 => client}/src/services/api/use-escrows-details.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/services/api/use-general-stats.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/services/api/use-graph-page-chart-data.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/services/api/use-hcaptcha-general-stats.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/services/api/use-hmt-price.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/services/api/use-leaderboard-details.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/services/api/use-transaction-details.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/services/global.type.ts (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/services/handle-error-message.ts (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/services/http-service.ts (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/services/validate-response.ts (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/theme.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/utils/config/networks.ts (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/utils/hooks/use-escrows-details-dto.ts (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/utils/hooks/use-filtered-networks.ts (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/utils/hooks/use-graph-page-chart-params.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/utils/hooks/use-is-mobile.tsx (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/utils/hooks/use-leaderboard-search.ts (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/utils/hooks/use-transactions-details-dto.ts (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/utils/hooks/use-wallet-search.ts (100%) rename packages/apps/dashboard/{ui-2024 => client}/src/vite-env.d.ts (100%) rename packages/apps/dashboard/{ui-2024 => client}/tsconfig.json (100%) rename packages/apps/dashboard/{ui-2024 => client}/tsconfig.node.json (100%) rename packages/apps/dashboard/{ui-2024 => client}/vercel.json (100%) rename packages/apps/dashboard/{ui-2024 => client}/vite.config.ts (100%) delete mode 100644 packages/apps/dashboard/ui-2024/README.md diff --git a/package.json b/package.json index 986078ff8c..2186faff70 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "license": "MIT", "scripts": { "test": "concurrently \"yarn workspace @human-protocol/core test\" \"yarn workspace @human-protocol/sdk test\" \"yarn workspace @human-protocol/subgraph test\" \"yarn workspace @human-protocol/faucet-server test\" \"yarn workspace @human-protocol/job-launcher-server test\" \"yarn workspace @human-protocol/job-launcher-client test\" \"yarn workspace @human-protocol/human-app-frontend test\" \"yarn workspace @human-protocol/human-app-server test\" \"yarn workspace @human-protocol/reputation-oracle test\" \"yarn workspace @human-protocol/fortune-exchange-oracle-server test\" \"yarn workspace @human-protocol/fortune-recording-oracle test\"", - "lint": "concurrently \"yarn workspace @human-protocol/core lint\" \"yarn workspace @human-protocol/sdk lint\" \"yarn workspace @human-protocol/subgraph lint\" \"yarn workspace @human-protocol/faucet-client lint\" \"yarn workspace @human-protocol/faucet-server lint\" \"yarn workspace @human-protocol/job-launcher-server lint\" \"yarn workspace @human-protocol/job-launcher-client lint\" \"yarn workspace @human-protocol/human-app-frontend lint\" \"yarn workspace @human-protocol/human-app-server lint\" \"yarn workspace @human-protocol/reputation-oracle lint\" \"yarn workspace @human-protocol/fortune-exchange-oracle-server lint\" \"yarn workspace @human-protocol/fortune-recording-oracle lint\" \"yarn workspace @human-protocol/dashboard-ui-2024 lint\"", + "lint": "concurrently \"yarn workspace @human-protocol/core lint\" \"yarn workspace @human-protocol/sdk lint\" \"yarn workspace @human-protocol/subgraph lint\" \"yarn workspace @human-protocol/faucet-client lint\" \"yarn workspace @human-protocol/faucet-server lint\" \"yarn workspace @human-protocol/job-launcher-server lint\" \"yarn workspace @human-protocol/job-launcher-client lint\" \"yarn workspace @human-protocol/human-app-frontend lint\" \"yarn workspace @human-protocol/human-app-server lint\" \"yarn workspace @human-protocol/reputation-oracle lint\" \"yarn workspace @human-protocol/fortune-exchange-oracle-server lint\" \"yarn workspace @human-protocol/fortune-recording-oracle lint\" \"yarn workspace @human-protocol/dashboard-client lint\"", "prepare": "husky", "postinstall": "yarn workspace @human-protocol/sdk build" }, diff --git a/packages/apps/dashboard/ui-2024/.env.example b/packages/apps/dashboard/client/.env.example similarity index 100% rename from packages/apps/dashboard/ui-2024/.env.example rename to packages/apps/dashboard/client/.env.example diff --git a/packages/apps/dashboard/ui-2024/.eslintrc.cjs b/packages/apps/dashboard/client/.eslintrc.cjs similarity index 100% rename from packages/apps/dashboard/ui-2024/.eslintrc.cjs rename to packages/apps/dashboard/client/.eslintrc.cjs diff --git a/packages/apps/dashboard/ui-2024/.gitignore b/packages/apps/dashboard/client/.gitignore similarity index 100% rename from packages/apps/dashboard/ui-2024/.gitignore rename to packages/apps/dashboard/client/.gitignore diff --git a/packages/apps/dashboard/ui-2024/.prettierrc b/packages/apps/dashboard/client/.prettierrc similarity index 100% rename from packages/apps/dashboard/ui-2024/.prettierrc rename to packages/apps/dashboard/client/.prettierrc diff --git a/packages/apps/dashboard/client/README.md b/packages/apps/dashboard/client/README.md new file mode 100644 index 0000000000..b56a184f9f --- /dev/null +++ b/packages/apps/dashboard/client/README.md @@ -0,0 +1,78 @@ +

+ Human Protocol +

+ +

Dashboard Client

+

The Dashboard Client is a client application for managing operations on the Human Protocol. It provides a user-friendly interface for checking with the protocol activity.

+ +## 🚀 Getting Started + +### Prerequisites + +- Node.js +- Yarn (as a package manager) + +### Installation + +First, install the dependencies: + +```bash +$ yarn install +``` + +### Environment Variables + +The application requires environment variables to function correctly. Create a `.env` file, use the `.env.example` file as a template: + +```bash +$ cp .env.example .env +``` + +### Running the Application + +#### Development + +To start the application in development mode: + +```bash +$ yarn start +``` + +#### Production + +To build and start the application in production mode: + +```bash +$ yarn build +$ yarn start:prod +``` + +#### Preview + +To preview the production build: + +```bash +$ yarn preview +``` + +## 🔧 Commands + +### Linting + +To lint the codebase: + +```bash +$ yarn lint +``` + +### Formatting + +To format the codebase with Prettier and ESLint: + +```bash +$ yarn format +``` + +## 📝 License + +This project is licensed under the MIT License. See the LICENSE file for more details. diff --git a/packages/apps/dashboard/ui-2024/index.html b/packages/apps/dashboard/client/index.html similarity index 100% rename from packages/apps/dashboard/ui-2024/index.html rename to packages/apps/dashboard/client/index.html diff --git a/packages/apps/dashboard/ui-2024/package.json b/packages/apps/dashboard/client/package.json similarity index 97% rename from packages/apps/dashboard/ui-2024/package.json rename to packages/apps/dashboard/client/package.json index ede1ec9e8d..c869ab3c16 100644 --- a/packages/apps/dashboard/ui-2024/package.json +++ b/packages/apps/dashboard/client/package.json @@ -1,6 +1,6 @@ { "private": "true", - "name": "@human-protocol/dashboard-ui-2024", + "name": "@human-protocol/dashboard-client", "version": "1.0.0", "description": "Human Protocol Dashboard", "license": "MIT", diff --git a/packages/apps/dashboard/ui-2024/public/vite.svg b/packages/apps/dashboard/client/public/vite.svg similarity index 100% rename from packages/apps/dashboard/ui-2024/public/vite.svg rename to packages/apps/dashboard/client/public/vite.svg diff --git a/packages/apps/dashboard/ui-2024/src/App.css b/packages/apps/dashboard/client/src/App.css similarity index 100% rename from packages/apps/dashboard/ui-2024/src/App.css rename to packages/apps/dashboard/client/src/App.css diff --git a/packages/apps/dashboard/ui-2024/src/App.tsx b/packages/apps/dashboard/client/src/App.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/App.tsx rename to packages/apps/dashboard/client/src/App.tsx diff --git a/packages/apps/dashboard/ui-2024/src/assets/bing.png b/packages/apps/dashboard/client/src/assets/bing.png similarity index 100% rename from packages/apps/dashboard/ui-2024/src/assets/bing.png rename to packages/apps/dashboard/client/src/assets/bing.png diff --git a/packages/apps/dashboard/ui-2024/src/assets/bitfinex.png b/packages/apps/dashboard/client/src/assets/bitfinex.png similarity index 100% rename from packages/apps/dashboard/ui-2024/src/assets/bitfinex.png rename to packages/apps/dashboard/client/src/assets/bitfinex.png diff --git a/packages/apps/dashboard/ui-2024/src/assets/coinlist.png b/packages/apps/dashboard/client/src/assets/coinlist.png similarity index 100% rename from packages/apps/dashboard/ui-2024/src/assets/coinlist.png rename to packages/apps/dashboard/client/src/assets/coinlist.png diff --git a/packages/apps/dashboard/ui-2024/src/assets/ethereum.png b/packages/apps/dashboard/client/src/assets/ethereum.png similarity index 100% rename from packages/apps/dashboard/ui-2024/src/assets/ethereum.png rename to packages/apps/dashboard/client/src/assets/ethereum.png diff --git a/packages/apps/dashboard/ui-2024/src/assets/exchange.png b/packages/apps/dashboard/client/src/assets/exchange.png similarity index 100% rename from packages/apps/dashboard/ui-2024/src/assets/exchange.png rename to packages/apps/dashboard/client/src/assets/exchange.png diff --git a/packages/apps/dashboard/ui-2024/src/assets/gate.png b/packages/apps/dashboard/client/src/assets/gate.png similarity index 100% rename from packages/apps/dashboard/ui-2024/src/assets/gate.png rename to packages/apps/dashboard/client/src/assets/gate.png diff --git a/packages/apps/dashboard/ui-2024/src/assets/human.png b/packages/apps/dashboard/client/src/assets/human.png similarity index 100% rename from packages/apps/dashboard/ui-2024/src/assets/human.png rename to packages/apps/dashboard/client/src/assets/human.png diff --git a/packages/apps/dashboard/ui-2024/src/assets/icons/binance.svg b/packages/apps/dashboard/client/src/assets/icons/binance.svg similarity index 100% rename from packages/apps/dashboard/ui-2024/src/assets/icons/binance.svg rename to packages/apps/dashboard/client/src/assets/icons/binance.svg diff --git a/packages/apps/dashboard/ui-2024/src/assets/icons/celo.svg b/packages/apps/dashboard/client/src/assets/icons/celo.svg similarity index 100% rename from packages/apps/dashboard/ui-2024/src/assets/icons/celo.svg rename to packages/apps/dashboard/client/src/assets/icons/celo.svg diff --git a/packages/apps/dashboard/ui-2024/src/assets/icons/discord.svg b/packages/apps/dashboard/client/src/assets/icons/discord.svg similarity index 100% rename from packages/apps/dashboard/ui-2024/src/assets/icons/discord.svg rename to packages/apps/dashboard/client/src/assets/icons/discord.svg diff --git a/packages/apps/dashboard/ui-2024/src/assets/icons/ethereum.svg b/packages/apps/dashboard/client/src/assets/icons/ethereum.svg similarity index 100% rename from packages/apps/dashboard/ui-2024/src/assets/icons/ethereum.svg rename to packages/apps/dashboard/client/src/assets/icons/ethereum.svg diff --git a/packages/apps/dashboard/ui-2024/src/assets/icons/exchange-oracle.svg b/packages/apps/dashboard/client/src/assets/icons/exchange-oracle.svg similarity index 100% rename from packages/apps/dashboard/ui-2024/src/assets/icons/exchange-oracle.svg rename to packages/apps/dashboard/client/src/assets/icons/exchange-oracle.svg diff --git a/packages/apps/dashboard/ui-2024/src/assets/icons/excluded/escrow.svg b/packages/apps/dashboard/client/src/assets/icons/excluded/escrow.svg similarity index 100% rename from packages/apps/dashboard/ui-2024/src/assets/icons/excluded/escrow.svg rename to packages/apps/dashboard/client/src/assets/icons/excluded/escrow.svg diff --git a/packages/apps/dashboard/ui-2024/src/assets/icons/excluded/wallet.svg b/packages/apps/dashboard/client/src/assets/icons/excluded/wallet.svg similarity index 100% rename from packages/apps/dashboard/ui-2024/src/assets/icons/excluded/wallet.svg rename to packages/apps/dashboard/client/src/assets/icons/excluded/wallet.svg diff --git a/packages/apps/dashboard/ui-2024/src/assets/icons/human-app.svg b/packages/apps/dashboard/client/src/assets/icons/human-app.svg similarity index 100% rename from packages/apps/dashboard/ui-2024/src/assets/icons/human-app.svg rename to packages/apps/dashboard/client/src/assets/icons/human-app.svg diff --git a/packages/apps/dashboard/ui-2024/src/assets/icons/job-launcher.svg b/packages/apps/dashboard/client/src/assets/icons/job-launcher.svg similarity index 100% rename from packages/apps/dashboard/ui-2024/src/assets/icons/job-launcher.svg rename to packages/apps/dashboard/client/src/assets/icons/job-launcher.svg diff --git a/packages/apps/dashboard/ui-2024/src/assets/icons/moonbeam.svg b/packages/apps/dashboard/client/src/assets/icons/moonbeam.svg similarity index 100% rename from packages/apps/dashboard/ui-2024/src/assets/icons/moonbeam.svg rename to packages/apps/dashboard/client/src/assets/icons/moonbeam.svg diff --git a/packages/apps/dashboard/ui-2024/src/assets/icons/okx.svg b/packages/apps/dashboard/client/src/assets/icons/okx.svg similarity index 100% rename from packages/apps/dashboard/ui-2024/src/assets/icons/okx.svg rename to packages/apps/dashboard/client/src/assets/icons/okx.svg diff --git a/packages/apps/dashboard/ui-2024/src/assets/icons/polygon.svg b/packages/apps/dashboard/client/src/assets/icons/polygon.svg similarity index 100% rename from packages/apps/dashboard/ui-2024/src/assets/icons/polygon.svg rename to packages/apps/dashboard/client/src/assets/icons/polygon.svg diff --git a/packages/apps/dashboard/ui-2024/src/assets/icons/recording-oracle.svg b/packages/apps/dashboard/client/src/assets/icons/recording-oracle.svg similarity index 100% rename from packages/apps/dashboard/ui-2024/src/assets/icons/recording-oracle.svg rename to packages/apps/dashboard/client/src/assets/icons/recording-oracle.svg diff --git a/packages/apps/dashboard/ui-2024/src/assets/icons/reputation-oracle.svg b/packages/apps/dashboard/client/src/assets/icons/reputation-oracle.svg similarity index 100% rename from packages/apps/dashboard/ui-2024/src/assets/icons/reputation-oracle.svg rename to packages/apps/dashboard/client/src/assets/icons/reputation-oracle.svg diff --git a/packages/apps/dashboard/ui-2024/src/assets/icons/xlayer.svg b/packages/apps/dashboard/client/src/assets/icons/xlayer.svg similarity index 100% rename from packages/apps/dashboard/ui-2024/src/assets/icons/xlayer.svg rename to packages/apps/dashboard/client/src/assets/icons/xlayer.svg diff --git a/packages/apps/dashboard/ui-2024/src/assets/lbank.png b/packages/apps/dashboard/client/src/assets/lbank.png similarity index 100% rename from packages/apps/dashboard/ui-2024/src/assets/lbank.png rename to packages/apps/dashboard/client/src/assets/lbank.png diff --git a/packages/apps/dashboard/ui-2024/src/assets/logo-mobile.png b/packages/apps/dashboard/client/src/assets/logo-mobile.png similarity index 100% rename from packages/apps/dashboard/ui-2024/src/assets/logo-mobile.png rename to packages/apps/dashboard/client/src/assets/logo-mobile.png diff --git a/packages/apps/dashboard/ui-2024/src/assets/logo.png b/packages/apps/dashboard/client/src/assets/logo.png similarity index 100% rename from packages/apps/dashboard/ui-2024/src/assets/logo.png rename to packages/apps/dashboard/client/src/assets/logo.png diff --git a/packages/apps/dashboard/ui-2024/src/assets/probitGlobal.png b/packages/apps/dashboard/client/src/assets/probitGlobal.png similarity index 100% rename from packages/apps/dashboard/ui-2024/src/assets/probitGlobal.png rename to packages/apps/dashboard/client/src/assets/probitGlobal.png diff --git a/packages/apps/dashboard/ui-2024/src/assets/react.svg b/packages/apps/dashboard/client/src/assets/react.svg similarity index 100% rename from packages/apps/dashboard/ui-2024/src/assets/react.svg rename to packages/apps/dashboard/client/src/assets/react.svg diff --git a/packages/apps/dashboard/ui-2024/src/assets/recording.png b/packages/apps/dashboard/client/src/assets/recording.png similarity index 100% rename from packages/apps/dashboard/ui-2024/src/assets/recording.png rename to packages/apps/dashboard/client/src/assets/recording.png diff --git a/packages/apps/dashboard/ui-2024/src/assets/reputation.png b/packages/apps/dashboard/client/src/assets/reputation.png similarity index 100% rename from packages/apps/dashboard/ui-2024/src/assets/reputation.png rename to packages/apps/dashboard/client/src/assets/reputation.png diff --git a/packages/apps/dashboard/ui-2024/src/assets/styles/_breadcrumbs.scss b/packages/apps/dashboard/client/src/assets/styles/_breadcrumbs.scss similarity index 100% rename from packages/apps/dashboard/ui-2024/src/assets/styles/_breadcrumbs.scss rename to packages/apps/dashboard/client/src/assets/styles/_breadcrumbs.scss diff --git a/packages/apps/dashboard/ui-2024/src/assets/styles/_const.scss b/packages/apps/dashboard/client/src/assets/styles/_const.scss similarity index 100% rename from packages/apps/dashboard/ui-2024/src/assets/styles/_const.scss rename to packages/apps/dashboard/client/src/assets/styles/_const.scss diff --git a/packages/apps/dashboard/ui-2024/src/assets/styles/_footer.scss b/packages/apps/dashboard/client/src/assets/styles/_footer.scss similarity index 100% rename from packages/apps/dashboard/ui-2024/src/assets/styles/_footer.scss rename to packages/apps/dashboard/client/src/assets/styles/_footer.scss diff --git a/packages/apps/dashboard/ui-2024/src/assets/styles/_graph-swipper.scss b/packages/apps/dashboard/client/src/assets/styles/_graph-swipper.scss similarity index 100% rename from packages/apps/dashboard/ui-2024/src/assets/styles/_graph-swipper.scss rename to packages/apps/dashboard/client/src/assets/styles/_graph-swipper.scss diff --git a/packages/apps/dashboard/ui-2024/src/assets/styles/_header.scss b/packages/apps/dashboard/client/src/assets/styles/_header.scss similarity index 100% rename from packages/apps/dashboard/ui-2024/src/assets/styles/_header.scss rename to packages/apps/dashboard/client/src/assets/styles/_header.scss diff --git a/packages/apps/dashboard/ui-2024/src/assets/styles/_home-page.scss b/packages/apps/dashboard/client/src/assets/styles/_home-page.scss similarity index 100% rename from packages/apps/dashboard/ui-2024/src/assets/styles/_home-page.scss rename to packages/apps/dashboard/client/src/assets/styles/_home-page.scss diff --git a/packages/apps/dashboard/ui-2024/src/assets/styles/_nothing-found.scss b/packages/apps/dashboard/client/src/assets/styles/_nothing-found.scss similarity index 100% rename from packages/apps/dashboard/ui-2024/src/assets/styles/_nothing-found.scss rename to packages/apps/dashboard/client/src/assets/styles/_nothing-found.scss diff --git a/packages/apps/dashboard/ui-2024/src/assets/styles/_page-wrapper.scss b/packages/apps/dashboard/client/src/assets/styles/_page-wrapper.scss similarity index 100% rename from packages/apps/dashboard/ui-2024/src/assets/styles/_page-wrapper.scss rename to packages/apps/dashboard/client/src/assets/styles/_page-wrapper.scss diff --git a/packages/apps/dashboard/ui-2024/src/assets/styles/_search.scss b/packages/apps/dashboard/client/src/assets/styles/_search.scss similarity index 100% rename from packages/apps/dashboard/ui-2024/src/assets/styles/_search.scss rename to packages/apps/dashboard/client/src/assets/styles/_search.scss diff --git a/packages/apps/dashboard/ui-2024/src/assets/styles/_shadow-icon.scss b/packages/apps/dashboard/client/src/assets/styles/_shadow-icon.scss similarity index 100% rename from packages/apps/dashboard/ui-2024/src/assets/styles/_shadow-icon.scss rename to packages/apps/dashboard/client/src/assets/styles/_shadow-icon.scss diff --git a/packages/apps/dashboard/ui-2024/src/assets/styles/color-palette.ts b/packages/apps/dashboard/client/src/assets/styles/color-palette.ts similarity index 100% rename from packages/apps/dashboard/ui-2024/src/assets/styles/color-palette.ts rename to packages/apps/dashboard/client/src/assets/styles/color-palette.ts diff --git a/packages/apps/dashboard/ui-2024/src/assets/styles/favicon.ico b/packages/apps/dashboard/client/src/assets/styles/favicon.ico similarity index 100% rename from packages/apps/dashboard/ui-2024/src/assets/styles/favicon.ico rename to packages/apps/dashboard/client/src/assets/styles/favicon.ico diff --git a/packages/apps/dashboard/ui-2024/src/assets/styles/main.scss b/packages/apps/dashboard/client/src/assets/styles/main.scss similarity index 100% rename from packages/apps/dashboard/ui-2024/src/assets/styles/main.scss rename to packages/apps/dashboard/client/src/assets/styles/main.scss diff --git a/packages/apps/dashboard/ui-2024/src/components/Breadcrumbs/Breadcrumbs.tsx b/packages/apps/dashboard/client/src/components/Breadcrumbs/Breadcrumbs.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/Breadcrumbs/Breadcrumbs.tsx rename to packages/apps/dashboard/client/src/components/Breadcrumbs/Breadcrumbs.tsx diff --git a/packages/apps/dashboard/ui-2024/src/components/Breadcrumbs/index.ts b/packages/apps/dashboard/client/src/components/Breadcrumbs/index.ts similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/Breadcrumbs/index.ts rename to packages/apps/dashboard/client/src/components/Breadcrumbs/index.ts diff --git a/packages/apps/dashboard/ui-2024/src/components/Charts/AreaChart.tsx b/packages/apps/dashboard/client/src/components/Charts/AreaChart.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/Charts/AreaChart.tsx rename to packages/apps/dashboard/client/src/components/Charts/AreaChart.tsx diff --git a/packages/apps/dashboard/ui-2024/src/components/Charts/CustomChartTooltip.tsx b/packages/apps/dashboard/client/src/components/Charts/CustomChartTooltip.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/Charts/CustomChartTooltip.tsx rename to packages/apps/dashboard/client/src/components/Charts/CustomChartTooltip.tsx diff --git a/packages/apps/dashboard/ui-2024/src/components/Charts/CustomXAxisTick.tsx b/packages/apps/dashboard/client/src/components/Charts/CustomXAxisTick.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/Charts/CustomXAxisTick.tsx rename to packages/apps/dashboard/client/src/components/Charts/CustomXAxisTick.tsx diff --git a/packages/apps/dashboard/ui-2024/src/components/Charts/ToggleCharts.tsx b/packages/apps/dashboard/client/src/components/Charts/ToggleCharts.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/Charts/ToggleCharts.tsx rename to packages/apps/dashboard/client/src/components/Charts/ToggleCharts.tsx diff --git a/packages/apps/dashboard/ui-2024/src/components/Charts/index.ts b/packages/apps/dashboard/client/src/components/Charts/index.ts similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/Charts/index.ts rename to packages/apps/dashboard/client/src/components/Charts/index.ts diff --git a/packages/apps/dashboard/ui-2024/src/components/Clipboard/Clipboard.tsx b/packages/apps/dashboard/client/src/components/Clipboard/Clipboard.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/Clipboard/Clipboard.tsx rename to packages/apps/dashboard/client/src/components/Clipboard/Clipboard.tsx diff --git a/packages/apps/dashboard/ui-2024/src/components/Clipboard/index.ts b/packages/apps/dashboard/client/src/components/Clipboard/index.ts similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/Clipboard/index.ts rename to packages/apps/dashboard/client/src/components/Clipboard/index.ts diff --git a/packages/apps/dashboard/ui-2024/src/components/CustomTooltip/CustomTooltip.tsx b/packages/apps/dashboard/client/src/components/CustomTooltip/CustomTooltip.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/CustomTooltip/CustomTooltip.tsx rename to packages/apps/dashboard/client/src/components/CustomTooltip/CustomTooltip.tsx diff --git a/packages/apps/dashboard/ui-2024/src/components/CustomTooltip/index.tsx b/packages/apps/dashboard/client/src/components/CustomTooltip/index.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/CustomTooltip/index.tsx rename to packages/apps/dashboard/client/src/components/CustomTooltip/index.tsx diff --git a/packages/apps/dashboard/ui-2024/src/components/DataEntry/DatePicker.tsx b/packages/apps/dashboard/client/src/components/DataEntry/DatePicker.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/DataEntry/DatePicker.tsx rename to packages/apps/dashboard/client/src/components/DataEntry/DatePicker.tsx diff --git a/packages/apps/dashboard/ui-2024/src/components/DataEntry/ToggleButtons.tsx b/packages/apps/dashboard/client/src/components/DataEntry/ToggleButtons.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/DataEntry/ToggleButtons.tsx rename to packages/apps/dashboard/client/src/components/DataEntry/ToggleButtons.tsx diff --git a/packages/apps/dashboard/ui-2024/src/components/DataEntry/index.ts b/packages/apps/dashboard/client/src/components/DataEntry/index.ts similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/DataEntry/index.ts rename to packages/apps/dashboard/client/src/components/DataEntry/index.ts diff --git a/packages/apps/dashboard/ui-2024/src/components/Footer/Footer.tsx b/packages/apps/dashboard/client/src/components/Footer/Footer.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/Footer/Footer.tsx rename to packages/apps/dashboard/client/src/components/Footer/Footer.tsx diff --git a/packages/apps/dashboard/ui-2024/src/components/Footer/index.ts b/packages/apps/dashboard/client/src/components/Footer/index.ts similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/Footer/index.ts rename to packages/apps/dashboard/client/src/components/Footer/index.ts diff --git a/packages/apps/dashboard/ui-2024/src/components/Header/Header.tsx b/packages/apps/dashboard/client/src/components/Header/Header.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/Header/Header.tsx rename to packages/apps/dashboard/client/src/components/Header/Header.tsx diff --git a/packages/apps/dashboard/ui-2024/src/components/Header/index.ts b/packages/apps/dashboard/client/src/components/Header/index.ts similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/Header/index.ts rename to packages/apps/dashboard/client/src/components/Header/index.ts diff --git a/packages/apps/dashboard/ui-2024/src/components/Home/FormatNumber.tsx b/packages/apps/dashboard/client/src/components/Home/FormatNumber.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/Home/FormatNumber.tsx rename to packages/apps/dashboard/client/src/components/Home/FormatNumber.tsx diff --git a/packages/apps/dashboard/ui-2024/src/components/Home/GraphSwiper.tsx b/packages/apps/dashboard/client/src/components/Home/GraphSwiper.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/Home/GraphSwiper.tsx rename to packages/apps/dashboard/client/src/components/Home/GraphSwiper.tsx diff --git a/packages/apps/dashboard/ui-2024/src/components/Home/SmallGraph.tsx b/packages/apps/dashboard/client/src/components/Home/SmallGraph.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/Home/SmallGraph.tsx rename to packages/apps/dashboard/client/src/components/Home/SmallGraph.tsx diff --git a/packages/apps/dashboard/ui-2024/src/components/Home/index.ts b/packages/apps/dashboard/client/src/components/Home/index.ts similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/Home/index.ts rename to packages/apps/dashboard/client/src/components/Home/index.ts diff --git a/packages/apps/dashboard/ui-2024/src/components/Icons/AvalancheIcon.tsx b/packages/apps/dashboard/client/src/components/Icons/AvalancheIcon.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/Icons/AvalancheIcon.tsx rename to packages/apps/dashboard/client/src/components/Icons/AvalancheIcon.tsx diff --git a/packages/apps/dashboard/ui-2024/src/components/Icons/BinanceSmartChainIcon.tsx b/packages/apps/dashboard/client/src/components/Icons/BinanceSmartChainIcon.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/Icons/BinanceSmartChainIcon.tsx rename to packages/apps/dashboard/client/src/components/Icons/BinanceSmartChainIcon.tsx diff --git a/packages/apps/dashboard/ui-2024/src/components/Icons/CeloIcon.tsx b/packages/apps/dashboard/client/src/components/Icons/CeloIcon.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/Icons/CeloIcon.tsx rename to packages/apps/dashboard/client/src/components/Icons/CeloIcon.tsx diff --git a/packages/apps/dashboard/ui-2024/src/components/Icons/DiscordIcon.tsx b/packages/apps/dashboard/client/src/components/Icons/DiscordIcon.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/Icons/DiscordIcon.tsx rename to packages/apps/dashboard/client/src/components/Icons/DiscordIcon.tsx diff --git a/packages/apps/dashboard/ui-2024/src/components/Icons/EscrowAddressIcon.tsx b/packages/apps/dashboard/client/src/components/Icons/EscrowAddressIcon.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/Icons/EscrowAddressIcon.tsx rename to packages/apps/dashboard/client/src/components/Icons/EscrowAddressIcon.tsx diff --git a/packages/apps/dashboard/ui-2024/src/components/Icons/EthereumIcon.tsx b/packages/apps/dashboard/client/src/components/Icons/EthereumIcon.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/Icons/EthereumIcon.tsx rename to packages/apps/dashboard/client/src/components/Icons/EthereumIcon.tsx diff --git a/packages/apps/dashboard/ui-2024/src/components/Icons/ExchangeOracleIcon.tsx b/packages/apps/dashboard/client/src/components/Icons/ExchangeOracleIcon.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/Icons/ExchangeOracleIcon.tsx rename to packages/apps/dashboard/client/src/components/Icons/ExchangeOracleIcon.tsx diff --git a/packages/apps/dashboard/ui-2024/src/components/Icons/HumanIcon.tsx b/packages/apps/dashboard/client/src/components/Icons/HumanIcon.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/Icons/HumanIcon.tsx rename to packages/apps/dashboard/client/src/components/Icons/HumanIcon.tsx diff --git a/packages/apps/dashboard/ui-2024/src/components/Icons/JobLauncher.tsx b/packages/apps/dashboard/client/src/components/Icons/JobLauncher.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/Icons/JobLauncher.tsx rename to packages/apps/dashboard/client/src/components/Icons/JobLauncher.tsx diff --git a/packages/apps/dashboard/ui-2024/src/components/Icons/LeaderboardIcon.tsx b/packages/apps/dashboard/client/src/components/Icons/LeaderboardIcon.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/Icons/LeaderboardIcon.tsx rename to packages/apps/dashboard/client/src/components/Icons/LeaderboardIcon.tsx diff --git a/packages/apps/dashboard/ui-2024/src/components/Icons/LogoBlockIcon.tsx b/packages/apps/dashboard/client/src/components/Icons/LogoBlockIcon.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/Icons/LogoBlockIcon.tsx rename to packages/apps/dashboard/client/src/components/Icons/LogoBlockIcon.tsx diff --git a/packages/apps/dashboard/ui-2024/src/components/Icons/LogoBlockIconMobile.tsx b/packages/apps/dashboard/client/src/components/Icons/LogoBlockIconMobile.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/Icons/LogoBlockIconMobile.tsx rename to packages/apps/dashboard/client/src/components/Icons/LogoBlockIconMobile.tsx diff --git a/packages/apps/dashboard/ui-2024/src/components/Icons/MoonbaseAlphaIcon.tsx b/packages/apps/dashboard/client/src/components/Icons/MoonbaseAlphaIcon.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/Icons/MoonbaseAlphaIcon.tsx rename to packages/apps/dashboard/client/src/components/Icons/MoonbaseAlphaIcon.tsx diff --git a/packages/apps/dashboard/ui-2024/src/components/Icons/MoonbeamIcon.tsx b/packages/apps/dashboard/client/src/components/Icons/MoonbeamIcon.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/Icons/MoonbeamIcon.tsx rename to packages/apps/dashboard/client/src/components/Icons/MoonbeamIcon.tsx diff --git a/packages/apps/dashboard/ui-2024/src/components/Icons/PolygonIcon.tsx b/packages/apps/dashboard/client/src/components/Icons/PolygonIcon.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/Icons/PolygonIcon.tsx rename to packages/apps/dashboard/client/src/components/Icons/PolygonIcon.tsx diff --git a/packages/apps/dashboard/ui-2024/src/components/Icons/RecordingOracle.tsx b/packages/apps/dashboard/client/src/components/Icons/RecordingOracle.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/Icons/RecordingOracle.tsx rename to packages/apps/dashboard/client/src/components/Icons/RecordingOracle.tsx diff --git a/packages/apps/dashboard/ui-2024/src/components/Icons/ReputationOracle.tsx b/packages/apps/dashboard/client/src/components/Icons/ReputationOracle.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/Icons/ReputationOracle.tsx rename to packages/apps/dashboard/client/src/components/Icons/ReputationOracle.tsx diff --git a/packages/apps/dashboard/ui-2024/src/components/Icons/WalletIcon.tsx b/packages/apps/dashboard/client/src/components/Icons/WalletIcon.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/Icons/WalletIcon.tsx rename to packages/apps/dashboard/client/src/components/Icons/WalletIcon.tsx diff --git a/packages/apps/dashboard/ui-2024/src/components/Icons/XLayerIcon.tsx b/packages/apps/dashboard/client/src/components/Icons/XLayerIcon.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/Icons/XLayerIcon.tsx rename to packages/apps/dashboard/client/src/components/Icons/XLayerIcon.tsx diff --git a/packages/apps/dashboard/ui-2024/src/components/Loader/index.tsx b/packages/apps/dashboard/client/src/components/Loader/index.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/Loader/index.tsx rename to packages/apps/dashboard/client/src/components/Loader/index.tsx diff --git a/packages/apps/dashboard/ui-2024/src/components/NetworkIcon/index.tsx b/packages/apps/dashboard/client/src/components/NetworkIcon/index.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/NetworkIcon/index.tsx rename to packages/apps/dashboard/client/src/components/NetworkIcon/index.tsx diff --git a/packages/apps/dashboard/ui-2024/src/components/NothingFound/NothingFound.tsx b/packages/apps/dashboard/client/src/components/NothingFound/NothingFound.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/NothingFound/NothingFound.tsx rename to packages/apps/dashboard/client/src/components/NothingFound/NothingFound.tsx diff --git a/packages/apps/dashboard/ui-2024/src/components/NothingFound/index.ts b/packages/apps/dashboard/client/src/components/NothingFound/index.ts similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/NothingFound/index.ts rename to packages/apps/dashboard/client/src/components/NothingFound/index.ts diff --git a/packages/apps/dashboard/ui-2024/src/components/PageWrapper/PageWrapper.tsx b/packages/apps/dashboard/client/src/components/PageWrapper/PageWrapper.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/PageWrapper/PageWrapper.tsx rename to packages/apps/dashboard/client/src/components/PageWrapper/PageWrapper.tsx diff --git a/packages/apps/dashboard/ui-2024/src/components/PageWrapper/index.ts b/packages/apps/dashboard/client/src/components/PageWrapper/index.ts similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/PageWrapper/index.ts rename to packages/apps/dashboard/client/src/components/PageWrapper/index.ts diff --git a/packages/apps/dashboard/ui-2024/src/components/SearchBar/SearchBar.styles.ts b/packages/apps/dashboard/client/src/components/SearchBar/SearchBar.styles.ts similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/SearchBar/SearchBar.styles.ts rename to packages/apps/dashboard/client/src/components/SearchBar/SearchBar.styles.ts diff --git a/packages/apps/dashboard/ui-2024/src/components/SearchBar/SearchBar.tsx b/packages/apps/dashboard/client/src/components/SearchBar/SearchBar.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/SearchBar/SearchBar.tsx rename to packages/apps/dashboard/client/src/components/SearchBar/SearchBar.tsx diff --git a/packages/apps/dashboard/ui-2024/src/components/SearchResults/AbbreviateClipboard.tsx b/packages/apps/dashboard/client/src/components/SearchResults/AbbreviateClipboard.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/SearchResults/AbbreviateClipboard.tsx rename to packages/apps/dashboard/client/src/components/SearchResults/AbbreviateClipboard.tsx diff --git a/packages/apps/dashboard/ui-2024/src/components/SearchResults/TitleSectionWrapper.tsx b/packages/apps/dashboard/client/src/components/SearchResults/TitleSectionWrapper.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/SearchResults/TitleSectionWrapper.tsx rename to packages/apps/dashboard/client/src/components/SearchResults/TitleSectionWrapper.tsx diff --git a/packages/apps/dashboard/ui-2024/src/components/SearchResults/index.ts b/packages/apps/dashboard/client/src/components/SearchResults/index.ts similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/SearchResults/index.ts rename to packages/apps/dashboard/client/src/components/SearchResults/index.ts diff --git a/packages/apps/dashboard/ui-2024/src/components/ShadowIcon/ShadowIcon.tsx b/packages/apps/dashboard/client/src/components/ShadowIcon/ShadowIcon.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/ShadowIcon/ShadowIcon.tsx rename to packages/apps/dashboard/client/src/components/ShadowIcon/ShadowIcon.tsx diff --git a/packages/apps/dashboard/ui-2024/src/components/ShadowIcon/index.ts b/packages/apps/dashboard/client/src/components/ShadowIcon/index.ts similarity index 100% rename from packages/apps/dashboard/ui-2024/src/components/ShadowIcon/index.ts rename to packages/apps/dashboard/client/src/components/ShadowIcon/index.ts diff --git a/packages/apps/dashboard/ui-2024/src/features/Leaderboard/components/AddressCell.tsx b/packages/apps/dashboard/client/src/features/Leaderboard/components/AddressCell.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/features/Leaderboard/components/AddressCell.tsx rename to packages/apps/dashboard/client/src/features/Leaderboard/components/AddressCell.tsx diff --git a/packages/apps/dashboard/ui-2024/src/features/Leaderboard/components/CategoryCell.tsx b/packages/apps/dashboard/client/src/features/Leaderboard/components/CategoryCell.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/features/Leaderboard/components/CategoryCell.tsx rename to packages/apps/dashboard/client/src/features/Leaderboard/components/CategoryCell.tsx diff --git a/packages/apps/dashboard/ui-2024/src/features/Leaderboard/components/ChainCell.tsx b/packages/apps/dashboard/client/src/features/Leaderboard/components/ChainCell.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/features/Leaderboard/components/ChainCell.tsx rename to packages/apps/dashboard/client/src/features/Leaderboard/components/ChainCell.tsx diff --git a/packages/apps/dashboard/ui-2024/src/features/Leaderboard/components/DataGridWrapper.tsx b/packages/apps/dashboard/client/src/features/Leaderboard/components/DataGridWrapper.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/features/Leaderboard/components/DataGridWrapper.tsx rename to packages/apps/dashboard/client/src/features/Leaderboard/components/DataGridWrapper.tsx diff --git a/packages/apps/dashboard/ui-2024/src/features/Leaderboard/components/EntityIcon.tsx b/packages/apps/dashboard/client/src/features/Leaderboard/components/EntityIcon.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/features/Leaderboard/components/EntityIcon.tsx rename to packages/apps/dashboard/client/src/features/Leaderboard/components/EntityIcon.tsx diff --git a/packages/apps/dashboard/ui-2024/src/features/Leaderboard/components/ReputationLabel.tsx b/packages/apps/dashboard/client/src/features/Leaderboard/components/ReputationLabel.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/features/Leaderboard/components/ReputationLabel.tsx rename to packages/apps/dashboard/client/src/features/Leaderboard/components/ReputationLabel.tsx diff --git a/packages/apps/dashboard/ui-2024/src/features/Leaderboard/components/RoleCell.tsx b/packages/apps/dashboard/client/src/features/Leaderboard/components/RoleCell.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/features/Leaderboard/components/RoleCell.tsx rename to packages/apps/dashboard/client/src/features/Leaderboard/components/RoleCell.tsx diff --git a/packages/apps/dashboard/ui-2024/src/features/Leaderboard/components/SelectNetwork.tsx b/packages/apps/dashboard/client/src/features/Leaderboard/components/SelectNetwork.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/features/Leaderboard/components/SelectNetwork.tsx rename to packages/apps/dashboard/client/src/features/Leaderboard/components/SelectNetwork.tsx diff --git a/packages/apps/dashboard/ui-2024/src/features/Leaderboard/components/TextCell.tsx b/packages/apps/dashboard/client/src/features/Leaderboard/components/TextCell.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/features/Leaderboard/components/TextCell.tsx rename to packages/apps/dashboard/client/src/features/Leaderboard/components/TextCell.tsx diff --git a/packages/apps/dashboard/ui-2024/src/features/Leaderboard/hooks/useDataGrid.tsx b/packages/apps/dashboard/client/src/features/Leaderboard/hooks/useDataGrid.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/features/Leaderboard/hooks/useDataGrid.tsx rename to packages/apps/dashboard/client/src/features/Leaderboard/hooks/useDataGrid.tsx diff --git a/packages/apps/dashboard/ui-2024/src/features/Leaderboard/hooks/useDatagridOptions.tsx b/packages/apps/dashboard/client/src/features/Leaderboard/hooks/useDatagridOptions.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/features/Leaderboard/hooks/useDatagridOptions.tsx rename to packages/apps/dashboard/client/src/features/Leaderboard/hooks/useDatagridOptions.tsx diff --git a/packages/apps/dashboard/ui-2024/src/features/Leaderboard/index.tsx b/packages/apps/dashboard/client/src/features/Leaderboard/index.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/features/Leaderboard/index.tsx rename to packages/apps/dashboard/client/src/features/Leaderboard/index.tsx diff --git a/packages/apps/dashboard/ui-2024/src/helpers/abbreviateValue.ts b/packages/apps/dashboard/client/src/helpers/abbreviateValue.ts similarity index 100% rename from packages/apps/dashboard/ui-2024/src/helpers/abbreviateValue.ts rename to packages/apps/dashboard/client/src/helpers/abbreviateValue.ts diff --git a/packages/apps/dashboard/ui-2024/src/helpers/env.ts b/packages/apps/dashboard/client/src/helpers/env.ts similarity index 100% rename from packages/apps/dashboard/ui-2024/src/helpers/env.ts rename to packages/apps/dashboard/client/src/helpers/env.ts diff --git a/packages/apps/dashboard/ui-2024/src/helpers/formatDate.ts b/packages/apps/dashboard/client/src/helpers/formatDate.ts similarity index 100% rename from packages/apps/dashboard/ui-2024/src/helpers/formatDate.ts rename to packages/apps/dashboard/client/src/helpers/formatDate.ts diff --git a/packages/apps/dashboard/ui-2024/src/helpers/formatHMTDecimals.ts b/packages/apps/dashboard/client/src/helpers/formatHMTDecimals.ts similarity index 100% rename from packages/apps/dashboard/ui-2024/src/helpers/formatHMTDecimals.ts rename to packages/apps/dashboard/client/src/helpers/formatHMTDecimals.ts diff --git a/packages/apps/dashboard/ui-2024/src/helpers/formatNumber.ts b/packages/apps/dashboard/client/src/helpers/formatNumber.ts similarity index 100% rename from packages/apps/dashboard/ui-2024/src/helpers/formatNumber.ts rename to packages/apps/dashboard/client/src/helpers/formatNumber.ts diff --git a/packages/apps/dashboard/ui-2024/src/helpers/index.ts b/packages/apps/dashboard/client/src/helpers/index.ts similarity index 100% rename from packages/apps/dashboard/ui-2024/src/helpers/index.ts rename to packages/apps/dashboard/client/src/helpers/index.ts diff --git a/packages/apps/dashboard/ui-2024/src/helpers/isValidEVMAddress.ts b/packages/apps/dashboard/client/src/helpers/isValidEVMAddress.ts similarity index 100% rename from packages/apps/dashboard/ui-2024/src/helpers/isValidEVMAddress.ts rename to packages/apps/dashboard/client/src/helpers/isValidEVMAddress.ts diff --git a/packages/apps/dashboard/ui-2024/src/index.css b/packages/apps/dashboard/client/src/index.css similarity index 100% rename from packages/apps/dashboard/ui-2024/src/index.css rename to packages/apps/dashboard/client/src/index.css diff --git a/packages/apps/dashboard/ui-2024/src/main.tsx b/packages/apps/dashboard/client/src/main.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/main.tsx rename to packages/apps/dashboard/client/src/main.tsx diff --git a/packages/apps/dashboard/ui-2024/src/pages/Graph/Graph.tsx b/packages/apps/dashboard/client/src/pages/Graph/Graph.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/pages/Graph/Graph.tsx rename to packages/apps/dashboard/client/src/pages/Graph/Graph.tsx diff --git a/packages/apps/dashboard/ui-2024/src/pages/Graph/index.ts b/packages/apps/dashboard/client/src/pages/Graph/index.ts similarity index 100% rename from packages/apps/dashboard/ui-2024/src/pages/Graph/index.ts rename to packages/apps/dashboard/client/src/pages/Graph/index.ts diff --git a/packages/apps/dashboard/ui-2024/src/pages/Home/HMTPrice.tsx b/packages/apps/dashboard/client/src/pages/Home/HMTPrice.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/pages/Home/HMTPrice.tsx rename to packages/apps/dashboard/client/src/pages/Home/HMTPrice.tsx diff --git a/packages/apps/dashboard/ui-2024/src/pages/Home/Holders.tsx b/packages/apps/dashboard/client/src/pages/Home/Holders.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/pages/Home/Holders.tsx rename to packages/apps/dashboard/client/src/pages/Home/Holders.tsx diff --git a/packages/apps/dashboard/ui-2024/src/pages/Home/Home.tsx b/packages/apps/dashboard/client/src/pages/Home/Home.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/pages/Home/Home.tsx rename to packages/apps/dashboard/client/src/pages/Home/Home.tsx diff --git a/packages/apps/dashboard/ui-2024/src/pages/Home/Leaderboard.tsx b/packages/apps/dashboard/client/src/pages/Home/Leaderboard.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/pages/Home/Leaderboard.tsx rename to packages/apps/dashboard/client/src/pages/Home/Leaderboard.tsx diff --git a/packages/apps/dashboard/ui-2024/src/pages/Home/TotalNumberOfTasks.tsx b/packages/apps/dashboard/client/src/pages/Home/TotalNumberOfTasks.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/pages/Home/TotalNumberOfTasks.tsx rename to packages/apps/dashboard/client/src/pages/Home/TotalNumberOfTasks.tsx diff --git a/packages/apps/dashboard/ui-2024/src/pages/Home/TotalTransactions.tsx b/packages/apps/dashboard/client/src/pages/Home/TotalTransactions.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/pages/Home/TotalTransactions.tsx rename to packages/apps/dashboard/client/src/pages/Home/TotalTransactions.tsx diff --git a/packages/apps/dashboard/ui-2024/src/pages/Home/index.ts b/packages/apps/dashboard/client/src/pages/Home/index.ts similarity index 100% rename from packages/apps/dashboard/ui-2024/src/pages/Home/index.ts rename to packages/apps/dashboard/client/src/pages/Home/index.ts diff --git a/packages/apps/dashboard/ui-2024/src/pages/Leaderboard/index.tsx b/packages/apps/dashboard/client/src/pages/Leaderboard/index.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/pages/Leaderboard/index.tsx rename to packages/apps/dashboard/client/src/pages/Leaderboard/index.tsx diff --git a/packages/apps/dashboard/ui-2024/src/pages/SearchResults/EscrowAddress/EscrowAddress.tsx b/packages/apps/dashboard/client/src/pages/SearchResults/EscrowAddress/EscrowAddress.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/pages/SearchResults/EscrowAddress/EscrowAddress.tsx rename to packages/apps/dashboard/client/src/pages/SearchResults/EscrowAddress/EscrowAddress.tsx diff --git a/packages/apps/dashboard/ui-2024/src/pages/SearchResults/EscrowAddress/HMTBalance.tsx b/packages/apps/dashboard/client/src/pages/SearchResults/EscrowAddress/HMTBalance.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/pages/SearchResults/EscrowAddress/HMTBalance.tsx rename to packages/apps/dashboard/client/src/pages/SearchResults/EscrowAddress/HMTBalance.tsx diff --git a/packages/apps/dashboard/ui-2024/src/pages/SearchResults/EscrowAddress/index.ts b/packages/apps/dashboard/client/src/pages/SearchResults/EscrowAddress/index.ts similarity index 100% rename from packages/apps/dashboard/ui-2024/src/pages/SearchResults/EscrowAddress/index.ts rename to packages/apps/dashboard/client/src/pages/SearchResults/EscrowAddress/index.ts diff --git a/packages/apps/dashboard/ui-2024/src/pages/SearchResults/RoleDetails/RoleDetails.tsx b/packages/apps/dashboard/client/src/pages/SearchResults/RoleDetails/RoleDetails.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/pages/SearchResults/RoleDetails/RoleDetails.tsx rename to packages/apps/dashboard/client/src/pages/SearchResults/RoleDetails/RoleDetails.tsx diff --git a/packages/apps/dashboard/ui-2024/src/pages/SearchResults/RoleDetails/RoleDetailsEscrows/RoleDetailsEscrowsTable.tsx b/packages/apps/dashboard/client/src/pages/SearchResults/RoleDetails/RoleDetailsEscrows/RoleDetailsEscrowsTable.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/pages/SearchResults/RoleDetails/RoleDetailsEscrows/RoleDetailsEscrowsTable.tsx rename to packages/apps/dashboard/client/src/pages/SearchResults/RoleDetails/RoleDetailsEscrows/RoleDetailsEscrowsTable.tsx diff --git a/packages/apps/dashboard/ui-2024/src/pages/SearchResults/RoleDetails/RoleDetailsEscrows/tableComponents/EscrowsTableBody.tsx b/packages/apps/dashboard/client/src/pages/SearchResults/RoleDetails/RoleDetailsEscrows/tableComponents/EscrowsTableBody.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/pages/SearchResults/RoleDetails/RoleDetailsEscrows/tableComponents/EscrowsTableBody.tsx rename to packages/apps/dashboard/client/src/pages/SearchResults/RoleDetails/RoleDetailsEscrows/tableComponents/EscrowsTableBody.tsx diff --git a/packages/apps/dashboard/ui-2024/src/pages/SearchResults/RoleDetails/RoleDetailsEscrows/tableComponents/EscrowsTableBodyContainer.tsx b/packages/apps/dashboard/client/src/pages/SearchResults/RoleDetails/RoleDetailsEscrows/tableComponents/EscrowsTableBodyContainer.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/pages/SearchResults/RoleDetails/RoleDetailsEscrows/tableComponents/EscrowsTableBodyContainer.tsx rename to packages/apps/dashboard/client/src/pages/SearchResults/RoleDetails/RoleDetailsEscrows/tableComponents/EscrowsTableBodyContainer.tsx diff --git a/packages/apps/dashboard/ui-2024/src/pages/SearchResults/RoleDetails/index.ts b/packages/apps/dashboard/client/src/pages/SearchResults/RoleDetails/index.ts similarity index 100% rename from packages/apps/dashboard/ui-2024/src/pages/SearchResults/RoleDetails/index.ts rename to packages/apps/dashboard/client/src/pages/SearchResults/RoleDetails/index.ts diff --git a/packages/apps/dashboard/ui-2024/src/pages/SearchResults/SearchResults.tsx b/packages/apps/dashboard/client/src/pages/SearchResults/SearchResults.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/pages/SearchResults/SearchResults.tsx rename to packages/apps/dashboard/client/src/pages/SearchResults/SearchResults.tsx diff --git a/packages/apps/dashboard/ui-2024/src/pages/SearchResults/WalletAddress/WalletAddress.tsx b/packages/apps/dashboard/client/src/pages/SearchResults/WalletAddress/WalletAddress.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/pages/SearchResults/WalletAddress/WalletAddress.tsx rename to packages/apps/dashboard/client/src/pages/SearchResults/WalletAddress/WalletAddress.tsx diff --git a/packages/apps/dashboard/ui-2024/src/pages/SearchResults/WalletAddress/WalletAddressTransactions/WalletAddressTransactionsTable.tsx b/packages/apps/dashboard/client/src/pages/SearchResults/WalletAddress/WalletAddressTransactions/WalletAddressTransactionsTable.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/pages/SearchResults/WalletAddress/WalletAddressTransactions/WalletAddressTransactionsTable.tsx rename to packages/apps/dashboard/client/src/pages/SearchResults/WalletAddress/WalletAddressTransactions/WalletAddressTransactionsTable.tsx diff --git a/packages/apps/dashboard/ui-2024/src/pages/SearchResults/WalletAddress/WalletAddressTransactions/cells/TransactionTableCellMethod.tsx b/packages/apps/dashboard/client/src/pages/SearchResults/WalletAddress/WalletAddressTransactions/cells/TransactionTableCellMethod.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/pages/SearchResults/WalletAddress/WalletAddressTransactions/cells/TransactionTableCellMethod.tsx rename to packages/apps/dashboard/client/src/pages/SearchResults/WalletAddress/WalletAddressTransactions/cells/TransactionTableCellMethod.tsx diff --git a/packages/apps/dashboard/ui-2024/src/pages/SearchResults/WalletAddress/WalletAddressTransactions/cells/TransactionTableCellValue.tsx b/packages/apps/dashboard/client/src/pages/SearchResults/WalletAddress/WalletAddressTransactions/cells/TransactionTableCellValue.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/pages/SearchResults/WalletAddress/WalletAddressTransactions/cells/TransactionTableCellValue.tsx rename to packages/apps/dashboard/client/src/pages/SearchResults/WalletAddress/WalletAddressTransactions/cells/TransactionTableCellValue.tsx diff --git a/packages/apps/dashboard/ui-2024/src/pages/SearchResults/WalletAddress/WalletAddressTransactions/tableComponents/TransactionsTableBody.tsx b/packages/apps/dashboard/client/src/pages/SearchResults/WalletAddress/WalletAddressTransactions/tableComponents/TransactionsTableBody.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/pages/SearchResults/WalletAddress/WalletAddressTransactions/tableComponents/TransactionsTableBody.tsx rename to packages/apps/dashboard/client/src/pages/SearchResults/WalletAddress/WalletAddressTransactions/tableComponents/TransactionsTableBody.tsx diff --git a/packages/apps/dashboard/ui-2024/src/pages/SearchResults/WalletAddress/WalletAddressTransactions/tableComponents/TransactionsTableBodyContainer.tsx b/packages/apps/dashboard/client/src/pages/SearchResults/WalletAddress/WalletAddressTransactions/tableComponents/TransactionsTableBodyContainer.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/pages/SearchResults/WalletAddress/WalletAddressTransactions/tableComponents/TransactionsTableBodyContainer.tsx rename to packages/apps/dashboard/client/src/pages/SearchResults/WalletAddress/WalletAddressTransactions/tableComponents/TransactionsTableBodyContainer.tsx diff --git a/packages/apps/dashboard/ui-2024/src/pages/SearchResults/WalletAddress/WalletAddressTransactions/tableComponents/TransactionsTableHead.tsx b/packages/apps/dashboard/client/src/pages/SearchResults/WalletAddress/WalletAddressTransactions/tableComponents/TransactionsTableHead.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/pages/SearchResults/WalletAddress/WalletAddressTransactions/tableComponents/TransactionsTableHead.tsx rename to packages/apps/dashboard/client/src/pages/SearchResults/WalletAddress/WalletAddressTransactions/tableComponents/TransactionsTableHead.tsx diff --git a/packages/apps/dashboard/ui-2024/src/pages/SearchResults/WalletAddress/index.ts b/packages/apps/dashboard/client/src/pages/SearchResults/WalletAddress/index.ts similarity index 100% rename from packages/apps/dashboard/ui-2024/src/pages/SearchResults/WalletAddress/index.ts rename to packages/apps/dashboard/client/src/pages/SearchResults/WalletAddress/index.ts diff --git a/packages/apps/dashboard/ui-2024/src/pages/SearchResults/index.ts b/packages/apps/dashboard/client/src/pages/SearchResults/index.ts similarity index 100% rename from packages/apps/dashboard/ui-2024/src/pages/SearchResults/index.ts rename to packages/apps/dashboard/client/src/pages/SearchResults/index.ts diff --git a/packages/apps/dashboard/ui-2024/src/services/api-paths.ts b/packages/apps/dashboard/client/src/services/api-paths.ts similarity index 100% rename from packages/apps/dashboard/ui-2024/src/services/api-paths.ts rename to packages/apps/dashboard/client/src/services/api-paths.ts diff --git a/packages/apps/dashboard/ui-2024/src/services/api/use-address-details.tsx b/packages/apps/dashboard/client/src/services/api/use-address-details.tsx similarity index 98% rename from packages/apps/dashboard/ui-2024/src/services/api/use-address-details.tsx rename to packages/apps/dashboard/client/src/services/api/use-address-details.tsx index b61dd32a13..fb61b47f59 100644 --- a/packages/apps/dashboard/ui-2024/src/services/api/use-address-details.tsx +++ b/packages/apps/dashboard/client/src/services/api/use-address-details.tsx @@ -3,7 +3,7 @@ import { z } from 'zod'; import { httpService } from '../http-service'; import { apiPaths } from '../api-paths'; import { useWalletSearch } from '@utils/hooks/use-wallet-search'; -import { validateResponse } from '../../services/validate-response'; +import { validateResponse } from '../validate-response'; import { reputationSchema } from '@services/api/use-leaderboard-details'; const transformOptionalTokenAmount = ( diff --git a/packages/apps/dashboard/ui-2024/src/services/api/use-escrows-details.tsx b/packages/apps/dashboard/client/src/services/api/use-escrows-details.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/services/api/use-escrows-details.tsx rename to packages/apps/dashboard/client/src/services/api/use-escrows-details.tsx diff --git a/packages/apps/dashboard/ui-2024/src/services/api/use-general-stats.tsx b/packages/apps/dashboard/client/src/services/api/use-general-stats.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/services/api/use-general-stats.tsx rename to packages/apps/dashboard/client/src/services/api/use-general-stats.tsx diff --git a/packages/apps/dashboard/ui-2024/src/services/api/use-graph-page-chart-data.tsx b/packages/apps/dashboard/client/src/services/api/use-graph-page-chart-data.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/services/api/use-graph-page-chart-data.tsx rename to packages/apps/dashboard/client/src/services/api/use-graph-page-chart-data.tsx diff --git a/packages/apps/dashboard/ui-2024/src/services/api/use-hcaptcha-general-stats.tsx b/packages/apps/dashboard/client/src/services/api/use-hcaptcha-general-stats.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/services/api/use-hcaptcha-general-stats.tsx rename to packages/apps/dashboard/client/src/services/api/use-hcaptcha-general-stats.tsx diff --git a/packages/apps/dashboard/ui-2024/src/services/api/use-hmt-price.tsx b/packages/apps/dashboard/client/src/services/api/use-hmt-price.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/services/api/use-hmt-price.tsx rename to packages/apps/dashboard/client/src/services/api/use-hmt-price.tsx diff --git a/packages/apps/dashboard/ui-2024/src/services/api/use-leaderboard-details.tsx b/packages/apps/dashboard/client/src/services/api/use-leaderboard-details.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/services/api/use-leaderboard-details.tsx rename to packages/apps/dashboard/client/src/services/api/use-leaderboard-details.tsx diff --git a/packages/apps/dashboard/ui-2024/src/services/api/use-transaction-details.tsx b/packages/apps/dashboard/client/src/services/api/use-transaction-details.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/services/api/use-transaction-details.tsx rename to packages/apps/dashboard/client/src/services/api/use-transaction-details.tsx diff --git a/packages/apps/dashboard/ui-2024/src/services/global.type.ts b/packages/apps/dashboard/client/src/services/global.type.ts similarity index 100% rename from packages/apps/dashboard/ui-2024/src/services/global.type.ts rename to packages/apps/dashboard/client/src/services/global.type.ts diff --git a/packages/apps/dashboard/ui-2024/src/services/handle-error-message.ts b/packages/apps/dashboard/client/src/services/handle-error-message.ts similarity index 100% rename from packages/apps/dashboard/ui-2024/src/services/handle-error-message.ts rename to packages/apps/dashboard/client/src/services/handle-error-message.ts diff --git a/packages/apps/dashboard/ui-2024/src/services/http-service.ts b/packages/apps/dashboard/client/src/services/http-service.ts similarity index 100% rename from packages/apps/dashboard/ui-2024/src/services/http-service.ts rename to packages/apps/dashboard/client/src/services/http-service.ts diff --git a/packages/apps/dashboard/ui-2024/src/services/validate-response.ts b/packages/apps/dashboard/client/src/services/validate-response.ts similarity index 100% rename from packages/apps/dashboard/ui-2024/src/services/validate-response.ts rename to packages/apps/dashboard/client/src/services/validate-response.ts diff --git a/packages/apps/dashboard/ui-2024/src/theme.tsx b/packages/apps/dashboard/client/src/theme.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/theme.tsx rename to packages/apps/dashboard/client/src/theme.tsx diff --git a/packages/apps/dashboard/ui-2024/src/utils/config/networks.ts b/packages/apps/dashboard/client/src/utils/config/networks.ts similarity index 100% rename from packages/apps/dashboard/ui-2024/src/utils/config/networks.ts rename to packages/apps/dashboard/client/src/utils/config/networks.ts diff --git a/packages/apps/dashboard/ui-2024/src/utils/hooks/use-escrows-details-dto.ts b/packages/apps/dashboard/client/src/utils/hooks/use-escrows-details-dto.ts similarity index 100% rename from packages/apps/dashboard/ui-2024/src/utils/hooks/use-escrows-details-dto.ts rename to packages/apps/dashboard/client/src/utils/hooks/use-escrows-details-dto.ts diff --git a/packages/apps/dashboard/ui-2024/src/utils/hooks/use-filtered-networks.ts b/packages/apps/dashboard/client/src/utils/hooks/use-filtered-networks.ts similarity index 100% rename from packages/apps/dashboard/ui-2024/src/utils/hooks/use-filtered-networks.ts rename to packages/apps/dashboard/client/src/utils/hooks/use-filtered-networks.ts diff --git a/packages/apps/dashboard/ui-2024/src/utils/hooks/use-graph-page-chart-params.tsx b/packages/apps/dashboard/client/src/utils/hooks/use-graph-page-chart-params.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/utils/hooks/use-graph-page-chart-params.tsx rename to packages/apps/dashboard/client/src/utils/hooks/use-graph-page-chart-params.tsx diff --git a/packages/apps/dashboard/ui-2024/src/utils/hooks/use-is-mobile.tsx b/packages/apps/dashboard/client/src/utils/hooks/use-is-mobile.tsx similarity index 100% rename from packages/apps/dashboard/ui-2024/src/utils/hooks/use-is-mobile.tsx rename to packages/apps/dashboard/client/src/utils/hooks/use-is-mobile.tsx diff --git a/packages/apps/dashboard/ui-2024/src/utils/hooks/use-leaderboard-search.ts b/packages/apps/dashboard/client/src/utils/hooks/use-leaderboard-search.ts similarity index 100% rename from packages/apps/dashboard/ui-2024/src/utils/hooks/use-leaderboard-search.ts rename to packages/apps/dashboard/client/src/utils/hooks/use-leaderboard-search.ts diff --git a/packages/apps/dashboard/ui-2024/src/utils/hooks/use-transactions-details-dto.ts b/packages/apps/dashboard/client/src/utils/hooks/use-transactions-details-dto.ts similarity index 100% rename from packages/apps/dashboard/ui-2024/src/utils/hooks/use-transactions-details-dto.ts rename to packages/apps/dashboard/client/src/utils/hooks/use-transactions-details-dto.ts diff --git a/packages/apps/dashboard/ui-2024/src/utils/hooks/use-wallet-search.ts b/packages/apps/dashboard/client/src/utils/hooks/use-wallet-search.ts similarity index 100% rename from packages/apps/dashboard/ui-2024/src/utils/hooks/use-wallet-search.ts rename to packages/apps/dashboard/client/src/utils/hooks/use-wallet-search.ts diff --git a/packages/apps/dashboard/ui-2024/src/vite-env.d.ts b/packages/apps/dashboard/client/src/vite-env.d.ts similarity index 100% rename from packages/apps/dashboard/ui-2024/src/vite-env.d.ts rename to packages/apps/dashboard/client/src/vite-env.d.ts diff --git a/packages/apps/dashboard/ui-2024/tsconfig.json b/packages/apps/dashboard/client/tsconfig.json similarity index 100% rename from packages/apps/dashboard/ui-2024/tsconfig.json rename to packages/apps/dashboard/client/tsconfig.json diff --git a/packages/apps/dashboard/ui-2024/tsconfig.node.json b/packages/apps/dashboard/client/tsconfig.node.json similarity index 100% rename from packages/apps/dashboard/ui-2024/tsconfig.node.json rename to packages/apps/dashboard/client/tsconfig.node.json diff --git a/packages/apps/dashboard/ui-2024/vercel.json b/packages/apps/dashboard/client/vercel.json similarity index 100% rename from packages/apps/dashboard/ui-2024/vercel.json rename to packages/apps/dashboard/client/vercel.json diff --git a/packages/apps/dashboard/ui-2024/vite.config.ts b/packages/apps/dashboard/client/vite.config.ts similarity index 100% rename from packages/apps/dashboard/ui-2024/vite.config.ts rename to packages/apps/dashboard/client/vite.config.ts diff --git a/packages/apps/dashboard/ui-2024/README.md b/packages/apps/dashboard/ui-2024/README.md deleted file mode 100644 index 70ac8c27a7..0000000000 --- a/packages/apps/dashboard/ui-2024/README.md +++ /dev/null @@ -1,30 +0,0 @@ -# React + TypeScript + Vite - -This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. - -Currently, two official plugins are available: - -- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh -- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh - -## Expanding the ESLint configuration - -If you are developing a production application, we recommend updating the configuration to enable type aware lint rules: - -- Configure the top-level `parserOptions` property like this: - -```js -export default { - // other rules... - parserOptions: { - ecmaVersion: 'latest', - sourceType: 'module', - project: ['./tsconfig.json', './tsconfig.node.json'], - tsconfigRootDir: __dirname, - }, -}; -``` - -- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked` -- Optionally add `plugin:@typescript-eslint/stylistic-type-checked` -- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list From d1c0b5885bd481782bfdcf6ce1c7acaaf9de5624 Mon Sep 17 00:00:00 2001 From: Dmitry Nechay Date: Thu, 30 Jan 2025 12:20:27 +0300 Subject: [PATCH 32/44] [Reputation Oracle] refactor: get rid of controlled error in escrow completion (#3057) --- .../server/src/common/constants/errors.ts | 11 --- .../escrow-completion.service.spec.ts | 4 +- .../escrow-completion.service.ts | 89 ++++++++----------- .../webhook/webhook-incoming.service.spec.ts | 2 +- .../webhook/webhook-incoming.service.ts | 14 +-- .../webhook/webhook-outgoing.service.spec.ts | 2 +- .../webhook/webhook-outgoing.service.ts | 8 +- .../src/modules/webhook/webhook.error.ts | 2 - 8 files changed, 47 insertions(+), 85 deletions(-) diff --git a/packages/apps/reputation-oracle/server/src/common/constants/errors.ts b/packages/apps/reputation-oracle/server/src/common/constants/errors.ts index 9c6b738173..9e9bac0147 100644 --- a/packages/apps/reputation-oracle/server/src/common/constants/errors.ts +++ b/packages/apps/reputation-oracle/server/src/common/constants/errors.ts @@ -1,14 +1,3 @@ -/** - * Represents error messages related to escrow completion. - */ -export enum ErrorEscrowCompletion { - NotFound = 'Escrow completion not found', - NotCreated = 'Escrow completion has not been created', - PendingProcessingFailed = 'Failed to process pending escrow completion', - PaidProcessingFailed = 'Failed to process paid escrow completion', - AwaitingPayoutsProcessingFailed = 'Failed to process payouts for escrow completion', -} - /** * Represents error messages related to results. */ diff --git a/packages/apps/reputation-oracle/server/src/modules/escrow-completion/escrow-completion.service.spec.ts b/packages/apps/reputation-oracle/server/src/modules/escrow-completion/escrow-completion.service.spec.ts index 52317e0556..b01a5da500 100644 --- a/packages/apps/reputation-oracle/server/src/modules/escrow-completion/escrow-completion.service.spec.ts +++ b/packages/apps/reputation-oracle/server/src/modules/escrow-completion/escrow-completion.service.spec.ts @@ -368,7 +368,7 @@ describe('escrowCompletionService', () => { }), ); expect(loggerErrorSpy).toHaveBeenCalledWith( - expect.stringContaining(`Message: ${error.message}`), + expect.stringContaining(`Error message: ${error.message}`), ); }); @@ -514,7 +514,7 @@ describe('escrowCompletionService', () => { }), ); expect(loggerErrorSpy).toHaveBeenCalledWith( - expect.stringContaining(`Message: ${error.message}`), + expect.stringContaining(`Error message: ${error.message}`), ); }); diff --git a/packages/apps/reputation-oracle/server/src/modules/escrow-completion/escrow-completion.service.ts b/packages/apps/reputation-oracle/server/src/modules/escrow-completion/escrow-completion.service.ts index 24886d49f2..bf27ad853e 100644 --- a/packages/apps/reputation-oracle/server/src/modules/escrow-completion/escrow-completion.service.ts +++ b/packages/apps/reputation-oracle/server/src/modules/escrow-completion/escrow-completion.service.ts @@ -3,8 +3,7 @@ import crypto from 'crypto'; import { ethers } from 'ethers'; import stringify from 'json-stable-stringify'; import _ from 'lodash'; -import { v4 as uuidv4 } from 'uuid'; -import { HttpStatus, Injectable, Logger } from '@nestjs/common'; +import { Injectable, Logger } from '@nestjs/common'; import { EscrowCompletionStatus, EventType } from '../../common/enums'; import { ServerConfigService } from '../../common/config/server-config.service'; import { EscrowCompletionRepository } from './escrow-completion.repository'; @@ -25,8 +24,6 @@ import { WebhookIncomingService } from '../webhook/webhook-incoming.service'; import { PayoutService } from '../payout/payout.service'; import { ReputationService } from '../reputation/reputation.service'; import { Web3Service } from '../web3/web3.service'; -import { ErrorEscrowCompletion } from '../../common/constants/errors'; -import { ControlledError } from '../../common/errors/controlled'; import { WebhookOutgoingService } from '../webhook/webhook-outgoing.service'; import { isDuplicatedError } from '../../common/utils/database'; import { CalculatedPayout } from '../payout/payout.interface'; @@ -167,10 +164,9 @@ export class EscrowCompletionService { escrowCompletionEntity.status = EscrowCompletionStatus.AWAITING_PAYOUTS; await this.escrowCompletionRepository.updateOne(escrowCompletionEntity); } catch (error) { - const errorId = uuidv4(); - const failureDetail = `${ErrorEscrowCompletion.PendingProcessingFailed} (Error ID: ${errorId})`; + const failureDetail = `Error message: ${error.message})`; this.logger.error( - `Error processing escrow completion. Error ID: ${errorId}, Escrow completion ID: ${escrowCompletionEntity.id}, Reason: ${failureDetail}, Message: ${error.message}`, + `Failed to process pending escrow completion. Escrow completion ID: ${escrowCompletionEntity.id}. ${failureDetail}.`, ); await this.handleEscrowCompletionError( escrowCompletionEntity, @@ -211,60 +207,49 @@ export class EscrowCompletionService { ); } - const callbackUrls = [ - ( - await OperatorUtils.getLeader( - chainId, - await escrowClient.getJobLauncherAddress(escrowAddress), - ) - ).webhookUrl, - ( - await OperatorUtils.getLeader( - chainId, - await escrowClient.getExchangeOracleAddress(escrowAddress), - ) - ).webhookUrl, - /*( - await OperatorUtils.getLeader( - chainId, - await escrowClient.getRecordingOracleAddress(escrowAddress), - ) - ).webhookUrl,*/ - ]; + const oracleAddresses = await Promise.all([ + escrowClient.getJobLauncherAddress(escrowAddress), + escrowClient.getExchangeOracleAddress(escrowAddress), + // escrowClient.getRecordingOracleAddress(escrowAddress), + ]); - let allWebhooksCreated = true; - - const payload = { + const webhookPayload = { chainId, escrowAddress, eventType: EventType.ESCROW_COMPLETED, }; - for (const url of callbackUrls) { - if (!url) { - throw new ControlledError( - // This is a temporary solution during the refactoring phase. - 'Webhook url not found', - HttpStatus.NOT_FOUND, - ); + let allWebhooksCreated = true; + + for (const oracleAddress of oracleAddresses) { + const oracleData = await OperatorUtils.getLeader( + chainId, + oracleAddress, + ); + if (!oracleData) { + throw new Error('Oracle data is missing'); + } + + const { webhookUrl } = oracleData; + if (!webhookUrl) { + throw new Error('Webhook url is no set for oracle'); } try { await this.webhookOutgoingService.createOutgoingWebhook( - payload, - url, + webhookPayload, + webhookUrl, ); } catch (err) { if (isDuplicatedError(err)) { - this.logger.warn( - `Duplicate outgoing webhook for escrowAddress: ${escrowAddress}. Webhook creation skipped, but will not complete escrow until all URLs are successful.`, - ); + /** + * Already created. Noop. + */ continue; } else { - const errorId = uuidv4(); - const failureDetail = `${ErrorEscrowCompletion.PaidProcessingFailed} (Error ID: ${errorId})`; + const failureDetail = `Failed to create outgoing webhook for oracle. Address: ${oracleAddress}. Error message: ${err.message}`; this.logger.error( - `Error creating outgoing webhook. Error ID: ${errorId}, Escrow Address: ${escrowAddress}, Reason: ${failureDetail}, Message: ${err.message}`, + `${failureDetail}. Escrow completion ID: ${escrowCompletionEntity.id}.`, ); await this.handleEscrowCompletionError( escrowCompletionEntity, @@ -284,10 +269,9 @@ export class EscrowCompletionService { ); } } catch (err) { - const errorId = uuidv4(); - const failureDetail = `${ErrorEscrowCompletion.PaidProcessingFailed} (Error ID: ${errorId})`; + const failureDetail = `Error message: ${err.message}`; this.logger.error( - `Error processing escrow completion. Error ID: ${errorId}, Escrow completion ID: ${escrowCompletionEntity.id}, Reason: ${failureDetail}, Message: ${err.message}`, + `Failed to process paid escrow completion. Escrow completion ID: ${escrowCompletionEntity.id}. ${failureDetail}.`, ); await this.handleEscrowCompletionError( escrowCompletionEntity, @@ -343,8 +327,8 @@ export class EscrowCompletionService { ); } catch (error) { this.logger.error( - `Failed to process payouts batch ${payoutsBatch.id}`, - error, + `Failed to process payouts batch. Batch ID: ${payoutsBatch.id}`, + error.message, ); hasFailedPayouts = true; } @@ -359,10 +343,9 @@ export class EscrowCompletionService { ); } } catch (error) { - const errorId = uuidv4(); - const failureDetail = `${ErrorEscrowCompletion.AwaitingPayoutsProcessingFailed} (Error ID: ${errorId})`; + const failureDetail = `Error message: ${error.message}`; this.logger.error( - `Error processing escrow completion. Error ID: ${errorId}, Escrow completion ID: ${escrowCompletionEntity.id}, Reason: ${failureDetail}, Message: ${error.message}`, + `Failed to process payouts. Escrow completion ID: ${escrowCompletionEntity.id}. ${failureDetail}.`, ); await this.handleEscrowCompletionError( escrowCompletionEntity, diff --git a/packages/apps/reputation-oracle/server/src/modules/webhook/webhook-incoming.service.spec.ts b/packages/apps/reputation-oracle/server/src/modules/webhook/webhook-incoming.service.spec.ts index f3754ec9e5..6ad1d6cca2 100644 --- a/packages/apps/reputation-oracle/server/src/modules/webhook/webhook-incoming.service.spec.ts +++ b/packages/apps/reputation-oracle/server/src/modules/webhook/webhook-incoming.service.spec.ts @@ -270,7 +270,7 @@ describe('WebhookIncomingService', () => { }), ); expect(loggerErrorSpy).toHaveBeenCalledWith( - expect.stringContaining(`Message: ${error.message}`), + expect.stringContaining(`Error message: ${error.message}`), ); }); diff --git a/packages/apps/reputation-oracle/server/src/modules/webhook/webhook-incoming.service.ts b/packages/apps/reputation-oracle/server/src/modules/webhook/webhook-incoming.service.ts index d0a51e75c6..d6bc51667d 100644 --- a/packages/apps/reputation-oracle/server/src/modules/webhook/webhook-incoming.service.ts +++ b/packages/apps/reputation-oracle/server/src/modules/webhook/webhook-incoming.service.ts @@ -1,6 +1,5 @@ /* eslint-disable @typescript-eslint/no-non-null-assertion */ import { Injectable, Logger } from '@nestjs/common'; -import { v4 as uuidv4 } from 'uuid'; import { ServerConfigService } from '../../common/config/server-config.service'; import { Web3ConfigService } from '../../common/config/web3-config.service'; import { BACKOFF_INTERVAL_SECONDS } from '../../common/constants'; @@ -28,7 +27,7 @@ export class WebhookIncomingService { * Creates an incoming webhook entry in the repository. * Validates that the event type is 'JOB_COMPLETED' and sets initial status to 'PENDING'. * @param {IncomingWebhookDto} dto - Contains webhook details like chain ID and escrow address. - * @throws {ControlledError} If the event type is invalid or the webhook cannot be created. + * @throws {IncomingWebhookError} If the event type is invalid or the webhook cannot be created. */ public async createIncomingWebhook(dto: IncomingWebhookDto): Promise { if (dto.eventType !== EventType.JOB_COMPLETED) { @@ -91,20 +90,15 @@ export class WebhookIncomingService { webhookEntity.status = WebhookIncomingStatus.COMPLETED; await this.webhookIncomingRepository.updateOne(webhookEntity); } catch (err) { - const errorId = uuidv4(); - const failureDetail = `${WebhookErrorMessage.PENDING_PROCESSING_FAILED} (Error ID: ${errorId})`; - if (isDuplicatedError(err)) { - // Handle duplicated error: log and mark as completed - this.logger.warn( - `Duplicate tracking entity for escrowAddress: ${webhookEntity.escrowAddress}. Marking webhook as completed.`, - ); webhookEntity.status = WebhookIncomingStatus.COMPLETED; await this.webhookIncomingRepository.updateOne(webhookEntity); } else { // Handle other errors (general failure) + const failureDetail = `Error message: ${err.message}`; + this.logger.error( - `Error processing webhook. Error ID: ${errorId}, Webhook ID: ${webhookEntity.id}, Reason: ${failureDetail}, Message: ${err.message}`, + `Error processing incoming webhook. Webhook ID: ${webhookEntity.id}. ${failureDetail}.`, ); await this.handleWebhookIncomingError(webhookEntity, failureDetail); } diff --git a/packages/apps/reputation-oracle/server/src/modules/webhook/webhook-outgoing.service.spec.ts b/packages/apps/reputation-oracle/server/src/modules/webhook/webhook-outgoing.service.spec.ts index 4e14fc93c9..9f5a036465 100644 --- a/packages/apps/reputation-oracle/server/src/modules/webhook/webhook-outgoing.service.spec.ts +++ b/packages/apps/reputation-oracle/server/src/modules/webhook/webhook-outgoing.service.spec.ts @@ -284,7 +284,7 @@ describe('WebhookOutgoingService', () => { }), ); expect(loggerErrorSpy).toHaveBeenCalledWith( - expect.stringContaining(`Message: ${error.message}`), + expect.stringContaining(`Error message: ${error.message}`), ); }); }); diff --git a/packages/apps/reputation-oracle/server/src/modules/webhook/webhook-outgoing.service.ts b/packages/apps/reputation-oracle/server/src/modules/webhook/webhook-outgoing.service.ts index 7649d8d996..fa8305bb59 100644 --- a/packages/apps/reputation-oracle/server/src/modules/webhook/webhook-outgoing.service.ts +++ b/packages/apps/reputation-oracle/server/src/modules/webhook/webhook-outgoing.service.ts @@ -1,5 +1,4 @@ /* eslint-disable @typescript-eslint/no-non-null-assertion */ -import { v4 as uuidv4 } from 'uuid'; import * as crypto from 'crypto'; import stringify from 'json-stable-stringify'; import { HttpStatus, Injectable, Logger } from '@nestjs/common'; @@ -87,7 +86,7 @@ export class WebhookOutgoingService { * Converts payload to snake_case, signs it, and sends it to the specified URL. * @param {string} url - The target URL to which the webhook is sent. * @param {object} payload - The data payload to send. - * @throws {ControlledError} If the webhook request fails. + * @throws {OutgoingWebhookError} If the webhook request fails. */ public async sendWebhook( outgoingWebhook: WebhookOutgoingEntity, @@ -122,10 +121,9 @@ export class WebhookOutgoingService { try { await this.sendWebhook(webhookEntity); } catch (err) { - const errorId = uuidv4(); - const failureDetail = `${WebhookErrorMessage.PENDING_PROCESSING_FAILED} (Error ID: ${errorId})`; + const failureDetail = `Error message: ${err.message}`; this.logger.error( - `Error processing pending outgoing webhook. Error ID: ${errorId}, Webhook ID: ${webhookEntity.id}, Reason: ${failureDetail}, Message: ${err.message}`, + `Error processing outgoing webhook. Webhook ID: ${webhookEntity.id}. ${failureDetail}`, ); await this.handleWebhookOutgoingError(webhookEntity, failureDetail); continue; diff --git a/packages/apps/reputation-oracle/server/src/modules/webhook/webhook.error.ts b/packages/apps/reputation-oracle/server/src/modules/webhook/webhook.error.ts index 4e19ec09b3..24cd928e53 100644 --- a/packages/apps/reputation-oracle/server/src/modules/webhook/webhook.error.ts +++ b/packages/apps/reputation-oracle/server/src/modules/webhook/webhook.error.ts @@ -2,10 +2,8 @@ import { ChainId } from '@human-protocol/sdk'; import { BaseError } from '../../common/errors/base'; export enum WebhookErrorMessage { - URL_NOT_FOUND = 'Webhook url not found', INVALID_EVENT_TYPE = 'Invalid event type', NOT_SENT = 'Webhook was not sent', - PENDING_PROCESSING_FAILED = 'Failed to process pending webhook', } export class IncomingWebhookError extends BaseError { From 1d04bcf1edf0db22a8d9e51054a80768e8218ab9 Mon Sep 17 00:00:00 2001 From: mpblocky <185767042+mpblocky@users.noreply.github.com> Date: Thu, 30 Jan 2025 13:34:11 +0100 Subject: [PATCH 33/44] [Human App] refactor: wallet connect context (#3000) --- .../components/wallet-connect-modal.tsx | 2 +- .../homepage/hooks/use-operator-signin.tsx | 2 +- .../profile/profile-disable-button.tsx | 2 +- .../hooks/use-add-stake-mutation-state.ts | 2 +- .../modules/operator/hooks/use-add-stake.ts | 2 +- .../operator/hooks/use-disable-operator.ts | 2 +- .../operator/hooks/use-edit-existing-keys.ts | 2 +- .../modules/operator/hooks/use-get-keys.ts | 2 +- .../operator/hooks/use-get-stacked-amount.ts | 2 +- .../hooks/use-human-token-decimals.ts | 2 +- .../modules/operator/hooks/use-web3-signin.ts | 7 +- .../modules/operator/hooks/use-web3-signup.ts | 2 +- .../views/sign-up/connect-wallet.page.tsx | 2 +- .../edit-existing-keys-success.page.tsx | 2 +- .../views/sign-up/set-up-operator.page.tsx | 2 +- .../components/profile/profile-actions.tsx | 2 +- .../components/profile/profile.page.tsx | 2 +- .../profile/wallet-connect-done.tsx | 2 +- .../hooks/use-register-address-on-chain.ts | 2 +- .../worker/hooks/use-register-address.ts | 2 +- .../get-on-chain-registered-address.ts | 2 +- .../human-app/frontend/src/router/router.tsx | 2 +- .../components/ui/connect-wallet-btn.tsx | 2 +- .../src/shared/contexts/wallet-connect.tsx | 155 ------------------ .../shared/contexts/wallet-connect/index.ts | 4 + .../require-wallet-connect.tsx | 14 +- .../shared/contexts/wallet-connect/types.ts | 35 ++++ .../wallet-connect}/use-connected-wallet.tsx | 4 +- .../wallet-connect}/use-wallet-connect.tsx | 2 +- .../wallet-connect/wallet-connect.tsx | 132 +++++++++++++++ 30 files changed, 206 insertions(+), 191 deletions(-) delete mode 100644 packages/apps/human-app/frontend/src/shared/contexts/wallet-connect.tsx create mode 100644 packages/apps/human-app/frontend/src/shared/contexts/wallet-connect/index.ts rename packages/apps/human-app/frontend/src/{modules/auth-web3/providers => shared/contexts/wallet-connect}/require-wallet-connect.tsx (64%) create mode 100644 packages/apps/human-app/frontend/src/shared/contexts/wallet-connect/types.ts rename packages/apps/human-app/frontend/src/{modules/auth-web3/hooks => shared/contexts/wallet-connect}/use-connected-wallet.tsx (65%) rename packages/apps/human-app/frontend/src/shared/{hooks => contexts/wallet-connect}/use-wallet-connect.tsx (76%) create mode 100644 packages/apps/human-app/frontend/src/shared/contexts/wallet-connect/wallet-connect.tsx diff --git a/packages/apps/human-app/frontend/src/modules/auth-web3/components/wallet-connect-modal.tsx b/packages/apps/human-app/frontend/src/modules/auth-web3/components/wallet-connect-modal.tsx index 8a5b8f8bd8..d213b84901 100644 --- a/packages/apps/human-app/frontend/src/modules/auth-web3/components/wallet-connect-modal.tsx +++ b/packages/apps/human-app/frontend/src/modules/auth-web3/components/wallet-connect-modal.tsx @@ -5,7 +5,7 @@ import { useEffect } from 'react'; import { Button } from '@/shared/components/ui/button'; import { ConnectWalletBtn } from '@/shared/components/ui/connect-wallet-btn'; import { useModalStore } from '@/shared/components/ui/modal/modal.store'; -import { useWalletConnect } from '@/shared/hooks/use-wallet-connect'; +import { useWalletConnect } from '@/shared/contexts/wallet-connect'; export function WalletConnectModal() { const { closeModal } = useModalStore(); diff --git a/packages/apps/human-app/frontend/src/modules/homepage/hooks/use-operator-signin.tsx b/packages/apps/human-app/frontend/src/modules/homepage/hooks/use-operator-signin.tsx index 18a571327a..4486365bbd 100644 --- a/packages/apps/human-app/frontend/src/modules/homepage/hooks/use-operator-signin.tsx +++ b/packages/apps/human-app/frontend/src/modules/homepage/hooks/use-operator-signin.tsx @@ -3,7 +3,7 @@ import { useEffect, useRef } from 'react'; import { Link } from 'react-router-dom'; import Snackbar from '@mui/material/Snackbar'; import { Button } from '@/shared/components/ui/button'; -import { useWalletConnect } from '@/shared/hooks/use-wallet-connect'; +import { useWalletConnect } from '@/shared/contexts/wallet-connect'; import { useWeb3SignIn } from '@/modules/operator/hooks/use-web3-signin'; import { useWeb3Auth } from '@/modules/auth-web3/hooks/use-web3-auth'; import { routerPaths } from '@/router/router-paths'; diff --git a/packages/apps/human-app/frontend/src/modules/operator/components/profile/profile-disable-button.tsx b/packages/apps/human-app/frontend/src/modules/operator/components/profile/profile-disable-button.tsx index e113b27c67..e8b89fcc4f 100644 --- a/packages/apps/human-app/frontend/src/modules/operator/components/profile/profile-disable-button.tsx +++ b/packages/apps/human-app/frontend/src/modules/operator/components/profile/profile-disable-button.tsx @@ -1,7 +1,7 @@ import { t } from 'i18next'; import { Typography } from '@mui/material'; import { useDisableWeb3Operator } from '@/modules/operator/hooks/use-disable-operator'; -import { useConnectedWallet } from '@/modules/auth-web3/hooks/use-connected-wallet'; +import { useConnectedWallet } from '@/shared/contexts/wallet-connect'; import { Button } from '@/shared/components/ui/button'; import type { SignatureData } from '@/api/hooks/use-prepare-signature'; import { diff --git a/packages/apps/human-app/frontend/src/modules/operator/hooks/use-add-stake-mutation-state.ts b/packages/apps/human-app/frontend/src/modules/operator/hooks/use-add-stake-mutation-state.ts index ec007fc25d..0a18642b74 100644 --- a/packages/apps/human-app/frontend/src/modules/operator/hooks/use-add-stake-mutation-state.ts +++ b/packages/apps/human-app/frontend/src/modules/operator/hooks/use-add-stake-mutation-state.ts @@ -1,7 +1,7 @@ import last from 'lodash/last'; import { useMutationState } from '@tanstack/react-query'; import type { MutationState } from '@tanstack/react-query'; -import { useConnectedWallet } from '@/modules/auth-web3/hooks/use-connected-wallet'; +import { useConnectedWallet } from '@/shared/contexts/wallet-connect'; import type { ResponseError } from '@/shared/types/global.type'; import { type AddStakeCallArguments } from '@/modules/operator/hooks/use-add-stake'; diff --git a/packages/apps/human-app/frontend/src/modules/operator/hooks/use-add-stake.ts b/packages/apps/human-app/frontend/src/modules/operator/hooks/use-add-stake.ts index 703e477371..675b9b8850 100644 --- a/packages/apps/human-app/frontend/src/modules/operator/hooks/use-add-stake.ts +++ b/packages/apps/human-app/frontend/src/modules/operator/hooks/use-add-stake.ts @@ -4,7 +4,7 @@ import { t } from 'i18next'; import { useNavigate } from 'react-router-dom'; import { ethers } from 'ethers'; import { stakingStake } from '@/modules/smart-contracts/Staking/staking-stake'; -import { useConnectedWallet } from '@/modules/auth-web3/hooks/use-connected-wallet'; +import { useConnectedWallet } from '@/shared/contexts/wallet-connect'; import { getContractAddress } from '@/modules/smart-contracts/get-contract-address'; import { hmTokenApprove } from '@/modules/smart-contracts/HMToken/hm-token-approve'; import type { ContractCallArguments } from '@/modules/smart-contracts/types'; diff --git a/packages/apps/human-app/frontend/src/modules/operator/hooks/use-disable-operator.ts b/packages/apps/human-app/frontend/src/modules/operator/hooks/use-disable-operator.ts index 421c9aa88e..a316284888 100644 --- a/packages/apps/human-app/frontend/src/modules/operator/hooks/use-disable-operator.ts +++ b/packages/apps/human-app/frontend/src/modules/operator/hooks/use-disable-operator.ts @@ -1,7 +1,7 @@ import { useMutation } from '@tanstack/react-query'; import { apiClient } from '@/api/api-client'; import { apiPaths } from '@/api/api-paths'; -import { useConnectedWallet } from '@/modules/auth-web3/hooks/use-connected-wallet'; +import { useConnectedWallet } from '@/shared/contexts/wallet-connect'; import { useAccessTokenRefresh } from '@/api/hooks/use-access-token-refresh'; import { useWeb3AuthenticatedUser } from '@/modules/auth-web3/hooks/use-web3-authenticated-user'; diff --git a/packages/apps/human-app/frontend/src/modules/operator/hooks/use-edit-existing-keys.ts b/packages/apps/human-app/frontend/src/modules/operator/hooks/use-edit-existing-keys.ts index ce22aeab45..53b789008b 100644 --- a/packages/apps/human-app/frontend/src/modules/operator/hooks/use-edit-existing-keys.ts +++ b/packages/apps/human-app/frontend/src/modules/operator/hooks/use-edit-existing-keys.ts @@ -9,7 +9,7 @@ import type { JsonRpcSigner } from 'ethers'; import { z, ZodError } from 'zod'; import { t } from 'i18next'; import { routerPaths } from '@/router/router-paths'; -import { useConnectedWallet } from '@/modules/auth-web3/hooks/use-connected-wallet'; +import { useConnectedWallet } from '@/shared/contexts/wallet-connect'; import { EthKVStoreKeys, JobType, diff --git a/packages/apps/human-app/frontend/src/modules/operator/hooks/use-get-keys.ts b/packages/apps/human-app/frontend/src/modules/operator/hooks/use-get-keys.ts index 47eab661c0..166c232129 100644 --- a/packages/apps/human-app/frontend/src/modules/operator/hooks/use-get-keys.ts +++ b/packages/apps/human-app/frontend/src/modules/operator/hooks/use-get-keys.ts @@ -1,6 +1,6 @@ import { useQuery } from '@tanstack/react-query'; import { z } from 'zod'; -import { useConnectedWallet } from '@/modules/auth-web3/hooks/use-connected-wallet'; +import { useConnectedWallet } from '@/shared/contexts/wallet-connect'; import { ethKVStoreGetKeys } from '@/modules/smart-contracts/EthKVStore/eth-kv-store-get-keys'; import { getContractAddress } from '@/modules/smart-contracts/get-contract-address'; import { EthKVStoreKeys } from '@/modules/smart-contracts/EthKVStore/config'; diff --git a/packages/apps/human-app/frontend/src/modules/operator/hooks/use-get-stacked-amount.ts b/packages/apps/human-app/frontend/src/modules/operator/hooks/use-get-stacked-amount.ts index 2d7aa5fa73..1b927f7850 100644 --- a/packages/apps/human-app/frontend/src/modules/operator/hooks/use-get-stacked-amount.ts +++ b/packages/apps/human-app/frontend/src/modules/operator/hooks/use-get-stacked-amount.ts @@ -2,7 +2,7 @@ import { useQuery } from '@tanstack/react-query'; import { ethers } from 'ethers'; import { t } from 'i18next'; import { stakingGetStakedTokens } from '@/modules/smart-contracts/Staking/staking-get-staked-tokens'; -import { useConnectedWallet } from '@/modules/auth-web3/hooks/use-connected-wallet'; +import { useConnectedWallet } from '@/shared/contexts/wallet-connect'; import { getContractAddress } from '@/modules/smart-contracts/get-contract-address'; export const stakedAmountFormatter = (amount: bigint) => { diff --git a/packages/apps/human-app/frontend/src/modules/operator/hooks/use-human-token-decimals.ts b/packages/apps/human-app/frontend/src/modules/operator/hooks/use-human-token-decimals.ts index 21d3560603..07a3e00a2c 100644 --- a/packages/apps/human-app/frontend/src/modules/operator/hooks/use-human-token-decimals.ts +++ b/packages/apps/human-app/frontend/src/modules/operator/hooks/use-human-token-decimals.ts @@ -1,5 +1,5 @@ import { useQuery } from '@tanstack/react-query'; -import { useConnectedWallet } from '@/modules/auth-web3/hooks/use-connected-wallet'; +import { useConnectedWallet } from '@/shared/contexts/wallet-connect'; import { hmTokenDecimals } from '@/modules/smart-contracts/HMToken/hm-token-decimals'; import { getContractAddress } from '@/modules/smart-contracts/get-contract-address'; diff --git a/packages/apps/human-app/frontend/src/modules/operator/hooks/use-web3-signin.ts b/packages/apps/human-app/frontend/src/modules/operator/hooks/use-web3-signin.ts index 40c55669d2..8641645e07 100644 --- a/packages/apps/human-app/frontend/src/modules/operator/hooks/use-web3-signin.ts +++ b/packages/apps/human-app/frontend/src/modules/operator/hooks/use-web3-signin.ts @@ -2,12 +2,11 @@ import { useMutation } from '@tanstack/react-query'; import { z } from 'zod'; import { useNavigate } from 'react-router-dom'; -import { t } from 'i18next'; import { apiClient } from '@/api/api-client'; import { apiPaths } from '@/api/api-paths'; import { useWeb3Auth } from '@/modules/auth-web3/hooks/use-web3-auth'; import { routerPaths } from '@/router/router-paths'; -import { useWalletConnect } from '@/shared/hooks/use-wallet-connect'; +import { useWalletConnect } from '@/shared/contexts/wallet-connect'; import type { PrepareSignatureBody } from '@/api/hooks/use-prepare-signature'; import { prepareSignature } from '@/api/hooks/use-prepare-signature'; @@ -27,9 +26,7 @@ export function useWeb3SignIn() { return useMutation({ mutationFn: async (body: PrepareSignatureBody) => { const dataToSign = await prepareSignature(body); - if (!signMessage) { - throw new Error(t('errors.unknown')); - } + const signature = await signMessage(JSON.stringify(dataToSign)); return apiClient(apiPaths.operator.web3Auth.signIn.path, { diff --git a/packages/apps/human-app/frontend/src/modules/operator/hooks/use-web3-signup.ts b/packages/apps/human-app/frontend/src/modules/operator/hooks/use-web3-signup.ts index a24c5e610e..bae23c38dd 100644 --- a/packages/apps/human-app/frontend/src/modules/operator/hooks/use-web3-signup.ts +++ b/packages/apps/human-app/frontend/src/modules/operator/hooks/use-web3-signup.ts @@ -2,7 +2,7 @@ import { useMutation } from '@tanstack/react-query'; import { z } from 'zod'; import { useNavigate } from 'react-router-dom'; -import { useConnectedWallet } from '@/modules/auth-web3/hooks/use-connected-wallet'; +import { useConnectedWallet } from '@/shared/contexts/wallet-connect'; import { apiClient } from '@/api/api-client'; import { apiPaths } from '@/api/api-paths'; import { useWeb3Auth } from '@/modules/auth-web3/hooks/use-web3-auth'; diff --git a/packages/apps/human-app/frontend/src/modules/operator/views/sign-up/connect-wallet.page.tsx b/packages/apps/human-app/frontend/src/modules/operator/views/sign-up/connect-wallet.page.tsx index e75fee6d81..08787c134d 100644 --- a/packages/apps/human-app/frontend/src/modules/operator/views/sign-up/connect-wallet.page.tsx +++ b/packages/apps/human-app/frontend/src/modules/operator/views/sign-up/connect-wallet.page.tsx @@ -2,7 +2,7 @@ import { Grid, Typography } from '@mui/material'; import { useTranslation } from 'react-i18next'; import { Navigate } from 'react-router-dom'; import { PageCard } from '@/shared/components/ui/page-card'; -import { useWalletConnect } from '@/shared/hooks/use-wallet-connect'; +import { useWalletConnect } from '@/shared/contexts/wallet-connect'; import { Alert } from '@/shared/components/ui/alert'; import { getErrorMessageForError } from '@/shared/errors'; import { Button } from '@/shared/components/ui/button'; diff --git a/packages/apps/human-app/frontend/src/modules/operator/views/sign-up/edit-existing-keys-success.page.tsx b/packages/apps/human-app/frontend/src/modules/operator/views/sign-up/edit-existing-keys-success.page.tsx index d856b72c6c..a541510587 100644 --- a/packages/apps/human-app/frontend/src/modules/operator/views/sign-up/edit-existing-keys-success.page.tsx +++ b/packages/apps/human-app/frontend/src/modules/operator/views/sign-up/edit-existing-keys-success.page.tsx @@ -14,7 +14,7 @@ import { usePrepareSignature, } from '@/api/hooks/use-prepare-signature'; import { Alert } from '@/shared/components/ui/alert'; -import { useConnectedWallet } from '@/modules/auth-web3/hooks/use-connected-wallet'; +import { useConnectedWallet } from '@/shared/contexts/wallet-connect'; export function EditExistingKeysSuccessPage() { const { address, signMessage } = useConnectedWallet(); diff --git a/packages/apps/human-app/frontend/src/modules/operator/views/sign-up/set-up-operator.page.tsx b/packages/apps/human-app/frontend/src/modules/operator/views/sign-up/set-up-operator.page.tsx index 920b50bf3a..5c0386bf4e 100644 --- a/packages/apps/human-app/frontend/src/modules/operator/views/sign-up/set-up-operator.page.tsx +++ b/packages/apps/human-app/frontend/src/modules/operator/views/sign-up/set-up-operator.page.tsx @@ -5,7 +5,7 @@ import { PageCard } from '@/shared/components/ui/page-card'; import { Alert } from '@/shared/components/ui/alert'; import { Button } from '@/shared/components/ui/button'; import { routerPaths } from '@/router/router-paths'; -import { useConnectedWallet } from '@/modules/auth-web3/hooks/use-connected-wallet'; +import { useConnectedWallet } from '@/shared/contexts/wallet-connect'; export function SetUpOperatorPage() { const { t } = useTranslation(); diff --git a/packages/apps/human-app/frontend/src/modules/worker/components/profile/profile-actions.tsx b/packages/apps/human-app/frontend/src/modules/worker/components/profile/profile-actions.tsx index 7450b87851..387fd32310 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/components/profile/profile-actions.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/components/profile/profile-actions.tsx @@ -3,7 +3,7 @@ import { useTranslation } from 'react-i18next'; import { Navigate } from 'react-router-dom'; import { useEffect, useRef } from 'react'; import { useAuthenticatedUser } from '@/modules/auth/hooks/use-authenticated-user'; -import { useWalletConnect } from '@/shared/hooks/use-wallet-connect'; +import { useWalletConnect } from '@/shared/contexts/wallet-connect'; import { Button } from '@/shared/components/ui/button'; import { routerPaths } from '@/router/router-paths'; import { WalletConnectDone } from '@/modules/worker/components/profile/wallet-connect-done'; diff --git a/packages/apps/human-app/frontend/src/modules/worker/components/profile/profile.page.tsx b/packages/apps/human-app/frontend/src/modules/worker/components/profile/profile.page.tsx index cd20a82001..41425547d0 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/components/profile/profile.page.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/components/profile/profile.page.tsx @@ -7,7 +7,7 @@ import { TopNotificationType, useNotification, } from '@/shared/hooks/use-notification'; -import { useWalletConnect } from '@/shared/hooks/use-wallet-connect'; +import { useWalletConnect } from '@/shared/contexts/wallet-connect'; import { useIsMobile } from '@/shared/hooks/use-is-mobile'; import { useAuthenticatedUser } from '@/modules/auth/hooks/use-authenticated-user'; diff --git a/packages/apps/human-app/frontend/src/modules/worker/components/profile/wallet-connect-done.tsx b/packages/apps/human-app/frontend/src/modules/worker/components/profile/wallet-connect-done.tsx index eefd503459..b7b2425b04 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/components/profile/wallet-connect-done.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/components/profile/wallet-connect-done.tsx @@ -6,7 +6,7 @@ import styled from '@mui/material/styles/styled'; import { CheckmarkIcon } from '@/shared/components/ui/icons'; import { colorPalette } from '@/shared/styles/color-palette'; import { useAuthenticatedUser } from '@/modules/auth/hooks/use-authenticated-user'; -import { useWalletConnect } from '@/shared/hooks/use-wallet-connect'; +import { useWalletConnect } from '@/shared/contexts/wallet-connect'; import { useColorMode } from '@/shared/hooks/use-color-mode'; import { darkColorPalette, diff --git a/packages/apps/human-app/frontend/src/modules/worker/hooks/use-register-address-on-chain.ts b/packages/apps/human-app/frontend/src/modules/worker/hooks/use-register-address-on-chain.ts index 9544a2b122..145994de8a 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/hooks/use-register-address-on-chain.ts +++ b/packages/apps/human-app/frontend/src/modules/worker/hooks/use-register-address-on-chain.ts @@ -5,7 +5,7 @@ import { useAuthenticatedUser } from '@/modules/auth/hooks/use-authenticated-use import { ethKvStoreSetBulk } from '@/modules/smart-contracts/EthKVStore/eth-kv-store-set-bulk'; import { getContractAddress } from '@/modules/smart-contracts/get-contract-address'; import type { SignedAddressSuccess } from '@/modules/worker/services/get-signed-address'; -import { useWalletConnect } from '@/shared/hooks/use-wallet-connect'; +import { useWalletConnect } from '@/shared/contexts/wallet-connect'; import { checkNetwork } from '@/modules/smart-contracts/check-network'; async function registerAddressInKVStore({ diff --git a/packages/apps/human-app/frontend/src/modules/worker/hooks/use-register-address.ts b/packages/apps/human-app/frontend/src/modules/worker/hooks/use-register-address.ts index bcd7d4b089..0527b457cc 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/hooks/use-register-address.ts +++ b/packages/apps/human-app/frontend/src/modules/worker/hooks/use-register-address.ts @@ -10,7 +10,7 @@ import { } from '@/api/hooks/use-prepare-signature'; import type { ResponseError } from '@/shared/types/global.type'; import { useAccessTokenRefresh } from '@/api/hooks/use-access-token-refresh'; -import { useWalletConnect } from '@/shared/hooks/use-wallet-connect'; +import { useWalletConnect } from '@/shared/contexts/wallet-connect'; const RegisterAddressSuccessSchema = z.unknown(); diff --git a/packages/apps/human-app/frontend/src/modules/worker/services/get-on-chain-registered-address.ts b/packages/apps/human-app/frontend/src/modules/worker/services/get-on-chain-registered-address.ts index d8e8b6e61b..d4a6f25467 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/services/get-on-chain-registered-address.ts +++ b/packages/apps/human-app/frontend/src/modules/worker/services/get-on-chain-registered-address.ts @@ -4,7 +4,7 @@ import { useQuery } from '@tanstack/react-query'; import { useAuthenticatedUser } from '@/modules/auth/hooks/use-authenticated-user'; import { ethKVStoreGetKycData } from '@/modules/smart-contracts/EthKVStore/eth-kv-store-get-kyc-data'; import { getContractAddress } from '@/modules/smart-contracts/get-contract-address'; -import { useWalletConnect } from '@/shared/hooks/use-wallet-connect'; +import { useWalletConnect } from '@/shared/contexts/wallet-connect'; export interface RegisterAddressPayload { address: string; diff --git a/packages/apps/human-app/frontend/src/router/router.tsx b/packages/apps/human-app/frontend/src/router/router.tsx index 098ca5944e..becd779158 100644 --- a/packages/apps/human-app/frontend/src/router/router.tsx +++ b/packages/apps/human-app/frontend/src/router/router.tsx @@ -8,7 +8,7 @@ import { web3ProtectedRoutes, } from '@/router/routes'; import { RequireAuth } from '@/modules/auth/providers/require-auth'; -import { RequireWalletConnect } from '@/modules/auth-web3/providers/require-wallet-connect'; +import { RequireWalletConnect } from '@/shared/contexts/wallet-connect'; import { RequireWeb3Auth } from '@/modules/auth-web3/providers/require-web3-auth'; import { DrawerNavigation } from '@/shared/components/layout/protected/drawer-navigation'; import { diff --git a/packages/apps/human-app/frontend/src/shared/components/ui/connect-wallet-btn.tsx b/packages/apps/human-app/frontend/src/shared/components/ui/connect-wallet-btn.tsx index 3b340baadd..13d546f536 100644 --- a/packages/apps/human-app/frontend/src/shared/components/ui/connect-wallet-btn.tsx +++ b/packages/apps/human-app/frontend/src/shared/components/ui/connect-wallet-btn.tsx @@ -1,7 +1,7 @@ import { useTranslation } from 'react-i18next'; import type { CustomButtonProps } from '@/shared/components/ui/button'; import { Button } from '@/shared/components/ui/button'; -import { useWalletConnect } from '@/shared/hooks/use-wallet-connect'; +import { useWalletConnect } from '@/shared/contexts/wallet-connect'; export function ConnectWalletBtn(props: CustomButtonProps) { const { openModal, isConnected } = useWalletConnect(); diff --git a/packages/apps/human-app/frontend/src/shared/contexts/wallet-connect.tsx b/packages/apps/human-app/frontend/src/shared/contexts/wallet-connect.tsx deleted file mode 100644 index 9c48095507..0000000000 --- a/packages/apps/human-app/frontend/src/shared/contexts/wallet-connect.tsx +++ /dev/null @@ -1,155 +0,0 @@ -import type { JsonRpcSigner, BrowserProvider, Eip1193Provider } from 'ethers'; -import React, { createContext, useEffect, useState } from 'react'; -import { type UseMutationResult } from '@tanstack/react-query'; -import { - useAppKit, - useAppKitAccount, - useAppKitNetwork, - createAppKit, - type AppKitOptions, -} from '@reown/appkit/react'; -import { WagmiProvider } from 'wagmi'; -import { WagmiAdapter } from '@reown/appkit-adapter-wagmi'; -import { polygonAmoy, polygon } from '@reown/appkit/networks'; -import { env } from '@/shared/env'; -import type { ResponseError } from '@/shared/types/global.type'; -import { useWeb3Provider } from '@/shared/hooks/use-web3-provider'; -import { JsonRpcError } from '@/modules/smart-contracts/json-rpc-error'; - -const projectId = env.VITE_WALLET_CONNECT_PROJECT_ID; - -const metadata = { - name: env.VITE_DAPP_META_NAME, - description: env.VITE_DAPP_META_DESCRIPTION, - url: env.VITE_DAPP_META_URL, - icons: env.VITE_DAPP_ICONS, -}; - -const networks: AppKitOptions['networks'] = [polygon, polygonAmoy]; - -const wagmiAdapter = new WagmiAdapter({ - networks, - projectId, -}); - -export interface CommonWalletConnectContext { - openModal: () => Promise; - web3ProviderMutation: UseMutationResult< - { - provider: BrowserProvider; - signer: JsonRpcSigner; - }, - ResponseError, - Eip1193Provider - >; - initializing: boolean; -} - -interface ConnectedAccount { - isConnected: true; - chainId: number; - address: string; - signMessage: (message: string) => Promise; -} - -interface DisconnectedAccount { - isConnected: false; - chainId?: never; - address?: never; - signMessage?: (message: string) => Promise; -} - -export type WalletConnectContextConnectedAccount = CommonWalletConnectContext & - ConnectedAccount; - -type WalletConnectContextDisconnectedAccount = CommonWalletConnectContext & - DisconnectedAccount; - -export const WalletConnectContext = createContext< - | WalletConnectContextConnectedAccount - | WalletConnectContextDisconnectedAccount - | null ->(null); - -createAppKit({ - adapters: [wagmiAdapter], - networks, - projectId, - metadata, -}); - -export function WalletConnectProvider({ - children, -}: { - children: React.ReactNode; -}) { - const [initializing, setInitializing] = useState(true); - const web3ProviderMutation = useWeb3Provider(); - const { open } = useAppKit(); - const { address, isConnected } = useAppKitAccount(); - const { chainId } = useAppKitNetwork(); - - const openModal = async () => { - await open(); - }; - - useEffect(() => { - if ( - web3ProviderMutation.status === 'error' || - web3ProviderMutation.status === 'success' - ) { - setInitializing(false); - } - }, [web3ProviderMutation]); - - return ( - - { - try { - const signature = - await web3ProviderMutation.data.signer.signMessage( - message - ); - return signature; - } catch (error) { - throw new JsonRpcError(error); - } - }, - initializing, - } - : { - isConnected: false, - web3ProviderMutation, - openModal, - signMessage: async (message: string) => { - if (web3ProviderMutation.data) { - try { - const signature = - await web3ProviderMutation.data.signer.signMessage( - message - ); - return signature; - } catch (error) { - throw new JsonRpcError(error); - } - } - return Promise.resolve(undefined); - }, - initializing, - } - } - > - {children} - - - ); -} diff --git a/packages/apps/human-app/frontend/src/shared/contexts/wallet-connect/index.ts b/packages/apps/human-app/frontend/src/shared/contexts/wallet-connect/index.ts new file mode 100644 index 0000000000..c0af686fdd --- /dev/null +++ b/packages/apps/human-app/frontend/src/shared/contexts/wallet-connect/index.ts @@ -0,0 +1,4 @@ +export * from './wallet-connect'; +export * from './use-wallet-connect'; +export * from './require-wallet-connect'; +export * from './use-connected-wallet'; diff --git a/packages/apps/human-app/frontend/src/modules/auth-web3/providers/require-wallet-connect.tsx b/packages/apps/human-app/frontend/src/shared/contexts/wallet-connect/require-wallet-connect.tsx similarity index 64% rename from packages/apps/human-app/frontend/src/modules/auth-web3/providers/require-wallet-connect.tsx rename to packages/apps/human-app/frontend/src/shared/contexts/wallet-connect/require-wallet-connect.tsx index ccb21fcf2c..66416f1930 100644 --- a/packages/apps/human-app/frontend/src/modules/auth-web3/providers/require-wallet-connect.tsx +++ b/packages/apps/human-app/frontend/src/shared/contexts/wallet-connect/require-wallet-connect.tsx @@ -1,14 +1,16 @@ import { useLocation, Navigate } from 'react-router-dom'; import { createContext } from 'react'; -import { useWalletConnect } from '@/shared/hooks/use-wallet-connect'; -import type { WalletConnectContextConnectedAccount } from '@/shared/contexts/wallet-connect'; import { routerPaths } from '@/router/router-paths'; import { PageCardLoader } from '@/shared/components/ui/page-card'; +import { type WalletConnectContextConnectedAccount } from './types'; +import { useWalletConnect } from './use-wallet-connect'; -export const AuthWeb3Context = +export const ConnectedWalletContext = createContext(null); -export function RequireWalletConnect({ children }: { children: JSX.Element }) { +export function RequireWalletConnect({ + children, +}: Readonly<{ children: JSX.Element }>) { const walletConnect = useWalletConnect(); const location = useLocation(); @@ -27,8 +29,8 @@ export function RequireWalletConnect({ children }: { children: JSX.Element }) { } return ( - + {children} - + ); } diff --git a/packages/apps/human-app/frontend/src/shared/contexts/wallet-connect/types.ts b/packages/apps/human-app/frontend/src/shared/contexts/wallet-connect/types.ts new file mode 100644 index 0000000000..a8c6673407 --- /dev/null +++ b/packages/apps/human-app/frontend/src/shared/contexts/wallet-connect/types.ts @@ -0,0 +1,35 @@ +import type { JsonRpcSigner, BrowserProvider, Eip1193Provider } from 'ethers'; +import { type UseMutationResult } from '@tanstack/react-query'; +import type { ResponseError } from '@/shared/types/global.type'; + +interface CommonWalletConnectContext { + openModal: () => Promise; + web3ProviderMutation: UseMutationResult< + { + provider: BrowserProvider; + signer: JsonRpcSigner; + }, + ResponseError, + Eip1193Provider + >; + initializing: boolean; + signMessage: (message: string) => Promise; +} + +interface ConnectedAccount { + isConnected: true; + chainId: number; + address: string; +} + +interface DisconnectedAccount { + isConnected: false; + chainId?: never; + address?: never; +} + +export type WalletConnectContextConnectedAccount = CommonWalletConnectContext & + ConnectedAccount; + +export type WalletConnectContextDisconnectedAccount = + CommonWalletConnectContext & DisconnectedAccount; diff --git a/packages/apps/human-app/frontend/src/modules/auth-web3/hooks/use-connected-wallet.tsx b/packages/apps/human-app/frontend/src/shared/contexts/wallet-connect/use-connected-wallet.tsx similarity index 65% rename from packages/apps/human-app/frontend/src/modules/auth-web3/hooks/use-connected-wallet.tsx rename to packages/apps/human-app/frontend/src/shared/contexts/wallet-connect/use-connected-wallet.tsx index cecc1ce0cb..a550595d8e 100644 --- a/packages/apps/human-app/frontend/src/modules/auth-web3/hooks/use-connected-wallet.tsx +++ b/packages/apps/human-app/frontend/src/shared/contexts/wallet-connect/use-connected-wallet.tsx @@ -1,8 +1,8 @@ import { useContext } from 'react'; -import { AuthWeb3Context } from '@/modules/auth-web3/providers/require-wallet-connect'; +import { ConnectedWalletContext } from './require-wallet-connect'; export const useConnectedWallet = () => { - const context = useContext(AuthWeb3Context); + const context = useContext(ConnectedWalletContext); if (!context) { throw new Error( diff --git a/packages/apps/human-app/frontend/src/shared/hooks/use-wallet-connect.tsx b/packages/apps/human-app/frontend/src/shared/contexts/wallet-connect/use-wallet-connect.tsx similarity index 76% rename from packages/apps/human-app/frontend/src/shared/hooks/use-wallet-connect.tsx rename to packages/apps/human-app/frontend/src/shared/contexts/wallet-connect/use-wallet-connect.tsx index b0a24495b8..84272f5097 100644 --- a/packages/apps/human-app/frontend/src/shared/hooks/use-wallet-connect.tsx +++ b/packages/apps/human-app/frontend/src/shared/contexts/wallet-connect/use-wallet-connect.tsx @@ -1,5 +1,5 @@ import { useContext } from 'react'; -import { WalletConnectContext } from '@/shared/contexts/wallet-connect'; +import { WalletConnectContext } from './wallet-connect'; export const useWalletConnect = () => { const context = useContext(WalletConnectContext); diff --git a/packages/apps/human-app/frontend/src/shared/contexts/wallet-connect/wallet-connect.tsx b/packages/apps/human-app/frontend/src/shared/contexts/wallet-connect/wallet-connect.tsx new file mode 100644 index 0000000000..5ef56aa933 --- /dev/null +++ b/packages/apps/human-app/frontend/src/shared/contexts/wallet-connect/wallet-connect.tsx @@ -0,0 +1,132 @@ +import React, { + createContext, + useCallback, + useEffect, + useMemo, + useState, +} from 'react'; +import { + useAppKit, + useAppKitAccount, + useAppKitNetwork, + createAppKit, + type AppKitOptions, +} from '@reown/appkit/react'; +import { WagmiProvider } from 'wagmi'; +import { WagmiAdapter } from '@reown/appkit-adapter-wagmi'; +import { polygonAmoy, polygon } from '@reown/appkit/networks'; +import { env } from '@/shared/env'; +import { useWeb3Provider } from '@/shared/hooks/use-web3-provider'; +import { JsonRpcError } from '@/modules/smart-contracts/json-rpc-error'; +import { + type WalletConnectContextConnectedAccount, + type WalletConnectContextDisconnectedAccount, +} from './types'; + +const projectId = env.VITE_WALLET_CONNECT_PROJECT_ID; + +const metadata = { + name: env.VITE_DAPP_META_NAME, + description: env.VITE_DAPP_META_DESCRIPTION, + url: env.VITE_DAPP_META_URL, + icons: env.VITE_DAPP_ICONS, +}; + +const networks: AppKitOptions['networks'] = [polygon, polygonAmoy]; + +const wagmiAdapter = new WagmiAdapter({ + networks, + projectId, +}); + +createAppKit({ + adapters: [wagmiAdapter], + networks, + projectId, + metadata, +}); + +export const WalletConnectContext = createContext< + | WalletConnectContextConnectedAccount + | WalletConnectContextDisconnectedAccount + | null +>(null); + +export function WalletConnectProvider({ + children, +}: Readonly<{ + children: React.ReactNode; +}>) { + const [initializing, setInitializing] = useState(true); + const web3ProviderMutation = useWeb3Provider(); + const { open } = useAppKit(); + const { address, isConnected } = useAppKitAccount(); + const { chainId } = useAppKitNetwork(); + + useEffect(() => { + if ( + web3ProviderMutation.status === 'error' || + web3ProviderMutation.status === 'success' + ) { + setInitializing(false); + } + }, [web3ProviderMutation]); + + const openModal = useCallback(async () => { + await open(); + }, [open]); + + const signMessage = useCallback( + async (message: string) => { + if (web3ProviderMutation.data) { + try { + const signature = + await web3ProviderMutation.data.signer.signMessage(message); + return signature; + } catch (error) { + throw new JsonRpcError(error); + } + } + }, + [web3ProviderMutation.data] + ); + + const isReady = + isConnected && address && chainId && web3ProviderMutation.data; + + const contextValue = useMemo(() => { + return isReady + ? ({ + isConnected: true, + address, + chainId: Number(chainId), + web3ProviderMutation, + openModal, + signMessage, + initializing, + } satisfies WalletConnectContextConnectedAccount) + : ({ + isConnected: false, + web3ProviderMutation, + openModal, + signMessage, + initializing, + } satisfies WalletConnectContextDisconnectedAccount); + }, [ + isReady, + address, + chainId, + web3ProviderMutation, + openModal, + signMessage, + initializing, + ]); + + return ( + + + {children} + + + ); +} From 376526d617177e69f5b7d5bcce3752776d97df6e Mon Sep 17 00:00:00 2001 From: mpblocky <185767042+mpblocky@users.noreply.github.com> Date: Thu, 30 Jan 2025 16:44:54 +0100 Subject: [PATCH 34/44] [Human App] refactor: color mode context (#3006) --- packages/apps/human-app/frontend/src/main.tsx | 2 +- .../choose-sign-up-account-type.tsx | 2 +- .../modules/homepage/components/welcome.tsx | 2 +- .../src/modules/homepage/views/home.page.tsx | 2 +- .../add-keys/edit-existing-keys-form.tsx | 2 +- .../sign-up/add-keys/existing-keys.tsx | 2 +- .../operator/views/profile/profile.page.tsx | 2 +- .../operator/views/sign-up/add-stake.page.tsx | 2 +- .../table-example/table-search-form.tsx | 2 +- .../user-stats-accordion.tsx | 2 +- .../hcaptcha-labeling/user-stats-details.tsx | 2 +- .../jobs-discovery/oracles-table-mobile.tsx | 2 +- .../jobs-discovery/oracles-table.tsx | 2 +- .../desktop/available-jobs-table.tsx | 2 +- .../mobile/available-jobs-drawer-mobile.tsx | 2 +- ...ailable-jobs-reward-amount-sort-mobile.tsx | 2 +- .../mobile/available-jobs-table-mobile.tsx | 2 +- .../jobs/escrow-address-search-form.tsx | 2 +- .../worker/components/jobs/evm-address.tsx | 2 +- .../jobs/my-jobs/desktop/my-jobs-table.tsx | 2 +- .../my-jobs/mobile/my-jobs-drawer-mobile.tsx | 2 +- .../mobile/my-jobs-expires-at-sort-mobile.tsx | 2 +- .../my-jobs-reward-amount-sort-mobile.tsx | 2 +- .../my-jobs/mobile/my-jobs-table-mobile.tsx | 2 +- .../worker/components/jobs/sorting.tsx | 2 +- .../worker/components/jobs/status-chip.tsx | 2 +- .../components/profile/profile-data.tsx | 2 +- .../profile/wallet-connect-done.tsx | 4 +- .../email-verification/verify-email.page.tsx | 2 +- .../hcaptcha-labeling.page.tsx | 2 +- .../modules/worker/views/jobs/jobs.page.tsx | 4 +- .../reset-password-success.page.tsx | 2 +- .../send-reset-link-success.page.tsx | 2 +- .../shared/components/data-entry/checkbox.tsx | 2 +- .../shared/components/data-entry/input.tsx | 2 +- .../components/data-entry/multi-select.tsx | 2 +- .../data-entry/password/password.tsx | 2 +- .../shared/components/data-entry/select.tsx | 2 +- .../components/hcaptcha/h-captcha-form.tsx | 2 +- .../shared/components/hcaptcha/h-captcha.tsx | 2 +- .../src/shared/components/layout/footer.tsx | 2 +- .../layout/protected/drawer-navigation.tsx | 2 +- .../components/layout/protected/navbar.tsx | 2 +- .../components/layout/unprotected/layout.tsx | 2 +- .../src/shared/components/ui/alert.tsx | 2 +- .../src/shared/components/ui/chip.tsx | 2 +- .../shared/components/ui/dark-mode-switch.tsx | 2 +- .../components/ui/empty-placeholder.tsx | 2 +- .../src/shared/components/ui/icons.tsx | 2 +- .../src/shared/components/ui/loader.tsx | 2 +- .../src/shared/components/ui/no-records.tsx | 2 +- .../ui/page-card/page-card-error.tsx | 2 +- .../ui/page-card/page-card-loader.tsx | 2 +- .../components/ui/page-card/page-card.tsx | 2 +- .../components/ui/profile-list-item.tsx | 2 +- .../shared/components/ui/success-label.tsx | 2 +- .../table/table-header-menu.tsx/filtering.tsx | 2 +- .../table/table-header-menu.tsx/sorting.tsx | 2 +- .../src/shared/components/ui/ui-example.tsx | 2 +- .../shared/contexts/color-mode-context.tsx | 109 ------------------ .../color-mode/color-mode-handlers.ts | 15 +++ .../color-mode/color-mode-settings.ts | 22 ++++ .../shared/contexts/color-mode/color-mode.tsx | 94 +++++++++++++++ .../src/shared/contexts/color-mode/index.ts | 2 + .../color-mode}/use-color-mode.tsx | 3 +- .../src/shared/hooks/use-notification.tsx | 2 +- 66 files changed, 196 insertions(+), 173 deletions(-) delete mode 100644 packages/apps/human-app/frontend/src/shared/contexts/color-mode-context.tsx create mode 100644 packages/apps/human-app/frontend/src/shared/contexts/color-mode/color-mode-handlers.ts create mode 100644 packages/apps/human-app/frontend/src/shared/contexts/color-mode/color-mode-settings.ts create mode 100644 packages/apps/human-app/frontend/src/shared/contexts/color-mode/color-mode.tsx create mode 100644 packages/apps/human-app/frontend/src/shared/contexts/color-mode/index.ts rename packages/apps/human-app/frontend/src/shared/{hooks => contexts/color-mode}/use-color-mode.tsx (62%) diff --git a/packages/apps/human-app/frontend/src/main.tsx b/packages/apps/human-app/frontend/src/main.tsx index 5a45f59c3c..855bc34e58 100644 --- a/packages/apps/human-app/frontend/src/main.tsx +++ b/packages/apps/human-app/frontend/src/main.tsx @@ -16,7 +16,7 @@ import '@fontsource/inter/800.css'; import { WalletConnectProvider } from '@/shared/contexts/wallet-connect'; import { Web3AuthProvider } from '@/modules/auth-web3/context/web3-auth-context'; import { JWTExpirationCheck } from '@/shared/contexts/jwt-expiration-check'; -import { ColorModeProvider } from '@/shared/contexts/color-mode-context'; +import { ColorModeProvider } from '@/shared/contexts/color-mode'; import { HomePageStateProvider } from '@/shared/contexts/homepage-state'; import { RegisteredOraclesProvider } from '@/shared/contexts/registered-oracles'; import { NotificationProvider } from '@/shared/providers/notifications-provider'; diff --git a/packages/apps/human-app/frontend/src/modules/homepage/components/choose-sign-up-account-type.tsx b/packages/apps/human-app/frontend/src/modules/homepage/components/choose-sign-up-account-type.tsx index d3768ced6f..c694ab548e 100644 --- a/packages/apps/human-app/frontend/src/modules/homepage/components/choose-sign-up-account-type.tsx +++ b/packages/apps/human-app/frontend/src/modules/homepage/components/choose-sign-up-account-type.tsx @@ -6,7 +6,7 @@ import { useIsMobile } from '@/shared/hooks/use-is-mobile'; import { routerPaths } from '@/router/router-paths'; import { PageCard } from '@/shared/components/ui/page-card'; import type { HomePageStageType } from '@/modules/homepage/views/home.page'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; import { onlyDarkModeColor } from '@/shared/styles/dark-color-palette'; import { useHomePageState } from '@/shared/contexts/homepage-state'; diff --git a/packages/apps/human-app/frontend/src/modules/homepage/components/welcome.tsx b/packages/apps/human-app/frontend/src/modules/homepage/components/welcome.tsx index 2ab371fed6..4662475f3f 100644 --- a/packages/apps/human-app/frontend/src/modules/homepage/components/welcome.tsx +++ b/packages/apps/human-app/frontend/src/modules/homepage/components/welcome.tsx @@ -11,7 +11,7 @@ import { Button } from '@/shared/components/ui/button'; import { useIsMobile } from '@/shared/hooks/use-is-mobile'; import { OperatorSignIn } from '@/modules/homepage/hooks/use-operator-signin'; import { WorkerSignIn } from '@/modules/homepage/components/worker-signin'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; import { useBackgroundColorStore } from '@/shared/hooks/use-background-store'; import { useHomePageState } from '@/shared/contexts/homepage-state'; diff --git a/packages/apps/human-app/frontend/src/modules/homepage/views/home.page.tsx b/packages/apps/human-app/frontend/src/modules/homepage/views/home.page.tsx index dd6d805e80..83821bd2ab 100644 --- a/packages/apps/human-app/frontend/src/modules/homepage/views/home.page.tsx +++ b/packages/apps/human-app/frontend/src/modules/homepage/views/home.page.tsx @@ -7,7 +7,7 @@ import { useWeb3Auth } from '@/modules/auth-web3/hooks/use-web3-auth'; import { useAuth } from '@/modules/auth/hooks/use-auth'; import { routerPaths } from '@/router/router-paths'; import { Button } from '@/shared/components/ui/button'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; import { HomeContainer } from '@/modules/homepage/components/home-container'; import { useHomePageState } from '@/shared/contexts/homepage-state'; diff --git a/packages/apps/human-app/frontend/src/modules/operator/components/sign-up/add-keys/edit-existing-keys-form.tsx b/packages/apps/human-app/frontend/src/modules/operator/components/sign-up/add-keys/edit-existing-keys-form.tsx index d70a64ef25..654bccfed8 100644 --- a/packages/apps/human-app/frontend/src/modules/operator/components/sign-up/add-keys/edit-existing-keys-form.tsx +++ b/packages/apps/human-app/frontend/src/modules/operator/components/sign-up/add-keys/edit-existing-keys-form.tsx @@ -13,7 +13,7 @@ import { Select } from '@/shared/components/data-entry/select'; import { MultiSelect } from '@/shared/components/data-entry/multi-select'; import { JOB_TYPES } from '@/shared/consts'; import type { GetEthKVStoreValuesSuccessResponse } from '@/modules/operator/hooks/use-get-keys'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; import { order, sortFormKeys, diff --git a/packages/apps/human-app/frontend/src/modules/operator/components/sign-up/add-keys/existing-keys.tsx b/packages/apps/human-app/frontend/src/modules/operator/components/sign-up/add-keys/existing-keys.tsx index 8eb715e501..d617ab6d0a 100644 --- a/packages/apps/human-app/frontend/src/modules/operator/components/sign-up/add-keys/existing-keys.tsx +++ b/packages/apps/human-app/frontend/src/modules/operator/components/sign-up/add-keys/existing-keys.tsx @@ -15,7 +15,7 @@ import { order, sortFormKeys, } from '@/modules/operator/components/sign-up/add-keys/sort-form'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; const existingKeysConfig: Record< EthKVStoreKeyValues, diff --git a/packages/apps/human-app/frontend/src/modules/operator/views/profile/profile.page.tsx b/packages/apps/human-app/frontend/src/modules/operator/views/profile/profile.page.tsx index 413e16b9c4..c128bd16dc 100644 --- a/packages/apps/human-app/frontend/src/modules/operator/views/profile/profile.page.tsx +++ b/packages/apps/human-app/frontend/src/modules/operator/views/profile/profile.page.tsx @@ -14,7 +14,7 @@ import { ProfileListItem } from '@/shared/components/ui/profile-list-item'; import { useGetOperatorStats } from '@/modules/operator/hooks/use-get-stats'; import { ProfileEnableButton } from '@/modules/operator/components/profile/profile-enable-button'; import { CheckmarkIcon, LockerIcon } from '@/shared/components/ui/icons'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; export function OperatorProfilePage() { const { colorPalette } = useColorMode(); diff --git a/packages/apps/human-app/frontend/src/modules/operator/views/sign-up/add-stake.page.tsx b/packages/apps/human-app/frontend/src/modules/operator/views/sign-up/add-stake.page.tsx index eaba0eab1e..76fc5e9fc7 100644 --- a/packages/apps/human-app/frontend/src/modules/operator/views/sign-up/add-stake.page.tsx +++ b/packages/apps/human-app/frontend/src/modules/operator/views/sign-up/add-stake.page.tsx @@ -17,7 +17,7 @@ import { } from '@/modules/operator/hooks/use-get-stacked-amount'; import { useAddStakeMutationState } from '@/modules/operator/hooks/use-add-stake-mutation-state'; import { useHMTokenDecimals } from '@/modules/operator/hooks/use-human-token-decimals'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; import { onlyDarkModeColor } from '@/shared/styles/dark-color-palette'; export function AddStakeOperatorPage() { diff --git a/packages/apps/human-app/frontend/src/modules/playground/components/table-example/table-search-form.tsx b/packages/apps/human-app/frontend/src/modules/playground/components/table-example/table-search-form.tsx index 551216976b..454fc88446 100644 --- a/packages/apps/human-app/frontend/src/modules/playground/components/table-example/table-search-form.tsx +++ b/packages/apps/human-app/frontend/src/modules/playground/components/table-example/table-search-form.tsx @@ -2,7 +2,7 @@ import Search from '@mui/icons-material/Search'; import InputAdornment from '@mui/material/InputAdornment'; import { FormProvider, useForm } from 'react-hook-form'; import { Input } from '@/shared/components/data-entry/input'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; interface SearchFormProps { label: string; diff --git a/packages/apps/human-app/frontend/src/modules/worker/components/hcaptcha-labeling/user-stats-accordion.tsx b/packages/apps/human-app/frontend/src/modules/worker/components/hcaptcha-labeling/user-stats-accordion.tsx index f6aca97d8d..df817e5d34 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/components/hcaptcha-labeling/user-stats-accordion.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/components/hcaptcha-labeling/user-stats-accordion.tsx @@ -13,7 +13,7 @@ import { useNotification, } from '@/shared/hooks/use-notification'; import { getErrorMessageForError } from '@/shared/errors'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; const accordionWidth = { width: '284px' }; diff --git a/packages/apps/human-app/frontend/src/modules/worker/components/hcaptcha-labeling/user-stats-details.tsx b/packages/apps/human-app/frontend/src/modules/worker/components/hcaptcha-labeling/user-stats-details.tsx index 4fc84228e4..205d7ede42 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/components/hcaptcha-labeling/user-stats-details.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/components/hcaptcha-labeling/user-stats-details.tsx @@ -2,7 +2,7 @@ import { Divider, Grid, Typography } from '@mui/material'; import { t } from 'i18next'; import { RefreshIcon } from '@/shared/components/ui/icons'; import type { HCaptchaUserStatsSuccess } from '@/modules/worker/services/hcaptcha-user-stats'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; import { onlyDarkModeColor } from '@/shared/styles/dark-color-palette'; export function UserStatsDetails({ diff --git a/packages/apps/human-app/frontend/src/modules/worker/components/jobs-discovery/oracles-table-mobile.tsx b/packages/apps/human-app/frontend/src/modules/worker/components/jobs-discovery/oracles-table-mobile.tsx index ac26e08950..99324e5807 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/components/jobs-discovery/oracles-table-mobile.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/components/jobs-discovery/oracles-table-mobile.tsx @@ -6,7 +6,7 @@ import { Loader } from '@/shared/components/ui/loader'; import type { OraclesDataQueryResult } from '@/modules/worker/views/jobs-discovery/jobs-discovery.page'; import { EvmAddress } from '@/modules/worker/components/jobs/evm-address'; import { ListItem } from '@/shared/components/ui/list-item'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; import type { JobType } from '@/modules/smart-contracts/EthKVStore/config'; import type { Oracle } from '@/modules/worker/services/oracles'; import { NoRecords } from '@/shared/components/ui/no-records'; diff --git a/packages/apps/human-app/frontend/src/modules/worker/components/jobs-discovery/oracles-table.tsx b/packages/apps/human-app/frontend/src/modules/worker/components/jobs-discovery/oracles-table.tsx index 216e8c8fb1..7e5ef2528d 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/components/jobs-discovery/oracles-table.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/components/jobs-discovery/oracles-table.tsx @@ -14,7 +14,7 @@ import { routerPaths } from '@/router/router-paths'; import type { OraclesDataQueryResult } from '@/modules/worker/views/jobs-discovery/jobs-discovery.page'; import { env } from '@/shared/env'; import { useGetRegistrationInExchangeOracles } from '@/modules/worker/services/get-registration-in-exchange-oracles'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; import { useIsMobile } from '@/shared/hooks/use-is-mobile'; import { type JobType } from '@/modules/smart-contracts/EthKVStore/config'; import { createTableDarkMode } from '@/shared/styles/create-table-dark-mode'; diff --git a/packages/apps/human-app/frontend/src/modules/worker/components/jobs/available-jobs/desktop/available-jobs-table.tsx b/packages/apps/human-app/frontend/src/modules/worker/components/jobs/available-jobs/desktop/available-jobs-table.tsx index a49014f658..3c11391ce7 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/components/jobs/available-jobs/desktop/available-jobs-table.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/components/jobs/available-jobs/desktop/available-jobs-table.tsx @@ -23,7 +23,7 @@ import { TableHeaderCell } from '@/shared/components/ui/table/table-header-cell' import { AvailableJobsNetworkFilter } from '@/modules/worker/components/jobs/available-jobs/desktop/available-jobs-network-filter'; import { AvailableJobsRewardAmountSort } from '@/modules/worker/components/jobs/available-jobs/desktop/available-jobs-reward-amount-sort'; import { AvailableJobsJobTypeFilter } from '@/modules/worker/components/jobs/available-jobs/desktop/available-jobs-job-type-filter'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; import { createTableDarkMode } from '@/shared/styles/create-table-dark-mode'; import type { JobType } from '@/modules/smart-contracts/EthKVStore/config'; import { EscrowAddressSearchForm } from '@/modules/worker/components/jobs/escrow-address-search-form'; diff --git a/packages/apps/human-app/frontend/src/modules/worker/components/jobs/available-jobs/mobile/available-jobs-drawer-mobile.tsx b/packages/apps/human-app/frontend/src/modules/worker/components/jobs/available-jobs/mobile/available-jobs-drawer-mobile.tsx index 3225cbe5bb..8fc33beddc 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/components/jobs/available-jobs/mobile/available-jobs-drawer-mobile.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/components/jobs/available-jobs/mobile/available-jobs-drawer-mobile.tsx @@ -10,7 +10,7 @@ import { AvailableJobsNetworkFilterMobile } from '@/modules/worker/components/jo import { useHandleMainNavIconClick } from '@/shared/hooks/use-handle-main-nav-icon-click'; import { AvailableJobsJobTypeFilterMobile } from '@/modules/worker/components/jobs/available-jobs/mobile/available-jobs-job-type-filter-mobile'; import { AvailableJobsRewardAmountSortMobile } from '@/modules/worker/components/jobs/available-jobs/mobile/available-jobs-reward-amount-sort-mobile'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; interface DrawerMobileProps { setIsMobileFilterDrawerOpen: Dispatch>; diff --git a/packages/apps/human-app/frontend/src/modules/worker/components/jobs/available-jobs/mobile/available-jobs-reward-amount-sort-mobile.tsx b/packages/apps/human-app/frontend/src/modules/worker/components/jobs/available-jobs/mobile/available-jobs-reward-amount-sort-mobile.tsx index 41a74c8e8d..ce6704f8e3 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/components/jobs/available-jobs/mobile/available-jobs-reward-amount-sort-mobile.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/components/jobs/available-jobs/mobile/available-jobs-reward-amount-sort-mobile.tsx @@ -1,7 +1,7 @@ /* eslint-disable camelcase */ import { t } from 'i18next'; import Typography from '@mui/material/Typography'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; import { useJobsFilterStore } from '@/modules/worker/hooks/use-jobs-filter-store'; import { Sorting } from '@/modules/worker/components/jobs/sorting'; diff --git a/packages/apps/human-app/frontend/src/modules/worker/components/jobs/available-jobs/mobile/available-jobs-table-mobile.tsx b/packages/apps/human-app/frontend/src/modules/worker/components/jobs/available-jobs/mobile/available-jobs-table-mobile.tsx index 361afe7e89..f41a2b2511 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/components/jobs/available-jobs/mobile/available-jobs-table-mobile.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/components/jobs/available-jobs/mobile/available-jobs-table-mobile.tsx @@ -15,7 +15,7 @@ import { EvmAddress } from '@/modules/worker/components/jobs/evm-address'; import { Chip } from '@/shared/components/ui/chip'; import { RewardAmount } from '@/modules/worker/components/jobs/reward-amount'; import { ListItem } from '@/shared/components/ui/list-item'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; import type { JobType } from '@/modules/smart-contracts/EthKVStore/config'; import { EscrowAddressSearchForm } from '@/modules/worker/components/jobs/escrow-address-search-form'; import { AvailableJobsAssignJobButton } from '@/modules/worker/components/jobs/available-jobs/mobile/available-jobs-assign-job-button'; diff --git a/packages/apps/human-app/frontend/src/modules/worker/components/jobs/escrow-address-search-form.tsx b/packages/apps/human-app/frontend/src/modules/worker/components/jobs/escrow-address-search-form.tsx index 0c02b6a14b..a1443e3ec0 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/components/jobs/escrow-address-search-form.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/components/jobs/escrow-address-search-form.tsx @@ -6,7 +6,7 @@ import { z } from 'zod'; import { useEffect } from 'react'; import Grid from '@mui/material/Grid'; import debounce from 'lodash/debounce'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; import { Input } from '@/shared/components/data-entry/input'; import { addressSchemaOrEmptyString } from '@/shared/schemas'; import { useIsMobile } from '@/shared/hooks/use-is-mobile'; diff --git a/packages/apps/human-app/frontend/src/modules/worker/components/jobs/evm-address.tsx b/packages/apps/human-app/frontend/src/modules/worker/components/jobs/evm-address.tsx index 2956b14e25..1370dd854a 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/components/jobs/evm-address.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/components/jobs/evm-address.tsx @@ -3,7 +3,7 @@ import Typography from '@mui/material/Typography'; import { shortenEscrowAddress } from '@/shared/helpers/evm'; import { breakpoints } from '@/shared/styles/breakpoints'; import { useIsMobile } from '@/shared/hooks/use-is-mobile'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; export function EvmAddress({ address }: { address: string }) { const { colorPalette } = useColorMode(); diff --git a/packages/apps/human-app/frontend/src/modules/worker/components/jobs/my-jobs/desktop/my-jobs-table.tsx b/packages/apps/human-app/frontend/src/modules/worker/components/jobs/my-jobs/desktop/my-jobs-table.tsx index 16c124d5ec..9b66f0c267 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/components/jobs/my-jobs/desktop/my-jobs-table.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/components/jobs/my-jobs/desktop/my-jobs-table.tsx @@ -25,7 +25,7 @@ import { MyJobsRewardAmountSort } from '@/modules/worker/components/jobs/my-jobs import { MyJobsStatusFilter } from '@/modules/worker/components/jobs/my-jobs/desktop/my-jobs-status-filter'; import { MyJobsExpiresAtSort } from '@/modules/worker/components/jobs/my-jobs/desktop/my-jobs-expires-at-sort'; import { MyJobsNetworkFilter } from '@/modules/worker/components/jobs/my-jobs/desktop/my-jobs-network-filter'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; import { createTableDarkMode } from '@/shared/styles/create-table-dark-mode'; import type { JobType } from '@/modules/smart-contracts/EthKVStore/config'; import { EscrowAddressSearchForm } from '@/modules/worker/components/jobs/escrow-address-search-form'; diff --git a/packages/apps/human-app/frontend/src/modules/worker/components/jobs/my-jobs/mobile/my-jobs-drawer-mobile.tsx b/packages/apps/human-app/frontend/src/modules/worker/components/jobs/my-jobs/mobile/my-jobs-drawer-mobile.tsx index 1dbb9c965e..9355052137 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/components/jobs/my-jobs/mobile/my-jobs-drawer-mobile.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/components/jobs/my-jobs/mobile/my-jobs-drawer-mobile.tsx @@ -6,7 +6,7 @@ import { useTranslation } from 'react-i18next'; import CloseIcon from '@mui/icons-material/Close'; import type { Dispatch, SetStateAction } from 'react'; import { HumanLogoIcon } from '@/shared/components/ui/icons'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; import { MyJobsRewardAmountSortMobile } from '@/modules/worker/components/jobs/my-jobs/mobile/my-jobs-reward-amount-sort-mobile'; import { MyJobsExpiresAtSortMobile } from '@/modules/worker/components/jobs/my-jobs/mobile/my-jobs-expires-at-sort-mobile'; import { useHandleMainNavIconClick } from '@/shared/hooks/use-handle-main-nav-icon-click'; diff --git a/packages/apps/human-app/frontend/src/modules/worker/components/jobs/my-jobs/mobile/my-jobs-expires-at-sort-mobile.tsx b/packages/apps/human-app/frontend/src/modules/worker/components/jobs/my-jobs/mobile/my-jobs-expires-at-sort-mobile.tsx index 82e97beba4..4dd1281177 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/components/jobs/my-jobs/mobile/my-jobs-expires-at-sort-mobile.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/components/jobs/my-jobs/mobile/my-jobs-expires-at-sort-mobile.tsx @@ -1,7 +1,7 @@ /* eslint-disable camelcase */ import Typography from '@mui/material/Typography'; import { t } from 'i18next'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; import { useMyJobsFilterStore } from '@/modules/worker/hooks/use-my-jobs-filter-store'; import { Sorting } from '@/modules/worker/components/jobs/sorting'; diff --git a/packages/apps/human-app/frontend/src/modules/worker/components/jobs/my-jobs/mobile/my-jobs-reward-amount-sort-mobile.tsx b/packages/apps/human-app/frontend/src/modules/worker/components/jobs/my-jobs/mobile/my-jobs-reward-amount-sort-mobile.tsx index 675c789c87..818276a65a 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/components/jobs/my-jobs/mobile/my-jobs-reward-amount-sort-mobile.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/components/jobs/my-jobs/mobile/my-jobs-reward-amount-sort-mobile.tsx @@ -1,7 +1,7 @@ /* eslint-disable camelcase */ import Typography from '@mui/material/Typography'; import { t } from 'i18next'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; import { useMyJobsFilterStore } from '@/modules/worker/hooks/use-my-jobs-filter-store'; import { Sorting } from '@/modules/worker/components/jobs/sorting'; diff --git a/packages/apps/human-app/frontend/src/modules/worker/components/jobs/my-jobs/mobile/my-jobs-table-mobile.tsx b/packages/apps/human-app/frontend/src/modules/worker/components/jobs/my-jobs/mobile/my-jobs-table-mobile.tsx index da0ca20c95..02cb08a5e9 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/components/jobs/my-jobs/mobile/my-jobs-table-mobile.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/components/jobs/my-jobs/mobile/my-jobs-table-mobile.tsx @@ -16,7 +16,7 @@ import { useMyJobsFilterStore } from '@/modules/worker/hooks/use-my-jobs-filter- import { ListItem } from '@/shared/components/ui/list-item'; import { EvmAddress } from '@/modules/worker/components/jobs/evm-address'; import { RewardAmount } from '@/modules/worker/components/jobs/reward-amount'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; import { Chip } from '@/shared/components/ui/chip'; import type { JobType } from '@/modules/smart-contracts/EthKVStore/config'; import { EscrowAddressSearchForm } from '@/modules/worker/components/jobs/escrow-address-search-form'; diff --git a/packages/apps/human-app/frontend/src/modules/worker/components/jobs/sorting.tsx b/packages/apps/human-app/frontend/src/modules/worker/components/jobs/sorting.tsx index 88ff53ad28..037d5d0042 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/components/jobs/sorting.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/components/jobs/sorting.tsx @@ -5,7 +5,7 @@ import ListItemButton from '@mui/material/ListItemButton'; import List from '@mui/material/List'; import { Grid } from '@mui/material'; import { SortArrow } from '@/shared/components/ui/icons'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; import { Button } from '@/shared/components/ui/button'; interface SortingProps { diff --git a/packages/apps/human-app/frontend/src/modules/worker/components/jobs/status-chip.tsx b/packages/apps/human-app/frontend/src/modules/worker/components/jobs/status-chip.tsx index f83de025b1..5d33c3ecc0 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/components/jobs/status-chip.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/components/jobs/status-chip.tsx @@ -3,7 +3,7 @@ import Typography from '@mui/material/Typography'; import { type MyJob } from '@/modules/worker/services/my-jobs-data'; import { colorPalette as lightModeColorPalette } from '@/shared/styles/color-palette'; import { getChipStatusColor } from '@/modules/worker/utils/get-chip-status-color'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; export function StatusChip({ status }: { status: MyJob['status'] }) { const { colorPalette } = useColorMode(); diff --git a/packages/apps/human-app/frontend/src/modules/worker/components/profile/profile-data.tsx b/packages/apps/human-app/frontend/src/modules/worker/components/profile/profile-data.tsx index 4f8c73a2ab..b3222fe956 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/components/profile/profile-data.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/components/profile/profile-data.tsx @@ -5,7 +5,7 @@ import { Link } from 'react-router-dom'; import { useAuthenticatedUser } from '@/modules/auth/hooks/use-authenticated-user'; import { Button } from '@/shared/components/ui/button'; import { routerPaths } from '@/router/router-paths'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; import { onlyDarkModeColor } from '@/shared/styles/dark-color-palette'; export function ProfileData() { diff --git a/packages/apps/human-app/frontend/src/modules/worker/components/profile/wallet-connect-done.tsx b/packages/apps/human-app/frontend/src/modules/worker/components/profile/wallet-connect-done.tsx index b7b2425b04..0bf83e501e 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/components/profile/wallet-connect-done.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/components/profile/wallet-connect-done.tsx @@ -6,12 +6,12 @@ import styled from '@mui/material/styles/styled'; import { CheckmarkIcon } from '@/shared/components/ui/icons'; import { colorPalette } from '@/shared/styles/color-palette'; import { useAuthenticatedUser } from '@/modules/auth/hooks/use-authenticated-user'; -import { useWalletConnect } from '@/shared/contexts/wallet-connect'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; import { darkColorPalette, onlyDarkModeColor, } from '@/shared/styles/dark-color-palette'; +import { useWalletConnect } from '@/shared/contexts/wallet-connect'; const CustomTextField = styled(TextField)(() => ({ '& .Mui-disabled': { diff --git a/packages/apps/human-app/frontend/src/modules/worker/views/email-verification/verify-email.page.tsx b/packages/apps/human-app/frontend/src/modules/worker/views/email-verification/verify-email.page.tsx index e2813a309a..073a8a2bd2 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/views/email-verification/verify-email.page.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/views/email-verification/verify-email.page.tsx @@ -22,7 +22,7 @@ import { useAuth } from '@/modules/auth/hooks/use-auth'; import { routerPaths } from '@/router/router-paths'; import { MailTo } from '@/shared/components/ui/mail-to'; import { useResetMutationErrors } from '@/shared/hooks/use-reset-mutation-errors'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; import { onlyDarkModeColor } from '@/shared/styles/dark-color-palette'; export function VerifyEmailWorkerPage() { diff --git a/packages/apps/human-app/frontend/src/modules/worker/views/hcaptcha-labeling/hcaptcha-labeling.page.tsx b/packages/apps/human-app/frontend/src/modules/worker/views/hcaptcha-labeling/hcaptcha-labeling.page.tsx index e2607b1c8d..495b7cbfda 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/views/hcaptcha-labeling/hcaptcha-labeling.page.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/views/hcaptcha-labeling/hcaptcha-labeling.page.tsx @@ -19,7 +19,7 @@ import { getTomorrowDate } from '@/shared/helpers/date'; import { useSolveHCaptchaMutation } from '@/modules/worker/services/solve-hcaptcha'; import { useAuthenticatedUser } from '@/modules/auth/hooks/use-authenticated-user'; import { useHCaptchaLabelingNotifications } from '@/modules/worker/hooks/use-hcaptcha-labeling-notifications'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; import { onlyDarkModeColor } from '@/shared/styles/dark-color-palette'; import { routerPaths } from '@/router/router-paths'; diff --git a/packages/apps/human-app/frontend/src/modules/worker/views/jobs/jobs.page.tsx b/packages/apps/human-app/frontend/src/modules/worker/views/jobs/jobs.page.tsx index 64e929b617..6a91be4441 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/views/jobs/jobs.page.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/views/jobs/jobs.page.tsx @@ -12,13 +12,13 @@ import { MyJobsDrawerMobile } from '@/modules/worker/components/jobs/my-jobs/mob import { AvailableJobsDrawerMobile } from '@/modules/worker/components/jobs/available-jobs/mobile/available-jobs-drawer-mobile'; import { useGetOracles } from '@/modules/worker/services/oracles'; import { useGetUiConfig } from '@/modules/worker/services/get-ui-config'; -import { PageCardLoader } from '@/shared/components/ui/page-card'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; import { useGetOraclesNotifications } from '@/modules/worker/hooks/use-get-oracles-notifications'; import { NoRecords } from '@/shared/components/ui/no-records'; import { AvailableJobsTableMobile } from '@/modules/worker/components/jobs/available-jobs/mobile/available-jobs-table-mobile'; import { TabPanel } from '@/modules/worker/components/jobs/jobs-tab-panel'; import { MyJobsTable } from '@/modules/worker/components/jobs/my-jobs/desktop/my-jobs-table'; +import { PageCardLoader } from '@/shared/components/ui/page-card'; function generateTabA11yProps(index: number) { return { diff --git a/packages/apps/human-app/frontend/src/modules/worker/views/reset-password/reset-password-success.page.tsx b/packages/apps/human-app/frontend/src/modules/worker/views/reset-password/reset-password-success.page.tsx index d4a525286e..b499e83aeb 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/views/reset-password/reset-password-success.page.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/views/reset-password/reset-password-success.page.tsx @@ -8,7 +8,7 @@ import { Button } from '@/shared/components/ui/button'; import { routerPaths } from '@/router/router-paths'; import { PageCard } from '@/shared/components/ui/page-card'; import { useAuth } from '@/modules/auth/hooks/use-auth'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; export function ResetPasswordWorkerSuccessPage() { const { colorPalette } = useColorMode(); diff --git a/packages/apps/human-app/frontend/src/modules/worker/views/send-reset-link/send-reset-link-success.page.tsx b/packages/apps/human-app/frontend/src/modules/worker/views/send-reset-link/send-reset-link-success.page.tsx index 8f3ca93ef2..572cf86346 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/views/send-reset-link/send-reset-link-success.page.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/views/send-reset-link/send-reset-link-success.page.tsx @@ -18,7 +18,7 @@ import { getErrorMessageForError } from '@/shared/errors'; import { HCaptchaForm } from '@/shared/components/hcaptcha/h-captcha-form'; import { MailTo } from '@/shared/components/ui/mail-to'; import { useResetMutationErrors } from '@/shared/hooks/use-reset-mutation-errors'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; import { onlyDarkModeColor } from '@/shared/styles/dark-color-palette'; export function SendResetLinkWorkerSuccessPage() { diff --git a/packages/apps/human-app/frontend/src/shared/components/data-entry/checkbox.tsx b/packages/apps/human-app/frontend/src/shared/components/data-entry/checkbox.tsx index 27029d4539..47c02ce7e8 100644 --- a/packages/apps/human-app/frontend/src/shared/components/data-entry/checkbox.tsx +++ b/packages/apps/human-app/frontend/src/shared/components/data-entry/checkbox.tsx @@ -4,7 +4,7 @@ import CheckboxMui from '@mui/material/Checkbox'; import FormControlLabel from '@mui/material/FormControlLabel'; import Stack from '@mui/material/Stack'; import Typography from '@mui/material/Typography'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; interface InputProps extends Omit { name: string; diff --git a/packages/apps/human-app/frontend/src/shared/components/data-entry/input.tsx b/packages/apps/human-app/frontend/src/shared/components/data-entry/input.tsx index cedd7cced0..09155d903e 100644 --- a/packages/apps/human-app/frontend/src/shared/components/data-entry/input.tsx +++ b/packages/apps/human-app/frontend/src/shared/components/data-entry/input.tsx @@ -3,7 +3,7 @@ import type { TextFieldProps } from '@mui/material/TextField'; import TextField from '@mui/material/TextField'; import { Typography } from '@mui/material'; import { type InputMask } from '@/shared/components/data-entry/input-masks'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; export interface InputProps extends Omit { diff --git a/packages/apps/human-app/frontend/src/shared/components/data-entry/multi-select.tsx b/packages/apps/human-app/frontend/src/shared/components/data-entry/multi-select.tsx index b490116839..b3c64d370b 100644 --- a/packages/apps/human-app/frontend/src/shared/components/data-entry/multi-select.tsx +++ b/packages/apps/human-app/frontend/src/shared/components/data-entry/multi-select.tsx @@ -18,7 +18,7 @@ import { Typography, } from '@mui/material'; import CancelIcon from '@mui/icons-material/Cancel'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; interface MultiSelectProps extends Omit { options: { label: string; value: string }[]; diff --git a/packages/apps/human-app/frontend/src/shared/components/data-entry/password/password.tsx b/packages/apps/human-app/frontend/src/shared/components/data-entry/password/password.tsx index 6ac372bd38..fe1a11443c 100644 --- a/packages/apps/human-app/frontend/src/shared/components/data-entry/password/password.tsx +++ b/packages/apps/human-app/frontend/src/shared/components/data-entry/password/password.tsx @@ -4,7 +4,7 @@ import React, { useState } from 'react'; import InputAdornment from '@mui/material/InputAdornment'; import IconButton from '@mui/material/IconButton'; import { Input, type InputProps } from '@/shared/components/data-entry/input'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; type PasswordProps = InputProps & { type?: never }; diff --git a/packages/apps/human-app/frontend/src/shared/components/data-entry/select.tsx b/packages/apps/human-app/frontend/src/shared/components/data-entry/select.tsx index 25ac162d62..e1c4ec5a3b 100644 --- a/packages/apps/human-app/frontend/src/shared/components/data-entry/select.tsx +++ b/packages/apps/human-app/frontend/src/shared/components/data-entry/select.tsx @@ -6,7 +6,7 @@ import { Controller } from 'react-hook-form'; import InputLabel from '@mui/material/InputLabel'; import FormHelperText from '@mui/material/FormHelperText'; import { Chip } from '@/shared/components/ui/chip'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; export interface OptionsProps { id: number; diff --git a/packages/apps/human-app/frontend/src/shared/components/hcaptcha/h-captcha-form.tsx b/packages/apps/human-app/frontend/src/shared/components/hcaptcha/h-captcha-form.tsx index d6c8e1172c..d185792184 100644 --- a/packages/apps/human-app/frontend/src/shared/components/hcaptcha/h-captcha-form.tsx +++ b/packages/apps/human-app/frontend/src/shared/components/hcaptcha/h-captcha-form.tsx @@ -2,7 +2,7 @@ import { useEffect, useRef } from 'react'; import { useFormContext } from 'react-hook-form'; import { Typography } from '@mui/material'; import { FetchError } from '@/api/fetcher'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; import { CustomHCaptcha } from './h-captcha'; import { type CustomHCaptchaRef } from './types'; diff --git a/packages/apps/human-app/frontend/src/shared/components/hcaptcha/h-captcha.tsx b/packages/apps/human-app/frontend/src/shared/components/hcaptcha/h-captcha.tsx index 23ea2b03e0..2c65686351 100644 --- a/packages/apps/human-app/frontend/src/shared/components/hcaptcha/h-captcha.tsx +++ b/packages/apps/human-app/frontend/src/shared/components/hcaptcha/h-captcha.tsx @@ -1,7 +1,7 @@ import { forwardRef, useImperativeHandle, useRef } from 'react'; import HCaptcha from '@hcaptcha/react-hcaptcha'; import { env } from '@/shared/env'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; import { type CustomHCaptchaRef } from './types'; interface CustomHCaptchaProps { diff --git a/packages/apps/human-app/frontend/src/shared/components/layout/footer.tsx b/packages/apps/human-app/frontend/src/shared/components/layout/footer.tsx index 6face23c34..436d1bc401 100644 --- a/packages/apps/human-app/frontend/src/shared/components/layout/footer.tsx +++ b/packages/apps/human-app/frontend/src/shared/components/layout/footer.tsx @@ -4,7 +4,7 @@ import { useIsMobile } from '@/shared/hooks/use-is-mobile'; import { env } from '@/shared/env'; import { Chat } from '@/modules/homepage/components/chat'; import { breakpoints } from '@/shared/styles/breakpoints'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; interface FooterProps { displayChatIcon?: boolean; diff --git a/packages/apps/human-app/frontend/src/shared/components/layout/protected/drawer-navigation.tsx b/packages/apps/human-app/frontend/src/shared/components/layout/protected/drawer-navigation.tsx index 42146e832d..2bc1732f39 100644 --- a/packages/apps/human-app/frontend/src/shared/components/layout/protected/drawer-navigation.tsx +++ b/packages/apps/human-app/frontend/src/shared/components/layout/protected/drawer-navigation.tsx @@ -14,7 +14,7 @@ import { Button } from '@/shared/components/ui/button'; import { useIsMobile } from '@/shared/hooks/use-is-mobile'; import { NAVBAR_PADDING } from '@/shared/components/layout/protected/navbar'; import { colorPalette } from '@/shared/styles/color-palette'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; import { onlyDarkModeColor } from '@/shared/styles/dark-color-palette'; import { useHandleMainNavIconClick } from '@/shared/hooks/use-handle-main-nav-icon-click'; diff --git a/packages/apps/human-app/frontend/src/shared/components/layout/protected/navbar.tsx b/packages/apps/human-app/frontend/src/shared/components/layout/protected/navbar.tsx index 2ca37f27f7..4b71b17bc4 100644 --- a/packages/apps/human-app/frontend/src/shared/components/layout/protected/navbar.tsx +++ b/packages/apps/human-app/frontend/src/shared/components/layout/protected/navbar.tsx @@ -6,7 +6,7 @@ import { HumanLogoIcon } from '@/shared/components/ui/icons'; import { useIsMobile } from '@/shared/hooks/use-is-mobile'; import { Button } from '@/shared/components/ui/button'; import { useIsHCaptchaLabelingPage } from '@/shared/hooks/use-is-hcaptcha-labeling-page'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; import { useHandleMainNavIconClick } from '@/shared/hooks/use-handle-main-nav-icon-click'; export const NAVBAR_PADDING = '16px'; diff --git a/packages/apps/human-app/frontend/src/shared/components/layout/unprotected/layout.tsx b/packages/apps/human-app/frontend/src/shared/components/layout/unprotected/layout.tsx index 926efddfea..8ec16ae147 100644 --- a/packages/apps/human-app/frontend/src/shared/components/layout/unprotected/layout.tsx +++ b/packages/apps/human-app/frontend/src/shared/components/layout/unprotected/layout.tsx @@ -3,7 +3,7 @@ import { Outlet } from 'react-router-dom'; import { useBackgroundColorStore } from '@/shared/hooks/use-background-store'; import { useIsMobile } from '@/shared/hooks/use-is-mobile'; import { breakpoints } from '@/shared/styles/breakpoints'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; import { Footer } from '../footer'; import { Navbar } from './navbar'; diff --git a/packages/apps/human-app/frontend/src/shared/components/ui/alert.tsx b/packages/apps/human-app/frontend/src/shared/components/ui/alert.tsx index 7fdb16b2da..12d26491a1 100644 --- a/packages/apps/human-app/frontend/src/shared/components/ui/alert.tsx +++ b/packages/apps/human-app/frontend/src/shared/components/ui/alert.tsx @@ -4,7 +4,7 @@ import ErrorIcon from '@mui/icons-material/Error'; import MuiAlert from '@mui/material/Alert'; import type { AlertProps as MuiAlertProps } from '@mui/material/Alert'; import { Typography } from '@mui/material'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; import { darkColorPalette } from '@/shared/styles/dark-color-palette'; const getIcon = (severity: MuiAlertProps['severity'], isDarkMode: boolean) => { diff --git a/packages/apps/human-app/frontend/src/shared/components/ui/chip.tsx b/packages/apps/human-app/frontend/src/shared/components/ui/chip.tsx index 83ae568c80..c4a469a4c7 100644 --- a/packages/apps/human-app/frontend/src/shared/components/ui/chip.tsx +++ b/packages/apps/human-app/frontend/src/shared/components/ui/chip.tsx @@ -1,5 +1,5 @@ import { Box, Typography } from '@mui/material'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; interface ChipProps { label: string | React.ReactElement; diff --git a/packages/apps/human-app/frontend/src/shared/components/ui/dark-mode-switch.tsx b/packages/apps/human-app/frontend/src/shared/components/ui/dark-mode-switch.tsx index cda8a7cab6..6e41830d90 100644 --- a/packages/apps/human-app/frontend/src/shared/components/ui/dark-mode-switch.tsx +++ b/packages/apps/human-app/frontend/src/shared/components/ui/dark-mode-switch.tsx @@ -1,6 +1,6 @@ import { Grid, Switch } from '@mui/material'; import { MoonIcon, SunIcon } from '@/shared/components/ui/icons'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; export function DarkModeSwitch() { const { switchMode, isDarkMode } = useColorMode(); diff --git a/packages/apps/human-app/frontend/src/shared/components/ui/empty-placeholder.tsx b/packages/apps/human-app/frontend/src/shared/components/ui/empty-placeholder.tsx index 4cb8e19a0e..fa2eadfade 100644 --- a/packages/apps/human-app/frontend/src/shared/components/ui/empty-placeholder.tsx +++ b/packages/apps/human-app/frontend/src/shared/components/ui/empty-placeholder.tsx @@ -1,6 +1,6 @@ import Typography from '@mui/material/Typography'; import { t } from 'i18next'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; export function EmptyPlaceholder() { const { colorPalette } = useColorMode(); diff --git a/packages/apps/human-app/frontend/src/shared/components/ui/icons.tsx b/packages/apps/human-app/frontend/src/shared/components/ui/icons.tsx index 14d306e695..25681beef6 100644 --- a/packages/apps/human-app/frontend/src/shared/components/ui/icons.tsx +++ b/packages/apps/human-app/frontend/src/shared/components/ui/icons.tsx @@ -36,7 +36,7 @@ import SunIconDark from '@/assets/icons-dark-mode/sun.svg'; import SunIconLight from '@/assets/icons/sun.svg'; import MoonIconDark from '@/assets/icons-dark-mode/moon.svg'; import MoonIconLight from '@/assets/icons/moon.svg'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; import WorkHeaderDark from '@/assets/icons-dark-mode/work-header.svg'; import WorkHeaderLight from '@/assets/icons/work-header.svg'; diff --git a/packages/apps/human-app/frontend/src/shared/components/ui/loader.tsx b/packages/apps/human-app/frontend/src/shared/components/ui/loader.tsx index 2f83b76aa2..1c32b0f261 100644 --- a/packages/apps/human-app/frontend/src/shared/components/ui/loader.tsx +++ b/packages/apps/human-app/frontend/src/shared/components/ui/loader.tsx @@ -1,6 +1,6 @@ import type { CircularProgressProps } from '@mui/material/CircularProgress'; import CircularProgress from '@mui/material/CircularProgress'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; export function Loader({ ...props }: CircularProgressProps) { const { colorPalette } = useColorMode(); diff --git a/packages/apps/human-app/frontend/src/shared/components/ui/no-records.tsx b/packages/apps/human-app/frontend/src/shared/components/ui/no-records.tsx index fb49dc542e..190638947e 100644 --- a/packages/apps/human-app/frontend/src/shared/components/ui/no-records.tsx +++ b/packages/apps/human-app/frontend/src/shared/components/ui/no-records.tsx @@ -1,5 +1,5 @@ import { Grid } from '@mui/material'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; export function NoRecords() { const { colorPalette } = useColorMode(); diff --git a/packages/apps/human-app/frontend/src/shared/components/ui/page-card/page-card-error.tsx b/packages/apps/human-app/frontend/src/shared/components/ui/page-card/page-card-error.tsx index 91830fb2af..c86e5e6d71 100644 --- a/packages/apps/human-app/frontend/src/shared/components/ui/page-card/page-card-error.tsx +++ b/packages/apps/human-app/frontend/src/shared/components/ui/page-card/page-card-error.tsx @@ -4,7 +4,7 @@ import { t } from 'i18next'; import { Button } from '@/shared/components/ui/button'; import { routerPaths } from '@/router/router-paths'; import { Alert } from '@/shared/components/ui/alert'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; import { commonDarkPageCardStyles, commonPageCardStyles } from './styles'; import { type ErrorMessageProps } from './types'; diff --git a/packages/apps/human-app/frontend/src/shared/components/ui/page-card/page-card-loader.tsx b/packages/apps/human-app/frontend/src/shared/components/ui/page-card/page-card-loader.tsx index fc33fcd7f0..fc13e4a9f0 100644 --- a/packages/apps/human-app/frontend/src/shared/components/ui/page-card/page-card-loader.tsx +++ b/packages/apps/human-app/frontend/src/shared/components/ui/page-card/page-card-loader.tsx @@ -1,6 +1,6 @@ import { Grid } from '@mui/material'; import { Loader } from '@/shared/components/ui/loader'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; import { commonDarkPageCardStyles, commonPageCardStyles } from './styles'; import { type CommonProps } from './types'; diff --git a/packages/apps/human-app/frontend/src/shared/components/ui/page-card/page-card.tsx b/packages/apps/human-app/frontend/src/shared/components/ui/page-card/page-card.tsx index 6d1ed25f48..ee4ad585a4 100644 --- a/packages/apps/human-app/frontend/src/shared/components/ui/page-card/page-card.tsx +++ b/packages/apps/human-app/frontend/src/shared/components/ui/page-card/page-card.tsx @@ -6,7 +6,7 @@ import { Button } from '@/shared/components/ui/button'; import { breakpoints } from '@/shared/styles/breakpoints'; import { routerPaths } from '@/router/router-paths'; import { onlyDarkModeColor } from '@/shared/styles/dark-color-palette'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; import { useIsMobile } from '@/shared/hooks/use-is-mobile'; import { commonDarkPageCardStyles, commonPageCardStyles } from './styles'; diff --git a/packages/apps/human-app/frontend/src/shared/components/ui/profile-list-item.tsx b/packages/apps/human-app/frontend/src/shared/components/ui/profile-list-item.tsx index 5cbf39b480..645c02e693 100644 --- a/packages/apps/human-app/frontend/src/shared/components/ui/profile-list-item.tsx +++ b/packages/apps/human-app/frontend/src/shared/components/ui/profile-list-item.tsx @@ -3,7 +3,7 @@ import { useTranslation } from 'react-i18next'; import { Button } from '@/shared/components/ui/button'; import { CheckmarkIcon, LockerIcon } from '@/shared/components/ui/icons'; import { Chips } from '@/shared/components/ui/chips'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; interface ProfileListItemProps { header: string; diff --git a/packages/apps/human-app/frontend/src/shared/components/ui/success-label.tsx b/packages/apps/human-app/frontend/src/shared/components/ui/success-label.tsx index 8ef8a4acef..e6f8c96501 100644 --- a/packages/apps/human-app/frontend/src/shared/components/ui/success-label.tsx +++ b/packages/apps/human-app/frontend/src/shared/components/ui/success-label.tsx @@ -1,6 +1,6 @@ import Grid from '@mui/material/Grid'; import CheckCircleIcon from '@mui/icons-material/CheckCircle'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; export function SuccessLabel({ children }: { children: string }) { const { colorPalette } = useColorMode(); diff --git a/packages/apps/human-app/frontend/src/shared/components/ui/table/table-header-menu.tsx/filtering.tsx b/packages/apps/human-app/frontend/src/shared/components/ui/table/table-header-menu.tsx/filtering.tsx index 9c963c14f2..1dd92c9ecd 100644 --- a/packages/apps/human-app/frontend/src/shared/components/ui/table/table-header-menu.tsx/filtering.tsx +++ b/packages/apps/human-app/frontend/src/shared/components/ui/table/table-header-menu.tsx/filtering.tsx @@ -4,7 +4,7 @@ import List from '@mui/material/List'; import Divider from '@mui/material/Divider'; import ListItem from '@mui/material/ListItem'; import { t } from 'i18next'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; interface FilteringOption { name: string; diff --git a/packages/apps/human-app/frontend/src/shared/components/ui/table/table-header-menu.tsx/sorting.tsx b/packages/apps/human-app/frontend/src/shared/components/ui/table/table-header-menu.tsx/sorting.tsx index eda812848a..5d5749b639 100644 --- a/packages/apps/human-app/frontend/src/shared/components/ui/table/table-header-menu.tsx/sorting.tsx +++ b/packages/apps/human-app/frontend/src/shared/components/ui/table/table-header-menu.tsx/sorting.tsx @@ -2,7 +2,7 @@ import { Divider, Typography } from '@mui/material'; import List from '@mui/material/List'; import ListItemText from '@mui/material/ListItemText'; import { t } from 'i18next'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; interface SortingMenuProps { sortingOptions: { label: string; sortCallback: () => void }[]; diff --git a/packages/apps/human-app/frontend/src/shared/components/ui/ui-example.tsx b/packages/apps/human-app/frontend/src/shared/components/ui/ui-example.tsx index 231cb7451e..f3eb5d962e 100644 --- a/packages/apps/human-app/frontend/src/shared/components/ui/ui-example.tsx +++ b/packages/apps/human-app/frontend/src/shared/components/ui/ui-example.tsx @@ -28,7 +28,7 @@ import { import { TableExample } from '@/modules/playground/components/table-example/table-example'; import { Alert } from '@/shared/components/ui/alert'; import { ConnectWalletBtn } from '@/shared/components/ui/connect-wallet-btn'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; export function UiExample() { const { colorPalette } = useColorMode(); diff --git a/packages/apps/human-app/frontend/src/shared/contexts/color-mode-context.tsx b/packages/apps/human-app/frontend/src/shared/contexts/color-mode-context.tsx deleted file mode 100644 index 6856a418d8..0000000000 --- a/packages/apps/human-app/frontend/src/shared/contexts/color-mode-context.tsx +++ /dev/null @@ -1,109 +0,0 @@ -import type { ReactNode } from 'react'; -import { createContext, useEffect, useMemo, useState } from 'react'; -import { ThemeProvider, createTheme } from '@mui/material'; -import { theme } from '@/shared/styles/theme'; -import { colorPalette as defaultColorPalette } from '@/shared/styles/color-palette'; -import { darkTheme } from '@/shared/styles/dark-theme'; -import { darkColorPalette } from '@/shared/styles/dark-color-palette'; -import { BackgroundProvider } from '@/shared/contexts/background-color-store'; - -export interface ColorModeContextProps { - isDarkMode: boolean; - colorPalette: typeof defaultColorPalette; - switchMode: () => void; -} - -const MODE_LOCAL_STORAGE_KEY = 'mode'; - -const setModeInLocalStorage = (mode: 'dark' | 'light') => { - localStorage.setItem(MODE_LOCAL_STORAGE_KEY, mode); -}; - -const isDarkInModeLocalStorage = () => { - const mode = localStorage.getItem(MODE_LOCAL_STORAGE_KEY); - if (mode === 'dark') { - return true; - } - return false; -}; - -const isModeSetILocalStorage = () => { - return Boolean(localStorage.getItem(MODE_LOCAL_STORAGE_KEY)); -}; - -export const ColorModeContext = createContext< - ColorModeContextProps | undefined ->(undefined); - -interface ColorModeProviderProps { - children: ReactNode; -} - -export function ColorModeProvider({ children }: ColorModeProviderProps) { - const [isDarkMode, setIsDarkMode] = useState( - isDarkInModeLocalStorage() - ); - - const switchMode = () => { - setIsDarkMode((current) => { - const newMode = !current; - setModeInLocalStorage(newMode ? 'dark' : 'light'); - return newMode; - }); - }; - - const runColorMode = ( - fn: (matches: boolean) => void - ): (() => void) | undefined => { - const query = window.matchMedia('(prefers-color-scheme: dark)'); - fn(query.matches); - - const listener = (event: MediaQueryListEvent) => { - fn(event.matches); - }; - query.addEventListener('change', listener); - - return () => { - query.removeEventListener('change', listener); - }; - }; - - useEffect(() => { - const handleColorModeChange = (matches: boolean) => { - if (isModeSetILocalStorage()) { - return; - } - setIsDarkMode(matches); - if (matches) { - document.body.classList.add('dark-mode'); - } else { - document.body.classList.remove('dark-mode'); - } - }; - - const unsubscribe = runColorMode(handleColorModeChange); - - return () => { - if (unsubscribe) unsubscribe(); - }; - }, []); - const themes = useMemo( - () => (isDarkMode ? createTheme(darkTheme) : createTheme(theme)), - [isDarkMode] - ); - const colorPalette = useMemo( - () => (isDarkMode ? darkColorPalette : defaultColorPalette), - [isDarkMode] - ); - return ( - - - - {children} - - - - ); -} diff --git a/packages/apps/human-app/frontend/src/shared/contexts/color-mode/color-mode-handlers.ts b/packages/apps/human-app/frontend/src/shared/contexts/color-mode/color-mode-handlers.ts new file mode 100644 index 0000000000..6154e23f8c --- /dev/null +++ b/packages/apps/human-app/frontend/src/shared/contexts/color-mode/color-mode-handlers.ts @@ -0,0 +1,15 @@ +export const addColorSchemePrefsListener = ( + fn: (matches: boolean) => void +): (() => void) => { + const query = window.matchMedia('(prefers-color-scheme: dark)'); + fn(query.matches); + + const listener = (event: MediaQueryListEvent) => { + fn(event.matches); + }; + query.addEventListener('change', listener); + + return () => { + query.removeEventListener('change', listener); + }; +}; diff --git a/packages/apps/human-app/frontend/src/shared/contexts/color-mode/color-mode-settings.ts b/packages/apps/human-app/frontend/src/shared/contexts/color-mode/color-mode-settings.ts new file mode 100644 index 0000000000..2e8b2c9134 --- /dev/null +++ b/packages/apps/human-app/frontend/src/shared/contexts/color-mode/color-mode-settings.ts @@ -0,0 +1,22 @@ +const MODE_LOCAL_STORAGE_KEY = 'mode'; + +export enum ColorMode { + DARK = 'dark', + LIGHT = 'light', +} + +export const saveColorMode = (mode: ColorMode) => { + localStorage.setItem(MODE_LOCAL_STORAGE_KEY, mode); +}; + +export const isDarkColorMode = () => { + const mode = localStorage.getItem(MODE_LOCAL_STORAGE_KEY); + if (mode === ColorMode.DARK) { + return true; + } + return false; +}; + +export const hasColorMode = () => { + return Boolean(localStorage.getItem(MODE_LOCAL_STORAGE_KEY)); +}; diff --git a/packages/apps/human-app/frontend/src/shared/contexts/color-mode/color-mode.tsx b/packages/apps/human-app/frontend/src/shared/contexts/color-mode/color-mode.tsx new file mode 100644 index 0000000000..d8b14ca8f9 --- /dev/null +++ b/packages/apps/human-app/frontend/src/shared/contexts/color-mode/color-mode.tsx @@ -0,0 +1,94 @@ +import type { ReactNode } from 'react'; +import { + createContext, + useEffect, + useMemo, + useState, + useCallback, +} from 'react'; +import { ThemeProvider, createTheme } from '@mui/material'; +import { theme } from '@/shared/styles/theme'; +import { colorPalette as defaultColorPalette } from '@/shared/styles/color-palette'; +import { darkTheme } from '@/shared/styles/dark-theme'; +import { darkColorPalette } from '@/shared/styles/dark-color-palette'; +import { BackgroundProvider } from '@/shared/contexts/background-color-store'; +import { + ColorMode, + hasColorMode, + isDarkColorMode, + saveColorMode, +} from './color-mode-settings'; +import { addColorSchemePrefsListener } from './color-mode-handlers'; + +export interface ColorModeContextProps { + isDarkMode: boolean; + colorPalette: typeof defaultColorPalette; + switchMode: () => void; +} + +export const ColorModeContext = createContext< + ColorModeContextProps | undefined +>(undefined); + +interface ColorModeProviderProps { + children: ReactNode; +} + +export function ColorModeProvider({ + children, +}: Readonly) { + const [isDarkMode, setIsDarkMode] = useState(isDarkColorMode()); + + const handleColorSchemePrefsChange = (prefersDarkScheme: boolean) => { + if (hasColorMode()) { + return; + } + setIsDarkMode(prefersDarkScheme); + if (prefersDarkScheme) { + document.body.classList.add('dark-mode'); + } else { + document.body.classList.remove('dark-mode'); + } + }; + + useEffect(() => { + const unsubscribe = addColorSchemePrefsListener( + handleColorSchemePrefsChange + ); + + return () => { + unsubscribe(); + }; + }, []); + + const switchMode = useCallback(() => { + setIsDarkMode((current) => { + const newMode = !current; + saveColorMode(newMode ? ColorMode.DARK : ColorMode.LIGHT); + return newMode; + }); + }, []); + + const themes = useMemo( + () => (isDarkMode ? createTheme(darkTheme) : createTheme(theme)), + [isDarkMode] + ); + const colorPalette = useMemo( + () => (isDarkMode ? darkColorPalette : defaultColorPalette), + [isDarkMode] + ); + const contextValue = useMemo( + () => ({ isDarkMode, colorPalette, switchMode }), + [isDarkMode, colorPalette, switchMode] + ); + + return ( + + + + {children} + + + + ); +} diff --git a/packages/apps/human-app/frontend/src/shared/contexts/color-mode/index.ts b/packages/apps/human-app/frontend/src/shared/contexts/color-mode/index.ts new file mode 100644 index 0000000000..a5d9ebc2d8 --- /dev/null +++ b/packages/apps/human-app/frontend/src/shared/contexts/color-mode/index.ts @@ -0,0 +1,2 @@ +export * from './use-color-mode'; +export * from './color-mode'; diff --git a/packages/apps/human-app/frontend/src/shared/hooks/use-color-mode.tsx b/packages/apps/human-app/frontend/src/shared/contexts/color-mode/use-color-mode.tsx similarity index 62% rename from packages/apps/human-app/frontend/src/shared/hooks/use-color-mode.tsx rename to packages/apps/human-app/frontend/src/shared/contexts/color-mode/use-color-mode.tsx index 74ba1d86f5..2e8848e973 100644 --- a/packages/apps/human-app/frontend/src/shared/hooks/use-color-mode.tsx +++ b/packages/apps/human-app/frontend/src/shared/contexts/color-mode/use-color-mode.tsx @@ -1,6 +1,5 @@ import { useContext } from 'react'; -import type { ColorModeContextProps } from '@/shared/contexts/color-mode-context'; -import { ColorModeContext } from '@/shared/contexts/color-mode-context'; +import { type ColorModeContextProps, ColorModeContext } from './color-mode'; export const useColorMode = (): ColorModeContextProps => { const context = useContext(ColorModeContext); diff --git a/packages/apps/human-app/frontend/src/shared/hooks/use-notification.tsx b/packages/apps/human-app/frontend/src/shared/hooks/use-notification.tsx index 8a22eb3aee..fbf3153f35 100644 --- a/packages/apps/human-app/frontend/src/shared/hooks/use-notification.tsx +++ b/packages/apps/human-app/frontend/src/shared/hooks/use-notification.tsx @@ -1,7 +1,7 @@ import { useCallback } from 'react'; import { type SnackbarKey, useSnackbar } from 'notistack'; import CloseIcon from '@mui/icons-material/Close'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; +import { useColorMode } from '@/shared/contexts/color-mode'; import { colorPalette as lightColorPalette } from '@/shared/styles/color-palette'; import { breakpoints } from '@/shared/styles/breakpoints'; From 7632bb323a27bc7653b419c6cc67e3047230797e Mon Sep 17 00:00:00 2001 From: adrian-oleskiewicz Date: Fri, 31 Jan 2025 10:54:23 +0100 Subject: [PATCH 35/44] [Human App] refactor: worker sign up (#3029) --- .../worker/hooks/use-sign-up-worker.tsx | 31 ++++++++++ .../src/modules/signup/worker/index.ts | 1 + .../worker/views/sign-up-worker.page.tsx} | 61 ++++++------------- .../human-app/frontend/src/router/routes.tsx | 2 +- 4 files changed, 52 insertions(+), 43 deletions(-) create mode 100644 packages/apps/human-app/frontend/src/modules/signup/worker/hooks/use-sign-up-worker.tsx create mode 100644 packages/apps/human-app/frontend/src/modules/signup/worker/index.ts rename packages/apps/human-app/frontend/src/modules/{worker/views/sign/sign-up.page.tsx => signup/worker/views/sign-up-worker.page.tsx} (67%) diff --git a/packages/apps/human-app/frontend/src/modules/signup/worker/hooks/use-sign-up-worker.tsx b/packages/apps/human-app/frontend/src/modules/signup/worker/hooks/use-sign-up-worker.tsx new file mode 100644 index 0000000000..6dc975e461 --- /dev/null +++ b/packages/apps/human-app/frontend/src/modules/signup/worker/hooks/use-sign-up-worker.tsx @@ -0,0 +1,31 @@ +import { useEffect } from 'react'; +import omit from 'lodash/omit'; +import { browserAuthProvider } from '@/shared/contexts/browser-auth-provider'; +import type { SignUpDto } from '@/modules/worker/services/sign-up'; +import { useSignUpMutation } from '@/modules/worker/services/sign-up'; + +export function useSignUpWorker() { + const { + mutate: signUpWorkerMutate, + error: signUpWorkerError, + isError: isSignUpWorkerError, + isPending: isSignUpWorkerPending, + reset: signUpWorkerMutationReset, + } = useSignUpMutation(); + + useEffect(() => { + browserAuthProvider.signOut({ triggerSignOutSubscriptions: false }); + }, []); + + const handleWorkerSignUp = (data: SignUpDto) => { + signUpWorkerMutate(omit(data, ['confirmPassword'])); + }; + + return { + signUp: handleWorkerSignUp, + error: signUpWorkerError, + isError: isSignUpWorkerError, + isLoading: isSignUpWorkerPending, + reset: signUpWorkerMutationReset, + }; +} diff --git a/packages/apps/human-app/frontend/src/modules/signup/worker/index.ts b/packages/apps/human-app/frontend/src/modules/signup/worker/index.ts new file mode 100644 index 0000000000..3c0e3dddf5 --- /dev/null +++ b/packages/apps/human-app/frontend/src/modules/signup/worker/index.ts @@ -0,0 +1 @@ +export * from './views/sign-up-worker.page'; diff --git a/packages/apps/human-app/frontend/src/modules/worker/views/sign/sign-up.page.tsx b/packages/apps/human-app/frontend/src/modules/signup/worker/views/sign-up-worker.page.tsx similarity index 67% rename from packages/apps/human-app/frontend/src/modules/worker/views/sign/sign-up.page.tsx rename to packages/apps/human-app/frontend/src/modules/signup/worker/views/sign-up-worker.page.tsx index f239f0e552..f9a9eb4c08 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/views/sign/sign-up.page.tsx +++ b/packages/apps/human-app/frontend/src/modules/signup/worker/views/sign-up-worker.page.tsx @@ -1,17 +1,11 @@ -import { Trans } from 'react-i18next'; import { FormProvider, useForm } from 'react-hook-form'; import { zodResolver } from '@hookform/resolvers/zod'; import Grid from '@mui/material/Grid'; import Typography from '@mui/material/Typography'; import Link from '@mui/material/Link'; -import { t } from 'i18next'; -import omit from 'lodash/omit'; -import { useEffect } from 'react'; +import { useTranslation, Trans } from 'react-i18next'; import type { SignUpDto } from '@/modules/worker/services/sign-up'; -import { - signUpDtoSchema, - useSignUpMutation, -} from '@/modules/worker/services/sign-up'; +import { signUpDtoSchema } from '@/modules/worker/services/sign-up'; import { Button } from '@/shared/components/ui/button'; import { Input } from '@/shared/components/data-entry/input'; import { Password } from '@/shared/components/data-entry/password/password'; @@ -19,22 +13,14 @@ import { PageCard } from '@/shared/components/ui/page-card'; import { env } from '@/shared/env'; import { getErrorMessageForError } from '@/shared/errors'; import { Alert } from '@/shared/components/ui/alert'; -import { FetchError } from '@/api/fetcher'; import { HCaptchaForm } from '@/shared/components/hcaptcha/h-captcha-form'; import { useResetMutationErrors } from '@/shared/hooks/use-reset-mutation-errors'; -import { browserAuthProvider } from '@/shared/contexts/browser-auth-provider'; - -function formattedSignUpErrorMessage(unknownError: unknown) { - if (unknownError instanceof FetchError && unknownError.status === 409) { - return t('worker.signUpForm.errors.emailTaken'); - } -} +import { FetchError } from '@/api/fetcher'; +import { useSignUpWorker } from '@/modules/signup/worker/hooks/use-sign-up-worker'; export function SignUpWorkerPage() { - useEffect(() => { - browserAuthProvider.signOut({ triggerSignOutSubscriptions: false }); - }, []); - + const { t } = useTranslation(); + const { signUp, error, isError, isLoading, reset } = useSignUpWorker(); const methods = useForm({ defaultValues: { email: '', @@ -46,40 +32,31 @@ export function SignUpWorkerPage() { resolver: zodResolver(signUpDtoSchema), }); - const { - mutate: signUpWorkerMutate, - error: signUpWorkerError, - isError: isSignUpWorkerError, - isPending: isSignUpWorkerPending, - reset: signUpWorkerMutationReset, - } = useSignUpMutation(); + useResetMutationErrors(methods.watch, reset); - useResetMutationErrors(methods.watch, signUpWorkerMutationReset); + const handleSignupError = (unknownError: unknown) => { + if (unknownError instanceof FetchError && unknownError.status === 409) { + return t('worker.signUpForm.errors.emailTaken'); + } + }; - const handleWorkerSignUp = (data: SignUpDto) => { - signUpWorkerMutate(omit(data, ['confirmPassword'])); + const handleSubmit = (event: React.FormEvent) => { + void methods.handleSubmit(signUp)(event); }; return ( - {getErrorMessageForError( - signUpWorkerError, - formattedSignUpErrorMessage - )} + {getErrorMessageForError(isError, handleSignupError)} ) : undefined } title={t('worker.signUpForm.title')} > -
{ - void methods.handleSubmit(handleWorkerSignUp)(event); - }} - > + - + + + +
+ ); +} diff --git a/packages/apps/human-app/frontend/src/modules/signin/worker/sign-in.page.tsx b/packages/apps/human-app/frontend/src/modules/signin/worker/sign-in.page.tsx new file mode 100644 index 0000000000..c650c09fb7 --- /dev/null +++ b/packages/apps/human-app/frontend/src/modules/signin/worker/sign-in.page.tsx @@ -0,0 +1,39 @@ +import { t } from 'i18next'; +import { PageCard } from '@/shared/components/ui/page-card'; +import { Alert } from '@/shared/components/ui/alert'; +import { getErrorMessageForError } from '@/shared/errors'; +import { FetchError } from '@/api/fetcher'; +import { useSignIn } from './use-sign-in'; +import { SignInForm } from './sign-in-form'; + +function formattedSignInErrorMessage( + unknownError: unknown +): string | undefined { + if (unknownError instanceof FetchError && unknownError.status === 400) { + return t('worker.signInForm.errors.invalidCredentials'); + } +} + +export function SignInWorkerPage() { + const { signIn, error, isError, isLoading, reset } = useSignIn(); + + return ( + + {getErrorMessageForError(error, formattedSignInErrorMessage)} + + ) : undefined + } + > + + + ); +} diff --git a/packages/apps/human-app/frontend/src/modules/signin/worker/use-sign-in.tsx b/packages/apps/human-app/frontend/src/modules/signin/worker/use-sign-in.tsx new file mode 100644 index 0000000000..29121d5791 --- /dev/null +++ b/packages/apps/human-app/frontend/src/modules/signin/worker/use-sign-in.tsx @@ -0,0 +1,30 @@ +import { useEffect } from 'react'; +import { useSignInMutation } from '@/modules/worker/services/sign-in/sign-in'; +import { browserAuthProvider } from '@/shared/contexts/browser-auth-provider'; +import { type SignInDto } from '@/modules/worker/services/sign-in/types'; + +export function useSignIn() { + const { + mutate: signInWorkerMutate, + error: signInWorkerError, + isError: isSignInWorkerError, + isPending: isSignInWorkerPending, + reset: signInWorkerMutationReset, + } = useSignInMutation(); + + useEffect(() => { + browserAuthProvider.signOut({ triggerSignOutSubscriptions: false }); + }, []); + + const handleWorkerSignIn = (data: SignInDto) => { + signInWorkerMutate(data); + }; + + return { + signIn: handleWorkerSignIn, + error: signInWorkerError, + isError: isSignInWorkerError, + isLoading: isSignInWorkerPending, + reset: signInWorkerMutationReset, + }; +} diff --git a/packages/apps/human-app/frontend/src/modules/worker/views/sign/sign-in.page.tsx b/packages/apps/human-app/frontend/src/modules/worker/views/sign/sign-in.page.tsx deleted file mode 100644 index 3999aecdfa..0000000000 --- a/packages/apps/human-app/frontend/src/modules/worker/views/sign/sign-in.page.tsx +++ /dev/null @@ -1,119 +0,0 @@ -import { FormProvider, useForm } from 'react-hook-form'; -import { Box, Grid, Typography } from '@mui/material'; -import { zodResolver } from '@hookform/resolvers/zod'; -import { useTranslation } from 'react-i18next'; -import { t as i18NextT } from 'i18next'; -import { Link } from 'react-router-dom'; -import { useEffect } from 'react'; -import { PageCard } from '@/shared/components/ui/page-card'; -import { Input } from '@/shared/components/data-entry/input'; -import { Button } from '@/shared/components/ui/button'; -import { Password } from '@/shared/components/data-entry/password/password'; -import { useSignInMutation } from '@/modules/worker/services/sign-in/sign-in'; -import { FetchError } from '@/api/fetcher'; -import { routerPaths } from '@/router/router-paths'; -import { getErrorMessageForError } from '@/shared/errors'; -import { Alert } from '@/shared/components/ui/alert'; -import { HCaptchaForm } from '@/shared/components/hcaptcha/h-captcha-form'; -import { useResetMutationErrors } from '@/shared/hooks/use-reset-mutation-errors'; -import { browserAuthProvider } from '@/shared/contexts/browser-auth-provider'; -import { type SignInDto } from '@/modules/worker/services/sign-in/types'; -import { signInDtoSchema } from '@/modules/worker/services/sign-in/schema'; - -function formattedSignInErrorMessage(unknownError: unknown) { - if (unknownError instanceof FetchError && unknownError.status === 400) { - return i18NextT('worker.signInForm.errors.invalidCredentials'); - } -} - -export function SignInWorkerPage() { - const { t } = useTranslation(); - - useEffect(() => { - browserAuthProvider.signOut({ triggerSignOutSubscriptions: false }); - }, []); - - const methods = useForm({ - defaultValues: { - email: '', - password: '', - // eslint-disable-next-line camelcase -- export vite config - h_captcha_token: '', - }, - resolver: zodResolver(signInDtoSchema), - }); - - const { - mutate: signInWorkerMutate, - error: signInWorkerError, - isError: isSignInWorkerError, - isPending: isSignInWorkerPending, - reset: signInWorkerMutationReset, - } = useSignInMutation(); - - useResetMutationErrors(methods.watch, signInWorkerMutationReset); - - function handleWorkerSignIn(data: SignInDto) { - signInWorkerMutate(data); - } - - return ( - - {getErrorMessageForError( - signInWorkerError, - formattedSignInErrorMessage - )} - - ) : undefined - } - title={t('worker.signInForm.title')} - > - -
- void methods.handleSubmit(handleWorkerSignIn)(event) - } - > - - - - - - - {t('worker.signInForm.forgotPassword')} - - - - - - -
-
-
- ); -} diff --git a/packages/apps/human-app/frontend/src/router/routes.tsx b/packages/apps/human-app/frontend/src/router/routes.tsx index 68148d3634..e14826d913 100644 --- a/packages/apps/human-app/frontend/src/router/routes.tsx +++ b/packages/apps/human-app/frontend/src/router/routes.tsx @@ -1,7 +1,7 @@ import type { RouteProps } from 'react-router-dom'; import { t } from 'i18next'; import { ProtectedPage } from '@/modules/worker/views/protected/protected.page'; -import { SignInWorkerPage } from '@/modules/worker/views/sign/sign-in.page'; +import { SignInWorkerPage } from '@/modules/signin/worker'; import { routerPaths } from '@/router/router-paths'; import { SendResetLinkWorkerSuccessPage } from '@/modules/worker/views/send-reset-link/send-reset-link-success.page'; import { ResetPasswordWorkerPage } from '@/modules/worker/views/reset-password/reset-password.page'; From e77aac307fa652e7bb801e51d4d65de1f98e6936 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20L=C3=B3pez?= <50665615+flopez7@users.noreply.github.com> Date: Tue, 4 Feb 2025 16:34:38 +0100 Subject: [PATCH 41/44] [Job Launcher Client] Improve usability (#3068) * Improve addBillingDetails modal ussage Fix some styles in LaunchJobProgress page * Remove wrong conditional --- .../src/components/Jobs/Create/FiatPayForm.tsx | 5 ++++- .../components/Jobs/Create/LaunchJobProgress.tsx | 13 ++++++++++--- .../client/src/pages/Profile/Settings/index.tsx | 5 ++++- 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/packages/apps/job-launcher/client/src/components/Jobs/Create/FiatPayForm.tsx b/packages/apps/job-launcher/client/src/components/Jobs/Create/FiatPayForm.tsx index c756b4cd7c..62f7cf290a 100644 --- a/packages/apps/job-launcher/client/src/components/Jobs/Create/FiatPayForm.tsx +++ b/packages/apps/job-launcher/client/src/components/Jobs/Create/FiatPayForm.tsx @@ -481,7 +481,10 @@ export const FiatPayForm = ({ setIsBillingDetailsOpen(false)} + onClose={() => { + setIsBillingDetailsOpen(false); + setOpenBillingAfterAddCard(false); + }} billingInfo={{ name: '', email: '', diff --git a/packages/apps/job-launcher/client/src/components/Jobs/Create/LaunchJobProgress.tsx b/packages/apps/job-launcher/client/src/components/Jobs/Create/LaunchJobProgress.tsx index c2831726e4..a6640c3103 100644 --- a/packages/apps/job-launcher/client/src/components/Jobs/Create/LaunchJobProgress.tsx +++ b/packages/apps/job-launcher/client/src/components/Jobs/Create/LaunchJobProgress.tsx @@ -1,4 +1,4 @@ -import { Box, Typography } from '@mui/material'; +import { Box, Typography, CircularProgress } from '@mui/material'; import { styled } from '@mui/material/styles'; import React from 'react'; import { CheckFilledIcon } from '../../../components/Icons/CheckFilledIcon'; @@ -6,9 +6,9 @@ import { CheckFilledIcon } from '../../../components/Icons/CheckFilledIcon'; const ProgressText = styled(Typography)({ display: 'flex', alignItems: 'center', - width: '300px', position: 'relative', paddingLeft: '30px', + paddingTop: 10, }); const CheckedIcon = styled(CheckFilledIcon)({ @@ -16,6 +16,11 @@ const CheckedIcon = styled(CheckFilledIcon)({ left: '0px', }); +const ProgressIcon = styled(CircularProgress)({ + position: 'absolute', + left: '0px', +}); + export const LaunchJobProgress = () => { return ( { Setting Up Job - Paying Job + + Paying Job + ); }; diff --git a/packages/apps/job-launcher/client/src/pages/Profile/Settings/index.tsx b/packages/apps/job-launcher/client/src/pages/Profile/Settings/index.tsx index bfd32d1e4b..070263c786 100644 --- a/packages/apps/job-launcher/client/src/pages/Profile/Settings/index.tsx +++ b/packages/apps/job-launcher/client/src/pages/Profile/Settings/index.tsx @@ -226,7 +226,10 @@ const Settings = () => { setIsEditBillingOpen(false)} + onClose={() => { + setIsEditBillingOpen(false); + setOpenBillingAfterAddCard(false); + }} billingInfo={billingInfo} setBillingInfo={(info) => { setBillingInfo(info); From 000ef2f7891c6788228277729f8de9c3a0456a70 Mon Sep 17 00:00:00 2001 From: eugenvoronov <104138627+eugenvoronov@users.noreply.github.com> Date: Wed, 5 Feb 2025 12:21:47 +0300 Subject: [PATCH 42/44] [Job Launcher] fix: case transformation of request body properties (#3060) --- .../transform-enum.interceptor.spec.ts | 34 +++++++++++++++++++ .../transform-enum.interceptor.ts | 4 +++ .../src/modules/job/job.controller.spec.ts | 2 +- .../server/src/modules/job/job.controller.ts | 2 -- .../webhook/webhook.controller.spec.ts | 3 +- .../src/modules/webhook/webhook.controller.ts | 3 +- .../transform-enum.interceptor.spec.ts | 34 +++++++++++++++++++ .../transform-enum.interceptor.ts | 4 +++ .../webhook/webhook.controller.spec.ts | 16 ++++----- .../src/modules/webhook/webhook.controller.ts | 7 ++-- .../transform-enum.interceptor.spec.ts | 34 +++++++++++++++++++ .../transform-enum.interceptor.ts | 4 +++ .../server/src/common/constants/index.ts | 5 +-- .../src/common/guards/signature.auth.ts | 6 ++-- .../transform-enum.interceptor.spec.ts | 34 +++++++++++++++++++ .../transform-enum.interceptor.ts | 4 +++ .../src/modules/payment/payment.controller.ts | 2 +- .../webhook/webhook.controller.spec.ts | 9 ++--- .../src/modules/webhook/webhook.controller.ts | 7 ++-- .../transform-enum.interceptor.spec.ts | 34 +++++++++++++++++++ .../transform-enum.interceptor.ts | 4 +++ .../src/modules/webhook/webhook.controller.ts | 10 +----- 22 files changed, 211 insertions(+), 51 deletions(-) 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 4acaa96149..9b54afb497 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 @@ -161,4 +161,38 @@ describe('TransformEnumInterceptor', () => { }); expect(callHandler.handle).toHaveBeenCalled(); }); + + it('should return bodyOrQuery if instance is not an object', () => { + // Test with `null` as the instance + let result = interceptor['lowercaseEnumProperties']( + { status: 'PENDING' }, + null, + MockDto + ); + expect(result).toEqual({ status: 'PENDING' }); + + // Test with `undefined` as the instance + result = interceptor['lowercaseEnumProperties']( + { status: 'PENDING' }, + undefined, + MockDto + ); + expect(result).toEqual({ status: 'PENDING' }); + + // Test with a primitive value (string) as the instance + result = interceptor['lowercaseEnumProperties']( + { status: 'PENDING' }, + 'some string', + MockDto + ); + expect(result).toEqual({ status: 'PENDING' }); + + // Test with a primitive value (number) as the instance + result = interceptor['lowercaseEnumProperties']( + { status: 'PENDING' }, + 123, + MockDto + ); + expect(result).toEqual({ status: 'PENDING' }); + }); }); diff --git a/packages/apps/fortune/exchange-oracle/server/src/common/interceptors/transform-enum.interceptor.ts b/packages/apps/fortune/exchange-oracle/server/src/common/interceptors/transform-enum.interceptor.ts index 62309328a1..d24d146f34 100644 --- a/packages/apps/fortune/exchange-oracle/server/src/common/interceptors/transform-enum.interceptor.ts +++ b/packages/apps/fortune/exchange-oracle/server/src/common/interceptors/transform-enum.interceptor.ts @@ -83,6 +83,10 @@ export class TransformEnumInterceptor implements NestInterceptor { instance: any, targetClass: ClassConstructor, ): any { + if (!instance || typeof instance !== 'object') { + return bodyOrQuery; + } + for (const property in bodyOrQuery) { if (bodyOrQuery.hasOwnProperty(property)) { const instanceValue = instance[property]; diff --git a/packages/apps/fortune/exchange-oracle/server/src/modules/job/job.controller.spec.ts b/packages/apps/fortune/exchange-oracle/server/src/modules/job/job.controller.spec.ts index 558fea3c1b..8a5b00a3af 100644 --- a/packages/apps/fortune/exchange-oracle/server/src/modules/job/job.controller.spec.ts +++ b/packages/apps/fortune/exchange-oracle/server/src/modules/job/job.controller.spec.ts @@ -75,7 +75,7 @@ describe('JobController', () => { solution: 'job-solution', }; - await jobController.solveJob(solveJobDto, 'signature'); + await jobController.solveJob(solveJobDto); expect(jobService.solveJob).toHaveBeenCalledWith( Number(solveJobDto.assignmentId), diff --git a/packages/apps/fortune/exchange-oracle/server/src/modules/job/job.controller.ts b/packages/apps/fortune/exchange-oracle/server/src/modules/job/job.controller.ts index b5cac2a69b..8209881c5e 100644 --- a/packages/apps/fortune/exchange-oracle/server/src/modules/job/job.controller.ts +++ b/packages/apps/fortune/exchange-oracle/server/src/modules/job/job.controller.ts @@ -6,7 +6,6 @@ import { Query, UseGuards, Request, - Headers, } from '@nestjs/common'; import { ApiBearerAuth, @@ -95,7 +94,6 @@ export class JobController { @AllowedRoles([AuthSignatureRole.Worker]) async solveJob( @Body() solveJobDto: SolveJobDto, - @Headers(HEADER_SIGNATURE_KEY) signature: string, ): Promise { const { assignmentId, solution } = solveJobDto; diff --git a/packages/apps/fortune/exchange-oracle/server/src/modules/webhook/webhook.controller.spec.ts b/packages/apps/fortune/exchange-oracle/server/src/modules/webhook/webhook.controller.spec.ts index 638d6eae6a..63f73173b4 100644 --- a/packages/apps/fortune/exchange-oracle/server/src/modules/webhook/webhook.controller.spec.ts +++ b/packages/apps/fortune/exchange-oracle/server/src/modules/webhook/webhook.controller.spec.ts @@ -1,6 +1,5 @@ import { createMock } from '@golevelup/ts-jest'; import { Test } from '@nestjs/testing'; -import { MOCK_SIGNATURE } from '../../../test/constants'; import { EventType } from '../../common/enums/webhook'; import { WebhookController } from './webhook.controller'; import { WebhookDto } from './webhook.dto'; @@ -41,7 +40,7 @@ describe('webhookController', () => { }; jest.spyOn(webhookService, 'handleWebhook').mockResolvedValue(); - await webhookController.processWebhook(webhook, MOCK_SIGNATURE); + await webhookController.processWebhook(webhook); expect(webhookService.handleWebhook).toHaveBeenCalledWith(webhook); }); diff --git a/packages/apps/fortune/exchange-oracle/server/src/modules/webhook/webhook.controller.ts b/packages/apps/fortune/exchange-oracle/server/src/modules/webhook/webhook.controller.ts index e00712099b..ac5d7ee606 100644 --- a/packages/apps/fortune/exchange-oracle/server/src/modules/webhook/webhook.controller.ts +++ b/packages/apps/fortune/exchange-oracle/server/src/modules/webhook/webhook.controller.ts @@ -1,4 +1,4 @@ -import { Body, Controller, Headers, Post, UseGuards } from '@nestjs/common'; +import { Body, Controller, Post, UseGuards } from '@nestjs/common'; import { ApiBody, ApiResponse, @@ -58,7 +58,6 @@ export class WebhookController { }) public async processWebhook( @Body() body: WebhookDto, - @Headers(HEADER_SIGNATURE_KEY) _: string, ): Promise { return this.webhookService.handleWebhook(body); } 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 a018cb8c2a..8e012a1f44 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 @@ -200,4 +200,38 @@ describe('TransformEnumInterceptor', () => { }); expect(callHandler.handle).toHaveBeenCalled(); }); + + it('should return bodyOrQuery if instance is not an object', () => { + // Test with `null` as the instance + let result = interceptor['lowercaseEnumProperties']( + { status: 'PENDING' }, + null, + MockDto, + ); + expect(result).toEqual({ status: 'PENDING' }); + + // Test with `undefined` as the instance + result = interceptor['lowercaseEnumProperties']( + { status: 'PENDING' }, + undefined, + MockDto, + ); + expect(result).toEqual({ status: 'PENDING' }); + + // Test with a primitive value (string) as the instance + result = interceptor['lowercaseEnumProperties']( + { status: 'PENDING' }, + 'some string', + MockDto, + ); + expect(result).toEqual({ status: 'PENDING' }); + + // Test with a primitive value (number) as the instance + result = interceptor['lowercaseEnumProperties']( + { status: 'PENDING' }, + 123, + MockDto, + ); + expect(result).toEqual({ status: 'PENDING' }); + }); }); diff --git a/packages/apps/fortune/recording-oracle/src/common/interceptors/transform-enum.interceptor.ts b/packages/apps/fortune/recording-oracle/src/common/interceptors/transform-enum.interceptor.ts index 885611824a..020899bc21 100644 --- a/packages/apps/fortune/recording-oracle/src/common/interceptors/transform-enum.interceptor.ts +++ b/packages/apps/fortune/recording-oracle/src/common/interceptors/transform-enum.interceptor.ts @@ -83,6 +83,10 @@ export class TransformEnumInterceptor implements NestInterceptor { instance: any, targetClass: ClassConstructor, ): any { + if (!instance || typeof instance !== 'object') { + return bodyOrQuery; + } + for (const property in bodyOrQuery) { if (Object.prototype.hasOwnProperty.call(bodyOrQuery, property)) { const instanceValue = instance[property]; diff --git a/packages/apps/fortune/recording-oracle/src/modules/webhook/webhook.controller.spec.ts b/packages/apps/fortune/recording-oracle/src/modules/webhook/webhook.controller.spec.ts index 65e1111dd4..be72180122 100644 --- a/packages/apps/fortune/recording-oracle/src/modules/webhook/webhook.controller.spec.ts +++ b/packages/apps/fortune/recording-oracle/src/modules/webhook/webhook.controller.spec.ts @@ -6,11 +6,7 @@ import { HttpService } from '@nestjs/axios'; import { ConfigService } from '@nestjs/config'; import { Test } from '@nestjs/testing'; import { of } from 'rxjs'; -import { - MOCK_FILE_URL, - MOCK_SIGNATURE, - mockConfig, -} from '../../../test/constants'; +import { MOCK_FILE_URL, mockConfig } from '../../../test/constants'; import { EventType } from '../../common/enums/webhook'; import { verifySignature } from '../../common/utils/signature'; import { JobService } from '../job/job.service'; @@ -100,7 +96,7 @@ describe('webhookController', () => { (verifySignature as jest.Mock).mockReturnValue(true); - await webhookController.processWebhook(webhook, MOCK_SIGNATURE); + await webhookController.processWebhook(webhook); expect(webhookService.handleWebhook).toHaveBeenCalledWith(webhook); }); @@ -121,7 +117,7 @@ describe('webhookController', () => { jest.spyOn(webhookService, 'handleWebhook').mockResolvedValue(); - await webhookController.processWebhook(webhook, MOCK_SIGNATURE); + await webhookController.processWebhook(webhook); expect(webhookService.handleWebhook).toHaveBeenCalledWith(webhook); }); @@ -136,9 +132,9 @@ describe('webhookController', () => { (verifySignature as jest.Mock).mockReturnValue(true); - await expect( - webhookController.processWebhook(webhook, MOCK_SIGNATURE), - ).rejects.toThrow('Invalid webhook event type: job_completed'); + await expect(webhookController.processWebhook(webhook)).rejects.toThrow( + 'Invalid webhook event type: job_completed', + ); expect(webhookService.handleWebhook).toHaveBeenCalledWith(webhook); }); diff --git a/packages/apps/fortune/recording-oracle/src/modules/webhook/webhook.controller.ts b/packages/apps/fortune/recording-oracle/src/modules/webhook/webhook.controller.ts index 1c664189f0..d3d99abc7b 100644 --- a/packages/apps/fortune/recording-oracle/src/modules/webhook/webhook.controller.ts +++ b/packages/apps/fortune/recording-oracle/src/modules/webhook/webhook.controller.ts @@ -1,4 +1,4 @@ -import { Body, Controller, Headers, Post, UseGuards } from '@nestjs/common'; +import { Body, Controller, Post, UseGuards } from '@nestjs/common'; import { ApiBody, ApiHeader, @@ -50,10 +50,7 @@ export class WebhookController { new SignatureAuthGuard([Role.Exchange, Role.Reputation, Role.JobLauncher]), ) @Post() - processWebhook( - @Body() body: WebhookDto, - @Headers(HEADER_SIGNATURE_KEY) _: string, - ): Promise { + processWebhook(@Body() body: WebhookDto): Promise { return this.webhookService.handleWebhook(body); } } 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 a65bb4c01b..ae7a4f0bf5 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 @@ -200,4 +200,38 @@ describe('TransformEnumInterceptor', () => { }); expect(callHandler.handle).toHaveBeenCalled(); }); + + it('should return bodyOrQuery if instance is not an object', () => { + // Test with `null` as the instance + let result = interceptor['lowercaseEnumProperties']( + { status: 'PENDING' }, + null, + MockDto + ); + expect(result).toEqual({ status: 'PENDING' }); + + // Test with `undefined` as the instance + result = interceptor['lowercaseEnumProperties']( + { status: 'PENDING' }, + undefined, + MockDto + ); + expect(result).toEqual({ status: 'PENDING' }); + + // Test with a primitive value (string) as the instance + result = interceptor['lowercaseEnumProperties']( + { status: 'PENDING' }, + 'some string', + MockDto + ); + expect(result).toEqual({ status: 'PENDING' }); + + // Test with a primitive value (number) as the instance + result = interceptor['lowercaseEnumProperties']( + { status: 'PENDING' }, + 123, + MockDto + ); + expect(result).toEqual({ status: 'PENDING' }); + }); }); diff --git a/packages/apps/human-app/server/src/common/interceptors/transform-enum.interceptor.ts b/packages/apps/human-app/server/src/common/interceptors/transform-enum.interceptor.ts index 62309328a1..d24d146f34 100644 --- a/packages/apps/human-app/server/src/common/interceptors/transform-enum.interceptor.ts +++ b/packages/apps/human-app/server/src/common/interceptors/transform-enum.interceptor.ts @@ -83,6 +83,10 @@ export class TransformEnumInterceptor implements NestInterceptor { instance: any, targetClass: ClassConstructor, ): any { + if (!instance || typeof instance !== 'object') { + return bodyOrQuery; + } + for (const property in bodyOrQuery) { if (bodyOrQuery.hasOwnProperty(property)) { const instanceValue = instance[property]; 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 0e8a052281..dc14428789 100644 --- a/packages/apps/job-launcher/server/src/common/constants/index.ts +++ b/packages/apps/job-launcher/server/src/common/constants/index.ts @@ -19,10 +19,7 @@ export const TESTNET_CHAIN_IDS = [ ChainId.POLYGON_AMOY, ChainId.SEPOLIA, ]; -export const MAINNET_CHAIN_IDS = [ - ChainId.BSC_MAINNET, - ChainId.POLYGON, -]; +export const MAINNET_CHAIN_IDS = [ChainId.BSC_MAINNET, ChainId.POLYGON]; export const SENDGRID_API_KEY_REGEX = /^SG\.[A-Za-z0-9-_]{22}\.[A-Za-z0-9-_]{43}$/; diff --git a/packages/apps/job-launcher/server/src/common/guards/signature.auth.ts b/packages/apps/job-launcher/server/src/common/guards/signature.auth.ts index 997819b001..9374641e5b 100644 --- a/packages/apps/job-launcher/server/src/common/guards/signature.auth.ts +++ b/packages/apps/job-launcher/server/src/common/guards/signature.auth.ts @@ -27,17 +27,17 @@ export class SignatureAuthGuard implements CanActivate { ); if ( this.role.includes(Role.Exchange) && - escrowData.exchangeOracle?.length + escrowData?.exchangeOracle?.length ) oracleAdresses.push(escrowData.exchangeOracle); if ( this.role.includes(Role.Recording) && - escrowData.recordingOracle?.length + escrowData?.recordingOracle?.length ) oracleAdresses.push(escrowData.recordingOracle); if ( this.role.includes(Role.Reputation) && - escrowData.reputationOracle?.length + escrowData?.reputationOracle?.length ) oracleAdresses.push(escrowData.reputationOracle); 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 8a82f9907b..0710491f89 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 @@ -221,4 +221,38 @@ describe('TransformEnumInterceptor', () => { }); expect(callHandler.handle).toHaveBeenCalled(); }); + + it('should return bodyOrQuery if instance is not an object', () => { + // Test with `null` as the instance + let result = interceptor['lowercaseEnumProperties']( + { status: 'PENDING' }, + null, + MockDto, + ); + expect(result).toEqual({ status: 'PENDING' }); + + // Test with `undefined` as the instance + result = interceptor['lowercaseEnumProperties']( + { status: 'PENDING' }, + undefined, + MockDto, + ); + expect(result).toEqual({ status: 'PENDING' }); + + // Test with a primitive value (string) as the instance + result = interceptor['lowercaseEnumProperties']( + { status: 'PENDING' }, + 'some string', + MockDto, + ); + expect(result).toEqual({ status: 'PENDING' }); + + // Test with a primitive value (number) as the instance + result = interceptor['lowercaseEnumProperties']( + { status: 'PENDING' }, + 123, + MockDto, + ); + expect(result).toEqual({ status: 'PENDING' }); + }); }); diff --git a/packages/apps/job-launcher/server/src/common/interceptors/transform-enum.interceptor.ts b/packages/apps/job-launcher/server/src/common/interceptors/transform-enum.interceptor.ts index 62309328a1..d24d146f34 100644 --- a/packages/apps/job-launcher/server/src/common/interceptors/transform-enum.interceptor.ts +++ b/packages/apps/job-launcher/server/src/common/interceptors/transform-enum.interceptor.ts @@ -83,6 +83,10 @@ export class TransformEnumInterceptor implements NestInterceptor { instance: any, targetClass: ClassConstructor, ): any { + if (!instance || typeof instance !== 'object') { + return bodyOrQuery; + } + for (const property in bodyOrQuery) { if (bodyOrQuery.hasOwnProperty(property)) { const instanceValue = instance[property]; diff --git a/packages/apps/job-launcher/server/src/modules/payment/payment.controller.ts b/packages/apps/job-launcher/server/src/modules/payment/payment.controller.ts index 22791e70b4..154aa5ced8 100644 --- a/packages/apps/job-launcher/server/src/modules/payment/payment.controller.ts +++ b/packages/apps/job-launcher/server/src/modules/payment/payment.controller.ts @@ -85,8 +85,8 @@ export class PaymentController { @UseGuards(WhitelistAuthGuard) @Post('/crypto') public async createCryptoPayment( - @Headers(HEADER_SIGNATURE_KEY) signature: string, @Body() data: PaymentCryptoCreateDto, + @Headers(HEADER_SIGNATURE_KEY) signature: string, @Request() req: RequestWithUser, ): Promise { return this.paymentService.createCryptoPayment( diff --git a/packages/apps/job-launcher/server/src/modules/webhook/webhook.controller.spec.ts b/packages/apps/job-launcher/server/src/modules/webhook/webhook.controller.spec.ts index 9585a0dbf5..ef91574786 100644 --- a/packages/apps/job-launcher/server/src/modules/webhook/webhook.controller.spec.ts +++ b/packages/apps/job-launcher/server/src/modules/webhook/webhook.controller.spec.ts @@ -159,7 +159,6 @@ describe('WebhookController', () => { reason: 'Invalid manifest URL', }, }; - const mockSignature = 'Human-Signature'; jest .spyOn(jobService, 'escrowFailedWebhook') @@ -171,7 +170,7 @@ describe('WebhookController', () => { }); await expect( - webhookController.processWebhook(mockSignature, invalidDto), + webhookController.processWebhook(invalidDto), ).rejects.toThrow( new ControlledError('Invalid manifest URL', HttpStatus.BAD_REQUEST), ); @@ -188,7 +187,6 @@ describe('WebhookController', () => { reason: 'Manifest cannot be downloaded', }, }; - const mockSignature = 'Human-Signature'; jest .spyOn(jobService, 'escrowFailedWebhook') @@ -197,10 +195,7 @@ describe('WebhookController', () => { }); await expect( - webhookController.processWebhook( - mockSignature, - manifestCannotBeDownloadedDto, - ), + webhookController.processWebhook(manifestCannotBeDownloadedDto), ).rejects.toThrow(BadRequestException); expect(jobService.escrowFailedWebhook).toHaveBeenCalledWith( diff --git a/packages/apps/job-launcher/server/src/modules/webhook/webhook.controller.ts b/packages/apps/job-launcher/server/src/modules/webhook/webhook.controller.ts index 14d4e9fc36..8c6ce339c8 100644 --- a/packages/apps/job-launcher/server/src/modules/webhook/webhook.controller.ts +++ b/packages/apps/job-launcher/server/src/modules/webhook/webhook.controller.ts @@ -1,4 +1,4 @@ -import { Body, Controller, Headers, Post, UseGuards } from '@nestjs/common'; +import { Body, Controller, Post, UseGuards } from '@nestjs/common'; import { ApiBody, ApiResponse, @@ -54,10 +54,7 @@ export class WebhookController { description: 'Not Found. Could not find the requested content.', }) @Post() - public async processWebhook( - @Headers(HEADER_SIGNATURE_KEY) _: string, - @Body() body: WebhookDataDto, - ): Promise { + public async processWebhook(@Body() body: WebhookDataDto): Promise { await this.webhookService.handleWebhook(body); return; } diff --git a/packages/apps/reputation-oracle/server/src/common/interceptors/transform-enum.interceptor.spec.ts b/packages/apps/reputation-oracle/server/src/common/interceptors/transform-enum.interceptor.spec.ts index ea8f381fc3..7dee960c9e 100644 --- a/packages/apps/reputation-oracle/server/src/common/interceptors/transform-enum.interceptor.spec.ts +++ b/packages/apps/reputation-oracle/server/src/common/interceptors/transform-enum.interceptor.spec.ts @@ -200,4 +200,38 @@ describe('TransformEnumInterceptor', () => { }); expect(callHandler.handle).toHaveBeenCalled(); }); + + it('should return bodyOrQuery if instance is not an object', () => { + // Test with `null` as the instance + let result = interceptor['lowercaseEnumProperties']( + { status: 'PENDING' }, + null, + MockDto, + ); + expect(result).toEqual({ status: 'PENDING' }); + + // Test with `undefined` as the instance + result = interceptor['lowercaseEnumProperties']( + { status: 'PENDING' }, + undefined, + MockDto, + ); + expect(result).toEqual({ status: 'PENDING' }); + + // Test with a primitive value (string) as the instance + result = interceptor['lowercaseEnumProperties']( + { status: 'PENDING' }, + 'some string', + MockDto, + ); + expect(result).toEqual({ status: 'PENDING' }); + + // Test with a primitive value (number) as the instance + result = interceptor['lowercaseEnumProperties']( + { status: 'PENDING' }, + 123, + MockDto, + ); + expect(result).toEqual({ status: 'PENDING' }); + }); }); diff --git a/packages/apps/reputation-oracle/server/src/common/interceptors/transform-enum.interceptor.ts b/packages/apps/reputation-oracle/server/src/common/interceptors/transform-enum.interceptor.ts index 62309328a1..d24d146f34 100644 --- a/packages/apps/reputation-oracle/server/src/common/interceptors/transform-enum.interceptor.ts +++ b/packages/apps/reputation-oracle/server/src/common/interceptors/transform-enum.interceptor.ts @@ -83,6 +83,10 @@ export class TransformEnumInterceptor implements NestInterceptor { instance: any, targetClass: ClassConstructor, ): any { + if (!instance || typeof instance !== 'object') { + return bodyOrQuery; + } + for (const property in bodyOrQuery) { if (bodyOrQuery.hasOwnProperty(property)) { const instanceValue = instance[property]; diff --git a/packages/apps/reputation-oracle/server/src/modules/webhook/webhook.controller.ts b/packages/apps/reputation-oracle/server/src/modules/webhook/webhook.controller.ts index b9962fc363..47a8739579 100644 --- a/packages/apps/reputation-oracle/server/src/modules/webhook/webhook.controller.ts +++ b/packages/apps/reputation-oracle/server/src/modules/webhook/webhook.controller.ts @@ -1,11 +1,4 @@ -import { - Body, - Controller, - Headers, - Post, - UseFilters, - UseGuards, -} from '@nestjs/common'; +import { Body, Controller, Post, UseFilters, UseGuards } from '@nestjs/common'; import { ApiTags, ApiOperation, @@ -59,7 +52,6 @@ export class WebhookController { description: 'Not Found. Could not find the requested content.', }) public async createIncomingWebhook( - @Headers(HEADER_SIGNATURE_KEY) _: string, @Body() data: IncomingWebhookDto, ): Promise { await this.webhookIncomingService.createIncomingWebhook(data); From a0877f2ca0433675f5d516b28031ab5d31969da0 Mon Sep 17 00:00:00 2001 From: mpblocky <185767042+mpblocky@users.noreply.github.com> Date: Wed, 5 Feb 2025 15:02:40 +0100 Subject: [PATCH 43/44] [Human App] fix: layout media queries (#3072) --- .../human-app/frontend/src/shared/hooks/use-notification.tsx | 4 ---- .../apps/human-app/frontend/src/shared/styles/breakpoints.ts | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/apps/human-app/frontend/src/shared/hooks/use-notification.tsx b/packages/apps/human-app/frontend/src/shared/hooks/use-notification.tsx index fbf3153f35..a3e465c621 100644 --- a/packages/apps/human-app/frontend/src/shared/hooks/use-notification.tsx +++ b/packages/apps/human-app/frontend/src/shared/hooks/use-notification.tsx @@ -3,7 +3,6 @@ import { type SnackbarKey, useSnackbar } from 'notistack'; import CloseIcon from '@mui/icons-material/Close'; import { useColorMode } from '@/shared/contexts/color-mode'; import { colorPalette as lightColorPalette } from '@/shared/styles/color-palette'; -import { breakpoints } from '@/shared/styles/breakpoints'; export enum TopNotificationType { SUCCESS = 'success', @@ -64,9 +63,6 @@ export const useNotification = () => { fontSize: 14, fontWeight: 600, letterSpacing: 0.1, - [breakpoints.mobile]: { - fontSize: 14, - }, }, action, }); diff --git a/packages/apps/human-app/frontend/src/shared/styles/breakpoints.ts b/packages/apps/human-app/frontend/src/shared/styles/breakpoints.ts index 6842a5b2e2..bb898d161c 100644 --- a/packages/apps/human-app/frontend/src/shared/styles/breakpoints.ts +++ b/packages/apps/human-app/frontend/src/shared/styles/breakpoints.ts @@ -1,4 +1,4 @@ export const breakpoints = { - mobile: '@media (maxWidth:900px)', - tablet: '@media (maxWidth:1200px)', + mobile: '@media (max-width:900px)', + tablet: '@media (max-width:1200px)', }; From 087ba3cd7fcf876592a152a949ab30f0502654c5 Mon Sep 17 00:00:00 2001 From: portuu3 <61605646+portuu3@users.noreply.github.com> Date: Wed, 5 Feb 2025 15:42:13 +0100 Subject: [PATCH 44/44] Update docs 20250205 (#3073) * regenerate docs * update env file docs --- .../python/human_protocol_sdk.constants.md | 8 +-- docs/sdk/python/human_protocol_sdk.md | 14 +---- docs/sdk/python/index.md | 5 -- .../base/classes/BaseEthersClient.md | 6 +- .../encryption/classes/Encryption.md | 10 ++-- .../encryption/classes/EncryptionUtils.md | 10 ++-- .../typescript/enums/enumerations/ChainId.md | 16 ++--- .../enums/enumerations/LeaderCategory.md | 4 +- .../enums/enumerations/OrderDirection.md | 4 +- .../typescript/escrow/classes/EscrowClient.md | 52 ++++++++-------- .../typescript/escrow/classes/EscrowUtils.md | 6 +- .../types/type-aliases/DailyEscrowData.md | 2 +- .../types/type-aliases/DailyHMTData.md | 2 +- .../types/type-aliases/DailyPaymentData.md | 2 +- .../types/type-aliases/DailyTaskData.md | 2 +- .../types/type-aliases/DailyWorkerData.md | 2 +- .../graphql/types/type-aliases/EscrowData.md | 2 +- .../types/type-aliases/EscrowStatistics.md | 2 +- .../type-aliases/EscrowStatisticsData.md | 2 +- .../types/type-aliases/EventDayData.md | 2 +- .../graphql/types/type-aliases/HMTHolder.md | 2 +- .../types/type-aliases/HMTHolderData.md | 2 +- .../types/type-aliases/HMTStatistics.md | 2 +- .../types/type-aliases/HMTStatisticsData.md | 2 +- .../graphql/types/type-aliases/IMData.md | 2 +- .../types/type-aliases/IMDataEntity.md | 2 +- .../graphql/types/type-aliases/KVStoreData.md | 2 +- .../types/type-aliases/PaymentStatistics.md | 2 +- .../graphql/types/type-aliases/PayoutData.md | 2 +- .../type-aliases/RewardAddedEventData.md | 2 +- .../graphql/types/type-aliases/StatusEvent.md | 2 +- .../types/type-aliases/TaskStatistics.md | 2 +- .../types/type-aliases/WorkerStatistics.md | 2 +- .../interfaces/interfaces/IEscrowConfig.md | 16 ++--- .../interfaces/interfaces/IEscrowsFilter.md | 24 ++++---- .../interfaces/IHMTHoldersParams.md | 8 +-- .../interfaces/interfaces/IKVStore.md | 4 +- .../interfaces/interfaces/IKeyPair.md | 8 +-- .../interfaces/interfaces/ILeader.md | 44 +++++++------- .../interfaces/interfaces/ILeaderSubgraph.md | 42 ++++++------- .../interfaces/interfaces/ILeadersFilter.md | 14 ++--- .../interfaces/interfaces/IOperator.md | 12 ++-- .../interfaces/IOperatorSubgraph.md | 12 ++-- .../interfaces/interfaces/IPagination.md | 6 +- .../interfaces/interfaces/IPayoutFilter.md | 8 +-- .../interfaces/IReputationNetwork.md | 6 +- .../interfaces/IReputationNetworkSubgraph.md | 6 +- .../interfaces/interfaces/IReward.md | 4 +- .../interfaces/IStatisticsFilter.md | 10 ++-- .../interfaces/interfaces/ITransaction.md | 22 +++---- .../interfaces/ITransactionsFilter.md | 20 +++---- .../interfaces/InternalTransaction.md | 14 ++--- .../interfaces/interfaces/StakerInfo.md | 8 +-- .../kvstore/classes/KVStoreClient.md | 14 ++--- .../kvstore/classes/KVStoreUtils.md | 8 +-- .../operator/classes/OperatorUtils.md | 8 +-- .../staking/classes/StakingClient.md | 26 ++++---- .../statistics/classes/StatisticsClient.md | 18 +++--- .../storage/classes/StorageClient.md | 12 ++-- .../transaction/classes/TransactionUtils.md | 4 +- .../types/enumerations/EscrowStatus.md | 12 ++-- .../types/type-aliases/EscrowCancel.md | 2 +- .../types/type-aliases/EscrowWithdraw.md | 2 +- .../types/type-aliases/NetworkData.md | 2 +- .../types/type-aliases/StorageCredentials.md | 2 +- .../types/type-aliases/StorageParams.md | 2 +- .../type-aliases/TransactionLikeWithNonce.md | 2 +- .../types/type-aliases/UploadFile.md | 2 +- .../fortune/exchange-oracle/server/ENV.md | 6 -- packages/apps/fortune/recording-oracle/ENV.md | 3 - packages/apps/human-app/server/ENV.md | 60 +++++++++++-------- packages/apps/job-launcher/server/ENV.md | 12 +--- packages/apps/reputation-oracle/server/ENV.md | 12 +--- .../python/human-protocol-sdk/docs/conf.py | 4 +- .../docs/human_protocol_sdk.rst | 1 - .../human_protocol_sdk/constants.py | 16 ++--- 76 files changed, 336 insertions(+), 361 deletions(-) diff --git a/docs/sdk/python/human_protocol_sdk.constants.md b/docs/sdk/python/human_protocol_sdk.constants.md index dcf03e00cd..d60606cca3 100644 --- a/docs/sdk/python/human_protocol_sdk.constants.md +++ b/docs/sdk/python/human_protocol_sdk.constants.md @@ -31,11 +31,11 @@ Enum for KVStore keys #### fee *= 'fee'* #### job_types *= 'job_types'* - #### name *= 'name'* - #### public_key *= 'public_key'* +#### public_key_hash *= 'public_key_hash'* + #### registration_instructions *= 'registration_instructions'* #### registration_needed *= 'registration_needed'* @@ -46,6 +46,8 @@ Enum for KVStore keys #### webhook_url *= 'webhook_url'* +#### website *= 'website'* + ### *class* human_protocol_sdk.constants.LeaderCategory(value) Bases: `Enum` @@ -80,8 +82,6 @@ Enum for roles. #### reputation_oracle *= 'Reputation Oracle'* -#### validator *= 'Validator'* - ### *class* human_protocol_sdk.constants.Status(value) Bases: `Enum` diff --git a/docs/sdk/python/human_protocol_sdk.md b/docs/sdk/python/human_protocol_sdk.md index 4a5708c80d..79b69427ef 100644 --- a/docs/sdk/python/human_protocol_sdk.md +++ b/docs/sdk/python/human_protocol_sdk.md @@ -59,16 +59,6 @@ * [Module](human_protocol_sdk.kvstore.kvstore_utils.md#module) * [`KVStoreData`](human_protocol_sdk.kvstore.kvstore_utils.md#human_protocol_sdk.kvstore.kvstore_utils.KVStoreData) * [`KVStoreUtils`](human_protocol_sdk.kvstore.kvstore_utils.md#human_protocol_sdk.kvstore.kvstore_utils.KVStoreUtils) -* [human_protocol_sdk.kvstore.kvstore_utils module](human_protocol_sdk.kvstore.kvstore_utils.md) - * [Code Example](human_protocol_sdk.kvstore.kvstore_utils.md#code-example) - * [Module](human_protocol_sdk.kvstore.kvstore_utils.md#module) - * [`KVStoreData`](human_protocol_sdk.kvstore.kvstore_utils.md#human_protocol_sdk.kvstore.kvstore_utils.KVStoreData) - * [`KVStoreData.__init__()`](human_protocol_sdk.kvstore.kvstore_utils.md#human_protocol_sdk.kvstore.kvstore_utils.KVStoreData.__init__) - * [`KVStoreUtils`](human_protocol_sdk.kvstore.kvstore_utils.md#human_protocol_sdk.kvstore.kvstore_utils.KVStoreUtils) - * [`KVStoreUtils.get()`](human_protocol_sdk.kvstore.kvstore_utils.md#human_protocol_sdk.kvstore.kvstore_utils.KVStoreUtils.get) - * [`KVStoreUtils.get_file_url_and_verify_hash()`](human_protocol_sdk.kvstore.kvstore_utils.md#human_protocol_sdk.kvstore.kvstore_utils.KVStoreUtils.get_file_url_and_verify_hash) - * [`KVStoreUtils.get_kvstore_data()`](human_protocol_sdk.kvstore.kvstore_utils.md#human_protocol_sdk.kvstore.kvstore_utils.KVStoreUtils.get_kvstore_data) - * [`KVStoreUtils.get_public_key()`](human_protocol_sdk.kvstore.kvstore_utils.md#human_protocol_sdk.kvstore.kvstore_utils.KVStoreUtils.get_public_key) * [human_protocol_sdk.operator package](human_protocol_sdk.operator.md) * [Submodules](human_protocol_sdk.operator.md#submodules) * [human_protocol_sdk.operator.operator_utils module](human_protocol_sdk.operator.operator_utils.md) @@ -140,13 +130,14 @@ * [`KVStoreKeys.category`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.KVStoreKeys.category) * [`KVStoreKeys.fee`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.KVStoreKeys.fee) * [`KVStoreKeys.job_types`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.KVStoreKeys.job_types) - * [`KVStoreKeys.name`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.KVStoreKeys.name) * [`KVStoreKeys.public_key`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.KVStoreKeys.public_key) + * [`KVStoreKeys.public_key_hash`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.KVStoreKeys.public_key_hash) * [`KVStoreKeys.registration_instructions`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.KVStoreKeys.registration_instructions) * [`KVStoreKeys.registration_needed`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.KVStoreKeys.registration_needed) * [`KVStoreKeys.role`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.KVStoreKeys.role) * [`KVStoreKeys.url`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.KVStoreKeys.url) * [`KVStoreKeys.webhook_url`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.KVStoreKeys.webhook_url) + * [`KVStoreKeys.website`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.KVStoreKeys.website) * [`LeaderCategory`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.LeaderCategory) * [`LeaderCategory.MACHINE_LEARNING`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.LeaderCategory.MACHINE_LEARNING) * [`LeaderCategory.MARKET_MAKING`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.LeaderCategory.MARKET_MAKING) @@ -158,7 +149,6 @@ * [`Role.job_launcher`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.Role.job_launcher) * [`Role.recording_oracle`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.Role.recording_oracle) * [`Role.reputation_oracle`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.Role.reputation_oracle) - * [`Role.validator`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.Role.validator) * [`Status`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.Status) * [`Status.Cancelled`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.Status.Cancelled) * [`Status.Complete`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.Status.Complete) diff --git a/docs/sdk/python/index.md b/docs/sdk/python/index.md index 01c89fc3ba..08dc3fd4e2 100644 --- a/docs/sdk/python/index.md +++ b/docs/sdk/python/index.md @@ -32,11 +32,6 @@ pip install human-protocol-sdk[agreement] * [Submodules](human_protocol_sdk.escrow.md#submodules) * [human_protocol_sdk.kvstore package](human_protocol_sdk.kvstore.md) * [Submodules](human_protocol_sdk.kvstore.md#submodules) - * [human_protocol_sdk.kvstore.kvstore_utils module](human_protocol_sdk.kvstore.kvstore_utils.md) - * [Code Example](human_protocol_sdk.kvstore.kvstore_utils.md#code-example) - * [Module](human_protocol_sdk.kvstore.kvstore_utils.md#module) - * [`KVStoreData`](human_protocol_sdk.kvstore.kvstore_utils.md#human_protocol_sdk.kvstore.kvstore_utils.KVStoreData) - * [`KVStoreUtils`](human_protocol_sdk.kvstore.kvstore_utils.md#human_protocol_sdk.kvstore.kvstore_utils.KVStoreUtils) * [human_protocol_sdk.operator package](human_protocol_sdk.operator.md) * [Submodules](human_protocol_sdk.operator.md#submodules) * [human_protocol_sdk.staking package](human_protocol_sdk.staking.md) diff --git a/docs/sdk/typescript/base/classes/BaseEthersClient.md b/docs/sdk/typescript/base/classes/BaseEthersClient.md index a06975db6c..15729642ca 100644 --- a/docs/sdk/typescript/base/classes/BaseEthersClient.md +++ b/docs/sdk/typescript/base/classes/BaseEthersClient.md @@ -44,7 +44,7 @@ The network information required to connect to the contracts #### Defined in -[base.ts:20](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L20) +[base.ts:20](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L20) ## Properties @@ -54,7 +54,7 @@ The network information required to connect to the contracts #### Defined in -[base.ts:12](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12) +[base.ts:12](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12) *** @@ -64,4 +64,4 @@ The network information required to connect to the contracts #### Defined in -[base.ts:11](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L11) +[base.ts:11](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/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 68f5c2881f..45f40e0fe9 100644 --- a/docs/sdk/typescript/encryption/classes/Encryption.md +++ b/docs/sdk/typescript/encryption/classes/Encryption.md @@ -67,7 +67,7 @@ The private key. #### Defined in -[encryption.ts:66](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L66) +[encryption.ts:66](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L66) ## Methods @@ -123,7 +123,7 @@ const resultMessage = await encryption.decrypt('message'); #### Defined in -[encryption.ts:194](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L194) +[encryption.ts:194](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L194) *** @@ -161,7 +161,7 @@ const resultMessage = await encryption.sign('message'); #### Defined in -[encryption.ts:251](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L251) +[encryption.ts:251](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L251) *** @@ -230,7 +230,7 @@ const resultMessage = await encryption.signAndEncrypt('message', publicKeys); #### Defined in -[encryption.ts:142](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L142) +[encryption.ts:142](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L142) *** @@ -262,4 +262,4 @@ Optional: The passphrase for the private key. #### Defined in -[encryption.ts:77](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L77) +[encryption.ts:77](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L77) diff --git a/docs/sdk/typescript/encryption/classes/EncryptionUtils.md b/docs/sdk/typescript/encryption/classes/EncryptionUtils.md index c448eb3e0b..8c6e538cfa 100644 --- a/docs/sdk/typescript/encryption/classes/EncryptionUtils.md +++ b/docs/sdk/typescript/encryption/classes/EncryptionUtils.md @@ -103,7 +103,7 @@ const result = await EncryptionUtils.encrypt('message', publicKeys); #### Defined in -[encryption.ts:444](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L444) +[encryption.ts:444](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L444) *** @@ -152,7 +152,7 @@ const result = await EncryptionUtils.generateKeyPair(name, email, passphrase); #### Defined in -[encryption.ts:382](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L382) +[encryption.ts:382](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L382) *** @@ -186,7 +186,7 @@ const signedData = await EncryptionUtils.getSignedData('message'); #### Defined in -[encryption.ts:351](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L351) +[encryption.ts:351](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L351) *** @@ -236,7 +236,7 @@ if (isEncrypted) { #### Defined in -[encryption.ts:494](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L494) +[encryption.ts:494](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L494) *** @@ -288,4 +288,4 @@ const result = await EncryptionUtils.verify('message', publicKey); #### Defined in -[encryption.ts:318](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L318) +[encryption.ts:318](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L318) diff --git a/docs/sdk/typescript/enums/enumerations/ChainId.md b/docs/sdk/typescript/enums/enumerations/ChainId.md index c68340c9c7..b24542d6e3 100644 --- a/docs/sdk/typescript/enums/enumerations/ChainId.md +++ b/docs/sdk/typescript/enums/enumerations/ChainId.md @@ -14,7 +14,7 @@ #### Defined in -[enums.ts:2](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L2) +[enums.ts:2](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L2) *** @@ -24,7 +24,7 @@ #### Defined in -[enums.ts:5](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L5) +[enums.ts:5](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L5) *** @@ -34,7 +34,7 @@ #### Defined in -[enums.ts:6](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L6) +[enums.ts:6](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L6) *** @@ -44,7 +44,7 @@ #### Defined in -[enums.ts:9](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L9) +[enums.ts:9](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L9) *** @@ -54,7 +54,7 @@ #### Defined in -[enums.ts:3](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L3) +[enums.ts:3](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L3) *** @@ -64,7 +64,7 @@ #### Defined in -[enums.ts:7](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L7) +[enums.ts:7](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L7) *** @@ -74,7 +74,7 @@ #### Defined in -[enums.ts:8](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L8) +[enums.ts:8](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L8) *** @@ -84,4 +84,4 @@ #### Defined in -[enums.ts:4](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L4) +[enums.ts:4](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L4) diff --git a/docs/sdk/typescript/enums/enumerations/LeaderCategory.md b/docs/sdk/typescript/enums/enumerations/LeaderCategory.md index 3852b8a6f6..e5c2652381 100644 --- a/docs/sdk/typescript/enums/enumerations/LeaderCategory.md +++ b/docs/sdk/typescript/enums/enumerations/LeaderCategory.md @@ -14,7 +14,7 @@ #### Defined in -[enums.ts:18](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L18) +[enums.ts:18](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L18) *** @@ -24,4 +24,4 @@ #### Defined in -[enums.ts:19](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L19) +[enums.ts:19](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/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 3d2ae3ce16..38f2242b3d 100644 --- a/docs/sdk/typescript/enums/enumerations/OrderDirection.md +++ b/docs/sdk/typescript/enums/enumerations/OrderDirection.md @@ -14,7 +14,7 @@ #### Defined in -[enums.ts:13](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L13) +[enums.ts:13](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L13) *** @@ -24,4 +24,4 @@ #### Defined in -[enums.ts:14](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L14) +[enums.ts:14](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/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 73a0d4a2bf..cbc0f8e30a 100644 --- a/docs/sdk/typescript/escrow/classes/EscrowClient.md +++ b/docs/sdk/typescript/escrow/classes/EscrowClient.md @@ -110,7 +110,7 @@ The network information required to connect to the Escrow contract #### Defined in -[escrow.ts:138](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L138) +[escrow.ts:143](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L143) ## Properties @@ -124,7 +124,7 @@ The network information required to connect to the Escrow contract #### Defined in -[base.ts:12](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12) +[base.ts:12](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12) *** @@ -138,7 +138,7 @@ The network information required to connect to the Escrow contract #### Defined in -[base.ts:11](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L11) +[base.ts:11](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L11) ## Methods @@ -195,7 +195,7 @@ await escrowClient.addTrustedHandlers('0x62dD51230A30401C455c8398d06F85e4EaB6309 #### Defined in -[escrow.ts:766](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L766) +[escrow.ts:771](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L771) *** @@ -287,7 +287,7 @@ await escrowClient.bulkPayOut('0x62dD51230A30401C455c8398d06F85e4EaB6309f', reci #### Defined in -[escrow.ts:599](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L599) +[escrow.ts:604](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L604) *** @@ -337,7 +337,7 @@ await escrowClient.cancel('0x62dD51230A30401C455c8398d06F85e4EaB6309f'); #### Defined in -[escrow.ts:680](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L680) +[escrow.ts:685](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L685) *** @@ -387,7 +387,7 @@ await escrowClient.complete('0x62dD51230A30401C455c8398d06F85e4EaB6309f'); #### Defined in -[escrow.ts:538](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L538) +[escrow.ts:543](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L543) *** @@ -483,7 +483,7 @@ console.log('Tx hash:', ethers.keccak256(signedTransaction)); #### Defined in -[escrow.ts:935](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L935) +[escrow.ts:940](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L940) *** @@ -548,7 +548,7 @@ const escrowAddress = await escrowClient.createEscrow(tokenAddress, trustedHandl #### Defined in -[escrow.ts:218](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L218) +[escrow.ts:223](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L223) *** @@ -603,7 +603,7 @@ await escrowClient.fund('0x62dD51230A30401C455c8398d06F85e4EaB6309f', amount); #### Defined in -[escrow.ts:409](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L409) +[escrow.ts:414](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L414) *** @@ -643,7 +643,7 @@ const balance = await escrowClient.getBalance('0x62dD51230A30401C455c8398d06F85e #### Defined in -[escrow.ts:1080](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1080) +[escrow.ts:1085](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1085) *** @@ -683,7 +683,7 @@ const oracleAddress = await escrowClient.getExchangeOracleAddress('0x62dD51230A3 #### Defined in -[escrow.ts:1466](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1466) +[escrow.ts:1471](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1471) *** @@ -723,7 +723,7 @@ const factoryAddress = await escrowClient.getFactoryAddress('0x62dD51230A30401C4 #### Defined in -[escrow.ts:1504](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1504) +[escrow.ts:1509](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1509) *** @@ -763,7 +763,7 @@ const intermediateResultsUrl = await escrowClient.getIntermediateResultsUrl('0x6 #### Defined in -[escrow.ts:1238](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1238) +[escrow.ts:1243](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1243) *** @@ -803,7 +803,7 @@ const jobLauncherAddress = await escrowClient.getJobLauncherAddress('0x62dD51230 #### Defined in -[escrow.ts:1390](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1390) +[escrow.ts:1395](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1395) *** @@ -843,7 +843,7 @@ const manifestHash = await escrowClient.getManifestHash('0x62dD51230A30401C455c8 #### Defined in -[escrow.ts:1124](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1124) +[escrow.ts:1129](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1129) *** @@ -883,7 +883,7 @@ const manifestUrl = await escrowClient.getManifestUrl('0x62dD51230A30401C455c839 #### Defined in -[escrow.ts:1162](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1162) +[escrow.ts:1167](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1167) *** @@ -923,7 +923,7 @@ const oracleAddress = await escrowClient.getRecordingOracleAddress('0x62dD51230A #### Defined in -[escrow.ts:1352](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1352) +[escrow.ts:1357](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1357) *** @@ -963,7 +963,7 @@ const oracleAddress = await escrowClient.getReputationOracleAddress('0x62dD51230 #### Defined in -[escrow.ts:1428](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1428) +[escrow.ts:1433](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1433) *** @@ -1003,7 +1003,7 @@ const resultsUrl = await escrowClient.getResultsUrl('0x62dD51230A30401C455c8398d #### Defined in -[escrow.ts:1200](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1200) +[escrow.ts:1205](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1205) *** @@ -1043,7 +1043,7 @@ const status = await escrowClient.getStatus('0x62dD51230A30401C455c8398d06F85e4E #### Defined in -[escrow.ts:1314](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1314) +[escrow.ts:1319](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1319) *** @@ -1083,7 +1083,7 @@ const tokenAddress = await escrowClient.getTokenAddress('0x62dD51230A30401C455c8 #### Defined in -[escrow.ts:1276](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1276) +[escrow.ts:1281](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1281) *** @@ -1150,7 +1150,7 @@ await escrowClient.setup(escrowAddress, escrowConfig); #### Defined in -[escrow.ts:299](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L299) +[escrow.ts:304](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L304) *** @@ -1212,7 +1212,7 @@ await escrowClient.storeResults('0x62dD51230A30401C455c8398d06F85e4EaB6309f', 'h #### Defined in -[escrow.ts:474](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L474) +[escrow.ts:479](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L479) *** @@ -1271,7 +1271,7 @@ await escrowClient.withdraw( #### Defined in -[escrow.ts:832](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L832) +[escrow.ts:837](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L837) *** @@ -1305,4 +1305,4 @@ Thrown if the network's chainId is not supported #### Defined in -[escrow.ts:156](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L156) +[escrow.ts:161](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L161) diff --git a/docs/sdk/typescript/escrow/classes/EscrowUtils.md b/docs/sdk/typescript/escrow/classes/EscrowUtils.md index 2d852104dc..5fdb6dca3d 100644 --- a/docs/sdk/typescript/escrow/classes/EscrowUtils.md +++ b/docs/sdk/typescript/escrow/classes/EscrowUtils.md @@ -125,7 +125,7 @@ const escrowData = new EscrowUtils.getEscrow(ChainId.POLYGON_AMOY, "0x1234567890 #### Defined in -[escrow.ts:1768](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1768) +[escrow.ts:1773](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1773) *** @@ -239,7 +239,7 @@ const escrowDatas = await EscrowUtils.getEscrows(filters); #### Defined in -[escrow.ts:1650](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1650) +[escrow.ts:1655](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1655) *** @@ -357,4 +357,4 @@ import { ChainId, EscrowUtils, EscrowStatus } from '@human-protocol/sdk'; #### Defined in -[escrow.ts:1855](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1855) +[escrow.ts:1860](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1860) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/DailyEscrowData.md b/docs/sdk/typescript/graphql/types/type-aliases/DailyEscrowData.md index 6863bf63a8..1bee222dcb 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/DailyEscrowData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/DailyEscrowData.md @@ -36,4 +36,4 @@ ## Defined in -[graphql/types.ts:83](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L83) +[graphql/types.ts:83](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L83) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/DailyHMTData.md b/docs/sdk/typescript/graphql/types/type-aliases/DailyHMTData.md index 8e6782b2c5..2e24513369 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/DailyHMTData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/DailyHMTData.md @@ -32,4 +32,4 @@ ## Defined in -[graphql/types.ts:127](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L127) +[graphql/types.ts:127](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L127) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/DailyPaymentData.md b/docs/sdk/typescript/graphql/types/type-aliases/DailyPaymentData.md index dd6247ac12..62188f64ba 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/DailyPaymentData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/DailyPaymentData.md @@ -28,4 +28,4 @@ ## Defined in -[graphql/types.ts:106](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L106) +[graphql/types.ts:106](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L106) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/DailyTaskData.md b/docs/sdk/typescript/graphql/types/type-aliases/DailyTaskData.md index 07f897c946..dd55e33f88 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/DailyTaskData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/DailyTaskData.md @@ -24,4 +24,4 @@ ## Defined in -[graphql/types.ts:148](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L148) +[graphql/types.ts:148](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L148) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/DailyWorkerData.md b/docs/sdk/typescript/graphql/types/type-aliases/DailyWorkerData.md index b4d35dacfb..90200e4136 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/DailyWorkerData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/DailyWorkerData.md @@ -20,4 +20,4 @@ ## Defined in -[graphql/types.ts:97](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L97) +[graphql/types.ts:97](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L97) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/EscrowData.md b/docs/sdk/typescript/graphql/types/type-aliases/EscrowData.md index 3587f6f91f..79fd7ec883 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/EscrowData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/EscrowData.md @@ -88,4 +88,4 @@ ## Defined in -[graphql/types.ts:3](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L3) +[graphql/types.ts:3](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L3) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/EscrowStatistics.md b/docs/sdk/typescript/graphql/types/type-aliases/EscrowStatistics.md index 1183f1d9d4..720304b7f5 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/EscrowStatistics.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/EscrowStatistics.md @@ -20,4 +20,4 @@ ## Defined in -[graphql/types.ts:92](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L92) +[graphql/types.ts:92](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L92) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/EscrowStatisticsData.md b/docs/sdk/typescript/graphql/types/type-aliases/EscrowStatisticsData.md index 6a98db3cf2..ba97638549 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/EscrowStatisticsData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/EscrowStatisticsData.md @@ -52,4 +52,4 @@ ## Defined in -[graphql/types.ts:42](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L42) +[graphql/types.ts:42](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L42) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/EventDayData.md b/docs/sdk/typescript/graphql/types/type-aliases/EventDayData.md index 2517f34fdd..97b39ca723 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/EventDayData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/EventDayData.md @@ -84,4 +84,4 @@ ## Defined in -[graphql/types.ts:55](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L55) +[graphql/types.ts:55](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L55) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/HMTHolder.md b/docs/sdk/typescript/graphql/types/type-aliases/HMTHolder.md index 93039501be..6e48e613f5 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/HMTHolder.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/HMTHolder.md @@ -20,4 +20,4 @@ ## Defined in -[graphql/types.ts:122](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L122) +[graphql/types.ts:122](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L122) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/HMTHolderData.md b/docs/sdk/typescript/graphql/types/type-aliases/HMTHolderData.md index 790bfeeb0d..7f25b4adcb 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/HMTHolderData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/HMTHolderData.md @@ -20,4 +20,4 @@ ## Defined in -[graphql/types.ts:117](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L117) +[graphql/types.ts:117](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L117) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/HMTStatistics.md b/docs/sdk/typescript/graphql/types/type-aliases/HMTStatistics.md index 4a37aac434..33ce898338 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/HMTStatistics.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/HMTStatistics.md @@ -24,4 +24,4 @@ ## Defined in -[graphql/types.ts:135](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L135) +[graphql/types.ts:135](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L135) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/HMTStatisticsData.md b/docs/sdk/typescript/graphql/types/type-aliases/HMTStatisticsData.md index 0c8fced61c..b46e10d969 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/HMTStatisticsData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/HMTStatisticsData.md @@ -36,4 +36,4 @@ ## Defined in -[graphql/types.ts:33](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L33) +[graphql/types.ts:33](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L33) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/IMData.md b/docs/sdk/typescript/graphql/types/type-aliases/IMData.md index d2a4c833f5..b9433eca18 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/IMData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/IMData.md @@ -10,4 +10,4 @@ ## Defined in -[graphql/types.ts:146](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L146) +[graphql/types.ts:146](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L146) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/IMDataEntity.md b/docs/sdk/typescript/graphql/types/type-aliases/IMDataEntity.md index 91ebe0ab78..328d47a8e1 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/IMDataEntity.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/IMDataEntity.md @@ -20,4 +20,4 @@ ## Defined in -[graphql/types.ts:141](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L141) +[graphql/types.ts:141](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L141) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/KVStoreData.md b/docs/sdk/typescript/graphql/types/type-aliases/KVStoreData.md index cd5c59906e..609bef90c1 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/KVStoreData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/KVStoreData.md @@ -36,4 +36,4 @@ ## Defined in -[graphql/types.ts:165](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L165) +[graphql/types.ts:165](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L165) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/PaymentStatistics.md b/docs/sdk/typescript/graphql/types/type-aliases/PaymentStatistics.md index e3032278e0..1f726ff2f9 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/PaymentStatistics.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/PaymentStatistics.md @@ -16,4 +16,4 @@ ## Defined in -[graphql/types.ts:113](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L113) +[graphql/types.ts:113](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L113) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/PayoutData.md b/docs/sdk/typescript/graphql/types/type-aliases/PayoutData.md index 775e48632a..4138004eef 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/PayoutData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/PayoutData.md @@ -32,4 +32,4 @@ ## Defined in -[graphql/types.ts:25](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L25) +[graphql/types.ts:25](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L25) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/RewardAddedEventData.md b/docs/sdk/typescript/graphql/types/type-aliases/RewardAddedEventData.md index 2d4f128bd3..f6da861c19 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/RewardAddedEventData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/RewardAddedEventData.md @@ -28,4 +28,4 @@ ## Defined in -[graphql/types.ts:76](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L76) +[graphql/types.ts:76](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L76) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/StatusEvent.md b/docs/sdk/typescript/graphql/types/type-aliases/StatusEvent.md index b2340f5a0a..b871873bd5 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/StatusEvent.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/StatusEvent.md @@ -28,4 +28,4 @@ ## Defined in -[graphql/types.ts:158](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L158) +[graphql/types.ts:158](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L158) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/TaskStatistics.md b/docs/sdk/typescript/graphql/types/type-aliases/TaskStatistics.md index 38de7f3405..0dcca95e06 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/TaskStatistics.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/TaskStatistics.md @@ -16,4 +16,4 @@ ## Defined in -[graphql/types.ts:154](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L154) +[graphql/types.ts:154](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L154) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/WorkerStatistics.md b/docs/sdk/typescript/graphql/types/type-aliases/WorkerStatistics.md index a7b65e472a..905799afb5 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/WorkerStatistics.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/WorkerStatistics.md @@ -16,4 +16,4 @@ ## Defined in -[graphql/types.ts:102](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L102) +[graphql/types.ts:102](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L102) diff --git a/docs/sdk/typescript/interfaces/interfaces/IEscrowConfig.md b/docs/sdk/typescript/interfaces/interfaces/IEscrowConfig.md index ea88a4b36f..5c9c7dbd44 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IEscrowConfig.md +++ b/docs/sdk/typescript/interfaces/interfaces/IEscrowConfig.md @@ -14,7 +14,7 @@ #### Defined in -[interfaces.ts:86](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L86) +[interfaces.ts:86](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L86) *** @@ -24,7 +24,7 @@ #### Defined in -[interfaces.ts:89](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L89) +[interfaces.ts:89](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L89) *** @@ -34,7 +34,7 @@ #### Defined in -[interfaces.ts:91](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L91) +[interfaces.ts:91](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L91) *** @@ -44,7 +44,7 @@ #### Defined in -[interfaces.ts:90](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L90) +[interfaces.ts:90](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L90) *** @@ -54,7 +54,7 @@ #### Defined in -[interfaces.ts:84](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L84) +[interfaces.ts:84](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L84) *** @@ -64,7 +64,7 @@ #### Defined in -[interfaces.ts:87](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L87) +[interfaces.ts:87](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L87) *** @@ -74,7 +74,7 @@ #### Defined in -[interfaces.ts:85](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L85) +[interfaces.ts:85](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L85) *** @@ -84,4 +84,4 @@ #### Defined in -[interfaces.ts:88](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L88) +[interfaces.ts:88](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L88) diff --git a/docs/sdk/typescript/interfaces/interfaces/IEscrowsFilter.md b/docs/sdk/typescript/interfaces/interfaces/IEscrowsFilter.md index c5e9901e20..7bc0dcd8f8 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IEscrowsFilter.md +++ b/docs/sdk/typescript/interfaces/interfaces/IEscrowsFilter.md @@ -18,7 +18,7 @@ #### Defined in -[interfaces.ts:80](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L80) +[interfaces.ts:80](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L80) *** @@ -28,7 +28,7 @@ #### Defined in -[interfaces.ts:75](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L75) +[interfaces.ts:75](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L75) *** @@ -42,7 +42,7 @@ #### Defined in -[interfaces.ts:157](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L157) +[interfaces.ts:157](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L157) *** @@ -52,7 +52,7 @@ #### Defined in -[interfaces.ts:78](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L78) +[interfaces.ts:78](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L78) *** @@ -62,7 +62,7 @@ #### Defined in -[interfaces.ts:76](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L76) +[interfaces.ts:76](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L76) *** @@ -72,7 +72,7 @@ #### Defined in -[interfaces.ts:72](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L72) +[interfaces.ts:72](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L72) *** @@ -86,7 +86,7 @@ #### Defined in -[interfaces.ts:159](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L159) +[interfaces.ts:159](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L159) *** @@ -96,7 +96,7 @@ #### Defined in -[interfaces.ts:74](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L74) +[interfaces.ts:74](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L74) *** @@ -106,7 +106,7 @@ #### Defined in -[interfaces.ts:73](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L73) +[interfaces.ts:73](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L73) *** @@ -120,7 +120,7 @@ #### Defined in -[interfaces.ts:158](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L158) +[interfaces.ts:158](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L158) *** @@ -130,7 +130,7 @@ #### Defined in -[interfaces.ts:77](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L77) +[interfaces.ts:77](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L77) *** @@ -140,4 +140,4 @@ #### Defined in -[interfaces.ts:79](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L79) +[interfaces.ts:79](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L79) diff --git a/docs/sdk/typescript/interfaces/interfaces/IHMTHoldersParams.md b/docs/sdk/typescript/interfaces/interfaces/IHMTHoldersParams.md index bd3e25373f..d1ddb2de19 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IHMTHoldersParams.md +++ b/docs/sdk/typescript/interfaces/interfaces/IHMTHoldersParams.md @@ -18,7 +18,7 @@ #### Defined in -[interfaces.ts:107](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L107) +[interfaces.ts:107](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L107) *** @@ -32,7 +32,7 @@ #### Defined in -[interfaces.ts:157](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L157) +[interfaces.ts:157](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L157) *** @@ -46,7 +46,7 @@ #### Defined in -[interfaces.ts:159](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L159) +[interfaces.ts:159](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L159) *** @@ -60,4 +60,4 @@ #### Defined in -[interfaces.ts:158](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L158) +[interfaces.ts:158](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L158) diff --git a/docs/sdk/typescript/interfaces/interfaces/IKVStore.md b/docs/sdk/typescript/interfaces/interfaces/IKVStore.md index db6b66f928..e61f6e8db1 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IKVStore.md +++ b/docs/sdk/typescript/interfaces/interfaces/IKVStore.md @@ -14,7 +14,7 @@ #### Defined in -[interfaces.ts:118](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L118) +[interfaces.ts:118](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L118) *** @@ -24,4 +24,4 @@ #### Defined in -[interfaces.ts:119](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L119) +[interfaces.ts:119](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L119) diff --git a/docs/sdk/typescript/interfaces/interfaces/IKeyPair.md b/docs/sdk/typescript/interfaces/interfaces/IKeyPair.md index 63e68f5b57..1bec3a4542 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IKeyPair.md +++ b/docs/sdk/typescript/interfaces/interfaces/IKeyPair.md @@ -14,7 +14,7 @@ #### Defined in -[interfaces.ts:97](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L97) +[interfaces.ts:97](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L97) *** @@ -24,7 +24,7 @@ #### Defined in -[interfaces.ts:95](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L95) +[interfaces.ts:95](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L95) *** @@ -34,7 +34,7 @@ #### Defined in -[interfaces.ts:96](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L96) +[interfaces.ts:96](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L96) *** @@ -44,4 +44,4 @@ #### Defined in -[interfaces.ts:98](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L98) +[interfaces.ts:98](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L98) diff --git a/docs/sdk/typescript/interfaces/interfaces/ILeader.md b/docs/sdk/typescript/interfaces/interfaces/ILeader.md index 9d5b812fa6..0e5a493122 100644 --- a/docs/sdk/typescript/interfaces/interfaces/ILeader.md +++ b/docs/sdk/typescript/interfaces/interfaces/ILeader.md @@ -14,7 +14,7 @@ #### Defined in -[interfaces.ts:12](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L12) +[interfaces.ts:12](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L12) *** @@ -24,7 +24,7 @@ #### Defined in -[interfaces.ts:19](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L19) +[interfaces.ts:19](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L19) *** @@ -34,7 +34,7 @@ #### Defined in -[interfaces.ts:14](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L14) +[interfaces.ts:14](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L14) *** @@ -44,7 +44,7 @@ #### Defined in -[interfaces.ts:17](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L17) +[interfaces.ts:17](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L17) *** @@ -54,7 +54,7 @@ #### Defined in -[interfaces.ts:13](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L13) +[interfaces.ts:13](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L13) *** @@ -64,7 +64,7 @@ #### Defined in -[interfaces.ts:16](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L16) +[interfaces.ts:16](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L16) *** @@ -74,7 +74,7 @@ #### Defined in -[interfaces.ts:31](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L31) +[interfaces.ts:31](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L31) *** @@ -84,7 +84,7 @@ #### Defined in -[interfaces.ts:11](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L11) +[interfaces.ts:11](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L11) *** @@ -94,7 +94,7 @@ #### Defined in -[interfaces.ts:21](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L21) +[interfaces.ts:21](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L21) *** @@ -104,7 +104,7 @@ #### Defined in -[interfaces.ts:10](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L10) +[interfaces.ts:10](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L10) *** @@ -114,7 +114,7 @@ #### Defined in -[interfaces.ts:26](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L26) +[interfaces.ts:26](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L26) *** @@ -124,7 +124,7 @@ #### Defined in -[interfaces.ts:15](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L15) +[interfaces.ts:15](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L15) *** @@ -134,7 +134,7 @@ #### Defined in -[interfaces.ts:30](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L30) +[interfaces.ts:30](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L30) *** @@ -144,7 +144,7 @@ #### Defined in -[interfaces.ts:22](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L22) +[interfaces.ts:22](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L22) *** @@ -154,7 +154,7 @@ #### Defined in -[interfaces.ts:28](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L28) +[interfaces.ts:28](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L28) *** @@ -164,7 +164,7 @@ #### Defined in -[interfaces.ts:27](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L27) +[interfaces.ts:27](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L27) *** @@ -174,7 +174,7 @@ #### Defined in -[interfaces.ts:29](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L29) +[interfaces.ts:29](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L29) *** @@ -184,7 +184,7 @@ #### Defined in -[interfaces.ts:18](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L18) +[interfaces.ts:18](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L18) *** @@ -194,7 +194,7 @@ #### Defined in -[interfaces.ts:20](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L20) +[interfaces.ts:20](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L20) *** @@ -204,7 +204,7 @@ #### Defined in -[interfaces.ts:25](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L25) +[interfaces.ts:25](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L25) *** @@ -214,7 +214,7 @@ #### Defined in -[interfaces.ts:23](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L23) +[interfaces.ts:23](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L23) *** @@ -224,4 +224,4 @@ #### Defined in -[interfaces.ts:24](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L24) +[interfaces.ts:24](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L24) diff --git a/docs/sdk/typescript/interfaces/interfaces/ILeaderSubgraph.md b/docs/sdk/typescript/interfaces/interfaces/ILeaderSubgraph.md index b75c7167da..c26b7dd7ef 100644 --- a/docs/sdk/typescript/interfaces/interfaces/ILeaderSubgraph.md +++ b/docs/sdk/typescript/interfaces/interfaces/ILeaderSubgraph.md @@ -22,7 +22,7 @@ #### Defined in -[interfaces.ts:12](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L12) +[interfaces.ts:12](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L12) *** @@ -36,7 +36,7 @@ #### Defined in -[interfaces.ts:19](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L19) +[interfaces.ts:19](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L19) *** @@ -50,7 +50,7 @@ #### Defined in -[interfaces.ts:14](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L14) +[interfaces.ts:14](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L14) *** @@ -64,7 +64,7 @@ #### Defined in -[interfaces.ts:17](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L17) +[interfaces.ts:17](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L17) *** @@ -78,7 +78,7 @@ #### Defined in -[interfaces.ts:13](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L13) +[interfaces.ts:13](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L13) *** @@ -92,7 +92,7 @@ #### Defined in -[interfaces.ts:16](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L16) +[interfaces.ts:16](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L16) *** @@ -106,7 +106,7 @@ #### Defined in -[interfaces.ts:31](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L31) +[interfaces.ts:31](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L31) *** @@ -120,7 +120,7 @@ #### Defined in -[interfaces.ts:21](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L21) +[interfaces.ts:21](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L21) *** @@ -134,7 +134,7 @@ #### Defined in -[interfaces.ts:10](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L10) +[interfaces.ts:10](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L10) *** @@ -144,7 +144,7 @@ #### Defined in -[interfaces.ts:36](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L36) +[interfaces.ts:36](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L36) *** @@ -158,7 +158,7 @@ #### Defined in -[interfaces.ts:15](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L15) +[interfaces.ts:15](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L15) *** @@ -172,7 +172,7 @@ #### Defined in -[interfaces.ts:30](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L30) +[interfaces.ts:30](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L30) *** @@ -186,7 +186,7 @@ #### Defined in -[interfaces.ts:22](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L22) +[interfaces.ts:22](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L22) *** @@ -200,7 +200,7 @@ #### Defined in -[interfaces.ts:28](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L28) +[interfaces.ts:28](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L28) *** @@ -214,7 +214,7 @@ #### Defined in -[interfaces.ts:27](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L27) +[interfaces.ts:27](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L27) *** @@ -224,7 +224,7 @@ #### Defined in -[interfaces.ts:37](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L37) +[interfaces.ts:37](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L37) *** @@ -238,7 +238,7 @@ #### Defined in -[interfaces.ts:18](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L18) +[interfaces.ts:18](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L18) *** @@ -252,7 +252,7 @@ #### Defined in -[interfaces.ts:20](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L20) +[interfaces.ts:20](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L20) *** @@ -266,7 +266,7 @@ #### Defined in -[interfaces.ts:25](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L25) +[interfaces.ts:25](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L25) *** @@ -280,7 +280,7 @@ #### Defined in -[interfaces.ts:23](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L23) +[interfaces.ts:23](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L23) *** @@ -294,4 +294,4 @@ #### Defined in -[interfaces.ts:24](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L24) +[interfaces.ts:24](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L24) diff --git a/docs/sdk/typescript/interfaces/interfaces/ILeadersFilter.md b/docs/sdk/typescript/interfaces/interfaces/ILeadersFilter.md index 6fe7065ace..8831bc95d0 100644 --- a/docs/sdk/typescript/interfaces/interfaces/ILeadersFilter.md +++ b/docs/sdk/typescript/interfaces/interfaces/ILeadersFilter.md @@ -18,7 +18,7 @@ #### Defined in -[interfaces.ts:41](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L41) +[interfaces.ts:41](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L41) *** @@ -32,7 +32,7 @@ #### Defined in -[interfaces.ts:157](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L157) +[interfaces.ts:157](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L157) *** @@ -42,7 +42,7 @@ #### Defined in -[interfaces.ts:43](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L43) +[interfaces.ts:43](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L43) *** @@ -52,7 +52,7 @@ #### Defined in -[interfaces.ts:44](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L44) +[interfaces.ts:44](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L44) *** @@ -66,7 +66,7 @@ #### Defined in -[interfaces.ts:159](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L159) +[interfaces.ts:159](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L159) *** @@ -76,7 +76,7 @@ #### Defined in -[interfaces.ts:42](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L42) +[interfaces.ts:42](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L42) *** @@ -90,4 +90,4 @@ #### Defined in -[interfaces.ts:158](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L158) +[interfaces.ts:158](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L158) diff --git a/docs/sdk/typescript/interfaces/interfaces/IOperator.md b/docs/sdk/typescript/interfaces/interfaces/IOperator.md index 99424397bb..8f0a2138fe 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IOperator.md +++ b/docs/sdk/typescript/interfaces/interfaces/IOperator.md @@ -14,7 +14,7 @@ #### Defined in -[interfaces.ts:59](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L59) +[interfaces.ts:59](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L59) *** @@ -24,7 +24,7 @@ #### Defined in -[interfaces.ts:62](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L62) +[interfaces.ts:62](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L62) *** @@ -34,7 +34,7 @@ #### Defined in -[interfaces.ts:64](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L64) +[interfaces.ts:64](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L64) *** @@ -44,7 +44,7 @@ #### Defined in -[interfaces.ts:63](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L63) +[interfaces.ts:63](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L63) *** @@ -54,7 +54,7 @@ #### Defined in -[interfaces.ts:60](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L60) +[interfaces.ts:60](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L60) *** @@ -64,4 +64,4 @@ #### Defined in -[interfaces.ts:61](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L61) +[interfaces.ts:61](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L61) diff --git a/docs/sdk/typescript/interfaces/interfaces/IOperatorSubgraph.md b/docs/sdk/typescript/interfaces/interfaces/IOperatorSubgraph.md index a243741df2..95b8787b77 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IOperatorSubgraph.md +++ b/docs/sdk/typescript/interfaces/interfaces/IOperatorSubgraph.md @@ -22,7 +22,7 @@ #### Defined in -[interfaces.ts:59](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L59) +[interfaces.ts:59](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L59) *** @@ -32,7 +32,7 @@ #### Defined in -[interfaces.ts:68](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L68) +[interfaces.ts:68](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L68) *** @@ -46,7 +46,7 @@ #### Defined in -[interfaces.ts:64](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L64) +[interfaces.ts:64](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L64) *** @@ -60,7 +60,7 @@ #### Defined in -[interfaces.ts:63](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L63) +[interfaces.ts:63](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L63) *** @@ -74,7 +74,7 @@ #### Defined in -[interfaces.ts:60](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L60) +[interfaces.ts:60](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L60) *** @@ -88,4 +88,4 @@ #### Defined in -[interfaces.ts:61](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L61) +[interfaces.ts:61](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L61) diff --git a/docs/sdk/typescript/interfaces/interfaces/IPagination.md b/docs/sdk/typescript/interfaces/interfaces/IPagination.md index 05bfb447ad..b86ac64880 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IPagination.md +++ b/docs/sdk/typescript/interfaces/interfaces/IPagination.md @@ -22,7 +22,7 @@ #### Defined in -[interfaces.ts:157](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L157) +[interfaces.ts:157](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L157) *** @@ -32,7 +32,7 @@ #### Defined in -[interfaces.ts:159](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L159) +[interfaces.ts:159](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L159) *** @@ -42,4 +42,4 @@ #### Defined in -[interfaces.ts:158](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L158) +[interfaces.ts:158](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L158) diff --git a/docs/sdk/typescript/interfaces/interfaces/IPayoutFilter.md b/docs/sdk/typescript/interfaces/interfaces/IPayoutFilter.md index ee57224799..a15b6da6ec 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IPayoutFilter.md +++ b/docs/sdk/typescript/interfaces/interfaces/IPayoutFilter.md @@ -14,7 +14,7 @@ #### Defined in -[interfaces.ts:111](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L111) +[interfaces.ts:111](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L111) *** @@ -24,7 +24,7 @@ #### Defined in -[interfaces.ts:113](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L113) +[interfaces.ts:113](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L113) *** @@ -34,7 +34,7 @@ #### Defined in -[interfaces.ts:112](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L112) +[interfaces.ts:112](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L112) *** @@ -44,4 +44,4 @@ #### Defined in -[interfaces.ts:114](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L114) +[interfaces.ts:114](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L114) diff --git a/docs/sdk/typescript/interfaces/interfaces/IReputationNetwork.md b/docs/sdk/typescript/interfaces/interfaces/IReputationNetwork.md index 455a32bd5d..96d7a7c321 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IReputationNetwork.md +++ b/docs/sdk/typescript/interfaces/interfaces/IReputationNetwork.md @@ -14,7 +14,7 @@ #### Defined in -[interfaces.ts:49](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L49) +[interfaces.ts:49](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L49) *** @@ -24,7 +24,7 @@ #### Defined in -[interfaces.ts:48](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L48) +[interfaces.ts:48](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L48) *** @@ -34,4 +34,4 @@ #### Defined in -[interfaces.ts:50](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L50) +[interfaces.ts:50](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L50) diff --git a/docs/sdk/typescript/interfaces/interfaces/IReputationNetworkSubgraph.md b/docs/sdk/typescript/interfaces/interfaces/IReputationNetworkSubgraph.md index 0f0c107df0..5b8bb90174 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IReputationNetworkSubgraph.md +++ b/docs/sdk/typescript/interfaces/interfaces/IReputationNetworkSubgraph.md @@ -22,7 +22,7 @@ #### Defined in -[interfaces.ts:49](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L49) +[interfaces.ts:49](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L49) *** @@ -36,7 +36,7 @@ #### Defined in -[interfaces.ts:48](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L48) +[interfaces.ts:48](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L48) *** @@ -46,4 +46,4 @@ #### Defined in -[interfaces.ts:55](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L55) +[interfaces.ts:55](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L55) diff --git a/docs/sdk/typescript/interfaces/interfaces/IReward.md b/docs/sdk/typescript/interfaces/interfaces/IReward.md index cf372790c4..a4a4433af8 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IReward.md +++ b/docs/sdk/typescript/interfaces/interfaces/IReward.md @@ -14,7 +14,7 @@ #### Defined in -[interfaces.ts:6](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L6) +[interfaces.ts:6](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L6) *** @@ -24,4 +24,4 @@ #### Defined in -[interfaces.ts:5](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L5) +[interfaces.ts:5](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L5) diff --git a/docs/sdk/typescript/interfaces/interfaces/IStatisticsFilter.md b/docs/sdk/typescript/interfaces/interfaces/IStatisticsFilter.md index 3d5214863a..b70dc5b1c1 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IStatisticsFilter.md +++ b/docs/sdk/typescript/interfaces/interfaces/IStatisticsFilter.md @@ -22,7 +22,7 @@ #### Defined in -[interfaces.ts:157](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L157) +[interfaces.ts:157](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L157) *** @@ -32,7 +32,7 @@ #### Defined in -[interfaces.ts:102](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L102) +[interfaces.ts:102](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L102) *** @@ -46,7 +46,7 @@ #### Defined in -[interfaces.ts:159](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L159) +[interfaces.ts:159](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L159) *** @@ -60,7 +60,7 @@ #### Defined in -[interfaces.ts:158](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L158) +[interfaces.ts:158](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L158) *** @@ -70,4 +70,4 @@ #### Defined in -[interfaces.ts:103](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L103) +[interfaces.ts:103](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L103) diff --git a/docs/sdk/typescript/interfaces/interfaces/ITransaction.md b/docs/sdk/typescript/interfaces/interfaces/ITransaction.md index fb40c049e8..a9d9a12827 100644 --- a/docs/sdk/typescript/interfaces/interfaces/ITransaction.md +++ b/docs/sdk/typescript/interfaces/interfaces/ITransaction.md @@ -14,7 +14,7 @@ #### Defined in -[interfaces.ts:133](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L133) +[interfaces.ts:133](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L133) *** @@ -24,7 +24,7 @@ #### Defined in -[interfaces.ts:141](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L141) +[interfaces.ts:141](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L141) *** @@ -34,7 +34,7 @@ #### Defined in -[interfaces.ts:135](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L135) +[interfaces.ts:135](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L135) *** @@ -44,7 +44,7 @@ #### Defined in -[interfaces.ts:143](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L143) +[interfaces.ts:143](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L143) *** @@ -54,7 +54,7 @@ #### Defined in -[interfaces.ts:139](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L139) +[interfaces.ts:139](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L139) *** @@ -64,7 +64,7 @@ #### Defined in -[interfaces.ts:140](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L140) +[interfaces.ts:140](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L140) *** @@ -74,7 +74,7 @@ #### Defined in -[interfaces.ts:137](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L137) +[interfaces.ts:137](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L137) *** @@ -84,7 +84,7 @@ #### Defined in -[interfaces.ts:136](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L136) +[interfaces.ts:136](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L136) *** @@ -94,7 +94,7 @@ #### Defined in -[interfaces.ts:142](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L142) +[interfaces.ts:142](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L142) *** @@ -104,7 +104,7 @@ #### Defined in -[interfaces.ts:134](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L134) +[interfaces.ts:134](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L134) *** @@ -114,4 +114,4 @@ #### Defined in -[interfaces.ts:138](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L138) +[interfaces.ts:138](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L138) diff --git a/docs/sdk/typescript/interfaces/interfaces/ITransactionsFilter.md b/docs/sdk/typescript/interfaces/interfaces/ITransactionsFilter.md index 17a496035f..fd469183a8 100644 --- a/docs/sdk/typescript/interfaces/interfaces/ITransactionsFilter.md +++ b/docs/sdk/typescript/interfaces/interfaces/ITransactionsFilter.md @@ -18,7 +18,7 @@ #### Defined in -[interfaces.ts:147](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L147) +[interfaces.ts:147](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L147) *** @@ -28,7 +28,7 @@ #### Defined in -[interfaces.ts:149](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L149) +[interfaces.ts:149](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L149) *** @@ -38,7 +38,7 @@ #### Defined in -[interfaces.ts:151](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L151) +[interfaces.ts:151](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L151) *** @@ -52,7 +52,7 @@ #### Defined in -[interfaces.ts:157](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L157) +[interfaces.ts:157](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L157) *** @@ -62,7 +62,7 @@ #### Defined in -[interfaces.ts:152](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L152) +[interfaces.ts:152](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L152) *** @@ -76,7 +76,7 @@ #### Defined in -[interfaces.ts:159](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L159) +[interfaces.ts:159](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L159) *** @@ -90,7 +90,7 @@ #### Defined in -[interfaces.ts:158](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L158) +[interfaces.ts:158](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L158) *** @@ -100,7 +100,7 @@ #### Defined in -[interfaces.ts:148](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L148) +[interfaces.ts:148](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L148) *** @@ -110,7 +110,7 @@ #### Defined in -[interfaces.ts:150](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L150) +[interfaces.ts:150](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L150) *** @@ -120,4 +120,4 @@ #### Defined in -[interfaces.ts:153](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L153) +[interfaces.ts:153](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L153) diff --git a/docs/sdk/typescript/interfaces/interfaces/InternalTransaction.md b/docs/sdk/typescript/interfaces/interfaces/InternalTransaction.md index d923973e8d..83cb9b2491 100644 --- a/docs/sdk/typescript/interfaces/interfaces/InternalTransaction.md +++ b/docs/sdk/typescript/interfaces/interfaces/InternalTransaction.md @@ -14,7 +14,7 @@ #### Defined in -[interfaces.ts:128](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L128) +[interfaces.ts:128](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L128) *** @@ -24,7 +24,7 @@ #### Defined in -[interfaces.ts:123](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L123) +[interfaces.ts:123](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L123) *** @@ -34,7 +34,7 @@ #### Defined in -[interfaces.ts:126](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L126) +[interfaces.ts:126](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L126) *** @@ -44,7 +44,7 @@ #### Defined in -[interfaces.ts:127](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L127) +[interfaces.ts:127](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L127) *** @@ -54,7 +54,7 @@ #### Defined in -[interfaces.ts:124](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L124) +[interfaces.ts:124](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L124) *** @@ -64,7 +64,7 @@ #### Defined in -[interfaces.ts:129](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L129) +[interfaces.ts:129](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L129) *** @@ -74,4 +74,4 @@ #### Defined in -[interfaces.ts:125](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L125) +[interfaces.ts:125](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L125) diff --git a/docs/sdk/typescript/interfaces/interfaces/StakerInfo.md b/docs/sdk/typescript/interfaces/interfaces/StakerInfo.md index 5b50eee97a..a8c1d62a94 100644 --- a/docs/sdk/typescript/interfaces/interfaces/StakerInfo.md +++ b/docs/sdk/typescript/interfaces/interfaces/StakerInfo.md @@ -14,7 +14,7 @@ #### Defined in -[interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) +[interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) *** @@ -24,7 +24,7 @@ #### Defined in -[interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) +[interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) *** @@ -34,7 +34,7 @@ #### Defined in -[interfaces.ts:163](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L163) +[interfaces.ts:163](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L163) *** @@ -44,4 +44,4 @@ #### Defined in -[interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) +[interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) diff --git a/docs/sdk/typescript/kvstore/classes/KVStoreClient.md b/docs/sdk/typescript/kvstore/classes/KVStoreClient.md index 060c23824f..c6cfd5ffaf 100644 --- a/docs/sdk/typescript/kvstore/classes/KVStoreClient.md +++ b/docs/sdk/typescript/kvstore/classes/KVStoreClient.md @@ -110,7 +110,7 @@ The network information required to connect to the KVStore contract #### Defined in -[kvstore.ts:108](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L108) +[kvstore.ts:108](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L108) ## Properties @@ -124,7 +124,7 @@ The network information required to connect to the KVStore contract #### Defined in -[base.ts:12](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12) +[base.ts:12](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12) *** @@ -138,7 +138,7 @@ The network information required to connect to the KVStore contract #### Defined in -[base.ts:11](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L11) +[base.ts:11](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L11) ## Methods @@ -194,7 +194,7 @@ await kvstoreClient.set('Role', 'RecordingOracle'); #### Defined in -[kvstore.ts:171](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L171) +[kvstore.ts:171](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L171) *** @@ -252,7 +252,7 @@ await kvstoreClient.setBulk(keys, values); #### Defined in -[kvstore.ts:214](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L214) +[kvstore.ts:214](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L214) *** @@ -307,7 +307,7 @@ await kvstoreClient.setFileUrlAndHash('linkedin.com/example', 'linkedin_url'); #### Defined in -[kvstore.ts:257](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L257) +[kvstore.ts:257](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L257) *** @@ -341,4 +341,4 @@ The Runner object to interact with the Ethereum network #### Defined in -[kvstore.ts:126](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L126) +[kvstore.ts:126](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L126) diff --git a/docs/sdk/typescript/kvstore/classes/KVStoreUtils.md b/docs/sdk/typescript/kvstore/classes/KVStoreUtils.md index e53deea390..cf03ded001 100644 --- a/docs/sdk/typescript/kvstore/classes/KVStoreUtils.md +++ b/docs/sdk/typescript/kvstore/classes/KVStoreUtils.md @@ -108,7 +108,7 @@ console.log(value); #### Defined in -[kvstore.ts:389](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L389) +[kvstore.ts:389](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L389) *** @@ -158,7 +158,7 @@ console.log(url); #### Defined in -[kvstore.ts:436](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L436) +[kvstore.ts:436](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L436) *** @@ -207,7 +207,7 @@ console.log(kvStoreData); #### Defined in -[kvstore.ts:337](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L337) +[kvstore.ts:337](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L337) *** @@ -251,4 +251,4 @@ console.log(publicKey); #### Defined in -[kvstore.ts:496](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L496) +[kvstore.ts:496](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L496) diff --git a/docs/sdk/typescript/operator/classes/OperatorUtils.md b/docs/sdk/typescript/operator/classes/OperatorUtils.md index 4dbbc249d5..ecffc2025a 100644 --- a/docs/sdk/typescript/operator/classes/OperatorUtils.md +++ b/docs/sdk/typescript/operator/classes/OperatorUtils.md @@ -54,7 +54,7 @@ const leader = await OperatorUtils.getLeader(ChainId.POLYGON_AMOY, '0x62dD51230A #### Defined in -[operator.ts:44](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/operator.ts#L44) +[operator.ts:44](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/operator.ts#L44) *** @@ -91,7 +91,7 @@ const leaders = await OperatorUtils.getLeaders(filter); #### Defined in -[operator.ts:107](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/operator.ts#L107) +[operator.ts:107](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/operator.ts#L107) *** @@ -137,7 +137,7 @@ const operators = await OperatorUtils.getReputationNetworkOperators(ChainId.POLY #### Defined in -[operator.ts:186](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/operator.ts#L186) +[operator.ts:186](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/operator.ts#L186) *** @@ -177,4 +177,4 @@ const rewards = await OperatorUtils.getRewards(ChainId.POLYGON_AMOY, '0x62dD5123 #### Defined in -[operator.ts:236](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/operator.ts#L236) +[operator.ts:236](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/operator.ts#L236) diff --git a/docs/sdk/typescript/staking/classes/StakingClient.md b/docs/sdk/typescript/staking/classes/StakingClient.md index 5ca5d949a7..4cb377bb88 100644 --- a/docs/sdk/typescript/staking/classes/StakingClient.md +++ b/docs/sdk/typescript/staking/classes/StakingClient.md @@ -110,7 +110,7 @@ The network information required to connect to the Staking contract #### Defined in -[staking.ts:108](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L108) +[staking.ts:108](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L108) ## Properties @@ -120,7 +120,7 @@ The network information required to connect to the Staking contract #### Defined in -[staking.ts:100](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L100) +[staking.ts:100](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L100) *** @@ -134,7 +134,7 @@ The network information required to connect to the Staking contract #### Defined in -[base.ts:12](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12) +[base.ts:12](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12) *** @@ -148,7 +148,7 @@ The network information required to connect to the Staking contract #### Defined in -[base.ts:11](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L11) +[base.ts:11](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L11) *** @@ -158,7 +158,7 @@ The network information required to connect to the Staking contract #### Defined in -[staking.ts:99](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L99) +[staking.ts:99](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L99) *** @@ -168,7 +168,7 @@ The network information required to connect to the Staking contract #### Defined in -[staking.ts:98](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L98) +[staking.ts:98](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L98) ## Methods @@ -217,7 +217,7 @@ await stakingClient.approveStake(amount); #### Defined in -[staking.ts:193](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L193) +[staking.ts:193](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L193) *** @@ -255,7 +255,7 @@ console.log(stakingInfo.tokensStaked); #### Defined in -[staking.ts:435](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L435) +[staking.ts:435](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L435) *** @@ -322,7 +322,7 @@ await stakingClient.slash('0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266', '0xf39Fd #### Defined in -[staking.ts:373](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L373) +[staking.ts:373](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L373) *** @@ -374,7 +374,7 @@ await stakingClient.stake(amount); #### Defined in -[staking.ts:247](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L247) +[staking.ts:247](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L247) *** @@ -425,7 +425,7 @@ await stakingClient.unstake(amount); #### Defined in -[staking.ts:291](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L291) +[staking.ts:291](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L291) *** @@ -469,7 +469,7 @@ await stakingClient.withdraw(); #### Defined in -[staking.ts:336](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L336) +[staking.ts:336](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L336) *** @@ -503,4 +503,4 @@ The Runner object to interact with the Ethereum network #### Defined in -[staking.ts:136](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L136) +[staking.ts:136](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L136) diff --git a/docs/sdk/typescript/statistics/classes/StatisticsClient.md b/docs/sdk/typescript/statistics/classes/StatisticsClient.md index 137738ee0b..048b4e33bf 100644 --- a/docs/sdk/typescript/statistics/classes/StatisticsClient.md +++ b/docs/sdk/typescript/statistics/classes/StatisticsClient.md @@ -59,7 +59,7 @@ The network information required to connect to the Statistics contract #### Defined in -[statistics.ts:67](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L67) +[statistics.ts:67](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L67) ## Properties @@ -69,7 +69,7 @@ The network information required to connect to the Statistics contract #### Defined in -[statistics.ts:59](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L59) +[statistics.ts:59](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L59) *** @@ -79,7 +79,7 @@ The network information required to connect to the Statistics contract #### Defined in -[statistics.ts:60](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L60) +[statistics.ts:60](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L60) ## Methods @@ -147,7 +147,7 @@ const escrowStatisticsApril = await statisticsClient.getEscrowStatistics({ #### Defined in -[statistics.ts:120](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L120) +[statistics.ts:120](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L120) *** @@ -214,7 +214,7 @@ console.log('HMT statistics from 5/8 - 6/8:', hmtStatisticsRange); #### Defined in -[statistics.ts:478](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L478) +[statistics.ts:478](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L478) *** @@ -259,7 +259,7 @@ console.log('HMT holders:', hmtHolders.map((h) => ({ #### Defined in -[statistics.ts:407](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L407) +[statistics.ts:407](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L407) *** @@ -300,7 +300,7 @@ console.log('HMT statistics:', { #### Defined in -[statistics.ts:364](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L364) +[statistics.ts:364](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L364) *** @@ -386,7 +386,7 @@ console.log( #### Defined in -[statistics.ts:300](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L300) +[statistics.ts:300](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L300) *** @@ -449,4 +449,4 @@ const workerStatisticsApril = await statisticsClient.getWorkerStatistics({ #### Defined in -[statistics.ts:204](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L204) +[statistics.ts:204](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L204) diff --git a/docs/sdk/typescript/storage/classes/StorageClient.md b/docs/sdk/typescript/storage/classes/StorageClient.md index 351a9b5ed5..f726bb772d 100644 --- a/docs/sdk/typescript/storage/classes/StorageClient.md +++ b/docs/sdk/typescript/storage/classes/StorageClient.md @@ -81,7 +81,7 @@ Optional. Cloud storage access data. If credentials are not provided - use anony #### Defined in -[storage.ts:73](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L73) +[storage.ts:73](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L73) ## Methods @@ -127,7 +127,7 @@ const exists = await storageClient.bucketExists('bucket-name'); #### Defined in -[storage.ts:262](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L262) +[storage.ts:262](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L262) *** @@ -177,7 +177,7 @@ const files = await storageClient.downloadFiles(keys, 'bucket-name'); #### Defined in -[storage.ts:112](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L112) +[storage.ts:112](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L112) *** @@ -223,7 +223,7 @@ const fileNames = await storageClient.listObjects('bucket-name'); #### Defined in -[storage.ts:292](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L292) +[storage.ts:292](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L292) *** @@ -278,7 +278,7 @@ const uploadedFiles = await storageClient.uploadFiles(files, 'bucket-name'); #### Defined in -[storage.ts:198](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L198) +[storage.ts:198](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L198) *** @@ -312,4 +312,4 @@ const file = await StorageClient.downloadFileFromUrl('http://localhost/file.json #### Defined in -[storage.ts:146](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L146) +[storage.ts:146](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L146) diff --git a/docs/sdk/typescript/transaction/classes/TransactionUtils.md b/docs/sdk/typescript/transaction/classes/TransactionUtils.md index 7b9069e563..1663b68b19 100644 --- a/docs/sdk/typescript/transaction/classes/TransactionUtils.md +++ b/docs/sdk/typescript/transaction/classes/TransactionUtils.md @@ -54,7 +54,7 @@ const transaction = await TransactionUtils.getTransaction(ChainId.POLYGON, '0x62 #### Defined in -[transaction.ts:34](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/transaction.ts#L34) +[transaction.ts:34](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/transaction.ts#L34) *** @@ -127,4 +127,4 @@ const transactions = await TransactionUtils.getTransactions(filter); #### Defined in -[transaction.ts:109](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/transaction.ts#L109) +[transaction.ts:109](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/transaction.ts#L109) diff --git a/docs/sdk/typescript/types/enumerations/EscrowStatus.md b/docs/sdk/typescript/types/enumerations/EscrowStatus.md index 055e93321c..6ce3379426 100644 --- a/docs/sdk/typescript/types/enumerations/EscrowStatus.md +++ b/docs/sdk/typescript/types/enumerations/EscrowStatus.md @@ -18,7 +18,7 @@ Escrow is cancelled. #### Defined in -[types.ts:32](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L32) +[types.ts:32](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L32) *** @@ -30,7 +30,7 @@ Escrow is finished. #### Defined in -[types.ts:28](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L28) +[types.ts:28](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L28) *** @@ -42,7 +42,7 @@ Escrow is launched. #### Defined in -[types.ts:12](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L12) +[types.ts:12](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L12) *** @@ -54,7 +54,7 @@ Escrow is fully paid. #### Defined in -[types.ts:24](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L24) +[types.ts:24](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L24) *** @@ -66,7 +66,7 @@ Escrow is partially paid out. #### Defined in -[types.ts:20](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L20) +[types.ts:20](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L20) *** @@ -78,4 +78,4 @@ Escrow is funded, and waiting for the results to be submitted. #### Defined in -[types.ts:16](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L16) +[types.ts:16](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L16) diff --git a/docs/sdk/typescript/types/type-aliases/EscrowCancel.md b/docs/sdk/typescript/types/type-aliases/EscrowCancel.md index 2c7f364fa8..679a257da6 100644 --- a/docs/sdk/typescript/types/type-aliases/EscrowCancel.md +++ b/docs/sdk/typescript/types/type-aliases/EscrowCancel.md @@ -26,4 +26,4 @@ The hash of the transaction associated with the escrow cancellation. ## Defined in -[types.ts:145](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L145) +[types.ts:145](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L145) diff --git a/docs/sdk/typescript/types/type-aliases/EscrowWithdraw.md b/docs/sdk/typescript/types/type-aliases/EscrowWithdraw.md index 4c0cf0f8e9..c64abc0b3e 100644 --- a/docs/sdk/typescript/types/type-aliases/EscrowWithdraw.md +++ b/docs/sdk/typescript/types/type-aliases/EscrowWithdraw.md @@ -32,4 +32,4 @@ The hash of the transaction associated with the escrow withdrawal. ## Defined in -[types.ts:159](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L159) +[types.ts:159](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L159) diff --git a/docs/sdk/typescript/types/type-aliases/NetworkData.md b/docs/sdk/typescript/types/type-aliases/NetworkData.md index 9561a9c2f7..3cbac50b7f 100644 --- a/docs/sdk/typescript/types/type-aliases/NetworkData.md +++ b/docs/sdk/typescript/types/type-aliases/NetworkData.md @@ -80,4 +80,4 @@ Network title ## Defined in -[types.ts:95](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L95) +[types.ts:95](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L95) diff --git a/docs/sdk/typescript/types/type-aliases/StorageCredentials.md b/docs/sdk/typescript/types/type-aliases/StorageCredentials.md index f5e299a268..a38e4fa260 100644 --- a/docs/sdk/typescript/types/type-aliases/StorageCredentials.md +++ b/docs/sdk/typescript/types/type-aliases/StorageCredentials.md @@ -30,4 +30,4 @@ StorageClient is deprecated. Use Minio.Client directly. ## Defined in -[types.ts:40](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L40) +[types.ts:40](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L40) diff --git a/docs/sdk/typescript/types/type-aliases/StorageParams.md b/docs/sdk/typescript/types/type-aliases/StorageParams.md index ba6e11413e..d7f39bf639 100644 --- a/docs/sdk/typescript/types/type-aliases/StorageParams.md +++ b/docs/sdk/typescript/types/type-aliases/StorageParams.md @@ -40,4 +40,4 @@ StorageClient is deprecated. Use Minio.Client directly. ## Defined in -[types.ts:54](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L54) +[types.ts:54](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L54) diff --git a/docs/sdk/typescript/types/type-aliases/TransactionLikeWithNonce.md b/docs/sdk/typescript/types/type-aliases/TransactionLikeWithNonce.md index cb594d9ca8..99d8015136 100644 --- a/docs/sdk/typescript/types/type-aliases/TransactionLikeWithNonce.md +++ b/docs/sdk/typescript/types/type-aliases/TransactionLikeWithNonce.md @@ -16,4 +16,4 @@ ## Defined in -[types.ts:174](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L174) +[types.ts:174](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L174) diff --git a/docs/sdk/typescript/types/type-aliases/UploadFile.md b/docs/sdk/typescript/types/type-aliases/UploadFile.md index d1a8d0f74e..802fc11ec0 100644 --- a/docs/sdk/typescript/types/type-aliases/UploadFile.md +++ b/docs/sdk/typescript/types/type-aliases/UploadFile.md @@ -32,4 +32,4 @@ Uploaded object URL ## Defined in -[types.ts:77](https://github.com/humanprotocol/human-protocol/blob/5cc1fc18f66f3a8dae9736516ee7c87001f230bc/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L77) +[types.ts:77](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L77) diff --git a/packages/apps/fortune/exchange-oracle/server/ENV.md b/packages/apps/fortune/exchange-oracle/server/ENV.md index 5587f3f2b4..3a718a5cfc 100644 --- a/packages/apps/fortune/exchange-oracle/server/ENV.md +++ b/packages/apps/fortune/exchange-oracle/server/ENV.md @@ -39,12 +39,6 @@ RPC_URL_BSC_MAINNET= ### The RPC URL for the BSC Testnet network. RPC_URL_BSC_TESTNET= -### The RPC URL for the Moonbeam network. -RPC_URL_MOONBEAM= - -### The RPC URL for the XLayer network. -RPC_URL_XLAYER= - ### The RPC URL for the Localhost network. RPC_URL_LOCALHOST= diff --git a/packages/apps/fortune/recording-oracle/ENV.md b/packages/apps/fortune/recording-oracle/ENV.md index 75fb1b9f25..705df340a2 100644 --- a/packages/apps/fortune/recording-oracle/ENV.md +++ b/packages/apps/fortune/recording-oracle/ENV.md @@ -15,9 +15,6 @@ RPC_URL_BSC_MAINNET= ### The RPC URL for the BSC Testnet network. RPC_URL_BSC_TESTNET= -### The RPC URL for the Moonbeam network. -RPC_URL_MOONBEAM= - ### The RPC URL for the Localhost network. RPC_URL_LOCALHOST= diff --git a/packages/apps/human-app/server/ENV.md b/packages/apps/human-app/server/ENV.md index f96c11e2ae..d6a4dbc63a 100644 --- a/packages/apps/human-app/server/ENV.md +++ b/packages/apps/human-app/server/ENV.md @@ -7,79 +7,91 @@ HOST="localhost" PORT="5000" ### The URL of the reputation oracle service. Required -REPUTATION_ORACLE_URL= +GIT_HASH= ### The address of the reputation oracle service. Required -REPUTATION_ORACLE_ADDRESS= +REPUTATION_ORACLE_URL= ### Flag indicating if Axios request logging is enabled. Default: false -IS_AXIOS_REQUEST_LOGGING_ENABLED="false" +REPUTATION_ORACLE_ADDRESS="false" ### The allowed host for the application. Required -ALLOWED_HOST= +IS_AXIOS_REQUEST_LOGGING_ENABLED= ### The port number for the Redis cache server. Required -REDIS_PORT= +ALLOWED_HOST= ### The hostname or IP address of the Redis cache server. Required +REDIS_PORT= + +### The DB number of the Redis cache server REDIS_HOST= ### The cache time-to-live (TTL) for oracle statistics. Default: 12 hours -CACHE_TTL_ORACLE_STATS="12 hours" +REDIS_DB="12 hours" ### The cache time-to-live (TTL) for user statistics. Default: 15 minutes -CACHE_TTL_USER_STATS="15 minutes" +CACHE_TTL_ORACLE_STATS="15 minutes" ### The cache time-to-live (TTL) for daily HMT spent data. Default: 24 hours -CACHE_TTL_DAILY_HMT_SPENT="24 hours" +CACHE_TTL_USER_STATS="24 hours" ### The cache time-to-live (TTL) for hCaptcha user statistics. Default: 12 hours -CACHE_TTL_HCAPTCHA_USER_STATS="12 hours" +CACHE_TTL_DAILY_HMT_SPENT="12 hours" ### The cache time-to-live (TTL) for oracle discovery. Default: 24 hours -CACHE_TTL_ORACLE_DISCOVERY="24 hours" +CACHE_TTL_HCAPTCHA_USER_STATS="24 hours" + +### Number of days without updates assignments data is retained. Default: 45 days +CACHE_TTL_ORACLE_DISCOVERY="45 days" ### The RPC URL used for communication. Required -RPC_URL= +JOB_ASSIGNMENTS_DATA_RETENTION_DAYS= ### Flag indicating if CORS is enabled. Default: false -CORS_ENABLED="false" +RPC_URL="false" ### The allowed origin for CORS requests. Default: 'http://localhost:5173' -CORS_ALLOWED_ORIGIN="http://localhost:5173" +CORS_ENABLED="http://localhost:5173" ### The allowed headers for CORS requests. Default: 'Content-Type,Authorization,X-Requested-With,Accept,Origin' -CORS_ALLOWED_HEADERS="Content-Type,Authorization,X-Requested-With,Accept,Origin" +CORS_ALLOWED_ORIGIN="Content-Type,Authorization,X-Requested-With,Accept,Origin" ### The cache time-to-live (TTL) for exchange oracle URLs. Default: 24 hours +CORS_ALLOWED_HEADERS="24 hours" + +### The cache time-to-live (TTL) for job types. Default: 24 hours CACHE_TTL_EXCHANGE_ORACLE_URL="24 hours" ### The cache time-to-live (TTL) for exchange oracle registration needed. Default: 24 hours -CACHE_TTL_EXCHANGE_ORACLE_REGISTRATION_NEEDED="24 hours" +CACHE_TTL_JOB_TYPES="24 hours" ### The API URL for hCaptcha labeling statistics. Required -HCAPTCHA_LABELING_STATS_API_URL= +CACHE_TTL_EXCHANGE_ORACLE_REGISTRATION_NEEDED= ### The API URL for hCaptcha labeling verification. Required -HCAPTCHA_LABELING_VERIFY_API_URL= +HCAPTCHA_LABELING_STATS_API_URL= ### The API key for hCaptcha labeling. Required -HCAPTCHA_LABELING_API_KEY= +HCAPTCHA_LABELING_VERIFY_API_URL= ### The list of enabled chain IDs. Required -CHAIN_IDS_ENABLED= +HCAPTCHA_LABELING_API_KEY= ### Flag indicating if the cache should be restarted. Default: false -IS_CACHE_TO_RESTART="false" +CHAIN_IDS_ENABLED="false" ### The email address for the human app. Required -HUMAN_APP_EMAIL= +IS_CACHE_TO_RESTART= ### The password for the human app. Required -HUMAN_APP_PASSWORD= +HUMAN_APP_EMAIL= + +### The maximum number of iteration to skip. Default: 5 +HUMAN_APP_PASSWORD="5" -### The maximum number of retries for requests. Default: 5 -MAX_REQUEST_RETRIES="5" +### Feature flag for job discovery +MAX_EXECUTIONS_TO_SKIP= ### The email address used for end-to-end (E2E) testing. Default: empty string E2E_TESTING_EMAIL_ADDRESS="empty string" diff --git a/packages/apps/job-launcher/server/ENV.md b/packages/apps/job-launcher/server/ENV.md index ee63793a32..276c9af3db 100644 --- a/packages/apps/job-launcher/server/ENV.md +++ b/packages/apps/job-launcher/server/ENV.md @@ -84,15 +84,6 @@ RPC_URL_BSC_MAINNET= ### The RPC URL for the BSC Testnet network. RPC_URL_BSC_TESTNET= -### The RPC URL for the Moonbeam network. -RPC_URL_MOONBEAM= - -### The RPC URL for the XLayer Testnet network. -RPC_URL_XLAYER_TESTNET= - -### The RPC URL for the XLayer network. -RPC_URL_XLAYER= - ### The RPC URL for the Localhost network. RPC_URL_LOCALHOST= @@ -159,6 +150,9 @@ COINMARKETCAP_API_KEY= ### The API key for accessing CoinGecko data. COINGECKO_API_KEY= +### The amount to charge abusive users. +ABUSE_AMOUNT= + ### The secret key used for authenticating requests to the Stripe API. Required STRIPE_SECRET_KEY= diff --git a/packages/apps/reputation-oracle/server/ENV.md b/packages/apps/reputation-oracle/server/ENV.md index 6c848d9932..df141c4294 100644 --- a/packages/apps/reputation-oracle/server/ENV.md +++ b/packages/apps/reputation-oracle/server/ENV.md @@ -18,6 +18,9 @@ VERIFY_EMAIL_TOKEN_EXPIRES_IN="86400" ### The expiration time (in seconds) for forgot password tokens. Default: 86400 FORGOT_PASSWORD_TOKEN_EXPIRES_IN="86400" +### Human APP email. +HUMAN_APP_EMAIL= + ### The URL for connecting to the PostgreSQL database. POSTGRES_URL= @@ -84,15 +87,6 @@ RPC_URL_BSC_MAINNET= ### The RPC URL for the BSC Testnet network. RPC_URL_BSC_TESTNET= -### The RPC URL for the Moonbeam network. -RPC_URL_MOONBEAM= - -### The RPC URL for the XLayer Testnet network. -RPC_URL_XLAYER_TESTNET= - -### The RPC URL for the XLayer network. -RPC_URL_XLAYER= - ### The RPC URL for the Localhost network. RPC_URL_LOCALHOST= diff --git a/packages/sdk/python/human-protocol-sdk/docs/conf.py b/packages/sdk/python/human-protocol-sdk/docs/conf.py index 2cd74782ba..78bde18085 100644 --- a/packages/sdk/python/human-protocol-sdk/docs/conf.py +++ b/packages/sdk/python/human-protocol-sdk/docs/conf.py @@ -23,8 +23,8 @@ def setup(app): # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information project = "human_protocol_sdk" -copyright = "2023, Author" -author = "Author" +copyright = "2025, HUMAN Protocol" +author = "HUMAN Protocol" # -- General configuration --------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration diff --git a/packages/sdk/python/human-protocol-sdk/docs/human_protocol_sdk.rst b/packages/sdk/python/human-protocol-sdk/docs/human_protocol_sdk.rst index dcdedf3d91..1e3d3d47bb 100644 --- a/packages/sdk/python/human-protocol-sdk/docs/human_protocol_sdk.rst +++ b/packages/sdk/python/human-protocol-sdk/docs/human_protocol_sdk.rst @@ -16,7 +16,6 @@ Subpackages human_protocol_sdk.encryption human_protocol_sdk.escrow human_protocol_sdk.kvstore - human_protocol_sdk.kvstore.kvstore_utils human_protocol_sdk.operator human_protocol_sdk.staking human_protocol_sdk.statistics diff --git a/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/constants.py b/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/constants.py index 802ec9e1a5..9febaee002 100644 --- a/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/constants.py +++ b/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/constants.py @@ -173,18 +173,18 @@ class Role(Enum): class KVStoreKeys(Enum): """Enum for KVStore keys""" - role = "role" + category = "category" fee = "fee" + job_types = "job_types" + name = "name" public_key = "public_key" public_key_hash = "public_key_hash" - webhook_url = "webhook_url" - website = "website" - url = "url" - job_types = "job_types" - registration_needed = "registration_needed" registration_instructions = "registration_instructions" - name = "name" - category = "category" + registration_needed = "registration_needed" + role = "role" + url = "url" + website = "website" + webhook_url = "webhook_url" ESCROW_BULK_PAYOUT_MAX_ITEMS = 99