@dashevo/token-history-contract 2.0.0-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,760 @@
1
+ {
2
+ "burn": {
3
+ "type": "object",
4
+ "documentsMutable": false,
5
+ "canBeDeleted": false,
6
+ "creationRestrictionMode": 2,
7
+ "indices": [
8
+ {
9
+ "name": "byDate",
10
+ "properties": [
11
+ {
12
+ "tokenId": "asc"
13
+ },
14
+ {
15
+ "$createdAt": "asc"
16
+ }
17
+ ]
18
+ },
19
+ {
20
+ "name": "byAmount",
21
+ "properties": [
22
+ {
23
+ "tokenId": "asc"
24
+ },
25
+ {
26
+ "amount": "asc"
27
+ }
28
+ ]
29
+ },
30
+ {
31
+ "name": "byOwnerId",
32
+ "properties": [
33
+ {
34
+ "tokenId": "asc"
35
+ },
36
+ {
37
+ "$ownerId": "asc"
38
+ },
39
+ {
40
+ "$createdAt": "asc"
41
+ }
42
+ ]
43
+ }
44
+ ],
45
+ "properties": {
46
+ "tokenId": {
47
+ "type": "array",
48
+ "byteArray": true,
49
+ "minItems": 32,
50
+ "maxItems": 32,
51
+ "description": "The token ID",
52
+ "position": 0,
53
+ "contentMediaType": "application/x.dash.dpp.identifier"
54
+ },
55
+ "amount": {
56
+ "type": "integer",
57
+ "minimum": 0,
58
+ "description": "The amount that was burned",
59
+ "position": 1
60
+ },
61
+ "note": {
62
+ "type": "string",
63
+ "maxLength": 2048,
64
+ "description": "An optional explanation of why this burn took place",
65
+ "position": 2
66
+ }
67
+ },
68
+ "required": [
69
+ "tokenId",
70
+ "amount",
71
+ "$createdAt",
72
+ "$createdAtBlockHeight"
73
+ ],
74
+ "additionalProperties": false
75
+ },
76
+ "mint": {
77
+ "type": "object",
78
+ "documentsMutable": false,
79
+ "canBeDeleted": false,
80
+ "creationRestrictionMode": 2,
81
+ "indices": [
82
+ {
83
+ "name": "byDate",
84
+ "properties": [
85
+ {
86
+ "tokenId": "asc"
87
+ },
88
+ {
89
+ "$createdAt": "asc"
90
+ }
91
+ ]
92
+ },
93
+ {
94
+ "name": "byAmount",
95
+ "properties": [
96
+ {
97
+ "tokenId": "asc"
98
+ },
99
+ {
100
+ "amount": "asc"
101
+ }
102
+ ]
103
+ },
104
+ {
105
+ "name": "byOwnerId",
106
+ "properties": [
107
+ {
108
+ "tokenId": "asc"
109
+ },
110
+ {
111
+ "$ownerId": "asc"
112
+ },
113
+ {
114
+ "$createdAt": "asc"
115
+ }
116
+ ]
117
+ },
118
+ {
119
+ "name": "byRecipientId",
120
+ "properties": [
121
+ {
122
+ "tokenId": "asc"
123
+ },
124
+ {
125
+ "recipientId": "asc"
126
+ },
127
+ {
128
+ "$createdAt": "asc"
129
+ }
130
+ ]
131
+ }
132
+ ],
133
+ "properties": {
134
+ "tokenId": {
135
+ "type": "array",
136
+ "byteArray": true,
137
+ "minItems": 32,
138
+ "maxItems": 32,
139
+ "description": "The token ID",
140
+ "position": 0,
141
+ "contentMediaType": "application/x.dash.dpp.identifier"
142
+ },
143
+ "recipientId": {
144
+ "type": "array",
145
+ "byteArray": true,
146
+ "minItems": 32,
147
+ "maxItems": 32,
148
+ "description": "The token ID",
149
+ "position": 1,
150
+ "contentMediaType": "application/x.dash.dpp.identifier"
151
+ },
152
+ "amount": {
153
+ "type": "integer",
154
+ "minimum": 0,
155
+ "description": "The amount that was minted",
156
+ "position": 2
157
+ },
158
+ "note": {
159
+ "type": "string",
160
+ "maxLength": 2048,
161
+ "description": "An optional explanation of why this mint took place",
162
+ "position": 3
163
+ }
164
+ },
165
+ "required": [
166
+ "tokenId",
167
+ "amount",
168
+ "recipientId",
169
+ "$createdAt",
170
+ "$createdAtBlockHeight"
171
+ ],
172
+ "additionalProperties": false
173
+ },
174
+ "transfer": {
175
+ "type": "object",
176
+ "documentsMutable": false,
177
+ "canBeDeleted": false,
178
+ "creationRestrictionMode": 2,
179
+ "indices": [
180
+ {
181
+ "name": "byDate",
182
+ "properties": [
183
+ {
184
+ "tokenId": "asc"
185
+ },
186
+ {
187
+ "$createdAt": "asc"
188
+ }
189
+ ]
190
+ },
191
+ {
192
+ "name": "byAmount",
193
+ "properties": [
194
+ {
195
+ "tokenId": "asc"
196
+ },
197
+ {
198
+ "amount": "asc"
199
+ }
200
+ ]
201
+ },
202
+ {
203
+ "name": "from",
204
+ "properties": [
205
+ {
206
+ "tokenId": "asc"
207
+ },
208
+ {
209
+ "$ownerId": "asc"
210
+ },
211
+ {
212
+ "$createdAt": "asc"
213
+ }
214
+ ]
215
+ },
216
+ {
217
+ "name": "to",
218
+ "properties": [
219
+ {
220
+ "tokenId": "asc"
221
+ },
222
+ {
223
+ "toIdentityId": "asc"
224
+ },
225
+ {
226
+ "$createdAt": "asc"
227
+ }
228
+ ]
229
+ }
230
+ ],
231
+ "properties": {
232
+ "tokenId": {
233
+ "type": "array",
234
+ "byteArray": true,
235
+ "minItems": 32,
236
+ "maxItems": 32,
237
+ "description": "The token ID",
238
+ "position": 0,
239
+ "contentMediaType": "application/x.dash.dpp.identifier"
240
+ },
241
+ "amount": {
242
+ "type": "integer",
243
+ "minimum": 0,
244
+ "description": "The amount that was burned",
245
+ "position": 1
246
+ },
247
+ "toIdentityId": {
248
+ "type": "array",
249
+ "byteArray": true,
250
+ "minItems": 32,
251
+ "maxItems": 32,
252
+ "description": "The identity or the group Id",
253
+ "position": 2,
254
+ "contentMediaType": "application/x.dash.dpp.identifier"
255
+ },
256
+ "encryptedPersonalNote": {
257
+ "type": "array",
258
+ "byteArray": true,
259
+ "minItems": 32,
260
+ "maxItems": 2048,
261
+ "description": "An optional encrypted explanation of why this transfer took place only meant for the sender",
262
+ "position": 3
263
+ },
264
+ "encryptedSharedNote": {
265
+ "type": "array",
266
+ "byteArray": true,
267
+ "minItems": 32,
268
+ "maxItems": 2048,
269
+ "description": "An optional encrypted explanation of why this transfer took place shared between the sender and the receiver",
270
+ "position": 4
271
+ },
272
+ "publicNote": {
273
+ "type": "string",
274
+ "maxLength": 2048,
275
+ "description": "An optional public explanation of why this transfer took place",
276
+ "position": 5
277
+ },
278
+ "senderKeyIndex": {
279
+ "type": "integer",
280
+ "minimum": 0,
281
+ "description": "Used with the encrypted shared note",
282
+ "position": 6
283
+ },
284
+ "recipientKeyIndex": {
285
+ "type": "integer",
286
+ "minimum": 0,
287
+ "description": "Used with the encrypted shared note",
288
+ "position": 7
289
+ },
290
+ "rootEncryptionKeyIndex": {
291
+ "type": "integer",
292
+ "minimum": 0,
293
+ "description": "Used with the encrypted private note",
294
+ "position": 8
295
+ },
296
+ "derivationEncryptionKeyIndex": {
297
+ "type": "integer",
298
+ "minimum": 0,
299
+ "description": "Used with the encrypted private note",
300
+ "position": 9
301
+ }
302
+ },
303
+ "required": [
304
+ "tokenId",
305
+ "amount",
306
+ "toIdentityId",
307
+ "$createdAt",
308
+ "$createdAtBlockHeight"
309
+ ],
310
+ "additionalProperties": false
311
+ },
312
+ "freeze": {
313
+ "type": "object",
314
+ "documentsMutable": false,
315
+ "canBeDeleted": false,
316
+ "creationRestrictionMode": 2,
317
+ "indices": [
318
+ {
319
+ "name": "byOwnerId",
320
+ "properties": [
321
+ {
322
+ "tokenId": "asc"
323
+ },
324
+ {
325
+ "$ownerId": "asc"
326
+ },
327
+ {
328
+ "$createdAt": "asc"
329
+ }
330
+ ]
331
+ },
332
+ {
333
+ "name": "byFrozenIdentityId",
334
+ "properties": [
335
+ {
336
+ "tokenId": "asc"
337
+ },
338
+ {
339
+ "frozenIdentityId": "asc"
340
+ },
341
+ {
342
+ "$createdAt": "asc"
343
+ }
344
+ ]
345
+ }
346
+ ],
347
+ "properties": {
348
+ "tokenId": {
349
+ "type": "array",
350
+ "byteArray": true,
351
+ "minItems": 32,
352
+ "maxItems": 32,
353
+ "description": "The token ID",
354
+ "position": 0,
355
+ "contentMediaType": "application/x.dash.dpp.identifier"
356
+ },
357
+ "frozenIdentityId": {
358
+ "type": "array",
359
+ "byteArray": true,
360
+ "minItems": 32,
361
+ "maxItems": 32,
362
+ "description": "The identity Id of the frozen token account",
363
+ "position": 1,
364
+ "contentMediaType": "application/x.dash.dpp.identifier"
365
+ }
366
+ },
367
+ "required": [
368
+ "tokenId",
369
+ "frozenIdentityId",
370
+ "$createdAt",
371
+ "$createdAtBlockHeight"
372
+ ],
373
+ "additionalProperties": false
374
+ },
375
+ "unfreeze": {
376
+ "type": "object",
377
+ "documentsMutable": false,
378
+ "canBeDeleted": false,
379
+ "creationRestrictionMode": 2,
380
+ "indices": [
381
+ {
382
+ "name": "byOwnerId",
383
+ "properties": [
384
+ {
385
+ "tokenId": "asc"
386
+ },
387
+ {
388
+ "$ownerId": "asc"
389
+ },
390
+ {
391
+ "$createdAt": "asc"
392
+ }
393
+ ]
394
+ },
395
+ {
396
+ "name": "byFrozenIdentityId",
397
+ "properties": [
398
+ {
399
+ "tokenId": "asc"
400
+ },
401
+ {
402
+ "frozenIdentityId": "asc"
403
+ },
404
+ {
405
+ "$createdAt": "asc"
406
+ }
407
+ ]
408
+ }
409
+ ],
410
+ "properties": {
411
+ "tokenId": {
412
+ "type": "array",
413
+ "byteArray": true,
414
+ "minItems": 32,
415
+ "maxItems": 32,
416
+ "description": "The token ID",
417
+ "position": 0,
418
+ "contentMediaType": "application/x.dash.dpp.identifier"
419
+ },
420
+ "frozenIdentityId": {
421
+ "type": "array",
422
+ "byteArray": true,
423
+ "minItems": 32,
424
+ "maxItems": 32,
425
+ "description": "The identity Id of the frozen token account",
426
+ "position": 1,
427
+ "contentMediaType": "application/x.dash.dpp.identifier"
428
+ }
429
+ },
430
+ "required": [
431
+ "tokenId",
432
+ "frozenIdentityId",
433
+ "$createdAt",
434
+ "$createdAtBlockHeight"
435
+ ],
436
+ "additionalProperties": false
437
+ },
438
+ "destroyFrozenFunds": {
439
+ "type": "object",
440
+ "documentsMutable": false,
441
+ "canBeDeleted": false,
442
+ "creationRestrictionMode": 2,
443
+ "indices": [
444
+ {
445
+ "name": "byOwnerId",
446
+ "properties": [
447
+ {
448
+ "tokenId": "asc"
449
+ },
450
+ {
451
+ "$ownerId": "asc"
452
+ },
453
+ {
454
+ "$createdAt": "asc"
455
+ }
456
+ ]
457
+ },
458
+ {
459
+ "name": "byAmount",
460
+ "properties": [
461
+ {
462
+ "tokenId": "asc"
463
+ },
464
+ {
465
+ "destroyedAmount": "asc"
466
+ }
467
+ ]
468
+ },
469
+ {
470
+ "name": "byFrozenIdentityId",
471
+ "properties": [
472
+ {
473
+ "tokenId": "asc"
474
+ },
475
+ {
476
+ "frozenIdentityId": "asc"
477
+ },
478
+ {
479
+ "$createdAt": "asc"
480
+ }
481
+ ]
482
+ }
483
+ ],
484
+ "properties": {
485
+ "tokenId": {
486
+ "type": "array",
487
+ "byteArray": true,
488
+ "minItems": 32,
489
+ "maxItems": 32,
490
+ "description": "The token ID",
491
+ "position": 0,
492
+ "contentMediaType": "application/x.dash.dpp.identifier"
493
+ },
494
+ "frozenIdentityId": {
495
+ "type": "array",
496
+ "byteArray": true,
497
+ "minItems": 32,
498
+ "maxItems": 32,
499
+ "description": "The identity Id of the frozen token account",
500
+ "position": 1,
501
+ "contentMediaType": "application/x.dash.dpp.identifier"
502
+ },
503
+ "destroyedAmount": {
504
+ "type": "integer",
505
+ "minimum": 0,
506
+ "description": "The amount that was frost burned",
507
+ "position": 2
508
+ }
509
+ },
510
+ "required": [
511
+ "tokenId",
512
+ "frozenIdentityId",
513
+ "destroyedAmount",
514
+ "$createdAt",
515
+ "$createdAtBlockHeight"
516
+ ],
517
+ "additionalProperties": false
518
+ },
519
+ "claim": {
520
+ "type": "object",
521
+ "documentsMutable": false,
522
+ "canBeDeleted": false,
523
+ "creationRestrictionMode": 2,
524
+ "indices": [
525
+ {
526
+ "name": "byDate",
527
+ "properties": [
528
+ {
529
+ "tokenId": "asc"
530
+ },
531
+ {
532
+ "$createdAt": "asc"
533
+ }
534
+ ]
535
+ },
536
+ {
537
+ "name": "byRecipient",
538
+ "properties": [
539
+ {
540
+ "tokenId": "asc"
541
+ },
542
+ {
543
+ "recipientType": "asc"
544
+ },
545
+ {
546
+ "recipientId": "asc"
547
+ },
548
+ {
549
+ "$createdAt": "asc"
550
+ }
551
+ ]
552
+ },
553
+ {
554
+ "name": "byDistributionType",
555
+ "properties": [
556
+ {
557
+ "tokenId": "asc"
558
+ },
559
+ {
560
+ "distributionType": "asc"
561
+ },
562
+ {
563
+ "$createdAt": "asc"
564
+ }
565
+ ]
566
+ }
567
+ ],
568
+ "properties": {
569
+ "tokenId": {
570
+ "type": "array",
571
+ "byteArray": true,
572
+ "minItems": 32,
573
+ "maxItems": 32,
574
+ "description": "The token ID",
575
+ "position": 0,
576
+ "contentMediaType": "application/x.dash.dpp.identifier"
577
+ },
578
+ "recipientType": {
579
+ "type": "integer",
580
+ "minimum": 0,
581
+ "maximum": 2,
582
+ "description": "Recipient type: 0 = ContractOwner, 1 = Identity, 2 = EvonodesByParticipation",
583
+ "position": 1
584
+ },
585
+ "recipientId": {
586
+ "type": "array",
587
+ "byteArray": true,
588
+ "minItems": 32,
589
+ "maxItems": 32,
590
+ "description": "An optional identity ID for direct recipient distributions",
591
+ "contentMediaType": "application/x.dash.dpp.identifier",
592
+ "position": 2
593
+ },
594
+ "distributionType": {
595
+ "type": "integer",
596
+ "minimum": 0,
597
+ "description": "The type of distribution (0: PreProgrammed, 1: Perpetual)",
598
+ "position": 3
599
+ },
600
+ "amount": {
601
+ "type": "integer",
602
+ "minimum": 0,
603
+ "description": "The amount of tokens released",
604
+ "position": 4
605
+ },
606
+ "note": {
607
+ "type": "string",
608
+ "maxLength": 2048,
609
+ "description": "An optional explanation for this release",
610
+ "position": 5
611
+ }
612
+ },
613
+ "required": [
614
+ "tokenId",
615
+ "recipientType",
616
+ "distributionType",
617
+ "amount",
618
+ "$createdAt",
619
+ "$createdAtBlockHeight"
620
+ ],
621
+ "additionalProperties": false
622
+ },
623
+ "emergencyAction": {
624
+ "type": "object",
625
+ "documentsMutable": false,
626
+ "canBeDeleted": false,
627
+ "creationRestrictionMode": 2,
628
+ "indices": [
629
+ {
630
+ "name": "byOwnerId",
631
+ "properties": [
632
+ {
633
+ "tokenId": "asc"
634
+ },
635
+ {
636
+ "$ownerId": "asc"
637
+ },
638
+ {
639
+ "action": "asc"
640
+ },
641
+ {
642
+ "$createdAt": "asc"
643
+ }
644
+ ]
645
+ },
646
+ {
647
+ "name": "byAction",
648
+ "properties": [
649
+ {
650
+ "tokenId": "asc"
651
+ },
652
+ {
653
+ "action": "asc"
654
+ },
655
+ {
656
+ "$createdAt": "asc"
657
+ }
658
+ ]
659
+ }
660
+ ],
661
+ "properties": {
662
+ "tokenId": {
663
+ "type": "array",
664
+ "byteArray": true,
665
+ "minItems": 32,
666
+ "maxItems": 32,
667
+ "description": "The token ID",
668
+ "position": 0,
669
+ "contentMediaType": "application/x.dash.dpp.identifier"
670
+ },
671
+ "action": {
672
+ "type": "integer",
673
+ "enum": [
674
+ 0,
675
+ 1
676
+ ],
677
+ "description": "The action we are performing. 0 - Pause, 1 - Resume",
678
+ "position": 1
679
+ }
680
+ },
681
+ "required": [
682
+ "tokenId",
683
+ "action",
684
+ "$createdAt",
685
+ "$createdAtBlockHeight"
686
+ ],
687
+ "additionalProperties": false
688
+ },
689
+ "configUpdate": {
690
+ "type": "object",
691
+ "documentsMutable": false,
692
+ "canBeDeleted": false,
693
+ "creationRestrictionMode": 2,
694
+ "indices": [
695
+ {
696
+ "name": "byOwnerId",
697
+ "properties": [
698
+ {
699
+ "tokenId": "asc"
700
+ },
701
+ {
702
+ "$ownerId": "asc"
703
+ },
704
+ {
705
+ "changeItemType": "asc"
706
+ },
707
+ {
708
+ "$createdAt": "asc"
709
+ }
710
+ ]
711
+ },
712
+ {
713
+ "name": "byChangeItemType",
714
+ "properties": [
715
+ {
716
+ "tokenId": "asc"
717
+ },
718
+ {
719
+ "changeItemType": "asc"
720
+ },
721
+ {
722
+ "$createdAt": "asc"
723
+ }
724
+ ]
725
+ }
726
+ ],
727
+ "properties": {
728
+ "tokenId": {
729
+ "type": "array",
730
+ "byteArray": true,
731
+ "minItems": 32,
732
+ "maxItems": 32,
733
+ "description": "The token ID",
734
+ "position": 0,
735
+ "contentMediaType": "application/x.dash.dpp.identifier"
736
+ },
737
+ "changeItemType": {
738
+ "type": "integer",
739
+ "minimum": 0,
740
+ "description": "The action we are performing",
741
+ "position": 1
742
+ },
743
+ "changeItem": {
744
+ "type": "array",
745
+ "byteArray": true,
746
+ "minItems": 1,
747
+ "description": "The change item in serialized form",
748
+ "position": 2
749
+ }
750
+ },
751
+ "required": [
752
+ "tokenId",
753
+ "changeItemType",
754
+ "changeItem",
755
+ "$createdAt",
756
+ "$createdAtBlockHeight"
757
+ ],
758
+ "additionalProperties": false
759
+ }
760
+ }