viem 0.1.14 → 0.1.15

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-P5JTF7JS.js → chunk-BDYQ746J.js} +79 -64
  10. package/dist/chunk-BDYQ746J.js.map +1 -0
  11. package/dist/{chunk-S3SV7Y4G.mjs → chunk-CTM2Y4HV.mjs} +78 -63
  12. package/dist/chunk-CTM2Y4HV.mjs.map +1 -0
  13. package/dist/{chunk-TZWWCJQ5.js → chunk-FBE36F5T.js} +19 -19
  14. package/dist/{chunk-KH3WJ45D.mjs → chunk-WUKEVVZO.mjs} +2 -2
  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-P5JTF7JS.js.map +0 -1
  53. package/dist/chunk-S3SV7Y4G.mjs.map +0 -1
  54. /package/dist/{chunk-TZWWCJQ5.js.map → chunk-FBE36F5T.js.map} +0 -0
  55. /package/dist/{chunk-KH3WJ45D.mjs.map → chunk-WUKEVVZO.mjs.map} +0 -0
@@ -17,7 +17,7 @@ var _abitype = require('abitype');
17
17
  var package_default = {
18
18
  name: "viem",
19
19
  description: "TypeScript Interface for Ethereum",
20
- version: "0.1.14",
20
+ version: "0.1.15",
21
21
  scripts: {
22
22
  anvil: "source .env && anvil --fork-url $VITE_ANVIL_FORK_URL --fork-block-number $VITE_ANVIL_BLOCK_NUMBER --block-time $VITE_ANVIL_BLOCK_TIME",
23
23
  bench: "vitest bench --no-threads",
@@ -41,6 +41,7 @@ var package_default = {
41
41
  test: "vitest dev --no-threads",
42
42
  "test:cov": "vitest dev --coverage --no-threads",
43
43
  "test:ci": "CI=true vitest --coverage --no-threads",
44
+ "test:typecheck": "SKIP_GLOBAL_SETUP=true vitest typecheck",
44
45
  "test:ui": "vitest dev --ui --no-threads",
45
46
  "ts-node": "bun",
46
47
  typecheck: "tsc --noEmit"
@@ -208,12 +209,12 @@ var getVersion = () => `${package_default.name}@${package_default.version}`;
208
209
  var BaseError = class extends Error {
209
210
  constructor(shortMessage, args = {}) {
210
211
  const details = args.cause instanceof BaseError ? args.cause.details : _optionalChain([args, 'access', _2 => _2.cause, 'optionalAccess', _3 => _3.message]) ? args.cause.message : args.details;
211
- 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;
212
213
  const message = [
213
214
  shortMessage || "An error occurred.",
214
215
  "",
215
216
  ...args.metaMessages ? [...args.metaMessages, ""] : [],
216
- ...docsPath5 ? [`Docs: https://viem.sh${docsPath5}.html`] : [],
217
+ ...docsPath6 ? [`Docs: https://viem.sh${docsPath6}.html`] : [],
217
218
  ...details ? [`Details: ${details}`] : [],
218
219
  `Version: ${getVersion()}`
219
220
  ].join("\n");
@@ -226,7 +227,7 @@ var BaseError = class extends Error {
226
227
  if (args.cause)
227
228
  this.cause = args.cause;
228
229
  this.details = details;
229
- this.docsPath = docsPath5;
230
+ this.docsPath = docsPath6;
230
231
  this.metaMessages = args.metaMessages;
231
232
  this.shortMessage = shortMessage;
232
233
  }
@@ -234,28 +235,28 @@ var BaseError = class extends Error {
234
235
 
235
236
  // src/errors/abi.ts
236
237
  var AbiConstructorNotFoundError = class extends BaseError {
237
- constructor({ docsPath: docsPath5 }) {
238
+ constructor({ docsPath: docsPath6 }) {
238
239
  super(
239
240
  [
240
241
  "A constructor was not found on the ABI.",
241
242
  "Make sure you are using the correct ABI and that the constructor exists on it."
242
243
  ].join("\n"),
243
244
  {
244
- docsPath: docsPath5
245
+ docsPath: docsPath6
245
246
  }
246
247
  );
247
248
  __publicField(this, "name", "AbiConstructorNotFoundError");
248
249
  }
249
250
  };
250
251
  var AbiConstructorParamsNotFoundError = class extends BaseError {
251
- constructor({ docsPath: docsPath5 }) {
252
+ constructor({ docsPath: docsPath6 }) {
252
253
  super(
253
254
  [
254
255
  "Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.",
255
256
  "Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."
256
257
  ].join("\n"),
257
258
  {
258
- docsPath: docsPath5
259
+ docsPath: docsPath6
259
260
  }
260
261
  );
261
262
  __publicField(this, "name", "AbiConstructorParamsNotFoundError");
@@ -320,7 +321,7 @@ var AbiEncodingLengthMismatchError = class extends BaseError {
320
321
  }
321
322
  };
322
323
  var AbiErrorInputsNotFoundError = class extends BaseError {
323
- constructor(errorName, { docsPath: docsPath5 }) {
324
+ constructor(errorName, { docsPath: docsPath6 }) {
324
325
  super(
325
326
  [
326
327
  `Arguments (\`args\`) were provided to "${errorName}", but "${errorName}" on the ABI does not contain any parameters (\`inputs\`).`,
@@ -328,28 +329,28 @@ var AbiErrorInputsNotFoundError = class extends BaseError {
328
329
  "Make sure you are using the correct ABI and that the inputs exist on it."
329
330
  ].join("\n"),
330
331
  {
331
- docsPath: docsPath5
332
+ docsPath: docsPath6
332
333
  }
333
334
  );
334
335
  __publicField(this, "name", "AbiErrorInputsNotFoundError");
335
336
  }
336
337
  };
337
338
  var AbiErrorNotFoundError = class extends BaseError {
338
- constructor(errorName, { docsPath: docsPath5 }) {
339
+ constructor(errorName, { docsPath: docsPath6 }) {
339
340
  super(
340
341
  [
341
342
  `Error "${errorName}" not found on ABI.`,
342
343
  "Make sure you are using the correct ABI and that the error exists on it."
343
344
  ].join("\n"),
344
345
  {
345
- docsPath: docsPath5
346
+ docsPath: docsPath6
346
347
  }
347
348
  );
348
349
  __publicField(this, "name", "AbiErrorNotFoundError");
349
350
  }
350
351
  };
351
352
  var AbiErrorSignatureNotFoundError = class extends BaseError {
352
- constructor(signature, { docsPath: docsPath5 }) {
353
+ constructor(signature, { docsPath: docsPath6 }) {
353
354
  super(
354
355
  [
355
356
  `Encoded error signature "${signature}" not found on ABI.`,
@@ -357,14 +358,22 @@ var AbiErrorSignatureNotFoundError = class extends BaseError {
357
358
  `You can look up the signature here: https://openchain.xyz/signatures?query=${signature}.`
358
359
  ].join("\n"),
359
360
  {
360
- docsPath: docsPath5
361
+ docsPath: docsPath6
361
362
  }
362
363
  );
363
364
  __publicField(this, "name", "AbiErrorSignatureNotFoundError");
364
365
  }
365
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
+ };
366
375
  var AbiEventSignatureNotFoundError = class extends BaseError {
367
- constructor(signature, { docsPath: docsPath5 }) {
376
+ constructor(signature, { docsPath: docsPath6 }) {
368
377
  super(
369
378
  [
370
379
  `Encoded event signature "${signature}" not found on ABI.`,
@@ -372,42 +381,42 @@ var AbiEventSignatureNotFoundError = class extends BaseError {
372
381
  `You can look up the signature here: https://openchain.xyz/signatures?query=${signature}.`
373
382
  ].join("\n"),
374
383
  {
375
- docsPath: docsPath5
384
+ docsPath: docsPath6
376
385
  }
377
386
  );
378
387
  __publicField(this, "name", "AbiEventSignatureNotFoundError");
379
388
  }
380
389
  };
381
390
  var AbiEventNotFoundError = class extends BaseError {
382
- constructor(eventName, { docsPath: docsPath5 }) {
391
+ constructor(eventName, { docsPath: docsPath6 }) {
383
392
  super(
384
393
  [
385
394
  `Event "${eventName}" not found on ABI.`,
386
395
  "Make sure you are using the correct ABI and that the event exists on it."
387
396
  ].join("\n"),
388
397
  {
389
- docsPath: docsPath5
398
+ docsPath: docsPath6
390
399
  }
391
400
  );
392
401
  __publicField(this, "name", "AbiEventNotFoundError");
393
402
  }
394
403
  };
395
404
  var AbiFunctionNotFoundError = class extends BaseError {
396
- constructor(functionName, { docsPath: docsPath5 }) {
405
+ constructor(functionName, { docsPath: docsPath6 }) {
397
406
  super(
398
407
  [
399
408
  `Function "${functionName}" not found on ABI.`,
400
409
  "Make sure you are using the correct ABI and that the function exists on it."
401
410
  ].join("\n"),
402
411
  {
403
- docsPath: docsPath5
412
+ docsPath: docsPath6
404
413
  }
405
414
  );
406
415
  __publicField(this, "name", "AbiFunctionNotFoundError");
407
416
  }
408
417
  };
409
418
  var AbiFunctionOutputsNotFoundError = class extends BaseError {
410
- constructor(functionName, { docsPath: docsPath5 }) {
419
+ constructor(functionName, { docsPath: docsPath6 }) {
411
420
  super(
412
421
  [
413
422
  `Function "${functionName}" does not contain any \`outputs\` on ABI.`,
@@ -415,14 +424,14 @@ var AbiFunctionOutputsNotFoundError = class extends BaseError {
415
424
  "Make sure you are using the correct ABI and that the function exists on it."
416
425
  ].join("\n"),
417
426
  {
418
- docsPath: docsPath5
427
+ docsPath: docsPath6
419
428
  }
420
429
  );
421
430
  __publicField(this, "name", "AbiFunctionOutputsNotFoundError");
422
431
  }
423
432
  };
424
433
  var AbiFunctionSignatureNotFoundError = class extends BaseError {
425
- constructor(signature, { docsPath: docsPath5 }) {
434
+ constructor(signature, { docsPath: docsPath6 }) {
426
435
  super(
427
436
  [
428
437
  `Encoded function signature "${signature}" not found on ABI.`,
@@ -430,7 +439,7 @@ var AbiFunctionSignatureNotFoundError = class extends BaseError {
430
439
  `You can look up the signature here: https://openchain.xyz/signatures?query=${signature}.`
431
440
  ].join("\n"),
432
441
  {
433
- docsPath: docsPath5
442
+ docsPath: docsPath6
434
443
  }
435
444
  );
436
445
  __publicField(this, "name", "AbiFunctionSignatureNotFoundError");
@@ -459,25 +468,25 @@ var DecodeLogTopicsMismatch = class extends BaseError {
459
468
  }
460
469
  };
461
470
  var InvalidAbiEncodingTypeError = class extends BaseError {
462
- constructor(type, { docsPath: docsPath5 }) {
471
+ constructor(type, { docsPath: docsPath6 }) {
463
472
  super(
464
473
  [
465
474
  `Type "${type}" is not a valid encoding type.`,
466
475
  "Please provide a valid ABI type."
467
476
  ].join("\n"),
468
- { docsPath: docsPath5 }
477
+ { docsPath: docsPath6 }
469
478
  );
470
479
  __publicField(this, "name", "InvalidAbiEncodingType");
471
480
  }
472
481
  };
473
482
  var InvalidAbiDecodingTypeError = class extends BaseError {
474
- constructor(type, { docsPath: docsPath5 }) {
483
+ constructor(type, { docsPath: docsPath6 }) {
475
484
  super(
476
485
  [
477
486
  `Type "${type}" is not a valid decoding type.`,
478
487
  "Please provide a valid ABI type."
479
488
  ].join("\n"),
480
- { docsPath: docsPath5 }
489
+ { docsPath: docsPath6 }
481
490
  );
482
491
  __publicField(this, "name", "InvalidAbiDecodingType");
483
492
  }
@@ -687,7 +696,7 @@ var FeeConflictError = class extends BaseError {
687
696
  var TransactionExecutionError = class extends BaseError {
688
697
  constructor(cause, {
689
698
  account,
690
- docsPath: docsPath5,
699
+ docsPath: docsPath6,
691
700
  chain,
692
701
  data,
693
702
  gas,
@@ -712,7 +721,7 @@ var TransactionExecutionError = class extends BaseError {
712
721
  });
713
722
  super(cause.shortMessage, {
714
723
  cause,
715
- docsPath: docsPath5,
724
+ docsPath: docsPath6,
716
725
  metaMessages: [
717
726
  ...cause.metaMessages ? [...cause.metaMessages, " "] : [],
718
727
  "Request Arguments:",
@@ -766,7 +775,7 @@ var WaitForTransactionReceiptTimeoutError = class extends BaseError {
766
775
  var CallExecutionError = class extends BaseError {
767
776
  constructor(cause, {
768
777
  account,
769
- docsPath: docsPath5,
778
+ docsPath: docsPath6,
770
779
  chain,
771
780
  data,
772
781
  gas,
@@ -790,7 +799,7 @@ var CallExecutionError = class extends BaseError {
790
799
  });
791
800
  super(cause.shortMessage, {
792
801
  cause,
793
- docsPath: docsPath5,
802
+ docsPath: docsPath6,
794
803
  metaMessages: [
795
804
  ...cause.metaMessages ? [...cause.metaMessages, " "] : [],
796
805
  "Raw Call Arguments:",
@@ -807,7 +816,7 @@ var ContractFunctionExecutionError = class extends BaseError {
807
816
  abi,
808
817
  args,
809
818
  contractAddress,
810
- docsPath: docsPath5,
819
+ docsPath: docsPath6,
811
820
  functionName,
812
821
  sender
813
822
  }) {
@@ -829,7 +838,7 @@ var ContractFunctionExecutionError = class extends BaseError {
829
838
  cause.shortMessage || `An unknown error occurred while executing the contract function "${functionName}".`,
830
839
  {
831
840
  cause,
832
- docsPath: docsPath5,
841
+ docsPath: docsPath6,
833
842
  metaMessages: [
834
843
  ...cause.metaMessages ? [...cause.metaMessages, " "] : [],
835
844
  "Contract Call:",
@@ -1007,7 +1016,7 @@ var OffsetOutOfBoundsError = class extends BaseError {
1007
1016
  var EstimateGasExecutionError = class extends BaseError {
1008
1017
  constructor(cause, {
1009
1018
  account,
1010
- docsPath: docsPath5,
1019
+ docsPath: docsPath6,
1011
1020
  chain,
1012
1021
  data,
1013
1022
  gas,
@@ -1031,7 +1040,7 @@ var EstimateGasExecutionError = class extends BaseError {
1031
1040
  });
1032
1041
  super(cause.shortMessage, {
1033
1042
  cause,
1034
- docsPath: docsPath5,
1043
+ docsPath: docsPath6,
1035
1044
  metaMessages: [
1036
1045
  ...cause.metaMessages ? [...cause.metaMessages, " "] : [],
1037
1046
  "Estimate Gas Arguments:",
@@ -1220,21 +1229,21 @@ var UnknownNodeError = class extends BaseError {
1220
1229
  // src/errors/request.ts
1221
1230
  var RequestError = class extends BaseError {
1222
1231
  constructor(err, {
1223
- docsPath: docsPath5,
1232
+ docsPath: docsPath6,
1224
1233
  metaMessages,
1225
1234
  shortMessage
1226
1235
  }) {
1227
1236
  super(shortMessage, {
1228
1237
  cause: err,
1229
- docsPath: docsPath5,
1238
+ docsPath: docsPath6,
1230
1239
  metaMessages
1231
1240
  });
1232
1241
  this.name = err.name;
1233
1242
  }
1234
1243
  };
1235
1244
  var RpcRequestError = class extends RequestError {
1236
- constructor(err, { docsPath: docsPath5, shortMessage }) {
1237
- super(err, { docsPath: docsPath5, metaMessages: err.metaMessages, shortMessage });
1245
+ constructor(err, { docsPath: docsPath6, shortMessage }) {
1246
+ super(err, { docsPath: docsPath6, metaMessages: err.metaMessages, shortMessage });
1238
1247
  __publicField(this, "code");
1239
1248
  this.code = err.code;
1240
1249
  this.name = err.name;
@@ -2427,18 +2436,23 @@ function decodeErrorResult({
2427
2436
  }
2428
2437
 
2429
2438
  // src/utils/abi/decodeEventLog.ts
2439
+ var docsPath = "/docs/contract/decodeEventLog";
2430
2440
  function decodeEventLog({
2431
2441
  abi,
2432
2442
  data,
2433
2443
  topics
2434
2444
  }) {
2435
2445
  const [signature, ...argTopics] = topics;
2446
+ if (!signature)
2447
+ throw new AbiEventSignatureEmptyTopicsError({
2448
+ docsPath
2449
+ });
2436
2450
  const abiItem = abi.find(
2437
2451
  (x) => x.type === "event" && signature === getEventSelector(formatAbiItem(x))
2438
2452
  );
2439
2453
  if (!(abiItem && "name" in abiItem))
2440
2454
  throw new AbiEventSignatureNotFoundError(signature, {
2441
- docsPath: "/docs/contract/decodeEventLog"
2455
+ docsPath
2442
2456
  });
2443
2457
  const { name, inputs } = abiItem;
2444
2458
  const isUnnamed = _optionalChain([inputs, 'optionalAccess', _35 => _35.some, 'call', _36 => _36((x) => !("name" in x && x.name))]);
@@ -2577,7 +2591,7 @@ function isArgOfType(arg, abiParameter) {
2577
2591
  }
2578
2592
 
2579
2593
  // src/utils/abi/decodeFunctionResult.ts
2580
- var docsPath = "/docs/contract/decodeFunctionResult";
2594
+ var docsPath2 = "/docs/contract/decodeFunctionResult";
2581
2595
  function decodeFunctionResult({
2582
2596
  abi,
2583
2597
  args,
@@ -2590,9 +2604,9 @@ function decodeFunctionResult({
2590
2604
  name: functionName
2591
2605
  });
2592
2606
  if (!description)
2593
- throw new AbiFunctionNotFoundError(functionName, { docsPath });
2607
+ throw new AbiFunctionNotFoundError(functionName, { docsPath: docsPath2 });
2594
2608
  if (!("outputs" in description))
2595
- throw new AbiFunctionOutputsNotFoundError(functionName, { docsPath });
2609
+ throw new AbiFunctionOutputsNotFoundError(functionName, { docsPath: docsPath2 });
2596
2610
  const values = decodeAbiParameters(description.outputs, data);
2597
2611
  if (values && values.length > 1)
2598
2612
  return values;
@@ -2602,7 +2616,7 @@ function decodeFunctionResult({
2602
2616
  }
2603
2617
 
2604
2618
  // src/utils/abi/encodeDeployData.ts
2605
- var docsPath2 = "/docs/contract/encodeDeployData";
2619
+ var docsPath3 = "/docs/contract/encodeDeployData";
2606
2620
  function encodeDeployData({
2607
2621
  abi,
2608
2622
  args,
@@ -2614,11 +2628,11 @@ function encodeDeployData({
2614
2628
  (x) => "type" in x && x.type === "constructor"
2615
2629
  );
2616
2630
  if (!description)
2617
- throw new AbiConstructorNotFoundError({ docsPath: docsPath2 });
2631
+ throw new AbiConstructorNotFoundError({ docsPath: docsPath3 });
2618
2632
  if (!("inputs" in description))
2619
- throw new AbiConstructorParamsNotFoundError({ docsPath: docsPath2 });
2633
+ throw new AbiConstructorParamsNotFoundError({ docsPath: docsPath3 });
2620
2634
  if (!description.inputs || description.inputs.length === 0)
2621
- throw new AbiConstructorParamsNotFoundError({ docsPath: docsPath2 });
2635
+ throw new AbiConstructorParamsNotFoundError({ docsPath: docsPath3 });
2622
2636
  const data = encodeAbiParameters(
2623
2637
  description.inputs,
2624
2638
  args
@@ -2627,7 +2641,7 @@ function encodeDeployData({
2627
2641
  }
2628
2642
 
2629
2643
  // src/utils/abi/encodeErrorResult.ts
2630
- var docsPath3 = "/docs/contract/encodeErrorResult";
2644
+ var docsPath4 = "/docs/contract/encodeErrorResult";
2631
2645
  function encodeErrorResult({ abi, errorName, args }) {
2632
2646
  const description = getAbiItem({
2633
2647
  abi,
@@ -2635,13 +2649,13 @@ function encodeErrorResult({ abi, errorName, args }) {
2635
2649
  name: errorName
2636
2650
  });
2637
2651
  if (!description)
2638
- throw new AbiErrorNotFoundError(errorName, { docsPath: docsPath3 });
2652
+ throw new AbiErrorNotFoundError(errorName, { docsPath: docsPath4 });
2639
2653
  const definition = formatAbiItem(description);
2640
2654
  const signature = getFunctionSelector(definition);
2641
2655
  let data = "0x";
2642
2656
  if (args && args.length > 0) {
2643
2657
  if (!("inputs" in description && description.inputs))
2644
- throw new AbiErrorInputsNotFoundError(errorName, { docsPath: docsPath3 });
2658
+ throw new AbiErrorInputsNotFoundError(errorName, { docsPath: docsPath4 });
2645
2659
  data = encodeAbiParameters(description.inputs, args);
2646
2660
  }
2647
2661
  return concatHex([signature, data]);
@@ -2707,7 +2721,7 @@ function encodeFunctionData({
2707
2721
  }
2708
2722
 
2709
2723
  // src/utils/abi/encodeFunctionResult.ts
2710
- var docsPath4 = "/docs/contract/encodeFunctionResult";
2724
+ var docsPath5 = "/docs/contract/encodeFunctionResult";
2711
2725
  function encodeFunctionResult({
2712
2726
  abi,
2713
2727
  functionName,
@@ -2717,9 +2731,9 @@ function encodeFunctionResult({
2717
2731
  (x) => "name" in x && x.name === functionName
2718
2732
  );
2719
2733
  if (!description)
2720
- throw new AbiFunctionNotFoundError(functionName, { docsPath: docsPath4 });
2734
+ throw new AbiFunctionNotFoundError(functionName, { docsPath: docsPath5 });
2721
2735
  if (!("outputs" in description))
2722
- throw new AbiFunctionOutputsNotFoundError(functionName, { docsPath: docsPath4 });
2736
+ throw new AbiFunctionOutputsNotFoundError(functionName, { docsPath: docsPath5 });
2723
2737
  let values = Array.isArray(result) ? result : [result];
2724
2738
  if (description.outputs.length === 0 && !values[0])
2725
2739
  values = [];
@@ -3237,14 +3251,14 @@ function getNodeError(err, args) {
3237
3251
 
3238
3252
  // src/utils/errors/getCallError.ts
3239
3253
  function getCallError(err, {
3240
- docsPath: docsPath5,
3254
+ docsPath: docsPath6,
3241
3255
  ...args
3242
3256
  }) {
3243
3257
  let cause = err;
3244
3258
  if (containsNodeError(err))
3245
3259
  cause = getNodeError(err, args);
3246
3260
  return new CallExecutionError(cause, {
3247
- docsPath: docsPath5,
3261
+ docsPath: docsPath6,
3248
3262
  ...args
3249
3263
  });
3250
3264
  }
@@ -3255,7 +3269,7 @@ function getContractError(err, {
3255
3269
  abi,
3256
3270
  address,
3257
3271
  args,
3258
- docsPath: docsPath5,
3272
+ docsPath: docsPath6,
3259
3273
  functionName,
3260
3274
  sender
3261
3275
  }) {
@@ -3275,7 +3289,7 @@ function getContractError(err, {
3275
3289
  abi,
3276
3290
  args,
3277
3291
  contractAddress: address,
3278
- docsPath: docsPath5,
3292
+ docsPath: docsPath6,
3279
3293
  functionName,
3280
3294
  sender
3281
3295
  });
@@ -3283,28 +3297,28 @@ function getContractError(err, {
3283
3297
 
3284
3298
  // src/utils/errors/getEstimateGasError.ts
3285
3299
  function getEstimateGasError(err, {
3286
- docsPath: docsPath5,
3300
+ docsPath: docsPath6,
3287
3301
  ...args
3288
3302
  }) {
3289
3303
  let cause = err;
3290
3304
  if (containsNodeError(err))
3291
3305
  cause = getNodeError(err, args);
3292
3306
  return new EstimateGasExecutionError(cause, {
3293
- docsPath: docsPath5,
3307
+ docsPath: docsPath6,
3294
3308
  ...args
3295
3309
  });
3296
3310
  }
3297
3311
 
3298
3312
  // src/utils/errors/getTransactionError.ts
3299
3313
  function getTransactionError(err, {
3300
- docsPath: docsPath5,
3314
+ docsPath: docsPath6,
3301
3315
  ...args
3302
3316
  }) {
3303
3317
  let cause = err;
3304
3318
  if (containsNodeError(err))
3305
3319
  cause = getNodeError(err, args);
3306
3320
  return new TransactionExecutionError(cause, {
3307
- docsPath: docsPath5,
3321
+ docsPath: docsPath6,
3308
3322
  ...args
3309
3323
  });
3310
3324
  }
@@ -5507,5 +5521,6 @@ function parseEther(ether, unit = "wei") {
5507
5521
 
5508
5522
 
5509
5523
 
5510
- exports.BaseError = BaseError; exports.AbiConstructorNotFoundError = AbiConstructorNotFoundError; exports.AbiConstructorParamsNotFoundError = AbiConstructorParamsNotFoundError; exports.AbiDecodingDataSizeInvalidError = AbiDecodingDataSizeInvalidError; exports.AbiDecodingZeroDataError = AbiDecodingZeroDataError; exports.AbiEncodingArrayLengthMismatchError = AbiEncodingArrayLengthMismatchError; exports.AbiEncodingLengthMismatchError = AbiEncodingLengthMismatchError; exports.AbiErrorInputsNotFoundError = AbiErrorInputsNotFoundError; exports.AbiErrorNotFoundError = AbiErrorNotFoundError; exports.AbiErrorSignatureNotFoundError = AbiErrorSignatureNotFoundError; exports.AbiEventSignatureNotFoundError = AbiEventSignatureNotFoundError; exports.AbiEventNotFoundError = AbiEventNotFoundError; exports.AbiFunctionNotFoundError = AbiFunctionNotFoundError; exports.AbiFunctionOutputsNotFoundError = AbiFunctionOutputsNotFoundError; exports.AbiFunctionSignatureNotFoundError = AbiFunctionSignatureNotFoundError; exports.DecodeLogTopicsMismatch = DecodeLogTopicsMismatch; exports.InvalidAbiEncodingTypeError = InvalidAbiEncodingTypeError; exports.InvalidAbiDecodingTypeError = InvalidAbiDecodingTypeError; exports.InvalidArrayError = InvalidArrayError; exports.InvalidDefinitionTypeError = InvalidDefinitionTypeError; exports.InvalidAddressError = InvalidAddressError; exports.BlockNotFoundError = BlockNotFoundError; exports.ChainDoesNotSupportContract = ChainDoesNotSupportContract; exports.multicall3Abi = multicall3Abi; exports.panicReasons = panicReasons; exports.etherUnits = etherUnits; exports.gweiUnits = gweiUnits; exports.weiUnits = weiUnits; exports.TransactionExecutionError = TransactionExecutionError; exports.TransactionNotFoundError = TransactionNotFoundError; exports.TransactionReceiptNotFoundError = TransactionReceiptNotFoundError; exports.WaitForTransactionReceiptTimeoutError = WaitForTransactionReceiptTimeoutError; exports.CallExecutionError = CallExecutionError; exports.ContractFunctionExecutionError = ContractFunctionExecutionError; exports.ContractFunctionRevertedError = ContractFunctionRevertedError; exports.ContractFunctionZeroDataError = ContractFunctionZeroDataError; exports.RawContractError = RawContractError; exports.SizeExceedsPaddingSizeError = SizeExceedsPaddingSizeError; exports.DataLengthTooLongError = DataLengthTooLongError; exports.DataLengthTooShortError = DataLengthTooShortError; exports.InvalidBytesBooleanError = InvalidBytesBooleanError; exports.InvalidHexBooleanError = InvalidHexBooleanError; exports.InvalidHexValueError = InvalidHexValueError; exports.OffsetOutOfBoundsError = OffsetOutOfBoundsError; exports.EstimateGasExecutionError = EstimateGasExecutionError; exports.FilterTypeNotSupportedError = FilterTypeNotSupportedError; exports.ExecutionRevertedError = ExecutionRevertedError; exports.FeeCapTooHighError = FeeCapTooHighError; exports.FeeCapTooLowError = FeeCapTooLowError; exports.NonceTooHighError = NonceTooHighError; exports.NonceTooLowError = NonceTooLowError; exports.NonceMaxValueError = NonceMaxValueError; exports.InsufficientFundsError = InsufficientFundsError; exports.IntrinsicGasTooHighError = IntrinsicGasTooHighError; exports.IntrinsicGasTooLowError = IntrinsicGasTooLowError; exports.TransactionTypeNotSupportedError = TransactionTypeNotSupportedError; exports.TipAboveFeeCapError = TipAboveFeeCapError; exports.UnknownNodeError = UnknownNodeError; exports.RequestError = RequestError; exports.RpcRequestError = RpcRequestError; exports.ParseRpcError = ParseRpcError; exports.InvalidRequestRpcError = InvalidRequestRpcError; exports.MethodNotFoundRpcError = MethodNotFoundRpcError; exports.InvalidParamsRpcError = InvalidParamsRpcError; exports.InternalRpcError = InternalRpcError; exports.InvalidInputRpcError = InvalidInputRpcError; exports.ResourceNotFoundRpcError = ResourceNotFoundRpcError; exports.ResourceUnavailableRpcError = ResourceUnavailableRpcError; exports.TransactionRejectedRpcError = TransactionRejectedRpcError; exports.MethodNotSupportedRpcError = MethodNotSupportedRpcError; exports.LimitExceededRpcError = LimitExceededRpcError; exports.JsonRpcVersionUnsupportedError = JsonRpcVersionUnsupportedError; exports.UserRejectedRequestError = UserRejectedRequestError; exports.SwitchChainError = SwitchChainError; exports.UnknownRpcError = UnknownRpcError; exports.HttpRequestError = HttpRequestError; exports.WebSocketRequestError = WebSocketRequestError; exports.RpcError = RpcError; exports.TimeoutError = TimeoutError; exports.UrlRequiredError = UrlRequiredError; exports.concat = concat; exports.concatBytes = concatBytes; exports.concatHex = concatHex; exports.isBytes = isBytes; exports.isHex = isHex; exports.pad = pad; exports.padHex = padHex; exports.padBytes = padBytes; exports.trim = trim; exports.size = size; exports.slice = slice; exports.sliceBytes = sliceBytes; exports.sliceHex = sliceHex; exports.boolToHex = boolToHex; exports.bytesToHex = bytesToHex; exports.toHex = toHex; exports.numberToHex = numberToHex; exports.stringToHex = stringToHex; exports.toBytes = toBytes; exports.boolToBytes = boolToBytes; exports.hexToBytes = hexToBytes; exports.numberToBytes = numberToBytes; exports.stringToBytes = stringToBytes; exports.toRlp = toRlp; exports.fromHex = fromHex; exports.hexToBigInt = hexToBigInt; exports.hexToBool = hexToBool; exports.hexToNumber = hexToNumber; exports.hexToString = hexToString; exports.fromBytes = fromBytes; exports.bytesToBigint = bytesToBigint; exports.bytesToBool = bytesToBool; exports.bytesToNumber = bytesToNumber; exports.bytesToString = bytesToString; exports.fromRlp = fromRlp; exports.extractFunctionParts = extractFunctionParts; exports.extractFunctionName = extractFunctionName; exports.extractFunctionParams = extractFunctionParams; exports.extractFunctionType = extractFunctionType; exports.keccak256 = keccak256; exports.getEventSelector = getEventSelector; exports.getFunctionSelector = getFunctionSelector; exports.isAddress = isAddress; exports.getAddress = getAddress; exports.getContractAddress = getContractAddress2; exports.getCreateAddress = getCreateAddress; exports.getCreate2Address = getCreate2Address; exports.isAddressEqual = isAddressEqual; exports.encodeAbiParameters = encodeAbiParameters; exports.decodeAbiParameters = decodeAbiParameters; exports.formatAbiItem = formatAbiItem; exports.decodeErrorResult = decodeErrorResult; exports.decodeEventLog = decodeEventLog; exports.decodeFunctionData = decodeFunctionData; exports.getAbiItem = getAbiItem; exports.decodeFunctionResult = decodeFunctionResult; exports.encodeDeployData = encodeDeployData; exports.encodeErrorResult = encodeErrorResult; exports.encodeEventTopics = encodeEventTopics; exports.encodeFunctionData = encodeFunctionData; exports.encodeFunctionResult = encodeFunctionResult; exports.arrayRegex = arrayRegex; exports.bytesRegex = bytesRegex; exports.integerRegex = integerRegex; exports.encodePacked = encodePacked; exports.formatAbiItemWithArgs = formatAbiItemWithArgs; exports.parseAbi = _abitype.parseAbi; exports.parseAbiItem = _abitype.parseAbiItem; exports.parseAbiParameter = _abitype.parseAbiParameter; exports.parseAbiParameters = _abitype.parseAbiParameters; exports.getAccount = getAccount; exports.isDeterministicError = isDeterministicError; exports.buildRequest = buildRequest; exports.defineChain = defineChain; exports.getChainContractAddress = getChainContractAddress; exports.format = format3; exports.defineFormatter = defineFormatter; exports.transactionType = transactionType; exports.formatTransaction = formatTransaction; exports.defineTransaction = defineTransaction; exports.formatBlock = formatBlock; exports.defineBlock = defineBlock; exports.extract = extract; exports.defineTransactionReceipt = defineTransactionReceipt; exports.formatTransactionRequest = formatTransactionRequest; exports.defineTransactionRequest = defineTransactionRequest; exports.containsNodeError = containsNodeError; exports.getNodeError = getNodeError; exports.getCallError = getCallError; exports.getContractError = getContractError; exports.getEstimateGasError = getEstimateGasError; exports.getTransactionError = getTransactionError; exports.stringify = stringify; exports.getSocket = getSocket; exports.rpc = rpc; exports.assertRequest = assertRequest; exports.call = call; exports.simulateContract = simulateContract; exports.createPendingTransactionFilter = createPendingTransactionFilter; exports.createBlockFilter = createBlockFilter; exports.createEventFilter = createEventFilter; exports.createContractEventFilter = createContractEventFilter; exports.estimateGas = estimateGas; exports.estimateContractGas = estimateContractGas; exports.getBalance = getBalance; exports.getBlock = getBlock; exports.getBlockNumberCache = getBlockNumberCache; exports.getBlockNumber = getBlockNumber; exports.getBlockTransactionCount = getBlockTransactionCount; exports.getBytecode = getBytecode; exports.getChainId = getChainId; exports.getFeeHistory = getFeeHistory; exports.getFilterChanges = getFilterChanges; exports.getFilterLogs = getFilterLogs; exports.getGasPrice = getGasPrice; exports.getLogs = getLogs; exports.getStorageAt = getStorageAt; exports.getTransaction = getTransaction; exports.getTransactionConfirmations = getTransactionConfirmations; exports.getTransactionCount = getTransactionCount; exports.getTransactionReceipt = getTransactionReceipt; exports.readContract = readContract; exports.multicall = multicall; exports.uninstallFilter = uninstallFilter; exports.waitForTransactionReceipt = waitForTransactionReceipt; exports.watchBlockNumber = watchBlockNumber; exports.watchBlocks = watchBlocks; exports.watchContractEvent = watchContractEvent; exports.watchEvent = watchEvent; exports.watchPendingTransactions = watchPendingTransactions; exports.dropTransaction = dropTransaction; exports.getAutomine = getAutomine; exports.getTxpoolContent = getTxpoolContent; exports.getTxpoolStatus = getTxpoolStatus; exports.impersonateAccount = impersonateAccount; exports.increaseTime = increaseTime; exports.inspectTxpool = inspectTxpool; exports.mine = mine; exports.removeBlockTimestampInterval = removeBlockTimestampInterval; exports.reset = reset; exports.revert = revert; exports.sendUnsignedTransaction = sendUnsignedTransaction; exports.setAutomine = setAutomine; exports.setBalance = setBalance; exports.setBlockGasLimit = setBlockGasLimit; exports.setBlockTimestampInterval = setBlockTimestampInterval; exports.setCode = setCode; exports.setCoinbase = setCoinbase; exports.setIntervalMining = setIntervalMining; exports.setLoggingEnabled = setLoggingEnabled; exports.setMinGasPrice = setMinGasPrice; exports.setNextBlockBaseFeePerGas = setNextBlockBaseFeePerGas; exports.setNextBlockTimestamp = setNextBlockTimestamp; exports.setNonce = setNonce; exports.setRpcUrl = setRpcUrl; exports.setStorageAt = setStorageAt; exports.snapshot = snapshot; exports.stopImpersonatingAccount = stopImpersonatingAccount; exports.addChain = addChain; exports.deployContract = deployContract; exports.getAddresses = getAddresses; exports.getPermissions = getPermissions; exports.requestAddresses = requestAddresses; exports.requestPermissions = requestPermissions; exports.sendTransaction = sendTransaction; exports.signMessage = signMessage; exports.signTypedData = signTypedData; exports.switchChain = switchChain; exports.watchAsset = watchAsset; exports.writeContract = writeContract; exports.parseUnits = parseUnits; exports.parseGwei = parseGwei; exports.prepareRequest = prepareRequest; exports.formatUnits = formatUnits; exports.formatEther = formatEther; exports.formatGwei = formatGwei; exports.parseEther = parseEther;
5511
- //# sourceMappingURL=chunk-P5JTF7JS.js.map
5524
+
5525
+ exports.BaseError = BaseError; exports.AbiConstructorNotFoundError = AbiConstructorNotFoundError; exports.AbiConstructorParamsNotFoundError = AbiConstructorParamsNotFoundError; exports.AbiDecodingDataSizeInvalidError = AbiDecodingDataSizeInvalidError; exports.AbiDecodingZeroDataError = AbiDecodingZeroDataError; exports.AbiEncodingArrayLengthMismatchError = AbiEncodingArrayLengthMismatchError; exports.AbiEncodingLengthMismatchError = AbiEncodingLengthMismatchError; exports.AbiErrorInputsNotFoundError = AbiErrorInputsNotFoundError; exports.AbiErrorNotFoundError = AbiErrorNotFoundError; exports.AbiErrorSignatureNotFoundError = AbiErrorSignatureNotFoundError; exports.AbiEventSignatureEmptyTopicsError = AbiEventSignatureEmptyTopicsError; exports.AbiEventSignatureNotFoundError = AbiEventSignatureNotFoundError; exports.AbiEventNotFoundError = AbiEventNotFoundError; exports.AbiFunctionNotFoundError = AbiFunctionNotFoundError; exports.AbiFunctionOutputsNotFoundError = AbiFunctionOutputsNotFoundError; exports.AbiFunctionSignatureNotFoundError = AbiFunctionSignatureNotFoundError; exports.DecodeLogTopicsMismatch = DecodeLogTopicsMismatch; exports.InvalidAbiEncodingTypeError = InvalidAbiEncodingTypeError; exports.InvalidAbiDecodingTypeError = InvalidAbiDecodingTypeError; exports.InvalidArrayError = InvalidArrayError; exports.InvalidDefinitionTypeError = InvalidDefinitionTypeError; exports.InvalidAddressError = InvalidAddressError; exports.BlockNotFoundError = BlockNotFoundError; exports.ChainDoesNotSupportContract = ChainDoesNotSupportContract; exports.multicall3Abi = multicall3Abi; exports.panicReasons = panicReasons; exports.etherUnits = etherUnits; exports.gweiUnits = gweiUnits; exports.weiUnits = weiUnits; exports.TransactionExecutionError = TransactionExecutionError; exports.TransactionNotFoundError = TransactionNotFoundError; exports.TransactionReceiptNotFoundError = TransactionReceiptNotFoundError; exports.WaitForTransactionReceiptTimeoutError = WaitForTransactionReceiptTimeoutError; exports.CallExecutionError = CallExecutionError; exports.ContractFunctionExecutionError = ContractFunctionExecutionError; exports.ContractFunctionRevertedError = ContractFunctionRevertedError; exports.ContractFunctionZeroDataError = ContractFunctionZeroDataError; exports.RawContractError = RawContractError; exports.SizeExceedsPaddingSizeError = SizeExceedsPaddingSizeError; exports.DataLengthTooLongError = DataLengthTooLongError; exports.DataLengthTooShortError = DataLengthTooShortError; exports.InvalidBytesBooleanError = InvalidBytesBooleanError; exports.InvalidHexBooleanError = InvalidHexBooleanError; exports.InvalidHexValueError = InvalidHexValueError; exports.OffsetOutOfBoundsError = OffsetOutOfBoundsError; exports.EstimateGasExecutionError = EstimateGasExecutionError; exports.FilterTypeNotSupportedError = FilterTypeNotSupportedError; exports.ExecutionRevertedError = ExecutionRevertedError; exports.FeeCapTooHighError = FeeCapTooHighError; exports.FeeCapTooLowError = FeeCapTooLowError; exports.NonceTooHighError = NonceTooHighError; exports.NonceTooLowError = NonceTooLowError; exports.NonceMaxValueError = NonceMaxValueError; exports.InsufficientFundsError = InsufficientFundsError; exports.IntrinsicGasTooHighError = IntrinsicGasTooHighError; exports.IntrinsicGasTooLowError = IntrinsicGasTooLowError; exports.TransactionTypeNotSupportedError = TransactionTypeNotSupportedError; exports.TipAboveFeeCapError = TipAboveFeeCapError; exports.UnknownNodeError = UnknownNodeError; exports.RequestError = RequestError; exports.RpcRequestError = RpcRequestError; exports.ParseRpcError = ParseRpcError; exports.InvalidRequestRpcError = InvalidRequestRpcError; exports.MethodNotFoundRpcError = MethodNotFoundRpcError; exports.InvalidParamsRpcError = InvalidParamsRpcError; exports.InternalRpcError = InternalRpcError; exports.InvalidInputRpcError = InvalidInputRpcError; exports.ResourceNotFoundRpcError = ResourceNotFoundRpcError; exports.ResourceUnavailableRpcError = ResourceUnavailableRpcError; exports.TransactionRejectedRpcError = TransactionRejectedRpcError; exports.MethodNotSupportedRpcError = MethodNotSupportedRpcError; exports.LimitExceededRpcError = LimitExceededRpcError; exports.JsonRpcVersionUnsupportedError = JsonRpcVersionUnsupportedError; exports.UserRejectedRequestError = UserRejectedRequestError; exports.SwitchChainError = SwitchChainError; exports.UnknownRpcError = UnknownRpcError; exports.HttpRequestError = HttpRequestError; exports.WebSocketRequestError = WebSocketRequestError; exports.RpcError = RpcError; exports.TimeoutError = TimeoutError; exports.UrlRequiredError = UrlRequiredError; exports.concat = concat; exports.concatBytes = concatBytes; exports.concatHex = concatHex; exports.isBytes = isBytes; exports.isHex = isHex; exports.pad = pad; exports.padHex = padHex; exports.padBytes = padBytes; exports.trim = trim; exports.size = size; exports.slice = slice; exports.sliceBytes = sliceBytes; exports.sliceHex = sliceHex; exports.boolToHex = boolToHex; exports.bytesToHex = bytesToHex; exports.toHex = toHex; exports.numberToHex = numberToHex; exports.stringToHex = stringToHex; exports.toBytes = toBytes; exports.boolToBytes = boolToBytes; exports.hexToBytes = hexToBytes; exports.numberToBytes = numberToBytes; exports.stringToBytes = stringToBytes; exports.toRlp = toRlp; exports.fromHex = fromHex; exports.hexToBigInt = hexToBigInt; exports.hexToBool = hexToBool; exports.hexToNumber = hexToNumber; exports.hexToString = hexToString; exports.fromBytes = fromBytes; exports.bytesToBigint = bytesToBigint; exports.bytesToBool = bytesToBool; exports.bytesToNumber = bytesToNumber; exports.bytesToString = bytesToString; exports.fromRlp = fromRlp; exports.extractFunctionParts = extractFunctionParts; exports.extractFunctionName = extractFunctionName; exports.extractFunctionParams = extractFunctionParams; exports.extractFunctionType = extractFunctionType; exports.keccak256 = keccak256; exports.getEventSelector = getEventSelector; exports.getFunctionSelector = getFunctionSelector; exports.isAddress = isAddress; exports.getAddress = getAddress; exports.getContractAddress = getContractAddress2; exports.getCreateAddress = getCreateAddress; exports.getCreate2Address = getCreate2Address; exports.isAddressEqual = isAddressEqual; exports.encodeAbiParameters = encodeAbiParameters; exports.decodeAbiParameters = decodeAbiParameters; exports.formatAbiItem = formatAbiItem; exports.decodeErrorResult = decodeErrorResult; exports.decodeEventLog = decodeEventLog; exports.decodeFunctionData = decodeFunctionData; exports.getAbiItem = getAbiItem; exports.decodeFunctionResult = decodeFunctionResult; exports.encodeDeployData = encodeDeployData; exports.encodeErrorResult = encodeErrorResult; exports.encodeEventTopics = encodeEventTopics; exports.encodeFunctionData = encodeFunctionData; exports.encodeFunctionResult = encodeFunctionResult; exports.arrayRegex = arrayRegex; exports.bytesRegex = bytesRegex; exports.integerRegex = integerRegex; exports.encodePacked = encodePacked; exports.formatAbiItemWithArgs = formatAbiItemWithArgs; exports.parseAbi = _abitype.parseAbi; exports.parseAbiItem = _abitype.parseAbiItem; exports.parseAbiParameter = _abitype.parseAbiParameter; exports.parseAbiParameters = _abitype.parseAbiParameters; exports.getAccount = getAccount; exports.isDeterministicError = isDeterministicError; exports.buildRequest = buildRequest; exports.defineChain = defineChain; exports.getChainContractAddress = getChainContractAddress; exports.format = format3; exports.defineFormatter = defineFormatter; exports.transactionType = transactionType; exports.formatTransaction = formatTransaction; exports.defineTransaction = defineTransaction; exports.formatBlock = formatBlock; exports.defineBlock = defineBlock; exports.extract = extract; exports.defineTransactionReceipt = defineTransactionReceipt; exports.formatTransactionRequest = formatTransactionRequest; exports.defineTransactionRequest = defineTransactionRequest; exports.containsNodeError = containsNodeError; exports.getNodeError = getNodeError; exports.getCallError = getCallError; exports.getContractError = getContractError; exports.getEstimateGasError = getEstimateGasError; exports.getTransactionError = getTransactionError; exports.stringify = stringify; exports.getSocket = getSocket; exports.rpc = rpc; exports.assertRequest = assertRequest; exports.call = call; exports.simulateContract = simulateContract; exports.createPendingTransactionFilter = createPendingTransactionFilter; exports.createBlockFilter = createBlockFilter; exports.createEventFilter = createEventFilter; exports.createContractEventFilter = createContractEventFilter; exports.estimateGas = estimateGas; exports.estimateContractGas = estimateContractGas; exports.getBalance = getBalance; exports.getBlock = getBlock; exports.getBlockNumberCache = getBlockNumberCache; exports.getBlockNumber = getBlockNumber; exports.getBlockTransactionCount = getBlockTransactionCount; exports.getBytecode = getBytecode; exports.getChainId = getChainId; exports.getFeeHistory = getFeeHistory; exports.getFilterChanges = getFilterChanges; exports.getFilterLogs = getFilterLogs; exports.getGasPrice = getGasPrice; exports.getLogs = getLogs; exports.getStorageAt = getStorageAt; exports.getTransaction = getTransaction; exports.getTransactionConfirmations = getTransactionConfirmations; exports.getTransactionCount = getTransactionCount; exports.getTransactionReceipt = getTransactionReceipt; exports.readContract = readContract; exports.multicall = multicall; exports.uninstallFilter = uninstallFilter; exports.waitForTransactionReceipt = waitForTransactionReceipt; exports.watchBlockNumber = watchBlockNumber; exports.watchBlocks = watchBlocks; exports.watchContractEvent = watchContractEvent; exports.watchEvent = watchEvent; exports.watchPendingTransactions = watchPendingTransactions; exports.dropTransaction = dropTransaction; exports.getAutomine = getAutomine; exports.getTxpoolContent = getTxpoolContent; exports.getTxpoolStatus = getTxpoolStatus; exports.impersonateAccount = impersonateAccount; exports.increaseTime = increaseTime; exports.inspectTxpool = inspectTxpool; exports.mine = mine; exports.removeBlockTimestampInterval = removeBlockTimestampInterval; exports.reset = reset; exports.revert = revert; exports.sendUnsignedTransaction = sendUnsignedTransaction; exports.setAutomine = setAutomine; exports.setBalance = setBalance; exports.setBlockGasLimit = setBlockGasLimit; exports.setBlockTimestampInterval = setBlockTimestampInterval; exports.setCode = setCode; exports.setCoinbase = setCoinbase; exports.setIntervalMining = setIntervalMining; exports.setLoggingEnabled = setLoggingEnabled; exports.setMinGasPrice = setMinGasPrice; exports.setNextBlockBaseFeePerGas = setNextBlockBaseFeePerGas; exports.setNextBlockTimestamp = setNextBlockTimestamp; exports.setNonce = setNonce; exports.setRpcUrl = setRpcUrl; exports.setStorageAt = setStorageAt; exports.snapshot = snapshot; exports.stopImpersonatingAccount = stopImpersonatingAccount; exports.addChain = addChain; exports.deployContract = deployContract; exports.getAddresses = getAddresses; exports.getPermissions = getPermissions; exports.requestAddresses = requestAddresses; exports.requestPermissions = requestPermissions; exports.sendTransaction = sendTransaction; exports.signMessage = signMessage; exports.signTypedData = signTypedData; exports.switchChain = switchChain; exports.watchAsset = watchAsset; exports.writeContract = writeContract; exports.parseUnits = parseUnits; exports.parseGwei = parseGwei; exports.prepareRequest = prepareRequest; exports.formatUnits = formatUnits; exports.formatEther = formatEther; exports.formatGwei = formatGwei; exports.parseEther = parseEther;
5526
+ //# sourceMappingURL=chunk-BDYQ746J.js.map