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

contract updates #16

Closed
wants to merge 288 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
288 commits
Select commit Hold shift + click to select a range
519ba6f
Add back adminproxy
gvladika Dec 27, 2023
afbf5b1
Add helper for deploying factories
gvladika Jan 4, 2024
49a7dce
Format
gvladika Jan 4, 2024
f853358
Rename interface
gvladika Jan 4, 2024
103fc57
Merge branch 'develop' into factory-deployer-helper
gvladika Jan 4, 2024
2acfe40
Make e2e test work for non18 decimal fee token
gvladika Jan 10, 2024
902a4f7
Report 0 batch poster spendings for rollups using custom fee token
gvladika Jan 12, 2024
02075fc
Add unit test for fee token based chain
gvladika Jan 12, 2024
600b090
Add test for arbitrum hosted ETH-based chain
gvladika Jan 12, 2024
120065a
Make it more readable
gvladika Jan 12, 2024
8447048
Add missing deployment block
gvladika Jan 12, 2024
efa841a
Add DeployHelper e2e test
gvladika Jan 12, 2024
8ef3e93
Update DeployHelper to correctly calculate fee amount in the native t…
gvladika Jan 12, 2024
ccc21c1
Add e2e test for deploying factories via rollup creator
gvladika Jan 15, 2024
a727544
Add check for 'sendL2Message' payload
gvladika Jan 15, 2024
99e6986
Add checks to confirm correct number of tokens has been locked and mi…
gvladika Jan 15, 2024
49bedf0
Make test work for ETH based rollup
gvladika Jan 16, 2024
016b8ee
Prescale fee tokens in RollupCreator
gvladika Jan 16, 2024
b500853
Make test work for non-18 fee token decimals
gvladika Jan 16, 2024
c833382
Remove .only
gvladika Jan 16, 2024
5a492e7
Use correct number of decimals
gvladika Jan 17, 2024
0d26adb
Calculate amount of fees
gvladika Jan 17, 2024
48ea94a
Improve fee calculation
gvladika Jan 17, 2024
0df872c
Sum up retryable cost for each ticket separately to account for round…
gvladika Jan 17, 2024
42d420d
Fix checks
gvladika Jan 17, 2024
1698e1a
Merge branch 'develop' into fee-token-reports
gvladika Jan 17, 2024
505c024
Report 0 data cost in init msg for fee token based chains
gvladika Jan 18, 2024
87f3dde
Add Foundry test for rollup event inbox, init function
gvladika Jan 18, 2024
396a26d
Add rollupInitialized tests
gvladika Jan 18, 2024
8dd2e18
Check event MessageDelivered params
gvladika Jan 19, 2024
764c1b8
Merge branch 'develop' into fee-token-reports
gvladika Jan 19, 2024
0e8e684
Instead of reporting 0 basefee, don't send report at all in case fee …
gvladika Jan 22, 2024
e8b785b
Merge branch 'fee-token-reports' of github.com:OffchainLabs/nitro-con…
gvladika Jan 22, 2024
4c994f6
Make 'isUsingFeeToken' immutable to avoid nativeToken() calls
gvladika Jan 22, 2024
deb18fb
Add constructor/initialization unit tests
gvladika Jan 22, 2024
6bc4de6
Merge branch 'fee-token-reports' into init-price
gvladika Jan 22, 2024
94cbde1
Merge branch 'fee-token-reports' into init-price
gvladika Jan 23, 2024
4dc3898
Merge branch 'develop' into init-price
gvladika Feb 2, 2024
10cf2d1
Merge branch 'develop' into init-price
gvladika Feb 28, 2024
b2b37dd
Merge branch 'develop' into init-price
gvladika Mar 5, 2024
abdb9ea
Remove print
gvladika Mar 28, 2024
b1c81d9
Merge branch 'main' into g-handle-decimals
gvladika Apr 2, 2024
882a702
Merge branch 'g-handle-decimals' into decimals-audit
gvladika Apr 2, 2024
a7c0de7
Add new function sig
gvladika Apr 2, 2024
b5c9d78
Merge branch 'g-handle-decimals' into decimals-audit
gvladika Apr 2, 2024
3d3ce1e
fix comment for excessFeeRefundAddress
Jason-W123 Apr 2, 2024
acc5618
Update src/node-interface/NodeInterface.sol
Jason-W123 Apr 7, 2024
94e2ab7
Refactor e2e tests
gvladika Apr 8, 2024
de162b0
Read rollup creator address from logs
gvladika Apr 8, 2024
b77a8ab
Add CI config
gvladika Apr 8, 2024
d317dab
Merge branch 'testnode-deploy' into e2e-to-ci
gvladika Apr 9, 2024
e7b2a7e
Use current branch for CI
gvladika Apr 9, 2024
92a7f4e
Also run e2e test on top of custom fee token chain
gvladika Apr 9, 2024
d0433c1
Remove unused
gvladika Apr 9, 2024
bad6780
Update src/node-interface/NodeInterface.sol
Jason-W123 Apr 16, 2024
a2889ae
fix to all comments
Jason-W123 Apr 17, 2024
e7ec425
add unsafe entrypoint situation
Jason-W123 Apr 19, 2024
4ab3943
Merge branch 'decimals-audit' into e2e-decimals
gvladika Apr 22, 2024
08ad24a
Merge branch 'develop' into e2e-to-ci
gvladika Apr 23, 2024
4255d5a
Merge branch 'develop' into init-price
gvladika Apr 23, 2024
ce2e32b
reset to high level comment
Jason-W123 Apr 24, 2024
9e875b1
Merge branch 'develop' into e2e-to-ci
gvladika Apr 29, 2024
05f263d
Use defaults
gvladika Apr 29, 2024
07d8116
Merge branch 'e2e-to-ci' of github.com:OffchainLabs/nitro-contracts i…
gvladika Apr 29, 2024
d9593ea
Add missing refs
gvladika Apr 29, 2024
3323768
Skip check if local deployment
gvladika Apr 29, 2024
9de6819
Revert "Skip check if local deployment"
gvladika Apr 29, 2024
a9fd08d
Merge branch 'develop' into e2e-decimals
gvladika Apr 30, 2024
13fb029
Merge branch 'develop' into e2e-to-ci
gvladika May 7, 2024
62a424f
Merge branch 'develop' into e2e-decimals
gvladika May 7, 2024
e4cfb2e
Merge branch 'develop' into e2e-to-ci
gvladika May 13, 2024
eebd303
Merge branch 'e2e-to-ci' of github.com:OffchainLabs/nitro-contracts i…
gvladika May 13, 2024
791a4dd
Bump SDK
gvladika May 13, 2024
0b0fa6a
Refactor withdrawal test
gvladika May 13, 2024
8a9df20
Use whole number
gvladika May 13, 2024
83dd079
Do amount scaling where necessary
gvladika May 13, 2024
5754b88
Scale amount conditionally
gvladika May 13, 2024
05b1c67
Yarn audit fix
gvladika May 13, 2024
d320be9
Update audit-ci.json
gvladika May 13, 2024
6d35410
feat: CacheManager qol
gzeoneth May 14, 2024
15a0e1b
docs: proper natspec tag
gzeoneth May 14, 2024
11409d8
perf: cache decay
gzeoneth May 14, 2024
d7ae068
docs: chunk explain
gzeoneth May 14, 2024
c14c60e
Make node version consistent
gvladika May 14, 2024
869a458
Bump node
gvladika May 14, 2024
c4322db
Bump hardhat
gvladika May 14, 2024
2562279
Merge pull request #165 from OffchainLabs/e2e-to-ci
gzeoneth May 14, 2024
c45c84d
refactor: get rid of while true
gzeoneth May 14, 2024
5b485d2
refactor: remove loop
gzeoneth May 14, 2024
a83fb1d
fix: i=0
gzeoneth May 14, 2024
e9c1917
test: mustCache
gzeoneth May 14, 2024
f4937b3
fix: reduced cache size
gzeoneth May 14, 2024
2ebb078
refactor: needToFree
gzeoneth May 14, 2024
cb4ce8c
test: better cache manager test
gzeoneth May 14, 2024
8b29b5e
chore: remove log
gzeoneth May 14, 2024
86bf6e5
fix: lint
gzeoneth May 14, 2024
53adafa
fix: review comments
gzeoneth May 14, 2024
244303e
fix: review comments 2
gzeoneth May 14, 2024
c1cf003
fix: loop length
gzeoneth May 14, 2024
c4bd9a5
doc: fix comment
gzeoneth May 14, 2024
2af5173
Merge branch 'develop' into cache-manager-qol
gzeoneth May 14, 2024
ad27a47
Merge pull request #185 from OffchainLabs/cache-manager-qol
gzeoneth May 14, 2024
144acb1
Merge branch 'develop' into g-handle-decimals
gvladika May 15, 2024
a537889
Bump Slither action
gvladika May 15, 2024
3c2ef62
Workaround for Slither bug
gvladika May 15, 2024
bf5cabe
Update slither db
gvladika May 15, 2024
013809a
Update slither db
gvladika May 15, 2024
e43f6c2
Use 0.3.1
gvladika May 15, 2024
2d7ce34
Update slither db
gvladika May 15, 2024
8d506e0
Merge branch 'g-handle-decimals' into decimals-audit
gvladika May 15, 2024
0770fe0
Merge branch 'decimals-audit' of github.com:OffchainLabs/nitro-contra…
gvladika May 15, 2024
7dd3257
Merge branch 'decimals-audit' into e2e-decimals
gvladika May 15, 2024
be976e9
Add 6 decimals chain to CI
gvladika May 15, 2024
2ea34de
DOn't bump hardhat yet
gvladika May 16, 2024
e0a9c88
Merge branch 'develop' into e2e-withdraw
gvladika May 16, 2024
29a2d20
Don't handle audit-ci in this PR
gvladika May 16, 2024
ad0b301
Merge branch 'e2e-withdraw' of github.com:OffchainLabs/nitro-contract…
gvladika May 16, 2024
64a19cd
Merge branch 'develop' into stylus_recursive_test
gzeoneth May 22, 2024
4e153cc
Merge pull request #184 from OffchainLabs/stylus_recursive_test
gzeoneth May 22, 2024
b9da273
feat: anytrust fast confirmation
gzeoneth May 22, 2024
81eb06a
docs: fastConfirmNextNode
gzeoneth May 22, 2024
4445cd5
Merge branch 'develop' into bump-slither
gzeoneth May 24, 2024
00f94f7
Merge pull request #186 from OffchainLabs/bump-slither
gzeoneth May 24, 2024
b0126f5
Merge pull request #102 from OffchainLabs/decimals-audit
gzeoneth May 24, 2024
6bd3cf1
add the eigenDA header flag
afkbyte Apr 19, 2024
ccaa00e
Fix broken lock file
epociask May 30, 2024
c455ef1
Merge pull request #1 from Layr-Labs/epociask--fix-lockfile
epociask May 30, 2024
a14d145
feat: Rollup manager
epociask May 30, 2024
9c99910
feat: EigenDA support - update test scripts
epociask May 31, 2024
051f6f8
Merge pull request #2 from Layr-Labs/epociask--rollup-manager-contract
epociask May 31, 2024
f93a327
test: improve outbox tests
gzeoneth Jun 4, 2024
6333a3e
fix: Update dependency wiring for test deployments
epociask Jun 5, 2024
8c302f4
update prooftype from 1 to 0
afkbyte Jun 5, 2024
a6edf09
Merge pull request #4 from Layr-Labs/afk/fix-osp-proof-version
epociask Jun 5, 2024
086b1ca
Merge pull request #188 from OffchainLabs/fix-outbox-test
gzeoneth Jun 6, 2024
d7aa313
Fix link to license
joshuacolvin0 Jun 10, 2024
f00ebfb
save work
afkbyte Jun 11, 2024
2d95abf
Add initializer for cache manager
yahgwai Jun 14, 2024
7f6f430
Forge fmt
yahgwai Jun 14, 2024
1e37427
Scale fee amount in rollupo creation script
gvladika Jun 14, 2024
483153f
src/
yahgwai Jun 14, 2024
334b760
Added slither exceptions for cachemanager
yahgwai Jun 14, 2024
0f4d8f3
Do scaling only when fee token is used
gvladika Jun 14, 2024
432f8af
Deploy and set cache manager
gvladika Jun 14, 2024
aebd20f
Deploy on child chain
gvladika Jun 14, 2024
6cc9bbf
Use existing deployer key
gvladika Jun 14, 2024
7abde68
Put CacheManager deployment into separate script
gvladika Jun 17, 2024
8676636
Add yarn action to deploy cache manager in testnode
gvladika Jun 17, 2024
a6e8efa
Merge pull request #192 from OffchainLabs/deploy-cache-manager
gvladika Jun 18, 2024
fa30403
Update ERC20Outbox.t.sol
0x0aa0 Jun 18, 2024
c81054f
Update ERC20Outbox.t.sol
0x0aa0 Jun 18, 2024
fa9a0b3
update storage layout
afkbyte Jun 19, 2024
bce4e72
Merge branch 'develop' into fast-conf-port
gzeoneth Jun 20, 2024
6e5074e
nit: etching comment
0x0aa0 Jun 20, 2024
33b9f0a
Merge pull request #6 from Layr-Labs/fix-unkknown-root-bug
afkbyte Jun 21, 2024
f1bb9a5
Specify address when caching Stylus program
PlasmaPower Jun 21, 2024
cc53496
Add back in cacheCodehash as deprecated
PlasmaPower Jun 21, 2024
ccd2c2b
chore: update storage and 4bytes
gzeoneth Jun 24, 2024
40caf7c
Merge branch 'develop' into cache-program-address
gzeoneth Jun 25, 2024
37bb571
fix: merge conflicts
gzeoneth Jun 25, 2024
1a868ce
feat: getMinBid(address)
gzeoneth Jun 25, 2024
739495e
ci: contract size check
gzeoneth Jun 27, 2024
6716681
fix: workaround contract size issue
gzeoneth Jun 27, 2024
2d525bd
dispersed new blob and deployed rollup manager
afkbyte Jun 27, 2024
a8eebef
all tests passing
afkbyte Jun 27, 2024
24e76a1
test: prebold fast confirmer
gzeoneth Jul 1, 2024
e17f2ac
docs: anyTrustFastConfirmer need to be validator
gzeoneth Jul 1, 2024
b1a870d
docs: reminder to remove old fast confirmer
gzeoneth Jul 1, 2024
d876e2a
test: add deadline test
gzeoneth Jul 1, 2024
f1a5caf
feat(contracts): Update SequencerInbox and add additional stub contra…
epociask Jul 1, 2024
7142dd8
fix: lint
gzeoneth Jul 1, 2024
2ca8da4
Merge branch 'develop' into e2e-withdraw
gzeoneth Jul 1, 2024
b8fd7cd
Merge pull request #194 from OffchainLabs/cache-program-address
gzeoneth Jul 1, 2024
1c0b9c7
Merge branch 'develop' into proxy-cache-manager
gzeoneth Jul 1, 2024
cf0f18f
test: add CacheManager to upgradibility checks
gzeoneth Jul 1, 2024
45f7d4f
chore: push CacheManager storage and 4bytes
gzeoneth Jul 1, 2024
6ec09ad
chore: ignore slither
gzeoneth Jul 1, 2024
8017f6d
Merge branch 'develop' into hotfix-comment-for-excessFeeRefundAddress
gzeoneth Jul 1, 2024
b34e450
Merge branch 'develop' into init-price
gzeoneth Jul 1, 2024
04f247e
Merge branch 'develop' into license-link
gzeoneth Jul 1, 2024
d021be2
Merge pull request #191 from OffchainLabs/proxy-cache-manager
gzeoneth Jul 1, 2024
ab25450
Merge branch 'develop' into license-link
gzeoneth Jul 1, 2024
7106b13
Merge pull request #190 from OffchainLabs/license-link
gzeoneth Jul 1, 2024
18f950e
Merge branch 'develop' into hotfix-comment-for-excessFeeRefundAddress
gzeoneth Jul 1, 2024
cfd5cb8
Merge pull request #167 from OffchainLabs/hotfix-comment-for-excessFe…
gzeoneth Jul 1, 2024
4acde7d
Merge branch 'develop' into e2e-withdraw
gzeoneth Jul 1, 2024
a1f57bf
Merge pull request #183 from OffchainLabs/e2e-withdraw
gzeoneth Jul 1, 2024
06e6d6b
Merge branch 'develop' into init-price
gzeoneth Jul 1, 2024
41a265d
Merge branch 'develop' into g-handle-decimals
gzeoneth Jul 1, 2024
fc6603c
Merge branch 'develop' into factory-deployer-helper
gzeoneth Jul 1, 2024
16095ce
Merge pull request #105 from OffchainLabs/factory-deployer-helper
gzeoneth Jul 1, 2024
6111b41
fix: use safeApprove
ControlCplusControlV Jul 1, 2024
e25b9f6
test: fix similar to #188 with scoping
gzeoneth Jul 1, 2024
1256a71
Merge branch 'develop' into g-handle-decimals
gzeoneth Jul 1, 2024
a7fb67a
Merge branch 'develop' into init-price
gzeoneth Jul 2, 2024
24f58bb
kinda fix broken sequencerInbox forge test
epociask Jul 2, 2024
0aaab5d
Deploy CacheManger as upgradeable
gvladika Jul 2, 2024
3c7744f
removed typescript client
epociask Jul 2, 2024
0929b6f
Use type to init
gvladika Jul 2, 2024
2f8d2cc
Merge pull request #8 from Layr-Labs/epociask--cherry-pick-test-fix-c…
epociask Jul 2, 2024
63bdd82
merge upstream changes and fix failing inbox test
epociask Jul 2, 2024
7d788fd
fix tests, remove debug stmts, unecessary structs
epociask Jul 3, 2024
d07819f
Slither update
gvladika Jul 3, 2024
b46af65
Remove unused
gvladika Jul 3, 2024
09d10b3
Merge pull request #200 from OffchainLabs/fix-cache-manager
gzeoneth Jul 3, 2024
870566d
Merge branch 'develop' into g-handle-decimals
gzeoneth Jul 3, 2024
34751a7
Merge branch 'g-handle-decimals' into e2e-decimals
gzeoneth Jul 3, 2024
f4bf96e
Merge pull request #201 from OffchainLabs/e2e-decimals
gvladika Jul 3, 2024
2e90a05
Merge pull request #100 from OffchainLabs/g-handle-decimals
gzeoneth Jul 3, 2024
de1852c
Merge branch 'develop' into init-price
gzeoneth Jul 3, 2024
7aae8fa
Merge pull request #117 from OffchainLabs/init-price
gzeoneth Jul 3, 2024
5cf93d2
Merge branch 'develop' into fast-conf-port
gzeoneth Jul 3, 2024
bddac4b
Merge pull request #187 from OffchainLabs/fast-conf-port
gzeoneth Jul 3, 2024
cf19dad
chore: review and ignore slither issues
gzeoneth Jul 3, 2024
35d1571
chore: bump packages
gzeoneth Jul 3, 2024
677e1bf
chore: ignore npm audit issues
gzeoneth Jul 3, 2024
0a1df6c
chore: drop nodejs 16 support
gzeoneth Jul 3, 2024
b59d546
chore: revert prettier bump
gzeoneth Jul 3, 2024
42ac427
fix: unused import
gzeoneth Jul 3, 2024
2946c01
update SequencerInbox stub
epociask Jul 3, 2024
1a47665
ci: use node18 testnode ref
gzeoneth Jul 4, 2024
5686d68
fix: use 127.0.0.1 instead
gzeoneth Jul 4, 2024
39bd03d
Merge pull request #203 from OffchainLabs/chore-slither-db
gzeoneth Jul 4, 2024
1ac59aa
ci: use sha instead of head ref to support push and pull
gzeoneth Jul 4, 2024
0ed27f0
ci: branch expression
gzeoneth Jul 4, 2024
61204dd
Merge pull request #205 from OffchainLabs/ci-use-sha
gzeoneth Jul 4, 2024
657a088
remove dummyManager artifact
epociask Jul 4, 2024
2a561f8
fix one step prover
epociask Jul 4, 2024
4395fa7
Merge pull request #7 from Layr-Labs/epociask--fix-bugs
epociask Jul 8, 2024
1251afe
merge in upstream
epociask Jul 8, 2024
40ffbee
fix compilation bugs
epociask Jul 8, 2024
95162e1
use in-house runner
epociask Jul 8, 2024
9595d1c
Merge branch 'develop' of github.com:Layr-Labs/nitro-contracts-privat…
epociask Jul 8, 2024
3094e23
v2.0.0-beta.1
gzeoneth Jul 8, 2024
37383c2
update rollupCreation script
epociask Jul 9, 2024
e8eb3f3
update console log in deploymentUtils
epociask Jul 9, 2024
344fc29
update wiring for setting rollup manager
epociask Jul 9, 2024
3ced162
update rollup mgmt contract and deployment logic
epociask Jul 9, 2024
acc6f31
fix stack too deep compilation bug
epociask Jul 9, 2024
ad6ad21
updated tests
epociask Jul 9, 2024
9cb5890
pull eigenda changes
epociask Jul 9, 2024
f82b16d
Revert "pull eigenda changes"
epociask Jul 9, 2024
9d643a5
merge changes
epociask Jul 9, 2024
5172b81
Merge branch 'v3.0.3-chnages' of github.com:Layr-Labs/nitro-contracts…
epociask Jul 9, 2024
0f9ddd7
update package dep
epociask Jul 9, 2024
a450cd9
dummy file for debugging
epociask Jul 9, 2024
6ded685
fix: add gas refunding to eigenda batch sequencing
epociask Jul 17, 2024
7719367
fix: fix bugs
epociask Jul 17, 2024
00ae506
cleanup
0x0aa0 Jul 24, 2024
501d760
rm OU
0x0aa0 Jul 24, 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
2 changes: 1 addition & 1 deletion .github/workflows/audit-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16, 18, 20]
node-version: [18, 20]
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
112 changes: 105 additions & 7 deletions .github/workflows/contract-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
jobs:
test-unit:
name: Test unit
runs-on: ubuntu-latest
runs-on: linux-2xl
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -21,23 +21,23 @@ jobs:
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
version: nightly-5b7e4cb3c882b28f3c32ba580de27ce7381f415a

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

- name: Install packages
run: yarn

- name: Build
run: forge test
run: forge test --fork-url https://rpc.holesky.ethpandaops.io/
tests:
name: Contract tests
runs-on: ubuntu-8
runs-on: linux-2xl
defaults:
run:
shell: bash
Expand Down Expand Up @@ -85,6 +85,9 @@ jobs:
- name: Forge build
run: forge build

- name: Test size
run: yarn contract:size

- name: Test Storage Layouts
run: yarn run test:storage

Expand All @@ -103,7 +106,7 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}
test-4844:
name: 4844 tests
runs-on: ubuntu-latest
runs-on: linux-2xl
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -123,7 +126,7 @@ jobs:
- name: Setup nodejs
uses: actions/setup-node@v2
with:
node-version: '18'
node-version: 18
cache: 'yarn'
cache-dependency-path: '**/yarn.lock'

Expand All @@ -135,3 +138,98 @@ 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

- 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
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: Install packages
run: yarn

- name: Compile contracts
run: yarn build

- 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

- 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'

- 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

- name: Run e2e tests
run: yarn test:e2e
3 changes: 2 additions & 1 deletion .github/workflows/slither.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ jobs:
- uses: actions/checkout@v4

- name: Run Slither
uses: crytic/slither-action@v0.3.1
uses: crytic/slither-action@v0.4.0
id: slither
with:
sarif: results.sarif
fail-on: medium
slither-args: --skip-assembly

- name: Upload SARIF file
if: always()
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "lib/forge-std"]
path = lib/forge-std
url = https://github.com/foundry-rs/forge-std
[submodule "lib/eigenda"]
path = lib/eigenda
url = https://github.com/Layr-Labs/eigenda
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ yarn build

## License

Nitro is currently licensed under a [Business Source License](./LICENSE), similar to our friends at Uniswap and Aave, with an "Additional Use Grant" to ensure that everyone can have full comfort using and running nodes on all public Arbitrum chains.
Nitro is currently licensed under a [Business Source License](./LICENSE.md), similar to our friends at Uniswap and Aave, with an "Additional Use Grant" to ensure that everyone can have full comfort using and running nodes on all public Arbitrum chains.

The Additional Use Grant also permits the deployment of the Nitro software, in a permissionless fashion and without cost, as a new blockchain provided that the chain settles to either Arbitrum One or Arbitrum Nova.

Expand Down
10 changes: 9 additions & 1 deletion audit-ci.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@
// 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"
"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"
]
}
11 changes: 11 additions & 0 deletions deploy/EigenDARollupManager.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = async hre => {
const { deployments, getNamedAccounts, ethers } = hre
const { deploy } = deployments
const { deployer } = await getNamedAccounts()

await deploy('EigenDADummyManager', { from: deployer, args: [] })
}

module.exports.tags = ['EigenDADummyManager']
module.exports.dependencies = []

11 changes: 11 additions & 0 deletions deploy/EigenDARollupManagerStubCreator.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = async hre => {
const { deployments, getNamedAccounts, ethers } = hre
const { deploy } = deployments
const { deployer } = await getNamedAccounts()

await deploy('EigenDADummyManager', { from: deployer, args: [] })
}

module.exports.tags = ['EigenDADummyManager']
module.exports.dependencies = []

10 changes: 10 additions & 0 deletions deploy/EigenDAServiceManagerStubCreator.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = async hre => {
const { deployments, getNamedAccounts, ethers } = hre
const { deploy } = deployments
const { deployer } = await getNamedAccounts()

await deploy('EigenDAServiceManagerStub', { from: deployer, args: [] })
}

module.exports.tags = ['EigenDAServiceManagerStub', 'test']
module.exports.dependencies = []
8 changes: 6 additions & 2 deletions deploy/SequencerInbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@ module.exports = async hre => {
const blobBasefeeReader = await ethers.getContract('BlobBasefeeReader')
const dataHashReader = await ethers.getContract('DataHashReader')

await deploy('SequencerInbox', { from: deployer, args: [117964] })
const EigenDARollupUtils = await ethers.getContract('EigenDARollupUtils')



await deploy('SequencerInbox', { from: deployer, args: [117964], libraries: { EigenDARollupUtils: EigenDARollupUtils.address } })
}

module.exports.tags = ['SequencerInbox']
module.exports.dependencies = []
module.exports.dependencies = ['EigenDARollupUtils']
1 change: 1 addition & 0 deletions deploy/SequencerInboxStubCreator.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ module.exports = async hre => {
delaySeconds: 10000,
futureSeconds: 10000,
}

await deploy('SequencerInboxStub', {
from: deployer,
args: [
Expand Down
9 changes: 7 additions & 2 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,16 @@ cache_path = 'forge-cache/sol'
optimizer = true
optimizer_runs = 100
via_ir = false
solc_version = '0.8.9'
solc_version = '0.8.12'
remappings = ['ds-test/=lib/forge-std/lib/ds-test/src/',
'forge-std/=lib/forge-std/src/',
'@openzeppelin/contracts/=node_modules/@openzeppelin/contracts/',
'@openzeppelin/contracts-upgradeable/=node_modules/@openzeppelin/contracts-upgradeable/']
'@openzeppelin/contracts-upgradeable/=node_modules/@openzeppelin/contracts-upgradeable/',
'eigenda/contracts/=lib/eigenda/contracts/src',
'eigenlayer-middleware/=lib/eigenda/contracts/lib/eigenlayer-middleware/src/',
'eigenlayer-core/=lib/eigenda/contracts/lib/eigenlayer-middleware/lib/eigenlayer-contracts/src/'
]
fs_permissions = [{ access = "read", path = "./"}]

[profile.yul]
src = 'yul'
Expand Down
3 changes: 2 additions & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import '@nomiclabs/hardhat-etherscan'
import '@typechain/hardhat'
import 'solidity-coverage'
import 'hardhat-gas-reporter'
import 'hardhat-contract-sizer'
import 'hardhat-ignore-warnings'
// import '@tovarishfin/hardhat-yul';
import dotenv from 'dotenv'
Expand All @@ -14,7 +15,7 @@ dotenv.config()
const solidity = {
compilers: [
{
version: '0.8.9',
version: '0.8.12',
settings: {
optimizer: {
enabled: true,
Expand Down
Empty file added hello.txt
Empty file.
1 change: 1 addition & 0 deletions lib/eigenda
Submodule eigenda added at cd0155
18 changes: 13 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@arbitrum/nitro-contracts",
"version": "1.2.1",
"version": "2.0.0-beta.1",
"description": "Layer 2 precompiles and rollup for Arbitrum Nitro",
"author": "Offchain Labs, Inc.",
"license": "BUSL-1.1",
Expand All @@ -26,6 +26,7 @@
"build:forge:sol": "forge build --skip *.yul",
"build:forge:yul": "FOUNDRY_PROFILE=yul forge build --skip *.sol",
"build:forge": "yarn build:forge:sol && yarn build:forge:yul",
"contract:size": "STRICT=true hardhat size-contracts",
"lint:test": "eslint ./test",
"solhint": "solhint -f table src/**/*.sol",
"prettier:solidity": "prettier --write src/**/*.sol",
Expand All @@ -42,18 +43,23 @@
"deploy-factory": "hardhat run scripts/deployment.ts",
"deploy-eth-rollup": "hardhat run scripts/createEthRollup.ts",
"deploy-erc20-rollup": "hardhat run scripts/createERC20Rollup.ts",
"create-rollup-testnode": "hardhat run scripts/local-deployment/deployCreatorAndCreateRollup.ts"
"create-rollup-testnode": "hardhat run scripts/local-deployment/deployCreatorAndCreateRollup.ts",
"deploy-cachemanager-testnode": "hardhat run scripts/local-deployment/deployCacheManager.ts"
},
"dependencies": {
"@eigenda/eigenda-utils": "2.0.0",
"@grpc/grpc-js": "^1.8.22",
"@grpc/proto-loader": "^0.7.13",
"@offchainlabs/upgrade-executor": "1.1.0-beta.0",
"@openzeppelin/contracts": "4.5.0",
"@openzeppelin/contracts-upgradeable": "4.5.2",
"@openzeppelin/contracts": "4.7.0",
"@openzeppelin-upgrades/contracts": "npm:@openzeppelin/contracts-upgradeable@4.7",
"@openzeppelin/contracts-upgradeable": "4.7.2",
"patch-package": "^6.4.7",
"solady": "0.0.182"
},
"private": false,
"devDependencies": {
"@arbitrum/sdk": "^3.1.3",
"@arbitrum/sdk": "^3.4.1",
"@ethersproject/providers": "^5.7.2",
"@nomiclabs/hardhat-ethers": "npm:hardhat-deploy-ethers@^0.3.0-beta.13",
"@nomiclabs/hardhat-etherscan": "^3.1.0",
Expand All @@ -62,6 +68,7 @@
"@typechain/ethers-v5": "^10.0.0",
"@typechain/hardhat": "^6.0.0",
"@types/chai": "^4.3.0",
"@types/google-protobuf": "^3.15.12",
"@types/mocha": "^9.0.0",
"@types/node": "^17.0.5",
"@typescript-eslint/eslint-plugin": "^5.14.0",
Expand All @@ -77,6 +84,7 @@
"ethereum-waffle": "^4.0.10",
"ethers": "^5.5.4",
"hardhat": "^2.17.2",
"hardhat-contract-sizer": "^2.10.0",
"hardhat-deploy": "^0.11.37",
"hardhat-gas-reporter": "^1.0.9",
"hardhat-ignore-warnings": "^0.2.9",
Expand Down
Loading
Loading