File tree 3 files changed +69
-0
lines changed
3 files changed +69
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ name : Verify deployed contracts' bytecode
3
+
4
+ on :
5
+ pull_request :
6
+ branches :
7
+ - " master"
8
+
9
+ jobs :
10
+ assert-bytecode :
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - uses : actions/checkout@v3
15
+ with :
16
+ persist-credentials : false
17
+
18
+ - name : Setup node.js version
19
+ uses : actions/setup-node@v3
20
+ with :
21
+ node-version : 14
22
+
23
+ - name : Cache node_modules
24
+ id : cache-node-modules
25
+ uses : actions/cache@v3
26
+ with :
27
+ path : " **/node_modules"
28
+ key : node_modules-${{ hashFiles('**/package-lock.json') }}
29
+ restore-keys : node_modules-${{ hashFiles('**/package-lock.json') }}
30
+
31
+ - name : Install node dependencies
32
+ run : npm i
33
+ if : |
34
+ steps.cache-node-modules.outputs.cache-hit != 'true'
35
+
36
+ - name : Compile contracts
37
+ run : npm run compile
38
+
39
+ - name : Verify bytecode of contracts on Optimism chain
40
+ uses : lidofinance/action-verify-bytecode@master
41
+ if : always()
42
+ with :
43
+ file : artifacts-opt.json
44
+ rpcUrl : ${{ secrets.OPTIMISM_RPC }}
45
+
46
+ - name : Verify bytecode of contracts on Arbitrum chain
47
+ uses : lidofinance/action-verify-bytecode@master
48
+ if : always()
49
+ with :
50
+ file : artifacts-arb.json
51
+ rpcUrl : ${{ secrets.ARBITRUM_RPC }}
Original file line number Diff line number Diff line change
1
+ [
2
+ {
3
+ "artifactPath" : " artifacts/contracts/bridges/ArbitrumBridgeExecutor.sol/ArbitrumBridgeExecutor.json" ,
4
+ "sourcePath" : " contracts/bridges/ArbitrumBridgeExecutor.sol" ,
5
+ "name" : " ArbitrumBridgeExecutor" ,
6
+ "address" : " 0x1dcA41859Cd23b526CBe74dA8F48aC96e14B1A29" ,
7
+ "txHash" : " 0x182706c6ea244a184363608b646636e159238dbc737619873390b1021dd7857c"
8
+ }
9
+ ]
Original file line number Diff line number Diff line change
1
+ [
2
+ {
3
+ "artifactPath" : " artifacts/contracts/bridges/OptimismBridgeExecutor.sol/OptimismBridgeExecutor.json" ,
4
+ "sourcePath" : " contracts/bridges/OptimismBridgeExecutor.sol" ,
5
+ "name" : " OptimismBridgeExecutor" ,
6
+ "address" : " 0xEfa0dB536d2c8089685630fafe88CF7805966FC3" ,
7
+ "txHash" : " 0xb2cac3cea80817ddf1e5ae042a0a3cd6e017e30e663f857ae1be6f171a39e49b"
8
+ }
9
+ ]
You can’t perform that action at this time.
0 commit comments