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.
@@ -8,13 +8,13 @@ export interface IConfig {
8
8
  export interface IExpectParams {
9
9
  chain: ChainNameEnum;
10
10
  amountInWei: bigint;
11
- path: IPath[];
11
+ path: IRouterPath[];
12
12
  }
13
13
  export interface ISwapParams {
14
14
  user: string;
15
15
  chain: ChainNameEnum;
16
16
  amountInWei: bigint;
17
- path: IPath[];
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: IPath[];
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
- amount?: bigint;
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 IPath {
225
+ export interface IRouterPath {
226
226
  dexType: string;
227
227
  poolAddress: string;
228
228
  fromCoinAddress: string;
@@ -8,13 +8,13 @@ export interface IConfig {
8
8
  export interface IExpectParams {
9
9
  chain: ChainNameEnum;
10
10
  amountInWei: bigint;
11
- path: IPath[];
11
+ path: IRouterPath[];
12
12
  }
13
13
  export interface ISwapParams {
14
14
  user: string;
15
15
  chain: ChainNameEnum;
16
16
  amountInWei: bigint;
17
- path: IPath[];
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: IPath[];
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
- amount?: bigint;
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 IPath {
225
+ export interface IRouterPath {
226
226
  dexType: string;
227
227
  poolAddress: string;
228
228
  fromCoinAddress: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hermes-swap",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "description": "A TypeScript utility library for swap and bridge",
5
5
  "main": "dist/cjs/index.js",
6
6
  "types": "dist/cjs/index.d.ts",