@gitmyabi/fet 1.0.0 → 1.0.1

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.
@@ -2,649 +2,855 @@ import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType }
2
2
  import { getContract } from 'viem';
3
3
 
4
4
  /**
5
- * FetchToken_json ABI
5
+ * AMLToken_json ABI
6
6
  *
7
7
  * This ABI is typed using viem's type system for full type safety.
8
8
  */
9
- export const FetchToken_jsonAbi = [
9
+ export const AMLToken_jsonAbi = [
10
10
  {
11
+ "constant": false,
11
12
  "inputs": [
12
13
  {
13
- "internalType": "string",
14
- "name": "name",
15
- "type": "string"
16
- },
17
- {
18
- "internalType": "string",
19
- "name": "symbol",
20
- "type": "string"
14
+ "name": "addr",
15
+ "type": "address"
21
16
  },
22
17
  {
23
- "internalType": "uint256",
24
- "name": "_initialSupply",
25
- "type": "uint256"
18
+ "name": "state",
19
+ "type": "bool"
26
20
  }
27
21
  ],
22
+ "name": "setTransferAgent",
23
+ "outputs": [],
24
+ "payable": false,
28
25
  "stateMutability": "nonpayable",
29
- "type": "constructor"
26
+ "type": "function"
30
27
  },
31
28
  {
32
- "anonymous": false,
33
- "inputs": [
34
- {
35
- "indexed": true,
36
- "internalType": "address",
37
- "name": "owner",
38
- "type": "address"
39
- },
40
- {
41
- "indexed": true,
42
- "internalType": "address",
43
- "name": "spender",
44
- "type": "address"
45
- },
29
+ "constant": true,
30
+ "inputs": [],
31
+ "name": "mintingFinished",
32
+ "outputs": [
46
33
  {
47
- "indexed": false,
48
- "internalType": "uint256",
49
- "name": "value",
50
- "type": "uint256"
34
+ "name": "",
35
+ "type": "bool"
51
36
  }
52
37
  ],
53
- "name": "Approval",
54
- "type": "event"
38
+ "payable": false,
39
+ "stateMutability": "view",
40
+ "type": "function"
55
41
  },
56
42
  {
57
- "anonymous": false,
58
- "inputs": [
43
+ "constant": true,
44
+ "inputs": [],
45
+ "name": "name",
46
+ "outputs": [
59
47
  {
60
- "indexed": false,
61
- "internalType": "address",
62
- "name": "account",
63
- "type": "address"
48
+ "name": "",
49
+ "type": "string"
64
50
  }
65
51
  ],
66
- "name": "Paused",
67
- "type": "event"
52
+ "payable": false,
53
+ "stateMutability": "view",
54
+ "type": "function"
68
55
  },
69
56
  {
70
- "anonymous": false,
57
+ "constant": false,
71
58
  "inputs": [
72
59
  {
73
- "indexed": true,
74
- "internalType": "bytes32",
75
- "name": "role",
76
- "type": "bytes32"
77
- },
78
- {
79
- "indexed": true,
80
- "internalType": "address",
81
- "name": "account",
60
+ "name": "_spender",
82
61
  "type": "address"
83
62
  },
84
63
  {
85
- "indexed": true,
86
- "internalType": "address",
87
- "name": "sender",
88
- "type": "address"
64
+ "name": "_value",
65
+ "type": "uint256"
89
66
  }
90
67
  ],
91
- "name": "RoleGranted",
92
- "type": "event"
68
+ "name": "approve",
69
+ "outputs": [
70
+ {
71
+ "name": "",
72
+ "type": "bool"
73
+ }
74
+ ],
75
+ "payable": false,
76
+ "stateMutability": "nonpayable",
77
+ "type": "function"
93
78
  },
94
79
  {
95
- "anonymous": false,
80
+ "constant": false,
96
81
  "inputs": [
97
82
  {
98
- "indexed": true,
99
- "internalType": "bytes32",
100
- "name": "role",
101
- "type": "bytes32"
102
- },
103
- {
104
- "indexed": true,
105
- "internalType": "address",
106
- "name": "account",
83
+ "name": "token",
107
84
  "type": "address"
108
- },
85
+ }
86
+ ],
87
+ "name": "recoverTokens",
88
+ "outputs": [],
89
+ "payable": false,
90
+ "stateMutability": "nonpayable",
91
+ "type": "function"
92
+ },
93
+ {
94
+ "constant": true,
95
+ "inputs": [],
96
+ "name": "totalSupply",
97
+ "outputs": [
109
98
  {
110
- "indexed": true,
111
- "internalType": "address",
112
- "name": "sender",
113
- "type": "address"
99
+ "name": "",
100
+ "type": "uint256"
114
101
  }
115
102
  ],
116
- "name": "RoleRevoked",
117
- "type": "event"
103
+ "payable": false,
104
+ "stateMutability": "view",
105
+ "type": "function"
118
106
  },
119
107
  {
120
- "anonymous": false,
108
+ "constant": false,
121
109
  "inputs": [
122
110
  {
123
- "indexed": true,
124
- "internalType": "address",
125
- "name": "from",
111
+ "name": "_from",
126
112
  "type": "address"
127
113
  },
128
114
  {
129
- "indexed": true,
130
- "internalType": "address",
131
- "name": "to",
115
+ "name": "_to",
132
116
  "type": "address"
133
117
  },
134
118
  {
135
- "indexed": false,
136
- "internalType": "uint256",
137
- "name": "value",
119
+ "name": "_value",
138
120
  "type": "uint256"
139
121
  }
140
122
  ],
141
- "name": "Transfer",
142
- "type": "event"
123
+ "name": "transferFrom",
124
+ "outputs": [
125
+ {
126
+ "name": "success",
127
+ "type": "bool"
128
+ }
129
+ ],
130
+ "payable": false,
131
+ "stateMutability": "nonpayable",
132
+ "type": "function"
143
133
  },
144
134
  {
145
- "anonymous": false,
135
+ "constant": false,
146
136
  "inputs": [
147
137
  {
148
- "indexed": false,
149
- "internalType": "address",
150
- "name": "account",
138
+ "name": "addr",
151
139
  "type": "address"
152
140
  }
153
141
  ],
154
- "name": "Unpaused",
155
- "type": "event"
142
+ "name": "setReleaseAgent",
143
+ "outputs": [],
144
+ "payable": false,
145
+ "stateMutability": "nonpayable",
146
+ "type": "function"
156
147
  },
157
148
  {
149
+ "constant": true,
158
150
  "inputs": [],
159
- "name": "DEFAULT_ADMIN_ROLE",
151
+ "name": "decimals",
160
152
  "outputs": [
161
153
  {
162
- "internalType": "bytes32",
163
154
  "name": "",
164
- "type": "bytes32"
155
+ "type": "uint256"
165
156
  }
166
157
  ],
158
+ "payable": false,
167
159
  "stateMutability": "view",
168
160
  "type": "function"
169
161
  },
170
162
  {
171
- "inputs": [],
172
- "name": "MINTER_ROLE",
173
- "outputs": [
163
+ "constant": false,
164
+ "inputs": [
174
165
  {
175
- "internalType": "bytes32",
176
- "name": "",
177
- "type": "bytes32"
166
+ "name": "receiver",
167
+ "type": "address"
168
+ },
169
+ {
170
+ "name": "amount",
171
+ "type": "uint256"
178
172
  }
179
173
  ],
180
- "stateMutability": "view",
174
+ "name": "mint",
175
+ "outputs": [],
176
+ "payable": false,
177
+ "stateMutability": "nonpayable",
181
178
  "type": "function"
182
179
  },
183
180
  {
184
- "inputs": [],
185
- "name": "PAUSER_ROLE",
186
- "outputs": [
181
+ "constant": false,
182
+ "inputs": [
187
183
  {
188
- "internalType": "bytes32",
189
- "name": "",
190
- "type": "bytes32"
184
+ "name": "burnAmount",
185
+ "type": "uint256"
191
186
  }
192
187
  ],
193
- "stateMutability": "view",
188
+ "name": "burn",
189
+ "outputs": [],
190
+ "payable": false,
191
+ "stateMutability": "nonpayable",
194
192
  "type": "function"
195
193
  },
196
194
  {
195
+ "constant": true,
197
196
  "inputs": [
198
197
  {
199
- "internalType": "address",
200
- "name": "owner",
201
- "type": "address"
202
- },
203
- {
204
- "internalType": "address",
205
- "name": "spender",
198
+ "name": "",
206
199
  "type": "address"
207
200
  }
208
201
  ],
209
- "name": "allowance",
202
+ "name": "mintAgents",
210
203
  "outputs": [
211
204
  {
212
- "internalType": "uint256",
213
205
  "name": "",
214
- "type": "uint256"
206
+ "type": "bool"
215
207
  }
216
208
  ],
209
+ "payable": false,
217
210
  "stateMutability": "view",
218
211
  "type": "function"
219
212
  },
220
213
  {
214
+ "constant": false,
221
215
  "inputs": [
222
216
  {
223
- "internalType": "address",
224
- "name": "spender",
217
+ "name": "addr",
225
218
  "type": "address"
226
219
  },
227
220
  {
228
- "internalType": "uint256",
229
- "name": "amount",
230
- "type": "uint256"
231
- }
232
- ],
233
- "name": "approve",
234
- "outputs": [
235
- {
236
- "internalType": "bool",
237
- "name": "",
221
+ "name": "state",
238
222
  "type": "bool"
239
223
  }
240
224
  ],
225
+ "name": "setMintAgent",
226
+ "outputs": [],
227
+ "payable": false,
241
228
  "stateMutability": "nonpayable",
242
229
  "type": "function"
243
230
  },
244
231
  {
232
+ "constant": false,
245
233
  "inputs": [
246
234
  {
247
- "internalType": "address",
248
- "name": "account",
249
- "type": "address"
250
- }
251
- ],
252
- "name": "balanceOf",
253
- "outputs": [
254
- {
255
- "internalType": "uint256",
256
- "name": "",
235
+ "name": "value",
257
236
  "type": "uint256"
258
237
  }
259
238
  ],
260
- "stateMutability": "view",
239
+ "name": "upgrade",
240
+ "outputs": [],
241
+ "payable": false,
242
+ "stateMutability": "nonpayable",
261
243
  "type": "function"
262
244
  },
263
245
  {
246
+ "constant": false,
264
247
  "inputs": [
265
248
  {
266
- "internalType": "uint256",
267
- "name": "amount",
268
- "type": "uint256"
249
+ "name": "_name",
250
+ "type": "string"
251
+ },
252
+ {
253
+ "name": "_symbol",
254
+ "type": "string"
269
255
  }
270
256
  ],
271
- "name": "burn",
257
+ "name": "setTokenInformation",
272
258
  "outputs": [],
259
+ "payable": false,
273
260
  "stateMutability": "nonpayable",
274
261
  "type": "function"
275
262
  },
276
263
  {
277
- "inputs": [
264
+ "constant": true,
265
+ "inputs": [],
266
+ "name": "upgradeAgent",
267
+ "outputs": [
278
268
  {
279
- "internalType": "address",
280
- "name": "account",
269
+ "name": "",
281
270
  "type": "address"
282
- },
283
- {
284
- "internalType": "uint256",
285
- "name": "amount",
286
- "type": "uint256"
287
271
  }
288
272
  ],
289
- "name": "burnFrom",
273
+ "payable": false,
274
+ "stateMutability": "view",
275
+ "type": "function"
276
+ },
277
+ {
278
+ "constant": false,
279
+ "inputs": [],
280
+ "name": "releaseTokenTransfer",
290
281
  "outputs": [],
282
+ "payable": false,
291
283
  "stateMutability": "nonpayable",
292
284
  "type": "function"
293
285
  },
294
286
  {
287
+ "constant": true,
295
288
  "inputs": [],
296
- "name": "decimals",
289
+ "name": "upgradeMaster",
297
290
  "outputs": [
298
291
  {
299
- "internalType": "uint8",
300
292
  "name": "",
301
- "type": "uint8"
293
+ "type": "address"
302
294
  }
303
295
  ],
296
+ "payable": false,
304
297
  "stateMutability": "view",
305
298
  "type": "function"
306
299
  },
307
300
  {
301
+ "constant": false,
308
302
  "inputs": [
309
303
  {
310
- "internalType": "address",
311
- "name": "spender",
304
+ "name": "_spender",
312
305
  "type": "address"
313
306
  },
314
307
  {
315
- "internalType": "uint256",
316
- "name": "subtractedValue",
308
+ "name": "_subtractedValue",
317
309
  "type": "uint256"
318
310
  }
319
311
  ],
320
- "name": "decreaseAllowance",
312
+ "name": "decreaseApproval",
321
313
  "outputs": [
322
314
  {
323
- "internalType": "bool",
324
315
  "name": "",
325
316
  "type": "bool"
326
317
  }
327
318
  ],
319
+ "payable": false,
328
320
  "stateMutability": "nonpayable",
329
321
  "type": "function"
330
322
  },
331
323
  {
324
+ "constant": true,
332
325
  "inputs": [
333
326
  {
334
- "internalType": "bytes32",
335
- "name": "role",
336
- "type": "bytes32"
327
+ "name": "_owner",
328
+ "type": "address"
337
329
  }
338
330
  ],
339
- "name": "getRoleAdmin",
331
+ "name": "balanceOf",
340
332
  "outputs": [
341
333
  {
342
- "internalType": "bytes32",
343
- "name": "",
344
- "type": "bytes32"
334
+ "name": "balance",
335
+ "type": "uint256"
345
336
  }
346
337
  ],
338
+ "payable": false,
347
339
  "stateMutability": "view",
348
340
  "type": "function"
349
341
  },
350
342
  {
343
+ "constant": false,
351
344
  "inputs": [
352
345
  {
353
- "internalType": "bytes32",
354
- "name": "role",
355
- "type": "bytes32"
356
- },
357
- {
358
- "internalType": "uint256",
359
- "name": "index",
360
- "type": "uint256"
346
+ "name": "fromWhom",
347
+ "type": "address"
361
348
  }
362
349
  ],
363
- "name": "getRoleMember",
350
+ "name": "transferToOwner",
351
+ "outputs": [],
352
+ "payable": false,
353
+ "stateMutability": "nonpayable",
354
+ "type": "function"
355
+ },
356
+ {
357
+ "constant": true,
358
+ "inputs": [],
359
+ "name": "getUpgradeState",
364
360
  "outputs": [
365
361
  {
366
- "internalType": "address",
367
362
  "name": "",
368
- "type": "address"
363
+ "type": "uint8"
369
364
  }
370
365
  ],
366
+ "payable": false,
371
367
  "stateMutability": "view",
372
368
  "type": "function"
373
369
  },
374
370
  {
371
+ "constant": true,
375
372
  "inputs": [
376
373
  {
377
- "internalType": "bytes32",
378
- "name": "role",
379
- "type": "bytes32"
374
+ "name": "",
375
+ "type": "address"
380
376
  }
381
377
  ],
382
- "name": "getRoleMemberCount",
378
+ "name": "transferAgents",
383
379
  "outputs": [
384
380
  {
385
- "internalType": "uint256",
386
381
  "name": "",
387
- "type": "uint256"
382
+ "type": "bool"
388
383
  }
389
384
  ],
385
+ "payable": false,
390
386
  "stateMutability": "view",
391
387
  "type": "function"
392
388
  },
393
389
  {
394
- "inputs": [
395
- {
396
- "internalType": "bytes32",
397
- "name": "role",
398
- "type": "bytes32"
399
- },
390
+ "constant": true,
391
+ "inputs": [],
392
+ "name": "owner",
393
+ "outputs": [
400
394
  {
401
- "internalType": "address",
402
- "name": "account",
395
+ "name": "",
403
396
  "type": "address"
404
397
  }
405
398
  ],
406
- "name": "grantRole",
407
- "outputs": [],
408
- "stateMutability": "nonpayable",
399
+ "payable": false,
400
+ "stateMutability": "view",
409
401
  "type": "function"
410
402
  },
411
403
  {
412
- "inputs": [
404
+ "constant": true,
405
+ "inputs": [],
406
+ "name": "symbol",
407
+ "outputs": [
413
408
  {
414
- "internalType": "bytes32",
415
- "name": "role",
416
- "type": "bytes32"
417
- },
409
+ "name": "",
410
+ "type": "string"
411
+ }
412
+ ],
413
+ "payable": false,
414
+ "stateMutability": "view",
415
+ "type": "function"
416
+ },
417
+ {
418
+ "constant": true,
419
+ "inputs": [],
420
+ "name": "released",
421
+ "outputs": [
418
422
  {
419
- "internalType": "address",
420
- "name": "account",
421
- "type": "address"
423
+ "name": "",
424
+ "type": "bool"
422
425
  }
423
426
  ],
424
- "name": "hasRole",
427
+ "payable": false,
428
+ "stateMutability": "view",
429
+ "type": "function"
430
+ },
431
+ {
432
+ "constant": true,
433
+ "inputs": [],
434
+ "name": "canUpgrade",
425
435
  "outputs": [
426
436
  {
427
- "internalType": "bool",
428
437
  "name": "",
429
438
  "type": "bool"
430
439
  }
431
440
  ],
441
+ "payable": false,
432
442
  "stateMutability": "view",
433
443
  "type": "function"
434
444
  },
435
445
  {
446
+ "constant": false,
436
447
  "inputs": [
437
448
  {
438
- "internalType": "address",
439
- "name": "spender",
449
+ "name": "_to",
440
450
  "type": "address"
441
451
  },
442
452
  {
443
- "internalType": "uint256",
444
- "name": "addedValue",
453
+ "name": "_value",
445
454
  "type": "uint256"
446
455
  }
447
456
  ],
448
- "name": "increaseAllowance",
457
+ "name": "transfer",
449
458
  "outputs": [
450
459
  {
451
- "internalType": "bool",
452
- "name": "",
460
+ "name": "success",
453
461
  "type": "bool"
454
462
  }
455
463
  ],
464
+ "payable": false,
456
465
  "stateMutability": "nonpayable",
457
466
  "type": "function"
458
467
  },
459
468
  {
469
+ "constant": false,
460
470
  "inputs": [
461
471
  {
462
- "internalType": "address",
463
- "name": "to",
472
+ "name": "token",
464
473
  "type": "address"
465
- },
474
+ }
475
+ ],
476
+ "name": "tokensToBeReturned",
477
+ "outputs": [
466
478
  {
467
- "internalType": "uint256",
468
- "name": "amount",
479
+ "name": "",
469
480
  "type": "uint256"
470
481
  }
471
482
  ],
472
- "name": "mint",
473
- "outputs": [],
483
+ "payable": false,
474
484
  "stateMutability": "nonpayable",
475
485
  "type": "function"
476
486
  },
477
487
  {
488
+ "constant": true,
478
489
  "inputs": [],
479
- "name": "name",
490
+ "name": "totalUpgraded",
480
491
  "outputs": [
481
492
  {
482
- "internalType": "string",
483
493
  "name": "",
484
- "type": "string"
494
+ "type": "uint256"
485
495
  }
486
496
  ],
497
+ "payable": false,
487
498
  "stateMutability": "view",
488
499
  "type": "function"
489
500
  },
490
501
  {
502
+ "constant": true,
491
503
  "inputs": [],
492
- "name": "pause",
493
- "outputs": [],
494
- "stateMutability": "nonpayable",
504
+ "name": "releaseAgent",
505
+ "outputs": [
506
+ {
507
+ "name": "",
508
+ "type": "address"
509
+ }
510
+ ],
511
+ "payable": false,
512
+ "stateMutability": "view",
495
513
  "type": "function"
496
514
  },
497
515
  {
498
- "inputs": [],
499
- "name": "paused",
516
+ "constant": false,
517
+ "inputs": [
518
+ {
519
+ "name": "_spender",
520
+ "type": "address"
521
+ },
522
+ {
523
+ "name": "_addedValue",
524
+ "type": "uint256"
525
+ }
526
+ ],
527
+ "name": "increaseApproval",
500
528
  "outputs": [
501
529
  {
502
- "internalType": "bool",
503
530
  "name": "",
504
531
  "type": "bool"
505
532
  }
506
533
  ],
507
- "stateMutability": "view",
534
+ "payable": false,
535
+ "stateMutability": "nonpayable",
508
536
  "type": "function"
509
537
  },
510
538
  {
539
+ "constant": false,
511
540
  "inputs": [
512
541
  {
513
- "internalType": "bytes32",
514
- "name": "role",
515
- "type": "bytes32"
516
- },
517
- {
518
- "internalType": "address",
519
- "name": "account",
542
+ "name": "agent",
520
543
  "type": "address"
521
544
  }
522
545
  ],
523
- "name": "renounceRole",
546
+ "name": "setUpgradeAgent",
524
547
  "outputs": [],
548
+ "payable": false,
525
549
  "stateMutability": "nonpayable",
526
550
  "type": "function"
527
551
  },
528
552
  {
553
+ "constant": true,
529
554
  "inputs": [
530
555
  {
531
- "internalType": "bytes32",
532
- "name": "role",
533
- "type": "bytes32"
556
+ "name": "_owner",
557
+ "type": "address"
534
558
  },
535
559
  {
536
- "internalType": "address",
537
- "name": "account",
560
+ "name": "_spender",
538
561
  "type": "address"
539
562
  }
540
563
  ],
541
- "name": "revokeRole",
542
- "outputs": [],
543
- "stateMutability": "nonpayable",
564
+ "name": "allowance",
565
+ "outputs": [
566
+ {
567
+ "name": "",
568
+ "type": "uint256"
569
+ }
570
+ ],
571
+ "payable": false,
572
+ "stateMutability": "view",
544
573
  "type": "function"
545
574
  },
546
575
  {
576
+ "constant": true,
547
577
  "inputs": [],
548
- "name": "symbol",
578
+ "name": "isToken",
549
579
  "outputs": [
550
580
  {
551
- "internalType": "string",
552
- "name": "",
553
- "type": "string"
581
+ "name": "weAre",
582
+ "type": "bool"
554
583
  }
555
584
  ],
585
+ "payable": false,
556
586
  "stateMutability": "view",
557
587
  "type": "function"
558
588
  },
559
589
  {
590
+ "constant": false,
591
+ "inputs": [
592
+ {
593
+ "name": "newOwner",
594
+ "type": "address"
595
+ }
596
+ ],
597
+ "name": "transferOwnership",
598
+ "outputs": [],
599
+ "payable": false,
600
+ "stateMutability": "nonpayable",
601
+ "type": "function"
602
+ },
603
+ {
604
+ "constant": true,
560
605
  "inputs": [],
561
- "name": "totalSupply",
606
+ "name": "BURN_ADDRESS",
562
607
  "outputs": [
563
608
  {
564
- "internalType": "uint256",
565
609
  "name": "",
566
- "type": "uint256"
610
+ "type": "address"
567
611
  }
568
612
  ],
613
+ "payable": false,
569
614
  "stateMutability": "view",
570
615
  "type": "function"
571
616
  },
572
617
  {
618
+ "constant": false,
619
+ "inputs": [
620
+ {
621
+ "name": "master",
622
+ "type": "address"
623
+ }
624
+ ],
625
+ "name": "setUpgradeMaster",
626
+ "outputs": [],
627
+ "payable": false,
628
+ "stateMutability": "nonpayable",
629
+ "type": "function"
630
+ },
631
+ {
632
+ "inputs": [
633
+ {
634
+ "name": "_name",
635
+ "type": "string"
636
+ },
637
+ {
638
+ "name": "_symbol",
639
+ "type": "string"
640
+ },
641
+ {
642
+ "name": "_initialSupply",
643
+ "type": "uint256"
644
+ },
645
+ {
646
+ "name": "_decimals",
647
+ "type": "uint256"
648
+ },
649
+ {
650
+ "name": "_mintable",
651
+ "type": "bool"
652
+ }
653
+ ],
654
+ "payable": false,
655
+ "stateMutability": "nonpayable",
656
+ "type": "constructor"
657
+ },
658
+ {
659
+ "anonymous": false,
573
660
  "inputs": [
574
661
  {
575
- "internalType": "address",
576
- "name": "recipient",
662
+ "indexed": false,
663
+ "name": "fromWhom",
577
664
  "type": "address"
578
665
  },
579
666
  {
580
- "internalType": "uint256",
667
+ "indexed": false,
581
668
  "name": "amount",
582
669
  "type": "uint256"
583
670
  }
584
671
  ],
585
- "name": "transfer",
586
- "outputs": [
672
+ "name": "OwnerReclaim",
673
+ "type": "event"
674
+ },
675
+ {
676
+ "anonymous": false,
677
+ "inputs": [
587
678
  {
588
- "internalType": "bool",
589
- "name": "",
590
- "type": "bool"
679
+ "indexed": false,
680
+ "name": "newName",
681
+ "type": "string"
682
+ },
683
+ {
684
+ "indexed": false,
685
+ "name": "newSymbol",
686
+ "type": "string"
591
687
  }
592
688
  ],
593
- "stateMutability": "nonpayable",
594
- "type": "function"
689
+ "name": "UpdatedTokenInformation",
690
+ "type": "event"
595
691
  },
596
692
  {
693
+ "anonymous": false,
597
694
  "inputs": [
598
695
  {
599
- "internalType": "address",
600
- "name": "sender",
696
+ "indexed": true,
697
+ "name": "_from",
601
698
  "type": "address"
602
699
  },
603
700
  {
604
- "internalType": "address",
605
- "name": "recipient",
701
+ "indexed": true,
702
+ "name": "_to",
606
703
  "type": "address"
607
704
  },
608
705
  {
609
- "internalType": "uint256",
610
- "name": "amount",
706
+ "indexed": false,
707
+ "name": "_value",
611
708
  "type": "uint256"
612
709
  }
613
710
  ],
614
- "name": "transferFrom",
615
- "outputs": [
711
+ "name": "Upgrade",
712
+ "type": "event"
713
+ },
714
+ {
715
+ "anonymous": false,
716
+ "inputs": [
616
717
  {
617
- "internalType": "bool",
618
- "name": "",
718
+ "indexed": false,
719
+ "name": "agent",
720
+ "type": "address"
721
+ }
722
+ ],
723
+ "name": "UpgradeAgentSet",
724
+ "type": "event"
725
+ },
726
+ {
727
+ "anonymous": false,
728
+ "inputs": [
729
+ {
730
+ "indexed": false,
731
+ "name": "addr",
732
+ "type": "address"
733
+ },
734
+ {
735
+ "indexed": false,
736
+ "name": "state",
619
737
  "type": "bool"
620
738
  }
621
739
  ],
622
- "stateMutability": "nonpayable",
623
- "type": "function"
740
+ "name": "MintingAgentChanged",
741
+ "type": "event"
624
742
  },
625
743
  {
626
- "inputs": [],
627
- "name": "unpause",
628
- "outputs": [],
629
- "stateMutability": "nonpayable",
630
- "type": "function"
744
+ "anonymous": false,
745
+ "inputs": [
746
+ {
747
+ "indexed": false,
748
+ "name": "receiver",
749
+ "type": "address"
750
+ },
751
+ {
752
+ "indexed": false,
753
+ "name": "amount",
754
+ "type": "uint256"
755
+ }
756
+ ],
757
+ "name": "Minted",
758
+ "type": "event"
759
+ },
760
+ {
761
+ "anonymous": false,
762
+ "inputs": [
763
+ {
764
+ "indexed": false,
765
+ "name": "burner",
766
+ "type": "address"
767
+ },
768
+ {
769
+ "indexed": false,
770
+ "name": "burnedAmount",
771
+ "type": "uint256"
772
+ }
773
+ ],
774
+ "name": "Burned",
775
+ "type": "event"
776
+ },
777
+ {
778
+ "anonymous": false,
779
+ "inputs": [
780
+ {
781
+ "indexed": true,
782
+ "name": "previousOwner",
783
+ "type": "address"
784
+ },
785
+ {
786
+ "indexed": true,
787
+ "name": "newOwner",
788
+ "type": "address"
789
+ }
790
+ ],
791
+ "name": "OwnershipTransferred",
792
+ "type": "event"
793
+ },
794
+ {
795
+ "anonymous": false,
796
+ "inputs": [
797
+ {
798
+ "indexed": true,
799
+ "name": "owner",
800
+ "type": "address"
801
+ },
802
+ {
803
+ "indexed": true,
804
+ "name": "spender",
805
+ "type": "address"
806
+ },
807
+ {
808
+ "indexed": false,
809
+ "name": "value",
810
+ "type": "uint256"
811
+ }
812
+ ],
813
+ "name": "Approval",
814
+ "type": "event"
815
+ },
816
+ {
817
+ "anonymous": false,
818
+ "inputs": [
819
+ {
820
+ "indexed": true,
821
+ "name": "from",
822
+ "type": "address"
823
+ },
824
+ {
825
+ "indexed": true,
826
+ "name": "to",
827
+ "type": "address"
828
+ },
829
+ {
830
+ "indexed": false,
831
+ "name": "value",
832
+ "type": "uint256"
833
+ }
834
+ ],
835
+ "name": "Transfer",
836
+ "type": "event"
631
837
  }
632
838
  ] as const satisfies Abi;
633
839
 
634
840
  /**
635
- * Type-safe ABI for FetchToken_json
841
+ * Type-safe ABI for AMLToken_json
636
842
  */
637
- export type FetchToken_jsonAbi = typeof FetchToken_jsonAbi;
843
+ export type AMLToken_jsonAbi = typeof AMLToken_jsonAbi;
638
844
 
639
845
  /**
640
- * Contract instance type for FetchToken_json
846
+ * Contract instance type for AMLToken_json
641
847
  */
642
848
  // Use any for contract type to avoid complex viem type issues
643
849
  // The runtime behavior is type-safe through viem's ABI typing
644
- export type FetchToken_jsonContract = any;
850
+ export type AMLToken_jsonContract = any;
645
851
 
646
852
  /**
647
- * FetchToken_json Contract Class
853
+ * AMLToken_json Contract Class
648
854
  *
649
855
  * Provides a class-based API similar to TypeChain for interacting with the contract.
650
856
  *
@@ -652,12 +858,12 @@ export type FetchToken_jsonContract = any;
652
858
  * ```typescript
653
859
  * import { createPublicClient, createWalletClient, http } from 'viem';
654
860
  * import { mainnet } from 'viem/chains';
655
- * import { FetchToken_json } from 'FetchToken_json';
861
+ * import { AMLToken_json } from 'AMLToken_json';
656
862
  *
657
863
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
658
864
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
659
865
  *
660
- * const contract = new FetchToken_json('0x...', { publicClient, walletClient });
866
+ * const contract = new AMLToken_json('0x...', { publicClient, walletClient });
661
867
  *
662
868
  * // Read functions
663
869
  * const result = await contract.balanceOf('0x...');
@@ -675,8 +881,8 @@ export type FetchToken_jsonContract = any;
675
881
  * });
676
882
  * ```
677
883
  */
678
- export class FetchToken_json {
679
- private contract: FetchToken_jsonContract;
884
+ export class AMLToken_json {
885
+ private contract: AMLToken_jsonContract;
680
886
  private contractAddress: Address;
681
887
  private publicClient: PublicClient;
682
888
 
@@ -691,7 +897,7 @@ export class FetchToken_json {
691
897
  this.publicClient = clients.publicClient;
692
898
  this.contract = getContract({
693
899
  address,
694
- abi: FetchToken_jsonAbi,
900
+ abi: AMLToken_jsonAbi,
695
901
  client: {
696
902
  public: clients.publicClient,
697
903
  wallet: clients.walletClient,
@@ -709,128 +915,306 @@ export class FetchToken_json {
709
915
  /**
710
916
  * Get the underlying viem contract instance
711
917
  */
712
- getContract(): FetchToken_jsonContract {
918
+ getContract(): AMLToken_jsonContract {
713
919
  return this.contract;
714
920
  }
715
921
 
716
922
  /**
717
- * DEFAULT_ADMIN_ROLE
923
+ * mintingFinished
718
924
  * view
719
925
  */
720
- async DEFAULT_ADMIN_ROLE(): Promise<`0x${string}`> {
721
- return this.contract.read.DEFAULT_ADMIN_ROLE() as Promise<`0x${string}`>;
926
+ async mintingFinished(): Promise<boolean> {
927
+ return this.contract.read.mintingFinished() as Promise<boolean>;
722
928
  }
723
929
 
724
930
  /**
725
- * MINTER_ROLE
931
+ * name
726
932
  * view
727
933
  */
728
- async MINTER_ROLE(): Promise<`0x${string}`> {
729
- return this.contract.read.MINTER_ROLE() as Promise<`0x${string}`>;
934
+ async name(): Promise<string> {
935
+ return this.contract.read.name() as Promise<string>;
730
936
  }
731
937
 
732
938
  /**
733
- * PAUSER_ROLE
939
+ * totalSupply
734
940
  * view
735
941
  */
736
- async PAUSER_ROLE(): Promise<`0x${string}`> {
737
- return this.contract.read.PAUSER_ROLE() as Promise<`0x${string}`>;
942
+ async totalSupply(): Promise<bigint> {
943
+ return this.contract.read.totalSupply() as Promise<bigint>;
738
944
  }
739
945
 
740
946
  /**
741
- * allowance
947
+ * decimals
742
948
  * view
743
949
  */
744
- async allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint> {
745
- return this.contract.read.allowance([owner, spender] as const) as Promise<bigint>;
950
+ async decimals(): Promise<bigint> {
951
+ return this.contract.read.decimals() as Promise<bigint>;
952
+ }
953
+
954
+ /**
955
+ * mintAgents
956
+ * view
957
+ */
958
+ async mintAgents(arg0: `0x${string}`): Promise<boolean> {
959
+ return this.contract.read.mintAgents([arg0] as const) as Promise<boolean>;
960
+ }
961
+
962
+ /**
963
+ * upgradeAgent
964
+ * view
965
+ */
966
+ async upgradeAgent(): Promise<`0x${string}`> {
967
+ return this.contract.read.upgradeAgent() as Promise<`0x${string}`>;
968
+ }
969
+
970
+ /**
971
+ * upgradeMaster
972
+ * view
973
+ */
974
+ async upgradeMaster(): Promise<`0x${string}`> {
975
+ return this.contract.read.upgradeMaster() as Promise<`0x${string}`>;
746
976
  }
747
977
 
748
978
  /**
749
979
  * balanceOf
750
980
  * view
751
981
  */
752
- async balanceOf(account: `0x${string}`): Promise<bigint> {
753
- return this.contract.read.balanceOf([account] as const) as Promise<bigint>;
982
+ async balanceOf(_owner: `0x${string}`): Promise<bigint> {
983
+ return this.contract.read.balanceOf([_owner] as const) as Promise<bigint>;
754
984
  }
755
985
 
756
986
  /**
757
- * decimals
987
+ * getUpgradeState
758
988
  * view
759
989
  */
760
- async decimals(): Promise<bigint> {
761
- return this.contract.read.decimals() as Promise<bigint>;
990
+ async getUpgradeState(): Promise<bigint> {
991
+ return this.contract.read.getUpgradeState() as Promise<bigint>;
762
992
  }
763
993
 
764
994
  /**
765
- * getRoleAdmin
995
+ * transferAgents
766
996
  * view
767
997
  */
768
- async getRoleAdmin(role: `0x${string}`): Promise<`0x${string}`> {
769
- return this.contract.read.getRoleAdmin([role] as const) as Promise<`0x${string}`>;
998
+ async transferAgents(arg0: `0x${string}`): Promise<boolean> {
999
+ return this.contract.read.transferAgents([arg0] as const) as Promise<boolean>;
770
1000
  }
771
1001
 
772
1002
  /**
773
- * getRoleMember
1003
+ * owner
774
1004
  * view
775
1005
  */
776
- async getRoleMember(role: `0x${string}`, index: bigint): Promise<`0x${string}`> {
777
- return this.contract.read.getRoleMember([role, index] as const) as Promise<`0x${string}`>;
1006
+ async owner(): Promise<`0x${string}`> {
1007
+ return this.contract.read.owner() as Promise<`0x${string}`>;
778
1008
  }
779
1009
 
780
1010
  /**
781
- * getRoleMemberCount
1011
+ * symbol
782
1012
  * view
783
1013
  */
784
- async getRoleMemberCount(role: `0x${string}`): Promise<bigint> {
785
- return this.contract.read.getRoleMemberCount([role] as const) as Promise<bigint>;
1014
+ async symbol(): Promise<string> {
1015
+ return this.contract.read.symbol() as Promise<string>;
786
1016
  }
787
1017
 
788
1018
  /**
789
- * hasRole
1019
+ * released
790
1020
  * view
791
1021
  */
792
- async hasRole(role: `0x${string}`, account: `0x${string}`): Promise<boolean> {
793
- return this.contract.read.hasRole([role, account] as const) as Promise<boolean>;
1022
+ async released(): Promise<boolean> {
1023
+ return this.contract.read.released() as Promise<boolean>;
794
1024
  }
795
1025
 
796
1026
  /**
797
- * name
1027
+ * canUpgrade
798
1028
  * view
799
1029
  */
800
- async name(): Promise<string> {
801
- return this.contract.read.name() as Promise<string>;
1030
+ async canUpgrade(): Promise<boolean> {
1031
+ return this.contract.read.canUpgrade() as Promise<boolean>;
1032
+ }
1033
+
1034
+ /**
1035
+ * totalUpgraded
1036
+ * view
1037
+ */
1038
+ async totalUpgraded(): Promise<bigint> {
1039
+ return this.contract.read.totalUpgraded() as Promise<bigint>;
1040
+ }
1041
+
1042
+ /**
1043
+ * releaseAgent
1044
+ * view
1045
+ */
1046
+ async releaseAgent(): Promise<`0x${string}`> {
1047
+ return this.contract.read.releaseAgent() as Promise<`0x${string}`>;
1048
+ }
1049
+
1050
+ /**
1051
+ * allowance
1052
+ * view
1053
+ */
1054
+ async allowance(_owner: `0x${string}`, _spender: `0x${string}`): Promise<bigint> {
1055
+ return this.contract.read.allowance([_owner, _spender] as const) as Promise<bigint>;
1056
+ }
1057
+
1058
+ /**
1059
+ * isToken
1060
+ * view
1061
+ */
1062
+ async isToken(): Promise<boolean> {
1063
+ return this.contract.read.isToken() as Promise<boolean>;
1064
+ }
1065
+
1066
+ /**
1067
+ * BURN_ADDRESS
1068
+ * view
1069
+ */
1070
+ async BURN_ADDRESS(): Promise<`0x${string}`> {
1071
+ return this.contract.read.BURN_ADDRESS() as Promise<`0x${string}`>;
1072
+ }
1073
+
1074
+ /**
1075
+ * setTransferAgent
1076
+ * nonpayable
1077
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1078
+ */
1079
+ async setTransferAgent(addr: `0x${string}`, state: boolean, options?: {
1080
+ accessList?: import('viem').AccessList;
1081
+ authorizationList?: import('viem').AuthorizationList;
1082
+ chain?: import('viem').Chain | null;
1083
+ dataSuffix?: `0x${string}`;
1084
+ gas?: bigint;
1085
+ gasPrice?: bigint;
1086
+ maxFeePerGas?: bigint;
1087
+ maxPriorityFeePerGas?: bigint;
1088
+ nonce?: number;
1089
+ value?: bigint;
1090
+ }): Promise<`0x${string}`> {
1091
+ if (!this.contract.write) {
1092
+ throw new Error('Wallet client is required for write operations');
1093
+ }
1094
+ return this.contract.write.setTransferAgent([addr, state] as const, options) as Promise<`0x${string}`>;
1095
+ }
1096
+
1097
+ /**
1098
+ * approve
1099
+ * nonpayable
1100
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1101
+ */
1102
+ async approve(_spender: `0x${string}`, _value: bigint, 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<`0x${string}`> {
1114
+ if (!this.contract.write) {
1115
+ throw new Error('Wallet client is required for write operations');
1116
+ }
1117
+ return this.contract.write.approve([_spender, _value] as const, options) as Promise<`0x${string}`>;
1118
+ }
1119
+
1120
+ /**
1121
+ * recoverTokens
1122
+ * nonpayable
1123
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1124
+ */
1125
+ async recoverTokens(token: `0x${string}`, options?: {
1126
+ accessList?: import('viem').AccessList;
1127
+ authorizationList?: import('viem').AuthorizationList;
1128
+ chain?: import('viem').Chain | null;
1129
+ dataSuffix?: `0x${string}`;
1130
+ gas?: bigint;
1131
+ gasPrice?: bigint;
1132
+ maxFeePerGas?: bigint;
1133
+ maxPriorityFeePerGas?: bigint;
1134
+ nonce?: number;
1135
+ value?: bigint;
1136
+ }): Promise<`0x${string}`> {
1137
+ if (!this.contract.write) {
1138
+ throw new Error('Wallet client is required for write operations');
1139
+ }
1140
+ return this.contract.write.recoverTokens([token] as const, options) as Promise<`0x${string}`>;
802
1141
  }
803
1142
 
804
1143
  /**
805
- * paused
806
- * view
1144
+ * transferFrom
1145
+ * nonpayable
1146
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
807
1147
  */
808
- async paused(): Promise<boolean> {
809
- return this.contract.read.paused() as Promise<boolean>;
1148
+ async transferFrom(_from: `0x${string}`, _to: `0x${string}`, _value: bigint, options?: {
1149
+ accessList?: import('viem').AccessList;
1150
+ authorizationList?: import('viem').AuthorizationList;
1151
+ chain?: import('viem').Chain | null;
1152
+ dataSuffix?: `0x${string}`;
1153
+ gas?: bigint;
1154
+ gasPrice?: bigint;
1155
+ maxFeePerGas?: bigint;
1156
+ maxPriorityFeePerGas?: bigint;
1157
+ nonce?: number;
1158
+ value?: bigint;
1159
+ }): Promise<`0x${string}`> {
1160
+ if (!this.contract.write) {
1161
+ throw new Error('Wallet client is required for write operations');
1162
+ }
1163
+ return this.contract.write.transferFrom([_from, _to, _value] as const, options) as Promise<`0x${string}`>;
810
1164
  }
811
1165
 
812
1166
  /**
813
- * symbol
814
- * view
1167
+ * setReleaseAgent
1168
+ * nonpayable
1169
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
815
1170
  */
816
- async symbol(): Promise<string> {
817
- return this.contract.read.symbol() as Promise<string>;
1171
+ async setReleaseAgent(addr: `0x${string}`, options?: {
1172
+ accessList?: import('viem').AccessList;
1173
+ authorizationList?: import('viem').AuthorizationList;
1174
+ chain?: import('viem').Chain | null;
1175
+ dataSuffix?: `0x${string}`;
1176
+ gas?: bigint;
1177
+ gasPrice?: bigint;
1178
+ maxFeePerGas?: bigint;
1179
+ maxPriorityFeePerGas?: bigint;
1180
+ nonce?: number;
1181
+ value?: bigint;
1182
+ }): Promise<`0x${string}`> {
1183
+ if (!this.contract.write) {
1184
+ throw new Error('Wallet client is required for write operations');
1185
+ }
1186
+ return this.contract.write.setReleaseAgent([addr] as const, options) as Promise<`0x${string}`>;
818
1187
  }
819
1188
 
820
1189
  /**
821
- * totalSupply
822
- * view
1190
+ * mint
1191
+ * nonpayable
1192
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
823
1193
  */
824
- async totalSupply(): Promise<bigint> {
825
- return this.contract.read.totalSupply() as Promise<bigint>;
1194
+ async mint(receiver: `0x${string}`, amount: bigint, options?: {
1195
+ accessList?: import('viem').AccessList;
1196
+ authorizationList?: import('viem').AuthorizationList;
1197
+ chain?: import('viem').Chain | null;
1198
+ dataSuffix?: `0x${string}`;
1199
+ gas?: bigint;
1200
+ gasPrice?: bigint;
1201
+ maxFeePerGas?: bigint;
1202
+ maxPriorityFeePerGas?: bigint;
1203
+ nonce?: number;
1204
+ value?: bigint;
1205
+ }): Promise<`0x${string}`> {
1206
+ if (!this.contract.write) {
1207
+ throw new Error('Wallet client is required for write operations');
1208
+ }
1209
+ return this.contract.write.mint([receiver, amount] as const, options) as Promise<`0x${string}`>;
826
1210
  }
827
1211
 
828
1212
  /**
829
- * approve
1213
+ * burn
830
1214
  * nonpayable
831
1215
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
832
1216
  */
833
- async approve(spender: `0x${string}`, amount: bigint, options?: {
1217
+ async burn(burnAmount: bigint, options?: {
834
1218
  accessList?: import('viem').AccessList;
835
1219
  authorizationList?: import('viem').AuthorizationList;
836
1220
  chain?: import('viem').Chain | null;
@@ -845,15 +1229,15 @@ export class FetchToken_json {
845
1229
  if (!this.contract.write) {
846
1230
  throw new Error('Wallet client is required for write operations');
847
1231
  }
848
- return this.contract.write.approve([spender, amount] as const, options) as Promise<`0x${string}`>;
1232
+ return this.contract.write.burn([burnAmount] as const, options) as Promise<`0x${string}`>;
849
1233
  }
850
1234
 
851
1235
  /**
852
- * burn
1236
+ * setMintAgent
853
1237
  * nonpayable
854
1238
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
855
1239
  */
856
- async burn(amount: bigint, options?: {
1240
+ async setMintAgent(addr: `0x${string}`, state: boolean, options?: {
857
1241
  accessList?: import('viem').AccessList;
858
1242
  authorizationList?: import('viem').AuthorizationList;
859
1243
  chain?: import('viem').Chain | null;
@@ -868,15 +1252,15 @@ export class FetchToken_json {
868
1252
  if (!this.contract.write) {
869
1253
  throw new Error('Wallet client is required for write operations');
870
1254
  }
871
- return this.contract.write.burn([amount] as const, options) as Promise<`0x${string}`>;
1255
+ return this.contract.write.setMintAgent([addr, state] as const, options) as Promise<`0x${string}`>;
872
1256
  }
873
1257
 
874
1258
  /**
875
- * burnFrom
1259
+ * upgrade
876
1260
  * nonpayable
877
1261
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
878
1262
  */
879
- async burnFrom(account: `0x${string}`, amount: bigint, options?: {
1263
+ async upgrade(value: bigint, options?: {
880
1264
  accessList?: import('viem').AccessList;
881
1265
  authorizationList?: import('viem').AuthorizationList;
882
1266
  chain?: import('viem').Chain | null;
@@ -891,15 +1275,15 @@ export class FetchToken_json {
891
1275
  if (!this.contract.write) {
892
1276
  throw new Error('Wallet client is required for write operations');
893
1277
  }
894
- return this.contract.write.burnFrom([account, amount] as const, options) as Promise<`0x${string}`>;
1278
+ return this.contract.write.upgrade([value] as const, options) as Promise<`0x${string}`>;
895
1279
  }
896
1280
 
897
1281
  /**
898
- * decreaseAllowance
1282
+ * setTokenInformation
899
1283
  * nonpayable
900
1284
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
901
1285
  */
902
- async decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
1286
+ async setTokenInformation(_name: string, _symbol: string, options?: {
903
1287
  accessList?: import('viem').AccessList;
904
1288
  authorizationList?: import('viem').AuthorizationList;
905
1289
  chain?: import('viem').Chain | null;
@@ -914,15 +1298,15 @@ export class FetchToken_json {
914
1298
  if (!this.contract.write) {
915
1299
  throw new Error('Wallet client is required for write operations');
916
1300
  }
917
- return this.contract.write.decreaseAllowance([spender, subtractedValue] as const, options) as Promise<`0x${string}`>;
1301
+ return this.contract.write.setTokenInformation([_name, _symbol] as const, options) as Promise<`0x${string}`>;
918
1302
  }
919
1303
 
920
1304
  /**
921
- * grantRole
1305
+ * releaseTokenTransfer
922
1306
  * nonpayable
923
1307
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
924
1308
  */
925
- async grantRole(role: `0x${string}`, account: `0x${string}`, options?: {
1309
+ async releaseTokenTransfer(options?: {
926
1310
  accessList?: import('viem').AccessList;
927
1311
  authorizationList?: import('viem').AuthorizationList;
928
1312
  chain?: import('viem').Chain | null;
@@ -937,15 +1321,15 @@ export class FetchToken_json {
937
1321
  if (!this.contract.write) {
938
1322
  throw new Error('Wallet client is required for write operations');
939
1323
  }
940
- return this.contract.write.grantRole([role, account] as const, options) as Promise<`0x${string}`>;
1324
+ return this.contract.write.releaseTokenTransfer(options) as Promise<`0x${string}`>;
941
1325
  }
942
1326
 
943
1327
  /**
944
- * increaseAllowance
1328
+ * decreaseApproval
945
1329
  * nonpayable
946
1330
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
947
1331
  */
948
- async increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
1332
+ async decreaseApproval(_spender: `0x${string}`, _subtractedValue: bigint, options?: {
949
1333
  accessList?: import('viem').AccessList;
950
1334
  authorizationList?: import('viem').AuthorizationList;
951
1335
  chain?: import('viem').Chain | null;
@@ -960,15 +1344,15 @@ export class FetchToken_json {
960
1344
  if (!this.contract.write) {
961
1345
  throw new Error('Wallet client is required for write operations');
962
1346
  }
963
- return this.contract.write.increaseAllowance([spender, addedValue] as const, options) as Promise<`0x${string}`>;
1347
+ return this.contract.write.decreaseApproval([_spender, _subtractedValue] as const, options) as Promise<`0x${string}`>;
964
1348
  }
965
1349
 
966
1350
  /**
967
- * mint
1351
+ * transferToOwner
968
1352
  * nonpayable
969
1353
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
970
1354
  */
971
- async mint(to: `0x${string}`, amount: bigint, options?: {
1355
+ async transferToOwner(fromWhom: `0x${string}`, options?: {
972
1356
  accessList?: import('viem').AccessList;
973
1357
  authorizationList?: import('viem').AuthorizationList;
974
1358
  chain?: import('viem').Chain | null;
@@ -983,15 +1367,15 @@ export class FetchToken_json {
983
1367
  if (!this.contract.write) {
984
1368
  throw new Error('Wallet client is required for write operations');
985
1369
  }
986
- return this.contract.write.mint([to, amount] as const, options) as Promise<`0x${string}`>;
1370
+ return this.contract.write.transferToOwner([fromWhom] as const, options) as Promise<`0x${string}`>;
987
1371
  }
988
1372
 
989
1373
  /**
990
- * pause
1374
+ * transfer
991
1375
  * nonpayable
992
1376
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
993
1377
  */
994
- async pause(options?: {
1378
+ async transfer(_to: `0x${string}`, _value: bigint, options?: {
995
1379
  accessList?: import('viem').AccessList;
996
1380
  authorizationList?: import('viem').AuthorizationList;
997
1381
  chain?: import('viem').Chain | null;
@@ -1006,15 +1390,15 @@ export class FetchToken_json {
1006
1390
  if (!this.contract.write) {
1007
1391
  throw new Error('Wallet client is required for write operations');
1008
1392
  }
1009
- return this.contract.write.pause(options) as Promise<`0x${string}`>;
1393
+ return this.contract.write.transfer([_to, _value] as const, options) as Promise<`0x${string}`>;
1010
1394
  }
1011
1395
 
1012
1396
  /**
1013
- * renounceRole
1397
+ * tokensToBeReturned
1014
1398
  * nonpayable
1015
1399
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1016
1400
  */
1017
- async renounceRole(role: `0x${string}`, account: `0x${string}`, options?: {
1401
+ async tokensToBeReturned(token: `0x${string}`, options?: {
1018
1402
  accessList?: import('viem').AccessList;
1019
1403
  authorizationList?: import('viem').AuthorizationList;
1020
1404
  chain?: import('viem').Chain | null;
@@ -1029,15 +1413,15 @@ export class FetchToken_json {
1029
1413
  if (!this.contract.write) {
1030
1414
  throw new Error('Wallet client is required for write operations');
1031
1415
  }
1032
- return this.contract.write.renounceRole([role, account] as const, options) as Promise<`0x${string}`>;
1416
+ return this.contract.write.tokensToBeReturned([token] as const, options) as Promise<`0x${string}`>;
1033
1417
  }
1034
1418
 
1035
1419
  /**
1036
- * revokeRole
1420
+ * increaseApproval
1037
1421
  * nonpayable
1038
1422
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1039
1423
  */
1040
- async revokeRole(role: `0x${string}`, account: `0x${string}`, options?: {
1424
+ async increaseApproval(_spender: `0x${string}`, _addedValue: bigint, options?: {
1041
1425
  accessList?: import('viem').AccessList;
1042
1426
  authorizationList?: import('viem').AuthorizationList;
1043
1427
  chain?: import('viem').Chain | null;
@@ -1052,15 +1436,15 @@ export class FetchToken_json {
1052
1436
  if (!this.contract.write) {
1053
1437
  throw new Error('Wallet client is required for write operations');
1054
1438
  }
1055
- return this.contract.write.revokeRole([role, account] as const, options) as Promise<`0x${string}`>;
1439
+ return this.contract.write.increaseApproval([_spender, _addedValue] as const, options) as Promise<`0x${string}`>;
1056
1440
  }
1057
1441
 
1058
1442
  /**
1059
- * transfer
1443
+ * setUpgradeAgent
1060
1444
  * nonpayable
1061
1445
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1062
1446
  */
1063
- async transfer(recipient: `0x${string}`, amount: bigint, options?: {
1447
+ async setUpgradeAgent(agent: `0x${string}`, options?: {
1064
1448
  accessList?: import('viem').AccessList;
1065
1449
  authorizationList?: import('viem').AuthorizationList;
1066
1450
  chain?: import('viem').Chain | null;
@@ -1075,15 +1459,15 @@ export class FetchToken_json {
1075
1459
  if (!this.contract.write) {
1076
1460
  throw new Error('Wallet client is required for write operations');
1077
1461
  }
1078
- return this.contract.write.transfer([recipient, amount] as const, options) as Promise<`0x${string}`>;
1462
+ return this.contract.write.setUpgradeAgent([agent] as const, options) as Promise<`0x${string}`>;
1079
1463
  }
1080
1464
 
1081
1465
  /**
1082
- * transferFrom
1466
+ * transferOwnership
1083
1467
  * nonpayable
1084
1468
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1085
1469
  */
1086
- async transferFrom(sender: `0x${string}`, recipient: `0x${string}`, amount: bigint, options?: {
1470
+ async transferOwnership(newOwner: `0x${string}`, options?: {
1087
1471
  accessList?: import('viem').AccessList;
1088
1472
  authorizationList?: import('viem').AuthorizationList;
1089
1473
  chain?: import('viem').Chain | null;
@@ -1098,15 +1482,15 @@ export class FetchToken_json {
1098
1482
  if (!this.contract.write) {
1099
1483
  throw new Error('Wallet client is required for write operations');
1100
1484
  }
1101
- return this.contract.write.transferFrom([sender, recipient, amount] as const, options) as Promise<`0x${string}`>;
1485
+ return this.contract.write.transferOwnership([newOwner] as const, options) as Promise<`0x${string}`>;
1102
1486
  }
1103
1487
 
1104
1488
  /**
1105
- * unpause
1489
+ * setUpgradeMaster
1106
1490
  * nonpayable
1107
1491
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1108
1492
  */
1109
- async unpause(options?: {
1493
+ async setUpgradeMaster(master: `0x${string}`, options?: {
1110
1494
  accessList?: import('viem').AccessList;
1111
1495
  authorizationList?: import('viem').AuthorizationList;
1112
1496
  chain?: import('viem').Chain | null;
@@ -1121,7 +1505,7 @@ export class FetchToken_json {
1121
1505
  if (!this.contract.write) {
1122
1506
  throw new Error('Wallet client is required for write operations');
1123
1507
  }
1124
- return this.contract.write.unpause(options) as Promise<`0x${string}`>;
1508
+ return this.contract.write.setUpgradeMaster([master] as const, options) as Promise<`0x${string}`>;
1125
1509
  }
1126
1510
 
1127
1511
 
@@ -1140,12 +1524,31 @@ export class FetchToken_json {
1140
1524
  throw new Error('Public client is required for simulation');
1141
1525
  }
1142
1526
  return {
1527
+ /**
1528
+ * Simulate setTransferAgent
1529
+ * Returns gas estimate and result without sending transaction
1530
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1531
+ */
1532
+ async setTransferAgent(addr: `0x${string}`, state: boolean, options?: {
1533
+ accessList?: import('viem').AccessList;
1534
+ authorizationList?: import('viem').AuthorizationList;
1535
+ chain?: import('viem').Chain | null;
1536
+ dataSuffix?: `0x${string}`;
1537
+ gas?: bigint;
1538
+ gasPrice?: bigint;
1539
+ maxFeePerGas?: bigint;
1540
+ maxPriorityFeePerGas?: bigint;
1541
+ nonce?: number;
1542
+ value?: bigint;
1543
+ }): Promise<void> {
1544
+ return contract.simulate.setTransferAgent([addr, state] as const, options) as Promise<void>;
1545
+ },
1143
1546
  /**
1144
1547
  * Simulate approve
1145
1548
  * Returns gas estimate and result without sending transaction
1146
1549
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1147
1550
  */
1148
- async approve(spender: `0x${string}`, amount: bigint, options?: {
1551
+ async approve(_spender: `0x${string}`, _value: bigint, options?: {
1149
1552
  accessList?: import('viem').AccessList;
1150
1553
  authorizationList?: import('viem').AuthorizationList;
1151
1554
  chain?: import('viem').Chain | null;
@@ -1157,14 +1560,14 @@ export class FetchToken_json {
1157
1560
  nonce?: number;
1158
1561
  value?: bigint;
1159
1562
  }): Promise<boolean> {
1160
- return contract.simulate.approve([spender, amount] as const, options) as Promise<boolean>;
1563
+ return contract.simulate.approve([_spender, _value] as const, options) as Promise<boolean>;
1161
1564
  },
1162
1565
  /**
1163
- * Simulate burn
1566
+ * Simulate recoverTokens
1164
1567
  * Returns gas estimate and result without sending transaction
1165
1568
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1166
1569
  */
1167
- async burn(amount: bigint, options?: {
1570
+ async recoverTokens(token: `0x${string}`, options?: {
1168
1571
  accessList?: import('viem').AccessList;
1169
1572
  authorizationList?: import('viem').AuthorizationList;
1170
1573
  chain?: import('viem').Chain | null;
@@ -1176,14 +1579,33 @@ export class FetchToken_json {
1176
1579
  nonce?: number;
1177
1580
  value?: bigint;
1178
1581
  }): Promise<void> {
1179
- return contract.simulate.burn([amount] as const, options) as Promise<void>;
1582
+ return contract.simulate.recoverTokens([token] as const, options) as Promise<void>;
1583
+ },
1584
+ /**
1585
+ * Simulate transferFrom
1586
+ * Returns gas estimate and result without sending transaction
1587
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1588
+ */
1589
+ async transferFrom(_from: `0x${string}`, _to: `0x${string}`, _value: bigint, options?: {
1590
+ accessList?: import('viem').AccessList;
1591
+ authorizationList?: import('viem').AuthorizationList;
1592
+ chain?: import('viem').Chain | null;
1593
+ dataSuffix?: `0x${string}`;
1594
+ gas?: bigint;
1595
+ gasPrice?: bigint;
1596
+ maxFeePerGas?: bigint;
1597
+ maxPriorityFeePerGas?: bigint;
1598
+ nonce?: number;
1599
+ value?: bigint;
1600
+ }): Promise<boolean> {
1601
+ return contract.simulate.transferFrom([_from, _to, _value] as const, options) as Promise<boolean>;
1180
1602
  },
1181
1603
  /**
1182
- * Simulate burnFrom
1604
+ * Simulate setReleaseAgent
1183
1605
  * Returns gas estimate and result without sending transaction
1184
1606
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1185
1607
  */
1186
- async burnFrom(account: `0x${string}`, amount: bigint, options?: {
1608
+ async setReleaseAgent(addr: `0x${string}`, options?: {
1187
1609
  accessList?: import('viem').AccessList;
1188
1610
  authorizationList?: import('viem').AuthorizationList;
1189
1611
  chain?: import('viem').Chain | null;
@@ -1195,14 +1617,14 @@ export class FetchToken_json {
1195
1617
  nonce?: number;
1196
1618
  value?: bigint;
1197
1619
  }): Promise<void> {
1198
- return contract.simulate.burnFrom([account, amount] as const, options) as Promise<void>;
1620
+ return contract.simulate.setReleaseAgent([addr] as const, options) as Promise<void>;
1199
1621
  },
1200
1622
  /**
1201
- * Simulate decreaseAllowance
1623
+ * Simulate mint
1202
1624
  * Returns gas estimate and result without sending transaction
1203
1625
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1204
1626
  */
1205
- async decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
1627
+ async mint(receiver: `0x${string}`, amount: bigint, options?: {
1206
1628
  accessList?: import('viem').AccessList;
1207
1629
  authorizationList?: import('viem').AuthorizationList;
1208
1630
  chain?: import('viem').Chain | null;
@@ -1213,15 +1635,15 @@ export class FetchToken_json {
1213
1635
  maxPriorityFeePerGas?: bigint;
1214
1636
  nonce?: number;
1215
1637
  value?: bigint;
1216
- }): Promise<boolean> {
1217
- return contract.simulate.decreaseAllowance([spender, subtractedValue] as const, options) as Promise<boolean>;
1638
+ }): Promise<void> {
1639
+ return contract.simulate.mint([receiver, amount] as const, options) as Promise<void>;
1218
1640
  },
1219
1641
  /**
1220
- * Simulate grantRole
1642
+ * Simulate burn
1221
1643
  * Returns gas estimate and result without sending transaction
1222
1644
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1223
1645
  */
1224
- async grantRole(role: `0x${string}`, account: `0x${string}`, options?: {
1646
+ async burn(burnAmount: bigint, options?: {
1225
1647
  accessList?: import('viem').AccessList;
1226
1648
  authorizationList?: import('viem').AuthorizationList;
1227
1649
  chain?: import('viem').Chain | null;
@@ -1233,14 +1655,14 @@ export class FetchToken_json {
1233
1655
  nonce?: number;
1234
1656
  value?: bigint;
1235
1657
  }): Promise<void> {
1236
- return contract.simulate.grantRole([role, account] as const, options) as Promise<void>;
1658
+ return contract.simulate.burn([burnAmount] as const, options) as Promise<void>;
1237
1659
  },
1238
1660
  /**
1239
- * Simulate increaseAllowance
1661
+ * Simulate setMintAgent
1240
1662
  * Returns gas estimate and result without sending transaction
1241
1663
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1242
1664
  */
1243
- async increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
1665
+ async setMintAgent(addr: `0x${string}`, state: boolean, options?: {
1244
1666
  accessList?: import('viem').AccessList;
1245
1667
  authorizationList?: import('viem').AuthorizationList;
1246
1668
  chain?: import('viem').Chain | null;
@@ -1251,15 +1673,15 @@ export class FetchToken_json {
1251
1673
  maxPriorityFeePerGas?: bigint;
1252
1674
  nonce?: number;
1253
1675
  value?: bigint;
1254
- }): Promise<boolean> {
1255
- return contract.simulate.increaseAllowance([spender, addedValue] as const, options) as Promise<boolean>;
1676
+ }): Promise<void> {
1677
+ return contract.simulate.setMintAgent([addr, state] as const, options) as Promise<void>;
1256
1678
  },
1257
1679
  /**
1258
- * Simulate mint
1680
+ * Simulate upgrade
1259
1681
  * Returns gas estimate and result without sending transaction
1260
1682
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1261
1683
  */
1262
- async mint(to: `0x${string}`, amount: bigint, options?: {
1684
+ async upgrade(value: bigint, options?: {
1263
1685
  accessList?: import('viem').AccessList;
1264
1686
  authorizationList?: import('viem').AuthorizationList;
1265
1687
  chain?: import('viem').Chain | null;
@@ -1271,14 +1693,14 @@ export class FetchToken_json {
1271
1693
  nonce?: number;
1272
1694
  value?: bigint;
1273
1695
  }): Promise<void> {
1274
- return contract.simulate.mint([to, amount] as const, options) as Promise<void>;
1696
+ return contract.simulate.upgrade([value] as const, options) as Promise<void>;
1275
1697
  },
1276
1698
  /**
1277
- * Simulate pause
1699
+ * Simulate setTokenInformation
1278
1700
  * Returns gas estimate and result without sending transaction
1279
1701
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1280
1702
  */
1281
- async pause(options?: {
1703
+ async setTokenInformation(_name: string, _symbol: string, options?: {
1282
1704
  accessList?: import('viem').AccessList;
1283
1705
  authorizationList?: import('viem').AuthorizationList;
1284
1706
  chain?: import('viem').Chain | null;
@@ -1290,14 +1712,14 @@ export class FetchToken_json {
1290
1712
  nonce?: number;
1291
1713
  value?: bigint;
1292
1714
  }): Promise<void> {
1293
- return contract.simulate.pause(options) as Promise<void>;
1715
+ return contract.simulate.setTokenInformation([_name, _symbol] as const, options) as Promise<void>;
1294
1716
  },
1295
1717
  /**
1296
- * Simulate renounceRole
1718
+ * Simulate releaseTokenTransfer
1297
1719
  * Returns gas estimate and result without sending transaction
1298
1720
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1299
1721
  */
1300
- async renounceRole(role: `0x${string}`, account: `0x${string}`, options?: {
1722
+ async releaseTokenTransfer(options?: {
1301
1723
  accessList?: import('viem').AccessList;
1302
1724
  authorizationList?: import('viem').AuthorizationList;
1303
1725
  chain?: import('viem').Chain | null;
@@ -1309,14 +1731,33 @@ export class FetchToken_json {
1309
1731
  nonce?: number;
1310
1732
  value?: bigint;
1311
1733
  }): Promise<void> {
1312
- return contract.simulate.renounceRole([role, account] as const, options) as Promise<void>;
1734
+ return contract.simulate.releaseTokenTransfer(options) as Promise<void>;
1735
+ },
1736
+ /**
1737
+ * Simulate decreaseApproval
1738
+ * Returns gas estimate and result without sending transaction
1739
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1740
+ */
1741
+ async decreaseApproval(_spender: `0x${string}`, _subtractedValue: bigint, options?: {
1742
+ accessList?: import('viem').AccessList;
1743
+ authorizationList?: import('viem').AuthorizationList;
1744
+ chain?: import('viem').Chain | null;
1745
+ dataSuffix?: `0x${string}`;
1746
+ gas?: bigint;
1747
+ gasPrice?: bigint;
1748
+ maxFeePerGas?: bigint;
1749
+ maxPriorityFeePerGas?: bigint;
1750
+ nonce?: number;
1751
+ value?: bigint;
1752
+ }): Promise<boolean> {
1753
+ return contract.simulate.decreaseApproval([_spender, _subtractedValue] as const, options) as Promise<boolean>;
1313
1754
  },
1314
1755
  /**
1315
- * Simulate revokeRole
1756
+ * Simulate transferToOwner
1316
1757
  * Returns gas estimate and result without sending transaction
1317
1758
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1318
1759
  */
1319
- async revokeRole(role: `0x${string}`, account: `0x${string}`, options?: {
1760
+ async transferToOwner(fromWhom: `0x${string}`, options?: {
1320
1761
  accessList?: import('viem').AccessList;
1321
1762
  authorizationList?: import('viem').AuthorizationList;
1322
1763
  chain?: import('viem').Chain | null;
@@ -1328,14 +1769,14 @@ export class FetchToken_json {
1328
1769
  nonce?: number;
1329
1770
  value?: bigint;
1330
1771
  }): Promise<void> {
1331
- return contract.simulate.revokeRole([role, account] as const, options) as Promise<void>;
1772
+ return contract.simulate.transferToOwner([fromWhom] as const, options) as Promise<void>;
1332
1773
  },
1333
1774
  /**
1334
1775
  * Simulate transfer
1335
1776
  * Returns gas estimate and result without sending transaction
1336
1777
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1337
1778
  */
1338
- async transfer(recipient: `0x${string}`, amount: bigint, options?: {
1779
+ async transfer(_to: `0x${string}`, _value: bigint, options?: {
1339
1780
  accessList?: import('viem').AccessList;
1340
1781
  authorizationList?: import('viem').AuthorizationList;
1341
1782
  chain?: import('viem').Chain | null;
@@ -1347,14 +1788,33 @@ export class FetchToken_json {
1347
1788
  nonce?: number;
1348
1789
  value?: bigint;
1349
1790
  }): Promise<boolean> {
1350
- return contract.simulate.transfer([recipient, amount] as const, options) as Promise<boolean>;
1791
+ return contract.simulate.transfer([_to, _value] as const, options) as Promise<boolean>;
1351
1792
  },
1352
1793
  /**
1353
- * Simulate transferFrom
1794
+ * Simulate tokensToBeReturned
1795
+ * Returns gas estimate and result without sending transaction
1796
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1797
+ */
1798
+ async tokensToBeReturned(token: `0x${string}`, options?: {
1799
+ accessList?: import('viem').AccessList;
1800
+ authorizationList?: import('viem').AuthorizationList;
1801
+ chain?: import('viem').Chain | null;
1802
+ dataSuffix?: `0x${string}`;
1803
+ gas?: bigint;
1804
+ gasPrice?: bigint;
1805
+ maxFeePerGas?: bigint;
1806
+ maxPriorityFeePerGas?: bigint;
1807
+ nonce?: number;
1808
+ value?: bigint;
1809
+ }): Promise<bigint> {
1810
+ return contract.simulate.tokensToBeReturned([token] as const, options) as Promise<bigint>;
1811
+ },
1812
+ /**
1813
+ * Simulate increaseApproval
1354
1814
  * Returns gas estimate and result without sending transaction
1355
1815
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1356
1816
  */
1357
- async transferFrom(sender: `0x${string}`, recipient: `0x${string}`, amount: bigint, options?: {
1817
+ async increaseApproval(_spender: `0x${string}`, _addedValue: bigint, options?: {
1358
1818
  accessList?: import('viem').AccessList;
1359
1819
  authorizationList?: import('viem').AuthorizationList;
1360
1820
  chain?: import('viem').Chain | null;
@@ -1366,14 +1826,52 @@ export class FetchToken_json {
1366
1826
  nonce?: number;
1367
1827
  value?: bigint;
1368
1828
  }): Promise<boolean> {
1369
- return contract.simulate.transferFrom([sender, recipient, amount] as const, options) as Promise<boolean>;
1829
+ return contract.simulate.increaseApproval([_spender, _addedValue] as const, options) as Promise<boolean>;
1830
+ },
1831
+ /**
1832
+ * Simulate setUpgradeAgent
1833
+ * Returns gas estimate and result without sending transaction
1834
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1835
+ */
1836
+ async setUpgradeAgent(agent: `0x${string}`, options?: {
1837
+ accessList?: import('viem').AccessList;
1838
+ authorizationList?: import('viem').AuthorizationList;
1839
+ chain?: import('viem').Chain | null;
1840
+ dataSuffix?: `0x${string}`;
1841
+ gas?: bigint;
1842
+ gasPrice?: bigint;
1843
+ maxFeePerGas?: bigint;
1844
+ maxPriorityFeePerGas?: bigint;
1845
+ nonce?: number;
1846
+ value?: bigint;
1847
+ }): Promise<void> {
1848
+ return contract.simulate.setUpgradeAgent([agent] as const, options) as Promise<void>;
1849
+ },
1850
+ /**
1851
+ * Simulate transferOwnership
1852
+ * Returns gas estimate and result without sending transaction
1853
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1854
+ */
1855
+ async transferOwnership(newOwner: `0x${string}`, options?: {
1856
+ accessList?: import('viem').AccessList;
1857
+ authorizationList?: import('viem').AuthorizationList;
1858
+ chain?: import('viem').Chain | null;
1859
+ dataSuffix?: `0x${string}`;
1860
+ gas?: bigint;
1861
+ gasPrice?: bigint;
1862
+ maxFeePerGas?: bigint;
1863
+ maxPriorityFeePerGas?: bigint;
1864
+ nonce?: number;
1865
+ value?: bigint;
1866
+ }): Promise<void> {
1867
+ return contract.simulate.transferOwnership([newOwner] as const, options) as Promise<void>;
1370
1868
  },
1371
1869
  /**
1372
- * Simulate unpause
1870
+ * Simulate setUpgradeMaster
1373
1871
  * Returns gas estimate and result without sending transaction
1374
1872
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1375
1873
  */
1376
- async unpause(options?: {
1874
+ async setUpgradeMaster(master: `0x${string}`, options?: {
1377
1875
  accessList?: import('viem').AccessList;
1378
1876
  authorizationList?: import('viem').AuthorizationList;
1379
1877
  chain?: import('viem').Chain | null;
@@ -1385,7 +1883,7 @@ export class FetchToken_json {
1385
1883
  nonce?: number;
1386
1884
  value?: bigint;
1387
1885
  }): Promise<void> {
1388
- return contract.simulate.unpause(options) as Promise<void>;
1886
+ return contract.simulate.setUpgradeMaster([master] as const, options) as Promise<void>;
1389
1887
  }
1390
1888
  };
1391
1889
  }
@@ -1405,17 +1903,17 @@ export class FetchToken_json {
1405
1903
  get watch() {
1406
1904
  return {
1407
1905
  /**
1408
- * Watch Approval events
1906
+ * Watch OwnerReclaim events
1409
1907
  * @param callback Function to call when event is emitted
1410
1908
  * @param filter Optional filter for indexed parameters
1411
1909
  * @returns Unwatch function to stop listening
1412
1910
  */
1413
- Approval: (callback: (event: { owner: `0x${string}`; spender: `0x${string}`; value: bigint }) => void, filter?: { owner: `0x${string}`; spender: `0x${string}` }) => {
1911
+ OwnerReclaim: (callback: (event: { fromWhom: `0x${string}`; amount: bigint }) => void) => {
1414
1912
  return this.publicClient.watchContractEvent({
1415
1913
  address: this.contractAddress,
1416
- abi: FetchToken_jsonAbi,
1417
- eventName: 'Approval',
1418
- args: filter,
1914
+ abi: AMLToken_jsonAbi,
1915
+ eventName: 'OwnerReclaim',
1916
+
1419
1917
  onLogs: (logs: any[]) => {
1420
1918
  logs.forEach((log: any) => {
1421
1919
  callback(log.args as any);
@@ -1424,16 +1922,16 @@ export class FetchToken_json {
1424
1922
  }) as () => void;
1425
1923
  },
1426
1924
  /**
1427
- * Watch Paused events
1925
+ * Watch UpdatedTokenInformation events
1428
1926
  * @param callback Function to call when event is emitted
1429
1927
  * @param filter Optional filter for indexed parameters
1430
1928
  * @returns Unwatch function to stop listening
1431
1929
  */
1432
- Paused: (callback: (event: { account: `0x${string}` }) => void) => {
1930
+ UpdatedTokenInformation: (callback: (event: { newName: string; newSymbol: string }) => void) => {
1433
1931
  return this.publicClient.watchContractEvent({
1434
1932
  address: this.contractAddress,
1435
- abi: FetchToken_jsonAbi,
1436
- eventName: 'Paused',
1933
+ abi: AMLToken_jsonAbi,
1934
+ eventName: 'UpdatedTokenInformation',
1437
1935
 
1438
1936
  onLogs: (logs: any[]) => {
1439
1937
  logs.forEach((log: any) => {
@@ -1443,16 +1941,16 @@ export class FetchToken_json {
1443
1941
  }) as () => void;
1444
1942
  },
1445
1943
  /**
1446
- * Watch RoleGranted events
1944
+ * Watch Upgrade events
1447
1945
  * @param callback Function to call when event is emitted
1448
1946
  * @param filter Optional filter for indexed parameters
1449
1947
  * @returns Unwatch function to stop listening
1450
1948
  */
1451
- RoleGranted: (callback: (event: { role: `0x${string}`; account: `0x${string}`; sender: `0x${string}` }) => void, filter?: { role: `0x${string}`; account: `0x${string}`; sender: `0x${string}` }) => {
1949
+ Upgrade: (callback: (event: { _from: `0x${string}`; _to: `0x${string}`; _value: bigint }) => void, filter?: { _from: `0x${string}`; _to: `0x${string}` }) => {
1452
1950
  return this.publicClient.watchContractEvent({
1453
1951
  address: this.contractAddress,
1454
- abi: FetchToken_jsonAbi,
1455
- eventName: 'RoleGranted',
1952
+ abi: AMLToken_jsonAbi,
1953
+ eventName: 'Upgrade',
1456
1954
  args: filter,
1457
1955
  onLogs: (logs: any[]) => {
1458
1956
  logs.forEach((log: any) => {
@@ -1462,16 +1960,92 @@ export class FetchToken_json {
1462
1960
  }) as () => void;
1463
1961
  },
1464
1962
  /**
1465
- * Watch RoleRevoked events
1963
+ * Watch UpgradeAgentSet events
1964
+ * @param callback Function to call when event is emitted
1965
+ * @param filter Optional filter for indexed parameters
1966
+ * @returns Unwatch function to stop listening
1967
+ */
1968
+ UpgradeAgentSet: (callback: (event: { agent: `0x${string}` }) => void) => {
1969
+ return this.publicClient.watchContractEvent({
1970
+ address: this.contractAddress,
1971
+ abi: AMLToken_jsonAbi,
1972
+ eventName: 'UpgradeAgentSet',
1973
+
1974
+ onLogs: (logs: any[]) => {
1975
+ logs.forEach((log: any) => {
1976
+ callback(log.args as any);
1977
+ });
1978
+ },
1979
+ }) as () => void;
1980
+ },
1981
+ /**
1982
+ * Watch MintingAgentChanged events
1983
+ * @param callback Function to call when event is emitted
1984
+ * @param filter Optional filter for indexed parameters
1985
+ * @returns Unwatch function to stop listening
1986
+ */
1987
+ MintingAgentChanged: (callback: (event: { addr: `0x${string}`; state: boolean }) => void) => {
1988
+ return this.publicClient.watchContractEvent({
1989
+ address: this.contractAddress,
1990
+ abi: AMLToken_jsonAbi,
1991
+ eventName: 'MintingAgentChanged',
1992
+
1993
+ onLogs: (logs: any[]) => {
1994
+ logs.forEach((log: any) => {
1995
+ callback(log.args as any);
1996
+ });
1997
+ },
1998
+ }) as () => void;
1999
+ },
2000
+ /**
2001
+ * Watch Minted events
2002
+ * @param callback Function to call when event is emitted
2003
+ * @param filter Optional filter for indexed parameters
2004
+ * @returns Unwatch function to stop listening
2005
+ */
2006
+ Minted: (callback: (event: { receiver: `0x${string}`; amount: bigint }) => void) => {
2007
+ return this.publicClient.watchContractEvent({
2008
+ address: this.contractAddress,
2009
+ abi: AMLToken_jsonAbi,
2010
+ eventName: 'Minted',
2011
+
2012
+ onLogs: (logs: any[]) => {
2013
+ logs.forEach((log: any) => {
2014
+ callback(log.args as any);
2015
+ });
2016
+ },
2017
+ }) as () => void;
2018
+ },
2019
+ /**
2020
+ * Watch Burned events
2021
+ * @param callback Function to call when event is emitted
2022
+ * @param filter Optional filter for indexed parameters
2023
+ * @returns Unwatch function to stop listening
2024
+ */
2025
+ Burned: (callback: (event: { burner: `0x${string}`; burnedAmount: bigint }) => void) => {
2026
+ return this.publicClient.watchContractEvent({
2027
+ address: this.contractAddress,
2028
+ abi: AMLToken_jsonAbi,
2029
+ eventName: 'Burned',
2030
+
2031
+ onLogs: (logs: any[]) => {
2032
+ logs.forEach((log: any) => {
2033
+ callback(log.args as any);
2034
+ });
2035
+ },
2036
+ }) as () => void;
2037
+ },
2038
+ /**
2039
+ * Watch OwnershipTransferred events
1466
2040
  * @param callback Function to call when event is emitted
1467
2041
  * @param filter Optional filter for indexed parameters
1468
2042
  * @returns Unwatch function to stop listening
1469
2043
  */
1470
- RoleRevoked: (callback: (event: { role: `0x${string}`; account: `0x${string}`; sender: `0x${string}` }) => void, filter?: { role: `0x${string}`; account: `0x${string}`; sender: `0x${string}` }) => {
2044
+ OwnershipTransferred: (callback: (event: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => void, filter?: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => {
1471
2045
  return this.publicClient.watchContractEvent({
1472
2046
  address: this.contractAddress,
1473
- abi: FetchToken_jsonAbi,
1474
- eventName: 'RoleRevoked',
2047
+ abi: AMLToken_jsonAbi,
2048
+ eventName: 'OwnershipTransferred',
1475
2049
  args: filter,
1476
2050
  onLogs: (logs: any[]) => {
1477
2051
  logs.forEach((log: any) => {
@@ -1481,16 +2055,16 @@ export class FetchToken_json {
1481
2055
  }) as () => void;
1482
2056
  },
1483
2057
  /**
1484
- * Watch Transfer events
2058
+ * Watch Approval events
1485
2059
  * @param callback Function to call when event is emitted
1486
2060
  * @param filter Optional filter for indexed parameters
1487
2061
  * @returns Unwatch function to stop listening
1488
2062
  */
1489
- Transfer: (callback: (event: { from: `0x${string}`; to: `0x${string}`; value: bigint }) => void, filter?: { from: `0x${string}`; to: `0x${string}` }) => {
2063
+ Approval: (callback: (event: { owner: `0x${string}`; spender: `0x${string}`; value: bigint }) => void, filter?: { owner: `0x${string}`; spender: `0x${string}` }) => {
1490
2064
  return this.publicClient.watchContractEvent({
1491
2065
  address: this.contractAddress,
1492
- abi: FetchToken_jsonAbi,
1493
- eventName: 'Transfer',
2066
+ abi: AMLToken_jsonAbi,
2067
+ eventName: 'Approval',
1494
2068
  args: filter,
1495
2069
  onLogs: (logs: any[]) => {
1496
2070
  logs.forEach((log: any) => {
@@ -1500,17 +2074,17 @@ export class FetchToken_json {
1500
2074
  }) as () => void;
1501
2075
  },
1502
2076
  /**
1503
- * Watch Unpaused events
2077
+ * Watch Transfer events
1504
2078
  * @param callback Function to call when event is emitted
1505
2079
  * @param filter Optional filter for indexed parameters
1506
2080
  * @returns Unwatch function to stop listening
1507
2081
  */
1508
- Unpaused: (callback: (event: { account: `0x${string}` }) => void) => {
2082
+ Transfer: (callback: (event: { from: `0x${string}`; to: `0x${string}`; value: bigint }) => void, filter?: { from: `0x${string}`; to: `0x${string}` }) => {
1509
2083
  return this.publicClient.watchContractEvent({
1510
2084
  address: this.contractAddress,
1511
- abi: FetchToken_jsonAbi,
1512
- eventName: 'Unpaused',
1513
-
2085
+ abi: AMLToken_jsonAbi,
2086
+ eventName: 'Transfer',
2087
+ args: filter,
1514
2088
  onLogs: (logs: any[]) => {
1515
2089
  logs.forEach((log: any) => {
1516
2090
  callback(log.args as any);