@t2000/sdk 3.2.0 → 3.3.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 +1 -4
- package/dist/adapters/index.d.cts +1 -1
- package/dist/adapters/index.d.ts +1 -1
- package/dist/browser.d.cts +2 -2
- package/dist/browser.d.ts +2 -2
- package/dist/index.cjs +10 -236
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -135
- package/dist/index.d.ts +17 -135
- package/dist/index.js +12 -233
- package/dist/index.js.map +1 -1
- package/dist/{types-Bh_0d-te.d.cts → types-C1DH4kPA.d.cts} +1 -1
- package/dist/{types-BmgPRlnq.d.ts → types-DjeENMuV.d.ts} +1 -1
- package/dist/{types-Bk7NncQ_.d.cts → types-HJGbXJ37.d.cts} +1 -16
- package/dist/{types-Bk7NncQ_.d.ts → types-HJGbXJ37.d.ts} +1 -16
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ed25519Keypair } from '@mysten/sui/keypairs/ed25519';
|
|
2
2
|
import { SuiJsonRpcClient } from '@mysten/sui/jsonRpc';
|
|
3
|
-
import { T as TransactionLeg, k as TransactionRecord } from './types-
|
|
3
|
+
import { T as TransactionLeg, k as TransactionRecord } from './types-HJGbXJ37.cjs';
|
|
4
4
|
import { Transaction, TransactionObjectArgument } from '@mysten/sui/transactions';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ed25519Keypair } from '@mysten/sui/keypairs/ed25519';
|
|
2
2
|
import { SuiJsonRpcClient } from '@mysten/sui/jsonRpc';
|
|
3
|
-
import { T as TransactionLeg, k as TransactionRecord } from './types-
|
|
3
|
+
import { T as TransactionLeg, k as TransactionRecord } from './types-HJGbXJ37.js';
|
|
4
4
|
import { Transaction, TransactionObjectArgument } from '@mysten/sui/transactions';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -494,21 +494,6 @@ interface CompoundRewardsResult {
|
|
|
494
494
|
totalCompoundedUsdc: number;
|
|
495
495
|
totalGasCost: number;
|
|
496
496
|
}
|
|
497
|
-
interface StakeVSuiResult {
|
|
498
|
-
success: boolean;
|
|
499
|
-
tx: string;
|
|
500
|
-
amountSui: number;
|
|
501
|
-
vSuiReceived: number;
|
|
502
|
-
apy: number;
|
|
503
|
-
gasCost: number;
|
|
504
|
-
}
|
|
505
|
-
interface UnstakeVSuiResult {
|
|
506
|
-
success: boolean;
|
|
507
|
-
tx: string;
|
|
508
|
-
vSuiAmount: number;
|
|
509
|
-
suiReceived: number;
|
|
510
|
-
gasCost: number;
|
|
511
|
-
}
|
|
512
497
|
interface SwapResult {
|
|
513
498
|
success: boolean;
|
|
514
499
|
tx: string;
|
|
@@ -579,4 +564,4 @@ interface FinancialSummary {
|
|
|
579
564
|
fetchedAt: number;
|
|
580
565
|
}
|
|
581
566
|
|
|
582
|
-
export { type AssetRates as A, type BalanceResponse as B, type ClaimRewardsResult as C, type DepositInfo as D, type EarningsResult as E, type FundStatusResult as F, type GasReserve as G, type HealthFactorResult as H,
|
|
567
|
+
export { type AssetRates as A, type BalanceResponse as B, type ClaimRewardsResult as C, type DepositInfo as D, type EarningsResult as E, type FundStatusResult as F, type GasReserve as G, type HealthFactorResult as H, serializeCetusRoute as I, verifyCetusRouteCoinMatch as J, type MaxBorrowResult as M, OVERLAY_FEE_RATE as O, type PayOptions as P, type RatesResult as R, type SaveResult as S, type TransactionLeg as T, type WithdrawResult as W, type BorrowResult as a, type MaxWithdrawResult as b, type OverlayFeeConfig as c, type PayResult as d, type PendingReward as e, type PositionEntry as f, type PositionsResult as g, type RepayResult as h, type SendResult as i, type SwapRouteResult as j, type TransactionRecord as k, buildSwapTx as l, findSwapRoute as m, type T2000Options as n, type SwapResult as o, type SwapQuoteResult as p, type PaymentRequest as q, type CompoundRewardsResult as r, type FinancialSummary as s, type HFAlertLevel as t, type SerializedCetusRoute as u, type SerializedCetusRoutePath as v, type SerializedRouterDataV3 as w, addSwapToTx as x, deserializeCetusRoute as y, isCetusRouteFresh as z };
|
|
@@ -494,21 +494,6 @@ interface CompoundRewardsResult {
|
|
|
494
494
|
totalCompoundedUsdc: number;
|
|
495
495
|
totalGasCost: number;
|
|
496
496
|
}
|
|
497
|
-
interface StakeVSuiResult {
|
|
498
|
-
success: boolean;
|
|
499
|
-
tx: string;
|
|
500
|
-
amountSui: number;
|
|
501
|
-
vSuiReceived: number;
|
|
502
|
-
apy: number;
|
|
503
|
-
gasCost: number;
|
|
504
|
-
}
|
|
505
|
-
interface UnstakeVSuiResult {
|
|
506
|
-
success: boolean;
|
|
507
|
-
tx: string;
|
|
508
|
-
vSuiAmount: number;
|
|
509
|
-
suiReceived: number;
|
|
510
|
-
gasCost: number;
|
|
511
|
-
}
|
|
512
497
|
interface SwapResult {
|
|
513
498
|
success: boolean;
|
|
514
499
|
tx: string;
|
|
@@ -579,4 +564,4 @@ interface FinancialSummary {
|
|
|
579
564
|
fetchedAt: number;
|
|
580
565
|
}
|
|
581
566
|
|
|
582
|
-
export { type AssetRates as A, type BalanceResponse as B, type ClaimRewardsResult as C, type DepositInfo as D, type EarningsResult as E, type FundStatusResult as F, type GasReserve as G, type HealthFactorResult as H,
|
|
567
|
+
export { type AssetRates as A, type BalanceResponse as B, type ClaimRewardsResult as C, type DepositInfo as D, type EarningsResult as E, type FundStatusResult as F, type GasReserve as G, type HealthFactorResult as H, serializeCetusRoute as I, verifyCetusRouteCoinMatch as J, type MaxBorrowResult as M, OVERLAY_FEE_RATE as O, type PayOptions as P, type RatesResult as R, type SaveResult as S, type TransactionLeg as T, type WithdrawResult as W, type BorrowResult as a, type MaxWithdrawResult as b, type OverlayFeeConfig as c, type PayResult as d, type PendingReward as e, type PositionEntry as f, type PositionsResult as g, type RepayResult as h, type SendResult as i, type SwapRouteResult as j, type TransactionRecord as k, buildSwapTx as l, findSwapRoute as m, type T2000Options as n, type SwapResult as o, type SwapQuoteResult as p, type PaymentRequest as q, type CompoundRewardsResult as r, type FinancialSummary as s, type HFAlertLevel as t, type SerializedCetusRoute as u, type SerializedCetusRoutePath as v, type SerializedRouterDataV3 as w, addSwapToTx as x, deserializeCetusRoute as y, isCetusRouteFresh as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@t2000/sdk",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"description": "TypeScript SDK for Agentic Wallets 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",
|