viem 0.2.0-canary.20230313T210957 → 0.2.0-canary.20230313T230538

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.
Files changed (55) hide show
  1. package/dist/abi.d.ts +3 -3
  2. package/dist/abi.js +2 -2
  3. package/dist/abi.mjs +1 -1
  4. package/dist/{chain-0ce17567.d.ts → chain-3a97fb0b.d.ts} +1 -1
  5. package/dist/{chain-5b8fb5eb.d.ts → chain-94e42876.d.ts} +1 -1
  6. package/dist/chains.d.ts +3 -3
  7. package/dist/chains.js +63 -63
  8. package/dist/chains.mjs +1 -1
  9. package/dist/{chunk-BWEZYOFM.js → chunk-43MIG4FP.js} +19 -19
  10. package/dist/{chunk-FC2S2WWT.mjs → chunk-H5XRC6PB.mjs} +76 -62
  11. package/dist/chunk-H5XRC6PB.mjs.map +1 -0
  12. package/dist/{chunk-5VPFUJ4Y.mjs → chunk-O2F7FICH.mjs} +2 -2
  13. package/dist/{chunk-CTJIELK4.js → chunk-RSEMPS5H.js} +77 -63
  14. package/dist/chunk-RSEMPS5H.js.map +1 -0
  15. package/dist/contract.d.ts +7 -7
  16. package/dist/contract.js +2 -2
  17. package/dist/contract.mjs +1 -1
  18. package/dist/{createClient-98b1c2e7.d.ts → createClient-ddc3fa22.d.ts} +2 -2
  19. package/dist/{createPublicClient-812a1dae.d.ts → createPublicClient-6792b8e9.d.ts} +3 -3
  20. package/dist/{eip1193-44504199.d.ts → eip1193-343f2a94.d.ts} +1 -1
  21. package/dist/{encodeFunctionResult-e491eb56.d.ts → encodeFunctionResult-4d3bafb8.d.ts} +2 -2
  22. package/dist/{encodePacked-d7942f6b.d.ts → encodePacked-a51cd55a.d.ts} +1 -1
  23. package/dist/ens.d.ts +4 -4
  24. package/dist/ens.js +3 -3
  25. package/dist/ens.mjs +2 -2
  26. package/dist/ethers.d.ts +4 -4
  27. package/dist/ethers.js +3 -3
  28. package/dist/ethers.mjs +1 -1
  29. package/dist/{formatAbiItem-29a73545.d.ts → formatAbiItem-e5d7437a.d.ts} +1 -1
  30. package/dist/{getAbiItem-779cb566.d.ts → getAbiItem-de2d6ac0.d.ts} +1 -1
  31. package/dist/index.d.ts +20 -14
  32. package/dist/index.js +92 -90
  33. package/dist/index.js.map +1 -1
  34. package/dist/index.mjs +4 -2
  35. package/dist/index.mjs.map +1 -1
  36. package/dist/{parseGwei-75956089.d.ts → parseGwei-21da474e.d.ts} +3 -3
  37. package/dist/public.d.ts +4 -4
  38. package/dist/public.js +2 -2
  39. package/dist/public.mjs +1 -1
  40. package/dist/{test-d0a36452.d.ts → test-07a99259.d.ts} +3 -3
  41. package/dist/test.d.ts +5 -5
  42. package/dist/test.js +2 -2
  43. package/dist/test.mjs +1 -1
  44. package/dist/utils/index.d.ts +13 -13
  45. package/dist/utils/index.js +2 -2
  46. package/dist/utils/index.mjs +1 -1
  47. package/dist/wallet.d.ts +4 -4
  48. package/dist/wallet.js +2 -2
  49. package/dist/wallet.mjs +1 -1
  50. package/dist/window.d.ts +2 -2
  51. package/package.json +1 -1
  52. package/dist/chunk-CTJIELK4.js.map +0 -1
  53. package/dist/chunk-FC2S2WWT.mjs.map +0 -1
  54. /package/dist/{chunk-BWEZYOFM.js.map → chunk-43MIG4FP.js.map} +0 -0
  55. /package/dist/{chunk-5VPFUJ4Y.mjs.map → chunk-O2F7FICH.mjs.map} +0 -0
@@ -209,12 +209,12 @@ var getVersion = () => `${package_default.name}@${package_default.version}`;
209
209
  var BaseError = class extends Error {
210
210
  constructor(shortMessage, args = {}) {
211
211
  const details = args.cause instanceof BaseError ? args.cause.details : args.cause?.message ? args.cause.message : args.details;
212
- const docsPath5 = args.cause instanceof BaseError ? args.cause.docsPath || args.docsPath : args.docsPath;
212
+ const docsPath6 = args.cause instanceof BaseError ? args.cause.docsPath || args.docsPath : args.docsPath;
213
213
  const message = [
214
214
  shortMessage || "An error occurred.",
215
215
  "",
216
216
  ...args.metaMessages ? [...args.metaMessages, ""] : [],
217
- ...docsPath5 ? [`Docs: https://viem.sh${docsPath5}.html`] : [],
217
+ ...docsPath6 ? [`Docs: https://viem.sh${docsPath6}.html`] : [],
218
218
  ...details ? [`Details: ${details}`] : [],
219
219
  `Version: ${getVersion()}`
220
220
  ].join("\n");
@@ -227,7 +227,7 @@ var BaseError = class extends Error {
227
227
  if (args.cause)
228
228
  this.cause = args.cause;
229
229
  this.details = details;
230
- this.docsPath = docsPath5;
230
+ this.docsPath = docsPath6;
231
231
  this.metaMessages = args.metaMessages;
232
232
  this.shortMessage = shortMessage;
233
233
  }
@@ -235,28 +235,28 @@ var BaseError = class extends Error {
235
235
 
236
236
  // src/errors/abi.ts
237
237
  var AbiConstructorNotFoundError = class extends BaseError {
238
- constructor({ docsPath: docsPath5 }) {
238
+ constructor({ docsPath: docsPath6 }) {
239
239
  super(
240
240
  [
241
241
  "A constructor was not found on the ABI.",
242
242
  "Make sure you are using the correct ABI and that the constructor exists on it."
243
243
  ].join("\n"),
244
244
  {
245
- docsPath: docsPath5
245
+ docsPath: docsPath6
246
246
  }
247
247
  );
248
248
  __publicField(this, "name", "AbiConstructorNotFoundError");
249
249
  }
250
250
  };
251
251
  var AbiConstructorParamsNotFoundError = class extends BaseError {
252
- constructor({ docsPath: docsPath5 }) {
252
+ constructor({ docsPath: docsPath6 }) {
253
253
  super(
254
254
  [
255
255
  "Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.",
256
256
  "Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."
257
257
  ].join("\n"),
258
258
  {
259
- docsPath: docsPath5
259
+ docsPath: docsPath6
260
260
  }
261
261
  );
262
262
  __publicField(this, "name", "AbiConstructorParamsNotFoundError");
@@ -321,7 +321,7 @@ var AbiEncodingLengthMismatchError = class extends BaseError {
321
321
  }
322
322
  };
323
323
  var AbiErrorInputsNotFoundError = class extends BaseError {
324
- constructor(errorName, { docsPath: docsPath5 }) {
324
+ constructor(errorName, { docsPath: docsPath6 }) {
325
325
  super(
326
326
  [
327
327
  `Arguments (\`args\`) were provided to "${errorName}", but "${errorName}" on the ABI does not contain any parameters (\`inputs\`).`,
@@ -329,28 +329,28 @@ var AbiErrorInputsNotFoundError = class extends BaseError {
329
329
  "Make sure you are using the correct ABI and that the inputs exist on it."
330
330
  ].join("\n"),
331
331
  {
332
- docsPath: docsPath5
332
+ docsPath: docsPath6
333
333
  }
334
334
  );
335
335
  __publicField(this, "name", "AbiErrorInputsNotFoundError");
336
336
  }
337
337
  };
338
338
  var AbiErrorNotFoundError = class extends BaseError {
339
- constructor(errorName, { docsPath: docsPath5 }) {
339
+ constructor(errorName, { docsPath: docsPath6 }) {
340
340
  super(
341
341
  [
342
342
  `Error "${errorName}" not found on ABI.`,
343
343
  "Make sure you are using the correct ABI and that the error exists on it."
344
344
  ].join("\n"),
345
345
  {
346
- docsPath: docsPath5
346
+ docsPath: docsPath6
347
347
  }
348
348
  );
349
349
  __publicField(this, "name", "AbiErrorNotFoundError");
350
350
  }
351
351
  };
352
352
  var AbiErrorSignatureNotFoundError = class extends BaseError {
353
- constructor(signature, { docsPath: docsPath5 }) {
353
+ constructor(signature, { docsPath: docsPath6 }) {
354
354
  super(
355
355
  [
356
356
  `Encoded error signature "${signature}" not found on ABI.`,
@@ -358,14 +358,22 @@ var AbiErrorSignatureNotFoundError = class extends BaseError {
358
358
  `You can look up the signature here: https://openchain.xyz/signatures?query=${signature}.`
359
359
  ].join("\n"),
360
360
  {
361
- docsPath: docsPath5
361
+ docsPath: docsPath6
362
362
  }
363
363
  );
364
364
  __publicField(this, "name", "AbiErrorSignatureNotFoundError");
365
365
  }
366
366
  };
367
+ var AbiEventSignatureEmptyTopicsError = class extends BaseError {
368
+ constructor({ docsPath: docsPath6 }) {
369
+ super("Cannot extract event signature from empty topics.", {
370
+ docsPath: docsPath6
371
+ });
372
+ __publicField(this, "name", "AbiEventSignatureEmptyTopicsError");
373
+ }
374
+ };
367
375
  var AbiEventSignatureNotFoundError = class extends BaseError {
368
- constructor(signature, { docsPath: docsPath5 }) {
376
+ constructor(signature, { docsPath: docsPath6 }) {
369
377
  super(
370
378
  [
371
379
  `Encoded event signature "${signature}" not found on ABI.`,
@@ -373,42 +381,42 @@ var AbiEventSignatureNotFoundError = class extends BaseError {
373
381
  `You can look up the signature here: https://openchain.xyz/signatures?query=${signature}.`
374
382
  ].join("\n"),
375
383
  {
376
- docsPath: docsPath5
384
+ docsPath: docsPath6
377
385
  }
378
386
  );
379
387
  __publicField(this, "name", "AbiEventSignatureNotFoundError");
380
388
  }
381
389
  };
382
390
  var AbiEventNotFoundError = class extends BaseError {
383
- constructor(eventName, { docsPath: docsPath5 }) {
391
+ constructor(eventName, { docsPath: docsPath6 }) {
384
392
  super(
385
393
  [
386
394
  `Event "${eventName}" not found on ABI.`,
387
395
  "Make sure you are using the correct ABI and that the event exists on it."
388
396
  ].join("\n"),
389
397
  {
390
- docsPath: docsPath5
398
+ docsPath: docsPath6
391
399
  }
392
400
  );
393
401
  __publicField(this, "name", "AbiEventNotFoundError");
394
402
  }
395
403
  };
396
404
  var AbiFunctionNotFoundError = class extends BaseError {
397
- constructor(functionName, { docsPath: docsPath5 }) {
405
+ constructor(functionName, { docsPath: docsPath6 }) {
398
406
  super(
399
407
  [
400
408
  `Function "${functionName}" not found on ABI.`,
401
409
  "Make sure you are using the correct ABI and that the function exists on it."
402
410
  ].join("\n"),
403
411
  {
404
- docsPath: docsPath5
412
+ docsPath: docsPath6
405
413
  }
406
414
  );
407
415
  __publicField(this, "name", "AbiFunctionNotFoundError");
408
416
  }
409
417
  };
410
418
  var AbiFunctionOutputsNotFoundError = class extends BaseError {
411
- constructor(functionName, { docsPath: docsPath5 }) {
419
+ constructor(functionName, { docsPath: docsPath6 }) {
412
420
  super(
413
421
  [
414
422
  `Function "${functionName}" does not contain any \`outputs\` on ABI.`,
@@ -416,14 +424,14 @@ var AbiFunctionOutputsNotFoundError = class extends BaseError {
416
424
  "Make sure you are using the correct ABI and that the function exists on it."
417
425
  ].join("\n"),
418
426
  {
419
- docsPath: docsPath5
427
+ docsPath: docsPath6
420
428
  }
421
429
  );
422
430
  __publicField(this, "name", "AbiFunctionOutputsNotFoundError");
423
431
  }
424
432
  };
425
433
  var AbiFunctionSignatureNotFoundError = class extends BaseError {
426
- constructor(signature, { docsPath: docsPath5 }) {
434
+ constructor(signature, { docsPath: docsPath6 }) {
427
435
  super(
428
436
  [
429
437
  `Encoded function signature "${signature}" not found on ABI.`,
@@ -431,7 +439,7 @@ var AbiFunctionSignatureNotFoundError = class extends BaseError {
431
439
  `You can look up the signature here: https://openchain.xyz/signatures?query=${signature}.`
432
440
  ].join("\n"),
433
441
  {
434
- docsPath: docsPath5
442
+ docsPath: docsPath6
435
443
  }
436
444
  );
437
445
  __publicField(this, "name", "AbiFunctionSignatureNotFoundError");
@@ -460,25 +468,25 @@ var DecodeLogTopicsMismatch = class extends BaseError {
460
468
  }
461
469
  };
462
470
  var InvalidAbiEncodingTypeError = class extends BaseError {
463
- constructor(type, { docsPath: docsPath5 }) {
471
+ constructor(type, { docsPath: docsPath6 }) {
464
472
  super(
465
473
  [
466
474
  `Type "${type}" is not a valid encoding type.`,
467
475
  "Please provide a valid ABI type."
468
476
  ].join("\n"),
469
- { docsPath: docsPath5 }
477
+ { docsPath: docsPath6 }
470
478
  );
471
479
  __publicField(this, "name", "InvalidAbiEncodingType");
472
480
  }
473
481
  };
474
482
  var InvalidAbiDecodingTypeError = class extends BaseError {
475
- constructor(type, { docsPath: docsPath5 }) {
483
+ constructor(type, { docsPath: docsPath6 }) {
476
484
  super(
477
485
  [
478
486
  `Type "${type}" is not a valid decoding type.`,
479
487
  "Please provide a valid ABI type."
480
488
  ].join("\n"),
481
- { docsPath: docsPath5 }
489
+ { docsPath: docsPath6 }
482
490
  );
483
491
  __publicField(this, "name", "InvalidAbiDecodingType");
484
492
  }
@@ -688,7 +696,7 @@ var FeeConflictError = class extends BaseError {
688
696
  var TransactionExecutionError = class extends BaseError {
689
697
  constructor(cause, {
690
698
  account,
691
- docsPath: docsPath5,
699
+ docsPath: docsPath6,
692
700
  chain,
693
701
  data,
694
702
  gas,
@@ -713,7 +721,7 @@ var TransactionExecutionError = class extends BaseError {
713
721
  });
714
722
  super(cause.shortMessage, {
715
723
  cause,
716
- docsPath: docsPath5,
724
+ docsPath: docsPath6,
717
725
  metaMessages: [
718
726
  ...cause.metaMessages ? [...cause.metaMessages, " "] : [],
719
727
  "Request Arguments:",
@@ -767,7 +775,7 @@ var WaitForTransactionReceiptTimeoutError = class extends BaseError {
767
775
  var CallExecutionError = class extends BaseError {
768
776
  constructor(cause, {
769
777
  account,
770
- docsPath: docsPath5,
778
+ docsPath: docsPath6,
771
779
  chain,
772
780
  data,
773
781
  gas,
@@ -791,7 +799,7 @@ var CallExecutionError = class extends BaseError {
791
799
  });
792
800
  super(cause.shortMessage, {
793
801
  cause,
794
- docsPath: docsPath5,
802
+ docsPath: docsPath6,
795
803
  metaMessages: [
796
804
  ...cause.metaMessages ? [...cause.metaMessages, " "] : [],
797
805
  "Raw Call Arguments:",
@@ -808,7 +816,7 @@ var ContractFunctionExecutionError = class extends BaseError {
808
816
  abi,
809
817
  args,
810
818
  contractAddress,
811
- docsPath: docsPath5,
819
+ docsPath: docsPath6,
812
820
  functionName,
813
821
  sender
814
822
  }) {
@@ -830,7 +838,7 @@ var ContractFunctionExecutionError = class extends BaseError {
830
838
  cause.shortMessage || `An unknown error occurred while executing the contract function "${functionName}".`,
831
839
  {
832
840
  cause,
833
- docsPath: docsPath5,
841
+ docsPath: docsPath6,
834
842
  metaMessages: [
835
843
  ...cause.metaMessages ? [...cause.metaMessages, " "] : [],
836
844
  "Contract Call:",
@@ -1008,7 +1016,7 @@ var OffsetOutOfBoundsError = class extends BaseError {
1008
1016
  var EstimateGasExecutionError = class extends BaseError {
1009
1017
  constructor(cause, {
1010
1018
  account,
1011
- docsPath: docsPath5,
1019
+ docsPath: docsPath6,
1012
1020
  chain,
1013
1021
  data,
1014
1022
  gas,
@@ -1032,7 +1040,7 @@ var EstimateGasExecutionError = class extends BaseError {
1032
1040
  });
1033
1041
  super(cause.shortMessage, {
1034
1042
  cause,
1035
- docsPath: docsPath5,
1043
+ docsPath: docsPath6,
1036
1044
  metaMessages: [
1037
1045
  ...cause.metaMessages ? [...cause.metaMessages, " "] : [],
1038
1046
  "Estimate Gas Arguments:",
@@ -1221,21 +1229,21 @@ var UnknownNodeError = class extends BaseError {
1221
1229
  // src/errors/request.ts
1222
1230
  var RequestError = class extends BaseError {
1223
1231
  constructor(err, {
1224
- docsPath: docsPath5,
1232
+ docsPath: docsPath6,
1225
1233
  metaMessages,
1226
1234
  shortMessage
1227
1235
  }) {
1228
1236
  super(shortMessage, {
1229
1237
  cause: err,
1230
- docsPath: docsPath5,
1238
+ docsPath: docsPath6,
1231
1239
  metaMessages
1232
1240
  });
1233
1241
  this.name = err.name;
1234
1242
  }
1235
1243
  };
1236
1244
  var RpcRequestError = class extends RequestError {
1237
- constructor(err, { docsPath: docsPath5, shortMessage }) {
1238
- super(err, { docsPath: docsPath5, metaMessages: err.metaMessages, shortMessage });
1245
+ constructor(err, { docsPath: docsPath6, shortMessage }) {
1246
+ super(err, { docsPath: docsPath6, metaMessages: err.metaMessages, shortMessage });
1239
1247
  __publicField(this, "code");
1240
1248
  this.code = err.code;
1241
1249
  this.name = err.name;
@@ -2428,18 +2436,23 @@ function decodeErrorResult({
2428
2436
  }
2429
2437
 
2430
2438
  // src/utils/abi/decodeEventLog.ts
2439
+ var docsPath = "/docs/contract/decodeEventLog";
2431
2440
  function decodeEventLog({
2432
2441
  abi,
2433
2442
  data,
2434
2443
  topics
2435
2444
  }) {
2436
2445
  const [signature, ...argTopics] = topics;
2446
+ if (!signature)
2447
+ throw new AbiEventSignatureEmptyTopicsError({
2448
+ docsPath
2449
+ });
2437
2450
  const abiItem = abi.find(
2438
2451
  (x) => x.type === "event" && signature === getEventSelector(formatAbiItem(x))
2439
2452
  );
2440
2453
  if (!(abiItem && "name" in abiItem))
2441
2454
  throw new AbiEventSignatureNotFoundError(signature, {
2442
- docsPath: "/docs/contract/decodeEventLog"
2455
+ docsPath
2443
2456
  });
2444
2457
  const { name, inputs } = abiItem;
2445
2458
  const isUnnamed = inputs?.some((x) => !("name" in x && x.name));
@@ -2578,7 +2591,7 @@ function isArgOfType(arg, abiParameter) {
2578
2591
  }
2579
2592
 
2580
2593
  // src/utils/abi/decodeFunctionResult.ts
2581
- var docsPath = "/docs/contract/decodeFunctionResult";
2594
+ var docsPath2 = "/docs/contract/decodeFunctionResult";
2582
2595
  function decodeFunctionResult({
2583
2596
  abi,
2584
2597
  args,
@@ -2591,9 +2604,9 @@ function decodeFunctionResult({
2591
2604
  name: functionName
2592
2605
  });
2593
2606
  if (!description)
2594
- throw new AbiFunctionNotFoundError(functionName, { docsPath });
2607
+ throw new AbiFunctionNotFoundError(functionName, { docsPath: docsPath2 });
2595
2608
  if (!("outputs" in description))
2596
- throw new AbiFunctionOutputsNotFoundError(functionName, { docsPath });
2609
+ throw new AbiFunctionOutputsNotFoundError(functionName, { docsPath: docsPath2 });
2597
2610
  const values = decodeAbiParameters(description.outputs, data);
2598
2611
  if (values && values.length > 1)
2599
2612
  return values;
@@ -2603,7 +2616,7 @@ function decodeFunctionResult({
2603
2616
  }
2604
2617
 
2605
2618
  // src/utils/abi/encodeDeployData.ts
2606
- var docsPath2 = "/docs/contract/encodeDeployData";
2619
+ var docsPath3 = "/docs/contract/encodeDeployData";
2607
2620
  function encodeDeployData({
2608
2621
  abi,
2609
2622
  args,
@@ -2615,11 +2628,11 @@ function encodeDeployData({
2615
2628
  (x) => "type" in x && x.type === "constructor"
2616
2629
  );
2617
2630
  if (!description)
2618
- throw new AbiConstructorNotFoundError({ docsPath: docsPath2 });
2631
+ throw new AbiConstructorNotFoundError({ docsPath: docsPath3 });
2619
2632
  if (!("inputs" in description))
2620
- throw new AbiConstructorParamsNotFoundError({ docsPath: docsPath2 });
2633
+ throw new AbiConstructorParamsNotFoundError({ docsPath: docsPath3 });
2621
2634
  if (!description.inputs || description.inputs.length === 0)
2622
- throw new AbiConstructorParamsNotFoundError({ docsPath: docsPath2 });
2635
+ throw new AbiConstructorParamsNotFoundError({ docsPath: docsPath3 });
2623
2636
  const data = encodeAbiParameters(
2624
2637
  description.inputs,
2625
2638
  args
@@ -2628,7 +2641,7 @@ function encodeDeployData({
2628
2641
  }
2629
2642
 
2630
2643
  // src/utils/abi/encodeErrorResult.ts
2631
- var docsPath3 = "/docs/contract/encodeErrorResult";
2644
+ var docsPath4 = "/docs/contract/encodeErrorResult";
2632
2645
  function encodeErrorResult({ abi, errorName, args }) {
2633
2646
  const description = getAbiItem({
2634
2647
  abi,
@@ -2636,13 +2649,13 @@ function encodeErrorResult({ abi, errorName, args }) {
2636
2649
  name: errorName
2637
2650
  });
2638
2651
  if (!description)
2639
- throw new AbiErrorNotFoundError(errorName, { docsPath: docsPath3 });
2652
+ throw new AbiErrorNotFoundError(errorName, { docsPath: docsPath4 });
2640
2653
  const definition = formatAbiItem(description);
2641
2654
  const signature = getFunctionSelector(definition);
2642
2655
  let data = "0x";
2643
2656
  if (args && args.length > 0) {
2644
2657
  if (!("inputs" in description && description.inputs))
2645
- throw new AbiErrorInputsNotFoundError(errorName, { docsPath: docsPath3 });
2658
+ throw new AbiErrorInputsNotFoundError(errorName, { docsPath: docsPath4 });
2646
2659
  data = encodeAbiParameters(description.inputs, args);
2647
2660
  }
2648
2661
  return concatHex([signature, data]);
@@ -2708,7 +2721,7 @@ function encodeFunctionData({
2708
2721
  }
2709
2722
 
2710
2723
  // src/utils/abi/encodeFunctionResult.ts
2711
- var docsPath4 = "/docs/contract/encodeFunctionResult";
2724
+ var docsPath5 = "/docs/contract/encodeFunctionResult";
2712
2725
  function encodeFunctionResult({
2713
2726
  abi,
2714
2727
  functionName,
@@ -2718,9 +2731,9 @@ function encodeFunctionResult({
2718
2731
  (x) => "name" in x && x.name === functionName
2719
2732
  );
2720
2733
  if (!description)
2721
- throw new AbiFunctionNotFoundError(functionName, { docsPath: docsPath4 });
2734
+ throw new AbiFunctionNotFoundError(functionName, { docsPath: docsPath5 });
2722
2735
  if (!("outputs" in description))
2723
- throw new AbiFunctionOutputsNotFoundError(functionName, { docsPath: docsPath4 });
2736
+ throw new AbiFunctionOutputsNotFoundError(functionName, { docsPath: docsPath5 });
2724
2737
  let values = Array.isArray(result) ? result : [result];
2725
2738
  if (description.outputs.length === 0 && !values[0])
2726
2739
  values = [];
@@ -3238,14 +3251,14 @@ function getNodeError(err, args) {
3238
3251
 
3239
3252
  // src/utils/errors/getCallError.ts
3240
3253
  function getCallError(err, {
3241
- docsPath: docsPath5,
3254
+ docsPath: docsPath6,
3242
3255
  ...args
3243
3256
  }) {
3244
3257
  let cause = err;
3245
3258
  if (containsNodeError(err))
3246
3259
  cause = getNodeError(err, args);
3247
3260
  return new CallExecutionError(cause, {
3248
- docsPath: docsPath5,
3261
+ docsPath: docsPath6,
3249
3262
  ...args
3250
3263
  });
3251
3264
  }
@@ -3256,7 +3269,7 @@ function getContractError(err, {
3256
3269
  abi,
3257
3270
  address,
3258
3271
  args,
3259
- docsPath: docsPath5,
3272
+ docsPath: docsPath6,
3260
3273
  functionName,
3261
3274
  sender
3262
3275
  }) {
@@ -3276,7 +3289,7 @@ function getContractError(err, {
3276
3289
  abi,
3277
3290
  args,
3278
3291
  contractAddress: address,
3279
- docsPath: docsPath5,
3292
+ docsPath: docsPath6,
3280
3293
  functionName,
3281
3294
  sender
3282
3295
  });
@@ -3284,28 +3297,28 @@ function getContractError(err, {
3284
3297
 
3285
3298
  // src/utils/errors/getEstimateGasError.ts
3286
3299
  function getEstimateGasError(err, {
3287
- docsPath: docsPath5,
3300
+ docsPath: docsPath6,
3288
3301
  ...args
3289
3302
  }) {
3290
3303
  let cause = err;
3291
3304
  if (containsNodeError(err))
3292
3305
  cause = getNodeError(err, args);
3293
3306
  return new EstimateGasExecutionError(cause, {
3294
- docsPath: docsPath5,
3307
+ docsPath: docsPath6,
3295
3308
  ...args
3296
3309
  });
3297
3310
  }
3298
3311
 
3299
3312
  // src/utils/errors/getTransactionError.ts
3300
3313
  function getTransactionError(err, {
3301
- docsPath: docsPath5,
3314
+ docsPath: docsPath6,
3302
3315
  ...args
3303
3316
  }) {
3304
3317
  let cause = err;
3305
3318
  if (containsNodeError(err))
3306
3319
  cause = getNodeError(err, args);
3307
3320
  return new TransactionExecutionError(cause, {
3308
- docsPath: docsPath5,
3321
+ docsPath: docsPath6,
3309
3322
  ...args
3310
3323
  });
3311
3324
  }
@@ -5261,6 +5274,7 @@ export {
5261
5274
  AbiErrorInputsNotFoundError,
5262
5275
  AbiErrorNotFoundError,
5263
5276
  AbiErrorSignatureNotFoundError,
5277
+ AbiEventSignatureEmptyTopicsError,
5264
5278
  AbiEventSignatureNotFoundError,
5265
5279
  AbiEventNotFoundError,
5266
5280
  AbiFunctionNotFoundError,
@@ -5509,4 +5523,4 @@ export {
5509
5523
  formatGwei,
5510
5524
  parseEther
5511
5525
  };
5512
- //# sourceMappingURL=chunk-FC2S2WWT.mjs.map
5526
+ //# sourceMappingURL=chunk-H5XRC6PB.mjs.map