hermes-swap 0.1.9 → 0.1.10

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.
@@ -5,12 +5,18 @@ export interface IConfig {
5
5
  quoterAddress: Record<string, string>;
6
6
  aggregatorAddress: Record<string, string>;
7
7
  hermesSignalDomain?: string;
8
+ flashbotSigner: string;
8
9
  }
9
10
  export interface IExpectParams {
10
11
  chain: ChainNameEnum;
11
12
  amountInWei: bigint;
12
13
  path: IRouterPath[];
13
14
  }
15
+ export interface IBatchExpectParams {
16
+ chain: ChainNameEnum;
17
+ amountInWei: bigint[];
18
+ path: IRouterPath[][];
19
+ }
14
20
  export interface ISwapParams {
15
21
  user: string;
16
22
  chain: ChainNameEnum;
@@ -18,6 +24,13 @@ export interface ISwapParams {
18
24
  path: IRouterPath[];
19
25
  minAmountOutList: bigint[];
20
26
  }
27
+ export interface IBatchMultiSwapParams {
28
+ users: string[];
29
+ chain: ChainNameEnum;
30
+ amountInWeis: bigint[];
31
+ paths: IRouterPath[][];
32
+ minAmountOutLists: bigint[][];
33
+ }
21
34
  export interface IBridgeParams {
22
35
  chain: ChainNameEnum;
23
36
  user: string;
@@ -51,7 +64,18 @@ export interface IReceipt {
51
64
  hash: string;
52
65
  from: string;
53
66
  to: string;
54
- logs: ILog[];
67
+ }
68
+ export interface IBatchReceipt {
69
+ hash: string;
70
+ from: string;
71
+ to: string | null;
72
+ userResults: Array<{
73
+ user: string;
74
+ amountIn: bigint;
75
+ amountOut: bigint;
76
+ fromToken: string;
77
+ toToken: string;
78
+ }>;
55
79
  }
56
80
  export interface ICalldata {
57
81
  to: string;
@@ -103,6 +127,7 @@ export declare enum DexType {
103
127
  CURVE128 = "curve128",
104
128
  CURVE256 = "curve256",
105
129
  CAMELOTV2 = "camelotv2",
130
+ CAMELOTV3 = "camelotv3",
106
131
  PANCAKEV2 = "pancakev2",
107
132
  AERODROME = "aerodrome",
108
133
  PANCAKEV3 = "pancakev3",
@@ -405,6 +430,7 @@ export declare const AddressConst: {
405
430
  };
406
431
  xaut: {
407
432
  avax: string;
433
+ arb: string;
408
434
  };
409
435
  link: {
410
436
  eth: string;
package/dist/esm/types.js CHANGED
@@ -4,6 +4,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
4
4
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
5
5
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
6
6
  import { EndpointId } from '@layerzerolabs/lz-definitions';
7
+ ;
7
8
  export var DexType = /*#__PURE__*/function (DexType) {
8
9
  DexType["FX"] = "f(x)";
9
10
  DexType["UNISWAPV2"] = "uniswapv2";
@@ -12,6 +13,7 @@ export var DexType = /*#__PURE__*/function (DexType) {
12
13
  DexType["CURVE128"] = "curve128";
13
14
  DexType["CURVE256"] = "curve256";
14
15
  DexType["CAMELOTV2"] = "camelotv2";
16
+ DexType["CAMELOTV3"] = "camelotv3";
15
17
  DexType["PANCAKEV2"] = "pancakev2";
16
18
  DexType["AERODROME"] = "aerodrome";
17
19
  DexType["PANCAKEV3"] = "pancakev3";
@@ -313,7 +315,8 @@ export var AddressConst = {
313
315
  avax: '0x6EDac263561DA41aDe155a992759260FAFb87B43'
314
316
  },
315
317
  xaut: {
316
- avax: '0x2775d5105276781B4b85bA6eA6a6653bEeD1dd32'
318
+ avax: '0x2775d5105276781B4b85bA6eA6a6653bEeD1dd32',
319
+ arb: '0x40461291347e1eCbb09499F3371D3f17f10d7159'
317
320
  },
318
321
  link: {
319
322
  eth: '0x514910771AF9Ca656af840dff83E8264EcF986CA'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hermes-swap",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "A TypeScript utility library for swap and bridge",
5
5
  "type": "module",
6
6
  "main": "dist/esm/index.js",
@@ -48,7 +48,9 @@
48
48
  "typescript": "^5.9.2"
49
49
  },
50
50
  "dependencies": {
51
+ "@flashbots/ethers-provider-bundle": "^1.0.0",
51
52
  "@layerzerolabs/lz-definitions": "3.0.126",
53
+ "axios": "^1.13.2",
52
54
  "dotenv": "^17.2.3",
53
55
  "ethers": "^6.15.0"
54
56
  }