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

chore(reduce-gas-on-withdraw--clone-operators-to-gateway--bridge-manager-as-proxy): merge from release/v3.2.4 #64

Open
wants to merge 501 commits into
base: feature/reduce-gas-on-withdraw--clone-operators-to-gateway--bridge-manager-as-proxy
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
501 commits
Select commit Hold shift + click to select a range
f7f84c4
Merge branch 'script/post-check' into script/deploy-v3.2.0-rc-testnet
nxqbao Apr 12, 2024
7b6c49d
resolve conflict
nxqbao Apr 12, 2024
225f465
script: fix double push in `setup`
nxqbao Apr 12, 2024
d533dc3
script: fix conflicted post check
TuDo1403 Apr 12, 2024
14ac278
script: fix and add post check for deposit and withdrawal
TuDo1403 Apr 14, 2024
10096bb
script: fix script for full flow
nxqbao Apr 15, 2024
55da8ef
clean up
nxqbao Apr 15, 2024
e183921
script: fix ronin script to init v2 and set bridge manager
nxqbao Apr 15, 2024
d6170ef
script: nominate sender in mainchain bridge
nxqbao Apr 15, 2024
576b683
feat: remove `returns` array and reduce code size
nxqbao Apr 15, 2024
97f9442
test: adapt test of add/remove operators
nxqbao Apr 15, 2024
d53cb75
script: add callbacks
nxqbao Apr 15, 2024
63c4792
fix(MainchainGateway): interface id of IBridgeManagerCallback
nxqbao Apr 15, 2024
6964a97
script: fix withdrawal post-check
nxqbao Apr 15, 2024
29853db
script: add admin postcheck & quorum post check
TuDo1403 Apr 16, 2024
f849a84
fix: fix validate has bridge manager post check
TuDo1403 Apr 16, 2024
38aa725
script: add warning
TuDo1403 Apr 16, 2024
1f1d640
script: load bridge tracking in post check
TuDo1403 Apr 16, 2024
53b01ea
script: update fdk version
TuDo1403 Apr 16, 2024
aa60e55
script: fix ronin script
nxqbao Apr 16, 2024
d1effff
script: add relay upgrade post check
TuDo1403 Apr 16, 2024
4ad3d48
script: add pause enforcer to the post check
nxqbao Apr 16, 2024
299b38b
chore: add RoninBridgeManager artifact
nxqbao Apr 16, 2024
326e179
script: fix total gas of proposal
nxqbao Apr 16, 2024
d84a88c
chore: add artifacts Ronin side
nxqbao Apr 16, 2024
4510144
chore: add artifacts Mainchain side
nxqbao Apr 16, 2024
cf565ad
chore: add broadcast log
nxqbao Apr 16, 2024
2cfa11d
chore: replace RoninBridgeManager artifact
nxqbao Apr 16, 2024
0c61572
chore: remove old bridge manager
nxqbao Apr 16, 2024
f213935
Merge pull request #30 from ronin-chain/script/deploy-v3.2.0-rc-testnet
nxqbao Apr 16, 2024
73ad9e6
chore: fmt
nxqbao Apr 16, 2024
600f81d
chore: chmod
nxqbao Apr 16, 2024
97b0ac3
chore: correct sepolia artifact
nxqbao Apr 17, 2024
c6e9169
Merge pull request #32 from ronin-chain/deploy/v3.2.0-rc-testnet
nxqbao Apr 19, 2024
e2e0b14
Merge pull request #33 from ronin-chain/release/v3.2.0-rc
nxqbao Jun 6, 2024
8824fc9
chore: add script and artifact of batcher
nxqbao Jun 12, 2024
ca0e803
chore: script map erc721 on mainchain
nxqbao Jun 12, 2024
907c5c6
Merge pull request #34 from ronin-chain/deploy/batcher-sepolia
nxqbao Jun 13, 2024
f8e571b
feat: MockERC1155 contract and deploy script
tringuyenskymavis Jun 12, 2024
c06c670
script(MockERC1155): Deploy script
tringuyenskymavis Jun 13, 2024
dd81acb
feat: MockERC1155 contract + deploy script
tringuyenskymavis Jun 13, 2024
16a4f36
rm unnecessary files
tringuyenskymavis Jun 13, 2024
55df959
chore: rename contract
tringuyenskymavis Jun 13, 2024
0365fd5
chore: fix naming + param
tringuyenskymavis Jun 13, 2024
45df3fc
rm unnecessary files
tringuyenskymavis Jun 13, 2024
aa7c969
chore: add RoninMockERC1155 param
tringuyenskymavis Jun 13, 2024
f0637ae
Merge pull request #35 from tringuyenskymavis/feat/mock-erc721-erc1155
nxqbao Jun 13, 2024
aa85ae1
script for mapping erc1155
nxqbao Jun 14, 2024
cebc4d9
feat: add batch function
nxqbao Jun 19, 2024
a5f83dc
chore: init script
nxqbao Jun 19, 2024
e35d1f3
fix: interface and script
nxqbao Jun 19, 2024
8c76b8f
fix: `++i`
nxqbao Jun 20, 2024
28215de
Merge pull request #41 from ronin-chain/feat/support-batch-in-gateway
nxqbao Jun 20, 2024
a7aed09
chore: add artifacts
nxqbao Jun 20, 2024
7392a29
Merge pull request #43 from ronin-chain/deploy/v3.2.2-testnet
nxqbao Jun 20, 2024
ef3ce20
Merge pull request #44 from ronin-chain/release/v3.2.2
nxqbao Jun 27, 2024
ff61949
script: mapping Anima token
tringuyenskymavis Jun 26, 2024
95b7461
script: add factory script for ronin-testnet
tringuyenskymavis Jun 26, 2024
c84234a
chore: refactor factory script
tringuyenskymavis Jun 27, 2024
09c5b1b
chore: refactor code
tringuyenskymavis Jun 28, 2024
ada6b24
chore: refactor factory and map anima token script
tringuyenskymavis Jul 1, 2024
6c27f97
script: refactor scripts
tringuyenskymavis Jul 1, 2024
a7a19f1
script: minor refactor
tringuyenskymavis Jul 2, 2024
015948b
chore: restructure factories scripts
tringuyenskymavis Jul 3, 2024
b5e07ce
chore: resolve Bao's comments
tringuyenskymavis Jul 5, 2024
4f04068
script: supports local simulation for factories scripts
tringuyenskymavis Jul 10, 2024
1c6916c
script: fix duplicate code
tringuyenskymavis Jul 10, 2024
5448b5a
script: organize factories folder and add more simulation script
tringuyenskymavis Jul 23, 2024
698ee6e
chore: rename func
tringuyenskymavis Jul 23, 2024
bd61967
chore: small fix
tringuyenskymavis Jul 24, 2024
bfe920b
chore: minor fix
tringuyenskymavis Jul 24, 2024
2449f18
Merge pull request #49 from ronin-chain/script/map-anima-token-testnet
tringuyenskymavis Jul 24, 2024
1dd50b4
tmp commit
nxqbao Jul 24, 2024
4114526
fix: shadow names
nxqbao Jul 25, 2024
975c004
chore: stage previous script
nxqbao Jul 25, 2024
68a2bfe
script: init mainnet v3.2.2 script
nxqbao Jul 25, 2024
bf747c2
chore: update .gitignore
nxqbao Jul 25, 2024
3d2d429
script: map contract name, switch network
nxqbao Jul 25, 2024
75d51da
script: add mainnet proposal
nxqbao Jul 26, 2024
38944c4
forge install: foundry-deployment-kit
TuDo1403 Jul 26, 2024
777ca80
forge install: foundry-deployment-kit
TuDo1403 Jul 26, 2024
3406065
forge install: foundry-deployment-kit
TuDo1403 Jul 26, 2024
4ee4d44
script: adapt fdk-3.0.0-beta
TuDo1403 Jul 26, 2024
5a70a5a
script: fix
nxqbao Jul 26, 2024
0d6c751
script: fix mainchain script
nxqbao Jul 26, 2024
f136eb6
script: update mainchain script
nxqbao Jul 26, 2024
6389e7f
script: fix network key calculation
TuDo1403 Jul 27, 2024
d28ee34
script: forge fmt
nxqbao Jul 29, 2024
82a0741
script: fix proxy admin of new bridge manager
nxqbao Jul 29, 2024
812c055
script: utilize soldeer and fix switch network bug
TuDo1403 Jul 29, 2024
96468dc
script: fix load contract ronin after switch network
TuDo1403 Jul 29, 2024
5702571
script: resolve warning
TuDo1403 Jul 29, 2024
b9ddd82
script: use IRoninBridgeManager instead of RoninBridgeManager
TuDo1403 Jul 29, 2024
08303ec
script: minor refactor
TuDo1403 Jul 29, 2024
71a7a22
fix: solve issue staticcall after broadcast
TuDo1403 Jul 29, 2024
bfedde1
script: use IMainchainBridgeManager instead of MainchainBridgeManager
TuDo1403 Jul 29, 2024
ee80d58
script: fix remove unused deploy logic
TuDo1403 Jul 29, 2024
4861630
chore: fix compile error in test
nxqbao Jul 30, 2024
ba7854e
script: add verify proposal script
nxqbao Jul 30, 2024
871c287
script: fix create unused fork
TuDo1403 Jul 30, 2024
8071c31
script: minor refactor
TuDo1403 Jul 30, 2024
3595fba
script: resolve contract collision
TuDo1403 Jul 30, 2024
be0993a
chore: add BridgeManager artifact
nxqbao Jul 30, 2024
7563498
chore: add bridge manager artifact
nxqbao Jul 30, 2024
9d3c748
script: finalize script
nxqbao Jul 31, 2024
5743723
script: fix ronin BM address in mainchain script
nxqbao Jul 31, 2024
6854d00
chore: add WBTC artifact
nxqbao Jul 31, 2024
dd8755b
chore: add artifacts Ethereum
nxqbao Jul 31, 2024
759883e
chore: rename RoninBM artifact
nxqbao Jul 31, 2024
73ca159
script: stage script after deploying contracts
nxqbao Jul 31, 2024
4fe04d7
chore: add WBTC ronin-mainnet artifact
TuDo1403 Jul 31, 2024
037a750
script: fix address MainchainBM
nxqbao Jul 31, 2024
9e1bbbf
script: hardcode address of wbtc and ronin bridge manager
nxqbao Jul 31, 2024
8db78f1
script: fixed proposal timestamp
nxqbao Aug 1, 2024
2af69aa
chore: add broadcast log
nxqbao Aug 1, 2024
e7676f7
chore: remove goerli devnet artifacts
nxqbao Aug 1, 2024
20951ea
chore: ignore run-latest of broadcast
nxqbao Aug 1, 2024
3c6e5d7
fix(WBTC): fix decimals to match with WBTC on ethereum
TuDo1403 Aug 5, 2024
a1c5570
Merge pull request #52 from ronin-chain/hotfix/wbtc
TuDo1403 Aug 5, 2024
dd93890
test: fix compiler error
TuDo1403 Aug 5, 2024
8f8cae4
script: update address wbtc ronin mainnet
TuDo1403 Aug 5, 2024
2dc08bb
chore: add WBTC ronin-mainnet artifact
TuDo1403 Aug 5, 2024
98d3747
Merge pull request #54 from ronin-chain/deploy/wbtc-mainnet
TuDo1403 Aug 5, 2024
03a5d14
Merge pull request #55 from ronin-chain/script/change-wbtc-mainnet-addr
TuDo1403 Aug 5, 2024
c5f62c6
script: fix checksum address wbtc
TuDo1403 Aug 5, 2024
e4102ea
fix(RoninBridgeManager, MainchainBridgeManager): expose map tokens fu…
TuDo1403 Aug 5, 2024
c527b34
fix(RoninBridgeManager): add setMinimumThresholds
TuDo1403 Aug 5, 2024
6e7ca70
script: update decimal value in script wbtc
TuDo1403 Aug 5, 2024
ffa7b3d
Merge pull request #56 from ronin-chain/script/change-wbtc-decimal-in…
TuDo1403 Aug 5, 2024
ae04f72
fix(MainchainBridgeManager, RoninbridgeManager): hardcode config for …
TuDo1403 Aug 5, 2024
769c6d4
fix(RoninBridgeManager): hardcode gateway config
TuDo1403 Aug 5, 2024
489e350
fix: hardcode gateway config, reduce code size for temporal ronin bri…
TuDo1403 Aug 5, 2024
c8db7d1
fix: use function delegatecall
TuDo1403 Aug 5, 2024
40e6413
fix(MainchainBridgeManager): use functionDelegateCall
TuDo1403 Aug 5, 2024
df1d80e
fix(MainchainBridgeManager): reduce code size for temporal impl
TuDo1403 Aug 5, 2024
651a480
Merge pull request #53 from ronin-chain/hotfix/expose-bridge-manager-…
nxqbao Aug 5, 2024
3b22642
script: add hot fix simulation for ronin bridge manager
TuDo1403 Aug 5, 2024
8e7a41e
script: transfer MainchainBM to multisig
nxqbao Aug 2, 2024
b220cc4
script: add mainchain script
nxqbao Aug 5, 2024
44a0035
script: move folder script
TuDo1403 Aug 5, 2024
218dcb6
feat: add unmapToken and mapWithMinWithdrawals method
nxqbao Aug 5, 2024
c58bd39
fix: cache iterator
nxqbao Aug 5, 2024
35e2aeb
fix param of setMinThresholds
nxqbao Aug 5, 2024
d802a49
fix: delete minimumThresholds
nxqbao Aug 5, 2024
0e8f8e4
script: add actual relay simulation
nxqbao Aug 5, 2024
223057f
script: unmap token
nxqbao Aug 6, 2024
aed42ed
fix(RoninBridgeManager): reduce code size for hotfix contract
TuDo1403 Aug 6, 2024
0a15085
Merge pull request #57 from ronin-chain/feat/add-mapWithMin-unmapToken
nxqbao Aug 6, 2024
72433aa
script: unmap token by `unmap` method
nxqbao Aug 6, 2024
03b6d17
chore: add new artifact
nxqbao Aug 6, 2024
c3ff037
chore: add broadcast log
nxqbao Aug 6, 2024
57cab78
fix(MainchainGatewayV3): more checks on invalid signer and null total…
TuDo1403 Aug 7, 2024
e33ff8b
fix(MainchainGatewayV3): rename accWeight -> accumWeight
TuDo1403 Aug 7, 2024
790e10a
fix(MainchainGatewayV3): rename ErrInvalidSignature -> ErrInvalidSigner
TuDo1403 Aug 7, 2024
bd38460
fix(GatewayV3): revert on null min vote weight
TuDo1403 Aug 7, 2024
a49e795
config: update gitignore
nxqbao Aug 8, 2024
bf4fabf
Merge branch 'release/v3.2.2' into script/v3.2.2-mainnet
nxqbao Aug 8, 2024
1943ab3
resolve conflict
nxqbao Aug 8, 2024
0666b2c
chore: add RoninGatewayV3 mainnet-v3.2.2 deployment artifact
Aug 8, 2024
5a58407
chore: add RoninBridgeManager mainnet-v3.2.2 deployment artifact
Aug 8, 2024
439676a
Merge pull request #51 from ronin-chain/script/v3.2.2-mainnet
nxqbao Aug 8, 2024
7a1c87f
Merge pull request #59 from ronin-chain/release/v3.2.2
nxqbao Aug 8, 2024
83e5054
fix(RoninBridgeManager, MainchainBridgeManager): revert logic of BM t…
Aug 8, 2024
2529e39
chore: revert RoninBM artifact, MainchainBM artifact
Aug 8, 2024
6eb10ed
Merge pull request #61 from ronin-chain/fix/revert-bridge-manager-logic
nxqbao Aug 8, 2024
631205c
Merge pull request #62 from ronin-chain/release/v3.2.3
nxqbao Aug 8, 2024
761d9e7
Merge pull request #63 from ronin-chain/mainnet
nxqbao Aug 8, 2024
0d1c8f0
script: proposal for invoke add operators callback
nxqbao Aug 7, 2024
c8fb983
script: add upgrade mainchain gateway v3 to proposal
Aug 8, 2024
acad51e
fix(WithdrawalLimitation): revert when _highTierVoteWeight is zero
Aug 9, 2024
2347580
script: add broadcast `propose`
nxqbao Aug 9, 2024
47b39d0
script: add more post check gateway
Aug 9, 2024
b799d8d
Merge pull request #58 from ronin-chain/fix/improve-submit-withdrawal…
TuDo1403 Aug 12, 2024
b06c11c
script: remove new BM logic
nxqbao Aug 12, 2024
27b69a9
script: add executor
Aug 12, 2024
132fcc6
Merge pull request #65 from ronin-chain/ir/recover-bridge
TuDo1403 Aug 12, 2024
6812048
test: fix all failed unit tests
Aug 15, 2024
f259f17
ci: fix ci
TuDo1403 Aug 19, 2024
6e7668f
ci: run test when pr to release/* branch
TuDo1403 Aug 19, 2024
4966566
Merge pull request #66 from ronin-chain/test/fix-broken-unit-tests
TuDo1403 Aug 20, 2024
ecb8f2b
fix(MainchainGateway): rollback IWETH
nxqbao Aug 22, 2024
f96667d
feat: remove `requestDepositForBatch`
nxqbao Aug 22, 2024
7182aa7
fix(MainchainGateway): deprecated var
nxqbao Aug 23, 2024
d2821f0
fix(MainchainGateway): rollback setter and assert of wethUnwrapper
nxqbao Aug 23, 2024
b7982f4
Update src/mainchain/MainchainGatewayV3.sol
nxqbao Aug 23, 2024
f81b08a
Update src/mainchain/MainchainGatewayV3.sol
nxqbao Aug 23, 2024
0e45084
script: expect revert with invalid signer (#68)
nxqbao Aug 23, 2024
4a6ff0f
Merge pull request #72 from ronin-chain/ir/recover-bridge
nxqbao Aug 23, 2024
38098fe
Update src/mainchain/MainchainGatewayV3.sol
nxqbao Aug 23, 2024
1f9cda8
fix(MainchainGatewayV3): rename local var mainchainWETH
nxqbao Aug 23, 2024
2a938d0
Merge branch 'release/v3.2.4' into ir/fix/resolve-audit
nxqbao Aug 23, 2024
abe6b80
Merge pull request #69 from ronin-chain/ir/fix/resolve-audit
nxqbao Aug 23, 2024
ca7b110
script: add more post check in quorum
TuDo1403 Aug 19, 2024
bac6a3f
chore: storage layout
TuDo1403 Aug 19, 2024
88b49b3
update postcheck
TuDo1403 Aug 19, 2024
f72cb11
script: add more post check on proposal
TuDo1403 Aug 20, 2024
195d95f
chore: storage layout
TuDo1403 Aug 20, 2024
3a60b83
script: add more post check on withdraw
TuDo1403 Aug 20, 2024
febd568
script: uncomment validate gateway
TuDo1403 Aug 20, 2024
cd107eb
chore: storage layout
TuDo1403 Aug 20, 2024
9386e85
script: add more post check
TuDo1403 Aug 22, 2024
dd0e0d9
chore: storage layout
TuDo1403 Aug 22, 2024
c09d52e
script: fix case-sensitive cause ci failure
TuDo1403 Aug 22, 2024
eeb7d2c
chore: move prb-test to soldeer
TuDo1403 Aug 22, 2024
3d7bc1d
test: fix test fail
TuDo1403 Aug 22, 2024
e61da0c
ci: setup secret
TuDo1403 Aug 22, 2024
63bd7ee
script: add more post check
TuDo1403 Aug 22, 2024
1711aad
ci: split PostCheck and analyze step in Unittest
huyngopt1994 Aug 23, 2024
b797a96
fix(MainchainGateway): rollback setter and assert of wethUnwrapper
nxqbao Aug 23, 2024
359f9ee
Update src/mainchain/MainchainGatewayV3.sol
nxqbao Aug 23, 2024
1c0c4ea
ci: print detail log
TuDo1403 Aug 23, 2024
57c5c4b
chore: storage layout
TuDo1403 Aug 23, 2024
f59bc24
script: update post check
TuDo1403 Aug 23, 2024
67cf7cf
script: update post check
TuDo1403 Aug 23, 2024
1e08afc
chore: storage layout
TuDo1403 Aug 23, 2024
912c77d
ci: split workflow
TuDo1403 Aug 23, 2024
cca4318
ci: revert on failure
TuDo1403 Aug 23, 2024
82c0f3b
script: update post checl
TuDo1403 Aug 23, 2024
cbf24cf
ci: rename ci
TuDo1403 Aug 23, 2024
7da19a6
ci: new error code
TuDo1403 Aug 23, 2024
0544268
ci: fix ci
TuDo1403 Aug 23, 2024
2bec5e1
ci: fix ci
TuDo1403 Aug 23, 2024
5b64d3b
chore: enhance pre-commit hook
TuDo1403 Aug 23, 2024
49cf228
script: fix post check
TuDo1403 Aug 25, 2024
31603ab
chore: storage layout
TuDo1403 Aug 25, 2024
410f258
script: add ir-recover testnet script
TuDo1403 Aug 25, 2024
4a68d51
script: more check after proposal (#74)
nxqbao Aug 26, 2024
aeb52c4
Merge pull request #67 from ronin-chain/script/add-more-postchecks
TuDo1403 Aug 26, 2024
0ad1f69
script: post check should revert state on mainchain (#76)
TuDo1403 Aug 26, 2024
6029e77
script: more check after proposal (#74)
nxqbao Aug 26, 2024
b32a98b
script: post check should revert state on mainchain (#76)
TuDo1403 Aug 26, 2024
b178693
script: update ir recover script relay on sepolia
TuDo1403 Aug 26, 2024
f4e97cf
script: fix compile error post check
TuDo1403 Aug 26, 2024
a6e506b
script: prank unpause ronin gateway (#77)
nxqbao Aug 26, 2024
34ac2c2
script: fix post check and and more custom postcheck for weth unwrapp…
TuDo1403 Aug 26, 2024
f95b8b1
script: fix relay proposal gas
TuDo1403 Aug 26, 2024
93f3448
Merge branch 'release/v3.2.4' into script/add-ir-recover-testnet-script
TuDo1403 Aug 26, 2024
77b3b4c
chore: add testnet artifact
TuDo1403 Aug 26, 2024
06042a6
Merge pull request #75 from ronin-chain/script/add-ir-recover-testnet…
TuDo1403 Aug 27, 2024
69aa82d
chore: add artifact of mainchain gw
nxqbao Aug 27, 2024
78cd2ef
script: rework factory script allow provide pks via terminal
tringuyenskymavis Aug 27, 2024
81b12db
chore: specify foundry version in CI
tringuyenskymavis Aug 28, 2024
5b14d5c
Merge pull request #80 from ronin-chain/script/rework-factory-script
tringuyenskymavis Aug 28, 2024
2a69b28
chore: add wbtc testnet artifact
TuDo1403 Aug 27, 2024
e06403a
script: map wbtc script 27-08-2024
tringuyenskymavis Aug 27, 2024
6703c74
chore: storage layout
tringuyenskymavis Aug 28, 2024
23a7f31
script: simulate reimburse bridge reward
nxqbao Aug 30, 2024
ab5e46a
Merge pull request #82 from ronin-chain/script/reimburse-bridge-reward
TuDo1403 Sep 5, 2024
9be98bc
Merge pull request #78 from ronin-chain/chore/mainchain-gw-artifact
TuDo1403 Sep 5, 2024
5209a0f
Merge pull request #81 from ronin-chain/script/remap-wbtc-testnet
TuDo1403 Sep 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/create-PR-deploy-to-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:

- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 #v5.0.2
uses: peter-evans/create-pull-request@v6.0.1
with:
labels: automated PR
delete-branch: true
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/create-PR-implement.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
branches:
- 'implement-feature/**'
- 'implement-feature/**/**'
- 'impl/**/**'
- 'impl-feat/**'

concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
Expand Down Expand Up @@ -41,7 +43,7 @@ jobs:
toBranch: ${{ env.FEATURE_BRANCH }}

- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
uses: peter-evans/create-pull-request@v6.0.1
with:
branch: ${{ env.HEAD_BRANCH }}
base: ${{env.FEATURE_BRANCH}}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create-PR-release-to-network.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:

- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 #v5.0.2
uses: peter-evans/create-pull-request@v6.0.1
with:
labels: automated PR
delete-branch: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create-PR-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
toBranch: ${{matrix.branch_name}}

- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
uses: peter-evans/create-pull-request@v6.0.1
with:
labels: automated PR
delete-branch: true
Expand Down
65 changes: 65 additions & 0 deletions .github/workflows/post-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Post Check

on:
push:
branches:
- mainnet
- testnet
- "feature/*"
- "features/*"
- "feat/*"
- "feats/*"
pull_request:
branches:
- mainnet
- testnet
- "feature/*"
- "features/*"
- "feat/*"
- "feats/*"
- "release/*"

env:
FOUNDRY_PROFILE: ci

jobs:
check:
strategy:
fail-fast: true

name: Foundry project
runs-on: ubuntu-latest

env:
ETHERSCAN_API_KEY: ${{ secrets.ETHERSCAN_API_KEY }}
INFURA_API_KEY: ${{ secrets.INFURA_API_KEY }}

steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly-2b1f8d6dd90f9790faf0528e05e60e573a7569ce

- name: Update package with soldeer
run: forge soldeer update

- name: Recursively update dependencies
run: |
chmod +x ./update-deps.sh
./update-deps.sh
id: update-deps

- name: Run Forge build
run: |
forge --version
forge build
id: build

- name: Run PostCheck CI
run: |
./run.sh PostCheckCI -f ronin-mainnet -vvvv
id: postcheck
71 changes: 71 additions & 0 deletions .github/workflows/slither-analyze.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Slither Analyze

on:
push:
branches:
- mainnet
- testnet
- "feature/*"
- "features/*"
- "feat/*"
- "feats/*"
pull_request:
branches:
- mainnet
- testnet
- "feature/*"
- "features/*"
- "feat/*"
- "feats/*"
- "release/*"

env:
FOUNDRY_PROFILE: ci

jobs:
check:
strategy:
fail-fast: true

name: Foundry project
runs-on: ubuntu-latest

env:
ETHERSCAN_API_KEY: ${{ secrets.ETHERSCAN_API_KEY }}
INFURA_API_KEY: ${{ secrets.INFURA_API_KEY }}

steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly-2b1f8d6dd90f9790faf0528e05e60e573a7569ce

- name: Install package with soldeer
run: forge soldeer install

- name: Recursively update dependencies
run: |
chmod +x ./update-deps.sh
./update-deps.sh
id: update-deps

- name: Run Forge build
run: |
forge --version
forge build
id: build

- name: Install Slither for security analysis
run: |
sudo apt-get update
sudo apt-get install -y python3-pip
python3 -m pip install slither-analyzer

- name: Run Slither analysis
run: |
slither . --exclude-low --exclude-medium --exclude-informational --exclude-dependencies --filter-paths "dependencies/|mocks/" --exclude-optimization
id: slither
33 changes: 25 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
name: test
name: Unit Test

on:
push:
branches:
- mainnet
- testnet
- 'feature/*'
- 'features/*'
- "feature/*"
- "features/*"
- "feat/*"
- "feats/*"
pull_request:
branches:
- mainnet
- testnet
- 'feature/*'
- 'features/*'
- "feature/*"
- "features/*"
- "feat/*"
- "feats/*"
- "release/*"

env:
FOUNDRY_PROFILE: ci
Expand All @@ -24,6 +29,11 @@ jobs:

name: Foundry project
runs-on: ubuntu-latest

env:
ETHERSCAN_API_KEY: ${{ secrets.ETHERSCAN_API_KEY }}
INFURA_API_KEY: ${{ secrets.INFURA_API_KEY }}

steps:
- uses: actions/checkout@v3
with:
Expand All @@ -32,7 +42,16 @@ jobs:
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
version: nightly-2b1f8d6dd90f9790faf0528e05e60e573a7569ce

- name: Install package with soldeer
run: forge soldeer install

- name: Recursively update dependencies
run: |
chmod +x ./update-deps.sh
./update-deps.sh
id: update-deps

- name: Run Forge build
run: |
Expand All @@ -42,7 +61,5 @@ jobs:

- name: Run Forge tests
run: |
anvil --chain-id 2024 --port 8546 &
anvil --chain-id 2 --port 8547 &
forge test -vvv
id: test
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,10 @@ remix-compiler.config.js
out
.DS_Store

dry-run/
dry-run/
**-operators-key.s.sol
dependencies
deployments/**/exported_address

run-latest.json
local/
16 changes: 0 additions & 16 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,20 +1,4 @@
[submodule "lib/forge-std"]
path = lib/forge-std
url = https://github.com/foundry-rs/forge-std
[submodule "lib/prb-test"]
branch = release-v0
path = lib/prb-test
url = https://github.com/PaulRBerg/prb-test
[submodule "lib/prb-math"]
path = lib/prb-math
url = https://github.com/PaulRBerg/prb-math
branch = release-v4
[submodule "lib/solady"]
path = lib/solady
url = https://github.com/vectorized/solady
[submodule "lib/openzeppelin-contracts"]
path = lib/openzeppelin-contracts
url = https://github.com/openzeppelin/openzeppelin-contracts
[submodule "lib/foundry-deployment-kit"]
path = lib/foundry-deployment-kit
url = https://github.com/axieinfinity/foundry-deployment-kit
11 changes: 9 additions & 2 deletions .husky/generate-layout.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
#!/bin/sh

rm -rf logs/storage/*

dirOutputs=$(ls out | grep '^[^.]*\.sol$') # assuming the out dir is at 'out'

while IFS= read -r contractDir; do
innerdirOutputs=$(ls out/$contractDir)
innerDirOutputs=$(ls out/$contractDir)

# Skip if folder ends with .s.sol
if [[ $contractDir == *".s.sol" ]]; then
continue
fi

while IFS= read -r jsonFile; do
fileIn=out/$contractDir/$jsonFile
fileOut=logs/storage/$contractDir:${jsonFile%.json}.log
node .husky/storage-logger.js $fileIn $fileOut &
done <<< "$innerdirOutputs"
done <<< "$innerDirOutputs"
done <<< "$dirOutputs"

# Wait for all background jobs to finish
Expand Down
4 changes: 2 additions & 2 deletions .husky/pre-push
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ stashed=true
if [[ $output == *"No local changes to save"* ]]; then
stashed=false
fi
forge build --skip test script --sizes 2>&1 | sed -n '/Contract/,$p' > logs/contract-code-sizes.log
forge build --skip test --skip script --sizes 2>&1 | sed -n '/Contract/,$p' >logs/contract-code-sizes.log
.husky/generate-layout.sh

git add logs
Expand All @@ -21,5 +21,5 @@ if [ "$line_count" -gt 1 ]; then
fi

if $stashed; then
git stash pop
git stash pop
fi
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"transactions": [
{
"hash": "0x9383f14f3879c5302dd5ffed8ef65b47ed8f371496c0dcf7573c93bf306f4c31",
"transactionType": "CALL",
"contractName": null,
"contractAddress": null,
"function": null,
"arguments": null,
"transaction": {
"type": "0x00",
"from": "0xe880802580a1fbdef67ace39d1b21c5b2c74f059",
"to": "0x5fa49e6ca54a9daa8eca4f403adbde5ee075d84a",
"value": "0x0",
"data": "0xa1819f9a00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000065cf1d8d00000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000002400000000000000000000000000000000000000000000000000000000000000be0000000000000000000000000000000000000000000000000000000000000000500000000000000000000000064192819ac13ef72bf6b5ae239ac672b43a9af0800000000000000000000000064192819ac13ef72bf6b5ae239ac672b43a9af0800000000000000000000000064192819ac13ef72bf6b5ae239ac672b43a9af08000000000000000000000000a71456fa88a5f6a4696d0446e690db4a5913fab0000000000000000000000000a71456fa88a5f6a4696d0446e690db4a5913fab0000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000005c00000000000000000000000000000000000000000000000000000000000000780000000000000000000000000000000000000000000000000000000000000082000000000000000000000000000000000000000000000000000000000000003244bb5274a000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000002c4dff525e1000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000000100000000000000000000000094e496474f1725f1c1824cb5bdb92d7691a4f03a00000000000000000000000000000000000000000000000000000000000000010000000000000000000000001a89ecd466a23e98f07111b0510a2d6c1cd5e40000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000152d02c7e14af68000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000007f0e10af47c1c70000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000069e10de76676d0800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001844bb5274a000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001241b6e7594000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000010000000000000000000000001f7c16fce4fc894143afb5545bf04f676bf7dcf300000000000000000000000000000000000000000000000000000000000000010000000000000000000000001f7c16fce4fc894143afb5545bf04f676bf7dcf300000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001844bb5274a000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001241b6e7594000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000010000000000000000000000007ea3cca10668b8346aec0bf1844a49e995527c8b0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000241a81fc0d6692707dad2b5025a3a7cf2cf25acf0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064e9c0349800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000564dcb855eb360826f27d1eb9c57cbbe6c76f50f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000012401a5f43f000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000010000000000000000000000003c583c0c97646a73843ae57b93f33e1995c8dc800000000000000000000000000000000000000000000000000000000000000001000000000000000000000000564dcb855eb360826f27d1eb9c57cbbe6c76f50f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000f424000000000000000000000000000000000000000000000000000000000000f424000000000000000000000000000000000000000000000000000000000000f424000000000000000000000000000000000000000000000000000000000000f424000000000000000000000000000000000000000000000000000000000000f4240",
"nonce": "0x22"
},
"additionalContracts": [],
"isFixedGasLimit": false
}
],
"receipts": [],
"libraries": [],
"pending": [
"0x9383f14f3879c5302dd5ffed8ef65b47ed8f371496c0dcf7573c93bf306f4c31"
],
"returns": {},
"timestamp": 1707208654,
"chain": 2020,
"multi": false,
"commit": "97d2f9e"
}
Loading
Loading