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