Skip to content

Commit

Permalink
feat: CI Proxy upgrade verification flow (#287)
Browse files Browse the repository at this point in the history
- closes #205

---------

Co-authored-by: DefiCake <[email protected]>
  • Loading branch information
viraj124 and DefiCake authored Oct 9, 2024
1 parent 7c1be47 commit 6bbbf0d
Show file tree
Hide file tree
Showing 20 changed files with 3,238 additions and 3,838 deletions.
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/manual-verify-upgrade.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Manual Verify Upgrade

on:
workflow_dispatch:
inputs:
network:
description: 'Enter the network you want to verify the upgrade on'
required: true
default: 'mainnet'
type: string
rpc:
description: 'Enter network rpc'
required: true
default: 'https://eth.llamarpc.com'
type: string

jobs:
verify-upgrade:
runs-on: ubuntu-latest
env:
RPC_URL: ${{ github.event.inputs.rpc }}
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: |
npx hardhat compile && npx hardhat verify-deployment --network ${{ github.event.inputs.network }}
working-directory: ./packages/solidity-contracts
- name: Upload bytecode as artifact
uses: actions/upload-artifact@v4
with:
name: deployment-bytecode
path: verification.json
retention-days: 90
working-directory: ./packages/solidity-contracts
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,7 @@ target
packages/fungible-token/exports/types

# General dist folders
dist
dist

# verification ci artifacts
packages/solidity-contracts/verification.json
Loading

0 comments on commit 6bbbf0d

Please sign in to comment.