@misonetwork/sdk 0.6.0 → 0.8.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 (296) hide show
  1. package/README.md +181 -124
  2. package/dist/client.d.ts +1229 -15
  3. package/dist/client.d.ts.map +1 -1
  4. package/dist/client.js +43 -21
  5. package/dist/client.js.map +1 -1
  6. package/dist/contracts/composition_credits/composition_credits.d.ts +181 -0
  7. package/dist/contracts/composition_credits/composition_credits.d.ts.map +1 -0
  8. package/dist/contracts/composition_credits/composition_credits.js +109 -0
  9. package/dist/contracts/composition_credits/composition_credits.js.map +1 -0
  10. package/dist/contracts/composition_credits/composition_party_role.d.ts +119 -0
  11. package/dist/contracts/composition_credits/composition_party_role.d.ts.map +1 -0
  12. package/dist/contracts/composition_credits/composition_party_role.js +139 -0
  13. package/dist/contracts/composition_credits/composition_party_role.js.map +1 -0
  14. package/dist/contracts/composition_credits/deps/miso_credit/credit.d.ts +24 -0
  15. package/dist/contracts/composition_credits/deps/miso_credit/credit.d.ts.map +1 -0
  16. package/dist/contracts/composition_credits/deps/miso_credit/credit.js +23 -0
  17. package/dist/contracts/composition_credits/deps/miso_credit/credit.js.map +1 -0
  18. package/dist/contracts/composition_credits/deps/sui/vec_map.d.ts +37 -0
  19. package/dist/contracts/composition_credits/deps/sui/vec_map.d.ts.map +1 -0
  20. package/dist/contracts/composition_credits/deps/sui/vec_map.js +28 -0
  21. package/dist/contracts/composition_credits/deps/sui/vec_map.js.map +1 -0
  22. package/dist/contracts/miso/composition.d.ts +17 -39
  23. package/dist/contracts/miso/composition.d.ts.map +1 -1
  24. package/dist/contracts/miso/composition.js +18 -39
  25. package/dist/contracts/miso/composition.js.map +1 -1
  26. package/dist/contracts/miso/deps/bps/bps.d.ts +1 -1
  27. package/dist/contracts/miso/deps/bps/bps.js +1 -1
  28. package/dist/contracts/miso/recording.d.ts +44 -19
  29. package/dist/contracts/miso/recording.d.ts.map +1 -1
  30. package/dist/contracts/miso/recording.js +46 -20
  31. package/dist/contracts/miso/recording.js.map +1 -1
  32. package/dist/contracts/miso/release.d.ts +63 -37
  33. package/dist/contracts/miso/release.d.ts.map +1 -1
  34. package/dist/contracts/miso/release.js +65 -38
  35. package/dist/contracts/miso/release.js.map +1 -1
  36. package/dist/contracts/miso/track.d.ts +41 -10
  37. package/dist/contracts/miso/track.d.ts.map +1 -1
  38. package/dist/contracts/miso/track.js +44 -10
  39. package/dist/contracts/miso/track.js.map +1 -1
  40. package/dist/contracts/recording_advisory/recording_advisory.d.ts +194 -0
  41. package/dist/contracts/recording_advisory/recording_advisory.d.ts.map +1 -0
  42. package/dist/contracts/recording_advisory/recording_advisory.js +204 -0
  43. package/dist/contracts/recording_advisory/recording_advisory.js.map +1 -0
  44. package/dist/contracts/recording_credits/deps/miso_credit/credit.d.ts +24 -0
  45. package/dist/contracts/recording_credits/deps/miso_credit/credit.d.ts.map +1 -0
  46. package/dist/contracts/recording_credits/deps/miso_credit/credit.js +23 -0
  47. package/dist/contracts/recording_credits/deps/miso_credit/credit.js.map +1 -0
  48. package/dist/contracts/recording_credits/deps/sui/vec_map.d.ts +37 -0
  49. package/dist/contracts/recording_credits/deps/sui/vec_map.d.ts.map +1 -0
  50. package/dist/contracts/recording_credits/deps/sui/vec_map.js +28 -0
  51. package/dist/contracts/recording_credits/deps/sui/vec_map.js.map +1 -0
  52. package/dist/contracts/recording_credits/deps/sui/vec_set.d.ts +21 -0
  53. package/dist/contracts/recording_credits/deps/sui/vec_set.d.ts.map +1 -0
  54. package/dist/contracts/recording_credits/deps/sui/vec_set.js +20 -0
  55. package/dist/contracts/recording_credits/deps/sui/vec_set.js.map +1 -0
  56. package/dist/contracts/recording_credits/recording_credits.d.ts +2313 -0
  57. package/dist/contracts/recording_credits/recording_credits.d.ts.map +1 -0
  58. package/dist/contracts/recording_credits/recording_credits.js +270 -0
  59. package/dist/contracts/recording_credits/recording_credits.js.map +1 -0
  60. package/dist/contracts/recording_credits/recording_party_role.d.ts +1174 -0
  61. package/dist/contracts/recording_credits/recording_party_role.d.ts.map +1 -0
  62. package/dist/contracts/recording_credits/recording_party_role.js +692 -0
  63. package/dist/contracts/recording_credits/recording_party_role.js.map +1 -0
  64. package/dist/contracts/recording_language/deps/language_code/language_code.d.ts +6 -0
  65. package/dist/contracts/recording_language/deps/language_code/language_code.d.ts.map +1 -0
  66. package/dist/contracts/recording_language/deps/language_code/language_code.js +8 -0
  67. package/dist/contracts/recording_language/deps/language_code/language_code.js.map +1 -0
  68. package/dist/contracts/recording_language/recording_language.d.ts +152 -0
  69. package/dist/contracts/recording_language/recording_language.d.ts.map +1 -0
  70. package/dist/contracts/recording_language/recording_language.js +149 -0
  71. package/dist/contracts/recording_language/recording_language.js.map +1 -0
  72. package/dist/contracts/recording_master_reference/deps/ori/walrus_data.d.ts +52 -0
  73. package/dist/contracts/recording_master_reference/deps/ori/walrus_data.d.ts.map +1 -0
  74. package/dist/contracts/recording_master_reference/deps/ori/walrus_data.js +37 -0
  75. package/dist/contracts/recording_master_reference/deps/ori/walrus_data.js.map +1 -0
  76. package/dist/contracts/recording_master_reference/recording_master_reference.d.ts +131 -0
  77. package/dist/contracts/recording_master_reference/recording_master_reference.d.ts.map +1 -0
  78. package/dist/contracts/recording_master_reference/recording_master_reference.js +121 -0
  79. package/dist/contracts/recording_master_reference/recording_master_reference.js.map +1 -0
  80. package/dist/contracts/recording_preview/deps/ori/walrus_data.d.ts +52 -0
  81. package/dist/contracts/recording_preview/deps/ori/walrus_data.d.ts.map +1 -0
  82. package/dist/contracts/recording_preview/deps/ori/walrus_data.js +37 -0
  83. package/dist/contracts/recording_preview/deps/ori/walrus_data.js.map +1 -0
  84. package/dist/contracts/recording_preview/recording_preview.d.ts +104 -0
  85. package/dist/contracts/recording_preview/recording_preview.d.ts.map +1 -0
  86. package/dist/contracts/recording_preview/recording_preview.js +94 -0
  87. package/dist/contracts/recording_preview/recording_preview.js.map +1 -0
  88. package/dist/contracts/release_cover_art/deps/0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78/walrus_data.d.ts +52 -0
  89. package/dist/contracts/release_cover_art/deps/0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78/walrus_data.d.ts.map +1 -0
  90. package/dist/contracts/release_cover_art/deps/0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78/walrus_data.js +37 -0
  91. package/dist/contracts/release_cover_art/deps/0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78/walrus_data.js.map +1 -0
  92. package/dist/contracts/release_cover_art/deps/cover_art/cover_art.d.ts +46 -0
  93. package/dist/contracts/release_cover_art/deps/cover_art/cover_art.d.ts.map +1 -0
  94. package/dist/contracts/release_cover_art/deps/cover_art/cover_art.js +21 -0
  95. package/dist/contracts/release_cover_art/deps/cover_art/cover_art.js.map +1 -0
  96. package/dist/contracts/release_cover_art/deps/per_track/per_track.d.ts +33 -0
  97. package/dist/contracts/release_cover_art/deps/per_track/per_track.d.ts.map +1 -0
  98. package/dist/contracts/release_cover_art/deps/per_track/per_track.js +32 -0
  99. package/dist/contracts/release_cover_art/deps/per_track/per_track.js.map +1 -0
  100. package/dist/contracts/release_cover_art/release_cover_art.d.ts +300 -0
  101. package/dist/contracts/release_cover_art/release_cover_art.d.ts.map +1 -0
  102. package/dist/contracts/release_cover_art/release_cover_art.js +168 -0
  103. package/dist/contracts/release_cover_art/release_cover_art.js.map +1 -0
  104. package/dist/contracts/release_credits/deps/miso_credit/credit.d.ts +24 -0
  105. package/dist/contracts/release_credits/deps/miso_credit/credit.d.ts.map +1 -0
  106. package/dist/contracts/release_credits/deps/miso_credit/credit.js +23 -0
  107. package/dist/contracts/release_credits/deps/miso_credit/credit.js.map +1 -0
  108. package/dist/contracts/release_credits/deps/sui/vec_map.d.ts +37 -0
  109. package/dist/contracts/release_credits/deps/sui/vec_map.d.ts.map +1 -0
  110. package/dist/contracts/release_credits/deps/sui/vec_map.js +28 -0
  111. package/dist/contracts/release_credits/deps/sui/vec_map.js.map +1 -0
  112. package/dist/contracts/release_credits/release_credits.d.ts +142 -0
  113. package/dist/contracts/release_credits/release_credits.d.ts.map +1 -0
  114. package/dist/contracts/release_credits/release_credits.js +108 -0
  115. package/dist/contracts/release_credits/release_credits.js.map +1 -0
  116. package/dist/contracts/release_credits/release_party_role.d.ts +58 -0
  117. package/dist/contracts/release_credits/release_party_role.d.ts.map +1 -0
  118. package/dist/contracts/release_credits/release_party_role.js +66 -0
  119. package/dist/contracts/release_credits/release_party_role.js.map +1 -0
  120. package/dist/contracts/release_description/release_description.d.ts +112 -0
  121. package/dist/contracts/release_description/release_description.d.ts.map +1 -0
  122. package/dist/contracts/release_description/release_description.js +123 -0
  123. package/dist/contracts/release_description/release_description.js.map +1 -0
  124. package/dist/contracts/release_dsp_link/release_dsp_link.d.ts +644 -0
  125. package/dist/contracts/release_dsp_link/release_dsp_link.d.ts.map +1 -0
  126. package/dist/contracts/release_dsp_link/release_dsp_link.js +556 -0
  127. package/dist/contracts/release_dsp_link/release_dsp_link.js.map +1 -0
  128. package/dist/contracts/release_genre/deps/per_track/per_track.d.ts +33 -0
  129. package/dist/contracts/release_genre/deps/per_track/per_track.d.ts.map +1 -0
  130. package/dist/contracts/release_genre/deps/per_track/per_track.js +32 -0
  131. package/dist/contracts/release_genre/deps/per_track/per_track.js.map +1 -0
  132. package/dist/contracts/release_genre/release_genre.d.ts +193 -0
  133. package/dist/contracts/release_genre/release_genre.d.ts.map +1 -0
  134. package/dist/contracts/release_genre/release_genre.js +207 -0
  135. package/dist/contracts/release_genre/release_genre.js.map +1 -0
  136. package/dist/contracts/release_kind/release_kind.d.ts +98 -0
  137. package/dist/contracts/release_kind/release_kind.d.ts.map +1 -0
  138. package/dist/contracts/release_kind/release_kind.js +109 -0
  139. package/dist/contracts/release_kind/release_kind.js.map +1 -0
  140. package/dist/contracts/release_snapshot_bundle/deps/ori/walrus_data.d.ts +52 -0
  141. package/dist/contracts/release_snapshot_bundle/deps/ori/walrus_data.d.ts.map +1 -0
  142. package/dist/contracts/release_snapshot_bundle/deps/ori/walrus_data.js +37 -0
  143. package/dist/contracts/release_snapshot_bundle/deps/ori/walrus_data.js.map +1 -0
  144. package/dist/contracts/release_snapshot_bundle/release_snapshot_bundle.d.ts +91 -0
  145. package/dist/contracts/release_snapshot_bundle/release_snapshot_bundle.d.ts.map +1 -0
  146. package/dist/contracts/release_snapshot_bundle/release_snapshot_bundle.js +91 -0
  147. package/dist/contracts/release_snapshot_bundle/release_snapshot_bundle.js.map +1 -0
  148. package/dist/contracts/routed_stake/deps/royalty_pool/stake.d.ts +54 -0
  149. package/dist/contracts/routed_stake/deps/royalty_pool/stake.d.ts.map +1 -0
  150. package/dist/contracts/routed_stake/deps/royalty_pool/stake.js +37 -0
  151. package/dist/contracts/routed_stake/deps/royalty_pool/stake.js.map +1 -0
  152. package/dist/contracts/routed_stake/deps/std/type_name.d.ts +18 -0
  153. package/dist/contracts/routed_stake/deps/std/type_name.d.ts.map +1 -0
  154. package/dist/contracts/routed_stake/deps/std/type_name.js +20 -0
  155. package/dist/contracts/routed_stake/deps/std/type_name.js.map +1 -0
  156. package/dist/contracts/routed_stake/deps/sui/balance.d.ts +13 -0
  157. package/dist/contracts/routed_stake/deps/sui/balance.d.ts.map +1 -0
  158. package/dist/contracts/routed_stake/deps/sui/balance.js +15 -0
  159. package/dist/contracts/routed_stake/deps/sui/balance.js.map +1 -0
  160. package/dist/contracts/routed_stake/deps/sui/vec_map.d.ts +37 -0
  161. package/dist/contracts/routed_stake/deps/sui/vec_map.d.ts.map +1 -0
  162. package/dist/contracts/routed_stake/deps/sui/vec_map.js +28 -0
  163. package/dist/contracts/routed_stake/deps/sui/vec_map.js.map +1 -0
  164. package/dist/contracts/routed_stake/routed_stake.d.ts +356 -0
  165. package/dist/contracts/routed_stake/routed_stake.d.ts.map +1 -0
  166. package/dist/contracts/routed_stake/routed_stake.js +311 -0
  167. package/dist/contracts/routed_stake/routed_stake.js.map +1 -0
  168. package/dist/contracts/royalty_pool/deps/std/type_name.d.ts +18 -0
  169. package/dist/contracts/royalty_pool/deps/std/type_name.d.ts.map +1 -0
  170. package/dist/contracts/royalty_pool/deps/std/type_name.js +20 -0
  171. package/dist/contracts/royalty_pool/deps/std/type_name.js.map +1 -0
  172. package/dist/contracts/royalty_pool/deps/sui/balance.d.ts +13 -0
  173. package/dist/contracts/royalty_pool/deps/sui/balance.d.ts.map +1 -0
  174. package/dist/contracts/royalty_pool/deps/sui/balance.js +15 -0
  175. package/dist/contracts/royalty_pool/deps/sui/balance.js.map +1 -0
  176. package/dist/contracts/royalty_pool/deps/sui/vec_map.d.ts +37 -0
  177. package/dist/contracts/royalty_pool/deps/sui/vec_map.d.ts.map +1 -0
  178. package/dist/contracts/royalty_pool/deps/sui/vec_map.js +28 -0
  179. package/dist/contracts/royalty_pool/deps/sui/vec_map.js.map +1 -0
  180. package/dist/contracts/royalty_pool/pool.d.ts +394 -0
  181. package/dist/contracts/royalty_pool/pool.d.ts.map +1 -0
  182. package/dist/contracts/royalty_pool/pool.js +387 -0
  183. package/dist/contracts/royalty_pool/pool.js.map +1 -0
  184. package/dist/contracts/royalty_pool/stake.d.ts +202 -0
  185. package/dist/contracts/royalty_pool/stake.d.ts.map +1 -0
  186. package/dist/contracts/royalty_pool/stake.js +197 -0
  187. package/dist/contracts/royalty_pool/stake.js.map +1 -0
  188. package/dist/contracts.d.ts +37 -3
  189. package/dist/contracts.d.ts.map +1 -1
  190. package/dist/contracts.js +42 -8
  191. package/dist/contracts.js.map +1 -1
  192. package/dist/deployments.d.ts +46 -12
  193. package/dist/deployments.d.ts.map +1 -1
  194. package/dist/deployments.js +119 -11
  195. package/dist/deployments.js.map +1 -1
  196. package/dist/events.d.ts +1081 -0
  197. package/dist/events.d.ts.map +1 -0
  198. package/dist/events.js +124 -0
  199. package/dist/events.js.map +1 -0
  200. package/dist/execute.d.ts.map +1 -1
  201. package/dist/execute.js +0 -4
  202. package/dist/execute.js.map +1 -1
  203. package/dist/index.d.ts +3 -0
  204. package/dist/index.d.ts.map +1 -1
  205. package/dist/index.js +6 -3
  206. package/dist/index.js.map +1 -1
  207. package/dist/internal.d.ts.map +1 -1
  208. package/dist/internal.js +2 -0
  209. package/dist/internal.js.map +1 -1
  210. package/dist/numeric.d.ts +5 -0
  211. package/dist/numeric.d.ts.map +1 -0
  212. package/dist/numeric.js +21 -0
  213. package/dist/numeric.js.map +1 -0
  214. package/dist/packages.d.ts +159 -0
  215. package/dist/packages.d.ts.map +1 -0
  216. package/dist/packages.js +179 -0
  217. package/dist/packages.js.map +1 -0
  218. package/dist/parsers.d.ts +5 -2
  219. package/dist/parsers.d.ts.map +1 -1
  220. package/dist/parsers.js +19 -7
  221. package/dist/parsers.js.map +1 -1
  222. package/dist/queries.d.ts +92 -0
  223. package/dist/queries.d.ts.map +1 -1
  224. package/dist/queries.js +132 -23
  225. package/dist/queries.js.map +1 -1
  226. package/dist/transactions.d.ts +96 -12
  227. package/dist/transactions.d.ts.map +1 -1
  228. package/dist/transactions.js +124 -14
  229. package/dist/transactions.js.map +1 -1
  230. package/dist/types.d.ts +35 -8
  231. package/dist/types.d.ts.map +1 -1
  232. package/dist/view.d.ts +6 -5
  233. package/dist/view.d.ts.map +1 -1
  234. package/dist/view.js +8 -2
  235. package/dist/view.js.map +1 -1
  236. package/package.json +14 -4
  237. package/src/client.ts +57 -25
  238. package/src/contracts/composition_credits/composition_credits.ts +169 -0
  239. package/src/contracts/composition_credits/composition_party_role.ts +189 -0
  240. package/src/contracts/composition_credits/deps/miso_credit/credit.ts +27 -0
  241. package/src/contracts/composition_credits/deps/sui/vec_map.ts +33 -0
  242. package/src/contracts/miso/composition.ts +24 -61
  243. package/src/contracts/miso/deps/bps/bps.ts +3 -3
  244. package/src/contracts/miso/recording.ts +69 -32
  245. package/src/contracts/miso/release.ts +103 -67
  246. package/src/contracts/miso/track.ts +56 -13
  247. package/src/contracts/recording_advisory/recording_advisory.ts +315 -0
  248. package/src/contracts/recording_credits/deps/miso_credit/credit.ts +27 -0
  249. package/src/contracts/recording_credits/deps/sui/vec_map.ts +33 -0
  250. package/src/contracts/recording_credits/deps/sui/vec_set.ts +21 -0
  251. package/src/contracts/recording_credits/recording_credits.ts +458 -0
  252. package/src/contracts/recording_credits/recording_party_role.ts +1041 -0
  253. package/src/contracts/recording_language/deps/language_code/language_code.ts +7 -0
  254. package/src/contracts/recording_language/recording_language.ts +237 -0
  255. package/src/contracts/recording_master_reference/deps/ori/walrus_data.ts +36 -0
  256. package/src/contracts/recording_master_reference/recording_master_reference.ts +181 -0
  257. package/src/contracts/recording_preview/deps/ori/walrus_data.ts +36 -0
  258. package/src/contracts/recording_preview/recording_preview.ts +154 -0
  259. package/src/contracts/release_cover_art/deps/0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78/walrus_data.ts +36 -0
  260. package/src/contracts/release_cover_art/deps/cover_art/cover_art.ts +23 -0
  261. package/src/contracts/release_cover_art/deps/per_track/per_track.ts +36 -0
  262. package/src/contracts/release_cover_art/release_cover_art.ts +251 -0
  263. package/src/contracts/release_credits/deps/miso_credit/credit.ts +27 -0
  264. package/src/contracts/release_credits/deps/sui/vec_map.ts +33 -0
  265. package/src/contracts/release_credits/release_credits.ts +156 -0
  266. package/src/contracts/release_credits/release_party_role.ts +87 -0
  267. package/src/contracts/release_description/release_description.ts +167 -0
  268. package/src/contracts/release_dsp_link/release_dsp_link.ts +813 -0
  269. package/src/contracts/release_genre/deps/per_track/per_track.ts +36 -0
  270. package/src/contracts/release_genre/release_genre.ts +314 -0
  271. package/src/contracts/release_kind/release_kind.ts +153 -0
  272. package/src/contracts/release_snapshot_bundle/deps/ori/walrus_data.ts +36 -0
  273. package/src/contracts/release_snapshot_bundle/release_snapshot_bundle.ts +124 -0
  274. package/src/contracts/routed_stake/deps/royalty_pool/stake.ts +39 -0
  275. package/src/contracts/routed_stake/deps/std/type_name.ts +22 -0
  276. package/src/contracts/routed_stake/deps/sui/balance.ts +17 -0
  277. package/src/contracts/routed_stake/deps/sui/vec_map.ts +33 -0
  278. package/src/contracts/routed_stake/routed_stake.ts +508 -0
  279. package/src/contracts/royalty_pool/deps/std/type_name.ts +22 -0
  280. package/src/contracts/royalty_pool/deps/sui/balance.ts +17 -0
  281. package/src/contracts/royalty_pool/deps/sui/vec_map.ts +33 -0
  282. package/src/contracts/royalty_pool/pool.ts +613 -0
  283. package/src/contracts/royalty_pool/stake.ts +317 -0
  284. package/src/contracts.ts +59 -6
  285. package/src/deployments.ts +160 -22
  286. package/src/events.ts +129 -0
  287. package/src/execute.ts +0 -4
  288. package/src/index.ts +6 -3
  289. package/src/internal.ts +2 -4
  290. package/src/numeric.ts +25 -0
  291. package/src/packages.ts +251 -0
  292. package/src/parsers.ts +32 -11
  293. package/src/queries.ts +227 -25
  294. package/src/transactions.ts +255 -23
  295. package/src/types.ts +37 -9
  296. package/src/view.ts +12 -6
@@ -0,0 +1,139 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ /**
5
+ * Defines the roles that parties can hold on a composition. Compositions are the
6
+ * underlying musical works (melody + lyrics), and these roles represent the
7
+ * writing and adaptation contributions to them.
8
+ *
9
+ * ### Design
10
+ *
11
+ * `CompositionPartyRole` is a closed enum: variants can only be constructed and
12
+ * matched inside this module, so the `new_*_role` constructors are the external
13
+ * write-API and `name()` is the external read-API.
14
+ *
15
+ * - **No seniority axis.** Unlike recording roles, composition roles carry no
16
+ * level — a writer either contributed in a given capacity or did not.
17
+ * - **`Custom` is the escape hatch.** The canonical variants cover the common
18
+ * writing vocabulary; anything outside it is a `Custom(name)` whose name is
19
+ * validated. Prefer a canonical variant when one fits.
20
+ * - **`name()` is the canonical identifier**, returned as a stable PascalCase
21
+ * token (e.g. `"Songwriter"`). For `Custom`, `name()` returns the user-supplied
22
+ * string.
23
+ *
24
+ * These identifiers are Miso's own canonical vocabulary; any overlap with an
25
+ * external standard (e.g. DDEX) is coincidental, not a reproduction of it.
26
+ */
27
+ import { MoveEnum, normalizeMoveArguments } from "../utils/index.js";
28
+ import { bcs } from '@mysten/sui/bcs';
29
+ import {} from '@mysten/sui/transactions';
30
+ const $moduleName = '@local-pkg/composition_credits::composition_party_role';
31
+ /** Represents a party's role on a composition. */
32
+ export const CompositionPartyRole = new MoveEnum({ name: `${$moduleName}::CompositionPartyRole`, fields: {
33
+ /** Adapted an existing work into this composition. */
34
+ Adapter: null,
35
+ /** Arranged the musical parts of the composition. */
36
+ Arranger: null,
37
+ /** Composed the music of the composition. */
38
+ Composer: null,
39
+ /** Wrote the lyrics of the composition. */
40
+ Lyricist: null,
41
+ /** Wrote both music and lyrics of the composition. */
42
+ Songwriter: null,
43
+ /** Translated the lyrics of the composition. */
44
+ Translator: null,
45
+ /**
46
+ * A user-defined role not covered by a canonical variant. Carries the role name
47
+ * (validated). An escape hatch — prefer a canonical variant when one fits.
48
+ */
49
+ Custom: bcs.string()
50
+ } });
51
+ /** Creates a new Adapter role. */
52
+ export function newAdapterRole(options = {}) {
53
+ const packageAddress = options.package ?? '@local-pkg/composition_credits';
54
+ return (tx) => tx.moveCall({
55
+ package: packageAddress,
56
+ module: 'composition_party_role',
57
+ function: 'new_adapter_role',
58
+ });
59
+ }
60
+ /** Creates a new Arranger role. */
61
+ export function newArrangerRole(options = {}) {
62
+ const packageAddress = options.package ?? '@local-pkg/composition_credits';
63
+ return (tx) => tx.moveCall({
64
+ package: packageAddress,
65
+ module: 'composition_party_role',
66
+ function: 'new_arranger_role',
67
+ });
68
+ }
69
+ /** Creates a new Composer role. */
70
+ export function newComposerRole(options = {}) {
71
+ const packageAddress = options.package ?? '@local-pkg/composition_credits';
72
+ return (tx) => tx.moveCall({
73
+ package: packageAddress,
74
+ module: 'composition_party_role',
75
+ function: 'new_composer_role',
76
+ });
77
+ }
78
+ /** Creates a new Lyricist role. */
79
+ export function newLyricistRole(options = {}) {
80
+ const packageAddress = options.package ?? '@local-pkg/composition_credits';
81
+ return (tx) => tx.moveCall({
82
+ package: packageAddress,
83
+ module: 'composition_party_role',
84
+ function: 'new_lyricist_role',
85
+ });
86
+ }
87
+ /** Creates a new Songwriter role. */
88
+ export function newSongwriterRole(options = {}) {
89
+ const packageAddress = options.package ?? '@local-pkg/composition_credits';
90
+ return (tx) => tx.moveCall({
91
+ package: packageAddress,
92
+ module: 'composition_party_role',
93
+ function: 'new_songwriter_role',
94
+ });
95
+ }
96
+ /** Creates a new Translator role. */
97
+ export function newTranslatorRole(options = {}) {
98
+ const packageAddress = options.package ?? '@local-pkg/composition_credits';
99
+ return (tx) => tx.moveCall({
100
+ package: packageAddress,
101
+ module: 'composition_party_role',
102
+ function: 'new_translator_role',
103
+ });
104
+ }
105
+ /**
106
+ * Creates a new Custom role with a user-defined name. The name freezes into
107
+ * credits, so it is validated here. Prefer a canonical variant when one fits.
108
+ */
109
+ export function newCustomRole(options) {
110
+ const packageAddress = options.package ?? '@local-pkg/composition_credits';
111
+ const argumentsTypes = [
112
+ '0x1::string::String'
113
+ ];
114
+ const parameterNames = ["roleName"];
115
+ return (tx) => tx.moveCall({
116
+ package: packageAddress,
117
+ module: 'composition_party_role',
118
+ function: 'new_custom_role',
119
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
120
+ });
121
+ }
122
+ /**
123
+ * Returns the canonical identifier of the role as a stable PascalCase token. For
124
+ * `Custom`, returns the user-supplied name.
125
+ */
126
+ export function name(options) {
127
+ const packageAddress = options.package ?? '@local-pkg/composition_credits';
128
+ const argumentsTypes = [
129
+ null
130
+ ];
131
+ const parameterNames = ["self"];
132
+ return (tx) => tx.moveCall({
133
+ package: packageAddress,
134
+ module: 'composition_party_role',
135
+ function: 'name',
136
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
137
+ });
138
+ }
139
+ //# sourceMappingURL=composition_party_role.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"composition_party_role.js","sourceRoot":"","sources":["../../../src/contracts/composition_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AAE,qBAAqB;KAClC,CAAC,CAAC;AACP,CAAC;AAUD;;;GAGG;AACH,MAAM,UAAU,aAAa,CAAC,OAA6B;IACvD,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,IAAI,gCAAgC,CAAC;IAC3E,MAAM,cAAc,GAAG;QACnB,qBAAqB;KACI,CAAC;IAC9B,MAAM,cAAc,GAAG,CAAC,UAAU,CAAC,CAAC;IACpC,OAAO,CAAC,EAAe,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC;QACpC,OAAO,EAAE,cAAc;QACvB,MAAM,EAAE,wBAAwB;QAChC,QAAQ,EAAE,iBAAiB;QAC3B,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;KACvF,CAAC,CAAC;AACP,CAAC;AAUD;;;GAGG;AACH,MAAM,UAAU,IAAI,CAAC,OAAoB;IACrC,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,IAAI,gCAAgC,CAAC;IAC3E,MAAM,cAAc,GAAG;QACnB,IAAI;KACqB,CAAC;IAC9B,MAAM,cAAc,GAAG,CAAC,MAAM,CAAC,CAAC;IAChC,OAAO,CAAC,EAAe,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC;QACpC,OAAO,EAAE,cAAc;QACvB,MAAM,EAAE,wBAAwB;QAChC,QAAQ,EAAE,MAAM;QAChB,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;KACvF,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ /**
5
+ * Represents a party's credit on a work or activity. A credit pairs a display name
6
+ * with one or more roles, identifying how a party contributed to the work.
7
+ */
8
+ import { type BcsType } from '@mysten/sui/bcs';
9
+ import { MoveStruct } from '../../../utils/index.ts';
10
+ /**
11
+ * A credit attributing roles to a party on a work. Generic over the role type to
12
+ * support domain-specific roles.
13
+ */
14
+ export declare function Credit<Role extends BcsType<any>>(...typeParameters: [
15
+ Role
16
+ ]): MoveStruct<{
17
+ /** Human-readable name to display for this credit. */
18
+ display_name: BcsType<string, string, "string">;
19
+ /** Roles assigned to the credited party. */
20
+ roles: BcsType<import("@mysten/bcs").InferBcsType<Role>[], Iterable<import("@mysten/bcs").InferBcsInput<Role>> & {
21
+ length: number;
22
+ }, string>;
23
+ }, `miso_credit::credit::Credit<${Role["name"]}>`>;
24
+ //# sourceMappingURL=credit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"credit.d.ts","sourceRoot":"","sources":["../../../../../src/contracts/composition_credits/deps/miso_credit/credit.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;GAGG;AAEH,OAAO,EAAE,KAAK,OAAO,EAAO,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD;;;GAGG;AACH,wBAAgB,MAAM,CAAC,IAAI,SAAS,OAAO,CAAC,GAAG,CAAC,EAAE,GAAG,cAAc,EAAE;IACjE,IAAI;CACP;IAEW,sDAAsD;;IAEtD,4CAA4C;;;;mDAGvD"}
@@ -0,0 +1,23 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ /**
5
+ * Represents a party's credit on a work or activity. A credit pairs a display name
6
+ * with one or more roles, identifying how a party contributed to the work.
7
+ */
8
+ import { bcs } from '@mysten/sui/bcs';
9
+ import { MoveStruct } from "../../../utils/index.js";
10
+ const $moduleName = 'miso_credit::credit';
11
+ /**
12
+ * A credit attributing roles to a party on a work. Generic over the role type to
13
+ * support domain-specific roles.
14
+ */
15
+ export function Credit(...typeParameters) {
16
+ return new MoveStruct({ name: `${$moduleName}::Credit<${typeParameters[0].name}>`, fields: {
17
+ /** Human-readable name to display for this credit. */
18
+ display_name: bcs.string(),
19
+ /** Roles assigned to the credited party. */
20
+ roles: bcs.vector(typeParameters[0])
21
+ } });
22
+ }
23
+ //# sourceMappingURL=credit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"credit.js","sourceRoot":"","sources":["../../../../../src/contracts/composition_credits/deps/miso_credit/credit.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;GAGG;AAEH,OAAO,EAAgB,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,MAAM,WAAW,GAAG,qBAAqB,CAAC;AAC1C;;;GAGG;AACH,MAAM,UAAU,MAAM,CAA4B,GAAG,cAEpD;IACG,OAAO,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,YAAY,cAAc,CAAC,CAAC,CAAC,CAAC,IAAoB,GAAG,EAAE,MAAM,EAAE;YACnG,sDAAsD;YACtD,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE;YAC1B,4CAA4C;YAC5C,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;SACvC,EAAE,CAAC,CAAC;AACb,CAAC"}
@@ -0,0 +1,37 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ import { type BcsType } from '@mysten/sui/bcs';
5
+ import { MoveStruct } from '../../../utils/index.ts';
6
+ /** An entry in the map */
7
+ export declare function Entry<K extends BcsType<any>, V extends BcsType<any>>(...typeParameters: [
8
+ K,
9
+ V
10
+ ]): MoveStruct<{
11
+ key: K;
12
+ value: V;
13
+ }, `0x2::vec_map::Entry<${K["name"]}, ${V["name"]}>`>;
14
+ /**
15
+ * A map data structure backed by a vector. The map is guaranteed not to contain
16
+ * duplicate keys, but entries are _not_ sorted by key--entries are included in
17
+ * insertion order. All operations are O(N) in the size of the map--the intention
18
+ * of this data structure is only to provide the convenience of programming against
19
+ * a map API. Large maps should use handwritten parent/child relationships instead.
20
+ * Maps that need sorted iteration rather than insertion order iteration should
21
+ * also be handwritten.
22
+ */
23
+ export declare function VecMap<K extends BcsType<any>, V extends BcsType<any>>(...typeParameters: [
24
+ K,
25
+ V
26
+ ]): MoveStruct<{
27
+ contents: BcsType<{
28
+ key: K extends BcsType<infer U, any, string> ? U : never;
29
+ value: V extends BcsType<infer U, any, string> ? U : never;
30
+ }[], Iterable<{
31
+ key: K extends BcsType<any, infer U_1, string> ? U_1 : never;
32
+ value: V extends BcsType<any, infer U_1, string> ? U_1 : never;
33
+ }> & {
34
+ length: number;
35
+ }, string>;
36
+ }, `0x2::vec_map::VecMap<${K["name"]}, ${V["name"]}>`>;
37
+ //# sourceMappingURL=vec_map.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vec_map.d.ts","sourceRoot":"","sources":["../../../../../src/contracts/composition_credits/deps/sui/vec_map.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAChE,OAAO,EAAE,KAAK,OAAO,EAAO,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD,0BAA0B;AAC1B,wBAAgB,KAAK,CAAC,CAAC,SAAS,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,SAAS,OAAO,CAAC,GAAG,CAAC,EAAE,GAAG,cAAc,EAAE;IACrF,CAAC;IACD,CAAC;CACJ;;;sDAKA;AACD;;;;;;;;GAQG;AACH,wBAAgB,MAAM,CAAC,CAAC,SAAS,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,SAAS,OAAO,CAAC,GAAG,CAAC,EAAE,GAAG,cAAc,EAAE;IACtF,CAAC;IACD,CAAC;CACJ;;;;;;;;;;uDAIA"}
@@ -0,0 +1,28 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ import { bcs } from '@mysten/sui/bcs';
5
+ import { MoveStruct } from "../../../utils/index.js";
6
+ const $moduleName = '0x2::vec_map';
7
+ /** An entry in the map */
8
+ export function Entry(...typeParameters) {
9
+ return new MoveStruct({ name: `${$moduleName}::Entry<${typeParameters[0].name}, ${typeParameters[1].name}>`, fields: {
10
+ key: typeParameters[0],
11
+ value: typeParameters[1]
12
+ } });
13
+ }
14
+ /**
15
+ * A map data structure backed by a vector. The map is guaranteed not to contain
16
+ * duplicate keys, but entries are _not_ sorted by key--entries are included in
17
+ * insertion order. All operations are O(N) in the size of the map--the intention
18
+ * of this data structure is only to provide the convenience of programming against
19
+ * a map API. Large maps should use handwritten parent/child relationships instead.
20
+ * Maps that need sorted iteration rather than insertion order iteration should
21
+ * also be handwritten.
22
+ */
23
+ export function VecMap(...typeParameters) {
24
+ return new MoveStruct({ name: `${$moduleName}::VecMap<${typeParameters[0].name}, ${typeParameters[1].name}>`, fields: {
25
+ contents: bcs.vector(Entry(typeParameters[0], typeParameters[1]))
26
+ } });
27
+ }
28
+ //# sourceMappingURL=vec_map.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vec_map.js","sourceRoot":"","sources":["../../../../../src/contracts/composition_credits/deps/sui/vec_map.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAChE,OAAO,EAAgB,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,MAAM,WAAW,GAAG,cAAc,CAAC;AACnC,0BAA0B;AAC1B,MAAM,UAAU,KAAK,CAAiD,GAAG,cAGxE;IACG,OAAO,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,WAAW,cAAc,CAAC,CAAC,CAAC,CAAC,IAAiB,KAAK,cAAc,CAAC,CAAC,CAAC,CAAC,IAAiB,GAAG,EAAE,MAAM,EAAE;YACvI,GAAG,EAAE,cAAc,CAAC,CAAC,CAAC;YACtB,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC;SAC3B,EAAE,CAAC,CAAC;AACb,CAAC;AACD;;;;;;;;GAQG;AACH,MAAM,UAAU,MAAM,CAAiD,GAAG,cAGzE;IACG,OAAO,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,YAAY,cAAc,CAAC,CAAC,CAAC,CAAC,IAAiB,KAAK,cAAc,CAAC,CAAC,CAAC,CAAC,IAAiB,GAAG,EAAE,MAAM,EAAE;YACxI,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;SACpE,EAAE,CAAC,CAAC;AACb,CAAC"}
@@ -34,7 +34,7 @@
34
34
  * the one trust assumption that never expires: integrators should model the cap
35
35
  * holder as able to mutate or delete any extension data, forever.
36
36
  */
37
- import { MoveEnum, MoveStruct, MoveTuple, type RawTransactionArgument } from '../utils/index.js';
37
+ import { MoveEnum, MoveStruct, MoveTuple, type RawTransactionArgument } from '../utils/index.ts';
38
38
  import { type Transaction } from '@mysten/sui/transactions';
39
39
  /** Lifecycle state of a composition. */
40
40
  export declare const CompositionState: MoveEnum<{
@@ -66,12 +66,6 @@ export declare const CompositionAdminCapKey: MoveTuple<readonly [import("@mysten
66
66
  export declare const CompositionPublishedEvent: MoveStruct<{
67
67
  composition_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
68
68
  }, "@local-pkg/miso::composition::CompositionPublishedEvent<phantom CompositionShare>">;
69
- export declare const CompositionRoyaltySetEvent: MoveStruct<{
70
- composition_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
71
- previous_royalty_rate_bps: import("@mysten/sui/bcs").BcsType<number, number, "u16">;
72
- royalty_rate_bps: import("@mysten/sui/bcs").BcsType<number, number, "u16">;
73
- changed_by: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
74
- }, "@local-pkg/miso::composition::CompositionRoyaltySetEvent<phantom CompositionShare>">;
75
69
  export interface NewArguments {
76
70
  title: RawTransactionArgument<string>;
77
71
  royaltyRateBps: RawTransactionArgument<number>;
@@ -91,10 +85,17 @@ export interface NewOptions {
91
85
  ];
92
86
  }
93
87
  /**
94
- * Creates a new composition with the given title and royalty rate. The royalty
95
- * rate must not exceed `MAX_ROYALTY_RATE_BPS`; there is no floor, so 0% is
96
- * permitted (e.g. a generative recording with no authored composition).
97
- * Initializes share tokens (10M supply, 6 decimals) and returns:
88
+ * Creates a new composition with the given title and royalty rate.
89
+ *
90
+ * The rate is set once, here, and is immutable for the composition's lifetime: it
91
+ * is a permanent standing offer that recorders and share buyers can price against
92
+ * without trusting the admin. The protocol imposes no opinion on it beyond the
93
+ * arithmetic bound of 100% (10000 bps, enforced by `bps::new`). There is no floor
94
+ * — 0% is permitted (e.g. a generative recording with no authored composition) —
95
+ * and no protocol ceiling: an uncompetitive rate simply attracts no recordings.
96
+ * What rate is reasonable is a client-side concern; per-deal deviations settle as
97
+ * voluntary share transfers after recording creation. Initializes share tokens
98
+ * (10M supply, 6 decimals) and returns:
98
99
  *
99
100
  * - The composition object
100
101
  * - Admin capability for the owner
@@ -123,33 +124,6 @@ export interface PublishOptions {
123
124
  * extension and may be attached before or after publish via `uid_mut`.
124
125
  */
125
126
  export declare function publish(options: PublishOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
126
- export interface SetRoyaltyRateArguments {
127
- self: RawTransactionArgument<string>;
128
- _: RawTransactionArgument<string>;
129
- royaltyRateBps: RawTransactionArgument<number>;
130
- }
131
- export interface SetRoyaltyRateOptions {
132
- package?: string;
133
- arguments: SetRoyaltyRateArguments | [
134
- self: RawTransactionArgument<string>,
135
- _: RawTransactionArgument<string>,
136
- royaltyRateBps: RawTransactionArgument<number>
137
- ];
138
- typeArguments: [
139
- string
140
- ];
141
- }
142
- /**
143
- * Sets the royalty rate this composition earns from each recording. Must not
144
- * exceed `MAX_ROYALTY_RATE_BPS` (there is no floor; 0% is allowed). The rate can
145
- * be changed in any lifecycle state, including after publishing, and takes effect
146
- * immediately. There is deliberately no rate-change cooldown: a change cannot
147
- * surprise anyone, because each recording snapshots the rate when it is created
148
- * (existing recordings keep the rate they captured) and `recording::new`'s
149
- * `max_royalty_rate_bps` slippage guard means no future recorder can be charged a
150
- * rate they did not consent to.
151
- */
152
- export declare function setRoyaltyRate(options: SetRoyaltyRateOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
153
127
  export interface IdArguments {
154
128
  self: RawTransactionArgument<string>;
155
129
  }
@@ -190,7 +164,11 @@ export interface RoyaltyRateOptions {
190
164
  string
191
165
  ];
192
166
  }
193
- /** Returns the royalty rate this composition earns from each recording. */
167
+ /**
168
+ * Returns the royalty rate this composition earns from each recording. Immutable
169
+ * for the composition's lifetime — the value read here is, by construction, the
170
+ * value `recording::new` will apply.
171
+ */
194
172
  export declare function royaltyRate(options: RoyaltyRateOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
195
173
  export interface UidArguments {
196
174
  self: RawTransactionArgument<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"composition.d.ts","sourceRoot":"","sources":["../../../src/contracts/miso/composition.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAA0B,KAAK,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEzH,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAG5D,wCAAwC;AACxC,eAAO,MAAM,gBAAgB;IACrB,oDAAoD;;IAEpD,8EAA8E;;oDAE9E,CAAC;AACT,eAAO,MAAM,WAAW;IAChB,8CAA8C;;IAE9C,+BAA+B;;QAR/B,oDAAoD;;QAEpD,8EAA8E;;;IAQ9E,wCAAwC;;IAEx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AAC,OAAO,EAAE,aAAa,IAOjC,IAAI,WAAW,0DAO1B"}
@@ -34,10 +34,10 @@
34
34
  * the one trust assumption that never expires: integrators should model the cap
35
35
  * holder as able to mutate or delete any extension data, forever.
36
36
  */
37
- import { MoveEnum, MoveStruct, MoveTuple, normalizeMoveArguments } from '../utils/index.js';
37
+ import { MoveEnum, MoveStruct, MoveTuple, normalizeMoveArguments } from "../utils/index.js";
38
38
  import { bcs } from '@mysten/sui/bcs';
39
39
  import {} from '@mysten/sui/transactions';
40
- import * as bps from './deps/bps/bps.js';
40
+ import * as bps from "./deps/bps/bps.js";
41
41
  const $moduleName = '@local-pkg/miso::composition';
42
42
  /** Lifecycle state of a composition. */
43
43
  export const CompositionState = new MoveEnum({ name: `${$moduleName}::CompositionState`, fields: {
@@ -64,17 +64,18 @@ export const CompositionAdminCapKey = new MoveTuple({ name: `${$moduleName}::Com
64
64
  export const CompositionPublishedEvent = new MoveStruct({ name: `${$moduleName}::CompositionPublishedEvent<phantom CompositionShare>`, fields: {
65
65
  composition_id: bcs.Address
66
66
  } });
67
- export const CompositionRoyaltySetEvent = new MoveStruct({ name: `${$moduleName}::CompositionRoyaltySetEvent<phantom CompositionShare>`, fields: {
68
- composition_id: bcs.Address,
69
- previous_royalty_rate_bps: bcs.u16(),
70
- royalty_rate_bps: bcs.u16(),
71
- changed_by: bcs.Address
72
- } });
73
67
  /**
74
- * Creates a new composition with the given title and royalty rate. The royalty
75
- * rate must not exceed `MAX_ROYALTY_RATE_BPS`; there is no floor, so 0% is
76
- * permitted (e.g. a generative recording with no authored composition).
77
- * Initializes share tokens (10M supply, 6 decimals) and returns:
68
+ * Creates a new composition with the given title and royalty rate.
69
+ *
70
+ * The rate is set once, here, and is immutable for the composition's lifetime: it
71
+ * is a permanent standing offer that recorders and share buyers can price against
72
+ * without trusting the admin. The protocol imposes no opinion on it beyond the
73
+ * arithmetic bound of 100% (10000 bps, enforced by `bps::new`). There is no floor
74
+ * — 0% is permitted (e.g. a generative recording with no authored composition) —
75
+ * and no protocol ceiling: an uncompetitive rate simply attracts no recordings.
76
+ * What rate is reasonable is a client-side concern; per-deal deviations settle as
77
+ * voluntary share transfers after recording creation. Initializes share tokens
78
+ * (10M supply, 6 decimals) and returns:
78
79
  *
79
80
  * - The composition object
80
81
  * - Admin capability for the owner
@@ -120,32 +121,6 @@ export function publish(options) {
120
121
  typeArguments: options.typeArguments
121
122
  });
122
123
  }
123
- /**
124
- * Sets the royalty rate this composition earns from each recording. Must not
125
- * exceed `MAX_ROYALTY_RATE_BPS` (there is no floor; 0% is allowed). The rate can
126
- * be changed in any lifecycle state, including after publishing, and takes effect
127
- * immediately. There is deliberately no rate-change cooldown: a change cannot
128
- * surprise anyone, because each recording snapshots the rate when it is created
129
- * (existing recordings keep the rate they captured) and `recording::new`'s
130
- * `max_royalty_rate_bps` slippage guard means no future recorder can be charged a
131
- * rate they did not consent to.
132
- */
133
- export function setRoyaltyRate(options) {
134
- const packageAddress = options.package ?? '@local-pkg/miso';
135
- const argumentsTypes = [
136
- null,
137
- null,
138
- 'u16'
139
- ];
140
- const parameterNames = ["self", "_", "royaltyRateBps"];
141
- return (tx) => tx.moveCall({
142
- package: packageAddress,
143
- module: 'composition',
144
- function: 'set_royalty_rate',
145
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
146
- typeArguments: options.typeArguments
147
- });
148
- }
149
124
  /** Returns the composition's object ID. */
150
125
  export function id(options) {
151
126
  const packageAddress = options.package ?? '@local-pkg/miso';
@@ -176,7 +151,11 @@ export function title(options) {
176
151
  typeArguments: options.typeArguments
177
152
  });
178
153
  }
179
- /** Returns the royalty rate this composition earns from each recording. */
154
+ /**
155
+ * Returns the royalty rate this composition earns from each recording. Immutable
156
+ * for the composition's lifetime — the value read here is, by construction, the
157
+ * value `recording::new` will apply.
158
+ */
180
159
  export function royaltyRate(options) {
181
160
  const packageAddress = options.package ?? '@local-pkg/miso';
182
161
  const argumentsTypes = [
@@ -1 +1 @@
1
- {"version":3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AO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;QACpF,aAAa,EAAE,OAAO,CAAC,aAAa;KACvC,CAAC,CAAC;AACP,CAAC"}
@@ -14,6 +14,6 @@
14
14
  * directly and only overflows for amounts exceeding `u256::MAX / 10_000`
15
15
  * (~1.16e73).
16
16
  */
17
- import { MoveTuple } from '../../../utils/index.js';
17
+ import { MoveTuple } from '../../../utils/index.ts';
18
18
  export declare const BPS: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<number, number, "u16">], "bps::bps::BPS">;
19
19
  //# sourceMappingURL=bps.d.ts.map
@@ -14,7 +14,7 @@
14
14
  * directly and only overflows for amounts exceeding `u256::MAX / 10_000`
15
15
  * (~1.16e73).
16
16
  */
17
- import { MoveTuple } from '../../../utils/index.js';
17
+ import { MoveTuple } from "../../../utils/index.js";
18
18
  import { bcs } from '@mysten/sui/bcs';
19
19
  const $moduleName = 'bps::bps';
20
20
  export const BPS = new MoveTuple({ name: `${$moduleName}::BPS`, fields: [bcs.u16()] });
@@ -43,14 +43,15 @@
43
43
  * the one trust assumption that never expires: integrators should model the cap
44
44
  * holder as able to mutate or delete any extension data, forever.
45
45
  *
46
- * The recording carries its parent composition's identity as the
47
- * `CompositionShare` phantom type parameter the composition's share type is its
48
- * durable identity (a share currency is published independently of miso and
49
- * survives a fresh republish, whereas an object ID does not). This makes the
50
- * recording↔composition lineage compile-time enforced wherever the two meet, and
51
- * it is the sole link: the composition's object id is not stored on the recording.
52
- * Off-chain consumers that need the composition object resolve its share type to
53
- * an id via `composition::CompositionPublishedEvent`, which binds the two.
46
+ * The recording carries its parent composition's identity two ways. The
47
+ * `CompositionShare` phantom type parameter is the durable identity (a share
48
+ * currency is published independently of miso and survives a fresh republish,
49
+ * whereas an object ID does not) and makes the recording↔composition lineage
50
+ * compile-time enforced wherever the two meet. The embedded `composition_id` is
51
+ * the address-level handle: Move cannot chase a type (or an ID) to an object, so
52
+ * on-chain consumers holding only `&Recording` or a bare `Track` could not
53
+ * otherwise reach the composition at all. Both are set at creation and immutable,
54
+ * so they cannot diverge.
54
55
  *
55
56
  * A recording is its own freshly-created object (`object::new`), not a derived
56
57
  * child of its composition: `recording::new` takes a read-only `&Composition`
@@ -58,7 +59,7 @@
58
59
  * composition neither contends on the composition's shared-object version nor
59
60
  * collides on a per-composition index.
60
61
  */
61
- import { MoveEnum, MoveStruct, MoveTuple, type RawTransactionArgument } from '../utils/index.js';
62
+ import { MoveEnum, MoveStruct, MoveTuple, type RawTransactionArgument } from '../utils/index.ts';
62
63
  import { type Transaction } from '@mysten/sui/transactions';
63
64
  /** Lifecycle state of a recording. */
64
65
  export declare const RecordingState: MoveEnum<{
@@ -77,6 +78,14 @@ export declare const Recording: MoveStruct<{
77
78
  /** Recording is published and immutable. Includes publication timestamp. */
78
79
  Published: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
79
80
  }, "@local-pkg/miso::recording::RecordingState">;
81
+ /**
82
+ * Object ID of the parent composition. The address-level counterpart of the
83
+ * `CompositionShare` phantom, set from the `&Composition` passed to `new` (the
84
+ * shared phantom proves the pairing). An identity handle — not a revenue routing
85
+ * target: the composition is paid through its recording-share ownership, settled
86
+ * at creation.
87
+ */
88
+ composition_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
80
89
  }, "@local-pkg/miso::recording::Recording<phantom RecordingShare, phantom CompositionShare>">;
81
90
  export declare const RecordingAdminCap: MoveStruct<{
82
91
  /** Unique identifier for this capability. */
@@ -99,15 +108,13 @@ export interface NewArguments {
99
108
  composition: RawTransactionArgument<string>;
100
109
  shareCurrency: RawTransactionArgument<string>;
101
110
  shareTreasuryCap: RawTransactionArgument<string>;
102
- maxRoyaltyRateBps: RawTransactionArgument<number>;
103
111
  }
104
112
  export interface NewOptions {
105
113
  package?: string;
106
114
  arguments: NewArguments | [
107
115
  composition: RawTransactionArgument<string>,
108
116
  shareCurrency: RawTransactionArgument<string>,
109
- shareTreasuryCap: RawTransactionArgument<string>,
110
- maxRoyaltyRateBps: RawTransactionArgument<number>
117
+ shareTreasuryCap: RawTransactionArgument<string>
111
118
  ];
112
119
  typeArguments: [
113
120
  string,
@@ -126,13 +133,11 @@ export interface NewOptions {
126
133
  * composition owner then does with the shares (hold, stake, sell) is outside the
127
134
  * protocol's scope.
128
135
  *
129
- * `max_royalty_rate_bps` is a slippage guard: `new` reads the composition's
130
- * royalty rate live off a shared object, so a composition owner could land a rate
131
- * increase in a transaction ordered just before this one and capture more of the
132
- * recording's shares than the recorder saw. The call aborts if the composition's
133
- * current rate exceeds `max_royalty_rate_bps`, so the recorder pins the most they
134
- * will grant (pass the rate they observed, or `2000` to accept up to the protocol
135
- * maximum).
136
+ * The composition's royalty rate is immutable, so the rate a recorder's client
137
+ * displayed is exactly the rate applied here no slippage protection is needed or
138
+ * possible. Whether that rate is acceptable is the recorder's decision to make
139
+ * before calling; per-deal deviations settle as voluntary share transfers after
140
+ * creation.
136
141
  *
137
142
  * The composition need not be `Published`: within the composition's own creating
138
143
  * transaction its creator can already mint recordings against it. Third parties
@@ -172,6 +177,26 @@ export interface PublishOptions {
172
177
  * extension and may be attached before or after publish via `uid_mut`.
173
178
  */
174
179
  export declare function publish(options: PublishOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
180
+ export interface CompositionIdArguments {
181
+ self: RawTransactionArgument<string>;
182
+ }
183
+ export interface CompositionIdOptions {
184
+ package?: string;
185
+ arguments: CompositionIdArguments | [
186
+ self: RawTransactionArgument<string>
187
+ ];
188
+ typeArguments: [
189
+ string,
190
+ string
191
+ ];
192
+ }
193
+ /**
194
+ * Returns the object ID of the parent composition. An identity/membership handle
195
+ * (the address-level counterpart of the `CompositionShare` phantom) — not a
196
+ * revenue routing target: the composition is paid via its recording-share
197
+ * ownership.
198
+ */
199
+ export declare function compositionId(options: CompositionIdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
175
200
  export interface IdArguments {
176
201
  self: RawTransactionArgument<string>;
177
202
  }