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/.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 diff --git a/.github/workflows/cd-subgraph.yaml b/.github/workflows/cd-subgraph.yaml index 8e1be41306..d8858b1e56 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: @@ -15,41 +18,59 @@ 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@v4 + 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 - - run: yarn global add @graphprotocol/graph-cli + 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/.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/.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/docs/sdk/python/human_protocol_sdk.constants.md b/docs/sdk/python/human_protocol_sdk.constants.md index 8184f41422..d60606cca3 100644 --- a/docs/sdk/python/human_protocol_sdk.constants.md +++ b/docs/sdk/python/human_protocol_sdk.constants.md @@ -6,54 +6,36 @@ 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` Enum for KVStore keys +#### category *= 'category'* + #### 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'* @@ -64,6 +46,18 @@ Enum for KVStore keys #### webhook_url *= 'webhook_url'* +#### website *= 'website'* + +### *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` @@ -88,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 6e9d0c4f79..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) @@ -129,33 +119,28 @@ * [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) * [`KVStoreKeys.job_types`](human_protocol_sdk.constants.md#human_protocol_sdk.constants.KVStoreKeys.job_types) * [`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) * [`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) @@ -164,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/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..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) @@ -51,6 +46,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..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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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 9eb33287cc..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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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 639f450450..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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/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..b24542d6e3 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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L14) +[enums.ts:2](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L7) +[enums.ts:5](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L5) +[enums.ts:6](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L19) +[enums.ts:9](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L12) +[enums.ts:3](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L9) +[enums.ts:7](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L4) +[enums.ts:8](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L18) +[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 new file mode 100644 index 0000000000..e5c2652381 --- /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:18](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L18) + +*** + +### MARKET\_MAKING + +> **MARKET\_MAKING**: `"market_making"` + +#### Defined in + +[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 bf0533ffbf..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:24](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L24) +[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:25](https://github.com/humanprotocol/human-protocol/blob/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L25) +[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 68e862ef62..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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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 c61c8d723a..5fdb6dca3d 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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1784) +[escrow.ts:1773](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1773) *** @@ -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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1658) +[escrow.ts:1655](https://github.com/humanprotocol/human-protocol/blob/000ef2f7891c6788228277729f8de9c3a0456a70/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1655) *** @@ -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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1882) +[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 6939c17073..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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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 631a1136f5..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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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 c00cd71a39..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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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 6dad88e163..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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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 9db6c7728c..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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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 5016e99053..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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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 6f053e052a..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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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 2217dcc069..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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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 75aebe52f0..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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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 705bf707dd..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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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 e556d5c3ac..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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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 e9bf2db822..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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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 5f6cd95556..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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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 55e5b90f48..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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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 6a2393c1d7..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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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 0766b090c1..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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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 4537a6a134..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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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 23eafd31c1..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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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 d647adb306..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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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 062aa352a2..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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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 519f786bbc..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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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 17b8ea44cd..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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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 bbba2181bd..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: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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/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 953c6c0683..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: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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/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 765f1fbcb4..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: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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/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 095f7bf67a..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: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/000ef2f7891c6788228277729f8de9c3a0456a70/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/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 4617446a23..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: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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/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 d6294e29e9..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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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,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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/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 b63dc1076a..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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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,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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/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 03b77ee114..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: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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/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 14d310da5f..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: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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/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 f5737a7811..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: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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/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 67a0229bfa..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: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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/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 8eaf8bf075..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: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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/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 3f904e9eb0..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: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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/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 623849a7b9..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: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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/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 5e2cc1f0f9..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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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 df1bd7a969..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: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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/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 4f3900f362..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: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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/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 c8bc1caaa3..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: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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/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 4232571832..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: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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/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 ca9eef85bf..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: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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/000ef2f7891c6788228277729f8de9c3a0456a70/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/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 99bebf359f..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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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 282ac129c2..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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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 56db12b9ee..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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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 d3d4fa0724..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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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 44461b4bd6..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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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 86d8855a7d..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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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 9e9693a3df..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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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 216b18273a..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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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 34a40f9a8b..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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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 71dc329883..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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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 83a5bc2e19..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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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 0161f59062..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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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 c900a7461e..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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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 0118484b2d..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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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 2e61465a0e..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/b190dc1831c2c96fe3d44fd63e915e54011e1ec8/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/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 90% rename from packages/apps/dashboard/ui-2024/package.json rename to packages/apps/dashboard/client/package.json index 0686f5d3b6..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", @@ -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", @@ -26,12 +26,12 @@ "axios": "^1.7.2", "clsx": "^2.1.1", "dayjs": "^1.11.11", - "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", + "sass": "^1.83.4", "simplebar-react": "^3.2.5", "styled-components": "^6.1.11", "swiper": "^11.1.3", @@ -49,7 +49,7 @@ "eslint-plugin-react-hooks": "^5.1.0", "eslint-plugin-react-refresh": "^0.4.11", "prettier": "3.4.2", - "sass": "^1.78.0", + "sass": "^1.83.4", "stylelint-prettier": "^5.0.0", "typescript": "^5.2.2", "vite": "^5.4.7", 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/client/src/features/Leaderboard/components/CategoryCell.tsx b/packages/apps/dashboard/client/src/features/Leaderboard/components/CategoryCell.tsx new file mode 100644 index 0000000000..36d3f78d17 --- /dev/null +++ b/packages/apps/dashboard/client/src/features/Leaderboard/components/CategoryCell.tsx @@ -0,0 +1,36 @@ +import { Chip } from '@mui/material'; + +interface CategoryCellProps { + value?: string; +} + +export const CategoryCell = ({ value }: CategoryCellProps) => + value?.length ? ( + + ) : null; + +const getCategoryLabel = (category: string) => { + switch (category) { + case 'machine_learning': + return 'Machine Learning'; + case 'market_making': + return 'Market Making'; + default: + return category; + } +}; + +const getCategoryColor = (category: string) => { + switch (category) { + case 'machine_learning': + return 'primary'; + case 'market_making': + return 'success'; + default: + return 'default'; + } +}; 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/client/src/features/Leaderboard/components/RoleCell.tsx b/packages/apps/dashboard/client/src/features/Leaderboard/components/RoleCell.tsx new file mode 100644 index 0000000000..0c11b729a4 --- /dev/null +++ b/packages/apps/dashboard/client/src/features/Leaderboard/components/RoleCell.tsx @@ -0,0 +1,80 @@ +import { Box, Typography } from '@mui/material'; +import { Launch as LaunchIcon } from '@mui/icons-material'; +import { useBreakPoints } from '@utils/hooks/use-is-mobile'; +import { Link } from 'react-router-dom'; +import { EntityIcon } from './EntityIcon'; + +const Wrapper = ({ + children, + websiteUrl, +}: React.PropsWithChildren<{ websiteUrl?: string }>) => { + return websiteUrl ? ( + + {children} + + ) : ( + <>{children} + ); +}; + +export const RoleCell = ({ + role, + websiteUrl, + name, +}: { + role: string; + websiteUrl?: string; + name?: string; +}) => { + const { + mobile: { isMobile }, + } = useBreakPoints(); + + return ( + + + + {!isMobile && } + + + + {name ?? role} + + {websiteUrl ? : null} + + {name && role ? ( + + {role} + + ) : null} + + + + + ); +}; 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 85% 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 index e73d7e0d61..33e4fc4f3e 100644 --- a/packages/apps/dashboard/ui-2024/src/features/Leaderboard/hooks/useDataGrid.tsx +++ b/packages/apps/dashboard/client/src/features/Leaderboard/hooks/useDataGrid.tsx @@ -12,8 +12,8 @@ import { RoleCell } from '../components/RoleCell'; import { AddressCell } from '../components/AddressCell'; import { ChainCell } from '../components/ChainCell'; import { SelectNetwork } from '../components/SelectNetwork'; -import { ReputationLabel } from '../components/ReputationLabel'; import { TextCell } from '../components/TextCell'; +import { CategoryCell } from '../components/CategoryCell'; export const useDataGrid = (data: LeaderBoardData) => { const { @@ -47,7 +47,7 @@ export const useDataGrid = (data: LeaderBoardData) => { field: 'role', sortable: false, flex: isMobile ? 0.8 : 1.5, - minWidth: isMobile ? 100 : 240, + minWidth: isMobile ? 100 : 360, headerClassName: isMobile ? 'home-page-table-header pinned-column--header' : 'home-page-table-header', @@ -58,7 +58,11 @@ export const useDataGrid = (data: LeaderBoardData) => { ), renderCell: (params: GridRenderCellParams) => ( - + ), }, { @@ -136,31 +140,17 @@ export const useDataGrid = (data: LeaderBoardData) => { ), }, { - field: 'reputation', - headerName: 'Reputation Score', - sortable: false, - flex: 1, - minWidth: 210, + field: 'category', + minWidth: 200, + headerName: 'Category', headerClassName: 'home-page-table-header', renderHeader: () => ( - - - - - - Reputation Score - - + + Category + ), renderCell: (params: GridRenderCellParams) => ( - + ), }, { 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 62% rename from packages/apps/dashboard/ui-2024/src/pages/Home/Leaderboard.tsx rename to packages/apps/dashboard/client/src/pages/Home/Leaderboard.tsx index 2b62b4f33e..532e9788ff 100644 --- a/packages/apps/dashboard/ui-2024/src/pages/Home/Leaderboard.tsx +++ b/packages/apps/dashboard/client/src/pages/Home/Leaderboard.tsx @@ -2,12 +2,11 @@ import { useLeaderboardDetails } from '@services/api/use-leaderboard-details'; import { Leaderboard as LeaderboardFeature } from '../../features/Leaderboard'; export const Leaderboard = () => { - const { data, status, error } = useLeaderboardDetails(); - const isMoreThatFiveEntries = data?.length && data.length > 5; + const { data, status, error } = useLeaderboardDetails(4); return ( { const { data, status, error } = useLeaderboardDetails(); - const isMoreThatFiveEntries = data?.length && data.length > 5; return ( @@ -17,11 +16,7 @@ export const LeaderBoard = () => { title="Leaderboard" img={} /> - + ); }; 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 89% 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 index 03e0b774bd..39390eea7c 100644 --- 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 @@ -43,13 +43,15 @@ const leaderBoardEntity = z.object({ url: z.string().nullable(), website: z.string().nullable(), chainId: z.number(), + name: z.string().nullable(), + category: z.string().nullable(), }); export const leaderBoardSuccessResponseSchema = z.array(leaderBoardEntity); export type LeaderBoardEntity = z.infer; export type LeaderBoardData = z.infer; -export function useLeaderboardDetails() { +export function useLeaderboardDetails(first?: number) { const { filterParams: { chainId }, } = useLeaderboardSearch(); @@ -59,8 +61,9 @@ export function useLeaderboardDetails() { if (chainId === -1) { return []; } + const { data } = await httpService.get(apiPaths.leaderboardDetails.path, { - params: { chainId }, + params: { chainId, first }, }); const validResponse = validateResponse( @@ -70,6 +73,6 @@ export function useLeaderboardDetails() { return validResponse; }, - queryKey: ['useLeaderboardDetails', chainId], + queryKey: ['useLeaderboardDetails', chainId, first], }); } 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/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/dashboard/server/src/modules/details/details.controller.ts b/packages/apps/dashboard/server/src/modules/details/details.controller.ts index beff08f6bd..55441a0b0f 100644 --- a/packages/apps/dashboard/server/src/modules/details/details.controller.ts +++ b/packages/apps/dashboard/server/src/modules/details/details.controller.ts @@ -15,6 +15,7 @@ import { DetailsService } from './details.service'; import { DetailsResponseDto, DetailsPaginationResponseDto, + KVStoreDataDto, } from './dto/details-response.dto'; import { DetailsTransactionsPaginationDto, @@ -35,13 +36,12 @@ export class DetailsController { @Get('/leaders') @HttpCode(200) @ApiOperation({ - summary: 'Get the best leaders by role', - description: - 'Returns the top leader for each role for a given chain or all chains.', + summary: 'Get leaders', + description: 'Returns leaders for the given filters.', }) @ApiResponse({ status: 200, - description: 'Best leaders retrieved successfully', + description: 'Leaders retrieved successfully', type: LeaderDto, isArray: true, }) @@ -160,4 +160,24 @@ export class DetailsController { return response; } + + @Get('/kvstore/:address') + @HttpCode(200) + @ApiOperation({ + summary: 'Get KVStore data by address', + description: 'Returns all the data stored in KVStore for a given address.', + }) + @ApiQuery({ name: 'chain_id', enum: ChainId, required: true }) + @ApiResponse({ + status: 200, + description: 'Data retrieved successfully', + type: KVStoreDataDto, + isArray: true, + }) + public async KVStore( + @Param('address', AddressValidationPipe) address: string, + @Query('chain_id') chainId: ChainId, + ): Promise { + return this.detailsService.getKVStoreData(chainId, address); + } } diff --git a/packages/apps/dashboard/server/src/modules/details/details.service.ts b/packages/apps/dashboard/server/src/modules/details/details.service.ts index 4e45ea21a5..e87e312afe 100644 --- a/packages/apps/dashboard/server/src/modules/details/details.service.ts +++ b/packages/apps/dashboard/server/src/modules/details/details.service.ts @@ -10,6 +10,7 @@ import { NETWORKS, ILeadersFilter, OrderDirection, + KVStoreUtils, } from '@human-protocol/sdk'; import { WalletDto } from './dto/wallet.dto'; @@ -30,6 +31,7 @@ import { MIN_AMOUNT_STAKED, } from '../../common/constants/leader'; import { GetLeadersPaginationOptions } from 'src/common/types'; +import { KVStoreDataDto } from './dto/details-response.dto'; @Injectable() export class DetailsService { @@ -339,4 +341,20 @@ export class DetailsService { return sortedLeaders; } + + public async getKVStoreData( + chainId: ChainId, + address: string, + ): Promise { + const kvStoreData = await KVStoreUtils.getKVStoreData(chainId, address); + + const data: KVStoreDataDto[] = kvStoreData.map((data: any) => { + return plainToInstance(KVStoreDataDto, { + key: data.key, + value: data.value, + }); + }); + + return data; + } } diff --git a/packages/apps/dashboard/server/src/modules/details/details.spec.ts b/packages/apps/dashboard/server/src/modules/details/details.spec.ts index 28895a15a7..787ca4112a 100644 --- a/packages/apps/dashboard/server/src/modules/details/details.spec.ts +++ b/packages/apps/dashboard/server/src/modules/details/details.spec.ts @@ -9,6 +9,7 @@ import { ChainId, ILeader, OperatorUtils, + KVStoreUtils, OrderDirection, } from '@human-protocol/sdk'; import { LeadersOrderBy } from '../../common/enums/leader'; @@ -18,6 +19,9 @@ jest.mock('@human-protocol/sdk', () => ({ OperatorUtils: { getLeaders: jest.fn(), }, + KVStoreUtils: { + getKVStoreData: jest.fn(), + }, })); jest.mock('../../common/constants/leader', () => ({ @@ -162,4 +166,22 @@ describe('DetailsService', () => { }), ]); }); + + it('should fetch and return KV store data', async () => { + const mockKVStoreData = [ + { key: 'key1', value: 'value1' }, + { key: 'key2', value: 'value2' }, + ]; + + jest + .spyOn(KVStoreUtils, 'getKVStoreData') + .mockResolvedValue(mockKVStoreData); + + const result = await service.getKVStoreData(ChainId.MAINNET, '0x123'); + + expect(result).toEqual([ + expect.objectContaining({ key: 'key1', value: 'value1' }), + expect.objectContaining({ key: 'key2', value: 'value2' }), + ]); + }); }); diff --git a/packages/apps/dashboard/server/src/modules/details/dto/details-response.dto.ts b/packages/apps/dashboard/server/src/modules/details/dto/details-response.dto.ts index 492c31b633..f007cf5d9a 100644 --- a/packages/apps/dashboard/server/src/modules/details/dto/details-response.dto.ts +++ b/packages/apps/dashboard/server/src/modules/details/dto/details-response.dto.ts @@ -41,3 +41,11 @@ export class DetailsPaginationResponseDto { @IsArray() public results: EscrowPaginationDto[] | TransactionPaginationDto[]; } + +export class KVStoreDataDto { + @ApiProperty({ example: 'key' }) + public key: string; + + @ApiProperty({ example: 'value' }) + public value: string; +} diff --git a/packages/apps/dashboard/server/src/modules/details/dto/leader.dto.ts b/packages/apps/dashboard/server/src/modules/details/dto/leader.dto.ts index ed495d2627..0719913d06 100644 --- a/packages/apps/dashboard/server/src/modules/details/dto/leader.dto.ts +++ b/packages/apps/dashboard/server/src/modules/details/dto/leader.dto.ts @@ -75,4 +75,18 @@ export class LeaderDto { @IsNumber() @Expose() public amountJobsProcessed: number; + + @ApiProperty({ example: 'CVAT' }) + @ApiPropertyOptional() + @IsOptional() + @IsString() + @Expose() + public name?: string; + + @ApiProperty({ example: 'Machine Learning' }) + @ApiPropertyOptional() + @IsOptional() + @IsString() + @Expose() + public category?: string; } 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 diff --git a/packages/apps/dashboard/ui-2024/src/features/Leaderboard/components/RoleCell.tsx b/packages/apps/dashboard/ui-2024/src/features/Leaderboard/components/RoleCell.tsx deleted file mode 100644 index fade268f52..0000000000 --- a/packages/apps/dashboard/ui-2024/src/features/Leaderboard/components/RoleCell.tsx +++ /dev/null @@ -1,60 +0,0 @@ -import { Box, Typography } from '@mui/material'; -import { useBreakPoints } from '@utils/hooks/use-is-mobile'; -import { Link } from 'react-router-dom'; -import { EntityIcon } from './EntityIcon'; - -export const RoleCell = ({ - role, - websiteUrl, -}: { - role: string; - websiteUrl?: string; -}) => { - const { - mobile: { isMobile }, - } = useBreakPoints(); - - return ( - - {websiteUrl ? ( - - {!isMobile && } - - {role} - - - ) : ( - <> - {!isMobile && } - - {role} - - - )} - - ); -}; 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/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/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/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/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/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/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/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/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/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 d7ad7ecabe..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", @@ -41,8 +42,9 @@ "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", + "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/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/auth-web3/components/wallet-connect-modal.tsx b/packages/apps/human-app/frontend/src/modules/auth-web3/components/wallet-connect-modal.tsx index 89ac0c446e..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 @@ -1,13 +1,11 @@ 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'; +import { useWalletConnect } from '@/shared/contexts/wallet-connect'; export function WalletConnectModal() { const { closeModal } = useModalStore(); @@ -46,21 +44,7 @@ export function WalletConnectModal() { }} > - - ), - }} - i18nKey="walletConnectModal.paragraph" - /> + {t('walletConnectModal.connectBtn')} diff --git a/packages/apps/human-app/frontend/src/modules/auth-web3/providers/require-web3-auth.tsx b/packages/apps/human-app/frontend/src/modules/auth-web3/providers/require-web3-auth.tsx index f083554017..bc8d8cfb76 100644 --- a/packages/apps/human-app/frontend/src/modules/auth-web3/providers/require-web3-auth.tsx +++ b/packages/apps/human-app/frontend/src/modules/auth-web3/providers/require-web3-auth.tsx @@ -2,7 +2,7 @@ import { useLocation, Navigate } from 'react-router-dom'; import { createContext } from 'react'; import { routerPaths } from '@/router/router-paths'; import type { Web3AuthenticatedUserContextType } from '@/modules/auth-web3/context/web3-auth-context'; -import { PageCardLoader } from '@/shared/components/ui/page-card-loader'; +import { PageCardLoader } from '@/shared/components/ui/page-card'; import { useWeb3Auth } from '@/modules/auth-web3/hooks/use-web3-auth'; export const Web3AuthenticatedUserContext = diff --git a/packages/apps/human-app/frontend/src/modules/auth/providers/require-auth.tsx b/packages/apps/human-app/frontend/src/modules/auth/providers/require-auth.tsx index decf428974..d47ac1b61e 100644 --- a/packages/apps/human-app/frontend/src/modules/auth/providers/require-auth.tsx +++ b/packages/apps/human-app/frontend/src/modules/auth/providers/require-auth.tsx @@ -3,7 +3,7 @@ import { createContext } from 'react'; import { useAuth } from '@/modules/auth/hooks/use-auth'; import { routerPaths } from '@/router/router-paths'; import type { AuthenticatedUserContextType } from '@/modules/auth/context/auth-context'; -import { PageCardLoader } from '@/shared/components/ui/page-card-loader'; +import { PageCardLoader } from '@/shared/components/ui/page-card'; export const AuthenticatedUserContext = createContext(null); 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 79a4ae364c..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,9 +6,9 @@ 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 { useHomePageState } from '@/shared/contexts/homepage-state'; +import { useColorMode } from '@/shared/contexts/color-mode'; import { onlyDarkModeColor } from '@/shared/styles/dark-color-palette'; +import { useHomePageState } from '@/shared/contexts/homepage-state'; interface ChooseSignUpAccountType { setStage: (step: HomePageStageType) => void; @@ -27,10 +27,10 @@ export function ChooseSignUpAccountType() { return ( {t('homepage.welcome')} 👋} > diff --git a/packages/apps/human-app/frontend/src/modules/homepage/components/home-container.tsx b/packages/apps/human-app/frontend/src/modules/homepage/components/home-container.tsx index 7921f64edd..8450f2b27a 100644 --- a/packages/apps/human-app/frontend/src/modules/homepage/components/home-container.tsx +++ b/packages/apps/human-app/frontend/src/modules/homepage/components/home-container.tsx @@ -1,13 +1,13 @@ import { Container } from '@mui/material'; import { useEffect } from 'react'; -import { useBackgroundColorStore } from '@/shared/hooks/use-background-store'; +import { useBackgroundContext } from '@/shared/contexts/background'; import { useHomePageState } from '@/shared/contexts/homepage-state'; import { Welcome } from './welcome'; import { ChooseSignUpAccountType } from './choose-sign-up-account-type'; export function HomeContainer() { const { pageView } = useHomePageState(); - const { setWhiteBackground, setGrayBackground } = useBackgroundColorStore(); + const { setWhiteBackground, setGrayBackground } = useBackgroundContext(); useEffect(() => { if (pageView === 'chooseSignUpAccountType') { 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..5c844d81f0 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,13 +11,13 @@ 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 { useHomePageState } from '@/shared/contexts/homepage-state'; -import { useBackgroundColorStore } from '@/shared/hooks/use-background-store'; +import { useBackgroundContext } from '@/shared/contexts/background'; export function Welcome() { const { colorPalette, isDarkMode } = useColorMode(); - const { setWhiteBackground } = useBackgroundColorStore(); + const { setWhiteBackground } = useBackgroundContext(); const { setPageView } = useHomePageState(); const { t } = useTranslation(); const logoText: string = t('homepage.humanApp'); 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/homepage/views/home.page.tsx b/packages/apps/human-app/frontend/src/modules/homepage/views/home.page.tsx index a3a69c973a..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,9 +7,9 @@ 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 { useHomePageState } from '@/shared/contexts/homepage-state'; +import { useColorMode } from '@/shared/contexts/color-mode'; 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/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/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/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/profile/profile.page.tsx b/packages/apps/human-app/frontend/src/modules/operator/views/profile/profile.page.tsx index ba8438ded1..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 @@ -4,15 +4,17 @@ import { useTranslation } from 'react-i18next'; import { useIsMobile } from '@/shared/hooks/use-is-mobile'; import { useGetKeys } from '@/modules/operator/hooks/use-get-keys'; import { useWeb3AuthenticatedUser } from '@/modules/auth-web3/hooks/use-web3-authenticated-user'; -import { PageCardError } from '@/shared/components/ui/page-card-error'; -import { PageCardLoader } from '@/shared/components/ui/page-card-loader'; +import { + PageCardError, + PageCardLoader, +} from '@/shared/components/ui/page-card'; import { getErrorMessageForError } from '@/shared/errors'; import { ProfileDisableButton } from '@/modules/operator/components/profile/profile-disable-button'; 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-keys.page.tsx b/packages/apps/human-app/frontend/src/modules/operator/views/sign-up/add-keys.page.tsx index ff9d65dbb1..ad3c82ef2a 100644 --- a/packages/apps/human-app/frontend/src/modules/operator/views/sign-up/add-keys.page.tsx +++ b/packages/apps/human-app/frontend/src/modules/operator/views/sign-up/add-keys.page.tsx @@ -2,9 +2,11 @@ import { Grid } from '@mui/material'; import type { UseFormReturn } from 'react-hook-form'; import { t } from 'i18next'; import { Link } from 'react-router-dom'; -import { PageCardError } from '@/shared/components/ui/page-card-error'; -import { PageCardLoader } from '@/shared/components/ui/page-card-loader'; -import { PageCard } from '@/shared/components/ui/page-card'; +import { + PageCardError, + PageCardLoader, + PageCard, +} from '@/shared/components/ui/page-card'; import { getErrorMessageForError, jsonRpcErrorHandler } from '@/shared/errors'; import type { EditEthKVStoreValuesMutationData } from '@/modules/operator/hooks/use-edit-existing-keys'; import { useEditExistingKeysMutationState } from '@/modules/operator/hooks/use-edit-existing-keys'; 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 9b1f186c52..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 @@ -2,9 +2,11 @@ import Grid from '@mui/material/Grid'; import { Typography } from '@mui/material'; import { useState } from 'react'; import { t } from 'i18next'; -import { PageCardError } from '@/shared/components/ui/page-card-error'; -import { PageCardLoader } from '@/shared/components/ui/page-card-loader'; -import { PageCard } from '@/shared/components/ui/page-card'; +import { + PageCardError, + PageCardLoader, + PageCard, +} from '@/shared/components/ui/page-card'; import { getErrorMessageForError } from '@/shared/errors'; import { Buttons } from '@/modules/operator/components/sign-up/add-stake/buttons'; import { StakeForm } from '@/modules/operator/components/sign-up/add-stake/stake-form'; @@ -15,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/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 9d3f5843fc..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 @@ -1,8 +1,10 @@ import { t } from 'i18next'; import { Grid, Typography } from '@mui/material'; -import { PageCardError } from '@/shared/components/ui/page-card-error'; -import { PageCardLoader } from '@/shared/components/ui/page-card-loader'; -import { PageCard } from '@/shared/components/ui/page-card'; +import { + PageCardError, + PageCardLoader, + PageCard, +} from '@/shared/components/ui/page-card'; import { Button } from '@/shared/components/ui/button'; import { getErrorMessageForError } from '@/shared/errors'; import { useWeb3SignUp } from '@/modules/operator/hooks/use-web3-signup'; @@ -12,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(); @@ -59,8 +61,8 @@ export function EditExistingKeysSuccessPage() { ) : undefined } - hiddenArrowButton - hiddenCancelButton + showBackButton={false} + showCancelButton={false} title={t('operator.editExistingKeysSuccess.title')} > 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/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/signin/worker/index.ts b/packages/apps/human-app/frontend/src/modules/signin/worker/index.ts new file mode 100644 index 0000000000..b76ee6a475 --- /dev/null +++ b/packages/apps/human-app/frontend/src/modules/signin/worker/index.ts @@ -0,0 +1 @@ +export * from './sign-in.page'; diff --git a/packages/apps/human-app/frontend/src/modules/signin/worker/sign-in-form.tsx b/packages/apps/human-app/frontend/src/modules/signin/worker/sign-in-form.tsx new file mode 100644 index 0000000000..f6336f2f1a --- /dev/null +++ b/packages/apps/human-app/frontend/src/modules/signin/worker/sign-in-form.tsx @@ -0,0 +1,87 @@ +/* eslint-disable camelcase -- ...*/ +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 { Link } from 'react-router-dom'; +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 { routerPaths } from '@/router/router-paths'; +import { type SignInDto } from '@/modules/worker/services/sign-in/types'; +import { signInDtoSchema } from '@/modules/worker/services/sign-in/schema'; +import { useResetMutationErrors } from '@/shared/hooks/use-reset-mutation-errors'; +import { HCaptchaForm } from '@/shared/components/hcaptcha/h-captcha-form'; + +interface SignInFormProps { + onSubmit: (data: SignInDto) => void; + error?: unknown; + isLoading?: boolean; + resetMutation: () => void; +} + +export function SignInForm({ + onSubmit, + error, + isLoading, + resetMutation, +}: Readonly) { + const { t } = useTranslation(); + + const methods = useForm({ + defaultValues: { + email: '', + password: '', + h_captcha_token: '', + }, + resolver: zodResolver(signInDtoSchema), + }); + + useResetMutationErrors(methods.watch, resetMutation); + + const handleSubmit = (event: React.FormEvent) => { + void methods.handleSubmit(onSubmit)(event); + }; + + return ( + +
+ + + + + + + {t('worker.signInForm.forgotPassword')} + + + + + + +
+
+ ); +} 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/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 66% 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 33e2ff4b44..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 { FormCaptcha } from '@/shared/components/h-captcha'; +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/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/router/routes.tsx b/packages/apps/human-app/frontend/src/router/routes.tsx index 7a181ac507..e14826d913 100644 --- a/packages/apps/human-app/frontend/src/router/routes.tsx +++ b/packages/apps/human-app/frontend/src/router/routes.tsx @@ -1,8 +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 { SignUpWorkerPage } from '@/modules/worker/views/sign/sign-up.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'; @@ -32,6 +31,7 @@ import { ConnectWalletOperatorPage } from '@/modules/operator/views/sign-up/conn import { OperatorProfilePage } from '@/modules/operator/views/profile/profile.page'; import { Playground } from '@/modules/playground/views/playground.page'; import { HomePage } from '@/modules/homepage/views/home.page'; +import { SignUpWorkerPage } from '@/modules/signup/worker'; export const unprotectedRoutes: RouteProps[] = [ { 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/h-captcha.tsx b/packages/apps/human-app/frontend/src/shared/components/h-captcha.tsx deleted file mode 100644 index 86a0dd528b..0000000000 --- a/packages/apps/human-app/frontend/src/shared/components/h-captcha.tsx +++ /dev/null @@ -1,65 +0,0 @@ -import { useEffect, useRef } from 'react'; -import HCaptcha from '@hcaptcha/react-hcaptcha'; -import { useFormContext } from 'react-hook-form'; -import { Typography } from '@mui/material'; -import { env } from '@/shared/env'; -import { FetchError } from '@/api/fetcher'; -import { useColorMode } from '@/shared/hooks/use-color-mode'; - -interface CaptchaProps { - setCaptchaToken: (token: string) => void; - error?: unknown; -} - -export function Captcha({ setCaptchaToken, error }: CaptchaProps) { - const { isDarkMode } = useColorMode(); - const captchaRef = useRef(null); - - useEffect(() => { - if (error instanceof FetchError) { - captchaRef.current?.resetCaptcha(); - } - }, [error]); - - return ( - - ); -} - -interface FormCaptchaProps { - name: string; - error?: unknown; -} - -export function FormCaptcha({ name, error }: FormCaptchaProps) { - const { colorPalette } = useColorMode(); - const { setValue, formState } = useFormContext>(); - - function setCaptchaToken(token: string) { - setValue(name, token); - } - - useEffect(() => { - if (error instanceof FetchError) { - setValue(name, ''); - } - }, [error, name, setValue]); - - return ( -
- - - {formState.errors[name]?.message} - -
- ); -} 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 new file mode 100644 index 0000000000..d185792184 --- /dev/null +++ b/packages/apps/human-app/frontend/src/shared/components/hcaptcha/h-captcha-form.tsx @@ -0,0 +1,42 @@ +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/contexts/color-mode'; +import { CustomHCaptcha } from './h-captcha'; +import { type CustomHCaptchaRef } from './types'; + +interface HCaptchaFormProps { + name: string; + error?: unknown; +} + +export function HCaptchaForm({ name, error }: Readonly) { + const { colorPalette } = useColorMode(); + const { setValue, formState } = useFormContext>(); + const customCaptchaRef = useRef(null); + + function setCaptchaValue(token: string) { + setValue(name, token); + } + + useEffect(() => { + if (error instanceof FetchError) { + setValue(name, ''); + customCaptchaRef.current?.reset(); + } + }, [error, name, setValue]); + + return ( +
+ + + {formState.errors[name]?.message} + +
+ ); +} 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 new file mode 100644 index 0000000000..2c65686351 --- /dev/null +++ b/packages/apps/human-app/frontend/src/shared/components/hcaptcha/h-captcha.tsx @@ -0,0 +1,41 @@ +import { forwardRef, useImperativeHandle, useRef } from 'react'; +import HCaptcha from '@hcaptcha/react-hcaptcha'; +import { env } from '@/shared/env'; +import { useColorMode } from '@/shared/contexts/color-mode'; +import { type CustomHCaptchaRef } from './types'; + +interface CustomHCaptchaProps { + onVerify: (token: string) => void; +} + +function InternalHCaptcha( + { onVerify }: CustomHCaptchaProps, + ref: React.Ref +) { + const { isDarkMode } = useColorMode(); + const captchaRef = useRef(null); + + useImperativeHandle(ref, () => ({ + reset: () => { + if (captchaRef.current) { + captchaRef.current.resetCaptcha(); + } + }, + })); + + return ( + { + onVerify(token); + }} + ref={captchaRef} + sitekey={env.VITE_H_CAPTCHA_SITE_KEY} + theme={isDarkMode ? 'dark' : 'light'} + /> + ); +} + +export const CustomHCaptcha = forwardRef< + CustomHCaptchaRef, + CustomHCaptchaProps +>(InternalHCaptcha); diff --git a/packages/apps/human-app/frontend/src/shared/components/hcaptcha/types.ts b/packages/apps/human-app/frontend/src/shared/components/hcaptcha/types.ts new file mode 100644 index 0000000000..dd95b93c46 --- /dev/null +++ b/packages/apps/human-app/frontend/src/shared/components/hcaptcha/types.ts @@ -0,0 +1,3 @@ +export interface CustomHCaptchaRef { + reset: () => void; +} 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/layout.tsx b/packages/apps/human-app/frontend/src/shared/components/layout/protected/layout.tsx index 1176737199..ae589f1e45 100644 --- a/packages/apps/human-app/frontend/src/shared/components/layout/protected/layout.tsx +++ b/packages/apps/human-app/frontend/src/shared/components/layout/protected/layout.tsx @@ -3,7 +3,7 @@ import type { Dispatch, SetStateAction } from 'react'; import { useEffect, useRef, useState } from 'react'; import { Outlet } from 'react-router-dom'; import { useIsMobile } from '@/shared/hooks/use-is-mobile'; -import { useBackgroundColorStore } from '@/shared/hooks/use-background-store'; +import { useBackgroundContext } from '@/shared/contexts/background'; import type { PageHeaderProps } from '@/shared/components/layout/protected/page-header'; import { PageHeader } from '@/shared/components/layout/protected/page-header'; import { breakpoints } from '@/shared/styles/breakpoints'; @@ -50,7 +50,7 @@ export function Layout({ const isMobile = useIsMobile(); const [drawerOpen, setDrawerOpen] = useState(!isMobile); const [hcaptchaDrawerOpen, setHcaptchaDrawerOpen] = useState(false); - const { backgroundColor, setGrayBackground } = useBackgroundColorStore(); + const { backgroundColor, setGrayBackground } = useBackgroundContext(); const toggleUserStatsDrawer = isHCaptchaLabelingPage ? () => { setHcaptchaDrawerOpen((state) => !state); 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..1af00794ea 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 @@ -1,9 +1,9 @@ import { Container, Grid } from '@mui/material'; import { Outlet } from 'react-router-dom'; -import { useBackgroundColorStore } from '@/shared/hooks/use-background-store'; +import { useBackgroundContext } from '@/shared/contexts/background'; 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'; @@ -13,7 +13,7 @@ interface LayoutProps { export function Layout({ withNavigation = true }: LayoutProps) { const { colorPalette, isDarkMode } = useColorMode(); - const { backgroundColor } = useBackgroundColorStore(); + const { backgroundColor } = useBackgroundContext(); const isMobile = useIsMobile(); const layoutBackgroundColor = (() => { if (isDarkMode) { 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/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/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/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-error.tsx b/packages/apps/human-app/frontend/src/shared/components/ui/page-card-error.tsx deleted file mode 100644 index a8a9bdf030..0000000000 --- a/packages/apps/human-app/frontend/src/shared/components/ui/page-card-error.tsx +++ /dev/null @@ -1,98 +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 { 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 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-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..c86e5e6d71 --- /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/contexts/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..fc13e4a9f0 --- /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/contexts/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 61% 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..ee4ad585a4 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 { useColorMode } from '@/shared/hooks/use-color-mode'; +import { onlyDarkModeColor } from '@/shared/styles/dark-color-palette'; +import { useColorMode } from '@/shared/contexts/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 aecd68e9a9..c079b7577f 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': @@ -36,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/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 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/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/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/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 ### 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/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..191d2d6966 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 @@ -619,7 +619,7 @@ def update_honeypots(self) -> _HoneypotUpdateResult: f"Validation for escrow_address={self.task.escrow_address}: " f"Too many validation frames excluded in the task {cvat_task_id} " f"(required: {Config.validation.min_available_gt_threshold * 100:.4f}%, " - f"left: {(len(task_available_gt_keys) / len(task_gt_keys)):.4f}%), " + f"left: {(len(task_available_gt_keys) / len(task_gt_keys) * 100):.4f}%), " "stopping annotation" ) return _HoneypotUpdateResult( @@ -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, ) @@ -812,7 +808,7 @@ def process_intermediate_results( # noqa: PLR0912 db_service.update_gt_stats(session, task.id, gt_stats) - job_final_result_ids: dict[int, str] = {} + job_final_result_ids: dict[str, str] = {} for job_meta in meta.jobs: job = db_service.get_job_by_cvat_id(session, job_meta.job_id) @@ -904,6 +900,14 @@ def process_intermediate_results( # noqa: PLR0912 ], ) + # Include final results for all jobs + job_results: _JobResults = { + job.cvat_id: task_validation_results[ + validation_result_id_to_meta_id[job_final_result_ids[job.id]] + ].annotation_quality + for job in task_jobs + } + return ValidationSuccess( job_results=job_results, validation_meta=validation_meta, diff --git a/packages/examples/cvat/recording-oracle/src/handlers/validation.py b/packages/examples/cvat/recording-oracle/src/handlers/validation.py index e899c15dc5..3f8ca5f45a 100644 --- a/packages/examples/cvat/recording-oracle/src/handlers/validation.py +++ b/packages/examples/cvat/recording-oracle/src/handlers/validation.py @@ -124,7 +124,7 @@ def _handle_validation_result(self, validation_result: ValidationResult): if isinstance(validation_result, ValidationSuccess): logger.info( f"Validation for escrow_address={escrow_address}: successful, " - f"average annotation quality is {validation_result.average_quality:.2f}" + f"average annotation quality is {validation_result.average_quality * 100:.2f}%" ) recor_merged_annotations_path = self._compose_validation_results_bucket_filename( 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..37750be364 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 @@ -922,7 +924,7 @@ def patched_get_jobs_quality_reports(task_id: int): GtKey(filename="frame_5.jpg", labels=["label_0_node_1"]): (0, 0, 1), } - def test_can_complete_if_not_enough_gt_left_in_task( + def test_can_complete_if_not_enough_gt_left_in_task_with_several_jobs( self, session: Session, caplog: pytest.LogCaptureFixture ): escrow_address = ESCROW_ADDRESS @@ -1059,7 +1061,7 @@ def patched_get_jobs_quality_reports(task_id: int): mock.Mock( cvat_api.models.IQualityReport, job_id=task_id, - summary=mock.Mock(accuracy=1), + summary=mock.Mock(accuracy=1 / 3 if task_id == cvat_task_id1 else 1), ), ] @@ -1100,7 +1102,7 @@ def patched_get_jobs_quality_reports(task_id: int): mock_update_task_validation_layout.assert_not_called() - def test_can_complete_if_not_enough_gt_left_in_task( + def test_can_complete_if_not_enough_gt_left_in_task_with_one_job( self, session: Session, caplog: pytest.LogCaptureFixture ): escrow_address = ESCROW_ADDRESS 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 e5d6d405d5..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 @@ -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 @@ -32,6 +21,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", @@ -40,7 +36,7 @@ class OrderDirection(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/Qmc8ikCj9y2uvYGTeELkM9wybPdcD2PgpW4tjJMwnogLrq" ), "hmt_address": "0xd1ba9BAC957322D6e8c07a160a3A8dA11A0d2867", "factory_address": "0xD9c75a1Aa4237BB72a41E5E26bd8384f10c1f55a", @@ -49,22 +45,6 @@ class OrderDirection(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: { "title": "Sepolia", "scan_url": "https://sepolia.etherscan.io", @@ -72,7 +52,7 @@ class OrderDirection(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/QmXVFVCLm2XxupxdKgnLRzvmkPJnpRbcoe4RNXoTqSRHsg" + "https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmfB1oqYCMTKZB2vcYJzQmGGvVS8cMCHohpYbjKFWoFo8z" ), "hmt_address": "0x792abbcC99c01dbDec49c9fa9A828a186Da45C33", "factory_address": "0x5987A5558d961ee674efe4A8c8eB7B1b5495D3bf", @@ -88,7 +68,7 @@ class OrderDirection(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/QmPEaCSuzbVHDrGEWTS7T4N8U7kBMMMfkj4b4ZeqheVuMc" ), "hmt_address": "0x711Fd6ab6d65A98904522d4e3586F492B989c527", "factory_address": "0x92FD968AcBd521c232f5fB8c33b342923cC72714", @@ -104,7 +84,7 @@ class OrderDirection(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/Qmbp8jzcYurrKdk1Mg5ycJ8jcxwou3wWsmNcRdAc16aQEt" ), "hmt_address": "0xE3D74BBFa45B4bCa69FF28891fBE392f4B4d4e4d", "factory_address": "0x2bfA592DBDaF434DDcbb893B1916120d181DAD18", @@ -122,7 +102,7 @@ class OrderDirection(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/QmeSoEuFieiKXtqzDY3WUBz5gKFWwYVPP7iaebpBpJyo7Y" ), "hmt_address": "0xc748B2A084F8eFc47E086ccdDD9b7e67aEb571BF", "factory_address": "0xBDBfD2cC708199C5640C6ECdf3B0F4A4C67AdfcB", @@ -133,22 +113,6 @@ class OrderDirection(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", @@ -156,7 +120,7 @@ class OrderDirection(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/QmQUUv8SK2skarDrJpB8LXXqMwjzxg3Z42dx12uEL5Pmeq" ), "hmt_address": "0x792abbcC99c01dbDec49c9fa9A828a186Da45C33", "factory_address": "0xAFf5a986A530ff839d49325A5dF69F96627E8D29", @@ -165,140 +129,6 @@ class OrderDirection(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": "", @@ -331,7 +161,6 @@ class Status(Enum): class Role(Enum): """Enum for roles.""" - validator = "Validator" job_launcher = "Job Launcher" exchange_oracle = "Exchange Oracle" reputation_oracle = "Reputation Oracle" @@ -344,14 +173,18 @@ class Role(Enum): class KVStoreKeys(Enum): """Enum for KVStore keys""" - role = "role" + category = "category" fee = "fee" - public_key = "public_key" - webhook_url = "webhook_url" - url = "url" job_types = "job_types" - registration_needed = "registration_needed" + name = "name" + public_key = "public_key" + public_key_hash = "public_key_hash" registration_instructions = "registration_instructions" + registration_needed = "registration_needed" + role = "role" + url = "url" + website = "website" + webhook_url = "webhook_url" 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..79737b77fd 100644 --- a/packages/sdk/typescript/human-protocol-sdk/src/constants.ts +++ b/packages/sdk/typescript/human-protocol-sdk/src/constants.ts @@ -36,38 +36,10 @@ 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/Qmc8ikCj9y2uvYGTeELkM9wybPdcD2PgpW4tjJMwnogLrq', 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', @@ -79,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/QmfB1oqYCMTKZB2vcYJzQmGGvVS8cMCHohpYbjKFWoFo8z', oldSubgraphUrl: '', oldFactoryAddress: '', }, @@ -94,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/QmPEaCSuzbVHDrGEWTS7T4N8U7kBMMMfkj4b4ZeqheVuMc', oldSubgraphUrl: 'https://api.thegraph.com/subgraphs/name/humanprotocol/bsc', oldFactoryAddress: '0xc88bC422cAAb2ac8812de03176402dbcA09533f4', }, @@ -109,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/Qmbp8jzcYurrKdk1Mg5ycJ8jcxwou3wWsmNcRdAc16aQEt', oldSubgraphUrl: 'https://api.thegraph.com/subgraphs/name/humanprotocol/bsctest', oldFactoryAddress: '0xaae6a2646c1f88763e62e0cd08ad050ea66ac46f', @@ -125,26 +97,11 @@ 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/QmeSoEuFieiKXtqzDY3WUBz5gKFWwYVPP7iaebpBpJyo7Y', oldSubgraphUrl: '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', @@ -156,130 +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', - 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', + 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmQUUv8SK2skarDrJpB8LXXqMwjzxg3Z42dx12uEL5Pmeq', oldSubgraphUrl: '', oldFactoryAddress: '', }, @@ -302,12 +136,15 @@ export const KVStoreKeys = { role: 'role', fee: 'fee', publicKey: 'public_key', + publicKeyHash: 'public_key_hash', webhookUrl: 'webhook_url', website: 'website', url: 'url', 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..6f71feb39e 100644 --- a/packages/sdk/typescript/human-protocol-sdk/src/enums.ts +++ b/packages/sdk/typescript/human-protocol-sdk/src/enums.ts @@ -1,26 +1,20 @@ 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 { 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/escrow.ts b/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts index 121f1f3e70..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 @@ -1578,19 +1583,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, * } * ``` @@ -1700,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, @@ -1727,19 +1724,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 +1804,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, * } * ``` * @@ -1921,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/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/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/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/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, 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 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..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,58 +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; + 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 6129d239af..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'; @@ -38,7 +39,7 @@ describe('KVStore', () => { const data2 = createDataSavedEvent( '0x92a2eEF7Ff696BCef98957a0189872680600a959', 'role', - 'Validator', + 'Job Launcher', BigInt.fromI32(11) ); @@ -102,7 +103,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 +116,7 @@ describe('KVStore', () => { const data2 = createDataSavedEvent( '0x92a2eEF7Ff696BCef98957a0189872680600a959', 'role', - 'Validator', + 'Job Launcher', BigInt.fromI32(11) ); @@ -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( @@ -275,7 +348,7 @@ describe('KVStore', () => { const data2 = createDataSavedEvent( '0x92a2eEF7Ff696BCef98957a0189872680600a959', 'role', - 'Validator', + 'Job Launcher', BigInt.fromI32(11) ); @@ -292,7 +365,7 @@ describe('KVStore', () => { 'Leader', data2.params.sender.toHex(), 'role', - 'Validator' + 'Job Launcher' ); }); @@ -378,7 +451,7 @@ describe('KVStore', () => { const data2 = createDataSavedEvent( '0x92a2eEF7Ff696BCef98957a0189872680600a959', 'webhook_url', - 'https://validator.example.com', + 'https://job-launcher.example.com', BigInt.fromI32(11) ); @@ -408,7 +481,7 @@ describe('KVStore', () => { 'Leader', data2.params.sender.toHex(), 'webhookUrl', - 'https://validator.example.com' + 'https://job-launcher.example.com' ); assert.fieldEquals( 'LeaderURL', @@ -420,7 +493,7 @@ describe('KVStore', () => { 'LeaderURL', data2.params.sender.concat(toBytes('webhook_url')).toHex(), 'url', - 'https://validator.example.com' + 'https://job-launcher.example.com' ); }); @@ -434,7 +507,7 @@ describe('KVStore', () => { const data2 = createDataSavedEvent( '0x92a2eEF7Ff696BCef98957a0189872680600a959', 'website', - 'https://validator.example.com', + 'https://job-launcher.example.com', BigInt.fromI32(11) ); @@ -452,7 +525,7 @@ describe('KVStore', () => { 'Leader', data2.params.sender.toHex(), 'website', - 'https://validator.example.com' + 'https://job-launcher.example.com' ); }); @@ -466,7 +539,7 @@ describe('KVStore', () => { const data2 = createDataSavedEvent( '0x92a2eEF7Ff696BCef98957a0189872680600a959', 'URL', - 'https://validator.example.com', + 'https://job-launcher.example.com', BigInt.fromI32(11) ); @@ -496,7 +569,7 @@ describe('KVStore', () => { 'Leader', data2.params.sender.toHex(), 'url', - 'https://validator.example.com' + 'https://job-launcher.example.com' ); assert.fieldEquals( 'LeaderURL', @@ -508,7 +581,7 @@ describe('KVStore', () => { 'LeaderURL', data2.params.sender.concat(toBytes('url')).toHex(), 'url', - 'https://validator.example.com' + 'https://job-launcher.example.com' ); }); @@ -636,13 +709,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 +726,66 @@ 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' + ); + }); + + 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' ); }); }); 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 e77a6b67f3..6c76e2b646 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== @@ -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" @@ -3056,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" @@ -3249,15 +3245,15 @@ 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== + version "10.4.15" + resolved "https://registry.yarnpkg.com/@nestjs/platform-express/-/platform-express-10.4.15.tgz#117fe7470c2b93e4ac07687b7fa604a17ca240c5" + integrity sha512-63ZZPkXHjoDyO7ahGOVcybZCRa7/Scp6mObQKjcX/fTEq1YJeU75ELvMsuQgc8U2opMGOBD7GVuc4DV0oeDHoA== dependencies: body-parser "1.20.3" cors "2.8.5" - express "4.21.1" + express "4.21.2" multer "1.4.4-lts.1" - tslib "2.7.0" + tslib "2.8.1" "@nestjs/schedule@^4.0.1": version "4.1.1" @@ -3278,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== @@ -3425,53 +3421,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" @@ -3647,22 +3643,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 +3650,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 +5025,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" @@ -5415,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" @@ -5495,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== @@ -5521,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" @@ -5556,11 +5520,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" @@ -5860,14 +5819,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== @@ -6946,7 +6898,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== @@ -6960,13 +6912,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" @@ -7179,14 +7124,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" @@ -7416,11 +7353,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" @@ -7768,7 +7700,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== @@ -8090,54 +8022,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" @@ -8196,15 +8080,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" @@ -8690,7 +8565,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== @@ -9330,7 +9205,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== @@ -9358,15 +9233,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== @@ -9831,7 +9698,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== @@ -10917,7 +10784,44 @@ 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@4.21.2: + version "4.21.2" + resolved "https://registry.yarnpkg.com/express/-/express-4.21.2.tgz#cf250e48362174ead6cea4a566abef0162c1ec32" + integrity sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA== + dependencies: + accepts "~1.3.8" + array-flatten "1.1.1" + body-parser "1.20.3" + content-disposition "0.5.4" + content-type "~1.0.4" + cookie "0.7.1" + cookie-signature "1.0.6" + debug "2.6.9" + depd "2.0.0" + encodeurl "~2.0.0" + escape-html "~1.0.3" + etag "~1.8.1" + finalhandler "1.3.1" + fresh "0.5.2" + http-errors "2.0.0" + merge-descriptors "1.0.3" + methods "~1.1.2" + on-finished "2.4.1" + parseurl "~1.3.3" + path-to-regexp "0.1.12" + proxy-addr "~2.0.7" + qs "6.13.0" + range-parser "~1.2.1" + safe-buffer "5.2.1" + send "0.19.0" + serve-static "1.16.2" + setprototypeof "1.2.0" + statuses "2.0.1" + type-is "~1.6.18" + 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== @@ -11374,7 +11278,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== @@ -11438,20 +11342,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" @@ -11463,13 +11353,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" @@ -11534,11 +11417,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" @@ -11614,7 +11492,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== @@ -11647,7 +11525,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== @@ -11659,7 +11537,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== @@ -11732,15 +11610,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" @@ -11819,7 +11688,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== @@ -11936,11 +11805,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" @@ -12014,14 +11878,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" @@ -12211,13 +12075,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" @@ -12261,7 +12118,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== @@ -12277,15 +12134,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" @@ -12346,13 +12194,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" @@ -12469,11 +12310,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" @@ -12761,7 +12597,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== @@ -12909,11 +12745,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" @@ -13662,11 +13493,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" @@ -13907,7 +13733,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== @@ -13993,7 +13819,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== @@ -14411,18 +14237,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" @@ -14476,28 +14290,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" @@ -14516,28 +14308,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" @@ -14545,16 +14315,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" @@ -14586,7 +14346,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== @@ -14627,24 +14387,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" @@ -14814,22 +14556,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" @@ -14875,13 +14601,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" @@ -14889,28 +14608,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" @@ -14929,7 +14626,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== @@ -14943,7 +14640,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== @@ -14965,7 +14662,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== @@ -15070,7 +14767,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== @@ -15150,11 +14847,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" @@ -15206,7 +14898,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== @@ -15298,22 +14990,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" @@ -15324,26 +15000,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" @@ -15406,16 +15062,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" @@ -15484,16 +15130,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" @@ -15997,6 +15633,11 @@ path-to-regexp@0.1.10: resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.10.tgz#67e9108c5c0551b9e5326064387de4763c4d5f8b" integrity sha512-7lf7qcQidTku0Gu3YDPc8DJ1q7OOucfa/BSsIwjuh56VU7katFvuM8hULfkwB3Fns/rsVF7PwPKVw1sl5KQS9w== +path-to-regexp@0.1.12: + version "0.1.12" + resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.12.tgz#d5e1a12e478a976d432ef3c58d534b9923164bb7" + integrity sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ== + path-to-regexp@0.2.5: version "0.2.5" resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.2.5.tgz#0b426991e387fc4c675de23557f358715eb66fb0" @@ -16415,11 +16056,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" @@ -16662,11 +16298,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" @@ -16778,10 +16409,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" @@ -16865,7 +16496,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== @@ -17402,27 +17033,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" @@ -17487,14 +17097,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" @@ -17514,9 +17116,9 @@ secp256k1@^5.0.1: node-gyp-build "^4.2.0" "semver@2 || 3 || 4 || 5", semver@7.3.5, semver@7.4.0, semver@^5.5.0, semver@^6.0.0, semver@^6.3.0, semver@^6.3.1, semver@^7.3.4, semver@^7.3.5, semver@^7.3.7, semver@^7.3.8, semver@^7.5.2, semver@^7.5.3, semver@^7.5.4, semver@^7.6.0, semver@^7.6.3: - version "7.6.3" - resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.3.tgz#980f7b5550bc175fb4dc09403085627f9eb33143" - integrity sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A== + version "7.7.0" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.7.0.tgz#9c6fe61d0c6f9fa9e26575162ee5a9180361b09c" + integrity sha512-DrfFnPzblFmNrIZzg5RzHegbiRWg7KMR7btwi2yjHwx06zsUbO5g613sVwEV7FTwmzJu+Io0lJe2GJ3LxqpvBQ== send@0.19.0: version "0.19.0" @@ -17789,24 +17391,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" @@ -17816,7 +17400,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== @@ -17914,7 +17498,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== @@ -18011,20 +17595,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" @@ -18059,13 +17629,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" @@ -18564,7 +18127,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== @@ -18860,16 +18423,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" @@ -19018,7 +18571,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== @@ -19079,11 +18632,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" @@ -19360,20 +18908,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" @@ -19381,20 +18915,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" @@ -20258,7 +19778,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== @@ -20280,7 +19800,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== @@ -20477,7 +19997,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== @@ -20522,7 +20042,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==