@rhinestone/shared-configs 2.10.0 → 2.11.1
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/configs/chains.json +93 -22
- package/dist/scripts/validation.d.ts +1 -1
- package/dist/scripts/validation.js +2 -0
- package/dist/src/chains.js +93 -22
- package/dist/src/generated/packageVersion.d.ts +1 -1
- package/dist/src/generated/packageVersion.js +1 -1
- package/dist/src/index.d.ts +2 -2
- package/dist/src/types.d.ts +21 -2
- package/package.json +1 -1
package/dist/configs/chains.json
CHANGED
|
@@ -24,6 +24,9 @@
|
|
|
24
24
|
"cctp": {
|
|
25
25
|
"domain": 0
|
|
26
26
|
},
|
|
27
|
+
"lz": {
|
|
28
|
+
"chainKey": "ethereum"
|
|
29
|
+
},
|
|
27
30
|
"near": {
|
|
28
31
|
"prefix": "eth"
|
|
29
32
|
},
|
|
@@ -44,7 +47,8 @@
|
|
|
44
47
|
"OFT",
|
|
45
48
|
"NEAR",
|
|
46
49
|
"RHINO",
|
|
47
|
-
"CCTP"
|
|
50
|
+
"CCTP",
|
|
51
|
+
"LZ"
|
|
48
52
|
],
|
|
49
53
|
"stack": "vanilla",
|
|
50
54
|
"swapQuoterConfig": {},
|
|
@@ -159,6 +163,9 @@
|
|
|
159
163
|
"cctp": {
|
|
160
164
|
"domain": 2
|
|
161
165
|
},
|
|
166
|
+
"lz": {
|
|
167
|
+
"chainKey": "optimism"
|
|
168
|
+
},
|
|
162
169
|
"near": {
|
|
163
170
|
"prefix": "op"
|
|
164
171
|
},
|
|
@@ -179,7 +186,8 @@
|
|
|
179
186
|
"OFT",
|
|
180
187
|
"NEAR",
|
|
181
188
|
"RHINO",
|
|
182
|
-
"CCTP"
|
|
189
|
+
"CCTP",
|
|
190
|
+
"LZ"
|
|
183
191
|
],
|
|
184
192
|
"stack": "op-stack",
|
|
185
193
|
"swapQuoterConfig": {},
|
|
@@ -320,8 +328,8 @@
|
|
|
320
328
|
"publicRpcUrl": "https://56.rpc.thirdweb.com",
|
|
321
329
|
"sessionCapable": true,
|
|
322
330
|
"settlementConfig": {
|
|
323
|
-
"
|
|
324
|
-
"
|
|
331
|
+
"lz": {
|
|
332
|
+
"chainKey": "bsc"
|
|
325
333
|
},
|
|
326
334
|
"near": {
|
|
327
335
|
"prefix": "bsc"
|
|
@@ -337,7 +345,7 @@
|
|
|
337
345
|
"RELAY",
|
|
338
346
|
"NEAR",
|
|
339
347
|
"RHINO",
|
|
340
|
-
"
|
|
348
|
+
"LZ"
|
|
341
349
|
],
|
|
342
350
|
"stack": "vanilla",
|
|
343
351
|
"swapQuoters": [
|
|
@@ -420,6 +428,9 @@
|
|
|
420
428
|
"publicRpcUrl": "https://rpc.gnosischain.com",
|
|
421
429
|
"sessionCapable": true,
|
|
422
430
|
"settlementConfig": {
|
|
431
|
+
"lz": {
|
|
432
|
+
"chainKey": "gnosis"
|
|
433
|
+
},
|
|
423
434
|
"near": {
|
|
424
435
|
"prefix": "gnosis"
|
|
425
436
|
},
|
|
@@ -431,7 +442,8 @@
|
|
|
431
442
|
"settlementLayers": [
|
|
432
443
|
"RELAY",
|
|
433
444
|
"NEAR",
|
|
434
|
-
"RHINO"
|
|
445
|
+
"RHINO",
|
|
446
|
+
"LZ"
|
|
435
447
|
],
|
|
436
448
|
"stack": "vanilla",
|
|
437
449
|
"swapQuoters": [
|
|
@@ -498,6 +510,9 @@
|
|
|
498
510
|
"cctp": {
|
|
499
511
|
"domain": 10
|
|
500
512
|
},
|
|
513
|
+
"lz": {
|
|
514
|
+
"chainKey": "unichain"
|
|
515
|
+
},
|
|
501
516
|
"oft": {
|
|
502
517
|
"adapter": "0xc07bE8994D035631c36fb4a89C918CeFB2f03EC3",
|
|
503
518
|
"chainKey": "unichain",
|
|
@@ -509,7 +524,8 @@
|
|
|
509
524
|
"ECO",
|
|
510
525
|
"RELAY",
|
|
511
526
|
"OFT",
|
|
512
|
-
"CCTP"
|
|
527
|
+
"CCTP",
|
|
528
|
+
"LZ"
|
|
513
529
|
],
|
|
514
530
|
"stack": "op-stack",
|
|
515
531
|
"swapQuoterConfig": {},
|
|
@@ -634,6 +650,9 @@
|
|
|
634
650
|
"cctp": {
|
|
635
651
|
"domain": 7
|
|
636
652
|
},
|
|
653
|
+
"lz": {
|
|
654
|
+
"chainKey": "polygon"
|
|
655
|
+
},
|
|
637
656
|
"near": {
|
|
638
657
|
"prefix": "pol"
|
|
639
658
|
},
|
|
@@ -654,7 +673,8 @@
|
|
|
654
673
|
"OFT",
|
|
655
674
|
"NEAR",
|
|
656
675
|
"RHINO",
|
|
657
|
-
"CCTP"
|
|
676
|
+
"CCTP",
|
|
677
|
+
"LZ"
|
|
658
678
|
],
|
|
659
679
|
"stack": "vanilla",
|
|
660
680
|
"swapQuoterConfig": {},
|
|
@@ -663,8 +683,7 @@
|
|
|
663
683
|
"0x",
|
|
664
684
|
"velora",
|
|
665
685
|
"fynd",
|
|
666
|
-
"relay"
|
|
667
|
-
"bebop"
|
|
686
|
+
"relay"
|
|
668
687
|
],
|
|
669
688
|
"tokens": [
|
|
670
689
|
{
|
|
@@ -771,12 +790,16 @@
|
|
|
771
790
|
"settlementConfig": {
|
|
772
791
|
"cctp": {
|
|
773
792
|
"domain": 15
|
|
793
|
+
},
|
|
794
|
+
"lz": {
|
|
795
|
+
"chainKey": "monad"
|
|
774
796
|
}
|
|
775
797
|
},
|
|
776
798
|
"settlementLayers": [
|
|
777
799
|
"ACROSS",
|
|
778
800
|
"RELAY",
|
|
779
|
-
"CCTP"
|
|
801
|
+
"CCTP",
|
|
802
|
+
"LZ"
|
|
780
803
|
],
|
|
781
804
|
"stack": "vanilla",
|
|
782
805
|
"swapQuoters": [
|
|
@@ -887,12 +910,16 @@
|
|
|
887
910
|
"settlementConfig": {
|
|
888
911
|
"cctp": {
|
|
889
912
|
"domain": 13
|
|
913
|
+
},
|
|
914
|
+
"lz": {
|
|
915
|
+
"chainKey": "sonic"
|
|
890
916
|
}
|
|
891
917
|
},
|
|
892
918
|
"settlementLayers": [
|
|
893
919
|
"ECO",
|
|
894
920
|
"RELAY",
|
|
895
|
-
"CCTP"
|
|
921
|
+
"CCTP",
|
|
922
|
+
"LZ"
|
|
896
923
|
],
|
|
897
924
|
"stack": "vanilla",
|
|
898
925
|
"swapQuoterConfig": {},
|
|
@@ -958,6 +985,9 @@
|
|
|
958
985
|
"publicRpcUrl": "https://xlayerrpc.okx.com",
|
|
959
986
|
"sessionCapable": false,
|
|
960
987
|
"settlementConfig": {
|
|
988
|
+
"lz": {
|
|
989
|
+
"chainKey": "xlayer"
|
|
990
|
+
},
|
|
961
991
|
"near": {
|
|
962
992
|
"prefix": "xlayer"
|
|
963
993
|
},
|
|
@@ -969,7 +999,8 @@
|
|
|
969
999
|
},
|
|
970
1000
|
"settlementLayers": [
|
|
971
1001
|
"OFT",
|
|
972
|
-
"NEAR"
|
|
1002
|
+
"NEAR",
|
|
1003
|
+
"LZ"
|
|
973
1004
|
],
|
|
974
1005
|
"stack": "vanilla",
|
|
975
1006
|
"swapQuoters": [],
|
|
@@ -1057,6 +1088,9 @@
|
|
|
1057
1088
|
"cctp": {
|
|
1058
1089
|
"domain": 19
|
|
1059
1090
|
},
|
|
1091
|
+
"lz": {
|
|
1092
|
+
"chainKey": "hyperliquid"
|
|
1093
|
+
},
|
|
1060
1094
|
"rhino": {
|
|
1061
1095
|
"bridgeContract": "0x5e023c31e1d3dcd08a1b3e8c96f6ef8aa8fcacd1",
|
|
1062
1096
|
"chainName": "HYPEREVM"
|
|
@@ -1067,7 +1101,8 @@
|
|
|
1067
1101
|
"ECO",
|
|
1068
1102
|
"RELAY",
|
|
1069
1103
|
"RHINO",
|
|
1070
|
-
"CCTP"
|
|
1104
|
+
"CCTP",
|
|
1105
|
+
"LZ"
|
|
1071
1106
|
],
|
|
1072
1107
|
"stack": "vanilla",
|
|
1073
1108
|
"swapQuoters": [
|
|
@@ -1159,9 +1194,15 @@
|
|
|
1159
1194
|
},
|
|
1160
1195
|
"publicRpcUrl": "https://rpc.soneium.org",
|
|
1161
1196
|
"sessionCapable": true,
|
|
1197
|
+
"settlementConfig": {
|
|
1198
|
+
"lz": {
|
|
1199
|
+
"chainKey": "soneium"
|
|
1200
|
+
}
|
|
1201
|
+
},
|
|
1162
1202
|
"settlementLayers": [
|
|
1163
1203
|
"ACROSS",
|
|
1164
|
-
"RELAY"
|
|
1204
|
+
"RELAY",
|
|
1205
|
+
"LZ"
|
|
1165
1206
|
],
|
|
1166
1207
|
"stack": "op-stack",
|
|
1167
1208
|
"swapQuoters": [],
|
|
@@ -1254,9 +1295,15 @@
|
|
|
1254
1295
|
},
|
|
1255
1296
|
"publicRpcUrl": "https://rpc.mainnet.chain.robinhood.com",
|
|
1256
1297
|
"sessionCapable": true,
|
|
1298
|
+
"settlementConfig": {
|
|
1299
|
+
"lz": {
|
|
1300
|
+
"chainKey": "robinhood"
|
|
1301
|
+
}
|
|
1302
|
+
},
|
|
1257
1303
|
"settlementLayers": [
|
|
1258
1304
|
"ACROSS",
|
|
1259
|
-
"RELAY"
|
|
1305
|
+
"RELAY",
|
|
1306
|
+
"LZ"
|
|
1260
1307
|
],
|
|
1261
1308
|
"stack": "vanilla",
|
|
1262
1309
|
"swapQuoters": [
|
|
@@ -1357,6 +1404,9 @@
|
|
|
1357
1404
|
"cctp": {
|
|
1358
1405
|
"domain": 6
|
|
1359
1406
|
},
|
|
1407
|
+
"lz": {
|
|
1408
|
+
"chainKey": "base"
|
|
1409
|
+
},
|
|
1360
1410
|
"near": {
|
|
1361
1411
|
"prefix": "base"
|
|
1362
1412
|
},
|
|
@@ -1371,7 +1421,8 @@
|
|
|
1371
1421
|
"RELAY",
|
|
1372
1422
|
"NEAR",
|
|
1373
1423
|
"RHINO",
|
|
1374
|
-
"CCTP"
|
|
1424
|
+
"CCTP",
|
|
1425
|
+
"LZ"
|
|
1375
1426
|
],
|
|
1376
1427
|
"stack": "op-stack",
|
|
1377
1428
|
"swapQuoterConfig": {},
|
|
@@ -1467,6 +1518,9 @@
|
|
|
1467
1518
|
"publicRpcUrl": "https://rpc.plasma.to",
|
|
1468
1519
|
"sessionCapable": true,
|
|
1469
1520
|
"settlementConfig": {
|
|
1521
|
+
"lz": {
|
|
1522
|
+
"chainKey": "plasma"
|
|
1523
|
+
},
|
|
1470
1524
|
"oft": {
|
|
1471
1525
|
"adapter": "0x02ca37966753bDdDf11216B73B16C1dE756A7CF9",
|
|
1472
1526
|
"chainKey": "plasma",
|
|
@@ -1482,7 +1536,8 @@
|
|
|
1482
1536
|
"ECO",
|
|
1483
1537
|
"RELAY",
|
|
1484
1538
|
"OFT",
|
|
1485
|
-
"RHINO"
|
|
1539
|
+
"RHINO",
|
|
1540
|
+
"LZ"
|
|
1486
1541
|
],
|
|
1487
1542
|
"stack": "vanilla",
|
|
1488
1543
|
"swapQuoterConfig": {},
|
|
@@ -1625,6 +1680,9 @@
|
|
|
1625
1680
|
"cctp": {
|
|
1626
1681
|
"domain": 3
|
|
1627
1682
|
},
|
|
1683
|
+
"lz": {
|
|
1684
|
+
"chainKey": "arbitrum"
|
|
1685
|
+
},
|
|
1628
1686
|
"near": {
|
|
1629
1687
|
"prefix": "arb"
|
|
1630
1688
|
},
|
|
@@ -1645,7 +1703,8 @@
|
|
|
1645
1703
|
"OFT",
|
|
1646
1704
|
"NEAR",
|
|
1647
1705
|
"RHINO",
|
|
1648
|
-
"CCTP"
|
|
1706
|
+
"CCTP",
|
|
1707
|
+
"LZ"
|
|
1649
1708
|
],
|
|
1650
1709
|
"stack": "vanilla",
|
|
1651
1710
|
"swapQuoterConfig": {},
|
|
@@ -1788,6 +1847,9 @@
|
|
|
1788
1847
|
"cctp": {
|
|
1789
1848
|
"domain": 1
|
|
1790
1849
|
},
|
|
1850
|
+
"lz": {
|
|
1851
|
+
"chainKey": "avalanche"
|
|
1852
|
+
},
|
|
1791
1853
|
"near": {
|
|
1792
1854
|
"prefix": "avax"
|
|
1793
1855
|
},
|
|
@@ -1801,7 +1863,8 @@
|
|
|
1801
1863
|
"RELAY",
|
|
1802
1864
|
"NEAR",
|
|
1803
1865
|
"RHINO",
|
|
1804
|
-
"CCTP"
|
|
1866
|
+
"CCTP",
|
|
1867
|
+
"LZ"
|
|
1805
1868
|
],
|
|
1806
1869
|
"stack": "vanilla",
|
|
1807
1870
|
"swapQuoters": [
|
|
@@ -1926,6 +1989,9 @@
|
|
|
1926
1989
|
"cctp": {
|
|
1927
1990
|
"domain": 21
|
|
1928
1991
|
},
|
|
1992
|
+
"lz": {
|
|
1993
|
+
"chainKey": "ink"
|
|
1994
|
+
},
|
|
1929
1995
|
"oft": {
|
|
1930
1996
|
"adapter": "0x1cB6De532588fCA4a21B7209DE7C456AF8434A65",
|
|
1931
1997
|
"chainKey": "ink",
|
|
@@ -1942,7 +2008,8 @@
|
|
|
1942
2008
|
"RELAY",
|
|
1943
2009
|
"OFT",
|
|
1944
2010
|
"RHINO",
|
|
1945
|
-
"CCTP"
|
|
2011
|
+
"CCTP",
|
|
2012
|
+
"LZ"
|
|
1946
2013
|
],
|
|
1947
2014
|
"stack": "op-stack",
|
|
1948
2015
|
"swapQuoters": [
|
|
@@ -2241,6 +2308,9 @@
|
|
|
2241
2308
|
"publicRpcUrl": "https://rpc.katana.network",
|
|
2242
2309
|
"sessionCapable": true,
|
|
2243
2310
|
"settlementConfig": {
|
|
2311
|
+
"lz": {
|
|
2312
|
+
"chainKey": "katana"
|
|
2313
|
+
},
|
|
2244
2314
|
"rhino": {
|
|
2245
2315
|
"bridgeContract": "0x04317f0e4795b1e1bab333234153fa10aaac79e9",
|
|
2246
2316
|
"chainName": "KATANA"
|
|
@@ -2248,7 +2318,8 @@
|
|
|
2248
2318
|
},
|
|
2249
2319
|
"settlementLayers": [
|
|
2250
2320
|
"RELAY",
|
|
2251
|
-
"RHINO"
|
|
2321
|
+
"RHINO",
|
|
2322
|
+
"LZ"
|
|
2252
2323
|
],
|
|
2253
2324
|
"stack": "vanilla",
|
|
2254
2325
|
"swapQuoters": [],
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type SettlementLayer = 'ACROSS' | 'ECO' | 'RELAY' | 'OFT' | 'NEAR' | 'RHINO' | 'CCTP';
|
|
1
|
+
export type SettlementLayer = 'ACROSS' | 'ECO' | 'RELAY' | 'OFT' | 'NEAR' | 'RHINO' | 'CCTP' | 'LZ';
|
|
2
2
|
export type ChainNetwork = 'mainnet' | 'testnet';
|
|
3
3
|
/**
|
|
4
4
|
* Which execution stack a chain runs, for consumers that must build a viem
|
|
@@ -63,6 +63,7 @@ const SETTLEMENT_LAYERS = new Set([
|
|
|
63
63
|
'NEAR',
|
|
64
64
|
'RHINO',
|
|
65
65
|
'CCTP',
|
|
66
|
+
'LZ',
|
|
66
67
|
]);
|
|
67
68
|
const SWAP_QUOTERS = new Set([
|
|
68
69
|
'1inch',
|
|
@@ -121,6 +122,7 @@ const SETTLEMENT_CONFIG_SCHEMA = {
|
|
|
121
122
|
chainKey: isNonEmptyString,
|
|
122
123
|
},
|
|
123
124
|
},
|
|
125
|
+
LZ: { key: 'lz', required: { chainKey: isNonEmptyString } },
|
|
124
126
|
};
|
|
125
127
|
// Optional payload fields, shape-checked only when present. `bridgeContract` is
|
|
126
128
|
// absent for a destination-only chain, which nothing originates from.
|
package/dist/src/chains.js
CHANGED
|
@@ -27,6 +27,9 @@ const chains = {
|
|
|
27
27
|
"cctp": {
|
|
28
28
|
"domain": 0
|
|
29
29
|
},
|
|
30
|
+
"lz": {
|
|
31
|
+
"chainKey": "ethereum"
|
|
32
|
+
},
|
|
30
33
|
"near": {
|
|
31
34
|
"prefix": "eth"
|
|
32
35
|
},
|
|
@@ -47,7 +50,8 @@ const chains = {
|
|
|
47
50
|
"OFT",
|
|
48
51
|
"NEAR",
|
|
49
52
|
"RHINO",
|
|
50
|
-
"CCTP"
|
|
53
|
+
"CCTP",
|
|
54
|
+
"LZ"
|
|
51
55
|
],
|
|
52
56
|
"stack": "vanilla",
|
|
53
57
|
"swapQuoterConfig": {},
|
|
@@ -166,6 +170,9 @@ const chains = {
|
|
|
166
170
|
"cctp": {
|
|
167
171
|
"domain": 2
|
|
168
172
|
},
|
|
173
|
+
"lz": {
|
|
174
|
+
"chainKey": "optimism"
|
|
175
|
+
},
|
|
169
176
|
"near": {
|
|
170
177
|
"prefix": "op"
|
|
171
178
|
},
|
|
@@ -186,7 +193,8 @@ const chains = {
|
|
|
186
193
|
"OFT",
|
|
187
194
|
"NEAR",
|
|
188
195
|
"RHINO",
|
|
189
|
-
"CCTP"
|
|
196
|
+
"CCTP",
|
|
197
|
+
"LZ"
|
|
190
198
|
],
|
|
191
199
|
"stack": "op-stack",
|
|
192
200
|
"swapQuoterConfig": {},
|
|
@@ -331,8 +339,8 @@ const chains = {
|
|
|
331
339
|
"publicRpcUrl": "https://56.rpc.thirdweb.com",
|
|
332
340
|
"sessionCapable": true,
|
|
333
341
|
"settlementConfig": {
|
|
334
|
-
"
|
|
335
|
-
"
|
|
342
|
+
"lz": {
|
|
343
|
+
"chainKey": "bsc"
|
|
336
344
|
},
|
|
337
345
|
"near": {
|
|
338
346
|
"prefix": "bsc"
|
|
@@ -348,7 +356,7 @@ const chains = {
|
|
|
348
356
|
"RELAY",
|
|
349
357
|
"NEAR",
|
|
350
358
|
"RHINO",
|
|
351
|
-
"
|
|
359
|
+
"LZ"
|
|
352
360
|
],
|
|
353
361
|
"stack": "vanilla",
|
|
354
362
|
"swapQuoters": [
|
|
@@ -435,6 +443,9 @@ const chains = {
|
|
|
435
443
|
"publicRpcUrl": "https://rpc.gnosischain.com",
|
|
436
444
|
"sessionCapable": true,
|
|
437
445
|
"settlementConfig": {
|
|
446
|
+
"lz": {
|
|
447
|
+
"chainKey": "gnosis"
|
|
448
|
+
},
|
|
438
449
|
"near": {
|
|
439
450
|
"prefix": "gnosis"
|
|
440
451
|
},
|
|
@@ -446,7 +457,8 @@ const chains = {
|
|
|
446
457
|
"settlementLayers": [
|
|
447
458
|
"RELAY",
|
|
448
459
|
"NEAR",
|
|
449
|
-
"RHINO"
|
|
460
|
+
"RHINO",
|
|
461
|
+
"LZ"
|
|
450
462
|
],
|
|
451
463
|
"stack": "vanilla",
|
|
452
464
|
"swapQuoters": [
|
|
@@ -518,6 +530,9 @@ const chains = {
|
|
|
518
530
|
"cctp": {
|
|
519
531
|
"domain": 10
|
|
520
532
|
},
|
|
533
|
+
"lz": {
|
|
534
|
+
"chainKey": "unichain"
|
|
535
|
+
},
|
|
521
536
|
"oft": {
|
|
522
537
|
"adapter": "0xc07bE8994D035631c36fb4a89C918CeFB2f03EC3",
|
|
523
538
|
"chainKey": "unichain",
|
|
@@ -529,7 +544,8 @@ const chains = {
|
|
|
529
544
|
"ECO",
|
|
530
545
|
"RELAY",
|
|
531
546
|
"OFT",
|
|
532
|
-
"CCTP"
|
|
547
|
+
"CCTP",
|
|
548
|
+
"LZ"
|
|
533
549
|
],
|
|
534
550
|
"stack": "op-stack",
|
|
535
551
|
"swapQuoterConfig": {},
|
|
@@ -658,6 +674,9 @@ const chains = {
|
|
|
658
674
|
"cctp": {
|
|
659
675
|
"domain": 7
|
|
660
676
|
},
|
|
677
|
+
"lz": {
|
|
678
|
+
"chainKey": "polygon"
|
|
679
|
+
},
|
|
661
680
|
"near": {
|
|
662
681
|
"prefix": "pol"
|
|
663
682
|
},
|
|
@@ -678,7 +697,8 @@ const chains = {
|
|
|
678
697
|
"OFT",
|
|
679
698
|
"NEAR",
|
|
680
699
|
"RHINO",
|
|
681
|
-
"CCTP"
|
|
700
|
+
"CCTP",
|
|
701
|
+
"LZ"
|
|
682
702
|
],
|
|
683
703
|
"stack": "vanilla",
|
|
684
704
|
"swapQuoterConfig": {},
|
|
@@ -687,8 +707,7 @@ const chains = {
|
|
|
687
707
|
"0x",
|
|
688
708
|
"velora",
|
|
689
709
|
"fynd",
|
|
690
|
-
"relay"
|
|
691
|
-
"bebop"
|
|
710
|
+
"relay"
|
|
692
711
|
],
|
|
693
712
|
"tokens": [
|
|
694
713
|
{
|
|
@@ -799,12 +818,16 @@ const chains = {
|
|
|
799
818
|
"settlementConfig": {
|
|
800
819
|
"cctp": {
|
|
801
820
|
"domain": 15
|
|
821
|
+
},
|
|
822
|
+
"lz": {
|
|
823
|
+
"chainKey": "monad"
|
|
802
824
|
}
|
|
803
825
|
},
|
|
804
826
|
"settlementLayers": [
|
|
805
827
|
"ACROSS",
|
|
806
828
|
"RELAY",
|
|
807
|
-
"CCTP"
|
|
829
|
+
"CCTP",
|
|
830
|
+
"LZ"
|
|
808
831
|
],
|
|
809
832
|
"stack": "vanilla",
|
|
810
833
|
"swapQuoters": [
|
|
@@ -919,12 +942,16 @@ const chains = {
|
|
|
919
942
|
"settlementConfig": {
|
|
920
943
|
"cctp": {
|
|
921
944
|
"domain": 13
|
|
945
|
+
},
|
|
946
|
+
"lz": {
|
|
947
|
+
"chainKey": "sonic"
|
|
922
948
|
}
|
|
923
949
|
},
|
|
924
950
|
"settlementLayers": [
|
|
925
951
|
"ECO",
|
|
926
952
|
"RELAY",
|
|
927
|
-
"CCTP"
|
|
953
|
+
"CCTP",
|
|
954
|
+
"LZ"
|
|
928
955
|
],
|
|
929
956
|
"stack": "vanilla",
|
|
930
957
|
"swapQuoterConfig": {},
|
|
@@ -994,6 +1021,9 @@ const chains = {
|
|
|
994
1021
|
"publicRpcUrl": "https://xlayerrpc.okx.com",
|
|
995
1022
|
"sessionCapable": false,
|
|
996
1023
|
"settlementConfig": {
|
|
1024
|
+
"lz": {
|
|
1025
|
+
"chainKey": "xlayer"
|
|
1026
|
+
},
|
|
997
1027
|
"near": {
|
|
998
1028
|
"prefix": "xlayer"
|
|
999
1029
|
},
|
|
@@ -1005,7 +1035,8 @@ const chains = {
|
|
|
1005
1035
|
},
|
|
1006
1036
|
"settlementLayers": [
|
|
1007
1037
|
"OFT",
|
|
1008
|
-
"NEAR"
|
|
1038
|
+
"NEAR",
|
|
1039
|
+
"LZ"
|
|
1009
1040
|
],
|
|
1010
1041
|
"stack": "vanilla",
|
|
1011
1042
|
"swapQuoters": [],
|
|
@@ -1097,6 +1128,9 @@ const chains = {
|
|
|
1097
1128
|
"cctp": {
|
|
1098
1129
|
"domain": 19
|
|
1099
1130
|
},
|
|
1131
|
+
"lz": {
|
|
1132
|
+
"chainKey": "hyperliquid"
|
|
1133
|
+
},
|
|
1100
1134
|
"rhino": {
|
|
1101
1135
|
"bridgeContract": "0x5e023c31e1d3dcd08a1b3e8c96f6ef8aa8fcacd1",
|
|
1102
1136
|
"chainName": "HYPEREVM"
|
|
@@ -1107,7 +1141,8 @@ const chains = {
|
|
|
1107
1141
|
"ECO",
|
|
1108
1142
|
"RELAY",
|
|
1109
1143
|
"RHINO",
|
|
1110
|
-
"CCTP"
|
|
1144
|
+
"CCTP",
|
|
1145
|
+
"LZ"
|
|
1111
1146
|
],
|
|
1112
1147
|
"stack": "vanilla",
|
|
1113
1148
|
"swapQuoters": [
|
|
@@ -1204,9 +1239,15 @@ const chains = {
|
|
|
1204
1239
|
},
|
|
1205
1240
|
"publicRpcUrl": "https://rpc.soneium.org",
|
|
1206
1241
|
"sessionCapable": true,
|
|
1242
|
+
"settlementConfig": {
|
|
1243
|
+
"lz": {
|
|
1244
|
+
"chainKey": "soneium"
|
|
1245
|
+
}
|
|
1246
|
+
},
|
|
1207
1247
|
"settlementLayers": [
|
|
1208
1248
|
"ACROSS",
|
|
1209
|
-
"RELAY"
|
|
1249
|
+
"RELAY",
|
|
1250
|
+
"LZ"
|
|
1210
1251
|
],
|
|
1211
1252
|
"stack": "op-stack",
|
|
1212
1253
|
"swapQuoters": [],
|
|
@@ -1303,9 +1344,15 @@ const chains = {
|
|
|
1303
1344
|
},
|
|
1304
1345
|
"publicRpcUrl": "https://rpc.mainnet.chain.robinhood.com",
|
|
1305
1346
|
"sessionCapable": true,
|
|
1347
|
+
"settlementConfig": {
|
|
1348
|
+
"lz": {
|
|
1349
|
+
"chainKey": "robinhood"
|
|
1350
|
+
}
|
|
1351
|
+
},
|
|
1306
1352
|
"settlementLayers": [
|
|
1307
1353
|
"ACROSS",
|
|
1308
|
-
"RELAY"
|
|
1354
|
+
"RELAY",
|
|
1355
|
+
"LZ"
|
|
1309
1356
|
],
|
|
1310
1357
|
"stack": "vanilla",
|
|
1311
1358
|
"swapQuoters": [
|
|
@@ -1410,6 +1457,9 @@ const chains = {
|
|
|
1410
1457
|
"cctp": {
|
|
1411
1458
|
"domain": 6
|
|
1412
1459
|
},
|
|
1460
|
+
"lz": {
|
|
1461
|
+
"chainKey": "base"
|
|
1462
|
+
},
|
|
1413
1463
|
"near": {
|
|
1414
1464
|
"prefix": "base"
|
|
1415
1465
|
},
|
|
@@ -1424,7 +1474,8 @@ const chains = {
|
|
|
1424
1474
|
"RELAY",
|
|
1425
1475
|
"NEAR",
|
|
1426
1476
|
"RHINO",
|
|
1427
|
-
"CCTP"
|
|
1477
|
+
"CCTP",
|
|
1478
|
+
"LZ"
|
|
1428
1479
|
],
|
|
1429
1480
|
"stack": "op-stack",
|
|
1430
1481
|
"swapQuoterConfig": {},
|
|
@@ -1524,6 +1575,9 @@ const chains = {
|
|
|
1524
1575
|
"publicRpcUrl": "https://rpc.plasma.to",
|
|
1525
1576
|
"sessionCapable": true,
|
|
1526
1577
|
"settlementConfig": {
|
|
1578
|
+
"lz": {
|
|
1579
|
+
"chainKey": "plasma"
|
|
1580
|
+
},
|
|
1527
1581
|
"oft": {
|
|
1528
1582
|
"adapter": "0x02ca37966753bDdDf11216B73B16C1dE756A7CF9",
|
|
1529
1583
|
"chainKey": "plasma",
|
|
@@ -1539,7 +1593,8 @@ const chains = {
|
|
|
1539
1593
|
"ECO",
|
|
1540
1594
|
"RELAY",
|
|
1541
1595
|
"OFT",
|
|
1542
|
-
"RHINO"
|
|
1596
|
+
"RHINO",
|
|
1597
|
+
"LZ"
|
|
1543
1598
|
],
|
|
1544
1599
|
"stack": "vanilla",
|
|
1545
1600
|
"swapQuoterConfig": {},
|
|
@@ -1692,6 +1747,9 @@ const chains = {
|
|
|
1692
1747
|
"cctp": {
|
|
1693
1748
|
"domain": 3
|
|
1694
1749
|
},
|
|
1750
|
+
"lz": {
|
|
1751
|
+
"chainKey": "arbitrum"
|
|
1752
|
+
},
|
|
1695
1753
|
"near": {
|
|
1696
1754
|
"prefix": "arb"
|
|
1697
1755
|
},
|
|
@@ -1712,7 +1770,8 @@ const chains = {
|
|
|
1712
1770
|
"OFT",
|
|
1713
1771
|
"NEAR",
|
|
1714
1772
|
"RHINO",
|
|
1715
|
-
"CCTP"
|
|
1773
|
+
"CCTP",
|
|
1774
|
+
"LZ"
|
|
1716
1775
|
],
|
|
1717
1776
|
"stack": "vanilla",
|
|
1718
1777
|
"swapQuoterConfig": {},
|
|
@@ -1859,6 +1918,9 @@ const chains = {
|
|
|
1859
1918
|
"cctp": {
|
|
1860
1919
|
"domain": 1
|
|
1861
1920
|
},
|
|
1921
|
+
"lz": {
|
|
1922
|
+
"chainKey": "avalanche"
|
|
1923
|
+
},
|
|
1862
1924
|
"near": {
|
|
1863
1925
|
"prefix": "avax"
|
|
1864
1926
|
},
|
|
@@ -1872,7 +1934,8 @@ const chains = {
|
|
|
1872
1934
|
"RELAY",
|
|
1873
1935
|
"NEAR",
|
|
1874
1936
|
"RHINO",
|
|
1875
|
-
"CCTP"
|
|
1937
|
+
"CCTP",
|
|
1938
|
+
"LZ"
|
|
1876
1939
|
],
|
|
1877
1940
|
"stack": "vanilla",
|
|
1878
1941
|
"swapQuoters": [
|
|
@@ -2001,6 +2064,9 @@ const chains = {
|
|
|
2001
2064
|
"cctp": {
|
|
2002
2065
|
"domain": 21
|
|
2003
2066
|
},
|
|
2067
|
+
"lz": {
|
|
2068
|
+
"chainKey": "ink"
|
|
2069
|
+
},
|
|
2004
2070
|
"oft": {
|
|
2005
2071
|
"adapter": "0x1cB6De532588fCA4a21B7209DE7C456AF8434A65",
|
|
2006
2072
|
"chainKey": "ink",
|
|
@@ -2017,7 +2083,8 @@ const chains = {
|
|
|
2017
2083
|
"RELAY",
|
|
2018
2084
|
"OFT",
|
|
2019
2085
|
"RHINO",
|
|
2020
|
-
"CCTP"
|
|
2086
|
+
"CCTP",
|
|
2087
|
+
"LZ"
|
|
2021
2088
|
],
|
|
2022
2089
|
"stack": "op-stack",
|
|
2023
2090
|
"swapQuoters": [
|
|
@@ -2328,6 +2395,9 @@ const chains = {
|
|
|
2328
2395
|
"publicRpcUrl": "https://rpc.katana.network",
|
|
2329
2396
|
"sessionCapable": true,
|
|
2330
2397
|
"settlementConfig": {
|
|
2398
|
+
"lz": {
|
|
2399
|
+
"chainKey": "katana"
|
|
2400
|
+
},
|
|
2331
2401
|
"rhino": {
|
|
2332
2402
|
"bridgeContract": "0x04317f0e4795b1e1bab333234153fa10aaac79e9",
|
|
2333
2403
|
"chainName": "KATANA"
|
|
@@ -2335,7 +2405,8 @@ const chains = {
|
|
|
2335
2405
|
},
|
|
2336
2406
|
"settlementLayers": [
|
|
2337
2407
|
"RELAY",
|
|
2338
|
-
"RHINO"
|
|
2408
|
+
"RHINO",
|
|
2409
|
+
"LZ"
|
|
2339
2410
|
],
|
|
2340
2411
|
"stack": "vanilla",
|
|
2341
2412
|
"swapQuoters": [],
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const PACKAGE_VERSION = "2.
|
|
1
|
+
declare const PACKAGE_VERSION = "2.11.1";
|
|
2
2
|
export { PACKAGE_VERSION };
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PACKAGE_VERSION = void 0;
|
|
4
4
|
// Auto-generated by scripts/generate.ts. Do not edit manually.
|
|
5
|
-
const PACKAGE_VERSION = "2.
|
|
5
|
+
const PACKAGE_VERSION = "2.11.1";
|
|
6
6
|
exports.PACKAGE_VERSION = PACKAGE_VERSION;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { contractAddresses } from "./generated/contracts";
|
|
2
2
|
import { contractAddresses as contractAddressesDev } from "./generated/contracts.dev";
|
|
3
|
-
import type { CctpChainConfig, ChainEntry, ChainExplorer, ChainItem, ChainList, ChainNetwork, ChainStack, ChainRegistry, ChainRoles, NearChainConfig, OftChainConfig, ProviderName, ProviderRegistry, RhinoChainConfig, SettlementConfig, SettlementLayer, SupportedChain, SupportedMainnet, SupportedOPStackMainnet, SupportedOPStackTestnet, SupportedTestnet, SwapQuoter, TokenAuthorization, TokenAuthorizationDomain, TokenAuthorizationStandard, TokenEntry } from "./types";
|
|
3
|
+
import type { CctpChainConfig, ChainEntry, ChainExplorer, ChainItem, ChainList, ChainNetwork, ChainStack, ChainRegistry, ChainRoles, LzChainConfig, NearChainConfig, OftChainConfig, ProviderName, ProviderRegistry, RhinoChainConfig, SettlementConfig, SettlementLayer, SupportedChain, SupportedMainnet, SupportedOPStackMainnet, SupportedOPStackTestnet, SupportedTestnet, SwapQuoter, TokenAuthorization, TokenAuthorizationDomain, TokenAuthorizationStandard, TokenEntry } from "./types";
|
|
4
4
|
import { chains, MainnetNetwork, mainnetChains, OPStackChains, TestnetNetwork, testnetChains } from "./types";
|
|
5
5
|
import type { PegGroup } from "./types";
|
|
6
6
|
import { getOftConfig, getSupportedOftTokens, hasOftSupport, OFT_REGISTRY } from "./oft";
|
|
@@ -16,5 +16,5 @@ declare const mainnetChainList: ChainList;
|
|
|
16
16
|
declare const testnetChainList: ChainList;
|
|
17
17
|
declare function chainHasUnpricedTokens(chainId: number): boolean;
|
|
18
18
|
export { chainRegistry, providerRegistry, mainnetChainList, testnetChainList, contractAddresses, contractAddressesDev, chains, mainnetChains, testnetChains, MainnetNetwork, OPStackChains, TestnetNetwork, OFT_REGISTRY, getOftConfig, hasOftSupport, getSupportedOftTokens, chainHasUnpricedTokens, HYPERCORE_SPOT_CHAIN_ID, HYPERCORE_PERP_CHAIN_ID, HYPERCORE_ORIGIN_CHAIN_ID, getHyperCoreDestinationDex, HYPERCORE_SETTLEMENT_CHAIN_ID, CORE_WRITER_PRECOMPILE, CORE_DEPOSIT_WALLET, HYPERCORE_SPOT_DEX, HYPERCORE_DEFAULT_PERP_DEX, HYPERCORE_USDC_ACTIVATION_FEE, getApproveCoreDepositWalletCall, getDepositForCall, isHyperCoreChainId, resolveSettlementChainId, canBeOrigin, canBeDestination, isNonEvmChainId, getNonEvmChainIds, getCaip2, chainIdFromCaip2, createChainFactsClient, CHAIN_FACTS_LATEST_URL, CHAIN_FACTS_PUBLIC_KEY, };
|
|
19
|
-
export type { ChainEntry, ChainExplorer, ChainItem, ChainList, ChainNetwork, ChainStack, ChainRegistry, ChainRoles, ProviderRegistry, ProviderName, SwapQuoter, SupportedMainnet, SupportedTestnet, SupportedChain, SupportedOPStackMainnet, SupportedOPStackTestnet, SettlementLayer, TokenAuthorization, TokenAuthorizationDomain, TokenAuthorizationStandard, TokenEntry, SettlementConfig, CctpChainConfig, NearChainConfig, OftChainConfig, RhinoChainConfig, OftConfig, PegGroup, ChainFactsClient, ChainFactsClientOptions, ChainFactsErrorPhase, ChainFactsPayload, ChainFactsSnapshot, ChainFactsSource, };
|
|
19
|
+
export type { ChainEntry, ChainExplorer, ChainItem, ChainList, ChainNetwork, ChainStack, ChainRegistry, ChainRoles, ProviderRegistry, ProviderName, SwapQuoter, SupportedMainnet, SupportedTestnet, SupportedChain, SupportedOPStackMainnet, SupportedOPStackTestnet, SettlementLayer, TokenAuthorization, TokenAuthorizationDomain, TokenAuthorizationStandard, TokenEntry, SettlementConfig, CctpChainConfig, LzChainConfig, NearChainConfig, OftChainConfig, RhinoChainConfig, OftConfig, PegGroup, ChainFactsClient, ChainFactsClientOptions, ChainFactsErrorPhase, ChainFactsPayload, ChainFactsSnapshot, ChainFactsSource, };
|
|
20
20
|
export * from "./abis";
|
package/dist/src/types.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ type SupportedMainnet = EnumNumberValues<typeof MainnetNetwork>;
|
|
|
7
7
|
type SupportedOPStackMainnet = Extract<EnumNumberValues<typeof OPStackChains>, SupportedMainnet>;
|
|
8
8
|
type SupportedOPStackTestnet = Extract<EnumNumberValues<typeof OPStackChains>, SupportedTestnet>;
|
|
9
9
|
type SupportedChain = SupportedMainnet | SupportedTestnet;
|
|
10
|
-
type SettlementLayer = 'ACROSS' | 'ECO' | 'RELAY' | 'OFT' | 'NEAR' | 'RHINO' | 'CCTP';
|
|
10
|
+
type SettlementLayer = 'ACROSS' | 'ECO' | 'RELAY' | 'OFT' | 'NEAR' | 'RHINO' | 'CCTP' | 'LZ';
|
|
11
11
|
type SwapQuoter = '1inch' | '0x' | 'velora' | 'kyberswap' | 'fynd' | 'fynd-hosted' | 'bebop' | 'relay';
|
|
12
12
|
type PegGroup = 'USD' | 'ETH';
|
|
13
13
|
type VmType = 'evm' | 'svm' | 'tvm' | 'stellar';
|
|
@@ -175,6 +175,24 @@ interface OftChainConfig {
|
|
|
175
175
|
*/
|
|
176
176
|
chainKey: string;
|
|
177
177
|
}
|
|
178
|
+
/**
|
|
179
|
+
* How LayerZero's Value Transfer API — which aggregates Stargate, CCTP and the
|
|
180
|
+
* OFT meshes behind one quote — names this chain.
|
|
181
|
+
*
|
|
182
|
+
* The same key `OftChainConfig.chainKey` carries, stated separately because the
|
|
183
|
+
* two answer different questions: that one addresses the chain's OFT
|
|
184
|
+
* deployment and exists only where an OFT does, while this one says the
|
|
185
|
+
* transfer API routes here at all. Base has the second and not the first.
|
|
186
|
+
*/
|
|
187
|
+
interface LzChainConfig {
|
|
188
|
+
/**
|
|
189
|
+
* `optimism` for OP Mainnet, `bsc` for BNB Smart Chain, `hyperliquid` for
|
|
190
|
+
* HyperEVM. Not derivable from the name, and the chain id is not accepted in
|
|
191
|
+
* its place — nor can their `/chains` be inverted by id, which repeats across
|
|
192
|
+
* VMs (`999` is both HyperEVM and HyperCore).
|
|
193
|
+
*/
|
|
194
|
+
chainKey: string;
|
|
195
|
+
}
|
|
178
196
|
/**
|
|
179
197
|
* Per-vendor addressing for the settlement layers this chain has enabled, one
|
|
180
198
|
* key per layer in `settlementLayers` that needs it.
|
|
@@ -197,6 +215,7 @@ interface SettlementConfig {
|
|
|
197
215
|
cctp?: CctpChainConfig;
|
|
198
216
|
near?: NearChainConfig;
|
|
199
217
|
oft?: OftChainConfig;
|
|
218
|
+
lz?: LzChainConfig;
|
|
200
219
|
}
|
|
201
220
|
interface ChainEntry {
|
|
202
221
|
name: string;
|
|
@@ -419,4 +438,4 @@ interface ErpcConfig {
|
|
|
419
438
|
providerIdPrefix: Record<string, string>;
|
|
420
439
|
}
|
|
421
440
|
export { OPStackChains, MainnetNetwork, TestnetNetwork, mainnetChains, testnetChains, chains, PEG_GROUPS };
|
|
422
|
-
export type { CctpChainConfig, ChainItem, ChainEntry, ChainExplorer, ChainNetwork, ChainRegistry, ChainRoles, ChainStack, ChainList, ContractAddresses, NearChainConfig, OftChainConfig, ProviderIds, ProviderRegistry, ProviderName, RhinoChainConfig, SettlementConfig, SettlementLayer, TokenAuthorization, TokenAuthorizationDomain, TokenAuthorizationStandard, TokenEntry, SupportedTestnet, SupportedMainnet, SupportedOPStackMainnet, SupportedOPStackTestnet, SupportedChain, SwapQuoter, SwapQuoterConfig, PegGroup, VmType, ErpcFailsafe, ErpcChainOverride, ErpcConfig, };
|
|
441
|
+
export type { CctpChainConfig, ChainItem, ChainEntry, ChainExplorer, ChainNetwork, ChainRegistry, ChainRoles, ChainStack, ChainList, ContractAddresses, LzChainConfig, NearChainConfig, OftChainConfig, ProviderIds, ProviderRegistry, ProviderName, RhinoChainConfig, SettlementConfig, SettlementLayer, TokenAuthorization, TokenAuthorizationDomain, TokenAuthorizationStandard, TokenEntry, SupportedTestnet, SupportedMainnet, SupportedOPStackMainnet, SupportedOPStackTestnet, SupportedChain, SwapQuoter, SwapQuoterConfig, PegGroup, VmType, ErpcFailsafe, ErpcChainOverride, ErpcConfig, };
|