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

CSM alerts #621

Open
wants to merge 47 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
5d9a9f7
feat: csm-alerts initial commit
larmork Sep 9, 2024
bcdf918
feat: Add `CSModule.srv` alerts (#614)
larmork Sep 26, 2024
f445d6d
feat: move to SDKv2
madlabman Oct 2, 2024
77c3b02
chore: reformat
madlabman Oct 10, 2024
271a87d
chore: improve some HashConsensus findings
madlabman Oct 11, 2024
27a78d6
fix: update .env.sample
madlabman Oct 11, 2024
0e03b19
feat: add IPFS links
madlabman Oct 11, 2024
19a0e84
chore: fix linter config
madlabman Oct 11, 2024
21308f0
chore: some alerts touch ups
madlabman Oct 15, 2024
38b9c63
feat: extract block identifier in range mode
madlabman Oct 15, 2024
70783ad
chore: fill in mainnet addresses
madlabman Oct 15, 2024
dbfbc15
chore: use common alert id for launch event
madlabman Oct 15, 2024
ff607c6
fix: formatDelay function
madlabman Oct 15, 2024
a2fc787
feat: add SDKv1 shim
madlabman Oct 15, 2024
ac7d0d7
fix: cleanup findings
madlabman Oct 16, 2024
702a402
chore: fix typing
madlabman Oct 16, 2024
24acf97
chore: remove unused env variables
madlabman Oct 16, 2024
082fd03
chore: update .dockerignore
madlabman Oct 16, 2024
ce8d6b0
feat: add .envrc
madlabman Oct 16, 2024
9d951f2
fix: trailing comma in tsconfig.json
madlabman Oct 16, 2024
16a43b0
fix: cleanup package.json scripts
madlabman Oct 16, 2024
25b62e8
docs: update README
madlabman Oct 16, 2024
09e3db5
fix: support transactions separated by comma
madlabman Oct 16, 2024
657d66a
fix: update Dockerfile command
madlabman Oct 16, 2024
3ac81bb
feat: using JWT-based provider
madlabman Oct 16, 2024
de8fa83
chore: log block handler run
madlabman Oct 17, 2024
27d3852
feat: add GateSeal alerts
madlabman Oct 17, 2024
03d4928
fix: check CSFeeDistributor invariants when it makes sense
madlabman Oct 17, 2024
edecd2e
chore: add logging to v1 shim
madlabman Oct 17, 2024
83252fe
feat: formatShares in updated distribution alert
madlabman Oct 19, 2024
45b2a63
chore: remove unused findings helpers
madlabman Oct 19, 2024
1039f49
chore: push code errors findings
madlabman Oct 19, 2024
912f9fa
build: switch to v1 bot in Dockerfile
madlabman Oct 19, 2024
52f1608
chore: drop tests
madlabman Oct 21, 2024
64ff388
docs: update README
madlabman Oct 21, 2024
551d0d5
chore: update icon
madlabman Oct 21, 2024
d9955a7
feat: separate HashConsensus events with fixes
madlabman Oct 21, 2024
eb328dc
fix: update mainnet ORACLE_MEMBERS
madlabman Oct 21, 2024
e06305c
chore: apply suggestions from code review
madlabman Oct 23, 2024
d2fa8e1
chore: upd finding icons
madlabman Oct 23, 2024
3655b8d
docs: update README
madlabman Oct 23, 2024
3193111
fix: by-severity icons
madlabman Nov 1, 2024
e51abfa
chore: missing C
madlabman Nov 6, 2024
63c81a2
chore: mask all the urls in errors
madlabman Nov 28, 2024
a7e5328
feat: dirty multicall for accounting shares
madlabman Jan 12, 2025
f6ff57e
chore: add more details to false-positive alert
madlabman Jan 14, 2025
2f0a19a
chore: log block hash in handleBlock
madlabman Jan 17, 2025
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
Prev Previous commit
Next Next commit
chore: add logging to v1 shim
madlabman committed Oct 17, 2024
commit edecd2ee24ca537adebf7fbe2085fe924678a45d
2 changes: 2 additions & 0 deletions csm-alerts/src/agent.ts
Original file line number Diff line number Diff line change
@@ -30,6 +30,8 @@ const SERVICES = [
let isLaunchReported = false

const handleBlock: HandleBlock = async (blockEvent) => {
logger.info(`Running handlers for block ${blockEvent.blockNumber}`)

const out: Finding[] = []

const provider = await getProvider({ rpcUrl: getJsonRpcUrl() })