@t2000/sdk 0.11.2 → 0.13.0
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 +11 -1
- package/dist/adapters/index.cjs.map +1 -1
- package/dist/adapters/index.d.cts +1 -1
- package/dist/adapters/index.d.ts +1 -1
- package/dist/adapters/index.js.map +1 -1
- package/dist/{index-BwHcYli9.d.cts → index-Dd4EvUGr.d.cts} +1 -0
- package/dist/{index-BwHcYli9.d.ts → index-Dd4EvUGr.d.ts} +1 -0
- package/dist/index.cjs +84 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +30 -4
- package/dist/index.d.ts +30 -4
- package/dist/index.js +84 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -121,6 +121,16 @@ const agent = T2000.fromPrivateKey('suiprivkey1q...');
|
|
|
121
121
|
| `agent.deposit()` | Wallet address + funding instructions | `DepositInfo` |
|
|
122
122
|
| `agent.history({ limit? })` | Transaction history (default: all) | `TransactionRecord[]` |
|
|
123
123
|
|
|
124
|
+
### Contacts Methods
|
|
125
|
+
|
|
126
|
+
| Method | Description | Returns |
|
|
127
|
+
|--------|-------------|---------|
|
|
128
|
+
| `agent.contacts.add(name, address)` | Save a named contact | `void` |
|
|
129
|
+
| `agent.contacts.remove(name)` | Remove a contact | `void` |
|
|
130
|
+
| `agent.contacts.list()` | List all saved contacts | `Contact[]` |
|
|
131
|
+
| `agent.contacts.get(name)` | Get a contact by name | `Contact` |
|
|
132
|
+
| `agent.contacts.resolve(nameOrAddress)` | Resolve name to address (passthrough if already an address) | `string` |
|
|
133
|
+
|
|
124
134
|
### Sentinel Methods
|
|
125
135
|
|
|
126
136
|
| Method | Description | Returns |
|
|
@@ -337,7 +347,7 @@ Fees are collected by the t2000 protocol treasury on-chain.
|
|
|
337
347
|
|
|
338
348
|
## MCP Server
|
|
339
349
|
|
|
340
|
-
The SDK powers the [`@t2000/mcp`](https://www.npmjs.com/package/@t2000/mcp) server —
|
|
350
|
+
The SDK powers the [`@t2000/mcp`](https://www.npmjs.com/package/@t2000/mcp) server — 17 tools and 5 prompts for Claude Desktop, Cursor, and any MCP-compatible AI platform. Run `t2000 mcp` to start.
|
|
341
351
|
|
|
342
352
|
## License
|
|
343
353
|
|