leash-monad 0.1.0 → 0.1.1
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 +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/networks.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ import { checkAgent } from "leash-monad";
|
|
|
16
16
|
const v = await checkAgent(agentAddress, myAddress, "2.00"); // Monad mainnet by default
|
|
17
17
|
if (!v.ok) return res.status(403).json(v);
|
|
18
18
|
// v = { status: "OK", ok: true, remainingToday: "3.0", expiry: 1791887540,
|
|
19
|
-
// erc8004Id: "
|
|
19
|
+
// erc8004Id: "10299", account: "0xB1C6…", reason: "This agent is leashed and this payment fits its budget." }
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
| `status` | Meaning |
|
|
@@ -65,7 +65,7 @@ nothing leaves the account.
|
|
|
65
65
|
|
|
66
66
|
| | Chain | LeashHub |
|
|
67
67
|
|---|---|---|
|
|
68
|
-
| `mainnet` (default) | Monad, 143 | `
|
|
68
|
+
| `mainnet` (default) | Monad, 143 | `0x64a489074dd6a4b3b977e5f635a178366a8c12c3` |
|
|
69
69
|
| `testnet` | Monad Testnet, 10143 | `0x8b427106c04e66dfc6e8d58fa4de0478a54f510a` |
|
|
70
70
|
|
|
71
71
|
Pass `{ network: "testnet" }` as the last argument to any call.
|
package/dist/index.cjs
CHANGED
|
@@ -41,7 +41,7 @@ var networks = {
|
|
|
41
41
|
chainId: 143,
|
|
42
42
|
rpc: "https://rpc.monad.xyz",
|
|
43
43
|
explorer: "https://monadvision.com",
|
|
44
|
-
hub: "
|
|
44
|
+
hub: "0x64a489074dd6a4b3b977e5f635a178366a8c12c3",
|
|
45
45
|
identityRegistry: "0x8004A169FB4a3325136EB29fA0ceB6D2e539a432",
|
|
46
46
|
testUsd: "0x4adf40e6e5113339635e6dc54ff638e7b63bbea3"
|
|
47
47
|
},
|
package/dist/index.mjs
CHANGED
|
@@ -18,7 +18,7 @@ var networks = {
|
|
|
18
18
|
chainId: 143,
|
|
19
19
|
rpc: "https://rpc.monad.xyz",
|
|
20
20
|
explorer: "https://monadvision.com",
|
|
21
|
-
hub: "
|
|
21
|
+
hub: "0x64a489074dd6a4b3b977e5f635a178366a8c12c3",
|
|
22
22
|
identityRegistry: "0x8004A169FB4a3325136EB29fA0ceB6D2e539a432",
|
|
23
23
|
testUsd: "0x4adf40e6e5113339635e6dc54ff638e7b63bbea3"
|
|
24
24
|
},
|
package/dist/networks.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export declare const networks: {
|
|
|
15
15
|
chainId: number;
|
|
16
16
|
rpc: string;
|
|
17
17
|
explorer: string;
|
|
18
|
-
hub: "
|
|
18
|
+
hub: "0x64a489074dd6a4b3b977e5f635a178366a8c12c3";
|
|
19
19
|
identityRegistry: "0x8004A169FB4a3325136EB29fA0ceB6D2e539a432";
|
|
20
20
|
testUsd: "0x4adf40e6e5113339635e6dc54ff638e7b63bbea3";
|
|
21
21
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "leash-monad",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Spend limits for AI agents on Monad. One call tells a seller whose agent it is, what it may spend today, and whether a payment will go through.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Robert Moore",
|