diff --git a/.github/workflows/bridge-ui--ci.yml b/.github/workflows/bridge-ui--ci.yml index d270c524ec..4c1bb10c37 100644 --- a/.github/workflows/bridge-ui--ci.yml +++ b/.github/workflows/bridge-ui--ci.yml @@ -4,13 +4,16 @@ on: workflow_call jobs: build: - runs-on: [taiko-runner] + runs-on: [arc-runner-set] steps: - name: Cancel previous runs uses: styfle/cancel-workflow-action@0.12.1 with: access_token: ${{ github.token }} + - name: Install Git + run: sudo apt-get update && sudo apt-get install -y git + - name: Checkout repository uses: actions/checkout@v4 diff --git a/.github/workflows/docs-site--preview.yml b/.github/workflows/docs-site--preview.yml index 910fa4dc96..817eb7a018 100644 --- a/.github/workflows/docs-site--preview.yml +++ b/.github/workflows/docs-site--preview.yml @@ -14,8 +14,11 @@ on: jobs: deploy-docs-site-preview: - runs-on: [taiko-runner] + runs-on: [arc-runner-set] steps: + - name: Install Git + run: sudo apt-get update && sudo apt-get install -y git + - name: Checkout repository uses: actions/checkout@v4 diff --git a/.github/workflows/docs-site--production.yml b/.github/workflows/docs-site--production.yml index c450567596..78e03a182a 100644 --- a/.github/workflows/docs-site--production.yml +++ b/.github/workflows/docs-site--production.yml @@ -11,8 +11,11 @@ on: jobs: deploy-docs-site-production: - runs-on: [taiko-runner] + runs-on: [arc-runner-set] steps: + - name: Install Git + run: sudo apt-get update && sudo apt-get install -y git + - name: Checkout repository uses: actions/checkout@v4 diff --git a/.github/workflows/eventindexer.yml b/.github/workflows/eventindexer.yml index 4699550398..1ff534248c 100644 --- a/.github/workflows/eventindexer.yml +++ b/.github/workflows/eventindexer.yml @@ -18,7 +18,7 @@ jobs: lint-eventindexer: name: lint-eventindexer if: github.event_name == 'pull_request' - runs-on: [taiko-runner] + runs-on: [arc-runner-set] steps: - uses: actions/setup-go@v5 with: @@ -35,7 +35,7 @@ jobs: args: --config=.golangci.yml --timeout=4m test-eventindexer: - runs-on: [taiko-runner] + runs-on: [arc-runner-set] if: ${{ github.event_name == 'pull_request' && github.event.pull_request.draft == false }} needs: lint-eventindexer steps: @@ -44,6 +44,9 @@ jobs: with: access_token: ${{ github.token }} + - name: Install Git + run: sudo apt-get update && sudo apt-get install -y git + - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: @@ -63,9 +66,12 @@ jobs: # Skip dependabot PRs if: ${{ github.event_name == 'pull_request' && ! startsWith(github.ref, 'refs/heads/dependabot/') }} name: Build and push docker image - runs-on: [taiko-runner] + runs-on: [arc-runner-set] steps: + - name: Install Git + run: sudo apt-get update && sudo apt-get install -y git + - name: Checkout uses: actions/checkout@v4 with: diff --git a/.github/workflows/fork-diff--preview.yml b/.github/workflows/fork-diff--preview.yml index 64f4d69bca..0c62bcd22a 100644 --- a/.github/workflows/fork-diff--preview.yml +++ b/.github/workflows/fork-diff--preview.yml @@ -15,8 +15,11 @@ on: jobs: deploy-fork-diff-preview: - runs-on: [taiko-runner] + runs-on: [arc-runner-set] steps: + - name: Install Git + run: sudo apt-get update && sudo apt-get install -y git + - name: Checkout repository uses: actions/checkout@v4 diff --git a/.github/workflows/fork-diff--production.yml b/.github/workflows/fork-diff--production.yml index fa9c9db3f1..c8c7b7cbce 100644 --- a/.github/workflows/fork-diff--production.yml +++ b/.github/workflows/fork-diff--production.yml @@ -12,8 +12,11 @@ on: jobs: deploy-fork-diff-production: - runs-on: [taiko-runner] + runs-on: [arc-runner-set] steps: + - name: Install Git + run: sudo apt-get update && sudo apt-get install -y git + - name: Checkout repository uses: actions/checkout@v4 diff --git a/.github/workflows/nfts.yml b/.github/workflows/nfts.yml index 93a41de561..c7098c1da0 100644 --- a/.github/workflows/nfts.yml +++ b/.github/workflows/nfts.yml @@ -9,13 +9,16 @@ on: jobs: build-nfts-contracts: if: github.event.pull_request.draft == false - runs-on: [taiko-runner] + runs-on: [arc-runner-set] steps: - name: Cancel previous runs uses: styfle/cancel-workflow-action@0.12.1 with: access_token: ${{ github.token }} + - name: Install Git + run: sudo apt-get update && sudo apt-get install -y git + - name: Checkout repository uses: actions/checkout@v4 with: diff --git a/.github/workflows/protocol.yml b/.github/workflows/protocol.yml index 5952fb968e..5ac4436e39 100644 --- a/.github/workflows/protocol.yml +++ b/.github/workflows/protocol.yml @@ -9,7 +9,7 @@ on: jobs: build-protocol: if: github.event.pull_request.draft == false - runs-on: [taiko-runner] + runs-on: [arc-runner-set] permissions: # Give the necessary permissions for stefanzweifel/git-auto-commit-action. contents: write @@ -19,6 +19,9 @@ jobs: with: access_token: ${{ github.token }} + - name: Prepare environment + run: sudo apt-get update && sudo apt-get install -y git nc + - name: Checkout repository uses: actions/checkout@v4 with: @@ -38,10 +41,6 @@ jobs: working-directory: ./packages/protocol run: pnpm compile:l2 && pnpm test:l2 && pnpm layout:l2 - - name: L2-Generate genesis - working-directory: ./packages/protocol - run: pnpm genesis:test - - name: L1-Unit tests working-directory: ./packages/protocol run: pnpm compile:l1 && pnpm test:l1 && pnpm layout:l1 @@ -60,3 +59,34 @@ jobs: sleep 1 done pnpm test:deploy:l1 + + genesis-docker: + if: github.event.pull_request.draft == false + runs-on: [taiko-runner] + permissions: + # Give the necessary permissions for stefanzweifel/git-auto-commit-action. + contents: write + steps: + - name: Cancel previous runs + uses: styfle/cancel-workflow-action@0.12.1 + with: + access_token: ${{ github.token }} + + - name: Checkout repository + uses: actions/checkout@v4 + with: + submodules: recursive + + - name: Install Foundry + uses: foundry-rs/foundry-toolchain@v1.2.0 + + - name: Install pnpm dependencies + uses: ./.github/actions/install-pnpm-dependencies + + - name: Compile + working-directory: ./packages/protocol + run: pnpm clean && pnpm compile + + - name: L2-Generate Genesis (using docker) + working-directory: ./packages/protocol + run: pnpm genesis:test diff --git a/.github/workflows/relayer.yml b/.github/workflows/relayer.yml index 48a1f17065..976b854ad4 100644 --- a/.github/workflows/relayer.yml +++ b/.github/workflows/relayer.yml @@ -18,7 +18,7 @@ jobs: lint-relayer: name: lint-relayer if: ${{ github.event_name == 'pull_request' && github.event.pull_request.draft == false }} - runs-on: [taiko-runner] + runs-on: [arc-runner-set] steps: - uses: actions/setup-go@v5 with: @@ -36,7 +36,7 @@ jobs: test-relayer: if: ${{ github.event_name == 'pull_request' && github.event.pull_request.draft == false }} - runs-on: [taiko-runner] + runs-on: [arc-runner-set] needs: lint-relayer steps: - name: Cancel Previous Runs @@ -44,6 +44,9 @@ jobs: with: access_token: ${{ github.token }} + - name: Install Git + run: sudo apt-get update && sudo apt-get install -y git + - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: @@ -63,9 +66,12 @@ jobs: # Skip dependabot PRs if: ${{ github.event_name == 'pull_request' && ! startsWith(github.ref, 'refs/heads/dependabot/') }} name: Build and push docker image - runs-on: [taiko-runner] + runs-on: [arc-runner-set] steps: + - name: Install Git + run: sudo apt-get update && sudo apt-get install -y git + - name: Checkout uses: actions/checkout@v4 with: diff --git a/.github/workflows/repo--auto-approve-pr.yml b/.github/workflows/repo--auto-approve-pr.yml index 4763248af8..d7de7b43a1 100644 --- a/.github/workflows/repo--auto-approve-pr.yml +++ b/.github/workflows/repo--auto-approve-pr.yml @@ -7,7 +7,7 @@ on: jobs: auto-approve: if: github.event.pull_request.draft == false && github.actor == 'dependabot[bot]' - runs-on: ubuntu-latest + runs-on: [arc-runner-set] permissions: pull-requests: write steps: diff --git a/.github/workflows/repo--close-inactive-issues.yml b/.github/workflows/repo--close-inactive-issues.yml deleted file mode 100644 index 7775bdf73e..0000000000 --- a/.github/workflows/repo--close-inactive-issues.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Close Inactive Issues - -on: - schedule: - - cron: "30 1 * * *" - -jobs: - close-issues: - runs-on: ubuntu-latest - permissions: - issues: write - pull-requests: write - steps: - - uses: actions/stale@v9 - with: - days-before-issue-stale: 30 - days-before-issue-close: 7 - stale-issue-label: "stale" - stale-issue-message: "This issue is stale because it has been open for 30 days with no activity." - close-issue-message: "This issue was closed because it has been inactive for a week since being marked as stale." - days-before-pr-stale: -1 - days-before-pr-close: -1 - repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/repo--do-not-merge-pr.yml b/.github/workflows/repo--do-not-merge-pr.yml index 63a4b787b0..94daf14d59 100644 --- a/.github/workflows/repo--do-not-merge-pr.yml +++ b/.github/workflows/repo--do-not-merge-pr.yml @@ -6,7 +6,7 @@ on: jobs: check_label: - runs-on: ubuntu-latest + runs-on: [arc-runner-set] steps: - name: Check for "option.do-not-merge" label id: check_label diff --git a/.github/workflows/repo--merge-gatekeeper.yml b/.github/workflows/repo--merge-gatekeeper.yml index 9040ada2a3..08db85e59a 100644 --- a/.github/workflows/repo--merge-gatekeeper.yml +++ b/.github/workflows/repo--merge-gatekeeper.yml @@ -9,7 +9,7 @@ on: jobs: merge-gatekeeper: if: github.event_name == 'pull_request' - runs-on: [taiko-runner] + runs-on: [arc-runner-set] permissions: checks: read statuses: read diff --git a/.github/workflows/repo--release-please.yml b/.github/workflows/repo--release-please.yml index 29efe80be9..99559795b1 100644 --- a/.github/workflows/repo--release-please.yml +++ b/.github/workflows/repo--release-please.yml @@ -11,7 +11,7 @@ permissions: jobs: release-please: - runs-on: [taiko-runner] + runs-on: [arc-runner-set] steps: - uses: googleapis/release-please-action@v4 with: diff --git a/.github/workflows/repo--stale.yml b/.github/workflows/repo--stale.yml index 5b9537bbff..85be7f6886 100644 --- a/.github/workflows/repo--stale.yml +++ b/.github/workflows/repo--stale.yml @@ -5,7 +5,7 @@ on: jobs: stale: - runs-on: ubuntu-latest + runs-on: [arc-runner-set] steps: - uses: actions/stale@v9 with: diff --git a/.github/workflows/repo--typo-check.yml b/.github/workflows/repo--typo-check.yml index 9ef96a0d37..0b5822526b 100644 --- a/.github/workflows/repo--typo-check.yml +++ b/.github/workflows/repo--typo-check.yml @@ -4,12 +4,15 @@ on: [pull_request] jobs: check-for-typos: - runs-on: ubuntu-latest + runs-on: [arc-runner-set] steps: - name: Checkout the repository uses: actions/checkout@v4 + - name: Install wget + run: sudo apt-get update && sudo apt-get install -y wget + - name: Check for typos uses: crate-ci/typos@master with: diff --git a/.github/workflows/repo--validate-pr-title.yml b/.github/workflows/repo--validate-pr-title.yml index 6c0b7a3d32..9e8dd0a552 100644 --- a/.github/workflows/repo--validate-pr-title.yml +++ b/.github/workflows/repo--validate-pr-title.yml @@ -9,7 +9,7 @@ on: jobs: validate-pr-title: if: github.event_name == 'pull_request_target' - runs-on: [taiko-runner] + runs-on: [arc-runner-set] steps: - uses: amannn/action-semantic-pull-request@v5 env: diff --git a/.github/workflows/repo--vercel-deploy.yml b/.github/workflows/repo--vercel-deploy.yml index 910a24f643..4d06f1852e 100644 --- a/.github/workflows/repo--vercel-deploy.yml +++ b/.github/workflows/repo--vercel-deploy.yml @@ -27,12 +27,15 @@ env: jobs: build-deploy: if: github.actor != 'dependabot' - runs-on: [taiko-runner] + runs-on: [arc-runner-set] steps: - name: Print Vercel Project ID run: | echo "Vercel Project ID: ${{ env.VERCEL_PROJECT_ID }}" + - name: Install Git + run: sudo apt-get update && sudo apt-get install -y git + - name: Checkout repository uses: actions/checkout@v4 diff --git a/.github/workflows/snaefell-ui--ci.yml b/.github/workflows/snaefell-ui--ci.yml index 59eb8b0481..0ac4039827 100644 --- a/.github/workflows/snaefell-ui--ci.yml +++ b/.github/workflows/snaefell-ui--ci.yml @@ -4,13 +4,16 @@ on: workflow_call jobs: build: - runs-on: [taiko-runner] + runs-on: [arc-runner-set] steps: - name: Cancel previous runs uses: styfle/cancel-workflow-action@0.12.1 with: access_token: ${{ github.token }} + - name: Install Git + run: sudo apt-get update && sudo apt-get install -y git + - name: Checkout repository uses: actions/checkout@v4 with: diff --git a/.github/workflows/supplementary-contracts.yml b/.github/workflows/supplementary-contracts.yml index 76025fb93e..cf58474057 100644 --- a/.github/workflows/supplementary-contracts.yml +++ b/.github/workflows/supplementary-contracts.yml @@ -9,13 +9,16 @@ on: jobs: build-supplementary-contracts: if: github.event.pull_request.draft == false - runs-on: [taiko-runner] + runs-on: [arc-runner-set] steps: - name: Cancel previous runs uses: styfle/cancel-workflow-action@0.12.1 with: access_token: ${{ github.token }} + - name: Install Git + run: sudo apt-get update && sudo apt-get install -y git + - name: Checkout repository uses: actions/checkout@v4 with: diff --git a/.github/workflows/taiko-client--docker.yml b/.github/workflows/taiko-client--docker.yml index 7580f4e5ac..8b5ed92188 100644 --- a/.github/workflows/taiko-client--docker.yml +++ b/.github/workflows/taiko-client--docker.yml @@ -11,9 +11,12 @@ on: jobs: push-docker-image: name: Build and push docker image - runs-on: ubuntu-latest + runs-on: [arc-runner-set] steps: + - name: Install Git + run: sudo apt-get update && sudo apt-get install -y git + - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/taiko-client--hive_test.yml b/.github/workflows/taiko-client--hive_test.yml index ae6a2690b2..edea54a679 100644 --- a/.github/workflows/taiko-client--hive_test.yml +++ b/.github/workflows/taiko-client--hive_test.yml @@ -12,8 +12,8 @@ jobs: hive_tests: if: github.event.pull_request.draft == false && contains(github.event.pull_request.labels.*.name, 'option.hive-test') name: hive tests - runs-on: ubuntu-latest - timeout-minutes: 15 + runs-on: [arc-runner-set] + timeout-minutes: 20 steps: - name: Cancel Previous Runs @@ -21,6 +21,9 @@ jobs: with: access_token: ${{ github.token }} + - name: Install Git + run: sudo apt-get update && sudo apt-get install -y git + - uses: actions/checkout@v4 - name: Set up Go diff --git a/.github/workflows/taiko-client--test.yml b/.github/workflows/taiko-client--test.yml index 8e0d941241..0c88c6988f 100644 --- a/.github/workflows/taiko-client--test.yml +++ b/.github/workflows/taiko-client--test.yml @@ -12,8 +12,11 @@ jobs: lint: if: github.event.pull_request.draft == false name: Lint - runs-on: ubuntu-latest + runs-on: [arc-runner-set] steps: + - name: Install Git + run: sudo apt-get update && sudo apt-get install -y git make + - uses: actions/checkout@v4 - name: Set up Go @@ -29,7 +32,7 @@ jobs: integration_tests: if: github.event.pull_request.draft == false name: Integration tests - runs-on: ubuntu-latest + runs-on: [ubuntu-latest] timeout-minutes: 15 steps: diff --git a/.github/workflows/taikoon-ui--ci.yml b/.github/workflows/taikoon-ui--ci.yml index 8aecc97c8b..7088ceb84f 100644 --- a/.github/workflows/taikoon-ui--ci.yml +++ b/.github/workflows/taikoon-ui--ci.yml @@ -4,13 +4,16 @@ on: workflow_call jobs: build: - runs-on: [taiko-runner] + runs-on: [arc-runner-set] steps: - name: Cancel previous runs uses: styfle/cancel-workflow-action@0.12.1 with: access_token: ${{ github.token }} + - name: Install Git + run: sudo apt-get update && sudo apt-get install -y git + - name: Checkout repository uses: actions/checkout@v4 with: diff --git a/.github/workflows/ui-lib--ci.yml b/.github/workflows/ui-lib--ci.yml index 4616023976..9dc97e4b1c 100644 --- a/.github/workflows/ui-lib--ci.yml +++ b/.github/workflows/ui-lib--ci.yml @@ -4,13 +4,16 @@ on: workflow_call jobs: build: - runs-on: [taiko-runner] + runs-on: [arc-runner-set] steps: - name: Cancel previous runs uses: styfle/cancel-workflow-action@0.12.1 with: access_token: ${{ github.token }} + - name: Install Git + run: sudo apt-get update && sudo apt-get install -y git + - name: Checkout repository uses: actions/checkout@v4 with: diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 2b917b1ff4..ac778b6582 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,6 +1,6 @@ { "packages/bridge-ui": "2.12.0", - "packages/docs-site": "1.11.9", + "packages/docs-site": "1.12.0", "packages/eventindexer": "0.13.0", "packages/fork-diff": "0.6.0", "packages/guardian-prover-health-check": "0.1.0", diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5c6e590f4d..a31271e28f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -26,7 +26,7 @@ This section describes our coding standards at Taiko. **It is important you use the correct commit type**. For minor semver bumps, use `feat`, for patches use `fix`. For a major bump use `feat(scope)!` or `fix(scope)!`. If you use `chore`, `docs`, or `ci`, then it won't result in a release-please PR or version bump. -Specify the scope of your change with a [conventional commit](https://www.conventionalcommits.org/en/v1.0.0/) in the PR title (for example, `feat(scope): description of feature`). This will be squashed and merged into the `main` branch. You can find the full list of allowed scopes [here](https://github.com/taikoxyz/taiko-mono/blob/main/.github/workflows/validate-pr-title.yml). +Specify the scope of your change with a [conventional commit](https://www.conventionalcommits.org/en/v1.0.0/) in the PR title (for example, `feat(scope): description of feature`). This will be squashed and merged into the `main` branch. You can find the full list of allowed scopes [here](https://github.com/taikoxyz/taiko-mono/blob/main/.github/workflows/repo--validate-pr-title.yml). Because we squash all of the changes into a single commit, please try to keep the PR limited to the scope specified in the commit message. This commit message will end up in the automated changelog by checking which packages are affected by the commit. diff --git a/packages/bridge-ui/src/libs/bridge/Bridge.ts b/packages/bridge-ui/src/libs/bridge/Bridge.ts index 1bcf689b9a..5e73e5d268 100644 --- a/packages/bridge-ui/src/libs/bridge/Bridge.ts +++ b/packages/bridge-ui/src/libs/bridge/Bridge.ts @@ -6,6 +6,7 @@ import { routingContractsMap } from '$bridgeConfig'; import { MessageStatusError, ProcessMessageError, ReleaseError, WrongChainError, WrongOwnerError } from '$libs/error'; import type { BridgeProver } from '$libs/proof'; import { getConnectedWallet } from '$libs/util/getConnectedWallet'; +import { isSmartContract } from '$libs/util/isSmartContract'; import { getLogger } from '$libs/util/logger'; import { config } from '$libs/wagmi'; @@ -262,6 +263,11 @@ export abstract class Bridge { console.error('Failed to estimate gas, using fallback', error); estimatedGas = 1_300_000n; } + + if (message.to && (await isSmartContract(message.to, Number(message.destChainId)))) { + log(`Recipient is a smart contract, increasing fees by 5 percent`); + estimatedGas = (estimatedGas * 105n) / 100n; + } if (force) { return await writeContract(config, { address: bridgeContract.address, @@ -293,10 +299,13 @@ export abstract class Bridge { if (!message) throw new ProcessMessageError('Message is not defined'); - const estimatedGas = await bridgeContract.estimateGas.retryMessage([message, isFinalAttempt], { + let estimatedGas = await bridgeContract.estimateGas.retryMessage([message, isFinalAttempt], { account: client.account, }); - + if (message.to && (await isSmartContract(message.to, Number(message.destChainId)))) { + log(`Recipient is a smart contract, increasing fees by 5 percent`); + estimatedGas = (estimatedGas * 105n) / 100n; + } log('Estimated gas for retryMessage', estimatedGas); const { request } = await simulateContract(config, { @@ -319,9 +328,15 @@ export abstract class Bridge { log('Estimating gas for recallMessage', bridgeContract.address, [message, proof]); - const estimatedGas = await bridgeContract.estimateGas.recallMessage([message, proof], { account: client.account }); + let estimatedGas = await bridgeContract.estimateGas.recallMessage([message, proof], { account: client.account }); log('Estimated gas for recallMessage', estimatedGas); + if (message.from && (await isSmartContract(message.from, Number(message.srcChainId)))) { + log(`Sender is a smart contract, increasing fees by 5 percent`); + estimatedGas = (estimatedGas * 105n) / 100n; + } + log('Estimated gas for retryMessage', estimatedGas); + const { request } = await simulateContract(config, { address: bridgeContract.address, abi: bridgeContract.abi, diff --git a/packages/docs-site/CHANGELOG.md b/packages/docs-site/CHANGELOG.md index e8aa445a8c..44440981f9 100644 --- a/packages/docs-site/CHANGELOG.md +++ b/packages/docs-site/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## [1.12.0](https://github.com/taikoxyz/taiko-mono/compare/docs-site-v1.11.9...docs-site-v1.12.0) (2024-09-19) + + +### Features + +* **docs-site:** sitewide banner for ontake fork notification ([#18111](https://github.com/taikoxyz/taiko-mono/issues/18111)) ([5ed6c80](https://github.com/taikoxyz/taiko-mono/commit/5ed6c8085e44b77283fe5ef8874f751126364d84)) +* **docs-site:** update docs for ontake fork hekla ([#18143](https://github.com/taikoxyz/taiko-mono/issues/18143)) ([49b5071](https://github.com/taikoxyz/taiko-mono/commit/49b50712551849d185c98237098d236bb0cf884c)) +* **docs-site:** update graphics and links for hekla ontake fork ([#18146](https://github.com/taikoxyz/taiko-mono/issues/18146)) ([48a27af](https://github.com/taikoxyz/taiko-mono/commit/48a27afe6be22fc7e1a9d2346ae292544faac0b3)) + + +### Bug Fixes + +* **docs-site:** remove duplicate wording ([#18105](https://github.com/taikoxyz/taiko-mono/issues/18105)) ([92c53f8](https://github.com/taikoxyz/taiko-mono/commit/92c53f8655dbdab4c7db1b023823a4e760240894)) + + +### Documentation + +* **docs-site:** fix broken link ([#18139](https://github.com/taikoxyz/taiko-mono/issues/18139)) ([e56b81b](https://github.com/taikoxyz/taiko-mono/commit/e56b81bbd83f26c95641cf7deab82dbb5a3da835)) + ## [1.11.9](https://github.com/taikoxyz/taiko-mono/compare/docs-site-v1.11.8...docs-site-v1.11.9) (2024-09-15) diff --git a/packages/docs-site/package.json b/packages/docs-site/package.json index f2328535ac..bdbc04bc0c 100644 --- a/packages/docs-site/package.json +++ b/packages/docs-site/package.json @@ -1,7 +1,7 @@ { "name": "docs-site", "type": "module", - "version": "1.11.9", + "version": "1.12.0", "scripts": { "dev": "astro dev", "start": "astro dev", diff --git a/packages/docs-site/src/assets/content/docs/network-reference/proof-tier-config-hekla.webp b/packages/docs-site/src/assets/content/docs/network-reference/proof-tier-config-hekla.webp index 651f8c7f2d..840d7eadfb 100644 Binary files a/packages/docs-site/src/assets/content/docs/network-reference/proof-tier-config-hekla.webp and b/packages/docs-site/src/assets/content/docs/network-reference/proof-tier-config-hekla.webp differ diff --git a/packages/docs-site/src/content/config.ts b/packages/docs-site/src/content/config.ts index 35f8545faa..1c054be624 100644 --- a/packages/docs-site/src/content/config.ts +++ b/packages/docs-site/src/content/config.ts @@ -8,6 +8,9 @@ export const collections = { description: z .string() .max(160, { message: "Must be 160 characters or less." }).optional(), + banner: z.object({ content: z.string() }).default({ + content: 'All Hekla Node Runners: Upcoming Ontake fork Sep 20th, 2:00AM UTC, upgrade needed. Click here for more info', + }), }), }), }), diff --git a/packages/docs-site/src/content/docs/core-concepts/block-states.mdx b/packages/docs-site/src/content/docs/core-concepts/block-states.mdx index 1655172bd0..734d9a3891 100644 --- a/packages/docs-site/src/content/docs/core-concepts/block-states.mdx +++ b/packages/docs-site/src/content/docs/core-concepts/block-states.mdx @@ -8,7 +8,7 @@ import { Code } from '@astrojs/starlight/components'; ## How can you determine when a Taiko block is `Safe` or `Finalized`? The `Safe` block state on Taiko is analogous to a `Safe` block state on Ethereum. -Every Taiko L2 block has a corresponding Ethereum L1 block as it's origin that can be queried through a [`taiko-geth API`](https://github.com/taikoxyz/taiko-geth/blob/caf87509fe0f53fc937a3f5cc26325a380a1744e/eth/taiko_api_backend.go#L50). +Every Taiko L2 block has a corresponding Ethereum L1 block as it's origin that can be queried through a [`taiko-geth API`](https://github.com/taikoxyz/taiko-geth/blob/v1.8.0/eth/taiko_api_backend.go#L50). When that Ethereum L1 block can be considered `Safe`, the corresponding Taiko L2 block can be considered to have reached the same block state. The `Finalized` block state is referred to as the [`Verified` block state](/core-concepts/multi-proofs#verified-blocks-and-parallel-proving) on Taiko. @@ -18,17 +18,17 @@ A Taiko block is `Finalized`/`Verified` when every state transition from genesis diff --git a/packages/docs-site/src/content/docs/core-concepts/bridging.md b/packages/docs-site/src/content/docs/core-concepts/bridging.md index 2cde2c7e1d..d5bc0333a8 100644 --- a/packages/docs-site/src/content/docs/core-concepts/bridging.md +++ b/packages/docs-site/src/content/docs/core-concepts/bridging.md @@ -22,10 +22,10 @@ Taiko deploys two smart contracts which store the hashes of the other chain: - TaikoL1 stores the L2 world state root on L1 (deployed on Ethereum) - TaikoL2 stores the L1 world state root on L2 (deployed on Taiko) -Every time an L2 block is created on Taiko, the world state root of the enclosing block on L1 is stored in the [TaikoL2](https://github.com/taikoxyz/taiko-mono/blob/fbfcc7f3810d0122f46673944c39e5f4d759d4e0/packages/protocol/contracts/L2/TaikoL2.sol#L151) contract using the `anchor` transaction. To ensure validity, it is part of the (previously the zk circuits, now SGX and ZK) proof data submitted with each block, so no fake L1 world state root can be synchronized to L2." +Every time an L2 block is created on Taiko, the world state root of the enclosing block on L1 is stored in the [TaikoL2](https://github.com/taikoxyz/taiko-mono/blob/protocol-v1.9.0/packages/protocol/contracts/layer2/based/TaikoL2.sol#L145) contract using the `anchor` transaction. To ensure validity, it is part of the (previously the zk circuits, now SGX and ZK) proof data submitted with each block, so no fake L1 world state root can be synchronized to L2." The L2 world state root is stored in the TaikoL1 contract using the `syncChainData` function call in -[`LibVerifying`](https://github.com/taikoxyz/taiko-mono/blob/fbfcc7f3810d0122f46673944c39e5f4d759d4e0/packages/protocol/contracts/L1/libs/LibVerifying.sol#L191). +[`LibVerifying`](https://github.com/taikoxyz/taiko-mono/blob/protocol-v1.9.0/packages/protocol/contracts/layer1/based/LibVerifying.sol#L179). Taiko by default synchronizes the world state roots cross-chain with the above mechanism. diff --git a/packages/docs-site/src/content/docs/guides/node-operators/deploy-a-proverset.mdx b/packages/docs-site/src/content/docs/guides/node-operators/deploy-a-proverset.mdx index faaa76a344..780c0adbaf 100644 --- a/packages/docs-site/src/content/docs/guides/node-operators/deploy-a-proverset.mdx +++ b/packages/docs-site/src/content/docs/guides/node-operators/deploy-a-proverset.mdx @@ -93,11 +93,11 @@ This guide outlines how to achieve this with separate EOAs running prover and pr 5. **Configure the contract as necessary** - Manage the contract's allowance with [approveAllowance()](https://github.com/taikoxyz/taiko-mono/blob/116d3f4886dea01333b829677ec9b6d4492479c6/packages/protocol/contracts/team/proving/ProverSet.sol#L63). TaikoL1's contract allowance is by default set to `UINT256.MAX` in the init function. + Manage the contract's allowance with [approveAllowance()](https://github.com/taikoxyz/taiko-mono/blob/protocol-v1.9.0/packages/protocol/contracts/layer1/provers/ProverSet.sol#L64). TaikoL1's contract allowance is by default set to `UINT256.MAX` in the init function. 6. **Deposit your tokens and run your proposer + prover as usual!** - If you've followed the instructions, send your TAIKO/TTKOh to the ProverSet proxy and begin running your prover and proposer as usual. Send the tokens to your ProverSet contract, and start proving. If you've set up your allowance properly, there should be no need to use the `depositBond` function, as it deposits TTKOh from the ProverSet to TaikoL1. + If you've followed the instructions, send your TAIKO/TTKOh to the ProverSet proxy and begin running your prover and proposer as usual. If you've set up your allowance properly, there should be no need to use the `depositBond` function, as it deposits TTKOh from the ProverSet to TaikoL1.