@misofm/sdk 0.16.0 → 0.17.1
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 +79 -34
- package/dist/client.d.ts +72 -24
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +229 -84
- package/dist/client.js.map +1 -1
- package/dist/contracts/composition_credits/composition_credits.d.ts +10 -10
- package/dist/contracts/composition_credits/composition_credits.d.ts.map +1 -1
- package/dist/contracts/composition_credits/composition_credits.js.map +1 -1
- package/dist/contracts/composition_credits/composition_party_role.d.ts +1 -1
- package/dist/contracts/composition_credits/composition_party_role.d.ts.map +1 -1
- package/dist/contracts/composition_credits/composition_party_role.js.map +1 -1
- package/dist/contracts/composition_credits/deps/miso_credit/credit.d.ts.map +1 -1
- package/dist/contracts/composition_credits/deps/miso_credit/credit.js.map +1 -1
- package/dist/contracts/composition_credits/deps/sui/vec_map.d.ts.map +1 -1
- package/dist/contracts/composition_credits/deps/sui/vec_map.js.map +1 -1
- package/dist/contracts/composition_routed_stake/composition_routed_stake.d.ts +29 -93
- package/dist/contracts/composition_routed_stake/composition_routed_stake.d.ts.map +1 -1
- package/dist/contracts/composition_routed_stake/composition_routed_stake.js +19 -79
- package/dist/contracts/composition_routed_stake/composition_routed_stake.js.map +1 -1
- package/dist/contracts/composition_royalty_pool/composition_royalty_pool.d.ts +15 -99
- package/dist/contracts/composition_royalty_pool/composition_royalty_pool.d.ts.map +1 -1
- package/dist/contracts/composition_royalty_pool/composition_royalty_pool.js +12 -94
- 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 +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/{party_wallet → composition_royalty_pool_plugin}/witness.d.ts +1 -1
- package/dist/contracts/composition_royalty_pool_plugin/witness.d.ts.map +1 -0
- package/dist/contracts/{recording_royalty_pool → composition_royalty_pool_plugin}/witness.js +1 -1
- package/dist/contracts/composition_royalty_pool_plugin/witness.js.map +1 -0
- package/dist/contracts/cover_art/cover_art.d.ts +4 -4
- package/dist/contracts/cover_art/cover_art.d.ts.map +1 -1
- package/dist/contracts/cover_art/cover_art.js.map +1 -1
- package/dist/contracts/cover_art/deps/ori/walrus_data.d.ts +4 -4
- package/dist/contracts/cover_art/deps/ori/walrus_data.d.ts.map +1 -1
- package/dist/contracts/cover_art/deps/ori/walrus_data.js.map +1 -1
- package/dist/contracts/genre/genre.d.ts +6 -6
- package/dist/contracts/genre/genre.d.ts.map +1 -1
- package/dist/contracts/genre/genre.js.map +1 -1
- package/dist/contracts/miso_record/deps/std/type_name.d.ts +1 -1
- package/dist/contracts/miso_record/deps/std/type_name.d.ts.map +1 -1
- package/dist/contracts/miso_record/deps/std/type_name.js.map +1 -1
- package/dist/contracts/miso_record/deps/sui/vec_set.d.ts.map +1 -1
- package/dist/contracts/miso_record/deps/sui/vec_set.js.map +1 -1
- package/dist/contracts/miso_record/pressing.d.ts.map +1 -1
- package/dist/contracts/miso_record/pressing.js.map +1 -1
- package/dist/contracts/miso_record/record.d.ts +17 -17
- package/dist/contracts/miso_record/record.d.ts.map +1 -1
- package/dist/contracts/miso_record/record.js.map +1 -1
- package/dist/contracts/miso_record_shop/deps/std/type_name.d.ts +1 -1
- package/dist/contracts/miso_record_shop/deps/std/type_name.d.ts.map +1 -1
- package/dist/contracts/miso_record_shop/deps/std/type_name.js.map +1 -1
- package/dist/contracts/miso_record_shop/listing.d.ts +29 -29
- package/dist/contracts/miso_record_shop/listing.d.ts.map +1 -1
- package/dist/contracts/miso_record_shop/listing.js.map +1 -1
- package/dist/contracts/miso_record_shop/witness.d.ts +1 -1
- package/dist/contracts/miso_record_shop/witness.d.ts.map +1 -1
- package/dist/contracts/miso_record_shop/witness.js.map +1 -1
- package/dist/contracts/party_wallet/party_wallet.d.ts +41 -168
- package/dist/contracts/party_wallet/party_wallet.d.ts.map +1 -1
- package/dist/contracts/party_wallet/party_wallet.js +27 -152
- package/dist/contracts/party_wallet/party_wallet.js.map +1 -1
- package/dist/contracts/recording_advisory/recording_advisory.d.ts +3 -3
- package/dist/contracts/recording_advisory/recording_advisory.d.ts.map +1 -1
- package/dist/contracts/recording_advisory/recording_advisory.js.map +1 -1
- package/dist/contracts/recording_credits/deps/miso_credit/credit.d.ts.map +1 -1
- package/dist/contracts/recording_credits/deps/miso_credit/credit.js.map +1 -1
- package/dist/contracts/recording_credits/deps/sui/vec_map.d.ts.map +1 -1
- package/dist/contracts/recording_credits/deps/sui/vec_map.js.map +1 -1
- package/dist/contracts/recording_credits/deps/sui/vec_set.d.ts.map +1 -1
- package/dist/contracts/recording_credits/deps/sui/vec_set.js.map +1 -1
- package/dist/contracts/recording_credits/recording_credits.d.ts +20 -20
- package/dist/contracts/recording_credits/recording_credits.d.ts.map +1 -1
- package/dist/contracts/recording_credits/recording_credits.js.map +1 -1
- package/dist/contracts/recording_credits/recording_party_role.d.ts +30 -30
- package/dist/contracts/recording_credits/recording_party_role.d.ts.map +1 -1
- package/dist/contracts/recording_credits/recording_party_role.js.map +1 -1
- package/dist/contracts/recording_language/deps/language_code/language_code.d.ts +1 -1
- package/dist/contracts/recording_language/deps/language_code/language_code.d.ts.map +1 -1
- package/dist/contracts/recording_language/deps/language_code/language_code.js.map +1 -1
- package/dist/contracts/recording_language/recording_language.d.ts +4 -4
- package/dist/contracts/recording_language/recording_language.d.ts.map +1 -1
- package/dist/contracts/recording_language/recording_language.js.map +1 -1
- package/dist/contracts/recording_master_reference/deps/ori/walrus_data.d.ts +4 -4
- package/dist/contracts/recording_master_reference/deps/ori/walrus_data.d.ts.map +1 -1
- package/dist/contracts/recording_master_reference/deps/ori/walrus_data.js.map +1 -1
- package/dist/contracts/recording_master_reference/recording_master_reference.d.ts +6 -6
- package/dist/contracts/recording_master_reference/recording_master_reference.d.ts.map +1 -1
- package/dist/contracts/recording_master_reference/recording_master_reference.js.map +1 -1
- package/dist/contracts/recording_preview/deps/ori/walrus_data.d.ts +4 -4
- package/dist/contracts/recording_preview/deps/ori/walrus_data.d.ts.map +1 -1
- package/dist/contracts/recording_preview/deps/ori/walrus_data.js.map +1 -1
- package/dist/contracts/recording_preview/recording_preview.d.ts +6 -6
- package/dist/contracts/recording_preview/recording_preview.d.ts.map +1 -1
- package/dist/contracts/recording_preview/recording_preview.js.map +1 -1
- package/dist/contracts/recording_royalty_pool/recording_royalty_pool.d.ts +14 -100
- package/dist/contracts/recording_royalty_pool/recording_royalty_pool.d.ts.map +1 -1
- package/dist/contracts/recording_royalty_pool/recording_royalty_pool.js +11 -94
- 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 +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/{composition_royalty_pool → recording_royalty_pool_plugin}/witness.d.ts +1 -1
- package/dist/contracts/recording_royalty_pool_plugin/witness.d.ts.map +1 -0
- package/dist/contracts/{party_wallet → recording_royalty_pool_plugin}/witness.js +1 -1
- package/dist/contracts/recording_royalty_pool_plugin/witness.js.map +1 -0
- package/dist/contracts/release_cover_art/deps/{0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78 → 0xf35cf353a62cef01084b51a9cf3da4c64c8724685ad1862f2f8284b71bd26c1a}/walrus_data.d.ts +7 -7
- package/dist/contracts/release_cover_art/deps/{0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78 → 0xf35cf353a62cef01084b51a9cf3da4c64c8724685ad1862f2f8284b71bd26c1a}/walrus_data.d.ts.map +1 -1
- package/dist/contracts/release_cover_art/deps/{0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78 → 0xf35cf353a62cef01084b51a9cf3da4c64c8724685ad1862f2f8284b71bd26c1a}/walrus_data.js +1 -1
- package/dist/contracts/release_cover_art/deps/{0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78 → 0xf35cf353a62cef01084b51a9cf3da4c64c8724685ad1862f2f8284b71bd26c1a}/walrus_data.js.map +1 -1
- package/dist/contracts/release_cover_art/deps/cover_art/cover_art.d.ts +7 -7
- package/dist/contracts/release_cover_art/deps/cover_art/cover_art.d.ts.map +1 -1
- package/dist/contracts/release_cover_art/deps/cover_art/cover_art.js +1 -1
- package/dist/contracts/release_cover_art/deps/cover_art/cover_art.js.map +1 -1
- package/dist/contracts/release_cover_art/deps/per_track/per_track.d.ts.map +1 -1
- package/dist/contracts/release_cover_art/deps/per_track/per_track.js.map +1 -1
- package/dist/contracts/release_cover_art/release_cover_art.d.ts +23 -23
- package/dist/contracts/release_cover_art/release_cover_art.d.ts.map +1 -1
- package/dist/contracts/release_cover_art/release_cover_art.js.map +1 -1
- package/dist/contracts/release_credits/deps/miso_credit/credit.d.ts.map +1 -1
- package/dist/contracts/release_credits/deps/miso_credit/credit.js.map +1 -1
- package/dist/contracts/release_credits/deps/sui/vec_map.d.ts.map +1 -1
- package/dist/contracts/release_credits/deps/sui/vec_map.js.map +1 -1
- package/dist/contracts/release_credits/release_credits.d.ts +10 -10
- package/dist/contracts/release_credits/release_credits.d.ts.map +1 -1
- package/dist/contracts/release_credits/release_credits.js.map +1 -1
- package/dist/contracts/release_description/release_description.d.ts +4 -4
- package/dist/contracts/release_description/release_description.d.ts.map +1 -1
- package/dist/contracts/release_description/release_description.js.map +1 -1
- package/dist/contracts/release_dsp_link/release_dsp_link.d.ts +41 -42
- package/dist/contracts/release_dsp_link/release_dsp_link.d.ts.map +1 -1
- package/dist/contracts/release_dsp_link/release_dsp_link.js +4 -5
- package/dist/contracts/release_dsp_link/release_dsp_link.js.map +1 -1
- package/dist/contracts/release_genre/deps/per_track/per_track.d.ts.map +1 -1
- package/dist/contracts/release_genre/deps/per_track/per_track.js.map +1 -1
- package/dist/contracts/release_genre/release_genre.d.ts +15 -15
- package/dist/contracts/release_genre/release_genre.d.ts.map +1 -1
- package/dist/contracts/release_genre/release_genre.js.map +1 -1
- package/dist/contracts/release_kind/release_kind.d.ts +4 -4
- package/dist/contracts/release_kind/release_kind.d.ts.map +1 -1
- package/dist/contracts/release_kind/release_kind.js.map +1 -1
- package/dist/contracts/release_revenue_distributor/release_revenue_distributor.d.ts +46 -59
- package/dist/contracts/release_revenue_distributor/release_revenue_distributor.d.ts.map +1 -1
- package/dist/contracts/release_revenue_distributor/release_revenue_distributor.js +27 -48
- 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 +75 -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/{recording_royalty_pool → release_revenue_distributor_plugin}/witness.d.ts +1 -1
- package/dist/contracts/release_revenue_distributor_plugin/witness.d.ts.map +1 -0
- package/dist/contracts/{composition_royalty_pool → release_revenue_distributor_plugin}/witness.js +1 -1
- package/dist/contracts/release_revenue_distributor_plugin/witness.js.map +1 -0
- package/dist/contracts/routed_stake/deps/royalty_pool/stake.d.ts +5 -5
- package/dist/contracts/routed_stake/deps/royalty_pool/stake.d.ts.map +1 -1
- package/dist/contracts/routed_stake/deps/royalty_pool/stake.js.map +1 -1
- package/dist/contracts/routed_stake/deps/std/type_name.d.ts +1 -1
- package/dist/contracts/routed_stake/deps/std/type_name.d.ts.map +1 -1
- package/dist/contracts/routed_stake/deps/std/type_name.js.map +1 -1
- package/dist/contracts/routed_stake/deps/sui/balance.d.ts +1 -1
- package/dist/contracts/routed_stake/deps/sui/balance.d.ts.map +1 -1
- package/dist/contracts/routed_stake/deps/sui/balance.js.map +1 -1
- package/dist/contracts/routed_stake/deps/sui/vec_map.d.ts.map +1 -1
- package/dist/contracts/routed_stake/deps/sui/vec_map.js.map +1 -1
- package/dist/contracts/routed_stake/routed_stake.d.ts +15 -15
- package/dist/contracts/routed_stake/routed_stake.d.ts.map +1 -1
- package/dist/contracts/routed_stake/routed_stake.js.map +1 -1
- package/dist/contracts/royalty_pool/deps/std/type_name.d.ts +1 -1
- package/dist/contracts/royalty_pool/deps/std/type_name.d.ts.map +1 -1
- package/dist/contracts/royalty_pool/deps/std/type_name.js.map +1 -1
- package/dist/contracts/royalty_pool/deps/sui/balance.d.ts +1 -1
- package/dist/contracts/royalty_pool/deps/sui/balance.d.ts.map +1 -1
- package/dist/contracts/royalty_pool/deps/sui/balance.js.map +1 -1
- package/dist/contracts/royalty_pool/deps/sui/vec_map.d.ts.map +1 -1
- package/dist/contracts/royalty_pool/deps/sui/vec_map.js.map +1 -1
- package/dist/contracts/royalty_pool/pool.d.ts +19 -19
- package/dist/contracts/royalty_pool/pool.d.ts.map +1 -1
- package/dist/contracts/royalty_pool/pool.js.map +1 -1
- package/dist/contracts/royalty_pool/stake.d.ts +9 -9
- package/dist/contracts/royalty_pool/stake.d.ts.map +1 -1
- package/dist/contracts/royalty_pool/stake.js.map +1 -1
- package/dist/contracts/vault/deps/sui/bag.d.ts +2 -2
- package/dist/contracts/vault/deps/sui/bag.d.ts.map +1 -1
- package/dist/contracts/vault/deps/sui/bag.js.map +1 -1
- package/dist/contracts/vault/deps/sui/borrow.d.ts.map +1 -1
- package/dist/contracts/vault/deps/sui/borrow.js.map +1 -1
- package/dist/contracts/vault/vault.d.ts +19 -93
- package/dist/contracts/vault/vault.d.ts.map +1 -1
- package/dist/contracts/vault/vault.js +16 -95
- package/dist/contracts/vault/vault.js.map +1 -1
- package/dist/contracts.d.ts +3 -0
- package/dist/contracts.d.ts.map +1 -1
- package/dist/contracts.js +4 -1
- package/dist/contracts.js.map +1 -1
- package/dist/deployments.d.ts +125 -79
- package/dist/deployments.d.ts.map +1 -1
- package/dist/deployments.js +111 -35
- package/dist/deployments.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/internal.d.ts +9 -0
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.js +23 -0
- package/dist/internal.js.map +1 -1
- package/dist/publication.d.ts +1 -4
- package/dist/publication.d.ts.map +1 -1
- package/dist/publication.js +79 -60
- package/dist/publication.js.map +1 -1
- package/dist/read/config.d.ts.map +1 -1
- package/dist/read/config.js +9 -1
- package/dist/read/config.js.map +1 -1
- package/dist/vault.d.ts +42 -38
- package/dist/vault.d.ts.map +1 -1
- package/dist/vault.js +96 -169
- package/dist/vault.js.map +1 -1
- package/package.json +13 -10
- package/src/client.ts +291 -107
- package/src/contracts/composition_credits/composition_credits.ts +3 -2
- package/src/contracts/composition_credits/composition_party_role.ts +5 -4
- package/src/contracts/composition_credits/deps/miso_credit/credit.ts +1 -0
- package/src/contracts/composition_credits/deps/sui/vec_map.ts +1 -0
- package/src/contracts/composition_routed_stake/composition_routed_stake.ts +36 -146
- package/src/contracts/composition_royalty_pool/composition_royalty_pool.ts +20 -161
- package/src/contracts/composition_royalty_pool_plugin/composition_royalty_pool_plugin.ts +165 -0
- package/src/contracts/{recording_royalty_pool → composition_royalty_pool_plugin}/witness.ts +2 -1
- package/src/contracts/cover_art/cover_art.ts +2 -1
- package/src/contracts/cover_art/deps/ori/walrus_data.ts +1 -0
- package/src/contracts/genre/genre.ts +3 -2
- package/src/contracts/miso_record/deps/std/type_name.ts +1 -0
- package/src/contracts/miso_record/deps/sui/vec_set.ts +1 -0
- package/src/contracts/miso_record/pressing.ts +1 -0
- package/src/contracts/miso_record/record.ts +1 -0
- package/src/contracts/miso_record_shop/deps/std/type_name.ts +1 -0
- package/src/contracts/miso_record_shop/listing.ts +1 -0
- package/src/contracts/miso_record_shop/witness.ts +1 -0
- package/src/contracts/party_wallet/party_wallet.ts +41 -256
- package/src/contracts/recording_advisory/recording_advisory.ts +4 -3
- package/src/contracts/recording_credits/deps/miso_credit/credit.ts +1 -0
- package/src/contracts/recording_credits/deps/sui/vec_map.ts +1 -0
- package/src/contracts/recording_credits/deps/sui/vec_set.ts +1 -0
- package/src/contracts/recording_credits/recording_credits.ts +3 -2
- package/src/contracts/recording_credits/recording_party_role.ts +5 -4
- package/src/contracts/recording_language/deps/language_code/language_code.ts +1 -0
- package/src/contracts/recording_language/recording_language.ts +5 -4
- package/src/contracts/recording_master_reference/deps/ori/walrus_data.ts +1 -0
- package/src/contracts/recording_master_reference/recording_master_reference.ts +6 -5
- package/src/contracts/recording_preview/deps/ori/walrus_data.ts +1 -0
- package/src/contracts/recording_preview/recording_preview.ts +2 -1
- package/src/contracts/recording_royalty_pool/recording_royalty_pool.ts +19 -162
- package/src/contracts/recording_royalty_pool_plugin/recording_royalty_pool_plugin.ts +167 -0
- package/src/contracts/{party_wallet → recording_royalty_pool_plugin}/witness.ts +2 -1
- package/src/contracts/release_cover_art/deps/{0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78 → 0xf35cf353a62cef01084b51a9cf3da4c64c8724685ad1862f2f8284b71bd26c1a}/walrus_data.ts +2 -1
- package/src/contracts/release_cover_art/deps/cover_art/cover_art.ts +3 -2
- package/src/contracts/release_cover_art/deps/per_track/per_track.ts +3 -2
- package/src/contracts/release_cover_art/release_cover_art.ts +2 -1
- package/src/contracts/release_credits/deps/miso_credit/credit.ts +1 -0
- package/src/contracts/release_credits/deps/sui/vec_map.ts +1 -0
- package/src/contracts/release_credits/release_credits.ts +4 -3
- package/src/contracts/release_credits/release_party_role.ts +4 -4
- package/src/contracts/release_description/release_description.ts +6 -5
- package/src/contracts/release_dsp_link/release_dsp_link.ts +8 -8
- package/src/contracts/release_genre/deps/per_track/per_track.ts +3 -2
- package/src/contracts/release_genre/release_genre.ts +4 -3
- package/src/contracts/release_kind/release_kind.ts +5 -4
- package/src/contracts/release_revenue_distributor/release_revenue_distributor.ts +50 -85
- package/src/contracts/release_revenue_distributor_plugin/release_revenue_distributor_plugin.ts +145 -0
- package/src/contracts/{composition_royalty_pool → release_revenue_distributor_plugin}/witness.ts +2 -1
- package/src/contracts/routed_stake/deps/royalty_pool/stake.ts +1 -0
- package/src/contracts/routed_stake/deps/std/type_name.ts +1 -0
- package/src/contracts/routed_stake/deps/sui/balance.ts +1 -0
- package/src/contracts/routed_stake/deps/sui/vec_map.ts +1 -0
- package/src/contracts/routed_stake/routed_stake.ts +4 -3
- package/src/contracts/royalty_pool/deps/std/type_name.ts +1 -0
- package/src/contracts/royalty_pool/deps/sui/balance.ts +1 -0
- package/src/contracts/royalty_pool/deps/sui/vec_map.ts +1 -0
- package/src/contracts/royalty_pool/pool.ts +1 -0
- package/src/contracts/royalty_pool/stake.ts +1 -0
- package/src/contracts/vault/deps/sui/bag.ts +3 -2
- package/src/contracts/vault/deps/sui/borrow.ts +2 -1
- package/src/contracts/vault/vault.ts +27 -152
- package/src/contracts.ts +4 -1
- package/src/deployments.ts +185 -60
- package/src/index.ts +3 -0
- package/src/internal.ts +27 -0
- package/src/publication.ts +87 -69
- package/src/read/config.ts +12 -1
- package/src/vault.ts +150 -256
- package/dist/contracts/composition_routed_stake/witness.d.ts +0 -7
- package/dist/contracts/composition_routed_stake/witness.d.ts.map +0 -1
- package/dist/contracts/composition_routed_stake/witness.js +0 -9
- package/dist/contracts/composition_routed_stake/witness.js.map +0 -1
- package/dist/contracts/composition_royalty_pool/witness.d.ts.map +0 -1
- package/dist/contracts/composition_royalty_pool/witness.js.map +0 -1
- package/dist/contracts/party_wallet/witness.d.ts.map +0 -1
- package/dist/contracts/party_wallet/witness.js.map +0 -1
- package/dist/contracts/recording_royalty_pool/witness.d.ts.map +0 -1
- package/dist/contracts/recording_royalty_pool/witness.js.map +0 -1
- package/dist/contracts/release_revenue_distributor/witness.d.ts +0 -7
- package/dist/contracts/release_revenue_distributor/witness.d.ts.map +0 -1
- package/dist/contracts/release_revenue_distributor/witness.js +0 -9
- package/dist/contracts/release_revenue_distributor/witness.js.map +0 -1
- package/src/contracts/composition_routed_stake/witness.ts +0 -11
- package/src/contracts/release_revenue_distributor/witness.ts +0 -11
|
@@ -4,22 +4,20 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Custody-agnostic wallet actions for a Party.
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
9
|
+
* A Party ID is both an object ID and an address. Anyone may send transferable
|
|
10
|
+
* objects or accumulator funds to that stable address, while only the matching
|
|
11
|
+
* `PartyAdminCap` can expose the Party UID needed to withdraw them. These raw-cap
|
|
12
|
+
* actions return every withdrawn asset to the caller so direct owners, Vault
|
|
13
|
+
* administrators, and other custody systems can compose the same immutable API.
|
|
14
14
|
*
|
|
15
|
-
*
|
|
16
|
-
* withdrawal is a `public fun` requiring the matching `VaultAdminCap`, and no
|
|
17
|
-
* endpoint returns the leased capability, its borrow receipt, or a privileged
|
|
18
|
-
* reference. The Party itself stores no plugin data.
|
|
15
|
+
* This package stores no Party data and defines no plugin or transfer policy.
|
|
19
16
|
*/
|
|
20
17
|
|
|
21
18
|
import { MoveStruct, normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';
|
|
22
19
|
import { bcs } from '@mysten/sui/bcs';
|
|
20
|
+
import type {} from "@mysten/bcs";
|
|
23
21
|
import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
|
|
24
22
|
const $moduleName = '@local-pkg/party_wallet::party_wallet';
|
|
25
23
|
export const ObjectReceivedEvent = new MoveStruct({ name: `${$moduleName}::ObjectReceivedEvent`, fields: {
|
|
@@ -35,161 +33,54 @@ export const FundsRedeemedEvent = new MoveStruct({ name: `${$moduleName}::FundsR
|
|
|
35
33
|
party_id: bcs.Address,
|
|
36
34
|
amount: bcs.u64()
|
|
37
35
|
} });
|
|
38
|
-
export interface
|
|
39
|
-
vault: RawTransactionArgument<string>;
|
|
40
|
-
vaultAdminCap: RawTransactionArgument<string>;
|
|
41
|
-
}
|
|
42
|
-
export interface InstallOptions {
|
|
43
|
-
package?: string;
|
|
44
|
-
arguments: InstallArguments | [
|
|
45
|
-
vault: RawTransactionArgument<string>,
|
|
46
|
-
vaultAdminCap: RawTransactionArgument<string>
|
|
47
|
-
];
|
|
48
|
-
}
|
|
49
|
-
/** Authorize this package on a Party capability Vault. */
|
|
50
|
-
export function install(options: InstallOptions) {
|
|
51
|
-
const packageAddress = options.package ?? '@local-pkg/party_wallet';
|
|
52
|
-
const argumentsTypes = [
|
|
53
|
-
null,
|
|
54
|
-
null
|
|
55
|
-
] satisfies (string | null)[];
|
|
56
|
-
const parameterNames = ["vault", "vaultAdminCap"];
|
|
57
|
-
return (tx: Transaction) => tx.moveCall({
|
|
58
|
-
package: packageAddress,
|
|
59
|
-
module: 'party_wallet',
|
|
60
|
-
function: 'install',
|
|
61
|
-
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
export interface UninstallArguments {
|
|
65
|
-
vault: RawTransactionArgument<string>;
|
|
66
|
-
vaultAdminCap: RawTransactionArgument<string>;
|
|
67
|
-
}
|
|
68
|
-
export interface UninstallOptions {
|
|
69
|
-
package?: string;
|
|
70
|
-
arguments: UninstallArguments | [
|
|
71
|
-
vault: RawTransactionArgument<string>,
|
|
72
|
-
vaultAdminCap: RawTransactionArgument<string>
|
|
73
|
-
];
|
|
74
|
-
}
|
|
75
|
-
/** Revoke this package from a Party capability Vault. */
|
|
76
|
-
export function uninstall(options: UninstallOptions) {
|
|
77
|
-
const packageAddress = options.package ?? '@local-pkg/party_wallet';
|
|
78
|
-
const argumentsTypes = [
|
|
79
|
-
null,
|
|
80
|
-
null
|
|
81
|
-
] satisfies (string | null)[];
|
|
82
|
-
const parameterNames = ["vault", "vaultAdminCap"];
|
|
83
|
-
return (tx: Transaction) => tx.moveCall({
|
|
84
|
-
package: packageAddress,
|
|
85
|
-
module: 'party_wallet',
|
|
86
|
-
function: 'uninstall',
|
|
87
|
-
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
export interface ReceiveObjectArguments {
|
|
91
|
-
vault: RawTransactionArgument<string>;
|
|
36
|
+
export interface ReceiveArguments {
|
|
92
37
|
party: RawTransactionArgument<string>;
|
|
93
|
-
|
|
38
|
+
adminCap: RawTransactionArgument<string>;
|
|
94
39
|
objectToReceive: TransactionArgument;
|
|
95
|
-
recipient: RawTransactionArgument<string>;
|
|
96
|
-
}
|
|
97
|
-
export interface ReceiveObjectOptions {
|
|
98
|
-
package?: string;
|
|
99
|
-
arguments: ReceiveObjectArguments | [
|
|
100
|
-
vault: RawTransactionArgument<string>,
|
|
101
|
-
party: RawTransactionArgument<string>,
|
|
102
|
-
vaultAdminCap: RawTransactionArgument<string>,
|
|
103
|
-
objectToReceive: TransactionArgument,
|
|
104
|
-
recipient: RawTransactionArgument<string>
|
|
105
|
-
];
|
|
106
|
-
typeArguments: [
|
|
107
|
-
string
|
|
108
|
-
];
|
|
109
40
|
}
|
|
110
|
-
|
|
111
|
-
* Receive one `key + store` object addressed to the Party and transfer it to
|
|
112
|
-
* `recipient`.
|
|
113
|
-
*
|
|
114
|
-
* Aborts if the Vault administrator is wrong, the plugin is not installed, the
|
|
115
|
-
* Vault contains another Party's cap, or the receiving ticket is invalid for the
|
|
116
|
-
* supplied Party.
|
|
117
|
-
*/
|
|
118
|
-
export function receiveObject(options: ReceiveObjectOptions) {
|
|
119
|
-
const packageAddress = options.package ?? '@local-pkg/party_wallet';
|
|
120
|
-
const argumentsTypes = [
|
|
121
|
-
null,
|
|
122
|
-
null,
|
|
123
|
-
null,
|
|
124
|
-
null,
|
|
125
|
-
'address'
|
|
126
|
-
] satisfies (string | null)[];
|
|
127
|
-
const parameterNames = ["vault", "party", "vaultAdminCap", "objectToReceive", "recipient"];
|
|
128
|
-
return (tx: Transaction) => tx.moveCall({
|
|
129
|
-
package: packageAddress,
|
|
130
|
-
module: 'party_wallet',
|
|
131
|
-
function: 'receive_object',
|
|
132
|
-
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
133
|
-
typeArguments: options.typeArguments
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
export interface ReceiveObjectsArguments {
|
|
137
|
-
vault: RawTransactionArgument<string>;
|
|
138
|
-
party: RawTransactionArgument<string>;
|
|
139
|
-
vaultAdminCap: RawTransactionArgument<string>;
|
|
140
|
-
objectsToReceive: TransactionArgument;
|
|
141
|
-
recipient: RawTransactionArgument<string>;
|
|
142
|
-
}
|
|
143
|
-
export interface ReceiveObjectsOptions {
|
|
41
|
+
export interface ReceiveOptions {
|
|
144
42
|
package?: string;
|
|
145
|
-
arguments:
|
|
146
|
-
vault: RawTransactionArgument<string>,
|
|
43
|
+
arguments: ReceiveArguments | [
|
|
147
44
|
party: RawTransactionArgument<string>,
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
recipient: RawTransactionArgument<string>
|
|
45
|
+
adminCap: RawTransactionArgument<string>,
|
|
46
|
+
objectToReceive: TransactionArgument
|
|
151
47
|
];
|
|
152
48
|
typeArguments: [
|
|
153
49
|
string
|
|
154
50
|
];
|
|
155
51
|
}
|
|
156
52
|
/**
|
|
157
|
-
* Receive
|
|
158
|
-
* `recipient` in input order.
|
|
53
|
+
* Receive and return one `key + store` object addressed to `party`.
|
|
159
54
|
*
|
|
160
|
-
* Aborts
|
|
161
|
-
*
|
|
55
|
+
* Aborts if `admin_cap` belongs to another Party or the receiving ticket does not
|
|
56
|
+
* identify an object addressed to this Party.
|
|
162
57
|
*/
|
|
163
|
-
export function
|
|
58
|
+
export function receive(options: ReceiveOptions) {
|
|
164
59
|
const packageAddress = options.package ?? '@local-pkg/party_wallet';
|
|
165
60
|
const argumentsTypes = [
|
|
166
61
|
null,
|
|
167
62
|
null,
|
|
168
|
-
null
|
|
169
|
-
'vector<null>',
|
|
170
|
-
'address'
|
|
63
|
+
null
|
|
171
64
|
] satisfies (string | null)[];
|
|
172
|
-
const parameterNames = ["
|
|
65
|
+
const parameterNames = ["party", "adminCap", "objectToReceive"];
|
|
173
66
|
return (tx: Transaction) => tx.moveCall({
|
|
174
67
|
package: packageAddress,
|
|
175
68
|
module: 'party_wallet',
|
|
176
|
-
function: '
|
|
69
|
+
function: 'receive',
|
|
177
70
|
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
178
71
|
typeArguments: options.typeArguments
|
|
179
72
|
});
|
|
180
73
|
}
|
|
181
|
-
export interface
|
|
182
|
-
vault: RawTransactionArgument<string>;
|
|
74
|
+
export interface ReceiveBalanceArguments {
|
|
183
75
|
party: RawTransactionArgument<string>;
|
|
184
|
-
|
|
76
|
+
adminCap: RawTransactionArgument<string>;
|
|
185
77
|
coins: TransactionArgument;
|
|
186
78
|
}
|
|
187
|
-
export interface
|
|
79
|
+
export interface ReceiveBalanceOptions {
|
|
188
80
|
package?: string;
|
|
189
|
-
arguments:
|
|
190
|
-
vault: RawTransactionArgument<string>,
|
|
81
|
+
arguments: ReceiveBalanceArguments | [
|
|
191
82
|
party: RawTransactionArgument<string>,
|
|
192
|
-
|
|
83
|
+
adminCap: RawTransactionArgument<string>,
|
|
193
84
|
coins: TransactionArgument
|
|
194
85
|
];
|
|
195
86
|
typeArguments: [
|
|
@@ -197,42 +88,38 @@ export interface ReceiveCoinsOptions {
|
|
|
197
88
|
];
|
|
198
89
|
}
|
|
199
90
|
/**
|
|
200
|
-
* Receive coin objects
|
|
201
|
-
*
|
|
91
|
+
* Receive a non-empty set of coin objects addressed to `party`, merge them, and
|
|
92
|
+
* return their combined `Balance`.
|
|
202
93
|
*
|
|
203
|
-
* Aborts with `ENothingToReceive`
|
|
204
|
-
*
|
|
205
|
-
* invalid.
|
|
94
|
+
* Aborts with `ENothingToReceive` when `coins` is empty, if `admin_cap` belongs to
|
|
95
|
+
* another Party, or if any ticket is invalid for this Party.
|
|
206
96
|
*/
|
|
207
|
-
export function
|
|
97
|
+
export function receiveBalance(options: ReceiveBalanceOptions) {
|
|
208
98
|
const packageAddress = options.package ?? '@local-pkg/party_wallet';
|
|
209
99
|
const argumentsTypes = [
|
|
210
|
-
null,
|
|
211
100
|
null,
|
|
212
101
|
null,
|
|
213
102
|
'vector<null>'
|
|
214
103
|
] satisfies (string | null)[];
|
|
215
|
-
const parameterNames = ["
|
|
104
|
+
const parameterNames = ["party", "adminCap", "coins"];
|
|
216
105
|
return (tx: Transaction) => tx.moveCall({
|
|
217
106
|
package: packageAddress,
|
|
218
107
|
module: 'party_wallet',
|
|
219
|
-
function: '
|
|
108
|
+
function: 'receive_balance',
|
|
220
109
|
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
221
110
|
typeArguments: options.typeArguments
|
|
222
111
|
});
|
|
223
112
|
}
|
|
224
113
|
export interface RedeemBalanceArguments {
|
|
225
|
-
vault: RawTransactionArgument<string>;
|
|
226
114
|
party: RawTransactionArgument<string>;
|
|
227
|
-
|
|
115
|
+
adminCap: RawTransactionArgument<string>;
|
|
228
116
|
value: RawTransactionArgument<number | bigint>;
|
|
229
117
|
}
|
|
230
118
|
export interface RedeemBalanceOptions {
|
|
231
119
|
package?: string;
|
|
232
120
|
arguments: RedeemBalanceArguments | [
|
|
233
|
-
vault: RawTransactionArgument<string>,
|
|
234
121
|
party: RawTransactionArgument<string>,
|
|
235
|
-
|
|
122
|
+
adminCap: RawTransactionArgument<string>,
|
|
236
123
|
value: RawTransactionArgument<number | bigint>
|
|
237
124
|
];
|
|
238
125
|
typeArguments: [
|
|
@@ -240,22 +127,20 @@ export interface RedeemBalanceOptions {
|
|
|
240
127
|
];
|
|
241
128
|
}
|
|
242
129
|
/**
|
|
243
|
-
* Redeem `value` from
|
|
244
|
-
* caller's PTB to consume.
|
|
130
|
+
* Redeem `value` from `party`'s accumulator and return the resulting balance.
|
|
245
131
|
*
|
|
246
|
-
* Aborts if
|
|
247
|
-
*
|
|
248
|
-
*
|
|
132
|
+
* Aborts if `admin_cap` belongs to another Party. Accumulator semantics remain in
|
|
133
|
+
* `hikida`: zero values abort with code `1`, and unavailable funds abort in the
|
|
134
|
+
* Sui accumulator implementation.
|
|
249
135
|
*/
|
|
250
136
|
export function redeemBalance(options: RedeemBalanceOptions) {
|
|
251
137
|
const packageAddress = options.package ?? '@local-pkg/party_wallet';
|
|
252
138
|
const argumentsTypes = [
|
|
253
|
-
null,
|
|
254
139
|
null,
|
|
255
140
|
null,
|
|
256
141
|
'u64'
|
|
257
142
|
] satisfies (string | null)[];
|
|
258
|
-
const parameterNames = ["
|
|
143
|
+
const parameterNames = ["party", "adminCap", "value"];
|
|
259
144
|
return (tx: Transaction) => tx.moveCall({
|
|
260
145
|
package: packageAddress,
|
|
261
146
|
module: 'party_wallet',
|
|
@@ -264,73 +149,6 @@ export function redeemBalance(options: RedeemBalanceOptions) {
|
|
|
264
149
|
typeArguments: options.typeArguments
|
|
265
150
|
});
|
|
266
151
|
}
|
|
267
|
-
export interface SweepBalanceArguments {
|
|
268
|
-
vault: RawTransactionArgument<string>;
|
|
269
|
-
party: RawTransactionArgument<string>;
|
|
270
|
-
root: RawTransactionArgument<string>;
|
|
271
|
-
vaultAdminCap: RawTransactionArgument<string>;
|
|
272
|
-
}
|
|
273
|
-
export interface SweepBalanceOptions {
|
|
274
|
-
package?: string;
|
|
275
|
-
arguments: SweepBalanceArguments | [
|
|
276
|
-
vault: RawTransactionArgument<string>,
|
|
277
|
-
party: RawTransactionArgument<string>,
|
|
278
|
-
root: RawTransactionArgument<string>,
|
|
279
|
-
vaultAdminCap: RawTransactionArgument<string>
|
|
280
|
-
];
|
|
281
|
-
typeArguments: [
|
|
282
|
-
string
|
|
283
|
-
];
|
|
284
|
-
}
|
|
285
|
-
/**
|
|
286
|
-
* Redeem the settled `Currency` amount reported for the Party address and return a
|
|
287
|
-
* Balance for the caller's PTB to consume.
|
|
288
|
-
*
|
|
289
|
-
* Funds sent during the current consensus commit are not yet settled and remain
|
|
290
|
-
* available for a later sweep. Aborts with `ENoSettledFunds` when the settled
|
|
291
|
-
* amount is zero. The framework caps the reported amount at `u64::MAX`; any excess
|
|
292
|
-
* remains for a later sweep.
|
|
293
|
-
*/
|
|
294
|
-
export function sweepBalance(options: SweepBalanceOptions) {
|
|
295
|
-
const packageAddress = options.package ?? '@local-pkg/party_wallet';
|
|
296
|
-
const argumentsTypes = [
|
|
297
|
-
null,
|
|
298
|
-
null,
|
|
299
|
-
null,
|
|
300
|
-
null
|
|
301
|
-
] satisfies (string | null)[];
|
|
302
|
-
const parameterNames = ["vault", "party", "root", "vaultAdminCap"];
|
|
303
|
-
return (tx: Transaction) => tx.moveCall({
|
|
304
|
-
package: packageAddress,
|
|
305
|
-
module: 'party_wallet',
|
|
306
|
-
function: 'sweep_balance',
|
|
307
|
-
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
308
|
-
typeArguments: options.typeArguments
|
|
309
|
-
});
|
|
310
|
-
}
|
|
311
|
-
export interface IsInstalledArguments {
|
|
312
|
-
vault: RawTransactionArgument<string>;
|
|
313
|
-
}
|
|
314
|
-
export interface IsInstalledOptions {
|
|
315
|
-
package?: string;
|
|
316
|
-
arguments: IsInstalledArguments | [
|
|
317
|
-
vault: RawTransactionArgument<string>
|
|
318
|
-
];
|
|
319
|
-
}
|
|
320
|
-
/** Return whether this plugin is installed on `vault`. */
|
|
321
|
-
export function isInstalled(options: IsInstalledOptions) {
|
|
322
|
-
const packageAddress = options.package ?? '@local-pkg/party_wallet';
|
|
323
|
-
const argumentsTypes = [
|
|
324
|
-
null
|
|
325
|
-
] satisfies (string | null)[];
|
|
326
|
-
const parameterNames = ["vault"];
|
|
327
|
-
return (tx: Transaction) => tx.moveCall({
|
|
328
|
-
package: packageAddress,
|
|
329
|
-
module: 'party_wallet',
|
|
330
|
-
function: 'is_installed',
|
|
331
|
-
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
332
|
-
});
|
|
333
|
-
}
|
|
334
152
|
export interface InboxAddressArguments {
|
|
335
153
|
party: RawTransactionArgument<string>;
|
|
336
154
|
}
|
|
@@ -340,7 +158,7 @@ export interface InboxAddressOptions {
|
|
|
340
158
|
party: RawTransactionArgument<string>
|
|
341
159
|
];
|
|
342
160
|
}
|
|
343
|
-
/** Return the Party ID as the address to which objects
|
|
161
|
+
/** Return the Party ID as the address to which objects and funds may be sent. */
|
|
344
162
|
export function inboxAddress(options: InboxAddressOptions) {
|
|
345
163
|
const packageAddress = options.package ?? '@local-pkg/party_wallet';
|
|
346
164
|
const argumentsTypes = [
|
|
@@ -353,37 +171,4 @@ export function inboxAddress(options: InboxAddressOptions) {
|
|
|
353
171
|
function: 'inbox_address',
|
|
354
172
|
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
355
173
|
});
|
|
356
|
-
}
|
|
357
|
-
export interface SettledFundsArguments {
|
|
358
|
-
root: RawTransactionArgument<string>;
|
|
359
|
-
party: RawTransactionArgument<string>;
|
|
360
|
-
}
|
|
361
|
-
export interface SettledFundsOptions {
|
|
362
|
-
package?: string;
|
|
363
|
-
arguments: SettledFundsArguments | [
|
|
364
|
-
root: RawTransactionArgument<string>,
|
|
365
|
-
party: RawTransactionArgument<string>
|
|
366
|
-
];
|
|
367
|
-
typeArguments: [
|
|
368
|
-
string
|
|
369
|
-
];
|
|
370
|
-
}
|
|
371
|
-
/**
|
|
372
|
-
* Return the Party's accumulator balance settled at the start of the current
|
|
373
|
-
* consensus commit.
|
|
374
|
-
*/
|
|
375
|
-
export function settledFunds(options: SettledFundsOptions) {
|
|
376
|
-
const packageAddress = options.package ?? '@local-pkg/party_wallet';
|
|
377
|
-
const argumentsTypes = [
|
|
378
|
-
null,
|
|
379
|
-
null
|
|
380
|
-
] satisfies (string | null)[];
|
|
381
|
-
const parameterNames = ["root", "party"];
|
|
382
|
-
return (tx: Transaction) => tx.moveCall({
|
|
383
|
-
package: packageAddress,
|
|
384
|
-
module: 'party_wallet',
|
|
385
|
-
function: 'settled_funds',
|
|
386
|
-
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
387
|
-
typeArguments: options.typeArguments
|
|
388
|
-
});
|
|
389
174
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* The parental advisory rating for a recording — whether its lyrics are explicit —
|
|
8
8
|
* stored as a dynamic field on the recording's UID and written through its
|
|
9
9
|
* cap-gated `uid_mut`.
|
|
10
|
-
*
|
|
10
|
+
*
|
|
11
11
|
* This is its own package on purpose. Advisory ratings are set by a different
|
|
12
12
|
* person, at a different time, for entirely different reasons than the other facts
|
|
13
13
|
* about a recording, and the standard that governs them moves on its own schedule.
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
* the advisory standard drags every unrelated field through the migration. Kept
|
|
16
16
|
* separate, a consumer implementing some future metadata profile selects this
|
|
17
17
|
* extension or ignores it, and swapping it touches nothing else.
|
|
18
|
-
*
|
|
18
|
+
*
|
|
19
19
|
* The rating is deliberately not a boolean. Every distributor and storefront
|
|
20
20
|
* distinguishes a _cleaned_ edit — an explicit recording re-issued with the
|
|
21
21
|
* offending content removed — from a recording that was never explicit at all.
|
|
22
22
|
* They are merchandised differently and a boolean cannot express the difference,
|
|
23
23
|
* so `Cleaned` is a first-class variant.
|
|
24
|
-
*
|
|
24
|
+
*
|
|
25
25
|
* Attaching the extension IS the statement. There is no "attached but undeclared"
|
|
26
26
|
* state: if a rating is present it has been asserted by the rights holder, and a
|
|
27
27
|
* recording with nothing attached has simply said nothing.
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
|
|
30
30
|
import { MoveTuple, MoveEnum, MoveStruct, normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';
|
|
31
31
|
import { bcs } from '@mysten/sui/bcs';
|
|
32
|
+
import type {} from "@mysten/bcs";
|
|
32
33
|
import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
|
|
33
34
|
const $moduleName = '@local-pkg/recording_advisory::recording_advisory';
|
|
34
35
|
export const ExtensionKey = new MoveTuple({ name: `${$moduleName}::ExtensionKey`, fields: [bcs.bool()] });
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
3
|
**************************************************************/
|
|
4
4
|
import { type BcsType, bcs } from '@mysten/sui/bcs';
|
|
5
|
+
import type {} from "@mysten/bcs";
|
|
5
6
|
import { MoveStruct } from '../../../utils/index.js';
|
|
6
7
|
const $moduleName = '0x2::vec_map';
|
|
7
8
|
/** An entry in the map */
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
3
|
**************************************************************/
|
|
4
4
|
import { type BcsType, bcs } from '@mysten/sui/bcs';
|
|
5
|
+
import type {} from "@mysten/bcs";
|
|
5
6
|
import { MoveStruct } from '../../../utils/index.js';
|
|
6
7
|
const $moduleName = '0x2::vec_set';
|
|
7
8
|
/**
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* First-party credits extension for recordings.
|
|
8
|
-
*
|
|
8
|
+
*
|
|
9
9
|
* Attribution (credits + primary/featured artists) is display-oriented and varies
|
|
10
10
|
* across platforms, so it lives here as a dynamic field on the recording rather
|
|
11
11
|
* than in immutable core. The data is attached under `ExtensionKey()` via the
|
|
12
12
|
* recording's cap-gated `uid_mut`, so every mutation is authorized by the
|
|
13
13
|
* recording's admin and credits survive into any lifecycle state (they may be
|
|
14
14
|
* attached before or after the recording is published).
|
|
15
|
-
*
|
|
15
|
+
*
|
|
16
16
|
* This is Miso's canonical credits standard; because it is an extension, other
|
|
17
17
|
* parties may publish their own recording-credits standard against the same
|
|
18
18
|
* `Recording`. Credits are NOT read by the economics — they are attribution.
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
import { MoveTuple, MoveStruct, normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';
|
|
22
22
|
import { bcs } from '@mysten/sui/bcs';
|
|
23
|
+
import type {} from "@mysten/bcs";
|
|
23
24
|
import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
|
|
24
25
|
import * as vec_map from './deps/sui/vec_map.js';
|
|
25
26
|
import * as credit from './deps/miso_credit/credit.js';
|
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
* Defines the roles that parties can hold on a recording. Recordings are audio
|
|
8
8
|
* performances of compositions, and these roles represent the various production
|
|
9
9
|
* and performance contributions.
|
|
10
|
-
*
|
|
10
|
+
*
|
|
11
11
|
* ### Design
|
|
12
|
-
*
|
|
12
|
+
*
|
|
13
13
|
* `RecordingPartyRole` is a closed enum: variants can only be constructed and
|
|
14
14
|
* matched inside this module, so the `new_*_role` constructors are the external
|
|
15
15
|
* write-API and `name()` is the external read-API.
|
|
16
|
-
*
|
|
16
|
+
*
|
|
17
17
|
* - **Seniority is a separate axis.** Most roles carry an optional
|
|
18
18
|
* `RecordingPartyRoleLevel` (Lead, Assistant, Additional, …). Industry variants
|
|
19
19
|
* like "Second Engineer" or "Additional Producer" are expressed as a base role
|
|
@@ -27,13 +27,14 @@
|
|
|
27
27
|
* the seed for off-chain display/localization. For `Custom`, `name()` returns
|
|
28
28
|
* the user-supplied string; for `Instrumentalist`, it returns
|
|
29
29
|
* `"Instrumentalist"` (the instrument itself is read off-chain).
|
|
30
|
-
*
|
|
30
|
+
*
|
|
31
31
|
* These identifiers are Miso's own canonical vocabulary; any overlap with an
|
|
32
32
|
* external standard (e.g. DDEX) is coincidental, not a reproduction of it.
|
|
33
33
|
*/
|
|
34
34
|
|
|
35
35
|
import { MoveEnum, MoveTuple, normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';
|
|
36
36
|
import { bcs } from '@mysten/sui/bcs';
|
|
37
|
+
import type {} from "@mysten/bcs";
|
|
37
38
|
import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
|
|
38
39
|
const $moduleName = '@local-pkg/recording_credits::recording_party_role';
|
|
39
40
|
/** Indicates the seniority or prominence level of a party. */
|
|
@@ -3,5 +3,6 @@
|
|
|
3
3
|
**************************************************************/
|
|
4
4
|
import { MoveTuple } from '../../../utils/index.js';
|
|
5
5
|
import { bcs } from '@mysten/sui/bcs';
|
|
6
|
+
import type {} from "@mysten/bcs";
|
|
6
7
|
const $moduleName = 'language_code::language_code';
|
|
7
8
|
export const LanguageCode = new MoveTuple({ name: `${$moduleName}::LanguageCode`, fields: [bcs.string()] });
|
|
@@ -6,29 +6,30 @@
|
|
|
6
6
|
/**
|
|
7
7
|
* The languages sung or spoken on a recording, stored as a dynamic field on the
|
|
8
8
|
* recording's UID and written through its cap-gated `uid_mut`.
|
|
9
|
-
*
|
|
9
|
+
*
|
|
10
10
|
* Its own package, for the same reason the advisory rating is: language is set by
|
|
11
11
|
* different people, at different times, and governed by a standard (ISO 639) that
|
|
12
12
|
* has nothing to do with any other fact about the recording. A consumer
|
|
13
13
|
* implementing a metadata profile picks this extension up or leaves it, and
|
|
14
14
|
* replacing it never disturbs anything else attached to the work.
|
|
15
|
-
*
|
|
15
|
+
*
|
|
16
16
|
* A `vector`, not a single code — bilingual and code-switching recordings are
|
|
17
17
|
* ordinary, and forcing one language would mean choosing which of them to erase.
|
|
18
18
|
* Order is the caller's: first is conventionally the predominant one.
|
|
19
|
-
*
|
|
19
|
+
*
|
|
20
20
|
* **An empty vector means instrumental** — attached, and asserting there is no
|
|
21
21
|
* sung or spoken content at all. That is a genuine claim about the recording and
|
|
22
22
|
* is deliberately distinct from attaching nothing, which says only that nobody has
|
|
23
23
|
* looked. `set_instrumental` exists so that claim reads as intent at the call site
|
|
24
24
|
* rather than as an empty argument someone might mistake for an oversight.
|
|
25
|
-
*
|
|
25
|
+
*
|
|
26
26
|
* `LanguageCode` is a valid ISO 639-1 code by construction, so this package checks
|
|
27
27
|
* only what construction cannot: how many, and whether any repeat.
|
|
28
28
|
*/
|
|
29
29
|
|
|
30
30
|
import { MoveTuple, MoveStruct, normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';
|
|
31
31
|
import { bcs } from '@mysten/sui/bcs';
|
|
32
|
+
import type {} from "@mysten/bcs";
|
|
32
33
|
import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
|
|
33
34
|
import * as language_code from './deps/language_code/language_code.js';
|
|
34
35
|
const $moduleName = '@local-pkg/recording_language::recording_language';
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
**************************************************************/
|
|
4
4
|
import { MoveEnum, MoveStruct, MoveTuple } from '../../../utils/index.js';
|
|
5
5
|
import { bcs } from '@mysten/sui/bcs';
|
|
6
|
+
import type {} from "@mysten/bcs";
|
|
6
7
|
const $moduleName = 'ori::walrus_data';
|
|
7
8
|
/**
|
|
8
9
|
* Confidentiality of a stored blob: cleartext, or encrypted with an access policy.
|
|
@@ -5,34 +5,35 @@
|
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* A pointer to a recording's master audio — nothing more.
|
|
8
|
-
*
|
|
8
|
+
*
|
|
9
9
|
* The value is a bare `ori::WalrusData` blob reference. This extension makes no
|
|
10
10
|
* claim about what the blob contains: not its codec, not its sample rate, not its
|
|
11
11
|
* duration, not that it is even audio. The only assertion is that the holder of
|
|
12
12
|
* the recording's admin cap says this blob is the master. Everything else is
|
|
13
13
|
* client-side convention.
|
|
14
|
-
*
|
|
14
|
+
*
|
|
15
15
|
* That thinness is the point. Miso's attested path — the Nautilus-verified master
|
|
16
16
|
* flow (`audio_ingester` producing a `miso_audio::Audio`), deferred — carries
|
|
17
17
|
* channel count, bit depth, sample rate, sample count and a PCM digest, and every
|
|
18
18
|
* one of those is backed by a Nautilus enclave signature over the measured audio.
|
|
19
19
|
* Until that path is running, stating the same fields _unverified_ would dress an
|
|
20
20
|
* assertion up as a measurement. A pointer cannot be mistaken for a measurement.
|
|
21
|
-
*
|
|
21
|
+
*
|
|
22
22
|
* # This extension is a holdover
|
|
23
|
-
*
|
|
23
|
+
*
|
|
24
24
|
* It exists to carry the catalogue until enclave ingestion is ready, and it is
|
|
25
25
|
* meant to be removed rather than grown. When a recording's master is ingested for
|
|
26
26
|
* real, attach the attested master via the ingester's master flow and call
|
|
27
27
|
* `unset_master_reference` here. The two never need to coexist, and this package
|
|
28
28
|
* deliberately holds nothing the attested path cannot restate.
|
|
29
|
-
*
|
|
29
|
+
*
|
|
30
30
|
* Resist adding fields. Anything worth asserting about the audio is worth
|
|
31
31
|
* attesting, and belongs in the ingested `Audio` rather than here.
|
|
32
32
|
*/
|
|
33
33
|
|
|
34
34
|
import { MoveTuple, MoveStruct, normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';
|
|
35
35
|
import { bcs } from '@mysten/sui/bcs';
|
|
36
|
+
import type {} from "@mysten/bcs";
|
|
36
37
|
import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
|
|
37
38
|
import * as walrus_data from './deps/ori/walrus_data.js';
|
|
38
39
|
const $moduleName = '@local-pkg/recording_master_reference::recording_master_reference';
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
**************************************************************/
|
|
4
4
|
import { MoveEnum, MoveStruct, MoveTuple } from '../../../utils/index.js';
|
|
5
5
|
import { bcs } from '@mysten/sui/bcs';
|
|
6
|
+
import type {} from "@mysten/bcs";
|
|
6
7
|
const $moduleName = 'ori::walrus_data';
|
|
7
8
|
/**
|
|
8
9
|
* Confidentiality of a stored blob: cleartext, or encrypted with an access policy.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Recording audio preview: a short, public teaser clip for a recording, stored as
|
|
8
8
|
* a dynamic field on the recording's UID, set/cleared via the recording's
|
|
9
9
|
* cap-gated `uid_mut`.
|
|
10
|
-
*
|
|
10
|
+
*
|
|
11
11
|
* V1 is deliberately minimal: the value is a bare `ori::WalrusData` blob reference
|
|
12
12
|
* — no ingestion or attestation ties the preview to the recording's master. What
|
|
13
13
|
* the blob contains (codec, duration, clip offset) is client-side convention, not
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
import { MoveTuple, MoveStruct, normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';
|
|
19
19
|
import { bcs } from '@mysten/sui/bcs';
|
|
20
|
+
import type {} from "@mysten/bcs";
|
|
20
21
|
import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
|
|
21
22
|
import * as walrus_data from './deps/ori/walrus_data.js';
|
|
22
23
|
const $moduleName = '@local-pkg/recording_preview::recording_preview';
|