@zakyirsyaad/monagent-plugin 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +48 -13
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,17 +1,52 @@
|
|
|
1
|
-
# @monagent
|
|
1
|
+
# @zakyirsyaad/monagent-plugin
|
|
2
2
|
|
|
3
|
-
MetaMask Agent Wallet
|
|
3
|
+
MetaMask Agent Wallet (`mm`) plugin for agent-to-agent commerce on **Monad**: payments in MON and
|
|
4
|
+
ERC-20, ERC-8004 identity and reputation, x402 paid API calls, and task escrow. Every write goes
|
|
5
|
+
through the MetaMask wallet executor and its transaction protection policy; the plugin never sees keys.
|
|
6
|
+
|
|
7
|
+
Supports **Monad Mainnet (`143`)** and **Monad Testnet (`10143`)**. Requires `@metamask/agent-wallet`
|
|
8
|
+
6.2+ or 7.x.
|
|
9
|
+
|
|
10
|
+
## Install
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
npm install -g @metamask/agent-wallet@7
|
|
14
|
+
mm config set experimentalPlugins true
|
|
15
|
+
mm config set experimentalAllowUnverifiedInstalls true
|
|
16
|
+
mm plugins install @zakyirsyaad/monagent-plugin --accept-permissions
|
|
17
|
+
mm login # needed for write commands
|
|
18
|
+
mm init # first run only
|
|
19
|
+
```
|
|
4
20
|
|
|
5
21
|
## Commands
|
|
6
22
|
|
|
7
|
-
- `
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
-
|
|
17
|
-
|
|
23
|
+
Every command takes `--chain-id 10143|143` (default `10143`, testnet). Add `--json` for machine-readable output.
|
|
24
|
+
|
|
25
|
+
| Command | What it does | Chains |
|
|
26
|
+
|---|---|---|
|
|
27
|
+
| `mm monad pay` | Send MON, USDC, or any ERC-20 (`--token MON\|USDC\|0x…`) | 10143, 143 |
|
|
28
|
+
| `mm monad identity register` | Register an agent on the official ERC-8004 Identity Registry | 10143, 143 |
|
|
29
|
+
| `mm monad identity get <agentId>` | Read owner, agent wallet and registration file | 10143, 143 |
|
|
30
|
+
| `mm monad reputation check <agentId>` | Feedback count, average score and trust tier | 10143, 143 |
|
|
31
|
+
| `mm monad reputation give` | Submit feedback to the official ERC-8004 Reputation Registry | 10143, 143 |
|
|
32
|
+
| `mm monad x402 pay` | Call an HTTP 402 API, signing an EIP-3009 USDC authorization | 10143, 143 |
|
|
33
|
+
| `mm monad jobs create` / `complete <jobId>` / `refund <jobId>` | Fund, release or refund a task escrow | 10143 |
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
mm monad identity get 1 --chain-id 143
|
|
37
|
+
mm monad pay --to 0x… --amount 1.5 --token USDC --chain-id 143
|
|
38
|
+
mm monad x402 pay --url https://api.example.com/tool --payer 0x<your mm wallet> --maxSpend 100000
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Contracts
|
|
42
|
+
|
|
43
|
+
| | Testnet (`10143`) | Mainnet (`143`) |
|
|
44
|
+
|---|---|---|
|
|
45
|
+
| ERC-8004 Identity | `0x8004A818BFB912233c491871b3d84c89A494BD9e` | `0x8004A169FB4a3325136EB29fA0ceB6D2e539a432` |
|
|
46
|
+
| ERC-8004 Reputation | `0x8004B663056A597Dffe9eCcC1965A193B7388713` | `0x8004BAa17C55a88189AE136b182e5fdA19dE9b63` |
|
|
47
|
+
| USDC | `0x534b2f3A21130d7a60830c2Df862319e593943A3` | `0x754704Bc059F8C67012fEd69BC8A327a5aafb603` |
|
|
48
|
+
| MonadA2AEscrow | `0x8dcab9ddf394eb29cb891b264627bf60ea6af6ff` | not deployed |
|
|
49
|
+
|
|
50
|
+
Full documentation, flags, error codes and the agent skill:
|
|
51
|
+
[github.com/zakyirsyaad/monagent](https://github.com/zakyirsyaad/monagent) ·
|
|
52
|
+
[SKILL.md](https://github.com/zakyirsyaad/monagent/blob/main/skills/monad-agent/SKILL.md)
|
package/oclif.manifest.json
CHANGED