@misofm/sdk 0.16.0 → 0.17.1

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 (307) hide show
  1. package/README.md +79 -34
  2. package/dist/client.d.ts +72 -24
  3. package/dist/client.d.ts.map +1 -1
  4. package/dist/client.js +229 -84
  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 +15 -99
  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 +12 -94
  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_record/deps/std/type_name.d.ts +1 -1
  42. package/dist/contracts/miso_record/deps/std/type_name.d.ts.map +1 -1
  43. package/dist/contracts/miso_record/deps/std/type_name.js.map +1 -1
  44. package/dist/contracts/miso_record/deps/sui/vec_set.d.ts.map +1 -1
  45. package/dist/contracts/miso_record/deps/sui/vec_set.js.map +1 -1
  46. package/dist/contracts/miso_record/pressing.d.ts.map +1 -1
  47. package/dist/contracts/miso_record/pressing.js.map +1 -1
  48. package/dist/contracts/miso_record/record.d.ts +17 -17
  49. package/dist/contracts/miso_record/record.d.ts.map +1 -1
  50. package/dist/contracts/miso_record/record.js.map +1 -1
  51. package/dist/contracts/miso_record_shop/deps/std/type_name.d.ts +1 -1
  52. package/dist/contracts/miso_record_shop/deps/std/type_name.d.ts.map +1 -1
  53. package/dist/contracts/miso_record_shop/deps/std/type_name.js.map +1 -1
  54. package/dist/contracts/miso_record_shop/listing.d.ts +29 -29
  55. package/dist/contracts/miso_record_shop/listing.d.ts.map +1 -1
  56. package/dist/contracts/miso_record_shop/listing.js.map +1 -1
  57. package/dist/contracts/miso_record_shop/witness.d.ts +1 -1
  58. package/dist/contracts/miso_record_shop/witness.d.ts.map +1 -1
  59. package/dist/contracts/miso_record_shop/witness.js.map +1 -1
  60. package/dist/contracts/party_wallet/party_wallet.d.ts +41 -168
  61. package/dist/contracts/party_wallet/party_wallet.d.ts.map +1 -1
  62. package/dist/contracts/party_wallet/party_wallet.js +27 -152
  63. package/dist/contracts/party_wallet/party_wallet.js.map +1 -1
  64. package/dist/contracts/recording_advisory/recording_advisory.d.ts +3 -3
  65. package/dist/contracts/recording_advisory/recording_advisory.d.ts.map +1 -1
  66. package/dist/contracts/recording_advisory/recording_advisory.js.map +1 -1
  67. package/dist/contracts/recording_credits/deps/miso_credit/credit.d.ts.map +1 -1
  68. package/dist/contracts/recording_credits/deps/miso_credit/credit.js.map +1 -1
  69. package/dist/contracts/recording_credits/deps/sui/vec_map.d.ts.map +1 -1
  70. package/dist/contracts/recording_credits/deps/sui/vec_map.js.map +1 -1
  71. package/dist/contracts/recording_credits/deps/sui/vec_set.d.ts.map +1 -1
  72. package/dist/contracts/recording_credits/deps/sui/vec_set.js.map +1 -1
  73. package/dist/contracts/recording_credits/recording_credits.d.ts +20 -20
  74. package/dist/contracts/recording_credits/recording_credits.d.ts.map +1 -1
  75. package/dist/contracts/recording_credits/recording_credits.js.map +1 -1
  76. package/dist/contracts/recording_credits/recording_party_role.d.ts +30 -30
  77. package/dist/contracts/recording_credits/recording_party_role.d.ts.map +1 -1
  78. package/dist/contracts/recording_credits/recording_party_role.js.map +1 -1
  79. package/dist/contracts/recording_language/deps/language_code/language_code.d.ts +1 -1
  80. package/dist/contracts/recording_language/deps/language_code/language_code.d.ts.map +1 -1
  81. package/dist/contracts/recording_language/deps/language_code/language_code.js.map +1 -1
  82. package/dist/contracts/recording_language/recording_language.d.ts +4 -4
  83. package/dist/contracts/recording_language/recording_language.d.ts.map +1 -1
  84. package/dist/contracts/recording_language/recording_language.js.map +1 -1
  85. package/dist/contracts/recording_master_reference/deps/ori/walrus_data.d.ts +4 -4
  86. package/dist/contracts/recording_master_reference/deps/ori/walrus_data.d.ts.map +1 -1
  87. package/dist/contracts/recording_master_reference/deps/ori/walrus_data.js.map +1 -1
  88. package/dist/contracts/recording_master_reference/recording_master_reference.d.ts +6 -6
  89. package/dist/contracts/recording_master_reference/recording_master_reference.d.ts.map +1 -1
  90. package/dist/contracts/recording_master_reference/recording_master_reference.js.map +1 -1
  91. package/dist/contracts/recording_preview/deps/ori/walrus_data.d.ts +4 -4
  92. package/dist/contracts/recording_preview/deps/ori/walrus_data.d.ts.map +1 -1
  93. package/dist/contracts/recording_preview/deps/ori/walrus_data.js.map +1 -1
  94. package/dist/contracts/recording_preview/recording_preview.d.ts +6 -6
  95. package/dist/contracts/recording_preview/recording_preview.d.ts.map +1 -1
  96. package/dist/contracts/recording_preview/recording_preview.js.map +1 -1
  97. package/dist/contracts/recording_royalty_pool/recording_royalty_pool.d.ts +14 -100
  98. package/dist/contracts/recording_royalty_pool/recording_royalty_pool.d.ts.map +1 -1
  99. package/dist/contracts/recording_royalty_pool/recording_royalty_pool.js +11 -94
  100. package/dist/contracts/recording_royalty_pool/recording_royalty_pool.js.map +1 -1
  101. package/dist/contracts/recording_royalty_pool_plugin/recording_royalty_pool_plugin.d.ts +92 -0
  102. package/dist/contracts/recording_royalty_pool_plugin/recording_royalty_pool_plugin.d.ts.map +1 -0
  103. package/dist/contracts/recording_royalty_pool_plugin/recording_royalty_pool_plugin.js +85 -0
  104. package/dist/contracts/recording_royalty_pool_plugin/recording_royalty_pool_plugin.js.map +1 -0
  105. package/dist/contracts/{composition_royalty_pool → recording_royalty_pool_plugin}/witness.d.ts +1 -1
  106. package/dist/contracts/recording_royalty_pool_plugin/witness.d.ts.map +1 -0
  107. package/dist/contracts/{party_wallet → recording_royalty_pool_plugin}/witness.js +1 -1
  108. package/dist/contracts/recording_royalty_pool_plugin/witness.js.map +1 -0
  109. package/dist/contracts/release_cover_art/deps/{0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78 → 0xf35cf353a62cef01084b51a9cf3da4c64c8724685ad1862f2f8284b71bd26c1a}/walrus_data.d.ts +7 -7
  110. package/dist/contracts/release_cover_art/deps/{0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78 → 0xf35cf353a62cef01084b51a9cf3da4c64c8724685ad1862f2f8284b71bd26c1a}/walrus_data.d.ts.map +1 -1
  111. package/dist/contracts/release_cover_art/deps/{0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78 → 0xf35cf353a62cef01084b51a9cf3da4c64c8724685ad1862f2f8284b71bd26c1a}/walrus_data.js +1 -1
  112. package/dist/contracts/release_cover_art/deps/{0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78 → 0xf35cf353a62cef01084b51a9cf3da4c64c8724685ad1862f2f8284b71bd26c1a}/walrus_data.js.map +1 -1
  113. package/dist/contracts/release_cover_art/deps/cover_art/cover_art.d.ts +7 -7
  114. package/dist/contracts/release_cover_art/deps/cover_art/cover_art.d.ts.map +1 -1
  115. package/dist/contracts/release_cover_art/deps/cover_art/cover_art.js +1 -1
  116. package/dist/contracts/release_cover_art/deps/cover_art/cover_art.js.map +1 -1
  117. package/dist/contracts/release_cover_art/deps/per_track/per_track.d.ts.map +1 -1
  118. package/dist/contracts/release_cover_art/deps/per_track/per_track.js.map +1 -1
  119. package/dist/contracts/release_cover_art/release_cover_art.d.ts +23 -23
  120. package/dist/contracts/release_cover_art/release_cover_art.d.ts.map +1 -1
  121. package/dist/contracts/release_cover_art/release_cover_art.js.map +1 -1
  122. package/dist/contracts/release_credits/deps/miso_credit/credit.d.ts.map +1 -1
  123. package/dist/contracts/release_credits/deps/miso_credit/credit.js.map +1 -1
  124. package/dist/contracts/release_credits/deps/sui/vec_map.d.ts.map +1 -1
  125. package/dist/contracts/release_credits/deps/sui/vec_map.js.map +1 -1
  126. package/dist/contracts/release_credits/release_credits.d.ts +10 -10
  127. package/dist/contracts/release_credits/release_credits.d.ts.map +1 -1
  128. package/dist/contracts/release_credits/release_credits.js.map +1 -1
  129. package/dist/contracts/release_description/release_description.d.ts +4 -4
  130. package/dist/contracts/release_description/release_description.d.ts.map +1 -1
  131. package/dist/contracts/release_description/release_description.js.map +1 -1
  132. package/dist/contracts/release_dsp_link/release_dsp_link.d.ts +41 -42
  133. package/dist/contracts/release_dsp_link/release_dsp_link.d.ts.map +1 -1
  134. package/dist/contracts/release_dsp_link/release_dsp_link.js +4 -5
  135. package/dist/contracts/release_dsp_link/release_dsp_link.js.map +1 -1
  136. package/dist/contracts/release_genre/deps/per_track/per_track.d.ts.map +1 -1
  137. package/dist/contracts/release_genre/deps/per_track/per_track.js.map +1 -1
  138. package/dist/contracts/release_genre/release_genre.d.ts +15 -15
  139. package/dist/contracts/release_genre/release_genre.d.ts.map +1 -1
  140. package/dist/contracts/release_genre/release_genre.js.map +1 -1
  141. package/dist/contracts/release_kind/release_kind.d.ts +4 -4
  142. package/dist/contracts/release_kind/release_kind.d.ts.map +1 -1
  143. package/dist/contracts/release_kind/release_kind.js.map +1 -1
  144. package/dist/contracts/release_revenue_distributor/release_revenue_distributor.d.ts +46 -59
  145. package/dist/contracts/release_revenue_distributor/release_revenue_distributor.d.ts.map +1 -1
  146. package/dist/contracts/release_revenue_distributor/release_revenue_distributor.js +27 -48
  147. package/dist/contracts/release_revenue_distributor/release_revenue_distributor.js.map +1 -1
  148. package/dist/contracts/release_revenue_distributor_plugin/release_revenue_distributor_plugin.d.ts +75 -0
  149. package/dist/contracts/release_revenue_distributor_plugin/release_revenue_distributor_plugin.d.ts.map +1 -0
  150. package/dist/contracts/release_revenue_distributor_plugin/release_revenue_distributor_plugin.js +80 -0
  151. package/dist/contracts/release_revenue_distributor_plugin/release_revenue_distributor_plugin.js.map +1 -0
  152. package/dist/contracts/{recording_royalty_pool → release_revenue_distributor_plugin}/witness.d.ts +1 -1
  153. package/dist/contracts/release_revenue_distributor_plugin/witness.d.ts.map +1 -0
  154. package/dist/contracts/{composition_royalty_pool → release_revenue_distributor_plugin}/witness.js +1 -1
  155. package/dist/contracts/release_revenue_distributor_plugin/witness.js.map +1 -0
  156. package/dist/contracts/routed_stake/deps/royalty_pool/stake.d.ts +5 -5
  157. package/dist/contracts/routed_stake/deps/royalty_pool/stake.d.ts.map +1 -1
  158. package/dist/contracts/routed_stake/deps/royalty_pool/stake.js.map +1 -1
  159. package/dist/contracts/routed_stake/deps/std/type_name.d.ts +1 -1
  160. package/dist/contracts/routed_stake/deps/std/type_name.d.ts.map +1 -1
  161. package/dist/contracts/routed_stake/deps/std/type_name.js.map +1 -1
  162. package/dist/contracts/routed_stake/deps/sui/balance.d.ts +1 -1
  163. package/dist/contracts/routed_stake/deps/sui/balance.d.ts.map +1 -1
  164. package/dist/contracts/routed_stake/deps/sui/balance.js.map +1 -1
  165. package/dist/contracts/routed_stake/deps/sui/vec_map.d.ts.map +1 -1
  166. package/dist/contracts/routed_stake/deps/sui/vec_map.js.map +1 -1
  167. package/dist/contracts/routed_stake/routed_stake.d.ts +15 -15
  168. package/dist/contracts/routed_stake/routed_stake.d.ts.map +1 -1
  169. package/dist/contracts/routed_stake/routed_stake.js.map +1 -1
  170. package/dist/contracts/royalty_pool/deps/std/type_name.d.ts +1 -1
  171. package/dist/contracts/royalty_pool/deps/std/type_name.d.ts.map +1 -1
  172. package/dist/contracts/royalty_pool/deps/std/type_name.js.map +1 -1
  173. package/dist/contracts/royalty_pool/deps/sui/balance.d.ts +1 -1
  174. package/dist/contracts/royalty_pool/deps/sui/balance.d.ts.map +1 -1
  175. package/dist/contracts/royalty_pool/deps/sui/balance.js.map +1 -1
  176. package/dist/contracts/royalty_pool/deps/sui/vec_map.d.ts.map +1 -1
  177. package/dist/contracts/royalty_pool/deps/sui/vec_map.js.map +1 -1
  178. package/dist/contracts/royalty_pool/pool.d.ts +19 -19
  179. package/dist/contracts/royalty_pool/pool.d.ts.map +1 -1
  180. package/dist/contracts/royalty_pool/pool.js.map +1 -1
  181. package/dist/contracts/royalty_pool/stake.d.ts +9 -9
  182. package/dist/contracts/royalty_pool/stake.d.ts.map +1 -1
  183. package/dist/contracts/royalty_pool/stake.js.map +1 -1
  184. package/dist/contracts/vault/deps/sui/bag.d.ts +2 -2
  185. package/dist/contracts/vault/deps/sui/bag.d.ts.map +1 -1
  186. package/dist/contracts/vault/deps/sui/bag.js.map +1 -1
  187. package/dist/contracts/vault/deps/sui/borrow.d.ts.map +1 -1
  188. package/dist/contracts/vault/deps/sui/borrow.js.map +1 -1
  189. package/dist/contracts/vault/vault.d.ts +19 -93
  190. package/dist/contracts/vault/vault.d.ts.map +1 -1
  191. package/dist/contracts/vault/vault.js +16 -95
  192. package/dist/contracts/vault/vault.js.map +1 -1
  193. package/dist/contracts.d.ts +3 -0
  194. package/dist/contracts.d.ts.map +1 -1
  195. package/dist/contracts.js +4 -1
  196. package/dist/contracts.js.map +1 -1
  197. package/dist/deployments.d.ts +125 -79
  198. package/dist/deployments.d.ts.map +1 -1
  199. package/dist/deployments.js +111 -35
  200. package/dist/deployments.js.map +1 -1
  201. package/dist/index.d.ts +1 -1
  202. package/dist/index.d.ts.map +1 -1
  203. package/dist/index.js +1 -1
  204. package/dist/index.js.map +1 -1
  205. package/dist/internal.d.ts +9 -0
  206. package/dist/internal.d.ts.map +1 -1
  207. package/dist/internal.js +23 -0
  208. package/dist/internal.js.map +1 -1
  209. package/dist/publication.d.ts +1 -4
  210. package/dist/publication.d.ts.map +1 -1
  211. package/dist/publication.js +79 -60
  212. package/dist/publication.js.map +1 -1
  213. package/dist/read/config.d.ts.map +1 -1
  214. package/dist/read/config.js +9 -1
  215. package/dist/read/config.js.map +1 -1
  216. package/dist/vault.d.ts +42 -38
  217. package/dist/vault.d.ts.map +1 -1
  218. package/dist/vault.js +96 -169
  219. package/dist/vault.js.map +1 -1
  220. package/package.json +13 -10
  221. package/src/client.ts +291 -107
  222. package/src/contracts/composition_credits/composition_credits.ts +3 -2
  223. package/src/contracts/composition_credits/composition_party_role.ts +5 -4
  224. package/src/contracts/composition_credits/deps/miso_credit/credit.ts +1 -0
  225. package/src/contracts/composition_credits/deps/sui/vec_map.ts +1 -0
  226. package/src/contracts/composition_routed_stake/composition_routed_stake.ts +36 -146
  227. package/src/contracts/composition_royalty_pool/composition_royalty_pool.ts +20 -161
  228. package/src/contracts/composition_royalty_pool_plugin/composition_royalty_pool_plugin.ts +165 -0
  229. package/src/contracts/{recording_royalty_pool → composition_royalty_pool_plugin}/witness.ts +2 -1
  230. package/src/contracts/cover_art/cover_art.ts +2 -1
  231. package/src/contracts/cover_art/deps/ori/walrus_data.ts +1 -0
  232. package/src/contracts/genre/genre.ts +3 -2
  233. package/src/contracts/miso_record/deps/std/type_name.ts +1 -0
  234. package/src/contracts/miso_record/deps/sui/vec_set.ts +1 -0
  235. package/src/contracts/miso_record/pressing.ts +1 -0
  236. package/src/contracts/miso_record/record.ts +1 -0
  237. package/src/contracts/miso_record_shop/deps/std/type_name.ts +1 -0
  238. package/src/contracts/miso_record_shop/listing.ts +1 -0
  239. package/src/contracts/miso_record_shop/witness.ts +1 -0
  240. package/src/contracts/party_wallet/party_wallet.ts +41 -256
  241. package/src/contracts/recording_advisory/recording_advisory.ts +4 -3
  242. package/src/contracts/recording_credits/deps/miso_credit/credit.ts +1 -0
  243. package/src/contracts/recording_credits/deps/sui/vec_map.ts +1 -0
  244. package/src/contracts/recording_credits/deps/sui/vec_set.ts +1 -0
  245. package/src/contracts/recording_credits/recording_credits.ts +3 -2
  246. package/src/contracts/recording_credits/recording_party_role.ts +5 -4
  247. package/src/contracts/recording_language/deps/language_code/language_code.ts +1 -0
  248. package/src/contracts/recording_language/recording_language.ts +5 -4
  249. package/src/contracts/recording_master_reference/deps/ori/walrus_data.ts +1 -0
  250. package/src/contracts/recording_master_reference/recording_master_reference.ts +6 -5
  251. package/src/contracts/recording_preview/deps/ori/walrus_data.ts +1 -0
  252. package/src/contracts/recording_preview/recording_preview.ts +2 -1
  253. package/src/contracts/recording_royalty_pool/recording_royalty_pool.ts +19 -162
  254. package/src/contracts/recording_royalty_pool_plugin/recording_royalty_pool_plugin.ts +167 -0
  255. package/src/contracts/{party_wallet → recording_royalty_pool_plugin}/witness.ts +2 -1
  256. package/src/contracts/release_cover_art/deps/{0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78 → 0xf35cf353a62cef01084b51a9cf3da4c64c8724685ad1862f2f8284b71bd26c1a}/walrus_data.ts +2 -1
  257. package/src/contracts/release_cover_art/deps/cover_art/cover_art.ts +3 -2
  258. package/src/contracts/release_cover_art/deps/per_track/per_track.ts +3 -2
  259. package/src/contracts/release_cover_art/release_cover_art.ts +2 -1
  260. package/src/contracts/release_credits/deps/miso_credit/credit.ts +1 -0
  261. package/src/contracts/release_credits/deps/sui/vec_map.ts +1 -0
  262. package/src/contracts/release_credits/release_credits.ts +4 -3
  263. package/src/contracts/release_credits/release_party_role.ts +4 -4
  264. package/src/contracts/release_description/release_description.ts +6 -5
  265. package/src/contracts/release_dsp_link/release_dsp_link.ts +8 -8
  266. package/src/contracts/release_genre/deps/per_track/per_track.ts +3 -2
  267. package/src/contracts/release_genre/release_genre.ts +4 -3
  268. package/src/contracts/release_kind/release_kind.ts +5 -4
  269. package/src/contracts/release_revenue_distributor/release_revenue_distributor.ts +50 -85
  270. package/src/contracts/release_revenue_distributor_plugin/release_revenue_distributor_plugin.ts +145 -0
  271. package/src/contracts/{composition_royalty_pool → release_revenue_distributor_plugin}/witness.ts +2 -1
  272. package/src/contracts/routed_stake/deps/royalty_pool/stake.ts +1 -0
  273. package/src/contracts/routed_stake/deps/std/type_name.ts +1 -0
  274. package/src/contracts/routed_stake/deps/sui/balance.ts +1 -0
  275. package/src/contracts/routed_stake/deps/sui/vec_map.ts +1 -0
  276. package/src/contracts/routed_stake/routed_stake.ts +4 -3
  277. package/src/contracts/royalty_pool/deps/std/type_name.ts +1 -0
  278. package/src/contracts/royalty_pool/deps/sui/balance.ts +1 -0
  279. package/src/contracts/royalty_pool/deps/sui/vec_map.ts +1 -0
  280. package/src/contracts/royalty_pool/pool.ts +1 -0
  281. package/src/contracts/royalty_pool/stake.ts +1 -0
  282. package/src/contracts/vault/deps/sui/bag.ts +3 -2
  283. package/src/contracts/vault/deps/sui/borrow.ts +2 -1
  284. package/src/contracts/vault/vault.ts +27 -152
  285. package/src/contracts.ts +4 -1
  286. package/src/deployments.ts +185 -60
  287. package/src/index.ts +3 -0
  288. package/src/internal.ts +27 -0
  289. package/src/publication.ts +87 -69
  290. package/src/read/config.ts +12 -1
  291. package/src/vault.ts +150 -256
  292. package/dist/contracts/composition_routed_stake/witness.d.ts +0 -7
  293. package/dist/contracts/composition_routed_stake/witness.d.ts.map +0 -1
  294. package/dist/contracts/composition_routed_stake/witness.js +0 -9
  295. package/dist/contracts/composition_routed_stake/witness.js.map +0 -1
  296. package/dist/contracts/composition_royalty_pool/witness.d.ts.map +0 -1
  297. package/dist/contracts/composition_royalty_pool/witness.js.map +0 -1
  298. package/dist/contracts/party_wallet/witness.d.ts.map +0 -1
  299. package/dist/contracts/party_wallet/witness.js.map +0 -1
  300. package/dist/contracts/recording_royalty_pool/witness.d.ts.map +0 -1
  301. package/dist/contracts/recording_royalty_pool/witness.js.map +0 -1
  302. package/dist/contracts/release_revenue_distributor/witness.d.ts +0 -7
  303. package/dist/contracts/release_revenue_distributor/witness.d.ts.map +0 -1
  304. package/dist/contracts/release_revenue_distributor/witness.js +0 -9
  305. package/dist/contracts/release_revenue_distributor/witness.js.map +0 -1
  306. package/src/contracts/composition_routed_stake/witness.ts +0 -11
  307. package/src/contracts/release_revenue_distributor/witness.ts +0 -11
@@ -7,7 +7,7 @@
7
7
  * Streaming deep links for a Miso release, one Digital Service Provider (DSP) at a
8
8
  * time. Attaches `DspLinkData` records to a `miso::release::Release`: an
9
9
  * album-level link per DSP, plus an optional per-track link per DSP.
10
- *
10
+ *
11
11
  * `DspLinkData` is a single built-in enum with one variant per DSP, holding that
12
12
  * DSP's native identifier(s) — e.g. a Spotify album id, or Apple Music's
13
13
  * `(storefront, album_id, track_id)`. URLs are never stored: a client rebuilds the
@@ -16,13 +16,13 @@
16
16
  * discriminant matching declaration order, via `platform()`), so each DSP occupies
17
17
  * its own independent dynamic field on the release's `UID` — adding or clearing
18
18
  * one DSP's link never touches another's.
19
- *
19
+ *
20
20
  * Two levels per DSP: the album-level link is the single `DspLinkData` stored
21
21
  * under `ReleaseLinkKey(platform)`; the per-track links are a
22
22
  * `PerTrack<Option<DspLinkData>>` stored under `TrackLinksKey(platform)` (one slot
23
23
  * per track, aligned to the tracklist by construction). A track whose slot is
24
24
  * `none` inherits the album-level link at the frontend.
25
- *
25
+ *
26
26
  * Streaming presence is presentation, not protocol-verifiable state, so it lives
27
27
  * on the release (the consumer object), not the recording. All writes are gated by
28
28
  * the `ReleaseAdminCap` via `uid_mut`; views are permissionless.
@@ -30,6 +30,7 @@
30
30
 
31
31
  import { MoveTuple, MoveEnum, MoveStruct, normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';
32
32
  import { bcs } from '@mysten/sui/bcs';
33
+ import type {} from "@mysten/bcs";
33
34
  import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
34
35
  const $moduleName = '@local-pkg/release_dsp_link::release_dsp_link';
35
36
  export const ReleaseLinkKey = new MoveTuple({ name: `${$moduleName}::ReleaseLinkKey`, fields: [bcs.u8()] });
@@ -42,11 +43,10 @@ export const TrackLinksKey = new MoveTuple({ name: `${$moduleName}::TrackLinksKe
42
43
  * album/track flag.
43
44
  *
44
45
  * **Variant order is frozen.** Storage keys off `platform()`, a `u8` discriminant
45
- * matching declaration order (`Spotify = 0` … `YouTubeMusic = 7`). Sui's
46
- * compatible-upgrade policy allows appending new enum variants but not reordering
47
- * or removing existing ones, so a new platform is always appended at the end in a
48
- * package upgrade existing BCS variant indices, and therefore existing
49
- * dynamic-field keys, stay stable.
46
+ * matching declaration order (`Spotify = 0` … `YouTubeMusic = 7`). This immutable
47
+ * package never changes those indices. Supporting another platform requires a new
48
+ * immutable package identity and an explicit client/data migration; existing
49
+ * variants are never reordered.
50
50
  */
51
51
  export const DspLinkData = new MoveEnum({ name: `${$moduleName}::DspLinkData`, fields: {
52
52
  /**
@@ -6,14 +6,14 @@
6
6
  /**
7
7
  * `PerTrack<Data>` — one `Data` value per track of a release, held in tracklist
8
8
  * order.
9
- *
9
+ *
10
10
  * A release's tracks are a flat, ordered `vector<Track>`, frozen at release
11
11
  * creation. `PerTrack` is the parallel array to that list: index `i` holds the
12
12
  * payload for the `i`-th track. It is the shared shape behind per-track release
13
13
  * metadata such as cover art (`PerTrack<Option<CoverArt>>`) or genre — and the
14
14
  * natural home for display grouping (disc/side boundaries), which core
15
15
  * deliberately does not store.
16
- *
16
+ *
17
17
  * Construction reads the `Release` and sizes/validates the array against the
18
18
  * tracklist length, so a `PerTrack` is parallel to the tracklist _by construction_
19
19
  * — an extension cannot attach a misaligned array. Because a release's tracklist
@@ -21,6 +21,7 @@
21
21
  */
22
22
 
23
23
  import { type BcsType, bcs } from '@mysten/sui/bcs';
24
+ import type {} from "@mysten/bcs";
24
25
  import { MoveTuple } from '../../../utils/index.js';
25
26
  const $moduleName = 'per_track::per_track';
26
27
  /**
@@ -6,15 +6,15 @@
6
6
  /**
7
7
  * Genre assignment for a Miso release: an album-level primary + secondary genres,
8
8
  * plus optional per-track primary overrides.
9
- *
9
+ *
10
10
  * Genre is presentation, not objective recording data, so it is assigned on the
11
11
  * release (the consumer object), not the recording. Stored as a single
12
12
  * `ReleaseGenre` dynamic field on the release's UID, gated by the
13
13
  * `ReleaseAdminCap`.
14
- *
14
+ *
15
15
  * A track's effective primary genre resolves as: its per-track override if set,
16
16
  * else the album primary.
17
- *
17
+ *
18
18
  * A genre is either the album primary or a secondary, never both — the two are
19
19
  * kept disjoint: setting the primary to a current secondary aborts (remove it from
20
20
  * the secondaries first), and adding the current primary as a secondary aborts.
@@ -22,6 +22,7 @@
22
22
 
23
23
  import { MoveTuple, MoveStruct, normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';
24
24
  import { bcs } from '@mysten/sui/bcs';
25
+ import type {} from "@mysten/bcs";
25
26
  import { type Transaction } from '@mysten/sui/transactions';
26
27
  import * as per_track from './deps/per_track/per_track.js';
27
28
  const $moduleName = '@local-pkg/release_genre::release_genre';
@@ -6,24 +6,24 @@
6
6
  /**
7
7
  * What a release calls itself — "Album", "EP", "Mixtape", "Split" — asserted by
8
8
  * whoever holds the release's admin cap, and believed.
9
- *
9
+ *
10
10
  * Deliberately a free string rather than an enum. An enum would not decide the
11
11
  * classification (the admin still picks) but it would decide the _menu_, and
12
12
  * deciding which self-descriptions are legitimate is not the protocol's job.
13
13
  * Artists release beat tapes and splits and things nobody has named yet; a closed
14
14
  * set would make each of those a package swap, and in the meantime would quietly
15
15
  * push releases into whichever official-looking box fit worst.
16
- *
16
+ *
17
17
  * Nothing here derives the value or checks it for plausibility. A four-track
18
18
  * release may call itself an Album and a twelve-track one an EP; both happen, and
19
19
  * the artist's intent is the fact worth recording. The only checks are structural
20
20
  * — non-empty and bounded — so the field stays storable.
21
- *
21
+ *
22
22
  * This is the opposite call from `release_genre`, on purpose. Genre is a curated
23
23
  * vocabulary because discovery and reward-eligibility depend on releases agreeing
24
24
  * with each other about what a genre _is_. Nothing depends on two releases
25
25
  * agreeing about what an EP is.
26
- *
26
+ *
27
27
  * The cost of that freedom lands on readers: "EP", "ep" and "Extended Play" are
28
28
  * three distinct values here. Clients that group or facet by kind should normalise
29
29
  * (case-fold at minimum) rather than expect canonical strings.
@@ -31,6 +31,7 @@
31
31
 
32
32
  import { MoveTuple, MoveStruct, normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';
33
33
  import { bcs } from '@mysten/sui/bcs';
34
+ import type {} from "@mysten/bcs";
34
35
  import { type Transaction } from '@mysten/sui/transactions';
35
36
  const $moduleName = '@local-pkg/release_kind::release_kind';
36
37
  export const ExtensionKey = new MoveTuple({ name: `${$moduleName}::ExtensionKey`, fields: [bcs.bool()] });
@@ -4,17 +4,16 @@
4
4
 
5
5
 
6
6
  /**
7
- * Vault-authorized release revenue routing for Miso.
8
- *
9
- * Revenue is split from the immutable Release tracklist and sent to each track's
10
- * Recording address. A caller can select only the funds to receive or the amount
11
- * to redeem; it cannot select recipients or alter split amounts. Recording-level
12
- * plugins may subsequently fold those funds into canonical Recording royalty
13
- * pools.
7
+ * Raw-cap Release revenue actions.
8
+ *
9
+ * Revenue is split from the immutable Release tracklist and sent to the
10
+ * corresponding Recording addresses. Callers select only funds already held by the
11
+ * Release; they cannot select recipients or alter split amounts.
14
12
  */
15
13
 
16
14
  import { MoveStruct, normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';
17
15
  import { bcs } from '@mysten/sui/bcs';
16
+ import type {} from "@mysten/bcs";
18
17
  import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
19
18
  const $moduleName = '@local-pkg/release_revenue_distributor::release_revenue_distributor';
20
19
  export const ReleaseTrackRevenueDistributedEvent = new MoveStruct({ name: `${$moduleName}::ReleaseTrackRevenueDistributedEvent<phantom Currency>`, fields: {
@@ -29,104 +28,93 @@ export const ReleaseRevenueDistributedEvent = new MoveStruct({ name: `${$moduleN
29
28
  total_distributed: bcs.u64(),
30
29
  remainder: bcs.u64()
31
30
  } });
32
- export interface InstallArguments {
33
- vault: RawTransactionArgument<string>;
34
- vaultAdminCap: RawTransactionArgument<string>;
31
+ export interface RedeemAndDistributeArguments {
32
+ release: RawTransactionArgument<string>;
33
+ adminCap: RawTransactionArgument<string>;
34
+ value: RawTransactionArgument<number | bigint>;
35
35
  }
36
- export interface InstallOptions {
36
+ export interface RedeemAndDistributeOptions {
37
37
  package?: string;
38
- arguments: InstallArguments | [
39
- vault: RawTransactionArgument<string>,
40
- vaultAdminCap: RawTransactionArgument<string>
38
+ arguments: RedeemAndDistributeArguments | [
39
+ release: RawTransactionArgument<string>,
40
+ adminCap: RawTransactionArgument<string>,
41
+ value: RawTransactionArgument<number | bigint>
41
42
  ];
42
- }
43
- /** Authorize this package on a Release capability Vault. */
44
- export function install(options: InstallOptions) {
45
- const packageAddress = options.package ?? '@local-pkg/release_revenue_distributor';
46
- const argumentsTypes = [
47
- null,
48
- null
49
- ] satisfies (string | null)[];
50
- const parameterNames = ["vault", "vaultAdminCap"];
51
- return (tx: Transaction) => tx.moveCall({
52
- package: packageAddress,
53
- module: 'release_revenue_distributor',
54
- function: 'install',
55
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
56
- });
57
- }
58
- export interface UninstallArguments {
59
- vault: RawTransactionArgument<string>;
60
- vaultAdminCap: RawTransactionArgument<string>;
61
- }
62
- export interface UninstallOptions {
63
- package?: string;
64
- arguments: UninstallArguments | [
65
- vault: RawTransactionArgument<string>,
66
- vaultAdminCap: RawTransactionArgument<string>
43
+ typeArguments: [
44
+ string
67
45
  ];
68
46
  }
69
- /** Revoke this package from a Release capability Vault. */
70
- export function uninstall(options: UninstallOptions) {
47
+ /**
48
+ * Redeem `value` from the Release accumulator and distribute it according to the
49
+ * immutable tracklist.
50
+ */
51
+ export function redeemAndDistribute(options: RedeemAndDistributeOptions) {
71
52
  const packageAddress = options.package ?? '@local-pkg/release_revenue_distributor';
72
53
  const argumentsTypes = [
73
54
  null,
74
- null
55
+ null,
56
+ 'u64'
75
57
  ] satisfies (string | null)[];
76
- const parameterNames = ["vault", "vaultAdminCap"];
58
+ const parameterNames = ["release", "adminCap", "value"];
77
59
  return (tx: Transaction) => tx.moveCall({
78
60
  package: packageAddress,
79
61
  module: 'release_revenue_distributor',
80
- function: 'uninstall',
62
+ function: 'redeem_and_distribute',
81
63
  arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
64
+ typeArguments: options.typeArguments
82
65
  });
83
66
  }
84
- export interface RedeemAndDistributeArguments {
85
- vault: RawTransactionArgument<string>;
67
+ export interface RedeemAllAndDistributeArguments {
86
68
  release: RawTransactionArgument<string>;
87
- value: RawTransactionArgument<number | bigint>;
69
+ adminCap: RawTransactionArgument<string>;
70
+ root: RawTransactionArgument<string>;
88
71
  }
89
- export interface RedeemAndDistributeOptions {
72
+ export interface RedeemAllAndDistributeOptions {
90
73
  package?: string;
91
- arguments: RedeemAndDistributeArguments | [
92
- vault: RawTransactionArgument<string>,
74
+ arguments: RedeemAllAndDistributeArguments | [
93
75
  release: RawTransactionArgument<string>,
94
- value: RawTransactionArgument<number | bigint>
76
+ adminCap: RawTransactionArgument<string>,
77
+ root: RawTransactionArgument<string>
95
78
  ];
96
79
  typeArguments: [
97
80
  string
98
81
  ];
99
82
  }
100
83
  /**
101
- * Redeem `value` from the Release address and distribute it according to the
102
- * immutable tracklist. Anyone may crank this after installation.
84
+ * Redeem all Release funds settled at the start of the current consensus commit
85
+ * and distribute them according to the immutable tracklist.
86
+ *
87
+ * The framework snapshot is capped at `u64::MAX`; excess funds, newly sent funds,
88
+ * and per-track flooring remainder settle for a later call. This fixed crank
89
+ * prevents permissionless adapters from selecting dust-sized fragments. A zero
90
+ * settled snapshot is an idempotent no-op.
103
91
  */
104
- export function redeemAndDistribute(options: RedeemAndDistributeOptions) {
92
+ export function redeemAllAndDistribute(options: RedeemAllAndDistributeOptions) {
105
93
  const packageAddress = options.package ?? '@local-pkg/release_revenue_distributor';
106
94
  const argumentsTypes = [
107
95
  null,
108
96
  null,
109
- 'u64'
97
+ null
110
98
  ] satisfies (string | null)[];
111
- const parameterNames = ["vault", "release", "value"];
99
+ const parameterNames = ["release", "adminCap", "root"];
112
100
  return (tx: Transaction) => tx.moveCall({
113
101
  package: packageAddress,
114
102
  module: 'release_revenue_distributor',
115
- function: 'redeem_and_distribute',
103
+ function: 'redeem_all_and_distribute',
116
104
  arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
117
105
  typeArguments: options.typeArguments
118
106
  });
119
107
  }
120
108
  export interface ReceiveAndDistributeArguments {
121
- vault: RawTransactionArgument<string>;
122
109
  release: RawTransactionArgument<string>;
110
+ adminCap: RawTransactionArgument<string>;
123
111
  coins: TransactionArgument;
124
112
  }
125
113
  export interface ReceiveAndDistributeOptions {
126
114
  package?: string;
127
115
  arguments: ReceiveAndDistributeArguments | [
128
- vault: RawTransactionArgument<string>,
129
116
  release: RawTransactionArgument<string>,
117
+ adminCap: RawTransactionArgument<string>,
130
118
  coins: TransactionArgument
131
119
  ];
132
120
  typeArguments: [
@@ -134,9 +122,8 @@ export interface ReceiveAndDistributeOptions {
134
122
  ];
135
123
  }
136
124
  /**
137
- * Receive selected `Coin<Currency>` objects sent to the Release and distribute
138
- * their combined value according to the immutable tracklist. Anyone may crank this
139
- * after installation.
125
+ * Receive selected coins sent to the Release and distribute their combined value
126
+ * according to the immutable tracklist.
140
127
  */
141
128
  export function receiveAndDistribute(options: ReceiveAndDistributeOptions) {
142
129
  const packageAddress = options.package ?? '@local-pkg/release_revenue_distributor';
@@ -145,7 +132,7 @@ export function receiveAndDistribute(options: ReceiveAndDistributeOptions) {
145
132
  null,
146
133
  'vector<null>'
147
134
  ] satisfies (string | null)[];
148
- const parameterNames = ["vault", "release", "coins"];
135
+ const parameterNames = ["release", "adminCap", "coins"];
149
136
  return (tx: Transaction) => tx.moveCall({
150
137
  package: packageAddress,
151
138
  module: 'release_revenue_distributor',
@@ -153,26 +140,4 @@ export function receiveAndDistribute(options: ReceiveAndDistributeOptions) {
153
140
  arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
154
141
  typeArguments: options.typeArguments
155
142
  });
156
- }
157
- export interface IsInstalledArguments {
158
- vault: RawTransactionArgument<string>;
159
- }
160
- export interface IsInstalledOptions {
161
- package?: string;
162
- arguments: IsInstalledArguments | [
163
- vault: RawTransactionArgument<string>
164
- ];
165
- }
166
- export function isInstalled(options: IsInstalledOptions) {
167
- const packageAddress = options.package ?? '@local-pkg/release_revenue_distributor';
168
- const argumentsTypes = [
169
- null
170
- ] satisfies (string | null)[];
171
- const parameterNames = ["vault"];
172
- return (tx: Transaction) => tx.moveCall({
173
- package: packageAddress,
174
- module: 'release_revenue_distributor',
175
- function: 'is_installed',
176
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
177
- });
178
143
  }
@@ -0,0 +1,145 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+
5
+
6
+ /** Vault adapter for Release revenue-distribution Actions. */
7
+
8
+ import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
9
+ import { normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';
10
+ export interface InstallArguments {
11
+ vault: RawTransactionArgument<string>;
12
+ vaultAdminCap: RawTransactionArgument<string>;
13
+ }
14
+ export interface InstallOptions {
15
+ package?: string;
16
+ arguments: InstallArguments | [
17
+ vault: RawTransactionArgument<string>,
18
+ vaultAdminCap: RawTransactionArgument<string>
19
+ ];
20
+ }
21
+ export function install(options: InstallOptions) {
22
+ const packageAddress = options.package ?? '@local-pkg/release_revenue_distributor_plugin';
23
+ const argumentsTypes = [
24
+ null,
25
+ null
26
+ ] satisfies (string | null)[];
27
+ const parameterNames = ["vault", "vaultAdminCap"];
28
+ return (tx: Transaction) => tx.moveCall({
29
+ package: packageAddress,
30
+ module: 'release_revenue_distributor_plugin',
31
+ function: 'install',
32
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
33
+ });
34
+ }
35
+ export interface UninstallArguments {
36
+ vault: RawTransactionArgument<string>;
37
+ vaultAdminCap: RawTransactionArgument<string>;
38
+ }
39
+ export interface UninstallOptions {
40
+ package?: string;
41
+ arguments: UninstallArguments | [
42
+ vault: RawTransactionArgument<string>,
43
+ vaultAdminCap: RawTransactionArgument<string>
44
+ ];
45
+ }
46
+ export function uninstall(options: UninstallOptions) {
47
+ const packageAddress = options.package ?? '@local-pkg/release_revenue_distributor_plugin';
48
+ const argumentsTypes = [
49
+ null,
50
+ null
51
+ ] satisfies (string | null)[];
52
+ const parameterNames = ["vault", "vaultAdminCap"];
53
+ return (tx: Transaction) => tx.moveCall({
54
+ package: packageAddress,
55
+ module: 'release_revenue_distributor_plugin',
56
+ function: 'uninstall',
57
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
58
+ });
59
+ }
60
+ export interface IsInstalledArguments {
61
+ vault: RawTransactionArgument<string>;
62
+ }
63
+ export interface IsInstalledOptions {
64
+ package?: string;
65
+ arguments: IsInstalledArguments | [
66
+ vault: RawTransactionArgument<string>
67
+ ];
68
+ }
69
+ export function isInstalled(options: IsInstalledOptions) {
70
+ const packageAddress = options.package ?? '@local-pkg/release_revenue_distributor_plugin';
71
+ const argumentsTypes = [
72
+ null
73
+ ] satisfies (string | null)[];
74
+ const parameterNames = ["vault"];
75
+ return (tx: Transaction) => tx.moveCall({
76
+ package: packageAddress,
77
+ module: 'release_revenue_distributor_plugin',
78
+ function: 'is_installed',
79
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
80
+ });
81
+ }
82
+ export interface ReceiveAndDistributeArguments {
83
+ vault: RawTransactionArgument<string>;
84
+ release: RawTransactionArgument<string>;
85
+ coins: TransactionArgument;
86
+ }
87
+ export interface ReceiveAndDistributeOptions {
88
+ package?: string;
89
+ arguments: ReceiveAndDistributeArguments | [
90
+ vault: RawTransactionArgument<string>,
91
+ release: RawTransactionArgument<string>,
92
+ coins: TransactionArgument
93
+ ];
94
+ typeArguments: [
95
+ string
96
+ ];
97
+ }
98
+ export function receiveAndDistribute(options: ReceiveAndDistributeOptions) {
99
+ const packageAddress = options.package ?? '@local-pkg/release_revenue_distributor_plugin';
100
+ const argumentsTypes = [
101
+ null,
102
+ null,
103
+ 'vector<null>'
104
+ ] satisfies (string | null)[];
105
+ const parameterNames = ["vault", "release", "coins"];
106
+ return (tx: Transaction) => tx.moveCall({
107
+ package: packageAddress,
108
+ module: 'release_revenue_distributor_plugin',
109
+ function: 'receive_and_distribute',
110
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
111
+ typeArguments: options.typeArguments
112
+ });
113
+ }
114
+ export interface RedeemAllAndDistributeArguments {
115
+ vault: RawTransactionArgument<string>;
116
+ release: RawTransactionArgument<string>;
117
+ root: RawTransactionArgument<string>;
118
+ }
119
+ export interface RedeemAllAndDistributeOptions {
120
+ package?: string;
121
+ arguments: RedeemAllAndDistributeArguments | [
122
+ vault: RawTransactionArgument<string>,
123
+ release: RawTransactionArgument<string>,
124
+ root: RawTransactionArgument<string>
125
+ ];
126
+ typeArguments: [
127
+ string
128
+ ];
129
+ }
130
+ export function redeemAllAndDistribute(options: RedeemAllAndDistributeOptions) {
131
+ const packageAddress = options.package ?? '@local-pkg/release_revenue_distributor_plugin';
132
+ const argumentsTypes = [
133
+ null,
134
+ null,
135
+ null
136
+ ] satisfies (string | null)[];
137
+ const parameterNames = ["vault", "release", "root"];
138
+ return (tx: Transaction) => tx.moveCall({
139
+ package: packageAddress,
140
+ module: 'release_revenue_distributor_plugin',
141
+ function: 'redeem_all_and_distribute',
142
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
143
+ typeArguments: options.typeArguments
144
+ });
145
+ }
@@ -3,5 +3,6 @@
3
3
  **************************************************************/
4
4
  import { MoveTuple } from '../utils/index.js';
5
5
  import { bcs } from '@mysten/sui/bcs';
6
- const $moduleName = '@local-pkg/composition_royalty_pool::witness';
6
+ import type {} from "@mysten/bcs";
7
+ const $moduleName = '@local-pkg/release_revenue_distributor_plugin::witness';
7
8
  export const Witness = new MoveTuple({ name: `${$moduleName}::Witness`, fields: [bcs.bool()] });
@@ -25,6 +25,7 @@
25
25
 
26
26
  import { MoveStruct } from '../../../utils/index.js';
27
27
  import { bcs } from '@mysten/sui/bcs';
28
+ import type {} from "@mysten/bcs";
28
29
  import * as balance from '../sui/balance.js';
29
30
  import * as vec_map from '../sui/vec_map.js';
30
31
  import * as type_name from '../std/type_name.js';
@@ -7,6 +7,7 @@
7
7
 
8
8
  import { MoveStruct } from '../../../utils/index.js';
9
9
  import { bcs } from '@mysten/sui/bcs';
10
+ import type {} from "@mysten/bcs";
10
11
  const $moduleName = 'std::type_name';
11
12
  export const TypeName = new MoveStruct({ name: `${$moduleName}::TypeName`, fields: {
12
13
  /**
@@ -11,6 +11,7 @@
11
11
 
12
12
  import { MoveStruct } from '../../../utils/index.js';
13
13
  import { bcs } from '@mysten/sui/bcs';
14
+ import type {} from "@mysten/bcs";
14
15
  const $moduleName = '0x2::balance';
15
16
  export const Balance = new MoveStruct({ name: `${$moduleName}::Balance<phantom T>`, fields: {
16
17
  value: bcs.u64()
@@ -2,6 +2,7 @@
2
2
  * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
3
  **************************************************************/
4
4
  import { type BcsType, bcs } from '@mysten/sui/bcs';
5
+ import type {} from "@mysten/bcs";
5
6
  import { MoveStruct } from '../../../utils/index.js';
6
7
  const $moduleName = '0x2::vec_map';
7
8
  /** An entry in the map */
@@ -5,7 +5,7 @@
5
5
 
6
6
  /**
7
7
  * A stake whose rewards are irrevocably routed to its parent's royalty pool.
8
- *
8
+ *
9
9
  * A `RoutedStake<StakeShare, PoolShare>` is a derived object of any UID-bearing
10
10
  * parent (same pattern as `RoyaltyPool`). It wraps a `Stake<StakeShare>` — shares
11
11
  * of some other asset that the parent owns — and commits the rewards that stake
@@ -14,7 +14,7 @@
14
14
  * the same parent. The wrapper exists precisely so the raw `Stake` is never
15
15
  * exposed — a bare shared `Stake` would let any caller claim its rewards and keep
16
16
  * them.
17
- *
17
+ *
18
18
  * Because the route is fixed, the wrapper is safe to share: `sweep` is
19
19
  * permissionless, and it does not matter who calls it, since the money can only go
20
20
  * one place. Lifecycle operations (`register`, `unregister`, `unstake`, `restake`)
@@ -23,7 +23,7 @@
23
23
  * are gated because a stake registers at most once per `Currency`: a
24
24
  * permissionless register could grief by binding the stake to a garbage same-typed
25
25
  * pool, permanently blocking the real one for that currency.
26
- *
26
+ *
27
27
  * The derivation key encodes only `StakeShare` — at most one routed stake per
28
28
  * `(parent, StakeShare)` pair, whatever `PoolShare` it used (the same
29
29
  * burned-by-first-claim consequence as `RoyaltyPoolKey`; the parent's cap-gated
@@ -34,6 +34,7 @@
34
34
 
35
35
  import { MoveStruct, MoveTuple, normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';
36
36
  import { bcs } from '@mysten/sui/bcs';
37
+ import type {} from "@mysten/bcs";
37
38
  import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
38
39
  import * as stake_1 from './deps/royalty_pool/stake.js';
39
40
  const $moduleName = '@local-pkg/routed_stake::routed_stake';
@@ -7,6 +7,7 @@
7
7
 
8
8
  import { MoveStruct } from '../../../utils/index.js';
9
9
  import { bcs } from '@mysten/sui/bcs';
10
+ import type {} from "@mysten/bcs";
10
11
  const $moduleName = 'std::type_name';
11
12
  export const TypeName = new MoveStruct({ name: `${$moduleName}::TypeName`, fields: {
12
13
  /**
@@ -11,6 +11,7 @@
11
11
 
12
12
  import { MoveStruct } from '../../../utils/index.js';
13
13
  import { bcs } from '@mysten/sui/bcs';
14
+ import type {} from "@mysten/bcs";
14
15
  const $moduleName = '0x2::balance';
15
16
  export const Balance = new MoveStruct({ name: `${$moduleName}::Balance<phantom T>`, fields: {
16
17
  value: bcs.u64()
@@ -2,6 +2,7 @@
2
2
  * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
3
  **************************************************************/
4
4
  import { type BcsType, bcs } from '@mysten/sui/bcs';
5
+ import type {} from "@mysten/bcs";
5
6
  import { MoveStruct } from '../../../utils/index.js';
6
7
  const $moduleName = '0x2::vec_map';
7
8
  /** An entry in the map */
@@ -60,6 +60,7 @@
60
60
 
61
61
  import { MoveStruct, MoveTuple, normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';
62
62
  import { bcs } from '@mysten/sui/bcs';
63
+ import type {} from "@mysten/bcs";
63
64
  import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
64
65
  import * as balance_1 from './deps/sui/balance.js';
65
66
  const $moduleName = '@local-pkg/royalty_pool::pool';
@@ -25,6 +25,7 @@
25
25
 
26
26
  import { MoveStruct, normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';
27
27
  import { bcs } from '@mysten/sui/bcs';
28
+ import type {} from "@mysten/bcs";
28
29
  import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
29
30
  import * as balance_1 from './deps/sui/balance.js';
30
31
  import * as vec_map from './deps/sui/vec_map.js';
@@ -10,7 +10,7 @@
10
10
  * a handle into the object system to retrieve those keys and values. Note that
11
11
  * this means that `Bag` values with exactly the same key-value mapping will not be
12
12
  * equal, with `==`, at runtime. For example
13
- *
13
+ *
14
14
  * ```
15
15
  * let bag1 = bag::new();
16
16
  * let bag2 = bag::new();
@@ -21,7 +21,7 @@
21
21
  * // bag1 does not equal bag2, despite having the same entries
22
22
  * assert!(&bag1 != &bag2);
23
23
  * ```
24
- *
24
+ *
25
25
  * At it's core, `sui::bag` is a wrapper around `UID` that allows for access to
26
26
  * `sui::dynamic_field` while preventing accidentally stranding field values. A
27
27
  * `UID` can be deleted, even if it has dynamic fields associated with it, but a
@@ -30,6 +30,7 @@
30
30
 
31
31
  import { MoveStruct } from '../../../utils/index.js';
32
32
  import { bcs } from '@mysten/sui/bcs';
33
+ import type {} from "@mysten/bcs";
33
34
  const $moduleName = '0x2::bag';
34
35
  export const Bag = new MoveStruct({ name: `${$moduleName}::Bag`, fields: {
35
36
  /** the ID of this bag */