@economicagents/monitor
v0.2.0
Published
On-chain event monitoring for AEP security alerts
Maintainers
Readme
@economicagents/monitor
On-chain monitoring for AEP accounts and relationships: poll for Frozen, DefaultDeclared, BreachDeclared, policy failures, and UserOp revert reasons. Logs JSON lines to stdout; optional webhook POST.
Install
pnpm add @economicagents/monitorFrom a local clone of economicagents/AEP: use aep monitor from @economicagents/cli, or cd packages/monitor && pnpm run build and run node dist/cli.js.
Usage
aep monitorConfig in ~/.aep/config.json under monitor:
{
"monitor": {
"accounts": ["0x..."],
"facilities": ["0x..."],
"slas": ["0x..."],
"webhookUrl": "https://...",
"pollIntervalMs": 15000
}
}Configuration
- accounts — Smart accounts to watch
- facilities — CreditFacility addresses (
DefaultDeclared) - slas — SLAContract addresses (
BreachDeclared) - webhookUrl — Optional alert POST URL
- pollIntervalMs — Poll interval (default 15000)
Build & test
pnpm run build
pnpm run testDocumentation
- Cookbook — Monitor setup
- Incident response — When alerts indicate compromise or policy issues
