@opcat-labs/cat-sdk 4.0.0 → 4.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 (131) hide show
  1. package/artifacts/cat20/cat20.json +35 -35
  2. package/artifacts/cat20/cat20.scrypt +19 -19
  3. package/artifacts/cat20/cat20Admin.json +34 -34
  4. package/artifacts/cat20/cat20Admin.scrypt +24 -24
  5. package/artifacts/cat20/cat20GuardStateLib.json +22 -22
  6. package/artifacts/cat20/cat20GuardStateLib.scrypt +5 -5
  7. package/artifacts/cat20/cat20GuardVariants.json +2 -2
  8. package/artifacts/cat20/cat20GuardVariants.scrypt +1 -1
  9. package/artifacts/cat20/cat20Guard_12_12_2.json +29 -29
  10. package/artifacts/cat20/cat20Guard_12_12_2.scrypt +20 -20
  11. package/artifacts/cat20/cat20Guard_12_12_4.json +29 -29
  12. package/artifacts/cat20/cat20Guard_12_12_4.scrypt +20 -20
  13. package/artifacts/cat20/cat20Guard_6_6_2.json +29 -29
  14. package/artifacts/cat20/cat20Guard_6_6_2.scrypt +20 -20
  15. package/artifacts/cat20/cat20Guard_6_6_4.json +29 -29
  16. package/artifacts/cat20/cat20Guard_6_6_4.scrypt +20 -20
  17. package/artifacts/cat20/cat20StateLib.json +23 -23
  18. package/artifacts/cat20/cat20StateLib.scrypt +5 -5
  19. package/artifacts/cat20/minters/cat20ClosedMinter.json +32 -32
  20. package/artifacts/cat20/minters/cat20ClosedMinter.scrypt +19 -19
  21. package/artifacts/cat20/minters/cat20OpenMinter.json +32 -32
  22. package/artifacts/cat20/minters/cat20OpenMinter.scrypt +16 -16
  23. package/artifacts/cat20/types.json +5 -5
  24. package/artifacts/cat20/types.scrypt +5 -5
  25. package/artifacts/cat721/cat721.json +35 -35
  26. package/artifacts/cat721/cat721.scrypt +19 -19
  27. package/artifacts/cat721/cat721GuardStateLib.json +22 -22
  28. package/artifacts/cat721/cat721GuardStateLib.scrypt +5 -5
  29. package/artifacts/cat721/cat721GuardVariants.json +2 -2
  30. package/artifacts/cat721/cat721GuardVariants.scrypt +1 -1
  31. package/artifacts/cat721/cat721Guard_12_12_2.json +29 -29
  32. package/artifacts/cat721/cat721Guard_12_12_2.scrypt +20 -20
  33. package/artifacts/cat721/cat721Guard_12_12_4.json +29 -29
  34. package/artifacts/cat721/cat721Guard_12_12_4.scrypt +20 -20
  35. package/artifacts/cat721/cat721Guard_6_6_2.json +29 -29
  36. package/artifacts/cat721/cat721Guard_6_6_2.scrypt +20 -20
  37. package/artifacts/cat721/cat721Guard_6_6_4.json +29 -29
  38. package/artifacts/cat721/cat721Guard_6_6_4.scrypt +20 -20
  39. package/artifacts/cat721/cat721StateLib.json +23 -23
  40. package/artifacts/cat721/cat721StateLib.scrypt +5 -5
  41. package/artifacts/cat721/minters/cat721ClosedMinter.json +32 -32
  42. package/artifacts/cat721/minters/cat721ClosedMinter.scrypt +15 -15
  43. package/artifacts/cat721/minters/cat721OpenMintInfo.json +5 -5
  44. package/artifacts/cat721/minters/cat721OpenMintInfo.scrypt +4 -4
  45. package/artifacts/cat721/minters/cat721OpenMinter.json +37 -37
  46. package/artifacts/cat721/minters/cat721OpenMinter.scrypt +21 -21
  47. package/artifacts/cat721/minters/cat721OpenMinterMerkleTree.json +20 -20
  48. package/artifacts/cat721/minters/cat721OpenMinterMerkleTree.scrypt +6 -6
  49. package/artifacts/cat721/types.json +5 -5
  50. package/artifacts/cat721/types.scrypt +5 -5
  51. package/artifacts/constants.json +2 -2
  52. package/artifacts/constants.scrypt +1 -1
  53. package/artifacts/scrypt-ts-opcat/assets/smart-contract/builtin-libs/backtrace.scrypt +13 -13
  54. package/artifacts/scrypt-ts-opcat/assets/smart-contract/builtin-libs/contextUtils.scrypt +18 -18
  55. package/artifacts/scrypt-ts-opcat/assets/smart-contract/builtin-libs/stdUtils.scrypt +18 -18
  56. package/artifacts/scrypt-ts-opcat/assets/smart-contract/builtin-libs/txHashPreimageUtils.scrypt +7 -7
  57. package/artifacts/scrypt-ts-opcat/assets/smart-contract/builtin-libs/txUtils.scrypt +12 -12
  58. package/artifacts/scrypt-ts-opcat/assets/smart-contract/types/structs.scrypt +9 -9
  59. package/artifacts/types.json +2 -2
  60. package/artifacts/types.scrypt +2 -2
  61. package/artifacts/utils/ownerUtils.json +15 -15
  62. package/artifacts/utils/ownerUtils.scrypt +3 -3
  63. package/dist/artifacts/cat20/cat20.json +35 -35
  64. package/dist/artifacts/cat20/cat20.scrypt +19 -19
  65. package/dist/artifacts/cat20/cat20Admin.json +34 -34
  66. package/dist/artifacts/cat20/cat20Admin.scrypt +24 -24
  67. package/dist/artifacts/cat20/cat20GuardStateLib.json +22 -22
  68. package/dist/artifacts/cat20/cat20GuardStateLib.scrypt +5 -5
  69. package/dist/artifacts/cat20/cat20GuardVariants.json +2 -2
  70. package/dist/artifacts/cat20/cat20GuardVariants.scrypt +1 -1
  71. package/dist/artifacts/cat20/cat20Guard_12_12_2.json +29 -29
  72. package/dist/artifacts/cat20/cat20Guard_12_12_2.scrypt +20 -20
  73. package/dist/artifacts/cat20/cat20Guard_12_12_4.json +29 -29
  74. package/dist/artifacts/cat20/cat20Guard_12_12_4.scrypt +20 -20
  75. package/dist/artifacts/cat20/cat20Guard_6_6_2.json +29 -29
  76. package/dist/artifacts/cat20/cat20Guard_6_6_2.scrypt +20 -20
  77. package/dist/artifacts/cat20/cat20Guard_6_6_4.json +29 -29
  78. package/dist/artifacts/cat20/cat20Guard_6_6_4.scrypt +20 -20
  79. package/dist/artifacts/cat20/cat20StateLib.json +23 -23
  80. package/dist/artifacts/cat20/cat20StateLib.scrypt +5 -5
  81. package/dist/artifacts/cat20/minters/cat20ClosedMinter.json +32 -32
  82. package/dist/artifacts/cat20/minters/cat20ClosedMinter.scrypt +19 -19
  83. package/dist/artifacts/cat20/minters/cat20OpenMinter.json +32 -32
  84. package/dist/artifacts/cat20/minters/cat20OpenMinter.scrypt +16 -16
  85. package/dist/artifacts/cat20/types.json +5 -5
  86. package/dist/artifacts/cat20/types.scrypt +5 -5
  87. package/dist/artifacts/cat721/cat721.json +35 -35
  88. package/dist/artifacts/cat721/cat721.scrypt +19 -19
  89. package/dist/artifacts/cat721/cat721GuardStateLib.json +22 -22
  90. package/dist/artifacts/cat721/cat721GuardStateLib.scrypt +5 -5
  91. package/dist/artifacts/cat721/cat721GuardVariants.json +2 -2
  92. package/dist/artifacts/cat721/cat721GuardVariants.scrypt +1 -1
  93. package/dist/artifacts/cat721/cat721Guard_12_12_2.json +29 -29
  94. package/dist/artifacts/cat721/cat721Guard_12_12_2.scrypt +20 -20
  95. package/dist/artifacts/cat721/cat721Guard_12_12_4.json +29 -29
  96. package/dist/artifacts/cat721/cat721Guard_12_12_4.scrypt +20 -20
  97. package/dist/artifacts/cat721/cat721Guard_6_6_2.json +29 -29
  98. package/dist/artifacts/cat721/cat721Guard_6_6_2.scrypt +20 -20
  99. package/dist/artifacts/cat721/cat721Guard_6_6_4.json +29 -29
  100. package/dist/artifacts/cat721/cat721Guard_6_6_4.scrypt +20 -20
  101. package/dist/artifacts/cat721/cat721StateLib.json +23 -23
  102. package/dist/artifacts/cat721/cat721StateLib.scrypt +5 -5
  103. package/dist/artifacts/cat721/minters/cat721ClosedMinter.json +32 -32
  104. package/dist/artifacts/cat721/minters/cat721ClosedMinter.scrypt +15 -15
  105. package/dist/artifacts/cat721/minters/cat721OpenMintInfo.json +5 -5
  106. package/dist/artifacts/cat721/minters/cat721OpenMintInfo.scrypt +4 -4
  107. package/dist/artifacts/cat721/minters/cat721OpenMinter.json +37 -37
  108. package/dist/artifacts/cat721/minters/cat721OpenMinter.scrypt +21 -21
  109. package/dist/artifacts/cat721/minters/cat721OpenMinterMerkleTree.json +20 -20
  110. package/dist/artifacts/cat721/minters/cat721OpenMinterMerkleTree.scrypt +6 -6
  111. package/dist/artifacts/cat721/types.json +5 -5
  112. package/dist/artifacts/cat721/types.scrypt +5 -5
  113. package/dist/artifacts/constants.json +2 -2
  114. package/dist/artifacts/constants.scrypt +1 -1
  115. package/dist/artifacts/scrypt-ts-opcat/assets/smart-contract/builtin-libs/backtrace.scrypt +13 -13
  116. package/dist/artifacts/scrypt-ts-opcat/assets/smart-contract/builtin-libs/contextUtils.scrypt +18 -18
  117. package/dist/artifacts/scrypt-ts-opcat/assets/smart-contract/builtin-libs/stdUtils.scrypt +18 -18
  118. package/dist/artifacts/scrypt-ts-opcat/assets/smart-contract/builtin-libs/txHashPreimageUtils.scrypt +7 -7
  119. package/dist/artifacts/scrypt-ts-opcat/assets/smart-contract/builtin-libs/txUtils.scrypt +12 -12
  120. package/dist/artifacts/scrypt-ts-opcat/assets/smart-contract/types/structs.scrypt +9 -9
  121. package/dist/artifacts/types.json +2 -2
  122. package/dist/artifacts/types.scrypt +2 -2
  123. package/dist/artifacts/utils/ownerUtils.json +15 -15
  124. package/dist/artifacts/utils/ownerUtils.scrypt +3 -3
  125. package/dist/cjs/lib/metadata.js +96 -2
  126. package/dist/cjs/lib/metadata.js.map +1 -1
  127. package/dist/esm/lib/metadata.js +92 -1
  128. package/dist/esm/lib/metadata.js.map +1 -1
  129. package/dist/types/lib/metadata.d.ts +38 -1
  130. package/dist/types/lib/metadata.d.ts.map +1 -1
  131. package/package.json +4 -4
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "version": 10,
3
3
  "compilerVersion": "1.22.0+commit.47800da",
4
- "contract": "_opcat_labs_cat_sdk_4_0_0__rs__CAT721",
4
+ "contract": "_opcat_labs_cat_sdk_4_1_0__rs__CAT721",
5
5
  "md5": "39b8e0e013d805f3446b6e3d5f394455",
6
6
  "structs": [
7
7
  {
8
- "name": "_opcat_labs_cat_sdk_4_0_0__rs__CAT721GuardConstState",
8
+ "name": "_opcat_labs_cat_sdk_4_1_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_4_0_0__rs__CAT721State",
30
+ "name": "_opcat_labs_cat_sdk_4_1_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_4_0_0__rs__CAT721ClosedMinterState",
44
+ "name": "_opcat_labs_cat_sdk_4_1_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_4_0_0__rs__CAT721MerkleLeaf",
62
+ "name": "_opcat_labs_cat_sdk_4_1_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_4_0_0__rs__CAT721OpenMinterState",
80
+ "name": "_opcat_labs_cat_sdk_4_1_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_4_0_0__rs__TxOut",
98
+ "name": "_opcat_labs_scrypt_ts_opcat_4_1_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_4_0_0__rs__TxIn",
116
+ "name": "_opcat_labs_scrypt_ts_opcat_4_1_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_4_0_0__rs__TxHashPreimage",
138
+ "name": "_opcat_labs_scrypt_ts_opcat_4_1_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_4_0_0__rs__BacktraceInfo",
160
+ "name": "_opcat_labs_scrypt_ts_opcat_4_1_0__rs__BacktraceInfo",
161
161
  "params": [
162
162
  {
163
163
  "name": "prevTxInput",
164
- "type": "_opcat_labs_scrypt_ts_opcat_4_0_0__rs__TxIn"
164
+ "type": "_opcat_labs_scrypt_ts_opcat_4_1_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_4_0_0__rs__TxHashPreimage"
172
+ "type": "_opcat_labs_scrypt_ts_opcat_4_1_0__rs__TxHashPreimage"
173
173
  }
174
174
  ],
175
175
  "genericTypes": []
176
176
  },
177
177
  {
178
- "name": "_opcat_labs_scrypt_ts_opcat_4_0_0__rs__SHPreimage",
178
+ "name": "_opcat_labs_scrypt_ts_opcat_4_1_0__rs__SHPreimage",
179
179
  "params": [
180
180
  {
181
181
  "name": "nVersion",
@@ -241,7 +241,7 @@
241
241
  "genericTypes": []
242
242
  },
243
243
  {
244
- "name": "_opcat_labs_scrypt_ts_opcat_4_0_0__rs__Outpoint",
244
+ "name": "_opcat_labs_scrypt_ts_opcat_4_1_0__rs__Outpoint",
245
245
  "params": [
246
246
  {
247
247
  "name": "txHash",
@@ -255,7 +255,7 @@
255
255
  "genericTypes": []
256
256
  },
257
257
  {
258
- "name": "_opcat_labs_scrypt_ts_opcat_4_0_0__rs__ChangeInfo",
258
+ "name": "_opcat_labs_scrypt_ts_opcat_4_1_0__rs__ChangeInfo",
259
259
  "params": [
260
260
  {
261
261
  "name": "pubkeyhash",
@@ -273,7 +273,7 @@
273
273
  "genericTypes": []
274
274
  },
275
275
  {
276
- "name": "_opcat_labs_scrypt_ts_opcat_4_0_0__rs__ChainTxVerifyResponse",
276
+ "name": "_opcat_labs_scrypt_ts_opcat_4_1_0__rs__ChainTxVerifyResponse",
277
277
  "params": [
278
278
  {
279
279
  "name": "prevPrevScript",
@@ -287,7 +287,7 @@
287
287
  "genericTypes": []
288
288
  },
289
289
  {
290
- "name": "_opcat_labs_cat_sdk_4_0_0__rs__CAT20ContractUnlockArgs",
290
+ "name": "_opcat_labs_cat_sdk_4_1_0__rs__CAT20ContractUnlockArgs",
291
291
  "params": [
292
292
  {
293
293
  "name": "spendType",
@@ -309,7 +309,7 @@
309
309
  "genericTypes": []
310
310
  },
311
311
  {
312
- "name": "_opcat_labs_cat_sdk_4_0_0__rs__CAT721ContractUnlockArgs",
312
+ "name": "_opcat_labs_cat_sdk_4_1_0__rs__CAT721ContractUnlockArgs",
313
313
  "params": [
314
314
  {
315
315
  "name": "userPubKey",
@@ -327,7 +327,7 @@
327
327
  "genericTypes": []
328
328
  },
329
329
  {
330
- "name": "_opcat_labs_scrypt_ts_opcat_4_0_0__rs__ReadVarintResult",
330
+ "name": "_opcat_labs_scrypt_ts_opcat_4_1_0__rs__ReadVarintResult",
331
331
  "params": [
332
332
  {
333
333
  "name": "data",
@@ -343,50 +343,50 @@
343
343
  ],
344
344
  "library": [
345
345
  {
346
- "name": "_opcat_labs_cat_sdk_4_0_0__rs__CAT721GuardVariants",
346
+ "name": "_opcat_labs_cat_sdk_4_1_0__rs__CAT721GuardVariants",
347
347
  "params": [],
348
348
  "properties": [],
349
349
  "genericTypes": []
350
350
  },
351
351
  {
352
- "name": "_opcat_labs_cat_sdk_4_0_0__rs__OwnerUtils",
352
+ "name": "_opcat_labs_cat_sdk_4_1_0__rs__OwnerUtils",
353
353
  "params": [],
354
354
  "properties": [],
355
355
  "genericTypes": []
356
356
  },
357
357
  {
358
- "name": "_opcat_labs_scrypt_ts_opcat_4_0_0__rs__TxUtils",
358
+ "name": "_opcat_labs_scrypt_ts_opcat_4_1_0__rs__TxUtils",
359
359
  "params": [],
360
360
  "properties": [],
361
361
  "genericTypes": []
362
362
  },
363
363
  {
364
- "name": "_opcat_labs_scrypt_ts_opcat_4_0_0__rs__TxHashPreimageUtils",
364
+ "name": "_opcat_labs_scrypt_ts_opcat_4_1_0__rs__TxHashPreimageUtils",
365
365
  "params": [],
366
366
  "properties": [],
367
367
  "genericTypes": []
368
368
  },
369
369
  {
370
- "name": "_opcat_labs_scrypt_ts_opcat_4_0_0__rs__Backtrace",
370
+ "name": "_opcat_labs_scrypt_ts_opcat_4_1_0__rs__Backtrace",
371
371
  "params": [],
372
372
  "properties": [],
373
373
  "genericTypes": []
374
374
  },
375
375
  {
376
- "name": "_opcat_labs_scrypt_ts_opcat_4_0_0__rs__ContextUtils",
376
+ "name": "_opcat_labs_scrypt_ts_opcat_4_1_0__rs__ContextUtils",
377
377
  "params": [],
378
378
  "properties": [],
379
379
  "genericTypes": []
380
380
  },
381
381
  {
382
- "name": "_opcat_labs_cat_sdk_4_0_0__rs__CAT721GuardStateLib",
382
+ "name": "_opcat_labs_cat_sdk_4_1_0__rs__CAT721GuardStateLib",
383
383
  "params": [],
384
384
  "properties": [],
385
385
  "genericTypes": [],
386
- "stateType": "_opcat_labs_cat_sdk_4_0_0__rs__CAT721GuardConstState"
386
+ "stateType": "_opcat_labs_cat_sdk_4_1_0__rs__CAT721GuardConstState"
387
387
  },
388
388
  {
389
- "name": "_opcat_labs_scrypt_ts_opcat_4_0_0__rs__StdUtils",
389
+ "name": "_opcat_labs_scrypt_ts_opcat_4_1_0__rs__StdUtils",
390
390
  "params": [],
391
391
  "properties": [],
392
392
  "genericTypes": []
@@ -401,11 +401,11 @@
401
401
  "params": [
402
402
  {
403
403
  "name": "unlockArgs",
404
- "type": "_opcat_labs_cat_sdk_4_0_0__rs__CAT721ContractUnlockArgs"
404
+ "type": "_opcat_labs_cat_sdk_4_1_0__rs__CAT721ContractUnlockArgs"
405
405
  },
406
406
  {
407
407
  "name": "guardState",
408
- "type": "_opcat_labs_cat_sdk_4_0_0__rs__CAT721GuardConstState"
408
+ "type": "_opcat_labs_cat_sdk_4_1_0__rs__CAT721GuardConstState"
409
409
  },
410
410
  {
411
411
  "name": "guardInputIndex",
@@ -413,11 +413,11 @@
413
413
  },
414
414
  {
415
415
  "name": "backtraceInfo",
416
- "type": "_opcat_labs_scrypt_ts_opcat_4_0_0__rs__BacktraceInfo"
416
+ "type": "_opcat_labs_scrypt_ts_opcat_4_1_0__rs__BacktraceInfo"
417
417
  },
418
418
  {
419
419
  "name": "__scrypt_ts_shPreimage",
420
- "type": "_opcat_labs_scrypt_ts_opcat_4_0_0__rs__SHPreimage"
420
+ "type": "_opcat_labs_scrypt_ts_opcat_4_1_0__rs__SHPreimage"
421
421
  },
422
422
  {
423
423
  "name": "__scrypt_ts_preimageSig",
@@ -425,7 +425,7 @@
425
425
  },
426
426
  {
427
427
  "name": "__scrypt_ts_curState",
428
- "type": "_opcat_labs_cat_sdk_4_0_0__rs__CAT721State"
428
+ "type": "_opcat_labs_cat_sdk_4_1_0__rs__CAT721State"
429
429
  },
430
430
  {
431
431
  "name": "__scrypt_ts_spentAmounts",
@@ -441,7 +441,7 @@
441
441
  },
442
442
  {
443
443
  "name": "__scrypt_ts_prevTxHashPreimage",
444
- "type": "_opcat_labs_scrypt_ts_opcat_4_0_0__rs__TxHashPreimage"
444
+ "type": "_opcat_labs_scrypt_ts_opcat_4_1_0__rs__TxHashPreimage"
445
445
  }
446
446
  ]
447
447
  },
@@ -456,7 +456,7 @@
456
456
  }
457
457
  ],
458
458
  "stateProps": [],
459
- "stateType": "_opcat_labs_cat_sdk_4_0_0__rs__CAT721State",
459
+ "stateType": "_opcat_labs_cat_sdk_4_1_0__rs__CAT721State",
460
460
  "buildType": "release",
461
461
  "file": "../cat721.scrypt",
462
462
  "hex": "20fd61204f8a8cbd5ff25658341210e9aea833b7d0030d388388f96b762b8d0ed120f81b76c91efbb89bcc37e0af79529751ed68d40f17cef4e2c19333ff8bc3983e20261bedc50d954809116258da3fa7d0ea64bf0cf96dff4feab54a927d2a23e6c52078f5f6b7111692c5851462f121a0faa68ef28405c259d5ebed4d0b718a235a2301fd01fe01ff2102ba79df5f8ae7604a9830f03c7933028186aede0675a16f025dc4f8be8eec0382577957795779577900<minterScriptHash>77011779519d01167901177982778c7f770118795280517f75007f7787630117795280517f770100876700686301167901177982778c7f75007f770126790126790126790126790126790126790126790126790126790126790126790126790126790126790126795e798277549d5d79827701209d5c7900a2695b79827701249d5a79827701209d5979827701209d587900a26957798277549d5679827701209d5579827701209d5479827701209d5379827701209d5279827701209d7800a26976519c6476529c6751686476539c67516864760281009c67516864760282009c67516864760283009c675168695e795e797e5d79546e8b806e7c7f75007f6b6d6d6c7e5c797e5b797e5a797e5979767600a2637609ffffffffffffffff00a16700686976586e8b806e7c7f75007f6b6d6d6d6c7e58797e57797e56797e55797e54797e53797e5279546e8b806e7c7f75007f6b6d6d6c7e7854807e6b6d6d6d6d6d6d6d6c77a85779ba670068630116795679ac67006869011379011e7978aa7888785878827d77527997009d6e7c966b6d6d6c77011279011e796f75aa527988765379012078827d77527997009d6e7c967777779d6d75011379011d796f75aa527988765379012078827d77527997009d6e7c967777779d6d75011679011679012379011979011979788277528052797e78827752807e787e5279a95279a97ea97ea8777788011379011379011379011379012979547954795479547953798277549d5279014878827d77527997009d6e7c967777775279014878827d77527997009d6e7c96777777557952790000527902fd009f637551675279030000019f63011a797b757c52776752790500000000019f630119797b757c5477670118797b757c587768686878537952796e8b806e7c7f75007f6b6d6d6c7e7777777e55797e780000527902fd009f637551675279030000019f63011a797b757c52776752790500000000019f630119797b757c5477670118797b757c587768686878537952796e8b806e7c7f75007f6b6d6d6c7e7777777e54797e53797eaa6b6d6d6d6c6e7c01207f75007f77886d6d6d0131790131790131790131790131790131790131790131790131795c79012e79011d795b795b795b795b795b795b795b795b795b7959797656798b0148957f7556790148957f775a795a795a795a795379827701209d76827701209d707600a2637605ffffffff00a16700686976546e8b806e7c7f75007f6b6d6d6c777e787e52797600a2637605ffffffff00a16700686976546e8b806e7c7f75007f6b6d6d6c777e6b6d6d6c88597976567956795679567953798277549d5279014878827d77527997009d6e7c967777775279014878827d77527997009d6e7c96777777557952790000527902fd009f637551675279030000019f63012d797b757c52776752790500000000019f63012c797b757c547767012b797b757c587768686878537952796e8b806e7c7f75007f6b6d6d6c7e7777777e55797e780000527902fd009f637551675279030000019f63012d797b757c52776752790500000000019f63012c797b757c547767012b797b757c587768686878537952796e8b806e7c7f75007f6b6d6d6c7e7777777e54797e53797eaa6b6d6d6d6c8853795a7901489558930120937f755a7901489558937f77785b797600a2637605ffffffff00a16700686976546e8b806e7c7f75007f6b6d6d6c777e787c726d726d726d726d726d726d785579876478547987675168696d6d6d6d6d6d6d01327900a26301327953799f67006869013979013979013979013979013979013979013979012b79012e79013b79011e790120797853796e8b0120957f75780120957f7777777601157901157901157901157953766b796c756b6d6d6c87647601157901157901157901157952766b796c756b6d6d6c87675168647601157901157901157901157951766b796c756b6d6d6c87675168647601157901157901157901157900766b796c756b6d6d6c87675168697854796e8b0120957f75780120957f7777775d795d795d795d795d795d795d7956798277528057797e567956795679567953766b796c756b6d6d6c827752807e567956795679567953766b796c756b6d6d6c7e567956795679567952766b796c756b6d6d6c827752807e567956795679567952766b796c756b6d6d6c7e567956795679567951766b796c756b6d6d6c827752807e567956795679567951766b796c756b6d6d6c7e567956795679567900766b796c756b6d6d6c827752807e567956795679567900766b796c756b6d6d6c7e5279827752807e52797e78827752807e787e5779a9577957795779577953766b796c756b6d6d6ca97e577957795779577952766b796c756b6d6d6ca97e577957795779577951766b796c756b6d6d6ca97e577957795779577900766b796c756b6d6d6ca97e5379a97e5279a97ea97ea86b6d6d6d6c7788567955798b7f7555797f77815c795c795c795c795455797600a26976549f69948c766b796c756b6d6d6c5779886d6d6d6d6d6d6d78827701209c63013a7900a263013a7953799f67006869013a790127799e69013a790133799e6978011579013c796e8b0120957f75780120957f7777778867013c795279787676827701219d750376a91478a97e0288ac7e7778886d013b79013c7982778c7f77515280517f75007f778763515280517f7701008767006863013b79013d79ac67006869686d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d7551"
@@ -12,54 +12,54 @@ import "../scrypt-ts-opcat/assets/smart-contract/builtin-libs/backtrace.scrypt";
12
12
 
13
13
 
14
14
 
15
- contract _opcat_labs_cat_sdk_4_0_0__rs__CAT721 {
16
- static const Sha256[4] guardVariantScriptHashes = [_opcat_labs_cat_sdk_4_0_0__rs__CAT721GuardVariants.CANONICAL_GUARD_6_6_2, _opcat_labs_cat_sdk_4_0_0__rs__CAT721GuardVariants.CANONICAL_GUARD_6_6_4, _opcat_labs_cat_sdk_4_0_0__rs__CAT721GuardVariants.CANONICAL_GUARD_12_12_2, _opcat_labs_cat_sdk_4_0_0__rs__CAT721GuardVariants.CANONICAL_GUARD_12_12_4];
15
+ contract _opcat_labs_cat_sdk_4_1_0__rs__CAT721 {
16
+ static const Sha256[4] guardVariantScriptHashes = [_opcat_labs_cat_sdk_4_1_0__rs__CAT721GuardVariants.CANONICAL_GUARD_6_6_2, _opcat_labs_cat_sdk_4_1_0__rs__CAT721GuardVariants.CANONICAL_GUARD_6_6_4, _opcat_labs_cat_sdk_4_1_0__rs__CAT721GuardVariants.CANONICAL_GUARD_12_12_2, _opcat_labs_cat_sdk_4_1_0__rs__CAT721GuardVariants.CANONICAL_GUARD_12_12_4];
17
17
  bytes minterScriptHash;
18
18
  constructor(bytes minterScriptHash) {
19
19
  this.minterScriptHash = minterScriptHash;
20
20
  }
21
- public function unlock(_opcat_labs_cat_sdk_4_0_0__rs__CAT721ContractUnlockArgs unlockArgs, _opcat_labs_cat_sdk_4_0_0__rs__CAT721GuardConstState guardState, int guardInputIndex, _opcat_labs_scrypt_ts_opcat_4_0_0__rs__BacktraceInfo backtraceInfo, _opcat_labs_scrypt_ts_opcat_4_0_0__rs__SHPreimage __scrypt_ts_shPreimage, Sig __scrypt_ts_preimageSig, _opcat_labs_cat_sdk_4_0_0__rs__CAT721State __scrypt_ts_curState, bytes __scrypt_ts_spentAmounts, bytes __scrypt_ts_spentDataHashes, bytes __scrypt_ts_spentScriptHashes, _opcat_labs_scrypt_ts_opcat_4_0_0__rs__TxHashPreimage __scrypt_ts_prevTxHashPreimage) {
21
+ public function unlock(_opcat_labs_cat_sdk_4_1_0__rs__CAT721ContractUnlockArgs unlockArgs, _opcat_labs_cat_sdk_4_1_0__rs__CAT721GuardConstState guardState, int guardInputIndex, _opcat_labs_scrypt_ts_opcat_4_1_0__rs__BacktraceInfo backtraceInfo, _opcat_labs_scrypt_ts_opcat_4_1_0__rs__SHPreimage __scrypt_ts_shPreimage, Sig __scrypt_ts_preimageSig, _opcat_labs_cat_sdk_4_1_0__rs__CAT721State __scrypt_ts_curState, bytes __scrypt_ts_spentAmounts, bytes __scrypt_ts_spentDataHashes, bytes __scrypt_ts_spentScriptHashes, _opcat_labs_scrypt_ts_opcat_4_1_0__rs__TxHashPreimage __scrypt_ts_prevTxHashPreimage) {
22
22
  require(__scrypt_ts_shPreimage.sigHashType == 1);
23
- require(__scrypt_ts_preimageSig[len(__scrypt_ts_preimageSig) - 1 : ] == num2bin(__scrypt_ts_shPreimage.sigHashType, 2)[0 : 1] && num2bin(__scrypt_ts_shPreimage.sigHashType, 2)[1 : ] == b'00' && checkDataSig(Sig(__scrypt_ts_preimageSig[0 : len(__scrypt_ts_preimageSig) - 1]), sha256(_opcat_labs_scrypt_ts_opcat_4_0_0__rs__ContextUtils.serializeSHPreimage(__scrypt_ts_shPreimage)), _opcat_labs_scrypt_ts_opcat_4_0_0__rs__ContextUtils.pubKey) && checkSig(__scrypt_ts_preimageSig, _opcat_labs_scrypt_ts_opcat_4_0_0__rs__ContextUtils.pubKey));
23
+ require(__scrypt_ts_preimageSig[len(__scrypt_ts_preimageSig) - 1 : ] == num2bin(__scrypt_ts_shPreimage.sigHashType, 2)[0 : 1] && num2bin(__scrypt_ts_shPreimage.sigHashType, 2)[1 : ] == b'00' && checkDataSig(Sig(__scrypt_ts_preimageSig[0 : len(__scrypt_ts_preimageSig) - 1]), sha256(_opcat_labs_scrypt_ts_opcat_4_1_0__rs__ContextUtils.serializeSHPreimage(__scrypt_ts_shPreimage)), _opcat_labs_scrypt_ts_opcat_4_1_0__rs__ContextUtils.pubKey) && checkSig(__scrypt_ts_preimageSig, _opcat_labs_scrypt_ts_opcat_4_1_0__rs__ContextUtils.pubKey));
24
24
 
25
- int __scrypt_ts_inputCount = _opcat_labs_scrypt_ts_opcat_4_0_0__rs__ContextUtils.checkSpentAmounts(__scrypt_ts_spentAmounts, __scrypt_ts_shPreimage.hashSpentAmounts);
25
+ int __scrypt_ts_inputCount = _opcat_labs_scrypt_ts_opcat_4_1_0__rs__ContextUtils.checkSpentAmounts(__scrypt_ts_spentAmounts, __scrypt_ts_shPreimage.hashSpentAmounts);
26
26
 
27
- _opcat_labs_scrypt_ts_opcat_4_0_0__rs__ContextUtils.checkSpentScripts(__scrypt_ts_spentScriptHashes, __scrypt_ts_shPreimage.hashSpentScriptHashes, __scrypt_ts_inputCount);
27
+ _opcat_labs_scrypt_ts_opcat_4_1_0__rs__ContextUtils.checkSpentScripts(__scrypt_ts_spentScriptHashes, __scrypt_ts_shPreimage.hashSpentScriptHashes, __scrypt_ts_inputCount);
28
28
 
29
- _opcat_labs_scrypt_ts_opcat_4_0_0__rs__ContextUtils.checkSpentDataHashes(__scrypt_ts_spentDataHashes, __scrypt_ts_shPreimage.hashSpentDataHashes, __scrypt_ts_inputCount);
29
+ _opcat_labs_scrypt_ts_opcat_4_1_0__rs__ContextUtils.checkSpentDataHashes(__scrypt_ts_spentDataHashes, __scrypt_ts_shPreimage.hashSpentDataHashes, __scrypt_ts_inputCount);
30
30
 
31
- _opcat_labs_cat_sdk_4_0_0__rs__CAT721State __scrypt_ts_nextState = __scrypt_ts_curState;
31
+ _opcat_labs_cat_sdk_4_1_0__rs__CAT721State __scrypt_ts_nextState = __scrypt_ts_curState;
32
32
 
33
- require(__scrypt_ts_shPreimage.spentDataHash == _opcat_labs_cat_sdk_4_0_0__rs__CAT721.stateHash(__scrypt_ts_curState));
33
+ require(__scrypt_ts_shPreimage.spentDataHash == _opcat_labs_cat_sdk_4_1_0__rs__CAT721.stateHash(__scrypt_ts_curState));
34
34
 
35
- _opcat_labs_scrypt_ts_opcat_4_0_0__rs__Backtrace.checkPrevTxHashPreimage(__scrypt_ts_prevTxHashPreimage, __scrypt_ts_shPreimage.outpoint);
35
+ _opcat_labs_scrypt_ts_opcat_4_1_0__rs__Backtrace.checkPrevTxHashPreimage(__scrypt_ts_prevTxHashPreimage, __scrypt_ts_shPreimage.outpoint);
36
36
 
37
- _opcat_labs_scrypt_ts_opcat_4_0_0__rs__Backtrace.verifyFromScript(backtraceInfo, this.minterScriptHash, __scrypt_ts_shPreimage.spentScriptHash, __scrypt_ts_prevTxHashPreimage.inputList);
37
+ _opcat_labs_scrypt_ts_opcat_4_1_0__rs__Backtrace.verifyFromScript(backtraceInfo, this.minterScriptHash, __scrypt_ts_shPreimage.spentScriptHash, __scrypt_ts_prevTxHashPreimage.inputList);
38
38
  require(guardInputIndex >= 0 && guardInputIndex < __scrypt_ts_inputCount);
39
39
  this.checkGuard(guardState, __scrypt_ts_shPreimage.spentScriptHash, __scrypt_ts_shPreimage.inputIndex, guardInputIndex, __scrypt_ts_spentScriptHashes, __scrypt_ts_spentDataHashes);
40
40
  if(len(__scrypt_ts_nextState.ownerAddr) == 32) {
41
41
  require(unlockArgs.contractInputIndex >= 0 && unlockArgs.contractInputIndex < __scrypt_ts_inputCount);
42
42
  require(unlockArgs.contractInputIndex != __scrypt_ts_shPreimage.inputIndex);
43
43
  require(unlockArgs.contractInputIndex != guardInputIndex);
44
- require(__scrypt_ts_nextState.ownerAddr == _opcat_labs_scrypt_ts_opcat_4_0_0__rs__ContextUtils.getSpentScriptHash(__scrypt_ts_spentScriptHashes, unlockArgs.contractInputIndex));
44
+ require(__scrypt_ts_nextState.ownerAddr == _opcat_labs_scrypt_ts_opcat_4_1_0__rs__ContextUtils.getSpentScriptHash(__scrypt_ts_spentScriptHashes, unlockArgs.contractInputIndex));
45
45
  } else {
46
- _opcat_labs_cat_sdk_4_0_0__rs__OwnerUtils.checkUserOwner(unlockArgs.userPubKey, __scrypt_ts_nextState.ownerAddr);
46
+ _opcat_labs_cat_sdk_4_1_0__rs__OwnerUtils.checkUserOwner(unlockArgs.userPubKey, __scrypt_ts_nextState.ownerAddr);
47
47
  require((unlockArgs.userSig[len(unlockArgs.userSig) - 1 : ] == num2bin(1, 2)[0 : 1] && num2bin(1, 2)[1 : ] == b'00' && checkSig(unlockArgs.userSig, unlockArgs.userPubKey)));
48
48
  }
49
49
  require(true);
50
50
  }
51
- function checkGuard(_opcat_labs_cat_sdk_4_0_0__rs__CAT721GuardConstState guardState, bytes t_cat721ScriptHash, int t_cat721InputIndex, int guardInputIndex, bytes t_spentScriptsCtx, bytes t_spentDataHashesCtx) : bool {
52
- bytes guardScriptHash = _opcat_labs_scrypt_ts_opcat_4_0_0__rs__ContextUtils.getSpentScriptHash(t_spentScriptsCtx, guardInputIndex);
53
- require(guardScriptHash == _opcat_labs_cat_sdk_4_0_0__rs__CAT721.guardVariantScriptHashes[0] || guardScriptHash == _opcat_labs_cat_sdk_4_0_0__rs__CAT721.guardVariantScriptHashes[1] || guardScriptHash == _opcat_labs_cat_sdk_4_0_0__rs__CAT721.guardVariantScriptHashes[2] || guardScriptHash == _opcat_labs_cat_sdk_4_0_0__rs__CAT721.guardVariantScriptHashes[3]);
54
- require(_opcat_labs_scrypt_ts_opcat_4_0_0__rs__ContextUtils.getSpentDataHash(t_spentDataHashesCtx, guardInputIndex) == _opcat_labs_cat_sdk_4_0_0__rs__CAT721GuardStateLib.stateHash(guardState));
51
+ function checkGuard(_opcat_labs_cat_sdk_4_1_0__rs__CAT721GuardConstState guardState, bytes t_cat721ScriptHash, int t_cat721InputIndex, int guardInputIndex, bytes t_spentScriptsCtx, bytes t_spentDataHashesCtx) : bool {
52
+ bytes guardScriptHash = _opcat_labs_scrypt_ts_opcat_4_1_0__rs__ContextUtils.getSpentScriptHash(t_spentScriptsCtx, guardInputIndex);
53
+ require(guardScriptHash == _opcat_labs_cat_sdk_4_1_0__rs__CAT721.guardVariantScriptHashes[0] || guardScriptHash == _opcat_labs_cat_sdk_4_1_0__rs__CAT721.guardVariantScriptHashes[1] || guardScriptHash == _opcat_labs_cat_sdk_4_1_0__rs__CAT721.guardVariantScriptHashes[2] || guardScriptHash == _opcat_labs_cat_sdk_4_1_0__rs__CAT721.guardVariantScriptHashes[3]);
54
+ require(_opcat_labs_scrypt_ts_opcat_4_1_0__rs__ContextUtils.getSpentDataHash(t_spentDataHashesCtx, guardInputIndex) == _opcat_labs_cat_sdk_4_1_0__rs__CAT721GuardStateLib.stateHash(guardState));
55
55
  int cat721ScriptIndex = unpack(guardState.nftScriptIndexes[t_cat721InputIndex : t_cat721InputIndex + 1]);
56
56
  require(guardState.nftScriptHashes[(cat721ScriptIndex)] == t_cat721ScriptHash);
57
57
  return true;
58
58
  }
59
- static function serializeState(_opcat_labs_cat_sdk_4_0_0__rs__CAT721State __scrypt_ts_curState): bytes {
59
+ static function serializeState(_opcat_labs_cat_sdk_4_1_0__rs__CAT721State __scrypt_ts_curState): bytes {
60
60
  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)));
61
61
  }
62
- static function stateHash(_opcat_labs_cat_sdk_4_0_0__rs__CAT721State __scrypt_ts_curState): bytes {
62
+ static function stateHash(_opcat_labs_cat_sdk_4_1_0__rs__CAT721State __scrypt_ts_curState): bytes {
63
63
  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))));
64
64
  }
65
65
  }
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "version": 10,
3
3
  "compilerVersion": "1.22.0+commit.47800da",
4
- "contract": "_opcat_labs_cat_sdk_4_0_0__rs__CAT721GuardStateLib",
4
+ "contract": "_opcat_labs_cat_sdk_4_1_0__rs__CAT721GuardStateLib",
5
5
  "md5": "d41d8cd98f00b204e9800998ecf8427e",
6
6
  "structs": [
7
7
  {
8
- "name": "_opcat_labs_cat_sdk_4_0_0__rs__CAT721GuardConstState",
8
+ "name": "_opcat_labs_cat_sdk_4_1_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_4_0_0__rs__CAT721State",
30
+ "name": "_opcat_labs_cat_sdk_4_1_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_4_0_0__rs__CAT721ClosedMinterState",
44
+ "name": "_opcat_labs_cat_sdk_4_1_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_4_0_0__rs__CAT721MerkleLeaf",
62
+ "name": "_opcat_labs_cat_sdk_4_1_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_4_0_0__rs__CAT721OpenMinterState",
80
+ "name": "_opcat_labs_cat_sdk_4_1_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_4_0_0__rs__TxOut",
98
+ "name": "_opcat_labs_scrypt_ts_opcat_4_1_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_4_0_0__rs__TxIn",
116
+ "name": "_opcat_labs_scrypt_ts_opcat_4_1_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_4_0_0__rs__TxHashPreimage",
138
+ "name": "_opcat_labs_scrypt_ts_opcat_4_1_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_4_0_0__rs__BacktraceInfo",
160
+ "name": "_opcat_labs_scrypt_ts_opcat_4_1_0__rs__BacktraceInfo",
161
161
  "params": [
162
162
  {
163
163
  "name": "prevTxInput",
164
- "type": "_opcat_labs_scrypt_ts_opcat_4_0_0__rs__TxIn"
164
+ "type": "_opcat_labs_scrypt_ts_opcat_4_1_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_4_0_0__rs__TxHashPreimage"
172
+ "type": "_opcat_labs_scrypt_ts_opcat_4_1_0__rs__TxHashPreimage"
173
173
  }
174
174
  ],
175
175
  "genericTypes": []
176
176
  },
177
177
  {
178
- "name": "_opcat_labs_scrypt_ts_opcat_4_0_0__rs__SHPreimage",
178
+ "name": "_opcat_labs_scrypt_ts_opcat_4_1_0__rs__SHPreimage",
179
179
  "params": [
180
180
  {
181
181
  "name": "nVersion",
@@ -241,7 +241,7 @@
241
241
  "genericTypes": []
242
242
  },
243
243
  {
244
- "name": "_opcat_labs_scrypt_ts_opcat_4_0_0__rs__Outpoint",
244
+ "name": "_opcat_labs_scrypt_ts_opcat_4_1_0__rs__Outpoint",
245
245
  "params": [
246
246
  {
247
247
  "name": "txHash",
@@ -255,7 +255,7 @@
255
255
  "genericTypes": []
256
256
  },
257
257
  {
258
- "name": "_opcat_labs_scrypt_ts_opcat_4_0_0__rs__ChangeInfo",
258
+ "name": "_opcat_labs_scrypt_ts_opcat_4_1_0__rs__ChangeInfo",
259
259
  "params": [
260
260
  {
261
261
  "name": "pubkeyhash",
@@ -273,7 +273,7 @@
273
273
  "genericTypes": []
274
274
  },
275
275
  {
276
- "name": "_opcat_labs_scrypt_ts_opcat_4_0_0__rs__ReadVarintResult",
276
+ "name": "_opcat_labs_scrypt_ts_opcat_4_1_0__rs__ReadVarintResult",
277
277
  "params": [
278
278
  {
279
279
  "name": "data",
@@ -289,26 +289,26 @@
289
289
  ],
290
290
  "library": [
291
291
  {
292
- "name": "_opcat_labs_cat_sdk_4_0_0__rs__CAT721GuardStateLib",
292
+ "name": "_opcat_labs_cat_sdk_4_1_0__rs__CAT721GuardStateLib",
293
293
  "params": [],
294
294
  "properties": [],
295
295
  "genericTypes": [],
296
- "stateType": "_opcat_labs_cat_sdk_4_0_0__rs__CAT721GuardConstState"
296
+ "stateType": "_opcat_labs_cat_sdk_4_1_0__rs__CAT721GuardConstState"
297
297
  },
298
298
  {
299
- "name": "_opcat_labs_scrypt_ts_opcat_4_0_0__rs__TxUtils",
299
+ "name": "_opcat_labs_scrypt_ts_opcat_4_1_0__rs__TxUtils",
300
300
  "params": [],
301
301
  "properties": [],
302
302
  "genericTypes": []
303
303
  },
304
304
  {
305
- "name": "_opcat_labs_scrypt_ts_opcat_4_0_0__rs__ContextUtils",
305
+ "name": "_opcat_labs_scrypt_ts_opcat_4_1_0__rs__ContextUtils",
306
306
  "params": [],
307
307
  "properties": [],
308
308
  "genericTypes": []
309
309
  },
310
310
  {
311
- "name": "_opcat_labs_scrypt_ts_opcat_4_0_0__rs__StdUtils",
311
+ "name": "_opcat_labs_scrypt_ts_opcat_4_1_0__rs__StdUtils",
312
312
  "params": [],
313
313
  "properties": [],
314
314
  "genericTypes": []
@@ -322,7 +322,7 @@
322
322
  }
323
323
  ],
324
324
  "stateProps": [],
325
- "stateType": "_opcat_labs_cat_sdk_4_0_0__rs__CAT721GuardConstState",
325
+ "stateType": "_opcat_labs_cat_sdk_4_1_0__rs__CAT721GuardConstState",
326
326
  "buildType": "release",
327
327
  "file": "../cat721GuardStateLib.scrypt",
328
328
  "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_4_0_0__rs__CAT721GuardStateLib {
9
- static function formalCheckState(_opcat_labs_cat_sdk_4_0_0__rs__CAT721GuardConstState _state, static const int txInputCountMax) : bool {
10
- _opcat_labs_cat_sdk_4_0_0__rs__CAT721GuardStateLib.checkNftScriptsUniq(_state.nftScriptHashes);
8
+ library _opcat_labs_cat_sdk_4_1_0__rs__CAT721GuardStateLib {
9
+ static function formalCheckState(_opcat_labs_cat_sdk_4_1_0__rs__CAT721GuardConstState _state, static const int txInputCountMax) : bool {
10
+ _opcat_labs_cat_sdk_4_1_0__rs__CAT721GuardStateLib.checkNftScriptsUniq(_state.nftScriptHashes);
11
11
  loop (4) : i {
12
12
  int scriptLen = len(_state.nftScriptHashes[i]);
13
13
  require(scriptLen == 32);
@@ -29,10 +29,10 @@ library _opcat_labs_cat_sdk_4_0_0__rs__CAT721GuardStateLib {
29
29
  require(nftScripts[2] != nftScripts[3]);
30
30
  return true;
31
31
  }
32
- static function serializeState(_opcat_labs_cat_sdk_4_0_0__rs__CAT721GuardConstState __scrypt_ts_curState): bytes {
32
+ static function serializeState(_opcat_labs_cat_sdk_4_1_0__rs__CAT721GuardConstState __scrypt_ts_curState): bytes {
33
33
  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));
34
34
  }
35
- static function stateHash(_opcat_labs_cat_sdk_4_0_0__rs__CAT721GuardConstState __scrypt_ts_curState): bytes {
35
+ static function stateHash(_opcat_labs_cat_sdk_4_1_0__rs__CAT721GuardConstState __scrypt_ts_curState): bytes {
36
36
  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)));
37
37
  }
38
38
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "version": 10,
3
3
  "compilerVersion": "1.22.0+commit.47800da",
4
- "contract": "_opcat_labs_cat_sdk_4_0_0__rs__CAT721GuardVariants",
4
+ "contract": "_opcat_labs_cat_sdk_4_1_0__rs__CAT721GuardVariants",
5
5
  "md5": "d41d8cd98f00b204e9800998ecf8427e",
6
6
  "structs": [],
7
7
  "library": [
8
8
  {
9
- "name": "_opcat_labs_cat_sdk_4_0_0__rs__CAT721GuardVariants",
9
+ "name": "_opcat_labs_cat_sdk_4_1_0__rs__CAT721GuardVariants",
10
10
  "params": [],
11
11
  "properties": [],
12
12
  "genericTypes": []
@@ -1,7 +1,7 @@
1
1
 
2
2
 
3
3
 
4
- library _opcat_labs_cat_sdk_4_0_0__rs__CAT721GuardVariants {
4
+ library _opcat_labs_cat_sdk_4_1_0__rs__CAT721GuardVariants {
5
5
  static const Sha256 CANONICAL_GUARD_6_6_2 = Sha256(b'fd61204f8a8cbd5ff25658341210e9aea833b7d0030d388388f96b762b8d0ed1');
6
6
  static const Sha256 CANONICAL_GUARD_6_6_4 = Sha256(b'f81b76c91efbb89bcc37e0af79529751ed68d40f17cef4e2c19333ff8bc3983e');
7
7
  static const Sha256 CANONICAL_GUARD_12_12_2 = Sha256(b'261bedc50d954809116258da3fa7d0ea64bf0cf96dff4feab54a927d2a23e6c5');