@snowbridge/registry 0.3.3 → 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.
- package/.turbo/turbo-build.log +1 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +24 -2
- package/dist/paseo_sepolia_bridge_info.g.d.ts +330 -0
- package/dist/paseo_sepolia_bridge_info.g.d.ts.map +1 -0
- package/dist/paseo_sepolia_bridge_info.g.js +350 -0
- package/dist/polkadot_mainnet_bridge_info.g.d.ts +1983 -0
- package/dist/polkadot_mainnet_bridge_info.g.d.ts.map +1 -0
- package/dist/polkadot_mainnet_bridge_info.g.js +2264 -0
- package/dist/transfers.d.ts +3 -8
- package/dist/transfers.d.ts.map +1 -1
- package/dist/transfers.js +54 -215
- package/dist/westend_sepolia_bridge_info.g.d.ts +344 -0
- package/dist/westend_sepolia_bridge_info.g.d.ts.map +1 -0
- package/dist/westend_sepolia_bridge_info.g.js +376 -0
- package/package.json +5 -5
- package/scripts/buildRegistry.ts +466 -29
- package/src/index.ts +24 -2
- package/src/paseo_sepolia_bridge_info.g.ts +349 -0
- package/src/polkadot_mainnet_bridge_info.g.ts +2287 -0
- package/src/transfers.ts +58 -266
- package/src/westend_sepolia_bridge_info.g.ts +384 -0
- package/dist/environment.d.ts +0 -3
- package/dist/environment.d.ts.map +0 -1
- package/dist/environment.js +0 -181
- package/dist/local_e2e.registry.json +0 -391
- package/dist/paseo_sepolia.registry.json +0 -231
- package/dist/polkadot_mainnet.registry.json +0 -1805
- package/dist/registry.d.ts +0 -3
- package/dist/registry.d.ts.map +0 -1
- package/dist/registry.js +0 -61
- package/dist/westend_sepolia.registry.json +0 -283
- package/src/environment.ts +0 -185
- package/src/local_e2e.registry.json +0 -391
- package/src/paseo_sepolia.registry.json +0 -231
- package/src/polkadot_mainnet.registry.json +0 -1805
- package/src/registry.ts +0 -63
- package/src/westend_sepolia.registry.json +0 -283
|
@@ -0,0 +1,384 @@
|
|
|
1
|
+
const registry = {
|
|
2
|
+
environment: {
|
|
3
|
+
name: "westend_sepolia",
|
|
4
|
+
ethChainId: 11155111,
|
|
5
|
+
beaconApiUrl: "https://lodestar-sepolia.chainsafe.io",
|
|
6
|
+
ethereumChains: {
|
|
7
|
+
"84532": "https://base-sepolia-rpc.publicnode.com",
|
|
8
|
+
"11155111": "https://ethereum-sepolia-rpc.publicnode.com",
|
|
9
|
+
},
|
|
10
|
+
relaychainUrl: "wss://westend-rpc.n.dwellir.com",
|
|
11
|
+
parachains: {
|
|
12
|
+
"1000": "wss://asset-hub-westend-rpc.n.dwellir.com",
|
|
13
|
+
"1002": "wss://bridge-hub-westend-rpc.n.dwellir.com",
|
|
14
|
+
},
|
|
15
|
+
gatewayContract: "0x9ed8b47bc3417e3bd0507adc06e56e2fa360a4e9",
|
|
16
|
+
beefyContract: "0xA04460B1D8bBef33F54edB2C3115e3E4D41237A6",
|
|
17
|
+
assetHubParaId: 1000,
|
|
18
|
+
bridgeHubParaId: 1002,
|
|
19
|
+
v2_parachains: [1000],
|
|
20
|
+
indexerGraphQlUrl:
|
|
21
|
+
"https://snowbridge.squids.live/snowbridge-subsquid-westend@v1/api/graphql",
|
|
22
|
+
l2Bridge: {
|
|
23
|
+
acrossAPIUrl: "https://testnet.across.to/api",
|
|
24
|
+
l1AdapterAddress: "0xA5B8589bD534701be49916c4d2e634aB1c765Cbf",
|
|
25
|
+
l1HandlerAddress: "0x924a9f036260DdD5808007E1AA95f08eD08aA569",
|
|
26
|
+
l1FeeTokenAddress: "0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14",
|
|
27
|
+
l1SwapRouterAddress: "0x3bFA4769FB09eefC5a80d6E87c3B9C650f7Ae48E",
|
|
28
|
+
l1SwapQuoterAddress: "0xEd1f6473345F45b75F8179591dd5bA1888cf2FB3",
|
|
29
|
+
l2Chains: {
|
|
30
|
+
"84532": {
|
|
31
|
+
adapterAddress: "0xf06939613A3838Af11104c898758220dB9093679",
|
|
32
|
+
feeTokenAddress: "0x4200000000000000000000000000000000000006",
|
|
33
|
+
swapRoutes: [
|
|
34
|
+
{
|
|
35
|
+
inputToken: "0x4200000000000000000000000000000000000006",
|
|
36
|
+
outputToken: "0xfff9976782d46cc05630d1f6ebab18b2324d6b14",
|
|
37
|
+
swapFee: 0,
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
inputToken: "0x036cbd53842c5426634e7929541ec2318f3dcf7e",
|
|
41
|
+
outputToken: "0x1c7d4b196cb0c7b01d743fbc6116a902379c7238",
|
|
42
|
+
swapFee: 500,
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
routes: [
|
|
50
|
+
{
|
|
51
|
+
from: {
|
|
52
|
+
kind: "ethereum",
|
|
53
|
+
id: 11155111,
|
|
54
|
+
},
|
|
55
|
+
to: {
|
|
56
|
+
kind: "polkadot",
|
|
57
|
+
id: 1000,
|
|
58
|
+
},
|
|
59
|
+
assets: [
|
|
60
|
+
"0x0000000000000000000000000000000000000000",
|
|
61
|
+
"0x1c7d4b196cb0c7b01d743fbc6116a902379c7238",
|
|
62
|
+
"0xfff9976782d46cc05630d1f6ebab18b2324d6b14",
|
|
63
|
+
"0x23838b1bb57cecf4422a57dd8e7f8a087b30d54f",
|
|
64
|
+
"0xb8a0f2703ac6bdd352096c90c2945a097e8f4055",
|
|
65
|
+
"0xf50fb50d65c8c1f6c72e4d8397c984933afc8f7e",
|
|
66
|
+
],
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
from: {
|
|
70
|
+
kind: "polkadot",
|
|
71
|
+
id: 1000,
|
|
72
|
+
},
|
|
73
|
+
to: {
|
|
74
|
+
kind: "ethereum",
|
|
75
|
+
id: 11155111,
|
|
76
|
+
},
|
|
77
|
+
assets: [
|
|
78
|
+
"0x0000000000000000000000000000000000000000",
|
|
79
|
+
"0x1c7d4b196cb0c7b01d743fbc6116a902379c7238",
|
|
80
|
+
"0xfff9976782d46cc05630d1f6ebab18b2324d6b14",
|
|
81
|
+
"0x23838b1bb57cecf4422a57dd8e7f8a087b30d54f",
|
|
82
|
+
"0xb8a0f2703ac6bdd352096c90c2945a097e8f4055",
|
|
83
|
+
"0xf50fb50d65c8c1f6c72e4d8397c984933afc8f7e",
|
|
84
|
+
],
|
|
85
|
+
},
|
|
86
|
+
],
|
|
87
|
+
registry: {
|
|
88
|
+
timestamp: "2026-01-28T21:33:34.219Z",
|
|
89
|
+
environment: "westend_sepolia",
|
|
90
|
+
ethChainId: 11155111,
|
|
91
|
+
gatewayAddress: "0x9ed8b47bc3417e3bd0507adc06e56e2fa360a4e9",
|
|
92
|
+
assetHubParaId: 1000,
|
|
93
|
+
bridgeHubParaId: 1002,
|
|
94
|
+
relaychain: {
|
|
95
|
+
tokenSymbols: "WND",
|
|
96
|
+
tokenDecimals: 12,
|
|
97
|
+
ss58Format: 42,
|
|
98
|
+
isEthereum: false,
|
|
99
|
+
accountType: "AccountId32",
|
|
100
|
+
name: "Westend",
|
|
101
|
+
specName: "westend",
|
|
102
|
+
specVersion: 1021001,
|
|
103
|
+
},
|
|
104
|
+
bridgeHub: {
|
|
105
|
+
tokenSymbols: "WND",
|
|
106
|
+
tokenDecimals: 12,
|
|
107
|
+
ss58Format: 42,
|
|
108
|
+
isEthereum: false,
|
|
109
|
+
accountType: "AccountId32",
|
|
110
|
+
name: "Westend BridgeHub",
|
|
111
|
+
specName: "bridge-hub-westend",
|
|
112
|
+
specVersion: 1021000,
|
|
113
|
+
},
|
|
114
|
+
ethereumChains: {
|
|
115
|
+
ethereum_l2_84532: {
|
|
116
|
+
kind: "ethereum_l2",
|
|
117
|
+
id: 84532,
|
|
118
|
+
assets: {
|
|
119
|
+
"0x4200000000000000000000000000000000000006": {
|
|
120
|
+
token: "0x4200000000000000000000000000000000000006",
|
|
121
|
+
name: "Wrapped Ether",
|
|
122
|
+
symbol: "WETH",
|
|
123
|
+
decimals: 18,
|
|
124
|
+
swapTokenAddress: "0xfff9976782d46cc05630d1f6ebab18b2324d6b14",
|
|
125
|
+
swapFee: 0,
|
|
126
|
+
},
|
|
127
|
+
"0x036cbd53842c5426634e7929541ec2318f3dcf7e": {
|
|
128
|
+
token: "0x036cbd53842c5426634e7929541ec2318f3dcf7e",
|
|
129
|
+
name: "USDC",
|
|
130
|
+
symbol: "USDC",
|
|
131
|
+
decimals: 6,
|
|
132
|
+
swapTokenAddress: "0x1c7d4b196cb0c7b01d743fbc6116a902379c7238",
|
|
133
|
+
swapFee: 500,
|
|
134
|
+
},
|
|
135
|
+
"0x0000000000000000000000000000000000000000": {
|
|
136
|
+
token: "0x0000000000000000000000000000000000000000",
|
|
137
|
+
name: "Ether",
|
|
138
|
+
symbol: "Ether",
|
|
139
|
+
decimals: 18,
|
|
140
|
+
swapTokenAddress: "0x0000000000000000000000000000000000000000",
|
|
141
|
+
swapFee: 0,
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
key: "ethereum_l2_84532",
|
|
145
|
+
},
|
|
146
|
+
ethereum_11155111: {
|
|
147
|
+
kind: "ethereum",
|
|
148
|
+
id: 11155111,
|
|
149
|
+
assets: {
|
|
150
|
+
"0x0000000000000000000000000000000000000000": {
|
|
151
|
+
token: "0x0000000000000000000000000000000000000000",
|
|
152
|
+
name: "Ether",
|
|
153
|
+
symbol: "Ether",
|
|
154
|
+
decimals: 18,
|
|
155
|
+
},
|
|
156
|
+
"0x1c7d4b196cb0c7b01d743fbc6116a902379c7238": {
|
|
157
|
+
token: "0x1c7d4b196cb0c7b01d743fbc6116a902379c7238",
|
|
158
|
+
name: "USDC",
|
|
159
|
+
symbol: "USDC",
|
|
160
|
+
decimals: 6,
|
|
161
|
+
deliveryGas: 80000n,
|
|
162
|
+
},
|
|
163
|
+
"0x72c610e05eaafcdf1fa7a2da15374ee90edb1620": {
|
|
164
|
+
token: "0x72c610e05eaafcdf1fa7a2da15374ee90edb1620",
|
|
165
|
+
name: "Frequency",
|
|
166
|
+
symbol: "eFRQCY",
|
|
167
|
+
decimals: 12,
|
|
168
|
+
deliveryGas: 80000n,
|
|
169
|
+
},
|
|
170
|
+
"0xfff9976782d46cc05630d1f6ebab18b2324d6b14": {
|
|
171
|
+
token: "0xfff9976782d46cc05630d1f6ebab18b2324d6b14",
|
|
172
|
+
name: "Wrapped Ether",
|
|
173
|
+
symbol: "WETH",
|
|
174
|
+
decimals: 18,
|
|
175
|
+
deliveryGas: 80000n,
|
|
176
|
+
},
|
|
177
|
+
"0x23838b1bb57cecf4422a57dd8e7f8a087b30d54f": {
|
|
178
|
+
token: "0x23838b1bb57cecf4422a57dd8e7f8a087b30d54f",
|
|
179
|
+
name: "Frequency",
|
|
180
|
+
symbol: "XRQCY",
|
|
181
|
+
decimals: 8,
|
|
182
|
+
foreignId:
|
|
183
|
+
"0xaf13384cf9612ef1ff4b87470ab247d6f8d8110d4f5af2fe290ce6767818712c",
|
|
184
|
+
deliveryGas: 80000n,
|
|
185
|
+
},
|
|
186
|
+
"0xb8a0f2703ac6bdd352096c90c2945a097e8f4055": {
|
|
187
|
+
token: "0xb8a0f2703ac6bdd352096c90c2945a097e8f4055",
|
|
188
|
+
name: "WND",
|
|
189
|
+
symbol: "WND",
|
|
190
|
+
decimals: 12,
|
|
191
|
+
foreignId:
|
|
192
|
+
"0x2121cfe35065c0c33465fbada265f08e9613428a4b9eb4bb717cd7db2abf622e",
|
|
193
|
+
deliveryGas: 80000n,
|
|
194
|
+
},
|
|
195
|
+
"0xf50fb50d65c8c1f6c72e4d8397c984933afc8f7e": {
|
|
196
|
+
token: "0xf50fb50d65c8c1f6c72e4d8397c984933afc8f7e",
|
|
197
|
+
name: "WND",
|
|
198
|
+
symbol: "WND",
|
|
199
|
+
decimals: 12,
|
|
200
|
+
foreignId:
|
|
201
|
+
"0x9441dceeeffa7e032eedaccf9b7632e60e86711551a82ffbbb0dda8afd9e4ef7",
|
|
202
|
+
deliveryGas: 80000n,
|
|
203
|
+
},
|
|
204
|
+
},
|
|
205
|
+
key: "ethereum_11155111",
|
|
206
|
+
baseDeliveryGas: 120000n,
|
|
207
|
+
},
|
|
208
|
+
},
|
|
209
|
+
parachains: {
|
|
210
|
+
polkadot_1000: {
|
|
211
|
+
id: 1000,
|
|
212
|
+
kind: "polkadot",
|
|
213
|
+
key: "polkadot_1000",
|
|
214
|
+
features: {
|
|
215
|
+
hasPalletXcm: true,
|
|
216
|
+
hasDryRunApi: true,
|
|
217
|
+
hasTxPaymentApi: true,
|
|
218
|
+
hasDryRunRpc: true,
|
|
219
|
+
hasDotBalance: true,
|
|
220
|
+
hasEthBalance: true,
|
|
221
|
+
hasXcmPaymentApi: true,
|
|
222
|
+
supportsAliasOrigin: true,
|
|
223
|
+
xcmVersion: "v5",
|
|
224
|
+
supportsV2: true,
|
|
225
|
+
},
|
|
226
|
+
info: {
|
|
227
|
+
tokenSymbols: "WND",
|
|
228
|
+
tokenDecimals: 12,
|
|
229
|
+
ss58Format: 42,
|
|
230
|
+
isEthereum: false,
|
|
231
|
+
accountType: "AccountId32",
|
|
232
|
+
name: "Westend Asset Hub",
|
|
233
|
+
specName: "westmint",
|
|
234
|
+
specVersion: 1021000,
|
|
235
|
+
},
|
|
236
|
+
assets: {
|
|
237
|
+
"0x0000000000000000000000000000000000000000": {
|
|
238
|
+
token: "0x0000000000000000000000000000000000000000",
|
|
239
|
+
name: "Ether",
|
|
240
|
+
minimumBalance: 15000n,
|
|
241
|
+
symbol: "Ether",
|
|
242
|
+
decimals: 18,
|
|
243
|
+
isSufficient: true,
|
|
244
|
+
},
|
|
245
|
+
"0x1c7d4b196cb0c7b01d743fbc6116a902379c7238": {
|
|
246
|
+
token: "0x1c7d4b196cb0c7b01d743fbc6116a902379c7238",
|
|
247
|
+
name: "",
|
|
248
|
+
minimumBalance: 1n,
|
|
249
|
+
symbol: "",
|
|
250
|
+
decimals: 0,
|
|
251
|
+
isSufficient: false,
|
|
252
|
+
},
|
|
253
|
+
"0x72c610e05eaafcdf1fa7a2da15374ee90edb1620": {
|
|
254
|
+
token: "0x72c610e05eaafcdf1fa7a2da15374ee90edb1620",
|
|
255
|
+
name: "",
|
|
256
|
+
minimumBalance: 1n,
|
|
257
|
+
symbol: "",
|
|
258
|
+
decimals: 0,
|
|
259
|
+
isSufficient: false,
|
|
260
|
+
},
|
|
261
|
+
"0xfff9976782d46cc05630d1f6ebab18b2324d6b14": {
|
|
262
|
+
token: "0xfff9976782d46cc05630d1f6ebab18b2324d6b14",
|
|
263
|
+
name: "Wrapped Ether",
|
|
264
|
+
minimumBalance: 15000000000000n,
|
|
265
|
+
symbol: "WETH",
|
|
266
|
+
decimals: 18,
|
|
267
|
+
isSufficient: true,
|
|
268
|
+
},
|
|
269
|
+
"0x23838b1bb57cecf4422a57dd8e7f8a087b30d54f": {
|
|
270
|
+
token: "0x23838b1bb57cecf4422a57dd8e7f8a087b30d54f",
|
|
271
|
+
name: "",
|
|
272
|
+
symbol: "",
|
|
273
|
+
decimals: 0,
|
|
274
|
+
locationOnEthereum: {
|
|
275
|
+
parents: 1,
|
|
276
|
+
interior: {
|
|
277
|
+
x2: [
|
|
278
|
+
{
|
|
279
|
+
globalConsensus: {
|
|
280
|
+
byGenesis:
|
|
281
|
+
"0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e",
|
|
282
|
+
},
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
parachain: 2313,
|
|
286
|
+
},
|
|
287
|
+
],
|
|
288
|
+
},
|
|
289
|
+
},
|
|
290
|
+
location: {
|
|
291
|
+
parents: 1,
|
|
292
|
+
interior: {
|
|
293
|
+
x1: [
|
|
294
|
+
{
|
|
295
|
+
parachain: 2313,
|
|
296
|
+
},
|
|
297
|
+
],
|
|
298
|
+
},
|
|
299
|
+
},
|
|
300
|
+
locationOnAH: {
|
|
301
|
+
parents: 1,
|
|
302
|
+
interior: {
|
|
303
|
+
x1: [
|
|
304
|
+
{
|
|
305
|
+
parachain: 2313,
|
|
306
|
+
},
|
|
307
|
+
],
|
|
308
|
+
},
|
|
309
|
+
},
|
|
310
|
+
foreignId:
|
|
311
|
+
"0xaf13384cf9612ef1ff4b87470ab247d6f8d8110d4f5af2fe290ce6767818712c",
|
|
312
|
+
minimumBalance: 1n,
|
|
313
|
+
isSufficient: false,
|
|
314
|
+
},
|
|
315
|
+
"0xb8a0f2703ac6bdd352096c90c2945a097e8f4055": {
|
|
316
|
+
token: "0xb8a0f2703ac6bdd352096c90c2945a097e8f4055",
|
|
317
|
+
name: "",
|
|
318
|
+
symbol: "WND",
|
|
319
|
+
decimals: 12,
|
|
320
|
+
locationOnEthereum: {
|
|
321
|
+
parents: 1,
|
|
322
|
+
interior: {
|
|
323
|
+
x1: [
|
|
324
|
+
{
|
|
325
|
+
globalConsensus: {
|
|
326
|
+
byGenesis:
|
|
327
|
+
"0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e",
|
|
328
|
+
},
|
|
329
|
+
},
|
|
330
|
+
],
|
|
331
|
+
},
|
|
332
|
+
},
|
|
333
|
+
location: {
|
|
334
|
+
parents: 1,
|
|
335
|
+
interior: "Here",
|
|
336
|
+
},
|
|
337
|
+
locationOnAH: {
|
|
338
|
+
parents: 1,
|
|
339
|
+
interior: "Here",
|
|
340
|
+
},
|
|
341
|
+
foreignId:
|
|
342
|
+
"0x2121cfe35065c0c33465fbada265f08e9613428a4b9eb4bb717cd7db2abf622e",
|
|
343
|
+
minimumBalance: 1000000000n,
|
|
344
|
+
isSufficient: true,
|
|
345
|
+
},
|
|
346
|
+
"0xf50fb50d65c8c1f6c72e4d8397c984933afc8f7e": {
|
|
347
|
+
token: "0xf50fb50d65c8c1f6c72e4d8397c984933afc8f7e",
|
|
348
|
+
name: "",
|
|
349
|
+
symbol: "WND",
|
|
350
|
+
decimals: 12,
|
|
351
|
+
locationOnEthereum: {
|
|
352
|
+
parents: 1,
|
|
353
|
+
interior: {
|
|
354
|
+
x1: [
|
|
355
|
+
{
|
|
356
|
+
globalConsensus: {
|
|
357
|
+
byGenesis:
|
|
358
|
+
"0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e",
|
|
359
|
+
},
|
|
360
|
+
},
|
|
361
|
+
],
|
|
362
|
+
},
|
|
363
|
+
},
|
|
364
|
+
location: {
|
|
365
|
+
parents: 1,
|
|
366
|
+
interior: "Here",
|
|
367
|
+
},
|
|
368
|
+
locationOnAH: {
|
|
369
|
+
parents: 1,
|
|
370
|
+
interior: "Here",
|
|
371
|
+
},
|
|
372
|
+
foreignId:
|
|
373
|
+
"0x9441dceeeffa7e032eedaccf9b7632e60e86711551a82ffbbb0dda8afd9e4ef7",
|
|
374
|
+
minimumBalance: 1000000000n,
|
|
375
|
+
isSufficient: true,
|
|
376
|
+
},
|
|
377
|
+
},
|
|
378
|
+
estimatedExecutionFeeDOT: 0n,
|
|
379
|
+
estimatedDeliveryFeeDOT: 0n,
|
|
380
|
+
},
|
|
381
|
+
},
|
|
382
|
+
},
|
|
383
|
+
} as const
|
|
384
|
+
export default registry
|
package/dist/environment.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"environment.d.ts","sourceRoot":"","sources":["../src/environment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAEpD,wBAAgB,cAAc,CAC1B,GAAG,EAAE,kBAAkB,GAAG,iBAAiB,GAAG,eAAe,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,GAC9E,WAAW,CAGb"}
|
package/dist/environment.js
DELETED
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.environmentFor = environmentFor;
|
|
4
|
-
function environmentFor(env) {
|
|
5
|
-
if (!(env in SNOWBRIDGE_ENV))
|
|
6
|
-
throw Error(`Unknown env '${env}'`);
|
|
7
|
-
return SNOWBRIDGE_ENV[env];
|
|
8
|
-
}
|
|
9
|
-
const SNOWBRIDGE_ENV = {
|
|
10
|
-
local_e2e: {
|
|
11
|
-
name: "local_e2e",
|
|
12
|
-
ethChainId: 11155111,
|
|
13
|
-
beaconApiUrl: "http://127.0.0.1:9596",
|
|
14
|
-
ethereumChains: {
|
|
15
|
-
"11155111": "ws://127.0.0.1:8546",
|
|
16
|
-
},
|
|
17
|
-
relaychainUrl: "ws://127.0.0.1:9944",
|
|
18
|
-
parachains: {
|
|
19
|
-
"1000": "ws://127.0.0.1:12144",
|
|
20
|
-
"1002": "ws://127.0.0.1:11144",
|
|
21
|
-
"2000": "ws://127.0.0.1:13144",
|
|
22
|
-
},
|
|
23
|
-
gatewayContract: "0xb1185ede04202fe62d38f5db72f71e38ff3e8305",
|
|
24
|
-
beefyContract: "0x83428c7db9815f482a39a1715684dcf755021997",
|
|
25
|
-
assetHubParaId: 1000,
|
|
26
|
-
bridgeHubParaId: 1002,
|
|
27
|
-
v2_parachains: [1000],
|
|
28
|
-
indexerGraphQlUrl: "http://127.0.0.1/does/not/exist",
|
|
29
|
-
},
|
|
30
|
-
paseo_sepolia: {
|
|
31
|
-
name: "paseo_sepolia",
|
|
32
|
-
ethChainId: 11155111,
|
|
33
|
-
beaconApiUrl: "https://lodestar-sepolia.chainsafe.io",
|
|
34
|
-
ethereumChains: {
|
|
35
|
-
"11155111": "https://ethereum-sepolia-rpc.publicnode.com",
|
|
36
|
-
},
|
|
37
|
-
relaychainUrl: "wss://paseo-rpc.dwellir.com",
|
|
38
|
-
parachains: {
|
|
39
|
-
"1000": "wss://asset-hub-paseo-rpc.dwellir.com",
|
|
40
|
-
"1002": "wss://bridge-hub-paseo.dotters.network",
|
|
41
|
-
"3369": "wss://paseo-muse-rpc.polkadot.io",
|
|
42
|
-
"2043": `wss://parachain-testnet-rpc.origin-trail.network`,
|
|
43
|
-
},
|
|
44
|
-
gatewayContract: "0x1607C1368bc943130258318c91bBd8cFf3D063E6",
|
|
45
|
-
beefyContract: "0x2c780945beb1241fE9c645800110cb9C4bBbb639",
|
|
46
|
-
assetHubParaId: 1000,
|
|
47
|
-
bridgeHubParaId: 1002,
|
|
48
|
-
v2_parachains: [1000],
|
|
49
|
-
indexerGraphQlUrl: "https://snowbridge.squids.live/snowbridge-subsquid-paseo@v1/api/graphql",
|
|
50
|
-
metadataOverrides: {
|
|
51
|
-
// Change the name of TRAC
|
|
52
|
-
"0xef32abea56beff54f61da319a7311098d6fbcea9": {
|
|
53
|
-
name: "OriginTrail TRAC",
|
|
54
|
-
symbol: "TRAC",
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
polkadot_mainnet: {
|
|
59
|
-
name: "polkadot_mainnet",
|
|
60
|
-
ethChainId: 1,
|
|
61
|
-
beaconApiUrl: "https://lodestar-mainnet.chainsafe.io",
|
|
62
|
-
ethereumChains: {
|
|
63
|
-
"1": "https://ethereum-rpc.publicnode.com",
|
|
64
|
-
"1284": "https://rpc.api.moonbeam.network",
|
|
65
|
-
"8453": "https://base-rpc.publicnode.com",
|
|
66
|
-
},
|
|
67
|
-
relaychainUrl: "https://polkadot-rpc.n.dwellir.com",
|
|
68
|
-
parachains: {
|
|
69
|
-
"1000": "wss://asset-hub-polkadot-rpc.n.dwellir.com",
|
|
70
|
-
"1002": "https://bridge-hub-polkadot-rpc.n.dwellir.com",
|
|
71
|
-
"3369": "wss://polkadot-mythos-rpc.polkadot.io",
|
|
72
|
-
"2034": "wss://hydration-rpc.n.dwellir.com",
|
|
73
|
-
"2030": "wss://bifrost-polkadot.ibp.network",
|
|
74
|
-
"2004": "wss://moonbeam.ibp.network",
|
|
75
|
-
"2000": "wss://acala-rpc-0.aca-api.network",
|
|
76
|
-
"2043": "wss://parachain-rpc.origin-trail.network",
|
|
77
|
-
// TODO: Add back in jampton once we have an indexer in place.
|
|
78
|
-
//"3397": "wss://rpc.jamton.network",
|
|
79
|
-
},
|
|
80
|
-
gatewayContract: "0x27ca963c279c93801941e1eb8799c23f407d68e7",
|
|
81
|
-
beefyContract: "0x1817874feAb3ce053d0F40AbC23870DB35C2AFfc",
|
|
82
|
-
assetHubParaId: 1000,
|
|
83
|
-
bridgeHubParaId: 1002,
|
|
84
|
-
v2_parachains: [1000],
|
|
85
|
-
indexerGraphQlUrl: "https://snowbridge.squids.live/snowbridge-subsquid-polkadot@v2/api/graphql",
|
|
86
|
-
kusama: {
|
|
87
|
-
assetHubParaId: 1000,
|
|
88
|
-
bridgeHubParaId: 1002,
|
|
89
|
-
parachains: {
|
|
90
|
-
"1000": "wss://asset-hub-kusama-rpc.n.dwellir.com",
|
|
91
|
-
"1002": "https://bridge-hub-kusama-rpc.n.dwellir.com",
|
|
92
|
-
},
|
|
93
|
-
},
|
|
94
|
-
precompiles: {
|
|
95
|
-
// Add override for mythos token and add precompile for moonbeam
|
|
96
|
-
"2004": "0x000000000000000000000000000000000000081a",
|
|
97
|
-
},
|
|
98
|
-
metadataOverrides: {
|
|
99
|
-
// Change the name of TRAC
|
|
100
|
-
"0xaa7a9ca87d3694b5755f213b5d04094b8d0f0a6f": {
|
|
101
|
-
name: "OriginTrail TRAC",
|
|
102
|
-
},
|
|
103
|
-
},
|
|
104
|
-
l2Bridge: {
|
|
105
|
-
acrossAPIUrl: "https://app.across.to/api",
|
|
106
|
-
l1AdapterAddress: "0x313E8c9Fb47613f2B1A436bE978c2BB75727fcC5",
|
|
107
|
-
l1HandlerAddress: "0x924a9f036260DdD5808007E1AA95f08eD08aA569",
|
|
108
|
-
l1FeeTokenAddress: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
|
|
109
|
-
l1SwapQuoterAddress: "0x61fFE014bA17989E743c5F6cB21bF9697530B21e",
|
|
110
|
-
l1SwapRouterAddress: "0xE592427A0AEce92De3Edee1F18E0157C05861564",
|
|
111
|
-
l2Chains: {
|
|
112
|
-
"8453": {
|
|
113
|
-
adapterAddress: "0xCd5d2c665E3AC84bF5c67FE7a0C48748dA40db2F",
|
|
114
|
-
feeTokenAddress: "0x4200000000000000000000000000000000000006",
|
|
115
|
-
swapRoutes: [
|
|
116
|
-
// WETH
|
|
117
|
-
{
|
|
118
|
-
inputToken: "0x4200000000000000000000000000000000000006",
|
|
119
|
-
outputToken: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
|
|
120
|
-
swapFee: 0,
|
|
121
|
-
},
|
|
122
|
-
// USDC
|
|
123
|
-
{
|
|
124
|
-
inputToken: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
|
|
125
|
-
outputToken: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
|
|
126
|
-
swapFee: 500,
|
|
127
|
-
},
|
|
128
|
-
],
|
|
129
|
-
},
|
|
130
|
-
},
|
|
131
|
-
},
|
|
132
|
-
},
|
|
133
|
-
westend_sepolia: {
|
|
134
|
-
name: "westend_sepolia",
|
|
135
|
-
ethChainId: 11155111,
|
|
136
|
-
beaconApiUrl: "https://lodestar-sepolia.chainsafe.io",
|
|
137
|
-
ethereumChains: {
|
|
138
|
-
"11155111": "https://ethereum-sepolia-rpc.publicnode.com",
|
|
139
|
-
"84532": "https://base-sepolia-rpc.publicnode.com",
|
|
140
|
-
},
|
|
141
|
-
relaychainUrl: "wss://westend-rpc.n.dwellir.com",
|
|
142
|
-
parachains: {
|
|
143
|
-
"1000": "wss://asset-hub-westend-rpc.n.dwellir.com",
|
|
144
|
-
"1002": "wss://bridge-hub-westend-rpc.n.dwellir.com",
|
|
145
|
-
},
|
|
146
|
-
gatewayContract: "0x9ed8b47bc3417e3bd0507adc06e56e2fa360a4e9",
|
|
147
|
-
beefyContract: "0xA04460B1D8bBef33F54edB2C3115e3E4D41237A6",
|
|
148
|
-
assetHubParaId: 1000,
|
|
149
|
-
bridgeHubParaId: 1002,
|
|
150
|
-
v2_parachains: [1000],
|
|
151
|
-
indexerGraphQlUrl: "https://snowbridge.squids.live/snowbridge-subsquid-westend@v1/api/graphql",
|
|
152
|
-
l2Bridge: {
|
|
153
|
-
acrossAPIUrl: "https://testnet.across.to/api",
|
|
154
|
-
l1AdapterAddress: "0xA5B8589bD534701be49916c4d2e634aB1c765Cbf",
|
|
155
|
-
l1HandlerAddress: "0x924a9f036260DdD5808007E1AA95f08eD08aA569",
|
|
156
|
-
l1FeeTokenAddress: "0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14",
|
|
157
|
-
l1SwapRouterAddress: "0x3bFA4769FB09eefC5a80d6E87c3B9C650f7Ae48E",
|
|
158
|
-
l1SwapQuoterAddress: "0xEd1f6473345F45b75F8179591dd5bA1888cf2FB3",
|
|
159
|
-
l2Chains: {
|
|
160
|
-
"84532": {
|
|
161
|
-
adapterAddress: "0xf06939613A3838Af11104c898758220dB9093679",
|
|
162
|
-
feeTokenAddress: "0x4200000000000000000000000000000000000006",
|
|
163
|
-
swapRoutes: [
|
|
164
|
-
// WETH
|
|
165
|
-
{
|
|
166
|
-
inputToken: "0x4200000000000000000000000000000000000006",
|
|
167
|
-
outputToken: "0xfff9976782d46cc05630d1f6ebab18b2324d6b14",
|
|
168
|
-
swapFee: 0,
|
|
169
|
-
},
|
|
170
|
-
// USDC
|
|
171
|
-
{
|
|
172
|
-
inputToken: "0x036cbd53842c5426634e7929541ec2318f3dcf7e",
|
|
173
|
-
outputToken: "0x1c7d4b196cb0c7b01d743fbc6116a902379c7238",
|
|
174
|
-
swapFee: 500,
|
|
175
|
-
},
|
|
176
|
-
],
|
|
177
|
-
},
|
|
178
|
-
},
|
|
179
|
-
},
|
|
180
|
-
},
|
|
181
|
-
};
|