@snowbridge/registry 1.0.14 → 1.0.16-alpha.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/local_e2e_bridge_info.g.d.ts +1 -1
- package/dist/local_e2e_bridge_info.g.js +1 -1
- package/dist/paseo_sepolia_bridge_info.g.d.ts +1 -1
- package/dist/paseo_sepolia_bridge_info.g.js +1 -1
- package/dist/polkadot_mainnet_bridge_info.g.d.ts +14 -11
- package/dist/polkadot_mainnet_bridge_info.g.d.ts.map +1 -1
- package/dist/polkadot_mainnet_bridge_info.g.js +14 -11
- package/dist/westend_sepolia_bridge_info.g.d.ts +1 -1
- package/dist/westend_sepolia_bridge_info.g.js +1 -1
- package/package.json +5 -5
- package/scripts/buildRegistry.ts +25 -6
- package/src/local_e2e_bridge_info.g.ts +1 -1
- package/src/paseo_sepolia_bridge_info.g.ts +1 -1
- package/src/polkadot_mainnet_bridge_info.g.ts +14 -11
- package/src/westend_sepolia_bridge_info.g.ts +1 -1
|
@@ -15,8 +15,8 @@ declare const registry: {
|
|
|
15
15
|
readonly "1000": "wss://polkadot-asset-hub-rpc.polkadot.io";
|
|
16
16
|
readonly "1002": "wss://polkadot-bridge-hub-rpc.polkadot.io";
|
|
17
17
|
readonly "2000": "wss://acala-rpc-0.aca-api.network";
|
|
18
|
-
readonly "2004": "wss://moonbeam.
|
|
19
|
-
readonly "2030": "wss://bifrost-polkadot.
|
|
18
|
+
readonly "2004": "wss://wss.api.moonbeam.network";
|
|
19
|
+
readonly "2030": "wss://eu.bifrost-polkadot-rpc.liebi.com/ws";
|
|
20
20
|
readonly "2034": "wss://hydration-rpc.n.dwellir.com";
|
|
21
21
|
readonly "2043": "wss://parachain-rpc.origin-trail.network";
|
|
22
22
|
readonly "3369": "wss://polkadot-mythos-rpc.polkadot.io";
|
|
@@ -325,7 +325,7 @@ declare const registry: {
|
|
|
325
325
|
readonly assets: readonly ["0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", "0x0000000000000000000000000000000000000000"];
|
|
326
326
|
}];
|
|
327
327
|
readonly registry: {
|
|
328
|
-
readonly timestamp: "2026-04-
|
|
328
|
+
readonly timestamp: "2026-04-29T04:33:23.183Z";
|
|
329
329
|
readonly environment: "polkadot_mainnet";
|
|
330
330
|
readonly ethChainId: 1;
|
|
331
331
|
readonly gatewayAddress: "0x27ca963c279c93801941e1eb8799c23f407d68e7";
|
|
@@ -339,7 +339,7 @@ declare const registry: {
|
|
|
339
339
|
readonly accountType: "AccountId32";
|
|
340
340
|
readonly name: "Polkadot";
|
|
341
341
|
readonly specName: "polkadot";
|
|
342
|
-
readonly specVersion:
|
|
342
|
+
readonly specVersion: 2002001;
|
|
343
343
|
};
|
|
344
344
|
readonly bridgeHub: {
|
|
345
345
|
readonly tokenSymbols: "DOT";
|
|
@@ -349,7 +349,7 @@ declare const registry: {
|
|
|
349
349
|
readonly accountType: "AccountId32";
|
|
350
350
|
readonly name: "Polkadot BridgeHub";
|
|
351
351
|
readonly specName: "bridge-hub-polkadot";
|
|
352
|
-
readonly specVersion:
|
|
352
|
+
readonly specVersion: 2002001;
|
|
353
353
|
};
|
|
354
354
|
readonly ethereumChains: {
|
|
355
355
|
readonly ethereum_1: {
|
|
@@ -632,7 +632,10 @@ declare const registry: {
|
|
|
632
632
|
};
|
|
633
633
|
};
|
|
634
634
|
readonly key: "ethereum_1";
|
|
635
|
-
readonly
|
|
635
|
+
readonly baseVerificationGas: 120000n;
|
|
636
|
+
readonly baseDispatchGas: 80000n;
|
|
637
|
+
readonly twoPhaseSubmitGas: 1000000n;
|
|
638
|
+
readonly submitFiatShamirGas: 2000000n;
|
|
636
639
|
};
|
|
637
640
|
readonly ethereum_l2_10: {
|
|
638
641
|
readonly kind: "ethereum_l2";
|
|
@@ -823,7 +826,7 @@ declare const registry: {
|
|
|
823
826
|
readonly accountType: "AccountId32";
|
|
824
827
|
readonly name: "Polkadot Asset Hub";
|
|
825
828
|
readonly specName: "statemint";
|
|
826
|
-
readonly specVersion:
|
|
829
|
+
readonly specVersion: 2002001;
|
|
827
830
|
};
|
|
828
831
|
readonly assets: {
|
|
829
832
|
readonly "0x9d39a5de30e57443bff2a8307a4256c8797a3497": {
|
|
@@ -1574,7 +1577,7 @@ declare const registry: {
|
|
|
1574
1577
|
readonly isSufficient: false;
|
|
1575
1578
|
};
|
|
1576
1579
|
};
|
|
1577
|
-
readonly estimatedExecutionFeeDOT:
|
|
1580
|
+
readonly estimatedExecutionFeeDOT: 59464990n;
|
|
1578
1581
|
readonly estimatedDeliveryFeeDOT: 307100000n;
|
|
1579
1582
|
};
|
|
1580
1583
|
readonly polkadot_2034: {
|
|
@@ -1602,7 +1605,7 @@ declare const registry: {
|
|
|
1602
1605
|
readonly evmChainId: 222222;
|
|
1603
1606
|
readonly name: "Hydration";
|
|
1604
1607
|
readonly specName: "hydradx";
|
|
1605
|
-
readonly specVersion:
|
|
1608
|
+
readonly specVersion: 411;
|
|
1606
1609
|
};
|
|
1607
1610
|
readonly assets: {
|
|
1608
1611
|
readonly "0x45804880de22913dafe09f4980848ece6ecbaf78": {
|
|
@@ -1758,7 +1761,7 @@ declare const registry: {
|
|
|
1758
1761
|
readonly isSufficient: true;
|
|
1759
1762
|
};
|
|
1760
1763
|
};
|
|
1761
|
-
readonly estimatedExecutionFeeDOT:
|
|
1764
|
+
readonly estimatedExecutionFeeDOT: 2386538n;
|
|
1762
1765
|
readonly estimatedDeliveryFeeDOT: 307100000n;
|
|
1763
1766
|
};
|
|
1764
1767
|
readonly polkadot_2043: {
|
|
@@ -1866,7 +1869,7 @@ declare const registry: {
|
|
|
1866
1869
|
readonly accountType: "AccountId32";
|
|
1867
1870
|
readonly name: "Kusama Asset Hub";
|
|
1868
1871
|
readonly specName: "statemine";
|
|
1869
|
-
readonly specVersion:
|
|
1872
|
+
readonly specVersion: 2002000;
|
|
1870
1873
|
};
|
|
1871
1874
|
readonly assets: {
|
|
1872
1875
|
readonly "0x9d39a5de30e57443bff2a8307a4256c8797a3497": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"polkadot_mainnet_bridge_info.g.d.ts","sourceRoot":"","sources":["../src/polkadot_mainnet_bridge_info.g.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"polkadot_mainnet_bridge_info.g.d.ts","sourceRoot":"","sources":["../src/polkadot_mainnet_bridge_info.g.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsiFJ,CAAA;AACV,eAAe,QAAQ,CAAA"}
|
|
@@ -17,8 +17,8 @@ const registry = {
|
|
|
17
17
|
"1000": "wss://polkadot-asset-hub-rpc.polkadot.io",
|
|
18
18
|
"1002": "wss://polkadot-bridge-hub-rpc.polkadot.io",
|
|
19
19
|
"2000": "wss://acala-rpc-0.aca-api.network",
|
|
20
|
-
"2004": "wss://moonbeam.
|
|
21
|
-
"2030": "wss://bifrost-polkadot.
|
|
20
|
+
"2004": "wss://wss.api.moonbeam.network",
|
|
21
|
+
"2030": "wss://eu.bifrost-polkadot-rpc.liebi.com/ws",
|
|
22
22
|
"2034": "wss://hydration-rpc.n.dwellir.com",
|
|
23
23
|
"2043": "wss://parachain-rpc.origin-trail.network",
|
|
24
24
|
"3369": "wss://polkadot-mythos-rpc.polkadot.io",
|
|
@@ -561,7 +561,7 @@ const registry = {
|
|
|
561
561
|
},
|
|
562
562
|
],
|
|
563
563
|
registry: {
|
|
564
|
-
timestamp: "2026-04-
|
|
564
|
+
timestamp: "2026-04-29T04:33:23.183Z",
|
|
565
565
|
environment: "polkadot_mainnet",
|
|
566
566
|
ethChainId: 1,
|
|
567
567
|
gatewayAddress: "0x27ca963c279c93801941e1eb8799c23f407d68e7",
|
|
@@ -575,7 +575,7 @@ const registry = {
|
|
|
575
575
|
accountType: "AccountId32",
|
|
576
576
|
name: "Polkadot",
|
|
577
577
|
specName: "polkadot",
|
|
578
|
-
specVersion:
|
|
578
|
+
specVersion: 2002001,
|
|
579
579
|
},
|
|
580
580
|
bridgeHub: {
|
|
581
581
|
tokenSymbols: "DOT",
|
|
@@ -585,7 +585,7 @@ const registry = {
|
|
|
585
585
|
accountType: "AccountId32",
|
|
586
586
|
name: "Polkadot BridgeHub",
|
|
587
587
|
specName: "bridge-hub-polkadot",
|
|
588
|
-
specVersion:
|
|
588
|
+
specVersion: 2002001,
|
|
589
589
|
},
|
|
590
590
|
ethereumChains: {
|
|
591
591
|
ethereum_1: {
|
|
@@ -868,7 +868,10 @@ const registry = {
|
|
|
868
868
|
},
|
|
869
869
|
},
|
|
870
870
|
key: "ethereum_1",
|
|
871
|
-
|
|
871
|
+
baseVerificationGas: 120000n,
|
|
872
|
+
baseDispatchGas: 80000n,
|
|
873
|
+
twoPhaseSubmitGas: 1000000n,
|
|
874
|
+
submitFiatShamirGas: 2000000n,
|
|
872
875
|
},
|
|
873
876
|
ethereum_l2_10: {
|
|
874
877
|
kind: "ethereum_l2",
|
|
@@ -1059,7 +1062,7 @@ const registry = {
|
|
|
1059
1062
|
accountType: "AccountId32",
|
|
1060
1063
|
name: "Polkadot Asset Hub",
|
|
1061
1064
|
specName: "statemint",
|
|
1062
|
-
specVersion:
|
|
1065
|
+
specVersion: 2002001,
|
|
1063
1066
|
},
|
|
1064
1067
|
assets: {
|
|
1065
1068
|
"0x9d39a5de30e57443bff2a8307a4256c8797a3497": {
|
|
@@ -1876,7 +1879,7 @@ const registry = {
|
|
|
1876
1879
|
isSufficient: false,
|
|
1877
1880
|
},
|
|
1878
1881
|
},
|
|
1879
|
-
estimatedExecutionFeeDOT:
|
|
1882
|
+
estimatedExecutionFeeDOT: 59464990n,
|
|
1880
1883
|
estimatedDeliveryFeeDOT: 307100000n,
|
|
1881
1884
|
},
|
|
1882
1885
|
polkadot_2034: {
|
|
@@ -1904,7 +1907,7 @@ const registry = {
|
|
|
1904
1907
|
evmChainId: 222222,
|
|
1905
1908
|
name: "Hydration",
|
|
1906
1909
|
specName: "hydradx",
|
|
1907
|
-
specVersion:
|
|
1910
|
+
specVersion: 411,
|
|
1908
1911
|
},
|
|
1909
1912
|
assets: {
|
|
1910
1913
|
"0x45804880de22913dafe09f4980848ece6ecbaf78": {
|
|
@@ -2060,7 +2063,7 @@ const registry = {
|
|
|
2060
2063
|
isSufficient: true,
|
|
2061
2064
|
},
|
|
2062
2065
|
},
|
|
2063
|
-
estimatedExecutionFeeDOT:
|
|
2066
|
+
estimatedExecutionFeeDOT: 2386538n,
|
|
2064
2067
|
estimatedDeliveryFeeDOT: 307100000n,
|
|
2065
2068
|
},
|
|
2066
2069
|
polkadot_2043: {
|
|
@@ -2168,7 +2171,7 @@ const registry = {
|
|
|
2168
2171
|
accountType: "AccountId32",
|
|
2169
2172
|
name: "Kusama Asset Hub",
|
|
2170
2173
|
specName: "statemine",
|
|
2171
|
-
specVersion:
|
|
2174
|
+
specVersion: 2002000,
|
|
2172
2175
|
},
|
|
2173
2176
|
assets: {
|
|
2174
2177
|
"0x9d39a5de30e57443bff2a8307a4256c8797a3497": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@snowbridge/registry",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.16-alpha.1",
|
|
4
4
|
"description": "Snowbridge Asset Registry",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
"ts-node": "10.9.2",
|
|
25
25
|
"tsconfig-paths": "4.2.0",
|
|
26
26
|
"typescript": "5.9.3",
|
|
27
|
-
"@snowbridge/
|
|
28
|
-
"@snowbridge/contract-types": "1.0.
|
|
29
|
-
"@snowbridge/
|
|
27
|
+
"@snowbridge/provider-ethers": "1.0.16-alpha.1",
|
|
28
|
+
"@snowbridge/contract-types": "1.0.16-alpha.1",
|
|
29
|
+
"@snowbridge/api": "1.0.16-alpha.1"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@snowbridge/base-types": "1.0.
|
|
32
|
+
"@snowbridge/base-types": "1.0.16-alpha.1"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"build": "tsc --build --force && tsc -p tsconfig.scripts.json",
|
package/scripts/buildRegistry.ts
CHANGED
|
@@ -107,8 +107,8 @@ const SNOWBRIDGE_ENV: { [env: string]: Environment } = {
|
|
|
107
107
|
"1002": "wss://polkadot-bridge-hub-rpc.polkadot.io",
|
|
108
108
|
"3369": "wss://polkadot-mythos-rpc.polkadot.io",
|
|
109
109
|
"2034": "wss://hydration-rpc.n.dwellir.com",
|
|
110
|
-
"2030": "wss://bifrost-polkadot.
|
|
111
|
-
"2004": "wss://moonbeam.
|
|
110
|
+
"2030": "wss://eu.bifrost-polkadot-rpc.liebi.com/ws",
|
|
111
|
+
"2004": "wss://wss.api.moonbeam.network",
|
|
112
112
|
"2000": "wss://acala-rpc-0.aca-api.network",
|
|
113
113
|
"2043": "wss://parachain-rpc.origin-trail.network",
|
|
114
114
|
// TODO: Add back in jampton once we have an indexer in place.
|
|
@@ -569,15 +569,18 @@ async function buildRegistry(environment: Environment): Promise<AssetRegistry> {
|
|
|
569
569
|
|
|
570
570
|
let relayInfo: ChainProperties
|
|
571
571
|
{
|
|
572
|
+
console.log("Connecting to relaychain:", relaychainUrl)
|
|
572
573
|
let provider = await ApiPromise.create({
|
|
573
574
|
noInitWarn: true,
|
|
574
575
|
provider: relaychainUrl.startsWith("http")
|
|
575
576
|
? new HttpProvider(relaychainUrl)
|
|
576
577
|
: new WsProvider(relaychainUrl),
|
|
577
578
|
})
|
|
579
|
+
console.log("Connected to relaychain. Getting chain properties...")
|
|
578
580
|
relayInfo = await (await paraImplementation(provider)).chainProperties()
|
|
579
|
-
|
|
581
|
+
console.log("Got relaychain properties.")
|
|
580
582
|
await provider.disconnect()
|
|
583
|
+
console.log("Disconnected from relaychain.")
|
|
581
584
|
}
|
|
582
585
|
|
|
583
586
|
// Connect to all eth connections
|
|
@@ -589,10 +592,13 @@ async function buildRegistry(environment: Environment): Promise<AssetRegistry> {
|
|
|
589
592
|
}
|
|
590
593
|
} = {}
|
|
591
594
|
{
|
|
595
|
+
console.log("Connecting to Ethereum chains:", ethereumChains)
|
|
592
596
|
for (const result of await Promise.all(
|
|
593
597
|
Object.keys(ethereumChains).map(async (ethChain) => {
|
|
598
|
+
console.log(`Connecting to Ethereum chain ${ethChain}: ${ethereumChains[ethChain]}`)
|
|
594
599
|
let provider = ethers.getDefaultProvider(ethereumChains[ethChain])
|
|
595
600
|
const network = await provider.getNetwork()
|
|
601
|
+
console.log(`Connected to Ethereum chain ${ethChain}, network:`, network)
|
|
596
602
|
return { chainId: Number(network.chainId), provider, name: network.name }
|
|
597
603
|
}),
|
|
598
604
|
)) {
|
|
@@ -601,6 +607,7 @@ async function buildRegistry(environment: Environment): Promise<AssetRegistry> {
|
|
|
601
607
|
if (!(ethChainId.toString() in ethProviders)) {
|
|
602
608
|
throw Error(`Cannot find ethereum chain ${ethChainId} in the list of ethereum chains.`)
|
|
603
609
|
}
|
|
610
|
+
console.log("Connected to all Ethereum chains.")
|
|
604
611
|
}
|
|
605
612
|
|
|
606
613
|
let pnaAssets: PNAMap = {}
|
|
@@ -610,20 +617,24 @@ async function buildRegistry(environment: Environment): Promise<AssetRegistry> {
|
|
|
610
617
|
throw Error(`Cannot find bridge hub ${bridgeHubParaId} in the list of parachains.`)
|
|
611
618
|
}
|
|
612
619
|
const bridgeHubUrl = parachains[bridgeHubParaId.toString()]
|
|
620
|
+
console.log("Connecting to Bridge Hub:", bridgeHubUrl)
|
|
613
621
|
let provider = await ApiPromise.create({
|
|
614
622
|
noInitWarn: true,
|
|
615
623
|
provider: bridgeHubUrl.startsWith("http")
|
|
616
624
|
? new HttpProvider(bridgeHubUrl)
|
|
617
625
|
: new WsProvider(bridgeHubUrl),
|
|
618
626
|
})
|
|
627
|
+
console.log("Connected to Bridge Hub. Getting chain properties...")
|
|
619
628
|
bridgeHubInfo = await (await paraImplementation(provider)).chainProperties()
|
|
629
|
+
console.log("Getting registered PNAs from Bridge Hub...")
|
|
620
630
|
pnaAssets = await getRegisteredPnas(
|
|
621
631
|
provider,
|
|
622
632
|
ethProviders[ethChainId].provider,
|
|
623
633
|
gatewayContract,
|
|
624
634
|
)
|
|
625
|
-
|
|
635
|
+
console.log("Got registered PNAs from Bridge Hub.")
|
|
626
636
|
await provider.disconnect()
|
|
637
|
+
console.log("Disconnected from Bridge Hub.")
|
|
627
638
|
}
|
|
628
639
|
|
|
629
640
|
// Connect to all substrate parachains.
|
|
@@ -631,16 +642,20 @@ async function buildRegistry(environment: Environment): Promise<AssetRegistry> {
|
|
|
631
642
|
[paraIdKey: string]: { parachainId: number; accessor: ParachainBase }
|
|
632
643
|
} = {}
|
|
633
644
|
{
|
|
645
|
+
console.log("Connecting to all substrate parachains:", parachains)
|
|
634
646
|
for (const { parachainId, accessor } of await Promise.all(
|
|
635
647
|
Object.keys(parachains).map(async (parachainId) => {
|
|
636
648
|
const parachainUrl = parachains[parachainId]
|
|
649
|
+
console.log(`Connecting to parachain ${parachainId}: ${parachainUrl}`)
|
|
637
650
|
const provider = await ApiPromise.create({
|
|
638
651
|
noInitWarn: true,
|
|
639
652
|
provider: parachainUrl.startsWith("http")
|
|
640
653
|
? new HttpProvider(parachainUrl)
|
|
641
654
|
: new WsProvider(parachainUrl),
|
|
642
655
|
})
|
|
656
|
+
console.log(`Connected to parachain ${parachainId}. Getting accessor...`)
|
|
643
657
|
const accessor = await paraImplementation(provider, new EthersEthereumProvider())
|
|
658
|
+
console.log(`Got accessor for parachain ${parachainId}.`)
|
|
644
659
|
return { parachainId: accessor.parachainId, accessor }
|
|
645
660
|
}),
|
|
646
661
|
)) {
|
|
@@ -651,6 +666,7 @@ async function buildRegistry(environment: Environment): Promise<AssetRegistry> {
|
|
|
651
666
|
`Could not resolve asset hub para id ${assetHubParaId} in the list of parachains provided.`,
|
|
652
667
|
)
|
|
653
668
|
}
|
|
669
|
+
console.log("Connected to all substrate parachains.")
|
|
654
670
|
}
|
|
655
671
|
|
|
656
672
|
// Index parachains
|
|
@@ -1013,7 +1029,10 @@ async function indexEthChain(
|
|
|
1013
1029
|
name,
|
|
1014
1030
|
assets,
|
|
1015
1031
|
key: `ethereum_${networkChainId}`,
|
|
1016
|
-
|
|
1032
|
+
baseVerificationGas: 120_000n,
|
|
1033
|
+
baseDispatchGas: 80_000n,
|
|
1034
|
+
twoPhaseSubmitGas: 1_000_000n,
|
|
1035
|
+
submitFiatShamirGas: 2_000_000n,
|
|
1017
1036
|
}
|
|
1018
1037
|
} else if (networkChainId in l2Chains) {
|
|
1019
1038
|
const assets: ERC20MetadataMap = {}
|
|
@@ -1187,7 +1206,7 @@ async function getRegisteredPnas(
|
|
|
1187
1206
|
}
|
|
1188
1207
|
|
|
1189
1208
|
;(async () => {
|
|
1190
|
-
let env = "
|
|
1209
|
+
let env = "polkadot_mainnet"
|
|
1191
1210
|
if (process.env.NODE_ENV !== undefined) {
|
|
1192
1211
|
env = process.env.NODE_ENV
|
|
1193
1212
|
}
|
|
@@ -15,8 +15,8 @@ const registry = {
|
|
|
15
15
|
"1000": "wss://polkadot-asset-hub-rpc.polkadot.io",
|
|
16
16
|
"1002": "wss://polkadot-bridge-hub-rpc.polkadot.io",
|
|
17
17
|
"2000": "wss://acala-rpc-0.aca-api.network",
|
|
18
|
-
"2004": "wss://moonbeam.
|
|
19
|
-
"2030": "wss://bifrost-polkadot.
|
|
18
|
+
"2004": "wss://wss.api.moonbeam.network",
|
|
19
|
+
"2030": "wss://eu.bifrost-polkadot-rpc.liebi.com/ws",
|
|
20
20
|
"2034": "wss://hydration-rpc.n.dwellir.com",
|
|
21
21
|
"2043": "wss://parachain-rpc.origin-trail.network",
|
|
22
22
|
"3369": "wss://polkadot-mythos-rpc.polkadot.io",
|
|
@@ -559,7 +559,7 @@ const registry = {
|
|
|
559
559
|
},
|
|
560
560
|
],
|
|
561
561
|
registry: {
|
|
562
|
-
timestamp: "2026-04-
|
|
562
|
+
timestamp: "2026-04-29T04:33:23.183Z",
|
|
563
563
|
environment: "polkadot_mainnet",
|
|
564
564
|
ethChainId: 1,
|
|
565
565
|
gatewayAddress: "0x27ca963c279c93801941e1eb8799c23f407d68e7",
|
|
@@ -573,7 +573,7 @@ const registry = {
|
|
|
573
573
|
accountType: "AccountId32",
|
|
574
574
|
name: "Polkadot",
|
|
575
575
|
specName: "polkadot",
|
|
576
|
-
specVersion:
|
|
576
|
+
specVersion: 2002001,
|
|
577
577
|
},
|
|
578
578
|
bridgeHub: {
|
|
579
579
|
tokenSymbols: "DOT",
|
|
@@ -583,7 +583,7 @@ const registry = {
|
|
|
583
583
|
accountType: "AccountId32",
|
|
584
584
|
name: "Polkadot BridgeHub",
|
|
585
585
|
specName: "bridge-hub-polkadot",
|
|
586
|
-
specVersion:
|
|
586
|
+
specVersion: 2002001,
|
|
587
587
|
},
|
|
588
588
|
ethereumChains: {
|
|
589
589
|
ethereum_1: {
|
|
@@ -874,7 +874,10 @@ const registry = {
|
|
|
874
874
|
},
|
|
875
875
|
},
|
|
876
876
|
key: "ethereum_1",
|
|
877
|
-
|
|
877
|
+
baseVerificationGas: 120000n,
|
|
878
|
+
baseDispatchGas: 80000n,
|
|
879
|
+
twoPhaseSubmitGas: 1000000n,
|
|
880
|
+
submitFiatShamirGas: 2000000n,
|
|
878
881
|
},
|
|
879
882
|
ethereum_l2_10: {
|
|
880
883
|
kind: "ethereum_l2",
|
|
@@ -1072,7 +1075,7 @@ const registry = {
|
|
|
1072
1075
|
accountType: "AccountId32",
|
|
1073
1076
|
name: "Polkadot Asset Hub",
|
|
1074
1077
|
specName: "statemint",
|
|
1075
|
-
specVersion:
|
|
1078
|
+
specVersion: 2002001,
|
|
1076
1079
|
},
|
|
1077
1080
|
assets: {
|
|
1078
1081
|
"0x9d39a5de30e57443bff2a8307a4256c8797a3497": {
|
|
@@ -1897,7 +1900,7 @@ const registry = {
|
|
|
1897
1900
|
isSufficient: false,
|
|
1898
1901
|
},
|
|
1899
1902
|
},
|
|
1900
|
-
estimatedExecutionFeeDOT:
|
|
1903
|
+
estimatedExecutionFeeDOT: 59464990n,
|
|
1901
1904
|
estimatedDeliveryFeeDOT: 307100000n,
|
|
1902
1905
|
},
|
|
1903
1906
|
polkadot_2034: {
|
|
@@ -1925,7 +1928,7 @@ const registry = {
|
|
|
1925
1928
|
evmChainId: 222222,
|
|
1926
1929
|
name: "Hydration",
|
|
1927
1930
|
specName: "hydradx",
|
|
1928
|
-
specVersion:
|
|
1931
|
+
specVersion: 411,
|
|
1929
1932
|
},
|
|
1930
1933
|
assets: {
|
|
1931
1934
|
"0x45804880de22913dafe09f4980848ece6ecbaf78": {
|
|
@@ -2081,7 +2084,7 @@ const registry = {
|
|
|
2081
2084
|
isSufficient: true,
|
|
2082
2085
|
},
|
|
2083
2086
|
},
|
|
2084
|
-
estimatedExecutionFeeDOT:
|
|
2087
|
+
estimatedExecutionFeeDOT: 2386538n,
|
|
2085
2088
|
estimatedDeliveryFeeDOT: 307100000n,
|
|
2086
2089
|
},
|
|
2087
2090
|
polkadot_2043: {
|
|
@@ -2189,7 +2192,7 @@ const registry = {
|
|
|
2189
2192
|
accountType: "AccountId32",
|
|
2190
2193
|
name: "Kusama Asset Hub",
|
|
2191
2194
|
specName: "statemine",
|
|
2192
|
-
specVersion:
|
|
2195
|
+
specVersion: 2002000,
|
|
2193
2196
|
},
|
|
2194
2197
|
assets: {
|
|
2195
2198
|
"0x9d39a5de30e57443bff2a8307a4256c8797a3497": {
|