@1delta/providers 0.0.55 → 0.0.56

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1delta/providers",
3
- "version": "0.0.55",
3
+ "version": "0.0.56",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -19,7 +19,7 @@
19
19
  "dependencies": {
20
20
  "vitest": "^4.0.18",
21
21
  "@1delta/chain-registry": "0.0.4",
22
- "@1delta/data-sdk": "0.0.22"
22
+ "@1delta/data-sdk": "0.0.23"
23
23
  },
24
24
  "devDependencies": {
25
25
  "tsup": "^8.5.1",
@@ -280,7 +280,11 @@ export function createMulticallRetry(
280
280
 
281
281
  // Out-of-gas: batch too large for the RPC gas limit — halve batch size and retry
282
282
  if (isOutOfGasError(e) && batchSize > 1) {
283
- if (logErrors) console.debug('[multicall] OOG', formatViemError(e))
283
+ if (logErrors)
284
+ console.debug(
285
+ `[multicall] OOG chain=${chain}`,
286
+ formatViemError(e),
287
+ )
284
288
  return await multicallRetry(
285
289
  chain,
286
290
  calls,
@@ -302,7 +306,7 @@ export function createMulticallRetry(
302
306
  if (logErrors) {
303
307
  const tag = isHttpError(e) ? 'HTTP' : 'unknown-transient'
304
308
  console.debug(
305
- `[multicall] ${tag} error on provider ${providerId}, skipping:`,
309
+ `[multicall] ${tag} error on chain=${chain} provider ${providerId}, skipping:`,
306
310
  formatViemError(e),
307
311
  )
308
312
  }
@@ -322,14 +326,15 @@ export function createMulticallRetry(
322
326
 
323
327
  if (maxRetries === 0) {
324
328
  if (!allowFailure) throw e
325
- if (logErrors) console.debug('[multicall]', formatViemError(e))
329
+ if (logErrors)
330
+ console.debug(`[multicall] chain=${chain}`, formatViemError(e))
326
331
  return Array(calls.length).fill('0x')
327
332
  }
328
333
 
329
334
  // Skips exhausted — consume a retry and rotate RPC
330
335
  if (logErrors)
331
336
  console.debug(
332
- `[multicall] retrying on provider ${providerId + 1}:`,
337
+ `[multicall] retrying on chain=${chain} provider ${providerId + 1}:`,
333
338
  formatViemError(e),
334
339
  )
335
340