@snowbridge/registry 0.1.68 → 1.0.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/build.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/local_e2e.registry.json +347 -0
- package/dist/paseo_sepolia.registry.json +1 -1
- package/dist/polkadot_mainnet.registry.json +4 -4
- package/package.json +3 -3
- package/src/index.ts +4 -0
- package/src/local_e2e.registry.json +347 -0
- package/src/paseo_sepolia.registry.json +1 -1
- package/src/polkadot_mainnet.registry.json +4 -4
package/build.ts
CHANGED
|
@@ -29,7 +29,7 @@ async function buildRegistry(env: string, options: assetsV2.RegistryOptions) {
|
|
|
29
29
|
throw Error(`ETHEREUM_API_KEY env variable not set.`)
|
|
30
30
|
}
|
|
31
31
|
await Promise.all(envs.map(async env => {
|
|
32
|
-
const options = assetsV2.fromEnvironment(environment.SNOWBRIDGE_ENV[env]
|
|
32
|
+
const options = assetsV2.fromEnvironment(environment.SNOWBRIDGE_ENV[env])
|
|
33
33
|
await buildRegistry(env, options)
|
|
34
34
|
}))
|
|
35
35
|
})()
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAqCvD,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,kBAAkB,GAAG,iBAAiB,GAAG,eAAe,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,GAC5E,aAAa,CAuBf"}
|
package/dist/index.js
CHANGED
|
@@ -7,6 +7,7 @@ exports.assetRegistryFor = assetRegistryFor;
|
|
|
7
7
|
const polkadot_mainnet_registry_json_1 = __importDefault(require("./polkadot_mainnet.registry.json"));
|
|
8
8
|
const westend_sepolia_registry_json_1 = __importDefault(require("./westend_sepolia.registry.json"));
|
|
9
9
|
const paseo_sepolia_registry_json_1 = __importDefault(require("./paseo_sepolia.registry.json"));
|
|
10
|
+
const local_e2e_registry_json_1 = __importDefault(require("./local_e2e.registry.json"));
|
|
10
11
|
function transformBigInt(obj) {
|
|
11
12
|
// Regex to match strings like "bigint:123"
|
|
12
13
|
const bigintPattern = /^bigint:(\d+)$/;
|
|
@@ -49,6 +50,9 @@ function assetRegistryFor(env) {
|
|
|
49
50
|
case "paseo_sepolia":
|
|
50
51
|
json = paseo_sepolia_registry_json_1.default;
|
|
51
52
|
break;
|
|
53
|
+
case "local_e2e":
|
|
54
|
+
json = local_e2e_registry_json_1.default;
|
|
55
|
+
break;
|
|
52
56
|
default:
|
|
53
57
|
throw Error(`Unkown env '${env}'`);
|
|
54
58
|
}
|
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
{
|
|
2
|
+
"timestamp": "2025-07-16T02:46:56.078Z",
|
|
3
|
+
"environment": "local_e2e",
|
|
4
|
+
"ethChainId": 11155111,
|
|
5
|
+
"gatewayAddress": "0xb1185ede04202fe62d38f5db72f71e38ff3e8305",
|
|
6
|
+
"assetHubParaId": 1000,
|
|
7
|
+
"bridgeHubParaId": 1002,
|
|
8
|
+
"relaychain": {
|
|
9
|
+
"tokenSymbols": "WND",
|
|
10
|
+
"tokenDecimals": 12,
|
|
11
|
+
"ss58Format": 42,
|
|
12
|
+
"isEthereum": false,
|
|
13
|
+
"accountType": "AccountId32",
|
|
14
|
+
"name": "Westend Local Testnet",
|
|
15
|
+
"specName": "westend",
|
|
16
|
+
"specVersion": 1018012
|
|
17
|
+
},
|
|
18
|
+
"bridgeHub": {
|
|
19
|
+
"tokenSymbols": "WND",
|
|
20
|
+
"tokenDecimals": 12,
|
|
21
|
+
"ss58Format": 42,
|
|
22
|
+
"isEthereum": false,
|
|
23
|
+
"accountType": "AccountId32",
|
|
24
|
+
"name": "Westend BridgeHub Local",
|
|
25
|
+
"specName": "bridge-hub-westend",
|
|
26
|
+
"specVersion": 1018002
|
|
27
|
+
},
|
|
28
|
+
"ethereumChains": {
|
|
29
|
+
"11155111": {
|
|
30
|
+
"chainId": 11155111,
|
|
31
|
+
"assets": {
|
|
32
|
+
"0x0000000000000000000000000000000000000000": {
|
|
33
|
+
"token": "0x0000000000000000000000000000000000000000",
|
|
34
|
+
"name": "Ether",
|
|
35
|
+
"symbol": "Ether",
|
|
36
|
+
"decimals": 18
|
|
37
|
+
},
|
|
38
|
+
"0xb8ea8cb425d85536b158d661da1ef0895bb92f1d": {
|
|
39
|
+
"token": "0xb8ea8cb425d85536b158d661da1ef0895bb92f1d",
|
|
40
|
+
"name": "Wrapped Ether",
|
|
41
|
+
"symbol": "WETH",
|
|
42
|
+
"decimals": 18
|
|
43
|
+
},
|
|
44
|
+
"0xd8597eb7ef761e3315623edfee9defcbacd72e8b": {
|
|
45
|
+
"token": "0xd8597eb7ef761e3315623edfee9defcbacd72e8b",
|
|
46
|
+
"name": "roc",
|
|
47
|
+
"symbol": "roc",
|
|
48
|
+
"decimals": 12,
|
|
49
|
+
"foreignId": "0xbcd4282ca0c30cbd9c578b5c790e88c803d80cd9cc91f28686f24ac25a61e06e"
|
|
50
|
+
},
|
|
51
|
+
"0xde45448ca2d57797c0bec0ee15a1e42334744219": {
|
|
52
|
+
"token": "0xde45448ca2d57797c0bec0ee15a1e42334744219",
|
|
53
|
+
"name": "wnd",
|
|
54
|
+
"symbol": "wnd",
|
|
55
|
+
"decimals": 12,
|
|
56
|
+
"foreignId": "0x9441dceeeffa7e032eedaccf9b7632e60e86711551a82ffbbb0dda8afd9e4ef7"
|
|
57
|
+
},
|
|
58
|
+
"0x805c5a7d4e97908a8ec726dccc94a047d073eb7e": {
|
|
59
|
+
"token": "0x805c5a7d4e97908a8ec726dccc94a047d073eb7e",
|
|
60
|
+
"name": "pal-2",
|
|
61
|
+
"symbol": "pal-2",
|
|
62
|
+
"decimals": 12,
|
|
63
|
+
"foreignId": "0x17444ededa61bdbfcb1e5c39b2aed47f73b8970b65bbb0574c0a0ab1b0c99279"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"id": "sepolia"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"parachains": {
|
|
70
|
+
"1000": {
|
|
71
|
+
"parachainId": 1000,
|
|
72
|
+
"features": {
|
|
73
|
+
"hasPalletXcm": true,
|
|
74
|
+
"hasDryRunApi": true,
|
|
75
|
+
"hasTxPaymentApi": true,
|
|
76
|
+
"hasDryRunRpc": true,
|
|
77
|
+
"hasDotBalance": true
|
|
78
|
+
},
|
|
79
|
+
"info": {
|
|
80
|
+
"tokenSymbols": "WND",
|
|
81
|
+
"tokenDecimals": 12,
|
|
82
|
+
"ss58Format": 42,
|
|
83
|
+
"isEthereum": false,
|
|
84
|
+
"accountType": "AccountId32",
|
|
85
|
+
"name": "Westend Asset Hub Local",
|
|
86
|
+
"specName": "westmint",
|
|
87
|
+
"specVersion": 1018012
|
|
88
|
+
},
|
|
89
|
+
"assets": {
|
|
90
|
+
"0x0000000000000000000000000000000000000000": {
|
|
91
|
+
"token": "0x0000000000000000000000000000000000000000",
|
|
92
|
+
"name": "Ether",
|
|
93
|
+
"minimumBalance": "bigint:1",
|
|
94
|
+
"symbol": "Ether",
|
|
95
|
+
"decimals": 18,
|
|
96
|
+
"isSufficient": true
|
|
97
|
+
},
|
|
98
|
+
"0xb8ea8cb425d85536b158d661da1ef0895bb92f1d": {
|
|
99
|
+
"token": "0xb8ea8cb425d85536b158d661da1ef0895bb92f1d",
|
|
100
|
+
"name": "WETH",
|
|
101
|
+
"minimumBalance": "bigint:1",
|
|
102
|
+
"symbol": "WETH",
|
|
103
|
+
"decimals": 18,
|
|
104
|
+
"isSufficient": true
|
|
105
|
+
},
|
|
106
|
+
"0xd8597eb7ef761e3315623edfee9defcbacd72e8b": {
|
|
107
|
+
"token": "0xd8597eb7ef761e3315623edfee9defcbacd72e8b",
|
|
108
|
+
"name": "Roc",
|
|
109
|
+
"symbol": "Roc",
|
|
110
|
+
"decimals": 12,
|
|
111
|
+
"locationOnEthereum": {
|
|
112
|
+
"parents": 1,
|
|
113
|
+
"interior": {
|
|
114
|
+
"x1": [
|
|
115
|
+
{
|
|
116
|
+
"globalConsensus": {
|
|
117
|
+
"byGenesis": "0x6408de7737c59c238890533af25896a2c20608d8b380bb01029acb392781063e"
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"location": {
|
|
124
|
+
"parents": 2,
|
|
125
|
+
"interior": {
|
|
126
|
+
"x1": [
|
|
127
|
+
{
|
|
128
|
+
"globalConsensus": {
|
|
129
|
+
"byGenesis": "0x6408de7737c59c238890533af25896a2c20608d8b380bb01029acb392781063e"
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"locationOnAH": {
|
|
136
|
+
"parents": 2,
|
|
137
|
+
"interior": {
|
|
138
|
+
"x1": [
|
|
139
|
+
{
|
|
140
|
+
"globalConsensus": {
|
|
141
|
+
"byGenesis": "0x6408de7737c59c238890533af25896a2c20608d8b380bb01029acb392781063e"
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
]
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"foreignId": "0xbcd4282ca0c30cbd9c578b5c790e88c803d80cd9cc91f28686f24ac25a61e06e",
|
|
148
|
+
"minimumBalance": "bigint:1",
|
|
149
|
+
"isSufficient": true
|
|
150
|
+
},
|
|
151
|
+
"0xde45448ca2d57797c0bec0ee15a1e42334744219": {
|
|
152
|
+
"token": "0xde45448ca2d57797c0bec0ee15a1e42334744219",
|
|
153
|
+
"name": "",
|
|
154
|
+
"symbol": "WND",
|
|
155
|
+
"decimals": 12,
|
|
156
|
+
"locationOnEthereum": {
|
|
157
|
+
"parents": 1,
|
|
158
|
+
"interior": {
|
|
159
|
+
"x1": [
|
|
160
|
+
{
|
|
161
|
+
"globalConsensus": {
|
|
162
|
+
"byGenesis": "0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e"
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
]
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"location": {
|
|
169
|
+
"parents": 1,
|
|
170
|
+
"interior": "Here"
|
|
171
|
+
},
|
|
172
|
+
"locationOnAH": {
|
|
173
|
+
"parents": 1,
|
|
174
|
+
"interior": "Here"
|
|
175
|
+
},
|
|
176
|
+
"foreignId": "0x9441dceeeffa7e032eedaccf9b7632e60e86711551a82ffbbb0dda8afd9e4ef7",
|
|
177
|
+
"minimumBalance": "bigint:1000000000",
|
|
178
|
+
"isSufficient": true
|
|
179
|
+
},
|
|
180
|
+
"0x805c5a7d4e97908a8ec726dccc94a047d073eb7e": {
|
|
181
|
+
"token": "0x805c5a7d4e97908a8ec726dccc94a047d073eb7e",
|
|
182
|
+
"name": "pal-2",
|
|
183
|
+
"symbol": "pal-2",
|
|
184
|
+
"decimals": 12,
|
|
185
|
+
"locationOnEthereum": {
|
|
186
|
+
"parents": 1,
|
|
187
|
+
"interior": {
|
|
188
|
+
"x4": [
|
|
189
|
+
{
|
|
190
|
+
"globalConsensus": {
|
|
191
|
+
"byGenesis": "0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e"
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"parachain": 2000
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"palletInstance": 50
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"generalIndex": 2
|
|
202
|
+
}
|
|
203
|
+
]
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
"location": {
|
|
207
|
+
"parents": 1,
|
|
208
|
+
"interior": {
|
|
209
|
+
"x3": [
|
|
210
|
+
{
|
|
211
|
+
"parachain": 2000
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"palletInstance": 50
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"generalIndex": 2
|
|
218
|
+
}
|
|
219
|
+
]
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
"locationOnAH": {
|
|
223
|
+
"parents": 1,
|
|
224
|
+
"interior": {
|
|
225
|
+
"x3": [
|
|
226
|
+
{
|
|
227
|
+
"parachain": 2000
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"palletInstance": 50
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"generalIndex": 2
|
|
234
|
+
}
|
|
235
|
+
]
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
"foreignId": "0x17444ededa61bdbfcb1e5c39b2aed47f73b8970b65bbb0574c0a0ab1b0c99279",
|
|
239
|
+
"minimumBalance": "bigint:1",
|
|
240
|
+
"isSufficient": true
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
"estimatedExecutionFeeDOT": "bigint:0",
|
|
244
|
+
"estimatedDeliveryFeeDOT": "bigint:0"
|
|
245
|
+
},
|
|
246
|
+
"2000": {
|
|
247
|
+
"parachainId": 2000,
|
|
248
|
+
"features": {
|
|
249
|
+
"hasPalletXcm": true,
|
|
250
|
+
"hasDryRunApi": true,
|
|
251
|
+
"hasTxPaymentApi": true,
|
|
252
|
+
"hasDryRunRpc": true,
|
|
253
|
+
"hasDotBalance": true
|
|
254
|
+
},
|
|
255
|
+
"info": {
|
|
256
|
+
"tokenSymbols": "undefined",
|
|
257
|
+
"tokenDecimals": null,
|
|
258
|
+
"ss58Format": 42,
|
|
259
|
+
"isEthereum": false,
|
|
260
|
+
"accountType": "AccountId32",
|
|
261
|
+
"name": "Penpal Parachain",
|
|
262
|
+
"specName": "penpal-parachain",
|
|
263
|
+
"specVersion": 1
|
|
264
|
+
},
|
|
265
|
+
"assets": {
|
|
266
|
+
"0x0000000000000000000000000000000000000000": {
|
|
267
|
+
"token": "0x0000000000000000000000000000000000000000",
|
|
268
|
+
"name": "Ether",
|
|
269
|
+
"minimumBalance": "bigint:1",
|
|
270
|
+
"symbol": "Ether",
|
|
271
|
+
"decimals": 18,
|
|
272
|
+
"isSufficient": true
|
|
273
|
+
},
|
|
274
|
+
"0xb8ea8cb425d85536b158d661da1ef0895bb92f1d": {
|
|
275
|
+
"token": "0xb8ea8cb425d85536b158d661da1ef0895bb92f1d",
|
|
276
|
+
"name": "WETH",
|
|
277
|
+
"minimumBalance": "bigint:1",
|
|
278
|
+
"symbol": "WETH",
|
|
279
|
+
"decimals": 18,
|
|
280
|
+
"isSufficient": true
|
|
281
|
+
},
|
|
282
|
+
"0x805c5a7d4e97908a8ec726dccc94a047d073eb7e": {
|
|
283
|
+
"token": "0x805c5a7d4e97908a8ec726dccc94a047d073eb7e",
|
|
284
|
+
"name": "pal-2",
|
|
285
|
+
"symbol": "pal-2",
|
|
286
|
+
"decimals": 12,
|
|
287
|
+
"locationOnEthereum": {
|
|
288
|
+
"parents": 1,
|
|
289
|
+
"interior": {
|
|
290
|
+
"x4": [
|
|
291
|
+
{
|
|
292
|
+
"globalConsensus": {
|
|
293
|
+
"byGenesis": "0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e"
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"parachain": 2000
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"palletInstance": 50
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"generalIndex": 2
|
|
304
|
+
}
|
|
305
|
+
]
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
"location": {
|
|
309
|
+
"parents": 0,
|
|
310
|
+
"interior": {
|
|
311
|
+
"x2": [
|
|
312
|
+
{
|
|
313
|
+
"palletInstance": 50
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"generalIndex": 2
|
|
317
|
+
}
|
|
318
|
+
]
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
"locationOnAH": {
|
|
322
|
+
"parents": 1,
|
|
323
|
+
"interior": {
|
|
324
|
+
"x3": [
|
|
325
|
+
{
|
|
326
|
+
"parachain": 2000
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"palletInstance": 50
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"generalIndex": 2
|
|
333
|
+
}
|
|
334
|
+
]
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
"foreignId": "0x17444ededa61bdbfcb1e5c39b2aed47f73b8970b65bbb0574c0a0ab1b0c99279",
|
|
338
|
+
"minimumBalance": "bigint:1000000000",
|
|
339
|
+
"isSufficient": false,
|
|
340
|
+
"assetId": "2"
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
"estimatedExecutionFeeDOT": "bigint:3276800000",
|
|
344
|
+
"estimatedDeliveryFeeDOT": "bigint:31450000000"
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2025-07-
|
|
2
|
+
"timestamp": "2025-07-08T00:21:41.121Z",
|
|
3
3
|
"environment": "polkadot_mainnet",
|
|
4
4
|
"ethChainId": 1,
|
|
5
5
|
"gatewayAddress": "0x27ca963c279c93801941e1eb8799c23f407d68e7",
|
|
@@ -1028,7 +1028,7 @@
|
|
|
1028
1028
|
"isSufficient": false
|
|
1029
1029
|
}
|
|
1030
1030
|
},
|
|
1031
|
-
"estimatedExecutionFeeDOT": "bigint:
|
|
1031
|
+
"estimatedExecutionFeeDOT": "bigint:83639474",
|
|
1032
1032
|
"estimatedDeliveryFeeDOT": "bigint:307100000"
|
|
1033
1033
|
},
|
|
1034
1034
|
"2034": {
|
|
@@ -1173,7 +1173,7 @@
|
|
|
1173
1173
|
"isSufficient": true
|
|
1174
1174
|
}
|
|
1175
1175
|
},
|
|
1176
|
-
"estimatedExecutionFeeDOT": "bigint:
|
|
1176
|
+
"estimatedExecutionFeeDOT": "bigint:2548437",
|
|
1177
1177
|
"estimatedDeliveryFeeDOT": "bigint:307100000"
|
|
1178
1178
|
},
|
|
1179
1179
|
"3369": {
|
|
@@ -1205,7 +1205,7 @@
|
|
|
1205
1205
|
"isSufficient": true
|
|
1206
1206
|
}
|
|
1207
1207
|
},
|
|
1208
|
-
"estimatedExecutionFeeDOT": "bigint:
|
|
1208
|
+
"estimatedExecutionFeeDOT": "bigint:1000000000",
|
|
1209
1209
|
"estimatedDeliveryFeeDOT": "bigint:306500000"
|
|
1210
1210
|
}
|
|
1211
1211
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@snowbridge/registry",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Snowbridge Asset Registry",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"ts-node": "^10.9.2",
|
|
21
21
|
"tsconfig-paths": "^4.2.0",
|
|
22
22
|
"typescript": "^5.4.5",
|
|
23
|
-
"@snowbridge/api": "0.
|
|
23
|
+
"@snowbridge/api": "1.0.0"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@snowbridge/base-types": "0.
|
|
26
|
+
"@snowbridge/base-types": "1.0.0"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
29
|
"build": "tsc --build --force",
|
package/src/index.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { AssetRegistry } from "@snowbridge/base-types";
|
|
|
2
2
|
import polkadot_mainnet from "./polkadot_mainnet.registry.json";
|
|
3
3
|
import westend_sepolia from "./westend_sepolia.registry.json";
|
|
4
4
|
import paseo_sepolia from "./paseo_sepolia.registry.json";
|
|
5
|
+
import local_e2e from "./local_e2e.registry.json";
|
|
5
6
|
|
|
6
7
|
function transformBigInt(obj: any): any {
|
|
7
8
|
// Regex to match strings like "bigint:123"
|
|
@@ -51,6 +52,9 @@ export function assetRegistryFor(
|
|
|
51
52
|
case "paseo_sepolia":
|
|
52
53
|
json = paseo_sepolia;
|
|
53
54
|
break;
|
|
55
|
+
case "local_e2e":
|
|
56
|
+
json = local_e2e;
|
|
57
|
+
break;
|
|
54
58
|
default:
|
|
55
59
|
throw Error(`Unkown env '${env}'`);
|
|
56
60
|
}
|
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
{
|
|
2
|
+
"timestamp": "2025-07-16T02:46:56.078Z",
|
|
3
|
+
"environment": "local_e2e",
|
|
4
|
+
"ethChainId": 11155111,
|
|
5
|
+
"gatewayAddress": "0xb1185ede04202fe62d38f5db72f71e38ff3e8305",
|
|
6
|
+
"assetHubParaId": 1000,
|
|
7
|
+
"bridgeHubParaId": 1002,
|
|
8
|
+
"relaychain": {
|
|
9
|
+
"tokenSymbols": "WND",
|
|
10
|
+
"tokenDecimals": 12,
|
|
11
|
+
"ss58Format": 42,
|
|
12
|
+
"isEthereum": false,
|
|
13
|
+
"accountType": "AccountId32",
|
|
14
|
+
"name": "Westend Local Testnet",
|
|
15
|
+
"specName": "westend",
|
|
16
|
+
"specVersion": 1018012
|
|
17
|
+
},
|
|
18
|
+
"bridgeHub": {
|
|
19
|
+
"tokenSymbols": "WND",
|
|
20
|
+
"tokenDecimals": 12,
|
|
21
|
+
"ss58Format": 42,
|
|
22
|
+
"isEthereum": false,
|
|
23
|
+
"accountType": "AccountId32",
|
|
24
|
+
"name": "Westend BridgeHub Local",
|
|
25
|
+
"specName": "bridge-hub-westend",
|
|
26
|
+
"specVersion": 1018002
|
|
27
|
+
},
|
|
28
|
+
"ethereumChains": {
|
|
29
|
+
"11155111": {
|
|
30
|
+
"chainId": 11155111,
|
|
31
|
+
"assets": {
|
|
32
|
+
"0x0000000000000000000000000000000000000000": {
|
|
33
|
+
"token": "0x0000000000000000000000000000000000000000",
|
|
34
|
+
"name": "Ether",
|
|
35
|
+
"symbol": "Ether",
|
|
36
|
+
"decimals": 18
|
|
37
|
+
},
|
|
38
|
+
"0xb8ea8cb425d85536b158d661da1ef0895bb92f1d": {
|
|
39
|
+
"token": "0xb8ea8cb425d85536b158d661da1ef0895bb92f1d",
|
|
40
|
+
"name": "Wrapped Ether",
|
|
41
|
+
"symbol": "WETH",
|
|
42
|
+
"decimals": 18
|
|
43
|
+
},
|
|
44
|
+
"0xd8597eb7ef761e3315623edfee9defcbacd72e8b": {
|
|
45
|
+
"token": "0xd8597eb7ef761e3315623edfee9defcbacd72e8b",
|
|
46
|
+
"name": "roc",
|
|
47
|
+
"symbol": "roc",
|
|
48
|
+
"decimals": 12,
|
|
49
|
+
"foreignId": "0xbcd4282ca0c30cbd9c578b5c790e88c803d80cd9cc91f28686f24ac25a61e06e"
|
|
50
|
+
},
|
|
51
|
+
"0xde45448ca2d57797c0bec0ee15a1e42334744219": {
|
|
52
|
+
"token": "0xde45448ca2d57797c0bec0ee15a1e42334744219",
|
|
53
|
+
"name": "wnd",
|
|
54
|
+
"symbol": "wnd",
|
|
55
|
+
"decimals": 12,
|
|
56
|
+
"foreignId": "0x9441dceeeffa7e032eedaccf9b7632e60e86711551a82ffbbb0dda8afd9e4ef7"
|
|
57
|
+
},
|
|
58
|
+
"0x805c5a7d4e97908a8ec726dccc94a047d073eb7e": {
|
|
59
|
+
"token": "0x805c5a7d4e97908a8ec726dccc94a047d073eb7e",
|
|
60
|
+
"name": "pal-2",
|
|
61
|
+
"symbol": "pal-2",
|
|
62
|
+
"decimals": 12,
|
|
63
|
+
"foreignId": "0x17444ededa61bdbfcb1e5c39b2aed47f73b8970b65bbb0574c0a0ab1b0c99279"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"id": "sepolia"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"parachains": {
|
|
70
|
+
"1000": {
|
|
71
|
+
"parachainId": 1000,
|
|
72
|
+
"features": {
|
|
73
|
+
"hasPalletXcm": true,
|
|
74
|
+
"hasDryRunApi": true,
|
|
75
|
+
"hasTxPaymentApi": true,
|
|
76
|
+
"hasDryRunRpc": true,
|
|
77
|
+
"hasDotBalance": true
|
|
78
|
+
},
|
|
79
|
+
"info": {
|
|
80
|
+
"tokenSymbols": "WND",
|
|
81
|
+
"tokenDecimals": 12,
|
|
82
|
+
"ss58Format": 42,
|
|
83
|
+
"isEthereum": false,
|
|
84
|
+
"accountType": "AccountId32",
|
|
85
|
+
"name": "Westend Asset Hub Local",
|
|
86
|
+
"specName": "westmint",
|
|
87
|
+
"specVersion": 1018012
|
|
88
|
+
},
|
|
89
|
+
"assets": {
|
|
90
|
+
"0x0000000000000000000000000000000000000000": {
|
|
91
|
+
"token": "0x0000000000000000000000000000000000000000",
|
|
92
|
+
"name": "Ether",
|
|
93
|
+
"minimumBalance": "bigint:1",
|
|
94
|
+
"symbol": "Ether",
|
|
95
|
+
"decimals": 18,
|
|
96
|
+
"isSufficient": true
|
|
97
|
+
},
|
|
98
|
+
"0xb8ea8cb425d85536b158d661da1ef0895bb92f1d": {
|
|
99
|
+
"token": "0xb8ea8cb425d85536b158d661da1ef0895bb92f1d",
|
|
100
|
+
"name": "WETH",
|
|
101
|
+
"minimumBalance": "bigint:1",
|
|
102
|
+
"symbol": "WETH",
|
|
103
|
+
"decimals": 18,
|
|
104
|
+
"isSufficient": true
|
|
105
|
+
},
|
|
106
|
+
"0xd8597eb7ef761e3315623edfee9defcbacd72e8b": {
|
|
107
|
+
"token": "0xd8597eb7ef761e3315623edfee9defcbacd72e8b",
|
|
108
|
+
"name": "Roc",
|
|
109
|
+
"symbol": "Roc",
|
|
110
|
+
"decimals": 12,
|
|
111
|
+
"locationOnEthereum": {
|
|
112
|
+
"parents": 1,
|
|
113
|
+
"interior": {
|
|
114
|
+
"x1": [
|
|
115
|
+
{
|
|
116
|
+
"globalConsensus": {
|
|
117
|
+
"byGenesis": "0x6408de7737c59c238890533af25896a2c20608d8b380bb01029acb392781063e"
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"location": {
|
|
124
|
+
"parents": 2,
|
|
125
|
+
"interior": {
|
|
126
|
+
"x1": [
|
|
127
|
+
{
|
|
128
|
+
"globalConsensus": {
|
|
129
|
+
"byGenesis": "0x6408de7737c59c238890533af25896a2c20608d8b380bb01029acb392781063e"
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"locationOnAH": {
|
|
136
|
+
"parents": 2,
|
|
137
|
+
"interior": {
|
|
138
|
+
"x1": [
|
|
139
|
+
{
|
|
140
|
+
"globalConsensus": {
|
|
141
|
+
"byGenesis": "0x6408de7737c59c238890533af25896a2c20608d8b380bb01029acb392781063e"
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
]
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"foreignId": "0xbcd4282ca0c30cbd9c578b5c790e88c803d80cd9cc91f28686f24ac25a61e06e",
|
|
148
|
+
"minimumBalance": "bigint:1",
|
|
149
|
+
"isSufficient": true
|
|
150
|
+
},
|
|
151
|
+
"0xde45448ca2d57797c0bec0ee15a1e42334744219": {
|
|
152
|
+
"token": "0xde45448ca2d57797c0bec0ee15a1e42334744219",
|
|
153
|
+
"name": "",
|
|
154
|
+
"symbol": "WND",
|
|
155
|
+
"decimals": 12,
|
|
156
|
+
"locationOnEthereum": {
|
|
157
|
+
"parents": 1,
|
|
158
|
+
"interior": {
|
|
159
|
+
"x1": [
|
|
160
|
+
{
|
|
161
|
+
"globalConsensus": {
|
|
162
|
+
"byGenesis": "0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e"
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
]
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"location": {
|
|
169
|
+
"parents": 1,
|
|
170
|
+
"interior": "Here"
|
|
171
|
+
},
|
|
172
|
+
"locationOnAH": {
|
|
173
|
+
"parents": 1,
|
|
174
|
+
"interior": "Here"
|
|
175
|
+
},
|
|
176
|
+
"foreignId": "0x9441dceeeffa7e032eedaccf9b7632e60e86711551a82ffbbb0dda8afd9e4ef7",
|
|
177
|
+
"minimumBalance": "bigint:1000000000",
|
|
178
|
+
"isSufficient": true
|
|
179
|
+
},
|
|
180
|
+
"0x805c5a7d4e97908a8ec726dccc94a047d073eb7e": {
|
|
181
|
+
"token": "0x805c5a7d4e97908a8ec726dccc94a047d073eb7e",
|
|
182
|
+
"name": "pal-2",
|
|
183
|
+
"symbol": "pal-2",
|
|
184
|
+
"decimals": 12,
|
|
185
|
+
"locationOnEthereum": {
|
|
186
|
+
"parents": 1,
|
|
187
|
+
"interior": {
|
|
188
|
+
"x4": [
|
|
189
|
+
{
|
|
190
|
+
"globalConsensus": {
|
|
191
|
+
"byGenesis": "0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e"
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"parachain": 2000
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"palletInstance": 50
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"generalIndex": 2
|
|
202
|
+
}
|
|
203
|
+
]
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
"location": {
|
|
207
|
+
"parents": 1,
|
|
208
|
+
"interior": {
|
|
209
|
+
"x3": [
|
|
210
|
+
{
|
|
211
|
+
"parachain": 2000
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"palletInstance": 50
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"generalIndex": 2
|
|
218
|
+
}
|
|
219
|
+
]
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
"locationOnAH": {
|
|
223
|
+
"parents": 1,
|
|
224
|
+
"interior": {
|
|
225
|
+
"x3": [
|
|
226
|
+
{
|
|
227
|
+
"parachain": 2000
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"palletInstance": 50
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"generalIndex": 2
|
|
234
|
+
}
|
|
235
|
+
]
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
"foreignId": "0x17444ededa61bdbfcb1e5c39b2aed47f73b8970b65bbb0574c0a0ab1b0c99279",
|
|
239
|
+
"minimumBalance": "bigint:1",
|
|
240
|
+
"isSufficient": true
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
"estimatedExecutionFeeDOT": "bigint:0",
|
|
244
|
+
"estimatedDeliveryFeeDOT": "bigint:0"
|
|
245
|
+
},
|
|
246
|
+
"2000": {
|
|
247
|
+
"parachainId": 2000,
|
|
248
|
+
"features": {
|
|
249
|
+
"hasPalletXcm": true,
|
|
250
|
+
"hasDryRunApi": true,
|
|
251
|
+
"hasTxPaymentApi": true,
|
|
252
|
+
"hasDryRunRpc": true,
|
|
253
|
+
"hasDotBalance": true
|
|
254
|
+
},
|
|
255
|
+
"info": {
|
|
256
|
+
"tokenSymbols": "undefined",
|
|
257
|
+
"tokenDecimals": null,
|
|
258
|
+
"ss58Format": 42,
|
|
259
|
+
"isEthereum": false,
|
|
260
|
+
"accountType": "AccountId32",
|
|
261
|
+
"name": "Penpal Parachain",
|
|
262
|
+
"specName": "penpal-parachain",
|
|
263
|
+
"specVersion": 1
|
|
264
|
+
},
|
|
265
|
+
"assets": {
|
|
266
|
+
"0x0000000000000000000000000000000000000000": {
|
|
267
|
+
"token": "0x0000000000000000000000000000000000000000",
|
|
268
|
+
"name": "Ether",
|
|
269
|
+
"minimumBalance": "bigint:1",
|
|
270
|
+
"symbol": "Ether",
|
|
271
|
+
"decimals": 18,
|
|
272
|
+
"isSufficient": true
|
|
273
|
+
},
|
|
274
|
+
"0xb8ea8cb425d85536b158d661da1ef0895bb92f1d": {
|
|
275
|
+
"token": "0xb8ea8cb425d85536b158d661da1ef0895bb92f1d",
|
|
276
|
+
"name": "WETH",
|
|
277
|
+
"minimumBalance": "bigint:1",
|
|
278
|
+
"symbol": "WETH",
|
|
279
|
+
"decimals": 18,
|
|
280
|
+
"isSufficient": true
|
|
281
|
+
},
|
|
282
|
+
"0x805c5a7d4e97908a8ec726dccc94a047d073eb7e": {
|
|
283
|
+
"token": "0x805c5a7d4e97908a8ec726dccc94a047d073eb7e",
|
|
284
|
+
"name": "pal-2",
|
|
285
|
+
"symbol": "pal-2",
|
|
286
|
+
"decimals": 12,
|
|
287
|
+
"locationOnEthereum": {
|
|
288
|
+
"parents": 1,
|
|
289
|
+
"interior": {
|
|
290
|
+
"x4": [
|
|
291
|
+
{
|
|
292
|
+
"globalConsensus": {
|
|
293
|
+
"byGenesis": "0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e"
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"parachain": 2000
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"palletInstance": 50
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"generalIndex": 2
|
|
304
|
+
}
|
|
305
|
+
]
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
"location": {
|
|
309
|
+
"parents": 0,
|
|
310
|
+
"interior": {
|
|
311
|
+
"x2": [
|
|
312
|
+
{
|
|
313
|
+
"palletInstance": 50
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"generalIndex": 2
|
|
317
|
+
}
|
|
318
|
+
]
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
"locationOnAH": {
|
|
322
|
+
"parents": 1,
|
|
323
|
+
"interior": {
|
|
324
|
+
"x3": [
|
|
325
|
+
{
|
|
326
|
+
"parachain": 2000
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"palletInstance": 50
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"generalIndex": 2
|
|
333
|
+
}
|
|
334
|
+
]
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
"foreignId": "0x17444ededa61bdbfcb1e5c39b2aed47f73b8970b65bbb0574c0a0ab1b0c99279",
|
|
338
|
+
"minimumBalance": "bigint:1000000000",
|
|
339
|
+
"isSufficient": false,
|
|
340
|
+
"assetId": "2"
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
"estimatedExecutionFeeDOT": "bigint:3276800000",
|
|
344
|
+
"estimatedDeliveryFeeDOT": "bigint:31450000000"
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2025-07-
|
|
2
|
+
"timestamp": "2025-07-08T00:21:41.121Z",
|
|
3
3
|
"environment": "polkadot_mainnet",
|
|
4
4
|
"ethChainId": 1,
|
|
5
5
|
"gatewayAddress": "0x27ca963c279c93801941e1eb8799c23f407d68e7",
|
|
@@ -1028,7 +1028,7 @@
|
|
|
1028
1028
|
"isSufficient": false
|
|
1029
1029
|
}
|
|
1030
1030
|
},
|
|
1031
|
-
"estimatedExecutionFeeDOT": "bigint:
|
|
1031
|
+
"estimatedExecutionFeeDOT": "bigint:83639474",
|
|
1032
1032
|
"estimatedDeliveryFeeDOT": "bigint:307100000"
|
|
1033
1033
|
},
|
|
1034
1034
|
"2034": {
|
|
@@ -1173,7 +1173,7 @@
|
|
|
1173
1173
|
"isSufficient": true
|
|
1174
1174
|
}
|
|
1175
1175
|
},
|
|
1176
|
-
"estimatedExecutionFeeDOT": "bigint:
|
|
1176
|
+
"estimatedExecutionFeeDOT": "bigint:2548437",
|
|
1177
1177
|
"estimatedDeliveryFeeDOT": "bigint:307100000"
|
|
1178
1178
|
},
|
|
1179
1179
|
"3369": {
|
|
@@ -1205,7 +1205,7 @@
|
|
|
1205
1205
|
"isSufficient": true
|
|
1206
1206
|
}
|
|
1207
1207
|
},
|
|
1208
|
-
"estimatedExecutionFeeDOT": "bigint:
|
|
1208
|
+
"estimatedExecutionFeeDOT": "bigint:1000000000",
|
|
1209
1209
|
"estimatedDeliveryFeeDOT": "bigint:306500000"
|
|
1210
1210
|
}
|
|
1211
1211
|
},
|