@t2000/sdk 0.50.3 → 0.51.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.
@@ -1,7 +1,7 @@
1
1
  import { Ed25519Keypair } from '@mysten/sui/keypairs/ed25519';
2
2
  import { SuiJsonRpcClient } from '@mysten/sui/jsonRpc';
3
3
  import { Transaction, TransactionObjectArgument } from '@mysten/sui/transactions';
4
- import { G as GasMethod, T as TransactionRecord } from './types-DIgyNKqV.js';
4
+ import { G as GasMethod, T as TransactionRecord } from './types-DlNEW8w1.cjs';
5
5
 
6
6
  /**
7
7
  * Abstract signing interface that decouples the SDK from any specific
@@ -220,8 +220,8 @@ type StableAsset = 'USDC';
220
220
  declare const STABLE_ASSETS: readonly StableAsset[];
221
221
  declare const ALL_NAVI_ASSETS: readonly SupportedAsset[];
222
222
  declare const OPERATION_ASSETS: {
223
- readonly save: readonly ["USDC"];
224
- readonly borrow: readonly ["USDC"];
223
+ readonly save: readonly ["USDC", "USDsui"];
224
+ readonly borrow: readonly ["USDC", "USDsui"];
225
225
  readonly withdraw: "*";
226
226
  readonly repay: "*";
227
227
  readonly send: "*";
@@ -1,7 +1,7 @@
1
1
  import { Ed25519Keypair } from '@mysten/sui/keypairs/ed25519';
2
2
  import { SuiJsonRpcClient } from '@mysten/sui/jsonRpc';
3
3
  import { Transaction, TransactionObjectArgument } from '@mysten/sui/transactions';
4
- import { G as GasMethod, T as TransactionRecord } from './types-DIgyNKqV.cjs';
4
+ import { G as GasMethod, T as TransactionRecord } from './types-DlNEW8w1.js';
5
5
 
6
6
  /**
7
7
  * Abstract signing interface that decouples the SDK from any specific
@@ -220,8 +220,8 @@ type StableAsset = 'USDC';
220
220
  declare const STABLE_ASSETS: readonly StableAsset[];
221
221
  declare const ALL_NAVI_ASSETS: readonly SupportedAsset[];
222
222
  declare const OPERATION_ASSETS: {
223
- readonly save: readonly ["USDC"];
224
- readonly borrow: readonly ["USDC"];
223
+ readonly save: readonly ["USDC", "USDsui"];
224
+ readonly borrow: readonly ["USDC", "USDsui"];
225
225
  readonly withdraw: "*";
226
226
  readonly repay: "*";
227
227
  readonly send: "*";
@@ -56,6 +56,8 @@ interface BorrowResult {
56
56
  success: boolean;
57
57
  tx: string;
58
58
  amount: number;
59
+ /** [v0.51.0] Asset borrowed — 'USDC' or 'USDsui'. Optional for backward compat. */
60
+ asset?: string;
59
61
  fee: number;
60
62
  healthFactor: number;
61
63
  gasCost: number;
@@ -56,6 +56,8 @@ interface BorrowResult {
56
56
  success: boolean;
57
57
  tx: string;
58
58
  amount: number;
59
+ /** [v0.51.0] Asset borrowed — 'USDC' or 'USDsui'. Optional for backward compat. */
60
+ asset?: string;
59
61
  fee: number;
60
62
  healthFactor: number;
61
63
  gasCost: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t2000/sdk",
3
- "version": "0.50.3",
3
+ "version": "0.51.0",
4
4
  "description": "TypeScript SDK for AI agent bank accounts on Sui — send, save, borrow, swap. NAVI lending + Cetus aggregator routing, sponsored gas, zkLogin compatible.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",