@misofm/platform 0.23.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.d.ts.map +1 -1
- package/dist/vault.js +13 -10
- 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 +18 -17
|
@@ -0,0 +1,380 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/**
|
|
5
|
+
* A fixed-price or minimum-price Record Shop listing for one Pressing.
|
|
6
|
+
*
|
|
7
|
+
* There is no Record Shop singleton. Each `Listing<Currency>` derives directly
|
|
8
|
+
* from its Pressing and is independently shared, so currencies and Pressings
|
|
9
|
+
* remain separate consensus lanes except for their common edition sequence.
|
|
10
|
+
*/
|
|
11
|
+
import { MoveTuple, MoveEnum, MoveStruct, normalizeMoveArguments } from '../utils/index.js';
|
|
12
|
+
import { bcs } from '@mysten/sui/bcs';
|
|
13
|
+
import {} from '@mysten/sui/transactions';
|
|
14
|
+
import * as type_name from './deps/std/type_name.js';
|
|
15
|
+
const $moduleName = '@local-pkg/record_shop::listing';
|
|
16
|
+
export const ListingKey = new MoveTuple({ name: `${$moduleName}::ListingKey<phantom Currency>`, fields: [bcs.bool()] });
|
|
17
|
+
/** Payment rule for a Listing. */
|
|
18
|
+
export const Pricing = new MoveEnum({ name: `${$moduleName}::Pricing`, fields: {
|
|
19
|
+
/** Require payment to equal the configured price. */
|
|
20
|
+
Fixed: bcs.u64(),
|
|
21
|
+
/** Require payment to be at least the configured price. */
|
|
22
|
+
Floor: bcs.u64()
|
|
23
|
+
} });
|
|
24
|
+
/** Whether purchases are accepted. */
|
|
25
|
+
export const State = new MoveEnum({ name: `${$moduleName}::State`, fields: {
|
|
26
|
+
Enabled: null,
|
|
27
|
+
Disabled: null
|
|
28
|
+
} });
|
|
29
|
+
export const Listing = new MoveStruct({ name: `${$moduleName}::Listing<phantom Currency>`, fields: {
|
|
30
|
+
/** The Listing's derived object identity. */
|
|
31
|
+
id: bcs.Address,
|
|
32
|
+
/** The release that receives payments from this Listing. */
|
|
33
|
+
release_id: bcs.Address,
|
|
34
|
+
/** The Pressing from which this Listing purchases Records. */
|
|
35
|
+
pressing_id: bcs.Address,
|
|
36
|
+
/** The active payment rule. */
|
|
37
|
+
pricing: Pricing,
|
|
38
|
+
/** Whether the Listing currently accepts purchases. */
|
|
39
|
+
state: State
|
|
40
|
+
} });
|
|
41
|
+
export const ListingCreatedEvent = new MoveStruct({ name: `${$moduleName}::ListingCreatedEvent<phantom Currency>`, fields: {
|
|
42
|
+
/** The newly created Listing. */
|
|
43
|
+
listing_id: bcs.Address,
|
|
44
|
+
/** The release that receives Listing payments. */
|
|
45
|
+
release_id: bcs.Address,
|
|
46
|
+
/** The Pressing sold by the Listing. */
|
|
47
|
+
pressing_id: bcs.Address,
|
|
48
|
+
/** The Listing's initial payment rule. */
|
|
49
|
+
pricing: Pricing,
|
|
50
|
+
/** The Listing's initial state. */
|
|
51
|
+
state: State
|
|
52
|
+
} });
|
|
53
|
+
export const ListingPriceChangedEvent = new MoveStruct({ name: `${$moduleName}::ListingPriceChangedEvent<phantom Currency>`, fields: {
|
|
54
|
+
/** The updated Listing. */
|
|
55
|
+
listing_id: bcs.Address,
|
|
56
|
+
/** The new payment rule. */
|
|
57
|
+
pricing: Pricing
|
|
58
|
+
} });
|
|
59
|
+
export const ListingStateChangedEvent = new MoveStruct({ name: `${$moduleName}::ListingStateChangedEvent<phantom Currency>`, fields: {
|
|
60
|
+
/** The updated Listing. */
|
|
61
|
+
listing_id: bcs.Address,
|
|
62
|
+
/** The new Listing state. */
|
|
63
|
+
state: State
|
|
64
|
+
} });
|
|
65
|
+
export const RecordSoldEvent = new MoveStruct({ name: `${$moduleName}::RecordSoldEvent<phantom Currency>`, fields: {
|
|
66
|
+
/** The Listing that completed the sale. */
|
|
67
|
+
listing_id: bcs.Address,
|
|
68
|
+
/** The purchased Record. */
|
|
69
|
+
record_id: bcs.Address,
|
|
70
|
+
/** The release that received payment. */
|
|
71
|
+
release_id: bcs.Address,
|
|
72
|
+
/** The Pressing that issued the Record. */
|
|
73
|
+
pressing_id: bcs.Address,
|
|
74
|
+
/** The edition represented by the Pressing. */
|
|
75
|
+
edition: bcs.u16(),
|
|
76
|
+
/** The Record's number within its edition. */
|
|
77
|
+
number: bcs.u32(),
|
|
78
|
+
/** The defining type of the purchase currency. */
|
|
79
|
+
purchase_currency: type_name.TypeName,
|
|
80
|
+
/** The amount paid for the Record. */
|
|
81
|
+
purchase_price: bcs.u64(),
|
|
82
|
+
/** The transaction sender who purchased the Record. */
|
|
83
|
+
purchased_by: bcs.Address,
|
|
84
|
+
/** The purchase time in Unix milliseconds from Sui's Clock. */
|
|
85
|
+
purchased_timestamp_ms: bcs.u64(),
|
|
86
|
+
/** The payment rule accepted for the sale. */
|
|
87
|
+
pricing: Pricing
|
|
88
|
+
} });
|
|
89
|
+
/** Construct an exact-payment pricing rule. */
|
|
90
|
+
export function fixed(options) {
|
|
91
|
+
const packageAddress = options.package ?? '@local-pkg/record_shop';
|
|
92
|
+
const argumentsTypes = [
|
|
93
|
+
'u64'
|
|
94
|
+
];
|
|
95
|
+
const parameterNames = ["price"];
|
|
96
|
+
return (tx) => tx.moveCall({
|
|
97
|
+
package: packageAddress,
|
|
98
|
+
module: 'listing',
|
|
99
|
+
function: 'fixed',
|
|
100
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
/** Construct a minimum-payment pricing rule. */
|
|
104
|
+
export function floor(options) {
|
|
105
|
+
const packageAddress = options.package ?? '@local-pkg/record_shop';
|
|
106
|
+
const argumentsTypes = [
|
|
107
|
+
'u64'
|
|
108
|
+
];
|
|
109
|
+
const parameterNames = ["price"];
|
|
110
|
+
return (tx) => tx.moveCall({
|
|
111
|
+
package: packageAddress,
|
|
112
|
+
module: 'listing',
|
|
113
|
+
function: 'floor',
|
|
114
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
/** Construct the state that accepts purchases. */
|
|
118
|
+
export function enabled(options = {}) {
|
|
119
|
+
const packageAddress = options.package ?? '@local-pkg/record_shop';
|
|
120
|
+
return (tx) => tx.moveCall({
|
|
121
|
+
package: packageAddress,
|
|
122
|
+
module: 'listing',
|
|
123
|
+
function: 'enabled',
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
/** Construct the state that rejects purchases. */
|
|
127
|
+
export function disabled(options = {}) {
|
|
128
|
+
const packageAddress = options.package ?? '@local-pkg/record_shop';
|
|
129
|
+
return (tx) => tx.moveCall({
|
|
130
|
+
package: packageAddress,
|
|
131
|
+
module: 'listing',
|
|
132
|
+
function: 'disabled',
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Create the permanent Listing for `Currency` under this Pressing.
|
|
137
|
+
*
|
|
138
|
+
* The Listing starts enabled and is returned unshared so callers can compose
|
|
139
|
+
* further configuration before calling `share`.
|
|
140
|
+
*/
|
|
141
|
+
export function _new(options) {
|
|
142
|
+
const packageAddress = options.package ?? '@local-pkg/record_shop';
|
|
143
|
+
const argumentsTypes = [
|
|
144
|
+
null,
|
|
145
|
+
null,
|
|
146
|
+
null
|
|
147
|
+
];
|
|
148
|
+
const parameterNames = ["pressing", "cap", "pricing"];
|
|
149
|
+
return (tx) => tx.moveCall({
|
|
150
|
+
package: packageAddress,
|
|
151
|
+
module: 'listing',
|
|
152
|
+
function: 'new',
|
|
153
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
154
|
+
typeArguments: options.typeArguments
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
/** Share a newly created Listing. */
|
|
158
|
+
export function share(options) {
|
|
159
|
+
const packageAddress = options.package ?? '@local-pkg/record_shop';
|
|
160
|
+
const argumentsTypes = [
|
|
161
|
+
null
|
|
162
|
+
];
|
|
163
|
+
const parameterNames = ["self"];
|
|
164
|
+
return (tx) => tx.moveCall({
|
|
165
|
+
package: packageAddress,
|
|
166
|
+
module: 'listing',
|
|
167
|
+
function: 'share',
|
|
168
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
169
|
+
typeArguments: options.typeArguments
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
/** Change the payment rule using the capability for the bound Pressing. */
|
|
173
|
+
export function setPrice(options) {
|
|
174
|
+
const packageAddress = options.package ?? '@local-pkg/record_shop';
|
|
175
|
+
const argumentsTypes = [
|
|
176
|
+
null,
|
|
177
|
+
null,
|
|
178
|
+
null
|
|
179
|
+
];
|
|
180
|
+
const parameterNames = ["self", "cap", "pricing"];
|
|
181
|
+
return (tx) => tx.moveCall({
|
|
182
|
+
package: packageAddress,
|
|
183
|
+
module: 'listing',
|
|
184
|
+
function: 'set_price',
|
|
185
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
186
|
+
typeArguments: options.typeArguments
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
/** Enable or disable purchases using the capability for the bound Pressing. */
|
|
190
|
+
export function setState(options) {
|
|
191
|
+
const packageAddress = options.package ?? '@local-pkg/record_shop';
|
|
192
|
+
const argumentsTypes = [
|
|
193
|
+
null,
|
|
194
|
+
null,
|
|
195
|
+
null
|
|
196
|
+
];
|
|
197
|
+
const parameterNames = ["self", "cap", "state"];
|
|
198
|
+
return (tx) => tx.moveCall({
|
|
199
|
+
package: packageAddress,
|
|
200
|
+
module: 'listing',
|
|
201
|
+
function: 'set_state',
|
|
202
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
203
|
+
typeArguments: options.typeArguments
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Purchase and return the next Record from the bound Pressing.
|
|
208
|
+
*
|
|
209
|
+
* `expected_pricing` protects the buyer against stale price or pricing-rule
|
|
210
|
+
* changes. The entire payment is deposited into the Release object's funds
|
|
211
|
+
* accumulator; a Floor overpayment is not refunded. The caller decides how to
|
|
212
|
+
* transfer or compose the returned Record.
|
|
213
|
+
*/
|
|
214
|
+
export function purchase(options) {
|
|
215
|
+
const packageAddress = options.package ?? '@local-pkg/record_shop';
|
|
216
|
+
const argumentsTypes = [
|
|
217
|
+
null,
|
|
218
|
+
null,
|
|
219
|
+
null,
|
|
220
|
+
null,
|
|
221
|
+
'0x2::clock::Clock'
|
|
222
|
+
];
|
|
223
|
+
const parameterNames = ["self", "pressing", "payment", "expectedPricing"];
|
|
224
|
+
return (tx) => tx.moveCall({
|
|
225
|
+
package: packageAddress,
|
|
226
|
+
module: 'listing',
|
|
227
|
+
function: 'purchase',
|
|
228
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
229
|
+
typeArguments: options.typeArguments
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
/** Return the release that receives Listing payments. */
|
|
233
|
+
export function releaseId(options) {
|
|
234
|
+
const packageAddress = options.package ?? '@local-pkg/record_shop';
|
|
235
|
+
const argumentsTypes = [
|
|
236
|
+
null
|
|
237
|
+
];
|
|
238
|
+
const parameterNames = ["self"];
|
|
239
|
+
return (tx) => tx.moveCall({
|
|
240
|
+
package: packageAddress,
|
|
241
|
+
module: 'listing',
|
|
242
|
+
function: 'release_id',
|
|
243
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
244
|
+
typeArguments: options.typeArguments
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
/** Return the Pressing sold by this Listing. */
|
|
248
|
+
export function pressingId(options) {
|
|
249
|
+
const packageAddress = options.package ?? '@local-pkg/record_shop';
|
|
250
|
+
const argumentsTypes = [
|
|
251
|
+
null
|
|
252
|
+
];
|
|
253
|
+
const parameterNames = ["self"];
|
|
254
|
+
return (tx) => tx.moveCall({
|
|
255
|
+
package: packageAddress,
|
|
256
|
+
module: 'listing',
|
|
257
|
+
function: 'pressing_id',
|
|
258
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
259
|
+
typeArguments: options.typeArguments
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
/** Return this Listing's payment rule. */
|
|
263
|
+
export function pricing(options) {
|
|
264
|
+
const packageAddress = options.package ?? '@local-pkg/record_shop';
|
|
265
|
+
const argumentsTypes = [
|
|
266
|
+
null
|
|
267
|
+
];
|
|
268
|
+
const parameterNames = ["self"];
|
|
269
|
+
return (tx) => tx.moveCall({
|
|
270
|
+
package: packageAddress,
|
|
271
|
+
module: 'listing',
|
|
272
|
+
function: 'pricing',
|
|
273
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
274
|
+
typeArguments: options.typeArguments
|
|
275
|
+
});
|
|
276
|
+
}
|
|
277
|
+
/** Return the amount configured by this Listing's payment rule. */
|
|
278
|
+
export function price(options) {
|
|
279
|
+
const packageAddress = options.package ?? '@local-pkg/record_shop';
|
|
280
|
+
const argumentsTypes = [
|
|
281
|
+
null
|
|
282
|
+
];
|
|
283
|
+
const parameterNames = ["self"];
|
|
284
|
+
return (tx) => tx.moveCall({
|
|
285
|
+
package: packageAddress,
|
|
286
|
+
module: 'listing',
|
|
287
|
+
function: 'price',
|
|
288
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
289
|
+
typeArguments: options.typeArguments
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
/** Return this Listing's current state. */
|
|
293
|
+
export function state(options) {
|
|
294
|
+
const packageAddress = options.package ?? '@local-pkg/record_shop';
|
|
295
|
+
const argumentsTypes = [
|
|
296
|
+
null
|
|
297
|
+
];
|
|
298
|
+
const parameterNames = ["self"];
|
|
299
|
+
return (tx) => tx.moveCall({
|
|
300
|
+
package: packageAddress,
|
|
301
|
+
module: 'listing',
|
|
302
|
+
function: 'state',
|
|
303
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
304
|
+
typeArguments: options.typeArguments
|
|
305
|
+
});
|
|
306
|
+
}
|
|
307
|
+
/** Return whether this Listing currently accepts purchases. */
|
|
308
|
+
export function isEnabled(options) {
|
|
309
|
+
const packageAddress = options.package ?? '@local-pkg/record_shop';
|
|
310
|
+
const argumentsTypes = [
|
|
311
|
+
null
|
|
312
|
+
];
|
|
313
|
+
const parameterNames = ["self"];
|
|
314
|
+
return (tx) => tx.moveCall({
|
|
315
|
+
package: packageAddress,
|
|
316
|
+
module: 'listing',
|
|
317
|
+
function: 'is_enabled',
|
|
318
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
319
|
+
typeArguments: options.typeArguments
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
/** Return whether this Listing currently rejects purchases. */
|
|
323
|
+
export function isDisabled(options) {
|
|
324
|
+
const packageAddress = options.package ?? '@local-pkg/record_shop';
|
|
325
|
+
const argumentsTypes = [
|
|
326
|
+
null
|
|
327
|
+
];
|
|
328
|
+
const parameterNames = ["self"];
|
|
329
|
+
return (tx) => tx.moveCall({
|
|
330
|
+
package: packageAddress,
|
|
331
|
+
module: 'listing',
|
|
332
|
+
function: 'is_disabled',
|
|
333
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
334
|
+
typeArguments: options.typeArguments
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
/** Return whether `pricing` requires an exact payment. */
|
|
338
|
+
export function isFixed(options) {
|
|
339
|
+
const packageAddress = options.package ?? '@local-pkg/record_shop';
|
|
340
|
+
const argumentsTypes = [
|
|
341
|
+
null
|
|
342
|
+
];
|
|
343
|
+
const parameterNames = ["pricing"];
|
|
344
|
+
return (tx) => tx.moveCall({
|
|
345
|
+
package: packageAddress,
|
|
346
|
+
module: 'listing',
|
|
347
|
+
function: 'is_fixed',
|
|
348
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
/** Return whether `pricing` permits payment above its configured floor. */
|
|
352
|
+
export function isFloor(options) {
|
|
353
|
+
const packageAddress = options.package ?? '@local-pkg/record_shop';
|
|
354
|
+
const argumentsTypes = [
|
|
355
|
+
null
|
|
356
|
+
];
|
|
357
|
+
const parameterNames = ["pricing"];
|
|
358
|
+
return (tx) => tx.moveCall({
|
|
359
|
+
package: packageAddress,
|
|
360
|
+
module: 'listing',
|
|
361
|
+
function: 'is_floor',
|
|
362
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
363
|
+
});
|
|
364
|
+
}
|
|
365
|
+
/** Derive the one Listing address for `(pressing_id, Currency)`. */
|
|
366
|
+
export function deriveAddress(options) {
|
|
367
|
+
const packageAddress = options.package ?? '@local-pkg/record_shop';
|
|
368
|
+
const argumentsTypes = [
|
|
369
|
+
'0x2::object::ID'
|
|
370
|
+
];
|
|
371
|
+
const parameterNames = ["pressingId"];
|
|
372
|
+
return (tx) => tx.moveCall({
|
|
373
|
+
package: packageAddress,
|
|
374
|
+
module: 'listing',
|
|
375
|
+
function: 'derive_address',
|
|
376
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
377
|
+
typeArguments: options.typeArguments
|
|
378
|
+
});
|
|
379
|
+
}
|
|
380
|
+
//# sourceMappingURL=listing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listing.js","sourceRoot":"","sources":["../../../src/contracts/record_shop/listing.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,sBAAsB,EAA+B,MAAM,mBAAmB,CAAC;AACzH,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAEtC,OAAO,EAA8C,MAAM,0BAA0B,CAAC;AACtF,OAAO,KAAK,SAAS,MAAM,yBAAyB,CAAC;AACrD,MAAM,WAAW,GAAG,iCAAiC,CAAC;AACtD,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,SAAS,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,gCAAgC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC;AACxH,kCAAkC;AAClC,MAAM,CAAC,MAAM,OAAO,GAAG,IAAI,QAAQ,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,WAAW,EAAE,MAAM,EAAE;QACvE,qDAAqD;QACrD,KAAK,EAAE,GAAG,CAAC,GAAG,EAAE;QAChB,2DAA2D;QAC3D,KAAK,EAAE,GAAG,CAAC,GAAG,EAAE;KACnB,EAAE,CAAC,CAAC;AACT,sCAAsC;AACtC,MAAM,CAAC,MAAM,KAAK,GAAG,IAAI,QAAQ,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,SAAS,EAAE,MAAM,EAAE;QACnE,OAAO,EAAE,IAAI;QACb,QAAQ,EAAE,IAAI;KACjB,EAAE,CAAC,CAAC;AACT,MAAM,CAAC,MAAM,OAAO,GAAG,IAAI,UAAU,CAAC,EAAE,IAAI,EAA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IS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/** Module-controlled authority used by the Miso Record Shop to mint Records. */
|
|
5
|
+
import { MoveTuple } from '../utils/index.ts';
|
|
6
|
+
export declare const Witness: MoveTuple<readonly [import("@mysten/bcs").BcsType<boolean, boolean, "bool">], "@local-pkg/record_shop::witness::Witness">;
|
|
7
|
+
//# sourceMappingURL=witness.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"witness.d.ts","sourceRoot":"","sources":["../../../src/contracts/record_shop/witness.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE,gFAAgF;AAEhF,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAI9C,eAAO,MAAM,OAAO,2HAA2E,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/** Module-controlled authority used by the Miso Record Shop to mint Records. */
|
|
5
|
+
import { MoveTuple } from '../utils/index.js';
|
|
6
|
+
import { bcs } from '@mysten/sui/bcs';
|
|
7
|
+
const $moduleName = '@local-pkg/record_shop::witness';
|
|
8
|
+
export const Witness = new MoveTuple({ name: `${$moduleName}::Witness`, fields: [bcs.bool()] });
|
|
9
|
+
//# sourceMappingURL=witness.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"witness.js","sourceRoot":"","sources":["../../../src/contracts/record_shop/witness.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE,gFAAgF;AAEhF,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAEtC,MAAM,WAAW,GAAG,iCAAiC,CAAC;AACtD,MAAM,CAAC,MAAM,OAAO,GAAG,IAAI,SAAS,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,WAAW,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/**
|
|
5
|
+
* The parental advisory rating for a recording — whether its lyrics are explicit —
|
|
6
|
+
* stored as a dynamic field on the recording's UID and written through its
|
|
7
|
+
* cap-gated `uid_mut`.
|
|
8
|
+
*
|
|
9
|
+
* This is its own package on purpose. Advisory ratings are set by a different
|
|
10
|
+
* person, at a different time, for entirely different reasons than the other facts
|
|
11
|
+
* about a recording, and the standard that governs them moves on its own schedule.
|
|
12
|
+
* Bundling it into a general "recording metadata" object would mean that revising
|
|
13
|
+
* the advisory standard drags every unrelated field through the migration. Kept
|
|
14
|
+
* separate, a consumer implementing some future metadata profile selects this
|
|
15
|
+
* extension or ignores it, and swapping it touches nothing else.
|
|
16
|
+
*
|
|
17
|
+
* The rating is deliberately not a boolean. Every distributor and storefront
|
|
18
|
+
* distinguishes a _cleaned_ edit — an explicit recording re-issued with the
|
|
19
|
+
* offending content removed — from a recording that was never explicit at all.
|
|
20
|
+
* They are merchandised differently and a boolean cannot express the difference,
|
|
21
|
+
* so `Cleaned` is a first-class variant.
|
|
22
|
+
*
|
|
23
|
+
* Attaching the extension IS the statement. There is no "attached but undeclared"
|
|
24
|
+
* state: if a rating is present it has been asserted by the rights holder, and a
|
|
25
|
+
* recording with nothing attached has simply said nothing.
|
|
26
|
+
*/
|
|
27
|
+
import { MoveTuple, MoveEnum, MoveStruct, type RawTransactionArgument } from '../utils/index.ts';
|
|
28
|
+
import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
|
|
29
|
+
export declare const ExtensionKey: MoveTuple<readonly [import("@mysten/bcs").BcsType<boolean, boolean, "bool">], "@local-pkg/recording_advisory::recording_advisory::ExtensionKey">;
|
|
30
|
+
/** A recording's parental advisory rating. */
|
|
31
|
+
export declare const ExplicitRating: MoveEnum<{
|
|
32
|
+
/** Contains explicit content. */
|
|
33
|
+
Explicit: null;
|
|
34
|
+
/** Contains no explicit content, and never did. */
|
|
35
|
+
NotExplicit: null;
|
|
36
|
+
/** An edited version of a recording that was originally explicit. */
|
|
37
|
+
Cleaned: null;
|
|
38
|
+
}, "@local-pkg/recording_advisory::recording_advisory::ExplicitRating">;
|
|
39
|
+
export declare const AdvisoryRatingSetEvent: MoveStruct<{
|
|
40
|
+
recording_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
41
|
+
rating: MoveEnum<{
|
|
42
|
+
/** Contains explicit content. */
|
|
43
|
+
Explicit: null;
|
|
44
|
+
/** Contains no explicit content, and never did. */
|
|
45
|
+
NotExplicit: null;
|
|
46
|
+
/** An edited version of a recording that was originally explicit. */
|
|
47
|
+
Cleaned: null;
|
|
48
|
+
}, "@local-pkg/recording_advisory::recording_advisory::ExplicitRating">;
|
|
49
|
+
}, "@local-pkg/recording_advisory::recording_advisory::AdvisoryRatingSetEvent">;
|
|
50
|
+
export declare const AdvisoryRatingUnsetEvent: MoveStruct<{
|
|
51
|
+
recording_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
52
|
+
}, "@local-pkg/recording_advisory::recording_advisory::AdvisoryRatingUnsetEvent">;
|
|
53
|
+
export interface ExplicitOptions {
|
|
54
|
+
package?: string;
|
|
55
|
+
arguments?: [
|
|
56
|
+
];
|
|
57
|
+
}
|
|
58
|
+
/** Contains explicit content. */
|
|
59
|
+
export declare function explicit(options?: ExplicitOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
60
|
+
export interface NotExplicitOptions {
|
|
61
|
+
package?: string;
|
|
62
|
+
arguments?: [
|
|
63
|
+
];
|
|
64
|
+
}
|
|
65
|
+
/** Contains no explicit content, and never did. */
|
|
66
|
+
export declare function notExplicit(options?: NotExplicitOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
67
|
+
export interface CleanedOptions {
|
|
68
|
+
package?: string;
|
|
69
|
+
arguments?: [
|
|
70
|
+
];
|
|
71
|
+
}
|
|
72
|
+
/** An edited version of a recording that was originally explicit. */
|
|
73
|
+
export declare function cleaned(options?: CleanedOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
74
|
+
export interface SetRatingArguments {
|
|
75
|
+
self: RawTransactionArgument<string>;
|
|
76
|
+
cap: RawTransactionArgument<string>;
|
|
77
|
+
rating: TransactionArgument;
|
|
78
|
+
}
|
|
79
|
+
export interface SetRatingOptions {
|
|
80
|
+
package?: string;
|
|
81
|
+
arguments: SetRatingArguments | [
|
|
82
|
+
self: RawTransactionArgument<string>,
|
|
83
|
+
cap: RawTransactionArgument<string>,
|
|
84
|
+
rating: TransactionArgument
|
|
85
|
+
];
|
|
86
|
+
typeArguments: [
|
|
87
|
+
string,
|
|
88
|
+
string
|
|
89
|
+
];
|
|
90
|
+
}
|
|
91
|
+
/** Sets (or replaces) the recording's advisory rating. */
|
|
92
|
+
export declare function setRating(options: SetRatingOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
93
|
+
export interface UnsetRatingArguments {
|
|
94
|
+
self: RawTransactionArgument<string>;
|
|
95
|
+
cap: RawTransactionArgument<string>;
|
|
96
|
+
}
|
|
97
|
+
export interface UnsetRatingOptions {
|
|
98
|
+
package?: string;
|
|
99
|
+
arguments: UnsetRatingArguments | [
|
|
100
|
+
self: RawTransactionArgument<string>,
|
|
101
|
+
cap: RawTransactionArgument<string>
|
|
102
|
+
];
|
|
103
|
+
typeArguments: [
|
|
104
|
+
string,
|
|
105
|
+
string
|
|
106
|
+
];
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Removes the rating, if any. Idempotent — the recording is left having said
|
|
110
|
+
* nothing about its content, which is distinct from asserting `NotExplicit`.
|
|
111
|
+
*/
|
|
112
|
+
export declare function unsetRating(options: UnsetRatingOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
113
|
+
export interface HasRatingArguments {
|
|
114
|
+
self: RawTransactionArgument<string>;
|
|
115
|
+
}
|
|
116
|
+
export interface HasRatingOptions {
|
|
117
|
+
package?: string;
|
|
118
|
+
arguments: HasRatingArguments | [
|
|
119
|
+
self: RawTransactionArgument<string>
|
|
120
|
+
];
|
|
121
|
+
typeArguments: [
|
|
122
|
+
string,
|
|
123
|
+
string
|
|
124
|
+
];
|
|
125
|
+
}
|
|
126
|
+
/** Whether an advisory rating is attached to this recording. */
|
|
127
|
+
export declare function hasRating(options: HasRatingOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
128
|
+
export interface RatingArguments {
|
|
129
|
+
self: RawTransactionArgument<string>;
|
|
130
|
+
}
|
|
131
|
+
export interface RatingOptions {
|
|
132
|
+
package?: string;
|
|
133
|
+
arguments: RatingArguments | [
|
|
134
|
+
self: RawTransactionArgument<string>
|
|
135
|
+
];
|
|
136
|
+
typeArguments: [
|
|
137
|
+
string,
|
|
138
|
+
string
|
|
139
|
+
];
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* The recording's advisory rating. Aborts if none is attached — callers that
|
|
143
|
+
* tolerate an unrated recording should check `has_rating` first, since absence is
|
|
144
|
+
* a meaningful state and must not be silently read as `NotExplicit`.
|
|
145
|
+
*/
|
|
146
|
+
export declare function rating(options: RatingOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
147
|
+
export interface IsExplicitArguments {
|
|
148
|
+
self: TransactionArgument;
|
|
149
|
+
}
|
|
150
|
+
export interface IsExplicitOptions {
|
|
151
|
+
package?: string;
|
|
152
|
+
arguments: IsExplicitArguments | [
|
|
153
|
+
self: TransactionArgument
|
|
154
|
+
];
|
|
155
|
+
}
|
|
156
|
+
/** Whether the recording contains explicit content. */
|
|
157
|
+
export declare function isExplicit(options: IsExplicitOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
158
|
+
export interface IsNotExplicitArguments {
|
|
159
|
+
self: TransactionArgument;
|
|
160
|
+
}
|
|
161
|
+
export interface IsNotExplicitOptions {
|
|
162
|
+
package?: string;
|
|
163
|
+
arguments: IsNotExplicitArguments | [
|
|
164
|
+
self: TransactionArgument
|
|
165
|
+
];
|
|
166
|
+
}
|
|
167
|
+
/** Whether the recording contains no explicit content and never did. */
|
|
168
|
+
export declare function isNotExplicit(options: IsNotExplicitOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
169
|
+
export interface IsCleanedArguments {
|
|
170
|
+
self: TransactionArgument;
|
|
171
|
+
}
|
|
172
|
+
export interface IsCleanedOptions {
|
|
173
|
+
package?: string;
|
|
174
|
+
arguments: IsCleanedArguments | [
|
|
175
|
+
self: TransactionArgument
|
|
176
|
+
];
|
|
177
|
+
}
|
|
178
|
+
/** Whether the recording is an edited version of an originally explicit one. */
|
|
179
|
+
export declare function isCleaned(options: IsCleanedOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
180
|
+
export interface NameArguments {
|
|
181
|
+
self: TransactionArgument;
|
|
182
|
+
}
|
|
183
|
+
export interface NameOptions {
|
|
184
|
+
package?: string;
|
|
185
|
+
arguments: NameArguments | [
|
|
186
|
+
self: TransactionArgument
|
|
187
|
+
];
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* The rating's canonical name, for clients and indexers that need a stable string
|
|
191
|
+
* rather than a Move value.
|
|
192
|
+
*/
|
|
193
|
+
export declare function name(options: NameOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
194
|
+
//# sourceMappingURL=recording_advisory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recording_advisory.d.ts","sourceRoot":"","sources":["../../../src/contracts/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