@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
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,iBAAiB,EACjB,qBAAqB,EACtB,MAAM,oBAAoB,C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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAUR;CAUF;AAED,uEAAuE;AACvE,OAAO,EAAE,kBAAkB,IAAI,UAAU,EAAE,CAAC"}
|
package/dist/client.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
// Copyright (c) Miso Labs, Inc.
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
import { getMisoProtocolDeployment, } from "./deployments.js";
|
|
3
|
+
import { getMisoProtocolDeployment, normalizeMisoDeployment, normalizeMisoProtocolDeployment, protocolDeployment, } from "./deployments.js";
|
|
4
|
+
import { bindModulePackage, MisoPackageBindings, REF_RETURNING_CALLS } from "./packages.js";
|
|
4
5
|
import * as parsers from "./parsers.js";
|
|
6
|
+
import { eventParsers } from "./events.js";
|
|
7
|
+
import { PartyProtocolClient } from "./party/client.js";
|
|
5
8
|
import * as queries from "./queries.js";
|
|
6
9
|
import * as view from "./view.js";
|
|
7
10
|
// Generated call modules (type-safe Move calls) and BCS structs.
|
|
@@ -9,16 +12,8 @@ import * as composition from "./contracts/miso/composition.js";
|
|
|
9
12
|
import * as recording from "./contracts/miso/recording.js";
|
|
10
13
|
import * as release from "./contracts/miso/release.js";
|
|
11
14
|
import * as track from "./contracts/miso/track.js";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const out = {};
|
|
15
|
-
for (const [key, value] of Object.entries({ ...mod })) {
|
|
16
|
-
out[key] =
|
|
17
|
-
typeof value === "function"
|
|
18
|
-
? (options) => value({ package: pkg, ...options })
|
|
19
|
-
: value;
|
|
20
|
-
}
|
|
21
|
-
return out;
|
|
15
|
+
function isFullDeployment(deployment) {
|
|
16
|
+
return "miso" in deployment;
|
|
22
17
|
}
|
|
23
18
|
/**
|
|
24
19
|
* Creates a Miso client extension for use with `$extend()`.
|
|
@@ -35,12 +30,20 @@ export function miso(options = {}) {
|
|
|
35
30
|
return {
|
|
36
31
|
name,
|
|
37
32
|
register: (client) => {
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
33
|
+
const supplied = options.deployment;
|
|
34
|
+
const packageDeployment = supplied && isFullDeployment(supplied)
|
|
35
|
+
? normalizeMisoDeployment(supplied)
|
|
36
|
+
: undefined;
|
|
37
|
+
const deployment = supplied
|
|
38
|
+
? isFullDeployment(supplied)
|
|
39
|
+
? protocolDeployment(packageDeployment)
|
|
40
|
+
: normalizeMisoProtocolDeployment(supplied)
|
|
41
|
+
: options.misoPackageId
|
|
42
|
+
? normalizeMisoProtocolDeployment({ packageId: options.misoPackageId })
|
|
43
|
+
: getMisoProtocolDeployment(client.network);
|
|
42
44
|
return new MisoProtocolClient(client, {
|
|
43
45
|
deployment,
|
|
46
|
+
packageDeployment,
|
|
44
47
|
graphqlClient: options.graphqlClient,
|
|
45
48
|
});
|
|
46
49
|
},
|
|
@@ -50,15 +53,42 @@ export class MisoProtocolClient {
|
|
|
50
53
|
#client;
|
|
51
54
|
#graphqlClient;
|
|
52
55
|
#deployment;
|
|
56
|
+
#packageDeployment;
|
|
57
|
+
#partyClient;
|
|
53
58
|
constructor(client, options) {
|
|
54
59
|
this.#client = client;
|
|
55
60
|
this.#graphqlClient = options.graphqlClient;
|
|
56
|
-
this.#deployment = options.deployment;
|
|
61
|
+
this.#deployment = normalizeMisoProtocolDeployment(options.deployment);
|
|
62
|
+
this.#packageDeployment = options.packageDeployment
|
|
63
|
+
? normalizeMisoDeployment(options.packageDeployment)
|
|
64
|
+
: undefined;
|
|
65
|
+
this.#partyClient = this.#packageDeployment
|
|
66
|
+
? new PartyProtocolClient(client, this.#packageDeployment)
|
|
67
|
+
: undefined;
|
|
57
68
|
}
|
|
58
69
|
/** The exact deployment selected for this client. */
|
|
59
70
|
get deployment() {
|
|
60
71
|
return this.#deployment;
|
|
61
72
|
}
|
|
73
|
+
/**
|
|
74
|
+
* Complete package-bound calls and BCS codecs, available only when `miso()`
|
|
75
|
+
* was given a full fresh deployment manifest.
|
|
76
|
+
*/
|
|
77
|
+
get packages() {
|
|
78
|
+
if (!this.#packageDeployment) {
|
|
79
|
+
throw new Error("@misonetwork/sdk: full package bindings require a complete MisoDeployment. " +
|
|
80
|
+
"Pass the verified post-publish manifest to miso({ deployment }).");
|
|
81
|
+
}
|
|
82
|
+
return new MisoPackageBindings(this.#packageDeployment);
|
|
83
|
+
}
|
|
84
|
+
/** Party identity, profile, membership, and extension APIs. */
|
|
85
|
+
get party() {
|
|
86
|
+
if (!this.#partyClient) {
|
|
87
|
+
throw new Error("@misonetwork/sdk: Party APIs require a complete MisoDeployment. " +
|
|
88
|
+
"Pass the verified post-publish manifest to miso({ deployment }).");
|
|
89
|
+
}
|
|
90
|
+
return this.#partyClient;
|
|
91
|
+
}
|
|
62
92
|
get #misoPackageId() {
|
|
63
93
|
return this.#deployment.packageId;
|
|
64
94
|
}
|
|
@@ -116,6 +146,10 @@ export class MisoProtocolClient {
|
|
|
116
146
|
async getReleaseById(releaseId) {
|
|
117
147
|
return queries.getReleaseById(this.#client, releaseId);
|
|
118
148
|
}
|
|
149
|
+
/** Read the shared canonical core `miso::release::ReleaseRegistry`. */
|
|
150
|
+
async getReleaseRegistryById(registryId) {
|
|
151
|
+
return queries.getReleaseRegistryById(this.#client, registryId);
|
|
152
|
+
}
|
|
119
153
|
async getReleasesByIds(ids) {
|
|
120
154
|
return queries.getReleasesByIds(this.#client, ids);
|
|
121
155
|
}
|
|
@@ -152,9 +186,9 @@ export class MisoProtocolClient {
|
|
|
152
186
|
get call() {
|
|
153
187
|
const pkg = this.#misoPackageId;
|
|
154
188
|
return {
|
|
155
|
-
composition: bindModulePackage(composition, pkg),
|
|
156
|
-
recording: bindModulePackage(recording, pkg),
|
|
157
|
-
release: bindModulePackage(release, pkg),
|
|
189
|
+
composition: bindModulePackage(composition, pkg, REF_RETURNING_CALLS.composition),
|
|
190
|
+
recording: bindModulePackage(recording, pkg, REF_RETURNING_CALLS.recording),
|
|
191
|
+
release: bindModulePackage(release, pkg, REF_RETURNING_CALLS.release),
|
|
158
192
|
track: bindModulePackage(track, pkg),
|
|
159
193
|
};
|
|
160
194
|
}
|
|
@@ -175,7 +209,10 @@ export class MisoProtocolClient {
|
|
|
175
209
|
return {
|
|
176
210
|
compositionPublishedEvent: parsers.parseCompositionPublishedEvent,
|
|
177
211
|
recordingPublishedEvent: parsers.parseRecordingPublishedEvent,
|
|
212
|
+
compositionSharesGrantedEvent: parsers.parseCompositionSharesGrantedEvent,
|
|
178
213
|
releasePublishedEvent: parsers.parseReleasePublishedEvent,
|
|
214
|
+
releaseRegistryCreatedEvent: parsers.parseReleaseRegistryCreatedEvent,
|
|
215
|
+
events: eventParsers,
|
|
179
216
|
};
|
|
180
217
|
}
|
|
181
218
|
#requireGraphQL() {
|
package/dist/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,sCAAsC;AAOtC,OAAO,EACL,yBAAyB,
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,sCAAsC;AAOtC,OAAO,EACL,yBAAyB,EACzB,uBAAuB,EACvB,+BAA+B,EAC/B,kBAAkB,GAGnB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAC5F,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,aAA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C,cAAc,EAAE,CAAC;YACzB,MAAM,IAAI,KAAK,CACb,gEAAgE,CACjE,CAAC;QACJ,CAAC;QACD,OAAO,IAAI,CAAC,cAAc,CAAC;IAC7B,CAAC;CACF;AAED,uEAAuE;AACvE,OAAO,EAAE,kBAAkB,IAAI,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/**
|
|
5
|
+
* First-party credits extension for compositions.
|
|
6
|
+
*
|
|
7
|
+
* Attribution (writing credits) is display-oriented and varies across platforms,
|
|
8
|
+
* so it lives here as a dynamic field on the composition rather than in immutable
|
|
9
|
+
* core. The data is attached under `ExtensionKey()` via the composition's
|
|
10
|
+
* cap-gated `uid_mut`, so every mutation is authorized by the composition's admin
|
|
11
|
+
* and credits survive into any lifecycle state (they may be attached before or
|
|
12
|
+
* after the composition is published).
|
|
13
|
+
*
|
|
14
|
+
* This is Miso's canonical credits standard; because it is an extension, other
|
|
15
|
+
* parties may publish their own composition-credits standard against the same
|
|
16
|
+
* `Composition`. Credits are NOT read by the economics — they are attribution.
|
|
17
|
+
*/
|
|
18
|
+
import { MoveTuple, MoveStruct, type RawTransactionArgument } from '../utils/index.ts';
|
|
19
|
+
import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
|
|
20
|
+
export declare const ExtensionKey: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">], "@local-pkg/composition_credits::composition_credits::ExtensionKey">;
|
|
21
|
+
export declare const CompositionCredits: MoveStruct<{
|
|
22
|
+
/** Map of party IDs to their credit (display name + roles). */
|
|
23
|
+
credits: MoveStruct<{
|
|
24
|
+
contents: import("@mysten/sui/bcs").BcsType<{
|
|
25
|
+
key: string;
|
|
26
|
+
value: {
|
|
27
|
+
display_name: string;
|
|
28
|
+
roles: import("@mysten/bcs").EnumOutputShapeWithKeys<{
|
|
29
|
+
Adapter: true;
|
|
30
|
+
Arranger: true;
|
|
31
|
+
Composer: true;
|
|
32
|
+
Lyricist: true;
|
|
33
|
+
Songwriter: true;
|
|
34
|
+
Translator: true;
|
|
35
|
+
Custom: string;
|
|
36
|
+
}, "Adapter" | "Arranger" | "Composer" | "Lyricist" | "Songwriter" | "Translator" | "Custom">[];
|
|
37
|
+
};
|
|
38
|
+
}[], Iterable<{
|
|
39
|
+
key: string | Uint8Array<ArrayBufferLike>;
|
|
40
|
+
value: {
|
|
41
|
+
display_name: string;
|
|
42
|
+
roles: Iterable<import("@mysten/bcs").EnumInputShape<{
|
|
43
|
+
Adapter: boolean | object | null;
|
|
44
|
+
Arranger: boolean | object | null;
|
|
45
|
+
Composer: boolean | object | null;
|
|
46
|
+
Lyricist: boolean | object | null;
|
|
47
|
+
Songwriter: boolean | object | null;
|
|
48
|
+
Translator: boolean | object | null;
|
|
49
|
+
Custom: string;
|
|
50
|
+
}>> & {
|
|
51
|
+
length: number;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
}> & {
|
|
55
|
+
length: number;
|
|
56
|
+
}, string>;
|
|
57
|
+
}, "0x2::vec_map::VecMap<bytes[32], miso_credit::credit::Credit<@local-pkg/composition_credits::composition_party_role::CompositionPartyRole>>">;
|
|
58
|
+
}, "@local-pkg/composition_credits::composition_credits::CompositionCredits">;
|
|
59
|
+
export declare const CreditAddedEvent: MoveStruct<{
|
|
60
|
+
composition_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
61
|
+
party_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
62
|
+
credit: MoveStruct<{
|
|
63
|
+
display_name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
64
|
+
roles: import("@mysten/sui/bcs").BcsType<import("@mysten/bcs").EnumOutputShapeWithKeys<{
|
|
65
|
+
Adapter: true;
|
|
66
|
+
Arranger: true;
|
|
67
|
+
Composer: true;
|
|
68
|
+
Lyricist: true;
|
|
69
|
+
Songwriter: true;
|
|
70
|
+
Translator: true;
|
|
71
|
+
Custom: string;
|
|
72
|
+
}, "Adapter" | "Arranger" | "Composer" | "Lyricist" | "Songwriter" | "Translator" | "Custom">[], Iterable<import("@mysten/bcs").EnumInputShape<{
|
|
73
|
+
Adapter: boolean | object | null;
|
|
74
|
+
Arranger: boolean | object | null;
|
|
75
|
+
Composer: boolean | object | null;
|
|
76
|
+
Lyricist: boolean | object | null;
|
|
77
|
+
Songwriter: boolean | object | null;
|
|
78
|
+
Translator: boolean | object | null;
|
|
79
|
+
Custom: string;
|
|
80
|
+
}>> & {
|
|
81
|
+
length: number;
|
|
82
|
+
}, string>;
|
|
83
|
+
}, "miso_credit::credit::Credit<@local-pkg/composition_credits::composition_party_role::CompositionPartyRole>">;
|
|
84
|
+
}, "@local-pkg/composition_credits::composition_credits::CreditAddedEvent">;
|
|
85
|
+
export declare const CreditRemovedEvent: MoveStruct<{
|
|
86
|
+
composition_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
87
|
+
party_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
88
|
+
credit: MoveStruct<{
|
|
89
|
+
display_name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
90
|
+
roles: import("@mysten/sui/bcs").BcsType<import("@mysten/bcs").EnumOutputShapeWithKeys<{
|
|
91
|
+
Adapter: true;
|
|
92
|
+
Arranger: true;
|
|
93
|
+
Composer: true;
|
|
94
|
+
Lyricist: true;
|
|
95
|
+
Songwriter: true;
|
|
96
|
+
Translator: true;
|
|
97
|
+
Custom: string;
|
|
98
|
+
}, "Adapter" | "Arranger" | "Composer" | "Lyricist" | "Songwriter" | "Translator" | "Custom">[], Iterable<import("@mysten/bcs").EnumInputShape<{
|
|
99
|
+
Adapter: boolean | object | null;
|
|
100
|
+
Arranger: boolean | object | null;
|
|
101
|
+
Composer: boolean | object | null;
|
|
102
|
+
Lyricist: boolean | object | null;
|
|
103
|
+
Songwriter: boolean | object | null;
|
|
104
|
+
Translator: boolean | object | null;
|
|
105
|
+
Custom: string;
|
|
106
|
+
}>> & {
|
|
107
|
+
length: number;
|
|
108
|
+
}, string>;
|
|
109
|
+
}, "miso_credit::credit::Credit<@local-pkg/composition_credits::composition_party_role::CompositionPartyRole>">;
|
|
110
|
+
}, "@local-pkg/composition_credits::composition_credits::CreditRemovedEvent">;
|
|
111
|
+
export interface AddCreditArguments {
|
|
112
|
+
self: RawTransactionArgument<string>;
|
|
113
|
+
cap: RawTransactionArgument<string>;
|
|
114
|
+
party: RawTransactionArgument<string>;
|
|
115
|
+
credit: TransactionArgument;
|
|
116
|
+
}
|
|
117
|
+
export interface AddCreditOptions {
|
|
118
|
+
package?: string;
|
|
119
|
+
arguments: AddCreditArguments | [
|
|
120
|
+
self: RawTransactionArgument<string>,
|
|
121
|
+
cap: RawTransactionArgument<string>,
|
|
122
|
+
party: RawTransactionArgument<string>,
|
|
123
|
+
credit: TransactionArgument
|
|
124
|
+
];
|
|
125
|
+
typeArguments: [
|
|
126
|
+
string
|
|
127
|
+
];
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Adds a credit for a party on the composition, lazily creating the credits record
|
|
131
|
+
* on first use. Each credit must have 1-5 roles, and a party may hold at most one
|
|
132
|
+
* credit. Requires the composition's admin capability.
|
|
133
|
+
*/
|
|
134
|
+
export declare function addCredit(options: AddCreditOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
135
|
+
export interface RemoveCreditArguments {
|
|
136
|
+
self: RawTransactionArgument<string>;
|
|
137
|
+
cap: RawTransactionArgument<string>;
|
|
138
|
+
partyId: RawTransactionArgument<string>;
|
|
139
|
+
}
|
|
140
|
+
export interface RemoveCreditOptions {
|
|
141
|
+
package?: string;
|
|
142
|
+
arguments: RemoveCreditArguments | [
|
|
143
|
+
self: RawTransactionArgument<string>,
|
|
144
|
+
cap: RawTransactionArgument<string>,
|
|
145
|
+
partyId: RawTransactionArgument<string>
|
|
146
|
+
];
|
|
147
|
+
typeArguments: [
|
|
148
|
+
string
|
|
149
|
+
];
|
|
150
|
+
}
|
|
151
|
+
/** Removes a party's credit. Requires the composition's admin capability. */
|
|
152
|
+
export declare function removeCredit(options: RemoveCreditOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
153
|
+
export interface HasCreditsArguments {
|
|
154
|
+
self: RawTransactionArgument<string>;
|
|
155
|
+
}
|
|
156
|
+
export interface HasCreditsOptions {
|
|
157
|
+
package?: string;
|
|
158
|
+
arguments: HasCreditsArguments | [
|
|
159
|
+
self: RawTransactionArgument<string>
|
|
160
|
+
];
|
|
161
|
+
typeArguments: [
|
|
162
|
+
string
|
|
163
|
+
];
|
|
164
|
+
}
|
|
165
|
+
/** Returns whether a credits record has been attached to this composition yet. */
|
|
166
|
+
export declare function hasCredits(options: HasCreditsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
167
|
+
export interface CreditsArguments {
|
|
168
|
+
self: RawTransactionArgument<string>;
|
|
169
|
+
}
|
|
170
|
+
export interface CreditsOptions {
|
|
171
|
+
package?: string;
|
|
172
|
+
arguments: CreditsArguments | [
|
|
173
|
+
self: RawTransactionArgument<string>
|
|
174
|
+
];
|
|
175
|
+
typeArguments: [
|
|
176
|
+
string
|
|
177
|
+
];
|
|
178
|
+
}
|
|
179
|
+
/** Returns the party-to-credit map. Aborts if no credits are attached. */
|
|
180
|
+
export declare function credits(options: CreditsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
181
|
+
//# sourceMappingURL=composition_credits.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composition_credits.d.ts","sourceRoot":"","sources":["../../../src/contracts/composition_credits/composition_credits.ts"],"names":[],"mappings":"AA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AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/**
|
|
5
|
+
* First-party credits extension for compositions.
|
|
6
|
+
*
|
|
7
|
+
* Attribution (writing credits) is display-oriented and varies across platforms,
|
|
8
|
+
* so it lives here as a dynamic field on the composition rather than in immutable
|
|
9
|
+
* core. The data is attached under `ExtensionKey()` via the composition's
|
|
10
|
+
* cap-gated `uid_mut`, so every mutation is authorized by the composition's admin
|
|
11
|
+
* and credits survive into any lifecycle state (they may be attached before or
|
|
12
|
+
* after the composition is published).
|
|
13
|
+
*
|
|
14
|
+
* This is Miso's canonical credits standard; because it is an extension, other
|
|
15
|
+
* parties may publish their own composition-credits standard against the same
|
|
16
|
+
* `Composition`. Credits are NOT read by the economics — they are attribution.
|
|
17
|
+
*/
|
|
18
|
+
import { MoveTuple, MoveStruct, normalizeMoveArguments } from "../utils/index.js";
|
|
19
|
+
import { bcs } from '@mysten/sui/bcs';
|
|
20
|
+
import {} from '@mysten/sui/transactions';
|
|
21
|
+
import * as vec_map from "./deps/sui/vec_map.js";
|
|
22
|
+
import * as credit from "./deps/miso_credit/credit.js";
|
|
23
|
+
import * as composition_party_role from "./composition_party_role.js";
|
|
24
|
+
const $moduleName = '@local-pkg/composition_credits::composition_credits';
|
|
25
|
+
export const ExtensionKey = new MoveTuple({ name: `${$moduleName}::ExtensionKey`, fields: [bcs.bool()] });
|
|
26
|
+
export const CompositionCredits = new MoveStruct({ name: `${$moduleName}::CompositionCredits`, fields: {
|
|
27
|
+
/** Map of party IDs to their credit (display name + roles). */
|
|
28
|
+
credits: vec_map.VecMap(bcs.Address, credit.Credit(composition_party_role.CompositionPartyRole))
|
|
29
|
+
} });
|
|
30
|
+
export const CreditAddedEvent = new MoveStruct({ name: `${$moduleName}::CreditAddedEvent`, fields: {
|
|
31
|
+
composition_id: bcs.Address,
|
|
32
|
+
party_id: bcs.Address,
|
|
33
|
+
credit: credit.Credit(composition_party_role.CompositionPartyRole)
|
|
34
|
+
} });
|
|
35
|
+
export const CreditRemovedEvent = new MoveStruct({ name: `${$moduleName}::CreditRemovedEvent`, fields: {
|
|
36
|
+
composition_id: bcs.Address,
|
|
37
|
+
party_id: bcs.Address,
|
|
38
|
+
credit: credit.Credit(composition_party_role.CompositionPartyRole)
|
|
39
|
+
} });
|
|
40
|
+
/**
|
|
41
|
+
* Adds a credit for a party on the composition, lazily creating the credits record
|
|
42
|
+
* on first use. Each credit must have 1-5 roles, and a party may hold at most one
|
|
43
|
+
* credit. Requires the composition's admin capability.
|
|
44
|
+
*/
|
|
45
|
+
export function addCredit(options) {
|
|
46
|
+
const packageAddress = options.package ?? '@local-pkg/composition_credits';
|
|
47
|
+
const argumentsTypes = [
|
|
48
|
+
null,
|
|
49
|
+
null,
|
|
50
|
+
null,
|
|
51
|
+
null
|
|
52
|
+
];
|
|
53
|
+
const parameterNames = ["self", "cap", "party", "credit"];
|
|
54
|
+
return (tx) => tx.moveCall({
|
|
55
|
+
package: packageAddress,
|
|
56
|
+
module: 'composition_credits',
|
|
57
|
+
function: 'add_credit',
|
|
58
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
59
|
+
typeArguments: options.typeArguments
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
/** Removes a party's credit. Requires the composition's admin capability. */
|
|
63
|
+
export function removeCredit(options) {
|
|
64
|
+
const packageAddress = options.package ?? '@local-pkg/composition_credits';
|
|
65
|
+
const argumentsTypes = [
|
|
66
|
+
null,
|
|
67
|
+
null,
|
|
68
|
+
'0x2::object::ID'
|
|
69
|
+
];
|
|
70
|
+
const parameterNames = ["self", "cap", "partyId"];
|
|
71
|
+
return (tx) => tx.moveCall({
|
|
72
|
+
package: packageAddress,
|
|
73
|
+
module: 'composition_credits',
|
|
74
|
+
function: 'remove_credit',
|
|
75
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
76
|
+
typeArguments: options.typeArguments
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
/** Returns whether a credits record has been attached to this composition yet. */
|
|
80
|
+
export function hasCredits(options) {
|
|
81
|
+
const packageAddress = options.package ?? '@local-pkg/composition_credits';
|
|
82
|
+
const argumentsTypes = [
|
|
83
|
+
null
|
|
84
|
+
];
|
|
85
|
+
const parameterNames = ["self"];
|
|
86
|
+
return (tx) => tx.moveCall({
|
|
87
|
+
package: packageAddress,
|
|
88
|
+
module: 'composition_credits',
|
|
89
|
+
function: 'has_credits',
|
|
90
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
91
|
+
typeArguments: options.typeArguments
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
/** Returns the party-to-credit map. Aborts if no credits are attached. */
|
|
95
|
+
export function credits(options) {
|
|
96
|
+
const packageAddress = options.package ?? '@local-pkg/composition_credits';
|
|
97
|
+
const argumentsTypes = [
|
|
98
|
+
null
|
|
99
|
+
];
|
|
100
|
+
const parameterNames = ["self"];
|
|
101
|
+
return (tx) => tx.moveCall({
|
|
102
|
+
package: packageAddress,
|
|
103
|
+
module: 'composition_credits',
|
|
104
|
+
function: 'credits',
|
|
105
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
106
|
+
typeArguments: options.typeArguments
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
//# sourceMappingURL=composition_credits.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composition_credits.js","sourceRoot":"","sources":["../../../src/contracts/composition_credits/composition_credits.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,sBAAsB,EAA+B,MAAM,mBAAmB,CAAC;AAC/G,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,EAA8C,MAAM,0BAA0B,CAAC;AACtF,OAAO,KAAK,OAAO,MAAM,uBA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,cAAc,GAAG,CAAC,MAAM,CAAC,CAAC;IAChC,OAAO,CAAC,EAAe,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC;QACpC,OAAO,EAAE,cAAc;QACvB,MAAM,EAAE,qBAAqB;QAC7B,QAAQ,EAAE,aAAa;QACvB,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;QACpF,aAAa,EAAE,OAAO,CAAC,aAAa;KACvC,CAAC,CAAC;AACP,CAAC;AAaD,0EAA0E;AAC1E,MAAM,UAAU,OAAO,CAAC,OAAuB;IAC3C,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,IAAI,gCAAgC,CAAC;IAC3E,MAAM,cAAc,GAAG;QACnB,IAAI;KACqB,CAAC;IAC9B,MAAM,cAAc,GAAG,CAAC,MAAM,CAAC,CAAC;IAChC,OAAO,CAAC,EAAe,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC;QACpC,OAAO,EAAE,cAAc;QACvB,MAAM,EAAE,qBAAqB;QAC7B,QAAQ,EAAE,SAAS;QACnB,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;QACpF,aAAa,EAAE,OAAO,CAAC,aAAa;KACvC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/**
|
|
5
|
+
* Defines the roles that parties can hold on a composition. Compositions are the
|
|
6
|
+
* underlying musical works (melody + lyrics), and these roles represent the
|
|
7
|
+
* writing and adaptation contributions to them.
|
|
8
|
+
*
|
|
9
|
+
* ### Design
|
|
10
|
+
*
|
|
11
|
+
* `CompositionPartyRole` is a closed enum: variants can only be constructed and
|
|
12
|
+
* matched inside this module, so the `new_*_role` constructors are the external
|
|
13
|
+
* write-API and `name()` is the external read-API.
|
|
14
|
+
*
|
|
15
|
+
* - **No seniority axis.** Unlike recording roles, composition roles carry no
|
|
16
|
+
* level — a writer either contributed in a given capacity or did not.
|
|
17
|
+
* - **`Custom` is the escape hatch.** The canonical variants cover the common
|
|
18
|
+
* writing vocabulary; anything outside it is a `Custom(name)` whose name is
|
|
19
|
+
* validated. Prefer a canonical variant when one fits.
|
|
20
|
+
* - **`name()` is the canonical identifier**, returned as a stable PascalCase
|
|
21
|
+
* token (e.g. `"Songwriter"`). For `Custom`, `name()` returns the user-supplied
|
|
22
|
+
* string.
|
|
23
|
+
*
|
|
24
|
+
* These identifiers are Miso's own canonical vocabulary; any overlap with an
|
|
25
|
+
* external standard (e.g. DDEX) is coincidental, not a reproduction of it.
|
|
26
|
+
*/
|
|
27
|
+
import { MoveEnum, type RawTransactionArgument } from '../utils/index.ts';
|
|
28
|
+
import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
|
|
29
|
+
/** Represents a party's role on a composition. */
|
|
30
|
+
export declare const CompositionPartyRole: MoveEnum<{
|
|
31
|
+
/** Adapted an existing work into this composition. */
|
|
32
|
+
Adapter: null;
|
|
33
|
+
/** Arranged the musical parts of the composition. */
|
|
34
|
+
Arranger: null;
|
|
35
|
+
/** Composed the music of the composition. */
|
|
36
|
+
Composer: null;
|
|
37
|
+
/** Wrote the lyrics of the composition. */
|
|
38
|
+
Lyricist: null;
|
|
39
|
+
/** Wrote both music and lyrics of the composition. */
|
|
40
|
+
Songwriter: null;
|
|
41
|
+
/** Translated the lyrics of the composition. */
|
|
42
|
+
Translator: null;
|
|
43
|
+
/**
|
|
44
|
+
* A user-defined role not covered by a canonical variant. Carries the role name
|
|
45
|
+
* (validated). An escape hatch — prefer a canonical variant when one fits.
|
|
46
|
+
*/
|
|
47
|
+
Custom: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
48
|
+
}, "@local-pkg/composition_credits::composition_party_role::CompositionPartyRole">;
|
|
49
|
+
export interface NewAdapterRoleOptions {
|
|
50
|
+
package?: string;
|
|
51
|
+
arguments?: [
|
|
52
|
+
];
|
|
53
|
+
}
|
|
54
|
+
/** Creates a new Adapter role. */
|
|
55
|
+
export declare function newAdapterRole(options?: NewAdapterRoleOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
56
|
+
export interface NewArrangerRoleOptions {
|
|
57
|
+
package?: string;
|
|
58
|
+
arguments?: [
|
|
59
|
+
];
|
|
60
|
+
}
|
|
61
|
+
/** Creates a new Arranger role. */
|
|
62
|
+
export declare function newArrangerRole(options?: NewArrangerRoleOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
63
|
+
export interface NewComposerRoleOptions {
|
|
64
|
+
package?: string;
|
|
65
|
+
arguments?: [
|
|
66
|
+
];
|
|
67
|
+
}
|
|
68
|
+
/** Creates a new Composer role. */
|
|
69
|
+
export declare function newComposerRole(options?: NewComposerRoleOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
70
|
+
export interface NewLyricistRoleOptions {
|
|
71
|
+
package?: string;
|
|
72
|
+
arguments?: [
|
|
73
|
+
];
|
|
74
|
+
}
|
|
75
|
+
/** Creates a new Lyricist role. */
|
|
76
|
+
export declare function newLyricistRole(options?: NewLyricistRoleOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
77
|
+
export interface NewSongwriterRoleOptions {
|
|
78
|
+
package?: string;
|
|
79
|
+
arguments?: [
|
|
80
|
+
];
|
|
81
|
+
}
|
|
82
|
+
/** Creates a new Songwriter role. */
|
|
83
|
+
export declare function newSongwriterRole(options?: NewSongwriterRoleOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
84
|
+
export interface NewTranslatorRoleOptions {
|
|
85
|
+
package?: string;
|
|
86
|
+
arguments?: [
|
|
87
|
+
];
|
|
88
|
+
}
|
|
89
|
+
/** Creates a new Translator role. */
|
|
90
|
+
export declare function newTranslatorRole(options?: NewTranslatorRoleOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
91
|
+
export interface NewCustomRoleArguments {
|
|
92
|
+
roleName: RawTransactionArgument<string>;
|
|
93
|
+
}
|
|
94
|
+
export interface NewCustomRoleOptions {
|
|
95
|
+
package?: string;
|
|
96
|
+
arguments: NewCustomRoleArguments | [
|
|
97
|
+
roleName: RawTransactionArgument<string>
|
|
98
|
+
];
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Creates a new Custom role with a user-defined name. The name freezes into
|
|
102
|
+
* credits, so it is validated here. Prefer a canonical variant when one fits.
|
|
103
|
+
*/
|
|
104
|
+
export declare function newCustomRole(options: NewCustomRoleOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
105
|
+
export interface NameArguments {
|
|
106
|
+
self: TransactionArgument;
|
|
107
|
+
}
|
|
108
|
+
export interface NameOptions {
|
|
109
|
+
package?: string;
|
|
110
|
+
arguments: NameArguments | [
|
|
111
|
+
self: TransactionArgument
|
|
112
|
+
];
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Returns the canonical identifier of the role as a stable PascalCase token. For
|
|
116
|
+
* `Custom`, returns the user-supplied name.
|
|
117
|
+
*/
|
|
118
|
+
export declare function name(options: NameOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
119
|
+
//# sourceMappingURL=composition_party_role.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composition_party_role.d.ts","sourceRoot":"","sources":["../../../src/contracts/composition_credits/composition_party_role.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAE,QAAQ,EAA0B,KAAK,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAElG,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEtF,kDAAkD;AAClD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