@qubic.ts/contracts 0.1.0

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.
Files changed (83) hide show
  1. package/package.json +17 -0
  2. package/scripts/generate-artifacts.ts +178 -0
  3. package/src/codec/entry-input.test.ts +198 -0
  4. package/src/codec/entry-input.ts +959 -0
  5. package/src/codec/index.ts +8 -0
  6. package/src/generated/contracts/CCF.registry.json +741 -0
  7. package/src/generated/contracts/CCF.types.ts +307 -0
  8. package/src/generated/contracts/GQMPROP.registry.json +518 -0
  9. package/src/generated/contracts/GQMPROP.types.ts +238 -0
  10. package/src/generated/contracts/MLM.registry.json +8 -0
  11. package/src/generated/contracts/MLM.types.ts +42 -0
  12. package/src/generated/contracts/MSVAULT.registry.json +1162 -0
  13. package/src/generated/contracts/MSVAULT.types.ts +598 -0
  14. package/src/generated/contracts/NOST.registry.json +1131 -0
  15. package/src/generated/contracts/NOST.types.ts +515 -0
  16. package/src/generated/contracts/QBAY.registry.json +1492 -0
  17. package/src/generated/contracts/QBAY.types.ts +681 -0
  18. package/src/generated/contracts/QBOND.registry.json +734 -0
  19. package/src/generated/contracts/QBOND.types.ts +397 -0
  20. package/src/generated/contracts/QDRAW.registry.json +112 -0
  21. package/src/generated/contracts/QDRAW.types.ts +110 -0
  22. package/src/generated/contracts/QDUEL.registry.json +466 -0
  23. package/src/generated/contracts/QDUEL.types.ts +265 -0
  24. package/src/generated/contracts/QEARN.registry.json +458 -0
  25. package/src/generated/contracts/QEARN.types.ts +265 -0
  26. package/src/generated/contracts/QIP.registry.json +483 -0
  27. package/src/generated/contracts/QIP.types.ts +194 -0
  28. package/src/generated/contracts/QRAFFLE.registry.json +916 -0
  29. package/src/generated/contracts/QRAFFLE.types.ts +446 -0
  30. package/src/generated/contracts/QRP.registry.json +139 -0
  31. package/src/generated/contracts/QRP.types.ts +144 -0
  32. package/src/generated/contracts/QRWA.registry.json +765 -0
  33. package/src/generated/contracts/QRWA.types.ts +402 -0
  34. package/src/generated/contracts/QSWAP.registry.json +941 -0
  35. package/src/generated/contracts/QSWAP.types.ts +479 -0
  36. package/src/generated/contracts/QTF.registry.json +480 -0
  37. package/src/generated/contracts/QTF.types.ts +346 -0
  38. package/src/generated/contracts/QUOTTERY.registry.json +530 -0
  39. package/src/generated/contracts/QUOTTERY.types.ts +262 -0
  40. package/src/generated/contracts/QUTIL.registry.json +1378 -0
  41. package/src/generated/contracts/QUTIL.types.ts +612 -0
  42. package/src/generated/contracts/QVAULT.registry.json +527 -0
  43. package/src/generated/contracts/QVAULT.types.ts +309 -0
  44. package/src/generated/contracts/QX.registry.json +610 -0
  45. package/src/generated/contracts/QX.types.ts +323 -0
  46. package/src/generated/contracts/RANDOM.registry.json +51 -0
  47. package/src/generated/contracts/RANDOM.types.ts +65 -0
  48. package/src/generated/contracts/RL.registry.json +490 -0
  49. package/src/generated/contracts/RL.types.ts +304 -0
  50. package/src/generated/contracts/SWATCH.registry.json +8 -0
  51. package/src/generated/contracts/SWATCH.types.ts +42 -0
  52. package/src/generated/core-registry.codecs.ts +6622 -0
  53. package/src/generated/core-registry.source.json +14342 -0
  54. package/src/generated/core-registry.ts +14349 -0
  55. package/src/generated/core-registry.types.ts +100 -0
  56. package/src/generator/contract-codecs.fixture.test.ts +17 -0
  57. package/src/generator/contract-codecs.test.ts +115 -0
  58. package/src/generator/contract-codecs.ts +416 -0
  59. package/src/generator/index.ts +14 -0
  60. package/src/generator/per-contract-files.test.ts +70 -0
  61. package/src/generator/per-contract-files.ts +122 -0
  62. package/src/generator/registry-runtime.fixture.test.ts +17 -0
  63. package/src/generator/registry-runtime.test.ts +55 -0
  64. package/src/generator/registry-runtime.ts +28 -0
  65. package/src/generator/registry-types.fixture.test.ts +17 -0
  66. package/src/generator/registry-types.test.ts +55 -0
  67. package/src/generator/registry-types.ts +75 -0
  68. package/src/index.test.ts +29 -0
  69. package/src/index.ts +49 -0
  70. package/src/registry/index.ts +17 -0
  71. package/src/registry/io-layout.fixture.test.ts +24 -0
  72. package/src/registry/io-layout.test.ts +93 -0
  73. package/src/registry/io-layout.ts +57 -0
  74. package/src/registry/normalize.ts +61 -0
  75. package/src/registry/schema.fixture.test.ts +21 -0
  76. package/src/registry/schema.ts +97 -0
  77. package/src/registry/types.ts +98 -0
  78. package/test/fixtures/io-layout.contracts.json +32 -0
  79. package/test/fixtures/io-layout.layouts.json +14 -0
  80. package/test/fixtures/registry.sample.codecs.ts +100 -0
  81. package/test/fixtures/registry.sample.json +27 -0
  82. package/test/fixtures/registry.sample.runtime.ts +54 -0
  83. package/test/fixtures/registry.sample.types.ts +16 -0
@@ -0,0 +1,1492 @@
1
+ {
2
+ "contractName": "QBAY",
3
+ "contractIndex": 12,
4
+ "filename": "Qbay.h",
5
+ "address": "MAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWLWD",
6
+ "entries": [
7
+ {
8
+ "kind": "function",
9
+ "name": "getNumberOfNFTForUser",
10
+ "inputType": 1,
11
+ "inputTypeName": "getNumberOfNFTForUser_input",
12
+ "outputTypeName": "getNumberOfNFTForUser_output",
13
+ "inputSize": 32,
14
+ "outputSize": 4
15
+ },
16
+ {
17
+ "kind": "function",
18
+ "name": "getInfoOfNFTUserPossessed",
19
+ "inputType": 2,
20
+ "inputTypeName": "getInfoOfNFTUserPossessed_input",
21
+ "outputTypeName": "getInfoOfNFTUserPossessed_output",
22
+ "inputSize": 40,
23
+ "outputSize": 248
24
+ },
25
+ {
26
+ "kind": "function",
27
+ "name": "getInfoOfMarketplace",
28
+ "inputType": 3,
29
+ "inputTypeName": "getInfoOfMarketplace_input",
30
+ "outputTypeName": "getInfoOfMarketplace_output",
31
+ "inputSize": 1,
32
+ "outputSize": 56
33
+ },
34
+ {
35
+ "kind": "function",
36
+ "name": "getInfoOfCollectionByCreator",
37
+ "inputType": 4,
38
+ "inputTypeName": "getInfoOfCollectionByCreator_input",
39
+ "outputTypeName": "getInfoOfCollectionByCreator_output",
40
+ "inputSize": 40,
41
+ "outputSize": 96
42
+ },
43
+ {
44
+ "kind": "function",
45
+ "name": "getInfoOfCollectionById",
46
+ "inputType": 5,
47
+ "inputTypeName": "getInfoOfCollectionById_input",
48
+ "outputTypeName": "getInfoOfCollectionById_output",
49
+ "inputSize": 4,
50
+ "outputSize": 120
51
+ },
52
+ {
53
+ "kind": "function",
54
+ "name": "getIncomingAuctions",
55
+ "inputType": 6,
56
+ "inputTypeName": "getIncomingAuctions_input",
57
+ "outputTypeName": "getIncomingAuctions_output",
58
+ "inputSize": 8,
59
+ "outputSize": 4096
60
+ },
61
+ {
62
+ "kind": "function",
63
+ "name": "getInfoOfNFTById",
64
+ "inputType": 7,
65
+ "inputTypeName": "getInfoOfNFTById_input",
66
+ "outputTypeName": "getInfoOfNFTById_output",
67
+ "inputSize": 4,
68
+ "outputSize": 248
69
+ },
70
+ {
71
+ "kind": "function",
72
+ "name": "getUserCreatedCollection",
73
+ "inputType": 8,
74
+ "inputTypeName": "getUserCreatedCollection_input",
75
+ "outputTypeName": "getUserCreatedCollection_output",
76
+ "inputSize": 40,
77
+ "outputSize": 4096
78
+ },
79
+ {
80
+ "kind": "function",
81
+ "name": "getUserCreatedNFT",
82
+ "inputType": 9,
83
+ "inputTypeName": "getUserCreatedNFT_input",
84
+ "outputTypeName": "getUserCreatedNFT_output",
85
+ "inputSize": 40,
86
+ "outputSize": 4096
87
+ },
88
+ {
89
+ "kind": "procedure",
90
+ "name": "settingCFBAndQubicPrice",
91
+ "inputType": 1,
92
+ "inputTypeName": "settingCFBAndQubicPrice_input",
93
+ "outputTypeName": "settingCFBAndQubicPrice_output",
94
+ "inputSize": 16,
95
+ "outputSize": 4
96
+ },
97
+ {
98
+ "kind": "procedure",
99
+ "name": "createCollection",
100
+ "inputType": 2,
101
+ "inputTypeName": "createCollection_input",
102
+ "outputTypeName": "createCollection_output",
103
+ "inputSize": 88,
104
+ "outputSize": 4
105
+ },
106
+ {
107
+ "kind": "procedure",
108
+ "name": "mint",
109
+ "inputType": 3,
110
+ "inputTypeName": "mint_input",
111
+ "outputTypeName": "mint_output",
112
+ "inputSize": 76,
113
+ "outputSize": 4
114
+ },
115
+ {
116
+ "kind": "procedure",
117
+ "name": "mintOfDrop",
118
+ "inputType": 4,
119
+ "inputTypeName": "mintOfDrop_input",
120
+ "outputTypeName": "mintOfDrop_output",
121
+ "inputSize": 68,
122
+ "outputSize": 4
123
+ },
124
+ {
125
+ "kind": "procedure",
126
+ "name": "transfer",
127
+ "inputType": 5,
128
+ "inputTypeName": "transfer_input",
129
+ "outputTypeName": "transfer_output",
130
+ "inputSize": 40,
131
+ "outputSize": 4
132
+ },
133
+ {
134
+ "kind": "procedure",
135
+ "name": "listInMarket",
136
+ "inputType": 6,
137
+ "inputTypeName": "listInMarket_input",
138
+ "outputTypeName": "listInMarket_output",
139
+ "inputSize": 16,
140
+ "outputSize": 4
141
+ },
142
+ {
143
+ "kind": "procedure",
144
+ "name": "buy",
145
+ "inputType": 7,
146
+ "inputTypeName": "buy_input",
147
+ "outputTypeName": "buy_output",
148
+ "inputSize": 8,
149
+ "outputSize": 4
150
+ },
151
+ {
152
+ "kind": "procedure",
153
+ "name": "cancelSale",
154
+ "inputType": 8,
155
+ "inputTypeName": "cancelSale_input",
156
+ "outputTypeName": "cancelSale_output",
157
+ "inputSize": 4,
158
+ "outputSize": 4
159
+ },
160
+ {
161
+ "kind": "procedure",
162
+ "name": "listInExchange",
163
+ "inputType": 9,
164
+ "inputTypeName": "listInExchange_input",
165
+ "outputTypeName": "listInExchange_output",
166
+ "inputSize": 8,
167
+ "outputSize": 4
168
+ },
169
+ {
170
+ "kind": "procedure",
171
+ "name": "cancelExchange",
172
+ "inputType": 10,
173
+ "inputTypeName": "cancelExchange_input",
174
+ "outputTypeName": "cancelExchange_output",
175
+ "inputSize": 8,
176
+ "outputSize": 4
177
+ },
178
+ {
179
+ "kind": "procedure",
180
+ "name": "makeOffer",
181
+ "inputType": 11,
182
+ "inputTypeName": "makeOffer_input",
183
+ "outputTypeName": "makeOffer_output",
184
+ "inputSize": 16,
185
+ "outputSize": 4
186
+ },
187
+ {
188
+ "kind": "procedure",
189
+ "name": "acceptOffer",
190
+ "inputType": 12,
191
+ "inputTypeName": "acceptOffer_input",
192
+ "outputTypeName": "acceptOffer_output",
193
+ "inputSize": 4,
194
+ "outputSize": 4
195
+ },
196
+ {
197
+ "kind": "procedure",
198
+ "name": "cancelOffer",
199
+ "inputType": 13,
200
+ "inputTypeName": "cancelOffer_input",
201
+ "outputTypeName": "cancelOffer_output",
202
+ "inputSize": 4,
203
+ "outputSize": 4
204
+ },
205
+ {
206
+ "kind": "procedure",
207
+ "name": "createTraditionalAuction",
208
+ "inputType": 14,
209
+ "inputTypeName": "createTraditionalAuction_input",
210
+ "outputTypeName": "createTraditionalAuction_output",
211
+ "inputSize": 48,
212
+ "outputSize": 4
213
+ },
214
+ {
215
+ "kind": "procedure",
216
+ "name": "bidOnTraditionalAuction",
217
+ "inputType": 15,
218
+ "inputTypeName": "bidOnTraditionalAuction_input",
219
+ "outputTypeName": "bidOnTraditionalAuction_output",
220
+ "inputSize": 16,
221
+ "outputSize": 4
222
+ },
223
+ {
224
+ "kind": "procedure",
225
+ "name": "TransferShareManagementRights",
226
+ "inputType": 16,
227
+ "inputTypeName": "TransferShareManagementRights_input",
228
+ "outputTypeName": "TransferShareManagementRights_output",
229
+ "inputSize": 56,
230
+ "outputSize": 16
231
+ },
232
+ {
233
+ "kind": "procedure",
234
+ "name": "changeStatusOfMarketPlace",
235
+ "inputType": 17,
236
+ "inputTypeName": "changeStatusOfMarketPlace_input",
237
+ "outputTypeName": "changeStatusOfMarketPlace_output",
238
+ "inputSize": 1,
239
+ "outputSize": 4
240
+ }
241
+ ],
242
+ "ioTypes": [
243
+ {
244
+ "kind": "struct",
245
+ "name": "acceptOffer_input",
246
+ "fields": [
247
+ {
248
+ "name": "NFTid",
249
+ "type": "uint32",
250
+ "byteOffset": 0
251
+ }
252
+ ],
253
+ "byteSize": 4,
254
+ "byteAlign": 4
255
+ },
256
+ {
257
+ "kind": "struct",
258
+ "name": "acceptOffer_output",
259
+ "fields": [
260
+ {
261
+ "name": "returnCode",
262
+ "type": "uint32",
263
+ "byteOffset": 0
264
+ }
265
+ ],
266
+ "byteSize": 4,
267
+ "byteAlign": 4
268
+ },
269
+ {
270
+ "kind": "struct",
271
+ "name": "Asset",
272
+ "fields": [
273
+ {
274
+ "name": "issuer",
275
+ "type": "id",
276
+ "byteOffset": 0
277
+ },
278
+ {
279
+ "name": "assetName",
280
+ "type": "uint64",
281
+ "byteOffset": 32
282
+ }
283
+ ],
284
+ "byteSize": 40,
285
+ "byteAlign": 8
286
+ },
287
+ {
288
+ "kind": "struct",
289
+ "name": "bidOnTraditionalAuction_input",
290
+ "fields": [
291
+ {
292
+ "name": "price",
293
+ "type": "uint64",
294
+ "byteOffset": 0
295
+ },
296
+ {
297
+ "name": "NFTId",
298
+ "type": "uint32",
299
+ "byteOffset": 8
300
+ },
301
+ {
302
+ "name": "paymentMethod",
303
+ "type": "bit",
304
+ "byteOffset": 12
305
+ }
306
+ ],
307
+ "byteSize": 16,
308
+ "byteAlign": 8
309
+ },
310
+ {
311
+ "kind": "struct",
312
+ "name": "bidOnTraditionalAuction_output",
313
+ "fields": [
314
+ {
315
+ "name": "returnCode",
316
+ "type": "uint32",
317
+ "byteOffset": 0
318
+ }
319
+ ],
320
+ "byteSize": 4,
321
+ "byteAlign": 4
322
+ },
323
+ {
324
+ "kind": "struct",
325
+ "name": "buy_input",
326
+ "fields": [
327
+ {
328
+ "name": "NFTid",
329
+ "type": "uint32",
330
+ "byteOffset": 0
331
+ },
332
+ {
333
+ "name": "methodOfPayment",
334
+ "type": "bit",
335
+ "byteOffset": 4
336
+ }
337
+ ],
338
+ "byteSize": 8,
339
+ "byteAlign": 4
340
+ },
341
+ {
342
+ "kind": "struct",
343
+ "name": "buy_output",
344
+ "fields": [
345
+ {
346
+ "name": "returnCode",
347
+ "type": "uint32",
348
+ "byteOffset": 0
349
+ }
350
+ ],
351
+ "byteSize": 4,
352
+ "byteAlign": 4
353
+ },
354
+ {
355
+ "kind": "struct",
356
+ "name": "cancelExchange_input",
357
+ "fields": [
358
+ {
359
+ "name": "possessedNFT",
360
+ "type": "uint32",
361
+ "byteOffset": 0
362
+ },
363
+ {
364
+ "name": "anotherNFT",
365
+ "type": "uint32",
366
+ "byteOffset": 4
367
+ }
368
+ ],
369
+ "byteSize": 8,
370
+ "byteAlign": 4
371
+ },
372
+ {
373
+ "kind": "struct",
374
+ "name": "cancelExchange_output",
375
+ "fields": [
376
+ {
377
+ "name": "returnCode",
378
+ "type": "uint32",
379
+ "byteOffset": 0
380
+ }
381
+ ],
382
+ "byteSize": 4,
383
+ "byteAlign": 4
384
+ },
385
+ {
386
+ "kind": "struct",
387
+ "name": "cancelOffer_input",
388
+ "fields": [
389
+ {
390
+ "name": "NFTid",
391
+ "type": "uint32",
392
+ "byteOffset": 0
393
+ }
394
+ ],
395
+ "byteSize": 4,
396
+ "byteAlign": 4
397
+ },
398
+ {
399
+ "kind": "struct",
400
+ "name": "cancelOffer_output",
401
+ "fields": [
402
+ {
403
+ "name": "returnCode",
404
+ "type": "uint32",
405
+ "byteOffset": 0
406
+ }
407
+ ],
408
+ "byteSize": 4,
409
+ "byteAlign": 4
410
+ },
411
+ {
412
+ "kind": "struct",
413
+ "name": "cancelSale_input",
414
+ "fields": [
415
+ {
416
+ "name": "NFTid",
417
+ "type": "uint32",
418
+ "byteOffset": 0
419
+ }
420
+ ],
421
+ "byteSize": 4,
422
+ "byteAlign": 4
423
+ },
424
+ {
425
+ "kind": "struct",
426
+ "name": "cancelSale_output",
427
+ "fields": [
428
+ {
429
+ "name": "returnCode",
430
+ "type": "uint32",
431
+ "byteOffset": 0
432
+ }
433
+ ],
434
+ "byteSize": 4,
435
+ "byteAlign": 4
436
+ },
437
+ {
438
+ "kind": "struct",
439
+ "name": "changeStatusOfMarketPlace_input",
440
+ "fields": [
441
+ {
442
+ "name": "status",
443
+ "type": "bit",
444
+ "byteOffset": 0
445
+ }
446
+ ],
447
+ "byteSize": 1,
448
+ "byteAlign": 1
449
+ },
450
+ {
451
+ "kind": "struct",
452
+ "name": "changeStatusOfMarketPlace_output",
453
+ "fields": [
454
+ {
455
+ "name": "returnCode",
456
+ "type": "uint32",
457
+ "byteOffset": 0
458
+ }
459
+ ],
460
+ "byteSize": 4,
461
+ "byteAlign": 4
462
+ },
463
+ {
464
+ "kind": "struct",
465
+ "name": "createCollection_input",
466
+ "fields": [
467
+ {
468
+ "name": "priceForDropMint",
469
+ "type": "uint64",
470
+ "byteOffset": 0
471
+ },
472
+ {
473
+ "name": "volume",
474
+ "type": "uint32",
475
+ "byteOffset": 8
476
+ },
477
+ {
478
+ "name": "royalty",
479
+ "type": "uint32",
480
+ "byteOffset": 12
481
+ },
482
+ {
483
+ "name": "maxSizePerOneId",
484
+ "type": "uint32",
485
+ "byteOffset": 16
486
+ },
487
+ {
488
+ "name": "URI",
489
+ "type": "Array<uint8, 64>",
490
+ "byteOffset": 20
491
+ },
492
+ {
493
+ "name": "typeOfCollection",
494
+ "type": "bit",
495
+ "byteOffset": 84
496
+ }
497
+ ],
498
+ "byteSize": 88,
499
+ "byteAlign": 8
500
+ },
501
+ {
502
+ "kind": "struct",
503
+ "name": "createCollection_output",
504
+ "fields": [
505
+ {
506
+ "name": "returnCode",
507
+ "type": "uint32",
508
+ "byteOffset": 0
509
+ }
510
+ ],
511
+ "byteSize": 4,
512
+ "byteAlign": 4
513
+ },
514
+ {
515
+ "kind": "struct",
516
+ "name": "createTraditionalAuction_input",
517
+ "fields": [
518
+ {
519
+ "name": "minPrice",
520
+ "type": "uint64",
521
+ "byteOffset": 0
522
+ },
523
+ {
524
+ "name": "NFTId",
525
+ "type": "uint32",
526
+ "byteOffset": 8
527
+ },
528
+ {
529
+ "name": "startYear",
530
+ "type": "uint32",
531
+ "byteOffset": 12
532
+ },
533
+ {
534
+ "name": "startMonth",
535
+ "type": "uint32",
536
+ "byteOffset": 16
537
+ },
538
+ {
539
+ "name": "startDay",
540
+ "type": "uint32",
541
+ "byteOffset": 20
542
+ },
543
+ {
544
+ "name": "startHour",
545
+ "type": "uint32",
546
+ "byteOffset": 24
547
+ },
548
+ {
549
+ "name": "endYear",
550
+ "type": "uint32",
551
+ "byteOffset": 28
552
+ },
553
+ {
554
+ "name": "endMonth",
555
+ "type": "uint32",
556
+ "byteOffset": 32
557
+ },
558
+ {
559
+ "name": "endDay",
560
+ "type": "uint32",
561
+ "byteOffset": 36
562
+ },
563
+ {
564
+ "name": "endHour",
565
+ "type": "uint32",
566
+ "byteOffset": 40
567
+ },
568
+ {
569
+ "name": "paymentMethodOfAuction",
570
+ "type": "bit",
571
+ "byteOffset": 44
572
+ }
573
+ ],
574
+ "byteSize": 48,
575
+ "byteAlign": 8
576
+ },
577
+ {
578
+ "kind": "struct",
579
+ "name": "createTraditionalAuction_output",
580
+ "fields": [
581
+ {
582
+ "name": "returnCode",
583
+ "type": "uint32",
584
+ "byteOffset": 0
585
+ }
586
+ ],
587
+ "byteSize": 4,
588
+ "byteAlign": 4
589
+ },
590
+ {
591
+ "kind": "struct",
592
+ "name": "getIncomingAuctions_input",
593
+ "fields": [
594
+ {
595
+ "name": "offset",
596
+ "type": "uint32",
597
+ "byteOffset": 0
598
+ },
599
+ {
600
+ "name": "count",
601
+ "type": "uint32",
602
+ "byteOffset": 4
603
+ }
604
+ ],
605
+ "byteSize": 8,
606
+ "byteAlign": 4
607
+ },
608
+ {
609
+ "kind": "struct",
610
+ "name": "getIncomingAuctions_output",
611
+ "fields": [
612
+ {
613
+ "name": "NFTId",
614
+ "type": "Array<uint32, 1024>",
615
+ "byteOffset": 0
616
+ }
617
+ ],
618
+ "byteSize": 4096,
619
+ "byteAlign": 4
620
+ },
621
+ {
622
+ "kind": "struct",
623
+ "name": "getInfoOfCollectionByCreator_input",
624
+ "fields": [
625
+ {
626
+ "name": "creator",
627
+ "type": "id",
628
+ "byteOffset": 0
629
+ },
630
+ {
631
+ "name": "orderOfCollection",
632
+ "type": "uint32",
633
+ "byteOffset": 32
634
+ }
635
+ ],
636
+ "byteSize": 40,
637
+ "byteAlign": 8
638
+ },
639
+ {
640
+ "kind": "struct",
641
+ "name": "getInfoOfCollectionByCreator_output",
642
+ "fields": [
643
+ {
644
+ "name": "priceForDropMint",
645
+ "type": "uint64",
646
+ "byteOffset": 0
647
+ },
648
+ {
649
+ "name": "idOfCollection",
650
+ "type": "uint32",
651
+ "byteOffset": 8
652
+ },
653
+ {
654
+ "name": "royalty",
655
+ "type": "uint32",
656
+ "byteOffset": 12
657
+ },
658
+ {
659
+ "name": "currentSize",
660
+ "type": "sint32",
661
+ "byteOffset": 16
662
+ },
663
+ {
664
+ "name": "maxSizeHoldingPerOneId",
665
+ "type": "uint32",
666
+ "byteOffset": 20
667
+ },
668
+ {
669
+ "name": "URI",
670
+ "type": "Array<uint8, 64>",
671
+ "byteOffset": 24
672
+ },
673
+ {
674
+ "name": "typeOfCollection",
675
+ "type": "bit",
676
+ "byteOffset": 88
677
+ }
678
+ ],
679
+ "byteSize": 96,
680
+ "byteAlign": 8
681
+ },
682
+ {
683
+ "kind": "struct",
684
+ "name": "getInfoOfCollectionById_input",
685
+ "fields": [
686
+ {
687
+ "name": "idOfCollection",
688
+ "type": "uint32",
689
+ "byteOffset": 0
690
+ }
691
+ ],
692
+ "byteSize": 4,
693
+ "byteAlign": 4
694
+ },
695
+ {
696
+ "kind": "struct",
697
+ "name": "getInfoOfCollectionById_output",
698
+ "fields": [
699
+ {
700
+ "name": "creator",
701
+ "type": "id",
702
+ "byteOffset": 0
703
+ },
704
+ {
705
+ "name": "priceForDropMint",
706
+ "type": "uint64",
707
+ "byteOffset": 32
708
+ },
709
+ {
710
+ "name": "royalty",
711
+ "type": "uint32",
712
+ "byteOffset": 40
713
+ },
714
+ {
715
+ "name": "currentSize",
716
+ "type": "sint32",
717
+ "byteOffset": 44
718
+ },
719
+ {
720
+ "name": "maxSizeHoldingPerOneId",
721
+ "type": "uint32",
722
+ "byteOffset": 48
723
+ },
724
+ {
725
+ "name": "URI",
726
+ "type": "Array<uint8, 64>",
727
+ "byteOffset": 52
728
+ },
729
+ {
730
+ "name": "typeOfCollection",
731
+ "type": "bit",
732
+ "byteOffset": 116
733
+ }
734
+ ],
735
+ "byteSize": 120,
736
+ "byteAlign": 8
737
+ },
738
+ {
739
+ "kind": "struct",
740
+ "name": "getInfoOfMarketplace_input",
741
+ "fields": [],
742
+ "byteSize": 1,
743
+ "byteAlign": 1
744
+ },
745
+ {
746
+ "kind": "struct",
747
+ "name": "getInfoOfMarketplace_output",
748
+ "fields": [
749
+ {
750
+ "name": "priceOfCFB",
751
+ "type": "uint64",
752
+ "byteOffset": 0
753
+ },
754
+ {
755
+ "name": "priceOfQubic",
756
+ "type": "uint64",
757
+ "byteOffset": 8
758
+ },
759
+ {
760
+ "name": "numberOfNFTIncoming",
761
+ "type": "uint64",
762
+ "byteOffset": 16
763
+ },
764
+ {
765
+ "name": "earnedQubic",
766
+ "type": "uint64",
767
+ "byteOffset": 24
768
+ },
769
+ {
770
+ "name": "earnedCFB",
771
+ "type": "uint64",
772
+ "byteOffset": 32
773
+ },
774
+ {
775
+ "name": "numberOfCollection",
776
+ "type": "uint32",
777
+ "byteOffset": 40
778
+ },
779
+ {
780
+ "name": "numberOfNFT",
781
+ "type": "uint32",
782
+ "byteOffset": 44
783
+ },
784
+ {
785
+ "name": "statusOfMarketPlace",
786
+ "type": "bit",
787
+ "byteOffset": 48
788
+ }
789
+ ],
790
+ "byteSize": 56,
791
+ "byteAlign": 8
792
+ },
793
+ {
794
+ "kind": "struct",
795
+ "name": "getInfoOfNFTById_input",
796
+ "fields": [
797
+ {
798
+ "name": "NFTId",
799
+ "type": "uint32",
800
+ "byteOffset": 0
801
+ }
802
+ ],
803
+ "byteSize": 4,
804
+ "byteAlign": 4
805
+ },
806
+ {
807
+ "kind": "struct",
808
+ "name": "getInfoOfNFTById_output",
809
+ "fields": [
810
+ {
811
+ "name": "creator",
812
+ "type": "id",
813
+ "byteOffset": 0
814
+ },
815
+ {
816
+ "name": "possessor",
817
+ "type": "id",
818
+ "byteOffset": 32
819
+ },
820
+ {
821
+ "name": "askUser",
822
+ "type": "id",
823
+ "byteOffset": 64
824
+ },
825
+ {
826
+ "name": "creatorOfAuction",
827
+ "type": "id",
828
+ "byteOffset": 96
829
+ },
830
+ {
831
+ "name": "salePrice",
832
+ "type": "sint64",
833
+ "byteOffset": 128
834
+ },
835
+ {
836
+ "name": "askMaxPrice",
837
+ "type": "sint64",
838
+ "byteOffset": 136
839
+ },
840
+ {
841
+ "name": "currentPriceOfAuction",
842
+ "type": "uint64",
843
+ "byteOffset": 144
844
+ },
845
+ {
846
+ "name": "royalty",
847
+ "type": "uint32",
848
+ "byteOffset": 152
849
+ },
850
+ {
851
+ "name": "NFTidForExchange",
852
+ "type": "uint32",
853
+ "byteOffset": 156
854
+ },
855
+ {
856
+ "name": "URI",
857
+ "type": "Array<uint8, 64>",
858
+ "byteOffset": 160
859
+ },
860
+ {
861
+ "name": "statusOfAuction",
862
+ "type": "uint8",
863
+ "byteOffset": 224
864
+ },
865
+ {
866
+ "name": "yearAuctionStarted",
867
+ "type": "uint8",
868
+ "byteOffset": 225
869
+ },
870
+ {
871
+ "name": "monthAuctionStarted",
872
+ "type": "uint8",
873
+ "byteOffset": 226
874
+ },
875
+ {
876
+ "name": "dayAuctionStarted",
877
+ "type": "uint8",
878
+ "byteOffset": 227
879
+ },
880
+ {
881
+ "name": "hourAuctionStarted",
882
+ "type": "uint8",
883
+ "byteOffset": 228
884
+ },
885
+ {
886
+ "name": "minuteAuctionStarted",
887
+ "type": "uint8",
888
+ "byteOffset": 229
889
+ },
890
+ {
891
+ "name": "secondAuctionStarted",
892
+ "type": "uint8",
893
+ "byteOffset": 230
894
+ },
895
+ {
896
+ "name": "yearAuctionEnded",
897
+ "type": "uint8",
898
+ "byteOffset": 231
899
+ },
900
+ {
901
+ "name": "monthAuctionEnded",
902
+ "type": "uint8",
903
+ "byteOffset": 232
904
+ },
905
+ {
906
+ "name": "dayAuctionEnded",
907
+ "type": "uint8",
908
+ "byteOffset": 233
909
+ },
910
+ {
911
+ "name": "hourAuctionEnded",
912
+ "type": "uint8",
913
+ "byteOffset": 234
914
+ },
915
+ {
916
+ "name": "minuteAuctionEnded",
917
+ "type": "uint8",
918
+ "byteOffset": 235
919
+ },
920
+ {
921
+ "name": "secondAuctionEnded",
922
+ "type": "uint8",
923
+ "byteOffset": 236
924
+ },
925
+ {
926
+ "name": "statusOfSale",
927
+ "type": "bit",
928
+ "byteOffset": 237
929
+ },
930
+ {
931
+ "name": "statusOfAsk",
932
+ "type": "bit",
933
+ "byteOffset": 238
934
+ },
935
+ {
936
+ "name": "paymentMethodOfAsk",
937
+ "type": "bit",
938
+ "byteOffset": 239
939
+ },
940
+ {
941
+ "name": "statusOfExchange",
942
+ "type": "bit",
943
+ "byteOffset": 240
944
+ },
945
+ {
946
+ "name": "paymentMethodOfAuction",
947
+ "type": "bit",
948
+ "byteOffset": 241
949
+ }
950
+ ],
951
+ "byteSize": 248,
952
+ "byteAlign": 8
953
+ },
954
+ {
955
+ "kind": "struct",
956
+ "name": "getInfoOfNFTUserPossessed_input",
957
+ "fields": [
958
+ {
959
+ "name": "user",
960
+ "type": "id",
961
+ "byteOffset": 0
962
+ },
963
+ {
964
+ "name": "NFTNumber",
965
+ "type": "uint32",
966
+ "byteOffset": 32
967
+ }
968
+ ],
969
+ "byteSize": 40,
970
+ "byteAlign": 8
971
+ },
972
+ {
973
+ "kind": "struct",
974
+ "name": "getInfoOfNFTUserPossessed_output",
975
+ "fields": [
976
+ {
977
+ "name": "creator",
978
+ "type": "id",
979
+ "byteOffset": 0
980
+ },
981
+ {
982
+ "name": "possessor",
983
+ "type": "id",
984
+ "byteOffset": 32
985
+ },
986
+ {
987
+ "name": "askUser",
988
+ "type": "id",
989
+ "byteOffset": 64
990
+ },
991
+ {
992
+ "name": "creatorOfAuction",
993
+ "type": "id",
994
+ "byteOffset": 96
995
+ },
996
+ {
997
+ "name": "salePrice",
998
+ "type": "sint64",
999
+ "byteOffset": 128
1000
+ },
1001
+ {
1002
+ "name": "askMaxPrice",
1003
+ "type": "sint64",
1004
+ "byteOffset": 136
1005
+ },
1006
+ {
1007
+ "name": "currentPriceOfAuction",
1008
+ "type": "uint64",
1009
+ "byteOffset": 144
1010
+ },
1011
+ {
1012
+ "name": "royalty",
1013
+ "type": "uint32",
1014
+ "byteOffset": 152
1015
+ },
1016
+ {
1017
+ "name": "NFTidForExchange",
1018
+ "type": "uint32",
1019
+ "byteOffset": 156
1020
+ },
1021
+ {
1022
+ "name": "URI",
1023
+ "type": "Array<uint8, 64>",
1024
+ "byteOffset": 160
1025
+ },
1026
+ {
1027
+ "name": "statusOfAuction",
1028
+ "type": "uint8",
1029
+ "byteOffset": 224
1030
+ },
1031
+ {
1032
+ "name": "yearAuctionStarted",
1033
+ "type": "uint8",
1034
+ "byteOffset": 225
1035
+ },
1036
+ {
1037
+ "name": "monthAuctionStarted",
1038
+ "type": "uint8",
1039
+ "byteOffset": 226
1040
+ },
1041
+ {
1042
+ "name": "dayAuctionStarted",
1043
+ "type": "uint8",
1044
+ "byteOffset": 227
1045
+ },
1046
+ {
1047
+ "name": "hourAuctionStarted",
1048
+ "type": "uint8",
1049
+ "byteOffset": 228
1050
+ },
1051
+ {
1052
+ "name": "minuteAuctionStarted",
1053
+ "type": "uint8",
1054
+ "byteOffset": 229
1055
+ },
1056
+ {
1057
+ "name": "secondAuctionStarted",
1058
+ "type": "uint8",
1059
+ "byteOffset": 230
1060
+ },
1061
+ {
1062
+ "name": "yearAuctionEnded",
1063
+ "type": "uint8",
1064
+ "byteOffset": 231
1065
+ },
1066
+ {
1067
+ "name": "monthAuctionEnded",
1068
+ "type": "uint8",
1069
+ "byteOffset": 232
1070
+ },
1071
+ {
1072
+ "name": "dayAuctionEnded",
1073
+ "type": "uint8",
1074
+ "byteOffset": 233
1075
+ },
1076
+ {
1077
+ "name": "hourAuctionEnded",
1078
+ "type": "uint8",
1079
+ "byteOffset": 234
1080
+ },
1081
+ {
1082
+ "name": "minuteAuctionEnded",
1083
+ "type": "uint8",
1084
+ "byteOffset": 235
1085
+ },
1086
+ {
1087
+ "name": "secondAuctionEnded",
1088
+ "type": "uint8",
1089
+ "byteOffset": 236
1090
+ },
1091
+ {
1092
+ "name": "statusOfSale",
1093
+ "type": "bit",
1094
+ "byteOffset": 237
1095
+ },
1096
+ {
1097
+ "name": "statusOfAsk",
1098
+ "type": "bit",
1099
+ "byteOffset": 238
1100
+ },
1101
+ {
1102
+ "name": "paymentMethodOfAsk",
1103
+ "type": "bit",
1104
+ "byteOffset": 239
1105
+ },
1106
+ {
1107
+ "name": "statusOfExchange",
1108
+ "type": "bit",
1109
+ "byteOffset": 240
1110
+ },
1111
+ {
1112
+ "name": "paymentMethodOfAuction",
1113
+ "type": "bit",
1114
+ "byteOffset": 241
1115
+ }
1116
+ ],
1117
+ "byteSize": 248,
1118
+ "byteAlign": 8
1119
+ },
1120
+ {
1121
+ "kind": "struct",
1122
+ "name": "getNumberOfNFTForUser_input",
1123
+ "fields": [
1124
+ {
1125
+ "name": "user",
1126
+ "type": "id",
1127
+ "byteOffset": 0
1128
+ }
1129
+ ],
1130
+ "byteSize": 32,
1131
+ "byteAlign": 8
1132
+ },
1133
+ {
1134
+ "kind": "struct",
1135
+ "name": "getNumberOfNFTForUser_output",
1136
+ "fields": [
1137
+ {
1138
+ "name": "numberOfNFT",
1139
+ "type": "uint32",
1140
+ "byteOffset": 0
1141
+ }
1142
+ ],
1143
+ "byteSize": 4,
1144
+ "byteAlign": 4
1145
+ },
1146
+ {
1147
+ "kind": "struct",
1148
+ "name": "getUserCreatedCollection_input",
1149
+ "fields": [
1150
+ {
1151
+ "name": "user",
1152
+ "type": "id",
1153
+ "byteOffset": 0
1154
+ },
1155
+ {
1156
+ "name": "offset",
1157
+ "type": "uint32",
1158
+ "byteOffset": 32
1159
+ },
1160
+ {
1161
+ "name": "count",
1162
+ "type": "uint32",
1163
+ "byteOffset": 36
1164
+ }
1165
+ ],
1166
+ "byteSize": 40,
1167
+ "byteAlign": 8
1168
+ },
1169
+ {
1170
+ "kind": "struct",
1171
+ "name": "getUserCreatedCollection_output",
1172
+ "fields": [
1173
+ {
1174
+ "name": "collectionId",
1175
+ "type": "Array<uint32, 1024>",
1176
+ "byteOffset": 0
1177
+ }
1178
+ ],
1179
+ "byteSize": 4096,
1180
+ "byteAlign": 4
1181
+ },
1182
+ {
1183
+ "kind": "struct",
1184
+ "name": "getUserCreatedNFT_input",
1185
+ "fields": [
1186
+ {
1187
+ "name": "user",
1188
+ "type": "id",
1189
+ "byteOffset": 0
1190
+ },
1191
+ {
1192
+ "name": "offset",
1193
+ "type": "uint32",
1194
+ "byteOffset": 32
1195
+ },
1196
+ {
1197
+ "name": "count",
1198
+ "type": "uint32",
1199
+ "byteOffset": 36
1200
+ }
1201
+ ],
1202
+ "byteSize": 40,
1203
+ "byteAlign": 8
1204
+ },
1205
+ {
1206
+ "kind": "struct",
1207
+ "name": "getUserCreatedNFT_output",
1208
+ "fields": [
1209
+ {
1210
+ "name": "NFTId",
1211
+ "type": "Array<uint32, 1024>",
1212
+ "byteOffset": 0
1213
+ }
1214
+ ],
1215
+ "byteSize": 4096,
1216
+ "byteAlign": 4
1217
+ },
1218
+ {
1219
+ "kind": "struct",
1220
+ "name": "listInExchange_input",
1221
+ "fields": [
1222
+ {
1223
+ "name": "possessedNFT",
1224
+ "type": "uint32",
1225
+ "byteOffset": 0
1226
+ },
1227
+ {
1228
+ "name": "anotherNFT",
1229
+ "type": "uint32",
1230
+ "byteOffset": 4
1231
+ }
1232
+ ],
1233
+ "byteSize": 8,
1234
+ "byteAlign": 4
1235
+ },
1236
+ {
1237
+ "kind": "struct",
1238
+ "name": "listInExchange_output",
1239
+ "fields": [
1240
+ {
1241
+ "name": "returnCode",
1242
+ "type": "uint32",
1243
+ "byteOffset": 0
1244
+ }
1245
+ ],
1246
+ "byteSize": 4,
1247
+ "byteAlign": 4
1248
+ },
1249
+ {
1250
+ "kind": "struct",
1251
+ "name": "listInMarket_input",
1252
+ "fields": [
1253
+ {
1254
+ "name": "price",
1255
+ "type": "uint64",
1256
+ "byteOffset": 0
1257
+ },
1258
+ {
1259
+ "name": "NFTid",
1260
+ "type": "uint32",
1261
+ "byteOffset": 8
1262
+ }
1263
+ ],
1264
+ "byteSize": 16,
1265
+ "byteAlign": 8
1266
+ },
1267
+ {
1268
+ "kind": "struct",
1269
+ "name": "listInMarket_output",
1270
+ "fields": [
1271
+ {
1272
+ "name": "returnCode",
1273
+ "type": "uint32",
1274
+ "byteOffset": 0
1275
+ }
1276
+ ],
1277
+ "byteSize": 4,
1278
+ "byteAlign": 4
1279
+ },
1280
+ {
1281
+ "kind": "struct",
1282
+ "name": "makeOffer_input",
1283
+ "fields": [
1284
+ {
1285
+ "name": "askPrice",
1286
+ "type": "uint64",
1287
+ "byteOffset": 0
1288
+ },
1289
+ {
1290
+ "name": "NFTid",
1291
+ "type": "uint32",
1292
+ "byteOffset": 8
1293
+ },
1294
+ {
1295
+ "name": "paymentMethod",
1296
+ "type": "bit",
1297
+ "byteOffset": 12
1298
+ }
1299
+ ],
1300
+ "byteSize": 16,
1301
+ "byteAlign": 8
1302
+ },
1303
+ {
1304
+ "kind": "struct",
1305
+ "name": "makeOffer_output",
1306
+ "fields": [
1307
+ {
1308
+ "name": "returnCode",
1309
+ "type": "uint32",
1310
+ "byteOffset": 0
1311
+ }
1312
+ ],
1313
+ "byteSize": 4,
1314
+ "byteAlign": 4
1315
+ },
1316
+ {
1317
+ "kind": "struct",
1318
+ "name": "mint_input",
1319
+ "fields": [
1320
+ {
1321
+ "name": "royalty",
1322
+ "type": "uint32",
1323
+ "byteOffset": 0
1324
+ },
1325
+ {
1326
+ "name": "collectionId",
1327
+ "type": "uint32",
1328
+ "byteOffset": 4
1329
+ },
1330
+ {
1331
+ "name": "URI",
1332
+ "type": "Array<uint8, 64>",
1333
+ "byteOffset": 8
1334
+ },
1335
+ {
1336
+ "name": "typeOfMint",
1337
+ "type": "bit",
1338
+ "byteOffset": 72
1339
+ }
1340
+ ],
1341
+ "byteSize": 76,
1342
+ "byteAlign": 4
1343
+ },
1344
+ {
1345
+ "kind": "struct",
1346
+ "name": "mint_output",
1347
+ "fields": [
1348
+ {
1349
+ "name": "returnCode",
1350
+ "type": "uint32",
1351
+ "byteOffset": 0
1352
+ }
1353
+ ],
1354
+ "byteSize": 4,
1355
+ "byteAlign": 4
1356
+ },
1357
+ {
1358
+ "kind": "struct",
1359
+ "name": "mintOfDrop_input",
1360
+ "fields": [
1361
+ {
1362
+ "name": "collectionId",
1363
+ "type": "uint32",
1364
+ "byteOffset": 0
1365
+ },
1366
+ {
1367
+ "name": "URI",
1368
+ "type": "Array<uint8, 64>",
1369
+ "byteOffset": 4
1370
+ }
1371
+ ],
1372
+ "byteSize": 68,
1373
+ "byteAlign": 4
1374
+ },
1375
+ {
1376
+ "kind": "struct",
1377
+ "name": "mintOfDrop_output",
1378
+ "fields": [
1379
+ {
1380
+ "name": "returnCode",
1381
+ "type": "uint32",
1382
+ "byteOffset": 0
1383
+ }
1384
+ ],
1385
+ "byteSize": 4,
1386
+ "byteAlign": 4
1387
+ },
1388
+ {
1389
+ "kind": "struct",
1390
+ "name": "settingCFBAndQubicPrice_input",
1391
+ "fields": [
1392
+ {
1393
+ "name": "CFBPrice",
1394
+ "type": "uint64",
1395
+ "byteOffset": 0
1396
+ },
1397
+ {
1398
+ "name": "QubicPrice",
1399
+ "type": "uint64",
1400
+ "byteOffset": 8
1401
+ }
1402
+ ],
1403
+ "byteSize": 16,
1404
+ "byteAlign": 8
1405
+ },
1406
+ {
1407
+ "kind": "struct",
1408
+ "name": "settingCFBAndQubicPrice_output",
1409
+ "fields": [
1410
+ {
1411
+ "name": "returnCode",
1412
+ "type": "uint32",
1413
+ "byteOffset": 0
1414
+ }
1415
+ ],
1416
+ "byteSize": 4,
1417
+ "byteAlign": 4
1418
+ },
1419
+ {
1420
+ "kind": "struct",
1421
+ "name": "transfer_input",
1422
+ "fields": [
1423
+ {
1424
+ "name": "receiver",
1425
+ "type": "id",
1426
+ "byteOffset": 0
1427
+ },
1428
+ {
1429
+ "name": "NFTid",
1430
+ "type": "uint32",
1431
+ "byteOffset": 32
1432
+ }
1433
+ ],
1434
+ "byteSize": 40,
1435
+ "byteAlign": 8
1436
+ },
1437
+ {
1438
+ "kind": "struct",
1439
+ "name": "transfer_output",
1440
+ "fields": [
1441
+ {
1442
+ "name": "returnCode",
1443
+ "type": "uint32",
1444
+ "byteOffset": 0
1445
+ }
1446
+ ],
1447
+ "byteSize": 4,
1448
+ "byteAlign": 4
1449
+ },
1450
+ {
1451
+ "kind": "struct",
1452
+ "name": "TransferShareManagementRights_input",
1453
+ "fields": [
1454
+ {
1455
+ "name": "asset",
1456
+ "type": "Asset",
1457
+ "byteOffset": 0
1458
+ },
1459
+ {
1460
+ "name": "numberOfShares",
1461
+ "type": "sint64",
1462
+ "byteOffset": 40
1463
+ },
1464
+ {
1465
+ "name": "newManagingContractIndex",
1466
+ "type": "uint32",
1467
+ "byteOffset": 48
1468
+ }
1469
+ ],
1470
+ "byteSize": 56,
1471
+ "byteAlign": 8
1472
+ },
1473
+ {
1474
+ "kind": "struct",
1475
+ "name": "TransferShareManagementRights_output",
1476
+ "fields": [
1477
+ {
1478
+ "name": "transferredNumberOfShares",
1479
+ "type": "sint64",
1480
+ "byteOffset": 0
1481
+ },
1482
+ {
1483
+ "name": "returnCode",
1484
+ "type": "uint32",
1485
+ "byteOffset": 8
1486
+ }
1487
+ ],
1488
+ "byteSize": 16,
1489
+ "byteAlign": 8
1490
+ }
1491
+ ]
1492
+ }