@t2000/cli 1.24.2 → 1.24.3
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/{chunk-5MIJ3Y2T.js → chunk-P7CVUSZI.js} +26 -5
- package/dist/{chunk-5MIJ3Y2T.js.map → chunk-P7CVUSZI.js.map} +1 -1
- package/dist/{dist-YIIK3AKD.js → dist-4TQFNWG6.js} +2 -2
- package/dist/{dist-HF73WWOL.js → dist-XXZUATSX.js} +2 -2
- package/dist/index.js +3 -3
- package/package.json +3 -3
- /package/dist/{dist-YIIK3AKD.js.map → dist-4TQFNWG6.js.map} +0 -0
- /package/dist/{dist-HF73WWOL.js.map → dist-XXZUATSX.js.map} +0 -0
|
@@ -21624,14 +21624,35 @@ var naviDescriptor = {
|
|
|
21624
21624
|
packages: [],
|
|
21625
21625
|
dynamicPackageId: true,
|
|
21626
21626
|
actionMap: {
|
|
21627
|
+
// Deposit variants (entry_deposit / deposit + account-cap form for
|
|
21628
|
+
// harvest's internal save leg)
|
|
21627
21629
|
"incentive_v3::entry_deposit": "save",
|
|
21628
21630
|
"incentive_v3::deposit": "save",
|
|
21631
|
+
"incentive_v3::deposit_with_account_cap": "save",
|
|
21632
|
+
// Withdraw variants
|
|
21629
21633
|
"incentive_v3::withdraw_v2": "withdraw",
|
|
21630
21634
|
"incentive_v3::entry_withdraw": "withdraw",
|
|
21635
|
+
"incentive_v3::withdraw_with_account_cap": "withdraw",
|
|
21636
|
+
"incentive_v3::withdraw_with_account_cap_v": "withdraw",
|
|
21637
|
+
"incentive_v3::withdraw": "withdraw",
|
|
21638
|
+
"incentive_v3::withdraw_v": "withdraw",
|
|
21639
|
+
// Borrow variants
|
|
21631
21640
|
"incentive_v3::borrow_v2": "borrow",
|
|
21632
21641
|
"incentive_v3::entry_borrow": "borrow",
|
|
21642
|
+
"incentive_v3::borrow": "borrow",
|
|
21643
|
+
"incentive_v3::borrow_v": "borrow",
|
|
21644
|
+
"incentive_v3::borrow_with_account_cap": "borrow",
|
|
21645
|
+
"incentive_v3::borrow_with_account_cap_v": "borrow",
|
|
21646
|
+
// Repay variants
|
|
21633
21647
|
"incentive_v3::entry_repay": "repay",
|
|
21634
|
-
"incentive_v3::repay": "repay"
|
|
21648
|
+
"incentive_v3::repay": "repay",
|
|
21649
|
+
"incentive_v3::repay_with_account_cap": "repay",
|
|
21650
|
+
// Claim-reward variants — required for `claim_rewards` tagging AND for
|
|
21651
|
+
// `harvest` compound-op detection in the indexer (paired with a save
|
|
21652
|
+
// target, classified as `harvest` instead of `claim`).
|
|
21653
|
+
"incentive_v3::claim_reward": "claim",
|
|
21654
|
+
"incentive_v3::claim_reward_entry": "claim",
|
|
21655
|
+
"incentive_v3::claim_reward_with_account_cap": "claim"
|
|
21635
21656
|
}
|
|
21636
21657
|
};
|
|
21637
21658
|
var allDescriptors = [
|
|
@@ -23736,7 +23757,7 @@ var FEE_RATES = {
|
|
|
23736
23757
|
function calculateFee(operation, amount) {
|
|
23737
23758
|
const bps = FEE_RATES[operation];
|
|
23738
23759
|
const feeAmount = amount * Number(bps) / Number(BPS_DENOMINATOR);
|
|
23739
|
-
const rawAmount =
|
|
23760
|
+
const rawAmount = stableToRaw(feeAmount, USDC_DECIMALS);
|
|
23740
23761
|
return {
|
|
23741
23762
|
amount: feeAmount,
|
|
23742
23763
|
asset: "USDC",
|
|
@@ -23744,11 +23765,11 @@ function calculateFee(operation, amount) {
|
|
|
23744
23765
|
rawAmount
|
|
23745
23766
|
};
|
|
23746
23767
|
}
|
|
23747
|
-
function addFeeTransfer(tx, paymentCoin, feeBps, receiver, amount) {
|
|
23768
|
+
function addFeeTransfer(tx, paymentCoin, feeBps, receiver, amount, decimals = USDC_DECIMALS) {
|
|
23748
23769
|
if (feeBps <= 0n) return;
|
|
23749
23770
|
if (amount <= 0) return;
|
|
23750
23771
|
const feeAmount = amount * Number(feeBps) / Number(BPS_DENOMINATOR);
|
|
23751
|
-
const rawFee =
|
|
23772
|
+
const rawFee = stableToRaw(feeAmount, decimals);
|
|
23752
23773
|
if (rawFee <= 0n) return;
|
|
23753
23774
|
const [feeCoin] = tx.splitCoins(paymentCoin, [tx.pure.u64(rawFee)]);
|
|
23754
23775
|
tx.transferObjects([feeCoin], tx.pure.address(receiver));
|
|
@@ -24141,4 +24162,4 @@ axios/dist/node/axios.cjs:
|
|
|
24141
24162
|
@scure/bip39/index.js:
|
|
24142
24163
|
(*! scure-bip39 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) *)
|
|
24143
24164
|
*/
|
|
24144
|
-
//# sourceMappingURL=chunk-
|
|
24165
|
+
//# sourceMappingURL=chunk-P7CVUSZI.js.map
|