@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
@@ -1,523 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- /**
5
- * A primary record sale — a _Drop_.
6
- *
7
- * A `Drop` is a shared object that mints and sells numbered `Record` copies of a
8
- * release, forwarding each payment to the release's address. Each purchase mints a
9
- * `Record` whose UID is _derived_ off the `Drop`'s own UID (keyed by the 1-based
10
- * serial number it was sold at), so every copy is deterministically addressable
11
- * from its drop and can be minted at most once.
12
- *
13
- * # Scarcity is the artist's choice
14
- *
15
- * A drop's terms are three enums, each fixed at creation:
16
- *
17
- * - `Price` — `Fixed` (pay exactly) or `Floor` (pay at least; overpayment kept);
18
- * - `Supply` — `Uncapped`, or `Capped { max }` ("1000 records only");
19
- * - `Window` — `Unbounded { start }`, or `Bounded { start, end }` ("two weeks
20
- * only").
21
- *
22
- * Scarcity is a per-edition decision by the artist, not a protocol stance — and it
23
- * is never a dead end: fans who miss a drop can always be answered with a new
24
- * edition. What a drop never has is an access gate: no allowlists, auctions, or
25
- * raffles — while a drop is live, anyone may buy.
26
- *
27
- * # Editions — one live drop per release
28
- *
29
- * A release sells through at most ONE drop at a time. `new` opens edition `0`;
30
- * `new_edition` opens edition `n + 1` by CONSUMING edition `n` — the predecessor
31
- * shared object is destroyed, so two editions can never sell side by side, and the
32
- * edition sequence is gap-free by construction (you must hold edition `n` to open
33
- * `n + 1`). Because a drop is immutable once created, `new_edition` is also the
34
- * only way to change anything: a new price, a new currency, a fresh run after a
35
- * sell-out or a closed window — each is simply the next edition.
36
- *
37
- * The RELEASE is the parent: drop UIDs are _derived_ off the release's UID (via
38
- * its cap-gated `uid_mut` extension surface), keyed by `DropKey(edition)`. Every
39
- * edition's address is therefore computable from the release id alone — and since
40
- * claim markers outlive the objects they name, a destroyed edition's key can never
41
- * be claimed again. The release's UID also carries a `CurrentDropKey → ID` dynamic
42
- * field pointing at the live drop (superseded drops are deleted, so the pointer —
43
- * not address probing — is how clients find the current edition).
44
- *
45
- * # Records
46
- *
47
- * Serial numbers restart at 1 each edition: a record is "edition `e`, number `n`
48
- * (of `max`)", and it stamps the `Currency` and the exact amount paid. A record
49
- * from a destroyed edition remains verifiable — `record::is_derived_from` is pure
50
- * address math and does not need the drop object alive.
51
- *
52
- * # Authority
53
- *
54
- * Opening edition 0 needs the release's `ReleaseAdminCap` (enforced by the
55
- * protocol's `release::uid_mut`); opening edition `n + 1` needs the cap AND the
56
- * predecessor drop. Minting is authorized separately: this package presents its
57
- * `MintWitness`, whose type must be on `miso_record`'s `Settings` allowlist. A
58
- * different shop with different mechanics is just another package with its own
59
- * witness — same `Record`, no `miso_record` redeploy.
60
- */
61
- import { MoveTuple, MoveStruct, MoveEnum, normalizeMoveArguments } from '../utils/index.js';
62
- import { bcs } from '@mysten/sui/bcs';
63
- import {} from '@mysten/sui/transactions';
64
- const $moduleName = '@local-pkg/miso_drop::drop';
65
- export const DropKey = new MoveTuple({ name: `${$moduleName}::DropKey`, fields: [bcs.u32()] });
66
- export const CurrentDropKey = new MoveTuple({ name: `${$moduleName}::CurrentDropKey`, fields: [bcs.bool()] });
67
- export const MintWitness = new MoveStruct({ name: `${$moduleName}::MintWitness`, fields: {
68
- dummy_field: bcs.bool()
69
- } });
70
- /** Pricing policy for a drop. */
71
- export const Price = new MoveEnum({ name: `${$moduleName}::Price`, fields: {
72
- /** Pay exactly `amount`. */
73
- Fixed: new MoveStruct({ name: `Price.Fixed`, fields: {
74
- amount: bcs.u64()
75
- } }),
76
- /** Pay at least `amount`; overpayment is forwarded to the release, not refunded. */
77
- Floor: new MoveStruct({ name: `Price.Floor`, fields: {
78
- amount: bcs.u64()
79
- } })
80
- } });
81
- /** Supply policy for a drop. */
82
- export const Supply = new MoveEnum({ name: `${$moduleName}::Supply`, fields: {
83
- /** No quantity limit — the edition never sells out. */
84
- Uncapped: null,
85
- /** Sells out after `max` records. */
86
- Capped: new MoveStruct({ name: `Supply.Capped`, fields: {
87
- max: bcs.u64()
88
- } })
89
- } });
90
- /** When a drop sells. `buy` rejects purchases outside the window. */
91
- export const Window = new MoveEnum({ name: `${$moduleName}::Window`, fields: {
92
- /**
93
- * Opens at `start_timestamp_ms` (Unix ms; may be in the future — a scheduled drop)
94
- * and never closes.
95
- */
96
- Unbounded: new MoveStruct({ name: `Window.Unbounded`, fields: {
97
- start_timestamp_ms: bcs.u64()
98
- } }),
99
- /** Sells only within `[start_timestamp_ms, end_timestamp_ms]` (Unix ms). */
100
- Bounded: new MoveStruct({ name: `Window.Bounded`, fields: {
101
- start_timestamp_ms: bcs.u64(),
102
- end_timestamp_ms: bcs.u64()
103
- } })
104
- } });
105
- export const Drop = new MoveStruct({ name: `${$moduleName}::Drop<phantom Currency>`, fields: {
106
- id: bcs.Address,
107
- /** The release these records are copies of. */
108
- release_id: bcs.Address,
109
- /** Which edition of the release this is (0 = first drop). */
110
- edition: bcs.u32(),
111
- /** How much a buyer must pay per record. */
112
- price: Price,
113
- /** How many records this edition may ever sell. */
114
- supply: Supply,
115
- /** Records sold so far; also the most recently sold record's number. */
116
- quantity_sold: bcs.u64(),
117
- /** When this edition sells. */
118
- window: Window
119
- } });
120
- export const DropCreatedEvent = new MoveStruct({ name: `${$moduleName}::DropCreatedEvent<phantom Currency>`, fields: {
121
- drop_id: bcs.Address,
122
- release_id: bcs.Address,
123
- edition: bcs.u32(),
124
- price: Price,
125
- supply: Supply,
126
- window: Window
127
- } });
128
- export const RecordSoldEvent = new MoveStruct({ name: `${$moduleName}::RecordSoldEvent<phantom Currency>`, fields: {
129
- drop_id: bcs.Address,
130
- release_id: bcs.Address,
131
- edition: bcs.u32(),
132
- record_id: bcs.Address,
133
- number: bcs.u64(),
134
- paid: bcs.u64(),
135
- buyer: bcs.Address
136
- } });
137
- /** A fixed price: a buyer must pay exactly `amount`. */
138
- export function newFixedPrice(options) {
139
- const packageAddress = options.package ?? '@local-pkg/miso_drop';
140
- const argumentsTypes = [
141
- 'u64'
142
- ];
143
- const parameterNames = ["amount"];
144
- return (tx) => tx.moveCall({
145
- package: packageAddress,
146
- module: 'drop',
147
- function: 'new_fixed_price',
148
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
149
- });
150
- }
151
- /** A floor price: a buyer must pay at least `amount`; overpayment is kept. */
152
- export function newFloorPrice(options) {
153
- const packageAddress = options.package ?? '@local-pkg/miso_drop';
154
- const argumentsTypes = [
155
- 'u64'
156
- ];
157
- const parameterNames = ["amount"];
158
- return (tx) => tx.moveCall({
159
- package: packageAddress,
160
- module: 'drop',
161
- function: 'new_floor_price',
162
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
163
- });
164
- }
165
- /** An uncapped supply: the edition never sells out. */
166
- export function newUncappedSupply(options = {}) {
167
- const packageAddress = options.package ?? '@local-pkg/miso_drop';
168
- return (tx) => tx.moveCall({
169
- package: packageAddress,
170
- module: 'drop',
171
- function: 'new_uncapped_supply',
172
- });
173
- }
174
- /**
175
- * A capped supply: the edition sells out after `max` records. `max` must be at
176
- * least 1.
177
- */
178
- export function newCappedSupply(options) {
179
- const packageAddress = options.package ?? '@local-pkg/miso_drop';
180
- const argumentsTypes = [
181
- 'u64'
182
- ];
183
- const parameterNames = ["max"];
184
- return (tx) => tx.moveCall({
185
- package: packageAddress,
186
- module: 'drop',
187
- function: 'new_capped_supply',
188
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
189
- });
190
- }
191
- /**
192
- * A window that opens at `start_timestamp_ms` (may be in the future) and never
193
- * closes.
194
- */
195
- export function newUnboundedWindow(options) {
196
- const packageAddress = options.package ?? '@local-pkg/miso_drop';
197
- const argumentsTypes = [
198
- 'u64'
199
- ];
200
- const parameterNames = ["startTimestampMs"];
201
- return (tx) => tx.moveCall({
202
- package: packageAddress,
203
- module: 'drop',
204
- function: 'new_unbounded_window',
205
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
206
- });
207
- }
208
- /**
209
- * A window selling only within `[start_timestamp_ms, end_timestamp_ms]`. The close
210
- * must be strictly after the open.
211
- */
212
- export function newBoundedWindow(options) {
213
- const packageAddress = options.package ?? '@local-pkg/miso_drop';
214
- const argumentsTypes = [
215
- 'u64',
216
- 'u64'
217
- ];
218
- const parameterNames = ["startTimestampMs", "endTimestampMs"];
219
- return (tx) => tx.moveCall({
220
- package: packageAddress,
221
- module: 'drop',
222
- function: 'new_bounded_window',
223
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
224
- });
225
- }
226
- /**
227
- * Create and share a release's FIRST drop — edition `0` — selling copies on the
228
- * given `price` / `supply` / `window` terms. Authorized by the release's admin cap
229
- * (enforced by `release::uid_mut`). The drop is immutable once created; every
230
- * later change (price, currency, a fresh run) is `new_edition`.
231
- *
232
- * Edition 0's key can only ever be claimed once, so a release's edition sequence
233
- * can only ever start here — calling `new` twice for the same release aborts.
234
- *
235
- * Term validity is enforced at construction (`new_capped_supply`,
236
- * `new_bounded_window`); the one check left here is temporal — a bounded window
237
- * must not already be elapsed against the `Clock`.
238
- */
239
- export function _new(options) {
240
- const packageAddress = options.package ?? '@local-pkg/miso_drop';
241
- const argumentsTypes = [
242
- null,
243
- null,
244
- null,
245
- null,
246
- null,
247
- '0x2::clock::Clock'
248
- ];
249
- const parameterNames = ["release", "cap", "price", "supply", "window"];
250
- return (tx) => tx.moveCall({
251
- package: packageAddress,
252
- module: 'drop',
253
- function: 'new',
254
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
255
- typeArguments: options.typeArguments
256
- });
257
- }
258
- /**
259
- * Open the NEXT edition of a release's drop, CONSUMING the current one. The
260
- * predecessor shared object is destroyed — so at most one drop per release is ever
261
- * live, and this is the one way to change terms: a new price, a new `Currency`, a
262
- * new supply or window. It may be called while the predecessor is still selling (a
263
- * cutover) or after it sold out / closed (a fresh run for fans who missed it).
264
- *
265
- * Records already sold by the predecessor are untouched and remain verifiable
266
- * against its (now deleted) id. Serial numbers restart at 1 for the new edition.
267
- */
268
- export function newEdition(options) {
269
- const packageAddress = options.package ?? '@local-pkg/miso_drop';
270
- const argumentsTypes = [
271
- null,
272
- null,
273
- null,
274
- null,
275
- null,
276
- null,
277
- '0x2::clock::Clock'
278
- ];
279
- const parameterNames = ["release", "old", "cap", "price", "supply", "window"];
280
- return (tx) => tx.moveCall({
281
- package: packageAddress,
282
- module: 'drop',
283
- function: 'new_edition',
284
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
285
- typeArguments: options.typeArguments
286
- });
287
- }
288
- /**
289
- * Buy one record from a live drop — one inside its window with supply left.
290
- *
291
- * `payment` must satisfy the price (exactly, for `Fixed`; at least, for `Floor`).
292
- * The ENTIRE payment is forwarded to the release's address — under `Floor`,
293
- * anything paid above the floor is kept (a pay-what-you-want tip), not refunded.
294
- * The sold record's number is the 1-based `quantity_sold` count, its UID is
295
- * derived off the drop, and it records the drop's `edition`, the `Currency`, and
296
- * the amount paid. `settings` must authorize this package's `MintWitness`.
297
- */
298
- export function buy(options) {
299
- const packageAddress = options.package ?? '@local-pkg/miso_drop';
300
- const argumentsTypes = [
301
- null,
302
- null,
303
- null,
304
- '0x2::clock::Clock'
305
- ];
306
- const parameterNames = ["self", "payment", "settings"];
307
- return (tx) => tx.moveCall({
308
- package: packageAddress,
309
- module: 'drop',
310
- function: 'buy',
311
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
312
- typeArguments: options.typeArguments
313
- });
314
- }
315
- export function id(options) {
316
- const packageAddress = options.package ?? '@local-pkg/miso_drop';
317
- const argumentsTypes = [
318
- null
319
- ];
320
- const parameterNames = ["self"];
321
- return (tx) => tx.moveCall({
322
- package: packageAddress,
323
- module: 'drop',
324
- function: 'id',
325
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
326
- typeArguments: options.typeArguments
327
- });
328
- }
329
- export function releaseId(options) {
330
- const packageAddress = options.package ?? '@local-pkg/miso_drop';
331
- const argumentsTypes = [
332
- null
333
- ];
334
- const parameterNames = ["self"];
335
- return (tx) => tx.moveCall({
336
- package: packageAddress,
337
- module: 'drop',
338
- function: 'release_id',
339
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
340
- typeArguments: options.typeArguments
341
- });
342
- }
343
- export function edition(options) {
344
- const packageAddress = options.package ?? '@local-pkg/miso_drop';
345
- const argumentsTypes = [
346
- null
347
- ];
348
- const parameterNames = ["self"];
349
- return (tx) => tx.moveCall({
350
- package: packageAddress,
351
- module: 'drop',
352
- function: 'edition',
353
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
354
- typeArguments: options.typeArguments
355
- });
356
- }
357
- export function quantitySold(options) {
358
- const packageAddress = options.package ?? '@local-pkg/miso_drop';
359
- const argumentsTypes = [
360
- null
361
- ];
362
- const parameterNames = ["self"];
363
- return (tx) => tx.moveCall({
364
- package: packageAddress,
365
- module: 'drop',
366
- function: 'quantity_sold',
367
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
368
- typeArguments: options.typeArguments
369
- });
370
- }
371
- export function price(options) {
372
- const packageAddress = options.package ?? '@local-pkg/miso_drop';
373
- const argumentsTypes = [
374
- null
375
- ];
376
- const parameterNames = ["self"];
377
- return (tx) => tx.moveCall({
378
- package: packageAddress,
379
- module: 'drop',
380
- function: 'price',
381
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
382
- typeArguments: options.typeArguments
383
- });
384
- }
385
- export function supply(options) {
386
- const packageAddress = options.package ?? '@local-pkg/miso_drop';
387
- const argumentsTypes = [
388
- null
389
- ];
390
- const parameterNames = ["self"];
391
- return (tx) => tx.moveCall({
392
- package: packageAddress,
393
- module: 'drop',
394
- function: 'supply',
395
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
396
- typeArguments: options.typeArguments
397
- });
398
- }
399
- export function window(options) {
400
- const packageAddress = options.package ?? '@local-pkg/miso_drop';
401
- const argumentsTypes = [
402
- null
403
- ];
404
- const parameterNames = ["self"];
405
- return (tx) => tx.moveCall({
406
- package: packageAddress,
407
- module: 'drop',
408
- function: 'window',
409
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
410
- typeArguments: options.typeArguments
411
- });
412
- }
413
- /** Flat projection of `supply`: the cap, or `none` if uncapped. */
414
- export function maxSupply(options) {
415
- const packageAddress = options.package ?? '@local-pkg/miso_drop';
416
- const argumentsTypes = [
417
- null
418
- ];
419
- const parameterNames = ["self"];
420
- return (tx) => tx.moveCall({
421
- package: packageAddress,
422
- module: 'drop',
423
- function: 'max_supply',
424
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
425
- typeArguments: options.typeArguments
426
- });
427
- }
428
- /** Flat projection of `window`: when the drop opens. */
429
- export function startTimestampMs(options) {
430
- const packageAddress = options.package ?? '@local-pkg/miso_drop';
431
- const argumentsTypes = [
432
- null
433
- ];
434
- const parameterNames = ["self"];
435
- return (tx) => tx.moveCall({
436
- package: packageAddress,
437
- module: 'drop',
438
- function: 'start_timestamp_ms',
439
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
440
- typeArguments: options.typeArguments
441
- });
442
- }
443
- /** Flat projection of `window`: the close, or `none` if unbounded. */
444
- export function endTimestampMs(options) {
445
- const packageAddress = options.package ?? '@local-pkg/miso_drop';
446
- const argumentsTypes = [
447
- null
448
- ];
449
- const parameterNames = ["self"];
450
- return (tx) => tx.moveCall({
451
- package: packageAddress,
452
- module: 'drop',
453
- function: 'end_timestamp_ms',
454
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
455
- typeArguments: options.typeArguments
456
- });
457
- }
458
- /**
459
- * Whether the drop has sold every one of its `Capped { max }` records (always
460
- * `false` for an uncapped drop).
461
- */
462
- export function isSoldOut(options) {
463
- const packageAddress = options.package ?? '@local-pkg/miso_drop';
464
- const argumentsTypes = [
465
- null
466
- ];
467
- const parameterNames = ["self"];
468
- return (tx) => tx.moveCall({
469
- package: packageAddress,
470
- module: 'drop',
471
- function: 'is_sold_out',
472
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
473
- typeArguments: options.typeArguments
474
- });
475
- }
476
- /** Whether `buy` would be accepted right now: inside the window and not sold out. */
477
- export function isLive(options) {
478
- const packageAddress = options.package ?? '@local-pkg/miso_drop';
479
- const argumentsTypes = [
480
- null,
481
- '0x2::clock::Clock'
482
- ];
483
- const parameterNames = ["self"];
484
- return (tx) => tx.moveCall({
485
- package: packageAddress,
486
- module: 'drop',
487
- function: 'is_live',
488
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
489
- typeArguments: options.typeArguments
490
- });
491
- }
492
- /**
493
- * The `ID` of a release's live drop, or `none` if the release has never dropped.
494
- * (There is always at most one: `new_edition` destroys the predecessor.)
495
- */
496
- export function currentDropId(options) {
497
- const packageAddress = options.package ?? '@local-pkg/miso_drop';
498
- const argumentsTypes = [
499
- null
500
- ];
501
- const parameterNames = ["release"];
502
- return (tx) => tx.moveCall({
503
- package: packageAddress,
504
- module: 'drop',
505
- function: 'current_drop_id',
506
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
507
- });
508
- }
509
- /** The price amount (the fixed price, or the floor). */
510
- export function amount(options) {
511
- const packageAddress = options.package ?? '@local-pkg/miso_drop';
512
- const argumentsTypes = [
513
- null
514
- ];
515
- const parameterNames = ["self"];
516
- return (tx) => tx.moveCall({
517
- package: packageAddress,
518
- module: 'drop',
519
- function: 'amount',
520
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
521
- });
522
- }
523
- //# sourceMappingURL=drop.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"drop.js","sourceRoot":"","sources":["../../../src/contracts/miso_drop/drop.ts"],"names":[],"mappings":"A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CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;QACpF,aAAa,EAAE,OAAO,CAAC,aAAa;KACvC,CAAC,CAAC;AACP,CAAC;AAUD;;;GAGG;AACH,MAAM,UAAU,aAAa,CAAC,OAA6B;IACvD,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,IAAI,sBAAsB,CAAC;IACjE,MAAM,cAAc,GAAG;QACnB,IAAI;KACqB,CAAC;IAC9B,MAAM,cAAc,GAAG,CAAC,SAAS,CAAC,CAAC;IACnC,OAAO,CAAC,EAAe,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC;QACpC,OAAO,EAAE,cAAc;QACvB,MAAM,EAAE,MAAM;QACd,QAAQ,EAAE,iBAAiB;QAC3B,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;KACvF,CAAC,CAAC;AACP,CAAC;AAUD,wDAAwD;AACxD,MAAM,UAAU,MAAM,CAAC,OAAsB;IACzC,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,IAAI,sBAAsB,CAAC;IACjE,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,MAAM;QACd,QAAQ,EAAE,QAAQ;QAClB,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;KACvF,CAAC,CAAC;AACP,CAAC"}
@@ -1,114 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- /**
5
- * The recommended canonical parent namespace for `miso::release::new`.
6
- *
7
- * `miso::release::new` takes `parent: &mut UID` and derives every release's id
8
- * from `(parent, digest)`: core is deliberately parent-agnostic and implements no
9
- * coordination policy of its own (see the "Consent scope" section of
10
- * `miso::release`'s module doc). This package supplies the one recommended parent
11
- * — a shared, permissionless, undeletable `UID` — and is deliberately the _only_
12
- * policy it implements: it neither gates who may assemble a release through it nor
13
- * interprets what a `Track` means.
14
- *
15
- * ### One instance, ever
16
- *
17
- * The module exposes no constructor: the only `ReleaseRegistry` that can ever
18
- * exist is the canonical one created and shared by package initialization. "The
19
- * registry" is therefore unambiguous on-chain — the type itself names the
20
- * namespace, not a config convention. Every `new_release` takes `&mut` on that one
21
- * shared object, so release creation through it serializes per checkpoint; the
22
- * ceiling is accepted — releases are rare events. Alternative namespaces are still
23
- * possible, but they live in other packages: core is parent-agnostic, and any
24
- * object exposing a `&mut UID` (a release escrow, for instance) can parent its own
25
- * releases; ids derived under different parents never collide, by construction of
26
- * `derive_address`.
27
- *
28
- * ### Liveness
29
- *
30
- * The canonical instance is shared at publish, and this module exposes no delete
31
- * function and no `uid_mut`: its only capability is being a derivation parent.
32
- * That undeletability is a consent guarantee, not an accident — a `Track`'s
33
- * `target_release_id` commits to this namespace's liveness (see `miso::release`'s
34
- * module doc), and a deletable parent would strand every track and offer that ever
35
- * targeted it. Keeping the surface to exactly one capability is what makes that
36
- * guarantee durable: there is nothing else here to reason about.
37
- *
38
- * ### Permissionless
39
- *
40
- * No capability gates `new_release`: anyone holding a fully-formed `vector<Track>`
41
- * may assemble and claim a release through this registry. That is not a gap —
42
- * consent already lives in the `Track`s themselves, each one minted by its
43
- * recording's admin via cap-gated `miso::track::new` against this exact digest.
44
- * Assembly is bookkeeping over consent already given, not a second authorization
45
- * step.
46
- */
47
- import { MoveStruct, type RawTransactionArgument } from '../utils/index.js';
48
- import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
49
- export declare const ReleaseRegistry: MoveStruct<{
50
- id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
51
- }, "@local-pkg/release_registry::release_registry::ReleaseRegistry">;
52
- export declare const ReleaseRegistryCreatedEvent: MoveStruct<{
53
- registry_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
54
- created_by: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
55
- }, "@local-pkg/release_registry::release_registry::ReleaseRegistryCreatedEvent">;
56
- export interface NewReleaseArguments {
57
- self: RawTransactionArgument<string>;
58
- title: RawTransactionArgument<string>;
59
- tracks: TransactionArgument;
60
- nonce: RawTransactionArgument<number | bigint>;
61
- }
62
- export interface NewReleaseOptions {
63
- package?: string;
64
- arguments: NewReleaseArguments | [
65
- self: RawTransactionArgument<string>,
66
- title: RawTransactionArgument<string>,
67
- tracks: TransactionArgument,
68
- nonce: RawTransactionArgument<number | bigint>
69
- ];
70
- }
71
- /**
72
- * Assembles a release by delegating to `miso::release::new` with this registry as
73
- * parent. Returns the `(Release, ReleaseAdminCap)` pair rather than transferring
74
- * or sharing either: the release is not on-chain-final until `release::publish`
75
- * consumes it by value — typically later in the same PTB — and where the cap ends
76
- * up is the caller's decision, not this function's.
77
- */
78
- export declare function newRelease(options: NewReleaseOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
79
- export interface DeriveTargetReleaseIdArguments {
80
- self: RawTransactionArgument<string>;
81
- recordingIds: RawTransactionArgument<Array<string>>;
82
- trackSplitValues: RawTransactionArgument<Array<number | bigint>>;
83
- nonce: RawTransactionArgument<number | bigint>;
84
- }
85
- export interface DeriveTargetReleaseIdOptions {
86
- package?: string;
87
- arguments: DeriveTargetReleaseIdArguments | [
88
- self: RawTransactionArgument<string>,
89
- recordingIds: RawTransactionArgument<Array<string>>,
90
- trackSplitValues: RawTransactionArgument<Array<number | bigint>>,
91
- nonce: RawTransactionArgument<number | bigint>
92
- ];
93
- }
94
- /**
95
- * Derives the release id `new_release` would produce for the given inputs under
96
- * this registry, without creating anything. Delegates to
97
- * `miso::release::derive_target_release_id` with this registry's own id as parent.
98
- */
99
- export declare function deriveTargetReleaseId(options: DeriveTargetReleaseIdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
100
- export interface IdArguments {
101
- self: RawTransactionArgument<string>;
102
- }
103
- export interface IdOptions {
104
- package?: string;
105
- arguments: IdArguments | [
106
- self: RawTransactionArgument<string>
107
- ];
108
- }
109
- /**
110
- * Returns the registry's object id — the derivation parent that
111
- * `derive_target_release_id` and `new_release` both commit to.
112
- */
113
- export declare function id(options: IdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
114
- //# sourceMappingURL=release_registry.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"release_registry.d.ts","sourceRoot":"","sources":["../../../src/contracts/release_registry/release_registry.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;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,eAAe;;oEAEpB,CAAC;AACT,eAAO,MAAM,2BAA2B;;;gFAGhC,CAAC;AACT,MAAM,WAAW,mBAAmB;IAChC,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;IACrC,KAAK,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;IACtC,MAAM,EAAE,mBAAmB,CAAC;IAC5B,KAAK,EAAE,sBAAsB,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;CAClD;AACD,MAAM,WAAW,iBAAiB;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,mBAAmB,GAAG;QAC7B,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;QACpC,KAAK,EAAE,sBAAsB,CAAC,MAAM,CAAC;QACrC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