A one-shot monitor for the vector-marketplace box: checks each wallet in wallets.json against a threshold (default 10 APEX) via Ogmios (ReadOnlyOgmiosProvider) and posts a combined Slack message when any wallet is below it. Re-reminds every 6h while a wallet stays low and posts a recovery message when it climbs back above, deduped through a persisted state file. Runs hourly under host cron via `docker compose run --rm` — no long-running server, no ports/healthcheck. Reuses the buyer/supplier tsx Docker pattern and the existing balance-query client; addresses come from a static, gitignored wallets.json so the monitor never reads a private key. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
14 lines
562 B
JSON
14 lines
562 B
JSON
{
|
|
"default_min_ap3x": 10,
|
|
"reminder_hours": 6,
|
|
"wallets": [
|
|
{ "name": "buyer", "address": "addr1_REPLACE_ME" },
|
|
{ "name": "supplier-ollama", "address": "addr1_REPLACE_ME" },
|
|
{ "name": "supplier-gpt", "address": "addr1_REPLACE_ME" },
|
|
{ "name": "supplier-deepseek", "address": "addr1_REPLACE_ME" },
|
|
{ "name": "supplier-kimi", "address": "addr1_REPLACE_ME" },
|
|
{ "name": "supplier-kimi-chat","address": "addr1_REPLACE_ME" },
|
|
{ "name": "supplier-tts", "address": "addr1_REPLACE_ME", "min_ap3x": 8 }
|
|
]
|
|
}
|