@dvmkit/dvm-cli 0.1.4 → 0.1.5

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 (58) hide show
  1. package/dist/{_esm-M2HUAA3B.js → _esm-MN4BUYV6.js} +56 -54
  2. package/dist/{accounts-S747UW3A.js → accounts-2WZE4N5F.js} +5 -5
  3. package/dist/actions-LR65XILR.js +244 -0
  4. package/dist/{ccip-XZ5F5J6R.js → ccip-JXYJSXTW.js} +3 -3
  5. package/dist/{chains-PINFXYUE.js → chains-LJ7XK6H3.js} +8 -8
  6. package/dist/{chunk-YZUBKHHA.js → chunk-2VVVWBQA.js} +471 -471
  7. package/dist/chunk-3SWX5BQP.js +66 -0
  8. package/dist/chunk-3W2M46WM.js +61142 -0
  9. package/dist/chunk-4JXFXP4Y.js +757 -0
  10. package/dist/{chunk-GIDSTROG.js → chunk-4NWEJTAW.js} +160 -158
  11. package/dist/{chunk-UXQCP26E.js → chunk-65EY7CT4.js} +2 -2
  12. package/dist/{chunk-6UGZAFIR.js → chunk-6CC6JGEU.js} +348 -18
  13. package/dist/{chunk-PHZHPRQE.js → chunk-6O27TEXD.js} +173 -173
  14. package/dist/{chunk-HPRIQEJS.js → chunk-7OK7MBT6.js} +19 -19
  15. package/dist/{chunk-7UPZZGC5.js → chunk-BECPI5H5.js} +193 -193
  16. package/dist/chunk-CJTE5TS3.js +1298 -0
  17. package/dist/{chunk-RWBYCM47.js → chunk-ECEM3ZAS.js} +10 -10
  18. package/dist/{chunk-ACNNU5RY.js → chunk-ECK465AY.js} +694 -565
  19. package/dist/{chunk-XGABM4H5.js → chunk-EGY4KDBW.js} +3822 -2012
  20. package/dist/{chunk-SLDVIXCS.js → chunk-EVQERRCP.js} +12 -12
  21. package/dist/{chunk-4AQ4G7L5.js → chunk-EZHT2RLJ.js} +383 -383
  22. package/dist/{chunk-IC6OXFYW.js → chunk-F55NNH2F.js} +63 -63
  23. package/dist/chunk-G5C6E6PJ.js +9063 -0
  24. package/dist/{chunk-6AJ7H2VX.js → chunk-GZWKCIYN.js} +213 -1281
  25. package/dist/{chunk-ZGXCK43G.js → chunk-LH3QPVN6.js} +8499 -8498
  26. package/dist/{chunk-MMJR6N3J.js → chunk-MLDUKBU3.js} +1368 -1368
  27. package/dist/chunk-N3UJT2NJ.js +3 -0
  28. package/dist/{chunk-BZNZWRBB.js → chunk-OWJZYYMG.js} +11 -15
  29. package/dist/chunk-ZJYO7OLO.js +514 -0
  30. package/dist/{client-D3XFLWOK.js → client-OWIOFBKS.js} +18 -16
  31. package/dist/{dist-7MMV3EZA.js → dist-2G3QBGID.js} +11 -10
  32. package/dist/dvm.js +26781 -4423
  33. package/dist/esm-RQLHAH2K.js +5183 -0
  34. package/dist/internal-QFQ7MJ5V.js +1228 -0
  35. package/dist/payout-reporter-3UB5WRCV-XTVZFIAO.js +17 -0
  36. package/dist/{pocket-refill-GDYSTECR.js → pocket-refill-PQ5ZVSBY.js} +26 -30
  37. package/dist/revenue-reporter-JIKUPXOK-TYUBTF4P.js +11 -0
  38. package/dist/{secp256k1-4YWQEMGF.js → secp256k1-JLZEQ2H7.js} +2 -2
  39. package/dist/tempo-lifecycle-SQL3KLEZ-AATA2SKI.js +28 -0
  40. package/dist/{tempo-wallet-5FEOI4CF.js → tempo-wallet-QOLEIPCV-SWCXRBDS.js} +2 -4
  41. package/dist/{x402-VNFA3DBY.js → x402-FTG2GRAQ-UGAUMUL6.js} +13 -24
  42. package/package.json +2 -10
  43. package/dist/channel-store-GOV7TEDN.js +0 -62
  44. package/dist/chunk-3PPOU55E.js +0 -312
  45. package/dist/chunk-3TBULV3F.js +0 -551
  46. package/dist/chunk-5BUV73FO.js +0 -2351
  47. package/dist/chunk-EY5K4BM3.js +0 -1780
  48. package/dist/chunk-G3RLVJF5.js +0 -19
  49. package/dist/chunk-KC4UPK44.js +0 -113
  50. package/dist/chunk-MTBCEXJ6.js +0 -4602
  51. package/dist/chunk-ONQMRWY3.js +0 -83
  52. package/dist/chunk-TO47XRK7.js +0 -24890
  53. package/dist/chunk-U5TNSUYW.js +0 -1757
  54. package/dist/chunk-UU6QMSTQ.js +0 -171
  55. package/dist/chunk-ZELLQI7F.js +0 -248
  56. package/dist/lifecycle-5RLM5JMN.js +0 -29
  57. package/dist/tempo-lifecycle-DHZPQTSB.js +0 -31
  58. package/dist/wallet-G3VOUCL4.js +0 -30
@@ -7,21 +7,16 @@ import {
7
7
  BlockNotFoundError,
8
8
  NotFoundError,
9
9
  assertCurrentChain,
10
- buildRequest,
11
- createContractEventFilter,
12
10
  createFilterRequestScope,
13
11
  decodeEventLog,
14
12
  encode,
15
13
  encodeEventTopics,
16
- estimateFeesPerGas,
17
14
  estimateGas,
18
- estimateMaxPriorityFeePerGas,
19
- fillTransaction,
20
15
  formatBlock,
21
16
  formatLog,
22
17
  formatTransactionReceipt,
23
18
  formatUnits,
24
- from3 as from,
19
+ from5 as from,
25
20
  fromAbi,
26
21
  getAction,
27
22
  getBlock,
@@ -29,56 +24,43 @@ import {
29
24
  getChainId,
30
25
  getCode,
31
26
  getContractError,
32
- getContractEvents,
33
27
  getFilterChanges,
34
- getGasPrice,
35
- getHttpRpcClient,
36
28
  getLogs,
37
29
  getSelector,
38
- getSocket,
39
30
  getTransaction,
40
31
  getTransactionError,
41
- getTransactionReceipt,
42
- getWebSocketRpcClient,
43
32
  observe,
44
33
  parseEventLogs,
45
- parseTransaction,
46
34
  parseUnits,
47
35
  poll,
48
- prepareTransactionRequest,
49
36
  readContract,
50
37
  receiptStatuses,
51
- recoverAddress2 as recoverAddress,
52
- sendRawTransaction,
53
- sendRawTransactionSync,
54
38
  sendTransaction,
55
- sendTransactionSync,
56
39
  uninstallFilter,
57
40
  verifyHash2 as verifyHash,
58
- wait,
59
- waitForTransactionReceipt,
60
- watchBlockNumber,
61
- watchContractEvent,
62
41
  withRetry,
63
42
  writeContract,
64
43
  writeContractSync
65
- } from "./chunk-ZGXCK43G.js";
44
+ } from "./chunk-LH3QPVN6.js";
45
+ import {
46
+ getTransactionCount,
47
+ getTypesForEIP712Domain,
48
+ hashMessage,
49
+ hashTypedData,
50
+ serializeTypedData,
51
+ validateTypedData
52
+ } from "./chunk-6O27TEXD.js";
66
53
  import {
67
54
  AtomicityNotSupportedError,
68
55
  ContractFunctionRevertedError,
69
56
  InvalidInputRpcError,
70
57
  RawContractError,
71
- RpcRequestError,
72
- TransactionRejectedRpcError,
73
58
  UnsupportedNonOptionalCapabilityError,
74
- UserRejectedRequestError,
75
- WalletConnectSessionSettlementError,
76
59
  addressResolverAbi,
77
60
  assertRequest,
78
61
  call,
79
- concat,
62
+ concat2,
80
63
  createBatchScheduler,
81
- decodeAbiParameters,
82
64
  decodeFunctionResult,
83
65
  deploylessCallViaBytecodeBytecode,
84
66
  encodeDeployData,
@@ -99,38 +81,20 @@ import {
99
81
  universalResolverResolveAbi,
100
82
  universalResolverReverseAbi,
101
83
  withResolvers
102
- } from "./chunk-IC6OXFYW.js";
103
- import {
104
- commitmentToVersionedHash,
105
- getTransactionCount,
106
- getTypesForEIP712Domain,
107
- hashMessage,
108
- hashTypedData,
109
- serializeTransaction,
110
- serializeTypedData,
111
- validateTypedData
112
- } from "./chunk-PHZHPRQE.js";
84
+ } from "./chunk-F55NNH2F.js";
113
85
  import {
114
- secp256k1
115
- } from "./chunk-UXQCP26E.js";
116
- import {
117
- AbiConstructorNotFoundError,
118
- AbiConstructorParamsNotFoundError,
119
86
  AbiDecodingZeroDataError,
120
87
  BaseError,
121
88
  DecodeLogDataMismatch,
122
89
  DecodeLogTopicsMismatch,
123
- ExecutionRevertedError,
124
90
  TransactionNotFoundError,
125
91
  UnknownNodeError,
126
92
  bytesToHex,
127
93
  checksumAddress,
128
- concat as concat2,
129
- createCursor,
94
+ concat,
130
95
  formatBlockParameter,
131
96
  getAddress,
132
97
  hexToBigInt,
133
- hexToBytes,
134
98
  hexToNumber,
135
99
  isAddress,
136
100
  isHex,
@@ -146,7 +110,10 @@ import {
146
110
  toBytes,
147
111
  toHex,
148
112
  trim
149
- } from "./chunk-MMJR6N3J.js";
113
+ } from "./chunk-MLDUKBU3.js";
114
+ import {
115
+ __export
116
+ } from "./chunk-IYHTITNZ.js";
150
117
 
151
118
  // node_modules/viem/_esm/actions/public/estimateContractGas.js
152
119
  async function estimateContractGas(client, parameters) {
@@ -220,176 +187,6 @@ async function simulateContract(client, parameters) {
220
187
  }
221
188
  }
222
189
 
223
- // node_modules/viem/_esm/actions/getContract.js
224
- function getContract({ abi: abi2, address, client: client_ }) {
225
- const client = client_;
226
- const [publicClient, walletClient] = (() => {
227
- if (!client)
228
- return [void 0, void 0];
229
- if ("public" in client && "wallet" in client)
230
- return [client.public, client.wallet];
231
- if ("public" in client)
232
- return [client.public, void 0];
233
- if ("wallet" in client)
234
- return [void 0, client.wallet];
235
- return [client, client];
236
- })();
237
- const hasPublicClient = publicClient !== void 0 && publicClient !== null;
238
- const hasWalletClient = walletClient !== void 0 && walletClient !== null;
239
- const contract = {};
240
- let hasReadFunction = false;
241
- let hasWriteFunction = false;
242
- let hasEvent = false;
243
- for (const item of abi2) {
244
- if (item.type === "function")
245
- if (item.stateMutability === "view" || item.stateMutability === "pure")
246
- hasReadFunction = true;
247
- else
248
- hasWriteFunction = true;
249
- else if (item.type === "event")
250
- hasEvent = true;
251
- if (hasReadFunction && hasWriteFunction && hasEvent)
252
- break;
253
- }
254
- if (hasPublicClient) {
255
- if (hasReadFunction)
256
- contract.read = new Proxy({}, {
257
- get(_, functionName) {
258
- return (...parameters) => {
259
- const { args, options } = getFunctionParameters(parameters);
260
- return getAction(publicClient, readContract, "readContract")({
261
- abi: abi2,
262
- address,
263
- functionName,
264
- args,
265
- ...options
266
- });
267
- };
268
- }
269
- });
270
- if (hasWriteFunction)
271
- contract.simulate = new Proxy({}, {
272
- get(_, functionName) {
273
- return (...parameters) => {
274
- const { args, options } = getFunctionParameters(parameters);
275
- return getAction(publicClient, simulateContract, "simulateContract")({
276
- abi: abi2,
277
- address,
278
- functionName,
279
- args,
280
- ...options
281
- });
282
- };
283
- }
284
- });
285
- if (hasEvent) {
286
- contract.createEventFilter = new Proxy({}, {
287
- get(_, eventName) {
288
- return (...parameters) => {
289
- const abiEvent = abi2.find((x) => x.type === "event" && x.name === eventName);
290
- const { args, options } = getEventParameters(parameters, abiEvent);
291
- return getAction(publicClient, createContractEventFilter, "createContractEventFilter")({
292
- abi: abi2,
293
- address,
294
- eventName,
295
- args,
296
- ...options
297
- });
298
- };
299
- }
300
- });
301
- contract.getEvents = new Proxy({}, {
302
- get(_, eventName) {
303
- return (...parameters) => {
304
- const abiEvent = abi2.find((x) => x.type === "event" && x.name === eventName);
305
- const { args, options } = getEventParameters(parameters, abiEvent);
306
- return getAction(publicClient, getContractEvents, "getContractEvents")({
307
- abi: abi2,
308
- address,
309
- eventName,
310
- args,
311
- ...options
312
- });
313
- };
314
- }
315
- });
316
- contract.watchEvent = new Proxy({}, {
317
- get(_, eventName) {
318
- return (...parameters) => {
319
- const abiEvent = abi2.find((x) => x.type === "event" && x.name === eventName);
320
- const { args, options } = getEventParameters(parameters, abiEvent);
321
- return getAction(publicClient, watchContractEvent, "watchContractEvent")({
322
- abi: abi2,
323
- address,
324
- eventName,
325
- args,
326
- ...options
327
- });
328
- };
329
- }
330
- });
331
- }
332
- }
333
- if (hasWalletClient) {
334
- if (hasWriteFunction)
335
- contract.write = new Proxy({}, {
336
- get(_, functionName) {
337
- return (...parameters) => {
338
- const { args, options } = getFunctionParameters(parameters);
339
- return getAction(walletClient, writeContract, "writeContract")({
340
- abi: abi2,
341
- address,
342
- functionName,
343
- args,
344
- ...options
345
- });
346
- };
347
- }
348
- });
349
- }
350
- if (hasPublicClient || hasWalletClient) {
351
- if (hasWriteFunction)
352
- contract.estimateGas = new Proxy({}, {
353
- get(_, functionName) {
354
- return (...parameters) => {
355
- const { args, options } = getFunctionParameters(parameters);
356
- const client2 = publicClient ?? walletClient;
357
- return getAction(client2, estimateContractGas, "estimateContractGas")({
358
- abi: abi2,
359
- address,
360
- functionName,
361
- args,
362
- ...options,
363
- account: options.account ?? walletClient.account
364
- });
365
- };
366
- }
367
- });
368
- }
369
- contract.address = address;
370
- contract.abi = abi2;
371
- return contract;
372
- }
373
- function getFunctionParameters(values) {
374
- const hasArgs = values.length && Array.isArray(values[0]);
375
- const args = hasArgs ? values[0] : [];
376
- const options = (hasArgs ? values[1] : values[0]) ?? {};
377
- return { args, options };
378
- }
379
- function getEventParameters(values, abiEvent) {
380
- let hasArgs = false;
381
- if (Array.isArray(values[0]))
382
- hasArgs = true;
383
- else if (values.length === 1) {
384
- hasArgs = abiEvent.inputs.some((x) => x.indexed);
385
- } else if (values.length === 2) {
386
- hasArgs = true;
387
- }
388
- const args = hasArgs ? values[0] : void 0;
389
- const options = (hasArgs ? values[1] : values[0]) ?? {};
390
- return { args, options };
391
- }
392
-
393
190
  // node_modules/viem/_esm/errors/calls.js
394
191
  var BundleFailedError = class extends BaseError {
395
192
  constructor(result) {
@@ -438,7 +235,7 @@ async function sendCalls(client, parameters) {
438
235
  args: call2.args
439
236
  }) : call2.data;
440
237
  return {
441
- data: call2.dataSuffix && data ? concat2([data, call2.dataSuffix]) : data,
238
+ data: call2.dataSuffix && data ? concat([data, call2.dataSuffix]) : data,
442
239
  to: call2.to,
443
240
  value: call2.value ? numberToHex(call2.value) : void 0
444
241
  };
@@ -506,7 +303,7 @@ async function sendCalls(client, parameters) {
506
303
  return fallbackTransactionErrorMagicIdentifier;
507
304
  });
508
305
  return {
509
- id: concat2([
306
+ id: concat([
510
307
  ...hashes,
511
308
  numberToHex(chain.id, { size: 32 }),
512
309
  fallbackMagicIdentifier
@@ -644,126 +441,6 @@ var WaitForCallsStatusTimeoutError = class extends BaseError {
644
441
  }
645
442
  };
646
443
 
647
- // node_modules/viem/_esm/utils/uid.js
648
- var size2 = 256;
649
- var index = size2;
650
- var buffer;
651
- function uid(length = 11) {
652
- if (!buffer || index + length > size2 * 2) {
653
- buffer = "";
654
- index = 0;
655
- for (let i = 0; i < size2; i++) {
656
- buffer += (256 + Math.random() * 256 | 0).toString(16).substring(1);
657
- }
658
- }
659
- return buffer.substring(index, index++ + length);
660
- }
661
-
662
- // node_modules/viem/_esm/clients/createClient.js
663
- function createClient(parameters) {
664
- const { batch, chain, ccipRead, dataSuffix, key = "base", name = "Base Client", tokens, type = "base" } = parameters;
665
- const experimental_blockTag = parameters.experimental_blockTag ?? (typeof chain?.experimental_preconfirmationTime === "number" ? "pending" : void 0);
666
- const blockTime = chain?.blockTime ?? 12e3;
667
- const defaultPollingInterval = Math.min(Math.max(Math.floor(blockTime / 2), 500), 4e3);
668
- const pollingInterval = parameters.pollingInterval ?? defaultPollingInterval;
669
- const cacheTime = parameters.cacheTime ?? pollingInterval;
670
- const account = parameters.account ? parseAccount(parameters.account) : void 0;
671
- const { config, request, value } = parameters.transport({
672
- account,
673
- chain,
674
- pollingInterval
675
- });
676
- const transport = { ...config, ...value };
677
- const client = {
678
- account,
679
- batch,
680
- cacheTime,
681
- ccipRead,
682
- chain,
683
- dataSuffix,
684
- key,
685
- name,
686
- pollingInterval,
687
- request,
688
- tokens,
689
- transport,
690
- type,
691
- uid: uid(),
692
- ...experimental_blockTag ? { experimental_blockTag } : {}
693
- };
694
- function extend(base) {
695
- return (extendFn) => {
696
- const extended = extendFn(base);
697
- for (const key2 in client)
698
- delete extended[key2];
699
- const combined = { ...base, ...extended };
700
- for (const key2 in extended) {
701
- const a = base[key2];
702
- const b = extended[key2];
703
- if (isPlainObject(a) && isPlainObject(b))
704
- combined[key2] = { ...a, ...b };
705
- }
706
- return Object.assign(combined, { extend: extend(combined) });
707
- };
708
- }
709
- return Object.assign(client, { extend: extend(client) });
710
- }
711
- function isPlainObject(value) {
712
- if (typeof value !== "object" || value === null)
713
- return false;
714
- const prototype = Object.getPrototypeOf(value);
715
- return prototype === Object.prototype || prototype === null;
716
- }
717
- function bindActionDecorators(client, action) {
718
- const wrapped = (parameters = {}) => action(client, parameters);
719
- for (const key of [
720
- "call",
721
- "calls",
722
- "callWithPeriod",
723
- "estimateGas",
724
- "prepare",
725
- "prepareRecipient",
726
- "simulate"
727
- ])
728
- if (Object.hasOwn(action, key)) {
729
- const helper = action[key];
730
- wrapped[key] = (args = {}) => {
731
- if (helper.length === 1)
732
- return helper(args);
733
- return helper(client, args);
734
- };
735
- }
736
- for (const key of ["extractEvent", "extractEvents"])
737
- if (Object.hasOwn(action, key))
738
- wrapped[key] = action[key];
739
- return wrapped;
740
- }
741
- function rpcSchema() {
742
- return null;
743
- }
744
-
745
- // node_modules/viem/_esm/utils/ens/errors.js
746
- function isNullUniversalResolverError(err) {
747
- if (!(err instanceof BaseError))
748
- return false;
749
- const cause = err.walk((e) => e instanceof ContractFunctionRevertedError);
750
- if (!(cause instanceof ContractFunctionRevertedError))
751
- return false;
752
- if (cause.data?.errorName === "HttpError")
753
- return true;
754
- if (cause.data?.errorName === "ResolverError")
755
- return true;
756
- if (cause.data?.errorName === "ResolverNotContract")
757
- return true;
758
- if (cause.data?.errorName === "ResolverNotFound")
759
- return true;
760
- if (cause.data?.errorName === "ReverseAddressMismatch")
761
- return true;
762
- if (cause.data?.errorName === "UnsupportedResolverProfile")
763
- return true;
764
- return false;
765
- }
766
-
767
444
  // node_modules/viem/_esm/utils/ens/encodedLabelToLabelhash.js
768
445
  function encodedLabelToLabelhash(label) {
769
446
  if (label.length !== 66)
@@ -787,16 +464,11 @@ function namehash(name) {
787
464
  for (let i = labels.length - 1; i >= 0; i -= 1) {
788
465
  const hashFromEncodedLabel = encodedLabelToLabelhash(labels[i]);
789
466
  const hashed = hashFromEncodedLabel ? toBytes(hashFromEncodedLabel) : keccak256(stringToBytes(labels[i]), "bytes");
790
- result = keccak256(concat2([result, hashed]), "bytes");
467
+ result = keccak256(concat([result, hashed]), "bytes");
791
468
  }
792
469
  return bytesToHex(result);
793
470
  }
794
471
 
795
- // node_modules/viem/_esm/utils/ens/encodeLabelhash.js
796
- function encodeLabelhash(hash) {
797
- return `[${hash.slice(2)}]`;
798
- }
799
-
800
472
  // node_modules/viem/_esm/utils/ens/labelhash.js
801
473
  function labelhash(label) {
802
474
  const result = new Uint8Array(32).fill(0);
@@ -805,6 +477,33 @@ function labelhash(label) {
805
477
  return encodedLabelToLabelhash(label) || keccak256(stringToBytes(label));
806
478
  }
807
479
 
480
+ // node_modules/viem/_esm/utils/ens/errors.js
481
+ function isNullUniversalResolverError(err) {
482
+ if (!(err instanceof BaseError))
483
+ return false;
484
+ const cause = err.walk((e) => e instanceof ContractFunctionRevertedError);
485
+ if (!(cause instanceof ContractFunctionRevertedError))
486
+ return false;
487
+ if (cause.data?.errorName === "HttpError")
488
+ return true;
489
+ if (cause.data?.errorName === "ResolverError")
490
+ return true;
491
+ if (cause.data?.errorName === "ResolverNotContract")
492
+ return true;
493
+ if (cause.data?.errorName === "ResolverNotFound")
494
+ return true;
495
+ if (cause.data?.errorName === "ReverseAddressMismatch")
496
+ return true;
497
+ if (cause.data?.errorName === "UnsupportedResolverProfile")
498
+ return true;
499
+ return false;
500
+ }
501
+
502
+ // node_modules/viem/_esm/utils/ens/encodeLabelhash.js
503
+ function encodeLabelhash(hash) {
504
+ return `[${hash.slice(2)}]`;
505
+ }
506
+
808
507
  // node_modules/viem/_esm/utils/ens/packetToBytes.js
809
508
  function packetToBytes(packet) {
810
509
  const value = packet.replace(/^\.|\.$/gm, "");
@@ -941,6 +640,60 @@ var EnsInvalidChainIdError = class extends BaseError {
941
640
  }
942
641
  };
943
642
 
643
+ // node_modules/viem/_esm/actions/ens/getEnsText.js
644
+ async function getEnsText(client, parameters) {
645
+ const { blockNumber, blockTag, key, name, gatewayUrls, strict } = parameters;
646
+ const { chain } = client;
647
+ const universalResolverAddress = (() => {
648
+ if (parameters.universalResolverAddress)
649
+ return parameters.universalResolverAddress;
650
+ if (!chain)
651
+ throw new Error("client chain not configured. universalResolverAddress is required.");
652
+ return getChainContractAddress({
653
+ blockNumber,
654
+ chain,
655
+ contract: "ensUniversalResolver"
656
+ });
657
+ })();
658
+ const tlds = chain?.ensTlds;
659
+ if (tlds && !tlds.some((tld) => name.endsWith(tld)))
660
+ return null;
661
+ try {
662
+ const readContractParameters = {
663
+ address: universalResolverAddress,
664
+ abi: universalResolverResolveAbi,
665
+ args: [
666
+ toHex(packetToBytes(name)),
667
+ encodeFunctionData({
668
+ abi: textResolverAbi,
669
+ functionName: "text",
670
+ args: [namehash(name), key]
671
+ }),
672
+ gatewayUrls ?? [localBatchGatewayUrl]
673
+ ],
674
+ functionName: "resolveWithGateways",
675
+ blockNumber,
676
+ blockTag
677
+ };
678
+ const readContractAction = getAction(client, readContract, "readContract");
679
+ const res = await readContractAction(readContractParameters);
680
+ if (res[0] === "0x")
681
+ return null;
682
+ const record = decodeFunctionResult({
683
+ abi: textResolverAbi,
684
+ functionName: "text",
685
+ data: res[0]
686
+ });
687
+ return record === "" ? null : record;
688
+ } catch (err) {
689
+ if (strict)
690
+ throw err;
691
+ if (isNullUniversalResolverError(err))
692
+ return null;
693
+ throw err;
694
+ }
695
+ }
696
+
944
697
  // node_modules/viem/_esm/utils/ens/avatar/utils.js
945
698
  var networkRegex = /(?<protocol>https?:\/\/[^/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/;
946
699
  var ipfsHashRegex = /^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?<target>[\w\-.]+))?(?<subtarget>\/.*)?$/;
@@ -972,12 +725,12 @@ async function isImageUri(uri) {
972
725
  });
973
726
  }
974
727
  }
975
- function getGateway(custom2, defaultGateway) {
976
- if (!custom2)
728
+ function getGateway(custom, defaultGateway) {
729
+ if (!custom)
977
730
  return defaultGateway;
978
- if (custom2.endsWith("/"))
979
- return custom2.slice(0, -1);
980
- return custom2;
731
+ if (custom.endsWith("/"))
732
+ return custom.slice(0, -1);
733
+ return custom;
981
734
  }
982
735
  function resolveAvatarUri({ uri, gatewayUrls }) {
983
736
  const isEncoded = base64Regex.test(uri);
@@ -1142,60 +895,6 @@ async function parseNftAvatarUri(client, { gatewayUrls, record }) {
1142
895
  });
1143
896
  }
1144
897
 
1145
- // node_modules/viem/_esm/actions/ens/getEnsText.js
1146
- async function getEnsText(client, parameters) {
1147
- const { blockNumber, blockTag, key, name, gatewayUrls, strict } = parameters;
1148
- const { chain } = client;
1149
- const universalResolverAddress = (() => {
1150
- if (parameters.universalResolverAddress)
1151
- return parameters.universalResolverAddress;
1152
- if (!chain)
1153
- throw new Error("client chain not configured. universalResolverAddress is required.");
1154
- return getChainContractAddress({
1155
- blockNumber,
1156
- chain,
1157
- contract: "ensUniversalResolver"
1158
- });
1159
- })();
1160
- const tlds = chain?.ensTlds;
1161
- if (tlds && !tlds.some((tld) => name.endsWith(tld)))
1162
- return null;
1163
- try {
1164
- const readContractParameters = {
1165
- address: universalResolverAddress,
1166
- abi: universalResolverResolveAbi,
1167
- args: [
1168
- toHex(packetToBytes(name)),
1169
- encodeFunctionData({
1170
- abi: textResolverAbi,
1171
- functionName: "text",
1172
- args: [namehash(name), key]
1173
- }),
1174
- gatewayUrls ?? [localBatchGatewayUrl]
1175
- ],
1176
- functionName: "resolveWithGateways",
1177
- blockNumber,
1178
- blockTag
1179
- };
1180
- const readContractAction = getAction(client, readContract, "readContract");
1181
- const res = await readContractAction(readContractParameters);
1182
- if (res[0] === "0x")
1183
- return null;
1184
- const record = decodeFunctionResult({
1185
- abi: textResolverAbi,
1186
- functionName: "text",
1187
- data: res[0]
1188
- });
1189
- return record === "" ? null : record;
1190
- } catch (err) {
1191
- if (strict)
1192
- throw err;
1193
- if (isNullUniversalResolverError(err))
1194
- return null;
1195
- throw err;
1196
- }
1197
- }
1198
-
1199
898
  // node_modules/viem/_esm/actions/ens/getEnsAvatar.js
1200
899
  async function getEnsAvatar(client, { blockNumber, blockTag, assetGatewayUrls, name, gatewayUrls, strict, universalResolverAddress }) {
1201
900
  const record = await getAction(client, getEnsText, "getEnsText")({
@@ -1818,15 +1517,15 @@ async function multicall(client, parameters) {
1818
1517
  }
1819
1518
  async function scheduleMulticall(client, parameters) {
1820
1519
  const { batchSize, call: call2, multicallAddress, ...rest } = parameters;
1821
- const { wait: wait2 = 0 } = typeof client.batch?.multicall === "object" ? client.batch.multicall : {};
1520
+ const { wait = 0 } = typeof client.batch?.multicall === "object" ? client.batch.multicall : {};
1822
1521
  const { schedule } = createBatchScheduler({
1823
1522
  id: stringify(["multicall", client.uid, batchSize, multicallAddress, rest]),
1824
- wait: wait2,
1523
+ wait,
1825
1524
  shouldSplitBatch(calls) {
1826
1525
  if (batchSize === 0)
1827
1526
  return false;
1828
- const size4 = calls.reduce((size5, { callData }) => size5 + (callData.length - 2) / 2, 0);
1829
- return size4 > batchSize;
1527
+ const size3 = calls.reduce((size4, { callData }) => size4 + (callData.length - 2) / 2, 0);
1528
+ return size3 > batchSize;
1830
1529
  },
1831
1530
  fn: (calls) => getAction(client, readContract, "readContract")({
1832
1531
  ...multicallAddress === null ? { code: multicall3Bytecode } : { address: multicallAddress },
@@ -1854,7 +1553,7 @@ async function simulateBlocks(client, parameters) {
1854
1553
  const request = {
1855
1554
  ...call2,
1856
1555
  account,
1857
- data: call2.dataSuffix ? concat2([data || "0x", call2.dataSuffix]) : data,
1556
+ data: call2.dataSuffix ? concat([data || "0x", call2.dataSuffix]) : data,
1858
1557
  from: call2.from ?? account?.address
1859
1558
  };
1860
1559
  assertRequest(request);
@@ -1928,6 +1627,10 @@ async function simulateBlocks(client, parameters) {
1928
1627
  }
1929
1628
  }
1930
1629
 
1630
+ // node_modules/viem/_esm/constants/address.js
1631
+ var ethAddress = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee";
1632
+ var zeroAddress = "0x0000000000000000000000000000000000000000";
1633
+
1931
1634
  // node_modules/ox/_esm/core/AbiConstructor.js
1932
1635
  function encode2(...parameters) {
1933
1636
  const [abiConstructor, options] = (() => {
@@ -1938,7 +1641,7 @@ function encode2(...parameters) {
1938
1641
  return parameters;
1939
1642
  })();
1940
1643
  const { bytecode, args } = options;
1941
- return concat(bytecode, abiConstructor.inputs?.length && args?.length ? encode(abiConstructor.inputs, args) : "0x");
1644
+ return concat2(bytecode, abiConstructor.inputs?.length && args?.length ? encode(abiConstructor.inputs, args) : "0x");
1942
1645
  }
1943
1646
  function from2(abiConstructor) {
1944
1647
  return from(abiConstructor);
@@ -1966,7 +1669,7 @@ function encodeData(...parameters) {
1966
1669
  }) : abiFunction;
1967
1670
  const selector = getSelector2(item);
1968
1671
  const data = args.length > 0 ? encode(item.inputs, args) : void 0;
1969
- return data ? concat(selector, data) : selector;
1672
+ return data ? concat2(selector, data) : selector;
1970
1673
  }
1971
1674
  function from3(abiFunction, options = {}) {
1972
1675
  return from(abiFunction, options);
@@ -1981,10 +1684,6 @@ function getSelector2(abiItem) {
1981
1684
  return getSelector(abiItem);
1982
1685
  }
1983
1686
 
1984
- // node_modules/viem/_esm/constants/address.js
1985
- var ethAddress = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee";
1986
- var zeroAddress = "0x0000000000000000000000000000000000000000";
1987
-
1988
1687
  // node_modules/viem/_esm/actions/public/simulateCalls.js
1989
1688
  var getBalanceCode = "0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033";
1990
1689
  async function simulateCalls(client, parameters) {
@@ -2567,77 +2266,18 @@ function watchPendingTransactions(client, { batch = true, onError, onTransaction
2567
2266
  return enablePolling ? pollPendingTransactions() : subscribePendingTransactions();
2568
2267
  }
2569
2268
 
2570
- // node_modules/viem/_esm/utils/siwe/parseSiweMessage.js
2571
- function parseSiweMessage(message) {
2572
- const { scheme, statement, ...prefix } = message.match(prefixRegex)?.groups ?? {};
2573
- const { chainId, expirationTime, issuedAt, notBefore, requestId, ...suffix } = message.match(suffixRegex)?.groups ?? {};
2574
- const resources = message.split("Resources:")[1]?.split("\n- ").slice(1);
2575
- return {
2576
- ...prefix,
2577
- ...suffix,
2578
- ...chainId ? { chainId: Number(chainId) } : {},
2579
- ...expirationTime ? { expirationTime: new Date(expirationTime) } : {},
2580
- ...issuedAt ? { issuedAt: new Date(issuedAt) } : {},
2581
- ...notBefore ? { notBefore: new Date(notBefore) } : {},
2582
- ...requestId ? { requestId } : {},
2583
- ...resources ? { resources } : {},
2584
- ...scheme ? { scheme } : {},
2585
- ...statement ? { statement } : {}
2586
- };
2587
- }
2588
- var prefixRegex = /^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\/\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\n)(?<address>0x[a-fA-F0-9]{40})\n\n(?:(?<statement>.*)\n\n)?/;
2589
- var suffixRegex = /(?:URI: (?<uri>.+))\n(?:Version: (?<version>.+))\n(?:Chain ID: (?<chainId>\d+))\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\n(?:Issued At: (?<issuedAt>.+))(?:\nExpiration Time: (?<expirationTime>.+))?(?:\nNot Before: (?<notBefore>.+))?(?:\nRequest ID: (?<requestId>.+))?/;
2590
-
2591
- // node_modules/viem/_esm/utils/siwe/validateSiweMessage.js
2592
- function validateSiweMessage(parameters) {
2593
- const { address, domain, message, nonce, scheme, time = /* @__PURE__ */ new Date() } = parameters;
2594
- if (domain && message.domain !== domain)
2595
- return false;
2596
- if (nonce && message.nonce !== nonce)
2597
- return false;
2598
- if (scheme && message.scheme !== scheme)
2599
- return false;
2600
- if (message.expirationTime && time >= message.expirationTime)
2601
- return false;
2602
- if (message.notBefore && time < message.notBefore)
2603
- return false;
2604
- try {
2605
- if (!message.address)
2606
- return false;
2607
- if (!isAddress(message.address, { strict: false }))
2608
- return false;
2609
- if (address && !isAddressEqual(message.address, address))
2610
- return false;
2611
- } catch {
2612
- return false;
2613
- }
2614
- return true;
2615
- }
2616
-
2617
- // node_modules/viem/_esm/actions/siwe/verifySiweMessage.js
2618
- async function verifySiweMessage(client, parameters) {
2619
- const { address, domain, message, nonce, scheme, signature, time = /* @__PURE__ */ new Date(), ...callRequest } = parameters;
2620
- const parsed = parseSiweMessage(message);
2621
- if (!parsed.address)
2622
- return false;
2623
- const isValid = validateSiweMessage({
2624
- address,
2625
- domain,
2626
- message: parsed,
2627
- nonce,
2628
- scheme,
2629
- time
2630
- });
2631
- if (!isValid)
2632
- return false;
2633
- const hash = hashMessage(message);
2634
- return verifyHash(client, {
2635
- address: parsed.address,
2636
- hash,
2637
- signature,
2638
- ...callRequest
2639
- });
2640
- }
2269
+ // node_modules/viem/_esm/actions/token/index.js
2270
+ var token_exports = {};
2271
+ __export(token_exports, {
2272
+ approve: () => approve,
2273
+ approveSync: () => approveSync,
2274
+ getAllowance: () => getAllowance,
2275
+ getBalance: () => getBalance2,
2276
+ getMetadata: () => getMetadata,
2277
+ getTotalSupply: () => getTotalSupply,
2278
+ transfer: () => transfer,
2279
+ transferSync: () => transferSync
2280
+ });
2641
2281
 
2642
2282
  // node_modules/viem/_esm/actions/token/internal.js
2643
2283
  function toAmount(amount, decimals) {
@@ -3017,93 +2657,6 @@ async function transferSync(client, parameters) {
3017
2657
  };
3018
2658
  }
3019
2659
 
3020
- // node_modules/viem/_esm/clients/decorators/public.js
3021
- function publicActions(client) {
3022
- return {
3023
- call: (args) => call(client, args),
3024
- createAccessList: (args) => createAccessList(client, args),
3025
- createBlockFilter: () => createBlockFilter(client),
3026
- createContractEventFilter: (args) => createContractEventFilter(client, args),
3027
- createEventFilter: (args) => createEventFilter(client, args),
3028
- createPendingTransactionFilter: () => createPendingTransactionFilter(client),
3029
- estimateContractGas: (args) => estimateContractGas(client, args),
3030
- estimateGas: (args) => estimateGas(client, args),
3031
- getBalance: (args) => getBalance(client, args),
3032
- getBlobBaseFee: () => getBlobBaseFee(client),
3033
- getBlock: (args) => getBlock(client, args),
3034
- getBlockNumber: (args) => getBlockNumber(client, args),
3035
- getBlockReceipts: (args) => getBlockReceipts(client, args),
3036
- getBlockTransactionCount: (args) => getBlockTransactionCount(client, args),
3037
- getBytecode: (args) => getCode(client, args),
3038
- getChainId: () => getChainId(client),
3039
- getCode: (args) => getCode(client, args),
3040
- getContractEvents: (args) => getContractEvents(client, args),
3041
- getDelegation: (args) => getDelegation(client, args),
3042
- getEip712Domain: (args) => getEip712Domain(client, args),
3043
- getEnsAddress: (args) => getEnsAddress(client, args),
3044
- getEnsAvatar: (args) => getEnsAvatar(client, args),
3045
- getEnsName: (args) => getEnsName(client, args),
3046
- getEnsResolver: (args) => getEnsResolver(client, args),
3047
- getEnsText: (args) => getEnsText(client, args),
3048
- getFeeHistory: (args) => getFeeHistory(client, args),
3049
- estimateFeesPerGas: (args) => estimateFeesPerGas(client, args),
3050
- getFilterChanges: (args) => getFilterChanges(client, args),
3051
- getFilterLogs: (args) => getFilterLogs(client, args),
3052
- getGasPrice: () => getGasPrice(client),
3053
- getLogs: (args) => getLogs(client, args),
3054
- getProof: (args) => getProof(client, args),
3055
- estimateMaxPriorityFeePerGas: (args) => estimateMaxPriorityFeePerGas(client, args),
3056
- fillTransaction: (args) => fillTransaction(client, args),
3057
- getRawTransaction: (args) => getRawTransaction(client, args),
3058
- getStorageAt: (args) => getStorageAt(client, args),
3059
- getTransaction: (args) => getTransaction(client, args),
3060
- getTransactionConfirmations: (args) => getTransactionConfirmations(client, args),
3061
- getTransactionCount: (args) => getTransactionCount(client, args),
3062
- getTransactionReceipt: (args) => getTransactionReceipt(client, args),
3063
- multicall: (args) => multicall(client, args),
3064
- prepareTransactionRequest: (args) => prepareTransactionRequest(client, args),
3065
- readContract: (args) => readContract(client, args),
3066
- sendRawTransaction: (args) => sendRawTransaction(client, args),
3067
- sendRawTransactionSync: (args) => sendRawTransactionSync(client, args),
3068
- simulate: (args) => simulateBlocks(client, args),
3069
- simulateBlocks: (args) => simulateBlocks(client, args),
3070
- simulateCalls: (args) => simulateCalls(client, args),
3071
- simulateContract: (args) => simulateContract(client, args),
3072
- verifyHash: (args) => verifyHash(client, args),
3073
- verifyMessage: (args) => verifyMessage(client, args),
3074
- verifySiweMessage: (args) => verifySiweMessage(client, args),
3075
- verifyTypedData: (args) => verifyTypedData(client, args),
3076
- uninstallFilter: (args) => uninstallFilter(client, args),
3077
- waitForTransactionReceipt: (args) => waitForTransactionReceipt(client, args),
3078
- watchBlocks: (args) => watchBlocks(client, args),
3079
- watchBlockNumber: (args) => watchBlockNumber(client, args),
3080
- watchContractEvent: (args) => watchContractEvent(client, args),
3081
- watchEvent: (args) => watchEvent(client, args),
3082
- watchPendingTransactions: (args) => watchPendingTransactions(client, args),
3083
- token: bindPublicToken(client)
3084
- };
3085
- }
3086
- function bindPublicToken(client) {
3087
- return {
3088
- getAllowance: bindActionDecorators(client, getAllowance),
3089
- getBalance: bindActionDecorators(client, getBalance2),
3090
- getMetadata: bindActionDecorators(client, getMetadata),
3091
- getTotalSupply: bindActionDecorators(client, getTotalSupply)
3092
- };
3093
- }
3094
-
3095
- // node_modules/viem/_esm/clients/createPublicClient.js
3096
- function createPublicClient(parameters) {
3097
- const { key = "public", name = "Public Client" } = parameters;
3098
- const client = createClient({
3099
- ...parameters,
3100
- key,
3101
- name,
3102
- type: "publicClient"
3103
- });
3104
- return client.extend(publicActions);
3105
- }
3106
-
3107
2660
  // node_modules/viem/_esm/actions/test/dropTransaction.js
3108
2661
  async function dropTransaction(client, { hash }) {
3109
2662
  await client.request({
@@ -3375,12 +2928,12 @@ async function setRpcUrl(client, jsonRpcUrl) {
3375
2928
  }
3376
2929
 
3377
2930
  // node_modules/viem/_esm/actions/test/setStorageAt.js
3378
- async function setStorageAt(client, { address, index: index2, value }) {
2931
+ async function setStorageAt(client, { address, index, value }) {
3379
2932
  await client.request({
3380
2933
  method: `${client.mode}_setStorageAt`,
3381
2934
  params: [
3382
2935
  address,
3383
- typeof index2 === "number" ? numberToHex(index2) : index2,
2936
+ typeof index === "number" ? numberToHex(index) : index,
3384
2937
  value
3385
2938
  ]
3386
2939
  });
@@ -3401,62 +2954,6 @@ async function stopImpersonatingAccount(client, { address }) {
3401
2954
  });
3402
2955
  }
3403
2956
 
3404
- // node_modules/viem/_esm/clients/decorators/test.js
3405
- function testActions({ mode }) {
3406
- return (client_) => {
3407
- const client = client_.extend(() => ({
3408
- mode
3409
- }));
3410
- return {
3411
- dropTransaction: (args) => dropTransaction(client, args),
3412
- dumpState: () => dumpState(client),
3413
- getAutomine: () => getAutomine(client),
3414
- getTxpoolContent: () => getTxpoolContent(client),
3415
- getTxpoolStatus: () => getTxpoolStatus(client),
3416
- impersonateAccount: (args) => impersonateAccount(client, args),
3417
- increaseTime: (args) => increaseTime(client, args),
3418
- inspectTxpool: () => inspectTxpool(client),
3419
- loadState: (args) => loadState(client, args),
3420
- mine: (args) => mine(client, args),
3421
- removeBlockTimestampInterval: () => removeBlockTimestampInterval(client),
3422
- reset: (args) => reset(client, args),
3423
- revert: (args) => revert(client, args),
3424
- sendUnsignedTransaction: (args) => sendUnsignedTransaction(client, args),
3425
- setAutomine: (args) => setAutomine(client, args),
3426
- setBalance: (args) => setBalance(client, args),
3427
- setBlockGasLimit: (args) => setBlockGasLimit(client, args),
3428
- setBlockTimestampInterval: (args) => setBlockTimestampInterval(client, args),
3429
- setCode: (args) => setCode(client, args),
3430
- setCoinbase: (args) => setCoinbase(client, args),
3431
- setIntervalMining: (args) => setIntervalMining(client, args),
3432
- setLoggingEnabled: (args) => setLoggingEnabled(client, args),
3433
- setMinGasPrice: (args) => setMinGasPrice(client, args),
3434
- setNextBlockBaseFeePerGas: (args) => setNextBlockBaseFeePerGas(client, args),
3435
- setNextBlockTimestamp: (args) => setNextBlockTimestamp(client, args),
3436
- setNonce: (args) => setNonce(client, args),
3437
- setRpcUrl: (args) => setRpcUrl(client, args),
3438
- setStorageAt: (args) => setStorageAt(client, args),
3439
- snapshot: () => snapshot(client),
3440
- stopImpersonatingAccount: (args) => stopImpersonatingAccount(client, args)
3441
- };
3442
- };
3443
- }
3444
-
3445
- // node_modules/viem/_esm/clients/createTestClient.js
3446
- function createTestClient(parameters) {
3447
- const { key = "test", name = "Test Client", mode } = parameters;
3448
- const client = createClient({
3449
- ...parameters,
3450
- key,
3451
- name,
3452
- type: "testClient"
3453
- });
3454
- return client.extend((config) => ({
3455
- mode,
3456
- ...testActions({ mode })(config)
3457
- }));
3458
- }
3459
-
3460
2957
  // node_modules/viem/_esm/actions/wallet/addChain.js
3461
2958
  async function addChain(client, { chain }) {
3462
2959
  const { id, name, nativeCurrency, rpcUrls, blockExplorers } = chain;
@@ -3716,672 +3213,107 @@ async function watchAsset(client, params) {
3716
3213
  return added;
3717
3214
  }
3718
3215
 
3719
- // node_modules/viem/_esm/clients/decorators/wallet.js
3720
- function walletActions(client) {
3721
- return {
3722
- addChain: (args) => addChain(client, args),
3723
- deployContract: (args) => deployContract(client, args),
3724
- fillTransaction: (args) => fillTransaction(client, args),
3725
- getAddresses: () => getAddresses(client),
3726
- getCallsStatus: (args) => getCallsStatus(client, args),
3727
- getCapabilities: (args) => getCapabilities(client, args),
3728
- getChainId: () => getChainId(client),
3729
- getPermissions: () => getPermissions(client),
3730
- prepareAuthorization: (args) => prepareAuthorization(client, args),
3731
- prepareTransactionRequest: (args) => prepareTransactionRequest(client, args),
3732
- requestAddresses: () => requestAddresses(client),
3733
- requestPermissions: (args) => requestPermissions(client, args),
3734
- sendCalls: (args) => sendCalls(client, args),
3735
- sendCallsSync: (args) => sendCallsSync(client, args),
3736
- sendRawTransaction: (args) => sendRawTransaction(client, args),
3737
- sendRawTransactionSync: (args) => sendRawTransactionSync(client, args),
3738
- sendTransaction: (args) => sendTransaction(client, args),
3739
- sendTransactionSync: (args) => sendTransactionSync(client, args),
3740
- showCallsStatus: (args) => showCallsStatus(client, args),
3741
- signAuthorization: (args) => signAuthorization(client, args),
3742
- signMessage: (args) => signMessage(client, args),
3743
- signTransaction: (args) => signTransaction(client, args),
3744
- signTypedData: (args) => signTypedData(client, args),
3745
- switchChain: (args) => switchChain(client, args),
3746
- waitForCallsStatus: (args) => waitForCallsStatus(client, args),
3747
- watchAsset: (args) => watchAsset(client, args),
3748
- writeContract: (args) => writeContract(client, args),
3749
- writeContractSync: (args) => writeContractSync(client, args),
3750
- token: {
3751
- approve: bindActionDecorators(client, approve),
3752
- approveSync: bindActionDecorators(client, approveSync),
3753
- transfer: bindActionDecorators(client, transfer),
3754
- transferSync: bindActionDecorators(client, transferSync)
3755
- }
3756
- };
3757
- }
3758
-
3759
- // node_modules/viem/_esm/clients/createWalletClient.js
3760
- function createWalletClient(parameters) {
3761
- const { key = "wallet", name = "Wallet Client", transport } = parameters;
3762
- const client = createClient({
3763
- ...parameters,
3764
- key,
3765
- name,
3766
- transport,
3767
- type: "walletClient"
3768
- });
3769
- return client.extend(walletActions);
3770
- }
3771
-
3772
- // node_modules/viem/_esm/clients/transports/createTransport.js
3773
- function createTransport({ key, methods, name, request, retryCount = 3, retryDelay = 150, timeout, type }, value) {
3774
- const uid2 = uid();
3775
- return {
3776
- config: {
3777
- key,
3778
- methods,
3779
- name,
3780
- request,
3781
- retryCount,
3782
- retryDelay,
3783
- timeout,
3784
- type
3785
- },
3786
- request: buildRequest(request, { methods, retryCount, retryDelay, uid: uid2 }),
3787
- value
3788
- };
3789
- }
3790
-
3791
- // node_modules/viem/_esm/clients/transports/custom.js
3792
- function custom(provider, config = {}) {
3793
- const { key = "custom", methods, name = "Custom Provider", retryDelay } = config;
3794
- return ({ retryCount: defaultRetryCount }) => createTransport({
3795
- key,
3796
- methods,
3797
- name,
3798
- request: provider.request.bind(provider),
3799
- retryCount: config.retryCount ?? defaultRetryCount,
3800
- retryDelay,
3801
- type: "custom"
3802
- });
3803
- }
3804
-
3805
- // node_modules/viem/_esm/clients/transports/fallback.js
3806
- function fallback(transports_, config = {}) {
3807
- const { key = "fallback", name = "Fallback", rank = false, shouldThrow: shouldThrow_ = shouldThrow, retryCount, retryDelay } = config;
3808
- return (({ chain, pollingInterval = 4e3, timeout, ...rest }) => {
3809
- let transports = transports_;
3810
- let onResponse = () => {
3811
- };
3812
- const transport = createTransport({
3813
- key,
3814
- name,
3815
- async request({ method, params }) {
3816
- let includes;
3817
- const fetch2 = async (i = 0) => {
3818
- const transport2 = transports[i]({
3819
- ...rest,
3820
- chain,
3821
- retryCount: 0,
3822
- timeout
3823
- });
3824
- try {
3825
- const response = await transport2.request({
3826
- method,
3827
- params
3828
- });
3829
- onResponse({
3830
- method,
3831
- params,
3832
- response,
3833
- transport: transport2,
3834
- status: "success"
3835
- });
3836
- return response;
3837
- } catch (err) {
3838
- onResponse({
3839
- error: err,
3840
- method,
3841
- params,
3842
- transport: transport2,
3843
- status: "error"
3844
- });
3845
- if (shouldThrow_(err))
3846
- throw err;
3847
- if (i === transports.length - 1)
3848
- throw err;
3849
- includes ??= transports.slice(i + 1).some((transport3) => {
3850
- const { include, exclude } = transport3({ chain }).config.methods || {};
3851
- if (include)
3852
- return include.includes(method);
3853
- if (exclude)
3854
- return !exclude.includes(method);
3855
- return true;
3856
- });
3857
- if (!includes)
3858
- throw err;
3859
- return fetch2(i + 1);
3860
- }
3861
- };
3862
- return fetch2();
3863
- },
3864
- retryCount,
3865
- retryDelay,
3866
- type: "fallback"
3867
- }, {
3868
- onResponse: (fn) => onResponse = fn,
3869
- transports: transports.map((fn) => fn({ chain, retryCount: 0 }))
3870
- });
3871
- if (rank) {
3872
- const rankOptions = typeof rank === "object" ? rank : {};
3873
- rankTransports({
3874
- chain,
3875
- interval: rankOptions.interval ?? pollingInterval,
3876
- onTransports: (transports_2) => transports = transports_2,
3877
- ping: rankOptions.ping,
3878
- sampleCount: rankOptions.sampleCount,
3879
- timeout: rankOptions.timeout,
3880
- transports,
3881
- weights: rankOptions.weights
3882
- });
3883
- }
3884
- return transport;
3885
- });
3886
- }
3887
- function shouldThrow(error) {
3888
- if ("code" in error && typeof error.code === "number") {
3889
- if (error.code === TransactionRejectedRpcError.code || error.code === UserRejectedRequestError.code || error.code === WalletConnectSessionSettlementError.code || ExecutionRevertedError.nodeMessage.test(error.message) || error.code === 5e3)
3890
- return true;
3891
- }
3892
- return false;
3893
- }
3894
- function rankTransports({ chain, interval = 4e3, onTransports, ping, sampleCount = 10, timeout = 1e3, transports, weights = {} }) {
3895
- const { stability: stabilityWeight = 0.7, latency: latencyWeight = 0.3 } = weights;
3896
- const samples = [];
3897
- const rankTransports_ = async () => {
3898
- const sample = await Promise.all(transports.map(async (transport) => {
3899
- const transport_ = transport({ chain, retryCount: 0, timeout });
3900
- const start = Date.now();
3901
- let end;
3902
- let success;
3903
- try {
3904
- await (ping ? ping({ transport: transport_ }) : transport_.request({ method: "net_listening" }));
3905
- success = 1;
3906
- } catch {
3907
- success = 0;
3908
- } finally {
3909
- end = Date.now();
3910
- }
3911
- const latency = end - start;
3912
- return { latency, success };
3913
- }));
3914
- samples.push(sample);
3915
- if (samples.length > sampleCount)
3916
- samples.shift();
3917
- const maxLatency = Math.max(...samples.map((sample2) => Math.max(...sample2.map(({ latency }) => latency))));
3918
- const scores = transports.map((_, i) => {
3919
- const latencies = samples.map((sample2) => sample2[i].latency);
3920
- const meanLatency = latencies.reduce((acc, latency) => acc + latency, 0) / latencies.length;
3921
- const latencyScore = 1 - meanLatency / maxLatency;
3922
- const successes = samples.map((sample2) => sample2[i].success);
3923
- const stabilityScore = successes.reduce((acc, success) => acc + success, 0) / successes.length;
3924
- if (stabilityScore === 0)
3925
- return [0, i];
3926
- return [
3927
- latencyWeight * latencyScore + stabilityWeight * stabilityScore,
3928
- i
3929
- ];
3930
- }).sort((a, b) => b[0] - a[0]);
3931
- onTransports(scores.map(([, i]) => transports[i]));
3932
- await wait(interval);
3933
- rankTransports_();
3934
- };
3935
- rankTransports_();
3936
- }
3937
-
3938
- // node_modules/viem/_esm/errors/transport.js
3939
- var UrlRequiredError = class extends BaseError {
3940
- constructor() {
3941
- super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.", {
3942
- docsPath: "/docs/clients/intro",
3943
- name: "UrlRequiredError"
3944
- });
3945
- }
3946
- };
3947
-
3948
- // node_modules/viem/_esm/clients/transports/http.js
3949
- var signalId = 0;
3950
- var signalIds = /* @__PURE__ */ new WeakMap();
3951
- function getSignalId(signal) {
3952
- if (!signal)
3953
- return "default";
3954
- const id = signalIds.get(signal);
3955
- if (id !== void 0)
3956
- return id;
3957
- const nextId = signalId++;
3958
- signalIds.set(signal, nextId);
3959
- return nextId;
3960
- }
3961
- function http(url, config = {}) {
3962
- const { batch, fetchFn, fetchOptions, key = "http", maxResponseBodySize, methods, name = "HTTP JSON-RPC", onFetchRequest, onFetchResponse, retryDelay, raw } = config;
3963
- return ({ chain, retryCount: retryCount_, timeout: timeout_ }) => {
3964
- const { batchSize = 1e3, wait: wait2 = 0 } = typeof batch === "object" ? batch : {};
3965
- const retryCount = config.retryCount ?? retryCount_;
3966
- const timeout = timeout_ ?? config.timeout ?? 1e4;
3967
- const url_ = url || chain?.rpcUrls.default.http[0];
3968
- if (!url_)
3969
- throw new UrlRequiredError();
3970
- const rpcClient = getHttpRpcClient(url_, {
3971
- fetchFn,
3972
- fetchOptions,
3973
- maxResponseBodySize,
3974
- onRequest: onFetchRequest,
3975
- onResponse: onFetchResponse,
3976
- timeout
3977
- });
3978
- return createTransport({
3979
- key,
3980
- methods,
3981
- name,
3982
- async request({ method, params }, options) {
3983
- const body = { method, params };
3984
- const fetchOptions2 = options?.signal ? { signal: options.signal } : void 0;
3985
- const { schedule } = createBatchScheduler({
3986
- id: `${url_}.${getSignalId(options?.signal)}`,
3987
- wait: wait2,
3988
- shouldSplitBatch(requests) {
3989
- return requests.length > batchSize;
3990
- },
3991
- fn: (body2) => rpcClient.request({
3992
- body: body2,
3993
- fetchOptions: fetchOptions2
3994
- }),
3995
- sort: (a, b) => a.id - b.id
3996
- });
3997
- const fn = async (body2) => batch ? schedule(body2) : [
3998
- await rpcClient.request({
3999
- body: body2,
4000
- fetchOptions: fetchOptions2
4001
- })
4002
- ];
4003
- const [{ error, result }] = await fn(body);
4004
- if (raw)
4005
- return { error, result };
4006
- if (error)
4007
- throw new RpcRequestError({
4008
- body,
4009
- error,
4010
- url: url_
4011
- });
4012
- return result;
4013
- },
4014
- retryCount,
4015
- retryDelay,
4016
- timeout,
4017
- type: "http"
4018
- }, {
4019
- fetchOptions,
4020
- url: url_
4021
- });
4022
- };
4023
- }
4024
-
4025
- // node_modules/viem/_esm/clients/transports/webSocket.js
4026
- function webSocket(url, config = {}) {
4027
- const { keepAlive, key = "webSocket", methods, name = "WebSocket JSON-RPC", reconnect, retryDelay } = config;
4028
- return ({ chain, retryCount: retryCount_, timeout: timeout_ }) => {
4029
- const retryCount = config.retryCount ?? retryCount_;
4030
- const timeout = timeout_ ?? config.timeout ?? 1e4;
4031
- const url_ = url || chain?.rpcUrls.default.webSocket?.[0];
4032
- const wsRpcClientOpts = { keepAlive, reconnect };
4033
- if (!url_)
4034
- throw new UrlRequiredError();
4035
- return createTransport({
4036
- key,
4037
- methods,
4038
- name,
4039
- async request({ method, params }) {
4040
- const body = { method, params };
4041
- const rpcClient = await getWebSocketRpcClient(url_, wsRpcClientOpts);
4042
- const { error, result } = await rpcClient.requestAsync({
4043
- body,
4044
- timeout
4045
- });
4046
- if (error)
4047
- throw new RpcRequestError({
4048
- body,
4049
- error,
4050
- url: url_
4051
- });
4052
- return result;
4053
- },
4054
- retryCount,
4055
- retryDelay,
4056
- timeout,
4057
- type: "webSocket"
4058
- }, {
4059
- getSocket() {
4060
- return getSocket(url_);
4061
- },
4062
- getRpcClient() {
4063
- return getWebSocketRpcClient(url_, wsRpcClientOpts);
4064
- },
4065
- async subscribe({ params, onData, onError }) {
4066
- const rpcClient = await getWebSocketRpcClient(url_, wsRpcClientOpts);
4067
- const { result: subscriptionId } = await new Promise((resolve, reject) => rpcClient.request({
4068
- body: {
4069
- method: "eth_subscribe",
4070
- params
4071
- },
4072
- onError(error) {
4073
- reject(error);
4074
- onError?.(error);
4075
- return;
4076
- },
4077
- onResponse(response) {
4078
- if (response.error) {
4079
- reject(response.error);
4080
- onError?.(response.error);
4081
- return;
4082
- }
4083
- if (typeof response.id === "number") {
4084
- resolve(response);
4085
- return;
4086
- }
4087
- if (response.method !== "eth_subscription")
4088
- return;
4089
- onData(response.params);
4090
- }
4091
- }));
4092
- return {
4093
- subscriptionId,
4094
- async unsubscribe() {
4095
- return new Promise((resolve) => rpcClient.request({
4096
- body: {
4097
- method: "eth_unsubscribe",
4098
- params: [subscriptionId]
4099
- },
4100
- onResponse: resolve
4101
- }));
4102
- }
4103
- };
4104
- }
4105
- });
4106
- };
4107
- }
4108
-
4109
- // node_modules/viem/_esm/constants/unit.js
4110
- var etherUnits = {
4111
- gwei: 9,
4112
- wei: 18
4113
- };
4114
- var gweiUnits = {
4115
- ether: -9,
4116
- wei: 9
4117
- };
4118
- var weiUnits = {
4119
- ether: -18,
4120
- gwei: -9
4121
- };
4122
-
4123
- // node_modules/viem/_esm/errors/unit.js
4124
- var InvalidDecimalNumberError = class extends BaseError {
4125
- constructor({ value }) {
4126
- super(`Number \`${value}\` is not a valid decimal number.`, {
4127
- name: "InvalidDecimalNumberError"
4128
- });
4129
- }
4130
- };
4131
-
4132
- // node_modules/viem/_esm/types/eip1193.js
4133
- var ProviderRpcError = class extends Error {
4134
- constructor(code, message) {
4135
- super(message);
4136
- Object.defineProperty(this, "code", {
4137
- enumerable: true,
4138
- configurable: true,
4139
- writable: true,
4140
- value: void 0
4141
- });
4142
- Object.defineProperty(this, "details", {
4143
- enumerable: true,
4144
- configurable: true,
4145
- writable: true,
4146
- value: void 0
4147
- });
4148
- this.code = code;
4149
- this.details = message;
4150
- }
4151
- };
4152
-
4153
- // node_modules/viem/_esm/utils/abi/decodeDeployData.js
4154
- var docsPath = "/docs/contract/decodeDeployData";
4155
- function decodeDeployData(parameters) {
4156
- const { abi: abi2, bytecode, data } = parameters;
4157
- if (data === bytecode)
4158
- return { bytecode };
4159
- const description = abi2.find((x) => "type" in x && x.type === "constructor");
4160
- if (!description)
4161
- throw new AbiConstructorNotFoundError({ docsPath });
4162
- if (!("inputs" in description))
4163
- throw new AbiConstructorParamsNotFoundError({ docsPath });
4164
- if (!description.inputs || description.inputs.length === 0)
4165
- throw new AbiConstructorParamsNotFoundError({ docsPath });
4166
- const args = decodeAbiParameters(description.inputs, `0x${data.replace(bytecode, "")}`);
4167
- return { args, bytecode };
4168
- }
4169
-
4170
- // node_modules/viem/_esm/utils/blob/fromBlobs.js
4171
- function fromBlobs(parameters) {
4172
- const to = parameters.to ?? (typeof parameters.blobs[0] === "string" ? "hex" : "bytes");
4173
- const blobs = typeof parameters.blobs[0] === "string" ? parameters.blobs.map((x) => hexToBytes(x)) : parameters.blobs;
4174
- const length = blobs.reduce((length2, blob) => length2 + blob.length, 0);
4175
- const data = createCursor(new Uint8Array(length));
4176
- let active = true;
4177
- for (const [index2, blob] of blobs.entries()) {
4178
- const cursor = createCursor(blob);
4179
- const isLastBlob = index2 === blobs.length - 1;
4180
- while (active && cursor.position < blob.length) {
4181
- cursor.incrementPosition(1);
4182
- let consume = 31;
4183
- if (blob.length - cursor.position < 31)
4184
- consume = blob.length - cursor.position;
4185
- for (const _ in Array.from({ length: consume })) {
4186
- const byte = cursor.readByte();
4187
- const isTerminator = isLastBlob && byte === 128 && !cursor.inspectBytes(cursor.remaining).includes(128);
4188
- if (isTerminator) {
4189
- active = false;
4190
- break;
4191
- }
4192
- data.pushByte(byte);
4193
- }
4194
- }
4195
- }
4196
- const trimmedData = data.bytes.slice(0, data.position);
4197
- return to === "hex" ? bytesToHex(trimmedData) : trimmedData;
4198
- }
4199
-
4200
- // node_modules/viem/_esm/utils/blob/sidecarsToVersionedHashes.js
4201
- function sidecarsToVersionedHashes(parameters) {
4202
- const { sidecars, version } = parameters;
4203
- const to = parameters.to ?? (typeof sidecars[0].blob === "string" ? "hex" : "bytes");
4204
- const hashes = [];
4205
- for (const { commitment } of sidecars) {
4206
- hashes.push(commitmentToVersionedHash({
4207
- commitment,
4208
- to,
4209
- version
4210
- }));
4211
- }
4212
- return hashes;
4213
- }
4214
-
4215
- // node_modules/viem/_esm/utils/ens/toCoinType.js
4216
- var SLIP44_MSB = 2147483648;
4217
- function toCoinType(chainId) {
4218
- if (chainId === 1)
4219
- return 60n;
4220
- if (chainId >= SLIP44_MSB || chainId < 0)
4221
- throw new EnsInvalidChainIdError({ chainId });
4222
- return BigInt((2147483648 | chainId) >>> 0);
4223
- }
4224
-
4225
- // node_modules/viem/_esm/utils/kzg/defineKzg.js
4226
- function defineKzg({ blobToKzgCommitment, computeBlobKzgProof }) {
4227
- return {
4228
- blobToKzgCommitment,
4229
- computeBlobKzgProof
4230
- };
4231
- }
4232
-
4233
- // node_modules/viem/_esm/utils/kzg/setupKzg.js
4234
- function setupKzg(parameters, path) {
4235
- try {
4236
- parameters.loadTrustedSetup(path);
4237
- } catch (e) {
4238
- const error = e;
4239
- if (!error.message.includes("trusted setup is already loaded"))
4240
- throw error;
4241
- }
4242
- return defineKzg(parameters);
4243
- }
4244
-
4245
- // node_modules/viem/_esm/utils/signature/compactSignatureToSignature.js
4246
- function compactSignatureToSignature({ r, yParityAndS }) {
4247
- const yParityAndS_bytes = hexToBytes(yParityAndS);
4248
- const yParity = yParityAndS_bytes[0] & 128 ? 1 : 0;
4249
- const s = yParityAndS_bytes;
4250
- if (yParity === 1)
4251
- s[0] &= 127;
4252
- return { r, s: bytesToHex(s), yParity };
4253
- }
4254
-
4255
- // node_modules/viem/_esm/utils/signature/parseCompactSignature.js
4256
- function parseCompactSignature(signatureHex) {
4257
- const { r, s } = secp256k1.Signature.fromCompact(signatureHex.slice(2, 130));
4258
- return {
4259
- r: numberToHex(r, { size: 32 }),
4260
- yParityAndS: numberToHex(s, { size: 32 })
4261
- };
4262
- }
4263
-
4264
- // node_modules/viem/_esm/utils/signature/parseSignature.js
4265
- function parseSignature(signatureHex) {
4266
- const { r, s } = secp256k1.Signature.fromCompact(signatureHex.slice(2, 130));
4267
- const yParityOrV = Number(`0x${signatureHex.slice(130)}`);
4268
- const [v, yParity] = (() => {
4269
- if (yParityOrV === 0 || yParityOrV === 1)
4270
- return [void 0, yParityOrV];
4271
- if (yParityOrV === 27)
4272
- return [BigInt(yParityOrV), 0];
4273
- if (yParityOrV === 28)
4274
- return [BigInt(yParityOrV), 1];
4275
- throw new Error("Invalid yParityOrV value");
4276
- })();
4277
- if (typeof v !== "undefined")
4278
- return {
4279
- r: numberToHex(r, { size: 32 }),
4280
- s: numberToHex(s, { size: 32 }),
4281
- v,
4282
- yParity
4283
- };
4284
- return {
4285
- r: numberToHex(r, { size: 32 }),
4286
- s: numberToHex(s, { size: 32 }),
4287
- yParity
4288
- };
4289
- }
4290
-
4291
- // node_modules/viem/_esm/utils/signature/recoverTransactionAddress.js
4292
- async function recoverTransactionAddress(parameters) {
4293
- const { serializedTransaction, signature: signature_ } = parameters;
4294
- const transaction = parseTransaction(serializedTransaction);
4295
- const signature = signature_ ?? {
4296
- r: transaction.r,
4297
- s: transaction.s,
4298
- v: transaction.v,
4299
- yParity: transaction.yParity
4300
- };
4301
- const serialized = serializeTransaction({
4302
- ...transaction,
4303
- r: void 0,
4304
- s: void 0,
4305
- v: void 0,
4306
- yParity: void 0,
4307
- sidecars: void 0
4308
- });
4309
- return await recoverAddress({
4310
- hash: keccak256(serialized),
4311
- signature
4312
- });
4313
- }
4314
-
4315
- // node_modules/viem/_esm/utils/signature/serializeCompactSignature.js
4316
- function serializeCompactSignature({ r, yParityAndS }) {
4317
- return `0x${new secp256k1.Signature(hexToBigInt(r), hexToBigInt(yParityAndS)).toCompactHex()}`;
4318
- }
4319
-
4320
- // node_modules/viem/_esm/utils/signature/signatureToCompactSignature.js
4321
- function signatureToCompactSignature(signature) {
4322
- const { r, s, v, yParity } = signature;
4323
- const yParity_ = Number(yParity ?? v - 27n);
4324
- let yParityAndS = s;
4325
- if (yParity_ === 1) {
4326
- const bytes = hexToBytes(s);
4327
- bytes[0] |= 128;
4328
- yParityAndS = bytesToHex(bytes);
4329
- }
4330
- return { r, yParityAndS };
4331
- }
4332
-
4333
3216
  export {
4334
3217
  estimateContractGas,
4335
3218
  simulateContract,
4336
- getContract,
4337
3219
  BundleFailedError,
3220
+ sendCalls,
3221
+ getCallsStatus,
3222
+ waitForCallsStatus,
4338
3223
  WaitForCallsStatusTimeoutError,
4339
- createClient,
4340
- rpcSchema,
4341
3224
  namehash,
4342
3225
  labelhash,
3226
+ getEnsAddress,
4343
3227
  EnsAvatarInvalidNftUriError,
4344
3228
  EnsAvatarUriResolutionError,
4345
3229
  EnsAvatarUnsupportedNamespaceError,
4346
3230
  EnsInvalidChainIdError,
3231
+ getEnsText,
3232
+ getEnsAvatar,
3233
+ getEnsName,
3234
+ getEnsResolver,
3235
+ createAccessList,
3236
+ createBlockFilter,
3237
+ createEventFilter,
3238
+ createPendingTransactionFilter,
3239
+ getBalance,
3240
+ getBlobBaseFee,
3241
+ getBlockReceipts,
3242
+ getBlockTransactionCount,
3243
+ getDelegation,
3244
+ getEip712Domain,
3245
+ getFeeHistory,
3246
+ getFilterLogs,
3247
+ getProof,
3248
+ getRawTransaction,
3249
+ getStorageAt,
3250
+ getTransactionConfirmations,
4347
3251
  multicall,
3252
+ simulateBlocks,
4348
3253
  ethAddress,
4349
3254
  zeroAddress,
3255
+ simulateCalls,
3256
+ verifyMessage,
4350
3257
  verifyTypedData,
3258
+ watchBlocks,
3259
+ watchEvent,
3260
+ watchPendingTransactions,
4351
3261
  toAmount,
4352
3262
  toBaseUnits,
4353
3263
  resolveAmountDecimals,
4354
- publicActions,
4355
- createPublicClient,
4356
- testActions,
4357
- createTestClient,
3264
+ approve,
3265
+ approveSync,
3266
+ getAllowance,
3267
+ getBalance2,
3268
+ getMetadata,
3269
+ getTotalSupply,
3270
+ transfer,
3271
+ transferSync,
3272
+ token_exports,
3273
+ dropTransaction,
3274
+ dumpState,
3275
+ getAutomine,
3276
+ getTxpoolContent,
3277
+ getTxpoolStatus,
3278
+ impersonateAccount,
3279
+ increaseTime,
3280
+ inspectTxpool,
3281
+ loadState,
3282
+ mine,
3283
+ removeBlockTimestampInterval,
3284
+ reset,
3285
+ revert,
3286
+ sendUnsignedTransaction,
3287
+ setAutomine,
3288
+ setBalance,
3289
+ setBlockGasLimit,
3290
+ setBlockTimestampInterval,
3291
+ setCode,
3292
+ setCoinbase,
3293
+ setIntervalMining,
3294
+ setLoggingEnabled,
3295
+ setMinGasPrice,
3296
+ setNextBlockBaseFeePerGas,
3297
+ setNextBlockTimestamp,
3298
+ setNonce,
3299
+ setRpcUrl,
3300
+ setStorageAt,
3301
+ snapshot,
3302
+ stopImpersonatingAccount,
3303
+ addChain,
3304
+ deployContract,
3305
+ getAddresses,
3306
+ getCapabilities,
3307
+ getPermissions,
3308
+ prepareAuthorization,
3309
+ requestAddresses,
3310
+ requestPermissions,
4358
3311
  sendCallsSync,
3312
+ showCallsStatus,
3313
+ signAuthorization,
3314
+ signMessage,
4359
3315
  signTransaction,
4360
3316
  signTypedData,
4361
- walletActions,
4362
- createWalletClient,
4363
- createTransport,
4364
- custom,
4365
- fallback,
4366
- shouldThrow,
4367
- UrlRequiredError,
4368
- http,
4369
- webSocket,
4370
- etherUnits,
4371
- gweiUnits,
4372
- weiUnits,
4373
- InvalidDecimalNumberError,
4374
- ProviderRpcError,
4375
- decodeDeployData,
4376
- fromBlobs,
4377
- sidecarsToVersionedHashes,
4378
- toCoinType,
4379
- defineKzg,
4380
- setupKzg,
4381
- compactSignatureToSignature,
4382
- parseCompactSignature,
4383
- parseSignature,
4384
- recoverTransactionAddress,
4385
- serializeCompactSignature,
4386
- signatureToCompactSignature
3317
+ switchChain,
3318
+ watchAsset
4387
3319
  };