@1delta/providers 0.0.56 → 0.0.59
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.d.mts +579 -0
- package/dist/index.d.ts +579 -0
- package/dist/index.js +343 -41
- package/dist/index.mjs +343 -41
- package/package.json +3 -3
- package/src/chains/chainMapping.ts +17 -0
- package/src/chains/customChains.ts +24 -0
- package/src/rpc/rpcOverrides.ts +92 -1
|
@@ -240,6 +240,29 @@ const tacMainnet = defineChain({
|
|
|
240
240
|
},
|
|
241
241
|
})
|
|
242
242
|
|
|
243
|
+
const pharosMainnet = defineChain({
|
|
244
|
+
id: 1672,
|
|
245
|
+
name: 'Pharos Mainnet',
|
|
246
|
+
nativeCurrency: {
|
|
247
|
+
decimals: 18,
|
|
248
|
+
name: 'Pharos',
|
|
249
|
+
symbol: 'PROS',
|
|
250
|
+
},
|
|
251
|
+
rpcUrls: {
|
|
252
|
+
default: { http: ['https://rpc.pharos.xyz'] }, // Public RPC
|
|
253
|
+
},
|
|
254
|
+
blockExplorers: {
|
|
255
|
+
default: { name: 'Pharos Explorer', url: 'https://explorer.pharos.xyz' },
|
|
256
|
+
},
|
|
257
|
+
// Multicall3 contract address for Pharos, if available
|
|
258
|
+
contracts: {
|
|
259
|
+
multicall3: {
|
|
260
|
+
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
261
|
+
blockCreated: 1,
|
|
262
|
+
},
|
|
263
|
+
},
|
|
264
|
+
})
|
|
265
|
+
|
|
243
266
|
export const customChains = {
|
|
244
267
|
artela,
|
|
245
268
|
botanix,
|
|
@@ -249,4 +272,5 @@ export const customChains = {
|
|
|
249
272
|
monadMainnet,
|
|
250
273
|
swellchain,
|
|
251
274
|
tacMainnet,
|
|
275
|
+
pharosMainnet,
|
|
252
276
|
} as const
|
package/src/rpc/rpcOverrides.ts
CHANGED
|
@@ -228,7 +228,6 @@ export const LIST_OVERRIDES: Record<string, string[]> = {
|
|
|
228
228
|
'https://opbnb-mainnet.nodereal.io/v1/64a9df0874fb4a93b9d0a3849de012d3',
|
|
229
229
|
'wss://opbnb-mainnet.nodereal.io/ws/v1/64a9df0874fb4a93b9d0a3849de012d3',
|
|
230
230
|
],
|
|
231
|
-
[Chain.X_LAYER_MAINNET]: ['https://xlayerrpc.okx.com'],
|
|
232
231
|
[Chain.MANTA_PACIFIC_MAINNET]: [
|
|
233
232
|
'https://manta.nirvanalabs.xyz/mantapublic',
|
|
234
233
|
'https://manta-pacific-gascap.calderachain.xyz/http',
|
|
@@ -290,4 +289,96 @@ export const LIST_OVERRIDES: Record<string, string[]> = {
|
|
|
290
289
|
'https://unichain.api.onfinality.io/public',
|
|
291
290
|
'https://rpc.poolz.finance/unichain',
|
|
292
291
|
],
|
|
292
|
+
[Chain.X_LAYER_MAINNET]: [
|
|
293
|
+
'https://rpc.xlayer.tech',
|
|
294
|
+
'https://xlayer.rpc.blxrbdn.com',
|
|
295
|
+
'https://okx-xlayer.rpc.blxrbdn.com',
|
|
296
|
+
'https://flap-xlayer.rpc.blxrbdn.com',
|
|
297
|
+
'https://xlayer.drpc.org',
|
|
298
|
+
'https://rpc.sentio.xyz/xlayer-mainnet',
|
|
299
|
+
'https://xlayerrpc.okx.com',
|
|
300
|
+
],
|
|
301
|
+
[Chain.LISK]: [
|
|
302
|
+
'https://lisk.gateway.tenderly.co',
|
|
303
|
+
'https://lisk.drpc.org',
|
|
304
|
+
'https://rpc.api.lisk.com',
|
|
305
|
+
],
|
|
306
|
+
[Chain.MEGAETH_MAINNET]: [
|
|
307
|
+
'https://rpc-megaeth-mainnet.globalstake.io',
|
|
308
|
+
'https://mainnet.megaeth.com/rpc',
|
|
309
|
+
'https://megaeth.drpc.org',
|
|
310
|
+
],
|
|
311
|
+
[Chain.PLUME_MAINNET]: [
|
|
312
|
+
'https://rpc.plume.org',
|
|
313
|
+
'https://plume.drpc.org',
|
|
314
|
+
'https://plume-mainnet.gateway.tatum.io',
|
|
315
|
+
'wss://rpc.plume.org',
|
|
316
|
+
'wss://plume.drpc.org',
|
|
317
|
+
],
|
|
318
|
+
[Chain.PHAROS_MAINNET]: [
|
|
319
|
+
'https://rpc.pharos.xyz',
|
|
320
|
+
'https://infra.originstake.com/pharos/evm',
|
|
321
|
+
],
|
|
322
|
+
[Chain.BOB]: [
|
|
323
|
+
'https://rpc.gobob.xyz',
|
|
324
|
+
'https://bob.drpc.org',
|
|
325
|
+
'https://bob.gateway.tenderly.co',
|
|
326
|
+
'https://rpc.sentio.xyz/bob',
|
|
327
|
+
],
|
|
328
|
+
[Chain.ROOTSTOCK_MAINNET]: [
|
|
329
|
+
'https://mycrypto.rsk.co',
|
|
330
|
+
'https://public-node.rsk.co',
|
|
331
|
+
],
|
|
332
|
+
[Chain.ETHERLINK_MAINNET]: [
|
|
333
|
+
'https://node.mainnet.etherlink.com',
|
|
334
|
+
'https://rpc.ankr.com/etherlink_mainnet',
|
|
335
|
+
],
|
|
336
|
+
[Chain.ZKSYNC_MAINNET]: [
|
|
337
|
+
'https://mainnet.era.zksync.io',
|
|
338
|
+
'https://1rpc.io/zksync2-era',
|
|
339
|
+
'https://rpc.ankr.com/zksync_era',
|
|
340
|
+
'https://zksync.drpc.org',
|
|
341
|
+
'https://zksync.api.onfinality.io/public',
|
|
342
|
+
'https://zksync-era.api.pocket.network',
|
|
343
|
+
'https://rpc.sentio.xyz/zksync-era',
|
|
344
|
+
'https://api.zan.top/zksync-mainnet',
|
|
345
|
+
'wss://zksync.drpc.org',
|
|
346
|
+
],
|
|
347
|
+
[Chain.CORN]: [
|
|
348
|
+
'https://rpc.ankr.com/corn_maizenet',
|
|
349
|
+
'https://mainnet.corn-rpc.com',
|
|
350
|
+
'https://maizenet-rpc.usecorn.com',
|
|
351
|
+
],
|
|
352
|
+
[Chain.ABSTRACT]: [
|
|
353
|
+
'https://api.mainnet.abs.xyz',
|
|
354
|
+
'https://abstract.drpc.org',
|
|
355
|
+
'https://abstract-mainnet.gateway.tatum.io',
|
|
356
|
+
'wss://abstract.drpc.org',
|
|
357
|
+
],
|
|
358
|
+
[Chain.FLARE_MAINNET]: [
|
|
359
|
+
'https://rpc.ankr.com/flare',
|
|
360
|
+
'https://flare-api.flare.network/ext/C/rpc',
|
|
361
|
+
'https://rpc.au.cc/flare',
|
|
362
|
+
'https://flare.rpc.thirdweb.com',
|
|
363
|
+
],
|
|
364
|
+
[Chain.BERACHAIN]: [
|
|
365
|
+
'https://rpc.berachain.com',
|
|
366
|
+
'https://berachain-rpc.publicnode.com',
|
|
367
|
+
'https://berachain.drpc.org',
|
|
368
|
+
'https://rpc.berachain-apis.com',
|
|
369
|
+
],
|
|
370
|
+
[Chain.SONEIUM]: [
|
|
371
|
+
'https://rpc.soneium.org',
|
|
372
|
+
'https://soneium.drpc.org',
|
|
373
|
+
'https://soneium-rpc.publicnode.com',
|
|
374
|
+
],
|
|
375
|
+
[Chain.KATANA]: [
|
|
376
|
+
'https://rpc.katana.network',
|
|
377
|
+
'https://katana.drpc.org',
|
|
378
|
+
'https://rpc.katanarpc.com',
|
|
379
|
+
],
|
|
380
|
+
[Chain.STABLE_MAINNET]: [
|
|
381
|
+
'https://rpc.stable.xyz',
|
|
382
|
+
'wss://rpc.stable.xyz',
|
|
383
|
+
],
|
|
293
384
|
}
|