@misofm/sdk 0.9.0 → 0.10.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 (275) hide show
  1. package/README.md +88 -56
  2. package/dist/client.d.ts +126 -18
  3. package/dist/client.d.ts.map +1 -1
  4. package/dist/client.js +210 -44
  5. package/dist/client.js.map +1 -1
  6. package/dist/contracts/composition_routed_stake/composition_routed_stake.d.ts +205 -0
  7. package/dist/contracts/composition_routed_stake/composition_routed_stake.d.ts.map +1 -0
  8. package/dist/contracts/composition_routed_stake/composition_routed_stake.js +184 -0
  9. package/dist/contracts/composition_routed_stake/composition_routed_stake.js.map +1 -0
  10. package/dist/contracts/composition_routed_stake/witness.d.ts +7 -0
  11. package/dist/contracts/composition_routed_stake/witness.d.ts.map +1 -0
  12. package/dist/contracts/composition_routed_stake/witness.js +9 -0
  13. package/dist/contracts/composition_routed_stake/witness.js.map +1 -0
  14. package/dist/contracts/composition_royalty_pool/composition_royalty_pool.d.ts +89 -28
  15. package/dist/contracts/composition_royalty_pool/composition_royalty_pool.d.ts.map +1 -1
  16. package/dist/contracts/composition_royalty_pool/composition_royalty_pool.js +84 -23
  17. package/dist/contracts/composition_royalty_pool/composition_royalty_pool.js.map +1 -1
  18. package/dist/contracts/composition_royalty_pool/witness.d.ts +6 -0
  19. package/dist/contracts/composition_royalty_pool/witness.d.ts.map +1 -0
  20. package/dist/contracts/composition_royalty_pool/witness.js +8 -0
  21. package/dist/contracts/composition_royalty_pool/witness.js.map +1 -0
  22. package/dist/contracts/genre/genre.d.ts +96 -0
  23. package/dist/contracts/genre/genre.d.ts.map +1 -0
  24. package/dist/contracts/genre/genre.js +107 -0
  25. package/dist/contracts/genre/genre.js.map +1 -0
  26. package/dist/contracts/recording_advisory/recording_advisory.d.ts +194 -0
  27. package/dist/contracts/recording_advisory/recording_advisory.d.ts.map +1 -0
  28. package/dist/contracts/recording_advisory/recording_advisory.js +204 -0
  29. package/dist/contracts/recording_advisory/recording_advisory.js.map +1 -0
  30. package/dist/contracts/recording_language/deps/language_code/language_code.d.ts +6 -0
  31. package/dist/contracts/recording_language/deps/language_code/language_code.d.ts.map +1 -0
  32. package/dist/contracts/recording_language/deps/language_code/language_code.js +8 -0
  33. package/dist/contracts/recording_language/deps/language_code/language_code.js.map +1 -0
  34. package/dist/contracts/recording_language/recording_language.d.ts +152 -0
  35. package/dist/contracts/recording_language/recording_language.d.ts.map +1 -0
  36. package/dist/contracts/recording_language/recording_language.js +149 -0
  37. package/dist/contracts/recording_language/recording_language.js.map +1 -0
  38. package/dist/contracts/recording_master_reference/deps/ori/walrus_data.d.ts +52 -0
  39. package/dist/contracts/recording_master_reference/deps/ori/walrus_data.d.ts.map +1 -0
  40. package/dist/contracts/recording_master_reference/deps/ori/walrus_data.js +37 -0
  41. package/dist/contracts/recording_master_reference/deps/ori/walrus_data.js.map +1 -0
  42. package/dist/contracts/recording_master_reference/recording_master_reference.d.ts +131 -0
  43. package/dist/contracts/recording_master_reference/recording_master_reference.d.ts.map +1 -0
  44. package/dist/contracts/recording_master_reference/recording_master_reference.js +121 -0
  45. package/dist/contracts/recording_master_reference/recording_master_reference.js.map +1 -0
  46. package/dist/contracts/recording_preview/deps/ori/walrus_data.d.ts +52 -0
  47. package/dist/contracts/recording_preview/deps/ori/walrus_data.d.ts.map +1 -0
  48. package/dist/contracts/recording_preview/deps/ori/walrus_data.js +37 -0
  49. package/dist/contracts/recording_preview/deps/ori/walrus_data.js.map +1 -0
  50. package/dist/contracts/recording_preview/recording_preview.d.ts +104 -0
  51. package/dist/contracts/recording_preview/recording_preview.d.ts.map +1 -0
  52. package/dist/contracts/recording_preview/recording_preview.js +94 -0
  53. package/dist/contracts/recording_preview/recording_preview.js.map +1 -0
  54. package/dist/contracts/recording_royalty_pool/recording_royalty_pool.d.ts +90 -28
  55. package/dist/contracts/recording_royalty_pool/recording_royalty_pool.d.ts.map +1 -1
  56. package/dist/contracts/recording_royalty_pool/recording_royalty_pool.js +84 -23
  57. package/dist/contracts/recording_royalty_pool/recording_royalty_pool.js.map +1 -1
  58. package/dist/contracts/recording_royalty_pool/witness.d.ts +6 -0
  59. package/dist/contracts/recording_royalty_pool/witness.d.ts.map +1 -0
  60. package/dist/contracts/recording_royalty_pool/witness.js +8 -0
  61. package/dist/contracts/recording_royalty_pool/witness.js.map +1 -0
  62. package/dist/contracts/release_description/release_description.d.ts +112 -0
  63. package/dist/contracts/release_description/release_description.d.ts.map +1 -0
  64. package/dist/contracts/release_description/release_description.js +123 -0
  65. package/dist/contracts/release_description/release_description.js.map +1 -0
  66. package/dist/contracts/release_dsp_link/release_dsp_link.d.ts +644 -0
  67. package/dist/contracts/release_dsp_link/release_dsp_link.d.ts.map +1 -0
  68. package/dist/contracts/release_dsp_link/release_dsp_link.js +556 -0
  69. package/dist/contracts/release_dsp_link/release_dsp_link.js.map +1 -0
  70. package/dist/contracts/release_genre/deps/per_track/per_track.d.ts +33 -0
  71. package/dist/contracts/release_genre/deps/per_track/per_track.d.ts.map +1 -0
  72. package/dist/contracts/release_genre/deps/per_track/per_track.js +32 -0
  73. package/dist/contracts/release_genre/deps/per_track/per_track.js.map +1 -0
  74. package/dist/contracts/release_genre/release_genre.d.ts +193 -0
  75. package/dist/contracts/release_genre/release_genre.d.ts.map +1 -0
  76. package/dist/contracts/release_genre/release_genre.js +207 -0
  77. package/dist/contracts/release_genre/release_genre.js.map +1 -0
  78. package/dist/contracts/release_kind/release_kind.d.ts +98 -0
  79. package/dist/contracts/release_kind/release_kind.d.ts.map +1 -0
  80. package/dist/contracts/release_kind/release_kind.js +109 -0
  81. package/dist/contracts/release_kind/release_kind.js.map +1 -0
  82. package/dist/contracts/release_revenue_distributor/release_revenue_distributor.d.ts +106 -0
  83. package/dist/contracts/release_revenue_distributor/release_revenue_distributor.d.ts.map +1 -0
  84. package/dist/contracts/release_revenue_distributor/release_revenue_distributor.js +113 -0
  85. package/dist/contracts/release_revenue_distributor/release_revenue_distributor.js.map +1 -0
  86. package/dist/contracts/release_revenue_distributor/witness.d.ts +7 -0
  87. package/dist/contracts/release_revenue_distributor/witness.d.ts.map +1 -0
  88. package/dist/contracts/release_revenue_distributor/witness.js +9 -0
  89. package/dist/contracts/release_revenue_distributor/witness.js.map +1 -0
  90. package/dist/contracts/release_snapshot_bundle/deps/ori/walrus_data.d.ts +52 -0
  91. package/dist/contracts/release_snapshot_bundle/deps/ori/walrus_data.d.ts.map +1 -0
  92. package/dist/contracts/release_snapshot_bundle/deps/ori/walrus_data.js +37 -0
  93. package/dist/contracts/release_snapshot_bundle/deps/ori/walrus_data.js.map +1 -0
  94. package/dist/contracts/release_snapshot_bundle/release_snapshot_bundle.d.ts +91 -0
  95. package/dist/contracts/release_snapshot_bundle/release_snapshot_bundle.d.ts.map +1 -0
  96. package/dist/contracts/release_snapshot_bundle/release_snapshot_bundle.js +91 -0
  97. package/dist/contracts/release_snapshot_bundle/release_snapshot_bundle.js.map +1 -0
  98. package/dist/contracts/routed_stake/deps/royalty_pool/stake.d.ts +54 -0
  99. package/dist/contracts/routed_stake/deps/royalty_pool/stake.d.ts.map +1 -0
  100. package/dist/contracts/routed_stake/deps/royalty_pool/stake.js +37 -0
  101. package/dist/contracts/routed_stake/deps/royalty_pool/stake.js.map +1 -0
  102. package/dist/contracts/routed_stake/deps/std/type_name.d.ts +18 -0
  103. package/dist/contracts/routed_stake/deps/std/type_name.d.ts.map +1 -0
  104. package/dist/contracts/routed_stake/deps/std/type_name.js +20 -0
  105. package/dist/contracts/routed_stake/deps/std/type_name.js.map +1 -0
  106. package/dist/contracts/routed_stake/deps/sui/balance.d.ts +13 -0
  107. package/dist/contracts/routed_stake/deps/sui/balance.d.ts.map +1 -0
  108. package/dist/contracts/routed_stake/deps/sui/balance.js +15 -0
  109. package/dist/contracts/routed_stake/deps/sui/balance.js.map +1 -0
  110. package/dist/contracts/routed_stake/deps/sui/vec_map.d.ts +37 -0
  111. package/dist/contracts/routed_stake/deps/sui/vec_map.d.ts.map +1 -0
  112. package/dist/contracts/routed_stake/deps/sui/vec_map.js +28 -0
  113. package/dist/contracts/routed_stake/deps/sui/vec_map.js.map +1 -0
  114. package/dist/contracts/routed_stake/routed_stake.d.ts +356 -0
  115. package/dist/contracts/routed_stake/routed_stake.d.ts.map +1 -0
  116. package/dist/contracts/routed_stake/routed_stake.js +311 -0
  117. package/dist/contracts/routed_stake/routed_stake.js.map +1 -0
  118. package/dist/contracts/royalty_pool/pool.d.ts +27 -17
  119. package/dist/contracts/royalty_pool/pool.d.ts.map +1 -1
  120. package/dist/contracts/royalty_pool/pool.js +26 -17
  121. package/dist/contracts/royalty_pool/pool.js.map +1 -1
  122. package/dist/contracts/vault/deps/sui/bag.d.ts +35 -0
  123. package/dist/contracts/vault/deps/sui/bag.d.ts.map +1 -0
  124. package/dist/contracts/vault/deps/sui/bag.js +37 -0
  125. package/dist/contracts/vault/deps/sui/bag.js.map +1 -0
  126. package/dist/contracts/vault/deps/sui/borrow.d.ts +20 -0
  127. package/dist/contracts/vault/deps/sui/borrow.d.ts.map +1 -0
  128. package/dist/contracts/vault/deps/sui/borrow.js +21 -0
  129. package/dist/contracts/vault/deps/sui/borrow.js.map +1 -0
  130. package/dist/contracts/vault/vault.d.ts +276 -0
  131. package/dist/contracts/vault/vault.d.ts.map +1 -0
  132. package/dist/contracts/vault/vault.js +274 -0
  133. package/dist/contracts/vault/vault.js.map +1 -0
  134. package/dist/contracts.d.ts +14 -2
  135. package/dist/contracts.d.ts.map +1 -1
  136. package/dist/contracts.js +16 -7
  137. package/dist/contracts.js.map +1 -1
  138. package/dist/cover.d.ts +17 -3
  139. package/dist/cover.d.ts.map +1 -1
  140. package/dist/cover.js +43 -20
  141. package/dist/cover.js.map +1 -1
  142. package/dist/credits.d.ts +31 -12
  143. package/dist/credits.d.ts.map +1 -1
  144. package/dist/credits.js +41 -25
  145. package/dist/credits.js.map +1 -1
  146. package/dist/deployments.d.ts +31 -57
  147. package/dist/deployments.d.ts.map +1 -1
  148. package/dist/deployments.js +5 -53
  149. package/dist/deployments.js.map +1 -1
  150. package/dist/index.d.ts +4 -2
  151. package/dist/index.d.ts.map +1 -1
  152. package/dist/index.js +6 -5
  153. package/dist/index.js.map +1 -1
  154. package/dist/pressing.d.ts +8 -7
  155. package/dist/pressing.d.ts.map +1 -1
  156. package/dist/pressing.js +91 -32
  157. package/dist/pressing.js.map +1 -1
  158. package/dist/read/artist.js +3 -3
  159. package/dist/read/artist.js.map +1 -1
  160. package/dist/read/catalog.d.ts +14 -9
  161. package/dist/read/catalog.d.ts.map +1 -1
  162. package/dist/read/catalog.js +71 -37
  163. package/dist/read/catalog.js.map +1 -1
  164. package/dist/read/client.d.ts +4 -2
  165. package/dist/read/client.d.ts.map +1 -1
  166. package/dist/read/client.js +15 -4
  167. package/dist/read/client.js.map +1 -1
  168. package/dist/read/config.d.ts +14 -11
  169. package/dist/read/config.d.ts.map +1 -1
  170. package/dist/read/config.js +10 -37
  171. package/dist/read/config.js.map +1 -1
  172. package/dist/read/index.d.ts +2 -2
  173. package/dist/read/index.d.ts.map +1 -1
  174. package/dist/read/index.js +1 -1
  175. package/dist/read/index.js.map +1 -1
  176. package/dist/read/receipts.d.ts +24 -7
  177. package/dist/read/receipts.d.ts.map +1 -1
  178. package/dist/read/receipts.js +78 -25
  179. package/dist/read/receipts.js.map +1 -1
  180. package/dist/read/types.d.ts +43 -25
  181. package/dist/read/types.d.ts.map +1 -1
  182. package/dist/read/types.js +2 -2
  183. package/dist/read/types.js.map +1 -1
  184. package/dist/recording-extensions.d.ts +37 -0
  185. package/dist/recording-extensions.d.ts.map +1 -0
  186. package/dist/recording-extensions.js +61 -0
  187. package/dist/recording-extensions.js.map +1 -0
  188. package/dist/release-extensions.d.ts +92 -0
  189. package/dist/release-extensions.d.ts.map +1 -0
  190. package/dist/release-extensions.js +175 -0
  191. package/dist/release-extensions.js.map +1 -0
  192. package/dist/release-graph.d.ts +17 -26
  193. package/dist/release-graph.d.ts.map +1 -1
  194. package/dist/release-graph.js +55 -49
  195. package/dist/release-graph.js.map +1 -1
  196. package/dist/transactions.d.ts +43 -24
  197. package/dist/transactions.d.ts.map +1 -1
  198. package/dist/transactions.js +48 -27
  199. package/dist/transactions.js.map +1 -1
  200. package/dist/vault.d.ts +268 -0
  201. package/dist/vault.d.ts.map +1 -0
  202. package/dist/vault.js +389 -0
  203. package/dist/vault.js.map +1 -0
  204. package/package.json +17 -11
  205. package/src/client.ts +428 -61
  206. package/src/contracts/composition_routed_stake/composition_routed_stake.ts +346 -0
  207. package/src/contracts/composition_routed_stake/witness.ts +11 -0
  208. package/src/contracts/composition_royalty_pool/composition_royalty_pool.ts +151 -35
  209. package/src/contracts/composition_royalty_pool/witness.ts +7 -0
  210. package/src/contracts/genre/genre.ts +151 -0
  211. package/src/contracts/recording_advisory/recording_advisory.ts +315 -0
  212. package/src/contracts/recording_language/deps/language_code/language_code.ts +7 -0
  213. package/src/contracts/recording_language/recording_language.ts +237 -0
  214. package/src/contracts/recording_master_reference/deps/ori/walrus_data.ts +36 -0
  215. package/src/contracts/recording_master_reference/recording_master_reference.ts +181 -0
  216. package/src/contracts/recording_preview/deps/ori/walrus_data.ts +36 -0
  217. package/src/contracts/recording_preview/recording_preview.ts +154 -0
  218. package/src/contracts/recording_royalty_pool/recording_royalty_pool.ts +152 -35
  219. package/src/contracts/recording_royalty_pool/witness.ts +7 -0
  220. package/src/contracts/release_description/release_description.ts +167 -0
  221. package/src/contracts/release_dsp_link/release_dsp_link.ts +813 -0
  222. package/src/contracts/release_genre/deps/per_track/per_track.ts +36 -0
  223. package/src/contracts/release_genre/release_genre.ts +314 -0
  224. package/src/contracts/release_kind/release_kind.ts +153 -0
  225. package/src/contracts/release_revenue_distributor/release_revenue_distributor.ts +178 -0
  226. package/src/contracts/release_revenue_distributor/witness.ts +11 -0
  227. package/src/contracts/release_snapshot_bundle/deps/ori/walrus_data.ts +36 -0
  228. package/src/contracts/release_snapshot_bundle/release_snapshot_bundle.ts +124 -0
  229. package/src/contracts/routed_stake/deps/royalty_pool/stake.ts +39 -0
  230. package/src/contracts/routed_stake/deps/std/type_name.ts +22 -0
  231. package/src/contracts/routed_stake/deps/sui/balance.ts +17 -0
  232. package/src/contracts/routed_stake/deps/sui/vec_map.ts +33 -0
  233. package/src/contracts/routed_stake/routed_stake.ts +508 -0
  234. package/src/contracts/royalty_pool/pool.ts +34 -24
  235. package/src/contracts/vault/deps/sui/bag.ts +39 -0
  236. package/src/contracts/vault/deps/sui/borrow.ts +25 -0
  237. package/src/contracts/vault/vault.ts +454 -0
  238. package/src/contracts.ts +17 -9
  239. package/src/cover.ts +62 -37
  240. package/src/credits.ts +64 -51
  241. package/src/deployments.ts +36 -97
  242. package/src/index.ts +11 -5
  243. package/src/pressing.ts +135 -39
  244. package/src/read/artist.ts +3 -3
  245. package/src/read/catalog.ts +99 -44
  246. package/src/read/client.ts +20 -4
  247. package/src/read/config.ts +23 -49
  248. package/src/read/index.ts +3 -1
  249. package/src/read/receipts.ts +103 -26
  250. package/src/read/types.ts +44 -27
  251. package/src/recording-extensions.ts +102 -0
  252. package/src/release-extensions.ts +286 -0
  253. package/src/release-graph.ts +68 -81
  254. package/src/transactions.ts +79 -53
  255. package/src/vault.ts +777 -0
  256. package/dist/contracts/miso_drop/drop.d.ts +0 -550
  257. package/dist/contracts/miso_drop/drop.d.ts.map +0 -1
  258. package/dist/contracts/miso_drop/drop.js +0 -523
  259. package/dist/contracts/miso_drop/drop.js.map +0 -1
  260. package/dist/contracts/release_registry/release_registry.d.ts +0 -114
  261. package/dist/contracts/release_registry/release_registry.d.ts.map +0 -1
  262. package/dist/contracts/release_registry/release_registry.js +0 -119
  263. package/dist/contracts/release_registry/release_registry.js.map +0 -1
  264. package/dist/drop.d.ts +0 -127
  265. package/dist/drop.d.ts.map +0 -1
  266. package/dist/drop.js +0 -202
  267. package/dist/drop.js.map +0 -1
  268. package/dist/extensions/royalty-pool.d.ts +0 -32
  269. package/dist/extensions/royalty-pool.d.ts.map +0 -1
  270. package/dist/extensions/royalty-pool.js +0 -33
  271. package/dist/extensions/royalty-pool.js.map +0 -1
  272. package/src/contracts/miso_drop/drop.ts +0 -798
  273. package/src/contracts/release_registry/release_registry.ts +0 -160
  274. package/src/drop.ts +0 -376
  275. package/src/extensions/royalty-pool.ts +0 -90
@@ -0,0 +1,106 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ /**
5
+ * Vault-authorized release revenue routing for Miso.
6
+ *
7
+ * Revenue is split from the immutable Release tracklist and sent to each track's
8
+ * Recording address. A caller can select only the funds to receive or the amount
9
+ * to redeem; it cannot select recipients or alter split amounts. Recording-level
10
+ * plugins may subsequently fold those funds into canonical Recording royalty
11
+ * pools.
12
+ */
13
+ import { MoveStruct, type RawTransactionArgument } from '../utils/index.js';
14
+ import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
15
+ export declare const ReleaseTrackRevenueDistributedEvent: MoveStruct<{
16
+ release_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
17
+ track_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
18
+ recording_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
19
+ amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
20
+ }, "@local-pkg/release_revenue_distributor::release_revenue_distributor::ReleaseTrackRevenueDistributedEvent<phantom Currency>">;
21
+ export declare const ReleaseRevenueDistributedEvent: MoveStruct<{
22
+ release_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
23
+ total_input: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
24
+ total_distributed: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
25
+ remainder: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
26
+ }, "@local-pkg/release_revenue_distributor::release_revenue_distributor::ReleaseRevenueDistributedEvent<phantom Currency>">;
27
+ export interface InstallArguments {
28
+ vault: RawTransactionArgument<string>;
29
+ vaultAdminCap: RawTransactionArgument<string>;
30
+ }
31
+ export interface InstallOptions {
32
+ package?: string;
33
+ arguments: InstallArguments | [
34
+ vault: RawTransactionArgument<string>,
35
+ vaultAdminCap: RawTransactionArgument<string>
36
+ ];
37
+ }
38
+ /** Authorize this package on a Release capability Vault. */
39
+ export declare function install(options: InstallOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
40
+ export interface UninstallArguments {
41
+ vault: RawTransactionArgument<string>;
42
+ vaultAdminCap: RawTransactionArgument<string>;
43
+ }
44
+ export interface UninstallOptions {
45
+ package?: string;
46
+ arguments: UninstallArguments | [
47
+ vault: RawTransactionArgument<string>,
48
+ vaultAdminCap: RawTransactionArgument<string>
49
+ ];
50
+ }
51
+ /** Revoke this package from a Release capability Vault. */
52
+ export declare function uninstall(options: UninstallOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
53
+ export interface RedeemAndDistributeArguments {
54
+ vault: RawTransactionArgument<string>;
55
+ release: RawTransactionArgument<string>;
56
+ value: RawTransactionArgument<number | bigint>;
57
+ }
58
+ export interface RedeemAndDistributeOptions {
59
+ package?: string;
60
+ arguments: RedeemAndDistributeArguments | [
61
+ vault: RawTransactionArgument<string>,
62
+ release: RawTransactionArgument<string>,
63
+ value: RawTransactionArgument<number | bigint>
64
+ ];
65
+ typeArguments: [
66
+ string
67
+ ];
68
+ }
69
+ /**
70
+ * Redeem `value` from the Release address and distribute it according to the
71
+ * immutable tracklist. Anyone may crank this after installation.
72
+ */
73
+ export declare function redeemAndDistribute(options: RedeemAndDistributeOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
74
+ export interface ReceiveAndDistributeArguments {
75
+ vault: RawTransactionArgument<string>;
76
+ release: RawTransactionArgument<string>;
77
+ coins: TransactionArgument;
78
+ }
79
+ export interface ReceiveAndDistributeOptions {
80
+ package?: string;
81
+ arguments: ReceiveAndDistributeArguments | [
82
+ vault: RawTransactionArgument<string>,
83
+ release: RawTransactionArgument<string>,
84
+ coins: TransactionArgument
85
+ ];
86
+ typeArguments: [
87
+ string
88
+ ];
89
+ }
90
+ /**
91
+ * Receive selected `Coin<Currency>` objects sent to the Release and distribute
92
+ * their combined value according to the immutable tracklist. Anyone may crank this
93
+ * after installation.
94
+ */
95
+ export declare function receiveAndDistribute(options: ReceiveAndDistributeOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
96
+ export interface IsInstalledArguments {
97
+ vault: RawTransactionArgument<string>;
98
+ }
99
+ export interface IsInstalledOptions {
100
+ package?: string;
101
+ arguments: IsInstalledArguments | [
102
+ vault: RawTransactionArgument<string>
103
+ ];
104
+ }
105
+ export declare function isInstalled(options: IsInstalledOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
106
+ //# sourceMappingURL=release_revenue_distributor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"release_revenue_distributor.d.ts","sourceRoot":"","sources":["../../../src/contracts/release_revenue_distributor/release_revenue_distributor.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;GAQG;AAEH,OAAO,EAAE,UAAU,EAA0B,KAAK,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEpG,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEtF,eAAO,MAAM,mCAAmC;;;;;gIAKxC,CAAC;AACT,eAAO,MAAM,8BAA8B;;;;;2HAKnC,CAAC;AACT,MAAM,WAAW,gBAAgB;IAC7B,KAAK,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;IACtC,aAAa,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;CACjD;AACD,MAAM,WAAW,cAAc;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,gBAAgB,GAAG;QAC1B,KAAK,EAA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B,CAAC,MAAM,CAAC,CAAC;IACtC,OAAO,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;IACxC,KAAK,EAAE,mBAAmB,CAAC;CAC9B;AACD,MAAM,WAAW,2BAA2B;IACxC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,6BAA6B,GAAG;QACvC,KAAK,EAAE,sBAAsB,CAAC,MAAM,CAAC;QACrC,OAAO,EAAE,sBAAsB,CAAC,MAAM,CAAC;QACvC,KAAK,EAAE,mBAAmB;KAC7B,CAAC;IACF,aAAa,EAAE;QACX,MAAM;KACT,CAAC;CACL;AACD;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,2BAA2B,IAQ7D,IAAI,WAAW,0DAO1B;AACD,MAAM,WAAW,oBAAoB;IACjC,KAAK,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;CACzC;AACD,MAAM,WAAW,kBAAkB;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,oBAAoB,GAAG;QAC9B,KAAK,EAAE,sBAAsB,CAAC,MAAM,CAAC;KACxC,CAAC;CACL;AACD,wBAAgB,WAAW,CAAC,OAAO,EAAE,kBAAkB,IAM3C,IAAI,WAAW,0DAM1B"}
@@ -0,0 +1,113 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ /**
5
+ * Vault-authorized release revenue routing for Miso.
6
+ *
7
+ * Revenue is split from the immutable Release tracklist and sent to each track's
8
+ * Recording address. A caller can select only the funds to receive or the amount
9
+ * to redeem; it cannot select recipients or alter split amounts. Recording-level
10
+ * plugins may subsequently fold those funds into canonical Recording royalty
11
+ * pools.
12
+ */
13
+ import { MoveStruct, normalizeMoveArguments } from '../utils/index.js';
14
+ import { bcs } from '@mysten/sui/bcs';
15
+ import {} from '@mysten/sui/transactions';
16
+ const $moduleName = '@local-pkg/release_revenue_distributor::release_revenue_distributor';
17
+ export const ReleaseTrackRevenueDistributedEvent = new MoveStruct({ name: `${$moduleName}::ReleaseTrackRevenueDistributedEvent<phantom Currency>`, fields: {
18
+ release_id: bcs.Address,
19
+ track_index: bcs.u64(),
20
+ recording_id: bcs.Address,
21
+ amount: bcs.u64()
22
+ } });
23
+ export const ReleaseRevenueDistributedEvent = new MoveStruct({ name: `${$moduleName}::ReleaseRevenueDistributedEvent<phantom Currency>`, fields: {
24
+ release_id: bcs.Address,
25
+ total_input: bcs.u64(),
26
+ total_distributed: bcs.u64(),
27
+ remainder: bcs.u64()
28
+ } });
29
+ /** Authorize this package on a Release capability Vault. */
30
+ export function install(options) {
31
+ const packageAddress = options.package ?? '@local-pkg/release_revenue_distributor';
32
+ const argumentsTypes = [
33
+ null,
34
+ null
35
+ ];
36
+ const parameterNames = ["vault", "vaultAdminCap"];
37
+ return (tx) => tx.moveCall({
38
+ package: packageAddress,
39
+ module: 'release_revenue_distributor',
40
+ function: 'install',
41
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
42
+ });
43
+ }
44
+ /** Revoke this package from a Release capability Vault. */
45
+ export function uninstall(options) {
46
+ const packageAddress = options.package ?? '@local-pkg/release_revenue_distributor';
47
+ const argumentsTypes = [
48
+ null,
49
+ null
50
+ ];
51
+ const parameterNames = ["vault", "vaultAdminCap"];
52
+ return (tx) => tx.moveCall({
53
+ package: packageAddress,
54
+ module: 'release_revenue_distributor',
55
+ function: 'uninstall',
56
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
57
+ });
58
+ }
59
+ /**
60
+ * Redeem `value` from the Release address and distribute it according to the
61
+ * immutable tracklist. Anyone may crank this after installation.
62
+ */
63
+ export function redeemAndDistribute(options) {
64
+ const packageAddress = options.package ?? '@local-pkg/release_revenue_distributor';
65
+ const argumentsTypes = [
66
+ null,
67
+ null,
68
+ 'u64'
69
+ ];
70
+ const parameterNames = ["vault", "release", "value"];
71
+ return (tx) => tx.moveCall({
72
+ package: packageAddress,
73
+ module: 'release_revenue_distributor',
74
+ function: 'redeem_and_distribute',
75
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
76
+ typeArguments: options.typeArguments
77
+ });
78
+ }
79
+ /**
80
+ * Receive selected `Coin<Currency>` objects sent to the Release and distribute
81
+ * their combined value according to the immutable tracklist. Anyone may crank this
82
+ * after installation.
83
+ */
84
+ export function receiveAndDistribute(options) {
85
+ const packageAddress = options.package ?? '@local-pkg/release_revenue_distributor';
86
+ const argumentsTypes = [
87
+ null,
88
+ null,
89
+ 'vector<null>'
90
+ ];
91
+ const parameterNames = ["vault", "release", "coins"];
92
+ return (tx) => tx.moveCall({
93
+ package: packageAddress,
94
+ module: 'release_revenue_distributor',
95
+ function: 'receive_and_distribute',
96
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
97
+ typeArguments: options.typeArguments
98
+ });
99
+ }
100
+ export function isInstalled(options) {
101
+ const packageAddress = options.package ?? '@local-pkg/release_revenue_distributor';
102
+ const argumentsTypes = [
103
+ null
104
+ ];
105
+ const parameterNames = ["vault"];
106
+ return (tx) => tx.moveCall({
107
+ package: packageAddress,
108
+ module: 'release_revenue_distributor',
109
+ function: 'is_installed',
110
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
111
+ });
112
+ }
113
+ //# sourceMappingURL=release_revenue_distributor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"release_revenue_distributor.js","sourceRoot":"","sources":["../../../src/contracts/release_revenue_distributor/release_revenue_distributor.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;GAQG;AAEH,OAAO,EAAE,UAAU,EAAE,sBAAsB,EAA+B,MAAM,mBAAmB,CAAC;AACpG,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,EAA8C,MAAM,0BAA0B,CAAC;AACtF,MAAM,WAAW,GAAG,qEAAqE,CAAC;AAC1F,MAAM,CAAC,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Ac;QACvB,MAAM,EAAE,6BAA6B;QACrC,QAAQ,EAAE,wBAAwB;QAClC,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;QACpF,aAAa,EAAE,OAAO,CAAC,aAAa;KACvC,CAAC,CAAC;AACP,CAAC;AAUD,MAAM,UAAU,WAAW,CAAC,OAA2B;IACnD,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,IAAI,wCAAwC,CAAC;IACnF,MAAM,cAAc,GAAG;QACnB,IAAI;KACqB,CAAC;IAC9B,MAAM,cAAc,GAAG,CAAC,OAAO,CAAC,CAAC;IACjC,OAAO,CAAC,EAAe,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC;QACpC,OAAO,EAAE,cAAc;QACvB,MAAM,EAAE,6BAA6B;QACrC,QAAQ,EAAE,cAAc;QACxB,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;KACvF,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ /** Canonical installation identity for the release revenue distributor. */
5
+ import { MoveTuple } from '../utils/index.js';
6
+ export declare const Witness: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">], "@local-pkg/release_revenue_distributor::witness::Witness">;
7
+ //# sourceMappingURL=witness.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"witness.d.ts","sourceRoot":"","sources":["../../../src/contracts/release_revenue_distributor/witness.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE,2EAA2E;AAE3E,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAG9C,eAAO,MAAM,OAAO,+IAA2E,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ /** Canonical installation identity for the release revenue distributor. */
5
+ import { MoveTuple } from '../utils/index.js';
6
+ import { bcs } from '@mysten/sui/bcs';
7
+ const $moduleName = '@local-pkg/release_revenue_distributor::witness';
8
+ export const Witness = new MoveTuple({ name: `${$moduleName}::Witness`, fields: [bcs.bool()] });
9
+ //# sourceMappingURL=witness.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"witness.js","sourceRoot":"","sources":["../../../src/contracts/release_revenue_distributor/witness.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE,2EAA2E;AAE3E,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,MAAM,WAAW,GAAG,iDAAiD,CAAC;AACtE,MAAM,CAAC,MAAM,OAAO,GAAG,IAAI,SAAS,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,WAAW,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC"}
@@ -0,0 +1,52 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ import { MoveEnum, MoveStruct, MoveTuple } from '../../../utils/index.js';
5
+ /**
6
+ * Confidentiality of a stored blob: cleartext, or encrypted with an access policy.
7
+ * Only applies to standalone blobs — a quilt patch is a slice of a shared quilt
8
+ * blob and can never be the direct product of an encryption.
9
+ */
10
+ export declare const Confidentiality: MoveEnum<{
11
+ /** The blob is stored in the clear. */
12
+ Unencrypted: null;
13
+ /**
14
+ * The blob is AES-encrypted. `dek` is the AES data-encryption key sealed via Seal
15
+ * — a small ciphertext stored on-chain, not the blob bytes. The sealed DEK is
16
+ * itself a Seal `EncryptedObject`, which already carries the decryption-policy
17
+ * package id, so no separate policy field is stored here. Decryption is gated by
18
+ * that policy package's `seal_approve`, not by this library.
19
+ */
20
+ Encrypted: MoveStruct<{
21
+ dek: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
22
+ length: number;
23
+ }, string>;
24
+ }, "Confidentiality.Encrypted">;
25
+ }, "ori::walrus_data::Confidentiality">;
26
+ /** Represents either a standalone Walrus blob or a patch within a quilt. */
27
+ export declare const WalrusData: MoveEnum<{
28
+ /** A standalone Walrus blob. Fields: blob_id, confidentiality. */
29
+ Blob: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">, MoveEnum<{
30
+ /** The blob is stored in the clear. */
31
+ Unencrypted: null;
32
+ /**
33
+ * The blob is AES-encrypted. `dek` is the AES data-encryption key sealed via Seal
34
+ * — a small ciphertext stored on-chain, not the blob bytes. The sealed DEK is
35
+ * itself a Seal `EncryptedObject`, which already carries the decryption-policy
36
+ * package id, so no separate policy field is stored here. Decryption is gated by
37
+ * that policy package's `seal_approve`, not by this library.
38
+ */
39
+ Encrypted: MoveStruct<{
40
+ dek: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
41
+ length: number;
42
+ }, string>;
43
+ }, "Confidentiality.Encrypted">;
44
+ }, "ori::walrus_data::Confidentiality">], "WalrusData.Blob">;
45
+ /**
46
+ * A patch within a Walrus quilt. Fields: quilt_id, version, start_index,
47
+ * end_index. Always a plaintext reference into a (possibly separately encrypted)
48
+ * quilt blob.
49
+ */
50
+ QuiltPatch: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">, import("@mysten/sui/bcs").BcsType<number, number, "u8">, import("@mysten/sui/bcs").BcsType<number, number, "u16">, import("@mysten/sui/bcs").BcsType<number, number, "u16">], "WalrusData.QuiltPatch">;
51
+ }, "ori::walrus_data::WalrusData">;
52
+ //# sourceMappingURL=walrus_data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"walrus_data.d.ts","sourceRoot":"","sources":["../../../../../src/contracts/release_snapshot_bundle/deps/ori/walrus_data.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAChE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAG1E;;;;GAIG;AACH,eAAO,MAAM,eAAe;IACpB,uCAAuC;;IAEvC;;;;;;OAMG;;;;;;uCAIH,CAAC;AACT,4EAA4E;AAC5E,eAAO,MAAM,UAAU;IACf,kEAAkE;;QAflE,uCAAuC;;QAEvC;;;;;;WAMG;;;;;;;IASH;;;;OAIG;;kCAEH,CAAC"}
@@ -0,0 +1,37 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ import { MoveEnum, MoveStruct, MoveTuple } from '../../../utils/index.js';
5
+ import { bcs } from '@mysten/sui/bcs';
6
+ const $moduleName = 'ori::walrus_data';
7
+ /**
8
+ * Confidentiality of a stored blob: cleartext, or encrypted with an access policy.
9
+ * Only applies to standalone blobs — a quilt patch is a slice of a shared quilt
10
+ * blob and can never be the direct product of an encryption.
11
+ */
12
+ export const Confidentiality = new MoveEnum({ name: `${$moduleName}::Confidentiality`, fields: {
13
+ /** The blob is stored in the clear. */
14
+ Unencrypted: null,
15
+ /**
16
+ * The blob is AES-encrypted. `dek` is the AES data-encryption key sealed via Seal
17
+ * — a small ciphertext stored on-chain, not the blob bytes. The sealed DEK is
18
+ * itself a Seal `EncryptedObject`, which already carries the decryption-policy
19
+ * package id, so no separate policy field is stored here. Decryption is gated by
20
+ * that policy package's `seal_approve`, not by this library.
21
+ */
22
+ Encrypted: new MoveStruct({ name: `Confidentiality.Encrypted`, fields: {
23
+ dek: bcs.vector(bcs.u8())
24
+ } })
25
+ } });
26
+ /** Represents either a standalone Walrus blob or a patch within a quilt. */
27
+ export const WalrusData = new MoveEnum({ name: `${$moduleName}::WalrusData`, fields: {
28
+ /** A standalone Walrus blob. Fields: blob_id, confidentiality. */
29
+ Blob: new MoveTuple({ name: `WalrusData.Blob`, fields: [bcs.u256(), Confidentiality] }),
30
+ /**
31
+ * A patch within a Walrus quilt. Fields: quilt_id, version, start_index,
32
+ * end_index. Always a plaintext reference into a (possibly separately encrypted)
33
+ * quilt blob.
34
+ */
35
+ QuiltPatch: new MoveTuple({ name: `WalrusData.QuiltPatch`, fields: [bcs.u256(), bcs.u8(), bcs.u16(), bcs.u16()] })
36
+ } });
37
+ //# sourceMappingURL=walrus_data.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"walrus_data.js","sourceRoot":"","sources":["../../../../../src/contracts/release_snapshot_bundle/deps/ori/walrus_data.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAChE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,MAAM,WAAW,GAAG,kBAAkB,CAAC;AACvC;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,QAAQ,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,mBAAmB,EAAE,MAAM,EAAE;QACvF,uCAAuC;QACvC,WAAW,EAAE,IAAI;QACjB;;;;;;WAMG;QACH,SAAS,EAAE,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,2BAA2B,EAAE,MAAM,EAAE;gBAC/D,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC;aAC5B,EAAE,CAAC;KACX,EAAE,CAAC,CAAC;AACT,4EAA4E;AAC5E,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,QAAQ,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,cAAc,EAAE,MAAM,EAAE;QAC7E,kEAAkE;QAClE,IAAI,EAAE,IAAI,SAAS,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,eAAe,CAAC,EAAE,CAAC;QACvF;;;;WAIG;QACH,UAAU,EAAE,IAAI,SAAS,CAAC,EAAE,IAAI,EAAE,uBAAuB,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,GAAG,CAAC,EAAE,EAAE,EAAE,GAAG,CAAC,GAAG,EAAE,EAAE,GAAG,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC;KACrH,EAAE,CAAC,CAAC"}
@@ -0,0 +1,91 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ /**
5
+ * The on-chain pointer to a release's snapshot bundle: which Walrus quilt is this
6
+ * release's bundle.
7
+ *
8
+ * A snapshot bundle is curated bonus material a buyer gets access to — one Walrus
9
+ * quilt, assembled after the fact. The quilt is self-describing: its plaintext
10
+ * `manifest.json` patch carries all the metadata, its media patches are
11
+ * chunk-encrypted under one AES envelope key, and that key travels Seal-wrapped
12
+ * inside the quilt as its `key.seal` patch. This package therefore stores none of
13
+ * that — no ciphertext, no metadata, no access policy (unlocking by holding a
14
+ * Record is `miso_record_acl`'s concern, in miso-record-extensions). The stored
15
+ * value is the quilt's `WalrusData` blob reference, and nothing else.
16
+ *
17
+ * The slot is write-once: `set_snapshot_bundle` aborts with `EBundleAlreadySet` if
18
+ * a bundle is already set, and there is NO unset, NO remove, and NO replace
19
+ * function. That absence is a product guarantee: the bundle a buyer's Record
20
+ * points at can never be swapped out from under them. More content later means a
21
+ * new Release.
22
+ */
23
+ import { MoveTuple, MoveStruct, type RawTransactionArgument } from '../utils/index.js';
24
+ import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
25
+ export declare const ExtensionKey: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">], "@local-pkg/release_snapshot_bundle::release_snapshot_bundle::ExtensionKey">;
26
+ export declare const SnapshotBundleSetEvent: MoveStruct<{
27
+ release_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
28
+ bundle: import("../utils/index.js").MoveEnum<{
29
+ Blob: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">, import("../utils/index.js").MoveEnum<{
30
+ Unencrypted: null;
31
+ Encrypted: MoveStruct<{
32
+ dek: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
33
+ length: number;
34
+ }, string>;
35
+ }, "Confidentiality.Encrypted">;
36
+ }, "ori::walrus_data::Confidentiality">], "WalrusData.Blob">;
37
+ QuiltPatch: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">, import("@mysten/sui/bcs").BcsType<number, number, "u8">, import("@mysten/sui/bcs").BcsType<number, number, "u16">, import("@mysten/sui/bcs").BcsType<number, number, "u16">], "WalrusData.QuiltPatch">;
38
+ }, "ori::walrus_data::WalrusData">;
39
+ }, "@local-pkg/release_snapshot_bundle::release_snapshot_bundle::SnapshotBundleSetEvent">;
40
+ export interface SetSnapshotBundleArguments {
41
+ self: RawTransactionArgument<string>;
42
+ cap: RawTransactionArgument<string>;
43
+ bundle: TransactionArgument;
44
+ }
45
+ export interface SetSnapshotBundleOptions {
46
+ package?: string;
47
+ arguments: SetSnapshotBundleArguments | [
48
+ self: RawTransactionArgument<string>,
49
+ cap: RawTransactionArgument<string>,
50
+ bundle: TransactionArgument
51
+ ];
52
+ }
53
+ /**
54
+ * Sets the release's snapshot bundle — once. Aborts with `EBundleAlreadySet` if a
55
+ * bundle is already set; there is no way to unset or replace it.
56
+ *
57
+ * The reference must be a plaintext standalone blob. A quilt patch is a slice of
58
+ * some other quilt, not the bundle's own quilt blob. And the outer quilt blob is
59
+ * plaintext by design: its `manifest.json` patch must be readable, encryption is
60
+ * per-patch inside the quilt, and the Seal-wrapped envelope key travels as the
61
+ * quilt's `key.seal` patch — so an encrypted outer reference is structurally
62
+ * wrong. With no replace function either mistake would be permanent, which is why
63
+ * both checks live on-chain rather than in the client.
64
+ */
65
+ export declare function setSnapshotBundle(options: SetSnapshotBundleOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
66
+ export interface HasSnapshotBundleArguments {
67
+ self: RawTransactionArgument<string>;
68
+ }
69
+ export interface HasSnapshotBundleOptions {
70
+ package?: string;
71
+ arguments: HasSnapshotBundleArguments | [
72
+ self: RawTransactionArgument<string>
73
+ ];
74
+ }
75
+ /** Returns whether a snapshot bundle is set on this release. */
76
+ export declare function hasSnapshotBundle(options: HasSnapshotBundleOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
77
+ export interface SnapshotBundleArguments {
78
+ self: RawTransactionArgument<string>;
79
+ }
80
+ export interface SnapshotBundleOptions {
81
+ package?: string;
82
+ arguments: SnapshotBundleArguments | [
83
+ self: RawTransactionArgument<string>
84
+ ];
85
+ }
86
+ /**
87
+ * The release's snapshot bundle reference. Aborts with `ENoSnapshotBundle` if none
88
+ * is set.
89
+ */
90
+ export declare function snapshotBundle(options: SnapshotBundleOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
91
+ //# sourceMappingURL=release_snapshot_bundle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"release_snapshot_bundle.d.ts","sourceRoot":"","sources":["../../../src/contracts/release_snapshot_bundle/release_snapshot_bundle.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAA0B,KAAK,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAE/G,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAGtF,eAAO,MAAM,YAAY,gKAAgF,CAAC;AAC1G,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;yFAG3B,CAAC;AACT,MAAM,WAAW,0BAA0B;IACvC,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;IACrC,GAAG,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;IACpC,MAAM,EAAE,mBAAmB,CAAC;CAC/B;AACD,MAAM,WAAW,wBAAwB;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,0BAA0B,GAAG;QACpC,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;QACpC,GAAG,EAAE,sBAAsB,CAAC,MAAM,CAAC;QACnC,MAAM,EAAE,mBAAmB;KAC9B,CAAC;CACL;AACD;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,wBAAwB,IAQvD,IAAI,WAAW,0DAM1B;AACD,MAAM,WAAW,0BAA0B;IACvC,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;CACxC;AACD,MAAM,WAAW,wBAAwB;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,0BAA0B,GAAG;QACpC,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;KACvC,CAAC;CACL;AACD,gEAAgE;AAChE,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,wBAAwB,IAMvD,IAAI,WAAW,0DAM1B;AACD,MAAM,WAAW,uBAAuB;IACpC,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;CACxC;AACD,MAAM,WAAW,qBAAqB;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,uBAAuB,GAAG;QACjC,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;KACvC,CAAC;CACL;AACD;;;GAGG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,qBAAqB,IAMjD,IAAI,WAAW,0DAM1B"}
@@ -0,0 +1,91 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ /**
5
+ * The on-chain pointer to a release's snapshot bundle: which Walrus quilt is this
6
+ * release's bundle.
7
+ *
8
+ * A snapshot bundle is curated bonus material a buyer gets access to — one Walrus
9
+ * quilt, assembled after the fact. The quilt is self-describing: its plaintext
10
+ * `manifest.json` patch carries all the metadata, its media patches are
11
+ * chunk-encrypted under one AES envelope key, and that key travels Seal-wrapped
12
+ * inside the quilt as its `key.seal` patch. This package therefore stores none of
13
+ * that — no ciphertext, no metadata, no access policy (unlocking by holding a
14
+ * Record is `miso_record_acl`'s concern, in miso-record-extensions). The stored
15
+ * value is the quilt's `WalrusData` blob reference, and nothing else.
16
+ *
17
+ * The slot is write-once: `set_snapshot_bundle` aborts with `EBundleAlreadySet` if
18
+ * a bundle is already set, and there is NO unset, NO remove, and NO replace
19
+ * function. That absence is a product guarantee: the bundle a buyer's Record
20
+ * points at can never be swapped out from under them. More content later means a
21
+ * new Release.
22
+ */
23
+ import { MoveTuple, MoveStruct, normalizeMoveArguments } from '../utils/index.js';
24
+ import { bcs } from '@mysten/sui/bcs';
25
+ import {} from '@mysten/sui/transactions';
26
+ import * as walrus_data from './deps/ori/walrus_data.js';
27
+ const $moduleName = '@local-pkg/release_snapshot_bundle::release_snapshot_bundle';
28
+ export const ExtensionKey = new MoveTuple({ name: `${$moduleName}::ExtensionKey`, fields: [bcs.bool()] });
29
+ export const SnapshotBundleSetEvent = new MoveStruct({ name: `${$moduleName}::SnapshotBundleSetEvent`, fields: {
30
+ release_id: bcs.Address,
31
+ bundle: walrus_data.WalrusData
32
+ } });
33
+ /**
34
+ * Sets the release's snapshot bundle — once. Aborts with `EBundleAlreadySet` if a
35
+ * bundle is already set; there is no way to unset or replace it.
36
+ *
37
+ * The reference must be a plaintext standalone blob. A quilt patch is a slice of
38
+ * some other quilt, not the bundle's own quilt blob. And the outer quilt blob is
39
+ * plaintext by design: its `manifest.json` patch must be readable, encryption is
40
+ * per-patch inside the quilt, and the Seal-wrapped envelope key travels as the
41
+ * quilt's `key.seal` patch — so an encrypted outer reference is structurally
42
+ * wrong. With no replace function either mistake would be permanent, which is why
43
+ * both checks live on-chain rather than in the client.
44
+ */
45
+ export function setSnapshotBundle(options) {
46
+ const packageAddress = options.package ?? '@local-pkg/release_snapshot_bundle';
47
+ const argumentsTypes = [
48
+ null,
49
+ null,
50
+ null
51
+ ];
52
+ const parameterNames = ["self", "cap", "bundle"];
53
+ return (tx) => tx.moveCall({
54
+ package: packageAddress,
55
+ module: 'release_snapshot_bundle',
56
+ function: 'set_snapshot_bundle',
57
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
58
+ });
59
+ }
60
+ /** Returns whether a snapshot bundle is set on this release. */
61
+ export function hasSnapshotBundle(options) {
62
+ const packageAddress = options.package ?? '@local-pkg/release_snapshot_bundle';
63
+ const argumentsTypes = [
64
+ null
65
+ ];
66
+ const parameterNames = ["self"];
67
+ return (tx) => tx.moveCall({
68
+ package: packageAddress,
69
+ module: 'release_snapshot_bundle',
70
+ function: 'has_snapshot_bundle',
71
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
72
+ });
73
+ }
74
+ /**
75
+ * The release's snapshot bundle reference. Aborts with `ENoSnapshotBundle` if none
76
+ * is set.
77
+ */
78
+ export function snapshotBundle(options) {
79
+ const packageAddress = options.package ?? '@local-pkg/release_snapshot_bundle';
80
+ const argumentsTypes = [
81
+ null
82
+ ];
83
+ const parameterNames = ["self"];
84
+ return (tx) => tx.moveCall({
85
+ package: packageAddress,
86
+ module: 'release_snapshot_bundle',
87
+ function: 'snapshot_bundle',
88
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
89
+ });
90
+ }
91
+ //# sourceMappingURL=release_snapshot_bundle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"release_snapshot_bundle.js","sourceRoot":"","sources":["../../../src/contracts/release_snapshot_bundle/release_snapshot_bundle.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,sBAAsB,EAA+B,MAAM,mBAAmB,CAAC;AAC/G,OAAO,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C;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,yBAAyB;QACjC,QAAQ,EAAE,qBAAqB;QAC/B,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;KACvF,CAAC,CAAC;AACP,CAAC;AAUD;;;GAGG;AACH,MAAM,UAAU,cAAc,CAAC,OAA8B;IACzD,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,IAAI,oCAAoC,CAAC;IAC/E,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,yBAAyB;QACjC,QAAQ,EAAE,iBAAiB;QAC3B,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;KACvF,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,54 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ /**
5
+ * A position holding share tokens registered against a `RoyaltyPool`.
6
+ *
7
+ * Stakes are owned objects with an immutable balance — to increase a holder's
8
+ * total staked amount, mint additional Stake objects rather than modify an
9
+ * existing one. This mirrors Sui's native staking model.
10
+ *
11
+ * Each stake tracks the royalty pools it is currently registered with via an
12
+ * inline `VecMap<TypeName, Registration>`, keyed by the pool's `Currency`
13
+ * `TypeName`. The stake cannot be destroyed while any registrations remain. Pool
14
+ * registrations are mutated by `royalty_pool::pool` through the package-private
15
+ * accessors below.
16
+ */
17
+ import { MoveStruct } from '../../../utils/index.js';
18
+ export declare const Registration: MoveStruct<{
19
+ pool_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
20
+ last_claim_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
21
+ }, "royalty_pool::stake::Registration">;
22
+ export declare const Stake: MoveStruct<{
23
+ id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
24
+ /** The staked balance. Immutable after creation. */
25
+ balance: MoveStruct<{
26
+ value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
27
+ }, "0x2::balance::Balance<phantom T>">;
28
+ /**
29
+ * Active royalty-pool registrations, keyed by `Currency` `TypeName`. Must be empty
30
+ * to destroy.
31
+ */
32
+ registrations: MoveStruct<{
33
+ contents: import("@mysten/sui/bcs").BcsType<{
34
+ key: {
35
+ name: string;
36
+ };
37
+ value: {
38
+ pool_id: string;
39
+ last_claim_index: string;
40
+ };
41
+ }[], Iterable<{
42
+ key: {
43
+ name: string;
44
+ };
45
+ value: {
46
+ pool_id: string | Uint8Array<ArrayBufferLike>;
47
+ last_claim_index: string | number | bigint;
48
+ };
49
+ }> & {
50
+ length: number;
51
+ }, string>;
52
+ }, "0x2::vec_map::VecMap<std::type_name::TypeName, royalty_pool::stake::Registration>">;
53
+ }, "royalty_pool::stake::Stake<phantom Share>">;
54
+ //# sourceMappingURL=stake.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stake.d.ts","sourceRoot":"","sources":["../../../../../src/contracts/routed_stake/deps/royalty_pool/stake.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAMrD,eAAO,MAAM,YAAY;;;uCAGjB,CAAC;AACT,eAAO,MAAM,KAAK;;IAEV,oDAAoD;;;;IAEpD;;;OAGG;;;;;;;;;;;;;;;;;;;;;;+CAEH,CAAC"}