@spicenet-io/spiceflow-ui 4.9.2 → 4.9.3-extmode.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/auth-privy.js +1 -1
- package/dist/components/SpiceSupply/lib/buildBatches.d.ts +1 -0
- package/dist/components/SpiceSupply/lib/executors.d.ts +1 -0
- package/dist/components/SpiceSupply/lib/feePreview.d.ts +1 -0
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/useSupplyAssets.d.ts +3 -0
- package/dist/index.cjs.js +7 -7
- package/dist/index.js +7 -7
- package/dist/types/supply.d.ts +1 -1
- package/dist/utils/fees.d.ts +7 -0
- package/package.json +1 -1
- /package/dist/{privy-BX0ShdbI.js → privy-DsMpmEiz.js} +0 -0
package/dist/types/supply.d.ts
CHANGED
|
@@ -76,7 +76,7 @@ export interface SpiceSupplyProps {
|
|
|
76
76
|
onPayExecute?: (ctx: PayExecuteContext) => Promise<string | void>;
|
|
77
77
|
resolveExactOutputSwap?: (intent: ExactOutputSwapIntent, chainId: number, recipient: Address) => Promise<ResolvedExactOutputSwap | null>;
|
|
78
78
|
actionLabel: string;
|
|
79
|
-
amountDirection?: "input" | "output";
|
|
79
|
+
amountDirection?: "input" | "output" | "input-inclusive";
|
|
80
80
|
swapDescription?: string;
|
|
81
81
|
directDescription?: string;
|
|
82
82
|
paymentAmount?: string;
|
package/dist/utils/fees.d.ts
CHANGED
|
@@ -2,6 +2,13 @@ import { type Address } from "viem";
|
|
|
2
2
|
import type { FeeEstimateBatch, FeeEstimateSummary } from "@spicenet-io/spiceflow-core";
|
|
3
3
|
import type { FeePreview } from "../types/ui";
|
|
4
4
|
export declare function calculateBpsFee(amount: bigint, bps: bigint): bigint;
|
|
5
|
+
export declare function splitFeeInclusiveAmount(enteredAmount: bigint, fixedFees: bigint, bps: bigint): {
|
|
6
|
+
netAmount: bigint;
|
|
7
|
+
spicenetFee: bigint;
|
|
8
|
+
totalFee: bigint;
|
|
9
|
+
grossAmount: bigint;
|
|
10
|
+
coversFees: boolean;
|
|
11
|
+
};
|
|
5
12
|
export declare function amountsWithinBps(left: bigint, right: bigint, bps: bigint): boolean;
|
|
6
13
|
export declare function formatRawTokenInput(amount: bigint, decimals: number): string;
|
|
7
14
|
export declare function getBatchFees(batch: FeeEstimateBatch): {
|
package/package.json
CHANGED
|
File without changes
|