Skip to content
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

feat: CI Proxy upgrade verification flow #287

Merged
merged 91 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from 39 commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
687310e
feat: add upgrade verification script
viraj124 Sep 11, 2024
66be37a
refactor: store upgrade information in a common file
viraj124 Sep 11, 2024
df924ad
refactor: add upgrade testnet for testing upgrade verification
viraj124 Sep 11, 2024
a12515c
refactor: add fuel chain state prepare upgrade script
viraj124 Sep 12, 2024
83223d1
feat: tested verify upgrade for fuel chain state
viraj124 Sep 12, 2024
978f370
chore: remove log
viraj124 Sep 12, 2024
44ad96e
feat: add workflow action file for verifying deployment
viraj124 Sep 13, 2024
1f0b2fa
refactor: remove writing to custom json in deploy scripts
viraj124 Sep 13, 2024
c8880c1
refactor: update deploy & prepare upgrade script
viraj124 Sep 13, 2024
a34d2fd
chore: remove generic prepare upgrade script
viraj124 Sep 13, 2024
dc29f06
refactor: verification script
viraj124 Sep 13, 2024
4843a43
chore: update ci
viraj124 Sep 16, 2024
be286f5
chore: debug ci
viraj124 Sep 16, 2024
61d17da
chore: add working directory in ci script
viraj124 Sep 16, 2024
13a09ba
fix: ci
viraj124 Sep 16, 2024
04d5fe9
chore: update upgrade test ddevnet rpc
viraj124 Sep 16, 2024
2fff6f4
chore: update deploy scripts for devnet
viraj124 Sep 16, 2024
75f87fc
chore: formatting
viraj124 Sep 16, 2024
0b205ea
chore: deploy script touchups
viraj124 Sep 16, 2024
f12b828
feat: add prepare upgrade scripts
viraj124 Sep 16, 2024
77afc25
chore: update deployment artifacts
viraj124 Sep 16, 2024
7554265
fix: wrong init method in verify script
viraj124 Sep 16, 2024
7e24429
chore: add branch condition in upgrade ci
viraj124 Sep 16, 2024
552dec9
chore: formatting in ci
viraj124 Sep 16, 2024
f753d08
chore: add changeset
viraj124 Sep 16, 2024
ffcc17b
Merge branch 'main' into deploy/upgradeTest
viraj124 Sep 16, 2024
34ce9fa
refactor: fetch env from .secret and use a fallback
viraj124 Sep 17, 2024
d598879
refactor: update deployment artifact structure
viraj124 Sep 23, 2024
7f89ba9
refactor: remove non-proxy-upgrade check code
viraj124 Sep 23, 2024
60567c2
chore: resolve merge conflicts
viraj124 Sep 23, 2024
09dac6e
chore: update artifactss
viraj124 Sep 23, 2024
d5307c3
fix: bytecode comparision bug
viraj124 Sep 23, 2024
b00fa18
chore: update artifacts
viraj124 Sep 24, 2024
d1be73e
chore: add factory info in scripts
viraj124 Sep 24, 2024
30a3bcd
fix: upgrade & bytecode validation issues
viraj124 Sep 24, 2024
2823ebb
debug: ci failure
viraj124 Sep 24, 2024
2a77edc
debug: update hh network config
viraj124 Sep 24, 2024
0560d16
debug: update verification script
viraj124 Sep 24, 2024
e72e984
chore: fetch only runtime bytecode
viraj124 Sep 24, 2024
70c66f9
debug: using local signer
viraj124 Sep 25, 2024
3af1b95
fix upgrade verification script (#295)
viraj124 Sep 26, 2024
b4056e4
chore: update artifacts
viraj124 Sep 26, 2024
56b08ef
chore: upgrade prepare upgrade scripts
viraj124 Sep 26, 2024
9c7413c
Merge branch 'main' into deploy/upgradeTest
viraj124 Sep 26, 2024
0ee6323
chore: test ci fails for non-legit upgrades
viraj124 Sep 26, 2024
66dafd0
chore: revert previous changes
viraj124 Sep 26, 2024
1e2c299
chore: update artifacts
viraj124 Sep 27, 2024
ef9d4b6
chore: cleanup deployment scripts
viraj124 Sep 27, 2024
063ef28
chore: cleanup prepare upgrade scripts
viraj124 Sep 27, 2024
fc3ea3d
refactor: cleanup verification script
viraj124 Sep 27, 2024
615a40f
chore: re-generate artifacts
viraj124 Sep 27, 2024
b059a1d
chore: add compilation in ci
viraj124 Sep 27, 2024
a41d8a3
chore: add remaining artifacts
viraj124 Sep 27, 2024
262dd56
chore: remove init args from the deploy scripts
viraj124 Sep 27, 2024
f3ff305
chore: update artifacts
viraj124 Sep 27, 2024
2c4c969
chore: remove init args in prepare upgrade scripts
viraj124 Sep 27, 2024
562aef0
fix: verification checks
viraj124 Sep 27, 2024
0c8de33
chore: update artifacts
viraj124 Sep 28, 2024
3d522da
fix: implementation address check against the transaction
viraj124 Sep 28, 2024
5063c7c
chore: rename vars
viraj124 Sep 28, 2024
16a440e
chore: verification script cleanup
viraj124 Sep 30, 2024
fc5cd65
chore: formatting
viraj124 Sep 30, 2024
63ff6c3
chore: minor cleanup in script
viraj124 Oct 2, 2024
794e62c
chore: update artifacts
viraj124 Oct 2, 2024
5b8bfc6
Merge branch 'main' into deploy/upgradeTest
viraj124 Oct 2, 2024
eb16691
debug: ci failure
viraj124 Oct 2, 2024
b4abdfc
chore: revert ci change
viraj124 Oct 2, 2024
525e9c8
chore: revert latest change
viraj124 Oct 2, 2024
9e6e7c0
chore: upgrade artifacts after merge with main
viraj124 Oct 2, 2024
24674b2
chore: update .gitignore
viraj124 Oct 8, 2024
58873bf
chore: add package for writing the verification payload
viraj124 Oct 8, 2024
82f2f8e
chore: update lock file
viraj124 Oct 8, 2024
7cbc3e4
chore: update artifacts
viraj124 Oct 8, 2024
17586db
refactor: write verification payload to a file
viraj124 Oct 8, 2024
4ca6d3c
feat: make upgrade verification ci manual
viraj124 Oct 8, 2024
8e4c858
chore: fix ci formatting
viraj124 Oct 8, 2024
15abf8e
chore: revert lock file update
viraj124 Oct 8, 2024
1bbce7d
fix: pnpm build issue
viraj124 Oct 8, 2024
bf40e3a
chore: use default package for writing to a file
viraj124 Oct 8, 2024
2079209
chore: rename verification ci upgrade file
viraj124 Oct 8, 2024
592258c
chore: revert rename
viraj124 Oct 8, 2024
6abde91
Merge branch 'main' into deploy/upgradeTest
viraj124 Oct 8, 2024
f245568
chore: update artifacts
viraj124 Oct 8, 2024
13214eb
chore: update artifacts from scratch
viraj124 Oct 8, 2024
0419962
chore: fix typo
viraj124 Oct 9, 2024
c4253a9
chore: add more logs
viraj124 Oct 9, 2024
1118300
chore: formattting
viraj124 Oct 9, 2024
97e4879
Merge branch 'main' into deploy/upgradeTest
viraj124 Oct 9, 2024
6b3c272
chore: small touchups
viraj124 Oct 9, 2024
64b7faf
chore: update artifacts
viraj124 Oct 9, 2024
494e32d
Merge branch 'main' into deploy/upgradeTest
viraj124 Oct 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/real-pots-clean.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@fuel-bridge/solidity-contracts': minor
---

ci proxy upgrade verification flow
38 changes: 38 additions & 0 deletions .github/workflows/verify-upgrade.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Verify Deployment

on:
push:
branches:
- main
pull_request:
branches:
- main # Target branch for the PR
release:
types: [published]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
verify-upgrade:
runs-on: ubuntu-latest
env:
RPC_URL: ${{ secrets.RPC_URL || 'https://sepolia.gateway.tenderly.co' }}
if: github.event_name == 'pull_request' && startsWith(github.head_ref, 'deploy/')
steps:
- uses: actions/checkout@v3
- uses: FuelLabs/github-actions/setups/node@master
with:
node-version: 20.16.0
pnpm-version: 9.0.6
- name: Verify deployment bytecode
run: |
# Extract branch name from `GITHUB_HEAD_REF` (PR source branch)
BRANCH_NAME=${{ github.head_ref }}

# Remove the deploy/ prefix
BRANCH_NAME=${BRANCH_NAME#deploy/}

npx hardhat verify-deployment --network $BRANCH_NAME
working-directory: ./packages/solidity-contracts
Loading
Loading