- 
                Notifications
    You must be signed in to change notification settings 
- Fork 0
Seq chains contract to UUPS upgradability #763
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
1e354ba
              dc8942e
              9a12b86
              46875a6
              296a526
              013666d
              7b1d13d
              c59937e
              1694b2b
              722ed17
              256378e
              d388c0f
              4f5c2b9
              ebd7eef
              03c5f41
              5aa3148
              f90f110
              58e1dc7
              2d20a7c
              499abaf
              73a6f15
              20206e5
              6f5d7a0
              1520262
              59d7e78
              e2944b3
              894b2fa
              ead1c1d
              627bb2a
              567a7e2
              88942d2
              0e7b5a0
              b00c7d3
              2c2191d
              3994185
              5b2af0d
              c061e12
              ebd6b3c
              938cfc1
              311be5f
              29e7317
              ee9a9e6
              File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| name: Check storage layout | ||
|  | ||
| on: | ||
| # Run workflow on every push to main. This ensures that cross-service PRs that | ||
| # depend on synd-contracts are tested. | ||
| push: | ||
| branches: | ||
| - main | ||
| # Only run on PRs that touch shared contracts | ||
| pull_request: | ||
| paths: | ||
| - "synd-contracts/**" | ||
|  | ||
| jobs: | ||
| storage-layout: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|  | ||
| - name: Setup Foundry | ||
| uses: foundry-rs/foundry-toolchain@v1 | ||
| with: | ||
| version: stable | ||
|  | ||
| - name: Install jq | ||
| run: sudo apt-get update && sudo apt-get install -y jq | ||
|  | ||
| - name: Build contracts | ||
| working-directory: synd-contracts | ||
| run: forge build --sizes | ||
|  | ||
| - name: Inspect storage layout | ||
| working-directory: synd-contracts | ||
| run: | | ||
| forge inspect SyndicateSequencingChain storageLayout --json > actual_storage_layout.json | ||
| jq -S . actual_storage_layout.json > actual_storage_layout.norm.json | ||
|  | ||
| - name: Normalize expected layout | ||
| working-directory: synd-contracts | ||
| run: | | ||
| jq -S . syndicate_sequencing_chain_layout.json > expected_storage_layout.norm.json | ||
|  | ||
| - name: Compare layouts | ||
| working-directory: synd-contracts | ||
| run: | | ||
| set -e | ||
| echo "Comparing expected vs actual storage layouts..." | ||
| if ! diff -u expected_storage_layout.norm.json actual_storage_layout.norm.json; then | ||
| echo | ||
| echo "❌ Storage layout changed. If intentional, update syndicate_sequencing_chain_layout.json." | ||
| exit 1 | ||
| fi | ||
| echo "✅ Storage layout matches." | ||
| Check warningCode scanning / CodeQL Workflow does not contain permissions Medium 
      Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
     | ||
Large diffs are not rendered by default.
Large diffs are not rendered by default.
This file was deleted.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Uh oh!
There was an error while loading. Please reload this page.