@opcat-labs/cat-sdk 1.0.3 → 1.0.4

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 (85) hide show
  1. package/README.md +19 -19
  2. package/artifacts/cat20/cat20.json +35 -35
  3. package/artifacts/cat20/cat20.scrypt +17 -17
  4. package/artifacts/cat20/cat20Guard.json +32 -32
  5. package/artifacts/cat20/cat20Guard.scrypt +21 -21
  6. package/artifacts/cat20/cat20GuardStateLib.json +23 -23
  7. package/artifacts/cat20/cat20GuardStateLib.scrypt +5 -5
  8. package/artifacts/cat20/cat20StateLib.json +25 -25
  9. package/artifacts/cat20/cat20StateLib.scrypt +6 -6
  10. package/artifacts/cat20/minters/cat20ClosedMinter.json +35 -35
  11. package/artifacts/cat20/minters/cat20ClosedMinter.scrypt +22 -22
  12. package/artifacts/cat20/minters/cat20ClosedMinterMetadata.json +11 -11
  13. package/artifacts/cat20/minters/cat20ClosedMinterMetadata.scrypt +3 -3
  14. package/artifacts/cat20/minters/cat20OpenMinter.json +38 -38
  15. package/artifacts/cat20/minters/cat20OpenMinter.scrypt +20 -20
  16. package/artifacts/cat20/minters/cat20OpenMinterMetadata.json +11 -11
  17. package/artifacts/cat20/minters/cat20OpenMinterMetadata.scrypt +3 -3
  18. package/artifacts/cat20/types.json +7 -7
  19. package/artifacts/cat20/types.scrypt +6 -6
  20. package/artifacts/cat20Incinerator.json +24 -24
  21. package/artifacts/cat20Incinerator.scrypt +9 -9
  22. package/artifacts/constants.json +3 -3
  23. package/artifacts/constants.scrypt +1 -1
  24. package/artifacts/counter.json +20 -20
  25. package/artifacts/counter.scrypt +12 -12
  26. package/artifacts/p2pkh.json +14 -14
  27. package/artifacts/p2pkh.scrypt +1 -1
  28. package/artifacts/scrypt-ts-opcat/assets/smart-contract/builtin-libs/backtrace.scrypt +12 -12
  29. package/artifacts/scrypt-ts-opcat/assets/smart-contract/builtin-libs/contextUtils.scrypt +16 -16
  30. package/artifacts/scrypt-ts-opcat/assets/smart-contract/builtin-libs/stateUtils.scrypt +1 -1
  31. package/artifacts/scrypt-ts-opcat/assets/smart-contract/builtin-libs/stdUtils.scrypt +12 -12
  32. package/artifacts/scrypt-ts-opcat/assets/smart-contract/builtin-libs/txHashPreimageUtils.scrypt +7 -7
  33. package/artifacts/scrypt-ts-opcat/assets/smart-contract/builtin-libs/txUtils.scrypt +12 -12
  34. package/artifacts/scrypt-ts-opcat/assets/smart-contract/types/structs.scrypt +8 -8
  35. package/artifacts/types.json +2 -2
  36. package/artifacts/types.scrypt +1 -1
  37. package/artifacts/utils/ownerUtils.json +15 -15
  38. package/artifacts/utils/ownerUtils.scrypt +3 -3
  39. package/artifacts/utils/safeMath.json +15 -15
  40. package/artifacts/utils/safeMath.scrypt +1 -1
  41. package/dist/artifacts/cat20/cat20.json +35 -35
  42. package/dist/artifacts/cat20/cat20.scrypt +17 -17
  43. package/dist/artifacts/cat20/cat20Guard.json +32 -32
  44. package/dist/artifacts/cat20/cat20Guard.scrypt +21 -21
  45. package/dist/artifacts/cat20/cat20GuardStateLib.json +23 -23
  46. package/dist/artifacts/cat20/cat20GuardStateLib.scrypt +5 -5
  47. package/dist/artifacts/cat20/cat20StateLib.json +25 -25
  48. package/dist/artifacts/cat20/cat20StateLib.scrypt +6 -6
  49. package/dist/artifacts/cat20/minters/cat20ClosedMinter.json +35 -35
  50. package/dist/artifacts/cat20/minters/cat20ClosedMinter.scrypt +22 -22
  51. package/dist/artifacts/cat20/minters/cat20ClosedMinterMetadata.json +11 -11
  52. package/dist/artifacts/cat20/minters/cat20ClosedMinterMetadata.scrypt +3 -3
  53. package/dist/artifacts/cat20/minters/cat20OpenMinter.json +38 -38
  54. package/dist/artifacts/cat20/minters/cat20OpenMinter.scrypt +20 -20
  55. package/dist/artifacts/cat20/minters/cat20OpenMinterMetadata.json +11 -11
  56. package/dist/artifacts/cat20/minters/cat20OpenMinterMetadata.scrypt +3 -3
  57. package/dist/artifacts/cat20/types.json +7 -7
  58. package/dist/artifacts/cat20/types.scrypt +6 -6
  59. package/dist/artifacts/cat20Incinerator.json +24 -24
  60. package/dist/artifacts/cat20Incinerator.scrypt +9 -9
  61. package/dist/artifacts/constants.json +3 -3
  62. package/dist/artifacts/constants.scrypt +1 -1
  63. package/dist/artifacts/counter.json +20 -20
  64. package/dist/artifacts/counter.scrypt +12 -12
  65. package/dist/artifacts/p2pkh.json +14 -14
  66. package/dist/artifacts/p2pkh.scrypt +1 -1
  67. package/dist/artifacts/scrypt-ts-opcat/assets/smart-contract/builtin-libs/backtrace.scrypt +12 -12
  68. package/dist/artifacts/scrypt-ts-opcat/assets/smart-contract/builtin-libs/contextUtils.scrypt +16 -16
  69. package/dist/artifacts/scrypt-ts-opcat/assets/smart-contract/builtin-libs/stateUtils.scrypt +1 -1
  70. package/dist/artifacts/scrypt-ts-opcat/assets/smart-contract/builtin-libs/stdUtils.scrypt +12 -12
  71. package/dist/artifacts/scrypt-ts-opcat/assets/smart-contract/builtin-libs/txHashPreimageUtils.scrypt +7 -7
  72. package/dist/artifacts/scrypt-ts-opcat/assets/smart-contract/builtin-libs/txUtils.scrypt +12 -12
  73. package/dist/artifacts/scrypt-ts-opcat/assets/smart-contract/types/structs.scrypt +8 -8
  74. package/dist/artifacts/types.json +2 -2
  75. package/dist/artifacts/types.scrypt +1 -1
  76. package/dist/artifacts/utils/ownerUtils.json +15 -15
  77. package/dist/artifacts/utils/ownerUtils.scrypt +3 -3
  78. package/dist/artifacts/utils/safeMath.json +15 -15
  79. package/dist/artifacts/utils/safeMath.scrypt +1 -1
  80. package/dist/cjs/features/cat20/incinerate.js +2 -0
  81. package/dist/cjs/features/cat20/incinerate.js.map +1 -1
  82. package/dist/esm/features/cat20/incinerate.js +3 -1
  83. package/dist/esm/features/cat20/incinerate.js.map +1 -1
  84. package/dist/types/features/cat20/incinerate.d.ts.map +1 -1
  85. package/package.json +76 -76
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "version": 10,
3
3
  "compilerVersion": "1.21.0+commit.2ada378",
4
- "contract": "_opcat_labs_cat_sdk_1_0_3__rs__CAT20Incinerator",
4
+ "contract": "_opcat_labs_cat_sdk_1_0_4__rs__CAT20Incinerator",
5
5
  "md5": "a16a1558649c4b769b353ebea48d94c0",
6
6
  "structs": [
7
7
  {
8
- "name": "_opcat_labs_scrypt_ts_opcat_1_0_4__rs__ReadVarintResult",
8
+ "name": "_opcat_labs_scrypt_ts_opcat_1_0_5__rs__ReadVarintResult",
9
9
  "params": [
10
10
  {
11
11
  "name": "data",
@@ -19,7 +19,7 @@
19
19
  "genericTypes": []
20
20
  },
21
21
  {
22
- "name": "_opcat_labs_cat_sdk_1_0_3__rs__CAT20GuardConstState",
22
+ "name": "_opcat_labs_cat_sdk_1_0_4__rs__CAT20GuardConstState",
23
23
  "params": [
24
24
  {
25
25
  "name": "tokenScriptHashes",
@@ -41,7 +41,7 @@
41
41
  "genericTypes": []
42
42
  },
43
43
  {
44
- "name": "_opcat_labs_cat_sdk_1_0_3__rs__CAT20State",
44
+ "name": "_opcat_labs_cat_sdk_1_0_4__rs__CAT20State",
45
45
  "params": [
46
46
  {
47
47
  "name": "tag",
@@ -59,7 +59,7 @@
59
59
  "genericTypes": []
60
60
  },
61
61
  {
62
- "name": "_opcat_labs_cat_sdk_1_0_3__rs__CAT20ClosedMinterState",
62
+ "name": "_opcat_labs_cat_sdk_1_0_4__rs__CAT20ClosedMinterState",
63
63
  "params": [
64
64
  {
65
65
  "name": "tag",
@@ -73,7 +73,7 @@
73
73
  "genericTypes": []
74
74
  },
75
75
  {
76
- "name": "_opcat_labs_cat_sdk_1_0_3__rs__ClosedMinterCAT20Meta",
76
+ "name": "_opcat_labs_cat_sdk_1_0_4__rs__ClosedMinterCAT20Meta",
77
77
  "params": [
78
78
  {
79
79
  "name": "tag",
@@ -99,7 +99,7 @@
99
99
  "genericTypes": []
100
100
  },
101
101
  {
102
- "name": "_opcat_labs_cat_sdk_1_0_3__rs__OpenMinterCAT20Meta",
102
+ "name": "_opcat_labs_cat_sdk_1_0_4__rs__OpenMinterCAT20Meta",
103
103
  "params": [
104
104
  {
105
105
  "name": "tag",
@@ -141,7 +141,7 @@
141
141
  "genericTypes": []
142
142
  },
143
143
  {
144
- "name": "_opcat_labs_cat_sdk_1_0_3__rs__CAT20OpenMinterState",
144
+ "name": "_opcat_labs_cat_sdk_1_0_4__rs__CAT20OpenMinterState",
145
145
  "params": [
146
146
  {
147
147
  "name": "tag",
@@ -163,7 +163,7 @@
163
163
  "genericTypes": []
164
164
  },
165
165
  {
166
- "name": "_opcat_labs_scrypt_ts_opcat_1_0_4__rs__TxOut",
166
+ "name": "_opcat_labs_scrypt_ts_opcat_1_0_5__rs__TxOut",
167
167
  "params": [
168
168
  {
169
169
  "name": "scriptHash",
@@ -181,7 +181,7 @@
181
181
  "genericTypes": []
182
182
  },
183
183
  {
184
- "name": "_opcat_labs_scrypt_ts_opcat_1_0_4__rs__TxIn",
184
+ "name": "_opcat_labs_scrypt_ts_opcat_1_0_5__rs__TxIn",
185
185
  "params": [
186
186
  {
187
187
  "name": "prevTxHash",
@@ -203,7 +203,7 @@
203
203
  "genericTypes": []
204
204
  },
205
205
  {
206
- "name": "_opcat_labs_scrypt_ts_opcat_1_0_4__rs__TxHashPreimage",
206
+ "name": "_opcat_labs_scrypt_ts_opcat_1_0_5__rs__TxHashPreimage",
207
207
  "params": [
208
208
  {
209
209
  "name": "version",
@@ -225,11 +225,11 @@
225
225
  "genericTypes": []
226
226
  },
227
227
  {
228
- "name": "_opcat_labs_scrypt_ts_opcat_1_0_4__rs__BacktraceInfo",
228
+ "name": "_opcat_labs_scrypt_ts_opcat_1_0_5__rs__BacktraceInfo",
229
229
  "params": [
230
230
  {
231
231
  "name": "prevTxInput",
232
- "type": "_opcat_labs_scrypt_ts_opcat_1_0_4__rs__TxIn"
232
+ "type": "_opcat_labs_scrypt_ts_opcat_1_0_5__rs__TxIn"
233
233
  },
234
234
  {
235
235
  "name": "prevTxInputIndex",
@@ -237,13 +237,13 @@
237
237
  },
238
238
  {
239
239
  "name": "prevPrevTxPreimage",
240
- "type": "_opcat_labs_scrypt_ts_opcat_1_0_4__rs__TxHashPreimage"
240
+ "type": "_opcat_labs_scrypt_ts_opcat_1_0_5__rs__TxHashPreimage"
241
241
  }
242
242
  ],
243
243
  "genericTypes": []
244
244
  },
245
245
  {
246
- "name": "_opcat_labs_scrypt_ts_opcat_1_0_4__rs__SHPreimage",
246
+ "name": "_opcat_labs_scrypt_ts_opcat_1_0_5__rs__SHPreimage",
247
247
  "params": [
248
248
  {
249
249
  "name": "nVersion",
@@ -305,7 +305,7 @@
305
305
  "genericTypes": []
306
306
  },
307
307
  {
308
- "name": "_opcat_labs_scrypt_ts_opcat_1_0_4__rs__Outpoint",
308
+ "name": "_opcat_labs_scrypt_ts_opcat_1_0_5__rs__Outpoint",
309
309
  "params": [
310
310
  {
311
311
  "name": "txHash",
@@ -321,29 +321,29 @@
321
321
  ],
322
322
  "library": [
323
323
  {
324
- "name": "_opcat_labs_scrypt_ts_opcat_1_0_4__rs__TxUtils",
324
+ "name": "_opcat_labs_scrypt_ts_opcat_1_0_5__rs__TxUtils",
325
325
  "params": [],
326
326
  "properties": [],
327
327
  "genericTypes": []
328
328
  },
329
329
  {
330
- "name": "_opcat_labs_scrypt_ts_opcat_1_0_4__rs__StdUtils",
330
+ "name": "_opcat_labs_scrypt_ts_opcat_1_0_5__rs__StdUtils",
331
331
  "params": [],
332
332
  "properties": [],
333
333
  "genericTypes": []
334
334
  },
335
335
  {
336
- "name": "_opcat_labs_scrypt_ts_opcat_1_0_4__rs__ContextUtils",
336
+ "name": "_opcat_labs_scrypt_ts_opcat_1_0_5__rs__ContextUtils",
337
337
  "params": [],
338
338
  "properties": [],
339
339
  "genericTypes": []
340
340
  },
341
341
  {
342
- "name": "_opcat_labs_cat_sdk_1_0_3__rs__CAT20GuardStateLib",
342
+ "name": "_opcat_labs_cat_sdk_1_0_4__rs__CAT20GuardStateLib",
343
343
  "params": [],
344
344
  "properties": [],
345
345
  "genericTypes": [],
346
- "stateType": "_opcat_labs_cat_sdk_1_0_3__rs__CAT20GuardConstState"
346
+ "stateType": "_opcat_labs_cat_sdk_1_0_4__rs__CAT20GuardConstState"
347
347
  }
348
348
  ],
349
349
  "alias": [],
@@ -359,11 +359,11 @@
359
359
  },
360
360
  {
361
361
  "name": "guardState",
362
- "type": "_opcat_labs_cat_sdk_1_0_3__rs__CAT20GuardConstState"
362
+ "type": "_opcat_labs_cat_sdk_1_0_4__rs__CAT20GuardConstState"
363
363
  },
364
364
  {
365
365
  "name": "__scrypt_ts_shPreimage",
366
- "type": "_opcat_labs_scrypt_ts_opcat_1_0_4__rs__SHPreimage"
366
+ "type": "_opcat_labs_scrypt_ts_opcat_1_0_5__rs__SHPreimage"
367
367
  },
368
368
  {
369
369
  "name": "__scrypt_ts_spentAmounts",
@@ -391,6 +391,6 @@
391
391
  ],
392
392
  "stateProps": [],
393
393
  "buildType": "release",
394
- "file": "..\\cat20Incinerator.scrypt",
394
+ "file": "../cat20Incinerator.scrypt",
395
395
  "hex": "512097dfd76851bf465e8f715593b217714858bbe9570ff3bd5e33840a34e20ff0262102ba79df5f8ae7604a9830f03c7933028186aede0675a16f025dc4f8be8eec0382201008ce7480da41702918d1ec8e6849ba32b4d65b1e40dc669c31a1e6306b266c00<cat20GuardScriptHash>770115790115790115790115790115790115790115790115790115790115790115790115790115790115795d798277549d5c79827701209d5b79827701209d5a79827701209d597900a26958798277549d5779827701209d5679827701209d5579827701209d5479827701209d5379827701209d527900a2697800a26976519c6476529c6751686476539c67516864760281009c67516864760282009c67516864760283009c675168695d795d797e5c797e5b797e5a79767600a2637609ffffffffffffffff00a16700686976586e8b806e7c7f75007f6b6d6d6d6c7e59797e58797e57797e56797e55797e54797e5379546e8b806e7c7f75007f6b6d6d6c7e5279546e8b806e7c7f75007f6b6d6d6c7e7854807e6b6d6d6d6d6d6d6d6c55797856795679210ac407f0e4bd44bfc207355a778b046225a7068fc59ee7eda43ad905aadbffc800206c266b30e6a1319c66dc401e5bd6b432ba49688eecd118297041da8074ce0810587956795679aa7676517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e01007e817757795679567956795679537956795479577995939521414136d08c5ed2bf3ba048afe6dcaebafeffffffffffffffffffffffffffffff006e6e9776009f636e936776687777777b757c6e5296a0636e7c947b757c6853798277527982775379012080517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e01205279947f77545379935279930130787e527e54797e58797e527e53797e52797e57797e6b6d6d6d6d6d6d6c765779ac6b6d6d6d6d6d6c77695779607978aa7888785878827d77527997009d6e7c966b6d6d6c77567960796f75aa527988765379012078827d77527997009d6e7c967777779d6d7557795f796f75aa527988765379012078827d77527997009d6e7c967777779d6d755679012e796e8b0120957f75780120957f777777765379885879012f796e8b0120957f75780120957f777777012e79012e79012e79012e79012e79012e79012e79012e79012e79012e79012e79012e79012e79012e79012e79012e79012e79012e79012e79012e79012e79012e7901157901157901157901157953766b796c756b6d6d6c8277528001167901167901167901167953766b796c756b6d6d6c7e01167901167901167901167952766b796c756b6d6d6c827752807e01167901167901167901167952766b796c756b6d6d6c7e01167901167901167901167951766b796c756b6d6d6c827752807e01167901167901167901167951766b796c756b6d6d6c7e01167901167901167901167900766b796c756b6d6d6c827752807e01167901167901167901167900766b796c756b6d6d6c7e01127901127901127901127953766b796c756b6d6d6c827752807e01127901127901127901127953766b796c756b6d6d6c7e01127901127901127901127952766b796c756b6d6d6c827752807e01127901127901127901127952766b796c756b6d6d6c7e01127901127901127901127951766b796c756b6d6d6c827752807e01127901127901127901127951766b796c756b6d6d6c7e01127901127901127901127900766b796c756b6d6d6c827752807e01127901127901127901127900766b796c756b6d6d6c7e5e795e795e795e7953766b796c756b6d6d6c827752807e5e795e795e795e7953766b796c756b6d6d6c7e5e795e795e795e7952766b796c756b6d6d6c827752807e5e795e795e795e7952766b796c756b6d6d6c7e5e795e795e795e7951766b796c756b6d6d6c827752807e5e795e795e795e7951766b796c756b6d6d6c7e5e795e795e795e7900766b796c756b6d6d6c827752807e5e795e795e795e7900766b796c756b6d6d6c7e5a795a795a795a795a795a795a795a795a795a7959766b796c756b6d6d6d6d6d6c827752807e5a795a795a795a795a795a795a795a795a795a7959766b796c756b6d6d6d6d6d6c7e5a795a795a795a795a795a795a795a795a795a7958766b796c756b6d6d6d6d6d6c827752807e5a795a795a795a795a795a795a795a795a795a7958766b796c756b6d6d6d6d6d6c7e5a795a795a795a795a795a795a795a795a795a7957766b796c756b6d6d6d6d6d6c827752807e5a795a795a795a795a795a795a795a795a795a7957766b796c756b6d6d6d6d6d6c7e5a795a795a795a795a795a795a795a795a795a7956766b796c756b6d6d6d6d6d6c827752807e5a795a795a795a795a795a795a795a795a795a7956766b796c756b6d6d6d6d6d6c7e5a795a795a795a795a795a795a795a795a795a7955766b796c756b6d6d6d6d6d6c827752807e5a795a795a795a795a795a795a795a795a795a7955766b796c756b6d6d6d6d6d6c7e5a795a795a795a795a795a795a795a795a795a7954766b796c756b6d6d6d6d6d6c827752807e5a795a795a795a795a795a795a795a795a795a7954766b796c756b6d6d6d6d6d6c7e5a795a795a795a795a795a795a795a795a795a7953766b796c756b6d6d6d6d6d6c827752807e5a795a795a795a795a795a795a795a795a795a7953766b796c756b6d6d6d6d6d6c7e5a795a795a795a795a795a795a795a795a795a7952766b796c756b6d6d6d6d6d6c827752807e5a795a795a795a795a795a795a795a795a795a7952766b796c756b6d6d6d6d6d6c7e5a795a795a795a795a795a795a795a795a795a7951766b796c756b6d6d6d6d6d6c827752807e5a795a795a795a795a795a795a795a795a795a7951766b796c756b6d6d6d6d6d6c7e5a795a795a795a795a795a795a795a795a795a7900766b796c756b6d6d6d6d6d6c827752807e5a795a795a795a795a795a795a795a795a795a7900766b796c756b6d6d6d6d6d6c7e01167901167901167901167953766b796c756b6d6d6ca901177901177901177901177952766b796c756b6d6d6ca97e01177901177901177901177951766b796c756b6d6d6ca97e01177901177901177901177900766b796c756b6d6d6ca97e01137901137901137901137953766b796c756b6d6d6ca97e01137901137901137901137952766b796c756b6d6d6ca97e01137901137901137901137951766b796c756b6d6d6ca97e01137901137901137901137900766b796c756b6d6d6ca97e5f795f795f795f7953766b796c756b6d6d6ca97e5f795f795f795f7952766b796c756b6d6d6ca97e5f795f795f795f7951766b796c756b6d6d6ca97e5f795f795f795f7900766b796c756b6d6d6ca97e5b795b795b795b795b795b795b795b795b795b7959766b796c756b6d6d6d6d6d6ca97e5b795b795b795b795b795b795b795b795b795b7958766b796c756b6d6d6d6d6d6ca97e5b795b795b795b795b795b795b795b795b795b7957766b796c756b6d6d6d6d6d6ca97e5b795b795b795b795b795b795b795b795b795b7956766b796c756b6d6d6d6d6d6ca97e5b795b795b795b795b795b795b795b795b795b7955766b796c756b6d6d6d6d6d6ca97e5b795b795b795b795b795b795b795b795b795b7954766b796c756b6d6d6d6d6d6ca97e5b795b795b795b795b795b795b795b795b795b7953766b796c756b6d6d6d6d6d6ca97e5b795b795b795b795b795b795b795b795b795b7952766b796c756b6d6d6d6d6d6ca97e5b795b795b795b795b795b795b795b795b795b7951766b796c756b6d6d6d6d6d6ca97e5b795b795b795b795b795b795b795b795b795b7900766b796c756b6d6d6d6d6d6ca97ea97ea86b6d6d6d6d6d6d6d6d6d6d6d6c7888012a79012a79012a79012a7953766b796c756b6d6d6c01277901277901277901277953766b796c756b6d6d6c9d012a79012a79012a79012a7952766b796c756b6d6d6c01277901277901277901277952766b796c756b6d6d6c9d012a79012a79012a79012a7951766b796c756b6d6d6c01277901277901277901277951766b796c756b6d6d6c9d012a79012a79012a79012a7900766b796c756b6d6d6c01277901277901277901277900766b796c756b6d6d6c9d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d6d51"
396
396
  }
@@ -7,24 +7,24 @@ import "scrypt-ts-opcat/assets/smart-contract/types/structs.scrypt";
7
7
 
8
8
 
9
9
 
10
- contract _opcat_labs_cat_sdk_1_0_3__rs__CAT20Incinerator {
10
+ contract _opcat_labs_cat_sdk_1_0_4__rs__CAT20Incinerator {
11
11
  bytes cat20GuardScriptHash;
12
12
  constructor(bytes cat20GuardScriptHash) {
13
13
  this.cat20GuardScriptHash = cat20GuardScriptHash;
14
14
  }
15
- public function incinerate(int guardInputIndex, _opcat_labs_cat_sdk_1_0_3__rs__CAT20GuardConstState guardState, _opcat_labs_scrypt_ts_opcat_1_0_4__rs__SHPreimage __scrypt_ts_shPreimage, bytes __scrypt_ts_spentAmounts, bytes __scrypt_ts_spentDataHashes, bytes __scrypt_ts_spentScriptHashes) {
16
- require(Tx.checkPreimageSigHashType(_opcat_labs_scrypt_ts_opcat_1_0_4__rs__ContextUtils.serializeSHPreimage(__scrypt_ts_shPreimage), SigHash.ALL));
15
+ public function incinerate(int guardInputIndex, _opcat_labs_cat_sdk_1_0_4__rs__CAT20GuardConstState guardState, _opcat_labs_scrypt_ts_opcat_1_0_5__rs__SHPreimage __scrypt_ts_shPreimage, bytes __scrypt_ts_spentAmounts, bytes __scrypt_ts_spentDataHashes, bytes __scrypt_ts_spentScriptHashes) {
16
+ require(Tx.checkPreimageSigHashType(_opcat_labs_scrypt_ts_opcat_1_0_5__rs__ContextUtils.serializeSHPreimage(__scrypt_ts_shPreimage), SigHash.ALL));
17
17
 
18
- int __scrypt_ts_inputCount = _opcat_labs_scrypt_ts_opcat_1_0_4__rs__ContextUtils.checkSpentAmounts(__scrypt_ts_spentAmounts, __scrypt_ts_shPreimage.hashSpentAmounts);
18
+ int __scrypt_ts_inputCount = _opcat_labs_scrypt_ts_opcat_1_0_5__rs__ContextUtils.checkSpentAmounts(__scrypt_ts_spentAmounts, __scrypt_ts_shPreimage.hashSpentAmounts);
19
19
 
20
- _opcat_labs_scrypt_ts_opcat_1_0_4__rs__ContextUtils.checkSpentScripts(__scrypt_ts_spentScriptHashes, __scrypt_ts_shPreimage.hashSpentScriptHashes, __scrypt_ts_inputCount);
20
+ _opcat_labs_scrypt_ts_opcat_1_0_5__rs__ContextUtils.checkSpentScripts(__scrypt_ts_spentScriptHashes, __scrypt_ts_shPreimage.hashSpentScriptHashes, __scrypt_ts_inputCount);
21
21
 
22
- _opcat_labs_scrypt_ts_opcat_1_0_4__rs__ContextUtils.checkSpentDataHashes(__scrypt_ts_spentDataHashes, __scrypt_ts_shPreimage.hashSpentDataHashes, __scrypt_ts_inputCount);
22
+ _opcat_labs_scrypt_ts_opcat_1_0_5__rs__ContextUtils.checkSpentDataHashes(__scrypt_ts_spentDataHashes, __scrypt_ts_shPreimage.hashSpentDataHashes, __scrypt_ts_inputCount);
23
23
 
24
- bytes currentGuardScriptHash = _opcat_labs_scrypt_ts_opcat_1_0_4__rs__ContextUtils.getSpentScriptHash(__scrypt_ts_spentScriptHashes, guardInputIndex);
24
+ bytes currentGuardScriptHash = _opcat_labs_scrypt_ts_opcat_1_0_5__rs__ContextUtils.getSpentScriptHash(__scrypt_ts_spentScriptHashes, guardInputIndex);
25
25
  require(currentGuardScriptHash == this.cat20GuardScriptHash);
26
- bytes currentGuardStateHash = _opcat_labs_scrypt_ts_opcat_1_0_4__rs__ContextUtils.getSpentDataHash(__scrypt_ts_spentDataHashes, guardInputIndex);
27
- require(_opcat_labs_cat_sdk_1_0_3__rs__CAT20GuardStateLib.stateHash(guardState) == currentGuardStateHash);
26
+ bytes currentGuardStateHash = _opcat_labs_scrypt_ts_opcat_1_0_5__rs__ContextUtils.getSpentDataHash(__scrypt_ts_spentDataHashes, guardInputIndex);
27
+ require(_opcat_labs_cat_sdk_1_0_4__rs__CAT20GuardStateLib.stateHash(guardState) == currentGuardStateHash);
28
28
  loop (4) : i {
29
29
  require(guardState.tokenAmounts[i] == guardState.tokenBurnAmounts[i]);
30
30
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "version": 10,
3
3
  "compilerVersion": "1.21.0+commit.2ada378",
4
- "contract": "_opcat_labs_cat_sdk_1_0_3__rs__ConstantsLib",
4
+ "contract": "_opcat_labs_cat_sdk_1_0_4__rs__ConstantsLib",
5
5
  "md5": "d41d8cd98f00b204e9800998ecf8427e",
6
6
  "structs": [],
7
7
  "library": [
8
8
  {
9
- "name": "_opcat_labs_cat_sdk_1_0_3__rs__ConstantsLib",
9
+ "name": "_opcat_labs_cat_sdk_1_0_4__rs__ConstantsLib",
10
10
  "params": [],
11
11
  "properties": [],
12
12
  "genericTypes": []
@@ -21,6 +21,6 @@
21
21
  ],
22
22
  "stateProps": [],
23
23
  "buildType": "release",
24
- "file": "..\\constants.scrypt",
24
+ "file": "../constants.scrypt",
25
25
  "hex": ""
26
26
  }
@@ -1,7 +1,7 @@
1
1
 
2
2
 
3
3
 
4
- library _opcat_labs_cat_sdk_1_0_3__rs__ConstantsLib {
4
+ library _opcat_labs_cat_sdk_1_0_4__rs__ConstantsLib {
5
5
  static const bytes ZERO_SHA1256_HASH = Sha256(b'0000000000000000000000000000000000000000000000000000000000000000');
6
6
  static const bytes TOKEN_SCRIPT_HASH_PLACEHOLDER_FF = Sha256(b'00000000000000000000000000000000000000000000000000000000000000ff');
7
7
  static const bytes TOKEN_SCRIPT_HASH_PLACEHOLDER_FE = Sha256(b'00000000000000000000000000000000000000000000000000000000000000fe');
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "version": 10,
3
3
  "compilerVersion": "1.21.0+commit.2ada378",
4
- "contract": "_opcat_labs_cat_sdk_1_0_3__rs__Counter",
4
+ "contract": "_opcat_labs_cat_sdk_1_0_4__rs__Counter",
5
5
  "md5": "4894d08a2129d85b874b9c5010682370",
6
6
  "structs": [
7
7
  {
8
- "name": "_opcat_labs_cat_sdk_1_0_3__rs__CounterState",
8
+ "name": "_opcat_labs_cat_sdk_1_0_4__rs__CounterState",
9
9
  "params": [
10
10
  {
11
11
  "name": "count",
@@ -15,7 +15,7 @@
15
15
  "genericTypes": []
16
16
  },
17
17
  {
18
- "name": "_opcat_labs_scrypt_ts_opcat_1_0_4__rs__ReadVarintResult",
18
+ "name": "_opcat_labs_scrypt_ts_opcat_1_0_5__rs__ReadVarintResult",
19
19
  "params": [
20
20
  {
21
21
  "name": "data",
@@ -29,7 +29,7 @@
29
29
  "genericTypes": []
30
30
  },
31
31
  {
32
- "name": "_opcat_labs_scrypt_ts_opcat_1_0_4__rs__TxOut",
32
+ "name": "_opcat_labs_scrypt_ts_opcat_1_0_5__rs__TxOut",
33
33
  "params": [
34
34
  {
35
35
  "name": "scriptHash",
@@ -47,7 +47,7 @@
47
47
  "genericTypes": []
48
48
  },
49
49
  {
50
- "name": "_opcat_labs_scrypt_ts_opcat_1_0_4__rs__TxIn",
50
+ "name": "_opcat_labs_scrypt_ts_opcat_1_0_5__rs__TxIn",
51
51
  "params": [
52
52
  {
53
53
  "name": "prevTxHash",
@@ -69,7 +69,7 @@
69
69
  "genericTypes": []
70
70
  },
71
71
  {
72
- "name": "_opcat_labs_scrypt_ts_opcat_1_0_4__rs__TxHashPreimage",
72
+ "name": "_opcat_labs_scrypt_ts_opcat_1_0_5__rs__TxHashPreimage",
73
73
  "params": [
74
74
  {
75
75
  "name": "version",
@@ -91,11 +91,11 @@
91
91
  "genericTypes": []
92
92
  },
93
93
  {
94
- "name": "_opcat_labs_scrypt_ts_opcat_1_0_4__rs__BacktraceInfo",
94
+ "name": "_opcat_labs_scrypt_ts_opcat_1_0_5__rs__BacktraceInfo",
95
95
  "params": [
96
96
  {
97
97
  "name": "prevTxInput",
98
- "type": "_opcat_labs_scrypt_ts_opcat_1_0_4__rs__TxIn"
98
+ "type": "_opcat_labs_scrypt_ts_opcat_1_0_5__rs__TxIn"
99
99
  },
100
100
  {
101
101
  "name": "prevTxInputIndex",
@@ -103,13 +103,13 @@
103
103
  },
104
104
  {
105
105
  "name": "prevPrevTxPreimage",
106
- "type": "_opcat_labs_scrypt_ts_opcat_1_0_4__rs__TxHashPreimage"
106
+ "type": "_opcat_labs_scrypt_ts_opcat_1_0_5__rs__TxHashPreimage"
107
107
  }
108
108
  ],
109
109
  "genericTypes": []
110
110
  },
111
111
  {
112
- "name": "_opcat_labs_scrypt_ts_opcat_1_0_4__rs__SHPreimage",
112
+ "name": "_opcat_labs_scrypt_ts_opcat_1_0_5__rs__SHPreimage",
113
113
  "params": [
114
114
  {
115
115
  "name": "nVersion",
@@ -171,7 +171,7 @@
171
171
  "genericTypes": []
172
172
  },
173
173
  {
174
- "name": "_opcat_labs_scrypt_ts_opcat_1_0_4__rs__Outpoint",
174
+ "name": "_opcat_labs_scrypt_ts_opcat_1_0_5__rs__Outpoint",
175
175
  "params": [
176
176
  {
177
177
  "name": "txHash",
@@ -187,25 +187,25 @@
187
187
  ],
188
188
  "library": [
189
189
  {
190
- "name": "_opcat_labs_scrypt_ts_opcat_1_0_4__rs__TxUtils",
190
+ "name": "_opcat_labs_scrypt_ts_opcat_1_0_5__rs__TxUtils",
191
191
  "params": [],
192
192
  "properties": [],
193
193
  "genericTypes": []
194
194
  },
195
195
  {
196
- "name": "_opcat_labs_scrypt_ts_opcat_1_0_4__rs__StdUtils",
196
+ "name": "_opcat_labs_scrypt_ts_opcat_1_0_5__rs__StdUtils",
197
197
  "params": [],
198
198
  "properties": [],
199
199
  "genericTypes": []
200
200
  },
201
201
  {
202
- "name": "_opcat_labs_scrypt_ts_opcat_1_0_4__rs__StateUtils",
202
+ "name": "_opcat_labs_scrypt_ts_opcat_1_0_5__rs__StateUtils",
203
203
  "params": [],
204
204
  "properties": [],
205
205
  "genericTypes": []
206
206
  },
207
207
  {
208
- "name": "_opcat_labs_scrypt_ts_opcat_1_0_4__rs__ContextUtils",
208
+ "name": "_opcat_labs_scrypt_ts_opcat_1_0_5__rs__ContextUtils",
209
209
  "params": [],
210
210
  "properties": [],
211
211
  "genericTypes": []
@@ -220,15 +220,15 @@
220
220
  "params": [
221
221
  {
222
222
  "name": "__scrypt_ts_shPreimage",
223
- "type": "_opcat_labs_scrypt_ts_opcat_1_0_4__rs__SHPreimage"
223
+ "type": "_opcat_labs_scrypt_ts_opcat_1_0_5__rs__SHPreimage"
224
224
  },
225
225
  {
226
226
  "name": "__scrypt_ts_changeInfo",
227
- "type": "_opcat_labs_scrypt_ts_opcat_1_0_4__rs__TxOut"
227
+ "type": "_opcat_labs_scrypt_ts_opcat_1_0_5__rs__TxOut"
228
228
  },
229
229
  {
230
230
  "name": "__scrypt_ts_curState",
231
- "type": "_opcat_labs_cat_sdk_1_0_3__rs__CounterState"
231
+ "type": "_opcat_labs_cat_sdk_1_0_4__rs__CounterState"
232
232
  },
233
233
  {
234
234
  "name": "__scrypt_ts_spentAmounts",
@@ -246,8 +246,8 @@
246
246
  }
247
247
  ],
248
248
  "stateProps": [],
249
- "stateType": "_opcat_labs_cat_sdk_1_0_3__rs__CounterState",
249
+ "stateType": "_opcat_labs_cat_sdk_1_0_4__rs__CounterState",
250
250
  "buildType": "release",
251
- "file": "..\\counter.scrypt",
251
+ "file": "../counter.scrypt",
252
252
  "hex": "512097dfd76851bf465e8f715593b217714858bbe9570ff3bd5e33840a34e20ff0262102ba79df5f8ae7604a9830f03c7933028186aede0675a16f025dc4f8be8eec0382201008ce7480da41702918d1ec8e6849ba32b4d65b1e40dc669c31a1e6306b266c0117790117790117790117790117790117790117790117790117790117790117790117790117790117795d798277549d5c79827701209d5b79827701209d5a79827701209d597900a26958798277549d5779827701209d5679827701209d5579827701209d5479827701209d5379827701209d527900a2697800a26976519c6476529c6751686476539c67516864760281009c67516864760282009c67516864760283009c675168695d795d797e5c797e5b797e5a79767600a2637609ffffffffffffffff00a16700686976586e8b806e7c7f75007f6b6d6d6d6c7e59797e58797e57797e56797e55797e54797e5379546e8b806e7c7f75007f6b6d6d6c7e5279546e8b806e7c7f75007f6b6d6d6c7e7854807e6b6d6d6d6d6d6d6d6c54797855795579210ac407f0e4bd44bfc207355a778b046225a7068fc59ee7eda43ad905aadbffc800206c266b30e6a1319c66dc401e5bd6b432ba49688eecd118297041da8074ce0810577956795679aa7676517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e01007e817757795679567956795679537956795479577995939521414136d08c5ed2bf3ba048afe6dcaebafeffffffffffffffffffffffffffffff006e6e9776009f636e936776687777777b757c6e5296a0636e7c947b757c6853798277527982775379012080517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e01205279947f77545379935279930130787e527e54797e58797e527e53797e52797e57797e6b6d6d6d6d6d6d6c765779ac6b6d6d6d6d6d6c7769557901127978aa7888785878827d77527997009d6e7c966b6d6d6c7755790111796f75aa527988765379012078827d77527997009d6e7c967777779d6d7557795e7959797682775280787e78a9a97ea87758797653798b0120957f7553790120957f775279886d75517877768b777701177901167952797682775280787e78a9a97e77a8527982777882777801209d7601209d537900a2695379767600a2637609ffffffffffffffff00a16700686976586e8b806e7c7f75007f6b6d6d6d6c55797e53797e6b6d6d6c775a7900a0635c795b796e00a8527982777882777801209d7601209d537900a2695379767600a2637609ffffffffffffffff00a16700686976586e8b806e7c7f75007f6b6d6d6d6c55797e53797e6b6d6d6d6c776700687e76aa011179876b6d6d6d6d6d6d6d6d6d6d6d6d6d6c77"
253
253
  }
@@ -7,32 +7,32 @@ import "scrypt-ts-opcat/assets/smart-contract/builtin-libs/stateUtils.scrypt";
7
7
 
8
8
 
9
9
 
10
- struct _opcat_labs_cat_sdk_1_0_3__rs__CounterState {
10
+ struct _opcat_labs_cat_sdk_1_0_4__rs__CounterState {
11
11
  int count;
12
12
  }
13
13
 
14
- contract _opcat_labs_cat_sdk_1_0_3__rs__Counter {
14
+ contract _opcat_labs_cat_sdk_1_0_4__rs__Counter {
15
15
  constructor(){}
16
- public function increase(_opcat_labs_scrypt_ts_opcat_1_0_4__rs__SHPreimage __scrypt_ts_shPreimage, _opcat_labs_scrypt_ts_opcat_1_0_4__rs__TxOut __scrypt_ts_changeInfo, _opcat_labs_cat_sdk_1_0_3__rs__CounterState __scrypt_ts_curState, bytes __scrypt_ts_spentAmounts, bytes __scrypt_ts_spentDataHashes) {
17
- require(Tx.checkPreimageSigHashType(_opcat_labs_scrypt_ts_opcat_1_0_4__rs__ContextUtils.serializeSHPreimage(__scrypt_ts_shPreimage), SigHash.ALL));
16
+ public function increase(_opcat_labs_scrypt_ts_opcat_1_0_5__rs__SHPreimage __scrypt_ts_shPreimage, _opcat_labs_scrypt_ts_opcat_1_0_5__rs__TxOut __scrypt_ts_changeInfo, _opcat_labs_cat_sdk_1_0_4__rs__CounterState __scrypt_ts_curState, bytes __scrypt_ts_spentAmounts, bytes __scrypt_ts_spentDataHashes) {
17
+ require(Tx.checkPreimageSigHashType(_opcat_labs_scrypt_ts_opcat_1_0_5__rs__ContextUtils.serializeSHPreimage(__scrypt_ts_shPreimage), SigHash.ALL));
18
18
 
19
- int __scrypt_ts_inputCount = _opcat_labs_scrypt_ts_opcat_1_0_4__rs__ContextUtils.checkSpentAmounts(__scrypt_ts_spentAmounts, __scrypt_ts_shPreimage.hashSpentAmounts);
19
+ int __scrypt_ts_inputCount = _opcat_labs_scrypt_ts_opcat_1_0_5__rs__ContextUtils.checkSpentAmounts(__scrypt_ts_spentAmounts, __scrypt_ts_shPreimage.hashSpentAmounts);
20
20
 
21
- _opcat_labs_scrypt_ts_opcat_1_0_4__rs__ContextUtils.checkSpentDataHashes(__scrypt_ts_spentDataHashes, __scrypt_ts_shPreimage.hashSpentDataHashes, __scrypt_ts_inputCount);
21
+ _opcat_labs_scrypt_ts_opcat_1_0_5__rs__ContextUtils.checkSpentDataHashes(__scrypt_ts_spentDataHashes, __scrypt_ts_shPreimage.hashSpentDataHashes, __scrypt_ts_inputCount);
22
22
 
23
- _opcat_labs_cat_sdk_1_0_3__rs__CounterState __scrypt_ts_nextState = __scrypt_ts_curState;
23
+ _opcat_labs_cat_sdk_1_0_4__rs__CounterState __scrypt_ts_nextState = __scrypt_ts_curState;
24
24
 
25
- _opcat_labs_scrypt_ts_opcat_1_0_4__rs__StateUtils.checkInputState(__scrypt_ts_shPreimage.inputIndex, _opcat_labs_cat_sdk_1_0_3__rs__Counter.stateHash(__scrypt_ts_curState), __scrypt_ts_spentDataHashes);
25
+ _opcat_labs_scrypt_ts_opcat_1_0_5__rs__StateUtils.checkInputState(__scrypt_ts_shPreimage.inputIndex, _opcat_labs_cat_sdk_1_0_4__rs__Counter.stateHash(__scrypt_ts_curState), __scrypt_ts_spentDataHashes);
26
26
 
27
27
  __scrypt_ts_nextState.count++;
28
- bytes outputs = _opcat_labs_scrypt_ts_opcat_1_0_4__rs__TxUtils.buildDataOutput(__scrypt_ts_shPreimage.spentScriptHash, __scrypt_ts_shPreimage.value, sha256(_opcat_labs_cat_sdk_1_0_3__rs__Counter.serializeState(__scrypt_ts_nextState))) +
29
- (__scrypt_ts_changeInfo.satoshis > 0 ? _opcat_labs_scrypt_ts_opcat_1_0_4__rs__TxUtils.buildOutput(__scrypt_ts_changeInfo.scriptHash, __scrypt_ts_changeInfo.satoshis) : b'');
28
+ bytes outputs = _opcat_labs_scrypt_ts_opcat_1_0_5__rs__TxUtils.buildDataOutput(__scrypt_ts_shPreimage.spentScriptHash, __scrypt_ts_shPreimage.value, sha256(_opcat_labs_cat_sdk_1_0_4__rs__Counter.serializeState(__scrypt_ts_nextState))) +
29
+ (__scrypt_ts_changeInfo.satoshis > 0 ? _opcat_labs_scrypt_ts_opcat_1_0_5__rs__TxUtils.buildOutput(__scrypt_ts_changeInfo.scriptHash, __scrypt_ts_changeInfo.satoshis) : b'');
30
30
  require(hash256(outputs) == __scrypt_ts_shPreimage.hashOutputs);
31
31
  }
32
- static function serializeState(_opcat_labs_cat_sdk_1_0_3__rs__CounterState __scrypt_ts_curState): bytes {
32
+ static function serializeState(_opcat_labs_cat_sdk_1_0_4__rs__CounterState __scrypt_ts_curState): bytes {
33
33
  return num2bin(len(pack(__scrypt_ts_curState.count)), 2) + pack(__scrypt_ts_curState.count) + hash160(hash160(pack(__scrypt_ts_curState.count)));
34
34
  }
35
- static function stateHash(_opcat_labs_cat_sdk_1_0_3__rs__CounterState __scrypt_ts_curState): bytes {
35
+ static function stateHash(_opcat_labs_cat_sdk_1_0_4__rs__CounterState __scrypt_ts_curState): bytes {
36
36
  return sha256(num2bin(len(pack(__scrypt_ts_curState.count)), 2) + pack(__scrypt_ts_curState.count) + hash160(hash160(pack(__scrypt_ts_curState.count))));
37
37
  }
38
38
  }
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "version": 10,
3
3
  "compilerVersion": "1.21.0+commit.2ada378",
4
- "contract": "_opcat_labs_cat_sdk_1_0_3__rs__P2PKH",
4
+ "contract": "_opcat_labs_cat_sdk_1_0_4__rs__P2PKH",
5
5
  "md5": "98f9f52fe2cc6b5a592626f99aedf593",
6
6
  "structs": [
7
7
  {
8
- "name": "_opcat_labs_scrypt_ts_opcat_1_0_4__rs__ReadVarintResult",
8
+ "name": "_opcat_labs_scrypt_ts_opcat_1_0_5__rs__ReadVarintResult",
9
9
  "params": [
10
10
  {
11
11
  "name": "data",
@@ -19,7 +19,7 @@
19
19
  "genericTypes": []
20
20
  },
21
21
  {
22
- "name": "_opcat_labs_scrypt_ts_opcat_1_0_4__rs__TxOut",
22
+ "name": "_opcat_labs_scrypt_ts_opcat_1_0_5__rs__TxOut",
23
23
  "params": [
24
24
  {
25
25
  "name": "scriptHash",
@@ -37,7 +37,7 @@
37
37
  "genericTypes": []
38
38
  },
39
39
  {
40
- "name": "_opcat_labs_scrypt_ts_opcat_1_0_4__rs__TxIn",
40
+ "name": "_opcat_labs_scrypt_ts_opcat_1_0_5__rs__TxIn",
41
41
  "params": [
42
42
  {
43
43
  "name": "prevTxHash",
@@ -59,7 +59,7 @@
59
59
  "genericTypes": []
60
60
  },
61
61
  {
62
- "name": "_opcat_labs_scrypt_ts_opcat_1_0_4__rs__TxHashPreimage",
62
+ "name": "_opcat_labs_scrypt_ts_opcat_1_0_5__rs__TxHashPreimage",
63
63
  "params": [
64
64
  {
65
65
  "name": "version",
@@ -81,11 +81,11 @@
81
81
  "genericTypes": []
82
82
  },
83
83
  {
84
- "name": "_opcat_labs_scrypt_ts_opcat_1_0_4__rs__BacktraceInfo",
84
+ "name": "_opcat_labs_scrypt_ts_opcat_1_0_5__rs__BacktraceInfo",
85
85
  "params": [
86
86
  {
87
87
  "name": "prevTxInput",
88
- "type": "_opcat_labs_scrypt_ts_opcat_1_0_4__rs__TxIn"
88
+ "type": "_opcat_labs_scrypt_ts_opcat_1_0_5__rs__TxIn"
89
89
  },
90
90
  {
91
91
  "name": "prevTxInputIndex",
@@ -93,13 +93,13 @@
93
93
  },
94
94
  {
95
95
  "name": "prevPrevTxPreimage",
96
- "type": "_opcat_labs_scrypt_ts_opcat_1_0_4__rs__TxHashPreimage"
96
+ "type": "_opcat_labs_scrypt_ts_opcat_1_0_5__rs__TxHashPreimage"
97
97
  }
98
98
  ],
99
99
  "genericTypes": []
100
100
  },
101
101
  {
102
- "name": "_opcat_labs_scrypt_ts_opcat_1_0_4__rs__SHPreimage",
102
+ "name": "_opcat_labs_scrypt_ts_opcat_1_0_5__rs__SHPreimage",
103
103
  "params": [
104
104
  {
105
105
  "name": "nVersion",
@@ -161,7 +161,7 @@
161
161
  "genericTypes": []
162
162
  },
163
163
  {
164
- "name": "_opcat_labs_scrypt_ts_opcat_1_0_4__rs__Outpoint",
164
+ "name": "_opcat_labs_scrypt_ts_opcat_1_0_5__rs__Outpoint",
165
165
  "params": [
166
166
  {
167
167
  "name": "txHash",
@@ -177,19 +177,19 @@
177
177
  ],
178
178
  "library": [
179
179
  {
180
- "name": "_opcat_labs_scrypt_ts_opcat_1_0_4__rs__TxUtils",
180
+ "name": "_opcat_labs_scrypt_ts_opcat_1_0_5__rs__TxUtils",
181
181
  "params": [],
182
182
  "properties": [],
183
183
  "genericTypes": []
184
184
  },
185
185
  {
186
- "name": "_opcat_labs_scrypt_ts_opcat_1_0_4__rs__StdUtils",
186
+ "name": "_opcat_labs_scrypt_ts_opcat_1_0_5__rs__StdUtils",
187
187
  "params": [],
188
188
  "properties": [],
189
189
  "genericTypes": []
190
190
  },
191
191
  {
192
- "name": "_opcat_labs_scrypt_ts_opcat_1_0_4__rs__ContextUtils",
192
+ "name": "_opcat_labs_scrypt_ts_opcat_1_0_5__rs__ContextUtils",
193
193
  "params": [],
194
194
  "properties": [],
195
195
  "genericTypes": []
@@ -224,6 +224,6 @@
224
224
  ],
225
225
  "stateProps": [],
226
226
  "buildType": "release",
227
- "file": "..\\p2pkh.scrypt",
227
+ "file": "../p2pkh.scrypt",
228
228
  "hex": "<pkh>6f75ad78a97887777777"
229
229
  }
@@ -4,7 +4,7 @@ import "scrypt-ts-opcat/assets/smart-contract/builtin-libs/contextUtils.scrypt";
4
4
 
5
5
 
6
6
 
7
- contract _opcat_labs_cat_sdk_1_0_3__rs__P2PKH {
7
+ contract _opcat_labs_cat_sdk_1_0_4__rs__P2PKH {
8
8
  bytes pkh;
9
9
  public function unlock(Sig sig, PubKey pubKey) {
10
10
  require(checkSig(sig, pubKey));
@@ -6,33 +6,33 @@ import "stdUtils.scrypt";
6
6
 
7
7
 
8
8
 
9
- struct _opcat_labs_scrypt_ts_opcat_1_0_4__rs__ChainTxVerifyResponse {
9
+ struct _opcat_labs_scrypt_ts_opcat_1_0_5__rs__ChainTxVerifyResponse {
10
10
  bytes prevPrevScript;
11
11
  bytes prevPrevOutpoint;
12
12
  }
13
13
 
14
- library _opcat_labs_scrypt_ts_opcat_1_0_4__rs__Backtrace {
15
- static function checkPrevTxHashPreimage(_opcat_labs_scrypt_ts_opcat_1_0_4__rs__TxHashPreimage txHashPreimage, bytes t_prevouts, int t_inputIndex) : bool {
16
- bytes txHash = _opcat_labs_scrypt_ts_opcat_1_0_4__rs__TxHashPreimageUtils.getTxHashFromTxHashPreimage(txHashPreimage);
14
+ library _opcat_labs_scrypt_ts_opcat_1_0_5__rs__Backtrace {
15
+ static function checkPrevTxHashPreimage(_opcat_labs_scrypt_ts_opcat_1_0_5__rs__TxHashPreimage txHashPreimage, bytes t_prevouts, int t_inputIndex) : bool {
16
+ bytes txHash = _opcat_labs_scrypt_ts_opcat_1_0_5__rs__TxHashPreimageUtils.getTxHashFromTxHashPreimage(txHashPreimage);
17
17
  require(txHash == t_prevouts[t_inputIndex * 36 : t_inputIndex * 36 + 32]);
18
18
  return true;
19
19
  }
20
- static function verifyFromOutpoint(_opcat_labs_scrypt_ts_opcat_1_0_4__rs__BacktraceInfo backtraceInfo, bytes t_genesisOutpoint, bytes t_selfScript, bytes t_prevTxInputList) : bool {
21
- _opcat_labs_scrypt_ts_opcat_1_0_4__rs__ChainTxVerifyResponse res = _opcat_labs_scrypt_ts_opcat_1_0_4__rs__Backtrace.verifyChainTxs(backtraceInfo, t_prevTxInputList);
20
+ static function verifyFromOutpoint(_opcat_labs_scrypt_ts_opcat_1_0_5__rs__BacktraceInfo backtraceInfo, bytes t_genesisOutpoint, bytes t_selfScript, bytes t_prevTxInputList) : bool {
21
+ _opcat_labs_scrypt_ts_opcat_1_0_5__rs__ChainTxVerifyResponse res = _opcat_labs_scrypt_ts_opcat_1_0_5__rs__Backtrace.verifyChainTxs(backtraceInfo, t_prevTxInputList);
22
22
  require(res.prevPrevOutpoint == t_genesisOutpoint || res.prevPrevScript == t_selfScript);
23
23
  return true;
24
24
  }
25
- static function verifyFromScript(_opcat_labs_scrypt_ts_opcat_1_0_4__rs__BacktraceInfo backtraceInfo, bytes t_genesisScript, bytes t_selfScript, bytes t_prevTxInputList) : bool {
26
- _opcat_labs_scrypt_ts_opcat_1_0_4__rs__ChainTxVerifyResponse res = _opcat_labs_scrypt_ts_opcat_1_0_4__rs__Backtrace.verifyChainTxs(backtraceInfo, t_prevTxInputList);
25
+ static function verifyFromScript(_opcat_labs_scrypt_ts_opcat_1_0_5__rs__BacktraceInfo backtraceInfo, bytes t_genesisScript, bytes t_selfScript, bytes t_prevTxInputList) : bool {
26
+ _opcat_labs_scrypt_ts_opcat_1_0_5__rs__ChainTxVerifyResponse res = _opcat_labs_scrypt_ts_opcat_1_0_5__rs__Backtrace.verifyChainTxs(backtraceInfo, t_prevTxInputList);
27
27
  require(res.prevPrevScript == t_genesisScript || res.prevPrevScript == t_selfScript);
28
28
  return true;
29
29
  }
30
- static function verifyChainTxs(_opcat_labs_scrypt_ts_opcat_1_0_4__rs__BacktraceInfo backtraceInfo, bytes t_prevTxInputList) : _opcat_labs_scrypt_ts_opcat_1_0_4__rs__ChainTxVerifyResponse {
31
- require(t_prevTxInputList[backtraceInfo.prevTxInputIndex * 72 : (backtraceInfo.prevTxInputIndex + 1) * 72] == _opcat_labs_scrypt_ts_opcat_1_0_4__rs__TxUtils.mergeInput(backtraceInfo.prevTxInput));
30
+ static function verifyChainTxs(_opcat_labs_scrypt_ts_opcat_1_0_5__rs__BacktraceInfo backtraceInfo, bytes t_prevTxInputList) : _opcat_labs_scrypt_ts_opcat_1_0_5__rs__ChainTxVerifyResponse {
31
+ require(t_prevTxInputList[backtraceInfo.prevTxInputIndex * 72 : (backtraceInfo.prevTxInputIndex + 1) * 72] == _opcat_labs_scrypt_ts_opcat_1_0_5__rs__TxUtils.mergeInput(backtraceInfo.prevTxInput));
32
32
  bytes prevPrevTxHash = backtraceInfo.prevTxInput.prevTxHash;
33
- require(prevPrevTxHash == _opcat_labs_scrypt_ts_opcat_1_0_4__rs__TxHashPreimageUtils.getTxHashFromTxHashPreimage(backtraceInfo.prevPrevTxPreimage));
33
+ require(prevPrevTxHash == _opcat_labs_scrypt_ts_opcat_1_0_5__rs__TxHashPreimageUtils.getTxHashFromTxHashPreimage(backtraceInfo.prevPrevTxPreimage));
34
34
  bytes prevPrevScript = backtraceInfo.prevPrevTxPreimage.outputList[backtraceInfo.prevTxInput.prevOutputIndex * 72 + 8 : (backtraceInfo.prevTxInput.prevOutputIndex) * 72 + 8 + 32];
35
- bytes prevPrevOutpoint = prevPrevTxHash + _opcat_labs_scrypt_ts_opcat_1_0_4__rs__StdUtils.uint32ToByteString(backtraceInfo.prevTxInput.prevOutputIndex);
35
+ bytes prevPrevOutpoint = prevPrevTxHash + _opcat_labs_scrypt_ts_opcat_1_0_5__rs__StdUtils.uint32ToByteString(backtraceInfo.prevTxInput.prevOutputIndex);
36
36
  return {prevPrevScript, prevPrevOutpoint};
37
37
  }
38
38
  }