@ensdomains/ensjs 3.0.0-beta.3 → 3.0.0-beta.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 (88) hide show
  1. package/dist/cjs/dns.js.map +1 -1
  2. package/dist/cjs/errors/utils.js +13 -1
  3. package/dist/cjs/errors/utils.js.map +1 -1
  4. package/dist/cjs/errors/version.js +1 -1
  5. package/dist/cjs/utils/encoders/encodeAbi.js +31 -1
  6. package/dist/cjs/utils/encoders/encodeAbi.js.map +1 -1
  7. package/dist/cjs/utils/index.js +21 -1
  8. package/dist/cjs/utils/index.js.map +1 -1
  9. package/dist/cjs/wallet.js.map +1 -1
  10. package/dist/esm/dns.js.map +1 -1
  11. package/dist/esm/errors/utils.js +11 -0
  12. package/dist/esm/errors/utils.js.map +1 -1
  13. package/dist/esm/errors/version.js +1 -1
  14. package/dist/esm/utils/encoders/encodeAbi.js +28 -0
  15. package/dist/esm/utils/encoders/encodeAbi.js.map +1 -1
  16. package/dist/esm/utils/index.js +2 -1
  17. package/dist/esm/utils/index.js.map +1 -1
  18. package/dist/esm/wallet.js.map +1 -1
  19. package/dist/types/clients/decorators/public.d.ts +1 -519
  20. package/dist/types/clients/decorators/public.d.ts.map +1 -1
  21. package/dist/types/clients/decorators/subgraph.d.ts +1 -519
  22. package/dist/types/clients/decorators/subgraph.d.ts.map +1 -1
  23. package/dist/types/clients/decorators/wallet.d.ts +19 -28
  24. package/dist/types/clients/decorators/wallet.d.ts.map +1 -1
  25. package/dist/types/clients/public.d.ts +21 -30
  26. package/dist/types/clients/public.d.ts.map +1 -1
  27. package/dist/types/clients/subgraph.d.ts +17 -26
  28. package/dist/types/clients/subgraph.d.ts.map +1 -1
  29. package/dist/types/clients/wallet.d.ts +46 -55
  30. package/dist/types/clients/wallet.d.ts.map +1 -1
  31. package/dist/types/dns.d.ts +1 -1
  32. package/dist/types/dns.d.ts.map +1 -1
  33. package/dist/types/errors/utils.d.ts +6 -0
  34. package/dist/types/errors/utils.d.ts.map +1 -1
  35. package/dist/types/errors/version.d.ts +1 -1
  36. package/dist/types/functions/dns/importDnsName.d.ts +38 -56
  37. package/dist/types/functions/dns/importDnsName.d.ts.map +1 -1
  38. package/dist/types/functions/wallet/commitName.d.ts +38 -56
  39. package/dist/types/functions/wallet/commitName.d.ts.map +1 -1
  40. package/dist/types/functions/wallet/createSubname.d.ts +38 -56
  41. package/dist/types/functions/wallet/createSubname.d.ts.map +1 -1
  42. package/dist/types/functions/wallet/deleteSubname.d.ts +38 -56
  43. package/dist/types/functions/wallet/deleteSubname.d.ts.map +1 -1
  44. package/dist/types/functions/wallet/registerName.d.ts +38 -56
  45. package/dist/types/functions/wallet/registerName.d.ts.map +1 -1
  46. package/dist/types/functions/wallet/renewNames.d.ts +38 -56
  47. package/dist/types/functions/wallet/renewNames.d.ts.map +1 -1
  48. package/dist/types/functions/wallet/setAbiRecord.d.ts +38 -56
  49. package/dist/types/functions/wallet/setAbiRecord.d.ts.map +1 -1
  50. package/dist/types/functions/wallet/setAddressRecord.d.ts +38 -56
  51. package/dist/types/functions/wallet/setAddressRecord.d.ts.map +1 -1
  52. package/dist/types/functions/wallet/setChildFuses.d.ts +38 -56
  53. package/dist/types/functions/wallet/setChildFuses.d.ts.map +1 -1
  54. package/dist/types/functions/wallet/setContentHashRecord.d.ts +38 -56
  55. package/dist/types/functions/wallet/setContentHashRecord.d.ts.map +1 -1
  56. package/dist/types/functions/wallet/setFuses.d.ts +38 -56
  57. package/dist/types/functions/wallet/setFuses.d.ts.map +1 -1
  58. package/dist/types/functions/wallet/setPrimaryName.d.ts +38 -56
  59. package/dist/types/functions/wallet/setPrimaryName.d.ts.map +1 -1
  60. package/dist/types/functions/wallet/setRecords.d.ts +38 -56
  61. package/dist/types/functions/wallet/setRecords.d.ts.map +1 -1
  62. package/dist/types/functions/wallet/setResolver.d.ts +38 -56
  63. package/dist/types/functions/wallet/setResolver.d.ts.map +1 -1
  64. package/dist/types/functions/wallet/setTextRecord.d.ts +38 -56
  65. package/dist/types/functions/wallet/setTextRecord.d.ts.map +1 -1
  66. package/dist/types/functions/wallet/transferName.d.ts +39 -57
  67. package/dist/types/functions/wallet/transferName.d.ts.map +1 -1
  68. package/dist/types/functions/wallet/unwrapName.d.ts +38 -56
  69. package/dist/types/functions/wallet/unwrapName.d.ts.map +1 -1
  70. package/dist/types/functions/wallet/wrapName.d.ts +38 -56
  71. package/dist/types/functions/wallet/wrapName.d.ts.map +1 -1
  72. package/dist/types/utils/encoders/encodeAbi.d.ts +8 -5
  73. package/dist/types/utils/encoders/encodeAbi.d.ts.map +1 -1
  74. package/dist/types/utils/index.d.ts +2 -1
  75. package/dist/types/utils/index.d.ts.map +1 -1
  76. package/dist/types/wallet.d.ts +17 -17
  77. package/dist/types/wallet.d.ts.map +1 -1
  78. package/package.json +2 -2
  79. package/src/clients/public.ts +1 -1
  80. package/src/clients/subgraph.ts +1 -1
  81. package/src/clients/wallet.ts +1 -1
  82. package/src/dns.ts +2 -0
  83. package/src/errors/utils.ts +8 -0
  84. package/src/errors/version.ts +1 -1
  85. package/src/functions/wallet/transferName.ts +1 -1
  86. package/src/utils/encoders/encodeAbi.ts +35 -6
  87. package/src/utils/index.ts +24 -0
  88. package/src/wallet.ts +34 -0
@@ -291,523 +291,5 @@ export type EnsPublicActions = {
291
291
  * transport: http(),
292
292
  * }).extend(ensPublicActions)
293
293
  */
294
- export declare const ensPublicActions: <TTransport extends Transport = Transport, TChain extends ChainWithEns = ChainWithEns, TAccount extends Account | undefined = Account | undefined>(client: {
295
- account: TAccount;
296
- batch?: {
297
- multicall?: boolean | import("viem").MulticallBatchOptions | undefined;
298
- } | undefined;
299
- chain: TChain;
300
- key: string;
301
- name: string;
302
- pollingInterval: number;
303
- request: import("viem").EIP1193RequestFn<[{
304
- Method: "web3_clientVersion";
305
- Parameters?: undefined;
306
- ReturnType: string;
307
- }, {
308
- Method: "web3_sha3";
309
- Parameters: [data: `0x${string}`];
310
- ReturnType: string;
311
- }, {
312
- Method: "net_listening";
313
- Parameters?: undefined;
314
- ReturnType: boolean;
315
- }, {
316
- Method: "net_peerCount";
317
- Parameters?: undefined;
318
- ReturnType: `0x${string}`;
319
- }, {
320
- Method: "net_version";
321
- Parameters?: undefined;
322
- ReturnType: `0x${string}`;
323
- }, {
324
- Method: "eth_blockNumber";
325
- Parameters?: undefined;
326
- ReturnType: `0x${string}`;
327
- }, {
328
- Method: "eth_call";
329
- Parameters: [transaction: Partial<import("viem").RpcTransactionRequest>] | [transaction: Partial<import("viem").RpcTransactionRequest>, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
330
- ReturnType: `0x${string}`;
331
- }, {
332
- Method: "eth_chainId";
333
- Parameters?: undefined;
334
- ReturnType: `0x${string}`;
335
- }, {
336
- Method: "eth_coinbase";
337
- Parameters?: undefined;
338
- ReturnType: `0x${string}`;
339
- }, {
340
- Method: "eth_estimateGas";
341
- Parameters: [transaction: import("viem").RpcTransactionRequest] | [transaction: import("viem").RpcTransactionRequest, block: `0x${string}` | import("viem").BlockTag];
342
- ReturnType: `0x${string}`;
343
- }, {
344
- Method: "eth_feeHistory";
345
- Parameters: [blockCount: `0x${string}`, newestBlock: `0x${string}` | import("viem").BlockTag, rewardPercentiles: number[] | undefined];
346
- ReturnType: import("viem").RpcFeeHistory;
347
- }, {
348
- Method: "eth_gasPrice";
349
- Parameters?: undefined;
350
- ReturnType: `0x${string}`;
351
- }, {
352
- Method: "eth_getBalance";
353
- Parameters: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
354
- ReturnType: `0x${string}`;
355
- }, {
356
- Method: "eth_getBlockByHash";
357
- Parameters: [hash: `0x${string}`, includeTransactionObjects: boolean];
358
- ReturnType: import("viem").RpcBlock | null;
359
- }, {
360
- Method: "eth_getBlockByNumber";
361
- Parameters: [block: `0x${string}` | import("viem").BlockTag, includeTransactionObjects: boolean];
362
- ReturnType: import("viem").RpcBlock | null;
363
- }, {
364
- Method: "eth_getBlockTransactionCountByHash";
365
- Parameters: [hash: `0x${string}`];
366
- ReturnType: `0x${string}`;
367
- }, {
368
- Method: "eth_getBlockTransactionCountByNumber";
369
- Parameters: [block: `0x${string}` | import("viem").BlockTag];
370
- ReturnType: `0x${string}`;
371
- }, {
372
- Method: "eth_getCode";
373
- Parameters: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
374
- ReturnType: `0x${string}`;
375
- }, {
376
- Method: "eth_getFilterChanges";
377
- Parameters: [filterId: `0x${string}`];
378
- ReturnType: import("viem").RpcLog[] | `0x${string}`[];
379
- }, {
380
- Method: "eth_getFilterLogs";
381
- Parameters: [filterId: `0x${string}`];
382
- ReturnType: import("viem").RpcLog[];
383
- }, {
384
- Method: "eth_getLogs";
385
- Parameters: [{
386
- address?: `0x${string}` | `0x${string}`[] | undefined;
387
- topics?: import("viem").LogTopic[] | undefined;
388
- } & ({
389
- fromBlock?: `0x${string}` | import("viem").BlockTag | undefined;
390
- toBlock?: `0x${string}` | import("viem").BlockTag | undefined;
391
- blockHash?: undefined;
392
- } | {
393
- fromBlock?: undefined;
394
- toBlock?: undefined;
395
- blockHash?: `0x${string}` | undefined;
396
- })];
397
- ReturnType: import("viem").RpcLog[];
398
- }, {
399
- Method: "eth_getStorageAt";
400
- Parameters: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
401
- ReturnType: `0x${string}`;
402
- }, {
403
- Method: "eth_getTransactionByBlockHashAndIndex";
404
- Parameters: [hash: `0x${string}`, index: `0x${string}`];
405
- ReturnType: import("viem").RpcTransaction | null;
406
- }, {
407
- Method: "eth_getTransactionByBlockNumberAndIndex";
408
- Parameters: [block: `0x${string}` | import("viem").BlockTag, index: `0x${string}`];
409
- ReturnType: import("viem").RpcTransaction | null;
410
- }, {
411
- Method: "eth_getTransactionByHash";
412
- Parameters: [hash: `0x${string}`];
413
- ReturnType: import("viem").RpcTransaction | null;
414
- }, {
415
- Method: "eth_getTransactionCount";
416
- Parameters: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
417
- ReturnType: `0x${string}`;
418
- }, {
419
- Method: "eth_getTransactionReceipt";
420
- Parameters: [hash: `0x${string}`];
421
- ReturnType: import("viem").RpcTransactionReceipt | null;
422
- }, {
423
- Method: "eth_getUncleByBlockHashAndIndex";
424
- Parameters: [hash: `0x${string}`, index: `0x${string}`];
425
- ReturnType: import("viem").RpcUncle | null;
426
- }, {
427
- Method: "eth_getUncleByBlockNumberAndIndex";
428
- Parameters: [block: `0x${string}` | import("viem").BlockTag, index: `0x${string}`];
429
- ReturnType: import("viem").RpcUncle | null;
430
- }, {
431
- Method: "eth_getUncleCountByBlockHash";
432
- Parameters: [hash: `0x${string}`];
433
- ReturnType: `0x${string}`;
434
- }, {
435
- Method: "eth_getUncleCountByBlockNumber";
436
- Parameters: [block: `0x${string}` | import("viem").BlockTag];
437
- ReturnType: `0x${string}`;
438
- }, {
439
- Method: "eth_newBlockFilter";
440
- Parameters?: undefined;
441
- ReturnType: `0x${string}`;
442
- }, {
443
- Method: "eth_newFilter";
444
- Parameters: [filter: {
445
- fromBlock?: `0x${string}` | import("viem").BlockTag | undefined;
446
- toBlock?: `0x${string}` | import("viem").BlockTag | undefined;
447
- address?: `0x${string}` | `0x${string}`[] | undefined;
448
- topics?: import("viem").LogTopic[] | undefined;
449
- }];
450
- ReturnType: `0x${string}`;
451
- }, {
452
- Method: "eth_newPendingTransactionFilter";
453
- Parameters?: undefined;
454
- ReturnType: `0x${string}`;
455
- }, {
456
- Method: "eth_protocolVersion";
457
- Parameters?: undefined;
458
- ReturnType: string;
459
- }, {
460
- Method: "eth_sendRawTransaction";
461
- Parameters: [signedTransaction: `0x${string}`];
462
- ReturnType: `0x${string}`;
463
- }, {
464
- Method: "eth_uninstallFilter";
465
- Parameters: [filterId: `0x${string}`];
466
- ReturnType: boolean;
467
- }, {
468
- Method: "eth_accounts";
469
- Parameters?: undefined;
470
- ReturnType: `0x${string}`[];
471
- }, {
472
- Method: "eth_chainId";
473
- Parameters?: undefined;
474
- ReturnType: `0x${string}`;
475
- }, {
476
- Method: "eth_estimateGas";
477
- Parameters: [transaction: import("viem").RpcTransactionRequest] | [transaction: import("viem").RpcTransactionRequest, block: `0x${string}` | import("viem").BlockTag];
478
- ReturnType: `0x${string}`;
479
- }, {
480
- Method: "eth_requestAccounts";
481
- Parameters?: undefined;
482
- ReturnType: `0x${string}`[];
483
- }, {
484
- Method: "eth_sendTransaction";
485
- Parameters: [transaction: import("viem").RpcTransactionRequest];
486
- ReturnType: `0x${string}`;
487
- }, {
488
- Method: "eth_sendRawTransaction";
489
- Parameters: [signedTransaction: `0x${string}`];
490
- ReturnType: `0x${string}`;
491
- }, {
492
- Method: "eth_sign";
493
- Parameters: [address: `0x${string}`, data: `0x${string}`];
494
- ReturnType: `0x${string}`;
495
- }, {
496
- Method: "eth_signTransaction";
497
- Parameters: [request: import("viem").RpcTransactionRequest];
498
- ReturnType: `0x${string}`;
499
- }, {
500
- Method: "eth_signTypedData_v4";
501
- Parameters: [address: `0x${string}`, message: string];
502
- ReturnType: `0x${string}`;
503
- }, {
504
- Method: "eth_syncing";
505
- Parameters?: undefined;
506
- ReturnType: false | import("viem").NetworkSync;
507
- }, {
508
- Method: "personal_sign";
509
- Parameters: [data: `0x${string}`, address: `0x${string}`];
510
- ReturnType: `0x${string}`;
511
- }, {
512
- Method: "wallet_addEthereumChain";
513
- Parameters: [chain: import("viem").AddEthereumChainParameter];
514
- ReturnType: null;
515
- }, {
516
- Method: "wallet_getPermissions";
517
- Parameters?: undefined;
518
- ReturnType: import("viem").WalletPermission[];
519
- }, {
520
- Method: "wallet_requestPermissions";
521
- Parameters: [permissions: {
522
- eth_accounts: Record<string, any>;
523
- }];
524
- ReturnType: import("viem").WalletPermission[];
525
- }, {
526
- Method: "wallet_switchEthereumChain";
527
- Parameters: [chain: {
528
- chainId: string;
529
- }];
530
- ReturnType: null;
531
- }, {
532
- Method: "wallet_watchAsset";
533
- Parameters: import("viem").WatchAssetParams;
534
- ReturnType: boolean;
535
- }]>;
536
- transport: ReturnType<TTransport>["config"] & ReturnType<TTransport>["value"];
537
- type: string;
538
- uid: string;
539
- } & {
540
- extend: <TNextExtended extends {
541
- account?: undefined;
542
- batch?: undefined;
543
- chain?: undefined;
544
- key?: undefined;
545
- name?: undefined;
546
- pollingInterval?: undefined;
547
- request?: undefined;
548
- transport?: undefined;
549
- type?: undefined;
550
- uid?: undefined;
551
- } & {
552
- [key: string]: unknown;
553
- } = {
554
- account?: undefined;
555
- batch?: undefined;
556
- chain?: undefined;
557
- key?: undefined;
558
- name?: undefined;
559
- pollingInterval?: undefined;
560
- request?: undefined;
561
- transport?: undefined;
562
- type?: undefined;
563
- uid?: undefined;
564
- } & {
565
- [key: string]: unknown;
566
- }>(fn: (client: {
567
- account: TAccount;
568
- batch?: {
569
- multicall?: boolean | import("viem").MulticallBatchOptions | undefined;
570
- } | undefined;
571
- chain: TChain;
572
- key: string;
573
- name: string;
574
- pollingInterval: number;
575
- request: import("viem").EIP1193RequestFn<[{
576
- Method: "web3_clientVersion";
577
- Parameters?: undefined;
578
- ReturnType: string;
579
- }, {
580
- Method: "web3_sha3";
581
- Parameters: [data: `0x${string}`];
582
- ReturnType: string;
583
- }, {
584
- Method: "net_listening";
585
- Parameters?: undefined;
586
- ReturnType: boolean;
587
- }, {
588
- Method: "net_peerCount";
589
- Parameters?: undefined;
590
- ReturnType: `0x${string}`;
591
- }, {
592
- Method: "net_version";
593
- Parameters?: undefined;
594
- ReturnType: `0x${string}`;
595
- }, {
596
- Method: "eth_blockNumber";
597
- Parameters?: undefined;
598
- ReturnType: `0x${string}`;
599
- }, {
600
- Method: "eth_call";
601
- Parameters: [transaction: Partial<import("viem").RpcTransactionRequest>] | [transaction: Partial<import("viem").RpcTransactionRequest>, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
602
- ReturnType: `0x${string}`;
603
- }, {
604
- Method: "eth_chainId";
605
- Parameters?: undefined;
606
- ReturnType: `0x${string}`;
607
- }, {
608
- Method: "eth_coinbase";
609
- Parameters?: undefined;
610
- ReturnType: `0x${string}`;
611
- }, {
612
- Method: "eth_estimateGas";
613
- Parameters: [transaction: import("viem").RpcTransactionRequest] | [transaction: import("viem").RpcTransactionRequest, block: `0x${string}` | import("viem").BlockTag];
614
- ReturnType: `0x${string}`;
615
- }, {
616
- Method: "eth_feeHistory";
617
- Parameters: [blockCount: `0x${string}`, newestBlock: `0x${string}` | import("viem").BlockTag, rewardPercentiles: number[] | undefined];
618
- ReturnType: import("viem").RpcFeeHistory;
619
- }, {
620
- Method: "eth_gasPrice";
621
- Parameters?: undefined;
622
- ReturnType: `0x${string}`;
623
- }, {
624
- Method: "eth_getBalance";
625
- Parameters: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
626
- ReturnType: `0x${string}`;
627
- }, {
628
- Method: "eth_getBlockByHash";
629
- Parameters: [hash: `0x${string}`, includeTransactionObjects: boolean];
630
- ReturnType: import("viem").RpcBlock | null;
631
- }, {
632
- Method: "eth_getBlockByNumber";
633
- Parameters: [block: `0x${string}` | import("viem").BlockTag, includeTransactionObjects: boolean];
634
- ReturnType: import("viem").RpcBlock | null;
635
- }, {
636
- Method: "eth_getBlockTransactionCountByHash";
637
- Parameters: [hash: `0x${string}`];
638
- ReturnType: `0x${string}`;
639
- }, {
640
- Method: "eth_getBlockTransactionCountByNumber";
641
- Parameters: [block: `0x${string}` | import("viem").BlockTag];
642
- ReturnType: `0x${string}`;
643
- }, {
644
- Method: "eth_getCode";
645
- Parameters: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
646
- ReturnType: `0x${string}`;
647
- }, {
648
- Method: "eth_getFilterChanges";
649
- Parameters: [filterId: `0x${string}`];
650
- ReturnType: import("viem").RpcLog[] | `0x${string}`[];
651
- }, {
652
- Method: "eth_getFilterLogs";
653
- Parameters: [filterId: `0x${string}`];
654
- ReturnType: import("viem").RpcLog[];
655
- }, {
656
- Method: "eth_getLogs";
657
- Parameters: [{
658
- address?: `0x${string}` | `0x${string}`[] | undefined;
659
- topics?: import("viem").LogTopic[] | undefined;
660
- } & ({
661
- fromBlock?: `0x${string}` | import("viem").BlockTag | undefined;
662
- toBlock?: `0x${string}` | import("viem").BlockTag | undefined;
663
- blockHash?: undefined;
664
- } | {
665
- fromBlock?: undefined;
666
- toBlock?: undefined;
667
- blockHash?: `0x${string}` | undefined;
668
- })];
669
- ReturnType: import("viem").RpcLog[];
670
- }, {
671
- Method: "eth_getStorageAt";
672
- Parameters: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
673
- ReturnType: `0x${string}`;
674
- }, {
675
- Method: "eth_getTransactionByBlockHashAndIndex";
676
- Parameters: [hash: `0x${string}`, index: `0x${string}`];
677
- ReturnType: import("viem").RpcTransaction | null;
678
- }, {
679
- Method: "eth_getTransactionByBlockNumberAndIndex";
680
- Parameters: [block: `0x${string}` | import("viem").BlockTag, index: `0x${string}`];
681
- ReturnType: import("viem").RpcTransaction | null;
682
- }, {
683
- Method: "eth_getTransactionByHash";
684
- Parameters: [hash: `0x${string}`];
685
- ReturnType: import("viem").RpcTransaction | null;
686
- }, {
687
- Method: "eth_getTransactionCount";
688
- Parameters: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
689
- ReturnType: `0x${string}`;
690
- }, {
691
- Method: "eth_getTransactionReceipt";
692
- Parameters: [hash: `0x${string}`];
693
- ReturnType: import("viem").RpcTransactionReceipt | null;
694
- }, {
695
- Method: "eth_getUncleByBlockHashAndIndex";
696
- Parameters: [hash: `0x${string}`, index: `0x${string}`];
697
- ReturnType: import("viem").RpcUncle | null;
698
- }, {
699
- Method: "eth_getUncleByBlockNumberAndIndex";
700
- Parameters: [block: `0x${string}` | import("viem").BlockTag, index: `0x${string}`];
701
- ReturnType: import("viem").RpcUncle | null;
702
- }, {
703
- Method: "eth_getUncleCountByBlockHash";
704
- Parameters: [hash: `0x${string}`];
705
- ReturnType: `0x${string}`;
706
- }, {
707
- Method: "eth_getUncleCountByBlockNumber";
708
- Parameters: [block: `0x${string}` | import("viem").BlockTag];
709
- ReturnType: `0x${string}`;
710
- }, {
711
- Method: "eth_newBlockFilter";
712
- Parameters?: undefined;
713
- ReturnType: `0x${string}`;
714
- }, {
715
- Method: "eth_newFilter";
716
- Parameters: [filter: {
717
- fromBlock?: `0x${string}` | import("viem").BlockTag | undefined;
718
- toBlock?: `0x${string}` | import("viem").BlockTag | undefined;
719
- address?: `0x${string}` | `0x${string}`[] | undefined;
720
- topics?: import("viem").LogTopic[] | undefined;
721
- }];
722
- ReturnType: `0x${string}`;
723
- }, {
724
- Method: "eth_newPendingTransactionFilter";
725
- Parameters?: undefined;
726
- ReturnType: `0x${string}`;
727
- }, {
728
- Method: "eth_protocolVersion";
729
- Parameters?: undefined;
730
- ReturnType: string;
731
- }, {
732
- Method: "eth_sendRawTransaction";
733
- Parameters: [signedTransaction: `0x${string}`];
734
- ReturnType: `0x${string}`;
735
- }, {
736
- Method: "eth_uninstallFilter";
737
- Parameters: [filterId: `0x${string}`];
738
- ReturnType: boolean;
739
- }, {
740
- Method: "eth_accounts";
741
- Parameters?: undefined;
742
- ReturnType: `0x${string}`[];
743
- }, {
744
- Method: "eth_chainId";
745
- Parameters?: undefined;
746
- ReturnType: `0x${string}`;
747
- }, {
748
- Method: "eth_estimateGas";
749
- Parameters: [transaction: import("viem").RpcTransactionRequest] | [transaction: import("viem").RpcTransactionRequest, block: `0x${string}` | import("viem").BlockTag];
750
- ReturnType: `0x${string}`;
751
- }, {
752
- Method: "eth_requestAccounts";
753
- Parameters?: undefined;
754
- ReturnType: `0x${string}`[];
755
- }, {
756
- Method: "eth_sendTransaction";
757
- Parameters: [transaction: import("viem").RpcTransactionRequest];
758
- ReturnType: `0x${string}`;
759
- }, {
760
- Method: "eth_sendRawTransaction";
761
- Parameters: [signedTransaction: `0x${string}`];
762
- ReturnType: `0x${string}`;
763
- }, {
764
- Method: "eth_sign";
765
- Parameters: [address: `0x${string}`, data: `0x${string}`];
766
- ReturnType: `0x${string}`;
767
- }, {
768
- Method: "eth_signTransaction";
769
- Parameters: [request: import("viem").RpcTransactionRequest];
770
- ReturnType: `0x${string}`;
771
- }, {
772
- Method: "eth_signTypedData_v4";
773
- Parameters: [address: `0x${string}`, message: string];
774
- ReturnType: `0x${string}`;
775
- }, {
776
- Method: "eth_syncing";
777
- Parameters?: undefined;
778
- ReturnType: false | import("viem").NetworkSync;
779
- }, {
780
- Method: "personal_sign";
781
- Parameters: [data: `0x${string}`, address: `0x${string}`];
782
- ReturnType: `0x${string}`;
783
- }, {
784
- Method: "wallet_addEthereumChain";
785
- Parameters: [chain: import("viem").AddEthereumChainParameter];
786
- ReturnType: null;
787
- }, {
788
- Method: "wallet_getPermissions";
789
- Parameters?: undefined;
790
- ReturnType: import("viem").WalletPermission[];
791
- }, {
792
- Method: "wallet_requestPermissions";
793
- Parameters: [permissions: {
794
- eth_accounts: Record<string, any>;
795
- }];
796
- ReturnType: import("viem").WalletPermission[];
797
- }, {
798
- Method: "wallet_switchEthereumChain";
799
- Parameters: [chain: {
800
- chainId: string;
801
- }];
802
- ReturnType: null;
803
- }, {
804
- Method: "wallet_watchAsset";
805
- Parameters: import("viem").WatchAssetParams;
806
- ReturnType: boolean;
807
- }]>;
808
- transport: ReturnType<TTransport>["config"] & ReturnType<TTransport>["value"];
809
- type: string;
810
- uid: string;
811
- } & any) => import("viem").Narrow<TNextExtended>) => never;
812
- }) => EnsPublicActions;
294
+ export declare const ensPublicActions: <TTransport extends Transport = Transport, TChain extends ChainWithEns = ChainWithEns, TAccount extends Account | undefined = Account | undefined>(client: Client<TTransport, TChain, TAccount>) => EnsPublicActions;
813
295
  //# sourceMappingURL=public.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../../src/clients/decorators/public.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAc,EACZ,KAAK,eAAe,EACpB,KAAK,eAAe,EACrB,MAAM,iCAAiC,CAAA;AACxC,OAAqB,EACnB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC5B,MAAM,wCAAwC,CAAA;AAC/C,OAAyB,EACvB,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAChC,MAAM,4CAA4C,CAAA;AACnD,OAAqB,EACnB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC5B,MAAM,wCAAwC,CAAA;AAC/C,OAA6B,EAC3B,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACpC,MAAM,gDAAgD,CAAA;AACvD,OAAkB,EAChB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACzB,MAAM,qCAAqC,CAAA;AAC5C,OAAgB,EACd,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACvB,MAAM,mCAAmC,CAAA;AAC1C,OAAiB,EACf,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACxB,MAAM,oCAAoC,CAAA;AAC3C,OAAiB,EACf,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACxB,MAAM,oCAAoC,CAAA;AAC3C,OAAmB,EACjB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EAC1B,MAAM,sCAAsC,CAAA;AAC7C,OAAoB,EAClB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC3B,MAAM,uCAAuC,CAAA;AAC9C,OAAsB,EACpB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC7B,MAAM,yCAAyC,CAAA;AAChD,OAAuB,EACrB,KAAK,wBAAw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