@rabby-wallet/rabby-bridge 0.0.5-beta.0 → 0.0.6
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/README.md +12 -12
- package/dist/chains.d.ts +2 -1
- package/dist/chains.js +2 -0
- package/dist/consts.d.ts +1 -2
- package/dist/consts.js +0 -1
- package/dist/data.d.ts +6 -43
- package/dist/data.js +5 -45
- package/package.json +36 -36
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
# rabby-bridge
|
|
2
|
-
|
|
3
|
-
Minimal bridge SDK for Rabby:
|
|
4
|
-
|
|
5
|
-
- enumerates supported bridge aggregators and chains
|
|
6
|
-
- maintains per-chain spender/router allowlists
|
|
7
|
-
- validates backend bridge quotes before returning them
|
|
8
|
-
- does not implement calldata decoding
|
|
9
|
-
|
|
10
|
-
## Test
|
|
11
|
-
|
|
12
|
-
Run `yarn test` to build the package and execute the Jest suite.
|
|
1
|
+
# rabby-bridge
|
|
2
|
+
|
|
3
|
+
Minimal bridge SDK for Rabby:
|
|
4
|
+
|
|
5
|
+
- enumerates supported bridge aggregators and chains
|
|
6
|
+
- maintains per-chain spender/router allowlists
|
|
7
|
+
- validates backend bridge quotes before returning them
|
|
8
|
+
- does not implement calldata decoding
|
|
9
|
+
|
|
10
|
+
## Test
|
|
11
|
+
|
|
12
|
+
Run `yarn test` to build the package and execute the Jest suite.
|
package/dist/chains.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CHAINS_ENUM as DBK_CHAINS_ENUM } from '@debank/common';
|
|
2
2
|
export declare const CHAINS_ENUM: typeof DBK_CHAINS_ENUM;
|
|
3
|
-
export declare const EXTRA_CHAINS: readonly ["XDC", "UNI", "RONIN", "XLAYER", "MONAD", "SONIC", "LENS", "WORLD", "STABLE", "HYPER", "LISK", "SEI", "GRAVITY", "SONEIUM", "SWELL", "ABS", "MORPH", "TEMPO", "MEGAETH", "PLASMA", "APE", "HEMI", "SOPHON", "INK", "BOB", "BERA", "PLUME", "TAIKO", "KATANA", "STORY", "CYBER", "ZIRCUIT"];
|
|
3
|
+
export declare const EXTRA_CHAINS: readonly ["XDC", "UNI", "RONIN", "XLAYER", "MONAD", "SONIC", "LENS", "WORLD", "STABLE", "HYPER", "LISK", "SEI", "GRAVITY", "SONEIUM", "SWELL", "ABS", "MORPH", "TEMPO", "MEGAETH", "PLASMA", "APE", "HEMI", "SOPHON", "INK", "BOB", "BERA", "PLUME", "TAIKO", "KATANA", "STORY", "CYBER", "ZIRCUIT", "HOOD"];
|
|
4
4
|
export type ExtraChainEnum = (typeof EXTRA_CHAINS)[number];
|
|
5
5
|
export type ChainEnum = DBK_CHAINS_ENUM | ExtraChainEnum;
|
|
6
6
|
export declare const SERVER_ID_TO_CHAIN_ENUM: {
|
|
@@ -60,6 +60,7 @@ export declare const SERVER_ID_TO_CHAIN_ENUM: {
|
|
|
60
60
|
readonly story: ChainEnum;
|
|
61
61
|
readonly cyber: ChainEnum;
|
|
62
62
|
readonly zircuit: ChainEnum;
|
|
63
|
+
readonly hood: ChainEnum;
|
|
63
64
|
readonly zora: DBK_CHAINS_ENUM.ZORA;
|
|
64
65
|
};
|
|
65
66
|
export declare const CHAIN_ENUM_TO_SERVER_ID: Record<ChainEnum, string>;
|
package/dist/chains.js
CHANGED
|
@@ -33,6 +33,7 @@ export const EXTRA_CHAINS = [
|
|
|
33
33
|
'STORY',
|
|
34
34
|
'CYBER',
|
|
35
35
|
'ZIRCUIT',
|
|
36
|
+
'HOOD',
|
|
36
37
|
];
|
|
37
38
|
export const SERVER_ID_TO_CHAIN_ENUM = {
|
|
38
39
|
eth: CHAINS_ENUM.ETH,
|
|
@@ -91,6 +92,7 @@ export const SERVER_ID_TO_CHAIN_ENUM = {
|
|
|
91
92
|
story: 'STORY',
|
|
92
93
|
cyber: 'CYBER',
|
|
93
94
|
zircuit: 'ZIRCUIT',
|
|
95
|
+
hood: 'HOOD',
|
|
94
96
|
zora: CHAINS_ENUM.ZORA,
|
|
95
97
|
};
|
|
96
98
|
export const CHAIN_ENUM_TO_SERVER_ID = Object.fromEntries(Object.entries(SERVER_ID_TO_CHAIN_ENUM).map(([serverId, chainEnum]) => [
|
package/dist/consts.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const BRIDGE_AGGREGATORS: readonly ["lifi", "bungee", "relay", "stargate", "near_intents", "mayan", "across"
|
|
1
|
+
export declare const BRIDGE_AGGREGATORS: readonly ["lifi", "bungee", "relay", "stargate", "near_intents", "mayan", "across"];
|
|
2
2
|
export declare const BRIDGE_ENUM: {
|
|
3
3
|
readonly LIFI: "lifi";
|
|
4
4
|
readonly BUNGEE: "bungee";
|
|
@@ -7,6 +7,5 @@ export declare const BRIDGE_ENUM: {
|
|
|
7
7
|
readonly NEAR_INTENTS: "near_intents";
|
|
8
8
|
readonly MAYAN: "mayan";
|
|
9
9
|
readonly ACROSS: "across";
|
|
10
|
-
readonly SOCKET: "socket";
|
|
11
10
|
};
|
|
12
11
|
export type BridgeAggregatorId = (typeof BRIDGE_AGGREGATORS)[number];
|
package/dist/consts.js
CHANGED
package/dist/data.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ChainEnum } from './chains.js';
|
|
2
|
-
export declare const SUPPORTED_AGGREGATORS: readonly ["lifi", "bungee", "relay", "stargate", "near_intents", "mayan", "across"
|
|
2
|
+
export declare const SUPPORTED_AGGREGATORS: readonly ["lifi", "bungee", "relay", "stargate", "near_intents", "mayan", "across"];
|
|
3
3
|
declare const EXTRA_CHAINS: {
|
|
4
4
|
readonly XDC: ChainEnum;
|
|
5
5
|
readonly UNI: ChainEnum;
|
|
@@ -33,6 +33,7 @@ declare const EXTRA_CHAINS: {
|
|
|
33
33
|
readonly STORY: ChainEnum;
|
|
34
34
|
readonly CYBER: ChainEnum;
|
|
35
35
|
readonly ZIRCUIT: ChainEnum;
|
|
36
|
+
readonly HOOD: ChainEnum;
|
|
36
37
|
};
|
|
37
38
|
export declare const BRIDGE_SUPPORT_CHAINS_DATA: {
|
|
38
39
|
readonly near_intents: [import("@debank/common").CHAINS_ENUM.ETH, import("@debank/common").CHAINS_ENUM.ARBITRUM, import("@debank/common").CHAINS_ENUM.BASE, import("@debank/common").CHAINS_ENUM.BSC, import("@debank/common").CHAINS_ENUM.POLYGON, import("@debank/common").CHAINS_ENUM.OP, import("@debank/common").CHAINS_ENUM.AVAX, import("@debank/common").CHAINS_ENUM.GNOSIS, import("@debank/common").CHAINS_ENUM.SCRL, ChainEnum, ChainEnum];
|
|
@@ -140,6 +141,7 @@ export declare const BRIDGE_SPENDER_WHITELIST_DATA: {
|
|
|
140
141
|
readonly [EXTRA_CHAINS.MONAD]: "0x4cd00e387622c35bddb9b4c962c136462338bc31";
|
|
141
142
|
readonly [EXTRA_CHAINS.MEGAETH]: "0x4cd00e387622c35bddb9b4c962c136462338bc31";
|
|
142
143
|
readonly [EXTRA_CHAINS.PLASMA]: "0x4cd00e387622c35bddb9b4c962c136462338bc31";
|
|
144
|
+
readonly [EXTRA_CHAINS.HOOD]: "0x4cd00e387622c35bddb9b4c962c136462338bc31";
|
|
143
145
|
readonly ETH: "0x4cd00e387622c35bddb9b4c962c136462338bc31";
|
|
144
146
|
readonly OP: "0x4cd00e387622c35bddb9b4c962c136462338bc31";
|
|
145
147
|
readonly CRO: "0x59916da825d2d2ec1bf878d71c88826f6633ecca";
|
|
@@ -208,6 +210,7 @@ export declare const BRIDGE_SPENDER_WHITELIST_DATA: {
|
|
|
208
210
|
readonly [EXTRA_CHAINS.MEGAETH]: "0x3db06da8f0a24a525f314eec954fc5c6a973d40e";
|
|
209
211
|
readonly [EXTRA_CHAINS.MONAD]: "0xd2ecb3afe598b746f8123cae365a598da831a449";
|
|
210
212
|
readonly [EXTRA_CHAINS.PLASMA]: "0x50039faefebef707cfd94d6d462fe6d10b39207a";
|
|
213
|
+
readonly [EXTRA_CHAINS.HOOD]: "0xD29C85F15DF544bA632C9E25829fd29d767d7978";
|
|
211
214
|
readonly ETH: "0x5c7bcd6e7de5423a257d81b442095a1a6ced35c5";
|
|
212
215
|
readonly OP: "0x6f26bf09b1c792e3228e5467807a900a503c0281";
|
|
213
216
|
readonly ARBITRUM: "0xe35e9842fceaca96570b734083f4a58e8f7c5f2a";
|
|
@@ -220,27 +223,6 @@ export declare const BRIDGE_SPENDER_WHITELIST_DATA: {
|
|
|
220
223
|
readonly ZORA: "0x13fdac9f9b4777705db45291bbff3c972c6d1d97";
|
|
221
224
|
readonly BLAST: "0x2d509190ed0172ba588407d4c2df918f955cc6e1";
|
|
222
225
|
};
|
|
223
|
-
readonly socket: {
|
|
224
|
-
readonly [EXTRA_CHAINS.SONIC]: "0x50c4e75a512f2a14a7b304787adf79c4531a5909";
|
|
225
|
-
readonly [EXTRA_CHAINS.BERA]: "0x50c4e75a512f2a14a7b304787adf79c4531a5909";
|
|
226
|
-
readonly [EXTRA_CHAINS.UNI]: "0x50c4e75a512f2a14a7b304787adf79c4531a5909";
|
|
227
|
-
readonly [EXTRA_CHAINS.INK]: "0x50c4e75a512f2a14a7b304787adf79c4531a5909";
|
|
228
|
-
readonly [EXTRA_CHAINS.WORLD]: "0x50c4e75a512f2a14a7b304787adf79c4531a5909";
|
|
229
|
-
readonly [EXTRA_CHAINS.HYPER]: "0x50c4e75a512f2a14a7b304787adf79c4531a5909";
|
|
230
|
-
readonly ETH: "0x50c4e75a512f2a14a7b304787adf79c4531a5909";
|
|
231
|
-
readonly ARBITRUM: "0x50c4e75a512f2a14a7b304787adf79c4531a5909";
|
|
232
|
-
readonly OP: "0x50c4e75a512f2a14a7b304787adf79c4531a5909";
|
|
233
|
-
readonly BASE: "0x50c4e75a512f2a14a7b304787adf79c4531a5909";
|
|
234
|
-
readonly POLYGON: "0x50c4e75a512f2a14a7b304787adf79c4531a5909";
|
|
235
|
-
readonly BSC: "0x50c4e75a512f2a14a7b304787adf79c4531a5909";
|
|
236
|
-
readonly AVAX: "0x50c4e75a512f2a14a7b304787adf79c4531a5909";
|
|
237
|
-
readonly GNOSIS: "0x50c4e75a512f2a14a7b304787adf79c4531a5909";
|
|
238
|
-
readonly LINEA: "0x50c4e75a512f2a14a7b304787adf79c4531a5909";
|
|
239
|
-
readonly SCRL: "0x50c4e75a512f2a14a7b304787adf79c4531a5909";
|
|
240
|
-
readonly BLAST: "0x50c4e75a512f2a14a7b304787adf79c4531a5909";
|
|
241
|
-
readonly MODE: "0x50c4e75a512f2a14a7b304787adf79c4531a5909";
|
|
242
|
-
readonly MANTLE: "0x50c4e75a512f2a14a7b304787adf79c4531a5909";
|
|
243
|
-
};
|
|
244
226
|
};
|
|
245
227
|
export declare const BRIDGE_ALT_CONTRACTS_DATA: {
|
|
246
228
|
readonly across: readonly ["0x10d8b8daa26d307489803e10477de69c0492b610", "0x5a148a9260c1f670429361c34d40b477280f01a9"];
|
|
@@ -349,6 +331,7 @@ export declare const BRIDGE_ROUTER_WHITELIST_DATA: {
|
|
|
349
331
|
readonly [EXTRA_CHAINS.MONAD]: "0x4cd00e387622c35bddb9b4c962c136462338bc31";
|
|
350
332
|
readonly [EXTRA_CHAINS.MEGAETH]: "0x4cd00e387622c35bddb9b4c962c136462338bc31";
|
|
351
333
|
readonly [EXTRA_CHAINS.PLASMA]: "0x4cd00e387622c35bddb9b4c962c136462338bc31";
|
|
334
|
+
readonly [EXTRA_CHAINS.HOOD]: "0x4cd00e387622c35bddb9b4c962c136462338bc31";
|
|
352
335
|
readonly ETH: "0x4cd00e387622c35bddb9b4c962c136462338bc31";
|
|
353
336
|
readonly OP: "0x4cd00e387622c35bddb9b4c962c136462338bc31";
|
|
354
337
|
readonly CRO: "0x59916da825d2d2ec1bf878d71c88826f6633ecca";
|
|
@@ -417,6 +400,7 @@ export declare const BRIDGE_ROUTER_WHITELIST_DATA: {
|
|
|
417
400
|
readonly [EXTRA_CHAINS.MEGAETH]: "0x3db06da8f0a24a525f314eec954fc5c6a973d40e";
|
|
418
401
|
readonly [EXTRA_CHAINS.MONAD]: "0xd2ecb3afe598b746f8123cae365a598da831a449";
|
|
419
402
|
readonly [EXTRA_CHAINS.PLASMA]: "0x50039faefebef707cfd94d6d462fe6d10b39207a";
|
|
403
|
+
readonly [EXTRA_CHAINS.HOOD]: "0xD29C85F15DF544bA632C9E25829fd29d767d7978";
|
|
420
404
|
readonly ETH: "0x5c7bcd6e7de5423a257d81b442095a1a6ced35c5";
|
|
421
405
|
readonly OP: "0x6f26bf09b1c792e3228e5467807a900a503c0281";
|
|
422
406
|
readonly ARBITRUM: "0xe35e9842fceaca96570b734083f4a58e8f7c5f2a";
|
|
@@ -429,26 +413,5 @@ export declare const BRIDGE_ROUTER_WHITELIST_DATA: {
|
|
|
429
413
|
readonly ZORA: "0x13fdac9f9b4777705db45291bbff3c972c6d1d97";
|
|
430
414
|
readonly BLAST: "0x2d509190ed0172ba588407d4c2df918f955cc6e1";
|
|
431
415
|
};
|
|
432
|
-
readonly socket: {
|
|
433
|
-
readonly [EXTRA_CHAINS.SONIC]: "0x50c4e75a512f2a14a7b304787adf79c4531a5909";
|
|
434
|
-
readonly [EXTRA_CHAINS.BERA]: "0x50c4e75a512f2a14a7b304787adf79c4531a5909";
|
|
435
|
-
readonly [EXTRA_CHAINS.UNI]: "0x50c4e75a512f2a14a7b304787adf79c4531a5909";
|
|
436
|
-
readonly [EXTRA_CHAINS.INK]: "0x50c4e75a512f2a14a7b304787adf79c4531a5909";
|
|
437
|
-
readonly [EXTRA_CHAINS.WORLD]: "0x50c4e75a512f2a14a7b304787adf79c4531a5909";
|
|
438
|
-
readonly [EXTRA_CHAINS.HYPER]: "0x50c4e75a512f2a14a7b304787adf79c4531a5909";
|
|
439
|
-
readonly ETH: "0x50c4e75a512f2a14a7b304787adf79c4531a5909";
|
|
440
|
-
readonly ARBITRUM: "0x50c4e75a512f2a14a7b304787adf79c4531a5909";
|
|
441
|
-
readonly OP: "0x50c4e75a512f2a14a7b304787adf79c4531a5909";
|
|
442
|
-
readonly BASE: "0x50c4e75a512f2a14a7b304787adf79c4531a5909";
|
|
443
|
-
readonly POLYGON: "0x50c4e75a512f2a14a7b304787adf79c4531a5909";
|
|
444
|
-
readonly BSC: "0x50c4e75a512f2a14a7b304787adf79c4531a5909";
|
|
445
|
-
readonly AVAX: "0x50c4e75a512f2a14a7b304787adf79c4531a5909";
|
|
446
|
-
readonly GNOSIS: "0x50c4e75a512f2a14a7b304787adf79c4531a5909";
|
|
447
|
-
readonly LINEA: "0x50c4e75a512f2a14a7b304787adf79c4531a5909";
|
|
448
|
-
readonly SCRL: "0x50c4e75a512f2a14a7b304787adf79c4531a5909";
|
|
449
|
-
readonly BLAST: "0x50c4e75a512f2a14a7b304787adf79c4531a5909";
|
|
450
|
-
readonly MODE: "0x50c4e75a512f2a14a7b304787adf79c4531a5909";
|
|
451
|
-
readonly MANTLE: "0x50c4e75a512f2a14a7b304787adf79c4531a5909";
|
|
452
|
-
};
|
|
453
416
|
};
|
|
454
417
|
export {};
|
package/dist/data.js
CHANGED
|
@@ -7,7 +7,6 @@ export const SUPPORTED_AGGREGATORS = [
|
|
|
7
7
|
'near_intents',
|
|
8
8
|
'mayan',
|
|
9
9
|
'across',
|
|
10
|
-
'socket',
|
|
11
10
|
];
|
|
12
11
|
const EXTRA_CHAINS = {
|
|
13
12
|
XDC: 'XDC',
|
|
@@ -42,6 +41,7 @@ const EXTRA_CHAINS = {
|
|
|
42
41
|
STORY: 'STORY',
|
|
43
42
|
CYBER: 'CYBER',
|
|
44
43
|
ZIRCUIT: 'ZIRCUIT',
|
|
44
|
+
HOOD: 'HOOD',
|
|
45
45
|
};
|
|
46
46
|
export const BRIDGE_SUPPORT_CHAINS_DATA = {
|
|
47
47
|
near_intents: [
|
|
@@ -180,6 +180,7 @@ export const BRIDGE_SPENDER_WHITELIST_DATA = {
|
|
|
180
180
|
[EXTRA_CHAINS.MONAD]: '0x4cd00e387622c35bddb9b4c962c136462338bc31',
|
|
181
181
|
[EXTRA_CHAINS.MEGAETH]: '0x4cd00e387622c35bddb9b4c962c136462338bc31',
|
|
182
182
|
[EXTRA_CHAINS.PLASMA]: '0x4cd00e387622c35bddb9b4c962c136462338bc31',
|
|
183
|
+
[EXTRA_CHAINS.HOOD]: '0x4cd00e387622c35bddb9b4c962c136462338bc31',
|
|
183
184
|
},
|
|
184
185
|
stargate: {
|
|
185
186
|
[CHAINS_ENUM.BASE]: '0x8eca03175fd5ac62fb6f4ecbb9a95d13dcdcb4f8',
|
|
@@ -242,28 +243,7 @@ export const BRIDGE_SPENDER_WHITELIST_DATA = {
|
|
|
242
243
|
[EXTRA_CHAINS.MEGAETH]: '0x3db06da8f0a24a525f314eec954fc5c6a973d40e',
|
|
243
244
|
[EXTRA_CHAINS.MONAD]: '0xd2ecb3afe598b746f8123cae365a598da831a449',
|
|
244
245
|
[EXTRA_CHAINS.PLASMA]: '0x50039faefebef707cfd94d6d462fe6d10b39207a',
|
|
245
|
-
|
|
246
|
-
// Socket Swap V3 的 Allowance Holder,所有链同址(approve spender == tx.to)。
|
|
247
|
-
socket: {
|
|
248
|
-
[CHAINS_ENUM.ETH]: '0x50c4e75a512f2a14a7b304787adf79c4531a5909',
|
|
249
|
-
[CHAINS_ENUM.ARBITRUM]: '0x50c4e75a512f2a14a7b304787adf79c4531a5909',
|
|
250
|
-
[CHAINS_ENUM.OP]: '0x50c4e75a512f2a14a7b304787adf79c4531a5909',
|
|
251
|
-
[CHAINS_ENUM.BASE]: '0x50c4e75a512f2a14a7b304787adf79c4531a5909',
|
|
252
|
-
[CHAINS_ENUM.POLYGON]: '0x50c4e75a512f2a14a7b304787adf79c4531a5909',
|
|
253
|
-
[CHAINS_ENUM.BSC]: '0x50c4e75a512f2a14a7b304787adf79c4531a5909',
|
|
254
|
-
[CHAINS_ENUM.AVAX]: '0x50c4e75a512f2a14a7b304787adf79c4531a5909',
|
|
255
|
-
[CHAINS_ENUM.GNOSIS]: '0x50c4e75a512f2a14a7b304787adf79c4531a5909',
|
|
256
|
-
[CHAINS_ENUM.LINEA]: '0x50c4e75a512f2a14a7b304787adf79c4531a5909',
|
|
257
|
-
[CHAINS_ENUM.SCRL]: '0x50c4e75a512f2a14a7b304787adf79c4531a5909',
|
|
258
|
-
[CHAINS_ENUM.BLAST]: '0x50c4e75a512f2a14a7b304787adf79c4531a5909',
|
|
259
|
-
[CHAINS_ENUM.MODE]: '0x50c4e75a512f2a14a7b304787adf79c4531a5909',
|
|
260
|
-
[CHAINS_ENUM.MANTLE]: '0x50c4e75a512f2a14a7b304787adf79c4531a5909',
|
|
261
|
-
[EXTRA_CHAINS.SONIC]: '0x50c4e75a512f2a14a7b304787adf79c4531a5909',
|
|
262
|
-
[EXTRA_CHAINS.BERA]: '0x50c4e75a512f2a14a7b304787adf79c4531a5909',
|
|
263
|
-
[EXTRA_CHAINS.UNI]: '0x50c4e75a512f2a14a7b304787adf79c4531a5909',
|
|
264
|
-
[EXTRA_CHAINS.INK]: '0x50c4e75a512f2a14a7b304787adf79c4531a5909',
|
|
265
|
-
[EXTRA_CHAINS.WORLD]: '0x50c4e75a512f2a14a7b304787adf79c4531a5909',
|
|
266
|
-
[EXTRA_CHAINS.HYPER]: '0x50c4e75a512f2a14a7b304787adf79c4531a5909',
|
|
246
|
+
[EXTRA_CHAINS.HOOD]: '0xD29C85F15DF544bA632C9E25829fd29d767d7978',
|
|
267
247
|
},
|
|
268
248
|
};
|
|
269
249
|
// 部分聚合器除逐链合约外,API 还可能路由到全局合约(同时作为 approve 目标与 tx.to)。
|
|
@@ -404,6 +384,7 @@ export const BRIDGE_ROUTER_WHITELIST_DATA = {
|
|
|
404
384
|
[EXTRA_CHAINS.MONAD]: '0x4cd00e387622c35bddb9b4c962c136462338bc31',
|
|
405
385
|
[EXTRA_CHAINS.MEGAETH]: '0x4cd00e387622c35bddb9b4c962c136462338bc31',
|
|
406
386
|
[EXTRA_CHAINS.PLASMA]: '0x4cd00e387622c35bddb9b4c962c136462338bc31',
|
|
387
|
+
[EXTRA_CHAINS.HOOD]: '0x4cd00e387622c35bddb9b4c962c136462338bc31',
|
|
407
388
|
},
|
|
408
389
|
stargate: {
|
|
409
390
|
[CHAINS_ENUM.BASE]: '0x7e07a9148e9149e430c6412b79a675028595ff1f',
|
|
@@ -466,27 +447,6 @@ export const BRIDGE_ROUTER_WHITELIST_DATA = {
|
|
|
466
447
|
[EXTRA_CHAINS.MEGAETH]: '0x3db06da8f0a24a525f314eec954fc5c6a973d40e',
|
|
467
448
|
[EXTRA_CHAINS.MONAD]: '0xd2ecb3afe598b746f8123cae365a598da831a449',
|
|
468
449
|
[EXTRA_CHAINS.PLASMA]: '0x50039faefebef707cfd94d6d462fe6d10b39207a',
|
|
469
|
-
|
|
470
|
-
// Socket Swap V3 的 Allowance Holder,所有链同址(tx.to == approve spender)。
|
|
471
|
-
socket: {
|
|
472
|
-
[CHAINS_ENUM.ETH]: '0x50c4e75a512f2a14a7b304787adf79c4531a5909',
|
|
473
|
-
[CHAINS_ENUM.ARBITRUM]: '0x50c4e75a512f2a14a7b304787adf79c4531a5909',
|
|
474
|
-
[CHAINS_ENUM.OP]: '0x50c4e75a512f2a14a7b304787adf79c4531a5909',
|
|
475
|
-
[CHAINS_ENUM.BASE]: '0x50c4e75a512f2a14a7b304787adf79c4531a5909',
|
|
476
|
-
[CHAINS_ENUM.POLYGON]: '0x50c4e75a512f2a14a7b304787adf79c4531a5909',
|
|
477
|
-
[CHAINS_ENUM.BSC]: '0x50c4e75a512f2a14a7b304787adf79c4531a5909',
|
|
478
|
-
[CHAINS_ENUM.AVAX]: '0x50c4e75a512f2a14a7b304787adf79c4531a5909',
|
|
479
|
-
[CHAINS_ENUM.GNOSIS]: '0x50c4e75a512f2a14a7b304787adf79c4531a5909',
|
|
480
|
-
[CHAINS_ENUM.LINEA]: '0x50c4e75a512f2a14a7b304787adf79c4531a5909',
|
|
481
|
-
[CHAINS_ENUM.SCRL]: '0x50c4e75a512f2a14a7b304787adf79c4531a5909',
|
|
482
|
-
[CHAINS_ENUM.BLAST]: '0x50c4e75a512f2a14a7b304787adf79c4531a5909',
|
|
483
|
-
[CHAINS_ENUM.MODE]: '0x50c4e75a512f2a14a7b304787adf79c4531a5909',
|
|
484
|
-
[CHAINS_ENUM.MANTLE]: '0x50c4e75a512f2a14a7b304787adf79c4531a5909',
|
|
485
|
-
[EXTRA_CHAINS.SONIC]: '0x50c4e75a512f2a14a7b304787adf79c4531a5909',
|
|
486
|
-
[EXTRA_CHAINS.BERA]: '0x50c4e75a512f2a14a7b304787adf79c4531a5909',
|
|
487
|
-
[EXTRA_CHAINS.UNI]: '0x50c4e75a512f2a14a7b304787adf79c4531a5909',
|
|
488
|
-
[EXTRA_CHAINS.INK]: '0x50c4e75a512f2a14a7b304787adf79c4531a5909',
|
|
489
|
-
[EXTRA_CHAINS.WORLD]: '0x50c4e75a512f2a14a7b304787adf79c4531a5909',
|
|
490
|
-
[EXTRA_CHAINS.HYPER]: '0x50c4e75a512f2a14a7b304787adf79c4531a5909',
|
|
450
|
+
[EXTRA_CHAINS.HOOD]: '0xD29C85F15DF544bA632C9E25829fd29d767d7978',
|
|
491
451
|
},
|
|
492
452
|
};
|
package/package.json
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@rabby-wallet/rabby-bridge",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "Bridge quote helpers and contract allowlists for Rabby",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "./dist/index.js",
|
|
7
|
-
"module": "./dist/index.js",
|
|
8
|
-
"types": "./dist/index.d.ts",
|
|
9
|
-
"exports": {
|
|
10
|
-
".": {
|
|
11
|
-
"types": "./dist/index.d.ts",
|
|
12
|
-
"import": "./dist/index.js"
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
"files": [
|
|
16
|
-
"dist"
|
|
17
|
-
],
|
|
18
|
-
"peerDependencies": {
|
|
19
|
-
"@debank/common": ">=0.3.60",
|
|
20
|
-
"@rabby-wallet/rabby-api": ">=0.9.58"
|
|
21
|
-
},
|
|
22
|
-
"scripts": {
|
|
23
|
-
"prepublishOnly": "yarn build",
|
|
24
|
-
"build": "rimraf dist && tsc",
|
|
25
|
-
"test": "yarn build && NODE_OPTIONS=--experimental-vm-modules jest --runInBand --watchman=false"
|
|
26
|
-
},
|
|
27
|
-
"devDependencies": {
|
|
28
|
-
"@debank/common": "^0.3.60",
|
|
29
|
-
"@rabby-wallet/rabby-api": "^0.9.58",
|
|
30
|
-
"@types/node": "^18.19.0",
|
|
31
|
-
"jest": "^29.7.0",
|
|
32
|
-
"rimraf": "^3.0.2",
|
|
33
|
-
"typescript": "^5.8.3"
|
|
34
|
-
},
|
|
35
|
-
"packageManager": "yarn@4.12.0"
|
|
36
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@rabby-wallet/rabby-bridge",
|
|
3
|
+
"version": "0.0.6",
|
|
4
|
+
"description": "Bridge quote helpers and contract allowlists for Rabby",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"peerDependencies": {
|
|
19
|
+
"@debank/common": ">=0.3.60",
|
|
20
|
+
"@rabby-wallet/rabby-api": ">=0.9.58"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"prepublishOnly": "yarn build",
|
|
24
|
+
"build": "rimraf dist && tsc",
|
|
25
|
+
"test": "yarn build && NODE_OPTIONS=--experimental-vm-modules jest --runInBand --watchman=false"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@debank/common": "^0.3.60",
|
|
29
|
+
"@rabby-wallet/rabby-api": "^0.9.58",
|
|
30
|
+
"@types/node": "^18.19.0",
|
|
31
|
+
"jest": "^29.7.0",
|
|
32
|
+
"rimraf": "^3.0.2",
|
|
33
|
+
"typescript": "^5.8.3"
|
|
34
|
+
},
|
|
35
|
+
"packageManager": "yarn@4.12.0"
|
|
36
|
+
}
|