@misonetwork/sdk 0.7.0 → 0.9.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.
- package/README.md +210 -136
- package/dist/client.d.ts +1211 -8
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +56 -19
- package/dist/client.js.map +1 -1
- package/dist/contracts/composition_credits/composition_credits.d.ts +181 -0
- package/dist/contracts/composition_credits/composition_credits.d.ts.map +1 -0
- package/dist/contracts/composition_credits/composition_credits.js +109 -0
- package/dist/contracts/composition_credits/composition_credits.js.map +1 -0
- package/dist/contracts/composition_credits/composition_party_role.d.ts +119 -0
- package/dist/contracts/composition_credits/composition_party_role.d.ts.map +1 -0
- package/dist/contracts/composition_credits/composition_party_role.js +139 -0
- package/dist/contracts/composition_credits/composition_party_role.js.map +1 -0
- package/dist/contracts/composition_credits/deps/miso_credit/credit.d.ts +24 -0
- package/dist/contracts/composition_credits/deps/miso_credit/credit.d.ts.map +1 -0
- package/dist/contracts/composition_credits/deps/miso_credit/credit.js +23 -0
- package/dist/contracts/composition_credits/deps/miso_credit/credit.js.map +1 -0
- package/dist/contracts/composition_credits/deps/sui/vec_map.d.ts +37 -0
- package/dist/contracts/composition_credits/deps/sui/vec_map.d.ts.map +1 -0
- package/dist/contracts/composition_credits/deps/sui/vec_map.js +28 -0
- package/dist/contracts/composition_credits/deps/sui/vec_map.js.map +1 -0
- package/dist/contracts/miso/composition.d.ts +1 -15
- package/dist/contracts/miso/composition.d.ts.map +1 -1
- package/dist/contracts/miso/composition.js +2 -17
- package/dist/contracts/miso/composition.js.map +1 -1
- package/dist/contracts/miso/deps/bps/bps.d.ts +1 -1
- package/dist/contracts/miso/deps/bps/bps.js +1 -1
- package/dist/contracts/miso/recording.d.ts +1 -16
- package/dist/contracts/miso/recording.d.ts.map +1 -1
- package/dist/contracts/miso/recording.js +1 -16
- package/dist/contracts/miso/recording.js.map +1 -1
- package/dist/contracts/miso/release.d.ts +61 -48
- package/dist/contracts/miso/release.d.ts.map +1 -1
- package/dist/contracts/miso/release.js +59 -46
- package/dist/contracts/miso/release.js.map +1 -1
- package/dist/contracts/miso/track.d.ts +2 -2
- package/dist/contracts/miso/track.js +2 -2
- package/dist/contracts/miso_party/deps/sui/vec_set.d.ts +21 -0
- package/dist/contracts/miso_party/deps/sui/vec_set.d.ts.map +1 -0
- package/dist/contracts/miso_party/deps/sui/vec_set.js +20 -0
- package/dist/contracts/miso_party/deps/sui/vec_set.js.map +1 -0
- package/dist/contracts/miso_party/party.d.ts +481 -0
- package/dist/contracts/miso_party/party.d.ts.map +1 -0
- package/dist/contracts/miso_party/party.js +527 -0
- package/dist/contracts/miso_party/party.js.map +1 -0
- package/dist/contracts/party_cta/party_cta.d.ts +120 -0
- package/dist/contracts/party_cta/party_cta.d.ts.map +1 -0
- package/dist/contracts/party_cta/party_cta.js +139 -0
- package/dist/contracts/party_cta/party_cta.js.map +1 -0
- package/dist/contracts/party_genre/party_genre.d.ts +117 -0
- package/dist/contracts/party_genre/party_genre.d.ts.map +1 -0
- package/dist/contracts/party_genre/party_genre.js +131 -0
- package/dist/contracts/party_genre/party_genre.js.map +1 -0
- package/dist/contracts/party_media/party_media.d.ts +86 -0
- package/dist/contracts/party_media/party_media.d.ts.map +1 -0
- package/dist/contracts/party_media/party_media.js +97 -0
- package/dist/contracts/party_media/party_media.js.map +1 -0
- package/dist/contracts/party_music/party_music.d.ts +209 -0
- package/dist/contracts/party_music/party_music.d.ts.map +1 -0
- package/dist/contracts/party_music/party_music.js +259 -0
- package/dist/contracts/party_music/party_music.js.map +1 -0
- package/dist/contracts/party_platform_link/party_platform_link.d.ts +89 -0
- package/dist/contracts/party_platform_link/party_platform_link.d.ts.map +1 -0
- package/dist/contracts/party_platform_link/party_platform_link.js +92 -0
- package/dist/contracts/party_platform_link/party_platform_link.js.map +1 -0
- package/dist/contracts/party_pro_link/party_pro_link.d.ts +233 -0
- package/dist/contracts/party_pro_link/party_pro_link.d.ts.map +1 -0
- package/dist/contracts/party_pro_link/party_pro_link.js +289 -0
- package/dist/contracts/party_pro_link/party_pro_link.js.map +1 -0
- package/dist/contracts/party_profile/deps/country_code/country_code.d.ts +15 -0
- package/dist/contracts/party_profile/deps/country_code/country_code.d.ts.map +1 -0
- package/dist/contracts/party_profile/deps/country_code/country_code.js +17 -0
- package/dist/contracts/party_profile/deps/country_code/country_code.js.map +1 -0
- package/dist/contracts/party_profile/deps/language_code/language_code.d.ts +6 -0
- package/dist/contracts/party_profile/deps/language_code/language_code.d.ts.map +1 -0
- package/dist/contracts/party_profile/deps/language_code/language_code.js +8 -0
- package/dist/contracts/party_profile/deps/language_code/language_code.js.map +1 -0
- package/dist/contracts/party_profile/party_profile.d.ts +133 -0
- package/dist/contracts/party_profile/party_profile.d.ts.map +1 -0
- package/dist/contracts/party_profile/party_profile.js +153 -0
- package/dist/contracts/party_profile/party_profile.js.map +1 -0
- package/dist/contracts/party_roles/party_roles.d.ts +201 -0
- package/dist/contracts/party_roles/party_roles.d.ts.map +1 -0
- package/dist/contracts/party_roles/party_roles.js +237 -0
- package/dist/contracts/party_roles/party_roles.js.map +1 -0
- package/dist/contracts/party_social/party_social.d.ts +258 -0
- package/dist/contracts/party_social/party_social.d.ts.map +1 -0
- package/dist/contracts/party_social/party_social.js +320 -0
- package/dist/contracts/party_social/party_social.js.map +1 -0
- package/dist/contracts/party_tags/party_tags.d.ts +116 -0
- package/dist/contracts/party_tags/party_tags.d.ts.map +1 -0
- package/dist/contracts/party_tags/party_tags.js +130 -0
- package/dist/contracts/party_tags/party_tags.js.map +1 -0
- package/dist/contracts/recording_advisory/recording_advisory.d.ts +194 -0
- package/dist/contracts/recording_advisory/recording_advisory.d.ts.map +1 -0
- package/dist/contracts/recording_advisory/recording_advisory.js +204 -0
- package/dist/contracts/recording_advisory/recording_advisory.js.map +1 -0
- package/dist/contracts/recording_credits/deps/miso_credit/credit.d.ts +24 -0
- package/dist/contracts/recording_credits/deps/miso_credit/credit.d.ts.map +1 -0
- package/dist/contracts/recording_credits/deps/miso_credit/credit.js +23 -0
- package/dist/contracts/recording_credits/deps/miso_credit/credit.js.map +1 -0
- package/dist/contracts/recording_credits/deps/sui/vec_map.d.ts +37 -0
- package/dist/contracts/recording_credits/deps/sui/vec_map.d.ts.map +1 -0
- package/dist/contracts/recording_credits/deps/sui/vec_map.js +28 -0
- package/dist/contracts/recording_credits/deps/sui/vec_map.js.map +1 -0
- package/dist/contracts/recording_credits/deps/sui/vec_set.d.ts +21 -0
- package/dist/contracts/recording_credits/deps/sui/vec_set.d.ts.map +1 -0
- package/dist/contracts/recording_credits/deps/sui/vec_set.js +20 -0
- package/dist/contracts/recording_credits/deps/sui/vec_set.js.map +1 -0
- package/dist/contracts/recording_credits/recording_credits.d.ts +2313 -0
- package/dist/contracts/recording_credits/recording_credits.d.ts.map +1 -0
- package/dist/contracts/recording_credits/recording_credits.js +270 -0
- package/dist/contracts/recording_credits/recording_credits.js.map +1 -0
- package/dist/contracts/recording_credits/recording_party_role.d.ts +1174 -0
- package/dist/contracts/recording_credits/recording_party_role.d.ts.map +1 -0
- package/dist/contracts/recording_credits/recording_party_role.js +692 -0
- package/dist/contracts/recording_credits/recording_party_role.js.map +1 -0
- package/dist/contracts/recording_language/deps/language_code/language_code.d.ts +6 -0
- package/dist/contracts/recording_language/deps/language_code/language_code.d.ts.map +1 -0
- package/dist/contracts/recording_language/deps/language_code/language_code.js +8 -0
- package/dist/contracts/recording_language/deps/language_code/language_code.js.map +1 -0
- package/dist/contracts/recording_language/recording_language.d.ts +152 -0
- package/dist/contracts/recording_language/recording_language.d.ts.map +1 -0
- package/dist/contracts/recording_language/recording_language.js +149 -0
- package/dist/contracts/recording_language/recording_language.js.map +1 -0
- package/dist/contracts/recording_master_reference/deps/ori/walrus_data.d.ts +52 -0
- package/dist/contracts/recording_master_reference/deps/ori/walrus_data.d.ts.map +1 -0
- package/dist/contracts/recording_master_reference/deps/ori/walrus_data.js +37 -0
- package/dist/contracts/recording_master_reference/deps/ori/walrus_data.js.map +1 -0
- package/dist/contracts/recording_master_reference/recording_master_reference.d.ts +131 -0
- package/dist/contracts/recording_master_reference/recording_master_reference.d.ts.map +1 -0
- package/dist/contracts/recording_master_reference/recording_master_reference.js +121 -0
- package/dist/contracts/recording_master_reference/recording_master_reference.js.map +1 -0
- package/dist/contracts/recording_preview/deps/ori/walrus_data.d.ts +52 -0
- package/dist/contracts/recording_preview/deps/ori/walrus_data.d.ts.map +1 -0
- package/dist/contracts/recording_preview/deps/ori/walrus_data.js +37 -0
- package/dist/contracts/recording_preview/deps/ori/walrus_data.js.map +1 -0
- package/dist/contracts/recording_preview/recording_preview.d.ts +104 -0
- package/dist/contracts/recording_preview/recording_preview.d.ts.map +1 -0
- package/dist/contracts/recording_preview/recording_preview.js +94 -0
- package/dist/contracts/recording_preview/recording_preview.js.map +1 -0
- package/dist/contracts/release_cover_art/deps/0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78/walrus_data.d.ts +52 -0
- package/dist/contracts/release_cover_art/deps/0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78/walrus_data.d.ts.map +1 -0
- package/dist/contracts/release_cover_art/deps/0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78/walrus_data.js +37 -0
- package/dist/contracts/release_cover_art/deps/0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78/walrus_data.js.map +1 -0
- package/dist/contracts/release_cover_art/deps/cover_art/cover_art.d.ts +46 -0
- package/dist/contracts/release_cover_art/deps/cover_art/cover_art.d.ts.map +1 -0
- package/dist/contracts/release_cover_art/deps/cover_art/cover_art.js +21 -0
- package/dist/contracts/release_cover_art/deps/cover_art/cover_art.js.map +1 -0
- package/dist/contracts/release_cover_art/deps/per_track/per_track.d.ts +33 -0
- package/dist/contracts/release_cover_art/deps/per_track/per_track.d.ts.map +1 -0
- package/dist/contracts/release_cover_art/deps/per_track/per_track.js +32 -0
- package/dist/contracts/release_cover_art/deps/per_track/per_track.js.map +1 -0
- package/dist/contracts/release_cover_art/release_cover_art.d.ts +300 -0
- package/dist/contracts/release_cover_art/release_cover_art.d.ts.map +1 -0
- package/dist/contracts/release_cover_art/release_cover_art.js +168 -0
- package/dist/contracts/release_cover_art/release_cover_art.js.map +1 -0
- package/dist/contracts/release_credits/deps/miso_credit/credit.d.ts +24 -0
- package/dist/contracts/release_credits/deps/miso_credit/credit.d.ts.map +1 -0
- package/dist/contracts/release_credits/deps/miso_credit/credit.js +23 -0
- package/dist/contracts/release_credits/deps/miso_credit/credit.js.map +1 -0
- package/dist/contracts/release_credits/deps/sui/vec_map.d.ts +37 -0
- package/dist/contracts/release_credits/deps/sui/vec_map.d.ts.map +1 -0
- package/dist/contracts/release_credits/deps/sui/vec_map.js +28 -0
- package/dist/contracts/release_credits/deps/sui/vec_map.js.map +1 -0
- package/dist/contracts/release_credits/release_credits.d.ts +142 -0
- package/dist/contracts/release_credits/release_credits.d.ts.map +1 -0
- package/dist/contracts/release_credits/release_credits.js +108 -0
- package/dist/contracts/release_credits/release_credits.js.map +1 -0
- package/dist/contracts/release_credits/release_party_role.d.ts +58 -0
- package/dist/contracts/release_credits/release_party_role.d.ts.map +1 -0
- package/dist/contracts/release_credits/release_party_role.js +66 -0
- package/dist/contracts/release_credits/release_party_role.js.map +1 -0
- package/dist/contracts/release_description/release_description.d.ts +112 -0
- package/dist/contracts/release_description/release_description.d.ts.map +1 -0
- package/dist/contracts/release_description/release_description.js +123 -0
- package/dist/contracts/release_description/release_description.js.map +1 -0
- package/dist/contracts/release_dsp_link/release_dsp_link.d.ts +644 -0
- package/dist/contracts/release_dsp_link/release_dsp_link.d.ts.map +1 -0
- package/dist/contracts/release_dsp_link/release_dsp_link.js +556 -0
- package/dist/contracts/release_dsp_link/release_dsp_link.js.map +1 -0
- package/dist/contracts/release_genre/deps/per_track/per_track.d.ts +33 -0
- package/dist/contracts/release_genre/deps/per_track/per_track.d.ts.map +1 -0
- package/dist/contracts/release_genre/deps/per_track/per_track.js +32 -0
- package/dist/contracts/release_genre/deps/per_track/per_track.js.map +1 -0
- package/dist/contracts/release_genre/release_genre.d.ts +193 -0
- package/dist/contracts/release_genre/release_genre.d.ts.map +1 -0
- package/dist/contracts/release_genre/release_genre.js +207 -0
- package/dist/contracts/release_genre/release_genre.js.map +1 -0
- package/dist/contracts/release_kind/release_kind.d.ts +98 -0
- package/dist/contracts/release_kind/release_kind.d.ts.map +1 -0
- package/dist/contracts/release_kind/release_kind.js +109 -0
- package/dist/contracts/release_kind/release_kind.js.map +1 -0
- package/dist/contracts/routed_stake/deps/royalty_pool/stake.d.ts +54 -0
- package/dist/contracts/routed_stake/deps/royalty_pool/stake.d.ts.map +1 -0
- package/dist/contracts/routed_stake/deps/royalty_pool/stake.js +37 -0
- package/dist/contracts/routed_stake/deps/royalty_pool/stake.js.map +1 -0
- package/dist/contracts/routed_stake/deps/std/type_name.d.ts +18 -0
- package/dist/contracts/routed_stake/deps/std/type_name.d.ts.map +1 -0
- package/dist/contracts/routed_stake/deps/std/type_name.js +20 -0
- package/dist/contracts/routed_stake/deps/std/type_name.js.map +1 -0
- package/dist/contracts/routed_stake/deps/sui/balance.d.ts +13 -0
- package/dist/contracts/routed_stake/deps/sui/balance.d.ts.map +1 -0
- package/dist/contracts/routed_stake/deps/sui/balance.js +15 -0
- package/dist/contracts/routed_stake/deps/sui/balance.js.map +1 -0
- package/dist/contracts/routed_stake/deps/sui/vec_map.d.ts +37 -0
- package/dist/contracts/routed_stake/deps/sui/vec_map.d.ts.map +1 -0
- package/dist/contracts/routed_stake/deps/sui/vec_map.js +28 -0
- package/dist/contracts/routed_stake/deps/sui/vec_map.js.map +1 -0
- package/dist/contracts/routed_stake/routed_stake.d.ts +342 -0
- package/dist/contracts/routed_stake/routed_stake.d.ts.map +1 -0
- package/dist/contracts/routed_stake/routed_stake.js +297 -0
- package/dist/contracts/routed_stake/routed_stake.js.map +1 -0
- package/dist/contracts/royalty_pool/deps/std/type_name.d.ts +18 -0
- package/dist/contracts/royalty_pool/deps/std/type_name.d.ts.map +1 -0
- package/dist/contracts/royalty_pool/deps/std/type_name.js +20 -0
- package/dist/contracts/royalty_pool/deps/std/type_name.js.map +1 -0
- package/dist/contracts/royalty_pool/deps/sui/balance.d.ts +13 -0
- package/dist/contracts/royalty_pool/deps/sui/balance.d.ts.map +1 -0
- package/dist/contracts/royalty_pool/deps/sui/balance.js +15 -0
- package/dist/contracts/royalty_pool/deps/sui/balance.js.map +1 -0
- package/dist/contracts/royalty_pool/deps/sui/vec_map.d.ts +37 -0
- package/dist/contracts/royalty_pool/deps/sui/vec_map.d.ts.map +1 -0
- package/dist/contracts/royalty_pool/deps/sui/vec_map.js +28 -0
- package/dist/contracts/royalty_pool/deps/sui/vec_map.js.map +1 -0
- package/dist/contracts/royalty_pool/pool.d.ts +380 -0
- package/dist/contracts/royalty_pool/pool.d.ts.map +1 -0
- package/dist/contracts/royalty_pool/pool.js +373 -0
- package/dist/contracts/royalty_pool/pool.js.map +1 -0
- package/dist/contracts/royalty_pool/stake.d.ts +189 -0
- package/dist/contracts/royalty_pool/stake.d.ts.map +1 -0
- package/dist/contracts/royalty_pool/stake.js +183 -0
- package/dist/contracts/royalty_pool/stake.js.map +1 -0
- package/dist/contracts.d.ts +48 -3
- package/dist/contracts.d.ts.map +1 -1
- package/dist/contracts.js +54 -8
- package/dist/contracts.js.map +1 -1
- package/dist/deployments.d.ts +46 -12
- package/dist/deployments.d.ts.map +1 -1
- package/dist/deployments.js +132 -11
- package/dist/deployments.js.map +1 -1
- package/dist/events.d.ts +1067 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/events.js +120 -0
- package/dist/events.js.map +1 -0
- package/dist/execute.d.ts.map +1 -1
- package/dist/execute.js +0 -4
- package/dist/execute.js.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.js.map +1 -1
- package/dist/numeric.d.ts +5 -0
- package/dist/numeric.d.ts.map +1 -0
- package/dist/numeric.js +21 -0
- package/dist/numeric.js.map +1 -0
- package/dist/packages.d.ts +194 -0
- package/dist/packages.d.ts.map +1 -0
- package/dist/packages.js +214 -0
- package/dist/packages.js.map +1 -0
- package/dist/parsers.d.ts +5 -1
- package/dist/parsers.d.ts.map +1 -1
- package/dist/parsers.js +18 -2
- package/dist/parsers.js.map +1 -1
- package/dist/party/client.d.ts +233 -0
- package/dist/party/client.d.ts.map +1 -0
- package/dist/party/client.js +222 -0
- package/dist/party/client.js.map +1 -0
- package/dist/party/extensions/ctas.d.ts +19 -0
- package/dist/party/extensions/ctas.d.ts.map +1 -0
- package/dist/party/extensions/ctas.js +25 -0
- package/dist/party/extensions/ctas.js.map +1 -0
- package/dist/party/extensions/genres.d.ts +27 -0
- package/dist/party/extensions/genres.d.ts.map +1 -0
- package/dist/party/extensions/genres.js +31 -0
- package/dist/party/extensions/genres.js.map +1 -0
- package/dist/party/extensions/links.d.ts +65 -0
- package/dist/party/extensions/links.d.ts.map +1 -0
- package/dist/party/extensions/links.js +117 -0
- package/dist/party/extensions/links.js.map +1 -0
- package/dist/party/extensions/media.d.ts +36 -0
- package/dist/party/extensions/media.d.ts.map +1 -0
- package/dist/party/extensions/media.js +45 -0
- package/dist/party/extensions/media.js.map +1 -0
- package/dist/party/extensions/profile.d.ts +24 -0
- package/dist/party/extensions/profile.d.ts.map +1 -0
- package/dist/party/extensions/profile.js +48 -0
- package/dist/party/extensions/profile.js.map +1 -0
- package/dist/party/extensions/roles.d.ts +37 -0
- package/dist/party/extensions/roles.d.ts.map +1 -0
- package/dist/party/extensions/roles.js +46 -0
- package/dist/party/extensions/roles.js.map +1 -0
- package/dist/party/extensions/tags.d.ts +25 -0
- package/dist/party/extensions/tags.d.ts.map +1 -0
- package/dist/party/extensions/tags.js +25 -0
- package/dist/party/extensions/tags.js.map +1 -0
- package/dist/party/index.d.ts +12 -0
- package/dist/party/index.d.ts.map +1 -0
- package/dist/party/index.js +14 -0
- package/dist/party/index.js.map +1 -0
- package/dist/party/internal.d.ts +15 -0
- package/dist/party/internal.d.ts.map +1 -0
- package/dist/party/internal.js +103 -0
- package/dist/party/internal.js.map +1 -0
- package/dist/party/queries.d.ts +38 -0
- package/dist/party/queries.d.ts.map +1 -0
- package/dist/party/queries.js +232 -0
- package/dist/party/queries.js.map +1 -0
- package/dist/party/transactions.d.ts +74 -0
- package/dist/party/transactions.d.ts.map +1 -0
- package/dist/party/transactions.js +85 -0
- package/dist/party/transactions.js.map +1 -0
- package/dist/party/types.d.ts +54 -0
- package/dist/party/types.d.ts.map +1 -0
- package/dist/party/types.js +4 -0
- package/dist/party/types.js.map +1 -0
- package/dist/queries.d.ts +92 -0
- package/dist/queries.d.ts.map +1 -1
- package/dist/queries.js +132 -23
- package/dist/queries.js.map +1 -1
- package/dist/transactions.d.ts +96 -3
- package/dist/transactions.d.ts.map +1 -1
- package/dist/transactions.js +123 -11
- package/dist/transactions.js.map +1 -1
- package/dist/types.d.ts +18 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/view.d.ts +6 -5
- package/dist/view.d.ts.map +1 -1
- package/dist/view.js +8 -2
- package/dist/view.js.map +1 -1
- package/package.json +18 -4
- package/src/client.ts +73 -23
- package/src/contracts/composition_credits/composition_credits.ts +169 -0
- package/src/contracts/composition_credits/composition_party_role.ts +189 -0
- package/src/contracts/composition_credits/deps/miso_credit/credit.ts +27 -0
- package/src/contracts/composition_credits/deps/sui/vec_map.ts +33 -0
- package/src/contracts/miso/composition.ts +8 -35
- package/src/contracts/miso/deps/bps/bps.ts +3 -3
- package/src/contracts/miso/recording.ts +10 -38
- package/src/contracts/miso/release.ts +99 -86
- package/src/contracts/miso/track.ts +5 -5
- package/src/contracts/miso_party/deps/sui/vec_set.ts +21 -0
- package/src/contracts/miso_party/party.ts +797 -0
- package/src/contracts/party_cta/party_cta.ts +212 -0
- package/src/contracts/party_genre/party_genre.ts +199 -0
- package/src/contracts/party_media/party_media.ts +141 -0
- package/src/contracts/party_music/party_music.ts +405 -0
- package/src/contracts/party_platform_link/party_platform_link.ts +148 -0
- package/src/contracts/party_pro_link/party_pro_link.ts +453 -0
- package/src/contracts/party_profile/deps/country_code/country_code.ts +19 -0
- package/src/contracts/party_profile/deps/language_code/language_code.ts +7 -0
- package/src/contracts/party_profile/party_profile.ts +239 -0
- package/src/contracts/party_roles/party_roles.ts +363 -0
- package/src/contracts/party_social/party_social.ts +502 -0
- package/src/contracts/party_tags/party_tags.ts +198 -0
- package/src/contracts/recording_advisory/recording_advisory.ts +315 -0
- package/src/contracts/recording_credits/deps/miso_credit/credit.ts +27 -0
- package/src/contracts/recording_credits/deps/sui/vec_map.ts +33 -0
- package/src/contracts/recording_credits/deps/sui/vec_set.ts +21 -0
- package/src/contracts/recording_credits/recording_credits.ts +458 -0
- package/src/contracts/recording_credits/recording_party_role.ts +1041 -0
- package/src/contracts/recording_language/deps/language_code/language_code.ts +7 -0
- package/src/contracts/recording_language/recording_language.ts +237 -0
- package/src/contracts/recording_master_reference/deps/ori/walrus_data.ts +36 -0
- package/src/contracts/recording_master_reference/recording_master_reference.ts +181 -0
- package/src/contracts/recording_preview/deps/ori/walrus_data.ts +36 -0
- package/src/contracts/recording_preview/recording_preview.ts +154 -0
- package/src/contracts/release_cover_art/deps/0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78/walrus_data.ts +36 -0
- package/src/contracts/release_cover_art/deps/cover_art/cover_art.ts +23 -0
- package/src/contracts/release_cover_art/deps/per_track/per_track.ts +36 -0
- package/src/contracts/release_cover_art/release_cover_art.ts +251 -0
- package/src/contracts/release_credits/deps/miso_credit/credit.ts +27 -0
- package/src/contracts/release_credits/deps/sui/vec_map.ts +33 -0
- package/src/contracts/release_credits/release_credits.ts +156 -0
- package/src/contracts/release_credits/release_party_role.ts +87 -0
- package/src/contracts/release_description/release_description.ts +167 -0
- package/src/contracts/release_dsp_link/release_dsp_link.ts +813 -0
- package/src/contracts/release_genre/deps/per_track/per_track.ts +36 -0
- package/src/contracts/release_genre/release_genre.ts +314 -0
- package/src/contracts/release_kind/release_kind.ts +153 -0
- package/src/contracts/routed_stake/deps/royalty_pool/stake.ts +39 -0
- package/src/contracts/routed_stake/deps/std/type_name.ts +22 -0
- package/src/contracts/routed_stake/deps/sui/balance.ts +17 -0
- package/src/contracts/routed_stake/deps/sui/vec_map.ts +33 -0
- package/src/contracts/routed_stake/routed_stake.ts +481 -0
- package/src/contracts/royalty_pool/deps/std/type_name.ts +22 -0
- package/src/contracts/royalty_pool/deps/sui/balance.ts +17 -0
- package/src/contracts/royalty_pool/deps/sui/vec_map.ts +33 -0
- package/src/contracts/royalty_pool/pool.ts +586 -0
- package/src/contracts/royalty_pool/stake.ts +291 -0
- package/src/contracts.ts +72 -6
- package/src/deployments.ts +175 -22
- package/src/events.ts +125 -0
- package/src/execute.ts +0 -4
- package/src/index.ts +8 -3
- package/src/internal.ts +0 -4
- package/src/numeric.ts +25 -0
- package/src/packages.ts +283 -0
- package/src/parsers.ts +32 -2
- package/src/party/client.ts +283 -0
- package/src/party/extensions/ctas.ts +46 -0
- package/src/party/extensions/genres.ts +62 -0
- package/src/party/extensions/links.ts +185 -0
- package/src/party/extensions/media.ts +72 -0
- package/src/party/extensions/profile.ts +81 -0
- package/src/party/extensions/roles.ts +94 -0
- package/src/party/extensions/tags.ts +54 -0
- package/src/party/index.ts +14 -0
- package/src/party/internal.ts +119 -0
- package/src/party/queries.ts +303 -0
- package/src/party/transactions.ts +167 -0
- package/src/party/types.ts +95 -0
- package/src/queries.ts +227 -25
- package/src/transactions.ts +254 -12
- package/src/types.ts +20 -0
- package/src/view.ts +12 -6
|
@@ -45,13 +45,14 @@
|
|
|
45
45
|
* trusted and publicly attributable rather than cryptographically committed. See
|
|
46
46
|
* `track::new` for the signer-side statement of this boundary.
|
|
47
47
|
*
|
|
48
|
-
* The derived id commits to
|
|
49
|
-
* targeting an id also consents to that namespace's liveness. If
|
|
50
|
-
*
|
|
51
|
-
* never exist and every track or offer targeting it
|
|
52
|
-
* blast-radius class as a release that simply never publishes.
|
|
53
|
-
*
|
|
54
|
-
*
|
|
48
|
+
* The derived id commits to the canonical registry's UID and the digest, not the
|
|
49
|
+
* digest alone — so targeting an id also consents to that namespace's liveness. If
|
|
50
|
+
* that parent were deleted, or its `&mut UID` became permanently unreachable, the
|
|
51
|
+
* release could never exist and every track or offer targeting it would be
|
|
52
|
+
* stranded — the same blast-radius class as a release that simply never publishes.
|
|
53
|
+
* `ReleaseRegistry` is therefore created and shared exactly once at package
|
|
54
|
+
* initialization, and exposes neither a constructor, deletion path, nor mutable
|
|
55
|
+
* UID accessor.
|
|
55
56
|
*
|
|
56
57
|
* ### Lifecycle and trust model
|
|
57
58
|
*
|
|
@@ -70,7 +71,7 @@
|
|
|
70
71
|
* the one trust assumption that never expires: integrators should model the cap
|
|
71
72
|
* holder as able to mutate or delete any extension data, forever.
|
|
72
73
|
*/
|
|
73
|
-
import { MoveEnum, MoveStruct, MoveTuple, type RawTransactionArgument } from '../utils/index.
|
|
74
|
+
import { MoveEnum, MoveStruct, MoveTuple, type RawTransactionArgument } from '../utils/index.ts';
|
|
74
75
|
import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
|
|
75
76
|
/** Lifecycle state of a release. */
|
|
76
77
|
export declare const ReleaseState: MoveEnum<{
|
|
@@ -115,6 +116,9 @@ export declare const Release: MoveStruct<{
|
|
|
115
116
|
length: number;
|
|
116
117
|
}, string>;
|
|
117
118
|
}, "@local-pkg/miso::release::Release">;
|
|
119
|
+
export declare const ReleaseRegistry: MoveStruct<{
|
|
120
|
+
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
121
|
+
}, "@local-pkg/miso::release::ReleaseRegistry">;
|
|
118
122
|
export declare const ReleaseKey: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
119
123
|
length: number;
|
|
120
124
|
}, string>], "@local-pkg/miso::release::ReleaseKey">;
|
|
@@ -128,29 +132,70 @@ export declare const ReleaseAdminCapKey: MoveTuple<readonly [import("@mysten/sui
|
|
|
128
132
|
export declare const ReleasePublishedEvent: MoveStruct<{
|
|
129
133
|
release_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
130
134
|
}, "@local-pkg/miso::release::ReleasePublishedEvent">;
|
|
135
|
+
export declare const ReleaseRegistryCreatedEvent: MoveStruct<{
|
|
136
|
+
registry_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
137
|
+
created_by: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
138
|
+
}, "@local-pkg/miso::release::ReleaseRegistryCreatedEvent">;
|
|
131
139
|
export interface NewArguments {
|
|
140
|
+
self: RawTransactionArgument<string>;
|
|
132
141
|
title: RawTransactionArgument<string>;
|
|
133
142
|
tracks: TransactionArgument;
|
|
134
143
|
nonce: RawTransactionArgument<number | bigint>;
|
|
135
|
-
parent: RawTransactionArgument<string>;
|
|
136
144
|
}
|
|
137
145
|
export interface NewOptions {
|
|
138
146
|
package?: string;
|
|
139
147
|
arguments: NewArguments | [
|
|
148
|
+
self: RawTransactionArgument<string>,
|
|
140
149
|
title: RawTransactionArgument<string>,
|
|
141
150
|
tracks: TransactionArgument,
|
|
142
|
-
nonce: RawTransactionArgument<number | bigint
|
|
143
|
-
parent: RawTransactionArgument<string>
|
|
151
|
+
nonce: RawTransactionArgument<number | bigint>
|
|
144
152
|
];
|
|
145
153
|
}
|
|
146
154
|
/**
|
|
147
|
-
*
|
|
148
|
-
*
|
|
149
|
-
*
|
|
150
|
-
*
|
|
151
|
-
*
|
|
155
|
+
* Assembles a release under the canonical registry namespace. This is
|
|
156
|
+
* permissionless: consent is carried by the supplied tracks, each of which was
|
|
157
|
+
* created for the exact derived release id. Returns the release and admin
|
|
158
|
+
* capability by value so the caller can compose `publish` and custody in the same
|
|
159
|
+
* PTB.
|
|
152
160
|
*/
|
|
153
161
|
export declare function _new(options: NewOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
162
|
+
export interface DeriveTargetReleaseIdArguments {
|
|
163
|
+
self: RawTransactionArgument<string>;
|
|
164
|
+
recordingIds: RawTransactionArgument<Array<string>>;
|
|
165
|
+
trackSplitValues: RawTransactionArgument<Array<number | bigint>>;
|
|
166
|
+
nonce: RawTransactionArgument<number | bigint>;
|
|
167
|
+
}
|
|
168
|
+
export interface DeriveTargetReleaseIdOptions {
|
|
169
|
+
package?: string;
|
|
170
|
+
arguments: DeriveTargetReleaseIdArguments | [
|
|
171
|
+
self: RawTransactionArgument<string>,
|
|
172
|
+
recordingIds: RawTransactionArgument<Array<string>>,
|
|
173
|
+
trackSplitValues: RawTransactionArgument<Array<number | bigint>>,
|
|
174
|
+
nonce: RawTransactionArgument<number | bigint>
|
|
175
|
+
];
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Derives the release id that `new` would claim under this registry, without
|
|
179
|
+
* creating a release. This immutable shared-object access remains parallelizable
|
|
180
|
+
* for clients preparing tracks.
|
|
181
|
+
*/
|
|
182
|
+
export declare function deriveTargetReleaseId(options: DeriveTargetReleaseIdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
183
|
+
export interface ReleaseRegistryIdArguments {
|
|
184
|
+
self: RawTransactionArgument<string>;
|
|
185
|
+
}
|
|
186
|
+
export interface ReleaseRegistryIdOptions {
|
|
187
|
+
package?: string;
|
|
188
|
+
arguments: ReleaseRegistryIdArguments | [
|
|
189
|
+
self: RawTransactionArgument<string>
|
|
190
|
+
];
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Returns the canonical registry's object ID, which is the derivation parent
|
|
194
|
+
* committed to by `new` and `derive_target_release_id`. Exported as the
|
|
195
|
+
* `ReleaseRegistry.id()` method to avoid colliding with the existing
|
|
196
|
+
* `release::id(&Release)` ABI function.
|
|
197
|
+
*/
|
|
198
|
+
export declare function releaseRegistryId(options: ReleaseRegistryIdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
154
199
|
export interface PublishArguments {
|
|
155
200
|
self: RawTransactionArgument<string>;
|
|
156
201
|
cap: RawTransactionArgument<string>;
|
|
@@ -183,38 +228,6 @@ export interface AuthorizeOptions {
|
|
|
183
228
|
}
|
|
184
229
|
/** Verifies that the admin capability matches this release. */
|
|
185
230
|
export declare function authorize(options: AuthorizeOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
186
|
-
export interface DeriveTargetReleaseIdArguments {
|
|
187
|
-
recordingIds: RawTransactionArgument<Array<string>>;
|
|
188
|
-
trackSplitValues: RawTransactionArgument<Array<number | bigint>>;
|
|
189
|
-
nonce: RawTransactionArgument<number | bigint>;
|
|
190
|
-
parent: RawTransactionArgument<string>;
|
|
191
|
-
}
|
|
192
|
-
export interface DeriveTargetReleaseIdOptions {
|
|
193
|
-
package?: string;
|
|
194
|
-
arguments: DeriveTargetReleaseIdArguments | [
|
|
195
|
-
recordingIds: RawTransactionArgument<Array<string>>,
|
|
196
|
-
trackSplitValues: RawTransactionArgument<Array<number | bigint>>,
|
|
197
|
-
nonce: RawTransactionArgument<number | bigint>,
|
|
198
|
-
parent: RawTransactionArgument<string>
|
|
199
|
-
];
|
|
200
|
-
}
|
|
201
|
-
/**
|
|
202
|
-
* Derives the target release ID that `new()` would produce for the given inputs
|
|
203
|
-
* and parent, without creating the object. This is the on-chain equivalent of the
|
|
204
|
-
* client-side `deriveReleaseId()` function.
|
|
205
|
-
*/
|
|
206
|
-
export declare function deriveTargetReleaseId(options: DeriveTargetReleaseIdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
207
|
-
export interface IdArguments {
|
|
208
|
-
self: RawTransactionArgument<string>;
|
|
209
|
-
}
|
|
210
|
-
export interface IdOptions {
|
|
211
|
-
package?: string;
|
|
212
|
-
arguments: IdArguments | [
|
|
213
|
-
self: RawTransactionArgument<string>
|
|
214
|
-
];
|
|
215
|
-
}
|
|
216
|
-
/** Returns the release's object ID. */
|
|
217
|
-
export declare function id(options: IdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
218
231
|
export interface TitleArguments {
|
|
219
232
|
self: RawTransactionArgument<string>;
|
|
220
233
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"release.d.ts","sourceRoot":"","sources":["../../../src/contracts/miso/release.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE
|
|
1
|
+
{"version":3,"file":"release.d.ts","sourceRoot":"","sources":["../../../src/contracts/miso/release.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqEG;AAEH,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAA0B,KAAK,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEzH,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAGtF,oCAAoC;AACpC,eAAO,MAAM,YAAY;IACjB,oDAAoD;;IAEpD,0EAA0E;;4CAE1E,CAAC;AACT,eAAO,MAAM,OAAO;IACZ,0CAA0C;;IAE1C,+BAA+B;;QAR/B,oDAAoD;;QAEpD,0EAA0E;;;IAQ1E,4BAA4B;;IAE5B;;;OAGG;;;;;;;;;;;;;;;;;;;;uCAEH,CAAC;AACT,eAAO,MAAM,eAAe;;+CAEpB,CAAC;AACT,eAAO,MAAM,UAAU;;oDAAwF,CAAC;AAChH,eAAO,MAAM,eAAe;IACpB,6CAA6C;;IAE7C,kDAAkD;;+CAElD,CAAC;AACT,eAAO,MAAM,kBAAkB,mIAAsF,CAAC;AACtH,eAAO,MAAM,qBAAqB;;qDAE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,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;KACvC,CAAC;CACL;AACD,2EAA2E;AAC3E,wBAAgB,GAAG,CAAC,OAAO,EAAE,UAAU,IAM3B,IAAI,WAAW,0DAM1B;AACD,MAAM,WAAW,eAAe;IAC5B,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;IACrC,GAAG,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;CACvC;AACD,MAAM,WAAW,aAAa;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,eAAe,GAAG;QACzB,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;QACpC,GAAG,EAAE,sBAAsB,CAAC,MAAM,CAAC;KACtC,CAAC;CACL;AACD;;;;;;GAMG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,aAAa,IAOjC,IAAI,WAAW,0DAM1B"}
|
|
@@ -45,13 +45,14 @@
|
|
|
45
45
|
* trusted and publicly attributable rather than cryptographically committed. See
|
|
46
46
|
* `track::new` for the signer-side statement of this boundary.
|
|
47
47
|
*
|
|
48
|
-
* The derived id commits to
|
|
49
|
-
* targeting an id also consents to that namespace's liveness. If
|
|
50
|
-
*
|
|
51
|
-
* never exist and every track or offer targeting it
|
|
52
|
-
* blast-radius class as a release that simply never publishes.
|
|
53
|
-
*
|
|
54
|
-
*
|
|
48
|
+
* The derived id commits to the canonical registry's UID and the digest, not the
|
|
49
|
+
* digest alone — so targeting an id also consents to that namespace's liveness. If
|
|
50
|
+
* that parent were deleted, or its `&mut UID` became permanently unreachable, the
|
|
51
|
+
* release could never exist and every track or offer targeting it would be
|
|
52
|
+
* stranded — the same blast-radius class as a release that simply never publishes.
|
|
53
|
+
* `ReleaseRegistry` is therefore created and shared exactly once at package
|
|
54
|
+
* initialization, and exposes neither a constructor, deletion path, nor mutable
|
|
55
|
+
* UID accessor.
|
|
55
56
|
*
|
|
56
57
|
* ### Lifecycle and trust model
|
|
57
58
|
*
|
|
@@ -70,10 +71,10 @@
|
|
|
70
71
|
* the one trust assumption that never expires: integrators should model the cap
|
|
71
72
|
* holder as able to mutate or delete any extension data, forever.
|
|
72
73
|
*/
|
|
73
|
-
import { MoveEnum, MoveStruct, MoveTuple, normalizeMoveArguments } from
|
|
74
|
+
import { MoveEnum, MoveStruct, MoveTuple, normalizeMoveArguments } from "../utils/index.js";
|
|
74
75
|
import { bcs } from '@mysten/sui/bcs';
|
|
75
76
|
import {} from '@mysten/sui/transactions';
|
|
76
|
-
import * as track from
|
|
77
|
+
import * as track from "./track.js";
|
|
77
78
|
const $moduleName = '@local-pkg/miso::release';
|
|
78
79
|
/** Lifecycle state of a release. */
|
|
79
80
|
export const ReleaseState = new MoveEnum({ name: `${$moduleName}::ReleaseState`, fields: {
|
|
@@ -95,6 +96,9 @@ export const Release = new MoveStruct({ name: `${$moduleName}::Release`, fields:
|
|
|
95
96
|
*/
|
|
96
97
|
tracks: bcs.vector(track.Track)
|
|
97
98
|
} });
|
|
99
|
+
export const ReleaseRegistry = new MoveStruct({ name: `${$moduleName}::ReleaseRegistry`, fields: {
|
|
100
|
+
id: bcs.Address
|
|
101
|
+
} });
|
|
98
102
|
export const ReleaseKey = new MoveTuple({ name: `${$moduleName}::ReleaseKey`, fields: [bcs.vector(bcs.u8())] });
|
|
99
103
|
export const ReleaseAdminCap = new MoveStruct({ name: `${$moduleName}::ReleaseAdminCap`, fields: {
|
|
100
104
|
/** Unique identifier for this capability. */
|
|
@@ -106,22 +110,26 @@ export const ReleaseAdminCapKey = new MoveTuple({ name: `${$moduleName}::Release
|
|
|
106
110
|
export const ReleasePublishedEvent = new MoveStruct({ name: `${$moduleName}::ReleasePublishedEvent`, fields: {
|
|
107
111
|
release_id: bcs.Address
|
|
108
112
|
} });
|
|
113
|
+
export const ReleaseRegistryCreatedEvent = new MoveStruct({ name: `${$moduleName}::ReleaseRegistryCreatedEvent`, fields: {
|
|
114
|
+
registry_id: bcs.Address,
|
|
115
|
+
created_by: bcs.Address
|
|
116
|
+
} });
|
|
109
117
|
/**
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
118
|
+
* Assembles a release under the canonical registry namespace. This is
|
|
119
|
+
* permissionless: consent is carried by the supplied tracks, each of which was
|
|
120
|
+
* created for the exact derived release id. Returns the release and admin
|
|
121
|
+
* capability by value so the caller can compose `publish` and custody in the same
|
|
122
|
+
* PTB.
|
|
115
123
|
*/
|
|
116
124
|
export function _new(options) {
|
|
117
125
|
const packageAddress = options.package ?? '@local-pkg/miso';
|
|
118
126
|
const argumentsTypes = [
|
|
127
|
+
null,
|
|
119
128
|
'0x1::string::String',
|
|
120
129
|
'vector<null>',
|
|
121
|
-
'u256'
|
|
122
|
-
'0x2::object::ID'
|
|
130
|
+
'u256'
|
|
123
131
|
];
|
|
124
|
-
const parameterNames = ["
|
|
132
|
+
const parameterNames = ["self", "title", "tracks", "nonce"];
|
|
125
133
|
return (tx) => tx.moveCall({
|
|
126
134
|
package: packageAddress,
|
|
127
135
|
module: 'release',
|
|
@@ -130,74 +138,79 @@ export function _new(options) {
|
|
|
130
138
|
});
|
|
131
139
|
}
|
|
132
140
|
/**
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
* Note: core enforces no attribution requirement — credits live in the credits
|
|
137
|
-
* extension and may be attached before or after publish via `uid_mut`.
|
|
141
|
+
* Derives the release id that `new` would claim under this registry, without
|
|
142
|
+
* creating a release. This immutable shared-object access remains parallelizable
|
|
143
|
+
* for clients preparing tracks.
|
|
138
144
|
*/
|
|
139
|
-
export function
|
|
145
|
+
export function deriveTargetReleaseId(options) {
|
|
140
146
|
const packageAddress = options.package ?? '@local-pkg/miso';
|
|
141
147
|
const argumentsTypes = [
|
|
142
148
|
null,
|
|
143
|
-
|
|
144
|
-
'
|
|
149
|
+
'vector<0x2::object::ID>',
|
|
150
|
+
'vector<u64>',
|
|
151
|
+
'u256'
|
|
145
152
|
];
|
|
146
|
-
const parameterNames = ["self", "
|
|
153
|
+
const parameterNames = ["self", "recordingIds", "trackSplitValues", "nonce"];
|
|
147
154
|
return (tx) => tx.moveCall({
|
|
148
155
|
package: packageAddress,
|
|
149
156
|
module: 'release',
|
|
150
|
-
function: '
|
|
157
|
+
function: 'derive_target_release_id',
|
|
151
158
|
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
152
159
|
});
|
|
153
160
|
}
|
|
154
|
-
/**
|
|
155
|
-
|
|
161
|
+
/**
|
|
162
|
+
* Returns the canonical registry's object ID, which is the derivation parent
|
|
163
|
+
* committed to by `new` and `derive_target_release_id`. Exported as the
|
|
164
|
+
* `ReleaseRegistry.id()` method to avoid colliding with the existing
|
|
165
|
+
* `release::id(&Release)` ABI function.
|
|
166
|
+
*/
|
|
167
|
+
export function releaseRegistryId(options) {
|
|
156
168
|
const packageAddress = options.package ?? '@local-pkg/miso';
|
|
157
169
|
const argumentsTypes = [
|
|
158
|
-
null,
|
|
159
170
|
null
|
|
160
171
|
];
|
|
161
|
-
const parameterNames = ["self"
|
|
172
|
+
const parameterNames = ["self"];
|
|
162
173
|
return (tx) => tx.moveCall({
|
|
163
174
|
package: packageAddress,
|
|
164
175
|
module: 'release',
|
|
165
|
-
function: '
|
|
176
|
+
function: 'release_registry_id',
|
|
166
177
|
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
167
178
|
});
|
|
168
179
|
}
|
|
169
180
|
/**
|
|
170
|
-
*
|
|
171
|
-
*
|
|
172
|
-
*
|
|
181
|
+
* Publishes the release, making it immutable. Track splits must be set and sum to
|
|
182
|
+
* 100% before publishing. Required State: Initialized
|
|
183
|
+
*
|
|
184
|
+
* Note: core enforces no attribution requirement — credits live in the credits
|
|
185
|
+
* extension and may be attached before or after publish via `uid_mut`.
|
|
173
186
|
*/
|
|
174
|
-
export function
|
|
187
|
+
export function publish(options) {
|
|
175
188
|
const packageAddress = options.package ?? '@local-pkg/miso';
|
|
176
189
|
const argumentsTypes = [
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
'
|
|
180
|
-
'0x2::object::ID'
|
|
190
|
+
null,
|
|
191
|
+
null,
|
|
192
|
+
'0x2::clock::Clock'
|
|
181
193
|
];
|
|
182
|
-
const parameterNames = ["
|
|
194
|
+
const parameterNames = ["self", "cap"];
|
|
183
195
|
return (tx) => tx.moveCall({
|
|
184
196
|
package: packageAddress,
|
|
185
197
|
module: 'release',
|
|
186
|
-
function: '
|
|
198
|
+
function: 'publish',
|
|
187
199
|
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
188
200
|
});
|
|
189
201
|
}
|
|
190
|
-
/**
|
|
191
|
-
export function
|
|
202
|
+
/** Verifies that the admin capability matches this release. */
|
|
203
|
+
export function authorize(options) {
|
|
192
204
|
const packageAddress = options.package ?? '@local-pkg/miso';
|
|
193
205
|
const argumentsTypes = [
|
|
206
|
+
null,
|
|
194
207
|
null
|
|
195
208
|
];
|
|
196
|
-
const parameterNames = ["self"];
|
|
209
|
+
const parameterNames = ["self", "cap"];
|
|
197
210
|
return (tx) => tx.moveCall({
|
|
198
211
|
package: packageAddress,
|
|
199
212
|
module: 'release',
|
|
200
|
-
function: '
|
|
213
|
+
function: 'authorize',
|
|
201
214
|
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
202
215
|
});
|
|
203
216
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"release.js","sourceRoot":"","sources":["../../../src/contracts/miso/release.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE
|
|
1
|
+
{"version":3,"file":"release.js","sourceRoot":"","sources":["../../../src/contracts/miso/release.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqEG;AAEH,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,S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,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC;QACpC,OAAO,EAAE,cAAc;QACvB,MAAM,EAAE,SAAS;QACjB,QAAQ,EAAE,KAAK;QACf,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;KACvF,CAAC,CAAC;AACP,CAAC;AAYD;;;;;;GAMG;AACH,MAAM,UAAU,MAAM,CAAC,OAAsB;IACzC,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,IAAI,iBAAiB,CAAC;IAC5D,MAAM,cAAc,GAAG;QACnB,IAAI;QACJ,IAAI;KACqB,CAAC;IAC9B,MAAM,cAAc,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IACvC,OAAO,CAAC,EAAe,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC;QACpC,OAAO,EAAE,cAAc;QACvB,MAAM,EAAE,SAAS;QACjB,QAAQ,EAAE,SAAS;QACnB,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;KACvF,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* consumed off-chain and derived from the recording via `recording_id`; a `Track`
|
|
26
26
|
* embeds exactly the facts on-chain consumers cannot reach any other way.
|
|
27
27
|
*/
|
|
28
|
-
import { MoveEnum, MoveStruct, type RawTransactionArgument } from '../utils/index.
|
|
28
|
+
import { MoveEnum, MoveStruct, type RawTransactionArgument } from '../utils/index.ts';
|
|
29
29
|
import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
|
|
30
30
|
/**
|
|
31
31
|
* Lifecycle state of a track within a release. A track is born `Unassigned`,
|
|
@@ -75,7 +75,7 @@ export declare const Track: MoveStruct<{
|
|
|
75
75
|
* ownership at recording creation, so it is not split out here — a track routes
|
|
76
76
|
* its full share to the recording.
|
|
77
77
|
*/
|
|
78
|
-
split_bps: import("../utils/index.
|
|
78
|
+
split_bps: import("../utils/index.ts").MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<number, number, "u16">], "bps::bps::BPS">;
|
|
79
79
|
}, "@local-pkg/miso::track::Track">;
|
|
80
80
|
export interface NewArguments {
|
|
81
81
|
_: RawTransactionArgument<string>;
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
* consumed off-chain and derived from the recording via `recording_id`; a `Track`
|
|
26
26
|
* embeds exactly the facts on-chain consumers cannot reach any other way.
|
|
27
27
|
*/
|
|
28
|
-
import { MoveEnum, MoveStruct, normalizeMoveArguments } from
|
|
28
|
+
import { MoveEnum, MoveStruct, normalizeMoveArguments } from "../utils/index.js";
|
|
29
29
|
import { bcs } from '@mysten/sui/bcs';
|
|
30
30
|
import {} from '@mysten/sui/transactions';
|
|
31
|
-
import * as bps from
|
|
31
|
+
import * as bps from "./deps/bps/bps.js";
|
|
32
32
|
const $moduleName = '@local-pkg/miso::track';
|
|
33
33
|
/**
|
|
34
34
|
* Lifecycle state of a track within a release. A track is born `Unassigned`,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
import { type BcsType } from '@mysten/sui/bcs';
|
|
5
|
+
import { MoveStruct } from '../../../utils/index.ts';
|
|
6
|
+
/**
|
|
7
|
+
* A set data structure backed by a vector. The set is guaranteed not to contain
|
|
8
|
+
* duplicate keys. All operations are O(N) in the size of the set
|
|
9
|
+
*
|
|
10
|
+
* - the intention of this data structure is only to provide the convenience of
|
|
11
|
+
* programming against a set API. Sets that need sorted iteration rather than
|
|
12
|
+
* insertion order iteration should be handwritten.
|
|
13
|
+
*/
|
|
14
|
+
export declare function VecSet<K extends BcsType<any>>(...typeParameters: [
|
|
15
|
+
K
|
|
16
|
+
]): MoveStruct<{
|
|
17
|
+
contents: BcsType<import("@mysten/bcs").InferBcsType<K>[], Iterable<import("@mysten/bcs").InferBcsInput<K>> & {
|
|
18
|
+
length: number;
|
|
19
|
+
}, string>;
|
|
20
|
+
}, `0x2::vec_set::VecSet<${K["name"]}>`>;
|
|
21
|
+
//# sourceMappingURL=vec_set.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vec_set.d.ts","sourceRoot":"","sources":["../../../../../src/contracts/miso_party/deps/sui/vec_set.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAChE,OAAO,EAAE,KAAK,OAAO,EAAO,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD;;;;;;;GAOG;AACH,wBAAgB,MAAM,CAAC,CAAC,SAAS,OAAO,CAAC,GAAG,CAAC,EAAE,GAAG,cAAc,EAAE;IAC9D,CAAC;CACJ;;;;yCAIA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
import { bcs } from '@mysten/sui/bcs';
|
|
5
|
+
import { MoveStruct } from "../../../utils/index.js";
|
|
6
|
+
const $moduleName = '0x2::vec_set';
|
|
7
|
+
/**
|
|
8
|
+
* A set data structure backed by a vector. The set is guaranteed not to contain
|
|
9
|
+
* duplicate keys. All operations are O(N) in the size of the set
|
|
10
|
+
*
|
|
11
|
+
* - the intention of this data structure is only to provide the convenience of
|
|
12
|
+
* programming against a set API. Sets that need sorted iteration rather than
|
|
13
|
+
* insertion order iteration should be handwritten.
|
|
14
|
+
*/
|
|
15
|
+
export function VecSet(...typeParameters) {
|
|
16
|
+
return new MoveStruct({ name: `${$moduleName}::VecSet<${typeParameters[0].name}>`, fields: {
|
|
17
|
+
contents: bcs.vector(typeParameters[0])
|
|
18
|
+
} });
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=vec_set.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vec_set.js","sourceRoot":"","sources":["../../../../../src/contracts/miso_party/deps/sui/vec_set.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAChE,OAAO,EAAgB,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,MAAM,WAAW,GAAG,cAAc,CAAC;AACnC;;;;;;;GAOG;AACH,MAAM,UAAU,MAAM,CAAyB,GAAG,cAEjD;IACG,OAAO,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,YAAY,cAAc,CAAC,CAAC,CAAC,CAAC,IAAiB,GAAG,EAAE,MAAM,EAAE;YAChG,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;SAC1C,EAAE,CAAC,CAAC;AACb,CAAC"}
|