@gitmyabi/usd 1.0.3 → 1.0.4

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,712 @@
1
+ import type { Address, PublicClient, WalletClient } from 'viem';
2
+ /**
3
+ * StandardToken_json ABI
4
+ *
5
+ * This ABI is typed using viem's type system for full type safety.
6
+ */
7
+ export declare const StandardToken_jsonAbi: readonly [{
8
+ readonly inputs: readonly [];
9
+ readonly stateMutability: "nonpayable";
10
+ readonly type: "constructor";
11
+ }, {
12
+ readonly anonymous: false;
13
+ readonly inputs: readonly [{
14
+ readonly indexed: true;
15
+ readonly internalType: "address";
16
+ readonly name: "owner";
17
+ readonly type: "address";
18
+ }, {
19
+ readonly indexed: true;
20
+ readonly internalType: "address";
21
+ readonly name: "spender";
22
+ readonly type: "address";
23
+ }, {
24
+ readonly indexed: false;
25
+ readonly internalType: "uint256";
26
+ readonly name: "value";
27
+ readonly type: "uint256";
28
+ }];
29
+ readonly name: "Approval";
30
+ readonly type: "event";
31
+ }, {
32
+ readonly anonymous: false;
33
+ readonly inputs: readonly [{
34
+ readonly indexed: false;
35
+ readonly internalType: "uint8";
36
+ readonly name: "version";
37
+ readonly type: "uint8";
38
+ }];
39
+ readonly name: "Initialized";
40
+ readonly type: "event";
41
+ }, {
42
+ readonly anonymous: false;
43
+ readonly inputs: readonly [{
44
+ readonly indexed: true;
45
+ readonly internalType: "address";
46
+ readonly name: "from";
47
+ readonly type: "address";
48
+ }, {
49
+ readonly indexed: true;
50
+ readonly internalType: "address";
51
+ readonly name: "to";
52
+ readonly type: "address";
53
+ }, {
54
+ readonly indexed: false;
55
+ readonly internalType: "uint256";
56
+ readonly name: "value";
57
+ readonly type: "uint256";
58
+ }];
59
+ readonly name: "Transfer";
60
+ readonly type: "event";
61
+ }, {
62
+ readonly inputs: readonly [{
63
+ readonly internalType: "address";
64
+ readonly name: "owner";
65
+ readonly type: "address";
66
+ }, {
67
+ readonly internalType: "address";
68
+ readonly name: "spender";
69
+ readonly type: "address";
70
+ }];
71
+ readonly name: "allowance";
72
+ readonly outputs: readonly [{
73
+ readonly internalType: "uint256";
74
+ readonly name: "";
75
+ readonly type: "uint256";
76
+ }];
77
+ readonly stateMutability: "view";
78
+ readonly type: "function";
79
+ }, {
80
+ readonly inputs: readonly [{
81
+ readonly internalType: "address";
82
+ readonly name: "spender";
83
+ readonly type: "address";
84
+ }, {
85
+ readonly internalType: "uint256";
86
+ readonly name: "amount";
87
+ readonly type: "uint256";
88
+ }];
89
+ readonly name: "approve";
90
+ readonly outputs: readonly [{
91
+ readonly internalType: "bool";
92
+ readonly name: "";
93
+ readonly type: "bool";
94
+ }];
95
+ readonly stateMutability: "nonpayable";
96
+ readonly type: "function";
97
+ }, {
98
+ readonly inputs: readonly [{
99
+ readonly internalType: "address";
100
+ readonly name: "account";
101
+ readonly type: "address";
102
+ }];
103
+ readonly name: "balanceOf";
104
+ readonly outputs: readonly [{
105
+ readonly internalType: "uint256";
106
+ readonly name: "";
107
+ readonly type: "uint256";
108
+ }];
109
+ readonly stateMutability: "view";
110
+ readonly type: "function";
111
+ }, {
112
+ readonly inputs: readonly [{
113
+ readonly internalType: "uint256";
114
+ readonly name: "amount";
115
+ readonly type: "uint256";
116
+ }];
117
+ readonly name: "burn";
118
+ readonly outputs: readonly [];
119
+ readonly stateMutability: "nonpayable";
120
+ readonly type: "function";
121
+ }, {
122
+ readonly inputs: readonly [{
123
+ readonly internalType: "address";
124
+ readonly name: "account";
125
+ readonly type: "address";
126
+ }, {
127
+ readonly internalType: "uint256";
128
+ readonly name: "amount";
129
+ readonly type: "uint256";
130
+ }];
131
+ readonly name: "burnFrom";
132
+ readonly outputs: readonly [];
133
+ readonly stateMutability: "nonpayable";
134
+ readonly type: "function";
135
+ }, {
136
+ readonly inputs: readonly [];
137
+ readonly name: "decimals";
138
+ readonly outputs: readonly [{
139
+ readonly internalType: "uint8";
140
+ readonly name: "";
141
+ readonly type: "uint8";
142
+ }];
143
+ readonly stateMutability: "view";
144
+ readonly type: "function";
145
+ }, {
146
+ readonly inputs: readonly [{
147
+ readonly internalType: "address";
148
+ readonly name: "spender";
149
+ readonly type: "address";
150
+ }, {
151
+ readonly internalType: "uint256";
152
+ readonly name: "subtractedValue";
153
+ readonly type: "uint256";
154
+ }];
155
+ readonly name: "decreaseAllowance";
156
+ readonly outputs: readonly [{
157
+ readonly internalType: "bool";
158
+ readonly name: "";
159
+ readonly type: "bool";
160
+ }];
161
+ readonly stateMutability: "nonpayable";
162
+ readonly type: "function";
163
+ }, {
164
+ readonly inputs: readonly [{
165
+ readonly internalType: "address";
166
+ readonly name: "spender";
167
+ readonly type: "address";
168
+ }, {
169
+ readonly internalType: "uint256";
170
+ readonly name: "addedValue";
171
+ readonly type: "uint256";
172
+ }];
173
+ readonly name: "increaseAllowance";
174
+ readonly outputs: readonly [{
175
+ readonly internalType: "bool";
176
+ readonly name: "";
177
+ readonly type: "bool";
178
+ }];
179
+ readonly stateMutability: "nonpayable";
180
+ readonly type: "function";
181
+ }, {
182
+ readonly inputs: readonly [{
183
+ readonly internalType: "address";
184
+ readonly name: "_owner";
185
+ readonly type: "address";
186
+ }, {
187
+ readonly internalType: "string";
188
+ readonly name: "_name";
189
+ readonly type: "string";
190
+ }, {
191
+ readonly internalType: "string";
192
+ readonly name: "_symbol";
193
+ readonly type: "string";
194
+ }, {
195
+ readonly internalType: "uint8";
196
+ readonly name: "_decimals";
197
+ readonly type: "uint8";
198
+ }, {
199
+ readonly internalType: "uint256";
200
+ readonly name: "_initialSupply";
201
+ readonly type: "uint256";
202
+ }];
203
+ readonly name: "initialize";
204
+ readonly outputs: readonly [];
205
+ readonly stateMutability: "nonpayable";
206
+ readonly type: "function";
207
+ }, {
208
+ readonly inputs: readonly [];
209
+ readonly name: "maxSupply";
210
+ readonly outputs: readonly [{
211
+ readonly internalType: "uint256";
212
+ readonly name: "";
213
+ readonly type: "uint256";
214
+ }];
215
+ readonly stateMutability: "view";
216
+ readonly type: "function";
217
+ }, {
218
+ readonly inputs: readonly [];
219
+ readonly name: "name";
220
+ readonly outputs: readonly [{
221
+ readonly internalType: "string";
222
+ readonly name: "";
223
+ readonly type: "string";
224
+ }];
225
+ readonly stateMutability: "view";
226
+ readonly type: "function";
227
+ }, {
228
+ readonly inputs: readonly [];
229
+ readonly name: "symbol";
230
+ readonly outputs: readonly [{
231
+ readonly internalType: "string";
232
+ readonly name: "";
233
+ readonly type: "string";
234
+ }];
235
+ readonly stateMutability: "view";
236
+ readonly type: "function";
237
+ }, {
238
+ readonly inputs: readonly [];
239
+ readonly name: "totalSupply";
240
+ readonly outputs: readonly [{
241
+ readonly internalType: "uint256";
242
+ readonly name: "";
243
+ readonly type: "uint256";
244
+ }];
245
+ readonly stateMutability: "view";
246
+ readonly type: "function";
247
+ }, {
248
+ readonly inputs: readonly [{
249
+ readonly internalType: "address";
250
+ readonly name: "to";
251
+ readonly type: "address";
252
+ }, {
253
+ readonly internalType: "uint256";
254
+ readonly name: "amount";
255
+ readonly type: "uint256";
256
+ }];
257
+ readonly name: "transfer";
258
+ readonly outputs: readonly [{
259
+ readonly internalType: "bool";
260
+ readonly name: "";
261
+ readonly type: "bool";
262
+ }];
263
+ readonly stateMutability: "nonpayable";
264
+ readonly type: "function";
265
+ }, {
266
+ readonly inputs: readonly [{
267
+ readonly internalType: "address";
268
+ readonly name: "from";
269
+ readonly type: "address";
270
+ }, {
271
+ readonly internalType: "address";
272
+ readonly name: "to";
273
+ readonly type: "address";
274
+ }, {
275
+ readonly internalType: "uint256";
276
+ readonly name: "amount";
277
+ readonly type: "uint256";
278
+ }];
279
+ readonly name: "transferFrom";
280
+ readonly outputs: readonly [{
281
+ readonly internalType: "bool";
282
+ readonly name: "";
283
+ readonly type: "bool";
284
+ }];
285
+ readonly stateMutability: "nonpayable";
286
+ readonly type: "function";
287
+ }];
288
+ /**
289
+ * Type-safe ABI for StandardToken_json
290
+ */
291
+ export type StandardToken_jsonAbi = typeof StandardToken_jsonAbi;
292
+ /**
293
+ * Contract instance type for StandardToken_json
294
+ */
295
+ export type StandardToken_jsonContract = any;
296
+ /**
297
+ * StandardToken_json Contract Class
298
+ *
299
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
300
+ *
301
+ * @example
302
+ * ```typescript
303
+ * import { createPublicClient, createWalletClient, http } from 'viem';
304
+ * import { mainnet } from 'viem/chains';
305
+ * import { StandardToken_json } from 'StandardToken_json';
306
+ *
307
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
308
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
309
+ *
310
+ * const contract = new StandardToken_json('0x...', { publicClient, walletClient });
311
+ *
312
+ * // Read functions
313
+ * const result = await contract.balanceOf('0x...');
314
+ *
315
+ * // Write functions
316
+ * const hash = await contract.transfer('0x...', 1000n);
317
+ *
318
+ * // Simulate transactions (dry-run)
319
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
320
+ * console.log('Gas estimate:', simulation.request.gas);
321
+ *
322
+ * // Watch events
323
+ * const unwatch = contract.watch.Transfer((event) => {
324
+ * console.log('Transfer event:', event);
325
+ * });
326
+ * ```
327
+ */
328
+ export declare class StandardToken_json {
329
+ private contract;
330
+ private contractAddress;
331
+ private publicClient;
332
+ constructor(address: Address, clients: {
333
+ publicClient: PublicClient;
334
+ walletClient?: WalletClient;
335
+ });
336
+ /**
337
+ * Get the contract address
338
+ */
339
+ get address(): Address;
340
+ /**
341
+ * Get the underlying viem contract instance
342
+ */
343
+ getContract(): StandardToken_jsonContract;
344
+ /**
345
+ * allowance
346
+ * view
347
+ */
348
+ allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint>;
349
+ /**
350
+ * balanceOf
351
+ * view
352
+ */
353
+ balanceOf(account: `0x${string}`): Promise<bigint>;
354
+ /**
355
+ * decimals
356
+ * view
357
+ */
358
+ decimals(): Promise<bigint>;
359
+ /**
360
+ * maxSupply
361
+ * view
362
+ */
363
+ maxSupply(): Promise<bigint>;
364
+ /**
365
+ * name
366
+ * view
367
+ */
368
+ name(): Promise<string>;
369
+ /**
370
+ * symbol
371
+ * view
372
+ */
373
+ symbol(): Promise<string>;
374
+ /**
375
+ * totalSupply
376
+ * view
377
+ */
378
+ totalSupply(): Promise<bigint>;
379
+ /**
380
+ * approve
381
+ * nonpayable
382
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
383
+ */
384
+ approve(spender: `0x${string}`, amount: bigint, options?: {
385
+ accessList?: import('viem').AccessList;
386
+ authorizationList?: import('viem').AuthorizationList;
387
+ chain?: import('viem').Chain | null;
388
+ dataSuffix?: `0x${string}`;
389
+ gas?: bigint;
390
+ gasPrice?: bigint;
391
+ maxFeePerGas?: bigint;
392
+ maxPriorityFeePerGas?: bigint;
393
+ nonce?: number;
394
+ value?: bigint;
395
+ }): Promise<`0x${string}`>;
396
+ /**
397
+ * burn
398
+ * nonpayable
399
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
400
+ */
401
+ burn(amount: bigint, options?: {
402
+ accessList?: import('viem').AccessList;
403
+ authorizationList?: import('viem').AuthorizationList;
404
+ chain?: import('viem').Chain | null;
405
+ dataSuffix?: `0x${string}`;
406
+ gas?: bigint;
407
+ gasPrice?: bigint;
408
+ maxFeePerGas?: bigint;
409
+ maxPriorityFeePerGas?: bigint;
410
+ nonce?: number;
411
+ value?: bigint;
412
+ }): Promise<`0x${string}`>;
413
+ /**
414
+ * burnFrom
415
+ * nonpayable
416
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
417
+ */
418
+ burnFrom(account: `0x${string}`, amount: bigint, options?: {
419
+ accessList?: import('viem').AccessList;
420
+ authorizationList?: import('viem').AuthorizationList;
421
+ chain?: import('viem').Chain | null;
422
+ dataSuffix?: `0x${string}`;
423
+ gas?: bigint;
424
+ gasPrice?: bigint;
425
+ maxFeePerGas?: bigint;
426
+ maxPriorityFeePerGas?: bigint;
427
+ nonce?: number;
428
+ value?: bigint;
429
+ }): Promise<`0x${string}`>;
430
+ /**
431
+ * decreaseAllowance
432
+ * nonpayable
433
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
434
+ */
435
+ decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
436
+ accessList?: import('viem').AccessList;
437
+ authorizationList?: import('viem').AuthorizationList;
438
+ chain?: import('viem').Chain | null;
439
+ dataSuffix?: `0x${string}`;
440
+ gas?: bigint;
441
+ gasPrice?: bigint;
442
+ maxFeePerGas?: bigint;
443
+ maxPriorityFeePerGas?: bigint;
444
+ nonce?: number;
445
+ value?: bigint;
446
+ }): Promise<`0x${string}`>;
447
+ /**
448
+ * increaseAllowance
449
+ * nonpayable
450
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
451
+ */
452
+ increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
453
+ accessList?: import('viem').AccessList;
454
+ authorizationList?: import('viem').AuthorizationList;
455
+ chain?: import('viem').Chain | null;
456
+ dataSuffix?: `0x${string}`;
457
+ gas?: bigint;
458
+ gasPrice?: bigint;
459
+ maxFeePerGas?: bigint;
460
+ maxPriorityFeePerGas?: bigint;
461
+ nonce?: number;
462
+ value?: bigint;
463
+ }): Promise<`0x${string}`>;
464
+ /**
465
+ * initialize
466
+ * nonpayable
467
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
468
+ */
469
+ initialize(_owner: `0x${string}`, _name: string, _symbol: string, _decimals: bigint, _initialSupply: bigint, options?: {
470
+ accessList?: import('viem').AccessList;
471
+ authorizationList?: import('viem').AuthorizationList;
472
+ chain?: import('viem').Chain | null;
473
+ dataSuffix?: `0x${string}`;
474
+ gas?: bigint;
475
+ gasPrice?: bigint;
476
+ maxFeePerGas?: bigint;
477
+ maxPriorityFeePerGas?: bigint;
478
+ nonce?: number;
479
+ value?: bigint;
480
+ }): Promise<`0x${string}`>;
481
+ /**
482
+ * transfer
483
+ * nonpayable
484
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
485
+ */
486
+ transfer(to: `0x${string}`, amount: bigint, options?: {
487
+ accessList?: import('viem').AccessList;
488
+ authorizationList?: import('viem').AuthorizationList;
489
+ chain?: import('viem').Chain | null;
490
+ dataSuffix?: `0x${string}`;
491
+ gas?: bigint;
492
+ gasPrice?: bigint;
493
+ maxFeePerGas?: bigint;
494
+ maxPriorityFeePerGas?: bigint;
495
+ nonce?: number;
496
+ value?: bigint;
497
+ }): Promise<`0x${string}`>;
498
+ /**
499
+ * transferFrom
500
+ * nonpayable
501
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
502
+ */
503
+ transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
504
+ accessList?: import('viem').AccessList;
505
+ authorizationList?: import('viem').AuthorizationList;
506
+ chain?: import('viem').Chain | null;
507
+ dataSuffix?: `0x${string}`;
508
+ gas?: bigint;
509
+ gasPrice?: bigint;
510
+ maxFeePerGas?: bigint;
511
+ maxPriorityFeePerGas?: bigint;
512
+ nonce?: number;
513
+ value?: bigint;
514
+ }): Promise<`0x${string}`>;
515
+ /**
516
+ * Simulate contract write operations (dry-run without sending transaction)
517
+ *
518
+ * @example
519
+ * const result = await contract.simulate.transfer('0x...', 1000n);
520
+ * console.log('Gas estimate:', result.request.gas);
521
+ * console.log('Would succeed:', result.result);
522
+ */
523
+ get simulate(): {
524
+ /**
525
+ * Simulate approve
526
+ * Returns gas estimate and result without sending transaction
527
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
528
+ */
529
+ approve(spender: `0x${string}`, amount: bigint, options?: {
530
+ accessList?: import("viem").AccessList;
531
+ authorizationList?: import("viem").AuthorizationList;
532
+ chain?: import("viem").Chain | null;
533
+ dataSuffix?: `0x${string}`;
534
+ gas?: bigint;
535
+ gasPrice?: bigint;
536
+ maxFeePerGas?: bigint;
537
+ maxPriorityFeePerGas?: bigint;
538
+ nonce?: number;
539
+ value?: bigint;
540
+ }): Promise<boolean>;
541
+ /**
542
+ * Simulate burn
543
+ * Returns gas estimate and result without sending transaction
544
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
545
+ */
546
+ burn(amount: bigint, options?: {
547
+ accessList?: import("viem").AccessList;
548
+ authorizationList?: import("viem").AuthorizationList;
549
+ chain?: import("viem").Chain | null;
550
+ dataSuffix?: `0x${string}`;
551
+ gas?: bigint;
552
+ gasPrice?: bigint;
553
+ maxFeePerGas?: bigint;
554
+ maxPriorityFeePerGas?: bigint;
555
+ nonce?: number;
556
+ value?: bigint;
557
+ }): Promise<void>;
558
+ /**
559
+ * Simulate burnFrom
560
+ * Returns gas estimate and result without sending transaction
561
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
562
+ */
563
+ burnFrom(account: `0x${string}`, amount: bigint, options?: {
564
+ accessList?: import("viem").AccessList;
565
+ authorizationList?: import("viem").AuthorizationList;
566
+ chain?: import("viem").Chain | null;
567
+ dataSuffix?: `0x${string}`;
568
+ gas?: bigint;
569
+ gasPrice?: bigint;
570
+ maxFeePerGas?: bigint;
571
+ maxPriorityFeePerGas?: bigint;
572
+ nonce?: number;
573
+ value?: bigint;
574
+ }): Promise<void>;
575
+ /**
576
+ * Simulate decreaseAllowance
577
+ * Returns gas estimate and result without sending transaction
578
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
579
+ */
580
+ decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
581
+ accessList?: import("viem").AccessList;
582
+ authorizationList?: import("viem").AuthorizationList;
583
+ chain?: import("viem").Chain | null;
584
+ dataSuffix?: `0x${string}`;
585
+ gas?: bigint;
586
+ gasPrice?: bigint;
587
+ maxFeePerGas?: bigint;
588
+ maxPriorityFeePerGas?: bigint;
589
+ nonce?: number;
590
+ value?: bigint;
591
+ }): Promise<boolean>;
592
+ /**
593
+ * Simulate increaseAllowance
594
+ * Returns gas estimate and result without sending transaction
595
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
596
+ */
597
+ increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
598
+ accessList?: import("viem").AccessList;
599
+ authorizationList?: import("viem").AuthorizationList;
600
+ chain?: import("viem").Chain | null;
601
+ dataSuffix?: `0x${string}`;
602
+ gas?: bigint;
603
+ gasPrice?: bigint;
604
+ maxFeePerGas?: bigint;
605
+ maxPriorityFeePerGas?: bigint;
606
+ nonce?: number;
607
+ value?: bigint;
608
+ }): Promise<boolean>;
609
+ /**
610
+ * Simulate initialize
611
+ * Returns gas estimate and result without sending transaction
612
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
613
+ */
614
+ initialize(_owner: `0x${string}`, _name: string, _symbol: string, _decimals: bigint, _initialSupply: bigint, options?: {
615
+ accessList?: import("viem").AccessList;
616
+ authorizationList?: import("viem").AuthorizationList;
617
+ chain?: import("viem").Chain | null;
618
+ dataSuffix?: `0x${string}`;
619
+ gas?: bigint;
620
+ gasPrice?: bigint;
621
+ maxFeePerGas?: bigint;
622
+ maxPriorityFeePerGas?: bigint;
623
+ nonce?: number;
624
+ value?: bigint;
625
+ }): Promise<void>;
626
+ /**
627
+ * Simulate transfer
628
+ * Returns gas estimate and result without sending transaction
629
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
630
+ */
631
+ transfer(to: `0x${string}`, amount: bigint, options?: {
632
+ accessList?: import("viem").AccessList;
633
+ authorizationList?: import("viem").AuthorizationList;
634
+ chain?: import("viem").Chain | null;
635
+ dataSuffix?: `0x${string}`;
636
+ gas?: bigint;
637
+ gasPrice?: bigint;
638
+ maxFeePerGas?: bigint;
639
+ maxPriorityFeePerGas?: bigint;
640
+ nonce?: number;
641
+ value?: bigint;
642
+ }): Promise<boolean>;
643
+ /**
644
+ * Simulate transferFrom
645
+ * Returns gas estimate and result without sending transaction
646
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
647
+ */
648
+ transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
649
+ accessList?: import("viem").AccessList;
650
+ authorizationList?: import("viem").AuthorizationList;
651
+ chain?: import("viem").Chain | null;
652
+ dataSuffix?: `0x${string}`;
653
+ gas?: bigint;
654
+ gasPrice?: bigint;
655
+ maxFeePerGas?: bigint;
656
+ maxPriorityFeePerGas?: bigint;
657
+ nonce?: number;
658
+ value?: bigint;
659
+ }): Promise<boolean>;
660
+ };
661
+ /**
662
+ * Watch contract events
663
+ *
664
+ * @example
665
+ * // Watch all Transfer events
666
+ * const unwatch = contract.watch.Transfer((event) => {
667
+ * console.log('Transfer:', event);
668
+ * });
669
+ *
670
+ * // Stop watching
671
+ * unwatch();
672
+ */
673
+ get watch(): {
674
+ /**
675
+ * Watch Approval events
676
+ * @param callback Function to call when event is emitted
677
+ * @param filter Optional filter for indexed parameters
678
+ * @returns Unwatch function to stop listening
679
+ */
680
+ Approval: (callback: (event: {
681
+ owner: `0x${string}`;
682
+ spender: `0x${string}`;
683
+ value: bigint;
684
+ }) => void, filter?: {
685
+ owner: `0x${string}`;
686
+ spender: `0x${string}`;
687
+ }) => () => void;
688
+ /**
689
+ * Watch Initialized events
690
+ * @param callback Function to call when event is emitted
691
+ * @param filter Optional filter for indexed parameters
692
+ * @returns Unwatch function to stop listening
693
+ */
694
+ Initialized: (callback: (event: {
695
+ version: bigint;
696
+ }) => void) => () => void;
697
+ /**
698
+ * Watch Transfer events
699
+ * @param callback Function to call when event is emitted
700
+ * @param filter Optional filter for indexed parameters
701
+ * @returns Unwatch function to stop listening
702
+ */
703
+ Transfer: (callback: (event: {
704
+ from: `0x${string}`;
705
+ to: `0x${string}`;
706
+ value: bigint;
707
+ }) => void, filter?: {
708
+ from: `0x${string}`;
709
+ to: `0x${string}`;
710
+ }) => () => void;
711
+ };
712
+ }