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

Multi-whitelisted operators [audited] #299

Merged
merged 57 commits into from
Jul 7, 2024
Merged
Show file tree
Hide file tree
Changes from 54 commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
066d650
update project dependencies
mtabasco Apr 10, 2024
4206206
Merge branch 'main' into update-dependencies
mtabasco Apr 10, 2024
ed84f4c
remove not relevant files
mtabasco Apr 11, 2024
72fc9ae
upgrade github actions
mtabasco Apr 11, 2024
5109ca2
edr dependency
mtabasco Apr 11, 2024
f17d5dc
fix solidity-coverage, slither
mtabasco Apr 12, 2024
d7d6c32
sync with main
mtabasco Apr 16, 2024
4f9f291
update tests viem way
mtabasco Apr 16, 2024
9a348fc
add data structure
mtabasco Apr 16, 2024
34d6a5f
set operators whitelists
mtabasco Apr 17, 2024
f74c429
support for ERC165
mtabasco Apr 19, 2024
03e1937
refactor operators update on cluster registration
mtabasco Apr 19, 2024
1cadb43
add view functions, refactors
mtabasco Apr 23, 2024
cea5938
update validator registration flow
mtabasco Apr 24, 2024
5841234
add operator whitelisting tests
mtabasco Apr 26, 2024
65347ee
set operator public/private, add tests
mtabasco Apr 29, 2024
c61c701
added fork tests
mtabasco Apr 29, 2024
d78a91f
update docs
mtabasco Apr 30, 2024
c140c3c
upgrade to 0.8.24, gas improvements
mtabasco May 3, 2024
21fef78
CI forked tests action
mtabasco May 3, 2024
932fa69
test fix CI
mtabasco May 5, 2024
2e90a0c
explicit imports, add fork test
mtabasco May 5, 2024
38b7165
change whitelist checks priority when registering validators
mtabasco May 6, 2024
11b4e67
add reentrancy tests
mtabasco May 13, 2024
fc18035
omit to make private operator when setting whitelisting contract
mtabasco May 13, 2024
ca4633a
remove privacy setting when whitelisting and removing opertors
mtabasco May 14, 2024
736ca09
sycn with main
mtabasco May 14, 2024
fb0d810
add SSVViews.isAddressWhitelistedInWhitelistingContract
mtabasco May 14, 2024
b7cfe2f
add edge cases, improve contract-helpers
mtabasco May 15, 2024
6827f06
fix CI test
mtabasco May 15, 2024
97860c5
env settings, remove GOERLI config and references
mtabasco May 16, 2024
0ea4626
add tests, update hardhat
mtabasco May 17, 2024
f30749c
add integration tests, fix CI
mtabasco May 20, 2024
e236a8e
remove setOperatorWhitelist
mtabasco May 20, 2024
f7e1554
enhace custom errors
mtabasco May 21, 2024
1dd85de
update errors
mtabasco May 21, 2024
a196ee0
update CHANGELOG
mtabasco May 21, 2024
5e04cd4
add RELEASE_NOTES
mtabasco May 21, 2024
7e9e6ba
deploy holesky stage
mtabasco May 21, 2024
dada02c
rename bulk funcs, move operator privacy funcs
mtabasco Jun 6, 2024
d078a87
registerOperator can set privacy status
mtabasco Jun 6, 2024
632e156
update docs
mtabasco Jun 6, 2024
ed84408
deploy stage
mtabasco Jun 6, 2024
e1009fa
getWhitelistedOperators update
mtabasco Jun 7, 2024
add2434
getWhitelistedOperators legacy whitelist support, fix reduceOperatorFee
mtabasco Jun 8, 2024
c928cf2
fix CI coverage
mtabasco Jun 8, 2024
737a192
stage upgrade
mtabasco Jun 18, 2024
5979ec5
new holesky deployment
mtabasco Jun 21, 2024
2f04029
audit fixes/improvements
mtabasco Jun 24, 2024
9c3b11a
upgrade testnet metadata
mtabasco Jun 24, 2024
9ddafc0
added custom test
mtabasco Jun 24, 2024
9192795
add audit report
mtabasco Jul 1, 2024
453d75b
update CHANGELOG
mtabasco Jul 1, 2024
bac7ff4
refactor whitelist check on validator registration
mtabasco Jul 3, 2024
fe120d7
update audit reports
mtabasco Jul 4, 2024
59abd6b
unlock pragma for interfaces
mtabasco Jul 4, 2024
c71314c
update audit report
mtabasco Jul 5, 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
4 changes: 1 addition & 3 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
GOERLI_ETH_NODE_URL=
GOERLI_OWNER_PRIVATE_KEY=
HOLESKY_ETH_NODE_URL=
HOLESKY_OWNER_PRIVATE_KEY=
MAINNET_ETH_NODE_URL=
MAINNET_OWNER_PRIVATE_KEY=
GAS_PRICE=
GAS=
ETHERSCAN_KEY=
INFURA_KEY=
NODE_PROVIDER_KEY=
MINIMUM_BLOCKS_BEFORE_LIQUIDATION=100800
MINIMUM_LIQUIDATION_COLLATERAL=200000000
OPERATOR_MAX_FEE_INCREASE=3
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/tests-forked.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Run tests

on: [push]

jobs:
ci:
runs-on: ubuntu-latest
name: Hardhat unit test (forked network)
env: # Set environment variables for all steps in this job
FORK_TESTING_ENABLED: true
GH_TOKEN: ${{ secrets.github_token }}
MAINNET_ETH_NODE_URL: ${{ secrets.mainnet_eth_node_url }}
NODE_PROVIDER_KEY: ${{ secrets.node_provider_key }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '20.x'
- run: npm ci
- run: npx hardhat test test-forked/*.ts
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ jobs:
- run: npm ci
env:
GH_TOKEN: ${{ secrets.github_token }}
- run: npx hardhat test
- run: npx hardhat test --parallel
Loading
Loading