Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
235 commits
Select commit Hold shift + click to select a range
930467e
draft of cargo stylus factory
chrisco512 Aug 26, 2024
36e3996
Start of custom fee tokens for rollups
yahgwai Sep 18, 2024
84ef567
Do not exclude batch reports when using fee token
gvladika Sep 19, 2024
8125656
Add condition for submitting the batch report, and do the scaling
gvladika Sep 19, 2024
74f9939
Add IFeeTokenPricer
gvladika Sep 19, 2024
504dbc0
Add getter and setter for pricer to the interface
gvladika Sep 19, 2024
44f3986
Add setter for feeTokenPricer
gvladika Sep 19, 2024
ef4f1fb
Add missing param
gvladika Sep 19, 2024
a6a3f55
Use new SeqInbox init param
gvladika Sep 19, 2024
f3eb844
Make existing tests work with feeTokenPricer
gvladika Sep 20, 2024
2897ce6
Format
gvladika Sep 20, 2024
70f6ad4
Add setFeeTokenPricer tests
gvladika Sep 20, 2024
213039f
Fee token pricing deployment
yahgwai Sep 20, 2024
4c643e1
Merge branch 'custom-fee-rollup' of https://github.com/OffchainLabs/n…
yahgwai Sep 20, 2024
57f46ed
Revert if trying to set fee token pricer when fee token is not used
gvladika Sep 20, 2024
33420d4
Add fuzz test for different exchange rates
gvladika Sep 23, 2024
8a1dfdd
Handle overflow case due to too high exchange rate
gvladika Sep 23, 2024
252f599
Updated erc20rollupeventinbox to do gas price scaling
yahgwai Sep 25, 2024
e852b6a
Merge branch 'custom-fee-rollup' of https://github.com/OffchainLabs/n…
yahgwai Sep 25, 2024
a702a08
Added integration test for batch poster reimbursement
yahgwai Sep 26, 2024
86c5a94
Update rollupInitialized test
gvladika Sep 26, 2024
1bcf1aa
Refactor tests and check initial cost is properly reported
gvladika Sep 26, 2024
e752cb7
Merge branch 'custom-fee-rollup' of https://github.com/OffchainLabs/n…
yahgwai Sep 26, 2024
14297dc
Added fee token pricer arg
yahgwai Sep 26, 2024
e3217ed
Use token fee pricer testnode ref
yahgwai Sep 26, 2024
cf42d00
Updated int fee token tests
yahgwai Sep 26, 2024
f64df33
Formatting
yahgwai Sep 26, 2024
70c19e8
Updated comments
yahgwai Sep 26, 2024
e3a7f9b
Formatting
yahgwai Sep 26, 2024
fcb4950
Try tests with init
yahgwai Sep 26, 2024
483171b
Added separate job for e2e tests
yahgwai Sep 26, 2024
913bf45
Missed test name change
yahgwai Sep 26, 2024
2956969
Disable while true condition linting
yahgwai Sep 26, 2024
1f33876
Fixed 4844 tests
yahgwai Sep 26, 2024
f22ec8c
Added fee token pricer address zero to arb rollup spec
yahgwai Sep 26, 2024
2b57aac
Formatting
yahgwai Sep 26, 2024
e6b0beb
Updated orbit ame
yahgwai Sep 26, 2024
2f876cf
Updated sigs and storage
yahgwai Sep 26, 2024
fde0833
Added estimate gas
yahgwai Sep 26, 2024
14a10ef
L1 wal balance console
yahgwai Sep 26, 2024
20ebdbe
Console logging
yahgwai Sep 26, 2024
782c792
Added gas price estimation
yahgwai Sep 26, 2024
9f17bcb
Update Slither db, no new findings
gvladika Sep 27, 2024
7f4161f
Add fuzz test for rollupInitialized
gvladika Sep 27, 2024
960d7da
Add ConstantExchangeRatePricer
gvladika Sep 30, 2024
e3cf8ed
Add OwnerAdjustableExchangeRatePricer
gvladika Sep 30, 2024
d0d31d3
Add uniswap v2 dependency
gvladika Sep 30, 2024
fcd2938
Add uniswap lib
gvladika Sep 30, 2024
0513e38
Uniswap v2 twap draft
gvladika Oct 1, 2024
96d2592
Merge branch 'develop' into custom-fee-rollup
gzeoneth Oct 1, 2024
cf9a962
Use local math files
gvladika Oct 2, 2024
0cb90fd
Return exchange rate
gvladika Oct 2, 2024
640a497
AMM trade tracker draft
gvladika Oct 2, 2024
93df126
Return exchange rate
gvladika Oct 2, 2024
d29724e
Add comments
gvladika Oct 2, 2024
3ce93dd
Fetch tokens
gvladika Oct 2, 2024
e0c7b7e
Add gas reporting hook
gvladika Oct 2, 2024
112c947
Update internal state
gvladika Oct 3, 2024
35aa8ac
Track exchange rate per spender
gvladika Oct 4, 2024
a90cc14
No need for ownable
gvladika Oct 4, 2024
85799f7
Avoid underflow
gvladika Oct 4, 2024
6ecce41
Owner sets deafult exchange rate
gvladika Oct 7, 2024
fc92cd2
Prvoide min amount of eth received to protect from slippage
gvladika Oct 7, 2024
a026be3
Scale to 18 decimals
gvladika Oct 7, 2024
db28e56
Use safe erc20
gvladika Oct 8, 2024
84090aa
Test swapTokenToEth
gvladika Oct 8, 2024
c003251
Test getExchangeRate
gvladika Oct 8, 2024
93fba73
Fix >18 decimals scaling
gvladika Oct 9, 2024
8475b0a
Simplify token spending calculation
gvladika Oct 9, 2024
2e5b248
Test state updates after batch is posted
gvladika Oct 9, 2024
a76a104
Make calldata cost adjustable
gvladika Oct 9, 2024
635cb84
No updates if ethAcc is 0
gvladika Oct 9, 2024
382b7f5
Control who can call gas hook and update internal state
gvladika Oct 9, 2024
58ca937
Add events and custom error
gvladika Oct 9, 2024
bf402da
Merge branch 'develop' into custom-fee-rollup
gvladika Oct 9, 2024
e071dde
Clean up
gvladika Oct 9, 2024
f050fdb
Update slither db
gvladika Oct 9, 2024
c015aaf
Update audit-ci.jsonc
gvladika Oct 9, 2024
5ba5abc
Provide trade deadline from outside
gvladika Oct 23, 2024
95a693e
Move fork tests to separate file
gvladika Oct 24, 2024
9193c21
Merge branch 'custom-fee-rollup' into fee-token-pricers
gvladika Oct 24, 2024
5711d1e
Updated format command
yahgwai Nov 28, 2024
d34fb05
Comment updates
yahgwai Nov 28, 2024
2cd9b03
Merge from develop
yahgwai Nov 28, 2024
931670e
Updated slither
yahgwai Nov 28, 2024
988b807
Updated slither
yahgwai Nov 28, 2024
51da15a
Merge from bold-merge
yahgwai Nov 29, 2024
5d4d1f9
Formatting
yahgwai Nov 29, 2024
af2754f
Updated signatures and storage
yahgwai Nov 29, 2024
36a4e3b
Slither
yahgwai Nov 29, 2024
049c5b2
Merge from custom-fee-rollup
yahgwai Nov 29, 2024
d7d3d1a
Toml update
yahgwai Nov 29, 2024
89542c1
Formatting and uniswap install
yahgwai Nov 29, 2024
9f56d06
Added trade tracker instead of amm trade tracker, and a readme
yahgwai Dec 13, 2024
b7a86ac
Updated readme and comments
yahgwai Dec 20, 2024
d6ed473
Merge from develop
yahgwai Dec 20, 2024
b805e8c
Formatting
yahgwai Dec 20, 2024
0858206
Merge branch 'custom-fee-rollup' into fee-token-pricers
yahgwai Dec 20, 2024
b757f17
Formatting
yahgwai Dec 20, 2024
6943069
chore: EdgeChallengeManager metadata
gzeoneth Jan 8, 2025
1524061
chore: add rei meta
gzeoneth Jan 8, 2025
bc05a75
Merge branch 'develop' into custom-fee-rollup
yahgwai Jan 10, 2025
57c8790
Updated fee token pricer zero in test helpers
yahgwai Jan 10, 2025
1ce7f05
Updated force include spec
yahgwai Jan 10, 2025
f514986
Merge branch 'custom-fee-rollup' into fee-token-pricers
gzeoneth Jan 13, 2025
f36b141
Test timeout action testnode
yahgwai Jan 14, 2025
d80ffd6
Dummy commit
yahgwai Jan 14, 2025
14242f5
First commit at updated cargo stylus factory
yahgwai Jan 21, 2025
01be2d4
Fixed seq inbox tests
yahgwai Jan 21, 2025
feb70b4
Renamed stylus deployer
yahgwai Jan 21, 2025
cdcc038
Added tests for stylus deployer
yahgwai Jan 29, 2025
9ddd933
Cleaned TODOs
yahgwai Jan 29, 2025
ba219cb
Merge branch 'main' into stylus-factory
yahgwai Jan 29, 2025
1153559
Merge from stylus factory
yahgwai Jan 29, 2025
77a6650
Updated format
yahgwai Jan 29, 2025
42bb409
Use hardhat config solc pragma
yahgwai Jan 29, 2025
32c3f52
Use stable foundry
yahgwai Jan 29, 2025
8cd8723
Slither update
yahgwai Jan 29, 2025
a01c67f
Whitespace change
yahgwai Jan 29, 2025
c6c9340
Merge branch 'custom-fee-rollup' into fee-token-pricers
yahgwai Jan 29, 2025
c74fcb3
Use stable foundry
yahgwai Jan 30, 2025
fabf92f
Use main testnode
yahgwai Jan 30, 2025
cefb070
Update src/stylus/StylusDeployer.sol
yahgwai Jan 31, 2025
217c247
Update src/stylus/StylusDeployer.sol
yahgwai Jan 31, 2025
21bb966
Updates from code review
yahgwai Jan 31, 2025
c620993
Merge branch 'stylus-factory-chris' of https://github.com/OffchainLab…
yahgwai Jan 31, 2025
da5c0b0
Updated format
yahgwai Jan 31, 2025
6c314cc
Updated slither
yahgwai Jan 31, 2025
42160d3
Updated assembly block
yahgwai Feb 3, 2025
6a06d3e
Formattinh
yahgwai Feb 3, 2025
d1fee3d
deploy erc20 impls
godzillaba Feb 3, 2025
473f602
Added pos arg
yahgwai Feb 4, 2025
d1c7ed6
Test ci
yahgwai Feb 5, 2025
913c4ba
works with fresh arbsepoli rollup
godzillaba Feb 5, 2025
4065bfa
fix execution script
godzillaba Feb 5, 2025
9f690bb
remove addresses from custom config
godzillaba Feb 5, 2025
96dd27a
remove deployed contracts
godzillaba Feb 5, 2025
9fb10c0
Try known arg combination
yahgwai Feb 6, 2025
198c0ba
Try different startup
yahgwai Feb 6, 2025
e264f22
Added pos arg
yahgwai Feb 6, 2025
7484023
Added no wait for l3 token bridge
yahgwai Feb 6, 2025
c2786a4
Added testnode ref
yahgwai Feb 6, 2025
afa248e
Removed reference to fee token pricer branch
yahgwai Feb 6, 2025
0137620
Try fee token pricer ref branch
yahgwai Feb 6, 2025
cf43bf7
Added fee token pricer args
yahgwai Feb 6, 2025
9d8a60a
Use stable foundry (#298)
godzillaba Feb 6, 2025
33a495a
ArbOS11To32UpgradeTest develop base branch (#286)
diegoximenes Feb 6, 2025
22a5054
Merge branch 'develop' into stylus-factory-chris
gzeoneth Feb 6, 2025
329af9f
Add a BigMap contract for testing the storage trie (#295)
eljobe Feb 6, 2025
402ac22
Merge branch 'develop' into bigmap-develop
gzeoneth Feb 6, 2025
612fe67
Merge pull request #299 from OffchainLabs/bigmap-develop
gzeoneth Feb 6, 2025
79d08fa
Merge branch 'develop' into stylus-factory-chris
gzeoneth Feb 6, 2025
16bb125
v3.0.1-beta.0
gzeoneth Feb 6, 2025
8bde272
Merge pull request #294 from OffchainLabs/stylus-factory-chris
gzeoneth Feb 6, 2025
206f989
Use named branch
yahgwai Feb 7, 2025
934d04f
Merge branch 'develop' into custom-fee-bold-script
godzillaba Feb 7, 2025
043efa5
Comment commit
yahgwai Feb 7, 2025
ec53ecc
test - nocache in foundry install
godzillaba Feb 7, 2025
d15f9d7
Added rollup creation changes
yahgwai Feb 7, 2025
fbafe1b
Merge branch 'develop' into custom-fee-rollup-ci
godzillaba Feb 7, 2025
27c28db
Merge pull request #302 from OffchainLabs/custom-fee-rollup-ci
yahgwai Feb 7, 2025
b52d292
Test output
yahgwai Feb 7, 2025
ae6d598
Merge branch 'custom-fee-rollup' of https://github.com/OffchainLabs/n…
yahgwai Feb 7, 2025
87b8501
Try timeout testnode
yahgwai Feb 7, 2025
c08389f
Add non zero loser stake escrow
yahgwai Feb 9, 2025
bb76d63
Added todo
yahgwai Feb 11, 2025
51a475a
Comment updates
yahgwai Feb 11, 2025
0481e0b
Merge branch 'custom-fee-rollup' into fee-token-pricers
yahgwai Feb 11, 2025
c9b45d3
Formatting
yahgwai Feb 11, 2025
c4ee8b8
Formatting
yahgwai Feb 11, 2025
13f2cac
Merge branch 'custom-fee-rollup' into fee-token-pricers
yahgwai Feb 11, 2025
cefb803
Add methods to enable/disable and check the EIP-7623 feature (#311)
eljobe Mar 17, 2025
f99223e
Adds the setWasmMaxSize precompile function to ArbOwner
eljobe Mar 24, 2025
b66a035
Make a tabs-to-spaces pass
eljobe Mar 24, 2025
0e3186f
Format the contract.
eljobe Mar 24, 2025
213a52c
Merge branch 'develop' into custom-fee-bold-script
godzillaba Mar 24, 2025
55aaa2d
disable delay buffer by default
godzillaba Mar 25, 2025
01a3c3b
chore: bump dependencies (#308)
gzeoneth Mar 26, 2025
2982a49
Merge branch 'develop' into custom-fee-bold-script
godzillaba Mar 26, 2025
8d07184
disable validator whitelist by default
godzillaba Mar 26, 2025
c502590
Revert "disable validator whitelist by default"
godzillaba Mar 26, 2025
2558dbe
ENABLE validator whitelist by default
godzillaba Mar 26, 2025
25150cd
remove testnode validator
godzillaba Mar 26, 2025
a3edf97
update defaults
godzillaba Mar 26, 2025
21c3d79
custom is default config
godzillaba Mar 26, 2025
6bea812
fix buffer config
godzillaba Mar 26, 2025
83c77ee
additional erc20 specific checks in bold upgrade script
godzillaba Mar 26, 2025
80c1659
fix comment
godzillaba Mar 26, 2025
117f1c3
Merge branch 'develop' into set-max-wasm
eljobe Mar 27, 2025
161749e
Merge pull request #316 from OffchainLabs/set-max-wasm
eljobe Mar 27, 2025
83364be
Multi redeem public (#313)
eljobe Mar 27, 2025
b46a18f
add custom hardhat network for bold scripts (#317)
godzillaba Mar 27, 2025
55347b0
Merge branch 'develop' into custom-fee-bold-script
gzeoneth Mar 27, 2025
9d647fe
fix: hardhat deploy getContract is deprecated
gzeoneth Mar 28, 2025
f5d1864
fix: unused
gzeoneth Mar 28, 2025
bff0c73
fix: test edge case
gzeoneth Mar 28, 2025
ac78887
Merge pull request #297 from OffchainLabs/custom-fee-bold-script
gzeoneth Mar 28, 2025
4d2e49c
SelfDestruct helper contracts for unit testing SelfDestruct (#319)
amsanghi Mar 28, 2025
ae2d7a4
Merge branch 'develop' into fix-hh-deploy
gzeoneth Mar 28, 2025
601afc7
fix: v3 rollup deployment tool (#312)
gzeoneth Mar 28, 2025
72a991f
Merge branch 'develop' into fix-hh-deploy
gzeoneth Mar 28, 2025
b7844e9
Merge pull request #281 from OffchainLabs/fee-token-pricers
gzeoneth Mar 28, 2025
54d524f
Merge remote-tracking branch 'origin/develop' into custom-fee-rollup
gzeoneth Mar 28, 2025
75c15a3
ci: update testnode ref
gzeoneth Mar 28, 2025
3bdd739
chore: fix 4b and storage
gzeoneth Mar 28, 2025
f3388e6
fix: skip custom fee token test for eth rollup
gzeoneth Mar 28, 2025
86148f4
fix: use delay proof sig
gzeoneth Mar 28, 2025
b75bb2f
fix: isbold true
gzeoneth Mar 28, 2025
9ee8b8b
fix: stylus test
gzeoneth Mar 29, 2025
df733b4
chore: update RollupCreated event sig
gzeoneth Mar 29, 2025
ea236d9
chore: speed up confirmation
gzeoneth Mar 29, 2025
41518ea
fix: dummy stake token
gzeoneth Mar 29, 2025
b49dacf
test: workaround
gzeoneth Mar 29, 2025
ef18d1b
ci: run all e2e
gzeoneth Mar 29, 2025
2f27309
ci: skip test if the fee token pricer is not set
gzeoneth Mar 29, 2025
a3c2313
ci: dont wait forever
gzeoneth Mar 29, 2025
11fa729
Merge remote-tracking branch 'origin/fix-hh-deploy' into custom-fee-r…
gzeoneth Mar 29, 2025
81535f8
fix: hardhat deploy getContract is deprecated (#322)
gzeoneth Apr 1, 2025
a019af9
Merge branch 'develop' into custom-fee-rollup
godzillaba Apr 1, 2025
2a6127f
docs: remove stale comment
gzeoneth Apr 2, 2025
8aba166
chore: remove unused import
gzeoneth Apr 2, 2025
d57ad79
format: yarn format
gzeoneth Apr 2, 2025
8ce7e61
ci: enable e2e
gzeoneth Apr 2, 2025
0e7a38b
ci: fix e2e
gzeoneth Apr 2, 2025
1fad2ab
revert: #294
gzeoneth Apr 2, 2025
62248c0
Merge branch 'revert-pr-294' into fix-format
gzeoneth Apr 2, 2025
611b13d
feat: FeeTokenPricerSet event (#324)
gzeoneth Apr 2, 2025
2a16706
chore: bump sdk to 3.7.3
gzeoneth Apr 3, 2025
5d39af5
release: v3.0.1
gzeoneth Apr 4, 2025
6ea9d8d
Merge pull request #326 from OffchainLabs/fix-format
gzeoneth Apr 10, 2025
2d98680
Merge remote-tracking branch 'origin/develop' into custom-fee-rollup
gzeoneth Apr 10, 2025
2db313a
chore: remove patch
gzeoneth Apr 10, 2025
052546a
chore: update slither db
gzeoneth Apr 10, 2025
9d0e90e
release: v3.1.0
gzeoneth Apr 10, 2025
50cbad0
Merge pull request #252 from OffchainLabs/custom-fee-rollup
gzeoneth Apr 11, 2025
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
10 changes: 8 additions & 2 deletions .env-sample
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
L1_RPC_URL="http://127.0.0.1:8545"
L1_PRIV_KEY="0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"
CONFIG_NETWORK_NAME="arb1"
CONFIG_NETWORK_NAME="custom"
DEPLOYED_CONTRACTS_DIR="./scripts/files/"
DISABLE_VERIFICATION=true

# to use the 'custom' hardhat network, set the following variables
CUSTOM_RPC_URL="http://127.0.0.1:8545"
CUSTOM_ETHERSCAN_API_KEY=
CUSTOM_CHAINID=1337
CUSTOM_ETHERSCAN_API_URL=
CUSTOM_ETHERSCAN_BROWSER_URL=
204 changes: 106 additions & 98 deletions .github/workflows/contract-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ jobs:
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
version: stable
cache: false

- name: Setup node/yarn
uses: actions/setup-node@v3
Expand Down Expand Up @@ -50,7 +51,8 @@ jobs:
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
version: stable
cache: false

- name: Setup nodejs
uses: actions/setup-node@v2
Expand All @@ -62,7 +64,8 @@ jobs:
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
version: stable
cache: false

- name: Check Contracts Format
run: forge fmt --check
Expand Down Expand Up @@ -128,7 +131,8 @@ jobs:
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
version: stable
cache: false

- uses: OffchainLabs/actions/run-nitro-test-node@main
with:
Expand All @@ -150,114 +154,88 @@ jobs:

- name: Test 4844
run: yarn test:4844
# test-e2e:
# name: Test e2e
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# with:
# submodules: recursive

# - uses: OffchainLabs/actions/run-nitro-test-node@main
# with:
# l3-node: true
# no-token-bridge: true
# no-l3-token-bridge: true
# nitro-contracts-branch: '${{ github.event.pull_request.head.sha || github.sha }}'
# nitro-testnode-ref: node-18

# - name: Setup node/yarn
# uses: actions/setup-node@v3
# with:
# node-version: 18
# cache: 'yarn'
# cache-dependency-path: '**/yarn.lock'

# - name: Install packages
# run: yarn

# - name: Compile contracts
# run: yarn build
test-e2e:
name: Test e2e
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive

# - name: Run e2e tests
# run: yarn test:e2e
# test-e2e-custom-fee-token:
# name: Test e2e custom fee token
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# with:
# submodules: recursive
- uses: OffchainLabs/actions/run-nitro-test-node@main
with:
l3-node: true
no-token-bridge: true
no-l3-token-bridge: true
nitro-contracts-branch: '${{ github.event.pull_request.head.sha || github.sha }}'
nitro-testnode-ref: v3-support

# - uses: OffchainLabs/actions/run-nitro-test-node@main
# with:
# l3-node: true
# args: --l3-fee-token
# no-token-bridge: true
# no-l3-token-bridge: true
# nitro-contracts-branch: '${{ github.event.pull_request.head.sha || github.sha }}'
# nitro-testnode-ref: node-18
- name: Setup node/yarn
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'
cache-dependency-path: '**/yarn.lock'

# - name: Setup node/yarn
# uses: actions/setup-node@v3
# with:
# node-version: 18
# cache: 'yarn'
# cache-dependency-path: '**/yarn.lock'
- name: Install packages
run: yarn

# - name: Install packages
# run: yarn
- name: Compile contracts
run: yarn build

# - name: Compile contracts
# run: yarn build
- name: Run e2e tests
run: yarn test:e2e

# - name: Run e2e tests
# run: yarn test:e2e
# test-e2e-fee-token-6-decimals:
# name: Test e2e fee token with 6 decimals
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# with:
# submodules: recursive
test-e2e-custom-fee-token:
name: Test e2e custom fee token
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive

# - uses: OffchainLabs/actions/run-nitro-test-node@main
# with:
# l3-node: true
# args: --l3-fee-token --l3-fee-token-decimals 6
# no-token-bridge: true
# no-l3-token-bridge: true
# nitro-contracts-branch: '${{ github.event.pull_request.head.sha || github.sha }}'
# nitro-testnode-ref: 'non18-decimal-token-node-18'
- uses: OffchainLabs/actions/run-nitro-test-node@main
with:
l3-node: true
args: --l3-fee-token
no-token-bridge: true
no-l3-token-bridge: true
nitro-contracts-branch: '${{ github.event.pull_request.head.sha || github.sha }}'
nitro-testnode-ref: v3-support

# - name: Setup node/yarn
# uses: actions/setup-node@v3
# with:
# node-version: 18
# cache: 'yarn'
# cache-dependency-path: '**/yarn.lock'
- name: Setup node/yarn
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'
cache-dependency-path: '**/yarn.lock'

# - name: Install packages
# run: yarn
- name: Install packages
run: yarn

# - name: Compile contracts
# run: yarn build
- name: Compile contracts
run: yarn build

# - name: Run e2e tests
# run: yarn test:e2e
- name: Run e2e tests
run: yarn test:e2e

bold-upgrade:
name: BOLD upgrade test
test-e2e-fee-token-6-decimals:
name: Test e2e fee token with 6 decimals and pricer
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- uses: OffchainLabs/actions/run-nitro-test-node@main
with:
version: nightly
l3-node: true
args: --l3-fee-token --l3-fee-token-pricer --l3-fee-token-decimals 6
no-token-bridge: true
no-l3-token-bridge: true
nitro-testnode-ref: v3-support
nitro-contracts-branch: '${{ github.event.pull_request.head.sha || github.sha }}'

- name: Setup node/yarn
uses: actions/setup-node@v3
Expand All @@ -270,11 +248,41 @@ jobs:
run: yarn

- name: Compile contracts
run: yarn build:all
run: yarn build

- name: Run e2e tests
run: yarn test:e2e

# bold-upgrade:
# name: BOLD upgrade test
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# with:
# submodules: recursive

# - name: Install Foundry
# uses: foundry-rs/foundry-toolchain@v1
# with:
# version: stable
# cache: false

# - name: Setup node/yarn
# uses: actions/setup-node@v3
# with:
# node-version: 18
# cache: 'yarn'
# cache-dependency-path: '**/yarn.lock'

# - name: Install packages
# run: yarn

# - name: Compile contracts
# run: yarn build:all

- name: Copy .env
run: |
cp ./.env-sample ./.env
# - name: Copy .env
# run: |
# cp ./.env-sample ./.env

- name: Test upgrade
run: L1_RPC=${{ secrets.L1_RPC || 'https://rpc.ankr.com/eth' }} yarn test:upgrade
# - name: Test upgrade
# run: L1_RPC=${{ secrets.L1_RPC || 'https://rpc.ankr.com/eth' }} yarn test:upgrade
54 changes: 3 additions & 51 deletions audit-ci.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,8 @@
"$schema": "https://github.com/IBM/audit-ci/raw/main/docs/schema.json",
"low": true,
"allowlist": [
// OpenZeppelin Contracts's SignatureChecker may revert on invalid EIP-1271 signers
"GHSA-4g63-c64m-25w9",
// OpenZeppelin Contracts's GovernorVotesQuorumFraction updates to quorum may affect past defeated proposals
"GHSA-xrc4-737v-9q75",
// OpenZeppelin Contracts's ERC165Checker may revert instead of returning false
"GHSA-qh9x-gcfh-pcrw",
// OpenZeppelin Contracts vulnerable to ECDSA signature malleability. Only an issue for the functions that take a single `bytes` argument, and not the functions that take `r, v, s` or `r, vs` as separate arguments.
"GHSA-4h98-2769-gh6h",
// GovernorCompatibilityBravo may trim proposal calldata
"GHSA-93hq-5wgc-jc82",
// OpenZeppelin Contracts ERC165Checker unbounded gas consumption
"GHSA-7grf-83vw-6f5x",
// OpenZeppelin: Using ERC2771Context with a custom forwarder can yield address(0)
"GHSA-g4vp-m682-qqmp",
// OpenZeppelin Contracts TransparentUpgradeableProxy clashing selector calls may not be delegated
Expand All @@ -22,59 +12,21 @@
"GHSA-5h3x-9wvq-w4m2",
// axios cookies data-privacy issue; used only in hardhat-deploy and sol2uml (dev deps)
"GHSA-wf5p-g6vw-rhxx",
// flat vulnerable to Prototype Pollution
"GHSA-2j2x-2gpw-g8fm",
// regular expression DoS in debug
"GHSA-gxpj-cx7g-858c",
// tough-cookie Prototype Pollution vulnerability; used only via eth-gas-reporter
"GHSA-72xf-g2v4-qvf3",
// minimatch ReDoS vulnerability
"GHSA-f8q6-p94x-37v3",
// Server-Side Request Forgery in Request
"GHSA-p8p7-x288-28g6",
// OpenZeppelin Contracts using MerkleProof multiproofs may allow proving arbitrary leaves for specific trees; unused
"GHSA-wprv-93r4-jj2p",
// follow-redirects improperly handles URLs in the url.parse() function
"GHSA-jchw-25xp-jwwc",
// yargs-parser Vulnerable to Prototype Pollution
"GHSA-p9pc-299p-vxgp",
// Axios vulnerable to Server-Side Request Forgery
"GHSA-4w2v-q235-vp99",
// axios Inefficient Regular Expression Complexity vulnerability
"GHSA-cph5-m8f7-6c5x",
// Exposure of Sensitive Information to an Unauthorized Actor in follow-redirects
"GHSA-pw2r-vq6v-hr8c",
// Exposure of sensitive information in follow-redirects
"GHSA-74fj-2j2h-c42q",
// Open Zeppelin: Base64 encoding may read from potentially dirty memory
"GHSA-9vx6-7xxf-x967",
// semver vulnerable to Regular Expression Denial of Service
"GHSA-c2qf-rxjj-qqgw",
// follow-redirects' Proxy-Authorization header kept across hosts
"GHSA-cxjh-pqwp-8mfp",
// Prototype Pollution in async
"GHSA-fwr7-v2mv-hh25",
// ws affected by a DoS when handling a request with many HTTP headers
"GHSA-3h5v-q93c-6h6q",
// Elliptic allows BER-encoded signatures - only used in dev
"GHSA-49q7-c7j4-3p7m",
// Elliptic's EDDSA missing signature length check - only used in dev
"GHSA-f7q4-pwc6-w24p",
// Elliptic's ECDSA missing check for whether leading bit of r and s is zero - only used in dev
"GHSA-977x-g7h5-7qgw",
// Server-Side Request Forgery in axios
"GHSA-8hc4-vh64-cxmj",
// Regular Expression Denial of Service (ReDoS) in micromatch
"GHSA-952p-6rrq-rcjv",
// cookie accepts cookie name, path, and domain with out of bounds characters
"GHSA-pxg6-pf52-xh8x",
// Elliptic's verify function omits uniqueness validation
"GHSA-434g-2637-qmqr",
// Valid ECDSA signatures erroneously rejected in Elliptic
"GHSA-fc9h-whq2-v747",
// secp256k1-node allows private key extraction over ECDH
"GHSA-584q-6j8j-r5pm",
// Regular Expression Denial of Service (ReDoS) in cross-spawn
"GHSA-3xgq-45jj-v275"
"GHSA-3xgq-45jj-v275",
// axios Requests Vulnerable To Possible SSRF and Credential Leakage via Absolute URL
"GHSA-jr5f-v2jv-69x6"
]
}
17 changes: 13 additions & 4 deletions deploy/InboxStubCreator.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
module.exports = async hre => {
const { deployments, getNamedAccounts, ethers } = hre
const { deploy } = deployments
const { deployer } = await getNamedAccounts()

const inboxDeployResult = await deploy('InboxStub', {
const inboxDeployResult = await deployments.deploy('InboxStub', {
from: deployer,
args: [],
})

const bridge = await ethers.getContract('BridgeStub')
const inbox = await ethers.getContract('InboxStub')
const bridge = await ethers.getContractAt(
'BridgeStub',
(
await deployments.get('BridgeStub')
).address
)
const inbox = await ethers.getContractAt(
'InboxStub',
(
await deployments.get('InboxStub')
).address
)

if (inboxDeployResult.newlyDeployed) {
await bridge.setDelayedInbox(inbox.address, true)
Expand Down
Loading