@t2000/sdk 0.40.3 → 0.41.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 +3 -3
- package/dist/browser.cjs +3 -1
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +1 -1
- package/dist/browser.d.ts +1 -1
- package/dist/browser.js +3 -1
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +9 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -3
- package/dist/index.d.ts +11 -3
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/{token-registry-DN059Xcp.d.ts → token-registry-B3EV3AdW.d.ts} +4 -2
- package/dist/{token-registry-B9ei_Kd-.d.cts → token-registry-BEvCPkp9.d.cts} +4 -2
- package/package.json +1 -1
|
@@ -156,6 +156,8 @@ declare const MIST_PER_SUI = 1000000000n;
|
|
|
156
156
|
declare const SUI_DECIMALS = 9;
|
|
157
157
|
declare const USDC_DECIMALS = 6;
|
|
158
158
|
declare const BPS_DENOMINATOR = 10000n;
|
|
159
|
+
declare const SAVE_FEE_BPS = 10n;
|
|
160
|
+
declare const BORROW_FEE_BPS = 5n;
|
|
159
161
|
declare const CLOCK_ID = "0x6";
|
|
160
162
|
declare const SUPPORTED_ASSETS: {
|
|
161
163
|
readonly USDC: {
|
|
@@ -307,7 +309,7 @@ declare class SafeguardError extends T2000Error {
|
|
|
307
309
|
* ZERO heavy dependencies. Safe to import from any context (server, browser, Edge).
|
|
308
310
|
*
|
|
309
311
|
* Tier 1: USDC — the financial layer (save, borrow, receive, yield, allowances, marketplace, MPP).
|
|
310
|
-
* Tier 2:
|
|
312
|
+
* Tier 2: 15 curated swap assets — hold, trade, and send only.
|
|
311
313
|
* No tier: Legacy tokens kept for display accuracy (existing NAVI positions). No new operations.
|
|
312
314
|
*
|
|
313
315
|
* To add a new token: add ONE entry to COIN_REGISTRY below. Everything else derives from it.
|
|
@@ -367,4 +369,4 @@ declare const IKA_TYPE: string;
|
|
|
367
369
|
declare const LOFI_TYPE: string;
|
|
368
370
|
declare const MANIFEST_TYPE: string;
|
|
369
371
|
|
|
370
|
-
export { formatAssetAmount as $, ALL_NAVI_ASSETS as A, BPS_DENOMINATOR as B, CLOCK_ID as C, DEFAULT_NETWORK as D, ETH_TYPE as E, type FeeOperation as F, GAS_RESERVE_MIN as G, USDSUI_TYPE as H, IKA_TYPE as I, USDT_TYPE as J, KeypairSigner as K, LOFI_TYPE as L, MANIFEST_TYPE as M, NAVX_TYPE as N, OUTBOUND_OPS as O, type ProtocolFeeInfo as P, WBTC_TYPE as Q, ZkLoginSigner as R, STABLE_ASSETS as S, T2000Error as T, USDC_DECIMALS as U, addCollectFeeToTx as V, WAL_TYPE as W, calculateFee as X, executeAutoTopUp as Y, type ZkLoginProof as Z, executeWithGas as _, type AutoTopUpResult as a, formatSui as a0, formatUsd as a1, getDecimals as a2, getDecimalsForCoinType as a3, getGasStatus as a4, getTier as a5, isSupported as a6, isTier1 as a7, isTier2 as a8, mapMoveAbortCode as a9, mapWalletError as aa, mistToSui as ab, rawToStable as ac, rawToUsdc as ad, resolveSymbol as ae, resolveTokenType as af, shouldAutoTopUp as ag, stableToRaw as ah, suiToMist as ai, truncateAddress as aj, usdcToRaw as ak, validateAddress as al, SafeguardEnforcer as am,
|
|
372
|
+
export { formatAssetAmount as $, ALL_NAVI_ASSETS as A, BPS_DENOMINATOR as B, CLOCK_ID as C, DEFAULT_NETWORK as D, ETH_TYPE as E, type FeeOperation as F, GAS_RESERVE_MIN as G, USDSUI_TYPE as H, IKA_TYPE as I, USDT_TYPE as J, KeypairSigner as K, LOFI_TYPE as L, MANIFEST_TYPE as M, NAVX_TYPE as N, OUTBOUND_OPS as O, type ProtocolFeeInfo as P, WBTC_TYPE as Q, ZkLoginSigner as R, STABLE_ASSETS as S, T2000Error as T, USDC_DECIMALS as U, addCollectFeeToTx as V, WAL_TYPE as W, calculateFee as X, executeAutoTopUp as Y, type ZkLoginProof as Z, executeWithGas as _, type AutoTopUpResult as a, formatSui as a0, formatUsd as a1, getDecimals as a2, getDecimalsForCoinType as a3, getGasStatus as a4, getTier as a5, isSupported as a6, isTier1 as a7, isTier2 as a8, mapMoveAbortCode as a9, mapWalletError as aa, mistToSui as ab, rawToStable as ac, rawToUsdc as ad, resolveSymbol as ae, resolveTokenType as af, shouldAutoTopUp as ag, stableToRaw as ah, suiToMist as ai, truncateAddress as aj, usdcToRaw as ak, validateAddress as al, SafeguardEnforcer as am, BORROW_FEE_BPS as an, CETUS_USDC_SUI_POOL as ao, OPERATION_ASSETS as ap, type Operation as aq, SAVE_FEE_BPS as ar, assertAllowedAsset as as, isAllowedAsset as at, simulateTransaction as au, throwIfSimulationFailed as av, COIN_REGISTRY as b, type CoinMeta as c, DEFAULT_SAFEGUARD_CONFIG as d, type GasExecutionResult as e, type GasRequestType as f, type GasSponsorResponse as g, type GasStatusResponse as h, MIST_PER_SUI as i, SUI_DECIMALS as j, SUI_TYPE as k, SUPPORTED_ASSETS as l, type SafeguardConfig as m, SafeguardError as n, type SafeguardErrorDetails as o, type SafeguardRule as p, type SimulationResult as q, type StableAsset as r, type SupportedAsset as s, type T2000ErrorCode as t, type T2000ErrorData as u, TOKEN_MAP as v, type TransactionSigner as w, type TxMetadata as x, USDC_TYPE as y, USDE_TYPE as z };
|
|
@@ -156,6 +156,8 @@ declare const MIST_PER_SUI = 1000000000n;
|
|
|
156
156
|
declare const SUI_DECIMALS = 9;
|
|
157
157
|
declare const USDC_DECIMALS = 6;
|
|
158
158
|
declare const BPS_DENOMINATOR = 10000n;
|
|
159
|
+
declare const SAVE_FEE_BPS = 10n;
|
|
160
|
+
declare const BORROW_FEE_BPS = 5n;
|
|
159
161
|
declare const CLOCK_ID = "0x6";
|
|
160
162
|
declare const SUPPORTED_ASSETS: {
|
|
161
163
|
readonly USDC: {
|
|
@@ -307,7 +309,7 @@ declare class SafeguardError extends T2000Error {
|
|
|
307
309
|
* ZERO heavy dependencies. Safe to import from any context (server, browser, Edge).
|
|
308
310
|
*
|
|
309
311
|
* Tier 1: USDC — the financial layer (save, borrow, receive, yield, allowances, marketplace, MPP).
|
|
310
|
-
* Tier 2:
|
|
312
|
+
* Tier 2: 15 curated swap assets — hold, trade, and send only.
|
|
311
313
|
* No tier: Legacy tokens kept for display accuracy (existing NAVI positions). No new operations.
|
|
312
314
|
*
|
|
313
315
|
* To add a new token: add ONE entry to COIN_REGISTRY below. Everything else derives from it.
|
|
@@ -367,4 +369,4 @@ declare const IKA_TYPE: string;
|
|
|
367
369
|
declare const LOFI_TYPE: string;
|
|
368
370
|
declare const MANIFEST_TYPE: string;
|
|
369
371
|
|
|
370
|
-
export { formatAssetAmount as $, ALL_NAVI_ASSETS as A, BPS_DENOMINATOR as B, CLOCK_ID as C, DEFAULT_NETWORK as D, ETH_TYPE as E, type FeeOperation as F, GAS_RESERVE_MIN as G, USDSUI_TYPE as H, IKA_TYPE as I, USDT_TYPE as J, KeypairSigner as K, LOFI_TYPE as L, MANIFEST_TYPE as M, NAVX_TYPE as N, OUTBOUND_OPS as O, type ProtocolFeeInfo as P, WBTC_TYPE as Q, ZkLoginSigner as R, STABLE_ASSETS as S, T2000Error as T, USDC_DECIMALS as U, addCollectFeeToTx as V, WAL_TYPE as W, calculateFee as X, executeAutoTopUp as Y, type ZkLoginProof as Z, executeWithGas as _, type AutoTopUpResult as a, formatSui as a0, formatUsd as a1, getDecimals as a2, getDecimalsForCoinType as a3, getGasStatus as a4, getTier as a5, isSupported as a6, isTier1 as a7, isTier2 as a8, mapMoveAbortCode as a9, mapWalletError as aa, mistToSui as ab, rawToStable as ac, rawToUsdc as ad, resolveSymbol as ae, resolveTokenType as af, shouldAutoTopUp as ag, stableToRaw as ah, suiToMist as ai, truncateAddress as aj, usdcToRaw as ak, validateAddress as al, SafeguardEnforcer as am,
|
|
372
|
+
export { formatAssetAmount as $, ALL_NAVI_ASSETS as A, BPS_DENOMINATOR as B, CLOCK_ID as C, DEFAULT_NETWORK as D, ETH_TYPE as E, type FeeOperation as F, GAS_RESERVE_MIN as G, USDSUI_TYPE as H, IKA_TYPE as I, USDT_TYPE as J, KeypairSigner as K, LOFI_TYPE as L, MANIFEST_TYPE as M, NAVX_TYPE as N, OUTBOUND_OPS as O, type ProtocolFeeInfo as P, WBTC_TYPE as Q, ZkLoginSigner as R, STABLE_ASSETS as S, T2000Error as T, USDC_DECIMALS as U, addCollectFeeToTx as V, WAL_TYPE as W, calculateFee as X, executeAutoTopUp as Y, type ZkLoginProof as Z, executeWithGas as _, type AutoTopUpResult as a, formatSui as a0, formatUsd as a1, getDecimals as a2, getDecimalsForCoinType as a3, getGasStatus as a4, getTier as a5, isSupported as a6, isTier1 as a7, isTier2 as a8, mapMoveAbortCode as a9, mapWalletError as aa, mistToSui as ab, rawToStable as ac, rawToUsdc as ad, resolveSymbol as ae, resolveTokenType as af, shouldAutoTopUp as ag, stableToRaw as ah, suiToMist as ai, truncateAddress as aj, usdcToRaw as ak, validateAddress as al, SafeguardEnforcer as am, BORROW_FEE_BPS as an, CETUS_USDC_SUI_POOL as ao, OPERATION_ASSETS as ap, type Operation as aq, SAVE_FEE_BPS as ar, assertAllowedAsset as as, isAllowedAsset as at, simulateTransaction as au, throwIfSimulationFailed as av, COIN_REGISTRY as b, type CoinMeta as c, DEFAULT_SAFEGUARD_CONFIG as d, type GasExecutionResult as e, type GasRequestType as f, type GasSponsorResponse as g, type GasStatusResponse as h, MIST_PER_SUI as i, SUI_DECIMALS as j, SUI_TYPE as k, SUPPORTED_ASSETS as l, type SafeguardConfig as m, SafeguardError as n, type SafeguardErrorDetails as o, type SafeguardRule as p, type SimulationResult as q, type StableAsset as r, type SupportedAsset as s, type T2000ErrorCode as t, type T2000ErrorData as u, TOKEN_MAP as v, type TransactionSigner as w, type TxMetadata as x, USDC_TYPE as y, USDE_TYPE as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@t2000/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.41.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",
|