From 767630615d77fbd19ca15631533107ad4d9e5b94 Mon Sep 17 00:00:00 2001 From: Thibault Martinez Date: Fri, 26 Jul 2024 12:01:16 +0200 Subject: [PATCH] feat(iota): add YAML dprint (#1280) * feat(iota): add YAML dprint * fmt * fmt * manual double quotes --- .github/actions/diffs/action.yml | 84 +- .github/external-crates-filters.yml | 104 +-- .github/labeler.yml | 4 +- .../apps-backend-production.deploy.yml | 8 +- .../apps-explorer-preview.deploy.yml | 8 +- .../apps-explorer-production.deploy.yml | 9 +- .../workflows/apps-ui-kit-preview.deploy.yml | 94 +- .../apps-ui-kit-production.deploy.yml | 74 +- .../apps-wallet-dashboard-preview.deploy.yml | 9 +- ...pps-wallet-dashboard-production.deploy.yml | 8 +- .../workflows/apps-wallet-nightly.build.yml | 8 +- .github/workflows/build-nightly.yml | 6 +- .github/workflows/cargo-llvm-cov.yml | 214 ++--- .github/workflows/changesets-ci.yml | 2 +- .github/workflows/changesets.yml | 2 +- .github/workflows/codecov.yml | 16 +- .github/workflows/crate-docs.yml | 2 +- .github/workflows/docs-lint.yml | 11 +- .github/workflows/docusaurus.yml | 2 +- .github/workflows/e2e.yml | 22 +- .github/workflows/external.yml | 212 ++--- .github/workflows/fastcrypto_pull.yml | 26 +- .github/workflows/labeler.yml | 8 +- .github/workflows/links_checker.yml | 4 +- .github/workflows/narwhal_pull.yml | 26 +- .github/workflows/nightly-narwhal.yml | 4 +- .github/workflows/nightly.yml | 4 +- .github/workflows/preview-wiki.yml | 8 +- .github/workflows/release-docker.yml | 52 +- .github/workflows/release-notes-monitor.yml | 140 +-- .github/workflows/release.yml | 14 +- .github/workflows/rust.yml | 2 +- .../workflows/simulator-nightly-mysticeti.yml | 9 +- .github/workflows/simulator-nightly.yml | 192 ++-- .github/workflows/split-cluster.yml | 38 +- .github/workflows/stale.yml | 8 +- .github/workflows/tag.yml | 28 +- .github/workflows/trigger-builds.yml | 10 +- .github/workflows/turborepo.yml | 6 +- .github/workflows/typos.yml | 20 +- .../data/fullnode-template-with-path.yaml | 8 +- crates/iota-config/src/test_gateway.yml | 501 +++++------ crates/iota-core/tests/staged/iota.yaml | 851 +++++++++--------- .../iota-rosetta-devnet/docker-compose.yaml | 6 +- .../remote/docker-compose.yaml | 7 +- .../iota-rosetta-local/docker-compose.yaml | 8 +- docker/fullnode-x/docker-compose.yaml | 1 - docker/fullnode/docker-compose.yaml | 20 +- .../grafana-local/dashboards/dashboard.yaml | 4 +- docker/grafana-local/docker-compose.yaml | 22 +- docker/grafana-local/grafana-datasources.yaml | 54 +- docker/grafana-local/tempo.yaml | 19 +- .../configs/fullnodes/backup.yaml | 2 +- .../configs/fullnodes/fullnode.yaml | 2 +- .../configs/genesis-template.yaml | 100 +- .../iota-private-network/docker-compose.yaml | 27 +- dprint.json | 13 +- .../provisioning/dashboards/dashboard.yml | 6 +- .../provisioning/datasources/datasource.yml | 2 +- .../templates/prometheus/prometheus.yml | 20 +- narwhal/node/tests/staged/narwhal.yaml | 151 ++-- nre/ansible/roles/iota-node/tasks/main.yaml | 2 +- .../roles/iota-node/tasks/monitoring.yaml | 1 - nre/k8s/iota-graphql-deployment.yaml | 72 +- nre/k8s/iota-indexer-readers-deployment.yaml | 56 +- nre/k8s/iota-indexer-writer-deployment.yaml | 54 +- nre/k8s/iota-node-statefulset.yaml | 102 +-- pnpm-workspace.yaml | 46 +- sdk/typescript/docker-compose.yml | 20 +- 69 files changed, 1836 insertions(+), 1839 deletions(-) diff --git a/.github/actions/diffs/action.yml b/.github/actions/diffs/action.yml index 140bb09fe40..8c2059b4686 100644 --- a/.github/actions/diffs/action.yml +++ b/.github/actions/diffs/action.yml @@ -6,7 +6,7 @@ outputs: value: "${{ steps.diff.outputs.isDoc }}" isOldDoc: description: True when changes happened to old doc folder - value: "${{ steps.diff.outputs.isOldDoc }}" + value: "${{ steps.diff.outputs.isOldDoc }}" isRust: description: True when changes happened to the Rust code value: "${{ steps.diff.outputs.isRust }}" @@ -20,44 +20,44 @@ outputs: runs: using: composite steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 - - name: Detect Changes - uses: dorny/paths-filter@v2.10.2 - id: diff - with: - filters: | - isRust: - - 'consensus/**' - - 'crates/**' - - 'external-crates/**' - - 'narwhal/**' - - 'sui-execution/**' - - '.github/workflows/codecov.yml' - - '.github/workflows/rust.yml' - - '.github/workflows/external.yml' - isDoc: - - 'docs/content/**' - - '*.mdx' - - '.github/workflows/docs.yml' - isOldDoc: - - 'doc/**' - - '*.md' - isMove: - - 'crates/sui-framework/**' - - 'crates/sui-framework-build/**' - - 'crates/sui-framework-tests/**' - - 'crates/sui_move/**' - - 'Cargo.toml' - - 'examples/**' - - 'sui_programmability/**' - isReleaseNotesEligible: - - 'consensus/**' - - 'crates/**' - - 'dashboards/**' - - 'doc/**' - - 'docker/**' - - 'external-crates/**' - - 'kiosk/**' - - 'narwhal/**' - - 'nre/**' - - 'sui-execution/**' + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 + - name: Detect Changes + uses: dorny/paths-filter@v2.10.2 + id: diff + with: + filters: | + isRust: + - "consensus/**" + - "crates/**" + - "external-crates/**" + - "narwhal/**" + - "sui-execution/**" + - ".github/workflows/codecov.yml" + - ".github/workflows/rust.yml" + - ".github/workflows/external.yml" + isDoc: + - "docs/content/**" + - "*.mdx" + - ".github/workflows/docs.yml" + isOldDoc: + - "doc/**" + - "*.md" + isMove: + - "crates/sui-framework/**" + - "crates/sui-framework-build/**" + - "crates/sui-framework-tests/**" + - "crates/sui_move/**" + - "Cargo.toml" + - "examples/**" + - "sui_programmability/**" + isReleaseNotesEligible: + - "consensus/**" + - "crates/**" + - "dashboards/**" + - "doc/**" + - "docker/**" + - "external-crates/**" + - "kiosk/**" + - "narwhal/**" + - "nre/**" + - "sui-execution/**" diff --git a/.github/external-crates-filters.yml b/.github/external-crates-filters.yml index 677073cd013..92fb282547d 100644 --- a/.github/external-crates-filters.yml +++ b/.github/external-crates-filters.yml @@ -1,104 +1,104 @@ bytecode-interpreter-crypto: - - "external-crates/move/crates/bytecode-interpreter-crypto/**" + - "external-crates/move/crates/bytecode-interpreter-crypto/**" bytecode-interpreter-testsuite: - - "external-crates/move/crates/bytecode-interpreter-testsuite/**" + - "external-crates/move/crates/bytecode-interpreter-testsuite/**" bytecode-verifier-libfuzzer: - - "external-crates/move/crates/bytecode-verifier-libfuzzer/**" + - "external-crates/move/crates/bytecode-verifier-libfuzzer/**" bytecode-verifier-tests: - - "external-crates/move/crates/bytecode-verifier-tests/**" + - "external-crates/move/crates/bytecode-verifier-tests/**" bytecode-verifier-transactional-tests: - - "external-crates/move/crates/bytecode-verifier-transactional-tests/**" + - "external-crates/move/crates/bytecode-verifier-transactional-tests/**" enum-compat-util: - - "external-crates/move/crates/enum-compat-util/**" + - "external-crates/move/crates/enum-compat-util/**" invalid-mutations: - - "external-crates/move/crates/invalid-mutations/**" + - "external-crates/move/crates/invalid-mutations/**" language-benchmarks: - - "external-crates/move/crates/language-benchmarks/**" + - "external-crates/move/crates/language-benchmarks/**" module-generation: - - "external-crates/move/crates/module-generation/**" + - "external-crates/move/crates/module-generation/**" move-abstract-stack: - - "external-crates/move/crates/move-abstract-stack/**" + - "external-crates/move/crates/move-abstract-stack/**" move-analyzer: - - "external-crates/move/crates/move-analyzer/**" + - "external-crates/move/crates/move-analyzer/**" move-binary-format: - - "external-crates/move/crates/move-binary-format/**" + - "external-crates/move/crates/move-binary-format/**" move-borrow-graph: - - "external-crates/move/crates/move-borrow-graph/**" + - "external-crates/move/crates/move-borrow-graph/**" move-bytecode-source-map: - - "external-crates/move/crates/move-bytecode-source-map/**" + - "external-crates/move/crates/move-bytecode-source-map/**" move-bytecode-utils: - - "external-crates/move/crates/move-bytecode-utils/**" + - "external-crates/move/crates/move-bytecode-utils/**" move-bytecode-verifier: - - "external-crates/move/crates/move-bytecode-verifier/**" + - "external-crates/move/crates/move-bytecode-verifier/**" move-bytecode-viewer: - - "external-crates/move/crates/move-bytecode-viewer/**" + - "external-crates/move/crates/move-bytecode-viewer/**" move-cli: - - "external-crates/move/crates/move-cli/**" + - "external-crates/move/crates/move-cli/**" move-command-line-common: - - "external-crates/move/crates/move-command-line-common/**" + - "external-crates/move/crates/move-command-line-common/**" move-compiler: - - "external-crates/move/crates/move-compiler/**" + - "external-crates/move/crates/move-compiler/**" move-compiler-transactional-tests: - - "external-crates/move/crates/move-compiler-transactional-tests/**" + - "external-crates/move/crates/move-compiler-transactional-tests/**" move-core-types: - - "external-crates/move/crates/move-core-types/**" + - "external-crates/move/crates/move-core-types/**" move-coverage: - - "external-crates/move/crates/move-coverage/**" + - "external-crates/move/crates/move-coverage/**" move-disassembler: - - "external-crates/move/crates/move-disassembler/**" + - "external-crates/move/crates/move-disassembler/**" move-docgen: - - "external-crates/move/crates/move-docgen/**" + - "external-crates/move/crates/move-docgen/**" move-errmapgen: - - "external-crates/move/crates/move-errmapgen/**" + - "external-crates/move/crates/move-errmapgen/**" move-explain: - - "external-crates/move/crates/move-explain/**" + - "external-crates/move/crates/move-explain/**" move-ir-compiler: - - "external-crates/move/crates/move-ir-compiler/**" + - "external-crates/move/crates/move-ir-compiler/**" move-ir-compiler-transactional-tests: - - "external-crates/move/crates/move-ir-compiler-transactional-tests/**" + - "external-crates/move/crates/move-ir-compiler-transactional-tests/**" move-ir-to-bytecode: - - "external-crates/move/crates/move-ir-to-bytecode/**" + - "external-crates/move/crates/move-ir-to-bytecode/**" move-ir-to-bytecode-syntax: - - "external-crates/move/crates/move-ir-to-bytecode-syntax/**" + - "external-crates/move/crates/move-ir-to-bytecode-syntax/**" move-ir-types: - - "external-crates/move/crates/move-ir-types/**" + - "external-crates/move/crates/move-ir-types/**" move-model: - - "external-crates/move/crates/move-model/**" + - "external-crates/move/crates/move-model/**" move-package: - - "external-crates/move/crates/move-package/**" + - "external-crates/move/crates/move-package/**" move-proc-macros: - - "external-crates/move/crates/move-proc-macros/**" + - "external-crates/move/crates/move-proc-macros/**" move-prover-test-utils: - - "external-crates/move/crates/move-prover-test-utils/**" + - "external-crates/move/crates/move-prover-test-utils/**" move-read-write-set-types: - - "external-crates/move/crates/move-read-write-set-types/**" + - "external-crates/move/crates/move-read-write-set-types/**" move-stackless-bytecode: - - "external-crates/move/crates/move-stackless-bytecode/**" + - "external-crates/move/crates/move-stackless-bytecode/**" move-stackless-bytecode-interpreter: - - "external-crates/move/crates/move-stackless-bytecode-interpreter/**" + - "external-crates/move/crates/move-stackless-bytecode-interpreter/**" move-stdlib: - - "external-crates/move/crates/move-stdlib/**" + - "external-crates/move/crates/move-stdlib/**" move-symbol-pool: - - "external-crates/move/crates/move-symbol-pool/**" + - "external-crates/move/crates/move-symbol-pool/**" move-transactional-test-runner: - - "external-crates/move/crates/move-transactional-test-runner/**" + - "external-crates/move/crates/move-transactional-test-runner/**" move-unit-test: - - "external-crates/move/crates/move-unit-test/**" + - "external-crates/move/crates/move-unit-test/**" move-vm-config: - - "external-crates/move/crates/move-vm-config/**" + - "external-crates/move/crates/move-vm-config/**" move-vm-integration-tests: - - "external-crates/move/crates/move-vm-integration-tests/**" + - "external-crates/move/crates/move-vm-integration-tests/**" move-vm-profiler: - - "external-crates/move/crates/move-vm-profiler/**" + - "external-crates/move/crates/move-vm-profiler/**" move-vm-runtime: - - "external-crates/move/crates/move-vm-runtime/**" + - "external-crates/move/crates/move-vm-runtime/**" move-vm-test-utils: - - "external-crates/move/crates/move-vm-test-utils/**" + - "external-crates/move/crates/move-vm-test-utils/**" move-vm-transactional-tests: - - "external-crates/move/crates/move-vm-transactional-tests/**" + - "external-crates/move/crates/move-vm-transactional-tests/**" move-vm-types: - - "external-crates/move/crates/move-vm-types/**" + - "external-crates/move/crates/move-vm-types/**" serializer-tests: - - "external-crates/move/crates/serializer-tests/**" + - "external-crates/move/crates/serializer-tests/**" test-generation: - - "external-crates/move/crates/test-generation/**" + - "external-crates/move/crates/test-generation/**" diff --git a/.github/labeler.yml b/.github/labeler.yml index 3dabd14d3d7..30d52321ad4 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,5 +1,5 @@ # Add 'Foo' to any changes within 'bar' folder or any subfolders "Type: Documentation": -- docs/content/**/* + - docs/content/**/* "sui-explorer": -- explorer/**/* + - explorer/**/* diff --git a/.github/workflows/apps-backend-production.deploy.yml b/.github/workflows/apps-backend-production.deploy.yml index def54a9f586..04883af2fbb 100644 --- a/.github/workflows/apps-backend-production.deploy.yml +++ b/.github/workflows/apps-backend-production.deploy.yml @@ -9,8 +9,8 @@ on: branches: - develop paths: - - 'apps/apps-backend/**' - - '.github/workflows/apps-backend-production.deploy.yml' + - "apps/apps-backend/**" + - ".github/workflows/apps-backend-production.deploy.yml" jobs: deploy-preview: @@ -26,8 +26,8 @@ jobs: - name: Install Nodejs uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # pin@v4.0.2 with: - node-version: '20' - cache: 'pnpm' + node-version: "20" + cache: "pnpm" - name: Install dependencies run: pnpm install --frozen-lockfile - name: Turbo Cache diff --git a/.github/workflows/apps-explorer-preview.deploy.yml b/.github/workflows/apps-explorer-preview.deploy.yml index 94cdb1a2af3..fa783664c4e 100644 --- a/.github/workflows/apps-explorer-preview.deploy.yml +++ b/.github/workflows/apps-explorer-preview.deploy.yml @@ -8,8 +8,8 @@ on: pull_request: types: [opened, synchronize, reopened] paths: - - 'apps/explorer/**' - - '.github/workflows/apps-explorer-preview.deploy.yml' + - "apps/explorer/**" + - ".github/workflows/apps-explorer-preview.deploy.yml" jobs: deploy-preview: @@ -25,8 +25,8 @@ jobs: - name: Install Nodejs uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # pin@v4.0.2 with: - node-version: '20' - cache: 'pnpm' + node-version: "20" + cache: "pnpm" - name: Install dependencies run: pnpm install --frozen-lockfile - name: Turbo Cache diff --git a/.github/workflows/apps-explorer-production.deploy.yml b/.github/workflows/apps-explorer-production.deploy.yml index af8f576860c..5c3f14fbabc 100644 --- a/.github/workflows/apps-explorer-production.deploy.yml +++ b/.github/workflows/apps-explorer-production.deploy.yml @@ -9,8 +9,8 @@ on: branches: - develop paths: - - 'apps/explorer/**' - - '.github/workflows/apps-explorer-production.deploy.yml' + - "apps/explorer/**" + - ".github/workflows/apps-explorer-production.deploy.yml" jobs: deploy-prod: @@ -26,8 +26,8 @@ jobs: - name: Install Nodejs uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # pin@v4.0.2 with: - node-version: '20' - cache: 'pnpm' + node-version: "20" + cache: "pnpm" - name: Install dependencies run: pnpm install --frozen-lockfile - name: Turbo Cache @@ -50,4 +50,3 @@ jobs: run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} - name: Deploy Project Artifacts to Vercel run: vercel deploy --prod --prebuilt --token=${{ secrets.VERCEL_TOKEN }} - diff --git a/.github/workflows/apps-ui-kit-preview.deploy.yml b/.github/workflows/apps-ui-kit-preview.deploy.yml index fd0c0bacea4..4e557de3dc9 100644 --- a/.github/workflows/apps-ui-kit-preview.deploy.yml +++ b/.github/workflows/apps-ui-kit-preview.deploy.yml @@ -1,53 +1,53 @@ name: Preview Deploy for Apps UI Kit Storybook env: - VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} - VERCEL_PROJECT_ID: ${{ secrets.APPS_UI_KIT_VERCEL_PROJECT_ID }} + VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} + VERCEL_PROJECT_ID: ${{ secrets.APPS_UI_KIT_VERCEL_PROJECT_ID }} on: - pull_request: - types: [opened, synchronize, reopened] - paths: - - 'apps/ui-kit/**' - - 'apps/ui-icons/**' - - '.github/workflows/apps-ui-kit-preview.deploy.yml' + pull_request: + types: [opened, synchronize, reopened] + paths: + - "apps/ui-kit/**" + - "apps/ui-icons/**" + - ".github/workflows/apps-ui-kit-preview.deploy.yml" jobs: - deploy-preview: - permissions: - contents: read - pull-requests: write - runs-on: [tooling-runners] - steps: - - uses: actions/checkout@v3 - - uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # pin@v4.0.0 - with: - version: 9 - - name: Install Nodejs - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # pin@v4.0.2 - with: - node-version: '20' - cache: 'pnpm' - - name: Install Vercel CLI - run: pnpm add --global vercel@canary - - name: Pull Vercel Environment Information - run: vercel pull ./apps/ui-kit --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} - - name: Build Project Artifacts - run: vercel build --cwd ./apps/ui-kit --token=${{ secrets.VERCEL_TOKEN }} - - name: Deploy Project Artifacts to Vercel - run: vercel deploy --cwd ./apps/ui-kit --prebuilt --token=${{ secrets.VERCEL_TOKEN }} > vercel_output.txt - - name: Extract Deploy URL - id: deploy_url - run: echo "DEPLOY_URL=$(cat vercel_output.txt | awk 'END{print}')" >> $GITHUB_OUTPUT - - name: Comment on pull request - uses: actions/github-script@v6.4.0 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - const DEPLOY_URL = '${{ steps.deploy_url.outputs.DEPLOY_URL }}' - const COMMIT_SHA = '${{ github.event.pull_request.head.sha }}' - github.rest.issues.createComment({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: `This pull request has been deployed to Vercel.\n\n\nLatest commit: ${COMMIT_SHA}\n\n:white_check_mark: Preview: ${DEPLOY_URL}` - }) + deploy-preview: + permissions: + contents: read + pull-requests: write + runs-on: [tooling-runners] + steps: + - uses: actions/checkout@v3 + - uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # pin@v4.0.0 + with: + version: 9 + - name: Install Nodejs + uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # pin@v4.0.2 + with: + node-version: "20" + cache: "pnpm" + - name: Install Vercel CLI + run: pnpm add --global vercel@canary + - name: Pull Vercel Environment Information + run: vercel pull ./apps/ui-kit --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} + - name: Build Project Artifacts + run: vercel build --cwd ./apps/ui-kit --token=${{ secrets.VERCEL_TOKEN }} + - name: Deploy Project Artifacts to Vercel + run: vercel deploy --cwd ./apps/ui-kit --prebuilt --token=${{ secrets.VERCEL_TOKEN }} > vercel_output.txt + - name: Extract Deploy URL + id: deploy_url + run: echo "DEPLOY_URL=$(cat vercel_output.txt | awk 'END{print}')" >> $GITHUB_OUTPUT + - name: Comment on pull request + uses: actions/github-script@v6.4.0 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | + const DEPLOY_URL = '${{ steps.deploy_url.outputs.DEPLOY_URL }}' + const COMMIT_SHA = '${{ github.event.pull_request.head.sha }}' + github.rest.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: `This pull request has been deployed to Vercel.\n\n\nLatest commit: ${COMMIT_SHA}\n\n:white_check_mark: Preview: ${DEPLOY_URL}` + }) diff --git a/.github/workflows/apps-ui-kit-production.deploy.yml b/.github/workflows/apps-ui-kit-production.deploy.yml index 175ac71b5c2..237859359d6 100644 --- a/.github/workflows/apps-ui-kit-production.deploy.yml +++ b/.github/workflows/apps-ui-kit-production.deploy.yml @@ -1,44 +1,44 @@ name: Production Deploy for Apps UI Kit Storybook env: - VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} - VERCEL_PROJECT_ID: ${{ secrets.APPS_UI_KIT_VERCEL_PROJECT_ID }} + VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} + VERCEL_PROJECT_ID: ${{ secrets.APPS_UI_KIT_VERCEL_PROJECT_ID }} on: - push: - branches: - - develop - paths: - - 'apps/ui-kit/**' - - 'apps/ui-icons/**' - - '.github/workflows/apps-ui-kit-production.deploy.yml' + push: + branches: + - develop + paths: + - "apps/ui-kit/**" + - "apps/ui-icons/**" + - ".github/workflows/apps-ui-kit-production.deploy.yml" jobs: - deploy-preview: - permissions: - contents: read - pull-requests: write - runs-on: [tooling-runners] - steps: - - uses: actions/checkout@v3 - - uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # pin@v4.0.0 - with: - version: 9 - - name: Install Nodejs - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # pin@v4.0.2 - with: - node-version: '20' - cache: 'pnpm' - - name: Install Vercel CLI - run: pnpm add --global vercel@canary - - name: Pull Vercel Environment Information - run: vercel pull ./apps/ui-kit --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} - - name: Build Project Artifacts - run: vercel build --cwd ./apps/ui-kit --token=${{ secrets.VERCEL_TOKEN }} - - name: Deploy Project Artifacts to Vercel - run: vercel deploy --cwd ./apps/ui-kit --prod --prebuilt --token=${{ secrets.VERCEL_TOKEN }} > vercel_output.txt - - name: Extract Deploy URL - id: deploy_url - run: echo "DEPLOY_URL=$(cat vercel_output.txt | awk 'END{print}')" >> $GITHUB_OUTPUT - - name: Set Vercel Alias - run: vercel alias --token=${{ secrets.VERCEL_TOKEN }} set ${{ steps.deploy_url.outputs.DEPLOY_URL }} ${{ secrets.APPS_UI_KIT_VERCEL_PRODUCTION_ALIAS }} + deploy-preview: + permissions: + contents: read + pull-requests: write + runs-on: [tooling-runners] + steps: + - uses: actions/checkout@v3 + - uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # pin@v4.0.0 + with: + version: 9 + - name: Install Nodejs + uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # pin@v4.0.2 + with: + node-version: "20" + cache: "pnpm" + - name: Install Vercel CLI + run: pnpm add --global vercel@canary + - name: Pull Vercel Environment Information + run: vercel pull ./apps/ui-kit --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} + - name: Build Project Artifacts + run: vercel build --cwd ./apps/ui-kit --token=${{ secrets.VERCEL_TOKEN }} + - name: Deploy Project Artifacts to Vercel + run: vercel deploy --cwd ./apps/ui-kit --prod --prebuilt --token=${{ secrets.VERCEL_TOKEN }} > vercel_output.txt + - name: Extract Deploy URL + id: deploy_url + run: echo "DEPLOY_URL=$(cat vercel_output.txt | awk 'END{print}')" >> $GITHUB_OUTPUT + - name: Set Vercel Alias + run: vercel alias --token=${{ secrets.VERCEL_TOKEN }} set ${{ steps.deploy_url.outputs.DEPLOY_URL }} ${{ secrets.APPS_UI_KIT_VERCEL_PRODUCTION_ALIAS }} diff --git a/.github/workflows/apps-wallet-dashboard-preview.deploy.yml b/.github/workflows/apps-wallet-dashboard-preview.deploy.yml index 2437fdfc141..9fb3e0ed0f9 100644 --- a/.github/workflows/apps-wallet-dashboard-preview.deploy.yml +++ b/.github/workflows/apps-wallet-dashboard-preview.deploy.yml @@ -8,8 +8,8 @@ on: pull_request: types: [opened, synchronize, reopened] paths: - - 'apps/wallet-dashboard/**' - - '.github/workflows/apps-wallet-dashboard-preview.deploy.yml' + - "apps/wallet-dashboard/**" + - ".github/workflows/apps-wallet-dashboard-preview.deploy.yml" jobs: deploy-preview: @@ -25,8 +25,8 @@ jobs: - name: Install Nodejs uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # pin@v4.0.2 with: - node-version: '20' - cache: 'pnpm' + node-version: "20" + cache: "pnpm" - name: Install dependencies run: pnpm install --frozen-lockfile - name: Turbo Cache @@ -65,4 +65,3 @@ jobs: repo: context.repo.repo, body: `This pull request has been deployed to Vercel.\n\n\nLatest commit: ${COMMIT_SHA}\n\n:white_check_mark: Preview: ${DEPLOY_URL}` }) - diff --git a/.github/workflows/apps-wallet-dashboard-production.deploy.yml b/.github/workflows/apps-wallet-dashboard-production.deploy.yml index dc19cb8f39e..596464ab458 100644 --- a/.github/workflows/apps-wallet-dashboard-production.deploy.yml +++ b/.github/workflows/apps-wallet-dashboard-production.deploy.yml @@ -9,8 +9,8 @@ on: branches: - develop paths: - - 'apps/wallet-dashboard/**' - - '.github/workflows/apps-wallet-dashboard-production.deploy.yml' + - "apps/wallet-dashboard/**" + - ".github/workflows/apps-wallet-dashboard-production.deploy.yml" jobs: deploy-preview: @@ -26,8 +26,8 @@ jobs: - name: Install Nodejs uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # pin@v4.0.2 with: - node-version: '20' - cache: 'pnpm' + node-version: "20" + cache: "pnpm" - name: Install dependencies run: pnpm install --frozen-lockfile - name: Turbo Cache diff --git a/.github/workflows/apps-wallet-nightly.build.yml b/.github/workflows/apps-wallet-nightly.build.yml index c9a7dded63e..b0a21bc9e0c 100644 --- a/.github/workflows/apps-wallet-nightly.build.yml +++ b/.github/workflows/apps-wallet-nightly.build.yml @@ -3,11 +3,11 @@ name: Build Wallet App (nightly) on: schedule: # At 20:58 on every day-of-week from Monday through Friday - - cron: '58 20 * * 1-5' + - cron: "58 20 * * 1-5" workflow_dispatch: inputs: iota_branch: - description: 'IOTA repo branch to build artifacts from (default: develop)' + description: "IOTA repo branch to build artifacts from (default: develop)" type: string required: false @@ -41,8 +41,8 @@ jobs: - name: Install Nodejs uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # pin@v4.0.2 with: - node-version: '20' - cache: 'pnpm' + node-version: "20" + cache: "pnpm" - name: Install dependencies run: pnpm install --frozen-lockfile - name: Turbo Cache diff --git a/.github/workflows/build-nightly.yml b/.github/workflows/build-nightly.yml index 2b77395ac1f..672481d2a8c 100644 --- a/.github/workflows/build-nightly.yml +++ b/.github/workflows/build-nightly.yml @@ -2,11 +2,11 @@ name: Build nightly IOTA binaries on: schedule: - - cron: '0 4 * * *' # Runs every day at 4 AM + - cron: "0 4 * * *" # Runs every day at 4 AM workflow_dispatch: inputs: iota_branch: - description: 'IOTA repo branch to build artifacts from (default: develop)' + description: "IOTA repo branch to build artifacts from (default: develop)" type: string required: false @@ -40,7 +40,7 @@ jobs: timeout-minutes: 80 strategy: matrix: - os: [ self-hosted-rust ] + os: [self-hosted-rust] fail-fast: false runs-on: ${{ matrix.os }} steps: diff --git a/.github/workflows/cargo-llvm-cov.yml b/.github/workflows/cargo-llvm-cov.yml index 35fb0b2293e..6e0d6ab7e53 100644 --- a/.github/workflows/cargo-llvm-cov.yml +++ b/.github/workflows/cargo-llvm-cov.yml @@ -1,7 +1,7 @@ name: Code Coverage on: schedule: - - cron: '0 9 * * *' # UTC timing is every day at 1am PST + - cron: "0 9 * * *" # UTC timing is every day at 1am PST workflow_dispatch: env: @@ -36,12 +36,12 @@ jobs: env: CARGO_TERM_COLOR: always steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 - uses: bmwill/rust-cache@v1 - name: Install cargo-llvm-cov uses: taiki-e/install-action@cargo-llvm-cov - + - name: Install nextest uses: taiki-e/install-action@nextest @@ -52,7 +52,7 @@ jobs: - name: Install Rust run: rustup update stable - + - name: Run code coverage for nextest run: IOTA_SKIP_SIMTESTS=1 cargo llvm-cov --ignore-run-fail --lcov --output-path lcov.info nextest @@ -78,107 +78,107 @@ jobs: if: always() # always notify steps: - - uses: technote-space/workflow-conclusion-action@45ce8e0eb155657ab8ccf346ade734257fd196a5 # Pin v4.1.1 - - - name: Checkout iota repo main branch - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v3.0.3 - - - name: Get iota commit - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - export iota_sha=$(git rev-parse HEAD) - echo "iota_sha=${iota_sha}" >> $GITHUB_ENV - - - name: Get a branch name for a iota commit - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - export iota_branch_name=$(gh api -H 'Accept: application/vnd.github+json' /repos/iotaledger/iota/commits/${{ env.iota_sha }}/branches-where-head --jq '.[].name' | head -n 1) - # if the commit is not the head of the branch, get it's base branch - [[ -z $iota_branch_name ]] && export iota_branch_name=$(gh api -H 'Accept: application/vnd.github+json' /repos/iotaledger/iota/commits/${{ env.iota_sha }}/pulls --jq '.[].base.ref' | head -n 1) - echo "iota_branch_name=${iota_branch_name}" >> $GITHUB_ENV - echo "iota_branch_name_url=$(echo ${iota_branch_name} | sed 's\/\%2F\g')" >> $GITHUB_ENV - - - name: Get link to logs - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - gh_job_link=$(gh api -X GET 'repos/iotaledger/iota/actions/runs/${{ github.run_id }}/jobs' --jq '.jobs.[0].html_url') - echo "gh_job_link=${gh_job_link}" >> $GITHUB_ENV - - - name: Get current oncall - run: | - export current_oncall=$(curl -s --request GET \ - --url 'https://api.pagerduty.com/oncalls?schedule_ids[]=PGCQ3YS' \ - --header 'Accept: application/json' \ - --header 'Authorization: Token token=${{ secrets.PAGERDUTY_ACCESS_KEY }}' \ - --header 'Content-Type: application/json' \ - | jq '.oncalls[].user.summary' | tr -d '"') - echo "current_oncall=$(echo ${current_oncall})" >> $GITHUB_ENV - - export oncall_name=$(curl -s --request GET \ - --url 'https://api.pagerduty.com/oncalls?schedule_ids[]=PGCQ3YS' \ - --header 'Accept: application/json' \ - --header 'Authorization: Token token=${{ secrets.PAGERDUTY_ACCESS_KEY }}' \ - --header 'Content-Type: application/json' \ - | jq '.oncalls[].escalation_policy.summary' | tr -d '"') - echo "oncall_name=$(echo ${oncall_name})" >> $GITHUB_ENV - - - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # pin v4.0.2 - with: - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - aws-region: us-west-2 - - - name: Get slack id for the oncall - run: | - export slack_id=$(aws s3 cp s3://mysten-employees-dir/employees.json - | jq --arg ONCALL "${{ env.current_oncall }}" '.[] | if .name == $ONCALL then .slack_id else empty end') - echo "slack_id=$(echo ${slack_id} | tr -d '"')" >> $GITHUB_ENV - - - name: Post to slack - uses: slackapi/slack-github-action@v1.24.0 # pin@v1.21.0 - env: - SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} - IOTA_SHA: ${{ env.iota_sha }} - IOTA_BRANCH_NAME: ${{ env.iota_branch_name }} - IOTA_BRANCH_NAME_URL: ${{ env.iota_branch_name_url }} - GH_JOB_LINK: ${{ env.gh_job_link }} - SLACK_ID: ${{ env.slack_id }} - ONCALL_NAME: ${{ env.oncall_name }} - with: - channel-id: 'code-coverage' - payload: | - { - "text": "*${{ github.workflow }}* workflow status: `${{ env.WORKFLOW_CONCLUSION }}`", - "blocks": [ - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "*${{ github.workflow }}* workflow status: `${{ env.WORKFLOW_CONCLUSION }}`" - } - }, - { - "type": "divider" - }, - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "IOTA commit: \nIOTA branch: `${{ env.IOTA_BRANCH_NAME }}`\nRun: <${{ env.GH_JOB_LINK }}|${{ github.run_id }}>" - } - }, - { - "type": "divider" - }, - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "<@${{ env.SLACK_ID }}>, current `${{ env.ONCALL_NAME }}` oncall, please look over the code coverage for the `${{ env.IOTA_BRANCH_NAME }}` branch in IOTA repo." + - uses: technote-space/workflow-conclusion-action@45ce8e0eb155657ab8ccf346ade734257fd196a5 # Pin v4.1.1 + + - name: Checkout iota repo main branch + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v3.0.3 + + - name: Get iota commit + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + export iota_sha=$(git rev-parse HEAD) + echo "iota_sha=${iota_sha}" >> $GITHUB_ENV + + - name: Get a branch name for a iota commit + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + export iota_branch_name=$(gh api -H 'Accept: application/vnd.github+json' /repos/iotaledger/iota/commits/${{ env.iota_sha }}/branches-where-head --jq '.[].name' | head -n 1) + # if the commit is not the head of the branch, get it's base branch + [[ -z $iota_branch_name ]] && export iota_branch_name=$(gh api -H 'Accept: application/vnd.github+json' /repos/iotaledger/iota/commits/${{ env.iota_sha }}/pulls --jq '.[].base.ref' | head -n 1) + echo "iota_branch_name=${iota_branch_name}" >> $GITHUB_ENV + echo "iota_branch_name_url=$(echo ${iota_branch_name} | sed 's\/\%2F\g')" >> $GITHUB_ENV + + - name: Get link to logs + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh_job_link=$(gh api -X GET 'repos/iotaledger/iota/actions/runs/${{ github.run_id }}/jobs' --jq '.jobs.[0].html_url') + echo "gh_job_link=${gh_job_link}" >> $GITHUB_ENV + + - name: Get current oncall + run: | + export current_oncall=$(curl -s --request GET \ + --url 'https://api.pagerduty.com/oncalls?schedule_ids[]=PGCQ3YS' \ + --header 'Accept: application/json' \ + --header 'Authorization: Token token=${{ secrets.PAGERDUTY_ACCESS_KEY }}' \ + --header 'Content-Type: application/json' \ + | jq '.oncalls[].user.summary' | tr -d '"') + echo "current_oncall=$(echo ${current_oncall})" >> $GITHUB_ENV + + export oncall_name=$(curl -s --request GET \ + --url 'https://api.pagerduty.com/oncalls?schedule_ids[]=PGCQ3YS' \ + --header 'Accept: application/json' \ + --header 'Authorization: Token token=${{ secrets.PAGERDUTY_ACCESS_KEY }}' \ + --header 'Content-Type: application/json' \ + | jq '.oncalls[].escalation_policy.summary' | tr -d '"') + echo "oncall_name=$(echo ${oncall_name})" >> $GITHUB_ENV + + - name: Configure AWS credentials + uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # pin v4.0.2 + with: + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: us-west-2 + + - name: Get slack id for the oncall + run: | + export slack_id=$(aws s3 cp s3://mysten-employees-dir/employees.json - | jq --arg ONCALL "${{ env.current_oncall }}" '.[] | if .name == $ONCALL then .slack_id else empty end') + echo "slack_id=$(echo ${slack_id} | tr -d '"')" >> $GITHUB_ENV + + - name: Post to slack + uses: slackapi/slack-github-action@v1.24.0 # pin@v1.21.0 + env: + SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} + IOTA_SHA: ${{ env.iota_sha }} + IOTA_BRANCH_NAME: ${{ env.iota_branch_name }} + IOTA_BRANCH_NAME_URL: ${{ env.iota_branch_name_url }} + GH_JOB_LINK: ${{ env.gh_job_link }} + SLACK_ID: ${{ env.slack_id }} + ONCALL_NAME: ${{ env.oncall_name }} + with: + channel-id: "code-coverage" + payload: | + { + "text": "*${{ github.workflow }}* workflow status: `${{ env.WORKFLOW_CONCLUSION }}`", + "blocks": [ + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "*${{ github.workflow }}* workflow status: `${{ env.WORKFLOW_CONCLUSION }}`" + } + }, + { + "type": "divider" + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "IOTA commit: \nIOTA branch: `${{ env.IOTA_BRANCH_NAME }}`\nRun: <${{ env.GH_JOB_LINK }}|${{ github.run_id }}>" + } + }, + { + "type": "divider" + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "<@${{ env.SLACK_ID }}>, current `${{ env.ONCALL_NAME }}` oncall, please look over the code coverage for the `${{ env.IOTA_BRANCH_NAME }}` branch in IOTA repo." + } } - } - ] - } + ] + } diff --git a/.github/workflows/changesets-ci.yml b/.github/workflows/changesets-ci.yml index e58a4e831bd..fe514f53154 100644 --- a/.github/workflows/changesets-ci.yml +++ b/.github/workflows/changesets-ci.yml @@ -5,7 +5,7 @@ jobs: runs-on: self-hosted-rust steps: - name: checkout code repository - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 with: fetch-depth: 0 - uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # pin@v4.0.0 diff --git a/.github/workflows/changesets.yml b/.github/workflows/changesets.yml index 1b61dec4d14..1be63fbca52 100644 --- a/.github/workflows/changesets.yml +++ b/.github/workflows/changesets.yml @@ -31,7 +31,7 @@ jobs: private_key: ${{ secrets.APP_PRIVATE_KEY }} - name: checkout code repository - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 with: token: ${{ steps.generate_token.outputs.token }} fetch-depth: 0 diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 27d8c90008e..fec27d159bd 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -14,9 +14,9 @@ jobs: outputs: isRust: ${{ steps.diff.outputs.isRust }} steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 - name: Detect Changes - uses: './.github/actions/diffs' + uses: "./.github/actions/diffs" id: diff codecov-grcov: @@ -27,7 +27,7 @@ jobs: strategy: fail-fast: true steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 - run: rustup component add llvm-tools-preview # Enable caching of the 'librocksdb-sys' crate by additionally caching the # 'librocksdb-sys' src directory which is managed by cargo @@ -47,14 +47,14 @@ jobs: with: command: build env: - RUSTFLAGS: '-Cinstrument-coverage' - RUSTDOCFLAGS: '-Cinstrument-coverage' + RUSTFLAGS: "-Cinstrument-coverage" + RUSTDOCFLAGS: "-Cinstrument-coverage" - name: Run tests env: - RUSTFLAGS: '-Cinstrument-coverage' - RUSTDOCFLAGS: '-Cinstrument-coverage' - LLVM_PROFILE_FILE: 'codecov-instrumentation-%p-%m.profraw' + RUSTFLAGS: "-Cinstrument-coverage" + RUSTDOCFLAGS: "-Cinstrument-coverage" + LLVM_PROFILE_FILE: "codecov-instrumentation-%p-%m.profraw" run: cargo test - name: Run grcov diff --git a/.github/workflows/crate-docs.yml b/.github/workflows/crate-docs.yml index eee54ae8f50..84b40f451d7 100644 --- a/.github/workflows/crate-docs.yml +++ b/.github/workflows/crate-docs.yml @@ -16,7 +16,7 @@ jobs: runs-on: self-hosted-rust steps: - name: Checkout sources - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 - name: Install Rust toolchain uses: actions-rs/toolchain@b2417cde72dcf67f306c0ae8e0828a81bf0b189f # pin@v1.0.7 diff --git a/.github/workflows/docs-lint.yml b/.github/workflows/docs-lint.yml index 3c5cf1e5e76..3d33f8ee140 100644 --- a/.github/workflows/docs-lint.yml +++ b/.github/workflows/docs-lint.yml @@ -2,11 +2,10 @@ name: Docs spellcheck and linting on: push: - branches: [ develop, extensions ] + branches: [develop, extensions] pull_request: types: [opened, synchronize, reopened, ready_for_review] - jobs: diff: runs-on: [self-hosted-rust] @@ -14,11 +13,11 @@ jobs: isDoc: ${{ steps.diff.outputs.isDoc }} isOldDoc: ${{ steps.diff.outputs.isOldDoc }} steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 - name: Detect Changes - uses: './.github/actions/diffs' + uses: "./.github/actions/diffs" id: diff - + spelling: name: Lint documentation needs: diff @@ -26,7 +25,7 @@ jobs: runs-on: [self-hosted-rust] steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 - name: Spell Check Docs uses: crate-ci/typos@v1.16.11 with: diff --git a/.github/workflows/docusaurus.yml b/.github/workflows/docusaurus.yml index f25826aac95..1731fcf912e 100644 --- a/.github/workflows/docusaurus.yml +++ b/.github/workflows/docusaurus.yml @@ -12,7 +12,7 @@ jobs: runs-on: self-hosted-rust steps: - name: Checkout - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 with: fetch-depth: 2 - uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # pin@v4.0.0 diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index fa72e5f7414..8098842ca0a 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -1,5 +1,5 @@ name: TS End-to-end Tests -on: +on: pull_request: concurrency: @@ -16,12 +16,12 @@ jobs: isGraphQlTransport: ${{ (steps.turbo.outputs.packages && contains(fromJson(steps.turbo.outputs.packages), '@iota/graphql-transport')) }} isRust: ${{ steps.diff.outputs.isRust }} steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 - name: Detect Changes (turbo) - uses: './.github/actions/turbo-diffs' + uses: "./.github/actions/turbo-diffs" id: turbo - name: Detect Changes (diff) - uses: './.github/actions/diffs' + uses: "./.github/actions/diffs" id: diff # Run e2e test against localnet built on the main branch @@ -46,7 +46,7 @@ jobs: ports: - 5432:5432 steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 # Disabled for now as it makes test runs take longer # - uses: bmwill/rust-cache@v1 # Fork of 'Swatinem/rust-cache' which allows caching additional paths - uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # pin@v4.0.0 @@ -56,8 +56,8 @@ jobs: - name: Install Nodejs uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # pin@v4.0.2 with: - node-version: '18' - cache: 'pnpm' + node-version: "18" + cache: "pnpm" - name: Install dependencies run: pnpm install --frozen-lockfile - name: Install Playwright Browsers @@ -132,9 +132,9 @@ jobs: ports: - 5432:5432 steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 - name: Run E2E Test Runner with devnet branch - uses: './.github/actions/ts-e2e' + uses: "./.github/actions/ts-e2e" with: ref: devnet @@ -161,8 +161,8 @@ jobs: ports: - 5432:5432 steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 - name: Run E2E Test Runner with testnet branch - uses: './.github/actions/ts-e2e' + uses: "./.github/actions/ts-e2e" with: ref: testnet diff --git a/.github/workflows/external.yml b/.github/workflows/external.yml index b923053d5e2..62b8511b680 100644 --- a/.github/workflows/external.yml +++ b/.github/workflows/external.yml @@ -1,121 +1,121 @@ name: External crates on: - push: - branches: [develop, extensions, devnet] - pull_request: - types: [opened, synchronize, reopened, ready_for_review] + push: + branches: [develop, extensions, devnet] + pull_request: + types: [opened, synchronize, reopened, ready_for_review] concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} - cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} env: - CARGO_TERM_COLOR: always - # Disable incremental compilation. - # - # Incremental compilation is useful as part of an edit-build-test-edit cycle, - # as it lets the compiler avoid recompiling code that hasn't changed. However, - # on CI, we're not making small edits; we're almost always building the entire - # project from scratch. Thus, incremental compilation on CI actually - # introduces *additional* overhead to support making future builds - # faster...but no future builds will ever occur in any given CI environment. - # - # See https://matklad.github.io/2021/09/04/fast-rust-builds.html#ci-workflow - # for details. - CARGO_INCREMENTAL: 0 - # Allow more retries for network requests in cargo (downloading crates) and - # rustup (installing toolchains). This should help to reduce flaky CI failures - # from transient network timeouts or other issues. - CARGO_NET_RETRY: 10 - RUSTUP_MAX_RETRIES: 10 - # Don't emit giant backtraces in the CI logs. - RUST_BACKTRACE: short - # RUSTFLAGS: -D warnings - RUSTDOCFLAGS: -D warnings + CARGO_TERM_COLOR: always + # Disable incremental compilation. + # + # Incremental compilation is useful as part of an edit-build-test-edit cycle, + # as it lets the compiler avoid recompiling code that hasn't changed. However, + # on CI, we're not making small edits; we're almost always building the entire + # project from scratch. Thus, incremental compilation on CI actually + # introduces *additional* overhead to support making future builds + # faster...but no future builds will ever occur in any given CI environment. + # + # See https://matklad.github.io/2021/09/04/fast-rust-builds.html#ci-workflow + # for details. + CARGO_INCREMENTAL: 0 + # Allow more retries for network requests in cargo (downloading crates) and + # rustup (installing toolchains). This should help to reduce flaky CI failures + # from transient network timeouts or other issues. + CARGO_NET_RETRY: 10 + RUSTUP_MAX_RETRIES: 10 + # Don't emit giant backtraces in the CI logs. + RUST_BACKTRACE: short + # RUSTFLAGS: -D warnings + RUSTDOCFLAGS: -D warnings jobs: - changes: - runs-on: [self-hosted-rust] - outputs: - components: ${{ steps.filter.outputs.changes }} - steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - - uses: dorny/paths-filter@v3 - id: filter - with: - list-files: "json" - filters: .github/external-crates-filters.yml + changes: + runs-on: [self-hosted-rust] + outputs: + components: ${{ steps.filter.outputs.changes }} + steps: + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 + - uses: dorny/paths-filter@v3 + id: filter + with: + list-files: "json" + filters: .github/external-crates-filters.yml - diff: - runs-on: [self-hosted-rust] - outputs: - isRust: ${{ steps.diff.outputs.isRust }} - isMove: ${{ steps.diff.outputs.isMove }} - steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 - - name: Detect Changes - uses: './.github/actions/diffs' - id: diff + diff: + runs-on: [self-hosted-rust] + outputs: + isRust: ${{ steps.diff.outputs.isRust }} + isMove: ${{ steps.diff.outputs.isMove }} + steps: + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 + - name: Detect Changes + uses: "./.github/actions/diffs" + id: diff - test: - name: Test ${{ matrix.components }} - if: needs.diff.outputs.isRust == 'true' - env: - # Tests written with #[sim_test] are often flaky if run as #[tokio::test] - this var - # causes #[sim_test] to only run under the deterministic `simtest` job, and not the - # non-deterministic `test` job. - IOTA_SKIP_SIMTESTS: 1 - strategy: - matrix: - components: ${{ fromJson(needs.changes.outputs.components) }} - fail-fast: false - runs-on: [self-hosted-rust] - needs: changes - steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - - uses: taiki-e/install-action@nextest - - name: Install python dependencies - run: pip install pyopenssl --upgrade - - name: cargo test - run: > - cargo nextest run - --config-file .config/nextest.toml - --manifest-path external-crates/move/Cargo.toml - -E '!test(prove) and !test(run_all::simple_build_with_docs/args.txt) and !test(run_test::nested_deps_bad_parent/Move.toml) and rdeps(${{matrix.components}})' - -p ${{matrix.components}} - --profile ci + test: + name: Test ${{ matrix.components }} + if: needs.diff.outputs.isRust == 'true' + env: + # Tests written with #[sim_test] are often flaky if run as #[tokio::test] - this var + # causes #[sim_test] to only run under the deterministic `simtest` job, and not the + # non-deterministic `test` job. + IOTA_SKIP_SIMTESTS: 1 + strategy: + matrix: + components: ${{ fromJson(needs.changes.outputs.components) }} + fail-fast: false + runs-on: [self-hosted-rust] + needs: changes + steps: + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 + - uses: taiki-e/install-action@nextest + - name: Install python dependencies + run: pip install pyopenssl --upgrade + - name: cargo test + run: > + cargo nextest run + --config-file .config/nextest.toml + --manifest-path external-crates/move/Cargo.toml + -E '!test(prove) and !test(run_all::simple_build_with_docs/args.txt) and !test(run_test::nested_deps_bad_parent/Move.toml) and rdeps(${{matrix.components}})' + -p ${{matrix.components}} + --profile ci - clippy: - needs: diff - if: needs.diff.outputs.isRust == 'true' - runs-on: [self-hosted-rust] - steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 - - run: rustup component add clippy + clippy: + needs: diff + if: needs.diff.outputs.isRust == 'true' + runs-on: [self-hosted-rust] + steps: + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 + - run: rustup component add clippy - # See '.cargo/config' for list of enabled/disabled clippy lints - - name: cargo move-clippy - run: | - cargo +stable ci-clippy-external + # See '.cargo/config' for list of enabled/disabled clippy lints + - name: cargo move-clippy + run: | + cargo +stable ci-clippy-external - rustfmt: - needs: diff - if: needs.diff.outputs.isRust == 'true' - runs-on: [self-hosted-rust] - steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 - - name: Install latest nightly - run: rustup toolchain install nightly --component rustfmt --allow-downgrade - - name: Check Rust formatting - run: | - cargo +nightly ci-fmt-external + rustfmt: + needs: diff + if: needs.diff.outputs.isRust == 'true' + runs-on: [self-hosted-rust] + steps: + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 + - name: Install latest nightly + run: rustup toolchain install nightly --component rustfmt --allow-downgrade + - name: Check Rust formatting + run: | + cargo +nightly ci-fmt-external - cargo-deny: - name: cargo-deny (advisories, licenses, bans, ...) - needs: diff - if: needs.diff.outputs.isRust == 'true' - runs-on: [self-hosted-rust] - steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 - - uses: EmbarkStudios/cargo-deny-action@v1 + cargo-deny: + name: cargo-deny (advisories, licenses, bans, ...) + needs: diff + if: needs.diff.outputs.isRust == 'true' + runs-on: [self-hosted-rust] + steps: + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 + - uses: EmbarkStudios/cargo-deny-action@v1 diff --git a/.github/workflows/fastcrypto_pull.yml b/.github/workflows/fastcrypto_pull.yml index f78c6e584b8..2567f824af0 100644 --- a/.github/workflows/fastcrypto_pull.yml +++ b/.github/workflows/fastcrypto_pull.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: schedule: # Update on every hour at 10 past the hour - - cron: '10 * * * *' + - cron: "10 * * * *" jobs: update-dep: @@ -14,7 +14,7 @@ jobs: strategy: fail-fast: true steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 - uses: bmwill/rust-cache@v1 # Fork of 'Swatinem/rust-cache' which allows caching additional paths - name: Install cargo-hakari, and cache the binary uses: baptiste0928/cargo-install@1cd874a5478fdca35d868ccc74640c5aabbb8f1b # pin@v3.0.0 @@ -27,14 +27,14 @@ jobs: - name: Create Pull Request uses: peter-evans/create-pull-request@v5 with: - # TODO: change the token to something FC-specific? - token: ${{ secrets.NW_AUTO_UPDATE }} - commit-message: chore(deps) Update the Fastcrypto pointer - title: chore(deps) Update the Fastcrypto pointer - body: | - - Update Fastcrypto - - Auto-generated by [create-pull-request][1] and the scripts/update_fastcrypto.sh script - - [1]: https://github.com/peter-evans/create-pull-request - branch: update-fastcrypto + # TODO: change the token to something FC-specific? + token: ${{ secrets.NW_AUTO_UPDATE }} + commit-message: chore(deps) Update the Fastcrypto pointer + title: chore(deps) Update the Fastcrypto pointer + body: | + - Update Fastcrypto + + Auto-generated by [create-pull-request][1] and the scripts/update_fastcrypto.sh script + + [1]: https://github.com/peter-evans/create-pull-request + branch: update-fastcrypto diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 18f2ec2e33a..ebecef9d599 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -1,6 +1,6 @@ name: "Pull Request Labeler" on: -- pull_request_target + - pull_request_target jobs: triage: @@ -9,6 +9,6 @@ jobs: pull-requests: write runs-on: self-hosted-rust steps: - - uses: actions/labeler@9fd24f1f9d6ceb64ba34d181b329ee72f99978a0 - with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" + - uses: actions/labeler@9fd24f1f9d6ceb64ba34d181b329ee72f99978a0 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/links_checker.yml b/.github/workflows/links_checker.yml index 5cef70f368c..88de964d432 100644 --- a/.github/workflows/links_checker.yml +++ b/.github/workflows/links_checker.yml @@ -6,7 +6,7 @@ on: ## Run this workflow automatically every week schedule: - - cron: '0 0 * * *' + - cron: "0 0 * * *" jobs: link_checker: @@ -16,7 +16,7 @@ jobs: LYCHEE_OUT: ./lychee/links-report steps: ## Check out code using Git - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 - name: Check all links at *.md and doc files id: lychee diff --git a/.github/workflows/narwhal_pull.yml b/.github/workflows/narwhal_pull.yml index a0d0b9ea7a4..1814b695580 100644 --- a/.github/workflows/narwhal_pull.yml +++ b/.github/workflows/narwhal_pull.yml @@ -6,8 +6,8 @@ on: # at https://github.com/mystenlabs/narwhal, but it is now shared in this repo. # This should be re-activated when NW development happens there again. # schedule: - # Update on every hour at 10 past the hour - # - cron: '10 * * * *' +# Update on every hour at 10 past the hour +# - cron: '10 * * * *' jobs: update-dep: @@ -17,7 +17,7 @@ jobs: strategy: fail-fast: true steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 - uses: bmwill/rust-cache@v1 # Fork of 'Swatinem/rust-cache' which allows caching additional paths - name: Install cargo-hakari, and cache the binary uses: baptiste0928/cargo-install@1cd874a5478fdca35d868ccc74640c5aabbb8f1b # pin@v3.0.0 @@ -30,13 +30,13 @@ jobs: - name: Create Pull Request uses: peter-evans/create-pull-request@v5 with: - token: ${{ secrets.NW_AUTO_UPDATE }} - commit-message: chore(deps) Update the Narwhal pointer - title: chore(deps) Update the Narwhal pointer - body: | - - Update Narwhal - - Auto-generated by [create-pull-request][1] an the scripts/update_narwhal.sh script - - [1]: https://github.com/peter-evans/create-pull-request - branch: update-narwhal + token: ${{ secrets.NW_AUTO_UPDATE }} + commit-message: chore(deps) Update the Narwhal pointer + title: chore(deps) Update the Narwhal pointer + body: | + - Update Narwhal + + Auto-generated by [create-pull-request][1] an the scripts/update_narwhal.sh script + + [1]: https://github.com/peter-evans/create-pull-request + branch: update-narwhal diff --git a/.github/workflows/nightly-narwhal.yml b/.github/workflows/nightly-narwhal.yml index 0aacdfc564e..3535c1e04a3 100644 --- a/.github/workflows/nightly-narwhal.yml +++ b/.github/workflows/nightly-narwhal.yml @@ -4,7 +4,7 @@ on: ## Allow triggering this workflow manually via GitHub CLI/web workflow_dispatch: schedule: - - cron: '0 3 * * *' # every 03:00 every night + - cron: "0 3 * * *" # every 03:00 every night env: CARGO_TERM_COLOR: always @@ -33,7 +33,7 @@ jobs: name: Narwhal run long-running end-to-end tests runs-on: self-hosted-rust steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 - uses: taiki-e/install-action@nextest # Enable caching of the 'librocksdb-sys' crate by additionally caching the # 'librocksdb-sys' src directory which is managed by cargo diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index f5a895b5424..7620c6bfc8c 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -2,7 +2,7 @@ name: Nightly binary build on: schedule: - - cron: '0 0 * * *' # every day at midnight + - cron: "0 0 * * *" # every day at midnight workflow_dispatch: env: @@ -32,7 +32,7 @@ jobs: name: build release binaries runs-on: [self-hosted-rust] steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 - name: cargo build uses: actions-rs/cargo@ae10961054e4aa8b4aa7dffede299aaf087aa33b # pin@v1.0.3 with: diff --git a/.github/workflows/preview-wiki.yml b/.github/workflows/preview-wiki.yml index b8b0a78590d..be7e0bcb87b 100644 --- a/.github/workflows/preview-wiki.yml +++ b/.github/workflows/preview-wiki.yml @@ -13,7 +13,7 @@ on: pull_request: types: [opened, synchronize, reopened, ready_for_review] paths: - - 'docs/**' + - "docs/**" concurrency: group: ${{ github.workflow }}-${{ github.event.issue.number || github.event.pull_request.number || github.ref }} @@ -36,11 +36,11 @@ jobs: uses: actions/setup-node@v4 with: node-version: 20 - cache: 'pnpm' + cache: "pnpm" - name: Install dependencies run: pnpm install - + - name: Build wiki run: pnpm iota-docs build @@ -70,7 +70,7 @@ jobs: const body = `✅ Vercel Preview Deployment is ready! [View Preview](${deploymentUrl})`; - + github.rest.issues.createComment({ issue_number: context.issue.number, owner: context.repo.owner, diff --git a/.github/workflows/release-docker.yml b/.github/workflows/release-docker.yml index c0030935cb2..73d7ccbac36 100644 --- a/.github/workflows/release-docker.yml +++ b/.github/workflows/release-docker.yml @@ -7,17 +7,17 @@ on: inputs: iota_node: type: boolean - description: 'Release iota-node image' + description: "Release iota-node image" required: false default: false iota_indexer: type: boolean - description: 'Release iota-indexer image' + description: "Release iota-indexer image" required: false default: false iota_tools: type: boolean - description: 'Release iota-tools image' + description: "Release iota-tools image" required: false default: false @@ -29,7 +29,7 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 - + - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -42,13 +42,13 @@ jobs: with: images: docker-registry.iota.org/iota-node tags: | - type=raw,value={{sha}},enable=${{ github.event_name == 'workflow_dispatch' }} - type=semver,pattern={{version}},enable=${{ github.event_name == 'release' }} - type=semver,pattern={{major}}.{{minor}},enable=${{ github.event_name == 'release' }} - type=semver,pattern={{major}},enable=${{ github.event_name == 'release' }} - type=match,pattern=v(\d+.\d+),suffix=-alpha,group=1,enable=${{ contains(github.ref, '-alpha') && github.event_name == 'release' }} - type=match,pattern=v(\d+.\d+),suffix=-beta,group=1,enable=${{ contains(github.ref, '-beta') && github.event_name == 'release' }} - type=match,pattern=v(\d+.\d+),suffix=-rc,group=1,enable=${{ contains(github.ref, '-rc') && github.event_name == 'release' }} + type=raw,value={{sha}},enable=${{ github.event_name == 'workflow_dispatch' }} + type=semver,pattern={{version}},enable=${{ github.event_name == 'release' }} + type=semver,pattern={{major}}.{{minor}},enable=${{ github.event_name == 'release' }} + type=semver,pattern={{major}},enable=${{ github.event_name == 'release' }} + type=match,pattern=v(\d+.\d+),suffix=-alpha,group=1,enable=${{ contains(github.ref, '-alpha') && github.event_name == 'release' }} + type=match,pattern=v(\d+.\d+),suffix=-beta,group=1,enable=${{ contains(github.ref, '-beta') && github.event_name == 'release' }} + type=match,pattern=v(\d+.\d+),suffix=-rc,group=1,enable=${{ contains(github.ref, '-rc') && github.event_name == 'release' }} - name: Login to Docker Registry uses: docker/login-action@v3 @@ -86,13 +86,13 @@ jobs: with: images: docker-registry.iota.org/iota-indexer tags: | - type=raw,value={{sha}},enable=${{ github.event_name == 'workflow_dispatch' }} - type=semver,pattern={{version}},enable=${{ github.event_name == 'release' }} - type=semver,pattern={{major}}.{{minor}},enable=${{ github.event_name == 'release' }} - type=semver,pattern={{major}},enable=${{ github.event_name == 'release' }} - type=match,pattern=v(\d+.\d+),suffix=-alpha,group=1,enable=${{ contains(github.ref, '-alpha') && github.event_name == 'release' }} - type=match,pattern=v(\d+.\d+),suffix=-beta,group=1,enable=${{ contains(github.ref, '-beta') && github.event_name == 'release' }} - type=match,pattern=v(\d+.\d+),suffix=-rc,group=1,enable=${{ contains(github.ref, '-rc') && github.event_name == 'release' }} + type=raw,value={{sha}},enable=${{ github.event_name == 'workflow_dispatch' }} + type=semver,pattern={{version}},enable=${{ github.event_name == 'release' }} + type=semver,pattern={{major}}.{{minor}},enable=${{ github.event_name == 'release' }} + type=semver,pattern={{major}},enable=${{ github.event_name == 'release' }} + type=match,pattern=v(\d+.\d+),suffix=-alpha,group=1,enable=${{ contains(github.ref, '-alpha') && github.event_name == 'release' }} + type=match,pattern=v(\d+.\d+),suffix=-beta,group=1,enable=${{ contains(github.ref, '-beta') && github.event_name == 'release' }} + type=match,pattern=v(\d+.\d+),suffix=-rc,group=1,enable=${{ contains(github.ref, '-rc') && github.event_name == 'release' }} - name: Login to Docker Registry uses: docker/login-action@v3 @@ -130,13 +130,13 @@ jobs: with: images: docker-registry.iota.org/iota-tools tags: | - type=raw,value={{sha}},enable=${{ github.event_name == 'workflow_dispatch' }} - type=semver,pattern={{version}},enable=${{ github.event_name == 'release' }} - type=semver,pattern={{major}}.{{minor}},enable=${{ github.event_name == 'release' }} - type=semver,pattern={{major}},enable=${{ github.event_name == 'release' }} - type=match,pattern=v(\d+.\d+),suffix=-alpha,group=1,enable=${{ contains(github.ref, '-alpha') && github.event_name == 'release' }} - type=match,pattern=v(\d+.\d+),suffix=-beta,group=1,enable=${{ contains(github.ref, '-beta') && github.event_name == 'release' }} - type=match,pattern=v(\d+.\d+),suffix=-rc,group=1,enable=${{ contains(github.ref, '-rc') && github.event_name == 'release' }} + type=raw,value={{sha}},enable=${{ github.event_name == 'workflow_dispatch' }} + type=semver,pattern={{version}},enable=${{ github.event_name == 'release' }} + type=semver,pattern={{major}}.{{minor}},enable=${{ github.event_name == 'release' }} + type=semver,pattern={{major}},enable=${{ github.event_name == 'release' }} + type=match,pattern=v(\d+.\d+),suffix=-alpha,group=1,enable=${{ contains(github.ref, '-alpha') && github.event_name == 'release' }} + type=match,pattern=v(\d+.\d+),suffix=-beta,group=1,enable=${{ contains(github.ref, '-beta') && github.event_name == 'release' }} + type=match,pattern=v(\d+.\d+),suffix=-rc,group=1,enable=${{ contains(github.ref, '-rc') && github.event_name == 'release' }} - name: Login to Docker Registry uses: docker/login-action@v3 @@ -152,4 +152,4 @@ jobs: file: docker/iota-tools/Dockerfile platforms: linux/amd64 tags: ${{ steps.meta-tools.outputs.tags }} - push: true \ No newline at end of file + push: true diff --git a/.github/workflows/release-notes-monitor.yml b/.github/workflows/release-notes-monitor.yml index c83bf7979fe..450f9dccfc9 100644 --- a/.github/workflows/release-notes-monitor.yml +++ b/.github/workflows/release-notes-monitor.yml @@ -3,7 +3,7 @@ name: Release Notes Monitor on: workflow_dispatch: schedule: - - cron: '0 */3 * * *' # every 3 hours + - cron: "0 */3 * * *" # every 3 hours jobs: get-list-of-prs: @@ -15,95 +15,95 @@ jobs: new_tag: ${{ steps.get-pr-list.outputs.new_tag }} iota_version: ${{ steps.get-pr-list.outputs.iota_version }} runs-on: self-hosted-rust - + steps: - - name: Checkout iota repo main branch - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 - with: - fetch-depth: 0 - ref: develop + - name: Checkout iota repo main branch + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 + with: + fetch-depth: 0 + ref: develop + + - name: Get list of PRs + id: get-pr-list + working-directory: ./ + run: | + export new_commit_hash=$(git rev-parse HEAD) + export existing_commit_tag=$(git tag --points-at ${new_commit_hash} | grep -E 'iota_v(.*)_rel_notes' | head -n 1) + + export previous_tag=$(git tag | grep -E 'iota_v1(.*)_rel_notes' | sort -rV | head -1) + export previous_commit_hash=$(git rev-list -n 1 ${previous_tag}) + + export list_of_prs=$(git log --grep "\[x\]" --pretty=oneline --abbrev-commit ${previous_commit_hash}...${new_commit_hash} -- crates dashboards doc docker external-crates kiosk narwhal nre iota-execution | grep -o '#[0-9]\+' | grep -o '[0-9]\+' | jq -R -s -c 'split("\n")[:-1]') - - name: Get list of PRs - id: get-pr-list - working-directory: ./ - run: | - export new_commit_hash=$(git rev-parse HEAD) - export existing_commit_tag=$(git tag --points-at ${new_commit_hash} | grep -E 'iota_v(.*)_rel_notes' | head -n 1) + echo "matrix=${list_of_prs}" >> $GITHUB_OUTPUT + echo "new_commit_hash=${new_commit_hash}" >> $GITHUB_OUTPUT + echo "existing_commit_tag=${existing_commit_tag}" >> $GITHUB_OUTPUT - export previous_tag=$(git tag | grep -E 'iota_v1(.*)_rel_notes' | sort -rV | head -1) - export previous_commit_hash=$(git rev-list -n 1 ${previous_tag}) - - export list_of_prs=$(git log --grep "\[x\]" --pretty=oneline --abbrev-commit ${previous_commit_hash}...${new_commit_hash} -- crates dashboards doc docker external-crates kiosk narwhal nre iota-execution | grep -o '#[0-9]\+' | grep -o '[0-9]\+' | jq -R -s -c 'split("\n")[:-1]') + export iota_crate_version=$(cat Cargo.toml | grep "^version =" | tr -d '"' | awk '{ print $3 }') + export new_tag=$(echo "iota_v${iota_crate_version}_$(date +%s)_rel_notes") + echo "new_tag=${new_tag}" >> $GITHUB_OUTPUT + echo "iota_version=${iota_crate_version}" >> $GITHUB_OUTPUT - echo "matrix=${list_of_prs}" >> $GITHUB_OUTPUT - echo "new_commit_hash=${new_commit_hash}" >> $GITHUB_OUTPUT - echo "existing_commit_tag=${existing_commit_tag}" >> $GITHUB_OUTPUT - - export iota_crate_version=$(cat Cargo.toml | grep "^version =" | tr -d '"' | awk '{ print $3 }') - export new_tag=$(echo "iota_v${iota_crate_version}_$(date +%s)_rel_notes") - echo "new_tag=${new_tag}" >> $GITHUB_OUTPUT - echo "iota_version=${iota_crate_version}" >> $GITHUB_OUTPUT - process-prs: name: Processing PR - needs: [ get-list-of-prs ] + needs: [get-list-of-prs] if: ${{ needs.get-list-of-prs.outputs.matrix != '[]' && needs.get-list-of-prs.outputs.matrix != '' }} runs-on: self-hosted-rust strategy: matrix: - pr: ${{ fromJson(needs.get-list-of-prs.outputs.matrix) }} + pr: ${{ fromJson(needs.get-list-of-prs.outputs.matrix) }} steps: - - name: Reading Release notes - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - echo "Processing ${{ matrix.pr }} PR" - export rel_notes=$(gh api -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" /repos/iotaledger/iota/pulls/${{ matrix.pr }} --jq ".body" | awk '/### Release notes/{p=1; next} p' | sed '/^[[:space:]]*$/d') - echo "release_notes=${rel_notes}" >> $GITHUB_ENV + - name: Reading Release notes + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + echo "Processing ${{ matrix.pr }} PR" + export rel_notes=$(gh api -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" /repos/iotaledger/iota/pulls/${{ matrix.pr }} --jq ".body" | awk '/### Release notes/{p=1; next} p' | sed '/^[[:space:]]*$/d') + echo "release_notes=${rel_notes}" >> $GITHUB_ENV - - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # pin v4.0.2 - with: - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - aws-region: us-west-2 + - name: Configure AWS credentials + uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # pin v4.0.2 + with: + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: us-west-2 - - name: Get PR author - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - export author=$(gh api -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" /repos/iotaledger/iota/pulls/${{ matrix.pr }}} --jq ".user.login") - export slack_id=$(aws s3 cp s3://mysten-employees-dir/employees.json - | jq --arg AUTHOR "${author}" '.[] | if .github_handle == $AUTHOR then .slack_id else empty end') - echo "slack_id=$(echo ${slack_id} | tr -d '"')" >> $GITHUB_ENV + - name: Get PR author + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + export author=$(gh api -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" /repos/iotaledger/iota/pulls/${{ matrix.pr }}} --jq ".user.login") + export slack_id=$(aws s3 cp s3://mysten-employees-dir/employees.json - | jq --arg AUTHOR "${author}" '.[] | if .github_handle == $AUTHOR then .slack_id else empty end') + echo "slack_id=$(echo ${slack_id} | tr -d '"')" >> $GITHUB_ENV - - name: Post to a Slack channel - uses: slackapi/slack-github-action@34c3fd73326693ef04728f8611669d918a2d781d # pin@v1.19.0 - env: - SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} - with: - channel-id: '#ext-mysten-release-notes' - payload: | - { - "text": "PR *${{ matrix.pr }}* Release Notes", - "blocks": [ - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "*PR* by <@${{ env.slack_id }}>\n<@U03LRLPR1QX> and <@U04A8V9E203> please review release notes for upcoming `v${{ needs.get-list-of-prs.outputs.iota_version }}` release.\n *Release Notes:*\n${{ env.release_notes }}\n" + - name: Post to a Slack channel + uses: slackapi/slack-github-action@34c3fd73326693ef04728f8611669d918a2d781d # pin@v1.19.0 + env: + SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} + with: + channel-id: "#ext-mysten-release-notes" + payload: | + { + "text": "PR *${{ matrix.pr }}* Release Notes", + "blocks": [ + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "*PR* by <@${{ env.slack_id }}>\n<@U03LRLPR1QX> and <@U04A8V9E203> please review release notes for upcoming `v${{ needs.get-list-of-prs.outputs.iota_version }}` release.\n *Release Notes:*\n${{ env.release_notes }}\n" + } + }, + { + "type": "divider" } - }, - { - "type": "divider" - } - ] - } + ] + } tag: name: Adding git tag to processed commit runs-on: self-hosted-rust - needs: [ get-list-of-prs ] + needs: [get-list-of-prs] if: ${{ success() && needs.get-list-of-prs.outputs.existing_commit_tag == '' }} uses: iotaleger/iota/.github/workflows/tag.yml@main with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a447b897171..61887e310fe 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,11 +2,11 @@ name: Attach IOTA binaries to a release on: release: - types: [ published ] + types: [published] workflow_dispatch: inputs: iota_tag: - description: 'IOTA repo tag to build from' + description: "IOTA repo tag to build from" type: string required: true @@ -44,7 +44,7 @@ jobs: windows-ghcloud, self-hosted-rust, macos-latest-xl, - macos-arm64-self-hosted + macos-arm64-self-hosted, ] fail-fast: false runs-on: ${{ matrix.os }} @@ -81,7 +81,7 @@ jobs: export arch=$(uname -m) export system_os=$(echo ${{ matrix.os }} | cut -d- -f1) export os_type="${system_os}-${arch}" - echo "os_type=${system_os}-${arch}" >> $GITHUB_ENV + echo "os_type=${system_os}-${arch}" >> $GITHUB_ENV - name: Check if archives of binaries have already been built continue-on-error: true @@ -98,7 +98,7 @@ jobs: - name: Setup caching if: ${{ env.s3_archive_exist == '' }} - uses: bmwill/rust-cache@v1 # Fork of 'Swatinem/rust-cache' which allows caching additional paths + uses: bmwill/rust-cache@v1 # Fork of 'Swatinem/rust-cache' which allows caching additional paths - name: Install nexttest (Windows) if: ${{ matrix.os == 'windows-ghcloud' && env.s3_archive_exist == '' }} @@ -298,8 +298,8 @@ jobs: commit-message: "Update Homebrew formula for release ${{ env.iota_tag }}" files: Formula/iota.rb push-branch: main - rebase: 'true' - force-add: 'true' + rebase: "true" + force-add: "true" name: ${{ github.triggering_actor }} email: ${{ github.triggering_actor }}@users.noreply.github.com diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 24b754394ab..50a2124e858 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -80,7 +80,7 @@ jobs: with: filters: | iota-sdk: - - 'crates/iota-sdk/**' + - "crates/iota-sdk/**" test-iota-sdk: name: Test iota-sdk diff --git a/.github/workflows/simulator-nightly-mysticeti.yml b/.github/workflows/simulator-nightly-mysticeti.yml index ed982e8aadc..9b432788d82 100644 --- a/.github/workflows/simulator-nightly-mysticeti.yml +++ b/.github/workflows/simulator-nightly-mysticeti.yml @@ -5,7 +5,7 @@ concurrency: on: schedule: - - cron: '0 13 * * *' # UTC timing is every day at 5am PST + - cron: "0 13 * * *" # UTC timing is every day at 5am PST workflow_dispatch: inputs: iota_ref: @@ -55,13 +55,13 @@ jobs: # Cargo clean and git restore on any left over files from git checkout, and deletes all remote tracking branches - name: Environment clean - run: | + run: | tsh -i ${{ steps.auth.outputs.identity-file }} --ttl 5 ssh ubuntu@simtest-01 "source ~/.bashrc && source ~/.cargo/env && rm -rf ~/iota" tsh -i ${{ steps.auth.outputs.identity-file }} --ttl 5 ssh ubuntu@simtest-01 "source ~/.bashrc && source ~/.cargo/env && cd ~/ && git clone git@github.com:MystenLabs/iota.git" - + # Deleting files in tmpfs that usually fill up pretty quickly after each run. Cargo clean to free up space as well. - name: Tmpfs and cargo clean - run: | + run: | tsh -i ${{ steps.auth.outputs.identity-file }} --ttl 5 ssh ubuntu@simtest-01 "sudo rm -rf /tmp/*" tsh -i ${{ steps.auth.outputs.identity-file }} --ttl 5 ssh ubuntu@simtest-01 "source ~/.bashrc && source ~/.cargo/env && cd ~/iota && cargo clean" @@ -79,4 +79,3 @@ jobs: - name: Run simtest run: | tsh -i ${{ steps.auth.outputs.identity-file }} --ttl 120 ssh ubuntu@simtest-01 "source ~/.bashrc && source ~/.cargo/env && cd ~/iota && RUSTUP_MAX_RETRIES=10 CARGO_TERM_COLOR=always CARGO_INCREMENTAL=0 CARGO_NET_RETRY=10 RUST_BACKTRACE=short RUST_LOG=off NUM_CPUS=24 TEST_NUM=${{ env.TEST_NUM }} ./scripts/simtest/simtest-run.sh" - diff --git a/.github/workflows/simulator-nightly.yml b/.github/workflows/simulator-nightly.yml index 7c8ab5b4250..09b15724798 100644 --- a/.github/workflows/simulator-nightly.yml +++ b/.github/workflows/simulator-nightly.yml @@ -5,7 +5,7 @@ concurrency: on: schedule: - - cron: '0 9 * * *' # UTC timing is every day at 1am PST + - cron: "0 9 * * *" # UTC timing is every day at 1am PST workflow_dispatch: inputs: iota_ref: @@ -52,13 +52,13 @@ jobs: # Cargo clean and git restore on any left over files from git checkout, and deletes all remote tracking branches - name: Environment clean - run: | + run: | tsh -i ${{ steps.auth.outputs.identity-file }} --ttl 5 ssh ubuntu@simtest-01 "source ~/.bashrc && source ~/.cargo/env && rm -rf ~/iota" tsh -i ${{ steps.auth.outputs.identity-file }} --ttl 5 ssh ubuntu@simtest-01 "source ~/.bashrc && source ~/.cargo/env && cd ~/ && git clone git@github.com:MystenLabs/iota.git" - + # Deleting files in tmpfs that usually fill up pretty quickly after each run. Cargo clean to free up space as well. - name: Tmpfs and cargo clean - run: | + run: | tsh -i ${{ steps.auth.outputs.identity-file }} --ttl 5 ssh ubuntu@simtest-01 "sudo rm -rf /tmp/*" tsh -i ${{ steps.auth.outputs.identity-file }} --ttl 5 ssh ubuntu@simtest-01 "source ~/.bashrc && source ~/.cargo/env && cd ~/iota && cargo clean" @@ -76,7 +76,7 @@ jobs: - name: Run simtest run: | tsh -i ${{ steps.auth.outputs.identity-file }} --ttl 120 ssh ubuntu@simtest-01 "source ~/.bashrc && source ~/.cargo/env && cd ~/iota && RUSTUP_MAX_RETRIES=10 CARGO_TERM_COLOR=always CARGO_INCREMENTAL=0 CARGO_NET_RETRY=10 RUST_BACKTRACE=short RUST_LOG=off NUM_CPUS=24 TEST_NUM=${{ env.TEST_NUM }} ./scripts/simtest/simtest-run.sh" - + notify: name: Notify needs: [simtest] @@ -84,95 +84,95 @@ jobs: if: github.event_name == 'schedule' && failure() steps: - - uses: technote-space/workflow-conclusion-action@45ce8e0eb155657ab8ccf346ade734257fd196a5 # Pin v4.1.1 - - - name: Checkout iota repo main branch - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 - - - name: Get iota commit - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - export iota_sha=$(git rev-parse HEAD) - echo "iota_sha=${iota_sha}" >> $GITHUB_ENV - - - name: Get link to logs - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - gh_job_link=$(gh api -X GET 'repos/MystenLabs/iota/actions/runs/${{ github.run_id }}/jobs' --jq '.jobs.[0].html_url') - echo "gh_job_link=${gh_job_link}" >> $GITHUB_ENV - - - name: Get current oncall - run: | - export current_oncall=$(curl -s --request GET \ - --url 'https://api.pagerduty.com/oncalls?schedule_ids[]=PGCQ3YS' \ - --header 'Accept: application/json' \ - --header 'Authorization: Token token=${{ secrets.PAGERDUTY_ACCESS_KEY }}' \ - --header 'Content-Type: application/json' \ - | jq '.oncalls[].user.summary' | tr -d '"') - echo "current_oncall=$(echo ${current_oncall})" >> $GITHUB_ENV - - export oncall_name=$(curl -s --request GET \ - --url 'https://api.pagerduty.com/oncalls?schedule_ids[]=PGCQ3YS' \ - --header 'Accept: application/json' \ - --header 'Authorization: Token token=${{ secrets.PAGERDUTY_ACCESS_KEY }}' \ - --header 'Content-Type: application/json' \ - | jq '.oncalls[].escalation_policy.summary' | tr -d '"') - echo "oncall_name=$(echo ${oncall_name})" >> $GITHUB_ENV - - - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # pin v4.0.2 - with: - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - aws-region: us-west-2 - - - name: Get slack id for the oncall - run: | - export slack_id=$(aws s3 cp s3://mysten-employees-dir/employees.json - | jq --arg ONCALL "${{ env.current_oncall }}" '.[] | if .name == $ONCALL then .slack_id else empty end') - echo "slack_id=$(echo ${slack_id} | tr -d '"')" >> $GITHUB_ENV - - - name: Post to slack - uses: slackapi/slack-github-action@v1.24.0 # pin@v1.21.0 - env: - SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} - IOTA_SHA: ${{ env.iota_sha }} - GH_JOB_LINK: ${{ env.gh_job_link }} - SLACK_ID: ${{ env.slack_id }} - ONCALL_NAME: ${{ env.oncall_name }} - with: - channel-id: 'simtest-nightly' - payload: | - { - "text": "*${{ github.workflow }}* workflow status: `${{ env.WORKFLOW_CONCLUSION }}`", - "blocks": [ - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "*${{ github.workflow }}* workflow status: `${{ env.WORKFLOW_CONCLUSION }}`" - } - }, - { - "type": "divider" - }, - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "IOTA commit: \nRun: <${{ env.GH_JOB_LINK }}|${{ github.run_id }}>" - } - }, - { - "type": "divider" - }, - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "<@${{ env.SLACK_ID }}>, current `${{ env.ONCALL_NAME }}` oncall, please debug failures: `tsh ssh ubuntu@simtest-01` and look in the `/home/ubuntu/simtest_logs/{date}` folder for test results" + - uses: technote-space/workflow-conclusion-action@45ce8e0eb155657ab8ccf346ade734257fd196a5 # Pin v4.1.1 + + - name: Checkout iota repo main branch + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 + + - name: Get iota commit + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + export iota_sha=$(git rev-parse HEAD) + echo "iota_sha=${iota_sha}" >> $GITHUB_ENV + + - name: Get link to logs + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh_job_link=$(gh api -X GET 'repos/MystenLabs/iota/actions/runs/${{ github.run_id }}/jobs' --jq '.jobs.[0].html_url') + echo "gh_job_link=${gh_job_link}" >> $GITHUB_ENV + + - name: Get current oncall + run: | + export current_oncall=$(curl -s --request GET \ + --url 'https://api.pagerduty.com/oncalls?schedule_ids[]=PGCQ3YS' \ + --header 'Accept: application/json' \ + --header 'Authorization: Token token=${{ secrets.PAGERDUTY_ACCESS_KEY }}' \ + --header 'Content-Type: application/json' \ + | jq '.oncalls[].user.summary' | tr -d '"') + echo "current_oncall=$(echo ${current_oncall})" >> $GITHUB_ENV + + export oncall_name=$(curl -s --request GET \ + --url 'https://api.pagerduty.com/oncalls?schedule_ids[]=PGCQ3YS' \ + --header 'Accept: application/json' \ + --header 'Authorization: Token token=${{ secrets.PAGERDUTY_ACCESS_KEY }}' \ + --header 'Content-Type: application/json' \ + | jq '.oncalls[].escalation_policy.summary' | tr -d '"') + echo "oncall_name=$(echo ${oncall_name})" >> $GITHUB_ENV + + - name: Configure AWS credentials + uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # pin v4.0.2 + with: + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: us-west-2 + + - name: Get slack id for the oncall + run: | + export slack_id=$(aws s3 cp s3://mysten-employees-dir/employees.json - | jq --arg ONCALL "${{ env.current_oncall }}" '.[] | if .name == $ONCALL then .slack_id else empty end') + echo "slack_id=$(echo ${slack_id} | tr -d '"')" >> $GITHUB_ENV + + - name: Post to slack + uses: slackapi/slack-github-action@v1.24.0 # pin@v1.21.0 + env: + SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} + IOTA_SHA: ${{ env.iota_sha }} + GH_JOB_LINK: ${{ env.gh_job_link }} + SLACK_ID: ${{ env.slack_id }} + ONCALL_NAME: ${{ env.oncall_name }} + with: + channel-id: "simtest-nightly" + payload: | + { + "text": "*${{ github.workflow }}* workflow status: `${{ env.WORKFLOW_CONCLUSION }}`", + "blocks": [ + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "*${{ github.workflow }}* workflow status: `${{ env.WORKFLOW_CONCLUSION }}`" + } + }, + { + "type": "divider" + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "IOTA commit: \nRun: <${{ env.GH_JOB_LINK }}|${{ github.run_id }}>" + } + }, + { + "type": "divider" + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "<@${{ env.SLACK_ID }}>, current `${{ env.ONCALL_NAME }}` oncall, please debug failures: `tsh ssh ubuntu@simtest-01` and look in the `/home/ubuntu/simtest_logs/{date}` folder for test results" + } } - } - ] - } + ] + } diff --git a/.github/workflows/split-cluster.yml b/.github/workflows/split-cluster.yml index f64e66d41ad..f7f02624355 100644 --- a/.github/workflows/split-cluster.yml +++ b/.github/workflows/split-cluster.yml @@ -1,5 +1,5 @@ name: Split Cluster Check -on: +on: pull_request: push: branches: @@ -9,22 +9,22 @@ jobs: runs-on: self-hosted-rust steps: - name: checkout code repository - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 with: fetch-depth: 0 - name: Run split cluster check script id: mn-split-cluster-check - continue-on-error: true # if failure, continue to bisect - run: | - IOTA_PROTOCOL_CONFIG_CHAIN_OVERRIDE=mainnet \ - scripts/compatibility/split-cluster-check.sh origin/mainnet ${{ github.sha }} + continue-on-error: true # if failure, continue to bisect + run: | + IOTA_PROTOCOL_CONFIG_CHAIN_OVERRIDE=mainnet \ + scripts/compatibility/split-cluster-check.sh origin/mainnet ${{ github.sha }} - name: Bisect if: steps.mn-split-cluster-check.outcome == 'failure' && github.event_name == 'push' run: | - git bisect start ${{ github.event.pull_request.head.sha }} origin/mainnet - IOTA_PROTOCOL_CONFIG_CHAIN_OVERRIDE=mainnet \ - git bisect run scripts/split-cluster-check.sh origin/mainnet ${{ github.sha }} - git bisect reset + git bisect start ${{ github.event.pull_request.head.sha }} origin/mainnet + IOTA_PROTOCOL_CONFIG_CHAIN_OVERRIDE=mainnet \ + git bisect run scripts/split-cluster-check.sh origin/mainnet ${{ github.sha }} + git bisect reset - name: Mark Failures if: failure() run: exit 1 @@ -33,22 +33,22 @@ jobs: runs-on: self-hosted-rust steps: - name: checkout code repository - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 with: fetch-depth: 0 - name: Run split cluster check script id: tn-split-cluster-check - continue-on-error: true # if failure, continue to bisect - run: | - IOTA_PROTOCOL_CONFIG_CHAIN_OVERRIDE=testnet \ - scripts/compatibility/split-cluster-check.sh origin/testnet ${{ github.sha }} + continue-on-error: true # if failure, continue to bisect + run: | + IOTA_PROTOCOL_CONFIG_CHAIN_OVERRIDE=testnet \ + scripts/compatibility/split-cluster-check.sh origin/testnet ${{ github.sha }} - name: Bisect if: steps.tn-split-cluster-check.outcome == 'failure' && github.event_name == 'push' run: | - git bisect start ${{ github.event.pull_request.head.sha }} origin/testnet - IOTA_PROTOCOL_CONFIG_CHAIN_OVERRIDE=testnet \ - git bisect run scripts/split-cluster-check.sh origin/testnet ${{ github.sha }} - git bisect reset + git bisect start ${{ github.event.pull_request.head.sha }} origin/testnet + IOTA_PROTOCOL_CONFIG_CHAIN_OVERRIDE=testnet \ + git bisect run scripts/split-cluster-check.sh origin/testnet ${{ github.sha }} + git bisect reset - name: Mark Failures if: failure() run: exit 1 diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index c30dce07ca2..0700c1ce35f 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -16,7 +16,7 @@ jobs: days-before-close: -1 exempt-all-milestones: true exempt-all-assignees: true - stale-issue-message: 'This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.' - stale-pr-message: 'This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.' - close-issue-message: 'This issue was closed because it has been stalled for 7 days with no activity.' - close-pr-message: 'This PR was closed because it has been stalled for 7 days with no activity.' + stale-issue-message: "This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days." + stale-pr-message: "This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days." + close-issue-message: "This issue was closed because it has been stalled for 7 days with no activity." + close-pr-message: "This PR was closed because it has been stalled for 7 days with no activity." diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index e30aff7af9d..93035d34e3e 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -7,21 +7,21 @@ on: workflow_call: inputs: iota_commit: - description: 'IOTA repo commit to tag' + description: "IOTA repo commit to tag" type: string required: true tag_name: - description: 'Tag Name' + description: "Tag Name" type: string required: true workflow_dispatch: inputs: iota_commit: - description: 'IOTA repo commit to tag' + description: "IOTA repo commit to tag" type: string required: true tag_name: - description: 'Tag Name' + description: "Tag Name" type: string required: true @@ -35,14 +35,14 @@ jobs: runs-on: self-hosted-rust steps: - - name: Checkout - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 + - name: Checkout + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 - - name: Tag - uses: julbme/gh-action-manage-tag@v1 - with: - name: ${{ env.TAG_NAME }} - state: present - from: ${{ env.IOTA_COMMIT }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Tag + uses: julbme/gh-action-manage-tag@v1 + with: + name: ${{ env.TAG_NAME }} + state: present + from: ${{ env.IOTA_COMMIT }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/trigger-builds.yml b/.github/workflows/trigger-builds.yml index cbf7a6e2fcb..82f4ff76420 100644 --- a/.github/workflows/trigger-builds.yml +++ b/.github/workflows/trigger-builds.yml @@ -3,11 +3,11 @@ name: Trigger builds for images and binaries on: workflow_dispatch: push: - branches: - - 'devnet' - - 'testnet' - - 'mainnet' - - 'releases/iota-*-release' + branches: + - "devnet" + - "testnet" + - "mainnet" + - "releases/iota-*-release" concurrency: ${{ github.workflow }}-${{ github.ref }} diff --git a/.github/workflows/turborepo.yml b/.github/workflows/turborepo.yml index 2ae8c6346a0..3141e5b72e8 100644 --- a/.github/workflows/turborepo.yml +++ b/.github/workflows/turborepo.yml @@ -12,7 +12,7 @@ jobs: runs-on: self-hosted-rust steps: - name: Checkout - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 - uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # pin@v4.0.0 with: version: 9 @@ -28,7 +28,7 @@ jobs: runs-on: self-hosted-rust steps: - name: Checkout - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 with: fetch-depth: 2 - uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # pin@v4.0.0 @@ -56,7 +56,7 @@ jobs: - name: Install wasm-pack for mbf package uses: jetli/wasm-pack-action@0d096b08b4e5a7de8c28de67e11e945404e9eefa # pin@v0.4.0 with: - version: 'latest' + version: "latest" - name: Build run: pnpm turbo build - name: Test diff --git a/.github/workflows/typos.yml b/.github/workflows/typos.yml index 0619ab2672b..0308b02fc4c 100644 --- a/.github/workflows/typos.yml +++ b/.github/workflows/typos.yml @@ -2,14 +2,14 @@ name: Typos on: [pull_request] jobs: - run: - name: Spell Check with Typos - runs-on: ubuntu-latest - steps: - - name: Checkout Actions Repository - uses: actions/checkout@v4 + run: + name: Spell Check with Typos + runs-on: ubuntu-latest + steps: + - name: Checkout Actions Repository + uses: actions/checkout@v4 - - name: Check spelling - uses: crate-ci/typos@master - with: - config: ./.typos.toml + - name: Check spelling + uses: crate-ci/typos@master + with: + config: ./.typos.toml diff --git a/crates/iota-config/data/fullnode-template-with-path.yaml b/crates/iota-config/data/fullnode-template-with-path.yaml index b0fc801dc76..23a316065cf 100644 --- a/crates/iota-config/data/fullnode-template-with-path.yaml +++ b/crates/iota-config/data/fullnode-template-with-path.yaml @@ -22,9 +22,9 @@ authority-store-pruning-config: protocol-key-pair: path: "protocol.key" -network-key-pair: +network-key-pair: path: "network.key" -account-key-pair: +account-key-pair: path: "account.key" -worker-key-pair: - path: "worker.key" \ No newline at end of file +worker-key-pair: + path: "worker.key" diff --git a/crates/iota-config/src/test_gateway.yml b/crates/iota-config/src/test_gateway.yml index e70b0d449a4..db5ee5ac1ee 100644 --- a/crates/iota-config/src/test_gateway.yml +++ b/crates/iota-config/src/test_gateway.yml @@ -1,251 +1,250 @@ - --- - epoch: 0 - validator_set: - - name: validator-9 - account-key: AD0iV/PbGVBoPExdB+4wfprZLoS9N4ltb00p1MNnlm71 - protocol-key: getJQ17IvK3nYcHAOLZ1PDeQt5dNcxGGkCooW9AYo0fUNEu1C3Uo264SZBiEqhqUD3QcR018SpZkYYEntPS/B/I8QGRJFBa55O1GSGGNscJ3rOOArqGKM4cOBaJUF2nH - worker-key: RXzQ+WNIIcodae0f1AaRVg3qvzbySW4EYBUVf68VdzA= - network-key: OD73hNLl2wBqBrmcxG00r77V7Kgdi2fu4YpnoEJDyPs= - stake: 1 - delegation: 0 - gas-price: 1 - network-address: /dns/ny2-iotaval-1.testnet.iota.io/tcp/8080/http - narwhal-primary-address: /dns/ny2-iotaval-1.testnet.iota.io/udp/8081 - narwhal-worker-address: /dns/ny2-iotaval-1.testnet.iota.io/udp/8082 - narwhal-consensus-address: /ip4/127.0.0.1/tcp/8083/http - - name: validator-14 - account-key: APxJHKslYpWYWmMIlpKfzBTj9K5I84diueoJ4sWHwjmS - protocol-key: hUY69ZxcvuOaoY9AoazvEAsum2bS/61LZU7d88h/baYO5rBXFod3UeYC+wr0J51qF6JUpOaNk/E2OIFSbI1GoLUxu0AxIfe23ph+BLD3CbttFMbpqZa7Zza6DOHpjyok - worker-key: IrjezuU/lXLkyXkAUvWbKBGPLH5GCrJqCRYKTVc9nao= - network-key: pu7Q7oXG6GiRfoEcR7azVoWUVQC10gY7MLi3xVoYa0g= - stake: 1 - delegation: 0 - gas-price: 1 - network-address: /dns/mh1-iotaval-2.testnet.iota.io/tcp/8080/http - narwhal-primary-address: /dns/mh1-iotaval-2.testnet.iota.io/udp/8081 - narwhal-worker-address: /dns/mh1-iotaval-2.testnet.iota.io/udp/8082 - narwhal-consensus-address: /ip4/127.0.0.1/tcp/8083/http - - name: validator-13 - account-key: AF7odQ5Mwj8PBN/7LYTqyB/gS1OywSBOcKuCS/+VNyLd - protocol-key: iBNb7x9vyRov6hR/y0671JJ3gYTGWjDtSO8BLZ0FjZQkkQ3peXhjQZnVUe7VO8CnGN630twyg6zfBwS8CL51rV0UbsEJ0ZOn/4uwR/rq8PwMdod+Wf84AkGhbrZ0AUh4 - worker-key: H2uJQcpeBVF/cn5VBR3re7HZugsooxv2TeGfoctO6GE= - network-key: tgVQjD8k8ymbIdWYhi8VxjMw9FInsfh8xLd+4xhOIOE= - stake: 1 - delegation: 0 - gas-price: 1 - network-address: /dns/mh1-iotaval-1.testnet.iota.io/tcp/8080/http - narwhal-primary-address: /dns/mh1-iotaval-1.testnet.iota.io/udp/8081 - narwhal-worker-address: /dns/mh1-iotaval-1.testnet.iota.io/udp/8082 - narwhal-consensus-address: /ip4/127.0.0.1/tcp/8083/http - - name: validator-17 - account-key: AO6lcah9+F9DfVBwE5+30kmi8pkw7nHPeolO0LNIJUQi - protocol-key: iJOovXaLrS4FvmlpMnkCk0oEY79HrBPLxY+21WhK2sKsaTsAgjL4KnyXVbrb7nTOAm0z6CkdzT+hMmMw1E7csmK8dV8VjKpgaR66oMxcGDM2Rbu0XhqIx7uH3DpwYezp - worker-key: jdsdCfcvGNs5XxGk+jwNbOF6caMnaWvCGKOp0b4QslI= - network-key: qqL4hLWUa7bitFYj0k1uosnmKEEslk/o8shtOOJriWY= - stake: 1 - delegation: 0 - gas-price: 1 - network-address: /dns/ty6-iotaval-1.testnet.iota.io/tcp/8080/http - narwhal-primary-address: /dns/ty6-iotaval-1.testnet.iota.io/udp/8081 - narwhal-worker-address: /dns/ty6-iotaval-1.testnet.iota.io/udp/8082 - narwhal-consensus-address: /ip4/127.0.0.1/tcp/8083/http - - name: validator-10 - account-key: AEM7kl/d6VlBG1IgY+lHdxzudYT6ZhtXiYBh3kCxLZCq - protocol-key: iic7mlIKCwVxaqej7btkXo045aJYw6hgqpHZT+n25aqICuYCkc0PUXzZ2qSGTrUgDkhcyLKUpMPXjNCPw7AV3M+B+dPuKf6BVVo4Enj4KJe5SnoNOYRE7Ll01K9KfbWU - worker-key: +Ukw2HM7IYXyIxp9F2ZbBZMAQpIMN24fhzArm41CJy0= - network-key: IXFQDgUFO6XD+eqnCHf4aAR2HVdqKKM/7l13nlFIk+w= - stake: 1 - delegation: 0 - gas-price: 1 - network-address: /dns/ny2-iotaval-2.testnet.iota.io/tcp/8080/http - narwhal-primary-address: /dns/ny2-iotaval-2.testnet.iota.io/udp/8081 - narwhal-worker-address: /dns/ny2-iotaval-2.testnet.iota.io/udp/8082 - narwhal-consensus-address: /ip4/127.0.0.1/tcp/8083/http - - name: validator-7 - account-key: ALO4VmUJME24oEDq0tzE7MRi+83HZE3UCuLTVPIE4ZQK - protocol-key: krpOBB6E7P0N4jsUHBGFPSHX0UPoS6uFR1I/kKND+em8+cgrujsm31oygHdrKhUeDjq4UWUtCyxLoCczGLO/F1VUooI/J3iqzjN1RvkG7CiFriuU0L9GF7/l64U01DwN - worker-key: knT4d0Du6/s0qQWtIeAHI25gRjTXHQe4g0SK56LGtLw= - network-key: ZtPhPziNESJSElsa2y7GZWkc97kKPMrJTq1UldpxUoU= - stake: 1 - delegation: 0 - gas-price: 1 - network-address: /dns/dal2-iotaval-3.testnet.iota.io/tcp/8080/http - narwhal-primary-address: /dns/dal2-iotaval-3.testnet.iota.io/udp/8081 - narwhal-worker-address: /dns/dal2-iotaval-3.testnet.iota.io/udp/8082 - narwhal-consensus-address: /ip4/127.0.0.1/tcp/8083/http - - name: validator-8 - account-key: AJN7LZADOBBRulSlRjE0HJs3YR8I3WPwg2ejh4HbDmIS - protocol-key: ky1saTSmEpWC/F4MKypOBzJaNaqxHk7gTWkhDnJP0NMZG0vniS+3YIGtg/MsHPQXAVJkmj/rq9AgGNN/xxmUXd7iB/6xnldUSRfHDberjd9lr6zlG+oEtj9nmpLNA/Wd - worker-key: feBqPOJotxyv+jWKWvYGWw6/ISzP2dms9jhiy4Nbj4Q= - network-key: yfVmqGTyP3tutFvvrvklhafUJUCTmik+6u6zBRV3Vb4= - stake: 1 - delegation: 0 - gas-price: 1 - network-address: /dns/ny2-iotaval-0.testnet.iota.io/tcp/8080/http - narwhal-primary-address: /dns/ny2-iotaval-0.testnet.iota.io/udp/8081 - narwhal-worker-address: /dns/ny2-iotaval-0.testnet.iota.io/udp/8082 - narwhal-consensus-address: /ip4/127.0.0.1/tcp/8083/http - - name: validator-4 - account-key: ACfae1xB9WlL4aSAEbIeTzHSK70s6pUFK4MWerGsas0i - protocol-key: lwDow31chV6Qb3bqcHN5EjFVRf6MVttV94z4d4y5srrEz/Ljax/6RV3rHR65OfU1ExK8K5bX1gZ6q8pZgVUTPjWrRt3G8P1aD8hw0gXFFYeE3Wx2+Y4P4r8H4LMcqriZ - worker-key: XpdNknObin/NdNWpBISwDdJxhSlyBVZ85Vn9AnVzxtY= - network-key: 7b8+yXq6rdRw7eToBWfCnYoDBPxDvTVeW6xyiK5u4HM= - stake: 1 - delegation: 0 - gas-price: 1 - network-address: /dns/dal2-iotaval-0.testnet.iota.io/tcp/8080/http - narwhal-primary-address: /dns/dal2-iotaval-0.testnet.iota.io/udp/8081 - narwhal-worker-address: /dns/dal2-iotaval-0.testnet.iota.io/udp/8082 - narwhal-consensus-address: /ip4/127.0.0.1/tcp/8083/http - - name: validator-18 - account-key: AE6+TGtd9SgOFPJh7sswMd8YDf7G080NeGYwzuIS3/zM - protocol-key: l/fjESkdgYtdwiEnTNEEltgjImpW5k5CIwnq3YHSAlXW2wATYAf+U0CwYHIbFelxC4XpuDZJTMUDp/B1q7lbMms/EuUmHvP59uz3ysNMERt0w+kDDIcdN45yPhJJOTwq - worker-key: Qn3hFtZnGKB5NKeLsjAzb0+N6Nar2UpLeiUYcOBAaAs= - network-key: y3wT8cSNLo+flMsvseffK5fJC72J12ZrT6Tjy6wzQkM= - stake: 1 - delegation: 0 - gas-price: 1 - network-address: /dns/ty6-iotaval-2.testnet.iota.io/tcp/8080/http - narwhal-primary-address: /dns/ty6-iotaval-2.testnet.iota.io/udp/8081 - narwhal-worker-address: /dns/ty6-iotaval-2.testnet.iota.io/udp/8082 - narwhal-consensus-address: /ip4/127.0.0.1/tcp/8083/http - - name: validator-2 - account-key: AGhrMVMiJ67VCxth8gWXNFOLnFuNkIMjV0GK3EFBfaio - protocol-key: pGmknQNryWXOmxfNJ1L2IpVplX0kcjMpeHAcuRbxv6rlJt1N+96RWegxtf38mLWQFt2b+S8diM25yMFn4ox2YzAHShhhISz8ZzB38WPScV3xXGG0F5KyPXk0sLM1/vjx - worker-key: qolNIcgY6rYX64P5O4oF9ugXl3hPi6yUyZlV1SPjt+M= - network-key: Qn8Zhwld5x22fE1GwIg6Hain9iVRi+iam1RDgp8mvhk= - stake: 1 - delegation: 0 - gas-price: 1 - network-address: /dns/la2-iotaval-2.testnet.iota.io/tcp/8080/http - narwhal-primary-address: /dns/la2-iotaval-2.testnet.iota.io/udp/8081 - narwhal-worker-address: /dns/la2-iotaval-2.testnet.iota.io/udp/8082 - narwhal-consensus-address: /ip4/127.0.0.1/tcp/8083/http - - name: validator-11 - account-key: AK6LecW3y0UyqzCHu3lUgffRyhGrxEQPjaHRxCilP6Rp - protocol-key: pVydcYoBSOHxVnw2mOg8YXJyqpDYP+ksefqghJwr3OChJNTa3A2NkDaCRKGcvRm6DPiaqBu8qBUSAfjWE4KHfQIllc7qkWYsRfKi0RYQ3zTFYSjal93Am/cAI1q6QX59 - worker-key: PqUDf04k2xNSqR0u2pmaU7L23hIt8gO6B3NoYPsR+RA= - network-key: x/0p4eV6ZQOyRGv9K9hiiaN7TvSfk2AvCttMAVpOoMk= - stake: 1 - delegation: 0 - gas-price: 1 - network-address: /dns/ny2-iotaval-3.testnet.iota.io/tcp/8080/http - narwhal-primary-address: /dns/ny2-iotaval-3.testnet.iota.io/udp/8081 - narwhal-worker-address: /dns/ny2-iotaval-3.testnet.iota.io/udp/8082 - narwhal-consensus-address: /ip4/127.0.0.1/tcp/8083/http - - name: validator-16 - account-key: AImuNvQVTUSNUQrsBSi7dzT+a+wVsSQM5fQMfdQ1CTZ0 - protocol-key: qBvUTaWiYjKIledSoTM8rwt4C7dqCVFuUPyQBNDOOSa109JlgUafHGEIeOHrrUlCEnAwTiXs+s2JlwmyegQzJp2ECnbz4JRPzFqbBhS7VDJ7UfydXbq4KDt12q8yb5v4 - worker-key: XFw5/sTtKHd47+vpj7uvt+FkAyOq1FnvGS/7be6suoA= - network-key: EEqhzNCQ6/nPfCW7jLMKQS2TGb2dY2CHAme8mlEZGKY= - stake: 1 - delegation: 0 - gas-price: 1 - network-address: /dns/ty6-iotaval-0.testnet.iota.io/tcp/8080/http - narwhal-primary-address: /dns/ty6-iotaval-0.testnet.iota.io/udp/8081 - narwhal-worker-address: /dns/ty6-iotaval-0.testnet.iota.io/udp/8082 - narwhal-consensus-address: /ip4/127.0.0.1/tcp/8083/http - - name: validator-15 - account-key: AFDDthZ/GakRrsI2QZJ8gQFEt+fJvKwpJJoYm+p/NW07 - protocol-key: q5U/HPqV6OsFbc5gzr+FPRfBGqyHqO683epGiQ535TOEYRkSi3wZFFUdDfWId7ORD5EIYWj7ZtA4C8uPrP3XsbIQogNizEyDu3CwytSwtcTa4/bIvc8HK/0KoDnPNOG2 - worker-key: ydUPJzWYwe3RdAUo5zMZvyAattOKn+wfxwdrQTRpxqA= - network-key: rU4e5yh97eNS5nCaa7EbbqnJVMcHehybdtBlIZjSHdU= - stake: 1 - delegation: 0 - gas-price: 1 - network-address: /dns/mh1-iotaval-3.testnet.iota.io/tcp/8080/http - narwhal-primary-address: /dns/mh1-iotaval-3.testnet.iota.io/udp/8081 - narwhal-worker-address: /dns/mh1-iotaval-3.testnet.iota.io/udp/8082 - narwhal-consensus-address: /ip4/127.0.0.1/tcp/8083/http - - name: validator-5 - account-key: ALaZN89Ud2dli3QScggR+9+2CqSkct2f7qMXQ1osFaBd - protocol-key: rA3xsZLdYP8f1Jhdy/qaAZJTZ1XGza6P167xhffC9qd/ThVdV0K/Pg0t9g5TpYHoEygnvMO8oPyJA2+zwbutgCTRaM1z573NN3mtbjK57R+S7aqwZiN2kI7aoymX9oHs - worker-key: EgpJ/Hdk6X+H8jXxurlwR1EiIlDkryVCQ4HMrk72INQ= - network-key: twXGi96O3XWKERXGzu1Y03Rl6uUr+1Tqx9kGuGV+Gew= - stake: 1 - delegation: 0 - gas-price: 1 - network-address: /dns/dal2-iotaval-1.testnet.iota.io/tcp/8080/http - narwhal-primary-address: /dns/dal2-iotaval-1.testnet.iota.io/udp/8081 - narwhal-worker-address: /dns/dal2-iotaval-1.testnet.iota.io/udp/8082 - narwhal-consensus-address: /ip4/127.0.0.1/tcp/8083/http - - name: validator-19 - account-key: AFhY6i8XnpRoImndz7kj+M6mjIpZz1248oyO5Ou/ajG8 - protocol-key: rewCDjFrQpvCurd4M6cl1/icgJsGKombV1OAd0iyskXN4WqXZiP/V7xy7fNZfciwD2k0nl8uQCaLEPXsO/zBL0ZGr2n274JYVm8j4gOekJcUpdAQ3LWPqDh3pRsxBVE+ - worker-key: 7J91jtn+//gCHUPIi8Std5hhSFLs9snJhPbnHPueudc= - network-key: 3PKKDx6y6CzV0+eK9G3WvH/queuZe3byCYIOTYIkyiQ= - stake: 1 - delegation: 0 - gas-price: 1 - network-address: /dns/ty6-iotaval-3.testnet.iota.io/tcp/8080/http - narwhal-primary-address: /dns/ty6-iotaval-3.testnet.iota.io/udp/8081 - narwhal-worker-address: /dns/ty6-iotaval-3.testnet.iota.io/udp/8082 - narwhal-consensus-address: /ip4/127.0.0.1/tcp/8083/http - - name: validator-12 - account-key: AAYmiOgJnOyXfMPEwP49TUUUTw4dlIA/8IXeKEv8M4RK - protocol-key: sfQG62p+A88facvLw+lXcDh6TtSaeaRa3D8dhMJpLWgJZ4NRl2JFSaUlYHWwP+zVGSdbyLGm72426wv5cKnVkHM8cxhNvpZRq370bYHTfTAb34WJ2mxHiqx5pChHJp4E - worker-key: UEtOxAHp/invOWPV8Uuls3/46iLdKFJIGEb2zhJIsNs= - network-key: ibWn5j/N9BqepJXTWioH47A2u//ASB3Xug50e7jmJ80= - stake: 1 - delegation: 0 - gas-price: 1 - network-address: /dns/mh1-iotaval-0.testnet.iota.io/tcp/8080/http - narwhal-primary-address: /dns/mh1-iotaval-0.testnet.iota.io/udp/8081 - narwhal-worker-address: /dns/mh1-iotaval-0.testnet.iota.io/udp/8082 - narwhal-consensus-address: /ip4/127.0.0.1/tcp/8083/http - - name: validator-3 - account-key: AIyUji/hvun9TdRLQXpN8UNgn3sIjSosETJWkPSwDzHr - protocol-key: tH2JgU9S5IFnC17arEV0dn2sRlZmgaHpOAVQvIJfvXAnZTOLDwHzepPbFpp3i9g+DzUyeKWSh06N7jILNze8jdhLeZ1fumbu07GgmpL2vdYR3Qbxg64DpsKLPMeNi3V1 - worker-key: NM/63ks+HTfHnPSRKU7Yh9I0c5qTm1ajr4akXpBR5V0= - network-key: 5VuCiFi9kAK7QlsZBuymT9xsIG/sPoFcmjHoGn/CPgs= - stake: 1 - delegation: 0 - gas-price: 1 - network-address: /dns/la2-iotaval-3.testnet.iota.io/tcp/8080/http - narwhal-primary-address: /dns/la2-iotaval-3.testnet.iota.io/udp/8081 - narwhal-worker-address: /dns/la2-iotaval-3.testnet.iota.io/udp/8082 - narwhal-consensus-address: /ip4/127.0.0.1/tcp/8083/http - - name: validator-1 - account-key: AG+M0+OIB31YRR/FQKdzt7aP4qUPBQSMyCWK+Da9Zmax - protocol-key: tlb8KVZRWWJZQ6TmpE+5ZL05Vb0TTnCMbJ+kWX5GtcnpaeRiFqlUKiYM5npZCCWyFx8f1VwW5gfg8OejVRlo+weJr50yphZdA53GkbJiOWxSY58DSNTQINB/lEdOAeJQ - worker-key: xplIPV8w5ahH8UaWChJcPrkSVZAGtKwMXCWdT8lSaPU= - network-key: pZdlHJfW9hxT415bG8kusy7m4TDfW0gkNMsx3MVs73o= - stake: 1 - delegation: 0 - gas-price: 1 - network-address: /dns/la2-iotaval-1.testnet.iota.io/tcp/8080/http - narwhal-primary-address: /dns/la2-iotaval-1.testnet.iota.io/udp/8081 - narwhal-worker-address: /dns/la2-iotaval-1.testnet.iota.io/udp/8082 - narwhal-consensus-address: /ip4/127.0.0.1/tcp/8083/http - - name: validator-6 - account-key: AGq4caYZr20U1EM7WkRo6CYVuKfjWmda1b5AGdgaSN2s - protocol-key: t/ueFnCtZPsfXozjLmRwefOht+pyelCaTgctHqOomF5gd0MuXdDSvOCAH3yWiaIVBskY54766sEG0antAeAtJHRwKXHGo99RR5nRRxUbekTvq7T05TTpQxW1pi4Cr/5O - worker-key: MM7hhssxwhocxsg8ZrEYXjMggQsrWaiQzCZpkwv7ya8= - network-key: q1+yp6neJ0VYGcRFDDfarMM6XN+CwiNVmqfc7IElUNY= - stake: 1 - delegation: 0 - gas-price: 1 - network-address: /dns/dal2-iotaval-2.testnet.iota.io/tcp/8080/http - narwhal-primary-address: /dns/dal2-iotaval-2.testnet.iota.io/udp/8081 - narwhal-worker-address: /dns/dal2-iotaval-2.testnet.iota.io/udp/8082 - narwhal-consensus-address: /ip4/127.0.0.1/tcp/8083/http - - name: validator-0 - account-key: APlYeKnmB0RcPB5cYaII7aAvjjAt19cVt3d9eJBCQwjX - protocol-key: uQWpdXdUDiw5/MSyB56qIUZoCOApbKzuXE9MkgjekQsn6PPSLEIydbr16TVKm8ifADeZUnFeIQ39VwT3LBveXXS8ncRoBddREyR/S19AXGWigynhjLi5hNGCfFO+FWHS - worker-key: 6zvKuVVIhIgczd4Gf3AhWzdJyINtK8yxoVLxlUw3kSU= - network-key: 2tgtZR/dK2E9rEfdenqmLKxjqjH0jJV7CcT4ywRA6uw= - stake: 1 - delegation: 0 - gas-price: 1 - network-address: /dns/la2-iotaval-0.testnet.iota.io/tcp/8080/http - narwhal-primary-address: /dns/la2-iotaval-0.testnet.iota.io/udp/8081 - narwhal-worker-address: /dns/la2-iotaval-0.testnet.iota.io/udp/8082 - narwhal-consensus-address: /ip4/127.0.0.1/tcp/8083/http - send_timeout: - secs: 30 - nanos: 0 - recv_timeout: - secs: 30 - nanos: 0 - buffer_size: 650000 - db_folder_path: /data/gateway_client_db +epoch: 0 +validator_set: + - name: validator-9 + account-key: AD0iV/PbGVBoPExdB+4wfprZLoS9N4ltb00p1MNnlm71 + protocol-key: getJQ17IvK3nYcHAOLZ1PDeQt5dNcxGGkCooW9AYo0fUNEu1C3Uo264SZBiEqhqUD3QcR018SpZkYYEntPS/B/I8QGRJFBa55O1GSGGNscJ3rOOArqGKM4cOBaJUF2nH + worker-key: RXzQ+WNIIcodae0f1AaRVg3qvzbySW4EYBUVf68VdzA= + network-key: OD73hNLl2wBqBrmcxG00r77V7Kgdi2fu4YpnoEJDyPs= + stake: 1 + delegation: 0 + gas-price: 1 + network-address: /dns/ny2-iotaval-1.testnet.iota.io/tcp/8080/http + narwhal-primary-address: /dns/ny2-iotaval-1.testnet.iota.io/udp/8081 + narwhal-worker-address: /dns/ny2-iotaval-1.testnet.iota.io/udp/8082 + narwhal-consensus-address: /ip4/127.0.0.1/tcp/8083/http + - name: validator-14 + account-key: APxJHKslYpWYWmMIlpKfzBTj9K5I84diueoJ4sWHwjmS + protocol-key: hUY69ZxcvuOaoY9AoazvEAsum2bS/61LZU7d88h/baYO5rBXFod3UeYC+wr0J51qF6JUpOaNk/E2OIFSbI1GoLUxu0AxIfe23ph+BLD3CbttFMbpqZa7Zza6DOHpjyok + worker-key: IrjezuU/lXLkyXkAUvWbKBGPLH5GCrJqCRYKTVc9nao= + network-key: pu7Q7oXG6GiRfoEcR7azVoWUVQC10gY7MLi3xVoYa0g= + stake: 1 + delegation: 0 + gas-price: 1 + network-address: /dns/mh1-iotaval-2.testnet.iota.io/tcp/8080/http + narwhal-primary-address: /dns/mh1-iotaval-2.testnet.iota.io/udp/8081 + narwhal-worker-address: /dns/mh1-iotaval-2.testnet.iota.io/udp/8082 + narwhal-consensus-address: /ip4/127.0.0.1/tcp/8083/http + - name: validator-13 + account-key: AF7odQ5Mwj8PBN/7LYTqyB/gS1OywSBOcKuCS/+VNyLd + protocol-key: iBNb7x9vyRov6hR/y0671JJ3gYTGWjDtSO8BLZ0FjZQkkQ3peXhjQZnVUe7VO8CnGN630twyg6zfBwS8CL51rV0UbsEJ0ZOn/4uwR/rq8PwMdod+Wf84AkGhbrZ0AUh4 + worker-key: H2uJQcpeBVF/cn5VBR3re7HZugsooxv2TeGfoctO6GE= + network-key: tgVQjD8k8ymbIdWYhi8VxjMw9FInsfh8xLd+4xhOIOE= + stake: 1 + delegation: 0 + gas-price: 1 + network-address: /dns/mh1-iotaval-1.testnet.iota.io/tcp/8080/http + narwhal-primary-address: /dns/mh1-iotaval-1.testnet.iota.io/udp/8081 + narwhal-worker-address: /dns/mh1-iotaval-1.testnet.iota.io/udp/8082 + narwhal-consensus-address: /ip4/127.0.0.1/tcp/8083/http + - name: validator-17 + account-key: AO6lcah9+F9DfVBwE5+30kmi8pkw7nHPeolO0LNIJUQi + protocol-key: iJOovXaLrS4FvmlpMnkCk0oEY79HrBPLxY+21WhK2sKsaTsAgjL4KnyXVbrb7nTOAm0z6CkdzT+hMmMw1E7csmK8dV8VjKpgaR66oMxcGDM2Rbu0XhqIx7uH3DpwYezp + worker-key: jdsdCfcvGNs5XxGk+jwNbOF6caMnaWvCGKOp0b4QslI= + network-key: qqL4hLWUa7bitFYj0k1uosnmKEEslk/o8shtOOJriWY= + stake: 1 + delegation: 0 + gas-price: 1 + network-address: /dns/ty6-iotaval-1.testnet.iota.io/tcp/8080/http + narwhal-primary-address: /dns/ty6-iotaval-1.testnet.iota.io/udp/8081 + narwhal-worker-address: /dns/ty6-iotaval-1.testnet.iota.io/udp/8082 + narwhal-consensus-address: /ip4/127.0.0.1/tcp/8083/http + - name: validator-10 + account-key: AEM7kl/d6VlBG1IgY+lHdxzudYT6ZhtXiYBh3kCxLZCq + protocol-key: iic7mlIKCwVxaqej7btkXo045aJYw6hgqpHZT+n25aqICuYCkc0PUXzZ2qSGTrUgDkhcyLKUpMPXjNCPw7AV3M+B+dPuKf6BVVo4Enj4KJe5SnoNOYRE7Ll01K9KfbWU + worker-key: +Ukw2HM7IYXyIxp9F2ZbBZMAQpIMN24fhzArm41CJy0= + network-key: IXFQDgUFO6XD+eqnCHf4aAR2HVdqKKM/7l13nlFIk+w= + stake: 1 + delegation: 0 + gas-price: 1 + network-address: /dns/ny2-iotaval-2.testnet.iota.io/tcp/8080/http + narwhal-primary-address: /dns/ny2-iotaval-2.testnet.iota.io/udp/8081 + narwhal-worker-address: /dns/ny2-iotaval-2.testnet.iota.io/udp/8082 + narwhal-consensus-address: /ip4/127.0.0.1/tcp/8083/http + - name: validator-7 + account-key: ALO4VmUJME24oEDq0tzE7MRi+83HZE3UCuLTVPIE4ZQK + protocol-key: krpOBB6E7P0N4jsUHBGFPSHX0UPoS6uFR1I/kKND+em8+cgrujsm31oygHdrKhUeDjq4UWUtCyxLoCczGLO/F1VUooI/J3iqzjN1RvkG7CiFriuU0L9GF7/l64U01DwN + worker-key: knT4d0Du6/s0qQWtIeAHI25gRjTXHQe4g0SK56LGtLw= + network-key: ZtPhPziNESJSElsa2y7GZWkc97kKPMrJTq1UldpxUoU= + stake: 1 + delegation: 0 + gas-price: 1 + network-address: /dns/dal2-iotaval-3.testnet.iota.io/tcp/8080/http + narwhal-primary-address: /dns/dal2-iotaval-3.testnet.iota.io/udp/8081 + narwhal-worker-address: /dns/dal2-iotaval-3.testnet.iota.io/udp/8082 + narwhal-consensus-address: /ip4/127.0.0.1/tcp/8083/http + - name: validator-8 + account-key: AJN7LZADOBBRulSlRjE0HJs3YR8I3WPwg2ejh4HbDmIS + protocol-key: ky1saTSmEpWC/F4MKypOBzJaNaqxHk7gTWkhDnJP0NMZG0vniS+3YIGtg/MsHPQXAVJkmj/rq9AgGNN/xxmUXd7iB/6xnldUSRfHDberjd9lr6zlG+oEtj9nmpLNA/Wd + worker-key: feBqPOJotxyv+jWKWvYGWw6/ISzP2dms9jhiy4Nbj4Q= + network-key: yfVmqGTyP3tutFvvrvklhafUJUCTmik+6u6zBRV3Vb4= + stake: 1 + delegation: 0 + gas-price: 1 + network-address: /dns/ny2-iotaval-0.testnet.iota.io/tcp/8080/http + narwhal-primary-address: /dns/ny2-iotaval-0.testnet.iota.io/udp/8081 + narwhal-worker-address: /dns/ny2-iotaval-0.testnet.iota.io/udp/8082 + narwhal-consensus-address: /ip4/127.0.0.1/tcp/8083/http + - name: validator-4 + account-key: ACfae1xB9WlL4aSAEbIeTzHSK70s6pUFK4MWerGsas0i + protocol-key: lwDow31chV6Qb3bqcHN5EjFVRf6MVttV94z4d4y5srrEz/Ljax/6RV3rHR65OfU1ExK8K5bX1gZ6q8pZgVUTPjWrRt3G8P1aD8hw0gXFFYeE3Wx2+Y4P4r8H4LMcqriZ + worker-key: XpdNknObin/NdNWpBISwDdJxhSlyBVZ85Vn9AnVzxtY= + network-key: 7b8+yXq6rdRw7eToBWfCnYoDBPxDvTVeW6xyiK5u4HM= + stake: 1 + delegation: 0 + gas-price: 1 + network-address: /dns/dal2-iotaval-0.testnet.iota.io/tcp/8080/http + narwhal-primary-address: /dns/dal2-iotaval-0.testnet.iota.io/udp/8081 + narwhal-worker-address: /dns/dal2-iotaval-0.testnet.iota.io/udp/8082 + narwhal-consensus-address: /ip4/127.0.0.1/tcp/8083/http + - name: validator-18 + account-key: AE6+TGtd9SgOFPJh7sswMd8YDf7G080NeGYwzuIS3/zM + protocol-key: l/fjESkdgYtdwiEnTNEEltgjImpW5k5CIwnq3YHSAlXW2wATYAf+U0CwYHIbFelxC4XpuDZJTMUDp/B1q7lbMms/EuUmHvP59uz3ysNMERt0w+kDDIcdN45yPhJJOTwq + worker-key: Qn3hFtZnGKB5NKeLsjAzb0+N6Nar2UpLeiUYcOBAaAs= + network-key: y3wT8cSNLo+flMsvseffK5fJC72J12ZrT6Tjy6wzQkM= + stake: 1 + delegation: 0 + gas-price: 1 + network-address: /dns/ty6-iotaval-2.testnet.iota.io/tcp/8080/http + narwhal-primary-address: /dns/ty6-iotaval-2.testnet.iota.io/udp/8081 + narwhal-worker-address: /dns/ty6-iotaval-2.testnet.iota.io/udp/8082 + narwhal-consensus-address: /ip4/127.0.0.1/tcp/8083/http + - name: validator-2 + account-key: AGhrMVMiJ67VCxth8gWXNFOLnFuNkIMjV0GK3EFBfaio + protocol-key: pGmknQNryWXOmxfNJ1L2IpVplX0kcjMpeHAcuRbxv6rlJt1N+96RWegxtf38mLWQFt2b+S8diM25yMFn4ox2YzAHShhhISz8ZzB38WPScV3xXGG0F5KyPXk0sLM1/vjx + worker-key: qolNIcgY6rYX64P5O4oF9ugXl3hPi6yUyZlV1SPjt+M= + network-key: Qn8Zhwld5x22fE1GwIg6Hain9iVRi+iam1RDgp8mvhk= + stake: 1 + delegation: 0 + gas-price: 1 + network-address: /dns/la2-iotaval-2.testnet.iota.io/tcp/8080/http + narwhal-primary-address: /dns/la2-iotaval-2.testnet.iota.io/udp/8081 + narwhal-worker-address: /dns/la2-iotaval-2.testnet.iota.io/udp/8082 + narwhal-consensus-address: /ip4/127.0.0.1/tcp/8083/http + - name: validator-11 + account-key: AK6LecW3y0UyqzCHu3lUgffRyhGrxEQPjaHRxCilP6Rp + protocol-key: pVydcYoBSOHxVnw2mOg8YXJyqpDYP+ksefqghJwr3OChJNTa3A2NkDaCRKGcvRm6DPiaqBu8qBUSAfjWE4KHfQIllc7qkWYsRfKi0RYQ3zTFYSjal93Am/cAI1q6QX59 + worker-key: PqUDf04k2xNSqR0u2pmaU7L23hIt8gO6B3NoYPsR+RA= + network-key: x/0p4eV6ZQOyRGv9K9hiiaN7TvSfk2AvCttMAVpOoMk= + stake: 1 + delegation: 0 + gas-price: 1 + network-address: /dns/ny2-iotaval-3.testnet.iota.io/tcp/8080/http + narwhal-primary-address: /dns/ny2-iotaval-3.testnet.iota.io/udp/8081 + narwhal-worker-address: /dns/ny2-iotaval-3.testnet.iota.io/udp/8082 + narwhal-consensus-address: /ip4/127.0.0.1/tcp/8083/http + - name: validator-16 + account-key: AImuNvQVTUSNUQrsBSi7dzT+a+wVsSQM5fQMfdQ1CTZ0 + protocol-key: qBvUTaWiYjKIledSoTM8rwt4C7dqCVFuUPyQBNDOOSa109JlgUafHGEIeOHrrUlCEnAwTiXs+s2JlwmyegQzJp2ECnbz4JRPzFqbBhS7VDJ7UfydXbq4KDt12q8yb5v4 + worker-key: XFw5/sTtKHd47+vpj7uvt+FkAyOq1FnvGS/7be6suoA= + network-key: EEqhzNCQ6/nPfCW7jLMKQS2TGb2dY2CHAme8mlEZGKY= + stake: 1 + delegation: 0 + gas-price: 1 + network-address: /dns/ty6-iotaval-0.testnet.iota.io/tcp/8080/http + narwhal-primary-address: /dns/ty6-iotaval-0.testnet.iota.io/udp/8081 + narwhal-worker-address: /dns/ty6-iotaval-0.testnet.iota.io/udp/8082 + narwhal-consensus-address: /ip4/127.0.0.1/tcp/8083/http + - name: validator-15 + account-key: AFDDthZ/GakRrsI2QZJ8gQFEt+fJvKwpJJoYm+p/NW07 + protocol-key: q5U/HPqV6OsFbc5gzr+FPRfBGqyHqO683epGiQ535TOEYRkSi3wZFFUdDfWId7ORD5EIYWj7ZtA4C8uPrP3XsbIQogNizEyDu3CwytSwtcTa4/bIvc8HK/0KoDnPNOG2 + worker-key: ydUPJzWYwe3RdAUo5zMZvyAattOKn+wfxwdrQTRpxqA= + network-key: rU4e5yh97eNS5nCaa7EbbqnJVMcHehybdtBlIZjSHdU= + stake: 1 + delegation: 0 + gas-price: 1 + network-address: /dns/mh1-iotaval-3.testnet.iota.io/tcp/8080/http + narwhal-primary-address: /dns/mh1-iotaval-3.testnet.iota.io/udp/8081 + narwhal-worker-address: /dns/mh1-iotaval-3.testnet.iota.io/udp/8082 + narwhal-consensus-address: /ip4/127.0.0.1/tcp/8083/http + - name: validator-5 + account-key: ALaZN89Ud2dli3QScggR+9+2CqSkct2f7qMXQ1osFaBd + protocol-key: rA3xsZLdYP8f1Jhdy/qaAZJTZ1XGza6P167xhffC9qd/ThVdV0K/Pg0t9g5TpYHoEygnvMO8oPyJA2+zwbutgCTRaM1z573NN3mtbjK57R+S7aqwZiN2kI7aoymX9oHs + worker-key: EgpJ/Hdk6X+H8jXxurlwR1EiIlDkryVCQ4HMrk72INQ= + network-key: twXGi96O3XWKERXGzu1Y03Rl6uUr+1Tqx9kGuGV+Gew= + stake: 1 + delegation: 0 + gas-price: 1 + network-address: /dns/dal2-iotaval-1.testnet.iota.io/tcp/8080/http + narwhal-primary-address: /dns/dal2-iotaval-1.testnet.iota.io/udp/8081 + narwhal-worker-address: /dns/dal2-iotaval-1.testnet.iota.io/udp/8082 + narwhal-consensus-address: /ip4/127.0.0.1/tcp/8083/http + - name: validator-19 + account-key: AFhY6i8XnpRoImndz7kj+M6mjIpZz1248oyO5Ou/ajG8 + protocol-key: rewCDjFrQpvCurd4M6cl1/icgJsGKombV1OAd0iyskXN4WqXZiP/V7xy7fNZfciwD2k0nl8uQCaLEPXsO/zBL0ZGr2n274JYVm8j4gOekJcUpdAQ3LWPqDh3pRsxBVE+ + worker-key: 7J91jtn+//gCHUPIi8Std5hhSFLs9snJhPbnHPueudc= + network-key: 3PKKDx6y6CzV0+eK9G3WvH/queuZe3byCYIOTYIkyiQ= + stake: 1 + delegation: 0 + gas-price: 1 + network-address: /dns/ty6-iotaval-3.testnet.iota.io/tcp/8080/http + narwhal-primary-address: /dns/ty6-iotaval-3.testnet.iota.io/udp/8081 + narwhal-worker-address: /dns/ty6-iotaval-3.testnet.iota.io/udp/8082 + narwhal-consensus-address: /ip4/127.0.0.1/tcp/8083/http + - name: validator-12 + account-key: AAYmiOgJnOyXfMPEwP49TUUUTw4dlIA/8IXeKEv8M4RK + protocol-key: sfQG62p+A88facvLw+lXcDh6TtSaeaRa3D8dhMJpLWgJZ4NRl2JFSaUlYHWwP+zVGSdbyLGm72426wv5cKnVkHM8cxhNvpZRq370bYHTfTAb34WJ2mxHiqx5pChHJp4E + worker-key: UEtOxAHp/invOWPV8Uuls3/46iLdKFJIGEb2zhJIsNs= + network-key: ibWn5j/N9BqepJXTWioH47A2u//ASB3Xug50e7jmJ80= + stake: 1 + delegation: 0 + gas-price: 1 + network-address: /dns/mh1-iotaval-0.testnet.iota.io/tcp/8080/http + narwhal-primary-address: /dns/mh1-iotaval-0.testnet.iota.io/udp/8081 + narwhal-worker-address: /dns/mh1-iotaval-0.testnet.iota.io/udp/8082 + narwhal-consensus-address: /ip4/127.0.0.1/tcp/8083/http + - name: validator-3 + account-key: AIyUji/hvun9TdRLQXpN8UNgn3sIjSosETJWkPSwDzHr + protocol-key: tH2JgU9S5IFnC17arEV0dn2sRlZmgaHpOAVQvIJfvXAnZTOLDwHzepPbFpp3i9g+DzUyeKWSh06N7jILNze8jdhLeZ1fumbu07GgmpL2vdYR3Qbxg64DpsKLPMeNi3V1 + worker-key: NM/63ks+HTfHnPSRKU7Yh9I0c5qTm1ajr4akXpBR5V0= + network-key: 5VuCiFi9kAK7QlsZBuymT9xsIG/sPoFcmjHoGn/CPgs= + stake: 1 + delegation: 0 + gas-price: 1 + network-address: /dns/la2-iotaval-3.testnet.iota.io/tcp/8080/http + narwhal-primary-address: /dns/la2-iotaval-3.testnet.iota.io/udp/8081 + narwhal-worker-address: /dns/la2-iotaval-3.testnet.iota.io/udp/8082 + narwhal-consensus-address: /ip4/127.0.0.1/tcp/8083/http + - name: validator-1 + account-key: AG+M0+OIB31YRR/FQKdzt7aP4qUPBQSMyCWK+Da9Zmax + protocol-key: tlb8KVZRWWJZQ6TmpE+5ZL05Vb0TTnCMbJ+kWX5GtcnpaeRiFqlUKiYM5npZCCWyFx8f1VwW5gfg8OejVRlo+weJr50yphZdA53GkbJiOWxSY58DSNTQINB/lEdOAeJQ + worker-key: xplIPV8w5ahH8UaWChJcPrkSVZAGtKwMXCWdT8lSaPU= + network-key: pZdlHJfW9hxT415bG8kusy7m4TDfW0gkNMsx3MVs73o= + stake: 1 + delegation: 0 + gas-price: 1 + network-address: /dns/la2-iotaval-1.testnet.iota.io/tcp/8080/http + narwhal-primary-address: /dns/la2-iotaval-1.testnet.iota.io/udp/8081 + narwhal-worker-address: /dns/la2-iotaval-1.testnet.iota.io/udp/8082 + narwhal-consensus-address: /ip4/127.0.0.1/tcp/8083/http + - name: validator-6 + account-key: AGq4caYZr20U1EM7WkRo6CYVuKfjWmda1b5AGdgaSN2s + protocol-key: t/ueFnCtZPsfXozjLmRwefOht+pyelCaTgctHqOomF5gd0MuXdDSvOCAH3yWiaIVBskY54766sEG0antAeAtJHRwKXHGo99RR5nRRxUbekTvq7T05TTpQxW1pi4Cr/5O + worker-key: MM7hhssxwhocxsg8ZrEYXjMggQsrWaiQzCZpkwv7ya8= + network-key: q1+yp6neJ0VYGcRFDDfarMM6XN+CwiNVmqfc7IElUNY= + stake: 1 + delegation: 0 + gas-price: 1 + network-address: /dns/dal2-iotaval-2.testnet.iota.io/tcp/8080/http + narwhal-primary-address: /dns/dal2-iotaval-2.testnet.iota.io/udp/8081 + narwhal-worker-address: /dns/dal2-iotaval-2.testnet.iota.io/udp/8082 + narwhal-consensus-address: /ip4/127.0.0.1/tcp/8083/http + - name: validator-0 + account-key: APlYeKnmB0RcPB5cYaII7aAvjjAt19cVt3d9eJBCQwjX + protocol-key: uQWpdXdUDiw5/MSyB56qIUZoCOApbKzuXE9MkgjekQsn6PPSLEIydbr16TVKm8ifADeZUnFeIQ39VwT3LBveXXS8ncRoBddREyR/S19AXGWigynhjLi5hNGCfFO+FWHS + worker-key: 6zvKuVVIhIgczd4Gf3AhWzdJyINtK8yxoVLxlUw3kSU= + network-key: 2tgtZR/dK2E9rEfdenqmLKxjqjH0jJV7CcT4ywRA6uw= + stake: 1 + delegation: 0 + gas-price: 1 + network-address: /dns/la2-iotaval-0.testnet.iota.io/tcp/8080/http + narwhal-primary-address: /dns/la2-iotaval-0.testnet.iota.io/udp/8081 + narwhal-worker-address: /dns/la2-iotaval-0.testnet.iota.io/udp/8082 + narwhal-consensus-address: /ip4/127.0.0.1/tcp/8083/http +send_timeout: + secs: 30 + nanos: 0 +recv_timeout: + secs: 30 + nanos: 0 +buffer_size: 650000 +db_folder_path: /data/gateway_client_db diff --git a/crates/iota-core/tests/staged/iota.yaml b/crates/iota-core/tests/staged/iota.yaml index 3bf92815236..58c1d83208c 100644 --- a/crates/iota-core/tests/staged/iota.yaml +++ b/crates/iota-core/tests/staged/iota.yaml @@ -5,11 +5,11 @@ AccountAddress: SIZE: 32 ActiveJwk: STRUCT: - - jwk_id: - TYPENAME: JwkId - - jwk: - TYPENAME: JWK - - epoch: U64 + - jwk_id: + TYPENAME: JwkId + - jwk: + TYPENAME: JWK + - epoch: U64 Argument: ENUM: 0: @@ -23,22 +23,22 @@ Argument: 3: NestedResult: TUPLE: - - U16 - - U16 + - U16 + - U16 AuthenticatorStateExpire: STRUCT: - - min_epoch: U64 - - authenticator_obj_initial_shared_version: - TYPENAME: SequenceNumber + - min_epoch: U64 + - authenticator_obj_initial_shared_version: + TYPENAME: SequenceNumber AuthenticatorStateUpdate: STRUCT: - - epoch: U64 - - round: U64 - - new_active_jwks: - SEQ: - TYPENAME: ActiveJwk - - authenticator_obj_initial_shared_version: - TYPENAME: SequenceNumber + - epoch: U64 + - round: U64 + - new_active_jwks: + SEQ: + TYPENAME: ActiveJwk + - authenticator_obj_initial_shared_version: + TYPENAME: SequenceNumber AuthorityPublicKeyBytes: NEWTYPESTRUCT: BYTES CallArg: @@ -53,22 +53,22 @@ CallArg: TYPENAME: ObjectArg ChangeEpoch: STRUCT: - - epoch: U64 - - protocol_version: - TYPENAME: ProtocolVersion - - storage_charge: U64 - - computation_charge: U64 - - storage_rebate: U64 - - non_refundable_storage_fee: U64 - - epoch_start_timestamp_ms: U64 - - system_packages: - SEQ: - TUPLE: - - TYPENAME: SequenceNumber - - SEQ: - SEQ: U8 - - SEQ: - TYPENAME: ObjectID + - epoch: U64 + - protocol_version: + TYPENAME: ProtocolVersion + - storage_charge: U64 + - computation_charge: U64 + - storage_rebate: U64 + - non_refundable_storage_fee: U64 + - epoch_start_timestamp_ms: U64 + - system_packages: + SEQ: + TUPLE: + - TYPENAME: SequenceNumber + - SEQ: + SEQ: U8 + - SEQ: + TYPENAME: ObjectID CheckpointCommitment: ENUM: 0: @@ -86,37 +86,37 @@ CheckpointContentsDigest: TYPENAME: Digest CheckpointContentsV1: STRUCT: - - transactions: - SEQ: - TYPENAME: ExecutionDigests - - user_signatures: - SEQ: + - transactions: SEQ: - TYPENAME: GenericSignature + TYPENAME: ExecutionDigests + - user_signatures: + SEQ: + SEQ: + TYPENAME: GenericSignature CheckpointDigest: NEWTYPESTRUCT: TYPENAME: Digest CheckpointSummary: STRUCT: - - epoch: U64 - - sequence_number: U64 - - network_total_transactions: U64 - - content_digest: - TYPENAME: CheckpointContentsDigest - - previous_digest: - OPTION: - TYPENAME: CheckpointDigest - - epoch_rolling_gas_cost_summary: - TYPENAME: GasCostSummary - - timestamp_ms: U64 - - checkpoint_commitments: - SEQ: - TYPENAME: CheckpointCommitment - - end_of_epoch_data: - OPTION: - TYPENAME: EndOfEpochData - - version_specific_data: - SEQ: U8 + - epoch: U64 + - sequence_number: U64 + - network_total_transactions: U64 + - content_digest: + TYPENAME: CheckpointContentsDigest + - previous_digest: + OPTION: + TYPENAME: CheckpointDigest + - epoch_rolling_gas_cost_summary: + TYPENAME: GasCostSummary + - timestamp_ms: U64 + - checkpoint_commitments: + SEQ: + TYPENAME: CheckpointCommitment + - end_of_epoch_data: + OPTION: + TYPENAME: EndOfEpochData + - version_specific_data: + SEQ: U8 Command: ENUM: 0: @@ -126,44 +126,44 @@ Command: 1: TransferObjects: TUPLE: - - SEQ: - TYPENAME: Argument - - TYPENAME: Argument + - SEQ: + TYPENAME: Argument + - TYPENAME: Argument 2: SplitCoins: TUPLE: - - TYPENAME: Argument - - SEQ: - TYPENAME: Argument + - TYPENAME: Argument + - SEQ: + TYPENAME: Argument 3: MergeCoins: TUPLE: - - TYPENAME: Argument - - SEQ: - TYPENAME: Argument + - TYPENAME: Argument + - SEQ: + TYPENAME: Argument 4: Publish: TUPLE: - - SEQ: - SEQ: U8 - - SEQ: - TYPENAME: ObjectID + - SEQ: + SEQ: U8 + - SEQ: + TYPENAME: ObjectID 5: MakeMoveVec: TUPLE: - - OPTION: - TYPENAME: TypeTag - - SEQ: - TYPENAME: Argument + - OPTION: + TYPENAME: TypeTag + - SEQ: + TYPENAME: Argument 6: Upgrade: TUPLE: - - SEQ: - SEQ: U8 - - SEQ: - TYPENAME: ObjectID - - TYPENAME: ObjectID - - TYPENAME: Argument + - SEQ: + SEQ: U8 + - SEQ: + TYPENAME: ObjectID + - TYPENAME: ObjectID + - TYPENAME: Argument CommandArgumentError: ENUM: 0: @@ -177,16 +177,16 @@ CommandArgumentError: 4: IndexOutOfBounds: STRUCT: - - idx: U16 + - idx: U16 5: SecondaryIndexOutOfBounds: STRUCT: - - result_idx: U16 - - secondary_idx: U16 + - result_idx: U16 + - secondary_idx: U16 6: InvalidResultArity: STRUCT: - - result_idx: U16 + - result_idx: U16 7: InvalidGasCoinUsage: UNIT 8: @@ -226,16 +226,16 @@ ConsensusCommitDigest: TYPENAME: Digest ConsensusCommitPrologue: STRUCT: - - epoch: U64 - - round: U64 - - commit_timestamp_ms: U64 + - epoch: U64 + - round: U64 + - commit_timestamp_ms: U64 ConsensusCommitPrologueV2: STRUCT: - - epoch: U64 - - round: U64 - - commit_timestamp_ms: U64 - - consensus_commit_digest: - TYPENAME: ConsensusCommitDigest + - epoch: U64 + - round: U64 + - commit_timestamp_ms: U64 + - consensus_commit_digest: + TYPENAME: ConsensusCommitDigest Data: ENUM: 0: @@ -258,33 +258,33 @@ Digest: NEWTYPESTRUCT: BYTES ECMHLiveObjectSetDigest: STRUCT: - - digest: - TYPENAME: Digest + - digest: + TYPENAME: Digest EffectsAuxDataDigest: NEWTYPESTRUCT: TYPENAME: Digest EffectsObjectChange: STRUCT: - - input_state: - TYPENAME: ObjectIn - - output_state: - TYPENAME: ObjectOut - - id_operation: - TYPENAME: IDOperation + - input_state: + TYPENAME: ObjectIn + - output_state: + TYPENAME: ObjectOut + - id_operation: + TYPENAME: IDOperation EmptySignInfo: STRUCT: [] EndOfEpochData: STRUCT: - - nextEpochCommittee: - SEQ: - TUPLE: - - TYPENAME: AuthorityPublicKeyBytes - - U64 - - nextEpochProtocolVersion: - TYPENAME: ProtocolVersion - - epochCommitments: - SEQ: - TYPENAME: CheckpointCommitment + - nextEpochCommittee: + SEQ: + TUPLE: + - TYPENAME: AuthorityPublicKeyBytes + - U64 + - nextEpochProtocolVersion: + TYPENAME: ProtocolVersion + - epochCommitments: + SEQ: + TYPENAME: CheckpointCommitment EndOfEpochTransactionKind: ENUM: 0: @@ -303,22 +303,22 @@ EndOfEpochTransactionKind: DenyListStateCreate: UNIT Envelope: STRUCT: - - data: - TYPENAME: SenderSignedData - - auth_signature: - TYPENAME: EmptySignInfo + - data: + TYPENAME: SenderSignedData + - auth_signature: + TYPENAME: EmptySignInfo ExecutionData: STRUCT: - - transaction: - TYPENAME: Envelope - - effects: - TYPENAME: TransactionEffects + - transaction: + TYPENAME: Envelope + - effects: + TYPENAME: TransactionEffects ExecutionDigests: STRUCT: - - transaction: - TYPENAME: TransactionDigest - - effects: - TYPENAME: TransactionEffectsDigest + - transaction: + TYPENAME: TransactionDigest + - effects: + TYPENAME: TransactionEffectsDigest ExecutionFailureStatus: ENUM: 0: @@ -332,18 +332,18 @@ ExecutionFailureStatus: 4: MoveObjectTooBig: STRUCT: - - object_size: U64 - - max_object_size: U64 + - object_size: U64 + - max_object_size: U64 5: MovePackageTooBig: STRUCT: - - object_size: U64 - - max_object_size: U64 + - object_size: U64 + - max_object_size: U64 6: CircularObjectOwnership: STRUCT: - - object: - TYPENAME: ObjectID + - object: + TYPENAME: ObjectID 7: InsufficientCoinBalance: UNIT 8: @@ -359,8 +359,8 @@ ExecutionFailureStatus: 12: MoveAbort: TUPLE: - - TYPENAME: MoveLocation - - U64 + - TYPENAME: MoveLocation + - U64 13: VMVerificationOrDeserializationError: UNIT 14: @@ -376,31 +376,31 @@ ExecutionFailureStatus: 19: CommandArgumentError: STRUCT: - - arg_idx: U16 - - kind: - TYPENAME: CommandArgumentError + - arg_idx: U16 + - kind: + TYPENAME: CommandArgumentError 20: TypeArgumentError: STRUCT: - - argument_idx: U16 - - kind: - TYPENAME: TypeArgumentError + - argument_idx: U16 + - kind: + TYPENAME: TypeArgumentError 21: UnusedValueWithoutDrop: STRUCT: - - result_idx: U16 - - secondary_idx: U16 + - result_idx: U16 + - secondary_idx: U16 22: InvalidPublicFunctionReturnType: STRUCT: - - idx: U16 + - idx: U16 23: InvalidTransferObject: UNIT 24: EffectsTooLarge: STRUCT: - - current_size: U64 - - max_size: U64 + - current_size: U64 + - max_size: U64 25: PublishUpgradeMissingDependency: UNIT 26: @@ -408,13 +408,13 @@ ExecutionFailureStatus: 27: PackageUpgradeError: STRUCT: - - upgrade_error: - TYPENAME: PackageUpgradeError + - upgrade_error: + TYPENAME: PackageUpgradeError 28: WrittenObjectsTooLarge: STRUCT: - - current_size: U64 - - max_size: U64 + - current_size: U64 + - max_size: U64 29: CertificateDenied: UNIT 30: @@ -430,37 +430,37 @@ ExecutionStatus: 1: Failure: STRUCT: - - error: - TYPENAME: ExecutionFailureStatus - - command: - OPTION: U64 + - error: + TYPENAME: ExecutionFailureStatus + - command: + OPTION: U64 FullCheckpointContents: STRUCT: - - transactions: - SEQ: - TYPENAME: ExecutionData - - user_signatures: - SEQ: + - transactions: SEQ: - TYPENAME: GenericSignature + TYPENAME: ExecutionData + - user_signatures: + SEQ: + SEQ: + TYPENAME: GenericSignature GasCostSummary: STRUCT: - - computationCost: U64 - - storageCost: U64 - - storageRebate: U64 - - nonRefundableStorageFee: U64 + - computationCost: U64 + - storageCost: U64 + - storageRebate: U64 + - nonRefundableStorageFee: U64 GasData: STRUCT: - - payment: - SEQ: - TUPLE: - - TYPENAME: ObjectID - - TYPENAME: SequenceNumber - - TYPENAME: ObjectDigest - - owner: - TYPENAME: IotaAddress - - price: U64 - - budget: U64 + - payment: + SEQ: + TUPLE: + - TYPENAME: ObjectID + - TYPENAME: SequenceNumber + - TYPENAME: ObjectDigest + - owner: + TYPENAME: IotaAddress + - price: U64 + - budget: U64 GenericSignature: NEWTYPESTRUCT: SEQ: U8 @@ -469,15 +469,15 @@ GenesisObject: 0: RawObject: STRUCT: - - data: - TYPENAME: Data - - owner: - TYPENAME: Owner + - data: + TYPENAME: Data + - owner: + TYPENAME: Owner GenesisTransaction: STRUCT: - - objects: - SEQ: - TYPENAME: GenesisObject + - objects: + SEQ: + TYPENAME: GenesisObject IDOperation: ENUM: 0: @@ -490,15 +490,15 @@ Identifier: NEWTYPESTRUCT: STR Intent: STRUCT: - - scope: U8 - - version: U8 - - app_id: U8 + - scope: U8 + - version: U8 + - app_id: U8 IntentMessage: STRUCT: - - intent: - TYPENAME: Intent - - value: - TYPENAME: TransactionData + - intent: + TYPENAME: Intent + - value: + TYPENAME: TransactionData IotaAddress: NEWTYPESTRUCT: TUPLEARRAY: @@ -506,40 +506,40 @@ IotaAddress: SIZE: 32 JWK: STRUCT: - - kty: STR - - e: STR - - n: STR - - alg: STR + - kty: STR + - e: STR + - n: STR + - alg: STR JwkId: STRUCT: - - iss: STR - - kid: STR + - iss: STR + - kid: STR ModuleId: STRUCT: - - address: - TYPENAME: AccountAddress - - name: - TYPENAME: Identifier + - address: + TYPENAME: AccountAddress + - name: + TYPENAME: Identifier MoveLocation: STRUCT: - - module: - TYPENAME: ModuleId - - function: U16 - - instruction: U16 - - function_name: - OPTION: STR + - module: + TYPENAME: ModuleId + - function: U16 + - instruction: U16 + - function_name: + OPTION: STR MoveLocationOpt: NEWTYPESTRUCT: OPTION: TYPENAME: MoveLocation MoveObject: STRUCT: - - type_: - TYPENAME: MoveObjectType - - has_public_transfer: BOOL - - version: - TYPENAME: SequenceNumber - - contents: BYTES + - type_: + TYPENAME: MoveObjectType + - has_public_transfer: BOOL + - version: + TYPENAME: SequenceNumber + - contents: BYTES MoveObjectType: NEWTYPESTRUCT: TYPENAME: MoveObjectType_ @@ -559,63 +559,63 @@ MoveObjectType_: TYPENAME: TypeTag MovePackage: STRUCT: - - id: - TYPENAME: ObjectID - - version: - TYPENAME: SequenceNumber - - module_map: - MAP: - KEY: STR - VALUE: BYTES - - type_origin_table: - SEQ: - TYPENAME: TypeOrigin - - linkage_table: - MAP: - KEY: - TYPENAME: ObjectID - VALUE: - TYPENAME: UpgradeInfo + - id: + TYPENAME: ObjectID + - version: + TYPENAME: SequenceNumber + - module_map: + MAP: + KEY: STR + VALUE: BYTES + - type_origin_table: + SEQ: + TYPENAME: TypeOrigin + - linkage_table: + MAP: + KEY: + TYPENAME: ObjectID + VALUE: + TYPENAME: UpgradeInfo MultiSig: STRUCT: - - sigs: - SEQ: - TYPENAME: CompressedSignature - - bitmap: U16 - - multisig_pk: - TYPENAME: MultiSigPublicKey + - sigs: + SEQ: + TYPENAME: CompressedSignature + - bitmap: U16 + - multisig_pk: + TYPENAME: MultiSigPublicKey MultiSigPublicKey: STRUCT: - - pk_map: - SEQ: - TUPLE: - - TYPENAME: PublicKey - - U8 - - threshold: U16 + - pk_map: + SEQ: + TUPLE: + - TYPENAME: PublicKey + - U8 + - threshold: U16 ObjectArg: ENUM: 0: ImmOrOwnedObject: NEWTYPE: TUPLE: - - TYPENAME: ObjectID - - TYPENAME: SequenceNumber - - TYPENAME: ObjectDigest + - TYPENAME: ObjectID + - TYPENAME: SequenceNumber + - TYPENAME: ObjectDigest 1: SharedObject: STRUCT: - - id: - TYPENAME: ObjectID - - initial_shared_version: - TYPENAME: SequenceNumber - - mutable: BOOL + - id: + TYPENAME: ObjectID + - initial_shared_version: + TYPENAME: SequenceNumber + - mutable: BOOL 2: Receiving: NEWTYPE: TUPLE: - - TYPENAME: ObjectID - - TYPENAME: SequenceNumber - - TYPENAME: ObjectDigest + - TYPENAME: ObjectID + - TYPENAME: SequenceNumber + - TYPENAME: ObjectDigest ObjectDigest: NEWTYPESTRUCT: TYPENAME: Digest @@ -630,10 +630,10 @@ ObjectIn: Exist: NEWTYPE: TUPLE: - - TUPLE: - - TYPENAME: SequenceNumber - - TYPENAME: ObjectDigest - - TYPENAME: Owner + - TUPLE: + - TYPENAME: SequenceNumber + - TYPENAME: ObjectDigest + - TYPENAME: Owner ObjectInfoRequestKind: ENUM: 0: @@ -650,14 +650,14 @@ ObjectOut: ObjectWrite: NEWTYPE: TUPLE: - - TYPENAME: ObjectDigest - - TYPENAME: Owner + - TYPENAME: ObjectDigest + - TYPENAME: Owner 2: PackageWrite: NEWTYPE: TUPLE: - - TYPENAME: SequenceNumber - - TYPENAME: ObjectDigest + - TYPENAME: SequenceNumber + - TYPENAME: ObjectDigest Owner: ENUM: 0: @@ -671,8 +671,8 @@ Owner: 2: Shared: STRUCT: - - initial_shared_version: - TYPENAME: SequenceNumber + - initial_shared_version: + TYPENAME: SequenceNumber 3: Immutable: UNIT PackageUpgradeError: @@ -680,53 +680,53 @@ PackageUpgradeError: 0: UnableToFetchPackage: STRUCT: - - package_id: - TYPENAME: ObjectID + - package_id: + TYPENAME: ObjectID 1: NotAPackage: STRUCT: - - object_id: - TYPENAME: ObjectID + - object_id: + TYPENAME: ObjectID 2: IncompatibleUpgrade: UNIT 3: DigestDoesNotMatch: STRUCT: - - digest: - SEQ: U8 + - digest: + SEQ: U8 4: UnknownUpgradePolicy: STRUCT: - - policy: U8 + - policy: U8 5: PackageIDDoesNotMatch: STRUCT: - - package_id: - TYPENAME: ObjectID - - ticket_id: - TYPENAME: ObjectID + - package_id: + TYPENAME: ObjectID + - ticket_id: + TYPENAME: ObjectID ProgrammableMoveCall: STRUCT: - - package: - TYPENAME: ObjectID - - module: - TYPENAME: Identifier - - function: - TYPENAME: Identifier - - type_arguments: - SEQ: - TYPENAME: TypeTag - - arguments: - SEQ: - TYPENAME: Argument + - package: + TYPENAME: ObjectID + - module: + TYPENAME: Identifier + - function: + TYPENAME: Identifier + - type_arguments: + SEQ: + TYPENAME: TypeTag + - arguments: + SEQ: + TYPENAME: Argument ProgrammableTransaction: STRUCT: - - inputs: - SEQ: - TYPENAME: CallArg - - commands: - SEQ: - TYPENAME: Command + - inputs: + SEQ: + TYPENAME: CallArg + - commands: + SEQ: + TYPENAME: Command ProtocolVersion: NEWTYPESTRUCT: U64 PublicKey: @@ -757,37 +757,37 @@ RandomnessRound: NEWTYPESTRUCT: U64 RandomnessStateUpdate: STRUCT: - - epoch: U64 - - randomness_round: - TYPENAME: RandomnessRound - - random_bytes: - SEQ: U8 - - randomness_obj_initial_shared_version: - TYPENAME: SequenceNumber + - epoch: U64 + - randomness_round: + TYPENAME: RandomnessRound + - random_bytes: + SEQ: U8 + - randomness_obj_initial_shared_version: + TYPENAME: SequenceNumber SenderSignedData: NEWTYPESTRUCT: SEQ: TYPENAME: SenderSignedTransaction SenderSignedTransaction: STRUCT: - - intent_message: - TYPENAME: IntentMessage - - tx_signatures: - SEQ: - TYPENAME: GenericSignature + - intent_message: + TYPENAME: IntentMessage + - tx_signatures: + SEQ: + TYPENAME: GenericSignature SequenceNumber: NEWTYPESTRUCT: U64 StructTag: STRUCT: - - address: - TYPENAME: AccountAddress - - module: - TYPENAME: Identifier - - name: - TYPENAME: Identifier - - type_args: - SEQ: - TYPENAME: TypeTag + - address: + TYPENAME: AccountAddress + - module: + TYPENAME: Identifier + - name: + TYPENAME: Identifier + - type_args: + SEQ: + TYPENAME: TypeTag TransactionData: ENUM: 0: @@ -796,14 +796,14 @@ TransactionData: TYPENAME: TransactionDataV1 TransactionDataV1: STRUCT: - - kind: - TYPENAME: TransactionKind - - sender: - TYPENAME: IotaAddress - - gas_data: - TYPENAME: GasData - - expiration: - TYPENAME: TransactionExpiration + - kind: + TYPENAME: TransactionKind + - sender: + TYPENAME: IotaAddress + - gas_data: + TYPENAME: GasData + - expiration: + TYPENAME: TransactionExpiration TransactionDigest: NEWTYPESTRUCT: TYPENAME: Digest @@ -822,111 +822,111 @@ TransactionEffectsDigest: TYPENAME: Digest TransactionEffectsV1: STRUCT: - - status: - TYPENAME: ExecutionStatus - - executed_epoch: U64 - - gas_used: - TYPENAME: GasCostSummary - - modified_at_versions: - SEQ: - TUPLE: - - TYPENAME: ObjectID - - TYPENAME: SequenceNumber - - shared_objects: - SEQ: - TUPLE: - - TYPENAME: ObjectID - - TYPENAME: SequenceNumber - - TYPENAME: ObjectDigest - - transaction_digest: - TYPENAME: TransactionDigest - - created: - SEQ: - TUPLE: - - TUPLE: - - TYPENAME: ObjectID - - TYPENAME: SequenceNumber - - TYPENAME: ObjectDigest - - TYPENAME: Owner - - mutated: - SEQ: - TUPLE: - - TUPLE: - - TYPENAME: ObjectID - - TYPENAME: SequenceNumber - - TYPENAME: ObjectDigest - - TYPENAME: Owner - - unwrapped: - SEQ: - TUPLE: - - TUPLE: - - TYPENAME: ObjectID - - TYPENAME: SequenceNumber - - TYPENAME: ObjectDigest - - TYPENAME: Owner - - deleted: - SEQ: - TUPLE: - - TYPENAME: ObjectID - - TYPENAME: SequenceNumber - - TYPENAME: ObjectDigest - - unwrapped_then_deleted: - SEQ: - TUPLE: - - TYPENAME: ObjectID - - TYPENAME: SequenceNumber - - TYPENAME: ObjectDigest - - wrapped: - SEQ: - TUPLE: - - TYPENAME: ObjectID - - TYPENAME: SequenceNumber - - TYPENAME: ObjectDigest - - gas_object: - TUPLE: - - TUPLE: - - TYPENAME: ObjectID - - TYPENAME: SequenceNumber - - TYPENAME: ObjectDigest - - TYPENAME: Owner - - events_digest: - OPTION: - TYPENAME: TransactionEventsDigest - - dependencies: - SEQ: + - status: + TYPENAME: ExecutionStatus + - executed_epoch: U64 + - gas_used: + TYPENAME: GasCostSummary + - modified_at_versions: + SEQ: + TUPLE: + - TYPENAME: ObjectID + - TYPENAME: SequenceNumber + - shared_objects: + SEQ: + TUPLE: + - TYPENAME: ObjectID + - TYPENAME: SequenceNumber + - TYPENAME: ObjectDigest + - transaction_digest: TYPENAME: TransactionDigest + - created: + SEQ: + TUPLE: + - TUPLE: + - TYPENAME: ObjectID + - TYPENAME: SequenceNumber + - TYPENAME: ObjectDigest + - TYPENAME: Owner + - mutated: + SEQ: + TUPLE: + - TUPLE: + - TYPENAME: ObjectID + - TYPENAME: SequenceNumber + - TYPENAME: ObjectDigest + - TYPENAME: Owner + - unwrapped: + SEQ: + TUPLE: + - TUPLE: + - TYPENAME: ObjectID + - TYPENAME: SequenceNumber + - TYPENAME: ObjectDigest + - TYPENAME: Owner + - deleted: + SEQ: + TUPLE: + - TYPENAME: ObjectID + - TYPENAME: SequenceNumber + - TYPENAME: ObjectDigest + - unwrapped_then_deleted: + SEQ: + TUPLE: + - TYPENAME: ObjectID + - TYPENAME: SequenceNumber + - TYPENAME: ObjectDigest + - wrapped: + SEQ: + TUPLE: + - TYPENAME: ObjectID + - TYPENAME: SequenceNumber + - TYPENAME: ObjectDigest + - gas_object: + TUPLE: + - TUPLE: + - TYPENAME: ObjectID + - TYPENAME: SequenceNumber + - TYPENAME: ObjectDigest + - TYPENAME: Owner + - events_digest: + OPTION: + TYPENAME: TransactionEventsDigest + - dependencies: + SEQ: + TYPENAME: TransactionDigest TransactionEffectsV2: STRUCT: - - status: - TYPENAME: ExecutionStatus - - executed_epoch: U64 - - gas_used: - TYPENAME: GasCostSummary - - transaction_digest: - TYPENAME: TransactionDigest - - gas_object_index: - OPTION: U32 - - events_digest: - OPTION: - TYPENAME: TransactionEventsDigest - - dependencies: - SEQ: + - status: + TYPENAME: ExecutionStatus + - executed_epoch: U64 + - gas_used: + TYPENAME: GasCostSummary + - transaction_digest: TYPENAME: TransactionDigest - - lamport_version: - TYPENAME: SequenceNumber - - changed_objects: - SEQ: - TUPLE: - - TYPENAME: ObjectID - - TYPENAME: EffectsObjectChange - - unchanged_shared_objects: - SEQ: - TUPLE: - - TYPENAME: ObjectID - - TYPENAME: UnchangedSharedKind - - aux_data_digest: - OPTION: - TYPENAME: EffectsAuxDataDigest + - gas_object_index: + OPTION: U32 + - events_digest: + OPTION: + TYPENAME: TransactionEventsDigest + - dependencies: + SEQ: + TYPENAME: TransactionDigest + - lamport_version: + TYPENAME: SequenceNumber + - changed_objects: + SEQ: + TUPLE: + - TYPENAME: ObjectID + - TYPENAME: EffectsObjectChange + - unchanged_shared_objects: + SEQ: + TUPLE: + - TYPENAME: ObjectID + - TYPENAME: UnchangedSharedKind + - aux_data_digest: + OPTION: + TYPENAME: EffectsAuxDataDigest TransactionEventsDigest: NEWTYPESTRUCT: TYPENAME: Digest @@ -980,10 +980,10 @@ TypeArgumentError: ConstraintNotSatisfied: UNIT TypeOrigin: STRUCT: - - module_name: STR - - struct_name: STR - - package: - TYPENAME: ObjectID + - module_name: STR + - struct_name: STR + - package: + TYPENAME: ObjectID TypeTag: ENUM: 0: @@ -1035,8 +1035,8 @@ UnchangedSharedKind: ReadOnlyRoot: NEWTYPE: TUPLE: - - TYPENAME: SequenceNumber - - TYPENAME: ObjectDigest + - TYPENAME: SequenceNumber + - TYPENAME: ObjectDigest 1: MutateDeleted: NEWTYPE: @@ -1047,14 +1047,13 @@ UnchangedSharedKind: TYPENAME: SequenceNumber UpgradeInfo: STRUCT: - - upgraded_id: - TYPENAME: ObjectID - - upgraded_version: - TYPENAME: SequenceNumber + - upgraded_id: + TYPENAME: ObjectID + - upgraded_version: + TYPENAME: SequenceNumber ZkLoginAuthenticatorAsBytes: NEWTYPESTRUCT: SEQ: U8 ZkLoginPublicIdentifier: NEWTYPESTRUCT: SEQ: U8 - diff --git a/crates/iota-rosetta/docker/iota-rosetta-devnet/docker-compose.yaml b/crates/iota-rosetta/docker/iota-rosetta-devnet/docker-compose.yaml index 0d6f93d8137..bbaa6b150ff 100644 --- a/crates/iota-rosetta/docker/iota-rosetta-devnet/docker-compose.yaml +++ b/crates/iota-rosetta/docker/iota-rosetta-devnet/docker-compose.yaml @@ -14,8 +14,8 @@ services: - /bin/bash - -c - | - /usr/local/bin/iota-rosetta generate-rosetta-cli-config --env devnet & - /usr/local/bin/iota-rosetta start-online-server --env devnet --node-config fullnode.yaml + /usr/local/bin/iota-rosetta generate-rosetta-cli-config --env devnet & + /usr/local/bin/iota-rosetta start-online-server --env devnet --node-config fullnode.yaml stdin_open: true tty: true rosetta-offline: @@ -29,7 +29,7 @@ services: - /bin/bash - -c - | - /usr/local/bin/iota-rosetta start-offline-server --env devnet + /usr/local/bin/iota-rosetta start-offline-server --env devnet stdin_open: true tty: true volumes: diff --git a/crates/iota-rosetta/docker/iota-rosetta-devnet/remote/docker-compose.yaml b/crates/iota-rosetta/docker/iota-rosetta-devnet/remote/docker-compose.yaml index 28df2511e94..2f7705846d3 100644 --- a/crates/iota-rosetta/docker/iota-rosetta-devnet/remote/docker-compose.yaml +++ b/crates/iota-rosetta/docker/iota-rosetta-devnet/remote/docker-compose.yaml @@ -12,8 +12,8 @@ services: - /bin/bash - -c - | - /usr/local/bin/iota-rosetta generate-rosetta-cli-config --env devnet & - /usr/local/bin/iota-rosetta start-online-remote-server --env devnet --genesis-path genesis.blob --full-node-url https://fullnode.devnet.iota.io:443 + /usr/local/bin/iota-rosetta generate-rosetta-cli-config --env devnet & + /usr/local/bin/iota-rosetta start-online-remote-server --env devnet --genesis-path genesis.blob --full-node-url https://fullnode.devnet.iota.io:443 stdin_open: true tty: true rosetta-offline: @@ -27,7 +27,6 @@ services: - /bin/bash - -c - | - /usr/local/bin/iota-rosetta start-offline-server --env devnet + /usr/local/bin/iota-rosetta start-offline-server --env devnet stdin_open: true tty: true - diff --git a/crates/iota-rosetta/docker/iota-rosetta-local/docker-compose.yaml b/crates/iota-rosetta/docker/iota-rosetta-local/docker-compose.yaml index 4ab7519f366..471007fa021 100644 --- a/crates/iota-rosetta/docker/iota-rosetta-local/docker-compose.yaml +++ b/crates/iota-rosetta/docker/iota-rosetta-local/docker-compose.yaml @@ -11,7 +11,7 @@ services: - /bin/bash - -c - | - /usr/local/bin/iota start + /usr/local/bin/iota start rosetta-online: image: mysten/iota-rosetta-local ports: @@ -23,8 +23,8 @@ services: - /bin/bash - -c - | - /usr/local/bin/iota-rosetta generate-rosetta-cli-config & - /usr/local/bin/iota-rosetta start-online-remote-server --full-node-url http://iota-network:9000 + /usr/local/bin/iota-rosetta generate-rosetta-cli-config & + /usr/local/bin/iota-rosetta start-online-remote-server --full-node-url http://iota-network:9000 stdin_open: true tty: true rosetta-offline: @@ -37,4 +37,4 @@ services: - /bin/bash - -c - | - /usr/local/bin/iota-rosetta start-offline-server \ No newline at end of file + /usr/local/bin/iota-rosetta start-offline-server diff --git a/docker/fullnode-x/docker-compose.yaml b/docker/fullnode-x/docker-compose.yaml index c252a069dbe..4638e8c7fed 100644 --- a/docker/fullnode-x/docker-compose.yaml +++ b/docker/fullnode-x/docker-compose.yaml @@ -1,7 +1,6 @@ version: "3.9" services: - fullnode: build: context: ../.. diff --git a/docker/fullnode/docker-compose.yaml b/docker/fullnode/docker-compose.yaml index 2e2904fd6f8..96cf52f6ded 100644 --- a/docker/fullnode/docker-compose.yaml +++ b/docker/fullnode/docker-compose.yaml @@ -5,14 +5,18 @@ services: # Note: Update the tag to the latest version of mysten/iota-node for mainnet or testnet. image: mysten/iota-node:mainnet-v1.19.1 ports: - - "8080:8080" - - "8084:8084/udp" - - "9000:9000" - - "9184:9184" + - "8080:8080" + - "8084:8084/udp" + - "9000:9000" + - "9184:9184" volumes: - - ./fullnode-template.yaml:/opt/iota/config/fullnode.yaml:ro - - ./genesis.blob:/opt/iota/config/genesis.blob:ro - - ./iotadb:/opt/iota/db:rw - command: ["/opt/iota/bin/iota-node", "--config-path", "/opt/iota/config/fullnode.yaml"] + - ./fullnode-template.yaml:/opt/iota/config/fullnode.yaml:ro + - ./genesis.blob:/opt/iota/config/genesis.blob:ro + - ./iotadb:/opt/iota/db:rw + command: [ + "/opt/iota/bin/iota-node", + "--config-path", + "/opt/iota/config/fullnode.yaml", + ] volumes: iotadb: diff --git a/docker/grafana-local/dashboards/dashboard.yaml b/docker/grafana-local/dashboards/dashboard.yaml index 4c387ae1a8a..ff7db10a432 100644 --- a/docker/grafana-local/dashboards/dashboard.yaml +++ b/docker/grafana-local/dashboards/dashboard.yaml @@ -1,9 +1,9 @@ apiVersion: 1 providers: - - name: 'Prometheus' + - name: "Prometheus" orgId: 1 - folder: '' + folder: "" type: file disableDeletion: false editable: true diff --git a/docker/grafana-local/docker-compose.yaml b/docker/grafana-local/docker-compose.yaml index fd9834ca012..8e8a71e18a6 100644 --- a/docker/grafana-local/docker-compose.yaml +++ b/docker/grafana-local/docker-compose.yaml @@ -2,17 +2,17 @@ version: "3" services: tempo: image: grafana/tempo:latest - command: [ "-config.file=/etc/tempo.yaml" ] + command: ["-config.file=/etc/tempo.yaml"] volumes: - ./tempo.yaml:/etc/tempo.yaml - ${TMPDIR}/tempo-data:/tmp/tempo ports: - - "14268:14268" # jaeger ingest - - "3200:3200" # tempo + - "14268:14268" # jaeger ingest + - "3200:3200" # tempo - "9095:9095" # tempo grpc - - "4317:4317" # otlp grpc - - "4318:4318" # otlp http - - "9411:9411" # zipkin + - "4317:4317" # otlp grpc + - "4318:4318" # otlp http + - "9411:9411" # zipkin prometheus: image: prom/prometheus:latest @@ -47,9 +47,9 @@ services: - /sys:/host/sys:ro - /:/rootfs:ro command: - - '--path.procfs=/host/proc' - - '--path.rootfs=/rootfs' - - '--path.sysfs=/host/sys' - - '--collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($$|/)' + - "--path.procfs=/host/proc" + - "--path.rootfs=/rootfs" + - "--path.sysfs=/host/sys" + - "--collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($$|/)" ports: - - "9100:9100" \ No newline at end of file + - "9100:9100" diff --git a/docker/grafana-local/grafana-datasources.yaml b/docker/grafana-local/grafana-datasources.yaml index 4a3bc2c4e74..84c370d1bbd 100644 --- a/docker/grafana-local/grafana-datasources.yaml +++ b/docker/grafana-local/grafana-datasources.yaml @@ -1,30 +1,30 @@ apiVersion: 1 datasources: -- name: Prometheus - type: prometheus - uid: prometheus - access: proxy - orgId: 1 - url: http://prometheus:9090 - basicAuth: false - isDefault: false - version: 1 - editable: false - jsonData: - httpMethod: GET -- name: Tempo - type: tempo - access: proxy - orgId: 1 - url: http://tempo:3200 - basicAuth: false - isDefault: true - version: 1 - editable: false - apiVersion: 1 - uid: tempo - jsonData: - httpMethod: GET - serviceMap: - datasourceUid: prometheus + - name: Prometheus + type: prometheus + uid: prometheus + access: proxy + orgId: 1 + url: http://prometheus:9090 + basicAuth: false + isDefault: false + version: 1 + editable: false + jsonData: + httpMethod: GET + - name: Tempo + type: tempo + access: proxy + orgId: 1 + url: http://tempo:3200 + basicAuth: false + isDefault: true + version: 1 + editable: false + apiVersion: 1 + uid: tempo + jsonData: + httpMethod: GET + serviceMap: + datasourceUid: prometheus diff --git a/docker/grafana-local/tempo.yaml b/docker/grafana-local/tempo.yaml index de9ba3a3e11..3bb35ed21ec 100644 --- a/docker/grafana-local/tempo.yaml +++ b/docker/grafana-local/tempo.yaml @@ -9,11 +9,11 @@ query_frontend: duration_slo: 5s distributor: - receivers: # this configuration will listen on all ports and protocols that tempo is capable of. - jaeger: # the receives all come from the OpenTelemetry collector. more configuration information can - protocols: # be found there: https://github.com/open-telemetry/opentelemetry-collector/tree/main/receiver - thrift_http: # - grpc: # for a production deployment you should only enable the receivers you need! + receivers: # this configuration will listen on all ports and protocols that tempo is capable of. + jaeger: # the receives all come from the OpenTelemetry collector. more configuration information can + protocols: # be found there: https://github.com/open-telemetry/opentelemetry-collector/tree/main/receiver + thrift_http: # + grpc: # for a production deployment you should only enable the receivers you need! thrift_binary: thrift_compact: zipkin: @@ -24,11 +24,11 @@ distributor: opencensus: ingester: - max_block_duration: 5m # cut the headblock when this much time passes. this is being set for demo purposes and should probably be left alone normally + max_block_duration: 5m # cut the headblock when this much time passes. this is being set for demo purposes and should probably be left alone normally compactor: compaction: - block_retention: 1h # overall Tempo trace retention. set for demo purposes + block_retention: 1h # overall Tempo trace retention. set for demo purposes metrics_generator: registry: @@ -43,9 +43,9 @@ metrics_generator: storage: trace: - backend: local # backend configuration to use + backend: local # backend configuration to use wal: - path: /tmp/tempo/wal # where to store the wal locally + path: /tmp/tempo/wal # where to store the wal locally local: path: /tmp/tempo/blocks @@ -55,4 +55,3 @@ overrides: ingestion_rate_strategy: local ingestion_rate_limit_bytes: 1500000000 max_bytes_per_trace: 500000000 - diff --git a/docker/iota-private-network/configs/fullnodes/backup.yaml b/docker/iota-private-network/configs/fullnodes/backup.yaml index dda42022e91..22f49f4f9cc 100644 --- a/docker/iota-private-network/configs/fullnodes/backup.yaml +++ b/docker/iota-private-network/configs/fullnodes/backup.yaml @@ -53,4 +53,4 @@ state-archive-read-config: directory: "/opt/iota/archive" object-store-connection-limit: 20 concurrency: 5 - use-for-pruning-watermark: true \ No newline at end of file + use-for-pruning-watermark: true diff --git a/docker/iota-private-network/configs/fullnodes/fullnode.yaml b/docker/iota-private-network/configs/fullnodes/fullnode.yaml index 2be1ae4e5fb..0eec91dc0ba 100644 --- a/docker/iota-private-network/configs/fullnodes/fullnode.yaml +++ b/docker/iota-private-network/configs/fullnodes/fullnode.yaml @@ -21,4 +21,4 @@ authority-store-pruning-config: pruning-run-delay-seconds: 60 state-debug-dump-config: dump-file-directory: /opt/iota/state_debug_dump -enable-experimental-rest-api: true \ No newline at end of file +enable-experimental-rest-api: true diff --git a/docker/iota-private-network/configs/genesis-template.yaml b/docker/iota-private-network/configs/genesis-template.yaml index 73de21055bf..7475532dea0 100644 --- a/docker/iota-private-network/configs/genesis-template.yaml +++ b/docker/iota-private-network/configs/genesis-template.yaml @@ -1,55 +1,55 @@ accounts: -- address: '0xd59d79516a4ed5b6825e80826c075a12bdd2759aaeb901df2f427f5f880c8f60' - gas_amounts: - - 750000000000000000 - - 750000000000000000 -- address: '0x160ef6ce4f395208a12119c5011bf8d8ceb760e3159307c819bd0197d154d384' - gas_amounts: - - 20000000000000000 - - 20000000000000000 - - 20000000000000000 - - 20000000000000000 - - 20000000000000000 -- address: '0x7cc6ff19b379d305b8363d9549269e388b8c1515772253ed4c868ee80b149ca0' - gas_amounts: - - 750000000000000000 + - address: "0xd59d79516a4ed5b6825e80826c075a12bdd2759aaeb901df2f427f5f880c8f60" + gas_amounts: + - 750000000000000000 + - 750000000000000000 + - address: "0x160ef6ce4f395208a12119c5011bf8d8ceb760e3159307c819bd0197d154d384" + gas_amounts: + - 20000000000000000 + - 20000000000000000 + - 20000000000000000 + - 20000000000000000 + - 20000000000000000 + - address: "0x7cc6ff19b379d305b8363d9549269e388b8c1515772253ed4c868ee80b149ca0" + gas_amounts: + - 750000000000000000 parameters: allow_insertion_of_extra_objects: false epoch_duration_ms: 120000 validator_config_info: -- commission_rate: 0 - gas_price: 1000 - name: validator-1 - consensus_address: /ip4/127.0.0.1/tcp/8083/http - narwhal_primary_address: /dns/validator-1/udp/8081 - narwhal_worker_address: /dns/validator-1/udp/8082 - network_address: /dns/validator-1/tcp/8080/http - p2p_address: /dns/validator-1/udp/8084 - stake: 20000000000000000 -- commission_rate: 0 - gas_price: 1000 - name: validator-2 - consensus_address: /ip4/127.0.0.1/tcp/8083/http - narwhal_primary_address: /dns/validator-2/udp/8081 - narwhal_worker_address: /dns/validator-2/udp/8082 - network_address: /dns/validator-2/tcp/8080/http - p2p_address: /dns/validator-2/udp/8084 - stake: 20000000000000000 -- commission_rate: 0 - gas_price: 1000 - name: validator-3 - consensus_address: /ip4/127.0.0.1/tcp/8083/http - narwhal_primary_address: /dns/validator-3/udp/8081 - narwhal_worker_address: /dns/validator-3/udp/8082 - network_address: /dns/validator-3/tcp/8080/http - p2p_address: /dns/validator-3/udp/8084 - stake: 20000000000000000 -- commission_rate: 0 - gas_price: 1000 - name: validator-4 - consensus_address: /ip4/127.0.0.1/tcp/8083/http - narwhal_primary_address: /dns/validator-4/udp/8081 - narwhal_worker_address: /dns/validator-4/udp/8082 - network_address: /dns/validator-4/tcp/8080/http - p2p_address: /dns/validator-4/udp/8084 - stake: 20000000000000000 + - commission_rate: 0 + gas_price: 1000 + name: validator-1 + consensus_address: /ip4/127.0.0.1/tcp/8083/http + narwhal_primary_address: /dns/validator-1/udp/8081 + narwhal_worker_address: /dns/validator-1/udp/8082 + network_address: /dns/validator-1/tcp/8080/http + p2p_address: /dns/validator-1/udp/8084 + stake: 20000000000000000 + - commission_rate: 0 + gas_price: 1000 + name: validator-2 + consensus_address: /ip4/127.0.0.1/tcp/8083/http + narwhal_primary_address: /dns/validator-2/udp/8081 + narwhal_worker_address: /dns/validator-2/udp/8082 + network_address: /dns/validator-2/tcp/8080/http + p2p_address: /dns/validator-2/udp/8084 + stake: 20000000000000000 + - commission_rate: 0 + gas_price: 1000 + name: validator-3 + consensus_address: /ip4/127.0.0.1/tcp/8083/http + narwhal_primary_address: /dns/validator-3/udp/8081 + narwhal_worker_address: /dns/validator-3/udp/8082 + network_address: /dns/validator-3/tcp/8080/http + p2p_address: /dns/validator-3/udp/8084 + stake: 20000000000000000 + - commission_rate: 0 + gas_price: 1000 + name: validator-4 + consensus_address: /ip4/127.0.0.1/tcp/8083/http + narwhal_primary_address: /dns/validator-4/udp/8081 + narwhal_worker_address: /dns/validator-4/udp/8082 + network_address: /dns/validator-4/tcp/8080/http + p2p_address: /dns/validator-4/udp/8084 + stake: 20000000000000000 diff --git a/docker/iota-private-network/docker-compose.yaml b/docker/iota-private-network/docker-compose.yaml index fbbc05c29db..5cce4086610 100644 --- a/docker/iota-private-network/docker-compose.yaml +++ b/docker/iota-private-network/docker-compose.yaml @@ -8,12 +8,11 @@ x-common-validator: &common-validator - RPC_WORKER_THREAD=12 - NEW_CHECKPOINT_WARNING_TIMEOUT_MS=30000 - NEW_CHECKPOINT_PANIC_TIMEOUT_MS=60000 - command: &common-command - [ - "/usr/local/bin/iota-node", - "--config-path", - "/opt/iota/config/validator.yaml", - ] + command: &common-command [ + "/usr/local/bin/iota-node", + "--config-path", + "/opt/iota/config/validator.yaml", + ] restart: on-failure logging: &common-logging driver: "json-file" @@ -153,7 +152,7 @@ services: - RUST_BACKTRACE=1 - RUST_LOG=info - RPC_WORKER_THREAD=12 - command: + command: - /usr/local/bin/iota-indexer - --db-url=postgres://iota_indexer:iota_indexer@postgres_primary:5432/iota_indexer - --rpc-client-url=http://fullnode-3:9000 @@ -208,7 +207,7 @@ services: - RUST_BACKTRACE=1 - RUST_LOG=info - RPC_WORKER_THREAD=12 - command: + command: - /usr/local/bin/iota-faucet - --port=5003 - --host-ip=0.0.0.0 @@ -244,11 +243,11 @@ services: POSTGRES_HOST_AUTH_METHOD: "scram-sha-256\nhost replication all 0.0.0.0/0 md5" POSTGRES_INITDB_ARGS: "--auth-host=scram-sha-256" command: | - postgres - -c wal_level=replica - -c hot_standby=on - -c max_wal_senders=10 - -c max_replication_slots=10 + postgres + -c wal_level=replica + -c hot_standby=on + -c max_wal_senders=10 + -c max_replication_slots=10 -c hot_standby_feedback=on -c 'max_connections=1000' volumes: @@ -309,4 +308,4 @@ networks: driver: bridge ipam: config: - - subnet: 10.0.0.0/24 \ No newline at end of file + - subnet: 10.0.0.0/24 diff --git a/dprint.json b/dprint.json index 0cac843ad91..e9b0fae1f29 100644 --- a/dprint.json +++ b/dprint.json @@ -3,7 +3,8 @@ "incremental": true, "includes": [ "**/*.{toml}", - "**/*.{md}" + "**/*.{md}", + "**/*.{yml,yaml}" ], "excludes": [ "**/target/", @@ -12,13 +13,17 @@ "examples/trading/api/prisma/migrations/migration_lock.toml", "sdk/create-dapp/templates/", "crates/iota-framework/docs/**/*.{md}", - "crates/iota-graphql-rpc/docs/examples.md" + "crates/iota-graphql-rpc/docs/examples.md", + "crates/iota-light-client/example_config/20873329.yaml", + "**/pnpm-lock.yaml" ], "toml": { "lineWidth": 80 }, "plugins": [ "https://plugins.dprint.dev/toml-0.6.2.wasm", - "https://plugins.dprint.dev/markdown-0.17.1.wasm" + "https://plugins.dprint.dev/markdown-0.17.1.wasm", + "https://plugins.dprint.dev/g-plane/pretty_yaml-v0.4.0.wasm" ] -} \ No newline at end of file +} + diff --git a/narwhal/Docker/templates/grafana/provisioning/dashboards/dashboard.yml b/narwhal/Docker/templates/grafana/provisioning/dashboards/dashboard.yml index d83b43c7b0f..ff7db10a432 100644 --- a/narwhal/Docker/templates/grafana/provisioning/dashboards/dashboard.yml +++ b/narwhal/Docker/templates/grafana/provisioning/dashboards/dashboard.yml @@ -1,12 +1,12 @@ apiVersion: 1 providers: - - name: 'Prometheus' + - name: "Prometheus" orgId: 1 - folder: '' + folder: "" type: file disableDeletion: false editable: true allowUiUpdates: true options: - path: /etc/grafana/provisioning/dashboards \ No newline at end of file + path: /etc/grafana/provisioning/dashboards diff --git a/narwhal/Docker/templates/grafana/provisioning/datasources/datasource.yml b/narwhal/Docker/templates/grafana/provisioning/datasources/datasource.yml index bb37f13d997..a08624ac755 100644 --- a/narwhal/Docker/templates/grafana/provisioning/datasources/datasource.yml +++ b/narwhal/Docker/templates/grafana/provisioning/datasources/datasource.yml @@ -8,4 +8,4 @@ datasources: url: http://prometheus:9090 basicAuth: false isDefault: true - editable: true \ No newline at end of file + editable: true diff --git a/narwhal/Docker/templates/prometheus/prometheus.yml b/narwhal/Docker/templates/prometheus/prometheus.yml index fc763df6c87..8b86ed064cf 100644 --- a/narwhal/Docker/templates/prometheus/prometheus.yml +++ b/narwhal/Docker/templates/prometheus/prometheus.yml @@ -1,11 +1,11 @@ global: - scrape_interval: 15s + scrape_interval: 15s evaluation_interval: 15s # Attach these labels to any time series or alerts when communicating with # external systems (federation, remote storage, Alertmanager). external_labels: - monitor: 'docker-host-alpha' + monitor: "docker-host-alpha" # Load and evaluate rules in this file every 'evaluation_interval' seconds. # rule_files: @@ -13,10 +13,10 @@ global: # A scrape configuration containing exactly one endpoint to scrape. scrape_configs: - - job_name: 'nodeexporter' + - job_name: "nodeexporter" scrape_interval: 5s static_configs: - - targets: ['nodeexporter:9100'] + - targets: ["nodeexporter:9100"] # Busted on MacOS currently. -allan # - job_name: 'cadvisor' @@ -24,17 +24,17 @@ scrape_configs: # static_configs: # - targets: ['cadvisor:8080'] - - job_name: 'prometheus' + - job_name: "prometheus" scrape_interval: 10s static_configs: - - targets: ['localhost:9090'] + - targets: ["localhost:9090"] - - job_name: 'loki-read' + - job_name: "loki-read" scrape_interval: 10s static_configs: - - targets: ['read:3100'] + - targets: ["read:3100"] - - job_name: 'loki-write' + - job_name: "loki-write" scrape_interval: 10s static_configs: - - targets: ['write:3100'] + - targets: ["write:3100"] diff --git a/narwhal/node/tests/staged/narwhal.yaml b/narwhal/node/tests/staged/narwhal.yaml index 1e172f0fbac..6e8f9b80347 100644 --- a/narwhal/node/tests/staged/narwhal.yaml +++ b/narwhal/node/tests/staged/narwhal.yaml @@ -1,20 +1,20 @@ Authority: STRUCT: - - protocol_key: - TUPLEARRAY: - CONTENT: U8 - SIZE: 96 - - protocol_key_bytes: - TUPLEARRAY: - CONTENT: U8 - SIZE: 96 - - stake: U64 - - primary_address: STR - - network_key: - TUPLEARRAY: - CONTENT: U8 - SIZE: 32 - - hostname: STR + - protocol_key: + TUPLEARRAY: + CONTENT: U8 + SIZE: 96 + - protocol_key_bytes: + TUPLEARRAY: + CONTENT: U8 + SIZE: 96 + - stake: U64 + - primary_address: STR + - network_key: + TUPLEARRAY: + CONTENT: U8 + SIZE: 32 + - hostname: STR AuthorityIdentifier: NEWTYPESTRUCT: U16 Batch: @@ -30,11 +30,11 @@ BatchDigest: SIZE: 32 BatchV2: STRUCT: - - transactions: - SEQ: - SEQ: U8 - - versioned_metadata: - TYPENAME: VersionedMetadata + - transactions: + SEQ: + SEQ: U8 + - versioned_metadata: + TYPENAME: VersionedMetadata Certificate: ENUM: 0: @@ -48,24 +48,24 @@ CertificateDigest: SIZE: 32 CertificateV2: STRUCT: - - header: - TYPENAME: Header - - signature_verification_state: - TYPENAME: SignatureVerificationState - - signed_authorities: BYTES - - metadata: - TYPENAME: Metadata + - header: + TYPENAME: Header + - signature_verification_state: + TYPENAME: SignatureVerificationState + - signed_authorities: BYTES + - metadata: + TYPENAME: Metadata Committee: STRUCT: - - authorities: - MAP: - KEY: - TUPLEARRAY: - CONTENT: U8 - SIZE: 96 - VALUE: - TYPENAME: Authority - - epoch: U64 + - authorities: + MAP: + KEY: + TUPLEARRAY: + CONTENT: U8 + SIZE: 96 + VALUE: + TYPENAME: Authority + - epoch: U64 Header: ENUM: 0: @@ -79,29 +79,29 @@ HeaderDigest: SIZE: 32 HeaderV1: STRUCT: - - author: - TYPENAME: AuthorityIdentifier - - round: U64 - - epoch: U64 - - created_at: U64 - - payload: - SEQ: - TUPLE: - - TYPENAME: BatchDigest - - TUPLE: - - U32 - - U64 - - parents: - SEQ: - TYPENAME: CertificateDigest + - author: + TYPENAME: AuthorityIdentifier + - round: U64 + - epoch: U64 + - created_at: U64 + - payload: + SEQ: + TUPLE: + - TYPENAME: BatchDigest + - TUPLE: + - U32 + - U64 + - parents: + SEQ: + TYPENAME: CertificateDigest Metadata: STRUCT: - - created_at: U64 + - created_at: U64 MetadataV1: STRUCT: - - created_at: U64 - - received_at: - OPTION: U64 + - created_at: U64 + - received_at: + OPTION: U64 SignatureVerificationState: ENUM: 0: @@ -124,30 +124,29 @@ WorkerIndex: TYPENAME: WorkerInfo WorkerInfo: STRUCT: - - name: - TUPLEARRAY: - CONTENT: U8 - SIZE: 32 - - transactions: STR - - worker_address: STR + - name: + TUPLEARRAY: + CONTENT: U8 + SIZE: 32 + - transactions: STR + - worker_address: STR WorkerOthersBatchMessage: STRUCT: - - digest: - TYPENAME: BatchDigest - - worker_id: U32 + - digest: + TYPENAME: BatchDigest + - worker_id: U32 WorkerOwnBatchMessage: STRUCT: - - digest: - TYPENAME: BatchDigest - - worker_id: U32 - - metadata: - TYPENAME: VersionedMetadata + - digest: + TYPENAME: BatchDigest + - worker_id: U32 + - metadata: + TYPENAME: VersionedMetadata WorkerSynchronizeMessage: STRUCT: - - digests: - SEQ: - TYPENAME: BatchDigest - - target: - TYPENAME: AuthorityIdentifier - - is_certified: BOOL - + - digests: + SEQ: + TYPENAME: BatchDigest + - target: + TYPENAME: AuthorityIdentifier + - is_certified: BOOL diff --git a/nre/ansible/roles/iota-node/tasks/main.yaml b/nre/ansible/roles/iota-node/tasks/main.yaml index 0bbb299b4f3..f039f982856 100644 --- a/nre/ansible/roles/iota-node/tasks/main.yaml +++ b/nre/ansible/roles/iota-node/tasks/main.yaml @@ -2,7 +2,7 @@ - name: Install required system packages apt: name={{ item }} state=latest update_cache=yes loop: [ - 'iptables-persistent' + "iptables-persistent", ] - name: Include Ubuntu tasks diff --git a/nre/ansible/roles/iota-node/tasks/monitoring.yaml b/nre/ansible/roles/iota-node/tasks/monitoring.yaml index d9a14df6c03..8dfc1897f9b 100644 --- a/nre/ansible/roles/iota-node/tasks/monitoring.yaml +++ b/nre/ansible/roles/iota-node/tasks/monitoring.yaml @@ -9,4 +9,3 @@ systemd: name: systemd-journald state: restarted - diff --git a/nre/k8s/iota-graphql-deployment.yaml b/nre/k8s/iota-graphql-deployment.yaml index 9d54e1c63cd..a96694112a5 100644 --- a/nre/k8s/iota-graphql-deployment.yaml +++ b/nre/k8s/iota-graphql-deployment.yaml @@ -22,42 +22,42 @@ spec: app: graphql spec: containers: - - command: - - /opt/iota/bin/iota-graphql-rpc - - start-server - - --host - - 0.0.0.0 - - --port - - "8001" - - --db-url - - postgres://x:x@x:5432/defaultdb - - --node-rpc-url - - http://iota-node.rpc-mainnet.svc.cluster.local:9000 - - --config - - /opt/iota/config/iota-graphql.toml - - --ide-title - - Iota Mainnet GraphQL - env: - - name: RUST_BACKTRACE - value: "1" - image: x - imagePullPolicy: Always - name: iota-graphql - ports: - - containerPort: 8001 - protocol: TCP - resources: - requests: - cpu: "2" - memory: 8G - volumeMounts: - - mountPath: /opt/iota/config/iota-graphql.toml - name: graphql-config-volume - subPath: iota-graphql.toml + - command: + - /opt/iota/bin/iota-graphql-rpc + - start-server + - --host + - 0.0.0.0 + - --port + - "8001" + - --db-url + - postgres://x:x@x:5432/defaultdb + - --node-rpc-url + - http://iota-node.rpc-mainnet.svc.cluster.local:9000 + - --config + - /opt/iota/config/iota-graphql.toml + - --ide-title + - Iota Mainnet GraphQL + env: + - name: RUST_BACKTRACE + value: "1" + image: x + imagePullPolicy: Always + name: iota-graphql + ports: + - containerPort: 8001 + protocol: TCP + resources: + requests: + cpu: "2" + memory: 8G + volumeMounts: + - mountPath: /opt/iota/config/iota-graphql.toml + name: graphql-config-volume + subPath: iota-graphql.toml restartPolicy: Always terminationGracePeriodSeconds: 30 volumes: - - configMap: - defaultMode: 420 - name: graphql-config - name: graphql-config-volume + - configMap: + defaultMode: 420 + name: graphql-config + name: graphql-config-volume diff --git a/nre/k8s/iota-indexer-readers-deployment.yaml b/nre/k8s/iota-indexer-readers-deployment.yaml index 1155cc306ab..2a23a24ebbd 100644 --- a/nre/k8s/iota-indexer-readers-deployment.yaml +++ b/nre/k8s/iota-indexer-readers-deployment.yaml @@ -22,33 +22,33 @@ spec: app: indexer-readers spec: containers: - - command: - - /usr/local/bin/iota-indexer - - --db-url - - postgres://x:x@x:5432/defaultdb - - --rpc-client-url - - http://iota-node.rpc-mainnet.svc.cluster.local:9000 - - --rpc-server-worker - env: - - name: RUST_BACKTRACE - value: "1" - - name: RUST_LOG - value: info,jsonrpsee=error,jsonrpsee_types=error - - name: RUST_JSON_LOG - value: "true" - - name: DB_CONNECTION_TIMEOUT - value: "3600" - - name: DB_STATEMENT_TIMEOUT - value: "3600" - image: x - imagePullPolicy: Always - name: iota-indexer - ports: - - containerPort: 9000 - protocol: TCP - resources: - requests: - cpu: "2" - memory: 8G + - command: + - /usr/local/bin/iota-indexer + - --db-url + - postgres://x:x@x:5432/defaultdb + - --rpc-client-url + - http://iota-node.rpc-mainnet.svc.cluster.local:9000 + - --rpc-server-worker + env: + - name: RUST_BACKTRACE + value: "1" + - name: RUST_LOG + value: info,jsonrpsee=error,jsonrpsee_types=error + - name: RUST_JSON_LOG + value: "true" + - name: DB_CONNECTION_TIMEOUT + value: "3600" + - name: DB_STATEMENT_TIMEOUT + value: "3600" + image: x + imagePullPolicy: Always + name: iota-indexer + ports: + - containerPort: 9000 + protocol: TCP + resources: + requests: + cpu: "2" + memory: 8G restartPolicy: Always terminationGracePeriodSeconds: 30 diff --git a/nre/k8s/iota-indexer-writer-deployment.yaml b/nre/k8s/iota-indexer-writer-deployment.yaml index fd0afa6e906..a84bd5b0f1a 100644 --- a/nre/k8s/iota-indexer-writer-deployment.yaml +++ b/nre/k8s/iota-indexer-writer-deployment.yaml @@ -22,32 +22,32 @@ spec: app: indexer-writer spec: containers: - - command: - - /usr/local/bin/iota-indexer - - --db-url - - postgres://x:x@x:5432/defaultdb - - --rpc-client-url - - http://iota-node.rpc-mainnet.svc.cluster.local:9000 - - --fullnode-sync-worker - env: - - name: RUST_BACKTRACE - value: "1" - - name: RUST_LOG - value: info,jsonrpsee=error,jsonrpsee_types=error - - name: RUST_JSON_LOG - value: "true" - - name: DB_CONNECTION_TIMEOUT - value: "3600" - - name: DB_STATEMENT_TIMEOUT - value: "3600" - - name: CHECKPOINT_COMMIT_BATCH_SIZE - value: "300" - image: x - imagePullPolicy: Always - name: iota-indexer - resources: - requests: - cpu: "16" - memory: 64G + - command: + - /usr/local/bin/iota-indexer + - --db-url + - postgres://x:x@x:5432/defaultdb + - --rpc-client-url + - http://iota-node.rpc-mainnet.svc.cluster.local:9000 + - --fullnode-sync-worker + env: + - name: RUST_BACKTRACE + value: "1" + - name: RUST_LOG + value: info,jsonrpsee=error,jsonrpsee_types=error + - name: RUST_JSON_LOG + value: "true" + - name: DB_CONNECTION_TIMEOUT + value: "3600" + - name: DB_STATEMENT_TIMEOUT + value: "3600" + - name: CHECKPOINT_COMMIT_BATCH_SIZE + value: "300" + image: x + imagePullPolicy: Always + name: iota-indexer + resources: + requests: + cpu: "16" + memory: 64G restartPolicy: Always terminationGracePeriodSeconds: 30 diff --git a/nre/k8s/iota-node-statefulset.yaml b/nre/k8s/iota-node-statefulset.yaml index 3a23d4fa272..36260ce1d88 100644 --- a/nre/k8s/iota-node-statefulset.yaml +++ b/nre/k8s/iota-node-statefulset.yaml @@ -6,9 +6,9 @@ metadata: namespace: rpc-mainnet spec: ports: - - port: 9000 - protocol: TCP - targetPort: 9000 + - port: 9000 + protocol: TCP + targetPort: 9000 selector: app: iota-node type: ClusterIP @@ -51,55 +51,55 @@ spec: app: iota-node spec: containers: - - command: - - /opt/iota/bin/iota-node - - --config-path - - /opt/iota/config/iota-node.yaml - env: - - name: RUST_BACKTRACE - value: "1" - - name: RUST_LOG - value: info,iota_core=debug,iota_network=debug,narwhal=info,narwhal-primary::helper=info,jsonrpsee=error - image: x - imagePullPolicy: Always - name: iota-node - ports: - - containerPort: 9000 - protocol: TCP - resources: - requests: - cpu: "32" - memory: 128G - volumeMounts: - - mountPath: /opt/iota/db - name: ssd-storage - - mountPath: /opt/iota/config/iota-node.yaml - name: iota-config-volume - subPath: iota-node.yaml - - mountPath: /opt/iota/config/genesis.blob - name: iota-genesis-volume - subPath: genesis.blob + - command: + - /opt/iota/bin/iota-node + - --config-path + - /opt/iota/config/iota-node.yaml + env: + - name: RUST_BACKTRACE + value: "1" + - name: RUST_LOG + value: info,iota_core=debug,iota_network=debug,narwhal=info,narwhal-primary::helper=info,jsonrpsee=error + image: x + imagePullPolicy: Always + name: iota-node + ports: + - containerPort: 9000 + protocol: TCP + resources: + requests: + cpu: "32" + memory: 128G + volumeMounts: + - mountPath: /opt/iota/db + name: ssd-storage + - mountPath: /opt/iota/config/iota-node.yaml + name: iota-config-volume + subPath: iota-node.yaml + - mountPath: /opt/iota/config/genesis.blob + name: iota-genesis-volume + subPath: genesis.blob restartPolicy: Always terminationGracePeriodSeconds: 180 volumes: - - configMap: - defaultMode: 420 - name: iota-config - name: iota-config-volume - - configMap: - defaultMode: 420 - name: iota-genesis - name: iota-genesis-volume + - configMap: + defaultMode: 420 + name: iota-config + name: iota-config-volume + - configMap: + defaultMode: 420 + name: iota-genesis + name: iota-genesis-volume volumeClaimTemplates: - - apiVersion: v1 - kind: PersistentVolumeClaim - metadata: - name: ssd-storage - spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 5000Gi - storageClassName: pd-ssd - volumeMode: Filesystem + - apiVersion: v1 + kind: PersistentVolumeClaim + metadata: + name: ssd-storage + spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 5000Gi + storageClassName: pd-ssd + volumeMode: Filesystem diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index db439ab22f2..13e3116437b 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,24 +1,24 @@ packages: - - 'sdk/**' - - 'apps/**' - - 'dapps/**' - - 'docs/site' - - '!**/dist/**' - - '!**/.next/**' - - '!sdk/create-dapp/templates' - - '!sdk/typescript/*/**' - - '!sdk/typescript/scripts' - - '!sdk/typescript/transactions' - - '!sdk/typescript/cryptography' - - '!sdk/typescript/faucet' - - '!sdk/typescript/transactions' - - '!sdk/typescript/client' - - '!sdk/typescript/verify' - - '!sdk/typescript/multisig' - - '!sdk/typescript/utils' - - '!sdk/typescript/bcs' - - '!sdk/typescript/zklogin' - - '!sdk/move-bytecode-template/pkg' - - '!sdk/move-bytecode-template/pkg' - - '!sdk/typescript/graphql' - - '!sdk/docs' + - "sdk/**" + - "apps/**" + - "dapps/**" + - "docs/site" + - "!**/dist/**" + - "!**/.next/**" + - "!sdk/create-dapp/templates" + - "!sdk/typescript/*/**" + - "!sdk/typescript/scripts" + - "!sdk/typescript/transactions" + - "!sdk/typescript/cryptography" + - "!sdk/typescript/faucet" + - "!sdk/typescript/transactions" + - "!sdk/typescript/client" + - "!sdk/typescript/verify" + - "!sdk/typescript/multisig" + - "!sdk/typescript/utils" + - "!sdk/typescript/bcs" + - "!sdk/typescript/zklogin" + - "!sdk/move-bytecode-template/pkg" + - "!sdk/move-bytecode-template/pkg" + - "!sdk/typescript/graphql" + - "!sdk/docs" diff --git a/sdk/typescript/docker-compose.yml b/sdk/typescript/docker-compose.yml index ba9e56e5c6c..58b05acecfc 100644 --- a/sdk/typescript/docker-compose.yml +++ b/sdk/typescript/docker-compose.yml @@ -1,12 +1,12 @@ -version: '3.8' +version: "3.8" services: - db: - image: postgres - command: -c 'max_connections=500' - environment: - POSTGRES_USER: postgres - POSTGRES_PASSWORD: postgrespw - POSTGRES_DB: iota_indexer_v2 - ports: - - '5435:5432' + db: + image: postgres + command: -c 'max_connections=500' + environment: + POSTGRES_USER: postgres + POSTGRES_PASSWORD: postgrespw + POSTGRES_DB: iota_indexer_v2 + ports: + - "5435:5432"