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

feat: bold #193

Open
wants to merge 74 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
74 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
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
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
5deee6d
feat: bold configs (#223)
godzillaba 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
6f4b1d4
fix: orbit ts (#235)
gzeoneth Aug 16, 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
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
951326d
fix: nova validators list
gzeoneth Oct 25, 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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ deployments/
scripts/config.ts
forge-cache/
out/
.env
.env
.DS_Store
20 changes: 8 additions & 12 deletions foundry.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
[profile.default]
src = 'src/'
src = 'src'
out = 'out'
libs = ['node_modules', 'lib']
test = 'test/foundry'
cache_path = 'forge-cache/sol'
optimizer = true
optimizer_runs = 100
optimizer_runs = 2000
via_ir = false
solc_version = '0.8.9'
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/']
solc_version = '0.8.17'
remappings = ['@openzeppelin/contracts-upgradeable/=node_modules/@openzeppelin/contracts-upgradeable/',
'@openzeppelin/contracts/=node_modules/@openzeppelin/contracts/',
'@offchainlabs/upgrade-executor/=node_modules/@offchainlabs/upgrade-executor/']
fs_permissions = [{ access = "read", path = "./"}]

[profile.yul]
src = 'yul'
Expand All @@ -21,7 +20,4 @@ cache_path = 'forge-cache/yul'
remappings = []
auto_detect_remappings = false

[fmt]
number_underscore = 'thousands'
line_length = 100
# See more config options https://github.com/foundry-rs/foundry/tree/master/config
# See more config options https://github.com/foundry-rs/foundry/tree/master/config
62 changes: 26 additions & 36 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,31 @@ import '@nomiclabs/hardhat-etherscan'
import '@typechain/hardhat'
import 'solidity-coverage'
import 'hardhat-gas-reporter'
import 'hardhat-ignore-warnings'
// import '@tovarishfin/hardhat-yul';
import dotenv from 'dotenv'

dotenv.config()
import 'hardhat-contract-sizer'

const solidity = {
compilers: [
{
version: '0.8.9',
version: '0.8.17',
settings: {
optimizer: {
enabled: true,
runs: 100,
runs: 2000,
},
},
},
],
overrides: {},
overrides: {
'src/challengeV2/EdgeChallengeManager.sol': {
version: '0.8.17',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
},
}

if (process.env['INTERFACE_TESTER_SOLC_VERSION']) {
Expand All @@ -37,12 +43,15 @@ if (process.env['INTERFACE_TESTER_SOLC_VERSION']) {
},
})
solidity.overrides = {
'src/test-helpers/InterfaceCompatibilityTester.sol': {
version: process.env['INTERFACE_TESTER_SOLC_VERSION'],
settings: {
optimizer: {
enabled: true,
runs: 100,
...(solidity.overrides || {}),
...{
'src/test-helpers/InterfaceCompatibilityTester.sol': {
version: process.env['INTERFACE_TESTER_SOLC_VERSION'],
settings: {
optimizer: {
enabled: true,
runs: 100,
},
},
},
},
Expand Down Expand Up @@ -93,12 +102,6 @@ module.exports = {
? [process.env['DEVNET_PRIVKEY']]
: [],
},
sepolia: {
url: 'https://sepolia.infura.io/v3/' + process.env['INFURA_KEY'],
accounts: process.env['DEVNET_PRIVKEY']
? [process.env['DEVNET_PRIVKEY']]
: [],
},
rinkeby: {
url: 'https://rinkeby.infura.io/v3/' + process.env['INFURA_KEY'],
accounts: process.env['DEVNET_PRIVKEY']
Expand All @@ -117,12 +120,6 @@ module.exports = {
? [process.env['DEVNET_PRIVKEY']]
: [],
},
arbSepolia: {
url: 'https://sepolia-rollup.arbitrum.io/rpc',
accounts: process.env['DEVNET_PRIVKEY']
? [process.env['DEVNET_PRIVKEY']]
: [],
},
arb1: {
url: 'https://arb1.arbitrum.io/rpc',
accounts: process.env['MAINNET_PRIVKEY']
Expand All @@ -143,13 +140,11 @@ module.exports = {
apiKey: {
mainnet: process.env['ETHERSCAN_API_KEY'],
goerli: process.env['ETHERSCAN_API_KEY'],
sepolia: process.env['ETHERSCAN_API_KEY'],
rinkeby: process.env['ETHERSCAN_API_KEY'],
arbitrumOne: process.env['ARBISCAN_API_KEY'],
arbitrumTestnet: process.env['ARBISCAN_API_KEY'],
nova: process.env['NOVA_ARBISCAN_API_KEY'],
arbGoerliRollup: process.env['ARBISCAN_API_KEY'],
arbSepolia: process.env['ARBISCAN_API_KEY'],
},
customChains: [
{
Expand All @@ -168,14 +163,6 @@ module.exports = {
browserURL: 'https://goerli.arbiscan.io/',
},
},
{
network: 'arbSepolia',
chainId: 421614,
urls: {
apiURL: 'https://sepolia-explorer.arbitrum.io/api',
browserURL: 'https://sepolia-explorer.arbitrum.io/',
},
},
],
},
mocha: {
Expand All @@ -188,4 +175,7 @@ module.exports = {
outDir: 'build/types',
target: 'ethers-v5',
},
contractSizer: {
strict: process.env.STRICT ? true : false
}
}
14 changes: 10 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,17 @@
"audit:ci": "audit-ci --config ./audit-ci.jsonc",
"audit:fix": "yarn-audit-fix",
"prepublishOnly": "hardhat clean && forge clean && hardhat compile && yarn build:forge:yul",
"coverage": "forge coverage --report lcov --ir-minimum && lcov --remove lcov.info 'node_modules/*' 'test/*' 'script/*' 'src/test-helpers/*' 'challenge/*' --ignore-errors unused -o lcov.info && genhtml lcov.info --branch-coverage --output-dir coverage",
"build:all": "yarn build && yarn build:forge",
"build": "hardhat compile",
"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",
"format": "prettier './**/*.{js,json,ts,yml,sol}' --write && yarn run lint:test --fix",
"format": "prettier './**/*.{js,json,md,ts,yml,sol}' --write && yarn run lint:test --fix",
"build:0.6": "INTERFACE_TESTER_SOLC_VERSION=0.6.9 yarn run build",
"build:0.7": "INTERFACE_TESTER_SOLC_VERSION=0.7.0 yarn run build",
"test": "DISABLE_GAS_REPORTER=true hardhat --network hardhat test test/contract/*.spec.ts",
Expand All @@ -42,12 +44,15 @@
"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",
"script:bold-prepare": "hardhat run ./scripts/prepareBoldUpgrade.ts",
"script:bold-populate-lookup": "hardhat run ./scripts/populateLookup.ts",
"script:bold-local-execute": "hardhat run ./scripts/testLocalExecuteBoldUpgrade.ts"
},
"dependencies": {
"@offchainlabs/upgrade-executor": "1.1.0-beta.0",
"@openzeppelin/contracts": "4.5.0",
"@openzeppelin/contracts-upgradeable": "4.5.2",
"@openzeppelin/contracts": "4.7.3",
"@openzeppelin/contracts-upgradeable": "4.7.3",
"patch-package": "^6.4.7",
"solady": "0.0.182"
},
Expand Down Expand Up @@ -80,6 +85,7 @@
"hardhat-deploy": "^0.11.37",
"hardhat-gas-reporter": "^1.0.9",
"hardhat-ignore-warnings": "^0.2.9",
"hardhat-contract-sizer": "^2.10.0",
"postinstall-postinstall": "^2.1.0",
"prettier": "^2.5.1",
"prettier-plugin-solidity": "^1.0.0-beta.19",
Expand Down
Loading
Loading