@recoilpay/intent-core 0.1.0 → 0.2.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/dist/index.cjs +16 -3
- package/dist/index.js +16 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -229,12 +229,15 @@ var CHAIN_NAMES = {
|
|
|
229
229
|
8453: "Base",
|
|
230
230
|
42161: "Arbitrum",
|
|
231
231
|
56: "BNB Chain",
|
|
232
|
+
204: "opBNB",
|
|
232
233
|
43114: "Avalanche",
|
|
233
234
|
11155111: "Ethereum Sepolia",
|
|
234
235
|
84532: "Base Sepolia",
|
|
235
236
|
11155420: "OP Sepolia",
|
|
236
237
|
421614: "Arbitrum Sepolia",
|
|
237
238
|
80002: "Polygon Amoy",
|
|
239
|
+
97: "BNB Chain Testnet",
|
|
240
|
+
5611: "opBNB Testnet",
|
|
238
241
|
9000000001: "Solana",
|
|
239
242
|
9000000002: "Solana Devnet"
|
|
240
243
|
};
|
|
@@ -245,12 +248,15 @@ var EXPLORERS = {
|
|
|
245
248
|
8453: "https://basescan.org",
|
|
246
249
|
42161: "https://arbiscan.io",
|
|
247
250
|
56: "https://bscscan.com",
|
|
251
|
+
204: "https://opbnb.bscscan.com",
|
|
248
252
|
43114: "https://snowtrace.io",
|
|
249
253
|
11155111: "https://sepolia.etherscan.io",
|
|
250
254
|
84532: "https://sepolia.basescan.org",
|
|
251
255
|
11155420: "https://sepolia-optimism.etherscan.io",
|
|
252
256
|
421614: "https://sepolia.arbiscan.io",
|
|
253
|
-
80002: "https://amoy.polygonscan.com"
|
|
257
|
+
80002: "https://amoy.polygonscan.com",
|
|
258
|
+
97: "https://testnet.bscscan.com",
|
|
259
|
+
5611: "https://testnet.opbnbscan.com"
|
|
254
260
|
};
|
|
255
261
|
var SOLANA_CHAIN_IDS = /* @__PURE__ */ new Set([9000000001, 9000000002]);
|
|
256
262
|
function chainName(chainId, info) {
|
|
@@ -310,9 +316,14 @@ var CHAIN_ALIASES = {
|
|
|
310
316
|
op: { id: 10, name: "Optimism" },
|
|
311
317
|
polygon: { id: 137, name: "Polygon" },
|
|
312
318
|
matic: { id: 137, name: "Polygon" },
|
|
319
|
+
bsc: { id: 56, name: "BNB Chain" },
|
|
320
|
+
bnb: { id: 56, name: "BNB Chain" },
|
|
321
|
+
"bnb chain": { id: 56, name: "BNB Chain" },
|
|
322
|
+
"binance smart chain": { id: 56, name: "BNB Chain" },
|
|
323
|
+
opbnb: { id: 204, name: "opBNB" },
|
|
313
324
|
solana: { id: 9000000002, name: "Solana Devnet" },
|
|
314
325
|
"sol network": { id: 9000000002, name: "Solana Devnet" },
|
|
315
|
-
// testnets — the solver settles across these
|
|
326
|
+
// testnets — the solver settles across these
|
|
316
327
|
"base sepolia": { id: 84532, name: "Base Sepolia" },
|
|
317
328
|
"op sepolia": { id: 11155420, name: "OP Sepolia" },
|
|
318
329
|
"optimism sepolia": { id: 11155420, name: "OP Sepolia" },
|
|
@@ -322,7 +333,9 @@ var CHAIN_ALIASES = {
|
|
|
322
333
|
"eth sepolia": { id: 11155111, name: "Ethereum Sepolia" },
|
|
323
334
|
sepolia: { id: 11155111, name: "Ethereum Sepolia" },
|
|
324
335
|
"polygon amoy": { id: 80002, name: "Polygon Amoy" },
|
|
325
|
-
amoy: { id: 80002, name: "Polygon Amoy" }
|
|
336
|
+
amoy: { id: 80002, name: "Polygon Amoy" },
|
|
337
|
+
"bsc testnet": { id: 97, name: "BNB Chain Testnet" },
|
|
338
|
+
"bnb testnet": { id: 97, name: "BNB Chain Testnet" }
|
|
326
339
|
};
|
|
327
340
|
function normalizeToken(raw) {
|
|
328
341
|
if (!raw) return null;
|
package/dist/index.js
CHANGED
|
@@ -170,12 +170,15 @@ var CHAIN_NAMES = {
|
|
|
170
170
|
8453: "Base",
|
|
171
171
|
42161: "Arbitrum",
|
|
172
172
|
56: "BNB Chain",
|
|
173
|
+
204: "opBNB",
|
|
173
174
|
43114: "Avalanche",
|
|
174
175
|
11155111: "Ethereum Sepolia",
|
|
175
176
|
84532: "Base Sepolia",
|
|
176
177
|
11155420: "OP Sepolia",
|
|
177
178
|
421614: "Arbitrum Sepolia",
|
|
178
179
|
80002: "Polygon Amoy",
|
|
180
|
+
97: "BNB Chain Testnet",
|
|
181
|
+
5611: "opBNB Testnet",
|
|
179
182
|
9000000001: "Solana",
|
|
180
183
|
9000000002: "Solana Devnet"
|
|
181
184
|
};
|
|
@@ -186,12 +189,15 @@ var EXPLORERS = {
|
|
|
186
189
|
8453: "https://basescan.org",
|
|
187
190
|
42161: "https://arbiscan.io",
|
|
188
191
|
56: "https://bscscan.com",
|
|
192
|
+
204: "https://opbnb.bscscan.com",
|
|
189
193
|
43114: "https://snowtrace.io",
|
|
190
194
|
11155111: "https://sepolia.etherscan.io",
|
|
191
195
|
84532: "https://sepolia.basescan.org",
|
|
192
196
|
11155420: "https://sepolia-optimism.etherscan.io",
|
|
193
197
|
421614: "https://sepolia.arbiscan.io",
|
|
194
|
-
80002: "https://amoy.polygonscan.com"
|
|
198
|
+
80002: "https://amoy.polygonscan.com",
|
|
199
|
+
97: "https://testnet.bscscan.com",
|
|
200
|
+
5611: "https://testnet.opbnbscan.com"
|
|
195
201
|
};
|
|
196
202
|
var SOLANA_CHAIN_IDS = /* @__PURE__ */ new Set([9000000001, 9000000002]);
|
|
197
203
|
function chainName(chainId, info) {
|
|
@@ -251,9 +257,14 @@ var CHAIN_ALIASES = {
|
|
|
251
257
|
op: { id: 10, name: "Optimism" },
|
|
252
258
|
polygon: { id: 137, name: "Polygon" },
|
|
253
259
|
matic: { id: 137, name: "Polygon" },
|
|
260
|
+
bsc: { id: 56, name: "BNB Chain" },
|
|
261
|
+
bnb: { id: 56, name: "BNB Chain" },
|
|
262
|
+
"bnb chain": { id: 56, name: "BNB Chain" },
|
|
263
|
+
"binance smart chain": { id: 56, name: "BNB Chain" },
|
|
264
|
+
opbnb: { id: 204, name: "opBNB" },
|
|
254
265
|
solana: { id: 9000000002, name: "Solana Devnet" },
|
|
255
266
|
"sol network": { id: 9000000002, name: "Solana Devnet" },
|
|
256
|
-
// testnets — the solver settles across these
|
|
267
|
+
// testnets — the solver settles across these
|
|
257
268
|
"base sepolia": { id: 84532, name: "Base Sepolia" },
|
|
258
269
|
"op sepolia": { id: 11155420, name: "OP Sepolia" },
|
|
259
270
|
"optimism sepolia": { id: 11155420, name: "OP Sepolia" },
|
|
@@ -263,7 +274,9 @@ var CHAIN_ALIASES = {
|
|
|
263
274
|
"eth sepolia": { id: 11155111, name: "Ethereum Sepolia" },
|
|
264
275
|
sepolia: { id: 11155111, name: "Ethereum Sepolia" },
|
|
265
276
|
"polygon amoy": { id: 80002, name: "Polygon Amoy" },
|
|
266
|
-
amoy: { id: 80002, name: "Polygon Amoy" }
|
|
277
|
+
amoy: { id: 80002, name: "Polygon Amoy" },
|
|
278
|
+
"bsc testnet": { id: 97, name: "BNB Chain Testnet" },
|
|
279
|
+
"bnb testnet": { id: 97, name: "BNB Chain Testnet" }
|
|
267
280
|
};
|
|
268
281
|
function normalizeToken(raw) {
|
|
269
282
|
if (!raw) return null;
|
package/package.json
CHANGED