@opcat-labs/cat-sdk 3.2.0 → 3.3.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 (137) hide show
  1. package/artifacts/.templates/cat20/cat20Admin.scrypt.tpl +4 -4
  2. package/artifacts/.templates/cat20/cat20Guard_12_12_2.scrypt.tpl +2 -2
  3. package/artifacts/.templates/cat20/cat20Guard_12_12_4.scrypt.tpl +2 -2
  4. package/artifacts/.templates/cat20/cat20Guard_6_6_2.scrypt.tpl +2 -2
  5. package/artifacts/.templates/cat20/cat20Guard_6_6_4.scrypt.tpl +2 -2
  6. package/artifacts/.templates/cat20/minters/cat20ClosedMinter.scrypt.tpl +2 -2
  7. package/artifacts/.templates/cat20/minters/cat20OpenMinter.scrypt.tpl +2 -2
  8. package/artifacts/.templates/cat721/cat721Guard_12_12_2.scrypt.tpl +2 -2
  9. package/artifacts/.templates/cat721/cat721Guard_12_12_4.scrypt.tpl +2 -2
  10. package/artifacts/.templates/cat721/cat721Guard_6_6_2.scrypt.tpl +2 -2
  11. package/artifacts/.templates/cat721/cat721Guard_6_6_4.scrypt.tpl +2 -2
  12. package/artifacts/.templates/cat721/minters/cat721ClosedMinter.scrypt.tpl +2 -2
  13. package/artifacts/.templates/cat721/minters/cat721OpenMinter.scrypt.tpl +2 -2
  14. package/artifacts/cat20/cat20.json +52 -34
  15. package/artifacts/cat20/cat20.scrypt +18 -18
  16. package/artifacts/cat20/cat20Admin.json +54 -36
  17. package/artifacts/cat20/cat20Admin.scrypt +30 -30
  18. package/artifacts/cat20/cat20GuardStateLib.json +39 -21
  19. package/artifacts/cat20/cat20GuardStateLib.scrypt +5 -5
  20. package/artifacts/cat20/cat20Guard_12_12_2.json +53 -35
  21. package/artifacts/cat20/cat20Guard_12_12_2.scrypt +29 -29
  22. package/artifacts/cat20/cat20Guard_12_12_4.json +53 -35
  23. package/artifacts/cat20/cat20Guard_12_12_4.scrypt +29 -29
  24. package/artifacts/cat20/cat20Guard_6_6_2.json +53 -35
  25. package/artifacts/cat20/cat20Guard_6_6_2.scrypt +29 -29
  26. package/artifacts/cat20/cat20Guard_6_6_4.json +53 -35
  27. package/artifacts/cat20/cat20Guard_6_6_4.scrypt +29 -29
  28. package/artifacts/cat20/cat20StateLib.json +40 -22
  29. package/artifacts/cat20/cat20StateLib.scrypt +5 -5
  30. package/artifacts/cat20/minters/cat20ClosedMinter.json +52 -34
  31. package/artifacts/cat20/minters/cat20ClosedMinter.scrypt +22 -22
  32. package/artifacts/cat20/minters/cat20OpenMinter.json +52 -34
  33. package/artifacts/cat20/minters/cat20OpenMinter.scrypt +18 -18
  34. package/artifacts/cat20/types.json +5 -5
  35. package/artifacts/cat20/types.scrypt +5 -5
  36. package/artifacts/cat721/cat721.json +52 -34
  37. package/artifacts/cat721/cat721.scrypt +18 -18
  38. package/artifacts/cat721/cat721GuardStateLib.json +39 -21
  39. package/artifacts/cat721/cat721GuardStateLib.scrypt +5 -5
  40. package/artifacts/cat721/cat721Guard_12_12_2.json +52 -34
  41. package/artifacts/cat721/cat721Guard_12_12_2.scrypt +26 -26
  42. package/artifacts/cat721/cat721Guard_12_12_4.json +52 -34
  43. package/artifacts/cat721/cat721Guard_12_12_4.scrypt +26 -26
  44. package/artifacts/cat721/cat721Guard_6_6_2.json +52 -34
  45. package/artifacts/cat721/cat721Guard_6_6_2.scrypt +26 -26
  46. package/artifacts/cat721/cat721Guard_6_6_4.json +52 -34
  47. package/artifacts/cat721/cat721Guard_6_6_4.scrypt +26 -26
  48. package/artifacts/cat721/cat721StateLib.json +40 -22
  49. package/artifacts/cat721/cat721StateLib.scrypt +5 -5
  50. package/artifacts/cat721/minters/cat721ClosedMinter.json +52 -34
  51. package/artifacts/cat721/minters/cat721ClosedMinter.scrypt +18 -18
  52. package/artifacts/cat721/minters/cat721OpenMintInfo.json +5 -5
  53. package/artifacts/cat721/minters/cat721OpenMintInfo.scrypt +4 -4
  54. package/artifacts/cat721/minters/cat721OpenMinter.json +57 -39
  55. package/artifacts/cat721/minters/cat721OpenMinter.scrypt +22 -22
  56. package/artifacts/cat721/minters/cat721OpenMinterMerkleTree.json +37 -19
  57. package/artifacts/cat721/minters/cat721OpenMinterMerkleTree.scrypt +6 -6
  58. package/artifacts/cat721/types.json +5 -5
  59. package/artifacts/cat721/types.scrypt +5 -5
  60. package/artifacts/constants.json +2 -2
  61. package/artifacts/constants.scrypt +1 -1
  62. package/artifacts/scrypt-ts-opcat/assets/smart-contract/builtin-libs/backtrace.scrypt +13 -13
  63. package/artifacts/scrypt-ts-opcat/assets/smart-contract/builtin-libs/contextUtils.scrypt +16 -16
  64. package/artifacts/scrypt-ts-opcat/assets/smart-contract/builtin-libs/stateUtils.scrypt +1 -1
  65. package/artifacts/scrypt-ts-opcat/assets/smart-contract/builtin-libs/stdUtils.scrypt +12 -12
  66. package/artifacts/scrypt-ts-opcat/assets/smart-contract/builtin-libs/txHashPreimageUtils.scrypt +7 -7
  67. package/artifacts/scrypt-ts-opcat/assets/smart-contract/builtin-libs/txUtils.scrypt +12 -12
  68. package/artifacts/scrypt-ts-opcat/assets/smart-contract/types/structs.scrypt +15 -9
  69. package/artifacts/types.json +2 -2
  70. package/artifacts/types.scrypt +2 -2
  71. package/artifacts/utils/ownerUtils.json +32 -14
  72. package/artifacts/utils/ownerUtils.scrypt +3 -3
  73. package/artifacts/utils/safeMath.json +32 -14
  74. package/artifacts/utils/safeMath.scrypt +1 -1
  75. package/dist/artifacts/cat20/cat20.json +52 -34
  76. package/dist/artifacts/cat20/cat20.scrypt +18 -18
  77. package/dist/artifacts/cat20/cat20Admin.json +54 -36
  78. package/dist/artifacts/cat20/cat20Admin.scrypt +30 -30
  79. package/dist/artifacts/cat20/cat20GuardStateLib.json +39 -21
  80. package/dist/artifacts/cat20/cat20GuardStateLib.scrypt +5 -5
  81. package/dist/artifacts/cat20/cat20Guard_12_12_2.json +53 -35
  82. package/dist/artifacts/cat20/cat20Guard_12_12_2.scrypt +29 -29
  83. package/dist/artifacts/cat20/cat20Guard_12_12_4.json +53 -35
  84. package/dist/artifacts/cat20/cat20Guard_12_12_4.scrypt +29 -29
  85. package/dist/artifacts/cat20/cat20Guard_6_6_2.json +53 -35
  86. package/dist/artifacts/cat20/cat20Guard_6_6_2.scrypt +29 -29
  87. package/dist/artifacts/cat20/cat20Guard_6_6_4.json +53 -35
  88. package/dist/artifacts/cat20/cat20Guard_6_6_4.scrypt +29 -29
  89. package/dist/artifacts/cat20/cat20StateLib.json +40 -22
  90. package/dist/artifacts/cat20/cat20StateLib.scrypt +5 -5
  91. package/dist/artifacts/cat20/minters/cat20ClosedMinter.json +52 -34
  92. package/dist/artifacts/cat20/minters/cat20ClosedMinter.scrypt +22 -22
  93. package/dist/artifacts/cat20/minters/cat20OpenMinter.json +52 -34
  94. package/dist/artifacts/cat20/minters/cat20OpenMinter.scrypt +18 -18
  95. package/dist/artifacts/cat20/types.json +5 -5
  96. package/dist/artifacts/cat20/types.scrypt +5 -5
  97. package/dist/artifacts/cat721/cat721.json +52 -34
  98. package/dist/artifacts/cat721/cat721.scrypt +18 -18
  99. package/dist/artifacts/cat721/cat721GuardStateLib.json +39 -21
  100. package/dist/artifacts/cat721/cat721GuardStateLib.scrypt +5 -5
  101. package/dist/artifacts/cat721/cat721Guard_12_12_2.json +52 -34
  102. package/dist/artifacts/cat721/cat721Guard_12_12_2.scrypt +26 -26
  103. package/dist/artifacts/cat721/cat721Guard_12_12_4.json +52 -34
  104. package/dist/artifacts/cat721/cat721Guard_12_12_4.scrypt +26 -26
  105. package/dist/artifacts/cat721/cat721Guard_6_6_2.json +52 -34
  106. package/dist/artifacts/cat721/cat721Guard_6_6_2.scrypt +26 -26
  107. package/dist/artifacts/cat721/cat721Guard_6_6_4.json +52 -34
  108. package/dist/artifacts/cat721/cat721Guard_6_6_4.scrypt +26 -26
  109. package/dist/artifacts/cat721/cat721StateLib.json +40 -22
  110. package/dist/artifacts/cat721/cat721StateLib.scrypt +5 -5
  111. package/dist/artifacts/cat721/minters/cat721ClosedMinter.json +52 -34
  112. package/dist/artifacts/cat721/minters/cat721ClosedMinter.scrypt +18 -18
  113. package/dist/artifacts/cat721/minters/cat721OpenMintInfo.json +5 -5
  114. package/dist/artifacts/cat721/minters/cat721OpenMintInfo.scrypt +4 -4
  115. package/dist/artifacts/cat721/minters/cat721OpenMinter.json +57 -39
  116. package/dist/artifacts/cat721/minters/cat721OpenMinter.scrypt +22 -22
  117. package/dist/artifacts/cat721/minters/cat721OpenMinterMerkleTree.json +37 -19
  118. package/dist/artifacts/cat721/minters/cat721OpenMinterMerkleTree.scrypt +6 -6
  119. package/dist/artifacts/cat721/types.json +5 -5
  120. package/dist/artifacts/cat721/types.scrypt +5 -5
  121. package/dist/artifacts/constants.json +2 -2
  122. package/dist/artifacts/constants.scrypt +1 -1
  123. package/dist/artifacts/scrypt-ts-opcat/assets/smart-contract/builtin-libs/backtrace.scrypt +13 -13
  124. package/dist/artifacts/scrypt-ts-opcat/assets/smart-contract/builtin-libs/contextUtils.scrypt +16 -16
  125. package/dist/artifacts/scrypt-ts-opcat/assets/smart-contract/builtin-libs/stateUtils.scrypt +1 -1
  126. package/dist/artifacts/scrypt-ts-opcat/assets/smart-contract/builtin-libs/stdUtils.scrypt +12 -12
  127. package/dist/artifacts/scrypt-ts-opcat/assets/smart-contract/builtin-libs/txHashPreimageUtils.scrypt +7 -7
  128. package/dist/artifacts/scrypt-ts-opcat/assets/smart-contract/builtin-libs/txUtils.scrypt +12 -12
  129. package/dist/artifacts/scrypt-ts-opcat/assets/smart-contract/types/structs.scrypt +15 -9
  130. package/dist/artifacts/types.json +2 -2
  131. package/dist/artifacts/types.scrypt +2 -2
  132. package/dist/artifacts/utils/ownerUtils.json +32 -14
  133. package/dist/artifacts/utils/ownerUtils.scrypt +3 -3
  134. package/dist/artifacts/utils/safeMath.json +32 -14
  135. package/dist/artifacts/utils/safeMath.scrypt +1 -1
  136. package/package.json +4 -4
  137. package/scrypt.index.json +13 -13
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "version": 10,
3
3
  "compilerVersion": "1.22.0+commit.47800da",
4
- "contract": "_opcat_labs_cat_sdk_3_2_0__rs__CAT721",
4
+ "contract": "_opcat_labs_cat_sdk_3_3_0__rs__CAT721",
5
5
  "md5": "de42677a0529e04ea0756b2b50ff5890",
6
6
  "structs": [
7
7
  {
8
- "name": "_opcat_labs_cat_sdk_3_2_0__rs__CAT721GuardConstState",
8
+ "name": "_opcat_labs_cat_sdk_3_3_0__rs__CAT721GuardConstState",
9
9
  "params": [
10
10
  {
11
11
  "name": "deployerAddr",
@@ -27,7 +27,7 @@
27
27
  "genericTypes": []
28
28
  },
29
29
  {
30
- "name": "_opcat_labs_cat_sdk_3_2_0__rs__CAT721State",
30
+ "name": "_opcat_labs_cat_sdk_3_3_0__rs__CAT721State",
31
31
  "params": [
32
32
  {
33
33
  "name": "ownerAddr",
@@ -41,7 +41,7 @@
41
41
  "genericTypes": []
42
42
  },
43
43
  {
44
- "name": "_opcat_labs_cat_sdk_3_2_0__rs__CAT721ClosedMinterState",
44
+ "name": "_opcat_labs_cat_sdk_3_3_0__rs__CAT721ClosedMinterState",
45
45
  "params": [
46
46
  {
47
47
  "name": "nftScriptHash",
@@ -59,7 +59,7 @@
59
59
  "genericTypes": []
60
60
  },
61
61
  {
62
- "name": "_opcat_labs_cat_sdk_3_2_0__rs__CAT721MerkleLeaf",
62
+ "name": "_opcat_labs_cat_sdk_3_3_0__rs__CAT721MerkleLeaf",
63
63
  "params": [
64
64
  {
65
65
  "name": "contentDataHash",
@@ -77,7 +77,7 @@
77
77
  "genericTypes": []
78
78
  },
79
79
  {
80
- "name": "_opcat_labs_cat_sdk_3_2_0__rs__CAT721OpenMinterState",
80
+ "name": "_opcat_labs_cat_sdk_3_3_0__rs__CAT721OpenMinterState",
81
81
  "params": [
82
82
  {
83
83
  "name": "nftScriptHash",
@@ -95,7 +95,7 @@
95
95
  "genericTypes": []
96
96
  },
97
97
  {
98
- "name": "_opcat_labs_scrypt_ts_opcat_3_2_0__rs__TxOut",
98
+ "name": "_opcat_labs_scrypt_ts_opcat_3_3_0__rs__TxOut",
99
99
  "params": [
100
100
  {
101
101
  "name": "scriptHash",
@@ -113,7 +113,7 @@
113
113
  "genericTypes": []
114
114
  },
115
115
  {
116
- "name": "_opcat_labs_scrypt_ts_opcat_3_2_0__rs__TxIn",
116
+ "name": "_opcat_labs_scrypt_ts_opcat_3_3_0__rs__TxIn",
117
117
  "params": [
118
118
  {
119
119
  "name": "prevTxHash",
@@ -135,7 +135,7 @@
135
135
  "genericTypes": []
136
136
  },
137
137
  {
138
- "name": "_opcat_labs_scrypt_ts_opcat_3_2_0__rs__TxHashPreimage",
138
+ "name": "_opcat_labs_scrypt_ts_opcat_3_3_0__rs__TxHashPreimage",
139
139
  "params": [
140
140
  {
141
141
  "name": "version",
@@ -157,11 +157,11 @@
157
157
  "genericTypes": []
158
158
  },
159
159
  {
160
- "name": "_opcat_labs_scrypt_ts_opcat_3_2_0__rs__BacktraceInfo",
160
+ "name": "_opcat_labs_scrypt_ts_opcat_3_3_0__rs__BacktraceInfo",
161
161
  "params": [
162
162
  {
163
163
  "name": "prevTxInput",
164
- "type": "_opcat_labs_scrypt_ts_opcat_3_2_0__rs__TxIn"
164
+ "type": "_opcat_labs_scrypt_ts_opcat_3_3_0__rs__TxIn"
165
165
  },
166
166
  {
167
167
  "name": "prevTxInputIndex",
@@ -169,13 +169,13 @@
169
169
  },
170
170
  {
171
171
  "name": "prevPrevTxPreimage",
172
- "type": "_opcat_labs_scrypt_ts_opcat_3_2_0__rs__TxHashPreimage"
172
+ "type": "_opcat_labs_scrypt_ts_opcat_3_3_0__rs__TxHashPreimage"
173
173
  }
174
174
  ],
175
175
  "genericTypes": []
176
176
  },
177
177
  {
178
- "name": "_opcat_labs_scrypt_ts_opcat_3_2_0__rs__SHPreimage",
178
+ "name": "_opcat_labs_scrypt_ts_opcat_3_3_0__rs__SHPreimage",
179
179
  "params": [
180
180
  {
181
181
  "name": "nVersion",
@@ -237,7 +237,7 @@
237
237
  "genericTypes": []
238
238
  },
239
239
  {
240
- "name": "_opcat_labs_scrypt_ts_opcat_3_2_0__rs__Outpoint",
240
+ "name": "_opcat_labs_scrypt_ts_opcat_3_3_0__rs__Outpoint",
241
241
  "params": [
242
242
  {
243
243
  "name": "txHash",
@@ -251,7 +251,25 @@
251
251
  "genericTypes": []
252
252
  },
253
253
  {
254
- "name": "_opcat_labs_scrypt_ts_opcat_3_2_0__rs__ChainTxVerifyResponse",
254
+ "name": "_opcat_labs_scrypt_ts_opcat_3_3_0__rs__ChangeInfo",
255
+ "params": [
256
+ {
257
+ "name": "pubkeyhash",
258
+ "type": "Ripemd160"
259
+ },
260
+ {
261
+ "name": "satoshis",
262
+ "type": "int"
263
+ },
264
+ {
265
+ "name": "dataHash",
266
+ "type": "Sha256"
267
+ }
268
+ ],
269
+ "genericTypes": []
270
+ },
271
+ {
272
+ "name": "_opcat_labs_scrypt_ts_opcat_3_3_0__rs__ChainTxVerifyResponse",
255
273
  "params": [
256
274
  {
257
275
  "name": "prevPrevScript",
@@ -265,7 +283,7 @@
265
283
  "genericTypes": []
266
284
  },
267
285
  {
268
- "name": "_opcat_labs_cat_sdk_3_2_0__rs__CAT20ContractUnlockArgs",
286
+ "name": "_opcat_labs_cat_sdk_3_3_0__rs__CAT20ContractUnlockArgs",
269
287
  "params": [
270
288
  {
271
289
  "name": "spendType",
@@ -287,7 +305,7 @@
287
305
  "genericTypes": []
288
306
  },
289
307
  {
290
- "name": "_opcat_labs_cat_sdk_3_2_0__rs__CAT721ContractUnlockArgs",
308
+ "name": "_opcat_labs_cat_sdk_3_3_0__rs__CAT721ContractUnlockArgs",
291
309
  "params": [
292
310
  {
293
311
  "name": "userPubKey",
@@ -305,7 +323,7 @@
305
323
  "genericTypes": []
306
324
  },
307
325
  {
308
- "name": "_opcat_labs_scrypt_ts_opcat_3_2_0__rs__ReadVarintResult",
326
+ "name": "_opcat_labs_scrypt_ts_opcat_3_3_0__rs__ReadVarintResult",
309
327
  "params": [
310
328
  {
311
329
  "name": "data",
@@ -321,50 +339,50 @@
321
339
  ],
322
340
  "library": [
323
341
  {
324
- "name": "_opcat_labs_cat_sdk_3_2_0__rs__OwnerUtils",
342
+ "name": "_opcat_labs_cat_sdk_3_3_0__rs__OwnerUtils",
325
343
  "params": [],
326
344
  "properties": [],
327
345
  "genericTypes": []
328
346
  },
329
347
  {
330
- "name": "_opcat_labs_scrypt_ts_opcat_3_2_0__rs__TxUtils",
348
+ "name": "_opcat_labs_scrypt_ts_opcat_3_3_0__rs__TxUtils",
331
349
  "params": [],
332
350
  "properties": [],
333
351
  "genericTypes": []
334
352
  },
335
353
  {
336
- "name": "_opcat_labs_scrypt_ts_opcat_3_2_0__rs__StateUtils",
354
+ "name": "_opcat_labs_scrypt_ts_opcat_3_3_0__rs__StateUtils",
337
355
  "params": [],
338
356
  "properties": [],
339
357
  "genericTypes": []
340
358
  },
341
359
  {
342
- "name": "_opcat_labs_scrypt_ts_opcat_3_2_0__rs__TxHashPreimageUtils",
360
+ "name": "_opcat_labs_scrypt_ts_opcat_3_3_0__rs__TxHashPreimageUtils",
343
361
  "params": [],
344
362
  "properties": [],
345
363
  "genericTypes": []
346
364
  },
347
365
  {
348
- "name": "_opcat_labs_scrypt_ts_opcat_3_2_0__rs__Backtrace",
366
+ "name": "_opcat_labs_scrypt_ts_opcat_3_3_0__rs__Backtrace",
349
367
  "params": [],
350
368
  "properties": [],
351
369
  "genericTypes": []
352
370
  },
353
371
  {
354
- "name": "_opcat_labs_scrypt_ts_opcat_3_2_0__rs__ContextUtils",
372
+ "name": "_opcat_labs_scrypt_ts_opcat_3_3_0__rs__ContextUtils",
355
373
  "params": [],
356
374
  "properties": [],
357
375
  "genericTypes": []
358
376
  },
359
377
  {
360
- "name": "_opcat_labs_cat_sdk_3_2_0__rs__CAT721GuardStateLib",
378
+ "name": "_opcat_labs_cat_sdk_3_3_0__rs__CAT721GuardStateLib",
361
379
  "params": [],
362
380
  "properties": [],
363
381
  "genericTypes": [],
364
- "stateType": "_opcat_labs_cat_sdk_3_2_0__rs__CAT721GuardConstState"
382
+ "stateType": "_opcat_labs_cat_sdk_3_3_0__rs__CAT721GuardConstState"
365
383
  },
366
384
  {
367
- "name": "_opcat_labs_scrypt_ts_opcat_3_2_0__rs__StdUtils",
385
+ "name": "_opcat_labs_scrypt_ts_opcat_3_3_0__rs__StdUtils",
368
386
  "params": [],
369
387
  "properties": [],
370
388
  "genericTypes": []
@@ -379,11 +397,11 @@
379
397
  "params": [
380
398
  {
381
399
  "name": "unlockArgs",
382
- "type": "_opcat_labs_cat_sdk_3_2_0__rs__CAT721ContractUnlockArgs"
400
+ "type": "_opcat_labs_cat_sdk_3_3_0__rs__CAT721ContractUnlockArgs"
383
401
  },
384
402
  {
385
403
  "name": "guardState",
386
- "type": "_opcat_labs_cat_sdk_3_2_0__rs__CAT721GuardConstState"
404
+ "type": "_opcat_labs_cat_sdk_3_3_0__rs__CAT721GuardConstState"
387
405
  },
388
406
  {
389
407
  "name": "guardInputIndex",
@@ -391,11 +409,11 @@
391
409
  },
392
410
  {
393
411
  "name": "backtraceInfo",
394
- "type": "_opcat_labs_scrypt_ts_opcat_3_2_0__rs__BacktraceInfo"
412
+ "type": "_opcat_labs_scrypt_ts_opcat_3_3_0__rs__BacktraceInfo"
395
413
  },
396
414
  {
397
415
  "name": "__scrypt_ts_shPreimage",
398
- "type": "_opcat_labs_scrypt_ts_opcat_3_2_0__rs__SHPreimage"
416
+ "type": "_opcat_labs_scrypt_ts_opcat_3_3_0__rs__SHPreimage"
399
417
  },
400
418
  {
401
419
  "name": "__scrypt_ts_preimageSig",
@@ -403,7 +421,7 @@
403
421
  },
404
422
  {
405
423
  "name": "__scrypt_ts_curState",
406
- "type": "_opcat_labs_cat_sdk_3_2_0__rs__CAT721State"
424
+ "type": "_opcat_labs_cat_sdk_3_3_0__rs__CAT721State"
407
425
  },
408
426
  {
409
427
  "name": "__scrypt_ts_prevouts",
@@ -423,7 +441,7 @@
423
441
  },
424
442
  {
425
443
  "name": "__scrypt_ts_prevTxHashPreimage",
426
- "type": "_opcat_labs_scrypt_ts_opcat_3_2_0__rs__TxHashPreimage"
444
+ "type": "_opcat_labs_scrypt_ts_opcat_3_3_0__rs__TxHashPreimage"
427
445
  }
428
446
  ]
429
447
  },
@@ -442,7 +460,7 @@
442
460
  }
443
461
  ],
444
462
  "stateProps": [],
445
- "stateType": "_opcat_labs_cat_sdk_3_2_0__rs__CAT721State",
463
+ "stateType": "_opcat_labs_cat_sdk_3_3_0__rs__CAT721State",
446
464
  "buildType": "release",
447
465
  "file": "../cat721.scrypt",
448
466
  "hex": "2102ba79df5f8ae7604a9830f03c7933028186aede0675a16f025dc4f8be8eec03820000000000<minterScriptHash><guardVariantScriptHashes[0]><guardVariantScriptHashes[1]><guardVariantScriptHashes[2]><guardVariantScriptHashes[3]>54795a7a75597a597a597a597a597a597a597a597a597a70705c7a5c7a5c7a5c7a6d6d587a587a587a587a587a6d6d75607901117982778c7f75007f77011f79011f79011f79011f79011f79011f79011f79011f79011f79011f79011f79011f79011f79011f795d798277549d5c79827701209d5b79827701209d5a79827701209d597900a26958798277549d5779827701209d5679827701209d5579827701209d5479827701209d5379827701209d527900a2697800a26976519c6476529c6751686476539c67516864760281009c67516864760282009c67516864760283009c675168695d795d797e5c797e5b797e5a79767600a2637609ffffffffffffffff00a16700686976586e8b806e7c7f75007f6b6d6d6d6c7e59797e58797e57797e56797e55797e54797e5379546e8b806e7c7f75007f6b6d6d6c7e5279546e8b806e7c7f75007f6b6d6d6c7e7854807e6b6d6d6d6d6d6d6d6ca85779ba6360795679ac670068695c7901197978aa7888785878827d77527997009d6e7c966b6d6d6c775e79011f7901167970aa5379886e9f69765479012478827d77527997009d6e7c967777779d537952798b0124957f7552790124957f7d7701207f75007f777801247f7501207f77768277549d767601007e817777726d726d7b755d79011b7954795279aa527988765379012078827d77527997009d6e7c967777779d6d755e79011a7954795279aa527988765379012078827d77527997009d6e7c967777779d6d75011279011279011879011579011579788277528052797e78827752807e787e5279a95279a97ea97ea877770112797653798b0120957f7553790120957f775279886d755e795e795e795e79011679011d79557955795579557953798277549d5279014878827d77527997009d6e7c967777775279014878827d77527997009d6e7c96777777557952790000527902fd009f637551675279030000019f6301fd7b757c52776752790500000000019f6301fe7b757c54776701ff7b757c587768686878537952796e8b806e7c7f75007f6b6d6d6c7e7777777e55797e780000527902fd009f637551675279030000019f6301fd7b757c52776752790500000000019f6301fe7b757c54776701ff7b757c587768686878537952796e8b806e7c7f75007f6b6d6d6c7e7777777e54797e53797eaa6b6d6d6d6c76700124950120937f7553790124957f77886d6d6d75012c79012c79012c79012c79012c79012c79012c79012c79012c790112790119790123798b0120957f750123790120957f770118795b795b795b795b795b795b795b795b795b7959797656798b0148957f7556790148957f775a795a795a795a795379827701209d76827701209d707600a2637605ffffffff00a16700686976546e8b806e7c7f75007f6b6d6d6c777e787e52797600a2637605ffffffff00a16700686976546e8b806e7c7f75007f6b6d6d6c777e6b6d6d6c88597976567956795679567953798277549d5279014878827d77527997009d6e7c967777775279014878827d77527997009d6e7c96777777557952790000527902fd009f637551675279030000019f6301fd7b757c52776752790500000000019f6301fe7b757c54776701ff7b757c587768686878537952796e8b806e7c7f75007f6b6d6d6c7e7777777e55797e780000527902fd009f637551675279030000019f6301fd7b757c52776752790500000000019f6301fe7b757c54776701ff7b757c587768686878537952796e8b806e7c7f75007f6b6d6d6c7e7777777e54797e53797eaa6b6d6d6d6c8853795a7901489558930120937f755a7901489558937f77785b797600a2637605ffffffff00a16700686976546e8b806e7c7f75007f6b6d6d6c777e787c726d726d726d726d726d726d785579876478547987675168696d6d6d6d6d6d6d013479013479013479013479013479013479013479012879012079013679011979011b797853796e8b0120957f75780120957f7777777601167901167901167901167953766b796c756b6d6d6c87647601167901167901167901167952766b796c756b6d6d6c87675168647601167901167901167901167951766b796c756b6d6d6c87675168647601167901167901167901167900766b796c756b6d6d6c87675168697854796e8b0120957f75780120957f7777775d795d795d795d795d795d795d7956798277528057797e567956795679567953766b796c756b6d6d6c827752807e567956795679567953766b796c756b6d6d6c7e567956795679567952766b796c756b6d6d6c827752807e567956795679567952766b796c756b6d6d6c7e567956795679567951766b796c756b6d6d6c827752807e567956795679567951766b796c756b6d6d6c7e567956795679567900766b796c756b6d6d6c827752807e567956795679567900766b796c756b6d6d6c7e5279827752807e52797e78827752807e787e5779a9577957795779577953766b796c756b6d6d6ca97e577957795779577952766b796c756b6d6d6ca97e577957795779577951766b796c756b6d6d6ca97e577957795779577900766b796c756b6d6d6ca97e5379a97e5279a97ea97ea86b6d6d6d6c7788567955798b7f7555797f77815c795c795c795c795455797600a26976549f69948c766b796c756b6d6d6c5779886d6d6d6d6d6d6d78827701209c6301357900a26301357955799f670068697860790137796e8b0120957f75780120957f77777788670137795279787676827701219d750376a91478a97e0288ac7e7778886d013679013879ad686d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d51"
@@ -12,53 +12,53 @@ import "../scrypt-ts-opcat/assets/smart-contract/builtin-libs/stateUtils.scrypt"
12
12
 
13
13
 
14
14
 
15
- contract _opcat_labs_cat_sdk_3_2_0__rs__CAT721 {
15
+ contract _opcat_labs_cat_sdk_3_3_0__rs__CAT721 {
16
16
  bytes minterScriptHash;
17
17
  Sha256[4] guardVariantScriptHashes;
18
18
  constructor(bytes minterScriptHash, Sha256[4] guardVariantScriptHashes) {
19
19
  this.minterScriptHash = minterScriptHash;
20
20
  this.guardVariantScriptHashes = guardVariantScriptHashes;
21
21
  }
22
- public function unlock(_opcat_labs_cat_sdk_3_2_0__rs__CAT721ContractUnlockArgs unlockArgs, _opcat_labs_cat_sdk_3_2_0__rs__CAT721GuardConstState guardState, int guardInputIndex, _opcat_labs_scrypt_ts_opcat_3_2_0__rs__BacktraceInfo backtraceInfo, _opcat_labs_scrypt_ts_opcat_3_2_0__rs__SHPreimage __scrypt_ts_shPreimage, Sig __scrypt_ts_preimageSig, _opcat_labs_cat_sdk_3_2_0__rs__CAT721State __scrypt_ts_curState, bytes __scrypt_ts_prevouts, bytes __scrypt_ts_spentAmounts, bytes __scrypt_ts_spentDataHashes, bytes __scrypt_ts_spentScriptHashes, _opcat_labs_scrypt_ts_opcat_3_2_0__rs__TxHashPreimage __scrypt_ts_prevTxHashPreimage) {
23
- require(checkDataSig(Sig(__scrypt_ts_preimageSig[0 : len(__scrypt_ts_preimageSig) - 1]), sha256(_opcat_labs_scrypt_ts_opcat_3_2_0__rs__ContextUtils.serializeSHPreimage(__scrypt_ts_shPreimage)), _opcat_labs_scrypt_ts_opcat_3_2_0__rs__ContextUtils.pubKey) && checkSig(__scrypt_ts_preimageSig, _opcat_labs_scrypt_ts_opcat_3_2_0__rs__ContextUtils.pubKey));
22
+ public function unlock(_opcat_labs_cat_sdk_3_3_0__rs__CAT721ContractUnlockArgs unlockArgs, _opcat_labs_cat_sdk_3_3_0__rs__CAT721GuardConstState guardState, int guardInputIndex, _opcat_labs_scrypt_ts_opcat_3_3_0__rs__BacktraceInfo backtraceInfo, _opcat_labs_scrypt_ts_opcat_3_3_0__rs__SHPreimage __scrypt_ts_shPreimage, Sig __scrypt_ts_preimageSig, _opcat_labs_cat_sdk_3_3_0__rs__CAT721State __scrypt_ts_curState, bytes __scrypt_ts_prevouts, bytes __scrypt_ts_spentAmounts, bytes __scrypt_ts_spentDataHashes, bytes __scrypt_ts_spentScriptHashes, _opcat_labs_scrypt_ts_opcat_3_3_0__rs__TxHashPreimage __scrypt_ts_prevTxHashPreimage) {
23
+ require(checkDataSig(Sig(__scrypt_ts_preimageSig[0 : len(__scrypt_ts_preimageSig) - 1]), sha256(_opcat_labs_scrypt_ts_opcat_3_3_0__rs__ContextUtils.serializeSHPreimage(__scrypt_ts_shPreimage)), _opcat_labs_scrypt_ts_opcat_3_3_0__rs__ContextUtils.pubKey) && checkSig(__scrypt_ts_preimageSig, _opcat_labs_scrypt_ts_opcat_3_3_0__rs__ContextUtils.pubKey));
24
24
 
25
- int __scrypt_ts_inputCount = _opcat_labs_scrypt_ts_opcat_3_2_0__rs__ContextUtils.checkSpentAmounts(__scrypt_ts_spentAmounts, __scrypt_ts_shPreimage.hashSpentAmounts);
25
+ int __scrypt_ts_inputCount = _opcat_labs_scrypt_ts_opcat_3_3_0__rs__ContextUtils.checkSpentAmounts(__scrypt_ts_spentAmounts, __scrypt_ts_shPreimage.hashSpentAmounts);
26
26
 
27
- _opcat_labs_scrypt_ts_opcat_3_2_0__rs__Outpoint __scrypt_ts_prevout = _opcat_labs_scrypt_ts_opcat_3_2_0__rs__ContextUtils.checkPrevouts(__scrypt_ts_prevouts, __scrypt_ts_shPreimage.hashPrevouts, __scrypt_ts_shPreimage.inputIndex, __scrypt_ts_inputCount);
27
+ _opcat_labs_scrypt_ts_opcat_3_3_0__rs__Outpoint __scrypt_ts_prevout = _opcat_labs_scrypt_ts_opcat_3_3_0__rs__ContextUtils.checkPrevouts(__scrypt_ts_prevouts, __scrypt_ts_shPreimage.hashPrevouts, __scrypt_ts_shPreimage.inputIndex, __scrypt_ts_inputCount);
28
28
 
29
- _opcat_labs_scrypt_ts_opcat_3_2_0__rs__ContextUtils.checkSpentScripts(__scrypt_ts_spentScriptHashes, __scrypt_ts_shPreimage.hashSpentScriptHashes, __scrypt_ts_inputCount);
29
+ _opcat_labs_scrypt_ts_opcat_3_3_0__rs__ContextUtils.checkSpentScripts(__scrypt_ts_spentScriptHashes, __scrypt_ts_shPreimage.hashSpentScriptHashes, __scrypt_ts_inputCount);
30
30
 
31
- _opcat_labs_scrypt_ts_opcat_3_2_0__rs__ContextUtils.checkSpentDataHashes(__scrypt_ts_spentDataHashes, __scrypt_ts_shPreimage.hashSpentDataHashes, __scrypt_ts_inputCount);
31
+ _opcat_labs_scrypt_ts_opcat_3_3_0__rs__ContextUtils.checkSpentDataHashes(__scrypt_ts_spentDataHashes, __scrypt_ts_shPreimage.hashSpentDataHashes, __scrypt_ts_inputCount);
32
32
 
33
- _opcat_labs_cat_sdk_3_2_0__rs__CAT721State __scrypt_ts_nextState = __scrypt_ts_curState;
33
+ _opcat_labs_cat_sdk_3_3_0__rs__CAT721State __scrypt_ts_nextState = __scrypt_ts_curState;
34
34
 
35
- _opcat_labs_scrypt_ts_opcat_3_2_0__rs__StateUtils.checkInputState(__scrypt_ts_shPreimage.inputIndex, _opcat_labs_cat_sdk_3_2_0__rs__CAT721.stateHash(__scrypt_ts_curState), __scrypt_ts_spentDataHashes);
35
+ _opcat_labs_scrypt_ts_opcat_3_3_0__rs__StateUtils.checkInputState(__scrypt_ts_shPreimage.inputIndex, _opcat_labs_cat_sdk_3_3_0__rs__CAT721.stateHash(__scrypt_ts_curState), __scrypt_ts_spentDataHashes);
36
36
 
37
- _opcat_labs_scrypt_ts_opcat_3_2_0__rs__Backtrace.checkPrevTxHashPreimage(__scrypt_ts_prevTxHashPreimage, __scrypt_ts_prevouts, __scrypt_ts_shPreimage.inputIndex);
37
+ _opcat_labs_scrypt_ts_opcat_3_3_0__rs__Backtrace.checkPrevTxHashPreimage(__scrypt_ts_prevTxHashPreimage, __scrypt_ts_prevouts, __scrypt_ts_shPreimage.inputIndex);
38
38
 
39
- _opcat_labs_scrypt_ts_opcat_3_2_0__rs__Backtrace.verifyFromScript(backtraceInfo, this.minterScriptHash, __scrypt_ts_spentScriptHashes[__scrypt_ts_shPreimage.inputIndex * 32 : (__scrypt_ts_shPreimage.inputIndex + 1) * 32], __scrypt_ts_prevTxHashPreimage.inputList);
39
+ _opcat_labs_scrypt_ts_opcat_3_3_0__rs__Backtrace.verifyFromScript(backtraceInfo, this.minterScriptHash, __scrypt_ts_spentScriptHashes[__scrypt_ts_shPreimage.inputIndex * 32 : (__scrypt_ts_shPreimage.inputIndex + 1) * 32], __scrypt_ts_prevTxHashPreimage.inputList);
40
40
  this.checkGuard(guardState, __scrypt_ts_shPreimage.spentScriptHash, __scrypt_ts_shPreimage.inputIndex, guardInputIndex, __scrypt_ts_spentScriptHashes, __scrypt_ts_spentDataHashes);
41
41
  if(len(__scrypt_ts_nextState.ownerAddr) == 32) {
42
42
  require(unlockArgs.contractInputIndex >= 0 && unlockArgs.contractInputIndex < __scrypt_ts_inputCount);
43
- require(__scrypt_ts_nextState.ownerAddr == _opcat_labs_scrypt_ts_opcat_3_2_0__rs__ContextUtils.getSpentScriptHash(__scrypt_ts_spentScriptHashes, unlockArgs.contractInputIndex));
43
+ require(__scrypt_ts_nextState.ownerAddr == _opcat_labs_scrypt_ts_opcat_3_3_0__rs__ContextUtils.getSpentScriptHash(__scrypt_ts_spentScriptHashes, unlockArgs.contractInputIndex));
44
44
  } else {
45
- _opcat_labs_cat_sdk_3_2_0__rs__OwnerUtils.checkUserOwner(unlockArgs.userPubKey, __scrypt_ts_nextState.ownerAddr);
45
+ _opcat_labs_cat_sdk_3_3_0__rs__OwnerUtils.checkUserOwner(unlockArgs.userPubKey, __scrypt_ts_nextState.ownerAddr);
46
46
  require(checkSig(unlockArgs.userSig, unlockArgs.userPubKey));
47
47
  }
48
48
  require(true);
49
49
  }
50
- function checkGuard(_opcat_labs_cat_sdk_3_2_0__rs__CAT721GuardConstState guardState, bytes t_cat721ScriptHash, int t_cat721InputIndex, int guardInputIndex, bytes t_spentScriptsCtx, bytes t_spentDataHashesCtx) : bool {
51
- bytes guardScriptHash = _opcat_labs_scrypt_ts_opcat_3_2_0__rs__ContextUtils.getSpentScriptHash(t_spentScriptsCtx, guardInputIndex);
50
+ function checkGuard(_opcat_labs_cat_sdk_3_3_0__rs__CAT721GuardConstState guardState, bytes t_cat721ScriptHash, int t_cat721InputIndex, int guardInputIndex, bytes t_spentScriptsCtx, bytes t_spentDataHashesCtx) : bool {
51
+ bytes guardScriptHash = _opcat_labs_scrypt_ts_opcat_3_3_0__rs__ContextUtils.getSpentScriptHash(t_spentScriptsCtx, guardInputIndex);
52
52
  require(guardScriptHash == this.guardVariantScriptHashes[0] || guardScriptHash == this.guardVariantScriptHashes[1] || guardScriptHash == this.guardVariantScriptHashes[2] || guardScriptHash == this.guardVariantScriptHashes[3]);
53
- require(_opcat_labs_scrypt_ts_opcat_3_2_0__rs__ContextUtils.getSpentDataHash(t_spentDataHashesCtx, guardInputIndex) == _opcat_labs_cat_sdk_3_2_0__rs__CAT721GuardStateLib.stateHash(guardState));
53
+ require(_opcat_labs_scrypt_ts_opcat_3_3_0__rs__ContextUtils.getSpentDataHash(t_spentDataHashesCtx, guardInputIndex) == _opcat_labs_cat_sdk_3_3_0__rs__CAT721GuardStateLib.stateHash(guardState));
54
54
  int cat721ScriptIndex = unpack(guardState.nftScriptIndexes[t_cat721InputIndex : t_cat721InputIndex + 1]);
55
55
  require(guardState.nftScriptHashes[(cat721ScriptIndex)] == t_cat721ScriptHash);
56
56
  return true;
57
57
  }
58
- static function serializeState(_opcat_labs_cat_sdk_3_2_0__rs__CAT721State __scrypt_ts_curState): bytes {
58
+ static function serializeState(_opcat_labs_cat_sdk_3_3_0__rs__CAT721State __scrypt_ts_curState): bytes {
59
59
  return num2bin(len(__scrypt_ts_curState.ownerAddr), 2) + __scrypt_ts_curState.ownerAddr + num2bin(len(pack(__scrypt_ts_curState.localId)), 2) + pack(__scrypt_ts_curState.localId) + hash160(hash160(__scrypt_ts_curState.ownerAddr) + hash160(pack(__scrypt_ts_curState.localId)));
60
60
  }
61
- static function stateHash(_opcat_labs_cat_sdk_3_2_0__rs__CAT721State __scrypt_ts_curState): bytes {
61
+ static function stateHash(_opcat_labs_cat_sdk_3_3_0__rs__CAT721State __scrypt_ts_curState): bytes {
62
62
  return sha256(num2bin(len(__scrypt_ts_curState.ownerAddr), 2) + __scrypt_ts_curState.ownerAddr + num2bin(len(pack(__scrypt_ts_curState.localId)), 2) + pack(__scrypt_ts_curState.localId) + hash160(hash160(__scrypt_ts_curState.ownerAddr) + hash160(pack(__scrypt_ts_curState.localId))));
63
63
  }
64
64
  }
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "version": 10,
3
3
  "compilerVersion": "1.22.0+commit.47800da",
4
- "contract": "_opcat_labs_cat_sdk_3_2_0__rs__CAT721GuardStateLib",
4
+ "contract": "_opcat_labs_cat_sdk_3_3_0__rs__CAT721GuardStateLib",
5
5
  "md5": "d41d8cd98f00b204e9800998ecf8427e",
6
6
  "structs": [
7
7
  {
8
- "name": "_opcat_labs_cat_sdk_3_2_0__rs__CAT721GuardConstState",
8
+ "name": "_opcat_labs_cat_sdk_3_3_0__rs__CAT721GuardConstState",
9
9
  "params": [
10
10
  {
11
11
  "name": "deployerAddr",
@@ -27,7 +27,7 @@
27
27
  "genericTypes": []
28
28
  },
29
29
  {
30
- "name": "_opcat_labs_cat_sdk_3_2_0__rs__CAT721State",
30
+ "name": "_opcat_labs_cat_sdk_3_3_0__rs__CAT721State",
31
31
  "params": [
32
32
  {
33
33
  "name": "ownerAddr",
@@ -41,7 +41,7 @@
41
41
  "genericTypes": []
42
42
  },
43
43
  {
44
- "name": "_opcat_labs_cat_sdk_3_2_0__rs__CAT721ClosedMinterState",
44
+ "name": "_opcat_labs_cat_sdk_3_3_0__rs__CAT721ClosedMinterState",
45
45
  "params": [
46
46
  {
47
47
  "name": "nftScriptHash",
@@ -59,7 +59,7 @@
59
59
  "genericTypes": []
60
60
  },
61
61
  {
62
- "name": "_opcat_labs_cat_sdk_3_2_0__rs__CAT721MerkleLeaf",
62
+ "name": "_opcat_labs_cat_sdk_3_3_0__rs__CAT721MerkleLeaf",
63
63
  "params": [
64
64
  {
65
65
  "name": "contentDataHash",
@@ -77,7 +77,7 @@
77
77
  "genericTypes": []
78
78
  },
79
79
  {
80
- "name": "_opcat_labs_cat_sdk_3_2_0__rs__CAT721OpenMinterState",
80
+ "name": "_opcat_labs_cat_sdk_3_3_0__rs__CAT721OpenMinterState",
81
81
  "params": [
82
82
  {
83
83
  "name": "nftScriptHash",
@@ -95,7 +95,7 @@
95
95
  "genericTypes": []
96
96
  },
97
97
  {
98
- "name": "_opcat_labs_scrypt_ts_opcat_3_2_0__rs__TxOut",
98
+ "name": "_opcat_labs_scrypt_ts_opcat_3_3_0__rs__TxOut",
99
99
  "params": [
100
100
  {
101
101
  "name": "scriptHash",
@@ -113,7 +113,7 @@
113
113
  "genericTypes": []
114
114
  },
115
115
  {
116
- "name": "_opcat_labs_scrypt_ts_opcat_3_2_0__rs__TxIn",
116
+ "name": "_opcat_labs_scrypt_ts_opcat_3_3_0__rs__TxIn",
117
117
  "params": [
118
118
  {
119
119
  "name": "prevTxHash",
@@ -135,7 +135,7 @@
135
135
  "genericTypes": []
136
136
  },
137
137
  {
138
- "name": "_opcat_labs_scrypt_ts_opcat_3_2_0__rs__TxHashPreimage",
138
+ "name": "_opcat_labs_scrypt_ts_opcat_3_3_0__rs__TxHashPreimage",
139
139
  "params": [
140
140
  {
141
141
  "name": "version",
@@ -157,11 +157,11 @@
157
157
  "genericTypes": []
158
158
  },
159
159
  {
160
- "name": "_opcat_labs_scrypt_ts_opcat_3_2_0__rs__BacktraceInfo",
160
+ "name": "_opcat_labs_scrypt_ts_opcat_3_3_0__rs__BacktraceInfo",
161
161
  "params": [
162
162
  {
163
163
  "name": "prevTxInput",
164
- "type": "_opcat_labs_scrypt_ts_opcat_3_2_0__rs__TxIn"
164
+ "type": "_opcat_labs_scrypt_ts_opcat_3_3_0__rs__TxIn"
165
165
  },
166
166
  {
167
167
  "name": "prevTxInputIndex",
@@ -169,13 +169,13 @@
169
169
  },
170
170
  {
171
171
  "name": "prevPrevTxPreimage",
172
- "type": "_opcat_labs_scrypt_ts_opcat_3_2_0__rs__TxHashPreimage"
172
+ "type": "_opcat_labs_scrypt_ts_opcat_3_3_0__rs__TxHashPreimage"
173
173
  }
174
174
  ],
175
175
  "genericTypes": []
176
176
  },
177
177
  {
178
- "name": "_opcat_labs_scrypt_ts_opcat_3_2_0__rs__SHPreimage",
178
+ "name": "_opcat_labs_scrypt_ts_opcat_3_3_0__rs__SHPreimage",
179
179
  "params": [
180
180
  {
181
181
  "name": "nVersion",
@@ -237,7 +237,7 @@
237
237
  "genericTypes": []
238
238
  },
239
239
  {
240
- "name": "_opcat_labs_scrypt_ts_opcat_3_2_0__rs__Outpoint",
240
+ "name": "_opcat_labs_scrypt_ts_opcat_3_3_0__rs__Outpoint",
241
241
  "params": [
242
242
  {
243
243
  "name": "txHash",
@@ -251,7 +251,25 @@
251
251
  "genericTypes": []
252
252
  },
253
253
  {
254
- "name": "_opcat_labs_scrypt_ts_opcat_3_2_0__rs__ReadVarintResult",
254
+ "name": "_opcat_labs_scrypt_ts_opcat_3_3_0__rs__ChangeInfo",
255
+ "params": [
256
+ {
257
+ "name": "pubkeyhash",
258
+ "type": "Ripemd160"
259
+ },
260
+ {
261
+ "name": "satoshis",
262
+ "type": "int"
263
+ },
264
+ {
265
+ "name": "dataHash",
266
+ "type": "Sha256"
267
+ }
268
+ ],
269
+ "genericTypes": []
270
+ },
271
+ {
272
+ "name": "_opcat_labs_scrypt_ts_opcat_3_3_0__rs__ReadVarintResult",
255
273
  "params": [
256
274
  {
257
275
  "name": "data",
@@ -267,26 +285,26 @@
267
285
  ],
268
286
  "library": [
269
287
  {
270
- "name": "_opcat_labs_cat_sdk_3_2_0__rs__CAT721GuardStateLib",
288
+ "name": "_opcat_labs_cat_sdk_3_3_0__rs__CAT721GuardStateLib",
271
289
  "params": [],
272
290
  "properties": [],
273
291
  "genericTypes": [],
274
- "stateType": "_opcat_labs_cat_sdk_3_2_0__rs__CAT721GuardConstState"
292
+ "stateType": "_opcat_labs_cat_sdk_3_3_0__rs__CAT721GuardConstState"
275
293
  },
276
294
  {
277
- "name": "_opcat_labs_scrypt_ts_opcat_3_2_0__rs__TxUtils",
295
+ "name": "_opcat_labs_scrypt_ts_opcat_3_3_0__rs__TxUtils",
278
296
  "params": [],
279
297
  "properties": [],
280
298
  "genericTypes": []
281
299
  },
282
300
  {
283
- "name": "_opcat_labs_scrypt_ts_opcat_3_2_0__rs__ContextUtils",
301
+ "name": "_opcat_labs_scrypt_ts_opcat_3_3_0__rs__ContextUtils",
284
302
  "params": [],
285
303
  "properties": [],
286
304
  "genericTypes": []
287
305
  },
288
306
  {
289
- "name": "_opcat_labs_scrypt_ts_opcat_3_2_0__rs__StdUtils",
307
+ "name": "_opcat_labs_scrypt_ts_opcat_3_3_0__rs__StdUtils",
290
308
  "params": [],
291
309
  "properties": [],
292
310
  "genericTypes": []
@@ -300,7 +318,7 @@
300
318
  }
301
319
  ],
302
320
  "stateProps": [],
303
- "stateType": "_opcat_labs_cat_sdk_3_2_0__rs__CAT721GuardConstState",
321
+ "stateType": "_opcat_labs_cat_sdk_3_3_0__rs__CAT721GuardConstState",
304
322
  "buildType": "release",
305
323
  "file": "../cat721GuardStateLib.scrypt",
306
324
  "hex": ""
@@ -5,9 +5,9 @@ import "../scrypt-ts-opcat/assets/smart-contract/builtin-libs/contextUtils.scryp
5
5
 
6
6
 
7
7
 
8
- library _opcat_labs_cat_sdk_3_2_0__rs__CAT721GuardStateLib {
9
- static function formalCheckState(_opcat_labs_cat_sdk_3_2_0__rs__CAT721GuardConstState _state, static const int txInputCountMax) : bool {
10
- _opcat_labs_cat_sdk_3_2_0__rs__CAT721GuardStateLib.checkNftScriptsUniq(_state.nftScriptHashes);
8
+ library _opcat_labs_cat_sdk_3_3_0__rs__CAT721GuardStateLib {
9
+ static function formalCheckState(_opcat_labs_cat_sdk_3_3_0__rs__CAT721GuardConstState _state, static const int txInputCountMax) : bool {
10
+ _opcat_labs_cat_sdk_3_3_0__rs__CAT721GuardStateLib.checkNftScriptsUniq(_state.nftScriptHashes);
11
11
  loop (4) : i {
12
12
  int scriptLen = len(_state.nftScriptHashes[i]);
13
13
  require(scriptLen == 32);
@@ -28,10 +28,10 @@ library _opcat_labs_cat_sdk_3_2_0__rs__CAT721GuardStateLib {
28
28
  require(nftScripts[2] != nftScripts[3]);
29
29
  return true;
30
30
  }
31
- static function serializeState(_opcat_labs_cat_sdk_3_2_0__rs__CAT721GuardConstState __scrypt_ts_curState): bytes {
31
+ static function serializeState(_opcat_labs_cat_sdk_3_3_0__rs__CAT721GuardConstState __scrypt_ts_curState): bytes {
32
32
  return num2bin(len(__scrypt_ts_curState.deployerAddr), 2) + __scrypt_ts_curState.deployerAddr + num2bin(len(__scrypt_ts_curState.nftScriptHashes[0]), 2) + __scrypt_ts_curState.nftScriptHashes[0] + num2bin(len(__scrypt_ts_curState.nftScriptHashes[1]), 2) + __scrypt_ts_curState.nftScriptHashes[1] + num2bin(len(__scrypt_ts_curState.nftScriptHashes[2]), 2) + __scrypt_ts_curState.nftScriptHashes[2] + num2bin(len(__scrypt_ts_curState.nftScriptHashes[3]), 2) + __scrypt_ts_curState.nftScriptHashes[3] + num2bin(len(__scrypt_ts_curState.nftBurnMasks), 2) + __scrypt_ts_curState.nftBurnMasks + num2bin(len(__scrypt_ts_curState.nftScriptIndexes), 2) + __scrypt_ts_curState.nftScriptIndexes + hash160(hash160(__scrypt_ts_curState.deployerAddr) + hash160(__scrypt_ts_curState.nftScriptHashes[0]) + hash160(__scrypt_ts_curState.nftScriptHashes[1]) + hash160(__scrypt_ts_curState.nftScriptHashes[2]) + hash160(__scrypt_ts_curState.nftScriptHashes[3]) + hash160(__scrypt_ts_curState.nftBurnMasks) + hash160(__scrypt_ts_curState.nftScriptIndexes));
33
33
  }
34
- static function stateHash(_opcat_labs_cat_sdk_3_2_0__rs__CAT721GuardConstState __scrypt_ts_curState): bytes {
34
+ static function stateHash(_opcat_labs_cat_sdk_3_3_0__rs__CAT721GuardConstState __scrypt_ts_curState): bytes {
35
35
  return sha256(num2bin(len(__scrypt_ts_curState.deployerAddr), 2) + __scrypt_ts_curState.deployerAddr + num2bin(len(__scrypt_ts_curState.nftScriptHashes[0]), 2) + __scrypt_ts_curState.nftScriptHashes[0] + num2bin(len(__scrypt_ts_curState.nftScriptHashes[1]), 2) + __scrypt_ts_curState.nftScriptHashes[1] + num2bin(len(__scrypt_ts_curState.nftScriptHashes[2]), 2) + __scrypt_ts_curState.nftScriptHashes[2] + num2bin(len(__scrypt_ts_curState.nftScriptHashes[3]), 2) + __scrypt_ts_curState.nftScriptHashes[3] + num2bin(len(__scrypt_ts_curState.nftBurnMasks), 2) + __scrypt_ts_curState.nftBurnMasks + num2bin(len(__scrypt_ts_curState.nftScriptIndexes), 2) + __scrypt_ts_curState.nftScriptIndexes + hash160(hash160(__scrypt_ts_curState.deployerAddr) + hash160(__scrypt_ts_curState.nftScriptHashes[0]) + hash160(__scrypt_ts_curState.nftScriptHashes[1]) + hash160(__scrypt_ts_curState.nftScriptHashes[2]) + hash160(__scrypt_ts_curState.nftScriptHashes[3]) + hash160(__scrypt_ts_curState.nftBurnMasks) + hash160(__scrypt_ts_curState.nftScriptIndexes)));
36
36
  }
37
37
  }