@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
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.Metadium_json = exports.Metadium_jsonAbi = void 0;
|
|
4
4
|
const viem_1 = require("viem");
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Metadium_json ABI
|
|
7
7
|
*
|
|
8
8
|
* This ABI is typed using viem's type system for full type safety.
|
|
9
9
|
*/
|
|
10
|
-
exports.
|
|
10
|
+
exports.Metadium_jsonAbi = [
|
|
11
11
|
{
|
|
12
12
|
"constant": true,
|
|
13
13
|
"inputs": [],
|
|
@@ -26,11 +26,11 @@ exports.Metaverseconvergence_jsonAbi = [
|
|
|
26
26
|
"constant": false,
|
|
27
27
|
"inputs": [
|
|
28
28
|
{
|
|
29
|
-
"name": "
|
|
29
|
+
"name": "_spender",
|
|
30
30
|
"type": "address"
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
|
-
"name": "
|
|
33
|
+
"name": "_value",
|
|
34
34
|
"type": "uint256"
|
|
35
35
|
}
|
|
36
36
|
],
|
|
@@ -63,15 +63,15 @@ exports.Metaverseconvergence_jsonAbi = [
|
|
|
63
63
|
"constant": false,
|
|
64
64
|
"inputs": [
|
|
65
65
|
{
|
|
66
|
-
"name": "
|
|
66
|
+
"name": "from",
|
|
67
67
|
"type": "address"
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
|
-
"name": "
|
|
70
|
+
"name": "to",
|
|
71
71
|
"type": "address"
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
|
-
"name": "
|
|
74
|
+
"name": "value",
|
|
75
75
|
"type": "uint256"
|
|
76
76
|
}
|
|
77
77
|
],
|
|
@@ -89,11 +89,11 @@ exports.Metaverseconvergence_jsonAbi = [
|
|
|
89
89
|
{
|
|
90
90
|
"constant": true,
|
|
91
91
|
"inputs": [],
|
|
92
|
-
"name": "
|
|
92
|
+
"name": "INITIAL_SUPPLY",
|
|
93
93
|
"outputs": [
|
|
94
94
|
{
|
|
95
95
|
"name": "",
|
|
96
|
-
"type": "
|
|
96
|
+
"type": "uint256"
|
|
97
97
|
}
|
|
98
98
|
],
|
|
99
99
|
"payable": false,
|
|
@@ -103,11 +103,11 @@ exports.Metaverseconvergence_jsonAbi = [
|
|
|
103
103
|
{
|
|
104
104
|
"constant": true,
|
|
105
105
|
"inputs": [],
|
|
106
|
-
"name": "
|
|
106
|
+
"name": "decimals",
|
|
107
107
|
"outputs": [
|
|
108
108
|
{
|
|
109
109
|
"name": "",
|
|
110
|
-
"type": "
|
|
110
|
+
"type": "uint8"
|
|
111
111
|
}
|
|
112
112
|
],
|
|
113
113
|
"payable": false,
|
|
@@ -118,79 +118,43 @@ exports.Metaverseconvergence_jsonAbi = [
|
|
|
118
118
|
"constant": false,
|
|
119
119
|
"inputs": [
|
|
120
120
|
{
|
|
121
|
-
"name": "
|
|
122
|
-
"type": "address"
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"name": "addedValue",
|
|
121
|
+
"name": "_value",
|
|
126
122
|
"type": "uint256"
|
|
127
123
|
}
|
|
128
124
|
],
|
|
129
|
-
"name": "
|
|
130
|
-
"outputs": [
|
|
131
|
-
{
|
|
132
|
-
"name": "",
|
|
133
|
-
"type": "bool"
|
|
134
|
-
}
|
|
135
|
-
],
|
|
136
|
-
"payable": false,
|
|
137
|
-
"stateMutability": "nonpayable",
|
|
138
|
-
"type": "function"
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"constant": false,
|
|
142
|
-
"inputs": [],
|
|
143
|
-
"name": "unpause",
|
|
125
|
+
"name": "burn",
|
|
144
126
|
"outputs": [],
|
|
145
127
|
"payable": false,
|
|
146
128
|
"stateMutability": "nonpayable",
|
|
147
129
|
"type": "function"
|
|
148
130
|
},
|
|
149
131
|
{
|
|
150
|
-
"constant":
|
|
151
|
-
"inputs": [
|
|
132
|
+
"constant": true,
|
|
133
|
+
"inputs": [],
|
|
134
|
+
"name": "transferEnabled",
|
|
135
|
+
"outputs": [
|
|
152
136
|
{
|
|
153
|
-
"name": "
|
|
154
|
-
"type": "
|
|
137
|
+
"name": "",
|
|
138
|
+
"type": "bool"
|
|
155
139
|
}
|
|
156
140
|
],
|
|
157
|
-
"name": "unfreeze",
|
|
158
|
-
"outputs": [],
|
|
159
141
|
"payable": false,
|
|
160
|
-
"stateMutability": "
|
|
142
|
+
"stateMutability": "view",
|
|
161
143
|
"type": "function"
|
|
162
144
|
},
|
|
163
145
|
{
|
|
164
|
-
"constant":
|
|
146
|
+
"constant": false,
|
|
165
147
|
"inputs": [
|
|
166
148
|
{
|
|
167
|
-
"name": "
|
|
149
|
+
"name": "_spender",
|
|
168
150
|
"type": "address"
|
|
169
151
|
},
|
|
170
152
|
{
|
|
171
|
-
"name": "
|
|
153
|
+
"name": "_subtractedValue",
|
|
172
154
|
"type": "uint256"
|
|
173
155
|
}
|
|
174
156
|
],
|
|
175
|
-
"name": "
|
|
176
|
-
"outputs": [
|
|
177
|
-
{
|
|
178
|
-
"name": "",
|
|
179
|
-
"type": "uint256"
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
"name": "",
|
|
183
|
-
"type": "uint256"
|
|
184
|
-
}
|
|
185
|
-
],
|
|
186
|
-
"payable": false,
|
|
187
|
-
"stateMutability": "view",
|
|
188
|
-
"type": "function"
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
"constant": true,
|
|
192
|
-
"inputs": [],
|
|
193
|
-
"name": "paused",
|
|
157
|
+
"name": "decreaseApproval",
|
|
194
158
|
"outputs": [
|
|
195
159
|
{
|
|
196
160
|
"name": "",
|
|
@@ -198,14 +162,14 @@ exports.Metaverseconvergence_jsonAbi = [
|
|
|
198
162
|
}
|
|
199
163
|
],
|
|
200
164
|
"payable": false,
|
|
201
|
-
"stateMutability": "
|
|
165
|
+
"stateMutability": "nonpayable",
|
|
202
166
|
"type": "function"
|
|
203
167
|
},
|
|
204
168
|
{
|
|
205
169
|
"constant": true,
|
|
206
170
|
"inputs": [
|
|
207
171
|
{
|
|
208
|
-
"name": "
|
|
172
|
+
"name": "_owner",
|
|
209
173
|
"type": "address"
|
|
210
174
|
}
|
|
211
175
|
],
|
|
@@ -220,47 +184,6 @@ exports.Metaverseconvergence_jsonAbi = [
|
|
|
220
184
|
"stateMutability": "view",
|
|
221
185
|
"type": "function"
|
|
222
186
|
},
|
|
223
|
-
{
|
|
224
|
-
"constant": false,
|
|
225
|
-
"inputs": [
|
|
226
|
-
{
|
|
227
|
-
"name": "_holder",
|
|
228
|
-
"type": "address"
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
"name": "i",
|
|
232
|
-
"type": "uint256"
|
|
233
|
-
}
|
|
234
|
-
],
|
|
235
|
-
"name": "unlock",
|
|
236
|
-
"outputs": [],
|
|
237
|
-
"payable": false,
|
|
238
|
-
"stateMutability": "nonpayable",
|
|
239
|
-
"type": "function"
|
|
240
|
-
},
|
|
241
|
-
{
|
|
242
|
-
"constant": false,
|
|
243
|
-
"inputs": [],
|
|
244
|
-
"name": "pause",
|
|
245
|
-
"outputs": [],
|
|
246
|
-
"payable": false,
|
|
247
|
-
"stateMutability": "nonpayable",
|
|
248
|
-
"type": "function"
|
|
249
|
-
},
|
|
250
|
-
{
|
|
251
|
-
"constant": false,
|
|
252
|
-
"inputs": [
|
|
253
|
-
{
|
|
254
|
-
"name": "_target",
|
|
255
|
-
"type": "address"
|
|
256
|
-
}
|
|
257
|
-
],
|
|
258
|
-
"name": "freeze",
|
|
259
|
-
"outputs": [],
|
|
260
|
-
"payable": false,
|
|
261
|
-
"stateMutability": "nonpayable",
|
|
262
|
-
"type": "function"
|
|
263
|
-
},
|
|
264
187
|
{
|
|
265
188
|
"constant": true,
|
|
266
189
|
"inputs": [],
|
|
@@ -293,33 +216,15 @@ exports.Metaverseconvergence_jsonAbi = [
|
|
|
293
216
|
"constant": false,
|
|
294
217
|
"inputs": [
|
|
295
218
|
{
|
|
296
|
-
"name": "
|
|
297
|
-
"type": "address"
|
|
298
|
-
},
|
|
299
|
-
{
|
|
300
|
-
"name": "_value",
|
|
301
|
-
"type": "uint256"
|
|
302
|
-
}
|
|
303
|
-
],
|
|
304
|
-
"name": "burn",
|
|
305
|
-
"outputs": [],
|
|
306
|
-
"payable": false,
|
|
307
|
-
"stateMutability": "nonpayable",
|
|
308
|
-
"type": "function"
|
|
309
|
-
},
|
|
310
|
-
{
|
|
311
|
-
"constant": false,
|
|
312
|
-
"inputs": [
|
|
313
|
-
{
|
|
314
|
-
"name": "spender",
|
|
219
|
+
"name": "to",
|
|
315
220
|
"type": "address"
|
|
316
221
|
},
|
|
317
222
|
{
|
|
318
|
-
"name": "
|
|
223
|
+
"name": "value",
|
|
319
224
|
"type": "uint256"
|
|
320
225
|
}
|
|
321
226
|
],
|
|
322
|
-
"name": "
|
|
227
|
+
"name": "transfer",
|
|
323
228
|
"outputs": [
|
|
324
229
|
{
|
|
325
230
|
"name": "",
|
|
@@ -332,67 +237,26 @@ exports.Metaverseconvergence_jsonAbi = [
|
|
|
332
237
|
},
|
|
333
238
|
{
|
|
334
239
|
"constant": false,
|
|
335
|
-
"inputs": [
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
"type": "address"
|
|
339
|
-
},
|
|
340
|
-
{
|
|
341
|
-
"name": "_value",
|
|
342
|
-
"type": "uint256"
|
|
343
|
-
}
|
|
344
|
-
],
|
|
345
|
-
"name": "transfer",
|
|
346
|
-
"outputs": [
|
|
347
|
-
{
|
|
348
|
-
"name": "",
|
|
349
|
-
"type": "bool"
|
|
350
|
-
}
|
|
351
|
-
],
|
|
240
|
+
"inputs": [],
|
|
241
|
+
"name": "disableTransfer",
|
|
242
|
+
"outputs": [],
|
|
352
243
|
"payable": false,
|
|
353
244
|
"stateMutability": "nonpayable",
|
|
354
245
|
"type": "function"
|
|
355
246
|
},
|
|
356
|
-
{
|
|
357
|
-
"constant": true,
|
|
358
|
-
"inputs": [
|
|
359
|
-
{
|
|
360
|
-
"name": "owner",
|
|
361
|
-
"type": "address"
|
|
362
|
-
},
|
|
363
|
-
{
|
|
364
|
-
"name": "spender",
|
|
365
|
-
"type": "address"
|
|
366
|
-
}
|
|
367
|
-
],
|
|
368
|
-
"name": "allowance",
|
|
369
|
-
"outputs": [
|
|
370
|
-
{
|
|
371
|
-
"name": "",
|
|
372
|
-
"type": "uint256"
|
|
373
|
-
}
|
|
374
|
-
],
|
|
375
|
-
"payable": false,
|
|
376
|
-
"stateMutability": "view",
|
|
377
|
-
"type": "function"
|
|
378
|
-
},
|
|
379
247
|
{
|
|
380
248
|
"constant": false,
|
|
381
249
|
"inputs": [
|
|
382
250
|
{
|
|
383
|
-
"name": "
|
|
251
|
+
"name": "_spender",
|
|
384
252
|
"type": "address"
|
|
385
253
|
},
|
|
386
254
|
{
|
|
387
|
-
"name": "
|
|
388
|
-
"type": "uint256"
|
|
389
|
-
},
|
|
390
|
-
{
|
|
391
|
-
"name": "_releaseTime",
|
|
255
|
+
"name": "_addedValue",
|
|
392
256
|
"type": "uint256"
|
|
393
257
|
}
|
|
394
258
|
],
|
|
395
|
-
"name": "
|
|
259
|
+
"name": "increaseApproval",
|
|
396
260
|
"outputs": [
|
|
397
261
|
{
|
|
398
262
|
"name": "",
|
|
@@ -407,11 +271,15 @@ exports.Metaverseconvergence_jsonAbi = [
|
|
|
407
271
|
"constant": true,
|
|
408
272
|
"inputs": [
|
|
409
273
|
{
|
|
410
|
-
"name": "
|
|
274
|
+
"name": "_owner",
|
|
275
|
+
"type": "address"
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"name": "_spender",
|
|
411
279
|
"type": "address"
|
|
412
280
|
}
|
|
413
281
|
],
|
|
414
|
-
"name": "
|
|
282
|
+
"name": "allowance",
|
|
415
283
|
"outputs": [
|
|
416
284
|
{
|
|
417
285
|
"name": "",
|
|
@@ -424,50 +292,18 @@ exports.Metaverseconvergence_jsonAbi = [
|
|
|
424
292
|
},
|
|
425
293
|
{
|
|
426
294
|
"constant": false,
|
|
427
|
-
"inputs": [
|
|
428
|
-
|
|
429
|
-
"name": "_holder",
|
|
430
|
-
"type": "address"
|
|
431
|
-
},
|
|
432
|
-
{
|
|
433
|
-
"name": "_amount",
|
|
434
|
-
"type": "uint256"
|
|
435
|
-
},
|
|
436
|
-
{
|
|
437
|
-
"name": "_releaseTime",
|
|
438
|
-
"type": "uint256"
|
|
439
|
-
}
|
|
440
|
-
],
|
|
441
|
-
"name": "lock",
|
|
295
|
+
"inputs": [],
|
|
296
|
+
"name": "enableTransfer",
|
|
442
297
|
"outputs": [],
|
|
443
298
|
"payable": false,
|
|
444
299
|
"stateMutability": "nonpayable",
|
|
445
300
|
"type": "function"
|
|
446
301
|
},
|
|
447
|
-
{
|
|
448
|
-
"constant": true,
|
|
449
|
-
"inputs": [
|
|
450
|
-
{
|
|
451
|
-
"name": "_target",
|
|
452
|
-
"type": "address"
|
|
453
|
-
}
|
|
454
|
-
],
|
|
455
|
-
"name": "isFrozen",
|
|
456
|
-
"outputs": [
|
|
457
|
-
{
|
|
458
|
-
"name": "",
|
|
459
|
-
"type": "bool"
|
|
460
|
-
}
|
|
461
|
-
],
|
|
462
|
-
"payable": false,
|
|
463
|
-
"stateMutability": "view",
|
|
464
|
-
"type": "function"
|
|
465
|
-
},
|
|
466
302
|
{
|
|
467
303
|
"constant": false,
|
|
468
304
|
"inputs": [
|
|
469
305
|
{
|
|
470
|
-
"name": "
|
|
306
|
+
"name": "newOwner",
|
|
471
307
|
"type": "address"
|
|
472
308
|
}
|
|
473
309
|
],
|
|
@@ -487,41 +323,17 @@ exports.Metaverseconvergence_jsonAbi = [
|
|
|
487
323
|
"anonymous": false,
|
|
488
324
|
"inputs": [
|
|
489
325
|
{
|
|
490
|
-
"indexed":
|
|
491
|
-
"name": "
|
|
492
|
-
"type": "address"
|
|
493
|
-
}
|
|
494
|
-
],
|
|
495
|
-
"name": "OwnershipRenounced",
|
|
496
|
-
"type": "event"
|
|
497
|
-
},
|
|
498
|
-
{
|
|
499
|
-
"anonymous": false,
|
|
500
|
-
"inputs": [
|
|
501
|
-
{
|
|
502
|
-
"indexed": true,
|
|
503
|
-
"name": "previousOwner",
|
|
326
|
+
"indexed": false,
|
|
327
|
+
"name": "burner",
|
|
504
328
|
"type": "address"
|
|
505
329
|
},
|
|
506
330
|
{
|
|
507
|
-
"indexed":
|
|
508
|
-
"name": "
|
|
509
|
-
"type": "
|
|
331
|
+
"indexed": false,
|
|
332
|
+
"name": "value",
|
|
333
|
+
"type": "uint256"
|
|
510
334
|
}
|
|
511
335
|
],
|
|
512
|
-
"name": "
|
|
513
|
-
"type": "event"
|
|
514
|
-
},
|
|
515
|
-
{
|
|
516
|
-
"anonymous": false,
|
|
517
|
-
"inputs": [],
|
|
518
|
-
"name": "Pause",
|
|
519
|
-
"type": "event"
|
|
520
|
-
},
|
|
521
|
-
{
|
|
522
|
-
"anonymous": false,
|
|
523
|
-
"inputs": [],
|
|
524
|
-
"name": "Unpause",
|
|
336
|
+
"name": "Burn",
|
|
525
337
|
"type": "event"
|
|
526
338
|
},
|
|
527
339
|
{
|
|
@@ -529,11 +341,11 @@ exports.Metaverseconvergence_jsonAbi = [
|
|
|
529
341
|
"inputs": [
|
|
530
342
|
{
|
|
531
343
|
"indexed": false,
|
|
532
|
-
"name": "
|
|
344
|
+
"name": "owner",
|
|
533
345
|
"type": "address"
|
|
534
346
|
}
|
|
535
347
|
],
|
|
536
|
-
"name": "
|
|
348
|
+
"name": "TransferEnabled",
|
|
537
349
|
"type": "event"
|
|
538
350
|
},
|
|
539
351
|
{
|
|
@@ -541,11 +353,11 @@ exports.Metaverseconvergence_jsonAbi = [
|
|
|
541
353
|
"inputs": [
|
|
542
354
|
{
|
|
543
355
|
"indexed": false,
|
|
544
|
-
"name": "
|
|
356
|
+
"name": "owner",
|
|
545
357
|
"type": "address"
|
|
546
358
|
}
|
|
547
359
|
],
|
|
548
|
-
"name": "
|
|
360
|
+
"name": "TransferDisabled",
|
|
549
361
|
"type": "event"
|
|
550
362
|
},
|
|
551
363
|
{
|
|
@@ -553,16 +365,16 @@ exports.Metaverseconvergence_jsonAbi = [
|
|
|
553
365
|
"inputs": [
|
|
554
366
|
{
|
|
555
367
|
"indexed": true,
|
|
556
|
-
"name": "
|
|
368
|
+
"name": "previousOwner",
|
|
557
369
|
"type": "address"
|
|
558
370
|
},
|
|
559
371
|
{
|
|
560
|
-
"indexed":
|
|
561
|
-
"name": "
|
|
562
|
-
"type": "
|
|
372
|
+
"indexed": true,
|
|
373
|
+
"name": "newOwner",
|
|
374
|
+
"type": "address"
|
|
563
375
|
}
|
|
564
376
|
],
|
|
565
|
-
"name": "
|
|
377
|
+
"name": "OwnershipTransferred",
|
|
566
378
|
"type": "event"
|
|
567
379
|
},
|
|
568
380
|
{
|
|
@@ -570,29 +382,12 @@ exports.Metaverseconvergence_jsonAbi = [
|
|
|
570
382
|
"inputs": [
|
|
571
383
|
{
|
|
572
384
|
"indexed": true,
|
|
573
|
-
"name": "
|
|
385
|
+
"name": "owner",
|
|
574
386
|
"type": "address"
|
|
575
387
|
},
|
|
576
|
-
{
|
|
577
|
-
"indexed": false,
|
|
578
|
-
"name": "value",
|
|
579
|
-
"type": "uint256"
|
|
580
|
-
},
|
|
581
|
-
{
|
|
582
|
-
"indexed": false,
|
|
583
|
-
"name": "releaseTime",
|
|
584
|
-
"type": "uint256"
|
|
585
|
-
}
|
|
586
|
-
],
|
|
587
|
-
"name": "Lock",
|
|
588
|
-
"type": "event"
|
|
589
|
-
},
|
|
590
|
-
{
|
|
591
|
-
"anonymous": false,
|
|
592
|
-
"inputs": [
|
|
593
388
|
{
|
|
594
389
|
"indexed": true,
|
|
595
|
-
"name": "
|
|
390
|
+
"name": "spender",
|
|
596
391
|
"type": "address"
|
|
597
392
|
},
|
|
598
393
|
{
|
|
@@ -601,7 +396,7 @@ exports.Metaverseconvergence_jsonAbi = [
|
|
|
601
396
|
"type": "uint256"
|
|
602
397
|
}
|
|
603
398
|
],
|
|
604
|
-
"name": "
|
|
399
|
+
"name": "Approval",
|
|
605
400
|
"type": "event"
|
|
606
401
|
},
|
|
607
402
|
{
|
|
@@ -625,32 +420,10 @@ exports.Metaverseconvergence_jsonAbi = [
|
|
|
625
420
|
],
|
|
626
421
|
"name": "Transfer",
|
|
627
422
|
"type": "event"
|
|
628
|
-
},
|
|
629
|
-
{
|
|
630
|
-
"anonymous": false,
|
|
631
|
-
"inputs": [
|
|
632
|
-
{
|
|
633
|
-
"indexed": true,
|
|
634
|
-
"name": "owner",
|
|
635
|
-
"type": "address"
|
|
636
|
-
},
|
|
637
|
-
{
|
|
638
|
-
"indexed": true,
|
|
639
|
-
"name": "spender",
|
|
640
|
-
"type": "address"
|
|
641
|
-
},
|
|
642
|
-
{
|
|
643
|
-
"indexed": false,
|
|
644
|
-
"name": "value",
|
|
645
|
-
"type": "uint256"
|
|
646
|
-
}
|
|
647
|
-
],
|
|
648
|
-
"name": "Approval",
|
|
649
|
-
"type": "event"
|
|
650
423
|
}
|
|
651
424
|
];
|
|
652
425
|
/**
|
|
653
|
-
*
|
|
426
|
+
* Metadium_json Contract Class
|
|
654
427
|
*
|
|
655
428
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
656
429
|
*
|
|
@@ -658,12 +431,12 @@ exports.Metaverseconvergence_jsonAbi = [
|
|
|
658
431
|
* ```typescript
|
|
659
432
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
660
433
|
* import { mainnet } from 'viem/chains';
|
|
661
|
-
* import {
|
|
434
|
+
* import { Metadium_json } from 'Metadium_json';
|
|
662
435
|
*
|
|
663
436
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
664
437
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
665
438
|
*
|
|
666
|
-
* const contract = new
|
|
439
|
+
* const contract = new Metadium_json('0x...', { publicClient, walletClient });
|
|
667
440
|
*
|
|
668
441
|
* // Read functions
|
|
669
442
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -681,13 +454,13 @@ exports.Metaverseconvergence_jsonAbi = [
|
|
|
681
454
|
* });
|
|
682
455
|
* ```
|
|
683
456
|
*/
|
|
684
|
-
class
|
|
457
|
+
class Metadium_json {
|
|
685
458
|
constructor(address, clients) {
|
|
686
459
|
this.contractAddress = address;
|
|
687
460
|
this.publicClient = clients.publicClient;
|
|
688
461
|
this.contract = (0, viem_1.getContract)({
|
|
689
462
|
address,
|
|
690
|
-
abi: exports.
|
|
463
|
+
abi: exports.Metadium_jsonAbi,
|
|
691
464
|
client: {
|
|
692
465
|
public: clients.publicClient,
|
|
693
466
|
wallet: clients.walletClient,
|
|
@@ -721,39 +494,32 @@ class Metaverseconvergence_json {
|
|
|
721
494
|
return this.contract.read.totalSupply();
|
|
722
495
|
}
|
|
723
496
|
/**
|
|
724
|
-
*
|
|
725
|
-
* view
|
|
726
|
-
*/
|
|
727
|
-
async decimals() {
|
|
728
|
-
return this.contract.read.decimals();
|
|
729
|
-
}
|
|
730
|
-
/**
|
|
731
|
-
* initialSupply
|
|
497
|
+
* INITIAL_SUPPLY
|
|
732
498
|
* view
|
|
733
499
|
*/
|
|
734
|
-
async
|
|
735
|
-
return this.contract.read.
|
|
500
|
+
async INITIAL_SUPPLY() {
|
|
501
|
+
return this.contract.read.INITIAL_SUPPLY();
|
|
736
502
|
}
|
|
737
503
|
/**
|
|
738
|
-
*
|
|
504
|
+
* decimals
|
|
739
505
|
* view
|
|
740
506
|
*/
|
|
741
|
-
async
|
|
742
|
-
return this.contract.read.
|
|
507
|
+
async decimals() {
|
|
508
|
+
return this.contract.read.decimals();
|
|
743
509
|
}
|
|
744
510
|
/**
|
|
745
|
-
*
|
|
511
|
+
* transferEnabled
|
|
746
512
|
* view
|
|
747
513
|
*/
|
|
748
|
-
async
|
|
749
|
-
return this.contract.read.
|
|
514
|
+
async transferEnabled() {
|
|
515
|
+
return this.contract.read.transferEnabled();
|
|
750
516
|
}
|
|
751
517
|
/**
|
|
752
518
|
* balanceOf
|
|
753
519
|
* view
|
|
754
520
|
*/
|
|
755
|
-
async balanceOf(
|
|
756
|
-
return this.contract.read.balanceOf([
|
|
521
|
+
async balanceOf(_owner) {
|
|
522
|
+
return this.contract.read.balanceOf([_owner]);
|
|
757
523
|
}
|
|
758
524
|
/**
|
|
759
525
|
* owner
|
|
@@ -773,176 +539,107 @@ class Metaverseconvergence_json {
|
|
|
773
539
|
* allowance
|
|
774
540
|
* view
|
|
775
541
|
*/
|
|
776
|
-
async allowance(
|
|
777
|
-
return this.contract.read.allowance([
|
|
778
|
-
}
|
|
779
|
-
/**
|
|
780
|
-
* lockCount
|
|
781
|
-
* view
|
|
782
|
-
*/
|
|
783
|
-
async lockCount(_holder) {
|
|
784
|
-
return this.contract.read.lockCount([_holder]);
|
|
785
|
-
}
|
|
786
|
-
/**
|
|
787
|
-
* isFrozen
|
|
788
|
-
* view
|
|
789
|
-
*/
|
|
790
|
-
async isFrozen(_target) {
|
|
791
|
-
return this.contract.read.isFrozen([_target]);
|
|
542
|
+
async allowance(_owner, _spender) {
|
|
543
|
+
return this.contract.read.allowance([_owner, _spender]);
|
|
792
544
|
}
|
|
793
545
|
/**
|
|
794
546
|
* approve
|
|
795
547
|
* nonpayable
|
|
796
548
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
797
549
|
*/
|
|
798
|
-
async approve(
|
|
550
|
+
async approve(_spender, _value, options) {
|
|
799
551
|
if (!this.contract.write) {
|
|
800
552
|
throw new Error('Wallet client is required for write operations');
|
|
801
553
|
}
|
|
802
|
-
return this.contract.write.approve([
|
|
554
|
+
return this.contract.write.approve([_spender, _value], options);
|
|
803
555
|
}
|
|
804
556
|
/**
|
|
805
557
|
* transferFrom
|
|
806
558
|
* nonpayable
|
|
807
559
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
808
560
|
*/
|
|
809
|
-
async transferFrom(
|
|
810
|
-
if (!this.contract.write) {
|
|
811
|
-
throw new Error('Wallet client is required for write operations');
|
|
812
|
-
}
|
|
813
|
-
return this.contract.write.transferFrom([_from, _to, _value], options);
|
|
814
|
-
}
|
|
815
|
-
/**
|
|
816
|
-
* increaseAllowance
|
|
817
|
-
* nonpayable
|
|
818
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
819
|
-
*/
|
|
820
|
-
async increaseAllowance(spender, addedValue, options) {
|
|
821
|
-
if (!this.contract.write) {
|
|
822
|
-
throw new Error('Wallet client is required for write operations');
|
|
823
|
-
}
|
|
824
|
-
return this.contract.write.increaseAllowance([spender, addedValue], options);
|
|
825
|
-
}
|
|
826
|
-
/**
|
|
827
|
-
* unpause
|
|
828
|
-
* nonpayable
|
|
829
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
830
|
-
*/
|
|
831
|
-
async unpause(options) {
|
|
832
|
-
if (!this.contract.write) {
|
|
833
|
-
throw new Error('Wallet client is required for write operations');
|
|
834
|
-
}
|
|
835
|
-
return this.contract.write.unpause(options);
|
|
836
|
-
}
|
|
837
|
-
/**
|
|
838
|
-
* unfreeze
|
|
839
|
-
* nonpayable
|
|
840
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
841
|
-
*/
|
|
842
|
-
async unfreeze(_target, options) {
|
|
561
|
+
async transferFrom(from, to, value, options) {
|
|
843
562
|
if (!this.contract.write) {
|
|
844
563
|
throw new Error('Wallet client is required for write operations');
|
|
845
564
|
}
|
|
846
|
-
return this.contract.write.
|
|
565
|
+
return this.contract.write.transferFrom([from, to, value], options);
|
|
847
566
|
}
|
|
848
567
|
/**
|
|
849
|
-
*
|
|
850
|
-
* nonpayable
|
|
851
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
852
|
-
*/
|
|
853
|
-
async unlock(_holder, i, options) {
|
|
854
|
-
if (!this.contract.write) {
|
|
855
|
-
throw new Error('Wallet client is required for write operations');
|
|
856
|
-
}
|
|
857
|
-
return this.contract.write.unlock([_holder, i], options);
|
|
858
|
-
}
|
|
859
|
-
/**
|
|
860
|
-
* pause
|
|
861
|
-
* nonpayable
|
|
862
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
863
|
-
*/
|
|
864
|
-
async pause(options) {
|
|
865
|
-
if (!this.contract.write) {
|
|
866
|
-
throw new Error('Wallet client is required for write operations');
|
|
867
|
-
}
|
|
868
|
-
return this.contract.write.pause(options);
|
|
869
|
-
}
|
|
870
|
-
/**
|
|
871
|
-
* freeze
|
|
568
|
+
* burn
|
|
872
569
|
* nonpayable
|
|
873
570
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
874
571
|
*/
|
|
875
|
-
async
|
|
572
|
+
async burn(_value, options) {
|
|
876
573
|
if (!this.contract.write) {
|
|
877
574
|
throw new Error('Wallet client is required for write operations');
|
|
878
575
|
}
|
|
879
|
-
return this.contract.write.
|
|
576
|
+
return this.contract.write.burn([_value], options);
|
|
880
577
|
}
|
|
881
578
|
/**
|
|
882
|
-
*
|
|
579
|
+
* decreaseApproval
|
|
883
580
|
* nonpayable
|
|
884
581
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
885
582
|
*/
|
|
886
|
-
async
|
|
583
|
+
async decreaseApproval(_spender, _subtractedValue, options) {
|
|
887
584
|
if (!this.contract.write) {
|
|
888
585
|
throw new Error('Wallet client is required for write operations');
|
|
889
586
|
}
|
|
890
|
-
return this.contract.write.
|
|
587
|
+
return this.contract.write.decreaseApproval([_spender, _subtractedValue], options);
|
|
891
588
|
}
|
|
892
589
|
/**
|
|
893
|
-
*
|
|
590
|
+
* transfer
|
|
894
591
|
* nonpayable
|
|
895
592
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
896
593
|
*/
|
|
897
|
-
async
|
|
594
|
+
async transfer(to, value, options) {
|
|
898
595
|
if (!this.contract.write) {
|
|
899
596
|
throw new Error('Wallet client is required for write operations');
|
|
900
597
|
}
|
|
901
|
-
return this.contract.write.
|
|
598
|
+
return this.contract.write.transfer([to, value], options);
|
|
902
599
|
}
|
|
903
600
|
/**
|
|
904
|
-
*
|
|
601
|
+
* disableTransfer
|
|
905
602
|
* nonpayable
|
|
906
603
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
907
604
|
*/
|
|
908
|
-
async
|
|
605
|
+
async disableTransfer(options) {
|
|
909
606
|
if (!this.contract.write) {
|
|
910
607
|
throw new Error('Wallet client is required for write operations');
|
|
911
608
|
}
|
|
912
|
-
return this.contract.write.
|
|
609
|
+
return this.contract.write.disableTransfer(options);
|
|
913
610
|
}
|
|
914
611
|
/**
|
|
915
|
-
*
|
|
612
|
+
* increaseApproval
|
|
916
613
|
* nonpayable
|
|
917
614
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
918
615
|
*/
|
|
919
|
-
async
|
|
616
|
+
async increaseApproval(_spender, _addedValue, options) {
|
|
920
617
|
if (!this.contract.write) {
|
|
921
618
|
throw new Error('Wallet client is required for write operations');
|
|
922
619
|
}
|
|
923
|
-
return this.contract.write.
|
|
620
|
+
return this.contract.write.increaseApproval([_spender, _addedValue], options);
|
|
924
621
|
}
|
|
925
622
|
/**
|
|
926
|
-
*
|
|
623
|
+
* enableTransfer
|
|
927
624
|
* nonpayable
|
|
928
625
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
929
626
|
*/
|
|
930
|
-
async
|
|
627
|
+
async enableTransfer(options) {
|
|
931
628
|
if (!this.contract.write) {
|
|
932
629
|
throw new Error('Wallet client is required for write operations');
|
|
933
630
|
}
|
|
934
|
-
return this.contract.write.
|
|
631
|
+
return this.contract.write.enableTransfer(options);
|
|
935
632
|
}
|
|
936
633
|
/**
|
|
937
634
|
* transferOwnership
|
|
938
635
|
* nonpayable
|
|
939
636
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
940
637
|
*/
|
|
941
|
-
async transferOwnership(
|
|
638
|
+
async transferOwnership(newOwner, options) {
|
|
942
639
|
if (!this.contract.write) {
|
|
943
640
|
throw new Error('Wallet client is required for write operations');
|
|
944
641
|
}
|
|
945
|
-
return this.contract.write.transferOwnership([
|
|
642
|
+
return this.contract.write.transferOwnership([newOwner], options);
|
|
946
643
|
}
|
|
947
644
|
/**
|
|
948
645
|
* Simulate contract write operations (dry-run without sending transaction)
|
|
@@ -963,112 +660,72 @@ class Metaverseconvergence_json {
|
|
|
963
660
|
* Returns gas estimate and result without sending transaction
|
|
964
661
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
965
662
|
*/
|
|
966
|
-
async approve(
|
|
967
|
-
return contract.simulate.approve([
|
|
663
|
+
async approve(_spender, _value, options) {
|
|
664
|
+
return contract.simulate.approve([_spender, _value], options);
|
|
968
665
|
},
|
|
969
666
|
/**
|
|
970
667
|
* Simulate transferFrom
|
|
971
668
|
* Returns gas estimate and result without sending transaction
|
|
972
669
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
973
670
|
*/
|
|
974
|
-
async transferFrom(
|
|
975
|
-
return contract.simulate.transferFrom([
|
|
976
|
-
},
|
|
977
|
-
/**
|
|
978
|
-
* Simulate increaseAllowance
|
|
979
|
-
* Returns gas estimate and result without sending transaction
|
|
980
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
981
|
-
*/
|
|
982
|
-
async increaseAllowance(spender, addedValue, options) {
|
|
983
|
-
return contract.simulate.increaseAllowance([spender, addedValue], options);
|
|
984
|
-
},
|
|
985
|
-
/**
|
|
986
|
-
* Simulate unpause
|
|
987
|
-
* Returns gas estimate and result without sending transaction
|
|
988
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
989
|
-
*/
|
|
990
|
-
async unpause(options) {
|
|
991
|
-
return contract.simulate.unpause(options);
|
|
671
|
+
async transferFrom(from, to, value, options) {
|
|
672
|
+
return contract.simulate.transferFrom([from, to, value], options);
|
|
992
673
|
},
|
|
993
674
|
/**
|
|
994
|
-
* Simulate
|
|
995
|
-
* Returns gas estimate and result without sending transaction
|
|
996
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
997
|
-
*/
|
|
998
|
-
async unfreeze(_target, options) {
|
|
999
|
-
return contract.simulate.unfreeze([_target], options);
|
|
1000
|
-
},
|
|
1001
|
-
/**
|
|
1002
|
-
* Simulate unlock
|
|
1003
|
-
* Returns gas estimate and result without sending transaction
|
|
1004
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1005
|
-
*/
|
|
1006
|
-
async unlock(_holder, i, options) {
|
|
1007
|
-
return contract.simulate.unlock([_holder, i], options);
|
|
1008
|
-
},
|
|
1009
|
-
/**
|
|
1010
|
-
* Simulate pause
|
|
1011
|
-
* Returns gas estimate and result without sending transaction
|
|
1012
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1013
|
-
*/
|
|
1014
|
-
async pause(options) {
|
|
1015
|
-
return contract.simulate.pause(options);
|
|
1016
|
-
},
|
|
1017
|
-
/**
|
|
1018
|
-
* Simulate freeze
|
|
675
|
+
* Simulate burn
|
|
1019
676
|
* Returns gas estimate and result without sending transaction
|
|
1020
677
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1021
678
|
*/
|
|
1022
|
-
async
|
|
1023
|
-
return contract.simulate.
|
|
679
|
+
async burn(_value, options) {
|
|
680
|
+
return contract.simulate.burn([_value], options);
|
|
1024
681
|
},
|
|
1025
682
|
/**
|
|
1026
|
-
* Simulate
|
|
683
|
+
* Simulate decreaseApproval
|
|
1027
684
|
* Returns gas estimate and result without sending transaction
|
|
1028
685
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1029
686
|
*/
|
|
1030
|
-
async
|
|
1031
|
-
return contract.simulate.
|
|
687
|
+
async decreaseApproval(_spender, _subtractedValue, options) {
|
|
688
|
+
return contract.simulate.decreaseApproval([_spender, _subtractedValue], options);
|
|
1032
689
|
},
|
|
1033
690
|
/**
|
|
1034
|
-
* Simulate
|
|
691
|
+
* Simulate transfer
|
|
1035
692
|
* Returns gas estimate and result without sending transaction
|
|
1036
693
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1037
694
|
*/
|
|
1038
|
-
async
|
|
1039
|
-
return contract.simulate.
|
|
695
|
+
async transfer(to, value, options) {
|
|
696
|
+
return contract.simulate.transfer([to, value], options);
|
|
1040
697
|
},
|
|
1041
698
|
/**
|
|
1042
|
-
* Simulate
|
|
699
|
+
* Simulate disableTransfer
|
|
1043
700
|
* Returns gas estimate and result without sending transaction
|
|
1044
701
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1045
702
|
*/
|
|
1046
|
-
async
|
|
1047
|
-
return contract.simulate.
|
|
703
|
+
async disableTransfer(options) {
|
|
704
|
+
return contract.simulate.disableTransfer(options);
|
|
1048
705
|
},
|
|
1049
706
|
/**
|
|
1050
|
-
* Simulate
|
|
707
|
+
* Simulate increaseApproval
|
|
1051
708
|
* Returns gas estimate and result without sending transaction
|
|
1052
709
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1053
710
|
*/
|
|
1054
|
-
async
|
|
1055
|
-
return contract.simulate.
|
|
711
|
+
async increaseApproval(_spender, _addedValue, options) {
|
|
712
|
+
return contract.simulate.increaseApproval([_spender, _addedValue], options);
|
|
1056
713
|
},
|
|
1057
714
|
/**
|
|
1058
|
-
* Simulate
|
|
715
|
+
* Simulate enableTransfer
|
|
1059
716
|
* Returns gas estimate and result without sending transaction
|
|
1060
717
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1061
718
|
*/
|
|
1062
|
-
async
|
|
1063
|
-
return contract.simulate.
|
|
719
|
+
async enableTransfer(options) {
|
|
720
|
+
return contract.simulate.enableTransfer(options);
|
|
1064
721
|
},
|
|
1065
722
|
/**
|
|
1066
723
|
* Simulate transferOwnership
|
|
1067
724
|
* Returns gas estimate and result without sending transaction
|
|
1068
725
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1069
726
|
*/
|
|
1070
|
-
async transferOwnership(
|
|
1071
|
-
return contract.simulate.transferOwnership([
|
|
727
|
+
async transferOwnership(newOwner, options) {
|
|
728
|
+
return contract.simulate.transferOwnership([newOwner], options);
|
|
1072
729
|
}
|
|
1073
730
|
};
|
|
1074
731
|
}
|
|
@@ -1087,90 +744,16 @@ class Metaverseconvergence_json {
|
|
|
1087
744
|
get watch() {
|
|
1088
745
|
return {
|
|
1089
746
|
/**
|
|
1090
|
-
* Watch
|
|
1091
|
-
* @param callback Function to call when event is emitted
|
|
1092
|
-
* @param filter Optional filter for indexed parameters
|
|
1093
|
-
* @returns Unwatch function to stop listening
|
|
1094
|
-
*/
|
|
1095
|
-
OwnershipRenounced: (callback, filter) => {
|
|
1096
|
-
return this.publicClient.watchContractEvent({
|
|
1097
|
-
address: this.contractAddress,
|
|
1098
|
-
abi: exports.Metaverseconvergence_jsonAbi,
|
|
1099
|
-
eventName: 'OwnershipRenounced',
|
|
1100
|
-
args: filter,
|
|
1101
|
-
onLogs: (logs) => {
|
|
1102
|
-
logs.forEach((log) => {
|
|
1103
|
-
callback(log.args);
|
|
1104
|
-
});
|
|
1105
|
-
},
|
|
1106
|
-
});
|
|
1107
|
-
},
|
|
1108
|
-
/**
|
|
1109
|
-
* Watch OwnershipTransferred events
|
|
1110
|
-
* @param callback Function to call when event is emitted
|
|
1111
|
-
* @param filter Optional filter for indexed parameters
|
|
1112
|
-
* @returns Unwatch function to stop listening
|
|
1113
|
-
*/
|
|
1114
|
-
OwnershipTransferred: (callback, filter) => {
|
|
1115
|
-
return this.publicClient.watchContractEvent({
|
|
1116
|
-
address: this.contractAddress,
|
|
1117
|
-
abi: exports.Metaverseconvergence_jsonAbi,
|
|
1118
|
-
eventName: 'OwnershipTransferred',
|
|
1119
|
-
args: filter,
|
|
1120
|
-
onLogs: (logs) => {
|
|
1121
|
-
logs.forEach((log) => {
|
|
1122
|
-
callback(log.args);
|
|
1123
|
-
});
|
|
1124
|
-
},
|
|
1125
|
-
});
|
|
1126
|
-
},
|
|
1127
|
-
/**
|
|
1128
|
-
* Watch Pause events
|
|
1129
|
-
* @param callback Function to call when event is emitted
|
|
1130
|
-
* @param filter Optional filter for indexed parameters
|
|
1131
|
-
* @returns Unwatch function to stop listening
|
|
1132
|
-
*/
|
|
1133
|
-
Pause: (callback) => {
|
|
1134
|
-
return this.publicClient.watchContractEvent({
|
|
1135
|
-
address: this.contractAddress,
|
|
1136
|
-
abi: exports.Metaverseconvergence_jsonAbi,
|
|
1137
|
-
eventName: 'Pause',
|
|
1138
|
-
onLogs: (logs) => {
|
|
1139
|
-
logs.forEach((log) => {
|
|
1140
|
-
callback(log.args);
|
|
1141
|
-
});
|
|
1142
|
-
},
|
|
1143
|
-
});
|
|
1144
|
-
},
|
|
1145
|
-
/**
|
|
1146
|
-
* Watch Unpause events
|
|
1147
|
-
* @param callback Function to call when event is emitted
|
|
1148
|
-
* @param filter Optional filter for indexed parameters
|
|
1149
|
-
* @returns Unwatch function to stop listening
|
|
1150
|
-
*/
|
|
1151
|
-
Unpause: (callback) => {
|
|
1152
|
-
return this.publicClient.watchContractEvent({
|
|
1153
|
-
address: this.contractAddress,
|
|
1154
|
-
abi: exports.Metaverseconvergence_jsonAbi,
|
|
1155
|
-
eventName: 'Unpause',
|
|
1156
|
-
onLogs: (logs) => {
|
|
1157
|
-
logs.forEach((log) => {
|
|
1158
|
-
callback(log.args);
|
|
1159
|
-
});
|
|
1160
|
-
},
|
|
1161
|
-
});
|
|
1162
|
-
},
|
|
1163
|
-
/**
|
|
1164
|
-
* Watch Frozen events
|
|
747
|
+
* Watch Burn events
|
|
1165
748
|
* @param callback Function to call when event is emitted
|
|
1166
749
|
* @param filter Optional filter for indexed parameters
|
|
1167
750
|
* @returns Unwatch function to stop listening
|
|
1168
751
|
*/
|
|
1169
|
-
|
|
752
|
+
Burn: (callback) => {
|
|
1170
753
|
return this.publicClient.watchContractEvent({
|
|
1171
754
|
address: this.contractAddress,
|
|
1172
|
-
abi: exports.
|
|
1173
|
-
eventName: '
|
|
755
|
+
abi: exports.Metadium_jsonAbi,
|
|
756
|
+
eventName: 'Burn',
|
|
1174
757
|
onLogs: (logs) => {
|
|
1175
758
|
logs.forEach((log) => {
|
|
1176
759
|
callback(log.args);
|
|
@@ -1179,16 +762,16 @@ class Metaverseconvergence_json {
|
|
|
1179
762
|
});
|
|
1180
763
|
},
|
|
1181
764
|
/**
|
|
1182
|
-
* Watch
|
|
765
|
+
* Watch TransferEnabled events
|
|
1183
766
|
* @param callback Function to call when event is emitted
|
|
1184
767
|
* @param filter Optional filter for indexed parameters
|
|
1185
768
|
* @returns Unwatch function to stop listening
|
|
1186
769
|
*/
|
|
1187
|
-
|
|
770
|
+
TransferEnabled: (callback) => {
|
|
1188
771
|
return this.publicClient.watchContractEvent({
|
|
1189
772
|
address: this.contractAddress,
|
|
1190
|
-
abi: exports.
|
|
1191
|
-
eventName: '
|
|
773
|
+
abi: exports.Metadium_jsonAbi,
|
|
774
|
+
eventName: 'TransferEnabled',
|
|
1192
775
|
onLogs: (logs) => {
|
|
1193
776
|
logs.forEach((log) => {
|
|
1194
777
|
callback(log.args);
|
|
@@ -1197,17 +780,16 @@ class Metaverseconvergence_json {
|
|
|
1197
780
|
});
|
|
1198
781
|
},
|
|
1199
782
|
/**
|
|
1200
|
-
* Watch
|
|
783
|
+
* Watch TransferDisabled events
|
|
1201
784
|
* @param callback Function to call when event is emitted
|
|
1202
785
|
* @param filter Optional filter for indexed parameters
|
|
1203
786
|
* @returns Unwatch function to stop listening
|
|
1204
787
|
*/
|
|
1205
|
-
|
|
788
|
+
TransferDisabled: (callback) => {
|
|
1206
789
|
return this.publicClient.watchContractEvent({
|
|
1207
790
|
address: this.contractAddress,
|
|
1208
|
-
abi: exports.
|
|
1209
|
-
eventName: '
|
|
1210
|
-
args: filter,
|
|
791
|
+
abi: exports.Metadium_jsonAbi,
|
|
792
|
+
eventName: 'TransferDisabled',
|
|
1211
793
|
onLogs: (logs) => {
|
|
1212
794
|
logs.forEach((log) => {
|
|
1213
795
|
callback(log.args);
|
|
@@ -1216,16 +798,16 @@ class Metaverseconvergence_json {
|
|
|
1216
798
|
});
|
|
1217
799
|
},
|
|
1218
800
|
/**
|
|
1219
|
-
* Watch
|
|
801
|
+
* Watch OwnershipTransferred events
|
|
1220
802
|
* @param callback Function to call when event is emitted
|
|
1221
803
|
* @param filter Optional filter for indexed parameters
|
|
1222
804
|
* @returns Unwatch function to stop listening
|
|
1223
805
|
*/
|
|
1224
|
-
|
|
806
|
+
OwnershipTransferred: (callback, filter) => {
|
|
1225
807
|
return this.publicClient.watchContractEvent({
|
|
1226
808
|
address: this.contractAddress,
|
|
1227
|
-
abi: exports.
|
|
1228
|
-
eventName: '
|
|
809
|
+
abi: exports.Metadium_jsonAbi,
|
|
810
|
+
eventName: 'OwnershipTransferred',
|
|
1229
811
|
args: filter,
|
|
1230
812
|
onLogs: (logs) => {
|
|
1231
813
|
logs.forEach((log) => {
|
|
@@ -1235,16 +817,16 @@ class Metaverseconvergence_json {
|
|
|
1235
817
|
});
|
|
1236
818
|
},
|
|
1237
819
|
/**
|
|
1238
|
-
* Watch
|
|
820
|
+
* Watch Approval events
|
|
1239
821
|
* @param callback Function to call when event is emitted
|
|
1240
822
|
* @param filter Optional filter for indexed parameters
|
|
1241
823
|
* @returns Unwatch function to stop listening
|
|
1242
824
|
*/
|
|
1243
|
-
|
|
825
|
+
Approval: (callback, filter) => {
|
|
1244
826
|
return this.publicClient.watchContractEvent({
|
|
1245
827
|
address: this.contractAddress,
|
|
1246
|
-
abi: exports.
|
|
1247
|
-
eventName: '
|
|
828
|
+
abi: exports.Metadium_jsonAbi,
|
|
829
|
+
eventName: 'Approval',
|
|
1248
830
|
args: filter,
|
|
1249
831
|
onLogs: (logs) => {
|
|
1250
832
|
logs.forEach((log) => {
|
|
@@ -1262,7 +844,7 @@ class Metaverseconvergence_json {
|
|
|
1262
844
|
Transfer: (callback, filter) => {
|
|
1263
845
|
return this.publicClient.watchContractEvent({
|
|
1264
846
|
address: this.contractAddress,
|
|
1265
|
-
abi: exports.
|
|
847
|
+
abi: exports.Metadium_jsonAbi,
|
|
1266
848
|
eventName: 'Transfer',
|
|
1267
849
|
args: filter,
|
|
1268
850
|
onLogs: (logs) => {
|
|
@@ -1271,27 +853,8 @@ class Metaverseconvergence_json {
|
|
|
1271
853
|
});
|
|
1272
854
|
},
|
|
1273
855
|
});
|
|
1274
|
-
},
|
|
1275
|
-
/**
|
|
1276
|
-
* Watch Approval events
|
|
1277
|
-
* @param callback Function to call when event is emitted
|
|
1278
|
-
* @param filter Optional filter for indexed parameters
|
|
1279
|
-
* @returns Unwatch function to stop listening
|
|
1280
|
-
*/
|
|
1281
|
-
Approval: (callback, filter) => {
|
|
1282
|
-
return this.publicClient.watchContractEvent({
|
|
1283
|
-
address: this.contractAddress,
|
|
1284
|
-
abi: exports.Metaverseconvergence_jsonAbi,
|
|
1285
|
-
eventName: 'Approval',
|
|
1286
|
-
args: filter,
|
|
1287
|
-
onLogs: (logs) => {
|
|
1288
|
-
logs.forEach((log) => {
|
|
1289
|
-
callback(log.args);
|
|
1290
|
-
});
|
|
1291
|
-
},
|
|
1292
|
-
});
|
|
1293
856
|
}
|
|
1294
857
|
};
|
|
1295
858
|
}
|
|
1296
859
|
}
|
|
1297
|
-
exports.
|
|
860
|
+
exports.Metadium_json = Metadium_json;
|