@t2000/sdk 3.1.0 → 3.2.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 CHANGED
@@ -1,8 +1,8 @@
1
1
  # @t2000/sdk
2
2
 
3
- The complete TypeScript SDK for AI agent bank accounts on Sui. Send USDC, earn yield via NAVI, and borrow against collateral — all from a single class. USDC in, USDC out.
3
+ The complete TypeScript SDK for Agentic Wallets on Sui. Send USDC, earn yield via NAVI, and borrow against collateral — all from a single class. USDC in, USDC out.
4
4
 
5
- In Audric, this SDK powers **Audric Passport** (wallet, signing), **Audric Finance** (NAVI lending/borrowing builders, Cetus swap), and **Audric Pay** (USDC transfers, payment links, invoices), and is wrapped by `@t2000/engine` to implement **Audric Intelligence**'s Agent Harness.
5
+ In Audric, this SDK powers **Audric Passport** (wallet, signing), **Audric Finance** (NAVI lending/borrowing builders, Cetus swap), and **Audric Pay** (USDC transfers, payment links), and is wrapped by `@t2000/engine` to implement **Audric Intelligence**'s Agent Harness.
6
6
 
7
7
  [![npm](https://img.shields.io/npm/v/@t2000/sdk)](https://www.npmjs.com/package/@t2000/sdk)
8
8
  [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
@@ -26,7 +26,7 @@ yarn add @t2000/sdk
26
26
  ```typescript
27
27
  import { T2000 } from '@t2000/sdk';
28
28
 
29
- // Create a new bank account
29
+ // Create a new Agentic Wallet
30
30
  const { agent, address } = await T2000.init({ pin: 'my-secret' });
31
31
 
32
32
  // Or load an existing one
@@ -56,7 +56,7 @@ await agent.withdraw({ amount: 25 });
56
56
 
57
57
  ### `T2000.init(options)` — Create a new wallet
58
58
 
59
- Creates a new bank account (generates keypair, encrypts, and saves to disk). Fund the returned address with a small amount of SUI for gas (Mercuryo: https://exchange.mercuryo.io/?widget_id=89960d1a-8db7-49e5-8823-4c5e01c1cea2) plus USDC to transact.
59
+ Creates a new Agentic Wallet (generates keypair, encrypts, and saves to disk). Fund the returned address with a small amount of SUI for gas (Mercuryo: https://exchange.mercuryo.io/?widget_id=89960d1a-8db7-49e5-8823-4c5e01c1cea2) plus USDC to transact.
60
60
 
61
61
  ```typescript
62
62
  const { agent, address } = await T2000.init({
@@ -67,7 +67,7 @@ const { agent, address } = await T2000.init({
67
67
 
68
68
  ### `T2000.create(options)` — Load an existing wallet
69
69
 
70
- Loads an existing bank account from an encrypted key file. Throws `WALLET_NOT_FOUND` if no wallet exists.
70
+ Loads an existing Agentic Wallet from an encrypted key file. Throws `WALLET_NOT_FOUND` if no wallet exists.
71
71
 
72
72
  ```typescript
73
73
  const agent = await T2000.create({
@@ -488,7 +488,7 @@ var SUPPORTED_ASSETS = {
488
488
  displayName: "XAUM"
489
489
  }
490
490
  };
491
- var STABLE_ASSETS = ["USDC"];
491
+ var SAVEABLE_ASSETS = ["USDC", "USDsui"];
492
492
  var ALL_NAVI_ASSETS = Object.keys(SUPPORTED_ASSETS);
493
493
  process.env.T2000_OVERLAY_FEE_WALLET ?? "0x5366efbf2b4fe5767fe2e78eb197aa5f5d138d88ac3333fbf3f80a1927da473a";
494
494
  process.env.T2000_API_URL ?? "https://api.t2000.ai";
@@ -536,7 +536,7 @@ var ProtocolRegistry = class {
536
536
  }
537
537
  async bestSaveRateAcrossAssets() {
538
538
  const candidates = [];
539
- for (const asset of STABLE_ASSETS) {
539
+ for (const asset of SAVEABLE_ASSETS) {
540
540
  for (const adapter of this.lending.values()) {
541
541
  if (!adapter.supportedAssets.includes(asset)) continue;
542
542
  if (!adapter.capabilities.includes("save")) continue;
@@ -556,7 +556,7 @@ var ProtocolRegistry = class {
556
556
  async allRatesAcrossAssets() {
557
557
  const results = [];
558
558
  const seen = /* @__PURE__ */ new Set();
559
- for (const asset of STABLE_ASSETS) {
559
+ for (const asset of SAVEABLE_ASSETS) {
560
560
  if (seen.has(asset)) continue;
561
561
  seen.add(asset);
562
562
  for (const adapter of this.lending.values()) {