@t2000/sdk 0.50.3 → 0.51.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 +6 -6
- 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/browser.cjs.map +1 -1
- package/dist/browser.d.cts +2 -2
- package/dist/browser.d.ts +2 -2
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +65 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -4
- package/dist/index.d.ts +17 -4
- package/dist/index.js +65 -28
- package/dist/index.js.map +1 -1
- package/dist/{token-registry-BYXTvp_b.d.cts → token-registry-BortlMRr.d.ts} +3 -3
- package/dist/{token-registry-DbI2moHp.d.ts → token-registry-DWRdYf6m.d.cts} +3 -3
- package/dist/{types-DIgyNKqV.d.cts → types-DVVns7_w.d.cts} +4 -0
- package/dist/{types-DIgyNKqV.d.ts → types-DVVns7_w.d.ts} +4 -0
- package/package.json +1 -1
|
@@ -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-
|
|
4
|
+
import { G as GasMethod, T as TransactionRecord } from './types-DVVns7_w.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: "*";
|
|
@@ -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-
|
|
4
|
+
import { G as GasMethod, T as TransactionRecord } from './types-DVVns7_w.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: "*";
|
|
@@ -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;
|
|
@@ -65,6 +67,8 @@ interface RepayResult {
|
|
|
65
67
|
success: boolean;
|
|
66
68
|
tx: string;
|
|
67
69
|
amount: number;
|
|
70
|
+
/** [v0.51.1] Asset repaid — 'USDC' or 'USDsui'. Optional for backward compat. */
|
|
71
|
+
asset?: string;
|
|
68
72
|
remainingDebt: number;
|
|
69
73
|
gasCost: number;
|
|
70
74
|
gasMethod: GasMethod;
|
|
@@ -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;
|
|
@@ -65,6 +67,8 @@ interface RepayResult {
|
|
|
65
67
|
success: boolean;
|
|
66
68
|
tx: string;
|
|
67
69
|
amount: number;
|
|
70
|
+
/** [v0.51.1] Asset repaid — 'USDC' or 'USDsui'. Optional for backward compat. */
|
|
71
|
+
asset?: string;
|
|
68
72
|
remainingDebt: number;
|
|
69
73
|
gasCost: number;
|
|
70
74
|
gasMethod: GasMethod;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@t2000/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.51.1",
|
|
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",
|