@spicenet-io/spiceflow-ui 4.9.3-extmode.2 → 4.9.3-extmode.4
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.
|
@@ -7,6 +7,7 @@ import type { ResolvedExactOutputSwap } from "../../../utils/swapQuotes";
|
|
|
7
7
|
import type { ExecutionOptions } from "../../../hooks/useSpiceExecution";
|
|
8
8
|
import type { FeeEstimateSummary } from "@spicenet-io/spiceflow-core";
|
|
9
9
|
type EstimateFn = (chainBatches: ChainBatch[], tokenAddress: string, tokenTransferAmount: bigint, options?: ExecutionOptions) => Promise<FeeEstimateSummary>;
|
|
10
|
+
export declare function isExternalInPlacePaySource(selectedAsset: SelectedAsset | null, isNon7702: boolean, resolvedChainId: number): boolean;
|
|
10
11
|
export declare function stripSpicenetFundingBatches(batches: ChainBatch[]): ChainBatch[];
|
|
11
12
|
export declare function scaleTokenAmount(amount: bigint, fromDecimals: number, toDecimals: number): bigint;
|
|
12
13
|
export interface BatchBuilderContext {
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import { type Address } from "viem";
|
|
2
2
|
import type { Asset } from "../types/assets";
|
|
3
|
+
export declare function compareSupplyAssets(a: Asset & {
|
|
4
|
+
_source?: string;
|
|
5
|
+
}, b: Asset & {
|
|
6
|
+
_source?: string;
|
|
7
|
+
}, destToken: string, destChain: number): number;
|
|
3
8
|
export declare function isSupportedSupplyAsset(asset: Pick<Asset, "address" | "chainTokens">, supportedSourceAssets?: string[]): boolean;
|
|
4
9
|
export declare function isSpendableSupplyAsset(asset: Pick<Asset, "address" | "chainTokens" | "chainId"> & {
|
|
5
10
|
_source?: string;
|
|
6
11
|
}, destinationChainId: number, supportedSourceAssets?: string[]): boolean;
|
|
7
12
|
export declare function isSpendableExternalAsset(asset: Pick<Asset, "address" | "chainTokens" | "chainId"> & {
|
|
8
13
|
_source?: string;
|
|
9
|
-
}, destinationToken: Pick<DestinationToken, "address" | "chainId">,
|
|
14
|
+
}, destinationToken: Pick<DestinationToken, "address" | "chainId">, supportedSourceAssets?: string[]): boolean;
|
|
10
15
|
type DestinationToken = {
|
|
11
16
|
address: Address;
|
|
12
17
|
decimals: number;
|