viem 0.1.13 → 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-792d51c3.d.ts → chain-3a97fb0b.d.ts} +2 -2
  5. package/dist/{chain-41dcec4b.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-3FWCHYKE.js → chunk-BDYQ746J.js} +103 -74
  10. package/dist/chunk-BDYQ746J.js.map +1 -0
  11. package/dist/{chunk-S4MOKUQW.mjs → chunk-CTM2Y4HV.mjs} +102 -73
  12. package/dist/chunk-CTM2Y4HV.mjs.map +1 -0
  13. package/dist/{chunk-65E5HTFA.js → chunk-FBE36F5T.js} +19 -19
  14. package/dist/{chunk-BJPR4EAT.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-6cd6daa3.d.ts → createClient-ddc3fa22.d.ts} +2 -2
  19. package/dist/{createPublicClient-34d3ba9d.d.ts → createPublicClient-6792b8e9.d.ts} +3 -3
  20. package/dist/{eip1193-2f116cf7.d.ts → eip1193-343f2a94.d.ts} +1 -1
  21. package/dist/{encodeFunctionResult-874fe003.d.ts → encodeFunctionResult-4d3bafb8.d.ts} +5 -5
  22. package/dist/{encodePacked-9ab98aa9.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-1bdb43d3.d.ts → formatAbiItem-e5d7437a.d.ts} +1 -1
  30. package/dist/{getAbiItem-f19d50a2.d.ts → getAbiItem-de2d6ac0.d.ts} +1 -1
  31. package/dist/index.d.ts +30 -14
  32. package/dist/index.js +94 -90
  33. package/dist/index.js.map +1 -1
  34. package/dist/index.mjs +6 -2
  35. package/dist/index.mjs.map +1 -1
  36. package/dist/{parseGwei-a35c7c87.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-6b2b1b0d.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-3FWCHYKE.js.map +0 -1
  53. package/dist/chunk-S4MOKUQW.mjs.map +0 -1
  54. /package/dist/{chunk-65E5HTFA.js.map → chunk-FBE36F5T.js.map} +0 -0
  55. /package/dist/{chunk-BJPR4EAT.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.13",
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");
@@ -445,26 +454,39 @@ var BytesSizeMismatchError = class extends BaseError {
445
454
  __publicField(this, "name", "BytesSizeMismatchError");
446
455
  }
447
456
  };
457
+ var DecodeLogTopicsMismatch = class extends BaseError {
458
+ constructor({
459
+ abiItem,
460
+ param
461
+ }) {
462
+ super(
463
+ [
464
+ `Expected a topic for indexed event parameter${param.name ? ` "${param.name}"` : ""} on event "${formatAbiItem(abiItem, { includeName: true })}".`
465
+ ].join("\n")
466
+ );
467
+ __publicField(this, "name", "DecodeLogTopicsMismatch");
468
+ }
469
+ };
448
470
  var InvalidAbiEncodingTypeError = class extends BaseError {
449
- constructor(type, { docsPath: docsPath5 }) {
471
+ constructor(type, { docsPath: docsPath6 }) {
450
472
  super(
451
473
  [
452
474
  `Type "${type}" is not a valid encoding type.`,
453
475
  "Please provide a valid ABI type."
454
476
  ].join("\n"),
455
- { docsPath: docsPath5 }
477
+ { docsPath: docsPath6 }
456
478
  );
457
479
  __publicField(this, "name", "InvalidAbiEncodingType");
458
480
  }
459
481
  };
460
482
  var InvalidAbiDecodingTypeError = class extends BaseError {
461
- constructor(type, { docsPath: docsPath5 }) {
483
+ constructor(type, { docsPath: docsPath6 }) {
462
484
  super(
463
485
  [
464
486
  `Type "${type}" is not a valid decoding type.`,
465
487
  "Please provide a valid ABI type."
466
488
  ].join("\n"),
467
- { docsPath: docsPath5 }
489
+ { docsPath: docsPath6 }
468
490
  );
469
491
  __publicField(this, "name", "InvalidAbiDecodingType");
470
492
  }
@@ -674,7 +696,7 @@ var FeeConflictError = class extends BaseError {
674
696
  var TransactionExecutionError = class extends BaseError {
675
697
  constructor(cause, {
676
698
  account,
677
- docsPath: docsPath5,
699
+ docsPath: docsPath6,
678
700
  chain,
679
701
  data,
680
702
  gas,
@@ -699,7 +721,7 @@ var TransactionExecutionError = class extends BaseError {
699
721
  });
700
722
  super(cause.shortMessage, {
701
723
  cause,
702
- docsPath: docsPath5,
724
+ docsPath: docsPath6,
703
725
  metaMessages: [
704
726
  ...cause.metaMessages ? [...cause.metaMessages, " "] : [],
705
727
  "Request Arguments:",
@@ -753,7 +775,7 @@ var WaitForTransactionReceiptTimeoutError = class extends BaseError {
753
775
  var CallExecutionError = class extends BaseError {
754
776
  constructor(cause, {
755
777
  account,
756
- docsPath: docsPath5,
778
+ docsPath: docsPath6,
757
779
  chain,
758
780
  data,
759
781
  gas,
@@ -777,7 +799,7 @@ var CallExecutionError = class extends BaseError {
777
799
  });
778
800
  super(cause.shortMessage, {
779
801
  cause,
780
- docsPath: docsPath5,
802
+ docsPath: docsPath6,
781
803
  metaMessages: [
782
804
  ...cause.metaMessages ? [...cause.metaMessages, " "] : [],
783
805
  "Raw Call Arguments:",
@@ -794,7 +816,7 @@ var ContractFunctionExecutionError = class extends BaseError {
794
816
  abi,
795
817
  args,
796
818
  contractAddress,
797
- docsPath: docsPath5,
819
+ docsPath: docsPath6,
798
820
  functionName,
799
821
  sender
800
822
  }) {
@@ -816,7 +838,7 @@ var ContractFunctionExecutionError = class extends BaseError {
816
838
  cause.shortMessage || `An unknown error occurred while executing the contract function "${functionName}".`,
817
839
  {
818
840
  cause,
819
- docsPath: docsPath5,
841
+ docsPath: docsPath6,
820
842
  metaMessages: [
821
843
  ...cause.metaMessages ? [...cause.metaMessages, " "] : [],
822
844
  "Contract Call:",
@@ -994,7 +1016,7 @@ var OffsetOutOfBoundsError = class extends BaseError {
994
1016
  var EstimateGasExecutionError = class extends BaseError {
995
1017
  constructor(cause, {
996
1018
  account,
997
- docsPath: docsPath5,
1019
+ docsPath: docsPath6,
998
1020
  chain,
999
1021
  data,
1000
1022
  gas,
@@ -1018,7 +1040,7 @@ var EstimateGasExecutionError = class extends BaseError {
1018
1040
  });
1019
1041
  super(cause.shortMessage, {
1020
1042
  cause,
1021
- docsPath: docsPath5,
1043
+ docsPath: docsPath6,
1022
1044
  metaMessages: [
1023
1045
  ...cause.metaMessages ? [...cause.metaMessages, " "] : [],
1024
1046
  "Estimate Gas Arguments:",
@@ -1207,21 +1229,21 @@ var UnknownNodeError = class extends BaseError {
1207
1229
  // src/errors/request.ts
1208
1230
  var RequestError = class extends BaseError {
1209
1231
  constructor(err, {
1210
- docsPath: docsPath5,
1232
+ docsPath: docsPath6,
1211
1233
  metaMessages,
1212
1234
  shortMessage
1213
1235
  }) {
1214
1236
  super(shortMessage, {
1215
1237
  cause: err,
1216
- docsPath: docsPath5,
1238
+ docsPath: docsPath6,
1217
1239
  metaMessages
1218
1240
  });
1219
1241
  this.name = err.name;
1220
1242
  }
1221
1243
  };
1222
1244
  var RpcRequestError = class extends RequestError {
1223
- constructor(err, { docsPath: docsPath5, shortMessage }) {
1224
- super(err, { docsPath: docsPath5, metaMessages: err.metaMessages, shortMessage });
1245
+ constructor(err, { docsPath: docsPath6, shortMessage }) {
1246
+ super(err, { docsPath: docsPath6, metaMessages: err.metaMessages, shortMessage });
1225
1247
  __publicField(this, "code");
1226
1248
  this.code = err.code;
1227
1249
  this.name = err.name;
@@ -2414,32 +2436,37 @@ function decodeErrorResult({
2414
2436
  }
2415
2437
 
2416
2438
  // src/utils/abi/decodeEventLog.ts
2439
+ var docsPath = "/docs/contract/decodeEventLog";
2417
2440
  function decodeEventLog({
2418
2441
  abi,
2419
2442
  data,
2420
2443
  topics
2421
2444
  }) {
2422
2445
  const [signature, ...argTopics] = topics;
2446
+ if (!signature)
2447
+ throw new AbiEventSignatureEmptyTopicsError({
2448
+ docsPath
2449
+ });
2423
2450
  const abiItem = abi.find(
2424
2451
  (x) => x.type === "event" && signature === getEventSelector(formatAbiItem(x))
2425
2452
  );
2426
2453
  if (!(abiItem && "name" in abiItem))
2427
2454
  throw new AbiEventSignatureNotFoundError(signature, {
2428
- docsPath: "/docs/contract/decodeEventLog"
2455
+ docsPath
2429
2456
  });
2430
2457
  const { name, inputs } = abiItem;
2431
2458
  const isUnnamed = _optionalChain([inputs, 'optionalAccess', _35 => _35.some, 'call', _36 => _36((x) => !("name" in x && x.name))]);
2432
2459
  let args = isUnnamed ? [] : {};
2433
- for (let i = 0; i < inputs.length; i++) {
2434
- const param = inputs[i];
2435
- const topic = argTopics[i];
2436
- if (topic === null)
2437
- args[param.name || i] = null;
2438
- if (!topic)
2439
- continue;
2440
- if (Array.isArray(topic)) {
2441
- args[param.name || i] = topic.map((t) => decodeTopic({ param, value: t }));
2442
- } else {
2460
+ if (argTopics.length > 0) {
2461
+ const indexedInputs = inputs.filter((x) => "indexed" in x && x.indexed);
2462
+ for (let i = 0; i < indexedInputs.length; i++) {
2463
+ const param = indexedInputs[i];
2464
+ const topic = argTopics[i];
2465
+ if (!topic)
2466
+ throw new DecodeLogTopicsMismatch({
2467
+ abiItem,
2468
+ param
2469
+ });
2443
2470
  args[param.name || i] = decodeTopic({ param, value: topic });
2444
2471
  }
2445
2472
  }
@@ -2564,7 +2591,7 @@ function isArgOfType(arg, abiParameter) {
2564
2591
  }
2565
2592
 
2566
2593
  // src/utils/abi/decodeFunctionResult.ts
2567
- var docsPath = "/docs/contract/decodeFunctionResult";
2594
+ var docsPath2 = "/docs/contract/decodeFunctionResult";
2568
2595
  function decodeFunctionResult({
2569
2596
  abi,
2570
2597
  args,
@@ -2577,9 +2604,9 @@ function decodeFunctionResult({
2577
2604
  name: functionName
2578
2605
  });
2579
2606
  if (!description)
2580
- throw new AbiFunctionNotFoundError(functionName, { docsPath });
2607
+ throw new AbiFunctionNotFoundError(functionName, { docsPath: docsPath2 });
2581
2608
  if (!("outputs" in description))
2582
- throw new AbiFunctionOutputsNotFoundError(functionName, { docsPath });
2609
+ throw new AbiFunctionOutputsNotFoundError(functionName, { docsPath: docsPath2 });
2583
2610
  const values = decodeAbiParameters(description.outputs, data);
2584
2611
  if (values && values.length > 1)
2585
2612
  return values;
@@ -2589,7 +2616,7 @@ function decodeFunctionResult({
2589
2616
  }
2590
2617
 
2591
2618
  // src/utils/abi/encodeDeployData.ts
2592
- var docsPath2 = "/docs/contract/encodeDeployData";
2619
+ var docsPath3 = "/docs/contract/encodeDeployData";
2593
2620
  function encodeDeployData({
2594
2621
  abi,
2595
2622
  args,
@@ -2601,11 +2628,11 @@ function encodeDeployData({
2601
2628
  (x) => "type" in x && x.type === "constructor"
2602
2629
  );
2603
2630
  if (!description)
2604
- throw new AbiConstructorNotFoundError({ docsPath: docsPath2 });
2631
+ throw new AbiConstructorNotFoundError({ docsPath: docsPath3 });
2605
2632
  if (!("inputs" in description))
2606
- throw new AbiConstructorParamsNotFoundError({ docsPath: docsPath2 });
2633
+ throw new AbiConstructorParamsNotFoundError({ docsPath: docsPath3 });
2607
2634
  if (!description.inputs || description.inputs.length === 0)
2608
- throw new AbiConstructorParamsNotFoundError({ docsPath: docsPath2 });
2635
+ throw new AbiConstructorParamsNotFoundError({ docsPath: docsPath3 });
2609
2636
  const data = encodeAbiParameters(
2610
2637
  description.inputs,
2611
2638
  args
@@ -2614,7 +2641,7 @@ function encodeDeployData({
2614
2641
  }
2615
2642
 
2616
2643
  // src/utils/abi/encodeErrorResult.ts
2617
- var docsPath3 = "/docs/contract/encodeErrorResult";
2644
+ var docsPath4 = "/docs/contract/encodeErrorResult";
2618
2645
  function encodeErrorResult({ abi, errorName, args }) {
2619
2646
  const description = getAbiItem({
2620
2647
  abi,
@@ -2622,13 +2649,13 @@ function encodeErrorResult({ abi, errorName, args }) {
2622
2649
  name: errorName
2623
2650
  });
2624
2651
  if (!description)
2625
- throw new AbiErrorNotFoundError(errorName, { docsPath: docsPath3 });
2652
+ throw new AbiErrorNotFoundError(errorName, { docsPath: docsPath4 });
2626
2653
  const definition = formatAbiItem(description);
2627
2654
  const signature = getFunctionSelector(definition);
2628
2655
  let data = "0x";
2629
2656
  if (args && args.length > 0) {
2630
2657
  if (!("inputs" in description && description.inputs))
2631
- throw new AbiErrorInputsNotFoundError(errorName, { docsPath: docsPath3 });
2658
+ throw new AbiErrorInputsNotFoundError(errorName, { docsPath: docsPath4 });
2632
2659
  data = encodeAbiParameters(description.inputs, args);
2633
2660
  }
2634
2661
  return concatHex([signature, data]);
@@ -2694,7 +2721,7 @@ function encodeFunctionData({
2694
2721
  }
2695
2722
 
2696
2723
  // src/utils/abi/encodeFunctionResult.ts
2697
- var docsPath4 = "/docs/contract/encodeFunctionResult";
2724
+ var docsPath5 = "/docs/contract/encodeFunctionResult";
2698
2725
  function encodeFunctionResult({
2699
2726
  abi,
2700
2727
  functionName,
@@ -2704,9 +2731,9 @@ function encodeFunctionResult({
2704
2731
  (x) => "name" in x && x.name === functionName
2705
2732
  );
2706
2733
  if (!description)
2707
- throw new AbiFunctionNotFoundError(functionName, { docsPath: docsPath4 });
2734
+ throw new AbiFunctionNotFoundError(functionName, { docsPath: docsPath5 });
2708
2735
  if (!("outputs" in description))
2709
- throw new AbiFunctionOutputsNotFoundError(functionName, { docsPath: docsPath4 });
2736
+ throw new AbiFunctionOutputsNotFoundError(functionName, { docsPath: docsPath5 });
2710
2737
  let values = Array.isArray(result) ? result : [result];
2711
2738
  if (description.outputs.length === 0 && !values[0])
2712
2739
  values = [];
@@ -3224,14 +3251,14 @@ function getNodeError(err, args) {
3224
3251
 
3225
3252
  // src/utils/errors/getCallError.ts
3226
3253
  function getCallError(err, {
3227
- docsPath: docsPath5,
3254
+ docsPath: docsPath6,
3228
3255
  ...args
3229
3256
  }) {
3230
3257
  let cause = err;
3231
3258
  if (containsNodeError(err))
3232
3259
  cause = getNodeError(err, args);
3233
3260
  return new CallExecutionError(cause, {
3234
- docsPath: docsPath5,
3261
+ docsPath: docsPath6,
3235
3262
  ...args
3236
3263
  });
3237
3264
  }
@@ -3242,7 +3269,7 @@ function getContractError(err, {
3242
3269
  abi,
3243
3270
  address,
3244
3271
  args,
3245
- docsPath: docsPath5,
3272
+ docsPath: docsPath6,
3246
3273
  functionName,
3247
3274
  sender
3248
3275
  }) {
@@ -3262,7 +3289,7 @@ function getContractError(err, {
3262
3289
  abi,
3263
3290
  args,
3264
3291
  contractAddress: address,
3265
- docsPath: docsPath5,
3292
+ docsPath: docsPath6,
3266
3293
  functionName,
3267
3294
  sender
3268
3295
  });
@@ -3270,28 +3297,28 @@ function getContractError(err, {
3270
3297
 
3271
3298
  // src/utils/errors/getEstimateGasError.ts
3272
3299
  function getEstimateGasError(err, {
3273
- docsPath: docsPath5,
3300
+ docsPath: docsPath6,
3274
3301
  ...args
3275
3302
  }) {
3276
3303
  let cause = err;
3277
3304
  if (containsNodeError(err))
3278
3305
  cause = getNodeError(err, args);
3279
3306
  return new EstimateGasExecutionError(cause, {
3280
- docsPath: docsPath5,
3307
+ docsPath: docsPath6,
3281
3308
  ...args
3282
3309
  });
3283
3310
  }
3284
3311
 
3285
3312
  // src/utils/errors/getTransactionError.ts
3286
3313
  function getTransactionError(err, {
3287
- docsPath: docsPath5,
3314
+ docsPath: docsPath6,
3288
3315
  ...args
3289
3316
  }) {
3290
3317
  let cause = err;
3291
3318
  if (containsNodeError(err))
3292
3319
  cause = getNodeError(err, args);
3293
3320
  return new TransactionExecutionError(cause, {
3294
- docsPath: docsPath5,
3321
+ docsPath: docsPath6,
3295
3322
  ...args
3296
3323
  });
3297
3324
  }
@@ -5493,5 +5520,7 @@ function parseEther(ether, unit = "wei") {
5493
5520
 
5494
5521
 
5495
5522
 
5496
- 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.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;
5497
- //# sourceMappingURL=chunk-3FWCHYKE.js.map
5523
+
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