@latticexyz/entrykit 2.2.14-entrykit-bfd56feb1d7af37a54c62f1e4883633d6a35a308 → 2.2.15-32f30918b8ccc259dd6b8c6869b221a8f82ad337

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,781 +0,0 @@
1
- import { Transport, Chain, Client, Account, Address as Address$1, EIP1193RequestFn, EIP1474Methods, ProviderConnectInfo, OneOf, LocalAccount, Prettify, Assign, Hash } from 'viem';
2
- import { Address } from 'viem/accounts';
3
- import * as react_jsx_runtime from 'react/jsx-runtime';
4
- import { ReactNode } from 'react';
5
- import * as wagmi from 'wagmi';
6
- import { CreateConnectorFn } from 'wagmi';
7
- import { Wallet, WalletList } from '@rainbow-me/rainbowkit';
8
- import { Address as Address$2 } from 'abitype';
9
- import { WebAuthnAccount, SmartAccount, SmartAccountImplementation, entryPoint07Abi } from 'viem/account-abstraction';
10
- import { WebAuthnData, Hex } from 'webauthn-p256';
11
-
12
- type EntryKitConfig = {
13
- /**
14
- * The chain ID where the world is deployed.
15
- * There must be a matching chain entry in wagmi's configured chains.
16
- * The app account client returned by EntryKit will be tied to this chain.
17
- */
18
- readonly chainId: number;
19
- /**
20
- * The world address.
21
- */
22
- readonly worldAddress: Address;
23
- readonly walletConnectProjectId: string;
24
- readonly bundlerTransport: Transport;
25
- readonly paymasterAddress: Address;
26
- readonly passIssuerTransport: Transport;
27
- readonly explorerUrl?: string;
28
- /**
29
- * EntryKit UI theme.
30
- *
31
- * If not set, defaults to OS' light or dark mode.
32
- */
33
- theme?: "dark" | "light";
34
- readonly appInfo?: {
35
- /**
36
- * The app name.
37
- *
38
- * If not set, defaults to page's `<title>`.
39
- */
40
- readonly name?: string;
41
- /**
42
- * The URL of the app icon used throughout the onboarding process. It will be used as a fallback if no `image` is provided. Icon should be 1:1 aspect ratio, at least 200x200.
43
- *
44
- * If not set, defaults to the page's `<link rel="icon">` or the origin's `/favicon.ico`.
45
- */
46
- readonly icon?: string;
47
- /**
48
- * The URL of the splash image displayed during the first step of onboarding. Ideally around 600x250.
49
- *
50
- * If not set, defaults to displaying the name, icon, and origin.
51
- */
52
- readonly image?: string;
53
- /**
54
- * Optional URL to your app's Terms of Use. If set, the step before asking users to sign in to your app will link to this page.
55
- */
56
- readonly termsOfUse?: string;
57
- /**
58
- * Optional URL to your app's Privacy Policy. If set, the step before asking users to sign in to your app will link to this page.
59
- */
60
- readonly privacyPolicy?: string;
61
- };
62
- };
63
-
64
- type ConnectedClient<chain extends Chain = Chain> = Client<Transport, chain, Account>;
65
- type AppAccountClient<chain extends Chain = Chain> = ConnectedClient<chain> & {
66
- readonly userAddress: Address$1;
67
- };
68
-
69
- type Props = {
70
- config: EntryKitConfig;
71
- children?: ReactNode;
72
- };
73
- declare function EntryKitProvider({ config, children }: Props): react_jsx_runtime.JSX.Element;
74
-
75
- declare function useEntryKitConfig(): EntryKitConfig;
76
-
77
- declare function AccountButton(): react_jsx_runtime.JSX.Element;
78
-
79
- type UseAccountModalResult = {
80
- readonly accountModalOpen: boolean;
81
- readonly openAccountModal: () => void;
82
- readonly closeAccountModal: () => void;
83
- readonly toggleAccountModal: (open: boolean) => void;
84
- };
85
- declare function useAccountModal(): UseAccountModalResult;
86
-
87
- declare function usePreparedAppAccountClient(): AppAccountClient | undefined;
88
-
89
- type CreateWagmiConfigOptions<chains extends readonly [Chain, ...Chain[]] = readonly [Chain, ...Chain[]], transports extends Record<chains[number]["id"], Transport> = Record<chains[number]["id"], Transport>> = Pick<EntryKitConfig, "chainId" | "bundlerTransport" | "paymasterAddress"> & {
90
- readonly chains: chains;
91
- readonly transports: transports;
92
- readonly walletConnectProjectId: string;
93
- readonly appInfo: {
94
- readonly name: string;
95
- };
96
- };
97
- declare function createWagmiConfig<const chains extends readonly [Chain, ...Chain[]], transports extends Record<chains[number]["id"], Transport>>(config: CreateWagmiConfigOptions<chains, transports>): wagmi.Config<chains, transports>;
98
-
99
- type PasskeyConnectorOptions = {
100
- chainId: number;
101
- bundlerTransport: Transport;
102
- paymasterAddress: Address$1;
103
- explorerUrl?: string;
104
- };
105
- type PasskeyProvider = {
106
- request: EIP1193RequestFn<EIP1474Methods>;
107
- };
108
- type PasskeyConnectorProperties = {
109
- createPasskey(): Promise<void>;
110
- reusePasskey(): Promise<void>;
111
- hasPasskey(): boolean;
112
- getClient(parameters?: {
113
- chainId?: number | undefined;
114
- } | undefined): Promise<Client>;
115
- onConnect(connectInfo: ProviderConnectInfo): void;
116
- };
117
- type CreatePasskeyConnector = CreateConnectorFn<PasskeyProvider, PasskeyConnectorProperties, {}>;
118
- type PasskeyConnector = ReturnType<CreatePasskeyConnector>;
119
- declare function passkeyConnector({ chainId, bundlerTransport, paymasterAddress, explorerUrl, }: PasskeyConnectorOptions): CreatePasskeyConnector;
120
- declare namespace passkeyConnector {
121
- var type: "passkey";
122
- }
123
-
124
- type PasskeyWalletOptions = PasskeyConnectorOptions;
125
- declare const passkeyWallet: (opts: PasskeyWalletOptions) => () => Wallet;
126
-
127
- type ToCoinbaseSmartAccountParameters = {
128
- address?: Address$2 | undefined;
129
- client: Client;
130
- owners: readonly OneOf<LocalAccount | WebAuthnAccount>[];
131
- nonce?: bigint | undefined;
132
- signer?: OneOf<LocalAccount | WebAuthnAccount>;
133
- };
134
- type ToCoinbaseSmartAccountReturnType = Prettify<SmartAccount<CoinbaseSmartAccountImplementation>>;
135
- type CoinbaseSmartAccountImplementation = Assign<SmartAccountImplementation<typeof entryPoint07Abi, "0.7", {
136
- __isCoinbaseSmartAccount: true;
137
- abi: typeof abi;
138
- factory: {
139
- abi: typeof factoryAbi;
140
- address: Address$2;
141
- };
142
- signer: OneOf<LocalAccount | WebAuthnAccount>;
143
- }>, {
144
- sign: NonNullable<SmartAccountImplementation["sign"]>;
145
- isOwner: (account: LocalAccount | WebAuthnAccount) => Promise<boolean>;
146
- }>;
147
- /**
148
- * @description Create a Coinbase Smart Account.
149
- *
150
- * @param parameters - {@link ToCoinbaseSmartAccountParameters}
151
- * @returns Coinbase Smart Account. {@link ToCoinbaseSmartAccountReturnType}
152
- *
153
- * @example
154
- * import { toCoinbaseSmartAccount } from 'viem/account-abstraction'
155
- * import { privateKeyToAccount } from 'viem/accounts'
156
- * import { client } from './client.js'
157
- *
158
- * const account = toCoinbaseSmartAccount({
159
- * client,
160
- * owners: [privateKeyToAccount('0x...')],
161
- * })
162
- */
163
- declare function toCoinbaseSmartAccount(parameters: ToCoinbaseSmartAccountParameters): Promise<ToCoinbaseSmartAccountReturnType>;
164
- /** @internal */
165
- declare function sign({ hash, owner }: {
166
- hash: Hash;
167
- owner: OneOf<LocalAccount | WebAuthnAccount>;
168
- }): Promise<`0x${string}`>;
169
- /** @internal */
170
- declare function toReplaySafeHash({ address, chainId, hash }: {
171
- address: Address$2;
172
- chainId: number;
173
- hash: Hash;
174
- }): `0x${string}`;
175
- /** @internal */
176
- declare function toWebAuthnSignature({ webauthn, signature }: {
177
- webauthn: WebAuthnData;
178
- signature: Hex;
179
- }): `0x${string}`;
180
- /** @internal */
181
- declare function wrapSignature(parameters: {
182
- ownerIndex: number;
183
- signature: Hex;
184
- }): `0x${string}`;
185
- declare const abi: readonly [{
186
- readonly inputs: readonly [];
187
- readonly stateMutability: "nonpayable";
188
- readonly type: "constructor";
189
- }, {
190
- readonly inputs: readonly [{
191
- readonly name: "owner";
192
- readonly type: "bytes";
193
- }];
194
- readonly name: "AlreadyOwner";
195
- readonly type: "error";
196
- }, {
197
- readonly inputs: readonly [];
198
- readonly name: "Initialized";
199
- readonly type: "error";
200
- }, {
201
- readonly inputs: readonly [{
202
- readonly name: "owner";
203
- readonly type: "bytes";
204
- }];
205
- readonly name: "InvalidEthereumAddressOwner";
206
- readonly type: "error";
207
- }, {
208
- readonly inputs: readonly [{
209
- readonly name: "key";
210
- readonly type: "uint256";
211
- }];
212
- readonly name: "InvalidNonceKey";
213
- readonly type: "error";
214
- }, {
215
- readonly inputs: readonly [{
216
- readonly name: "owner";
217
- readonly type: "bytes";
218
- }];
219
- readonly name: "InvalidOwnerBytesLength";
220
- readonly type: "error";
221
- }, {
222
- readonly inputs: readonly [];
223
- readonly name: "LastOwner";
224
- readonly type: "error";
225
- }, {
226
- readonly inputs: readonly [{
227
- readonly name: "index";
228
- readonly type: "uint256";
229
- }];
230
- readonly name: "NoOwnerAtIndex";
231
- readonly type: "error";
232
- }, {
233
- readonly inputs: readonly [{
234
- readonly name: "ownersRemaining";
235
- readonly type: "uint256";
236
- }];
237
- readonly name: "NotLastOwner";
238
- readonly type: "error";
239
- }, {
240
- readonly inputs: readonly [{
241
- readonly name: "selector";
242
- readonly type: "bytes4";
243
- }];
244
- readonly name: "SelectorNotAllowed";
245
- readonly type: "error";
246
- }, {
247
- readonly inputs: readonly [];
248
- readonly name: "Unauthorized";
249
- readonly type: "error";
250
- }, {
251
- readonly inputs: readonly [];
252
- readonly name: "UnauthorizedCallContext";
253
- readonly type: "error";
254
- }, {
255
- readonly inputs: readonly [];
256
- readonly name: "UpgradeFailed";
257
- readonly type: "error";
258
- }, {
259
- readonly inputs: readonly [{
260
- readonly name: "index";
261
- readonly type: "uint256";
262
- }, {
263
- readonly name: "expectedOwner";
264
- readonly type: "bytes";
265
- }, {
266
- readonly name: "actualOwner";
267
- readonly type: "bytes";
268
- }];
269
- readonly name: "WrongOwnerAtIndex";
270
- readonly type: "error";
271
- }, {
272
- readonly anonymous: false;
273
- readonly inputs: readonly [{
274
- readonly indexed: true;
275
- readonly name: "index";
276
- readonly type: "uint256";
277
- }, {
278
- readonly indexed: false;
279
- readonly name: "owner";
280
- readonly type: "bytes";
281
- }];
282
- readonly name: "AddOwner";
283
- readonly type: "event";
284
- }, {
285
- readonly anonymous: false;
286
- readonly inputs: readonly [{
287
- readonly indexed: true;
288
- readonly name: "index";
289
- readonly type: "uint256";
290
- }, {
291
- readonly indexed: false;
292
- readonly name: "owner";
293
- readonly type: "bytes";
294
- }];
295
- readonly name: "RemoveOwner";
296
- readonly type: "event";
297
- }, {
298
- readonly anonymous: false;
299
- readonly inputs: readonly [{
300
- readonly indexed: true;
301
- readonly name: "implementation";
302
- readonly type: "address";
303
- }];
304
- readonly name: "Upgraded";
305
- readonly type: "event";
306
- }, {
307
- readonly stateMutability: "payable";
308
- readonly type: "fallback";
309
- }, {
310
- readonly inputs: readonly [];
311
- readonly name: "REPLAYABLE_NONCE_KEY";
312
- readonly outputs: readonly [{
313
- readonly name: "";
314
- readonly type: "uint256";
315
- }];
316
- readonly stateMutability: "view";
317
- readonly type: "function";
318
- }, {
319
- readonly inputs: readonly [{
320
- readonly name: "owner";
321
- readonly type: "address";
322
- }];
323
- readonly name: "addOwnerAddress";
324
- readonly outputs: readonly [];
325
- readonly stateMutability: "nonpayable";
326
- readonly type: "function";
327
- }, {
328
- readonly inputs: readonly [{
329
- readonly name: "x";
330
- readonly type: "bytes32";
331
- }, {
332
- readonly name: "y";
333
- readonly type: "bytes32";
334
- }];
335
- readonly name: "addOwnerPublicKey";
336
- readonly outputs: readonly [];
337
- readonly stateMutability: "nonpayable";
338
- readonly type: "function";
339
- }, {
340
- readonly inputs: readonly [{
341
- readonly name: "functionSelector";
342
- readonly type: "bytes4";
343
- }];
344
- readonly name: "canSkipChainIdValidation";
345
- readonly outputs: readonly [{
346
- readonly name: "";
347
- readonly type: "bool";
348
- }];
349
- readonly stateMutability: "pure";
350
- readonly type: "function";
351
- }, {
352
- readonly inputs: readonly [];
353
- readonly name: "domainSeparator";
354
- readonly outputs: readonly [{
355
- readonly name: "";
356
- readonly type: "bytes32";
357
- }];
358
- readonly stateMutability: "view";
359
- readonly type: "function";
360
- }, {
361
- readonly inputs: readonly [];
362
- readonly name: "eip712Domain";
363
- readonly outputs: readonly [{
364
- readonly name: "fields";
365
- readonly type: "bytes1";
366
- }, {
367
- readonly name: "name";
368
- readonly type: "string";
369
- }, {
370
- readonly name: "version";
371
- readonly type: "string";
372
- }, {
373
- readonly name: "chainId";
374
- readonly type: "uint256";
375
- }, {
376
- readonly name: "verifyingContract";
377
- readonly type: "address";
378
- }, {
379
- readonly name: "salt";
380
- readonly type: "bytes32";
381
- }, {
382
- readonly name: "extensions";
383
- readonly type: "uint256[]";
384
- }];
385
- readonly stateMutability: "view";
386
- readonly type: "function";
387
- }, {
388
- readonly inputs: readonly [];
389
- readonly name: "entryPoint";
390
- readonly outputs: readonly [{
391
- readonly name: "";
392
- readonly type: "address";
393
- }];
394
- readonly stateMutability: "view";
395
- readonly type: "function";
396
- }, {
397
- readonly inputs: readonly [{
398
- readonly name: "target";
399
- readonly type: "address";
400
- }, {
401
- readonly name: "value";
402
- readonly type: "uint256";
403
- }, {
404
- readonly name: "data";
405
- readonly type: "bytes";
406
- }];
407
- readonly name: "execute";
408
- readonly outputs: readonly [];
409
- readonly stateMutability: "payable";
410
- readonly type: "function";
411
- }, {
412
- readonly inputs: readonly [{
413
- readonly components: readonly [{
414
- readonly name: "target";
415
- readonly type: "address";
416
- }, {
417
- readonly name: "value";
418
- readonly type: "uint256";
419
- }, {
420
- readonly name: "data";
421
- readonly type: "bytes";
422
- }];
423
- readonly name: "calls";
424
- readonly type: "tuple[]";
425
- }];
426
- readonly name: "executeBatch";
427
- readonly outputs: readonly [];
428
- readonly stateMutability: "payable";
429
- readonly type: "function";
430
- }, {
431
- readonly inputs: readonly [{
432
- readonly name: "calls";
433
- readonly type: "bytes[]";
434
- }];
435
- readonly name: "executeWithoutChainIdValidation";
436
- readonly outputs: readonly [];
437
- readonly stateMutability: "payable";
438
- readonly type: "function";
439
- }, {
440
- readonly inputs: readonly [{
441
- readonly components: readonly [{
442
- readonly name: "sender";
443
- readonly type: "address";
444
- }, {
445
- readonly name: "nonce";
446
- readonly type: "uint256";
447
- }, {
448
- readonly name: "initCode";
449
- readonly type: "bytes";
450
- }, {
451
- readonly name: "callData";
452
- readonly type: "bytes";
453
- }, {
454
- readonly name: "callGasLimit";
455
- readonly type: "uint256";
456
- }, {
457
- readonly name: "verificationGasLimit";
458
- readonly type: "uint256";
459
- }, {
460
- readonly name: "preVerificationGas";
461
- readonly type: "uint256";
462
- }, {
463
- readonly name: "maxFeePerGas";
464
- readonly type: "uint256";
465
- }, {
466
- readonly name: "maxPriorityFeePerGas";
467
- readonly type: "uint256";
468
- }, {
469
- readonly name: "paymasterAndData";
470
- readonly type: "bytes";
471
- }, {
472
- readonly name: "signature";
473
- readonly type: "bytes";
474
- }];
475
- readonly name: "userOp";
476
- readonly type: "tuple";
477
- }];
478
- readonly name: "getUserOpHashWithoutChainId";
479
- readonly outputs: readonly [{
480
- readonly name: "";
481
- readonly type: "bytes32";
482
- }];
483
- readonly stateMutability: "view";
484
- readonly type: "function";
485
- }, {
486
- readonly inputs: readonly [];
487
- readonly name: "implementation";
488
- readonly outputs: readonly [{
489
- readonly name: "$";
490
- readonly type: "address";
491
- }];
492
- readonly stateMutability: "view";
493
- readonly type: "function";
494
- }, {
495
- readonly inputs: readonly [{
496
- readonly name: "owners";
497
- readonly type: "bytes[]";
498
- }];
499
- readonly name: "initialize";
500
- readonly outputs: readonly [];
501
- readonly stateMutability: "payable";
502
- readonly type: "function";
503
- }, {
504
- readonly inputs: readonly [{
505
- readonly name: "account";
506
- readonly type: "address";
507
- }];
508
- readonly name: "isOwnerAddress";
509
- readonly outputs: readonly [{
510
- readonly name: "";
511
- readonly type: "bool";
512
- }];
513
- readonly stateMutability: "view";
514
- readonly type: "function";
515
- }, {
516
- readonly inputs: readonly [{
517
- readonly name: "account";
518
- readonly type: "bytes";
519
- }];
520
- readonly name: "isOwnerBytes";
521
- readonly outputs: readonly [{
522
- readonly name: "";
523
- readonly type: "bool";
524
- }];
525
- readonly stateMutability: "view";
526
- readonly type: "function";
527
- }, {
528
- readonly inputs: readonly [{
529
- readonly name: "x";
530
- readonly type: "bytes32";
531
- }, {
532
- readonly name: "y";
533
- readonly type: "bytes32";
534
- }];
535
- readonly name: "isOwnerPublicKey";
536
- readonly outputs: readonly [{
537
- readonly name: "";
538
- readonly type: "bool";
539
- }];
540
- readonly stateMutability: "view";
541
- readonly type: "function";
542
- }, {
543
- readonly inputs: readonly [{
544
- readonly name: "hash";
545
- readonly type: "bytes32";
546
- }, {
547
- readonly name: "signature";
548
- readonly type: "bytes";
549
- }];
550
- readonly name: "isValidSignature";
551
- readonly outputs: readonly [{
552
- readonly name: "result";
553
- readonly type: "bytes4";
554
- }];
555
- readonly stateMutability: "view";
556
- readonly type: "function";
557
- }, {
558
- readonly inputs: readonly [];
559
- readonly name: "nextOwnerIndex";
560
- readonly outputs: readonly [{
561
- readonly name: "";
562
- readonly type: "uint256";
563
- }];
564
- readonly stateMutability: "view";
565
- readonly type: "function";
566
- }, {
567
- readonly inputs: readonly [{
568
- readonly name: "index";
569
- readonly type: "uint256";
570
- }];
571
- readonly name: "ownerAtIndex";
572
- readonly outputs: readonly [{
573
- readonly name: "";
574
- readonly type: "bytes";
575
- }];
576
- readonly stateMutability: "view";
577
- readonly type: "function";
578
- }, {
579
- readonly inputs: readonly [];
580
- readonly name: "ownerCount";
581
- readonly outputs: readonly [{
582
- readonly name: "";
583
- readonly type: "uint256";
584
- }];
585
- readonly stateMutability: "view";
586
- readonly type: "function";
587
- }, {
588
- readonly inputs: readonly [];
589
- readonly name: "proxiableUUID";
590
- readonly outputs: readonly [{
591
- readonly name: "";
592
- readonly type: "bytes32";
593
- }];
594
- readonly stateMutability: "view";
595
- readonly type: "function";
596
- }, {
597
- readonly inputs: readonly [{
598
- readonly name: "index";
599
- readonly type: "uint256";
600
- }, {
601
- readonly name: "owner";
602
- readonly type: "bytes";
603
- }];
604
- readonly name: "removeLastOwner";
605
- readonly outputs: readonly [];
606
- readonly stateMutability: "nonpayable";
607
- readonly type: "function";
608
- }, {
609
- readonly inputs: readonly [{
610
- readonly name: "index";
611
- readonly type: "uint256";
612
- }, {
613
- readonly name: "owner";
614
- readonly type: "bytes";
615
- }];
616
- readonly name: "removeOwnerAtIndex";
617
- readonly outputs: readonly [];
618
- readonly stateMutability: "nonpayable";
619
- readonly type: "function";
620
- }, {
621
- readonly inputs: readonly [];
622
- readonly name: "removedOwnersCount";
623
- readonly outputs: readonly [{
624
- readonly name: "";
625
- readonly type: "uint256";
626
- }];
627
- readonly stateMutability: "view";
628
- readonly type: "function";
629
- }, {
630
- readonly inputs: readonly [{
631
- readonly name: "hash";
632
- readonly type: "bytes32";
633
- }];
634
- readonly name: "replaySafeHash";
635
- readonly outputs: readonly [{
636
- readonly name: "";
637
- readonly type: "bytes32";
638
- }];
639
- readonly stateMutability: "view";
640
- readonly type: "function";
641
- }, {
642
- readonly inputs: readonly [{
643
- readonly name: "newImplementation";
644
- readonly type: "address";
645
- }, {
646
- readonly name: "data";
647
- readonly type: "bytes";
648
- }];
649
- readonly name: "upgradeToAndCall";
650
- readonly outputs: readonly [];
651
- readonly stateMutability: "payable";
652
- readonly type: "function";
653
- }, {
654
- readonly inputs: readonly [{
655
- readonly components: readonly [{
656
- readonly name: "sender";
657
- readonly type: "address";
658
- }, {
659
- readonly name: "nonce";
660
- readonly type: "uint256";
661
- }, {
662
- readonly name: "initCode";
663
- readonly type: "bytes";
664
- }, {
665
- readonly name: "callData";
666
- readonly type: "bytes";
667
- }, {
668
- readonly name: "callGasLimit";
669
- readonly type: "uint256";
670
- }, {
671
- readonly name: "verificationGasLimit";
672
- readonly type: "uint256";
673
- }, {
674
- readonly name: "preVerificationGas";
675
- readonly type: "uint256";
676
- }, {
677
- readonly name: "maxFeePerGas";
678
- readonly type: "uint256";
679
- }, {
680
- readonly name: "maxPriorityFeePerGas";
681
- readonly type: "uint256";
682
- }, {
683
- readonly name: "paymasterAndData";
684
- readonly type: "bytes";
685
- }, {
686
- readonly name: "signature";
687
- readonly type: "bytes";
688
- }];
689
- readonly name: "userOp";
690
- readonly type: "tuple";
691
- }, {
692
- readonly name: "userOpHash";
693
- readonly type: "bytes32";
694
- }, {
695
- readonly name: "missingAccountFunds";
696
- readonly type: "uint256";
697
- }];
698
- readonly name: "validateUserOp";
699
- readonly outputs: readonly [{
700
- readonly name: "validationData";
701
- readonly type: "uint256";
702
- }];
703
- readonly stateMutability: "nonpayable";
704
- readonly type: "function";
705
- }, {
706
- readonly stateMutability: "payable";
707
- readonly type: "receive";
708
- }];
709
- declare const factoryAbi: readonly [{
710
- readonly inputs: readonly [{
711
- readonly name: "implementation_";
712
- readonly type: "address";
713
- }];
714
- readonly stateMutability: "payable";
715
- readonly type: "constructor";
716
- }, {
717
- readonly inputs: readonly [];
718
- readonly name: "OwnerRequired";
719
- readonly type: "error";
720
- }, {
721
- readonly inputs: readonly [{
722
- readonly name: "owners";
723
- readonly type: "bytes[]";
724
- }, {
725
- readonly name: "nonce";
726
- readonly type: "uint256";
727
- }];
728
- readonly name: "createAccount";
729
- readonly outputs: readonly [{
730
- readonly name: "account";
731
- readonly type: "address";
732
- }];
733
- readonly stateMutability: "payable";
734
- readonly type: "function";
735
- }, {
736
- readonly inputs: readonly [{
737
- readonly name: "owners";
738
- readonly type: "bytes[]";
739
- }, {
740
- readonly name: "nonce";
741
- readonly type: "uint256";
742
- }];
743
- readonly name: "getAddress";
744
- readonly outputs: readonly [{
745
- readonly name: "";
746
- readonly type: "address";
747
- }];
748
- readonly stateMutability: "view";
749
- readonly type: "function";
750
- }, {
751
- readonly inputs: readonly [];
752
- readonly name: "implementation";
753
- readonly outputs: readonly [{
754
- readonly name: "";
755
- readonly type: "address";
756
- }];
757
- readonly stateMutability: "view";
758
- readonly type: "function";
759
- }, {
760
- readonly inputs: readonly [];
761
- readonly name: "initCodeHash";
762
- readonly outputs: readonly [{
763
- readonly name: "";
764
- readonly type: "bytes32";
765
- }];
766
- readonly stateMutability: "view";
767
- readonly type: "function";
768
- }];
769
-
770
- declare function isCoinbaseSmartAccount(account: Account | undefined): account is ToCoinbaseSmartAccountReturnType;
771
-
772
- declare const wiresawChainIds: Set<number>;
773
- declare function wiresaw<const transport extends Transport>(originalTransport: transport): transport;
774
-
775
- declare function getConnectors({ wallets, ...config }: EntryKitConfig & {
776
- readonly wallets?: WalletList;
777
- }): CreateConnectorFn[];
778
-
779
- declare function getWallets(config: EntryKitConfig): WalletList;
780
-
781
- export { AccountButton, AppAccountClient, CoinbaseSmartAccountImplementation, ConnectedClient, CreatePasskeyConnector, CreateWagmiConfigOptions, EntryKitConfig, EntryKitProvider, PasskeyConnector, PasskeyConnectorOptions, PasskeyConnectorProperties, PasskeyProvider, PasskeyWalletOptions, ToCoinbaseSmartAccountParameters, ToCoinbaseSmartAccountReturnType, abi, createWagmiConfig, getConnectors, getWallets, isCoinbaseSmartAccount, passkeyConnector, passkeyWallet, sign, toCoinbaseSmartAccount, toReplaySafeHash, toWebAuthnSignature, useAccountModal, usePreparedAppAccountClient as useAppAccountClient, useEntryKitConfig, wiresaw, wiresawChainIds, wrapSignature };