@wagmi/connectors 1.0.0-next.6 → 1.0.0

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) 2023-present weth, LLC
3
+ Copyright (c) 2022–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
@@ -41,6 +41,7 @@ type InjectedProviderFlags = {
41
41
  isTrustWallet?: true;
42
42
  isXDEFI?: true;
43
43
  isZerion?: true;
44
+ isHaloWallet?: true;
44
45
  };
45
46
  type InjectedProviders = InjectedProviderFlags & {
46
47
  isMetaMask: true;
@@ -63,6 +63,8 @@ function getInjectedName(ethereum) {
63
63
  return "HyperPay Wallet";
64
64
  if (provider.isImToken)
65
65
  return "ImToken";
66
+ if (provider.isHaloWallet)
67
+ return "Halo Wallet";
66
68
  if (provider.isKuCoinWallet)
67
69
  return "KuCoin Wallet";
68
70
  if (provider.isMathWallet)
@@ -1,12 +1,12 @@
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 from 'abitype';
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 { CoinbaseWalletProvider } from '@coinbase/wallet-sdk';
6
7
  import { CoinbaseWalletSDKOptions } from '@coinbase/wallet-sdk/dist/CoinbaseWalletSDK';
7
8
  import { Chain } from '@wagmi/chains';
8
- import { C as Connector } from './base-a11da01a.js';
9
- import 'abitype';
9
+ import { C as Connector } from './base-b7cfab8e.js';
10
10
  import 'eventemitter3';
11
11
 
12
12
  type Options = Omit<CoinbaseWalletSDKOptions, 'reloadOnDisconnect'> & {
@@ -130,36 +130,16 @@ declare class CoinbaseWalletConnector extends Connector<CoinbaseWalletProvider,
130
130
  (args: {
131
131
  method: "eth_getFilterChanges";
132
132
  params: [filterId: `0x${string}`];
133
- }): Promise<`0x${string}`[] | {
134
- address: `0x${string}`;
135
- blockHash: `0x${string}` | null;
136
- blockNumber: `0x${string}` | null;
137
- data: `0x${string}`;
138
- logIndex: `0x${string}` | null;
139
- transactionHash: `0x${string}` | null;
140
- transactionIndex: `0x${string}` | null;
141
- topics: [] | [`0x${string}`, ...`0x${string}`[]];
142
- removed: boolean;
143
- }[]>;
133
+ }): Promise<`0x${string}`[] | viem.RpcLog[]>;
144
134
  (args: {
145
135
  method: "eth_getFilterLogs";
146
136
  params: [filterId: `0x${string}`];
147
- }): Promise<{
148
- address: `0x${string}`;
149
- blockHash: `0x${string}` | null;
150
- blockNumber: `0x${string}` | null;
151
- data: `0x${string}`;
152
- logIndex: `0x${string}` | null;
153
- transactionHash: `0x${string}` | null;
154
- transactionIndex: `0x${string}` | null;
155
- topics: [] | [`0x${string}`, ...`0x${string}`[]];
156
- removed: boolean;
157
- }[]>;
137
+ }): Promise<viem.RpcLog[]>;
158
138
  (args: {
159
139
  method: "eth_getLogs";
160
140
  params: [parameters: {
161
141
  address?: `0x${string}` | `0x${string}`[] | undefined;
162
- topics?: viem_dist_types_types.LogTopic[] | undefined;
142
+ topics?: viem_dist_types_types_misc.LogTopic[] | undefined;
163
143
  } & ({
164
144
  fromBlock?: `0x${string}` | viem.BlockTag | undefined;
165
145
  toBlock?: `0x${string}` | viem.BlockTag | undefined;
@@ -169,17 +149,7 @@ declare class CoinbaseWalletConnector extends Connector<CoinbaseWalletProvider,
169
149
  toBlock?: undefined;
170
150
  blockHash?: `0x${string}` | undefined;
171
151
  })];
172
- }): Promise<{
173
- address: `0x${string}`;
174
- blockHash: `0x${string}` | null;
175
- blockNumber: `0x${string}` | null;
176
- data: `0x${string}`;
177
- logIndex: `0x${string}` | null;
178
- transactionHash: `0x${string}` | null;
179
- transactionIndex: `0x${string}` | null;
180
- topics: [] | [`0x${string}`, ...`0x${string}`[]];
181
- removed: boolean;
182
- }[]>;
152
+ }): Promise<viem.RpcLog[]>;
183
153
  (args: {
184
154
  method: "eth_getStorageAt";
185
155
  params: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
@@ -230,7 +200,7 @@ declare class CoinbaseWalletConnector extends Connector<CoinbaseWalletProvider,
230
200
  fromBlock?: `0x${string}` | viem.BlockTag | undefined;
231
201
  toBlock?: `0x${string}` | viem.BlockTag | undefined;
232
202
  address?: `0x${string}` | `0x${string}`[] | undefined;
233
- topics?: viem_dist_types_types.LogTopic[] | undefined;
203
+ topics?: viem_dist_types_types_misc.LogTopic[] | undefined;
234
204
  }];
235
205
  }): Promise<`0x${string}`>;
236
206
  (args: {
@@ -388,36 +358,16 @@ declare class CoinbaseWalletConnector extends Connector<CoinbaseWalletProvider,
388
358
  (args: {
389
359
  method: "eth_getFilterChanges";
390
360
  params: [filterId: `0x${string}`];
391
- }): Promise<`0x${string}`[] | {
392
- address: `0x${string}`;
393
- blockHash: `0x${string}` | null;
394
- blockNumber: `0x${string}` | null;
395
- data: `0x${string}`;
396
- logIndex: `0x${string}` | null;
397
- transactionHash: `0x${string}` | null;
398
- transactionIndex: `0x${string}` | null;
399
- topics: [] | [`0x${string}`, ...`0x${string}`[]];
400
- removed: boolean;
401
- }[]>;
361
+ }): Promise<`0x${string}`[] | viem.RpcLog[]>;
402
362
  (args: {
403
363
  method: "eth_getFilterLogs";
404
364
  params: [filterId: `0x${string}`];
405
- }): Promise<{
406
- address: `0x${string}`;
407
- blockHash: `0x${string}` | null;
408
- blockNumber: `0x${string}` | null;
409
- data: `0x${string}`;
410
- logIndex: `0x${string}` | null;
411
- transactionHash: `0x${string}` | null;
412
- transactionIndex: `0x${string}` | null;
413
- topics: [] | [`0x${string}`, ...`0x${string}`[]];
414
- removed: boolean;
415
- }[]>;
365
+ }): Promise<viem.RpcLog[]>;
416
366
  (args: {
417
367
  method: "eth_getLogs";
418
368
  params: [parameters: {
419
369
  address?: `0x${string}` | `0x${string}`[] | undefined;
420
- topics?: viem_dist_types_types.LogTopic[] | undefined;
370
+ topics?: viem_dist_types_types_misc.LogTopic[] | undefined;
421
371
  } & ({
422
372
  fromBlock?: `0x${string}` | viem.BlockTag | undefined;
423
373
  toBlock?: `0x${string}` | viem.BlockTag | undefined;
@@ -427,17 +377,7 @@ declare class CoinbaseWalletConnector extends Connector<CoinbaseWalletProvider,
427
377
  toBlock?: undefined;
428
378
  blockHash?: `0x${string}` | undefined;
429
379
  })];
430
- }): Promise<{
431
- address: `0x${string}`;
432
- blockHash: `0x${string}` | null;
433
- blockNumber: `0x${string}` | null;
434
- data: `0x${string}`;
435
- logIndex: `0x${string}` | null;
436
- transactionHash: `0x${string}` | null;
437
- transactionIndex: `0x${string}` | null;
438
- topics: [] | [`0x${string}`, ...`0x${string}`[]];
439
- removed: boolean;
440
- }[]>;
380
+ }): Promise<viem.RpcLog[]>;
441
381
  (args: {
442
382
  method: "eth_getStorageAt";
443
383
  params: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
@@ -488,7 +428,7 @@ declare class CoinbaseWalletConnector extends Connector<CoinbaseWalletProvider,
488
428
  fromBlock?: `0x${string}` | viem.BlockTag | undefined;
489
429
  toBlock?: `0x${string}` | viem.BlockTag | undefined;
490
430
  address?: `0x${string}` | `0x${string}`[] | undefined;
491
- topics?: viem_dist_types_types.LogTopic[] | undefined;
431
+ topics?: viem_dist_types_types_misc.LogTopic[] | undefined;
492
432
  }];
493
433
  }): Promise<`0x${string}`>;
494
434
  (args: {
@@ -573,7 +513,7 @@ declare class CoinbaseWalletConnector extends Connector<CoinbaseWalletProvider,
573
513
  type: string;
574
514
  uid: string;
575
515
  addChain: (args: viem.AddChainParameters) => Promise<void>;
576
- 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, {
516
+ deployContract: <TAbi extends readonly unknown[] | abitype.Abi, TChainOverride extends viem.Chain<viem_dist_types_types_formatter.Formatters> | undefined>(args: viem.DeployContractParameters<TAbi, Chain, {
577
517
  address: `0x${string}`;
578
518
  type: "json-rpc";
579
519
  }, TChainOverride>) => Promise<`0x${string}`>;
@@ -585,7 +525,7 @@ declare class CoinbaseWalletConnector extends Connector<CoinbaseWalletProvider,
585
525
  [x: string]: Record<string, any>;
586
526
  eth_accounts: Record<string, any>;
587
527
  }) => Promise<viem.RequestPermissionsReturnType>;
588
- sendTransaction: <TChainOverride_1 extends viem.Chain<viem_dist_types_types.Formatters> | undefined>(args: viem.SendTransactionParameters<Chain, {
528
+ sendTransaction: <TChainOverride_1 extends viem.Chain<viem_dist_types_types_formatter.Formatters> | undefined>(args: viem.SendTransactionParameters<Chain, {
589
529
  address: `0x${string}`;
590
530
  type: "json-rpc";
591
531
  }, TChainOverride_1>) => Promise<`0x${string}`>;
@@ -594,19 +534,20 @@ declare class CoinbaseWalletConnector extends Connector<CoinbaseWalletProvider,
594
534
  type: "json-rpc";
595
535
  }>) => Promise<`0x${string}`>;
596
536
  signTypedData: <TTypedData extends {
597
- [x: string]: readonly abitype_dist_abi_7aa1f183.o[];
537
+ [x: string]: readonly abitype.TypedDataParameter[];
598
538
  [x: `string[${string}]`]: undefined;
599
539
  [x: `function[${string}]`]: undefined;
600
540
  [x: `address[${string}]`]: undefined;
601
541
  [x: `bool[${string}]`]: undefined;
602
542
  [x: `bytes[${string}]`]: undefined;
543
+ [x: `bytes5[${string}]`]: undefined;
544
+ [x: `bytes1[${string}]`]: undefined;
545
+ [x: `bytes18[${string}]`]: undefined;
603
546
  [x: `bytes2[${string}]`]: undefined;
604
547
  [x: `bytes16[${string}]`]: undefined;
605
548
  [x: `bytes10[${string}]`]: undefined;
606
- [x: `bytes1[${string}]`]: undefined;
607
549
  [x: `bytes3[${string}]`]: undefined;
608
550
  [x: `bytes4[${string}]`]: undefined;
609
- [x: `bytes5[${string}]`]: undefined;
610
551
  [x: `bytes6[${string}]`]: undefined;
611
552
  [x: `bytes7[${string}]`]: undefined;
612
553
  [x: `bytes8[${string}]`]: undefined;
@@ -617,7 +558,6 @@ declare class CoinbaseWalletConnector extends Connector<CoinbaseWalletProvider,
617
558
  [x: `bytes14[${string}]`]: undefined;
618
559
  [x: `bytes15[${string}]`]: undefined;
619
560
  [x: `bytes17[${string}]`]: undefined;
620
- [x: `bytes18[${string}]`]: undefined;
621
561
  [x: `bytes19[${string}]`]: undefined;
622
562
  [x: `bytes20[${string}]`]: undefined;
623
563
  [x: `bytes21[${string}]`]: undefined;
@@ -702,13 +642,14 @@ declare class CoinbaseWalletConnector extends Connector<CoinbaseWalletProvider,
702
642
  address?: undefined;
703
643
  bool?: undefined;
704
644
  bytes?: undefined;
645
+ bytes5?: undefined;
646
+ bytes1?: undefined;
647
+ bytes18?: undefined;
705
648
  bytes2?: undefined;
706
649
  bytes16?: undefined;
707
650
  bytes10?: undefined;
708
- bytes1?: undefined;
709
651
  bytes3?: undefined;
710
652
  bytes4?: undefined;
711
- bytes5?: undefined;
712
653
  bytes6?: undefined;
713
654
  bytes7?: undefined;
714
655
  bytes8?: undefined;
@@ -719,7 +660,6 @@ declare class CoinbaseWalletConnector extends Connector<CoinbaseWalletProvider,
719
660
  bytes14?: undefined;
720
661
  bytes15?: undefined;
721
662
  bytes17?: undefined;
722
- bytes18?: undefined;
723
663
  bytes19?: undefined;
724
664
  bytes20?: undefined;
725
665
  bytes21?: undefined;
@@ -806,7 +746,7 @@ declare class CoinbaseWalletConnector extends Connector<CoinbaseWalletProvider,
806
746
  }>) => Promise<`0x${string}`>;
807
747
  switchChain: (args: viem.SwitchChainParameters) => Promise<void>;
808
748
  watchAsset: (args: viem_dist_types_types_eip1193.WatchAssetParams) => Promise<boolean>;
809
- 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, {
749
+ writeContract: <TAbi_1 extends readonly unknown[] | abitype.Abi, TFunctionName extends string, TChainOverride_2 extends viem.Chain<viem_dist_types_types_formatter.Formatters> | undefined>(args: viem.WriteContractParameters<TAbi_1, TFunctionName, Chain, {
810
750
  address: `0x${string}`;
811
751
  type: "json-rpc";
812
752
  }, TChainOverride_2>) => Promise<`0x${string}`>;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { C as Connector, a as ConnectorData, b as ConnectorEvents, W as WindowProvider } from './base-a11da01a.js';
1
+ export { C as Connector, a as ConnectorData, b as ConnectorEvents, W as WindowProvider } from './base-b7cfab8e.js';
2
2
  import '@wagmi/chains';
3
3
  import 'abitype';
4
4
  import 'eventemitter3';
@@ -1,10 +1,11 @@
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 from 'abitype';
3
+ import { Address } from 'abitype';
2
4
  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';
5
+ import * as viem_dist_types_types_misc from 'viem/dist/types/types/misc';
4
6
  import * as viem from 'viem';
5
7
  import { Chain } from '@wagmi/chains';
6
- import { Address } from 'abitype';
7
- import { W as WindowProvider, C as Connector } from './base-a11da01a.js';
8
+ import { W as WindowProvider, C as Connector } from './base-b7cfab8e.js';
8
9
  import 'eventemitter3';
9
10
 
10
11
  type InjectedConnectorOptions = {
@@ -131,36 +132,16 @@ declare class InjectedConnector extends Connector<WindowProvider | undefined, Co
131
132
  (args: {
132
133
  method: "eth_getFilterChanges";
133
134
  params: [filterId: `0x${string}`];
134
- }): Promise<`0x${string}`[] | {
135
- address: `0x${string}`;
136
- blockHash: `0x${string}` | null;
137
- blockNumber: `0x${string}` | null;
138
- data: `0x${string}`;
139
- logIndex: `0x${string}` | null;
140
- transactionHash: `0x${string}` | null;
141
- transactionIndex: `0x${string}` | null;
142
- topics: [] | [`0x${string}`, ...`0x${string}`[]];
143
- removed: boolean;
144
- }[]>;
135
+ }): Promise<`0x${string}`[] | viem.RpcLog[]>;
145
136
  (args: {
146
137
  method: "eth_getFilterLogs";
147
138
  params: [filterId: `0x${string}`];
148
- }): Promise<{
149
- address: `0x${string}`;
150
- blockHash: `0x${string}` | null;
151
- blockNumber: `0x${string}` | null;
152
- data: `0x${string}`;
153
- logIndex: `0x${string}` | null;
154
- transactionHash: `0x${string}` | null;
155
- transactionIndex: `0x${string}` | null;
156
- topics: [] | [`0x${string}`, ...`0x${string}`[]];
157
- removed: boolean;
158
- }[]>;
139
+ }): Promise<viem.RpcLog[]>;
159
140
  (args: {
160
141
  method: "eth_getLogs";
161
142
  params: [parameters: {
162
143
  address?: `0x${string}` | `0x${string}`[] | undefined;
163
- topics?: viem_dist_types_types.LogTopic[] | undefined;
144
+ topics?: viem_dist_types_types_misc.LogTopic[] | undefined;
164
145
  } & ({
165
146
  fromBlock?: `0x${string}` | viem.BlockTag | undefined;
166
147
  toBlock?: `0x${string}` | viem.BlockTag | undefined;
@@ -170,17 +151,7 @@ declare class InjectedConnector extends Connector<WindowProvider | undefined, Co
170
151
  toBlock?: undefined;
171
152
  blockHash?: `0x${string}` | undefined;
172
153
  })];
173
- }): Promise<{
174
- address: `0x${string}`;
175
- blockHash: `0x${string}` | null;
176
- blockNumber: `0x${string}` | null;
177
- data: `0x${string}`;
178
- logIndex: `0x${string}` | null;
179
- transactionHash: `0x${string}` | null;
180
- transactionIndex: `0x${string}` | null;
181
- topics: [] | [`0x${string}`, ...`0x${string}`[]];
182
- removed: boolean;
183
- }[]>;
154
+ }): Promise<viem.RpcLog[]>;
184
155
  (args: {
185
156
  method: "eth_getStorageAt";
186
157
  params: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
@@ -231,7 +202,7 @@ declare class InjectedConnector extends Connector<WindowProvider | undefined, Co
231
202
  fromBlock?: `0x${string}` | viem.BlockTag | undefined;
232
203
  toBlock?: `0x${string}` | viem.BlockTag | undefined;
233
204
  address?: `0x${string}` | `0x${string}`[] | undefined;
234
- topics?: viem_dist_types_types.LogTopic[] | undefined;
205
+ topics?: viem_dist_types_types_misc.LogTopic[] | undefined;
235
206
  }];
236
207
  }): Promise<`0x${string}`>;
237
208
  (args: {
@@ -389,36 +360,16 @@ declare class InjectedConnector extends Connector<WindowProvider | undefined, Co
389
360
  (args: {
390
361
  method: "eth_getFilterChanges";
391
362
  params: [filterId: `0x${string}`];
392
- }): Promise<`0x${string}`[] | {
393
- address: `0x${string}`;
394
- blockHash: `0x${string}` | null;
395
- blockNumber: `0x${string}` | null;
396
- data: `0x${string}`;
397
- logIndex: `0x${string}` | null;
398
- transactionHash: `0x${string}` | null;
399
- transactionIndex: `0x${string}` | null;
400
- topics: [] | [`0x${string}`, ...`0x${string}`[]];
401
- removed: boolean;
402
- }[]>;
363
+ }): Promise<`0x${string}`[] | viem.RpcLog[]>;
403
364
  (args: {
404
365
  method: "eth_getFilterLogs";
405
366
  params: [filterId: `0x${string}`];
406
- }): Promise<{
407
- address: `0x${string}`;
408
- blockHash: `0x${string}` | null;
409
- blockNumber: `0x${string}` | null;
410
- data: `0x${string}`;
411
- logIndex: `0x${string}` | null;
412
- transactionHash: `0x${string}` | null;
413
- transactionIndex: `0x${string}` | null;
414
- topics: [] | [`0x${string}`, ...`0x${string}`[]];
415
- removed: boolean;
416
- }[]>;
367
+ }): Promise<viem.RpcLog[]>;
417
368
  (args: {
418
369
  method: "eth_getLogs";
419
370
  params: [parameters: {
420
371
  address?: `0x${string}` | `0x${string}`[] | undefined;
421
- topics?: viem_dist_types_types.LogTopic[] | undefined;
372
+ topics?: viem_dist_types_types_misc.LogTopic[] | undefined;
422
373
  } & ({
423
374
  fromBlock?: `0x${string}` | viem.BlockTag | undefined;
424
375
  toBlock?: `0x${string}` | viem.BlockTag | undefined;
@@ -428,17 +379,7 @@ declare class InjectedConnector extends Connector<WindowProvider | undefined, Co
428
379
  toBlock?: undefined;
429
380
  blockHash?: `0x${string}` | undefined;
430
381
  })];
431
- }): Promise<{
432
- address: `0x${string}`;
433
- blockHash: `0x${string}` | null;
434
- blockNumber: `0x${string}` | null;
435
- data: `0x${string}`;
436
- logIndex: `0x${string}` | null;
437
- transactionHash: `0x${string}` | null;
438
- transactionIndex: `0x${string}` | null;
439
- topics: [] | [`0x${string}`, ...`0x${string}`[]];
440
- removed: boolean;
441
- }[]>;
382
+ }): Promise<viem.RpcLog[]>;
442
383
  (args: {
443
384
  method: "eth_getStorageAt";
444
385
  params: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
@@ -489,7 +430,7 @@ declare class InjectedConnector extends Connector<WindowProvider | undefined, Co
489
430
  fromBlock?: `0x${string}` | viem.BlockTag | undefined;
490
431
  toBlock?: `0x${string}` | viem.BlockTag | undefined;
491
432
  address?: `0x${string}` | `0x${string}`[] | undefined;
492
- topics?: viem_dist_types_types.LogTopic[] | undefined;
433
+ topics?: viem_dist_types_types_misc.LogTopic[] | undefined;
493
434
  }];
494
435
  }): Promise<`0x${string}`>;
495
436
  (args: {
@@ -574,7 +515,7 @@ declare class InjectedConnector extends Connector<WindowProvider | undefined, Co
574
515
  type: string;
575
516
  uid: string;
576
517
  addChain: (args: viem.AddChainParameters) => Promise<void>;
577
- 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, {
518
+ deployContract: <TAbi extends readonly unknown[] | abitype.Abi, TChainOverride extends viem.Chain<viem_dist_types_types_formatter.Formatters> | undefined>(args: viem.DeployContractParameters<TAbi, Chain, {
578
519
  address: `0x${string}`;
579
520
  type: "json-rpc";
580
521
  }, TChainOverride>) => Promise<`0x${string}`>;
@@ -586,7 +527,7 @@ declare class InjectedConnector extends Connector<WindowProvider | undefined, Co
586
527
  [x: string]: Record<string, any>;
587
528
  eth_accounts: Record<string, any>;
588
529
  }) => Promise<viem.RequestPermissionsReturnType>;
589
- sendTransaction: <TChainOverride_1 extends viem.Chain<viem_dist_types_types.Formatters> | undefined>(args: viem.SendTransactionParameters<Chain, {
530
+ sendTransaction: <TChainOverride_1 extends viem.Chain<viem_dist_types_types_formatter.Formatters> | undefined>(args: viem.SendTransactionParameters<Chain, {
590
531
  address: `0x${string}`;
591
532
  type: "json-rpc";
592
533
  }, TChainOverride_1>) => Promise<`0x${string}`>;
@@ -595,19 +536,20 @@ declare class InjectedConnector extends Connector<WindowProvider | undefined, Co
595
536
  type: "json-rpc";
596
537
  }>) => Promise<`0x${string}`>;
597
538
  signTypedData: <TTypedData extends {
598
- [x: string]: readonly abitype_dist_abi_7aa1f183.o[];
539
+ [x: string]: readonly abitype.TypedDataParameter[];
599
540
  [x: `string[${string}]`]: undefined;
600
541
  [x: `function[${string}]`]: undefined;
601
542
  [x: `address[${string}]`]: undefined;
602
543
  [x: `bool[${string}]`]: undefined;
603
544
  [x: `bytes[${string}]`]: undefined;
545
+ [x: `bytes5[${string}]`]: undefined;
546
+ [x: `bytes1[${string}]`]: undefined;
547
+ [x: `bytes18[${string}]`]: undefined;
604
548
  [x: `bytes2[${string}]`]: undefined;
605
549
  [x: `bytes16[${string}]`]: undefined;
606
550
  [x: `bytes10[${string}]`]: undefined;
607
- [x: `bytes1[${string}]`]: undefined;
608
551
  [x: `bytes3[${string}]`]: undefined;
609
552
  [x: `bytes4[${string}]`]: undefined;
610
- [x: `bytes5[${string}]`]: undefined;
611
553
  [x: `bytes6[${string}]`]: undefined;
612
554
  [x: `bytes7[${string}]`]: undefined;
613
555
  [x: `bytes8[${string}]`]: undefined;
@@ -618,7 +560,6 @@ declare class InjectedConnector extends Connector<WindowProvider | undefined, Co
618
560
  [x: `bytes14[${string}]`]: undefined;
619
561
  [x: `bytes15[${string}]`]: undefined;
620
562
  [x: `bytes17[${string}]`]: undefined;
621
- [x: `bytes18[${string}]`]: undefined;
622
563
  [x: `bytes19[${string}]`]: undefined;
623
564
  [x: `bytes20[${string}]`]: undefined;
624
565
  [x: `bytes21[${string}]`]: undefined;
@@ -703,13 +644,14 @@ declare class InjectedConnector extends Connector<WindowProvider | undefined, Co
703
644
  address?: undefined;
704
645
  bool?: undefined;
705
646
  bytes?: undefined;
647
+ bytes5?: undefined;
648
+ bytes1?: undefined;
649
+ bytes18?: undefined;
706
650
  bytes2?: undefined;
707
651
  bytes16?: undefined;
708
652
  bytes10?: undefined;
709
- bytes1?: undefined;
710
653
  bytes3?: undefined;
711
654
  bytes4?: undefined;
712
- bytes5?: undefined;
713
655
  bytes6?: undefined;
714
656
  bytes7?: undefined;
715
657
  bytes8?: undefined;
@@ -720,7 +662,6 @@ declare class InjectedConnector extends Connector<WindowProvider | undefined, Co
720
662
  bytes14?: undefined;
721
663
  bytes15?: undefined;
722
664
  bytes17?: undefined;
723
- bytes18?: undefined;
724
665
  bytes19?: undefined;
725
666
  bytes20?: undefined;
726
667
  bytes21?: undefined;
@@ -807,7 +748,7 @@ declare class InjectedConnector extends Connector<WindowProvider | undefined, Co
807
748
  }>) => Promise<`0x${string}`>;
808
749
  switchChain: (args: viem.SwitchChainParameters) => Promise<void>;
809
750
  watchAsset: (args: viem_dist_types_types_eip1193.WatchAssetParams) => Promise<boolean>;
810
- 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, {
751
+ writeContract: <TAbi_1 extends readonly unknown[] | abitype.Abi, TFunctionName extends string, TChainOverride_2 extends viem.Chain<viem_dist_types_types_formatter.Formatters> | undefined>(args: viem.WriteContractParameters<TAbi_1, TFunctionName, Chain, {
811
752
  address: `0x${string}`;
812
753
  type: "json-rpc";
813
754
  }, TChainOverride_2>) => Promise<`0x${string}`>;
package/dist/injected.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  InjectedConnector
3
- } from "./chunk-K4TVWOJP.js";
3
+ } from "./chunk-HIOOQYJ7.js";
4
4
  import "./chunk-ZCAPXGBX.js";
5
5
  import "./chunk-OQILYQDO.js";
6
6
  import "./chunk-QYMCVNHT.js";