@wagmi/core 1.0.0-next.7 → 1.0.1

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.
@@ -1,6 +1,7 @@
1
- import * as abitype_dist_abi_7aa1f183 from 'abitype/dist/abi-7aa1f183';
1
+ import * as viem_dist_types_types_formatter from 'viem/dist/types/types/formatter';
2
+ import * as abitype_dist_abi_3a9c20c7 from 'abitype/dist/abi-3a9c20c7';
2
3
  import * as viem_dist_types_types_eip1193 from 'viem/dist/types/types/eip1193';
3
- import * as viem_dist_types_types from 'viem/dist/types/types';
4
+ import * as viem_dist_types_types_misc from 'viem/dist/types/types/misc';
4
5
  import * as viem from 'viem';
5
6
  import { Chain } from '@wagmi/chains';
6
7
 
@@ -265,36 +266,16 @@ declare function getWalletClients(): {
265
266
  (args: {
266
267
  method: "eth_getFilterChanges";
267
268
  params: [filterId: `0x${string}`];
268
- }): Promise<{
269
- address: `0x${string}`;
270
- blockHash: `0x${string}` | null;
271
- blockNumber: `0x${string}` | null;
272
- data: `0x${string}`;
273
- logIndex: `0x${string}` | null;
274
- transactionHash: `0x${string}` | null;
275
- transactionIndex: `0x${string}` | null;
276
- topics: [`0x${string}`, ...`0x${string}`[]] | [];
277
- removed: boolean;
278
- }[] | `0x${string}`[]>;
269
+ }): Promise<viem.RpcLog[] | `0x${string}`[]>;
279
270
  (args: {
280
271
  method: "eth_getFilterLogs";
281
272
  params: [filterId: `0x${string}`];
282
- }): Promise<{
283
- address: `0x${string}`;
284
- blockHash: `0x${string}` | null;
285
- blockNumber: `0x${string}` | null;
286
- data: `0x${string}`;
287
- logIndex: `0x${string}` | null;
288
- transactionHash: `0x${string}` | null;
289
- transactionIndex: `0x${string}` | null;
290
- topics: [`0x${string}`, ...`0x${string}`[]] | [];
291
- removed: boolean;
292
- }[]>;
273
+ }): Promise<viem.RpcLog[]>;
293
274
  (args: {
294
275
  method: "eth_getLogs";
295
276
  params: [parameters: {
296
277
  address?: `0x${string}` | `0x${string}`[] | undefined;
297
- topics?: viem_dist_types_types.LogTopic[] | undefined;
278
+ topics?: viem_dist_types_types_misc.LogTopic[] | undefined;
298
279
  } & ({
299
280
  fromBlock?: `0x${string}` | viem.BlockTag | undefined;
300
281
  toBlock?: `0x${string}` | viem.BlockTag | undefined;
@@ -304,17 +285,7 @@ declare function getWalletClients(): {
304
285
  toBlock?: undefined;
305
286
  blockHash?: `0x${string}` | undefined;
306
287
  })];
307
- }): Promise<{
308
- address: `0x${string}`;
309
- blockHash: `0x${string}` | null;
310
- blockNumber: `0x${string}` | null;
311
- data: `0x${string}`;
312
- logIndex: `0x${string}` | null;
313
- transactionHash: `0x${string}` | null;
314
- transactionIndex: `0x${string}` | null;
315
- topics: [`0x${string}`, ...`0x${string}`[]] | [];
316
- removed: boolean;
317
- }[]>;
288
+ }): Promise<viem.RpcLog[]>;
318
289
  (args: {
319
290
  method: "eth_getStorageAt";
320
291
  params: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
@@ -365,7 +336,7 @@ declare function getWalletClients(): {
365
336
  fromBlock?: `0x${string}` | viem.BlockTag | undefined;
366
337
  toBlock?: `0x${string}` | viem.BlockTag | undefined;
367
338
  address?: `0x${string}` | `0x${string}`[] | undefined;
368
- topics?: viem_dist_types_types.LogTopic[] | undefined;
339
+ topics?: viem_dist_types_types_misc.LogTopic[] | undefined;
369
340
  }];
370
341
  }): Promise<`0x${string}`>;
371
342
  (args: {
@@ -523,36 +494,16 @@ declare function getWalletClients(): {
523
494
  (args: {
524
495
  method: "eth_getFilterChanges";
525
496
  params: [filterId: `0x${string}`];
526
- }): Promise<{
527
- address: `0x${string}`;
528
- blockHash: `0x${string}` | null;
529
- blockNumber: `0x${string}` | null;
530
- data: `0x${string}`;
531
- logIndex: `0x${string}` | null;
532
- transactionHash: `0x${string}` | null;
533
- transactionIndex: `0x${string}` | null;
534
- topics: [`0x${string}`, ...`0x${string}`[]] | [];
535
- removed: boolean;
536
- }[] | `0x${string}`[]>;
497
+ }): Promise<viem.RpcLog[] | `0x${string}`[]>;
537
498
  (args: {
538
499
  method: "eth_getFilterLogs";
539
500
  params: [filterId: `0x${string}`];
540
- }): Promise<{
541
- address: `0x${string}`;
542
- blockHash: `0x${string}` | null;
543
- blockNumber: `0x${string}` | null;
544
- data: `0x${string}`;
545
- logIndex: `0x${string}` | null;
546
- transactionHash: `0x${string}` | null;
547
- transactionIndex: `0x${string}` | null;
548
- topics: [`0x${string}`, ...`0x${string}`[]] | [];
549
- removed: boolean;
550
- }[]>;
501
+ }): Promise<viem.RpcLog[]>;
551
502
  (args: {
552
503
  method: "eth_getLogs";
553
504
  params: [parameters: {
554
505
  address?: `0x${string}` | `0x${string}`[] | undefined;
555
- topics?: viem_dist_types_types.LogTopic[] | undefined;
506
+ topics?: viem_dist_types_types_misc.LogTopic[] | undefined;
556
507
  } & ({
557
508
  fromBlock?: `0x${string}` | viem.BlockTag | undefined;
558
509
  toBlock?: `0x${string}` | viem.BlockTag | undefined;
@@ -562,17 +513,7 @@ declare function getWalletClients(): {
562
513
  toBlock?: undefined;
563
514
  blockHash?: `0x${string}` | undefined;
564
515
  })];
565
- }): Promise<{
566
- address: `0x${string}`;
567
- blockHash: `0x${string}` | null;
568
- blockNumber: `0x${string}` | null;
569
- data: `0x${string}`;
570
- logIndex: `0x${string}` | null;
571
- transactionHash: `0x${string}` | null;
572
- transactionIndex: `0x${string}` | null;
573
- topics: [`0x${string}`, ...`0x${string}`[]] | [];
574
- removed: boolean;
575
- }[]>;
516
+ }): Promise<viem.RpcLog[]>;
576
517
  (args: {
577
518
  method: "eth_getStorageAt";
578
519
  params: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
@@ -623,7 +564,7 @@ declare function getWalletClients(): {
623
564
  fromBlock?: `0x${string}` | viem.BlockTag | undefined;
624
565
  toBlock?: `0x${string}` | viem.BlockTag | undefined;
625
566
  address?: `0x${string}` | `0x${string}`[] | undefined;
626
- topics?: viem_dist_types_types.LogTopic[] | undefined;
567
+ topics?: viem_dist_types_types_misc.LogTopic[] | undefined;
627
568
  }];
628
569
  }): Promise<`0x${string}`>;
629
570
  (args: {
@@ -708,7 +649,7 @@ declare function getWalletClients(): {
708
649
  type: string;
709
650
  uid: string;
710
651
  addChain: (args: viem.AddChainParameters) => Promise<void>;
711
- deployContract: <TAbi extends abitype_dist_abi_7aa1f183.l | readonly unknown[], TChainOverride extends viem.Chain<viem_dist_types_types.Formatters> | undefined>(args: viem.DeployContractParameters<TAbi, Chain, {
652
+ deployContract: <TAbi extends abitype_dist_abi_3a9c20c7.l | readonly unknown[], TChainOverride extends viem.Chain<viem_dist_types_types_formatter.Formatters> | undefined>(args: viem.DeployContractParameters<TAbi, Chain, {
712
653
  address: `0x${string}`;
713
654
  type: "json-rpc";
714
655
  }, TChainOverride>) => Promise<`0x${string}`>;
@@ -720,7 +661,7 @@ declare function getWalletClients(): {
720
661
  [x: string]: Record<string, any>;
721
662
  eth_accounts: Record<string, any>;
722
663
  }) => Promise<viem.RequestPermissionsReturnType>;
723
- sendTransaction: <TChainOverride_1 extends viem.Chain<viem_dist_types_types.Formatters> | undefined>(args: viem.SendTransactionParameters<Chain, {
664
+ sendTransaction: <TChainOverride_1 extends viem.Chain<viem_dist_types_types_formatter.Formatters> | undefined>(args: viem.SendTransactionParameters<Chain, {
724
665
  address: `0x${string}`;
725
666
  type: "json-rpc";
726
667
  }, TChainOverride_1>) => Promise<`0x${string}`>;
@@ -729,7 +670,7 @@ declare function getWalletClients(): {
729
670
  type: "json-rpc";
730
671
  }>) => Promise<`0x${string}`>;
731
672
  signTypedData: <TTypedData extends {
732
- [x: string]: readonly abitype_dist_abi_7aa1f183.o[];
673
+ [x: string]: readonly abitype_dist_abi_3a9c20c7.o[];
733
674
  [x: `string[${string}]`]: undefined;
734
675
  [x: `function[${string}]`]: undefined;
735
676
  [x: `address[${string}]`]: undefined;
@@ -941,7 +882,7 @@ declare function getWalletClients(): {
941
882
  }>) => Promise<`0x${string}`>;
942
883
  switchChain: (args: viem.SwitchChainParameters) => Promise<void>;
943
884
  watchAsset: (args: viem_dist_types_types_eip1193.WatchAssetParams) => Promise<boolean>;
944
- writeContract: <TAbi_1 extends abitype_dist_abi_7aa1f183.l | readonly unknown[], TFunctionName extends string, TChainOverride_2 extends viem.Chain<viem_dist_types_types.Formatters> | undefined>(args: viem.WriteContractParameters<TAbi_1, TFunctionName, Chain, {
885
+ writeContract: <TAbi_1 extends abitype_dist_abi_3a9c20c7.l | readonly unknown[], TFunctionName extends string, TChainOverride_2 extends viem.Chain<viem_dist_types_types_formatter.Formatters> | undefined>(args: viem.WriteContractParameters<TAbi_1, TFunctionName, Chain, {
945
886
  address: `0x${string}`;
946
887
  type: "json-rpc";
947
888
  }, TChainOverride_2>) => Promise<`0x${string}`>;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@wagmi/core",
3
3
  "description": "Vanilla JS library for Ethereum",
4
4
  "license": "MIT",
5
- "version": "1.0.0-next.7",
5
+ "version": "1.0.1",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/wagmi-dev/wagmi.git",
@@ -111,7 +111,7 @@
111
111
  "/dist"
112
112
  ],
113
113
  "peerDependencies": {
114
- "viem": "~0.3.17",
114
+ "viem": "~0.3.18",
115
115
  "typescript": ">=4.9.4"
116
116
  },
117
117
  "peerDependenciesMeta": {
@@ -120,14 +120,14 @@
120
120
  }
121
121
  },
122
122
  "dependencies": {
123
- "abitype": "^0.7.1",
123
+ "abitype": "0.8.1",
124
124
  "eventemitter3": "^4.0.7",
125
125
  "zustand": "^4.3.1",
126
- "@wagmi/connectors": "1.0.0-next.5",
126
+ "@wagmi/connectors": "1.0.1",
127
127
  "@wagmi/chains": "0.2.22"
128
128
  },
129
129
  "devDependencies": {
130
- "viem": "~0.3.17"
130
+ "viem": "~0.3.18"
131
131
  },
132
132
  "keywords": [
133
133
  "eth",