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(val-947): Forta alerts for SR1.5 #588

Merged
merged 30 commits into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
2b659de
feat(val-947): Forta alerts for SR1.5
AlexandrMov Aug 6, 2024
6c84eb4
feat(val-947): CSM support
AlexandrMov Aug 16, 2024
225e2e3
feat(val-947): accounting oracle changes
AlexandrMov Aug 17, 2024
da2dfbf
feat(val-947): batch processing
AlexandrMov Aug 23, 2024
185a713
chore(val-947): refactor modules
AlexandrMov Aug 23, 2024
a514048
Merge branch 'main' into feature/val-947-forta-alerts-for-sr15-1
AlexandrMov Sep 16, 2024
eb91d11
fix(val-947): simple dvt alerts
AlexandrMov Sep 16, 2024
eb24648
chore(val-947): linter
AlexandrMov Sep 16, 2024
77cf7db
fix(val-947): event signature fixed
AlexandrMov Sep 30, 2024
4e06db9
fix(val-947): e2e tests
AlexandrMov Oct 2, 2024
e890104
feat(val-947): sanity checker
AlexandrMov Oct 2, 2024
67995d7
feat(val-947): changes for gov bot
AlexandrMov Oct 5, 2024
0e2f115
feat(val-947): csm and roles
AlexandrMov Oct 6, 2024
0db87bc
fix(val-947): new addresses
AlexandrMov Oct 10, 2024
a7226a7
fix(val-947): sanity checker abi
AlexandrMov Oct 15, 2024
ada8061
feat(val-1125): Create alert for insufficient balance for Council Dae…
AlexandrMov Oct 16, 2024
9dffc29
chore: readme
AlexandrMov Oct 16, 2024
50567d8
fix(val-1125): trigger alert once in a week
AlexandrMov Oct 16, 2024
954029f
chore(val-1125): split into simple functions
AlexandrMov Oct 16, 2024
2061ff0
fix(val-1125): one week replaced with one day
AlexandrMov Oct 17, 2024
86b58fc
fix(val-947): add envs to pipelines
AlexandrMov Oct 18, 2024
8995c30
Merge branch 'feature/val-1125-create-alert-for-insufficient-balance-…
AlexandrMov Oct 20, 2024
7137324
feat(val-1125): add alerts for guardians
AlexandrMov Oct 20, 2024
1bef95d
fix(val-947): tests timeout
AlexandrMov Oct 20, 2024
1b4408a
fix(val-947): tests
AlexandrMov Oct 20, 2024
51cf999
fix(val-947): tests
AlexandrMov Oct 20, 2024
7074570
fix: alerts for gov-bot moved into #622
AlexandrMov Oct 21, 2024
60e2a94
fix: VETTED-KEYS-SET not for CSM
AlexandrMov Oct 25, 2024
3964ea9
fix: split tests
AlexandrMov Oct 29, 2024
9858823
chore: workflows
AlexandrMov Nov 6, 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: 4 additions & 0 deletions ethereum-validators-set/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ DAO operations related alerts

Alerting for the Staking Router events

### Guardians

- GUARDIAN-MEMBER-LOW-BALANCE - Guardian has low account balance

## Development

Install deps:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`agent-node-operators-registry e2e tests should process tx with added simple dvt clusters 1`] = `
[
Finding {
"addresses": [],
"alertId": "SIMPLEDVT-NODE-OPERATOR-ADDED",
"description": "SimpleDVT Node operator 48 added
Name: Lido x SSV: Mysterious Manta
Reward address: [0xD0EB99690beda238C185D3D8f7cd35Ec014AD567](https://etherscan.io/address/0xD0EB99690beda238C185D3D8f7cd35Ec014AD567)
StakingLimit: 0",
"labels": [],
"metadata": {
"args": "48,Lido x SSV: Mysterious Manta,0xD0EB99690beda238C185D3D8f7cd35Ec014AD567,0",
},
"name": "ℹ️ SimpleDVT: Node operator added",
"protocol": "ethereum",
"severity": 1,
"source": {},
"timestamp": 2023-12-31T00:00:00.000Z,
"type": 4,
"uniqueKey": "",
},
Finding {
"addresses": [],
"alertId": "SIMPLEDVT-NODE-OPERATOR-ADDED",
"description": "SimpleDVT Node operator 49 added
Name: Lido x SSV: Noble Newt
Reward address: [0x7cFB8250D2CbCC4645342350959633800F3A03A3](https://etherscan.io/address/0x7cFB8250D2CbCC4645342350959633800F3A03A3)
StakingLimit: 0",
"labels": [],
"metadata": {
"args": "49,Lido x SSV: Noble Newt,0x7cFB8250D2CbCC4645342350959633800F3A03A3,0",
},
"name": "ℹ️ SimpleDVT: Node operator added",
"protocol": "ethereum",
"severity": 1,
"source": {},
"timestamp": 2023-12-31T00:00:00.000Z,
"type": 4,
"uniqueKey": "",
},
Finding {
"addresses": [],
"alertId": "SIMPLEDVT-NODE-OPERATOR-ADDED",
"description": "SimpleDVT Node operator 50 added
Name: Lido x SSV: Optimistic Orca
Reward address: [0xc292731e9d1862dCb3D5729F1ADe9760D3f99b43](https://etherscan.io/address/0xc292731e9d1862dCb3D5729F1ADe9760D3f99b43)
StakingLimit: 0",
"labels": [],
"metadata": {
"args": "50,Lido x SSV: Optimistic Orca,0xc292731e9d1862dCb3D5729F1ADe9760D3f99b43,0",
},
"name": "ℹ️ SimpleDVT: Node operator added",
"protocol": "ethereum",
"severity": 1,
"source": {},
"timestamp": 2023-12-31T00:00:00.000Z,
"type": 4,
"uniqueKey": "",
},
Finding {
"addresses": [],
"alertId": "SIMPLEDVT-NODE-OPERATOR-ADDED",
"description": "SimpleDVT Node operator 51 added
Name: Lido x SSV: Playful Penguin
Reward address: [0x9e29400E9E917c0C7c639245c731360fBc8F16AC](https://etherscan.io/address/0x9e29400E9E917c0C7c639245c731360fBc8F16AC)
StakingLimit: 0",
"labels": [],
"metadata": {
"args": "51,Lido x SSV: Playful Penguin,0x9e29400E9E917c0C7c639245c731360fBc8F16AC,0",
},
"name": "ℹ️ SimpleDVT: Node operator added",
"protocol": "ethereum",
"severity": 1,
"source": {},
"timestamp": 2023-12-31T00:00:00.000Z,
"type": 4,
"uniqueKey": "",
},
Finding {
"addresses": [],
"alertId": "SIMPLEDVT-NODE-OPERATOR-ADDED",
"description": "SimpleDVT Node operator 52 added
Name: Lido x SSV: Quiet Quetzal
Reward address: [0x19EcB86A441b6DFFA18379727eC8C0fd737a1140](https://etherscan.io/address/0x19EcB86A441b6DFFA18379727eC8C0fd737a1140)
StakingLimit: 0",
"labels": [],
"metadata": {
"args": "52,Lido x SSV: Quiet Quetzal,0x19EcB86A441b6DFFA18379727eC8C0fd737a1140,0",
},
"name": "ℹ️ SimpleDVT: Node operator added",
"protocol": "ethereum",
"severity": 1,
"source": {},
"timestamp": 2023-12-31T00:00:00.000Z,
"type": 4,
"uniqueKey": "",
},
Finding {
"addresses": [],
"alertId": "SIMPLEDVT-NODE-OPERATOR-ADDED",
"description": "SimpleDVT Node operator 53 added
Name: Lido x SSV: Resilient Rabbit
Reward address: [0xF8bF822F5De86879Fd0C2F9A67761D348d89c343](https://etherscan.io/address/0xF8bF822F5De86879Fd0C2F9A67761D348d89c343)
StakingLimit: 0",
"labels": [],
"metadata": {
"args": "53,Lido x SSV: Resilient Rabbit,0xF8bF822F5De86879Fd0C2F9A67761D348d89c343,0",
},
"name": "ℹ️ SimpleDVT: Node operator added",
"protocol": "ethereum",
"severity": 1,
"source": {},
"timestamp": 2023-12-31T00:00:00.000Z,
"type": 4,
"uniqueKey": "",
},
Finding {
"addresses": [],
"alertId": "SIMPLEDVT-NODE-OPERATOR-ADDED",
"description": "SimpleDVT Node operator 54 added
Name: Lido x SSV: Splendid Swan
Reward address: [0x222186393aA0b2b037ECEdddfDcb66ecA81C8888](https://etherscan.io/address/0x222186393aA0b2b037ECEdddfDcb66ecA81C8888)
StakingLimit: 0",
"labels": [],
"metadata": {
"args": "54,Lido x SSV: Splendid Swan,0x222186393aA0b2b037ECEdddfDcb66ecA81C8888,0",
},
"name": "ℹ️ SimpleDVT: Node operator added",
"protocol": "ethereum",
"severity": 1,
"source": {},
"timestamp": 2023-12-31T00:00:00.000Z,
"type": 4,
"uniqueKey": "",
},
Finding {
"addresses": [],
"alertId": "SIMPLEDVT-NODE-OPERATOR-ADDED",
"description": "SimpleDVT Node operator 55 added
Name: Lido x SSV: Thoughtful Tiger
Reward address: [0x95f8739ae18b5ffCeEa124968988c2287F295914](https://etherscan.io/address/0x95f8739ae18b5ffCeEa124968988c2287F295914)
StakingLimit: 0",
"labels": [],
"metadata": {
"args": "55,Lido x SSV: Thoughtful Tiger,0x95f8739ae18b5ffCeEa124968988c2287F295914,0",
},
"name": "ℹ️ SimpleDVT: Node operator added",
"protocol": "ethereum",
"severity": 1,
"source": {},
"timestamp": 2023-12-31T00:00:00.000Z,
"type": 4,
"uniqueKey": "",
},
Finding {
"addresses": [],
"alertId": "SIMPLEDVT-NODE-OPERATOR-ADDED",
"description": "SimpleDVT Node operator 56 added
Name: Lido x SSV: Unique Unicorn
Reward address: [0xa3477C96F2b1F7744cFAa854Dd36CDE3dF00b34f](https://etherscan.io/address/0xa3477C96F2b1F7744cFAa854Dd36CDE3dF00b34f)
StakingLimit: 0",
"labels": [],
"metadata": {
"args": "56,Lido x SSV: Unique Unicorn,0xa3477C96F2b1F7744cFAa854Dd36CDE3dF00b34f,0",
},
"name": "ℹ️ SimpleDVT: Node operator added",
"protocol": "ethereum",
"severity": 1,
"source": {},
"timestamp": 2023-12-31T00:00:00.000Z,
"type": 4,
"uniqueKey": "",
},
]
`;
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`agent-node-operators-registry e2e tests should process tx with a lot of validators exited 1`] = `
[
Finding {
"addresses": [],
"alertId": "CURATED-ONCHAIN-V1-NODE-OPERATORS-BIG-EXIT",
"description": "Operator: #13 Blockdaemon
New exited: 117",
"labels": [],
"metadata": {},
"name": "⚠️ curated-onchain-v1: operator exited more than 100 validators",
"protocol": "ethereum",
"severity": 1,
"source": {},
"timestamp": 2023-12-31T00:00:00.000Z,
"type": 4,
"uniqueKey": "",
},
Finding {
"addresses": [],
"alertId": "CURATED-ONCHAIN-V1-NODE-OPERATORS-BIG-EXIT",
"description": "Operator: #20 HashKey Cloud
New exited: 167",
"labels": [],
"metadata": {},
"name": "⚠️ curated-onchain-v1: operator exited more than 100 validators",
"protocol": "ethereum",
"severity": 1,
"source": {},
"timestamp": 2023-12-31T00:00:00.000Z,
"type": 4,
"uniqueKey": "",
},
Finding {
"addresses": [],
"alertId": "CURATED-ONCHAIN-V1-NODE-OPERATORS-BIG-EXIT",
"description": "Operator: #23 CryptoManufaktur
New exited: 117",
"labels": [],
"metadata": {},
"name": "⚠️ curated-onchain-v1: operator exited more than 100 validators",
"protocol": "ethereum",
"severity": 1,
"source": {},
"timestamp": 2023-12-31T00:00:00.000Z,
"type": 4,
"uniqueKey": "",
},
Finding {
"addresses": [],
"alertId": "CURATED-ONCHAIN-V1-NODE-OPERATORS-BIG-EXIT",
"description": "Operator: #24 Kukis Global
New exited: 117",
"labels": [],
"metadata": {},
"name": "⚠️ curated-onchain-v1: operator exited more than 100 validators",
"protocol": "ethereum",
"severity": 1,
"source": {},
"timestamp": 2023-12-31T00:00:00.000Z,
"type": 4,
"uniqueKey": "",
},
Finding {
"addresses": [],
"alertId": "CURATED-ONCHAIN-V1-NODE-OPERATORS-BIG-EXIT",
"description": "Operator: #25 Nethermind
New exited: 116",
"labels": [],
"metadata": {},
"name": "⚠️ curated-onchain-v1: operator exited more than 100 validators",
"protocol": "ethereum",
"severity": 1,
"source": {},
"timestamp": 2023-12-31T00:00:00.000Z,
"type": 4,
"uniqueKey": "",
},
Finding {
"addresses": [],
"alertId": "CURATED-ONCHAIN-V1-NODE-OPERATORS-BIG-EXIT",
"description": "Operator: #26 ChainSafe
New exited: 216",
"labels": [],
"metadata": {},
"name": "⚠️ curated-onchain-v1: operator exited more than 100 validators",
"protocol": "ethereum",
"severity": 1,
"source": {},
"timestamp": 2023-12-31T00:00:00.000Z,
"type": 4,
"uniqueKey": "",
},
Finding {
"addresses": [],
"alertId": "CURATED-ONCHAIN-V1-NODE-OPERATORS-BIG-EXIT",
"description": "Operator: #27 Prysm Team at Offchain Labs
New exited: 116",
"labels": [],
"metadata": {},
"name": "⚠️ curated-onchain-v1: operator exited more than 100 validators",
"protocol": "ethereum",
"severity": 1,
"source": {},
"timestamp": 2023-12-31T00:00:00.000Z,
"type": 4,
"uniqueKey": "",
},
Finding {
"addresses": [],
"alertId": "CURATED-ONCHAIN-V1-NODE-OPERATORS-BIG-EXIT",
"description": "Operator: #28 Sigma Prime
New exited: 116",
"labels": [],
"metadata": {},
"name": "⚠️ curated-onchain-v1: operator exited more than 100 validators",
"protocol": "ethereum",
"severity": 1,
"source": {},
"timestamp": 2023-12-31T00:00:00.000Z,
"type": 4,
"uniqueKey": "",
},
Finding {
"addresses": [],
"alertId": "CURATED-ONCHAIN-V1-NODE-OPERATORS-BIG-EXIT",
"description": "Operator: #29 Attestant (BVI) Limited
New exited: 116",
"labels": [],
"metadata": {},
"name": "⚠️ curated-onchain-v1: operator exited more than 100 validators",
"protocol": "ethereum",
"severity": 1,
"source": {},
"timestamp": 2023-12-31T00:00:00.000Z,
"type": 4,
"uniqueKey": "",
},
]
`;

exports[`agent-node-operators-registry e2e tests should process tx with removed signing keys 1`] = `
[
Finding {
"addresses": [],
"alertId": "CURATED-ONCHAIN-V1-NODE-OPERATORS-KEYS-REMOVED",
"description": "Signing keys has been removed for:
Kiln: 50",
"labels": [],
"metadata": {},
"name": "🚨 curated-onchain-v1: Signing keys removed",
"protocol": "ethereum",
"severity": 4,
"source": {},
"timestamp": 2023-12-31T00:00:00.000Z,
"type": 4,
"uniqueKey": "",
},
]
`;
Loading
Loading