@spicenet-io/spiceflow-ui 3.1.0 → 3.1.2
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/components/SpiceDeposit/SpiceDeposit.d.ts +2 -1
- package/dist/components/SpiceDeposit/depositBatches.d.ts +12 -0
- package/dist/components/SpicePay/SpicePay.d.ts +2 -1
- package/dist/index.cjs.js +11 -11
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -9
- package/dist/utils/crossChainRouter/index.d.ts +1 -1
- package/dist/utils/tokenResolution.d.ts +12 -0
- package/package.json +2 -2
|
@@ -11,7 +11,7 @@ export interface ResolveRouteParams {
|
|
|
11
11
|
intermediaryCandidates?: string[];
|
|
12
12
|
}
|
|
13
13
|
export declare function findTokenOnChain(symbol: string, chainId: number): ChainToken | undefined;
|
|
14
|
-
export declare function findEquivalentOnChain(tokenAddress: string, targetChainId: number): ChainToken | undefined;
|
|
14
|
+
export declare function findEquivalentOnChain(tokenAddress: string, targetChainId: number, sourceChainId?: number): ChainToken | undefined;
|
|
15
15
|
export declare function resolveRoute(params: ResolveRouteParams): RoutePlan;
|
|
16
16
|
export interface BuildRoutedBatchesParams {
|
|
17
17
|
route: RoutePlan;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Address } from "viem";
|
|
2
|
+
import type { Asset } from "../types/assets";
|
|
3
|
+
import type { ChainToken } from "@spicenet-io/spiceflow-core";
|
|
4
|
+
export declare function parseEvmChainTokenRef(ref: string): {
|
|
5
|
+
chainId: number;
|
|
6
|
+
address: Address;
|
|
7
|
+
} | null;
|
|
8
|
+
export declare function getAssetChainTokenCandidates(asset: Asset, chainId: number): Address[];
|
|
9
|
+
export declare function findEquivalentTokenOnChain(sourceAddress: string, sourceChainId: number, targetChainId: number): import("@spicenet-io/spiceflow-core").Token | undefined;
|
|
10
|
+
export declare function resolveAssetTokenAddressOnChain(asset: Asset, targetChainId: number): Address | null;
|
|
11
|
+
export declare function areEquivalentOnChains(sourceAddress: Address, sourceChainId: number, targetAddress: Address, targetChainId: number): boolean;
|
|
12
|
+
export declare function areEquivalentChainTokens(a: ChainToken, b: ChainToken): boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spicenet-io/spiceflow-ui",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.2",
|
|
4
4
|
"description": "Spiceflow UI SDK",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs.js",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"author": "",
|
|
66
66
|
"license": "MIT",
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@spicenet-io/spiceflow-core": "^0.3.
|
|
68
|
+
"@spicenet-io/spiceflow-core": "^0.3.7",
|
|
69
69
|
"lucide-react": "^0.562.0",
|
|
70
70
|
"tslib": "^2.8.1"
|
|
71
71
|
},
|