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