@misofm/sdk 0.15.11 → 0.17.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 (371) hide show
  1. package/README.md +210 -73
  2. package/dist/client.d.ts +224 -68
  3. package/dist/client.d.ts.map +1 -1
  4. package/dist/client.js +465 -79
  5. package/dist/client.js.map +1 -1
  6. package/dist/contracts/composition_credits/composition_credits.d.ts +10 -10
  7. package/dist/contracts/composition_credits/composition_credits.d.ts.map +1 -1
  8. package/dist/contracts/composition_credits/composition_credits.js.map +1 -1
  9. package/dist/contracts/composition_credits/composition_party_role.d.ts +1 -1
  10. package/dist/contracts/composition_credits/composition_party_role.d.ts.map +1 -1
  11. package/dist/contracts/composition_credits/composition_party_role.js.map +1 -1
  12. package/dist/contracts/composition_credits/deps/miso_credit/credit.d.ts.map +1 -1
  13. package/dist/contracts/composition_credits/deps/miso_credit/credit.js.map +1 -1
  14. package/dist/contracts/composition_credits/deps/sui/vec_map.d.ts.map +1 -1
  15. package/dist/contracts/composition_credits/deps/sui/vec_map.js.map +1 -1
  16. package/dist/contracts/composition_routed_stake/composition_routed_stake.d.ts +29 -93
  17. package/dist/contracts/composition_routed_stake/composition_routed_stake.d.ts.map +1 -1
  18. package/dist/contracts/composition_routed_stake/composition_routed_stake.js +19 -79
  19. package/dist/contracts/composition_routed_stake/composition_routed_stake.js.map +1 -1
  20. package/dist/contracts/composition_royalty_pool/composition_royalty_pool.d.ts +22 -106
  21. package/dist/contracts/composition_royalty_pool/composition_royalty_pool.d.ts.map +1 -1
  22. package/dist/contracts/composition_royalty_pool/composition_royalty_pool.js +16 -98
  23. package/dist/contracts/composition_royalty_pool/composition_royalty_pool.js.map +1 -1
  24. package/dist/contracts/composition_royalty_pool_plugin/composition_royalty_pool_plugin.d.ts +90 -0
  25. package/dist/contracts/composition_royalty_pool_plugin/composition_royalty_pool_plugin.d.ts.map +1 -0
  26. package/dist/contracts/composition_royalty_pool_plugin/composition_royalty_pool_plugin.js +85 -0
  27. package/dist/contracts/composition_royalty_pool_plugin/composition_royalty_pool_plugin.js.map +1 -0
  28. package/dist/contracts/{party_wallet → composition_royalty_pool_plugin}/witness.d.ts +1 -1
  29. package/dist/contracts/composition_royalty_pool_plugin/witness.d.ts.map +1 -0
  30. package/dist/contracts/{recording_royalty_pool → composition_royalty_pool_plugin}/witness.js +1 -1
  31. package/dist/contracts/composition_royalty_pool_plugin/witness.js.map +1 -0
  32. package/dist/contracts/cover_art/cover_art.d.ts +4 -4
  33. package/dist/contracts/cover_art/cover_art.d.ts.map +1 -1
  34. package/dist/contracts/cover_art/cover_art.js.map +1 -1
  35. package/dist/contracts/cover_art/deps/ori/walrus_data.d.ts +4 -4
  36. package/dist/contracts/cover_art/deps/ori/walrus_data.d.ts.map +1 -1
  37. package/dist/contracts/cover_art/deps/ori/walrus_data.js.map +1 -1
  38. package/dist/contracts/genre/genre.d.ts +6 -6
  39. package/dist/contracts/genre/genre.d.ts.map +1 -1
  40. package/dist/contracts/genre/genre.js.map +1 -1
  41. package/dist/contracts/{miso_pressing → miso_record}/deps/std/type_name.d.ts +1 -1
  42. package/dist/contracts/miso_record/deps/std/type_name.d.ts.map +1 -0
  43. package/dist/contracts/miso_record/deps/std/type_name.js.map +1 -0
  44. package/dist/contracts/miso_record/deps/sui/vec_set.d.ts +21 -0
  45. package/dist/contracts/miso_record/deps/sui/vec_set.d.ts.map +1 -0
  46. package/dist/contracts/miso_record/deps/sui/vec_set.js +20 -0
  47. package/dist/contracts/miso_record/deps/sui/vec_set.js.map +1 -0
  48. package/dist/contracts/miso_record/pressing.d.ts +327 -0
  49. package/dist/contracts/miso_record/pressing.d.ts.map +1 -0
  50. package/dist/contracts/miso_record/pressing.js +345 -0
  51. package/dist/contracts/miso_record/pressing.js.map +1 -0
  52. package/dist/contracts/miso_record/record.d.ts +190 -0
  53. package/dist/contracts/miso_record/record.d.ts.map +1 -0
  54. package/dist/contracts/miso_record/record.js +226 -0
  55. package/dist/contracts/miso_record/record.js.map +1 -0
  56. package/dist/contracts/miso_record_shop/deps/std/type_name.d.ts +18 -0
  57. package/dist/contracts/miso_record_shop/deps/std/type_name.d.ts.map +1 -0
  58. package/dist/contracts/miso_record_shop/deps/std/type_name.js +20 -0
  59. package/dist/contracts/miso_record_shop/deps/std/type_name.js.map +1 -0
  60. package/dist/contracts/miso_record_shop/listing.d.ts +387 -0
  61. package/dist/contracts/miso_record_shop/listing.d.ts.map +1 -0
  62. package/dist/contracts/miso_record_shop/listing.js +380 -0
  63. package/dist/contracts/miso_record_shop/listing.js.map +1 -0
  64. package/dist/contracts/{release_revenue_distributor → miso_record_shop}/witness.d.ts +2 -2
  65. package/dist/contracts/miso_record_shop/witness.d.ts.map +1 -0
  66. package/dist/contracts/{release_revenue_distributor → miso_record_shop}/witness.js +2 -2
  67. package/dist/contracts/miso_record_shop/witness.js.map +1 -0
  68. package/dist/contracts/party_wallet/party_wallet.d.ts +41 -168
  69. package/dist/contracts/party_wallet/party_wallet.d.ts.map +1 -1
  70. package/dist/contracts/party_wallet/party_wallet.js +27 -152
  71. package/dist/contracts/party_wallet/party_wallet.js.map +1 -1
  72. package/dist/contracts/recording_advisory/recording_advisory.d.ts +3 -3
  73. package/dist/contracts/recording_advisory/recording_advisory.d.ts.map +1 -1
  74. package/dist/contracts/recording_advisory/recording_advisory.js.map +1 -1
  75. package/dist/contracts/recording_credits/deps/miso_credit/credit.d.ts.map +1 -1
  76. package/dist/contracts/recording_credits/deps/miso_credit/credit.js.map +1 -1
  77. package/dist/contracts/recording_credits/deps/sui/vec_map.d.ts.map +1 -1
  78. package/dist/contracts/recording_credits/deps/sui/vec_map.js.map +1 -1
  79. package/dist/contracts/recording_credits/deps/sui/vec_set.d.ts.map +1 -1
  80. package/dist/contracts/recording_credits/deps/sui/vec_set.js.map +1 -1
  81. package/dist/contracts/recording_credits/recording_credits.d.ts +20 -20
  82. package/dist/contracts/recording_credits/recording_credits.d.ts.map +1 -1
  83. package/dist/contracts/recording_credits/recording_credits.js.map +1 -1
  84. package/dist/contracts/recording_credits/recording_party_role.d.ts +30 -30
  85. package/dist/contracts/recording_credits/recording_party_role.d.ts.map +1 -1
  86. package/dist/contracts/recording_credits/recording_party_role.js.map +1 -1
  87. package/dist/contracts/recording_language/deps/language_code/language_code.d.ts +1 -1
  88. package/dist/contracts/recording_language/deps/language_code/language_code.d.ts.map +1 -1
  89. package/dist/contracts/recording_language/deps/language_code/language_code.js.map +1 -1
  90. package/dist/contracts/recording_language/recording_language.d.ts +4 -4
  91. package/dist/contracts/recording_language/recording_language.d.ts.map +1 -1
  92. package/dist/contracts/recording_language/recording_language.js.map +1 -1
  93. package/dist/contracts/recording_master_reference/deps/ori/walrus_data.d.ts +4 -4
  94. package/dist/contracts/recording_master_reference/deps/ori/walrus_data.d.ts.map +1 -1
  95. package/dist/contracts/recording_master_reference/deps/ori/walrus_data.js.map +1 -1
  96. package/dist/contracts/recording_master_reference/recording_master_reference.d.ts +6 -6
  97. package/dist/contracts/recording_master_reference/recording_master_reference.d.ts.map +1 -1
  98. package/dist/contracts/recording_master_reference/recording_master_reference.js.map +1 -1
  99. package/dist/contracts/recording_preview/deps/ori/walrus_data.d.ts +4 -4
  100. package/dist/contracts/recording_preview/deps/ori/walrus_data.d.ts.map +1 -1
  101. package/dist/contracts/recording_preview/deps/ori/walrus_data.js.map +1 -1
  102. package/dist/contracts/recording_preview/recording_preview.d.ts +6 -6
  103. package/dist/contracts/recording_preview/recording_preview.d.ts.map +1 -1
  104. package/dist/contracts/recording_preview/recording_preview.js.map +1 -1
  105. package/dist/contracts/recording_royalty_pool/recording_royalty_pool.d.ts +21 -109
  106. package/dist/contracts/recording_royalty_pool/recording_royalty_pool.d.ts.map +1 -1
  107. package/dist/contracts/recording_royalty_pool/recording_royalty_pool.js +15 -100
  108. package/dist/contracts/recording_royalty_pool/recording_royalty_pool.js.map +1 -1
  109. package/dist/contracts/recording_royalty_pool_plugin/recording_royalty_pool_plugin.d.ts +92 -0
  110. package/dist/contracts/recording_royalty_pool_plugin/recording_royalty_pool_plugin.d.ts.map +1 -0
  111. package/dist/contracts/recording_royalty_pool_plugin/recording_royalty_pool_plugin.js +85 -0
  112. package/dist/contracts/recording_royalty_pool_plugin/recording_royalty_pool_plugin.js.map +1 -0
  113. package/dist/contracts/{composition_royalty_pool → recording_royalty_pool_plugin}/witness.d.ts +1 -1
  114. package/dist/contracts/recording_royalty_pool_plugin/witness.d.ts.map +1 -0
  115. package/dist/contracts/{party_wallet → recording_royalty_pool_plugin}/witness.js +1 -1
  116. package/dist/contracts/recording_royalty_pool_plugin/witness.js.map +1 -0
  117. package/dist/contracts/release_cover_art/deps/{0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78 → 0xf35cf353a62cef01084b51a9cf3da4c64c8724685ad1862f2f8284b71bd26c1a}/walrus_data.d.ts +7 -7
  118. package/dist/contracts/release_cover_art/deps/{0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78 → 0xf35cf353a62cef01084b51a9cf3da4c64c8724685ad1862f2f8284b71bd26c1a}/walrus_data.d.ts.map +1 -1
  119. package/dist/contracts/release_cover_art/deps/{0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78 → 0xf35cf353a62cef01084b51a9cf3da4c64c8724685ad1862f2f8284b71bd26c1a}/walrus_data.js +1 -1
  120. package/dist/contracts/release_cover_art/deps/{0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78 → 0xf35cf353a62cef01084b51a9cf3da4c64c8724685ad1862f2f8284b71bd26c1a}/walrus_data.js.map +1 -1
  121. package/dist/contracts/release_cover_art/deps/cover_art/cover_art.d.ts +7 -7
  122. package/dist/contracts/release_cover_art/deps/cover_art/cover_art.d.ts.map +1 -1
  123. package/dist/contracts/release_cover_art/deps/cover_art/cover_art.js +1 -1
  124. package/dist/contracts/release_cover_art/deps/cover_art/cover_art.js.map +1 -1
  125. package/dist/contracts/release_cover_art/deps/per_track/per_track.d.ts.map +1 -1
  126. package/dist/contracts/release_cover_art/deps/per_track/per_track.js.map +1 -1
  127. package/dist/contracts/release_cover_art/release_cover_art.d.ts +23 -23
  128. package/dist/contracts/release_cover_art/release_cover_art.d.ts.map +1 -1
  129. package/dist/contracts/release_cover_art/release_cover_art.js.map +1 -1
  130. package/dist/contracts/release_credits/deps/miso_credit/credit.d.ts.map +1 -1
  131. package/dist/contracts/release_credits/deps/miso_credit/credit.js.map +1 -1
  132. package/dist/contracts/release_credits/deps/sui/vec_map.d.ts.map +1 -1
  133. package/dist/contracts/release_credits/deps/sui/vec_map.js.map +1 -1
  134. package/dist/contracts/release_credits/release_credits.d.ts +10 -10
  135. package/dist/contracts/release_credits/release_credits.d.ts.map +1 -1
  136. package/dist/contracts/release_credits/release_credits.js.map +1 -1
  137. package/dist/contracts/release_description/release_description.d.ts +4 -4
  138. package/dist/contracts/release_description/release_description.d.ts.map +1 -1
  139. package/dist/contracts/release_description/release_description.js.map +1 -1
  140. package/dist/contracts/release_dsp_link/release_dsp_link.d.ts +41 -42
  141. package/dist/contracts/release_dsp_link/release_dsp_link.d.ts.map +1 -1
  142. package/dist/contracts/release_dsp_link/release_dsp_link.js +4 -5
  143. package/dist/contracts/release_dsp_link/release_dsp_link.js.map +1 -1
  144. package/dist/contracts/release_genre/deps/per_track/per_track.d.ts.map +1 -1
  145. package/dist/contracts/release_genre/deps/per_track/per_track.js.map +1 -1
  146. package/dist/contracts/release_genre/release_genre.d.ts +15 -15
  147. package/dist/contracts/release_genre/release_genre.d.ts.map +1 -1
  148. package/dist/contracts/release_genre/release_genre.js.map +1 -1
  149. package/dist/contracts/release_kind/release_kind.d.ts +4 -4
  150. package/dist/contracts/release_kind/release_kind.d.ts.map +1 -1
  151. package/dist/contracts/release_kind/release_kind.js.map +1 -1
  152. package/dist/contracts/release_revenue_distributor/release_revenue_distributor.d.ts +46 -59
  153. package/dist/contracts/release_revenue_distributor/release_revenue_distributor.d.ts.map +1 -1
  154. package/dist/contracts/release_revenue_distributor/release_revenue_distributor.js +27 -48
  155. package/dist/contracts/release_revenue_distributor/release_revenue_distributor.js.map +1 -1
  156. package/dist/contracts/release_revenue_distributor_plugin/release_revenue_distributor_plugin.d.ts +75 -0
  157. package/dist/contracts/release_revenue_distributor_plugin/release_revenue_distributor_plugin.d.ts.map +1 -0
  158. package/dist/contracts/release_revenue_distributor_plugin/release_revenue_distributor_plugin.js +80 -0
  159. package/dist/contracts/release_revenue_distributor_plugin/release_revenue_distributor_plugin.js.map +1 -0
  160. package/dist/contracts/{recording_royalty_pool → release_revenue_distributor_plugin}/witness.d.ts +1 -1
  161. package/dist/contracts/release_revenue_distributor_plugin/witness.d.ts.map +1 -0
  162. package/dist/contracts/{composition_royalty_pool → release_revenue_distributor_plugin}/witness.js +1 -1
  163. package/dist/contracts/release_revenue_distributor_plugin/witness.js.map +1 -0
  164. package/dist/contracts/routed_stake/deps/royalty_pool/stake.d.ts +5 -5
  165. package/dist/contracts/routed_stake/deps/royalty_pool/stake.d.ts.map +1 -1
  166. package/dist/contracts/routed_stake/deps/royalty_pool/stake.js.map +1 -1
  167. package/dist/contracts/routed_stake/deps/std/type_name.d.ts +1 -1
  168. package/dist/contracts/routed_stake/deps/std/type_name.d.ts.map +1 -1
  169. package/dist/contracts/routed_stake/deps/std/type_name.js.map +1 -1
  170. package/dist/contracts/routed_stake/deps/sui/balance.d.ts +1 -1
  171. package/dist/contracts/routed_stake/deps/sui/balance.d.ts.map +1 -1
  172. package/dist/contracts/routed_stake/deps/sui/balance.js.map +1 -1
  173. package/dist/contracts/routed_stake/deps/sui/vec_map.d.ts.map +1 -1
  174. package/dist/contracts/routed_stake/deps/sui/vec_map.js.map +1 -1
  175. package/dist/contracts/routed_stake/routed_stake.d.ts +15 -15
  176. package/dist/contracts/routed_stake/routed_stake.d.ts.map +1 -1
  177. package/dist/contracts/routed_stake/routed_stake.js.map +1 -1
  178. package/dist/contracts/royalty_pool/deps/std/type_name.d.ts +1 -1
  179. package/dist/contracts/royalty_pool/deps/std/type_name.d.ts.map +1 -1
  180. package/dist/contracts/royalty_pool/deps/std/type_name.js.map +1 -1
  181. package/dist/contracts/royalty_pool/deps/sui/balance.d.ts +1 -1
  182. package/dist/contracts/royalty_pool/deps/sui/balance.d.ts.map +1 -1
  183. package/dist/contracts/royalty_pool/deps/sui/balance.js.map +1 -1
  184. package/dist/contracts/royalty_pool/deps/sui/vec_map.d.ts.map +1 -1
  185. package/dist/contracts/royalty_pool/deps/sui/vec_map.js.map +1 -1
  186. package/dist/contracts/royalty_pool/pool.d.ts +19 -19
  187. package/dist/contracts/royalty_pool/pool.d.ts.map +1 -1
  188. package/dist/contracts/royalty_pool/pool.js.map +1 -1
  189. package/dist/contracts/royalty_pool/stake.d.ts +9 -9
  190. package/dist/contracts/royalty_pool/stake.d.ts.map +1 -1
  191. package/dist/contracts/royalty_pool/stake.js.map +1 -1
  192. package/dist/contracts/vault/deps/sui/bag.d.ts +2 -2
  193. package/dist/contracts/vault/deps/sui/bag.d.ts.map +1 -1
  194. package/dist/contracts/vault/deps/sui/bag.js.map +1 -1
  195. package/dist/contracts/vault/deps/sui/borrow.d.ts.map +1 -1
  196. package/dist/contracts/vault/deps/sui/borrow.js.map +1 -1
  197. package/dist/contracts/vault/vault.d.ts +19 -93
  198. package/dist/contracts/vault/vault.d.ts.map +1 -1
  199. package/dist/contracts/vault/vault.js +16 -95
  200. package/dist/contracts/vault/vault.js.map +1 -1
  201. package/dist/contracts.d.ts +6 -3
  202. package/dist/contracts.d.ts.map +1 -1
  203. package/dist/contracts.js +9 -5
  204. package/dist/contracts.js.map +1 -1
  205. package/dist/deployments.d.ts +156 -77
  206. package/dist/deployments.d.ts.map +1 -1
  207. package/dist/deployments.js +146 -32
  208. package/dist/deployments.js.map +1 -1
  209. package/dist/index.d.ts +3 -1
  210. package/dist/index.d.ts.map +1 -1
  211. package/dist/index.js +3 -1
  212. package/dist/index.js.map +1 -1
  213. package/dist/internal.d.ts +9 -0
  214. package/dist/internal.d.ts.map +1 -1
  215. package/dist/internal.js +23 -0
  216. package/dist/internal.js.map +1 -1
  217. package/dist/mix.d.ts +144 -0
  218. package/dist/mix.d.ts.map +1 -0
  219. package/dist/mix.js +656 -0
  220. package/dist/mix.js.map +1 -0
  221. package/dist/pressing.d.ts +72 -156
  222. package/dist/pressing.d.ts.map +1 -1
  223. package/dist/pressing.js +269 -261
  224. package/dist/pressing.js.map +1 -1
  225. package/dist/publication.d.ts +6 -6
  226. package/dist/publication.d.ts.map +1 -1
  227. package/dist/publication.js +134 -90
  228. package/dist/publication.js.map +1 -1
  229. package/dist/read/catalog.d.ts +8 -5
  230. package/dist/read/catalog.d.ts.map +1 -1
  231. package/dist/read/catalog.js +47 -35
  232. package/dist/read/catalog.js.map +1 -1
  233. package/dist/read/config.d.ts +6 -4
  234. package/dist/read/config.d.ts.map +1 -1
  235. package/dist/read/config.js +10 -3
  236. package/dist/read/config.js.map +1 -1
  237. package/dist/read/index.d.ts +1 -1
  238. package/dist/read/index.d.ts.map +1 -1
  239. package/dist/read/index.js +1 -1
  240. package/dist/read/index.js.map +1 -1
  241. package/dist/read/internal/scalars.d.ts.map +1 -1
  242. package/dist/read/internal/scalars.js +4 -3
  243. package/dist/read/internal/scalars.js.map +1 -1
  244. package/dist/read/internal/walrus.d.ts.map +1 -1
  245. package/dist/read/internal/walrus.js +2 -1
  246. package/dist/read/internal/walrus.js.map +1 -1
  247. package/dist/read/receipts.d.ts +21 -12
  248. package/dist/read/receipts.d.ts.map +1 -1
  249. package/dist/read/receipts.js +159 -56
  250. package/dist/read/receipts.js.map +1 -1
  251. package/dist/read/types.d.ts +34 -24
  252. package/dist/read/types.d.ts.map +1 -1
  253. package/dist/read/wallet.d.ts.map +1 -1
  254. package/dist/read/wallet.js +31 -46
  255. package/dist/read/wallet.js.map +1 -1
  256. package/dist/vault.d.ts +81 -48
  257. package/dist/vault.d.ts.map +1 -1
  258. package/dist/vault.js +173 -174
  259. package/dist/vault.js.map +1 -1
  260. package/package.json +17 -7
  261. package/src/client.ts +618 -120
  262. package/src/contracts/composition_credits/composition_credits.ts +3 -2
  263. package/src/contracts/composition_credits/composition_party_role.ts +5 -4
  264. package/src/contracts/composition_credits/deps/miso_credit/credit.ts +1 -0
  265. package/src/contracts/composition_credits/deps/sui/vec_map.ts +1 -0
  266. package/src/contracts/composition_routed_stake/composition_routed_stake.ts +36 -146
  267. package/src/contracts/composition_royalty_pool/composition_royalty_pool.ts +28 -169
  268. package/src/contracts/composition_royalty_pool_plugin/composition_royalty_pool_plugin.ts +165 -0
  269. package/src/contracts/{recording_royalty_pool → composition_royalty_pool_plugin}/witness.ts +2 -1
  270. package/src/contracts/cover_art/cover_art.ts +2 -1
  271. package/src/contracts/cover_art/deps/ori/walrus_data.ts +1 -0
  272. package/src/contracts/genre/genre.ts +3 -2
  273. package/src/contracts/{miso_pressing → miso_record}/deps/std/type_name.ts +1 -0
  274. package/src/contracts/miso_record/deps/sui/vec_set.ts +22 -0
  275. package/src/contracts/miso_record/pressing.ts +523 -0
  276. package/src/contracts/miso_record/record.ts +339 -0
  277. package/src/contracts/miso_record_shop/deps/std/type_name.ts +23 -0
  278. package/src/contracts/miso_record_shop/listing.ts +603 -0
  279. package/src/contracts/{release_revenue_distributor → miso_record_shop}/witness.ts +3 -2
  280. package/src/contracts/party_wallet/party_wallet.ts +41 -256
  281. package/src/contracts/recording_advisory/recording_advisory.ts +4 -3
  282. package/src/contracts/recording_credits/deps/miso_credit/credit.ts +1 -0
  283. package/src/contracts/recording_credits/deps/sui/vec_map.ts +1 -0
  284. package/src/contracts/recording_credits/deps/sui/vec_set.ts +1 -0
  285. package/src/contracts/recording_credits/recording_credits.ts +3 -2
  286. package/src/contracts/recording_credits/recording_party_role.ts +5 -4
  287. package/src/contracts/recording_language/deps/language_code/language_code.ts +1 -0
  288. package/src/contracts/recording_language/recording_language.ts +5 -4
  289. package/src/contracts/recording_master_reference/deps/ori/walrus_data.ts +1 -0
  290. package/src/contracts/recording_master_reference/recording_master_reference.ts +6 -5
  291. package/src/contracts/recording_preview/deps/ori/walrus_data.ts +1 -0
  292. package/src/contracts/recording_preview/recording_preview.ts +2 -1
  293. package/src/contracts/recording_royalty_pool/recording_royalty_pool.ts +27 -172
  294. package/src/contracts/recording_royalty_pool_plugin/recording_royalty_pool_plugin.ts +167 -0
  295. package/src/contracts/{party_wallet → recording_royalty_pool_plugin}/witness.ts +2 -1
  296. package/src/contracts/release_cover_art/deps/{0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78 → 0xf35cf353a62cef01084b51a9cf3da4c64c8724685ad1862f2f8284b71bd26c1a}/walrus_data.ts +2 -1
  297. package/src/contracts/release_cover_art/deps/cover_art/cover_art.ts +3 -2
  298. package/src/contracts/release_cover_art/deps/per_track/per_track.ts +3 -2
  299. package/src/contracts/release_cover_art/release_cover_art.ts +2 -1
  300. package/src/contracts/release_credits/deps/miso_credit/credit.ts +1 -0
  301. package/src/contracts/release_credits/deps/sui/vec_map.ts +1 -0
  302. package/src/contracts/release_credits/release_credits.ts +4 -3
  303. package/src/contracts/release_credits/release_party_role.ts +4 -4
  304. package/src/contracts/release_description/release_description.ts +6 -5
  305. package/src/contracts/release_dsp_link/release_dsp_link.ts +8 -8
  306. package/src/contracts/release_genre/deps/per_track/per_track.ts +3 -2
  307. package/src/contracts/release_genre/release_genre.ts +4 -3
  308. package/src/contracts/release_kind/release_kind.ts +5 -4
  309. package/src/contracts/release_revenue_distributor/release_revenue_distributor.ts +50 -85
  310. package/src/contracts/release_revenue_distributor_plugin/release_revenue_distributor_plugin.ts +145 -0
  311. package/src/contracts/{composition_royalty_pool → release_revenue_distributor_plugin}/witness.ts +2 -1
  312. package/src/contracts/routed_stake/deps/royalty_pool/stake.ts +1 -0
  313. package/src/contracts/routed_stake/deps/std/type_name.ts +1 -0
  314. package/src/contracts/routed_stake/deps/sui/balance.ts +1 -0
  315. package/src/contracts/routed_stake/deps/sui/vec_map.ts +1 -0
  316. package/src/contracts/routed_stake/routed_stake.ts +4 -3
  317. package/src/contracts/royalty_pool/deps/std/type_name.ts +1 -0
  318. package/src/contracts/royalty_pool/deps/sui/balance.ts +1 -0
  319. package/src/contracts/royalty_pool/deps/sui/vec_map.ts +1 -0
  320. package/src/contracts/royalty_pool/pool.ts +1 -0
  321. package/src/contracts/royalty_pool/stake.ts +1 -0
  322. package/src/contracts/vault/deps/sui/bag.ts +3 -2
  323. package/src/contracts/vault/deps/sui/borrow.ts +2 -1
  324. package/src/contracts/vault/vault.ts +27 -152
  325. package/src/contracts.ts +9 -5
  326. package/src/deployments.ts +273 -55
  327. package/src/index.ts +5 -0
  328. package/src/internal.ts +27 -0
  329. package/src/mix.ts +910 -0
  330. package/src/pressing.ts +428 -423
  331. package/src/publication.ts +148 -101
  332. package/src/read/catalog.ts +49 -34
  333. package/src/read/config.ts +19 -8
  334. package/src/read/index.ts +9 -1
  335. package/src/read/internal/scalars.ts +4 -2
  336. package/src/read/internal/walrus.ts +2 -1
  337. package/src/read/receipts.ts +181 -66
  338. package/src/read/types.ts +35 -22
  339. package/src/read/wallet.ts +29 -50
  340. package/src/vault.ts +275 -271
  341. package/dist/contracts/composition_routed_stake/witness.d.ts +0 -7
  342. package/dist/contracts/composition_routed_stake/witness.d.ts.map +0 -1
  343. package/dist/contracts/composition_routed_stake/witness.js +0 -9
  344. package/dist/contracts/composition_routed_stake/witness.js.map +0 -1
  345. package/dist/contracts/composition_royalty_pool/witness.d.ts.map +0 -1
  346. package/dist/contracts/composition_royalty_pool/witness.js.map +0 -1
  347. package/dist/contracts/miso_pressing/certificate.d.ts +0 -89
  348. package/dist/contracts/miso_pressing/certificate.d.ts.map +0 -1
  349. package/dist/contracts/miso_pressing/certificate.js +0 -108
  350. package/dist/contracts/miso_pressing/certificate.js.map +0 -1
  351. package/dist/contracts/miso_pressing/deps/std/type_name.d.ts.map +0 -1
  352. package/dist/contracts/miso_pressing/deps/std/type_name.js.map +0 -1
  353. package/dist/contracts/miso_pressing/listing.d.ts +0 -434
  354. package/dist/contracts/miso_pressing/listing.d.ts.map +0 -1
  355. package/dist/contracts/miso_pressing/listing.js +0 -401
  356. package/dist/contracts/miso_pressing/listing.js.map +0 -1
  357. package/dist/contracts/miso_pressing/pressing.d.ts +0 -334
  358. package/dist/contracts/miso_pressing/pressing.d.ts.map +0 -1
  359. package/dist/contracts/miso_pressing/pressing.js +0 -298
  360. package/dist/contracts/miso_pressing/pressing.js.map +0 -1
  361. package/dist/contracts/party_wallet/witness.d.ts.map +0 -1
  362. package/dist/contracts/party_wallet/witness.js.map +0 -1
  363. package/dist/contracts/recording_royalty_pool/witness.d.ts.map +0 -1
  364. package/dist/contracts/recording_royalty_pool/witness.js.map +0 -1
  365. package/dist/contracts/release_revenue_distributor/witness.d.ts.map +0 -1
  366. package/dist/contracts/release_revenue_distributor/witness.js.map +0 -1
  367. package/src/contracts/composition_routed_stake/witness.ts +0 -11
  368. package/src/contracts/miso_pressing/certificate.ts +0 -164
  369. package/src/contracts/miso_pressing/listing.ts +0 -592
  370. package/src/contracts/miso_pressing/pressing.ts +0 -399
  371. /package/dist/contracts/{miso_pressing → miso_record}/deps/std/type_name.js +0 -0
@@ -0,0 +1,327 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ /**
5
+ * One edition of a Miso release and the complete lifecycle boundary for its
6
+ * Records.
7
+ *
8
+ * A release may have many Pressings, one at each `PressingKey(edition)`. Each
9
+ * Pressing owns an independent Record sequence, an optional immutable maximum
10
+ * supply, and the set of distributor witness types allowed to mint from that
11
+ * edition. Distributors own delivery mechanics; the Pressing owns issuance.
12
+ */
13
+ import { MoveTuple, MoveStruct, type RawTransactionArgument } from '../utils/index.js';
14
+ import { type BcsType } from '@mysten/sui/bcs';
15
+ import { type Transaction } from '@mysten/sui/transactions';
16
+ export declare const PressingKey: MoveTuple<readonly [BcsType<number, number, "u16">], "@local-pkg/miso_record::pressing::PressingKey">;
17
+ export declare const PressingAdminCapKey: MoveTuple<readonly [BcsType<boolean, boolean, "bool">], "@local-pkg/miso_record::pressing::PressingAdminCapKey">;
18
+ export declare const Pressing: MoveStruct<{
19
+ /** The Pressing's derived object identity. */
20
+ id: BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
21
+ /** The parent release represented by this edition. */
22
+ release_id: BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
23
+ /** The edition number. */
24
+ edition: BcsType<number, number, "u16">;
25
+ /** The number of Records issued by this Pressing. */
26
+ supply: BcsType<number, number, "u32">;
27
+ /** The immutable supply ceiling, or `none()` for an uncapped Pressing. */
28
+ max_supply: BcsType<number | null, number | null | undefined, "Option<u32>">;
29
+ /** The defining types of distributors currently permitted to mint. */
30
+ distributors: MoveStruct<{
31
+ contents: BcsType<{
32
+ name: string;
33
+ }[], Iterable<{
34
+ name: string;
35
+ }> & {
36
+ length: number;
37
+ }, string>;
38
+ }, "0x2::vec_set::VecSet<std::type_name::TypeName>">;
39
+ }, "@local-pkg/miso_record::pressing::Pressing">;
40
+ export declare const PressingAdminCap: MoveStruct<{
41
+ /** The capability's derived object identity. */
42
+ id: BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
43
+ /** The Pressing controlled by this capability. */
44
+ pressing_id: BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
45
+ }, "@local-pkg/miso_record::pressing::PressingAdminCap">;
46
+ export declare const PressingCreatedEvent: MoveStruct<{
47
+ /** The newly created Pressing. */
48
+ pressing_id: BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
49
+ /** The parent release. */
50
+ release_id: BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
51
+ /** The Pressing's edition number. */
52
+ edition: BcsType<number, number, "u16">;
53
+ /** The immutable supply ceiling, if one exists. */
54
+ max_supply: BcsType<number | null, number | null | undefined, "Option<u32>">;
55
+ }, "@local-pkg/miso_record::pressing::PressingCreatedEvent">;
56
+ export declare const DistributorAuthorizedEvent: MoveStruct<{
57
+ /** The configured Pressing. */
58
+ pressing_id: BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
59
+ /** The authorized distributor's defining type. */
60
+ distributor: MoveStruct<{
61
+ name: BcsType<string, string, "string">;
62
+ }, "std::type_name::TypeName">;
63
+ }, "@local-pkg/miso_record::pressing::DistributorAuthorizedEvent">;
64
+ export declare const DistributorRevokedEvent: MoveStruct<{
65
+ /** The configured Pressing. */
66
+ pressing_id: BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
67
+ /** The revoked distributor's defining type. */
68
+ distributor: MoveStruct<{
69
+ name: BcsType<string, string, "string">;
70
+ }, "std::type_name::TypeName">;
71
+ }, "@local-pkg/miso_record::pressing::DistributorRevokedEvent">;
72
+ export declare const RecordPurchasedEvent: MoveStruct<{
73
+ /** The purchased Record. */
74
+ record_id: BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
75
+ /** The release represented by the Record. */
76
+ release_id: BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
77
+ /** The Pressing that issued the Record. */
78
+ pressing_id: BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
79
+ /** The edition represented by the Pressing. */
80
+ edition: BcsType<number, number, "u16">;
81
+ /** The Record's number within its edition. */
82
+ number: BcsType<number, number, "u32">;
83
+ /** The defining type of the purchase currency. */
84
+ purchase_currency: MoveStruct<{
85
+ name: BcsType<string, string, "string">;
86
+ }, "std::type_name::TypeName">;
87
+ /** The amount paid for the Record. */
88
+ purchase_price: BcsType<string, string | number | bigint, "u64">;
89
+ /** The transaction sender who purchased the Record. */
90
+ purchased_by: BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
91
+ /** The purchase time in Unix milliseconds from Sui's Clock. */
92
+ purchased_timestamp_ms: BcsType<string, string | number | bigint, "u64">;
93
+ /** The defining type of the distributor that authorized the mint. */
94
+ distributor: MoveStruct<{
95
+ name: BcsType<string, string, "string">;
96
+ }, "std::type_name::TypeName">;
97
+ }, "@local-pkg/miso_record::pressing::RecordPurchasedEvent">;
98
+ export interface NewArguments {
99
+ release: RawTransactionArgument<string>;
100
+ releaseCap: RawTransactionArgument<string>;
101
+ edition: RawTransactionArgument<number>;
102
+ maxSupply: RawTransactionArgument<number | null>;
103
+ }
104
+ export interface NewOptions {
105
+ package?: string;
106
+ arguments: NewArguments | [
107
+ release: RawTransactionArgument<string>,
108
+ releaseCap: RawTransactionArgument<string>,
109
+ edition: RawTransactionArgument<number>,
110
+ maxSupply: RawTransactionArgument<number | null>
111
+ ];
112
+ }
113
+ /**
114
+ * Create one edition's Pressing under its Release.
115
+ *
116
+ * `max_supply = none()` creates an uncapped edition; `some(quantity)` creates a
117
+ * permanently capped edition. The Pressing and its admin capability are returned
118
+ * for composition before the caller shares the Pressing and custodies the
119
+ * capability.
120
+ */
121
+ export declare function _new(options: NewOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
122
+ export interface ShareArguments {
123
+ self: RawTransactionArgument<string>;
124
+ }
125
+ export interface ShareOptions {
126
+ package?: string;
127
+ arguments: ShareArguments | [
128
+ self: RawTransactionArgument<string>
129
+ ];
130
+ }
131
+ /** Share a newly created Pressing after configuring its distributors. */
132
+ export declare function share(options: ShareOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
133
+ export interface AuthorizeDistributorArguments {
134
+ self: RawTransactionArgument<string>;
135
+ cap: RawTransactionArgument<string>;
136
+ }
137
+ export interface AuthorizeDistributorOptions {
138
+ package?: string;
139
+ arguments: AuthorizeDistributorArguments | [
140
+ self: RawTransactionArgument<string>,
141
+ cap: RawTransactionArgument<string>
142
+ ];
143
+ typeArguments: [
144
+ string
145
+ ];
146
+ }
147
+ /**
148
+ * Authorize distributor witness type `Distributor` for this edition. Reauthorizing
149
+ * an existing distributor is a no-op.
150
+ */
151
+ export declare function authorizeDistributor(options: AuthorizeDistributorOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
152
+ export interface RevokeDistributorArguments {
153
+ self: RawTransactionArgument<string>;
154
+ cap: RawTransactionArgument<string>;
155
+ }
156
+ export interface RevokeDistributorOptions {
157
+ package?: string;
158
+ arguments: RevokeDistributorArguments | [
159
+ self: RawTransactionArgument<string>,
160
+ cap: RawTransactionArgument<string>
161
+ ];
162
+ typeArguments: [
163
+ string
164
+ ];
165
+ }
166
+ /**
167
+ * Revoke distributor witness type `Distributor` for this edition. Revoking a
168
+ * missing distributor is a no-op.
169
+ */
170
+ export declare function revokeDistributor(options: RevokeDistributorOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
171
+ export interface MintArguments<Distributor extends BcsType<any>> {
172
+ self: RawTransactionArgument<string>;
173
+ Distributor: RawTransactionArgument<Distributor>;
174
+ purchasePrice: RawTransactionArgument<number | bigint>;
175
+ }
176
+ export interface MintOptions<Distributor extends BcsType<any>> {
177
+ package?: string;
178
+ arguments: MintArguments<Distributor> | [
179
+ self: RawTransactionArgument<string>,
180
+ Distributor: RawTransactionArgument<Distributor>,
181
+ purchasePrice: RawTransactionArgument<number | bigint>
182
+ ];
183
+ typeArguments: [
184
+ string,
185
+ string
186
+ ];
187
+ }
188
+ /**
189
+ * Purchase the next Record by consuming an authorized distributor witness.
190
+ *
191
+ * The Record number is allocated here and cannot be selected by the caller. The
192
+ * returned Record remains composable: the distributor decides whether to transfer,
193
+ * wrap, freeze, or otherwise deliver it.
194
+ */
195
+ export declare function mint<Distributor extends BcsType<any>>(options: MintOptions<Distributor>): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
196
+ export interface UidArguments {
197
+ self: RawTransactionArgument<string>;
198
+ }
199
+ export interface UidOptions {
200
+ package?: string;
201
+ arguments: UidArguments | [
202
+ self: RawTransactionArgument<string>
203
+ ];
204
+ }
205
+ /** Borrow the Pressing UID for read-only extensions. */
206
+ export declare function uid(options: UidOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
207
+ export interface UidMutArguments {
208
+ self: RawTransactionArgument<string>;
209
+ cap: RawTransactionArgument<string>;
210
+ }
211
+ export interface UidMutOptions {
212
+ package?: string;
213
+ arguments: UidMutArguments | [
214
+ self: RawTransactionArgument<string>,
215
+ cap: RawTransactionArgument<string>
216
+ ];
217
+ }
218
+ /**
219
+ * Mutably access the Pressing UID for cap-authorized extensions, including
220
+ * distributor-owned objects derived from this edition.
221
+ */
222
+ export declare function uidMut(options: UidMutOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
223
+ export interface ReleaseIdArguments {
224
+ self: RawTransactionArgument<string>;
225
+ }
226
+ export interface ReleaseIdOptions {
227
+ package?: string;
228
+ arguments: ReleaseIdArguments | [
229
+ self: RawTransactionArgument<string>
230
+ ];
231
+ }
232
+ /** Return the release represented by this Pressing. */
233
+ export declare function releaseId(options: ReleaseIdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
234
+ export interface EditionArguments {
235
+ self: RawTransactionArgument<string>;
236
+ }
237
+ export interface EditionOptions {
238
+ package?: string;
239
+ arguments: EditionArguments | [
240
+ self: RawTransactionArgument<string>
241
+ ];
242
+ }
243
+ /** Return this Pressing's edition number. */
244
+ export declare function edition(options: EditionOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
245
+ export interface SupplyArguments {
246
+ self: RawTransactionArgument<string>;
247
+ }
248
+ export interface SupplyOptions {
249
+ package?: string;
250
+ arguments: SupplyArguments | [
251
+ self: RawTransactionArgument<string>
252
+ ];
253
+ }
254
+ /** Return the number of Records issued by this Pressing. */
255
+ export declare function supply(options: SupplyOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
256
+ export interface MaxSupplyArguments {
257
+ self: RawTransactionArgument<string>;
258
+ }
259
+ export interface MaxSupplyOptions {
260
+ package?: string;
261
+ arguments: MaxSupplyArguments | [
262
+ self: RawTransactionArgument<string>
263
+ ];
264
+ }
265
+ /** Return the immutable supply ceiling, if one exists. */
266
+ export declare function maxSupply(options: MaxSupplyOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
267
+ export interface DistributorsArguments {
268
+ self: RawTransactionArgument<string>;
269
+ }
270
+ export interface DistributorsOptions {
271
+ package?: string;
272
+ arguments: DistributorsArguments | [
273
+ self: RawTransactionArgument<string>
274
+ ];
275
+ }
276
+ /** Borrow the defining types of all currently authorized distributors. */
277
+ export declare function distributors(options: DistributorsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
278
+ export interface IsDistributorAuthorizedArguments {
279
+ self: RawTransactionArgument<string>;
280
+ }
281
+ export interface IsDistributorAuthorizedOptions {
282
+ package?: string;
283
+ arguments: IsDistributorAuthorizedArguments | [
284
+ self: RawTransactionArgument<string>
285
+ ];
286
+ typeArguments: [
287
+ string
288
+ ];
289
+ }
290
+ /** Return whether `Distributor` is currently authorized to mint. */
291
+ export declare function isDistributorAuthorized(options: IsDistributorAuthorizedOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
292
+ export interface PressingIdArguments {
293
+ cap: RawTransactionArgument<string>;
294
+ }
295
+ export interface PressingIdOptions {
296
+ package?: string;
297
+ arguments: PressingIdArguments | [
298
+ cap: RawTransactionArgument<string>
299
+ ];
300
+ }
301
+ /** Return the Pressing controlled by this capability. */
302
+ export declare function pressingId(options: PressingIdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
303
+ export interface DeriveAddressArguments {
304
+ releaseId: RawTransactionArgument<string>;
305
+ edition: RawTransactionArgument<number>;
306
+ }
307
+ export interface DeriveAddressOptions {
308
+ package?: string;
309
+ arguments: DeriveAddressArguments | [
310
+ releaseId: RawTransactionArgument<string>,
311
+ edition: RawTransactionArgument<number>
312
+ ];
313
+ }
314
+ /** Derive an edition's Pressing address from its Release ID. */
315
+ export declare function deriveAddress(options: DeriveAddressOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
316
+ export interface DeriveAdminCapAddressArguments {
317
+ pressingId: RawTransactionArgument<string>;
318
+ }
319
+ export interface DeriveAdminCapAddressOptions {
320
+ package?: string;
321
+ arguments: DeriveAdminCapAddressArguments | [
322
+ pressingId: RawTransactionArgument<string>
323
+ ];
324
+ }
325
+ /** Derive a Pressing's admin capability address. */
326
+ export declare function deriveAdminCapAddress(options: DeriveAdminCapAddressOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
327
+ //# sourceMappingURL=pressing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pressing.d.ts","sourceRoot":"","sources":["../../../src/contracts/miso_record/pressing.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;GAQG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAA0B,KAAK,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC/G,OAAO,EAAO,KAAK,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAEpD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAI5D,eAAO,MAAM,WAAW,uGAA8E,CAAC;AACvG,eAAO,MAAM,mBAAmB,kHAAuF,CAAC;AACxH,eAAO,MAAM,QAAQ;IACb,8CAA8C;;IAE9C,sDAAsD;;IAEtD,0BAA0B;;IAE1B,qDAAqD;;IAErD,0EAA0E;;IAE1E,sEAAsE;;;;;;;;;;gDAEtE,CAAC;AACT,eAAO,MAAM,gBAAgB;IACrB,gDAAgD;;IAEhD,kDAAkD;;wDAElD,CAAC;AACT,eAAO,MAAM,oBAAoB;IACzB,kCAAkC;;IAElC,0BAA0B;;IAE1B,qCAAqC;;IAErC,mDAAmD;;4DAEnD,CAAC;AACT,eAAO,MAAM,0BAA0B;IAC/B,+BAA+B;;IAE/B,kDAAkD;;;;kEAElD,CAAC;AACT,eAAO,MAAM,uBAAuB;IAC5B,+BAA+B;;IAE/B,+CAA+C;;;;+DAE/C,CAAC;AACT,eAAO,MAAM,oBAAoB;IACzB,4BAA4B;;IAE5B,6CAA6C;;IAE7C,2CAA2C;;IAE3C,+CA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AAC,OAAO,EAAE,oBAAoB,IAO/C,IAAI,WAAW,0DAM1B;AACD,MAAM,WAAW,8BAA8B;IAC3C,UAAU,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;CAC9C;AACD,MAAM,WAAW,4BAA4B;IACzC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,8BAA8B,GAAG;QACxC,UAAU,EAAE,sBAAsB,CAAC,MAAM,CAAC;KAC7C,CAAC;CACL;AACD,oDAAoD;AACpD,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,4BAA4B,IAM/D,IAAI,WAAW,0DAM1B"}
@@ -0,0 +1,345 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ /**
5
+ * One edition of a Miso release and the complete lifecycle boundary for its
6
+ * Records.
7
+ *
8
+ * A release may have many Pressings, one at each `PressingKey(edition)`. Each
9
+ * Pressing owns an independent Record sequence, an optional immutable maximum
10
+ * supply, and the set of distributor witness types allowed to mint from that
11
+ * edition. Distributors own delivery mechanics; the Pressing owns issuance.
12
+ */
13
+ import { MoveTuple, MoveStruct, normalizeMoveArguments } from '../utils/index.js';
14
+ import { bcs } from '@mysten/sui/bcs';
15
+ import {} from '@mysten/sui/transactions';
16
+ import * as vec_set from './deps/sui/vec_set.js';
17
+ import * as type_name from './deps/std/type_name.js';
18
+ const $moduleName = '@local-pkg/miso_record::pressing';
19
+ export const PressingKey = new MoveTuple({ name: `${$moduleName}::PressingKey`, fields: [bcs.u16()] });
20
+ export const PressingAdminCapKey = new MoveTuple({ name: `${$moduleName}::PressingAdminCapKey`, fields: [bcs.bool()] });
21
+ export const Pressing = new MoveStruct({ name: `${$moduleName}::Pressing`, fields: {
22
+ /** The Pressing's derived object identity. */
23
+ id: bcs.Address,
24
+ /** The parent release represented by this edition. */
25
+ release_id: bcs.Address,
26
+ /** The edition number. */
27
+ edition: bcs.u16(),
28
+ /** The number of Records issued by this Pressing. */
29
+ supply: bcs.u32(),
30
+ /** The immutable supply ceiling, or `none()` for an uncapped Pressing. */
31
+ max_supply: bcs.option(bcs.u32()),
32
+ /** The defining types of distributors currently permitted to mint. */
33
+ distributors: vec_set.VecSet(type_name.TypeName)
34
+ } });
35
+ export const PressingAdminCap = new MoveStruct({ name: `${$moduleName}::PressingAdminCap`, fields: {
36
+ /** The capability's derived object identity. */
37
+ id: bcs.Address,
38
+ /** The Pressing controlled by this capability. */
39
+ pressing_id: bcs.Address
40
+ } });
41
+ export const PressingCreatedEvent = new MoveStruct({ name: `${$moduleName}::PressingCreatedEvent`, fields: {
42
+ /** The newly created Pressing. */
43
+ pressing_id: bcs.Address,
44
+ /** The parent release. */
45
+ release_id: bcs.Address,
46
+ /** The Pressing's edition number. */
47
+ edition: bcs.u16(),
48
+ /** The immutable supply ceiling, if one exists. */
49
+ max_supply: bcs.option(bcs.u32())
50
+ } });
51
+ export const DistributorAuthorizedEvent = new MoveStruct({ name: `${$moduleName}::DistributorAuthorizedEvent`, fields: {
52
+ /** The configured Pressing. */
53
+ pressing_id: bcs.Address,
54
+ /** The authorized distributor's defining type. */
55
+ distributor: type_name.TypeName
56
+ } });
57
+ export const DistributorRevokedEvent = new MoveStruct({ name: `${$moduleName}::DistributorRevokedEvent`, fields: {
58
+ /** The configured Pressing. */
59
+ pressing_id: bcs.Address,
60
+ /** The revoked distributor's defining type. */
61
+ distributor: type_name.TypeName
62
+ } });
63
+ export const RecordPurchasedEvent = new MoveStruct({ name: `${$moduleName}::RecordPurchasedEvent`, fields: {
64
+ /** The purchased Record. */
65
+ record_id: bcs.Address,
66
+ /** The release represented by the Record. */
67
+ release_id: bcs.Address,
68
+ /** The Pressing that issued the Record. */
69
+ pressing_id: bcs.Address,
70
+ /** The edition represented by the Pressing. */
71
+ edition: bcs.u16(),
72
+ /** The Record's number within its edition. */
73
+ number: bcs.u32(),
74
+ /** The defining type of the purchase currency. */
75
+ purchase_currency: type_name.TypeName,
76
+ /** The amount paid for the Record. */
77
+ purchase_price: bcs.u64(),
78
+ /** The transaction sender who purchased the Record. */
79
+ purchased_by: bcs.Address,
80
+ /** The purchase time in Unix milliseconds from Sui's Clock. */
81
+ purchased_timestamp_ms: bcs.u64(),
82
+ /** The defining type of the distributor that authorized the mint. */
83
+ distributor: type_name.TypeName
84
+ } });
85
+ /**
86
+ * Create one edition's Pressing under its Release.
87
+ *
88
+ * `max_supply = none()` creates an uncapped edition; `some(quantity)` creates a
89
+ * permanently capped edition. The Pressing and its admin capability are returned
90
+ * for composition before the caller shares the Pressing and custodies the
91
+ * capability.
92
+ */
93
+ export function _new(options) {
94
+ const packageAddress = options.package ?? '@local-pkg/miso_record';
95
+ const argumentsTypes = [
96
+ null,
97
+ null,
98
+ 'u16',
99
+ '0x1::option::Option<u32>'
100
+ ];
101
+ const parameterNames = ["release", "releaseCap", "edition", "maxSupply"];
102
+ return (tx) => tx.moveCall({
103
+ package: packageAddress,
104
+ module: 'pressing',
105
+ function: 'new',
106
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
107
+ });
108
+ }
109
+ /** Share a newly created Pressing after configuring its distributors. */
110
+ export function share(options) {
111
+ const packageAddress = options.package ?? '@local-pkg/miso_record';
112
+ const argumentsTypes = [
113
+ null
114
+ ];
115
+ const parameterNames = ["self"];
116
+ return (tx) => tx.moveCall({
117
+ package: packageAddress,
118
+ module: 'pressing',
119
+ function: 'share',
120
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
121
+ });
122
+ }
123
+ /**
124
+ * Authorize distributor witness type `Distributor` for this edition. Reauthorizing
125
+ * an existing distributor is a no-op.
126
+ */
127
+ export function authorizeDistributor(options) {
128
+ const packageAddress = options.package ?? '@local-pkg/miso_record';
129
+ const argumentsTypes = [
130
+ null,
131
+ null
132
+ ];
133
+ const parameterNames = ["self", "cap"];
134
+ return (tx) => tx.moveCall({
135
+ package: packageAddress,
136
+ module: 'pressing',
137
+ function: 'authorize_distributor',
138
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
139
+ typeArguments: options.typeArguments
140
+ });
141
+ }
142
+ /**
143
+ * Revoke distributor witness type `Distributor` for this edition. Revoking a
144
+ * missing distributor is a no-op.
145
+ */
146
+ export function revokeDistributor(options) {
147
+ const packageAddress = options.package ?? '@local-pkg/miso_record';
148
+ const argumentsTypes = [
149
+ null,
150
+ null
151
+ ];
152
+ const parameterNames = ["self", "cap"];
153
+ return (tx) => tx.moveCall({
154
+ package: packageAddress,
155
+ module: 'pressing',
156
+ function: 'revoke_distributor',
157
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
158
+ typeArguments: options.typeArguments
159
+ });
160
+ }
161
+ /**
162
+ * Purchase the next Record by consuming an authorized distributor witness.
163
+ *
164
+ * The Record number is allocated here and cannot be selected by the caller. The
165
+ * returned Record remains composable: the distributor decides whether to transfer,
166
+ * wrap, freeze, or otherwise deliver it.
167
+ */
168
+ export function mint(options) {
169
+ const packageAddress = options.package ?? '@local-pkg/miso_record';
170
+ const argumentsTypes = [
171
+ null,
172
+ `${options.typeArguments[0]}`,
173
+ 'u64',
174
+ '0x2::clock::Clock'
175
+ ];
176
+ const parameterNames = ["self", "Distributor", "purchasePrice"];
177
+ return (tx) => tx.moveCall({
178
+ package: packageAddress,
179
+ module: 'pressing',
180
+ function: 'mint',
181
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
182
+ typeArguments: options.typeArguments
183
+ });
184
+ }
185
+ /** Borrow the Pressing UID for read-only extensions. */
186
+ export function uid(options) {
187
+ const packageAddress = options.package ?? '@local-pkg/miso_record';
188
+ const argumentsTypes = [
189
+ null
190
+ ];
191
+ const parameterNames = ["self"];
192
+ return (tx) => tx.moveCall({
193
+ package: packageAddress,
194
+ module: 'pressing',
195
+ function: 'uid',
196
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
197
+ });
198
+ }
199
+ /**
200
+ * Mutably access the Pressing UID for cap-authorized extensions, including
201
+ * distributor-owned objects derived from this edition.
202
+ */
203
+ export function uidMut(options) {
204
+ const packageAddress = options.package ?? '@local-pkg/miso_record';
205
+ const argumentsTypes = [
206
+ null,
207
+ null
208
+ ];
209
+ const parameterNames = ["self", "cap"];
210
+ return (tx) => tx.moveCall({
211
+ package: packageAddress,
212
+ module: 'pressing',
213
+ function: 'uid_mut',
214
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
215
+ });
216
+ }
217
+ /** Return the release represented by this Pressing. */
218
+ export function releaseId(options) {
219
+ const packageAddress = options.package ?? '@local-pkg/miso_record';
220
+ const argumentsTypes = [
221
+ null
222
+ ];
223
+ const parameterNames = ["self"];
224
+ return (tx) => tx.moveCall({
225
+ package: packageAddress,
226
+ module: 'pressing',
227
+ function: 'release_id',
228
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
229
+ });
230
+ }
231
+ /** Return this Pressing's edition number. */
232
+ export function edition(options) {
233
+ const packageAddress = options.package ?? '@local-pkg/miso_record';
234
+ const argumentsTypes = [
235
+ null
236
+ ];
237
+ const parameterNames = ["self"];
238
+ return (tx) => tx.moveCall({
239
+ package: packageAddress,
240
+ module: 'pressing',
241
+ function: 'edition',
242
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
243
+ });
244
+ }
245
+ /** Return the number of Records issued by this Pressing. */
246
+ export function supply(options) {
247
+ const packageAddress = options.package ?? '@local-pkg/miso_record';
248
+ const argumentsTypes = [
249
+ null
250
+ ];
251
+ const parameterNames = ["self"];
252
+ return (tx) => tx.moveCall({
253
+ package: packageAddress,
254
+ module: 'pressing',
255
+ function: 'supply',
256
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
257
+ });
258
+ }
259
+ /** Return the immutable supply ceiling, if one exists. */
260
+ export function maxSupply(options) {
261
+ const packageAddress = options.package ?? '@local-pkg/miso_record';
262
+ const argumentsTypes = [
263
+ null
264
+ ];
265
+ const parameterNames = ["self"];
266
+ return (tx) => tx.moveCall({
267
+ package: packageAddress,
268
+ module: 'pressing',
269
+ function: 'max_supply',
270
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
271
+ });
272
+ }
273
+ /** Borrow the defining types of all currently authorized distributors. */
274
+ export function distributors(options) {
275
+ const packageAddress = options.package ?? '@local-pkg/miso_record';
276
+ const argumentsTypes = [
277
+ null
278
+ ];
279
+ const parameterNames = ["self"];
280
+ return (tx) => tx.moveCall({
281
+ package: packageAddress,
282
+ module: 'pressing',
283
+ function: 'distributors',
284
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
285
+ });
286
+ }
287
+ /** Return whether `Distributor` is currently authorized to mint. */
288
+ export function isDistributorAuthorized(options) {
289
+ const packageAddress = options.package ?? '@local-pkg/miso_record';
290
+ const argumentsTypes = [
291
+ null
292
+ ];
293
+ const parameterNames = ["self"];
294
+ return (tx) => tx.moveCall({
295
+ package: packageAddress,
296
+ module: 'pressing',
297
+ function: 'is_distributor_authorized',
298
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
299
+ typeArguments: options.typeArguments
300
+ });
301
+ }
302
+ /** Return the Pressing controlled by this capability. */
303
+ export function pressingId(options) {
304
+ const packageAddress = options.package ?? '@local-pkg/miso_record';
305
+ const argumentsTypes = [
306
+ null
307
+ ];
308
+ const parameterNames = ["cap"];
309
+ return (tx) => tx.moveCall({
310
+ package: packageAddress,
311
+ module: 'pressing',
312
+ function: 'pressing_id',
313
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
314
+ });
315
+ }
316
+ /** Derive an edition's Pressing address from its Release ID. */
317
+ export function deriveAddress(options) {
318
+ const packageAddress = options.package ?? '@local-pkg/miso_record';
319
+ const argumentsTypes = [
320
+ '0x2::object::ID',
321
+ 'u16'
322
+ ];
323
+ const parameterNames = ["releaseId", "edition"];
324
+ return (tx) => tx.moveCall({
325
+ package: packageAddress,
326
+ module: 'pressing',
327
+ function: 'derive_address',
328
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
329
+ });
330
+ }
331
+ /** Derive a Pressing's admin capability address. */
332
+ export function deriveAdminCapAddress(options) {
333
+ const packageAddress = options.package ?? '@local-pkg/miso_record';
334
+ const argumentsTypes = [
335
+ '0x2::object::ID'
336
+ ];
337
+ const parameterNames = ["pressingId"];
338
+ return (tx) => tx.moveCall({
339
+ package: packageAddress,
340
+ module: 'pressing',
341
+ function: 'derive_admin_cap_address',
342
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
343
+ });
344
+ }
345
+ //# sourceMappingURL=pressing.js.map