@gitmyabi/meta 1.0.0 → 1.0.2
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.
- package/README.md +3 -3
- package/contracts/{Metaverseconvergence_json.d.ts → Metadium_json.d.ts} +133 -543
- package/contracts/{Metaverseconvergence_json.js → Metadium_json.js} +151 -588
- package/contracts/{Metaverseconvergence_json.ts → Metadium_json.ts} +180 -736
- package/contracts/index.d.ts +2 -2
- package/contracts/index.js +4 -4
- package/contracts/index.ts +2 -2
- package/package.json +3 -3
|
@@ -2,11 +2,11 @@ import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType }
|
|
|
2
2
|
import { getContract } from 'viem';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Metadium_json ABI
|
|
6
6
|
*
|
|
7
7
|
* This ABI is typed using viem's type system for full type safety.
|
|
8
8
|
*/
|
|
9
|
-
export const
|
|
9
|
+
export const Metadium_jsonAbi = [
|
|
10
10
|
{
|
|
11
11
|
"constant": true,
|
|
12
12
|
"inputs": [],
|
|
@@ -25,11 +25,11 @@ export const Metaverseconvergence_jsonAbi = [
|
|
|
25
25
|
"constant": false,
|
|
26
26
|
"inputs": [
|
|
27
27
|
{
|
|
28
|
-
"name": "
|
|
28
|
+
"name": "_spender",
|
|
29
29
|
"type": "address"
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
|
-
"name": "
|
|
32
|
+
"name": "_value",
|
|
33
33
|
"type": "uint256"
|
|
34
34
|
}
|
|
35
35
|
],
|
|
@@ -62,15 +62,15 @@ export const Metaverseconvergence_jsonAbi = [
|
|
|
62
62
|
"constant": false,
|
|
63
63
|
"inputs": [
|
|
64
64
|
{
|
|
65
|
-
"name": "
|
|
65
|
+
"name": "from",
|
|
66
66
|
"type": "address"
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
|
-
"name": "
|
|
69
|
+
"name": "to",
|
|
70
70
|
"type": "address"
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
|
-
"name": "
|
|
73
|
+
"name": "value",
|
|
74
74
|
"type": "uint256"
|
|
75
75
|
}
|
|
76
76
|
],
|
|
@@ -88,11 +88,11 @@ export const Metaverseconvergence_jsonAbi = [
|
|
|
88
88
|
{
|
|
89
89
|
"constant": true,
|
|
90
90
|
"inputs": [],
|
|
91
|
-
"name": "
|
|
91
|
+
"name": "INITIAL_SUPPLY",
|
|
92
92
|
"outputs": [
|
|
93
93
|
{
|
|
94
94
|
"name": "",
|
|
95
|
-
"type": "
|
|
95
|
+
"type": "uint256"
|
|
96
96
|
}
|
|
97
97
|
],
|
|
98
98
|
"payable": false,
|
|
@@ -102,11 +102,11 @@ export const Metaverseconvergence_jsonAbi = [
|
|
|
102
102
|
{
|
|
103
103
|
"constant": true,
|
|
104
104
|
"inputs": [],
|
|
105
|
-
"name": "
|
|
105
|
+
"name": "decimals",
|
|
106
106
|
"outputs": [
|
|
107
107
|
{
|
|
108
108
|
"name": "",
|
|
109
|
-
"type": "
|
|
109
|
+
"type": "uint8"
|
|
110
110
|
}
|
|
111
111
|
],
|
|
112
112
|
"payable": false,
|
|
@@ -117,79 +117,43 @@ export const Metaverseconvergence_jsonAbi = [
|
|
|
117
117
|
"constant": false,
|
|
118
118
|
"inputs": [
|
|
119
119
|
{
|
|
120
|
-
"name": "
|
|
121
|
-
"type": "address"
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
"name": "addedValue",
|
|
120
|
+
"name": "_value",
|
|
125
121
|
"type": "uint256"
|
|
126
122
|
}
|
|
127
123
|
],
|
|
128
|
-
"name": "
|
|
129
|
-
"outputs": [
|
|
130
|
-
{
|
|
131
|
-
"name": "",
|
|
132
|
-
"type": "bool"
|
|
133
|
-
}
|
|
134
|
-
],
|
|
135
|
-
"payable": false,
|
|
136
|
-
"stateMutability": "nonpayable",
|
|
137
|
-
"type": "function"
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
"constant": false,
|
|
141
|
-
"inputs": [],
|
|
142
|
-
"name": "unpause",
|
|
124
|
+
"name": "burn",
|
|
143
125
|
"outputs": [],
|
|
144
126
|
"payable": false,
|
|
145
127
|
"stateMutability": "nonpayable",
|
|
146
128
|
"type": "function"
|
|
147
129
|
},
|
|
148
130
|
{
|
|
149
|
-
"constant":
|
|
150
|
-
"inputs": [
|
|
131
|
+
"constant": true,
|
|
132
|
+
"inputs": [],
|
|
133
|
+
"name": "transferEnabled",
|
|
134
|
+
"outputs": [
|
|
151
135
|
{
|
|
152
|
-
"name": "
|
|
153
|
-
"type": "
|
|
136
|
+
"name": "",
|
|
137
|
+
"type": "bool"
|
|
154
138
|
}
|
|
155
139
|
],
|
|
156
|
-
"name": "unfreeze",
|
|
157
|
-
"outputs": [],
|
|
158
140
|
"payable": false,
|
|
159
|
-
"stateMutability": "
|
|
141
|
+
"stateMutability": "view",
|
|
160
142
|
"type": "function"
|
|
161
143
|
},
|
|
162
144
|
{
|
|
163
|
-
"constant":
|
|
145
|
+
"constant": false,
|
|
164
146
|
"inputs": [
|
|
165
147
|
{
|
|
166
|
-
"name": "
|
|
148
|
+
"name": "_spender",
|
|
167
149
|
"type": "address"
|
|
168
150
|
},
|
|
169
151
|
{
|
|
170
|
-
"name": "
|
|
152
|
+
"name": "_subtractedValue",
|
|
171
153
|
"type": "uint256"
|
|
172
154
|
}
|
|
173
155
|
],
|
|
174
|
-
"name": "
|
|
175
|
-
"outputs": [
|
|
176
|
-
{
|
|
177
|
-
"name": "",
|
|
178
|
-
"type": "uint256"
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
"name": "",
|
|
182
|
-
"type": "uint256"
|
|
183
|
-
}
|
|
184
|
-
],
|
|
185
|
-
"payable": false,
|
|
186
|
-
"stateMutability": "view",
|
|
187
|
-
"type": "function"
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
"constant": true,
|
|
191
|
-
"inputs": [],
|
|
192
|
-
"name": "paused",
|
|
156
|
+
"name": "decreaseApproval",
|
|
193
157
|
"outputs": [
|
|
194
158
|
{
|
|
195
159
|
"name": "",
|
|
@@ -197,14 +161,14 @@ export const Metaverseconvergence_jsonAbi = [
|
|
|
197
161
|
}
|
|
198
162
|
],
|
|
199
163
|
"payable": false,
|
|
200
|
-
"stateMutability": "
|
|
164
|
+
"stateMutability": "nonpayable",
|
|
201
165
|
"type": "function"
|
|
202
166
|
},
|
|
203
167
|
{
|
|
204
168
|
"constant": true,
|
|
205
169
|
"inputs": [
|
|
206
170
|
{
|
|
207
|
-
"name": "
|
|
171
|
+
"name": "_owner",
|
|
208
172
|
"type": "address"
|
|
209
173
|
}
|
|
210
174
|
],
|
|
@@ -219,47 +183,6 @@ export const Metaverseconvergence_jsonAbi = [
|
|
|
219
183
|
"stateMutability": "view",
|
|
220
184
|
"type": "function"
|
|
221
185
|
},
|
|
222
|
-
{
|
|
223
|
-
"constant": false,
|
|
224
|
-
"inputs": [
|
|
225
|
-
{
|
|
226
|
-
"name": "_holder",
|
|
227
|
-
"type": "address"
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
"name": "i",
|
|
231
|
-
"type": "uint256"
|
|
232
|
-
}
|
|
233
|
-
],
|
|
234
|
-
"name": "unlock",
|
|
235
|
-
"outputs": [],
|
|
236
|
-
"payable": false,
|
|
237
|
-
"stateMutability": "nonpayable",
|
|
238
|
-
"type": "function"
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
"constant": false,
|
|
242
|
-
"inputs": [],
|
|
243
|
-
"name": "pause",
|
|
244
|
-
"outputs": [],
|
|
245
|
-
"payable": false,
|
|
246
|
-
"stateMutability": "nonpayable",
|
|
247
|
-
"type": "function"
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
"constant": false,
|
|
251
|
-
"inputs": [
|
|
252
|
-
{
|
|
253
|
-
"name": "_target",
|
|
254
|
-
"type": "address"
|
|
255
|
-
}
|
|
256
|
-
],
|
|
257
|
-
"name": "freeze",
|
|
258
|
-
"outputs": [],
|
|
259
|
-
"payable": false,
|
|
260
|
-
"stateMutability": "nonpayable",
|
|
261
|
-
"type": "function"
|
|
262
|
-
},
|
|
263
186
|
{
|
|
264
187
|
"constant": true,
|
|
265
188
|
"inputs": [],
|
|
@@ -292,33 +215,15 @@ export const Metaverseconvergence_jsonAbi = [
|
|
|
292
215
|
"constant": false,
|
|
293
216
|
"inputs": [
|
|
294
217
|
{
|
|
295
|
-
"name": "
|
|
296
|
-
"type": "address"
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
"name": "_value",
|
|
300
|
-
"type": "uint256"
|
|
301
|
-
}
|
|
302
|
-
],
|
|
303
|
-
"name": "burn",
|
|
304
|
-
"outputs": [],
|
|
305
|
-
"payable": false,
|
|
306
|
-
"stateMutability": "nonpayable",
|
|
307
|
-
"type": "function"
|
|
308
|
-
},
|
|
309
|
-
{
|
|
310
|
-
"constant": false,
|
|
311
|
-
"inputs": [
|
|
312
|
-
{
|
|
313
|
-
"name": "spender",
|
|
218
|
+
"name": "to",
|
|
314
219
|
"type": "address"
|
|
315
220
|
},
|
|
316
221
|
{
|
|
317
|
-
"name": "
|
|
222
|
+
"name": "value",
|
|
318
223
|
"type": "uint256"
|
|
319
224
|
}
|
|
320
225
|
],
|
|
321
|
-
"name": "
|
|
226
|
+
"name": "transfer",
|
|
322
227
|
"outputs": [
|
|
323
228
|
{
|
|
324
229
|
"name": "",
|
|
@@ -331,67 +236,26 @@ export const Metaverseconvergence_jsonAbi = [
|
|
|
331
236
|
},
|
|
332
237
|
{
|
|
333
238
|
"constant": false,
|
|
334
|
-
"inputs": [
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
"type": "address"
|
|
338
|
-
},
|
|
339
|
-
{
|
|
340
|
-
"name": "_value",
|
|
341
|
-
"type": "uint256"
|
|
342
|
-
}
|
|
343
|
-
],
|
|
344
|
-
"name": "transfer",
|
|
345
|
-
"outputs": [
|
|
346
|
-
{
|
|
347
|
-
"name": "",
|
|
348
|
-
"type": "bool"
|
|
349
|
-
}
|
|
350
|
-
],
|
|
239
|
+
"inputs": [],
|
|
240
|
+
"name": "disableTransfer",
|
|
241
|
+
"outputs": [],
|
|
351
242
|
"payable": false,
|
|
352
243
|
"stateMutability": "nonpayable",
|
|
353
244
|
"type": "function"
|
|
354
245
|
},
|
|
355
|
-
{
|
|
356
|
-
"constant": true,
|
|
357
|
-
"inputs": [
|
|
358
|
-
{
|
|
359
|
-
"name": "owner",
|
|
360
|
-
"type": "address"
|
|
361
|
-
},
|
|
362
|
-
{
|
|
363
|
-
"name": "spender",
|
|
364
|
-
"type": "address"
|
|
365
|
-
}
|
|
366
|
-
],
|
|
367
|
-
"name": "allowance",
|
|
368
|
-
"outputs": [
|
|
369
|
-
{
|
|
370
|
-
"name": "",
|
|
371
|
-
"type": "uint256"
|
|
372
|
-
}
|
|
373
|
-
],
|
|
374
|
-
"payable": false,
|
|
375
|
-
"stateMutability": "view",
|
|
376
|
-
"type": "function"
|
|
377
|
-
},
|
|
378
246
|
{
|
|
379
247
|
"constant": false,
|
|
380
248
|
"inputs": [
|
|
381
249
|
{
|
|
382
|
-
"name": "
|
|
250
|
+
"name": "_spender",
|
|
383
251
|
"type": "address"
|
|
384
252
|
},
|
|
385
253
|
{
|
|
386
|
-
"name": "
|
|
387
|
-
"type": "uint256"
|
|
388
|
-
},
|
|
389
|
-
{
|
|
390
|
-
"name": "_releaseTime",
|
|
254
|
+
"name": "_addedValue",
|
|
391
255
|
"type": "uint256"
|
|
392
256
|
}
|
|
393
257
|
],
|
|
394
|
-
"name": "
|
|
258
|
+
"name": "increaseApproval",
|
|
395
259
|
"outputs": [
|
|
396
260
|
{
|
|
397
261
|
"name": "",
|
|
@@ -406,11 +270,15 @@ export const Metaverseconvergence_jsonAbi = [
|
|
|
406
270
|
"constant": true,
|
|
407
271
|
"inputs": [
|
|
408
272
|
{
|
|
409
|
-
"name": "
|
|
273
|
+
"name": "_owner",
|
|
274
|
+
"type": "address"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"name": "_spender",
|
|
410
278
|
"type": "address"
|
|
411
279
|
}
|
|
412
280
|
],
|
|
413
|
-
"name": "
|
|
281
|
+
"name": "allowance",
|
|
414
282
|
"outputs": [
|
|
415
283
|
{
|
|
416
284
|
"name": "",
|
|
@@ -423,50 +291,18 @@ export const Metaverseconvergence_jsonAbi = [
|
|
|
423
291
|
},
|
|
424
292
|
{
|
|
425
293
|
"constant": false,
|
|
426
|
-
"inputs": [
|
|
427
|
-
|
|
428
|
-
"name": "_holder",
|
|
429
|
-
"type": "address"
|
|
430
|
-
},
|
|
431
|
-
{
|
|
432
|
-
"name": "_amount",
|
|
433
|
-
"type": "uint256"
|
|
434
|
-
},
|
|
435
|
-
{
|
|
436
|
-
"name": "_releaseTime",
|
|
437
|
-
"type": "uint256"
|
|
438
|
-
}
|
|
439
|
-
],
|
|
440
|
-
"name": "lock",
|
|
294
|
+
"inputs": [],
|
|
295
|
+
"name": "enableTransfer",
|
|
441
296
|
"outputs": [],
|
|
442
297
|
"payable": false,
|
|
443
298
|
"stateMutability": "nonpayable",
|
|
444
299
|
"type": "function"
|
|
445
300
|
},
|
|
446
|
-
{
|
|
447
|
-
"constant": true,
|
|
448
|
-
"inputs": [
|
|
449
|
-
{
|
|
450
|
-
"name": "_target",
|
|
451
|
-
"type": "address"
|
|
452
|
-
}
|
|
453
|
-
],
|
|
454
|
-
"name": "isFrozen",
|
|
455
|
-
"outputs": [
|
|
456
|
-
{
|
|
457
|
-
"name": "",
|
|
458
|
-
"type": "bool"
|
|
459
|
-
}
|
|
460
|
-
],
|
|
461
|
-
"payable": false,
|
|
462
|
-
"stateMutability": "view",
|
|
463
|
-
"type": "function"
|
|
464
|
-
},
|
|
465
301
|
{
|
|
466
302
|
"constant": false,
|
|
467
303
|
"inputs": [
|
|
468
304
|
{
|
|
469
|
-
"name": "
|
|
305
|
+
"name": "newOwner",
|
|
470
306
|
"type": "address"
|
|
471
307
|
}
|
|
472
308
|
],
|
|
@@ -486,41 +322,17 @@ export const Metaverseconvergence_jsonAbi = [
|
|
|
486
322
|
"anonymous": false,
|
|
487
323
|
"inputs": [
|
|
488
324
|
{
|
|
489
|
-
"indexed":
|
|
490
|
-
"name": "
|
|
491
|
-
"type": "address"
|
|
492
|
-
}
|
|
493
|
-
],
|
|
494
|
-
"name": "OwnershipRenounced",
|
|
495
|
-
"type": "event"
|
|
496
|
-
},
|
|
497
|
-
{
|
|
498
|
-
"anonymous": false,
|
|
499
|
-
"inputs": [
|
|
500
|
-
{
|
|
501
|
-
"indexed": true,
|
|
502
|
-
"name": "previousOwner",
|
|
325
|
+
"indexed": false,
|
|
326
|
+
"name": "burner",
|
|
503
327
|
"type": "address"
|
|
504
328
|
},
|
|
505
329
|
{
|
|
506
|
-
"indexed":
|
|
507
|
-
"name": "
|
|
508
|
-
"type": "
|
|
330
|
+
"indexed": false,
|
|
331
|
+
"name": "value",
|
|
332
|
+
"type": "uint256"
|
|
509
333
|
}
|
|
510
334
|
],
|
|
511
|
-
"name": "
|
|
512
|
-
"type": "event"
|
|
513
|
-
},
|
|
514
|
-
{
|
|
515
|
-
"anonymous": false,
|
|
516
|
-
"inputs": [],
|
|
517
|
-
"name": "Pause",
|
|
518
|
-
"type": "event"
|
|
519
|
-
},
|
|
520
|
-
{
|
|
521
|
-
"anonymous": false,
|
|
522
|
-
"inputs": [],
|
|
523
|
-
"name": "Unpause",
|
|
335
|
+
"name": "Burn",
|
|
524
336
|
"type": "event"
|
|
525
337
|
},
|
|
526
338
|
{
|
|
@@ -528,11 +340,11 @@ export const Metaverseconvergence_jsonAbi = [
|
|
|
528
340
|
"inputs": [
|
|
529
341
|
{
|
|
530
342
|
"indexed": false,
|
|
531
|
-
"name": "
|
|
343
|
+
"name": "owner",
|
|
532
344
|
"type": "address"
|
|
533
345
|
}
|
|
534
346
|
],
|
|
535
|
-
"name": "
|
|
347
|
+
"name": "TransferEnabled",
|
|
536
348
|
"type": "event"
|
|
537
349
|
},
|
|
538
350
|
{
|
|
@@ -540,11 +352,11 @@ export const Metaverseconvergence_jsonAbi = [
|
|
|
540
352
|
"inputs": [
|
|
541
353
|
{
|
|
542
354
|
"indexed": false,
|
|
543
|
-
"name": "
|
|
355
|
+
"name": "owner",
|
|
544
356
|
"type": "address"
|
|
545
357
|
}
|
|
546
358
|
],
|
|
547
|
-
"name": "
|
|
359
|
+
"name": "TransferDisabled",
|
|
548
360
|
"type": "event"
|
|
549
361
|
},
|
|
550
362
|
{
|
|
@@ -552,16 +364,16 @@ export const Metaverseconvergence_jsonAbi = [
|
|
|
552
364
|
"inputs": [
|
|
553
365
|
{
|
|
554
366
|
"indexed": true,
|
|
555
|
-
"name": "
|
|
367
|
+
"name": "previousOwner",
|
|
556
368
|
"type": "address"
|
|
557
369
|
},
|
|
558
370
|
{
|
|
559
|
-
"indexed":
|
|
560
|
-
"name": "
|
|
561
|
-
"type": "
|
|
371
|
+
"indexed": true,
|
|
372
|
+
"name": "newOwner",
|
|
373
|
+
"type": "address"
|
|
562
374
|
}
|
|
563
375
|
],
|
|
564
|
-
"name": "
|
|
376
|
+
"name": "OwnershipTransferred",
|
|
565
377
|
"type": "event"
|
|
566
378
|
},
|
|
567
379
|
{
|
|
@@ -569,29 +381,12 @@ export const Metaverseconvergence_jsonAbi = [
|
|
|
569
381
|
"inputs": [
|
|
570
382
|
{
|
|
571
383
|
"indexed": true,
|
|
572
|
-
"name": "
|
|
384
|
+
"name": "owner",
|
|
573
385
|
"type": "address"
|
|
574
386
|
},
|
|
575
|
-
{
|
|
576
|
-
"indexed": false,
|
|
577
|
-
"name": "value",
|
|
578
|
-
"type": "uint256"
|
|
579
|
-
},
|
|
580
|
-
{
|
|
581
|
-
"indexed": false,
|
|
582
|
-
"name": "releaseTime",
|
|
583
|
-
"type": "uint256"
|
|
584
|
-
}
|
|
585
|
-
],
|
|
586
|
-
"name": "Lock",
|
|
587
|
-
"type": "event"
|
|
588
|
-
},
|
|
589
|
-
{
|
|
590
|
-
"anonymous": false,
|
|
591
|
-
"inputs": [
|
|
592
387
|
{
|
|
593
388
|
"indexed": true,
|
|
594
|
-
"name": "
|
|
389
|
+
"name": "spender",
|
|
595
390
|
"type": "address"
|
|
596
391
|
},
|
|
597
392
|
{
|
|
@@ -600,7 +395,7 @@ export const Metaverseconvergence_jsonAbi = [
|
|
|
600
395
|
"type": "uint256"
|
|
601
396
|
}
|
|
602
397
|
],
|
|
603
|
-
"name": "
|
|
398
|
+
"name": "Approval",
|
|
604
399
|
"type": "event"
|
|
605
400
|
},
|
|
606
401
|
{
|
|
@@ -624,45 +419,23 @@ export const Metaverseconvergence_jsonAbi = [
|
|
|
624
419
|
],
|
|
625
420
|
"name": "Transfer",
|
|
626
421
|
"type": "event"
|
|
627
|
-
},
|
|
628
|
-
{
|
|
629
|
-
"anonymous": false,
|
|
630
|
-
"inputs": [
|
|
631
|
-
{
|
|
632
|
-
"indexed": true,
|
|
633
|
-
"name": "owner",
|
|
634
|
-
"type": "address"
|
|
635
|
-
},
|
|
636
|
-
{
|
|
637
|
-
"indexed": true,
|
|
638
|
-
"name": "spender",
|
|
639
|
-
"type": "address"
|
|
640
|
-
},
|
|
641
|
-
{
|
|
642
|
-
"indexed": false,
|
|
643
|
-
"name": "value",
|
|
644
|
-
"type": "uint256"
|
|
645
|
-
}
|
|
646
|
-
],
|
|
647
|
-
"name": "Approval",
|
|
648
|
-
"type": "event"
|
|
649
422
|
}
|
|
650
423
|
] as const satisfies Abi;
|
|
651
424
|
|
|
652
425
|
/**
|
|
653
|
-
* Type-safe ABI for
|
|
426
|
+
* Type-safe ABI for Metadium_json
|
|
654
427
|
*/
|
|
655
|
-
export type
|
|
428
|
+
export type Metadium_jsonAbi = typeof Metadium_jsonAbi;
|
|
656
429
|
|
|
657
430
|
/**
|
|
658
|
-
* Contract instance type for
|
|
431
|
+
* Contract instance type for Metadium_json
|
|
659
432
|
*/
|
|
660
433
|
// Use any for contract type to avoid complex viem type issues
|
|
661
434
|
// The runtime behavior is type-safe through viem's ABI typing
|
|
662
|
-
export type
|
|
435
|
+
export type Metadium_jsonContract = any;
|
|
663
436
|
|
|
664
437
|
/**
|
|
665
|
-
*
|
|
438
|
+
* Metadium_json Contract Class
|
|
666
439
|
*
|
|
667
440
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
668
441
|
*
|
|
@@ -670,12 +443,12 @@ export type Metaverseconvergence_jsonContract = any;
|
|
|
670
443
|
* ```typescript
|
|
671
444
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
672
445
|
* import { mainnet } from 'viem/chains';
|
|
673
|
-
* import {
|
|
446
|
+
* import { Metadium_json } from 'Metadium_json';
|
|
674
447
|
*
|
|
675
448
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
676
449
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
677
450
|
*
|
|
678
|
-
* const contract = new
|
|
451
|
+
* const contract = new Metadium_json('0x...', { publicClient, walletClient });
|
|
679
452
|
*
|
|
680
453
|
* // Read functions
|
|
681
454
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -693,8 +466,8 @@ export type Metaverseconvergence_jsonContract = any;
|
|
|
693
466
|
* });
|
|
694
467
|
* ```
|
|
695
468
|
*/
|
|
696
|
-
export class
|
|
697
|
-
private contract:
|
|
469
|
+
export class Metadium_json {
|
|
470
|
+
private contract: Metadium_jsonContract;
|
|
698
471
|
private contractAddress: Address;
|
|
699
472
|
private publicClient: PublicClient;
|
|
700
473
|
|
|
@@ -709,7 +482,7 @@ export class Metaverseconvergence_json {
|
|
|
709
482
|
this.publicClient = clients.publicClient;
|
|
710
483
|
this.contract = getContract({
|
|
711
484
|
address,
|
|
712
|
-
abi:
|
|
485
|
+
abi: Metadium_jsonAbi,
|
|
713
486
|
client: {
|
|
714
487
|
public: clients.publicClient,
|
|
715
488
|
wallet: clients.walletClient,
|
|
@@ -727,7 +500,7 @@ export class Metaverseconvergence_json {
|
|
|
727
500
|
/**
|
|
728
501
|
* Get the underlying viem contract instance
|
|
729
502
|
*/
|
|
730
|
-
getContract():
|
|
503
|
+
getContract(): Metadium_jsonContract {
|
|
731
504
|
return this.contract;
|
|
732
505
|
}
|
|
733
506
|
|
|
@@ -748,206 +521,67 @@ export class Metaverseconvergence_json {
|
|
|
748
521
|
}
|
|
749
522
|
|
|
750
523
|
/**
|
|
751
|
-
*
|
|
752
|
-
* view
|
|
753
|
-
*/
|
|
754
|
-
async decimals(): Promise<bigint> {
|
|
755
|
-
return this.contract.read.decimals() as Promise<bigint>;
|
|
756
|
-
}
|
|
757
|
-
|
|
758
|
-
/**
|
|
759
|
-
* initialSupply
|
|
760
|
-
* view
|
|
761
|
-
*/
|
|
762
|
-
async initialSupply(): Promise<bigint> {
|
|
763
|
-
return this.contract.read.initialSupply() as Promise<bigint>;
|
|
764
|
-
}
|
|
765
|
-
|
|
766
|
-
/**
|
|
767
|
-
* lockState
|
|
768
|
-
* view
|
|
769
|
-
*/
|
|
770
|
-
async lockState(_holder: `0x${string}`, _idx: bigint): Promise<[bigint, bigint]> {
|
|
771
|
-
return this.contract.read.lockState([_holder, _idx] as const) as Promise<[bigint, bigint]>;
|
|
772
|
-
}
|
|
773
|
-
|
|
774
|
-
/**
|
|
775
|
-
* paused
|
|
776
|
-
* view
|
|
777
|
-
*/
|
|
778
|
-
async paused(): Promise<boolean> {
|
|
779
|
-
return this.contract.read.paused() as Promise<boolean>;
|
|
780
|
-
}
|
|
781
|
-
|
|
782
|
-
/**
|
|
783
|
-
* balanceOf
|
|
784
|
-
* view
|
|
785
|
-
*/
|
|
786
|
-
async balanceOf(_holder: `0x${string}`): Promise<bigint> {
|
|
787
|
-
return this.contract.read.balanceOf([_holder] as const) as Promise<bigint>;
|
|
788
|
-
}
|
|
789
|
-
|
|
790
|
-
/**
|
|
791
|
-
* owner
|
|
792
|
-
* view
|
|
793
|
-
*/
|
|
794
|
-
async owner(): Promise<`0x${string}`> {
|
|
795
|
-
return this.contract.read.owner() as Promise<`0x${string}`>;
|
|
796
|
-
}
|
|
797
|
-
|
|
798
|
-
/**
|
|
799
|
-
* symbol
|
|
800
|
-
* view
|
|
801
|
-
*/
|
|
802
|
-
async symbol(): Promise<string> {
|
|
803
|
-
return this.contract.read.symbol() as Promise<string>;
|
|
804
|
-
}
|
|
805
|
-
|
|
806
|
-
/**
|
|
807
|
-
* allowance
|
|
808
|
-
* view
|
|
809
|
-
*/
|
|
810
|
-
async allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint> {
|
|
811
|
-
return this.contract.read.allowance([owner, spender] as const) as Promise<bigint>;
|
|
812
|
-
}
|
|
813
|
-
|
|
814
|
-
/**
|
|
815
|
-
* lockCount
|
|
524
|
+
* INITIAL_SUPPLY
|
|
816
525
|
* view
|
|
817
526
|
*/
|
|
818
|
-
async
|
|
819
|
-
return this.contract.read.
|
|
527
|
+
async INITIAL_SUPPLY(): Promise<bigint> {
|
|
528
|
+
return this.contract.read.INITIAL_SUPPLY() as Promise<bigint>;
|
|
820
529
|
}
|
|
821
530
|
|
|
822
531
|
/**
|
|
823
|
-
*
|
|
532
|
+
* decimals
|
|
824
533
|
* view
|
|
825
534
|
*/
|
|
826
|
-
async
|
|
827
|
-
return this.contract.read.
|
|
828
|
-
}
|
|
829
|
-
|
|
830
|
-
/**
|
|
831
|
-
* approve
|
|
832
|
-
* nonpayable
|
|
833
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
834
|
-
*/
|
|
835
|
-
async approve(spender: `0x${string}`, value: bigint, options?: {
|
|
836
|
-
accessList?: import('viem').AccessList;
|
|
837
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
838
|
-
chain?: import('viem').Chain | null;
|
|
839
|
-
dataSuffix?: `0x${string}`;
|
|
840
|
-
gas?: bigint;
|
|
841
|
-
gasPrice?: bigint;
|
|
842
|
-
maxFeePerGas?: bigint;
|
|
843
|
-
maxPriorityFeePerGas?: bigint;
|
|
844
|
-
nonce?: number;
|
|
845
|
-
value?: bigint;
|
|
846
|
-
}): Promise<`0x${string}`> {
|
|
847
|
-
if (!this.contract.write) {
|
|
848
|
-
throw new Error('Wallet client is required for write operations');
|
|
849
|
-
}
|
|
850
|
-
return this.contract.write.approve([spender, value] as const, options) as Promise<`0x${string}`>;
|
|
851
|
-
}
|
|
852
|
-
|
|
853
|
-
/**
|
|
854
|
-
* transferFrom
|
|
855
|
-
* nonpayable
|
|
856
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
857
|
-
*/
|
|
858
|
-
async transferFrom(_from: `0x${string}`, _to: `0x${string}`, _value: bigint, options?: {
|
|
859
|
-
accessList?: import('viem').AccessList;
|
|
860
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
861
|
-
chain?: import('viem').Chain | null;
|
|
862
|
-
dataSuffix?: `0x${string}`;
|
|
863
|
-
gas?: bigint;
|
|
864
|
-
gasPrice?: bigint;
|
|
865
|
-
maxFeePerGas?: bigint;
|
|
866
|
-
maxPriorityFeePerGas?: bigint;
|
|
867
|
-
nonce?: number;
|
|
868
|
-
value?: bigint;
|
|
869
|
-
}): Promise<`0x${string}`> {
|
|
870
|
-
if (!this.contract.write) {
|
|
871
|
-
throw new Error('Wallet client is required for write operations');
|
|
872
|
-
}
|
|
873
|
-
return this.contract.write.transferFrom([_from, _to, _value] as const, options) as Promise<`0x${string}`>;
|
|
535
|
+
async decimals(): Promise<bigint> {
|
|
536
|
+
return this.contract.read.decimals() as Promise<bigint>;
|
|
874
537
|
}
|
|
875
538
|
|
|
876
539
|
/**
|
|
877
|
-
*
|
|
878
|
-
*
|
|
879
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
540
|
+
* transferEnabled
|
|
541
|
+
* view
|
|
880
542
|
*/
|
|
881
|
-
async
|
|
882
|
-
|
|
883
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
884
|
-
chain?: import('viem').Chain | null;
|
|
885
|
-
dataSuffix?: `0x${string}`;
|
|
886
|
-
gas?: bigint;
|
|
887
|
-
gasPrice?: bigint;
|
|
888
|
-
maxFeePerGas?: bigint;
|
|
889
|
-
maxPriorityFeePerGas?: bigint;
|
|
890
|
-
nonce?: number;
|
|
891
|
-
value?: bigint;
|
|
892
|
-
}): Promise<`0x${string}`> {
|
|
893
|
-
if (!this.contract.write) {
|
|
894
|
-
throw new Error('Wallet client is required for write operations');
|
|
895
|
-
}
|
|
896
|
-
return this.contract.write.increaseAllowance([spender, addedValue] as const, options) as Promise<`0x${string}`>;
|
|
543
|
+
async transferEnabled(): Promise<boolean> {
|
|
544
|
+
return this.contract.read.transferEnabled() as Promise<boolean>;
|
|
897
545
|
}
|
|
898
546
|
|
|
899
547
|
/**
|
|
900
|
-
*
|
|
901
|
-
*
|
|
902
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
548
|
+
* balanceOf
|
|
549
|
+
* view
|
|
903
550
|
*/
|
|
904
|
-
async
|
|
905
|
-
|
|
906
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
907
|
-
chain?: import('viem').Chain | null;
|
|
908
|
-
dataSuffix?: `0x${string}`;
|
|
909
|
-
gas?: bigint;
|
|
910
|
-
gasPrice?: bigint;
|
|
911
|
-
maxFeePerGas?: bigint;
|
|
912
|
-
maxPriorityFeePerGas?: bigint;
|
|
913
|
-
nonce?: number;
|
|
914
|
-
value?: bigint;
|
|
915
|
-
}): Promise<`0x${string}`> {
|
|
916
|
-
if (!this.contract.write) {
|
|
917
|
-
throw new Error('Wallet client is required for write operations');
|
|
918
|
-
}
|
|
919
|
-
return this.contract.write.unpause(options) as Promise<`0x${string}`>;
|
|
551
|
+
async balanceOf(_owner: `0x${string}`): Promise<bigint> {
|
|
552
|
+
return this.contract.read.balanceOf([_owner] as const) as Promise<bigint>;
|
|
920
553
|
}
|
|
921
554
|
|
|
922
555
|
/**
|
|
923
|
-
*
|
|
924
|
-
*
|
|
925
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
556
|
+
* owner
|
|
557
|
+
* view
|
|
926
558
|
*/
|
|
927
|
-
async
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
559
|
+
async owner(): Promise<`0x${string}`> {
|
|
560
|
+
return this.contract.read.owner() as Promise<`0x${string}`>;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
/**
|
|
564
|
+
* symbol
|
|
565
|
+
* view
|
|
566
|
+
*/
|
|
567
|
+
async symbol(): Promise<string> {
|
|
568
|
+
return this.contract.read.symbol() as Promise<string>;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
/**
|
|
572
|
+
* allowance
|
|
573
|
+
* view
|
|
574
|
+
*/
|
|
575
|
+
async allowance(_owner: `0x${string}`, _spender: `0x${string}`): Promise<bigint> {
|
|
576
|
+
return this.contract.read.allowance([_owner, _spender] as const) as Promise<bigint>;
|
|
943
577
|
}
|
|
944
578
|
|
|
945
579
|
/**
|
|
946
|
-
*
|
|
580
|
+
* approve
|
|
947
581
|
* nonpayable
|
|
948
582
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
949
583
|
*/
|
|
950
|
-
async
|
|
584
|
+
async approve(_spender: `0x${string}`, _value: bigint, options?: {
|
|
951
585
|
accessList?: import('viem').AccessList;
|
|
952
586
|
authorizationList?: import('viem').AuthorizationList;
|
|
953
587
|
chain?: import('viem').Chain | null;
|
|
@@ -962,15 +596,15 @@ export class Metaverseconvergence_json {
|
|
|
962
596
|
if (!this.contract.write) {
|
|
963
597
|
throw new Error('Wallet client is required for write operations');
|
|
964
598
|
}
|
|
965
|
-
return this.contract.write.
|
|
599
|
+
return this.contract.write.approve([_spender, _value] as const, options) as Promise<`0x${string}`>;
|
|
966
600
|
}
|
|
967
601
|
|
|
968
602
|
/**
|
|
969
|
-
*
|
|
603
|
+
* transferFrom
|
|
970
604
|
* nonpayable
|
|
971
605
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
972
606
|
*/
|
|
973
|
-
async
|
|
607
|
+
async transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
|
|
974
608
|
accessList?: import('viem').AccessList;
|
|
975
609
|
authorizationList?: import('viem').AuthorizationList;
|
|
976
610
|
chain?: import('viem').Chain | null;
|
|
@@ -985,15 +619,15 @@ export class Metaverseconvergence_json {
|
|
|
985
619
|
if (!this.contract.write) {
|
|
986
620
|
throw new Error('Wallet client is required for write operations');
|
|
987
621
|
}
|
|
988
|
-
return this.contract.write.
|
|
622
|
+
return this.contract.write.transferFrom([from, to, value] as const, options) as Promise<`0x${string}`>;
|
|
989
623
|
}
|
|
990
624
|
|
|
991
625
|
/**
|
|
992
|
-
*
|
|
626
|
+
* burn
|
|
993
627
|
* nonpayable
|
|
994
628
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
995
629
|
*/
|
|
996
|
-
async
|
|
630
|
+
async burn(_value: bigint, options?: {
|
|
997
631
|
accessList?: import('viem').AccessList;
|
|
998
632
|
authorizationList?: import('viem').AuthorizationList;
|
|
999
633
|
chain?: import('viem').Chain | null;
|
|
@@ -1008,15 +642,15 @@ export class Metaverseconvergence_json {
|
|
|
1008
642
|
if (!this.contract.write) {
|
|
1009
643
|
throw new Error('Wallet client is required for write operations');
|
|
1010
644
|
}
|
|
1011
|
-
return this.contract.write.
|
|
645
|
+
return this.contract.write.burn([_value] as const, options) as Promise<`0x${string}`>;
|
|
1012
646
|
}
|
|
1013
647
|
|
|
1014
648
|
/**
|
|
1015
|
-
*
|
|
649
|
+
* decreaseApproval
|
|
1016
650
|
* nonpayable
|
|
1017
651
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1018
652
|
*/
|
|
1019
|
-
async
|
|
653
|
+
async decreaseApproval(_spender: `0x${string}`, _subtractedValue: bigint, options?: {
|
|
1020
654
|
accessList?: import('viem').AccessList;
|
|
1021
655
|
authorizationList?: import('viem').AuthorizationList;
|
|
1022
656
|
chain?: import('viem').Chain | null;
|
|
@@ -1031,15 +665,15 @@ export class Metaverseconvergence_json {
|
|
|
1031
665
|
if (!this.contract.write) {
|
|
1032
666
|
throw new Error('Wallet client is required for write operations');
|
|
1033
667
|
}
|
|
1034
|
-
return this.contract.write.
|
|
668
|
+
return this.contract.write.decreaseApproval([_spender, _subtractedValue] as const, options) as Promise<`0x${string}`>;
|
|
1035
669
|
}
|
|
1036
670
|
|
|
1037
671
|
/**
|
|
1038
|
-
*
|
|
672
|
+
* transfer
|
|
1039
673
|
* nonpayable
|
|
1040
674
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1041
675
|
*/
|
|
1042
|
-
async
|
|
676
|
+
async transfer(to: `0x${string}`, value: bigint, options?: {
|
|
1043
677
|
accessList?: import('viem').AccessList;
|
|
1044
678
|
authorizationList?: import('viem').AuthorizationList;
|
|
1045
679
|
chain?: import('viem').Chain | null;
|
|
@@ -1054,15 +688,15 @@ export class Metaverseconvergence_json {
|
|
|
1054
688
|
if (!this.contract.write) {
|
|
1055
689
|
throw new Error('Wallet client is required for write operations');
|
|
1056
690
|
}
|
|
1057
|
-
return this.contract.write.
|
|
691
|
+
return this.contract.write.transfer([to, value] as const, options) as Promise<`0x${string}`>;
|
|
1058
692
|
}
|
|
1059
693
|
|
|
1060
694
|
/**
|
|
1061
|
-
*
|
|
695
|
+
* disableTransfer
|
|
1062
696
|
* nonpayable
|
|
1063
697
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1064
698
|
*/
|
|
1065
|
-
async
|
|
699
|
+
async disableTransfer(options?: {
|
|
1066
700
|
accessList?: import('viem').AccessList;
|
|
1067
701
|
authorizationList?: import('viem').AuthorizationList;
|
|
1068
702
|
chain?: import('viem').Chain | null;
|
|
@@ -1077,15 +711,15 @@ export class Metaverseconvergence_json {
|
|
|
1077
711
|
if (!this.contract.write) {
|
|
1078
712
|
throw new Error('Wallet client is required for write operations');
|
|
1079
713
|
}
|
|
1080
|
-
return this.contract.write.
|
|
714
|
+
return this.contract.write.disableTransfer(options) as Promise<`0x${string}`>;
|
|
1081
715
|
}
|
|
1082
716
|
|
|
1083
717
|
/**
|
|
1084
|
-
*
|
|
718
|
+
* increaseApproval
|
|
1085
719
|
* nonpayable
|
|
1086
720
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1087
721
|
*/
|
|
1088
|
-
async
|
|
722
|
+
async increaseApproval(_spender: `0x${string}`, _addedValue: bigint, options?: {
|
|
1089
723
|
accessList?: import('viem').AccessList;
|
|
1090
724
|
authorizationList?: import('viem').AuthorizationList;
|
|
1091
725
|
chain?: import('viem').Chain | null;
|
|
@@ -1100,15 +734,15 @@ export class Metaverseconvergence_json {
|
|
|
1100
734
|
if (!this.contract.write) {
|
|
1101
735
|
throw new Error('Wallet client is required for write operations');
|
|
1102
736
|
}
|
|
1103
|
-
return this.contract.write.
|
|
737
|
+
return this.contract.write.increaseApproval([_spender, _addedValue] as const, options) as Promise<`0x${string}`>;
|
|
1104
738
|
}
|
|
1105
739
|
|
|
1106
740
|
/**
|
|
1107
|
-
*
|
|
741
|
+
* enableTransfer
|
|
1108
742
|
* nonpayable
|
|
1109
743
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1110
744
|
*/
|
|
1111
|
-
async
|
|
745
|
+
async enableTransfer(options?: {
|
|
1112
746
|
accessList?: import('viem').AccessList;
|
|
1113
747
|
authorizationList?: import('viem').AuthorizationList;
|
|
1114
748
|
chain?: import('viem').Chain | null;
|
|
@@ -1123,7 +757,7 @@ export class Metaverseconvergence_json {
|
|
|
1123
757
|
if (!this.contract.write) {
|
|
1124
758
|
throw new Error('Wallet client is required for write operations');
|
|
1125
759
|
}
|
|
1126
|
-
return this.contract.write.
|
|
760
|
+
return this.contract.write.enableTransfer(options) as Promise<`0x${string}`>;
|
|
1127
761
|
}
|
|
1128
762
|
|
|
1129
763
|
/**
|
|
@@ -1131,7 +765,7 @@ export class Metaverseconvergence_json {
|
|
|
1131
765
|
* nonpayable
|
|
1132
766
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1133
767
|
*/
|
|
1134
|
-
async transferOwnership(
|
|
768
|
+
async transferOwnership(newOwner: `0x${string}`, options?: {
|
|
1135
769
|
accessList?: import('viem').AccessList;
|
|
1136
770
|
authorizationList?: import('viem').AuthorizationList;
|
|
1137
771
|
chain?: import('viem').Chain | null;
|
|
@@ -1146,7 +780,7 @@ export class Metaverseconvergence_json {
|
|
|
1146
780
|
if (!this.contract.write) {
|
|
1147
781
|
throw new Error('Wallet client is required for write operations');
|
|
1148
782
|
}
|
|
1149
|
-
return this.contract.write.transferOwnership([
|
|
783
|
+
return this.contract.write.transferOwnership([newOwner] as const, options) as Promise<`0x${string}`>;
|
|
1150
784
|
}
|
|
1151
785
|
|
|
1152
786
|
|
|
@@ -1170,7 +804,7 @@ export class Metaverseconvergence_json {
|
|
|
1170
804
|
* Returns gas estimate and result without sending transaction
|
|
1171
805
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1172
806
|
*/
|
|
1173
|
-
async approve(
|
|
807
|
+
async approve(_spender: `0x${string}`, _value: bigint, options?: {
|
|
1174
808
|
accessList?: import('viem').AccessList;
|
|
1175
809
|
authorizationList?: import('viem').AuthorizationList;
|
|
1176
810
|
chain?: import('viem').Chain | null;
|
|
@@ -1182,33 +816,14 @@ export class Metaverseconvergence_json {
|
|
|
1182
816
|
nonce?: number;
|
|
1183
817
|
value?: bigint;
|
|
1184
818
|
}): Promise<boolean> {
|
|
1185
|
-
return contract.simulate.approve([
|
|
819
|
+
return contract.simulate.approve([_spender, _value] as const, options) as Promise<boolean>;
|
|
1186
820
|
},
|
|
1187
821
|
/**
|
|
1188
822
|
* Simulate transferFrom
|
|
1189
823
|
* Returns gas estimate and result without sending transaction
|
|
1190
824
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1191
825
|
*/
|
|
1192
|
-
async transferFrom(
|
|
1193
|
-
accessList?: import('viem').AccessList;
|
|
1194
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1195
|
-
chain?: import('viem').Chain | null;
|
|
1196
|
-
dataSuffix?: `0x${string}`;
|
|
1197
|
-
gas?: bigint;
|
|
1198
|
-
gasPrice?: bigint;
|
|
1199
|
-
maxFeePerGas?: bigint;
|
|
1200
|
-
maxPriorityFeePerGas?: bigint;
|
|
1201
|
-
nonce?: number;
|
|
1202
|
-
value?: bigint;
|
|
1203
|
-
}): Promise<boolean> {
|
|
1204
|
-
return contract.simulate.transferFrom([_from, _to, _value] as const, options) as Promise<boolean>;
|
|
1205
|
-
},
|
|
1206
|
-
/**
|
|
1207
|
-
* Simulate increaseAllowance
|
|
1208
|
-
* Returns gas estimate and result without sending transaction
|
|
1209
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1210
|
-
*/
|
|
1211
|
-
async increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
|
|
826
|
+
async transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
|
|
1212
827
|
accessList?: import('viem').AccessList;
|
|
1213
828
|
authorizationList?: import('viem').AuthorizationList;
|
|
1214
829
|
chain?: import('viem').Chain | null;
|
|
@@ -1220,90 +835,14 @@ export class Metaverseconvergence_json {
|
|
|
1220
835
|
nonce?: number;
|
|
1221
836
|
value?: bigint;
|
|
1222
837
|
}): Promise<boolean> {
|
|
1223
|
-
return contract.simulate.
|
|
1224
|
-
},
|
|
1225
|
-
/**
|
|
1226
|
-
* Simulate unpause
|
|
1227
|
-
* Returns gas estimate and result without sending transaction
|
|
1228
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1229
|
-
*/
|
|
1230
|
-
async unpause(options?: {
|
|
1231
|
-
accessList?: import('viem').AccessList;
|
|
1232
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1233
|
-
chain?: import('viem').Chain | null;
|
|
1234
|
-
dataSuffix?: `0x${string}`;
|
|
1235
|
-
gas?: bigint;
|
|
1236
|
-
gasPrice?: bigint;
|
|
1237
|
-
maxFeePerGas?: bigint;
|
|
1238
|
-
maxPriorityFeePerGas?: bigint;
|
|
1239
|
-
nonce?: number;
|
|
1240
|
-
value?: bigint;
|
|
1241
|
-
}): Promise<void> {
|
|
1242
|
-
return contract.simulate.unpause(options) as Promise<void>;
|
|
1243
|
-
},
|
|
1244
|
-
/**
|
|
1245
|
-
* Simulate unfreeze
|
|
1246
|
-
* Returns gas estimate and result without sending transaction
|
|
1247
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1248
|
-
*/
|
|
1249
|
-
async unfreeze(_target: `0x${string}`, options?: {
|
|
1250
|
-
accessList?: import('viem').AccessList;
|
|
1251
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1252
|
-
chain?: import('viem').Chain | null;
|
|
1253
|
-
dataSuffix?: `0x${string}`;
|
|
1254
|
-
gas?: bigint;
|
|
1255
|
-
gasPrice?: bigint;
|
|
1256
|
-
maxFeePerGas?: bigint;
|
|
1257
|
-
maxPriorityFeePerGas?: bigint;
|
|
1258
|
-
nonce?: number;
|
|
1259
|
-
value?: bigint;
|
|
1260
|
-
}): Promise<void> {
|
|
1261
|
-
return contract.simulate.unfreeze([_target] as const, options) as Promise<void>;
|
|
1262
|
-
},
|
|
1263
|
-
/**
|
|
1264
|
-
* Simulate unlock
|
|
1265
|
-
* Returns gas estimate and result without sending transaction
|
|
1266
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1267
|
-
*/
|
|
1268
|
-
async unlock(_holder: `0x${string}`, i: bigint, options?: {
|
|
1269
|
-
accessList?: import('viem').AccessList;
|
|
1270
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1271
|
-
chain?: import('viem').Chain | null;
|
|
1272
|
-
dataSuffix?: `0x${string}`;
|
|
1273
|
-
gas?: bigint;
|
|
1274
|
-
gasPrice?: bigint;
|
|
1275
|
-
maxFeePerGas?: bigint;
|
|
1276
|
-
maxPriorityFeePerGas?: bigint;
|
|
1277
|
-
nonce?: number;
|
|
1278
|
-
value?: bigint;
|
|
1279
|
-
}): Promise<void> {
|
|
1280
|
-
return contract.simulate.unlock([_holder, i] as const, options) as Promise<void>;
|
|
1281
|
-
},
|
|
1282
|
-
/**
|
|
1283
|
-
* Simulate pause
|
|
1284
|
-
* Returns gas estimate and result without sending transaction
|
|
1285
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1286
|
-
*/
|
|
1287
|
-
async pause(options?: {
|
|
1288
|
-
accessList?: import('viem').AccessList;
|
|
1289
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1290
|
-
chain?: import('viem').Chain | null;
|
|
1291
|
-
dataSuffix?: `0x${string}`;
|
|
1292
|
-
gas?: bigint;
|
|
1293
|
-
gasPrice?: bigint;
|
|
1294
|
-
maxFeePerGas?: bigint;
|
|
1295
|
-
maxPriorityFeePerGas?: bigint;
|
|
1296
|
-
nonce?: number;
|
|
1297
|
-
value?: bigint;
|
|
1298
|
-
}): Promise<void> {
|
|
1299
|
-
return contract.simulate.pause(options) as Promise<void>;
|
|
838
|
+
return contract.simulate.transferFrom([from, to, value] as const, options) as Promise<boolean>;
|
|
1300
839
|
},
|
|
1301
840
|
/**
|
|
1302
|
-
* Simulate
|
|
841
|
+
* Simulate burn
|
|
1303
842
|
* Returns gas estimate and result without sending transaction
|
|
1304
843
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1305
844
|
*/
|
|
1306
|
-
async
|
|
845
|
+
async burn(_value: bigint, options?: {
|
|
1307
846
|
accessList?: import('viem').AccessList;
|
|
1308
847
|
authorizationList?: import('viem').AuthorizationList;
|
|
1309
848
|
chain?: import('viem').Chain | null;
|
|
@@ -1315,14 +854,14 @@ export class Metaverseconvergence_json {
|
|
|
1315
854
|
nonce?: number;
|
|
1316
855
|
value?: bigint;
|
|
1317
856
|
}): Promise<void> {
|
|
1318
|
-
return contract.simulate.
|
|
857
|
+
return contract.simulate.burn([_value] as const, options) as Promise<void>;
|
|
1319
858
|
},
|
|
1320
859
|
/**
|
|
1321
|
-
* Simulate
|
|
860
|
+
* Simulate decreaseApproval
|
|
1322
861
|
* Returns gas estimate and result without sending transaction
|
|
1323
862
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1324
863
|
*/
|
|
1325
|
-
async
|
|
864
|
+
async decreaseApproval(_spender: `0x${string}`, _subtractedValue: bigint, options?: {
|
|
1326
865
|
accessList?: import('viem').AccessList;
|
|
1327
866
|
authorizationList?: import('viem').AuthorizationList;
|
|
1328
867
|
chain?: import('viem').Chain | null;
|
|
@@ -1333,15 +872,15 @@ export class Metaverseconvergence_json {
|
|
|
1333
872
|
maxPriorityFeePerGas?: bigint;
|
|
1334
873
|
nonce?: number;
|
|
1335
874
|
value?: bigint;
|
|
1336
|
-
}): Promise<
|
|
1337
|
-
return contract.simulate.
|
|
875
|
+
}): Promise<boolean> {
|
|
876
|
+
return contract.simulate.decreaseApproval([_spender, _subtractedValue] as const, options) as Promise<boolean>;
|
|
1338
877
|
},
|
|
1339
878
|
/**
|
|
1340
|
-
* Simulate
|
|
879
|
+
* Simulate transfer
|
|
1341
880
|
* Returns gas estimate and result without sending transaction
|
|
1342
881
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1343
882
|
*/
|
|
1344
|
-
async
|
|
883
|
+
async transfer(to: `0x${string}`, value: bigint, options?: {
|
|
1345
884
|
accessList?: import('viem').AccessList;
|
|
1346
885
|
authorizationList?: import('viem').AuthorizationList;
|
|
1347
886
|
chain?: import('viem').Chain | null;
|
|
@@ -1353,14 +892,14 @@ export class Metaverseconvergence_json {
|
|
|
1353
892
|
nonce?: number;
|
|
1354
893
|
value?: bigint;
|
|
1355
894
|
}): Promise<boolean> {
|
|
1356
|
-
return contract.simulate.
|
|
895
|
+
return contract.simulate.transfer([to, value] as const, options) as Promise<boolean>;
|
|
1357
896
|
},
|
|
1358
897
|
/**
|
|
1359
|
-
* Simulate
|
|
898
|
+
* Simulate disableTransfer
|
|
1360
899
|
* Returns gas estimate and result without sending transaction
|
|
1361
900
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1362
901
|
*/
|
|
1363
|
-
async
|
|
902
|
+
async disableTransfer(options?: {
|
|
1364
903
|
accessList?: import('viem').AccessList;
|
|
1365
904
|
authorizationList?: import('viem').AuthorizationList;
|
|
1366
905
|
chain?: import('viem').Chain | null;
|
|
@@ -1371,15 +910,15 @@ export class Metaverseconvergence_json {
|
|
|
1371
910
|
maxPriorityFeePerGas?: bigint;
|
|
1372
911
|
nonce?: number;
|
|
1373
912
|
value?: bigint;
|
|
1374
|
-
}): Promise<
|
|
1375
|
-
return contract.simulate.
|
|
913
|
+
}): Promise<void> {
|
|
914
|
+
return contract.simulate.disableTransfer(options) as Promise<void>;
|
|
1376
915
|
},
|
|
1377
916
|
/**
|
|
1378
|
-
* Simulate
|
|
917
|
+
* Simulate increaseApproval
|
|
1379
918
|
* Returns gas estimate and result without sending transaction
|
|
1380
919
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1381
920
|
*/
|
|
1382
|
-
async
|
|
921
|
+
async increaseApproval(_spender: `0x${string}`, _addedValue: bigint, options?: {
|
|
1383
922
|
accessList?: import('viem').AccessList;
|
|
1384
923
|
authorizationList?: import('viem').AuthorizationList;
|
|
1385
924
|
chain?: import('viem').Chain | null;
|
|
@@ -1391,14 +930,14 @@ export class Metaverseconvergence_json {
|
|
|
1391
930
|
nonce?: number;
|
|
1392
931
|
value?: bigint;
|
|
1393
932
|
}): Promise<boolean> {
|
|
1394
|
-
return contract.simulate.
|
|
933
|
+
return contract.simulate.increaseApproval([_spender, _addedValue] as const, options) as Promise<boolean>;
|
|
1395
934
|
},
|
|
1396
935
|
/**
|
|
1397
|
-
* Simulate
|
|
936
|
+
* Simulate enableTransfer
|
|
1398
937
|
* Returns gas estimate and result without sending transaction
|
|
1399
938
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1400
939
|
*/
|
|
1401
|
-
async
|
|
940
|
+
async enableTransfer(options?: {
|
|
1402
941
|
accessList?: import('viem').AccessList;
|
|
1403
942
|
authorizationList?: import('viem').AuthorizationList;
|
|
1404
943
|
chain?: import('viem').Chain | null;
|
|
@@ -1410,14 +949,14 @@ export class Metaverseconvergence_json {
|
|
|
1410
949
|
nonce?: number;
|
|
1411
950
|
value?: bigint;
|
|
1412
951
|
}): Promise<void> {
|
|
1413
|
-
return contract.simulate.
|
|
952
|
+
return contract.simulate.enableTransfer(options) as Promise<void>;
|
|
1414
953
|
},
|
|
1415
954
|
/**
|
|
1416
955
|
* Simulate transferOwnership
|
|
1417
956
|
* Returns gas estimate and result without sending transaction
|
|
1418
957
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1419
958
|
*/
|
|
1420
|
-
async transferOwnership(
|
|
959
|
+
async transferOwnership(newOwner: `0x${string}`, options?: {
|
|
1421
960
|
accessList?: import('viem').AccessList;
|
|
1422
961
|
authorizationList?: import('viem').AuthorizationList;
|
|
1423
962
|
chain?: import('viem').Chain | null;
|
|
@@ -1429,7 +968,7 @@ export class Metaverseconvergence_json {
|
|
|
1429
968
|
nonce?: number;
|
|
1430
969
|
value?: bigint;
|
|
1431
970
|
}): Promise<void> {
|
|
1432
|
-
return contract.simulate.transferOwnership([
|
|
971
|
+
return contract.simulate.transferOwnership([newOwner] as const, options) as Promise<void>;
|
|
1433
972
|
}
|
|
1434
973
|
};
|
|
1435
974
|
}
|
|
@@ -1449,73 +988,16 @@ export class Metaverseconvergence_json {
|
|
|
1449
988
|
get watch() {
|
|
1450
989
|
return {
|
|
1451
990
|
/**
|
|
1452
|
-
* Watch
|
|
1453
|
-
* @param callback Function to call when event is emitted
|
|
1454
|
-
* @param filter Optional filter for indexed parameters
|
|
1455
|
-
* @returns Unwatch function to stop listening
|
|
1456
|
-
*/
|
|
1457
|
-
OwnershipRenounced: (callback: (event: { previousOwner: `0x${string}` }) => void, filter?: { previousOwner: `0x${string}` }) => {
|
|
1458
|
-
return this.publicClient.watchContractEvent({
|
|
1459
|
-
address: this.contractAddress,
|
|
1460
|
-
abi: Metaverseconvergence_jsonAbi,
|
|
1461
|
-
eventName: 'OwnershipRenounced',
|
|
1462
|
-
args: filter,
|
|
1463
|
-
onLogs: (logs: any[]) => {
|
|
1464
|
-
logs.forEach((log: any) => {
|
|
1465
|
-
callback(log.args as any);
|
|
1466
|
-
});
|
|
1467
|
-
},
|
|
1468
|
-
}) as () => void;
|
|
1469
|
-
},
|
|
1470
|
-
/**
|
|
1471
|
-
* Watch OwnershipTransferred events
|
|
1472
|
-
* @param callback Function to call when event is emitted
|
|
1473
|
-
* @param filter Optional filter for indexed parameters
|
|
1474
|
-
* @returns Unwatch function to stop listening
|
|
1475
|
-
*/
|
|
1476
|
-
OwnershipTransferred: (callback: (event: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => void, filter?: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => {
|
|
1477
|
-
return this.publicClient.watchContractEvent({
|
|
1478
|
-
address: this.contractAddress,
|
|
1479
|
-
abi: Metaverseconvergence_jsonAbi,
|
|
1480
|
-
eventName: 'OwnershipTransferred',
|
|
1481
|
-
args: filter,
|
|
1482
|
-
onLogs: (logs: any[]) => {
|
|
1483
|
-
logs.forEach((log: any) => {
|
|
1484
|
-
callback(log.args as any);
|
|
1485
|
-
});
|
|
1486
|
-
},
|
|
1487
|
-
}) as () => void;
|
|
1488
|
-
},
|
|
1489
|
-
/**
|
|
1490
|
-
* Watch Pause events
|
|
1491
|
-
* @param callback Function to call when event is emitted
|
|
1492
|
-
* @param filter Optional filter for indexed parameters
|
|
1493
|
-
* @returns Unwatch function to stop listening
|
|
1494
|
-
*/
|
|
1495
|
-
Pause: (callback: (event: { }) => void) => {
|
|
1496
|
-
return this.publicClient.watchContractEvent({
|
|
1497
|
-
address: this.contractAddress,
|
|
1498
|
-
abi: Metaverseconvergence_jsonAbi,
|
|
1499
|
-
eventName: 'Pause',
|
|
1500
|
-
|
|
1501
|
-
onLogs: (logs: any[]) => {
|
|
1502
|
-
logs.forEach((log: any) => {
|
|
1503
|
-
callback(log.args as any);
|
|
1504
|
-
});
|
|
1505
|
-
},
|
|
1506
|
-
}) as () => void;
|
|
1507
|
-
},
|
|
1508
|
-
/**
|
|
1509
|
-
* Watch Unpause events
|
|
991
|
+
* Watch Burn events
|
|
1510
992
|
* @param callback Function to call when event is emitted
|
|
1511
993
|
* @param filter Optional filter for indexed parameters
|
|
1512
994
|
* @returns Unwatch function to stop listening
|
|
1513
995
|
*/
|
|
1514
|
-
|
|
996
|
+
Burn: (callback: (event: { burner: `0x${string}`; value: bigint }) => void) => {
|
|
1515
997
|
return this.publicClient.watchContractEvent({
|
|
1516
998
|
address: this.contractAddress,
|
|
1517
|
-
abi:
|
|
1518
|
-
eventName: '
|
|
999
|
+
abi: Metadium_jsonAbi,
|
|
1000
|
+
eventName: 'Burn',
|
|
1519
1001
|
|
|
1520
1002
|
onLogs: (logs: any[]) => {
|
|
1521
1003
|
logs.forEach((log: any) => {
|
|
@@ -1525,16 +1007,16 @@ export class Metaverseconvergence_json {
|
|
|
1525
1007
|
}) as () => void;
|
|
1526
1008
|
},
|
|
1527
1009
|
/**
|
|
1528
|
-
* Watch
|
|
1010
|
+
* Watch TransferEnabled events
|
|
1529
1011
|
* @param callback Function to call when event is emitted
|
|
1530
1012
|
* @param filter Optional filter for indexed parameters
|
|
1531
1013
|
* @returns Unwatch function to stop listening
|
|
1532
1014
|
*/
|
|
1533
|
-
|
|
1015
|
+
TransferEnabled: (callback: (event: { owner: `0x${string}` }) => void) => {
|
|
1534
1016
|
return this.publicClient.watchContractEvent({
|
|
1535
1017
|
address: this.contractAddress,
|
|
1536
|
-
abi:
|
|
1537
|
-
eventName: '
|
|
1018
|
+
abi: Metadium_jsonAbi,
|
|
1019
|
+
eventName: 'TransferEnabled',
|
|
1538
1020
|
|
|
1539
1021
|
onLogs: (logs: any[]) => {
|
|
1540
1022
|
logs.forEach((log: any) => {
|
|
@@ -1544,16 +1026,16 @@ export class Metaverseconvergence_json {
|
|
|
1544
1026
|
}) as () => void;
|
|
1545
1027
|
},
|
|
1546
1028
|
/**
|
|
1547
|
-
* Watch
|
|
1029
|
+
* Watch TransferDisabled events
|
|
1548
1030
|
* @param callback Function to call when event is emitted
|
|
1549
1031
|
* @param filter Optional filter for indexed parameters
|
|
1550
1032
|
* @returns Unwatch function to stop listening
|
|
1551
1033
|
*/
|
|
1552
|
-
|
|
1034
|
+
TransferDisabled: (callback: (event: { owner: `0x${string}` }) => void) => {
|
|
1553
1035
|
return this.publicClient.watchContractEvent({
|
|
1554
1036
|
address: this.contractAddress,
|
|
1555
|
-
abi:
|
|
1556
|
-
eventName: '
|
|
1037
|
+
abi: Metadium_jsonAbi,
|
|
1038
|
+
eventName: 'TransferDisabled',
|
|
1557
1039
|
|
|
1558
1040
|
onLogs: (logs: any[]) => {
|
|
1559
1041
|
logs.forEach((log: any) => {
|
|
@@ -1563,35 +1045,16 @@ export class Metaverseconvergence_json {
|
|
|
1563
1045
|
}) as () => void;
|
|
1564
1046
|
},
|
|
1565
1047
|
/**
|
|
1566
|
-
* Watch
|
|
1567
|
-
* @param callback Function to call when event is emitted
|
|
1568
|
-
* @param filter Optional filter for indexed parameters
|
|
1569
|
-
* @returns Unwatch function to stop listening
|
|
1570
|
-
*/
|
|
1571
|
-
Burn: (callback: (event: { burner: `0x${string}`; value: bigint }) => void, filter?: { burner: `0x${string}` }) => {
|
|
1572
|
-
return this.publicClient.watchContractEvent({
|
|
1573
|
-
address: this.contractAddress,
|
|
1574
|
-
abi: Metaverseconvergence_jsonAbi,
|
|
1575
|
-
eventName: 'Burn',
|
|
1576
|
-
args: filter,
|
|
1577
|
-
onLogs: (logs: any[]) => {
|
|
1578
|
-
logs.forEach((log: any) => {
|
|
1579
|
-
callback(log.args as any);
|
|
1580
|
-
});
|
|
1581
|
-
},
|
|
1582
|
-
}) as () => void;
|
|
1583
|
-
},
|
|
1584
|
-
/**
|
|
1585
|
-
* Watch Lock events
|
|
1048
|
+
* Watch OwnershipTransferred events
|
|
1586
1049
|
* @param callback Function to call when event is emitted
|
|
1587
1050
|
* @param filter Optional filter for indexed parameters
|
|
1588
1051
|
* @returns Unwatch function to stop listening
|
|
1589
1052
|
*/
|
|
1590
|
-
|
|
1053
|
+
OwnershipTransferred: (callback: (event: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => void, filter?: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => {
|
|
1591
1054
|
return this.publicClient.watchContractEvent({
|
|
1592
1055
|
address: this.contractAddress,
|
|
1593
|
-
abi:
|
|
1594
|
-
eventName: '
|
|
1056
|
+
abi: Metadium_jsonAbi,
|
|
1057
|
+
eventName: 'OwnershipTransferred',
|
|
1595
1058
|
args: filter,
|
|
1596
1059
|
onLogs: (logs: any[]) => {
|
|
1597
1060
|
logs.forEach((log: any) => {
|
|
@@ -1601,16 +1064,16 @@ export class Metaverseconvergence_json {
|
|
|
1601
1064
|
}) as () => void;
|
|
1602
1065
|
},
|
|
1603
1066
|
/**
|
|
1604
|
-
* Watch
|
|
1067
|
+
* Watch Approval events
|
|
1605
1068
|
* @param callback Function to call when event is emitted
|
|
1606
1069
|
* @param filter Optional filter for indexed parameters
|
|
1607
1070
|
* @returns Unwatch function to stop listening
|
|
1608
1071
|
*/
|
|
1609
|
-
|
|
1072
|
+
Approval: (callback: (event: { owner: `0x${string}`; spender: `0x${string}`; value: bigint }) => void, filter?: { owner: `0x${string}`; spender: `0x${string}` }) => {
|
|
1610
1073
|
return this.publicClient.watchContractEvent({
|
|
1611
1074
|
address: this.contractAddress,
|
|
1612
|
-
abi:
|
|
1613
|
-
eventName: '
|
|
1075
|
+
abi: Metadium_jsonAbi,
|
|
1076
|
+
eventName: 'Approval',
|
|
1614
1077
|
args: filter,
|
|
1615
1078
|
onLogs: (logs: any[]) => {
|
|
1616
1079
|
logs.forEach((log: any) => {
|
|
@@ -1628,7 +1091,7 @@ export class Metaverseconvergence_json {
|
|
|
1628
1091
|
Transfer: (callback: (event: { from: `0x${string}`; to: `0x${string}`; value: bigint }) => void, filter?: { from: `0x${string}`; to: `0x${string}` }) => {
|
|
1629
1092
|
return this.publicClient.watchContractEvent({
|
|
1630
1093
|
address: this.contractAddress,
|
|
1631
|
-
abi:
|
|
1094
|
+
abi: Metadium_jsonAbi,
|
|
1632
1095
|
eventName: 'Transfer',
|
|
1633
1096
|
args: filter,
|
|
1634
1097
|
onLogs: (logs: any[]) => {
|
|
@@ -1637,25 +1100,6 @@ export class Metaverseconvergence_json {
|
|
|
1637
1100
|
});
|
|
1638
1101
|
},
|
|
1639
1102
|
}) as () => void;
|
|
1640
|
-
},
|
|
1641
|
-
/**
|
|
1642
|
-
* Watch Approval events
|
|
1643
|
-
* @param callback Function to call when event is emitted
|
|
1644
|
-
* @param filter Optional filter for indexed parameters
|
|
1645
|
-
* @returns Unwatch function to stop listening
|
|
1646
|
-
*/
|
|
1647
|
-
Approval: (callback: (event: { owner: `0x${string}`; spender: `0x${string}`; value: bigint }) => void, filter?: { owner: `0x${string}`; spender: `0x${string}` }) => {
|
|
1648
|
-
return this.publicClient.watchContractEvent({
|
|
1649
|
-
address: this.contractAddress,
|
|
1650
|
-
abi: Metaverseconvergence_jsonAbi,
|
|
1651
|
-
eventName: 'Approval',
|
|
1652
|
-
args: filter,
|
|
1653
|
-
onLogs: (logs: any[]) => {
|
|
1654
|
-
logs.forEach((log: any) => {
|
|
1655
|
-
callback(log.args as any);
|
|
1656
|
-
});
|
|
1657
|
-
},
|
|
1658
|
-
}) as () => void;
|
|
1659
1103
|
}
|
|
1660
1104
|
};
|
|
1661
1105
|
}
|