@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
package/dist/registry.d.ts
DELETED
package/dist/registry.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAqCtD,wBAAgB,gBAAgB,CAC5B,GAAG,EAAE,kBAAkB,GAAG,iBAAiB,GAAG,eAAe,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,GAC9E,aAAa,CAuBf"}
|
package/dist/registry.js
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.assetRegistryFor = assetRegistryFor;
|
|
7
|
-
const polkadot_mainnet_registry_json_1 = __importDefault(require("./polkadot_mainnet.registry.json"));
|
|
8
|
-
const westend_sepolia_registry_json_1 = __importDefault(require("./westend_sepolia.registry.json"));
|
|
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"));
|
|
11
|
-
function transformBigInt(obj) {
|
|
12
|
-
// Regex to match strings like "bigint:123"
|
|
13
|
-
const bigintPattern = /^bigint:(\d+)$/;
|
|
14
|
-
// Handle null or non-object/non-array values
|
|
15
|
-
if (obj === null || typeof obj !== "object") {
|
|
16
|
-
if (typeof obj === "string") {
|
|
17
|
-
const match = obj.match(bigintPattern);
|
|
18
|
-
if (match) {
|
|
19
|
-
return Object.freeze(BigInt(match[1]));
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
return Object.freeze(obj);
|
|
23
|
-
}
|
|
24
|
-
// Handle arrays
|
|
25
|
-
if (Array.isArray(obj)) {
|
|
26
|
-
return Object.freeze(obj.map((item) => transformBigInt(item)));
|
|
27
|
-
}
|
|
28
|
-
// Handle objects
|
|
29
|
-
const result = {};
|
|
30
|
-
for (const key in obj) {
|
|
31
|
-
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
32
|
-
result[key] = transformBigInt(obj[key]);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
return Object.freeze(result);
|
|
36
|
-
}
|
|
37
|
-
const cache = {};
|
|
38
|
-
function assetRegistryFor(env) {
|
|
39
|
-
if (env in cache) {
|
|
40
|
-
return cache[env];
|
|
41
|
-
}
|
|
42
|
-
let json;
|
|
43
|
-
switch (env) {
|
|
44
|
-
case "polkadot_mainnet":
|
|
45
|
-
json = polkadot_mainnet_registry_json_1.default;
|
|
46
|
-
break;
|
|
47
|
-
case "westend_sepolia":
|
|
48
|
-
json = westend_sepolia_registry_json_1.default;
|
|
49
|
-
break;
|
|
50
|
-
case "paseo_sepolia":
|
|
51
|
-
json = paseo_sepolia_registry_json_1.default;
|
|
52
|
-
break;
|
|
53
|
-
case "local_e2e":
|
|
54
|
-
json = local_e2e_registry_json_1.default;
|
|
55
|
-
break;
|
|
56
|
-
default:
|
|
57
|
-
throw Error(`Unknown env '${env}'`);
|
|
58
|
-
}
|
|
59
|
-
cache[env] = transformBigInt(json);
|
|
60
|
-
return cache[env];
|
|
61
|
-
}
|
|
@@ -1,283 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"timestamp": "2026-01-19T12:21:13.043Z",
|
|
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": 1021001
|
|
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": 1021000
|
|
27
|
-
},
|
|
28
|
-
"ethereumChains": {
|
|
29
|
-
"84532": {
|
|
30
|
-
"chainId": 84532,
|
|
31
|
-
"assets": {
|
|
32
|
-
"0x4200000000000000000000000000000000000006": {
|
|
33
|
-
"token": "0x4200000000000000000000000000000000000006",
|
|
34
|
-
"name": "Wrapped Ether",
|
|
35
|
-
"symbol": "WETH",
|
|
36
|
-
"decimals": 18,
|
|
37
|
-
"swapTokenAddress": "0xfff9976782d46cc05630d1f6ebab18b2324d6b14",
|
|
38
|
-
"swapFee": 0
|
|
39
|
-
},
|
|
40
|
-
"0x036cbd53842c5426634e7929541ec2318f3dcf7e": {
|
|
41
|
-
"token": "0x036cbd53842c5426634e7929541ec2318f3dcf7e",
|
|
42
|
-
"name": "USDC",
|
|
43
|
-
"symbol": "USDC",
|
|
44
|
-
"decimals": 6,
|
|
45
|
-
"swapTokenAddress": "0x1c7d4b196cb0c7b01d743fbc6116a902379c7238",
|
|
46
|
-
"swapFee": 500
|
|
47
|
-
},
|
|
48
|
-
"0x0000000000000000000000000000000000000000": {
|
|
49
|
-
"token": "0x0000000000000000000000000000000000000000",
|
|
50
|
-
"name": "Ether",
|
|
51
|
-
"symbol": "Ether",
|
|
52
|
-
"decimals": 18,
|
|
53
|
-
"swapTokenAddress": "0x0000000000000000000000000000000000000000",
|
|
54
|
-
"swapFee": 0
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
"id": "base-sepolia"
|
|
58
|
-
},
|
|
59
|
-
"11155111": {
|
|
60
|
-
"chainId": 11155111,
|
|
61
|
-
"assets": {
|
|
62
|
-
"0x0000000000000000000000000000000000000000": {
|
|
63
|
-
"token": "0x0000000000000000000000000000000000000000",
|
|
64
|
-
"name": "Ether",
|
|
65
|
-
"symbol": "Ether",
|
|
66
|
-
"decimals": 18
|
|
67
|
-
},
|
|
68
|
-
"0x1c7d4b196cb0c7b01d743fbc6116a902379c7238": {
|
|
69
|
-
"token": "0x1c7d4b196cb0c7b01d743fbc6116a902379c7238",
|
|
70
|
-
"name": "USDC",
|
|
71
|
-
"symbol": "USDC",
|
|
72
|
-
"decimals": 6,
|
|
73
|
-
"deliveryGas": "bigint:80000"
|
|
74
|
-
},
|
|
75
|
-
"0x72c610e05eaafcdf1fa7a2da15374ee90edb1620": {
|
|
76
|
-
"token": "0x72c610e05eaafcdf1fa7a2da15374ee90edb1620",
|
|
77
|
-
"name": "Frequency",
|
|
78
|
-
"symbol": "eFRQCY",
|
|
79
|
-
"decimals": 12,
|
|
80
|
-
"deliveryGas": "bigint:80000"
|
|
81
|
-
},
|
|
82
|
-
"0xfff9976782d46cc05630d1f6ebab18b2324d6b14": {
|
|
83
|
-
"token": "0xfff9976782d46cc05630d1f6ebab18b2324d6b14",
|
|
84
|
-
"name": "Wrapped Ether",
|
|
85
|
-
"symbol": "WETH",
|
|
86
|
-
"decimals": 18,
|
|
87
|
-
"deliveryGas": "bigint:80000"
|
|
88
|
-
},
|
|
89
|
-
"0x23838b1bb57cecf4422a57dd8e7f8a087b30d54f": {
|
|
90
|
-
"token": "0x23838b1bb57cecf4422a57dd8e7f8a087b30d54f",
|
|
91
|
-
"name": "Frequency",
|
|
92
|
-
"symbol": "XRQCY",
|
|
93
|
-
"decimals": 8,
|
|
94
|
-
"foreignId": "0xaf13384cf9612ef1ff4b87470ab247d6f8d8110d4f5af2fe290ce6767818712c",
|
|
95
|
-
"deliveryGas": "bigint:80000"
|
|
96
|
-
},
|
|
97
|
-
"0xb8a0f2703ac6bdd352096c90c2945a097e8f4055": {
|
|
98
|
-
"token": "0xb8a0f2703ac6bdd352096c90c2945a097e8f4055",
|
|
99
|
-
"name": "WND",
|
|
100
|
-
"symbol": "WND",
|
|
101
|
-
"decimals": 12,
|
|
102
|
-
"foreignId": "0x2121cfe35065c0c33465fbada265f08e9613428a4b9eb4bb717cd7db2abf622e",
|
|
103
|
-
"deliveryGas": "bigint:80000"
|
|
104
|
-
},
|
|
105
|
-
"0xf50fb50d65c8c1f6c72e4d8397c984933afc8f7e": {
|
|
106
|
-
"token": "0xf50fb50d65c8c1f6c72e4d8397c984933afc8f7e",
|
|
107
|
-
"name": "WND",
|
|
108
|
-
"symbol": "WND",
|
|
109
|
-
"decimals": 12,
|
|
110
|
-
"foreignId": "0x9441dceeeffa7e032eedaccf9b7632e60e86711551a82ffbbb0dda8afd9e4ef7",
|
|
111
|
-
"deliveryGas": "bigint:80000"
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
"id": "sepolia",
|
|
115
|
-
"baseDeliveryGas": "bigint:120000"
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
"parachains": {
|
|
119
|
-
"1000": {
|
|
120
|
-
"parachainId": 1000,
|
|
121
|
-
"features": {
|
|
122
|
-
"hasPalletXcm": true,
|
|
123
|
-
"hasDryRunApi": true,
|
|
124
|
-
"hasTxPaymentApi": true,
|
|
125
|
-
"hasDryRunRpc": true,
|
|
126
|
-
"hasDotBalance": true,
|
|
127
|
-
"hasEthBalance": true,
|
|
128
|
-
"hasXcmPaymentApi": true,
|
|
129
|
-
"supportsAliasOrigin": true,
|
|
130
|
-
"xcmVersion": "v5",
|
|
131
|
-
"supportsV2": true
|
|
132
|
-
},
|
|
133
|
-
"info": {
|
|
134
|
-
"tokenSymbols": "WND",
|
|
135
|
-
"tokenDecimals": 12,
|
|
136
|
-
"ss58Format": 42,
|
|
137
|
-
"isEthereum": false,
|
|
138
|
-
"accountType": "AccountId32",
|
|
139
|
-
"name": "Westend Asset Hub",
|
|
140
|
-
"specName": "westmint",
|
|
141
|
-
"specVersion": 1021000
|
|
142
|
-
},
|
|
143
|
-
"assets": {
|
|
144
|
-
"0x0000000000000000000000000000000000000000": {
|
|
145
|
-
"token": "0x0000000000000000000000000000000000000000",
|
|
146
|
-
"name": "Ether",
|
|
147
|
-
"minimumBalance": "bigint:15000",
|
|
148
|
-
"symbol": "Ether",
|
|
149
|
-
"decimals": 18,
|
|
150
|
-
"isSufficient": true
|
|
151
|
-
},
|
|
152
|
-
"0x1c7d4b196cb0c7b01d743fbc6116a902379c7238": {
|
|
153
|
-
"token": "0x1c7d4b196cb0c7b01d743fbc6116a902379c7238",
|
|
154
|
-
"name": "",
|
|
155
|
-
"minimumBalance": "bigint:1",
|
|
156
|
-
"symbol": "",
|
|
157
|
-
"decimals": 0,
|
|
158
|
-
"isSufficient": false
|
|
159
|
-
},
|
|
160
|
-
"0x72c610e05eaafcdf1fa7a2da15374ee90edb1620": {
|
|
161
|
-
"token": "0x72c610e05eaafcdf1fa7a2da15374ee90edb1620",
|
|
162
|
-
"name": "",
|
|
163
|
-
"minimumBalance": "bigint:1",
|
|
164
|
-
"symbol": "",
|
|
165
|
-
"decimals": 0,
|
|
166
|
-
"isSufficient": false
|
|
167
|
-
},
|
|
168
|
-
"0xfff9976782d46cc05630d1f6ebab18b2324d6b14": {
|
|
169
|
-
"token": "0xfff9976782d46cc05630d1f6ebab18b2324d6b14",
|
|
170
|
-
"name": "Wrapped Ether",
|
|
171
|
-
"minimumBalance": "bigint:15000000000000",
|
|
172
|
-
"symbol": "WETH",
|
|
173
|
-
"decimals": 18,
|
|
174
|
-
"isSufficient": true
|
|
175
|
-
},
|
|
176
|
-
"0x23838b1bb57cecf4422a57dd8e7f8a087b30d54f": {
|
|
177
|
-
"token": "0x23838b1bb57cecf4422a57dd8e7f8a087b30d54f",
|
|
178
|
-
"name": "",
|
|
179
|
-
"symbol": "",
|
|
180
|
-
"decimals": 0,
|
|
181
|
-
"locationOnEthereum": {
|
|
182
|
-
"parents": 1,
|
|
183
|
-
"interior": {
|
|
184
|
-
"x2": [
|
|
185
|
-
{
|
|
186
|
-
"globalConsensus": {
|
|
187
|
-
"byGenesis": "0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e"
|
|
188
|
-
}
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
"parachain": 2313
|
|
192
|
-
}
|
|
193
|
-
]
|
|
194
|
-
}
|
|
195
|
-
},
|
|
196
|
-
"location": {
|
|
197
|
-
"parents": 1,
|
|
198
|
-
"interior": {
|
|
199
|
-
"x1": [
|
|
200
|
-
{
|
|
201
|
-
"parachain": 2313
|
|
202
|
-
}
|
|
203
|
-
]
|
|
204
|
-
}
|
|
205
|
-
},
|
|
206
|
-
"locationOnAH": {
|
|
207
|
-
"parents": 1,
|
|
208
|
-
"interior": {
|
|
209
|
-
"x1": [
|
|
210
|
-
{
|
|
211
|
-
"parachain": 2313
|
|
212
|
-
}
|
|
213
|
-
]
|
|
214
|
-
}
|
|
215
|
-
},
|
|
216
|
-
"foreignId": "0xaf13384cf9612ef1ff4b87470ab247d6f8d8110d4f5af2fe290ce6767818712c",
|
|
217
|
-
"minimumBalance": "bigint:1",
|
|
218
|
-
"isSufficient": false
|
|
219
|
-
},
|
|
220
|
-
"0xb8a0f2703ac6bdd352096c90c2945a097e8f4055": {
|
|
221
|
-
"token": "0xb8a0f2703ac6bdd352096c90c2945a097e8f4055",
|
|
222
|
-
"name": "",
|
|
223
|
-
"symbol": "WND",
|
|
224
|
-
"decimals": 12,
|
|
225
|
-
"locationOnEthereum": {
|
|
226
|
-
"parents": 1,
|
|
227
|
-
"interior": {
|
|
228
|
-
"x1": [
|
|
229
|
-
{
|
|
230
|
-
"globalConsensus": {
|
|
231
|
-
"byGenesis": "0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e"
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
]
|
|
235
|
-
}
|
|
236
|
-
},
|
|
237
|
-
"location": {
|
|
238
|
-
"parents": 1,
|
|
239
|
-
"interior": "Here"
|
|
240
|
-
},
|
|
241
|
-
"locationOnAH": {
|
|
242
|
-
"parents": 1,
|
|
243
|
-
"interior": "Here"
|
|
244
|
-
},
|
|
245
|
-
"foreignId": "0x2121cfe35065c0c33465fbada265f08e9613428a4b9eb4bb717cd7db2abf622e",
|
|
246
|
-
"minimumBalance": "bigint:1000000000",
|
|
247
|
-
"isSufficient": true
|
|
248
|
-
},
|
|
249
|
-
"0xf50fb50d65c8c1f6c72e4d8397c984933afc8f7e": {
|
|
250
|
-
"token": "0xf50fb50d65c8c1f6c72e4d8397c984933afc8f7e",
|
|
251
|
-
"name": "",
|
|
252
|
-
"symbol": "WND",
|
|
253
|
-
"decimals": 12,
|
|
254
|
-
"locationOnEthereum": {
|
|
255
|
-
"parents": 1,
|
|
256
|
-
"interior": {
|
|
257
|
-
"x1": [
|
|
258
|
-
{
|
|
259
|
-
"globalConsensus": {
|
|
260
|
-
"byGenesis": "0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e"
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
]
|
|
264
|
-
}
|
|
265
|
-
},
|
|
266
|
-
"location": {
|
|
267
|
-
"parents": 1,
|
|
268
|
-
"interior": "Here"
|
|
269
|
-
},
|
|
270
|
-
"locationOnAH": {
|
|
271
|
-
"parents": 1,
|
|
272
|
-
"interior": "Here"
|
|
273
|
-
},
|
|
274
|
-
"foreignId": "0x9441dceeeffa7e032eedaccf9b7632e60e86711551a82ffbbb0dda8afd9e4ef7",
|
|
275
|
-
"minimumBalance": "bigint:1000000000",
|
|
276
|
-
"isSufficient": true
|
|
277
|
-
}
|
|
278
|
-
},
|
|
279
|
-
"estimatedExecutionFeeDOT": "bigint:0",
|
|
280
|
-
"estimatedDeliveryFeeDOT": "bigint:0"
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
}
|
package/src/environment.ts
DELETED
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
import { Environment } from "@snowbridge/base-types"
|
|
2
|
-
|
|
3
|
-
export function environmentFor(
|
|
4
|
-
env: "polkadot_mainnet" | "westend_sepolia" | "paseo_sepolia" | (string & {}),
|
|
5
|
-
): Environment {
|
|
6
|
-
if (!(env in SNOWBRIDGE_ENV)) throw Error(`Unknown env '${env}'`)
|
|
7
|
-
return SNOWBRIDGE_ENV[env]
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
const SNOWBRIDGE_ENV: { [env: string]: Environment } = {
|
|
11
|
-
local_e2e: {
|
|
12
|
-
name: "local_e2e",
|
|
13
|
-
ethChainId: 11155111,
|
|
14
|
-
beaconApiUrl: "http://127.0.0.1:9596",
|
|
15
|
-
ethereumChains: {
|
|
16
|
-
"11155111": "ws://127.0.0.1:8546",
|
|
17
|
-
},
|
|
18
|
-
relaychainUrl: "ws://127.0.0.1:9944",
|
|
19
|
-
parachains: {
|
|
20
|
-
"1000": "ws://127.0.0.1:12144",
|
|
21
|
-
"1002": "ws://127.0.0.1:11144",
|
|
22
|
-
"2000": "ws://127.0.0.1:13144",
|
|
23
|
-
},
|
|
24
|
-
gatewayContract: "0xb1185ede04202fe62d38f5db72f71e38ff3e8305",
|
|
25
|
-
beefyContract: "0x83428c7db9815f482a39a1715684dcf755021997",
|
|
26
|
-
assetHubParaId: 1000,
|
|
27
|
-
bridgeHubParaId: 1002,
|
|
28
|
-
v2_parachains: [1000],
|
|
29
|
-
indexerGraphQlUrl: "http://127.0.0.1/does/not/exist",
|
|
30
|
-
},
|
|
31
|
-
paseo_sepolia: {
|
|
32
|
-
name: "paseo_sepolia",
|
|
33
|
-
ethChainId: 11155111,
|
|
34
|
-
beaconApiUrl: "https://lodestar-sepolia.chainsafe.io",
|
|
35
|
-
ethereumChains: {
|
|
36
|
-
"11155111": "https://ethereum-sepolia-rpc.publicnode.com",
|
|
37
|
-
},
|
|
38
|
-
relaychainUrl: "wss://paseo-rpc.dwellir.com",
|
|
39
|
-
parachains: {
|
|
40
|
-
"1000": "wss://asset-hub-paseo-rpc.dwellir.com",
|
|
41
|
-
"1002": "wss://bridge-hub-paseo.dotters.network",
|
|
42
|
-
"3369": "wss://paseo-muse-rpc.polkadot.io",
|
|
43
|
-
"2043": `wss://parachain-testnet-rpc.origin-trail.network`,
|
|
44
|
-
},
|
|
45
|
-
gatewayContract: "0x1607C1368bc943130258318c91bBd8cFf3D063E6",
|
|
46
|
-
beefyContract: "0x2c780945beb1241fE9c645800110cb9C4bBbb639",
|
|
47
|
-
assetHubParaId: 1000,
|
|
48
|
-
bridgeHubParaId: 1002,
|
|
49
|
-
v2_parachains: [1000],
|
|
50
|
-
indexerGraphQlUrl:
|
|
51
|
-
"https://snowbridge.squids.live/snowbridge-subsquid-paseo@v1/api/graphql",
|
|
52
|
-
metadataOverrides: {
|
|
53
|
-
// Change the name of TRAC
|
|
54
|
-
"0xef32abea56beff54f61da319a7311098d6fbcea9": {
|
|
55
|
-
name: "OriginTrail TRAC",
|
|
56
|
-
symbol: "TRAC",
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
polkadot_mainnet: {
|
|
61
|
-
name: "polkadot_mainnet",
|
|
62
|
-
ethChainId: 1,
|
|
63
|
-
beaconApiUrl: "https://lodestar-mainnet.chainsafe.io",
|
|
64
|
-
ethereumChains: {
|
|
65
|
-
"1": "https://ethereum-rpc.publicnode.com",
|
|
66
|
-
"1284": "https://rpc.api.moonbeam.network",
|
|
67
|
-
"8453": "https://base-rpc.publicnode.com",
|
|
68
|
-
},
|
|
69
|
-
relaychainUrl: "https://polkadot-rpc.n.dwellir.com",
|
|
70
|
-
parachains: {
|
|
71
|
-
"1000": "wss://asset-hub-polkadot-rpc.n.dwellir.com",
|
|
72
|
-
"1002": "https://bridge-hub-polkadot-rpc.n.dwellir.com",
|
|
73
|
-
"3369": "wss://polkadot-mythos-rpc.polkadot.io",
|
|
74
|
-
"2034": "wss://hydration-rpc.n.dwellir.com",
|
|
75
|
-
"2030": "wss://bifrost-polkadot.ibp.network",
|
|
76
|
-
"2004": "wss://moonbeam.ibp.network",
|
|
77
|
-
"2000": "wss://acala-rpc-0.aca-api.network",
|
|
78
|
-
"2043": "wss://parachain-rpc.origin-trail.network",
|
|
79
|
-
// TODO: Add back in jampton once we have an indexer in place.
|
|
80
|
-
//"3397": "wss://rpc.jamton.network",
|
|
81
|
-
},
|
|
82
|
-
gatewayContract: "0x27ca963c279c93801941e1eb8799c23f407d68e7",
|
|
83
|
-
beefyContract: "0x1817874feAb3ce053d0F40AbC23870DB35C2AFfc",
|
|
84
|
-
assetHubParaId: 1000,
|
|
85
|
-
bridgeHubParaId: 1002,
|
|
86
|
-
v2_parachains: [1000],
|
|
87
|
-
indexerGraphQlUrl:
|
|
88
|
-
"https://snowbridge.squids.live/snowbridge-subsquid-polkadot@v2/api/graphql",
|
|
89
|
-
kusama: {
|
|
90
|
-
assetHubParaId: 1000,
|
|
91
|
-
bridgeHubParaId: 1002,
|
|
92
|
-
parachains: {
|
|
93
|
-
"1000": "wss://asset-hub-kusama-rpc.n.dwellir.com",
|
|
94
|
-
"1002": "https://bridge-hub-kusama-rpc.n.dwellir.com",
|
|
95
|
-
},
|
|
96
|
-
},
|
|
97
|
-
precompiles: {
|
|
98
|
-
// Add override for mythos token and add precompile for moonbeam
|
|
99
|
-
"2004": "0x000000000000000000000000000000000000081a",
|
|
100
|
-
},
|
|
101
|
-
metadataOverrides: {
|
|
102
|
-
// Change the name of TRAC
|
|
103
|
-
"0xaa7a9ca87d3694b5755f213b5d04094b8d0f0a6f": {
|
|
104
|
-
name: "OriginTrail TRAC",
|
|
105
|
-
},
|
|
106
|
-
},
|
|
107
|
-
l2Bridge: {
|
|
108
|
-
acrossAPIUrl: "https://app.across.to/api",
|
|
109
|
-
l1AdapterAddress: "0x313E8c9Fb47613f2B1A436bE978c2BB75727fcC5",
|
|
110
|
-
l1HandlerAddress: "0x924a9f036260DdD5808007E1AA95f08eD08aA569",
|
|
111
|
-
l1FeeTokenAddress: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
|
|
112
|
-
l1SwapQuoterAddress: "0x61fFE014bA17989E743c5F6cB21bF9697530B21e",
|
|
113
|
-
l1SwapRouterAddress: "0xE592427A0AEce92De3Edee1F18E0157C05861564",
|
|
114
|
-
l2Chains: {
|
|
115
|
-
"8453": {
|
|
116
|
-
adapterAddress: "0xCd5d2c665E3AC84bF5c67FE7a0C48748dA40db2F",
|
|
117
|
-
feeTokenAddress: "0x4200000000000000000000000000000000000006",
|
|
118
|
-
swapRoutes: [
|
|
119
|
-
// WETH
|
|
120
|
-
{
|
|
121
|
-
inputToken: "0x4200000000000000000000000000000000000006",
|
|
122
|
-
outputToken: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
|
|
123
|
-
swapFee: 0,
|
|
124
|
-
},
|
|
125
|
-
// USDC
|
|
126
|
-
{
|
|
127
|
-
inputToken: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
|
|
128
|
-
outputToken: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
|
|
129
|
-
swapFee: 500,
|
|
130
|
-
},
|
|
131
|
-
],
|
|
132
|
-
},
|
|
133
|
-
},
|
|
134
|
-
},
|
|
135
|
-
},
|
|
136
|
-
westend_sepolia: {
|
|
137
|
-
name: "westend_sepolia",
|
|
138
|
-
ethChainId: 11155111,
|
|
139
|
-
beaconApiUrl: "https://lodestar-sepolia.chainsafe.io",
|
|
140
|
-
ethereumChains: {
|
|
141
|
-
"11155111": "https://ethereum-sepolia-rpc.publicnode.com",
|
|
142
|
-
"84532": "https://base-sepolia-rpc.publicnode.com",
|
|
143
|
-
},
|
|
144
|
-
relaychainUrl: "wss://westend-rpc.n.dwellir.com",
|
|
145
|
-
parachains: {
|
|
146
|
-
"1000": "wss://asset-hub-westend-rpc.n.dwellir.com",
|
|
147
|
-
"1002": "wss://bridge-hub-westend-rpc.n.dwellir.com",
|
|
148
|
-
},
|
|
149
|
-
gatewayContract: "0x9ed8b47bc3417e3bd0507adc06e56e2fa360a4e9",
|
|
150
|
-
beefyContract: "0xA04460B1D8bBef33F54edB2C3115e3E4D41237A6",
|
|
151
|
-
assetHubParaId: 1000,
|
|
152
|
-
bridgeHubParaId: 1002,
|
|
153
|
-
v2_parachains: [1000],
|
|
154
|
-
indexerGraphQlUrl:
|
|
155
|
-
"https://snowbridge.squids.live/snowbridge-subsquid-westend@v1/api/graphql",
|
|
156
|
-
l2Bridge: {
|
|
157
|
-
acrossAPIUrl: "https://testnet.across.to/api",
|
|
158
|
-
l1AdapterAddress: "0xA5B8589bD534701be49916c4d2e634aB1c765Cbf",
|
|
159
|
-
l1HandlerAddress: "0x924a9f036260DdD5808007E1AA95f08eD08aA569",
|
|
160
|
-
l1FeeTokenAddress: "0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14",
|
|
161
|
-
l1SwapRouterAddress: "0x3bFA4769FB09eefC5a80d6E87c3B9C650f7Ae48E",
|
|
162
|
-
l1SwapQuoterAddress: "0xEd1f6473345F45b75F8179591dd5bA1888cf2FB3",
|
|
163
|
-
l2Chains: {
|
|
164
|
-
"84532": {
|
|
165
|
-
adapterAddress: "0xf06939613A3838Af11104c898758220dB9093679",
|
|
166
|
-
feeTokenAddress: "0x4200000000000000000000000000000000000006",
|
|
167
|
-
swapRoutes: [
|
|
168
|
-
// WETH
|
|
169
|
-
{
|
|
170
|
-
inputToken: "0x4200000000000000000000000000000000000006",
|
|
171
|
-
outputToken: "0xfff9976782d46cc05630d1f6ebab18b2324d6b14",
|
|
172
|
-
swapFee: 0,
|
|
173
|
-
},
|
|
174
|
-
// USDC
|
|
175
|
-
{
|
|
176
|
-
inputToken: "0x036cbd53842c5426634e7929541ec2318f3dcf7e",
|
|
177
|
-
outputToken: "0x1c7d4b196cb0c7b01d743fbc6116a902379c7238",
|
|
178
|
-
swapFee: 500,
|
|
179
|
-
},
|
|
180
|
-
],
|
|
181
|
-
},
|
|
182
|
-
},
|
|
183
|
-
},
|
|
184
|
-
},
|
|
185
|
-
}
|