@misofm/platform 0.24.0 → 0.25.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 +125 -57
- package/dist/catalog.d.ts +1 -1
- package/dist/catalog.d.ts.map +1 -1
- package/dist/catalog.js +1 -1
- package/dist/catalog.js.map +1 -1
- package/dist/client.d.ts +107 -97
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +59 -39
- 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/credit/credit.d.ts +24 -0
- package/dist/contracts/composition_credits/deps/credit/credit.d.ts.map +1 -0
- package/dist/contracts/composition_credits/deps/credit/credit.js +23 -0
- package/dist/contracts/composition_credits/deps/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/composition_routed_stake/composition_routed_stake.d.ts +143 -0
- package/dist/contracts/composition_routed_stake/composition_routed_stake.d.ts.map +1 -0
- package/dist/contracts/composition_routed_stake/composition_routed_stake.js +125 -0
- package/dist/contracts/composition_routed_stake/composition_routed_stake.js.map +1 -0
- package/dist/contracts/composition_royalty_pool/composition_royalty_pool.d.ts +93 -0
- package/dist/contracts/composition_royalty_pool/composition_royalty_pool.d.ts.map +1 -0
- package/dist/contracts/composition_royalty_pool/composition_royalty_pool.js +86 -0
- package/dist/contracts/composition_royalty_pool/composition_royalty_pool.js.map +1 -0
- package/dist/contracts/composition_royalty_pool_plugin/composition_royalty_pool_plugin.d.ts +90 -0
- package/dist/contracts/composition_royalty_pool_plugin/composition_royalty_pool_plugin.d.ts.map +1 -0
- package/dist/contracts/composition_royalty_pool_plugin/composition_royalty_pool_plugin.js +85 -0
- package/dist/contracts/composition_royalty_pool_plugin/composition_royalty_pool_plugin.js.map +1 -0
- package/dist/contracts/composition_royalty_pool_plugin/witness.d.ts +6 -0
- package/dist/contracts/composition_royalty_pool_plugin/witness.d.ts.map +1 -0
- package/dist/contracts/composition_royalty_pool_plugin/witness.js +8 -0
- package/dist/contracts/composition_royalty_pool_plugin/witness.js.map +1 -0
- package/dist/contracts/cover_art/cover_art.d.ts +83 -0
- package/dist/contracts/cover_art/cover_art.d.ts.map +1 -0
- package/dist/contracts/cover_art/cover_art.js +66 -0
- package/dist/contracts/cover_art/cover_art.js.map +1 -0
- package/dist/contracts/cover_art/deps/ori/confidentiality.d.ts +24 -0
- package/dist/contracts/cover_art/deps/ori/confidentiality.d.ts.map +1 -0
- package/dist/contracts/cover_art/deps/ori/confidentiality.js +24 -0
- package/dist/contracts/cover_art/deps/ori/confidentiality.js.map +1 -0
- package/dist/contracts/cover_art/deps/ori/data.d.ts +16 -0
- package/dist/contracts/cover_art/deps/ori/data.d.ts.map +1 -0
- package/dist/contracts/cover_art/deps/ori/data.js +12 -0
- package/dist/contracts/cover_art/deps/ori/data.js.map +1 -0
- package/dist/contracts/genre/genre.d.ts +78 -0
- package/dist/contracts/genre/genre.d.ts.map +1 -0
- package/dist/contracts/genre/genre.js +87 -0
- package/dist/contracts/genre/genre.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/party_wallet/party_wallet.d.ts +112 -0
- package/dist/contracts/party_wallet/party_wallet.d.ts.map +1 -0
- package/dist/contracts/party_wallet/party_wallet.js +114 -0
- package/dist/contracts/party_wallet/party_wallet.js.map +1 -0
- package/dist/contracts/record/deps/std/type_name.d.ts +18 -0
- package/dist/contracts/record/deps/std/type_name.d.ts.map +1 -0
- package/dist/contracts/record/deps/std/type_name.js +20 -0
- package/dist/contracts/record/deps/std/type_name.js.map +1 -0
- package/dist/contracts/record/deps/sui/vec_set.d.ts +21 -0
- package/dist/contracts/record/deps/sui/vec_set.d.ts.map +1 -0
- package/dist/contracts/record/deps/sui/vec_set.js +20 -0
- package/dist/contracts/record/deps/sui/vec_set.js.map +1 -0
- package/dist/contracts/record/pressing.d.ts +327 -0
- package/dist/contracts/record/pressing.d.ts.map +1 -0
- package/dist/contracts/record/pressing.js +345 -0
- package/dist/contracts/record/pressing.js.map +1 -0
- package/dist/contracts/record/record.d.ts +190 -0
- package/dist/contracts/record/record.d.ts.map +1 -0
- package/dist/contracts/record/record.js +226 -0
- package/dist/contracts/record/record.js.map +1 -0
- package/dist/contracts/record_shop/deps/std/type_name.d.ts +18 -0
- package/dist/contracts/record_shop/deps/std/type_name.d.ts.map +1 -0
- package/dist/contracts/record_shop/deps/std/type_name.js +20 -0
- package/dist/contracts/record_shop/deps/std/type_name.js.map +1 -0
- package/dist/contracts/record_shop/listing.d.ts +387 -0
- package/dist/contracts/record_shop/listing.d.ts.map +1 -0
- package/dist/contracts/record_shop/listing.js +380 -0
- package/dist/contracts/record_shop/listing.js.map +1 -0
- package/dist/contracts/record_shop/witness.d.ts +7 -0
- package/dist/contracts/record_shop/witness.d.ts.map +1 -0
- package/dist/contracts/record_shop/witness.js +9 -0
- package/dist/contracts/record_shop/witness.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/credit/credit.d.ts +24 -0
- package/dist/contracts/recording_credits/deps/credit/credit.d.ts.map +1 -0
- package/dist/contracts/recording_credits/deps/credit/credit.js +23 -0
- package/dist/contracts/recording_credits/deps/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_engine_session/deps/ori/confidentiality.d.ts +24 -0
- package/dist/contracts/recording_engine_session/deps/ori/confidentiality.d.ts.map +1 -0
- package/dist/contracts/recording_engine_session/deps/ori/confidentiality.js +24 -0
- package/dist/contracts/recording_engine_session/deps/ori/confidentiality.js.map +1 -0
- package/dist/contracts/recording_engine_session/deps/ori/data.d.ts +16 -0
- package/dist/contracts/recording_engine_session/deps/ori/data.d.ts.map +1 -0
- package/dist/contracts/recording_engine_session/deps/ori/data.js +12 -0
- package/dist/contracts/recording_engine_session/deps/ori/data.js.map +1 -0
- package/dist/contracts/recording_engine_session/recording_engine_session.d.ts +296 -0
- package/dist/contracts/recording_engine_session/recording_engine_session.d.ts.map +1 -0
- package/dist/contracts/recording_engine_session/recording_engine_session.js +216 -0
- package/dist/contracts/recording_engine_session/recording_engine_session.js.map +1 -0
- package/dist/contracts/recording_genre/recording_genre.d.ts +173 -0
- package/dist/contracts/recording_genre/recording_genre.d.ts.map +1 -0
- package/dist/contracts/recording_genre/recording_genre.js +170 -0
- package/dist/contracts/recording_genre/recording_genre.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/confidentiality.d.ts +24 -0
- package/dist/contracts/recording_master_reference/deps/ori/confidentiality.d.ts.map +1 -0
- package/dist/contracts/recording_master_reference/deps/ori/confidentiality.js +24 -0
- package/dist/contracts/recording_master_reference/deps/ori/confidentiality.js.map +1 -0
- package/dist/contracts/recording_master_reference/deps/ori/data.d.ts +16 -0
- package/dist/contracts/recording_master_reference/deps/ori/data.d.ts.map +1 -0
- package/dist/contracts/recording_master_reference/deps/ori/data.js +12 -0
- package/dist/contracts/recording_master_reference/deps/ori/data.js.map +1 -0
- package/dist/contracts/recording_master_reference/recording_master_reference.d.ts +129 -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 +119 -0
- package/dist/contracts/recording_master_reference/recording_master_reference.js.map +1 -0
- package/dist/contracts/recording_royalty_pool/recording_royalty_pool.d.ts +96 -0
- package/dist/contracts/recording_royalty_pool/recording_royalty_pool.d.ts.map +1 -0
- package/dist/contracts/recording_royalty_pool/recording_royalty_pool.js +85 -0
- package/dist/contracts/recording_royalty_pool/recording_royalty_pool.js.map +1 -0
- package/dist/contracts/recording_royalty_pool_plugin/recording_royalty_pool_plugin.d.ts +92 -0
- package/dist/contracts/recording_royalty_pool_plugin/recording_royalty_pool_plugin.d.ts.map +1 -0
- package/dist/contracts/recording_royalty_pool_plugin/recording_royalty_pool_plugin.js +85 -0
- package/dist/contracts/recording_royalty_pool_plugin/recording_royalty_pool_plugin.js.map +1 -0
- package/dist/contracts/recording_royalty_pool_plugin/witness.d.ts +6 -0
- package/dist/contracts/recording_royalty_pool_plugin/witness.d.ts.map +1 -0
- package/dist/contracts/recording_royalty_pool_plugin/witness.js +8 -0
- package/dist/contracts/recording_royalty_pool_plugin/witness.js.map +1 -0
- package/dist/contracts/recording_streaming_transcode/deps/ori/data.d.ts +8 -0
- package/dist/contracts/recording_streaming_transcode/deps/ori/data.d.ts.map +1 -0
- package/dist/contracts/recording_streaming_transcode/deps/ori/data.js +10 -0
- package/dist/contracts/recording_streaming_transcode/deps/ori/data.js.map +1 -0
- package/dist/contracts/recording_streaming_transcode/recording_streaming_transcode.d.ts +124 -0
- package/dist/contracts/recording_streaming_transcode/recording_streaming_transcode.d.ts.map +1 -0
- package/dist/contracts/recording_streaming_transcode/recording_streaming_transcode.js +124 -0
- package/dist/contracts/recording_streaming_transcode/recording_streaming_transcode.js.map +1 -0
- package/dist/contracts/release_cover_art/deps/0x51792b9adb9a5d05d7c4d74d7d0cb5aefc5639afa80c0089399cab8b99752e60/confidentiality.d.ts +24 -0
- package/dist/contracts/release_cover_art/deps/0x51792b9adb9a5d05d7c4d74d7d0cb5aefc5639afa80c0089399cab8b99752e60/confidentiality.d.ts.map +1 -0
- package/dist/contracts/release_cover_art/deps/0x51792b9adb9a5d05d7c4d74d7d0cb5aefc5639afa80c0089399cab8b99752e60/confidentiality.js +24 -0
- package/dist/contracts/release_cover_art/deps/0x51792b9adb9a5d05d7c4d74d7d0cb5aefc5639afa80c0089399cab8b99752e60/confidentiality.js.map +1 -0
- package/dist/contracts/release_cover_art/deps/0x51792b9adb9a5d05d7c4d74d7d0cb5aefc5639afa80c0089399cab8b99752e60/data.d.ts +16 -0
- package/dist/contracts/release_cover_art/deps/0x51792b9adb9a5d05d7c4d74d7d0cb5aefc5639afa80c0089399cab8b99752e60/data.d.ts.map +1 -0
- package/dist/contracts/release_cover_art/deps/0x51792b9adb9a5d05d7c4d74d7d0cb5aefc5639afa80c0089399cab8b99752e60/data.js +12 -0
- package/dist/contracts/release_cover_art/deps/0x51792b9adb9a5d05d7c4d74d7d0cb5aefc5639afa80c0089399cab8b99752e60/data.js.map +1 -0
- package/dist/contracts/release_cover_art/deps/cover_art/cover_art.d.ts +47 -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 +22 -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/credit/credit.d.ts +24 -0
- package/dist/contracts/release_credits/deps/credit/credit.d.ts.map +1 -0
- package/dist/contracts/release_credits/deps/credit/credit.js +23 -0
- package/dist/contracts/release_credits/deps/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 +643 -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 +555 -0
- package/dist/contracts/release_dsp_link/release_dsp_link.js.map +1 -0
- package/dist/contracts/release_genre/release_genre.d.ts +145 -0
- package/dist/contracts/release_genre/release_genre.d.ts.map +1 -0
- package/dist/contracts/release_genre/release_genre.js +154 -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/release_revenue_distributor/release_revenue_distributor.d.ts +91 -0
- package/dist/contracts/release_revenue_distributor/release_revenue_distributor.d.ts.map +1 -0
- package/dist/contracts/release_revenue_distributor/release_revenue_distributor.js +92 -0
- package/dist/contracts/release_revenue_distributor/release_revenue_distributor.js.map +1 -0
- package/dist/contracts/release_revenue_distributor_plugin/release_revenue_distributor_plugin.d.ts +73 -0
- package/dist/contracts/release_revenue_distributor_plugin/release_revenue_distributor_plugin.d.ts.map +1 -0
- package/dist/contracts/release_revenue_distributor_plugin/release_revenue_distributor_plugin.js +80 -0
- package/dist/contracts/release_revenue_distributor_plugin/release_revenue_distributor_plugin.js.map +1 -0
- package/dist/contracts/release_revenue_distributor_plugin/witness.d.ts +6 -0
- package/dist/contracts/release_revenue_distributor_plugin/witness.d.ts.map +1 -0
- package/dist/contracts/release_revenue_distributor_plugin/witness.js +8 -0
- package/dist/contracts/release_revenue_distributor_plugin/witness.js.map +1 -0
- package/dist/contracts/routed_stake/deps/royalty_pool/stake.d.ts +67 -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 +50 -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 +347 -0
- package/dist/contracts/routed_stake/routed_stake.d.ts.map +1 -0
- package/dist/contracts/routed_stake/routed_stake.js +302 -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 +414 -0
- package/dist/contracts/royalty_pool/pool.d.ts.map +1 -0
- package/dist/contracts/royalty_pool/pool.js +409 -0
- package/dist/contracts/royalty_pool/pool.js.map +1 -0
- package/dist/contracts/royalty_pool/stake.d.ts +202 -0
- package/dist/contracts/royalty_pool/stake.d.ts.map +1 -0
- package/dist/contracts/royalty_pool/stake.js +196 -0
- package/dist/contracts/royalty_pool/stake.js.map +1 -0
- package/dist/contracts/utils/index.d.ts +104 -0
- package/dist/contracts/utils/index.d.ts.map +1 -0
- package/dist/contracts/utils/index.js +272 -0
- package/dist/contracts/utils/index.js.map +1 -0
- package/dist/contracts/vault/deps/sui/bag.d.ts +35 -0
- package/dist/contracts/vault/deps/sui/bag.d.ts.map +1 -0
- package/dist/contracts/vault/deps/sui/bag.js +37 -0
- package/dist/contracts/vault/deps/sui/bag.js.map +1 -0
- package/dist/contracts/vault/deps/sui/borrow.d.ts +20 -0
- package/dist/contracts/vault/deps/sui/borrow.d.ts.map +1 -0
- package/dist/contracts/vault/deps/sui/borrow.js +21 -0
- package/dist/contracts/vault/deps/sui/borrow.js.map +1 -0
- package/dist/contracts/vault/vault.d.ts +316 -0
- package/dist/contracts/vault/vault.d.ts.map +1 -0
- package/dist/contracts/vault/vault.js +308 -0
- package/dist/contracts/vault/vault.js.map +1 -0
- package/dist/contracts.d.ts +57 -33
- package/dist/contracts.d.ts.map +1 -1
- package/dist/contracts.js +63 -41
- package/dist/contracts.js.map +1 -1
- package/dist/cover.js +2 -2
- package/dist/cover.js.map +1 -1
- package/dist/credits.js +6 -6
- package/dist/credits.js.map +1 -1
- package/dist/deployments.d.ts +104 -64
- package/dist/deployments.d.ts.map +1 -1
- package/dist/deployments.js +170 -36
- package/dist/deployments.js.map +1 -1
- package/dist/events.d.ts +1045 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/events.js +116 -0
- package/dist/events.js.map +1 -0
- package/dist/execute.d.ts +2 -2
- package/dist/execute.d.ts.map +1 -1
- package/dist/execute.js +2 -2
- package/dist/execute.js.map +1 -1
- package/dist/genre.d.ts +124 -0
- package/dist/genre.d.ts.map +1 -0
- package/dist/genre.js +238 -0
- package/dist/genre.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/dist/internal.js +2 -2
- package/dist/internal.js.map +1 -1
- package/dist/packages.d.ts +4185 -0
- package/dist/packages.d.ts.map +1 -0
- package/dist/packages.js +190 -0
- package/dist/packages.js.map +1 -0
- package/dist/party/client.d.ts +324 -0
- package/dist/party/client.d.ts.map +1 -0
- package/dist/party/client.js +214 -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 +18 -0
- package/dist/party/index.js.map +1 -0
- package/dist/party/internal.d.ts +14 -0
- package/dist/party/internal.d.ts.map +1 -0
- package/dist/party/internal.js +89 -0
- package/dist/party/internal.js.map +1 -0
- package/dist/party/queries.d.ts +17 -0
- package/dist/party/queries.d.ts.map +1 -0
- package/dist/party/queries.js +118 -0
- package/dist/party/queries.js.map +1 -0
- package/dist/party/types.d.ts +43 -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/pressing.js +3 -3
- package/dist/pressing.js.map +1 -1
- package/dist/publication.d.ts +4 -8
- package/dist/publication.d.ts.map +1 -1
- package/dist/publication.js +53 -40
- package/dist/publication.js.map +1 -1
- package/dist/queries.d.ts +1 -1
- package/dist/queries.d.ts.map +1 -1
- package/dist/queries.js +2 -2
- package/dist/queries.js.map +1 -1
- package/dist/read/artist.js +3 -3
- package/dist/read/artist.js.map +1 -1
- package/dist/read/catalog.d.ts +1 -1
- package/dist/read/catalog.d.ts.map +1 -1
- package/dist/read/catalog.js +3 -3
- package/dist/read/catalog.js.map +1 -1
- package/dist/read/client.d.ts +6 -3
- package/dist/read/client.d.ts.map +1 -1
- package/dist/read/client.js +5 -1
- package/dist/read/client.js.map +1 -1
- package/dist/read/config.d.ts +7 -2
- package/dist/read/config.d.ts.map +1 -1
- package/dist/read/config.js +2 -0
- package/dist/read/config.js.map +1 -1
- package/dist/read/index.js +1 -1
- package/dist/read/index.js.map +1 -1
- package/dist/read/receipts.js +4 -4
- package/dist/read/receipts.js.map +1 -1
- package/dist/read/types.d.ts +1 -1
- package/dist/read/types.d.ts.map +1 -1
- package/dist/read/wallet.d.ts +1 -1
- package/dist/read/wallet.d.ts.map +1 -1
- package/dist/read/wallet.js +15 -14
- package/dist/read/wallet.js.map +1 -1
- package/dist/read/works.d.ts +1 -1
- package/dist/read/works.d.ts.map +1 -1
- package/dist/read/works.js +1 -1
- package/dist/read/works.js.map +1 -1
- package/dist/recording-extensions.js +7 -7
- package/dist/recording-extensions.js.map +1 -1
- package/dist/release-extensions.d.ts +0 -18
- package/dist/release-extensions.d.ts.map +1 -1
- package/dist/release-extensions.js +4 -49
- package/dist/release-extensions.js.map +1 -1
- package/dist/release-graph.js +2 -2
- package/dist/release-graph.js.map +1 -1
- package/dist/royalty.d.ts +87 -0
- package/dist/royalty.d.ts.map +1 -0
- package/dist/royalty.js +78 -0
- package/dist/royalty.js.map +1 -0
- package/dist/share.js +1 -1
- package/dist/share.js.map +1 -1
- package/dist/transactions.d.ts +2 -2
- package/dist/transactions.d.ts.map +1 -1
- package/dist/transactions.js +6 -6
- package/dist/transactions.js.map +1 -1
- package/dist/vault.js +6 -6
- package/dist/vault.js.map +1 -1
- package/package.json +24 -10
- package/src/catalog.ts +2 -2
- package/src/client.ts +103 -44
- package/src/contracts/composition_credits/composition_credits.ts +170 -0
- package/src/contracts/composition_credits/composition_party_role.ts +190 -0
- package/src/contracts/composition_credits/deps/credit/credit.ts +28 -0
- package/src/contracts/composition_credits/deps/sui/vec_map.ts +34 -0
- package/src/contracts/composition_routed_stake/composition_routed_stake.ts +239 -0
- package/src/contracts/composition_royalty_pool/composition_royalty_pool.ts +154 -0
- package/src/contracts/composition_royalty_pool_plugin/composition_royalty_pool_plugin.ts +165 -0
- package/src/contracts/composition_royalty_pool_plugin/witness.ts +8 -0
- package/src/contracts/cover_art/cover_art.ts +98 -0
- package/src/contracts/cover_art/deps/ori/confidentiality.ts +24 -0
- package/src/contracts/cover_art/deps/ori/data.ts +12 -0
- package/src/contracts/genre/genre.ts +121 -0
- package/src/contracts/party_cta/party_cta.ts +213 -0
- package/src/contracts/party_genre/party_genre.ts +200 -0
- package/src/contracts/party_media/party_media.ts +142 -0
- package/src/contracts/party_music/party_music.ts +406 -0
- package/src/contracts/party_platform_link/party_platform_link.ts +149 -0
- package/src/contracts/party_pro_link/party_pro_link.ts +454 -0
- package/src/contracts/party_profile/deps/country_code/country_code.ts +20 -0
- package/src/contracts/party_profile/deps/language_code/language_code.ts +8 -0
- package/src/contracts/party_profile/party_profile.ts +240 -0
- package/src/contracts/party_roles/party_roles.ts +364 -0
- package/src/contracts/party_social/party_social.ts +503 -0
- package/src/contracts/party_tags/party_tags.ts +199 -0
- package/src/contracts/party_wallet/party_wallet.ts +174 -0
- package/src/contracts/record/deps/std/type_name.ts +23 -0
- package/src/contracts/record/deps/sui/vec_set.ts +22 -0
- package/src/contracts/record/pressing.ts +523 -0
- package/src/contracts/record/record.ts +339 -0
- package/src/contracts/record_shop/deps/std/type_name.ts +23 -0
- package/src/contracts/record_shop/listing.ts +603 -0
- package/src/contracts/record_shop/witness.ts +12 -0
- package/src/contracts/recording_advisory/recording_advisory.ts +316 -0
- package/src/contracts/recording_credits/deps/credit/credit.ts +28 -0
- package/src/contracts/recording_credits/deps/sui/vec_map.ts +34 -0
- package/src/contracts/recording_credits/deps/sui/vec_set.ts +22 -0
- package/src/contracts/recording_credits/recording_credits.ts +459 -0
- package/src/contracts/recording_credits/recording_party_role.ts +1042 -0
- package/src/contracts/recording_engine_session/deps/ori/confidentiality.ts +24 -0
- package/src/contracts/recording_engine_session/deps/ori/data.ts +12 -0
- package/src/contracts/recording_engine_session/recording_engine_session.ts +335 -0
- package/src/contracts/recording_genre/recording_genre.ts +235 -0
- package/src/contracts/recording_language/deps/language_code/language_code.ts +8 -0
- package/src/contracts/recording_language/recording_language.ts +238 -0
- package/src/contracts/recording_master_reference/deps/ori/confidentiality.ts +24 -0
- package/src/contracts/recording_master_reference/deps/ori/data.ts +12 -0
- package/src/contracts/recording_master_reference/recording_master_reference.ts +180 -0
- package/src/contracts/recording_royalty_pool/recording_royalty_pool.ts +157 -0
- package/src/contracts/recording_royalty_pool_plugin/recording_royalty_pool_plugin.ts +167 -0
- package/src/contracts/recording_royalty_pool_plugin/witness.ts +8 -0
- package/src/contracts/recording_streaming_transcode/deps/ori/data.ts +10 -0
- package/src/contracts/recording_streaming_transcode/recording_streaming_transcode.ts +203 -0
- package/src/contracts/release_cover_art/deps/0x51792b9adb9a5d05d7c4d74d7d0cb5aefc5639afa80c0089399cab8b99752e60/confidentiality.ts +24 -0
- package/src/contracts/release_cover_art/deps/0x51792b9adb9a5d05d7c4d74d7d0cb5aefc5639afa80c0089399cab8b99752e60/data.ts +12 -0
- package/src/contracts/release_cover_art/deps/cover_art/cover_art.ts +25 -0
- package/src/contracts/release_cover_art/deps/per_track/per_track.ts +37 -0
- package/src/contracts/release_cover_art/release_cover_art.ts +252 -0
- package/src/contracts/release_credits/deps/credit/credit.ts +28 -0
- package/src/contracts/release_credits/deps/sui/vec_map.ts +34 -0
- package/src/contracts/release_credits/release_credits.ts +157 -0
- package/src/contracts/release_credits/release_party_role.ts +87 -0
- package/src/contracts/release_description/release_description.ts +168 -0
- package/src/contracts/release_dsp_link/release_dsp_link.ts +813 -0
- package/src/contracts/release_genre/release_genre.ts +203 -0
- package/src/contracts/release_kind/release_kind.ts +154 -0
- package/src/contracts/release_revenue_distributor/release_revenue_distributor.ts +141 -0
- package/src/contracts/release_revenue_distributor_plugin/release_revenue_distributor_plugin.ts +143 -0
- package/src/contracts/release_revenue_distributor_plugin/witness.ts +8 -0
- package/src/contracts/routed_stake/deps/royalty_pool/stake.ts +53 -0
- package/src/contracts/routed_stake/deps/std/type_name.ts +23 -0
- package/src/contracts/routed_stake/deps/sui/balance.ts +18 -0
- package/src/contracts/routed_stake/deps/sui/vec_map.ts +34 -0
- package/src/contracts/routed_stake/routed_stake.ts +487 -0
- package/src/contracts/royalty_pool/deps/std/type_name.ts +23 -0
- package/src/contracts/royalty_pool/deps/sui/balance.ts +18 -0
- package/src/contracts/royalty_pool/deps/sui/vec_map.ts +34 -0
- package/src/contracts/royalty_pool/pool.ts +634 -0
- package/src/contracts/royalty_pool/stake.ts +305 -0
- package/src/contracts/utils/index.ts +428 -0
- package/src/contracts/vault/deps/sui/bag.ts +40 -0
- package/src/contracts/vault/deps/sui/borrow.ts +26 -0
- package/src/contracts/vault/vault.ts +509 -0
- package/src/contracts.ts +86 -39
- package/src/cover.ts +2 -2
- package/src/credits.ts +6 -6
- package/src/deployments.ts +253 -39
- package/src/events.ts +121 -0
- package/src/execute.ts +3 -3
- package/src/genre.ts +369 -0
- package/src/index.ts +10 -1
- package/src/internal.ts +2 -2
- package/src/packages.ts +243 -0
- package/src/party/client.ts +268 -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 +40 -0
- package/src/party/internal.ts +102 -0
- package/src/party/queries.ts +163 -0
- package/src/party/types.ts +84 -0
- package/src/pressing.ts +5 -5
- package/src/publication.ts +58 -45
- package/src/queries.ts +2 -2
- package/src/read/artist.ts +3 -3
- package/src/read/catalog.ts +4 -4
- package/src/read/client.ts +9 -3
- package/src/read/config.ts +9 -2
- package/src/read/index.ts +1 -1
- package/src/read/receipts.ts +4 -4
- package/src/read/types.ts +1 -1
- package/src/read/wallet.ts +15 -14
- package/src/read/works.ts +1 -1
- package/src/recording-extensions.ts +7 -7
- package/src/release-extensions.ts +4 -75
- package/src/release-graph.ts +2 -2
- package/src/royalty.ts +167 -0
- package/src/share.ts +1 -1
- package/src/transactions.ts +6 -6
- package/src/vault.ts +6 -6
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* A party's editable profile card — the free-form identity fields a profile page
|
|
8
|
+
* renders.
|
|
9
|
+
*
|
|
10
|
+
* Stored as a single `Profile` dynamic field on the party's UID, gated by the
|
|
11
|
+
* `PartyAdminCap`; views are permissionless. Deliberately holds only cohesive
|
|
12
|
+
* identity fields — typed or collection-shaped concerns (roles, tags, genres,
|
|
13
|
+
* media, links) each live in their own extension. `country` and `languages` use
|
|
14
|
+
* validated code primitives (`country_code`, `language_code`), so a stored value
|
|
15
|
+
* is always a real code. The party's `name` is NOT duplicated here — it lives on
|
|
16
|
+
* the core `Party` (`party::set_name`) — and the join date comes from the party's
|
|
17
|
+
* creation event (the indexer has it for free).
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
import { MoveTuple, MoveStruct, normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.ts';
|
|
21
|
+
import { bcs } from '@mysten/sui/bcs';
|
|
22
|
+
import type {} from "@mysten/bcs";
|
|
23
|
+
import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
|
|
24
|
+
import * as country_code from './deps/country_code/country_code.ts';
|
|
25
|
+
import * as language_code from './deps/language_code/language_code.ts';
|
|
26
|
+
const $moduleName = '@local-pkg/party_profile::party_profile';
|
|
27
|
+
export const ProfileKey = new MoveTuple({ name: `${$moduleName}::ProfileKey`, fields: [bcs.bool()] });
|
|
28
|
+
export const Profile = new MoveStruct({ name: `${$moduleName}::Profile`, fields: {
|
|
29
|
+
bio_short: bcs.string(),
|
|
30
|
+
bio_long: bcs.option(bcs.string()),
|
|
31
|
+
country: bcs.option(country_code.CountryCode),
|
|
32
|
+
languages: bcs.vector(language_code.LanguageCode)
|
|
33
|
+
} });
|
|
34
|
+
export const ProfileSetEvent = new MoveStruct({ name: `${$moduleName}::ProfileSetEvent`, fields: {
|
|
35
|
+
party_id: bcs.Address
|
|
36
|
+
} });
|
|
37
|
+
export const ProfileClearedEvent = new MoveStruct({ name: `${$moduleName}::ProfileClearedEvent`, fields: {
|
|
38
|
+
party_id: bcs.Address
|
|
39
|
+
} });
|
|
40
|
+
export interface SetProfileArguments {
|
|
41
|
+
self: RawTransactionArgument<string>;
|
|
42
|
+
cap: RawTransactionArgument<string>;
|
|
43
|
+
bioShort: RawTransactionArgument<string>;
|
|
44
|
+
bioLong: RawTransactionArgument<string | null>;
|
|
45
|
+
country: TransactionArgument;
|
|
46
|
+
languages: TransactionArgument;
|
|
47
|
+
}
|
|
48
|
+
export interface SetProfileOptions {
|
|
49
|
+
package?: string;
|
|
50
|
+
arguments: SetProfileArguments | [
|
|
51
|
+
self: RawTransactionArgument<string>,
|
|
52
|
+
cap: RawTransactionArgument<string>,
|
|
53
|
+
bioShort: RawTransactionArgument<string>,
|
|
54
|
+
bioLong: RawTransactionArgument<string | null>,
|
|
55
|
+
country: TransactionArgument,
|
|
56
|
+
languages: TransactionArgument
|
|
57
|
+
];
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Sets (creates or replaces) the party's whole profile. The single write entry
|
|
61
|
+
* point: a profile is a cohesive card, edited as a whole and saved in one call.
|
|
62
|
+
*/
|
|
63
|
+
export function setProfile(options: SetProfileOptions) {
|
|
64
|
+
const packageAddress = options.package ?? '@local-pkg/party_profile';
|
|
65
|
+
const argumentsTypes = [
|
|
66
|
+
null,
|
|
67
|
+
null,
|
|
68
|
+
'0x1::string::String',
|
|
69
|
+
'0x1::option::Option<0x1::string::String>',
|
|
70
|
+
null,
|
|
71
|
+
'vector<null>'
|
|
72
|
+
] satisfies (string | null)[];
|
|
73
|
+
const parameterNames = ["self", "cap", "bioShort", "bioLong", "country", "languages"];
|
|
74
|
+
return (tx: Transaction) => tx.moveCall({
|
|
75
|
+
package: packageAddress,
|
|
76
|
+
module: 'party_profile',
|
|
77
|
+
function: 'set_profile',
|
|
78
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
export interface ClearProfileArguments {
|
|
82
|
+
self: RawTransactionArgument<string>;
|
|
83
|
+
cap: RawTransactionArgument<string>;
|
|
84
|
+
}
|
|
85
|
+
export interface ClearProfileOptions {
|
|
86
|
+
package?: string;
|
|
87
|
+
arguments: ClearProfileArguments | [
|
|
88
|
+
self: RawTransactionArgument<string>,
|
|
89
|
+
cap: RawTransactionArgument<string>
|
|
90
|
+
];
|
|
91
|
+
}
|
|
92
|
+
/** Removes the party's profile. No-op if none is set. */
|
|
93
|
+
export function clearProfile(options: ClearProfileOptions) {
|
|
94
|
+
const packageAddress = options.package ?? '@local-pkg/party_profile';
|
|
95
|
+
const argumentsTypes = [
|
|
96
|
+
null,
|
|
97
|
+
null
|
|
98
|
+
] satisfies (string | null)[];
|
|
99
|
+
const parameterNames = ["self", "cap"];
|
|
100
|
+
return (tx: Transaction) => tx.moveCall({
|
|
101
|
+
package: packageAddress,
|
|
102
|
+
module: 'party_profile',
|
|
103
|
+
function: 'clear_profile',
|
|
104
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
export interface HasProfileArguments {
|
|
108
|
+
self: RawTransactionArgument<string>;
|
|
109
|
+
}
|
|
110
|
+
export interface HasProfileOptions {
|
|
111
|
+
package?: string;
|
|
112
|
+
arguments: HasProfileArguments | [
|
|
113
|
+
self: RawTransactionArgument<string>
|
|
114
|
+
];
|
|
115
|
+
}
|
|
116
|
+
/** Whether the party has a profile. */
|
|
117
|
+
export function hasProfile(options: HasProfileOptions) {
|
|
118
|
+
const packageAddress = options.package ?? '@local-pkg/party_profile';
|
|
119
|
+
const argumentsTypes = [
|
|
120
|
+
null
|
|
121
|
+
] satisfies (string | null)[];
|
|
122
|
+
const parameterNames = ["self"];
|
|
123
|
+
return (tx: Transaction) => tx.moveCall({
|
|
124
|
+
package: packageAddress,
|
|
125
|
+
module: 'party_profile',
|
|
126
|
+
function: 'has_profile',
|
|
127
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
export interface ProfileArguments {
|
|
131
|
+
self: RawTransactionArgument<string>;
|
|
132
|
+
}
|
|
133
|
+
export interface ProfileOptions {
|
|
134
|
+
package?: string;
|
|
135
|
+
arguments: ProfileArguments | [
|
|
136
|
+
self: RawTransactionArgument<string>
|
|
137
|
+
];
|
|
138
|
+
}
|
|
139
|
+
/** Borrows the party's profile. Aborts if none is set. */
|
|
140
|
+
export function profile(options: ProfileOptions) {
|
|
141
|
+
const packageAddress = options.package ?? '@local-pkg/party_profile';
|
|
142
|
+
const argumentsTypes = [
|
|
143
|
+
null
|
|
144
|
+
] satisfies (string | null)[];
|
|
145
|
+
const parameterNames = ["self"];
|
|
146
|
+
return (tx: Transaction) => tx.moveCall({
|
|
147
|
+
package: packageAddress,
|
|
148
|
+
module: 'party_profile',
|
|
149
|
+
function: 'profile',
|
|
150
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
export interface BioShortArguments {
|
|
154
|
+
self: TransactionArgument;
|
|
155
|
+
}
|
|
156
|
+
export interface BioShortOptions {
|
|
157
|
+
package?: string;
|
|
158
|
+
arguments: BioShortArguments | [
|
|
159
|
+
self: TransactionArgument
|
|
160
|
+
];
|
|
161
|
+
}
|
|
162
|
+
export function bioShort(options: BioShortOptions) {
|
|
163
|
+
const packageAddress = options.package ?? '@local-pkg/party_profile';
|
|
164
|
+
const argumentsTypes = [
|
|
165
|
+
null
|
|
166
|
+
] satisfies (string | null)[];
|
|
167
|
+
const parameterNames = ["self"];
|
|
168
|
+
return (tx: Transaction) => tx.moveCall({
|
|
169
|
+
package: packageAddress,
|
|
170
|
+
module: 'party_profile',
|
|
171
|
+
function: 'bio_short',
|
|
172
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
export interface BioLongArguments {
|
|
176
|
+
self: TransactionArgument;
|
|
177
|
+
}
|
|
178
|
+
export interface BioLongOptions {
|
|
179
|
+
package?: string;
|
|
180
|
+
arguments: BioLongArguments | [
|
|
181
|
+
self: TransactionArgument
|
|
182
|
+
];
|
|
183
|
+
}
|
|
184
|
+
export function bioLong(options: BioLongOptions) {
|
|
185
|
+
const packageAddress = options.package ?? '@local-pkg/party_profile';
|
|
186
|
+
const argumentsTypes = [
|
|
187
|
+
null
|
|
188
|
+
] satisfies (string | null)[];
|
|
189
|
+
const parameterNames = ["self"];
|
|
190
|
+
return (tx: Transaction) => tx.moveCall({
|
|
191
|
+
package: packageAddress,
|
|
192
|
+
module: 'party_profile',
|
|
193
|
+
function: 'bio_long',
|
|
194
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
export interface CountryArguments {
|
|
198
|
+
self: TransactionArgument;
|
|
199
|
+
}
|
|
200
|
+
export interface CountryOptions {
|
|
201
|
+
package?: string;
|
|
202
|
+
arguments: CountryArguments | [
|
|
203
|
+
self: TransactionArgument
|
|
204
|
+
];
|
|
205
|
+
}
|
|
206
|
+
export function country(options: CountryOptions) {
|
|
207
|
+
const packageAddress = options.package ?? '@local-pkg/party_profile';
|
|
208
|
+
const argumentsTypes = [
|
|
209
|
+
null
|
|
210
|
+
] satisfies (string | null)[];
|
|
211
|
+
const parameterNames = ["self"];
|
|
212
|
+
return (tx: Transaction) => tx.moveCall({
|
|
213
|
+
package: packageAddress,
|
|
214
|
+
module: 'party_profile',
|
|
215
|
+
function: 'country',
|
|
216
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
export interface LanguagesArguments {
|
|
220
|
+
self: TransactionArgument;
|
|
221
|
+
}
|
|
222
|
+
export interface LanguagesOptions {
|
|
223
|
+
package?: string;
|
|
224
|
+
arguments: LanguagesArguments | [
|
|
225
|
+
self: TransactionArgument
|
|
226
|
+
];
|
|
227
|
+
}
|
|
228
|
+
export function languages(options: LanguagesOptions) {
|
|
229
|
+
const packageAddress = options.package ?? '@local-pkg/party_profile';
|
|
230
|
+
const argumentsTypes = [
|
|
231
|
+
null
|
|
232
|
+
] satisfies (string | null)[];
|
|
233
|
+
const parameterNames = ["self"];
|
|
234
|
+
return (tx: Transaction) => tx.moveCall({
|
|
235
|
+
package: packageAddress,
|
|
236
|
+
module: 'party_profile',
|
|
237
|
+
function: 'languages',
|
|
238
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
239
|
+
});
|
|
240
|
+
}
|
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Artist-type roles for a party — what kind of act this is (artist, producer, DJ,
|
|
8
|
+
* band, label, …). A party can hold several.
|
|
9
|
+
*
|
|
10
|
+
* `ArtistRole` is a closed enum with a `Custom` escape hatch, mirroring
|
|
11
|
+
* `composition_party_role`: canonical variants give the frontend a fixed,
|
|
12
|
+
* typo-free set to render icons for, while `Custom(name)` covers anything else.
|
|
13
|
+
* The set mechanics — storage, duplicate and capacity checks, field reclamation —
|
|
14
|
+
* live in the shared `typed_set` primitive; this package keeps the role type, name
|
|
15
|
+
* validation, the capacity, and the typed events. Duplicate / not-present /
|
|
16
|
+
* over-max aborts come from `typed_set` with its own error codes. Gated by the
|
|
17
|
+
* `PartyAdminCap`; views are permissionless.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
import { MoveTuple, MoveStruct, MoveEnum, normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.ts';
|
|
21
|
+
import { bcs } from '@mysten/sui/bcs';
|
|
22
|
+
import type {} from "@mysten/bcs";
|
|
23
|
+
import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
|
|
24
|
+
const $moduleName = '@local-pkg/party_roles::party_roles';
|
|
25
|
+
export const RolesKey = new MoveTuple({ name: `${$moduleName}::RolesKey`, fields: [bcs.bool()] });
|
|
26
|
+
export const RoleAddedEvent = new MoveStruct({ name: `${$moduleName}::RoleAddedEvent`, fields: {
|
|
27
|
+
party_id: bcs.Address,
|
|
28
|
+
role: bcs.string()
|
|
29
|
+
} });
|
|
30
|
+
export const RoleRemovedEvent = new MoveStruct({ name: `${$moduleName}::RoleRemovedEvent`, fields: {
|
|
31
|
+
party_id: bcs.Address,
|
|
32
|
+
role: bcs.string()
|
|
33
|
+
} });
|
|
34
|
+
export const RolesClearedEvent = new MoveStruct({ name: `${$moduleName}::RolesClearedEvent`, fields: {
|
|
35
|
+
party_id: bcs.Address
|
|
36
|
+
} });
|
|
37
|
+
/** The kind of act a party represents. Closed enum + `Custom` escape hatch. */
|
|
38
|
+
export const ArtistRole = new MoveEnum({ name: `${$moduleName}::ArtistRole`, fields: {
|
|
39
|
+
Artist: null,
|
|
40
|
+
Producer: null,
|
|
41
|
+
Dj: null,
|
|
42
|
+
Composer: null,
|
|
43
|
+
Songwriter: null,
|
|
44
|
+
Band: null,
|
|
45
|
+
Label: null,
|
|
46
|
+
Collective: null,
|
|
47
|
+
/**
|
|
48
|
+
* A user-defined role not covered by a canonical variant (validated). Prefer a
|
|
49
|
+
* canonical variant when one fits.
|
|
50
|
+
*/
|
|
51
|
+
Custom: bcs.string()
|
|
52
|
+
} });
|
|
53
|
+
export interface ArtistOptions {
|
|
54
|
+
package?: string;
|
|
55
|
+
arguments?: [
|
|
56
|
+
];
|
|
57
|
+
}
|
|
58
|
+
export function artist(options: ArtistOptions = {}) {
|
|
59
|
+
const packageAddress = options.package ?? '@local-pkg/party_roles';
|
|
60
|
+
return (tx: Transaction) => tx.moveCall({
|
|
61
|
+
package: packageAddress,
|
|
62
|
+
module: 'party_roles',
|
|
63
|
+
function: 'artist',
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
export interface ProducerOptions {
|
|
67
|
+
package?: string;
|
|
68
|
+
arguments?: [
|
|
69
|
+
];
|
|
70
|
+
}
|
|
71
|
+
export function producer(options: ProducerOptions = {}) {
|
|
72
|
+
const packageAddress = options.package ?? '@local-pkg/party_roles';
|
|
73
|
+
return (tx: Transaction) => tx.moveCall({
|
|
74
|
+
package: packageAddress,
|
|
75
|
+
module: 'party_roles',
|
|
76
|
+
function: 'producer',
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
export interface DjOptions {
|
|
80
|
+
package?: string;
|
|
81
|
+
arguments?: [
|
|
82
|
+
];
|
|
83
|
+
}
|
|
84
|
+
export function dj(options: DjOptions = {}) {
|
|
85
|
+
const packageAddress = options.package ?? '@local-pkg/party_roles';
|
|
86
|
+
return (tx: Transaction) => tx.moveCall({
|
|
87
|
+
package: packageAddress,
|
|
88
|
+
module: 'party_roles',
|
|
89
|
+
function: 'dj',
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
export interface ComposerOptions {
|
|
93
|
+
package?: string;
|
|
94
|
+
arguments?: [
|
|
95
|
+
];
|
|
96
|
+
}
|
|
97
|
+
export function composer(options: ComposerOptions = {}) {
|
|
98
|
+
const packageAddress = options.package ?? '@local-pkg/party_roles';
|
|
99
|
+
return (tx: Transaction) => tx.moveCall({
|
|
100
|
+
package: packageAddress,
|
|
101
|
+
module: 'party_roles',
|
|
102
|
+
function: 'composer',
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
export interface SongwriterOptions {
|
|
106
|
+
package?: string;
|
|
107
|
+
arguments?: [
|
|
108
|
+
];
|
|
109
|
+
}
|
|
110
|
+
export function songwriter(options: SongwriterOptions = {}) {
|
|
111
|
+
const packageAddress = options.package ?? '@local-pkg/party_roles';
|
|
112
|
+
return (tx: Transaction) => tx.moveCall({
|
|
113
|
+
package: packageAddress,
|
|
114
|
+
module: 'party_roles',
|
|
115
|
+
function: 'songwriter',
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
export interface BandOptions {
|
|
119
|
+
package?: string;
|
|
120
|
+
arguments?: [
|
|
121
|
+
];
|
|
122
|
+
}
|
|
123
|
+
export function band(options: BandOptions = {}) {
|
|
124
|
+
const packageAddress = options.package ?? '@local-pkg/party_roles';
|
|
125
|
+
return (tx: Transaction) => tx.moveCall({
|
|
126
|
+
package: packageAddress,
|
|
127
|
+
module: 'party_roles',
|
|
128
|
+
function: 'band',
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
export interface LabelOptions {
|
|
132
|
+
package?: string;
|
|
133
|
+
arguments?: [
|
|
134
|
+
];
|
|
135
|
+
}
|
|
136
|
+
export function label(options: LabelOptions = {}) {
|
|
137
|
+
const packageAddress = options.package ?? '@local-pkg/party_roles';
|
|
138
|
+
return (tx: Transaction) => tx.moveCall({
|
|
139
|
+
package: packageAddress,
|
|
140
|
+
module: 'party_roles',
|
|
141
|
+
function: 'label',
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
export interface CollectiveOptions {
|
|
145
|
+
package?: string;
|
|
146
|
+
arguments?: [
|
|
147
|
+
];
|
|
148
|
+
}
|
|
149
|
+
export function collective(options: CollectiveOptions = {}) {
|
|
150
|
+
const packageAddress = options.package ?? '@local-pkg/party_roles';
|
|
151
|
+
return (tx: Transaction) => tx.moveCall({
|
|
152
|
+
package: packageAddress,
|
|
153
|
+
module: 'party_roles',
|
|
154
|
+
function: 'collective',
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
export interface CustomArguments {
|
|
158
|
+
name: RawTransactionArgument<string>;
|
|
159
|
+
}
|
|
160
|
+
export interface CustomOptions {
|
|
161
|
+
package?: string;
|
|
162
|
+
arguments: CustomArguments | [
|
|
163
|
+
name: RawTransactionArgument<string>
|
|
164
|
+
];
|
|
165
|
+
}
|
|
166
|
+
/** Builds a custom role. Aborts if empty or too long. */
|
|
167
|
+
export function custom(options: CustomOptions) {
|
|
168
|
+
const packageAddress = options.package ?? '@local-pkg/party_roles';
|
|
169
|
+
const argumentsTypes = [
|
|
170
|
+
'0x1::string::String'
|
|
171
|
+
] satisfies (string | null)[];
|
|
172
|
+
const parameterNames = ["name"];
|
|
173
|
+
return (tx: Transaction) => tx.moveCall({
|
|
174
|
+
package: packageAddress,
|
|
175
|
+
module: 'party_roles',
|
|
176
|
+
function: 'custom',
|
|
177
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
export interface RoleNameArguments {
|
|
181
|
+
self: TransactionArgument;
|
|
182
|
+
}
|
|
183
|
+
export interface RoleNameOptions {
|
|
184
|
+
package?: string;
|
|
185
|
+
arguments: RoleNameArguments | [
|
|
186
|
+
self: TransactionArgument
|
|
187
|
+
];
|
|
188
|
+
}
|
|
189
|
+
/** The canonical name of a role (its own string for `Custom`). */
|
|
190
|
+
export function roleName(options: RoleNameOptions) {
|
|
191
|
+
const packageAddress = options.package ?? '@local-pkg/party_roles';
|
|
192
|
+
const argumentsTypes = [
|
|
193
|
+
null
|
|
194
|
+
] satisfies (string | null)[];
|
|
195
|
+
const parameterNames = ["self"];
|
|
196
|
+
return (tx: Transaction) => tx.moveCall({
|
|
197
|
+
package: packageAddress,
|
|
198
|
+
module: 'party_roles',
|
|
199
|
+
function: 'role_name',
|
|
200
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
export interface AddRoleArguments {
|
|
204
|
+
self: RawTransactionArgument<string>;
|
|
205
|
+
cap: RawTransactionArgument<string>;
|
|
206
|
+
role: TransactionArgument;
|
|
207
|
+
}
|
|
208
|
+
export interface AddRoleOptions {
|
|
209
|
+
package?: string;
|
|
210
|
+
arguments: AddRoleArguments | [
|
|
211
|
+
self: RawTransactionArgument<string>,
|
|
212
|
+
cap: RawTransactionArgument<string>,
|
|
213
|
+
role: TransactionArgument
|
|
214
|
+
];
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Adds a role to the party. Aborts in `typed_set` if already held or the max is
|
|
218
|
+
* reached.
|
|
219
|
+
*/
|
|
220
|
+
export function addRole(options: AddRoleOptions) {
|
|
221
|
+
const packageAddress = options.package ?? '@local-pkg/party_roles';
|
|
222
|
+
const argumentsTypes = [
|
|
223
|
+
null,
|
|
224
|
+
null,
|
|
225
|
+
null
|
|
226
|
+
] satisfies (string | null)[];
|
|
227
|
+
const parameterNames = ["self", "cap", "role"];
|
|
228
|
+
return (tx: Transaction) => tx.moveCall({
|
|
229
|
+
package: packageAddress,
|
|
230
|
+
module: 'party_roles',
|
|
231
|
+
function: 'add_role',
|
|
232
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
export interface RemoveRoleArguments {
|
|
236
|
+
self: RawTransactionArgument<string>;
|
|
237
|
+
cap: RawTransactionArgument<string>;
|
|
238
|
+
role: TransactionArgument;
|
|
239
|
+
}
|
|
240
|
+
export interface RemoveRoleOptions {
|
|
241
|
+
package?: string;
|
|
242
|
+
arguments: RemoveRoleArguments | [
|
|
243
|
+
self: RawTransactionArgument<string>,
|
|
244
|
+
cap: RawTransactionArgument<string>,
|
|
245
|
+
role: TransactionArgument
|
|
246
|
+
];
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* Removes a role from the party. Aborts in `typed_set` if not held. The whole
|
|
250
|
+
* field is dropped when the last role leaves.
|
|
251
|
+
*/
|
|
252
|
+
export function removeRole(options: RemoveRoleOptions) {
|
|
253
|
+
const packageAddress = options.package ?? '@local-pkg/party_roles';
|
|
254
|
+
const argumentsTypes = [
|
|
255
|
+
null,
|
|
256
|
+
null,
|
|
257
|
+
null
|
|
258
|
+
] satisfies (string | null)[];
|
|
259
|
+
const parameterNames = ["self", "cap", "role"];
|
|
260
|
+
return (tx: Transaction) => tx.moveCall({
|
|
261
|
+
package: packageAddress,
|
|
262
|
+
module: 'party_roles',
|
|
263
|
+
function: 'remove_role',
|
|
264
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
export interface ClearRolesArguments {
|
|
268
|
+
self: RawTransactionArgument<string>;
|
|
269
|
+
cap: RawTransactionArgument<string>;
|
|
270
|
+
}
|
|
271
|
+
export interface ClearRolesOptions {
|
|
272
|
+
package?: string;
|
|
273
|
+
arguments: ClearRolesArguments | [
|
|
274
|
+
self: RawTransactionArgument<string>,
|
|
275
|
+
cap: RawTransactionArgument<string>
|
|
276
|
+
];
|
|
277
|
+
}
|
|
278
|
+
/** Removes the party's entire role set. No-op if none is set. */
|
|
279
|
+
export function clearRoles(options: ClearRolesOptions) {
|
|
280
|
+
const packageAddress = options.package ?? '@local-pkg/party_roles';
|
|
281
|
+
const argumentsTypes = [
|
|
282
|
+
null,
|
|
283
|
+
null
|
|
284
|
+
] satisfies (string | null)[];
|
|
285
|
+
const parameterNames = ["self", "cap"];
|
|
286
|
+
return (tx: Transaction) => tx.moveCall({
|
|
287
|
+
package: packageAddress,
|
|
288
|
+
module: 'party_roles',
|
|
289
|
+
function: 'clear_roles',
|
|
290
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
export interface HasRolesArguments {
|
|
294
|
+
self: RawTransactionArgument<string>;
|
|
295
|
+
}
|
|
296
|
+
export interface HasRolesOptions {
|
|
297
|
+
package?: string;
|
|
298
|
+
arguments: HasRolesArguments | [
|
|
299
|
+
self: RawTransactionArgument<string>
|
|
300
|
+
];
|
|
301
|
+
}
|
|
302
|
+
/** Whether the party holds any roles. */
|
|
303
|
+
export function hasRoles(options: HasRolesOptions) {
|
|
304
|
+
const packageAddress = options.package ?? '@local-pkg/party_roles';
|
|
305
|
+
const argumentsTypes = [
|
|
306
|
+
null
|
|
307
|
+
] satisfies (string | null)[];
|
|
308
|
+
const parameterNames = ["self"];
|
|
309
|
+
return (tx: Transaction) => tx.moveCall({
|
|
310
|
+
package: packageAddress,
|
|
311
|
+
module: 'party_roles',
|
|
312
|
+
function: 'has_roles',
|
|
313
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
export interface HasRoleArguments {
|
|
317
|
+
self: RawTransactionArgument<string>;
|
|
318
|
+
role: TransactionArgument;
|
|
319
|
+
}
|
|
320
|
+
export interface HasRoleOptions {
|
|
321
|
+
package?: string;
|
|
322
|
+
arguments: HasRoleArguments | [
|
|
323
|
+
self: RawTransactionArgument<string>,
|
|
324
|
+
role: TransactionArgument
|
|
325
|
+
];
|
|
326
|
+
}
|
|
327
|
+
/** Whether the party holds the given role. */
|
|
328
|
+
export function hasRole(options: HasRoleOptions) {
|
|
329
|
+
const packageAddress = options.package ?? '@local-pkg/party_roles';
|
|
330
|
+
const argumentsTypes = [
|
|
331
|
+
null,
|
|
332
|
+
null
|
|
333
|
+
] satisfies (string | null)[];
|
|
334
|
+
const parameterNames = ["self", "role"];
|
|
335
|
+
return (tx: Transaction) => tx.moveCall({
|
|
336
|
+
package: packageAddress,
|
|
337
|
+
module: 'party_roles',
|
|
338
|
+
function: 'has_role',
|
|
339
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
340
|
+
});
|
|
341
|
+
}
|
|
342
|
+
export interface RolesArguments {
|
|
343
|
+
self: RawTransactionArgument<string>;
|
|
344
|
+
}
|
|
345
|
+
export interface RolesOptions {
|
|
346
|
+
package?: string;
|
|
347
|
+
arguments: RolesArguments | [
|
|
348
|
+
self: RawTransactionArgument<string>
|
|
349
|
+
];
|
|
350
|
+
}
|
|
351
|
+
/** The party's roles. */
|
|
352
|
+
export function roles(options: RolesOptions) {
|
|
353
|
+
const packageAddress = options.package ?? '@local-pkg/party_roles';
|
|
354
|
+
const argumentsTypes = [
|
|
355
|
+
null
|
|
356
|
+
] satisfies (string | null)[];
|
|
357
|
+
const parameterNames = ["self"];
|
|
358
|
+
return (tx: Transaction) => tx.moveCall({
|
|
359
|
+
package: packageAddress,
|
|
360
|
+
module: 'party_roles',
|
|
361
|
+
function: 'roles',
|
|
362
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
363
|
+
});
|
|
364
|
+
}
|