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

Fee token pricers v2 old #304

Closed
wants to merge 225 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
225 commits
Select commit Hold shift + click to select a range
a17ec6e
feat: bold 6b42a38f
gzeoneth Jun 18, 2024
a7ea070
ci: disable solhint
gzeoneth Jun 18, 2024
0c55a90
chore: test lint fix
gzeoneth Jun 18, 2024
ab43f2c
test: workaround validaotor wallet test
gzeoneth Jun 18, 2024
7c950ae
chore: restore removed files
gzeoneth Jun 18, 2024
4e9c334
test: fix and improve
gzeoneth Jun 18, 2024
c9c1b32
Merge branch 'develop' into bold-merge
gzeoneth Jun 18, 2024
f7bd97c
test: disable delay buffer in 4844 test
gzeoneth Jun 18, 2024
733e5d3
Merge branch 'bold-merge' of github.com:OffchainLabs/nitro-contracts …
gzeoneth Jun 18, 2024
19b4163
test: fix
gzeoneth Jun 18, 2024
e900ee7
chore: update slither db
gzeoneth Jun 18, 2024
9f68098
chore: update 4b and storage
gzeoneth Jun 18, 2024
8269b1a
rename: BridgeContracts
gzeoneth Jun 21, 2024
3095b6b
Revert "rename: BridgeContracts"
gzeoneth Jun 21, 2024
6ba61b6
fix: deployment scripts
gzeoneth Jun 21, 2024
971c621
chore: cleanup hardhat config
gzeoneth Jun 21, 2024
084f36d
chore: rename bold upgrade common
gzeoneth Jun 21, 2024
8eb176c
chore: remove old files
gzeoneth Jun 21, 2024
472ce65
chore: small fix
gzeoneth Jun 21, 2024
7364af8
chore: bold pr663
gzeoneth Jun 21, 2024
146a3ef
fix: env sample name
gzeoneth Jun 21, 2024
b35884e
temp: use a default l1 rpc
gzeoneth Jun 21, 2024
640e545
fix: search a smaller range with getLogs
gzeoneth Jun 21, 2024
8e4ef6a
chore: make testUpgrade executable
gzeoneth Jun 21, 2024
fda3a87
chore: rename l1Timelock to excessStakeReceiver
gzeoneth Jun 21, 2024
ec06528
feat: sepolia config
gzeoneth Jun 21, 2024
762a523
feat: verify bold upgrade deployment
gzeoneth Jun 21, 2024
b5046a2
feat: use v2 as patched old rollup logic
gzeoneth Jun 21, 2024
c60647e
fix: wait for 5 confirmation before verify
gzeoneth Jun 21, 2024
509035d
fix: disable contract verification in ci
gzeoneth Jun 24, 2024
34891e5
fix: env sample
gzeoneth Jun 24, 2024
ba16c22
fix: make testUpgrade script exit on failure
gzeoneth Jun 24, 2024
6fd8c72
fix: bad import
gzeoneth Jun 24, 2024
d6e62df
chore: sepolia bold upgrade deployment
gzeoneth Jun 25, 2024
45453ca
ci: disable e2e test
gzeoneth Jun 27, 2024
63ba9eb
chore: bump npm packages
gzeoneth Jun 27, 2024
06533e6
chore: ignore npm audit issues
gzeoneth Jun 27, 2024
13dad6b
ci: bump node version to 18
gzeoneth Jun 27, 2024
7a656de
ci: remove node 16 support
gzeoneth Jun 27, 2024
c03101f
Merge pull request #196 from OffchainLabs/bold-merge-npm
gzeoneth Jun 28, 2024
e1d9621
fix upgrade test
godzillaba Jul 1, 2024
9f0c8fe
bump forge test gas limit
godzillaba Jul 1, 2024
e9d500d
Merge branch 'develop' into ha/bold-merge-fix-conflicts
godzillaba Jul 2, 2024
1d8263f
cachemanager storage
godzillaba Jul 2, 2024
02fecbf
Merge branch 'ha/forge-test-gaslimit' into ha/bold-merge-fix-conflicts
godzillaba Jul 2, 2024
6b4857f
update slither db
godzillaba Jul 2, 2024
6875293
Added express lane auction contracts draft
yahgwai Jul 3, 2024
883bfc1
copy over contract-tests.yml
godzillaba Jul 8, 2024
cc63791
Merge branch 'develop' into ha/bold-merge-fix-conflicts
godzillaba Jul 8, 2024
3a71d61
add bold upgrade test back
godzillaba Jul 8, 2024
9f7b7c9
copy over rollup user and admin logics from bold-merge branch
godzillaba Jul 8, 2024
27b86fd
fix unit test CI and bump RollupUserLogic compiler version
godzillaba Jul 8, 2024
3c62387
ci: disable e2e
gzeoneth Jul 9, 2024
1839465
ci: disable solhint
gzeoneth Jul 9, 2024
4ba1445
Merge pull request #199 from OffchainLabs/ha/bold-merge-fix-conflicts
gzeoneth Jul 9, 2024
8022228
fix import in bold configs
godzillaba Jul 15, 2024
ece2d89
Merge remote-tracking branch 'origin/develop' into bold-merge
gzeoneth Jul 18, 2024
1f69f84
chore: update slither db
gzeoneth Jul 18, 2024
e1738b8
Updated express lane interface and added more tests
yahgwai Jul 18, 2024
bdae989
Addressed more todos
yahgwai Jul 18, 2024
b20f9e9
Merge branch 'develop' into express-lane-auction
yahgwai Jul 18, 2024
5e90ab3
Renamed auctioneer to auction clerk
yahgwai Jul 18, 2024
abc71fa
Updates from spec
yahgwai Jul 19, 2024
f7a0019
Balance2 usage and addressed more todos
yahgwai Jul 22, 2024
97e387c
Updated to safeTransfer
yahgwai Jul 22, 2024
9d9c199
Fixed strick equality
yahgwai Jul 22, 2024
a3bf984
Added testing comments
yahgwai Jul 22, 2024
424f0ac
Formatting
yahgwai Jul 22, 2024
46f20c3
Added slither exceptions
yahgwai Jul 23, 2024
522391c
Test updates and internal lib function
yahgwai Jul 24, 2024
521da55
Added resolvedRounds public and set latestResolvedRound internal
yahgwai Jul 24, 2024
ef2fb0b
Use access control enumerable
yahgwai Jul 24, 2024
1690451
Use functions internally, make others external
yahgwai Jul 24, 2024
f830383
Formatting
yahgwai Jul 24, 2024
60f6080
Dont reset withdrawal round after finalized withdrawal - just on deposit
yahgwai Jul 24, 2024
8251c24
Added domain comment
yahgwai Jul 24, 2024
d1ac7d3
Added domain value to express lane auction
yahgwai Jul 25, 2024
e4697d7
Added todos based on code review
yahgwai Jul 25, 2024
eb63042
Docs updates
yahgwai Jul 25, 2024
54e7aca
Beginnings of separate balance testing
yahgwai Jul 26, 2024
a2fbc1d
Finished balance tests
yahgwai Jul 29, 2024
261e1b0
Added elc round specific tests
yahgwai Jul 30, 2024
92e64ef
Docs and testing for resolved rounds
yahgwai Jul 30, 2024
89fbaa3
Cleaned todos in testing file
yahgwai Jul 31, 2024
5300676
Addressed more todos
yahgwai Aug 1, 2024
2f647c8
Formatting
yahgwai Aug 2, 2024
971ab70
Slither updates
yahgwai Aug 2, 2024
fa50fbf
Added transferrer setting first draft
yahgwai Aug 2, 2024
01c3669
Updates from slither mutate
yahgwai Aug 5, 2024
30b4dd0
Set transferrer into interface
yahgwai Aug 5, 2024
777b58e
Merge branch 'express-lane-auction-2' into express-lane-auction-3
yahgwai Aug 5, 2024
97e698d
Added alternative transferors and tests
yahgwai Aug 5, 2024
a63bdee
Comment update
yahgwai Aug 5, 2024
2def378
Removed todo
yahgwai Aug 5, 2024
9565035
Added round timing setter
yahgwai Aug 6, 2024
424d732
Remove comment
yahgwai Aug 6, 2024
ee70432
Removed unneeded admin roles
yahgwai Aug 6, 2024
a599fa1
Removed struct params usage
yahgwai Aug 6, 2024
52b983f
Merge from base
yahgwai Aug 6, 2024
74821a2
Merge from base
yahgwai Aug 6, 2024
fad469d
Delete todo
yahgwai Aug 6, 2024
2cc0bf3
Merge from base
yahgwai Aug 6, 2024
314d593
Merge from base
yahgwai Aug 6, 2024
87d578a
Added 712 signing
yahgwai Aug 8, 2024
f2e1e4f
Formatting and test update
yahgwai Aug 8, 2024
5afd437
fix: lint
gzeoneth Aug 13, 2024
67bf109
feat: also migrate anyTrustFastConfirmer if existed (#233)
gzeoneth Aug 15, 2024
165134b
Merge remote-tracking branch 'origin/develop' into bold-merge
gzeoneth Aug 15, 2024
ad23b04
Merge branch 'develop' into bold-merge
gzeoneth Aug 15, 2024
795ea3e
Updated NotTransferor address to match NotExpressLaneController
yahgwai Aug 15, 2024
4301639
Formatting
yahgwai Aug 15, 2024
926b264
Added bid const hash
yahgwai Aug 15, 2024
e0fb4ed
Comment update
yahgwai Aug 15, 2024
d1cce13
Merge pull request #226 from OffchainLabs/express-lane-auction-round-…
yahgwai Aug 15, 2024
89dbece
Merge from express-lane-auction-2
yahgwai Aug 15, 2024
e4d85e1
Merge pull request #227 from OffchainLabs/express-lane-auction-712
yahgwai Aug 15, 2024
ae50531
Merge from express-lane-auction-2
yahgwai Aug 15, 2024
d4043bd
Merge pull request #224 from OffchainLabs/express-lane-auction-3
yahgwai Aug 15, 2024
b3a281b
Merge pull request #222 from OffchainLabs/express-lane-auction-2
yahgwai Aug 15, 2024
1bbd922
test: fix
gzeoneth Aug 15, 2024
d145c07
Factor out round timing interval interanl
yahgwai Aug 15, 2024
4274a31
Merge branch 'express-lane-auction' of https://github.com/OffchainLab…
yahgwai Aug 15, 2024
e54bf02
Refactored the round timing info setting to use shared internal func
yahgwai Aug 15, 2024
1ae3d10
CR updates
yahgwai Aug 15, 2024
d6fbc49
More updates from CR
yahgwai Aug 15, 2024
29f449a
Update src/express-lane-auction/ExpressLaneAuction.sol
yahgwai Aug 15, 2024
34b5da7
Merge from remote
yahgwai Aug 15, 2024
d9c8dc9
Updated shadow variable name
yahgwai Aug 15, 2024
5deee6d
feat: bold configs (#223)
godzillaba Aug 15, 2024
5f288d7
Added int offset
yahgwai Aug 15, 2024
9466f1c
fix: formating and enable checks in ci (#208)
gzeoneth Aug 16, 2024
06a7aeb
Merge remote-tracking branch 'origin/develop' into bold-merge
gzeoneth Aug 16, 2024
c8de1f8
Updated round timing tests
yahgwai Aug 16, 2024
6f4b1d4
fix: orbit ts (#235)
gzeoneth Aug 16, 2024
70e22a7
Updated comment
yahgwai Aug 16, 2024
fb5fe04
Updated comments
yahgwai Aug 16, 2024
180262a
Merge pull request #237 from OffchainLabs/express-lane-auction-int-of…
yahgwai Aug 16, 2024
bc7a334
Updates from goran's cr
yahgwai Aug 17, 2024
fbc5565
Slither update
yahgwai Aug 17, 2024
acf77b7
Formatting
yahgwai Aug 17, 2024
0134e49
Merge from develop
yahgwai Aug 17, 2024
5766ac5
Removed set beneficiary
yahgwai Aug 19, 2024
e33c353
Updated comment
yahgwai Aug 19, 2024
9dc19d2
Public to external
yahgwai Aug 20, 2024
a41681e
Added balance at round functions
yahgwai Aug 21, 2024
35e3a46
Added specific boundary conditions for balance test as fuzzing seemed…
yahgwai Aug 21, 2024
a93c464
Merge branch 'express-lane-auction' into express-lane-auction-balance…
gzeoneth Aug 21, 2024
93272e0
Removed out of date comment
yahgwai Aug 21, 2024
13854a5
Balance updates from audit review
yahgwai Aug 22, 2024
4445b48
minor typo fixes in comments
leeederek Aug 22, 2024
94d1194
Added a burner contract in case the dao decides to burn the funds ins…
yahgwai Aug 22, 2024
94a72ab
Merge pull request #239 from leeederek/patch-1
yahgwai Aug 23, 2024
a40ba2e
Merge pull request #238 from OffchainLabs/express-lane-auction-balanc…
yahgwai Aug 27, 2024
893f40d
Burner tests
yahgwai Aug 27, 2024
e3b24b7
Added comment
yahgwai Aug 27, 2024
e4dd36a
Merge pull request #242 from OffchainLabs/express-lane-auction-burn
yahgwai Aug 27, 2024
f1f862f
Comment update
yahgwai Aug 27, 2024
84ade50
Merge pull request #243 from OffchainLabs/express-lane-auction-audit-fix
yahgwai Aug 27, 2024
c945d21
Merge branch 'develop' into bold-merge
gzeoneth Sep 3, 2024
70d3670
format: yarn format on c945d216
gzeoneth Sep 3, 2024
e299af5
fix: unused import and visibility (#236)
gzeoneth Sep 3, 2024
f8959b6
Merge branch 'develop' into bold-merge
godzillaba Sep 11, 2024
419a050
Bold merge merkle comments (#244)
yahgwai Sep 12, 2024
109a8a3
v3.0.0-alpha.0
gzeoneth Sep 12, 2024
a9c5cfb
Merge branch 'develop' into express-lane-auction
gzeoneth Sep 12, 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
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
10c9224
Merge branch 'develop' into express-lane-auction
gzeoneth 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
a9a222f
fix: eip 7702 (#259)
gzeoneth Oct 9, 2024
a14355b
Merge remote-tracking branch 'origin/develop' into bold-merge
gzeoneth Oct 9, 2024
acb2fd2
fix: format
gzeoneth Oct 9, 2024
5ba5abc
Provide trade deadline from outside
gvladika Oct 23, 2024
738c3dc
chore: format
gzeoneth Oct 24, 2024
1078d09
Revert "chore: format"
gzeoneth Oct 24, 2024
bec7d62
v2.1.1-beta.0
gzeoneth Oct 24, 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
951326d
fix: nova validators list
gzeoneth Oct 25, 2024
c5d4be6
refactor: bold interfaces (#262)
gzeoneth Nov 13, 2024
addbc08
chore: ex lane deploy (#267)
gzeoneth Nov 21, 2024
fdd5b15
chore: bold deploy script improvements (#263)
gzeoneth Nov 21, 2024
59d3cbd
refactor: simplify BOLDUpgradeAction (#266)
gzeoneth Nov 21, 2024
625ad64
v2.1.1
gzeoneth Nov 25, 2024
1de32cb
Merge pull request #214 from OffchainLabs/express-lane-auction
gzeoneth Nov 25, 2024
3da6393
Merge remote-tracking branch 'origin/develop' into bold-merge with ya…
gzeoneth Nov 26, 2024
0972e25
Updated comment
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
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
5 changes: 5 additions & 0 deletions .env-sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
L1_RPC_URL="http://127.0.0.1:8545"
L1_PRIV_KEY="0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"
CONFIG_NETWORK_NAME="arb1"
DEPLOYED_CONTRACTS_DIR="./scripts/files/"
DISABLE_VERIFICATION=true
8 changes: 0 additions & 8 deletions .env.sample.goerli

This file was deleted.

5 changes: 5 additions & 0 deletions .env.sample.testnode
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
L1_RPC_URL="http://localhost:8545"
L1_PRIV_KEY="0xdc04c5399f82306ec4b4d654a342f40e2e0620fe39950d967e1e574b32d4dd36"
CONFIG_NETWORK_NAME="local"
DEPLOYED_CONTRACTS_DIR="./scripts/files/"
DISABLE_VERIFICATION=true
126 changes: 114 additions & 12 deletions .github/workflows/contract-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
run: yarn

- name: Build
run: forge test
run: yarn test:foundry
tests:
name: Contract tests
runs-on: ubuntu-8
Expand Down Expand Up @@ -64,6 +64,9 @@ jobs:
with:
version: nightly

- name: Check Contracts Format
run: forge fmt --check

- name: Install dependencies
run: yarn install

Expand Down Expand Up @@ -147,20 +150,114 @@ jobs:

- name: Test 4844
run: yarn test:4844
test-e2e:
name: Test e2e
# 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

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

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

- name: Setup node/yarn
uses: actions/setup-node@v3
Expand All @@ -173,10 +270,15 @@ jobs:
run: yarn

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

- 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: Run e2e orbit tests
run: yarn test:e2e:orbit
test-e2e-custom-fee-token:
name: Test e2e custom fee token
runs-on: ubuntu-latest
Expand Down Expand Up @@ -244,6 +346,6 @@ jobs:

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

- name: Run e2e orbit custom fee token rollup tests
run: yarn test:e2e:orbit-fee-token-rollup
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ deployments/
scripts/config.ts
forge-cache/
out/
.env
.env
.DS_Store
lcov.info
output_directory
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ src/lib/abi/**
out/**
lib/**
src/mocks/MultiCallTest.sol
slither.db.json
LICENSE.md
12 changes: 0 additions & 12 deletions .prettierrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,4 @@ module.exports = {
tabWidth: 2,
arrowParens: 'avoid',
bracketSpacing: true,
overrides: [
{
files: '*.sol',
options: {
tabWidth: 4,
printWidth: 100,
singleQuote: false,
bracketSpacing: false,
compiler: '0.8.9',
},
},
],
}
9 changes: 6 additions & 3 deletions .solhint.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"extends": ["solhint:recommended"],
"rules": {
"prettier/prettier": "error",
"avoid-throw": "off",
"avoid-suicide": "error",
"avoid-sha3": "warn",
Expand All @@ -12,7 +11,11 @@
"reason-string": ["warn", { "maxLength": 128 }],
"not-rely-on-time": "off",
"max-states-count": ["warn", 40],
"no-inline-assembly": "off"
"no-inline-assembly": "off",
"no-global-import": "off",
"custom-errors": "off",
"immutable-vars-naming": "off",
"var-name-mixedcase": "off"
},
"plugins": ["prettier"]
"plugins": []
}
3 changes: 3 additions & 0 deletions .solhintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
src/mocks
src/precompiles
src/test-helpers
10 changes: 9 additions & 1 deletion audit-ci.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@
// 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"
"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"
]
}
45 changes: 45 additions & 0 deletions deploy/ExpressLaneAuction.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
module.exports = async hre => {
const { deployments, getNamedAccounts } = hre
const { deploy } = deployments
const { deployer } = await getNamedAccounts()

await deploy('ExpressLaneAuction', {
from: deployer,
args: [],
proxy: {
proxyContract: 'TransparentUpgradeableProxy',
execute: {
init: {
methodName: 'initialize',
args: [
{
_auctioneer: '0xeee584DA928A94950E177235EcB9A99bb655c7A0',
_biddingToken: '0x980B62Da83eFf3D4576C647993b0c1D7faf17c73', // WETH
_beneficiary: '0xeee584DA928A94950E177235EcB9A99bb655c7A0',
_roundTimingInfo: {
offsetTimestamp: 1727870000,
roundDurationSeconds: 60,
auctionClosingSeconds: 15,
reserveSubmissionSeconds: 15,
},
_minReservePrice: ethers.utils.parseEther('0.00001'),
_auctioneerAdmin: '0xeee584DA928A94950E177235EcB9A99bb655c7A0',
_minReservePriceSetter:
'0xeee584DA928A94950E177235EcB9A99bb655c7A0',
_reservePriceSetter: '0xeee584DA928A94950E177235EcB9A99bb655c7A0',
_reservePriceSetterAdmin:
'0xeee584DA928A94950E177235EcB9A99bb655c7A0',
_beneficiarySetter: '0xeee584DA928A94950E177235EcB9A99bb655c7A0',
_roundTimingSetter: '0xeee584DA928A94950E177235EcB9A99bb655c7A0',
_masterAdmin: '0xeee584DA928A94950E177235EcB9A99bb655c7A0',
},
],
},
},
owner: deployer,
},
})
}

module.exports.tags = ['ExpressLaneAuction']
module.exports.dependencies = []
32 changes: 24 additions & 8 deletions foundry.toml
Original file line number Diff line number Diff line change
@@ -1,31 +1,47 @@
[profile.default]
src = 'src/'
src = 'src'
out = 'out'
libs = ['node_modules', 'lib']
test = 'test/foundry'
cache_path = 'forge-cache/sol'
cache_path = 'forge-cache/sol'
optimizer = true
optimizer_runs = 100
optimizer_runs = 2000
via_ir = false
evm_version = 'cancun'
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/',
'@openzeppelin/contracts/=node_modules/@openzeppelin/contracts/',
'@offchainlabs/upgrade-executor/=node_modules/@offchainlabs/upgrade-executor/',
'@uniswap/v2-core/=node_modules/@uniswap/v2-core/contracts',
'@uniswap/lib/=node_modules/@uniswap/lib/contracts']
fs_permissions = [{ access = "read", path = "./"}]

[profile.yul]
src = 'yul'
out = 'out/yul'
libs = ['node_modules', 'lib']
cache_path = 'forge-cache/yul'
cache_path = 'forge-cache/yul'
remappings = []
auto_detect_remappings = false

[fmt]
number_underscore = 'thousands'
line_length = 100
tab_width = 4
bracket_spacing = false
int_types = "long"
multiline_func_header = "params_first"
quote_style = "double"
number_underscore = "preserve"
hex_underscore = "remove"
single_line_statement_blocks = "preserve"
override_spacing = false
wrap_comments = false
ignore = []
contract_new_lines = false
sort_imports = false

[fuzz]
runs = 5000
runs = 1000

# See more config options https://github.com/foundry-rs/foundry/tree/master/config
Loading
Loading