@snowbridge/registry 0.4.2 → 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
|
@@ -7,8 +7,10 @@ const registry = {
|
|
|
7
7
|
beaconApiUrl: "https://lodestar-mainnet.chainsafe.io",
|
|
8
8
|
ethereumChains: {
|
|
9
9
|
"1": "https://ethereum-rpc.publicnode.com",
|
|
10
|
+
"10": "https://optimism-rpc.publicnode.com",
|
|
10
11
|
"1284": "https://rpc.api.moonbeam.network",
|
|
11
12
|
"8453": "https://base-rpc.publicnode.com",
|
|
13
|
+
"42161": "https://arbitrum-one-rpc.publicnode.com",
|
|
12
14
|
},
|
|
13
15
|
relaychainUrl: "https://polkadot-rpc.n.dwellir.com",
|
|
14
16
|
parachains: {
|
|
@@ -22,7 +24,7 @@ const registry = {
|
|
|
22
24
|
"3369": "wss://polkadot-mythos-rpc.polkadot.io",
|
|
23
25
|
},
|
|
24
26
|
gatewayContract: "0x27ca963c279c93801941e1eb8799c23f407d68e7",
|
|
25
|
-
beefyContract: "
|
|
27
|
+
beefyContract: "0x1817874feab3ce053d0f40abc23870db35c2affc",
|
|
26
28
|
assetHubParaId: 1000,
|
|
27
29
|
bridgeHubParaId: 1002,
|
|
28
30
|
v2_parachains: [1000],
|
|
@@ -45,14 +47,30 @@ const registry = {
|
|
|
45
47
|
},
|
|
46
48
|
l2Bridge: {
|
|
47
49
|
acrossAPIUrl: "https://app.across.to/api",
|
|
48
|
-
l1AdapterAddress: "
|
|
49
|
-
l1HandlerAddress: "
|
|
50
|
+
l1AdapterAddress: "0xd3b11c36404b092645522b682832fcdee07d2668",
|
|
51
|
+
l1HandlerAddress: "0x924a9f036260ddd5808007e1aa95f08ed08aa569",
|
|
50
52
|
l1FeeTokenAddress: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
|
|
51
|
-
l1SwapQuoterAddress: "
|
|
52
|
-
l1SwapRouterAddress: "
|
|
53
|
+
l1SwapQuoterAddress: "0x61ffe014ba17989e743c5f6cb21bf9697530b21e",
|
|
54
|
+
l1SwapRouterAddress: "0xe592427a0aece92de3edee1f18e0157c05861564",
|
|
53
55
|
l2Chains: {
|
|
56
|
+
"10": {
|
|
57
|
+
adapterAddress: "0x836895ad176235dfe9c59b3df56c7579d90ea338",
|
|
58
|
+
feeTokenAddress: "0x4200000000000000000000000000000000000006",
|
|
59
|
+
swapRoutes: [
|
|
60
|
+
{
|
|
61
|
+
inputToken: "0x4200000000000000000000000000000000000006",
|
|
62
|
+
outputToken: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
|
|
63
|
+
swapFee: 0,
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
inputToken: "0x0b2c639c533813f4aa9d7837caf62653d097ff85",
|
|
67
|
+
outputToken: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
|
|
68
|
+
swapFee: 500,
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
},
|
|
54
72
|
"8453": {
|
|
55
|
-
adapterAddress: "
|
|
73
|
+
adapterAddress: "0x07fe4e7340976fc873b74bafe3c3e5b0e01f3665",
|
|
56
74
|
feeTokenAddress: "0x4200000000000000000000000000000000000006",
|
|
57
75
|
swapRoutes: [
|
|
58
76
|
{
|
|
@@ -61,8 +79,24 @@ const registry = {
|
|
|
61
79
|
swapFee: 0,
|
|
62
80
|
},
|
|
63
81
|
{
|
|
64
|
-
inputToken: "
|
|
65
|
-
outputToken: "
|
|
82
|
+
inputToken: "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
|
|
83
|
+
outputToken: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
|
|
84
|
+
swapFee: 500,
|
|
85
|
+
},
|
|
86
|
+
],
|
|
87
|
+
},
|
|
88
|
+
"42161": {
|
|
89
|
+
adapterAddress: "0x836895ad176235dfe9c59b3df56c7579d90ea338",
|
|
90
|
+
feeTokenAddress: "0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
|
|
91
|
+
swapRoutes: [
|
|
92
|
+
{
|
|
93
|
+
inputToken: "0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
|
|
94
|
+
outputToken: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
|
|
95
|
+
swapFee: 0,
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
inputToken: "0xaf88d065e77c8cc2239327c5edb3a432268e5831",
|
|
99
|
+
outputToken: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
|
|
66
100
|
swapFee: 500,
|
|
67
101
|
},
|
|
68
102
|
],
|
|
@@ -435,9 +469,99 @@ const registry = {
|
|
|
435
469
|
"0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9",
|
|
436
470
|
],
|
|
437
471
|
},
|
|
472
|
+
{
|
|
473
|
+
from: {
|
|
474
|
+
kind: "polkadot",
|
|
475
|
+
id: 1000,
|
|
476
|
+
},
|
|
477
|
+
to: {
|
|
478
|
+
kind: "ethereum_l2",
|
|
479
|
+
id: 10,
|
|
480
|
+
},
|
|
481
|
+
assets: [
|
|
482
|
+
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
|
|
483
|
+
"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
|
|
484
|
+
"0x0000000000000000000000000000000000000000",
|
|
485
|
+
],
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
from: {
|
|
489
|
+
kind: "ethereum_l2",
|
|
490
|
+
id: 10,
|
|
491
|
+
},
|
|
492
|
+
to: {
|
|
493
|
+
kind: "polkadot",
|
|
494
|
+
id: 1000,
|
|
495
|
+
},
|
|
496
|
+
assets: [
|
|
497
|
+
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
|
|
498
|
+
"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
|
|
499
|
+
"0x0000000000000000000000000000000000000000",
|
|
500
|
+
],
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
from: {
|
|
504
|
+
kind: "polkadot",
|
|
505
|
+
id: 1000,
|
|
506
|
+
},
|
|
507
|
+
to: {
|
|
508
|
+
kind: "ethereum_l2",
|
|
509
|
+
id: 8453,
|
|
510
|
+
},
|
|
511
|
+
assets: [
|
|
512
|
+
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
|
|
513
|
+
"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
|
|
514
|
+
"0x0000000000000000000000000000000000000000",
|
|
515
|
+
],
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
from: {
|
|
519
|
+
kind: "ethereum_l2",
|
|
520
|
+
id: 8453,
|
|
521
|
+
},
|
|
522
|
+
to: {
|
|
523
|
+
kind: "polkadot",
|
|
524
|
+
id: 1000,
|
|
525
|
+
},
|
|
526
|
+
assets: [
|
|
527
|
+
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
|
|
528
|
+
"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
|
|
529
|
+
"0x0000000000000000000000000000000000000000",
|
|
530
|
+
],
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
from: {
|
|
534
|
+
kind: "polkadot",
|
|
535
|
+
id: 1000,
|
|
536
|
+
},
|
|
537
|
+
to: {
|
|
538
|
+
kind: "ethereum_l2",
|
|
539
|
+
id: 42161,
|
|
540
|
+
},
|
|
541
|
+
assets: [
|
|
542
|
+
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
|
|
543
|
+
"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
|
|
544
|
+
"0x0000000000000000000000000000000000000000",
|
|
545
|
+
],
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
from: {
|
|
549
|
+
kind: "ethereum_l2",
|
|
550
|
+
id: 42161,
|
|
551
|
+
},
|
|
552
|
+
to: {
|
|
553
|
+
kind: "polkadot",
|
|
554
|
+
id: 1000,
|
|
555
|
+
},
|
|
556
|
+
assets: [
|
|
557
|
+
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
|
|
558
|
+
"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
|
|
559
|
+
"0x0000000000000000000000000000000000000000",
|
|
560
|
+
],
|
|
561
|
+
},
|
|
438
562
|
],
|
|
439
563
|
registry: {
|
|
440
|
-
timestamp: "2026-02-
|
|
564
|
+
timestamp: "2026-02-16T10:21:57.286Z",
|
|
441
565
|
environment: "polkadot_mainnet",
|
|
442
566
|
ethChainId: 1,
|
|
443
567
|
gatewayAddress: "0x27ca963c279c93801941e1eb8799c23f407d68e7",
|
|
@@ -451,7 +575,7 @@ const registry = {
|
|
|
451
575
|
accountType: "AccountId32",
|
|
452
576
|
name: "Polkadot",
|
|
453
577
|
specName: "polkadot",
|
|
454
|
-
specVersion:
|
|
578
|
+
specVersion: 2000006,
|
|
455
579
|
},
|
|
456
580
|
bridgeHub: {
|
|
457
581
|
tokenSymbols: "DOT",
|
|
@@ -461,12 +585,13 @@ const registry = {
|
|
|
461
585
|
accountType: "AccountId32",
|
|
462
586
|
name: "Polkadot BridgeHub",
|
|
463
587
|
specName: "bridge-hub-polkadot",
|
|
464
|
-
specVersion:
|
|
588
|
+
specVersion: 2000006,
|
|
465
589
|
},
|
|
466
590
|
ethereumChains: {
|
|
467
591
|
ethereum_1: {
|
|
468
592
|
kind: "ethereum",
|
|
469
593
|
id: 1,
|
|
594
|
+
name: "mainnet",
|
|
470
595
|
assets: {
|
|
471
596
|
"0x9d39a5de30e57443bff2a8307a4256c8797a3497": {
|
|
472
597
|
token: "0x9d39a5de30e57443bff2a8307a4256c8797a3497",
|
|
@@ -737,6 +862,38 @@ const registry = {
|
|
|
737
862
|
key: "ethereum_1",
|
|
738
863
|
baseDeliveryGas: 120000n,
|
|
739
864
|
},
|
|
865
|
+
ethereum_l2_10: {
|
|
866
|
+
kind: "ethereum_l2",
|
|
867
|
+
id: 10,
|
|
868
|
+
name: "optimism",
|
|
869
|
+
assets: {
|
|
870
|
+
"0x4200000000000000000000000000000000000006": {
|
|
871
|
+
token: "0x4200000000000000000000000000000000000006",
|
|
872
|
+
name: "Wrapped Ether",
|
|
873
|
+
symbol: "WETH",
|
|
874
|
+
decimals: 18,
|
|
875
|
+
swapTokenAddress: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
|
|
876
|
+
swapFee: 0,
|
|
877
|
+
},
|
|
878
|
+
"0x0b2c639c533813f4aa9d7837caf62653d097ff85": {
|
|
879
|
+
token: "0x0b2c639c533813f4aa9d7837caf62653d097ff85",
|
|
880
|
+
name: "USD Coin",
|
|
881
|
+
symbol: "USDC",
|
|
882
|
+
decimals: 6,
|
|
883
|
+
swapTokenAddress: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
|
|
884
|
+
swapFee: 500,
|
|
885
|
+
},
|
|
886
|
+
"0x0000000000000000000000000000000000000000": {
|
|
887
|
+
token: "0x0000000000000000000000000000000000000000",
|
|
888
|
+
name: "Ether",
|
|
889
|
+
symbol: "Ether",
|
|
890
|
+
decimals: 18,
|
|
891
|
+
swapTokenAddress: "0x0000000000000000000000000000000000000000",
|
|
892
|
+
swapFee: 0,
|
|
893
|
+
},
|
|
894
|
+
},
|
|
895
|
+
key: "ethereum_l2_10",
|
|
896
|
+
},
|
|
740
897
|
ethereum_1284: {
|
|
741
898
|
kind: "ethereum",
|
|
742
899
|
id: 1284,
|
|
@@ -807,6 +964,7 @@ const registry = {
|
|
|
807
964
|
ethereum_l2_8453: {
|
|
808
965
|
kind: "ethereum_l2",
|
|
809
966
|
id: 8453,
|
|
967
|
+
name: "base",
|
|
810
968
|
assets: {
|
|
811
969
|
"0x4200000000000000000000000000000000000006": {
|
|
812
970
|
token: "0x4200000000000000000000000000000000000006",
|
|
@@ -816,12 +974,12 @@ const registry = {
|
|
|
816
974
|
swapTokenAddress: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
|
|
817
975
|
swapFee: 0,
|
|
818
976
|
},
|
|
819
|
-
"
|
|
820
|
-
token: "
|
|
977
|
+
"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913": {
|
|
978
|
+
token: "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
|
|
821
979
|
name: "USD Coin",
|
|
822
980
|
symbol: "USDC",
|
|
823
981
|
decimals: 6,
|
|
824
|
-
swapTokenAddress: "
|
|
982
|
+
swapTokenAddress: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
|
|
825
983
|
swapFee: 500,
|
|
826
984
|
},
|
|
827
985
|
"0x0000000000000000000000000000000000000000": {
|
|
@@ -835,6 +993,38 @@ const registry = {
|
|
|
835
993
|
},
|
|
836
994
|
key: "ethereum_l2_8453",
|
|
837
995
|
},
|
|
996
|
+
ethereum_l2_42161: {
|
|
997
|
+
kind: "ethereum_l2",
|
|
998
|
+
id: 42161,
|
|
999
|
+
name: "arbitrum",
|
|
1000
|
+
assets: {
|
|
1001
|
+
"0x82af49447d8a07e3bd95bd0d56f35241523fbab1": {
|
|
1002
|
+
token: "0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
|
|
1003
|
+
name: "Wrapped Ether",
|
|
1004
|
+
symbol: "WETH",
|
|
1005
|
+
decimals: 18,
|
|
1006
|
+
swapTokenAddress: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
|
|
1007
|
+
swapFee: 0,
|
|
1008
|
+
},
|
|
1009
|
+
"0xaf88d065e77c8cc2239327c5edb3a432268e5831": {
|
|
1010
|
+
token: "0xaf88d065e77c8cc2239327c5edb3a432268e5831",
|
|
1011
|
+
name: "USD Coin",
|
|
1012
|
+
symbol: "USDC",
|
|
1013
|
+
decimals: 6,
|
|
1014
|
+
swapTokenAddress: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
|
|
1015
|
+
swapFee: 500,
|
|
1016
|
+
},
|
|
1017
|
+
"0x0000000000000000000000000000000000000000": {
|
|
1018
|
+
token: "0x0000000000000000000000000000000000000000",
|
|
1019
|
+
name: "Ether",
|
|
1020
|
+
symbol: "Ether",
|
|
1021
|
+
decimals: 18,
|
|
1022
|
+
swapTokenAddress: "0x0000000000000000000000000000000000000000",
|
|
1023
|
+
swapFee: 0,
|
|
1024
|
+
},
|
|
1025
|
+
},
|
|
1026
|
+
key: "ethereum_l2_42161",
|
|
1027
|
+
},
|
|
838
1028
|
},
|
|
839
1029
|
parachains: {
|
|
840
1030
|
polkadot_1000: {
|
|
@@ -861,7 +1051,7 @@ const registry = {
|
|
|
861
1051
|
accountType: "AccountId32",
|
|
862
1052
|
name: "Polkadot Asset Hub",
|
|
863
1053
|
specName: "statemint",
|
|
864
|
-
specVersion:
|
|
1054
|
+
specVersion: 2000006,
|
|
865
1055
|
},
|
|
866
1056
|
assets: {
|
|
867
1057
|
"0x9d39a5de30e57443bff2a8307a4256c8797a3497": {
|
|
@@ -1634,7 +1824,7 @@ const registry = {
|
|
|
1634
1824
|
isSufficient: false,
|
|
1635
1825
|
},
|
|
1636
1826
|
},
|
|
1637
|
-
estimatedExecutionFeeDOT:
|
|
1827
|
+
estimatedExecutionFeeDOT: 85078513n,
|
|
1638
1828
|
estimatedDeliveryFeeDOT: 307100000n,
|
|
1639
1829
|
},
|
|
1640
1830
|
polkadot_2034: {
|
|
@@ -1818,7 +2008,7 @@ const registry = {
|
|
|
1818
2008
|
isSufficient: true,
|
|
1819
2009
|
},
|
|
1820
2010
|
},
|
|
1821
|
-
estimatedExecutionFeeDOT:
|
|
2011
|
+
estimatedExecutionFeeDOT: 1616331n,
|
|
1822
2012
|
estimatedDeliveryFeeDOT: 307100000n,
|
|
1823
2013
|
},
|
|
1824
2014
|
polkadot_2043: {
|
|
@@ -1926,7 +2116,7 @@ const registry = {
|
|
|
1926
2116
|
accountType: "AccountId32",
|
|
1927
2117
|
name: "Kusama Asset Hub",
|
|
1928
2118
|
specName: "statemine",
|
|
1929
|
-
specVersion:
|
|
2119
|
+
specVersion: 2000006,
|
|
1930
2120
|
},
|
|
1931
2121
|
assets: {
|
|
1932
2122
|
"0x9d39a5de30e57443bff2a8307a4256c8797a3497": {
|
package/dist/transfers.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transfers.d.ts","sourceRoot":"","sources":["../src/transfers.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,aAAa,EACb,gBAAgB,EAChB,MAAM,EAGN,OAAO,EACP,aAAa,EAChB,MAAM,wBAAwB,CAAA;AAE/B,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,aAAa,EAAE,KAAK,EAAE,OAAO,GAAG,gBAAgB,
|
|
1
|
+
{"version":3,"file":"transfers.d.ts","sourceRoot":"","sources":["../src/transfers.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,aAAa,EACb,gBAAgB,EAChB,MAAM,EAGN,OAAO,EACP,aAAa,EAChB,MAAM,wBAAwB,CAAA;AAE/B,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,aAAa,EAAE,KAAK,EAAE,OAAO,GAAG,gBAAgB,CA6D7F;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,SAAS,aAAa,EAAE,GAAG,MAAM,EAAE,CAuB/E"}
|
package/dist/transfers.js
CHANGED
|
@@ -3,53 +3,72 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getTransferLocation = getTransferLocation;
|
|
4
4
|
exports.getTransferLocations = getTransferLocations;
|
|
5
5
|
function getTransferLocation(registry, chain) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
parachain
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
kind: ethChain.kind,
|
|
32
|
-
id: ethChain.id,
|
|
33
|
-
key: ethChain.key,
|
|
34
|
-
name: "Ethereum",
|
|
35
|
-
ethChain,
|
|
6
|
+
switch (chain.kind) {
|
|
7
|
+
case "kusama": {
|
|
8
|
+
if (!registry.kusama)
|
|
9
|
+
throw Error(`Kusama not configured.`);
|
|
10
|
+
const key = `${chain.kind}_${chain.id}`;
|
|
11
|
+
const parachain = registry.kusama.parachains[key];
|
|
12
|
+
if (!parachain)
|
|
13
|
+
throw Error(`Cannot find chain ${key}`);
|
|
14
|
+
return {
|
|
15
|
+
id: parachain.id,
|
|
16
|
+
kind: parachain.kind,
|
|
17
|
+
key: parachain.key,
|
|
18
|
+
parachain,
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
case "polkadot": {
|
|
22
|
+
const key = `${chain.kind}_${chain.id}`;
|
|
23
|
+
const parachain = registry.parachains[key];
|
|
24
|
+
if (!parachain)
|
|
25
|
+
throw Error(`Cannot find chain ${key}`);
|
|
26
|
+
return {
|
|
27
|
+
id: parachain.id,
|
|
28
|
+
kind: parachain.kind,
|
|
29
|
+
key: parachain.key,
|
|
30
|
+
parachain,
|
|
36
31
|
};
|
|
37
32
|
}
|
|
38
|
-
|
|
39
|
-
const
|
|
40
|
-
|
|
33
|
+
case "ethereum": {
|
|
34
|
+
const key = `${chain.kind}_${chain.id}`;
|
|
35
|
+
const ethChain = registry.ethereumChains[key];
|
|
36
|
+
if (!ethChain)
|
|
37
|
+
throw Error(`Cannot find chain ${key}`);
|
|
38
|
+
if (!ethChain.evmParachainId) {
|
|
39
|
+
return {
|
|
40
|
+
kind: ethChain.kind,
|
|
41
|
+
id: ethChain.id,
|
|
42
|
+
key: ethChain.key,
|
|
43
|
+
ethChain,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
const evmChain = registry.parachains[`polkadot_${ethChain.evmParachainId}`];
|
|
48
|
+
return {
|
|
49
|
+
kind: ethChain.kind,
|
|
50
|
+
id: ethChain.id,
|
|
51
|
+
key: ethChain.key,
|
|
52
|
+
ethChain,
|
|
53
|
+
parachain: evmChain,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
case "ethereum_l2": {
|
|
58
|
+
const key = `${chain.kind}_${chain.id}`;
|
|
59
|
+
const ethChain = registry.ethereumChains[key];
|
|
60
|
+
if (!ethChain)
|
|
61
|
+
throw Error(`Cannot find chain ${key}`);
|
|
62
|
+
return {
|
|
41
63
|
kind: ethChain.kind,
|
|
42
64
|
id: ethChain.id,
|
|
43
65
|
key: ethChain.key,
|
|
44
|
-
name: `${evmChain.info.name} (EVM)`,
|
|
45
66
|
ethChain,
|
|
46
|
-
parachain: evmChain,
|
|
47
67
|
};
|
|
48
68
|
}
|
|
69
|
+
default:
|
|
70
|
+
throw Error(`Unknown ${chain.kind} chain ${chain.id}.`);
|
|
49
71
|
}
|
|
50
|
-
if (location === null)
|
|
51
|
-
throw Error(`Unknown ${chain.kind} chain ${chain.id}.`);
|
|
52
|
-
return location;
|
|
53
72
|
}
|
|
54
73
|
function getTransferLocations(routes) {
|
|
55
74
|
let sources = [];
|
|
@@ -5,6 +5,7 @@ declare const registry: {
|
|
|
5
5
|
readonly beaconApiUrl: "https://lodestar-sepolia.chainsafe.io";
|
|
6
6
|
readonly ethereumChains: {
|
|
7
7
|
readonly "84532": "https://base-sepolia-rpc.publicnode.com";
|
|
8
|
+
readonly "421614": "https://arbitrum-sepolia-rpc.publicnode.com";
|
|
8
9
|
readonly "11155111": "https://ethereum-sepolia-rpc.publicnode.com";
|
|
9
10
|
};
|
|
10
11
|
readonly relaychainUrl: "wss://westend-rpc.n.dwellir.com";
|
|
@@ -13,21 +14,21 @@ declare const registry: {
|
|
|
13
14
|
readonly "1002": "wss://bridge-hub-westend-rpc.n.dwellir.com";
|
|
14
15
|
};
|
|
15
16
|
readonly gatewayContract: "0x9ed8b47bc3417e3bd0507adc06e56e2fa360a4e9";
|
|
16
|
-
readonly beefyContract: "
|
|
17
|
+
readonly beefyContract: "0xa04460b1d8bbef33f54edb2c3115e3e4d41237a6";
|
|
17
18
|
readonly assetHubParaId: 1000;
|
|
18
19
|
readonly bridgeHubParaId: 1002;
|
|
19
20
|
readonly v2_parachains: readonly [1000];
|
|
20
21
|
readonly indexerGraphQlUrl: "https://snowbridge.squids.live/snowbridge-subsquid-westend@v1/api/graphql";
|
|
21
22
|
readonly l2Bridge: {
|
|
22
23
|
readonly acrossAPIUrl: "https://testnet.across.to/api";
|
|
23
|
-
readonly l1AdapterAddress: "
|
|
24
|
-
readonly l1HandlerAddress: "
|
|
25
|
-
readonly l1FeeTokenAddress: "
|
|
26
|
-
readonly l1SwapRouterAddress: "
|
|
27
|
-
readonly l1SwapQuoterAddress: "
|
|
24
|
+
readonly l1AdapterAddress: "0xcda9bff39cdf39e95f4b699422e422195091126d";
|
|
25
|
+
readonly l1HandlerAddress: "0x924a9f036260ddd5808007e1aa95f08ed08aa569";
|
|
26
|
+
readonly l1FeeTokenAddress: "0xfff9976782d46cc05630d1f6ebab18b2324d6b14";
|
|
27
|
+
readonly l1SwapRouterAddress: "0x3bfa4769fb09eefc5a80d6e87c3b9c650f7ae48e";
|
|
28
|
+
readonly l1SwapQuoterAddress: "0xed1f6473345f45b75f8179591dd5ba1888cf2fb3";
|
|
28
29
|
readonly l2Chains: {
|
|
29
30
|
readonly "84532": {
|
|
30
|
-
readonly adapterAddress: "
|
|
31
|
+
readonly adapterAddress: "0xf06939613a3838af11104c898758220db9093679";
|
|
31
32
|
readonly feeTokenAddress: "0x4200000000000000000000000000000000000006";
|
|
32
33
|
readonly swapRoutes: readonly [{
|
|
33
34
|
readonly inputToken: "0x4200000000000000000000000000000000000006";
|
|
@@ -39,6 +40,19 @@ declare const registry: {
|
|
|
39
40
|
readonly swapFee: 500;
|
|
40
41
|
}];
|
|
41
42
|
};
|
|
43
|
+
readonly "421614": {
|
|
44
|
+
readonly adapterAddress: "0xcb3d8043bdbfb0d9b30de279a09132073d1de561";
|
|
45
|
+
readonly feeTokenAddress: "0x980b62da83eff3d4576c647993b0c1d7faf17c73";
|
|
46
|
+
readonly swapRoutes: readonly [{
|
|
47
|
+
readonly inputToken: "0x980b62da83eff3d4576c647993b0c1d7faf17c73";
|
|
48
|
+
readonly outputToken: "0xfff9976782d46cc05630d1f6ebab18b2324d6b14";
|
|
49
|
+
readonly swapFee: 0;
|
|
50
|
+
}, {
|
|
51
|
+
readonly inputToken: "0x75faf114eafb1bdbe2f0316df893fd58ce46aa4d";
|
|
52
|
+
readonly outputToken: "0x1c7d4b196cb0c7b01d743fbc6116a902379c7238";
|
|
53
|
+
readonly swapFee: 500;
|
|
54
|
+
}];
|
|
55
|
+
};
|
|
42
56
|
};
|
|
43
57
|
};
|
|
44
58
|
};
|
|
@@ -62,9 +76,49 @@ declare const registry: {
|
|
|
62
76
|
readonly id: 11155111;
|
|
63
77
|
};
|
|
64
78
|
readonly assets: readonly ["0x0000000000000000000000000000000000000000", "0x1c7d4b196cb0c7b01d743fbc6116a902379c7238", "0xfff9976782d46cc05630d1f6ebab18b2324d6b14", "0x23838b1bb57cecf4422a57dd8e7f8a087b30d54f", "0xb8a0f2703ac6bdd352096c90c2945a097e8f4055", "0xf50fb50d65c8c1f6c72e4d8397c984933afc8f7e"];
|
|
79
|
+
}, {
|
|
80
|
+
readonly from: {
|
|
81
|
+
readonly kind: "polkadot";
|
|
82
|
+
readonly id: 1000;
|
|
83
|
+
};
|
|
84
|
+
readonly to: {
|
|
85
|
+
readonly kind: "ethereum_l2";
|
|
86
|
+
readonly id: 84532;
|
|
87
|
+
};
|
|
88
|
+
readonly assets: readonly ["0x0000000000000000000000000000000000000000", "0x1c7d4b196cb0c7b01d743fbc6116a902379c7238", "0xfff9976782d46cc05630d1f6ebab18b2324d6b14"];
|
|
89
|
+
}, {
|
|
90
|
+
readonly from: {
|
|
91
|
+
readonly kind: "ethereum_l2";
|
|
92
|
+
readonly id: 84532;
|
|
93
|
+
};
|
|
94
|
+
readonly to: {
|
|
95
|
+
readonly kind: "polkadot";
|
|
96
|
+
readonly id: 1000;
|
|
97
|
+
};
|
|
98
|
+
readonly assets: readonly ["0x0000000000000000000000000000000000000000", "0x1c7d4b196cb0c7b01d743fbc6116a902379c7238", "0xfff9976782d46cc05630d1f6ebab18b2324d6b14"];
|
|
99
|
+
}, {
|
|
100
|
+
readonly from: {
|
|
101
|
+
readonly kind: "polkadot";
|
|
102
|
+
readonly id: 1000;
|
|
103
|
+
};
|
|
104
|
+
readonly to: {
|
|
105
|
+
readonly kind: "ethereum_l2";
|
|
106
|
+
readonly id: 421614;
|
|
107
|
+
};
|
|
108
|
+
readonly assets: readonly ["0x0000000000000000000000000000000000000000", "0x1c7d4b196cb0c7b01d743fbc6116a902379c7238", "0xfff9976782d46cc05630d1f6ebab18b2324d6b14"];
|
|
109
|
+
}, {
|
|
110
|
+
readonly from: {
|
|
111
|
+
readonly kind: "ethereum_l2";
|
|
112
|
+
readonly id: 421614;
|
|
113
|
+
};
|
|
114
|
+
readonly to: {
|
|
115
|
+
readonly kind: "polkadot";
|
|
116
|
+
readonly id: 1000;
|
|
117
|
+
};
|
|
118
|
+
readonly assets: readonly ["0x0000000000000000000000000000000000000000", "0x1c7d4b196cb0c7b01d743fbc6116a902379c7238", "0xfff9976782d46cc05630d1f6ebab18b2324d6b14"];
|
|
65
119
|
}];
|
|
66
120
|
readonly registry: {
|
|
67
|
-
readonly timestamp: "2026-
|
|
121
|
+
readonly timestamp: "2026-02-16T10:24:33.190Z";
|
|
68
122
|
readonly environment: "westend_sepolia";
|
|
69
123
|
readonly ethChainId: 11155111;
|
|
70
124
|
readonly gatewayAddress: "0x9ed8b47bc3417e3bd0507adc06e56e2fa360a4e9";
|
|
@@ -78,7 +132,7 @@ declare const registry: {
|
|
|
78
132
|
readonly accountType: "AccountId32";
|
|
79
133
|
readonly name: "Westend";
|
|
80
134
|
readonly specName: "westend";
|
|
81
|
-
readonly specVersion:
|
|
135
|
+
readonly specVersion: 1021002;
|
|
82
136
|
};
|
|
83
137
|
readonly bridgeHub: {
|
|
84
138
|
readonly tokenSymbols: "WND";
|
|
@@ -88,12 +142,13 @@ declare const registry: {
|
|
|
88
142
|
readonly accountType: "AccountId32";
|
|
89
143
|
readonly name: "Westend BridgeHub";
|
|
90
144
|
readonly specName: "bridge-hub-westend";
|
|
91
|
-
readonly specVersion:
|
|
145
|
+
readonly specVersion: 1021001;
|
|
92
146
|
};
|
|
93
147
|
readonly ethereumChains: {
|
|
94
148
|
readonly ethereum_l2_84532: {
|
|
95
149
|
readonly kind: "ethereum_l2";
|
|
96
150
|
readonly id: 84532;
|
|
151
|
+
readonly name: "base-sepolia";
|
|
97
152
|
readonly assets: {
|
|
98
153
|
readonly "0x4200000000000000000000000000000000000006": {
|
|
99
154
|
readonly token: "0x4200000000000000000000000000000000000006";
|
|
@@ -122,9 +177,42 @@ declare const registry: {
|
|
|
122
177
|
};
|
|
123
178
|
readonly key: "ethereum_l2_84532";
|
|
124
179
|
};
|
|
180
|
+
readonly ethereum_l2_421614: {
|
|
181
|
+
readonly kind: "ethereum_l2";
|
|
182
|
+
readonly id: 421614;
|
|
183
|
+
readonly name: "arbitrum-sepolia";
|
|
184
|
+
readonly assets: {
|
|
185
|
+
readonly "0x980b62da83eff3d4576c647993b0c1d7faf17c73": {
|
|
186
|
+
readonly token: "0x980b62da83eff3d4576c647993b0c1d7faf17c73";
|
|
187
|
+
readonly name: "WETH";
|
|
188
|
+
readonly symbol: "WETH";
|
|
189
|
+
readonly decimals: 18;
|
|
190
|
+
readonly swapTokenAddress: "0xfff9976782d46cc05630d1f6ebab18b2324d6b14";
|
|
191
|
+
readonly swapFee: 0;
|
|
192
|
+
};
|
|
193
|
+
readonly "0x75faf114eafb1bdbe2f0316df893fd58ce46aa4d": {
|
|
194
|
+
readonly token: "0x75faf114eafb1bdbe2f0316df893fd58ce46aa4d";
|
|
195
|
+
readonly name: "USD Coin";
|
|
196
|
+
readonly symbol: "USDC";
|
|
197
|
+
readonly decimals: 6;
|
|
198
|
+
readonly swapTokenAddress: "0x1c7d4b196cb0c7b01d743fbc6116a902379c7238";
|
|
199
|
+
readonly swapFee: 500;
|
|
200
|
+
};
|
|
201
|
+
readonly "0x0000000000000000000000000000000000000000": {
|
|
202
|
+
readonly token: "0x0000000000000000000000000000000000000000";
|
|
203
|
+
readonly name: "Ether";
|
|
204
|
+
readonly symbol: "Ether";
|
|
205
|
+
readonly decimals: 18;
|
|
206
|
+
readonly swapTokenAddress: "0x0000000000000000000000000000000000000000";
|
|
207
|
+
readonly swapFee: 0;
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
readonly key: "ethereum_l2_421614";
|
|
211
|
+
};
|
|
125
212
|
readonly ethereum_11155111: {
|
|
126
213
|
readonly kind: "ethereum";
|
|
127
214
|
readonly id: 11155111;
|
|
215
|
+
readonly name: "sepolia";
|
|
128
216
|
readonly assets: {
|
|
129
217
|
readonly "0x0000000000000000000000000000000000000000": {
|
|
130
218
|
readonly token: "0x0000000000000000000000000000000000000000";
|
|
@@ -207,7 +295,7 @@ declare const registry: {
|
|
|
207
295
|
readonly accountType: "AccountId32";
|
|
208
296
|
readonly name: "Westend Asset Hub";
|
|
209
297
|
readonly specName: "westmint";
|
|
210
|
-
readonly specVersion:
|
|
298
|
+
readonly specVersion: 1021003;
|
|
211
299
|
};
|
|
212
300
|
readonly assets: {
|
|
213
301
|
readonly "0x0000000000000000000000000000000000000000": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"westend_sepolia_bridge_info.g.d.ts","sourceRoot":"","sources":["../src/westend_sepolia_bridge_info.g.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"westend_sepolia_bridge_info.g.d.ts","sourceRoot":"","sources":["../src/westend_sepolia_bridge_info.g.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6eJ,CAAA;AACV,eAAe,QAAQ,CAAA"}
|