@t2000/sdk 9.1.0 → 9.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/dist/browser.cjs +106 -7
- 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 +106 -8
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +108 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +108 -8
- package/dist/index.js.map +1 -1
- package/dist/{send-CUUOLK_H.d.cts → send-DEK6aOGe.d.cts} +14 -1
- package/dist/{send-CUUOLK_H.d.ts → send-DEK6aOGe.d.ts} +14 -1
- package/package.json +3 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { EventEmitter } from 'eventemitter3';
|
|
2
2
|
import { SuiGrpcClient } from '@mysten/sui/grpc';
|
|
3
3
|
import { Ed25519Keypair } from '@mysten/sui/keypairs/ed25519';
|
|
4
|
-
import { T as T2000Error,
|
|
5
|
-
export {
|
|
4
|
+
import { T as T2000Error, aE as T2000Options, Q as TransactionSigner, l as PayOptions, m as PayResult, aF as SwapResult, aG as SwapQuoteResult, w as SupportedAsset, r as SendResult, B as BalanceResponse, J as TransactionRecord, e as DepositInfo, aH as PaymentRequest, $ as ZkLoginProof, aI as SuiCoreClient, j as OverlayFeeConfig, aJ as SponsoredCoinMergeCache, x as SwapRouteResult, aK as SendableAsset } from './send-DEK6aOGe.cjs';
|
|
5
|
+
export { aL as CETUS_USDC_SUI_POOL, C as CLOCK_ID, a as COIN_REGISTRY, b as ClassifyBalanceChange, c as ClassifyResult, d as CoinMeta, aM as CoinPage, aN as DEFAULT_GRPC_URL, D as DEFAULT_NETWORK, E as ETH_TYPE, f as ExtractedTransfer, aO as GASLESS_MIN_STABLE_AMOUNT, aP as GASLESS_STABLE_TYPES, G as GAS_RESERVE_MIN, I as IKA_TYPE, K as KNOWN_TARGETS, g as KeypairSigner, L as LABEL_PATTERNS, h as LOFI_TYPE, M as MANIFEST_TYPE, i as MIST_PER_SUI, N as NAVX_TYPE, aQ as OPERATION_ASSETS, O as OVERLAY_FEE_RATE, aR as Operation, P as PREFLIGHT_MAX_AMOUNT, k as PREFLIGHT_OK, n as PreflightResult, aS as SENDABLE_ASSETS, S as STABLE_ASSETS, o as SUI_DECIMALS, p as SUI_TYPE, q as SUPPORTED_ASSETS, aT as SelectAndSplitResult, aU as SerializedCetusRoute, aV as SerializedCetusRoutePath, aW as SerializedRouterDataV3, s as SimulationResult, t as StableAsset, u as SuiHolding, v as SuiRpcTxBlock, y as T2000ErrorCode, z as T2000ErrorData, A as T2000_OVERLAY_FEE_WALLET, F as TOKEN_MAP, H as TransactionLeg, R as TxDirection, U as USDC_DECIMALS, V as USDC_TYPE, W as USDE_TYPE, X as USDSUI_TYPE, Y as USDT_TYPE, Z as WAL_TYPE, _ as WBTC_TYPE, a0 as ZkLoginSigner, aX as addSendToTx, aY as addSwapToTx, aZ as assertAllowedAsset, a1 as buildSendTx, a2 as buildSwapTx, a3 as checkPositiveAmount, a4 as checkSuiAddress, a5 as classifyAction, a6 as classifyLabel, a7 as classifyTransaction, a_ as deserializeCetusRoute, a8 as executeTx, a9 as extractAllUserLegs, aa as extractTransferDetails, ab as extractTxCommands, ac as extractTxSender, ad as fallbackLabel, a$ as fetchAllCoins, ae as findSwapRoute, af as formatAssetAmount, ag as formatSui, ah as formatUsd, b0 as getCoinMeta, ai as getDecimals, aj as getDecimalsForCoinType, b1 as getSuiClient, b2 as getSuiGrpcClient, b3 as isAllowedAsset, b4 as isCetusRouteFresh, b5 as isInRegistry, ak as mapMoveAbortCode, al as mapWalletError, am as mistToSui, b6 as normalizeAsset, b7 as normalizeCoinType, an as parseMppSuiChallenge, ao as parseSuiRpcTx, ap as payWithMpp, aq as preflightFail, ar as preflightPay, as as preflightSend, at as preflightSwap, b8 as queryHistory, b9 as queryTransaction, au as rawToStable, av as rawToUsdc, aw as refineLendingLabel, ax as resolveSymbol, ay as resolveTokenType, ba as selectAndSplitCoin, bb as selectSuiCoin, bc as serializeCetusRoute, bd as simulateTransaction, az as stableToRaw, aA as suiToMist, be as throwIfSimulationFailed, aB as truncateAddress, aC as usdcToRaw, aD as validateAddress, bf as verifyCetusRouteCoinMatch } from './send-DEK6aOGe.cjs';
|
|
6
6
|
import { TransactionObjectArgument, Transaction } from '@mysten/sui/transactions';
|
|
7
7
|
import { SuinsClient } from '@mysten/suins';
|
|
8
8
|
import '@mysten/sui/client';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { EventEmitter } from 'eventemitter3';
|
|
2
2
|
import { SuiGrpcClient } from '@mysten/sui/grpc';
|
|
3
3
|
import { Ed25519Keypair } from '@mysten/sui/keypairs/ed25519';
|
|
4
|
-
import { T as T2000Error,
|
|
5
|
-
export {
|
|
4
|
+
import { T as T2000Error, aE as T2000Options, Q as TransactionSigner, l as PayOptions, m as PayResult, aF as SwapResult, aG as SwapQuoteResult, w as SupportedAsset, r as SendResult, B as BalanceResponse, J as TransactionRecord, e as DepositInfo, aH as PaymentRequest, $ as ZkLoginProof, aI as SuiCoreClient, j as OverlayFeeConfig, aJ as SponsoredCoinMergeCache, x as SwapRouteResult, aK as SendableAsset } from './send-DEK6aOGe.js';
|
|
5
|
+
export { aL as CETUS_USDC_SUI_POOL, C as CLOCK_ID, a as COIN_REGISTRY, b as ClassifyBalanceChange, c as ClassifyResult, d as CoinMeta, aM as CoinPage, aN as DEFAULT_GRPC_URL, D as DEFAULT_NETWORK, E as ETH_TYPE, f as ExtractedTransfer, aO as GASLESS_MIN_STABLE_AMOUNT, aP as GASLESS_STABLE_TYPES, G as GAS_RESERVE_MIN, I as IKA_TYPE, K as KNOWN_TARGETS, g as KeypairSigner, L as LABEL_PATTERNS, h as LOFI_TYPE, M as MANIFEST_TYPE, i as MIST_PER_SUI, N as NAVX_TYPE, aQ as OPERATION_ASSETS, O as OVERLAY_FEE_RATE, aR as Operation, P as PREFLIGHT_MAX_AMOUNT, k as PREFLIGHT_OK, n as PreflightResult, aS as SENDABLE_ASSETS, S as STABLE_ASSETS, o as SUI_DECIMALS, p as SUI_TYPE, q as SUPPORTED_ASSETS, aT as SelectAndSplitResult, aU as SerializedCetusRoute, aV as SerializedCetusRoutePath, aW as SerializedRouterDataV3, s as SimulationResult, t as StableAsset, u as SuiHolding, v as SuiRpcTxBlock, y as T2000ErrorCode, z as T2000ErrorData, A as T2000_OVERLAY_FEE_WALLET, F as TOKEN_MAP, H as TransactionLeg, R as TxDirection, U as USDC_DECIMALS, V as USDC_TYPE, W as USDE_TYPE, X as USDSUI_TYPE, Y as USDT_TYPE, Z as WAL_TYPE, _ as WBTC_TYPE, a0 as ZkLoginSigner, aX as addSendToTx, aY as addSwapToTx, aZ as assertAllowedAsset, a1 as buildSendTx, a2 as buildSwapTx, a3 as checkPositiveAmount, a4 as checkSuiAddress, a5 as classifyAction, a6 as classifyLabel, a7 as classifyTransaction, a_ as deserializeCetusRoute, a8 as executeTx, a9 as extractAllUserLegs, aa as extractTransferDetails, ab as extractTxCommands, ac as extractTxSender, ad as fallbackLabel, a$ as fetchAllCoins, ae as findSwapRoute, af as formatAssetAmount, ag as formatSui, ah as formatUsd, b0 as getCoinMeta, ai as getDecimals, aj as getDecimalsForCoinType, b1 as getSuiClient, b2 as getSuiGrpcClient, b3 as isAllowedAsset, b4 as isCetusRouteFresh, b5 as isInRegistry, ak as mapMoveAbortCode, al as mapWalletError, am as mistToSui, b6 as normalizeAsset, b7 as normalizeCoinType, an as parseMppSuiChallenge, ao as parseSuiRpcTx, ap as payWithMpp, aq as preflightFail, ar as preflightPay, as as preflightSend, at as preflightSwap, b8 as queryHistory, b9 as queryTransaction, au as rawToStable, av as rawToUsdc, aw as refineLendingLabel, ax as resolveSymbol, ay as resolveTokenType, ba as selectAndSplitCoin, bb as selectSuiCoin, bc as serializeCetusRoute, bd as simulateTransaction, az as stableToRaw, aA as suiToMist, be as throwIfSimulationFailed, aB as truncateAddress, aC as usdcToRaw, aD as validateAddress, bf as verifyCetusRouteCoinMatch } from './send-DEK6aOGe.js';
|
|
6
6
|
import { TransactionObjectArgument, Transaction } from '@mysten/sui/transactions';
|
|
7
7
|
import { SuinsClient } from '@mysten/suins';
|
|
8
8
|
import '@mysten/sui/client';
|
package/dist/index.js
CHANGED
|
@@ -1072,7 +1072,11 @@ async function executeTx(client, signer, buildTx, options = {}) {
|
|
|
1072
1072
|
include: { effects: true }
|
|
1073
1073
|
});
|
|
1074
1074
|
const txn = result.$kind === "Transaction" ? result.Transaction : result.FailedTransaction;
|
|
1075
|
-
|
|
1075
|
+
try {
|
|
1076
|
+
await client.core.waitForTransaction({ digest: txn.digest });
|
|
1077
|
+
} catch (err) {
|
|
1078
|
+
if (!txn.effects) throw err;
|
|
1079
|
+
}
|
|
1076
1080
|
const effects = txn.effects ?? void 0;
|
|
1077
1081
|
const gasUsed = effects?.gasUsed;
|
|
1078
1082
|
let gasCostSui = 0;
|
|
@@ -1085,6 +1089,15 @@ async function executeTx(client, signer, buildTx, options = {}) {
|
|
|
1085
1089
|
|
|
1086
1090
|
// src/wallet/pay.ts
|
|
1087
1091
|
init_errors();
|
|
1092
|
+
|
|
1093
|
+
// src/mpp-cost.ts
|
|
1094
|
+
function parseChallengeAmount(challenge) {
|
|
1095
|
+
const raw = challenge?.request?.amount;
|
|
1096
|
+
const n = typeof raw === "string" ? Number(raw) : typeof raw === "number" ? raw : Number.NaN;
|
|
1097
|
+
return Number.isFinite(n) ? n : void 0;
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
// src/wallet/pay.ts
|
|
1088
1101
|
init_preflight();
|
|
1089
1102
|
function preflightPay(input) {
|
|
1090
1103
|
if (typeof input.url !== "string" || input.url.trim() === "") {
|
|
@@ -1124,13 +1137,35 @@ async function payWithMpp(args) {
|
|
|
1124
1137
|
return finalize(probe, { paid: false });
|
|
1125
1138
|
}
|
|
1126
1139
|
const requirements = await pickSuiExactRequirements(probe, client.network);
|
|
1127
|
-
if (
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1140
|
+
if (requirements) {
|
|
1141
|
+
return payViaX402({ signer, client, options, reqInit, requirements });
|
|
1142
|
+
}
|
|
1143
|
+
const headerChallenge = await parseMppSuiChallenge(probe);
|
|
1144
|
+
if (headerChallenge) {
|
|
1145
|
+
return payViaMppHeader({ signer, client, options });
|
|
1146
|
+
}
|
|
1147
|
+
throw new T2000Error(
|
|
1148
|
+
"FACILITATOR_REJECTION",
|
|
1149
|
+
`Endpoint returned 402 without an x402 'exact' / sui:${client.network} requirement in the body or an MPP 'sui' challenge in WWW-Authenticate. Nothing this SDK can pay.`
|
|
1150
|
+
);
|
|
1151
|
+
}
|
|
1152
|
+
async function parseMppSuiChallenge(response) {
|
|
1153
|
+
try {
|
|
1154
|
+
const { Challenge } = await import('mppx');
|
|
1155
|
+
const challenges = Challenge.fromResponseList(response);
|
|
1156
|
+
const suiChallenge = challenges.find((c) => c.method === "sui" && c.intent === "charge");
|
|
1157
|
+
if (!suiChallenge) return void 0;
|
|
1158
|
+
const req = suiChallenge.request;
|
|
1159
|
+
if (typeof req?.amount !== "string" || typeof req?.recipient !== "string") return void 0;
|
|
1160
|
+
return {
|
|
1161
|
+
amount: req.amount,
|
|
1162
|
+
currency: typeof req.currency === "string" ? req.currency : "",
|
|
1163
|
+
recipient: req.recipient,
|
|
1164
|
+
description: suiChallenge.description
|
|
1165
|
+
};
|
|
1166
|
+
} catch {
|
|
1167
|
+
return void 0;
|
|
1132
1168
|
}
|
|
1133
|
-
return payViaX402({ signer, client, options, reqInit, requirements });
|
|
1134
1169
|
}
|
|
1135
1170
|
async function pickSuiExactRequirements(response, network) {
|
|
1136
1171
|
try {
|
|
@@ -1145,6 +1180,7 @@ async function payViaX402(args) {
|
|
|
1145
1180
|
const { signer, client, options, reqInit, requirements } = args;
|
|
1146
1181
|
const { buildX402SignedPayment, X402_PAYMENT_HEADER, X402_PAYMENT_RESPONSE_HEADER } = await import('@suimpp/mpp/x402');
|
|
1147
1182
|
const amountRaw = BigInt(requirements.maxAmountRequired);
|
|
1183
|
+
assertWithinMaxPrice(atomicToHuman(amountRaw, await assetDecimals(requirements.asset)), options.maxPrice);
|
|
1148
1184
|
const migrationGasSui = await ensureAddressBalanceCovers({
|
|
1149
1185
|
signer,
|
|
1150
1186
|
client,
|
|
@@ -1180,6 +1216,70 @@ async function payViaX402(args) {
|
|
|
1180
1216
|
receipt: digest ? { reference: digest, timestamp: (/* @__PURE__ */ new Date()).toISOString() } : result.receipt
|
|
1181
1217
|
};
|
|
1182
1218
|
}
|
|
1219
|
+
async function payViaMppHeader(args) {
|
|
1220
|
+
const { signer, client, options } = args;
|
|
1221
|
+
const { Mppx } = await import('mppx/client');
|
|
1222
|
+
const { sui, USDC, USDC_TESTNET } = await import('@suimpp/mpp/client');
|
|
1223
|
+
const signerAddress = signer.getAddress();
|
|
1224
|
+
const network = client.network === "testnet" ? "testnet" : "mainnet";
|
|
1225
|
+
const grpcClient = await makeGrpcBuildClient(client);
|
|
1226
|
+
let paymentDigest;
|
|
1227
|
+
let gasCostSui = 0;
|
|
1228
|
+
let chargedAmount;
|
|
1229
|
+
const mppx = Mppx.create({
|
|
1230
|
+
polyfill: false,
|
|
1231
|
+
onChallenge: async (challenge) => {
|
|
1232
|
+
const parsed = parseChallengeAmount(challenge);
|
|
1233
|
+
if (parsed !== void 0) {
|
|
1234
|
+
chargedAmount = parsed;
|
|
1235
|
+
assertWithinMaxPrice(parsed, options.maxPrice);
|
|
1236
|
+
}
|
|
1237
|
+
return void 0;
|
|
1238
|
+
},
|
|
1239
|
+
methods: [
|
|
1240
|
+
sui({
|
|
1241
|
+
client,
|
|
1242
|
+
currency: network === "testnet" ? USDC_TESTNET : USDC,
|
|
1243
|
+
signer: {
|
|
1244
|
+
toSuiAddress: () => signerAddress,
|
|
1245
|
+
signPersonalMessage: (bytes) => signer.signPersonalMessage(bytes)
|
|
1246
|
+
},
|
|
1247
|
+
execute: async (tx) => {
|
|
1248
|
+
const result2 = await executeTx(client, signer, () => tx, { buildClient: grpcClient });
|
|
1249
|
+
paymentDigest = result2.digest;
|
|
1250
|
+
gasCostSui = result2.gasCostSui;
|
|
1251
|
+
return { digest: result2.digest };
|
|
1252
|
+
}
|
|
1253
|
+
})
|
|
1254
|
+
]
|
|
1255
|
+
});
|
|
1256
|
+
const method = (options.method ?? "GET").toUpperCase();
|
|
1257
|
+
const canHaveBody = method !== "GET" && method !== "HEAD";
|
|
1258
|
+
const response = await mppx.fetch(options.url, {
|
|
1259
|
+
method,
|
|
1260
|
+
headers: options.headers,
|
|
1261
|
+
body: canHaveBody ? options.body : void 0
|
|
1262
|
+
});
|
|
1263
|
+
const paid = !!paymentDigest;
|
|
1264
|
+
const result = await finalize(response, { paid });
|
|
1265
|
+
if (!paid) return { ...result, dialect: "legacy" };
|
|
1266
|
+
return {
|
|
1267
|
+
...result,
|
|
1268
|
+
dialect: "legacy",
|
|
1269
|
+
cost: chargedAmount ?? options.maxPrice ?? void 0,
|
|
1270
|
+
gasCostSui,
|
|
1271
|
+
receipt: paymentDigest ? { reference: paymentDigest, timestamp: (/* @__PURE__ */ new Date()).toISOString() } : void 0
|
|
1272
|
+
};
|
|
1273
|
+
}
|
|
1274
|
+
function assertWithinMaxPrice(price, maxPrice) {
|
|
1275
|
+
if (maxPrice !== void 0 && price > maxPrice) {
|
|
1276
|
+
throw new T2000Error(
|
|
1277
|
+
"PRICE_EXCEEDS_LIMIT",
|
|
1278
|
+
`Service price $${price} exceeds maxPrice ceiling $${maxPrice}`,
|
|
1279
|
+
{ price, maxPrice }
|
|
1280
|
+
);
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1183
1283
|
async function ensureAddressBalanceCovers(args) {
|
|
1184
1284
|
const { signer, client, asset, amountRaw } = args;
|
|
1185
1285
|
const owner = signer.getAddress();
|
|
@@ -3401,6 +3501,6 @@ function displayHandle(label, parentName = AUDRIC_PARENT_NAME) {
|
|
|
3401
3501
|
// src/index.ts
|
|
3402
3502
|
init_preflight();
|
|
3403
3503
|
|
|
3404
|
-
export { AGENT_ID_PARENT, AGENT_ID_PARENT_NAME, AGENT_ID_PARENT_NFT_ID, AUDRIC_PARENT, AUDRIC_PARENT_NAME, AUDRIC_PARENT_NFT_ID, CETUS_USDC_SUI_POOL, CLOCK_ID, COIN_REGISTRY, DEFAULT_API_BASE, DEFAULT_GRPC_URL, DEFAULT_NETWORK, ETH_TYPE, GASLESS_MIN_STABLE_AMOUNT, GASLESS_STABLE_TYPES, GAS_RESERVE_MIN, IKA_TYPE, InvalidAddressError, KNOWN_TARGETS, KeypairSigner, LABEL_PATTERNS, LOFI_TYPE, LimitEnforcer, LimitExceededError, MANIFEST_TYPE, MIST_PER_SUI, NAVX_TYPE, OPERATION_ASSETS, OVERLAY_FEE_RATE, PREFLIGHT_MAX_AMOUNT, PREFLIGHT_OK, SENDABLE_ASSETS, SPONSORED_PYTH_DEPENDENT_PROVIDERS, STABLE_ASSETS, SUINS_NAME_REGEX, SUI_ADDRESS_REGEX, SUI_ADDRESS_STRICT_REGEX, SUI_DECIMALS, SUI_TYPE, SUPPORTED_ASSETS, SuinsNotRegisteredError, SuinsRpcError, T2000, T2000Error, T2000_OVERLAY_FEE_WALLET, TOKEN_MAP, USDC_DECIMALS, USDC_TYPE, USDE_TYPE, USDSUI_TYPE, USDT_TYPE, WAL_TYPE, WBTC_TYPE, WRITE_APPENDER_REGISTRY, ZkLoginSigner, addSendToTx, addSwapToTx, approxUsdValue, assertAllowedAsset, assertLimitConfig, buildAddLeafTx, buildRevokeLeafTx, buildSendTx, buildSwapTx, chatCompletion, chatCompletionStream, checkPositiveAmount, checkSuiAddress, classifyAction, classifyLabel, classifyTransaction, clearLimits, composeTx, dailySpentToday, deriveAllowedAddressesFromPtb, deserializeCetusRoute, displayHandle, executeTx, exportPrivateKey, extractAllUserLegs, extractTransferDetails, extractTxCommands, extractTxSender, fallbackLabel, fetchAllCoins, findSwapRoute, formatAssetAmount, formatSui, formatUsd, fullHandle, generateKeypair, getAddress, getCoinMeta, getDecimals, getDecimalsForCoinType, getLimits, getSponsoredSwapProviders, getSuiClient, getSuiGrpcClient, getSwapQuote, hasLimits, isAllowedAsset, isCetusRouteFresh, isInRegistry, keypairFromPrivateKey, listModels, loadKey, looksLikeSuiNs, mapMoveAbortCode, mapWalletError, mistToSui, normalizeAddressInput, normalizeAsset, normalizeCoinType, parseSuiRpcTx, payWithMpp, preflightFail, preflightPay, preflightSend, preflightSwap, queryBalance, queryHistory, queryTransaction, rawToStable, rawToUsdc, readLimitsFile, recordDailySpend, refineLendingLabel, resolveAddressToSuinsViaRpc, resolveSuinsViaRpc, resolveSymbol, resolveTokenType, saveBech32, saveKey, selectAndSplitCoin, selectSuiCoin, serializeCetusRoute, setLimits, simulateTransaction, stableToRaw, suiToMist, throwIfSimulationFailed, truncateAddress, usdcToRaw, validateAddress, validateLabel, verifyCetusRouteCoinMatch, verifyReceipt, walletExists, writeLimitsFile };
|
|
3504
|
+
export { AGENT_ID_PARENT, AGENT_ID_PARENT_NAME, AGENT_ID_PARENT_NFT_ID, AUDRIC_PARENT, AUDRIC_PARENT_NAME, AUDRIC_PARENT_NFT_ID, CETUS_USDC_SUI_POOL, CLOCK_ID, COIN_REGISTRY, DEFAULT_API_BASE, DEFAULT_GRPC_URL, DEFAULT_NETWORK, ETH_TYPE, GASLESS_MIN_STABLE_AMOUNT, GASLESS_STABLE_TYPES, GAS_RESERVE_MIN, IKA_TYPE, InvalidAddressError, KNOWN_TARGETS, KeypairSigner, LABEL_PATTERNS, LOFI_TYPE, LimitEnforcer, LimitExceededError, MANIFEST_TYPE, MIST_PER_SUI, NAVX_TYPE, OPERATION_ASSETS, OVERLAY_FEE_RATE, PREFLIGHT_MAX_AMOUNT, PREFLIGHT_OK, SENDABLE_ASSETS, SPONSORED_PYTH_DEPENDENT_PROVIDERS, STABLE_ASSETS, SUINS_NAME_REGEX, SUI_ADDRESS_REGEX, SUI_ADDRESS_STRICT_REGEX, SUI_DECIMALS, SUI_TYPE, SUPPORTED_ASSETS, SuinsNotRegisteredError, SuinsRpcError, T2000, T2000Error, T2000_OVERLAY_FEE_WALLET, TOKEN_MAP, USDC_DECIMALS, USDC_TYPE, USDE_TYPE, USDSUI_TYPE, USDT_TYPE, WAL_TYPE, WBTC_TYPE, WRITE_APPENDER_REGISTRY, ZkLoginSigner, addSendToTx, addSwapToTx, approxUsdValue, assertAllowedAsset, assertLimitConfig, buildAddLeafTx, buildRevokeLeafTx, buildSendTx, buildSwapTx, chatCompletion, chatCompletionStream, checkPositiveAmount, checkSuiAddress, classifyAction, classifyLabel, classifyTransaction, clearLimits, composeTx, dailySpentToday, deriveAllowedAddressesFromPtb, deserializeCetusRoute, displayHandle, executeTx, exportPrivateKey, extractAllUserLegs, extractTransferDetails, extractTxCommands, extractTxSender, fallbackLabel, fetchAllCoins, findSwapRoute, formatAssetAmount, formatSui, formatUsd, fullHandle, generateKeypair, getAddress, getCoinMeta, getDecimals, getDecimalsForCoinType, getLimits, getSponsoredSwapProviders, getSuiClient, getSuiGrpcClient, getSwapQuote, hasLimits, isAllowedAsset, isCetusRouteFresh, isInRegistry, keypairFromPrivateKey, listModels, loadKey, looksLikeSuiNs, mapMoveAbortCode, mapWalletError, mistToSui, normalizeAddressInput, normalizeAsset, normalizeCoinType, parseMppSuiChallenge, parseSuiRpcTx, payWithMpp, preflightFail, preflightPay, preflightSend, preflightSwap, queryBalance, queryHistory, queryTransaction, rawToStable, rawToUsdc, readLimitsFile, recordDailySpend, refineLendingLabel, resolveAddressToSuinsViaRpc, resolveSuinsViaRpc, resolveSymbol, resolveTokenType, saveBech32, saveKey, selectAndSplitCoin, selectSuiCoin, serializeCetusRoute, setLimits, simulateTransaction, stableToRaw, suiToMist, throwIfSimulationFailed, truncateAddress, usdcToRaw, validateAddress, validateLabel, verifyCetusRouteCoinMatch, verifyReceipt, walletExists, writeLimitsFile };
|
|
3405
3505
|
//# sourceMappingURL=index.js.map
|
|
3406
3506
|
//# sourceMappingURL=index.js.map
|