@snowbridge/registry 0.4.1 → 0.4.3
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/paseo_sepolia_bridge_info.g.d.ts +8 -7
- package/dist/paseo_sepolia_bridge_info.g.d.ts.map +1 -1
- package/dist/paseo_sepolia_bridge_info.g.js +8 -7
- package/dist/polkadot_mainnet_bridge_info.g.d.ts +172 -18
- package/dist/polkadot_mainnet_bridge_info.g.d.ts.map +1 -1
- package/dist/polkadot_mainnet_bridge_info.g.js +208 -18
- package/dist/transfers.d.ts.map +1 -1
- package/dist/transfers.js +57 -38
- package/dist/westend_sepolia_bridge_info.g.d.ts +99 -11
- package/dist/westend_sepolia_bridge_info.g.d.ts.map +1 -1
- package/dist/westend_sepolia_bridge_info.g.js +122 -11
- package/package.json +4 -4
- package/scripts/buildRegistry.ts +163 -29
- package/src/paseo_sepolia_bridge_info.g.ts +8 -7
- package/src/polkadot_mainnet_bridge_info.g.ts +208 -18
- package/src/transfers.ts +50 -35
- package/src/westend_sepolia_bridge_info.g.ts +122 -11
|
@@ -5,8 +5,10 @@ const registry = {
|
|
|
5
5
|
beaconApiUrl: "https://lodestar-mainnet.chainsafe.io",
|
|
6
6
|
ethereumChains: {
|
|
7
7
|
"1": "https://ethereum-rpc.publicnode.com",
|
|
8
|
+
"10": "https://optimism-rpc.publicnode.com",
|
|
8
9
|
"1284": "https://rpc.api.moonbeam.network",
|
|
9
10
|
"8453": "https://base-rpc.publicnode.com",
|
|
11
|
+
"42161": "https://arbitrum-one-rpc.publicnode.com",
|
|
10
12
|
},
|
|
11
13
|
relaychainUrl: "https://polkadot-rpc.n.dwellir.com",
|
|
12
14
|
parachains: {
|
|
@@ -20,7 +22,7 @@ const registry = {
|
|
|
20
22
|
"3369": "wss://polkadot-mythos-rpc.polkadot.io",
|
|
21
23
|
},
|
|
22
24
|
gatewayContract: "0x27ca963c279c93801941e1eb8799c23f407d68e7",
|
|
23
|
-
beefyContract: "
|
|
25
|
+
beefyContract: "0x1817874feab3ce053d0f40abc23870db35c2affc",
|
|
24
26
|
assetHubParaId: 1000,
|
|
25
27
|
bridgeHubParaId: 1002,
|
|
26
28
|
v2_parachains: [1000],
|
|
@@ -44,14 +46,30 @@ const registry = {
|
|
|
44
46
|
},
|
|
45
47
|
l2Bridge: {
|
|
46
48
|
acrossAPIUrl: "https://app.across.to/api",
|
|
47
|
-
l1AdapterAddress: "
|
|
48
|
-
l1HandlerAddress: "
|
|
49
|
+
l1AdapterAddress: "0xd3b11c36404b092645522b682832fcdee07d2668",
|
|
50
|
+
l1HandlerAddress: "0x924a9f036260ddd5808007e1aa95f08ed08aa569",
|
|
49
51
|
l1FeeTokenAddress: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
|
|
50
|
-
l1SwapQuoterAddress: "
|
|
51
|
-
l1SwapRouterAddress: "
|
|
52
|
+
l1SwapQuoterAddress: "0x61ffe014ba17989e743c5f6cb21bf9697530b21e",
|
|
53
|
+
l1SwapRouterAddress: "0xe592427a0aece92de3edee1f18e0157c05861564",
|
|
52
54
|
l2Chains: {
|
|
55
|
+
"10": {
|
|
56
|
+
adapterAddress: "0x836895ad176235dfe9c59b3df56c7579d90ea338",
|
|
57
|
+
feeTokenAddress: "0x4200000000000000000000000000000000000006",
|
|
58
|
+
swapRoutes: [
|
|
59
|
+
{
|
|
60
|
+
inputToken: "0x4200000000000000000000000000000000000006",
|
|
61
|
+
outputToken: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
|
|
62
|
+
swapFee: 0,
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
inputToken: "0x0b2c639c533813f4aa9d7837caf62653d097ff85",
|
|
66
|
+
outputToken: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
|
|
67
|
+
swapFee: 500,
|
|
68
|
+
},
|
|
69
|
+
],
|
|
70
|
+
},
|
|
53
71
|
"8453": {
|
|
54
|
-
adapterAddress: "
|
|
72
|
+
adapterAddress: "0x07fe4e7340976fc873b74bafe3c3e5b0e01f3665",
|
|
55
73
|
feeTokenAddress: "0x4200000000000000000000000000000000000006",
|
|
56
74
|
swapRoutes: [
|
|
57
75
|
{
|
|
@@ -60,8 +78,24 @@ const registry = {
|
|
|
60
78
|
swapFee: 0,
|
|
61
79
|
},
|
|
62
80
|
{
|
|
63
|
-
inputToken: "
|
|
64
|
-
outputToken: "
|
|
81
|
+
inputToken: "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
|
|
82
|
+
outputToken: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
|
|
83
|
+
swapFee: 500,
|
|
84
|
+
},
|
|
85
|
+
],
|
|
86
|
+
},
|
|
87
|
+
"42161": {
|
|
88
|
+
adapterAddress: "0x836895ad176235dfe9c59b3df56c7579d90ea338",
|
|
89
|
+
feeTokenAddress: "0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
|
|
90
|
+
swapRoutes: [
|
|
91
|
+
{
|
|
92
|
+
inputToken: "0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
|
|
93
|
+
outputToken: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
|
|
94
|
+
swapFee: 0,
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
inputToken: "0xaf88d065e77c8cc2239327c5edb3a432268e5831",
|
|
98
|
+
outputToken: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
|
|
65
99
|
swapFee: 500,
|
|
66
100
|
},
|
|
67
101
|
],
|
|
@@ -434,9 +468,99 @@ const registry = {
|
|
|
434
468
|
"0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9",
|
|
435
469
|
],
|
|
436
470
|
},
|
|
471
|
+
{
|
|
472
|
+
from: {
|
|
473
|
+
kind: "polkadot",
|
|
474
|
+
id: 1000,
|
|
475
|
+
},
|
|
476
|
+
to: {
|
|
477
|
+
kind: "ethereum_l2",
|
|
478
|
+
id: 10,
|
|
479
|
+
},
|
|
480
|
+
assets: [
|
|
481
|
+
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
|
|
482
|
+
"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
|
|
483
|
+
"0x0000000000000000000000000000000000000000",
|
|
484
|
+
],
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
from: {
|
|
488
|
+
kind: "ethereum_l2",
|
|
489
|
+
id: 10,
|
|
490
|
+
},
|
|
491
|
+
to: {
|
|
492
|
+
kind: "polkadot",
|
|
493
|
+
id: 1000,
|
|
494
|
+
},
|
|
495
|
+
assets: [
|
|
496
|
+
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
|
|
497
|
+
"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
|
|
498
|
+
"0x0000000000000000000000000000000000000000",
|
|
499
|
+
],
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
from: {
|
|
503
|
+
kind: "polkadot",
|
|
504
|
+
id: 1000,
|
|
505
|
+
},
|
|
506
|
+
to: {
|
|
507
|
+
kind: "ethereum_l2",
|
|
508
|
+
id: 8453,
|
|
509
|
+
},
|
|
510
|
+
assets: [
|
|
511
|
+
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
|
|
512
|
+
"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
|
|
513
|
+
"0x0000000000000000000000000000000000000000",
|
|
514
|
+
],
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
from: {
|
|
518
|
+
kind: "ethereum_l2",
|
|
519
|
+
id: 8453,
|
|
520
|
+
},
|
|
521
|
+
to: {
|
|
522
|
+
kind: "polkadot",
|
|
523
|
+
id: 1000,
|
|
524
|
+
},
|
|
525
|
+
assets: [
|
|
526
|
+
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
|
|
527
|
+
"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
|
|
528
|
+
"0x0000000000000000000000000000000000000000",
|
|
529
|
+
],
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
from: {
|
|
533
|
+
kind: "polkadot",
|
|
534
|
+
id: 1000,
|
|
535
|
+
},
|
|
536
|
+
to: {
|
|
537
|
+
kind: "ethereum_l2",
|
|
538
|
+
id: 42161,
|
|
539
|
+
},
|
|
540
|
+
assets: [
|
|
541
|
+
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
|
|
542
|
+
"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
|
|
543
|
+
"0x0000000000000000000000000000000000000000",
|
|
544
|
+
],
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
from: {
|
|
548
|
+
kind: "ethereum_l2",
|
|
549
|
+
id: 42161,
|
|
550
|
+
},
|
|
551
|
+
to: {
|
|
552
|
+
kind: "polkadot",
|
|
553
|
+
id: 1000,
|
|
554
|
+
},
|
|
555
|
+
assets: [
|
|
556
|
+
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
|
|
557
|
+
"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
|
|
558
|
+
"0x0000000000000000000000000000000000000000",
|
|
559
|
+
],
|
|
560
|
+
},
|
|
437
561
|
],
|
|
438
562
|
registry: {
|
|
439
|
-
timestamp: "2026-02-
|
|
563
|
+
timestamp: "2026-02-16T10:21:57.286Z",
|
|
440
564
|
environment: "polkadot_mainnet",
|
|
441
565
|
ethChainId: 1,
|
|
442
566
|
gatewayAddress: "0x27ca963c279c93801941e1eb8799c23f407d68e7",
|
|
@@ -450,7 +574,7 @@ const registry = {
|
|
|
450
574
|
accountType: "AccountId32",
|
|
451
575
|
name: "Polkadot",
|
|
452
576
|
specName: "polkadot",
|
|
453
|
-
specVersion:
|
|
577
|
+
specVersion: 2000006,
|
|
454
578
|
},
|
|
455
579
|
bridgeHub: {
|
|
456
580
|
tokenSymbols: "DOT",
|
|
@@ -460,12 +584,13 @@ const registry = {
|
|
|
460
584
|
accountType: "AccountId32",
|
|
461
585
|
name: "Polkadot BridgeHub",
|
|
462
586
|
specName: "bridge-hub-polkadot",
|
|
463
|
-
specVersion:
|
|
587
|
+
specVersion: 2000006,
|
|
464
588
|
},
|
|
465
589
|
ethereumChains: {
|
|
466
590
|
ethereum_1: {
|
|
467
591
|
kind: "ethereum",
|
|
468
592
|
id: 1,
|
|
593
|
+
name: "mainnet",
|
|
469
594
|
assets: {
|
|
470
595
|
"0x9d39a5de30e57443bff2a8307a4256c8797a3497": {
|
|
471
596
|
token: "0x9d39a5de30e57443bff2a8307a4256c8797a3497",
|
|
@@ -743,6 +868,38 @@ const registry = {
|
|
|
743
868
|
key: "ethereum_1",
|
|
744
869
|
baseDeliveryGas: 120000n,
|
|
745
870
|
},
|
|
871
|
+
ethereum_l2_10: {
|
|
872
|
+
kind: "ethereum_l2",
|
|
873
|
+
id: 10,
|
|
874
|
+
name: "optimism",
|
|
875
|
+
assets: {
|
|
876
|
+
"0x4200000000000000000000000000000000000006": {
|
|
877
|
+
token: "0x4200000000000000000000000000000000000006",
|
|
878
|
+
name: "Wrapped Ether",
|
|
879
|
+
symbol: "WETH",
|
|
880
|
+
decimals: 18,
|
|
881
|
+
swapTokenAddress: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
|
|
882
|
+
swapFee: 0,
|
|
883
|
+
},
|
|
884
|
+
"0x0b2c639c533813f4aa9d7837caf62653d097ff85": {
|
|
885
|
+
token: "0x0b2c639c533813f4aa9d7837caf62653d097ff85",
|
|
886
|
+
name: "USD Coin",
|
|
887
|
+
symbol: "USDC",
|
|
888
|
+
decimals: 6,
|
|
889
|
+
swapTokenAddress: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
|
|
890
|
+
swapFee: 500,
|
|
891
|
+
},
|
|
892
|
+
"0x0000000000000000000000000000000000000000": {
|
|
893
|
+
token: "0x0000000000000000000000000000000000000000",
|
|
894
|
+
name: "Ether",
|
|
895
|
+
symbol: "Ether",
|
|
896
|
+
decimals: 18,
|
|
897
|
+
swapTokenAddress: "0x0000000000000000000000000000000000000000",
|
|
898
|
+
swapFee: 0,
|
|
899
|
+
},
|
|
900
|
+
},
|
|
901
|
+
key: "ethereum_l2_10",
|
|
902
|
+
},
|
|
746
903
|
ethereum_1284: {
|
|
747
904
|
kind: "ethereum",
|
|
748
905
|
id: 1284,
|
|
@@ -820,6 +977,7 @@ const registry = {
|
|
|
820
977
|
ethereum_l2_8453: {
|
|
821
978
|
kind: "ethereum_l2",
|
|
822
979
|
id: 8453,
|
|
980
|
+
name: "base",
|
|
823
981
|
assets: {
|
|
824
982
|
"0x4200000000000000000000000000000000000006": {
|
|
825
983
|
token: "0x4200000000000000000000000000000000000006",
|
|
@@ -829,12 +987,12 @@ const registry = {
|
|
|
829
987
|
swapTokenAddress: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
|
|
830
988
|
swapFee: 0,
|
|
831
989
|
},
|
|
832
|
-
"
|
|
833
|
-
token: "
|
|
990
|
+
"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913": {
|
|
991
|
+
token: "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
|
|
834
992
|
name: "USD Coin",
|
|
835
993
|
symbol: "USDC",
|
|
836
994
|
decimals: 6,
|
|
837
|
-
swapTokenAddress: "
|
|
995
|
+
swapTokenAddress: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
|
|
838
996
|
swapFee: 500,
|
|
839
997
|
},
|
|
840
998
|
"0x0000000000000000000000000000000000000000": {
|
|
@@ -848,6 +1006,38 @@ const registry = {
|
|
|
848
1006
|
},
|
|
849
1007
|
key: "ethereum_l2_8453",
|
|
850
1008
|
},
|
|
1009
|
+
ethereum_l2_42161: {
|
|
1010
|
+
kind: "ethereum_l2",
|
|
1011
|
+
id: 42161,
|
|
1012
|
+
name: "arbitrum",
|
|
1013
|
+
assets: {
|
|
1014
|
+
"0x82af49447d8a07e3bd95bd0d56f35241523fbab1": {
|
|
1015
|
+
token: "0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
|
|
1016
|
+
name: "Wrapped Ether",
|
|
1017
|
+
symbol: "WETH",
|
|
1018
|
+
decimals: 18,
|
|
1019
|
+
swapTokenAddress: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
|
|
1020
|
+
swapFee: 0,
|
|
1021
|
+
},
|
|
1022
|
+
"0xaf88d065e77c8cc2239327c5edb3a432268e5831": {
|
|
1023
|
+
token: "0xaf88d065e77c8cc2239327c5edb3a432268e5831",
|
|
1024
|
+
name: "USD Coin",
|
|
1025
|
+
symbol: "USDC",
|
|
1026
|
+
decimals: 6,
|
|
1027
|
+
swapTokenAddress: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
|
|
1028
|
+
swapFee: 500,
|
|
1029
|
+
},
|
|
1030
|
+
"0x0000000000000000000000000000000000000000": {
|
|
1031
|
+
token: "0x0000000000000000000000000000000000000000",
|
|
1032
|
+
name: "Ether",
|
|
1033
|
+
symbol: "Ether",
|
|
1034
|
+
decimals: 18,
|
|
1035
|
+
swapTokenAddress: "0x0000000000000000000000000000000000000000",
|
|
1036
|
+
swapFee: 0,
|
|
1037
|
+
},
|
|
1038
|
+
},
|
|
1039
|
+
key: "ethereum_l2_42161",
|
|
1040
|
+
},
|
|
851
1041
|
},
|
|
852
1042
|
parachains: {
|
|
853
1043
|
polkadot_1000: {
|
|
@@ -874,7 +1064,7 @@ const registry = {
|
|
|
874
1064
|
accountType: "AccountId32",
|
|
875
1065
|
name: "Polkadot Asset Hub",
|
|
876
1066
|
specName: "statemint",
|
|
877
|
-
specVersion:
|
|
1067
|
+
specVersion: 2000006,
|
|
878
1068
|
},
|
|
879
1069
|
assets: {
|
|
880
1070
|
"0x9d39a5de30e57443bff2a8307a4256c8797a3497": {
|
|
@@ -1654,7 +1844,7 @@ const registry = {
|
|
|
1654
1844
|
isSufficient: false,
|
|
1655
1845
|
},
|
|
1656
1846
|
},
|
|
1657
|
-
estimatedExecutionFeeDOT:
|
|
1847
|
+
estimatedExecutionFeeDOT: 85078513n,
|
|
1658
1848
|
estimatedDeliveryFeeDOT: 307100000n,
|
|
1659
1849
|
},
|
|
1660
1850
|
polkadot_2034: {
|
|
@@ -1838,7 +2028,7 @@ const registry = {
|
|
|
1838
2028
|
isSufficient: true,
|
|
1839
2029
|
},
|
|
1840
2030
|
},
|
|
1841
|
-
estimatedExecutionFeeDOT:
|
|
2031
|
+
estimatedExecutionFeeDOT: 1616331n,
|
|
1842
2032
|
estimatedDeliveryFeeDOT: 307100000n,
|
|
1843
2033
|
},
|
|
1844
2034
|
polkadot_2043: {
|
|
@@ -1946,7 +2136,7 @@ const registry = {
|
|
|
1946
2136
|
accountType: "AccountId32",
|
|
1947
2137
|
name: "Kusama Asset Hub",
|
|
1948
2138
|
specName: "statemine",
|
|
1949
|
-
specVersion:
|
|
2139
|
+
specVersion: 2000006,
|
|
1950
2140
|
},
|
|
1951
2141
|
assets: {
|
|
1952
2142
|
"0x9d39a5de30e57443bff2a8307a4256c8797a3497": {
|
package/src/transfers.ts
CHANGED
|
@@ -9,51 +9,66 @@ import {
|
|
|
9
9
|
} from "@snowbridge/base-types"
|
|
10
10
|
|
|
11
11
|
export function getTransferLocation(registry: AssetRegistry, chain: ChainId): TransferLocation {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
switch (chain.kind) {
|
|
13
|
+
case "kusama": {
|
|
14
|
+
if (!registry.kusama) throw Error(`Kusama not configured.`)
|
|
15
|
+
const key = `${chain.kind}_${chain.id}` as const
|
|
16
|
+
const parachain = registry.kusama.parachains[key]
|
|
17
|
+
if (!parachain) throw Error(`Cannot find chain ${key}`)
|
|
18
|
+
return {
|
|
19
|
+
id: parachain.id,
|
|
20
|
+
kind: parachain.kind,
|
|
21
|
+
key: parachain.key,
|
|
22
|
+
parachain,
|
|
23
|
+
}
|
|
21
24
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
case "polkadot": {
|
|
26
|
+
const key = `${chain.kind}_${chain.id}` as const
|
|
27
|
+
const parachain = registry.parachains[key]
|
|
28
|
+
if (!parachain) throw Error(`Cannot find chain ${key}`)
|
|
29
|
+
return {
|
|
30
|
+
id: parachain.id,
|
|
31
|
+
kind: parachain.kind,
|
|
32
|
+
key: parachain.key,
|
|
33
|
+
parachain,
|
|
34
|
+
}
|
|
30
35
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
case "ethereum": {
|
|
37
|
+
const key = `${chain.kind}_${chain.id}` as const
|
|
38
|
+
const ethChain = registry.ethereumChains[key]
|
|
39
|
+
if (!ethChain) throw Error(`Cannot find chain ${key}`)
|
|
40
|
+
if (!ethChain.evmParachainId) {
|
|
41
|
+
return {
|
|
42
|
+
kind: ethChain.kind,
|
|
43
|
+
id: ethChain.id,
|
|
44
|
+
key: ethChain.key,
|
|
45
|
+
ethChain,
|
|
46
|
+
}
|
|
47
|
+
} else {
|
|
48
|
+
const evmChain = registry.parachains[`polkadot_${ethChain.evmParachainId}`]
|
|
49
|
+
return {
|
|
50
|
+
kind: ethChain.kind,
|
|
51
|
+
id: ethChain.id,
|
|
52
|
+
key: ethChain.key,
|
|
53
|
+
ethChain,
|
|
54
|
+
parachain: evmChain,
|
|
55
|
+
}
|
|
40
56
|
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
|
|
57
|
+
}
|
|
58
|
+
case "ethereum_l2": {
|
|
59
|
+
const key = `${chain.kind}_${chain.id}` as const
|
|
60
|
+
const ethChain = registry.ethereumChains[key]
|
|
61
|
+
if (!ethChain) throw Error(`Cannot find chain ${key}`)
|
|
62
|
+
return {
|
|
44
63
|
kind: ethChain.kind,
|
|
45
64
|
id: ethChain.id,
|
|
46
65
|
key: ethChain.key,
|
|
47
|
-
name: `${evmChain.info.name} (EVM)`,
|
|
48
66
|
ethChain,
|
|
49
|
-
parachain: evmChain,
|
|
50
67
|
}
|
|
51
68
|
}
|
|
69
|
+
default:
|
|
70
|
+
throw Error(`Unknown ${chain.kind} chain ${chain.id}.`)
|
|
52
71
|
}
|
|
53
|
-
|
|
54
|
-
if (location === null) throw Error(`Unknown ${chain.kind} chain ${chain.id}.`)
|
|
55
|
-
|
|
56
|
-
return location
|
|
57
72
|
}
|
|
58
73
|
|
|
59
74
|
export function getTransferLocations(routes: readonly TransferRoute[]): Source[] {
|
|
@@ -5,6 +5,7 @@ const registry = {
|
|
|
5
5
|
beaconApiUrl: "https://lodestar-sepolia.chainsafe.io",
|
|
6
6
|
ethereumChains: {
|
|
7
7
|
"84532": "https://base-sepolia-rpc.publicnode.com",
|
|
8
|
+
"421614": "https://arbitrum-sepolia-rpc.publicnode.com",
|
|
8
9
|
"11155111": "https://ethereum-sepolia-rpc.publicnode.com",
|
|
9
10
|
},
|
|
10
11
|
relaychainUrl: "wss://westend-rpc.n.dwellir.com",
|
|
@@ -13,7 +14,7 @@ const registry = {
|
|
|
13
14
|
"1002": "wss://bridge-hub-westend-rpc.n.dwellir.com",
|
|
14
15
|
},
|
|
15
16
|
gatewayContract: "0x9ed8b47bc3417e3bd0507adc06e56e2fa360a4e9",
|
|
16
|
-
beefyContract: "
|
|
17
|
+
beefyContract: "0xa04460b1d8bbef33f54edb2c3115e3e4d41237a6",
|
|
17
18
|
assetHubParaId: 1000,
|
|
18
19
|
bridgeHubParaId: 1002,
|
|
19
20
|
v2_parachains: [1000],
|
|
@@ -21,14 +22,14 @@ const registry = {
|
|
|
21
22
|
"https://snowbridge.squids.live/snowbridge-subsquid-westend@v1/api/graphql",
|
|
22
23
|
l2Bridge: {
|
|
23
24
|
acrossAPIUrl: "https://testnet.across.to/api",
|
|
24
|
-
l1AdapterAddress: "
|
|
25
|
-
l1HandlerAddress: "
|
|
26
|
-
l1FeeTokenAddress: "
|
|
27
|
-
l1SwapRouterAddress: "
|
|
28
|
-
l1SwapQuoterAddress: "
|
|
25
|
+
l1AdapterAddress: "0xcda9bff39cdf39e95f4b699422e422195091126d",
|
|
26
|
+
l1HandlerAddress: "0x924a9f036260ddd5808007e1aa95f08ed08aa569",
|
|
27
|
+
l1FeeTokenAddress: "0xfff9976782d46cc05630d1f6ebab18b2324d6b14",
|
|
28
|
+
l1SwapRouterAddress: "0x3bfa4769fb09eefc5a80d6e87c3b9c650f7ae48e",
|
|
29
|
+
l1SwapQuoterAddress: "0xed1f6473345f45b75f8179591dd5ba1888cf2fb3",
|
|
29
30
|
l2Chains: {
|
|
30
31
|
"84532": {
|
|
31
|
-
adapterAddress: "
|
|
32
|
+
adapterAddress: "0xf06939613a3838af11104c898758220db9093679",
|
|
32
33
|
feeTokenAddress: "0x4200000000000000000000000000000000000006",
|
|
33
34
|
swapRoutes: [
|
|
34
35
|
{
|
|
@@ -43,6 +44,22 @@ const registry = {
|
|
|
43
44
|
},
|
|
44
45
|
],
|
|
45
46
|
},
|
|
47
|
+
"421614": {
|
|
48
|
+
adapterAddress: "0xcb3d8043bdbfb0d9b30de279a09132073d1de561",
|
|
49
|
+
feeTokenAddress: "0x980b62da83eff3d4576c647993b0c1d7faf17c73",
|
|
50
|
+
swapRoutes: [
|
|
51
|
+
{
|
|
52
|
+
inputToken: "0x980b62da83eff3d4576c647993b0c1d7faf17c73",
|
|
53
|
+
outputToken: "0xfff9976782d46cc05630d1f6ebab18b2324d6b14",
|
|
54
|
+
swapFee: 0,
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
inputToken: "0x75faf114eafb1bdbe2f0316df893fd58ce46aa4d",
|
|
58
|
+
outputToken: "0x1c7d4b196cb0c7b01d743fbc6116a902379c7238",
|
|
59
|
+
swapFee: 500,
|
|
60
|
+
},
|
|
61
|
+
],
|
|
62
|
+
},
|
|
46
63
|
},
|
|
47
64
|
},
|
|
48
65
|
},
|
|
@@ -83,9 +100,69 @@ const registry = {
|
|
|
83
100
|
"0xf50fb50d65c8c1f6c72e4d8397c984933afc8f7e",
|
|
84
101
|
],
|
|
85
102
|
},
|
|
103
|
+
{
|
|
104
|
+
from: {
|
|
105
|
+
kind: "polkadot",
|
|
106
|
+
id: 1000,
|
|
107
|
+
},
|
|
108
|
+
to: {
|
|
109
|
+
kind: "ethereum_l2",
|
|
110
|
+
id: 84532,
|
|
111
|
+
},
|
|
112
|
+
assets: [
|
|
113
|
+
"0x0000000000000000000000000000000000000000",
|
|
114
|
+
"0x1c7d4b196cb0c7b01d743fbc6116a902379c7238",
|
|
115
|
+
"0xfff9976782d46cc05630d1f6ebab18b2324d6b14",
|
|
116
|
+
],
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
from: {
|
|
120
|
+
kind: "ethereum_l2",
|
|
121
|
+
id: 84532,
|
|
122
|
+
},
|
|
123
|
+
to: {
|
|
124
|
+
kind: "polkadot",
|
|
125
|
+
id: 1000,
|
|
126
|
+
},
|
|
127
|
+
assets: [
|
|
128
|
+
"0x0000000000000000000000000000000000000000",
|
|
129
|
+
"0x1c7d4b196cb0c7b01d743fbc6116a902379c7238",
|
|
130
|
+
"0xfff9976782d46cc05630d1f6ebab18b2324d6b14",
|
|
131
|
+
],
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
from: {
|
|
135
|
+
kind: "polkadot",
|
|
136
|
+
id: 1000,
|
|
137
|
+
},
|
|
138
|
+
to: {
|
|
139
|
+
kind: "ethereum_l2",
|
|
140
|
+
id: 421614,
|
|
141
|
+
},
|
|
142
|
+
assets: [
|
|
143
|
+
"0x0000000000000000000000000000000000000000",
|
|
144
|
+
"0x1c7d4b196cb0c7b01d743fbc6116a902379c7238",
|
|
145
|
+
"0xfff9976782d46cc05630d1f6ebab18b2324d6b14",
|
|
146
|
+
],
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
from: {
|
|
150
|
+
kind: "ethereum_l2",
|
|
151
|
+
id: 421614,
|
|
152
|
+
},
|
|
153
|
+
to: {
|
|
154
|
+
kind: "polkadot",
|
|
155
|
+
id: 1000,
|
|
156
|
+
},
|
|
157
|
+
assets: [
|
|
158
|
+
"0x0000000000000000000000000000000000000000",
|
|
159
|
+
"0x1c7d4b196cb0c7b01d743fbc6116a902379c7238",
|
|
160
|
+
"0xfff9976782d46cc05630d1f6ebab18b2324d6b14",
|
|
161
|
+
],
|
|
162
|
+
},
|
|
86
163
|
],
|
|
87
164
|
registry: {
|
|
88
|
-
timestamp: "2026-
|
|
165
|
+
timestamp: "2026-02-16T10:24:33.190Z",
|
|
89
166
|
environment: "westend_sepolia",
|
|
90
167
|
ethChainId: 11155111,
|
|
91
168
|
gatewayAddress: "0x9ed8b47bc3417e3bd0507adc06e56e2fa360a4e9",
|
|
@@ -99,7 +176,7 @@ const registry = {
|
|
|
99
176
|
accountType: "AccountId32",
|
|
100
177
|
name: "Westend",
|
|
101
178
|
specName: "westend",
|
|
102
|
-
specVersion:
|
|
179
|
+
specVersion: 1021002,
|
|
103
180
|
},
|
|
104
181
|
bridgeHub: {
|
|
105
182
|
tokenSymbols: "WND",
|
|
@@ -109,12 +186,13 @@ const registry = {
|
|
|
109
186
|
accountType: "AccountId32",
|
|
110
187
|
name: "Westend BridgeHub",
|
|
111
188
|
specName: "bridge-hub-westend",
|
|
112
|
-
specVersion:
|
|
189
|
+
specVersion: 1021001,
|
|
113
190
|
},
|
|
114
191
|
ethereumChains: {
|
|
115
192
|
ethereum_l2_84532: {
|
|
116
193
|
kind: "ethereum_l2",
|
|
117
194
|
id: 84532,
|
|
195
|
+
name: "base-sepolia",
|
|
118
196
|
assets: {
|
|
119
197
|
"0x4200000000000000000000000000000000000006": {
|
|
120
198
|
token: "0x4200000000000000000000000000000000000006",
|
|
@@ -143,9 +221,42 @@ const registry = {
|
|
|
143
221
|
},
|
|
144
222
|
key: "ethereum_l2_84532",
|
|
145
223
|
},
|
|
224
|
+
ethereum_l2_421614: {
|
|
225
|
+
kind: "ethereum_l2",
|
|
226
|
+
id: 421614,
|
|
227
|
+
name: "arbitrum-sepolia",
|
|
228
|
+
assets: {
|
|
229
|
+
"0x980b62da83eff3d4576c647993b0c1d7faf17c73": {
|
|
230
|
+
token: "0x980b62da83eff3d4576c647993b0c1d7faf17c73",
|
|
231
|
+
name: "WETH",
|
|
232
|
+
symbol: "WETH",
|
|
233
|
+
decimals: 18,
|
|
234
|
+
swapTokenAddress: "0xfff9976782d46cc05630d1f6ebab18b2324d6b14",
|
|
235
|
+
swapFee: 0,
|
|
236
|
+
},
|
|
237
|
+
"0x75faf114eafb1bdbe2f0316df893fd58ce46aa4d": {
|
|
238
|
+
token: "0x75faf114eafb1bdbe2f0316df893fd58ce46aa4d",
|
|
239
|
+
name: "USD Coin",
|
|
240
|
+
symbol: "USDC",
|
|
241
|
+
decimals: 6,
|
|
242
|
+
swapTokenAddress: "0x1c7d4b196cb0c7b01d743fbc6116a902379c7238",
|
|
243
|
+
swapFee: 500,
|
|
244
|
+
},
|
|
245
|
+
"0x0000000000000000000000000000000000000000": {
|
|
246
|
+
token: "0x0000000000000000000000000000000000000000",
|
|
247
|
+
name: "Ether",
|
|
248
|
+
symbol: "Ether",
|
|
249
|
+
decimals: 18,
|
|
250
|
+
swapTokenAddress: "0x0000000000000000000000000000000000000000",
|
|
251
|
+
swapFee: 0,
|
|
252
|
+
},
|
|
253
|
+
},
|
|
254
|
+
key: "ethereum_l2_421614",
|
|
255
|
+
},
|
|
146
256
|
ethereum_11155111: {
|
|
147
257
|
kind: "ethereum",
|
|
148
258
|
id: 11155111,
|
|
259
|
+
name: "sepolia",
|
|
149
260
|
assets: {
|
|
150
261
|
"0x0000000000000000000000000000000000000000": {
|
|
151
262
|
token: "0x0000000000000000000000000000000000000000",
|
|
@@ -231,7 +342,7 @@ const registry = {
|
|
|
231
342
|
accountType: "AccountId32",
|
|
232
343
|
name: "Westend Asset Hub",
|
|
233
344
|
specName: "westmint",
|
|
234
|
-
specVersion:
|
|
345
|
+
specVersion: 1021003,
|
|
235
346
|
},
|
|
236
347
|
assets: {
|
|
237
348
|
"0x0000000000000000000000000000000000000000": {
|