@t2000/sdk 0.45.0 → 0.46.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/dist/adapters/index.d.cts +1 -1
- package/dist/adapters/index.d.ts +1 -1
- package/dist/browser.cjs +173 -93
- 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 +167 -94
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +90 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +84 -20
- package/dist/index.js.map +1 -1
- package/dist/{token-registry-B3EV3AdW.d.ts → token-registry-C1UN5EFV.d.ts} +72 -2
- package/dist/{token-registry-BEvCPkp9.d.cts → token-registry-mycv_b90.d.cts} +72 -2
- package/dist/{types-DxNs-mLT.d.cts → types-DfwfwsAN.d.cts} +8 -0
- package/dist/{types-DxNs-mLT.d.ts → types-DfwfwsAN.d.ts} +8 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { EventEmitter } from 'eventemitter3';
|
|
2
2
|
import { SuiJsonRpcClient } from '@mysten/sui/jsonRpc';
|
|
3
3
|
import { Ed25519Keypair } from '@mysten/sui/keypairs/ed25519';
|
|
4
|
-
import { T as T2000Error,
|
|
5
|
-
export { A as ALL_NAVI_ASSETS, a as AutoTopUpResult,
|
|
4
|
+
import { T as T2000Error, av as SafeguardEnforcer, H as TransactionSigner, Z as ZkLoginProof, w as SupportedAsset } from './token-registry-mycv_b90.cjs';
|
|
5
|
+
export { A as ALL_NAVI_ASSETS, a as AutoTopUpResult, aw as BORROW_FEE_BPS, B as BPS_DENOMINATOR, ax as CETUS_USDC_SUI_POOL, C as CLOCK_ID, b as COIN_REGISTRY, c as ClassifyBalanceChange, d as ClassifyResult, e as CoinMeta, D as DEFAULT_NETWORK, f as DEFAULT_SAFEGUARD_CONFIG, E as ETH_TYPE, F as FeeOperation, G as GAS_RESERVE_MIN, g as GasExecutionResult, h as GasRequestType, i as GasSponsorResponse, j as GasStatusResponse, I as IKA_TYPE, K as KNOWN_TARGETS, k as KeypairSigner, L as LABEL_PATTERNS, l as LOFI_TYPE, M as MANIFEST_TYPE, m as MIST_PER_SUI, N as NAVX_TYPE, ay as OPERATION_ASSETS, O as OUTBOUND_OPS, az as Operation, P as ProtocolFeeInfo, aA as SAVE_FEE_BPS, S as STABLE_ASSETS, n as SUI_DECIMALS, o as SUI_TYPE, p as SUPPORTED_ASSETS, q as SafeguardConfig, r as SafeguardError, s as SafeguardErrorDetails, t as SafeguardRule, u as SimulationResult, v as StableAsset, x as T2000ErrorCode, y as T2000ErrorData, z as TOKEN_MAP, J as TxMetadata, U as USDC_DECIMALS, Q as USDC_TYPE, R as USDE_TYPE, V as USDSUI_TYPE, W as USDT_TYPE, X as WAL_TYPE, Y as WBTC_TYPE, _ as ZkLoginSigner, $ as addCollectFeeToTx, aB as assertAllowedAsset, a0 as calculateFee, a1 as classifyAction, a2 as classifyLabel, a3 as classifyTransaction, a4 as executeAutoTopUp, a5 as executeWithGas, a6 as fallbackLabel, a7 as formatAssetAmount, a8 as formatSui, a9 as formatUsd, aa as getDecimals, ab as getDecimalsForCoinType, ac as getGasStatus, ad as getTier, aC as isAllowedAsset, ae as isSupported, af as isTier1, ag as isTier2, ah as mapMoveAbortCode, ai as mapWalletError, aj as mistToSui, ak as rawToStable, al as rawToUsdc, am as refineLendingLabel, an as resolveSymbol, ao as resolveTokenType, ap as shouldAutoTopUp, aD as simulateTransaction, aq as stableToRaw, ar as suiToMist, aE as throwIfSimulationFailed, as as truncateAddress, at as usdcToRaw, au as validateAddress } from './token-registry-mycv_b90.cjs';
|
|
6
6
|
import { L as LendingAdapter, a as LendingRates, P as PendingReward$1 } from './descriptors-DkKhitk_.cjs';
|
|
7
7
|
export { A as AdapterCapability, b as AdapterPositions, c as AdapterTxResult, H as HealthInfo, d as ProtocolDescriptor, e as allDescriptors, n as naviDescriptor } from './descriptors-DkKhitk_.cjs';
|
|
8
|
-
import { j as T2000Options, P as PayOptions, d as PayResult, k as StakeVSuiResult, U as UnstakeVSuiResult, l as SwapResult, m as SwapQuoteResult, i as SendResult, B as BalanceResponse, T as TransactionRecord, D as DepositInfo, n as PaymentRequest, S as SaveResult, W as WithdrawResult, c as MaxWithdrawResult, a as BorrowResult, h as RepayResult, M as MaxBorrowResult, H as HealthFactorResult, e as PendingReward, C as ClaimRewardsResult, o as CompoundRewardsResult, g as PositionsResult, R as RatesResult, E as EarningsResult, F as FundStatusResult, p as FinancialSummary } from './types-
|
|
9
|
-
export { A as AssetRates, G as GasMethod, b as GasReserve, q as HFAlertLevel, f as PositionEntry } from './types-
|
|
8
|
+
import { j as T2000Options, P as PayOptions, d as PayResult, k as StakeVSuiResult, U as UnstakeVSuiResult, l as SwapResult, m as SwapQuoteResult, i as SendResult, B as BalanceResponse, T as TransactionRecord, D as DepositInfo, n as PaymentRequest, S as SaveResult, W as WithdrawResult, c as MaxWithdrawResult, a as BorrowResult, h as RepayResult, M as MaxBorrowResult, H as HealthFactorResult, e as PendingReward, C as ClaimRewardsResult, o as CompoundRewardsResult, g as PositionsResult, R as RatesResult, E as EarningsResult, F as FundStatusResult, p as FinancialSummary } from './types-DfwfwsAN.cjs';
|
|
9
|
+
export { A as AssetRates, G as GasMethod, b as GasReserve, q as HFAlertLevel, f as PositionEntry } from './types-DfwfwsAN.cjs';
|
|
10
10
|
import { RouterDataV3 } from '@cetusprotocol/aggregator-sdk';
|
|
11
11
|
import { Transaction, TransactionObjectArgument } from '@mysten/sui/transactions';
|
|
12
12
|
export { NaviAdapter, ProtocolRegistry } from './adapters/index.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { EventEmitter } from 'eventemitter3';
|
|
2
2
|
import { SuiJsonRpcClient } from '@mysten/sui/jsonRpc';
|
|
3
3
|
import { Ed25519Keypair } from '@mysten/sui/keypairs/ed25519';
|
|
4
|
-
import { T as T2000Error,
|
|
5
|
-
export { A as ALL_NAVI_ASSETS, a as AutoTopUpResult,
|
|
4
|
+
import { T as T2000Error, av as SafeguardEnforcer, H as TransactionSigner, Z as ZkLoginProof, w as SupportedAsset } from './token-registry-C1UN5EFV.js';
|
|
5
|
+
export { A as ALL_NAVI_ASSETS, a as AutoTopUpResult, aw as BORROW_FEE_BPS, B as BPS_DENOMINATOR, ax as CETUS_USDC_SUI_POOL, C as CLOCK_ID, b as COIN_REGISTRY, c as ClassifyBalanceChange, d as ClassifyResult, e as CoinMeta, D as DEFAULT_NETWORK, f as DEFAULT_SAFEGUARD_CONFIG, E as ETH_TYPE, F as FeeOperation, G as GAS_RESERVE_MIN, g as GasExecutionResult, h as GasRequestType, i as GasSponsorResponse, j as GasStatusResponse, I as IKA_TYPE, K as KNOWN_TARGETS, k as KeypairSigner, L as LABEL_PATTERNS, l as LOFI_TYPE, M as MANIFEST_TYPE, m as MIST_PER_SUI, N as NAVX_TYPE, ay as OPERATION_ASSETS, O as OUTBOUND_OPS, az as Operation, P as ProtocolFeeInfo, aA as SAVE_FEE_BPS, S as STABLE_ASSETS, n as SUI_DECIMALS, o as SUI_TYPE, p as SUPPORTED_ASSETS, q as SafeguardConfig, r as SafeguardError, s as SafeguardErrorDetails, t as SafeguardRule, u as SimulationResult, v as StableAsset, x as T2000ErrorCode, y as T2000ErrorData, z as TOKEN_MAP, J as TxMetadata, U as USDC_DECIMALS, Q as USDC_TYPE, R as USDE_TYPE, V as USDSUI_TYPE, W as USDT_TYPE, X as WAL_TYPE, Y as WBTC_TYPE, _ as ZkLoginSigner, $ as addCollectFeeToTx, aB as assertAllowedAsset, a0 as calculateFee, a1 as classifyAction, a2 as classifyLabel, a3 as classifyTransaction, a4 as executeAutoTopUp, a5 as executeWithGas, a6 as fallbackLabel, a7 as formatAssetAmount, a8 as formatSui, a9 as formatUsd, aa as getDecimals, ab as getDecimalsForCoinType, ac as getGasStatus, ad as getTier, aC as isAllowedAsset, ae as isSupported, af as isTier1, ag as isTier2, ah as mapMoveAbortCode, ai as mapWalletError, aj as mistToSui, ak as rawToStable, al as rawToUsdc, am as refineLendingLabel, an as resolveSymbol, ao as resolveTokenType, ap as shouldAutoTopUp, aD as simulateTransaction, aq as stableToRaw, ar as suiToMist, aE as throwIfSimulationFailed, as as truncateAddress, at as usdcToRaw, au as validateAddress } from './token-registry-C1UN5EFV.js';
|
|
6
6
|
import { L as LendingAdapter, a as LendingRates, P as PendingReward$1 } from './descriptors-DkKhitk_.js';
|
|
7
7
|
export { A as AdapterCapability, b as AdapterPositions, c as AdapterTxResult, H as HealthInfo, d as ProtocolDescriptor, e as allDescriptors, n as naviDescriptor } from './descriptors-DkKhitk_.js';
|
|
8
|
-
import { j as T2000Options, P as PayOptions, d as PayResult, k as StakeVSuiResult, U as UnstakeVSuiResult, l as SwapResult, m as SwapQuoteResult, i as SendResult, B as BalanceResponse, T as TransactionRecord, D as DepositInfo, n as PaymentRequest, S as SaveResult, W as WithdrawResult, c as MaxWithdrawResult, a as BorrowResult, h as RepayResult, M as MaxBorrowResult, H as HealthFactorResult, e as PendingReward, C as ClaimRewardsResult, o as CompoundRewardsResult, g as PositionsResult, R as RatesResult, E as EarningsResult, F as FundStatusResult, p as FinancialSummary } from './types-
|
|
9
|
-
export { A as AssetRates, G as GasMethod, b as GasReserve, q as HFAlertLevel, f as PositionEntry } from './types-
|
|
8
|
+
import { j as T2000Options, P as PayOptions, d as PayResult, k as StakeVSuiResult, U as UnstakeVSuiResult, l as SwapResult, m as SwapQuoteResult, i as SendResult, B as BalanceResponse, T as TransactionRecord, D as DepositInfo, n as PaymentRequest, S as SaveResult, W as WithdrawResult, c as MaxWithdrawResult, a as BorrowResult, h as RepayResult, M as MaxBorrowResult, H as HealthFactorResult, e as PendingReward, C as ClaimRewardsResult, o as CompoundRewardsResult, g as PositionsResult, R as RatesResult, E as EarningsResult, F as FundStatusResult, p as FinancialSummary } from './types-DfwfwsAN.js';
|
|
9
|
+
export { A as AssetRates, G as GasMethod, b as GasReserve, q as HFAlertLevel, f as PositionEntry } from './types-DfwfwsAN.js';
|
|
10
10
|
import { RouterDataV3 } from '@cetusprotocol/aggregator-sdk';
|
|
11
11
|
import { Transaction, TransactionObjectArgument } from '@mysten/sui/transactions';
|
|
12
12
|
export { NaviAdapter, ProtocolRegistry } from './adapters/index.js';
|
package/dist/index.js
CHANGED
|
@@ -1224,13 +1224,82 @@ async function queryBalance(client, address) {
|
|
|
1224
1224
|
|
|
1225
1225
|
// src/wallet/history.ts
|
|
1226
1226
|
init_token_registry();
|
|
1227
|
+
|
|
1228
|
+
// src/wallet/classify.ts
|
|
1229
|
+
init_token_registry();
|
|
1227
1230
|
var KNOWN_TARGETS = [
|
|
1228
1231
|
[/::suilend|::obligation/, "lending"],
|
|
1229
|
-
[/::navi|::incentive_v\d+|::oracle_pro/, "lending"],
|
|
1232
|
+
[/::navi|::lending_core|::incentive_v\d+|::oracle_pro/, "lending"],
|
|
1230
1233
|
[/::cetus|::pool/, "swap"],
|
|
1231
1234
|
[/::deepbook/, "swap"],
|
|
1232
1235
|
[/::transfer::public_transfer/, "send"]
|
|
1233
1236
|
];
|
|
1237
|
+
var LABEL_PATTERNS = [
|
|
1238
|
+
[/::pay(?:ment_kit|_kit)?::|::create_payment_link|::pay_link/, "payment_link"],
|
|
1239
|
+
[/::create_invoice|::invoice::/, "invoice"],
|
|
1240
|
+
[/::deposit|::supply|::mint_ctokens/, "deposit"],
|
|
1241
|
+
[/::withdraw|::redeem|::redeem_ctokens/, "withdraw"],
|
|
1242
|
+
[/::borrow/, "borrow"],
|
|
1243
|
+
[/::repay/, "repay"],
|
|
1244
|
+
[/::claim_reward|::claim::|::claim_incentive/, "claim"],
|
|
1245
|
+
[/::stake/, "stake"],
|
|
1246
|
+
[/::unstake|::burn::/, "unstake"],
|
|
1247
|
+
[/::liquidate/, "liquidate"]
|
|
1248
|
+
];
|
|
1249
|
+
function resolveOwner(owner) {
|
|
1250
|
+
if (typeof owner === "object" && owner.AddressOwner) return owner.AddressOwner;
|
|
1251
|
+
if (typeof owner === "string") return owner;
|
|
1252
|
+
return null;
|
|
1253
|
+
}
|
|
1254
|
+
function classifyAction(targets, commandTypes) {
|
|
1255
|
+
for (const target of targets) {
|
|
1256
|
+
for (const [pattern, label] of KNOWN_TARGETS) {
|
|
1257
|
+
if (pattern.test(target)) return label;
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1260
|
+
if (commandTypes.includes("TransferObjects") && !commandTypes.includes("MoveCall")) return "send";
|
|
1261
|
+
return "transaction";
|
|
1262
|
+
}
|
|
1263
|
+
function fallbackLabel(targets) {
|
|
1264
|
+
if (!targets.length) return "on-chain";
|
|
1265
|
+
const first = targets[0];
|
|
1266
|
+
const parts = first.split("::");
|
|
1267
|
+
if (parts.length >= 2 && parts[1]) return parts[1].toLowerCase();
|
|
1268
|
+
return "on-chain";
|
|
1269
|
+
}
|
|
1270
|
+
function classifyLabel(targets, commandTypes) {
|
|
1271
|
+
for (const target of targets) {
|
|
1272
|
+
for (const [pattern, label] of LABEL_PATTERNS) {
|
|
1273
|
+
if (pattern.test(target)) return label;
|
|
1274
|
+
}
|
|
1275
|
+
}
|
|
1276
|
+
if (commandTypes.includes("TransferObjects") && !commandTypes.includes("MoveCall")) return "send";
|
|
1277
|
+
return fallbackLabel(targets);
|
|
1278
|
+
}
|
|
1279
|
+
function refineLendingLabel(currentAction, currentLabel, moveCallTargets, changes, address) {
|
|
1280
|
+
if (currentAction !== "lending") return currentLabel;
|
|
1281
|
+
const labelMatchedSpecific = LABEL_PATTERNS.some(
|
|
1282
|
+
([p]) => moveCallTargets.some((t) => p.test(t))
|
|
1283
|
+
);
|
|
1284
|
+
if (labelMatchedSpecific) return currentLabel;
|
|
1285
|
+
const userNonSuiOutflow = changes.find(
|
|
1286
|
+
(c) => resolveOwner(c.owner) === address && c.coinType !== SUI_TYPE && BigInt(c.amount) < 0n
|
|
1287
|
+
);
|
|
1288
|
+
if (userNonSuiOutflow) return "deposit";
|
|
1289
|
+
const userNonSuiInflow = changes.find(
|
|
1290
|
+
(c) => resolveOwner(c.owner) === address && c.coinType !== SUI_TYPE && BigInt(c.amount) > 0n
|
|
1291
|
+
);
|
|
1292
|
+
if (userNonSuiInflow) return "withdraw";
|
|
1293
|
+
return currentLabel;
|
|
1294
|
+
}
|
|
1295
|
+
function classifyTransaction(moveCallTargets, commandTypes, balanceChanges, address) {
|
|
1296
|
+
const action = classifyAction(moveCallTargets, commandTypes);
|
|
1297
|
+
const baseLabel = classifyLabel(moveCallTargets, commandTypes);
|
|
1298
|
+
const label = refineLendingLabel(action, baseLabel, moveCallTargets, balanceChanges, address);
|
|
1299
|
+
return { action, label };
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1302
|
+
// src/wallet/history.ts
|
|
1234
1303
|
async function queryHistory(client, address, limit = 20) {
|
|
1235
1304
|
const txns = await client.queryTransactionBlocks({
|
|
1236
1305
|
filter: { FromAddress: address },
|
|
@@ -1255,11 +1324,18 @@ function parseTxRecord(tx, address) {
|
|
|
1255
1324
|
const gasUsed = tx.effects?.gasUsed;
|
|
1256
1325
|
const gasCost = gasUsed ? (Number(gasUsed.computationCost) + Number(gasUsed.storageCost) - Number(gasUsed.storageRebate)) / 1e9 : void 0;
|
|
1257
1326
|
const { moveCallTargets, commandTypes } = extractCommands(tx.transaction);
|
|
1258
|
-
const
|
|
1259
|
-
const
|
|
1327
|
+
const balanceChanges = tx.balanceChanges ?? [];
|
|
1328
|
+
const { amount, asset, recipient } = extractTransferDetails(balanceChanges, address);
|
|
1329
|
+
const { action, label } = classifyTransaction(
|
|
1330
|
+
moveCallTargets,
|
|
1331
|
+
commandTypes,
|
|
1332
|
+
balanceChanges,
|
|
1333
|
+
address
|
|
1334
|
+
);
|
|
1260
1335
|
return {
|
|
1261
1336
|
digest: tx.digest,
|
|
1262
1337
|
action,
|
|
1338
|
+
label,
|
|
1263
1339
|
amount,
|
|
1264
1340
|
asset,
|
|
1265
1341
|
recipient,
|
|
@@ -1267,15 +1343,15 @@ function parseTxRecord(tx, address) {
|
|
|
1267
1343
|
gasCost
|
|
1268
1344
|
};
|
|
1269
1345
|
}
|
|
1270
|
-
function
|
|
1346
|
+
function resolveOwner2(owner) {
|
|
1271
1347
|
if (typeof owner === "object" && owner.AddressOwner) return owner.AddressOwner;
|
|
1272
1348
|
if (typeof owner === "string") return owner;
|
|
1273
1349
|
return null;
|
|
1274
1350
|
}
|
|
1275
1351
|
function extractTransferDetails(changes, sender) {
|
|
1276
1352
|
if (!changes || changes.length === 0) return {};
|
|
1277
|
-
const outflows = changes.filter((c) =>
|
|
1278
|
-
const inflows = changes.filter((c) =>
|
|
1353
|
+
const outflows = changes.filter((c) => resolveOwner2(c.owner) === sender && BigInt(c.amount) < 0n);
|
|
1354
|
+
const inflows = changes.filter((c) => resolveOwner2(c.owner) !== sender && BigInt(c.amount) > 0n);
|
|
1279
1355
|
const primaryOutflow = outflows.filter((c) => c.coinType !== SUI_TYPE).sort((a, b2) => Number(BigInt(a.amount) - BigInt(b2.amount)))[0] ?? outflows[0];
|
|
1280
1356
|
if (!primaryOutflow) return {};
|
|
1281
1357
|
const coinType = primaryOutflow.coinType;
|
|
@@ -1283,7 +1359,7 @@ function extractTransferDetails(changes, sender) {
|
|
|
1283
1359
|
const amount = Math.abs(Number(BigInt(primaryOutflow.amount))) / 10 ** decimals;
|
|
1284
1360
|
const asset = resolveSymbol(coinType);
|
|
1285
1361
|
const recipientChange = inflows.find((c) => c.coinType === coinType);
|
|
1286
|
-
const recipient = recipientChange ?
|
|
1362
|
+
const recipient = recipientChange ? resolveOwner2(recipientChange.owner) ?? void 0 : void 0;
|
|
1287
1363
|
return { amount, asset, recipient };
|
|
1288
1364
|
}
|
|
1289
1365
|
function extractCommands(txBlock) {
|
|
@@ -1309,18 +1385,6 @@ function extractCommands(txBlock) {
|
|
|
1309
1385
|
}
|
|
1310
1386
|
return result;
|
|
1311
1387
|
}
|
|
1312
|
-
function classifyAction(targets, commandTypes) {
|
|
1313
|
-
for (const target of targets) {
|
|
1314
|
-
for (const [pattern, label] of KNOWN_TARGETS) {
|
|
1315
|
-
if (pattern.test(target)) return label;
|
|
1316
|
-
}
|
|
1317
|
-
}
|
|
1318
|
-
const hasTransfer = commandTypes.includes("TransferObjects");
|
|
1319
|
-
const hasMoveCall = commandTypes.includes("MoveCall");
|
|
1320
|
-
if (hasTransfer && !hasMoveCall) return "send";
|
|
1321
|
-
if (hasMoveCall) return "transaction";
|
|
1322
|
-
return "transaction";
|
|
1323
|
-
}
|
|
1324
1388
|
|
|
1325
1389
|
// src/t2000.ts
|
|
1326
1390
|
init_token_registry();
|
|
@@ -7592,6 +7656,6 @@ init_volo();
|
|
|
7592
7656
|
(*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
|
|
7593
7657
|
*/
|
|
7594
7658
|
|
|
7595
|
-
export { ALL_NAVI_ASSETS, BORROW_FEE_BPS, BPS_DENOMINATOR, CETUS_USDC_SUI_POOL, CLOCK_ID, COIN_REGISTRY, ContactManager, DEFAULT_NETWORK, DEFAULT_SAFEGUARD_CONFIG, ETH_TYPE, GAS_RESERVE_MIN, HF_CRITICAL_THRESHOLD, HF_WARN_THRESHOLD, IKA_TYPE, KeypairSigner, LOFI_TYPE, MANIFEST_TYPE, MIST_PER_SUI, NAVX_TYPE, NaviAdapter, OPERATION_ASSETS, OUTBOUND_OPS, OVERLAY_FEE_RATE, ProtocolRegistry, SAVE_FEE_BPS, STABLE_ASSETS, SUI_DECIMALS, SUI_TYPE, SUPPORTED_ASSETS, SafeguardEnforcer, SafeguardError, T2000, T2000Error, TOKEN_MAP, USDC_DECIMALS, USDC_TYPE, USDE_TYPE, USDSUI_TYPE, USDT_TYPE, VOLO_METADATA, VOLO_PKG, VOLO_POOL, VSUI_TYPE, WAL_TYPE, WBTC_TYPE, ZkLoginSigner, addCollectFeeToTx, allDescriptors, assertAllowedAsset, buildStakeVSuiTx, buildSwapTx, buildUnstakeVSuiTx, calculateFee, executeAutoTopUp, executeWithGas, exportPrivateKey, findSwapRoute, formatAssetAmount, formatSui, formatUsd, generateKeypair, getAddress, getDecimals, getDecimalsForCoinType, getFinancialSummary, getGasStatus, getPendingRewards, getRates, getSwapQuote, getTier, getVoloStats, isAllowedAsset, isSupported, isTier1, isTier2, keypairFromPrivateKey, loadKey, mapMoveAbortCode, mapWalletError, mistToSui, naviDescriptor, rawToStable, rawToUsdc, resolveSymbol, resolveTokenType, saveKey, shouldAutoTopUp, simulateTransaction, solveHashcash, stableToRaw, suiToMist, throwIfSimulationFailed, truncateAddress, usdcToRaw, validateAddress, walletExists };
|
|
7659
|
+
export { ALL_NAVI_ASSETS, BORROW_FEE_BPS, BPS_DENOMINATOR, CETUS_USDC_SUI_POOL, CLOCK_ID, COIN_REGISTRY, ContactManager, DEFAULT_NETWORK, DEFAULT_SAFEGUARD_CONFIG, ETH_TYPE, GAS_RESERVE_MIN, HF_CRITICAL_THRESHOLD, HF_WARN_THRESHOLD, IKA_TYPE, KNOWN_TARGETS, KeypairSigner, LABEL_PATTERNS, LOFI_TYPE, MANIFEST_TYPE, MIST_PER_SUI, NAVX_TYPE, NaviAdapter, OPERATION_ASSETS, OUTBOUND_OPS, OVERLAY_FEE_RATE, ProtocolRegistry, SAVE_FEE_BPS, STABLE_ASSETS, SUI_DECIMALS, SUI_TYPE, SUPPORTED_ASSETS, SafeguardEnforcer, SafeguardError, T2000, T2000Error, TOKEN_MAP, USDC_DECIMALS, USDC_TYPE, USDE_TYPE, USDSUI_TYPE, USDT_TYPE, VOLO_METADATA, VOLO_PKG, VOLO_POOL, VSUI_TYPE, WAL_TYPE, WBTC_TYPE, ZkLoginSigner, addCollectFeeToTx, allDescriptors, assertAllowedAsset, buildStakeVSuiTx, buildSwapTx, buildUnstakeVSuiTx, calculateFee, classifyAction, classifyLabel, classifyTransaction, executeAutoTopUp, executeWithGas, exportPrivateKey, fallbackLabel, findSwapRoute, formatAssetAmount, formatSui, formatUsd, generateKeypair, getAddress, getDecimals, getDecimalsForCoinType, getFinancialSummary, getGasStatus, getPendingRewards, getRates, getSwapQuote, getTier, getVoloStats, isAllowedAsset, isSupported, isTier1, isTier2, keypairFromPrivateKey, loadKey, mapMoveAbortCode, mapWalletError, mistToSui, naviDescriptor, rawToStable, rawToUsdc, refineLendingLabel, resolveSymbol, resolveTokenType, saveKey, shouldAutoTopUp, simulateTransaction, solveHashcash, stableToRaw, suiToMist, throwIfSimulationFailed, truncateAddress, usdcToRaw, validateAddress, walletExists };
|
|
7596
7660
|
//# sourceMappingURL=index.js.map
|
|
7597
7661
|
//# sourceMappingURL=index.js.map
|