@wagmi/connectors 1.0.0-next.0 → 1.0.0-next.2

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.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2022–PRESENT weth, LLC
3
+ Copyright (c) 2023-present weth, LLC
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -600,14 +600,13 @@ declare class CoinbaseWalletConnector extends Connector<CoinbaseWalletProvider,
600
600
  [x: `address[${string}]`]: undefined;
601
601
  [x: `bool[${string}]`]: undefined;
602
602
  [x: `bytes[${string}]`]: undefined;
603
- [x: `bytes5[${string}]`]: undefined;
604
- [x: `bytes1[${string}]`]: undefined;
605
- [x: `bytes18[${string}]`]: undefined;
606
603
  [x: `bytes2[${string}]`]: undefined;
607
604
  [x: `bytes16[${string}]`]: undefined;
608
605
  [x: `bytes10[${string}]`]: undefined;
606
+ [x: `bytes1[${string}]`]: undefined;
609
607
  [x: `bytes3[${string}]`]: undefined;
610
608
  [x: `bytes4[${string}]`]: undefined;
609
+ [x: `bytes5[${string}]`]: undefined;
611
610
  [x: `bytes6[${string}]`]: undefined;
612
611
  [x: `bytes7[${string}]`]: undefined;
613
612
  [x: `bytes8[${string}]`]: undefined;
@@ -618,6 +617,7 @@ declare class CoinbaseWalletConnector extends Connector<CoinbaseWalletProvider,
618
617
  [x: `bytes14[${string}]`]: undefined;
619
618
  [x: `bytes15[${string}]`]: undefined;
620
619
  [x: `bytes17[${string}]`]: undefined;
620
+ [x: `bytes18[${string}]`]: undefined;
621
621
  [x: `bytes19[${string}]`]: undefined;
622
622
  [x: `bytes20[${string}]`]: undefined;
623
623
  [x: `bytes21[${string}]`]: undefined;
@@ -702,14 +702,13 @@ declare class CoinbaseWalletConnector extends Connector<CoinbaseWalletProvider,
702
702
  address?: undefined;
703
703
  bool?: undefined;
704
704
  bytes?: undefined;
705
- bytes5?: undefined;
706
- bytes1?: undefined;
707
- bytes18?: undefined;
708
705
  bytes2?: undefined;
709
706
  bytes16?: undefined;
710
707
  bytes10?: undefined;
708
+ bytes1?: undefined;
711
709
  bytes3?: undefined;
712
710
  bytes4?: undefined;
711
+ bytes5?: undefined;
713
712
  bytes6?: undefined;
714
713
  bytes7?: undefined;
715
714
  bytes8?: undefined;
@@ -720,6 +719,7 @@ declare class CoinbaseWalletConnector extends Connector<CoinbaseWalletProvider,
720
719
  bytes14?: undefined;
721
720
  bytes15?: undefined;
722
721
  bytes17?: undefined;
722
+ bytes18?: undefined;
723
723
  bytes19?: undefined;
724
724
  bytes20?: undefined;
725
725
  bytes21?: undefined;
@@ -601,14 +601,13 @@ declare class InjectedConnector extends Connector<WindowProvider | undefined, Co
601
601
  [x: `address[${string}]`]: undefined;
602
602
  [x: `bool[${string}]`]: undefined;
603
603
  [x: `bytes[${string}]`]: undefined;
604
- [x: `bytes5[${string}]`]: undefined;
605
- [x: `bytes1[${string}]`]: undefined;
606
- [x: `bytes18[${string}]`]: undefined;
607
604
  [x: `bytes2[${string}]`]: undefined;
608
605
  [x: `bytes16[${string}]`]: undefined;
609
606
  [x: `bytes10[${string}]`]: undefined;
607
+ [x: `bytes1[${string}]`]: undefined;
610
608
  [x: `bytes3[${string}]`]: undefined;
611
609
  [x: `bytes4[${string}]`]: undefined;
610
+ [x: `bytes5[${string}]`]: undefined;
612
611
  [x: `bytes6[${string}]`]: undefined;
613
612
  [x: `bytes7[${string}]`]: undefined;
614
613
  [x: `bytes8[${string}]`]: undefined;
@@ -619,6 +618,7 @@ declare class InjectedConnector extends Connector<WindowProvider | undefined, Co
619
618
  [x: `bytes14[${string}]`]: undefined;
620
619
  [x: `bytes15[${string}]`]: undefined;
621
620
  [x: `bytes17[${string}]`]: undefined;
621
+ [x: `bytes18[${string}]`]: undefined;
622
622
  [x: `bytes19[${string}]`]: undefined;
623
623
  [x: `bytes20[${string}]`]: undefined;
624
624
  [x: `bytes21[${string}]`]: undefined;
@@ -703,14 +703,13 @@ declare class InjectedConnector extends Connector<WindowProvider | undefined, Co
703
703
  address?: undefined;
704
704
  bool?: undefined;
705
705
  bytes?: undefined;
706
- bytes5?: undefined;
707
- bytes1?: undefined;
708
- bytes18?: undefined;
709
706
  bytes2?: undefined;
710
707
  bytes16?: undefined;
711
708
  bytes10?: undefined;
709
+ bytes1?: undefined;
712
710
  bytes3?: undefined;
713
711
  bytes4?: undefined;
712
+ bytes5?: undefined;
714
713
  bytes6?: undefined;
715
714
  bytes7?: undefined;
716
715
  bytes8?: undefined;
@@ -721,6 +720,7 @@ declare class InjectedConnector extends Connector<WindowProvider | undefined, Co
721
720
  bytes14?: undefined;
722
721
  bytes15?: undefined;
723
722
  bytes17?: undefined;
723
+ bytes18?: undefined;
724
724
  bytes19?: undefined;
725
725
  bytes20?: undefined;
726
726
  bytes21?: undefined;
package/dist/ledger.d.ts CHANGED
@@ -586,14 +586,13 @@ declare class LedgerConnector extends Connector<EthereumProvider, LedgerConnecto
586
586
  [x: `address[${string}]`]: undefined;
587
587
  [x: `bool[${string}]`]: undefined;
588
588
  [x: `bytes[${string}]`]: undefined;
589
- [x: `bytes5[${string}]`]: undefined;
590
- [x: `bytes1[${string}]`]: undefined;
591
- [x: `bytes18[${string}]`]: undefined;
592
589
  [x: `bytes2[${string}]`]: undefined;
593
590
  [x: `bytes16[${string}]`]: undefined;
594
591
  [x: `bytes10[${string}]`]: undefined;
592
+ [x: `bytes1[${string}]`]: undefined;
595
593
  [x: `bytes3[${string}]`]: undefined;
596
594
  [x: `bytes4[${string}]`]: undefined;
595
+ [x: `bytes5[${string}]`]: undefined;
597
596
  [x: `bytes6[${string}]`]: undefined;
598
597
  [x: `bytes7[${string}]`]: undefined;
599
598
  [x: `bytes8[${string}]`]: undefined;
@@ -604,6 +603,7 @@ declare class LedgerConnector extends Connector<EthereumProvider, LedgerConnecto
604
603
  [x: `bytes14[${string}]`]: undefined;
605
604
  [x: `bytes15[${string}]`]: undefined;
606
605
  [x: `bytes17[${string}]`]: undefined;
606
+ [x: `bytes18[${string}]`]: undefined;
607
607
  [x: `bytes19[${string}]`]: undefined;
608
608
  [x: `bytes20[${string}]`]: undefined;
609
609
  [x: `bytes21[${string}]`]: undefined;
@@ -688,14 +688,13 @@ declare class LedgerConnector extends Connector<EthereumProvider, LedgerConnecto
688
688
  address?: undefined;
689
689
  bool?: undefined;
690
690
  bytes?: undefined;
691
- bytes5?: undefined;
692
- bytes1?: undefined;
693
- bytes18?: undefined;
694
691
  bytes2?: undefined;
695
692
  bytes16?: undefined;
696
693
  bytes10?: undefined;
694
+ bytes1?: undefined;
697
695
  bytes3?: undefined;
698
696
  bytes4?: undefined;
697
+ bytes5?: undefined;
699
698
  bytes6?: undefined;
700
699
  bytes7?: undefined;
701
700
  bytes8?: undefined;
@@ -706,6 +705,7 @@ declare class LedgerConnector extends Connector<EthereumProvider, LedgerConnecto
706
705
  bytes14?: undefined;
707
706
  bytes15?: undefined;
708
707
  bytes17?: undefined;
708
+ bytes18?: undefined;
709
709
  bytes19?: undefined;
710
710
  bytes20?: undefined;
711
711
  bytes21?: undefined;
@@ -555,7 +555,7 @@ declare class MockProvider {
555
555
  type: string;
556
556
  uid: string;
557
557
  addChain: (args: viem.AddChainParameters) => Promise<void>;
558
- deployContract: <TAbi extends readonly unknown[] | abitype_dist_abi_7aa1f183.l, TChainOverride extends viem.Chain<viem_dist_types_types.Formatters> | undefined>(args: viem.DeployContractParameters<TAbi, viem.Chain<viem_dist_types_types.Formatters>, viem.Account<`0x${string}`>, TChainOverride>) => Promise<`0x${string}`>;
558
+ deployContract: <TAbi extends abitype_dist_abi_7aa1f183.l | readonly unknown[], TChainOverride extends viem.Chain<viem_dist_types_types.Formatters> | undefined>(args: viem.DeployContractParameters<TAbi, viem.Chain<viem_dist_types_types.Formatters>, viem.Account<`0x${string}`>, TChainOverride>) => Promise<`0x${string}`>;
559
559
  getAddresses: () => Promise<viem.GetAddressesReturnType>;
560
560
  getChainId: () => Promise<number>;
561
561
  getPermissions: () => Promise<viem.GetPermissionsReturnType>;
@@ -567,6 +567,8 @@ declare class MockProvider {
567
567
  sendTransaction: <TChainOverride_1 extends viem.Chain<viem_dist_types_types.Formatters> | undefined>(args: viem.SendTransactionParameters<viem.Chain<viem_dist_types_types.Formatters>, viem.Account<`0x${string}`>, TChainOverride_1>) => Promise<`0x${string}`>;
568
568
  signMessage: (args: viem.SignMessageParameters<viem.Account<`0x${string}`>>) => Promise<`0x${string}`>;
569
569
  signTypedData: <TTypedData extends {
570
+ [key: string]: unknown;
571
+ } | {
570
572
  [x: string]: readonly abitype_dist_abi_7aa1f183.o[];
571
573
  [x: `string[${string}]`]: undefined;
572
574
  [x: `function[${string}]`]: undefined;
@@ -771,12 +773,10 @@ declare class MockProvider {
771
773
  uint240?: undefined;
772
774
  uint248?: undefined;
773
775
  uint256?: undefined;
774
- } | {
775
- [key: string]: unknown;
776
776
  }, TPrimaryType extends string>(args: viem.SignTypedDataParameters<TTypedData, TPrimaryType, viem.Account<`0x${string}`>>) => Promise<`0x${string}`>;
777
777
  switchChain: (args: viem.SwitchChainParameters) => Promise<void>;
778
778
  watchAsset: (args: viem_dist_types_types_eip1193.WatchAssetParams) => Promise<boolean>;
779
- writeContract: <TAbi_1 extends readonly unknown[] | abitype_dist_abi_7aa1f183.l, TFunctionName extends string, TChainOverride_2 extends viem.Chain<viem_dist_types_types.Formatters> | undefined>(args: viem.WriteContractParameters<TAbi_1, TFunctionName, viem.Chain<viem_dist_types_types.Formatters>, viem.Account<`0x${string}`>, TChainOverride_2>) => Promise<`0x${string}`>;
779
+ 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, viem.Chain<viem_dist_types_types.Formatters>, viem.Account<`0x${string}`>, TChainOverride_2>) => Promise<`0x${string}`>;
780
780
  account: viem.Account<`0x${string}`>;
781
781
  };
782
782
  switchChain(chainId: number): Promise<void>;
@@ -1338,7 +1338,7 @@ declare class MockConnector extends Connector<MockProvider, MockConnectorOptions
1338
1338
  type: string;
1339
1339
  uid: string;
1340
1340
  addChain: (args: viem.AddChainParameters) => Promise<void>;
1341
- deployContract: <TAbi extends readonly unknown[] | abitype_dist_abi_7aa1f183.l, TChainOverride extends viem.Chain<viem_dist_types_types.Formatters> | undefined>(args: viem.DeployContractParameters<TAbi, viem.Chain<viem_dist_types_types.Formatters>, viem.Account<`0x${string}`>, TChainOverride>) => Promise<`0x${string}`>;
1341
+ deployContract: <TAbi extends abitype_dist_abi_7aa1f183.l | readonly unknown[], TChainOverride extends viem.Chain<viem_dist_types_types.Formatters> | undefined>(args: viem.DeployContractParameters<TAbi, viem.Chain<viem_dist_types_types.Formatters>, viem.Account<`0x${string}`>, TChainOverride>) => Promise<`0x${string}`>;
1342
1342
  getAddresses: () => Promise<viem.GetAddressesReturnType>;
1343
1343
  getChainId: () => Promise<number>;
1344
1344
  getPermissions: () => Promise<viem.GetPermissionsReturnType>;
@@ -1350,6 +1350,8 @@ declare class MockConnector extends Connector<MockProvider, MockConnectorOptions
1350
1350
  sendTransaction: <TChainOverride_1 extends viem.Chain<viem_dist_types_types.Formatters> | undefined>(args: viem.SendTransactionParameters<viem.Chain<viem_dist_types_types.Formatters>, viem.Account<`0x${string}`>, TChainOverride_1>) => Promise<`0x${string}`>;
1351
1351
  signMessage: (args: viem.SignMessageParameters<viem.Account<`0x${string}`>>) => Promise<`0x${string}`>;
1352
1352
  signTypedData: <TTypedData extends {
1353
+ [key: string]: unknown;
1354
+ } | {
1353
1355
  [x: string]: readonly abitype_dist_abi_7aa1f183.o[];
1354
1356
  [x: `string[${string}]`]: undefined;
1355
1357
  [x: `function[${string}]`]: undefined;
@@ -1554,12 +1556,10 @@ declare class MockConnector extends Connector<MockProvider, MockConnectorOptions
1554
1556
  uint240?: undefined;
1555
1557
  uint248?: undefined;
1556
1558
  uint256?: undefined;
1557
- } | {
1558
- [key: string]: unknown;
1559
1559
  }, TPrimaryType extends string>(args: viem.SignTypedDataParameters<TTypedData, TPrimaryType, viem.Account<`0x${string}`>>) => Promise<`0x${string}`>;
1560
1560
  switchChain: (args: viem.SwitchChainParameters) => Promise<void>;
1561
1561
  watchAsset: (args: viem_dist_types_types_eip1193.WatchAssetParams) => Promise<boolean>;
1562
- writeContract: <TAbi_1 extends readonly unknown[] | abitype_dist_abi_7aa1f183.l, TFunctionName extends string, TChainOverride_2 extends viem.Chain<viem_dist_types_types.Formatters> | undefined>(args: viem.WriteContractParameters<TAbi_1, TFunctionName, viem.Chain<viem_dist_types_types.Formatters>, viem.Account<`0x${string}`>, TChainOverride_2>) => Promise<`0x${string}`>;
1562
+ 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, viem.Chain<viem_dist_types_types.Formatters>, viem.Account<`0x${string}`>, TChainOverride_2>) => Promise<`0x${string}`>;
1563
1563
  account: viem.Account<`0x${string}`>;
1564
1564
  }>;
1565
1565
  isAuthorized(): Promise<boolean>;
package/dist/safe.d.ts CHANGED
@@ -128,7 +128,7 @@ declare class SafeConnector extends Connector<SafeConnectorProvider, SafeConnect
128
128
  (args: {
129
129
  method: "eth_getFilterChanges";
130
130
  params: [filterId: `0x${string}`];
131
- }): Promise<`0x${string}`[] | {
131
+ }): Promise<{
132
132
  address: `0x${string}`;
133
133
  blockHash: `0x${string}` | null;
134
134
  blockNumber: `0x${string}` | null;
@@ -136,9 +136,9 @@ declare class SafeConnector extends Connector<SafeConnectorProvider, SafeConnect
136
136
  logIndex: `0x${string}` | null;
137
137
  transactionHash: `0x${string}` | null;
138
138
  transactionIndex: `0x${string}` | null;
139
- topics: [] | [`0x${string}`, ...`0x${string}`[]];
139
+ topics: [`0x${string}`, ...`0x${string}`[]] | [];
140
140
  removed: boolean;
141
- }[]>;
141
+ }[] | `0x${string}`[]>;
142
142
  (args: {
143
143
  method: "eth_getFilterLogs";
144
144
  params: [filterId: `0x${string}`];
@@ -150,7 +150,7 @@ declare class SafeConnector extends Connector<SafeConnectorProvider, SafeConnect
150
150
  logIndex: `0x${string}` | null;
151
151
  transactionHash: `0x${string}` | null;
152
152
  transactionIndex: `0x${string}` | null;
153
- topics: [] | [`0x${string}`, ...`0x${string}`[]];
153
+ topics: [`0x${string}`, ...`0x${string}`[]] | [];
154
154
  removed: boolean;
155
155
  }[]>;
156
156
  (args: {
@@ -175,7 +175,7 @@ declare class SafeConnector extends Connector<SafeConnectorProvider, SafeConnect
175
175
  logIndex: `0x${string}` | null;
176
176
  transactionHash: `0x${string}` | null;
177
177
  transactionIndex: `0x${string}` | null;
178
- topics: [] | [`0x${string}`, ...`0x${string}`[]];
178
+ topics: [`0x${string}`, ...`0x${string}`[]] | [];
179
179
  removed: boolean;
180
180
  }[]>;
181
181
  (args: {
@@ -386,7 +386,7 @@ declare class SafeConnector extends Connector<SafeConnectorProvider, SafeConnect
386
386
  (args: {
387
387
  method: "eth_getFilterChanges";
388
388
  params: [filterId: `0x${string}`];
389
- }): Promise<`0x${string}`[] | {
389
+ }): Promise<{
390
390
  address: `0x${string}`;
391
391
  blockHash: `0x${string}` | null;
392
392
  blockNumber: `0x${string}` | null;
@@ -394,9 +394,9 @@ declare class SafeConnector extends Connector<SafeConnectorProvider, SafeConnect
394
394
  logIndex: `0x${string}` | null;
395
395
  transactionHash: `0x${string}` | null;
396
396
  transactionIndex: `0x${string}` | null;
397
- topics: [] | [`0x${string}`, ...`0x${string}`[]];
397
+ topics: [`0x${string}`, ...`0x${string}`[]] | [];
398
398
  removed: boolean;
399
- }[]>;
399
+ }[] | `0x${string}`[]>;
400
400
  (args: {
401
401
  method: "eth_getFilterLogs";
402
402
  params: [filterId: `0x${string}`];
@@ -408,7 +408,7 @@ declare class SafeConnector extends Connector<SafeConnectorProvider, SafeConnect
408
408
  logIndex: `0x${string}` | null;
409
409
  transactionHash: `0x${string}` | null;
410
410
  transactionIndex: `0x${string}` | null;
411
- topics: [] | [`0x${string}`, ...`0x${string}`[]];
411
+ topics: [`0x${string}`, ...`0x${string}`[]] | [];
412
412
  removed: boolean;
413
413
  }[]>;
414
414
  (args: {
@@ -433,7 +433,7 @@ declare class SafeConnector extends Connector<SafeConnectorProvider, SafeConnect
433
433
  logIndex: `0x${string}` | null;
434
434
  transactionHash: `0x${string}` | null;
435
435
  transactionIndex: `0x${string}` | null;
436
- topics: [] | [`0x${string}`, ...`0x${string}`[]];
436
+ topics: [`0x${string}`, ...`0x${string}`[]] | [];
437
437
  removed: boolean;
438
438
  }[]>;
439
439
  (args: {
@@ -571,7 +571,7 @@ declare class SafeConnector extends Connector<SafeConnectorProvider, SafeConnect
571
571
  type: string;
572
572
  uid: string;
573
573
  addChain: (args: viem.AddChainParameters) => Promise<void>;
574
- deployContract: <TAbi extends readonly unknown[] | abitype_dist_abi_7aa1f183.l, TChainOverride extends viem.Chain<viem_dist_types_types.Formatters> | undefined>(args: viem.DeployContractParameters<TAbi, Chain, {
574
+ 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, {
575
575
  address: `0x${string}`;
576
576
  type: "json-rpc";
577
577
  }, TChainOverride>) => Promise<`0x${string}`>;
@@ -598,14 +598,13 @@ declare class SafeConnector extends Connector<SafeConnectorProvider, SafeConnect
598
598
  [x: `address[${string}]`]: undefined;
599
599
  [x: `bool[${string}]`]: undefined;
600
600
  [x: `bytes[${string}]`]: undefined;
601
- [x: `bytes5[${string}]`]: undefined;
602
- [x: `bytes1[${string}]`]: undefined;
603
- [x: `bytes18[${string}]`]: undefined;
604
601
  [x: `bytes2[${string}]`]: undefined;
605
602
  [x: `bytes16[${string}]`]: undefined;
606
603
  [x: `bytes10[${string}]`]: undefined;
604
+ [x: `bytes1[${string}]`]: undefined;
607
605
  [x: `bytes3[${string}]`]: undefined;
608
606
  [x: `bytes4[${string}]`]: undefined;
607
+ [x: `bytes5[${string}]`]: undefined;
609
608
  [x: `bytes6[${string}]`]: undefined;
610
609
  [x: `bytes7[${string}]`]: undefined;
611
610
  [x: `bytes8[${string}]`]: undefined;
@@ -616,6 +615,7 @@ declare class SafeConnector extends Connector<SafeConnectorProvider, SafeConnect
616
615
  [x: `bytes14[${string}]`]: undefined;
617
616
  [x: `bytes15[${string}]`]: undefined;
618
617
  [x: `bytes17[${string}]`]: undefined;
618
+ [x: `bytes18[${string}]`]: undefined;
619
619
  [x: `bytes19[${string}]`]: undefined;
620
620
  [x: `bytes20[${string}]`]: undefined;
621
621
  [x: `bytes21[${string}]`]: undefined;
@@ -700,14 +700,13 @@ declare class SafeConnector extends Connector<SafeConnectorProvider, SafeConnect
700
700
  address?: undefined;
701
701
  bool?: undefined;
702
702
  bytes?: undefined;
703
- bytes5?: undefined;
704
- bytes1?: undefined;
705
- bytes18?: undefined;
706
703
  bytes2?: undefined;
707
704
  bytes16?: undefined;
708
705
  bytes10?: undefined;
706
+ bytes1?: undefined;
709
707
  bytes3?: undefined;
710
708
  bytes4?: undefined;
709
+ bytes5?: undefined;
711
710
  bytes6?: undefined;
712
711
  bytes7?: undefined;
713
712
  bytes8?: undefined;
@@ -718,6 +717,7 @@ declare class SafeConnector extends Connector<SafeConnectorProvider, SafeConnect
718
717
  bytes14?: undefined;
719
718
  bytes15?: undefined;
720
719
  bytes17?: undefined;
720
+ bytes18?: undefined;
721
721
  bytes19?: undefined;
722
722
  bytes20?: undefined;
723
723
  bytes21?: undefined;
@@ -804,7 +804,7 @@ declare class SafeConnector extends Connector<SafeConnectorProvider, SafeConnect
804
804
  }>) => Promise<`0x${string}`>;
805
805
  switchChain: (args: viem.SwitchChainParameters) => Promise<void>;
806
806
  watchAsset: (args: viem_dist_types_types_eip1193.WatchAssetParams) => Promise<boolean>;
807
- writeContract: <TAbi_1 extends readonly unknown[] | abitype_dist_abi_7aa1f183.l, TFunctionName extends string, TChainOverride_2 extends viem.Chain<viem_dist_types_types.Formatters> | undefined>(args: viem.WriteContractParameters<TAbi_1, TFunctionName, Chain, {
807
+ 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, {
808
808
  address: `0x${string}`;
809
809
  type: "json-rpc";
810
810
  }, TChainOverride_2>) => Promise<`0x${string}`>;
@@ -176,7 +176,7 @@ declare class WalletConnectConnector extends Connector<WalletConnectProvider, Wa
176
176
  (args: {
177
177
  method: "eth_getFilterChanges";
178
178
  params: [filterId: `0x${string}`];
179
- }): Promise<`0x${string}`[] | {
179
+ }): Promise<{
180
180
  address: `0x${string}`;
181
181
  blockHash: `0x${string}` | null;
182
182
  blockNumber: `0x${string}` | null;
@@ -184,9 +184,9 @@ declare class WalletConnectConnector extends Connector<WalletConnectProvider, Wa
184
184
  logIndex: `0x${string}` | null;
185
185
  transactionHash: `0x${string}` | null;
186
186
  transactionIndex: `0x${string}` | null;
187
- topics: [] | [`0x${string}`, ...`0x${string}`[]];
187
+ topics: [`0x${string}`, ...`0x${string}`[]] | [];
188
188
  removed: boolean;
189
- }[]>;
189
+ }[] | `0x${string}`[]>;
190
190
  (args: {
191
191
  method: "eth_getFilterLogs";
192
192
  params: [filterId: `0x${string}`];
@@ -198,7 +198,7 @@ declare class WalletConnectConnector extends Connector<WalletConnectProvider, Wa
198
198
  logIndex: `0x${string}` | null;
199
199
  transactionHash: `0x${string}` | null;
200
200
  transactionIndex: `0x${string}` | null;
201
- topics: [] | [`0x${string}`, ...`0x${string}`[]];
201
+ topics: [`0x${string}`, ...`0x${string}`[]] | [];
202
202
  removed: boolean;
203
203
  }[]>;
204
204
  (args: {
@@ -223,7 +223,7 @@ declare class WalletConnectConnector extends Connector<WalletConnectProvider, Wa
223
223
  logIndex: `0x${string}` | null;
224
224
  transactionHash: `0x${string}` | null;
225
225
  transactionIndex: `0x${string}` | null;
226
- topics: [] | [`0x${string}`, ...`0x${string}`[]];
226
+ topics: [`0x${string}`, ...`0x${string}`[]] | [];
227
227
  removed: boolean;
228
228
  }[]>;
229
229
  (args: {
@@ -434,7 +434,7 @@ declare class WalletConnectConnector extends Connector<WalletConnectProvider, Wa
434
434
  (args: {
435
435
  method: "eth_getFilterChanges";
436
436
  params: [filterId: `0x${string}`];
437
- }): Promise<`0x${string}`[] | {
437
+ }): Promise<{
438
438
  address: `0x${string}`;
439
439
  blockHash: `0x${string}` | null;
440
440
  blockNumber: `0x${string}` | null;
@@ -442,9 +442,9 @@ declare class WalletConnectConnector extends Connector<WalletConnectProvider, Wa
442
442
  logIndex: `0x${string}` | null;
443
443
  transactionHash: `0x${string}` | null;
444
444
  transactionIndex: `0x${string}` | null;
445
- topics: [] | [`0x${string}`, ...`0x${string}`[]];
445
+ topics: [`0x${string}`, ...`0x${string}`[]] | [];
446
446
  removed: boolean;
447
- }[]>;
447
+ }[] | `0x${string}`[]>;
448
448
  (args: {
449
449
  method: "eth_getFilterLogs";
450
450
  params: [filterId: `0x${string}`];
@@ -456,7 +456,7 @@ declare class WalletConnectConnector extends Connector<WalletConnectProvider, Wa
456
456
  logIndex: `0x${string}` | null;
457
457
  transactionHash: `0x${string}` | null;
458
458
  transactionIndex: `0x${string}` | null;
459
- topics: [] | [`0x${string}`, ...`0x${string}`[]];
459
+ topics: [`0x${string}`, ...`0x${string}`[]] | [];
460
460
  removed: boolean;
461
461
  }[]>;
462
462
  (args: {
@@ -481,7 +481,7 @@ declare class WalletConnectConnector extends Connector<WalletConnectProvider, Wa
481
481
  logIndex: `0x${string}` | null;
482
482
  transactionHash: `0x${string}` | null;
483
483
  transactionIndex: `0x${string}` | null;
484
- topics: [] | [`0x${string}`, ...`0x${string}`[]];
484
+ topics: [`0x${string}`, ...`0x${string}`[]] | [];
485
485
  removed: boolean;
486
486
  }[]>;
487
487
  (args: {
@@ -619,7 +619,7 @@ declare class WalletConnectConnector extends Connector<WalletConnectProvider, Wa
619
619
  type: string;
620
620
  uid: string;
621
621
  addChain: (args: viem.AddChainParameters) => Promise<void>;
622
- deployContract: <TAbi extends readonly unknown[] | abitype_dist_abi_7aa1f183.l, TChainOverride extends viem.Chain<viem_dist_types_types.Formatters> | undefined>(args: viem.DeployContractParameters<TAbi, Chain, {
622
+ 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, {
623
623
  address: `0x${string}`;
624
624
  type: "json-rpc";
625
625
  }, TChainOverride>) => Promise<`0x${string}`>;
@@ -646,14 +646,13 @@ declare class WalletConnectConnector extends Connector<WalletConnectProvider, Wa
646
646
  [x: `address[${string}]`]: undefined;
647
647
  [x: `bool[${string}]`]: undefined;
648
648
  [x: `bytes[${string}]`]: undefined;
649
- [x: `bytes5[${string}]`]: undefined;
650
- [x: `bytes1[${string}]`]: undefined;
651
- [x: `bytes18[${string}]`]: undefined;
652
649
  [x: `bytes2[${string}]`]: undefined;
653
650
  [x: `bytes16[${string}]`]: undefined;
654
651
  [x: `bytes10[${string}]`]: undefined;
652
+ [x: `bytes1[${string}]`]: undefined;
655
653
  [x: `bytes3[${string}]`]: undefined;
656
654
  [x: `bytes4[${string}]`]: undefined;
655
+ [x: `bytes5[${string}]`]: undefined;
657
656
  [x: `bytes6[${string}]`]: undefined;
658
657
  [x: `bytes7[${string}]`]: undefined;
659
658
  [x: `bytes8[${string}]`]: undefined;
@@ -664,6 +663,7 @@ declare class WalletConnectConnector extends Connector<WalletConnectProvider, Wa
664
663
  [x: `bytes14[${string}]`]: undefined;
665
664
  [x: `bytes15[${string}]`]: undefined;
666
665
  [x: `bytes17[${string}]`]: undefined;
666
+ [x: `bytes18[${string}]`]: undefined;
667
667
  [x: `bytes19[${string}]`]: undefined;
668
668
  [x: `bytes20[${string}]`]: undefined;
669
669
  [x: `bytes21[${string}]`]: undefined;
@@ -748,14 +748,13 @@ declare class WalletConnectConnector extends Connector<WalletConnectProvider, Wa
748
748
  address?: undefined;
749
749
  bool?: undefined;
750
750
  bytes?: undefined;
751
- bytes5?: undefined;
752
- bytes1?: undefined;
753
- bytes18?: undefined;
754
751
  bytes2?: undefined;
755
752
  bytes16?: undefined;
756
753
  bytes10?: undefined;
754
+ bytes1?: undefined;
757
755
  bytes3?: undefined;
758
756
  bytes4?: undefined;
757
+ bytes5?: undefined;
759
758
  bytes6?: undefined;
760
759
  bytes7?: undefined;
761
760
  bytes8?: undefined;
@@ -766,6 +765,7 @@ declare class WalletConnectConnector extends Connector<WalletConnectProvider, Wa
766
765
  bytes14?: undefined;
767
766
  bytes15?: undefined;
768
767
  bytes17?: undefined;
768
+ bytes18?: undefined;
769
769
  bytes19?: undefined;
770
770
  bytes20?: undefined;
771
771
  bytes21?: undefined;
@@ -852,7 +852,7 @@ declare class WalletConnectConnector extends Connector<WalletConnectProvider, Wa
852
852
  }>) => Promise<`0x${string}`>;
853
853
  switchChain: (args: viem.SwitchChainParameters) => Promise<void>;
854
854
  watchAsset: (args: viem_dist_types_types_eip1193.WatchAssetParams) => Promise<boolean>;
855
- writeContract: <TAbi_1 extends readonly unknown[] | abitype_dist_abi_7aa1f183.l, TFunctionName extends string, TChainOverride_2 extends viem.Chain<viem_dist_types_types.Formatters> | undefined>(args: viem.WriteContractParameters<TAbi_1, TFunctionName, Chain, {
855
+ 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, {
856
856
  address: `0x${string}`;
857
857
  type: "json-rpc";
858
858
  }, TChainOverride_2>) => Promise<`0x${string}`>;
@@ -117,7 +117,7 @@ declare class WalletConnectLegacyConnector extends Connector<WalletConnectProvid
117
117
  (args: {
118
118
  method: "eth_getFilterChanges";
119
119
  params: [filterId: `0x${string}`];
120
- }): Promise<`0x${string}`[] | {
120
+ }): Promise<{
121
121
  address: `0x${string}`;
122
122
  blockHash: `0x${string}` | null;
123
123
  blockNumber: `0x${string}` | null;
@@ -125,9 +125,9 @@ declare class WalletConnectLegacyConnector extends Connector<WalletConnectProvid
125
125
  logIndex: `0x${string}` | null;
126
126
  transactionHash: `0x${string}` | null;
127
127
  transactionIndex: `0x${string}` | null;
128
- topics: [] | [`0x${string}`, ...`0x${string}`[]];
128
+ topics: [`0x${string}`, ...`0x${string}`[]] | [];
129
129
  removed: boolean;
130
- }[]>;
130
+ }[] | `0x${string}`[]>;
131
131
  (args: {
132
132
  method: "eth_getFilterLogs";
133
133
  params: [filterId: `0x${string}`];
@@ -139,7 +139,7 @@ declare class WalletConnectLegacyConnector extends Connector<WalletConnectProvid
139
139
  logIndex: `0x${string}` | null;
140
140
  transactionHash: `0x${string}` | null;
141
141
  transactionIndex: `0x${string}` | null;
142
- topics: [] | [`0x${string}`, ...`0x${string}`[]];
142
+ topics: [`0x${string}`, ...`0x${string}`[]] | [];
143
143
  removed: boolean;
144
144
  }[]>;
145
145
  (args: {
@@ -164,7 +164,7 @@ declare class WalletConnectLegacyConnector extends Connector<WalletConnectProvid
164
164
  logIndex: `0x${string}` | null;
165
165
  transactionHash: `0x${string}` | null;
166
166
  transactionIndex: `0x${string}` | null;
167
- topics: [] | [`0x${string}`, ...`0x${string}`[]];
167
+ topics: [`0x${string}`, ...`0x${string}`[]] | [];
168
168
  removed: boolean;
169
169
  }[]>;
170
170
  (args: {
@@ -375,7 +375,7 @@ declare class WalletConnectLegacyConnector extends Connector<WalletConnectProvid
375
375
  (args: {
376
376
  method: "eth_getFilterChanges";
377
377
  params: [filterId: `0x${string}`];
378
- }): Promise<`0x${string}`[] | {
378
+ }): Promise<{
379
379
  address: `0x${string}`;
380
380
  blockHash: `0x${string}` | null;
381
381
  blockNumber: `0x${string}` | null;
@@ -383,9 +383,9 @@ declare class WalletConnectLegacyConnector extends Connector<WalletConnectProvid
383
383
  logIndex: `0x${string}` | null;
384
384
  transactionHash: `0x${string}` | null;
385
385
  transactionIndex: `0x${string}` | null;
386
- topics: [] | [`0x${string}`, ...`0x${string}`[]];
386
+ topics: [`0x${string}`, ...`0x${string}`[]] | [];
387
387
  removed: boolean;
388
- }[]>;
388
+ }[] | `0x${string}`[]>;
389
389
  (args: {
390
390
  method: "eth_getFilterLogs";
391
391
  params: [filterId: `0x${string}`];
@@ -397,7 +397,7 @@ declare class WalletConnectLegacyConnector extends Connector<WalletConnectProvid
397
397
  logIndex: `0x${string}` | null;
398
398
  transactionHash: `0x${string}` | null;
399
399
  transactionIndex: `0x${string}` | null;
400
- topics: [] | [`0x${string}`, ...`0x${string}`[]];
400
+ topics: [`0x${string}`, ...`0x${string}`[]] | [];
401
401
  removed: boolean;
402
402
  }[]>;
403
403
  (args: {
@@ -422,7 +422,7 @@ declare class WalletConnectLegacyConnector extends Connector<WalletConnectProvid
422
422
  logIndex: `0x${string}` | null;
423
423
  transactionHash: `0x${string}` | null;
424
424
  transactionIndex: `0x${string}` | null;
425
- topics: [] | [`0x${string}`, ...`0x${string}`[]];
425
+ topics: [`0x${string}`, ...`0x${string}`[]] | [];
426
426
  removed: boolean;
427
427
  }[]>;
428
428
  (args: {
@@ -560,7 +560,7 @@ declare class WalletConnectLegacyConnector extends Connector<WalletConnectProvid
560
560
  type: string;
561
561
  uid: string;
562
562
  addChain: (args: viem.AddChainParameters) => Promise<void>;
563
- deployContract: <TAbi extends readonly unknown[] | abitype_dist_abi_7aa1f183.l, TChainOverride extends viem.Chain<viem_dist_types_types.Formatters> | undefined>(args: viem.DeployContractParameters<TAbi, Chain, {
563
+ 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, {
564
564
  address: `0x${string}`;
565
565
  type: "json-rpc";
566
566
  }, TChainOverride>) => Promise<`0x${string}`>;
@@ -587,14 +587,13 @@ declare class WalletConnectLegacyConnector extends Connector<WalletConnectProvid
587
587
  [x: `address[${string}]`]: undefined;
588
588
  [x: `bool[${string}]`]: undefined;
589
589
  [x: `bytes[${string}]`]: undefined;
590
- [x: `bytes5[${string}]`]: undefined;
591
- [x: `bytes1[${string}]`]: undefined;
592
- [x: `bytes18[${string}]`]: undefined;
593
590
  [x: `bytes2[${string}]`]: undefined;
594
591
  [x: `bytes16[${string}]`]: undefined;
595
592
  [x: `bytes10[${string}]`]: undefined;
593
+ [x: `bytes1[${string}]`]: undefined;
596
594
  [x: `bytes3[${string}]`]: undefined;
597
595
  [x: `bytes4[${string}]`]: undefined;
596
+ [x: `bytes5[${string}]`]: undefined;
598
597
  [x: `bytes6[${string}]`]: undefined;
599
598
  [x: `bytes7[${string}]`]: undefined;
600
599
  [x: `bytes8[${string}]`]: undefined;
@@ -605,6 +604,7 @@ declare class WalletConnectLegacyConnector extends Connector<WalletConnectProvid
605
604
  [x: `bytes14[${string}]`]: undefined;
606
605
  [x: `bytes15[${string}]`]: undefined;
607
606
  [x: `bytes17[${string}]`]: undefined;
607
+ [x: `bytes18[${string}]`]: undefined;
608
608
  [x: `bytes19[${string}]`]: undefined;
609
609
  [x: `bytes20[${string}]`]: undefined;
610
610
  [x: `bytes21[${string}]`]: undefined;
@@ -689,14 +689,13 @@ declare class WalletConnectLegacyConnector extends Connector<WalletConnectProvid
689
689
  address?: undefined;
690
690
  bool?: undefined;
691
691
  bytes?: undefined;
692
- bytes5?: undefined;
693
- bytes1?: undefined;
694
- bytes18?: undefined;
695
692
  bytes2?: undefined;
696
693
  bytes16?: undefined;
697
694
  bytes10?: undefined;
695
+ bytes1?: undefined;
698
696
  bytes3?: undefined;
699
697
  bytes4?: undefined;
698
+ bytes5?: undefined;
700
699
  bytes6?: undefined;
701
700
  bytes7?: undefined;
702
701
  bytes8?: undefined;
@@ -707,6 +706,7 @@ declare class WalletConnectLegacyConnector extends Connector<WalletConnectProvid
707
706
  bytes14?: undefined;
708
707
  bytes15?: undefined;
709
708
  bytes17?: undefined;
709
+ bytes18?: undefined;
710
710
  bytes19?: undefined;
711
711
  bytes20?: undefined;
712
712
  bytes21?: undefined;
@@ -793,7 +793,7 @@ declare class WalletConnectLegacyConnector extends Connector<WalletConnectProvid
793
793
  }>) => Promise<`0x${string}`>;
794
794
  switchChain: (args: viem.SwitchChainParameters) => Promise<void>;
795
795
  watchAsset: (args: viem_dist_types_types_eip1193.WatchAssetParams) => Promise<boolean>;
796
- writeContract: <TAbi_1 extends readonly unknown[] | abitype_dist_abi_7aa1f183.l, TFunctionName extends string, TChainOverride_2 extends viem.Chain<viem_dist_types_types.Formatters> | undefined>(args: viem.WriteContractParameters<TAbi_1, TFunctionName, Chain, {
796
+ 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, {
797
797
  address: `0x${string}`;
798
798
  type: "json-rpc";
799
799
  }, TChainOverride_2>) => Promise<`0x${string}`>;
package/package.json CHANGED
@@ -2,11 +2,11 @@
2
2
  "name": "@wagmi/connectors",
3
3
  "description": "A collection of connectors for wagmi",
4
4
  "license": "MIT",
5
- "version": "1.0.0-next.0",
5
+ "version": "1.0.0-next.2",
6
6
  "peerDependencies": {
7
7
  "@wagmi/chains": ">=0.2.0",
8
8
  "typescript": ">=4.9.4",
9
- "viem": "~0.3.12"
9
+ "viem": "~0.3.16"
10
10
  },
11
11
  "peerDependenciesMeta": {
12
12
  "@wagmi/chains": {
@@ -28,7 +28,7 @@
28
28
  "eventemitter3": "^4.0.7"
29
29
  },
30
30
  "devDependencies": {
31
- "viem": "0.3.12",
31
+ "viem": "0.3.16",
32
32
  "@wagmi/chains": "0.2.18"
33
33
  },
34
34
  "type": "module",