@misofm/platform 0.27.0 → 0.28.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 +309 -204
- package/dist/Miso.d.ts +403 -0
- package/dist/Miso.d.ts.map +1 -0
- package/dist/Miso.js +455 -0
- package/dist/Miso.js.map +1 -0
- package/dist/auth.d.ts +11 -1
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +16 -3
- package/dist/auth.js.map +1 -1
- package/dist/catalog.d.ts +8 -5
- package/dist/catalog.d.ts.map +1 -1
- package/dist/catalog.js +36 -19
- package/dist/catalog.js.map +1 -1
- package/dist/client.d.ts +52 -443
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +58 -775
- package/dist/client.js.map +1 -1
- package/dist/contracts/composition_credits/composition_credits.d.ts +38 -48
- package/dist/contracts/composition_credits/composition_credits.d.ts.map +1 -1
- package/dist/contracts/composition_credits/composition_credits.js +20 -4
- package/dist/contracts/composition_credits/composition_credits.js.map +1 -1
- package/dist/contracts/composition_routed_stake/composition_routed_stake.d.ts +64 -1
- package/dist/contracts/composition_routed_stake/composition_routed_stake.d.ts.map +1 -1
- package/dist/contracts/composition_routed_stake/composition_routed_stake.js +66 -1
- package/dist/contracts/composition_routed_stake/composition_routed_stake.js.map +1 -1
- package/dist/contracts/composition_royalty_pool/composition_royalty_pool.d.ts +52 -4
- package/dist/contracts/composition_royalty_pool/composition_royalty_pool.d.ts.map +1 -1
- package/dist/contracts/composition_royalty_pool/composition_royalty_pool.js +52 -4
- package/dist/contracts/composition_royalty_pool/composition_royalty_pool.js.map +1 -1
- package/dist/contracts/composition_royalty_pool_plugin/composition_royalty_pool_plugin.d.ts +63 -1
- package/dist/contracts/composition_royalty_pool_plugin/composition_royalty_pool_plugin.d.ts.map +1 -1
- package/dist/contracts/composition_royalty_pool_plugin/composition_royalty_pool_plugin.js +63 -1
- package/dist/contracts/composition_royalty_pool_plugin/composition_royalty_pool_plugin.js.map +1 -1
- package/dist/contracts/genre/genre.d.ts +10 -1
- package/dist/contracts/genre/genre.d.ts.map +1 -1
- package/dist/contracts/genre/genre.js +8 -1
- package/dist/contracts/genre/genre.js.map +1 -1
- package/dist/contracts/miso_pay/deps/std/type_name.d.ts.map +1 -0
- package/dist/contracts/miso_pay/deps/std/type_name.js.map +1 -0
- package/dist/contracts/miso_pay/pay.d.ts +209 -0
- package/dist/contracts/miso_pay/pay.d.ts.map +1 -0
- package/dist/contracts/miso_pay/pay.js +195 -0
- package/dist/contracts/miso_pay/pay.js.map +1 -0
- package/dist/contracts/party_cta/party_cta.d.ts +49 -3
- package/dist/contracts/party_cta/party_cta.d.ts.map +1 -1
- package/dist/contracts/party_cta/party_cta.js +27 -5
- package/dist/contracts/party_cta/party_cta.js.map +1 -1
- package/dist/contracts/party_genre/party_genre.d.ts +25 -0
- package/dist/contracts/party_genre/party_genre.d.ts.map +1 -1
- package/dist/contracts/party_genre/party_genre.js +14 -3
- package/dist/contracts/party_genre/party_genre.js.map +1 -1
- package/dist/contracts/party_media/party_media.d.ts +19 -3
- package/dist/contracts/party_media/party_media.d.ts.map +1 -1
- package/dist/contracts/party_media/party_media.js +20 -4
- package/dist/contracts/party_media/party_media.js.map +1 -1
- package/dist/contracts/party_platform_link/party_platform_link.d.ts +15 -7
- package/dist/contracts/party_platform_link/party_platform_link.d.ts.map +1 -1
- package/dist/contracts/party_platform_link/party_platform_link.js +15 -7
- package/dist/contracts/party_platform_link/party_platform_link.js.map +1 -1
- package/dist/contracts/party_profile/party_profile.d.ts +63 -8
- package/dist/contracts/party_profile/party_profile.d.ts.map +1 -1
- package/dist/contracts/party_profile/party_profile.js +33 -8
- package/dist/contracts/party_profile/party_profile.js.map +1 -1
- package/dist/contracts/party_roles/party_roles.d.ts +28 -3
- package/dist/contracts/party_roles/party_roles.d.ts.map +1 -1
- package/dist/contracts/party_roles/party_roles.js +19 -4
- package/dist/contracts/party_roles/party_roles.js.map +1 -1
- package/dist/contracts/party_tags/party_tags.d.ts +23 -3
- package/dist/contracts/party_tags/party_tags.d.ts.map +1 -1
- package/dist/contracts/party_tags/party_tags.js +16 -4
- package/dist/contracts/party_tags/party_tags.js.map +1 -1
- package/dist/contracts/party_wallet/party_wallet.d.ts +4 -1
- package/dist/contracts/party_wallet/party_wallet.d.ts.map +1 -1
- package/dist/contracts/party_wallet/party_wallet.js +2 -1
- package/dist/contracts/party_wallet/party_wallet.js.map +1 -1
- package/dist/contracts/platform_link/platform_link.d.ts +207 -0
- package/dist/contracts/platform_link/platform_link.d.ts.map +1 -0
- package/dist/contracts/platform_link/platform_link.js +209 -0
- package/dist/contracts/platform_link/platform_link.js.map +1 -0
- package/dist/contracts/record/pressing.d.ts +53 -7
- package/dist/contracts/record/pressing.d.ts.map +1 -1
- package/dist/contracts/record/pressing.js +50 -4
- package/dist/contracts/record/pressing.js.map +1 -1
- package/dist/contracts/record/record.d.ts +14 -0
- package/dist/contracts/record/record.d.ts.map +1 -1
- package/dist/contracts/record/record.js +15 -1
- package/dist/contracts/record/record.js.map +1 -1
- package/dist/contracts/record_shop/listing.d.ts +80 -35
- package/dist/contracts/record_shop/listing.d.ts.map +1 -1
- package/dist/contracts/record_shop/listing.js +76 -13
- package/dist/contracts/record_shop/listing.js.map +1 -1
- package/dist/contracts/recording_advisory/recording_advisory.d.ts +15 -15
- package/dist/contracts/recording_advisory/recording_advisory.d.ts.map +1 -1
- package/dist/contracts/recording_advisory/recording_advisory.js +15 -8
- package/dist/contracts/recording_advisory/recording_advisory.js.map +1 -1
- package/dist/contracts/recording_credits/recording_credits.d.ts +95 -1350
- package/dist/contracts/recording_credits/recording_credits.d.ts.map +1 -1
- package/dist/contracts/recording_credits/recording_credits.js +63 -12
- package/dist/contracts/recording_credits/recording_credits.js.map +1 -1
- package/dist/contracts/recording_engine_session/recording_engine_session.d.ts +30 -49
- package/dist/contracts/recording_engine_session/recording_engine_session.d.ts.map +1 -1
- package/dist/contracts/recording_engine_session/recording_engine_session.js +19 -4
- package/dist/contracts/recording_engine_session/recording_engine_session.js.map +1 -1
- package/dist/contracts/recording_genre/recording_genre.d.ts +67 -9
- package/dist/contracts/recording_genre/recording_genre.d.ts.map +1 -1
- package/dist/contracts/recording_genre/recording_genre.js +53 -9
- package/dist/contracts/recording_genre/recording_genre.js.map +1 -1
- package/dist/contracts/recording_language/recording_language.d.ts +29 -5
- package/dist/contracts/recording_language/recording_language.d.ts.map +1 -1
- package/dist/contracts/recording_language/recording_language.js +18 -5
- package/dist/contracts/recording_language/recording_language.js.map +1 -1
- package/dist/contracts/recording_master_reference/recording_master_reference.d.ts +25 -15
- package/dist/contracts/recording_master_reference/recording_master_reference.d.ts.map +1 -1
- package/dist/contracts/recording_master_reference/recording_master_reference.js +18 -5
- package/dist/contracts/recording_master_reference/recording_master_reference.js.map +1 -1
- package/dist/contracts/recording_royalty_pool/recording_royalty_pool.d.ts +55 -4
- package/dist/contracts/recording_royalty_pool/recording_royalty_pool.d.ts.map +1 -1
- package/dist/contracts/recording_royalty_pool/recording_royalty_pool.js +55 -4
- package/dist/contracts/recording_royalty_pool/recording_royalty_pool.js.map +1 -1
- package/dist/contracts/recording_royalty_pool_plugin/recording_royalty_pool_plugin.d.ts +66 -1
- package/dist/contracts/recording_royalty_pool_plugin/recording_royalty_pool_plugin.d.ts.map +1 -1
- package/dist/contracts/recording_royalty_pool_plugin/recording_royalty_pool_plugin.js +66 -1
- package/dist/contracts/recording_royalty_pool_plugin/recording_royalty_pool_plugin.js.map +1 -1
- package/dist/contracts/recording_streaming_transcode/recording_streaming_transcode.d.ts +12 -9
- package/dist/contracts/recording_streaming_transcode/recording_streaming_transcode.d.ts.map +1 -1
- package/dist/contracts/recording_streaming_transcode/recording_streaming_transcode.js +11 -4
- package/dist/contracts/recording_streaming_transcode/recording_streaming_transcode.js.map +1 -1
- package/dist/contracts/release_cover_art/release_cover_art.d.ts +168 -74
- package/dist/contracts/release_cover_art/release_cover_art.d.ts.map +1 -1
- package/dist/contracts/release_cover_art/release_cover_art.js +126 -10
- package/dist/contracts/release_cover_art/release_cover_art.js.map +1 -1
- package/dist/contracts/release_credits/release_credits.d.ts +24 -28
- package/dist/contracts/release_credits/release_credits.d.ts.map +1 -1
- package/dist/contracts/release_credits/release_credits.js +18 -4
- package/dist/contracts/release_credits/release_credits.js.map +1 -1
- package/dist/contracts/release_description/release_description.d.ts +16 -5
- package/dist/contracts/release_description/release_description.d.ts.map +1 -1
- package/dist/contracts/release_description/release_description.js +9 -4
- package/dist/contracts/release_description/release_description.js.map +1 -1
- package/dist/contracts/release_dsp_link/release_dsp_link.d.ts +130 -160
- package/dist/contracts/release_dsp_link/release_dsp_link.d.ts.map +1 -1
- package/dist/contracts/release_dsp_link/release_dsp_link.js +74 -19
- package/dist/contracts/release_dsp_link/release_dsp_link.js.map +1 -1
- package/dist/contracts/release_genre/release_genre.d.ts +66 -11
- package/dist/contracts/release_genre/release_genre.d.ts.map +1 -1
- package/dist/contracts/release_genre/release_genre.js +52 -11
- package/dist/contracts/release_genre/release_genre.js.map +1 -1
- package/dist/contracts/release_kind/release_kind.d.ts +28 -5
- package/dist/contracts/release_kind/release_kind.d.ts.map +1 -1
- package/dist/contracts/release_kind/release_kind.js +19 -4
- package/dist/contracts/release_kind/release_kind.js.map +1 -1
- package/dist/contracts/release_revenue_distributor/release_revenue_distributor.d.ts +17 -0
- package/dist/contracts/release_revenue_distributor/release_revenue_distributor.d.ts.map +1 -1
- package/dist/contracts/release_revenue_distributor/release_revenue_distributor.js +15 -0
- package/dist/contracts/release_revenue_distributor/release_revenue_distributor.js.map +1 -1
- package/dist/contracts/release_revenue_distributor_plugin/release_revenue_distributor_plugin.d.ts +37 -1
- package/dist/contracts/release_revenue_distributor_plugin/release_revenue_distributor_plugin.d.ts.map +1 -1
- package/dist/contracts/release_revenue_distributor_plugin/release_revenue_distributor_plugin.js +37 -1
- package/dist/contracts/release_revenue_distributor_plugin/release_revenue_distributor_plugin.js.map +1 -1
- package/dist/contracts/routed_stake/routed_stake.d.ts +78 -6
- package/dist/contracts/routed_stake/routed_stake.d.ts.map +1 -1
- package/dist/contracts/routed_stake/routed_stake.js +79 -7
- package/dist/contracts/routed_stake/routed_stake.js.map +1 -1
- package/dist/contracts/royalty_pool/pool.d.ts +117 -27
- package/dist/contracts/royalty_pool/pool.d.ts.map +1 -1
- package/dist/contracts/royalty_pool/pool.js +117 -28
- package/dist/contracts/royalty_pool/pool.js.map +1 -1
- package/dist/contracts/royalty_pool/stake.d.ts +3 -0
- package/dist/contracts/royalty_pool/stake.d.ts.map +1 -1
- package/dist/contracts/royalty_pool/stake.js +5 -2
- package/dist/contracts/royalty_pool/stake.js.map +1 -1
- package/dist/contracts/share/share.d.ts +80 -0
- package/dist/contracts/share/share.d.ts.map +1 -0
- package/dist/contracts/share/share.js +72 -0
- package/dist/contracts/share/share.js.map +1 -0
- package/dist/contracts/vault/vault.d.ts +51 -0
- package/dist/contracts/vault/vault.d.ts.map +1 -1
- package/dist/contracts/vault/vault.js +55 -4
- package/dist/contracts/vault/vault.js.map +1 -1
- package/dist/contracts.d.ts +60 -0
- package/dist/contracts.d.ts.map +1 -1
- package/dist/contracts.js +17 -0
- package/dist/contracts.js.map +1 -1
- package/dist/cover.d.ts +5 -6
- package/dist/cover.d.ts.map +1 -1
- package/dist/cover.js +10 -10
- package/dist/cover.js.map +1 -1
- package/dist/credits.d.ts +12 -13
- package/dist/credits.d.ts.map +1 -1
- package/dist/credits.js +16 -10
- package/dist/credits.js.map +1 -1
- package/dist/deployments.d.ts +3 -3
- package/dist/deployments.d.ts.map +1 -1
- package/dist/deployments.js +2 -3
- package/dist/deployments.js.map +1 -1
- package/dist/errors.d.ts +24 -9
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +43 -16
- package/dist/errors.js.map +1 -1
- package/dist/events.d.ts +1687 -835
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +258 -39
- package/dist/events.js.map +1 -1
- package/dist/genre.d.ts +11 -12
- package/dist/genre.d.ts.map +1 -1
- package/dist/genre.js +5 -3
- package/dist/genre.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/packages.d.ts +1047 -1695
- package/dist/packages.d.ts.map +1 -1
- package/dist/party/client.d.ts +113 -296
- package/dist/party/client.d.ts.map +1 -1
- package/dist/party/client.js +93 -178
- package/dist/party/client.js.map +1 -1
- package/dist/party/extensions/ctas.d.ts +3 -3
- package/dist/party/extensions/ctas.d.ts.map +1 -1
- package/dist/party/extensions/genres.d.ts +4 -4
- package/dist/party/extensions/genres.d.ts.map +1 -1
- package/dist/party/extensions/links.d.ts +5 -5
- package/dist/party/extensions/links.d.ts.map +1 -1
- package/dist/party/extensions/links.js.map +1 -1
- package/dist/party/extensions/media.d.ts +3 -3
- package/dist/party/extensions/media.d.ts.map +1 -1
- package/dist/party/extensions/profile.d.ts +3 -3
- package/dist/party/extensions/profile.d.ts.map +1 -1
- package/dist/party/extensions/roles.d.ts +4 -4
- package/dist/party/extensions/roles.d.ts.map +1 -1
- package/dist/party/extensions/roles.js.map +1 -1
- package/dist/party/extensions/tags.d.ts +4 -4
- package/dist/party/extensions/tags.d.ts.map +1 -1
- package/dist/party/index.d.ts +1 -1
- package/dist/party/index.d.ts.map +1 -1
- package/dist/party/index.js.map +1 -1
- package/dist/party/queries.d.ts +8 -8
- package/dist/party/queries.d.ts.map +1 -1
- package/dist/party/queries.js +83 -56
- package/dist/party/queries.js.map +1 -1
- package/dist/pressing.d.ts +13 -15
- package/dist/pressing.d.ts.map +1 -1
- package/dist/pressing.js +99 -29
- package/dist/pressing.js.map +1 -1
- package/dist/publication.d.ts +13 -6
- package/dist/publication.d.ts.map +1 -1
- package/dist/publication.js +26 -21
- package/dist/publication.js.map +1 -1
- package/dist/queries.js +3 -3
- package/dist/queries.js.map +1 -1
- package/dist/read/artist.d.ts +4 -3
- package/dist/read/artist.d.ts.map +1 -1
- package/dist/read/artist.js +24 -8
- package/dist/read/artist.js.map +1 -1
- package/dist/read/catalog.d.ts +17 -16
- package/dist/read/catalog.d.ts.map +1 -1
- package/dist/read/catalog.js +25 -11
- package/dist/read/catalog.js.map +1 -1
- package/dist/read/client.d.ts +41 -20
- package/dist/read/client.d.ts.map +1 -1
- package/dist/read/client.js +20 -12
- package/dist/read/client.js.map +1 -1
- package/dist/read/config.d.ts +25 -3
- package/dist/read/config.d.ts.map +1 -1
- package/dist/read/config.js +42 -25
- package/dist/read/config.js.map +1 -1
- package/dist/read/genres.d.ts +8 -3
- package/dist/read/genres.d.ts.map +1 -1
- package/dist/read/genres.js +23 -17
- package/dist/read/genres.js.map +1 -1
- package/dist/read/index.d.ts +1 -1
- package/dist/read/index.d.ts.map +1 -1
- package/dist/read/index.js +8 -6
- package/dist/read/index.js.map +1 -1
- package/dist/read/receipts.d.ts +5 -4
- package/dist/read/receipts.d.ts.map +1 -1
- package/dist/read/receipts.js +94 -46
- package/dist/read/receipts.js.map +1 -1
- package/dist/read/royalties.d.ts +6 -5
- package/dist/read/royalties.d.ts.map +1 -1
- package/dist/read/royalties.js +16 -9
- package/dist/read/royalties.js.map +1 -1
- package/dist/read/wallet.d.ts +23 -12
- package/dist/read/wallet.d.ts.map +1 -1
- package/dist/read/wallet.js +158 -177
- package/dist/read/wallet.js.map +1 -1
- package/dist/read/works.d.ts +6 -6
- package/dist/read/works.d.ts.map +1 -1
- package/dist/read/works.js +40 -26
- package/dist/read/works.js.map +1 -1
- package/dist/recording-extensions.d.ts +15 -16
- package/dist/recording-extensions.d.ts.map +1 -1
- package/dist/recording-extensions.js +12 -8
- package/dist/recording-extensions.js.map +1 -1
- package/dist/release-extensions.d.ts +5 -6
- package/dist/release-extensions.d.ts.map +1 -1
- package/dist/release-extensions.js +3 -2
- package/dist/release-extensions.js.map +1 -1
- package/dist/release-graph.d.ts +2 -2
- package/dist/release-graph.d.ts.map +1 -1
- package/dist/release-graph.js.map +1 -1
- package/dist/royalty.d.ts +4 -4
- package/dist/royalty.d.ts.map +1 -1
- package/dist/royalty.js +16 -7
- package/dist/royalty.js.map +1 -1
- package/dist/share.d.ts +58 -24
- package/dist/share.d.ts.map +1 -1
- package/dist/share.js +167 -92
- package/dist/share.js.map +1 -1
- package/dist/transactions.d.ts +15 -6
- package/dist/transactions.d.ts.map +1 -1
- package/dist/transactions.js +1 -0
- package/dist/transactions.js.map +1 -1
- package/dist/vault.d.ts +13 -3
- package/dist/vault.d.ts.map +1 -1
- package/dist/vault.js +22 -16
- package/dist/vault.js.map +1 -1
- package/package.json +9 -8
- package/src/Miso.ts +951 -0
- package/src/auth.ts +16 -3
- package/src/catalog.ts +58 -25
- package/src/client.ts +98 -1359
- package/src/contracts/composition_credits/composition_credits.ts +20 -4
- package/src/contracts/composition_routed_stake/composition_routed_stake.ts +67 -1
- package/src/contracts/composition_royalty_pool/composition_royalty_pool.ts +53 -4
- package/src/contracts/composition_royalty_pool_plugin/composition_royalty_pool_plugin.ts +64 -1
- package/src/contracts/genre/genre.ts +8 -1
- package/src/contracts/miso_pay/pay.ts +356 -0
- package/src/contracts/party_cta/party_cta.ts +27 -5
- package/src/contracts/party_genre/party_genre.ts +14 -3
- package/src/contracts/party_media/party_media.ts +20 -4
- package/src/contracts/party_platform_link/party_platform_link.ts +15 -7
- package/src/contracts/party_profile/party_profile.ts +33 -8
- package/src/contracts/party_roles/party_roles.ts +19 -4
- package/src/contracts/party_tags/party_tags.ts +16 -4
- package/src/contracts/party_wallet/party_wallet.ts +2 -1
- package/src/contracts/platform_link/platform_link.ts +322 -0
- package/src/contracts/record/pressing.ts +50 -4
- package/src/contracts/record/record.ts +15 -1
- package/src/contracts/record_shop/listing.ts +76 -13
- package/src/contracts/recording_advisory/recording_advisory.ts +15 -8
- package/src/contracts/recording_credits/recording_credits.ts +63 -12
- package/src/contracts/recording_engine_session/recording_engine_session.ts +19 -4
- package/src/contracts/recording_genre/recording_genre.ts +53 -9
- package/src/contracts/recording_language/recording_language.ts +18 -5
- package/src/contracts/recording_master_reference/recording_master_reference.ts +18 -5
- package/src/contracts/recording_royalty_pool/recording_royalty_pool.ts +56 -4
- package/src/contracts/recording_royalty_pool_plugin/recording_royalty_pool_plugin.ts +67 -1
- package/src/contracts/recording_streaming_transcode/recording_streaming_transcode.ts +11 -4
- package/src/contracts/release_cover_art/release_cover_art.ts +126 -10
- package/src/contracts/release_credits/release_credits.ts +18 -4
- package/src/contracts/release_description/release_description.ts +9 -4
- package/src/contracts/release_dsp_link/release_dsp_link.ts +74 -19
- package/src/contracts/release_genre/release_genre.ts +52 -11
- package/src/contracts/release_kind/release_kind.ts +19 -4
- package/src/contracts/release_revenue_distributor/release_revenue_distributor.ts +15 -0
- package/src/contracts/release_revenue_distributor_plugin/release_revenue_distributor_plugin.ts +38 -1
- package/src/contracts/routed_stake/routed_stake.ts +79 -7
- package/src/contracts/royalty_pool/pool.ts +140 -38
- package/src/contracts/royalty_pool/stake.ts +5 -2
- package/src/contracts/share/share.ts +97 -0
- package/src/contracts/vault/vault.ts +55 -4
- package/src/contracts.ts +18 -0
- package/src/cover.ts +14 -15
- package/src/credits.ts +27 -22
- package/src/deployments.ts +3 -4
- package/src/errors.ts +64 -34
- package/src/events.ts +260 -39
- package/src/genre.ts +15 -14
- package/src/index.ts +19 -10
- package/src/party/client.ts +217 -208
- package/src/party/extensions/ctas.ts +3 -3
- package/src/party/extensions/genres.ts +4 -4
- package/src/party/extensions/links.ts +7 -7
- package/src/party/extensions/media.ts +3 -3
- package/src/party/extensions/profile.ts +3 -3
- package/src/party/extensions/roles.ts +5 -5
- package/src/party/extensions/tags.ts +4 -4
- package/src/party/index.ts +0 -1
- package/src/party/queries.ts +90 -87
- package/src/pressing.ts +132 -89
- package/src/publication.ts +33 -32
- package/src/queries.ts +3 -3
- package/src/read/artist.ts +36 -17
- package/src/read/catalog.ts +68 -36
- package/src/read/client.ts +55 -30
- package/src/read/config.ts +55 -30
- package/src/read/genres.ts +22 -18
- package/src/read/index.ts +8 -6
- package/src/read/receipts.ts +130 -67
- package/src/read/royalties.ts +22 -10
- package/src/read/wallet.ts +226 -216
- package/src/read/works.ts +51 -44
- package/src/recording-extensions.ts +27 -24
- package/src/release-extensions.ts +7 -7
- package/src/release-graph.ts +2 -1
- package/src/royalty.ts +19 -25
- package/src/share.ts +197 -128
- package/src/transactions.ts +15 -8
- package/src/vault.ts +24 -31
- package/dist/contracts/record_shop/deps/std/type_name.d.ts.map +0 -1
- package/dist/contracts/record_shop/deps/std/type_name.js.map +0 -1
- package/dist/contracts/recording_language/deps/language_code/language_code.d.ts +0 -6
- package/dist/contracts/recording_language/deps/language_code/language_code.d.ts.map +0 -1
- package/dist/contracts/recording_language/deps/language_code/language_code.js +0 -8
- package/dist/contracts/recording_language/deps/language_code/language_code.js.map +0 -1
- package/dist/contracts/recording_master_reference/deps/ori/confidentiality.d.ts +0 -24
- package/dist/contracts/recording_master_reference/deps/ori/confidentiality.d.ts.map +0 -1
- package/dist/contracts/recording_master_reference/deps/ori/confidentiality.js +0 -24
- package/dist/contracts/recording_master_reference/deps/ori/confidentiality.js.map +0 -1
- package/dist/contracts/recording_master_reference/deps/ori/data.d.ts +0 -16
- package/dist/contracts/recording_master_reference/deps/ori/data.d.ts.map +0 -1
- package/dist/contracts/recording_master_reference/deps/ori/data.js +0 -12
- package/dist/contracts/recording_master_reference/deps/ori/data.js.map +0 -1
- package/dist/execute.d.ts +0 -32
- package/dist/execute.d.ts.map +0 -1
- package/dist/execute.js +0 -36
- package/dist/execute.js.map +0 -1
- package/src/contracts/recording_language/deps/language_code/language_code.ts +0 -8
- package/src/contracts/recording_master_reference/deps/ori/confidentiality.ts +0 -24
- package/src/contracts/recording_master_reference/deps/ori/data.ts +0 -12
- package/src/execute.ts +0 -56
- /package/dist/contracts/{record_shop → miso_pay}/deps/std/type_name.d.ts +0 -0
- /package/dist/contracts/{record_shop → miso_pay}/deps/std/type_name.js +0 -0
- /package/src/contracts/{record_shop → miso_pay}/deps/std/type_name.ts +0 -0
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
* This one module serves every platform (social, music, anything) because it is
|
|
11
11
|
* generic over `Data`; the payload types live in their own small packages
|
|
12
12
|
* (`party_social`, `party_music`, …). All writes are gated by the `PartyAdminCap`
|
|
13
|
-
* via `uid_mut`; views are permissionless.
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
13
|
+
* via `uid_mut`; views are permissionless. Storage mutations emit the
|
|
14
|
+
* authoritative rich `platform_link::PlatformLinkSetEvent` or
|
|
15
|
+
* `platform_link::PlatformLinkRemovedEvent` from the primitive, so the event
|
|
16
|
+
* carries the parent, defining-ID-qualified payload type, existence transition,
|
|
17
|
+
* and bounded payload summaries. This module adds no replacement event.
|
|
18
18
|
*/
|
|
19
19
|
import { MoveStruct, type RawTransactionArgument } from '../utils/index.ts';
|
|
20
20
|
import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
|
|
@@ -40,7 +40,11 @@ export interface SetLinkOptions {
|
|
|
40
40
|
string
|
|
41
41
|
];
|
|
42
42
|
}
|
|
43
|
-
/**
|
|
43
|
+
/**
|
|
44
|
+
* Sets (or replaces) a platform's link on the party. The primitive emits one
|
|
45
|
+
* `PlatformLinkSetEvent<Data>` for every successful call, including an equal
|
|
46
|
+
* replacement.
|
|
47
|
+
*/
|
|
44
48
|
export declare function setLink(options: SetLinkOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
45
49
|
export interface ClearLinkArguments {
|
|
46
50
|
self: RawTransactionArgument<string>;
|
|
@@ -56,7 +60,11 @@ export interface ClearLinkOptions {
|
|
|
56
60
|
string
|
|
57
61
|
];
|
|
58
62
|
}
|
|
59
|
-
/**
|
|
63
|
+
/**
|
|
64
|
+
* Clears a platform's link from the party. Cap authorization is checked before the
|
|
65
|
+
* existence check. A present link delegates to the primitive, which emits one
|
|
66
|
+
* `PlatformLinkRemovedEvent<Data>`; absent and repeated clears are silent.
|
|
67
|
+
*/
|
|
60
68
|
export declare function clearLink(options: ClearLinkOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
61
69
|
export interface HasLinkArguments {
|
|
62
70
|
self: RawTransactionArgument<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"party_platform_link.d.ts","sourceRoot":"","sources":["../../../src/contracts/party_platform_link/party_platform_link.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAA0B,KAAK,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAGpG,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEtF,eAAO,MAAM,YAAY;;qFAEjB,CAAC;AACT,eAAO,MAAM,gBAAgB;;yFAErB,CAAC;AACT,MAAM,WAAW,gBAAgB;IAC7B,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;IACrC,GAAG,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;IACpC,IAAI,EAAE,mBAAmB,CAAC;CAC7B;AACD,MAAM,WAAW,cAAc;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,gBAAgB,GAAG;QAC1B,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;QACpC,GAAG,EAAE,sBAAsB,CAAC,MAAM,CAAC;QACnC,IAAI,EAAE,mBAAmB;KAC5B,CAAC;IACF,aAAa,EAAE;QACX,MAAM;KACT,CAAC;CACL;AACD
|
|
1
|
+
{"version":3,"file":"party_platform_link.d.ts","sourceRoot":"","sources":["../../../src/contracts/party_platform_link/party_platform_link.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAA0B,KAAK,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAGpG,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,mBAAmB,EAAE,MAAM,0BAA0B,CAAC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B,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;KACvC,CAAC;IACF,aAAa,EAAE;QACX,MAAM;KACT,CAAC;CACL;AACD,sDAAsD;AACtD,wBAAgB,OAAO,CAAC,OAAO,EAAE,cAAc,QAM/B,WAAW,0DAO1B;AACD,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;CACxC;AACD,MAAM,WAAW,WAAW;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,aAAa,GAAG;QACvB,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;KACvC,CAAC;IACF,aAAa,EAAE;QACX,MAAM;KACT,CAAC;CACL;AACD,kDAAkD;AAClD,wBAAgB,IAAI,CAAC,OAAO,EAAE,WAAW,QAMzB,WAAW,0DAO1B"}
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
* This one module serves every platform (social, music, anything) because it is
|
|
11
11
|
* generic over `Data`; the payload types live in their own small packages
|
|
12
12
|
* (`party_social`, `party_music`, …). All writes are gated by the `PartyAdminCap`
|
|
13
|
-
* via `uid_mut`; views are permissionless.
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
13
|
+
* via `uid_mut`; views are permissionless. Storage mutations emit the
|
|
14
|
+
* authoritative rich `platform_link::PlatformLinkSetEvent` or
|
|
15
|
+
* `platform_link::PlatformLinkRemovedEvent` from the primitive, so the event
|
|
16
|
+
* carries the parent, defining-ID-qualified payload type, existence transition,
|
|
17
|
+
* and bounded payload summaries. This module adds no replacement event.
|
|
18
18
|
*/
|
|
19
19
|
import { MoveStruct, normalizeMoveArguments } from '../utils/index.js';
|
|
20
20
|
import { bcs } from '@mysten/sui/bcs';
|
|
@@ -26,7 +26,11 @@ export const LinkSetEvent = new MoveStruct({ name: `${$moduleName}::LinkSetEvent
|
|
|
26
26
|
export const LinkClearedEvent = new MoveStruct({ name: `${$moduleName}::LinkClearedEvent<phantom Data>`, fields: {
|
|
27
27
|
party_id: bcs.Address
|
|
28
28
|
} });
|
|
29
|
-
/**
|
|
29
|
+
/**
|
|
30
|
+
* Sets (or replaces) a platform's link on the party. The primitive emits one
|
|
31
|
+
* `PlatformLinkSetEvent<Data>` for every successful call, including an equal
|
|
32
|
+
* replacement.
|
|
33
|
+
*/
|
|
30
34
|
export function setLink(options) {
|
|
31
35
|
const packageAddress = options.package ?? '@local-pkg/party_platform_link';
|
|
32
36
|
const argumentsTypes = [
|
|
@@ -43,7 +47,11 @@ export function setLink(options) {
|
|
|
43
47
|
typeArguments: options.typeArguments
|
|
44
48
|
});
|
|
45
49
|
}
|
|
46
|
-
/**
|
|
50
|
+
/**
|
|
51
|
+
* Clears a platform's link from the party. Cap authorization is checked before the
|
|
52
|
+
* existence check. A present link delegates to the primitive, which emits one
|
|
53
|
+
* `PlatformLinkRemovedEvent<Data>`; absent and repeated clears are silent.
|
|
54
|
+
*/
|
|
47
55
|
export function clearLink(options) {
|
|
48
56
|
const packageAddress = options.package ?? '@local-pkg/party_platform_link';
|
|
49
57
|
const argumentsTypes = [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"party_platform_link.js","sourceRoot":"","sources":["../../../src/contracts/party_platform_link/party_platform_link.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,sBAAsB,EAA+B,MAAM,mBAAmB,CAAC;AACpG,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAEtC,OAAO,EAA8C,MAAM,0BAA0B,CAAC;AACtF,MAAM,WAAW,GAAG,qDAAqD,CAAC;AAC1E,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,8BAA8B,EAAE,MAAM,EAAE;QACjG,QAAQ,EAAE,GAAG,CAAC,OAAO;KACxB,EAAE,CAAC,CAAC;AACT,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,kCAAkC,EAAE,MAAM,EAAE;QACzG,QAAQ,EAAE,GAAG,CAAC,OAAO;KACxB,EAAE,CAAC,CAAC;AAiBT
|
|
1
|
+
{"version":3,"file":"party_platform_link.js","sourceRoot":"","sources":["../../../src/contracts/party_platform_link/party_platform_link.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,sBAAsB,EAA+B,MAAM,mBAAmB,CAAC;AACpG,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAEtC,OAAO,EAA8C,MAAM,0BAA0B,CAAC;AACtF,MAAM,WAAW,GAAG,qDAAqD,CAAC;AAC1E,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,8BAA8B,EAAE,MAAM,EAAE;QACjG,QAAQ,EAAE,GAAG,CAAC,OAAO;KACxB,EAAE,CAAC,CAAC;AACT,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,kCAAkC,EAAE,MAAM,EAAE;QACzG,QAAQ,EAAE,GAAG,CAAC,OAAO;KACxB,EAAE,CAAC,CAAC;AAiBT;;;;GAIG;AACH,MAAM,UAAU,OAAO,CAAC,OAAuB;IAC3C,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,IAAI,gCAAgC,CAAC;IAC3E,MAAM,cAAc,GAAG;QACnB,IAAI;QACJ,IAAI;QACJ,IAAI;KACqB,CAAC;IAC9B,MAAM,cAAc,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;IAC/C,OAAO,CAAC,EAAe,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC;QACpC,OAAO,EAAE,cAAc;QACvB,MAAM,EAAE,qBA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AM,UAAU,IAAI,CAAC,OAAoB;IACrC,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,IAAI,gCAAgC,CAAC;IAC3E,MAAM,cAAc,GAAG;QACnB,IAAI;KACqB,CAAC;IAC9B,MAAM,cAAc,GAAG,CAAC,MAAM,CAAC,CAAC;IAChC,OAAO,CAAC,EAAe,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC;QACpC,OAAO,EAAE,cAAc;QACvB,MAAM,EAAE,qBAAqB;QAC7B,QAAQ,EAAE,MAAM;QAChB,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;QACpF,aAAa,EAAE,OAAO,CAAC,aAAa;KACvC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -12,7 +12,10 @@
|
|
|
12
12
|
* validated code primitives (`country_code`, `language_code`), so a stored value
|
|
13
13
|
* is always a real code. The party's `name` is NOT duplicated here — it lives on
|
|
14
14
|
* the core `Party` (`party::set_name`) — and the join date comes from the party's
|
|
15
|
-
* creation event (the indexer has it for free).
|
|
15
|
+
* creation event (the indexer has it for free). Every successful set emits a
|
|
16
|
+
* complete before/after byte snapshot and the authorizing cap address; a clear
|
|
17
|
+
* emits the complete removed snapshot only when a profile exists. All writes are
|
|
18
|
+
* cap-gated through `party::uid_mut`, and views are permissionless.
|
|
16
19
|
*/
|
|
17
20
|
import { MoveTuple, MoveStruct, type RawTransactionArgument } from '../utils/index.ts';
|
|
18
21
|
import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
|
|
@@ -25,12 +28,57 @@ export declare const Profile: MoveStruct<{
|
|
|
25
28
|
length: number;
|
|
26
29
|
}, string>;
|
|
27
30
|
}, "@local-pkg/party_profile::party_profile::Profile">;
|
|
28
|
-
export declare const
|
|
31
|
+
export declare const PartyProfileSetEvent: MoveStruct<{
|
|
29
32
|
party_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
30
|
-
|
|
31
|
-
|
|
33
|
+
admin_cap_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
34
|
+
had_profile: import("@mysten/bcs").BcsType<boolean, boolean, "bool">;
|
|
35
|
+
previous_bio_short: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
36
|
+
length: number;
|
|
37
|
+
}, string>;
|
|
38
|
+
previous_bio_long: import("@mysten/bcs").BcsType<number[] | null, (Iterable<number> & {
|
|
39
|
+
length: number;
|
|
40
|
+
}) | null | undefined, "Option<vector<u8>>">;
|
|
41
|
+
previous_country: import("@mysten/bcs").BcsType<number[] | null, (Iterable<number> & {
|
|
42
|
+
length: number;
|
|
43
|
+
}) | null | undefined, "Option<vector<u8>>">;
|
|
44
|
+
previous_languages: import("@mysten/bcs").BcsType<number[][], Iterable<Iterable<number> & {
|
|
45
|
+
length: number;
|
|
46
|
+
}> & {
|
|
47
|
+
length: number;
|
|
48
|
+
}, string>;
|
|
49
|
+
bio_short: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
50
|
+
length: number;
|
|
51
|
+
}, string>;
|
|
52
|
+
bio_long: import("@mysten/bcs").BcsType<number[] | null, (Iterable<number> & {
|
|
53
|
+
length: number;
|
|
54
|
+
}) | null | undefined, "Option<vector<u8>>">;
|
|
55
|
+
country: import("@mysten/bcs").BcsType<number[] | null, (Iterable<number> & {
|
|
56
|
+
length: number;
|
|
57
|
+
}) | null | undefined, "Option<vector<u8>>">;
|
|
58
|
+
languages: import("@mysten/bcs").BcsType<number[][], Iterable<Iterable<number> & {
|
|
59
|
+
length: number;
|
|
60
|
+
}> & {
|
|
61
|
+
length: number;
|
|
62
|
+
}, string>;
|
|
63
|
+
}, "@local-pkg/party_profile::party_profile::PartyProfileSetEvent">;
|
|
64
|
+
export declare const PartyProfileClearedEvent: MoveStruct<{
|
|
32
65
|
party_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
33
|
-
|
|
66
|
+
admin_cap_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
67
|
+
previous_bio_short: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
68
|
+
length: number;
|
|
69
|
+
}, string>;
|
|
70
|
+
previous_bio_long: import("@mysten/bcs").BcsType<number[] | null, (Iterable<number> & {
|
|
71
|
+
length: number;
|
|
72
|
+
}) | null | undefined, "Option<vector<u8>>">;
|
|
73
|
+
previous_country: import("@mysten/bcs").BcsType<number[] | null, (Iterable<number> & {
|
|
74
|
+
length: number;
|
|
75
|
+
}) | null | undefined, "Option<vector<u8>>">;
|
|
76
|
+
previous_languages: import("@mysten/bcs").BcsType<number[][], Iterable<Iterable<number> & {
|
|
77
|
+
length: number;
|
|
78
|
+
}> & {
|
|
79
|
+
length: number;
|
|
80
|
+
}, string>;
|
|
81
|
+
}, "@local-pkg/party_profile::party_profile::PartyProfileClearedEvent">;
|
|
34
82
|
export interface SetProfileArguments {
|
|
35
83
|
self: RawTransactionArgument<string>;
|
|
36
84
|
cap: RawTransactionArgument<string>;
|
|
@@ -51,8 +99,11 @@ export interface SetProfileOptions {
|
|
|
51
99
|
];
|
|
52
100
|
}
|
|
53
101
|
/**
|
|
54
|
-
* Sets (creates or replaces) the party's whole profile.
|
|
55
|
-
*
|
|
102
|
+
* Sets (creates or replaces) the party's whole profile. Validation and profile
|
|
103
|
+
* construction happen before authorization, preserving validation precedence;
|
|
104
|
+
* authorization happens before any dynamic-field snapshot or mutation. Every
|
|
105
|
+
* successful call, including an identical replacement, emits exactly one event
|
|
106
|
+
* containing complete prior and resulting raw-byte snapshots.
|
|
56
107
|
*/
|
|
57
108
|
export declare function setProfile(options: SetProfileOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
58
109
|
export interface ClearProfileArguments {
|
|
@@ -66,7 +117,11 @@ export interface ClearProfileOptions {
|
|
|
66
117
|
cap: RawTransactionArgument<string>
|
|
67
118
|
];
|
|
68
119
|
}
|
|
69
|
-
/**
|
|
120
|
+
/**
|
|
121
|
+
* Removes the party's profile. Authorization happens before checking existence; an
|
|
122
|
+
* absent field is a silent no-op, while an existing field is removed and emits
|
|
123
|
+
* exactly one complete snapshot event.
|
|
124
|
+
*/
|
|
70
125
|
export declare function clearProfile(options: ClearProfileOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
71
126
|
export interface HasProfileArguments {
|
|
72
127
|
self: RawTransactionArgument<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"party_profile.d.ts","sourceRoot":"","sources":["../../../src/contracts/party_profile/party_profile.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE
|
|
1
|
+
{"version":3,"file":"party_profile.d.ts","sourceRoot":"","sources":["../../../src/contracts/party_profile/party_profile.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAA0B,KAAK,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAG/G,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAItF,eAAO,MAAM,UAAU,sIAA8E,CAAC;AACtG,eAAO,MAAM,OAAO;;;;;;;sDAKZ,CAAC;AACT,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mEAYzB,CAAC;AACT,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;uEAO7B,CAAC;AACT,MAAM,WAAW,mBAAmB;IAChC,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;IACrC,GAAG,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;IACpC,QAAQ,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;IACzC,OAAO,EAAE,sBAAsB,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC/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AgB;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,kBAAkB,GAAG;QAC5B,IAAI,EAAE,mBAAmB;KAC5B,CAAC;CACL;AACD,wBAAgB,SAAS,CAAC,OAAO,EAAE,gBAAgB,QAMnC,WAAW,0DAM1B"}
|
|
@@ -12,7 +12,10 @@
|
|
|
12
12
|
* validated code primitives (`country_code`, `language_code`), so a stored value
|
|
13
13
|
* is always a real code. The party's `name` is NOT duplicated here — it lives on
|
|
14
14
|
* the core `Party` (`party::set_name`) — and the join date comes from the party's
|
|
15
|
-
* creation event (the indexer has it for free).
|
|
15
|
+
* creation event (the indexer has it for free). Every successful set emits a
|
|
16
|
+
* complete before/after byte snapshot and the authorizing cap address; a clear
|
|
17
|
+
* emits the complete removed snapshot only when a profile exists. All writes are
|
|
18
|
+
* cap-gated through `party::uid_mut`, and views are permissionless.
|
|
16
19
|
*/
|
|
17
20
|
import { MoveTuple, MoveStruct, normalizeMoveArguments } from '../utils/index.js';
|
|
18
21
|
import { bcs } from '@mysten/sui/bcs';
|
|
@@ -27,15 +30,33 @@ export const Profile = new MoveStruct({ name: `${$moduleName}::Profile`, fields:
|
|
|
27
30
|
country: bcs.option(country_code.CountryCode),
|
|
28
31
|
languages: bcs.vector(language_code.LanguageCode)
|
|
29
32
|
} });
|
|
30
|
-
export const
|
|
31
|
-
party_id: bcs.Address
|
|
33
|
+
export const PartyProfileSetEvent = new MoveStruct({ name: `${$moduleName}::PartyProfileSetEvent`, fields: {
|
|
34
|
+
party_id: bcs.Address,
|
|
35
|
+
admin_cap_id: bcs.Address,
|
|
36
|
+
had_profile: bcs.bool(),
|
|
37
|
+
previous_bio_short: bcs.vector(bcs.u8()),
|
|
38
|
+
previous_bio_long: bcs.option(bcs.vector(bcs.u8())),
|
|
39
|
+
previous_country: bcs.option(bcs.vector(bcs.u8())),
|
|
40
|
+
previous_languages: bcs.vector(bcs.vector(bcs.u8())),
|
|
41
|
+
bio_short: bcs.vector(bcs.u8()),
|
|
42
|
+
bio_long: bcs.option(bcs.vector(bcs.u8())),
|
|
43
|
+
country: bcs.option(bcs.vector(bcs.u8())),
|
|
44
|
+
languages: bcs.vector(bcs.vector(bcs.u8()))
|
|
32
45
|
} });
|
|
33
|
-
export const
|
|
34
|
-
party_id: bcs.Address
|
|
46
|
+
export const PartyProfileClearedEvent = new MoveStruct({ name: `${$moduleName}::PartyProfileClearedEvent`, fields: {
|
|
47
|
+
party_id: bcs.Address,
|
|
48
|
+
admin_cap_id: bcs.Address,
|
|
49
|
+
previous_bio_short: bcs.vector(bcs.u8()),
|
|
50
|
+
previous_bio_long: bcs.option(bcs.vector(bcs.u8())),
|
|
51
|
+
previous_country: bcs.option(bcs.vector(bcs.u8())),
|
|
52
|
+
previous_languages: bcs.vector(bcs.vector(bcs.u8()))
|
|
35
53
|
} });
|
|
36
54
|
/**
|
|
37
|
-
* Sets (creates or replaces) the party's whole profile.
|
|
38
|
-
*
|
|
55
|
+
* Sets (creates or replaces) the party's whole profile. Validation and profile
|
|
56
|
+
* construction happen before authorization, preserving validation precedence;
|
|
57
|
+
* authorization happens before any dynamic-field snapshot or mutation. Every
|
|
58
|
+
* successful call, including an identical replacement, emits exactly one event
|
|
59
|
+
* containing complete prior and resulting raw-byte snapshots.
|
|
39
60
|
*/
|
|
40
61
|
export function setProfile(options) {
|
|
41
62
|
const packageAddress = options.package ?? '@local-pkg/party_profile';
|
|
@@ -55,7 +76,11 @@ export function setProfile(options) {
|
|
|
55
76
|
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
56
77
|
});
|
|
57
78
|
}
|
|
58
|
-
/**
|
|
79
|
+
/**
|
|
80
|
+
* Removes the party's profile. Authorization happens before checking existence; an
|
|
81
|
+
* absent field is a silent no-op, while an existing field is removed and emits
|
|
82
|
+
* exactly one complete snapshot event.
|
|
83
|
+
*/
|
|
59
84
|
export function clearProfile(options) {
|
|
60
85
|
const packageAddress = options.package ?? '@local-pkg/party_profile';
|
|
61
86
|
const argumentsTypes = [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"party_profile.js","sourceRoot":"","sources":["../../../src/contracts/party_profile/party_profile.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE
|
|
1
|
+
{"version":3,"file":"party_profile.js","sourceRoot":"","sources":["../../../src/contracts/party_profile/party_profile.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,sBAAsB,EAA+B,MAAM,mBAAmB,CAAC;AAC/G,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAEtC,OAAO,EAA8C,MAAM,0BAA0B,CAAC;AACtF,OAAO,KAAK,YAAY,MAAM,qCAAqC,CAAC;AACpE,OAAO,KAAK,aAAa,MAAM,uCAAuC,CAAC;AACvE,MAAM,WAAW,GAAG,yCAAyC,CAAC;AAC9D,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,SAAS,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,cAAc,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC;AACtG,MAAM,CAAC,MAAM,OAAO,GAAG,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,WAAW,EAAE,MAAM,EAAE;QACzE,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE;QACvB,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC;QAClC,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,YAAY,CAAC,WAAW,CAAC;QAC7C,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,aAAa,CAAC,YAAY,CAAC;KACpD,EAAE,CAAC,CAAC;AACT,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,wBAAwB,EAAE,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c,GAAG,OAAO,CAAC,OAAO,IAAI,0BAA0B,CAAC;IACrE,MAAM,cAAc,GAAG;QACnB,IAAI;KACqB,CAAC;IAC9B,MAAM,cAAc,GAAG,CAAC,MAAM,CAAC,CAAC;IAChC,OAAO,CAAC,EAAe,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC;QACpC,OAAO,EAAE,cAAc;QACvB,MAAM,EAAE,eAAe;QACvB,QAAQ,EAAE,WAAW;QACrB,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;KACvF,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -12,21 +12,46 @@
|
|
|
12
12
|
* live in the shared `typed_set` primitive; this package keeps the role type, name
|
|
13
13
|
* validation, the capacity, and the typed events. Duplicate / not-present /
|
|
14
14
|
* over-max aborts come from `typed_set` with its own error codes. Gated by the
|
|
15
|
-
* `PartyAdminCap`; views are permissionless.
|
|
15
|
+
* `PartyAdminCap`; views are permissionless. Mutation events carry the party and
|
|
16
|
+
* cap addresses, a stable kind/name pair, and before/after counts; a populated
|
|
17
|
+
* clear also carries ordered removed role snapshots.
|
|
16
18
|
*/
|
|
17
19
|
import { MoveTuple, MoveStruct, MoveEnum, type RawTransactionArgument } from '../utils/index.ts';
|
|
18
20
|
import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
|
|
19
21
|
export declare const RolesKey: MoveTuple<readonly [import("@mysten/bcs").BcsType<boolean, boolean, "bool">], "@local-pkg/party_roles::party_roles::RolesKey">;
|
|
20
22
|
export declare const RoleAddedEvent: MoveStruct<{
|
|
21
23
|
party_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
22
|
-
|
|
24
|
+
admin_cap_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
25
|
+
role_kind: import("@mysten/bcs").BcsType<number, number, "u8">;
|
|
26
|
+
role_name: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
27
|
+
length: number;
|
|
28
|
+
}, string>;
|
|
29
|
+
roles_count_before: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
30
|
+
roles_count_after: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
23
31
|
}, "@local-pkg/party_roles::party_roles::RoleAddedEvent">;
|
|
24
32
|
export declare const RoleRemovedEvent: MoveStruct<{
|
|
25
33
|
party_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
26
|
-
|
|
34
|
+
admin_cap_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
35
|
+
role_kind: import("@mysten/bcs").BcsType<number, number, "u8">;
|
|
36
|
+
role_name: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
37
|
+
length: number;
|
|
38
|
+
}, string>;
|
|
39
|
+
roles_count_before: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
40
|
+
roles_count_after: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
27
41
|
}, "@local-pkg/party_roles::party_roles::RoleRemovedEvent">;
|
|
28
42
|
export declare const RolesClearedEvent: MoveStruct<{
|
|
29
43
|
party_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
44
|
+
admin_cap_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
45
|
+
removed_role_kinds: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
46
|
+
length: number;
|
|
47
|
+
}, string>;
|
|
48
|
+
removed_role_names: import("@mysten/bcs").BcsType<number[][], Iterable<Iterable<number> & {
|
|
49
|
+
length: number;
|
|
50
|
+
}> & {
|
|
51
|
+
length: number;
|
|
52
|
+
}, string>;
|
|
53
|
+
roles_count_before: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
54
|
+
roles_count_after: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
30
55
|
}, "@local-pkg/party_roles::party_roles::RolesClearedEvent">;
|
|
31
56
|
/** The kind of act a party represents. Closed enum + `Custom` escape hatch. */
|
|
32
57
|
export declare const ArtistRole: MoveEnum<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"party_roles.d.ts","sourceRoot":"","sources":["../../../src/contracts/party_roles/party_roles.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE
|
|
1
|
+
{"version":3,"file":"party_roles.d.ts","sourceRoot":"","sources":["../../../src/contracts/party_roles/party_roles.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAA0B,KAAK,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAGzH,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEtF,eAAO,MAAM,QAAQ,gIAA4E,CAAC;AAClG,eAAO,MAAM,cAAc;;;;;;;;;yDAOnB,CAAC;AACT,eAAO,MAAM,gBAAgB;;;;;;;;;2DAOrB,CAAC;AACT,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;4DAOtB,CAAC;AACT,+EAA+E;AAC/E,eAAO,MAAM,UAAU;;;;;;;;;IASf;;;OAGG;;qDAEH,CAAC;AACT,MAAM,WAAW,aAAa;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE;KACX,CAAC;CACL;AACD,wBAAgB,MAAM,CAAC,OAAO,GAAE,aAAkB,QAElC,WAAW,0DAK1B;AACD,MAAM,WAAW,eAAe;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE;KACX,CAAC;CACL;AACD,wBAAgB,QAAQ,CAAC,OAAO,GAAE,eAAoB,QAE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,cAAc;IAC3B,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;CACxC;AACD,MAAM,WAAW,YAAY;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,cAAc,GAAG;QACxB,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;KACvC,CAAC;CACL;AACD,yBAAyB;AACzB,wBAAgB,KAAK,CAAC,OAAO,EAAE,YAAY,QAM3B,WAAW,0DAM1B"}
|
|
@@ -12,7 +12,9 @@
|
|
|
12
12
|
* live in the shared `typed_set` primitive; this package keeps the role type, name
|
|
13
13
|
* validation, the capacity, and the typed events. Duplicate / not-present /
|
|
14
14
|
* over-max aborts come from `typed_set` with its own error codes. Gated by the
|
|
15
|
-
* `PartyAdminCap`; views are permissionless.
|
|
15
|
+
* `PartyAdminCap`; views are permissionless. Mutation events carry the party and
|
|
16
|
+
* cap addresses, a stable kind/name pair, and before/after counts; a populated
|
|
17
|
+
* clear also carries ordered removed role snapshots.
|
|
16
18
|
*/
|
|
17
19
|
import { MoveTuple, MoveStruct, MoveEnum, normalizeMoveArguments } from '../utils/index.js';
|
|
18
20
|
import { bcs } from '@mysten/sui/bcs';
|
|
@@ -21,14 +23,27 @@ const $moduleName = '@local-pkg/party_roles::party_roles';
|
|
|
21
23
|
export const RolesKey = new MoveTuple({ name: `${$moduleName}::RolesKey`, fields: [bcs.bool()] });
|
|
22
24
|
export const RoleAddedEvent = new MoveStruct({ name: `${$moduleName}::RoleAddedEvent`, fields: {
|
|
23
25
|
party_id: bcs.Address,
|
|
24
|
-
|
|
26
|
+
admin_cap_id: bcs.Address,
|
|
27
|
+
role_kind: bcs.u8(),
|
|
28
|
+
role_name: bcs.vector(bcs.u8()),
|
|
29
|
+
roles_count_before: bcs.u64(),
|
|
30
|
+
roles_count_after: bcs.u64()
|
|
25
31
|
} });
|
|
26
32
|
export const RoleRemovedEvent = new MoveStruct({ name: `${$moduleName}::RoleRemovedEvent`, fields: {
|
|
27
33
|
party_id: bcs.Address,
|
|
28
|
-
|
|
34
|
+
admin_cap_id: bcs.Address,
|
|
35
|
+
role_kind: bcs.u8(),
|
|
36
|
+
role_name: bcs.vector(bcs.u8()),
|
|
37
|
+
roles_count_before: bcs.u64(),
|
|
38
|
+
roles_count_after: bcs.u64()
|
|
29
39
|
} });
|
|
30
40
|
export const RolesClearedEvent = new MoveStruct({ name: `${$moduleName}::RolesClearedEvent`, fields: {
|
|
31
|
-
party_id: bcs.Address
|
|
41
|
+
party_id: bcs.Address,
|
|
42
|
+
admin_cap_id: bcs.Address,
|
|
43
|
+
removed_role_kinds: bcs.vector(bcs.u8()),
|
|
44
|
+
removed_role_names: bcs.vector(bcs.vector(bcs.u8())),
|
|
45
|
+
roles_count_before: bcs.u64(),
|
|
46
|
+
roles_count_after: bcs.u64()
|
|
32
47
|
} });
|
|
33
48
|
/** The kind of act a party represents. Closed enum + `Custom` escape hatch. */
|
|
34
49
|
export const ArtistRole = new MoveEnum({ name: `${$moduleName}::ArtistRole`, fields: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"party_roles.js","sourceRoot":"","sources":["../../../src/contracts/party_roles/party_roles.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE
|
|
1
|
+
{"version":3,"file":"party_roles.js","sourceRoot":"","sources":["../../../src/contracts/party_roles/party_roles.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,sBAAsB,EAA+B,MAAM,mBAAmB,CAAC;AACzH,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAEtC,OAAO,EAA8C,MAAM,0BAA0B,CAAC;AACtF,MAAM,WAAW,GAAG,qCAAqC,CAAC;AAC1D,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,SAAS,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,YAAY,EAAE,MAAM,EAAE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,CAAC;AACP,CAAC;AAUD,yBAAyB;AACzB,MAAM,UAAU,KAAK,CAAC,OAAqB;IACvC,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,IAAI,wBAAwB,CAAC;IACnE,MAAM,cAAc,GAAG;QACnB,IAAI;KACqB,CAAC;IAC9B,MAAM,cAAc,GAAG,CAAC,MAAM,CAAC,CAAC;IAChC,OAAO,CAAC,EAAe,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC;QACpC,OAAO,EAAE,cAAc;QACvB,MAAM,EAAE,aAAa;QACrB,QAAQ,EAAE,OAAO;QACjB,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;KACvF,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -12,21 +12,41 @@
|
|
|
12
12
|
* validation, the capacity, and the typed events. Duplicate / not-present /
|
|
13
13
|
* over-max aborts come from `typed_set` with its own error codes. Tags are stored
|
|
14
14
|
* as given (exact dedupe); normalization for search/display is a client concern.
|
|
15
|
-
* Gated by the `PartyAdminCap`; views are permissionless.
|
|
15
|
+
* Gated by the `PartyAdminCap`; views are permissionless. Mutation events carry
|
|
16
|
+
* the party and cap addresses, the raw tag bytes, and before/after counts; a
|
|
17
|
+
* populated clear also carries the ordered raw tag snapshots.
|
|
16
18
|
*/
|
|
17
19
|
import { MoveTuple, MoveStruct, type RawTransactionArgument } from '../utils/index.ts';
|
|
18
20
|
import { type Transaction } from '@mysten/sui/transactions';
|
|
19
21
|
export declare const TagsKey: MoveTuple<readonly [import("@mysten/bcs").BcsType<boolean, boolean, "bool">], "@local-pkg/party_tags::party_tags::TagsKey">;
|
|
20
22
|
export declare const TagAddedEvent: MoveStruct<{
|
|
21
23
|
party_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
22
|
-
|
|
24
|
+
admin_cap_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
25
|
+
tag: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
26
|
+
length: number;
|
|
27
|
+
}, string>;
|
|
28
|
+
tag_count_before: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
29
|
+
tag_count_after: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
23
30
|
}, "@local-pkg/party_tags::party_tags::TagAddedEvent">;
|
|
24
31
|
export declare const TagRemovedEvent: MoveStruct<{
|
|
25
32
|
party_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
26
|
-
|
|
33
|
+
admin_cap_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
34
|
+
tag: import("@mysten/bcs").BcsType<number[], Iterable<number> & {
|
|
35
|
+
length: number;
|
|
36
|
+
}, string>;
|
|
37
|
+
tag_count_before: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
38
|
+
tag_count_after: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
27
39
|
}, "@local-pkg/party_tags::party_tags::TagRemovedEvent">;
|
|
28
40
|
export declare const TagsClearedEvent: MoveStruct<{
|
|
29
41
|
party_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
42
|
+
admin_cap_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
43
|
+
removed_tags: import("@mysten/bcs").BcsType<number[][], Iterable<Iterable<number> & {
|
|
44
|
+
length: number;
|
|
45
|
+
}> & {
|
|
46
|
+
length: number;
|
|
47
|
+
}, string>;
|
|
48
|
+
tag_count_before: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
49
|
+
tag_count_after: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
30
50
|
}, "@local-pkg/party_tags::party_tags::TagsClearedEvent">;
|
|
31
51
|
export interface AddTagArguments {
|
|
32
52
|
self: RawTransactionArgument<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"party_tags.d.ts","sourceRoot":"","sources":["../../../src/contracts/party_tags/party_tags.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE
|
|
1
|
+
{"version":3,"file":"party_tags.d.ts","sourceRoot":"","sources":["../../../src/contracts/party_tags/party_tags.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAA0B,KAAK,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAG/G,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,eAAO,MAAM,OAAO,6HAA2E,CAAC;AAChG,eAAO,MAAM,aAAa;;;;;;;;sDAMlB,CAAC;AACT,eAAO,MAAM,eAAe;;;;;;;;wDAMpB,CAAC;AACT,eAAO,MAAM,gBAAgB;;;;;;;;;;yDAMrB,CAAC;AACT,MAAM,WAAW,eAAe;IAC5B,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;IACrC,GAAG,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;IACpC,GAAG,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;CACvC;AACD,MAAM,WAAW,aAAa;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,eAAe,GAAG;QACzB,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;QACpC,GAAG,EAAE,sBAAsB,CAAC,MAAM,CAAC;QACnC,GAAG,EAAE,sBAAsB,CAAC,MAAM,CAAC;KACtC,CAAC;CACL;AACD;;;GAGG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,aAAa,QAQ7B,WAAW,0DAM1B;AACD,MAAM,WAAW,kBAAkB;IAC/B,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;IACrC,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C,CAAC;IACrC,GAAG,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;CACvC;AACD,MAAM,WAAW,aAAa;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,eAAe,GAAG;QACzB,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;QACpC,GAAG,EAAE,sBAAsB,CAAC,MAAM,CAAC;KACtC,CAAC;CACL;AACD,+CAA+C;AAC/C,wBAAgB,MAAM,CAAC,OAAO,EAAE,aAAa,QAO7B,WAAW,0DAM1B;AACD,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;CACxC;AACD,MAAM,WAAW,WAAW;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,aAAa,GAAG;QACvB,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;KACvC,CAAC;CACL;AACD,wBAAwB;AACxB,wBAAgB,IAAI,CAAC,OAAO,EAAE,WAAW,QAMzB,WAAW,0DAM1B"}
|
|
@@ -12,7 +12,9 @@
|
|
|
12
12
|
* validation, the capacity, and the typed events. Duplicate / not-present /
|
|
13
13
|
* over-max aborts come from `typed_set` with its own error codes. Tags are stored
|
|
14
14
|
* as given (exact dedupe); normalization for search/display is a client concern.
|
|
15
|
-
* Gated by the `PartyAdminCap`; views are permissionless.
|
|
15
|
+
* Gated by the `PartyAdminCap`; views are permissionless. Mutation events carry
|
|
16
|
+
* the party and cap addresses, the raw tag bytes, and before/after counts; a
|
|
17
|
+
* populated clear also carries the ordered raw tag snapshots.
|
|
16
18
|
*/
|
|
17
19
|
import { MoveTuple, MoveStruct, normalizeMoveArguments } from '../utils/index.js';
|
|
18
20
|
import { bcs } from '@mysten/sui/bcs';
|
|
@@ -21,14 +23,24 @@ const $moduleName = '@local-pkg/party_tags::party_tags';
|
|
|
21
23
|
export const TagsKey = new MoveTuple({ name: `${$moduleName}::TagsKey`, fields: [bcs.bool()] });
|
|
22
24
|
export const TagAddedEvent = new MoveStruct({ name: `${$moduleName}::TagAddedEvent`, fields: {
|
|
23
25
|
party_id: bcs.Address,
|
|
24
|
-
|
|
26
|
+
admin_cap_id: bcs.Address,
|
|
27
|
+
tag: bcs.vector(bcs.u8()),
|
|
28
|
+
tag_count_before: bcs.u64(),
|
|
29
|
+
tag_count_after: bcs.u64()
|
|
25
30
|
} });
|
|
26
31
|
export const TagRemovedEvent = new MoveStruct({ name: `${$moduleName}::TagRemovedEvent`, fields: {
|
|
27
32
|
party_id: bcs.Address,
|
|
28
|
-
|
|
33
|
+
admin_cap_id: bcs.Address,
|
|
34
|
+
tag: bcs.vector(bcs.u8()),
|
|
35
|
+
tag_count_before: bcs.u64(),
|
|
36
|
+
tag_count_after: bcs.u64()
|
|
29
37
|
} });
|
|
30
38
|
export const TagsClearedEvent = new MoveStruct({ name: `${$moduleName}::TagsClearedEvent`, fields: {
|
|
31
|
-
party_id: bcs.Address
|
|
39
|
+
party_id: bcs.Address,
|
|
40
|
+
admin_cap_id: bcs.Address,
|
|
41
|
+
removed_tags: bcs.vector(bcs.vector(bcs.u8())),
|
|
42
|
+
tag_count_before: bcs.u64(),
|
|
43
|
+
tag_count_after: bcs.u64()
|
|
32
44
|
} });
|
|
33
45
|
/**
|
|
34
46
|
* Adds a tag to the party. Aborts if empty or too long here, and in `typed_set` if
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"party_tags.js","sourceRoot":"","sources":["../../../src/contracts/party_tags/party_tags.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE
|
|
1
|
+
{"version":3,"file":"party_tags.js","sourceRoot":"","sources":["../../../src/contracts/party_tags/party_tags.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,sBAAsB,EAA+B,MAAM,mBAAmB,CAAC;AAC/G,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB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