@rhinestone/shared-configs 2.10.0 → 2.11.0
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 +92 -20
- package/dist/scripts/validation.d.ts +1 -1
- package/dist/scripts/validation.js +2 -0
- package/dist/src/chains.js +92 -20
- 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": {},
|
|
@@ -771,12 +791,16 @@
|
|
|
771
791
|
"settlementConfig": {
|
|
772
792
|
"cctp": {
|
|
773
793
|
"domain": 15
|
|
794
|
+
},
|
|
795
|
+
"lz": {
|
|
796
|
+
"chainKey": "monad"
|
|
774
797
|
}
|
|
775
798
|
},
|
|
776
799
|
"settlementLayers": [
|
|
777
800
|
"ACROSS",
|
|
778
801
|
"RELAY",
|
|
779
|
-
"CCTP"
|
|
802
|
+
"CCTP",
|
|
803
|
+
"LZ"
|
|
780
804
|
],
|
|
781
805
|
"stack": "vanilla",
|
|
782
806
|
"swapQuoters": [
|
|
@@ -887,12 +911,16 @@
|
|
|
887
911
|
"settlementConfig": {
|
|
888
912
|
"cctp": {
|
|
889
913
|
"domain": 13
|
|
914
|
+
},
|
|
915
|
+
"lz": {
|
|
916
|
+
"chainKey": "sonic"
|
|
890
917
|
}
|
|
891
918
|
},
|
|
892
919
|
"settlementLayers": [
|
|
893
920
|
"ECO",
|
|
894
921
|
"RELAY",
|
|
895
|
-
"CCTP"
|
|
922
|
+
"CCTP",
|
|
923
|
+
"LZ"
|
|
896
924
|
],
|
|
897
925
|
"stack": "vanilla",
|
|
898
926
|
"swapQuoterConfig": {},
|
|
@@ -958,6 +986,9 @@
|
|
|
958
986
|
"publicRpcUrl": "https://xlayerrpc.okx.com",
|
|
959
987
|
"sessionCapable": false,
|
|
960
988
|
"settlementConfig": {
|
|
989
|
+
"lz": {
|
|
990
|
+
"chainKey": "xlayer"
|
|
991
|
+
},
|
|
961
992
|
"near": {
|
|
962
993
|
"prefix": "xlayer"
|
|
963
994
|
},
|
|
@@ -969,7 +1000,8 @@
|
|
|
969
1000
|
},
|
|
970
1001
|
"settlementLayers": [
|
|
971
1002
|
"OFT",
|
|
972
|
-
"NEAR"
|
|
1003
|
+
"NEAR",
|
|
1004
|
+
"LZ"
|
|
973
1005
|
],
|
|
974
1006
|
"stack": "vanilla",
|
|
975
1007
|
"swapQuoters": [],
|
|
@@ -1057,6 +1089,9 @@
|
|
|
1057
1089
|
"cctp": {
|
|
1058
1090
|
"domain": 19
|
|
1059
1091
|
},
|
|
1092
|
+
"lz": {
|
|
1093
|
+
"chainKey": "hyperliquid"
|
|
1094
|
+
},
|
|
1060
1095
|
"rhino": {
|
|
1061
1096
|
"bridgeContract": "0x5e023c31e1d3dcd08a1b3e8c96f6ef8aa8fcacd1",
|
|
1062
1097
|
"chainName": "HYPEREVM"
|
|
@@ -1067,7 +1102,8 @@
|
|
|
1067
1102
|
"ECO",
|
|
1068
1103
|
"RELAY",
|
|
1069
1104
|
"RHINO",
|
|
1070
|
-
"CCTP"
|
|
1105
|
+
"CCTP",
|
|
1106
|
+
"LZ"
|
|
1071
1107
|
],
|
|
1072
1108
|
"stack": "vanilla",
|
|
1073
1109
|
"swapQuoters": [
|
|
@@ -1159,9 +1195,15 @@
|
|
|
1159
1195
|
},
|
|
1160
1196
|
"publicRpcUrl": "https://rpc.soneium.org",
|
|
1161
1197
|
"sessionCapable": true,
|
|
1198
|
+
"settlementConfig": {
|
|
1199
|
+
"lz": {
|
|
1200
|
+
"chainKey": "soneium"
|
|
1201
|
+
}
|
|
1202
|
+
},
|
|
1162
1203
|
"settlementLayers": [
|
|
1163
1204
|
"ACROSS",
|
|
1164
|
-
"RELAY"
|
|
1205
|
+
"RELAY",
|
|
1206
|
+
"LZ"
|
|
1165
1207
|
],
|
|
1166
1208
|
"stack": "op-stack",
|
|
1167
1209
|
"swapQuoters": [],
|
|
@@ -1254,9 +1296,15 @@
|
|
|
1254
1296
|
},
|
|
1255
1297
|
"publicRpcUrl": "https://rpc.mainnet.chain.robinhood.com",
|
|
1256
1298
|
"sessionCapable": true,
|
|
1299
|
+
"settlementConfig": {
|
|
1300
|
+
"lz": {
|
|
1301
|
+
"chainKey": "robinhood"
|
|
1302
|
+
}
|
|
1303
|
+
},
|
|
1257
1304
|
"settlementLayers": [
|
|
1258
1305
|
"ACROSS",
|
|
1259
|
-
"RELAY"
|
|
1306
|
+
"RELAY",
|
|
1307
|
+
"LZ"
|
|
1260
1308
|
],
|
|
1261
1309
|
"stack": "vanilla",
|
|
1262
1310
|
"swapQuoters": [
|
|
@@ -1357,6 +1405,9 @@
|
|
|
1357
1405
|
"cctp": {
|
|
1358
1406
|
"domain": 6
|
|
1359
1407
|
},
|
|
1408
|
+
"lz": {
|
|
1409
|
+
"chainKey": "base"
|
|
1410
|
+
},
|
|
1360
1411
|
"near": {
|
|
1361
1412
|
"prefix": "base"
|
|
1362
1413
|
},
|
|
@@ -1371,7 +1422,8 @@
|
|
|
1371
1422
|
"RELAY",
|
|
1372
1423
|
"NEAR",
|
|
1373
1424
|
"RHINO",
|
|
1374
|
-
"CCTP"
|
|
1425
|
+
"CCTP",
|
|
1426
|
+
"LZ"
|
|
1375
1427
|
],
|
|
1376
1428
|
"stack": "op-stack",
|
|
1377
1429
|
"swapQuoterConfig": {},
|
|
@@ -1467,6 +1519,9 @@
|
|
|
1467
1519
|
"publicRpcUrl": "https://rpc.plasma.to",
|
|
1468
1520
|
"sessionCapable": true,
|
|
1469
1521
|
"settlementConfig": {
|
|
1522
|
+
"lz": {
|
|
1523
|
+
"chainKey": "plasma"
|
|
1524
|
+
},
|
|
1470
1525
|
"oft": {
|
|
1471
1526
|
"adapter": "0x02ca37966753bDdDf11216B73B16C1dE756A7CF9",
|
|
1472
1527
|
"chainKey": "plasma",
|
|
@@ -1482,7 +1537,8 @@
|
|
|
1482
1537
|
"ECO",
|
|
1483
1538
|
"RELAY",
|
|
1484
1539
|
"OFT",
|
|
1485
|
-
"RHINO"
|
|
1540
|
+
"RHINO",
|
|
1541
|
+
"LZ"
|
|
1486
1542
|
],
|
|
1487
1543
|
"stack": "vanilla",
|
|
1488
1544
|
"swapQuoterConfig": {},
|
|
@@ -1625,6 +1681,9 @@
|
|
|
1625
1681
|
"cctp": {
|
|
1626
1682
|
"domain": 3
|
|
1627
1683
|
},
|
|
1684
|
+
"lz": {
|
|
1685
|
+
"chainKey": "arbitrum"
|
|
1686
|
+
},
|
|
1628
1687
|
"near": {
|
|
1629
1688
|
"prefix": "arb"
|
|
1630
1689
|
},
|
|
@@ -1645,7 +1704,8 @@
|
|
|
1645
1704
|
"OFT",
|
|
1646
1705
|
"NEAR",
|
|
1647
1706
|
"RHINO",
|
|
1648
|
-
"CCTP"
|
|
1707
|
+
"CCTP",
|
|
1708
|
+
"LZ"
|
|
1649
1709
|
],
|
|
1650
1710
|
"stack": "vanilla",
|
|
1651
1711
|
"swapQuoterConfig": {},
|
|
@@ -1788,6 +1848,9 @@
|
|
|
1788
1848
|
"cctp": {
|
|
1789
1849
|
"domain": 1
|
|
1790
1850
|
},
|
|
1851
|
+
"lz": {
|
|
1852
|
+
"chainKey": "avalanche"
|
|
1853
|
+
},
|
|
1791
1854
|
"near": {
|
|
1792
1855
|
"prefix": "avax"
|
|
1793
1856
|
},
|
|
@@ -1801,7 +1864,8 @@
|
|
|
1801
1864
|
"RELAY",
|
|
1802
1865
|
"NEAR",
|
|
1803
1866
|
"RHINO",
|
|
1804
|
-
"CCTP"
|
|
1867
|
+
"CCTP",
|
|
1868
|
+
"LZ"
|
|
1805
1869
|
],
|
|
1806
1870
|
"stack": "vanilla",
|
|
1807
1871
|
"swapQuoters": [
|
|
@@ -1926,6 +1990,9 @@
|
|
|
1926
1990
|
"cctp": {
|
|
1927
1991
|
"domain": 21
|
|
1928
1992
|
},
|
|
1993
|
+
"lz": {
|
|
1994
|
+
"chainKey": "ink"
|
|
1995
|
+
},
|
|
1929
1996
|
"oft": {
|
|
1930
1997
|
"adapter": "0x1cB6De532588fCA4a21B7209DE7C456AF8434A65",
|
|
1931
1998
|
"chainKey": "ink",
|
|
@@ -1942,7 +2009,8 @@
|
|
|
1942
2009
|
"RELAY",
|
|
1943
2010
|
"OFT",
|
|
1944
2011
|
"RHINO",
|
|
1945
|
-
"CCTP"
|
|
2012
|
+
"CCTP",
|
|
2013
|
+
"LZ"
|
|
1946
2014
|
],
|
|
1947
2015
|
"stack": "op-stack",
|
|
1948
2016
|
"swapQuoters": [
|
|
@@ -2241,6 +2309,9 @@
|
|
|
2241
2309
|
"publicRpcUrl": "https://rpc.katana.network",
|
|
2242
2310
|
"sessionCapable": true,
|
|
2243
2311
|
"settlementConfig": {
|
|
2312
|
+
"lz": {
|
|
2313
|
+
"chainKey": "katana"
|
|
2314
|
+
},
|
|
2244
2315
|
"rhino": {
|
|
2245
2316
|
"bridgeContract": "0x04317f0e4795b1e1bab333234153fa10aaac79e9",
|
|
2246
2317
|
"chainName": "KATANA"
|
|
@@ -2248,7 +2319,8 @@
|
|
|
2248
2319
|
},
|
|
2249
2320
|
"settlementLayers": [
|
|
2250
2321
|
"RELAY",
|
|
2251
|
-
"RHINO"
|
|
2322
|
+
"RHINO",
|
|
2323
|
+
"LZ"
|
|
2252
2324
|
],
|
|
2253
2325
|
"stack": "vanilla",
|
|
2254
2326
|
"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": {},
|
|
@@ -799,12 +819,16 @@ const chains = {
|
|
|
799
819
|
"settlementConfig": {
|
|
800
820
|
"cctp": {
|
|
801
821
|
"domain": 15
|
|
822
|
+
},
|
|
823
|
+
"lz": {
|
|
824
|
+
"chainKey": "monad"
|
|
802
825
|
}
|
|
803
826
|
},
|
|
804
827
|
"settlementLayers": [
|
|
805
828
|
"ACROSS",
|
|
806
829
|
"RELAY",
|
|
807
|
-
"CCTP"
|
|
830
|
+
"CCTP",
|
|
831
|
+
"LZ"
|
|
808
832
|
],
|
|
809
833
|
"stack": "vanilla",
|
|
810
834
|
"swapQuoters": [
|
|
@@ -919,12 +943,16 @@ const chains = {
|
|
|
919
943
|
"settlementConfig": {
|
|
920
944
|
"cctp": {
|
|
921
945
|
"domain": 13
|
|
946
|
+
},
|
|
947
|
+
"lz": {
|
|
948
|
+
"chainKey": "sonic"
|
|
922
949
|
}
|
|
923
950
|
},
|
|
924
951
|
"settlementLayers": [
|
|
925
952
|
"ECO",
|
|
926
953
|
"RELAY",
|
|
927
|
-
"CCTP"
|
|
954
|
+
"CCTP",
|
|
955
|
+
"LZ"
|
|
928
956
|
],
|
|
929
957
|
"stack": "vanilla",
|
|
930
958
|
"swapQuoterConfig": {},
|
|
@@ -994,6 +1022,9 @@ const chains = {
|
|
|
994
1022
|
"publicRpcUrl": "https://xlayerrpc.okx.com",
|
|
995
1023
|
"sessionCapable": false,
|
|
996
1024
|
"settlementConfig": {
|
|
1025
|
+
"lz": {
|
|
1026
|
+
"chainKey": "xlayer"
|
|
1027
|
+
},
|
|
997
1028
|
"near": {
|
|
998
1029
|
"prefix": "xlayer"
|
|
999
1030
|
},
|
|
@@ -1005,7 +1036,8 @@ const chains = {
|
|
|
1005
1036
|
},
|
|
1006
1037
|
"settlementLayers": [
|
|
1007
1038
|
"OFT",
|
|
1008
|
-
"NEAR"
|
|
1039
|
+
"NEAR",
|
|
1040
|
+
"LZ"
|
|
1009
1041
|
],
|
|
1010
1042
|
"stack": "vanilla",
|
|
1011
1043
|
"swapQuoters": [],
|
|
@@ -1097,6 +1129,9 @@ const chains = {
|
|
|
1097
1129
|
"cctp": {
|
|
1098
1130
|
"domain": 19
|
|
1099
1131
|
},
|
|
1132
|
+
"lz": {
|
|
1133
|
+
"chainKey": "hyperliquid"
|
|
1134
|
+
},
|
|
1100
1135
|
"rhino": {
|
|
1101
1136
|
"bridgeContract": "0x5e023c31e1d3dcd08a1b3e8c96f6ef8aa8fcacd1",
|
|
1102
1137
|
"chainName": "HYPEREVM"
|
|
@@ -1107,7 +1142,8 @@ const chains = {
|
|
|
1107
1142
|
"ECO",
|
|
1108
1143
|
"RELAY",
|
|
1109
1144
|
"RHINO",
|
|
1110
|
-
"CCTP"
|
|
1145
|
+
"CCTP",
|
|
1146
|
+
"LZ"
|
|
1111
1147
|
],
|
|
1112
1148
|
"stack": "vanilla",
|
|
1113
1149
|
"swapQuoters": [
|
|
@@ -1204,9 +1240,15 @@ const chains = {
|
|
|
1204
1240
|
},
|
|
1205
1241
|
"publicRpcUrl": "https://rpc.soneium.org",
|
|
1206
1242
|
"sessionCapable": true,
|
|
1243
|
+
"settlementConfig": {
|
|
1244
|
+
"lz": {
|
|
1245
|
+
"chainKey": "soneium"
|
|
1246
|
+
}
|
|
1247
|
+
},
|
|
1207
1248
|
"settlementLayers": [
|
|
1208
1249
|
"ACROSS",
|
|
1209
|
-
"RELAY"
|
|
1250
|
+
"RELAY",
|
|
1251
|
+
"LZ"
|
|
1210
1252
|
],
|
|
1211
1253
|
"stack": "op-stack",
|
|
1212
1254
|
"swapQuoters": [],
|
|
@@ -1303,9 +1345,15 @@ const chains = {
|
|
|
1303
1345
|
},
|
|
1304
1346
|
"publicRpcUrl": "https://rpc.mainnet.chain.robinhood.com",
|
|
1305
1347
|
"sessionCapable": true,
|
|
1348
|
+
"settlementConfig": {
|
|
1349
|
+
"lz": {
|
|
1350
|
+
"chainKey": "robinhood"
|
|
1351
|
+
}
|
|
1352
|
+
},
|
|
1306
1353
|
"settlementLayers": [
|
|
1307
1354
|
"ACROSS",
|
|
1308
|
-
"RELAY"
|
|
1355
|
+
"RELAY",
|
|
1356
|
+
"LZ"
|
|
1309
1357
|
],
|
|
1310
1358
|
"stack": "vanilla",
|
|
1311
1359
|
"swapQuoters": [
|
|
@@ -1410,6 +1458,9 @@ const chains = {
|
|
|
1410
1458
|
"cctp": {
|
|
1411
1459
|
"domain": 6
|
|
1412
1460
|
},
|
|
1461
|
+
"lz": {
|
|
1462
|
+
"chainKey": "base"
|
|
1463
|
+
},
|
|
1413
1464
|
"near": {
|
|
1414
1465
|
"prefix": "base"
|
|
1415
1466
|
},
|
|
@@ -1424,7 +1475,8 @@ const chains = {
|
|
|
1424
1475
|
"RELAY",
|
|
1425
1476
|
"NEAR",
|
|
1426
1477
|
"RHINO",
|
|
1427
|
-
"CCTP"
|
|
1478
|
+
"CCTP",
|
|
1479
|
+
"LZ"
|
|
1428
1480
|
],
|
|
1429
1481
|
"stack": "op-stack",
|
|
1430
1482
|
"swapQuoterConfig": {},
|
|
@@ -1524,6 +1576,9 @@ const chains = {
|
|
|
1524
1576
|
"publicRpcUrl": "https://rpc.plasma.to",
|
|
1525
1577
|
"sessionCapable": true,
|
|
1526
1578
|
"settlementConfig": {
|
|
1579
|
+
"lz": {
|
|
1580
|
+
"chainKey": "plasma"
|
|
1581
|
+
},
|
|
1527
1582
|
"oft": {
|
|
1528
1583
|
"adapter": "0x02ca37966753bDdDf11216B73B16C1dE756A7CF9",
|
|
1529
1584
|
"chainKey": "plasma",
|
|
@@ -1539,7 +1594,8 @@ const chains = {
|
|
|
1539
1594
|
"ECO",
|
|
1540
1595
|
"RELAY",
|
|
1541
1596
|
"OFT",
|
|
1542
|
-
"RHINO"
|
|
1597
|
+
"RHINO",
|
|
1598
|
+
"LZ"
|
|
1543
1599
|
],
|
|
1544
1600
|
"stack": "vanilla",
|
|
1545
1601
|
"swapQuoterConfig": {},
|
|
@@ -1692,6 +1748,9 @@ const chains = {
|
|
|
1692
1748
|
"cctp": {
|
|
1693
1749
|
"domain": 3
|
|
1694
1750
|
},
|
|
1751
|
+
"lz": {
|
|
1752
|
+
"chainKey": "arbitrum"
|
|
1753
|
+
},
|
|
1695
1754
|
"near": {
|
|
1696
1755
|
"prefix": "arb"
|
|
1697
1756
|
},
|
|
@@ -1712,7 +1771,8 @@ const chains = {
|
|
|
1712
1771
|
"OFT",
|
|
1713
1772
|
"NEAR",
|
|
1714
1773
|
"RHINO",
|
|
1715
|
-
"CCTP"
|
|
1774
|
+
"CCTP",
|
|
1775
|
+
"LZ"
|
|
1716
1776
|
],
|
|
1717
1777
|
"stack": "vanilla",
|
|
1718
1778
|
"swapQuoterConfig": {},
|
|
@@ -1859,6 +1919,9 @@ const chains = {
|
|
|
1859
1919
|
"cctp": {
|
|
1860
1920
|
"domain": 1
|
|
1861
1921
|
},
|
|
1922
|
+
"lz": {
|
|
1923
|
+
"chainKey": "avalanche"
|
|
1924
|
+
},
|
|
1862
1925
|
"near": {
|
|
1863
1926
|
"prefix": "avax"
|
|
1864
1927
|
},
|
|
@@ -1872,7 +1935,8 @@ const chains = {
|
|
|
1872
1935
|
"RELAY",
|
|
1873
1936
|
"NEAR",
|
|
1874
1937
|
"RHINO",
|
|
1875
|
-
"CCTP"
|
|
1938
|
+
"CCTP",
|
|
1939
|
+
"LZ"
|
|
1876
1940
|
],
|
|
1877
1941
|
"stack": "vanilla",
|
|
1878
1942
|
"swapQuoters": [
|
|
@@ -2001,6 +2065,9 @@ const chains = {
|
|
|
2001
2065
|
"cctp": {
|
|
2002
2066
|
"domain": 21
|
|
2003
2067
|
},
|
|
2068
|
+
"lz": {
|
|
2069
|
+
"chainKey": "ink"
|
|
2070
|
+
},
|
|
2004
2071
|
"oft": {
|
|
2005
2072
|
"adapter": "0x1cB6De532588fCA4a21B7209DE7C456AF8434A65",
|
|
2006
2073
|
"chainKey": "ink",
|
|
@@ -2017,7 +2084,8 @@ const chains = {
|
|
|
2017
2084
|
"RELAY",
|
|
2018
2085
|
"OFT",
|
|
2019
2086
|
"RHINO",
|
|
2020
|
-
"CCTP"
|
|
2087
|
+
"CCTP",
|
|
2088
|
+
"LZ"
|
|
2021
2089
|
],
|
|
2022
2090
|
"stack": "op-stack",
|
|
2023
2091
|
"swapQuoters": [
|
|
@@ -2328,6 +2396,9 @@ const chains = {
|
|
|
2328
2396
|
"publicRpcUrl": "https://rpc.katana.network",
|
|
2329
2397
|
"sessionCapable": true,
|
|
2330
2398
|
"settlementConfig": {
|
|
2399
|
+
"lz": {
|
|
2400
|
+
"chainKey": "katana"
|
|
2401
|
+
},
|
|
2331
2402
|
"rhino": {
|
|
2332
2403
|
"bridgeContract": "0x04317f0e4795b1e1bab333234153fa10aaac79e9",
|
|
2333
2404
|
"chainName": "KATANA"
|
|
@@ -2335,7 +2406,8 @@ const chains = {
|
|
|
2335
2406
|
},
|
|
2336
2407
|
"settlementLayers": [
|
|
2337
2408
|
"RELAY",
|
|
2338
|
-
"RHINO"
|
|
2409
|
+
"RHINO",
|
|
2410
|
+
"LZ"
|
|
2339
2411
|
],
|
|
2340
2412
|
"stack": "vanilla",
|
|
2341
2413
|
"swapQuoters": [],
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const PACKAGE_VERSION = "2.
|
|
1
|
+
declare const PACKAGE_VERSION = "2.11.0";
|
|
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.0";
|
|
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, };
|