@snowbridge/registry 0.3.2 → 0.4.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.
Files changed (39) hide show
  1. package/.turbo/turbo-build.log +1 -2
  2. package/dist/index.d.ts +6 -2
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +24 -2
  5. package/dist/paseo_sepolia_bridge_info.g.d.ts +330 -0
  6. package/dist/paseo_sepolia_bridge_info.g.d.ts.map +1 -0
  7. package/dist/paseo_sepolia_bridge_info.g.js +350 -0
  8. package/dist/polkadot_mainnet_bridge_info.g.d.ts +1983 -0
  9. package/dist/polkadot_mainnet_bridge_info.g.d.ts.map +1 -0
  10. package/dist/polkadot_mainnet_bridge_info.g.js +2264 -0
  11. package/dist/transfers.d.ts +3 -8
  12. package/dist/transfers.d.ts.map +1 -1
  13. package/dist/transfers.js +54 -215
  14. package/dist/westend_sepolia_bridge_info.g.d.ts +344 -0
  15. package/dist/westend_sepolia_bridge_info.g.d.ts.map +1 -0
  16. package/dist/westend_sepolia_bridge_info.g.js +376 -0
  17. package/package.json +7 -7
  18. package/scripts/buildRegistry.ts +466 -29
  19. package/src/index.ts +24 -2
  20. package/src/paseo_sepolia_bridge_info.g.ts +349 -0
  21. package/src/polkadot_mainnet_bridge_info.g.ts +2287 -0
  22. package/src/transfers.ts +58 -266
  23. package/src/westend_sepolia_bridge_info.g.ts +384 -0
  24. package/dist/environment.d.ts +0 -3
  25. package/dist/environment.d.ts.map +0 -1
  26. package/dist/environment.js +0 -181
  27. package/dist/local_e2e.registry.json +0 -391
  28. package/dist/paseo_sepolia.registry.json +0 -231
  29. package/dist/polkadot_mainnet.registry.json +0 -1805
  30. package/dist/registry.d.ts +0 -3
  31. package/dist/registry.d.ts.map +0 -1
  32. package/dist/registry.js +0 -61
  33. package/dist/westend_sepolia.registry.json +0 -283
  34. package/src/environment.ts +0 -185
  35. package/src/local_e2e.registry.json +0 -391
  36. package/src/paseo_sepolia.registry.json +0 -231
  37. package/src/polkadot_mainnet.registry.json +0 -1805
  38. package/src/registry.ts +0 -63
  39. package/src/westend_sepolia.registry.json +0 -283
@@ -0,0 +1,376 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const registry = {
4
+ environment: {
5
+ name: "westend_sepolia",
6
+ ethChainId: 11155111,
7
+ beaconApiUrl: "https://lodestar-sepolia.chainsafe.io",
8
+ ethereumChains: {
9
+ "84532": "https://base-sepolia-rpc.publicnode.com",
10
+ "11155111": "https://ethereum-sepolia-rpc.publicnode.com",
11
+ },
12
+ relaychainUrl: "wss://westend-rpc.n.dwellir.com",
13
+ parachains: {
14
+ "1000": "wss://asset-hub-westend-rpc.n.dwellir.com",
15
+ "1002": "wss://bridge-hub-westend-rpc.n.dwellir.com",
16
+ },
17
+ gatewayContract: "0x9ed8b47bc3417e3bd0507adc06e56e2fa360a4e9",
18
+ beefyContract: "0xA04460B1D8bBef33F54edB2C3115e3E4D41237A6",
19
+ assetHubParaId: 1000,
20
+ bridgeHubParaId: 1002,
21
+ v2_parachains: [1000],
22
+ indexerGraphQlUrl: "https://snowbridge.squids.live/snowbridge-subsquid-westend@v1/api/graphql",
23
+ l2Bridge: {
24
+ acrossAPIUrl: "https://testnet.across.to/api",
25
+ l1AdapterAddress: "0xA5B8589bD534701be49916c4d2e634aB1c765Cbf",
26
+ l1HandlerAddress: "0x924a9f036260DdD5808007E1AA95f08eD08aA569",
27
+ l1FeeTokenAddress: "0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14",
28
+ l1SwapRouterAddress: "0x3bFA4769FB09eefC5a80d6E87c3B9C650f7Ae48E",
29
+ l1SwapQuoterAddress: "0xEd1f6473345F45b75F8179591dd5bA1888cf2FB3",
30
+ l2Chains: {
31
+ "84532": {
32
+ adapterAddress: "0xf06939613A3838Af11104c898758220dB9093679",
33
+ feeTokenAddress: "0x4200000000000000000000000000000000000006",
34
+ swapRoutes: [
35
+ {
36
+ inputToken: "0x4200000000000000000000000000000000000006",
37
+ outputToken: "0xfff9976782d46cc05630d1f6ebab18b2324d6b14",
38
+ swapFee: 0,
39
+ },
40
+ {
41
+ inputToken: "0x036cbd53842c5426634e7929541ec2318f3dcf7e",
42
+ outputToken: "0x1c7d4b196cb0c7b01d743fbc6116a902379c7238",
43
+ swapFee: 500,
44
+ },
45
+ ],
46
+ },
47
+ },
48
+ },
49
+ },
50
+ routes: [
51
+ {
52
+ from: {
53
+ kind: "ethereum",
54
+ id: 11155111,
55
+ },
56
+ to: {
57
+ kind: "polkadot",
58
+ id: 1000,
59
+ },
60
+ assets: [
61
+ "0x0000000000000000000000000000000000000000",
62
+ "0x1c7d4b196cb0c7b01d743fbc6116a902379c7238",
63
+ "0xfff9976782d46cc05630d1f6ebab18b2324d6b14",
64
+ "0x23838b1bb57cecf4422a57dd8e7f8a087b30d54f",
65
+ "0xb8a0f2703ac6bdd352096c90c2945a097e8f4055",
66
+ "0xf50fb50d65c8c1f6c72e4d8397c984933afc8f7e",
67
+ ],
68
+ },
69
+ {
70
+ from: {
71
+ kind: "polkadot",
72
+ id: 1000,
73
+ },
74
+ to: {
75
+ kind: "ethereum",
76
+ id: 11155111,
77
+ },
78
+ assets: [
79
+ "0x0000000000000000000000000000000000000000",
80
+ "0x1c7d4b196cb0c7b01d743fbc6116a902379c7238",
81
+ "0xfff9976782d46cc05630d1f6ebab18b2324d6b14",
82
+ "0x23838b1bb57cecf4422a57dd8e7f8a087b30d54f",
83
+ "0xb8a0f2703ac6bdd352096c90c2945a097e8f4055",
84
+ "0xf50fb50d65c8c1f6c72e4d8397c984933afc8f7e",
85
+ ],
86
+ },
87
+ ],
88
+ registry: {
89
+ timestamp: "2026-01-28T21:33:34.219Z",
90
+ environment: "westend_sepolia",
91
+ ethChainId: 11155111,
92
+ gatewayAddress: "0x9ed8b47bc3417e3bd0507adc06e56e2fa360a4e9",
93
+ assetHubParaId: 1000,
94
+ bridgeHubParaId: 1002,
95
+ relaychain: {
96
+ tokenSymbols: "WND",
97
+ tokenDecimals: 12,
98
+ ss58Format: 42,
99
+ isEthereum: false,
100
+ accountType: "AccountId32",
101
+ name: "Westend",
102
+ specName: "westend",
103
+ specVersion: 1021001,
104
+ },
105
+ bridgeHub: {
106
+ tokenSymbols: "WND",
107
+ tokenDecimals: 12,
108
+ ss58Format: 42,
109
+ isEthereum: false,
110
+ accountType: "AccountId32",
111
+ name: "Westend BridgeHub",
112
+ specName: "bridge-hub-westend",
113
+ specVersion: 1021000,
114
+ },
115
+ ethereumChains: {
116
+ ethereum_l2_84532: {
117
+ kind: "ethereum_l2",
118
+ id: 84532,
119
+ assets: {
120
+ "0x4200000000000000000000000000000000000006": {
121
+ token: "0x4200000000000000000000000000000000000006",
122
+ name: "Wrapped Ether",
123
+ symbol: "WETH",
124
+ decimals: 18,
125
+ swapTokenAddress: "0xfff9976782d46cc05630d1f6ebab18b2324d6b14",
126
+ swapFee: 0,
127
+ },
128
+ "0x036cbd53842c5426634e7929541ec2318f3dcf7e": {
129
+ token: "0x036cbd53842c5426634e7929541ec2318f3dcf7e",
130
+ name: "USDC",
131
+ symbol: "USDC",
132
+ decimals: 6,
133
+ swapTokenAddress: "0x1c7d4b196cb0c7b01d743fbc6116a902379c7238",
134
+ swapFee: 500,
135
+ },
136
+ "0x0000000000000000000000000000000000000000": {
137
+ token: "0x0000000000000000000000000000000000000000",
138
+ name: "Ether",
139
+ symbol: "Ether",
140
+ decimals: 18,
141
+ swapTokenAddress: "0x0000000000000000000000000000000000000000",
142
+ swapFee: 0,
143
+ },
144
+ },
145
+ key: "ethereum_l2_84532",
146
+ },
147
+ ethereum_11155111: {
148
+ kind: "ethereum",
149
+ id: 11155111,
150
+ assets: {
151
+ "0x0000000000000000000000000000000000000000": {
152
+ token: "0x0000000000000000000000000000000000000000",
153
+ name: "Ether",
154
+ symbol: "Ether",
155
+ decimals: 18,
156
+ },
157
+ "0x1c7d4b196cb0c7b01d743fbc6116a902379c7238": {
158
+ token: "0x1c7d4b196cb0c7b01d743fbc6116a902379c7238",
159
+ name: "USDC",
160
+ symbol: "USDC",
161
+ decimals: 6,
162
+ deliveryGas: 80000n,
163
+ },
164
+ "0x72c610e05eaafcdf1fa7a2da15374ee90edb1620": {
165
+ token: "0x72c610e05eaafcdf1fa7a2da15374ee90edb1620",
166
+ name: "Frequency",
167
+ symbol: "eFRQCY",
168
+ decimals: 12,
169
+ deliveryGas: 80000n,
170
+ },
171
+ "0xfff9976782d46cc05630d1f6ebab18b2324d6b14": {
172
+ token: "0xfff9976782d46cc05630d1f6ebab18b2324d6b14",
173
+ name: "Wrapped Ether",
174
+ symbol: "WETH",
175
+ decimals: 18,
176
+ deliveryGas: 80000n,
177
+ },
178
+ "0x23838b1bb57cecf4422a57dd8e7f8a087b30d54f": {
179
+ token: "0x23838b1bb57cecf4422a57dd8e7f8a087b30d54f",
180
+ name: "Frequency",
181
+ symbol: "XRQCY",
182
+ decimals: 8,
183
+ foreignId: "0xaf13384cf9612ef1ff4b87470ab247d6f8d8110d4f5af2fe290ce6767818712c",
184
+ deliveryGas: 80000n,
185
+ },
186
+ "0xb8a0f2703ac6bdd352096c90c2945a097e8f4055": {
187
+ token: "0xb8a0f2703ac6bdd352096c90c2945a097e8f4055",
188
+ name: "WND",
189
+ symbol: "WND",
190
+ decimals: 12,
191
+ foreignId: "0x2121cfe35065c0c33465fbada265f08e9613428a4b9eb4bb717cd7db2abf622e",
192
+ deliveryGas: 80000n,
193
+ },
194
+ "0xf50fb50d65c8c1f6c72e4d8397c984933afc8f7e": {
195
+ token: "0xf50fb50d65c8c1f6c72e4d8397c984933afc8f7e",
196
+ name: "WND",
197
+ symbol: "WND",
198
+ decimals: 12,
199
+ foreignId: "0x9441dceeeffa7e032eedaccf9b7632e60e86711551a82ffbbb0dda8afd9e4ef7",
200
+ deliveryGas: 80000n,
201
+ },
202
+ },
203
+ key: "ethereum_11155111",
204
+ baseDeliveryGas: 120000n,
205
+ },
206
+ },
207
+ parachains: {
208
+ polkadot_1000: {
209
+ id: 1000,
210
+ kind: "polkadot",
211
+ key: "polkadot_1000",
212
+ features: {
213
+ hasPalletXcm: true,
214
+ hasDryRunApi: true,
215
+ hasTxPaymentApi: true,
216
+ hasDryRunRpc: true,
217
+ hasDotBalance: true,
218
+ hasEthBalance: true,
219
+ hasXcmPaymentApi: true,
220
+ supportsAliasOrigin: true,
221
+ xcmVersion: "v5",
222
+ supportsV2: true,
223
+ },
224
+ info: {
225
+ tokenSymbols: "WND",
226
+ tokenDecimals: 12,
227
+ ss58Format: 42,
228
+ isEthereum: false,
229
+ accountType: "AccountId32",
230
+ name: "Westend Asset Hub",
231
+ specName: "westmint",
232
+ specVersion: 1021000,
233
+ },
234
+ assets: {
235
+ "0x0000000000000000000000000000000000000000": {
236
+ token: "0x0000000000000000000000000000000000000000",
237
+ name: "Ether",
238
+ minimumBalance: 15000n,
239
+ symbol: "Ether",
240
+ decimals: 18,
241
+ isSufficient: true,
242
+ },
243
+ "0x1c7d4b196cb0c7b01d743fbc6116a902379c7238": {
244
+ token: "0x1c7d4b196cb0c7b01d743fbc6116a902379c7238",
245
+ name: "",
246
+ minimumBalance: 1n,
247
+ symbol: "",
248
+ decimals: 0,
249
+ isSufficient: false,
250
+ },
251
+ "0x72c610e05eaafcdf1fa7a2da15374ee90edb1620": {
252
+ token: "0x72c610e05eaafcdf1fa7a2da15374ee90edb1620",
253
+ name: "",
254
+ minimumBalance: 1n,
255
+ symbol: "",
256
+ decimals: 0,
257
+ isSufficient: false,
258
+ },
259
+ "0xfff9976782d46cc05630d1f6ebab18b2324d6b14": {
260
+ token: "0xfff9976782d46cc05630d1f6ebab18b2324d6b14",
261
+ name: "Wrapped Ether",
262
+ minimumBalance: 15000000000000n,
263
+ symbol: "WETH",
264
+ decimals: 18,
265
+ isSufficient: true,
266
+ },
267
+ "0x23838b1bb57cecf4422a57dd8e7f8a087b30d54f": {
268
+ token: "0x23838b1bb57cecf4422a57dd8e7f8a087b30d54f",
269
+ name: "",
270
+ symbol: "",
271
+ decimals: 0,
272
+ locationOnEthereum: {
273
+ parents: 1,
274
+ interior: {
275
+ x2: [
276
+ {
277
+ globalConsensus: {
278
+ byGenesis: "0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e",
279
+ },
280
+ },
281
+ {
282
+ parachain: 2313,
283
+ },
284
+ ],
285
+ },
286
+ },
287
+ location: {
288
+ parents: 1,
289
+ interior: {
290
+ x1: [
291
+ {
292
+ parachain: 2313,
293
+ },
294
+ ],
295
+ },
296
+ },
297
+ locationOnAH: {
298
+ parents: 1,
299
+ interior: {
300
+ x1: [
301
+ {
302
+ parachain: 2313,
303
+ },
304
+ ],
305
+ },
306
+ },
307
+ foreignId: "0xaf13384cf9612ef1ff4b87470ab247d6f8d8110d4f5af2fe290ce6767818712c",
308
+ minimumBalance: 1n,
309
+ isSufficient: false,
310
+ },
311
+ "0xb8a0f2703ac6bdd352096c90c2945a097e8f4055": {
312
+ token: "0xb8a0f2703ac6bdd352096c90c2945a097e8f4055",
313
+ name: "",
314
+ symbol: "WND",
315
+ decimals: 12,
316
+ locationOnEthereum: {
317
+ parents: 1,
318
+ interior: {
319
+ x1: [
320
+ {
321
+ globalConsensus: {
322
+ byGenesis: "0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e",
323
+ },
324
+ },
325
+ ],
326
+ },
327
+ },
328
+ location: {
329
+ parents: 1,
330
+ interior: "Here",
331
+ },
332
+ locationOnAH: {
333
+ parents: 1,
334
+ interior: "Here",
335
+ },
336
+ foreignId: "0x2121cfe35065c0c33465fbada265f08e9613428a4b9eb4bb717cd7db2abf622e",
337
+ minimumBalance: 1000000000n,
338
+ isSufficient: true,
339
+ },
340
+ "0xf50fb50d65c8c1f6c72e4d8397c984933afc8f7e": {
341
+ token: "0xf50fb50d65c8c1f6c72e4d8397c984933afc8f7e",
342
+ name: "",
343
+ symbol: "WND",
344
+ decimals: 12,
345
+ locationOnEthereum: {
346
+ parents: 1,
347
+ interior: {
348
+ x1: [
349
+ {
350
+ globalConsensus: {
351
+ byGenesis: "0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e",
352
+ },
353
+ },
354
+ ],
355
+ },
356
+ },
357
+ location: {
358
+ parents: 1,
359
+ interior: "Here",
360
+ },
361
+ locationOnAH: {
362
+ parents: 1,
363
+ interior: "Here",
364
+ },
365
+ foreignId: "0x9441dceeeffa7e032eedaccf9b7632e60e86711551a82ffbbb0dda8afd9e4ef7",
366
+ minimumBalance: 1000000000n,
367
+ isSufficient: true,
368
+ },
369
+ },
370
+ estimatedExecutionFeeDOT: 0n,
371
+ estimatedDeliveryFeeDOT: 0n,
372
+ },
373
+ },
374
+ },
375
+ };
376
+ exports.default = registry;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snowbridge/registry",
3
- "version": "0.3.2",
3
+ "version": "0.4.0",
4
4
  "description": "Snowbridge Asset Registry",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -13,26 +13,26 @@
13
13
  "devDependencies": {
14
14
  "@polkadot/api": "16.4.8",
15
15
  "@polkadot/util": "13.5.6",
16
- "ethers": "6.15.0",
17
16
  "@types/node": "24.6.2",
18
17
  "@typescript-eslint/eslint-plugin": "8.45.0",
19
18
  "@typescript-eslint/parser": "8.45.0",
19
+ "dotenv": "^17.2.3",
20
20
  "eslint": "9.37.0",
21
21
  "eslint-config-prettier": "10.1.8",
22
+ "ethers": "6.16.0",
22
23
  "prettier": "3.6.2",
23
24
  "ts-node": "10.9.2",
24
25
  "tsconfig-paths": "4.2.0",
25
26
  "typescript": "5.9.3",
26
- "dotenv": "^17.2.3",
27
- "@snowbridge/contract-types": "0.3.2",
28
- "@snowbridge/api": "0.3.2"
27
+ "@snowbridge/contract-types": "0.4.0",
28
+ "@snowbridge/api": "0.4.0"
29
29
  },
30
30
  "dependencies": {
31
- "@snowbridge/base-types": "0.3.2"
31
+ "@snowbridge/base-types": "0.4.0"
32
32
  },
33
33
  "scripts": {
34
34
  "build": "tsc --build --force && tsc -p tsconfig.scripts.json",
35
- "build-registry": "npx ts-node scripts/buildRegistry.ts",
35
+ "build-registry": "npx ts-node scripts/buildRegistry.ts && pnpm format",
36
36
  "lint": "eslint .",
37
37
  "format": "prettier src --write && prettier scripts --write"
38
38
  }