diff --git a/.github/workflows/guardian-prover-health-check-ui.yml b/.github/workflows/guardian-prover-health-check-ui.yml index 69b91f2a79e..f95cd350ad4 100644 --- a/.github/workflows/guardian-prover-health-check-ui.yml +++ b/.github/workflows/guardian-prover-health-check-ui.yml @@ -29,8 +29,6 @@ jobs: # vercel_org_id: ${{ secrets.VERCEL_ORG_ID }} # vercel_token: ${{ secrets.VERCEL_TOKEN }} - - deploy_guardians-ui_hekla_preview: if: ${{ github.event.pull_request.draft == false && !startsWith(github.head_ref, 'release-please') && github.actor != 'dependabot[bot]' }} needs: build-and-test diff --git a/.github/workflows/taiko-client--pages.yml b/.github/workflows/taiko-client--pages.yml new file mode 100644 index 00000000000..997b2ed7c73 --- /dev/null +++ b/.github/workflows/taiko-client--pages.yml @@ -0,0 +1,60 @@ +name: "Taiko Client Github Pages" + +on: + push: + branches: [main] + paths: + - "packages/taiko-client/**" + +jobs: + swagger-gen: + runs-on: [arc-runner-set] + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: "1.23" + + - name: Install swaggo + run: | + export CGO_ENABLED=0 + go install github.com/swaggo/swag/cmd/swag@latest + + - name: Generate Swagger documentation + run: | + export CGO_ENABLED=0 + cd packages/taiko-client + ./scripts/gen_swagger_json.sh + + - name: Commit Swagger docs + run: | + git config --global user.name "github-actions[bot]" + git config --global user.email "github-actions[bot]@users.noreply.github.com" + git add . + if ! git diff --quiet; then + git commit -m "Update Swagger documentation" + git push origin HEAD:${{ github.ref_name }} + else + echo "No changes to commit" + fi + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + deploy: + runs-on: [arc-runner-set] + needs: swagger-gen + permissions: + contents: write + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v4 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: packages/taiko-client/docs # Set this to where your `index.html` is located + publish_branch: gh-pages + destination_dir: soft-block-apis diff --git a/go.mod b/go.mod index b7e01be7c1d..40eb12ac0f0 100644 --- a/go.mod +++ b/go.mod @@ -21,6 +21,7 @@ require ( github.com/gorilla/websocket v1.5.3 github.com/joho/godotenv v1.5.1 github.com/labstack/echo-contrib v0.17.2 + github.com/labstack/echo-jwt/v4 v4.3.0 github.com/labstack/echo/v4 v4.13.3 github.com/labstack/gommon v0.4.2 github.com/modern-go/reflect2 v1.0.2 @@ -113,6 +114,7 @@ require ( github.com/gofrs/flock v0.8.1 // indirect github.com/gogo/protobuf v1.3.2 // indirect github.com/golang-jwt/jwt/v4 v4.5.1 // indirect + github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect github.com/google/go-cmp v0.6.0 // indirect @@ -232,7 +234,7 @@ require ( sigs.k8s.io/yaml v1.3.0 // indirect ) -replace github.com/ethereum/go-ethereum v1.14.11 => github.com/taikoxyz/taiko-geth v1.11.1 +replace github.com/ethereum/go-ethereum v1.14.11 => github.com/taikoxyz/taiko-geth v1.11.2-0.20241117065921-51d42ec9f39f replace github.com/ethereum-optimism/optimism v1.7.4 => github.com/taikoxyz/optimism v0.0.0-20241003061504-cdf8af288f39 diff --git a/go.sum b/go.sum index 2ac34714762..968b63e00d3 100644 --- a/go.sum +++ b/go.sum @@ -247,6 +247,8 @@ github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69 github.com/golang-jwt/jwt/v4 v4.4.3/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= github.com/golang-jwt/jwt/v4 v4.5.1 h1:JdqV9zKUdtaa9gdPlywC3aeoEsR681PlKC+4F5gQgeo= github.com/golang-jwt/jwt/v4 v4.5.1/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= +github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= +github.com/golang-jwt/jwt/v5 v5.2.1/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk= github.com/golang-sql/civil v0.0.0-20220223132316-b832511892a9 h1:au07oEsX2xN0ktxqI+Sida1w446QrXBRJ0nee3SNZlA= github.com/golang-sql/civil v0.0.0-20220223132316-b832511892a9/go.mod h1:8vg3r2VgvsThLBIFL93Qb5yWzgyZWhEmBwUJWevAkK0= github.com/golang-sql/sqlexp v0.1.0 h1:ZCD6MBpcuOVfGVqsEmY5/4FtYiKz6tSyUv9LPEDei6A= @@ -373,6 +375,8 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= +github.com/labstack/echo-jwt/v4 v4.3.0 h1:8JcvVCrK9dRkPx/aWY3ZempZLO336Bebh4oAtBcxAv4= +github.com/labstack/echo-jwt/v4 v4.3.0/go.mod h1:OlWm3wqfnq3Ma8DLmmH7GiEAz2S7Bj23im2iPMEAR+Q= github.com/labstack/echo-contrib v0.17.2 h1:K1zivqmtcC70X9VdBFdLomjPDEVHlrcAObqmuFj1c6w= github.com/labstack/echo-contrib v0.17.2/go.mod h1:NeDh3PX7j/u+jR4iuDt1zHmWZSCz9c/p9mxXcDpyS8E= github.com/labstack/echo/v4 v4.0.0/go.mod h1:tZv7nai5buKSg5h/8E6zz4LsD/Dqh9/91Mvs7Z5Zyno= @@ -599,8 +603,8 @@ github.com/taikoxyz/hive v0.0.0-20240827015317-405b241dd082 h1:ymZR+Y88LOnA8i3Ke github.com/taikoxyz/hive v0.0.0-20240827015317-405b241dd082/go.mod h1:RHnIu3EFehrWX3JhFAMQSXD5uz7l0xaNroTzXrap7EQ= github.com/taikoxyz/optimism v0.0.0-20241003061504-cdf8af288f39 h1:JssMxaDmORjQ9RPZNulVJhAD8zSPd6LZFq5wsr6Nwz8= github.com/taikoxyz/optimism v0.0.0-20241003061504-cdf8af288f39/go.mod h1:ym7scR7ZHvEmwx1DLGVDzFlAdR+uhP1+Z4XCiFuSD5s= -github.com/taikoxyz/taiko-geth v1.11.1 h1:pur1WP6YJkwKhLVeN3Zf7dOwbPq6tS88gYod6QKlJc4= -github.com/taikoxyz/taiko-geth v1.11.1/go.mod h1:+l/fr42Mma+xBnhefL/+z11/hcmJ2egl+ScIVPjhc7E= +github.com/taikoxyz/taiko-geth v1.11.2-0.20241117065921-51d42ec9f39f h1:Jccr7lSc98y4YeXRT0Tb601nMDxFYUFm4wrVKZILcmA= +github.com/taikoxyz/taiko-geth v1.11.2-0.20241117065921-51d42ec9f39f/go.mod h1:+l/fr42Mma+xBnhefL/+z11/hcmJ2egl+ScIVPjhc7E= github.com/testcontainers/testcontainers-go v0.34.0 h1:5fbgF0vIN5u+nD3IWabQwRybuB4GY8G2HHgCkbMzMHo= github.com/testcontainers/testcontainers-go v0.34.0/go.mod h1:6P/kMkQe8yqPHfPWNulFGdFHTD8HB2vLq/231xY2iPQ= github.com/thomaso-mirodin/intmath v0.0.0-20160323211736-5dc6d854e46e h1:cR8/SYRgyQCt5cNCMniB/ZScMkhI9nk8U5C7SbISXjo= diff --git a/packages/protocol/contract_layout_layer1.md b/packages/protocol/contract_layout_layer1.md index 45bda27324b..c5392a2e241 100644 --- a/packages/protocol/contract_layout_layer1.md +++ b/packages/protocol/contract_layout_layer1.md @@ -1,1043 +1,1019 @@ ## ERC1155Vault ╭--------------------+------------------------------------------------------+------+--------+-------+-----------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +===============================================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| __gap | uint256[50] | 251 | 0 | 1600 | +| **gap | uint256[50] | 251 | 0 | 1600 | | -| bridgedToCanonical | mapping(address => struct BaseNFTVault.CanonicalNFT) | 301 | 0 | 32 | +| bridgedToCanonical | mapping(address => struct BaseNFTVault.CanonicalNFT) | 301 | 0 | 32 | | -| canonicalToBridged | mapping(uint256 => mapping(address => address)) | 302 | 0 | 32 | +| canonicalToBridged | mapping(uint256 => mapping(address => address)) | 302 | 0 | 32 | | -| __gap | uint256[48] | 303 | 0 | 1536 | +| **gap | uint256[48] | 303 | 0 | 1536 | | -| __gap | uint256[50] | 351 | 0 | 1600 | +| **gap | uint256[50] | 351 | 0 | 1600 | | -| __gap | uint256[50] | 401 | 0 | 1600 | +| **gap | uint256[50] | 401 | 0 | 1600 | | -| __gap | uint256[50] | 451 | 0 | 1600 | +| \_\_gap | uint256[50] | 451 | 0 | 1600 | ╰--------------------+------------------------------------------------------+------+--------+-------+-----------------------------------------------------------╯ - ## ERC20Vault ╭--------------------+------------------------------------------------------+------+--------+-------+-------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +===========================================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| __gap | uint256[50] | 251 | 0 | 1600 | +| **gap | uint256[50] | 251 | 0 | 1600 | | -| bridgedToCanonical | mapping(address => struct ERC20Vault.CanonicalERC20) | 301 | 0 | 32 | +| bridgedToCanonical | mapping(address => struct ERC20Vault.CanonicalERC20) | 301 | 0 | 32 | | -| canonicalToBridged | mapping(uint256 => mapping(address => address)) | 302 | 0 | 32 | +| canonicalToBridged | mapping(uint256 => mapping(address => address)) | 302 | 0 | 32 | | -| btokenDenylist | mapping(address => bool) | 303 | 0 | 32 | +| btokenDenylist | mapping(address => bool) | 303 | 0 | 32 | | -| lastMigrationStart | mapping(uint256 => mapping(address => uint256)) | 304 | 0 | 32 | +| lastMigrationStart | mapping(uint256 => mapping(address => uint256)) | 304 | 0 | 32 | | -| __gap | uint256[46] | 305 | 0 | 1472 | +| **gap | uint256[46] | 305 | 0 | 1472 | ╰--------------------+------------------------------------------------------+------+--------+-------+-------------------------------------------------------╯ - ## ERC721Vault ╭--------------------+------------------------------------------------------+------+--------+-------+---------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +=============================================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| __gap | uint256[50] | 251 | 0 | 1600 | +| **gap | uint256[50] | 251 | 0 | 1600 | | -| bridgedToCanonical | mapping(address => struct BaseNFTVault.CanonicalNFT) | 301 | 0 | 32 | +| bridgedToCanonical | mapping(address => struct BaseNFTVault.CanonicalNFT) | 301 | 0 | 32 | | -| canonicalToBridged | mapping(uint256 => mapping(address => address)) | 302 | 0 | 32 | +| canonicalToBridged | mapping(uint256 => mapping(address => address)) | 302 | 0 | 32 | | -| __gap | uint256[48] | 303 | 0 | 1536 | +| **gap | uint256[48] | 303 | 0 | 1536 | | -| __gap | uint256[50] | 351 | 0 | 1600 | +| \_\_gap | uint256[50] | 351 | 0 | 1600 | ╰--------------------+------------------------------------------------------+------+--------+-------+---------------------------------------------------------╯ - ## BridgedERC20 ╭------------------+-------------------------------------------------+------+--------+-------+-----------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +========================================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| _balances | mapping(address => uint256) | 251 | 0 | 32 | +| \_balances | mapping(address => uint256) | 251 | 0 | 32 | | -| _allowances | mapping(address => mapping(address => uint256)) | 252 | 0 | 32 | +| \_allowances | mapping(address => mapping(address => uint256)) | 252 | 0 | 32 | | -| _totalSupply | uint256 | 253 | 0 | 32 | +| \_totalSupply | uint256 | 253 | 0 | 32 | | -| _name | string | 254 | 0 | 32 | +| \_name | string | 254 | 0 | 32 | | -| _symbol | string | 255 | 0 | 32 | +| \_symbol | string | 255 | 0 | 32 | | -| __gap | uint256[45] | 256 | 0 | 1440 | +| **gap | uint256[45] | 256 | 0 | 1440 | | -| srcToken | address | 301 | 0 | 20 | +| srcToken | address | 301 | 0 | 20 | | -| __srcDecimals | uint8 | 301 | 20 | 1 | +| **srcDecimals | uint8 | 301 | 20 | 1 | | -| srcChainId | uint256 | 302 | 0 | 32 | +| srcChainId | uint256 | 302 | 0 | 32 | | -| migratingAddress | address | 303 | 0 | 20 | +| migratingAddress | address | 303 | 0 | 20 | | -| migratingInbound | bool | 303 | 20 | 1 | +| migratingInbound | bool | 303 | 20 | 1 | | -| __gap | uint256[47] | 304 | 0 | 1504 | +| \_\_gap | uint256[47] | 304 | 0 | 1504 | ╰------------------+-------------------------------------------------+------+--------+-------+-----------------------------------------------------------╯ - ## BridgedERC20V2 ╭------------------+--------------------------------------------------------+------+--------+-------+---------------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +===================================================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| _balances | mapping(address => uint256) | 251 | 0 | 32 | +| \_balances | mapping(address => uint256) | 251 | 0 | 32 | | -| _allowances | mapping(address => mapping(address => uint256)) | 252 | 0 | 32 | +| \_allowances | mapping(address => mapping(address => uint256)) | 252 | 0 | 32 | | -| _totalSupply | uint256 | 253 | 0 | 32 | +| \_totalSupply | uint256 | 253 | 0 | 32 | | -| _name | string | 254 | 0 | 32 | +| \_name | string | 254 | 0 | 32 | | -| _symbol | string | 255 | 0 | 32 | +| \_symbol | string | 255 | 0 | 32 | | -| __gap | uint256[45] | 256 | 0 | 1440 | +| **gap | uint256[45] | 256 | 0 | 1440 | | -| srcToken | address | 301 | 0 | 20 | +| srcToken | address | 301 | 0 | 20 | | -| __srcDecimals | uint8 | 301 | 20 | 1 | +| **srcDecimals | uint8 | 301 | 20 | 1 | | -| srcChainId | uint256 | 302 | 0 | 32 | +| srcChainId | uint256 | 302 | 0 | 32 | | -| migratingAddress | address | 303 | 0 | 20 | +| migratingAddress | address | 303 | 0 | 20 | | -| migratingInbound | bool | 303 | 20 | 1 | +| migratingInbound | bool | 303 | 20 | 1 | | -| __gap | uint256[47] | 304 | 0 | 1504 | +| **gap | uint256[47] | 304 | 0 | 1504 | | -| _hashedName | bytes32 | 351 | 0 | 32 | +| \_hashedName | bytes32 | 351 | 0 | 32 | | -| _hashedVersion | bytes32 | 352 | 0 | 32 | +| \_hashedVersion | bytes32 | 352 | 0 | 32 | | -| _name | string | 353 | 0 | 32 | +| \_name | string | 353 | 0 | 32 | | -| _version | string | 354 | 0 | 32 | +| \_version | string | 354 | 0 | 32 | | -| __gap | uint256[48] | 355 | 0 | 1536 | +| **gap | uint256[48] | 355 | 0 | 1536 | | -| _nonces | mapping(address => struct CountersUpgradeable.Counter) | 403 | 0 | 32 | +| \_nonces | mapping(address => struct CountersUpgradeable.Counter) | 403 | 0 | 32 | | -| __gap | uint256[49] | 404 | 0 | 1568 | +| \_\_gap | uint256[49] | 404 | 0 | 1568 | ╰------------------+--------------------------------------------------------+------+--------+-------+---------------------------------------------------------------╯ - ## BridgedERC721 ╭--------------------+----------------------------------------------+------+--------+-------+-------------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +=========================================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| __gap | uint256[50] | 251 | 0 | 1600 | +| **gap | uint256[50] | 251 | 0 | 1600 | | -| _name | string | 301 | 0 | 32 | +| \_name | string | 301 | 0 | 32 | | -| _symbol | string | 302 | 0 | 32 | +| \_symbol | string | 302 | 0 | 32 | | -| _owners | mapping(uint256 => address) | 303 | 0 | 32 | +| \_owners | mapping(uint256 => address) | 303 | 0 | 32 | | -| _balances | mapping(address => uint256) | 304 | 0 | 32 | +| \_balances | mapping(address => uint256) | 304 | 0 | 32 | | -| _tokenApprovals | mapping(uint256 => address) | 305 | 0 | 32 | +| \_tokenApprovals | mapping(uint256 => address) | 305 | 0 | 32 | | -| _operatorApprovals | mapping(address => mapping(address => bool)) | 306 | 0 | 32 | +| \_operatorApprovals | mapping(address => mapping(address => bool)) | 306 | 0 | 32 | | -| __gap | uint256[44] | 307 | 0 | 1408 | +| **gap | uint256[44] | 307 | 0 | 1408 | | -| srcToken | address | 351 | 0 | 20 | +| srcToken | address | 351 | 0 | 20 | | -| srcChainId | uint256 | 352 | 0 | 32 | +| srcChainId | uint256 | 352 | 0 | 32 | | -| __gap | uint256[48] | 353 | 0 | 1536 | +| \_\_gap | uint256[48] | 353 | 0 | 1536 | ╰--------------------+----------------------------------------------+------+--------+-------+-------------------------------------------------------------╯ - ## BridgedERC1155 ╭--------------------+-------------------------------------------------+------+--------+-------+---------------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +==============================================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| __gap | uint256[50] | 251 | 0 | 1600 | +| **gap | uint256[50] | 251 | 0 | 1600 | | -| _balances | mapping(uint256 => mapping(address => uint256)) | 301 | 0 | 32 | +| \_balances | mapping(uint256 => mapping(address => uint256)) | 301 | 0 | 32 | | -| _operatorApprovals | mapping(address => mapping(address => bool)) | 302 | 0 | 32 | +| \_operatorApprovals | mapping(address => mapping(address => bool)) | 302 | 0 | 32 | | -| _uri | string | 303 | 0 | 32 | +| \_uri | string | 303 | 0 | 32 | | -| __gap | uint256[47] | 304 | 0 | 1504 | +| **gap | uint256[47] | 304 | 0 | 1504 | | -| srcToken | address | 351 | 0 | 20 | +| srcToken | address | 351 | 0 | 20 | | -| srcChainId | uint256 | 352 | 0 | 32 | +| srcChainId | uint256 | 352 | 0 | 32 | | -| symbol | string | 353 | 0 | 32 | +| symbol | string | 353 | 0 | 32 | | -| name | string | 354 | 0 | 32 | +| name | string | 354 | 0 | 32 | | -| __gap | uint256[46] | 355 | 0 | 1472 | +| \_\_gap | uint256[46] | 355 | 0 | 1472 | ╰--------------------+-------------------------------------------------+------+--------+-------+---------------------------------------------------------------╯ - ## Bridge ╭------------------+-----------------------------------------+------+--------+-------+-------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| __reserved1 | uint64 | 251 | 0 | 8 | +| **reserved1 | uint64 | 251 | 0 | 8 | | -| nextMessageId | uint64 | 251 | 8 | 8 | +| nextMessageId | uint64 | 251 | 8 | 8 | | -| messageStatus | mapping(bytes32 => enum IBridge.Status) | 252 | 0 | 32 | +| messageStatus | mapping(bytes32 => enum IBridge.Status) | 252 | 0 | 32 | | -| __ctx | struct IBridge.Context | 253 | 0 | 64 | +| **ctx | struct IBridge.Context | 253 | 0 | 64 | | -| __reserved2 | uint256 | 255 | 0 | 32 | +| **reserved2 | uint256 | 255 | 0 | 32 | | -| __reserved3 | uint256 | 256 | 0 | 32 | +| **reserved3 | uint256 | 256 | 0 | 32 | | -| __gap | uint256[44] | 257 | 0 | 1408 | +| \_\_gap | uint256[44] | 257 | 0 | 1408 | ╰------------------+-----------------------------------------+------+--------+-------+-------------------------------------------╯ - ## QuotaManager ╭------------------+-----------------------------------------------+------+--------+-------+-------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +==================================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| tokenQuota | mapping(address => struct QuotaManager.Quota) | 251 | 0 | 32 | +| tokenQuota | mapping(address => struct QuotaManager.Quota) | 251 | 0 | 32 | | -| quotaPeriod | uint24 | 252 | 0 | 3 | +| quotaPeriod | uint24 | 252 | 0 | 3 | | -| __gap | uint256[48] | 253 | 0 | 1536 | +| \_\_gap | uint256[48] | 253 | 0 | 1536 | ╰------------------+-----------------------------------------------+------+--------+-------+-------------------------------------------------------╯ - ## AddressManager ╭------------------+-------------------------------------------------+------+--------+-------+-----------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +========================================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| __addresses | mapping(uint256 => mapping(bytes32 => address)) | 251 | 0 | 32 | +| **addresses | mapping(uint256 => mapping(bytes32 => address)) | 251 | 0 | 32 | | -| __gap | uint256[49] | 252 | 0 | 1568 | +| **gap | uint256[49] | 252 | 0 | 1568 | ╰------------------+-------------------------------------------------+------+--------+-------+-----------------------------------------------------------╯ - ## AddressResolver ╭----------------+-------------+------+--------+-------+-------------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +====================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| addressManager | address | 0 | 2 | 20 | +| addressManager | address | 0 | 2 | 20 | | -| __gap | uint256[49] | 1 | 0 | 1568 | +| \_\_gap | uint256[49] | 1 | 0 | 1568 | ╰----------------+-------------+------+--------+-------+-------------------------------------------------------------╯ - ## EssentialContract ╭------------------+-------------+------+--------+-------+-----------------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +==========================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | ╰------------------+-------------+------+--------+-------+-----------------------------------------------------------------╯ - ## SignalService ╭------------------+-----------------------------------------------+------+--------+-------+---------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +====================================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| topBlockId | mapping(uint64 => mapping(bytes32 => uint64)) | 251 | 0 | 32 | +| topBlockId | mapping(uint64 => mapping(bytes32 => uint64)) | 251 | 0 | 32 | | -| isAuthorized | mapping(address => bool) | 252 | 0 | 32 | +| isAuthorized | mapping(address => bool) | 252 | 0 | 32 | | -| __gap | uint256[48] | 253 | 0 | 1536 | +| \_\_gap | uint256[48] | 253 | 0 | 1536 | ╰------------------+-----------------------------------------------+------+--------+-------+---------------------------------------------------------╯ - ## TaikoToken ╭-----------------------------------------------------+---------------------------------------------------------------+------+--------+-------+--------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +================================================================================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| __slots_previously_used_by_ERC20SnapshotUpgradeable | uint256[50] | 251 | 0 | 1600 | +| **slots_previously_used_by_ERC20SnapshotUpgradeable | uint256[50] | 251 | 0 | 1600 | | -| _balances | mapping(address => uint256) | 301 | 0 | 32 | +| \_balances | mapping(address => uint256) | 301 | 0 | 32 | | -| _allowances | mapping(address => mapping(address => uint256)) | 302 | 0 | 32 | +| \_allowances | mapping(address => mapping(address => uint256)) | 302 | 0 | 32 | | -| _totalSupply | uint256 | 303 | 0 | 32 | +| \_totalSupply | uint256 | 303 | 0 | 32 | | -| _name | string | 304 | 0 | 32 | +| \_name | string | 304 | 0 | 32 | | -| _symbol | string | 305 | 0 | 32 | +| \_symbol | string | 305 | 0 | 32 | | -| __gap | uint256[45] | 306 | 0 | 1440 | +| **gap | uint256[45] | 306 | 0 | 1440 | | -| _hashedName | bytes32 | 351 | 0 | 32 | +| \_hashedName | bytes32 | 351 | 0 | 32 | | -| _hashedVersion | bytes32 | 352 | 0 | 32 | +| \_hashedVersion | bytes32 | 352 | 0 | 32 | | -| _name | string | 353 | 0 | 32 | +| \_name | string | 353 | 0 | 32 | | -| _version | string | 354 | 0 | 32 | +| \_version | string | 354 | 0 | 32 | | -| __gap | uint256[48] | 355 | 0 | 1536 | +| **gap | uint256[48] | 355 | 0 | 1536 | | -| _nonces | mapping(address => struct CountersUpgradeable.Counter) | 403 | 0 | 32 | +| \_nonces | mapping(address => struct CountersUpgradeable.Counter) | 403 | 0 | 32 | | -| _PERMIT_TYPEHASH_DEPRECATED_SLOT | bytes32 | 404 | 0 | 32 | +| \_PERMIT_TYPEHASH_DEPRECATED_SLOT | bytes32 | 404 | 0 | 32 | | -| __gap | uint256[49] | 405 | 0 | 1568 | +| **gap | uint256[49] | 405 | 0 | 1568 | | -| _delegates | mapping(address => address) | 454 | 0 | 32 | +| \_delegates | mapping(address => address) | 454 | 0 | 32 | | -| _checkpoints | mapping(address => struct ERC20VotesUpgradeable.Checkpoint[]) | 455 | 0 | 32 | +| \_checkpoints | mapping(address => struct ERC20VotesUpgradeable.Checkpoint[]) | 455 | 0 | 32 | | -| _totalSupplyCheckpoints | struct ERC20VotesUpgradeable.Checkpoint[] | 456 | 0 | 32 | +| \_totalSupplyCheckpoints | struct ERC20VotesUpgradeable.Checkpoint[] | 456 | 0 | 32 | | -| __gap | uint256[47] | 457 | 0 | 1504 | +| **gap | uint256[47] | 457 | 0 | 1504 | | -| __gap | uint256[50] | 504 | 0 | 1600 | +| **gap | uint256[50] | 504 | 0 | 1600 | ╰-----------------------------------------------------+---------------------------------------------------------------+------+--------+-------+--------------------------------------------------╯ - ## ComposeVerifier ╭------------------+-------------+------+--------+-------+------------------------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +=================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| __gap | uint256[50] | 251 | 0 | 1600 | +| \_\_gap | uint256[50] | 251 | 0 | 1600 | ╰------------------+-------------+------+--------+-------+------------------------------------------------------------------------╯ - ## TeeAnyVerifier ╭------------------+-------------+------+--------+-------+----------------------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +===============================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| __gap | uint256[50] | 251 | 0 | 1600 | +| **gap | uint256[50] | 251 | 0 | 1600 | | -| __gap | uint256[50] | 301 | 0 | 1600 | +| **gap | uint256[50] | 301 | 0 | 1600 | ╰------------------+-------------+------+--------+-------+----------------------------------------------------------------------╯ - ## ZkAndTeeVerifier ╭------------------+-------------+------+--------+-------+--------------------------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +===================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| __gap | uint256[50] | 251 | 0 | 1600 | +| **gap | uint256[50] | 251 | 0 | 1600 | | -| __gap | uint256[50] | 301 | 0 | 1600 | +| **gap | uint256[50] | 301 | 0 | 1600 | ╰------------------+-------------+------+--------+-------+--------------------------------------------------------------------------╯ - ## ZkAnyVerifier ╭------------------+-------------+------+--------+-------+--------------------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +=============================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| __gap | uint256[50] | 251 | 0 | 1600 | +| **gap | uint256[50] | 251 | 0 | 1600 | | -| __gap | uint256[50] | 301 | 0 | 1600 | +| **gap | uint256[50] | 301 | 0 | 1600 | ╰------------------+-------------+------+--------+-------+--------------------------------------------------------------------╯ - ## Risc0Verifier ╭------------------+--------------------------+------+--------+-------+------------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +==================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| isImageTrusted | mapping(bytes32 => bool) | 251 | 0 | 32 | +| isImageTrusted | mapping(bytes32 => bool) | 251 | 0 | 32 | | -| __gap | uint256[49] | 252 | 0 | 1568 | +| \_\_gap | uint256[49] | 252 | 0 | 1568 | ╰------------------+--------------------------+------+--------+-------+------------------------------------------------------------╯ - ## SP1Verifier ╭------------------+--------------------------+------+--------+-------+--------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +==============================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| isProgramTrusted | mapping(bytes32 => bool) | 251 | 0 | 32 | +| isProgramTrusted | mapping(bytes32 => bool) | 251 | 0 | 32 | | -| __gap | uint256[49] | 252 | 0 | 1568 | +| \_\_gap | uint256[49] | 252 | 0 | 1568 | ╰------------------+--------------------------+------+--------+-------+--------------------------------------------------------╯ - ## SgxVerifier ╭-------------------+-------------------------------------------------+------+--------+-------+--------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +======================================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| nextInstanceId | uint256 | 251 | 0 | 32 | +| nextInstanceId | uint256 | 251 | 0 | 32 | | -| instances | mapping(uint256 => struct SgxVerifier.Instance) | 252 | 0 | 32 | +| instances | mapping(uint256 => struct SgxVerifier.Instance) | 252 | 0 | 32 | | -| addressRegistered | mapping(address => bool) | 253 | 0 | 32 | +| addressRegistered | mapping(address => bool) | 253 | 0 | 32 | | -| __gap | uint256[47] | 254 | 0 | 1504 | +| \_\_gap | uint256[47] | 254 | 0 | 1504 | ╰-------------------+-------------------------------------------------+------+--------+-------+--------------------------------------------------------╯ - ## AutomataDcapV3Attestation ╭-------------------------+-------------------------------------------------+------+--------+-------+-----------------------------------------------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +===================================================================================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| sigVerifyLib | contract ISigVerifyLib | 251 | 0 | 20 | +| sigVerifyLib | contract ISigVerifyLib | 251 | 0 | 20 | | -| pemCertLib | contract IPEMCertChainLib | 252 | 0 | 20 | +| pemCertLib | contract IPEMCertChainLib | 252 | 0 | 20 | | -| checkLocalEnclaveReport | bool | 252 | 20 | 1 | +| checkLocalEnclaveReport | bool | 252 | 20 | 1 | | -| trustedUserMrEnclave | mapping(bytes32 => bool) | 253 | 0 | 32 | +| trustedUserMrEnclave | mapping(bytes32 => bool) | 253 | 0 | 32 | | -| trustedUserMrSigner | mapping(bytes32 => bool) | 254 | 0 | 32 | +| trustedUserMrSigner | mapping(bytes32 => bool) | 254 | 0 | 32 | | -| serialNumIsRevoked | mapping(uint256 => mapping(bytes => bool)) | 255 | 0 | 32 | +| serialNumIsRevoked | mapping(uint256 => mapping(bytes => bool)) | 255 | 0 | 32 | | -| tcbInfo | mapping(string => struct TCBInfoStruct.TCBInfo) | 256 | 0 | 32 | +| tcbInfo | mapping(string => struct TCBInfoStruct.TCBInfo) | 256 | 0 | 32 | | -| qeIdentity | struct EnclaveIdStruct.EnclaveId | 257 | 0 | 128 | +| qeIdentity | struct EnclaveIdStruct.EnclaveId | 257 | 0 | 128 | | -| __gap | uint256[39] | 261 | 0 | 1248 | +| \_\_gap | uint256[39] | 261 | 0 | 1248 | ╰-------------------------+-------------------------------------------------+------+--------+-------+-----------------------------------------------------------------------------------------------╯ - ## TaikoL1 ╭------------------+------------------------+------+--------+-------+--------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| state | struct TaikoData.State | 251 | 0 | 1600 | +| state | struct TaikoData.State | 251 | 0 | 1600 | | -| __gap | uint256[50] | 301 | 0 | 1600 | +| \_\_gap | uint256[50] | 301 | 0 | 1600 | ╰------------------+------------------------+------+--------+-------+--------------------------------------------╯ - ## HeklaTaikoL1 ╭------------------+------------------------+------+--------+-------+------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +==========================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| state | struct TaikoData.State | 251 | 0 | 1600 | +| state | struct TaikoData.State | 251 | 0 | 1600 | | -| __gap | uint256[50] | 301 | 0 | 1600 | +| \_\_gap | uint256[50] | 301 | 0 | 1600 | ╰------------------+------------------------+------+--------+-------+------------------------------------------------------╯ - ## HeklaTierRouter ╭------+------+------+--------+-------+----------╮ @@ -1045,265 +1021,258 @@ +================================================+ ╰------+------+------+--------+-------+----------╯ - ## MainnetBridge ╭------------------+-----------------------------------------+------+--------+-------+----------------------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +===========================================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| __reserved1 | uint64 | 251 | 0 | 8 | +| **reserved1 | uint64 | 251 | 0 | 8 | | -| nextMessageId | uint64 | 251 | 8 | 8 | +| nextMessageId | uint64 | 251 | 8 | 8 | | -| messageStatus | mapping(bytes32 => enum IBridge.Status) | 252 | 0 | 32 | +| messageStatus | mapping(bytes32 => enum IBridge.Status) | 252 | 0 | 32 | | -| __ctx | struct IBridge.Context | 253 | 0 | 64 | +| **ctx | struct IBridge.Context | 253 | 0 | 64 | | -| __reserved2 | uint256 | 255 | 0 | 32 | +| **reserved2 | uint256 | 255 | 0 | 32 | | -| __reserved3 | uint256 | 256 | 0 | 32 | +| **reserved3 | uint256 | 256 | 0 | 32 | | -| __gap | uint256[44] | 257 | 0 | 1408 | +| \_\_gap | uint256[44] | 257 | 0 | 1408 | ╰------------------+-----------------------------------------+------+--------+-------+----------------------------------------------------------------------╯ - ## MainnetSignalService ╭------------------+-----------------------------------------------+------+--------+-------+------------------------------------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +===============================================================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| topBlockId | mapping(uint64 => mapping(bytes32 => uint64)) | 251 | 0 | 32 | +| topBlockId | mapping(uint64 => mapping(bytes32 => uint64)) | 251 | 0 | 32 | | -| isAuthorized | mapping(address => bool) | 252 | 0 | 32 | +| isAuthorized | mapping(address => bool) | 252 | 0 | 32 | | -| __gap | uint256[48] | 253 | 0 | 1536 | +| \_\_gap | uint256[48] | 253 | 0 | 1536 | ╰------------------+-----------------------------------------------+------+--------+-------+------------------------------------------------------------------------------------╯ - ## MainnetERC20Vault ╭--------------------+------------------------------------------------------+------+--------+-------+------------------------------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +==================================================================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| __gap | uint256[50] | 251 | 0 | 1600 | +| **gap | uint256[50] | 251 | 0 | 1600 | | -| bridgedToCanonical | mapping(address => struct ERC20Vault.CanonicalERC20) | 301 | 0 | 32 | +| bridgedToCanonical | mapping(address => struct ERC20Vault.CanonicalERC20) | 301 | 0 | 32 | | -| canonicalToBridged | mapping(uint256 => mapping(address => address)) | 302 | 0 | 32 | +| canonicalToBridged | mapping(uint256 => mapping(address => address)) | 302 | 0 | 32 | | -| btokenDenylist | mapping(address => bool) | 303 | 0 | 32 | +| btokenDenylist | mapping(address => bool) | 303 | 0 | 32 | | -| lastMigrationStart | mapping(uint256 => mapping(address => uint256)) | 304 | 0 | 32 | +| lastMigrationStart | mapping(uint256 => mapping(address => uint256)) | 304 | 0 | 32 | | -| __gap | uint256[46] | 305 | 0 | 1472 | +| **gap | uint256[46] | 305 | 0 | 1472 | ╰--------------------+------------------------------------------------------+------+--------+-------+------------------------------------------------------------------------------╯ - ## MainnetERC1155Vault ╭--------------------+------------------------------------------------------+------+--------+-------+----------------------------------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +======================================================================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| __gap | uint256[50] | 251 | 0 | 1600 | +| **gap | uint256[50] | 251 | 0 | 1600 | | -| bridgedToCanonical | mapping(address => struct BaseNFTVault.CanonicalNFT) | 301 | 0 | 32 | +| bridgedToCanonical | mapping(address => struct BaseNFTVault.CanonicalNFT) | 301 | 0 | 32 | | -| canonicalToBridged | mapping(uint256 => mapping(address => address)) | 302 | 0 | 32 | +| canonicalToBridged | mapping(uint256 => mapping(address => address)) | 302 | 0 | 32 | | -| __gap | uint256[48] | 303 | 0 | 1536 | +| **gap | uint256[48] | 303 | 0 | 1536 | | -| __gap | uint256[50] | 351 | 0 | 1600 | +| **gap | uint256[50] | 351 | 0 | 1600 | | -| __gap | uint256[50] | 401 | 0 | 1600 | +| **gap | uint256[50] | 401 | 0 | 1600 | | -| __gap | uint256[50] | 451 | 0 | 1600 | +| \_\_gap | uint256[50] | 451 | 0 | 1600 | ╰--------------------+------------------------------------------------------+------+--------+-------+----------------------------------------------------------------------------------╯ - ## MainnetERC721Vault ╭--------------------+------------------------------------------------------+------+--------+-------+--------------------------------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +====================================================================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| __gap | uint256[50] | 251 | 0 | 1600 | +| **gap | uint256[50] | 251 | 0 | 1600 | | -| bridgedToCanonical | mapping(address => struct BaseNFTVault.CanonicalNFT) | 301 | 0 | 32 | +| bridgedToCanonical | mapping(address => struct BaseNFTVault.CanonicalNFT) | 301 | 0 | 32 | | -| canonicalToBridged | mapping(uint256 => mapping(address => address)) | 302 | 0 | 32 | +| canonicalToBridged | mapping(uint256 => mapping(address => address)) | 302 | 0 | 32 | | -| __gap | uint256[48] | 303 | 0 | 1536 | +| **gap | uint256[48] | 303 | 0 | 1536 | | -| __gap | uint256[50] | 351 | 0 | 1600 | +| \_\_gap | uint256[50] | 351 | 0 | 1600 | ╰--------------------+------------------------------------------------------+------+--------+-------+--------------------------------------------------------------------------------╯ - ## MainnetSharedAddressManager ╭------------------+-------------------------------------------------+------+--------+-------+--------------------------------------------------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +===============================================================================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| __addresses | mapping(uint256 => mapping(bytes32 => address)) | 251 | 0 | 32 | +| **addresses | mapping(uint256 => mapping(bytes32 => address)) | 251 | 0 | 32 | | -| __gap | uint256[49] | 252 | 0 | 1568 | +| **gap | uint256[49] | 252 | 0 | 1568 | ╰------------------+-------------------------------------------------+------+--------+-------+--------------------------------------------------------------------------------------------------╯ - ## RollupAddressCache ╭------+------+------+--------+-------+----------╮ @@ -1311,7 +1280,6 @@ +================================================+ ╰------+------+------+--------+-------+----------╯ - ## SharedAddressCache ╭------+------+------+--------+-------+----------╮ @@ -1319,7 +1287,6 @@ +================================================+ ╰------+------+------+--------+-------+----------╯ - ## AddressCache ╭------+------+------+--------+-------+----------╮ @@ -1327,356 +1294,346 @@ +================================================+ ╰------+------+------+--------+-------+----------╯ - ## MainnetSgxVerifier ╭-------------------+-------------------------------------------------+------+--------+-------+-------------------------------------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +===================================================================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| nextInstanceId | uint256 | 251 | 0 | 32 | +| nextInstanceId | uint256 | 251 | 0 | 32 | | -| instances | mapping(uint256 => struct SgxVerifier.Instance) | 252 | 0 | 32 | +| instances | mapping(uint256 => struct SgxVerifier.Instance) | 252 | 0 | 32 | | -| addressRegistered | mapping(address => bool) | 253 | 0 | 32 | +| addressRegistered | mapping(address => bool) | 253 | 0 | 32 | | -| __gap | uint256[47] | 254 | 0 | 1504 | +| \_\_gap | uint256[47] | 254 | 0 | 1504 | ╰-------------------+-------------------------------------------------+------+--------+-------+-------------------------------------------------------------------------------------╯ - ## MainnetSP1Verifier ╭------------------+--------------------------+------+--------+-------+-------------------------------------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +===========================================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| isProgramTrusted | mapping(bytes32 => bool) | 251 | 0 | 32 | +| isProgramTrusted | mapping(bytes32 => bool) | 251 | 0 | 32 | | -| __gap | uint256[49] | 252 | 0 | 1568 | +| \_\_gap | uint256[49] | 252 | 0 | 1568 | ╰------------------+--------------------------+------+--------+-------+-------------------------------------------------------------------------------------╯ - ## MainnetZkAnyVerifier ╭------------------+-------------+------+--------+-------+-----------------------------------------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +==================================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| __gap | uint256[50] | 251 | 0 | 1600 | +| **gap | uint256[50] | 251 | 0 | 1600 | | -| __gap | uint256[50] | 301 | 0 | 1600 | +| **gap | uint256[50] | 301 | 0 | 1600 | ╰------------------+-------------+------+--------+-------+-----------------------------------------------------------------------------------------╯ - ## MainnetRisc0Verifier ╭------------------+--------------------------+------+--------+-------+-----------------------------------------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +===============================================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| isImageTrusted | mapping(bytes32 => bool) | 251 | 0 | 32 | +| isImageTrusted | mapping(bytes32 => bool) | 251 | 0 | 32 | | -| __gap | uint256[49] | 252 | 0 | 1568 | +| \_\_gap | uint256[49] | 252 | 0 | 1568 | ╰------------------+--------------------------+------+--------+-------+-----------------------------------------------------------------------------------------╯ - ## MainnetZkAndTeeVerifier ╭------------------+-------------+------+--------+-------+-----------------------------------------------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +========================================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| __gap | uint256[50] | 251 | 0 | 1600 | +| **gap | uint256[50] | 251 | 0 | 1600 | | -| __gap | uint256[50] | 301 | 0 | 1600 | +| **gap | uint256[50] | 301 | 0 | 1600 | ╰------------------+-------------+------+--------+-------+-----------------------------------------------------------------------------------------------╯ - ## MainnetTeeAnyVerifier ╭------------------+-------------+------+--------+-------+-------------------------------------------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +====================================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| __gap | uint256[50] | 251 | 0 | 1600 | +| **gap | uint256[50] | 251 | 0 | 1600 | | -| __gap | uint256[50] | 301 | 0 | 1600 | +| **gap | uint256[50] | 301 | 0 | 1600 | ╰------------------+-------------+------+--------+-------+-------------------------------------------------------------------------------------------╯ - ## MainnetGuardianProver ╭-------------------------+-------------------------------------------------+------+--------+-------+---------------------------------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +=====================================================================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| guardianIds | mapping(address => uint256) | 251 | 0 | 32 | +| guardianIds | mapping(address => uint256) | 251 | 0 | 32 | | -| approvals | mapping(uint256 => mapping(bytes32 => uint256)) | 252 | 0 | 32 | +| approvals | mapping(uint256 => mapping(bytes32 => uint256)) | 252 | 0 | 32 | | -| guardians | address[] | 253 | 0 | 32 | +| guardians | address[] | 253 | 0 | 32 | | -| version | uint32 | 254 | 0 | 4 | +| version | uint32 | 254 | 0 | 4 | | -| minGuardians | uint32 | 254 | 4 | 4 | +| minGuardians | uint32 | 254 | 4 | 4 | | -| provingAutoPauseEnabled | bool | 254 | 8 | 1 | +| provingAutoPauseEnabled | bool | 254 | 8 | 1 | | -| latestProofHash | mapping(uint256 => mapping(uint256 => bytes32)) | 255 | 0 | 32 | +| latestProofHash | mapping(uint256 => mapping(uint256 => bytes32)) | 255 | 0 | 32 | | -| __gap | uint256[45] | 256 | 0 | 1440 | +| \_\_gap | uint256[45] | 256 | 0 | 1440 | ╰-------------------------+-------------------------------------------------+------+--------+-------+---------------------------------------------------------------------------------╯ - ## MainnetTaikoL1 ╭------------------+------------------------+------+--------+-------+-------------------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +=======================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| state | struct TaikoData.State | 251 | 0 | 1600 | +| state | struct TaikoData.State | 251 | 0 | 1600 | | -| __gap | uint256[50] | 301 | 0 | 1600 | +| \_\_gap | uint256[50] | 301 | 0 | 1600 | ╰------------------+------------------------+------+--------+-------+-------------------------------------------------------------------╯ - ## MainnetRollupAddressManager ╭------------------+-------------------------------------------------+------+--------+-------+---------------------------------------------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +==========================================================================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| __addresses | mapping(uint256 => mapping(bytes32 => address)) | 251 | 0 | 32 | +| **addresses | mapping(uint256 => mapping(bytes32 => address)) | 251 | 0 | 32 | | -| __gap | uint256[49] | 252 | 0 | 1568 | +| **gap | uint256[49] | 252 | 0 | 1568 | ╰------------------+-------------------------------------------------+------+--------+-------+---------------------------------------------------------------------------------------------╯ - ## MainnetTierRouter ╭------+------+------+--------+-------+----------╮ @@ -1684,195 +1641,188 @@ +================================================+ ╰------+------+------+--------+-------+----------╯ - ## MainnetProverSet ╭------------------+--------------------------+------+--------+-------+-----------------------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +=============================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| isProver | mapping(address => bool) | 251 | 0 | 32 | +| isProver | mapping(address => bool) | 251 | 0 | 32 | | -| admin | address | 252 | 0 | 20 | +| admin | address | 252 | 0 | 20 | | -| __gap | uint256[48] | 253 | 0 | 1536 | +| \_\_gap | uint256[48] | 253 | 0 | 1536 | ╰------------------+--------------------------+------+--------+-------+-----------------------------------------------------------------------╯ - ## TokenUnlock ╭------------------+--------------------------+------+--------+-------+---------------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +=====================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| amountVested | uint256 | 251 | 0 | 32 | +| amountVested | uint256 | 251 | 0 | 32 | | -| recipient | address | 252 | 0 | 20 | +| recipient | address | 252 | 0 | 20 | | -| tgeTimestamp | uint64 | 252 | 20 | 8 | +| tgeTimestamp | uint64 | 252 | 20 | 8 | | -| isProverSet | mapping(address => bool) | 253 | 0 | 32 | +| isProverSet | mapping(address => bool) | 253 | 0 | 32 | | -| __gap | uint256[47] | 254 | 0 | 1504 | +| \_\_gap | uint256[47] | 254 | 0 | 1504 | ╰------------------+--------------------------+------+--------+-------+---------------------------------------------------------------╯ - ## ProverSet ╭------------------+--------------------------+------+--------+-------+--------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +========================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| isProver | mapping(address => bool) | 251 | 0 | 32 | +| isProver | mapping(address => bool) | 251 | 0 | 32 | | -| admin | address | 252 | 0 | 20 | +| admin | address | 252 | 0 | 20 | | -| __gap | uint256[48] | 253 | 0 | 1536 | +| \_\_gap | uint256[48] | 253 | 0 | 1536 | ╰------------------+--------------------------+------+--------+-------+--------------------------------------------------╯ - ## GuardianProver ╭-------------------------+-------------------------------------------------+------+--------+-------+------------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +================================================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| guardianIds | mapping(address => uint256) | 251 | 0 | 32 | +| guardianIds | mapping(address => uint256) | 251 | 0 | 32 | | -| approvals | mapping(uint256 => mapping(bytes32 => uint256)) | 252 | 0 | 32 | +| approvals | mapping(uint256 => mapping(bytes32 => uint256)) | 252 | 0 | 32 | | -| guardians | address[] | 253 | 0 | 32 | +| guardians | address[] | 253 | 0 | 32 | | -| version | uint32 | 254 | 0 | 4 | +| version | uint32 | 254 | 0 | 4 | | -| minGuardians | uint32 | 254 | 4 | 4 | +| minGuardians | uint32 | 254 | 4 | 4 | | -| provingAutoPauseEnabled | bool | 254 | 8 | 1 | +| provingAutoPauseEnabled | bool | 254 | 8 | 1 | | -| latestProofHash | mapping(uint256 => mapping(uint256 => bytes32)) | 255 | 0 | 32 | +| latestProofHash | mapping(uint256 => mapping(uint256 => bytes32)) | 255 | 0 | 32 | | -| __gap | uint256[45] | 256 | 0 | 1440 | +| \_\_gap | uint256[45] | 256 | 0 | 1440 | ╰-------------------------+-------------------------------------------------+------+--------+-------+------------------------------------------------------------╯ - ## ForkManager ╭---------------+-------------+------+--------+-------+---------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +=========================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| \_\_gap | uint256[49] | 102 | 0 | 1568 | ╰---------------+-------------+------+--------+-------+---------------------------------------------------╯ - - diff --git a/packages/protocol/contract_layout_layer2.md b/packages/protocol/contract_layout_layer2.md index fd6476114df..d71e2364207 100644 --- a/packages/protocol/contract_layout_layer2.md +++ b/packages/protocol/contract_layout_layer2.md @@ -1,844 +1,825 @@ ## ERC1155Vault ╭--------------------+------------------------------------------------------+------+--------+-------+-----------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +===============================================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| __gap | uint256[50] | 251 | 0 | 1600 | +| **gap | uint256[50] | 251 | 0 | 1600 | | -| bridgedToCanonical | mapping(address => struct BaseNFTVault.CanonicalNFT) | 301 | 0 | 32 | +| bridgedToCanonical | mapping(address => struct BaseNFTVault.CanonicalNFT) | 301 | 0 | 32 | | -| canonicalToBridged | mapping(uint256 => mapping(address => address)) | 302 | 0 | 32 | +| canonicalToBridged | mapping(uint256 => mapping(address => address)) | 302 | 0 | 32 | | -| __gap | uint256[48] | 303 | 0 | 1536 | +| **gap | uint256[48] | 303 | 0 | 1536 | | -| __gap | uint256[50] | 351 | 0 | 1600 | +| **gap | uint256[50] | 351 | 0 | 1600 | | -| __gap | uint256[50] | 401 | 0 | 1600 | +| **gap | uint256[50] | 401 | 0 | 1600 | | -| __gap | uint256[50] | 451 | 0 | 1600 | +| \_\_gap | uint256[50] | 451 | 0 | 1600 | ╰--------------------+------------------------------------------------------+------+--------+-------+-----------------------------------------------------------╯ - ## ERC20Vault ╭--------------------+------------------------------------------------------+------+--------+-------+-------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +===========================================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| __gap | uint256[50] | 251 | 0 | 1600 | +| **gap | uint256[50] | 251 | 0 | 1600 | | -| bridgedToCanonical | mapping(address => struct ERC20Vault.CanonicalERC20) | 301 | 0 | 32 | +| bridgedToCanonical | mapping(address => struct ERC20Vault.CanonicalERC20) | 301 | 0 | 32 | | -| canonicalToBridged | mapping(uint256 => mapping(address => address)) | 302 | 0 | 32 | +| canonicalToBridged | mapping(uint256 => mapping(address => address)) | 302 | 0 | 32 | | -| btokenDenylist | mapping(address => bool) | 303 | 0 | 32 | +| btokenDenylist | mapping(address => bool) | 303 | 0 | 32 | | -| lastMigrationStart | mapping(uint256 => mapping(address => uint256)) | 304 | 0 | 32 | +| lastMigrationStart | mapping(uint256 => mapping(address => uint256)) | 304 | 0 | 32 | | -| __gap | uint256[46] | 305 | 0 | 1472 | +| **gap | uint256[46] | 305 | 0 | 1472 | ╰--------------------+------------------------------------------------------+------+--------+-------+-------------------------------------------------------╯ - ## ERC721Vault ╭--------------------+------------------------------------------------------+------+--------+-------+---------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +=============================================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| __gap | uint256[50] | 251 | 0 | 1600 | +| **gap | uint256[50] | 251 | 0 | 1600 | | -| bridgedToCanonical | mapping(address => struct BaseNFTVault.CanonicalNFT) | 301 | 0 | 32 | +| bridgedToCanonical | mapping(address => struct BaseNFTVault.CanonicalNFT) | 301 | 0 | 32 | | -| canonicalToBridged | mapping(uint256 => mapping(address => address)) | 302 | 0 | 32 | +| canonicalToBridged | mapping(uint256 => mapping(address => address)) | 302 | 0 | 32 | | -| __gap | uint256[48] | 303 | 0 | 1536 | +| **gap | uint256[48] | 303 | 0 | 1536 | | -| __gap | uint256[50] | 351 | 0 | 1600 | +| \_\_gap | uint256[50] | 351 | 0 | 1600 | ╰--------------------+------------------------------------------------------+------+--------+-------+---------------------------------------------------------╯ - ## BridgedERC20 ╭------------------+-------------------------------------------------+------+--------+-------+-----------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +========================================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| _balances | mapping(address => uint256) | 251 | 0 | 32 | +| \_balances | mapping(address => uint256) | 251 | 0 | 32 | | -| _allowances | mapping(address => mapping(address => uint256)) | 252 | 0 | 32 | +| \_allowances | mapping(address => mapping(address => uint256)) | 252 | 0 | 32 | | -| _totalSupply | uint256 | 253 | 0 | 32 | +| \_totalSupply | uint256 | 253 | 0 | 32 | | -| _name | string | 254 | 0 | 32 | +| \_name | string | 254 | 0 | 32 | | -| _symbol | string | 255 | 0 | 32 | +| \_symbol | string | 255 | 0 | 32 | | -| __gap | uint256[45] | 256 | 0 | 1440 | +| **gap | uint256[45] | 256 | 0 | 1440 | | -| srcToken | address | 301 | 0 | 20 | +| srcToken | address | 301 | 0 | 20 | | -| __srcDecimals | uint8 | 301 | 20 | 1 | +| **srcDecimals | uint8 | 301 | 20 | 1 | | -| srcChainId | uint256 | 302 | 0 | 32 | +| srcChainId | uint256 | 302 | 0 | 32 | | -| migratingAddress | address | 303 | 0 | 20 | +| migratingAddress | address | 303 | 0 | 20 | | -| migratingInbound | bool | 303 | 20 | 1 | +| migratingInbound | bool | 303 | 20 | 1 | | -| __gap | uint256[47] | 304 | 0 | 1504 | +| \_\_gap | uint256[47] | 304 | 0 | 1504 | ╰------------------+-------------------------------------------------+------+--------+-------+-----------------------------------------------------------╯ - ## BridgedERC20V2 ╭------------------+--------------------------------------------------------+------+--------+-------+---------------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +===================================================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| _balances | mapping(address => uint256) | 251 | 0 | 32 | +| \_balances | mapping(address => uint256) | 251 | 0 | 32 | | -| _allowances | mapping(address => mapping(address => uint256)) | 252 | 0 | 32 | +| \_allowances | mapping(address => mapping(address => uint256)) | 252 | 0 | 32 | | -| _totalSupply | uint256 | 253 | 0 | 32 | +| \_totalSupply | uint256 | 253 | 0 | 32 | | -| _name | string | 254 | 0 | 32 | +| \_name | string | 254 | 0 | 32 | | -| _symbol | string | 255 | 0 | 32 | +| \_symbol | string | 255 | 0 | 32 | | -| __gap | uint256[45] | 256 | 0 | 1440 | +| **gap | uint256[45] | 256 | 0 | 1440 | | -| srcToken | address | 301 | 0 | 20 | +| srcToken | address | 301 | 0 | 20 | | -| __srcDecimals | uint8 | 301 | 20 | 1 | +| **srcDecimals | uint8 | 301 | 20 | 1 | | -| srcChainId | uint256 | 302 | 0 | 32 | +| srcChainId | uint256 | 302 | 0 | 32 | | -| migratingAddress | address | 303 | 0 | 20 | +| migratingAddress | address | 303 | 0 | 20 | | -| migratingInbound | bool | 303 | 20 | 1 | +| migratingInbound | bool | 303 | 20 | 1 | | -| __gap | uint256[47] | 304 | 0 | 1504 | +| **gap | uint256[47] | 304 | 0 | 1504 | | -| _hashedName | bytes32 | 351 | 0 | 32 | +| \_hashedName | bytes32 | 351 | 0 | 32 | | -| _hashedVersion | bytes32 | 352 | 0 | 32 | +| \_hashedVersion | bytes32 | 352 | 0 | 32 | | -| _name | string | 353 | 0 | 32 | +| \_name | string | 353 | 0 | 32 | | -| _version | string | 354 | 0 | 32 | +| \_version | string | 354 | 0 | 32 | | -| __gap | uint256[48] | 355 | 0 | 1536 | +| **gap | uint256[48] | 355 | 0 | 1536 | | -| _nonces | mapping(address => struct CountersUpgradeable.Counter) | 403 | 0 | 32 | +| \_nonces | mapping(address => struct CountersUpgradeable.Counter) | 403 | 0 | 32 | | -| __gap | uint256[49] | 404 | 0 | 1568 | +| \_\_gap | uint256[49] | 404 | 0 | 1568 | ╰------------------+--------------------------------------------------------+------+--------+-------+---------------------------------------------------------------╯ - ## BridgedERC721 ╭--------------------+----------------------------------------------+------+--------+-------+-------------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +=========================================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| __gap | uint256[50] | 251 | 0 | 1600 | +| **gap | uint256[50] | 251 | 0 | 1600 | | -| _name | string | 301 | 0 | 32 | +| \_name | string | 301 | 0 | 32 | | -| _symbol | string | 302 | 0 | 32 | +| \_symbol | string | 302 | 0 | 32 | | -| _owners | mapping(uint256 => address) | 303 | 0 | 32 | +| \_owners | mapping(uint256 => address) | 303 | 0 | 32 | | -| _balances | mapping(address => uint256) | 304 | 0 | 32 | +| \_balances | mapping(address => uint256) | 304 | 0 | 32 | | -| _tokenApprovals | mapping(uint256 => address) | 305 | 0 | 32 | +| \_tokenApprovals | mapping(uint256 => address) | 305 | 0 | 32 | | -| _operatorApprovals | mapping(address => mapping(address => bool)) | 306 | 0 | 32 | +| \_operatorApprovals | mapping(address => mapping(address => bool)) | 306 | 0 | 32 | | -| __gap | uint256[44] | 307 | 0 | 1408 | +| **gap | uint256[44] | 307 | 0 | 1408 | | -| srcToken | address | 351 | 0 | 20 | +| srcToken | address | 351 | 0 | 20 | | -| srcChainId | uint256 | 352 | 0 | 32 | +| srcChainId | uint256 | 352 | 0 | 32 | | -| __gap | uint256[48] | 353 | 0 | 1536 | +| \_\_gap | uint256[48] | 353 | 0 | 1536 | ╰--------------------+----------------------------------------------+------+--------+-------+-------------------------------------------------------------╯ - ## BridgedERC1155 ╭--------------------+-------------------------------------------------+------+--------+-------+---------------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +==============================================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| __gap | uint256[50] | 251 | 0 | 1600 | +| **gap | uint256[50] | 251 | 0 | 1600 | | -| _balances | mapping(uint256 => mapping(address => uint256)) | 301 | 0 | 32 | +| \_balances | mapping(uint256 => mapping(address => uint256)) | 301 | 0 | 32 | | -| _operatorApprovals | mapping(address => mapping(address => bool)) | 302 | 0 | 32 | +| \_operatorApprovals | mapping(address => mapping(address => bool)) | 302 | 0 | 32 | | -| _uri | string | 303 | 0 | 32 | +| \_uri | string | 303 | 0 | 32 | | -| __gap | uint256[47] | 304 | 0 | 1504 | +| **gap | uint256[47] | 304 | 0 | 1504 | | -| srcToken | address | 351 | 0 | 20 | +| srcToken | address | 351 | 0 | 20 | | -| srcChainId | uint256 | 352 | 0 | 32 | +| srcChainId | uint256 | 352 | 0 | 32 | | -| symbol | string | 353 | 0 | 32 | +| symbol | string | 353 | 0 | 32 | | -| name | string | 354 | 0 | 32 | +| name | string | 354 | 0 | 32 | | -| __gap | uint256[46] | 355 | 0 | 1472 | +| \_\_gap | uint256[46] | 355 | 0 | 1472 | ╰--------------------+-------------------------------------------------+------+--------+-------+---------------------------------------------------------------╯ - ## Bridge ╭------------------+-----------------------------------------+------+--------+-------+-------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| __reserved1 | uint64 | 251 | 0 | 8 | +| **reserved1 | uint64 | 251 | 0 | 8 | | -| nextMessageId | uint64 | 251 | 8 | 8 | +| nextMessageId | uint64 | 251 | 8 | 8 | | -| messageStatus | mapping(bytes32 => enum IBridge.Status) | 252 | 0 | 32 | +| messageStatus | mapping(bytes32 => enum IBridge.Status) | 252 | 0 | 32 | | -| __ctx | struct IBridge.Context | 253 | 0 | 64 | +| **ctx | struct IBridge.Context | 253 | 0 | 64 | | -| __reserved2 | uint256 | 255 | 0 | 32 | +| **reserved2 | uint256 | 255 | 0 | 32 | | -| __reserved3 | uint256 | 256 | 0 | 32 | +| **reserved3 | uint256 | 256 | 0 | 32 | | -| __gap | uint256[44] | 257 | 0 | 1408 | +| \_\_gap | uint256[44] | 257 | 0 | 1408 | ╰------------------+-----------------------------------------+------+--------+-------+-------------------------------------------╯ - ## QuotaManager ╭------------------+-----------------------------------------------+------+--------+-------+-------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +==================================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| tokenQuota | mapping(address => struct QuotaManager.Quota) | 251 | 0 | 32 | +| tokenQuota | mapping(address => struct QuotaManager.Quota) | 251 | 0 | 32 | | -| quotaPeriod | uint24 | 252 | 0 | 3 | +| quotaPeriod | uint24 | 252 | 0 | 3 | | -| __gap | uint256[48] | 253 | 0 | 1536 | +| \_\_gap | uint256[48] | 253 | 0 | 1536 | ╰------------------+-----------------------------------------------+------+--------+-------+-------------------------------------------------------╯ - ## AddressManager ╭------------------+-------------------------------------------------+------+--------+-------+-----------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +========================================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| __addresses | mapping(uint256 => mapping(bytes32 => address)) | 251 | 0 | 32 | +| **addresses | mapping(uint256 => mapping(bytes32 => address)) | 251 | 0 | 32 | | -| __gap | uint256[49] | 252 | 0 | 1568 | +| **gap | uint256[49] | 252 | 0 | 1568 | ╰------------------+-------------------------------------------------+------+--------+-------+-----------------------------------------------------------╯ - ## AddressResolver ╭----------------+-------------+------+--------+-------+-------------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +====================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| addressManager | address | 0 | 2 | 20 | +| addressManager | address | 0 | 2 | 20 | | -| __gap | uint256[49] | 1 | 0 | 1568 | +| \_\_gap | uint256[49] | 1 | 0 | 1568 | ╰----------------+-------------+------+--------+-------+-------------------------------------------------------------╯ - ## EssentialContract ╭------------------+-------------+------+--------+-------+-----------------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +==========================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | ╰------------------+-------------+------+--------+-------+-----------------------------------------------------------------╯ - ## SignalService ╭------------------+-----------------------------------------------+------+--------+-------+---------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +====================================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| topBlockId | mapping(uint64 => mapping(bytes32 => uint64)) | 251 | 0 | 32 | +| topBlockId | mapping(uint64 => mapping(bytes32 => uint64)) | 251 | 0 | 32 | | -| isAuthorized | mapping(address => bool) | 252 | 0 | 32 | +| isAuthorized | mapping(address => bool) | 252 | 0 | 32 | | -| __gap | uint256[48] | 253 | 0 | 1536 | +| \_\_gap | uint256[48] | 253 | 0 | 1536 | ╰------------------+-----------------------------------------------+------+--------+-------+---------------------------------------------------------╯ - ## BridgedTaikoToken ╭-----------------------------------------------------+---------------------------------------------------------------+------+--------+-------+----------------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +==============================================================================================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| __slots_previously_used_by_ERC20SnapshotUpgradeable | uint256[50] | 251 | 0 | 1600 | +| **slots_previously_used_by_ERC20SnapshotUpgradeable | uint256[50] | 251 | 0 | 1600 | | -| _balances | mapping(address => uint256) | 301 | 0 | 32 | +| \_balances | mapping(address => uint256) | 301 | 0 | 32 | | -| _allowances | mapping(address => mapping(address => uint256)) | 302 | 0 | 32 | +| \_allowances | mapping(address => mapping(address => uint256)) | 302 | 0 | 32 | | -| _totalSupply | uint256 | 303 | 0 | 32 | +| \_totalSupply | uint256 | 303 | 0 | 32 | | -| _name | string | 304 | 0 | 32 | +| \_name | string | 304 | 0 | 32 | | -| _symbol | string | 305 | 0 | 32 | +| \_symbol | string | 305 | 0 | 32 | | -| __gap | uint256[45] | 306 | 0 | 1440 | +| **gap | uint256[45] | 306 | 0 | 1440 | | -| _hashedName | bytes32 | 351 | 0 | 32 | +| \_hashedName | bytes32 | 351 | 0 | 32 | | -| _hashedVersion | bytes32 | 352 | 0 | 32 | +| \_hashedVersion | bytes32 | 352 | 0 | 32 | | -| _name | string | 353 | 0 | 32 | +| \_name | string | 353 | 0 | 32 | | -| _version | string | 354 | 0 | 32 | +| \_version | string | 354 | 0 | 32 | | -| __gap | uint256[48] | 355 | 0 | 1536 | +| **gap | uint256[48] | 355 | 0 | 1536 | | -| _nonces | mapping(address => struct CountersUpgradeable.Counter) | 403 | 0 | 32 | +| \_nonces | mapping(address => struct CountersUpgradeable.Counter) | 403 | 0 | 32 | | -| _PERMIT_TYPEHASH_DEPRECATED_SLOT | bytes32 | 404 | 0 | 32 | +| \_PERMIT_TYPEHASH_DEPRECATED_SLOT | bytes32 | 404 | 0 | 32 | | -| __gap | uint256[49] | 405 | 0 | 1568 | +| **gap | uint256[49] | 405 | 0 | 1568 | | -| _delegates | mapping(address => address) | 454 | 0 | 32 | +| \_delegates | mapping(address => address) | 454 | 0 | 32 | | -| _checkpoints | mapping(address => struct ERC20VotesUpgradeable.Checkpoint[]) | 455 | 0 | 32 | +| \_checkpoints | mapping(address => struct ERC20VotesUpgradeable.Checkpoint[]) | 455 | 0 | 32 | | -| _totalSupplyCheckpoints | struct ERC20VotesUpgradeable.Checkpoint[] | 456 | 0 | 32 | +| \_totalSupplyCheckpoints | struct ERC20VotesUpgradeable.Checkpoint[] | 456 | 0 | 32 | | -| __gap | uint256[47] | 457 | 0 | 1504 | +| **gap | uint256[47] | 457 | 0 | 1504 | | -| __gap | uint256[50] | 504 | 0 | 1600 | +| **gap | uint256[50] | 504 | 0 | 1600 | ╰-----------------------------------------------------+---------------------------------------------------------------+------+--------+-------+----------------------------------------------------------------╯ - ## DelegateOwner ╭------------------+-------------+------+--------+-------+--------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +===========================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| remoteChainId | uint64 | 251 | 0 | 8 | +| remoteChainId | uint64 | 251 | 0 | 8 | | -| admin | address | 251 | 8 | 20 | +| admin | address | 251 | 8 | 20 | | -| nextTxId | uint64 | 252 | 0 | 8 | +| nextTxId | uint64 | 252 | 0 | 8 | | -| remoteOwner | address | 252 | 8 | 20 | +| remoteOwner | address | 252 | 8 | 20 | | -| __gap | uint256[48] | 253 | 0 | 1536 | +| \_\_gap | uint256[48] | 253 | 0 | 1536 | ╰------------------+-------------+------+--------+-------+--------------------------------------------------╯ - ## TaikoL2 ╭------------------+-----------------------------+------+--------+-------+--------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +=====================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| _blockhashes | mapping(uint256 => bytes32) | 251 | 0 | 32 | +| \_blockhashes | mapping(uint256 => bytes32) | 251 | 0 | 32 | | -| publicInputHash | bytes32 | 252 | 0 | 32 | +| publicInputHash | bytes32 | 252 | 0 | 32 | | -| parentGasExcess | uint64 | 253 | 0 | 8 | +| parentGasExcess | uint64 | 253 | 0 | 8 | | -| lastSyncedBlock | uint64 | 253 | 8 | 8 | +| lastSyncedBlock | uint64 | 253 | 8 | 8 | | -| parentTimestamp | uint64 | 253 | 16 | 8 | +| parentTimestamp | uint64 | 253 | 16 | 8 | | -| parentGasTarget | uint64 | 253 | 24 | 8 | +| parentGasTarget | uint64 | 253 | 24 | 8 | | -| l1ChainId | uint64 | 254 | 0 | 8 | +| l1ChainId | uint64 | 254 | 0 | 8 | | -| __gap | uint256[46] | 255 | 0 | 1472 | +| \_\_gap | uint256[46] | 255 | 0 | 1472 | ╰------------------+-----------------------------+------+--------+-------+--------------------------------------------╯ - ## HeklaTaikoL2 ╭------------------+-----------------------------+------+--------+-------+------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +===============================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| _blockhashes | mapping(uint256 => bytes32) | 251 | 0 | 32 | +| \_blockhashes | mapping(uint256 => bytes32) | 251 | 0 | 32 | | -| publicInputHash | bytes32 | 252 | 0 | 32 | +| publicInputHash | bytes32 | 252 | 0 | 32 | | -| parentGasExcess | uint64 | 253 | 0 | 8 | +| parentGasExcess | uint64 | 253 | 0 | 8 | | -| lastSyncedBlock | uint64 | 253 | 8 | 8 | +| lastSyncedBlock | uint64 | 253 | 8 | 8 | | -| parentTimestamp | uint64 | 253 | 16 | 8 | +| parentTimestamp | uint64 | 253 | 16 | 8 | | -| parentGasTarget | uint64 | 253 | 24 | 8 | +| parentGasTarget | uint64 | 253 | 24 | 8 | | -| l1ChainId | uint64 | 254 | 0 | 8 | +| l1ChainId | uint64 | 254 | 0 | 8 | | -| __gap | uint256[46] | 255 | 0 | 1472 | +| \_\_gap | uint256[46] | 255 | 0 | 1472 | ╰------------------+-----------------------------+------+--------+-------+------------------------------------------------------╯ - ## MainnetTaikoL2 ╭------------------+-----------------------------+------+--------+-------+------------------------------------------------------------╮ -| Name | Type | Slot | Offset | Bytes | +| Name | Type | Slot | Offset | Bytes | +=====================================================================================================================================+ -| _initialized | uint8 | 0 | 0 | 1 | +| \_initialized | uint8 | 0 | 0 | 1 | | -| _initializing | bool | 0 | 1 | 1 | +| \_initializing | bool | 0 | 1 | 1 | | -| __gap | uint256[50] | 1 | 0 | 1600 | +| **gap | uint256[50] | 1 | 0 | 1600 | | -| _owner | address | 51 | 0 | 20 | +| \_owner | address | 51 | 0 | 20 | | -| __gap | uint256[49] | 52 | 0 | 1568 | +| **gap | uint256[49] | 52 | 0 | 1568 | | -| _pendingOwner | address | 101 | 0 | 20 | +| \_pendingOwner | address | 101 | 0 | 20 | | -| __gap | uint256[49] | 102 | 0 | 1568 | +| **gap | uint256[49] | 102 | 0 | 1568 | | -| addressManager | address | 151 | 0 | 20 | +| addressManager | address | 151 | 0 | 20 | | -| __gap | uint256[49] | 152 | 0 | 1568 | +| **gap | uint256[49] | 152 | 0 | 1568 | | -| __reentry | uint8 | 201 | 0 | 1 | +| **reentry | uint8 | 201 | 0 | 1 | | -| __paused | uint8 | 201 | 1 | 1 | +| **paused | uint8 | 201 | 1 | 1 | | -| __lastUnpausedAt | uint64 | 201 | 2 | 8 | +| **lastUnpausedAt | uint64 | 201 | 2 | 8 | | -| __gap | uint256[49] | 202 | 0 | 1568 | +| **gap | uint256[49] | 202 | 0 | 1568 | | -| _blockhashes | mapping(uint256 => bytes32) | 251 | 0 | 32 | +| \_blockhashes | mapping(uint256 => bytes32) | 251 | 0 | 32 | | -| publicInputHash | bytes32 | 252 | 0 | 32 | +| publicInputHash | bytes32 | 252 | 0 | 32 | | -| parentGasExcess | uint64 | 253 | 0 | 8 | +| parentGasExcess | uint64 | 253 | 0 | 8 | | -| lastSyncedBlock | uint64 | 253 | 8 | 8 | +| lastSyncedBlock | uint64 | 253 | 8 | 8 | | -| parentTimestamp | uint64 | 253 | 16 | 8 | +| parentTimestamp | uint64 | 253 | 16 | 8 | | -| parentGasTarget | uint64 | 253 | 24 | 8 | +| parentGasTarget | uint64 | 253 | 24 | 8 | | -| l1ChainId | uint64 | 254 | 0 | 8 | +| l1ChainId | uint64 | 254 | 0 | 8 | | -| __gap | uint256[46] | 255 | 0 | 1472 | +| \_\_gap | uint256[46] | 255 | 0 | 1472 | ╰------------------+-----------------------------+------+--------+-------+------------------------------------------------------------╯ - - diff --git a/packages/taiko-client/.swaggo b/packages/taiko-client/.swaggo index 8cc34d878a4..e69de29bb2d 100644 --- a/packages/taiko-client/.swaggo +++ b/packages/taiko-client/.swaggo @@ -1,2 +0,0 @@ -replace common.Address string -replace encoding.TierFee uint64 \ No newline at end of file diff --git a/packages/taiko-client/bindings/encoding/input.go b/packages/taiko-client/bindings/encoding/input.go index 0aebf3113ee..b0d9fab8c8a 100644 --- a/packages/taiko-client/bindings/encoding/input.go +++ b/packages/taiko-client/bindings/encoding/input.go @@ -3,6 +3,7 @@ package encoding import ( "errors" "fmt" + "math/big" "github.com/ethereum/go-ethereum/accounts/abi" "github.com/ethereum/go-ethereum/log" @@ -294,7 +295,10 @@ var ( {Name: "TaikoData.Transition", Type: transitionComponentsType}, {Name: "TaikoData.TierProof", Type: tierProofComponentsType}, } - proveBlocksInputArgs = abi.Arguments{ + stringType, _ = abi.NewType("string", "TAIKO_DIFFICULTY", nil) + uint64Type, _ = abi.NewType("uint64", "local.b.numBlocks", nil) + difficultyCalculationInputArgs = abi.Arguments{{Type: stringType}, {Type: uint64Type}} + proveBlocksInputArgs = abi.Arguments{ {Name: "TaikoData.BlockMetadata", Type: blockMetadataV2ComponentsType}, {Name: "TaikoData.Transition", Type: transitionComponentsType}, } @@ -430,6 +434,16 @@ func EncodeProveBlockInput( return b, nil } +// EncodeDifficultCalcutionParams performs the solidity `abi.encode` for the +// `block.difficulty` hash payload. +func EncodeDifficultyCalcutionParams(numBlocks uint64) ([]byte, error) { + b, err := difficultyCalculationInputArgs.Pack("TAIKO_DIFFICULTY", numBlocks) + if err != nil { + return nil, fmt.Errorf("failed to abi.encode `block.difficulty` hash payload, %w", err) + } + return b, nil +} + // EncodeProveBlocksInput performs the solidity `abi.encode` for the given TaikoL1.proveBlocks input. func EncodeProveBlocksInput( metas []metadata.TaikoBlockMetaData, @@ -493,3 +507,13 @@ func UnpackTxListBytes(txData []byte) ([]byte, error) { return inputs, nil } + +// EncodeBaseFeeConfig encodes the block.extraData field from the given base fee config. +func EncodeBaseFeeConfig(baseFeeConfig *bindings.LibSharedDataBaseFeeConfig) [32]byte { + var ( + bytes32Value [32]byte + uintValue = new(big.Int).SetUint64(uint64(baseFeeConfig.SharingPctg)) + ) + copy(bytes32Value[32-len(uintValue.Bytes()):], uintValue.Bytes()) + return bytes32Value +} diff --git a/packages/taiko-client/cmd/flags/driver.go b/packages/taiko-client/cmd/flags/driver.go index f068a5d075e..b308df53278 100644 --- a/packages/taiko-client/cmd/flags/driver.go +++ b/packages/taiko-client/cmd/flags/driver.go @@ -52,6 +52,33 @@ var ( Category: driverCategory, EnvVars: []string{"BLOB_SOCIAL_SCAN_ENDPOINT"}, } + // soft block server + SoftBlockServerPort = &cli.Uint64Flag{ + Name: "softBlock.port", + Usage: "HTTP port of the soft block server, 0 means disabled", + Category: driverCategory, + EnvVars: []string{"SOFT_BLOCK_SERVER_PORT"}, + } + SoftBlockServerJWTSecret = &cli.StringFlag{ + Name: "softBlock.jwtSecret", + Usage: "Path to a JWT secret to use for the soft block server", + Category: driverCategory, + EnvVars: []string{"SOFT_BLOCK_SERVER_JWT_SECRET"}, + } + SoftBlockServerCORSOrigins = &cli.StringFlag{ + Name: "softBlock.corsOrigins", + Usage: "CORS Origins settings for the soft block server", + Category: driverCategory, + Value: "*", + EnvVars: []string{"SOFT_BLOCK_SERVER_CORS_ORIGINS"}, + } + SoftBlockServerCheckSig = &cli.BoolFlag{ + Name: "softBlock.signatureCheck", + Usage: "If the soft block server will check the signature of the incoming transactions batches", + Category: driverCategory, + Value: false, + EnvVars: []string{"SOFT_BLOCK_SERVER_SIGNATURE_CHECK"}, + } ) // DriverFlags All driver flags. @@ -66,4 +93,8 @@ var DriverFlags = MergeFlags(CommonFlags, []cli.Flag{ MaxExponent, BlobServerEndpoint, SocialScanEndpoint, + SoftBlockServerPort, + SoftBlockServerJWTSecret, + SoftBlockServerCORSOrigins, + SoftBlockServerCheckSig, }) diff --git a/packages/taiko-client/docs/docs.go b/packages/taiko-client/docs/docs.go new file mode 100644 index 00000000000..ca9a73974e5 --- /dev/null +++ b/packages/taiko-client/docs/docs.go @@ -0,0 +1,378 @@ +// Package docs Code generated by swaggo/swag. DO NOT EDIT +package docs + +import "github.com/swaggo/swag" + +const docTemplate = `{ + "schemes": {{ marshal .Schemes }}, + "swagger": "2.0", + "info": { + "description": "{{escape .Description}}", + "title": "{{.Title}}", + "termsOfService": "http://swagger.io/terms/", + "contact": { + "name": "API Support", + "url": "https://community.taiko.xyz/", + "email": "info@taiko.xyz" + }, + "license": { + "name": "MIT", + "url": "https://github.com/taikoxyz/taiko-mono/blob/main/LICENSE.md" + }, + "version": "{{.Version}}" + }, + "host": "{{.Host}}", + "basePath": "{{.BasePath}}", + "paths": { + "/healthz": { + "get": { + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "summary": "Get current server health status", + "operationId": "health-check", + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + } + } + } + }, + "/softBlocks": { + "post": { + "description": "Insert a batch of transactions into a soft block for preconfirmation. If the batch is the\nfirst for a block, a new soft block will be created. Otherwise, the transactions will\nbe appended to the existing soft block. The API will fail if:\n1) the block is not soft\n2) block-level parameters are invalid or do not match the current soft block’s parameters\n3) the batch ID is not exactly 1 greater than the previous one\n4) the last batch of the block indicates no further transactions are allowed", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "description": "soft block creation request body", + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/softblocks.BuildSoftBlockRequestBody" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/softblocks.BuildSoftBlockResponseBody" + } + } + } + }, + "delete": { + "description": "Remove all soft blocks from the blockchain beyond the specified block height,\nensuring the latest block ID does not exceed the given height. This method will fail if\nthe block with an ID one greater than the specified height is not a soft block. If the\nspecified block height is greater than the latest soft block ID, the method will succeed\nwithout modifying the blockchain.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "description": "soft blocks removing request body", + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/softblocks.RemoveSoftBlocksRequestBody" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/softblocks.RemoveSoftBlocksResponseBody" + } + } + } + } + } + }, + "definitions": { + "big.Int": { + "type": "object" + }, + "softblocks.BuildSoftBlockRequestBody": { + "type": "object", + "properties": { + "transactionBatch": { + "description": "@param transactionBatch TransactionBatch Transaction batch to be inserted into the soft block", + "allOf": [ + { + "$ref": "#/definitions/softblocks.TransactionBatch" + } + ] + } + } + }, + "softblocks.BuildSoftBlockResponseBody": { + "type": "object", + "properties": { + "blockHeader": { + "description": "@param blockHeader types.Header of the soft block", + "allOf": [ + { + "$ref": "#/definitions/types.Header" + } + ] + } + } + }, + "softblocks.RemoveSoftBlocksRequestBody": { + "type": "object", + "properties": { + "newLastBlockId": { + "description": "@param newLastBlockID uint64 New last block ID of the blockchain, it should\n@param not smaller than the canonical chain's highest block ID.", + "type": "integer" + } + } + }, + "softblocks.RemoveSoftBlocksResponseBody": { + "type": "object", + "properties": { + "headsRemoved": { + "description": "@param headsRemoved uint64 Number of soft heads removed", + "type": "integer" + }, + "lastBlockId": { + "description": "@param lastBlockID uint64 Current highest block ID of the blockchain (including soft blocks)", + "type": "integer" + }, + "lastProposedBlockID": { + "description": "@param lastProposedBlockID uint64 Highest block ID of the cnonical chain", + "type": "integer" + } + } + }, + "softblocks.SoftBlockParams": { + "type": "object", + "properties": { + "anchorBlockID": { + "description": "@param anchorBlockID uint64 ` + "`" + `_anchorBlockId` + "`" + ` parameter of the ` + "`" + `anchorV2` + "`" + ` transaction in soft block", + "type": "integer" + }, + "anchorStateRoot": { + "description": "@param anchorStateRoot string ` + "`" + `_anchorStateRoot` + "`" + ` parameter of the ` + "`" + `anchorV2` + "`" + ` transaction in soft block", + "type": "array", + "items": { + "type": "integer" + } + }, + "coinbase": { + "description": "@param coinbase string Coinbase of the soft block", + "type": "array", + "items": { + "type": "integer" + } + }, + "timestamp": { + "description": "@param timestamp uint64 Timestamp of the soft block", + "type": "integer" + } + } + }, + "softblocks.TransactionBatch": { + "type": "object", + "properties": { + "batchId": { + "description": "@param batchId uint64 ID of this transaction batch", + "type": "integer" + }, + "batchType": { + "description": "@param batchType TransactionBatchMarker Marker of the transaction batch,\n@param either ` + "`" + `end_of_block` + "`" + `, ` + "`" + `end_of_preconf` + "`" + ` or empty", + "allOf": [ + { + "$ref": "#/definitions/softblocks.TransactionBatchMarker" + } + ] + }, + "blockId": { + "description": "@param blockId uint64 Block ID of the soft block", + "type": "integer" + }, + "blockParams": { + "description": "@param blockParams SoftBlockParams Block parameters of the soft block", + "allOf": [ + { + "$ref": "#/definitions/softblocks.SoftBlockParams" + } + ] + }, + "signature": { + "description": "@param signature string Signature of this transaction batch", + "type": "string" + }, + "transactions": { + "description": "@param transactions string zlib compressed RLP encoded bytes of a transactions list", + "type": "array", + "items": { + "type": "integer" + } + } + } + }, + "softblocks.TransactionBatchMarker": { + "type": "string", + "enum": [ + "", + "endOfBlock", + "endOfPreconf" + ], + "x-enum-varnames": [ + "BatchMarkerEmpty", + "BatchMarkerEOB", + "BatchMarkerEOP" + ] + }, + "types.Header": { + "type": "object", + "properties": { + "baseFeePerGas": { + "description": "BaseFee was added by EIP-1559 and is ignored in legacy headers.", + "allOf": [ + { + "$ref": "#/definitions/big.Int" + } + ] + }, + "blobGasUsed": { + "description": "BlobGasUsed was added by EIP-4844 and is ignored in legacy headers.", + "type": "integer" + }, + "difficulty": { + "$ref": "#/definitions/big.Int" + }, + "excessBlobGas": { + "description": "ExcessBlobGas was added by EIP-4844 and is ignored in legacy headers.", + "type": "integer" + }, + "extraData": { + "type": "array", + "items": { + "type": "integer" + } + }, + "gasLimit": { + "type": "integer" + }, + "gasUsed": { + "type": "integer" + }, + "logsBloom": { + "type": "array", + "items": { + "type": "integer" + } + }, + "miner": { + "type": "array", + "items": { + "type": "integer" + } + }, + "mixHash": { + "type": "array", + "items": { + "type": "integer" + } + }, + "nonce": { + "type": "array", + "items": { + "type": "integer" + } + }, + "number": { + "$ref": "#/definitions/big.Int" + }, + "parentBeaconBlockRoot": { + "description": "ParentBeaconRoot was added by EIP-4788 and is ignored in legacy headers.", + "type": "array", + "items": { + "type": "integer" + } + }, + "parentHash": { + "type": "array", + "items": { + "type": "integer" + } + }, + "receiptsRoot": { + "type": "array", + "items": { + "type": "integer" + } + }, + "requestsRoot": { + "description": "RequestsHash was added by EIP-7685 and is ignored in legacy headers.", + "type": "array", + "items": { + "type": "integer" + } + }, + "sha3Uncles": { + "type": "array", + "items": { + "type": "integer" + } + }, + "stateRoot": { + "type": "array", + "items": { + "type": "integer" + } + }, + "timestamp": { + "type": "integer" + }, + "transactionsRoot": { + "type": "array", + "items": { + "type": "integer" + } + }, + "withdrawalsRoot": { + "description": "WithdrawalsHash was added by EIP-4895 and is ignored in legacy headers.", + "type": "array", + "items": { + "type": "integer" + } + } + } + } + } +}` + +// SwaggerInfo holds exported Swagger Info so clients can modify it +var SwaggerInfo = &swag.Spec{ + Version: "1.0", + Host: "", + BasePath: "", + Schemes: []string{}, + Title: "Taiko Soft Block Server API", + Description: "", + InfoInstanceName: "swagger", + SwaggerTemplate: docTemplate, + LeftDelim: "{{", + RightDelim: "}}", +} + +func init() { + swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo) +} diff --git a/packages/taiko-client/docs/index.html b/packages/taiko-client/docs/index.html new file mode 100644 index 00000000000..fd6da6d8abf --- /dev/null +++ b/packages/taiko-client/docs/index.html @@ -0,0 +1,29 @@ + +
+ + + +