@t2000/sdk 1.22.1 → 1.23.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/adapters/index.cjs +53 -29
- package/dist/adapters/index.cjs.map +1 -1
- package/dist/adapters/index.js +53 -29
- package/dist/adapters/index.js.map +1 -1
- package/dist/index.cjs +74 -32
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +36 -5
- package/dist/index.d.ts +36 -5
- package/dist/index.js +74 -33
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1017,11 +1017,42 @@ declare function buildRevokeLeafTx(suinsClient: SuinsClient, { label }: BuildRev
|
|
|
1017
1017
|
/**
|
|
1018
1018
|
* Convenience: turn a bare label into the full `<label>.audric.sui` path.
|
|
1019
1019
|
*
|
|
1020
|
-
*
|
|
1021
|
-
*
|
|
1022
|
-
*
|
|
1023
|
-
*
|
|
1020
|
+
* **Use this for ON-CHAIN operations** — SuiNS leaf NFT `name` field, the
|
|
1021
|
+
* `createLeafSubName` / `removeLeafSubName` move calls, and any RPC call
|
|
1022
|
+
* that returns/expects the canonical name string. The `<label>.audric.sui`
|
|
1023
|
+
* form is what the SuiNS protocol writes into the NFT `name` field.
|
|
1024
|
+
*
|
|
1025
|
+
* **Do NOT use this for UI rendering** — that's `displayHandle()`'s job
|
|
1026
|
+
* (S.118 reversal of SPEC 10 D10, see audric-build-tracker). Pre-S.118
|
|
1027
|
+
* we surfaced the full `.sui` form everywhere; we now use the SuiNS V2
|
|
1028
|
+
* `@` form (`alice@audric`) for display because it's shorter, fits the
|
|
1029
|
+
* agent harness mono aesthetic, and matches SuiNS's own V2 standard.
|
|
1030
|
+
*
|
|
1031
|
+
* Both forms resolve to the same address via SuiNS RPC (verified
|
|
1032
|
+
* mainnet 2026-05-08 PF1) — `displayHandle()` is purely a render-layer
|
|
1033
|
+
* choice, not a backend storage change.
|
|
1024
1034
|
*/
|
|
1025
1035
|
declare function fullHandle(label: string): string;
|
|
1036
|
+
/**
|
|
1037
|
+
* SuiNS V2 short-form display alias. `displayHandle('alice')` →
|
|
1038
|
+
* `'alice@audric'`. Use for chat narration, permission cards, receipts,
|
|
1039
|
+
* profile pages, share-to-X copy, OG metadata, and lookup_user output.
|
|
1040
|
+
*
|
|
1041
|
+
* **Why a separate function from `fullHandle`:**
|
|
1042
|
+
* - `fullHandle('alice')` → `'alice.audric.sui'` is the **on-chain**
|
|
1043
|
+
* NFT name field; SuiNS's `createLeafSubName` writes exactly this
|
|
1044
|
+
* string and `suix_resolveNameServiceAddress` accepts it.
|
|
1045
|
+
* - `displayHandle('alice')` → `'alice@audric'` is the **UI** form
|
|
1046
|
+
* that users see and share. SuiNS RPC also accepts this form
|
|
1047
|
+
* (verified mainnet 2026-05-08 PF1 — both forms return the same
|
|
1048
|
+
* address), so we have one storage form (`<label>.audric.sui`) and
|
|
1049
|
+
* two interchangeable input forms (the user can paste either).
|
|
1050
|
+
*
|
|
1051
|
+
* Reverses SPEC 10 D10 ("full handle ALWAYS"). See audric-build-tracker
|
|
1052
|
+
* S.118 for the rationale; see also `audric/apps/web/lib/identity/`
|
|
1053
|
+
* for canonicalization in the input parser (which is a no-op since
|
|
1054
|
+
* SuiNS RPC accepts both — kept available for future-proofing).
|
|
1055
|
+
*/
|
|
1056
|
+
declare function displayHandle(label: string): string;
|
|
1026
1057
|
|
|
1027
|
-
export { AUDRIC_PARENT_NAME, AUDRIC_PARENT_NFT_ID, type AppenderContext, BalanceResponse, type BorrowInput, BorrowResult, type BuildAddLeafParams, type BuildRevokeLeafParams, type ClaimRewardsInput, ClaimRewardsResult, type CoinPage, type ComposeTxFeeHookContext, type ComposeTxFeeHooks, type ComposeTxOptions, type ComposeTxResult, CompoundRewardsResult, ContactManager, DepositInfo, EarningsResult, FinancialSummary, type FinancialSummaryOptions, FundStatusResult, HF_CRITICAL_THRESHOLD, HF_WARN_THRESHOLD, HealthFactorResult, type LabelValidationResult, LendingAdapter, LendingRates, MaxBorrowResult, MaxWithdrawResult, OverlayFeeConfig, PayOptions, PayResult, PaymentRequest, PendingReward, PositionsResult, RatesResult, type RepayDebtInput, RepayResult, SafeguardConfig, SafeguardEnforcer, type SaveDepositInput, SaveResult, type SelectAndSplitResult, SendResult, type SendTransferInput, StakeVSuiResult, type StepPreview, SupportedAsset, type SwapExecuteInput, SwapQuoteResult, SwapResult, SwapRouteResult, T2000, T2000Error, T2000Options, TransactionRecord, TransactionSigner, TxMetadata, UnstakeVSuiResult, VOLO_METADATA, VOLO_PKG, VOLO_POOL, VSUI_TYPE, type VoloStakeInput, type VoloStats, type VoloUnstakeInput, WRITE_APPENDER_REGISTRY, type WithdrawInput, WithdrawResult, type WriteStep, type WriteToolName, ZkLoginProof, addSendToTx, addStakeVSuiToTx, addUnstakeVSuiToTx, buildAddLeafTx, buildClaimRewardsTx, buildRevokeLeafTx, buildSendTx, buildStakeVSuiTx, buildUnstakeVSuiTx, composeTx, deriveAllowedAddressesFromPtb, exportPrivateKey, fetchAllCoins, fullHandle, generateKeypair, getAddress, getFinancialSummary, getPendingRewards, getRates, getSwapQuote, getVoloStats, keypairFromPrivateKey, loadKey, saveKey, selectAndSplitCoin, selectSuiCoin, validateLabel, walletExists };
|
|
1058
|
+
export { AUDRIC_PARENT_NAME, AUDRIC_PARENT_NFT_ID, type AppenderContext, BalanceResponse, type BorrowInput, BorrowResult, type BuildAddLeafParams, type BuildRevokeLeafParams, type ClaimRewardsInput, ClaimRewardsResult, type CoinPage, type ComposeTxFeeHookContext, type ComposeTxFeeHooks, type ComposeTxOptions, type ComposeTxResult, CompoundRewardsResult, ContactManager, DepositInfo, EarningsResult, FinancialSummary, type FinancialSummaryOptions, FundStatusResult, HF_CRITICAL_THRESHOLD, HF_WARN_THRESHOLD, HealthFactorResult, type LabelValidationResult, LendingAdapter, LendingRates, MaxBorrowResult, MaxWithdrawResult, OverlayFeeConfig, PayOptions, PayResult, PaymentRequest, PendingReward, PositionsResult, RatesResult, type RepayDebtInput, RepayResult, SafeguardConfig, SafeguardEnforcer, type SaveDepositInput, SaveResult, type SelectAndSplitResult, SendResult, type SendTransferInput, StakeVSuiResult, type StepPreview, SupportedAsset, type SwapExecuteInput, SwapQuoteResult, SwapResult, SwapRouteResult, T2000, T2000Error, T2000Options, TransactionRecord, TransactionSigner, TxMetadata, UnstakeVSuiResult, VOLO_METADATA, VOLO_PKG, VOLO_POOL, VSUI_TYPE, type VoloStakeInput, type VoloStats, type VoloUnstakeInput, WRITE_APPENDER_REGISTRY, type WithdrawInput, WithdrawResult, type WriteStep, type WriteToolName, ZkLoginProof, addSendToTx, addStakeVSuiToTx, addUnstakeVSuiToTx, buildAddLeafTx, buildClaimRewardsTx, buildRevokeLeafTx, buildSendTx, buildStakeVSuiTx, buildUnstakeVSuiTx, composeTx, deriveAllowedAddressesFromPtb, displayHandle, exportPrivateKey, fetchAllCoins, fullHandle, generateKeypair, getAddress, getFinancialSummary, getPendingRewards, getRates, getSwapQuote, getVoloStats, keypairFromPrivateKey, loadKey, saveKey, selectAndSplitCoin, selectSuiCoin, validateLabel, walletExists };
|
package/dist/index.d.ts
CHANGED
|
@@ -1017,11 +1017,42 @@ declare function buildRevokeLeafTx(suinsClient: SuinsClient, { label }: BuildRev
|
|
|
1017
1017
|
/**
|
|
1018
1018
|
* Convenience: turn a bare label into the full `<label>.audric.sui` path.
|
|
1019
1019
|
*
|
|
1020
|
-
*
|
|
1021
|
-
*
|
|
1022
|
-
*
|
|
1023
|
-
*
|
|
1020
|
+
* **Use this for ON-CHAIN operations** — SuiNS leaf NFT `name` field, the
|
|
1021
|
+
* `createLeafSubName` / `removeLeafSubName` move calls, and any RPC call
|
|
1022
|
+
* that returns/expects the canonical name string. The `<label>.audric.sui`
|
|
1023
|
+
* form is what the SuiNS protocol writes into the NFT `name` field.
|
|
1024
|
+
*
|
|
1025
|
+
* **Do NOT use this for UI rendering** — that's `displayHandle()`'s job
|
|
1026
|
+
* (S.118 reversal of SPEC 10 D10, see audric-build-tracker). Pre-S.118
|
|
1027
|
+
* we surfaced the full `.sui` form everywhere; we now use the SuiNS V2
|
|
1028
|
+
* `@` form (`alice@audric`) for display because it's shorter, fits the
|
|
1029
|
+
* agent harness mono aesthetic, and matches SuiNS's own V2 standard.
|
|
1030
|
+
*
|
|
1031
|
+
* Both forms resolve to the same address via SuiNS RPC (verified
|
|
1032
|
+
* mainnet 2026-05-08 PF1) — `displayHandle()` is purely a render-layer
|
|
1033
|
+
* choice, not a backend storage change.
|
|
1024
1034
|
*/
|
|
1025
1035
|
declare function fullHandle(label: string): string;
|
|
1036
|
+
/**
|
|
1037
|
+
* SuiNS V2 short-form display alias. `displayHandle('alice')` →
|
|
1038
|
+
* `'alice@audric'`. Use for chat narration, permission cards, receipts,
|
|
1039
|
+
* profile pages, share-to-X copy, OG metadata, and lookup_user output.
|
|
1040
|
+
*
|
|
1041
|
+
* **Why a separate function from `fullHandle`:**
|
|
1042
|
+
* - `fullHandle('alice')` → `'alice.audric.sui'` is the **on-chain**
|
|
1043
|
+
* NFT name field; SuiNS's `createLeafSubName` writes exactly this
|
|
1044
|
+
* string and `suix_resolveNameServiceAddress` accepts it.
|
|
1045
|
+
* - `displayHandle('alice')` → `'alice@audric'` is the **UI** form
|
|
1046
|
+
* that users see and share. SuiNS RPC also accepts this form
|
|
1047
|
+
* (verified mainnet 2026-05-08 PF1 — both forms return the same
|
|
1048
|
+
* address), so we have one storage form (`<label>.audric.sui`) and
|
|
1049
|
+
* two interchangeable input forms (the user can paste either).
|
|
1050
|
+
*
|
|
1051
|
+
* Reverses SPEC 10 D10 ("full handle ALWAYS"). See audric-build-tracker
|
|
1052
|
+
* S.118 for the rationale; see also `audric/apps/web/lib/identity/`
|
|
1053
|
+
* for canonicalization in the input parser (which is a no-op since
|
|
1054
|
+
* SuiNS RPC accepts both — kept available for future-proofing).
|
|
1055
|
+
*/
|
|
1056
|
+
declare function displayHandle(label: string): string;
|
|
1026
1057
|
|
|
1027
|
-
export { AUDRIC_PARENT_NAME, AUDRIC_PARENT_NFT_ID, type AppenderContext, BalanceResponse, type BorrowInput, BorrowResult, type BuildAddLeafParams, type BuildRevokeLeafParams, type ClaimRewardsInput, ClaimRewardsResult, type CoinPage, type ComposeTxFeeHookContext, type ComposeTxFeeHooks, type ComposeTxOptions, type ComposeTxResult, CompoundRewardsResult, ContactManager, DepositInfo, EarningsResult, FinancialSummary, type FinancialSummaryOptions, FundStatusResult, HF_CRITICAL_THRESHOLD, HF_WARN_THRESHOLD, HealthFactorResult, type LabelValidationResult, LendingAdapter, LendingRates, MaxBorrowResult, MaxWithdrawResult, OverlayFeeConfig, PayOptions, PayResult, PaymentRequest, PendingReward, PositionsResult, RatesResult, type RepayDebtInput, RepayResult, SafeguardConfig, SafeguardEnforcer, type SaveDepositInput, SaveResult, type SelectAndSplitResult, SendResult, type SendTransferInput, StakeVSuiResult, type StepPreview, SupportedAsset, type SwapExecuteInput, SwapQuoteResult, SwapResult, SwapRouteResult, T2000, T2000Error, T2000Options, TransactionRecord, TransactionSigner, TxMetadata, UnstakeVSuiResult, VOLO_METADATA, VOLO_PKG, VOLO_POOL, VSUI_TYPE, type VoloStakeInput, type VoloStats, type VoloUnstakeInput, WRITE_APPENDER_REGISTRY, type WithdrawInput, WithdrawResult, type WriteStep, type WriteToolName, ZkLoginProof, addSendToTx, addStakeVSuiToTx, addUnstakeVSuiToTx, buildAddLeafTx, buildClaimRewardsTx, buildRevokeLeafTx, buildSendTx, buildStakeVSuiTx, buildUnstakeVSuiTx, composeTx, deriveAllowedAddressesFromPtb, exportPrivateKey, fetchAllCoins, fullHandle, generateKeypair, getAddress, getFinancialSummary, getPendingRewards, getRates, getSwapQuote, getVoloStats, keypairFromPrivateKey, loadKey, saveKey, selectAndSplitCoin, selectSuiCoin, validateLabel, walletExists };
|
|
1058
|
+
export { AUDRIC_PARENT_NAME, AUDRIC_PARENT_NFT_ID, type AppenderContext, BalanceResponse, type BorrowInput, BorrowResult, type BuildAddLeafParams, type BuildRevokeLeafParams, type ClaimRewardsInput, ClaimRewardsResult, type CoinPage, type ComposeTxFeeHookContext, type ComposeTxFeeHooks, type ComposeTxOptions, type ComposeTxResult, CompoundRewardsResult, ContactManager, DepositInfo, EarningsResult, FinancialSummary, type FinancialSummaryOptions, FundStatusResult, HF_CRITICAL_THRESHOLD, HF_WARN_THRESHOLD, HealthFactorResult, type LabelValidationResult, LendingAdapter, LendingRates, MaxBorrowResult, MaxWithdrawResult, OverlayFeeConfig, PayOptions, PayResult, PaymentRequest, PendingReward, PositionsResult, RatesResult, type RepayDebtInput, RepayResult, SafeguardConfig, SafeguardEnforcer, type SaveDepositInput, SaveResult, type SelectAndSplitResult, SendResult, type SendTransferInput, StakeVSuiResult, type StepPreview, SupportedAsset, type SwapExecuteInput, SwapQuoteResult, SwapResult, SwapRouteResult, T2000, T2000Error, T2000Options, TransactionRecord, TransactionSigner, TxMetadata, UnstakeVSuiResult, VOLO_METADATA, VOLO_PKG, VOLO_POOL, VSUI_TYPE, type VoloStakeInput, type VoloStats, type VoloUnstakeInput, WRITE_APPENDER_REGISTRY, type WithdrawInput, WithdrawResult, type WriteStep, type WriteToolName, ZkLoginProof, addSendToTx, addStakeVSuiToTx, addUnstakeVSuiToTx, buildAddLeafTx, buildClaimRewardsTx, buildRevokeLeafTx, buildSendTx, buildStakeVSuiTx, buildUnstakeVSuiTx, composeTx, deriveAllowedAddressesFromPtb, displayHandle, exportPrivateKey, fetchAllCoins, fullHandle, generateKeypair, getAddress, getFinancialSummary, getPendingRewards, getRates, getSwapQuote, getVoloStats, keypairFromPrivateKey, loadKey, saveKey, selectAndSplitCoin, selectSuiCoin, validateLabel, walletExists };
|
package/dist/index.js
CHANGED
|
@@ -5663,53 +5663,77 @@ async function maxBorrowAmount(client, address) {
|
|
|
5663
5663
|
return { maxAmount, healthFactorAfter: MIN_HEALTH_FACTOR, currentHF: hf.healthFactor };
|
|
5664
5664
|
}
|
|
5665
5665
|
async function getPendingRewards(client, address) {
|
|
5666
|
+
let rewards;
|
|
5666
5667
|
try {
|
|
5667
|
-
|
|
5668
|
+
rewards = await vt(address, {
|
|
5668
5669
|
...sdkOptions(client),
|
|
5669
5670
|
markets: ["main"]
|
|
5670
5671
|
});
|
|
5671
|
-
|
|
5672
|
-
const
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
-
|
|
5687
|
-
|
|
5672
|
+
} catch (err) {
|
|
5673
|
+
const msg = err instanceof Error ? err.message : String(err);
|
|
5674
|
+
throw new T2000Error(
|
|
5675
|
+
"PROTOCOL_UNAVAILABLE",
|
|
5676
|
+
`NAVI rewards lookup failed: ${msg}`,
|
|
5677
|
+
{ source: "navi-rewards-read" },
|
|
5678
|
+
true
|
|
5679
|
+
);
|
|
5680
|
+
}
|
|
5681
|
+
if (!rewards || rewards.length === 0) return [];
|
|
5682
|
+
const summary = wt(rewards);
|
|
5683
|
+
const result = [];
|
|
5684
|
+
for (const s of summary) {
|
|
5685
|
+
for (const rw of s.rewards) {
|
|
5686
|
+
const available = Number(rw.available);
|
|
5687
|
+
if (available <= 0) continue;
|
|
5688
|
+
const symbol = rw.coinType.split("::").pop() ?? "UNKNOWN";
|
|
5689
|
+
result.push({
|
|
5690
|
+
protocol: "navi",
|
|
5691
|
+
asset: String(s.assetId),
|
|
5692
|
+
coinType: rw.coinType,
|
|
5693
|
+
symbol,
|
|
5694
|
+
amount: available,
|
|
5695
|
+
estimatedValueUsd: 0
|
|
5696
|
+
});
|
|
5688
5697
|
}
|
|
5689
|
-
return result;
|
|
5690
|
-
} catch {
|
|
5691
|
-
return [];
|
|
5692
5698
|
}
|
|
5699
|
+
return result;
|
|
5693
5700
|
}
|
|
5694
5701
|
async function addClaimRewardsToTx(tx, client, address) {
|
|
5702
|
+
let rewards;
|
|
5695
5703
|
try {
|
|
5696
|
-
|
|
5704
|
+
rewards = await vt(address, {
|
|
5697
5705
|
...sdkOptions(client),
|
|
5698
5706
|
markets: ["main"]
|
|
5699
5707
|
});
|
|
5700
|
-
|
|
5701
|
-
const
|
|
5702
|
-
|
|
5708
|
+
} catch (err) {
|
|
5709
|
+
const msg = err instanceof Error ? err.message : String(err);
|
|
5710
|
+
throw new T2000Error(
|
|
5711
|
+
"PROTOCOL_UNAVAILABLE",
|
|
5712
|
+
`NAVI rewards lookup failed: ${msg}`,
|
|
5713
|
+
{ source: "navi-rewards-claim-prelude" },
|
|
5714
|
+
true
|
|
5703
5715
|
);
|
|
5704
|
-
|
|
5716
|
+
}
|
|
5717
|
+
if (!rewards || rewards.length === 0) return [];
|
|
5718
|
+
const claimable = rewards.filter(
|
|
5719
|
+
(r) => Number(r.userClaimableReward) > 0
|
|
5720
|
+
);
|
|
5721
|
+
if (claimable.length === 0) return [];
|
|
5722
|
+
try {
|
|
5705
5723
|
await Ct(tx, claimable, {
|
|
5706
5724
|
env: "prod",
|
|
5707
5725
|
customCoinReceive: { type: "transfer", transfer: address }
|
|
5708
5726
|
});
|
|
5709
|
-
|
|
5710
|
-
|
|
5711
|
-
|
|
5727
|
+
} catch (err) {
|
|
5728
|
+
const msg = err instanceof Error ? err.message : String(err);
|
|
5729
|
+
throw new T2000Error(
|
|
5730
|
+
"PROTOCOL_UNAVAILABLE",
|
|
5731
|
+
`NAVI claim PTB build failed: ${msg}`,
|
|
5732
|
+
{ source: "navi-rewards-claim-ptb" },
|
|
5733
|
+
true
|
|
5734
|
+
);
|
|
5712
5735
|
}
|
|
5736
|
+
return aggregateClaimableRewards(claimable);
|
|
5713
5737
|
}
|
|
5714
5738
|
async function buildClaimRewardsTx(client, address) {
|
|
5715
5739
|
const tx = new Transaction();
|
|
@@ -7173,13 +7197,20 @@ var T2000 = class _T2000 extends EventEmitter {
|
|
|
7173
7197
|
}
|
|
7174
7198
|
// -- Claim Rewards --
|
|
7175
7199
|
async getPendingRewards() {
|
|
7176
|
-
const adapters = this.registry.listLending();
|
|
7200
|
+
const adapters = this.registry.listLending().filter((a) => a.getPendingRewards);
|
|
7201
|
+
if (adapters.length === 0) return [];
|
|
7177
7202
|
const results = await Promise.allSettled(
|
|
7178
|
-
adapters.
|
|
7203
|
+
adapters.map((a) => a.getPendingRewards(this._address))
|
|
7179
7204
|
);
|
|
7180
7205
|
const all = [];
|
|
7206
|
+
const errors = [];
|
|
7181
7207
|
for (const r of results) {
|
|
7182
7208
|
if (r.status === "fulfilled") all.push(...r.value);
|
|
7209
|
+
else errors.push(r.reason);
|
|
7210
|
+
}
|
|
7211
|
+
if (all.length === 0 && errors.length === adapters.length) {
|
|
7212
|
+
const first = errors[0];
|
|
7213
|
+
throw first instanceof Error ? first : new Error(String(first));
|
|
7183
7214
|
}
|
|
7184
7215
|
return all;
|
|
7185
7216
|
}
|
|
@@ -7192,13 +7223,19 @@ var T2000 = class _T2000 extends EventEmitter {
|
|
|
7192
7223
|
const tx = new Transaction();
|
|
7193
7224
|
tx.setSender(this._address);
|
|
7194
7225
|
const allRewards = [];
|
|
7226
|
+
const errors = [];
|
|
7195
7227
|
for (const adapter of adapters) {
|
|
7196
7228
|
try {
|
|
7197
7229
|
const claimed = await adapter.addClaimRewardsToTx(tx, this._address);
|
|
7198
7230
|
allRewards.push(...claimed);
|
|
7199
|
-
} catch {
|
|
7231
|
+
} catch (err) {
|
|
7232
|
+
errors.push(err);
|
|
7200
7233
|
}
|
|
7201
7234
|
}
|
|
7235
|
+
if (allRewards.length === 0 && errors.length === adapters.length) {
|
|
7236
|
+
const first = errors[0];
|
|
7237
|
+
throw first instanceof Error ? first : new Error(String(first));
|
|
7238
|
+
}
|
|
7202
7239
|
if (allRewards.length === 0) {
|
|
7203
7240
|
return { success: true, tx: "", rewards: [], totalValueUsd: 0, gasCost: 0 };
|
|
7204
7241
|
}
|
|
@@ -8052,12 +8089,16 @@ function buildRevokeLeafTx(suinsClient, { label }) {
|
|
|
8052
8089
|
function fullHandle(label) {
|
|
8053
8090
|
return `${label}.${AUDRIC_PARENT_NAME}`;
|
|
8054
8091
|
}
|
|
8092
|
+
function displayHandle(label) {
|
|
8093
|
+
const parentDisplay = AUDRIC_PARENT_NAME.replace(/\.sui$/, "");
|
|
8094
|
+
return `${label}@${parentDisplay}`;
|
|
8095
|
+
}
|
|
8055
8096
|
/*! Bundled license information:
|
|
8056
8097
|
|
|
8057
8098
|
@scure/base/index.js:
|
|
8058
8099
|
(*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
|
|
8059
8100
|
*/
|
|
8060
8101
|
|
|
8061
|
-
export { ALL_NAVI_ASSETS, AUDRIC_PARENT_NAME, AUDRIC_PARENT_NFT_ID, 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, T2000_OVERLAY_FEE_WALLET, TOKEN_MAP, USDC_DECIMALS, USDC_TYPE, USDE_TYPE, USDSUI_TYPE, USDT_TYPE, VOLO_METADATA, VOLO_PKG, VOLO_POOL, VSUI_TYPE, WAL_TYPE, WBTC_TYPE, WRITE_APPENDER_REGISTRY, ZkLoginSigner, addFeeTransfer, addSendToTx, addStakeVSuiToTx, addSwapToTx, addUnstakeVSuiToTx, allDescriptors, assertAllowedAsset, buildAddLeafTx, buildClaimRewardsTx, buildRevokeLeafTx, buildSendTx, buildStakeVSuiTx, buildSwapTx, buildUnstakeVSuiTx, calculateFee, classifyAction, classifyLabel, classifyTransaction, composeTx, deriveAllowedAddressesFromPtb, exportPrivateKey, extractTransferDetails, extractTxCommands, extractTxSender, fallbackLabel, fetchAllCoins, findSwapRoute, formatAssetAmount, formatSui, formatUsd, fullHandle, generateKeypair, getAddress, getCoinMeta, getDecimals, getDecimalsForCoinType, getFinancialSummary, getPendingRewards, getRates, getSwapQuote, getTier, getVoloStats, isAllowedAsset, isInRegistry, isSupported, isTier1, isTier2, keypairFromPrivateKey, loadKey, mapMoveAbortCode, mapWalletError, mistToSui, naviDescriptor, normalizeAsset, normalizeCoinType, parseSuiRpcTx, queryHistory, queryTransaction, rawToStable, rawToUsdc, refineLendingLabel, resolveSymbol, resolveTokenType, saveKey, selectAndSplitCoin, selectSuiCoin, simulateTransaction, stableToRaw, suiToMist, throwIfSimulationFailed, truncateAddress, usdcToRaw, validateAddress, validateLabel, walletExists };
|
|
8102
|
+
export { ALL_NAVI_ASSETS, AUDRIC_PARENT_NAME, AUDRIC_PARENT_NFT_ID, 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, T2000_OVERLAY_FEE_WALLET, TOKEN_MAP, USDC_DECIMALS, USDC_TYPE, USDE_TYPE, USDSUI_TYPE, USDT_TYPE, VOLO_METADATA, VOLO_PKG, VOLO_POOL, VSUI_TYPE, WAL_TYPE, WBTC_TYPE, WRITE_APPENDER_REGISTRY, ZkLoginSigner, addFeeTransfer, addSendToTx, addStakeVSuiToTx, addSwapToTx, addUnstakeVSuiToTx, allDescriptors, assertAllowedAsset, buildAddLeafTx, buildClaimRewardsTx, buildRevokeLeafTx, buildSendTx, buildStakeVSuiTx, buildSwapTx, buildUnstakeVSuiTx, calculateFee, classifyAction, classifyLabel, classifyTransaction, composeTx, deriveAllowedAddressesFromPtb, displayHandle, exportPrivateKey, extractTransferDetails, extractTxCommands, extractTxSender, fallbackLabel, fetchAllCoins, findSwapRoute, formatAssetAmount, formatSui, formatUsd, fullHandle, generateKeypair, getAddress, getCoinMeta, getDecimals, getDecimalsForCoinType, getFinancialSummary, getPendingRewards, getRates, getSwapQuote, getTier, getVoloStats, isAllowedAsset, isInRegistry, isSupported, isTier1, isTier2, keypairFromPrivateKey, loadKey, mapMoveAbortCode, mapWalletError, mistToSui, naviDescriptor, normalizeAsset, normalizeCoinType, parseSuiRpcTx, queryHistory, queryTransaction, rawToStable, rawToUsdc, refineLendingLabel, resolveSymbol, resolveTokenType, saveKey, selectAndSplitCoin, selectSuiCoin, simulateTransaction, stableToRaw, suiToMist, throwIfSimulationFailed, truncateAddress, usdcToRaw, validateAddress, validateLabel, walletExists };
|
|
8062
8103
|
//# sourceMappingURL=index.js.map
|
|
8063
8104
|
//# sourceMappingURL=index.js.map
|