hermes-swap 0.0.22 → 0.0.24

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.
@@ -24,6 +24,8 @@ export interface IBridgeParams {
24
24
  bridgeAddress: string;
25
25
  tokenAddress: string;
26
26
  destChain: string;
27
+ destUser: string;
28
+ bridgeFee: bigint;
27
29
  extra?: BytesLike;
28
30
  }
29
31
  export interface ISwapAndBridgeParams {
@@ -36,6 +38,8 @@ export interface ISwapAndBridgeParams {
36
38
  bridgeAddress: string;
37
39
  tokenAddress: string;
38
40
  destChain: string;
41
+ destUser: string;
42
+ bridgeFee: bigint;
39
43
  extra?: BytesLike;
40
44
  }
41
45
  export interface IReceipt {
@@ -81,7 +85,14 @@ export interface ILog {
81
85
  args: any[];
82
86
  }
83
87
  export declare enum DexType {
84
- FX = "f(x)"
88
+ FX = "f(x)",
89
+ UNISWAPV2 = "uniswapv2",
90
+ CURVE128 = "curve128",
91
+ CURVE256 = "curve256"
92
+ }
93
+ export declare enum BridgeType {
94
+ LAYERZEROV1 = "layerzero_v1",
95
+ LAYERZEROV2 = "layerzero_v2"
85
96
  }
86
97
  export declare enum ChainNameEnum {
87
98
  ETH = "ETH",// Ethereum Mainnet
@@ -245,15 +256,24 @@ export interface IRpcConfig {
245
256
  export declare const AddressConst: {
246
257
  weth: {
247
258
  eth: string;
259
+ arb: string;
248
260
  };
249
261
  usdt: {
250
262
  eth: string;
251
263
  };
252
264
  feth: {
253
265
  eth: string;
266
+ arb: string;
254
267
  };
255
268
  xeth: {
256
269
  eth: string;
270
+ arb: string;
271
+ };
272
+ arb: {
273
+ arb: string;
274
+ };
275
+ usdc: {
276
+ arb: string;
257
277
  };
258
278
  };
259
279
  export interface IExpectPayload {
package/dist/esm/types.js CHANGED
@@ -1,7 +1,15 @@
1
1
  export var DexType = /*#__PURE__*/function (DexType) {
2
2
  DexType["FX"] = "f(x)";
3
+ DexType["UNISWAPV2"] = "uniswapv2";
4
+ DexType["CURVE128"] = "curve128";
5
+ DexType["CURVE256"] = "curve256";
3
6
  return DexType;
4
7
  }({});
8
+ export var BridgeType = /*#__PURE__*/function (BridgeType) {
9
+ BridgeType["LAYERZEROV1"] = "layerzero_v1";
10
+ BridgeType["LAYERZEROV2"] = "layerzero_v2";
11
+ return BridgeType;
12
+ }({});
5
13
  export var ChainNameEnum = /*#__PURE__*/function (ChainNameEnum) {
6
14
  ChainNameEnum["ETH"] = "ETH";
7
15
  ChainNameEnum["ARB"] = "ARB";
@@ -160,16 +168,25 @@ export var ChainNameEnum = /*#__PURE__*/function (ChainNameEnum) {
160
168
  }({}); // BEVM
161
169
  export var AddressConst = {
162
170
  weth: {
163
- eth: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2'
171
+ eth: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
172
+ arb: '0x82aF49447D8a07e3bd95BD0d56f35241523fBab1'
164
173
  },
165
174
  usdt: {
166
175
  eth: ''
167
176
  },
168
177
  // fx
169
178
  feth: {
170
- eth: '0x53805A76E1f5ebbFE7115F16f9c87C2f7e633726'
179
+ eth: '0x53805A76E1f5ebbFE7115F16f9c87C2f7e633726',
180
+ arb: '0xc608Dfb90A430Df79a8a1eDBC8be7f1A0Eb4E763'
171
181
  },
172
182
  xeth: {
173
- eth: '0xe063F04f280c60aECa68b38341C2eEcBeC703ae2'
183
+ eth: '0xe063F04f280c60aECa68b38341C2eEcBeC703ae2',
184
+ arb: '0x55380fe7A1910dFf29A47B622057ab4139DA42C5'
185
+ },
186
+ arb: {
187
+ arb: '0x912CE59144191C1204E64559FE8253a0e49E6548'
188
+ },
189
+ usdc: {
190
+ arb: '0xaf88d065e77c8cC2239327C5EDb3A432268e5831'
174
191
  }
175
192
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hermes-swap",
3
- "version": "0.0.22",
3
+ "version": "0.0.24",
4
4
  "description": "A TypeScript utility library for swap and bridge",
5
5
  "type": "module",
6
6
  "main": "dist/esm/index.js",