hermes-swap 0.0.13 → 0.0.14
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/cjs/types.d.ts +5 -5
- package/dist/esm/types.d.ts +5 -5
- package/package.json +1 -1
package/dist/cjs/types.d.ts
CHANGED
|
@@ -8,13 +8,13 @@ export interface IConfig {
|
|
|
8
8
|
export interface IExpectParams {
|
|
9
9
|
chain: ChainNameEnum;
|
|
10
10
|
amountInWei: bigint;
|
|
11
|
-
path:
|
|
11
|
+
path: IRouterPath[];
|
|
12
12
|
}
|
|
13
13
|
export interface ISwapParams {
|
|
14
14
|
user: string;
|
|
15
15
|
chain: ChainNameEnum;
|
|
16
16
|
amountInWei: bigint;
|
|
17
|
-
path:
|
|
17
|
+
path: IRouterPath[];
|
|
18
18
|
minAmountOutList: bigint[];
|
|
19
19
|
}
|
|
20
20
|
export interface IBridgeParams {
|
|
@@ -31,7 +31,7 @@ export interface ISwapAndBridgeParams {
|
|
|
31
31
|
chain: ChainNameEnum;
|
|
32
32
|
user: string;
|
|
33
33
|
amountInWei: bigint;
|
|
34
|
-
path:
|
|
34
|
+
path: IRouterPath[];
|
|
35
35
|
minAmountOutList: bigint[];
|
|
36
36
|
bridgeType: string;
|
|
37
37
|
bridgeAddress: string;
|
|
@@ -42,7 +42,7 @@ export interface ISwapAndBridgeParams {
|
|
|
42
42
|
export interface IReceipt {
|
|
43
43
|
fromToken?: string;
|
|
44
44
|
toToken?: string;
|
|
45
|
-
|
|
45
|
+
amountOut?: bigint;
|
|
46
46
|
}
|
|
47
47
|
export declare enum DexType {
|
|
48
48
|
FX = "f(x)"
|
|
@@ -222,7 +222,7 @@ export declare const AddressConst: {
|
|
|
222
222
|
};
|
|
223
223
|
export interface IExpectPayload {
|
|
224
224
|
}
|
|
225
|
-
export interface
|
|
225
|
+
export interface IRouterPath {
|
|
226
226
|
dexType: string;
|
|
227
227
|
poolAddress: string;
|
|
228
228
|
fromCoinAddress: string;
|
package/dist/esm/types.d.ts
CHANGED
|
@@ -8,13 +8,13 @@ export interface IConfig {
|
|
|
8
8
|
export interface IExpectParams {
|
|
9
9
|
chain: ChainNameEnum;
|
|
10
10
|
amountInWei: bigint;
|
|
11
|
-
path:
|
|
11
|
+
path: IRouterPath[];
|
|
12
12
|
}
|
|
13
13
|
export interface ISwapParams {
|
|
14
14
|
user: string;
|
|
15
15
|
chain: ChainNameEnum;
|
|
16
16
|
amountInWei: bigint;
|
|
17
|
-
path:
|
|
17
|
+
path: IRouterPath[];
|
|
18
18
|
minAmountOutList: bigint[];
|
|
19
19
|
}
|
|
20
20
|
export interface IBridgeParams {
|
|
@@ -31,7 +31,7 @@ export interface ISwapAndBridgeParams {
|
|
|
31
31
|
chain: ChainNameEnum;
|
|
32
32
|
user: string;
|
|
33
33
|
amountInWei: bigint;
|
|
34
|
-
path:
|
|
34
|
+
path: IRouterPath[];
|
|
35
35
|
minAmountOutList: bigint[];
|
|
36
36
|
bridgeType: string;
|
|
37
37
|
bridgeAddress: string;
|
|
@@ -42,7 +42,7 @@ export interface ISwapAndBridgeParams {
|
|
|
42
42
|
export interface IReceipt {
|
|
43
43
|
fromToken?: string;
|
|
44
44
|
toToken?: string;
|
|
45
|
-
|
|
45
|
+
amountOut?: bigint;
|
|
46
46
|
}
|
|
47
47
|
export declare enum DexType {
|
|
48
48
|
FX = "f(x)"
|
|
@@ -222,7 +222,7 @@ export declare const AddressConst: {
|
|
|
222
222
|
};
|
|
223
223
|
export interface IExpectPayload {
|
|
224
224
|
}
|
|
225
|
-
export interface
|
|
225
|
+
export interface IRouterPath {
|
|
226
226
|
dexType: string;
|
|
227
227
|
poolAddress: string;
|
|
228
228
|
fromCoinAddress: string;
|