diff --git a/.github/workflows/cd-cvat-exchange-oracle.yaml b/.github/workflows/cd-cvat-exchange-oracle.yaml index 565c3d0304..e77b4c3931 100644 --- a/.github/workflows/cd-cvat-exchange-oracle.yaml +++ b/.github/workflows/cd-cvat-exchange-oracle.yaml @@ -3,6 +3,7 @@ name: Deploy CVAT Exchange Oracle on: push: branches: [ develop, main, cvat-milestone-2 ] + tags-ignore: '*' paths: - 'packages/examples/cvat/exchange-oracle/**' pull_request: @@ -24,7 +25,7 @@ jobs: if: ${{ github.event_name == 'pull_request' }} steps: - name: Checkout - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: PR check run: | @@ -44,7 +45,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v5 + uses: actions/checkout@v6 - uses: convictional/trigger-workflow-and-wait@v1.6.5 with: diff --git a/.github/workflows/cd-cvat-recording-oracle.yaml b/.github/workflows/cd-cvat-recording-oracle.yaml index 3923ae2dbc..a4f66686a6 100644 --- a/.github/workflows/cd-cvat-recording-oracle.yaml +++ b/.github/workflows/cd-cvat-recording-oracle.yaml @@ -3,6 +3,7 @@ name: Deploy CVAT Recording Oracle on: push: branches: [ develop, main, cvat-milestone-2 ] + tags-ignore: '*' paths: - 'packages/examples/cvat/recording-oracle/**' pull_request: @@ -25,7 +26,7 @@ jobs: if: ${{ github.event_name == 'pull_request' }} steps: - name: Checkout - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: PR check run: | @@ -45,7 +46,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v5 + uses: actions/checkout@v6 - uses: convictional/trigger-workflow-and-wait@v1.6.5 with: diff --git a/.github/workflows/cd-deploy-contracts.yaml b/.github/workflows/cd-deploy-contracts.yaml index ccfcea1803..324ffdae2d 100644 --- a/.github/workflows/cd-deploy-contracts.yaml +++ b/.github/workflows/cd-deploy-contracts.yaml @@ -32,10 +32,10 @@ jobs: MOONSCAN_API_KEY: ${{ secrets.MOONSCAN_API_KEY }} AVALANCHE_API_KEY: ${{ secrets.AVALANCHE_API_KEY }} steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 with: token: ${{ secrets.GH_TOKEN_CD_CONTRACTS }} - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 with: node-version-file: .nvmrc cache: yarn @@ -126,7 +126,7 @@ jobs: git stash --include-untracked - name: Checkout develop if: always() && steps.check_changes.outputs.changes == 'true' - uses: actions/checkout@v5 + uses: actions/checkout@v6 with: ref: develop token: ${{ secrets.GH_TOKEN_CD_CONTRACTS }} diff --git a/.github/workflows/cd-gitbook-sdk-docs.yaml b/.github/workflows/cd-gitbook-sdk-docs.yaml index 29c0a30136..574253955c 100644 --- a/.github/workflows/cd-gitbook-sdk-docs.yaml +++ b/.github/workflows/cd-gitbook-sdk-docs.yaml @@ -13,8 +13,8 @@ jobs: name: Sync docs to GitBook runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: .nvmrc - name: Publish docs diff --git a/.github/workflows/cd-job-launcher-server.yaml b/.github/workflows/cd-job-launcher-server.yaml index 23c065667f..02a075af78 100644 --- a/.github/workflows/cd-job-launcher-server.yaml +++ b/.github/workflows/cd-job-launcher-server.yaml @@ -3,6 +3,7 @@ name: Deploy Job launcher server on: push: branches: [ develop, main ] + tags-ignore: '*' paths: - 'packages/apps/job-launcher/server/**' pull_request: @@ -21,7 +22,7 @@ jobs: if: ${{ github.event_name == 'pull_request' }} steps: - name: Checkout - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: PR check run: | @@ -41,7 +42,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v5 + uses: actions/checkout@v6 - uses: convictional/trigger-workflow-and-wait@v1.6.5 with: diff --git a/.github/workflows/cd-packages.yaml b/.github/workflows/cd-packages.yaml index b33d418805..ea030917e4 100644 --- a/.github/workflows/cd-packages.yaml +++ b/.github/workflows/cd-packages.yaml @@ -5,9 +5,20 @@ permissions: contents: write # needed to push tags on: + workflow_dispatch: + inputs: + npm_tag: + description: "npm dist-tag to use when publishing manually (e.g., alpha, beta)" + required: false + default: "beta" + push_git_tags: + description: "Push git tags after publishing (true/false)" + required: false + default: "false" push: branches: - main + tags-ignore: '*' paths-ignore: - "docs/**" - "packages/apps/**" @@ -18,15 +29,18 @@ jobs: publish: name: Publish packages to NPM runs-on: ubuntu-latest + env: + NPM_PUBLISH_TAG: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.npm_tag || 'latest' }} + PUSH_GIT_TAGS: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.push_git_tags || 'true' }} steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 with: token: ${{ secrets.GH_GITBOOK_TOKEN }} - name: Setup git identity run: | git config --global user.name "github-actions[bot]" git config --global user.email "github-actions[bot]@users.noreply.github.com" - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 with: node-version-file: .nvmrc cache: yarn @@ -45,10 +59,12 @@ jobs: - name: Build packages run: yarn workspaces foreach --all --no-private -pt run build - name: Publish packages - run: yarn workspaces foreach --all --no-private -pt npm publish --tolerate-republish --json | tee publish.log + run: yarn workspaces foreach --all --no-private -pt npm publish --tolerate-republish --tag ${NPM_PUBLISH_TAG} --json | tee publish.log env: SKIP_PREPACK: true - name: Tag published packages + if: ${{ env.PUSH_GIT_TAGS == 'true' }} run: node scripts/tag-published-packages.mjs publish.log - name: Push created tags + if: ${{ env.PUSH_GIT_TAGS == 'true' }} run: git push origin --tags diff --git a/.github/workflows/cd-python-sdk.yaml b/.github/workflows/cd-python-sdk.yaml index ae5e40f393..2af293b225 100644 --- a/.github/workflows/cd-python-sdk.yaml +++ b/.github/workflows/cd-python-sdk.yaml @@ -4,9 +4,16 @@ permissions: contents: write on: + workflow_dispatch: + inputs: + push_git_tags: + description: "Push git tags after publishing (true/false)" + required: false + default: "false" push: branches: - main + tags-ignore: '*' paths: - "packages/sdk/python/human-protocol-sdk/**" @@ -14,8 +21,10 @@ jobs: publish-python-sdk: name: Publish Python SDK runs-on: ubuntu-latest + env: + PUSH_GIT_TAGS: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.push_git_tags || 'true' }} steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 with: token: ${{ secrets.GH_GITBOOK_TOKEN }} - name: Setup git identity @@ -51,6 +60,7 @@ jobs: TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} run: make publish-package - name: Create and push tag + if: ${{ env.PUSH_GIT_TAGS == 'true' }} working-directory: ./packages/sdk/python/human-protocol-sdk run: | VERSION="${{ steps.read_version.outputs.version }}" diff --git a/.github/workflows/cd-reputation-oracle.yaml b/.github/workflows/cd-reputation-oracle.yaml index ab13d575d1..396733e638 100644 --- a/.github/workflows/cd-reputation-oracle.yaml +++ b/.github/workflows/cd-reputation-oracle.yaml @@ -3,6 +3,7 @@ name: Deploy Reputation oracle on: push: branches: [ develop, main ] + tags-ignore: '*' paths: - 'packages/apps/reputation-oracle/server/**' pull_request: @@ -21,7 +22,7 @@ jobs: if: ${{ github.event_name == 'pull_request' }} steps: - name: Checkout - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: PR check run: | @@ -41,7 +42,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v5 + uses: actions/checkout@v6 - uses: convictional/trigger-workflow-and-wait@v1.6.5 with: diff --git a/.github/workflows/cd-subgraph.yaml b/.github/workflows/cd-subgraph.yaml index 095a97c23e..6969c1582c 100644 --- a/.github/workflows/cd-subgraph.yaml +++ b/.github/workflows/cd-subgraph.yaml @@ -25,8 +25,8 @@ jobs: fail-fast: true max-parallel: 3 steps: - - uses: actions/checkout@v5 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: .nvmrc cache: yarn diff --git a/.github/workflows/ci-dependency-review.yaml b/.github/workflows/ci-dependency-review.yaml index a9f0b7e9d9..e30c6d1045 100644 --- a/.github/workflows/ci-dependency-review.yaml +++ b/.github/workflows/ci-dependency-review.yaml @@ -12,8 +12,8 @@ jobs: dependency-review: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Dependency Review - uses: actions/dependency-review-action@v4.8.0 + uses: actions/dependency-review-action@v4.8.2 with: show-openssf-scorecard: false diff --git a/.github/workflows/ci-lint-cvat-exchange-oracle.yaml b/.github/workflows/ci-lint-cvat-exchange-oracle.yaml index dbeb088844..22525975c8 100644 --- a/.github/workflows/ci-lint-cvat-exchange-oracle.yaml +++ b/.github/workflows/ci-lint-cvat-exchange-oracle.yaml @@ -2,6 +2,7 @@ name: CVAT Exchange Oracle Lint on: push: + tags-ignore: '*' paths: - 'packages/examples/cvat/exchange-oracle/**' - '.github/workflows/ci-lint-cvat-exchange-oracle.yaml' @@ -18,7 +19,7 @@ jobs: name: CVAT Exchange Oracle Lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Install Poetry uses: snok/install-poetry@v1 with: diff --git a/.github/workflows/ci-lint-cvat-recording-oracle.yaml b/.github/workflows/ci-lint-cvat-recording-oracle.yaml index a1a33cc50c..7d4e0390f1 100644 --- a/.github/workflows/ci-lint-cvat-recording-oracle.yaml +++ b/.github/workflows/ci-lint-cvat-recording-oracle.yaml @@ -2,6 +2,7 @@ name: CVAT Recording Oracle Lint on: push: + tags-ignore: '*' paths: - 'packages/examples/cvat/recording-oracle/**' - '.github/workflows/ci-lint-cvat-recording-oracle.yaml' @@ -18,7 +19,7 @@ jobs: name: CVAT Recording Oracle Lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Install Poetry uses: snok/install-poetry@v1 with: diff --git a/.github/workflows/ci-lint.yaml b/.github/workflows/ci-lint.yaml index e3b4f58e3c..f9b87355b8 100644 --- a/.github/workflows/ci-lint.yaml +++ b/.github/workflows/ci-lint.yaml @@ -2,6 +2,7 @@ name: Lint check on: push: + tags-ignore: '*' paths-ignore: - 'packages/examples/cvat/**' @@ -10,8 +11,8 @@ jobs: name: Lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: .nvmrc cache: yarn diff --git a/.github/workflows/ci-test-core.yaml b/.github/workflows/ci-test-core.yaml index cdc9f050cb..e8c8953b2d 100644 --- a/.github/workflows/ci-test-core.yaml +++ b/.github/workflows/ci-test-core.yaml @@ -2,6 +2,7 @@ name: Protocol check on: push: + tags-ignore: '*' paths: - 'packages/core/**' @@ -10,8 +11,8 @@ jobs: name: Core Test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: .nvmrc cache: yarn diff --git a/.github/workflows/ci-test-cvat-exchange-oracle.yaml b/.github/workflows/ci-test-cvat-exchange-oracle.yaml index 56cd738d2e..f5e28dec2c 100644 --- a/.github/workflows/ci-test-cvat-exchange-oracle.yaml +++ b/.github/workflows/ci-test-cvat-exchange-oracle.yaml @@ -2,6 +2,7 @@ name: CVAT Exchange Oracle Tests on: push: + tags-ignore: '*' paths: - 'packages/examples/cvat/exchange-oracle/**' - 'packages/sdk/python/human-protocol-sdk/**' @@ -11,7 +12,7 @@ jobs: name: CVAT Test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: CVAT Exchange Oracle tests working-directory: ./packages/examples/cvat/exchange-oracle run: docker compose -f docker-compose.test.yml up --attach test --exit-code-from test diff --git a/.github/workflows/ci-test-cvat-recording-oracle.yaml b/.github/workflows/ci-test-cvat-recording-oracle.yaml index 03e9134213..38d5f39f75 100644 --- a/.github/workflows/ci-test-cvat-recording-oracle.yaml +++ b/.github/workflows/ci-test-cvat-recording-oracle.yaml @@ -2,6 +2,7 @@ name: CVAT Recording Oracle Tests on: push: + tags-ignore: '*' paths: - 'packages/examples/cvat/recording-oracle/**' - 'packages/core/**' @@ -11,7 +12,7 @@ jobs: name: CVAT Test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: CVAT Recording Oracle tests working-directory: ./packages/examples/cvat/recording-oracle run: docker compose -f docker-compose.test.yml up --attach test --exit-code-from test diff --git a/.github/workflows/ci-test-dashboard.yaml b/.github/workflows/ci-test-dashboard.yaml index ec54d0e072..aeb06fe38d 100644 --- a/.github/workflows/ci-test-dashboard.yaml +++ b/.github/workflows/ci-test-dashboard.yaml @@ -2,6 +2,7 @@ name: Dashboard Check on: push: + tags-ignore: '*' paths: - "packages/core/**" - "packages/sdk/typescript/human-protocol-sdk/**" @@ -12,8 +13,8 @@ jobs: name: Dashboard Server Test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: .nvmrc cache: yarn diff --git a/.github/workflows/ci-test-faucet-server.yaml b/.github/workflows/ci-test-faucet-server.yaml index 07a4d6faaf..93c53d226c 100644 --- a/.github/workflows/ci-test-faucet-server.yaml +++ b/.github/workflows/ci-test-faucet-server.yaml @@ -2,6 +2,7 @@ name: Faucet server check on: push: + tags-ignore: '*' paths: - "packages/core/**" - "packages/sdk/typescript/human-protocol-sdk/**" @@ -12,8 +13,8 @@ jobs: name: Faucet Server Test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: .nvmrc cache: yarn diff --git a/.github/workflows/ci-test-fortune.yaml b/.github/workflows/ci-test-fortune.yaml index 001eafed1a..497848d717 100644 --- a/.github/workflows/ci-test-fortune.yaml +++ b/.github/workflows/ci-test-fortune.yaml @@ -2,6 +2,7 @@ name: Fortune check on: push: + tags-ignore: '*' paths: - "packages/core/**" - "packages/sdk/typescript/human-protocol-sdk/**" @@ -12,8 +13,8 @@ jobs: name: Fortune Exchange Oracle Tests runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: .nvmrc cache: yarn @@ -28,8 +29,8 @@ jobs: name: Fortune Recording Oracle Tests runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: .nvmrc cache: yarn diff --git a/.github/workflows/ci-test-human-app.yaml b/.github/workflows/ci-test-human-app.yaml index 0fc74e09d9..b1b8db3183 100644 --- a/.github/workflows/ci-test-human-app.yaml +++ b/.github/workflows/ci-test-human-app.yaml @@ -2,6 +2,7 @@ name: Human App Check on: push: + tags-ignore: '*' paths: - "packages/core/**" - "packages/sdk/typescript/human-protocol-sdk/**" @@ -12,8 +13,8 @@ jobs: name: Human App Server Test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: .nvmrc cache: yarn diff --git a/.github/workflows/ci-test-job-launcher.yaml b/.github/workflows/ci-test-job-launcher.yaml index 7d9c1c7007..e3c8cbc85e 100644 --- a/.github/workflows/ci-test-job-launcher.yaml +++ b/.github/workflows/ci-test-job-launcher.yaml @@ -2,6 +2,7 @@ name: Job Launcher Check on: push: + tags-ignore: '*' paths: - "packages/core/**" - "packages/sdk/typescript/human-protocol-sdk/**" @@ -12,8 +13,8 @@ jobs: name: Job Launcher Server Test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: .nvmrc cache: yarn diff --git a/.github/workflows/ci-test-node-sdk.yaml b/.github/workflows/ci-test-node-sdk.yaml index 156c55e986..1de6985fa3 100644 --- a/.github/workflows/ci-test-node-sdk.yaml +++ b/.github/workflows/ci-test-node-sdk.yaml @@ -2,6 +2,7 @@ name: Node.js SDK check on: push: + tags-ignore: '*' paths: - 'packages/core/**' - 'packages/sdk/typescript/human-protocol-sdk/**' @@ -11,8 +12,8 @@ jobs: name: Node.js SDK Test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: .nvmrc cache: yarn diff --git a/.github/workflows/ci-test-python-sdk.yaml b/.github/workflows/ci-test-python-sdk.yaml index 05cba63a54..69b7520cae 100644 --- a/.github/workflows/ci-test-python-sdk.yaml +++ b/.github/workflows/ci-test-python-sdk.yaml @@ -2,6 +2,7 @@ name: Python SDK check on: push: + tags-ignore: '*' paths: - 'packages/core/**' - 'packages/sdk/python/human-protocol-sdk/**' @@ -11,7 +12,7 @@ jobs: name: Python Test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - uses: actions/setup-node@v4 with: node-version-file: .nvmrc diff --git a/.github/workflows/ci-test-reputation-oracle.yaml b/.github/workflows/ci-test-reputation-oracle.yaml index ebee20e1db..15e86cf6c3 100644 --- a/.github/workflows/ci-test-reputation-oracle.yaml +++ b/.github/workflows/ci-test-reputation-oracle.yaml @@ -2,6 +2,7 @@ name: Reputation Oracle Check on: push: + tags-ignore: '*' paths: - "packages/core/**" - "packages/sdk/typescript/human-protocol-sdk/**" @@ -12,8 +13,8 @@ jobs: name: Reputation Oracle Test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: .nvmrc cache: yarn diff --git a/.github/workflows/ci-test-subgraph.yaml b/.github/workflows/ci-test-subgraph.yaml index 9f4d1b1e2c..37c7d68da4 100644 --- a/.github/workflows/ci-test-subgraph.yaml +++ b/.github/workflows/ci-test-subgraph.yaml @@ -2,6 +2,7 @@ name: Subgraph check on: push: + tags-ignore: '*' paths: - "packages/core/**" - "packages/sdk/typescript/subgraph/**" @@ -12,8 +13,8 @@ jobs: # TODO: Use ubuntu-latest when graph binary is not failing on ubuntu 24.04 runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v5 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version-file: .nvmrc cache: yarn diff --git a/docs/sdk/python/human_protocol_sdk.md b/docs/sdk/python/human_protocol_sdk.md index 65c44efcce..09d67a12cb 100644 --- a/docs/sdk/python/human_protocol_sdk.md +++ b/docs/sdk/python/human_protocol_sdk.md @@ -207,6 +207,7 @@ * [`SubgraphOptions`](human_protocol_sdk.utils.md#human_protocol_sdk.utils.SubgraphOptions) * [`SubgraphOptions.__init__()`](human_protocol_sdk.utils.md#human_protocol_sdk.utils.SubgraphOptions.__init__) * [`SubgraphOptions.base_delay`](human_protocol_sdk.utils.md#human_protocol_sdk.utils.SubgraphOptions.base_delay) + * [`SubgraphOptions.indexer_id`](human_protocol_sdk.utils.md#human_protocol_sdk.utils.SubgraphOptions.indexer_id) * [`SubgraphOptions.max_retries`](human_protocol_sdk.utils.md#human_protocol_sdk.utils.SubgraphOptions.max_retries) * [`custom_gql_fetch()`](human_protocol_sdk.utils.md#human_protocol_sdk.utils.custom_gql_fetch) * [`get_contract_interface()`](human_protocol_sdk.utils.md#human_protocol_sdk.utils.get_contract_interface) diff --git a/docs/sdk/python/human_protocol_sdk.utils.md b/docs/sdk/python/human_protocol_sdk.utils.md index 497c686849..e2b2289ca3 100644 --- a/docs/sdk/python/human_protocol_sdk.utils.md +++ b/docs/sdk/python/human_protocol_sdk.utils.md @@ -1,15 +1,17 @@ # human_protocol_sdk.utils module -### *class* human_protocol_sdk.utils.SubgraphOptions(max_retries=None, base_delay=None) +### *class* human_protocol_sdk.utils.SubgraphOptions(max_retries=None, base_delay=None, indexer_id=None) Bases: `object` Configuration for subgraph logic. -#### \_\_init_\_(max_retries=None, base_delay=None) +#### \_\_init_\_(max_retries=None, base_delay=None, indexer_id=None) #### base_delay *: `Optional`[`int`]* *= None* +#### indexer_id *: `Optional`[`str`]* *= None* + #### max_retries *: `Optional`[`int`]* *= None* ### human_protocol_sdk.utils.custom_gql_fetch(network, query, params=None, options=None) diff --git a/docs/sdk/typescript/base/classes/BaseEthersClient.md b/docs/sdk/typescript/base/classes/BaseEthersClient.md index 60d7959b0e..67d2394395 100644 --- a/docs/sdk/typescript/base/classes/BaseEthersClient.md +++ b/docs/sdk/typescript/base/classes/BaseEthersClient.md @@ -6,7 +6,7 @@ # Abstract Class: BaseEthersClient -Defined in: [base.ts:10](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L10) +Defined in: [base.ts:10](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L10) ## Introduction @@ -24,7 +24,7 @@ This class is used as a base class for other clients making on-chain calls. > **new BaseEthersClient**(`runner`, `networkData`): `BaseEthersClient` -Defined in: [base.ts:20](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L20) +Defined in: [base.ts:20](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L20) **BaseClient constructor** @@ -52,7 +52,7 @@ The network information required to connect to the contracts > **networkData**: [`NetworkData`](../../types/type-aliases/NetworkData.md) -Defined in: [base.ts:12](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12) +Defined in: [base.ts:12](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12) *** @@ -60,4 +60,4 @@ Defined in: [base.ts:12](https://github.com/humanprotocol/human-protocol/blob/61 > `protected` **runner**: `ContractRunner` -Defined in: [base.ts:11](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L11) +Defined in: [base.ts:11](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L11) diff --git a/docs/sdk/typescript/encryption/classes/Encryption.md b/docs/sdk/typescript/encryption/classes/Encryption.md index 8aa3c68e40..1e622c6cfb 100644 --- a/docs/sdk/typescript/encryption/classes/Encryption.md +++ b/docs/sdk/typescript/encryption/classes/Encryption.md @@ -6,7 +6,7 @@ # Class: Encryption -Defined in: [encryption.ts:58](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L58) +Defined in: [encryption.ts:58](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L58) ## Introduction @@ -53,7 +53,7 @@ const encryption = await Encryption.build(privateKey, passphrase); > **new Encryption**(`privateKey`): `Encryption` -Defined in: [encryption.ts:66](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L66) +Defined in: [encryption.ts:66](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L66) Constructor for the Encryption class. @@ -75,7 +75,7 @@ The private key. > **decrypt**(`message`, `publicKey?`): `Promise`\<`Uint8Array`\<`ArrayBufferLike`\>\> -Defined in: [encryption.ts:194](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L194) +Defined in: [encryption.ts:194](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L194) This function decrypts messages using the private key. In addition, the public key can be added for signature verification. @@ -129,7 +129,7 @@ const resultMessage = await encryption.decrypt('message'); > **sign**(`message`): `Promise`\<`string`\> -Defined in: [encryption.ts:251](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L251) +Defined in: [encryption.ts:251](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L251) This function signs a message using the private key used to initialize the client. @@ -165,7 +165,7 @@ const resultMessage = await encryption.sign('message'); > **signAndEncrypt**(`message`, `publicKeys`): `Promise`\<`string`\> -Defined in: [encryption.ts:142](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L142) +Defined in: [encryption.ts:142](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L142) This function signs and encrypts a message using the private key used to initialize the client and the specified public keys. @@ -232,7 +232,7 @@ const resultMessage = await encryption.signAndEncrypt('message', publicKeys); > `static` **build**(`privateKeyArmored`, `passphrase?`): `Promise`\<`Encryption`\> -Defined in: [encryption.ts:77](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L77) +Defined in: [encryption.ts:77](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L77) Builds an Encryption instance by decrypting the private key from an encrypted private key and passphrase. diff --git a/docs/sdk/typescript/encryption/classes/EncryptionUtils.md b/docs/sdk/typescript/encryption/classes/EncryptionUtils.md index 1e7f4f6b06..75f3cbcc88 100644 --- a/docs/sdk/typescript/encryption/classes/EncryptionUtils.md +++ b/docs/sdk/typescript/encryption/classes/EncryptionUtils.md @@ -6,7 +6,7 @@ # Class: EncryptionUtils -Defined in: [encryption.ts:290](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L290) +Defined in: [encryption.ts:290](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L290) ## Introduction @@ -48,7 +48,7 @@ const keyPair = await EncryptionUtils.generateKeyPair('Human', 'human@hmt.ai'); > `static` **encrypt**(`message`, `publicKeys`): `Promise`\<`string`\> -Defined in: [encryption.ts:444](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L444) +Defined in: [encryption.ts:444](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L444) This function encrypts a message using the specified public keys. @@ -111,7 +111,7 @@ const result = await EncryptionUtils.encrypt('message', publicKeys); > `static` **generateKeyPair**(`name`, `email`, `passphrase`): `Promise`\<[`IKeyPair`](../../interfaces/interfaces/IKeyPair.md)\> -Defined in: [encryption.ts:382](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L382) +Defined in: [encryption.ts:382](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L382) This function generates a key pair for encryption and decryption. @@ -158,7 +158,7 @@ const result = await EncryptionUtils.generateKeyPair(name, email, passphrase); > `static` **getSignedData**(`message`): `Promise`\<`string`\> -Defined in: [encryption.ts:351](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L351) +Defined in: [encryption.ts:351](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L351) This function gets signed data from a signed message. @@ -190,7 +190,7 @@ const signedData = await EncryptionUtils.getSignedData('message'); > `static` **isEncrypted**(`message`): `boolean` -Defined in: [encryption.ts:494](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L494) +Defined in: [encryption.ts:494](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L494) Verifies if a message appears to be encrypted with OpenPGP. @@ -238,7 +238,7 @@ if (isEncrypted) { > `static` **verify**(`message`, `publicKey`): `Promise`\<`boolean`\> -Defined in: [encryption.ts:318](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L318) +Defined in: [encryption.ts:318](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L318) This function verifies the signature of a signed message using the public key. diff --git a/docs/sdk/typescript/enums/enumerations/ChainId.md b/docs/sdk/typescript/enums/enumerations/ChainId.md index f509f60efe..2a65625054 100644 --- a/docs/sdk/typescript/enums/enumerations/ChainId.md +++ b/docs/sdk/typescript/enums/enumerations/ChainId.md @@ -6,7 +6,7 @@ # Enumeration: ChainId -Defined in: [enums.ts:1](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L1) +Defined in: [enums.ts:1](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L1) ## Enumeration Members @@ -14,7 +14,7 @@ Defined in: [enums.ts:1](https://github.com/humanprotocol/human-protocol/blob/61 > **ALL**: `-1` -Defined in: [enums.ts:2](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L2) +Defined in: [enums.ts:2](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L2) *** @@ -22,7 +22,7 @@ Defined in: [enums.ts:2](https://github.com/humanprotocol/human-protocol/blob/61 > **BSC\_MAINNET**: `56` -Defined in: [enums.ts:5](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L5) +Defined in: [enums.ts:5](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L5) *** @@ -30,7 +30,7 @@ Defined in: [enums.ts:5](https://github.com/humanprotocol/human-protocol/blob/61 > **BSC\_TESTNET**: `97` -Defined in: [enums.ts:6](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L6) +Defined in: [enums.ts:6](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L6) *** @@ -38,7 +38,7 @@ Defined in: [enums.ts:6](https://github.com/humanprotocol/human-protocol/blob/61 > **LOCALHOST**: `1338` -Defined in: [enums.ts:9](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L9) +Defined in: [enums.ts:9](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L9) *** @@ -46,7 +46,7 @@ Defined in: [enums.ts:9](https://github.com/humanprotocol/human-protocol/blob/61 > **MAINNET**: `1` -Defined in: [enums.ts:3](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L3) +Defined in: [enums.ts:3](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L3) *** @@ -54,7 +54,7 @@ Defined in: [enums.ts:3](https://github.com/humanprotocol/human-protocol/blob/61 > **POLYGON**: `137` -Defined in: [enums.ts:7](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L7) +Defined in: [enums.ts:7](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L7) *** @@ -62,7 +62,7 @@ Defined in: [enums.ts:7](https://github.com/humanprotocol/human-protocol/blob/61 > **POLYGON\_AMOY**: `80002` -Defined in: [enums.ts:8](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L8) +Defined in: [enums.ts:8](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L8) *** @@ -70,4 +70,4 @@ Defined in: [enums.ts:8](https://github.com/humanprotocol/human-protocol/blob/61 > **SEPOLIA**: `11155111` -Defined in: [enums.ts:4](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L4) +Defined in: [enums.ts:4](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L4) diff --git a/docs/sdk/typescript/enums/enumerations/OperatorCategory.md b/docs/sdk/typescript/enums/enumerations/OperatorCategory.md index 6619d45f18..dcfb8ec5f7 100644 --- a/docs/sdk/typescript/enums/enumerations/OperatorCategory.md +++ b/docs/sdk/typescript/enums/enumerations/OperatorCategory.md @@ -6,7 +6,7 @@ # Enumeration: OperatorCategory -Defined in: [enums.ts:17](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L17) +Defined in: [enums.ts:17](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L17) ## Enumeration Members @@ -14,7 +14,7 @@ Defined in: [enums.ts:17](https://github.com/humanprotocol/human-protocol/blob/6 > **MACHINE\_LEARNING**: `"machine_learning"` -Defined in: [enums.ts:18](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L18) +Defined in: [enums.ts:18](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L18) *** @@ -22,4 +22,4 @@ Defined in: [enums.ts:18](https://github.com/humanprotocol/human-protocol/blob/6 > **MARKET\_MAKING**: `"market_making"` -Defined in: [enums.ts:19](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L19) +Defined in: [enums.ts:19](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L19) diff --git a/docs/sdk/typescript/enums/enumerations/OrderDirection.md b/docs/sdk/typescript/enums/enumerations/OrderDirection.md index 41709226b7..e02a68c904 100644 --- a/docs/sdk/typescript/enums/enumerations/OrderDirection.md +++ b/docs/sdk/typescript/enums/enumerations/OrderDirection.md @@ -6,7 +6,7 @@ # Enumeration: OrderDirection -Defined in: [enums.ts:12](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L12) +Defined in: [enums.ts:12](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L12) ## Enumeration Members @@ -14,7 +14,7 @@ Defined in: [enums.ts:12](https://github.com/humanprotocol/human-protocol/blob/6 > **ASC**: `"asc"` -Defined in: [enums.ts:13](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L13) +Defined in: [enums.ts:13](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L13) *** @@ -22,4 +22,4 @@ Defined in: [enums.ts:13](https://github.com/humanprotocol/human-protocol/blob/6 > **DESC**: `"desc"` -Defined in: [enums.ts:14](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L14) +Defined in: [enums.ts:14](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/enums.ts#L14) diff --git a/docs/sdk/typescript/escrow/classes/EscrowClient.md b/docs/sdk/typescript/escrow/classes/EscrowClient.md index cf42422acb..6f353e103f 100644 --- a/docs/sdk/typescript/escrow/classes/EscrowClient.md +++ b/docs/sdk/typescript/escrow/classes/EscrowClient.md @@ -6,7 +6,7 @@ # Class: EscrowClient -Defined in: [escrow.ts:148](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L148) +Defined in: [escrow.ts:148](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L148) ## Introduction @@ -86,7 +86,7 @@ const escrowClient = await EscrowClient.build(provider); > **new EscrowClient**(`runner`, `networkData`): `EscrowClient` -Defined in: [escrow.ts:157](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L157) +Defined in: [escrow.ts:157](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L157) **EscrowClient constructor** @@ -118,7 +118,7 @@ The network information required to connect to the Escrow contract > **networkData**: [`NetworkData`](../../types/type-aliases/NetworkData.md) -Defined in: [base.ts:12](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12) +Defined in: [base.ts:12](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12) #### Inherited from @@ -130,7 +130,7 @@ Defined in: [base.ts:12](https://github.com/humanprotocol/human-protocol/blob/61 > `protected` **runner**: `ContractRunner` -Defined in: [base.ts:11](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L11) +Defined in: [base.ts:11](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L11) #### Inherited from @@ -144,7 +144,7 @@ Defined in: [base.ts:11](https://github.com/humanprotocol/human-protocol/blob/61 > **bulkPayOut**(`escrowAddress`, `recipients`, `amounts`, `finalResultsUrl`, `finalResultsHash`, `txId`, `forceComplete`, `txOptions?`): `Promise`\<`void`\> -Defined in: [escrow.ts:802](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L802) +Defined in: [escrow.ts:803](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L803) This function pays out the amounts specified to the workers and sets the URL of the final results file. @@ -232,7 +232,7 @@ await escrowClient.bulkPayOut('0x62dD51230A30401C455c8398d06F85e4EaB6309f', reci > **bulkPayOut**(`escrowAddress`, `recipients`, `amounts`, `finalResultsUrl`, `finalResultsHash`, `payoutId`, `forceComplete`, `txOptions?`): `Promise`\<`void`\> -Defined in: [escrow.ts:852](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L852) +Defined in: [escrow.ts:853](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L853) This function pays out the amounts specified to the workers and sets the URL of the final results file. @@ -323,7 +323,7 @@ await escrowClient.bulkPayOut('0x62dD51230A30401C455c8398d06F85e4EaB6309f', reci > **cancel**(`escrowAddress`, `txOptions?`): `Promise`\<`void`\> -Defined in: [escrow.ts:951](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L951) +Defined in: [escrow.ts:952](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L952) This function cancels the specified escrow and sends the balance to the canceler. @@ -369,7 +369,7 @@ await escrowClient.cancel('0x62dD51230A30401C455c8398d06F85e4EaB6309f'); > **complete**(`escrowAddress`, `txOptions?`): `Promise`\<`void`\> -Defined in: [escrow.ts:742](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L742) +Defined in: [escrow.ts:743](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L743) This function sets the status of an escrow to completed. @@ -417,7 +417,7 @@ await escrowClient.complete('0x62dD51230A30401C455c8398d06F85e4EaB6309f'); > **createBulkPayoutTransaction**(`escrowAddress`, `recipients`, `amounts`, `finalResultsUrl`, `finalResultsHash`, `payoutId`, `forceComplete`, `txOptions?`): `Promise`\<[`TransactionLikeWithNonce`](../../types/type-aliases/TransactionLikeWithNonce.md)\> -Defined in: [escrow.ts:1149](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1149) +Defined in: [escrow.ts:1150](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1150) Creates a prepared transaction for bulk payout without immediately sending it. @@ -511,7 +511,7 @@ console.log('Tx hash:', ethers.keccak256(signedTransaction)); > **createEscrow**(`tokenAddress`, `jobRequesterId`, `txOptions?`): `Promise`\<`string`\> -Defined in: [escrow.ts:235](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L235) +Defined in: [escrow.ts:235](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L235) This function creates an escrow contract that uses the token passed to pay oracle fees and reward workers. @@ -567,7 +567,7 @@ const escrowAddress = await escrowClient.createEscrow(tokenAddress, jobRequester > **createFundAndSetupEscrow**(`tokenAddress`, `amount`, `jobRequesterId`, `escrowConfig`, `txOptions?`): `Promise`\<`string`\> -Defined in: [escrow.ts:372](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L372) +Defined in: [escrow.ts:373](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L373) Creates, funds, and sets up a new escrow contract in a single transaction. @@ -664,7 +664,7 @@ console.log('Escrow created at:', escrowAddress); > **fund**(`escrowAddress`, `amount`, `txOptions?`): `Promise`\<`void`\> -Defined in: [escrow.ts:545](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L545) +Defined in: [escrow.ts:546](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L546) This function adds funds of the chosen token to the escrow. @@ -717,7 +717,7 @@ await escrowClient.fund('0x62dD51230A30401C455c8398d06F85e4EaB6309f', amount); > **getBalance**(`escrowAddress`): `Promise`\<`bigint`\> -Defined in: [escrow.ts:1294](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1294) +Defined in: [escrow.ts:1295](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1295) This function returns the balance for a specified escrow address. @@ -755,7 +755,7 @@ const balance = await escrowClient.getBalance('0x62dD51230A30401C455c8398d06F85e > **getExchangeOracleAddress**(`escrowAddress`): `Promise`\<`string`\> -Defined in: [escrow.ts:1755](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1755) +Defined in: [escrow.ts:1756](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1756) This function returns the exchange oracle address for a given escrow. @@ -793,7 +793,7 @@ const oracleAddress = await escrowClient.getExchangeOracleAddress('0x62dD51230A3 > **getFactoryAddress**(`escrowAddress`): `Promise`\<`string`\> -Defined in: [escrow.ts:1793](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1793) +Defined in: [escrow.ts:1794](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1794) This function returns the escrow factory address for a given escrow. @@ -831,7 +831,7 @@ const factoryAddress = await escrowClient.getFactoryAddress('0x62dD51230A30401C4 > **getIntermediateResultsHash**(`escrowAddress`): `Promise`\<`string`\> -Defined in: [escrow.ts:1527](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1527) +Defined in: [escrow.ts:1528](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1528) This function returns the intermediate results hash. @@ -869,7 +869,7 @@ const intermediateResultsHash = await escrowClient.getIntermediateResultsHash('0 > **getIntermediateResultsUrl**(`escrowAddress`): `Promise`\<`string`\> -Defined in: [escrow.ts:1489](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1489) +Defined in: [escrow.ts:1490](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1490) This function returns the intermediate results file URL. @@ -907,7 +907,7 @@ const intermediateResultsUrl = await escrowClient.getIntermediateResultsUrl('0x6 > **getJobLauncherAddress**(`escrowAddress`): `Promise`\<`string`\> -Defined in: [escrow.ts:1679](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1679) +Defined in: [escrow.ts:1680](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1680) This function returns the job launcher address for a given escrow. @@ -945,7 +945,7 @@ const jobLauncherAddress = await escrowClient.getJobLauncherAddress('0x62dD51230 > **getManifest**(`escrowAddress`): `Promise`\<`string`\> -Defined in: [escrow.ts:1413](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1413) +Defined in: [escrow.ts:1414](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1414) This function returns the manifest. Could be a URL or a JSON string. @@ -983,7 +983,7 @@ const manifest = await escrowClient.getManifest('0x62dD51230A30401C455c8398d06F8 > **getManifestHash**(`escrowAddress`): `Promise`\<`string`\> -Defined in: [escrow.ts:1375](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1375) +Defined in: [escrow.ts:1376](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1376) This function returns the manifest file hash. @@ -1021,7 +1021,7 @@ const manifestHash = await escrowClient.getManifestHash('0x62dD51230A30401C455c8 > **getRecordingOracleAddress**(`escrowAddress`): `Promise`\<`string`\> -Defined in: [escrow.ts:1641](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1641) +Defined in: [escrow.ts:1642](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1642) This function returns the recording oracle address for a given escrow. @@ -1059,7 +1059,7 @@ const oracleAddress = await escrowClient.getRecordingOracleAddress('0x62dD51230A > **getReputationOracleAddress**(`escrowAddress`): `Promise`\<`string`\> -Defined in: [escrow.ts:1717](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1717) +Defined in: [escrow.ts:1718](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1718) This function returns the reputation oracle address for a given escrow. @@ -1097,7 +1097,7 @@ const oracleAddress = await escrowClient.getReputationOracleAddress('0x62dD51230 > **getReservedFunds**(`escrowAddress`): `Promise`\<`bigint`\> -Defined in: [escrow.ts:1338](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1338) +Defined in: [escrow.ts:1339](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1339) This function returns the reserved funds for a specified escrow address. @@ -1135,7 +1135,7 @@ const reservedFunds = await escrowClient.getReservedFunds('0x62dD51230A30401C455 > **getResultsUrl**(`escrowAddress`): `Promise`\<`string`\> -Defined in: [escrow.ts:1451](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1451) +Defined in: [escrow.ts:1452](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1452) This function returns the results file URL. @@ -1173,7 +1173,7 @@ const resultsUrl = await escrowClient.getResultsUrl('0x62dD51230A30401C455c8398d > **getStatus**(`escrowAddress`): `Promise`\<[`EscrowStatus`](../../types/enumerations/EscrowStatus.md)\> -Defined in: [escrow.ts:1603](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1603) +Defined in: [escrow.ts:1604](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1604) This function returns the current status of the escrow. @@ -1211,7 +1211,7 @@ const status = await escrowClient.getStatus('0x62dD51230A30401C455c8398d06F85e4E > **getTokenAddress**(`escrowAddress`): `Promise`\<`string`\> -Defined in: [escrow.ts:1565](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1565) +Defined in: [escrow.ts:1566](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1566) This function returns the token address used for funding the escrow. @@ -1249,7 +1249,7 @@ const tokenAddress = await escrowClient.getTokenAddress('0x62dD51230A30401C455c8 > **requestCancellation**(`escrowAddress`, `txOptions?`): `Promise`\<`void`\> -Defined in: [escrow.ts:997](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L997) +Defined in: [escrow.ts:998](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L998) This function requests the cancellation of the specified escrow (moves status to ToCancel or finalizes if expired). @@ -1297,7 +1297,7 @@ await escrowClient.requestCancellation('0x62dD51230A30401C455c8398d06F85e4EaB630 > **setup**(`escrowAddress`, `escrowConfig`, `txOptions?`): `Promise`\<`void`\> -Defined in: [escrow.ts:469](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L469) +Defined in: [escrow.ts:470](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L470) This function sets up the parameters of the escrow. @@ -1364,7 +1364,7 @@ await escrowClient.setup(escrowAddress, escrowConfig); > **storeResults**(`escrowAddress`, `url`, `hash`, `fundsToReserve`, `txOptions?`): `Promise`\<`void`\> -Defined in: [escrow.ts:611](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L611) +Defined in: [escrow.ts:612](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L612) This function stores the results URL and hash. @@ -1428,7 +1428,7 @@ await escrowClient.storeResults('0x62dD51230A30401C455c8398d06F85e4EaB6309f', 'h > **storeResults**(`escrowAddress`, `url`, `hash`, `txOptions?`): `Promise`\<`void`\> -Defined in: [escrow.ts:647](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L647) +Defined in: [escrow.ts:648](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L648) This function stores the results URL and hash. @@ -1488,7 +1488,7 @@ await escrowClient.storeResults('0x62dD51230A30401C455c8398d06F85e4EaB6309f', 'h > **withdraw**(`escrowAddress`, `tokenAddress`, `txOptions?`): `Promise`\<[`IEscrowWithdraw`](../../interfaces/interfaces/IEscrowWithdraw.md)\> -Defined in: [escrow.ts:1048](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1048) +Defined in: [escrow.ts:1049](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1049) This function withdraws additional tokens in the escrow to the canceler. @@ -1545,7 +1545,7 @@ await escrowClient.withdraw( > `static` **build**(`runner`): `Promise`\<`EscrowClient`\> -Defined in: [escrow.ts:175](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L175) +Defined in: [escrow.ts:175](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L175) Creates an instance of EscrowClient from a Runner. diff --git a/docs/sdk/typescript/escrow/classes/EscrowUtils.md b/docs/sdk/typescript/escrow/classes/EscrowUtils.md index 6c1d187a70..68694e7429 100644 --- a/docs/sdk/typescript/escrow/classes/EscrowUtils.md +++ b/docs/sdk/typescript/escrow/classes/EscrowUtils.md @@ -6,7 +6,7 @@ # Class: EscrowUtils -Defined in: [escrow.ts:1842](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1842) +Defined in: [escrow.ts:1843](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1843) ## Introduction @@ -54,7 +54,7 @@ const escrowAddresses = new EscrowUtils.getEscrows({ > `static` **getCancellationRefund**(`chainId`, `escrowAddress`, `options?`): `Promise`\<[`ICancellationRefund`](../../interfaces/interfaces/ICancellationRefund.md) \| `null`\> -Defined in: [escrow.ts:2434](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L2434) +Defined in: [escrow.ts:2435](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L2435) This function returns the cancellation refund for a given escrow address. @@ -127,7 +127,7 @@ const cancellationRefund = await EscrowUtils.getCancellationRefund(ChainId.POLYG > `static` **getCancellationRefunds**(`filter`, `options?`): `Promise`\<[`ICancellationRefund`](../../interfaces/interfaces/ICancellationRefund.md)[]\> -Defined in: [escrow.ts:2338](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L2338) +Defined in: [escrow.ts:2339](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L2339) This function returns the cancellation refunds for a given set of networks. @@ -198,7 +198,7 @@ console.log(cancellationRefunds); > `static` **getEscrow**(`chainId`, `escrowAddress`, `options?`): `Promise`\<[`IEscrow`](../../interfaces/interfaces/IEscrow.md) \| `null`\> -Defined in: [escrow.ts:2067](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L2067) +Defined in: [escrow.ts:2068](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L2068) This function returns the escrow data for a given address. @@ -289,7 +289,7 @@ const escrow = new EscrowUtils.getEscrow(ChainId.POLYGON_AMOY, "0x12345678901234 > `static` **getEscrows**(`filter`, `options?`): `Promise`\<[`IEscrow`](../../interfaces/interfaces/IEscrow.md)[]\> -Defined in: [escrow.ts:1946](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1946) +Defined in: [escrow.ts:1947](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L1947) This function returns an array of escrows based on the specified filter parameters. @@ -413,7 +413,7 @@ const escrows = await EscrowUtils.getEscrows(filters); > `static` **getPayouts**(`filter`, `options?`): `Promise`\<[`IPayout`](../../interfaces/interfaces/IPayout.md)[]\> -Defined in: [escrow.ts:2242](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L2242) +Defined in: [escrow.ts:2243](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L2243) This function returns the payouts for a given set of networks. @@ -463,7 +463,7 @@ console.log(payouts); > `static` **getStatusEvents**(`filter`, `options?`): `Promise`\<[`IStatusEvent`](../../interfaces/interfaces/IStatusEvent.md)[]\> -Defined in: [escrow.ts:2150](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L2150) +Defined in: [escrow.ts:2151](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts#L2151) This function returns the status events for a given set of networks within an optional date range. diff --git a/docs/sdk/typescript/graphql/types/interfaces/IOperatorSubgraph.md b/docs/sdk/typescript/graphql/types/interfaces/IOperatorSubgraph.md index fde9259f62..d94e596899 100644 --- a/docs/sdk/typescript/graphql/types/interfaces/IOperatorSubgraph.md +++ b/docs/sdk/typescript/graphql/types/interfaces/IOperatorSubgraph.md @@ -6,7 +6,7 @@ # Interface: IOperatorSubgraph -Defined in: [graphql/types.ts:143](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L143) +Defined in: [graphql/types.ts:143](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L143) ## Properties @@ -14,7 +14,7 @@ Defined in: [graphql/types.ts:143](https://github.com/humanprotocol/human-protoc > **address**: `string` -Defined in: [graphql/types.ts:145](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L145) +Defined in: [graphql/types.ts:145](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L145) *** @@ -22,7 +22,7 @@ Defined in: [graphql/types.ts:145](https://github.com/humanprotocol/human-protoc > **amountJobsProcessed**: `string` -Defined in: [graphql/types.ts:146](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L146) +Defined in: [graphql/types.ts:146](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L146) *** @@ -30,7 +30,7 @@ Defined in: [graphql/types.ts:146](https://github.com/humanprotocol/human-protoc > **category**: `string` \| `null` -Defined in: [graphql/types.ts:156](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L156) +Defined in: [graphql/types.ts:156](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L156) *** @@ -38,7 +38,7 @@ Defined in: [graphql/types.ts:156](https://github.com/humanprotocol/human-protoc > **fee**: `string` \| `null` -Defined in: [graphql/types.ts:148](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L148) +Defined in: [graphql/types.ts:148](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L148) *** @@ -46,7 +46,7 @@ Defined in: [graphql/types.ts:148](https://github.com/humanprotocol/human-protoc > **id**: `string` -Defined in: [graphql/types.ts:144](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L144) +Defined in: [graphql/types.ts:144](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L144) *** @@ -54,7 +54,7 @@ Defined in: [graphql/types.ts:144](https://github.com/humanprotocol/human-protoc > **jobTypes**: `string` \| `string`[] \| `null` -Defined in: [graphql/types.ts:157](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L157) +Defined in: [graphql/types.ts:157](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L157) *** @@ -62,7 +62,7 @@ Defined in: [graphql/types.ts:157](https://github.com/humanprotocol/human-protoc > **name**: `string` \| `null` -Defined in: [graphql/types.ts:155](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L155) +Defined in: [graphql/types.ts:155](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L155) *** @@ -70,7 +70,7 @@ Defined in: [graphql/types.ts:155](https://github.com/humanprotocol/human-protoc > **publicKey**: `string` \| `null` -Defined in: [graphql/types.ts:149](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L149) +Defined in: [graphql/types.ts:149](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L149) *** @@ -78,7 +78,7 @@ Defined in: [graphql/types.ts:149](https://github.com/humanprotocol/human-protoc > **registrationInstructions**: `string` \| `null` -Defined in: [graphql/types.ts:154](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L154) +Defined in: [graphql/types.ts:154](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L154) *** @@ -86,7 +86,7 @@ Defined in: [graphql/types.ts:154](https://github.com/humanprotocol/human-protoc > **registrationNeeded**: `boolean` \| `null` -Defined in: [graphql/types.ts:153](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L153) +Defined in: [graphql/types.ts:153](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L153) *** @@ -94,7 +94,7 @@ Defined in: [graphql/types.ts:153](https://github.com/humanprotocol/human-protoc > **reputationNetworks**: `object`[] -Defined in: [graphql/types.ts:158](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L158) +Defined in: [graphql/types.ts:158](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L158) #### address @@ -106,7 +106,7 @@ Defined in: [graphql/types.ts:158](https://github.com/humanprotocol/human-protoc > **role**: `string` \| `null` -Defined in: [graphql/types.ts:147](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L147) +Defined in: [graphql/types.ts:147](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L147) *** @@ -114,7 +114,7 @@ Defined in: [graphql/types.ts:147](https://github.com/humanprotocol/human-protoc > **staker**: \{ `lastDepositTimestamp`: `string`; `lockedAmount`: `string`; `lockedUntilTimestamp`: `string`; `slashedAmount`: `string`; `stakedAmount`: `string`; `withdrawnAmount`: `string`; \} \| `null` -Defined in: [graphql/types.ts:159](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L159) +Defined in: [graphql/types.ts:159](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L159) *** @@ -122,7 +122,7 @@ Defined in: [graphql/types.ts:159](https://github.com/humanprotocol/human-protoc > **url**: `string` \| `null` -Defined in: [graphql/types.ts:152](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L152) +Defined in: [graphql/types.ts:152](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L152) *** @@ -130,7 +130,7 @@ Defined in: [graphql/types.ts:152](https://github.com/humanprotocol/human-protoc > **webhookUrl**: `string` \| `null` -Defined in: [graphql/types.ts:150](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L150) +Defined in: [graphql/types.ts:150](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L150) *** @@ -138,4 +138,4 @@ Defined in: [graphql/types.ts:150](https://github.com/humanprotocol/human-protoc > **website**: `string` \| `null` -Defined in: [graphql/types.ts:151](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L151) +Defined in: [graphql/types.ts:151](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L151) diff --git a/docs/sdk/typescript/graphql/types/interfaces/IReputationNetworkSubgraph.md b/docs/sdk/typescript/graphql/types/interfaces/IReputationNetworkSubgraph.md index 3aa1d49877..abeb311aa3 100644 --- a/docs/sdk/typescript/graphql/types/interfaces/IReputationNetworkSubgraph.md +++ b/docs/sdk/typescript/graphql/types/interfaces/IReputationNetworkSubgraph.md @@ -6,7 +6,7 @@ # Interface: IReputationNetworkSubgraph -Defined in: [graphql/types.ts:169](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L169) +Defined in: [graphql/types.ts:169](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L169) ## Extends @@ -18,7 +18,7 @@ Defined in: [graphql/types.ts:169](https://github.com/humanprotocol/human-protoc > **address**: `string` -Defined in: [interfaces.ts:42](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L42) +Defined in: [interfaces.ts:42](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L42) #### Inherited from @@ -30,7 +30,7 @@ Defined in: [interfaces.ts:42](https://github.com/humanprotocol/human-protocol/b > **id**: `string` -Defined in: [interfaces.ts:41](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L41) +Defined in: [interfaces.ts:41](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L41) #### Inherited from @@ -42,4 +42,4 @@ Defined in: [interfaces.ts:41](https://github.com/humanprotocol/human-protocol/b > **operators**: [`IOperatorSubgraph`](IOperatorSubgraph.md)[] -Defined in: [graphql/types.ts:171](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L171) +Defined in: [graphql/types.ts:171](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L171) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/CancellationRefundData.md b/docs/sdk/typescript/graphql/types/type-aliases/CancellationRefundData.md index 83dcc92dc4..e0b294825e 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/CancellationRefundData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/CancellationRefundData.md @@ -8,7 +8,7 @@ > **CancellationRefundData** = `object` -Defined in: [graphql/types.ts:182](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L182) +Defined in: [graphql/types.ts:182](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L182) ## Properties @@ -16,7 +16,7 @@ Defined in: [graphql/types.ts:182](https://github.com/humanprotocol/human-protoc > **amount**: `string` -Defined in: [graphql/types.ts:186](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L186) +Defined in: [graphql/types.ts:186](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L186) *** @@ -24,7 +24,7 @@ Defined in: [graphql/types.ts:186](https://github.com/humanprotocol/human-protoc > **block**: `string` -Defined in: [graphql/types.ts:187](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L187) +Defined in: [graphql/types.ts:187](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L187) *** @@ -32,7 +32,7 @@ Defined in: [graphql/types.ts:187](https://github.com/humanprotocol/human-protoc > **escrowAddress**: `string` -Defined in: [graphql/types.ts:184](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L184) +Defined in: [graphql/types.ts:184](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L184) *** @@ -40,7 +40,7 @@ Defined in: [graphql/types.ts:184](https://github.com/humanprotocol/human-protoc > **id**: `string` -Defined in: [graphql/types.ts:183](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L183) +Defined in: [graphql/types.ts:183](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L183) *** @@ -48,7 +48,7 @@ Defined in: [graphql/types.ts:183](https://github.com/humanprotocol/human-protoc > **receiver**: `string` -Defined in: [graphql/types.ts:185](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L185) +Defined in: [graphql/types.ts:185](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L185) *** @@ -56,7 +56,7 @@ Defined in: [graphql/types.ts:185](https://github.com/humanprotocol/human-protoc > **timestamp**: `string` -Defined in: [graphql/types.ts:188](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L188) +Defined in: [graphql/types.ts:188](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L188) *** @@ -64,4 +64,4 @@ Defined in: [graphql/types.ts:188](https://github.com/humanprotocol/human-protoc > **txHash**: `string` -Defined in: [graphql/types.ts:189](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L189) +Defined in: [graphql/types.ts:189](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L189) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/EscrowData.md b/docs/sdk/typescript/graphql/types/type-aliases/EscrowData.md index 59bcce6f27..adefaab72c 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/EscrowData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/EscrowData.md @@ -8,7 +8,7 @@ > **EscrowData** = `object` -Defined in: [graphql/types.ts:3](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L3) +Defined in: [graphql/types.ts:3](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L3) ## Properties @@ -16,7 +16,7 @@ Defined in: [graphql/types.ts:3](https://github.com/humanprotocol/human-protocol > **address**: `string` -Defined in: [graphql/types.ts:5](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L5) +Defined in: [graphql/types.ts:5](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L5) *** @@ -24,7 +24,7 @@ Defined in: [graphql/types.ts:5](https://github.com/humanprotocol/human-protocol > **amountPaid**: `string` -Defined in: [graphql/types.ts:6](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L6) +Defined in: [graphql/types.ts:6](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L6) *** @@ -32,7 +32,7 @@ Defined in: [graphql/types.ts:6](https://github.com/humanprotocol/human-protocol > **balance**: `string` -Defined in: [graphql/types.ts:7](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L7) +Defined in: [graphql/types.ts:7](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L7) *** @@ -40,7 +40,7 @@ Defined in: [graphql/types.ts:7](https://github.com/humanprotocol/human-protocol > **count**: `string` -Defined in: [graphql/types.ts:8](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L8) +Defined in: [graphql/types.ts:8](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L8) *** @@ -48,7 +48,7 @@ Defined in: [graphql/types.ts:8](https://github.com/humanprotocol/human-protocol > **createdAt**: `string` -Defined in: [graphql/types.ts:27](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L27) +Defined in: [graphql/types.ts:27](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L27) *** @@ -56,7 +56,7 @@ Defined in: [graphql/types.ts:27](https://github.com/humanprotocol/human-protoco > **exchangeOracle**: `string` \| `null` -Defined in: [graphql/types.ts:20](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L20) +Defined in: [graphql/types.ts:20](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L20) *** @@ -64,7 +64,7 @@ Defined in: [graphql/types.ts:20](https://github.com/humanprotocol/human-protoco > **exchangeOracleFee**: `string` \| `null` -Defined in: [graphql/types.ts:23](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L23) +Defined in: [graphql/types.ts:23](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L23) *** @@ -72,7 +72,7 @@ Defined in: [graphql/types.ts:23](https://github.com/humanprotocol/human-protoco > **factoryAddress**: `string` -Defined in: [graphql/types.ts:9](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L9) +Defined in: [graphql/types.ts:9](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L9) *** @@ -80,7 +80,7 @@ Defined in: [graphql/types.ts:9](https://github.com/humanprotocol/human-protocol > **finalResultsHash**: `string` \| `null` -Defined in: [graphql/types.ts:11](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L11) +Defined in: [graphql/types.ts:11](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L11) *** @@ -88,7 +88,7 @@ Defined in: [graphql/types.ts:11](https://github.com/humanprotocol/human-protoco > **finalResultsUrl**: `string` \| `null` -Defined in: [graphql/types.ts:10](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L10) +Defined in: [graphql/types.ts:10](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L10) *** @@ -96,7 +96,7 @@ Defined in: [graphql/types.ts:10](https://github.com/humanprotocol/human-protoco > **id**: `string` -Defined in: [graphql/types.ts:4](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L4) +Defined in: [graphql/types.ts:4](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L4) *** @@ -104,7 +104,7 @@ Defined in: [graphql/types.ts:4](https://github.com/humanprotocol/human-protocol > **intermediateResultsHash**: `string` \| `null` -Defined in: [graphql/types.ts:13](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L13) +Defined in: [graphql/types.ts:13](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L13) *** @@ -112,7 +112,7 @@ Defined in: [graphql/types.ts:13](https://github.com/humanprotocol/human-protoco > **intermediateResultsUrl**: `string` \| `null` -Defined in: [graphql/types.ts:12](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L12) +Defined in: [graphql/types.ts:12](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L12) *** @@ -120,7 +120,7 @@ Defined in: [graphql/types.ts:12](https://github.com/humanprotocol/human-protoco > **jobRequesterId**: `string` \| `null` -Defined in: [graphql/types.ts:15](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L15) +Defined in: [graphql/types.ts:15](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L15) *** @@ -128,7 +128,7 @@ Defined in: [graphql/types.ts:15](https://github.com/humanprotocol/human-protoco > **launcher**: `string` -Defined in: [graphql/types.ts:14](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L14) +Defined in: [graphql/types.ts:14](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L14) *** @@ -136,7 +136,7 @@ Defined in: [graphql/types.ts:14](https://github.com/humanprotocol/human-protoco > **manifest**: `string` \| `null` -Defined in: [graphql/types.ts:17](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L17) +Defined in: [graphql/types.ts:17](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L17) *** @@ -144,7 +144,7 @@ Defined in: [graphql/types.ts:17](https://github.com/humanprotocol/human-protoco > **manifestHash**: `string` \| `null` -Defined in: [graphql/types.ts:16](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L16) +Defined in: [graphql/types.ts:16](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L16) *** @@ -152,7 +152,7 @@ Defined in: [graphql/types.ts:16](https://github.com/humanprotocol/human-protoco > **recordingOracle**: `string` \| `null` -Defined in: [graphql/types.ts:18](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L18) +Defined in: [graphql/types.ts:18](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L18) *** @@ -160,7 +160,7 @@ Defined in: [graphql/types.ts:18](https://github.com/humanprotocol/human-protoco > **recordingOracleFee**: `string` \| `null` -Defined in: [graphql/types.ts:21](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L21) +Defined in: [graphql/types.ts:21](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L21) *** @@ -168,7 +168,7 @@ Defined in: [graphql/types.ts:21](https://github.com/humanprotocol/human-protoco > **reputationOracle**: `string` \| `null` -Defined in: [graphql/types.ts:19](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L19) +Defined in: [graphql/types.ts:19](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L19) *** @@ -176,7 +176,7 @@ Defined in: [graphql/types.ts:19](https://github.com/humanprotocol/human-protoco > **reputationOracleFee**: `string` \| `null` -Defined in: [graphql/types.ts:22](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L22) +Defined in: [graphql/types.ts:22](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L22) *** @@ -184,7 +184,7 @@ Defined in: [graphql/types.ts:22](https://github.com/humanprotocol/human-protoco > **status**: `string` -Defined in: [graphql/types.ts:24](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L24) +Defined in: [graphql/types.ts:24](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L24) *** @@ -192,7 +192,7 @@ Defined in: [graphql/types.ts:24](https://github.com/humanprotocol/human-protoco > **token**: `string` -Defined in: [graphql/types.ts:25](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L25) +Defined in: [graphql/types.ts:25](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L25) *** @@ -200,4 +200,4 @@ Defined in: [graphql/types.ts:25](https://github.com/humanprotocol/human-protoco > **totalFundedAmount**: `string` -Defined in: [graphql/types.ts:26](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L26) +Defined in: [graphql/types.ts:26](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L26) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/EscrowStatisticsData.md b/docs/sdk/typescript/graphql/types/type-aliases/EscrowStatisticsData.md index 0f40d779cd..eb323e97c4 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/EscrowStatisticsData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/EscrowStatisticsData.md @@ -8,7 +8,7 @@ > **EscrowStatisticsData** = `object` -Defined in: [graphql/types.ts:71](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L71) +Defined in: [graphql/types.ts:71](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L71) ## Properties @@ -16,7 +16,7 @@ Defined in: [graphql/types.ts:71](https://github.com/humanprotocol/human-protoco > **bulkPayoutEventCount**: `string` -Defined in: [graphql/types.ts:74](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L74) +Defined in: [graphql/types.ts:74](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L74) *** @@ -24,7 +24,7 @@ Defined in: [graphql/types.ts:74](https://github.com/humanprotocol/human-protoco > **cancelledStatusEventCount**: `string` -Defined in: [graphql/types.ts:76](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L76) +Defined in: [graphql/types.ts:76](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L76) *** @@ -32,7 +32,7 @@ Defined in: [graphql/types.ts:76](https://github.com/humanprotocol/human-protoco > **completedStatusEventCount**: `string` -Defined in: [graphql/types.ts:79](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L79) +Defined in: [graphql/types.ts:79](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L79) *** @@ -40,7 +40,7 @@ Defined in: [graphql/types.ts:79](https://github.com/humanprotocol/human-protoco > **fundEventCount**: `string` -Defined in: [graphql/types.ts:72](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L72) +Defined in: [graphql/types.ts:72](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L72) *** @@ -48,7 +48,7 @@ Defined in: [graphql/types.ts:72](https://github.com/humanprotocol/human-protoco > **paidStatusEventCount**: `string` -Defined in: [graphql/types.ts:78](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L78) +Defined in: [graphql/types.ts:78](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L78) *** @@ -56,7 +56,7 @@ Defined in: [graphql/types.ts:78](https://github.com/humanprotocol/human-protoco > **partialStatusEventCount**: `string` -Defined in: [graphql/types.ts:77](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L77) +Defined in: [graphql/types.ts:77](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L77) *** @@ -64,7 +64,7 @@ Defined in: [graphql/types.ts:77](https://github.com/humanprotocol/human-protoco > **pendingStatusEventCount**: `string` -Defined in: [graphql/types.ts:75](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L75) +Defined in: [graphql/types.ts:75](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L75) *** @@ -72,7 +72,7 @@ Defined in: [graphql/types.ts:75](https://github.com/humanprotocol/human-protoco > **storeResultsEventCount**: `string` -Defined in: [graphql/types.ts:73](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L73) +Defined in: [graphql/types.ts:73](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L73) *** @@ -80,7 +80,7 @@ Defined in: [graphql/types.ts:73](https://github.com/humanprotocol/human-protoco > **totalEscrowCount**: `string` -Defined in: [graphql/types.ts:81](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L81) +Defined in: [graphql/types.ts:81](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L81) *** @@ -88,4 +88,4 @@ Defined in: [graphql/types.ts:81](https://github.com/humanprotocol/human-protoco > **totalEventCount**: `string` -Defined in: [graphql/types.ts:80](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L80) +Defined in: [graphql/types.ts:80](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L80) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/EventDayData.md b/docs/sdk/typescript/graphql/types/type-aliases/EventDayData.md index 7d9021d6d7..45f63bd761 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/EventDayData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/EventDayData.md @@ -8,7 +8,7 @@ > **EventDayData** = `object` -Defined in: [graphql/types.ts:84](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L84) +Defined in: [graphql/types.ts:84](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L84) ## Properties @@ -16,7 +16,7 @@ Defined in: [graphql/types.ts:84](https://github.com/humanprotocol/human-protoco > **dailyBulkPayoutEventCount**: `string` -Defined in: [graphql/types.ts:88](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L88) +Defined in: [graphql/types.ts:88](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L88) *** @@ -24,7 +24,7 @@ Defined in: [graphql/types.ts:88](https://github.com/humanprotocol/human-protoco > **dailyCancelledStatusEventCount**: `string` -Defined in: [graphql/types.ts:90](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L90) +Defined in: [graphql/types.ts:90](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L90) *** @@ -32,7 +32,7 @@ Defined in: [graphql/types.ts:90](https://github.com/humanprotocol/human-protoco > **dailyCompletedStatusEventCount**: `string` -Defined in: [graphql/types.ts:93](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L93) +Defined in: [graphql/types.ts:93](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L93) *** @@ -40,7 +40,7 @@ Defined in: [graphql/types.ts:93](https://github.com/humanprotocol/human-protoco > **dailyEscrowCount**: `string` -Defined in: [graphql/types.ts:95](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L95) +Defined in: [graphql/types.ts:95](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L95) *** @@ -48,7 +48,7 @@ Defined in: [graphql/types.ts:95](https://github.com/humanprotocol/human-protoco > **dailyFundEventCount**: `string` -Defined in: [graphql/types.ts:86](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L86) +Defined in: [graphql/types.ts:86](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L86) *** @@ -56,7 +56,7 @@ Defined in: [graphql/types.ts:86](https://github.com/humanprotocol/human-protoco > **dailyHMTPayoutAmount**: `string` -Defined in: [graphql/types.ts:98](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L98) +Defined in: [graphql/types.ts:98](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L98) *** @@ -64,7 +64,7 @@ Defined in: [graphql/types.ts:98](https://github.com/humanprotocol/human-protoco > **dailyHMTTransferAmount**: `string` -Defined in: [graphql/types.ts:100](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L100) +Defined in: [graphql/types.ts:100](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L100) *** @@ -72,7 +72,7 @@ Defined in: [graphql/types.ts:100](https://github.com/humanprotocol/human-protoc > **dailyHMTTransferCount**: `string` -Defined in: [graphql/types.ts:99](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L99) +Defined in: [graphql/types.ts:99](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L99) *** @@ -80,7 +80,7 @@ Defined in: [graphql/types.ts:99](https://github.com/humanprotocol/human-protoco > **dailyPaidStatusEventCount**: `string` -Defined in: [graphql/types.ts:92](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L92) +Defined in: [graphql/types.ts:92](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L92) *** @@ -88,7 +88,7 @@ Defined in: [graphql/types.ts:92](https://github.com/humanprotocol/human-protoco > **dailyPartialStatusEventCount**: `string` -Defined in: [graphql/types.ts:91](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L91) +Defined in: [graphql/types.ts:91](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L91) *** @@ -96,7 +96,7 @@ Defined in: [graphql/types.ts:91](https://github.com/humanprotocol/human-protoco > **dailyPayoutCount**: `string` -Defined in: [graphql/types.ts:97](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L97) +Defined in: [graphql/types.ts:97](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L97) *** @@ -104,7 +104,7 @@ Defined in: [graphql/types.ts:97](https://github.com/humanprotocol/human-protoco > **dailyPendingStatusEventCount**: `string` -Defined in: [graphql/types.ts:89](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L89) +Defined in: [graphql/types.ts:89](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L89) *** @@ -112,7 +112,7 @@ Defined in: [graphql/types.ts:89](https://github.com/humanprotocol/human-protoco > **dailyStoreResultsEventCount**: `string` -Defined in: [graphql/types.ts:87](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L87) +Defined in: [graphql/types.ts:87](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L87) *** @@ -120,7 +120,7 @@ Defined in: [graphql/types.ts:87](https://github.com/humanprotocol/human-protoco > **dailyTotalEventCount**: `string` -Defined in: [graphql/types.ts:94](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L94) +Defined in: [graphql/types.ts:94](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L94) *** @@ -128,7 +128,7 @@ Defined in: [graphql/types.ts:94](https://github.com/humanprotocol/human-protoco > **dailyUniqueReceivers**: `string` -Defined in: [graphql/types.ts:102](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L102) +Defined in: [graphql/types.ts:102](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L102) *** @@ -136,7 +136,7 @@ Defined in: [graphql/types.ts:102](https://github.com/humanprotocol/human-protoc > **dailyUniqueSenders**: `string` -Defined in: [graphql/types.ts:101](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L101) +Defined in: [graphql/types.ts:101](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L101) *** @@ -144,7 +144,7 @@ Defined in: [graphql/types.ts:101](https://github.com/humanprotocol/human-protoc > **dailyWorkerCount**: `string` -Defined in: [graphql/types.ts:96](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L96) +Defined in: [graphql/types.ts:96](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L96) *** @@ -152,4 +152,4 @@ Defined in: [graphql/types.ts:96](https://github.com/humanprotocol/human-protoco > **timestamp**: `string` -Defined in: [graphql/types.ts:85](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L85) +Defined in: [graphql/types.ts:85](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L85) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/HMTHolderData.md b/docs/sdk/typescript/graphql/types/type-aliases/HMTHolderData.md index c91399eb6e..081a4eecf1 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/HMTHolderData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/HMTHolderData.md @@ -8,7 +8,7 @@ > **HMTHolderData** = `object` -Defined in: [graphql/types.ts:112](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L112) +Defined in: [graphql/types.ts:112](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L112) ## Properties @@ -16,7 +16,7 @@ Defined in: [graphql/types.ts:112](https://github.com/humanprotocol/human-protoc > **address**: `string` -Defined in: [graphql/types.ts:113](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L113) +Defined in: [graphql/types.ts:113](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L113) *** @@ -24,4 +24,4 @@ Defined in: [graphql/types.ts:113](https://github.com/humanprotocol/human-protoc > **balance**: `string` -Defined in: [graphql/types.ts:114](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L114) +Defined in: [graphql/types.ts:114](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L114) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/HMTStatisticsData.md b/docs/sdk/typescript/graphql/types/type-aliases/HMTStatisticsData.md index 3fe9a477b8..2359e61314 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/HMTStatisticsData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/HMTStatisticsData.md @@ -8,7 +8,7 @@ > **HMTStatisticsData** = `object` -Defined in: [graphql/types.ts:62](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L62) +Defined in: [graphql/types.ts:62](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L62) ## Properties @@ -16,7 +16,7 @@ Defined in: [graphql/types.ts:62](https://github.com/humanprotocol/human-protoco > **holders**: `string` -Defined in: [graphql/types.ts:68](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L68) +Defined in: [graphql/types.ts:68](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L68) *** @@ -24,7 +24,7 @@ Defined in: [graphql/types.ts:68](https://github.com/humanprotocol/human-protoco > **totalApprovalEventCount**: `string` -Defined in: [graphql/types.ts:65](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L65) +Defined in: [graphql/types.ts:65](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L65) *** @@ -32,7 +32,7 @@ Defined in: [graphql/types.ts:65](https://github.com/humanprotocol/human-protoco > **totalBulkApprovalEventCount**: `string` -Defined in: [graphql/types.ts:66](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L66) +Defined in: [graphql/types.ts:66](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L66) *** @@ -40,7 +40,7 @@ Defined in: [graphql/types.ts:66](https://github.com/humanprotocol/human-protoco > **totalBulkTransferEventCount**: `string` -Defined in: [graphql/types.ts:64](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L64) +Defined in: [graphql/types.ts:64](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L64) *** @@ -48,7 +48,7 @@ Defined in: [graphql/types.ts:64](https://github.com/humanprotocol/human-protoco > **totalTransferEventCount**: `string` -Defined in: [graphql/types.ts:63](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L63) +Defined in: [graphql/types.ts:63](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L63) *** @@ -56,4 +56,4 @@ Defined in: [graphql/types.ts:63](https://github.com/humanprotocol/human-protoco > **totalValueTransfered**: `string` -Defined in: [graphql/types.ts:67](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L67) +Defined in: [graphql/types.ts:67](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L67) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/InternalTransactionData.md b/docs/sdk/typescript/graphql/types/type-aliases/InternalTransactionData.md index ba5c11d9d9..1cd45eafa9 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/InternalTransactionData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/InternalTransactionData.md @@ -8,7 +8,7 @@ > **InternalTransactionData** = `object` -Defined in: [graphql/types.ts:37](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L37) +Defined in: [graphql/types.ts:37](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L37) ## Properties @@ -16,7 +16,7 @@ Defined in: [graphql/types.ts:37](https://github.com/humanprotocol/human-protoco > **escrow**: `string` \| `null` -Defined in: [graphql/types.ts:43](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L43) +Defined in: [graphql/types.ts:43](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L43) *** @@ -24,7 +24,7 @@ Defined in: [graphql/types.ts:43](https://github.com/humanprotocol/human-protoco > **from**: `string` -Defined in: [graphql/types.ts:38](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L38) +Defined in: [graphql/types.ts:38](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L38) *** @@ -32,7 +32,7 @@ Defined in: [graphql/types.ts:38](https://github.com/humanprotocol/human-protoco > **id**: `string` \| `null` -Defined in: [graphql/types.ts:45](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L45) +Defined in: [graphql/types.ts:45](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L45) *** @@ -40,7 +40,7 @@ Defined in: [graphql/types.ts:45](https://github.com/humanprotocol/human-protoco > **method**: `string` -Defined in: [graphql/types.ts:41](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L41) +Defined in: [graphql/types.ts:41](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L41) *** @@ -48,7 +48,7 @@ Defined in: [graphql/types.ts:41](https://github.com/humanprotocol/human-protoco > **receiver**: `string` \| `null` -Defined in: [graphql/types.ts:42](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L42) +Defined in: [graphql/types.ts:42](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L42) *** @@ -56,7 +56,7 @@ Defined in: [graphql/types.ts:42](https://github.com/humanprotocol/human-protoco > **to**: `string` -Defined in: [graphql/types.ts:39](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L39) +Defined in: [graphql/types.ts:39](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L39) *** @@ -64,7 +64,7 @@ Defined in: [graphql/types.ts:39](https://github.com/humanprotocol/human-protoco > **token**: `string` \| `null` -Defined in: [graphql/types.ts:44](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L44) +Defined in: [graphql/types.ts:44](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L44) *** @@ -72,4 +72,4 @@ Defined in: [graphql/types.ts:44](https://github.com/humanprotocol/human-protoco > **value**: `string` -Defined in: [graphql/types.ts:40](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L40) +Defined in: [graphql/types.ts:40](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L40) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/KVStoreData.md b/docs/sdk/typescript/graphql/types/type-aliases/KVStoreData.md index c9f44939aa..d7b229b9f0 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/KVStoreData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/KVStoreData.md @@ -8,7 +8,7 @@ > **KVStoreData** = `object` -Defined in: [graphql/types.ts:123](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L123) +Defined in: [graphql/types.ts:123](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L123) ## Properties @@ -16,7 +16,7 @@ Defined in: [graphql/types.ts:123](https://github.com/humanprotocol/human-protoc > **address**: `string` -Defined in: [graphql/types.ts:125](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L125) +Defined in: [graphql/types.ts:125](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L125) *** @@ -24,7 +24,7 @@ Defined in: [graphql/types.ts:125](https://github.com/humanprotocol/human-protoc > **block**: `string` -Defined in: [graphql/types.ts:129](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L129) +Defined in: [graphql/types.ts:129](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L129) *** @@ -32,7 +32,7 @@ Defined in: [graphql/types.ts:129](https://github.com/humanprotocol/human-protoc > **id**: `string` -Defined in: [graphql/types.ts:124](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L124) +Defined in: [graphql/types.ts:124](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L124) *** @@ -40,7 +40,7 @@ Defined in: [graphql/types.ts:124](https://github.com/humanprotocol/human-protoc > **key**: `string` -Defined in: [graphql/types.ts:126](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L126) +Defined in: [graphql/types.ts:126](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L126) *** @@ -48,7 +48,7 @@ Defined in: [graphql/types.ts:126](https://github.com/humanprotocol/human-protoc > **timestamp**: `Date` -Defined in: [graphql/types.ts:128](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L128) +Defined in: [graphql/types.ts:128](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L128) *** @@ -56,4 +56,4 @@ Defined in: [graphql/types.ts:128](https://github.com/humanprotocol/human-protoc > **value**: `string` -Defined in: [graphql/types.ts:127](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L127) +Defined in: [graphql/types.ts:127](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L127) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/PayoutData.md b/docs/sdk/typescript/graphql/types/type-aliases/PayoutData.md index 59706d5da3..31d0634ce1 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/PayoutData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/PayoutData.md @@ -8,7 +8,7 @@ > **PayoutData** = `object` -Defined in: [graphql/types.ts:174](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L174) +Defined in: [graphql/types.ts:174](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L174) ## Properties @@ -16,7 +16,7 @@ Defined in: [graphql/types.ts:174](https://github.com/humanprotocol/human-protoc > **amount**: `string` -Defined in: [graphql/types.ts:178](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L178) +Defined in: [graphql/types.ts:178](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L178) *** @@ -24,7 +24,7 @@ Defined in: [graphql/types.ts:178](https://github.com/humanprotocol/human-protoc > **createdAt**: `string` -Defined in: [graphql/types.ts:179](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L179) +Defined in: [graphql/types.ts:179](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L179) *** @@ -32,7 +32,7 @@ Defined in: [graphql/types.ts:179](https://github.com/humanprotocol/human-protoc > **escrowAddress**: `string` -Defined in: [graphql/types.ts:176](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L176) +Defined in: [graphql/types.ts:176](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L176) *** @@ -40,7 +40,7 @@ Defined in: [graphql/types.ts:176](https://github.com/humanprotocol/human-protoc > **id**: `string` -Defined in: [graphql/types.ts:175](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L175) +Defined in: [graphql/types.ts:175](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L175) *** @@ -48,4 +48,4 @@ Defined in: [graphql/types.ts:175](https://github.com/humanprotocol/human-protoc > **recipient**: `string` -Defined in: [graphql/types.ts:177](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L177) +Defined in: [graphql/types.ts:177](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L177) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/RewardAddedEventData.md b/docs/sdk/typescript/graphql/types/type-aliases/RewardAddedEventData.md index b2e1c660a5..0526b1f7dd 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/RewardAddedEventData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/RewardAddedEventData.md @@ -8,7 +8,7 @@ > **RewardAddedEventData** = `object` -Defined in: [graphql/types.ts:105](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L105) +Defined in: [graphql/types.ts:105](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L105) ## Properties @@ -16,7 +16,7 @@ Defined in: [graphql/types.ts:105](https://github.com/humanprotocol/human-protoc > **amount**: `string` -Defined in: [graphql/types.ts:109](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L109) +Defined in: [graphql/types.ts:109](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L109) *** @@ -24,7 +24,7 @@ Defined in: [graphql/types.ts:109](https://github.com/humanprotocol/human-protoc > **escrowAddress**: `string` -Defined in: [graphql/types.ts:106](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L106) +Defined in: [graphql/types.ts:106](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L106) *** @@ -32,7 +32,7 @@ Defined in: [graphql/types.ts:106](https://github.com/humanprotocol/human-protoc > **slasher**: `string` -Defined in: [graphql/types.ts:108](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L108) +Defined in: [graphql/types.ts:108](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L108) *** @@ -40,4 +40,4 @@ Defined in: [graphql/types.ts:108](https://github.com/humanprotocol/human-protoc > **staker**: `string` -Defined in: [graphql/types.ts:107](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L107) +Defined in: [graphql/types.ts:107](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L107) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/StakerData.md b/docs/sdk/typescript/graphql/types/type-aliases/StakerData.md index bd2ff925a8..7947db29fb 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/StakerData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/StakerData.md @@ -8,7 +8,7 @@ > **StakerData** = `object` -Defined in: [graphql/types.ts:132](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L132) +Defined in: [graphql/types.ts:132](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L132) ## Properties @@ -16,7 +16,7 @@ Defined in: [graphql/types.ts:132](https://github.com/humanprotocol/human-protoc > **address**: `string` -Defined in: [graphql/types.ts:134](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L134) +Defined in: [graphql/types.ts:134](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L134) *** @@ -24,7 +24,7 @@ Defined in: [graphql/types.ts:134](https://github.com/humanprotocol/human-protoc > **id**: `string` -Defined in: [graphql/types.ts:133](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L133) +Defined in: [graphql/types.ts:133](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L133) *** @@ -32,7 +32,7 @@ Defined in: [graphql/types.ts:133](https://github.com/humanprotocol/human-protoc > **lastDepositTimestamp**: `string` -Defined in: [graphql/types.ts:140](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L140) +Defined in: [graphql/types.ts:140](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L140) *** @@ -40,7 +40,7 @@ Defined in: [graphql/types.ts:140](https://github.com/humanprotocol/human-protoc > **lockedAmount**: `string` -Defined in: [graphql/types.ts:136](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L136) +Defined in: [graphql/types.ts:136](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L136) *** @@ -48,7 +48,7 @@ Defined in: [graphql/types.ts:136](https://github.com/humanprotocol/human-protoc > **lockedUntilTimestamp**: `string` -Defined in: [graphql/types.ts:139](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L139) +Defined in: [graphql/types.ts:139](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L139) *** @@ -56,7 +56,7 @@ Defined in: [graphql/types.ts:139](https://github.com/humanprotocol/human-protoc > **slashedAmount**: `string` -Defined in: [graphql/types.ts:138](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L138) +Defined in: [graphql/types.ts:138](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L138) *** @@ -64,7 +64,7 @@ Defined in: [graphql/types.ts:138](https://github.com/humanprotocol/human-protoc > **stakedAmount**: `string` -Defined in: [graphql/types.ts:135](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L135) +Defined in: [graphql/types.ts:135](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L135) *** @@ -72,4 +72,4 @@ Defined in: [graphql/types.ts:135](https://github.com/humanprotocol/human-protoc > **withdrawnAmount**: `string` -Defined in: [graphql/types.ts:137](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L137) +Defined in: [graphql/types.ts:137](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L137) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/StatusEvent.md b/docs/sdk/typescript/graphql/types/type-aliases/StatusEvent.md index 3548911365..97325a8485 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/StatusEvent.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/StatusEvent.md @@ -8,7 +8,7 @@ > **StatusEvent** = `object` -Defined in: [graphql/types.ts:117](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L117) +Defined in: [graphql/types.ts:117](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L117) ## Properties @@ -16,7 +16,7 @@ Defined in: [graphql/types.ts:117](https://github.com/humanprotocol/human-protoc > **escrowAddress**: `string` -Defined in: [graphql/types.ts:119](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L119) +Defined in: [graphql/types.ts:119](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L119) *** @@ -24,7 +24,7 @@ Defined in: [graphql/types.ts:119](https://github.com/humanprotocol/human-protoc > **status**: `string` -Defined in: [graphql/types.ts:120](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L120) +Defined in: [graphql/types.ts:120](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L120) *** @@ -32,4 +32,4 @@ Defined in: [graphql/types.ts:120](https://github.com/humanprotocol/human-protoc > **timestamp**: `string` -Defined in: [graphql/types.ts:118](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L118) +Defined in: [graphql/types.ts:118](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L118) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/TransactionData.md b/docs/sdk/typescript/graphql/types/type-aliases/TransactionData.md index 5977b6f575..97f53a8542 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/TransactionData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/TransactionData.md @@ -8,7 +8,7 @@ > **TransactionData** = `object` -Defined in: [graphql/types.ts:48](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L48) +Defined in: [graphql/types.ts:48](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L48) ## Properties @@ -16,7 +16,7 @@ Defined in: [graphql/types.ts:48](https://github.com/humanprotocol/human-protoco > **block**: `string` -Defined in: [graphql/types.ts:49](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L49) +Defined in: [graphql/types.ts:49](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L49) *** @@ -24,7 +24,7 @@ Defined in: [graphql/types.ts:49](https://github.com/humanprotocol/human-protoco > **escrow**: `string` \| `null` -Defined in: [graphql/types.ts:57](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L57) +Defined in: [graphql/types.ts:57](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L57) *** @@ -32,7 +32,7 @@ Defined in: [graphql/types.ts:57](https://github.com/humanprotocol/human-protoco > **from**: `string` -Defined in: [graphql/types.ts:51](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L51) +Defined in: [graphql/types.ts:51](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L51) *** @@ -40,7 +40,7 @@ Defined in: [graphql/types.ts:51](https://github.com/humanprotocol/human-protoco > **internalTransactions**: [`InternalTransactionData`](InternalTransactionData.md)[] -Defined in: [graphql/types.ts:59](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L59) +Defined in: [graphql/types.ts:59](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L59) *** @@ -48,7 +48,7 @@ Defined in: [graphql/types.ts:59](https://github.com/humanprotocol/human-protoco > **method**: `string` -Defined in: [graphql/types.ts:55](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L55) +Defined in: [graphql/types.ts:55](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L55) *** @@ -56,7 +56,7 @@ Defined in: [graphql/types.ts:55](https://github.com/humanprotocol/human-protoco > **receiver**: `string` \| `null` -Defined in: [graphql/types.ts:56](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L56) +Defined in: [graphql/types.ts:56](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L56) *** @@ -64,7 +64,7 @@ Defined in: [graphql/types.ts:56](https://github.com/humanprotocol/human-protoco > **timestamp**: `string` -Defined in: [graphql/types.ts:53](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L53) +Defined in: [graphql/types.ts:53](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L53) *** @@ -72,7 +72,7 @@ Defined in: [graphql/types.ts:53](https://github.com/humanprotocol/human-protoco > **to**: `string` -Defined in: [graphql/types.ts:52](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L52) +Defined in: [graphql/types.ts:52](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L52) *** @@ -80,7 +80,7 @@ Defined in: [graphql/types.ts:52](https://github.com/humanprotocol/human-protoco > **token**: `string` \| `null` -Defined in: [graphql/types.ts:58](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L58) +Defined in: [graphql/types.ts:58](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L58) *** @@ -88,7 +88,7 @@ Defined in: [graphql/types.ts:58](https://github.com/humanprotocol/human-protoco > **txHash**: `string` -Defined in: [graphql/types.ts:50](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L50) +Defined in: [graphql/types.ts:50](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L50) *** @@ -96,4 +96,4 @@ Defined in: [graphql/types.ts:50](https://github.com/humanprotocol/human-protoco > **value**: `string` -Defined in: [graphql/types.ts:54](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L54) +Defined in: [graphql/types.ts:54](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L54) diff --git a/docs/sdk/typescript/graphql/types/type-aliases/WorkerData.md b/docs/sdk/typescript/graphql/types/type-aliases/WorkerData.md index 6ecc58e9a0..c7d57e521b 100644 --- a/docs/sdk/typescript/graphql/types/type-aliases/WorkerData.md +++ b/docs/sdk/typescript/graphql/types/type-aliases/WorkerData.md @@ -8,7 +8,7 @@ > **WorkerData** = `object` -Defined in: [graphql/types.ts:30](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L30) +Defined in: [graphql/types.ts:30](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L30) ## Properties @@ -16,7 +16,7 @@ Defined in: [graphql/types.ts:30](https://github.com/humanprotocol/human-protoco > **address**: `string` -Defined in: [graphql/types.ts:32](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L32) +Defined in: [graphql/types.ts:32](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L32) *** @@ -24,7 +24,7 @@ Defined in: [graphql/types.ts:32](https://github.com/humanprotocol/human-protoco > **id**: `string` -Defined in: [graphql/types.ts:31](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L31) +Defined in: [graphql/types.ts:31](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L31) *** @@ -32,7 +32,7 @@ Defined in: [graphql/types.ts:31](https://github.com/humanprotocol/human-protoco > **payoutCount**: `string` -Defined in: [graphql/types.ts:34](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L34) +Defined in: [graphql/types.ts:34](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L34) *** @@ -40,4 +40,4 @@ Defined in: [graphql/types.ts:34](https://github.com/humanprotocol/human-protoco > **totalHMTAmountReceived**: `string` -Defined in: [graphql/types.ts:33](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L33) +Defined in: [graphql/types.ts:33](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/graphql/types.ts#L33) diff --git a/docs/sdk/typescript/interfaces/interfaces/ICancellationRefund.md b/docs/sdk/typescript/interfaces/interfaces/ICancellationRefund.md index b2d5d3351e..2092fbeb8e 100644 --- a/docs/sdk/typescript/interfaces/interfaces/ICancellationRefund.md +++ b/docs/sdk/typescript/interfaces/interfaces/ICancellationRefund.md @@ -6,7 +6,7 @@ # Interface: ICancellationRefund -Defined in: [interfaces.ts:292](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L292) +Defined in: [interfaces.ts:292](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L292) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:292](https://github.com/humanprotocol/human-protocol/ > **amount**: `bigint` -Defined in: [interfaces.ts:296](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L296) +Defined in: [interfaces.ts:296](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L296) *** @@ -22,7 +22,7 @@ Defined in: [interfaces.ts:296](https://github.com/humanprotocol/human-protocol/ > **block**: `number` -Defined in: [interfaces.ts:297](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L297) +Defined in: [interfaces.ts:297](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L297) *** @@ -30,7 +30,7 @@ Defined in: [interfaces.ts:297](https://github.com/humanprotocol/human-protocol/ > **escrowAddress**: `string` -Defined in: [interfaces.ts:294](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L294) +Defined in: [interfaces.ts:294](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L294) *** @@ -38,7 +38,7 @@ Defined in: [interfaces.ts:294](https://github.com/humanprotocol/human-protocol/ > **id**: `string` -Defined in: [interfaces.ts:293](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L293) +Defined in: [interfaces.ts:293](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L293) *** @@ -46,7 +46,7 @@ Defined in: [interfaces.ts:293](https://github.com/humanprotocol/human-protocol/ > **receiver**: `string` -Defined in: [interfaces.ts:295](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L295) +Defined in: [interfaces.ts:295](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L295) *** @@ -54,7 +54,7 @@ Defined in: [interfaces.ts:295](https://github.com/humanprotocol/human-protocol/ > **timestamp**: `number` -Defined in: [interfaces.ts:298](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L298) +Defined in: [interfaces.ts:298](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L298) *** @@ -62,4 +62,4 @@ Defined in: [interfaces.ts:298](https://github.com/humanprotocol/human-protocol/ > **txHash**: `string` -Defined in: [interfaces.ts:299](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L299) +Defined in: [interfaces.ts:299](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L299) diff --git a/docs/sdk/typescript/interfaces/interfaces/ICancellationRefundFilter.md b/docs/sdk/typescript/interfaces/interfaces/ICancellationRefundFilter.md index e4cc99c668..656f138e73 100644 --- a/docs/sdk/typescript/interfaces/interfaces/ICancellationRefundFilter.md +++ b/docs/sdk/typescript/interfaces/interfaces/ICancellationRefundFilter.md @@ -6,7 +6,7 @@ # Interface: ICancellationRefundFilter -Defined in: [interfaces.ts:224](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L224) +Defined in: [interfaces.ts:224](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L224) ## Extends @@ -18,7 +18,7 @@ Defined in: [interfaces.ts:224](https://github.com/humanprotocol/human-protocol/ > **chainId**: [`ChainId`](../../enums/enumerations/ChainId.md) -Defined in: [interfaces.ts:225](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L225) +Defined in: [interfaces.ts:225](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L225) *** @@ -26,7 +26,7 @@ Defined in: [interfaces.ts:225](https://github.com/humanprotocol/human-protocol/ > `optional` **escrowAddress**: `string` -Defined in: [interfaces.ts:226](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L226) +Defined in: [interfaces.ts:226](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L226) *** @@ -34,7 +34,7 @@ Defined in: [interfaces.ts:226](https://github.com/humanprotocol/human-protocol/ > `optional` **first**: `number` -Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) +Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) #### Inherited from @@ -46,7 +46,7 @@ Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/ > `optional` **from**: `Date` -Defined in: [interfaces.ts:228](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L228) +Defined in: [interfaces.ts:228](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L228) *** @@ -54,7 +54,7 @@ Defined in: [interfaces.ts:228](https://github.com/humanprotocol/human-protocol/ > `optional` **orderDirection**: [`OrderDirection`](../../enums/enumerations/OrderDirection.md) -Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) +Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) #### Inherited from @@ -66,7 +66,7 @@ Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/ > `optional` **receiver**: `string` -Defined in: [interfaces.ts:227](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L227) +Defined in: [interfaces.ts:227](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L227) *** @@ -74,7 +74,7 @@ Defined in: [interfaces.ts:227](https://github.com/humanprotocol/human-protocol/ > `optional` **skip**: `number` -Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) +Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) #### Inherited from @@ -86,4 +86,4 @@ Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/ > `optional` **to**: `Date` -Defined in: [interfaces.ts:229](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L229) +Defined in: [interfaces.ts:229](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L229) diff --git a/docs/sdk/typescript/interfaces/interfaces/IDailyEscrow.md b/docs/sdk/typescript/interfaces/interfaces/IDailyEscrow.md index 55a4afcd05..61395c4264 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IDailyEscrow.md +++ b/docs/sdk/typescript/interfaces/interfaces/IDailyEscrow.md @@ -6,7 +6,7 @@ # Interface: IDailyEscrow -Defined in: [interfaces.ts:232](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L232) +Defined in: [interfaces.ts:232](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L232) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:232](https://github.com/humanprotocol/human-protocol/ > **escrowsCancelled**: `number` -Defined in: [interfaces.ts:238](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L238) +Defined in: [interfaces.ts:238](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L238) *** @@ -22,7 +22,7 @@ Defined in: [interfaces.ts:238](https://github.com/humanprotocol/human-protocol/ > **escrowsPaid**: `number` -Defined in: [interfaces.ts:237](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L237) +Defined in: [interfaces.ts:237](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L237) *** @@ -30,7 +30,7 @@ Defined in: [interfaces.ts:237](https://github.com/humanprotocol/human-protocol/ > **escrowsPending**: `number` -Defined in: [interfaces.ts:235](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L235) +Defined in: [interfaces.ts:235](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L235) *** @@ -38,7 +38,7 @@ Defined in: [interfaces.ts:235](https://github.com/humanprotocol/human-protocol/ > **escrowsSolved**: `number` -Defined in: [interfaces.ts:236](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L236) +Defined in: [interfaces.ts:236](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L236) *** @@ -46,7 +46,7 @@ Defined in: [interfaces.ts:236](https://github.com/humanprotocol/human-protocol/ > **escrowsTotal**: `number` -Defined in: [interfaces.ts:234](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L234) +Defined in: [interfaces.ts:234](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L234) *** @@ -54,4 +54,4 @@ Defined in: [interfaces.ts:234](https://github.com/humanprotocol/human-protocol/ > **timestamp**: `number` -Defined in: [interfaces.ts:233](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L233) +Defined in: [interfaces.ts:233](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L233) diff --git a/docs/sdk/typescript/interfaces/interfaces/IDailyHMT.md b/docs/sdk/typescript/interfaces/interfaces/IDailyHMT.md index 9822fb2712..fd697e470f 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IDailyHMT.md +++ b/docs/sdk/typescript/interfaces/interfaces/IDailyHMT.md @@ -6,7 +6,7 @@ # Interface: IDailyHMT -Defined in: [interfaces.ts:277](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L277) +Defined in: [interfaces.ts:277](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L277) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:277](https://github.com/humanprotocol/human-protocol/ > **dailyUniqueReceivers**: `number` -Defined in: [interfaces.ts:282](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L282) +Defined in: [interfaces.ts:282](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L282) *** @@ -22,7 +22,7 @@ Defined in: [interfaces.ts:282](https://github.com/humanprotocol/human-protocol/ > **dailyUniqueSenders**: `number` -Defined in: [interfaces.ts:281](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L281) +Defined in: [interfaces.ts:281](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L281) *** @@ -30,7 +30,7 @@ Defined in: [interfaces.ts:281](https://github.com/humanprotocol/human-protocol/ > **timestamp**: `number` -Defined in: [interfaces.ts:278](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L278) +Defined in: [interfaces.ts:278](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L278) *** @@ -38,7 +38,7 @@ Defined in: [interfaces.ts:278](https://github.com/humanprotocol/human-protocol/ > **totalTransactionAmount**: `bigint` -Defined in: [interfaces.ts:279](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L279) +Defined in: [interfaces.ts:279](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L279) *** @@ -46,4 +46,4 @@ Defined in: [interfaces.ts:279](https://github.com/humanprotocol/human-protocol/ > **totalTransactionCount**: `number` -Defined in: [interfaces.ts:280](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L280) +Defined in: [interfaces.ts:280](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L280) diff --git a/docs/sdk/typescript/interfaces/interfaces/IDailyPayment.md b/docs/sdk/typescript/interfaces/interfaces/IDailyPayment.md index 940fb1c6fa..2e12e938e8 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IDailyPayment.md +++ b/docs/sdk/typescript/interfaces/interfaces/IDailyPayment.md @@ -6,7 +6,7 @@ # Interface: IDailyPayment -Defined in: [interfaces.ts:255](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L255) +Defined in: [interfaces.ts:255](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L255) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:255](https://github.com/humanprotocol/human-protocol/ > **averageAmountPerWorker**: `bigint` -Defined in: [interfaces.ts:259](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L259) +Defined in: [interfaces.ts:259](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L259) *** @@ -22,7 +22,7 @@ Defined in: [interfaces.ts:259](https://github.com/humanprotocol/human-protocol/ > **timestamp**: `number` -Defined in: [interfaces.ts:256](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L256) +Defined in: [interfaces.ts:256](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L256) *** @@ -30,7 +30,7 @@ Defined in: [interfaces.ts:256](https://github.com/humanprotocol/human-protocol/ > **totalAmountPaid**: `bigint` -Defined in: [interfaces.ts:257](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L257) +Defined in: [interfaces.ts:257](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L257) *** @@ -38,4 +38,4 @@ Defined in: [interfaces.ts:257](https://github.com/humanprotocol/human-protocol/ > **totalCount**: `number` -Defined in: [interfaces.ts:258](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L258) +Defined in: [interfaces.ts:258](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L258) diff --git a/docs/sdk/typescript/interfaces/interfaces/IDailyWorker.md b/docs/sdk/typescript/interfaces/interfaces/IDailyWorker.md index 240090aea0..935861839f 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IDailyWorker.md +++ b/docs/sdk/typescript/interfaces/interfaces/IDailyWorker.md @@ -6,7 +6,7 @@ # Interface: IDailyWorker -Defined in: [interfaces.ts:246](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L246) +Defined in: [interfaces.ts:246](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L246) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:246](https://github.com/humanprotocol/human-protocol/ > **activeWorkers**: `number` -Defined in: [interfaces.ts:248](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L248) +Defined in: [interfaces.ts:248](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L248) *** @@ -22,4 +22,4 @@ Defined in: [interfaces.ts:248](https://github.com/humanprotocol/human-protocol/ > **timestamp**: `number` -Defined in: [interfaces.ts:247](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L247) +Defined in: [interfaces.ts:247](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L247) diff --git a/docs/sdk/typescript/interfaces/interfaces/IEscrow.md b/docs/sdk/typescript/interfaces/interfaces/IEscrow.md index 751be00b4d..669953a6b8 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IEscrow.md +++ b/docs/sdk/typescript/interfaces/interfaces/IEscrow.md @@ -6,7 +6,7 @@ # Interface: IEscrow -Defined in: [interfaces.ts:46](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L46) +Defined in: [interfaces.ts:46](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L46) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:46](https://github.com/humanprotocol/human-protocol/b > **address**: `string` -Defined in: [interfaces.ts:48](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L48) +Defined in: [interfaces.ts:48](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L48) *** @@ -22,7 +22,7 @@ Defined in: [interfaces.ts:48](https://github.com/humanprotocol/human-protocol/b > **amountPaid**: `bigint` -Defined in: [interfaces.ts:49](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L49) +Defined in: [interfaces.ts:49](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L49) *** @@ -30,7 +30,7 @@ Defined in: [interfaces.ts:49](https://github.com/humanprotocol/human-protocol/b > **balance**: `bigint` -Defined in: [interfaces.ts:50](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L50) +Defined in: [interfaces.ts:50](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L50) *** @@ -38,7 +38,7 @@ Defined in: [interfaces.ts:50](https://github.com/humanprotocol/human-protocol/b > **chainId**: `number` -Defined in: [interfaces.ts:71](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L71) +Defined in: [interfaces.ts:71](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L71) *** @@ -46,7 +46,7 @@ Defined in: [interfaces.ts:71](https://github.com/humanprotocol/human-protocol/b > **count**: `number` -Defined in: [interfaces.ts:51](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L51) +Defined in: [interfaces.ts:51](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L51) *** @@ -54,7 +54,7 @@ Defined in: [interfaces.ts:51](https://github.com/humanprotocol/human-protocol/b > **createdAt**: `number` -Defined in: [interfaces.ts:70](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L70) +Defined in: [interfaces.ts:70](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L70) *** @@ -62,7 +62,7 @@ Defined in: [interfaces.ts:70](https://github.com/humanprotocol/human-protocol/b > **exchangeOracle**: `string` \| `null` -Defined in: [interfaces.ts:63](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L63) +Defined in: [interfaces.ts:63](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L63) *** @@ -70,7 +70,7 @@ Defined in: [interfaces.ts:63](https://github.com/humanprotocol/human-protocol/b > **exchangeOracleFee**: `number` \| `null` -Defined in: [interfaces.ts:66](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L66) +Defined in: [interfaces.ts:66](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L66) *** @@ -78,7 +78,7 @@ Defined in: [interfaces.ts:66](https://github.com/humanprotocol/human-protocol/b > **factoryAddress**: `string` -Defined in: [interfaces.ts:52](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L52) +Defined in: [interfaces.ts:52](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L52) *** @@ -86,7 +86,7 @@ Defined in: [interfaces.ts:52](https://github.com/humanprotocol/human-protocol/b > **finalResultsHash**: `string` \| `null` -Defined in: [interfaces.ts:54](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L54) +Defined in: [interfaces.ts:54](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L54) *** @@ -94,7 +94,7 @@ Defined in: [interfaces.ts:54](https://github.com/humanprotocol/human-protocol/b > **finalResultsUrl**: `string` \| `null` -Defined in: [interfaces.ts:53](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L53) +Defined in: [interfaces.ts:53](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L53) *** @@ -102,7 +102,7 @@ Defined in: [interfaces.ts:53](https://github.com/humanprotocol/human-protocol/b > **id**: `string` -Defined in: [interfaces.ts:47](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L47) +Defined in: [interfaces.ts:47](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L47) *** @@ -110,7 +110,7 @@ Defined in: [interfaces.ts:47](https://github.com/humanprotocol/human-protocol/b > **intermediateResultsHash**: `string` \| `null` -Defined in: [interfaces.ts:56](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L56) +Defined in: [interfaces.ts:56](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L56) *** @@ -118,7 +118,7 @@ Defined in: [interfaces.ts:56](https://github.com/humanprotocol/human-protocol/b > **intermediateResultsUrl**: `string` \| `null` -Defined in: [interfaces.ts:55](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L55) +Defined in: [interfaces.ts:55](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L55) *** @@ -126,7 +126,7 @@ Defined in: [interfaces.ts:55](https://github.com/humanprotocol/human-protocol/b > **jobRequesterId**: `string` \| `null` -Defined in: [interfaces.ts:58](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L58) +Defined in: [interfaces.ts:58](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L58) *** @@ -134,7 +134,7 @@ Defined in: [interfaces.ts:58](https://github.com/humanprotocol/human-protocol/b > **launcher**: `string` -Defined in: [interfaces.ts:57](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L57) +Defined in: [interfaces.ts:57](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L57) *** @@ -142,7 +142,7 @@ Defined in: [interfaces.ts:57](https://github.com/humanprotocol/human-protocol/b > **manifest**: `string` \| `null` -Defined in: [interfaces.ts:60](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L60) +Defined in: [interfaces.ts:60](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L60) *** @@ -150,7 +150,7 @@ Defined in: [interfaces.ts:60](https://github.com/humanprotocol/human-protocol/b > **manifestHash**: `string` \| `null` -Defined in: [interfaces.ts:59](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L59) +Defined in: [interfaces.ts:59](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L59) *** @@ -158,7 +158,7 @@ Defined in: [interfaces.ts:59](https://github.com/humanprotocol/human-protocol/b > **recordingOracle**: `string` \| `null` -Defined in: [interfaces.ts:61](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L61) +Defined in: [interfaces.ts:61](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L61) *** @@ -166,7 +166,7 @@ Defined in: [interfaces.ts:61](https://github.com/humanprotocol/human-protocol/b > **recordingOracleFee**: `number` \| `null` -Defined in: [interfaces.ts:64](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L64) +Defined in: [interfaces.ts:64](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L64) *** @@ -174,7 +174,7 @@ Defined in: [interfaces.ts:64](https://github.com/humanprotocol/human-protocol/b > **reputationOracle**: `string` \| `null` -Defined in: [interfaces.ts:62](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L62) +Defined in: [interfaces.ts:62](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L62) *** @@ -182,7 +182,7 @@ Defined in: [interfaces.ts:62](https://github.com/humanprotocol/human-protocol/b > **reputationOracleFee**: `number` \| `null` -Defined in: [interfaces.ts:65](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L65) +Defined in: [interfaces.ts:65](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L65) *** @@ -190,7 +190,7 @@ Defined in: [interfaces.ts:65](https://github.com/humanprotocol/human-protocol/b > **status**: `string` -Defined in: [interfaces.ts:67](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L67) +Defined in: [interfaces.ts:67](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L67) *** @@ -198,7 +198,7 @@ Defined in: [interfaces.ts:67](https://github.com/humanprotocol/human-protocol/b > **token**: `string` -Defined in: [interfaces.ts:68](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L68) +Defined in: [interfaces.ts:68](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L68) *** @@ -206,4 +206,4 @@ Defined in: [interfaces.ts:68](https://github.com/humanprotocol/human-protocol/b > **totalFundedAmount**: `bigint` -Defined in: [interfaces.ts:69](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L69) +Defined in: [interfaces.ts:69](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L69) diff --git a/docs/sdk/typescript/interfaces/interfaces/IEscrowConfig.md b/docs/sdk/typescript/interfaces/interfaces/IEscrowConfig.md index 195135a8ef..7704b93b03 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IEscrowConfig.md +++ b/docs/sdk/typescript/interfaces/interfaces/IEscrowConfig.md @@ -6,7 +6,7 @@ # Interface: IEscrowConfig -Defined in: [interfaces.ts:86](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L86) +Defined in: [interfaces.ts:86](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L86) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:86](https://github.com/humanprotocol/human-protocol/b > **exchangeOracle**: `string` -Defined in: [interfaces.ts:89](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L89) +Defined in: [interfaces.ts:89](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L89) *** @@ -22,7 +22,7 @@ Defined in: [interfaces.ts:89](https://github.com/humanprotocol/human-protocol/b > **exchangeOracleFee**: `bigint` -Defined in: [interfaces.ts:92](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L92) +Defined in: [interfaces.ts:92](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L92) *** @@ -30,7 +30,7 @@ Defined in: [interfaces.ts:92](https://github.com/humanprotocol/human-protocol/b > **manifest**: `string` -Defined in: [interfaces.ts:93](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L93) +Defined in: [interfaces.ts:93](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L93) *** @@ -38,7 +38,7 @@ Defined in: [interfaces.ts:93](https://github.com/humanprotocol/human-protocol/b > **manifestHash**: `string` -Defined in: [interfaces.ts:94](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L94) +Defined in: [interfaces.ts:94](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L94) *** @@ -46,7 +46,7 @@ Defined in: [interfaces.ts:94](https://github.com/humanprotocol/human-protocol/b > **recordingOracle**: `string` -Defined in: [interfaces.ts:87](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L87) +Defined in: [interfaces.ts:87](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L87) *** @@ -54,7 +54,7 @@ Defined in: [interfaces.ts:87](https://github.com/humanprotocol/human-protocol/b > **recordingOracleFee**: `bigint` -Defined in: [interfaces.ts:90](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L90) +Defined in: [interfaces.ts:90](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L90) *** @@ -62,7 +62,7 @@ Defined in: [interfaces.ts:90](https://github.com/humanprotocol/human-protocol/b > **reputationOracle**: `string` -Defined in: [interfaces.ts:88](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L88) +Defined in: [interfaces.ts:88](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L88) *** @@ -70,4 +70,4 @@ Defined in: [interfaces.ts:88](https://github.com/humanprotocol/human-protocol/b > **reputationOracleFee**: `bigint` -Defined in: [interfaces.ts:91](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L91) +Defined in: [interfaces.ts:91](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L91) diff --git a/docs/sdk/typescript/interfaces/interfaces/IEscrowStatistics.md b/docs/sdk/typescript/interfaces/interfaces/IEscrowStatistics.md index 8cf72764f1..264b132811 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IEscrowStatistics.md +++ b/docs/sdk/typescript/interfaces/interfaces/IEscrowStatistics.md @@ -6,7 +6,7 @@ # Interface: IEscrowStatistics -Defined in: [interfaces.ts:241](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L241) +Defined in: [interfaces.ts:241](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L241) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:241](https://github.com/humanprotocol/human-protocol/ > **dailyEscrowsData**: [`IDailyEscrow`](IDailyEscrow.md)[] -Defined in: [interfaces.ts:243](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L243) +Defined in: [interfaces.ts:243](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L243) *** @@ -22,4 +22,4 @@ Defined in: [interfaces.ts:243](https://github.com/humanprotocol/human-protocol/ > **totalEscrows**: `number` -Defined in: [interfaces.ts:242](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L242) +Defined in: [interfaces.ts:242](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L242) diff --git a/docs/sdk/typescript/interfaces/interfaces/IEscrowWithdraw.md b/docs/sdk/typescript/interfaces/interfaces/IEscrowWithdraw.md index b30d119514..81c22bcbc7 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IEscrowWithdraw.md +++ b/docs/sdk/typescript/interfaces/interfaces/IEscrowWithdraw.md @@ -6,7 +6,7 @@ # Interface: IEscrowWithdraw -Defined in: [interfaces.ts:310](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L310) +Defined in: [interfaces.ts:310](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L310) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:310](https://github.com/humanprotocol/human-protocol/ > **tokenAddress**: `string` -Defined in: [interfaces.ts:312](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L312) +Defined in: [interfaces.ts:312](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L312) *** @@ -22,7 +22,7 @@ Defined in: [interfaces.ts:312](https://github.com/humanprotocol/human-protocol/ > **txHash**: `string` -Defined in: [interfaces.ts:311](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L311) +Defined in: [interfaces.ts:311](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L311) *** @@ -30,4 +30,4 @@ Defined in: [interfaces.ts:311](https://github.com/humanprotocol/human-protocol/ > **withdrawnAmount**: `bigint` -Defined in: [interfaces.ts:313](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L313) +Defined in: [interfaces.ts:313](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L313) diff --git a/docs/sdk/typescript/interfaces/interfaces/IEscrowsFilter.md b/docs/sdk/typescript/interfaces/interfaces/IEscrowsFilter.md index 584f3b20da..1060470aa0 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IEscrowsFilter.md +++ b/docs/sdk/typescript/interfaces/interfaces/IEscrowsFilter.md @@ -6,7 +6,7 @@ # Interface: IEscrowsFilter -Defined in: [interfaces.ts:74](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L74) +Defined in: [interfaces.ts:74](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L74) ## Extends @@ -18,7 +18,7 @@ Defined in: [interfaces.ts:74](https://github.com/humanprotocol/human-protocol/b > **chainId**: [`ChainId`](../../enums/enumerations/ChainId.md) -Defined in: [interfaces.ts:83](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L83) +Defined in: [interfaces.ts:83](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L83) *** @@ -26,7 +26,7 @@ Defined in: [interfaces.ts:83](https://github.com/humanprotocol/human-protocol/b > `optional` **exchangeOracle**: `string` -Defined in: [interfaces.ts:78](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L78) +Defined in: [interfaces.ts:78](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L78) *** @@ -34,7 +34,7 @@ Defined in: [interfaces.ts:78](https://github.com/humanprotocol/human-protocol/b > `optional` **first**: `number` -Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) +Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) #### Inherited from @@ -46,7 +46,7 @@ Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/ > `optional` **from**: `Date` -Defined in: [interfaces.ts:81](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L81) +Defined in: [interfaces.ts:81](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L81) *** @@ -54,7 +54,7 @@ Defined in: [interfaces.ts:81](https://github.com/humanprotocol/human-protocol/b > `optional` **jobRequesterId**: `string` -Defined in: [interfaces.ts:79](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L79) +Defined in: [interfaces.ts:79](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L79) *** @@ -62,7 +62,7 @@ Defined in: [interfaces.ts:79](https://github.com/humanprotocol/human-protocol/b > `optional` **launcher**: `string` -Defined in: [interfaces.ts:75](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L75) +Defined in: [interfaces.ts:75](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L75) *** @@ -70,7 +70,7 @@ Defined in: [interfaces.ts:75](https://github.com/humanprotocol/human-protocol/b > `optional` **orderDirection**: [`OrderDirection`](../../enums/enumerations/OrderDirection.md) -Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) +Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) #### Inherited from @@ -82,7 +82,7 @@ Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/ > `optional` **recordingOracle**: `string` -Defined in: [interfaces.ts:77](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L77) +Defined in: [interfaces.ts:77](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L77) *** @@ -90,7 +90,7 @@ Defined in: [interfaces.ts:77](https://github.com/humanprotocol/human-protocol/b > `optional` **reputationOracle**: `string` -Defined in: [interfaces.ts:76](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L76) +Defined in: [interfaces.ts:76](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L76) *** @@ -98,7 +98,7 @@ Defined in: [interfaces.ts:76](https://github.com/humanprotocol/human-protocol/b > `optional` **skip**: `number` -Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) +Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) #### Inherited from @@ -110,7 +110,7 @@ Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/ > `optional` **status**: [`EscrowStatus`](../../types/enumerations/EscrowStatus.md) \| [`EscrowStatus`](../../types/enumerations/EscrowStatus.md)[] -Defined in: [interfaces.ts:80](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L80) +Defined in: [interfaces.ts:80](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L80) *** @@ -118,4 +118,4 @@ Defined in: [interfaces.ts:80](https://github.com/humanprotocol/human-protocol/b > `optional` **to**: `Date` -Defined in: [interfaces.ts:82](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L82) +Defined in: [interfaces.ts:82](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L82) diff --git a/docs/sdk/typescript/interfaces/interfaces/IHMTHolder.md b/docs/sdk/typescript/interfaces/interfaces/IHMTHolder.md index 766e505f02..51af45bfaa 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IHMTHolder.md +++ b/docs/sdk/typescript/interfaces/interfaces/IHMTHolder.md @@ -6,7 +6,7 @@ # Interface: IHMTHolder -Defined in: [interfaces.ts:272](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L272) +Defined in: [interfaces.ts:272](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L272) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:272](https://github.com/humanprotocol/human-protocol/ > **address**: `string` -Defined in: [interfaces.ts:273](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L273) +Defined in: [interfaces.ts:273](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L273) *** @@ -22,4 +22,4 @@ Defined in: [interfaces.ts:273](https://github.com/humanprotocol/human-protocol/ > **balance**: `bigint` -Defined in: [interfaces.ts:274](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L274) +Defined in: [interfaces.ts:274](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L274) diff --git a/docs/sdk/typescript/interfaces/interfaces/IHMTHoldersParams.md b/docs/sdk/typescript/interfaces/interfaces/IHMTHoldersParams.md index 963e907ee5..e35e8e43ae 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IHMTHoldersParams.md +++ b/docs/sdk/typescript/interfaces/interfaces/IHMTHoldersParams.md @@ -6,7 +6,7 @@ # Interface: IHMTHoldersParams -Defined in: [interfaces.ts:109](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L109) +Defined in: [interfaces.ts:109](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L109) ## Extends @@ -18,7 +18,7 @@ Defined in: [interfaces.ts:109](https://github.com/humanprotocol/human-protocol/ > `optional` **address**: `string` -Defined in: [interfaces.ts:110](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L110) +Defined in: [interfaces.ts:110](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L110) *** @@ -26,7 +26,7 @@ Defined in: [interfaces.ts:110](https://github.com/humanprotocol/human-protocol/ > `optional` **first**: `number` -Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) +Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) #### Inherited from @@ -38,7 +38,7 @@ Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/ > `optional` **orderDirection**: [`OrderDirection`](../../enums/enumerations/OrderDirection.md) -Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) +Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) #### Inherited from @@ -50,7 +50,7 @@ Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/ > `optional` **skip**: `number` -Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) +Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) #### Inherited from diff --git a/docs/sdk/typescript/interfaces/interfaces/IHMTStatistics.md b/docs/sdk/typescript/interfaces/interfaces/IHMTStatistics.md index 04ed19e75b..1b73821946 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IHMTStatistics.md +++ b/docs/sdk/typescript/interfaces/interfaces/IHMTStatistics.md @@ -6,7 +6,7 @@ # Interface: IHMTStatistics -Defined in: [interfaces.ts:266](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L266) +Defined in: [interfaces.ts:266](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L266) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:266](https://github.com/humanprotocol/human-protocol/ > **totalHolders**: `number` -Defined in: [interfaces.ts:269](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L269) +Defined in: [interfaces.ts:269](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L269) *** @@ -22,7 +22,7 @@ Defined in: [interfaces.ts:269](https://github.com/humanprotocol/human-protocol/ > **totalTransferAmount**: `bigint` -Defined in: [interfaces.ts:267](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L267) +Defined in: [interfaces.ts:267](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L267) *** @@ -30,4 +30,4 @@ Defined in: [interfaces.ts:267](https://github.com/humanprotocol/human-protocol/ > **totalTransferCount**: `number` -Defined in: [interfaces.ts:268](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L268) +Defined in: [interfaces.ts:268](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L268) diff --git a/docs/sdk/typescript/interfaces/interfaces/IKVStore.md b/docs/sdk/typescript/interfaces/interfaces/IKVStore.md index d43315bb6e..ac67cd4bd9 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IKVStore.md +++ b/docs/sdk/typescript/interfaces/interfaces/IKVStore.md @@ -6,7 +6,7 @@ # Interface: IKVStore -Defined in: [interfaces.ts:121](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L121) +Defined in: [interfaces.ts:121](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L121) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:121](https://github.com/humanprotocol/human-protocol/ > **key**: `string` -Defined in: [interfaces.ts:122](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L122) +Defined in: [interfaces.ts:122](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L122) *** @@ -22,4 +22,4 @@ Defined in: [interfaces.ts:122](https://github.com/humanprotocol/human-protocol/ > **value**: `string` -Defined in: [interfaces.ts:123](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L123) +Defined in: [interfaces.ts:123](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L123) diff --git a/docs/sdk/typescript/interfaces/interfaces/IKeyPair.md b/docs/sdk/typescript/interfaces/interfaces/IKeyPair.md index e5a76c6cbf..3eaef5d813 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IKeyPair.md +++ b/docs/sdk/typescript/interfaces/interfaces/IKeyPair.md @@ -6,7 +6,7 @@ # Interface: IKeyPair -Defined in: [interfaces.ts:97](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L97) +Defined in: [interfaces.ts:97](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L97) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:97](https://github.com/humanprotocol/human-protocol/b > **passphrase**: `string` -Defined in: [interfaces.ts:100](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L100) +Defined in: [interfaces.ts:100](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L100) *** @@ -22,7 +22,7 @@ Defined in: [interfaces.ts:100](https://github.com/humanprotocol/human-protocol/ > **privateKey**: `string` -Defined in: [interfaces.ts:98](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L98) +Defined in: [interfaces.ts:98](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L98) *** @@ -30,7 +30,7 @@ Defined in: [interfaces.ts:98](https://github.com/humanprotocol/human-protocol/b > **publicKey**: `string` -Defined in: [interfaces.ts:99](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L99) +Defined in: [interfaces.ts:99](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L99) *** @@ -38,4 +38,4 @@ Defined in: [interfaces.ts:99](https://github.com/humanprotocol/human-protocol/b > `optional` **revocationCertificate**: `string` -Defined in: [interfaces.ts:101](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L101) +Defined in: [interfaces.ts:101](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L101) diff --git a/docs/sdk/typescript/interfaces/interfaces/IOperator.md b/docs/sdk/typescript/interfaces/interfaces/IOperator.md index 2b1350f9ce..958f25833a 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IOperator.md +++ b/docs/sdk/typescript/interfaces/interfaces/IOperator.md @@ -6,7 +6,7 @@ # Interface: IOperator -Defined in: [interfaces.ts:9](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L9) +Defined in: [interfaces.ts:9](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L9) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:9](https://github.com/humanprotocol/human-protocol/bl > **address**: `string` -Defined in: [interfaces.ts:12](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L12) +Defined in: [interfaces.ts:12](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L12) *** @@ -22,7 +22,7 @@ Defined in: [interfaces.ts:12](https://github.com/humanprotocol/human-protocol/b > **amountJobsProcessed**: `bigint` \| `null` -Defined in: [interfaces.ts:18](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L18) +Defined in: [interfaces.ts:18](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L18) *** @@ -30,7 +30,7 @@ Defined in: [interfaces.ts:18](https://github.com/humanprotocol/human-protocol/b > **category**: `string` \| `null` -Defined in: [interfaces.ts:30](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L30) +Defined in: [interfaces.ts:30](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L30) *** @@ -38,7 +38,7 @@ Defined in: [interfaces.ts:30](https://github.com/humanprotocol/human-protocol/b > **chainId**: [`ChainId`](../../enums/enumerations/ChainId.md) -Defined in: [interfaces.ts:11](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L11) +Defined in: [interfaces.ts:11](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L11) *** @@ -46,7 +46,7 @@ Defined in: [interfaces.ts:11](https://github.com/humanprotocol/human-protocol/b > **fee**: `bigint` \| `null` -Defined in: [interfaces.ts:20](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L20) +Defined in: [interfaces.ts:20](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L20) *** @@ -54,7 +54,7 @@ Defined in: [interfaces.ts:20](https://github.com/humanprotocol/human-protocol/b > **id**: `string` -Defined in: [interfaces.ts:10](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L10) +Defined in: [interfaces.ts:10](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L10) *** @@ -62,7 +62,7 @@ Defined in: [interfaces.ts:10](https://github.com/humanprotocol/human-protocol/b > **jobTypes**: `string`[] \| `null` -Defined in: [interfaces.ts:25](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L25) +Defined in: [interfaces.ts:25](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L25) *** @@ -70,7 +70,7 @@ Defined in: [interfaces.ts:25](https://github.com/humanprotocol/human-protocol/b > **lockedAmount**: `bigint` \| `null` -Defined in: [interfaces.ts:14](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L14) +Defined in: [interfaces.ts:14](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L14) *** @@ -78,7 +78,7 @@ Defined in: [interfaces.ts:14](https://github.com/humanprotocol/human-protocol/b > **lockedUntilTimestamp**: `number` \| `null` -Defined in: [interfaces.ts:15](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L15) +Defined in: [interfaces.ts:15](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L15) *** @@ -86,7 +86,7 @@ Defined in: [interfaces.ts:15](https://github.com/humanprotocol/human-protocol/b > **name**: `string` \| `null` -Defined in: [interfaces.ts:29](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L29) +Defined in: [interfaces.ts:29](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L29) *** @@ -94,7 +94,7 @@ Defined in: [interfaces.ts:29](https://github.com/humanprotocol/human-protocol/b > **publicKey**: `string` \| `null` -Defined in: [interfaces.ts:21](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L21) +Defined in: [interfaces.ts:21](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L21) *** @@ -102,7 +102,7 @@ Defined in: [interfaces.ts:21](https://github.com/humanprotocol/human-protocol/b > **registrationInstructions**: `string` \| `null` -Defined in: [interfaces.ts:27](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L27) +Defined in: [interfaces.ts:27](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L27) *** @@ -110,7 +110,7 @@ Defined in: [interfaces.ts:27](https://github.com/humanprotocol/human-protocol/b > **registrationNeeded**: `boolean` \| `null` -Defined in: [interfaces.ts:26](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L26) +Defined in: [interfaces.ts:26](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L26) *** @@ -118,7 +118,7 @@ Defined in: [interfaces.ts:26](https://github.com/humanprotocol/human-protocol/b > **reputationNetworks**: `string`[] -Defined in: [interfaces.ts:28](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L28) +Defined in: [interfaces.ts:28](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L28) *** @@ -126,7 +126,7 @@ Defined in: [interfaces.ts:28](https://github.com/humanprotocol/human-protocol/b > **role**: `string` \| `null` -Defined in: [interfaces.ts:19](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L19) +Defined in: [interfaces.ts:19](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L19) *** @@ -134,7 +134,7 @@ Defined in: [interfaces.ts:19](https://github.com/humanprotocol/human-protocol/b > **slashedAmount**: `bigint` \| `null` -Defined in: [interfaces.ts:17](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L17) +Defined in: [interfaces.ts:17](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L17) *** @@ -142,7 +142,7 @@ Defined in: [interfaces.ts:17](https://github.com/humanprotocol/human-protocol/b > **stakedAmount**: `bigint` \| `null` -Defined in: [interfaces.ts:13](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L13) +Defined in: [interfaces.ts:13](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L13) *** @@ -150,7 +150,7 @@ Defined in: [interfaces.ts:13](https://github.com/humanprotocol/human-protocol/b > **url**: `string` \| `null` -Defined in: [interfaces.ts:24](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L24) +Defined in: [interfaces.ts:24](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L24) *** @@ -158,7 +158,7 @@ Defined in: [interfaces.ts:24](https://github.com/humanprotocol/human-protocol/b > **webhookUrl**: `string` \| `null` -Defined in: [interfaces.ts:22](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L22) +Defined in: [interfaces.ts:22](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L22) *** @@ -166,7 +166,7 @@ Defined in: [interfaces.ts:22](https://github.com/humanprotocol/human-protocol/b > **website**: `string` \| `null` -Defined in: [interfaces.ts:23](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L23) +Defined in: [interfaces.ts:23](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L23) *** @@ -174,4 +174,4 @@ Defined in: [interfaces.ts:23](https://github.com/humanprotocol/human-protocol/b > **withdrawnAmount**: `bigint` \| `null` -Defined in: [interfaces.ts:16](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L16) +Defined in: [interfaces.ts:16](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L16) diff --git a/docs/sdk/typescript/interfaces/interfaces/IOperatorsFilter.md b/docs/sdk/typescript/interfaces/interfaces/IOperatorsFilter.md index c00e91d606..7280f6f369 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IOperatorsFilter.md +++ b/docs/sdk/typescript/interfaces/interfaces/IOperatorsFilter.md @@ -6,7 +6,7 @@ # Interface: IOperatorsFilter -Defined in: [interfaces.ts:33](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L33) +Defined in: [interfaces.ts:33](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L33) ## Extends @@ -18,7 +18,7 @@ Defined in: [interfaces.ts:33](https://github.com/humanprotocol/human-protocol/b > **chainId**: [`ChainId`](../../enums/enumerations/ChainId.md) -Defined in: [interfaces.ts:34](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L34) +Defined in: [interfaces.ts:34](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L34) *** @@ -26,7 +26,7 @@ Defined in: [interfaces.ts:34](https://github.com/humanprotocol/human-protocol/b > `optional` **first**: `number` -Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) +Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) #### Inherited from @@ -38,7 +38,7 @@ Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/ > `optional` **minStakedAmount**: `number` -Defined in: [interfaces.ts:36](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L36) +Defined in: [interfaces.ts:36](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L36) *** @@ -46,7 +46,7 @@ Defined in: [interfaces.ts:36](https://github.com/humanprotocol/human-protocol/b > `optional` **orderBy**: `string` -Defined in: [interfaces.ts:37](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L37) +Defined in: [interfaces.ts:37](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L37) *** @@ -54,7 +54,7 @@ Defined in: [interfaces.ts:37](https://github.com/humanprotocol/human-protocol/b > `optional` **orderDirection**: [`OrderDirection`](../../enums/enumerations/OrderDirection.md) -Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) +Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) #### Inherited from @@ -66,7 +66,7 @@ Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/ > `optional` **roles**: `string`[] -Defined in: [interfaces.ts:35](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L35) +Defined in: [interfaces.ts:35](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L35) *** @@ -74,7 +74,7 @@ Defined in: [interfaces.ts:35](https://github.com/humanprotocol/human-protocol/b > `optional` **skip**: `number` -Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) +Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) #### Inherited from diff --git a/docs/sdk/typescript/interfaces/interfaces/IPagination.md b/docs/sdk/typescript/interfaces/interfaces/IPagination.md index 96c747c2cd..c1019d2ad3 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IPagination.md +++ b/docs/sdk/typescript/interfaces/interfaces/IPagination.md @@ -6,7 +6,7 @@ # Interface: IPagination -Defined in: [interfaces.ts:163](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L163) +Defined in: [interfaces.ts:163](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L163) ## Extended by @@ -27,7 +27,7 @@ Defined in: [interfaces.ts:163](https://github.com/humanprotocol/human-protocol/ > `optional` **first**: `number` -Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) +Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) *** @@ -35,7 +35,7 @@ Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/ > `optional` **orderDirection**: [`OrderDirection`](../../enums/enumerations/OrderDirection.md) -Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) +Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) *** @@ -43,4 +43,4 @@ Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/ > `optional` **skip**: `number` -Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) +Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) diff --git a/docs/sdk/typescript/interfaces/interfaces/IPaymentStatistics.md b/docs/sdk/typescript/interfaces/interfaces/IPaymentStatistics.md index afff9a5b84..8c27f833ca 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IPaymentStatistics.md +++ b/docs/sdk/typescript/interfaces/interfaces/IPaymentStatistics.md @@ -6,7 +6,7 @@ # Interface: IPaymentStatistics -Defined in: [interfaces.ts:262](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L262) +Defined in: [interfaces.ts:262](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L262) ## Properties @@ -14,4 +14,4 @@ Defined in: [interfaces.ts:262](https://github.com/humanprotocol/human-protocol/ > **dailyPaymentsData**: [`IDailyPayment`](IDailyPayment.md)[] -Defined in: [interfaces.ts:263](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L263) +Defined in: [interfaces.ts:263](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L263) diff --git a/docs/sdk/typescript/interfaces/interfaces/IPayout.md b/docs/sdk/typescript/interfaces/interfaces/IPayout.md index 60c7f7bb5a..aea8e9ac32 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IPayout.md +++ b/docs/sdk/typescript/interfaces/interfaces/IPayout.md @@ -6,7 +6,7 @@ # Interface: IPayout -Defined in: [interfaces.ts:302](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L302) +Defined in: [interfaces.ts:302](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L302) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:302](https://github.com/humanprotocol/human-protocol/ > **amount**: `bigint` -Defined in: [interfaces.ts:306](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L306) +Defined in: [interfaces.ts:306](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L306) *** @@ -22,7 +22,7 @@ Defined in: [interfaces.ts:306](https://github.com/humanprotocol/human-protocol/ > **createdAt**: `number` -Defined in: [interfaces.ts:307](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L307) +Defined in: [interfaces.ts:307](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L307) *** @@ -30,7 +30,7 @@ Defined in: [interfaces.ts:307](https://github.com/humanprotocol/human-protocol/ > **escrowAddress**: `string` -Defined in: [interfaces.ts:304](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L304) +Defined in: [interfaces.ts:304](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L304) *** @@ -38,7 +38,7 @@ Defined in: [interfaces.ts:304](https://github.com/humanprotocol/human-protocol/ > **id**: `string` -Defined in: [interfaces.ts:303](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L303) +Defined in: [interfaces.ts:303](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L303) *** @@ -46,4 +46,4 @@ Defined in: [interfaces.ts:303](https://github.com/humanprotocol/human-protocol/ > **recipient**: `string` -Defined in: [interfaces.ts:305](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L305) +Defined in: [interfaces.ts:305](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L305) diff --git a/docs/sdk/typescript/interfaces/interfaces/IPayoutFilter.md b/docs/sdk/typescript/interfaces/interfaces/IPayoutFilter.md index e9512e58c0..5ae548411d 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IPayoutFilter.md +++ b/docs/sdk/typescript/interfaces/interfaces/IPayoutFilter.md @@ -6,7 +6,7 @@ # Interface: IPayoutFilter -Defined in: [interfaces.ts:113](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L113) +Defined in: [interfaces.ts:113](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L113) ## Extends @@ -18,7 +18,7 @@ Defined in: [interfaces.ts:113](https://github.com/humanprotocol/human-protocol/ > **chainId**: [`ChainId`](../../enums/enumerations/ChainId.md) -Defined in: [interfaces.ts:114](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L114) +Defined in: [interfaces.ts:114](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L114) *** @@ -26,7 +26,7 @@ Defined in: [interfaces.ts:114](https://github.com/humanprotocol/human-protocol/ > `optional` **escrowAddress**: `string` -Defined in: [interfaces.ts:115](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L115) +Defined in: [interfaces.ts:115](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L115) *** @@ -34,7 +34,7 @@ Defined in: [interfaces.ts:115](https://github.com/humanprotocol/human-protocol/ > `optional` **first**: `number` -Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) +Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) #### Inherited from @@ -46,7 +46,7 @@ Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/ > `optional` **from**: `Date` -Defined in: [interfaces.ts:117](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L117) +Defined in: [interfaces.ts:117](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L117) *** @@ -54,7 +54,7 @@ Defined in: [interfaces.ts:117](https://github.com/humanprotocol/human-protocol/ > `optional` **orderDirection**: [`OrderDirection`](../../enums/enumerations/OrderDirection.md) -Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) +Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) #### Inherited from @@ -66,7 +66,7 @@ Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/ > `optional` **recipient**: `string` -Defined in: [interfaces.ts:116](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L116) +Defined in: [interfaces.ts:116](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L116) *** @@ -74,7 +74,7 @@ Defined in: [interfaces.ts:116](https://github.com/humanprotocol/human-protocol/ > `optional` **skip**: `number` -Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) +Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) #### Inherited from @@ -86,4 +86,4 @@ Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/ > `optional` **to**: `Date` -Defined in: [interfaces.ts:118](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L118) +Defined in: [interfaces.ts:118](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L118) diff --git a/docs/sdk/typescript/interfaces/interfaces/IReputationNetwork.md b/docs/sdk/typescript/interfaces/interfaces/IReputationNetwork.md index 295f9a5689..e31e857b8f 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IReputationNetwork.md +++ b/docs/sdk/typescript/interfaces/interfaces/IReputationNetwork.md @@ -6,7 +6,7 @@ # Interface: IReputationNetwork -Defined in: [interfaces.ts:40](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L40) +Defined in: [interfaces.ts:40](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L40) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:40](https://github.com/humanprotocol/human-protocol/b > **address**: `string` -Defined in: [interfaces.ts:42](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L42) +Defined in: [interfaces.ts:42](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L42) *** @@ -22,7 +22,7 @@ Defined in: [interfaces.ts:42](https://github.com/humanprotocol/human-protocol/b > **id**: `string` -Defined in: [interfaces.ts:41](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L41) +Defined in: [interfaces.ts:41](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L41) *** @@ -30,4 +30,4 @@ Defined in: [interfaces.ts:41](https://github.com/humanprotocol/human-protocol/b > **operators**: [`IOperator`](IOperator.md)[] -Defined in: [interfaces.ts:43](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L43) +Defined in: [interfaces.ts:43](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L43) diff --git a/docs/sdk/typescript/interfaces/interfaces/IReward.md b/docs/sdk/typescript/interfaces/interfaces/IReward.md index a9084a901b..a88ede941c 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IReward.md +++ b/docs/sdk/typescript/interfaces/interfaces/IReward.md @@ -6,7 +6,7 @@ # Interface: IReward -Defined in: [interfaces.ts:4](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L4) +Defined in: [interfaces.ts:4](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L4) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:4](https://github.com/humanprotocol/human-protocol/bl > **amount**: `bigint` -Defined in: [interfaces.ts:6](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L6) +Defined in: [interfaces.ts:6](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L6) *** @@ -22,4 +22,4 @@ Defined in: [interfaces.ts:6](https://github.com/humanprotocol/human-protocol/bl > **escrowAddress**: `string` -Defined in: [interfaces.ts:5](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L5) +Defined in: [interfaces.ts:5](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L5) diff --git a/docs/sdk/typescript/interfaces/interfaces/IStaker.md b/docs/sdk/typescript/interfaces/interfaces/IStaker.md index 2c2c907145..f93db8d21d 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IStaker.md +++ b/docs/sdk/typescript/interfaces/interfaces/IStaker.md @@ -6,7 +6,7 @@ # Interface: IStaker -Defined in: [interfaces.ts:197](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L197) +Defined in: [interfaces.ts:197](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L197) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:197](https://github.com/humanprotocol/human-protocol/ > **address**: `string` -Defined in: [interfaces.ts:198](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L198) +Defined in: [interfaces.ts:198](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L198) *** @@ -22,7 +22,7 @@ Defined in: [interfaces.ts:198](https://github.com/humanprotocol/human-protocol/ > **lastDepositTimestamp**: `number` -Defined in: [interfaces.ts:204](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L204) +Defined in: [interfaces.ts:204](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L204) *** @@ -30,7 +30,7 @@ Defined in: [interfaces.ts:204](https://github.com/humanprotocol/human-protocol/ > **lockedAmount**: `bigint` -Defined in: [interfaces.ts:200](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L200) +Defined in: [interfaces.ts:200](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L200) *** @@ -38,7 +38,7 @@ Defined in: [interfaces.ts:200](https://github.com/humanprotocol/human-protocol/ > **lockedUntil**: `number` -Defined in: [interfaces.ts:203](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L203) +Defined in: [interfaces.ts:203](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L203) *** @@ -46,7 +46,7 @@ Defined in: [interfaces.ts:203](https://github.com/humanprotocol/human-protocol/ > **slashedAmount**: `bigint` -Defined in: [interfaces.ts:202](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L202) +Defined in: [interfaces.ts:202](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L202) *** @@ -54,7 +54,7 @@ Defined in: [interfaces.ts:202](https://github.com/humanprotocol/human-protocol/ > **stakedAmount**: `bigint` -Defined in: [interfaces.ts:199](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L199) +Defined in: [interfaces.ts:199](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L199) *** @@ -62,4 +62,4 @@ Defined in: [interfaces.ts:199](https://github.com/humanprotocol/human-protocol/ > **withdrawableAmount**: `bigint` -Defined in: [interfaces.ts:201](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L201) +Defined in: [interfaces.ts:201](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L201) diff --git a/docs/sdk/typescript/interfaces/interfaces/IStakersFilter.md b/docs/sdk/typescript/interfaces/interfaces/IStakersFilter.md index 91bcbd8873..f9d3aa5a99 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IStakersFilter.md +++ b/docs/sdk/typescript/interfaces/interfaces/IStakersFilter.md @@ -6,7 +6,7 @@ # Interface: IStakersFilter -Defined in: [interfaces.ts:207](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L207) +Defined in: [interfaces.ts:207](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L207) ## Extends @@ -18,7 +18,7 @@ Defined in: [interfaces.ts:207](https://github.com/humanprotocol/human-protocol/ > **chainId**: [`ChainId`](../../enums/enumerations/ChainId.md) -Defined in: [interfaces.ts:208](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L208) +Defined in: [interfaces.ts:208](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L208) *** @@ -26,7 +26,7 @@ Defined in: [interfaces.ts:208](https://github.com/humanprotocol/human-protocol/ > `optional` **first**: `number` -Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) +Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) #### Inherited from @@ -38,7 +38,7 @@ Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/ > `optional` **maxLockedAmount**: `string` -Defined in: [interfaces.ts:212](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L212) +Defined in: [interfaces.ts:212](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L212) *** @@ -46,7 +46,7 @@ Defined in: [interfaces.ts:212](https://github.com/humanprotocol/human-protocol/ > `optional` **maxSlashedAmount**: `string` -Defined in: [interfaces.ts:216](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L216) +Defined in: [interfaces.ts:216](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L216) *** @@ -54,7 +54,7 @@ Defined in: [interfaces.ts:216](https://github.com/humanprotocol/human-protocol/ > `optional` **maxStakedAmount**: `string` -Defined in: [interfaces.ts:210](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L210) +Defined in: [interfaces.ts:210](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L210) *** @@ -62,7 +62,7 @@ Defined in: [interfaces.ts:210](https://github.com/humanprotocol/human-protocol/ > `optional` **maxWithdrawnAmount**: `string` -Defined in: [interfaces.ts:214](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L214) +Defined in: [interfaces.ts:214](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L214) *** @@ -70,7 +70,7 @@ Defined in: [interfaces.ts:214](https://github.com/humanprotocol/human-protocol/ > `optional` **minLockedAmount**: `string` -Defined in: [interfaces.ts:211](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L211) +Defined in: [interfaces.ts:211](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L211) *** @@ -78,7 +78,7 @@ Defined in: [interfaces.ts:211](https://github.com/humanprotocol/human-protocol/ > `optional` **minSlashedAmount**: `string` -Defined in: [interfaces.ts:215](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L215) +Defined in: [interfaces.ts:215](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L215) *** @@ -86,7 +86,7 @@ Defined in: [interfaces.ts:215](https://github.com/humanprotocol/human-protocol/ > `optional` **minStakedAmount**: `string` -Defined in: [interfaces.ts:209](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L209) +Defined in: [interfaces.ts:209](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L209) *** @@ -94,7 +94,7 @@ Defined in: [interfaces.ts:209](https://github.com/humanprotocol/human-protocol/ > `optional` **minWithdrawnAmount**: `string` -Defined in: [interfaces.ts:213](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L213) +Defined in: [interfaces.ts:213](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L213) *** @@ -102,7 +102,7 @@ Defined in: [interfaces.ts:213](https://github.com/humanprotocol/human-protocol/ > `optional` **orderBy**: `"stakedAmount"` \| `"lockedAmount"` \| `"withdrawnAmount"` \| `"slashedAmount"` \| `"lastDepositTimestamp"` -Defined in: [interfaces.ts:217](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L217) +Defined in: [interfaces.ts:217](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L217) *** @@ -110,7 +110,7 @@ Defined in: [interfaces.ts:217](https://github.com/humanprotocol/human-protocol/ > `optional` **orderDirection**: [`OrderDirection`](../../enums/enumerations/OrderDirection.md) -Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) +Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) #### Inherited from @@ -122,7 +122,7 @@ Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/ > `optional` **skip**: `number` -Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) +Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) #### Inherited from diff --git a/docs/sdk/typescript/interfaces/interfaces/IStatisticsFilter.md b/docs/sdk/typescript/interfaces/interfaces/IStatisticsFilter.md index 27fe68d89b..263048e88d 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IStatisticsFilter.md +++ b/docs/sdk/typescript/interfaces/interfaces/IStatisticsFilter.md @@ -6,7 +6,7 @@ # Interface: IStatisticsFilter -Defined in: [interfaces.ts:104](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L104) +Defined in: [interfaces.ts:104](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L104) ## Extends @@ -18,7 +18,7 @@ Defined in: [interfaces.ts:104](https://github.com/humanprotocol/human-protocol/ > `optional` **first**: `number` -Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) +Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) #### Inherited from @@ -30,7 +30,7 @@ Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/ > `optional` **from**: `Date` -Defined in: [interfaces.ts:105](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L105) +Defined in: [interfaces.ts:105](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L105) *** @@ -38,7 +38,7 @@ Defined in: [interfaces.ts:105](https://github.com/humanprotocol/human-protocol/ > `optional` **orderDirection**: [`OrderDirection`](../../enums/enumerations/OrderDirection.md) -Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) +Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) #### Inherited from @@ -50,7 +50,7 @@ Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/ > `optional` **skip**: `number` -Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) +Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) #### Inherited from @@ -62,4 +62,4 @@ Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/ > `optional` **to**: `Date` -Defined in: [interfaces.ts:106](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L106) +Defined in: [interfaces.ts:106](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L106) diff --git a/docs/sdk/typescript/interfaces/interfaces/IStatusEvent.md b/docs/sdk/typescript/interfaces/interfaces/IStatusEvent.md index f577513e47..21910c67da 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IStatusEvent.md +++ b/docs/sdk/typescript/interfaces/interfaces/IStatusEvent.md @@ -6,7 +6,7 @@ # Interface: IStatusEvent -Defined in: [interfaces.ts:285](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L285) +Defined in: [interfaces.ts:285](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L285) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:285](https://github.com/humanprotocol/human-protocol/ > **chainId**: [`ChainId`](../../enums/enumerations/ChainId.md) -Defined in: [interfaces.ts:289](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L289) +Defined in: [interfaces.ts:289](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L289) *** @@ -22,7 +22,7 @@ Defined in: [interfaces.ts:289](https://github.com/humanprotocol/human-protocol/ > **escrowAddress**: `string` -Defined in: [interfaces.ts:287](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L287) +Defined in: [interfaces.ts:287](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L287) *** @@ -30,7 +30,7 @@ Defined in: [interfaces.ts:287](https://github.com/humanprotocol/human-protocol/ > **status**: [`EscrowStatus`](../../types/enumerations/EscrowStatus.md) -Defined in: [interfaces.ts:288](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L288) +Defined in: [interfaces.ts:288](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L288) *** @@ -38,4 +38,4 @@ Defined in: [interfaces.ts:288](https://github.com/humanprotocol/human-protocol/ > **timestamp**: `number` -Defined in: [interfaces.ts:286](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L286) +Defined in: [interfaces.ts:286](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L286) diff --git a/docs/sdk/typescript/interfaces/interfaces/IStatusEventFilter.md b/docs/sdk/typescript/interfaces/interfaces/IStatusEventFilter.md index a98e743db7..86b812d8d0 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IStatusEventFilter.md +++ b/docs/sdk/typescript/interfaces/interfaces/IStatusEventFilter.md @@ -6,7 +6,7 @@ # Interface: IStatusEventFilter -Defined in: [interfaces.ts:176](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L176) +Defined in: [interfaces.ts:176](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L176) ## Extends @@ -18,7 +18,7 @@ Defined in: [interfaces.ts:176](https://github.com/humanprotocol/human-protocol/ > **chainId**: [`ChainId`](../../enums/enumerations/ChainId.md) -Defined in: [interfaces.ts:177](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L177) +Defined in: [interfaces.ts:177](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L177) *** @@ -26,7 +26,7 @@ Defined in: [interfaces.ts:177](https://github.com/humanprotocol/human-protocol/ > `optional` **first**: `number` -Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) +Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) #### Inherited from @@ -38,7 +38,7 @@ Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/ > `optional` **from**: `Date` -Defined in: [interfaces.ts:179](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L179) +Defined in: [interfaces.ts:179](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L179) *** @@ -46,7 +46,7 @@ Defined in: [interfaces.ts:179](https://github.com/humanprotocol/human-protocol/ > `optional` **launcher**: `string` -Defined in: [interfaces.ts:181](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L181) +Defined in: [interfaces.ts:181](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L181) *** @@ -54,7 +54,7 @@ Defined in: [interfaces.ts:181](https://github.com/humanprotocol/human-protocol/ > `optional` **orderDirection**: [`OrderDirection`](../../enums/enumerations/OrderDirection.md) -Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) +Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) #### Inherited from @@ -66,7 +66,7 @@ Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/ > `optional` **skip**: `number` -Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) +Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) #### Inherited from @@ -78,7 +78,7 @@ Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/ > `optional` **statuses**: [`EscrowStatus`](../../types/enumerations/EscrowStatus.md)[] -Defined in: [interfaces.ts:178](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L178) +Defined in: [interfaces.ts:178](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L178) *** @@ -86,4 +86,4 @@ Defined in: [interfaces.ts:178](https://github.com/humanprotocol/human-protocol/ > `optional` **to**: `Date` -Defined in: [interfaces.ts:180](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L180) +Defined in: [interfaces.ts:180](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L180) diff --git a/docs/sdk/typescript/interfaces/interfaces/ITransaction.md b/docs/sdk/typescript/interfaces/interfaces/ITransaction.md index e88974ec68..9481267b97 100644 --- a/docs/sdk/typescript/interfaces/interfaces/ITransaction.md +++ b/docs/sdk/typescript/interfaces/interfaces/ITransaction.md @@ -6,7 +6,7 @@ # Interface: ITransaction -Defined in: [interfaces.ts:136](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L136) +Defined in: [interfaces.ts:136](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L136) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:136](https://github.com/humanprotocol/human-protocol/ > **block**: `bigint` -Defined in: [interfaces.ts:137](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L137) +Defined in: [interfaces.ts:137](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L137) *** @@ -22,7 +22,7 @@ Defined in: [interfaces.ts:137](https://github.com/humanprotocol/human-protocol/ > **escrow**: `string` \| `null` -Defined in: [interfaces.ts:145](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L145) +Defined in: [interfaces.ts:145](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L145) *** @@ -30,7 +30,7 @@ Defined in: [interfaces.ts:145](https://github.com/humanprotocol/human-protocol/ > **from**: `string` -Defined in: [interfaces.ts:139](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L139) +Defined in: [interfaces.ts:139](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L139) *** @@ -38,7 +38,7 @@ Defined in: [interfaces.ts:139](https://github.com/humanprotocol/human-protocol/ > **internalTransactions**: [`InternalTransaction`](InternalTransaction.md)[] -Defined in: [interfaces.ts:147](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L147) +Defined in: [interfaces.ts:147](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L147) *** @@ -46,7 +46,7 @@ Defined in: [interfaces.ts:147](https://github.com/humanprotocol/human-protocol/ > **method**: `string` -Defined in: [interfaces.ts:143](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L143) +Defined in: [interfaces.ts:143](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L143) *** @@ -54,7 +54,7 @@ Defined in: [interfaces.ts:143](https://github.com/humanprotocol/human-protocol/ > **receiver**: `string` \| `null` -Defined in: [interfaces.ts:144](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L144) +Defined in: [interfaces.ts:144](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L144) *** @@ -62,7 +62,7 @@ Defined in: [interfaces.ts:144](https://github.com/humanprotocol/human-protocol/ > **timestamp**: `number` -Defined in: [interfaces.ts:141](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L141) +Defined in: [interfaces.ts:141](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L141) *** @@ -70,7 +70,7 @@ Defined in: [interfaces.ts:141](https://github.com/humanprotocol/human-protocol/ > **to**: `string` -Defined in: [interfaces.ts:140](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L140) +Defined in: [interfaces.ts:140](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L140) *** @@ -78,7 +78,7 @@ Defined in: [interfaces.ts:140](https://github.com/humanprotocol/human-protocol/ > **token**: `string` \| `null` -Defined in: [interfaces.ts:146](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L146) +Defined in: [interfaces.ts:146](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L146) *** @@ -86,7 +86,7 @@ Defined in: [interfaces.ts:146](https://github.com/humanprotocol/human-protocol/ > **txHash**: `string` -Defined in: [interfaces.ts:138](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L138) +Defined in: [interfaces.ts:138](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L138) *** @@ -94,4 +94,4 @@ Defined in: [interfaces.ts:138](https://github.com/humanprotocol/human-protocol/ > **value**: `bigint` -Defined in: [interfaces.ts:142](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L142) +Defined in: [interfaces.ts:142](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L142) diff --git a/docs/sdk/typescript/interfaces/interfaces/ITransactionsFilter.md b/docs/sdk/typescript/interfaces/interfaces/ITransactionsFilter.md index 5123c9b67f..425de8a393 100644 --- a/docs/sdk/typescript/interfaces/interfaces/ITransactionsFilter.md +++ b/docs/sdk/typescript/interfaces/interfaces/ITransactionsFilter.md @@ -6,7 +6,7 @@ # Interface: ITransactionsFilter -Defined in: [interfaces.ts:150](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L150) +Defined in: [interfaces.ts:150](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L150) ## Extends @@ -18,7 +18,7 @@ Defined in: [interfaces.ts:150](https://github.com/humanprotocol/human-protocol/ > **chainId**: [`ChainId`](../../enums/enumerations/ChainId.md) -Defined in: [interfaces.ts:151](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L151) +Defined in: [interfaces.ts:151](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L151) *** @@ -26,7 +26,7 @@ Defined in: [interfaces.ts:151](https://github.com/humanprotocol/human-protocol/ > `optional` **endBlock**: `number` -Defined in: [interfaces.ts:153](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L153) +Defined in: [interfaces.ts:153](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L153) *** @@ -34,7 +34,7 @@ Defined in: [interfaces.ts:153](https://github.com/humanprotocol/human-protocol/ > `optional` **endDate**: `Date` -Defined in: [interfaces.ts:155](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L155) +Defined in: [interfaces.ts:155](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L155) *** @@ -42,7 +42,7 @@ Defined in: [interfaces.ts:155](https://github.com/humanprotocol/human-protocol/ > `optional` **escrow**: `string` -Defined in: [interfaces.ts:159](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L159) +Defined in: [interfaces.ts:159](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L159) *** @@ -50,7 +50,7 @@ Defined in: [interfaces.ts:159](https://github.com/humanprotocol/human-protocol/ > `optional` **first**: `number` -Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) +Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) #### Inherited from @@ -62,7 +62,7 @@ Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/ > `optional` **fromAddress**: `string` -Defined in: [interfaces.ts:156](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L156) +Defined in: [interfaces.ts:156](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L156) *** @@ -70,7 +70,7 @@ Defined in: [interfaces.ts:156](https://github.com/humanprotocol/human-protocol/ > `optional` **method**: `string` -Defined in: [interfaces.ts:158](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L158) +Defined in: [interfaces.ts:158](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L158) *** @@ -78,7 +78,7 @@ Defined in: [interfaces.ts:158](https://github.com/humanprotocol/human-protocol/ > `optional` **orderDirection**: [`OrderDirection`](../../enums/enumerations/OrderDirection.md) -Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) +Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) #### Inherited from @@ -90,7 +90,7 @@ Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/ > `optional` **skip**: `number` -Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) +Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) #### Inherited from @@ -102,7 +102,7 @@ Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/ > `optional` **startBlock**: `number` -Defined in: [interfaces.ts:152](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L152) +Defined in: [interfaces.ts:152](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L152) *** @@ -110,7 +110,7 @@ Defined in: [interfaces.ts:152](https://github.com/humanprotocol/human-protocol/ > `optional` **startDate**: `Date` -Defined in: [interfaces.ts:154](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L154) +Defined in: [interfaces.ts:154](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L154) *** @@ -118,7 +118,7 @@ Defined in: [interfaces.ts:154](https://github.com/humanprotocol/human-protocol/ > `optional` **toAddress**: `string` -Defined in: [interfaces.ts:157](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L157) +Defined in: [interfaces.ts:157](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L157) *** @@ -126,4 +126,4 @@ Defined in: [interfaces.ts:157](https://github.com/humanprotocol/human-protocol/ > `optional` **token**: `string` -Defined in: [interfaces.ts:160](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L160) +Defined in: [interfaces.ts:160](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L160) diff --git a/docs/sdk/typescript/interfaces/interfaces/IWorker.md b/docs/sdk/typescript/interfaces/interfaces/IWorker.md index c3d777b095..f6bbe9d7ca 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IWorker.md +++ b/docs/sdk/typescript/interfaces/interfaces/IWorker.md @@ -6,7 +6,7 @@ # Interface: IWorker -Defined in: [interfaces.ts:184](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L184) +Defined in: [interfaces.ts:184](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L184) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:184](https://github.com/humanprotocol/human-protocol/ > **address**: `string` -Defined in: [interfaces.ts:186](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L186) +Defined in: [interfaces.ts:186](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L186) *** @@ -22,7 +22,7 @@ Defined in: [interfaces.ts:186](https://github.com/humanprotocol/human-protocol/ > **id**: `string` -Defined in: [interfaces.ts:185](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L185) +Defined in: [interfaces.ts:185](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L185) *** @@ -30,7 +30,7 @@ Defined in: [interfaces.ts:185](https://github.com/humanprotocol/human-protocol/ > **payoutCount**: `number` -Defined in: [interfaces.ts:188](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L188) +Defined in: [interfaces.ts:188](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L188) *** @@ -38,4 +38,4 @@ Defined in: [interfaces.ts:188](https://github.com/humanprotocol/human-protocol/ > **totalHMTAmountReceived**: `bigint` -Defined in: [interfaces.ts:187](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L187) +Defined in: [interfaces.ts:187](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L187) diff --git a/docs/sdk/typescript/interfaces/interfaces/IWorkerStatistics.md b/docs/sdk/typescript/interfaces/interfaces/IWorkerStatistics.md index 1e33d4d353..d18cbdc5a9 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IWorkerStatistics.md +++ b/docs/sdk/typescript/interfaces/interfaces/IWorkerStatistics.md @@ -6,7 +6,7 @@ # Interface: IWorkerStatistics -Defined in: [interfaces.ts:251](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L251) +Defined in: [interfaces.ts:251](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L251) ## Properties @@ -14,4 +14,4 @@ Defined in: [interfaces.ts:251](https://github.com/humanprotocol/human-protocol/ > **dailyWorkersData**: [`IDailyWorker`](IDailyWorker.md)[] -Defined in: [interfaces.ts:252](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L252) +Defined in: [interfaces.ts:252](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L252) diff --git a/docs/sdk/typescript/interfaces/interfaces/IWorkersFilter.md b/docs/sdk/typescript/interfaces/interfaces/IWorkersFilter.md index 5c5f3849a8..9a2f129882 100644 --- a/docs/sdk/typescript/interfaces/interfaces/IWorkersFilter.md +++ b/docs/sdk/typescript/interfaces/interfaces/IWorkersFilter.md @@ -6,7 +6,7 @@ # Interface: IWorkersFilter -Defined in: [interfaces.ts:191](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L191) +Defined in: [interfaces.ts:191](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L191) ## Extends @@ -18,7 +18,7 @@ Defined in: [interfaces.ts:191](https://github.com/humanprotocol/human-protocol/ > `optional` **address**: `string` -Defined in: [interfaces.ts:193](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L193) +Defined in: [interfaces.ts:193](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L193) *** @@ -26,7 +26,7 @@ Defined in: [interfaces.ts:193](https://github.com/humanprotocol/human-protocol/ > **chainId**: [`ChainId`](../../enums/enumerations/ChainId.md) -Defined in: [interfaces.ts:192](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L192) +Defined in: [interfaces.ts:192](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L192) *** @@ -34,7 +34,7 @@ Defined in: [interfaces.ts:192](https://github.com/humanprotocol/human-protocol/ > `optional` **first**: `number` -Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) +Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L164) #### Inherited from @@ -46,7 +46,7 @@ Defined in: [interfaces.ts:164](https://github.com/humanprotocol/human-protocol/ > `optional` **orderBy**: `string` -Defined in: [interfaces.ts:194](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L194) +Defined in: [interfaces.ts:194](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L194) *** @@ -54,7 +54,7 @@ Defined in: [interfaces.ts:194](https://github.com/humanprotocol/human-protocol/ > `optional` **orderDirection**: [`OrderDirection`](../../enums/enumerations/OrderDirection.md) -Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) +Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L166) #### Inherited from @@ -66,7 +66,7 @@ Defined in: [interfaces.ts:166](https://github.com/humanprotocol/human-protocol/ > `optional` **skip**: `number` -Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) +Defined in: [interfaces.ts:165](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L165) #### Inherited from diff --git a/docs/sdk/typescript/interfaces/interfaces/InternalTransaction.md b/docs/sdk/typescript/interfaces/interfaces/InternalTransaction.md index f7b64eb07e..b55dfbfd6e 100644 --- a/docs/sdk/typescript/interfaces/interfaces/InternalTransaction.md +++ b/docs/sdk/typescript/interfaces/interfaces/InternalTransaction.md @@ -6,7 +6,7 @@ # Interface: InternalTransaction -Defined in: [interfaces.ts:126](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L126) +Defined in: [interfaces.ts:126](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L126) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:126](https://github.com/humanprotocol/human-protocol/ > **escrow**: `string` \| `null` -Defined in: [interfaces.ts:132](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L132) +Defined in: [interfaces.ts:132](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L132) *** @@ -22,7 +22,7 @@ Defined in: [interfaces.ts:132](https://github.com/humanprotocol/human-protocol/ > **from**: `string` -Defined in: [interfaces.ts:127](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L127) +Defined in: [interfaces.ts:127](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L127) *** @@ -30,7 +30,7 @@ Defined in: [interfaces.ts:127](https://github.com/humanprotocol/human-protocol/ > **method**: `string` -Defined in: [interfaces.ts:130](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L130) +Defined in: [interfaces.ts:130](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L130) *** @@ -38,7 +38,7 @@ Defined in: [interfaces.ts:130](https://github.com/humanprotocol/human-protocol/ > **receiver**: `string` \| `null` -Defined in: [interfaces.ts:131](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L131) +Defined in: [interfaces.ts:131](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L131) *** @@ -46,7 +46,7 @@ Defined in: [interfaces.ts:131](https://github.com/humanprotocol/human-protocol/ > **to**: `string` -Defined in: [interfaces.ts:128](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L128) +Defined in: [interfaces.ts:128](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L128) *** @@ -54,7 +54,7 @@ Defined in: [interfaces.ts:128](https://github.com/humanprotocol/human-protocol/ > **token**: `string` \| `null` -Defined in: [interfaces.ts:133](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L133) +Defined in: [interfaces.ts:133](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L133) *** @@ -62,4 +62,4 @@ Defined in: [interfaces.ts:133](https://github.com/humanprotocol/human-protocol/ > **value**: `bigint` -Defined in: [interfaces.ts:129](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L129) +Defined in: [interfaces.ts:129](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L129) diff --git a/docs/sdk/typescript/interfaces/interfaces/StakerInfo.md b/docs/sdk/typescript/interfaces/interfaces/StakerInfo.md index 37bd6b0c99..6ae97c9b48 100644 --- a/docs/sdk/typescript/interfaces/interfaces/StakerInfo.md +++ b/docs/sdk/typescript/interfaces/interfaces/StakerInfo.md @@ -6,7 +6,7 @@ # Interface: StakerInfo -Defined in: [interfaces.ts:169](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L169) +Defined in: [interfaces.ts:169](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L169) ## Properties @@ -14,7 +14,7 @@ Defined in: [interfaces.ts:169](https://github.com/humanprotocol/human-protocol/ > **lockedAmount**: `bigint` -Defined in: [interfaces.ts:171](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L171) +Defined in: [interfaces.ts:171](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L171) *** @@ -22,7 +22,7 @@ Defined in: [interfaces.ts:171](https://github.com/humanprotocol/human-protocol/ > **lockedUntil**: `bigint` -Defined in: [interfaces.ts:172](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L172) +Defined in: [interfaces.ts:172](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L172) *** @@ -30,7 +30,7 @@ Defined in: [interfaces.ts:172](https://github.com/humanprotocol/human-protocol/ > **stakedAmount**: `bigint` -Defined in: [interfaces.ts:170](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L170) +Defined in: [interfaces.ts:170](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L170) *** @@ -38,4 +38,4 @@ Defined in: [interfaces.ts:170](https://github.com/humanprotocol/human-protocol/ > **withdrawableAmount**: `bigint` -Defined in: [interfaces.ts:173](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L173) +Defined in: [interfaces.ts:173](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L173) diff --git a/docs/sdk/typescript/interfaces/interfaces/SubgraphOptions.md b/docs/sdk/typescript/interfaces/interfaces/SubgraphOptions.md index 841e50b8cf..4cf671b12d 100644 --- a/docs/sdk/typescript/interfaces/interfaces/SubgraphOptions.md +++ b/docs/sdk/typescript/interfaces/interfaces/SubgraphOptions.md @@ -6,7 +6,7 @@ # Interface: SubgraphOptions -Defined in: [interfaces.ts:319](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L319) +Defined in: [interfaces.ts:319](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L319) Configuration options for subgraph requests with retry logic. @@ -16,16 +16,27 @@ Configuration options for subgraph requests with retry logic. > `optional` **baseDelay**: `number` -Defined in: [interfaces.ts:323](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L323) +Defined in: [interfaces.ts:323](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L323) Base delay between retries in milliseconds *** +### indexerId? + +> `optional` **indexerId**: `string` + +Defined in: [interfaces.ts:328](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L328) + +Optional indexer identifier. When provided, requests target +`{gateway}/deployments/id//indexers/id/`. + +*** + ### maxRetries? > `optional` **maxRetries**: `number` -Defined in: [interfaces.ts:321](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L321) +Defined in: [interfaces.ts:321](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts#L321) Maximum number of retry attempts diff --git a/docs/sdk/typescript/kvstore/classes/KVStoreClient.md b/docs/sdk/typescript/kvstore/classes/KVStoreClient.md index 5e9f0a5bb4..d27b0651c1 100644 --- a/docs/sdk/typescript/kvstore/classes/KVStoreClient.md +++ b/docs/sdk/typescript/kvstore/classes/KVStoreClient.md @@ -6,7 +6,7 @@ # Class: KVStoreClient -Defined in: [kvstore.ts:98](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L98) +Defined in: [kvstore.ts:98](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L98) ## Introduction @@ -86,7 +86,7 @@ const kvstoreClient = await KVStoreClient.build(provider); > **new KVStoreClient**(`runner`, `networkData`): `KVStoreClient` -Defined in: [kvstore.ts:107](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L107) +Defined in: [kvstore.ts:107](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L107) **KVStoreClient constructor** @@ -118,7 +118,7 @@ The network information required to connect to the KVStore contract > **networkData**: [`NetworkData`](../../types/type-aliases/NetworkData.md) -Defined in: [base.ts:12](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12) +Defined in: [base.ts:12](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12) #### Inherited from @@ -130,7 +130,7 @@ Defined in: [base.ts:12](https://github.com/humanprotocol/human-protocol/blob/61 > `protected` **runner**: `ContractRunner` -Defined in: [base.ts:11](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L11) +Defined in: [base.ts:11](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L11) #### Inherited from @@ -142,7 +142,7 @@ Defined in: [base.ts:11](https://github.com/humanprotocol/human-protocol/blob/61 > **get**(`address`, `key`): `Promise`\<`string`\> -Defined in: [kvstore.ts:308](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L308) +Defined in: [kvstore.ts:308](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L308) Gets the value of a key-value pair in the contract. @@ -188,7 +188,7 @@ const value = await kvstoreClient.get('0xf39Fd6e51aad88F6F4ce6aB8827279cffFb9226 > **set**(`key`, `value`, `txOptions?`): `Promise`\<`void`\> -Defined in: [kvstore.ts:170](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L170) +Defined in: [kvstore.ts:170](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L170) This function sets a key-value pair associated with the address that submits the transaction. @@ -242,7 +242,7 @@ await kvstoreClient.set('Role', 'RecordingOracle'); > **setBulk**(`keys`, `values`, `txOptions?`): `Promise`\<`void`\> -Defined in: [kvstore.ts:213](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L213) +Defined in: [kvstore.ts:213](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L213) This function sets key-value pairs in bulk associated with the address that submits the transaction. @@ -298,7 +298,7 @@ await kvstoreClient.setBulk(keys, values); > **setFileUrlAndHash**(`url`, `urlKey`, `txOptions?`): `Promise`\<`void`\> -Defined in: [kvstore.ts:256](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L256) +Defined in: [kvstore.ts:256](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L256) Sets a URL value for the address that submits the transaction, and its hash. @@ -351,7 +351,7 @@ await kvstoreClient.setFileUrlAndHash('linkedin.com/example', 'linkedin_url'); > `static` **build**(`runner`): `Promise`\<`KVStoreClient`\> -Defined in: [kvstore.ts:125](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L125) +Defined in: [kvstore.ts:125](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L125) Creates an instance of KVStoreClient from a runner. diff --git a/docs/sdk/typescript/kvstore/classes/KVStoreUtils.md b/docs/sdk/typescript/kvstore/classes/KVStoreUtils.md index ef3b59967b..0f3f3bd30a 100644 --- a/docs/sdk/typescript/kvstore/classes/KVStoreUtils.md +++ b/docs/sdk/typescript/kvstore/classes/KVStoreUtils.md @@ -6,7 +6,7 @@ # Class: KVStoreUtils -Defined in: [kvstore.ts:354](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L354) +Defined in: [kvstore.ts:354](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L354) ## Introduction @@ -55,7 +55,7 @@ const KVStoreAddresses = await KVStoreUtils.getKVStoreData( > `static` **get**(`chainId`, `address`, `key`, `options?`): `Promise`\<`string`\> -Defined in: [kvstore.ts:429](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L429) +Defined in: [kvstore.ts:429](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L429) Gets the value of a key-value pair in the KVStore using the subgraph. @@ -122,7 +122,7 @@ console.log(value); > `static` **getFileUrlAndVerifyHash**(`chainId`, `address`, `urlKey`, `options?`): `Promise`\<`string`\> -Defined in: [kvstore.ts:479](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L479) +Defined in: [kvstore.ts:479](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L479) Gets the URL value of the given entity, and verifies its hash. @@ -176,7 +176,7 @@ console.log(url); > `static` **getKVStoreData**(`chainId`, `address`, `options?`): `Promise`\<[`IKVStore`](../../interfaces/interfaces/IKVStore.md)[]\> -Defined in: [kvstore.ts:374](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L374) +Defined in: [kvstore.ts:374](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L374) This function returns the KVStore data for a given address. @@ -229,7 +229,7 @@ console.log(kvStoreData); > `static` **getPublicKey**(`chainId`, `address`, `options?`): `Promise`\<`string`\> -Defined in: [kvstore.ts:540](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L540) +Defined in: [kvstore.ts:540](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/kvstore.ts#L540) Gets the public key of the given entity, and verifies its hash. diff --git a/docs/sdk/typescript/operator/classes/OperatorUtils.md b/docs/sdk/typescript/operator/classes/OperatorUtils.md index 1558ef88d9..5cf1517005 100644 --- a/docs/sdk/typescript/operator/classes/OperatorUtils.md +++ b/docs/sdk/typescript/operator/classes/OperatorUtils.md @@ -6,7 +6,7 @@ # Class: OperatorUtils -Defined in: [operator.ts:29](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/operator.ts#L29) +Defined in: [operator.ts:29](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/operator.ts#L29) ## Constructors @@ -24,7 +24,7 @@ Defined in: [operator.ts:29](https://github.com/humanprotocol/human-protocol/blo > `static` **getOperator**(`chainId`, `address`, `options?`): `Promise`\<[`IOperator`](../../interfaces/interfaces/IOperator.md) \| `null`\> -Defined in: [operator.ts:46](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/operator.ts#L46) +Defined in: [operator.ts:46](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/operator.ts#L46) This function returns the operator data for the given address. @@ -68,7 +68,7 @@ const operator = await OperatorUtils.getOperator(ChainId.POLYGON_AMOY, '0x62dD51 > `static` **getOperators**(`filter`, `options?`): `Promise`\<[`IOperator`](../../interfaces/interfaces/IOperator.md)[]\> -Defined in: [operator.ts:92](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/operator.ts#L92) +Defined in: [operator.ts:92](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/operator.ts#L92) This function returns all the operator details of the protocol. @@ -109,7 +109,7 @@ const operators = await OperatorUtils.getOperators(filter); > `static` **getReputationNetworkOperators**(`chainId`, `address`, `role?`, `options?`): `Promise`\<[`IOperator`](../../interfaces/interfaces/IOperator.md)[]\> -Defined in: [operator.ts:159](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/operator.ts#L159) +Defined in: [operator.ts:159](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/operator.ts#L159) Retrieves the reputation network operators of the specified address. @@ -159,7 +159,7 @@ const operators = await OperatorUtils.getReputationNetworkOperators(ChainId.POLY > `static` **getRewards**(`chainId`, `slasherAddress`, `options?`): `Promise`\<[`IReward`](../../interfaces/interfaces/IReward.md)[]\> -Defined in: [operator.ts:205](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/operator.ts#L205) +Defined in: [operator.ts:205](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/operator.ts#L205) This function returns information about the rewards for a given slasher address. diff --git a/docs/sdk/typescript/staking/classes/StakingClient.md b/docs/sdk/typescript/staking/classes/StakingClient.md index 23f67459ea..63d86b550b 100644 --- a/docs/sdk/typescript/staking/classes/StakingClient.md +++ b/docs/sdk/typescript/staking/classes/StakingClient.md @@ -6,7 +6,7 @@ # Class: StakingClient -Defined in: [staking.ts:108](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L108) +Defined in: [staking.ts:108](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L108) ## Introduction @@ -86,7 +86,7 @@ const stakingClient = await StakingClient.build(provider); > **new StakingClient**(`runner`, `networkData`): `StakingClient` -Defined in: [staking.ts:119](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L119) +Defined in: [staking.ts:119](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L119) **StakingClient constructor** @@ -118,7 +118,7 @@ The network information required to connect to the Staking contract > **escrowFactoryContract**: `EscrowFactory` -Defined in: [staking.ts:111](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L111) +Defined in: [staking.ts:111](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L111) *** @@ -126,7 +126,7 @@ Defined in: [staking.ts:111](https://github.com/humanprotocol/human-protocol/blo > **networkData**: [`NetworkData`](../../types/type-aliases/NetworkData.md) -Defined in: [base.ts:12](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12) +Defined in: [base.ts:12](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L12) #### Inherited from @@ -138,7 +138,7 @@ Defined in: [base.ts:12](https://github.com/humanprotocol/human-protocol/blob/61 > `protected` **runner**: `ContractRunner` -Defined in: [base.ts:11](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L11) +Defined in: [base.ts:11](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/base.ts#L11) #### Inherited from @@ -150,7 +150,7 @@ Defined in: [base.ts:11](https://github.com/humanprotocol/human-protocol/blob/61 > **stakingContract**: `Staking` -Defined in: [staking.ts:110](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L110) +Defined in: [staking.ts:110](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L110) *** @@ -158,7 +158,7 @@ Defined in: [staking.ts:110](https://github.com/humanprotocol/human-protocol/blo > **tokenContract**: `HMToken` -Defined in: [staking.ts:109](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L109) +Defined in: [staking.ts:109](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L109) ## Methods @@ -166,7 +166,7 @@ Defined in: [staking.ts:109](https://github.com/humanprotocol/human-protocol/blo > **approveStake**(`amount`, `txOptions?`): `Promise`\<`void`\> -Defined in: [staking.ts:204](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L204) +Defined in: [staking.ts:204](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L204) This function approves the staking contract to transfer a specified amount of tokens when the user stakes. It increases the allowance for the staking contract. @@ -213,7 +213,7 @@ await stakingClient.approveStake(amount); > **getStakerInfo**(`stakerAddress`): `Promise`\<[`StakerInfo`](../../interfaces/interfaces/StakerInfo.md)\> -Defined in: [staking.ts:446](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L446) +Defined in: [staking.ts:446](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L446) Retrieves comprehensive staking information for a staker. @@ -249,7 +249,7 @@ console.log(stakingInfo.tokensStaked); > **slash**(`slasher`, `staker`, `escrowAddress`, `amount`, `txOptions?`): `Promise`\<`void`\> -Defined in: [staking.ts:384](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L384) +Defined in: [staking.ts:384](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L384) This function reduces the allocated amount by a staker in an escrow and transfers those tokens to the reward pool. This allows the slasher to claim them later. @@ -314,7 +314,7 @@ await stakingClient.slash('0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266', '0xf39Fd > **stake**(`amount`, `txOptions?`): `Promise`\<`void`\> -Defined in: [staking.ts:258](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L258) +Defined in: [staking.ts:258](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L258) This function stakes a specified amount of tokens on a specific network. @@ -364,7 +364,7 @@ await stakingClient.stake(amount); > **unstake**(`amount`, `txOptions?`): `Promise`\<`void`\> -Defined in: [staking.ts:302](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L302) +Defined in: [staking.ts:302](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L302) This function unstakes tokens from staking contract. The unstaked tokens stay locked for a period of time. @@ -413,7 +413,7 @@ await stakingClient.unstake(amount); > **withdraw**(`txOptions?`): `Promise`\<`void`\> -Defined in: [staking.ts:347](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L347) +Defined in: [staking.ts:347](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L347) This function withdraws unstaked and non-locked tokens from staking contract to the user wallet. @@ -455,7 +455,7 @@ await stakingClient.withdraw(); > `static` **build**(`runner`): `Promise`\<`StakingClient`\> -Defined in: [staking.ts:147](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L147) +Defined in: [staking.ts:147](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L147) Creates an instance of StakingClient from a Runner. diff --git a/docs/sdk/typescript/staking/classes/StakingUtils.md b/docs/sdk/typescript/staking/classes/StakingUtils.md index 2fe8961d5a..7d60d0498a 100644 --- a/docs/sdk/typescript/staking/classes/StakingUtils.md +++ b/docs/sdk/typescript/staking/classes/StakingUtils.md @@ -6,7 +6,7 @@ # Class: StakingUtils -Defined in: [staking.ts:484](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L484) +Defined in: [staking.ts:484](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L484) Utility class for Staking-related subgraph queries. @@ -26,7 +26,7 @@ Utility class for Staking-related subgraph queries. > `static` **getStaker**(`chainId`, `stakerAddress`, `options?`): `Promise`\<[`IStaker`](../../interfaces/interfaces/IStaker.md)\> -Defined in: [staking.ts:493](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L493) +Defined in: [staking.ts:493](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L493) Gets staking info for a staker from the subgraph. @@ -62,7 +62,7 @@ Staker info from subgraph > `static` **getStakers**(`filter`, `options?`): `Promise`\<[`IStaker`](../../interfaces/interfaces/IStaker.md)[]\> -Defined in: [staking.ts:528](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L528) +Defined in: [staking.ts:528](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/staking.ts#L528) Gets all stakers from the subgraph with filters, pagination and ordering. diff --git a/docs/sdk/typescript/statistics/classes/StatisticsClient.md b/docs/sdk/typescript/statistics/classes/StatisticsClient.md index ebc2034720..67b75646e3 100644 --- a/docs/sdk/typescript/statistics/classes/StatisticsClient.md +++ b/docs/sdk/typescript/statistics/classes/StatisticsClient.md @@ -6,7 +6,7 @@ # Class: StatisticsClient -Defined in: [statistics.ts:64](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L64) +Defined in: [statistics.ts:64](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L64) ## Introduction @@ -45,7 +45,7 @@ const statisticsClient = new StatisticsClient(NETWORKS[ChainId.POLYGON_AMOY]); > **new StatisticsClient**(`networkData`): `StatisticsClient` -Defined in: [statistics.ts:73](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L73) +Defined in: [statistics.ts:73](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L73) **StatisticsClient constructor** @@ -67,7 +67,7 @@ The network information required to connect to the Statistics contract > **networkData**: [`NetworkData`](../../types/type-aliases/NetworkData.md) -Defined in: [statistics.ts:65](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L65) +Defined in: [statistics.ts:65](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L65) *** @@ -75,7 +75,7 @@ Defined in: [statistics.ts:65](https://github.com/humanprotocol/human-protocol/b > **subgraphUrl**: `string` -Defined in: [statistics.ts:66](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L66) +Defined in: [statistics.ts:66](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L66) ## Methods @@ -83,7 +83,7 @@ Defined in: [statistics.ts:66](https://github.com/humanprotocol/human-protocol/b > **getEscrowStatistics**(`filter`, `options?`): `Promise`\<[`IEscrowStatistics`](../../interfaces/interfaces/IEscrowStatistics.md)\> -Defined in: [statistics.ts:127](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L127) +Defined in: [statistics.ts:127](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L127) This function returns the statistical data of escrows. @@ -155,7 +155,7 @@ const escrowStatisticsApril = await statisticsClient.getEscrowStatistics({ > **getHMTDailyData**(`filter`, `options?`): `Promise`\<[`IDailyHMT`](../../interfaces/interfaces/IDailyHMT.md)[]\> -Defined in: [statistics.ts:510](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L510) +Defined in: [statistics.ts:510](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L510) This function returns the statistical data of HMToken day by day. @@ -226,7 +226,7 @@ console.log('HMT statistics from 5/8 - 6/8:', hmtStatisticsRange); > **getHMTHolders**(`params`, `options?`): `Promise`\<[`IHMTHolder`](../../interfaces/interfaces/IHMTHolder.md)[]\> -Defined in: [statistics.ts:434](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L434) +Defined in: [statistics.ts:434](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L434) This function returns the holders of the HMToken with optional filters and ordering. @@ -275,7 +275,7 @@ console.log('HMT holders:', hmtHolders.map((h) => ({ > **getHMTStatistics**(`options?`): `Promise`\<[`IHMTStatistics`](../../interfaces/interfaces/IHMTStatistics.md)\> -Defined in: [statistics.ts:392](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L392) +Defined in: [statistics.ts:392](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L392) This function returns the statistical data of HMToken. @@ -322,7 +322,7 @@ console.log('HMT statistics:', { > **getPaymentStatistics**(`filter`, `options?`): `Promise`\<[`IPaymentStatistics`](../../interfaces/interfaces/IPaymentStatistics.md)\> -Defined in: [statistics.ts:321](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L321) +Defined in: [statistics.ts:321](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L321) This function returns the statistical data of payments. @@ -412,7 +412,7 @@ console.log( > **getWorkerStatistics**(`filter`, `options?`): `Promise`\<[`IWorkerStatistics`](../../interfaces/interfaces/IWorkerStatistics.md)\> -Defined in: [statistics.ts:218](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L218) +Defined in: [statistics.ts:218](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/statistics.ts#L218) This function returns the statistical data of workers. diff --git a/docs/sdk/typescript/storage/classes/StorageClient.md b/docs/sdk/typescript/storage/classes/StorageClient.md index 2cd637a09b..f50a29d10d 100644 --- a/docs/sdk/typescript/storage/classes/StorageClient.md +++ b/docs/sdk/typescript/storage/classes/StorageClient.md @@ -6,7 +6,7 @@ # ~~Class: StorageClient~~ -Defined in: [storage.ts:63](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L63) +Defined in: [storage.ts:63](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L63) ## Deprecated @@ -61,7 +61,7 @@ const storageClient = new StorageClient(params, credentials); > **new StorageClient**(`params`, `credentials?`): `StorageClient` -Defined in: [storage.ts:73](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L73) +Defined in: [storage.ts:73](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L73) **Storage client constructor** @@ -89,7 +89,7 @@ Optional. Cloud storage access data. If credentials are not provided - use anony > **bucketExists**(`bucket`): `Promise`\<`boolean`\> -Defined in: [storage.ts:262](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L262) +Defined in: [storage.ts:262](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L262) This function checks if a bucket exists. @@ -133,7 +133,7 @@ const exists = await storageClient.bucketExists('bucket-name'); > **downloadFiles**(`keys`, `bucket`): `Promise`\<`any`[]\> -Defined in: [storage.ts:112](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L112) +Defined in: [storage.ts:112](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L112) This function downloads files from a bucket. @@ -181,7 +181,7 @@ const files = await storageClient.downloadFiles(keys, 'bucket-name'); > **listObjects**(`bucket`): `Promise`\<`string`[]\> -Defined in: [storage.ts:292](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L292) +Defined in: [storage.ts:292](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L292) This function lists all file names contained in the bucket. @@ -225,7 +225,7 @@ const fileNames = await storageClient.listObjects('bucket-name'); > **uploadFiles**(`files`, `bucket`): `Promise`\<[`UploadFile`](../../types/type-aliases/UploadFile.md)[]\> -Defined in: [storage.ts:198](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L198) +Defined in: [storage.ts:198](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L198) This function uploads files to a bucket. @@ -278,7 +278,7 @@ const uploadedFiles = await storageClient.uploadFiles(files, 'bucket-name'); > `static` **downloadFileFromUrl**(`url`): `Promise`\<`any`\> -Defined in: [storage.ts:146](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L146) +Defined in: [storage.ts:146](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/storage.ts#L146) This function downloads files from a URL. diff --git a/docs/sdk/typescript/transaction/classes/TransactionUtils.md b/docs/sdk/typescript/transaction/classes/TransactionUtils.md index 4d418a54bb..5bf2a6d329 100644 --- a/docs/sdk/typescript/transaction/classes/TransactionUtils.md +++ b/docs/sdk/typescript/transaction/classes/TransactionUtils.md @@ -6,7 +6,7 @@ # Class: TransactionUtils -Defined in: [transaction.ts:23](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/transaction.ts#L23) +Defined in: [transaction.ts:22](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/transaction.ts#L22) ## Constructors @@ -24,7 +24,7 @@ Defined in: [transaction.ts:23](https://github.com/humanprotocol/human-protocol/ > `static` **getTransaction**(`chainId`, `hash`, `options?`): `Promise`\<[`ITransaction`](../../interfaces/interfaces/ITransaction.md) \| `null`\> -Defined in: [transaction.ts:68](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/transaction.ts#L68) +Defined in: [transaction.ts:67](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/transaction.ts#L67) This function returns the transaction data for the given hash. @@ -96,7 +96,7 @@ const transaction = await TransactionUtils.getTransaction(ChainId.POLYGON, '0x62 > `static` **getTransactions**(`filter`, `options?`): `Promise`\<[`ITransaction`](../../interfaces/interfaces/ITransaction.md)[]\> -Defined in: [transaction.ts:170](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/transaction.ts#L170) +Defined in: [transaction.ts:169](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/transaction.ts#L169) This function returns all transaction details based on the provided filter. diff --git a/docs/sdk/typescript/types/enumerations/EscrowStatus.md b/docs/sdk/typescript/types/enumerations/EscrowStatus.md index 2edaa0c575..65a776ba14 100644 --- a/docs/sdk/typescript/types/enumerations/EscrowStatus.md +++ b/docs/sdk/typescript/types/enumerations/EscrowStatus.md @@ -6,7 +6,7 @@ # Enumeration: EscrowStatus -Defined in: [types.ts:8](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L8) +Defined in: [types.ts:8](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L8) Enum for escrow statuses. @@ -16,7 +16,7 @@ Enum for escrow statuses. > **Cancelled**: `5` -Defined in: [types.ts:32](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L32) +Defined in: [types.ts:32](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L32) Escrow is cancelled. @@ -26,7 +26,7 @@ Escrow is cancelled. > **Complete**: `4` -Defined in: [types.ts:28](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L28) +Defined in: [types.ts:28](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L28) Escrow is finished. @@ -36,7 +36,7 @@ Escrow is finished. > **Launched**: `0` -Defined in: [types.ts:12](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L12) +Defined in: [types.ts:12](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L12) Escrow is launched. @@ -46,7 +46,7 @@ Escrow is launched. > **Paid**: `3` -Defined in: [types.ts:24](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L24) +Defined in: [types.ts:24](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L24) Escrow is fully paid. @@ -56,7 +56,7 @@ Escrow is fully paid. > **Partial**: `2` -Defined in: [types.ts:20](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L20) +Defined in: [types.ts:20](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L20) Escrow is partially paid out. @@ -66,7 +66,7 @@ Escrow is partially paid out. > **Pending**: `1` -Defined in: [types.ts:16](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L16) +Defined in: [types.ts:16](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L16) Escrow is funded, and waiting for the results to be submitted. @@ -76,6 +76,6 @@ Escrow is funded, and waiting for the results to be submitted. > **ToCancel**: `6` -Defined in: [types.ts:36](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L36) +Defined in: [types.ts:36](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L36) Escrow is cancelled. diff --git a/docs/sdk/typescript/types/type-aliases/NetworkData.md b/docs/sdk/typescript/types/type-aliases/NetworkData.md index bc32ba3450..b3868ee662 100644 --- a/docs/sdk/typescript/types/type-aliases/NetworkData.md +++ b/docs/sdk/typescript/types/type-aliases/NetworkData.md @@ -8,7 +8,7 @@ > **NetworkData** = `object` -Defined in: [types.ts:99](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L99) +Defined in: [types.ts:99](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L99) Network data @@ -18,7 +18,7 @@ Network data > **chainId**: `number` -Defined in: [types.ts:103](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L103) +Defined in: [types.ts:103](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L103) Network chain id @@ -28,7 +28,7 @@ Network chain id > **factoryAddress**: `string` -Defined in: [types.ts:119](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L119) +Defined in: [types.ts:119](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L119) Escrow Factory contract address @@ -38,7 +38,7 @@ Escrow Factory contract address > **hmtAddress**: `string` -Defined in: [types.ts:115](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L115) +Defined in: [types.ts:115](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L115) HMT Token contract address @@ -48,7 +48,7 @@ HMT Token contract address > **kvstoreAddress**: `string` -Defined in: [types.ts:127](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L127) +Defined in: [types.ts:127](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L127) KVStore contract address @@ -58,7 +58,7 @@ KVStore contract address > **oldFactoryAddress**: `string` -Defined in: [types.ts:143](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L143) +Defined in: [types.ts:143](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L143) Old Escrow Factory contract address @@ -68,7 +68,7 @@ Old Escrow Factory contract address > **oldSubgraphUrl**: `string` -Defined in: [types.ts:139](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L139) +Defined in: [types.ts:139](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L139) Old subgraph URL @@ -78,7 +78,7 @@ Old subgraph URL > **scanUrl**: `string` -Defined in: [types.ts:111](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L111) +Defined in: [types.ts:111](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L111) Network scanner URL @@ -88,7 +88,7 @@ Network scanner URL > **stakingAddress**: `string` -Defined in: [types.ts:123](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L123) +Defined in: [types.ts:123](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L123) Staking contract address @@ -98,7 +98,7 @@ Staking contract address > **subgraphUrl**: `string` -Defined in: [types.ts:131](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L131) +Defined in: [types.ts:131](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L131) Subgraph URL @@ -108,7 +108,7 @@ Subgraph URL > **subgraphUrlApiKey**: `string` -Defined in: [types.ts:135](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L135) +Defined in: [types.ts:135](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L135) Subgraph URL API key @@ -118,6 +118,6 @@ Subgraph URL API key > **title**: `string` -Defined in: [types.ts:107](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L107) +Defined in: [types.ts:107](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L107) Network title diff --git a/docs/sdk/typescript/types/type-aliases/StorageCredentials.md b/docs/sdk/typescript/types/type-aliases/StorageCredentials.md index 7e9fdb3b1a..628674af66 100644 --- a/docs/sdk/typescript/types/type-aliases/StorageCredentials.md +++ b/docs/sdk/typescript/types/type-aliases/StorageCredentials.md @@ -8,7 +8,7 @@ > `readonly` **StorageCredentials** = `object` -Defined in: [types.ts:44](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L44) +Defined in: [types.ts:44](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L44) AWS/GCP cloud storage access data @@ -22,7 +22,7 @@ StorageClient is deprecated. Use Minio.Client directly. > **accessKey**: `string` -Defined in: [types.ts:48](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L48) +Defined in: [types.ts:48](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L48) Access Key @@ -32,6 +32,6 @@ Access Key > **secretKey**: `string` -Defined in: [types.ts:52](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L52) +Defined in: [types.ts:52](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L52) Secret Key diff --git a/docs/sdk/typescript/types/type-aliases/StorageParams.md b/docs/sdk/typescript/types/type-aliases/StorageParams.md index d3407c10c8..188ee87bd4 100644 --- a/docs/sdk/typescript/types/type-aliases/StorageParams.md +++ b/docs/sdk/typescript/types/type-aliases/StorageParams.md @@ -8,7 +8,7 @@ > **StorageParams** = `object` -Defined in: [types.ts:58](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L58) +Defined in: [types.ts:58](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L58) ## Deprecated @@ -20,7 +20,7 @@ StorageClient is deprecated. Use Minio.Client directly. > **endPoint**: `string` -Defined in: [types.ts:62](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L62) +Defined in: [types.ts:62](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L62) Request endPoint @@ -30,7 +30,7 @@ Request endPoint > `optional` **port**: `number` -Defined in: [types.ts:74](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L74) +Defined in: [types.ts:74](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L74) TCP/IP port number. Default value set to 80 for HTTP and 443 for HTTPs @@ -40,7 +40,7 @@ TCP/IP port number. Default value set to 80 for HTTP and 443 for HTTPs > `optional` **region**: `string` -Defined in: [types.ts:70](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L70) +Defined in: [types.ts:70](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L70) Region @@ -50,6 +50,6 @@ Region > **useSSL**: `boolean` -Defined in: [types.ts:66](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L66) +Defined in: [types.ts:66](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L66) Enable secure (HTTPS) access. Default value set to false diff --git a/docs/sdk/typescript/types/type-aliases/TransactionLikeWithNonce.md b/docs/sdk/typescript/types/type-aliases/TransactionLikeWithNonce.md index 3d75569501..efa93be4e3 100644 --- a/docs/sdk/typescript/types/type-aliases/TransactionLikeWithNonce.md +++ b/docs/sdk/typescript/types/type-aliases/TransactionLikeWithNonce.md @@ -8,7 +8,7 @@ > **TransactionLikeWithNonce** = `TransactionLike` & `object` -Defined in: [types.ts:146](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L146) +Defined in: [types.ts:146](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L146) ## Type Declaration diff --git a/docs/sdk/typescript/types/type-aliases/UploadFile.md b/docs/sdk/typescript/types/type-aliases/UploadFile.md index a5ee434fef..22e3859877 100644 --- a/docs/sdk/typescript/types/type-aliases/UploadFile.md +++ b/docs/sdk/typescript/types/type-aliases/UploadFile.md @@ -8,7 +8,7 @@ > `readonly` **UploadFile** = `object` -Defined in: [types.ts:81](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L81) +Defined in: [types.ts:81](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L81) Upload file data @@ -18,7 +18,7 @@ Upload file data > **hash**: `string` -Defined in: [types.ts:93](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L93) +Defined in: [types.ts:93](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L93) Hash of uploaded object key @@ -28,7 +28,7 @@ Hash of uploaded object key > **key**: `string` -Defined in: [types.ts:85](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L85) +Defined in: [types.ts:85](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L85) Uploaded object key @@ -38,6 +38,6 @@ Uploaded object key > **url**: `string` -Defined in: [types.ts:89](https://github.com/humanprotocol/human-protocol/blob/61aec7f941934ccbea233e5338eb9fedacd0b20e/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L89) +Defined in: [types.ts:89](https://github.com/humanprotocol/human-protocol/blob/0661934b14ae802af3f939783433c196862268e2/packages/sdk/typescript/human-protocol-sdk/src/types.ts#L89) Uploaded object URL diff --git a/packages/apps/dashboard/client/eslint.config.js b/packages/apps/dashboard/client/eslint.config.mjs similarity index 79% rename from packages/apps/dashboard/client/eslint.config.js rename to packages/apps/dashboard/client/eslint.config.mjs index a253b2d2e5..6605a1e56a 100644 --- a/packages/apps/dashboard/client/eslint.config.js +++ b/packages/apps/dashboard/client/eslint.config.mjs @@ -54,26 +54,36 @@ export default tseslint.config( 'import/order': [ 'error', { - 'groups': ['builtin', 'external', 'internal', 'parent', 'sibling', 'index'], - 'pathGroups': [ + groups: [ + 'builtin', + 'external', + 'internal', + 'parent', + 'sibling', + 'index', + ], + pathGroups: [ { - 'pattern': 'react', - 'group': 'external', - 'position': 'before' - } + pattern: 'react', + group: 'external', + position: 'before', + }, ], - 'pathGroupsExcludedImportTypes': ['react'], + pathGroupsExcludedImportTypes: ['react'], 'newlines-between': 'always', - 'alphabetize': { - 'order': 'asc', - 'caseInsensitive': true - } - } + alphabetize: { + order: 'asc', + caseInsensitive: true, + }, + }, ], 'import/no-duplicates': 'error', 'import/no-unresolved': 'error', '@typescript-eslint/consistent-type-imports': 'error', - '@typescript-eslint/no-unused-vars': ['error', { 'argsIgnorePattern': '^_' }], + '@typescript-eslint/no-unused-vars': [ + 'error', + { argsIgnorePattern: '^_' }, + ], '@typescript-eslint/no-explicit-any': 'error', 'no-console': ['error', { allow: ['warn', 'error'] }], quotes: [ diff --git a/packages/apps/dashboard/client/package.json b/packages/apps/dashboard/client/package.json index 0ba4223942..1b65d1750d 100644 --- a/packages/apps/dashboard/client/package.json +++ b/packages/apps/dashboard/client/package.json @@ -50,9 +50,9 @@ "@types/react": "^18.3.12", "@types/react-dom": "^18.3.1", "@typescript-eslint/eslint-plugin": "^7.2.0", - "@typescript-eslint/parser": "^7.2.0", + "@typescript-eslint/parser": "^8.46.3", "@vitejs/plugin-react": "^4.2.1", - "eslint": "^9.27.0", + "eslint": "^9.39.1", "eslint-plugin-import": "^2.31.0", "eslint-plugin-prettier": "^5.4.0", "eslint-plugin-react": "^7.37.5", diff --git a/packages/apps/dashboard/server/.eslintrc.js b/packages/apps/dashboard/server/.eslintrc.js deleted file mode 100644 index 259de13c73..0000000000 --- a/packages/apps/dashboard/server/.eslintrc.js +++ /dev/null @@ -1,25 +0,0 @@ -module.exports = { - parser: '@typescript-eslint/parser', - parserOptions: { - project: 'tsconfig.json', - tsconfigRootDir: __dirname, - sourceType: 'module', - }, - plugins: ['@typescript-eslint/eslint-plugin'], - extends: [ - 'plugin:@typescript-eslint/recommended', - 'plugin:prettier/recommended', - ], - root: true, - env: { - node: true, - jest: true, - }, - ignorePatterns: ['.eslintrc.js'], - rules: { - '@typescript-eslint/interface-name-prefix': 'off', - '@typescript-eslint/explicit-function-return-type': 'off', - '@typescript-eslint/explicit-module-boundary-types': 'off', - '@typescript-eslint/no-explicit-any': 'off', - }, -}; diff --git a/packages/apps/dashboard/server/eslint.config.mjs b/packages/apps/dashboard/server/eslint.config.mjs new file mode 100644 index 0000000000..0d8f27e5ea --- /dev/null +++ b/packages/apps/dashboard/server/eslint.config.mjs @@ -0,0 +1,57 @@ +// @ts-check +import eslint from '@eslint/js'; +import globals from 'globals'; +import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'; +import jestPlugin from 'eslint-plugin-jest'; +import tseslint from 'typescript-eslint'; + +export default tseslint.config( + { + ignores: ['dist', 'node_modules'], + }, + eslint.configs.recommended, + tseslint.configs.recommended, + eslintPluginPrettierRecommended, + { + files: ['**/*.ts', '**/*.js'], + languageOptions: { + globals: { + ...globals.node, + ...globals.es2022, + }, + ecmaVersion: 2022, + sourceType: 'module', + parserOptions: { + projectService: true, + tsconfigRootDir: import.meta.dirname, + }, + }, + plugins: { + jest: jestPlugin, + }, + rules: { + '@typescript-eslint/interface-name-prefix': 'off', + '@typescript-eslint/explicit-function-return-type': 'off', + '@typescript-eslint/explicit-module-boundary-types': 'off', + '@typescript-eslint/no-explicit-any': 'off', + '@typescript-eslint/no-empty-function': 'off', + '@typescript-eslint/no-non-null-assertion': 'off', + "@/quotes": [ + "error", + "single", + { "avoidEscape": true, "allowTemplateLiterals": true } + ], + }, + }, + { + files: ['**/*.spec.ts', '**/*.spec.tsx', '**/*.test.ts', '**/*.test.tsx'], + languageOptions: { + globals: { + ...globals.jest, + }, + }, + plugins: { + jest: jestPlugin, + }, + }, +); diff --git a/packages/apps/dashboard/server/package.json b/packages/apps/dashboard/server/package.json index 557c2423da..dde650391f 100644 --- a/packages/apps/dashboard/server/package.json +++ b/packages/apps/dashboard/server/package.json @@ -27,7 +27,7 @@ "@nestjs/cache-manager": "^2.2.2", "@nestjs/common": "^10.2.7", "@nestjs/config": "^3.2.3", - "@nestjs/core": "^10.2.8", + "@nestjs/core": "^11.1.9", "@nestjs/mapped-types": "*", "@nestjs/platform-express": "^10.3.10", "axios": "^1.3.1", @@ -44,14 +44,15 @@ "@nestjs/schematics": "^11.0.2", "@nestjs/testing": "^10.4.6", "@types/express": "^4.17.13", - "@types/jest": "29.5.1", + "@types/jest": "30.0.0", "@types/node": "22.10.5", "@typescript-eslint/eslint-plugin": "^5.0.0", - "@typescript-eslint/parser": "^5.0.0", - "eslint": "^8.0.1", + "@typescript-eslint/parser": "^8.46.3", + "eslint": "^9.39.1", "eslint-config-prettier": "^9.1.0", + "eslint-plugin-jest": "^28.9.0", "eslint-plugin-prettier": "^5.2.1", - "jest": "29.5.0", + "jest": "30.2.0", "prettier": "^3.4.2", "source-map-support": "^0.5.20", "ts-jest": "29.2.5", diff --git a/packages/apps/dashboard/server/src/modules/details/details.spec.ts b/packages/apps/dashboard/server/src/modules/details/details.spec.ts index 182b93091a..0b0dc899d3 100644 --- a/packages/apps/dashboard/server/src/modules/details/details.spec.ts +++ b/packages/apps/dashboard/server/src/modules/details/details.spec.ts @@ -145,7 +145,7 @@ describe('DetailsService', () => { expect(result[1].address).toBe('0xC'); expect(result[2].address).toBe('0xD'); expect(result.length).toBe(5); - expect(getOperatorsSpy).toBeCalledWith( + expect(getOperatorsSpy).toHaveBeenCalledWith( expect.objectContaining({ first: 5, }), diff --git a/packages/apps/faucet/client/.eslintrc.json b/packages/apps/faucet/client/.eslintrc.json deleted file mode 100644 index 1353b4816c..0000000000 --- a/packages/apps/faucet/client/.eslintrc.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "extends": [ - "plugin:import/recommended", - "plugin:import/typescript", - "plugin:prettier/recommended", - "react-app" - ], - "settings": { - "import/resolver": { - "typescript": {}, - "node": { - "extensions": [".js", ".jsx", ".ts", ".tsx", ".d.ts"] - } - }, - "import/parsers": { - "@typescript-eslint/parser": [".ts", ".tsx"] - } - }, - "parserOptions": { - "ecmaVersion": 2020, - "sourceType": "module" - }, - "rules": { - "no-console": "warn", - "no-unused-vars": "off", - "import/extensions": [ - "error", - "ignorePackages", - { - "js": "never", - "jsx": "never", - "ts": "never", - "tsx": "never" - } - ], - "import/order": [ - "error", - { - "pathGroups": [ - { - "pattern": "~/**", - "group": "external" - } - ], - "alphabetize": { - "order": "asc", - "caseInsensitive": true - } - } - ], - "@typescript-eslint/no-unused-vars": "error", - "prettier/prettier": ["error"] - }, - "overrides": [ - { - "files": ["*.ts", "*.tsx"], - "rules": { - "no-undef": "off" - } - } - ], - "env": { - "browser": true, - "jest": true, - "node": true - } -} diff --git a/packages/apps/faucet/client/eslint.config.mjs b/packages/apps/faucet/client/eslint.config.mjs new file mode 100644 index 0000000000..e6ac5e722b --- /dev/null +++ b/packages/apps/faucet/client/eslint.config.mjs @@ -0,0 +1,47 @@ +import eslint from '@eslint/js'; +import globals from 'globals'; +import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'; +import tseslint from 'typescript-eslint'; + +export default tseslint.config( + { + ignores: ['dist', 'node_modules', 'vite.config.ts'], + }, + eslint.configs.recommended, + tseslint.configs.recommended, + eslintPluginPrettierRecommended, + { + files: ['**/*.ts', '**/*.js'], + languageOptions: { + globals: { + ...globals.node, + ...globals.es2022, + }, + ecmaVersion: 2022, + sourceType: 'module', + parserOptions: { + projectService: true, + tsconfigRootDir: import.meta.dirname, + }, + }, + rules: { + '@typescript-eslint/interface-name-prefix': 'off', + '@typescript-eslint/explicit-function-return-type': 'off', + '@typescript-eslint/explicit-module-boundary-types': 'off', + '@typescript-eslint/no-explicit-any': 'off', + '@/quotes': [ + 'error', + 'single', + { avoidEscape: true, allowTemplateLiterals: true }, + ], + }, + }, + { + files: ['**/*.spec.ts', '**/*.spec.tsx', '**/*.test.ts', '**/*.test.tsx'], + languageOptions: { + globals: { + ...globals.jest, + }, + }, + } +); diff --git a/packages/apps/faucet/client/package.json b/packages/apps/faucet/client/package.json index bcce15fd2c..6477ef42cd 100644 --- a/packages/apps/faucet/client/package.json +++ b/packages/apps/faucet/client/package.json @@ -32,7 +32,7 @@ "@types/react": "^18.3.12", "@types/react-dom": "^18.3.1", "dotenv": "^17.2.2", - "eslint": "^8.55.0", + "eslint": "^9.39.1", "eslint-config-react-app": "^7.0.1", "eslint-import-resolver-typescript": "^3.7.0", "eslint-plugin-import": "^2.29.0", diff --git a/packages/apps/faucet/client/src/components/Layout/Layout.tsx b/packages/apps/faucet/client/src/components/Layout/Layout.tsx index 819c5f26ad..4c4550a439 100644 --- a/packages/apps/faucet/client/src/components/Layout/Layout.tsx +++ b/packages/apps/faucet/client/src/components/Layout/Layout.tsx @@ -4,7 +4,9 @@ import { FC, PropsWithChildren } from 'react'; import { Footer } from '../Footer'; import { Header } from '../Header'; -export const Layout: FC> = ({ children }) => ( +type LayoutProps = PropsWithChildren>; + +export const Layout: FC = ({ children }) => ( > = ({ children }) => ( +type PageWrapperProps = PropsWithChildren>; + +export const PageWrapper: FC = ({ children }) => ( { - return { - plugins: [ - react(), - nodePolyfills({ - // Whether to polyfill `node:` protocol imports. - protocolImports: true, - }), - ], - worker: { - plugins: () => react(), +export default defineConfig({ + plugins: [ + react(), + nodePolyfills({ + // Whether to polyfill `node:` protocol imports. + protocolImports: true, + }), + ], + worker: { + plugins: () => react(), + }, + resolve: { + alias: [{ find: 'src', replacement: path.resolve(__dirname, 'src') }], + }, + optimizeDeps: { + include: ['@human-protocol/sdk'], + }, + build: { + commonjsOptions: { + include: [/human-protocol-sdk/, /node_modules/], }, - resolve: { - alias: [{ find: 'src', replacement: path.resolve(__dirname, 'src') }], - }, - optimizeDeps: { - include: ['@human-protocol/sdk'], - }, - build: { - commonjsOptions: { - include: [/human-protocol-sdk/, /node_modules/], - }, - }, - server: { - port: 3006, - }, - }; + }, + server: { + port: 3006, + }, }); diff --git a/packages/apps/faucet/server/.eslintignore b/packages/apps/faucet/server/.eslintignore deleted file mode 100644 index 67efb3d239..0000000000 --- a/packages/apps/faucet/server/.eslintignore +++ /dev/null @@ -1,3 +0,0 @@ -build/ -dist/ -node_modules/ \ No newline at end of file diff --git a/packages/apps/faucet/server/.eslintrc b/packages/apps/faucet/server/.eslintrc deleted file mode 100644 index 773fde5bcb..0000000000 --- a/packages/apps/faucet/server/.eslintrc +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parser": "@typescript-eslint/parser", - "parserOptions": { - "ecmaVersion": 2020, - "sourceType": "module" - }, - "plugins": ["@typescript-eslint", "prettier", "jest"], - "extends": [ - "eslint:recommended", - "plugin:@typescript-eslint/eslint-recommended", - "plugin:@typescript-eslint/recommended", - "prettier" - ], - "rules": { - "no-console": "warn", - "prettier/prettier": "error" - } -} diff --git a/packages/apps/faucet/server/eslint.config.mjs b/packages/apps/faucet/server/eslint.config.mjs new file mode 100644 index 0000000000..1c908b5aea --- /dev/null +++ b/packages/apps/faucet/server/eslint.config.mjs @@ -0,0 +1,44 @@ +import eslint from '@eslint/js'; +import globals from 'globals'; +import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'; +import tseslint from 'typescript-eslint'; + +export default tseslint.config( + { + ignores: ['build/', 'dist/', 'node_modules/'], + }, + eslint.configs.recommended, + tseslint.configs.recommended, + eslintPluginPrettierRecommended, + { + files: ['**/*.ts', '**/*.js'], + languageOptions: { + globals: { + ...globals.node, + ...globals.es2022, + }, + ecmaVersion: 2022, + sourceType: 'module', + parserOptions: { + projectService: true, + }, + }, + rules: { + 'no-console': 'warn', + 'prettier/prettier': 'error', + '@/quotes': [ + 'error', + 'single', + { avoidEscape: true, allowTemplateLiterals: true }, + ], + }, + }, + { + files: ['**/*.spec.ts', '**/*.spec.tsx', '**/*.test.ts', '**/*.test.tsx'], + languageOptions: { + globals: { + ...globals.jest, + }, + }, + } +); diff --git a/packages/apps/faucet/server/package.json b/packages/apps/faucet/server/package.json index 8f1f2ca83f..0fbd758582 100644 --- a/packages/apps/faucet/server/package.json +++ b/packages/apps/faucet/server/package.json @@ -29,9 +29,9 @@ "@types/express": "^4.17.14", "@types/node": "^22.15.16", "concurrently": "^9.1.2", - "eslint": "^8.55.0", + "eslint": "^9.39.1", "hardhat": "^2.26.0", - "jest": "^29.7.0", + "jest": "^30.2.0", "ts-node": "^10.9.2", "typescript": "^5.8.3" } diff --git a/packages/apps/fortune/exchange-oracle/client/.eslintrc.cjs b/packages/apps/fortune/exchange-oracle/client/.eslintrc.cjs deleted file mode 100644 index dd29102b35..0000000000 --- a/packages/apps/fortune/exchange-oracle/client/.eslintrc.cjs +++ /dev/null @@ -1,19 +0,0 @@ -module.exports = { - root: true, - env: { browser: true, es2020: true }, - extends: [ - 'eslint:recommended', - 'plugin:@typescript-eslint/recommended', - 'plugin:react-hooks/recommended', - ], - ignorePatterns: ['dist', '.eslintrc.cjs'], - parser: '@typescript-eslint/parser', - plugins: ['react-refresh'], - rules: { - 'react-refresh/only-export-components': [ - 'warn', - { allowConstantExport: true }, - ], - '@typescript-eslint/no-explicit-any': 'off', - }, -}; diff --git a/packages/apps/fortune/exchange-oracle/client/eslint.config.mjs b/packages/apps/fortune/exchange-oracle/client/eslint.config.mjs new file mode 100644 index 0000000000..3649fc8f9a --- /dev/null +++ b/packages/apps/fortune/exchange-oracle/client/eslint.config.mjs @@ -0,0 +1,54 @@ +import eslint from '@eslint/js'; +import globals from 'globals'; +import tseslint from 'typescript-eslint'; +import reactHooksPlugin from 'eslint-plugin-react-hooks'; +import reactRefreshPlugin from 'eslint-plugin-react-refresh'; +import { fileURLToPath } from 'node:url'; +import path from 'node:path'; + +const __filename = fileURLToPath(import.meta.url); +const __dirname = path.dirname(__filename); + +/** @type {import('eslint').Linter.FlatConfig[]} */ +const config = tseslint.config( + { + ignores: ['dist', '.eslintrc.cjs', 'vite.config.ts'], + }, + eslint.configs.recommended, + tseslint.configs.recommended, + { + files: ['**/*.{ts,tsx,js,jsx}'], + languageOptions: { + globals: { + ...globals.browser, + ...globals.es2022, + }, + ecmaVersion: 2022, + sourceType: 'module', + parserOptions: { + projectService: true, + tsconfigRootDir: __dirname, + }, + }, + plugins: { + 'react-hooks': reactHooksPlugin, + 'react-refresh': reactRefreshPlugin, + }, + rules: { + 'react-hooks/rules-of-hooks': 'error', + 'react-hooks/exhaustive-deps': 'warn', + 'react-refresh/only-export-components': [ + 'warn', + { allowConstantExport: true }, + ], + '@typescript-eslint/no-explicit-any': 'off', + '@/quotes': [ + 'error', + 'single', + { 'avoidEscape': true, 'allowTemplateLiterals': true } + ], + }, + } +); + +export default config; diff --git a/packages/apps/fortune/exchange-oracle/client/package.json b/packages/apps/fortune/exchange-oracle/client/package.json index 6284ecee93..86960b89de 100644 --- a/packages/apps/fortune/exchange-oracle/client/package.json +++ b/packages/apps/fortune/exchange-oracle/client/package.json @@ -49,9 +49,9 @@ "@types/react-dom": "^18.3.1", "@types/react-router-dom": "^5.3.3", "@typescript-eslint/eslint-plugin": "^7.13.1", - "@typescript-eslint/parser": "^7.13.1", + "@typescript-eslint/parser": "^8.46.3", "@vitejs/plugin-react": "^4.3.1", - "eslint": "^8.57.0", + "eslint": "^9.39.1", "eslint-plugin-react-hooks": "^5.1.0", "eslint-plugin-react-refresh": "^0.4.11", "prettier": "^3.4.2", diff --git a/packages/apps/fortune/exchange-oracle/client/src/utils/string.ts b/packages/apps/fortune/exchange-oracle/client/src/utils/string.ts index 7607ad8d12..7f0200df4a 100644 --- a/packages/apps/fortune/exchange-oracle/client/src/utils/string.ts +++ b/packages/apps/fortune/exchange-oracle/client/src/utils/string.ts @@ -1,4 +1,3 @@ -// eslint-disable-next-line @typescript-eslint/no-explicit-any export const parseErrorMessage = (error: any) => { if (typeof error === 'string') { return error; diff --git a/packages/apps/fortune/exchange-oracle/server/.eslintrc.js b/packages/apps/fortune/exchange-oracle/server/.eslintrc.js deleted file mode 100644 index 7bbc5f2c77..0000000000 --- a/packages/apps/fortune/exchange-oracle/server/.eslintrc.js +++ /dev/null @@ -1,27 +0,0 @@ -module.exports = { - parser: '@typescript-eslint/parser', - parserOptions: { - project: 'tsconfig.json', - tsconfigRootDir: __dirname, - sourceType: 'module', - }, - plugins: ['@typescript-eslint/eslint-plugin'], - extends: [ - 'plugin:@typescript-eslint/recommended', - 'plugin:prettier/recommended', - ], - root: true, - env: { - node: true, - jest: true, - }, - ignorePatterns: ['.eslintrc.js'], - rules: { - '@typescript-eslint/interface-name-prefix': 'off', - '@typescript-eslint/explicit-function-return-type': 'off', - '@typescript-eslint/explicit-module-boundary-types': 'off', - '@typescript-eslint/no-explicit-any': 'off', - '@typescript-eslint/no-empty-function': 'off', - '@typescript-eslint/no-non-null-assertion': 'off', - }, -}; diff --git a/packages/apps/fortune/exchange-oracle/server/eslint.config.mjs b/packages/apps/fortune/exchange-oracle/server/eslint.config.mjs new file mode 100644 index 0000000000..471eb358d4 --- /dev/null +++ b/packages/apps/fortune/exchange-oracle/server/eslint.config.mjs @@ -0,0 +1,58 @@ +import eslint from '@eslint/js'; +import globals from 'globals'; +import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'; +import jestPlugin from 'eslint-plugin-jest'; +import tseslint from 'typescript-eslint'; + +/** @type {import('eslint').Linter.FlatConfig[]} */ +const config = tseslint.config( + { + ignores: ['dist', '.eslintrc.js'], + }, + eslint.configs.recommended, + tseslint.configs.recommended, + eslintPluginPrettierRecommended, + { + files: ['**/*.ts', '**/*.js'], + languageOptions: { + globals: { + ...globals.node, + ...globals.es2022, + }, + ecmaVersion: 2022, + sourceType: 'module', + parserOptions: { + projectService: true, + }, + }, + plugins: { + jest: jestPlugin, + }, + rules: { + '@typescript-eslint/interface-name-prefix': 'off', + '@typescript-eslint/explicit-function-return-type': 'off', + '@typescript-eslint/explicit-module-boundary-types': 'off', + '@typescript-eslint/no-explicit-any': 'off', + '@typescript-eslint/no-empty-function': 'off', + '@typescript-eslint/no-non-null-assertion': 'off', + '@/quotes': [ + 'error', + 'single', + { 'avoidEscape': true, 'allowTemplateLiterals': true } + ], + }, + }, + { + files: ['**/*.spec.ts', '**/*.spec.tsx', '**/*.test.ts', '**/*.test.tsx'], + languageOptions: { + globals: { + ...globals.jest, + }, + }, + plugins: { + jest: jestPlugin, + }, + }, +); + +export default config; diff --git a/packages/apps/fortune/exchange-oracle/server/package.json b/packages/apps/fortune/exchange-oracle/server/package.json index 39fe533a13..cb840b8a31 100644 --- a/packages/apps/fortune/exchange-oracle/server/package.json +++ b/packages/apps/fortune/exchange-oracle/server/package.json @@ -34,7 +34,7 @@ "@nestjs/axios": "^3.1.2", "@nestjs/common": "^10.2.7", "@nestjs/config": "^3.1.1", - "@nestjs/core": "^10.3.10", + "@nestjs/core": "^11.1.9", "@nestjs/passport": "^10.0.0", "@nestjs/platform-express": "^10.3.10", "@nestjs/schedule": "^4.0.1", @@ -66,17 +66,18 @@ "@nestjs/testing": "^10.4.6", "@types/body-parser": "^1", "@types/express": "^4.17.13", - "@types/jest": "29.5.12", + "@types/jest": "30.0.0", "@types/jsonwebtoken": "^9.0.7", "@types/node": "22.10.5", "@types/passport": "^0", "@types/pg": "8.11.10", "@typescript-eslint/eslint-plugin": "^5.0.0", - "@typescript-eslint/parser": "^5.0.0", - "eslint": "^8.55.0", + "@typescript-eslint/parser": "^8.46.3", + "eslint": "^9.39.1", "eslint-config-prettier": "^9.1.0", + "eslint-plugin-jest": "^28.9.0", "eslint-plugin-prettier": "^5.2.1", - "jest": "29.7.0", + "jest": "30.2.0", "prettier": "^3.4.2", "source-map-support": "^0.5.20", "ts-jest": "29.2.5", diff --git a/packages/apps/fortune/exchange-oracle/server/src/common/decorators/enums.ts b/packages/apps/fortune/exchange-oracle/server/src/common/decorators/enums.ts index e6d3bf29ad..c59ad95194 100644 --- a/packages/apps/fortune/exchange-oracle/server/src/common/decorators/enums.ts +++ b/packages/apps/fortune/exchange-oracle/server/src/common/decorators/enums.ts @@ -9,8 +9,7 @@ export function IsEnumCaseInsensitive( enumType: any, validationOptions?: ValidationOptions, ) { - // eslint-disable-next-line @typescript-eslint/ban-types - return function (object: Object, propertyName: string) { + return function (object: object, propertyName: string) { // Attach enum metadata to the property Reflect.defineMetadata('custom:enum', enumType, object, propertyName); diff --git a/packages/apps/fortune/exchange-oracle/server/src/common/interceptors/transform-enum.interceptor.spec.ts b/packages/apps/fortune/exchange-oracle/server/src/common/interceptors/transform-enum.interceptor.spec.ts index b0420dd949..801a0f5936 100644 --- a/packages/apps/fortune/exchange-oracle/server/src/common/interceptors/transform-enum.interceptor.spec.ts +++ b/packages/apps/fortune/exchange-oracle/server/src/common/interceptors/transform-enum.interceptor.spec.ts @@ -87,7 +87,7 @@ describe('TransformEnumInterceptor', () => { amount: 5, address: '0xCf88b3f1992458C2f5a229573c768D0E9F70C44e', }); - expect(callHandler.handle).toBeCalled(); // Ensure the handler is called + expect(callHandler.handle).toHaveBeenCalled(); // Ensure the handler is called }); it('should throw an error if the value is not a valid enum', async () => { @@ -125,7 +125,7 @@ describe('TransformEnumInterceptor', () => { expect(request.body.address).toBe( '0xCf88b3f1992458C2f5a229573c768D0E9F70C44e', ); // Non-enum string should remain unchanged - expect(callHandler.handle).toBeCalled(); + expect(callHandler.handle).toHaveBeenCalled(); }); it('should handle nested objects with enums', async () => { diff --git a/packages/apps/fortune/exchange-oracle/server/src/common/interceptors/transform-enum.interceptor.ts b/packages/apps/fortune/exchange-oracle/server/src/common/interceptors/transform-enum.interceptor.ts index 5f0948bc5b..f6976d210b 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 @@ -88,7 +88,7 @@ export class TransformEnumInterceptor implements NestInterceptor { } for (const property in bodyOrQuery) { - if (bodyOrQuery.hasOwnProperty(property)) { + if (Object.prototype.hasOwnProperty.call(bodyOrQuery, property)) { const instanceValue = instance[property]; // Retrieve enum metadata if available diff --git a/packages/apps/fortune/exchange-oracle/server/src/common/utils/signature.ts b/packages/apps/fortune/exchange-oracle/server/src/common/utils/signature.ts index d5e78a413d..15cf64463f 100644 --- a/packages/apps/fortune/exchange-oracle/server/src/common/utils/signature.ts +++ b/packages/apps/fortune/exchange-oracle/server/src/common/utils/signature.ts @@ -41,7 +41,7 @@ export function recoverSigner( try { return ethers.verifyMessage(message, signature); - } catch (e) { + } catch { throw new ValidationError('Invalid signature'); } } diff --git a/packages/apps/fortune/exchange-oracle/server/src/common/validators/ethers.ts b/packages/apps/fortune/exchange-oracle/server/src/common/validators/ethers.ts index 55bc380197..ff3a2671f7 100644 --- a/packages/apps/fortune/exchange-oracle/server/src/common/validators/ethers.ts +++ b/packages/apps/fortune/exchange-oracle/server/src/common/validators/ethers.ts @@ -20,7 +20,6 @@ class ValidateEthereumAddress implements ValidatorConstraintInterface { } export function IsValidEthereumAddress(validationOptions?: ValidationOptions) { - // eslint-disable-next-line @typescript-eslint/no-explicit-any return (object: any, propertyName: string): void => { registerDecorator({ name: 'IsValidEthereumAddress', diff --git a/packages/apps/fortune/exchange-oracle/server/src/modules/assignment/assignment.service.spec.ts b/packages/apps/fortune/exchange-oracle/server/src/modules/assignment/assignment.service.spec.ts index 6bd57ac270..0144bac268 100644 --- a/packages/apps/fortune/exchange-oracle/server/src/modules/assignment/assignment.service.spec.ts +++ b/packages/apps/fortune/exchange-oracle/server/src/modules/assignment/assignment.service.spec.ts @@ -1,4 +1,5 @@ import { createMock } from '@golevelup/ts-jest'; +import { Escrow__factory } from '@human-protocol/core/typechain-types'; import { ConfigService } from '@nestjs/config'; import { Test } from '@nestjs/testing'; import { @@ -6,7 +7,16 @@ import { MOCK_MANIFEST_URL, MOCK_PRIVATE_KEY, } from '../../../test/constants'; -import { AssignmentStatus, JobStatus, JobType } from '../../common/enums/job'; +import { ServerConfigService } from '../../common/config/server-config.service'; +import { ErrorAssignment, ErrorJob } from '../../common/constant/errors'; +import { SortDirection } from '../../common/enums/collection'; +import { + AssignmentSortField, + AssignmentStatus, + JobStatus, + JobType, +} from '../../common/enums/job'; +import { ConflictError, ServerError } from '../../common/errors'; import { AssignmentRepository } from '../assignment/assignment.repository'; import { AssignmentService } from '../assignment/assignment.service'; import { ManifestDto } from '../job/job.dto'; @@ -14,13 +24,7 @@ import { JobRepository } from '../job/job.repository'; import { JobService } from '../job/job.service'; import { Web3Service } from '../web3/web3.service'; import { AssignmentDto, CreateAssignmentDto } from './assignment.dto'; -import { Escrow__factory } from '@human-protocol/core/typechain-types'; -import { AssignmentSortField } from '../../common/enums/job'; -import { SortDirection } from '../../common/enums/collection'; import { AssignmentEntity } from './assignment.entity'; -import { ErrorAssignment, ErrorJob } from '../../common/constant/errors'; -import { BadRequestException } from '@nestjs/common'; -import { ServerConfigService } from '../../common/config/server-config.service'; jest.mock('@human-protocol/core/typechain-types', () => ({ ...jest.requireActual('@human-protocol/core/typechain-types'), @@ -518,7 +522,7 @@ describe('AssignmentService', () => { await expect( assignmentService.resign(assignmentId, workerAddress), - ).rejects.toThrow(new BadRequestException(ErrorAssignment.NotFound)); + ).rejects.toThrow(new ServerError(ErrorAssignment.NotFound)); }); it('should throw InvalidStatus if assignment status is not ACTIVE', async () => { @@ -536,7 +540,7 @@ describe('AssignmentService', () => { await expect( assignmentService.resign(assignmentId, workerAddress), - ).rejects.toThrow(new BadRequestException(ErrorAssignment.InvalidStatus)); + ).rejects.toThrow(new ConflictError(ErrorAssignment.InvalidStatus)); }); }); }); diff --git a/packages/apps/fortune/exchange-oracle/server/src/modules/job/job.service.spec.ts b/packages/apps/fortune/exchange-oracle/server/src/modules/job/job.service.spec.ts index 5eea7efe29..f3192d8661 100644 --- a/packages/apps/fortune/exchange-oracle/server/src/modules/job/job.service.spec.ts +++ b/packages/apps/fortune/exchange-oracle/server/src/modules/job/job.service.spec.ts @@ -1,4 +1,5 @@ import { createMock } from '@golevelup/ts-jest'; +import { HMToken__factory } from '@human-protocol/core/typechain-types'; import { Encryption, EscrowClient, @@ -6,6 +7,7 @@ import { StorageClient, } from '@human-protocol/sdk'; import { HttpService } from '@nestjs/axios'; +import { BadRequestException, NotFoundException } from '@nestjs/common'; import { ConfigService } from '@nestjs/config'; import { Test } from '@nestjs/testing'; import { of } from 'rxjs'; @@ -14,6 +16,9 @@ import { MOCK_MANIFEST_URL, mockConfig, } from '../../../test/constants'; +import { PGPConfigService } from '../../common/config/pgp-config.service'; +import { S3ConfigService } from '../../common/config/s3-config.service'; +import { ErrorAssignment, ErrorJob } from '../../common/constant/errors'; import { AssignmentStatus, JobFieldName, @@ -21,6 +26,11 @@ import { JobType, } from '../../common/enums/job'; import { EventType, WebhookStatus } from '../../common/enums/webhook'; +import { + ConflictError, + ServerError, + ValidationError, +} from '../../common/errors'; import { AssignmentEntity } from '../assignment/assignment.entity'; import { AssignmentRepository } from '../assignment/assignment.repository'; import { StorageService } from '../storage/storage.service'; @@ -31,11 +41,6 @@ import { ManifestDto } from './job.dto'; import { JobEntity } from './job.entity'; import { JobRepository } from './job.repository'; import { JobService } from './job.service'; -import { PGPConfigService } from '../../common/config/pgp-config.service'; -import { S3ConfigService } from '../../common/config/s3-config.service'; -import { ErrorJob, ErrorAssignment } from '../../common/constant/errors'; -import { BadRequestException, NotFoundException } from '@nestjs/common'; -import { HMToken__factory } from '@human-protocol/core/typechain-types'; jest.mock('@human-protocol/sdk', () => ({ ...jest.requireActual('@human-protocol/sdk'), @@ -251,17 +256,17 @@ describe('JobService', () => { ); }); - it('should throw NotFoundException if job does not exist', async () => { + it('should throw ServerError if job does not exist', async () => { jest .spyOn(jobRepository, 'findOneByChainIdAndEscrowAddressWithAssignments') .mockResolvedValue(null); await expect(jobService.completeJob(webhook)).rejects.toThrow( - new NotFoundException(ErrorJob.NotFound), + new ServerError(ErrorJob.NotFound), ); }); - it('should throw BadRequestException if job is already completed', async () => { + it('should throw ConflictError if job is already completed', async () => { const jobEntity = new JobEntity(); jobEntity.chainId = chainId; jobEntity.escrowAddress = escrowAddress; @@ -272,7 +277,7 @@ describe('JobService', () => { .mockResolvedValue(jobEntity); await expect(jobService.completeJob(webhook)).rejects.toThrow( - new BadRequestException(ErrorJob.AlreadyCompleted), + new ConflictError(ErrorJob.AlreadyCompleted), ); }); }); @@ -325,17 +330,17 @@ describe('JobService', () => { ); }); - it('should throw NotFoundException if job does not exist', async () => { + it('should throw ServerError if job does not exist', async () => { jest .spyOn(jobRepository, 'findOneByChainIdAndEscrowAddressWithAssignments') .mockResolvedValue(null); await expect(jobService.cancelJob(webhook)).rejects.toThrow( - new NotFoundException(ErrorJob.NotFound), + new ServerError(ErrorJob.NotFound), ); }); - it('should throw BadRequestException if job is already canceled', async () => { + it('should throw ConflictError if job is already canceled', async () => { const jobEntity = new JobEntity(); jobEntity.chainId = chainId; jobEntity.escrowAddress = escrowAddress; @@ -346,7 +351,7 @@ describe('JobService', () => { .mockResolvedValue(jobEntity); await expect(jobService.cancelJob(webhook)).rejects.toThrow( - new BadRequestException(ErrorJob.AlreadyCanceled), + new ConflictError(ErrorJob.AlreadyCanceled), ); }); }); @@ -513,7 +518,7 @@ describe('JobService', () => { assignment.status = AssignmentStatus.CANCELED; await expect(jobService.solveJob(1, 'solution')).rejects.toThrow( - new BadRequestException(ErrorAssignment.InvalidStatus), + new ConflictError(ErrorAssignment.InvalidStatus), ); expect(web3Service.getSigner).toHaveBeenCalledWith(chainId); }); @@ -591,7 +596,7 @@ describe('JobService', () => { })); await expect(jobService.solveJob(1, 'solution')).rejects.toThrow( - new BadRequestException(ErrorJob.SolutionAlreadySubmitted), + new ValidationError(ErrorJob.SolutionAlreadySubmitted), ); expect(web3Service.getSigner).toHaveBeenCalledWith(chainId); }); diff --git a/packages/apps/fortune/exchange-oracle/server/src/modules/job/job.service.ts b/packages/apps/fortune/exchange-oracle/server/src/modules/job/job.service.ts index 72f8129444..40bbae2104 100644 --- a/packages/apps/fortune/exchange-oracle/server/src/modules/job/job.service.ts +++ b/packages/apps/fortune/exchange-oracle/server/src/modules/job/job.service.ts @@ -255,9 +255,11 @@ export class JobService { invalidJobSolution.escrowAddress, invalidJobSolution.chainId, ); - for (const invalidSolution of ( - invalidJobSolution.eventData as RejectionEventData - )?.assignments) { + const rejectionEventData = + invalidJobSolution.eventData as RejectionEventData; + const assignments = rejectionEventData.assignments ?? []; + + for (const invalidSolution of assignments) { const foundSolution = existingJobSolutions.find( (sol) => sol.workerAddress === invalidSolution.assigneeId, ); diff --git a/packages/apps/fortune/exchange-oracle/server/src/modules/storage/storage.service.spec.ts b/packages/apps/fortune/exchange-oracle/server/src/modules/storage/storage.service.spec.ts index e13d7112bd..a8d561b7b9 100644 --- a/packages/apps/fortune/exchange-oracle/server/src/modules/storage/storage.service.spec.ts +++ b/packages/apps/fortune/exchange-oracle/server/src/modules/storage/storage.service.spec.ts @@ -106,8 +106,8 @@ describe('StorageService', () => { .fn() .mockResolvedValue(true); EncryptionUtils.encrypt = jest.fn().mockResolvedValue('encrypted'); - (KVStoreUtils.getPublicKey = jest.fn().mockResolvedValue('publicKey')), - jest.spyOn(pgpConfigService, 'encrypt', 'get').mockReturnValue(true); + KVStoreUtils.getPublicKey = jest.fn().mockResolvedValue('publicKey'); + jest.spyOn(pgpConfigService, 'encrypt', 'get').mockReturnValue(true); const jobSolution = { workerAddress, diff --git a/packages/apps/fortune/exchange-oracle/server/src/modules/webhook/webhook.service.spec.ts b/packages/apps/fortune/exchange-oracle/server/src/modules/webhook/webhook.service.spec.ts index fd0565bdb7..003a29cffc 100644 --- a/packages/apps/fortune/exchange-oracle/server/src/modules/webhook/webhook.service.spec.ts +++ b/packages/apps/fortune/exchange-oracle/server/src/modules/webhook/webhook.service.spec.ts @@ -206,7 +206,7 @@ describe('WebhookService', () => { .mockResolvedValue(''); await expect( (webhookService as any).sendWebhook(webhookEntity), - ).rejects.toThrowError(ErrorWebhook.UrlNotFound); + ).rejects.toThrow(ErrorWebhook.UrlNotFound); }); it('should handle error if any exception is thrown', async () => { @@ -218,7 +218,7 @@ describe('WebhookService', () => { }); await expect( (webhookService as any).sendWebhook(webhookEntity), - ).rejects.toThrowError('HTTP request failed'); + ).rejects.toThrow('HTTP request failed'); }); it('should successfully process a webhook with signature', async () => { @@ -295,7 +295,7 @@ describe('WebhookService', () => { ChainId.LOCALHOST, EventType.ESCROW_CREATED, ), - ).rejects.toThrowError('Invalid outgoing event type'); + ).rejects.toThrow('Invalid outgoing event type'); }); it('should throw NotFoundError if operator is not found', async () => { diff --git a/packages/apps/fortune/exchange-oracle/server/src/modules/webhook/webhook.service.ts b/packages/apps/fortune/exchange-oracle/server/src/modules/webhook/webhook.service.ts index e0017a0ef0..ccf29459a8 100644 --- a/packages/apps/fortune/exchange-oracle/server/src/modules/webhook/webhook.service.ts +++ b/packages/apps/fortune/exchange-oracle/server/src/modules/webhook/webhook.service.ts @@ -1,4 +1,3 @@ -/* eslint-disable @typescript-eslint/no-non-null-assertion */ import { ChainId, EscrowClient, OperatorUtils } from '@human-protocol/sdk'; import { HttpService } from '@nestjs/axios'; import { Injectable } from '@nestjs/common'; diff --git a/packages/apps/fortune/recording-oracle/.eslintignore b/packages/apps/fortune/recording-oracle/.eslintignore deleted file mode 100644 index 78329ede5f..0000000000 --- a/packages/apps/fortune/recording-oracle/.eslintignore +++ /dev/null @@ -1,3 +0,0 @@ -dist -node_modules -jest.config.js diff --git a/packages/apps/fortune/recording-oracle/.eslintrc b/packages/apps/fortune/recording-oracle/.eslintrc deleted file mode 100644 index cbf59224e5..0000000000 --- a/packages/apps/fortune/recording-oracle/.eslintrc +++ /dev/null @@ -1,20 +0,0 @@ -{ - "parser": "@typescript-eslint/parser", - "parserOptions": { - "ecmaVersion": 2020, - "sourceType": "module" - }, - "plugins": ["@typescript-eslint", "prettier", "jest"], - "extends": [ - "eslint:recommended", - "plugin:@typescript-eslint/eslint-recommended", - "plugin:@typescript-eslint/recommended", - "prettier" - ], - "rules": { - "no-console": "warn", - "prettier/prettier": "error", - "@typescript-eslint/explicit-module-boundary-types": "off", - "@typescript-eslint/no-explicit-any": "off" - } -} diff --git a/packages/apps/fortune/recording-oracle/eslint.config.mjs b/packages/apps/fortune/recording-oracle/eslint.config.mjs new file mode 100644 index 0000000000..c131251039 --- /dev/null +++ b/packages/apps/fortune/recording-oracle/eslint.config.mjs @@ -0,0 +1,54 @@ +import eslint from '@eslint/js'; +import globals from 'globals'; +import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'; +import jestPlugin from 'eslint-plugin-jest'; +import tseslint from 'typescript-eslint'; + +export default tseslint.config( + { + ignores: ['dist', 'node_modules', 'jest.config.ts'], + }, + eslint.configs.recommended, + tseslint.configs.recommended, + eslintPluginPrettierRecommended, + { + files: ['**/*.ts', '**/*.js'], + languageOptions: { + globals: { + ...globals.node, + ...globals.es2022, + }, + ecmaVersion: 2022, + sourceType: 'module', + parserOptions: { + projectService: true, + tsconfigRootDir: import.meta.dirname, + }, + }, + plugins: { + jest: jestPlugin, + }, + rules: { + 'no-console': 'warn', + 'prettier/prettier': 'error', + '@typescript-eslint/explicit-module-boundary-types': 'off', + '@typescript-eslint/no-explicit-any': 'off', + '@/quotes': [ + 'error', + 'single', + { avoidEscape: true, allowTemplateLiterals: true }, + ], + }, + }, + { + files: ['**/*.spec.ts', '**/*.spec.tsx', '**/*.test.ts', '**/*.test.tsx'], + languageOptions: { + globals: { + ...globals.jest, + }, + }, + plugins: { + jest: jestPlugin, + }, + }, +); diff --git a/packages/apps/fortune/recording-oracle/package.json b/packages/apps/fortune/recording-oracle/package.json index e001d734ce..ae59f2e576 100644 --- a/packages/apps/fortune/recording-oracle/package.json +++ b/packages/apps/fortune/recording-oracle/package.json @@ -28,7 +28,7 @@ "@nestjs/axios": "^3.1.2", "@nestjs/common": "^10.2.7", "@nestjs/config": "^3.1.1", - "@nestjs/core": "^10.3.10", + "@nestjs/core": "^11.1.9", "@nestjs/platform-express": "^10.3.10", "@nestjs/swagger": "^7.4.2", "axios": "^1.3.1", @@ -48,8 +48,10 @@ "@nestjs/testing": "^10.4.6", "@types/express": "^4.17.13", "@types/node": "^22.15.16", - "eslint": "^8.55.0", - "jest": "^29.7.0", + "eslint": "^9.39.1", + "eslint-plugin-jest": "^28.9.0", + "eslint-plugin-prettier": "^5.2.1", + "jest": "^30.2.0", "prettier": "^3.4.2", "ts-node": "^10.9.2", "typescript": "^5.8.3" diff --git a/packages/apps/fortune/recording-oracle/scripts/setup-kv-store.ts b/packages/apps/fortune/recording-oracle/scripts/setup-kv-store.ts index 870810aeeb..211d863379 100644 --- a/packages/apps/fortune/recording-oracle/scripts/setup-kv-store.ts +++ b/packages/apps/fortune/recording-oracle/scripts/setup-kv-store.ts @@ -29,7 +29,7 @@ async function setupCommonValues(kvStoreClient: KVStoreClient): Promise { const serverUrl = SERVER_URL || `http://${HOST}:${PORT}`; try { new URL(serverUrl); - } catch (_noop) { + } catch { throw new Error('Invalid SERVER_URL'); } let url = serverUrl.endsWith('/') ? serverUrl.slice(0, -1) : serverUrl; diff --git a/packages/apps/fortune/recording-oracle/src/common/decorators/enums.ts b/packages/apps/fortune/recording-oracle/src/common/decorators/enums.ts index e6d3bf29ad..c59ad95194 100644 --- a/packages/apps/fortune/recording-oracle/src/common/decorators/enums.ts +++ b/packages/apps/fortune/recording-oracle/src/common/decorators/enums.ts @@ -9,8 +9,7 @@ export function IsEnumCaseInsensitive( enumType: any, validationOptions?: ValidationOptions, ) { - // eslint-disable-next-line @typescript-eslint/ban-types - return function (object: Object, propertyName: string) { + return function (object: object, propertyName: string) { // Attach enum metadata to the property Reflect.defineMetadata('custom:enum', enumType, object, propertyName); diff --git a/packages/apps/fortune/recording-oracle/src/common/decorators/public.ts b/packages/apps/fortune/recording-oracle/src/common/decorators/public.ts index 6b47ae5d44..a12eaafa09 100644 --- a/packages/apps/fortune/recording-oracle/src/common/decorators/public.ts +++ b/packages/apps/fortune/recording-oracle/src/common/decorators/public.ts @@ -1,5 +1,4 @@ import { SetMetadata } from '@nestjs/common'; -// eslint-disable-next-line @typescript-eslint/no-explicit-any export const Public = (): ((target: any, key?: any, descriptor?: any) => any) => SetMetadata('isPublic', true); diff --git a/packages/apps/fortune/recording-oracle/src/common/interceptors/transform-enum.interceptor.spec.ts b/packages/apps/fortune/recording-oracle/src/common/interceptors/transform-enum.interceptor.spec.ts index 8e012a1f44..e0477fc7d4 100644 --- a/packages/apps/fortune/recording-oracle/src/common/interceptors/transform-enum.interceptor.spec.ts +++ b/packages/apps/fortune/recording-oracle/src/common/interceptors/transform-enum.interceptor.spec.ts @@ -87,7 +87,7 @@ describe('TransformEnumInterceptor', () => { expect(request.query).toEqual({ jobType: 'fortune', }); - expect(callHandler.handle).toBeCalled(); // Ensure the handler is called + expect(callHandler.handle).toHaveBeenCalled(); // Ensure the handler is called }); it('should throw an error if the query value is not a valid enum', async () => { @@ -125,7 +125,7 @@ describe('TransformEnumInterceptor', () => { amount: 5, address: '0xCf88b3f1992458C2f5a229573c768D0E9F70C44e', }); - expect(callHandler.handle).toBeCalled(); // Ensure the handler is called + expect(callHandler.handle).toHaveBeenCalled(); // Ensure the handler is called }); it('should throw an error if the value is not a valid enum', async () => { @@ -164,7 +164,7 @@ describe('TransformEnumInterceptor', () => { expect(request.body.address).toBe( '0xCf88b3f1992458C2f5a229573c768D0E9F70C44e', ); // Non-enum string should remain unchanged - expect(callHandler.handle).toBeCalled(); + expect(callHandler.handle).toHaveBeenCalled(); }); it('should handle nested objects with enums', async () => { diff --git a/packages/apps/fortune/recording-oracle/src/common/utils/signature.ts b/packages/apps/fortune/recording-oracle/src/common/utils/signature.ts index d5e78a413d..15cf64463f 100644 --- a/packages/apps/fortune/recording-oracle/src/common/utils/signature.ts +++ b/packages/apps/fortune/recording-oracle/src/common/utils/signature.ts @@ -41,7 +41,7 @@ export function recoverSigner( try { return ethers.verifyMessage(message, signature); - } catch (e) { + } catch { throw new ValidationError('Invalid signature'); } } diff --git a/packages/apps/fortune/recording-oracle/src/main.ts b/packages/apps/fortune/recording-oracle/src/main.ts index 35d44a2f4c..7cafd8c2ff 100644 --- a/packages/apps/fortune/recording-oracle/src/main.ts +++ b/packages/apps/fortune/recording-oracle/src/main.ts @@ -45,7 +45,6 @@ async function bootstrap() { app.use(helmet()); await app.listen(port, host, async () => { - // eslint-disable-next-line no-console logger.info(`API server is running on http://${host}:${port}`); }); } diff --git a/packages/apps/fortune/recording-oracle/src/modules/job/job.service.spec.ts b/packages/apps/fortune/recording-oracle/src/modules/job/job.service.spec.ts index 6f36cd7353..22455b4a07 100644 --- a/packages/apps/fortune/recording-oracle/src/modules/job/job.service.spec.ts +++ b/packages/apps/fortune/recording-oracle/src/modules/job/job.service.spec.ts @@ -158,9 +158,9 @@ describe('JobService', () => { eventData: { solutionsUrl: MOCK_FILE_URL }, }; - await expect( - jobService.processJobSolution(jobSolution), - ).rejects.toThrowError(ErrorJob.AddressMismatches); + await expect(jobService.processJobSolution(jobSolution)).rejects.toThrow( + ErrorJob.AddressMismatches, + ); }); it('should throw bad request exception when escrow status is not pending', async () => { @@ -177,9 +177,9 @@ describe('JobService', () => { eventData: { solutionsUrl: MOCK_FILE_URL }, }; - await expect( - jobService.processJobSolution(jobSolution), - ).rejects.toThrowError(ErrorJob.InvalidStatus); + await expect(jobService.processJobSolution(jobSolution)).rejects.toThrow( + ErrorJob.InvalidStatus, + ); }); it('should throw bad request exception when manifest is invalid', async () => { @@ -204,9 +204,9 @@ describe('JobService', () => { eventData: { solutionsUrl: MOCK_FILE_URL }, }; - await expect( - jobService.processJobSolution(jobSolution), - ).rejects.toThrowError(ErrorJob.InvalidManifest); + await expect(jobService.processJobSolution(jobSolution)).rejects.toThrow( + ErrorJob.InvalidManifest, + ); }); it('should throw bad request exception when manifest contains an invalid job type', async () => { @@ -233,9 +233,9 @@ describe('JobService', () => { eventData: { solutionsUrl: MOCK_FILE_URL }, }; - await expect( - jobService.processJobSolution(jobSolution), - ).rejects.toThrowError(ErrorJob.InvalidJobType); + await expect(jobService.processJobSolution(jobSolution)).rejects.toThrow( + ErrorJob.InvalidJobType, + ); }); it('should throw bad request exception when all solutions have already been sent', async () => { @@ -296,9 +296,9 @@ describe('JobService', () => { eventData: { solutionsUrl: MOCK_FILE_URL }, }; - await expect( - jobService.processJobSolution(newSolution), - ).rejects.toThrowError(ErrorJob.AllSolutionsHaveAlreadyBeenSent); + await expect(jobService.processJobSolution(newSolution)).rejects.toThrow( + ErrorJob.AllSolutionsHaveAlreadyBeenSent, + ); }); it('should throw bad request exception when webhook was not sent', async () => { diff --git a/packages/apps/fortune/recording-oracle/src/modules/job/job.service.ts b/packages/apps/fortune/recording-oracle/src/modules/job/job.service.ts index 830703c2c2..09210cec12 100644 --- a/packages/apps/fortune/recording-oracle/src/modules/job/job.service.ts +++ b/packages/apps/fortune/recording-oracle/src/modules/job/job.service.ts @@ -217,7 +217,7 @@ export class JobService { reputationOracleAddress, KVStoreKeys.webhookUrl, )) as string; - } catch (e) { + } catch { //Ignore the error } @@ -318,7 +318,7 @@ export class JobService { reputationOracleAddress, KVStoreKeys.webhookUrl, )) as string; - } catch (e) { + } catch { //Ignore the error } diff --git a/packages/apps/fortune/recording-oracle/src/modules/storage/storage.service.ts b/packages/apps/fortune/recording-oracle/src/modules/storage/storage.service.ts index 5afbcb5779..d2abeb58c8 100644 --- a/packages/apps/fortune/recording-oracle/src/modules/storage/storage.service.ts +++ b/packages/apps/fortune/recording-oracle/src/modules/storage/storage.service.ts @@ -49,9 +49,12 @@ export class StorageService { EncryptionUtils.isEncrypted(fileContent) ) { try { + const privateKey = this.pgpConfigService.privateKey; + if (!privateKey) { + throw new ServerError('Unable to decrypt manifest'); + } const encryption = await Encryption.build( - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - this.pgpConfigService.privateKey!, + privateKey, this.pgpConfigService.passphrase, ); @@ -112,7 +115,7 @@ export class StorageService { recordingOraclePublicKey, reputationOraclePublicKey, ]); - } catch (e) { + } catch { throw new ServerError('Encryption error'); } } @@ -130,7 +133,7 @@ export class StorageService { ); return { url: this.getJobUrl(hash), hash }; - } catch (e) { + } catch { throw new ServerError('File not uploaded'); } } diff --git a/packages/apps/fortune/recording-oracle/src/modules/webhook/webhook.service.ts b/packages/apps/fortune/recording-oracle/src/modules/webhook/webhook.service.ts index 488639a806..ee7380806f 100644 --- a/packages/apps/fortune/recording-oracle/src/modules/webhook/webhook.service.ts +++ b/packages/apps/fortune/recording-oracle/src/modules/webhook/webhook.service.ts @@ -1,4 +1,3 @@ -/* eslint-disable @typescript-eslint/no-non-null-assertion */ import { Injectable } from '@nestjs/common'; import { EventType } from '../../common/enums/webhook'; import { ValidationError } from '../../common/errors'; diff --git a/packages/apps/fortune/recording-oracle/tsconfig.json b/packages/apps/fortune/recording-oracle/tsconfig.json index a711fee265..8c03f46cd7 100644 --- a/packages/apps/fortune/recording-oracle/tsconfig.json +++ b/packages/apps/fortune/recording-oracle/tsconfig.json @@ -26,5 +26,5 @@ } }, "include": ["./src", "./scripts"], - "exclude": ["node_modules", "dist", "scripts", "test"] + "exclude": ["node_modules", "dist", "test"] } diff --git a/packages/apps/human-app/frontend/.env.example b/packages/apps/human-app/frontend/.env.example index 4c0b161ec5..620826e71d 100644 --- a/packages/apps/human-app/frontend/.env.example +++ b/packages/apps/human-app/frontend/.env.example @@ -10,8 +10,6 @@ VITE_DAPP_META_NAME=Human App Local VITE_DAPP_META_URL=http://localhost:3001 # hCapthca -VITE_H_CAPTCHA_EXCHANGE_URL=https://foundation-yellow-exchange.hmt.ai -VITE_H_CAPTCHA_LABELING_BASE_URL=https://foundation-yellow-accounts.hmt.ai VITE_H_CAPTCHA_SITE_KEY=10000000-ffff-ffff-ffff-000000000001 VITE_DAILY_SOLVED_CAPTCHA_LIMIT=0 VITE_HMT_DAILY_SPENT_LIMIT=0 diff --git a/packages/apps/human-app/frontend/.eslintrc.cjs b/packages/apps/human-app/frontend/.eslintrc.cjs deleted file mode 100644 index fcf2b386c2..0000000000 --- a/packages/apps/human-app/frontend/.eslintrc.cjs +++ /dev/null @@ -1,61 +0,0 @@ -const { resolve } = require('node:path'); - -const project = resolve(__dirname, 'tsconfig.json'); - -module.exports = { - root: true, - extends: [ - require.resolve('@vercel/style-guide/eslint/browser'), - require.resolve('@vercel/style-guide/eslint/typescript'), - require.resolve('@vercel/style-guide/eslint/react'), - 'plugin:prettier/recommended', - 'plugin:@tanstack/eslint-plugin-query/recommended', - ], - ignorePatterns: ['dist', '.eslintrc.cjs'], - parserOptions: { - ecmaVersion: 'latest', - sourceType: 'module', - project: ['./tsconfig.json', './tsconfig.node.json'], - tsconfigRootDir: __dirname, - }, - plugins: ['react-refresh'], - rules: { - 'react-refresh/only-export-components': 'off', - 'import/extensions': [ - 'error', - 'ignorePackages', - { - ts: 'never', - tsx: 'never', - }, - ], - 'eslint-comments/require-description': 'off', - '@typescript-eslint/explicit-function-return-type': 'off', - '@tanstack/query/exhaustive-deps': 'off', - // allow imports from material react table library - camelcase: ['error', { allow: ['MRT_'] }], - 'react/jsx-pascal-case': ['error', { ignore: ['MRT_'] }], - 'react/jsx-no-leaked-render': 'off', - '@typescript-eslint/restrict-template-expressions': [ - 'error', - { - allowNumber: true, - allowNullish: true, - }, - ], - '@typescript-eslint/naming-convention': [ - 'error', - { - selector: 'enumMember', - format: ['UPPER_CASE'], - }, - ], - }, - settings: { - 'import/resolver': { - typescript: { - project, - }, - }, - }, -}; diff --git a/packages/apps/human-app/frontend/eslint.config.mjs b/packages/apps/human-app/frontend/eslint.config.mjs new file mode 100644 index 0000000000..fb7986dd00 --- /dev/null +++ b/packages/apps/human-app/frontend/eslint.config.mjs @@ -0,0 +1,63 @@ +import eslint from '@eslint/js'; +import globals from 'globals'; +import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'; +import reactHooks from 'eslint-plugin-react-hooks'; +import jsxA11y from 'eslint-plugin-jsx-a11y'; +import eslintPluginImport from 'eslint-plugin-import'; +import tseslint from 'typescript-eslint'; + +export default tseslint.config( + { + ignores: ['dist', '.eslintrc.cjs', 'vite.config.mjs'], + }, + eslint.configs.recommended, + tseslint.configs.recommended, + eslintPluginPrettierRecommended, + { + files: ['**/*.{ts,tsx,js,jsx}'], + languageOptions: { + globals: { + ...globals.node, + ...globals.browser, + }, + ecmaVersion: 2022, + sourceType: 'module', + parserOptions: { + projectService: true, + tsconfigRootDir: import.meta.dirname, + }, + }, + plugins: { + '@typescript-eslint': tseslint.plugin, + 'react-hooks': reactHooks, + 'jsx-a11y': jsxA11y, + import: eslintPluginImport, + }, + rules: { + '@typescript-eslint/interface-name-prefix': 'off', + '@typescript-eslint/explicit-function-return-type': 'off', + '@typescript-eslint/explicit-module-boundary-types': 'off', + '@typescript-eslint/no-explicit-any': 'off', + 'linebreak-style': 0, + 'react-hooks/rules-of-hooks': 'error', + 'react-hooks/exhaustive-deps': 'warn', + '@typescript-eslint/no-unused-vars': [ + 'error', + { + args: 'all', + argsIgnorePattern: '^_', + caughtErrors: 'all', + caughtErrorsIgnorePattern: '^_', + destructuredArrayIgnorePattern: '^_', + varsIgnorePattern: '^_', + ignoreRestSiblings: true, + }, + ], + '@/quotes': [ + 'error', + 'single', + { avoidEscape: true, allowTemplateLiterals: true }, + ], + }, + } +); diff --git a/packages/apps/human-app/frontend/package.json b/packages/apps/human-app/frontend/package.json index 18ce4190a6..1894d6f579 100644 --- a/packages/apps/human-app/frontend/package.json +++ b/packages/apps/human-app/frontend/package.json @@ -21,7 +21,7 @@ "@faker-js/faker": "^9.7.0", "@fontsource/inter": "^5.0.17", "@fontsource/roboto": "^5.2.6", - "@hcaptcha/react-hcaptcha": "^0.3.6", + "@hcaptcha/react-hcaptcha": "^1.14.0", "@hookform/resolvers": "^5.1.0", "@human-protocol/sdk": "workspace:*", "@mui/icons-material": "^7.0.1", @@ -67,10 +67,10 @@ "@types/react": "^18.3.12", "@types/react-dom": "^18.3.1", "@typescript-eslint/eslint-plugin": "^6.20.0", - "@typescript-eslint/parser": "^6.20.0", + "@typescript-eslint/parser": "^8.46.3", "@vercel/style-guide": "^6.0.0", "@vitejs/plugin-react": "^4.2.1", - "eslint": "^8.55.0", + "eslint": "^9.39.1", "eslint-config-prettier": "^9.1.0", "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-react-refresh": "^0.4.11", diff --git a/packages/apps/human-app/frontend/src/api/auth-service.ts b/packages/apps/human-app/frontend/src/api/auth-service.ts index cbca5247f3..177a98c600 100644 --- a/packages/apps/human-app/frontend/src/api/auth-service.ts +++ b/packages/apps/human-app/frontend/src/api/auth-service.ts @@ -103,14 +103,13 @@ export class AuthService implements AuthProvider { commonApiPaths.auth.refresh.path, { body: { - // eslint-disable-next-line camelcase refresh_token: refreshToken, }, } ); return response; - } catch (error) { + } catch { return null; } } diff --git a/packages/apps/human-app/frontend/src/api/hooks/use-access-token-refresh.ts b/packages/apps/human-app/frontend/src/api/hooks/use-access-token-refresh.ts index 43fc67d936..2f74d18fd5 100644 --- a/packages/apps/human-app/frontend/src/api/hooks/use-access-token-refresh.ts +++ b/packages/apps/human-app/frontend/src/api/hooks/use-access-token-refresh.ts @@ -24,7 +24,6 @@ export function useAccessTokenRefresh() { try { await authService.refreshAccessToken(); } catch (error) { - // eslint-disable-next-line no-console console.error(error); if (authType === 'web2' && web2User) { web2SignOut({ throwExpirationModal: false }); diff --git a/packages/apps/human-app/frontend/src/api/http-api-client.ts b/packages/apps/human-app/frontend/src/api/http-api-client.ts index 24c78b7f12..9ac6db349e 100644 --- a/packages/apps/human-app/frontend/src/api/http-api-client.ts +++ b/packages/apps/human-app/frontend/src/api/http-api-client.ts @@ -97,12 +97,10 @@ export class HttpApiClient { return successSchema.parse(responseBody) as T; } catch (error) { if (error instanceof ZodError) { - // eslint-disable-next-line no-console console.error('Response parsing error: ', error.issues); throw new Error('Response schema validation error.'); } - // eslint-disable-next-line no-console console.error('Unexpected error while parsing response body: ', error); throw new Error(`Error parsing response body.`); } diff --git a/packages/apps/human-app/frontend/src/modules/auth-web3/context/web3-auth-context.tsx b/packages/apps/human-app/frontend/src/modules/auth-web3/context/web3-auth-context.tsx index 0a4392fa96..72d59963b9 100644 --- a/packages/apps/human-app/frontend/src/modules/auth-web3/context/web3-auth-context.tsx +++ b/packages/apps/human-app/frontend/src/modules/auth-web3/context/web3-auth-context.tsx @@ -1,4 +1,3 @@ -/* eslint-disable camelcase */ import { z } from 'zod'; import { createAuthProvider } from '@/shared/contexts/generic-auth-context'; diff --git a/packages/apps/human-app/frontend/src/modules/auth/context/auth-context.tsx b/packages/apps/human-app/frontend/src/modules/auth/context/auth-context.tsx index 96511134cf..2b2478b5f4 100644 --- a/packages/apps/human-app/frontend/src/modules/auth/context/auth-context.tsx +++ b/packages/apps/human-app/frontend/src/modules/auth/context/auth-context.tsx @@ -1,4 +1,3 @@ -/* eslint-disable camelcase */ import { z } from 'zod'; import { createAuthProvider } from '@/shared/contexts/generic-auth-context'; import { KycStatus } from '@/modules/worker/profile/types'; diff --git a/packages/apps/human-app/frontend/src/modules/homepage/hooks/use-web3-signin.ts b/packages/apps/human-app/frontend/src/modules/homepage/hooks/use-web3-signin.ts index 06bc28fa34..b5cfa38ab2 100644 --- a/packages/apps/human-app/frontend/src/modules/homepage/hooks/use-web3-signin.ts +++ b/packages/apps/human-app/frontend/src/modules/homepage/hooks/use-web3-signin.ts @@ -1,4 +1,3 @@ -/* eslint-disable camelcase -- ...*/ import { useMutation } from '@tanstack/react-query'; import { z } from 'zod'; import { useNavigate } from 'react-router-dom'; diff --git a/packages/apps/human-app/frontend/src/modules/operator/profile/hooks/use-disable-operator.ts b/packages/apps/human-app/frontend/src/modules/operator/profile/hooks/use-disable-operator.ts index ac378ec1d0..696d2321ac 100644 --- a/packages/apps/human-app/frontend/src/modules/operator/profile/hooks/use-disable-operator.ts +++ b/packages/apps/human-app/frontend/src/modules/operator/profile/hooks/use-disable-operator.ts @@ -14,7 +14,6 @@ export function useDisableWeb3Operator() { await authService.refreshAccessToken(); - // eslint-disable-next-line camelcase updateUserData({ operator_status: OperatorStatus.INACTIVE }); }, mutationKey: ['disableOperator', address, chainId], diff --git a/packages/apps/human-app/frontend/src/modules/operator/profile/hooks/use-enable-operator.ts b/packages/apps/human-app/frontend/src/modules/operator/profile/hooks/use-enable-operator.ts index f3a826d98c..3385616925 100644 --- a/packages/apps/human-app/frontend/src/modules/operator/profile/hooks/use-enable-operator.ts +++ b/packages/apps/human-app/frontend/src/modules/operator/profile/hooks/use-enable-operator.ts @@ -14,7 +14,6 @@ export function useEnableWeb3Operator() { await authService.refreshAccessToken(); - // eslint-disable-next-line camelcase updateUserData({ operator_status: OperatorStatus.ACTIVE }); }, mutationKey: ['enableOperator', address, chainId], diff --git a/packages/apps/human-app/frontend/src/modules/operator/profile/hooks/use-get-stats.ts b/packages/apps/human-app/frontend/src/modules/operator/profile/hooks/use-get-stats.ts index f6cc9448d0..e82b88630a 100644 --- a/packages/apps/human-app/frontend/src/modules/operator/profile/hooks/use-get-stats.ts +++ b/packages/apps/human-app/frontend/src/modules/operator/profile/hooks/use-get-stats.ts @@ -1,4 +1,3 @@ -/* eslint-disable camelcase -- ... */ import { useQuery } from '@tanstack/react-query'; import { useGetKeys } from '@/modules/operator/hooks/use-get-keys'; import * as operatorProfileService from '../services/profile.service'; diff --git a/packages/apps/human-app/frontend/src/modules/operator/profile/schemas.ts b/packages/apps/human-app/frontend/src/modules/operator/profile/schemas.ts index a51a770b0e..cfdd3dbb19 100644 --- a/packages/apps/human-app/frontend/src/modules/operator/profile/schemas.ts +++ b/packages/apps/human-app/frontend/src/modules/operator/profile/schemas.ts @@ -1,4 +1,3 @@ -/* eslint-disable camelcase */ import { z } from 'zod'; export const operatorStatsSuccessResponseSchema = z.object({ diff --git a/packages/apps/human-app/frontend/src/modules/operator/profile/services/profile.service.ts b/packages/apps/human-app/frontend/src/modules/operator/profile/services/profile.service.ts index 588a15a106..3292b71439 100644 --- a/packages/apps/human-app/frontend/src/modules/operator/profile/services/profile.service.ts +++ b/packages/apps/human-app/frontend/src/modules/operator/profile/services/profile.service.ts @@ -52,7 +52,7 @@ async function getStats(statsBaseUrl: string) { ); return result; - } catch (error) { + } catch { throw new Error('Failed to get stats'); } } diff --git a/packages/apps/human-app/frontend/src/modules/signin/worker/schemas.ts b/packages/apps/human-app/frontend/src/modules/signin/worker/schemas.ts index f04ceb913a..21cf5da8c6 100644 --- a/packages/apps/human-app/frontend/src/modules/signin/worker/schemas.ts +++ b/packages/apps/human-app/frontend/src/modules/signin/worker/schemas.ts @@ -7,7 +7,6 @@ export const signInDtoSchema = z.object({ .string() .min(1, t('validation.passwordMissing')) .max(50, t('validation.max', { count: 50 })), - // eslint-disable-next-line camelcase -- export vite config h_captcha_token: z.string().min(1, t('validation.captcha')).prefault('token'), }); 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 index cd2170544b..5aeca3562a 100644 --- 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 @@ -1,4 +1,3 @@ -/* eslint-disable camelcase -- ...*/ import { FormProvider, useForm } from 'react-hook-form'; import { Box, Grid, Typography } from '@mui/material'; import { zodResolver } from '@hookform/resolvers/zod'; diff --git a/packages/apps/human-app/frontend/src/modules/signup/operator/components/add-keys/add-keys-form.tsx b/packages/apps/human-app/frontend/src/modules/signup/operator/components/add-keys/add-keys-form.tsx index ac96f9ab04..84491fee32 100644 --- a/packages/apps/human-app/frontend/src/modules/signup/operator/components/add-keys/add-keys-form.tsx +++ b/packages/apps/human-app/frontend/src/modules/signup/operator/components/add-keys/add-keys-form.tsx @@ -18,7 +18,7 @@ export function AddKeysForm({ * This check is necessary because TS can't infer * "undefined" from optional object's property */ - // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition + if (value === undefined) { return false; } diff --git a/packages/apps/human-app/frontend/src/modules/signup/operator/components/add-keys/existing-keys.tsx b/packages/apps/human-app/frontend/src/modules/signup/operator/components/add-keys/existing-keys.tsx index f6113b1f7d..1eb854a9fc 100644 --- a/packages/apps/human-app/frontend/src/modules/signup/operator/components/add-keys/existing-keys.tsx +++ b/packages/apps/human-app/frontend/src/modules/signup/operator/components/add-keys/existing-keys.tsx @@ -1,4 +1,3 @@ -/* eslint-disable camelcase -- ....*/ import { Grid, Typography } from '@mui/material'; import { t } from 'i18next'; import ModeEditIcon from '@mui/icons-material/ModeEdit'; diff --git a/packages/apps/human-app/frontend/src/modules/signup/operator/schema/eth-kv-store-values-mutation-schema.ts b/packages/apps/human-app/frontend/src/modules/signup/operator/schema/eth-kv-store-values-mutation-schema.ts index 1a3d901243..68d88391c6 100644 --- a/packages/apps/human-app/frontend/src/modules/signup/operator/schema/eth-kv-store-values-mutation-schema.ts +++ b/packages/apps/human-app/frontend/src/modules/signup/operator/schema/eth-kv-store-values-mutation-schema.ts @@ -90,7 +90,6 @@ export const getEditEthKVStoreValuesMutationSchema = ( ) { hasFieldChanged = true; } else { - // eslint-disable-next-line eqeqeq -- expect to do conversion for this compare hasFieldChanged = newFiledData != initialFiledData; } diff --git a/packages/apps/human-app/frontend/src/modules/signup/services/signup.service.ts b/packages/apps/human-app/frontend/src/modules/signup/services/signup.service.ts index 8ee29402a7..7eb9628b22 100644 --- a/packages/apps/human-app/frontend/src/modules/signup/services/signup.service.ts +++ b/packages/apps/human-app/frontend/src/modules/signup/services/signup.service.ts @@ -1,4 +1,3 @@ -/* eslint-disable camelcase */ import { z } from 'zod'; import { ApiClientError, humanAppApiClient } from '@/api'; import { type SignUpDto } from '../worker/schema'; @@ -14,6 +13,7 @@ const apiPaths = { }, }; +// eslint-disable-next-line @typescript-eslint/no-unused-vars const web3SignInSuccessResponseSchema = z.object({ access_token: z.string(), refresh_token: z.string(), diff --git a/packages/apps/human-app/frontend/src/modules/smart-contracts/EthKVStore/eth-kv-store-set-bulk.ts b/packages/apps/human-app/frontend/src/modules/smart-contracts/EthKVStore/eth-kv-store-set-bulk.ts index fa66068de9..45c1227d35 100644 --- a/packages/apps/human-app/frontend/src/modules/smart-contracts/EthKVStore/eth-kv-store-set-bulk.ts +++ b/packages/apps/human-app/frontend/src/modules/smart-contracts/EthKVStore/eth-kv-store-set-bulk.ts @@ -20,9 +20,7 @@ export async function ethKvStoreSetBulk({ signer ); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- untyped ethers const tx = await ethKVStoreContract.setBulk(keys, values); - // eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access -- untyped ethers await tx.wait(); } catch (error) { throw new JsonRpcError(error); diff --git a/packages/apps/human-app/frontend/src/modules/smart-contracts/HMToken/hm-token-approve.ts b/packages/apps/human-app/frontend/src/modules/smart-contracts/HMToken/hm-token-approve.ts index e11c3bc746..b72302e4d1 100644 --- a/packages/apps/human-app/frontend/src/modules/smart-contracts/HMToken/hm-token-approve.ts +++ b/packages/apps/human-app/frontend/src/modules/smart-contracts/HMToken/hm-token-approve.ts @@ -14,9 +14,7 @@ export async function hmTokenApprove({ } & ContractCallArguments) { try { const hmTokenContract = new Contract(contractAddress, HMToken.abi, signer); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- untyped ethers const tx = await hmTokenContract.approve(spender, amount); - // eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access -- untyped ethers await tx.wait(); } catch (error) { throw new JsonRpcError(error); diff --git a/packages/apps/human-app/frontend/src/modules/smart-contracts/Staking/staking-stake.ts b/packages/apps/human-app/frontend/src/modules/smart-contracts/Staking/staking-stake.ts index 27272dd559..0756aa296c 100644 --- a/packages/apps/human-app/frontend/src/modules/smart-contracts/Staking/staking-stake.ts +++ b/packages/apps/human-app/frontend/src/modules/smart-contracts/Staking/staking-stake.ts @@ -13,9 +13,7 @@ export async function stakingStake({ } & ContractCallArguments) { try { const stakingContract = new Contract(contractAddress, Staking.abi, signer); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- untyped ethers const tx = await stakingContract.stake(amount); - // eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access -- untyped ethers await tx.wait(); } catch (error) { throw new JsonRpcError(error); diff --git a/packages/apps/human-app/frontend/src/modules/smart-contracts/json-rpc-error.ts b/packages/apps/human-app/frontend/src/modules/smart-contracts/json-rpc-error.ts index aa051b5d26..5cd4b71308 100644 --- a/packages/apps/human-app/frontend/src/modules/smart-contracts/json-rpc-error.ts +++ b/packages/apps/human-app/frontend/src/modules/smart-contracts/json-rpc-error.ts @@ -3,7 +3,6 @@ import { t } from 'i18next'; export class JsonRpcError extends Error { metadata: unknown; constructor(metadata: unknown) { - // eslint-disable-next-line no-console -- ... console.error(metadata); super(t('errors.jsonRpcError')); this.name = this.constructor.name; diff --git a/packages/apps/human-app/frontend/src/modules/worker/email-verification/hooks/use-resend-email.ts b/packages/apps/human-app/frontend/src/modules/worker/email-verification/hooks/use-resend-email.ts index b8d0648153..6970f4aea9 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/email-verification/hooks/use-resend-email.ts +++ b/packages/apps/human-app/frontend/src/modules/worker/email-verification/hooks/use-resend-email.ts @@ -1,4 +1,3 @@ -/* eslint-disable camelcase -- ...*/ import { useForm } from 'react-hook-form'; import { zodResolver } from '@hookform/resolvers/zod'; import { useResetMutationErrors } from '@/shared/hooks/use-reset-mutation-errors'; diff --git a/packages/apps/human-app/frontend/src/modules/worker/email-verification/schemas.ts b/packages/apps/human-app/frontend/src/modules/worker/email-verification/schemas.ts index 33b93e0f5b..29e4e62c65 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/email-verification/schemas.ts +++ b/packages/apps/human-app/frontend/src/modules/worker/email-verification/schemas.ts @@ -2,7 +2,6 @@ import { t } from 'i18next'; import { z } from 'zod'; export const resendEmailVerificationHcaptchaSchema = z.object({ - // eslint-disable-next-line camelcase h_captcha_token: z.string().min(1, t('validation.captcha')).prefault('token'), }); diff --git a/packages/apps/human-app/frontend/src/modules/worker/email-verification/services/email-verification.service.ts b/packages/apps/human-app/frontend/src/modules/worker/email-verification/services/email-verification.service.ts index 23e5fb9d5a..ea79e2f025 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/email-verification/services/email-verification.service.ts +++ b/packages/apps/human-app/frontend/src/modules/worker/email-verification/services/email-verification.service.ts @@ -24,7 +24,6 @@ async function resendEmailVerification(token: string) { try { await authorizedHumanAppApiClient.post(apiPaths.resendEmailVerification, { body: { - // eslint-disable-next-line camelcase h_captcha_token: token, }, }); diff --git a/packages/apps/human-app/frontend/src/modules/worker/hcaptcha-labeling/hcaptcha-labeling.page.tsx b/packages/apps/human-app/frontend/src/modules/worker/hcaptcha-labeling/hcaptcha-labeling.page.tsx index 2e27f715db..534121be7e 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/hcaptcha-labeling/hcaptcha-labeling.page.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/hcaptcha-labeling/hcaptcha-labeling.page.tsx @@ -144,14 +144,11 @@ export function HcaptchaLabelingPage() { {canSolveCaptcha ? ( ) : ( diff --git a/packages/apps/human-app/frontend/src/modules/worker/hcaptcha-labeling/schemas.ts b/packages/apps/human-app/frontend/src/modules/worker/hcaptcha-labeling/schemas.ts index 1a0df63925..41be085076 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/hcaptcha-labeling/schemas.ts +++ b/packages/apps/human-app/frontend/src/modules/worker/hcaptcha-labeling/schemas.ts @@ -1,4 +1,3 @@ -/* eslint-disable camelcase */ import { z } from 'zod'; export const enableHCaptchaLabelingResponseSchema = z.object({ diff --git a/packages/apps/human-app/frontend/src/modules/worker/hooks/use-location-state.tsx b/packages/apps/human-app/frontend/src/modules/worker/hooks/use-location-state.tsx index e480cf8254..c0d2bb69c5 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/hooks/use-location-state.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/hooks/use-location-state.tsx @@ -1,4 +1,3 @@ -/* eslint-disable @typescript-eslint/no-unsafe-member-access -- that's ok because we validate this members with zod */ import { useEffect, useState } from 'react'; import type { Location } from 'react-router-dom'; import { useLocation, useNavigate } from 'react-router-dom'; diff --git a/packages/apps/human-app/frontend/src/modules/worker/hooks/use-register-address.ts b/packages/apps/human-app/frontend/src/modules/worker/hooks/use-register-address.ts index ac857ceead..428b2d592e 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/hooks/use-register-address.ts +++ b/packages/apps/human-app/frontend/src/modules/worker/hooks/use-register-address.ts @@ -39,7 +39,6 @@ function useRegisterAddressMutation(callbacks: RegisterAddressCallbacks) { await profileService.registerAddress({ address, chainId, signature }); await refreshAccessTokenAsync({ authType: 'web2' }); updateUserData({ - // eslint-disable-next-line camelcase wallet_address: address, }); }; diff --git a/packages/apps/human-app/frontend/src/modules/worker/jobs-discovery/helpers/should-navigate-to-registration.spec.ts b/packages/apps/human-app/frontend/src/modules/worker/jobs-discovery/helpers/should-navigate-to-registration.spec.ts index 7183909993..133385f694 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/jobs-discovery/helpers/should-navigate-to-registration.spec.ts +++ b/packages/apps/human-app/frontend/src/modules/worker/jobs-discovery/helpers/should-navigate-to-registration.spec.ts @@ -21,7 +21,6 @@ describe('shouldNavigateToRegistration Helper', () => { it('should return true when registration is needed and oracle address is not in the array', () => { const registrationData = { - // eslint-disable-next-line camelcase oracle_addresses: [faker.finance.ethereumAddress()], }; @@ -31,7 +30,6 @@ describe('shouldNavigateToRegistration Helper', () => { it('should return false when registration is needed but oracle address is in the array', () => { const registrationData = { - // eslint-disable-next-line camelcase oracle_addresses: [oracle.address], }; @@ -41,7 +39,6 @@ describe('shouldNavigateToRegistration Helper', () => { it('should return false when registration is not needed, regardless of address', () => { const registrationData = { - // eslint-disable-next-line camelcase oracle_addresses: [], }; diff --git a/packages/apps/human-app/frontend/src/modules/worker/jobs-discovery/services/jobs-discovery.service.ts b/packages/apps/human-app/frontend/src/modules/worker/jobs-discovery/services/jobs-discovery.service.ts index 119c0cf689..ab38be3ba9 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/jobs-discovery/services/jobs-discovery.service.ts +++ b/packages/apps/human-app/frontend/src/modules/worker/jobs-discovery/services/jobs-discovery.service.ts @@ -6,7 +6,6 @@ const apiPaths = { }; const registeredOraclesSuccessResponseSchema = z.object({ - // eslint-disable-next-line camelcase oracle_addresses: z.array(z.string()), }); diff --git a/packages/apps/human-app/frontend/src/modules/worker/jobs/available-jobs/components/available-jobs-job-type-filter.tsx b/packages/apps/human-app/frontend/src/modules/worker/jobs/available-jobs/components/available-jobs-job-type-filter.tsx index 2974a58fe4..893ed6a4a4 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/jobs/available-jobs/components/available-jobs-job-type-filter.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/jobs/available-jobs/components/available-jobs-job-type-filter.tsx @@ -1,4 +1,3 @@ -/* eslint-disable camelcase --- ... */ import { useTranslation } from 'react-i18next'; import { useMemo } from 'react'; import { Filtering } from '@/shared/components/ui/table/table-header-menu/filtering'; diff --git a/packages/apps/human-app/frontend/src/modules/worker/jobs/available-jobs/components/available-jobs-network-filter.tsx b/packages/apps/human-app/frontend/src/modules/worker/jobs/available-jobs/components/available-jobs-network-filter.tsx index 18d6e250b7..79399bceac 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/jobs/available-jobs/components/available-jobs-network-filter.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/jobs/available-jobs/components/available-jobs-network-filter.tsx @@ -1,4 +1,3 @@ -/* eslint-disable camelcase --- ... */ import { Filtering } from '@/shared/components/ui/table/table-header-menu/filtering'; import { useGetAllNetworks, useJobsFilterStore } from '../../hooks'; diff --git a/packages/apps/human-app/frontend/src/modules/worker/jobs/available-jobs/components/available-jobs-reward-amount-sort.tsx b/packages/apps/human-app/frontend/src/modules/worker/jobs/available-jobs/components/available-jobs-reward-amount-sort.tsx index 69cf8417bd..b2825107b6 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/jobs/available-jobs/components/available-jobs-reward-amount-sort.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/jobs/available-jobs/components/available-jobs-reward-amount-sort.tsx @@ -1,4 +1,3 @@ -/* eslint-disable camelcase --- ... */ import { t } from 'i18next'; import { Sorting } from '@/shared/components/ui/table/table-header-menu/sorting'; import { useJobsFilterStore } from '../../hooks'; diff --git a/packages/apps/human-app/frontend/src/modules/worker/jobs/available-jobs/components/mobile/available-jobs-assign-job-button-mobile.tsx b/packages/apps/human-app/frontend/src/modules/worker/jobs/available-jobs/components/mobile/available-jobs-assign-job-button-mobile.tsx index f6bd81747f..ea5216a575 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/jobs/available-jobs/components/mobile/available-jobs-assign-job-button-mobile.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/jobs/available-jobs/components/mobile/available-jobs-assign-job-button-mobile.tsx @@ -34,9 +34,11 @@ export function AvailableJobsAssignJobButtonMobile({ fullWidth loading={isPending} onClick={() => { - isThirstyfi - ? openModal({ ...assignJobPayload }) - : assignJobMutation(assignJobPayload); + if (isThirstyfi) { + openModal({ ...assignJobPayload }); + } else { + assignJobMutation(assignJobPayload); + } }} size="small" sx={{ diff --git a/packages/apps/human-app/frontend/src/modules/worker/jobs/available-jobs/components/mobile/available-jobs-list-mobile.tsx b/packages/apps/human-app/frontend/src/modules/worker/jobs/available-jobs/components/mobile/available-jobs-list-mobile.tsx index f8e9dfa819..0ece918fc8 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/jobs/available-jobs/components/mobile/available-jobs-list-mobile.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/jobs/available-jobs/components/mobile/available-jobs-list-mobile.tsx @@ -1,4 +1,3 @@ -/* eslint-disable camelcase -- ... */ import { Grid, List, Paper, Stack, Typography } from '@mui/material'; import { useTranslation } from 'react-i18next'; import { useEffect } from 'react'; diff --git a/packages/apps/human-app/frontend/src/modules/worker/jobs/available-jobs/components/mobile/available-jobs-reward-amount-sort-mobile.tsx b/packages/apps/human-app/frontend/src/modules/worker/jobs/available-jobs/components/mobile/available-jobs-reward-amount-sort-mobile.tsx index bd16dee084..5aa9807f7f 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/jobs/available-jobs/components/mobile/available-jobs-reward-amount-sort-mobile.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/jobs/available-jobs/components/mobile/available-jobs-reward-amount-sort-mobile.tsx @@ -1,4 +1,3 @@ -/* eslint-disable camelcase */ import { t } from 'i18next'; import Typography from '@mui/material/Typography'; import { useColorMode } from '@/shared/contexts/color-mode'; diff --git a/packages/apps/human-app/frontend/src/modules/worker/jobs/available-jobs/hooks/use-add-thirstyfi-info-modal.tsx b/packages/apps/human-app/frontend/src/modules/worker/jobs/available-jobs/hooks/use-add-thirstyfi-info-modal.tsx index df90d0d8f5..49be0eaf6f 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/jobs/available-jobs/hooks/use-add-thirstyfi-info-modal.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/jobs/available-jobs/hooks/use-add-thirstyfi-info-modal.tsx @@ -1,4 +1,3 @@ -/* eslint-disable camelcase -- ...*/ import { useModal } from '@/shared/contexts/modal-context'; import { ThirstyfiInfoModal } from '../thirstyfi-info-modal'; diff --git a/packages/apps/human-app/frontend/src/modules/worker/jobs/available-jobs/hooks/use-get-available-jobs-columns.tsx b/packages/apps/human-app/frontend/src/modules/worker/jobs/available-jobs/hooks/use-get-available-jobs-columns.tsx index 7e3c84d13d..41226f9e8f 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/jobs/available-jobs/hooks/use-get-available-jobs-columns.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/jobs/available-jobs/hooks/use-get-available-jobs-columns.tsx @@ -1,4 +1,3 @@ -/* eslint-disable camelcase -- ... */ import type { MRT_ColumnDef } from 'material-react-table'; import { t } from 'i18next'; import { Grid } from '@mui/material'; @@ -136,9 +135,11 @@ export const useGetAvailableJobsColumns = ( sx={{ width: '94px' }} loading={isPending} onClick={() => { - isThirstyfi - ? openModal({ escrow_address, chain_id }) - : assignJobMutation({ escrow_address, chain_id }); + if (isThirstyfi) { + openModal({ escrow_address, chain_id }); + } else { + assignJobMutation({ escrow_address, chain_id }); + } }} > {t('worker.jobs.selectJob')} diff --git a/packages/apps/human-app/frontend/src/modules/worker/jobs/available-jobs/hooks/use-get-available-jobs-data.ts b/packages/apps/human-app/frontend/src/modules/worker/jobs/available-jobs/hooks/use-get-available-jobs-data.ts index c6fec588e5..077ffc0408 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/jobs/available-jobs/hooks/use-get-available-jobs-data.ts +++ b/packages/apps/human-app/frontend/src/modules/worker/jobs/available-jobs/hooks/use-get-available-jobs-data.ts @@ -1,4 +1,3 @@ -/* eslint-disable camelcase */ import { useInfiniteQuery, useQuery } from '@tanstack/react-query'; import { useParams } from 'react-router-dom'; import { useJobsFilterStore } from '../../hooks'; diff --git a/packages/apps/human-app/frontend/src/modules/worker/jobs/available-jobs/thirstyfi-info-modal.tsx b/packages/apps/human-app/frontend/src/modules/worker/jobs/available-jobs/thirstyfi-info-modal.tsx index 42da0bceee..c8faa3bd4b 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/jobs/available-jobs/thirstyfi-info-modal.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/jobs/available-jobs/thirstyfi-info-modal.tsx @@ -1,4 +1,3 @@ -/* eslint-disable camelcase -- ...*/ import { z } from 'zod'; import { FormProvider, useForm } from 'react-hook-form'; import Stack from '@mui/material/Stack'; diff --git a/packages/apps/human-app/frontend/src/modules/worker/jobs/components/more-button.tsx b/packages/apps/human-app/frontend/src/modules/worker/jobs/components/more-button.tsx index 39dc5f758e..a79920ed10 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/jobs/components/more-button.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/jobs/components/more-button.tsx @@ -1,4 +1,3 @@ -/* eslint-disable camelcase -- ...*/ import { useState } from 'react'; import MoreHorizIcon from '@mui/icons-material/MoreHoriz'; import { Button, MenuList, ListItemButton, Popover } from '@mui/material'; @@ -34,7 +33,7 @@ export function MoreButton({ job, isDisabled }: MoreButtonProps) { oracle_address: oracleAddress ?? '', assignment_id: job.assignment_id, }); - } catch (error) { + } catch { showNotification({ message: 'Something went wrong', type: TopNotificationType.WARNING, @@ -71,7 +70,9 @@ export function MoreButton({ job, isDisabled }: MoreButtonProps) { color: '#858ec6', }} onClick={(e) => { - !isDisabled && setAnchorEl(e.currentTarget); + if (!isDisabled) { + setAnchorEl(e.currentTarget); + } }} > diff --git a/packages/apps/human-app/frontend/src/modules/worker/jobs/components/report-abuse-modal.tsx b/packages/apps/human-app/frontend/src/modules/worker/jobs/components/report-abuse-modal.tsx index 117ffd9ec4..7db3ca047b 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/jobs/components/report-abuse-modal.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/jobs/components/report-abuse-modal.tsx @@ -1,4 +1,3 @@ -/* eslint-disable camelcase */ import { useState } from 'react'; import { Box, @@ -117,12 +116,15 @@ export function ReportAbuseModal({ const isIdleOrLoading = isIdle || isPending; const handleReportAbuse = () => { - reason.length > 0 && - reportAbuseMutation({ - escrow_address: escrowAddress, - chain_id: chainId, - reason, - }); + if (!reason.length) { + return; + } + + reportAbuseMutation({ + escrow_address: escrowAddress, + chain_id: chainId, + reason, + }); }; return ( diff --git a/packages/apps/human-app/frontend/src/modules/worker/jobs/components/reward-amount.tsx b/packages/apps/human-app/frontend/src/modules/worker/jobs/components/reward-amount.tsx index 09fe035f4a..bf1861dc0c 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/jobs/components/reward-amount.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/jobs/components/reward-amount.tsx @@ -1,4 +1,3 @@ -/* eslint-disable camelcase -- ...*/ import Tooltip from '@mui/material/Tooltip'; import Typography from '@mui/material/Typography'; diff --git a/packages/apps/human-app/frontend/src/modules/worker/jobs/hooks/use-get-my-jobs-data.ts b/packages/apps/human-app/frontend/src/modules/worker/jobs/hooks/use-get-my-jobs-data.ts index e6945bbbfa..2576e22e10 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/jobs/hooks/use-get-my-jobs-data.ts +++ b/packages/apps/human-app/frontend/src/modules/worker/jobs/hooks/use-get-my-jobs-data.ts @@ -1,4 +1,3 @@ -/* eslint-disable camelcase */ import { useInfiniteQuery, useQuery } from '@tanstack/react-query'; import { useParams } from 'react-router-dom'; import * as jobsService from '../services/jobs.service'; diff --git a/packages/apps/human-app/frontend/src/modules/worker/jobs/hooks/use-jobs-filter-store.tsx b/packages/apps/human-app/frontend/src/modules/worker/jobs/hooks/use-jobs-filter-store.tsx index fa739bd147..395376680a 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/jobs/hooks/use-jobs-filter-store.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/jobs/hooks/use-jobs-filter-store.tsx @@ -1,4 +1,3 @@ -/* eslint-disable camelcase -- api params*/ import { create } from 'zustand'; import type { PageSize } from '@/shared/types/entity.type'; import { MyJobStatus, type SortDirection, type SortField } from '../types'; diff --git a/packages/apps/human-app/frontend/src/modules/worker/jobs/hooks/use-my-jobs-filter-store.tsx b/packages/apps/human-app/frontend/src/modules/worker/jobs/hooks/use-my-jobs-filter-store.tsx index 4e2063ded5..8138fd4027 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/jobs/hooks/use-my-jobs-filter-store.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/jobs/hooks/use-my-jobs-filter-store.tsx @@ -1,4 +1,3 @@ -/* eslint-disable camelcase -- api params*/ import { create } from 'zustand'; import type { PageSize } from '@/shared/types/entity.type'; import { SortDirection, SortField, type MyJobStatus } from '../types'; diff --git a/packages/apps/human-app/frontend/src/modules/worker/jobs/jobs.page.tsx b/packages/apps/human-app/frontend/src/modules/worker/jobs/jobs.page.tsx index d0c8f3cfa4..5e65b627ae 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/jobs/jobs.page.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/jobs/jobs.page.tsx @@ -1,4 +1,3 @@ -/* eslint-disable camelcase */ import React, { useEffect, useState } from 'react'; import { Box, Grid, Paper, Stack, Tab, Tabs, Typography } from '@mui/material'; import { useTranslation } from 'react-i18next'; diff --git a/packages/apps/human-app/frontend/src/modules/worker/jobs/my-jobs/components/desktop/columns.tsx b/packages/apps/human-app/frontend/src/modules/worker/jobs/my-jobs/components/desktop/columns.tsx index 2f6767d2f6..5e4594d32d 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/jobs/my-jobs/components/desktop/columns.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/jobs/my-jobs/components/desktop/columns.tsx @@ -1,4 +1,3 @@ -/* eslint-disable camelcase -- ...*/ import { t } from 'i18next'; import Grid from '@mui/material/Grid'; import { type MRT_ColumnDef } from 'material-react-table'; diff --git a/packages/apps/human-app/frontend/src/modules/worker/jobs/my-jobs/components/desktop/my-jobs-expires-at-sort.tsx b/packages/apps/human-app/frontend/src/modules/worker/jobs/my-jobs/components/desktop/my-jobs-expires-at-sort.tsx index bfcce08fd6..608edc3452 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/jobs/my-jobs/components/desktop/my-jobs-expires-at-sort.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/jobs/my-jobs/components/desktop/my-jobs-expires-at-sort.tsx @@ -1,4 +1,3 @@ -/* eslint-disable camelcase --- ... */ import { t } from 'i18next'; import { Sorting } from '@/shared/components/ui/table/table-header-menu/sorting'; import { useMyJobsFilterStore } from '../../../hooks'; diff --git a/packages/apps/human-app/frontend/src/modules/worker/jobs/my-jobs/components/desktop/my-jobs-job-type-filter.tsx b/packages/apps/human-app/frontend/src/modules/worker/jobs/my-jobs/components/desktop/my-jobs-job-type-filter.tsx index b04e690def..7b9fd2e428 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/jobs/my-jobs/components/desktop/my-jobs-job-type-filter.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/jobs/my-jobs/components/desktop/my-jobs-job-type-filter.tsx @@ -1,4 +1,3 @@ -/* eslint-disable camelcase --- ... */ import { useTranslation } from 'react-i18next'; import { useMemo } from 'react'; import { Filtering } from '@/shared/components/ui/table/table-header-menu/filtering'; diff --git a/packages/apps/human-app/frontend/src/modules/worker/jobs/my-jobs/components/desktop/my-jobs-network-filter.tsx b/packages/apps/human-app/frontend/src/modules/worker/jobs/my-jobs/components/desktop/my-jobs-network-filter.tsx index cee99313dd..b404ffada7 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/jobs/my-jobs/components/desktop/my-jobs-network-filter.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/jobs/my-jobs/components/desktop/my-jobs-network-filter.tsx @@ -1,4 +1,3 @@ -/* eslint-disable camelcase --- ... */ import { Filtering } from '@/shared/components/ui/table/table-header-menu/filtering'; import { useMyJobsFilterStore, useGetAllNetworks } from '../../../hooks'; diff --git a/packages/apps/human-app/frontend/src/modules/worker/jobs/my-jobs/components/desktop/my-jobs-reward-amount-sort.tsx b/packages/apps/human-app/frontend/src/modules/worker/jobs/my-jobs/components/desktop/my-jobs-reward-amount-sort.tsx index b623b2eb70..2e1a335540 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/jobs/my-jobs/components/desktop/my-jobs-reward-amount-sort.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/jobs/my-jobs/components/desktop/my-jobs-reward-amount-sort.tsx @@ -1,4 +1,3 @@ -/* eslint-disable camelcase --- ... */ import { t } from 'i18next'; import { Sorting } from '@/shared/components/ui/table/table-header-menu/sorting'; import { useMyJobsFilterStore } from '../../../hooks'; diff --git a/packages/apps/human-app/frontend/src/modules/worker/jobs/my-jobs/components/desktop/my-jobs-table.tsx b/packages/apps/human-app/frontend/src/modules/worker/jobs/my-jobs/components/desktop/my-jobs-table.tsx index eaff8fbd3c..0fd5c61c70 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/jobs/my-jobs/components/desktop/my-jobs-table.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/jobs/my-jobs/components/desktop/my-jobs-table.tsx @@ -1,4 +1,3 @@ -/* eslint-disable camelcase -- ...*/ import { t } from 'i18next'; import { useCallback, useEffect, useMemo, useState } from 'react'; import { useParams } from 'react-router-dom'; diff --git a/packages/apps/human-app/frontend/src/modules/worker/jobs/my-jobs/components/mobile/my-jobs-expires-at-sort-mobile.tsx b/packages/apps/human-app/frontend/src/modules/worker/jobs/my-jobs/components/mobile/my-jobs-expires-at-sort-mobile.tsx index fd4ddfb1ca..9b186669f9 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/jobs/my-jobs/components/mobile/my-jobs-expires-at-sort-mobile.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/jobs/my-jobs/components/mobile/my-jobs-expires-at-sort-mobile.tsx @@ -1,4 +1,3 @@ -/* eslint-disable camelcase */ import Typography from '@mui/material/Typography'; import { t } from 'i18next'; import { useColorMode } from '@/shared/contexts/color-mode'; diff --git a/packages/apps/human-app/frontend/src/modules/worker/jobs/my-jobs/components/mobile/my-jobs-job-type-filter-mobile.tsx b/packages/apps/human-app/frontend/src/modules/worker/jobs/my-jobs/components/mobile/my-jobs-job-type-filter-mobile.tsx index 694eda5feb..7e9ba0eb96 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/jobs/my-jobs/components/mobile/my-jobs-job-type-filter-mobile.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/jobs/my-jobs/components/mobile/my-jobs-job-type-filter-mobile.tsx @@ -1,4 +1,3 @@ -/* eslint-disable camelcase --- ... */ import { useTranslation } from 'react-i18next'; import { Filtering } from '@/shared/components/ui/table/table-header-menu/filtering'; import { JOB_TYPES } from '@/shared/consts'; diff --git a/packages/apps/human-app/frontend/src/modules/worker/jobs/my-jobs/components/mobile/my-jobs-list-mobile.tsx b/packages/apps/human-app/frontend/src/modules/worker/jobs/my-jobs/components/mobile/my-jobs-list-mobile.tsx index 02df479459..bc03195ef0 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/jobs/my-jobs/components/mobile/my-jobs-list-mobile.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/jobs/my-jobs/components/mobile/my-jobs-list-mobile.tsx @@ -1,4 +1,3 @@ -/* eslint-disable camelcase -- ... */ import { Grid, List, Paper, Stack, Typography } from '@mui/material'; import { useTranslation } from 'react-i18next'; import { useEffect } from 'react'; diff --git a/packages/apps/human-app/frontend/src/modules/worker/jobs/my-jobs/components/mobile/my-jobs-network-filter-mobile.tsx b/packages/apps/human-app/frontend/src/modules/worker/jobs/my-jobs/components/mobile/my-jobs-network-filter-mobile.tsx index 18818190f8..550df051f4 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/jobs/my-jobs/components/mobile/my-jobs-network-filter-mobile.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/jobs/my-jobs/components/mobile/my-jobs-network-filter-mobile.tsx @@ -1,4 +1,3 @@ -/* eslint-disable camelcase --- ... */ import { Filtering } from '@/shared/components/ui/table/table-header-menu/filtering'; import { useMyJobsFilterStore, useGetAllNetworks } from '../../../hooks'; diff --git a/packages/apps/human-app/frontend/src/modules/worker/jobs/my-jobs/components/mobile/my-jobs-reward-amount-sort-mobile.tsx b/packages/apps/human-app/frontend/src/modules/worker/jobs/my-jobs/components/mobile/my-jobs-reward-amount-sort-mobile.tsx index b40381ae3c..f517d1940f 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/jobs/my-jobs/components/mobile/my-jobs-reward-amount-sort-mobile.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/jobs/my-jobs/components/mobile/my-jobs-reward-amount-sort-mobile.tsx @@ -1,4 +1,3 @@ -/* eslint-disable camelcase */ import Typography from '@mui/material/Typography'; import { t } from 'i18next'; import { useColorMode } from '@/shared/contexts/color-mode'; diff --git a/packages/apps/human-app/frontend/src/modules/worker/jobs/schemas.ts b/packages/apps/human-app/frontend/src/modules/worker/jobs/schemas.ts index d6a74450ff..077adc22af 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/jobs/schemas.ts +++ b/packages/apps/human-app/frontend/src/modules/worker/jobs/schemas.ts @@ -1,4 +1,3 @@ -/* eslint-disable camelcase */ import { z } from 'zod'; import { createPaginationSchema } from '@/shared/helpers/pagination'; import { MyJobStatus, UNKNOWN_JOB_STATUS } from './types'; @@ -11,7 +10,7 @@ const myJobSchema = z.object({ status: z.string().transform((value) => { try { return z.enum(MyJobStatus).parse(value.toUpperCase()); - } catch (error) { + } catch { return UNKNOWN_JOB_STATUS; } }), diff --git a/packages/apps/human-app/frontend/src/modules/worker/oracle-registration/registration-form.tsx b/packages/apps/human-app/frontend/src/modules/worker/oracle-registration/registration-form.tsx index 43715d9d94..d1e926da11 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/oracle-registration/registration-form.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/oracle-registration/registration-form.tsx @@ -1,4 +1,3 @@ -/* eslint-disable camelcase */ import { Box, Stack } from '@mui/material'; import { FormProvider, useForm } from 'react-hook-form'; import { useTranslation } from 'react-i18next'; diff --git a/packages/apps/human-app/frontend/src/modules/worker/oracle-registration/schema.ts b/packages/apps/human-app/frontend/src/modules/worker/oracle-registration/schema.ts index 31e101f710..b96b7e9017 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/oracle-registration/schema.ts +++ b/packages/apps/human-app/frontend/src/modules/worker/oracle-registration/schema.ts @@ -1,8 +1,8 @@ -/* eslint-disable camelcase */ import { ethers } from 'ethers'; import { t } from 'i18next'; import { z } from 'zod'; +// eslint-disable-next-line @typescript-eslint/no-unused-vars const registrationInExchangeOracleDtoSchema = z.object({ oracle_address: z .string() diff --git a/packages/apps/human-app/frontend/src/modules/worker/reset-password/reset-password.page.tsx b/packages/apps/human-app/frontend/src/modules/worker/reset-password/reset-password.page.tsx index 48549fe605..afab645953 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/reset-password/reset-password.page.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/reset-password/reset-password.page.tsx @@ -1,4 +1,3 @@ -/* eslint-disable camelcase -- ... */ import { FormProvider, useForm } from 'react-hook-form'; import { zodResolver } from '@hookform/resolvers/zod'; import Grid from '@mui/material/Grid'; diff --git a/packages/apps/human-app/frontend/src/modules/worker/reset-password/schemas.ts b/packages/apps/human-app/frontend/src/modules/worker/reset-password/schemas.ts index df96707212..cc0ef74d9d 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/reset-password/schemas.ts +++ b/packages/apps/human-app/frontend/src/modules/worker/reset-password/schemas.ts @@ -11,7 +11,7 @@ export const resetPasswordDtoSchema = z .string() .min(1, t('validation.required')) .max(50, t('validation.max', { count: 50 })), - // eslint-disable-next-line camelcase + h_captcha_token: z .string() .min(1, t('validation.captcha')) diff --git a/packages/apps/human-app/frontend/src/modules/worker/send-reset-link/schemas.ts b/packages/apps/human-app/frontend/src/modules/worker/send-reset-link/schemas.ts index 33493b477f..b1ab08b761 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/send-reset-link/schemas.ts +++ b/packages/apps/human-app/frontend/src/modules/worker/send-reset-link/schemas.ts @@ -10,7 +10,6 @@ const sendResetLinkEmailDtoSchema = z.object({ type SendResetLinkEmail = z.infer; export const sendResetLinkHcaptchaDtoSchema = z.object({ - // eslint-disable-next-line camelcase h_captcha_token: z.string().min(1, t('validation.captcha')).prefault('token'), }); diff --git a/packages/apps/human-app/frontend/src/modules/worker/send-reset-link/send-reset-link-success.page.tsx b/packages/apps/human-app/frontend/src/modules/worker/send-reset-link/send-reset-link-success.page.tsx index 23125f5d44..d379198a55 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/send-reset-link/send-reset-link-success.page.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/send-reset-link/send-reset-link-success.page.tsx @@ -1,4 +1,3 @@ -/* eslint-disable camelcase -- ... */ import { Grid, Typography } from '@mui/material'; import { Trans, useTranslation } from 'react-i18next'; import { z } from 'zod'; diff --git a/packages/apps/human-app/frontend/src/modules/worker/send-reset-link/send-reset-link.page.tsx b/packages/apps/human-app/frontend/src/modules/worker/send-reset-link/send-reset-link.page.tsx index 2ad53e0729..912399b95d 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/send-reset-link/send-reset-link.page.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/send-reset-link/send-reset-link.page.tsx @@ -1,4 +1,3 @@ -/* eslint-disable camelcase -- ...*/ import { FormProvider, useForm } from 'react-hook-form'; import { Grid, Typography } from '@mui/material'; import { zodResolver } from '@hookform/resolvers/zod'; diff --git a/packages/apps/human-app/frontend/src/modules/worker/services/oracles.service.ts b/packages/apps/human-app/frontend/src/modules/worker/services/oracles.service.ts index b77dec9263..518006885e 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/services/oracles.service.ts +++ b/packages/apps/human-app/frontend/src/modules/worker/services/oracles.service.ts @@ -18,6 +18,8 @@ const OracleSchema = z.object({ registrationInstructions: z.string().optional().nullable(), }); +const OracleListSchema = z.array(OracleSchema); + type OracleBase = z.infer; export type Oracle = OracleBase & { @@ -39,8 +41,7 @@ const H_CAPTCHA_ORACLE: Oracle = { async function getOracles(selectedJobTypes: string[]) { try { const params = selectedJobTypes.length - ? // eslint-disable-next-line camelcase - { selected_job_types: selectedJobTypes } + ? { selected_job_types: selectedJobTypes } : undefined; const queryParams = params ?? {}; @@ -63,8 +64,9 @@ async function getOracles(selectedJobTypes: string[]) { ); if (Array.isArray(results)) { + const parsedResults = OracleListSchema.parse(results); oracles = oracles.concat( - results.map((oracle: OracleBase) => ({ + parsedResults.map((oracle: OracleBase) => ({ ...oracle, name: oracle.name ? oracle.name.split(' ')[0] : '', })) diff --git a/packages/apps/human-app/frontend/src/router/components/drawer-menu-items/drawer-menu-items-operator.tsx b/packages/apps/human-app/frontend/src/router/components/drawer-menu-items/drawer-menu-items-operator.tsx index 2120d85fd5..0b12d28763 100644 --- a/packages/apps/human-app/frontend/src/router/components/drawer-menu-items/drawer-menu-items-operator.tsx +++ b/packages/apps/human-app/frontend/src/router/components/drawer-menu-items/drawer-menu-items-operator.tsx @@ -14,13 +14,9 @@ export const operatorDrawerBottomMenuItems: MenuItem[] = [ label: t('components.DrawerNavigation.help'), icon: , onClick: () => { - // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-expect-error -- ... - // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access if ($zoho?.salesiq?.chat?.start) { - // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-expect-error -- ... - // eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access $zoho.salesiq.chat.start(); } }, diff --git a/packages/apps/human-app/frontend/src/router/components/drawer-menu-items/drawer-menu-items-worker.tsx b/packages/apps/human-app/frontend/src/router/components/drawer-menu-items/drawer-menu-items-worker.tsx index de74d3fe23..427bba124b 100644 --- a/packages/apps/human-app/frontend/src/router/components/drawer-menu-items/drawer-menu-items-worker.tsx +++ b/packages/apps/human-app/frontend/src/router/components/drawer-menu-items/drawer-menu-items-worker.tsx @@ -31,13 +31,9 @@ export const workerDrawerBottomMenuItems: MenuItem[] = [ label: t('components.DrawerNavigation.help'), icon: , onClick: () => { - // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-expect-error -- ... - // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access if ($zoho?.salesiq?.chat?.start) { - // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-expect-error -- ... - // eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access $zoho.salesiq.chat.start(); } }, 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 09155d903e..6c0e1ee35e 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 @@ -34,7 +34,6 @@ export function Input({ InputProps={ mask ? { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-explicit-any -- disable inputComponent: mask as any, } : undefined diff --git a/packages/apps/human-app/frontend/src/shared/components/ui/table/table-header-cell.tsx b/packages/apps/human-app/frontend/src/shared/components/ui/table/table-header-cell.tsx index 81d2c45ee7..b6730efb98 100644 --- a/packages/apps/human-app/frontend/src/shared/components/ui/table/table-header-cell.tsx +++ b/packages/apps/human-app/frontend/src/shared/components/ui/table/table-header-cell.tsx @@ -42,12 +42,10 @@ export function TableHeaderCell({ const getHeader = () => { if (!iconType) { - // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions return
{headerText}
; } return ( - // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
diff --git a/packages/apps/human-app/frontend/src/shared/contexts/browser-auth-provider.ts b/packages/apps/human-app/frontend/src/shared/contexts/browser-auth-provider.ts index bf38004fb3..b1a9a76a8a 100644 --- a/packages/apps/human-app/frontend/src/shared/contexts/browser-auth-provider.ts +++ b/packages/apps/human-app/frontend/src/shared/contexts/browser-auth-provider.ts @@ -1,4 +1,3 @@ -/* eslint-disable camelcase -- ...*/ import type { AuthType, BrowserAuthProvider, @@ -93,7 +92,7 @@ const browserAuthProvider: BrowserAuthProvider = { return { data: JSON.parse(userData) as unknown, }; - } catch (error) { + } catch { return { data: {} as unknown }; } }, diff --git a/packages/apps/human-app/frontend/src/shared/contexts/generic-auth-context.tsx b/packages/apps/human-app/frontend/src/shared/contexts/generic-auth-context.tsx index daad26d065..d9cec048f4 100644 --- a/packages/apps/human-app/frontend/src/shared/contexts/generic-auth-context.tsx +++ b/packages/apps/human-app/frontend/src/shared/contexts/generic-auth-context.tsx @@ -73,7 +73,6 @@ export function createAuthProvider(config: { browserAuthProvider.signOutSubscription = displayExpirationModal; } catch (e) { - // eslint-disable-next-line no-console console.error('Invalid JWT payload:', e); signOut({ status: 'error', diff --git a/packages/apps/human-app/frontend/src/shared/env.ts b/packages/apps/human-app/frontend/src/shared/env.ts index 763fb15018..9e51cfb1d1 100644 --- a/packages/apps/human-app/frontend/src/shared/env.ts +++ b/packages/apps/human-app/frontend/src/shared/env.ts @@ -1,4 +1,3 @@ -/* eslint-disable no-console -- .. */ import { ZodError, z } from 'zod'; const envSchema = z.object({ @@ -19,8 +18,6 @@ const envSchema = z.object({ .string() .transform((value) => Number(value)) .pipe(z.number()), - VITE_H_CAPTCHA_EXCHANGE_URL: z.string(), - VITE_H_CAPTCHA_LABELING_BASE_URL: z.string(), VITE_WALLET_CONNECT_PROJECT_ID: z.string(), VITE_DAPP_META_NAME: z.string(), VITE_DAPP_META_DESCRIPTION: z.string(), diff --git a/packages/apps/human-app/frontend/src/shared/helpers/pagination.ts b/packages/apps/human-app/frontend/src/shared/helpers/pagination.ts index 7a7057e456..bdb1ba7bd2 100644 --- a/packages/apps/human-app/frontend/src/shared/helpers/pagination.ts +++ b/packages/apps/human-app/frontend/src/shared/helpers/pagination.ts @@ -1,4 +1,3 @@ -/* eslint-disable camelcase -- ...*/ import { z } from 'zod'; export const createPaginationSchema = (resultsSchema: z.ZodType) => diff --git a/packages/apps/human-app/frontend/src/shared/hooks/use-reset-mutation-errors.tsx b/packages/apps/human-app/frontend/src/shared/hooks/use-reset-mutation-errors.tsx index fcdb2499ed..3abf751c64 100644 --- a/packages/apps/human-app/frontend/src/shared/hooks/use-reset-mutation-errors.tsx +++ b/packages/apps/human-app/frontend/src/shared/hooks/use-reset-mutation-errors.tsx @@ -2,7 +2,6 @@ import { useEffect } from 'react'; import type { UseFormWatch } from 'react-hook-form'; export function useResetMutationErrors( - // eslint-disable-next-line @typescript-eslint/no-explicit-any -- any allows auto inferring watch: UseFormWatch, resetFn: () => void ) { diff --git a/packages/apps/human-app/frontend/src/shared/schemas/auth-tokens-schema.ts b/packages/apps/human-app/frontend/src/shared/schemas/auth-tokens-schema.ts index 3cb24a0b99..bdee016708 100644 --- a/packages/apps/human-app/frontend/src/shared/schemas/auth-tokens-schema.ts +++ b/packages/apps/human-app/frontend/src/shared/schemas/auth-tokens-schema.ts @@ -1,9 +1,7 @@ import { z } from 'zod'; export const authTokensSuccessResponseSchema = z.object({ - // eslint-disable-next-line camelcase -- data from api access_token: z.string(), - // eslint-disable-next-line camelcase -- data from api refresh_token: z.string(), }); diff --git a/packages/apps/human-app/frontend/src/shared/schemas/url-domain-schema.ts b/packages/apps/human-app/frontend/src/shared/schemas/url-domain-schema.ts index 05b45c0480..d5946b70b7 100644 --- a/packages/apps/human-app/frontend/src/shared/schemas/url-domain-schema.ts +++ b/packages/apps/human-app/frontend/src/shared/schemas/url-domain-schema.ts @@ -6,7 +6,7 @@ export const urlDomainSchema = z.string().refine( try { const newUrl = new URL(url); return newUrl.protocol === 'http:' || newUrl.protocol === 'https:'; - } catch (e) { + } catch { return false; } }, diff --git a/packages/apps/human-app/frontend/vite.config.mjs b/packages/apps/human-app/frontend/vite.config.mjs index 847e517a4f..40943d146b 100644 --- a/packages/apps/human-app/frontend/vite.config.mjs +++ b/packages/apps/human-app/frontend/vite.config.mjs @@ -1,8 +1,12 @@ import path from 'node:path'; +import { fileURLToPath } from 'node:url'; import { defineConfig } from 'vitest/config'; import react from '@vitejs/plugin-react'; import svgr from 'vite-plugin-svgr'; +const __filename = fileURLToPath(import.meta.url); +const __dirname = path.dirname(__filename); + // https://vitejs.dev/config/ const config = defineConfig({ plugins: [ @@ -34,5 +38,4 @@ const config = defineConfig({ }, }); -// eslint-disable-next-line import/no-default-export -- export vite config export default config; diff --git a/packages/apps/human-app/server/.eslintrc.js b/packages/apps/human-app/server/.eslintrc.js deleted file mode 100644 index c7da341f80..0000000000 --- a/packages/apps/human-app/server/.eslintrc.js +++ /dev/null @@ -1,35 +0,0 @@ -module.exports = { - parser: '@typescript-eslint/parser', - parserOptions: { - project: 'tsconfig.json', - tsconfigRootDir: __dirname, - sourceType: 'module', - }, - plugins: ['@typescript-eslint/eslint-plugin'], - extends: [ - 'plugin:@typescript-eslint/recommended', - 'plugin:prettier/recommended', - ], - root: true, - env: { - node: true, - jest: true, - }, - ignorePatterns: ['.eslintrc.js'], - rules: { - '@typescript-eslint/interface-name-prefix': 'off', - '@typescript-eslint/explicit-function-return-type': 'off', - '@typescript-eslint/explicit-module-boundary-types': 'off', - '@typescript-eslint/no-explicit-any': 'off', - 'linebreak-style': 0, - '@typescript-eslint/no-unused-vars': ['error', { - "args": "all", - "argsIgnorePattern": "^_", - "caughtErrors": "all", - "caughtErrorsIgnorePattern": "^_", - "destructuredArrayIgnorePattern": "^_", - "varsIgnorePattern": "^_", - "ignoreRestSiblings": true - }], - }, -}; diff --git a/packages/apps/human-app/server/eslint.config.mjs b/packages/apps/human-app/server/eslint.config.mjs new file mode 100644 index 0000000000..2d61b62292 --- /dev/null +++ b/packages/apps/human-app/server/eslint.config.mjs @@ -0,0 +1,57 @@ +import eslint from '@eslint/js'; +import globals from 'globals'; +import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'; +import jestPlugin from 'eslint-plugin-jest'; +import tseslint from 'typescript-eslint'; + +/** @type {import('eslint').Linter.FlatConfig[]} */ +const config = tseslint.config( + { + ignores: ['dist', 'node_modules', 'jest.config.js'], + }, + eslint.configs.recommended, + tseslint.configs.recommended, + eslintPluginPrettierRecommended, + { + files: ['**/*.ts', '**/*.js'], + languageOptions: { + globals: { + ...globals.node, + ...globals.es2022, + }, + ecmaVersion: 2022, + sourceType: 'module', + parserOptions: { + projectService: true, + tsconfigRootDir: import.meta.dirname, + }, + }, + plugins: { + jest: jestPlugin, + }, + rules: { + 'no-console': 'warn', + 'prettier/prettier': 'error', + '@typescript-eslint/explicit-module-boundary-types': 'off', + '@typescript-eslint/no-explicit-any': 'off', + '@/quotes': [ + 'error', + 'single', + { 'avoidEscape': true, 'allowTemplateLiterals': true } + ], + }, + }, + { + files: ['**/*.spec.ts', '**/*.spec.tsx', '**/*.test.ts', '**/*.test.tsx'], + languageOptions: { + globals: { + ...globals.jest, + }, + }, + plugins: { + jest: jestPlugin, + }, + }, +); + +export default config; diff --git a/packages/apps/human-app/server/package.json b/packages/apps/human-app/server/package.json index b25ceacaf9..7a1451a287 100644 --- a/packages/apps/human-app/server/package.json +++ b/packages/apps/human-app/server/package.json @@ -31,7 +31,7 @@ "@nestjs/cache-manager": "^2.2.1", "@nestjs/common": "^10.2.7", "@nestjs/config": "^3.1.1", - "@nestjs/core": "^10.3.10", + "@nestjs/core": "^11.1.9", "@nestjs/passport": "^10.0.0", "@nestjs/platform-express": "^10.3.10", "@nestjs/schedule": "^4.0.1", @@ -58,17 +58,18 @@ "@nestjs/schematics": "^11.0.2", "@nestjs/testing": "^10.4.6", "@types/express": "^4.17.13", - "@types/jest": "29.5.12", + "@types/jest": "30.0.0", "@types/jsonwebtoken": "^9.0.7", "@types/lodash": "^4.17.14", "@types/node": "22.10.5", "@types/passport": "^0", "@typescript-eslint/eslint-plugin": "^5.0.0", - "@typescript-eslint/parser": "^5.0.0", - "eslint": "^8.55.0", + "@typescript-eslint/parser": "^8.46.3", + "eslint": "^9.39.1", "eslint-config-prettier": "^9.1.0", + "eslint-plugin-jest": "^28.9.0", "eslint-plugin-prettier": "^5.2.1", - "jest": "29.7.0", + "jest": "30.2.0", "nock": "^13.5.1", "prettier": "^3.4.2", "source-map-support": "^0.5.20", diff --git a/packages/apps/human-app/server/src/common/decorators/enums.ts b/packages/apps/human-app/server/src/common/decorators/enums.ts index e6d3bf29ad..c59ad95194 100644 --- a/packages/apps/human-app/server/src/common/decorators/enums.ts +++ b/packages/apps/human-app/server/src/common/decorators/enums.ts @@ -9,8 +9,7 @@ export function IsEnumCaseInsensitive( enumType: any, validationOptions?: ValidationOptions, ) { - // eslint-disable-next-line @typescript-eslint/ban-types - return function (object: Object, propertyName: string) { + return function (object: object, propertyName: string) { // Attach enum metadata to the property Reflect.defineMetadata('custom:enum', enumType, object, propertyName); diff --git a/packages/apps/human-app/server/src/common/filter/exception.filter.spec.ts b/packages/apps/human-app/server/src/common/filter/exception.filter.spec.ts index 201f8c22e5..60f1f20dd4 100644 --- a/packages/apps/human-app/server/src/common/filter/exception.filter.spec.ts +++ b/packages/apps/human-app/server/src/common/filter/exception.filter.spec.ts @@ -47,13 +47,13 @@ describe('ExceptionFilter', () => { new HttpException('Http exception', HttpStatus.BAD_REQUEST), mockArgumentsHost, ); - expect(mockHttpArgumentsHost).toBeCalledTimes(1); - expect(mockHttpArgumentsHost).toBeCalledWith(); - expect(mockGetResponse).toBeCalledTimes(1); - expect(mockGetResponse).toBeCalledWith(); - expect(mockStatus).toBeCalledTimes(1); - expect(mockStatus).toBeCalledWith(HttpStatus.BAD_REQUEST); - expect(mockJson).toBeCalledTimes(1); - expect(mockJson).toBeCalledWith('Http exception'); + expect(mockHttpArgumentsHost).toHaveBeenCalledTimes(1); + expect(mockHttpArgumentsHost).toHaveBeenCalledWith(); + expect(mockGetResponse).toHaveBeenCalledTimes(1); + expect(mockGetResponse).toHaveBeenCalledWith(); + expect(mockStatus).toHaveBeenCalledTimes(1); + expect(mockStatus).toHaveBeenCalledWith(HttpStatus.BAD_REQUEST); + expect(mockJson).toHaveBeenCalledTimes(1); + expect(mockJson).toHaveBeenCalledWith('Http exception'); }); }); diff --git a/packages/apps/human-app/server/src/common/interceptors/transform-enum.interceptor.spec.ts b/packages/apps/human-app/server/src/common/interceptors/transform-enum.interceptor.spec.ts index 7063047191..819e03baa0 100644 --- a/packages/apps/human-app/server/src/common/interceptors/transform-enum.interceptor.spec.ts +++ b/packages/apps/human-app/server/src/common/interceptors/transform-enum.interceptor.spec.ts @@ -88,7 +88,7 @@ describe('TransformEnumInterceptor', () => { expect(request.query).toEqual({ userType: 'operator', }); - expect(callHandler.handle).toBeCalled(); // Ensure the handler is called + expect(callHandler.handle).toHaveBeenCalled(); // Ensure the handler is called }); it('should throw an error if the query value is not a valid enum', async () => { @@ -126,7 +126,7 @@ describe('TransformEnumInterceptor', () => { amount: 5, address: '0xCf88b3f1992458C2f5a229573c768D0E9F70C44e', }); - expect(callHandler.handle).toBeCalled(); // Ensure the handler is called + expect(callHandler.handle).toHaveBeenCalled(); // Ensure the handler is called }); it('should throw an error if the value is not a valid enum', async () => { @@ -164,7 +164,7 @@ describe('TransformEnumInterceptor', () => { expect(request.body.address).toBe( '0xCf88b3f1992458C2f5a229573c768D0E9F70C44e', ); // Non-enum string should remain unchanged - expect(callHandler.handle).toBeCalled(); + expect(callHandler.handle).toHaveBeenCalled(); }); it('should handle nested objects with enums', async () => { diff --git a/packages/apps/human-app/server/src/common/interceptors/transform-enum.interceptor.ts b/packages/apps/human-app/server/src/common/interceptors/transform-enum.interceptor.ts index d24d146f34..020899bc21 100644 --- a/packages/apps/human-app/server/src/common/interceptors/transform-enum.interceptor.ts +++ b/packages/apps/human-app/server/src/common/interceptors/transform-enum.interceptor.ts @@ -88,7 +88,7 @@ export class TransformEnumInterceptor implements NestInterceptor { } for (const property in bodyOrQuery) { - if (bodyOrQuery.hasOwnProperty(property)) { + if (Object.prototype.hasOwnProperty.call(bodyOrQuery, property)) { const instanceValue = instance[property]; // Retrieve enum metadata if available diff --git a/packages/apps/human-app/server/src/common/utils/gateway-common.utils.ts b/packages/apps/human-app/server/src/common/utils/gateway-common.utils.ts index a5592dd1a5..422f7043ed 100644 --- a/packages/apps/human-app/server/src/common/utils/gateway-common.utils.ts +++ b/packages/apps/human-app/server/src/common/utils/gateway-common.utils.ts @@ -2,7 +2,7 @@ import { instanceToPlain } from 'class-transformer'; function cleanParams(obj: any): any { return Object.entries(obj) - .filter(([_k, v]) => v != null) + .filter(([, v]) => v != null) .reduce((acc, [k, v]) => ({ ...acc, [k]: v }), {}); } export function toCleanObjParams(params: any, existingParams: any = {}): any { diff --git a/packages/apps/human-app/server/src/integrations/reputation-oracle/spec/reputation-oracle.gateway.spec.ts b/packages/apps/human-app/server/src/integrations/reputation-oracle/spec/reputation-oracle.gateway.spec.ts index bec7e9af5e..76afaeef04 100644 --- a/packages/apps/human-app/server/src/integrations/reputation-oracle/spec/reputation-oracle.gateway.spec.ts +++ b/packages/apps/human-app/server/src/integrations/reputation-oracle/spec/reputation-oracle.gateway.spec.ts @@ -169,10 +169,7 @@ describe('ReputationOracleGateway', () => { .mockReturnValue(throwError(() => new Error('Internal Server Error'))); await expect(service.sendWorkerSignup(command)).rejects.toThrow( - new HttpException( - 'Internal Server Error', - HttpStatus.INTERNAL_SERVER_ERROR, - ), + new Error('Internal Server Error'), ); }); }); @@ -230,12 +227,7 @@ describe('ReputationOracleGateway', () => { await expect( service.sendRegistrationInExchangeOracle(command), - ).rejects.toThrow( - new HttpException( - 'Internal Server Error', - HttpStatus.INTERNAL_SERVER_ERROR, - ), - ); + ).rejects.toThrow(new Error('Internal Server Error')); }); }); @@ -361,10 +353,7 @@ describe('ReputationOracleGateway', () => { .mockReturnValue(throwError(() => new Error('Internal Server Error'))); await expect(service.sendWorkerSignin(command)).rejects.toThrow( - new HttpException( - 'Internal Server Error', - HttpStatus.INTERNAL_SERVER_ERROR, - ), + new Error('Internal Server Error'), ); }); }); @@ -412,10 +401,7 @@ describe('ReputationOracleGateway', () => { const command: EmailVerificationCommand = emailVerificationCommandFixture; await expect(service.sendEmailVerification(command)).rejects.toThrow( - new HttpException( - 'Internal Server Error', - HttpStatus.INTERNAL_SERVER_ERROR, - ), + new Error('Internal Server Error'), ); }); }); @@ -471,12 +457,7 @@ describe('ReputationOracleGateway', () => { resendEmailVerificationCommandFixture; await expect( service.sendResendEmailVerification(command), - ).rejects.toThrow( - new HttpException( - 'Internal Server Error', - HttpStatus.INTERNAL_SERVER_ERROR, - ), - ); + ).rejects.toThrow(new Error('Internal Server Error')); }); }); @@ -523,10 +504,7 @@ describe('ReputationOracleGateway', () => { const command: ForgotPasswordCommand = forgotPasswordCommandFixture; await expect(service.sendForgotPassword(command)).rejects.toThrow( - new HttpException( - 'Internal Server Error', - HttpStatus.INTERNAL_SERVER_ERROR, - ), + new Error('Internal Server Error'), ); }); }); @@ -574,12 +552,7 @@ describe('ReputationOracleGateway', () => { await expect( service.sendRestorePassword(restorePasswordCommandFixture), - ).rejects.toThrow( - new HttpException( - 'Internal Server Error', - HttpStatus.INTERNAL_SERVER_ERROR, - ), - ); + ).rejects.toThrow(new Error('Internal Server Error')); }); }); @@ -631,10 +604,7 @@ describe('ReputationOracleGateway', () => { const command: PrepareSignatureCommand = prepareSignatureCommandFixture; await expect(service.sendPrepareSignature(command)).rejects.toThrow( - new HttpException( - 'Internal Server Error', - HttpStatus.INTERNAL_SERVER_ERROR, - ), + new Error('Internal Server Error'), ); }); }); @@ -682,12 +652,7 @@ describe('ReputationOracleGateway', () => { await expect( service.sendDisableOperator(disableOperatorCommandFixture), - ).rejects.toThrow( - new HttpException( - 'Internal Server Error', - HttpStatus.INTERNAL_SERVER_ERROR, - ), - ); + ).rejects.toThrow(new Error('Internal Server Error')); }); }); describe('sendKycOnChain', () => { @@ -735,10 +700,7 @@ describe('ReputationOracleGateway', () => { .mockReturnValue(throwError(() => new Error('Internal Server Error'))); await expect(service.sendKycProcedureStart('token')).rejects.toThrow( - new HttpException( - 'Internal Server Error', - HttpStatus.INTERNAL_SERVER_ERROR, - ), + new Error('Internal Server Error'), ); }); }); @@ -786,12 +748,7 @@ describe('ReputationOracleGateway', () => { await expect( service.approveUserAsLabeler(enableLabelingCommandFixture), - ).rejects.toThrow( - new HttpException( - 'Internal Server Error', - HttpStatus.INTERNAL_SERVER_ERROR, - ), - ); + ).rejects.toThrow(new Error('Internal Server Error')); }); }); describe('sendBlockchainAddressRegistration', () => { @@ -870,10 +827,7 @@ describe('ReputationOracleGateway', () => { refreshToken: 'token', }; await expect(service.sendRefreshToken(command)).rejects.toThrow( - new HttpException( - 'Internal Server Error', - HttpStatus.INTERNAL_SERVER_ERROR, - ), + new Error('Internal Server Error'), ); }); }); diff --git a/packages/apps/human-app/server/src/modules/h-captcha/spec/h-captcha.service.spec.ts b/packages/apps/human-app/server/src/modules/h-captcha/spec/h-captcha.service.spec.ts index 08ec304388..4f3a735fe7 100644 --- a/packages/apps/human-app/server/src/modules/h-captcha/spec/h-captcha.service.spec.ts +++ b/packages/apps/human-app/server/src/modules/h-captcha/spec/h-captcha.service.spec.ts @@ -121,7 +121,7 @@ describe('HCaptchaService', () => { .spyOn(hCaptchaVerifyGateway, 'sendTokenToVerify') .mockResolvedValue(apiResponse); - await expect(service.verifyToken(command)).rejects.toThrowError( + await expect(service.verifyToken(command)).rejects.toThrow( errorMessageFixture, ); }); @@ -135,7 +135,7 @@ describe('HCaptchaService', () => { .spyOn(hCaptchaVerifyGateway, 'sendTokenToVerify') .mockResolvedValue(apiResponse); - await expect(service.verifyToken(command)).rejects.toThrowError( + await expect(service.verifyToken(command)).rejects.toThrow( errorMessageFixture, ); }); diff --git a/packages/apps/human-app/server/src/modules/health/indicators/cache-manager.health.ts b/packages/apps/human-app/server/src/modules/health/indicators/cache-manager.health.ts index 99261d02f0..237b7ce632 100644 --- a/packages/apps/human-app/server/src/modules/health/indicators/cache-manager.health.ts +++ b/packages/apps/human-app/server/src/modules/health/indicators/cache-manager.health.ts @@ -16,7 +16,8 @@ export class CacheManagerHealthIndicator extends HealthIndicator { try { await cacheManager.get(`health-indicator-synthetic-key`); isHealthy = true; - } catch (_noop) {} + // eslint-disable-next-line no-empty + } catch {} const result = this.getStatus(key, isHealthy); diff --git a/packages/apps/human-app/server/src/modules/health/indicators/redis.health.ts b/packages/apps/human-app/server/src/modules/health/indicators/redis.health.ts index a4b4edbaf7..d6fc8a228f 100644 --- a/packages/apps/human-app/server/src/modules/health/indicators/redis.health.ts +++ b/packages/apps/human-app/server/src/modules/health/indicators/redis.health.ts @@ -15,7 +15,8 @@ export class RedisHealthIndicator extends HealthIndicator { try { await redisClient.ping(); isHealthy = true; - } catch (_noop) {} + // eslint-disable-next-line no-empty + } catch {} const result = this.getStatus(key, isHealthy); diff --git a/packages/apps/human-app/server/src/modules/job-assignment/job-assignment.controller.ts b/packages/apps/human-app/server/src/modules/job-assignment/job-assignment.controller.ts index 03cfa10059..3eba428370 100644 --- a/packages/apps/human-app/server/src/modules/job-assignment/job-assignment.controller.ts +++ b/packages/apps/human-app/server/src/modules/job-assignment/job-assignment.controller.ts @@ -48,7 +48,6 @@ export class JobAssignmentController { ): Promise { // TODO: temporal - THIRSTYFI if (jobAssignmentDto.escrow_address === 'thirstyfi-task') { - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion if (new Date(process.env.THIRSTYFI_TASK_EXPIRATION_DATE!) < new Date()) { throw new BadRequestException('Expired task'); } @@ -81,7 +80,8 @@ export class JobAssignmentController { expires_at: process.env.THIRSTYFI_TASK_EXPIRATION_DATE ?? '', }; } catch (error) { - console.log(error); + // eslint-disable-next-line no-console + console.error(error); throw new BadRequestException(error.response.data.error); } } diff --git a/packages/apps/human-app/server/src/modules/jobs-discovery/jobs-discovery.controller.ts b/packages/apps/human-app/server/src/modules/jobs-discovery/jobs-discovery.controller.ts index d65a973fe1..be89ef3407 100644 --- a/packages/apps/human-app/server/src/modules/jobs-discovery/jobs-discovery.controller.ts +++ b/packages/apps/human-app/server/src/modules/jobs-discovery/jobs-discovery.controller.ts @@ -57,7 +57,7 @@ export class JobsDiscoveryController { process.env.THIRSTYFI_ORACLE_ADDRESS ) { let data: any; - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + if (new Date(process.env.THIRSTYFI_TASK_EXPIRATION_DATE!) >= new Date()) { const response = await axios.get( `${process.env.THIRSTIFY_EXO}/participant`, diff --git a/packages/apps/job-launcher/client/.eslintrc.json b/packages/apps/job-launcher/client/.eslintrc.json deleted file mode 100644 index c928811e16..0000000000 --- a/packages/apps/job-launcher/client/.eslintrc.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "extends": ["plugin:import/recommended", "plugin:import/typescript", "plugin:prettier/recommended", "react-app"], - "settings": { - "import/resolver": { - "typescript": {}, - "node": { - "extensions": [".js", ".jsx", ".ts", ".tsx", ".d.ts"] - } - }, - "import/parsers": { - "@typescript-eslint/parser": [".ts", ".tsx"] - } - }, - "parserOptions": { - "ecmaVersion": 2020, - "sourceType": "module" - }, - "rules": { - "no-console": "warn", - "no-unused-vars": "off", - "import/extensions": [ - "error", - "ignorePackages", - { - "js": "never", - "jsx": "never", - "ts": "never", - "tsx": "never" - } - ], - "import/order": [ - "error", - { - "pathGroups": [ - { - "pattern": "~/**", - "group": "external" - } - ], - "alphabetize": { - "order": "asc", - "caseInsensitive": true - } - } - ], - "@typescript-eslint/no-unused-vars": ["error"], - "prettier/prettier": ["error"] - }, - "overrides": [ - { - "files": ["*.ts", "*.tsx"], - "rules": { - "no-undef": "off" - } - } - ], - "env": { - "browser": true, - "jest": true, - "node": true - } -} diff --git a/packages/apps/job-launcher/client/eslint.config.mjs b/packages/apps/job-launcher/client/eslint.config.mjs new file mode 100644 index 0000000000..349d15df68 --- /dev/null +++ b/packages/apps/job-launcher/client/eslint.config.mjs @@ -0,0 +1,53 @@ +import eslint from '@eslint/js'; +import globals from 'globals'; +import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'; +import reactHooks from 'eslint-plugin-react-hooks'; +import jsxA11y from 'eslint-plugin-jsx-a11y'; +import eslintPluginImport from 'eslint-plugin-import'; +import tseslint from 'typescript-eslint'; + +export default tseslint.config( + { + ignores: ['dist', '.eslintrc.cjs', 'vite.config.ts'], + }, + eslint.configs.recommended, + tseslint.configs.recommended, + eslintPluginPrettierRecommended, + { + files: ['**/*.{ts,tsx,js,jsx}'], + languageOptions: { + globals: { + ...globals.node, + ...globals.browser, + }, + ecmaVersion: 2020, + sourceType: 'module', + parserOptions: { + projectService: true, + tsconfigRootDir: import.meta.dirname, + }, + }, + plugins: { + '@typescript-eslint': tseslint.plugin, + 'react-hooks': reactHooks, + import: eslintPluginImport, + }, + rules: { + '@typescript-eslint/interface-name-prefix': 'off', + '@typescript-eslint/explicit-function-return-type': 'off', + '@typescript-eslint/explicit-module-boundary-types': 'off', + '@typescript-eslint/no-explicit-any': 'off', + 'linebreak-style': 0, + 'react-hooks/rules-of-hooks': 'error', + 'react-hooks/exhaustive-deps': 'warn', + 'no-unused-vars': 'off', + '@typescript-eslint/no-unused-vars': 'off', + 'no-console': 'warn', + '@/quotes': [ + 'error', + 'single', + { 'avoidEscape': true, 'allowTemplateLiterals': true } + ], + }, + }, +); diff --git a/packages/apps/job-launcher/client/package.json b/packages/apps/job-launcher/client/package.json index 686de04368..24fc2a1abe 100644 --- a/packages/apps/job-launcher/client/package.json +++ b/packages/apps/job-launcher/client/package.json @@ -6,7 +6,7 @@ "dependencies": { "@emotion/react": "^11.10.5", "@emotion/styled": "^11.10.5", - "@hcaptcha/react-hcaptcha": "^1.10.1", + "@hcaptcha/react-hcaptcha": "^1.14.0", "@human-protocol/sdk": "workspace:*", "@mui/icons-material": "^7.0.1", "@mui/lab": "^5.0.0-alpha.141", @@ -70,7 +70,7 @@ "@types/react-dom": "^18.3.1", "@types/xml2js": "^0.4.14", "@vitejs/plugin-react": "^4.2.1", - "eslint": "^8.55.0", + "eslint": "^9.39.1", "eslint-config-react-app": "^7.0.1", "eslint-import-resolver-typescript": "^3.7.0", "eslint-plugin-import": "^2.29.0", diff --git a/packages/apps/job-launcher/client/src/components/Auth/ValidateEmailForm.tsx b/packages/apps/job-launcher/client/src/components/Auth/ValidateEmailForm.tsx index 07b856ab08..3c781d9712 100644 --- a/packages/apps/job-launcher/client/src/components/Auth/ValidateEmailForm.tsx +++ b/packages/apps/job-launcher/client/src/components/Auth/ValidateEmailForm.tsx @@ -15,7 +15,7 @@ export default function VerifyEmailForm() { const handleResend = async () => { setIsLoading(true); try { - await authService.resendEmailVerification(user?.email!); + await authService.resendEmailVerification(user!.email); } catch (err) { // eslint-disable-next-line no-console console.log(err); @@ -55,7 +55,7 @@ export default function VerifyEmailForm() { Hi,

- We sent an email to {user?.email!}, please check your inbox and verify + We sent an email to {user!.email}, please check your inbox and verify your email. If you can’t find our email, please check junk junk/spam email folder. diff --git a/packages/apps/job-launcher/client/src/components/BillingDetails/BillingDetailsModal.tsx b/packages/apps/job-launcher/client/src/components/BillingDetails/BillingDetailsModal.tsx index 2f37342cc2..07b8901dea 100644 --- a/packages/apps/job-launcher/client/src/components/BillingDetails/BillingDetailsModal.tsx +++ b/packages/apps/job-launcher/client/src/components/BillingDetails/BillingDetailsModal.tsx @@ -71,7 +71,7 @@ const BillingDetailsModal = ({ }; const validateForm = () => { - let newErrors: { [key: string]: string } = {}; + const newErrors: { [key: string]: string } = {}; if (!formData?.name) { newErrors.name = 'name required'; diff --git a/packages/apps/job-launcher/client/src/components/Headers/AuthHeader.tsx b/packages/apps/job-launcher/client/src/components/Headers/AuthHeader.tsx index 55fce1c117..b8d05730cc 100644 --- a/packages/apps/job-launcher/client/src/components/Headers/AuthHeader.tsx +++ b/packages/apps/job-launcher/client/src/components/Headers/AuthHeader.tsx @@ -78,7 +78,7 @@ export const AuthHeader = () => { setIsLoggingOut(false); }; - let segements = pathname.split('/').filter((s) => s); + const segements = pathname.split('/').filter((s) => s); return ( Math.min(1000 * 2 ** count, 30000), }); @@ -339,7 +340,7 @@ export const CryptoPayForm = ({ value={amount} type="number" onChange={(e) => { - let value = e.target.value; + const value = e.target.value; const regex = new RegExp(`^\\d*\\.?\\d{0,${decimals}}$`); if (regex.test(value)) { setAmount(value); diff --git a/packages/apps/job-launcher/client/src/components/Jobs/Create/FiatPayForm.tsx b/packages/apps/job-launcher/client/src/components/Jobs/Create/FiatPayForm.tsx index 341a0a8c10..491c3e3581 100644 --- a/packages/apps/job-launcher/client/src/components/Jobs/Create/FiatPayForm.tsx +++ b/packages/apps/job-launcher/client/src/components/Jobs/Create/FiatPayForm.tsx @@ -129,7 +129,6 @@ export const FiatPayForm = ({ fetchJobLauncherData(); fetchCards(); fetchBillingInfo(); - // eslint-disable-next-line react-hooks/exhaustive-deps }, []); const fetchCards = async () => { @@ -344,7 +343,7 @@ export const FiatPayForm = ({ value={amount} type="number" onChange={(e) => { - let value = e.target.value; + const value = e.target.value; if (/^\d*\.?\d{0,2}$/.test(value)) { setAmount(value); } diff --git a/packages/apps/job-launcher/client/src/components/ProtectedRoute/index.tsx b/packages/apps/job-launcher/client/src/components/ProtectedRoute/index.tsx index 8de2deca44..8781102828 100644 --- a/packages/apps/job-launcher/client/src/components/ProtectedRoute/index.tsx +++ b/packages/apps/job-launcher/client/src/components/ProtectedRoute/index.tsx @@ -5,7 +5,7 @@ import { UserStatus } from '../../state/auth/types'; export function ProtectedRoute({ children }: { children: JSX.Element }) { const { isAuthed, user } = useAppSelector((state) => state.auth); - let location = useLocation(); + const location = useLocation(); if (!isAuthed) { // Redirect them to the /login page, but save the current location they were diff --git a/packages/apps/job-launcher/client/src/components/TopUpAccount/CryptoTopUpForm.tsx b/packages/apps/job-launcher/client/src/components/TopUpAccount/CryptoTopUpForm.tsx index b7b5a2148c..d005ae1c0b 100644 --- a/packages/apps/job-launcher/client/src/components/TopUpAccount/CryptoTopUpForm.tsx +++ b/packages/apps/job-launcher/client/src/components/TopUpAccount/CryptoTopUpForm.tsx @@ -88,7 +88,7 @@ export const CryptoTopUpForm = () => { await publicClient?.waitForTransactionReceipt({ hash: transactionHash, - confirmations: Number(import.meta.env.VITE_APP_MIN_CONFIRMATIONS) ?? 1, + confirmations: Number(import.meta.env.VITE_APP_MIN_CONFIRMATIONS ?? 1), retryCount: 10, retryDelay: ({ count }) => Math.min(1000 * 2 ** count, 30000), }); @@ -157,7 +157,7 @@ export const CryptoTopUpForm = () => { type="number" value={amount} onChange={(e) => { - let value = e.target.value; + const value = e.target.value; const maxDecimals = Math.min(tokenDecimals, 6); const regex = new RegExp(`^\\d*\\.?\\d{0,${maxDecimals}}$`); if (regex.test(value)) { diff --git a/packages/apps/job-launcher/client/src/components/TopUpAccount/FiatTopUpForm.tsx b/packages/apps/job-launcher/client/src/components/TopUpAccount/FiatTopUpForm.tsx index 3683408997..2449fac5d6 100644 --- a/packages/apps/job-launcher/client/src/components/TopUpAccount/FiatTopUpForm.tsx +++ b/packages/apps/job-launcher/client/src/components/TopUpAccount/FiatTopUpForm.tsx @@ -55,7 +55,6 @@ export const FiatTopUpForm = () => { fetchCards(); fetchBillingInfo(); - // eslint-disable-next-line react-hooks/exhaustive-deps }, []); const fetchCards = async () => { @@ -146,7 +145,7 @@ export const FiatTopUpForm = () => { value={amount} type="number" onChange={(e) => { - let value = e.target.value; + const value = e.target.value; if (/^\d*\.?\d{0,2}$/.test(value)) { setAmount(value); } diff --git a/packages/apps/job-launcher/client/src/hooks/useJobDetails.ts b/packages/apps/job-launcher/client/src/hooks/useJobDetails.ts index fdab6cde21..cd9375e557 100644 --- a/packages/apps/job-launcher/client/src/hooks/useJobDetails.ts +++ b/packages/apps/job-launcher/client/src/hooks/useJobDetails.ts @@ -9,7 +9,9 @@ export const useJobDetails = (jobId: number) => { try { const results = await jobService.getJobResult(jobId); jobData.results = results; - } catch {} + } catch { + // No results found + } return jobData; }); }; diff --git a/packages/apps/job-launcher/client/src/state/auth/reducer.ts b/packages/apps/job-launcher/client/src/state/auth/reducer.ts index 5ed7498776..bfd76bb674 100644 --- a/packages/apps/job-launcher/client/src/state/auth/reducer.ts +++ b/packages/apps/job-launcher/client/src/state/auth/reducer.ts @@ -40,7 +40,7 @@ export default createReducer(initialState, (builder) => { state.accessToken = accessToken; state.refreshToken = refreshToken; }); - builder.addCase(signOut, (state, action) => { + builder.addCase(signOut, (state) => { state.isAuthed = false; state.accessToken = undefined; state.refreshToken = undefined; diff --git a/packages/apps/job-launcher/client/src/state/dashboard/reducer.ts b/packages/apps/job-launcher/client/src/state/dashboard/reducer.ts index cb409545e6..7abe429f8f 100644 --- a/packages/apps/job-launcher/client/src/state/dashboard/reducer.ts +++ b/packages/apps/job-launcher/client/src/state/dashboard/reducer.ts @@ -5,4 +5,4 @@ const initialState: DashboardState = { dataLoaded: false, }; -export default createReducer(initialState, (builder) => {}); +export default createReducer(initialState, () => {}); diff --git a/packages/apps/job-launcher/client/src/utils/buckets.ts b/packages/apps/job-launcher/client/src/utils/buckets.ts index f8d1117c2e..adf65dc9ee 100644 --- a/packages/apps/job-launcher/client/src/utils/buckets.ts +++ b/packages/apps/job-launcher/client/src/utils/buckets.ts @@ -4,26 +4,21 @@ import { parseString } from 'xml2js'; export const listObjectsInBucket = async ( bucketUrl: string, ): Promise => { - return new Promise(async (resolve, reject) => { - try { - const response = await axios.get(bucketUrl); + const response = await axios.get(bucketUrl); + if (response.status === 200 && response.data) { + return new Promise((resolve, reject) => { + parseString(response.data, (err: any, result: any) => { + if (err) { + reject(err); + } - if (response.status === 200 && response.data) { - parseString(response.data, (err: any, result: any) => { - if (err) { - reject(err); - } - - const objectKeys = result.ListBucketResult.Contents.map( - (item: any) => item.Key, - ); - resolve(objectKeys.flat()); - }); - } else { - reject({ message: 'Failed to list objects in bucket' }); - } - } catch (err) { - reject(err); - } - }); + const objectKeys = result.ListBucketResult.Contents.map( + (item: any) => item.Key, + ); + resolve(objectKeys.flat()); + }); + }); + } else { + throw new Error('Failed to list objects in bucket'); + } }; diff --git a/packages/apps/job-launcher/server/.eslintrc.js b/packages/apps/job-launcher/server/.eslintrc.js deleted file mode 100644 index ee5951806c..0000000000 --- a/packages/apps/job-launcher/server/.eslintrc.js +++ /dev/null @@ -1,35 +0,0 @@ -module.exports = { - parser: '@typescript-eslint/parser', - parserOptions: { - project: 'tsconfig.json', - tsconfigRootDir: __dirname, - sourceType: 'module', - }, - plugins: ['@typescript-eslint/eslint-plugin'], - extends: [ - 'plugin:@typescript-eslint/recommended', - 'plugin:prettier/recommended', - ], - root: true, - env: { - node: true, - jest: true, - }, - ignorePatterns: ['.eslintrc.js'], - rules: { - '@typescript-eslint/interface-name-prefix': 'off', - '@typescript-eslint/explicit-function-return-type': 'off', - '@typescript-eslint/explicit-module-boundary-types': 'off', - '@typescript-eslint/no-explicit-any': 'off', - "@typescript-eslint/no-empty-function": "off", - '@typescript-eslint/no-unused-vars': ['error', { - "args": "all", - "argsIgnorePattern": "^_", - "caughtErrors": "all", - "caughtErrorsIgnorePattern": "^_", - "destructuredArrayIgnorePattern": "^_", - "varsIgnorePattern": "^_", - "ignoreRestSiblings": true - }], - }, -}; diff --git a/packages/apps/job-launcher/server/eslint.config.mjs b/packages/apps/job-launcher/server/eslint.config.mjs new file mode 100644 index 0000000000..4f8ea39dc5 --- /dev/null +++ b/packages/apps/job-launcher/server/eslint.config.mjs @@ -0,0 +1,70 @@ +import eslint from '@eslint/js'; +import globals from 'globals'; +import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'; +import jestPlugin from 'eslint-plugin-jest'; +import tseslint from 'typescript-eslint'; + +/** @type {import('eslint').Linter.FlatConfig[]} */ +const config = tseslint.config( + { + ignores: ['dist', '.eslintrc.js'], + }, + eslint.configs.recommended, + tseslint.configs.recommended, + eslintPluginPrettierRecommended, + { + files: ['**/*.ts', '**/*.js'], + languageOptions: { + globals: { + ...globals.node, + ...globals.es2022, + }, + ecmaVersion: 2022, + sourceType: 'module', + parserOptions: { + projectService: true, + tsconfigRootDir: import.meta.dirname, + }, + }, + plugins: { + jest: jestPlugin, + }, + rules: { + '@typescript-eslint/interface-name-prefix': 'off', + '@typescript-eslint/explicit-function-return-type': 'off', + '@typescript-eslint/explicit-module-boundary-types': 'off', + '@typescript-eslint/no-explicit-any': 'off', + '@typescript-eslint/no-empty-function': 'off', + '@typescript-eslint/no-unused-vars': [ + 'error', + { + args: 'all', + argsIgnorePattern: '^_', + caughtErrors: 'all', + caughtErrorsIgnorePattern: '^_', + destructuredArrayIgnorePattern: '^_', + varsIgnorePattern: '^_', + ignoreRestSiblings: true, + }, + ], + '@/quotes': [ + 'error', + 'single', + { 'avoidEscape': true, 'allowTemplateLiterals': true } + ], + }, + }, + { + files: ['**/*.spec.ts', '**/*.spec.tsx', '**/*.test.ts', '**/*.test.tsx'], + languageOptions: { + globals: { + ...globals.jest, + }, + }, + plugins: { + jest: jestPlugin, + }, + }, +); + +export default config; diff --git a/packages/apps/job-launcher/server/package.json b/packages/apps/job-launcher/server/package.json index ba9d0fba31..c0b6502cab 100644 --- a/packages/apps/job-launcher/server/package.json +++ b/packages/apps/job-launcher/server/package.json @@ -36,7 +36,7 @@ "@nestjs/axios": "^3.1.2", "@nestjs/common": "^10.2.7", "@nestjs/config": "^3.1.1", - "@nestjs/core": "^10.3.10", + "@nestjs/core": "^11.1.9", "@nestjs/jwt": "^10.2.0", "@nestjs/passport": "^10.0.0", "@nestjs/platform-express": "^10.3.10", @@ -81,16 +81,17 @@ "@nestjs/testing": "^10.4.6", "@types/bcrypt": "^5.0.2", "@types/express": "^4.17.13", - "@types/jest": "29.5.12", + "@types/jest": "30.0.0", "@types/node": "22.10.5", "@types/xml2js": "0.4.14", "@types/zxcvbn": "4.4.5", "@typescript-eslint/eslint-plugin": "^5.0.0", - "@typescript-eslint/parser": "^5.0.0", - "eslint": "^8.55.0", + "@typescript-eslint/parser": "^8.46.3", + "eslint": "^9.39.1", "eslint-config-prettier": "^9.1.0", + "eslint-plugin-jest": "^28.9.0", "eslint-plugin-prettier": "^5.2.1", - "jest": "29.7.0", + "jest": "30.2.0", "prettier": "^3.4.2", "source-map-support": "^0.5.20", "ts-jest": "29.2.5", diff --git a/packages/apps/job-launcher/server/src/common/config/env-schema.ts b/packages/apps/job-launcher/server/src/common/config/env-schema.ts index e7fd7cbc95..98b5204cb4 100644 --- a/packages/apps/job-launcher/server/src/common/config/env-schema.ts +++ b/packages/apps/job-launcher/server/src/common/config/env-schema.ts @@ -27,6 +27,7 @@ export const envValidator = Joi.object({ WEB3_ENV: Joi.string(), WEB3_PRIVATE_KEY: Joi.string().required(), GAS_PRICE_MULTIPLIER: Joi.number(), + APPROVE_AMOUNT_USD: Joi.number(), REPUTATION_ORACLE_ADDRESS: Joi.string().required(), REPUTATION_ORACLES: Joi.string().required(), CVAT_EXCHANGE_ORACLE_ADDRESS: Joi.string().required(), diff --git a/packages/apps/job-launcher/server/src/common/config/web3-config.service.ts b/packages/apps/job-launcher/server/src/common/config/web3-config.service.ts index 323833a600..f5a5ee8742 100644 --- a/packages/apps/job-launcher/server/src/common/config/web3-config.service.ts +++ b/packages/apps/job-launcher/server/src/common/config/web3-config.service.ts @@ -110,4 +110,8 @@ export class Web3ConfigService { 'AUDINO_RECORDING_ORACLE_ADDRESS', ); } + + get approveAmountUsd(): number { + return this.configService.get('APPROVE_AMOUNT_USD', 0); + } } diff --git a/packages/apps/job-launcher/server/src/common/constants/index.ts b/packages/apps/job-launcher/server/src/common/constants/index.ts index 3518b69d51..72ada66583 100644 --- a/packages/apps/job-launcher/server/src/common/constants/index.ts +++ b/packages/apps/job-launcher/server/src/common/constants/index.ts @@ -37,8 +37,6 @@ export const CANCEL_JOB_STATUSES = [ JobStatus.PAID, JobStatus.FAILED, JobStatus.LAUNCHED, - JobStatus.FUNDED, - JobStatus.CREATED, JobStatus.PARTIAL, ]; diff --git a/packages/apps/job-launcher/server/src/common/constants/tokens.ts b/packages/apps/job-launcher/server/src/common/constants/tokens.ts index 34f3f1ccfb..bb20d188ed 100644 --- a/packages/apps/job-launcher/server/src/common/constants/tokens.ts +++ b/packages/apps/job-launcher/server/src/common/constants/tokens.ts @@ -1,57 +1,63 @@ -/* eslint-disable @typescript-eslint/no-non-null-assertion */ import { ChainId, NETWORKS } from '@human-protocol/sdk'; import { EscrowFundToken } from '../enums/job'; +import { IERC20Token } from '../interfaces/web3'; export const TOKEN_ADDRESSES: { [chainId in ChainId]?: { - [token in EscrowFundToken]?: { - address: string; - decimals: number; - }; + [token in EscrowFundToken]?: IERC20Token; }; } = { [ChainId.MAINNET]: { [EscrowFundToken.HMT]: { address: NETWORKS[ChainId.MAINNET]!.hmtAddress, decimals: 18, + symbol: EscrowFundToken.HMT, }, [EscrowFundToken.USDT]: { address: '0xdAC17F958D2ee523a2206206994597C13D831ec7', decimals: 6, + symbol: EscrowFundToken.USDT, }, [EscrowFundToken.USDC]: { address: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', decimals: 6, + symbol: EscrowFundToken.USDC, }, }, [ChainId.SEPOLIA]: { [EscrowFundToken.HMT]: { address: NETWORKS[ChainId.SEPOLIA]!.hmtAddress, decimals: 18, + symbol: EscrowFundToken.HMT, }, [EscrowFundToken.USDT]: { address: '0xaA8E23Fb1079EA71e0a56F48a2aA51851D8433D0', decimals: 6, + symbol: EscrowFundToken.USDT, }, [EscrowFundToken.USDC]: { address: '0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238', decimals: 6, + symbol: EscrowFundToken.USDC, }, }, [ChainId.BSC_MAINNET]: { [EscrowFundToken.HMT]: { address: NETWORKS[ChainId.BSC_MAINNET]!.hmtAddress, decimals: 18, + symbol: EscrowFundToken.HMT, }, }, [ChainId.POLYGON]: { [EscrowFundToken.HMT]: { address: NETWORKS[ChainId.POLYGON]!.hmtAddress, decimals: 18, + symbol: EscrowFundToken.HMT, }, [EscrowFundToken.USDT0]: { address: '0xc2132D05D31c914a87C6611C10748AEb04B58e8F', decimals: 6, + symbol: EscrowFundToken.USDT0, }, // Disabled // [EscrowFundToken.USDC]: { @@ -63,22 +69,26 @@ export const TOKEN_ADDRESSES: { [EscrowFundToken.HMT]: { address: NETWORKS[ChainId.POLYGON_AMOY]!.hmtAddress, decimals: 18, + symbol: EscrowFundToken.HMT, }, [EscrowFundToken.USDC]: { address: '0x41e94eb019c0762f9bfcf9fb1e58725bfb0e7582', decimals: 6, + symbol: EscrowFundToken.USDC, }, }, [ChainId.LOCALHOST]: { [EscrowFundToken.HMT]: { address: NETWORKS[ChainId.LOCALHOST]!.hmtAddress, decimals: 18, + symbol: EscrowFundToken.HMT, }, }, [ChainId.BSC_TESTNET]: { [EscrowFundToken.HMT]: { address: NETWORKS[ChainId.BSC_TESTNET]!.hmtAddress, decimals: 18, + symbol: EscrowFundToken.HMT, }, }, }; diff --git a/packages/apps/job-launcher/server/src/common/decorators/enums.ts b/packages/apps/job-launcher/server/src/common/decorators/enums.ts index e6d3bf29ad..c59ad95194 100644 --- a/packages/apps/job-launcher/server/src/common/decorators/enums.ts +++ b/packages/apps/job-launcher/server/src/common/decorators/enums.ts @@ -9,8 +9,7 @@ export function IsEnumCaseInsensitive( enumType: any, validationOptions?: ValidationOptions, ) { - // eslint-disable-next-line @typescript-eslint/ban-types - return function (object: Object, propertyName: string) { + return function (object: object, propertyName: string) { // Attach enum metadata to the property Reflect.defineMetadata('custom:enum', enumType, object, propertyName); diff --git a/packages/apps/job-launcher/server/src/common/enums/cron-job.ts b/packages/apps/job-launcher/server/src/common/enums/cron-job.ts index 8136a7bde7..6cb71352ec 100644 --- a/packages/apps/job-launcher/server/src/common/enums/cron-job.ts +++ b/packages/apps/job-launcher/server/src/common/enums/cron-job.ts @@ -1,8 +1,6 @@ export enum CronJobType { ContentModeration = 'content-moderation', CreateEscrow = 'create-escrow', - SetupEscrow = 'setup-escrow', - FundEscrow = 'fund-escrow', CancelEscrow = 'cancel-escrow', ProcessPendingWebhook = 'process-pending-webhook', SyncJobStatuses = 'sync-job-statuses', diff --git a/packages/apps/job-launcher/server/src/common/enums/job.ts b/packages/apps/job-launcher/server/src/common/enums/job.ts index 7a700cbb59..bfba218ae5 100644 --- a/packages/apps/job-launcher/server/src/common/enums/job.ts +++ b/packages/apps/job-launcher/server/src/common/enums/job.ts @@ -3,8 +3,6 @@ export enum JobStatus { UNDER_MODERATION = 'under_moderation', MODERATION_PASSED = 'moderation_passed', POSSIBLE_ABUSE_IN_REVIEW = 'possible_abuse_in_review', - CREATED = 'created', - FUNDED = 'funded', LAUNCHED = 'launched', PARTIAL = 'partial', COMPLETED = 'completed', diff --git a/packages/apps/job-launcher/server/src/common/interceptors/transform-enum.interceptor.spec.ts b/packages/apps/job-launcher/server/src/common/interceptors/transform-enum.interceptor.spec.ts index bc47543f2c..362b6ce3f4 100644 --- a/packages/apps/job-launcher/server/src/common/interceptors/transform-enum.interceptor.spec.ts +++ b/packages/apps/job-launcher/server/src/common/interceptors/transform-enum.interceptor.spec.ts @@ -102,7 +102,7 @@ describe('TransformEnumInterceptor', () => { status: 'paid', userType: 'operator', }); - expect(callHandler.handle).toBeCalled(); // Ensure the handler is called + expect(callHandler.handle).toHaveBeenCalled(); // Ensure the handler is called }); it('should throw an error if the query value is not a valid enum', async () => { @@ -143,7 +143,7 @@ describe('TransformEnumInterceptor', () => { amount: 5, address: '0xCf88b3f1992458C2f5a229573c768D0E9F70C44e', }); - expect(callHandler.handle).toBeCalled(); // Ensure the handler is called + expect(callHandler.handle).toHaveBeenCalled(); // Ensure the handler is called }); it('should throw an error if the value is not a valid enum', async () => { @@ -182,7 +182,7 @@ describe('TransformEnumInterceptor', () => { expect(request.body.address).toBe( '0xCf88b3f1992458C2f5a229573c768D0E9F70C44e', ); // Non-enum string should remain unchanged - expect(callHandler.handle).toBeCalled(); + expect(callHandler.handle).toHaveBeenCalled(); }); it('should handle nested objects with enums', async () => { diff --git a/packages/apps/job-launcher/server/src/common/interceptors/transform-enum.interceptor.ts b/packages/apps/job-launcher/server/src/common/interceptors/transform-enum.interceptor.ts index d24d146f34..020899bc21 100644 --- a/packages/apps/job-launcher/server/src/common/interceptors/transform-enum.interceptor.ts +++ b/packages/apps/job-launcher/server/src/common/interceptors/transform-enum.interceptor.ts @@ -88,7 +88,7 @@ export class TransformEnumInterceptor implements NestInterceptor { } for (const property in bodyOrQuery) { - if (bodyOrQuery.hasOwnProperty(property)) { + if (Object.prototype.hasOwnProperty.call(bodyOrQuery, property)) { const instanceValue = instance[property]; // Retrieve enum metadata if available diff --git a/packages/apps/job-launcher/server/src/common/interfaces/web3.ts b/packages/apps/job-launcher/server/src/common/interfaces/web3.ts new file mode 100644 index 0000000000..4d589c057d --- /dev/null +++ b/packages/apps/job-launcher/server/src/common/interfaces/web3.ts @@ -0,0 +1,7 @@ +import { EscrowFundToken } from '../enums/job'; + +export interface IERC20Token { + address: string; + decimals: number; + symbol: EscrowFundToken; +} diff --git a/packages/apps/job-launcher/server/src/common/pagination/pagination.dto.ts b/packages/apps/job-launcher/server/src/common/pagination/pagination.dto.ts index 03158ad5f1..7d85e52147 100644 --- a/packages/apps/job-launcher/server/src/common/pagination/pagination.dto.ts +++ b/packages/apps/job-launcher/server/src/common/pagination/pagination.dto.ts @@ -1,4 +1,3 @@ -/* eslint-disable @typescript-eslint/no-non-null-assertion */ import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger'; import { IsNumber, IsOptional, Max, Min, IsArray } from 'class-validator'; import { Type } from 'class-transformer'; diff --git a/packages/apps/job-launcher/server/src/common/utils/index.ts b/packages/apps/job-launcher/server/src/common/utils/index.ts index e7b7e7410d..c089f573a1 100644 --- a/packages/apps/job-launcher/server/src/common/utils/index.ts +++ b/packages/apps/job-launcher/server/src/common/utils/index.ts @@ -19,7 +19,7 @@ export const parseUrl = ( endPoint: 'storage.googleapis.com', }, { - regex: /^https:\/\/([^\.]+)\.storage\.googleapis\.com\/?$/, + regex: /^https:\/\/([^.]+)\.storage\.googleapis\.com\/?$/, endPoint: 'storage.googleapis.com', }, { @@ -27,7 +27,7 @@ export const parseUrl = ( endPoint: 's3.amazonaws.com', }, { - regex: /^https:\/\/([^\.]+)\.s3\.([a-z0-9-]+)\.amazonaws\.com\/?$/, + regex: /^https:\/\/([^.]+)\.s3\.([a-z0-9-]+)\.amazonaws\.com\/?$/, endPoint: 's3.amazonaws.com', }, { @@ -64,7 +64,7 @@ export const parseUrl = ( } if (filename) { - match = filename.match(/([^\/]+)\.([^.\/]+)$/); + match = filename.match(/([^/]+)\.([^./]+)$/); if (match && match.length > 1) { data.filename = match[1]; data.extension = match[2]; diff --git a/packages/apps/job-launcher/server/src/common/utils/signature.spec.ts b/packages/apps/job-launcher/server/src/common/utils/signature.spec.ts index ca5ed5620f..c89716880d 100644 --- a/packages/apps/job-launcher/server/src/common/utils/signature.spec.ts +++ b/packages/apps/job-launcher/server/src/common/utils/signature.spec.ts @@ -1,6 +1,6 @@ import { MOCK_ADDRESS, MOCK_PRIVATE_KEY } from '../../../test/constants'; import { ErrorSignature } from '../constants/errors'; -import { ConflictError } from '../errors'; +import { ConflictError, ValidationError } from '../errors'; import { recoverSigner, signMessage, verifySignature } from './signature'; jest.doMock('ethers', () => { @@ -38,7 +38,7 @@ describe('Signature utility', () => { expect(() => { verifySignature(message, invalidSignature, [invalidAddress]); - }).toThrow(new ConflictError(ErrorSignature.SignatureNotVerified)); + }).toThrow(new ValidationError(ErrorSignature.SignatureNotVerified)); }); it('should throw conflict exception for invalid signature', () => { @@ -47,7 +47,7 @@ describe('Signature utility', () => { expect(() => { verifySignature(message, invalidSignature, [MOCK_ADDRESS]); - }).toThrow(new ConflictError(ErrorSignature.InvalidSignature)); + }).toThrow(new ValidationError(ErrorSignature.InvalidSignature)); }); }); @@ -67,7 +67,7 @@ describe('Signature utility', () => { expect(() => { recoverSigner(message, invalidSignature); - }).toThrow(new ConflictError(ErrorSignature.InvalidSignature)); + }).toThrow(new ValidationError(ErrorSignature.InvalidSignature)); }); it('should stringify message object if it is not already a string', async () => { diff --git a/packages/apps/job-launcher/server/src/common/utils/storage.ts b/packages/apps/job-launcher/server/src/common/utils/storage.ts index 3c83af0010..2bcb9ae72a 100644 --- a/packages/apps/job-launcher/server/src/common/utils/storage.ts +++ b/packages/apps/job-launcher/server/src/common/utils/storage.ts @@ -12,6 +12,18 @@ import { } from './gcstorage'; import { formatAxiosError } from './http'; +function parseXml(xml: string): Promise { + return new Promise((resolve, reject) => { + parseString(xml, (err: any, result: any) => { + if (err) { + reject(err); + return; + } + resolve(result); + }); + }); +} + export function generateBucketUrl( storageData: StorageDataDto, jobType: JobRequestType, @@ -75,77 +87,75 @@ function isRegion(value: string): value is AWSRegions { } export async function listObjectsInBucket(url: URL): Promise { - return new Promise(async (resolve, reject) => { - try { - let objects: string[] = []; - let nextContinuationToken: string | undefined; - const baseUrl = `${url.protocol}//${url.host}`; - do { - let requestUrl = `${baseUrl}`; - if (['localhost', 'minio'].includes(url.hostname)) { - const pathname = url.pathname.replace(/^\//, ''); - const [bucketName, ...folderParts] = pathname.split('/'); - - requestUrl += `/${bucketName}?list-type=2`; - - const folderPrefix = folderParts.join('/'); - if (folderPrefix) { - requestUrl += `&prefix=${folderPrefix}`; - } - } else if (GCS_HTTP_REGEX_SUBDOMAIN.test(url.href)) { - requestUrl += `?list-type=2&prefix=${url.pathname.replace(/^\//, '')}`; - } else if (GCS_HTTP_REGEX_PATH_BASED.test(url.href)) { - const pathname = url.pathname.replace(/^\//, ''); - const [bucketName, ...folderParts] = pathname.split('/'); - requestUrl += `/${bucketName}?list-type=2`; - - const folderPrefix = folderParts.join('/'); - if (folderPrefix) { - requestUrl += `&prefix=${folderPrefix}`; - } - } else { - requestUrl += `?list-type=2`; - - if (url.pathname) { - requestUrl += `&prefix=${url.pathname.replace(/^\//, '')}`; - } + try { + let objects: string[] = []; + let nextContinuationToken: string | undefined; + const baseUrl = `${url.protocol}//${url.host}`; + + do { + let requestUrl = `${baseUrl}`; + if (['localhost', 'minio'].includes(url.hostname)) { + const pathname = url.pathname.replace(/^\//, ''); + const [bucketName, ...folderParts] = pathname.split('/'); + + requestUrl += `/${bucketName}?list-type=2`; + + const folderPrefix = folderParts.join('/'); + if (folderPrefix) { + requestUrl += `&prefix=${folderPrefix}`; } + } else if (GCS_HTTP_REGEX_SUBDOMAIN.test(url.href)) { + requestUrl += `?list-type=2&prefix=${url.pathname.replace(/^\//, '')}`; + } else if (GCS_HTTP_REGEX_PATH_BASED.test(url.href)) { + const pathname = url.pathname.replace(/^\//, ''); + const [bucketName, ...folderParts] = pathname.split('/'); + requestUrl += `/${bucketName}?list-type=2`; - if (nextContinuationToken) { - requestUrl += `&continuation-token=${encodeURIComponent( - nextContinuationToken, - )}`; + const folderPrefix = folderParts.join('/'); + if (folderPrefix) { + requestUrl += `&prefix=${folderPrefix}`; } + } else { + requestUrl += `?list-type=2`; - const response = await axios.get(requestUrl); - - if (response.status === HttpStatus.OK && response.data) { - parseString(response.data, (err: any, result: any) => { - if (err) { - reject(err); - } - nextContinuationToken = result.ListBucketResult - .NextContinuationToken - ? result.ListBucketResult.NextContinuationToken[0] - : undefined; - - const objectKeys = result.ListBucketResult.Contents?.map( - (item: any) => item.Key, - ); - - objects = objects.concat(objectKeys?.flat()); - }); - } else { - reject(ErrorBucket.FailedToFetchBucketContents); + if (url.pathname) { + requestUrl += `&prefix=${url.pathname.replace(/^\//, '')}`; } - } while (nextContinuationToken); - resolve(objects); - } catch (err) { - let formatted = err; - if (err instanceof AxiosError) { - formatted = formatAxiosError(err); } - reject(formatted); + + if (nextContinuationToken) { + requestUrl += `&continuation-token=${encodeURIComponent( + nextContinuationToken, + )}`; + } + + const response = await axios.get(requestUrl); + + if (response.status !== HttpStatus.OK || !response.data) { + throw ErrorBucket.FailedToFetchBucketContents; + } + + const parsed = await parseXml(response.data); + + nextContinuationToken = parsed.ListBucketResult?.NextContinuationToken + ? parsed.ListBucketResult.NextContinuationToken[0] + : undefined; + + const objectKeys = parsed.ListBucketResult?.Contents?.map( + (item: any) => item.Key, + ); + + if (objectKeys) { + objects = objects.concat(objectKeys.flat()); + } + } while (nextContinuationToken); + + return objects; + } catch (err) { + let formatted = err; + if (err instanceof AxiosError) { + formatted = formatAxiosError(err); } - }); + throw formatted; + } } diff --git a/packages/apps/job-launcher/server/src/database/migrations/1763628908882-removeUnusedTypes.ts b/packages/apps/job-launcher/server/src/database/migrations/1763628908882-removeUnusedTypes.ts new file mode 100644 index 0000000000..d7e583e960 --- /dev/null +++ b/packages/apps/job-launcher/server/src/database/migrations/1763628908882-removeUnusedTypes.ts @@ -0,0 +1,113 @@ +import { MigrationInterface, QueryRunner } from 'typeorm'; + +export class RemoveUnusedTypes1763628908882 implements MigrationInterface { + name = 'RemoveUnusedTypes1763628908882'; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query(` + DELETE FROM "hmt"."cron-jobs" + WHERE "cron_job_type" IN ('setup-escrow', 'fund-escrow') + `); + await queryRunner.query(` + ALTER TYPE "hmt"."jobs_status_enum" + RENAME TO "jobs_status_enum_old" + `); + await queryRunner.query(` + CREATE TYPE "hmt"."jobs_status_enum" AS ENUM( + 'paid', + 'under_moderation', + 'moderation_passed', + 'possible_abuse_in_review', + 'launched', + 'partial', + 'completed', + 'failed', + 'to_cancel', + 'canceling', + 'canceled' + ) + `); + await queryRunner.query(` + ALTER TABLE "hmt"."jobs" + ALTER COLUMN "status" TYPE "hmt"."jobs_status_enum" USING "status"::"text"::"hmt"."jobs_status_enum" + `); + await queryRunner.query(` + DROP TYPE "hmt"."jobs_status_enum_old" + `); + await queryRunner.query(` + ALTER TYPE "hmt"."cron-jobs_cron_job_type_enum" + RENAME TO "cron-jobs_cron_job_type_enum_old" + `); + await queryRunner.query(` + CREATE TYPE "hmt"."cron-jobs_cron_job_type_enum" AS ENUM( + 'content-moderation', + 'create-escrow', + 'cancel-escrow', + 'process-pending-webhook', + 'sync-job-statuses', + 'abuse' + ) + `); + await queryRunner.query(` + ALTER TABLE "hmt"."cron-jobs" + ALTER COLUMN "cron_job_type" TYPE "hmt"."cron-jobs_cron_job_type_enum" USING "cron_job_type"::"text"::"hmt"."cron-jobs_cron_job_type_enum" + `); + await queryRunner.query(` + DROP TYPE "hmt"."cron-jobs_cron_job_type_enum_old" + `); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query(` + CREATE TYPE "hmt"."cron-jobs_cron_job_type_enum_old" AS ENUM( + 'abuse', + 'cancel-escrow', + 'content-moderation', + 'create-escrow', + 'fund-escrow', + 'process-pending-webhook', + 'setup-escrow', + 'sync-job-statuses' + ) + `); + await queryRunner.query(` + ALTER TABLE "hmt"."cron-jobs" + ALTER COLUMN "cron_job_type" TYPE "hmt"."cron-jobs_cron_job_type_enum_old" USING "cron_job_type"::"text"::"hmt"."cron-jobs_cron_job_type_enum_old" + `); + await queryRunner.query(` + DROP TYPE "hmt"."cron-jobs_cron_job_type_enum" + `); + await queryRunner.query(` + ALTER TYPE "hmt"."cron-jobs_cron_job_type_enum_old" + RENAME TO "cron-jobs_cron_job_type_enum" + `); + await queryRunner.query(` + CREATE TYPE "hmt"."jobs_status_enum_old" AS ENUM( + 'canceled', + 'canceling', + 'completed', + 'created', + 'failed', + 'funded', + 'launched', + 'moderation_passed', + 'paid', + 'partial', + 'possible_abuse_in_review', + 'to_cancel', + 'under_moderation' + ) + `); + await queryRunner.query(` + ALTER TABLE "hmt"."jobs" + ALTER COLUMN "status" TYPE "hmt"."jobs_status_enum_old" USING "status"::"text"::"hmt"."jobs_status_enum_old" + `); + await queryRunner.query(` + DROP TYPE "hmt"."jobs_status_enum" + `); + await queryRunner.query(` + ALTER TYPE "hmt"."jobs_status_enum_old" + RENAME TO "jobs_status_enum" + `); + } +} diff --git a/packages/apps/job-launcher/server/src/modules/auth/auth.service.ts b/packages/apps/job-launcher/server/src/modules/auth/auth.service.ts index 25315193cc..f3d3270b4d 100644 --- a/packages/apps/job-launcher/server/src/modules/auth/auth.service.ts +++ b/packages/apps/job-launcher/server/src/modules/auth/auth.service.ts @@ -1,4 +1,3 @@ -/* eslint-disable @typescript-eslint/no-non-null-assertion */ import { Injectable, Logger } from '@nestjs/common'; import { JwtService } from '@nestjs/jwt'; diff --git a/packages/apps/job-launcher/server/src/modules/cron-job/cron-job.service.spec.ts b/packages/apps/job-launcher/server/src/modules/cron-job/cron-job.service.spec.ts index e7121a703a..b84aedfc8a 100644 --- a/packages/apps/job-launcher/server/src/modules/cron-job/cron-job.service.spec.ts +++ b/packages/apps/job-launcher/server/src/modules/cron-job/cron-job.service.spec.ts @@ -16,7 +16,6 @@ import { HttpService } from '@nestjs/axios'; import { ConfigService } from '@nestjs/config'; import { Test, TestingModule } from '@nestjs/testing'; import { ethers } from 'ethers'; -import { DeepPartial } from 'typeorm'; import { MOCK_ADDRESS, MOCK_EXCHANGE_ORACLE_ADDRESS, @@ -48,7 +47,6 @@ import { GCVContentModerationService } from '../content-moderation/gcv-content-m import { JobEntity } from '../job/job.entity'; import { JobRepository } from '../job/job.repository'; import { JobService } from '../job/job.service'; -import { CvatManifestDto } from '../manifest/manifest.dto'; import { ManifestService } from '../manifest/manifest.service'; import { PaymentRepository } from '../payment/payment.repository'; import { PaymentService } from '../payment/payment.service'; @@ -438,246 +436,6 @@ describe('CronJobService', () => { }); }); - describe('setupEscrowCronJob', () => { - let setupEscrowMock: any; - let cronJobEntityMock: Partial; - let jobEntityMock1: Partial, jobEntityMock2: Partial; - - beforeEach(() => { - cronJobEntityMock = { - cronJobType: CronJobType.SetupEscrow, - createdAt: new Date(), - }; - - jobEntityMock1 = { - status: JobStatus.CREATED, - fundAmount: 100, - userId: 1, - id: 1, - manifestUrl: MOCK_FILE_URL, - manifestHash: MOCK_FILE_HASH, - escrowAddress: MOCK_ADDRESS, - chainId: ChainId.LOCALHOST, - retriesCount: 1, - }; - - jobEntityMock2 = { - status: JobStatus.CREATED, - fundAmount: 100, - userId: 1, - id: 1, - manifestUrl: MOCK_FILE_URL, - manifestHash: MOCK_FILE_HASH, - escrowAddress: MOCK_ADDRESS, - chainId: ChainId.LOCALHOST, - retriesCount: 1, - }; - - jest - .spyOn(jobRepository, 'findByStatus') - .mockResolvedValue([jobEntityMock1 as any, jobEntityMock2 as any]); - - setupEscrowMock = jest.spyOn(jobService, 'setupEscrow'); - setupEscrowMock.mockResolvedValue(true); - - jest.spyOn(service, 'isCronJobRunning').mockResolvedValue(false); - - jest.spyOn(repository, 'findOneByType').mockResolvedValue(null); - jest - .spyOn(repository, 'createUnique') - .mockResolvedValue(cronJobEntityMock as any); - }); - - afterEach(() => { - jest.restoreAllMocks(); - }); - - it('should not run if the cron job is already running', async () => { - jest.spyOn(service, 'isCronJobRunning').mockResolvedValueOnce(true); - - await service.setupEscrowCronJob(); - - expect(setupEscrowMock).not.toHaveBeenCalled(); - }); - - it('should create cron job entity on database to lock', async () => { - jest - .spyOn(service, 'startCronJob') - .mockResolvedValueOnce(cronJobEntityMock as any); - - await service.setupEscrowCronJob(); - - expect(service.startCronJob).toHaveBeenCalledWith( - CronJobType.SetupEscrow, - ); - }); - - it('should run setupEscrow for all of the jobs with status LAUNCHING', async () => { - await service.setupEscrowCronJob(); - - expect(setupEscrowMock).toHaveBeenCalledTimes(2); - }); - - it('should increase retriesCount by 1, if the job setup fails', async () => { - setupEscrowMock.mockRejectedValueOnce(new Error('setup failed')); - - await service.setupEscrowCronJob(); - - expect(setupEscrowMock).toHaveBeenCalledTimes(2); - expect(jobEntityMock1.retriesCount).toBe(2); - expect(jobEntityMock2.retriesCount).toBe(1); - }); - - it('should mark job as failed if the job setup fails more than max retries count', async () => { - setupEscrowMock.mockRejectedValueOnce(new Error('setup failed')); - jobEntityMock1.retriesCount = MOCK_MAX_RETRY_COUNT; - - await service.setupEscrowCronJob(); - - expect(setupEscrowMock).toHaveBeenCalledTimes(2); - expect(jobEntityMock1.status).toBe(JobStatus.FAILED); - expect(jobEntityMock2.status).toBe(JobStatus.CREATED); - }); - - it('should complete the cron job entity on database to unlock', async () => { - jest - .spyOn(service, 'completeCronJob') - .mockResolvedValueOnce(cronJobEntityMock as any); - - await service.setupEscrowCronJob(); - - expect(service.completeCronJob).toHaveBeenCalledWith({ - cronJobType: CronJobType.SetupEscrow, - createdAt: expect.any(Date), - }); - }); - }); - - describe('fundEscrowCronJob', () => { - let fundEscrowMock: any; - let cronJobEntityMock: Partial; - let jobEntityMock1: Partial, jobEntityMock2: Partial; - - beforeEach(() => { - cronJobEntityMock = { - cronJobType: CronJobType.FundEscrow, - createdAt: new Date(), - }; - - jobEntityMock1 = { - status: JobStatus.FUNDED, - fundAmount: 100, - userId: 1, - id: 1, - manifestUrl: MOCK_FILE_URL, - manifestHash: MOCK_FILE_HASH, - escrowAddress: MOCK_ADDRESS, - chainId: ChainId.LOCALHOST, - retriesCount: 1, - }; - - jobEntityMock2 = { - status: JobStatus.FUNDED, - fundAmount: 100, - userId: 1, - id: 1, - manifestUrl: MOCK_FILE_URL, - manifestHash: MOCK_FILE_HASH, - escrowAddress: MOCK_ADDRESS, - chainId: ChainId.LOCALHOST, - retriesCount: 1, - }; - - jest - .spyOn(jobRepository, 'findByStatus') - .mockResolvedValue([jobEntityMock1 as any, jobEntityMock2 as any]); - - fundEscrowMock = jest.spyOn(jobService, 'fundEscrow'); - fundEscrowMock.mockResolvedValue(true); - - jest.spyOn(service, 'isCronJobRunning').mockResolvedValue(false); - - const cvatManifestMock: DeepPartial = { - data: { - data_url: MOCK_FILE_URL, - }, - annotation: { - type: CvatJobType.IMAGE_POINTS, - }, - }; - jest - .spyOn(storageService, 'downloadJsonLikeData') - .mockResolvedValue(cvatManifestMock); - - jest.spyOn(repository, 'findOneByType').mockResolvedValue(null); - jest - .spyOn(repository, 'createUnique') - .mockResolvedValue(cronJobEntityMock as any); - }); - - afterEach(() => { - jest.restoreAllMocks(); - }); - - it('should not run if the cron job is already running', async () => { - jest.spyOn(service, 'isCronJobRunning').mockResolvedValueOnce(true); - - await service.fundEscrowCronJob(); - - expect(fundEscrowMock).not.toHaveBeenCalled(); - }); - - it('should create cron job entity on database to lock', async () => { - jest - .spyOn(service, 'startCronJob') - .mockResolvedValueOnce(cronJobEntityMock as any); - - await service.fundEscrowCronJob(); - - expect(service.startCronJob).toHaveBeenCalledWith(CronJobType.FundEscrow); - }); - - it('should run fundEscrow for all of the jobs with status FUNDING, and trigger webhook', async () => { - await service.fundEscrowCronJob(); - - expect(fundEscrowMock).toHaveBeenCalledTimes(2); - }); - - it('should increase retriesCount by 1, if the job fund fails', async () => { - fundEscrowMock.mockRejectedValueOnce(new Error('fund failed')); - - await service.fundEscrowCronJob(); - - expect(fundEscrowMock).toHaveBeenCalledTimes(2); - expect(jobEntityMock1.retriesCount).toBe(2); - expect(jobEntityMock2.retriesCount).toBe(1); - }); - - it('should mark job as failed if the job fund fails more than max retries count', async () => { - fundEscrowMock.mockRejectedValueOnce(new Error('fund failed')); - jobEntityMock1.retriesCount = MOCK_MAX_RETRY_COUNT; - - await service.fundEscrowCronJob(); - - expect(fundEscrowMock).toHaveBeenCalledTimes(2); - expect(jobEntityMock1.status).toBe(JobStatus.FAILED); - expect(jobEntityMock2.status).toBe(JobStatus.FUNDED); - }); - - it('should complete the cron job entity on database to unlock', async () => { - jest - .spyOn(service, 'completeCronJob') - .mockResolvedValueOnce(cronJobEntityMock as any); - - await service.fundEscrowCronJob(); - - expect(service.completeCronJob).toHaveBeenCalledWith({ - cronJobType: CronJobType.FundEscrow, - createdAt: expect.any(Date), - }); - }); - }); - describe('cancelCronJob', () => { let findJobMock: any, cronJobEntityMock: Partial, diff --git a/packages/apps/job-launcher/server/src/modules/cron-job/cron-job.service.ts b/packages/apps/job-launcher/server/src/modules/cron-job/cron-job.service.ts index 2a0b4c4e24..37022526eb 100644 --- a/packages/apps/job-launcher/server/src/modules/cron-job/cron-job.service.ts +++ b/packages/apps/job-launcher/server/src/modules/cron-job/cron-job.service.ts @@ -142,7 +142,7 @@ export class CronJobService { try { await this.jobService.createEscrow(jobEntity); } catch (error) { - this.logger.error('Error in moderateContentCronJob', { + this.logger.error('Error in createEscrowCronJob', { jobId: jobEntity.id, error, }); @@ -160,86 +160,6 @@ export class CronJobService { await this.completeCronJob(cronJob); } - @Cron('1-59/2 * * * *') - public async setupEscrowCronJob() { - const isCronJobRunning = await this.isCronJobRunning( - CronJobType.SetupEscrow, - ); - - if (isCronJobRunning) { - return; - } - - this.logger.debug('Setup escrow START'); - const cronJob = await this.startCronJob(CronJobType.SetupEscrow); - - try { - const jobEntities = await this.jobRepository.findByStatus( - JobStatus.FUNDED, - ); - - for (const jobEntity of jobEntities) { - try { - await this.jobService.setupEscrow(jobEntity); - } catch (error) { - this.logger.error('Error setting up escrow', { - jobId: jobEntity.id, - error, - }); - await this.jobService.handleProcessJobFailure( - jobEntity, - ErrorEscrow.NotSetup, - ); - } - } - } catch (error) { - this.logger.error('Error in setupEscrow cron job', error); - } - - this.logger.debug('Setup escrow STOP'); - await this.completeCronJob(cronJob); - } - - @Cron('*/2 * * * *') - public async fundEscrowCronJob() { - const isCronJobRunning = await this.isCronJobRunning( - CronJobType.FundEscrow, - ); - - if (isCronJobRunning) { - return; - } - - this.logger.debug('Fund escrow START'); - const cronJob = await this.startCronJob(CronJobType.FundEscrow); - - try { - const jobEntities = await this.jobRepository.findByStatus( - JobStatus.CREATED, - ); - - for (const jobEntity of jobEntities) { - try { - await this.jobService.fundEscrow(jobEntity); - } catch (error) { - this.logger.error('Error funding escrow', { - jobId: jobEntity.id, - error, - }); - await this.jobService.handleProcessJobFailure( - jobEntity, - ErrorEscrow.NotFunded, - ); - } - } - } catch (error) { - this.logger.error('Error in fundEscrow cron job', error); - } - - this.logger.debug('Fund escrow STOP'); - await this.completeCronJob(cronJob); - } - @Cron('*/2 * * * *') public async cancelCronJob() { const isCronJobRunning = await this.isCronJobRunning( @@ -471,7 +391,7 @@ export class CronJobService { chainId: network.chainId, statuses, from, - launcher: this.web3Service.getOperatorAddress(), + launcher: await this.web3Service.getOperatorAddress(), first: 100, skip, }); diff --git a/packages/apps/job-launcher/server/src/modules/job/job.repository.ts b/packages/apps/job-launcher/server/src/modules/job/job.repository.ts index 8c3828a48b..31a644e310 100644 --- a/packages/apps/job-launcher/server/src/modules/job/job.repository.ts +++ b/packages/apps/job-launcher/server/src/modules/job/job.repository.ts @@ -113,8 +113,6 @@ export class JobRepository extends BaseRepository { JobStatus.UNDER_MODERATION, JobStatus.MODERATION_PASSED, JobStatus.POSSIBLE_ABUSE_IN_REVIEW, - JobStatus.CREATED, - JobStatus.FUNDED, ]; break; case JobStatusFilter.CANCELED: diff --git a/packages/apps/job-launcher/server/src/modules/job/job.service.spec.ts b/packages/apps/job-launcher/server/src/modules/job/job.service.spec.ts index f829d0021d..b0c635ffd0 100644 --- a/packages/apps/job-launcher/server/src/modules/job/job.service.spec.ts +++ b/packages/apps/job-launcher/server/src/modules/job/job.service.spec.ts @@ -1,4 +1,3 @@ -/* eslint-disable @typescript-eslint/no-non-null-assertion */ jest.mock('@human-protocol/sdk'); import { faker } from '@faker-js/faker'; @@ -13,7 +12,7 @@ import { NETWORKS, } from '@human-protocol/sdk'; import { Test } from '@nestjs/testing'; -import { ethers, Wallet, ZeroAddress } from 'ethers'; +import { ethers, ZeroAddress } from 'ethers'; import { createSignerMock } from '../../../test/fixtures/web3'; import { ServerConfigService } from '../../common/config/server-config.service'; import { ErrorEscrow, ErrorJob } from '../../common/constants/errors'; @@ -28,11 +27,7 @@ import { JobStatusFilter, } from '../../common/enums/job'; import { PaymentCurrency, PaymentType } from '../../common/enums/payment'; -import { - EventType, - OracleType, - WebhookStatus, -} from '../../common/enums/webhook'; +import { EventType, OracleType } from '../../common/enums/webhook'; import { ConflictError, NotFoundError, @@ -828,181 +823,126 @@ describe('JobService', () => { escrowAddress: null, }); - const escrowAddress = faker.finance.ethereumAddress(); - mockedEscrowClient.build.mockResolvedValueOnce({ - createEscrow: jest.fn().mockResolvedValueOnce(escrowAddress), - } as unknown as EscrowClient); - - mockWeb3Service.calculateGasPrice.mockResolvedValueOnce(1n); - - const result = await jobService.createEscrow(jobEntity); + const signer = createSignerMock(); + mockWeb3Service.getSigner.mockReturnValueOnce(signer); - expect(mockWeb3Service.getSigner).toHaveBeenCalledWith(jobEntity.chainId); - expect(mockWeb3Service.calculateGasPrice).toHaveBeenCalledWith( - jobEntity.chainId, - ); - expect(result.status).toBe(JobStatus.CREATED); - expect(result.escrowAddress).toBe(escrowAddress); - expect(mockJobRepository.updateOne).toHaveBeenCalledWith({ - ...jobEntity, - status: JobStatus.CREATED, - escrowAddress, - }); - }); - - it('should throw if escrow address is not returned', async () => { - const jobEntity = createJobEntity({ - status: JobStatus.MODERATION_PASSED, - token: EscrowFundToken.HMT, - escrowAddress: null, - }); + const getOracleFeeSpy = jest + .spyOn(jobService as any, 'getOracleFee') + .mockResolvedValue(1n); + const escrowAddress = faker.finance.ethereumAddress(); + const createFundAndSetupEscrowMock = jest + .fn() + .mockResolvedValueOnce(escrowAddress); mockedEscrowClient.build.mockResolvedValueOnce({ - createEscrow: jest.fn().mockResolvedValueOnce(undefined), + createFundAndSetupEscrow: createFundAndSetupEscrowMock, } as unknown as EscrowClient); + mockWeb3Service.ensureEscrowAllowance.mockResolvedValueOnce(undefined); mockWeb3Service.calculateGasPrice.mockResolvedValueOnce(1n); - await expect(jobService.createEscrow(jobEntity)).rejects.toThrow( - new ConflictError(ErrorEscrow.NotCreated), + const token = (TOKEN_ADDRESSES[jobEntity.chainId as ChainId] ?? {})[ + jobEntity.token as EscrowFundToken + ]!; + const expectedWeiAmount = ethers.parseUnits( + jobEntity.fundAmount.toString(), + token.decimals, ); - }); - }); - - describe('setupEscrow', () => { - it('should setup escrow and update job status', async () => { - const jobEntity = createJobEntity({ - status: JobStatus.FUNDED, - }); - - const escrowClientMock = { - setup: jest.fn().mockResolvedValueOnce(undefined), - }; - mockedEscrowClient.build.mockResolvedValueOnce( - escrowClientMock as unknown as EscrowClient, - ); - - mockWeb3Service.calculateGasPrice.mockResolvedValueOnce(1n); - mockedKVStoreUtils.get.mockImplementation(async (_chainId, address) => { - switch (address) { - case jobEntity.reputationOracle: - return '1'; - case jobEntity.recordingOracle: - return '2'; - case jobEntity.exchangeOracle: - return '3'; - default: - return ''; - } - }); - const result = await jobService.setupEscrow(jobEntity); + const result = await jobService.createEscrow(jobEntity); expect(mockWeb3Service.getSigner).toHaveBeenCalledWith(jobEntity.chainId); + expect(mockedEscrowClient.build).toHaveBeenCalledWith(signer); + expect(mockWeb3Service.ensureEscrowAllowance).toHaveBeenCalledWith( + jobEntity.chainId, + token, + expectedWeiAmount, + NETWORKS[jobEntity.chainId as ChainId]!.factoryAddress, + ); expect(mockWeb3Service.calculateGasPrice).toHaveBeenCalledWith( jobEntity.chainId, ); - expect(escrowClientMock.setup).toHaveBeenCalledWith( - jobEntity.escrowAddress, - { + expect(createFundAndSetupEscrowMock).toHaveBeenCalledWith( + token.address, + expectedWeiAmount, + jobEntity.userId.toString(), + expect.objectContaining({ + recordingOracle: jobEntity.recordingOracle, + recordingOracleFee: 1n, reputationOracle: jobEntity.reputationOracle, reputationOracleFee: 1n, - recordingOracle: jobEntity.recordingOracle, - recordingOracleFee: 2n, exchangeOracle: jobEntity.exchangeOracle, - exchangeOracleFee: 3n, + exchangeOracleFee: 1n, manifest: jobEntity.manifestUrl, manifestHash: jobEntity.manifestHash, - }, + }), { gasPrice: 1n }, ); + expect(result.status).toBe(JobStatus.LAUNCHED); + expect(result.escrowAddress).toBe(escrowAddress); expect(mockJobRepository.updateOne).toHaveBeenCalledWith({ ...jobEntity, status: JobStatus.LAUNCHED, + escrowAddress, }); - expect(result.status).toBe(JobStatus.LAUNCHED); - expect(mockWebhookRepository.createUnique).toHaveBeenCalledWith({ - escrowAddress: jobEntity.escrowAddress, - chainId: jobEntity.chainId, - eventType: EventType.ESCROW_CREATED, - oracleType: jobEntity.requestType, - oracleAddress: jobEntity.exchangeOracle, - hasSignature: true, - status: WebhookStatus.PENDING, - retriesCount: 0, - waitUntil: expect.any(Date), - }); + + getOracleFeeSpy.mockRestore(); }); - it('should throw if escrowClient setup fails', async () => { + it('should throw if escrow address is not returned', async () => { const jobEntity = createJobEntity({ - status: JobStatus.FUNDED, + status: JobStatus.MODERATION_PASSED, + token: EscrowFundToken.HMT, + escrowAddress: null, }); - const signer = createSignerMock() as unknown as Wallet; + const signer = createSignerMock(); mockWeb3Service.getSigner.mockReturnValueOnce(signer); - const escrowClientMock = { - setup: jest.fn().mockRejectedValueOnce(new Error('Network error')), - }; - mockedEscrowClient.build.mockResolvedValueOnce( - escrowClientMock as unknown as EscrowClient, - ); - - mockWeb3Service.calculateGasPrice.mockResolvedValueOnce(1n); - mockedKVStoreUtils.get.mockResolvedValueOnce('1'); - - await expect(jobService.setupEscrow(jobEntity)).rejects.toThrow( - 'Network error', - ); - }); - }); + const getOracleFeeSpy = jest + .spyOn(jobService as any, 'getOracleFee') + .mockResolvedValue(1n); - describe('fundEscrow', () => { - it('should fund escrow with the correct amount and update status', async () => { - const jobEntityMock = createJobEntity({ - status: JobStatus.PAID, - token: EscrowFundToken.HMT, - }); - mockedKVStoreUtils.get.mockResolvedValueOnce('1'); + const createFundAndSetupEscrowMock = jest + .fn() + .mockResolvedValueOnce(undefined); mockedEscrowClient.build.mockResolvedValueOnce({ - fund: jest.fn().mockResolvedValueOnce(undefined), + createFundAndSetupEscrow: createFundAndSetupEscrowMock, } as unknown as EscrowClient); + mockWeb3Service.ensureEscrowAllowance.mockResolvedValueOnce(undefined); mockWeb3Service.calculateGasPrice.mockResolvedValueOnce(1n); - await jobService.fundEscrow(jobEntityMock); - - expect(mockWeb3Service.getSigner).toHaveBeenCalledWith( - jobEntityMock.chainId, + const token = (TOKEN_ADDRESSES[jobEntity.chainId as ChainId] ?? {})[ + jobEntity.token as EscrowFundToken + ]!; + const expectedWeiAmount = ethers.parseUnits( + jobEntity.fundAmount.toString(), + token.decimals, ); - expect(mockWeb3Service.calculateGasPrice).toHaveBeenCalledWith( - jobEntityMock.chainId, - ); - expect(mockJobRepository.updateOne).toHaveBeenCalledWith({ - ...jobEntityMock, - status: JobStatus.FUNDED, - }); - }); - - it('should throw if escrowClient fund fails', async () => { - const jobEntityMock = createJobEntity({ - status: JobStatus.PAID, - token: EscrowFundToken.HMT, - }); + const expectedFactoryAddress = + NETWORKS[jobEntity.chainId as ChainId]!.factoryAddress; - mockWeb3Service.getSigner.mockReturnValueOnce( - createSignerMock() as unknown as Wallet, + await expect(jobService.createEscrow(jobEntity)).rejects.toThrow( + new ConflictError(ErrorEscrow.NotCreated), ); - mockedEscrowClient.build.mockResolvedValueOnce({ - fund: jest.fn().mockRejectedValueOnce(new Error('Network error')), - } as unknown as EscrowClient); - mockWeb3Service.calculateGasPrice.mockResolvedValueOnce(1n); - - await expect(jobService.fundEscrow(jobEntityMock)).rejects.toThrow( - 'Network error', + expect(mockWeb3Service.ensureEscrowAllowance).toHaveBeenCalledWith( + jobEntity.chainId, + token, + expectedWeiAmount, + expectedFactoryAddress, + ); + expect(createFundAndSetupEscrowMock).toHaveBeenCalledWith( + token.address, + expectedWeiAmount, + jobEntity.userId.toString(), + expect.any(Object), + { gasPrice: 1n }, ); + expect(mockJobRepository.updateOne).not.toHaveBeenCalled(); + + getOracleFeeSpy.mockRestore(); }); }); @@ -1043,9 +983,7 @@ describe('JobService', () => { jobEntityMock.userId, jobEntityMock.id, ), - ).rejects.toThrow( - new ValidationError(ErrorJob.InvalidStatusCancellation), - ); + ).rejects.toThrow(new ConflictError(ErrorJob.InvalidStatusCancellation)); }); }); @@ -1094,9 +1032,7 @@ describe('JobService', () => { ChainId.POLYGON_AMOY, jobEntityMock.escrowAddress!, ), - ).rejects.toThrow( - new ValidationError(ErrorJob.InvalidStatusCancellation), - ); + ).rejects.toThrow(new ConflictError(ErrorJob.InvalidStatusCancellation)); expect(mockWeb3Service.validateChainId).toHaveBeenCalledWith( ChainId.POLYGON_AMOY, ); @@ -1506,7 +1442,7 @@ describe('JobService', () => { escrowAddress: '0x', eventData: { reason: faker.lorem.sentence() }, }), - ).rejects.toThrow(new ValidationError(ErrorJob.NotLaunched)); + ).rejects.toThrow(new ConflictError(ErrorJob.NotLaunched)); }); it('should throw an error if event data is missing', async () => { @@ -1573,7 +1509,7 @@ describe('JobService', () => { mockJobRepository.findOneByIdAndUserId.mockResolvedValueOnce(jobEntity); mockedEscrowUtils.getEscrow.mockResolvedValueOnce(getEscrowData); mockManifestService.downloadManifest.mockResolvedValueOnce(manifestMock); - const signer = createSignerMock() as unknown as Wallet; + const signer = createSignerMock(); mockWeb3Service.getSigner.mockReturnValueOnce(signer); const result = await jobService.getDetails( @@ -1602,7 +1538,7 @@ describe('JobService', () => { exchangeOracleAddress: jobEntity.exchangeOracle, recordingOracleAddress: jobEntity.recordingOracle, reputationOracleAddress: jobEntity.reputationOracle, - requesterAddress: signer.address, + requesterAddress: await signer.getAddress(), tokenAddress: getEscrowData.token, }, }); @@ -1617,7 +1553,7 @@ describe('JobService', () => { mockJobRepository.findOneByIdAndUserId.mockResolvedValueOnce(jobEntity); mockManifestService.downloadManifest.mockResolvedValueOnce(manifestMock); - const signer = createSignerMock() as unknown as Wallet; + const signer = createSignerMock(); mockWeb3Service.getSigner.mockReturnValueOnce(signer); const result = await jobService.getDetails( @@ -1645,7 +1581,7 @@ describe('JobService', () => { exchangeOracleAddress: ZeroAddress, recordingOracleAddress: ZeroAddress, reputationOracleAddress: ZeroAddress, - requesterAddress: signer.address, + requesterAddress: await signer.getAddress(), tokenAddress: ZeroAddress, }, }); @@ -1805,16 +1741,78 @@ describe('JobService', () => { expect(mockJobRepository.updateOne).toHaveBeenCalledWith(jobEntity); }); - it('should throw ConflictError if no refund is found', async () => { + it('should not create a refund and set status to CANCELED when no refund is found', async () => { const jobEntity = createJobEntity(); mockPaymentService.getJobPayments.mockResolvedValueOnce([]); mockedEscrowUtils.getCancellationRefund.mockResolvedValueOnce( null as any, ); - await expect(jobService.cancelJob(jobEntity)).rejects.toThrow( - new ConflictError(ErrorJob.NoRefundFound), + jest + .spyOn(jobService as any, 'getRefundAmount') + .mockResolvedValueOnce(0n); + + mockJobRepository.updateOne.mockResolvedValueOnce(jobEntity); + + await jobService.cancelJob(jobEntity); + + expect(mockPaymentService.getJobPayments).toHaveBeenCalledWith( + jobEntity.id, + PaymentType.SLASH, + ); + expect(EscrowUtils.getCancellationRefund).toHaveBeenCalledWith( + jobEntity.chainId, + jobEntity.escrowAddress, + ); + expect(mockPaymentService.createRefundPayment).not.toHaveBeenCalled(); + expect(jobEntity.status).toBe(JobStatus.CANCELED); + expect(mockJobRepository.updateOne).toHaveBeenCalledWith(jobEntity); + }); + + it('should create a refund when on-chain refund amount is greater than 0', async () => { + const jobEntity = createJobEntity(); + const tokenDecimals = (TOKEN_ADDRESSES[jobEntity.chainId as ChainId] ?? + {})[jobEntity.token as EscrowFundToken]?.decimals; + + mockPaymentService.getJobPayments.mockResolvedValueOnce([]); + mockedEscrowUtils.getCancellationRefund.mockResolvedValueOnce( + null as any, ); + + const refundAmount = faker.number.float({ + min: 1, + max: 10, + fractionDigits: tokenDecimals, + }); + + // Mock on-chain refund lookup to return a positive amount + jest + .spyOn(jobService as any, 'getRefundAmount') + .mockResolvedValueOnce( + ethers.parseUnits(refundAmount.toString(), tokenDecimals), + ); + + mockPaymentService.createRefundPayment.mockResolvedValueOnce(undefined); + mockJobRepository.updateOne.mockResolvedValueOnce(jobEntity); + + await jobService.cancelJob(jobEntity); + + expect(mockPaymentService.getJobPayments).toHaveBeenCalledWith( + jobEntity.id, + PaymentType.SLASH, + ); + expect(EscrowUtils.getCancellationRefund).toHaveBeenCalledWith( + jobEntity.chainId, + jobEntity.escrowAddress, + ); + expect(mockPaymentService.createRefundPayment).toHaveBeenCalledWith({ + refundAmount: refundAmount, + refundCurrency: jobEntity.token, + userId: jobEntity.userId, + jobId: jobEntity.id, + }); + expect(jobEntity.status).toBe(JobStatus.CANCELED); + expect(mockJobRepository.updateOne).toHaveBeenCalledWith(jobEntity); }); it('should throw ConflictError if refund.amount is empty', async () => { diff --git a/packages/apps/job-launcher/server/src/modules/job/job.service.ts b/packages/apps/job-launcher/server/src/modules/job/job.service.ts index d2b71a603c..a28d3cca0c 100644 --- a/packages/apps/job-launcher/server/src/modules/job/job.service.ts +++ b/packages/apps/job-launcher/server/src/modules/job/job.service.ts @@ -1,9 +1,9 @@ -/* eslint-disable @typescript-eslint/no-non-null-assertion */ import { ChainId, EscrowClient, EscrowStatus, EscrowUtils, + ICancellationRefund, KVStoreKeys, KVStoreUtils, NETWORKS, @@ -68,7 +68,6 @@ import { StorageService } from '../storage/storage.service'; import { UserEntity } from '../user/user.entity'; import { Web3Service } from '../web3/web3.service'; import { WebhookDataDto } from '../webhook/webhook.dto'; -import { WebhookEntity } from '../webhook/webhook.entity'; import { WebhookRepository } from '../webhook/webhook.repository'; import { WhitelistService } from '../whitelist/whitelist.service'; import { @@ -81,6 +80,7 @@ import { } from './job.dto'; import { JobEntity } from './job.entity'; import { JobRepository } from './job.repository'; +import { Escrow, Escrow__factory } from '@human-protocol/core/typechain-types'; @Injectable() export class JobService { @@ -145,7 +145,10 @@ export class JobService { } const feePercentage = Number( - await this.getOracleFee(this.web3Service.getOperatorAddress(), chainId), + await this.getOracleFee( + await this.web3Service.getOperatorAddress(), + chainId, + ), ); const paymentCurrencyRate = await this.rateService.getRate( @@ -311,31 +314,14 @@ export class JobService { const escrowClient = await EscrowClient.build(signer); - const escrowAddress = await escrowClient.createEscrow( - (TOKEN_ADDRESSES[jobEntity.chainId as ChainId] ?? {})[ - jobEntity.token as EscrowFundToken - ]!.address, - jobEntity.userId.toString(), - { - gasPrice: await this.web3Service.calculateGasPrice(jobEntity.chainId), - }, - ); - - if (!escrowAddress) { - throw new ConflictError(ErrorEscrow.NotCreated); - } - - jobEntity.status = JobStatus.CREATED; - jobEntity.escrowAddress = escrowAddress; - await this.jobRepository.updateOne(jobEntity); - - return jobEntity; - } - - public async setupEscrow(jobEntity: JobEntity): Promise { - const signer = this.web3Service.getSigner(jobEntity.chainId); + const token = (TOKEN_ADDRESSES[jobEntity.chainId as ChainId] ?? {})[ + jobEntity.token as EscrowFundToken + ]!; - const escrowClient = await EscrowClient.build(signer); + const weiAmount = ethers.parseUnits( + jobEntity.fundAmount.toString(), + token.decimals, + ); const escrowConfig = { recordingOracle: jobEntity.recordingOracle, @@ -357,49 +343,34 @@ export class JobService { manifestHash: jobEntity.manifestHash, }; - await escrowClient.setup(jobEntity.escrowAddress!, escrowConfig, { - gasPrice: await this.web3Service.calculateGasPrice(jobEntity.chainId), - }); + await this.web3Service.ensureEscrowAllowance( + jobEntity.chainId, + token, + weiAmount, + NETWORKS[jobEntity.chainId as ChainId]!.factoryAddress, + ); + + const escrowAddress = await escrowClient.createFundAndSetupEscrow( + token.address, + weiAmount, + jobEntity.userId.toString(), + escrowConfig, + { + gasPrice: await this.web3Service.calculateGasPrice(jobEntity.chainId), + }, + ); + + if (!escrowAddress) { + throw new ConflictError(ErrorEscrow.NotCreated); + } jobEntity.status = JobStatus.LAUNCHED; + jobEntity.escrowAddress = escrowAddress; await this.jobRepository.updateOne(jobEntity); - const oracleType = this.getOracleType(jobEntity.requestType); - const webhookEntity = new WebhookEntity(); - Object.assign(webhookEntity, { - escrowAddress: jobEntity.escrowAddress, - chainId: jobEntity.chainId, - eventType: EventType.ESCROW_CREATED, - oracleType: oracleType, - hasSignature: oracleType !== OracleType.HCAPTCHA ? true : false, - oracleAddress: jobEntity.exchangeOracle, - }); - await this.webhookRepository.createUnique(webhookEntity); - return jobEntity; } - public async fundEscrow(jobEntity: JobEntity): Promise { - const signer = this.web3Service.getSigner(jobEntity.chainId); - - const escrowClient = await EscrowClient.build(signer); - - const token = (TOKEN_ADDRESSES[jobEntity.chainId as ChainId] ?? {})[ - jobEntity.token as EscrowFundToken - ]!; - - const weiAmount = ethers.parseUnits( - jobEntity.fundAmount.toString(), - token.decimals, - ); - await escrowClient.fund(jobEntity.escrowAddress!, weiAmount, { - gasPrice: await this.web3Service.calculateGasPrice(jobEntity.chainId), - }); - - jobEntity.status = JobStatus.FUNDED; - return this.jobRepository.updateOne(jobEntity); - } - public async requestToCancelJobById( userId: number, jobId: number, @@ -450,30 +421,13 @@ export class JobService { throw new ConflictError(ErrorJob.InvalidStatusCancellation); } - let status = JobStatus.TO_CANCEL; - switch (jobEntity.status) { - case JobStatus.PAID: - if (await this.isCronJobRunning(CronJobType.CreateEscrow)) { - status = JobStatus.FAILED; - } - break; - case JobStatus.CREATED: - if (await this.isCronJobRunning(CronJobType.FundEscrow)) { - status = JobStatus.FAILED; - } - break; - case JobStatus.FUNDED: - if (await this.isCronJobRunning(CronJobType.SetupEscrow)) { - status = JobStatus.FAILED; - } - break; - } - - if (status === JobStatus.FAILED) { - throw new ConflictError(ErrorJob.CancelWhileProcessing); + if (jobEntity.status === JobStatus.PAID) { + if (await this.isCronJobRunning(CronJobType.CreateEscrow)) { + throw new ConflictError(ErrorJob.CancelWhileProcessing); + } } - jobEntity.status = status; + jobEntity.status = JobStatus.TO_CANCEL; jobEntity.retriesCount = 0; await this.jobRepository.updateOne(jobEntity); @@ -744,7 +698,7 @@ export class JobService { const baseManifestDetails = { chainId, tokenAddress: escrow ? escrow.token : ethers.ZeroAddress, - requesterAddress: signer.address, + requesterAddress: await signer.getAddress(), fundAmount: escrow ? Number( ethers.formatUnits(escrow.totalFundedAmount, fundTokenDecimals), @@ -857,7 +811,9 @@ export class JobService { oracleAddress, KVStoreKeys.fee, ); - } catch {} + } catch { + // Ignore error + } return BigInt(feeValue ? feeValue : 1); } @@ -922,24 +878,95 @@ export class JobService { PaymentType.SLASH, ); if (!slash?.length) { - const refund = await EscrowUtils.getCancellationRefund( - jobEntity.chainId, - jobEntity.escrowAddress!, - ); + let refund: ICancellationRefund | null = null; + try { + refund = await EscrowUtils.getCancellationRefund( + jobEntity.chainId, + jobEntity.escrowAddress!, + ); + } catch { + // Ignore error + } + + let amount = 0n; - if (!refund || !refund.amount) { - throw new ConflictError(ErrorJob.NoRefundFound); + if (!refund) { + //Temp fix + amount = await this.getRefundAmount( + jobEntity.chainId, + jobEntity.escrowAddress!, + token.address, + ); + } else { + if (!refund.amount) { + throw new ConflictError(ErrorJob.NoRefundFound); + } + amount = refund.amount; } - await this.paymentService.createRefundPayment({ - refundAmount: Number(ethers.formatUnits(refund.amount, token.decimals)), - refundCurrency: jobEntity.token, - userId: jobEntity.userId, - jobId: jobEntity.id, - }); + if (amount > 0n) { + await this.paymentService.createRefundPayment({ + refundAmount: Number(ethers.formatUnits(amount, token.decimals)), + refundCurrency: jobEntity.token, + userId: jobEntity.userId, + jobId: jobEntity.id, + }); + } } jobEntity.status = JobStatus.CANCELED; await this.jobRepository.updateOne(jobEntity); } + + public async getRefundAmount( + chainId: ChainId, + escrowAddress: string, + tokenAddress: string, + ): Promise { + const signer = this.web3Service.getSigner(chainId); + const provider = signer.provider!; + const contract: Escrow = Escrow__factory.connect(escrowAddress!, provider); + const fromBlock = 79278120; //This issue started at this block + const toBlock = 'latest'; + const cancelledFilter = contract.filters?.Cancelled?.(); + const cancelledLogs = await contract.queryFilter( + cancelledFilter, + fromBlock, + toBlock, + ); + + for (const log of cancelledLogs) { + const erc20Interface = new ethers.Interface([ + 'event Transfer(address indexed from, address indexed to, uint256 value)', + ]); + + const transferTopic = erc20Interface.getEvent('Transfer')!.topicHash; + const receipt = await provider.getTransactionReceipt(log.transactionHash); + + const transferLogs = receipt!.logs.filter( + (l) => + l.address.toLowerCase() === tokenAddress.toLowerCase() && + l.topics[0] === transferTopic, + ); + for (const tlog of transferLogs) { + const decoded = erc20Interface.decodeEventLog( + 'Transfer', + tlog.data, + tlog.topics, + ); + + const from = decoded.from as string; + const to = decoded.to as string; + const value = decoded.value as bigint; + if ( + from.toLowerCase() === escrowAddress.toLowerCase() && + to.toLowerCase() === signer.address.toLowerCase() + ) { + return value; + } + } + } + + return 0n; + } } diff --git a/packages/apps/job-launcher/server/src/modules/manifest/manifest.service.spec.ts b/packages/apps/job-launcher/server/src/modules/manifest/manifest.service.spec.ts index 9ceb072d16..5f28c6fb82 100644 --- a/packages/apps/job-launcher/server/src/modules/manifest/manifest.service.spec.ts +++ b/packages/apps/job-launcher/server/src/modules/manifest/manifest.service.spec.ts @@ -3,7 +3,6 @@ jest.mock('../../common/utils/storage', () => ({ listObjectsInBucket: jest.fn(), })); -/* eslint-disable @typescript-eslint/no-non-null-assertion */ import { faker } from '@faker-js/faker'; import { createMock } from '@golevelup/ts-jest'; import { Encryption } from '@human-protocol/sdk'; diff --git a/packages/apps/job-launcher/server/src/modules/manifest/manifest.service.ts b/packages/apps/job-launcher/server/src/modules/manifest/manifest.service.ts index 29a56dbf2e..53d73cf339 100644 --- a/packages/apps/job-launcher/server/src/modules/manifest/manifest.service.ts +++ b/packages/apps/job-launcher/server/src/modules/manifest/manifest.service.ts @@ -1,4 +1,3 @@ -/* eslint-disable @typescript-eslint/no-non-null-assertion */ import { ChainId, Encryption, @@ -132,7 +131,7 @@ export class ManifestService { switch (requestType) { case CvatJobType.IMAGE_POLYGONS: case CvatJobType.IMAGE_BOXES: - case CvatJobType.IMAGE_POINTS: + case CvatJobType.IMAGE_POINTS: { const data = await listObjectsInBucket(urls.dataUrl); if (!data || data.length === 0 || !data[0]) throw new ValidationError(ErrorJob.DatasetValidationFailed); @@ -145,8 +144,9 @@ export class ManifestService { await this.checkImageConsistency(gt.images, data); return data.length - gt.images.length; + } - case CvatJobType.IMAGE_BOXES_FROM_POINTS: + case CvatJobType.IMAGE_BOXES_FROM_POINTS: { const points = (await this.storageService.downloadJsonLikeData( urls.pointsUrl!.href, )) as any; @@ -175,8 +175,9 @@ export class ManifestService { }); return points.annotations.length - gtEntries; + } - case CvatJobType.IMAGE_SKELETONS_FROM_BOXES: + case CvatJobType.IMAGE_SKELETONS_FROM_BOXES: { const boxes = (await this.storageService.downloadJsonLikeData( urls.boxesUrl!.href, )) as any; @@ -205,6 +206,7 @@ export class ManifestService { }); return boxes.annotations.length - gtEntries; + } default: throw new ValidationError(ErrorJob.InvalidRequestType); @@ -408,7 +410,7 @@ export class ManifestService { throw new ValidationError(ErrorJob.JobParamsValidationFailed); } - const polygonManifest = { + return { ...commonManifestProperties, request_type: JobCaptchaRequestType.IMAGE_LABEL_AREA_SELECT, request_config: { @@ -427,14 +429,12 @@ export class ManifestService { requester_question_example: jobDto.annotations.exampleImages || [], }; - return polygonManifest; - case JobCaptchaShapeType.POINT: if (!jobDto.annotations.label) { throw new ValidationError(ErrorJob.JobParamsValidationFailed); } - const pointManifest = { + return { ...commonManifestProperties, request_type: JobCaptchaRequestType.IMAGE_LABEL_AREA_SELECT, request_config: { @@ -451,13 +451,12 @@ export class ManifestService { requester_question_example: jobDto.annotations.exampleImages || [], }; - return pointManifest; case JobCaptchaShapeType.BOUNDING_BOX: if (!jobDto.annotations.label) { throw new ValidationError(ErrorJob.JobParamsValidationFailed); } - const boundingBoxManifest = { + return { ...commonManifestProperties, request_type: JobCaptchaRequestType.IMAGE_LABEL_AREA_SELECT, request_config: { @@ -474,13 +473,12 @@ export class ManifestService { requester_question_example: jobDto.annotations.exampleImages || [], }; - return boundingBoxManifest; case JobCaptchaShapeType.IMMO: if (!jobDto.annotations.label) { throw new ValidationError(ErrorJob.JobParamsValidationFailed); } - const immoManifest = { + return { ...commonManifestProperties, request_type: JobCaptchaRequestType.TEXT_FREEE_NTRY, request_config: { @@ -497,8 +495,6 @@ export class ManifestService { taskdata: [], }; - return immoManifest; - default: throw new ValidationError(ErrorJob.HCaptchaInvalidJobType); } @@ -581,7 +577,7 @@ export class ManifestService { if (this.pgpConfigService.encrypt) { const signer = this.web3Service.getSigner(chainId); const publicKeys: string[] = [ - await KVStoreUtils.getPublicKey(chainId, signer.address), + await KVStoreUtils.getPublicKey(chainId, await signer.getAddress()), ]; for (const address of oracleAddresses) { diff --git a/packages/apps/job-launcher/server/src/modules/mutex/mutex-manager.service.ts b/packages/apps/job-launcher/server/src/modules/mutex/mutex-manager.service.ts index 69b9d46302..01afd94933 100644 --- a/packages/apps/job-launcher/server/src/modules/mutex/mutex-manager.service.ts +++ b/packages/apps/job-launcher/server/src/modules/mutex/mutex-manager.service.ts @@ -20,7 +20,7 @@ export class MutexManagerService implements OnModuleDestroy { this.scheduleMutexCleanup(key); } this.scheduleMutexCleanup(key); // Reset timeout on access - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + return this.mutexes.get(key)!; } diff --git a/packages/apps/job-launcher/server/src/modules/payment/payment.service.spec.ts b/packages/apps/job-launcher/server/src/modules/payment/payment.service.spec.ts index 14208d45fc..4967147338 100644 --- a/packages/apps/job-launcher/server/src/modules/payment/payment.service.spec.ts +++ b/packages/apps/job-launcher/server/src/modules/payment/payment.service.spec.ts @@ -3,7 +3,7 @@ jest.mock('../../common/utils/signature', () => ({ verifySignature: jest.fn().mockReturnValue(true), })); -import { faker } from '@faker-js/faker/.'; +import { faker } from '@faker-js/faker'; import { createMock } from '@golevelup/ts-jest'; import { HMToken__factory } from '@human-protocol/core/typechain-types'; import { ChainId, NETWORKS } from '@human-protocol/sdk'; @@ -62,7 +62,7 @@ describe('PaymentService', () => { let rateService: jest.Mocked; const signerMock = { - address: MOCK_ADDRESS, + getAddress: jest.fn().mockResolvedValue(MOCK_ADDRESS), getNetwork: jest.fn().mockResolvedValue({ chainId: ChainId.LOCALHOST }), }; @@ -554,7 +554,9 @@ describe('PaymentService', () => { await expect( paymentService.createCryptoPayment(userId, dto, MOCK_SIGNATURE), - ).rejects.toThrow(new ConflictError(ErrorSignature.SignatureNotVerified)); + ).rejects.toThrow( + new ConflictException(ErrorSignature.SignatureNotVerified), + ); }); it('should throw a not found exception if the transaction is not found by hash', async () => { @@ -873,7 +875,7 @@ describe('PaymentService', () => { setupId: '1', defaultCard: false, }), - ).rejects.toThrow(new ServerError(ErrorPayment.SetupNotFound)); + ).rejects.toThrow(new NotFoundError(ErrorPayment.SetupNotFound)); }); }); diff --git a/packages/apps/job-launcher/server/src/modules/payment/payment.service.ts b/packages/apps/job-launcher/server/src/modules/payment/payment.service.ts index 537113edd7..606cb6bc5f 100644 --- a/packages/apps/job-launcher/server/src/modules/payment/payment.service.ts +++ b/packages/apps/job-launcher/server/src/modules/payment/payment.service.ts @@ -1,4 +1,3 @@ -/* eslint-disable @typescript-eslint/no-non-null-assertion */ import { HMToken, HMToken__factory, @@ -254,7 +253,7 @@ export class PaymentService { topics: transaction.logs[0].topics as string[], data: transaction.logs[0].data, })?.args['_to'], - ) !== ethers.hexlify(signer.address) + ) !== ethers.hexlify(await signer.getAddress()) ) { throw new ConflictError(ErrorPayment.InvalidRecipient); } diff --git a/packages/apps/job-launcher/server/src/modules/payment/providers/stripe/stripe.service.spec.ts b/packages/apps/job-launcher/server/src/modules/payment/providers/stripe/stripe.service.spec.ts index 0d9c24098d..7eb2ad0c7e 100644 --- a/packages/apps/job-launcher/server/src/modules/payment/providers/stripe/stripe.service.spec.ts +++ b/packages/apps/job-launcher/server/src/modules/payment/providers/stripe/stripe.service.spec.ts @@ -742,7 +742,7 @@ describe('StripeService', () => { await expect( service.getReceiptUrl(mockPaymentIntent.id, customerId), - ).rejects.toThrow(new NotFoundError(ErrorPayment.NotFound)); + ).rejects.toThrow(new ServerError(ErrorPayment.NotFound)); }); }); diff --git a/packages/apps/job-launcher/server/src/modules/qualification/qualification.service.spec.ts b/packages/apps/job-launcher/server/src/modules/qualification/qualification.service.spec.ts index 5136a5e6af..df1f6b43bc 100644 --- a/packages/apps/job-launcher/server/src/modules/qualification/qualification.service.spec.ts +++ b/packages/apps/job-launcher/server/src/modules/qualification/qualification.service.spec.ts @@ -21,6 +21,10 @@ import { ErrorQualification, ErrorWeb3 } from '../../common/constants/errors'; import { ServerError, ValidationError } from '../../common/errors'; import { Web3Service } from '../web3/web3.service'; import { QualificationService } from './qualification.service'; +import { RateService } from '../rate/rate.service'; +import { createMock } from '@golevelup/ts-jest'; + +const mockRateService = createMock(); describe.only('QualificationService', () => { let qualificationService: QualificationService, httpService: HttpService; @@ -50,6 +54,10 @@ describe.only('QualificationService', () => { get: jest.fn(), }, }, + { + provide: RateService, + useValue: mockRateService, + }, ], }) .overrideProvider(NetworkConfigService) diff --git a/packages/apps/job-launcher/server/src/modules/qualification/qualification.service.ts b/packages/apps/job-launcher/server/src/modules/qualification/qualification.service.ts index 391dca143e..9709208f4d 100644 --- a/packages/apps/job-launcher/server/src/modules/qualification/qualification.service.ts +++ b/packages/apps/job-launcher/server/src/modules/qualification/qualification.service.ts @@ -34,7 +34,9 @@ export class QualificationService { this.web3ConfigService.reputationOracleAddress, KVStoreKeys.url, ); - } catch {} + } catch { + // Ignore error + } if (!reputationOracleUrl || reputationOracleUrl === '') { throw new ServerError(ErrorWeb3.ReputationOracleUrlNotSet); diff --git a/packages/apps/job-launcher/server/src/modules/storage/storage.service.spec.ts b/packages/apps/job-launcher/server/src/modules/storage/storage.service.spec.ts index f6a0bc9c73..a41ffabf7e 100644 --- a/packages/apps/job-launcher/server/src/modules/storage/storage.service.spec.ts +++ b/packages/apps/job-launcher/server/src/modules/storage/storage.service.spec.ts @@ -38,7 +38,7 @@ import { ContentType } from '../../common/enums/storage'; import { ServerError, ValidationError } from '../../common/errors'; import { hashString } from '../../common/utils'; import { StorageService } from './storage.service'; -import { faker } from '@faker-js/faker/.'; +import { faker } from '@faker-js/faker'; describe('StorageService', () => { let storageService: StorageService; diff --git a/packages/apps/job-launcher/server/src/modules/storage/storage.service.ts b/packages/apps/job-launcher/server/src/modules/storage/storage.service.ts index c25e8c0733..523298f568 100644 --- a/packages/apps/job-launcher/server/src/modules/storage/storage.service.ts +++ b/packages/apps/job-launcher/server/src/modules/storage/storage.service.ts @@ -89,7 +89,9 @@ export class StorageService { try { jsonLikeData = JSON.parse(jsonLikeData); - } catch (_noop) {} + } catch (_noop) { + // Ignore error + } return jsonLikeData; } catch (_error) { diff --git a/packages/apps/job-launcher/server/src/modules/web3/web3.controller.ts b/packages/apps/job-launcher/server/src/modules/web3/web3.controller.ts index 52658fd5fc..9873601138 100644 --- a/packages/apps/job-launcher/server/src/modules/web3/web3.controller.ts +++ b/packages/apps/job-launcher/server/src/modules/web3/web3.controller.ts @@ -52,7 +52,7 @@ export class Web3Controller { }) @Public() @Get('/operator-address') - getOperatorAddress(): string { + async getOperatorAddress(): Promise { return this.web3Service.getOperatorAddress(); } diff --git a/packages/apps/job-launcher/server/src/modules/web3/web3.module.ts b/packages/apps/job-launcher/server/src/modules/web3/web3.module.ts index f3f43a070a..97acce6175 100644 --- a/packages/apps/job-launcher/server/src/modules/web3/web3.module.ts +++ b/packages/apps/job-launcher/server/src/modules/web3/web3.module.ts @@ -2,9 +2,10 @@ import { Module } from '@nestjs/common'; import { Web3Service } from './web3.service'; import { ConfigModule } from '@nestjs/config'; import { Web3Controller } from './web3.controller'; +import { RateModule } from '../rate/rate.module'; @Module({ - imports: [ConfigModule], + imports: [ConfigModule, RateModule], providers: [Web3Service], exports: [Web3Service], controllers: [Web3Controller], diff --git a/packages/apps/job-launcher/server/src/modules/web3/web3.service.spec.ts b/packages/apps/job-launcher/server/src/modules/web3/web3.service.spec.ts index 96daa6a720..aa67bf2f1c 100644 --- a/packages/apps/job-launcher/server/src/modules/web3/web3.service.spec.ts +++ b/packages/apps/job-launcher/server/src/modules/web3/web3.service.spec.ts @@ -1,9 +1,14 @@ +import { faker } from '@faker-js/faker/.'; +import { HMToken__factory } from '@human-protocol/core/typechain-types'; import { ChainId, OperatorUtils, Role } from '@human-protocol/sdk'; import { ConfigService } from '@nestjs/config'; import { Test } from '@nestjs/testing'; +import { NonceManager, ethers } from 'ethers'; +import { createSignerMock } from '../../../test/fixtures/web3'; import { NetworkConfigService } from '../../common/config/network-config.service'; import { Web3ConfigService } from '../../common/config/web3-config.service'; import { ErrorWeb3 } from '../../common/constants/errors'; +import { EscrowFundToken } from '../../common/enums/job'; import { Web3Env } from '../../common/enums/web3'; import { ConflictError, ValidationError } from '../../common/errors'; import { @@ -13,6 +18,7 @@ import { MOCK_REPUTATION_ORACLES, mockConfig, } from './../../../test/constants'; +import { RateService } from '../rate/rate.service'; import { OracleDataDto } from './web3.dto'; import { Web3Service } from './web3.service'; @@ -30,6 +36,9 @@ jest.mock('@human-protocol/sdk', () => { describe('Web3Service', () => { let configService: ConfigService; let web3Service: Web3Service; + const mockRateService = { + getRate: jest.fn(), + }; beforeAll(async () => { const moduleRef = await Test.createTestingModule({ @@ -49,6 +58,10 @@ describe('Web3Service', () => { Web3Service, NetworkConfigService, Web3ConfigService, + { + provide: RateService, + useValue: mockRateService, + }, ], }).compile(); @@ -68,6 +81,7 @@ describe('Web3Service', () => { new Web3Service( new Web3ConfigService(configService), new NetworkConfigService(configService), + mockRateService as unknown as RateService, ), ).toThrow(new Error(ErrorWeb3.NoValidNetworks)); }); @@ -95,8 +109,8 @@ describe('Web3Service', () => { }); describe('getOperatorAddress', () => { - it('should get the operator address', () => { - const operatorAddress = web3Service.getOperatorAddress(); + it('should get the operator address', async () => { + const operatorAddress = await web3Service.getOperatorAddress(); expect(operatorAddress).toBe(MOCK_ADDRESS); }); }); @@ -457,4 +471,128 @@ describe('Web3Service', () => { expect(OperatorUtils.getOperator).toHaveBeenCalledTimes(1); }); }); + + describe('ensureEscrowAllowance', () => { + let mockSigner: jest.Mocked; + const mockToken = { + address: faker.finance.ethereumAddress(), + decimals: 18, + symbol: EscrowFundToken.HMT, + }; + const mockSpender = faker.finance.ethereumAddress(); + const mockRequiredAmount = faker.number.bigInt(); + let approveAmountUsdSpy: jest.SpyInstance; + + beforeAll(async () => { + mockSigner = createSignerMock(); + jest.spyOn(web3Service, 'getSigner').mockReturnValue(mockSigner); + jest + .spyOn(web3Service, 'getOperatorAddress') + .mockResolvedValue(await mockSigner.getAddress()); + approveAmountUsdSpy = jest + .spyOn(web3Service.web3ConfigService, 'approveAmountUsd', 'get') + .mockReturnValue(0); + }); + + afterAll(() => { + jest.restoreAllMocks(); + }); + + it('should call approve on the ERC20 token if current allowance is less than required amount', async () => { + const mockApprove = jest.fn().mockResolvedValue({ + wait: jest.fn().mockResolvedValue({}), + }); + const mockAllowance = mockRequiredAmount - 1n; + const mockErc20 = { + allowance: jest.fn().mockResolvedValue(mockAllowance), + approve: mockApprove, + }; + + jest + .spyOn(HMToken__factory, 'connect') + .mockReturnValue(mockErc20 as never); + + await web3Service.ensureEscrowAllowance( + ChainId.POLYGON_AMOY, + mockToken, + mockRequiredAmount, + mockSpender, + ); + + expect(mockErc20.allowance).toHaveBeenCalledWith( + await mockSigner.getAddress(), + mockSpender, + ); + expect(mockApprove).toHaveBeenCalledWith(mockSpender, mockRequiredAmount); + expect(mockRateService.getRate).not.toHaveBeenCalled(); + }); + + it('should not call approve if current allowance is greater than or equal to required amount', async () => { + const mockAllowance = mockRequiredAmount + 1n; + const mockApprove = jest.fn().mockResolvedValue({ + wait: jest.fn(), + }); + const mockErc20 = { + allowance: jest.fn().mockResolvedValue(mockAllowance), + approve: mockApprove, + }; + + jest + .spyOn(HMToken__factory, 'connect') + .mockReturnValue(mockErc20 as never); + + await web3Service.ensureEscrowAllowance( + ChainId.POLYGON_AMOY, + mockToken, + mockRequiredAmount, + mockSpender, + ); + + expect(mockErc20.allowance).toHaveBeenCalledWith( + await mockSigner.getAddress(), + mockSpender, + ); + expect(mockApprove).not.toHaveBeenCalled(); + expect(mockRateService.getRate).not.toHaveBeenCalled(); + }); + + it('should convert approveAmountUsd to token units when higher than required amount', async () => { + const mockApproveAmount = faker.number.int({ min: 50, max: 150 }); + const mockRate = faker.number.float({ min: 1, max: 5 }); + + approveAmountUsdSpy.mockReturnValue(mockApproveAmount); + mockRateService.getRate.mockResolvedValue(mockRate); + + const mockApprove = jest.fn().mockResolvedValue({ + wait: jest.fn().mockResolvedValue({}), + }); + const mockAllowance = mockRequiredAmount - 1n; + const mockErc20 = { + allowance: jest.fn().mockResolvedValue(mockAllowance), + approve: mockApprove, + }; + + jest + .spyOn(HMToken__factory, 'connect') + .mockReturnValue(mockErc20 as never); + + await web3Service.ensureEscrowAllowance( + ChainId.POLYGON_AMOY, + mockToken, + mockRequiredAmount, + mockSpender, + ); + + const expectedAmount = ethers.parseUnits( + (mockApproveAmount * mockRate).toString(), + mockToken.decimals, + ); + + expect(mockRateService.getRate).toHaveBeenCalledWith( + 'usd', + mockToken.symbol, + ); + expect(mockApprove).toHaveBeenCalledWith(mockSpender, expectedAmount); + }); + }); }); diff --git a/packages/apps/job-launcher/server/src/modules/web3/web3.service.ts b/packages/apps/job-launcher/server/src/modules/web3/web3.service.ts index 26979e3338..a288dc2be3 100644 --- a/packages/apps/job-launcher/server/src/modules/web3/web3.service.ts +++ b/packages/apps/job-launcher/server/src/modules/web3/web3.service.ts @@ -1,22 +1,25 @@ +import { HMToken__factory } from '@human-protocol/core/typechain-types'; import { ChainId, OperatorUtils, Role } from '@human-protocol/sdk'; import { Injectable } from '@nestjs/common'; -import { Wallet, ethers } from 'ethers'; +import { NonceManager, Wallet, ethers } from 'ethers'; import { NetworkConfigService } from '../../common/config/network-config.service'; import { Web3ConfigService } from '../../common/config/web3-config.service'; import { ErrorWeb3 } from '../../common/constants/errors'; import { ConflictError, ValidationError } from '../../common/errors'; -import { AvailableOraclesDto, OracleDataDto } from './web3.dto'; +import { IERC20Token } from '../../common/interfaces/web3'; import logger from '../../logger'; +import { RateService } from '../rate/rate.service'; +import { AvailableOraclesDto, OracleDataDto } from './web3.dto'; @Injectable() export class Web3Service { private readonly logger = logger.child({ context: Web3Service.name }); - private signers: { [key: number]: Wallet } = {}; - public readonly signerAddress: string; + private signers: { [key: number]: NonceManager } = {}; constructor( public readonly web3ConfigService: Web3ConfigService, public readonly networkConfigService: NetworkConfigService, + private readonly rateService: RateService, ) { const privateKey = this.web3ConfigService.privateKey; @@ -26,11 +29,12 @@ export class Web3Service { for (const network of this.networkConfigService.networks) { const provider = new ethers.JsonRpcProvider(network.rpcUrl); - this.signers[network.chainId] = new Wallet(privateKey, provider); + const baseWallet = new Wallet(privateKey, provider); + this.signers[network.chainId] = new NonceManager(baseWallet); } } - public getSigner(chainId: number): Wallet { + public getSigner(chainId: number): NonceManager { this.validateChainId(chainId); return this.signers[chainId]; } @@ -52,8 +56,8 @@ export class Web3Service { throw new ConflictError(ErrorWeb3.GasPriceError); } - public getOperatorAddress(): string { - return Object.values(this.signers)[0].address; + public async getOperatorAddress(): Promise { + return Object.values(this.signers)[0].getAddress(); } public async getAvailableOracles( @@ -141,7 +145,7 @@ export class Web3Service { ): Promise { const operator = await OperatorUtils.getOperator( chainId, - this.getOperatorAddress(), + await this.getOperatorAddress(), ); if (!operator || !operator.reputationNetworks) { @@ -178,4 +182,50 @@ export class Web3Service { return matchingOracles.filter(Boolean) as string[]; } + + public async ensureEscrowAllowance( + chainId: number, + token: IERC20Token, + requiredAmount: bigint, + spender: string, + ): Promise { + const signer = this.getSigner(chainId); + const erc20 = HMToken__factory.connect(token.address, signer); + + const currentAllowance = await erc20.allowance( + await this.getOperatorAddress(), + spender, + ); + + if (currentAllowance >= requiredAmount) { + return; + } + + let approveAmount = requiredAmount; + if (this.web3ConfigService.approveAmountUsd > 0) { + try { + const usdToTokenRate = await this.rateService.getRate( + 'usd', + token.symbol, + ); + const tokenAmount = + this.web3ConfigService.approveAmountUsd * usdToTokenRate; + const converted = ethers.parseUnits( + tokenAmount.toString(), + token.decimals, + ); + if (converted > approveAmount) { + approveAmount = converted; + } + } catch (error) { + this.logger.error('Failed to convert approve amount from USD', { + chainId, + token: token.symbol, + error, + }); + } + } + const tx = await erc20.approve(spender, approveAmount); + await tx.wait(); + } } diff --git a/packages/apps/job-launcher/server/src/modules/webhook/webhook.service.spec.ts b/packages/apps/job-launcher/server/src/modules/webhook/webhook.service.spec.ts index a8db5e9550..220856996c 100644 --- a/packages/apps/job-launcher/server/src/modules/webhook/webhook.service.spec.ts +++ b/packages/apps/job-launcher/server/src/modules/webhook/webhook.service.spec.ts @@ -1,4 +1,4 @@ -import { faker } from '@faker-js/faker/.'; +import { faker } from '@faker-js/faker'; import { createMock } from '@golevelup/ts-jest'; import { ChainId, KVStoreUtils } from '@human-protocol/sdk'; import { HttpService } from '@nestjs/axios'; @@ -111,7 +111,7 @@ describe('WebhookService', () => { }); await expect( (webhookService as any).sendWebhook(webhookEntity), - ).rejects.toThrow(new ServerError('HTTP request failed')); + ).rejects.toThrow(new Error('HTTP request failed')); }); it('should successfully process a fortune webhook', async () => { diff --git a/packages/apps/job-launcher/server/src/modules/webhook/webhook.service.ts b/packages/apps/job-launcher/server/src/modules/webhook/webhook.service.ts index 733859de9f..243b48e242 100644 --- a/packages/apps/job-launcher/server/src/modules/webhook/webhook.service.ts +++ b/packages/apps/job-launcher/server/src/modules/webhook/webhook.service.ts @@ -1,4 +1,3 @@ -/* eslint-disable @typescript-eslint/no-non-null-assertion */ import { KVStoreKeys, KVStoreUtils } from '@human-protocol/sdk'; import { HttpService } from '@nestjs/axios'; import { Injectable } from '@nestjs/common'; diff --git a/packages/apps/job-launcher/server/test/constants.ts b/packages/apps/job-launcher/server/test/constants.ts index d54e1a00c9..d28777eef2 100644 --- a/packages/apps/job-launcher/server/test/constants.ts +++ b/packages/apps/job-launcher/server/test/constants.ts @@ -40,7 +40,6 @@ export const MOCK_RECORDING_ORACLE_ADDRESS = export const MOCK_REPUTATION_ORACLE_ADDRESS = '0x2E04d5D6cE3fF2261D0Cb04d41Fb4Cd67362A473'; export const MOCK_EXCHANGE_ORACLE_WEBHOOK_URL = 'http://localhost:3000'; -('0x2E04d5D6cE3fF2261D0Cb04d41Fb4Cd67362A473'); export const MOCK_REPUTATION_ORACLE_URL = 'http://reporacle:3000'; export const MOCK_RECORDING_ORACLE_URL = 'http://recoracle:3000'; export const MOCK_EXCHANGE_ORACLE_URL = 'http://exoracle:3000'; diff --git a/packages/apps/job-launcher/server/test/fixtures/web3.ts b/packages/apps/job-launcher/server/test/fixtures/web3.ts index 6ac5909e8d..0bbe730af8 100644 --- a/packages/apps/job-launcher/server/test/fixtures/web3.ts +++ b/packages/apps/job-launcher/server/test/fixtures/web3.ts @@ -1,18 +1,13 @@ -import { Wallet } from 'ethers'; +import { faker } from '@faker-js/faker/.'; +import { NonceManager } from 'ethers'; -export type SignerMock = jest.Mocked> & { - __transactionResponse: { - wait: jest.Mock; - }; -}; - -export function createSignerMock(): SignerMock { +export function createSignerMock() { const transactionResponse = { wait: jest.fn(), }; return { sendTransaction: jest.fn().mockResolvedValue(transactionResponse), - __transactionResponse: transactionResponse, - }; + getAddress: jest.fn().mockResolvedValue(faker.finance.ethereumAddress()), + } as unknown as jest.Mocked; } diff --git a/packages/apps/reputation-oracle/server/eslint.config.mjs b/packages/apps/reputation-oracle/server/eslint.config.mjs index d9ee05f208..19d77d0394 100644 --- a/packages/apps/reputation-oracle/server/eslint.config.mjs +++ b/packages/apps/reputation-oracle/server/eslint.config.mjs @@ -32,13 +32,13 @@ export default tseslint.config( '@typescript-eslint/no-floating-promises': 'warn', '@typescript-eslint/no-unsafe-argument': 'warn', '@typescript-eslint/no-unused-vars': ['error', { - "args": "all", - "argsIgnorePattern": "^_", - "caughtErrors": "all", - "caughtErrorsIgnorePattern": "^noop", - "destructuredArrayIgnorePattern": "^_", - "varsIgnorePattern": "^_", - "ignoreRestSiblings": true + 'args': 'all', + 'argsIgnorePattern': '^_', + 'caughtErrors': 'all', + 'caughtErrorsIgnorePattern': '^noop', + 'destructuredArrayIgnorePattern': '^_', + 'varsIgnorePattern': '^_', + 'ignoreRestSiblings': true }], 'import/order': [ 'warn', @@ -48,6 +48,11 @@ export default tseslint.config( groups: ['builtin', 'external', 'internal', ['parent', 'sibling', 'index']], }, ], + '@/quotes': [ + 'error', + 'single', + { 'avoidEscape': true, 'allowTemplateLiterals': true } + ], }, settings: { 'import/resolver': { diff --git a/packages/apps/reputation-oracle/server/package.json b/packages/apps/reputation-oracle/server/package.json index bbac3dd490..7d494794ba 100644 --- a/packages/apps/reputation-oracle/server/package.json +++ b/packages/apps/reputation-oracle/server/package.json @@ -35,7 +35,7 @@ "@nestjs/axios": "^3.1.3", "@nestjs/common": "^10.2.7", "@nestjs/config": "^3.1.1", - "@nestjs/core": "^10.3.10", + "@nestjs/core": "^11.1.9", "@nestjs/jwt": "^10.2.0", "@nestjs/passport": "^10.0.0", "@nestjs/platform-express": "^10.3.10", @@ -80,18 +80,18 @@ "@nestjs/testing": "^10.4.6", "@types/bcrypt": "^5.0.2", "@types/express": "^4.17.13", - "@types/jest": "29.5.12", + "@types/jest": "30.0.0", "@types/lodash": "^4.17.14", "@types/node": "22.10.5", "@types/uuid": "^10.0.0", "@types/zxcvbn": "4.4.5", - "eslint": "^9.33.0", + "eslint": "^9.39.1", "eslint-config-prettier": "^10.1.8", "eslint-import-resolver-typescript": "^4.4.4", "eslint-plugin-import": "^2.32.0", "eslint-plugin-prettier": "^5.5.4", "globals": "^16.3.0", - "jest": "29.7.0", + "jest": "30.2.0", "nock": "^14.0.3", "prettier": "^3.4.2", "ts-jest": "29.2.5", diff --git a/packages/apps/reputation-oracle/server/src/modules/auth/auth.service.spec.ts b/packages/apps/reputation-oracle/server/src/modules/auth/auth.service.spec.ts index 8fe72fc2a0..121e37346d 100644 --- a/packages/apps/reputation-oracle/server/src/modules/auth/auth.service.spec.ts +++ b/packages/apps/reputation-oracle/server/src/modules/auth/auth.service.spec.ts @@ -427,7 +427,7 @@ describe('AuthService', () => { await expect( service.web3Signup(signature, ethWallet.address), - ).rejects.toThrow(new AuthErrors.InvalidOperatorFeeError('')); + ).rejects.toThrow(new AuthErrors.InvalidOperatorUrlError('')); }); }); diff --git a/packages/apps/staking/.eslintrc.cjs b/packages/apps/staking/.eslintrc.cjs deleted file mode 100644 index dd29102b35..0000000000 --- a/packages/apps/staking/.eslintrc.cjs +++ /dev/null @@ -1,19 +0,0 @@ -module.exports = { - root: true, - env: { browser: true, es2020: true }, - extends: [ - 'eslint:recommended', - 'plugin:@typescript-eslint/recommended', - 'plugin:react-hooks/recommended', - ], - ignorePatterns: ['dist', '.eslintrc.cjs'], - parser: '@typescript-eslint/parser', - plugins: ['react-refresh'], - rules: { - 'react-refresh/only-export-components': [ - 'warn', - { allowConstantExport: true }, - ], - '@typescript-eslint/no-explicit-any': 'off', - }, -}; diff --git a/packages/apps/staking/eslint.config.mjs b/packages/apps/staking/eslint.config.mjs new file mode 100644 index 0000000000..6515b17715 --- /dev/null +++ b/packages/apps/staking/eslint.config.mjs @@ -0,0 +1,46 @@ +import eslint from '@eslint/js'; +import globals from 'globals'; +import tseslint from 'typescript-eslint'; +import reactHooksPlugin from 'eslint-plugin-react-hooks'; +import reactRefreshPlugin from 'eslint-plugin-react-refresh'; + +export default tseslint.config( + { + ignores: ['dist', '.eslintrc.cjs', 'vite.config.ts'], + }, + eslint.configs.recommended, + tseslint.configs.recommended, + { + files: ['**/*.{ts,tsx,js,jsx}'], + languageOptions: { + globals: { + ...globals.browser, + ...globals.es2022, + }, + ecmaVersion: 2022, + sourceType: 'module', + parserOptions: { + projectService: true, + tsconfigRootDir: import.meta.dirname, + }, + }, + plugins: { + 'react-hooks': reactHooksPlugin, + 'react-refresh': reactRefreshPlugin, + }, + rules: { + 'react-hooks/rules-of-hooks': 'error', + 'react-hooks/exhaustive-deps': 'warn', + 'react-refresh/only-export-components': [ + 'warn', + { allowConstantExport: true }, + ], + '@typescript-eslint/no-explicit-any': 'off', + '@/quotes': [ + 'error', + 'single', + { 'avoidEscape': true, 'allowTemplateLiterals': true } + ], + }, + } +); diff --git a/packages/apps/staking/package.json b/packages/apps/staking/package.json index cca339c1ef..d79cfc6022 100644 --- a/packages/apps/staking/package.json +++ b/packages/apps/staking/package.json @@ -49,9 +49,9 @@ "@types/react-dom": "^18.3.1", "@types/react-router-dom": "^5.3.3", "@typescript-eslint/eslint-plugin": "^7.13.1", - "@typescript-eslint/parser": "^7.13.1", + "@typescript-eslint/parser": "^8.46.3", "@vitejs/plugin-react": "^4.3.1", - "eslint": "^8.57.0", + "eslint": "^9.39.1", "eslint-plugin-react-hooks": "^5.1.0", "eslint-plugin-react-refresh": "^0.4.11", "prettier": "^3.4.2", diff --git a/packages/apps/staking/src/components/NetworkStatus/NetworkIcon/index.tsx b/packages/apps/staking/src/components/NetworkStatus/NetworkIcon/index.tsx index 43f918ef9a..9e4b5be83d 100644 --- a/packages/apps/staking/src/components/NetworkStatus/NetworkIcon/index.tsx +++ b/packages/apps/staking/src/components/NetworkStatus/NetworkIcon/index.tsx @@ -1,10 +1,10 @@ -import EthereumIcon from "./Icons/EthereumIcon"; -import BinanceSmartChainIcon from "./Icons/BinanceSmartChainIcon"; -import PolygonIcon from "./Icons/PolygonIcon"; -import MoonbeamIcon from "./Icons/MoonbeamIcon"; -import MoonbaseAlphaIcon from "./Icons/MoonbaseAlphaIcon"; -import { XLayerIcon } from "./Icons/XLayerIcon"; -import { AvalancheIcon } from "./Icons/AvalancheIcon"; +import EthereumIcon from './Icons/EthereumIcon'; +import BinanceSmartChainIcon from './Icons/BinanceSmartChainIcon'; +import PolygonIcon from './Icons/PolygonIcon'; +import MoonbeamIcon from './Icons/MoonbeamIcon'; +import MoonbaseAlphaIcon from './Icons/MoonbaseAlphaIcon'; +import { XLayerIcon } from './Icons/XLayerIcon'; +import { AvalancheIcon } from './Icons/AvalancheIcon'; export const NetworkIcon = ({ chainId }: { chainId?: number }) => { const icon = (() => { diff --git a/packages/apps/staking/src/constants/chains.ts b/packages/apps/staking/src/constants/chains.ts index 3d64dd6866..a03ce3fc74 100644 --- a/packages/apps/staking/src/constants/chains.ts +++ b/packages/apps/staking/src/constants/chains.ts @@ -1,33 +1,33 @@ -import { ChainId } from "@human-protocol/sdk"; +import { ChainId } from '@human-protocol/sdk'; export const IS_MAINNET = - import.meta.env.VITE_APP_ENVIRONMENT.toLowerCase() === "mainnet"; + import.meta.env.VITE_APP_ENVIRONMENT.toLowerCase() === 'mainnet'; export const IS_TESTNET = !IS_MAINNET; let initialSupportedChainIds: ChainId[]; switch (import.meta.env.VITE_APP_ENVIRONMENT.toLowerCase()) { - case "mainnet": + case 'mainnet': initialSupportedChainIds = [ ChainId.POLYGON, ChainId.MAINNET, ChainId.BSC_MAINNET, ]; break; - case "testnet": + case 'testnet': initialSupportedChainIds = [ ChainId.BSC_TESTNET, ChainId.POLYGON_AMOY, ChainId.SEPOLIA, ]; break; - case "localhost": + case 'localhost': default: initialSupportedChainIds = [ChainId.LOCALHOST]; break; } const supportedChains = - import.meta.env.VITE_APP_SUPPORTED_CHAINS?.split(",") || []; + import.meta.env.VITE_APP_SUPPORTED_CHAINS?.split(',') || []; export const SUPPORTED_CHAIN_IDS: ChainId[] = initialSupportedChainIds.filter( (chainId) => supportedChains.includes(chainId.toString()), @@ -35,25 +35,25 @@ export const SUPPORTED_CHAIN_IDS: ChainId[] = initialSupportedChainIds.filter( if (SUPPORTED_CHAIN_IDS.length === 0) { throw new Error( - "No valid RPC URL provided for the supported blockchain environment", + 'No valid RPC URL provided for the supported blockchain environment', ); } export const LOCALHOST = { id: 1338, - name: "Localhost", - network: "localhost", + name: 'Localhost', + network: 'localhost', nativeCurrency: { decimals: 18, - name: "Ether", - symbol: "ETH", + name: 'Ether', + symbol: 'ETH', }, rpcUrls: { default: { - http: ["http://127.0.0.1:8545"], + http: ['http://127.0.0.1:8545'], }, public: { - http: ["http://127.0.0.1:8545"], + http: ['http://127.0.0.1:8545'], }, }, }; diff --git a/packages/apps/staking/src/hooks/useStake.ts b/packages/apps/staking/src/hooks/useStake.ts index c9bfbc8ca7..0d20cfb186 100644 --- a/packages/apps/staking/src/hooks/useStake.ts +++ b/packages/apps/staking/src/hooks/useStake.ts @@ -19,7 +19,7 @@ export const useStake = () => { const { showError, openSnackbar } = useSnackbar(); const [stakingClient, setStakingClient] = useState( - null + null, ); const [stakingData, setStakingData] = useState(null); const [tokenBalance, setTokenBalance] = useState(0); @@ -33,7 +33,7 @@ export const useStake = () => { checkSupportedChain(); const eeip193Provider = await connector?.getProvider(); const provider = new ethers.BrowserProvider( - eeip193Provider as Eip1193Provider + eeip193Provider as Eip1193Provider, ); setBrowserProvider(provider); const signer = await provider.getSigner(); @@ -58,7 +58,7 @@ export const useStake = () => { if (!isSupportedChain) { resetData(); throw new Error( - 'Unsupported chain. Please switch to a supported network.' + 'Unsupported chain. Please switch to a supported network.', ); } }; @@ -73,7 +73,7 @@ export const useStake = () => { try { const stakingInfo = await stakingClient.getStakerInfo(address!); setStakingData(stakingInfo); - } catch (error) { + } catch { showError('Error fetching staking data'); } }; @@ -81,7 +81,7 @@ export const useStake = () => { const fetchTokenBalance = async ( provider: ethers.BrowserProvider, address: string, - chainId?: number + chainId?: number, ) => { checkSupportedChain(); try { @@ -94,12 +94,12 @@ export const useStake = () => { const tokenContract = new ethers.Contract( tokenAddress, HMTokenABI, - provider + provider, ); const balance = await tokenContract.balanceOf(address); setTokenBalance(formatAmount(balance)); - } catch (error) { + } catch { showError('Error fetching token balance'); } }; diff --git a/packages/apps/staking/src/providers/WagmiProvider.tsx b/packages/apps/staking/src/providers/WagmiProvider.tsx index b493d5e501..79c0772401 100644 --- a/packages/apps/staking/src/providers/WagmiProvider.tsx +++ b/packages/apps/staking/src/providers/WagmiProvider.tsx @@ -1,8 +1,8 @@ -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 { LOCALHOST, SUPPORTED_CHAIN_IDS } from "../constants/chains"; +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 { LOCALHOST, SUPPORTED_CHAIN_IDS } from '../constants/chains'; const projectId = import.meta.env.VITE_APP_WALLETCONNECT_PROJECT_ID; @@ -25,10 +25,10 @@ export const wagmiConfig = createConfig({ connectors: [ walletConnect({ showQrModal: true, - projectId: projectId ?? "", + projectId: projectId ?? '', }), coinbaseWallet({ - appName: "human-staking-dashboard", + appName: 'human-staking-dashboard', }), ], transports: Object.fromEntries( diff --git a/packages/apps/staking/src/utils/string.ts b/packages/apps/staking/src/utils/string.ts index f126c1af0f..9b61490cf3 100644 --- a/packages/apps/staking/src/utils/string.ts +++ b/packages/apps/staking/src/utils/string.ts @@ -1,4 +1,3 @@ -// eslint-disable-next-line @typescript-eslint/no-explicit-any export const parseErrorMessage = (error: any) => { if (typeof error === 'string') { return error; diff --git a/packages/apps/staking/vite.config.ts b/packages/apps/staking/vite.config.ts index fd034b78df..69f610de8f 100644 --- a/packages/apps/staking/vite.config.ts +++ b/packages/apps/staking/vite.config.ts @@ -1,9 +1,10 @@ /// -import path from 'path'; -import react from '@vitejs/plugin-react'; -import { defineConfig } from 'vite'; -import { nodePolyfills } from 'vite-plugin-node-polyfills'; +import path from "path"; +import react from "@vitejs/plugin-react"; +import { defineConfig } from "vite"; +import { nodePolyfills } from "vite-plugin-node-polyfills"; +import sass from "sass"; // https://vitejs.dev/config/ export default defineConfig({ @@ -16,15 +17,15 @@ export default defineConfig({ css: { preprocessorOptions: { scss: { - implementation: require('sass'), + implementation: sass, }, }, }, resolve: { - alias: [{ find: 'src', replacement: path.resolve(__dirname, 'src') }], + alias: [{ find: "src", replacement: path.resolve(__dirname, "src") }], }, optimizeDeps: { - include: ['@human-protocol/sdk'], + include: ["@human-protocol/sdk"], force: true, }, build: { diff --git a/packages/core/.eslintignore b/packages/core/.eslintignore deleted file mode 100644 index 78ab350584..0000000000 --- a/packages/core/.eslintignore +++ /dev/null @@ -1,5 +0,0 @@ -artifacts/ -cache/ -coverage/ -typechain-types/ -dist/ diff --git a/packages/core/.eslintrc b/packages/core/.eslintrc deleted file mode 100644 index 31a4bc0aae..0000000000 --- a/packages/core/.eslintrc +++ /dev/null @@ -1,23 +0,0 @@ -{ - "parser": "@typescript-eslint/parser", - "parserOptions": { - "ecmaVersion": 2020, - "sourceType": "module" - }, - "plugins": ["@typescript-eslint", "prettier", "jest"], - "extends": [ - "eslint:recommended", - "plugin:@typescript-eslint/eslint-recommended", - "plugin:@typescript-eslint/recommended", - "prettier" - ], - "rules": { - "no-console": "warn", - "prettier/prettier": "error", - "prefer-const": "warn", - "no-extra-semi": "off", - "@typescript-eslint/no-extra-semi": "off", - "@typescript-eslint/no-inferrable-types": "warn", - "@typescript-eslint/no-empty-function": "warn" - } -} diff --git a/packages/core/.openzeppelin/bsc-testnet.json b/packages/core/.openzeppelin/bsc-testnet.json index a4f4a54b95..7079e24781 100644 --- a/packages/core/.openzeppelin/bsc-testnet.json +++ b/packages/core/.openzeppelin/bsc-testnet.json @@ -2956,6 +2956,163 @@ }, "namespaces": {} } + }, + "addfe6d6ad3f78f6ccf914624fcf7eba6c970f5ba3a20a52f0184991b3d172e1": { + "address": "0xa68c1566f23C2335c142D798f8094F460d487044", + "txHash": "0x69327fb1132a9f7f15e2550822477c921c531375a50dc429eef4ecfefefe841a", + "layout": { + "solcVersion": "0.8.23", + "storage": [ + { + "label": "_initialized", + "offset": 0, + "slot": "0", + "type": "t_uint8", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:63", + "retypedFrom": "bool" + }, + { + "label": "_initializing", + "offset": 1, + "slot": "0", + "type": "t_bool", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:68" + }, + { + "label": "__gap", + "offset": 0, + "slot": "1", + "type": "t_array(t_uint256)50_storage", + "contract": "ContextUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:40" + }, + { + "label": "_owner", + "offset": 0, + "slot": "51", + "type": "t_address", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22" + }, + { + "label": "__gap", + "offset": 0, + "slot": "52", + "type": "t_array(t_uint256)49_storage", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:94" + }, + { + "label": "__gap", + "offset": 0, + "slot": "101", + "type": "t_array(t_uint256)50_storage", + "contract": "ERC1967UpgradeUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol:169" + }, + { + "label": "__gap", + "offset": 0, + "slot": "151", + "type": "t_array(t_uint256)50_storage", + "contract": "UUPSUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol:111" + }, + { + "label": "counter", + "offset": 0, + "slot": "201", + "type": "t_uint256", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:17" + }, + { + "label": "escrowCounters", + "offset": 0, + "slot": "202", + "type": "t_mapping(t_address,t_uint256)", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:18" + }, + { + "label": "lastEscrow", + "offset": 0, + "slot": "203", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:19" + }, + { + "label": "staking", + "offset": 0, + "slot": "204", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:20" + }, + { + "label": "minimumStake", + "offset": 0, + "slot": "205", + "type": "t_uint256", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:21" + }, + { + "label": "admin", + "offset": 0, + "slot": "206", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:22" + }, + { + "label": "__gap", + "offset": 0, + "slot": "207", + "type": "t_array(t_uint256)44_storage", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:189" + } + ], + "types": { + "t_address": { + "label": "address", + "numberOfBytes": "20" + }, + "t_array(t_uint256)44_storage": { + "label": "uint256[44]", + "numberOfBytes": "1408" + }, + "t_array(t_uint256)49_storage": { + "label": "uint256[49]", + "numberOfBytes": "1568" + }, + "t_array(t_uint256)50_storage": { + "label": "uint256[50]", + "numberOfBytes": "1600" + }, + "t_bool": { + "label": "bool", + "numberOfBytes": "1" + }, + "t_mapping(t_address,t_uint256)": { + "label": "mapping(address => uint256)", + "numberOfBytes": "32" + }, + "t_uint256": { + "label": "uint256", + "numberOfBytes": "32" + }, + "t_uint8": { + "label": "uint8", + "numberOfBytes": "1" + } + }, + "namespaces": {} + } } } } diff --git a/packages/core/.openzeppelin/bsc.json b/packages/core/.openzeppelin/bsc.json index 85d546d749..7666d5d45a 100644 --- a/packages/core/.openzeppelin/bsc.json +++ b/packages/core/.openzeppelin/bsc.json @@ -2,15 +2,15 @@ "manifestVersion": "3.2", "proxies": [ { - "address": "0x92FD968AcBd521c232f5fB8c33b342923cC72714", + "address": "0xdFbB79dC35a3A53741be54a2C9b587d6BafAbd1C", "kind": "uups" }, { - "address": "0xdFbB79dC35a3A53741be54a2C9b587d6BafAbd1C", + "address": "0xf376443BCc6d4d4D63eeC086bc4A9E4a83878e0e", "kind": "uups" }, { - "address": "0xf376443BCc6d4d4D63eeC086bc4A9E4a83878e0e", + "address": "0x92FD968AcBd521c232f5fB8c33b342923cC72714", "kind": "uups" } ], @@ -1416,6 +1416,319 @@ }, "namespaces": {} } + }, + "addfe6d6ad3f78f6ccf914624fcf7eba6c970f5ba3a20a52f0284991b3d172e1": { + "address": "0xAF1cc7A493f642dcFA58Aae07C09acF567384890", + "layout": { + "solcVersion": "0.8.23", + "storage": [ + { + "label": "_initialized", + "offset": 0, + "slot": "0", + "type": "t_uint8", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:63", + "retypedFrom": "bool" + }, + { + "label": "_initializing", + "offset": 1, + "slot": "0", + "type": "t_bool", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:68" + }, + { + "label": "__gap", + "offset": 0, + "slot": "1", + "type": "t_array(t_uint256)50_storage", + "contract": "ContextUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:40" + }, + { + "label": "_owner", + "offset": 0, + "slot": "51", + "type": "t_address", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22" + }, + { + "label": "__gap", + "offset": 0, + "slot": "52", + "type": "t_array(t_uint256)49_storage", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:94" + }, + { + "label": "__gap", + "offset": 0, + "slot": "101", + "type": "t_array(t_uint256)50_storage", + "contract": "ERC1967UpgradeUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol:169" + }, + { + "label": "__gap", + "offset": 0, + "slot": "151", + "type": "t_array(t_uint256)50_storage", + "contract": "UUPSUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol:111" + }, + { + "label": "counter", + "offset": 0, + "slot": "201", + "type": "t_uint256", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:17" + }, + { + "label": "escrowCounters", + "offset": 0, + "slot": "202", + "type": "t_mapping(t_address,t_uint256)", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:18" + }, + { + "label": "lastEscrow", + "offset": 0, + "slot": "203", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:19" + }, + { + "label": "staking", + "offset": 0, + "slot": "204", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:20" + }, + { + "label": "minimumStake", + "offset": 0, + "slot": "205", + "type": "t_uint256", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:21" + }, + { + "label": "admin", + "offset": 0, + "slot": "206", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:22" + }, + { + "label": "__gap", + "offset": 0, + "slot": "207", + "type": "t_array(t_uint256)44_storage", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:189" + } + ], + "types": { + "t_address": { + "label": "address", + "numberOfBytes": "20" + }, + "t_array(t_uint256)44_storage": { + "label": "uint256[44]", + "numberOfBytes": "1408" + }, + "t_array(t_uint256)49_storage": { + "label": "uint256[49]", + "numberOfBytes": "1568" + }, + "t_array(t_uint256)50_storage": { + "label": "uint256[50]", + "numberOfBytes": "1600" + }, + "t_bool": { + "label": "bool", + "numberOfBytes": "1" + }, + "t_mapping(t_address,t_uint256)": { + "label": "mapping(address => uint256)", + "numberOfBytes": "32" + }, + "t_uint256": { + "label": "uint256", + "numberOfBytes": "32" + }, + "t_uint8": { + "label": "uint8", + "numberOfBytes": "1" + } + }, + "namespaces": {} + } + }, + "addfe6d6ad3f78f6ccf914624fcf7eba6c970f5ba3a20a52f0184991b3d172e1": { + "address": "0x203af21338a52Ba03bE690C58952DC9935401201", + "txHash": "0x69f850c6e6329dc36337438e5fb791126a318466a4731ad4747601fe253eecfb", + "layout": { + "solcVersion": "0.8.23", + "storage": [ + { + "label": "_initialized", + "offset": 0, + "slot": "0", + "type": "t_uint8", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:63", + "retypedFrom": "bool" + }, + { + "label": "_initializing", + "offset": 1, + "slot": "0", + "type": "t_bool", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:68" + }, + { + "label": "__gap", + "offset": 0, + "slot": "1", + "type": "t_array(t_uint256)50_storage", + "contract": "ContextUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:40" + }, + { + "label": "_owner", + "offset": 0, + "slot": "51", + "type": "t_address", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22" + }, + { + "label": "__gap", + "offset": 0, + "slot": "52", + "type": "t_array(t_uint256)49_storage", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:94" + }, + { + "label": "__gap", + "offset": 0, + "slot": "101", + "type": "t_array(t_uint256)50_storage", + "contract": "ERC1967UpgradeUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol:169" + }, + { + "label": "__gap", + "offset": 0, + "slot": "151", + "type": "t_array(t_uint256)50_storage", + "contract": "UUPSUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol:111" + }, + { + "label": "counter", + "offset": 0, + "slot": "201", + "type": "t_uint256", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:17" + }, + { + "label": "escrowCounters", + "offset": 0, + "slot": "202", + "type": "t_mapping(t_address,t_uint256)", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:18" + }, + { + "label": "lastEscrow", + "offset": 0, + "slot": "203", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:19" + }, + { + "label": "staking", + "offset": 0, + "slot": "204", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:20" + }, + { + "label": "minimumStake", + "offset": 0, + "slot": "205", + "type": "t_uint256", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:21" + }, + { + "label": "admin", + "offset": 0, + "slot": "206", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:22" + }, + { + "label": "__gap", + "offset": 0, + "slot": "207", + "type": "t_array(t_uint256)44_storage", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:189" + } + ], + "types": { + "t_address": { + "label": "address", + "numberOfBytes": "20" + }, + "t_array(t_uint256)44_storage": { + "label": "uint256[44]", + "numberOfBytes": "1408" + }, + "t_array(t_uint256)49_storage": { + "label": "uint256[49]", + "numberOfBytes": "1568" + }, + "t_array(t_uint256)50_storage": { + "label": "uint256[50]", + "numberOfBytes": "1600" + }, + "t_bool": { + "label": "bool", + "numberOfBytes": "1" + }, + "t_mapping(t_address,t_uint256)": { + "label": "mapping(address => uint256)", + "numberOfBytes": "32" + }, + "t_uint256": { + "label": "uint256", + "numberOfBytes": "32" + }, + "t_uint8": { + "label": "uint8", + "numberOfBytes": "1" + } + }, + "namespaces": {} + } } } } diff --git a/packages/core/.openzeppelin/mainnet.json b/packages/core/.openzeppelin/mainnet.json index ed035a9370..ee64d50eff 100644 --- a/packages/core/.openzeppelin/mainnet.json +++ b/packages/core/.openzeppelin/mainnet.json @@ -2,15 +2,15 @@ "manifestVersion": "3.2", "proxies": [ { - "address": "0xD9c75a1Aa4237BB72a41E5E26bd8384f10c1f55a", + "address": "0x05398211bA2046E296fBc9a9D3EB49e3F15C3123", "kind": "uups" }, { - "address": "0x05398211bA2046E296fBc9a9D3EB49e3F15C3123", + "address": "0x4A5963Dd6792692e9147EdC7659936b96251917a", "kind": "uups" }, { - "address": "0x4A5963Dd6792692e9147EdC7659936b96251917a", + "address": "0xD9c75a1Aa4237BB72a41E5E26bd8384f10c1f55a", "kind": "uups" } ], @@ -1416,6 +1416,319 @@ }, "namespaces": {} } + }, + "addfe6d6ad3f78f6ccf914624fcf7eba6c970f5ba3a21a52f0184991b3d172e1": { + "address": "0x1ddd6eDE6f0C924adDb7109D366844A9aDf51deF", + "layout": { + "solcVersion": "0.8.23", + "storage": [ + { + "label": "_initialized", + "offset": 0, + "slot": "0", + "type": "t_uint8", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:63", + "retypedFrom": "bool" + }, + { + "label": "_initializing", + "offset": 1, + "slot": "0", + "type": "t_bool", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:68" + }, + { + "label": "__gap", + "offset": 0, + "slot": "1", + "type": "t_array(t_uint256)50_storage", + "contract": "ContextUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:40" + }, + { + "label": "_owner", + "offset": 0, + "slot": "51", + "type": "t_address", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22" + }, + { + "label": "__gap", + "offset": 0, + "slot": "52", + "type": "t_array(t_uint256)49_storage", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:94" + }, + { + "label": "__gap", + "offset": 0, + "slot": "101", + "type": "t_array(t_uint256)50_storage", + "contract": "ERC1967UpgradeUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol:169" + }, + { + "label": "__gap", + "offset": 0, + "slot": "151", + "type": "t_array(t_uint256)50_storage", + "contract": "UUPSUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol:111" + }, + { + "label": "counter", + "offset": 0, + "slot": "201", + "type": "t_uint256", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:17" + }, + { + "label": "escrowCounters", + "offset": 0, + "slot": "202", + "type": "t_mapping(t_address,t_uint256)", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:18" + }, + { + "label": "lastEscrow", + "offset": 0, + "slot": "203", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:19" + }, + { + "label": "staking", + "offset": 0, + "slot": "204", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:20" + }, + { + "label": "minimumStake", + "offset": 0, + "slot": "205", + "type": "t_uint256", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:21" + }, + { + "label": "admin", + "offset": 0, + "slot": "206", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:22" + }, + { + "label": "__gap", + "offset": 0, + "slot": "207", + "type": "t_array(t_uint256)44_storage", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:189" + } + ], + "types": { + "t_address": { + "label": "address", + "numberOfBytes": "20" + }, + "t_array(t_uint256)44_storage": { + "label": "uint256[44]", + "numberOfBytes": "1408" + }, + "t_array(t_uint256)49_storage": { + "label": "uint256[49]", + "numberOfBytes": "1568" + }, + "t_array(t_uint256)50_storage": { + "label": "uint256[50]", + "numberOfBytes": "1600" + }, + "t_bool": { + "label": "bool", + "numberOfBytes": "1" + }, + "t_mapping(t_address,t_uint256)": { + "label": "mapping(address => uint256)", + "numberOfBytes": "32" + }, + "t_uint256": { + "label": "uint256", + "numberOfBytes": "32" + }, + "t_uint8": { + "label": "uint8", + "numberOfBytes": "1" + } + }, + "namespaces": {} + } + }, + "addfe6d6ad3f78f6ccf914624fcf7eba6c970f5ba3a20a52f0184991b3d172e1": { + "address": "0x798d74224C35887495F45e8fBBf495C247EAA4c9", + "txHash": "0x758a238b3e424f349f6c413c3ff111a2c1a191a7075587129456cfca238f91ec", + "layout": { + "solcVersion": "0.8.23", + "storage": [ + { + "label": "_initialized", + "offset": 0, + "slot": "0", + "type": "t_uint8", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:63", + "retypedFrom": "bool" + }, + { + "label": "_initializing", + "offset": 1, + "slot": "0", + "type": "t_bool", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:68" + }, + { + "label": "__gap", + "offset": 0, + "slot": "1", + "type": "t_array(t_uint256)50_storage", + "contract": "ContextUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:40" + }, + { + "label": "_owner", + "offset": 0, + "slot": "51", + "type": "t_address", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22" + }, + { + "label": "__gap", + "offset": 0, + "slot": "52", + "type": "t_array(t_uint256)49_storage", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:94" + }, + { + "label": "__gap", + "offset": 0, + "slot": "101", + "type": "t_array(t_uint256)50_storage", + "contract": "ERC1967UpgradeUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol:169" + }, + { + "label": "__gap", + "offset": 0, + "slot": "151", + "type": "t_array(t_uint256)50_storage", + "contract": "UUPSUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol:111" + }, + { + "label": "counter", + "offset": 0, + "slot": "201", + "type": "t_uint256", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:17" + }, + { + "label": "escrowCounters", + "offset": 0, + "slot": "202", + "type": "t_mapping(t_address,t_uint256)", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:18" + }, + { + "label": "lastEscrow", + "offset": 0, + "slot": "203", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:19" + }, + { + "label": "staking", + "offset": 0, + "slot": "204", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:20" + }, + { + "label": "minimumStake", + "offset": 0, + "slot": "205", + "type": "t_uint256", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:21" + }, + { + "label": "admin", + "offset": 0, + "slot": "206", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:22" + }, + { + "label": "__gap", + "offset": 0, + "slot": "207", + "type": "t_array(t_uint256)44_storage", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:189" + } + ], + "types": { + "t_address": { + "label": "address", + "numberOfBytes": "20" + }, + "t_array(t_uint256)44_storage": { + "label": "uint256[44]", + "numberOfBytes": "1408" + }, + "t_array(t_uint256)49_storage": { + "label": "uint256[49]", + "numberOfBytes": "1568" + }, + "t_array(t_uint256)50_storage": { + "label": "uint256[50]", + "numberOfBytes": "1600" + }, + "t_bool": { + "label": "bool", + "numberOfBytes": "1" + }, + "t_mapping(t_address,t_uint256)": { + "label": "mapping(address => uint256)", + "numberOfBytes": "32" + }, + "t_uint256": { + "label": "uint256", + "numberOfBytes": "32" + }, + "t_uint8": { + "label": "uint8", + "numberOfBytes": "1" + } + }, + "namespaces": {} + } } } } diff --git a/packages/core/.openzeppelin/polygon.json b/packages/core/.openzeppelin/polygon.json index 3e7e80a6bc..ecfb3f007c 100644 --- a/packages/core/.openzeppelin/polygon.json +++ b/packages/core/.openzeppelin/polygon.json @@ -1,10 +1,6 @@ { "manifestVersion": "3.2", "proxies": [ - { - "address": "0xBDBfD2cC708199C5640C6ECdf3B0F4A4C67AdfcB", - "kind": "uups" - }, { "address": "0xcbAd56bE3f504E98bd70875823d3CC0242B7bB29", "kind": "uups" @@ -17,6 +13,10 @@ "address": "0x98ca1cbCf337e500c7557F28b3B0770602f4Bb81", "txHash": "0x568b30c00c08f20af291b8d517c5c51c775d1b18a9fb6b9d8ed78869a77e8747", "kind": "transparent" + }, + { + "address": "0xBDBfD2cC708199C5640C6ECdf3B0F4A4C67AdfcB", + "kind": "uups" } ], "impls": { @@ -1412,6 +1412,319 @@ }, "namespaces": {} } + }, + "addfe6d6ad3f78f6ccf914624fcf7eba6c970f5ba3a20a52f0184992b3d172e1": { + "address": "0x6512d894cc3d3FE93Da9d0420430136fA889FaB9", + "layout": { + "solcVersion": "0.8.23", + "storage": [ + { + "label": "_initialized", + "offset": 0, + "slot": "0", + "type": "t_uint8", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:63", + "retypedFrom": "bool" + }, + { + "label": "_initializing", + "offset": 1, + "slot": "0", + "type": "t_bool", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:68" + }, + { + "label": "__gap", + "offset": 0, + "slot": "1", + "type": "t_array(t_uint256)50_storage", + "contract": "ContextUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:40" + }, + { + "label": "_owner", + "offset": 0, + "slot": "51", + "type": "t_address", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22" + }, + { + "label": "__gap", + "offset": 0, + "slot": "52", + "type": "t_array(t_uint256)49_storage", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:94" + }, + { + "label": "__gap", + "offset": 0, + "slot": "101", + "type": "t_array(t_uint256)50_storage", + "contract": "ERC1967UpgradeUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol:169" + }, + { + "label": "__gap", + "offset": 0, + "slot": "151", + "type": "t_array(t_uint256)50_storage", + "contract": "UUPSUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol:111" + }, + { + "label": "counter", + "offset": 0, + "slot": "201", + "type": "t_uint256", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:17" + }, + { + "label": "escrowCounters", + "offset": 0, + "slot": "202", + "type": "t_mapping(t_address,t_uint256)", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:18" + }, + { + "label": "lastEscrow", + "offset": 0, + "slot": "203", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:19" + }, + { + "label": "staking", + "offset": 0, + "slot": "204", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:20" + }, + { + "label": "minimumStake", + "offset": 0, + "slot": "205", + "type": "t_uint256", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:21" + }, + { + "label": "admin", + "offset": 0, + "slot": "206", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:22" + }, + { + "label": "__gap", + "offset": 0, + "slot": "207", + "type": "t_array(t_uint256)44_storage", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:189" + } + ], + "types": { + "t_address": { + "label": "address", + "numberOfBytes": "20" + }, + "t_array(t_uint256)44_storage": { + "label": "uint256[44]", + "numberOfBytes": "1408" + }, + "t_array(t_uint256)49_storage": { + "label": "uint256[49]", + "numberOfBytes": "1568" + }, + "t_array(t_uint256)50_storage": { + "label": "uint256[50]", + "numberOfBytes": "1600" + }, + "t_bool": { + "label": "bool", + "numberOfBytes": "1" + }, + "t_mapping(t_address,t_uint256)": { + "label": "mapping(address => uint256)", + "numberOfBytes": "32" + }, + "t_uint256": { + "label": "uint256", + "numberOfBytes": "32" + }, + "t_uint8": { + "label": "uint8", + "numberOfBytes": "1" + } + }, + "namespaces": {} + } + }, + "addfe6d6ad3f78f6ccf914624fcf7eba6c970f5ba3a20a52f0184991b3d172e1": { + "address": "0xEf6Da3aB52c33925Be3F84038193a7e1331F51E6", + "txHash": "0x277d6d5a3e483af8f13ca30b4c1c721b2ec0e66e7c0cdd762e8fc740f9c21440", + "layout": { + "solcVersion": "0.8.23", + "storage": [ + { + "label": "_initialized", + "offset": 0, + "slot": "0", + "type": "t_uint8", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:63", + "retypedFrom": "bool" + }, + { + "label": "_initializing", + "offset": 1, + "slot": "0", + "type": "t_bool", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:68" + }, + { + "label": "__gap", + "offset": 0, + "slot": "1", + "type": "t_array(t_uint256)50_storage", + "contract": "ContextUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:40" + }, + { + "label": "_owner", + "offset": 0, + "slot": "51", + "type": "t_address", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22" + }, + { + "label": "__gap", + "offset": 0, + "slot": "52", + "type": "t_array(t_uint256)49_storage", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:94" + }, + { + "label": "__gap", + "offset": 0, + "slot": "101", + "type": "t_array(t_uint256)50_storage", + "contract": "ERC1967UpgradeUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol:169" + }, + { + "label": "__gap", + "offset": 0, + "slot": "151", + "type": "t_array(t_uint256)50_storage", + "contract": "UUPSUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol:111" + }, + { + "label": "counter", + "offset": 0, + "slot": "201", + "type": "t_uint256", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:17" + }, + { + "label": "escrowCounters", + "offset": 0, + "slot": "202", + "type": "t_mapping(t_address,t_uint256)", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:18" + }, + { + "label": "lastEscrow", + "offset": 0, + "slot": "203", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:19" + }, + { + "label": "staking", + "offset": 0, + "slot": "204", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:20" + }, + { + "label": "minimumStake", + "offset": 0, + "slot": "205", + "type": "t_uint256", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:21" + }, + { + "label": "admin", + "offset": 0, + "slot": "206", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:22" + }, + { + "label": "__gap", + "offset": 0, + "slot": "207", + "type": "t_array(t_uint256)44_storage", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:189" + } + ], + "types": { + "t_address": { + "label": "address", + "numberOfBytes": "20" + }, + "t_array(t_uint256)44_storage": { + "label": "uint256[44]", + "numberOfBytes": "1408" + }, + "t_array(t_uint256)49_storage": { + "label": "uint256[49]", + "numberOfBytes": "1568" + }, + "t_array(t_uint256)50_storage": { + "label": "uint256[50]", + "numberOfBytes": "1600" + }, + "t_bool": { + "label": "bool", + "numberOfBytes": "1" + }, + "t_mapping(t_address,t_uint256)": { + "label": "mapping(address => uint256)", + "numberOfBytes": "32" + }, + "t_uint256": { + "label": "uint256", + "numberOfBytes": "32" + }, + "t_uint8": { + "label": "uint8", + "numberOfBytes": "1" + } + }, + "namespaces": {} + } } } } diff --git a/packages/core/.openzeppelin/sepolia.json b/packages/core/.openzeppelin/sepolia.json index 9666a47f72..8c7acb1181 100644 --- a/packages/core/.openzeppelin/sepolia.json +++ b/packages/core/.openzeppelin/sepolia.json @@ -3863,6 +3863,163 @@ }, "namespaces": {} } + }, + "addfe6d6ad3f78f6ccf914624fcf7eba6c970f5ba3a20a52f0184991b3d172e1": { + "address": "0x779875bdBF7b9Da080c946b0c603F02837D65646", + "txHash": "0x76f8f486b23b6ef79f30edfab76821366b2d656f06ba1e53e576efaff3f327cc", + "layout": { + "solcVersion": "0.8.23", + "storage": [ + { + "label": "_initialized", + "offset": 0, + "slot": "0", + "type": "t_uint8", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:63", + "retypedFrom": "bool" + }, + { + "label": "_initializing", + "offset": 1, + "slot": "0", + "type": "t_bool", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:68" + }, + { + "label": "__gap", + "offset": 0, + "slot": "1", + "type": "t_array(t_uint256)50_storage", + "contract": "ContextUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:40" + }, + { + "label": "_owner", + "offset": 0, + "slot": "51", + "type": "t_address", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22" + }, + { + "label": "__gap", + "offset": 0, + "slot": "52", + "type": "t_array(t_uint256)49_storage", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:94" + }, + { + "label": "__gap", + "offset": 0, + "slot": "101", + "type": "t_array(t_uint256)50_storage", + "contract": "ERC1967UpgradeUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol:169" + }, + { + "label": "__gap", + "offset": 0, + "slot": "151", + "type": "t_array(t_uint256)50_storage", + "contract": "UUPSUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol:111" + }, + { + "label": "counter", + "offset": 0, + "slot": "201", + "type": "t_uint256", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:17" + }, + { + "label": "escrowCounters", + "offset": 0, + "slot": "202", + "type": "t_mapping(t_address,t_uint256)", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:18" + }, + { + "label": "lastEscrow", + "offset": 0, + "slot": "203", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:19" + }, + { + "label": "staking", + "offset": 0, + "slot": "204", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:20" + }, + { + "label": "minimumStake", + "offset": 0, + "slot": "205", + "type": "t_uint256", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:21" + }, + { + "label": "admin", + "offset": 0, + "slot": "206", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:22" + }, + { + "label": "__gap", + "offset": 0, + "slot": "207", + "type": "t_array(t_uint256)44_storage", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:189" + } + ], + "types": { + "t_address": { + "label": "address", + "numberOfBytes": "20" + }, + "t_array(t_uint256)44_storage": { + "label": "uint256[44]", + "numberOfBytes": "1408" + }, + "t_array(t_uint256)49_storage": { + "label": "uint256[49]", + "numberOfBytes": "1568" + }, + "t_array(t_uint256)50_storage": { + "label": "uint256[50]", + "numberOfBytes": "1600" + }, + "t_bool": { + "label": "bool", + "numberOfBytes": "1" + }, + "t_mapping(t_address,t_uint256)": { + "label": "mapping(address => uint256)", + "numberOfBytes": "32" + }, + "t_uint256": { + "label": "uint256", + "numberOfBytes": "32" + }, + "t_uint8": { + "label": "uint8", + "numberOfBytes": "1" + } + }, + "namespaces": {} + } } } } diff --git a/packages/core/.openzeppelin/unknown-80002.json b/packages/core/.openzeppelin/unknown-80002.json index 2664aad429..0d69cc975a 100644 --- a/packages/core/.openzeppelin/unknown-80002.json +++ b/packages/core/.openzeppelin/unknown-80002.json @@ -1965,6 +1965,163 @@ }, "namespaces": {} } + }, + "addfe6d6ad3f78f6ccf914624fcf7eba6c970f5ba3a20a52f0184991b3d172e1": { + "address": "0x1993e1436BcDC573F7583EebEc49D1854f09D103", + "txHash": "0xb382151653575a86d21c87063dfc409b33888b2bd39c1f0172834a8771f3c9ed", + "layout": { + "solcVersion": "0.8.23", + "storage": [ + { + "label": "_initialized", + "offset": 0, + "slot": "0", + "type": "t_uint8", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:63", + "retypedFrom": "bool" + }, + { + "label": "_initializing", + "offset": 1, + "slot": "0", + "type": "t_bool", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:68" + }, + { + "label": "__gap", + "offset": 0, + "slot": "1", + "type": "t_array(t_uint256)50_storage", + "contract": "ContextUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:40" + }, + { + "label": "_owner", + "offset": 0, + "slot": "51", + "type": "t_address", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22" + }, + { + "label": "__gap", + "offset": 0, + "slot": "52", + "type": "t_array(t_uint256)49_storage", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:94" + }, + { + "label": "__gap", + "offset": 0, + "slot": "101", + "type": "t_array(t_uint256)50_storage", + "contract": "ERC1967UpgradeUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol:169" + }, + { + "label": "__gap", + "offset": 0, + "slot": "151", + "type": "t_array(t_uint256)50_storage", + "contract": "UUPSUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol:111" + }, + { + "label": "counter", + "offset": 0, + "slot": "201", + "type": "t_uint256", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:17" + }, + { + "label": "escrowCounters", + "offset": 0, + "slot": "202", + "type": "t_mapping(t_address,t_uint256)", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:18" + }, + { + "label": "lastEscrow", + "offset": 0, + "slot": "203", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:19" + }, + { + "label": "staking", + "offset": 0, + "slot": "204", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:20" + }, + { + "label": "minimumStake", + "offset": 0, + "slot": "205", + "type": "t_uint256", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:21" + }, + { + "label": "admin", + "offset": 0, + "slot": "206", + "type": "t_address", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:22" + }, + { + "label": "__gap", + "offset": 0, + "slot": "207", + "type": "t_array(t_uint256)44_storage", + "contract": "EscrowFactory", + "src": "contracts/EscrowFactory.sol:189" + } + ], + "types": { + "t_address": { + "label": "address", + "numberOfBytes": "20" + }, + "t_array(t_uint256)44_storage": { + "label": "uint256[44]", + "numberOfBytes": "1408" + }, + "t_array(t_uint256)49_storage": { + "label": "uint256[49]", + "numberOfBytes": "1568" + }, + "t_array(t_uint256)50_storage": { + "label": "uint256[50]", + "numberOfBytes": "1600" + }, + "t_bool": { + "label": "bool", + "numberOfBytes": "1" + }, + "t_mapping(t_address,t_uint256)": { + "label": "mapping(address => uint256)", + "numberOfBytes": "32" + }, + "t_uint256": { + "label": "uint256", + "numberOfBytes": "32" + }, + "t_uint8": { + "label": "uint8", + "numberOfBytes": "1" + } + }, + "namespaces": {} + } } } } diff --git a/packages/core/contracts/Escrow.sol b/packages/core/contracts/Escrow.sol index c6e677d168..0025f402a2 100644 --- a/packages/core/contracts/Escrow.sol +++ b/packages/core/contracts/Escrow.sol @@ -269,12 +269,20 @@ contract Escrow is IEscrow, ReentrancyGuard { * and updating the status to Complete or Cancelled. */ function _finalize() private { - if (remainingFunds > 0) { - IERC20(token).safeTransfer(launcher, remainingFunds); + EscrowStatuses _status = status; + uint256 _remaining = remainingFunds; + + if (_remaining > 0) { + IERC20 tokenContract = IERC20(token); + tokenContract.safeTransfer(launcher, _remaining); + if (_status == EscrowStatuses.ToCancel) { + emit CancellationRefund(_remaining); + } remainingFunds = 0; reservedFunds = 0; } - if (status == EscrowStatuses.ToCancel) { + + if (_status == EscrowStatuses.ToCancel) { status = EscrowStatuses.Cancelled; emit Cancelled(); } else { diff --git a/packages/core/eslint.config.mjs b/packages/core/eslint.config.mjs new file mode 100644 index 0000000000..35f4c1108c --- /dev/null +++ b/packages/core/eslint.config.mjs @@ -0,0 +1,43 @@ +// @ts-check +import eslint from '@eslint/js'; +import globals from 'globals'; +import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'; +import tseslint from 'typescript-eslint'; + +export default tseslint.config( + { + ignores: ['artifacts/', 'cache/', 'coverage/', 'typechain-types/', 'dist/'], + }, + eslint.configs.recommended, + tseslint.configs.recommended, + eslintPluginPrettierRecommended, + { + files: ['**/*.ts', '**/*.tsx', '**/*.js'], + languageOptions: { + globals: { + ...globals.node, + ...globals.es2022, + }, + ecmaVersion: 2022, + sourceType: 'module', + parserOptions: { + projectService: true, + tsconfigRootDir: import.meta.dirname, + }, + }, + rules: { + 'no-console': 'warn', + 'prefer-const': 'warn', + 'no-extra-semi': 'off', + '@typescript-eslint/no-extra-semi': 'off', + '@typescript-eslint/no-inferrable-types': 'warn', + '@typescript-eslint/no-empty-function': 'warn', + '@typescript-eslint/no-unused-expressions': 'off', + '@/quotes': [ + 'error', + 'single', + { avoidEscape: true, allowTemplateLiterals: true }, + ], + }, + } +); diff --git a/packages/core/package.json b/packages/core/package.json index 83d5e4f902..ff7700b083 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,7 +1,7 @@ { "name": "@human-protocol/core", "description": "Human Protocol Core Smart Contracts", - "version": "5.0.0", + "version": "5.0.1", "files": [ "contracts/**/*.sol", "abis/**/*.json", @@ -71,14 +71,15 @@ "@types/node": "^22.15.16", "chai": "^4.5.0", "concurrently": "^9.1.2", - "eslint": "^8.55.0", + "eslint": "^9.39.1", + "eslint-plugin-prettier": "^5.2.1", "ethers": "~6.15.0", "hardhat": "^2.26.0", "hardhat-abi-exporter": "^2.10.1", "hardhat-contract-sizer": "^2.6.1", "hardhat-dependency-compiler": "^1.2.1", "hardhat-gas-reporter": "^2.0.2", - "openpgp": "5.11.2", + "openpgp": "6.2.2", "prettier": "^3.4.2", "prettier-plugin-solidity": "^1.3.1", "solidity-coverage": "^0.8.16", diff --git a/packages/core/test/Escrow.ts b/packages/core/test/Escrow.ts index 2850264373..1a4cbd9eb2 100644 --- a/packages/core/test/Escrow.ts +++ b/packages/core/test/Escrow.ts @@ -1,4 +1,3 @@ -/* eslint-disable @typescript-eslint/no-explicit-any */ import { expect } from 'chai'; import { ethers } from 'hardhat'; import { Signer, ZeroAddress } from 'ethers'; @@ -466,7 +465,9 @@ describe('Escrow', function () { await escrow.connect(launcher).requestCancellation(); await expect(storeResults()) .to.emit(escrow, 'IntermediateStorage') - .withArgs(FIXTURE_URL, FIXTURE_HASH); + .withArgs(FIXTURE_URL, FIXTURE_HASH) + .to.emit(escrow, 'CancellationRefund') + .withArgs(FIXTURE_FUND_AMOUNT); expect(await escrow.intermediateResultsUrl()).to.equal(FIXTURE_URL); expect(await escrow.status()).to.equal(Status.Cancelled); expect(await escrow.remainingFunds()).to.equal(ethers.parseEther('0')); @@ -492,7 +493,9 @@ describe('Escrow', function () { storeResults(FIXTURE_URL, FIXTURE_HASH, ethers.parseEther('0'), admin) ) .to.emit(escrow, 'IntermediateStorage') - .withArgs(FIXTURE_URL, FIXTURE_HASH); + .withArgs(FIXTURE_URL, FIXTURE_HASH) + .to.emit(escrow, 'CancellationRefund') + .withArgs(FIXTURE_FUND_AMOUNT); expect(await escrow.intermediateResultsUrl()).to.equal(FIXTURE_URL); expect(await escrow.status()).to.equal(Status.Cancelled); expect(await escrow.remainingFunds()).to.equal(ethers.parseEther('0')); @@ -1566,10 +1569,11 @@ describe('Escrow', function () { escrow.getAddress() ); - await expect(escrow.connect(reputationOracle).cancel()).to.emit( - escrow, - 'Cancelled' - ); + await expect(escrow.connect(reputationOracle).cancel()) + .to.emit(escrow, 'CancellationRefund') + .withArgs(initialEscrowBalance) + .to.emit(escrow, 'Cancelled'); + expect(await escrow.status()).to.equal(Status.Cancelled); expect(await escrow.remainingFunds()).to.equal('0'); @@ -1587,10 +1591,11 @@ describe('Escrow', function () { escrow.getAddress() ); - await expect(escrow.connect(admin).cancel()).to.emit( - escrow, - 'Cancelled' - ); + await expect(escrow.connect(admin).cancel()) + .to.emit(escrow, 'CancellationRefund') + .withArgs(initialEscrowBalance) + .to.emit(escrow, 'Cancelled'); + expect(await escrow.status()).to.equal(Status.Cancelled); expect(await escrow.remainingFunds()).to.equal('0'); @@ -1610,10 +1615,11 @@ describe('Escrow', function () { await storeResults(FIXTURE_URL, FIXTURE_HASH, initialEscrowBalance); - await expect(escrow.connect(reputationOracle).cancel()).to.emit( - escrow, - 'Cancelled' - ); + await expect(escrow.connect(reputationOracle).cancel()) + .to.emit(escrow, 'CancellationRefund') + .withArgs(initialEscrowBalance) + .to.emit(escrow, 'Cancelled'); + expect(await escrow.status()).to.equal(Status.Cancelled); expect(await escrow.remainingFunds()).to.equal('0'); @@ -1633,10 +1639,11 @@ describe('Escrow', function () { await storeResults(FIXTURE_URL, FIXTURE_HASH, initialEscrowBalance); - await expect(escrow.connect(admin).cancel()).to.emit( - escrow, - 'Cancelled' - ); + await expect(escrow.connect(admin).cancel()) + .to.emit(escrow, 'CancellationRefund') + .withArgs(initialEscrowBalance) + .to.emit(escrow, 'Cancelled'); + expect(await escrow.status()).to.equal(Status.Cancelled); expect(await escrow.remainingFunds()).to.equal('0'); @@ -1661,10 +1668,11 @@ describe('Escrow', function () { 'bulkPayOut(address[],uint256[],string,string,string,bool)' ]([externalAddress], [initialEscrowBalance / 2n], FIXTURE_URL, FIXTURE_HASH, '000', false); - await expect(escrow.connect(reputationOracle).cancel()).to.emit( - escrow, - 'Cancelled' - ); + await expect(escrow.connect(reputationOracle).cancel()) + .to.emit(escrow, 'CancellationRefund') + .withArgs(initialEscrowBalance / 2n) + .to.emit(escrow, 'Cancelled'); + expect(await escrow.status()).to.equal(Status.Cancelled); expect(await escrow.remainingFunds()).to.equal('0'); @@ -1689,10 +1697,11 @@ describe('Escrow', function () { 'bulkPayOut(address[],uint256[],string,string,string,bool)' ]([externalAddress], [initialEscrowBalance / 2n], FIXTURE_URL, FIXTURE_HASH, '000', false); - await expect(escrow.connect(admin).cancel()).to.emit( - escrow, - 'Cancelled' - ); + await expect(escrow.connect(admin).cancel()) + .to.emit(escrow, 'CancellationRefund') + .withArgs(initialEscrowBalance / 2n) + .to.emit(escrow, 'Cancelled'); + expect(await escrow.status()).to.equal(Status.Cancelled); expect(await escrow.remainingFunds()).to.equal('0'); diff --git a/packages/core/test/governance/GovernanceUtils.ts b/packages/core/test/governance/GovernanceUtils.ts index c75104dca8..ead0c4992c 100644 --- a/packages/core/test/governance/GovernanceUtils.ts +++ b/packages/core/test/governance/GovernanceUtils.ts @@ -27,7 +27,7 @@ export const increaseTime = async (seconds: number) => { try { await ethers.provider.send('evm_increaseTime', [seconds]); await ethers.provider.send('evm_mine'); - } catch (error) { + } catch { throw new Error(`Failed to increase time by ${seconds} seconds`); } }; diff --git a/packages/core/tsconfig.json b/packages/core/tsconfig.json index fd85025358..d7704c0fd7 100644 --- a/packages/core/tsconfig.json +++ b/packages/core/tsconfig.json @@ -4,7 +4,7 @@ "baseUrl": ".", "declaration": true, "declarationMap": true, - "outDir": "./dist", + "outDir": "./dist" }, "include": ["./scripts", "./test", "./typechain-types"], "files": ["./hardhat.config.ts"] diff --git a/packages/examples/gcv/.eslintrc.js b/packages/examples/gcv/.eslintrc.js deleted file mode 100644 index a2d2575861..0000000000 --- a/packages/examples/gcv/.eslintrc.js +++ /dev/null @@ -1,26 +0,0 @@ -module.exports = { - parser: '@typescript-eslint/parser', - parserOptions: { - project: 'tsconfig.json', - tsconfigRootDir: __dirname, - sourceType: 'module', - }, - plugins: ['@typescript-eslint/eslint-plugin'], - extends: [ - 'plugin:@typescript-eslint/recommended', - 'plugin:prettier/recommended', - ], - root: true, - env: { - node: true, - jest: true, - }, - ignorePatterns: ['.eslintrc.js'], - rules: { - '@typescript-eslint/interface-name-prefix': 'off', - '@typescript-eslint/explicit-function-return-type': 'off', - '@typescript-eslint/explicit-module-boundary-types': 'off', - '@typescript-eslint/no-explicit-any': 'off', - "@typescript-eslint/no-empty-function": "off", - }, -}; diff --git a/packages/examples/gcv/eslint.config.mjs b/packages/examples/gcv/eslint.config.mjs new file mode 100644 index 0000000000..df1b4ffb4b --- /dev/null +++ b/packages/examples/gcv/eslint.config.mjs @@ -0,0 +1,58 @@ +import eslint from '@eslint/js'; +import globals from 'globals'; +import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'; +import jestPlugin from 'eslint-plugin-jest'; +import tseslint from 'typescript-eslint'; + +/** @type {import('eslint').Linter.FlatConfig[]} */ +const config = tseslint.config( + { + ignores: ['dist', 'node_modules'], + }, + eslint.configs.recommended, + tseslint.configs.recommended, + eslintPluginPrettierRecommended, + { + files: ['**/*.ts', '**/*.js'], + languageOptions: { + globals: { + ...globals.node, + ...globals.es2022, + }, + ecmaVersion: 2022, + sourceType: 'module', + parserOptions: { + projectService: true, + tsconfigRootDir: import.meta.dirname, + }, + }, + plugins: { + jest: jestPlugin, + }, + rules: { + '@typescript-eslint/interface-name-prefix': 'off', + '@typescript-eslint/explicit-function-return-type': 'off', + '@typescript-eslint/explicit-module-boundary-types': 'off', + '@typescript-eslint/no-explicit-any': 'off', + '@typescript-eslint/no-empty-function': 'off', + '@/quotes': [ + 'error', + 'single', + { avoidEscape: true, allowTemplateLiterals: true }, + ], + }, + }, + { + files: ['**/*.spec.ts', '**/*.spec.tsx', '**/*.test.ts', '**/*.test.tsx'], + languageOptions: { + globals: { + ...globals.jest, + }, + }, + plugins: { + jest: jestPlugin, + }, + }, +); + +export default config; diff --git a/packages/examples/gcv/package.json b/packages/examples/gcv/package.json index 307424e5ed..e3c5389ff9 100644 --- a/packages/examples/gcv/package.json +++ b/packages/examples/gcv/package.json @@ -19,8 +19,9 @@ }, "devDependencies": { "@types/xml2js": "^0.4.14", - "eslint": "^8.55.0", - "jest": "^29.7.0", + "eslint": "^9.39.1", + "eslint-plugin-jest": "^28.9.0", + "jest": "^30.2.0", "typescript": "^5.8.3" } } diff --git a/packages/examples/gcv/src/utils/storage.ts b/packages/examples/gcv/src/utils/storage.ts index a4e0a26339..f0976d74d8 100644 --- a/packages/examples/gcv/src/utils/storage.ts +++ b/packages/examples/gcv/src/utils/storage.ts @@ -53,57 +53,46 @@ function isRegion(value: string): value is AWSRegions { } export async function listObjectsInBucket(url: URL): Promise { - return new Promise(async (resolve, reject) => { - try { - let objects: string[] = []; - let nextContinuationToken: string | undefined; - const baseUrl = `${url.protocol}//${url.host}/`; - do { - let requestOptions = `${baseUrl}`; + let objects: string[] = []; + let nextContinuationToken: string | undefined; + const baseUrl = `${url.protocol}//${url.host}/`; + do { + let requestOptions = `${baseUrl}`; - if (url.hostname !== 'localhost' && url.hostname !== '127.0.0.1') { - requestOptions += `?list-type=2${ - nextContinuationToken - ? `&continuation-token=${encodeURIComponent( - nextContinuationToken, - )}` - : '' - }${url.pathname ? `&prefix=${url.pathname.replace(/^\//, '')}` : ''}`; - } else { - requestOptions += `${url.pathname ? `${url.pathname.replace(/^\//, '')}` : ''}?list-type=2${ - nextContinuationToken - ? `&continuation-token=${encodeURIComponent( - nextContinuationToken, - )}` - : '' - }`; - } + if (url.hostname !== 'localhost' && url.hostname !== '127.0.0.1') { + requestOptions += `?list-type=2${ + nextContinuationToken + ? `&continuation-token=${encodeURIComponent(nextContinuationToken)}` + : '' + }${url.pathname ? `&prefix=${url.pathname.replace(/^\//, '')}` : ''}`; + } else { + requestOptions += `${url.pathname ? `${url.pathname.replace(/^\//, '')}` : ''}?list-type=2${ + nextContinuationToken + ? `&continuation-token=${encodeURIComponent(nextContinuationToken)}` + : '' + }`; + } - const response = await axios.get(requestOptions); + const response = await axios.get(requestOptions); - if (response.status === HttpStatus.OK && response.data) { - parseString(response.data, (err: any, result: any) => { - if (err) { - reject(err); - } - nextContinuationToken = result.ListBucketResult - .NextContinuationToken - ? result.ListBucketResult.NextContinuationToken[0] - : undefined; + if (response.status === HttpStatus.OK && response.data) { + parseString(response.data, (err: any, result: any) => { + if (err) { + throw new Error(err); + } + nextContinuationToken = result.ListBucketResult.NextContinuationToken + ? result.ListBucketResult.NextContinuationToken[0] + : undefined; - const objectKeys = result.ListBucketResult.Contents?.map( - (item: any) => item.Key, - ); + const objectKeys = result.ListBucketResult.Contents?.map( + (item: any) => item.Key, + ); - objects = objects.concat(objectKeys?.flat()); - }); - } else { - reject(ErrorBucket.FailedToFetchBucketContents); - } - } while (nextContinuationToken); - resolve(objects); - } catch (err) { - reject(err); + objects = objects.concat(objectKeys?.flat()); + }); + } else { + throw new Error(ErrorBucket.FailedToFetchBucketContents); } - }); + } while (nextContinuationToken); + return objects; } diff --git a/packages/examples/gcv/src/utils/vision.spec.ts b/packages/examples/gcv/src/utils/vision.spec.ts index c210f74758..772d1979a6 100644 --- a/packages/examples/gcv/src/utils/vision.spec.ts +++ b/packages/examples/gcv/src/utils/vision.spec.ts @@ -1,5 +1,5 @@ import * as fs from 'fs'; -import { ImageAnnotatorClient, protos } from '@google-cloud/vision'; +import { ImageAnnotatorClient } from '@google-cloud/vision'; import { generateBucketUrl, listObjectsInBucket } from './storage'; import { StorageDataDto } from '../dto/storage'; import { VisionModeration } from './vision'; diff --git a/packages/libs/logger/README.md b/packages/libs/logger/README.md index 1091a928f5..45dc2b0824 100644 --- a/packages/libs/logger/README.md +++ b/packages/libs/logger/README.md @@ -39,22 +39,32 @@ It's expected to be used only in dev environments, such as a developer toolbox, Lib exports `createLogger` factory function that should be used to create a logger intance with proper bindings for application. Recommended bindings are at least `service` and `environment`, so that you can distinguish logs coming from different sources in your log-management system easilly. ```ts -import { createLogger, LogLevel } from '@human-protocol/logger'; +import { createLogger, isLogLevel, LogLevel } from '@human-protocol/logger'; -const ENV_NAME = process.NODE_ENV || 'development'; +const ENV_NAME = process.env.NODE_ENV || 'development'; const isDevelopment = ENV_NAME === 'development'; -const isTest = process.NODE_ENV === 'test' +const isTest = process.env.NODE_ENV === 'test'; + +const LOG_LEVEL_OVERRIDE = process.env.LOG_LEVEL; + +let logLevel = LogLevel.INFO; +if (isLogLevel(LOG_LEVEL_OVERRIDE)) { + logLevel = LOG_LEVEL_OVERRIDE; +} else if (isDevelopment) { + logLevel = LogLevel.DEBUG; +} const defaultAppLogger = createLogger( { name: 'DefaultLogger', - level: isDevelopment ? LogLevel.DEBUG : LogLevel.INFO, - pretty: isDevelopment, + level: logLevel, + pretty: isDevelopment || process.env.LOG_PRETTY === 'true', disabled: isTest, }, { environment: ENV_NAME, - service: 'you-application-name', + service: 'your-application-name', + version: 'your-app-version', }, ); @@ -88,6 +98,8 @@ import { Logger } from '@nestjs/common'; ``` ## Usage examples +> Some of the examples are available in `examples` folder. To run - use `yarn ts-node examples/`, e.g. `yarn ts-node examples/basic.ts` + Logger has next API contract: log message first and any useful detail in log meta as a second argument. :information_source: If meta is not a plain object and not an error - it is being logged as "meta" property @@ -99,7 +111,7 @@ Logger has next API contract: log message first and any useful detail in log met logger.info('Info without any context'); // to log message with some context info -loger.info('New user registered', { +logger.info('New user registered', { userAgent, country, ip, @@ -113,7 +125,7 @@ logger.error('Something went wrong', error); logger.error('Error updating some entity', { error, entityId: 42, - ...extra + ...extra, }); // to log anything diff --git a/packages/libs/logger/eslint.config.mjs b/packages/libs/logger/eslint.config.mjs index 034ebf9082..3dda18fe0c 100644 --- a/packages/libs/logger/eslint.config.mjs +++ b/packages/libs/logger/eslint.config.mjs @@ -36,21 +36,34 @@ export default tseslint.config( '@typescript-eslint/no-explicit-any': 'warn', '@typescript-eslint/no-floating-promises': 'warn', '@typescript-eslint/no-unsafe-argument': 'warn', - '@typescript-eslint/no-unused-vars': ['error', { - "args": "all", - "argsIgnorePattern": "^_", - "caughtErrors": "all", - "caughtErrorsIgnorePattern": "^noop", - "destructuredArrayIgnorePattern": "^_", - "varsIgnorePattern": "^_", - "ignoreRestSiblings": true - }], + '@typescript-eslint/no-unused-vars': [ + 'error', + { + args: 'all', + argsIgnorePattern: '^_', + caughtErrors: 'all', + caughtErrorsIgnorePattern: '^noop', + destructuredArrayIgnorePattern: '^_', + varsIgnorePattern: '^_', + ignoreRestSiblings: true, + }, + ], + '@/quotes': [ + 'error', + 'single', + { 'avoidEscape': true, 'allowTemplateLiterals': true } + ], 'import/order': [ 'warn', { alphabetize: { order: 'asc', caseInsensitive: true }, 'newlines-between': 'always', - groups: ['builtin', 'external', 'internal', ['parent', 'sibling', 'index']], + groups: [ + 'builtin', + 'external', + 'internal', + ['parent', 'sibling', 'index'], + ], }, ], }, diff --git a/packages/libs/logger/examples/basic.ts b/packages/libs/logger/examples/basic.ts new file mode 100644 index 0000000000..ede811730d --- /dev/null +++ b/packages/libs/logger/examples/basic.ts @@ -0,0 +1,82 @@ +import logger from '../src'; + +// to log simple message +logger.info('Info without any context'); + +// to log message with some context info +logger.info('New user registered', { + userAgent: + 'Mozilla/5.0 (X11; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/83.0', + country: 'Anguilla', + ip: '127.0.0.1', + email: 'john.doe@logger.lib', +}); + +// to log an error +class CustomError extends Error { + constructor(readonly details: string) { + super('Custom error happened'); + /** + * Haven't assigned 'name' from 'this.constructor.name', + * but in example you should see correct error kind anyways. + */ + } +} +logger.error( + 'Something went wrong 1', + new CustomError('Error as whole second argument'), +); +class CustomError2 extends Error { + constructor(readonly details: string) { + super('Custom error happened'); + /** + * Assign custom name to see it in error kind. + */ + this.name = 'CustomErrorName'; + } +} +logger.error('Something went wrong 2', { + error: new CustomError2('Error as specific key for errors'), +}); + +// logging custom error with toJSON +class ErrorWithToJSON extends CustomError { + constructor(readonly toLog: string) { + super('Error has toJSON and "details" prop will not be logged'); + } + + toJSON() { + return { + name: this.name, + stack: this.stack, + toLog: this.toLog, + }; + } +} +logger.error('Logging custom error with toJSON', new ErrorWithToJSON('No way')); + +// or error with some extra context +const extra = { + field: 'status', + newValue: 'active', +}; +logger.error('Error updating some entity', { + error: new Error('Failed to update example entity'), + entityId: 42, + ...extra, +}); + +// to log anything +logger.debug('Show me value', 42n); + +// named logger +const loggerName = 'example-named-logger'; +const namedLogger = logger.child({ name: loggerName }); +namedLogger.debug('name should be', loggerName); + +// context logger +const context = 'example-context'; +const contextLogger = logger.child({ context }); +contextLogger.info('Helpful info', { + expectedContext: context, +}); diff --git a/packages/libs/logger/examples/factory-function/index.ts b/packages/libs/logger/examples/factory-function/index.ts new file mode 100644 index 0000000000..9079c5ef24 --- /dev/null +++ b/packages/libs/logger/examples/factory-function/index.ts @@ -0,0 +1,3 @@ +import logger from './logger'; + +logger.info('Some application log', { extras: 'useful-context' }); diff --git a/packages/libs/logger/examples/factory-function/logger.ts b/packages/libs/logger/examples/factory-function/logger.ts new file mode 100644 index 0000000000..116fe27c08 --- /dev/null +++ b/packages/libs/logger/examples/factory-function/logger.ts @@ -0,0 +1,30 @@ +import { createLogger, isLogLevel, LogLevel } from '../../src'; + +const ENV_NAME = process.env.NODE_ENV || 'development'; +const isDevelopment = ENV_NAME === 'development'; +const isTest = process.env.NODE_ENV === 'test'; + +const LOG_LEVEL_OVERRIDE = process.env.LOG_LEVEL; + +let logLevel = LogLevel.INFO; +if (isLogLevel(LOG_LEVEL_OVERRIDE)) { + logLevel = LOG_LEVEL_OVERRIDE; +} else if (isDevelopment) { + logLevel = LogLevel.DEBUG; +} + +const defaultExampleLogger = createLogger( + { + name: 'DefaultLogger', + level: logLevel, + pretty: isDevelopment || process.env.LOG_PRETTY === 'true', + disabled: isTest, + }, + { + environment: ENV_NAME, + service: 'logger-examples', + version: 'ff-ex-v1', + }, +); + +export default defaultExampleLogger; diff --git a/packages/libs/logger/examples/fetch.ts b/packages/libs/logger/examples/fetch.ts new file mode 100644 index 0000000000..c9c5830f5c --- /dev/null +++ b/packages/libs/logger/examples/fetch.ts @@ -0,0 +1,11 @@ +import logger from '../src'; + +void (async () => { + try { + await fetch('https://httpbin.org/delay/5', { + signal: AbortSignal.timeout(0), + }); + } catch (error) { + logger.error('Failed to fetch', error); + } +})(); diff --git a/packages/libs/logger/package.json b/packages/libs/logger/package.json index 36a97f5b66..7267f84582 100644 --- a/packages/libs/logger/package.json +++ b/packages/libs/logger/package.json @@ -1,6 +1,6 @@ { "name": "@human-protocol/logger", - "version": "1.1.2", + "version": "1.2.0", "description": "Unified logging package for HUMAN Protocol", "type": "commonjs", "main": "dist/index.js", @@ -16,19 +16,20 @@ "prepack": "[ \"${SKIP_PREPACK:-}\" = \"true\" ] && exit 0 || yarn build" }, "dependencies": { - "pino": "^9.7.0", - "pino-pretty": "^13.0.0" + "pino": "^10.1.0", + "pino-pretty": "^13.1.2" }, "devDependencies": { "@eslint/js": "^9.30.1", "@types/node": "^22.10.5", - "eslint": "^9.30.1", + "eslint": "^9.39.1", "eslint-config-prettier": "^10.1.5", "eslint-import-resolver-typescript": "^4.4.4", "eslint-plugin-import": "^2.32.0", "eslint-plugin-prettier": "^5.5.1", "globals": "^16.3.0", "prettier": "^3.4.2", + "ts-node": "^10.9.2", "typescript": "^5.8.3", "typescript-eslint": "^8.35.1" }, @@ -49,7 +50,7 @@ ], "license": "MIT", "lint-staged": { - "*.ts": [ + "src/*.ts": [ "prettier --write", "eslint --fix" ] diff --git a/packages/libs/logger/src/abstract-logger.ts b/packages/libs/logger/src/abstract-logger.ts index 2bf1f7f493..fdba1c06d7 100644 --- a/packages/libs/logger/src/abstract-logger.ts +++ b/packages/libs/logger/src/abstract-logger.ts @@ -1,3 +1,4 @@ +import { ERROR_KEY, MESSAGE_KEY, TIMESTAMP_KEY } from './constants'; import { ChildBindings, Logger, LogLevel, LogMeta, LogRecord } from './types'; function isPlainObject(maybeObj: unknown): maybeObj is LogMeta { @@ -8,15 +9,48 @@ function isValidLoggerName(maybeName: unknown): maybeName is string { return typeof maybeName === 'string' && maybeName.length > 0; } -function serializeError(error: Error) { - const { name, message, stack, ...errorProps } = error; +type ErrorLike = { + name: string; + message: string; + stack?: string; + cause?: unknown; +}; +function serializeError(error: ErrorLike) { + let errorKind: string; + if ( + Object.prototype.toString.call(error.constructor) === '[object Function]' && + error.name === 'Error' + ) { + /** + * Some errors (e.g. https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/timeout_static) + * might have with weird constructor name and `name` implying `code` (error id) there, + * and `name` prop should be used instead of constructor name then. + * + * So here we handle only custom errors that extend Error class, but do not have + * `this.name = this.constructor.name` set. In any other case `error.name` should be sufficient. + */ + errorKind = error.constructor.name; + } else { + errorKind = error.name; + } - return { - kind: name, - message, - stack, - ...errorProps, - }; + if (Reflect.has(error, 'toJSON')) { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + const serialized = (error as any).toJSON(); + + delete serialized.name; + serialized.kind = errorKind; + + return serialized; + } else { + const { message, stack, ...errorProps } = error; + return { + kind: errorKind, + message, + stack, + ...errorProps, + }; + } } abstract class LoggerWrapper implements Logger { @@ -71,17 +105,16 @@ abstract class LoggerWrapper implements Logger { metaArgument = {}; } else if (errorOrMeta instanceof Error) { metaArgument = { - error: serializeError(errorOrMeta), + [ERROR_KEY]: serializeError(errorOrMeta), }; } else if (isPlainObject(errorOrMeta)) { - const { error, ...meta } = errorOrMeta; - metaArgument = meta; + metaArgument = Object.assign({}, errorOrMeta); + + const error = metaArgument[ERROR_KEY]; if (error instanceof Error) { - Object.assign(metaArgument, { - error: serializeError(error), - }); + metaArgument[ERROR_KEY] = serializeError(error); } else if (error !== undefined) { - metaArgument.error = error; + metaArgument[ERROR_KEY] = error; } } else { /** @@ -96,8 +129,8 @@ abstract class LoggerWrapper implements Logger { ...this.bindings, ...metaArgument, level, - message: logMessage, - timestamp: Date.now(), + [MESSAGE_KEY]: logMessage, + [TIMESTAMP_KEY]: Date.now(), }; if (this.name) { diff --git a/packages/libs/logger/src/constants.ts b/packages/libs/logger/src/constants.ts new file mode 100644 index 0000000000..df9fa6794e --- /dev/null +++ b/packages/libs/logger/src/constants.ts @@ -0,0 +1,3 @@ +export const MESSAGE_KEY = 'message'; +export const TIMESTAMP_KEY = 'timestamp'; +export const ERROR_KEY = 'error'; diff --git a/packages/libs/logger/src/pino-logger.ts b/packages/libs/logger/src/pino-logger.ts index db78b39b00..9045f05504 100644 --- a/packages/libs/logger/src/pino-logger.ts +++ b/packages/libs/logger/src/pino-logger.ts @@ -1,6 +1,7 @@ import pino from 'pino'; import LoggerWrapper from './abstract-logger'; +import { ERROR_KEY, MESSAGE_KEY, TIMESTAMP_KEY } from './constants'; import { ChildBindings, LogMeta, @@ -52,7 +53,9 @@ export const createPinoLogger: LoggerFactory = ( ? { target: 'pino-pretty', options: { - messageKey: 'message', + messageKey: MESSAGE_KEY, + timestampKey: TIMESTAMP_KEY, + errorLikeObjectKeys: [ERROR_KEY], translateTime: "SYS:yyyy-mm-dd, HH:MM:ss'Z'", colorize: true, }, diff --git a/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/constants.py b/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/constants.py index 4decd6bc74..b02169384d 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 @@ -37,7 +37,7 @@ class OperatorCategory(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/QmXGmcjEtwwEgB83KE2ECjjYY38kLMqzaq4ip8GWY7A6zz" + "https://gateway.thegraph.com/api/deployments/id/QmXGmcjEtwwEgB83KE2ECjjYY38kLMqzaq4ip8GWY7A6zz" ), "hmt_address": "0xd1ba9BAC957322D6e8c07a160a3A8dA11A0d2867", "factory_address": "0xD9c75a1Aa4237BB72a41E5E26bd8384f10c1f55a", @@ -53,7 +53,7 @@ class OperatorCategory(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/QmT4xNvZh8ymarrk1zdytjLhCW59iuTavsd4JgHS4LbCVB" + "https://gateway.thegraph.com/api/deployments/id/QmT4xNvZh8ymarrk1zdytjLhCW59iuTavsd4JgHS4LbCVB" ), "hmt_address": "0x792abbcC99c01dbDec49c9fa9A828a186Da45C33", "factory_address": "0x5987A5558d961ee674efe4A8c8eB7B1b5495D3bf", @@ -69,7 +69,7 @@ class OperatorCategory(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/QmdVdpm9NnFz5B8QyzhW1bW1nNfRWemTiFn2MrhYZGTSQD" + "https://gateway.thegraph.com/api/deployments/id/QmdVdpm9NnFz5B8QyzhW1bW1nNfRWemTiFn2MrhYZGTSQD" ), "hmt_address": "0x711Fd6ab6d65A98904522d4e3586F492B989c527", "factory_address": "0x92FD968AcBd521c232f5fB8c33b342923cC72714", @@ -85,7 +85,7 @@ class OperatorCategory(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/QmZjYMktZe8RAz7W7qL33VZBV6AC57xsLyE1cEfv6NABdZ" + "https://gateway.thegraph.com/api/deployments/id/QmZjYMktZe8RAz7W7qL33VZBV6AC57xsLyE1cEfv6NABdZ" ), "hmt_address": "0xE3D74BBFa45B4bCa69FF28891fBE392f4B4d4e4d", "factory_address": "0x2bfA592DBDaF434DDcbb893B1916120d181DAD18", @@ -103,7 +103,7 @@ class OperatorCategory(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/QmUt9mmfNjtC5ZnQNiWHRbFG3k5zfngMuoTyky9jhXYqG2" + "https://gateway.thegraph.com/api/deployments/id/QmUt9mmfNjtC5ZnQNiWHRbFG3k5zfngMuoTyky9jhXYqG2" ), "hmt_address": "0xc748B2A084F8eFc47E086ccdDD9b7e67aEb571BF", "factory_address": "0xBDBfD2cC708199C5640C6ECdf3B0F4A4C67AdfcB", @@ -121,7 +121,7 @@ class OperatorCategory(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/QmWRUFWpWoRRUh7Ec1HUJEwxc84DkP4iFTfLLsoVngJAPa" + "https://gateway.thegraph.com/api/deployments/id/QmWRUFWpWoRRUh7Ec1HUJEwxc84DkP4iFTfLLsoVngJAPa" ), "hmt_address": "0x792abbcC99c01dbDec49c9fa9A828a186Da45C33", "factory_address": "0xAFf5a986A530ff839d49325A5dF69F96627E8D29", diff --git a/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/utils.py b/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/utils.py index 056ec1b732..c9c5b9034e 100644 --- a/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/utils.py +++ b/packages/sdk/python/human-protocol-sdk/human_protocol_sdk/utils.py @@ -38,6 +38,7 @@ class SubgraphOptions: max_retries: Optional[int] = None base_delay: Optional[int] = None # milliseconds + indexer_id: Optional[str] = None def is_indexer_error(error: Exception) -> bool: @@ -90,40 +91,50 @@ def custom_gql_fetch( :raise Exception: If the subgraph query fails """ + subgraph_api_key = os.getenv("SUBGRAPH_API_KEY", "") + if not options: return _fetch_subgraph_data(network, query, params) - if ( - options.max_retries is not None - and options.base_delay is None - or options.max_retries is None - and options.base_delay is not None - ): + has_max_retries = options.max_retries is not None + has_base_delay = options.base_delay is not None + + if has_max_retries != has_base_delay: raise ValueError( "Retry configuration must include both max_retries and base_delay" ) - max_retries = int(options.max_retries) - base_delay = options.base_delay / 1000 + if options.indexer_id and not subgraph_api_key: + raise ValueError( + "Routing requests to a specific indexer requires SUBGRAPH_API_KEY to be set" + ) + + max_retries = int(options.max_retries) if has_max_retries else 0 + base_delay_seconds = (options.base_delay or 0) / 1000 last_error = None for attempt in range(max_retries + 1): try: - return _fetch_subgraph_data(network, query, params) + return _fetch_subgraph_data(network, query, params, options.indexer_id) except Exception as error: last_error = error if not is_indexer_error(error): break - delay = base_delay * attempt + delay = base_delay_seconds * attempt time.sleep(delay) raise last_error -def _fetch_subgraph_data(network: dict, query: str, params: dict = None): +def _fetch_subgraph_data( + network: dict, + query: str, + params: dict = None, + indexer_id: Optional[str] = None, +): subgraph_api_key = os.getenv("SUBGRAPH_API_KEY", "") if subgraph_api_key: subgraph_url = network["subgraph_url_api_key"].replace( @@ -135,7 +146,15 @@ def _fetch_subgraph_data(network: dict, query: str, params: dict = None): ) subgraph_url = network["subgraph_url"] - request = requests.post(subgraph_url, json={"query": query, "variables": params}) + subgraph_url = _attach_indexer_id(subgraph_url, indexer_id) + + headers = ( + {"Authorization": f"Bearer {subgraph_api_key}"} if subgraph_api_key else None + ) + + request = requests.post( + subgraph_url, json={"query": query, "variables": params}, headers=headers + ) if request.status_code == 200: return request.json() else: @@ -146,6 +165,12 @@ def _fetch_subgraph_data(network: dict, query: str, params: dict = None): ) +def _attach_indexer_id(url: str, indexer_id: Optional[str]) -> str: + if not indexer_id: + return url + return f"{url}/indexers/id/{indexer_id}" + + def get_hmt_balance(wallet_addr, token_addr, w3): """Get HMT balance diff --git a/packages/sdk/python/human-protocol-sdk/package.json b/packages/sdk/python/human-protocol-sdk/package.json index d9d3bd2049..906c73371b 100644 --- a/packages/sdk/python/human-protocol-sdk/package.json +++ b/packages/sdk/python/human-protocol-sdk/package.json @@ -1,6 +1,6 @@ { "name": "@human-protocol/python-sdk", - "version": "5.1.0", + "version": "5.2.0", "private": true, "description": "Stub package to integrate the Python SDK with Changesets (dev-only).", "license": "MIT" diff --git a/packages/sdk/python/human-protocol-sdk/test/human_protocol_sdk/test_utils.py b/packages/sdk/python/human-protocol-sdk/test/human_protocol_sdk/test_utils.py index cb41e620ef..54e5bc65bb 100644 --- a/packages/sdk/python/human-protocol-sdk/test/human_protocol_sdk/test_utils.py +++ b/packages/sdk/python/human-protocol-sdk/test/human_protocol_sdk/test_utils.py @@ -1,8 +1,11 @@ +import os import unittest from unittest.mock import Mock, patch from validators import ValidationError from human_protocol_sdk.utils import ( + _attach_indexer_id, + _fetch_subgraph_data, SubgraphOptions, custom_gql_fetch, is_indexer_error, @@ -53,6 +56,12 @@ def setUp(self): } self.query = "query Test" self.variables = {"foo": "bar"} + if "SUBGRAPH_API_KEY" in os.environ: + del os.environ["SUBGRAPH_API_KEY"] + + def tearDown(self): + if "SUBGRAPH_API_KEY" in os.environ: + del os.environ["SUBGRAPH_API_KEY"] def test_returns_response_without_options(self): expected = {"data": {"ok": True}} @@ -126,3 +135,65 @@ def test_raises_after_exhausting_retries(self): self.assertTrue(is_indexer_error(ctx.exception)) self.assertEqual(mock_fetch.call_count, 3) + + def test_routes_requests_to_specific_indexer(self): + options = SubgraphOptions(indexer_id="0xabc123") + expected = {"data": {"ok": True}} + os.environ["SUBGRAPH_API_KEY"] = "secure-token" + + with patch( + "human_protocol_sdk.utils._fetch_subgraph_data", + return_value=expected, + ) as mock_fetch: + result = custom_gql_fetch( + self.network, self.query, self.variables, options=options + ) + + self.assertEqual(result, expected) + mock_fetch.assert_called_once_with( + self.network, self.query, self.variables, "0xabc123" + ) + + def test_raises_when_indexer_without_api_key(self): + options = SubgraphOptions(indexer_id="0xabc123") + + with self.assertRaises(ValueError) as ctx: + custom_gql_fetch(self.network, self.query, self.variables, options) + + self.assertIn( + "Routing requests to a specific indexer requires SUBGRAPH_API_KEY to be set", + str(ctx.exception), + ) + + def test_fetch_subgraph_adds_authorization_header(self): + network = { + "subgraph_url": "http://subgraph", + "subgraph_url_api_key": "http://subgraph-with-key", + } + + with patch.dict(os.environ, {"SUBGRAPH_API_KEY": "token"}, clear=True): + with patch("human_protocol_sdk.utils.requests.post") as mock_post: + mock_post.return_value.status_code = 200 + mock_post.return_value.json.return_value = {"data": {}} + + _fetch_subgraph_data(network, self.query, self.variables) + + mock_post.assert_called_once() + self.assertEqual( + mock_post.call_args.kwargs.get("headers"), + {"Authorization": "Bearer token"}, + ) + + +class TestAttachIndexerId(unittest.TestCase): + def test_converts_subgraph_path_to_deployment(self): + base_url = "https://gateway.thegraph.com/api/key/deployments/id/Qm123" + result = _attach_indexer_id(base_url, "0xabc") + self.assertEqual( + result, + "https://gateway.thegraph.com/api/key/deployments/id/Qm123/indexers/id/0xabc", + ) + + def test_returns_original_url_when_indexer_missing(self): + url = "https://gateway.thegraph.com/api/deployments/id/Qm123" + self.assertEqual(_attach_indexer_id(url, None), url) diff --git a/packages/sdk/typescript/human-protocol-sdk/.eslintignore b/packages/sdk/typescript/human-protocol-sdk/.eslintignore deleted file mode 100644 index ec2a7465ee..0000000000 --- a/packages/sdk/typescript/human-protocol-sdk/.eslintignore +++ /dev/null @@ -1,3 +0,0 @@ -dist -node_modules -logs diff --git a/packages/sdk/typescript/human-protocol-sdk/.eslintrc b/packages/sdk/typescript/human-protocol-sdk/.eslintrc deleted file mode 100644 index 773fde5bcb..0000000000 --- a/packages/sdk/typescript/human-protocol-sdk/.eslintrc +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parser": "@typescript-eslint/parser", - "parserOptions": { - "ecmaVersion": 2020, - "sourceType": "module" - }, - "plugins": ["@typescript-eslint", "prettier", "jest"], - "extends": [ - "eslint:recommended", - "plugin:@typescript-eslint/eslint-recommended", - "plugin:@typescript-eslint/recommended", - "prettier" - ], - "rules": { - "no-console": "warn", - "prettier/prettier": "error" - } -} diff --git a/packages/sdk/typescript/human-protocol-sdk/eslint.config.mjs b/packages/sdk/typescript/human-protocol-sdk/eslint.config.mjs new file mode 100644 index 0000000000..0bf91c4406 --- /dev/null +++ b/packages/sdk/typescript/human-protocol-sdk/eslint.config.mjs @@ -0,0 +1,53 @@ +import eslint from '@eslint/js'; +import globals from 'globals'; +import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'; +import importPlugin from 'eslint-plugin-import'; +import jestPlugin from 'eslint-plugin-jest'; +import tseslint from 'typescript-eslint'; + +export default tseslint.config( + { + ignores: ['eslint.config.mjs', 'dist', 'node_modules', 'logs'], + }, + eslint.configs.recommended, + tseslint.configs.recommended, + eslintPluginPrettierRecommended, + { + files: ['**/*.ts', '**/*.js'], + languageOptions: { + globals: { + ...globals.node, + ...globals.es2022, + }, + ecmaVersion: 2022, + sourceType: 'module', + parserOptions: { + project: './tsconfig.eslint.json', + tsconfigRootDir: import.meta.dirname, + }, + }, + plugins: { + import: importPlugin, + jest: jestPlugin, + }, + rules: { + 'no-console': 'warn', + '@/quotes': [ + 'error', + 'single', + { avoidEscape: true, allowTemplateLiterals: true }, + ], + }, + }, + { + files: ['**/*.spec.ts', '**/*.spec.tsx', '**/*.test.ts', '**/*.test.tsx'], + languageOptions: { + globals: { + ...globals.jest, + }, + }, + plugins: { + jest: jestPlugin, + }, + } +); diff --git a/packages/sdk/typescript/human-protocol-sdk/example/escrow.ts b/packages/sdk/typescript/human-protocol-sdk/example/escrow.ts index db5840364e..11173a3749 100644 --- a/packages/sdk/typescript/human-protocol-sdk/example/escrow.ts +++ b/packages/sdk/typescript/human-protocol-sdk/example/escrow.ts @@ -9,11 +9,14 @@ export const getEscrows = async () => { return; } - const escrows = await EscrowUtils.getEscrows({ - status: [EscrowStatus.Pending, EscrowStatus.Complete], - chainId: ChainId.POLYGON_AMOY, - first: 1000, - }); + const escrows = await EscrowUtils.getEscrows( + { + status: [EscrowStatus.Pending, EscrowStatus.Complete], + chainId: ChainId.POLYGON_AMOY, + first: 10, + }, + { indexerId: '0xbdfb5ee5a2abf4fc7bb1bd1221067aef7f9de491' } + ); console.log('Pending escrows:', escrows.length); }; diff --git a/packages/sdk/typescript/human-protocol-sdk/example/staking.ts b/packages/sdk/typescript/human-protocol-sdk/example/staking.ts index 8c4f66a6a4..9d99daf7dc 100644 --- a/packages/sdk/typescript/human-protocol-sdk/example/staking.ts +++ b/packages/sdk/typescript/human-protocol-sdk/example/staking.ts @@ -20,7 +20,7 @@ const runStakingExamples = async () => { stakers[0].address ); console.log('Staker info:', staker); - } catch (e) { + } catch { console.log('Staker not found'); } }; diff --git a/packages/sdk/typescript/human-protocol-sdk/package.json b/packages/sdk/typescript/human-protocol-sdk/package.json index 516b8dbc1e..96a26132b8 100644 --- a/packages/sdk/typescript/human-protocol-sdk/package.json +++ b/packages/sdk/typescript/human-protocol-sdk/package.json @@ -1,7 +1,7 @@ { "name": "@human-protocol/sdk", "description": "Human Protocol SDK", - "version": "5.1.0", + "version": "5.2.0", "files": [ "src", "dist" @@ -42,17 +42,19 @@ "axios": "^1.4.0", "ethers": "~6.15.0", "graphql": "^16.8.1", - "graphql-request": "^6.1.0", + "graphql-request": "^7.3.4", "graphql-tag": "^2.12.6", "minio": "7.1.3", - "openpgp": "^5.11.2", + "openpgp": "^6.2.2", "secp256k1": "^5.0.1", "validator": "^13.12.0", "vitest": "^3.0.9" }, "devDependencies": { "@types/validator": "^13.15.4", - "eslint": "^8.55.0", + "eslint": "^9.39.1", + "eslint-plugin-jest": "^28.9.0", + "eslint-plugin-prettier": "^5.2.1", "prettier": "^3.4.2", "ts-node": "^10.9.2", "typedoc": "^0.28.7", diff --git a/packages/sdk/typescript/human-protocol-sdk/src/constants.ts b/packages/sdk/typescript/human-protocol-sdk/src/constants.ts index edbd5d21f8..1b4c19c402 100644 --- a/packages/sdk/typescript/human-protocol-sdk/src/constants.ts +++ b/packages/sdk/typescript/human-protocol-sdk/src/constants.ts @@ -36,7 +36,7 @@ export const NETWORKS: { subgraphUrl: 'https://api.studio.thegraph.com/query/74256/ethereum/version/latest', subgraphUrlApiKey: - 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmXGmcjEtwwEgB83KE2ECjjYY38kLMqzaq4ip8GWY7A6zz', + 'https://gateway.thegraph.com/api/deployments/id/QmXGmcjEtwwEgB83KE2ECjjYY38kLMqzaq4ip8GWY7A6zz', oldSubgraphUrl: '', oldFactoryAddress: '', }, @@ -51,7 +51,7 @@ export const NETWORKS: { subgraphUrl: 'https://api.studio.thegraph.com/query/74256/sepolia/version/latest', subgraphUrlApiKey: - 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmT4xNvZh8ymarrk1zdytjLhCW59iuTavsd4JgHS4LbCVB', + 'https://gateway.thegraph.com/api/deployments/id/QmT4xNvZh8ymarrk1zdytjLhCW59iuTavsd4JgHS4LbCVB', oldSubgraphUrl: '', oldFactoryAddress: '', }, @@ -66,7 +66,7 @@ export const NETWORKS: { subgraphUrl: 'https://api.studio.thegraph.com/query/74256/bsc/version/latest', subgraphUrlApiKey: - 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmdVdpm9NnFz5B8QyzhW1bW1nNfRWemTiFn2MrhYZGTSQD', + 'https://gateway.thegraph.com/api/deployments/id/QmdVdpm9NnFz5B8QyzhW1bW1nNfRWemTiFn2MrhYZGTSQD', oldSubgraphUrl: 'https://api.thegraph.com/subgraphs/name/humanprotocol/bsc', oldFactoryAddress: '0xc88bC422cAAb2ac8812de03176402dbcA09533f4', }, @@ -81,7 +81,7 @@ export const NETWORKS: { subgraphUrl: 'https://api.studio.thegraph.com/query/74256/bsc-testnet/version/latest', subgraphUrlApiKey: - 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmZjYMktZe8RAz7W7qL33VZBV6AC57xsLyE1cEfv6NABdZ', + 'https://gateway.thegraph.com/api/deployments/id/QmZjYMktZe8RAz7W7qL33VZBV6AC57xsLyE1cEfv6NABdZ', oldSubgraphUrl: 'https://api.thegraph.com/subgraphs/name/humanprotocol/bsctest', oldFactoryAddress: '0xaae6a2646c1f88763e62e0cd08ad050ea66ac46f', @@ -97,7 +97,7 @@ export const NETWORKS: { subgraphUrl: 'https://api.studio.thegraph.com/query/74256/polygon/version/latest', subgraphUrlApiKey: - 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmUt9mmfNjtC5ZnQNiWHRbFG3k5zfngMuoTyky9jhXYqG2', + 'https://gateway.thegraph.com/api/deployments/id/QmUt9mmfNjtC5ZnQNiWHRbFG3k5zfngMuoTyky9jhXYqG2', oldSubgraphUrl: 'https://api.thegraph.com/subgraphs/name/humanprotocol/polygon', oldFactoryAddress: '0x45eBc3eAE6DA485097054ae10BA1A0f8e8c7f794', @@ -113,7 +113,7 @@ export const NETWORKS: { subgraphUrl: 'https://api.studio.thegraph.com/query/74256/amoy/version/latest', subgraphUrlApiKey: - 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmWRUFWpWoRRUh7Ec1HUJEwxc84DkP4iFTfLLsoVngJAPa', + 'https://gateway.thegraph.com/api/deployments/id/QmWRUFWpWoRRUh7Ec1HUJEwxc84DkP4iFTfLLsoVngJAPa', oldSubgraphUrl: '', oldFactoryAddress: '', }, diff --git a/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts b/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts index c0cb9d3f6d..38d1921f93 100644 --- a/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts +++ b/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts @@ -387,7 +387,7 @@ export class EncryptionUtils { const { privateKey, publicKey, revocationCertificate } = await openpgp.generateKey({ type: 'ecc', - curve: 'ed25519', + curve: 'ed25519Legacy', userIDs: [{ name: name, email: email }], passphrase: passphrase, format: 'armored', diff --git a/packages/sdk/typescript/human-protocol-sdk/src/error.ts b/packages/sdk/typescript/human-protocol-sdk/src/error.ts index 40af09be57..3a2d61888d 100644 --- a/packages/sdk/typescript/human-protocol-sdk/src/error.ts +++ b/packages/sdk/typescript/human-protocol-sdk/src/error.ts @@ -313,6 +313,13 @@ export const ErrorRetryParametersMissing = new Error( 'Retry configuration must include both maxRetries and baseDelay' ); +/** + * @constant {Error} - Retry configuration is missing required parameters. + */ +export const ErrorRoutingRequestsToIndexerRequiresApiKey = new Error( + 'Routing requests to a specific indexer requires SUBGRAPH_API_KEY to be set' +); + /** * @constant {Warning} - Possible version mismatch. */ diff --git a/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts b/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts index f22af6f593..6ade2c66e6 100644 --- a/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts +++ b/packages/sdk/typescript/human-protocol-sdk/src/escrow.ts @@ -265,6 +265,7 @@ export class EscrowClient extends BaseEthersClient { return throwError(e); } } + private verifySetupParameters(escrowConfig: IEscrowConfig) { const { recordingOracle, diff --git a/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts b/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts index 9a204751ce..7e97635c8c 100644 --- a/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts +++ b/packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts @@ -321,4 +321,9 @@ export interface SubgraphOptions { maxRetries?: number; /** Base delay between retries in milliseconds */ baseDelay?: number; + /** + * Optional indexer identifier. When provided, requests target + * `{gateway}/deployments/id//indexers/id/`. + */ + indexerId?: string; } diff --git a/packages/sdk/typescript/human-protocol-sdk/src/staking.ts b/packages/sdk/typescript/human-protocol-sdk/src/staking.ts index 5d32d702eb..eac6ffb8d3 100644 --- a/packages/sdk/typescript/human-protocol-sdk/src/staking.ts +++ b/packages/sdk/typescript/human-protocol-sdk/src/staking.ts @@ -450,7 +450,7 @@ export class StakingClient extends BaseEthersClient { try { const stakerInfo = await this.stakingContract.stakes(stakerAddress); - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + const currentBlock = await this.runner.provider!.getBlockNumber(); const tokensWithdrawable = diff --git a/packages/sdk/typescript/human-protocol-sdk/src/storage.ts b/packages/sdk/typescript/human-protocol-sdk/src/storage.ts index 5f7a47be68..81656fcaf9 100644 --- a/packages/sdk/typescript/human-protocol-sdk/src/storage.ts +++ b/packages/sdk/typescript/human-protocol-sdk/src/storage.ts @@ -79,7 +79,7 @@ export class StorageClient { accessKey: credentials?.accessKey ?? '', secretKey: credentials?.secretKey ?? '', }); - } catch (e) { + } catch { throw ErrorStorageClientNotInitialized; } } @@ -122,7 +122,7 @@ export class StorageClient { const content = response?.read(); return { key, content: JSON.parse(content?.toString('utf-8') || '') }; - } catch (e) { + } catch { throw ErrorStorageFileNotFound; } }) @@ -160,7 +160,7 @@ export class StorageClient { } return data; - } catch (e) { + } catch { throw ErrorStorageFileNotFound; } } @@ -226,7 +226,7 @@ export class StorageClient { }/${bucket}/${key}`, hash, }; - } catch (e) { + } catch { throw ErrorStorageFileNotUploaded; } }) diff --git a/packages/sdk/typescript/human-protocol-sdk/src/transaction.ts b/packages/sdk/typescript/human-protocol-sdk/src/transaction.ts index 0b2014b495..dc792ce6d2 100644 --- a/packages/sdk/typescript/human-protocol-sdk/src/transaction.ts +++ b/packages/sdk/typescript/human-protocol-sdk/src/transaction.ts @@ -1,4 +1,3 @@ -/* eslint-disable @typescript-eslint/no-explicit-any */ import { ethers } from 'ethers'; import { NETWORKS } from './constants'; import { ChainId, OrderDirection } from './enums'; diff --git a/packages/sdk/typescript/human-protocol-sdk/src/utils.ts b/packages/sdk/typescript/human-protocol-sdk/src/utils.ts index cfe35456b7..f7ef8d8fb0 100644 --- a/packages/sdk/typescript/human-protocol-sdk/src/utils.ts +++ b/packages/sdk/typescript/human-protocol-sdk/src/utils.ts @@ -8,6 +8,7 @@ import { ChainId } from './enums'; import { ContractExecutionError, ErrorRetryParametersMissing, + ErrorRoutingRequestsToIndexerRequiresApiKey, EthereumError, InvalidArgumentError, NonceExpired, @@ -118,6 +119,13 @@ const sleep = (ms: number): Promise => { return new Promise((resolve) => setTimeout(resolve, ms)); }; +const buildIndexerUrl = (baseUrl: string, indexerId?: string): string => { + if (!indexerId) { + return baseUrl; + } + return `${baseUrl}/indexers/id/${indexerId}`; +}; + /** * Execute a GraphQL request with automatic retry logic for bad indexer errors. * Only retries if options is provided. @@ -128,35 +136,44 @@ export const customGqlFetch = async ( variables?: any, options?: SubgraphOptions ): Promise => { + const apiKey = process.env.SUBGRAPH_API_KEY; + const headers = apiKey + ? { + Authorization: `Bearer ${apiKey}`, + } + : undefined; + if (!options) { - return await gqlFetch(url, query, variables); + return await gqlFetch(url, query, variables, headers); } - if ( - (options.maxRetries && options.baseDelay === undefined) || - (options.baseDelay && options.maxRetries === undefined) - ) { + const hasMaxRetries = options.maxRetries !== undefined; + const hasBaseDelay = options.baseDelay !== undefined; + + if (hasMaxRetries !== hasBaseDelay) { throw ErrorRetryParametersMissing; } + if (options.indexerId && !headers) { + throw ErrorRoutingRequestsToIndexerRequiresApiKey; + } + + const targetUrl = buildIndexerUrl(url, options.indexerId); + const maxRetries = hasMaxRetries ? (options.maxRetries as number) : 0; + const baseDelay = hasBaseDelay ? (options.baseDelay as number) : 0; let lastError: any; - for (let attempt = 0; attempt <= (options.maxRetries as number); attempt++) { + for (let attempt = 0; attempt <= maxRetries; attempt++) { try { - const result = await gqlFetch(url, query, variables); - return result; + return await gqlFetch(targetUrl, query, variables, headers); } catch (error) { lastError = error; - if (attempt === options.maxRetries) { - throw error; - } - - if (!isIndexerError(error)) { + if (attempt === maxRetries || !isIndexerError(error)) { throw error; } - const delay = (options.baseDelay as number) * attempt; + const delay = baseDelay * attempt; await sleep(delay); } } diff --git a/packages/sdk/typescript/human-protocol-sdk/test/encryption.test.ts b/packages/sdk/typescript/human-protocol-sdk/test/encryption.test.ts index 3967b8ad22..a1992c3449 100644 --- a/packages/sdk/typescript/human-protocol-sdk/test/encryption.test.ts +++ b/packages/sdk/typescript/human-protocol-sdk/test/encryption.test.ts @@ -1,4 +1,3 @@ -/* eslint-disable @typescript-eslint/no-explicit-any */ import { describe, test, expect, beforeAll } from 'vitest'; import { Encryption, EncryptionUtils } from '../src/encryption'; import { diff --git a/packages/sdk/typescript/human-protocol-sdk/test/escrow.test.ts b/packages/sdk/typescript/human-protocol-sdk/test/escrow.test.ts index 012f8a9c77..fe5d217751 100644 --- a/packages/sdk/typescript/human-protocol-sdk/test/escrow.test.ts +++ b/packages/sdk/typescript/human-protocol-sdk/test/escrow.test.ts @@ -3315,7 +3315,8 @@ describe('EscrowUtils', () => { reputationOracle: undefined, status: undefined, to: undefined, - } + }, + undefined ); }); @@ -3625,7 +3626,8 @@ describe('EscrowUtils', () => { reputationOracle: undefined, status: undefined, to: undefined, - } + }, + undefined ); }); @@ -3730,7 +3732,8 @@ describe('EscrowUtils', () => { reputationOracle: undefined, status: undefined, to: undefined, - } + }, + undefined ); }); }); @@ -3807,7 +3810,8 @@ describe('EscrowUtils', () => { expect(gqlFetchSpy).toHaveBeenCalledWith( NETWORKS[ChainId.LOCALHOST]?.subgraphUrl, GET_ESCROW_BY_ADDRESS_QUERY(), - { escrowAddress: escrow.address } + { escrowAddress: escrow.address }, + undefined ); }); }); @@ -4060,7 +4064,8 @@ describe('EscrowUtils', () => { first: 10, skip: 0, orderDirection: OrderDirection.DESC, - } + }, + undefined ); }); @@ -4108,7 +4113,8 @@ describe('EscrowUtils', () => { first: 10, skip: 0, orderDirection: OrderDirection.DESC, - } + }, + undefined ); }); @@ -4161,7 +4167,8 @@ describe('EscrowUtils', () => { first: 20, skip: 10, orderDirection: OrderDirection.DESC, - } + }, + undefined ); }); @@ -4214,7 +4221,8 @@ describe('EscrowUtils', () => { first: 1000, skip: 10, orderDirection: OrderDirection.DESC, - } + }, + undefined ); }); diff --git a/packages/sdk/typescript/human-protocol-sdk/test/kvstore.test.ts b/packages/sdk/typescript/human-protocol-sdk/test/kvstore.test.ts index c918e03333..cae4ed9b3a 100644 --- a/packages/sdk/typescript/human-protocol-sdk/test/kvstore.test.ts +++ b/packages/sdk/typescript/human-protocol-sdk/test/kvstore.test.ts @@ -461,7 +461,8 @@ describe('KVStoreUtils', () => { // expect(gqlFetchSpy).toHaveBeenCalledWith( // NETWORKS[ChainId.LOCALHOST]?.subgraphUrl, // GET_KVSTORE_BY_ADDRESS_AND_KEY_QUERY(), - // { address: ethers.ZeroAddress, key: 'key1' } + // { address: ethers.ZeroAddress, key: 'key1' }, + // undefined // ); // }); @@ -497,7 +498,8 @@ describe('KVStoreUtils', () => { expect(gqlFetchSpy).toHaveBeenCalledWith( NETWORKS[ChainId.LOCALHOST]?.subgraphUrl, GET_KVSTORE_BY_ADDRESS_AND_KEY_QUERY(), - { address: ethers.ZeroAddress, key: 'key1' } + { address: ethers.ZeroAddress, key: 'key1' }, + undefined ); }); @@ -534,7 +536,8 @@ describe('KVStoreUtils', () => { expect(gqlFetchSpy).toHaveBeenCalledWith( NETWORKS[ChainId.LOCALHOST]?.subgraphUrl, GET_KVSTORE_BY_ADDRESS_AND_KEY_QUERY(), - { address: ethers.ZeroAddress, key: 'key1' } + { address: ethers.ZeroAddress, key: 'key1' }, + undefined ); }); }); @@ -829,7 +832,8 @@ describe('KVStoreUtils', () => { expect(gqlFetchSpy).toHaveBeenCalledWith( NETWORKS[ChainId.LOCALHOST]?.subgraphUrl, GET_KVSTORE_BY_ADDRESS_QUERY(), - { address: ethers.ZeroAddress } + { address: ethers.ZeroAddress }, + undefined ); }); }); 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 690c700b55..454a6bfd48 100644 --- a/packages/sdk/typescript/human-protocol-sdk/test/operator.test.ts +++ b/packages/sdk/typescript/human-protocol-sdk/test/operator.test.ts @@ -1,5 +1,3 @@ -/* eslint-disable @typescript-eslint/no-explicit-any */ - vi.mock('graphql-request', () => { return { default: vi.fn(), @@ -103,7 +101,8 @@ describe('OperatorUtils', () => { GET_LEADER_QUERY, { address: stakerAddress, - } + }, + undefined ); expect(result).toEqual(operator); }); @@ -123,7 +122,8 @@ describe('OperatorUtils', () => { GET_LEADER_QUERY, { address: stakerAddress, - } + }, + undefined ); expect(result).toEqual({ ...operator, jobTypes: [] }); }); @@ -143,7 +143,8 @@ describe('OperatorUtils', () => { GET_LEADER_QUERY, { address: stakerAddress, - } + }, + undefined ); expect(result).toEqual({ ...operator, @@ -183,7 +184,8 @@ describe('OperatorUtils', () => { GET_LEADER_QUERY, { address: stakerAddress, - } + }, + undefined ); expect(result).toEqual(null); }); @@ -210,7 +212,8 @@ describe('OperatorUtils', () => { orderDirection: OrderDirection.DESC, first: 10, skip: 0, - } + }, + undefined ); expect(result).toEqual([operator, operator]); }); @@ -238,7 +241,8 @@ describe('OperatorUtils', () => { orderDirection: OrderDirection.DESC, first: 10, // Default value skip: 0, - } + }, + undefined ); expect(result).toEqual([operator]); }); @@ -266,7 +270,8 @@ describe('OperatorUtils', () => { orderDirection: OrderDirection.DESC, first: 10, skip: 0, // Default value - } + }, + undefined ); expect(result).toEqual([operator]); }); @@ -292,7 +297,8 @@ describe('OperatorUtils', () => { orderDirection: OrderDirection.DESC, first: 10, // Default value skip: 0, // Default value - } + }, + undefined ); expect(result).toEqual([operator]); }); @@ -322,7 +328,8 @@ describe('OperatorUtils', () => { orderDirection: OrderDirection.DESC, first: 10, skip: 0, - } + }, + undefined ); expect(result).toEqual([ { ...operator, jobTypes: ['type1', 'type2', 'type3'] }, @@ -353,7 +360,8 @@ describe('OperatorUtils', () => { orderDirection: OrderDirection.DESC, first: 10, skip: 0, - } + }, + undefined ); expect(result).toEqual([ @@ -414,7 +422,8 @@ describe('OperatorUtils', () => { { address: stakerAddress, role: undefined, - } + }, + undefined ); expect(result).toEqual([operator]); }); @@ -435,7 +444,8 @@ describe('OperatorUtils', () => { { address: stakerAddress, role: undefined, - } + }, + undefined ); expect(result).toEqual([]); }); @@ -459,7 +469,8 @@ describe('OperatorUtils', () => { { address: stakerAddress, role: undefined, - } + }, + undefined ); expect(result).toEqual([{ ...operator, jobTypes: [] }]); }); @@ -484,7 +495,8 @@ describe('OperatorUtils', () => { { address: stakerAddress, role: undefined, - } + }, + undefined ); expect(result).toEqual([ { ...operator, jobTypes: ['type1', 'type2', 'type3'] }, diff --git a/packages/sdk/typescript/human-protocol-sdk/test/staking.test.ts b/packages/sdk/typescript/human-protocol-sdk/test/staking.test.ts index a3e85fa70e..ffd4513617 100644 --- a/packages/sdk/typescript/human-protocol-sdk/test/staking.test.ts +++ b/packages/sdk/typescript/human-protocol-sdk/test/staking.test.ts @@ -589,7 +589,8 @@ describe('StakingUtils', () => { expect(gqlFetchSpy).toHaveBeenCalledWith( NETWORKS[ChainId.LOCALHOST]?.subgraphUrl, expect.anything(), - { id: stakerAddress.toLowerCase() } + { id: stakerAddress.toLowerCase() }, + undefined ); const expectedStaker: IStaker = { address: mockStaker.address, @@ -683,7 +684,8 @@ describe('StakingUtils', () => { orderDirection: OrderDirection.DESC, first: 10, skip: 0, - }) + }), + undefined ); const expectedStakers = mockStakers.map((s) => ({ address: s.address, 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 0f36f8449b..8e6ce3c775 100644 --- a/packages/sdk/typescript/human-protocol-sdk/test/statistics.test.ts +++ b/packages/sdk/typescript/human-protocol-sdk/test/statistics.test.ts @@ -63,6 +63,7 @@ describe('StatisticsClient', () => { expect(gqlFetchSpy).toHaveBeenCalledWith( 'https://api.studio.thegraph.com/query/74256/polygon/version/latest', GET_ESCROW_STATISTICS_QUERY, + undefined, undefined ); expect(gqlFetchSpy).toHaveBeenCalledWith( @@ -74,7 +75,8 @@ describe('StatisticsClient', () => { orderDirection: OrderDirection.ASC, first: 10, skip: 0, - } + }, + undefined ); expect(result).toEqual({ @@ -136,7 +138,8 @@ describe('StatisticsClient', () => { orderDirection: OrderDirection.ASC, first: 10, skip: 0, - } + }, + undefined ); expect(result).toEqual({ @@ -195,7 +198,8 @@ describe('StatisticsClient', () => { orderDirection: OrderDirection.ASC, first: 10, skip: 0, - } + }, + undefined ); expect(result).toEqual({ @@ -282,7 +286,8 @@ describe('StatisticsClient', () => { address: undefined, orderBy: 'balance', orderDirection: undefined, - } + }, + undefined ); expect(result).toEqual([ @@ -317,7 +322,8 @@ describe('StatisticsClient', () => { { address: '0x123', orderBy: 'balance', - } + }, + undefined ); expect(result).toEqual([ @@ -353,7 +359,8 @@ describe('StatisticsClient', () => { { orderBy: 'balance', orderDirection: 'asc', - } + }, + undefined ); expect(result).toEqual([ @@ -392,7 +399,8 @@ describe('StatisticsClient', () => { { orderBy: 'balance', orderDirection: 'desc', - } + }, + undefined ); expect(result).toEqual([ @@ -449,7 +457,8 @@ describe('StatisticsClient', () => { orderDirection: OrderDirection.ASC, first: 10, skip: 0, - } + }, + undefined ); expect(result).toEqual([ diff --git a/packages/sdk/typescript/human-protocol-sdk/test/transaction.test.ts b/packages/sdk/typescript/human-protocol-sdk/test/transaction.test.ts index 3cbea573dc..ff3ce6016d 100644 --- a/packages/sdk/typescript/human-protocol-sdk/test/transaction.test.ts +++ b/packages/sdk/typescript/human-protocol-sdk/test/transaction.test.ts @@ -1,6 +1,3 @@ -/* eslint-disable @typescript-eslint/no-non-null-assertion */ -/* eslint-disable @typescript-eslint/no-explicit-any */ - vi.mock('graphql-request', () => { return { default: vi.fn(), @@ -64,7 +61,8 @@ describe('TransactionUtils', () => { GET_TRANSACTION_QUERY, { hash: txHash.toLowerCase(), - } + }, + undefined ); const expected: ITransaction = { block: 12345n, @@ -164,7 +162,8 @@ describe('TransactionUtils', () => { orderDirection: OrderDirection.DESC, first: 10, skip: 0, - } + }, + undefined ); const expected: ITransaction = { block: 12345n, @@ -223,7 +222,8 @@ describe('TransactionUtils', () => { orderDirection: OrderDirection.DESC, first: 10, skip: 0, - } + }, + undefined ); const expected: ITransaction = { block: 12345n, @@ -280,7 +280,8 @@ describe('TransactionUtils', () => { orderDirection: OrderDirection.DESC, first: 10, skip: 0, - } + }, + undefined ); const expected: ITransaction = { block: 12345n, @@ -337,7 +338,8 @@ describe('TransactionUtils', () => { orderDirection: OrderDirection.DESC, first: 10, skip: 0, - } + }, + undefined ); const expected: ITransaction = { block: 12345n, @@ -394,7 +396,8 @@ describe('TransactionUtils', () => { orderDirection: OrderDirection.DESC, first: 10, skip: 0, - } + }, + undefined ); const expected: ITransaction = { block: 12345n, @@ -451,7 +454,8 @@ describe('TransactionUtils', () => { orderDirection: OrderDirection.DESC, first: 10, skip: 0, - } + }, + undefined ); const expected: ITransaction = { block: 12345n, @@ -536,7 +540,8 @@ describe('TransactionUtils', () => { orderDirection: OrderDirection.DESC, first: 10, skip: 10, - } + }, + undefined ); const expected: ITransaction = { block: 12345n, @@ -592,7 +597,8 @@ describe('TransactionUtils', () => { orderDirection: OrderDirection.DESC, first: 1000, skip: 10, - } + }, + undefined ); const expected: ITransaction = { block: 12345n, @@ -651,7 +657,8 @@ describe('TransactionUtils', () => { orderDirection: OrderDirection.DESC, first: 5, skip: 5, - } + }, + undefined ); const expected: ITransaction = { block: 12345n, diff --git a/packages/sdk/typescript/human-protocol-sdk/test/utils.test.ts b/packages/sdk/typescript/human-protocol-sdk/test/utils.test.ts index 6c6a0428b8..ac9d4cb0cf 100644 --- a/packages/sdk/typescript/human-protocol-sdk/test/utils.test.ts +++ b/packages/sdk/typescript/human-protocol-sdk/test/utils.test.ts @@ -1,5 +1,3 @@ -/* eslint-disable @typescript-eslint/no-non-null-assertion */ - vi.mock('graphql-request', () => { return { default: vi.fn(), @@ -7,7 +5,7 @@ vi.mock('graphql-request', () => { }); import * as gqlFetch from 'graphql-request'; -import { beforeEach, describe, expect, test, vi } from 'vitest'; +import { beforeEach, afterEach, describe, expect, test, vi } from 'vitest'; import { ChainId } from '../src'; import { NETWORKS } from '../src/constants'; import { @@ -20,6 +18,7 @@ import { TransactionReplaced, WarnSubgraphApiKeyNotProvided, ErrorRetryParametersMissing, + ErrorRoutingRequestsToIndexerRequiresApiKey, } from '../src/error'; import { getSubgraphUrl, @@ -211,6 +210,11 @@ describe('customGqlFetch', () => { beforeEach(() => { vi.clearAllMocks(); vi.resetModules(); + delete process.env.SUBGRAPH_API_KEY; + }); + + afterEach(() => { + delete process.env.SUBGRAPH_API_KEY; }); test('calls gqlFetch directly when no config provided', async () => { @@ -222,7 +226,12 @@ describe('customGqlFetch', () => { const result = await customGqlFetch(mockUrl, mockQuery, mockVariables); expect(gqlFetchSpy).toHaveBeenCalledTimes(1); - expect(gqlFetchSpy).toHaveBeenCalledWith(mockUrl, mockQuery, mockVariables); + expect(gqlFetchSpy).toHaveBeenCalledWith( + mockUrl, + mockQuery, + mockVariables, + undefined + ); expect(result).toBe(expectedResult); }); @@ -241,6 +250,63 @@ describe('customGqlFetch', () => { expect(result).toBe(expectedResult); }); + test('routes requests to the specified indexer id', async () => { + const expectedResult = { data: 'ok' }; + const gqlFetchSpy = vi + .spyOn(gqlFetch, 'default') + .mockResolvedValue(expectedResult); + + const indexerId = '0xabc123'; + process.env.SUBGRAPH_API_KEY = 'secure-token'; + + const result = await customGqlFetch(mockUrl, mockQuery, mockVariables, { + indexerId, + }); + + expect(gqlFetchSpy).toHaveBeenCalledWith( + `${mockUrl}/indexers/id/${indexerId}`, + mockQuery, + mockVariables, + { + Authorization: 'Bearer secure-token', + } + ); + expect(result).toBe(expectedResult); + }); + + test('adds authorization header when API key present', async () => { + const expectedResult = { data: 'secured' }; + const gqlFetchSpy = vi + .spyOn(gqlFetch, 'default') + .mockResolvedValue(expectedResult); + + process.env.SUBGRAPH_API_KEY = 'secure-token'; + + const result = await customGqlFetch(mockUrl, mockQuery, mockVariables); + + expect(gqlFetchSpy).toHaveBeenCalledWith( + mockUrl, + mockQuery, + mockVariables, + { + Authorization: 'Bearer secure-token', + } + ); + expect(result).toBe(expectedResult); + }); + + test('throws when indexer id provided without API key', async () => { + const gqlFetchSpy = vi.spyOn(gqlFetch, 'default'); + + await expect( + customGqlFetch(mockUrl, mockQuery, mockVariables, { + indexerId: '0xabc123', + }) + ).rejects.toThrow(ErrorRoutingRequestsToIndexerRequiresApiKey); + + expect(gqlFetchSpy).not.toHaveBeenCalled(); + }); + test('retries on bad indexers error', async () => { const badIndexerError = { response: { diff --git a/packages/sdk/typescript/human-protocol-sdk/test/worker.test.ts b/packages/sdk/typescript/human-protocol-sdk/test/worker.test.ts index e306650345..9fd801dc17 100644 --- a/packages/sdk/typescript/human-protocol-sdk/test/worker.test.ts +++ b/packages/sdk/typescript/human-protocol-sdk/test/worker.test.ts @@ -42,7 +42,8 @@ describe('WorkerUtils', () => { GET_WORKER_QUERY, { address: workerAddress.toLowerCase(), - } + }, + undefined ); const expected: IWorker = { ...mockWorker, @@ -66,7 +67,8 @@ describe('WorkerUtils', () => { GET_WORKER_QUERY, { address: workerAddress.toLowerCase(), - } + }, + undefined ); expect(result).toBeNull(); }); @@ -129,7 +131,8 @@ describe('WorkerUtils', () => { skip: 0, orderBy: 'totalHMTAmountReceived', orderDirection: 'asc', - } + }, + undefined ); const expected: IWorker[] = mockWorkers.map((mockWorker) => ({ ...mockWorker, @@ -160,7 +163,8 @@ describe('WorkerUtils', () => { skip: 0, orderBy: 'payoutCount', orderDirection: 'desc', - } + }, + undefined ); expect(result).toEqual([]); }); @@ -201,7 +205,8 @@ describe('WorkerUtils', () => { skip: 0, orderBy: 'payoutCount', orderDirection: 'desc', - } + }, + undefined ); const expected: IWorker[] = mockWorkers.map((mockWorker) => ({ diff --git a/packages/sdk/typescript/human-protocol-sdk/tsconfig.eslint.json b/packages/sdk/typescript/human-protocol-sdk/tsconfig.eslint.json new file mode 100644 index 0000000000..1f7243e15a --- /dev/null +++ b/packages/sdk/typescript/human-protocol-sdk/tsconfig.eslint.json @@ -0,0 +1,4 @@ +{ + "extends": "./tsconfig.json", + "include": ["src", "test", "example", "vitest.config.ts"] +} diff --git a/packages/sdk/typescript/subgraph/.eslintignore b/packages/sdk/typescript/subgraph/.eslintignore deleted file mode 100644 index 00074ab8a7..0000000000 --- a/packages/sdk/typescript/subgraph/.eslintignore +++ /dev/null @@ -1,3 +0,0 @@ -build -generated -schema.graphql diff --git a/packages/sdk/typescript/subgraph/.eslintrc b/packages/sdk/typescript/subgraph/.eslintrc deleted file mode 100644 index 22c858c154..0000000000 --- a/packages/sdk/typescript/subgraph/.eslintrc +++ /dev/null @@ -1,44 +0,0 @@ -{ - "parser": "@typescript-eslint/parser", - "parserOptions": { - "ecmaVersion": 2020, - "sourceType": "module" - }, - "plugins": ["@typescript-eslint", "prettier", "jest"], - "extends": [ - "eslint:recommended", - "plugin:@typescript-eslint/eslint-recommended", - "plugin:@typescript-eslint/recommended", - "prettier" - ], - "overrides": [ - { - "files": ["*.graphql"], - "parser": "@graphql-eslint/eslint-plugin", - "plugins": ["@graphql-eslint"], - "parserOptions": { - "schema": "./schema.graphql" - }, - // TODO: Add GraphQL ESLint rules here - "rules": {} - }, - { - "files": ["*.ts"], - "rules": { - "@typescript-eslint/ban-types": [ - "error", - { - "types": { - "BigInt": false - }, - "extendDefaults": true - } - ] - } - } - ], - "rules": { - "no-console": "warn", - "prettier/prettier": "error" - } -} diff --git a/packages/sdk/typescript/subgraph/.prettierignore b/packages/sdk/typescript/subgraph/.prettierignore deleted file mode 100644 index a4a4791059..0000000000 --- a/packages/sdk/typescript/subgraph/.prettierignore +++ /dev/null @@ -1,3 +0,0 @@ -build -generated -template.yaml diff --git a/packages/sdk/typescript/subgraph/eslint.config.mjs b/packages/sdk/typescript/subgraph/eslint.config.mjs new file mode 100644 index 0000000000..e3b3ba3aa9 --- /dev/null +++ b/packages/sdk/typescript/subgraph/eslint.config.mjs @@ -0,0 +1,57 @@ +import eslint from '@eslint/js'; +import globals from 'globals'; +import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'; +import tseslint from 'typescript-eslint'; +import { flatConfigs as graphqlFlatConfigs } from '@graphql-eslint/eslint-plugin'; +const graphqlOperations = graphqlFlatConfigs['operations-recommended']; + +export default tseslint.config( + { + ignores: ['build', 'generated', 'schema.graphql'], + }, + eslint.configs.recommended, + tseslint.configs.recommended, + eslintPluginPrettierRecommended, + { + files: ['**/*.ts', '**/*.js'], + languageOptions: { + globals: { + ...globals.node, + ...globals.es2022, + }, + ecmaVersion: 2022, + sourceType: 'module', + parserOptions: { + projectService: true, + tsconfigRootDir: import.meta.dirname, + }, + }, + rules: { + 'no-console': 'warn', + '@/quotes': [ + 'error', + 'single', + { avoidEscape: true, allowTemplateLiterals: true }, + ], + }, + }, + { + files: ['**/*.graphql'], + languageOptions: { + ...(graphqlOperations.languageOptions ?? {}), + parserOptions: { + ...(graphqlOperations.languageOptions?.parserOptions ?? {}), + schema: './schema.graphql', + }, + }, + rules: graphqlOperations.rules, + }, + { + files: ['**/*.spec.ts', '**/*.spec.tsx', '**/*.test.ts', '**/*.test.tsx'], + languageOptions: { + globals: { + ...globals.jest, + }, + }, + } +); diff --git a/packages/sdk/typescript/subgraph/package.json b/packages/sdk/typescript/subgraph/package.json index f7a180b316..8c0616a14a 100644 --- a/packages/sdk/typescript/subgraph/package.json +++ b/packages/sdk/typescript/subgraph/package.json @@ -41,7 +41,7 @@ "@graphprotocol/graph-ts": "^0.38.0", "@graphql-eslint/eslint-plugin": "^3.19.1", "@human-protocol/core": "workspace:*", - "eslint": "^8.55.0", + "eslint": "^9.39.1", "ethers": "~6.15.0", "graphql": "^16.6.0", "matchstick-as": "^0.6.0", diff --git a/packages/sdk/typescript/subgraph/src/mapping/EscrowTemplate.ts b/packages/sdk/typescript/subgraph/src/mapping/EscrowTemplate.ts index 7c2b5c24e1..83d89d7f0a 100644 --- a/packages/sdk/typescript/subgraph/src/mapping/EscrowTemplate.ts +++ b/packages/sdk/typescript/subgraph/src/mapping/EscrowTemplate.ts @@ -43,7 +43,6 @@ import { createTransaction } from './utils/transaction'; import { toBytes } from './utils/string'; import { createOrLoadOperator } from './KVStore'; -// eslint-disable-next-line prettier/prettier export const HMT_ADDRESS = Address.fromString('{{ HMToken.address }}'); export const STATISTICS_ENTITY_ID = toBytes('escrow-statistics-id'); diff --git a/packages/sdk/typescript/subgraph/src/mapping/HMTokenTemplate.ts b/packages/sdk/typescript/subgraph/src/mapping/HMTokenTemplate.ts index 967db90f2b..cb47c48fa0 100644 --- a/packages/sdk/typescript/subgraph/src/mapping/HMTokenTemplate.ts +++ b/packages/sdk/typescript/subgraph/src/mapping/HMTokenTemplate.ts @@ -1,10 +1,4 @@ -import { - Address, - BigInt, - Bytes, - dataSource, - log, -} from '@graphprotocol/graph-ts'; +import { Address, BigInt, Bytes, dataSource } from '@graphprotocol/graph-ts'; import { Approval, @@ -23,9 +17,8 @@ import { UniqueReceiver, UniqueSender, } from '../../generated/schema'; -import { toEventDayId, toEventId } from './utils/event'; +import { toEventId } from './utils/event'; import { ONE_BI, ONE_DAY, ZERO_BI } from './utils/number'; -import { createOrLoadWorker } from './Escrow'; import { getEventDayData } from './utils/dayUpdates'; import { createTransaction } from './utils/transaction'; import { toBytes } from './utils/string'; diff --git a/packages/sdk/typescript/subgraph/src/mapping/StakingTemplate.ts b/packages/sdk/typescript/subgraph/src/mapping/StakingTemplate.ts index 6cd2e82dc7..30cc8a395f 100644 --- a/packages/sdk/typescript/subgraph/src/mapping/StakingTemplate.ts +++ b/packages/sdk/typescript/subgraph/src/mapping/StakingTemplate.ts @@ -18,7 +18,6 @@ import { ZERO_BI } from './utils/number'; import { toEventId } from './utils/event'; import { createTransaction } from './utils/transaction'; -// eslint-disable-next-line prettier/prettier export const TOKEN_ADDRESS = Address.fromString('{{ HMToken.address }}'); export function createOrLoadStaker(address: Address): Staker { diff --git a/packages/sdk/typescript/subgraph/src/mapping/utils/transaction.ts b/packages/sdk/typescript/subgraph/src/mapping/utils/transaction.ts index 5bf2fbd13f..7ede1ffc5a 100644 --- a/packages/sdk/typescript/subgraph/src/mapping/utils/transaction.ts +++ b/packages/sdk/typescript/subgraph/src/mapping/utils/transaction.ts @@ -1,4 +1,3 @@ -/* eslint-disable @typescript-eslint/no-non-null-assertion */ import { Address, BigInt, ethereum } from '@graphprotocol/graph-ts'; import { Transaction, InternalTransaction } from '../../../generated/schema'; import { toEventId, toPreviousEventId } from './event'; diff --git a/packages/sdk/typescript/subgraph/tests/escrow/escrow.test.ts b/packages/sdk/typescript/subgraph/tests/escrow/escrow.test.ts index b59bd85249..9fabb437ba 100644 --- a/packages/sdk/typescript/subgraph/tests/escrow/escrow.test.ts +++ b/packages/sdk/typescript/subgraph/tests/escrow/escrow.test.ts @@ -1,4 +1,3 @@ -/* eslint-disable @typescript-eslint/no-non-null-assertion */ import { Address, BigInt, diff --git a/packages/sdk/typescript/subgraph/tests/hmt/hmt.test.ts b/packages/sdk/typescript/subgraph/tests/hmt/hmt.test.ts index a6b94966c8..d8ac0bce0d 100644 --- a/packages/sdk/typescript/subgraph/tests/hmt/hmt.test.ts +++ b/packages/sdk/typescript/subgraph/tests/hmt/hmt.test.ts @@ -31,7 +31,6 @@ const tokenAddressString = '0xa16081f360e3847006db660bae1c6d1b2e17ffaa'; const escrowAddressString = '0xa16081f360e3847006db660bae1c6d1b2e17ec2a'; const escrowAddress = Address.fromString(escrowAddressString); const operatorAddressString = '0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266'; -const operatorAddress = Address.fromString(operatorAddressString); const holderAddressString = '0x70997970c51812dc3a010c7d01b50e0d17dc79c8'; const holderAddress = Address.fromString(holderAddressString); const holder1AddressString = '0x92a2eEF7Ff696BCef98957a0189872680600a959'; diff --git a/yarn.lock b/yarn.lock index 7a6cbff118..b951ec5945 100644 --- a/yarn.lock +++ b/yarn.lock @@ -119,12 +119,12 @@ __metadata: "@types/react-router-dom": "npm:^5.3.3" "@types/recharts": "npm:^1.8.29" "@typescript-eslint/eslint-plugin": "npm:^7.2.0" - "@typescript-eslint/parser": "npm:^7.2.0" + "@typescript-eslint/parser": "npm:^8.46.3" "@vitejs/plugin-react": "npm:^4.2.1" axios: "npm:^1.7.2" clsx: "npm:^2.1.1" dayjs: "npm:^1.11.11" - eslint: "npm:^9.27.0" + eslint: "npm:^9.39.1" eslint-plugin-import: "npm:^2.31.0" eslint-plugin-prettier: "npm:^5.4.0" eslint-plugin-react: "npm:^7.37.5" @@ -163,25 +163,26 @@ __metadata: "@nestjs/cli": "npm:^10.3.2" "@nestjs/common": "npm:^10.2.7" "@nestjs/config": "npm:^3.2.3" - "@nestjs/core": "npm:^10.2.8" + "@nestjs/core": "npm:^11.1.9" "@nestjs/mapped-types": "npm:*" "@nestjs/platform-express": "npm:^10.3.10" "@nestjs/schematics": "npm:^11.0.2" "@nestjs/testing": "npm:^10.4.6" "@types/express": "npm:^4.17.13" - "@types/jest": "npm:29.5.1" + "@types/jest": "npm:30.0.0" "@types/node": "npm:22.10.5" "@typescript-eslint/eslint-plugin": "npm:^5.0.0" - "@typescript-eslint/parser": "npm:^5.0.0" + "@typescript-eslint/parser": "npm:^8.46.3" axios: "npm:^1.3.1" cache-manager: "npm:^5.4.0" cache-manager-redis-yet: "npm:^5.1.5" dayjs: "npm:^1.11.12" - eslint: "npm:^8.0.1" + eslint: "npm:^9.39.1" eslint-config-prettier: "npm:^9.1.0" + eslint-plugin-jest: "npm:^28.9.0" eslint-plugin-prettier: "npm:^5.2.1" ethers: "npm:~6.15.0" - jest: "npm:29.5.0" + jest: "npm:30.2.0" lodash: "npm:^4.17.21" prettier: "npm:^3.4.2" reflect-metadata: "npm:^0.2.2" @@ -204,7 +205,7 @@ __metadata: "@types/react": "npm:^18.3.12" "@types/react-dom": "npm:^18.3.1" dotenv: "npm:^17.2.2" - eslint: "npm:^8.55.0" + eslint: "npm:^9.39.1" eslint-config-react-app: "npm:^7.0.1" eslint-import-resolver-typescript: "npm:^3.7.0" eslint-plugin-import: "npm:^2.29.0" @@ -235,11 +236,11 @@ __metadata: body-parser: "npm:^1.20.0" concurrently: "npm:^9.1.2" cors: "npm:^2.8.5" - eslint: "npm:^8.55.0" + eslint: "npm:^9.39.1" express: "npm:^4.21.0" express-rate-limit: "npm:^7.3.0" hardhat: "npm:^2.26.0" - jest: "npm:^29.7.0" + jest: "npm:^30.2.0" node-cache: "npm:^5.1.2" ts-node: "npm:^10.9.2" typescript: "npm:^5.8.3" @@ -263,10 +264,10 @@ __metadata: "@types/react-dom": "npm:^18.3.1" "@types/react-router-dom": "npm:^5.3.3" "@typescript-eslint/eslint-plugin": "npm:^7.13.1" - "@typescript-eslint/parser": "npm:^7.13.1" + "@typescript-eslint/parser": "npm:^8.46.3" "@vitejs/plugin-react": "npm:^4.3.1" axios: "npm:^1.7.2" - eslint: "npm:^8.57.0" + eslint: "npm:^9.39.1" eslint-plugin-react-hooks: "npm:^5.1.0" eslint-plugin-react-refresh: "npm:^0.4.11" ethers: "npm:^6.15.0" @@ -294,7 +295,7 @@ __metadata: "@nestjs/cli": "npm:^10.3.2" "@nestjs/common": "npm:^10.2.7" "@nestjs/config": "npm:^3.1.1" - "@nestjs/core": "npm:^10.3.10" + "@nestjs/core": "npm:^11.1.9" "@nestjs/passport": "npm:^10.0.0" "@nestjs/platform-express": "npm:^10.3.10" "@nestjs/schedule": "npm:^4.0.1" @@ -305,24 +306,25 @@ __metadata: "@nestjs/typeorm": "npm:^10.0.1" "@types/body-parser": "npm:^1" "@types/express": "npm:^4.17.13" - "@types/jest": "npm:29.5.12" + "@types/jest": "npm:30.0.0" "@types/jsonwebtoken": "npm:^9.0.7" "@types/node": "npm:22.10.5" "@types/passport": "npm:^0" "@types/passport-jwt": "npm:^4.0.1" "@types/pg": "npm:8.11.10" "@typescript-eslint/eslint-plugin": "npm:^5.0.0" - "@typescript-eslint/parser": "npm:^5.0.0" + "@typescript-eslint/parser": "npm:^8.46.3" axios: "npm:^1.3.1" body-parser: "npm:^1.20.3" class-transformer: "npm:^0.5.1" class-validator: "npm:0.14.1" dotenv: "npm:^17.2.2" - eslint: "npm:^8.55.0" + eslint: "npm:^9.39.1" eslint-config-prettier: "npm:^9.1.0" + eslint-plugin-jest: "npm:^28.9.0" eslint-plugin-prettier: "npm:^5.2.1" ethers: "npm:~6.15.0" - jest: "npm:29.7.0" + jest: "npm:30.2.0" joi: "npm:^17.13.3" jsonwebtoken: "npm:^9.0.2" minio: "npm:7.1.3" @@ -352,7 +354,7 @@ __metadata: "@nestjs/cli": "npm:^10.3.2" "@nestjs/common": "npm:^10.2.7" "@nestjs/config": "npm:^3.1.1" - "@nestjs/core": "npm:^10.3.10" + "@nestjs/core": "npm:^11.1.9" "@nestjs/platform-express": "npm:^10.3.10" "@nestjs/schematics": "npm:^11.0.2" "@nestjs/swagger": "npm:^7.4.2" @@ -364,9 +366,11 @@ __metadata: class-transformer: "npm:^0.5.1" class-validator: "npm:0.14.1" dotenv: "npm:^17.2.2" - eslint: "npm:^8.55.0" + eslint: "npm:^9.39.1" + eslint-plugin-jest: "npm:^28.9.0" + eslint-plugin-prettier: "npm:^5.2.1" helmet: "npm:^7.1.0" - jest: "npm:^29.7.0" + jest: "npm:^30.2.0" joi: "npm:^17.13.3" minio: "npm:7.1.3" prettier: "npm:^3.4.2" @@ -386,8 +390,9 @@ __metadata: "@types/xml2js": "npm:^0.4.14" axios: "npm:^1.7.2" dotenv: "npm:^17.2.2" - eslint: "npm:^8.55.0" - jest: "npm:^29.7.0" + eslint: "npm:^9.39.1" + eslint-plugin-jest: "npm:^28.9.0" + jest: "npm:^30.2.0" typescript: "npm:^5.8.3" xml2js: "npm:^0.6.2" languageName: unknown @@ -402,7 +407,7 @@ __metadata: "@faker-js/faker": "npm:^9.7.0" "@fontsource/inter": "npm:^5.0.17" "@fontsource/roboto": "npm:^5.2.6" - "@hcaptcha/react-hcaptcha": "npm:^0.3.6" + "@hcaptcha/react-hcaptcha": "npm:^1.14.0" "@hookform/resolvers": "npm:^5.1.0" "@human-protocol/sdk": "workspace:*" "@mui/icons-material": "npm:^7.0.1" @@ -422,12 +427,12 @@ __metadata: "@types/react": "npm:^18.3.12" "@types/react-dom": "npm:^18.3.1" "@typescript-eslint/eslint-plugin": "npm:^6.20.0" - "@typescript-eslint/parser": "npm:^6.20.0" + "@typescript-eslint/parser": "npm:^8.46.3" "@vercel/style-guide": "npm:^6.0.0" "@vitejs/plugin-react": "npm:^4.2.1" "@wagmi/core": "npm:^2.17.1" date-fns: "npm:^4.1.0" - eslint: "npm:^8.55.0" + eslint: "npm:^9.39.1" eslint-config-prettier: "npm:^9.1.0" eslint-plugin-prettier: "npm:^5.2.1" eslint-plugin-react-refresh: "npm:^0.4.11" @@ -478,7 +483,7 @@ __metadata: "@nestjs/cli": "npm:^10.3.2" "@nestjs/common": "npm:^10.2.7" "@nestjs/config": "npm:^3.1.1" - "@nestjs/core": "npm:^10.3.10" + "@nestjs/core": "npm:^11.1.9" "@nestjs/passport": "npm:^10.0.0" "@nestjs/platform-express": "npm:^10.3.10" "@nestjs/schedule": "npm:^4.0.1" @@ -487,24 +492,25 @@ __metadata: "@nestjs/terminus": "npm:^11.0.0" "@nestjs/testing": "npm:^10.4.6" "@types/express": "npm:^4.17.13" - "@types/jest": "npm:29.5.12" + "@types/jest": "npm:30.0.0" "@types/jsonwebtoken": "npm:^9.0.7" "@types/lodash": "npm:^4.17.14" "@types/node": "npm:22.10.5" "@types/passport": "npm:^0" "@types/passport-jwt": "npm:^4.0.1" "@typescript-eslint/eslint-plugin": "npm:^5.0.0" - "@typescript-eslint/parser": "npm:^5.0.0" + "@typescript-eslint/parser": "npm:^8.46.3" axios: "npm:^1.7.2" cache-manager: "npm:^5.4.0" cache-manager-redis-yet: "npm:^5.1.5" class-transformer: "npm:^0.5.1" class-validator: "npm:0.14.1" - eslint: "npm:^8.55.0" + eslint: "npm:^9.39.1" eslint-config-prettier: "npm:^9.1.0" + eslint-plugin-jest: "npm:^28.9.0" eslint-plugin-prettier: "npm:^5.2.1" ethers: "npm:^6.15.0" - jest: "npm:29.7.0" + jest: "npm:30.2.0" joi: "npm:^17.13.3" jsonwebtoken: "npm:^9.0.2" jwt-decode: "npm:^4.0.0" @@ -529,7 +535,7 @@ __metadata: dependencies: "@emotion/react": "npm:^11.10.5" "@emotion/styled": "npm:^11.10.5" - "@hcaptcha/react-hcaptcha": "npm:^1.10.1" + "@hcaptcha/react-hcaptcha": "npm:^1.14.0" "@human-protocol/sdk": "workspace:*" "@mui/icons-material": "npm:^7.0.1" "@mui/lab": "npm:^5.0.0-alpha.141" @@ -551,7 +557,7 @@ __metadata: copy-to-clipboard: "npm:^3.3.3" dayjs: "npm:^1.11.12" decimal.js: "npm:^10.6.0" - eslint: "npm:^8.55.0" + eslint: "npm:^9.39.1" eslint-config-react-app: "npm:^7.0.1" eslint-import-resolver-typescript: "npm:^3.7.0" eslint-plugin-import: "npm:^2.29.0" @@ -594,7 +600,7 @@ __metadata: "@nestjs/cli": "npm:^10.3.2" "@nestjs/common": "npm:^10.2.7" "@nestjs/config": "npm:^3.1.1" - "@nestjs/core": "npm:^10.3.10" + "@nestjs/core": "npm:^11.1.9" "@nestjs/jwt": "npm:^10.2.0" "@nestjs/passport": "npm:^10.0.0" "@nestjs/platform-express": "npm:^10.3.10" @@ -608,14 +614,14 @@ __metadata: "@sendgrid/mail": "npm:^8.1.3" "@types/bcrypt": "npm:^5.0.2" "@types/express": "npm:^4.17.13" - "@types/jest": "npm:29.5.12" + "@types/jest": "npm:30.0.0" "@types/node": "npm:22.10.5" "@types/passport-jwt": "npm:^4.0.1" "@types/uuid": "npm:^10.0.0" "@types/xml2js": "npm:0.4.14" "@types/zxcvbn": "npm:4.4.5" "@typescript-eslint/eslint-plugin": "npm:^5.0.0" - "@typescript-eslint/parser": "npm:^5.0.0" + "@typescript-eslint/parser": "npm:^8.46.3" async-mutex: "npm:^0.5.0" axios: "npm:^1.7.2" bcrypt: "npm:^5.1.1" @@ -624,11 +630,12 @@ __metadata: class-validator: "npm:0.14.1" decimal.js: "npm:^10.6.0" dotenv: "npm:^17.2.2" - eslint: "npm:^8.55.0" + eslint: "npm:^9.39.1" eslint-config-prettier: "npm:^9.1.0" + eslint-plugin-jest: "npm:^28.9.0" eslint-plugin-prettier: "npm:^5.2.1" helmet: "npm:^7.1.0" - jest: "npm:29.7.0" + jest: "npm:30.2.0" joi: "npm:^17.13.3" json-stable-stringify: "npm:^1.2.1" minio: "npm:7.1.3" @@ -667,7 +674,7 @@ __metadata: "@nestjs/cli": "npm:^10.3.2" "@nestjs/common": "npm:^10.2.7" "@nestjs/config": "npm:^3.1.1" - "@nestjs/core": "npm:^10.3.10" + "@nestjs/core": "npm:^11.1.9" "@nestjs/jwt": "npm:^10.2.0" "@nestjs/passport": "npm:^10.0.0" "@nestjs/platform-express": "npm:^10.3.10" @@ -683,7 +690,7 @@ __metadata: "@slack/webhook": "npm:^7.0.5" "@types/bcrypt": "npm:^5.0.2" "@types/express": "npm:^4.17.13" - "@types/jest": "npm:29.5.12" + "@types/jest": "npm:30.0.0" "@types/lodash": "npm:^4.17.14" "@types/node": "npm:22.10.5" "@types/passport-jwt": "npm:^4.0.1" @@ -695,7 +702,7 @@ __metadata: class-transformer: "npm:^0.5.1" class-validator: "npm:^0.14.1" dotenv: "npm:^17.2.2" - eslint: "npm:^9.33.0" + eslint: "npm:^9.39.1" eslint-config-prettier: "npm:^10.1.8" eslint-import-resolver-typescript: "npm:^4.4.4" eslint-plugin-import: "npm:^2.32.0" @@ -703,7 +710,7 @@ __metadata: ethers: "npm:~6.15.0" globals: "npm:^16.3.0" helmet: "npm:^7.1.0" - jest: "npm:29.7.0" + jest: "npm:30.2.0" joi: "npm:^17.13.3" json-stable-stringify: "npm:^1.2.1" lodash: "npm:^4.17.21" @@ -744,10 +751,10 @@ __metadata: "@types/react-dom": "npm:^18.3.1" "@types/react-router-dom": "npm:^5.3.3" "@typescript-eslint/eslint-plugin": "npm:^7.13.1" - "@typescript-eslint/parser": "npm:^7.13.1" + "@typescript-eslint/parser": "npm:^8.46.3" "@vitejs/plugin-react": "npm:^4.3.1" axios: "npm:^1.7.2" - eslint: "npm:^8.57.0" + eslint: "npm:^9.39.1" eslint-plugin-react-hooks: "npm:^5.1.0" eslint-plugin-react-refresh: "npm:^0.4.11" ethers: "npm:^6.15.0" @@ -1344,7 +1351,7 @@ __metadata: languageName: node linkType: hard -"@babel/code-frame@npm:^7.0.0, @babel/code-frame@npm:^7.12.13, @babel/code-frame@npm:^7.16.7, @babel/code-frame@npm:^7.18.6, @babel/code-frame@npm:^7.27.1": +"@babel/code-frame@npm:^7.0.0, @babel/code-frame@npm:^7.16.7, @babel/code-frame@npm:^7.18.6, @babel/code-frame@npm:^7.27.1": version: 7.27.1 resolution: "@babel/code-frame@npm:7.27.1" dependencies: @@ -1362,7 +1369,7 @@ __metadata: languageName: node linkType: hard -"@babel/core@npm:^7.11.6, @babel/core@npm:^7.12.3, @babel/core@npm:^7.16.0, @babel/core@npm:^7.21.3, @babel/core@npm:^7.23.9, @babel/core@npm:^7.24.0, @babel/core@npm:^7.28.0": +"@babel/core@npm:^7.16.0, @babel/core@npm:^7.21.3, @babel/core@npm:^7.23.9, @babel/core@npm:^7.24.0, @babel/core@npm:^7.27.4, @babel/core@npm:^7.28.0": version: 7.28.5 resolution: "@babel/core@npm:7.28.5" dependencies: @@ -1399,7 +1406,7 @@ __metadata: languageName: node linkType: hard -"@babel/generator@npm:^7.28.5, @babel/generator@npm:^7.7.2": +"@babel/generator@npm:^7.27.5, @babel/generator@npm:^7.28.5": version: 7.28.5 resolution: "@babel/generator@npm:7.28.5" dependencies: @@ -1613,7 +1620,7 @@ __metadata: languageName: node linkType: hard -"@babel/parser@npm:^7.1.0, @babel/parser@npm:^7.14.7, @babel/parser@npm:^7.16.8, @babel/parser@npm:^7.20.7, @babel/parser@npm:^7.23.9, @babel/parser@npm:^7.27.2, @babel/parser@npm:^7.28.5": +"@babel/parser@npm:^7.1.0, @babel/parser@npm:^7.16.8, @babel/parser@npm:^7.20.7, @babel/parser@npm:^7.23.9, @babel/parser@npm:^7.27.2, @babel/parser@npm:^7.28.5": version: 7.28.5 resolution: "@babel/parser@npm:7.28.5" dependencies: @@ -1890,7 +1897,7 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-syntax-jsx@npm:^7.27.1, @babel/plugin-syntax-jsx@npm:^7.7.2": +"@babel/plugin-syntax-jsx@npm:^7.27.1": version: 7.27.1 resolution: "@babel/plugin-syntax-jsx@npm:7.27.1" dependencies: @@ -1989,7 +1996,7 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-syntax-typescript@npm:^7.27.1, @babel/plugin-syntax-typescript@npm:^7.7.2": +"@babel/plugin-syntax-typescript@npm:^7.27.1": version: 7.27.1 resolution: "@babel/plugin-syntax-typescript@npm:7.27.1" dependencies: @@ -2867,7 +2874,7 @@ __metadata: languageName: node linkType: hard -"@babel/template@npm:^7.27.1, @babel/template@npm:^7.27.2, @babel/template@npm:^7.3.3": +"@babel/template@npm:^7.27.1, @babel/template@npm:^7.27.2": version: 7.27.2 resolution: "@babel/template@npm:7.27.2" dependencies: @@ -2893,7 +2900,7 @@ __metadata: languageName: node linkType: hard -"@babel/types@npm:^7.0.0, @babel/types@npm:^7.16.8, @babel/types@npm:^7.20.7, @babel/types@npm:^7.21.3, @babel/types@npm:^7.27.1, @babel/types@npm:^7.27.3, @babel/types@npm:^7.28.2, @babel/types@npm:^7.28.4, @babel/types@npm:^7.28.5, @babel/types@npm:^7.3.3, @babel/types@npm:^7.4.4": +"@babel/types@npm:^7.0.0, @babel/types@npm:^7.16.8, @babel/types@npm:^7.20.7, @babel/types@npm:^7.21.3, @babel/types@npm:^7.27.1, @babel/types@npm:^7.27.3, @babel/types@npm:^7.28.2, @babel/types@npm:^7.28.4, @babel/types@npm:^7.28.5, @babel/types@npm:^7.4.4": version: 7.28.5 resolution: "@babel/types@npm:7.28.5" dependencies: @@ -3688,7 +3695,7 @@ __metadata: languageName: node linkType: hard -"@eslint-community/regexpp@npm:^4.10.0, @eslint-community/regexpp@npm:^4.12.1, @eslint-community/regexpp@npm:^4.4.0, @eslint-community/regexpp@npm:^4.5.1, @eslint-community/regexpp@npm:^4.6.1": +"@eslint-community/regexpp@npm:^4.10.0, @eslint-community/regexpp@npm:^4.12.1, @eslint-community/regexpp@npm:^4.4.0, @eslint-community/regexpp@npm:^4.5.1": version: 4.12.2 resolution: "@eslint-community/regexpp@npm:4.12.2" checksum: 10c0/fddcbc66851b308478d04e302a4d771d6917a0b3740dc351513c0da9ca2eab8a1adf99f5e0aa7ab8b13fa0df005c81adeee7e63a92f3effd7d367a163b721c2d @@ -3758,14 +3765,14 @@ __metadata: languageName: node linkType: hard -"@eslint/js@npm:8.57.1": - version: 8.57.1 - resolution: "@eslint/js@npm:8.57.1" - checksum: 10c0/b489c474a3b5b54381c62e82b3f7f65f4b8a5eaaed126546520bf2fede5532a8ed53212919fed1e9048dcf7f37167c8561d58d0ba4492a4244004e7793805223 +"@eslint/js@npm:9.39.1": + version: 9.39.1 + resolution: "@eslint/js@npm:9.39.1" + checksum: 10c0/6f7f26f8cdb7ad6327bbf9741973b6278eb946f18f70e35406e88194b0d5c522d0547a34a02f2a208eec95c5d1388cdf7ccb20039efd2e4cb6655615247a50f1 languageName: node linkType: hard -"@eslint/js@npm:9.39.0, @eslint/js@npm:^9.27.0, @eslint/js@npm:^9.30.1, @eslint/js@npm:^9.33.0": +"@eslint/js@npm:^9.27.0, @eslint/js@npm:^9.30.1, @eslint/js@npm:^9.33.0": version: 9.39.0 resolution: "@eslint/js@npm:9.39.0" checksum: 10c0/f0ac65784932f1a5d3b9c0db12eb1ff9dcb480dbd03da1045e5da820bd97a35875fb7790f1fbe652763270b1327b770c79a9ba0396e2ad91fbd97822493e67eb @@ -4844,17 +4851,7 @@ __metadata: languageName: node linkType: hard -"@hcaptcha/react-hcaptcha@npm:^0.3.6": - version: 0.3.10 - resolution: "@hcaptcha/react-hcaptcha@npm:0.3.10" - peerDependencies: - react: ">= 16.3.0" - react-dom: ">= 16.3.0" - checksum: 10c0/cb9af880be869baffc0088833b24b8ad2338db997f5a19d4c64f4fd9173d7d339639c2811802d6578d8b2f711a25417ef7f3923e23641cbc31e803d7ac732370 - languageName: node - linkType: hard - -"@hcaptcha/react-hcaptcha@npm:^1.10.1": +"@hcaptcha/react-hcaptcha@npm:^1.14.0": version: 1.14.0 resolution: "@hcaptcha/react-hcaptcha@npm:1.14.0" dependencies: @@ -4908,14 +4905,15 @@ __metadata: "@types/node": "npm:^22.15.16" chai: "npm:^4.5.0" concurrently: "npm:^9.1.2" - eslint: "npm:^8.55.0" + eslint: "npm:^9.39.1" + eslint-plugin-prettier: "npm:^5.2.1" ethers: "npm:~6.15.0" hardhat: "npm:^2.26.0" hardhat-abi-exporter: "npm:^2.10.1" hardhat-contract-sizer: "npm:^2.6.1" hardhat-dependency-compiler: "npm:^1.2.1" hardhat-gas-reporter: "npm:^2.0.2" - openpgp: "npm:5.11.2" + openpgp: "npm:6.2.2" prettier: "npm:^3.4.2" prettier-plugin-solidity: "npm:^1.3.1" solidity-coverage: "npm:^0.8.16" @@ -4935,15 +4933,16 @@ __metadata: dependencies: "@eslint/js": "npm:^9.30.1" "@types/node": "npm:^22.10.5" - eslint: "npm:^9.30.1" + eslint: "npm:^9.39.1" eslint-config-prettier: "npm:^10.1.5" eslint-import-resolver-typescript: "npm:^4.4.4" eslint-plugin-import: "npm:^2.32.0" eslint-plugin-prettier: "npm:^5.5.1" globals: "npm:^16.3.0" - pino: "npm:^9.7.0" - pino-pretty: "npm:^13.0.0" + pino: "npm:^10.1.0" + pino-pretty: "npm:^13.1.2" prettier: "npm:^3.4.2" + ts-node: "npm:^10.9.2" typescript: "npm:^5.8.3" typescript-eslint: "npm:^8.35.1" peerDependencies: @@ -4983,13 +4982,15 @@ __metadata: "@human-protocol/core": "workspace:*" "@types/validator": "npm:^13.15.4" axios: "npm:^1.4.0" - eslint: "npm:^8.55.0" + eslint: "npm:^9.39.1" + eslint-plugin-jest: "npm:^28.9.0" + eslint-plugin-prettier: "npm:^5.2.1" ethers: "npm:~6.15.0" graphql: "npm:^16.8.1" - graphql-request: "npm:^6.1.0" + graphql-request: "npm:^7.3.4" graphql-tag: "npm:^2.12.6" minio: "npm:7.1.3" - openpgp: "npm:^5.11.2" + openpgp: "npm:^6.2.2" prettier: "npm:^3.4.2" secp256k1: "npm:^5.0.1" ts-node: "npm:^10.9.2" @@ -5018,17 +5019,6 @@ __metadata: languageName: node linkType: hard -"@humanwhocodes/config-array@npm:^0.13.0": - version: 0.13.0 - resolution: "@humanwhocodes/config-array@npm:0.13.0" - dependencies: - "@humanwhocodes/object-schema": "npm:^2.0.3" - debug: "npm:^4.3.1" - minimatch: "npm:^3.0.5" - checksum: 10c0/205c99e756b759f92e1f44a3dc6292b37db199beacba8f26c2165d4051fe73a4ae52fdcfd08ffa93e7e5cb63da7c88648f0e84e197d154bbbbe137b2e0dd332e - languageName: node - linkType: hard - "@humanwhocodes/module-importer@npm:^1.0.1": version: 1.0.1 resolution: "@humanwhocodes/module-importer@npm:1.0.1" @@ -5036,13 +5026,6 @@ __metadata: languageName: node linkType: hard -"@humanwhocodes/object-schema@npm:^2.0.3": - version: 2.0.3 - resolution: "@humanwhocodes/object-schema@npm:2.0.3" - checksum: 10c0/80520eabbfc2d32fe195a93557cef50dfe8c8905de447f022675aaf66abc33ae54098f5ea78548d925aa671cd4ab7c7daa5ad704fe42358c9b5e7db60f80696c - languageName: node - linkType: hard - "@humanwhocodes/retry@npm:^0.4.0, @humanwhocodes/retry@npm:^0.4.2": version: 0.4.3 resolution: "@humanwhocodes/retry@npm:0.4.3" @@ -5385,152 +5368,184 @@ __metadata: languageName: node linkType: hard -"@jest/console@npm:^29.7.0": - version: 29.7.0 - resolution: "@jest/console@npm:29.7.0" +"@jest/console@npm:30.2.0": + version: 30.2.0 + resolution: "@jest/console@npm:30.2.0" dependencies: - "@jest/types": "npm:^29.6.3" + "@jest/types": "npm:30.2.0" "@types/node": "npm:*" - chalk: "npm:^4.0.0" - jest-message-util: "npm:^29.7.0" - jest-util: "npm:^29.7.0" + chalk: "npm:^4.1.2" + jest-message-util: "npm:30.2.0" + jest-util: "npm:30.2.0" slash: "npm:^3.0.0" - checksum: 10c0/7be408781d0a6f657e969cbec13b540c329671819c2f57acfad0dae9dbfe2c9be859f38fe99b35dba9ff1536937dc6ddc69fdcd2794812fa3c647a1619797f6c + checksum: 10c0/ecf7ca43698863095500710a5aa08c38b1731c9d89ba32f4d9da7424b53ce1e86b3db8ccbbb27b695f49b4f94bc1d7d0c63c751d73c83d59488a682bc98b7e70 languageName: node linkType: hard -"@jest/core@npm:^29.5.0, @jest/core@npm:^29.7.0": - version: 29.7.0 - resolution: "@jest/core@npm:29.7.0" +"@jest/core@npm:30.2.0": + version: 30.2.0 + resolution: "@jest/core@npm:30.2.0" dependencies: - "@jest/console": "npm:^29.7.0" - "@jest/reporters": "npm:^29.7.0" - "@jest/test-result": "npm:^29.7.0" - "@jest/transform": "npm:^29.7.0" - "@jest/types": "npm:^29.6.3" + "@jest/console": "npm:30.2.0" + "@jest/pattern": "npm:30.0.1" + "@jest/reporters": "npm:30.2.0" + "@jest/test-result": "npm:30.2.0" + "@jest/transform": "npm:30.2.0" + "@jest/types": "npm:30.2.0" "@types/node": "npm:*" - ansi-escapes: "npm:^4.2.1" - chalk: "npm:^4.0.0" - ci-info: "npm:^3.2.0" - exit: "npm:^0.1.2" - graceful-fs: "npm:^4.2.9" - jest-changed-files: "npm:^29.7.0" - jest-config: "npm:^29.7.0" - jest-haste-map: "npm:^29.7.0" - jest-message-util: "npm:^29.7.0" - jest-regex-util: "npm:^29.6.3" - jest-resolve: "npm:^29.7.0" - jest-resolve-dependencies: "npm:^29.7.0" - jest-runner: "npm:^29.7.0" - jest-runtime: "npm:^29.7.0" - jest-snapshot: "npm:^29.7.0" - jest-util: "npm:^29.7.0" - jest-validate: "npm:^29.7.0" - jest-watcher: "npm:^29.7.0" - micromatch: "npm:^4.0.4" - pretty-format: "npm:^29.7.0" + ansi-escapes: "npm:^4.3.2" + chalk: "npm:^4.1.2" + ci-info: "npm:^4.2.0" + exit-x: "npm:^0.2.2" + graceful-fs: "npm:^4.2.11" + jest-changed-files: "npm:30.2.0" + jest-config: "npm:30.2.0" + jest-haste-map: "npm:30.2.0" + jest-message-util: "npm:30.2.0" + jest-regex-util: "npm:30.0.1" + jest-resolve: "npm:30.2.0" + jest-resolve-dependencies: "npm:30.2.0" + jest-runner: "npm:30.2.0" + jest-runtime: "npm:30.2.0" + jest-snapshot: "npm:30.2.0" + jest-util: "npm:30.2.0" + jest-validate: "npm:30.2.0" + jest-watcher: "npm:30.2.0" + micromatch: "npm:^4.0.8" + pretty-format: "npm:30.2.0" slash: "npm:^3.0.0" - strip-ansi: "npm:^6.0.0" peerDependencies: node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 peerDependenciesMeta: node-notifier: optional: true - checksum: 10c0/934f7bf73190f029ac0f96662c85cd276ec460d407baf6b0dbaec2872e157db4d55a7ee0b1c43b18874602f662b37cb973dda469a4e6d88b4e4845b521adeeb2 + checksum: 10c0/03b3e35df3bbbbe28e2b53c0fe82d39b748d99b3bc88bb645c76593cdca44d7115f03ef6e6a1715f0862151d0ebab496199283def248fc05eb520f6aec6b20f3 languageName: node linkType: hard -"@jest/environment@npm:^29.7.0": - version: 29.7.0 - resolution: "@jest/environment@npm:29.7.0" +"@jest/diff-sequences@npm:30.0.1": + version: 30.0.1 + resolution: "@jest/diff-sequences@npm:30.0.1" + checksum: 10c0/3a840404e6021725ef7f86b11f7b2d13dd02846481264db0e447ee33b7ee992134e402cdc8b8b0ac969d37c6c0183044e382dedee72001cdf50cfb3c8088de74 + languageName: node + linkType: hard + +"@jest/environment@npm:30.2.0": + version: 30.2.0 + resolution: "@jest/environment@npm:30.2.0" dependencies: - "@jest/fake-timers": "npm:^29.7.0" - "@jest/types": "npm:^29.6.3" + "@jest/fake-timers": "npm:30.2.0" + "@jest/types": "npm:30.2.0" "@types/node": "npm:*" - jest-mock: "npm:^29.7.0" - checksum: 10c0/c7b1b40c618f8baf4d00609022d2afa086d9c6acc706f303a70bb4b67275868f620ad2e1a9efc5edd418906157337cce50589a627a6400bbdf117d351b91ef86 + jest-mock: "npm:30.2.0" + checksum: 10c0/56a9f1b82ee2623c13eece7d58188be35bd6e5c3c4ee3fbaedb1c4d7242c1b57d020f1a26ab127fa9496fdc11306c7ad1c4a2b7eba1fc726a27ae0873e907e47 languageName: node linkType: hard -"@jest/expect-utils@npm:^29.7.0": - version: 29.7.0 - resolution: "@jest/expect-utils@npm:29.7.0" +"@jest/expect-utils@npm:30.2.0": + version: 30.2.0 + resolution: "@jest/expect-utils@npm:30.2.0" dependencies: - jest-get-type: "npm:^29.6.3" - checksum: 10c0/60b79d23a5358dc50d9510d726443316253ecda3a7fb8072e1526b3e0d3b14f066ee112db95699b7a43ad3f0b61b750c72e28a5a1cac361d7a2bb34747fa938a + "@jest/get-type": "npm:30.1.0" + checksum: 10c0/e25a809ff2ab62292e2569f8d97f89168d27d078903f0306af5f70f1771b7efc62c458eca1dcb491ab1ed96cefedf403bd7acbb050c997105bc29b220fd9d61a languageName: node linkType: hard -"@jest/expect@npm:^29.7.0": - version: 29.7.0 - resolution: "@jest/expect@npm:29.7.0" +"@jest/expect@npm:30.2.0": + version: 30.2.0 + resolution: "@jest/expect@npm:30.2.0" dependencies: - expect: "npm:^29.7.0" - jest-snapshot: "npm:^29.7.0" - checksum: 10c0/b41f193fb697d3ced134349250aed6ccea075e48c4f803159db102b826a4e473397c68c31118259868fd69a5cba70e97e1c26d2c2ff716ca39dc73a2ccec037e + expect: "npm:30.2.0" + jest-snapshot: "npm:30.2.0" + checksum: 10c0/3984879022780dd480301c560cef465156b29d610f2c698fcdf81ad76930411d7816eff7cb721e81a1d9aaa8c2240a73c20be9385d1978c14b405a2ac6c9104a languageName: node linkType: hard -"@jest/fake-timers@npm:^29.7.0": - version: 29.7.0 - resolution: "@jest/fake-timers@npm:29.7.0" +"@jest/fake-timers@npm:30.2.0": + version: 30.2.0 + resolution: "@jest/fake-timers@npm:30.2.0" dependencies: - "@jest/types": "npm:^29.6.3" - "@sinonjs/fake-timers": "npm:^10.0.2" + "@jest/types": "npm:30.2.0" + "@sinonjs/fake-timers": "npm:^13.0.0" "@types/node": "npm:*" - jest-message-util: "npm:^29.7.0" - jest-mock: "npm:^29.7.0" - jest-util: "npm:^29.7.0" - checksum: 10c0/cf0a8bcda801b28dc2e2b2ba36302200ee8104a45ad7a21e6c234148932f826cb3bc57c8df3b7b815aeea0861d7b6ca6f0d4778f93b9219398ef28749e03595c + jest-message-util: "npm:30.2.0" + jest-mock: "npm:30.2.0" + jest-util: "npm:30.2.0" + checksum: 10c0/b29505528e546f08489535814f7dfcd3a2318660b987d605f44d41672e91a0c8c0dfc01e3dd1302e66e511409c3012d41e2e16703b214502b54ccc023773e3dc languageName: node linkType: hard -"@jest/globals@npm:^29.7.0": - version: 29.7.0 - resolution: "@jest/globals@npm:29.7.0" +"@jest/get-type@npm:30.1.0": + version: 30.1.0 + resolution: "@jest/get-type@npm:30.1.0" + checksum: 10c0/3e65fd5015f551c51ec68fca31bbd25b466be0e8ee8075d9610fa1c686ea1e70a942a0effc7b10f4ea9a338c24337e1ad97ff69d3ebacc4681b7e3e80d1b24ac + languageName: node + linkType: hard + +"@jest/globals@npm:30.2.0": + version: 30.2.0 + resolution: "@jest/globals@npm:30.2.0" dependencies: - "@jest/environment": "npm:^29.7.0" - "@jest/expect": "npm:^29.7.0" - "@jest/types": "npm:^29.6.3" - jest-mock: "npm:^29.7.0" - checksum: 10c0/a385c99396878fe6e4460c43bd7bb0a5cc52befb462cc6e7f2a3810f9e7bcce7cdeb51908fd530391ee452dc856c98baa2c5f5fa8a5b30b071d31ef7f6955cea + "@jest/environment": "npm:30.2.0" + "@jest/expect": "npm:30.2.0" + "@jest/types": "npm:30.2.0" + jest-mock: "npm:30.2.0" + checksum: 10c0/7433a501e3122e94b24a7bacc44fdc3921b20abf67c9d795f5bdd169f1beac058cff8109e4fddf71fdc8b18e532cb88c55412ca9927966f354930d6bb3fcaf9c languageName: node linkType: hard -"@jest/reporters@npm:^29.7.0": - version: 29.7.0 - resolution: "@jest/reporters@npm:29.7.0" +"@jest/pattern@npm:30.0.1": + version: 30.0.1 + resolution: "@jest/pattern@npm:30.0.1" + dependencies: + "@types/node": "npm:*" + jest-regex-util: "npm:30.0.1" + checksum: 10c0/32c5a7bfb6c591f004dac0ed36d645002ed168971e4c89bd915d1577031672870032594767557b855c5bc330aa1e39a2f54bf150d2ee88a7a0886e9cb65318bc + languageName: node + linkType: hard + +"@jest/reporters@npm:30.2.0": + version: 30.2.0 + resolution: "@jest/reporters@npm:30.2.0" dependencies: "@bcoe/v8-coverage": "npm:^0.2.3" - "@jest/console": "npm:^29.7.0" - "@jest/test-result": "npm:^29.7.0" - "@jest/transform": "npm:^29.7.0" - "@jest/types": "npm:^29.6.3" - "@jridgewell/trace-mapping": "npm:^0.3.18" + "@jest/console": "npm:30.2.0" + "@jest/test-result": "npm:30.2.0" + "@jest/transform": "npm:30.2.0" + "@jest/types": "npm:30.2.0" + "@jridgewell/trace-mapping": "npm:^0.3.25" "@types/node": "npm:*" - chalk: "npm:^4.0.0" - collect-v8-coverage: "npm:^1.0.0" - exit: "npm:^0.1.2" - glob: "npm:^7.1.3" - graceful-fs: "npm:^4.2.9" + chalk: "npm:^4.1.2" + collect-v8-coverage: "npm:^1.0.2" + exit-x: "npm:^0.2.2" + glob: "npm:^10.3.10" + graceful-fs: "npm:^4.2.11" istanbul-lib-coverage: "npm:^3.0.0" istanbul-lib-instrument: "npm:^6.0.0" istanbul-lib-report: "npm:^3.0.0" - istanbul-lib-source-maps: "npm:^4.0.0" + istanbul-lib-source-maps: "npm:^5.0.0" istanbul-reports: "npm:^3.1.3" - jest-message-util: "npm:^29.7.0" - jest-util: "npm:^29.7.0" - jest-worker: "npm:^29.7.0" + jest-message-util: "npm:30.2.0" + jest-util: "npm:30.2.0" + jest-worker: "npm:30.2.0" slash: "npm:^3.0.0" - string-length: "npm:^4.0.1" - strip-ansi: "npm:^6.0.0" + string-length: "npm:^4.0.2" v8-to-istanbul: "npm:^9.0.1" peerDependencies: node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 peerDependenciesMeta: node-notifier: optional: true - checksum: 10c0/a754402a799541c6e5aff2c8160562525e2a47e7d568f01ebfc4da66522de39cbb809bbb0a841c7052e4270d79214e70aec3c169e4eae42a03bc1a8a20cb9fa2 + checksum: 10c0/1f25d0896f857f220466cae3145a20f9e13e7d73aeccf87a1f8a5accb42bb7a564864ba63befa3494d76d1335b86c24d66054d62330c3dcffc9c2c5f4e740d6e + languageName: node + linkType: hard + +"@jest/schemas@npm:30.0.5": + version: 30.0.5 + resolution: "@jest/schemas@npm:30.0.5" + dependencies: + "@sinclair/typebox": "npm:^0.34.0" + checksum: 10c0/449dcd7ec5c6505e9ac3169d1143937e67044ae3e66a729ce4baf31812dfd30535f2b3b2934393c97cfdf5984ff581120e6b38f62b8560c8b5b7cc07f4175f65 languageName: node linkType: hard @@ -5543,65 +5558,92 @@ __metadata: languageName: node linkType: hard -"@jest/source-map@npm:^29.6.3": - version: 29.6.3 - resolution: "@jest/source-map@npm:29.6.3" +"@jest/snapshot-utils@npm:30.2.0": + version: 30.2.0 + resolution: "@jest/snapshot-utils@npm:30.2.0" dependencies: - "@jridgewell/trace-mapping": "npm:^0.3.18" - callsites: "npm:^3.0.0" - graceful-fs: "npm:^4.2.9" - checksum: 10c0/a2f177081830a2e8ad3f2e29e20b63bd40bade294880b595acf2fc09ec74b6a9dd98f126a2baa2bf4941acd89b13a4ade5351b3885c224107083a0059b60a219 + "@jest/types": "npm:30.2.0" + chalk: "npm:^4.1.2" + graceful-fs: "npm:^4.2.11" + natural-compare: "npm:^1.4.0" + checksum: 10c0/df69ee3b95d64db6d1e79e39d5dc226e417b412a1d5113264b487eb3a8887366a7952c350c378e2292f8e83ec1b3be22040317b795e85eb431830cbde06d09d8 languageName: node linkType: hard -"@jest/test-result@npm:^29.7.0": - version: 29.7.0 - resolution: "@jest/test-result@npm:29.7.0" +"@jest/source-map@npm:30.0.1": + version: 30.0.1 + resolution: "@jest/source-map@npm:30.0.1" dependencies: - "@jest/console": "npm:^29.7.0" - "@jest/types": "npm:^29.6.3" - "@types/istanbul-lib-coverage": "npm:^2.0.0" - collect-v8-coverage: "npm:^1.0.0" - checksum: 10c0/7de54090e54a674ca173470b55dc1afdee994f2d70d185c80236003efd3fa2b753fff51ffcdda8e2890244c411fd2267529d42c4a50a8303755041ee493e6a04 + "@jridgewell/trace-mapping": "npm:^0.3.25" + callsites: "npm:^3.1.0" + graceful-fs: "npm:^4.2.11" + checksum: 10c0/e7bda2786fc9f483d9dd7566c58c4bd948830997be862dfe80a3ae5550ff3f84753abb52e705d02ebe9db9f34ba7ebec4c2db11882048cdeef7a66f6332b3897 languageName: node linkType: hard -"@jest/test-sequencer@npm:^29.7.0": - version: 29.7.0 - resolution: "@jest/test-sequencer@npm:29.7.0" +"@jest/test-result@npm:30.2.0": + version: 30.2.0 + resolution: "@jest/test-result@npm:30.2.0" dependencies: - "@jest/test-result": "npm:^29.7.0" - graceful-fs: "npm:^4.2.9" - jest-haste-map: "npm:^29.7.0" + "@jest/console": "npm:30.2.0" + "@jest/types": "npm:30.2.0" + "@types/istanbul-lib-coverage": "npm:^2.0.6" + collect-v8-coverage: "npm:^1.0.2" + checksum: 10c0/87566d56b4f90630282c103f41ea9031f4647902f2cd9839bc49af6248301c1a95cbc4432a9512e61f6c6d778e8b925d0573588b26a211d3198c62471ba08c81 + languageName: node + linkType: hard + +"@jest/test-sequencer@npm:30.2.0": + version: 30.2.0 + resolution: "@jest/test-sequencer@npm:30.2.0" + dependencies: + "@jest/test-result": "npm:30.2.0" + graceful-fs: "npm:^4.2.11" + jest-haste-map: "npm:30.2.0" slash: "npm:^3.0.0" - checksum: 10c0/593a8c4272797bb5628984486080cbf57aed09c7cfdc0a634e8c06c38c6bef329c46c0016e84555ee55d1cd1f381518cf1890990ff845524c1123720c8c1481b + checksum: 10c0/b8366e629b885bfc4b2b95f34f47405e70120eb8601f42de20ea4de308a5088d7bd9f535abf67a2a0d083a2b49864176e1333e036426a5d6b6bd02c1c4dda40b languageName: node linkType: hard -"@jest/transform@npm:^29.7.0": - version: 29.7.0 - resolution: "@jest/transform@npm:29.7.0" +"@jest/transform@npm:30.2.0": + version: 30.2.0 + resolution: "@jest/transform@npm:30.2.0" dependencies: - "@babel/core": "npm:^7.11.6" - "@jest/types": "npm:^29.6.3" - "@jridgewell/trace-mapping": "npm:^0.3.18" - babel-plugin-istanbul: "npm:^6.1.1" - chalk: "npm:^4.0.0" + "@babel/core": "npm:^7.27.4" + "@jest/types": "npm:30.2.0" + "@jridgewell/trace-mapping": "npm:^0.3.25" + babel-plugin-istanbul: "npm:^7.0.1" + chalk: "npm:^4.1.2" convert-source-map: "npm:^2.0.0" fast-json-stable-stringify: "npm:^2.1.0" - graceful-fs: "npm:^4.2.9" - jest-haste-map: "npm:^29.7.0" - jest-regex-util: "npm:^29.6.3" - jest-util: "npm:^29.7.0" - micromatch: "npm:^4.0.4" - pirates: "npm:^4.0.4" + graceful-fs: "npm:^4.2.11" + jest-haste-map: "npm:30.2.0" + jest-regex-util: "npm:30.0.1" + jest-util: "npm:30.2.0" + micromatch: "npm:^4.0.8" + pirates: "npm:^4.0.7" slash: "npm:^3.0.0" - write-file-atomic: "npm:^4.0.2" - checksum: 10c0/7f4a7f73dcf45dfdf280c7aa283cbac7b6e5a904813c3a93ead7e55873761fc20d5c4f0191d2019004fac6f55f061c82eb3249c2901164ad80e362e7a7ede5a6 + write-file-atomic: "npm:^5.0.1" + checksum: 10c0/c0f21576de9f7ad8a2647450b5cd127d7c60176c19a666230241d121b9f928b036dd19973363e4acd7db2f8b82caff2b624930f57471be6092d73a7775365606 + languageName: node + linkType: hard + +"@jest/types@npm:30.2.0": + version: 30.2.0 + resolution: "@jest/types@npm:30.2.0" + dependencies: + "@jest/pattern": "npm:30.0.1" + "@jest/schemas": "npm:30.0.5" + "@types/istanbul-lib-coverage": "npm:^2.0.6" + "@types/istanbul-reports": "npm:^3.0.4" + "@types/node": "npm:*" + "@types/yargs": "npm:^17.0.33" + chalk: "npm:^4.1.2" + checksum: 10c0/ae121f6963bd9ed1cd9651db7be91bf14c05bff0d0eec4fca9fecf586bea4005e8f1de8cc9b8ef72e424ea96a309d123bef510b55a6a17a3b4b91a39d775e5cd languageName: node linkType: hard -"@jest/types@npm:^29.5.0, @jest/types@npm:^29.6.3": +"@jest/types@npm:^29.6.3": version: 29.6.3 resolution: "@jest/types@npm:29.6.3" dependencies: @@ -5669,7 +5711,7 @@ __metadata: languageName: node linkType: hard -"@jridgewell/trace-mapping@npm:^0.3.12, @jridgewell/trace-mapping@npm:^0.3.18, @jridgewell/trace-mapping@npm:^0.3.24, @jridgewell/trace-mapping@npm:^0.3.25, @jridgewell/trace-mapping@npm:^0.3.28": +"@jridgewell/trace-mapping@npm:^0.3.12, @jridgewell/trace-mapping@npm:^0.3.23, @jridgewell/trace-mapping@npm:^0.3.24, @jridgewell/trace-mapping@npm:^0.3.25, @jridgewell/trace-mapping@npm:^0.3.28": version: 0.3.31 resolution: "@jridgewell/trace-mapping@npm:0.3.31" dependencies: @@ -6839,21 +6881,21 @@ __metadata: languageName: node linkType: hard -"@nestjs/core@npm:^10.2.8, @nestjs/core@npm:^10.3.10": - version: 10.4.20 - resolution: "@nestjs/core@npm:10.4.20" +"@nestjs/core@npm:^11.1.9": + version: 11.1.9 + resolution: "@nestjs/core@npm:11.1.9" dependencies: - "@nuxtjs/opencollective": "npm:0.3.2" + "@nuxt/opencollective": "npm:0.4.1" fast-safe-stringify: "npm:2.1.1" iterare: "npm:1.2.1" - path-to-regexp: "npm:3.3.0" + path-to-regexp: "npm:8.3.0" tslib: "npm:2.8.1" uid: "npm:2.0.2" peerDependencies: - "@nestjs/common": ^10.0.0 - "@nestjs/microservices": ^10.0.0 - "@nestjs/platform-express": ^10.0.0 - "@nestjs/websockets": ^10.0.0 + "@nestjs/common": ^11.0.0 + "@nestjs/microservices": ^11.0.0 + "@nestjs/platform-express": ^11.0.0 + "@nestjs/websockets": ^11.0.0 reflect-metadata: ^0.1.12 || ^0.2.0 rxjs: ^7.1.0 peerDependenciesMeta: @@ -6863,7 +6905,7 @@ __metadata: optional: true "@nestjs/websockets": optional: true - checksum: 10c0/cb9f68a35d0e45684989c2ac1402617d2159d45abd49bf986b7a76931d5452d15fdf99ae8ac0fbca3c0f329a07a7802223e9dcaa3f834dfa9e96f2e7514c9aee + checksum: 10c0/baf8b7085fef072ae9f4c9d0fee3e62a00037b0beaf92af25f3b2a31f25e6ef85f077cfde65e54995d71414e5ce4866b5b25419ad122afb82120cd9d05209347 languageName: node linkType: hard @@ -7292,7 +7334,7 @@ __metadata: languageName: node linkType: hard -"@nodelib/fs.walk@npm:^1.2.3, @nodelib/fs.walk@npm:^1.2.8": +"@nodelib/fs.walk@npm:^1.2.3": version: 1.2.8 resolution: "@nodelib/fs.walk@npm:1.2.8" dependencies: @@ -7639,16 +7681,14 @@ __metadata: languageName: node linkType: hard -"@nuxtjs/opencollective@npm:0.3.2": - version: 0.3.2 - resolution: "@nuxtjs/opencollective@npm:0.3.2" +"@nuxt/opencollective@npm:0.4.1": + version: 0.4.1 + resolution: "@nuxt/opencollective@npm:0.4.1" dependencies: - chalk: "npm:^4.1.0" - consola: "npm:^2.15.0" - node-fetch: "npm:^2.6.1" + consola: "npm:^3.2.3" bin: opencollective: bin/opencollective.js - checksum: 10c0/540268687af3289ff107585484d42201b404cdbb98b3a512487c12a6b180a8f0e1df0d701df47d3d9e0d5c0f6eb3252d80535562aedca9edf52cf7fd17ae4601 + checksum: 10c0/ef2835d8635d2928152eff8b5a1ec42c145e2ab00cb02ff4bb61f0a6f5528afc9b169c06c32308c783779fe26855ebc67419743046caa80e582e814cff73187d languageName: node linkType: hard @@ -9094,7 +9134,14 @@ __metadata: languageName: node linkType: hard -"@sinonjs/commons@npm:^3.0.0": +"@sinclair/typebox@npm:^0.34.0": + version: 0.34.41 + resolution: "@sinclair/typebox@npm:0.34.41" + checksum: 10c0/0fb61fc2f90c25e30b19b0096eb8ab3ccef401d3e2acfce42168ff0ee877ba5981c8243fa6b1035ac756cde95316724e978b2837dd642d7e4e095de03a999c90 + languageName: node + linkType: hard + +"@sinonjs/commons@npm:^3.0.1": version: 3.0.1 resolution: "@sinonjs/commons@npm:3.0.1" dependencies: @@ -9103,12 +9150,12 @@ __metadata: languageName: node linkType: hard -"@sinonjs/fake-timers@npm:^10.0.2": - version: 10.3.0 - resolution: "@sinonjs/fake-timers@npm:10.3.0" +"@sinonjs/fake-timers@npm:^13.0.0": + version: 13.0.5 + resolution: "@sinonjs/fake-timers@npm:13.0.5" dependencies: - "@sinonjs/commons": "npm:^3.0.0" - checksum: 10c0/2e2fb6cc57f227912814085b7b01fede050cd4746ea8d49a1e44d5a0e56a804663b0340ae2f11af7559ea9bf4d087a11f2f646197a660ea3cb04e19efc04aa63 + "@sinonjs/commons": "npm:^3.0.1" + checksum: 10c0/a707476efd523d2138ef6bba916c83c4a377a8372ef04fad87499458af9f01afc58f4f245c5fd062793d6d70587309330c6f96947b5bd5697961c18004dc3e26 languageName: node linkType: hard @@ -10800,7 +10847,7 @@ __metadata: "@graphprotocol/graph-ts": "npm:^0.38.0" "@graphql-eslint/eslint-plugin": "npm:^3.19.1" "@human-protocol/core": "workspace:*" - eslint: "npm:^8.55.0" + eslint: "npm:^9.39.1" ethers: "npm:~6.15.0" graphql: "npm:^16.6.0" matchstick-as: "npm:^0.6.0" @@ -10881,7 +10928,7 @@ __metadata: languageName: node linkType: hard -"@types/babel__core@npm:^7.1.14, @types/babel__core@npm:^7.20.5": +"@types/babel__core@npm:^7.20.5": version: 7.20.5 resolution: "@types/babel__core@npm:7.20.5" dependencies: @@ -10913,7 +10960,7 @@ __metadata: languageName: node linkType: hard -"@types/babel__traverse@npm:*, @types/babel__traverse@npm:^7.0.6": +"@types/babel__traverse@npm:*": version: 7.28.0 resolution: "@types/babel__traverse@npm:7.28.0" dependencies: @@ -11193,15 +11240,6 @@ __metadata: languageName: node linkType: hard -"@types/graceful-fs@npm:^4.1.3": - version: 4.1.9 - resolution: "@types/graceful-fs@npm:4.1.9" - dependencies: - "@types/node": "npm:*" - checksum: 10c0/235d2fc69741448e853333b7c3d1180a966dd2b8972c8cbcd6b2a0c6cd7f8d582ab2b8e58219dbc62cce8f1b40aa317ff78ea2201cdd8249da5025adebed6f0b - languageName: node - linkType: hard - "@types/hast@npm:^3.0.4": version: 3.0.4 resolution: "@types/hast@npm:3.0.4" @@ -11236,7 +11274,7 @@ __metadata: languageName: node linkType: hard -"@types/istanbul-lib-coverage@npm:*, @types/istanbul-lib-coverage@npm:^2.0.0, @types/istanbul-lib-coverage@npm:^2.0.1": +"@types/istanbul-lib-coverage@npm:*, @types/istanbul-lib-coverage@npm:^2.0.0, @types/istanbul-lib-coverage@npm:^2.0.1, @types/istanbul-lib-coverage@npm:^2.0.6": version: 2.0.6 resolution: "@types/istanbul-lib-coverage@npm:2.0.6" checksum: 10c0/3948088654f3eeb45363f1db158354fb013b362dba2a5c2c18c559484d5eb9f6fd85b23d66c0a7c2fcfab7308d0a585b14dadaca6cc8bf89ebfdc7f8f5102fb7 @@ -11252,7 +11290,7 @@ __metadata: languageName: node linkType: hard -"@types/istanbul-reports@npm:^3.0.0": +"@types/istanbul-reports@npm:^3.0.0, @types/istanbul-reports@npm:^3.0.4": version: 3.0.4 resolution: "@types/istanbul-reports@npm:3.0.4" dependencies: @@ -11261,23 +11299,13 @@ __metadata: languageName: node linkType: hard -"@types/jest@npm:29.5.1": - version: 29.5.1 - resolution: "@types/jest@npm:29.5.1" - dependencies: - expect: "npm:^29.0.0" - pretty-format: "npm:^29.0.0" - checksum: 10c0/ba9df58fa0c813e1dda529e34bcec2d0e0bbac2d3e921a86c8e10d77fc5165bd8e5324eeb7071bfe0490e7d1055db34ef80d57e05bd967edae00df4158097ec6 - languageName: node - linkType: hard - -"@types/jest@npm:29.5.12": - version: 29.5.12 - resolution: "@types/jest@npm:29.5.12" +"@types/jest@npm:30.0.0": + version: 30.0.0 + resolution: "@types/jest@npm:30.0.0" dependencies: - expect: "npm:^29.0.0" - pretty-format: "npm:^29.0.0" - checksum: 10c0/25fc8e4c611fa6c4421e631432e9f0a6865a8cb07c9815ec9ac90d630271cad773b2ee5fe08066f7b95bebd18bb967f8ce05d018ee9ab0430f9dfd1d84665b6f + expect: "npm:^30.0.0" + pretty-format: "npm:^30.0.0" + checksum: 10c0/20c6ce574154bc16f8dd6a97afacca4b8c4921a819496a3970382031c509ebe87a1b37b152a1b8475089b82d8ca951a9e95beb4b9bf78fbf579b1536f0b65969 languageName: node linkType: hard @@ -11648,7 +11676,7 @@ __metadata: languageName: node linkType: hard -"@types/stack-utils@npm:^2.0.0": +"@types/stack-utils@npm:^2.0.3": version: 2.0.3 resolution: "@types/stack-utils@npm:2.0.3" checksum: 10c0/1f4658385ae936330581bcb8aa3a066df03867d90281cdf89cc356d404bd6579be0f11902304e1f775d92df22c6dd761d4451c804b0a4fba973e06211e9bd77c @@ -11754,6 +11782,15 @@ __metadata: languageName: node linkType: hard +"@types/yargs@npm:^17.0.33": + version: 17.0.35 + resolution: "@types/yargs@npm:17.0.35" + dependencies: + "@types/yargs-parser": "npm:*" + checksum: 10c0/609557826a6b85e73ccf587923f6429850d6dc70e420b455bab4601b670bfadf684b09ae288bccedab042c48ba65f1666133cf375814204b544009f57d6eef63 + languageName: node + linkType: hard + "@types/yargs@npm:^17.0.8": version: 17.0.34 resolution: "@types/yargs@npm:17.0.34" @@ -11890,7 +11927,7 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/parser@npm:^5.0.0, @typescript-eslint/parser@npm:^5.5.0": +"@typescript-eslint/parser@npm:^5.5.0": version: 5.62.0 resolution: "@typescript-eslint/parser@npm:5.62.0" dependencies: @@ -11907,25 +11944,7 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/parser@npm:^6.20.0": - version: 6.21.0 - resolution: "@typescript-eslint/parser@npm:6.21.0" - dependencies: - "@typescript-eslint/scope-manager": "npm:6.21.0" - "@typescript-eslint/types": "npm:6.21.0" - "@typescript-eslint/typescript-estree": "npm:6.21.0" - "@typescript-eslint/visitor-keys": "npm:6.21.0" - debug: "npm:^4.3.4" - peerDependencies: - eslint: ^7.0.0 || ^8.0.0 - peerDependenciesMeta: - typescript: - optional: true - checksum: 10c0/a8f99820679decd0d115c0af61903fb1de3b1b5bec412dc72b67670bf636de77ab07f2a68ee65d6da7976039bbf636907f9d5ca546db3f0b98a31ffbc225bc7d - languageName: node - linkType: hard - -"@typescript-eslint/parser@npm:^7.1.1, @typescript-eslint/parser@npm:^7.13.1, @typescript-eslint/parser@npm:^7.2.0": +"@typescript-eslint/parser@npm:^7.1.1": version: 7.18.0 resolution: "@typescript-eslint/parser@npm:7.18.0" dependencies: @@ -11943,6 +11962,22 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/parser@npm:^8.46.3": + version: 8.46.3 + resolution: "@typescript-eslint/parser@npm:8.46.3" + dependencies: + "@typescript-eslint/scope-manager": "npm:8.46.3" + "@typescript-eslint/types": "npm:8.46.3" + "@typescript-eslint/typescript-estree": "npm:8.46.3" + "@typescript-eslint/visitor-keys": "npm:8.46.3" + debug: "npm:^4.3.4" + peerDependencies: + eslint: ^8.57.0 || ^9.0.0 + typescript: ">=4.8.4 <6.0.0" + checksum: 10c0/8a8b47abbbc8bbc68f423df23189afefd296305d50a31c6bec9bdde563adc9ddf99b89a6b8466965fda4aee9118263bae36422dd1c25d7595dd82f8897b5df61 + languageName: node + linkType: hard + "@typescript-eslint/project-service@npm:8.46.2": version: 8.46.2 resolution: "@typescript-eslint/project-service@npm:8.46.2" @@ -11956,6 +11991,32 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/project-service@npm:8.46.3": + version: 8.46.3 + resolution: "@typescript-eslint/project-service@npm:8.46.3" + dependencies: + "@typescript-eslint/tsconfig-utils": "npm:^8.46.3" + "@typescript-eslint/types": "npm:^8.46.3" + debug: "npm:^4.3.4" + peerDependencies: + typescript: ">=4.8.4 <6.0.0" + checksum: 10c0/24ef305bbb550a8e27a7d6377663c1f2773b39b7a9f12c8b95c66c0d15f8150787b036bbff9ae4c2a0a18ab68c62435b0e03889df294bef00b3ae8846cd20659 + languageName: node + linkType: hard + +"@typescript-eslint/project-service@npm:8.47.0": + version: 8.47.0 + resolution: "@typescript-eslint/project-service@npm:8.47.0" + dependencies: + "@typescript-eslint/tsconfig-utils": "npm:^8.47.0" + "@typescript-eslint/types": "npm:^8.47.0" + debug: "npm:^4.3.4" + peerDependencies: + typescript: ">=4.8.4 <6.0.0" + checksum: 10c0/6d7ec78c63d672178727b2d79856b470bd99e90d387335decec026931caa94c6907afc4690b884ce1eaca65f2d8b8f070a5c6e70e47971dfeec34dfd022933b8 + languageName: node + linkType: hard + "@typescript-eslint/scope-manager@npm:5.62.0": version: 5.62.0 resolution: "@typescript-eslint/scope-manager@npm:5.62.0" @@ -11996,6 +12057,26 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/scope-manager@npm:8.46.3": + version: 8.46.3 + resolution: "@typescript-eslint/scope-manager@npm:8.46.3" + dependencies: + "@typescript-eslint/types": "npm:8.46.3" + "@typescript-eslint/visitor-keys": "npm:8.46.3" + checksum: 10c0/de8c116477e2a05a895ecd848a8289974a76cab884e07683c8085b3a2ce53895871d9bcd9de94723d6b2a437a6c526c77afcc75d6030cc4f1dccb9b47f4fc069 + languageName: node + linkType: hard + +"@typescript-eslint/scope-manager@npm:8.47.0": + version: 8.47.0 + resolution: "@typescript-eslint/scope-manager@npm:8.47.0" + dependencies: + "@typescript-eslint/types": "npm:8.47.0" + "@typescript-eslint/visitor-keys": "npm:8.47.0" + checksum: 10c0/2faa11e30724ca3a0648cdf83e0fc0fbdfcd89168fa0598d235a89604ee20c1f51ca2b70716f2bc0f1ea843de85976c0852de4549ba4649406d6b4acaf63f9c7 + languageName: node + linkType: hard + "@typescript-eslint/tsconfig-utils@npm:8.46.2, @typescript-eslint/tsconfig-utils@npm:^8.46.2": version: 8.46.2 resolution: "@typescript-eslint/tsconfig-utils@npm:8.46.2" @@ -12005,6 +12086,24 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/tsconfig-utils@npm:8.46.3, @typescript-eslint/tsconfig-utils@npm:^8.46.3": + version: 8.46.3 + resolution: "@typescript-eslint/tsconfig-utils@npm:8.46.3" + peerDependencies: + typescript: ">=4.8.4 <6.0.0" + checksum: 10c0/a9686141204a96591ee51814a79fa676a8da845638eabb2363f9d82902660fd48ea47f7ec15a618129e45021ad154e1d193127248915752546d60d475d6a566e + languageName: node + linkType: hard + +"@typescript-eslint/tsconfig-utils@npm:8.47.0, @typescript-eslint/tsconfig-utils@npm:^8.47.0": + version: 8.47.0 + resolution: "@typescript-eslint/tsconfig-utils@npm:8.47.0" + peerDependencies: + typescript: ">=4.8.4 <6.0.0" + checksum: 10c0/d62b1840344912f916e590dad0cc5aa8816ce281ea9cac7485a28c4427ecbb88c52fa64b3d8cc520c7cab401ede8631e1b3176306cd3d496f756046e5d0c345f + languageName: node + linkType: hard + "@typescript-eslint/type-utils@npm:5.62.0": version: 5.62.0 resolution: "@typescript-eslint/type-utils@npm:5.62.0" @@ -12100,6 +12199,20 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/types@npm:8.46.3, @typescript-eslint/types@npm:^8.46.3": + version: 8.46.3 + resolution: "@typescript-eslint/types@npm:8.46.3" + checksum: 10c0/6a6ccefbd086e6c38172fe14d04ba27c1c34755af7c25e752547c42d978b91bf6b97da56a5e63d098fbd679b4a5076c4dd4be6c947fd39b4c5feea5fed6deeb6 + languageName: node + linkType: hard + +"@typescript-eslint/types@npm:8.47.0, @typescript-eslint/types@npm:^8.47.0": + version: 8.47.0 + resolution: "@typescript-eslint/types@npm:8.47.0" + checksum: 10c0/0d7f139b29f2581e905463c904b9aef37d8bc62f7b647cd3950d8b139a9fa6821faa5370f4975ccbbd2b2046a50629bd78729be390fb2663e6d103ecda22d794 + languageName: node + linkType: hard + "@typescript-eslint/typescript-estree@npm:5.62.0": version: 5.62.0 resolution: "@typescript-eslint/typescript-estree@npm:5.62.0" @@ -12176,6 +12289,46 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/typescript-estree@npm:8.46.3": + version: 8.46.3 + resolution: "@typescript-eslint/typescript-estree@npm:8.46.3" + dependencies: + "@typescript-eslint/project-service": "npm:8.46.3" + "@typescript-eslint/tsconfig-utils": "npm:8.46.3" + "@typescript-eslint/types": "npm:8.46.3" + "@typescript-eslint/visitor-keys": "npm:8.46.3" + debug: "npm:^4.3.4" + fast-glob: "npm:^3.3.2" + is-glob: "npm:^4.0.3" + minimatch: "npm:^9.0.4" + semver: "npm:^7.6.0" + ts-api-utils: "npm:^2.1.0" + peerDependencies: + typescript: ">=4.8.4 <6.0.0" + checksum: 10c0/3a2bb879a3b42eda478015beee42729efdc78c0cfc70fa009442706626813114f8f9a1e918638ab957df385681ab073cf2076c508973ff9a72e2425e4e521b4f + languageName: node + linkType: hard + +"@typescript-eslint/typescript-estree@npm:8.47.0": + version: 8.47.0 + resolution: "@typescript-eslint/typescript-estree@npm:8.47.0" + dependencies: + "@typescript-eslint/project-service": "npm:8.47.0" + "@typescript-eslint/tsconfig-utils": "npm:8.47.0" + "@typescript-eslint/types": "npm:8.47.0" + "@typescript-eslint/visitor-keys": "npm:8.47.0" + debug: "npm:^4.3.4" + fast-glob: "npm:^3.3.2" + is-glob: "npm:^4.0.3" + minimatch: "npm:^9.0.4" + semver: "npm:^7.6.0" + ts-api-utils: "npm:^2.1.0" + peerDependencies: + typescript: ">=4.8.4 <6.0.0" + checksum: 10c0/b63e72f85382f9022a52c606738400d599a3d27318ec48bad21039758aa6d74050fb2462aa61bac1de8bd5951bc24f775d1dde74140433c60e2943e045c21649 + languageName: node + linkType: hard + "@typescript-eslint/utils@npm:5.62.0, @typescript-eslint/utils@npm:^5.10.0, @typescript-eslint/utils@npm:^5.58.0, @typescript-eslint/utils@npm:^5.62.0": version: 5.62.0 resolution: "@typescript-eslint/utils@npm:5.62.0" @@ -12240,6 +12393,21 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/utils@npm:^6.0.0 || ^7.0.0 || ^8.0.0": + version: 8.47.0 + resolution: "@typescript-eslint/utils@npm:8.47.0" + dependencies: + "@eslint-community/eslint-utils": "npm:^4.7.0" + "@typescript-eslint/scope-manager": "npm:8.47.0" + "@typescript-eslint/types": "npm:8.47.0" + "@typescript-eslint/typescript-estree": "npm:8.47.0" + peerDependencies: + eslint: ^8.57.0 || ^9.0.0 + typescript: ">=4.8.4 <6.0.0" + checksum: 10c0/8774f4e5748bdcefad32b4d06aee589208f4e78500c6c39bd6819b9602fc4212ed69fd774ccd2ad847f87a6bc0092d4db51e440668e7512d366969ab038a74f5 + languageName: node + linkType: hard + "@typescript-eslint/visitor-keys@npm:5.62.0": version: 5.62.0 resolution: "@typescript-eslint/visitor-keys@npm:5.62.0" @@ -12280,7 +12448,27 @@ __metadata: languageName: node linkType: hard -"@ungap/structured-clone@npm:^1.2.0": +"@typescript-eslint/visitor-keys@npm:8.46.3": + version: 8.46.3 + resolution: "@typescript-eslint/visitor-keys@npm:8.46.3" + dependencies: + "@typescript-eslint/types": "npm:8.46.3" + eslint-visitor-keys: "npm:^4.2.1" + checksum: 10c0/c5f96840e0c31541e1a2390712a6cb290eff59fc97a3ffa7ecab353d3bb3cf0d8c6f62d68db271bf194aa8c4582be735b6121fcc5b30449e01799642be77de6e + languageName: node + linkType: hard + +"@typescript-eslint/visitor-keys@npm:8.47.0": + version: 8.47.0 + resolution: "@typescript-eslint/visitor-keys@npm:8.47.0" + dependencies: + "@typescript-eslint/types": "npm:8.47.0" + eslint-visitor-keys: "npm:^4.2.1" + checksum: 10c0/14aedfdb5bf9b4c310b4a64cb62af94f35515af44911bae266205138165b3a8dc2cd57db3255ec27531dfa3552ba79a700ec8d745b0d18bca220a7f9f437ad06 + languageName: node + linkType: hard + +"@ungap/structured-clone@npm:^1.3.0": version: 1.3.0 resolution: "@ungap/structured-clone@npm:1.3.0" checksum: 10c0/0fc3097c2540ada1fc340ee56d58d96b5b536a2a0dab6e3ec17d4bfc8c4c86db345f61a375a8185f9da96f01c69678f836a2b57eeaa9e4b8eeafd26428e57b0a @@ -13772,7 +13960,7 @@ __metadata: languageName: node linkType: hard -"ansi-styles@npm:^5.0.0": +"ansi-styles@npm:^5.2.0": version: 5.2.0 resolution: "ansi-styles@npm:5.2.0" checksum: 10c0/9c4ca80eb3c2fb7b33841c210d2f20807f40865d27008d7c3f707b7f95cab7d67462a565e2388ac3285b71cb3d9bb2173de8da37c57692a362885ec34d6e27df @@ -13800,7 +13988,7 @@ __metadata: languageName: node linkType: hard -"anymatch@npm:^3.0.3, anymatch@npm:^3.1.3, anymatch@npm:~3.1.2": +"anymatch@npm:^3.1.3, anymatch@npm:~3.1.2": version: 3.1.3 resolution: "anymatch@npm:3.1.3" dependencies: @@ -14299,45 +14487,42 @@ __metadata: languageName: node linkType: hard -"babel-jest@npm:^29.7.0": - version: 29.7.0 - resolution: "babel-jest@npm:29.7.0" +"babel-jest@npm:30.2.0": + version: 30.2.0 + resolution: "babel-jest@npm:30.2.0" dependencies: - "@jest/transform": "npm:^29.7.0" - "@types/babel__core": "npm:^7.1.14" - babel-plugin-istanbul: "npm:^6.1.1" - babel-preset-jest: "npm:^29.6.3" - chalk: "npm:^4.0.0" - graceful-fs: "npm:^4.2.9" + "@jest/transform": "npm:30.2.0" + "@types/babel__core": "npm:^7.20.5" + babel-plugin-istanbul: "npm:^7.0.1" + babel-preset-jest: "npm:30.2.0" + chalk: "npm:^4.1.2" + graceful-fs: "npm:^4.2.11" slash: "npm:^3.0.0" peerDependencies: - "@babel/core": ^7.8.0 - checksum: 10c0/2eda9c1391e51936ca573dd1aedfee07b14c59b33dbe16ef347873ddd777bcf6e2fc739681e9e9661ab54ef84a3109a03725be2ac32cd2124c07ea4401cbe8c1 + "@babel/core": ^7.11.0 || ^8.0.0-0 + checksum: 10c0/673b8c87e5aec97c4f7372319c005d1e2b018e2f2e973378c7fb0a4f1e111f89872e6f1e49dd50aff6290cd881c865117ade67f2c78a356a8275ab21af47340d languageName: node linkType: hard -"babel-plugin-istanbul@npm:^6.1.1": - version: 6.1.1 - resolution: "babel-plugin-istanbul@npm:6.1.1" +"babel-plugin-istanbul@npm:^7.0.1": + version: 7.0.1 + resolution: "babel-plugin-istanbul@npm:7.0.1" dependencies: "@babel/helper-plugin-utils": "npm:^7.0.0" "@istanbuljs/load-nyc-config": "npm:^1.0.0" - "@istanbuljs/schema": "npm:^0.1.2" - istanbul-lib-instrument: "npm:^5.0.4" + "@istanbuljs/schema": "npm:^0.1.3" + istanbul-lib-instrument: "npm:^6.0.2" test-exclude: "npm:^6.0.0" - checksum: 10c0/1075657feb705e00fd9463b329921856d3775d9867c5054b449317d39153f8fbcebd3e02ebf00432824e647faff3683a9ca0a941325ef1afe9b3c4dd51b24beb + checksum: 10c0/92975e3df12503b168695463b451468da0c20e117807221652eb8e33a26c160f3b9d4c5c4e65495657420e871c6a54e5e31f539e2e1da37ef2261d7ddd4b1dfd languageName: node linkType: hard -"babel-plugin-jest-hoist@npm:^29.6.3": - version: 29.6.3 - resolution: "babel-plugin-jest-hoist@npm:29.6.3" +"babel-plugin-jest-hoist@npm:30.2.0": + version: 30.2.0 + resolution: "babel-plugin-jest-hoist@npm:30.2.0" dependencies: - "@babel/template": "npm:^7.3.3" - "@babel/types": "npm:^7.3.3" - "@types/babel__core": "npm:^7.1.14" - "@types/babel__traverse": "npm:^7.0.6" - checksum: 10c0/7e6451caaf7dce33d010b8aafb970e62f1b0c0b57f4978c37b0d457bbcf0874d75a395a102daf0bae0bd14eafb9f6e9a165ee5e899c0a4f1f3bb2e07b304ed2e + "@types/babel__core": "npm:^7.20.5" + checksum: 10c0/a2bd862aaa4875127c02e6020d3da67556a8f25981060252668dda65cf9a146202937ae80d2e8612c3c47afe19ac85577647b8cc216faa98567c685525a3f203 languageName: node linkType: hard @@ -14395,7 +14580,7 @@ __metadata: languageName: node linkType: hard -"babel-preset-current-node-syntax@npm:^1.0.0": +"babel-preset-current-node-syntax@npm:^1.2.0": version: 1.2.0 resolution: "babel-preset-current-node-syntax@npm:1.2.0" dependencies: @@ -14420,15 +14605,15 @@ __metadata: languageName: node linkType: hard -"babel-preset-jest@npm:^29.6.3": - version: 29.6.3 - resolution: "babel-preset-jest@npm:29.6.3" +"babel-preset-jest@npm:30.2.0": + version: 30.2.0 + resolution: "babel-preset-jest@npm:30.2.0" dependencies: - babel-plugin-jest-hoist: "npm:^29.6.3" - babel-preset-current-node-syntax: "npm:^1.0.0" + babel-plugin-jest-hoist: "npm:30.2.0" + babel-preset-current-node-syntax: "npm:^1.2.0" peerDependencies: - "@babel/core": ^7.0.0 - checksum: 10c0/ec5fd0276b5630b05f0c14bb97cc3815c6b31600c683ebb51372e54dcb776cff790bdeeabd5b8d01ede375a040337ccbf6a3ccd68d3a34219125945e167ad943 + "@babel/core": ^7.11.0 || ^8.0.0-beta.1 + checksum: 10c0/fb2727bad450256146d63b5231b83a7638e73b96c9612296a20afd65fb8c76678ef9bc6fa56e81d1303109258aeb4fccea5b96568744059e47d3c6e3ebc98bd9 languageName: node linkType: hard @@ -15136,7 +15321,7 @@ __metadata: languageName: node linkType: hard -"callsites@npm:^3.0.0": +"callsites@npm:^3.0.0, callsites@npm:^3.1.0": version: 3.1.0 resolution: "callsites@npm:3.1.0" checksum: 10c0/fff92277400eb06c3079f9e74f3af120db9f8ea03bad0e84d9aede54bbe2d44a56cccb5f6cf12211f93f52306df87077ecec5b712794c5a9b5dac6d615a3f301 @@ -15150,7 +15335,7 @@ __metadata: languageName: node linkType: hard -"camelcase@npm:^6.0.0, camelcase@npm:^6.2.0": +"camelcase@npm:^6.0.0, camelcase@npm:^6.2.0, camelcase@npm:^6.3.0": version: 6.3.0 resolution: "camelcase@npm:6.3.0" checksum: 10c0/0d701658219bd3116d12da3eab31acddb3f9440790c0792e0d398f0a520a6a4058018e546862b6fba89d7ae990efaeb97da71e1913e9ebf5a8b5621a3d55c710 @@ -15428,7 +15613,7 @@ __metadata: languageName: node linkType: hard -"ci-info@npm:^4.0.0": +"ci-info@npm:^4.0.0, ci-info@npm:^4.2.0": version: 4.3.1 resolution: "ci-info@npm:4.3.1" checksum: 10c0/7dd82000f514d76ddfe7775e4cb0d66e5c638f5fa0e2a3be29557e898da0d32ac04f231217d414d07fb968b1fbc6d980ee17ddde0d2c516f23da9cfff608f6c1 @@ -15446,10 +15631,10 @@ __metadata: languageName: node linkType: hard -"cjs-module-lexer@npm:^1.0.0": - version: 1.4.3 - resolution: "cjs-module-lexer@npm:1.4.3" - checksum: 10c0/076b3af85adc4d65dbdab1b5b240fe5b45d44fcf0ef9d429044dd94d19be5589376805c44fb2d4b3e684e5fe6a9b7cf3e426476a6507c45283c5fc6ff95240be +"cjs-module-lexer@npm:^2.1.0": + version: 2.1.1 + resolution: "cjs-module-lexer@npm:2.1.1" + checksum: 10c0/813697c0ed1533f4a88bd8051d8ae1cb1b21d3ff1c6a5720353817d50c3f3f83bb2af6bd83922aae94b3ef90d64d01a6eb123fa8249f4dc7215e3afd89364f86 languageName: node linkType: hard @@ -15683,7 +15868,7 @@ __metadata: languageName: node linkType: hard -"collect-v8-coverage@npm:^1.0.0": +"collect-v8-coverage@npm:^1.0.2": version: 1.0.3 resolution: "collect-v8-coverage@npm:1.0.3" checksum: 10c0/bc62ba251bcce5e3354a8f88fa6442bee56e3e612fec08d4dfcf66179b41ea0bf544b0f78c4ebc0f8050871220af95bb5c5578a6aef346feea155640582f09dc @@ -15942,10 +16127,10 @@ __metadata: languageName: node linkType: hard -"consola@npm:^2.15.0": - version: 2.15.3 - resolution: "consola@npm:2.15.3" - checksum: 10c0/34a337e6b4a1349ee4d7b4c568484344418da8fdb829d7d71bfefcd724f608f273987633b6eef465e8de510929907a092e13cb7a28a5d3acb3be446fcc79fd5e +"consola@npm:^3.2.3": + version: 3.4.2 + resolution: "consola@npm:3.4.2" + checksum: 10c0/7cebe57ecf646ba74b300bcce23bff43034ed6fbec9f7e39c27cee1dc00df8a21cd336b466ad32e304ea70fba04ec9e890c200270de9a526ce021ba8a7e4c11a languageName: node linkType: hard @@ -16201,23 +16386,6 @@ __metadata: languageName: node linkType: hard -"create-jest@npm:^29.7.0": - version: 29.7.0 - resolution: "create-jest@npm:29.7.0" - dependencies: - "@jest/types": "npm:^29.6.3" - chalk: "npm:^4.0.0" - exit: "npm:^0.1.2" - graceful-fs: "npm:^4.2.9" - jest-config: "npm:^29.7.0" - jest-util: "npm:^29.7.0" - prompts: "npm:^2.0.1" - bin: - create-jest: bin/create-jest.js - checksum: 10c0/e7e54c280692470d3398f62a6238fd396327e01c6a0757002833f06d00afc62dd7bfe04ff2b9cd145264460e6b4d1eb8386f2925b7e567f97939843b7b0e812f - languageName: node - linkType: hard - "create-require@npm:^1.1.0, create-require@npm:^1.1.1": version: 1.1.1 resolution: "create-require@npm:1.1.1" @@ -16264,7 +16432,7 @@ __metadata: languageName: node linkType: hard -"cross-spawn@npm:^7.0.2, cross-spawn@npm:^7.0.3, cross-spawn@npm:^7.0.5, cross-spawn@npm:^7.0.6": +"cross-spawn@npm:^7.0.3, cross-spawn@npm:^7.0.5, cross-spawn@npm:^7.0.6": version: 7.0.6 resolution: "cross-spawn@npm:7.0.6" dependencies: @@ -16658,7 +16826,7 @@ __metadata: languageName: node linkType: hard -"dedent@npm:^1.0.0, dedent@npm:^1.6.0": +"dedent@npm:^1.6.0": version: 1.7.0 resolution: "dedent@npm:1.7.0" peerDependencies: @@ -16707,7 +16875,7 @@ __metadata: languageName: node linkType: hard -"deepmerge@npm:^4.2.2": +"deepmerge@npm:^4.2.2, deepmerge@npm:^4.3.1": version: 4.3.1 resolution: "deepmerge@npm:4.3.1" checksum: 10c0/e53481aaf1aa2c4082b5342be6b6d8ad9dfe387bc92ce197a66dea08bd4265904a087e75e464f14d1347cf2ac8afe1e4c16b266e0561cc5df29382d3c5f80044 @@ -16902,7 +17070,7 @@ __metadata: languageName: node linkType: hard -"detect-newline@npm:^3.0.0": +"detect-newline@npm:^3.1.0": version: 3.1.0 resolution: "detect-newline@npm:3.1.0" checksum: 10c0/c38cfc8eeb9fda09febb44bcd85e467c970d4e3bf526095394e5a4f18bc26dd0cf6b22c69c1fa9969261521c593836db335c2795218f6d781a512aea2fb8209d @@ -16916,13 +17084,6 @@ __metadata: languageName: node linkType: hard -"diff-sequences@npm:^29.6.3": - version: 29.6.3 - resolution: "diff-sequences@npm:29.6.3" - checksum: 10c0/32e27ac7dbffdf2fb0eb5a84efd98a9ad084fbabd5ac9abb8757c6770d5320d2acd172830b28c4add29bb873d59420601dfc805ac4064330ce59b1adfd0593b2 - languageName: node - linkType: hard - "diff@npm:^4.0.1": version: 4.0.2 resolution: "diff@npm:4.0.2" @@ -17000,15 +17161,6 @@ __metadata: languageName: node linkType: hard -"doctrine@npm:^3.0.0": - version: 3.0.0 - resolution: "doctrine@npm:3.0.0" - dependencies: - esutils: "npm:^2.0.2" - checksum: 10c0/c96bdccabe9d62ab6fea9399fdff04a66e6563c1d6fb3a3a063e8d53c3bb136ba63e84250bbf63d00086a769ad53aef92d2bd483f03f837fc97b71cbee6b2520 - languageName: node - linkType: hard - "dom-helpers@npm:^5.0.1": version: 5.2.1 resolution: "dom-helpers@npm:5.2.1" @@ -17900,6 +18052,24 @@ __metadata: languageName: node linkType: hard +"eslint-plugin-jest@npm:^28.9.0": + version: 28.14.0 + resolution: "eslint-plugin-jest@npm:28.14.0" + dependencies: + "@typescript-eslint/utils": "npm:^6.0.0 || ^7.0.0 || ^8.0.0" + peerDependencies: + "@typescript-eslint/eslint-plugin": ^6.0.0 || ^7.0.0 || ^8.0.0 + eslint: ^7.0.0 || ^8.0.0 || ^9.0.0 + jest: "*" + peerDependenciesMeta: + "@typescript-eslint/eslint-plugin": + optional: true + jest: + optional: true + checksum: 10c0/da9c99dd8a1a80aa0c126ff4558882451dcee61b7e4c88e2407ac27d0c86fad2951384a4b037748e26f8743890b4628c6917b0760b01b7017c53fb29768584bc + languageName: node + linkType: hard + "eslint-plugin-jsx-a11y@npm:^6.5.1, eslint-plugin-jsx-a11y@npm:^6.8.0": version: 6.10.2 resolution: "eslint-plugin-jsx-a11y@npm:6.10.2" @@ -18100,16 +18270,6 @@ __metadata: languageName: node linkType: hard -"eslint-scope@npm:^7.2.2": - version: 7.2.2 - resolution: "eslint-scope@npm:7.2.2" - dependencies: - esrecurse: "npm:^4.3.0" - estraverse: "npm:^5.2.0" - checksum: 10c0/613c267aea34b5a6d6c00514e8545ef1f1433108097e857225fed40d397dd6b1809dffd11c2fde23b37ca53d7bf935fe04d2a18e6fc932b31837b6ad67e1c116 - languageName: node - linkType: hard - "eslint-scope@npm:^8.4.0": version: 8.4.0 resolution: "eslint-scope@npm:8.4.0" @@ -18141,57 +18301,9 @@ __metadata: languageName: node linkType: hard -"eslint@npm:^8.0.1, eslint@npm:^8.55.0, eslint@npm:^8.57.0": - version: 8.57.1 - resolution: "eslint@npm:8.57.1" - dependencies: - "@eslint-community/eslint-utils": "npm:^4.2.0" - "@eslint-community/regexpp": "npm:^4.6.1" - "@eslint/eslintrc": "npm:^2.1.4" - "@eslint/js": "npm:8.57.1" - "@humanwhocodes/config-array": "npm:^0.13.0" - "@humanwhocodes/module-importer": "npm:^1.0.1" - "@nodelib/fs.walk": "npm:^1.2.8" - "@ungap/structured-clone": "npm:^1.2.0" - ajv: "npm:^6.12.4" - chalk: "npm:^4.0.0" - cross-spawn: "npm:^7.0.2" - debug: "npm:^4.3.2" - doctrine: "npm:^3.0.0" - escape-string-regexp: "npm:^4.0.0" - eslint-scope: "npm:^7.2.2" - eslint-visitor-keys: "npm:^3.4.3" - espree: "npm:^9.6.1" - esquery: "npm:^1.4.2" - esutils: "npm:^2.0.2" - fast-deep-equal: "npm:^3.1.3" - file-entry-cache: "npm:^6.0.1" - find-up: "npm:^5.0.0" - glob-parent: "npm:^6.0.2" - globals: "npm:^13.19.0" - graphemer: "npm:^1.4.0" - ignore: "npm:^5.2.0" - imurmurhash: "npm:^0.1.4" - is-glob: "npm:^4.0.0" - is-path-inside: "npm:^3.0.3" - js-yaml: "npm:^4.1.0" - json-stable-stringify-without-jsonify: "npm:^1.0.1" - levn: "npm:^0.4.1" - lodash.merge: "npm:^4.6.2" - minimatch: "npm:^3.1.2" - natural-compare: "npm:^1.4.0" - optionator: "npm:^0.9.3" - strip-ansi: "npm:^6.0.1" - text-table: "npm:^0.2.0" - bin: - eslint: bin/eslint.js - checksum: 10c0/1fd31533086c1b72f86770a4d9d7058ee8b4643fd1cfd10c7aac1ecb8725698e88352a87805cf4b2ce890aa35947df4b4da9655fb7fdfa60dbb448a43f6ebcf1 - languageName: node - linkType: hard - -"eslint@npm:^9.27.0, eslint@npm:^9.30.1, eslint@npm:^9.33.0": - version: 9.39.0 - resolution: "eslint@npm:9.39.0" +"eslint@npm:^9.39.1": + version: 9.39.1 + resolution: "eslint@npm:9.39.1" dependencies: "@eslint-community/eslint-utils": "npm:^4.8.0" "@eslint-community/regexpp": "npm:^4.12.1" @@ -18199,7 +18311,7 @@ __metadata: "@eslint/config-helpers": "npm:^0.4.2" "@eslint/core": "npm:^0.17.0" "@eslint/eslintrc": "npm:^3.3.1" - "@eslint/js": "npm:9.39.0" + "@eslint/js": "npm:9.39.1" "@eslint/plugin-kit": "npm:^0.4.1" "@humanfs/node": "npm:^0.16.6" "@humanwhocodes/module-importer": "npm:^1.0.1" @@ -18234,7 +18346,7 @@ __metadata: optional: true bin: eslint: bin/eslint.js - checksum: 10c0/4035f7a3d01b3a6026d0ade899713286ed9514e5b65afe5eb671b66834a4c211769de18d1329dadb4e0bb487ea61e6a5ba0905c2b92144b8b9a2216c1ccca3e8 + checksum: 10c0/59b2480639404ba24578ca480f973683b87b7aac8aa7e349240474a39067804fd13cd8b9cb22fee074170b8c7c563b57bab703ec0f0d3f81ea017e5d2cad299d languageName: node linkType: hard @@ -18249,7 +18361,7 @@ __metadata: languageName: node linkType: hard -"espree@npm:^9.6.0, espree@npm:^9.6.1": +"espree@npm:^9.6.0": version: 9.6.1 resolution: "espree@npm:9.6.1" dependencies: @@ -18280,7 +18392,7 @@ __metadata: languageName: node linkType: hard -"esquery@npm:^1.4.2, esquery@npm:^1.5.0": +"esquery@npm:^1.5.0": version: 1.6.0 resolution: "esquery@npm:1.6.0" dependencies: @@ -18572,7 +18684,7 @@ __metadata: languageName: node linkType: hard -"execa@npm:5.1.1, execa@npm:^5.0.0, execa@npm:^5.1.1": +"execa@npm:5.1.1, execa@npm:^5.1.1": version: 5.1.1 resolution: "execa@npm:5.1.1" dependencies: @@ -18606,10 +18718,10 @@ __metadata: languageName: node linkType: hard -"exit@npm:^0.1.2": - version: 0.1.2 - resolution: "exit@npm:0.1.2" - checksum: 10c0/71d2ad9b36bc25bb8b104b17e830b40a08989be7f7d100b13269aaae7c3784c3e6e1e88a797e9e87523993a25ba27c8958959a554535370672cfb4d824af8989 +"exit-x@npm:^0.2.2": + version: 0.2.2 + resolution: "exit-x@npm:0.2.2" + checksum: 10c0/212a7a095ca5540e9581f1ef2d1d6a40df7a6027c8cc96e78ce1d16b86d1a88326d4a0eff8dff2b5ec1e68bb0c1edd5d0dfdde87df1869bf7514d4bc6a5cbd72 languageName: node linkType: hard @@ -18620,16 +18732,17 @@ __metadata: languageName: node linkType: hard -"expect@npm:^29.0.0, expect@npm:^29.7.0": - version: 29.7.0 - resolution: "expect@npm:29.7.0" +"expect@npm:30.2.0, expect@npm:^30.0.0": + version: 30.2.0 + resolution: "expect@npm:30.2.0" dependencies: - "@jest/expect-utils": "npm:^29.7.0" - jest-get-type: "npm:^29.6.3" - jest-matcher-utils: "npm:^29.7.0" - jest-message-util: "npm:^29.7.0" - jest-util: "npm:^29.7.0" - checksum: 10c0/2eddeace66e68b8d8ee5f7be57f3014b19770caaf6815c7a08d131821da527fb8c8cb7b3dcd7c883d2d3d8d184206a4268984618032d1e4b16dc8d6596475d41 + "@jest/expect-utils": "npm:30.2.0" + "@jest/get-type": "npm:30.1.0" + jest-matcher-utils: "npm:30.2.0" + jest-message-util: "npm:30.2.0" + jest-mock: "npm:30.2.0" + jest-util: "npm:30.2.0" + checksum: 10c0/fe440b3a036e2de1a3ede84bc6a699925328056e74324fbd2fdd9ce7b7358d03e515ac8db559c33828bcb0b7887b493dbaaece565e67d88748685850da5d9209 languageName: node linkType: hard @@ -18941,7 +19054,7 @@ __metadata: languageName: node linkType: hard -"fb-watchman@npm:^2.0.0": +"fb-watchman@npm:^2.0.2": version: 2.0.2 resolution: "fb-watchman@npm:2.0.2" dependencies: @@ -18978,15 +19091,6 @@ __metadata: languageName: node linkType: hard -"file-entry-cache@npm:^6.0.1": - version: 6.0.1 - resolution: "file-entry-cache@npm:6.0.1" - dependencies: - flat-cache: "npm:^3.0.4" - checksum: 10c0/58473e8a82794d01b38e5e435f6feaf648e3f36fdb3a56e98f417f4efae71ad1c0d4ebd8a9a7c50c3ad085820a93fc7494ad721e0e4ebc1da3573f4e1c3c7cdd - languageName: node - linkType: hard - "file-entry-cache@npm:^8.0.0": version: 8.0.0 resolution: "file-entry-cache@npm:8.0.0" @@ -19112,17 +19216,6 @@ __metadata: languageName: node linkType: hard -"flat-cache@npm:^3.0.4": - version: 3.2.0 - resolution: "flat-cache@npm:3.2.0" - dependencies: - flatted: "npm:^3.2.9" - keyv: "npm:^4.5.3" - rimraf: "npm:^3.0.2" - checksum: 10c0/b76f611bd5f5d68f7ae632e3ae503e678d205cf97a17c6ab5b12f6ca61188b5f1f7464503efae6dc18683ed8f0b41460beb48ac4b9ac63fe6201296a91ba2f75 - languageName: node - linkType: hard - "flat-cache@npm:^4.0.0": version: 4.0.1 resolution: "flat-cache@npm:4.0.1" @@ -19388,7 +19481,7 @@ __metadata: languageName: node linkType: hard -"fsevents@npm:^2.3.2, fsevents@npm:~2.3.2, fsevents@npm:~2.3.3": +"fsevents@npm:^2.3.3, fsevents@npm:~2.3.2, fsevents@npm:~2.3.3": version: 2.3.3 resolution: "fsevents@npm:2.3.3" dependencies: @@ -19398,7 +19491,7 @@ __metadata: languageName: node linkType: hard -"fsevents@patch:fsevents@npm%3A^2.3.2#optional!builtin, fsevents@patch:fsevents@npm%3A~2.3.2#optional!builtin, fsevents@patch:fsevents@npm%3A~2.3.3#optional!builtin": +"fsevents@patch:fsevents@npm%3A^2.3.3#optional!builtin, fsevents@patch:fsevents@npm%3A~2.3.2#optional!builtin, fsevents@patch:fsevents@npm%3A~2.3.3#optional!builtin": version: 2.3.3 resolution: "fsevents@patch:fsevents@npm%3A2.3.3#optional!builtin::version=2.3.3&hash=df0bf1" dependencies: @@ -19985,6 +20078,17 @@ __metadata: languageName: node linkType: hard +"graphql-request@npm:^7.3.4": + version: 7.3.4 + resolution: "graphql-request@npm:7.3.4" + dependencies: + "@graphql-typed-document-node/core": "npm:^3.2.0" + peerDependencies: + graphql: 14 - 16 + checksum: 10c0/dc4d012f614b11c1f92b6eeb273bcc936f621b10e751710a899b88d9762160601b523773ac60a01b702728c9d98c9461602d472554cf4b0cb97b1fac6687c139 + languageName: node + linkType: hard + "graphql-tag@npm:^2.12.6": version: 2.12.6 resolution: "graphql-tag@npm:2.12.6" @@ -20706,7 +20810,7 @@ __metadata: languageName: node linkType: hard -"import-local@npm:^3.0.2": +"import-local@npm:^3.2.0": version: 3.2.0 resolution: "import-local@npm:3.2.0" dependencies: @@ -21093,7 +21197,7 @@ __metadata: languageName: node linkType: hard -"is-generator-fn@npm:^2.0.0": +"is-generator-fn@npm:^2.1.0": version: 2.1.0 resolution: "is-generator-fn@npm:2.1.0" checksum: 10c0/2957cab387997a466cd0bf5c1b6047bd21ecb32bdcfd8996b15747aa01002c1c88731802f1b3d34ac99f4f6874b626418bd118658cf39380fe5fff32a3af9c4d @@ -21202,13 +21306,6 @@ __metadata: languageName: node linkType: hard -"is-path-inside@npm:^3.0.3": - version: 3.0.3 - resolution: "is-path-inside@npm:3.0.3" - checksum: 10c0/cf7d4ac35fb96bab6a1d2c3598fe5ebb29aafb52c0aaa482b5a3ed9d8ba3edc11631e3ec2637660c44b3ce0e61a08d54946e8af30dec0b60a7c27296c68ffd05 - languageName: node - linkType: hard - "is-plain-obj@npm:^2.1.0": version: 2.1.0 resolution: "is-plain-obj@npm:2.1.0" @@ -21499,20 +21596,7 @@ __metadata: languageName: node linkType: hard -"istanbul-lib-instrument@npm:^5.0.4": - version: 5.2.1 - resolution: "istanbul-lib-instrument@npm:5.2.1" - dependencies: - "@babel/core": "npm:^7.12.3" - "@babel/parser": "npm:^7.14.7" - "@istanbuljs/schema": "npm:^0.1.2" - istanbul-lib-coverage: "npm:^3.2.0" - semver: "npm:^6.3.0" - checksum: 10c0/8a1bdf3e377dcc0d33ec32fe2b6ecacdb1e4358fd0eb923d4326bb11c67622c0ceb99600a680f3dad5d29c66fc1991306081e339b4d43d0b8a2ab2e1d910a6ee - languageName: node - linkType: hard - -"istanbul-lib-instrument@npm:^6.0.0": +"istanbul-lib-instrument@npm:^6.0.0, istanbul-lib-instrument@npm:^6.0.2": version: 6.0.3 resolution: "istanbul-lib-instrument@npm:6.0.3" dependencies: @@ -21536,14 +21620,14 @@ __metadata: languageName: node linkType: hard -"istanbul-lib-source-maps@npm:^4.0.0": - version: 4.0.1 - resolution: "istanbul-lib-source-maps@npm:4.0.1" +"istanbul-lib-source-maps@npm:^5.0.0": + version: 5.0.6 + resolution: "istanbul-lib-source-maps@npm:5.0.6" dependencies: + "@jridgewell/trace-mapping": "npm:^0.3.23" debug: "npm:^4.1.1" istanbul-lib-coverage: "npm:^3.0.0" - source-map: "npm:^0.6.1" - checksum: 10c0/19e4cc405016f2c906dff271a76715b3e881fa9faeb3f09a86cb99b8512b3a5ed19cadfe0b54c17ca0e54c1142c9c6de9330d65506e35873994e06634eebeb66 + checksum: 10c0/ffe75d70b303a3621ee4671554f306e0831b16f39ab7f4ab52e54d356a5d33e534d97563e318f1333a6aae1d42f91ec49c76b6cd3f3fb378addcb5c81da0255f languageName: node linkType: hard @@ -21711,238 +21795,235 @@ __metadata: languageName: node linkType: hard -"jest-changed-files@npm:^29.7.0": - version: 29.7.0 - resolution: "jest-changed-files@npm:29.7.0" +"jest-changed-files@npm:30.2.0": + version: 30.2.0 + resolution: "jest-changed-files@npm:30.2.0" dependencies: - execa: "npm:^5.0.0" - jest-util: "npm:^29.7.0" + execa: "npm:^5.1.1" + jest-util: "npm:30.2.0" p-limit: "npm:^3.1.0" - checksum: 10c0/e071384d9e2f6bb462231ac53f29bff86f0e12394c1b49ccafbad225ce2ab7da226279a8a94f421949920bef9be7ef574fd86aee22e8adfa149be73554ab828b + checksum: 10c0/0ce838f8bffdadcdc19028f4b7a24c04d2f9885ee5c5c1bb4746c205cb96649934090ef6492c3dc45b1be097672b4f8043ad141278bc82f390579fa3ea4c11fe languageName: node linkType: hard -"jest-circus@npm:^29.7.0": - version: 29.7.0 - resolution: "jest-circus@npm:29.7.0" +"jest-circus@npm:30.2.0": + version: 30.2.0 + resolution: "jest-circus@npm:30.2.0" dependencies: - "@jest/environment": "npm:^29.7.0" - "@jest/expect": "npm:^29.7.0" - "@jest/test-result": "npm:^29.7.0" - "@jest/types": "npm:^29.6.3" + "@jest/environment": "npm:30.2.0" + "@jest/expect": "npm:30.2.0" + "@jest/test-result": "npm:30.2.0" + "@jest/types": "npm:30.2.0" "@types/node": "npm:*" - chalk: "npm:^4.0.0" + chalk: "npm:^4.1.2" co: "npm:^4.6.0" - dedent: "npm:^1.0.0" - is-generator-fn: "npm:^2.0.0" - jest-each: "npm:^29.7.0" - jest-matcher-utils: "npm:^29.7.0" - jest-message-util: "npm:^29.7.0" - jest-runtime: "npm:^29.7.0" - jest-snapshot: "npm:^29.7.0" - jest-util: "npm:^29.7.0" + dedent: "npm:^1.6.0" + is-generator-fn: "npm:^2.1.0" + jest-each: "npm:30.2.0" + jest-matcher-utils: "npm:30.2.0" + jest-message-util: "npm:30.2.0" + jest-runtime: "npm:30.2.0" + jest-snapshot: "npm:30.2.0" + jest-util: "npm:30.2.0" p-limit: "npm:^3.1.0" - pretty-format: "npm:^29.7.0" - pure-rand: "npm:^6.0.0" + pretty-format: "npm:30.2.0" + pure-rand: "npm:^7.0.0" slash: "npm:^3.0.0" - stack-utils: "npm:^2.0.3" - checksum: 10c0/8d15344cf7a9f14e926f0deed64ed190c7a4fa1ed1acfcd81e4cc094d3cc5bf7902ebb7b874edc98ada4185688f90c91e1747e0dfd7ac12463b097968ae74b5e + stack-utils: "npm:^2.0.6" + checksum: 10c0/32fc88e13d3e811a9af5ca02d31f7cc742e726a0128df0b023330d6dff6ac29bf981da09937162f7c0705cf327df8d24e46de84860f6817dbc134438315c2967 languageName: node linkType: hard -"jest-cli@npm:^29.5.0, jest-cli@npm:^29.7.0": - version: 29.7.0 - resolution: "jest-cli@npm:29.7.0" +"jest-cli@npm:30.2.0": + version: 30.2.0 + resolution: "jest-cli@npm:30.2.0" dependencies: - "@jest/core": "npm:^29.7.0" - "@jest/test-result": "npm:^29.7.0" - "@jest/types": "npm:^29.6.3" - chalk: "npm:^4.0.0" - create-jest: "npm:^29.7.0" - exit: "npm:^0.1.2" - import-local: "npm:^3.0.2" - jest-config: "npm:^29.7.0" - jest-util: "npm:^29.7.0" - jest-validate: "npm:^29.7.0" - yargs: "npm:^17.3.1" + "@jest/core": "npm:30.2.0" + "@jest/test-result": "npm:30.2.0" + "@jest/types": "npm:30.2.0" + chalk: "npm:^4.1.2" + exit-x: "npm:^0.2.2" + import-local: "npm:^3.2.0" + jest-config: "npm:30.2.0" + jest-util: "npm:30.2.0" + jest-validate: "npm:30.2.0" + yargs: "npm:^17.7.2" peerDependencies: node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 peerDependenciesMeta: node-notifier: optional: true bin: - jest: bin/jest.js - checksum: 10c0/a658fd55050d4075d65c1066364595962ead7661711495cfa1dfeecf3d6d0a8ffec532f3dbd8afbb3e172dd5fd2fb2e813c5e10256e7cf2fea766314942fb43a + jest: ./bin/jest.js + checksum: 10c0/b722a98cdf7b0ff1c273dd4efbaf331d683335f1f338a76a24492574e582a4e5a12a9df66e41bf4c92c7cffe0f51b759818ecd42044cd9bbef67d40359240989 languageName: node linkType: hard -"jest-config@npm:^29.7.0": - version: 29.7.0 - resolution: "jest-config@npm:29.7.0" +"jest-config@npm:30.2.0": + version: 30.2.0 + resolution: "jest-config@npm:30.2.0" dependencies: - "@babel/core": "npm:^7.11.6" - "@jest/test-sequencer": "npm:^29.7.0" - "@jest/types": "npm:^29.6.3" - babel-jest: "npm:^29.7.0" - chalk: "npm:^4.0.0" - ci-info: "npm:^3.2.0" - deepmerge: "npm:^4.2.2" - glob: "npm:^7.1.3" - graceful-fs: "npm:^4.2.9" - jest-circus: "npm:^29.7.0" - jest-environment-node: "npm:^29.7.0" - jest-get-type: "npm:^29.6.3" - jest-regex-util: "npm:^29.6.3" - jest-resolve: "npm:^29.7.0" - jest-runner: "npm:^29.7.0" - jest-util: "npm:^29.7.0" - jest-validate: "npm:^29.7.0" - micromatch: "npm:^4.0.4" + "@babel/core": "npm:^7.27.4" + "@jest/get-type": "npm:30.1.0" + "@jest/pattern": "npm:30.0.1" + "@jest/test-sequencer": "npm:30.2.0" + "@jest/types": "npm:30.2.0" + babel-jest: "npm:30.2.0" + chalk: "npm:^4.1.2" + ci-info: "npm:^4.2.0" + deepmerge: "npm:^4.3.1" + glob: "npm:^10.3.10" + graceful-fs: "npm:^4.2.11" + jest-circus: "npm:30.2.0" + jest-docblock: "npm:30.2.0" + jest-environment-node: "npm:30.2.0" + jest-regex-util: "npm:30.0.1" + jest-resolve: "npm:30.2.0" + jest-runner: "npm:30.2.0" + jest-util: "npm:30.2.0" + jest-validate: "npm:30.2.0" + micromatch: "npm:^4.0.8" parse-json: "npm:^5.2.0" - pretty-format: "npm:^29.7.0" + pretty-format: "npm:30.2.0" slash: "npm:^3.0.0" strip-json-comments: "npm:^3.1.1" peerDependencies: "@types/node": "*" + esbuild-register: ">=3.4.0" ts-node: ">=9.0.0" peerDependenciesMeta: "@types/node": optional: true + esbuild-register: + optional: true ts-node: optional: true - checksum: 10c0/bab23c2eda1fff06e0d104b00d6adfb1d1aabb7128441899c9bff2247bd26710b050a5364281ce8d52b46b499153bf7e3ee88b19831a8f3451f1477a0246a0f1 + checksum: 10c0/f02bb747e3382cdbb5a00abd583e9118a0b4f1d9d4cad01b5cc06b7fab9b817419ec183856cd791b2e9167051cad52b3d22ea34319a28c8f3e70a5ce73d05faa languageName: node linkType: hard -"jest-diff@npm:^29.7.0": - version: 29.7.0 - resolution: "jest-diff@npm:29.7.0" +"jest-diff@npm:30.2.0": + version: 30.2.0 + resolution: "jest-diff@npm:30.2.0" dependencies: - chalk: "npm:^4.0.0" - diff-sequences: "npm:^29.6.3" - jest-get-type: "npm:^29.6.3" - pretty-format: "npm:^29.7.0" - checksum: 10c0/89a4a7f182590f56f526443dde69acefb1f2f0c9e59253c61d319569856c4931eae66b8a3790c443f529267a0ddba5ba80431c585deed81827032b2b2a1fc999 + "@jest/diff-sequences": "npm:30.0.1" + "@jest/get-type": "npm:30.1.0" + chalk: "npm:^4.1.2" + pretty-format: "npm:30.2.0" + checksum: 10c0/5fac2cd89a10b282c5a68fc6206a95dfff9955ed0b758d24ffb0edcb20fb2f98e1fa5045c5c4205d952712ea864c6a086654f80cdd500cce054a2f5daf5b4419 languageName: node linkType: hard -"jest-docblock@npm:^29.7.0": - version: 29.7.0 - resolution: "jest-docblock@npm:29.7.0" +"jest-docblock@npm:30.2.0": + version: 30.2.0 + resolution: "jest-docblock@npm:30.2.0" dependencies: - detect-newline: "npm:^3.0.0" - checksum: 10c0/d932a8272345cf6b6142bb70a2bb63e0856cc0093f082821577ea5bdf4643916a98744dfc992189d2b1417c38a11fa42466f6111526bc1fb81366f56410f3be9 + detect-newline: "npm:^3.1.0" + checksum: 10c0/2578366604eef1b36d59ffe1fc52a710995571535d437f83d94ff94756a83f78e699c1ba004c38a34c01859d669fd6c64e865c23c5a7d5bf4837cfca4bef3dda languageName: node linkType: hard -"jest-each@npm:^29.7.0": - version: 29.7.0 - resolution: "jest-each@npm:29.7.0" +"jest-each@npm:30.2.0": + version: 30.2.0 + resolution: "jest-each@npm:30.2.0" dependencies: - "@jest/types": "npm:^29.6.3" - chalk: "npm:^4.0.0" - jest-get-type: "npm:^29.6.3" - jest-util: "npm:^29.7.0" - pretty-format: "npm:^29.7.0" - checksum: 10c0/f7f9a90ebee80cc688e825feceb2613627826ac41ea76a366fa58e669c3b2403d364c7c0a74d862d469b103c843154f8456d3b1c02b487509a12afa8b59edbb4 + "@jest/get-type": "npm:30.1.0" + "@jest/types": "npm:30.2.0" + chalk: "npm:^4.1.2" + jest-util: "npm:30.2.0" + pretty-format: "npm:30.2.0" + checksum: 10c0/4fa7e88a2741daaebd58cf49f9add8bd6c68657d2c106a170ebe4d7f86082c9eede2b13924304277a92e02b31b59a3c34949877da077bc27712b57913bb88321 languageName: node linkType: hard -"jest-environment-node@npm:^29.7.0": - version: 29.7.0 - resolution: "jest-environment-node@npm:29.7.0" +"jest-environment-node@npm:30.2.0": + version: 30.2.0 + resolution: "jest-environment-node@npm:30.2.0" dependencies: - "@jest/environment": "npm:^29.7.0" - "@jest/fake-timers": "npm:^29.7.0" - "@jest/types": "npm:^29.6.3" + "@jest/environment": "npm:30.2.0" + "@jest/fake-timers": "npm:30.2.0" + "@jest/types": "npm:30.2.0" "@types/node": "npm:*" - jest-mock: "npm:^29.7.0" - jest-util: "npm:^29.7.0" - checksum: 10c0/61f04fec077f8b1b5c1a633e3612fc0c9aa79a0ab7b05600683428f1e01a4d35346c474bde6f439f9fcc1a4aa9a2861ff852d079a43ab64b02105d1004b2592b - languageName: node - linkType: hard - -"jest-get-type@npm:^29.6.3": - version: 29.6.3 - resolution: "jest-get-type@npm:29.6.3" - checksum: 10c0/552e7a97a983d3c2d4e412a44eb7de0430ff773dd99f7500962c268d6dfbfa431d7d08f919c9d960530e5f7f78eb47f267ad9b318265e5092b3ff9ede0db7c2b + jest-mock: "npm:30.2.0" + jest-util: "npm:30.2.0" + jest-validate: "npm:30.2.0" + checksum: 10c0/866ba2c04ccf003845a8ca1f372081d76923849ae8e06e50cdfed792e41a976b5f953e15f3af17ff51b111b9540cf846f7f582530ca724c2a2abf15d15a99728 languageName: node linkType: hard -"jest-haste-map@npm:^29.7.0": - version: 29.7.0 - resolution: "jest-haste-map@npm:29.7.0" +"jest-haste-map@npm:30.2.0": + version: 30.2.0 + resolution: "jest-haste-map@npm:30.2.0" dependencies: - "@jest/types": "npm:^29.6.3" - "@types/graceful-fs": "npm:^4.1.3" + "@jest/types": "npm:30.2.0" "@types/node": "npm:*" - anymatch: "npm:^3.0.3" - fb-watchman: "npm:^2.0.0" - fsevents: "npm:^2.3.2" - graceful-fs: "npm:^4.2.9" - jest-regex-util: "npm:^29.6.3" - jest-util: "npm:^29.7.0" - jest-worker: "npm:^29.7.0" - micromatch: "npm:^4.0.4" + anymatch: "npm:^3.1.3" + fb-watchman: "npm:^2.0.2" + fsevents: "npm:^2.3.3" + graceful-fs: "npm:^4.2.11" + jest-regex-util: "npm:30.0.1" + jest-util: "npm:30.2.0" + jest-worker: "npm:30.2.0" + micromatch: "npm:^4.0.8" walker: "npm:^1.0.8" dependenciesMeta: fsevents: optional: true - checksum: 10c0/2683a8f29793c75a4728787662972fedd9267704c8f7ef9d84f2beed9a977f1cf5e998c07b6f36ba5603f53cb010c911fe8cd0ac9886e073fe28ca66beefd30c + checksum: 10c0/61b4ad5a59b4dfadac2f903f3d723d9017aada268c49b9222ec1e15c4892fd4c36af59b65f37f026d747d829672ab9679509fea5d4248d07a93b892963e1bb4e languageName: node linkType: hard -"jest-leak-detector@npm:^29.7.0": - version: 29.7.0 - resolution: "jest-leak-detector@npm:29.7.0" +"jest-leak-detector@npm:30.2.0": + version: 30.2.0 + resolution: "jest-leak-detector@npm:30.2.0" dependencies: - jest-get-type: "npm:^29.6.3" - pretty-format: "npm:^29.7.0" - checksum: 10c0/71bb9f77fc489acb842a5c7be030f2b9acb18574dc9fb98b3100fc57d422b1abc55f08040884bd6e6dbf455047a62f7eaff12aa4058f7cbdc11558718ca6a395 + "@jest/get-type": "npm:30.1.0" + pretty-format: "npm:30.2.0" + checksum: 10c0/68e2822aabe302983b65a08b19719a2444259af8a23ff20a6e2b6ce7759f55730f51c7cf16c65cb6be930c80a6cc70a4820239c84e8f333c9670a8e3a4a21801 languageName: node linkType: hard -"jest-matcher-utils@npm:^29.7.0": - version: 29.7.0 - resolution: "jest-matcher-utils@npm:29.7.0" +"jest-matcher-utils@npm:30.2.0": + version: 30.2.0 + resolution: "jest-matcher-utils@npm:30.2.0" dependencies: - chalk: "npm:^4.0.0" - jest-diff: "npm:^29.7.0" - jest-get-type: "npm:^29.6.3" - pretty-format: "npm:^29.7.0" - checksum: 10c0/0d0e70b28fa5c7d4dce701dc1f46ae0922102aadc24ed45d594dd9b7ae0a8a6ef8b216718d1ab79e451291217e05d4d49a82666e1a3cc2b428b75cd9c933244e + "@jest/get-type": "npm:30.1.0" + chalk: "npm:^4.1.2" + jest-diff: "npm:30.2.0" + pretty-format: "npm:30.2.0" + checksum: 10c0/f221c8afa04cee693a2be735482c5db4ec6f845f8ca3a04cb419be34c6257f4531dab89c836251f31d1859318c38997e8e9f34bf7b4cdcc8c7be8ae6e2ecb9f2 languageName: node linkType: hard -"jest-message-util@npm:^29.7.0": - version: 29.7.0 - resolution: "jest-message-util@npm:29.7.0" +"jest-message-util@npm:30.2.0": + version: 30.2.0 + resolution: "jest-message-util@npm:30.2.0" dependencies: - "@babel/code-frame": "npm:^7.12.13" - "@jest/types": "npm:^29.6.3" - "@types/stack-utils": "npm:^2.0.0" - chalk: "npm:^4.0.0" - graceful-fs: "npm:^4.2.9" - micromatch: "npm:^4.0.4" - pretty-format: "npm:^29.7.0" + "@babel/code-frame": "npm:^7.27.1" + "@jest/types": "npm:30.2.0" + "@types/stack-utils": "npm:^2.0.3" + chalk: "npm:^4.1.2" + graceful-fs: "npm:^4.2.11" + micromatch: "npm:^4.0.8" + pretty-format: "npm:30.2.0" slash: "npm:^3.0.0" - stack-utils: "npm:^2.0.3" - checksum: 10c0/850ae35477f59f3e6f27efac5215f706296e2104af39232bb14e5403e067992afb5c015e87a9243ec4d9df38525ef1ca663af9f2f4766aa116f127247008bd22 + stack-utils: "npm:^2.0.6" + checksum: 10c0/9c4aae95f9e73a754e5ecababa06e5c00cf549ff1651bbbf9aadc671ee57e688b01606ef0e9932d9dfe3d4b8f4511b6e8d01e131a49d2f82761c820ab93ae519 languageName: node linkType: hard -"jest-mock@npm:^29.7.0": - version: 29.7.0 - resolution: "jest-mock@npm:29.7.0" +"jest-mock@npm:30.2.0": + version: 30.2.0 + resolution: "jest-mock@npm:30.2.0" dependencies: - "@jest/types": "npm:^29.6.3" + "@jest/types": "npm:30.2.0" "@types/node": "npm:*" - jest-util: "npm:^29.7.0" - checksum: 10c0/7b9f8349ee87695a309fe15c46a74ab04c853369e5c40952d68061d9dc3159a0f0ed73e215f81b07ee97a9faaf10aebe5877a9d6255068a0977eae6a9ff1d5ac + jest-util: "npm:30.2.0" + checksum: 10c0/dfc8eb87f4075242f1b31d9dcac606f945c4f6a245d2bb67273738d266bea6345e10de3afa675076d545361bc96b754f764cffb0ccc2e99767484bece981b2f8 languageName: node linkType: hard -"jest-pnp-resolver@npm:^1.2.2": +"jest-pnp-resolver@npm:^1.2.3": version: 1.2.3 resolution: "jest-pnp-resolver@npm:1.2.3" peerDependencies: @@ -21954,128 +22035,143 @@ __metadata: languageName: node linkType: hard -"jest-regex-util@npm:^29.6.3": - version: 29.6.3 - resolution: "jest-regex-util@npm:29.6.3" - checksum: 10c0/4e33fb16c4f42111159cafe26397118dcfc4cf08bc178a67149fb05f45546a91928b820894572679d62559839d0992e21080a1527faad65daaae8743a5705a3b +"jest-regex-util@npm:30.0.1": + version: 30.0.1 + resolution: "jest-regex-util@npm:30.0.1" + checksum: 10c0/f30c70524ebde2d1012afe5ffa5691d5d00f7d5ba9e43d588f6460ac6fe96f9e620f2f9b36a02d0d3e7e77bc8efb8b3450ae3b80ac53c8be5099e01bf54f6728 languageName: node linkType: hard -"jest-resolve-dependencies@npm:^29.7.0": - version: 29.7.0 - resolution: "jest-resolve-dependencies@npm:29.7.0" +"jest-resolve-dependencies@npm:30.2.0": + version: 30.2.0 + resolution: "jest-resolve-dependencies@npm:30.2.0" dependencies: - jest-regex-util: "npm:^29.6.3" - jest-snapshot: "npm:^29.7.0" - checksum: 10c0/b6e9ad8ae5b6049474118ea6441dfddd385b6d1fc471db0136f7c8fbcfe97137a9665e4f837a9f49f15a29a1deb95a14439b7aec812f3f99d08f228464930f0d + jest-regex-util: "npm:30.0.1" + jest-snapshot: "npm:30.2.0" + checksum: 10c0/f98f2187b490f402dd9ed6b15b5d324b1220d250a5768d46b1f1582cef05b830311351532a7d19f1868a2ce0049856ae6c26587f3869995cae7850739088b879 languageName: node linkType: hard -"jest-resolve@npm:^29.7.0": - version: 29.7.0 - resolution: "jest-resolve@npm:29.7.0" +"jest-resolve@npm:30.2.0": + version: 30.2.0 + resolution: "jest-resolve@npm:30.2.0" dependencies: - chalk: "npm:^4.0.0" - graceful-fs: "npm:^4.2.9" - jest-haste-map: "npm:^29.7.0" - jest-pnp-resolver: "npm:^1.2.2" - jest-util: "npm:^29.7.0" - jest-validate: "npm:^29.7.0" - resolve: "npm:^1.20.0" - resolve.exports: "npm:^2.0.0" + chalk: "npm:^4.1.2" + graceful-fs: "npm:^4.2.11" + jest-haste-map: "npm:30.2.0" + jest-pnp-resolver: "npm:^1.2.3" + jest-util: "npm:30.2.0" + jest-validate: "npm:30.2.0" slash: "npm:^3.0.0" - checksum: 10c0/59da5c9c5b50563e959a45e09e2eace783d7f9ac0b5dcc6375dea4c0db938d2ebda97124c8161310082760e8ebbeff9f6b177c15ca2f57fb424f637a5d2adb47 + unrs-resolver: "npm:^1.7.11" + checksum: 10c0/149576b81609a79889d08298a95d52920839f796d24f8701beacaf998a4916df205acf86b64d0bc294172a821b88d144facf44ae5a4cb3cfaa03fa06a3fc666d languageName: node linkType: hard -"jest-runner@npm:^29.7.0": - version: 29.7.0 - resolution: "jest-runner@npm:29.7.0" +"jest-runner@npm:30.2.0": + version: 30.2.0 + resolution: "jest-runner@npm:30.2.0" dependencies: - "@jest/console": "npm:^29.7.0" - "@jest/environment": "npm:^29.7.0" - "@jest/test-result": "npm:^29.7.0" - "@jest/transform": "npm:^29.7.0" - "@jest/types": "npm:^29.6.3" + "@jest/console": "npm:30.2.0" + "@jest/environment": "npm:30.2.0" + "@jest/test-result": "npm:30.2.0" + "@jest/transform": "npm:30.2.0" + "@jest/types": "npm:30.2.0" "@types/node": "npm:*" - chalk: "npm:^4.0.0" + chalk: "npm:^4.1.2" emittery: "npm:^0.13.1" - graceful-fs: "npm:^4.2.9" - jest-docblock: "npm:^29.7.0" - jest-environment-node: "npm:^29.7.0" - jest-haste-map: "npm:^29.7.0" - jest-leak-detector: "npm:^29.7.0" - jest-message-util: "npm:^29.7.0" - jest-resolve: "npm:^29.7.0" - jest-runtime: "npm:^29.7.0" - jest-util: "npm:^29.7.0" - jest-watcher: "npm:^29.7.0" - jest-worker: "npm:^29.7.0" + exit-x: "npm:^0.2.2" + graceful-fs: "npm:^4.2.11" + jest-docblock: "npm:30.2.0" + jest-environment-node: "npm:30.2.0" + jest-haste-map: "npm:30.2.0" + jest-leak-detector: "npm:30.2.0" + jest-message-util: "npm:30.2.0" + jest-resolve: "npm:30.2.0" + jest-runtime: "npm:30.2.0" + jest-util: "npm:30.2.0" + jest-watcher: "npm:30.2.0" + jest-worker: "npm:30.2.0" p-limit: "npm:^3.1.0" source-map-support: "npm:0.5.13" - checksum: 10c0/2194b4531068d939f14c8d3274fe5938b77fa73126aedf9c09ec9dec57d13f22c72a3b5af01ac04f5c1cf2e28d0ac0b4a54212a61b05f10b5d6b47f2a1097bb4 + checksum: 10c0/68cb5eb993b4a02143fc442c245b17567432709879ad5f859fec635ccdf4ad0ef128c9fc6765c1582b3f5136b36cad5c5dd173926081bfc527d490b27406383e languageName: node linkType: hard -"jest-runtime@npm:^29.7.0": - version: 29.7.0 - resolution: "jest-runtime@npm:29.7.0" - dependencies: - "@jest/environment": "npm:^29.7.0" - "@jest/fake-timers": "npm:^29.7.0" - "@jest/globals": "npm:^29.7.0" - "@jest/source-map": "npm:^29.6.3" - "@jest/test-result": "npm:^29.7.0" - "@jest/transform": "npm:^29.7.0" - "@jest/types": "npm:^29.6.3" +"jest-runtime@npm:30.2.0": + version: 30.2.0 + resolution: "jest-runtime@npm:30.2.0" + dependencies: + "@jest/environment": "npm:30.2.0" + "@jest/fake-timers": "npm:30.2.0" + "@jest/globals": "npm:30.2.0" + "@jest/source-map": "npm:30.0.1" + "@jest/test-result": "npm:30.2.0" + "@jest/transform": "npm:30.2.0" + "@jest/types": "npm:30.2.0" "@types/node": "npm:*" - chalk: "npm:^4.0.0" - cjs-module-lexer: "npm:^1.0.0" - collect-v8-coverage: "npm:^1.0.0" - glob: "npm:^7.1.3" - graceful-fs: "npm:^4.2.9" - jest-haste-map: "npm:^29.7.0" - jest-message-util: "npm:^29.7.0" - jest-mock: "npm:^29.7.0" - jest-regex-util: "npm:^29.6.3" - jest-resolve: "npm:^29.7.0" - jest-snapshot: "npm:^29.7.0" - jest-util: "npm:^29.7.0" + chalk: "npm:^4.1.2" + cjs-module-lexer: "npm:^2.1.0" + collect-v8-coverage: "npm:^1.0.2" + glob: "npm:^10.3.10" + graceful-fs: "npm:^4.2.11" + jest-haste-map: "npm:30.2.0" + jest-message-util: "npm:30.2.0" + jest-mock: "npm:30.2.0" + jest-regex-util: "npm:30.0.1" + jest-resolve: "npm:30.2.0" + jest-snapshot: "npm:30.2.0" + jest-util: "npm:30.2.0" slash: "npm:^3.0.0" strip-bom: "npm:^4.0.0" - checksum: 10c0/7cd89a1deda0bda7d0941835434e44f9d6b7bd50b5c5d9b0fc9a6c990b2d4d2cab59685ab3cb2850ed4cc37059f6de903af5a50565d7f7f1192a77d3fd6dd2a6 + checksum: 10c0/d77b7eb75485f2b4913f635aeffa8e3e1b9baafb7a7f901f3c212195beb31f519e4b03358b5e454caee5cc94a2b9952c962fa7e5b0ff2ed06009a661924fd23e languageName: node linkType: hard -"jest-snapshot@npm:^29.7.0": - version: 29.7.0 - resolution: "jest-snapshot@npm:29.7.0" - dependencies: - "@babel/core": "npm:^7.11.6" - "@babel/generator": "npm:^7.7.2" - "@babel/plugin-syntax-jsx": "npm:^7.7.2" - "@babel/plugin-syntax-typescript": "npm:^7.7.2" - "@babel/types": "npm:^7.3.3" - "@jest/expect-utils": "npm:^29.7.0" - "@jest/transform": "npm:^29.7.0" - "@jest/types": "npm:^29.6.3" - babel-preset-current-node-syntax: "npm:^1.0.0" - chalk: "npm:^4.0.0" - expect: "npm:^29.7.0" - graceful-fs: "npm:^4.2.9" - jest-diff: "npm:^29.7.0" - jest-get-type: "npm:^29.6.3" - jest-matcher-utils: "npm:^29.7.0" - jest-message-util: "npm:^29.7.0" - jest-util: "npm:^29.7.0" - natural-compare: "npm:^1.4.0" - pretty-format: "npm:^29.7.0" - semver: "npm:^7.5.3" - checksum: 10c0/6e9003c94ec58172b4a62864a91c0146513207bedf4e0a06e1e2ac70a4484088a2683e3a0538d8ea913bcfd53dc54a9b98a98cdfa562e7fe1d1339aeae1da570 +"jest-snapshot@npm:30.2.0": + version: 30.2.0 + resolution: "jest-snapshot@npm:30.2.0" + dependencies: + "@babel/core": "npm:^7.27.4" + "@babel/generator": "npm:^7.27.5" + "@babel/plugin-syntax-jsx": "npm:^7.27.1" + "@babel/plugin-syntax-typescript": "npm:^7.27.1" + "@babel/types": "npm:^7.27.3" + "@jest/expect-utils": "npm:30.2.0" + "@jest/get-type": "npm:30.1.0" + "@jest/snapshot-utils": "npm:30.2.0" + "@jest/transform": "npm:30.2.0" + "@jest/types": "npm:30.2.0" + babel-preset-current-node-syntax: "npm:^1.2.0" + chalk: "npm:^4.1.2" + expect: "npm:30.2.0" + graceful-fs: "npm:^4.2.11" + jest-diff: "npm:30.2.0" + jest-matcher-utils: "npm:30.2.0" + jest-message-util: "npm:30.2.0" + jest-util: "npm:30.2.0" + pretty-format: "npm:30.2.0" + semver: "npm:^7.7.2" + synckit: "npm:^0.11.8" + checksum: 10c0/961b13a3c9dcf8c533fe2ab8375bcdf441bd8680a7a7878245d8d8a4697432d806f7817cfaa061904e0c6cc939a38f1fe9f5af868b86328e77833a58822b3b63 + languageName: node + linkType: hard + +"jest-util@npm:30.2.0": + version: 30.2.0 + resolution: "jest-util@npm:30.2.0" + dependencies: + "@jest/types": "npm:30.2.0" + "@types/node": "npm:*" + chalk: "npm:^4.1.2" + ci-info: "npm:^4.2.0" + graceful-fs: "npm:^4.2.11" + picomatch: "npm:^4.0.2" + checksum: 10c0/896d663554b35258a87ec1a0a0fdd8741fdf4f3239d09fc52fdd88fa5c411a5ece7903bbbbd7d5194743fcb69f62afc3287e90f57736a91e7df95ad421937936 languageName: node linkType: hard -"jest-util@npm:^29.0.0, jest-util@npm:^29.7.0": +"jest-util@npm:^29.0.0": version: 29.7.0 resolution: "jest-util@npm:29.7.0" dependencies: @@ -22089,94 +22185,76 @@ __metadata: languageName: node linkType: hard -"jest-validate@npm:^29.7.0": - version: 29.7.0 - resolution: "jest-validate@npm:29.7.0" +"jest-validate@npm:30.2.0": + version: 30.2.0 + resolution: "jest-validate@npm:30.2.0" dependencies: - "@jest/types": "npm:^29.6.3" - camelcase: "npm:^6.2.0" - chalk: "npm:^4.0.0" - jest-get-type: "npm:^29.6.3" + "@jest/get-type": "npm:30.1.0" + "@jest/types": "npm:30.2.0" + camelcase: "npm:^6.3.0" + chalk: "npm:^4.1.2" leven: "npm:^3.1.0" - pretty-format: "npm:^29.7.0" - checksum: 10c0/a20b930480c1ed68778c739f4739dce39423131bc070cd2505ddede762a5570a256212e9c2401b7ae9ba4d7b7c0803f03c5b8f1561c62348213aba18d9dbece2 + pretty-format: "npm:30.2.0" + checksum: 10c0/56566643d79ca07f021fa14cebb62c423ae405757cb8d742113ff0070f0761b80c77f665fac8d89622faaab71fc5452e1471939028187a88c8445303d7976255 languageName: node linkType: hard -"jest-watcher@npm:^29.7.0": - version: 29.7.0 - resolution: "jest-watcher@npm:29.7.0" +"jest-watcher@npm:30.2.0": + version: 30.2.0 + resolution: "jest-watcher@npm:30.2.0" dependencies: - "@jest/test-result": "npm:^29.7.0" - "@jest/types": "npm:^29.6.3" + "@jest/test-result": "npm:30.2.0" + "@jest/types": "npm:30.2.0" "@types/node": "npm:*" - ansi-escapes: "npm:^4.2.1" - chalk: "npm:^4.0.0" + ansi-escapes: "npm:^4.3.2" + chalk: "npm:^4.1.2" emittery: "npm:^0.13.1" - jest-util: "npm:^29.7.0" - string-length: "npm:^4.0.1" - checksum: 10c0/ec6c75030562fc8f8c727cb8f3b94e75d831fc718785abfc196e1f2a2ebc9a2e38744a15147170039628a853d77a3b695561ce850375ede3a4ee6037a2574567 + jest-util: "npm:30.2.0" + string-length: "npm:^4.0.2" + checksum: 10c0/51587968fabb5b180383d638a04db253b82d9cc3f53fbba06ba7b0544146178d50becc090aca7931e2d4eb9aa1624bb3fbd1a2571484c9391554404e8b5d8fe7 languageName: node linkType: hard -"jest-worker@npm:^27.4.5": - version: 27.5.1 - resolution: "jest-worker@npm:27.5.1" +"jest-worker@npm:30.2.0": + version: 30.2.0 + resolution: "jest-worker@npm:30.2.0" dependencies: "@types/node": "npm:*" + "@ungap/structured-clone": "npm:^1.3.0" + jest-util: "npm:30.2.0" merge-stream: "npm:^2.0.0" - supports-color: "npm:^8.0.0" - checksum: 10c0/8c4737ffd03887b3c6768e4cc3ca0269c0336c1e4b1b120943958ddb035ed2a0fc6acab6dc99631720a3720af4e708ff84fb45382ad1e83c27946adf3623969b + supports-color: "npm:^8.1.1" + checksum: 10c0/1ea47f6c682ba6cdbd50630544236aabccacf1d88335607206c10871a9777a45b0fc6336c8eb6344e32e69dd7681de17b2199b4d4552b00d48aade303627125c languageName: node linkType: hard -"jest-worker@npm:^29.7.0": - version: 29.7.0 - resolution: "jest-worker@npm:29.7.0" +"jest-worker@npm:^27.4.5": + version: 27.5.1 + resolution: "jest-worker@npm:27.5.1" dependencies: "@types/node": "npm:*" - jest-util: "npm:^29.7.0" merge-stream: "npm:^2.0.0" supports-color: "npm:^8.0.0" - checksum: 10c0/5570a3a005b16f46c131968b8a5b56d291f9bbb85ff4217e31c80bd8a02e7de799e59a54b95ca28d5c302f248b54cbffde2d177c2f0f52ffcee7504c6eabf660 - languageName: node - linkType: hard - -"jest@npm:29.5.0": - version: 29.5.0 - resolution: "jest@npm:29.5.0" - dependencies: - "@jest/core": "npm:^29.5.0" - "@jest/types": "npm:^29.5.0" - import-local: "npm:^3.0.2" - jest-cli: "npm:^29.5.0" - peerDependencies: - node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 - peerDependenciesMeta: - node-notifier: - optional: true - bin: - jest: bin/jest.js - checksum: 10c0/32e29cfa2373530ed323ea65dfb4fd5172026349be48ebb7a2dc5660adadd1c68f6b0fe2b67cc3ee723cc34e2d4552a852730ac787251b406cf58e37a90f6dac + checksum: 10c0/8c4737ffd03887b3c6768e4cc3ca0269c0336c1e4b1b120943958ddb035ed2a0fc6acab6dc99631720a3720af4e708ff84fb45382ad1e83c27946adf3623969b languageName: node linkType: hard -"jest@npm:29.7.0, jest@npm:^29.7.0": - version: 29.7.0 - resolution: "jest@npm:29.7.0" +"jest@npm:30.2.0, jest@npm:^30.2.0": + version: 30.2.0 + resolution: "jest@npm:30.2.0" dependencies: - "@jest/core": "npm:^29.7.0" - "@jest/types": "npm:^29.6.3" - import-local: "npm:^3.0.2" - jest-cli: "npm:^29.7.0" + "@jest/core": "npm:30.2.0" + "@jest/types": "npm:30.2.0" + import-local: "npm:^3.2.0" + jest-cli: "npm:30.2.0" peerDependencies: node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 peerDependenciesMeta: node-notifier: optional: true bin: - jest: bin/jest.js - checksum: 10c0/f40eb8171cf147c617cc6ada49d062fbb03b4da666cb8d39cdbfb739a7d75eea4c3ca150fb072d0d273dce0c753db4d0467d54906ad0293f59c54f9db4a09d8b + jest: ./bin/jest.js + checksum: 10c0/af580c6e265d21870c2c98e31f17f2f5cb5c9e6cf9be26b95eaf4fad4140a01579f3b5844d4264cd8357eb24908e95f983ea84d20b8afef46e62aed3dd9452eb languageName: node linkType: hard @@ -22599,7 +22677,7 @@ __metadata: languageName: node linkType: hard -"keyv@npm:^4.5.3, keyv@npm:^4.5.4": +"keyv@npm:^4.5.4": version: 4.5.4 resolution: "keyv@npm:4.5.4" dependencies: @@ -23490,7 +23568,7 @@ __metadata: languageName: node linkType: hard -"micromatch@npm:^4.0.4, micromatch@npm:^4.0.5, micromatch@npm:^4.0.8": +"micromatch@npm:^4.0.5, micromatch@npm:^4.0.8": version: 4.0.8 resolution: "micromatch@npm:4.0.8" dependencies: @@ -24703,12 +24781,10 @@ __metadata: languageName: node linkType: hard -"openpgp@npm:5.11.2": - version: 5.11.2 - resolution: "openpgp@npm:5.11.2" - dependencies: - asn1.js: "npm:^5.0.0" - checksum: 10c0/e16141ef507789b080e2b8c94a3081773ca27cf4782a23d4dbcf80cc6394c8ff1d4d64e072c82fd59c81eedc20c57fdbaca109974733a6e0316d869aa8d7fd27 +"openpgp@npm:6.2.2, openpgp@npm:^6.2.2": + version: 6.2.2 + resolution: "openpgp@npm:6.2.2" + checksum: 10c0/dd284ff20ad087c341ec86369e12d5c210056aa28edacba192b20bd0d20892ce21c6aef83c6d79f082f533343e80b8ad63a58ee9ebf5d7651173890e70833ae2 languageName: node linkType: hard @@ -25290,7 +25366,7 @@ __metadata: languageName: node linkType: hard -"path-to-regexp@npm:^8.0.0, path-to-regexp@npm:^8.1.0": +"path-to-regexp@npm:8.3.0, path-to-regexp@npm:^8.0.0, path-to-regexp@npm:^8.1.0": version: 8.3.0 resolution: "path-to-regexp@npm:8.3.0" checksum: 10c0/ee1544a73a3f294a97a4c663b0ce71bbf1621d732d80c9c9ed201b3e911a86cb628ebad691b9d40f40a3742fe22011e5a059d8eed2cf63ec2cb94f6fb4efe67c @@ -25533,7 +25609,7 @@ __metadata: languageName: node linkType: hard -"pino-pretty@npm:^13.0.0": +"pino-pretty@npm:^13.1.2": version: 13.1.2 resolution: "pino-pretty@npm:13.1.2" dependencies: @@ -25612,9 +25688,9 @@ __metadata: languageName: node linkType: hard -"pino@npm:^9.7.0": - version: 9.14.0 - resolution: "pino@npm:9.14.0" +"pino@npm:^10.1.0": + version: 10.1.0 + resolution: "pino@npm:10.1.0" dependencies: "@pinojs/redact": "npm:^0.4.0" atomic-sleep: "npm:^1.0.0" @@ -25629,11 +25705,11 @@ __metadata: thread-stream: "npm:^3.0.0" bin: pino: bin.js - checksum: 10c0/9a10d9bf820a585eae9bc270fb4e55c895e48280d54adbbb4063ec061694b22d8809c80203cf5fe9f920a54c832b0b8dfb67cb28a04baa13abebaf261a9c9f3e + checksum: 10c0/49c1dd80d5f99f02bde1acf2f60cef7686948a937f751f6cb368c2868c7e82e54aeabac63a34587e16019965cbf0eb6e609edf92c439a98a0a4fcb0add277eaf languageName: node linkType: hard -"pirates@npm:^4.0.4": +"pirates@npm:^4.0.7": version: 4.0.7 resolution: "pirates@npm:4.0.7" checksum: 10c0/a51f108dd811beb779d58a76864bbd49e239fa40c7984cd11596c75a121a8cc789f1c8971d8bb15f0dbf9d48b76c05bb62fcbce840f89b688c0fa64b37e8478a @@ -25917,14 +25993,14 @@ __metadata: languageName: node linkType: hard -"pretty-format@npm:^29.0.0, pretty-format@npm:^29.7.0": - version: 29.7.0 - resolution: "pretty-format@npm:29.7.0" +"pretty-format@npm:30.2.0, pretty-format@npm:^30.0.0": + version: 30.2.0 + resolution: "pretty-format@npm:30.2.0" dependencies: - "@jest/schemas": "npm:^29.6.3" - ansi-styles: "npm:^5.0.0" - react-is: "npm:^18.0.0" - checksum: 10c0/edc5ff89f51916f036c62ed433506b55446ff739358de77207e63e88a28ca2894caac6e73dcb68166a606e51c8087d32d400473e6a9fdd2dbe743f46c9c0276f + "@jest/schemas": "npm:30.0.5" + ansi-styles: "npm:^5.2.0" + react-is: "npm:^18.3.1" + checksum: 10c0/8fdacfd281aa98124e5df80b2c17223fdcb84433876422b54863a6849381b3059eb42b9806d92d2853826bcb966bcb98d499bea5b1e912d869a3c3107fd38d35 languageName: node linkType: hard @@ -25994,7 +26070,7 @@ __metadata: languageName: node linkType: hard -"prompts@npm:^2.0.1, prompts@npm:^2.4.2": +"prompts@npm:^2.4.2": version: 2.4.2 resolution: "prompts@npm:2.4.2" dependencies: @@ -26163,10 +26239,10 @@ __metadata: languageName: node linkType: hard -"pure-rand@npm:^6.0.0": - version: 6.1.0 - resolution: "pure-rand@npm:6.1.0" - checksum: 10c0/1abe217897bf74dcb3a0c9aba3555fe975023147b48db540aa2faf507aee91c03bf54f6aef0eb2bf59cc259a16d06b28eca37f0dc426d94f4692aeff02fb0e65 +"pure-rand@npm:^7.0.0": + version: 7.0.1 + resolution: "pure-rand@npm:7.0.1" + checksum: 10c0/9cade41030f5ec95f5d55a11a71404cd6f46b69becaad892097cd7f58e2c6248cd0a933349ca7d21336ab629f1da42ffe899699b671bc4651600eaf6e57f837e languageName: node linkType: hard @@ -26415,7 +26491,7 @@ __metadata: languageName: node linkType: hard -"react-is@npm:^18.0.0, react-is@npm:^18.3.1": +"react-is@npm:^18.3.1": version: 18.3.1 resolution: "react-is@npm:18.3.1" checksum: 10c0/f2f1e60010c683479e74c63f96b09fb41603527cd131a9959e2aee1e5a8b0caf270b365e5ca77d4a6b18aae659b60a86150bb3979073528877029b35aecd2072 @@ -26958,13 +27034,6 @@ __metadata: languageName: node linkType: hard -"resolve.exports@npm:^2.0.0": - version: 2.0.3 - resolution: "resolve.exports@npm:2.0.3" - checksum: 10c0/1ade1493f4642a6267d0a5e68faeac20b3d220f18c28b140343feb83694d8fed7a286852aef43689d16042c61e2ddb270be6578ad4a13990769e12065191200d - languageName: node - linkType: hard - "resolve@npm:1.1.x": version: 1.1.7 resolution: "resolve@npm:1.1.7" @@ -26981,7 +27050,7 @@ __metadata: languageName: node linkType: hard -"resolve@npm:^1.1.6, resolve@npm:^1.10.0, resolve@npm:^1.17.0, resolve@npm:^1.19.0, resolve@npm:^1.20.0, resolve@npm:^1.22.10, resolve@npm:^1.22.4": +"resolve@npm:^1.1.6, resolve@npm:^1.10.0, resolve@npm:^1.17.0, resolve@npm:^1.19.0, resolve@npm:^1.22.10, resolve@npm:^1.22.4": version: 1.22.11 resolution: "resolve@npm:1.22.11" dependencies: @@ -27033,7 +27102,7 @@ __metadata: languageName: node linkType: hard -"resolve@patch:resolve@npm%3A^1.1.6#optional!builtin, resolve@patch:resolve@npm%3A^1.10.0#optional!builtin, resolve@patch:resolve@npm%3A^1.17.0#optional!builtin, resolve@patch:resolve@npm%3A^1.19.0#optional!builtin, resolve@patch:resolve@npm%3A^1.20.0#optional!builtin, resolve@patch:resolve@npm%3A^1.22.10#optional!builtin, resolve@patch:resolve@npm%3A^1.22.4#optional!builtin": +"resolve@patch:resolve@npm%3A^1.1.6#optional!builtin, resolve@patch:resolve@npm%3A^1.10.0#optional!builtin, resolve@patch:resolve@npm%3A^1.17.0#optional!builtin, resolve@patch:resolve@npm%3A^1.19.0#optional!builtin, resolve@patch:resolve@npm%3A^1.22.10#optional!builtin, resolve@patch:resolve@npm%3A^1.22.4#optional!builtin": version: 1.22.11 resolution: "resolve@patch:resolve@npm%3A1.22.11#optional!builtin::version=1.22.11&hash=c3c19d" dependencies: @@ -27565,7 +27634,7 @@ __metadata: languageName: node linkType: hard -"semver@npm:^7.3.4, semver@npm:^7.3.5, semver@npm:^7.3.7, semver@npm:^7.3.8, semver@npm:^7.5.2, semver@npm:^7.5.3, semver@npm:^7.5.4, semver@npm:^7.6.0, semver@npm:^7.6.3, semver@npm:^7.7.1, semver@npm:^7.7.3": +"semver@npm:^7.3.4, semver@npm:^7.3.5, semver@npm:^7.3.7, semver@npm:^7.3.8, semver@npm:^7.5.2, semver@npm:^7.5.3, semver@npm:^7.5.4, semver@npm:^7.6.0, semver@npm:^7.6.3, semver@npm:^7.7.1, semver@npm:^7.7.2, semver@npm:^7.7.3": version: 7.7.3 resolution: "semver@npm:7.7.3" bin: @@ -27862,7 +27931,7 @@ __metadata: languageName: node linkType: hard -"signal-exit@npm:^3.0.0, signal-exit@npm:^3.0.2, signal-exit@npm:^3.0.3, signal-exit@npm:^3.0.7": +"signal-exit@npm:^3.0.0, signal-exit@npm:^3.0.2, signal-exit@npm:^3.0.3": version: 3.0.7 resolution: "signal-exit@npm:3.0.7" checksum: 10c0/25d272fa73e146048565e08f3309d5b942c1979a6f4a58a8c59d5fa299728e9c2fcd1a759ec870863b1fd38653670240cd420dad2ad9330c71f36608a6a1c912 @@ -28283,7 +28352,7 @@ __metadata: languageName: node linkType: hard -"stack-utils@npm:^2.0.3": +"stack-utils@npm:^2.0.6": version: 2.0.6 resolution: "stack-utils@npm:2.0.6" dependencies: @@ -28444,7 +28513,7 @@ __metadata: languageName: node linkType: hard -"string-length@npm:^4.0.1": +"string-length@npm:^4.0.2": version: 4.0.2 resolution: "string-length@npm:4.0.2" dependencies: @@ -28880,7 +28949,7 @@ __metadata: languageName: node linkType: hard -"synckit@npm:0.11.11, synckit@npm:^0.11.7": +"synckit@npm:0.11.11, synckit@npm:^0.11.7, synckit@npm:^0.11.8": version: 0.11.11 resolution: "synckit@npm:0.11.11" dependencies: @@ -29045,13 +29114,6 @@ __metadata: languageName: node linkType: hard -"text-table@npm:^0.2.0": - version: 0.2.0 - resolution: "text-table@npm:0.2.0" - checksum: 10c0/02805740c12851ea5982686810702e2f14369a5f4c5c40a836821e3eefc65ffeec3131ba324692a37608294b0fd8c1e55a2dd571ffed4909822787668ddbee5c - languageName: node - linkType: hard - "thread-stream@npm:^0.15.1": version: 0.15.2 resolution: "thread-stream@npm:0.15.2" @@ -31583,13 +31645,13 @@ __metadata: languageName: node linkType: hard -"write-file-atomic@npm:^4.0.2": - version: 4.0.2 - resolution: "write-file-atomic@npm:4.0.2" +"write-file-atomic@npm:^5.0.1": + version: 5.0.1 + resolution: "write-file-atomic@npm:5.0.1" dependencies: imurmurhash: "npm:^0.1.4" - signal-exit: "npm:^3.0.7" - checksum: 10c0/a2c282c95ef5d8e1c27b335ae897b5eca00e85590d92a3fd69a437919b7b93ff36a69ea04145da55829d2164e724bc62202cdb5f4b208b425aba0807889375c7 + signal-exit: "npm:^4.0.1" + checksum: 10c0/e8c850a8e3e74eeadadb8ad23c9d9d63e4e792bd10f4836ed74189ef6e996763959f1249c5650e232f3c77c11169d239cbfc8342fc70f3fe401407d23810505d languageName: node linkType: hard @@ -31822,7 +31884,7 @@ __metadata: languageName: node linkType: hard -"yargs@npm:17.7.2, yargs@npm:^17.3.1, yargs@npm:^17.7.2": +"yargs@npm:17.7.2, yargs@npm:^17.7.2": version: 17.7.2 resolution: "yargs@npm:17.7.2" dependencies: