@gitmyabi/coinbasesmartwallet 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.
@@ -0,0 +1,1187 @@
1
+ import type { Address, PublicClient, WalletClient } from 'viem';
2
+ /**
3
+ * CoinbaseSmartWallet.Call struct type
4
+ */
5
+ export type CoinbaseSmartWallet_Call = {
6
+ target: `0x${string}`;
7
+ value: bigint;
8
+ data: `0x${string}`;
9
+ };
10
+ /**
11
+ * UserOperation struct type
12
+ */
13
+ export type UserOperation = {
14
+ sender: `0x${string}`;
15
+ nonce: bigint;
16
+ initCode: `0x${string}`;
17
+ callData: `0x${string}`;
18
+ callGasLimit: bigint;
19
+ verificationGasLimit: bigint;
20
+ preVerificationGas: bigint;
21
+ maxFeePerGas: bigint;
22
+ maxPriorityFeePerGas: bigint;
23
+ paymasterAndData: `0x${string}`;
24
+ signature: `0x${string}`;
25
+ };
26
+ /**
27
+ * CoinbaseSmartWallet_json ABI
28
+ *
29
+ * This ABI is typed using viem's type system for full type safety.
30
+ */
31
+ export declare const CoinbaseSmartWallet_jsonAbi: readonly [{
32
+ readonly inputs: readonly [];
33
+ readonly stateMutability: "nonpayable";
34
+ readonly type: "constructor";
35
+ }, {
36
+ readonly inputs: readonly [{
37
+ readonly internalType: "bytes";
38
+ readonly name: "owner";
39
+ readonly type: "bytes";
40
+ }];
41
+ readonly name: "AlreadyOwner";
42
+ readonly type: "error";
43
+ }, {
44
+ readonly inputs: readonly [];
45
+ readonly name: "Initialized";
46
+ readonly type: "error";
47
+ }, {
48
+ readonly inputs: readonly [{
49
+ readonly internalType: "bytes";
50
+ readonly name: "owner";
51
+ readonly type: "bytes";
52
+ }];
53
+ readonly name: "InvalidEthereumAddressOwner";
54
+ readonly type: "error";
55
+ }, {
56
+ readonly inputs: readonly [{
57
+ readonly internalType: "uint256";
58
+ readonly name: "key";
59
+ readonly type: "uint256";
60
+ }];
61
+ readonly name: "InvalidNonceKey";
62
+ readonly type: "error";
63
+ }, {
64
+ readonly inputs: readonly [{
65
+ readonly internalType: "bytes";
66
+ readonly name: "owner";
67
+ readonly type: "bytes";
68
+ }];
69
+ readonly name: "InvalidOwnerBytesLength";
70
+ readonly type: "error";
71
+ }, {
72
+ readonly inputs: readonly [];
73
+ readonly name: "LastOwner";
74
+ readonly type: "error";
75
+ }, {
76
+ readonly inputs: readonly [{
77
+ readonly internalType: "uint256";
78
+ readonly name: "index";
79
+ readonly type: "uint256";
80
+ }];
81
+ readonly name: "NoOwnerAtIndex";
82
+ readonly type: "error";
83
+ }, {
84
+ readonly inputs: readonly [{
85
+ readonly internalType: "uint256";
86
+ readonly name: "ownersRemaining";
87
+ readonly type: "uint256";
88
+ }];
89
+ readonly name: "NotLastOwner";
90
+ readonly type: "error";
91
+ }, {
92
+ readonly inputs: readonly [{
93
+ readonly internalType: "bytes4";
94
+ readonly name: "selector";
95
+ readonly type: "bytes4";
96
+ }];
97
+ readonly name: "SelectorNotAllowed";
98
+ readonly type: "error";
99
+ }, {
100
+ readonly inputs: readonly [];
101
+ readonly name: "Unauthorized";
102
+ readonly type: "error";
103
+ }, {
104
+ readonly inputs: readonly [];
105
+ readonly name: "UnauthorizedCallContext";
106
+ readonly type: "error";
107
+ }, {
108
+ readonly inputs: readonly [];
109
+ readonly name: "UpgradeFailed";
110
+ readonly type: "error";
111
+ }, {
112
+ readonly inputs: readonly [{
113
+ readonly internalType: "uint256";
114
+ readonly name: "index";
115
+ readonly type: "uint256";
116
+ }, {
117
+ readonly internalType: "bytes";
118
+ readonly name: "expectedOwner";
119
+ readonly type: "bytes";
120
+ }, {
121
+ readonly internalType: "bytes";
122
+ readonly name: "actualOwner";
123
+ readonly type: "bytes";
124
+ }];
125
+ readonly name: "WrongOwnerAtIndex";
126
+ readonly type: "error";
127
+ }, {
128
+ readonly anonymous: false;
129
+ readonly inputs: readonly [{
130
+ readonly indexed: true;
131
+ readonly internalType: "uint256";
132
+ readonly name: "index";
133
+ readonly type: "uint256";
134
+ }, {
135
+ readonly indexed: false;
136
+ readonly internalType: "bytes";
137
+ readonly name: "owner";
138
+ readonly type: "bytes";
139
+ }];
140
+ readonly name: "AddOwner";
141
+ readonly type: "event";
142
+ }, {
143
+ readonly anonymous: false;
144
+ readonly inputs: readonly [{
145
+ readonly indexed: true;
146
+ readonly internalType: "uint256";
147
+ readonly name: "index";
148
+ readonly type: "uint256";
149
+ }, {
150
+ readonly indexed: false;
151
+ readonly internalType: "bytes";
152
+ readonly name: "owner";
153
+ readonly type: "bytes";
154
+ }];
155
+ readonly name: "RemoveOwner";
156
+ readonly type: "event";
157
+ }, {
158
+ readonly anonymous: false;
159
+ readonly inputs: readonly [{
160
+ readonly indexed: true;
161
+ readonly internalType: "address";
162
+ readonly name: "implementation";
163
+ readonly type: "address";
164
+ }];
165
+ readonly name: "Upgraded";
166
+ readonly type: "event";
167
+ }, {
168
+ readonly stateMutability: "payable";
169
+ readonly type: "fallback";
170
+ }, {
171
+ readonly inputs: readonly [];
172
+ readonly name: "REPLAYABLE_NONCE_KEY";
173
+ readonly outputs: readonly [{
174
+ readonly internalType: "uint256";
175
+ readonly name: "";
176
+ readonly type: "uint256";
177
+ }];
178
+ readonly stateMutability: "view";
179
+ readonly type: "function";
180
+ }, {
181
+ readonly inputs: readonly [{
182
+ readonly internalType: "address";
183
+ readonly name: "owner";
184
+ readonly type: "address";
185
+ }];
186
+ readonly name: "addOwnerAddress";
187
+ readonly outputs: readonly [];
188
+ readonly stateMutability: "nonpayable";
189
+ readonly type: "function";
190
+ }, {
191
+ readonly inputs: readonly [{
192
+ readonly internalType: "bytes32";
193
+ readonly name: "x";
194
+ readonly type: "bytes32";
195
+ }, {
196
+ readonly internalType: "bytes32";
197
+ readonly name: "y";
198
+ readonly type: "bytes32";
199
+ }];
200
+ readonly name: "addOwnerPublicKey";
201
+ readonly outputs: readonly [];
202
+ readonly stateMutability: "nonpayable";
203
+ readonly type: "function";
204
+ }, {
205
+ readonly inputs: readonly [{
206
+ readonly internalType: "bytes4";
207
+ readonly name: "functionSelector";
208
+ readonly type: "bytes4";
209
+ }];
210
+ readonly name: "canSkipChainIdValidation";
211
+ readonly outputs: readonly [{
212
+ readonly internalType: "bool";
213
+ readonly name: "";
214
+ readonly type: "bool";
215
+ }];
216
+ readonly stateMutability: "pure";
217
+ readonly type: "function";
218
+ }, {
219
+ readonly inputs: readonly [];
220
+ readonly name: "domainSeparator";
221
+ readonly outputs: readonly [{
222
+ readonly internalType: "bytes32";
223
+ readonly name: "";
224
+ readonly type: "bytes32";
225
+ }];
226
+ readonly stateMutability: "view";
227
+ readonly type: "function";
228
+ }, {
229
+ readonly inputs: readonly [];
230
+ readonly name: "eip712Domain";
231
+ readonly outputs: readonly [{
232
+ readonly internalType: "bytes1";
233
+ readonly name: "fields";
234
+ readonly type: "bytes1";
235
+ }, {
236
+ readonly internalType: "string";
237
+ readonly name: "name";
238
+ readonly type: "string";
239
+ }, {
240
+ readonly internalType: "string";
241
+ readonly name: "version";
242
+ readonly type: "string";
243
+ }, {
244
+ readonly internalType: "uint256";
245
+ readonly name: "chainId";
246
+ readonly type: "uint256";
247
+ }, {
248
+ readonly internalType: "address";
249
+ readonly name: "verifyingContract";
250
+ readonly type: "address";
251
+ }, {
252
+ readonly internalType: "bytes32";
253
+ readonly name: "salt";
254
+ readonly type: "bytes32";
255
+ }, {
256
+ readonly internalType: "uint256[]";
257
+ readonly name: "extensions";
258
+ readonly type: "uint256[]";
259
+ }];
260
+ readonly stateMutability: "view";
261
+ readonly type: "function";
262
+ }, {
263
+ readonly inputs: readonly [];
264
+ readonly name: "entryPoint";
265
+ readonly outputs: readonly [{
266
+ readonly internalType: "address";
267
+ readonly name: "";
268
+ readonly type: "address";
269
+ }];
270
+ readonly stateMutability: "view";
271
+ readonly type: "function";
272
+ }, {
273
+ readonly inputs: readonly [{
274
+ readonly internalType: "address";
275
+ readonly name: "target";
276
+ readonly type: "address";
277
+ }, {
278
+ readonly internalType: "uint256";
279
+ readonly name: "value";
280
+ readonly type: "uint256";
281
+ }, {
282
+ readonly internalType: "bytes";
283
+ readonly name: "data";
284
+ readonly type: "bytes";
285
+ }];
286
+ readonly name: "execute";
287
+ readonly outputs: readonly [];
288
+ readonly stateMutability: "payable";
289
+ readonly type: "function";
290
+ }, {
291
+ readonly inputs: readonly [{
292
+ readonly components: readonly [{
293
+ readonly internalType: "address";
294
+ readonly name: "target";
295
+ readonly type: "address";
296
+ }, {
297
+ readonly internalType: "uint256";
298
+ readonly name: "value";
299
+ readonly type: "uint256";
300
+ }, {
301
+ readonly internalType: "bytes";
302
+ readonly name: "data";
303
+ readonly type: "bytes";
304
+ }];
305
+ readonly internalType: "struct CoinbaseSmartWallet.Call[]";
306
+ readonly name: "calls";
307
+ readonly type: "tuple[]";
308
+ }];
309
+ readonly name: "executeBatch";
310
+ readonly outputs: readonly [];
311
+ readonly stateMutability: "payable";
312
+ readonly type: "function";
313
+ }, {
314
+ readonly inputs: readonly [{
315
+ readonly internalType: "bytes[]";
316
+ readonly name: "calls";
317
+ readonly type: "bytes[]";
318
+ }];
319
+ readonly name: "executeWithoutChainIdValidation";
320
+ readonly outputs: readonly [];
321
+ readonly stateMutability: "payable";
322
+ readonly type: "function";
323
+ }, {
324
+ readonly inputs: readonly [{
325
+ readonly components: readonly [{
326
+ readonly internalType: "address";
327
+ readonly name: "sender";
328
+ readonly type: "address";
329
+ }, {
330
+ readonly internalType: "uint256";
331
+ readonly name: "nonce";
332
+ readonly type: "uint256";
333
+ }, {
334
+ readonly internalType: "bytes";
335
+ readonly name: "initCode";
336
+ readonly type: "bytes";
337
+ }, {
338
+ readonly internalType: "bytes";
339
+ readonly name: "callData";
340
+ readonly type: "bytes";
341
+ }, {
342
+ readonly internalType: "uint256";
343
+ readonly name: "callGasLimit";
344
+ readonly type: "uint256";
345
+ }, {
346
+ readonly internalType: "uint256";
347
+ readonly name: "verificationGasLimit";
348
+ readonly type: "uint256";
349
+ }, {
350
+ readonly internalType: "uint256";
351
+ readonly name: "preVerificationGas";
352
+ readonly type: "uint256";
353
+ }, {
354
+ readonly internalType: "uint256";
355
+ readonly name: "maxFeePerGas";
356
+ readonly type: "uint256";
357
+ }, {
358
+ readonly internalType: "uint256";
359
+ readonly name: "maxPriorityFeePerGas";
360
+ readonly type: "uint256";
361
+ }, {
362
+ readonly internalType: "bytes";
363
+ readonly name: "paymasterAndData";
364
+ readonly type: "bytes";
365
+ }, {
366
+ readonly internalType: "bytes";
367
+ readonly name: "signature";
368
+ readonly type: "bytes";
369
+ }];
370
+ readonly internalType: "struct UserOperation";
371
+ readonly name: "userOp";
372
+ readonly type: "tuple";
373
+ }];
374
+ readonly name: "getUserOpHashWithoutChainId";
375
+ readonly outputs: readonly [{
376
+ readonly internalType: "bytes32";
377
+ readonly name: "";
378
+ readonly type: "bytes32";
379
+ }];
380
+ readonly stateMutability: "view";
381
+ readonly type: "function";
382
+ }, {
383
+ readonly inputs: readonly [];
384
+ readonly name: "implementation";
385
+ readonly outputs: readonly [{
386
+ readonly internalType: "address";
387
+ readonly name: "$";
388
+ readonly type: "address";
389
+ }];
390
+ readonly stateMutability: "view";
391
+ readonly type: "function";
392
+ }, {
393
+ readonly inputs: readonly [{
394
+ readonly internalType: "bytes[]";
395
+ readonly name: "owners";
396
+ readonly type: "bytes[]";
397
+ }];
398
+ readonly name: "initialize";
399
+ readonly outputs: readonly [];
400
+ readonly stateMutability: "payable";
401
+ readonly type: "function";
402
+ }, {
403
+ readonly inputs: readonly [{
404
+ readonly internalType: "address";
405
+ readonly name: "account";
406
+ readonly type: "address";
407
+ }];
408
+ readonly name: "isOwnerAddress";
409
+ readonly outputs: readonly [{
410
+ readonly internalType: "bool";
411
+ readonly name: "";
412
+ readonly type: "bool";
413
+ }];
414
+ readonly stateMutability: "view";
415
+ readonly type: "function";
416
+ }, {
417
+ readonly inputs: readonly [{
418
+ readonly internalType: "bytes";
419
+ readonly name: "account";
420
+ readonly type: "bytes";
421
+ }];
422
+ readonly name: "isOwnerBytes";
423
+ readonly outputs: readonly [{
424
+ readonly internalType: "bool";
425
+ readonly name: "";
426
+ readonly type: "bool";
427
+ }];
428
+ readonly stateMutability: "view";
429
+ readonly type: "function";
430
+ }, {
431
+ readonly inputs: readonly [{
432
+ readonly internalType: "bytes32";
433
+ readonly name: "x";
434
+ readonly type: "bytes32";
435
+ }, {
436
+ readonly internalType: "bytes32";
437
+ readonly name: "y";
438
+ readonly type: "bytes32";
439
+ }];
440
+ readonly name: "isOwnerPublicKey";
441
+ readonly outputs: readonly [{
442
+ readonly internalType: "bool";
443
+ readonly name: "";
444
+ readonly type: "bool";
445
+ }];
446
+ readonly stateMutability: "view";
447
+ readonly type: "function";
448
+ }, {
449
+ readonly inputs: readonly [{
450
+ readonly internalType: "bytes32";
451
+ readonly name: "hash";
452
+ readonly type: "bytes32";
453
+ }, {
454
+ readonly internalType: "bytes";
455
+ readonly name: "signature";
456
+ readonly type: "bytes";
457
+ }];
458
+ readonly name: "isValidSignature";
459
+ readonly outputs: readonly [{
460
+ readonly internalType: "bytes4";
461
+ readonly name: "result";
462
+ readonly type: "bytes4";
463
+ }];
464
+ readonly stateMutability: "view";
465
+ readonly type: "function";
466
+ }, {
467
+ readonly inputs: readonly [];
468
+ readonly name: "nextOwnerIndex";
469
+ readonly outputs: readonly [{
470
+ readonly internalType: "uint256";
471
+ readonly name: "";
472
+ readonly type: "uint256";
473
+ }];
474
+ readonly stateMutability: "view";
475
+ readonly type: "function";
476
+ }, {
477
+ readonly inputs: readonly [{
478
+ readonly internalType: "uint256";
479
+ readonly name: "index";
480
+ readonly type: "uint256";
481
+ }];
482
+ readonly name: "ownerAtIndex";
483
+ readonly outputs: readonly [{
484
+ readonly internalType: "bytes";
485
+ readonly name: "";
486
+ readonly type: "bytes";
487
+ }];
488
+ readonly stateMutability: "view";
489
+ readonly type: "function";
490
+ }, {
491
+ readonly inputs: readonly [];
492
+ readonly name: "ownerCount";
493
+ readonly outputs: readonly [{
494
+ readonly internalType: "uint256";
495
+ readonly name: "";
496
+ readonly type: "uint256";
497
+ }];
498
+ readonly stateMutability: "view";
499
+ readonly type: "function";
500
+ }, {
501
+ readonly inputs: readonly [];
502
+ readonly name: "proxiableUUID";
503
+ readonly outputs: readonly [{
504
+ readonly internalType: "bytes32";
505
+ readonly name: "";
506
+ readonly type: "bytes32";
507
+ }];
508
+ readonly stateMutability: "view";
509
+ readonly type: "function";
510
+ }, {
511
+ readonly inputs: readonly [{
512
+ readonly internalType: "uint256";
513
+ readonly name: "index";
514
+ readonly type: "uint256";
515
+ }, {
516
+ readonly internalType: "bytes";
517
+ readonly name: "owner";
518
+ readonly type: "bytes";
519
+ }];
520
+ readonly name: "removeLastOwner";
521
+ readonly outputs: readonly [];
522
+ readonly stateMutability: "nonpayable";
523
+ readonly type: "function";
524
+ }, {
525
+ readonly inputs: readonly [{
526
+ readonly internalType: "uint256";
527
+ readonly name: "index";
528
+ readonly type: "uint256";
529
+ }, {
530
+ readonly internalType: "bytes";
531
+ readonly name: "owner";
532
+ readonly type: "bytes";
533
+ }];
534
+ readonly name: "removeOwnerAtIndex";
535
+ readonly outputs: readonly [];
536
+ readonly stateMutability: "nonpayable";
537
+ readonly type: "function";
538
+ }, {
539
+ readonly inputs: readonly [];
540
+ readonly name: "removedOwnersCount";
541
+ readonly outputs: readonly [{
542
+ readonly internalType: "uint256";
543
+ readonly name: "";
544
+ readonly type: "uint256";
545
+ }];
546
+ readonly stateMutability: "view";
547
+ readonly type: "function";
548
+ }, {
549
+ readonly inputs: readonly [{
550
+ readonly internalType: "bytes32";
551
+ readonly name: "hash";
552
+ readonly type: "bytes32";
553
+ }];
554
+ readonly name: "replaySafeHash";
555
+ readonly outputs: readonly [{
556
+ readonly internalType: "bytes32";
557
+ readonly name: "";
558
+ readonly type: "bytes32";
559
+ }];
560
+ readonly stateMutability: "view";
561
+ readonly type: "function";
562
+ }, {
563
+ readonly inputs: readonly [{
564
+ readonly internalType: "address";
565
+ readonly name: "newImplementation";
566
+ readonly type: "address";
567
+ }, {
568
+ readonly internalType: "bytes";
569
+ readonly name: "data";
570
+ readonly type: "bytes";
571
+ }];
572
+ readonly name: "upgradeToAndCall";
573
+ readonly outputs: readonly [];
574
+ readonly stateMutability: "payable";
575
+ readonly type: "function";
576
+ }, {
577
+ readonly inputs: readonly [{
578
+ readonly components: readonly [{
579
+ readonly internalType: "address";
580
+ readonly name: "sender";
581
+ readonly type: "address";
582
+ }, {
583
+ readonly internalType: "uint256";
584
+ readonly name: "nonce";
585
+ readonly type: "uint256";
586
+ }, {
587
+ readonly internalType: "bytes";
588
+ readonly name: "initCode";
589
+ readonly type: "bytes";
590
+ }, {
591
+ readonly internalType: "bytes";
592
+ readonly name: "callData";
593
+ readonly type: "bytes";
594
+ }, {
595
+ readonly internalType: "uint256";
596
+ readonly name: "callGasLimit";
597
+ readonly type: "uint256";
598
+ }, {
599
+ readonly internalType: "uint256";
600
+ readonly name: "verificationGasLimit";
601
+ readonly type: "uint256";
602
+ }, {
603
+ readonly internalType: "uint256";
604
+ readonly name: "preVerificationGas";
605
+ readonly type: "uint256";
606
+ }, {
607
+ readonly internalType: "uint256";
608
+ readonly name: "maxFeePerGas";
609
+ readonly type: "uint256";
610
+ }, {
611
+ readonly internalType: "uint256";
612
+ readonly name: "maxPriorityFeePerGas";
613
+ readonly type: "uint256";
614
+ }, {
615
+ readonly internalType: "bytes";
616
+ readonly name: "paymasterAndData";
617
+ readonly type: "bytes";
618
+ }, {
619
+ readonly internalType: "bytes";
620
+ readonly name: "signature";
621
+ readonly type: "bytes";
622
+ }];
623
+ readonly internalType: "struct UserOperation";
624
+ readonly name: "userOp";
625
+ readonly type: "tuple";
626
+ }, {
627
+ readonly internalType: "bytes32";
628
+ readonly name: "userOpHash";
629
+ readonly type: "bytes32";
630
+ }, {
631
+ readonly internalType: "uint256";
632
+ readonly name: "missingAccountFunds";
633
+ readonly type: "uint256";
634
+ }];
635
+ readonly name: "validateUserOp";
636
+ readonly outputs: readonly [{
637
+ readonly internalType: "uint256";
638
+ readonly name: "validationData";
639
+ readonly type: "uint256";
640
+ }];
641
+ readonly stateMutability: "nonpayable";
642
+ readonly type: "function";
643
+ }, {
644
+ readonly stateMutability: "payable";
645
+ readonly type: "receive";
646
+ }];
647
+ /**
648
+ * Type-safe ABI for CoinbaseSmartWallet_json
649
+ */
650
+ export type CoinbaseSmartWallet_jsonAbi = typeof CoinbaseSmartWallet_jsonAbi;
651
+ /**
652
+ * Contract instance type for CoinbaseSmartWallet_json
653
+ */
654
+ export type CoinbaseSmartWallet_jsonContract = any;
655
+ /**
656
+ * CoinbaseSmartWallet_json Contract Class
657
+ *
658
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
659
+ *
660
+ * @example
661
+ * ```typescript
662
+ * import { createPublicClient, createWalletClient, http } from 'viem';
663
+ * import { mainnet } from 'viem/chains';
664
+ * import { CoinbaseSmartWallet_json } from 'CoinbaseSmartWallet_json';
665
+ *
666
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
667
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
668
+ *
669
+ * const contract = new CoinbaseSmartWallet_json('0x...', { publicClient, walletClient });
670
+ *
671
+ * // Read functions
672
+ * const result = await contract.balanceOf('0x...');
673
+ *
674
+ * // Write functions
675
+ * const hash = await contract.transfer('0x...', 1000n);
676
+ *
677
+ * // Simulate transactions (dry-run)
678
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
679
+ * console.log('Gas estimate:', simulation.request.gas);
680
+ *
681
+ * // Watch events
682
+ * const unwatch = contract.watch.Transfer((event) => {
683
+ * console.log('Transfer event:', event);
684
+ * });
685
+ * ```
686
+ */
687
+ export declare class CoinbaseSmartWallet_json {
688
+ private contract;
689
+ private contractAddress;
690
+ private publicClient;
691
+ constructor(address: Address, clients: {
692
+ publicClient: PublicClient;
693
+ walletClient?: WalletClient;
694
+ });
695
+ /**
696
+ * Get the contract address
697
+ */
698
+ get address(): Address;
699
+ /**
700
+ * Get the underlying viem contract instance
701
+ */
702
+ getContract(): CoinbaseSmartWallet_jsonContract;
703
+ /**
704
+ * REPLAYABLE_NONCE_KEY
705
+ * view
706
+ */
707
+ REPLAYABLE_NONCE_KEY(): Promise<bigint>;
708
+ /**
709
+ * canSkipChainIdValidation
710
+ * pure
711
+ */
712
+ canSkipChainIdValidation(functionSelector: `0x${string}`): Promise<boolean>;
713
+ /**
714
+ * domainSeparator
715
+ * view
716
+ */
717
+ domainSeparator(): Promise<`0x${string}`>;
718
+ /**
719
+ * eip712Domain
720
+ * view
721
+ */
722
+ eip712Domain(): Promise<[`0x${string}`, string, string, bigint, `0x${string}`, `0x${string}`, bigint[]]>;
723
+ /**
724
+ * entryPoint
725
+ * view
726
+ */
727
+ entryPoint(): Promise<`0x${string}`>;
728
+ /**
729
+ * getUserOpHashWithoutChainId
730
+ * view
731
+ */
732
+ getUserOpHashWithoutChainId(userOp: UserOperation): Promise<`0x${string}`>;
733
+ /**
734
+ * implementation
735
+ * view
736
+ */
737
+ implementation(): Promise<`0x${string}`>;
738
+ /**
739
+ * isOwnerAddress
740
+ * view
741
+ */
742
+ isOwnerAddress(account: `0x${string}`): Promise<boolean>;
743
+ /**
744
+ * isOwnerBytes
745
+ * view
746
+ */
747
+ isOwnerBytes(account: `0x${string}`): Promise<boolean>;
748
+ /**
749
+ * isOwnerPublicKey
750
+ * view
751
+ */
752
+ isOwnerPublicKey(x: `0x${string}`, y: `0x${string}`): Promise<boolean>;
753
+ /**
754
+ * isValidSignature
755
+ * view
756
+ */
757
+ isValidSignature(hash: `0x${string}`, signature: `0x${string}`): Promise<`0x${string}`>;
758
+ /**
759
+ * nextOwnerIndex
760
+ * view
761
+ */
762
+ nextOwnerIndex(): Promise<bigint>;
763
+ /**
764
+ * ownerAtIndex
765
+ * view
766
+ */
767
+ ownerAtIndex(index: bigint): Promise<`0x${string}`>;
768
+ /**
769
+ * ownerCount
770
+ * view
771
+ */
772
+ ownerCount(): Promise<bigint>;
773
+ /**
774
+ * proxiableUUID
775
+ * view
776
+ */
777
+ proxiableUUID(): Promise<`0x${string}`>;
778
+ /**
779
+ * removedOwnersCount
780
+ * view
781
+ */
782
+ removedOwnersCount(): Promise<bigint>;
783
+ /**
784
+ * replaySafeHash
785
+ * view
786
+ */
787
+ replaySafeHash(hash: `0x${string}`): Promise<`0x${string}`>;
788
+ /**
789
+ * addOwnerAddress
790
+ * nonpayable
791
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
792
+ */
793
+ addOwnerAddress(owner: `0x${string}`, options?: {
794
+ accessList?: import('viem').AccessList;
795
+ authorizationList?: import('viem').AuthorizationList;
796
+ chain?: import('viem').Chain | null;
797
+ dataSuffix?: `0x${string}`;
798
+ gas?: bigint;
799
+ gasPrice?: bigint;
800
+ maxFeePerGas?: bigint;
801
+ maxPriorityFeePerGas?: bigint;
802
+ nonce?: number;
803
+ value?: bigint;
804
+ }): Promise<`0x${string}`>;
805
+ /**
806
+ * addOwnerPublicKey
807
+ * nonpayable
808
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
809
+ */
810
+ addOwnerPublicKey(x: `0x${string}`, y: `0x${string}`, options?: {
811
+ accessList?: import('viem').AccessList;
812
+ authorizationList?: import('viem').AuthorizationList;
813
+ chain?: import('viem').Chain | null;
814
+ dataSuffix?: `0x${string}`;
815
+ gas?: bigint;
816
+ gasPrice?: bigint;
817
+ maxFeePerGas?: bigint;
818
+ maxPriorityFeePerGas?: bigint;
819
+ nonce?: number;
820
+ value?: bigint;
821
+ }): Promise<`0x${string}`>;
822
+ /**
823
+ * execute
824
+ * payable
825
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
826
+ */
827
+ execute(target: `0x${string}`, value: bigint, data: `0x${string}`, options?: {
828
+ accessList?: import('viem').AccessList;
829
+ authorizationList?: import('viem').AuthorizationList;
830
+ chain?: import('viem').Chain | null;
831
+ dataSuffix?: `0x${string}`;
832
+ gas?: bigint;
833
+ gasPrice?: bigint;
834
+ maxFeePerGas?: bigint;
835
+ maxPriorityFeePerGas?: bigint;
836
+ nonce?: number;
837
+ value?: bigint;
838
+ }): Promise<`0x${string}`>;
839
+ /**
840
+ * executeBatch
841
+ * payable
842
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
843
+ */
844
+ executeBatch(calls: CoinbaseSmartWallet_Call[], options?: {
845
+ accessList?: import('viem').AccessList;
846
+ authorizationList?: import('viem').AuthorizationList;
847
+ chain?: import('viem').Chain | null;
848
+ dataSuffix?: `0x${string}`;
849
+ gas?: bigint;
850
+ gasPrice?: bigint;
851
+ maxFeePerGas?: bigint;
852
+ maxPriorityFeePerGas?: bigint;
853
+ nonce?: number;
854
+ value?: bigint;
855
+ }): Promise<`0x${string}`>;
856
+ /**
857
+ * executeWithoutChainIdValidation
858
+ * payable
859
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
860
+ */
861
+ executeWithoutChainIdValidation(calls: `0x${string}`[], options?: {
862
+ accessList?: import('viem').AccessList;
863
+ authorizationList?: import('viem').AuthorizationList;
864
+ chain?: import('viem').Chain | null;
865
+ dataSuffix?: `0x${string}`;
866
+ gas?: bigint;
867
+ gasPrice?: bigint;
868
+ maxFeePerGas?: bigint;
869
+ maxPriorityFeePerGas?: bigint;
870
+ nonce?: number;
871
+ value?: bigint;
872
+ }): Promise<`0x${string}`>;
873
+ /**
874
+ * initialize
875
+ * payable
876
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
877
+ */
878
+ initialize(owners: `0x${string}`[], options?: {
879
+ accessList?: import('viem').AccessList;
880
+ authorizationList?: import('viem').AuthorizationList;
881
+ chain?: import('viem').Chain | null;
882
+ dataSuffix?: `0x${string}`;
883
+ gas?: bigint;
884
+ gasPrice?: bigint;
885
+ maxFeePerGas?: bigint;
886
+ maxPriorityFeePerGas?: bigint;
887
+ nonce?: number;
888
+ value?: bigint;
889
+ }): Promise<`0x${string}`>;
890
+ /**
891
+ * removeLastOwner
892
+ * nonpayable
893
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
894
+ */
895
+ removeLastOwner(index: bigint, owner: `0x${string}`, options?: {
896
+ accessList?: import('viem').AccessList;
897
+ authorizationList?: import('viem').AuthorizationList;
898
+ chain?: import('viem').Chain | null;
899
+ dataSuffix?: `0x${string}`;
900
+ gas?: bigint;
901
+ gasPrice?: bigint;
902
+ maxFeePerGas?: bigint;
903
+ maxPriorityFeePerGas?: bigint;
904
+ nonce?: number;
905
+ value?: bigint;
906
+ }): Promise<`0x${string}`>;
907
+ /**
908
+ * removeOwnerAtIndex
909
+ * nonpayable
910
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
911
+ */
912
+ removeOwnerAtIndex(index: bigint, owner: `0x${string}`, options?: {
913
+ accessList?: import('viem').AccessList;
914
+ authorizationList?: import('viem').AuthorizationList;
915
+ chain?: import('viem').Chain | null;
916
+ dataSuffix?: `0x${string}`;
917
+ gas?: bigint;
918
+ gasPrice?: bigint;
919
+ maxFeePerGas?: bigint;
920
+ maxPriorityFeePerGas?: bigint;
921
+ nonce?: number;
922
+ value?: bigint;
923
+ }): Promise<`0x${string}`>;
924
+ /**
925
+ * upgradeToAndCall
926
+ * payable
927
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
928
+ */
929
+ upgradeToAndCall(newImplementation: `0x${string}`, data: `0x${string}`, options?: {
930
+ accessList?: import('viem').AccessList;
931
+ authorizationList?: import('viem').AuthorizationList;
932
+ chain?: import('viem').Chain | null;
933
+ dataSuffix?: `0x${string}`;
934
+ gas?: bigint;
935
+ gasPrice?: bigint;
936
+ maxFeePerGas?: bigint;
937
+ maxPriorityFeePerGas?: bigint;
938
+ nonce?: number;
939
+ value?: bigint;
940
+ }): Promise<`0x${string}`>;
941
+ /**
942
+ * validateUserOp
943
+ * nonpayable
944
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
945
+ */
946
+ validateUserOp(userOp: UserOperation, userOpHash: `0x${string}`, missingAccountFunds: bigint, options?: {
947
+ accessList?: import('viem').AccessList;
948
+ authorizationList?: import('viem').AuthorizationList;
949
+ chain?: import('viem').Chain | null;
950
+ dataSuffix?: `0x${string}`;
951
+ gas?: bigint;
952
+ gasPrice?: bigint;
953
+ maxFeePerGas?: bigint;
954
+ maxPriorityFeePerGas?: bigint;
955
+ nonce?: number;
956
+ value?: bigint;
957
+ }): Promise<`0x${string}`>;
958
+ /**
959
+ * Simulate contract write operations (dry-run without sending transaction)
960
+ *
961
+ * @example
962
+ * const result = await contract.simulate.transfer('0x...', 1000n);
963
+ * console.log('Gas estimate:', result.request.gas);
964
+ * console.log('Would succeed:', result.result);
965
+ */
966
+ get simulate(): {
967
+ /**
968
+ * Simulate addOwnerAddress
969
+ * Returns gas estimate and result without sending transaction
970
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
971
+ */
972
+ addOwnerAddress(owner: `0x${string}`, options?: {
973
+ accessList?: import("viem").AccessList;
974
+ authorizationList?: import("viem").AuthorizationList;
975
+ chain?: import("viem").Chain | null;
976
+ dataSuffix?: `0x${string}`;
977
+ gas?: bigint;
978
+ gasPrice?: bigint;
979
+ maxFeePerGas?: bigint;
980
+ maxPriorityFeePerGas?: bigint;
981
+ nonce?: number;
982
+ value?: bigint;
983
+ }): Promise<void>;
984
+ /**
985
+ * Simulate addOwnerPublicKey
986
+ * Returns gas estimate and result without sending transaction
987
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
988
+ */
989
+ addOwnerPublicKey(x: `0x${string}`, y: `0x${string}`, options?: {
990
+ accessList?: import("viem").AccessList;
991
+ authorizationList?: import("viem").AuthorizationList;
992
+ chain?: import("viem").Chain | null;
993
+ dataSuffix?: `0x${string}`;
994
+ gas?: bigint;
995
+ gasPrice?: bigint;
996
+ maxFeePerGas?: bigint;
997
+ maxPriorityFeePerGas?: bigint;
998
+ nonce?: number;
999
+ value?: bigint;
1000
+ }): Promise<void>;
1001
+ /**
1002
+ * Simulate execute
1003
+ * Returns gas estimate and result without sending transaction
1004
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1005
+ */
1006
+ execute(target: `0x${string}`, value: bigint, data: `0x${string}`, options?: {
1007
+ accessList?: import("viem").AccessList;
1008
+ authorizationList?: import("viem").AuthorizationList;
1009
+ chain?: import("viem").Chain | null;
1010
+ dataSuffix?: `0x${string}`;
1011
+ gas?: bigint;
1012
+ gasPrice?: bigint;
1013
+ maxFeePerGas?: bigint;
1014
+ maxPriorityFeePerGas?: bigint;
1015
+ nonce?: number;
1016
+ value?: bigint;
1017
+ }): Promise<void>;
1018
+ /**
1019
+ * Simulate executeBatch
1020
+ * Returns gas estimate and result without sending transaction
1021
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1022
+ */
1023
+ executeBatch(calls: CoinbaseSmartWallet_Call[], options?: {
1024
+ accessList?: import("viem").AccessList;
1025
+ authorizationList?: import("viem").AuthorizationList;
1026
+ chain?: import("viem").Chain | null;
1027
+ dataSuffix?: `0x${string}`;
1028
+ gas?: bigint;
1029
+ gasPrice?: bigint;
1030
+ maxFeePerGas?: bigint;
1031
+ maxPriorityFeePerGas?: bigint;
1032
+ nonce?: number;
1033
+ value?: bigint;
1034
+ }): Promise<void>;
1035
+ /**
1036
+ * Simulate executeWithoutChainIdValidation
1037
+ * Returns gas estimate and result without sending transaction
1038
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1039
+ */
1040
+ executeWithoutChainIdValidation(calls: `0x${string}`[], options?: {
1041
+ accessList?: import("viem").AccessList;
1042
+ authorizationList?: import("viem").AuthorizationList;
1043
+ chain?: import("viem").Chain | null;
1044
+ dataSuffix?: `0x${string}`;
1045
+ gas?: bigint;
1046
+ gasPrice?: bigint;
1047
+ maxFeePerGas?: bigint;
1048
+ maxPriorityFeePerGas?: bigint;
1049
+ nonce?: number;
1050
+ value?: bigint;
1051
+ }): Promise<void>;
1052
+ /**
1053
+ * Simulate initialize
1054
+ * Returns gas estimate and result without sending transaction
1055
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1056
+ */
1057
+ initialize(owners: `0x${string}`[], options?: {
1058
+ accessList?: import("viem").AccessList;
1059
+ authorizationList?: import("viem").AuthorizationList;
1060
+ chain?: import("viem").Chain | null;
1061
+ dataSuffix?: `0x${string}`;
1062
+ gas?: bigint;
1063
+ gasPrice?: bigint;
1064
+ maxFeePerGas?: bigint;
1065
+ maxPriorityFeePerGas?: bigint;
1066
+ nonce?: number;
1067
+ value?: bigint;
1068
+ }): Promise<void>;
1069
+ /**
1070
+ * Simulate removeLastOwner
1071
+ * Returns gas estimate and result without sending transaction
1072
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1073
+ */
1074
+ removeLastOwner(index: bigint, owner: `0x${string}`, options?: {
1075
+ accessList?: import("viem").AccessList;
1076
+ authorizationList?: import("viem").AuthorizationList;
1077
+ chain?: import("viem").Chain | null;
1078
+ dataSuffix?: `0x${string}`;
1079
+ gas?: bigint;
1080
+ gasPrice?: bigint;
1081
+ maxFeePerGas?: bigint;
1082
+ maxPriorityFeePerGas?: bigint;
1083
+ nonce?: number;
1084
+ value?: bigint;
1085
+ }): Promise<void>;
1086
+ /**
1087
+ * Simulate removeOwnerAtIndex
1088
+ * Returns gas estimate and result without sending transaction
1089
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1090
+ */
1091
+ removeOwnerAtIndex(index: bigint, owner: `0x${string}`, options?: {
1092
+ accessList?: import("viem").AccessList;
1093
+ authorizationList?: import("viem").AuthorizationList;
1094
+ chain?: import("viem").Chain | null;
1095
+ dataSuffix?: `0x${string}`;
1096
+ gas?: bigint;
1097
+ gasPrice?: bigint;
1098
+ maxFeePerGas?: bigint;
1099
+ maxPriorityFeePerGas?: bigint;
1100
+ nonce?: number;
1101
+ value?: bigint;
1102
+ }): Promise<void>;
1103
+ /**
1104
+ * Simulate upgradeToAndCall
1105
+ * Returns gas estimate and result without sending transaction
1106
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1107
+ */
1108
+ upgradeToAndCall(newImplementation: `0x${string}`, data: `0x${string}`, options?: {
1109
+ accessList?: import("viem").AccessList;
1110
+ authorizationList?: import("viem").AuthorizationList;
1111
+ chain?: import("viem").Chain | null;
1112
+ dataSuffix?: `0x${string}`;
1113
+ gas?: bigint;
1114
+ gasPrice?: bigint;
1115
+ maxFeePerGas?: bigint;
1116
+ maxPriorityFeePerGas?: bigint;
1117
+ nonce?: number;
1118
+ value?: bigint;
1119
+ }): Promise<void>;
1120
+ /**
1121
+ * Simulate validateUserOp
1122
+ * Returns gas estimate and result without sending transaction
1123
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1124
+ */
1125
+ validateUserOp(userOp: UserOperation, userOpHash: `0x${string}`, missingAccountFunds: bigint, options?: {
1126
+ accessList?: import("viem").AccessList;
1127
+ authorizationList?: import("viem").AuthorizationList;
1128
+ chain?: import("viem").Chain | null;
1129
+ dataSuffix?: `0x${string}`;
1130
+ gas?: bigint;
1131
+ gasPrice?: bigint;
1132
+ maxFeePerGas?: bigint;
1133
+ maxPriorityFeePerGas?: bigint;
1134
+ nonce?: number;
1135
+ value?: bigint;
1136
+ }): Promise<bigint>;
1137
+ };
1138
+ /**
1139
+ * Watch contract events
1140
+ *
1141
+ * @example
1142
+ * // Watch all Transfer events
1143
+ * const unwatch = contract.watch.Transfer((event) => {
1144
+ * console.log('Transfer:', event);
1145
+ * });
1146
+ *
1147
+ * // Stop watching
1148
+ * unwatch();
1149
+ */
1150
+ get watch(): {
1151
+ /**
1152
+ * Watch AddOwner events
1153
+ * @param callback Function to call when event is emitted
1154
+ * @param filter Optional filter for indexed parameters
1155
+ * @returns Unwatch function to stop listening
1156
+ */
1157
+ AddOwner: (callback: (event: {
1158
+ index: bigint;
1159
+ owner: `0x${string}`;
1160
+ }) => void, filter?: {
1161
+ index: bigint;
1162
+ }) => () => void;
1163
+ /**
1164
+ * Watch RemoveOwner events
1165
+ * @param callback Function to call when event is emitted
1166
+ * @param filter Optional filter for indexed parameters
1167
+ * @returns Unwatch function to stop listening
1168
+ */
1169
+ RemoveOwner: (callback: (event: {
1170
+ index: bigint;
1171
+ owner: `0x${string}`;
1172
+ }) => void, filter?: {
1173
+ index: bigint;
1174
+ }) => () => void;
1175
+ /**
1176
+ * Watch Upgraded events
1177
+ * @param callback Function to call when event is emitted
1178
+ * @param filter Optional filter for indexed parameters
1179
+ * @returns Unwatch function to stop listening
1180
+ */
1181
+ Upgraded: (callback: (event: {
1182
+ implementation: `0x${string}`;
1183
+ }) => void, filter?: {
1184
+ implementation: `0x${string}`;
1185
+ }) => () => void;
1186
+ };
1187
+ }