@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
|
@@ -0,0 +1,527 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/**
|
|
5
|
+
* Represents parties (individuals or groups) that participate in on-chain
|
|
6
|
+
* activities. A party is a named entity with capability-based authorization.
|
|
7
|
+
*
|
|
8
|
+
* ### Key Features:
|
|
9
|
+
*
|
|
10
|
+
* - Individual and group party types
|
|
11
|
+
* - Extensible metadata via dynamic fields
|
|
12
|
+
* - Capability-based authorization for modifications
|
|
13
|
+
* - Groups can contain multiple individual parties
|
|
14
|
+
*/
|
|
15
|
+
import { MoveEnum, MoveStruct, MoveTuple, normalizeMoveArguments } from "../utils/index.js";
|
|
16
|
+
import { bcs } from '@mysten/sui/bcs';
|
|
17
|
+
import {} from '@mysten/sui/transactions';
|
|
18
|
+
import * as vec_set from "./deps/sui/vec_set.js";
|
|
19
|
+
const $moduleName = '@local-pkg/miso_party::party';
|
|
20
|
+
/** The type of self: individual person or group. */
|
|
21
|
+
export const PartyKind = new MoveEnum({ name: `${$moduleName}::PartyKind`, fields: {
|
|
22
|
+
/** A single person (artist, producer, etc.). */
|
|
23
|
+
Individual: null,
|
|
24
|
+
/** A group containing multiple individual parties. */
|
|
25
|
+
Group: vec_set.VecSet(bcs.Address)
|
|
26
|
+
} });
|
|
27
|
+
export const Party = new MoveStruct({ name: `${$moduleName}::Party`, fields: {
|
|
28
|
+
/** Unique identifier for this party. */
|
|
29
|
+
id: bcs.Address,
|
|
30
|
+
/** Whether this is an individual or group party. */
|
|
31
|
+
kind: PartyKind,
|
|
32
|
+
/**
|
|
33
|
+
* Human-readable name of the party. Note this name is not "official" or "verified"
|
|
34
|
+
* in any way. Verification should be performed by the application layer.
|
|
35
|
+
*/
|
|
36
|
+
name: bcs.string(),
|
|
37
|
+
/** Unix ms when the party was created. Set once at `new`; immutable. */
|
|
38
|
+
created_at_ms: bcs.u64()
|
|
39
|
+
} });
|
|
40
|
+
export const PartyAdminCap = new MoveStruct({ name: `${$moduleName}::PartyAdminCap`, fields: {
|
|
41
|
+
/** Unique identifier for this capability. */
|
|
42
|
+
id: bcs.Address,
|
|
43
|
+
/** ID of the party this capability controls. */
|
|
44
|
+
party_id: bcs.Address
|
|
45
|
+
} });
|
|
46
|
+
export const PartyAdminCapKey = new MoveTuple({ name: `${$moduleName}::PartyAdminCapKey`, fields: [bcs.Address] });
|
|
47
|
+
export const PendingInviteKey = new MoveTuple({ name: `${$moduleName}::PendingInviteKey`, fields: [bcs.Address] });
|
|
48
|
+
export const PendingMembershipKey = new MoveTuple({ name: `${$moduleName}::PendingMembershipKey`, fields: [bcs.Address] });
|
|
49
|
+
export const MembershipKey = new MoveTuple({ name: `${$moduleName}::MembershipKey`, fields: [bcs.Address] });
|
|
50
|
+
export const Membership = new MoveStruct({ name: `${$moduleName}::Membership`, fields: {
|
|
51
|
+
/** Epoch in which the party joined the group. */
|
|
52
|
+
since_epoch: bcs.u64()
|
|
53
|
+
} });
|
|
54
|
+
export const PartyCreatedEvent = new MoveStruct({ name: `${$moduleName}::PartyCreatedEvent`, fields: {
|
|
55
|
+
/** ID of the newly created party. */
|
|
56
|
+
party_id: bcs.Address,
|
|
57
|
+
/** Name of the party. */
|
|
58
|
+
name: bcs.string(),
|
|
59
|
+
/** Kind of the party. */
|
|
60
|
+
kind: bcs.string(),
|
|
61
|
+
/** Unix ms when the party was created. */
|
|
62
|
+
created_at_ms: bcs.u64()
|
|
63
|
+
} });
|
|
64
|
+
export const PartyNameSetEvent = new MoveStruct({ name: `${$moduleName}::PartyNameSetEvent`, fields: {
|
|
65
|
+
/** ID of the party. */
|
|
66
|
+
party_id: bcs.Address,
|
|
67
|
+
/** Name of the party. */
|
|
68
|
+
name: bcs.string()
|
|
69
|
+
} });
|
|
70
|
+
export const PartyInvitedEvent = new MoveStruct({ name: `${$moduleName}::PartyInvitedEvent`, fields: {
|
|
71
|
+
/** ID of the group. */
|
|
72
|
+
group_id: bcs.Address,
|
|
73
|
+
/** ID of the invited member party. */
|
|
74
|
+
member_id: bcs.Address
|
|
75
|
+
} });
|
|
76
|
+
export const PartyJoinedGroupEvent = new MoveStruct({ name: `${$moduleName}::PartyJoinedGroupEvent`, fields: {
|
|
77
|
+
/** ID of the group. */
|
|
78
|
+
group_id: bcs.Address,
|
|
79
|
+
/** ID of the party that joined. */
|
|
80
|
+
member_id: bcs.Address
|
|
81
|
+
} });
|
|
82
|
+
export const PartyInviteDeclinedEvent = new MoveStruct({ name: `${$moduleName}::PartyInviteDeclinedEvent`, fields: {
|
|
83
|
+
/** ID of the group. */
|
|
84
|
+
group_id: bcs.Address,
|
|
85
|
+
/** ID of the party that declined. */
|
|
86
|
+
member_id: bcs.Address
|
|
87
|
+
} });
|
|
88
|
+
export const PartyInviteRevokedEvent = new MoveStruct({ name: `${$moduleName}::PartyInviteRevokedEvent`, fields: {
|
|
89
|
+
/** ID of the group. */
|
|
90
|
+
group_id: bcs.Address,
|
|
91
|
+
/** ID of the party whose invite was revoked. */
|
|
92
|
+
member_id: bcs.Address
|
|
93
|
+
} });
|
|
94
|
+
export const PartyRemovedFromGroupEvent = new MoveStruct({ name: `${$moduleName}::PartyRemovedFromGroupEvent`, fields: {
|
|
95
|
+
/** ID of the group. */
|
|
96
|
+
group_id: bcs.Address,
|
|
97
|
+
/** ID of the party removed from the group. */
|
|
98
|
+
member_id: bcs.Address
|
|
99
|
+
} });
|
|
100
|
+
export const PartyLeftGroupEvent = new MoveStruct({ name: `${$moduleName}::PartyLeftGroupEvent`, fields: {
|
|
101
|
+
/** ID of the group. */
|
|
102
|
+
group_id: bcs.Address,
|
|
103
|
+
/** ID of the party that left the group. */
|
|
104
|
+
member_id: bcs.Address
|
|
105
|
+
} });
|
|
106
|
+
/**
|
|
107
|
+
* Creates a new party with the specified kind and name. Returns the admin
|
|
108
|
+
* capability for managing the party. The party is shared and starts in the Created
|
|
109
|
+
* state.
|
|
110
|
+
*/
|
|
111
|
+
export function _new(options) {
|
|
112
|
+
const packageAddress = options.package ?? '@local-pkg/miso_party';
|
|
113
|
+
const argumentsTypes = [
|
|
114
|
+
null,
|
|
115
|
+
'0x1::string::String',
|
|
116
|
+
'0x2::clock::Clock'
|
|
117
|
+
];
|
|
118
|
+
const parameterNames = ["kind", "name"];
|
|
119
|
+
return (tx) => tx.moveCall({
|
|
120
|
+
package: packageAddress,
|
|
121
|
+
module: 'party',
|
|
122
|
+
function: 'new',
|
|
123
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Shares the party object, making it publicly accessible. Requires the admin
|
|
128
|
+
* capability.
|
|
129
|
+
*/
|
|
130
|
+
export function share(options) {
|
|
131
|
+
const packageAddress = options.package ?? '@local-pkg/miso_party';
|
|
132
|
+
const argumentsTypes = [
|
|
133
|
+
null,
|
|
134
|
+
null
|
|
135
|
+
];
|
|
136
|
+
const parameterNames = ["self", "cap"];
|
|
137
|
+
return (tx) => tx.moveCall({
|
|
138
|
+
package: packageAddress,
|
|
139
|
+
module: 'party',
|
|
140
|
+
function: 'share',
|
|
141
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
/** Sets the human-readable name of the party. Requires the admin capability. */
|
|
145
|
+
export function setName(options) {
|
|
146
|
+
const packageAddress = options.package ?? '@local-pkg/miso_party';
|
|
147
|
+
const argumentsTypes = [
|
|
148
|
+
null,
|
|
149
|
+
null,
|
|
150
|
+
'0x1::string::String'
|
|
151
|
+
];
|
|
152
|
+
const parameterNames = ["self", "cap", "name"];
|
|
153
|
+
return (tx) => tx.moveCall({
|
|
154
|
+
package: packageAddress,
|
|
155
|
+
module: 'party',
|
|
156
|
+
function: 'set_name',
|
|
157
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Invites an individual party to join a group. Requires the group's admin
|
|
162
|
+
* capability. Records matching pending-invite indexes on both parties; the invited
|
|
163
|
+
* party joins only by calling `accept_invite` with its own admin cap — so no party
|
|
164
|
+
* can be made a member without its consent. The party being invited must be an
|
|
165
|
+
* individual (not another group).
|
|
166
|
+
*/
|
|
167
|
+
export function inviteParty(options) {
|
|
168
|
+
const packageAddress = options.package ?? '@local-pkg/miso_party';
|
|
169
|
+
const argumentsTypes = [
|
|
170
|
+
null,
|
|
171
|
+
null,
|
|
172
|
+
null
|
|
173
|
+
];
|
|
174
|
+
const parameterNames = ["group", "member", "groupCap"];
|
|
175
|
+
return (tx) => tx.moveCall({
|
|
176
|
+
package: packageAddress,
|
|
177
|
+
module: 'party',
|
|
178
|
+
function: 'invite_party',
|
|
179
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Accepts a pending invite, joining `member` to `group`. Requires the _member's_
|
|
184
|
+
* own admin cap (consent). Consumes the pending invite, inserts the member into
|
|
185
|
+
* the group's set, and writes a `Membership` record onto the member party — both
|
|
186
|
+
* sides in one transaction, so they can't diverge.
|
|
187
|
+
*/
|
|
188
|
+
export function acceptInvite(options) {
|
|
189
|
+
const packageAddress = options.package ?? '@local-pkg/miso_party';
|
|
190
|
+
const argumentsTypes = [
|
|
191
|
+
null,
|
|
192
|
+
null,
|
|
193
|
+
null
|
|
194
|
+
];
|
|
195
|
+
const parameterNames = ["group", "member", "memberCap"];
|
|
196
|
+
return (tx) => tx.moveCall({
|
|
197
|
+
package: packageAddress,
|
|
198
|
+
module: 'party',
|
|
199
|
+
function: 'accept_invite',
|
|
200
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Declines a pending invite, authorized by the invited party's own admin cap.
|
|
205
|
+
* Clears the group-side invitation and the member-facing inbox entry together.
|
|
206
|
+
*/
|
|
207
|
+
export function declineInvite(options) {
|
|
208
|
+
const packageAddress = options.package ?? '@local-pkg/miso_party';
|
|
209
|
+
const argumentsTypes = [
|
|
210
|
+
null,
|
|
211
|
+
null,
|
|
212
|
+
null
|
|
213
|
+
];
|
|
214
|
+
const parameterNames = ["group", "member", "memberCap"];
|
|
215
|
+
return (tx) => tx.moveCall({
|
|
216
|
+
package: packageAddress,
|
|
217
|
+
module: 'party',
|
|
218
|
+
function: 'decline_invite',
|
|
219
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Revokes a pending invite, authorized by the group's admin cap. Clears the
|
|
224
|
+
* group-side invitation and the member-facing inbox entry together.
|
|
225
|
+
*/
|
|
226
|
+
export function revokeInvite(options) {
|
|
227
|
+
const packageAddress = options.package ?? '@local-pkg/miso_party';
|
|
228
|
+
const argumentsTypes = [
|
|
229
|
+
null,
|
|
230
|
+
null,
|
|
231
|
+
null
|
|
232
|
+
];
|
|
233
|
+
const parameterNames = ["group", "member", "groupCap"];
|
|
234
|
+
return (tx) => tx.moveCall({
|
|
235
|
+
package: packageAddress,
|
|
236
|
+
module: 'party',
|
|
237
|
+
function: 'revoke_invite',
|
|
238
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* Removes the caller's party from a group, authorized by the _member's_ own admin
|
|
243
|
+
* capability — the member's unconditional exit. Clears both the group's member set
|
|
244
|
+
* and the member's own membership record.
|
|
245
|
+
*/
|
|
246
|
+
export function leave(options) {
|
|
247
|
+
const packageAddress = options.package ?? '@local-pkg/miso_party';
|
|
248
|
+
const argumentsTypes = [
|
|
249
|
+
null,
|
|
250
|
+
null,
|
|
251
|
+
null
|
|
252
|
+
];
|
|
253
|
+
const parameterNames = ["group", "member", "memberCap"];
|
|
254
|
+
return (tx) => tx.moveCall({
|
|
255
|
+
package: packageAddress,
|
|
256
|
+
module: 'party',
|
|
257
|
+
function: 'leave',
|
|
258
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* Removes (evicts) a member from a group, authorized by the _group's_ admin
|
|
263
|
+
* capability. Because this module owns `Party`, it can scrub the member's own
|
|
264
|
+
* membership record here even without the member's cap — but only the record for
|
|
265
|
+
* _this_ group, so the admin's reach into the member is scoped to "cancel my
|
|
266
|
+
* group's membership" and nothing else on the member is touchable.
|
|
267
|
+
*/
|
|
268
|
+
export function removeMember(options) {
|
|
269
|
+
const packageAddress = options.package ?? '@local-pkg/miso_party';
|
|
270
|
+
const argumentsTypes = [
|
|
271
|
+
null,
|
|
272
|
+
null,
|
|
273
|
+
null
|
|
274
|
+
];
|
|
275
|
+
const parameterNames = ["group", "groupCap", "member"];
|
|
276
|
+
return (tx) => tx.moveCall({
|
|
277
|
+
package: packageAddress,
|
|
278
|
+
module: 'party',
|
|
279
|
+
function: 'remove_member',
|
|
280
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
/** Creates a new individual party kind. */
|
|
284
|
+
export function newIndividualKind(options = {}) {
|
|
285
|
+
const packageAddress = options.package ?? '@local-pkg/miso_party';
|
|
286
|
+
return (tx) => tx.moveCall({
|
|
287
|
+
package: packageAddress,
|
|
288
|
+
module: 'party',
|
|
289
|
+
function: 'new_individual_kind',
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
/** Creates a new group party kind with an empty member set. */
|
|
293
|
+
export function newGroupKind(options = {}) {
|
|
294
|
+
const packageAddress = options.package ?? '@local-pkg/miso_party';
|
|
295
|
+
return (tx) => tx.moveCall({
|
|
296
|
+
package: packageAddress,
|
|
297
|
+
module: 'party',
|
|
298
|
+
function: 'new_group_kind',
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
/** Returns the human-readable name of this party. */
|
|
302
|
+
export function name(options) {
|
|
303
|
+
const packageAddress = options.package ?? '@local-pkg/miso_party';
|
|
304
|
+
const argumentsTypes = [
|
|
305
|
+
null
|
|
306
|
+
];
|
|
307
|
+
const parameterNames = ["self"];
|
|
308
|
+
return (tx) => tx.moveCall({
|
|
309
|
+
package: packageAddress,
|
|
310
|
+
module: 'party',
|
|
311
|
+
function: 'name',
|
|
312
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
/** Returns the Unix ms when this party was created. */
|
|
316
|
+
export function createdAtMs(options) {
|
|
317
|
+
const packageAddress = options.package ?? '@local-pkg/miso_party';
|
|
318
|
+
const argumentsTypes = [
|
|
319
|
+
null
|
|
320
|
+
];
|
|
321
|
+
const parameterNames = ["self"];
|
|
322
|
+
return (tx) => tx.moveCall({
|
|
323
|
+
package: packageAddress,
|
|
324
|
+
module: 'party',
|
|
325
|
+
function: 'created_at_ms',
|
|
326
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
/** Returns true if this party is an individual. */
|
|
330
|
+
export function isIndividualKind(options) {
|
|
331
|
+
const packageAddress = options.package ?? '@local-pkg/miso_party';
|
|
332
|
+
const argumentsTypes = [
|
|
333
|
+
null
|
|
334
|
+
];
|
|
335
|
+
const parameterNames = ["self"];
|
|
336
|
+
return (tx) => tx.moveCall({
|
|
337
|
+
package: packageAddress,
|
|
338
|
+
module: 'party',
|
|
339
|
+
function: 'is_individual_kind',
|
|
340
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
/** Returns true if this party is a group. */
|
|
344
|
+
export function isGroupKind(options) {
|
|
345
|
+
const packageAddress = options.package ?? '@local-pkg/miso_party';
|
|
346
|
+
const argumentsTypes = [
|
|
347
|
+
null
|
|
348
|
+
];
|
|
349
|
+
const parameterNames = ["self"];
|
|
350
|
+
return (tx) => tx.moveCall({
|
|
351
|
+
package: packageAddress,
|
|
352
|
+
module: 'party',
|
|
353
|
+
function: 'is_group_kind',
|
|
354
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
355
|
+
});
|
|
356
|
+
}
|
|
357
|
+
/** Returns a reference to the group members. Aborts if this party is not a group. */
|
|
358
|
+
export function groupMembers(options) {
|
|
359
|
+
const packageAddress = options.package ?? '@local-pkg/miso_party';
|
|
360
|
+
const argumentsTypes = [
|
|
361
|
+
null
|
|
362
|
+
];
|
|
363
|
+
const parameterNames = ["self"];
|
|
364
|
+
return (tx) => tx.moveCall({
|
|
365
|
+
package: packageAddress,
|
|
366
|
+
module: 'party',
|
|
367
|
+
function: 'group_members',
|
|
368
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
369
|
+
});
|
|
370
|
+
}
|
|
371
|
+
/**
|
|
372
|
+
* Whether `member` currently holds a membership record for `group_id`. Reads the
|
|
373
|
+
* member side, so it needs only the member party (no group object) — the primitive
|
|
374
|
+
* extensions use for member-gated authorization.
|
|
375
|
+
*/
|
|
376
|
+
export function isMember(options) {
|
|
377
|
+
const packageAddress = options.package ?? '@local-pkg/miso_party';
|
|
378
|
+
const argumentsTypes = [
|
|
379
|
+
null,
|
|
380
|
+
'0x2::object::ID'
|
|
381
|
+
];
|
|
382
|
+
const parameterNames = ["member", "groupId"];
|
|
383
|
+
return (tx) => tx.moveCall({
|
|
384
|
+
package: packageAddress,
|
|
385
|
+
module: 'party',
|
|
386
|
+
function: 'is_member',
|
|
387
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
388
|
+
});
|
|
389
|
+
}
|
|
390
|
+
/** Whether the group has a pending invite outstanding for `member_id`. */
|
|
391
|
+
export function hasPendingInvite(options) {
|
|
392
|
+
const packageAddress = options.package ?? '@local-pkg/miso_party';
|
|
393
|
+
const argumentsTypes = [
|
|
394
|
+
null,
|
|
395
|
+
'0x2::object::ID'
|
|
396
|
+
];
|
|
397
|
+
const parameterNames = ["group", "memberId"];
|
|
398
|
+
return (tx) => tx.moveCall({
|
|
399
|
+
package: packageAddress,
|
|
400
|
+
module: 'party',
|
|
401
|
+
function: 'has_pending_invite',
|
|
402
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
403
|
+
});
|
|
404
|
+
}
|
|
405
|
+
/**
|
|
406
|
+
* Whether an individual party has a pending membership invitation from a group.
|
|
407
|
+
* Reads the member-facing invitation index, so callers can discover invitations by
|
|
408
|
+
* enumerating only the member party's dynamic fields.
|
|
409
|
+
*/
|
|
410
|
+
export function hasPendingMembership(options) {
|
|
411
|
+
const packageAddress = options.package ?? '@local-pkg/miso_party';
|
|
412
|
+
const argumentsTypes = [
|
|
413
|
+
null,
|
|
414
|
+
'0x2::object::ID'
|
|
415
|
+
];
|
|
416
|
+
const parameterNames = ["member", "groupId"];
|
|
417
|
+
return (tx) => tx.moveCall({
|
|
418
|
+
package: packageAddress,
|
|
419
|
+
module: 'party',
|
|
420
|
+
function: 'has_pending_membership',
|
|
421
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
422
|
+
});
|
|
423
|
+
}
|
|
424
|
+
/** Returns the human-readable name of the party kind. */
|
|
425
|
+
export function partyKindName(options) {
|
|
426
|
+
const packageAddress = options.package ?? '@local-pkg/miso_party';
|
|
427
|
+
const argumentsTypes = [
|
|
428
|
+
null
|
|
429
|
+
];
|
|
430
|
+
const parameterNames = ["self"];
|
|
431
|
+
return (tx) => tx.moveCall({
|
|
432
|
+
package: packageAddress,
|
|
433
|
+
module: 'party',
|
|
434
|
+
function: 'party_kind_name',
|
|
435
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
436
|
+
});
|
|
437
|
+
}
|
|
438
|
+
/** Verifies that the admin capability matches this party. */
|
|
439
|
+
export function authorize(options) {
|
|
440
|
+
const packageAddress = options.package ?? '@local-pkg/miso_party';
|
|
441
|
+
const argumentsTypes = [
|
|
442
|
+
null,
|
|
443
|
+
null
|
|
444
|
+
];
|
|
445
|
+
const parameterNames = ["self", "cap"];
|
|
446
|
+
return (tx) => tx.moveCall({
|
|
447
|
+
package: packageAddress,
|
|
448
|
+
module: 'party',
|
|
449
|
+
function: 'authorize',
|
|
450
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
451
|
+
});
|
|
452
|
+
}
|
|
453
|
+
/** Returns the ID of the party associated with the admin capability. */
|
|
454
|
+
export function partyAdminCapPartyId(options) {
|
|
455
|
+
const packageAddress = options.package ?? '@local-pkg/miso_party';
|
|
456
|
+
const argumentsTypes = [
|
|
457
|
+
null
|
|
458
|
+
];
|
|
459
|
+
const parameterNames = ["cap"];
|
|
460
|
+
return (tx) => tx.moveCall({
|
|
461
|
+
package: packageAddress,
|
|
462
|
+
module: 'party',
|
|
463
|
+
function: 'party_admin_cap_party_id',
|
|
464
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
465
|
+
});
|
|
466
|
+
}
|
|
467
|
+
/** Returns a reference to the party's UID for reading dynamic fields. */
|
|
468
|
+
export function uid(options) {
|
|
469
|
+
const packageAddress = options.package ?? '@local-pkg/miso_party';
|
|
470
|
+
const argumentsTypes = [
|
|
471
|
+
null
|
|
472
|
+
];
|
|
473
|
+
const parameterNames = ["self"];
|
|
474
|
+
return (tx) => tx.moveCall({
|
|
475
|
+
package: packageAddress,
|
|
476
|
+
module: 'party',
|
|
477
|
+
function: 'uid',
|
|
478
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
479
|
+
});
|
|
480
|
+
}
|
|
481
|
+
/**
|
|
482
|
+
* Returns a mutable reference to the party's UID for dynamic field operations.
|
|
483
|
+
* Requires the admin capability.
|
|
484
|
+
*/
|
|
485
|
+
export function uidMut(options) {
|
|
486
|
+
const packageAddress = options.package ?? '@local-pkg/miso_party';
|
|
487
|
+
const argumentsTypes = [
|
|
488
|
+
null,
|
|
489
|
+
null
|
|
490
|
+
];
|
|
491
|
+
const parameterNames = ["self", "cap"];
|
|
492
|
+
return (tx) => tx.moveCall({
|
|
493
|
+
package: packageAddress,
|
|
494
|
+
module: 'party',
|
|
495
|
+
function: 'uid_mut',
|
|
496
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
497
|
+
});
|
|
498
|
+
}
|
|
499
|
+
/** Aborts if this party is not an individual. */
|
|
500
|
+
export function assertIsIndividualKind(options) {
|
|
501
|
+
const packageAddress = options.package ?? '@local-pkg/miso_party';
|
|
502
|
+
const argumentsTypes = [
|
|
503
|
+
null
|
|
504
|
+
];
|
|
505
|
+
const parameterNames = ["self"];
|
|
506
|
+
return (tx) => tx.moveCall({
|
|
507
|
+
package: packageAddress,
|
|
508
|
+
module: 'party',
|
|
509
|
+
function: 'assert_is_individual_kind',
|
|
510
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
511
|
+
});
|
|
512
|
+
}
|
|
513
|
+
/** Aborts if this party is not a group. */
|
|
514
|
+
export function assertIsGroupKind(options) {
|
|
515
|
+
const packageAddress = options.package ?? '@local-pkg/miso_party';
|
|
516
|
+
const argumentsTypes = [
|
|
517
|
+
null
|
|
518
|
+
];
|
|
519
|
+
const parameterNames = ["self"];
|
|
520
|
+
return (tx) => tx.moveCall({
|
|
521
|
+
package: packageAddress,
|
|
522
|
+
module: 'party',
|
|
523
|
+
function: 'assert_is_group_kind',
|
|
524
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
525
|
+
});
|
|
526
|
+
}
|
|
527
|
+
//# sourceMappingURL=party.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"party.js","sourceRoot":"","sources":["../../../src/contracts/miso_party/party.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,sBAAsB,EAA+B,MAAM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Q,EAAE,sBAAsB;QAChC,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;KACvF,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/**
|
|
5
|
+
* Off-Miso call-to-action links for a party — the "what do you want people to do"
|
|
6
|
+
* row (Tickets, Merch, Newsletter, external Listen, …).
|
|
7
|
+
*
|
|
8
|
+
* Deliberately slim: a CTA is just a `{ label, url }`. On-Miso actions (collect /
|
|
9
|
+
* listen-on-Miso / pin) are a different, interactive concern and live in
|
|
10
|
+
* `party_featured`, which references object ids and can render live state — so
|
|
11
|
+
* this package stays a plain, dependency-light external link hub.
|
|
12
|
+
*
|
|
13
|
+
* The CTAs are an ordered list: **position is priority**. The whole list is
|
|
14
|
+
* written at once (`set_ctas`) — the natural fit for a drag-to-reorder editor that
|
|
15
|
+
* saves on submit — so there are no per-entry ids to track. Gated by the
|
|
16
|
+
* `PartyAdminCap`; views are permissionless.
|
|
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 CtasKey: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">], "@local-pkg/party_cta::party_cta::CtasKey">;
|
|
21
|
+
export declare const Cta: MoveStruct<{
|
|
22
|
+
label: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
23
|
+
url: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
24
|
+
}, "@local-pkg/party_cta::party_cta::Cta">;
|
|
25
|
+
export declare const CtasSetEvent: MoveStruct<{
|
|
26
|
+
party_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
27
|
+
count: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
28
|
+
}, "@local-pkg/party_cta::party_cta::CtasSetEvent">;
|
|
29
|
+
export declare const CtasClearedEvent: MoveStruct<{
|
|
30
|
+
party_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
31
|
+
}, "@local-pkg/party_cta::party_cta::CtasClearedEvent">;
|
|
32
|
+
export interface NewCtaArguments {
|
|
33
|
+
label: RawTransactionArgument<string>;
|
|
34
|
+
url: RawTransactionArgument<string>;
|
|
35
|
+
}
|
|
36
|
+
export interface NewCtaOptions {
|
|
37
|
+
package?: string;
|
|
38
|
+
arguments: NewCtaArguments | [
|
|
39
|
+
label: RawTransactionArgument<string>,
|
|
40
|
+
url: RawTransactionArgument<string>
|
|
41
|
+
];
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Builds a CTA. Aborts if the label or url is empty or too long. Callers build the
|
|
45
|
+
* ordered `vector<Cta>` client-side and submit it with `set_ctas`.
|
|
46
|
+
*/
|
|
47
|
+
export declare function newCta(options: NewCtaOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
48
|
+
export interface LabelArguments {
|
|
49
|
+
self: TransactionArgument;
|
|
50
|
+
}
|
|
51
|
+
export interface LabelOptions {
|
|
52
|
+
package?: string;
|
|
53
|
+
arguments: LabelArguments | [
|
|
54
|
+
self: TransactionArgument
|
|
55
|
+
];
|
|
56
|
+
}
|
|
57
|
+
/** The CTA's display label. */
|
|
58
|
+
export declare function label(options: LabelOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
59
|
+
export interface UrlArguments {
|
|
60
|
+
self: TransactionArgument;
|
|
61
|
+
}
|
|
62
|
+
export interface UrlOptions {
|
|
63
|
+
package?: string;
|
|
64
|
+
arguments: UrlArguments | [
|
|
65
|
+
self: TransactionArgument
|
|
66
|
+
];
|
|
67
|
+
}
|
|
68
|
+
/** The CTA's destination url. */
|
|
69
|
+
export declare function url(options: UrlOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
70
|
+
export interface SetCtasArguments {
|
|
71
|
+
self: RawTransactionArgument<string>;
|
|
72
|
+
cap: RawTransactionArgument<string>;
|
|
73
|
+
ctas: TransactionArgument;
|
|
74
|
+
}
|
|
75
|
+
export interface SetCtasOptions {
|
|
76
|
+
package?: string;
|
|
77
|
+
arguments: SetCtasArguments | [
|
|
78
|
+
self: RawTransactionArgument<string>,
|
|
79
|
+
cap: RawTransactionArgument<string>,
|
|
80
|
+
ctas: TransactionArgument
|
|
81
|
+
];
|
|
82
|
+
}
|
|
83
|
+
/** Sets (or replaces) the party's ordered CTA list. Position is priority. */
|
|
84
|
+
export declare function setCtas(options: SetCtasOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
85
|
+
export interface ClearCtasArguments {
|
|
86
|
+
self: RawTransactionArgument<string>;
|
|
87
|
+
cap: RawTransactionArgument<string>;
|
|
88
|
+
}
|
|
89
|
+
export interface ClearCtasOptions {
|
|
90
|
+
package?: string;
|
|
91
|
+
arguments: ClearCtasArguments | [
|
|
92
|
+
self: RawTransactionArgument<string>,
|
|
93
|
+
cap: RawTransactionArgument<string>
|
|
94
|
+
];
|
|
95
|
+
}
|
|
96
|
+
/** Removes the party's CTA list. No-op if none is set. */
|
|
97
|
+
export declare function clearCtas(options: ClearCtasOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
98
|
+
export interface HasCtasArguments {
|
|
99
|
+
self: RawTransactionArgument<string>;
|
|
100
|
+
}
|
|
101
|
+
export interface HasCtasOptions {
|
|
102
|
+
package?: string;
|
|
103
|
+
arguments: HasCtasArguments | [
|
|
104
|
+
self: RawTransactionArgument<string>
|
|
105
|
+
];
|
|
106
|
+
}
|
|
107
|
+
/** Whether the party has a CTA list. */
|
|
108
|
+
export declare function hasCtas(options: HasCtasOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
109
|
+
export interface CtasArguments {
|
|
110
|
+
self: RawTransactionArgument<string>;
|
|
111
|
+
}
|
|
112
|
+
export interface CtasOptions {
|
|
113
|
+
package?: string;
|
|
114
|
+
arguments: CtasArguments | [
|
|
115
|
+
self: RawTransactionArgument<string>
|
|
116
|
+
];
|
|
117
|
+
}
|
|
118
|
+
/** The party's ordered CTA list (empty if unset). */
|
|
119
|
+
export declare function ctas(options: CtasOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
120
|
+
//# sourceMappingURL=party_cta.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"party_cta.d.ts","sourceRoot":"","sources":["../../../src/contracts/party_cta/party_cta.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAA0B,KAAK,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAE/G,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEtF,eAAO,MAAM,OAAO,+HAA2E,CAAC;AAChG,eAAO,MAAM,GAAG;;;0CAGR,CAAC;AACT,eAAO,MAAM,YAAY;;;mDAGjB,CAAC;AACT,eAAO,MAAM,gBAAgB;;uDAErB,CAAC;AACT,MAAM,WAAW,eAAe;IAC5B,KAAK,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;IACtC,GAAG,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;CACvC;AACD,MAAM,WAAW,aAAa;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,eAAe,GAAG;QACzB,KAAK,EAAE,sBAAsB,CAAC,MAAM,CAAC;QACrC,GAAG,EAAE,sBAAsB,CAAC,MAAM,CAAC;KACtC,CAAC;CACL;AACD;;;GAGG;AACH,wBAAg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