hermes-swap 0.0.31 → 0.0.32
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/index.d.ts +8 -3
- package/dist/cjs/index.js +112 -64
- package/dist/cjs/types.d.ts +22 -2
- package/dist/cjs/types.js +22 -2
- package/dist/esm/index.d.ts +8 -3
- package/dist/esm/index.js +395 -171
- package/dist/esm/types.d.ts +22 -2
- package/dist/esm/types.js +22 -2
- package/package.json +1 -1
package/dist/esm/types.d.ts
CHANGED
|
@@ -109,7 +109,9 @@ export declare enum DexType {
|
|
|
109
109
|
VSDCRVWITHDRAW = "vsdCRV_withdraw",
|
|
110
110
|
VSDCRVDEPOSIT = "vsdCRV_deposit",
|
|
111
111
|
ASDCRVWITHDRAW = "asdCRV_withdraw",
|
|
112
|
-
ASDCRVDEPOSIT = "asdCRV_deposit"
|
|
112
|
+
ASDCRVDEPOSIT = "asdCRV_deposit",
|
|
113
|
+
SHADOWV3 = "shadowv3",
|
|
114
|
+
FRAXSWAPV2 = "fraxswapv2"
|
|
113
115
|
}
|
|
114
116
|
export declare enum IEstimateType {
|
|
115
117
|
BRIDGE = "bridge",
|
|
@@ -122,7 +124,11 @@ export declare enum BridgeType {
|
|
|
122
124
|
LAYERZEROV1ADADEQEMPTY = "layerzero_v1_adapter_eq_empty",
|
|
123
125
|
LAYERZEROV1PKG = "layerzero_v1_pkg",
|
|
124
126
|
LAYERZEROV1PKGNOMIN = "layerzero_v1_pkg_no_min",
|
|
125
|
-
LAYERZEROV1OHM = "layerzero_v1_ohm"
|
|
127
|
+
LAYERZEROV1OHM = "layerzero_v1_ohm",
|
|
128
|
+
ARBETHBRIDGE = "arb_eth_bridge",
|
|
129
|
+
ETHARBBRIDGE = "eth_arb_bridge",
|
|
130
|
+
ORIGINALTOKENBRIDGE = "original_token_bridge",
|
|
131
|
+
WRAPPEDTOKENBRIDGE = "wrapped_token_bridge"
|
|
126
132
|
}
|
|
127
133
|
export declare enum ChainNameEnum {
|
|
128
134
|
ETH = "ETH",// Ethereum Mainnet
|
|
@@ -288,6 +294,13 @@ export declare const AddressConst: {
|
|
|
288
294
|
eth: string;
|
|
289
295
|
arb: string;
|
|
290
296
|
base: string;
|
|
297
|
+
etherlink: string;
|
|
298
|
+
};
|
|
299
|
+
wfrax: {
|
|
300
|
+
fraxtal: string;
|
|
301
|
+
};
|
|
302
|
+
frxusd: {
|
|
303
|
+
fraxtal: string;
|
|
291
304
|
};
|
|
292
305
|
seth: {
|
|
293
306
|
eth: string;
|
|
@@ -321,12 +334,19 @@ export declare const AddressConst: {
|
|
|
321
334
|
emp: {
|
|
322
335
|
base: string;
|
|
323
336
|
};
|
|
337
|
+
eul: {
|
|
338
|
+
sonic: string;
|
|
339
|
+
};
|
|
324
340
|
arb: {
|
|
325
341
|
arb: string;
|
|
326
342
|
};
|
|
327
343
|
usdc: {
|
|
328
344
|
arb: string;
|
|
329
345
|
eth: string;
|
|
346
|
+
sonic: string;
|
|
347
|
+
};
|
|
348
|
+
link: {
|
|
349
|
+
eth: string;
|
|
330
350
|
};
|
|
331
351
|
ohm: {
|
|
332
352
|
arb: string;
|
package/dist/esm/types.js
CHANGED
|
@@ -15,6 +15,8 @@ export var DexType = /*#__PURE__*/function (DexType) {
|
|
|
15
15
|
DexType["VSDCRVDEPOSIT"] = "vsdCRV_deposit";
|
|
16
16
|
DexType["ASDCRVWITHDRAW"] = "asdCRV_withdraw";
|
|
17
17
|
DexType["ASDCRVDEPOSIT"] = "asdCRV_deposit";
|
|
18
|
+
DexType["SHADOWV3"] = "shadowv3";
|
|
19
|
+
DexType["FRAXSWAPV2"] = "fraxswapv2";
|
|
18
20
|
return DexType;
|
|
19
21
|
}({});
|
|
20
22
|
export var IEstimateType = /*#__PURE__*/function (IEstimateType) {
|
|
@@ -30,6 +32,10 @@ export var BridgeType = /*#__PURE__*/function (BridgeType) {
|
|
|
30
32
|
BridgeType["LAYERZEROV1PKG"] = "layerzero_v1_pkg";
|
|
31
33
|
BridgeType["LAYERZEROV1PKGNOMIN"] = "layerzero_v1_pkg_no_min";
|
|
32
34
|
BridgeType["LAYERZEROV1OHM"] = "layerzero_v1_ohm";
|
|
35
|
+
BridgeType["ARBETHBRIDGE"] = "arb_eth_bridge";
|
|
36
|
+
BridgeType["ETHARBBRIDGE"] = "eth_arb_bridge";
|
|
37
|
+
BridgeType["ORIGINALTOKENBRIDGE"] = "original_token_bridge";
|
|
38
|
+
BridgeType["WRAPPEDTOKENBRIDGE"] = "wrapped_token_bridge";
|
|
33
39
|
return BridgeType;
|
|
34
40
|
}({});
|
|
35
41
|
export var ChainNameEnum = /*#__PURE__*/function (ChainNameEnum) {
|
|
@@ -192,7 +198,14 @@ export var AddressConst = {
|
|
|
192
198
|
weth: {
|
|
193
199
|
eth: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
|
|
194
200
|
arb: '0x82aF49447D8a07e3bd95BD0d56f35241523fBab1',
|
|
195
|
-
base: '0x4200000000000000000000000000000000000006'
|
|
201
|
+
base: '0x4200000000000000000000000000000000000006',
|
|
202
|
+
etherlink: '0xfc24f770F94edBca6D6f885E12d4317320BcB401'
|
|
203
|
+
},
|
|
204
|
+
wfrax: {
|
|
205
|
+
fraxtal: "0xFc00000000000000000000000000000000000002"
|
|
206
|
+
},
|
|
207
|
+
frxusd: {
|
|
208
|
+
fraxtal: "0xFc00000000000000000000000000000000000001"
|
|
196
209
|
},
|
|
197
210
|
seth: {
|
|
198
211
|
eth: '0x5e74C9036fb86BD7eCdcb084a0673EFc32eA31cb'
|
|
@@ -227,12 +240,19 @@ export var AddressConst = {
|
|
|
227
240
|
emp: {
|
|
228
241
|
base: '0x39D5313C3750140E5042887413bA8AA6145a9bd2'
|
|
229
242
|
},
|
|
243
|
+
eul: {
|
|
244
|
+
sonic: '0x8e15C8D399e86d4FD7B427D42f06c60cDD9397e7'
|
|
245
|
+
},
|
|
230
246
|
arb: {
|
|
231
247
|
arb: '0x912CE59144191C1204E64559FE8253a0e49E6548'
|
|
232
248
|
},
|
|
233
249
|
usdc: {
|
|
234
250
|
arb: '0xaf88d065e77c8cC2239327C5EDb3A432268e5831',
|
|
235
|
-
eth: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48'
|
|
251
|
+
eth: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
|
|
252
|
+
sonic: '0x29219dd400f2Bf60E5a23d13Be72B486D4038894'
|
|
253
|
+
},
|
|
254
|
+
link: {
|
|
255
|
+
eth: '0x514910771AF9Ca656af840dff83E8264EcF986CA'
|
|
236
256
|
},
|
|
237
257
|
ohm: {
|
|
238
258
|
arb: '0xf0cb2dc0db5e6c66B9a70Ac27B06b878da017028'
|