@snowbridge/registry 1.0.5 → 1.0.11

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.
Files changed (41) hide show
  1. package/.prettierrc +23 -0
  2. package/.turbo/turbo-build.log +4 -0
  3. package/README.md +1 -3
  4. package/dist/index.d.ts +7 -2
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +30 -47
  7. package/dist/local_e2e_bridge_info.g.d.ts +158 -0
  8. package/dist/local_e2e_bridge_info.g.d.ts.map +1 -0
  9. package/dist/local_e2e_bridge_info.g.js +159 -0
  10. package/dist/paseo_sepolia_bridge_info.g.d.ts +353 -0
  11. package/dist/paseo_sepolia_bridge_info.g.d.ts.map +1 -0
  12. package/dist/paseo_sepolia_bridge_info.g.js +373 -0
  13. package/dist/polkadot_mainnet_bridge_info.g.d.ts +2249 -0
  14. package/dist/polkadot_mainnet_bridge_info.g.d.ts.map +1 -0
  15. package/dist/polkadot_mainnet_bridge_info.g.js +2573 -0
  16. package/dist/transfers.d.ts +4 -0
  17. package/dist/transfers.d.ts.map +1 -0
  18. package/dist/transfers.js +96 -0
  19. package/dist/westend_sepolia_bridge_info.g.d.ts +469 -0
  20. package/dist/westend_sepolia_bridge_info.g.d.ts.map +1 -0
  21. package/dist/westend_sepolia_bridge_info.g.js +526 -0
  22. package/package.json +21 -15
  23. package/scripts/buildRegistry.ts +1258 -0
  24. package/scripts/friendlyChains.ts +74 -0
  25. package/src/index.ts +22 -57
  26. package/src/local_e2e_bridge_info.g.ts +157 -0
  27. package/src/paseo_sepolia_bridge_info.g.ts +372 -0
  28. package/src/polkadot_mainnet_bridge_info.g.ts +2597 -0
  29. package/src/transfers.ts +97 -0
  30. package/src/westend_sepolia_bridge_info.g.ts +534 -0
  31. package/tsconfig.json +1 -1
  32. package/tsconfig.scripts.json +23 -0
  33. package/build.ts +0 -35
  34. package/dist/local_e2e.registry.json +0 -347
  35. package/dist/paseo_sepolia.registry.json +0 -150
  36. package/dist/polkadot_mainnet.registry.json +0 -1484
  37. package/dist/westend_sepolia.registry.json +0 -227
  38. package/src/local_e2e.registry.json +0 -347
  39. package/src/paseo_sepolia.registry.json +0 -150
  40. package/src/polkadot_mainnet.registry.json +0 -1484
  41. package/src/westend_sepolia.registry.json +0 -227
@@ -1,227 +0,0 @@
1
- {
2
- "timestamp": "2025-06-25T21:17:17.386Z",
3
- "environment": "westend_sepolia",
4
- "ethChainId": 11155111,
5
- "gatewayAddress": "0x9ed8b47bc3417e3bd0507adc06e56e2fa360a4e9",
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",
15
- "specName": "westend",
16
- "specVersion": 1018011
17
- },
18
- "bridgeHub": {
19
- "tokenSymbols": "WND",
20
- "tokenDecimals": 12,
21
- "ss58Format": 42,
22
- "isEthereum": false,
23
- "accountType": "AccountId32",
24
- "name": "Westend BridgeHub",
25
- "specName": "bridge-hub-westend",
26
- "specVersion": 1018000
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
- "0x72c610e05eaafcdf1fa7a2da15374ee90edb1620": {
39
- "token": "0x72c610e05eaafcdf1fa7a2da15374ee90edb1620",
40
- "name": "Frequency",
41
- "symbol": "eFRQCY",
42
- "decimals": 12
43
- },
44
- "0xfff9976782d46cc05630d1f6ebab18b2324d6b14": {
45
- "token": "0xfff9976782d46cc05630d1f6ebab18b2324d6b14",
46
- "name": "Wrapped Ether",
47
- "symbol": "WETH",
48
- "decimals": 18
49
- },
50
- "0x23838b1bb57cecf4422a57dd8e7f8a087b30d54f": {
51
- "token": "0x23838b1bb57cecf4422a57dd8e7f8a087b30d54f",
52
- "name": "Frequency",
53
- "symbol": "XRQCY",
54
- "decimals": 8,
55
- "foreignId": "0xaf13384cf9612ef1ff4b87470ab247d6f8d8110d4f5af2fe290ce6767818712c"
56
- },
57
- "0xb8a0f2703ac6bdd352096c90c2945a097e8f4055": {
58
- "token": "0xb8a0f2703ac6bdd352096c90c2945a097e8f4055",
59
- "name": "WND",
60
- "symbol": "WND",
61
- "decimals": 12,
62
- "foreignId": "0x2121cfe35065c0c33465fbada265f08e9613428a4b9eb4bb717cd7db2abf622e"
63
- },
64
- "0xf50fb50d65c8c1f6c72e4d8397c984933afc8f7e": {
65
- "token": "0xf50fb50d65c8c1f6c72e4d8397c984933afc8f7e",
66
- "name": "WND",
67
- "symbol": "WND",
68
- "decimals": 12,
69
- "foreignId": "0x9441dceeeffa7e032eedaccf9b7632e60e86711551a82ffbbb0dda8afd9e4ef7"
70
- }
71
- },
72
- "id": "sepolia"
73
- }
74
- },
75
- "parachains": {
76
- "1000": {
77
- "parachainId": 1000,
78
- "features": {
79
- "hasPalletXcm": true,
80
- "hasDryRunApi": true,
81
- "hasTxPaymentApi": true,
82
- "hasDryRunRpc": true,
83
- "hasDotBalance": true
84
- },
85
- "info": {
86
- "tokenSymbols": "WND",
87
- "tokenDecimals": 12,
88
- "ss58Format": 42,
89
- "isEthereum": false,
90
- "accountType": "AccountId32",
91
- "name": "Westend Asset Hub",
92
- "specName": "westmint",
93
- "specVersion": 1018012
94
- },
95
- "assets": {
96
- "0x0000000000000000000000000000000000000000": {
97
- "token": "0x0000000000000000000000000000000000000000",
98
- "name": "Ether",
99
- "minimumBalance": "bigint:15000",
100
- "symbol": "Ether",
101
- "decimals": 18,
102
- "isSufficient": true
103
- },
104
- "0x72c610e05eaafcdf1fa7a2da15374ee90edb1620": {
105
- "token": "0x72c610e05eaafcdf1fa7a2da15374ee90edb1620",
106
- "name": "",
107
- "minimumBalance": "bigint:1",
108
- "symbol": "",
109
- "decimals": 0,
110
- "isSufficient": false
111
- },
112
- "0xfff9976782d46cc05630d1f6ebab18b2324d6b14": {
113
- "token": "0xfff9976782d46cc05630d1f6ebab18b2324d6b14",
114
- "name": "Wrapped Ether",
115
- "minimumBalance": "bigint:15000000000000",
116
- "symbol": "WETH",
117
- "decimals": 18,
118
- "isSufficient": true
119
- },
120
- "0x23838b1bb57cecf4422a57dd8e7f8a087b30d54f": {
121
- "token": "0x23838b1bb57cecf4422a57dd8e7f8a087b30d54f",
122
- "name": "",
123
- "symbol": "",
124
- "decimals": 0,
125
- "locationOnEthereum": {
126
- "parents": 1,
127
- "interior": {
128
- "x2": [
129
- {
130
- "globalConsensus": {
131
- "byGenesis": "0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e"
132
- }
133
- },
134
- {
135
- "parachain": 2313
136
- }
137
- ]
138
- }
139
- },
140
- "location": {
141
- "parents": 1,
142
- "interior": {
143
- "x1": [
144
- {
145
- "parachain": 2313
146
- }
147
- ]
148
- }
149
- },
150
- "locationOnAH": {
151
- "parents": 1,
152
- "interior": {
153
- "x1": [
154
- {
155
- "parachain": 2313
156
- }
157
- ]
158
- }
159
- },
160
- "foreignId": "0xaf13384cf9612ef1ff4b87470ab247d6f8d8110d4f5af2fe290ce6767818712c",
161
- "minimumBalance": "bigint:1",
162
- "isSufficient": false
163
- },
164
- "0xb8a0f2703ac6bdd352096c90c2945a097e8f4055": {
165
- "token": "0xb8a0f2703ac6bdd352096c90c2945a097e8f4055",
166
- "name": "",
167
- "symbol": "WND",
168
- "decimals": 12,
169
- "locationOnEthereum": {
170
- "parents": 1,
171
- "interior": {
172
- "x1": [
173
- {
174
- "globalConsensus": {
175
- "byGenesis": "0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e"
176
- }
177
- }
178
- ]
179
- }
180
- },
181
- "location": {
182
- "parents": 1,
183
- "interior": "Here"
184
- },
185
- "locationOnAH": {
186
- "parents": 1,
187
- "interior": "Here"
188
- },
189
- "foreignId": "0x2121cfe35065c0c33465fbada265f08e9613428a4b9eb4bb717cd7db2abf622e",
190
- "minimumBalance": "bigint:1000000000",
191
- "isSufficient": true
192
- },
193
- "0xf50fb50d65c8c1f6c72e4d8397c984933afc8f7e": {
194
- "token": "0xf50fb50d65c8c1f6c72e4d8397c984933afc8f7e",
195
- "name": "",
196
- "symbol": "WND",
197
- "decimals": 12,
198
- "locationOnEthereum": {
199
- "parents": 1,
200
- "interior": {
201
- "x1": [
202
- {
203
- "globalConsensus": {
204
- "byGenesis": "0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e"
205
- }
206
- }
207
- ]
208
- }
209
- },
210
- "location": {
211
- "parents": 1,
212
- "interior": "Here"
213
- },
214
- "locationOnAH": {
215
- "parents": 1,
216
- "interior": "Here"
217
- },
218
- "foreignId": "0x9441dceeeffa7e032eedaccf9b7632e60e86711551a82ffbbb0dda8afd9e4ef7",
219
- "minimumBalance": "bigint:1000000000",
220
- "isSufficient": true
221
- }
222
- },
223
- "estimatedExecutionFeeDOT": "bigint:0",
224
- "estimatedDeliveryFeeDOT": "bigint:0"
225
- }
226
- }
227
- }
@@ -1,347 +0,0 @@
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
- }