$npx -y skills add This-Is-Captain-Code/monagotchi --skill monagotchi-ausdWatches for AUSD transfers to the Monagotchi treasury and logs wallet attribution for the Moltiverse/Agora integration.
| 1 | # monagotchi-ausd |
| 2 | |
| 3 | Watches for AUSD transfers to the Monagotchi treasury and logs wallet attribution for the Moltiverse/Agora integration. |
| 4 | |
| 5 | ## What this skill does |
| 6 | |
| 7 | - Monitors AUSD (Agora USD) transfers to the treasury address on Monad |
| 8 | - Logs each sender's wallet, amount, and tx hash to `ausd_log.json` |
| 9 | - Updates pet state with a `AUSD_FEED` event |
| 10 | |
| 11 | ## Skill: add_ausd |
| 12 | |
| 13 | **Triggered when:** AUSD is sent to the Monagotchi treasury address. |
| 14 | |
| 15 | **What it does:** |
| 16 | 1. Records the sender wallet, amount, and tx hash |
| 17 | 2. Appends the entry to `scripts/ausd_log.json` |
| 18 | 3. Reports success back to the agent |
| 19 | |
| 20 | **Usage:** |
| 21 | > "Start the AUSD watcher" |
| 22 | > "Who has sent AUSD to Monagotchi?" |
| 23 | > "Show AUSD contributors" |
| 24 | |
| 25 | ## Setup |
| 26 | |
| 27 | ### 1. Install dependencies |
| 28 | |
| 29 | ```bash |
| 30 | cd monagotchi-ausd/scripts && npm install |
| 31 | ``` |
| 32 | |
| 33 | ### 2. Configure OpenClaw |
| 34 | |
| 35 | Add to `~/.openclaw/openclaw.json`: |
| 36 | |
| 37 | ```json |
| 38 | { |
| 39 | "skills": { |
| 40 | "entries": { |
| 41 | "monagotchi-ausd": { |
| 42 | "enabled": true, |
| 43 | "env": { |
| 44 | "TREASURY_ADDRESS": "0xYOUR_TREASURY_WALLET", |
| 45 | "MONAD_RPC_URL": "https://monad-mainnet.g.alchemy.com/v2/YOUR_KEY" |
| 46 | } |
| 47 | } |
| 48 | } |
| 49 | } |
| 50 | } |
| 51 | ``` |
| 52 | |
| 53 | ### 3. Run the watcher |
| 54 | |
| 55 | ```bash |
| 56 | node monagotchi-ausd/scripts/ausd-watcher.mjs |
| 57 | ``` |
| 58 | |
| 59 | Or let OpenClaw manage it via the skill. |
| 60 | |
| 61 | ## Output |
| 62 | |
| 63 | Logs are written to `scripts/ausd_log.json`: |
| 64 | |
| 65 | ```json |
| 66 | [ |
| 67 | { |
| 68 | "wallet": "0xabc...", |
| 69 | "amount": "10000000", |
| 70 | "amountFormatted": "10.00", |
| 71 | "txHash": "0xdef...", |
| 72 | "timestamp": "2025-01-01T00:00:00.000Z" |
| 73 | } |
| 74 | ] |
| 75 | ``` |
| 76 | |
| 77 | ## AUSD Contract |
| 78 | |
| 79 | - **Address:** `0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a` |
| 80 | - **Network:** Monad Mainnet |
| 81 | - **Decimals:** 6 |