Skip to content

Commit 085874c

Browse files
authored
Multi-whitelisted operators [audited] (#299)
* update project dependencies * remove not relevant files * upgrade github actions * edr dependency * fix solidity-coverage, slither * update tests viem way * add data structure * set operators whitelists * support for ERC165 * refactor operators update on cluster registration * add view functions, refactors * update validator registration flow * add operator whitelisting tests * set operator public/private, add tests * added fork tests * update docs * upgrade to 0.8.24, gas improvements * CI forked tests action * test fix CI * explicit imports, add fork test * change whitelist checks priority when registering validators * add reentrancy tests * omit to make private operator when setting whitelisting contract * remove privacy setting when whitelisting and removing opertors * add SSVViews.isAddressWhitelistedInWhitelistingContract * add edge cases, improve contract-helpers * fix CI test * env settings, remove GOERLI config and references * add tests, update hardhat * add integration tests, fix CI * remove setOperatorWhitelist * enhace custom errors * update errors * update CHANGELOG * add RELEASE_NOTES * deploy holesky stage * rename bulk funcs, move operator privacy funcs * registerOperator can set privacy status * update docs * deploy stage * getWhitelistedOperators update * getWhitelistedOperators legacy whitelist support, fix reduceOperatorFee * fix CI coverage * stage upgrade * new holesky deployment * audit fixes/improvements * upgrade testnet metadata * added custom test * add audit report * update CHANGELOG * refactor whitelist check on validator registration * update audit reports * unlock pragma for interfaces * update audit report
1 parent 499d63a commit 085874c

File tree

85 files changed

+16715
-769
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+16715
-769
lines changed

.env.example

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
GOERLI_ETH_NODE_URL=
2-
GOERLI_OWNER_PRIVATE_KEY=
31
HOLESKY_ETH_NODE_URL=
42
HOLESKY_OWNER_PRIVATE_KEY=
53
MAINNET_ETH_NODE_URL=
64
MAINNET_OWNER_PRIVATE_KEY=
75
GAS_PRICE=
86
GAS=
97
ETHERSCAN_KEY=
10-
INFURA_KEY=
8+
NODE_PROVIDER_KEY=
119
MINIMUM_BLOCKS_BEFORE_LIQUIDATION=100800
1210
MINIMUM_LIQUIDATION_COLLATERAL=200000000
1311
OPERATOR_MAX_FEE_INCREASE=3
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Run tests
2+
3+
on: [push]
4+
5+
jobs:
6+
ci:
7+
runs-on: ubuntu-latest
8+
name: Hardhat unit test (forked network)
9+
env: # Set environment variables for all steps in this job
10+
FORK_TESTING_ENABLED: true
11+
GH_TOKEN: ${{ secrets.github_token }}
12+
MAINNET_ETH_NODE_URL: ${{ secrets.mainnet_eth_node_url }}
13+
NODE_PROVIDER_KEY: ${{ secrets.node_provider_key }}
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-node@v3
17+
with:
18+
node-version: '20.x'
19+
- run: npm ci
20+
- run: npx hardhat test test-forked/*.ts

.github/workflows/tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ jobs:
1414
- run: npm ci
1515
env:
1616
GH_TOKEN: ${{ secrets.github_token }}
17-
- run: npx hardhat test
17+
- run: npx hardhat test --parallel

0 commit comments

Comments
 (0)