@misofm/sdk 0.15.11 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +210 -73
- package/dist/client.d.ts +224 -68
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +465 -79
- 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 +22 -106
- package/dist/contracts/composition_royalty_pool/composition_royalty_pool.d.ts.map +1 -1
- package/dist/contracts/composition_royalty_pool/composition_royalty_pool.js +16 -98
- 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_pressing → miso_record}/deps/std/type_name.d.ts +1 -1
- package/dist/contracts/miso_record/deps/std/type_name.d.ts.map +1 -0
- package/dist/contracts/miso_record/deps/std/type_name.js.map +1 -0
- package/dist/contracts/miso_record/deps/sui/vec_set.d.ts +21 -0
- package/dist/contracts/miso_record/deps/sui/vec_set.d.ts.map +1 -0
- package/dist/contracts/miso_record/deps/sui/vec_set.js +20 -0
- package/dist/contracts/miso_record/deps/sui/vec_set.js.map +1 -0
- package/dist/contracts/miso_record/pressing.d.ts +327 -0
- package/dist/contracts/miso_record/pressing.d.ts.map +1 -0
- package/dist/contracts/miso_record/pressing.js +345 -0
- package/dist/contracts/miso_record/pressing.js.map +1 -0
- package/dist/contracts/miso_record/record.d.ts +190 -0
- package/dist/contracts/miso_record/record.d.ts.map +1 -0
- package/dist/contracts/miso_record/record.js +226 -0
- package/dist/contracts/miso_record/record.js.map +1 -0
- package/dist/contracts/miso_record_shop/deps/std/type_name.d.ts +18 -0
- package/dist/contracts/miso_record_shop/deps/std/type_name.d.ts.map +1 -0
- package/dist/contracts/miso_record_shop/deps/std/type_name.js +20 -0
- package/dist/contracts/miso_record_shop/deps/std/type_name.js.map +1 -0
- package/dist/contracts/miso_record_shop/listing.d.ts +387 -0
- package/dist/contracts/miso_record_shop/listing.d.ts.map +1 -0
- package/dist/contracts/miso_record_shop/listing.js +380 -0
- package/dist/contracts/miso_record_shop/listing.js.map +1 -0
- package/dist/contracts/{release_revenue_distributor → miso_record_shop}/witness.d.ts +2 -2
- package/dist/contracts/miso_record_shop/witness.d.ts.map +1 -0
- package/dist/contracts/{release_revenue_distributor → miso_record_shop}/witness.js +2 -2
- package/dist/contracts/miso_record_shop/witness.js.map +1 -0
- 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 +21 -109
- package/dist/contracts/recording_royalty_pool/recording_royalty_pool.d.ts.map +1 -1
- package/dist/contracts/recording_royalty_pool/recording_royalty_pool.js +15 -100
- 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 +6 -3
- package/dist/contracts.d.ts.map +1 -1
- package/dist/contracts.js +9 -5
- package/dist/contracts.js.map +1 -1
- package/dist/deployments.d.ts +156 -77
- package/dist/deployments.d.ts.map +1 -1
- package/dist/deployments.js +146 -32
- package/dist/deployments.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -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/mix.d.ts +144 -0
- package/dist/mix.d.ts.map +1 -0
- package/dist/mix.js +656 -0
- package/dist/mix.js.map +1 -0
- package/dist/pressing.d.ts +72 -156
- package/dist/pressing.d.ts.map +1 -1
- package/dist/pressing.js +269 -261
- package/dist/pressing.js.map +1 -1
- package/dist/publication.d.ts +6 -6
- package/dist/publication.d.ts.map +1 -1
- package/dist/publication.js +134 -90
- package/dist/publication.js.map +1 -1
- package/dist/read/catalog.d.ts +8 -5
- package/dist/read/catalog.d.ts.map +1 -1
- package/dist/read/catalog.js +47 -35
- package/dist/read/catalog.js.map +1 -1
- package/dist/read/config.d.ts +6 -4
- package/dist/read/config.d.ts.map +1 -1
- package/dist/read/config.js +10 -3
- package/dist/read/config.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 +1 -1
- package/dist/read/index.js.map +1 -1
- package/dist/read/internal/scalars.d.ts.map +1 -1
- package/dist/read/internal/scalars.js +4 -3
- package/dist/read/internal/scalars.js.map +1 -1
- package/dist/read/internal/walrus.d.ts.map +1 -1
- package/dist/read/internal/walrus.js +2 -1
- package/dist/read/internal/walrus.js.map +1 -1
- package/dist/read/receipts.d.ts +21 -12
- package/dist/read/receipts.d.ts.map +1 -1
- package/dist/read/receipts.js +159 -56
- package/dist/read/receipts.js.map +1 -1
- package/dist/read/types.d.ts +34 -24
- package/dist/read/types.d.ts.map +1 -1
- package/dist/read/wallet.d.ts.map +1 -1
- package/dist/read/wallet.js +31 -46
- package/dist/read/wallet.js.map +1 -1
- package/dist/vault.d.ts +81 -48
- package/dist/vault.d.ts.map +1 -1
- package/dist/vault.js +173 -174
- package/dist/vault.js.map +1 -1
- package/package.json +17 -7
- package/src/client.ts +618 -120
- 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 +28 -169
- 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_pressing → miso_record}/deps/std/type_name.ts +1 -0
- package/src/contracts/miso_record/deps/sui/vec_set.ts +22 -0
- package/src/contracts/miso_record/pressing.ts +523 -0
- package/src/contracts/miso_record/record.ts +339 -0
- package/src/contracts/miso_record_shop/deps/std/type_name.ts +23 -0
- package/src/contracts/miso_record_shop/listing.ts +603 -0
- package/src/contracts/{release_revenue_distributor → miso_record_shop}/witness.ts +3 -2
- 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 +27 -172
- 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 +9 -5
- package/src/deployments.ts +273 -55
- package/src/index.ts +5 -0
- package/src/internal.ts +27 -0
- package/src/mix.ts +910 -0
- package/src/pressing.ts +428 -423
- package/src/publication.ts +148 -101
- package/src/read/catalog.ts +49 -34
- package/src/read/config.ts +19 -8
- package/src/read/index.ts +9 -1
- package/src/read/internal/scalars.ts +4 -2
- package/src/read/internal/walrus.ts +2 -1
- package/src/read/receipts.ts +181 -66
- package/src/read/types.ts +35 -22
- package/src/read/wallet.ts +29 -50
- package/src/vault.ts +275 -271
- 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/miso_pressing/certificate.d.ts +0 -89
- package/dist/contracts/miso_pressing/certificate.d.ts.map +0 -1
- package/dist/contracts/miso_pressing/certificate.js +0 -108
- package/dist/contracts/miso_pressing/certificate.js.map +0 -1
- package/dist/contracts/miso_pressing/deps/std/type_name.d.ts.map +0 -1
- package/dist/contracts/miso_pressing/deps/std/type_name.js.map +0 -1
- package/dist/contracts/miso_pressing/listing.d.ts +0 -434
- package/dist/contracts/miso_pressing/listing.d.ts.map +0 -1
- package/dist/contracts/miso_pressing/listing.js +0 -401
- package/dist/contracts/miso_pressing/listing.js.map +0 -1
- package/dist/contracts/miso_pressing/pressing.d.ts +0 -334
- package/dist/contracts/miso_pressing/pressing.d.ts.map +0 -1
- package/dist/contracts/miso_pressing/pressing.js +0 -298
- package/dist/contracts/miso_pressing/pressing.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.map +0 -1
- package/dist/contracts/release_revenue_distributor/witness.js.map +0 -1
- package/src/contracts/composition_routed_stake/witness.ts +0 -11
- package/src/contracts/miso_pressing/certificate.ts +0 -164
- package/src/contracts/miso_pressing/listing.ts +0 -592
- package/src/contracts/miso_pressing/pressing.ts +0 -399
- /package/dist/contracts/{miso_pressing → miso_record}/deps/std/type_name.js +0 -0
|
@@ -4,87 +4,23 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* logic. Pools remain derived from the Recording, not the Vault, so their
|
|
12
|
-
* canonical identity survives vault replacement.
|
|
7
|
+
* Raw-cap, custody-agnostic royalty-pool actions for Miso Recordings.
|
|
8
|
+
*
|
|
9
|
+
* Every mutating action requires the Recording's own admin capability. The
|
|
10
|
+
* canonical pool remains derived from the Recording and is returned unshared.
|
|
13
11
|
*/
|
|
14
12
|
|
|
15
13
|
import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
|
|
16
14
|
import { normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';
|
|
17
|
-
export interface InstallArguments {
|
|
18
|
-
vault: RawTransactionArgument<string>;
|
|
19
|
-
vaultAdminCap: RawTransactionArgument<string>;
|
|
20
|
-
}
|
|
21
|
-
export interface InstallOptions {
|
|
22
|
-
package?: string;
|
|
23
|
-
arguments: InstallArguments | [
|
|
24
|
-
vault: RawTransactionArgument<string>,
|
|
25
|
-
vaultAdminCap: RawTransactionArgument<string>
|
|
26
|
-
];
|
|
27
|
-
typeArguments: [
|
|
28
|
-
string
|
|
29
|
-
];
|
|
30
|
-
}
|
|
31
|
-
/** Authorize this package on a Recording capability Vault. */
|
|
32
|
-
export function install(options: InstallOptions) {
|
|
33
|
-
const packageAddress = options.package ?? '@local-pkg/recording_royalty_pool';
|
|
34
|
-
const argumentsTypes = [
|
|
35
|
-
null,
|
|
36
|
-
null
|
|
37
|
-
] satisfies (string | null)[];
|
|
38
|
-
const parameterNames = ["vault", "vaultAdminCap"];
|
|
39
|
-
return (tx: Transaction) => tx.moveCall({
|
|
40
|
-
package: packageAddress,
|
|
41
|
-
module: 'recording_royalty_pool',
|
|
42
|
-
function: 'install',
|
|
43
|
-
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
44
|
-
typeArguments: options.typeArguments
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
export interface UninstallArguments {
|
|
48
|
-
vault: RawTransactionArgument<string>;
|
|
49
|
-
vaultAdminCap: RawTransactionArgument<string>;
|
|
50
|
-
}
|
|
51
|
-
export interface UninstallOptions {
|
|
52
|
-
package?: string;
|
|
53
|
-
arguments: UninstallArguments | [
|
|
54
|
-
vault: RawTransactionArgument<string>,
|
|
55
|
-
vaultAdminCap: RawTransactionArgument<string>
|
|
56
|
-
];
|
|
57
|
-
typeArguments: [
|
|
58
|
-
string
|
|
59
|
-
];
|
|
60
|
-
}
|
|
61
|
-
/** Revoke this package from a Recording capability Vault. */
|
|
62
|
-
export function uninstall(options: UninstallOptions) {
|
|
63
|
-
const packageAddress = options.package ?? '@local-pkg/recording_royalty_pool';
|
|
64
|
-
const argumentsTypes = [
|
|
65
|
-
null,
|
|
66
|
-
null
|
|
67
|
-
] satisfies (string | null)[];
|
|
68
|
-
const parameterNames = ["vault", "vaultAdminCap"];
|
|
69
|
-
return (tx: Transaction) => tx.moveCall({
|
|
70
|
-
package: packageAddress,
|
|
71
|
-
module: 'recording_royalty_pool',
|
|
72
|
-
function: 'uninstall',
|
|
73
|
-
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
74
|
-
typeArguments: options.typeArguments
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
15
|
export interface NewPoolArguments {
|
|
78
|
-
vault: RawTransactionArgument<string>;
|
|
79
16
|
recording: RawTransactionArgument<string>;
|
|
80
|
-
|
|
17
|
+
adminCap: RawTransactionArgument<string>;
|
|
81
18
|
}
|
|
82
19
|
export interface NewPoolOptions {
|
|
83
20
|
package?: string;
|
|
84
21
|
arguments: NewPoolArguments | [
|
|
85
|
-
vault: RawTransactionArgument<string>,
|
|
86
22
|
recording: RawTransactionArgument<string>,
|
|
87
|
-
|
|
23
|
+
adminCap: RawTransactionArgument<string>
|
|
88
24
|
];
|
|
89
25
|
typeArguments: [
|
|
90
26
|
string,
|
|
@@ -92,23 +28,14 @@ export interface NewPoolOptions {
|
|
|
92
28
|
string
|
|
93
29
|
];
|
|
94
30
|
}
|
|
95
|
-
/**
|
|
96
|
-
* Create and return the canonical pool derived from this Recording.
|
|
97
|
-
*
|
|
98
|
-
* The matching VaultAdminCap chooses which Currency pools may be created. The
|
|
99
|
-
* result cannot be redirected: the pool ID is claimed from the Recording UID and
|
|
100
|
-
* is typed by both RecordingShare and Currency. The caller decides when to share
|
|
101
|
-
* it, allowing fresh stakes to be registered in the same PTB before the pool
|
|
102
|
-
* becomes a shared object.
|
|
103
|
-
*/
|
|
31
|
+
/** Create and return the canonical unshared pool derived from `recording`. */
|
|
104
32
|
export function newPool(options: NewPoolOptions) {
|
|
105
33
|
const packageAddress = options.package ?? '@local-pkg/recording_royalty_pool';
|
|
106
34
|
const argumentsTypes = [
|
|
107
|
-
null,
|
|
108
35
|
null,
|
|
109
36
|
null
|
|
110
37
|
] satisfies (string | null)[];
|
|
111
|
-
const parameterNames = ["
|
|
38
|
+
const parameterNames = ["recording", "adminCap"];
|
|
112
39
|
return (tx: Transaction) => tx.moveCall({
|
|
113
40
|
package: packageAddress,
|
|
114
41
|
module: 'recording_royalty_pool',
|
|
@@ -117,57 +44,17 @@ export function newPool(options: NewPoolOptions) {
|
|
|
117
44
|
typeArguments: options.typeArguments
|
|
118
45
|
});
|
|
119
46
|
}
|
|
120
|
-
export interface InitializePoolArguments {
|
|
121
|
-
vault: RawTransactionArgument<string>;
|
|
122
|
-
recording: RawTransactionArgument<string>;
|
|
123
|
-
vaultAdminCap: RawTransactionArgument<string>;
|
|
124
|
-
}
|
|
125
|
-
export interface InitializePoolOptions {
|
|
126
|
-
package?: string;
|
|
127
|
-
arguments: InitializePoolArguments | [
|
|
128
|
-
vault: RawTransactionArgument<string>,
|
|
129
|
-
recording: RawTransactionArgument<string>,
|
|
130
|
-
vaultAdminCap: RawTransactionArgument<string>
|
|
131
|
-
];
|
|
132
|
-
typeArguments: [
|
|
133
|
-
string,
|
|
134
|
-
string,
|
|
135
|
-
string
|
|
136
|
-
];
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* Create and share the canonical pool derived from this Recording.
|
|
140
|
-
*
|
|
141
|
-
* Convenience wrapper over `new_pool` for callers that do not need to register
|
|
142
|
-
* freshly-created stakes before sharing the pool.
|
|
143
|
-
*/
|
|
144
|
-
export function initializePool(options: InitializePoolOptions) {
|
|
145
|
-
const packageAddress = options.package ?? '@local-pkg/recording_royalty_pool';
|
|
146
|
-
const argumentsTypes = [
|
|
147
|
-
null,
|
|
148
|
-
null,
|
|
149
|
-
null
|
|
150
|
-
] satisfies (string | null)[];
|
|
151
|
-
const parameterNames = ["vault", "recording", "vaultAdminCap"];
|
|
152
|
-
return (tx: Transaction) => tx.moveCall({
|
|
153
|
-
package: packageAddress,
|
|
154
|
-
module: 'recording_royalty_pool',
|
|
155
|
-
function: 'initialize_pool',
|
|
156
|
-
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
157
|
-
typeArguments: options.typeArguments
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
47
|
export interface ReceiveAndDepositArguments {
|
|
161
|
-
vault: RawTransactionArgument<string>;
|
|
162
48
|
recording: RawTransactionArgument<string>;
|
|
49
|
+
adminCap: RawTransactionArgument<string>;
|
|
163
50
|
pool: RawTransactionArgument<string>;
|
|
164
51
|
coins: TransactionArgument;
|
|
165
52
|
}
|
|
166
53
|
export interface ReceiveAndDepositOptions {
|
|
167
54
|
package?: string;
|
|
168
55
|
arguments: ReceiveAndDepositArguments | [
|
|
169
|
-
vault: RawTransactionArgument<string>,
|
|
170
56
|
recording: RawTransactionArgument<string>,
|
|
57
|
+
adminCap: RawTransactionArgument<string>,
|
|
171
58
|
pool: RawTransactionArgument<string>,
|
|
172
59
|
coins: TransactionArgument
|
|
173
60
|
];
|
|
@@ -178,9 +65,8 @@ export interface ReceiveAndDepositOptions {
|
|
|
178
65
|
];
|
|
179
66
|
}
|
|
180
67
|
/**
|
|
181
|
-
* Receive coins sent to the Recording and deposit
|
|
182
|
-
*
|
|
183
|
-
* reach the pool derived from this Recording.
|
|
68
|
+
* Receive selected coins sent to the Recording and deposit their balance into the
|
|
69
|
+
* canonical pool derived from that same Recording.
|
|
184
70
|
*/
|
|
185
71
|
export function receiveAndDeposit(options: ReceiveAndDepositOptions) {
|
|
186
72
|
const packageAddress = options.package ?? '@local-pkg/recording_royalty_pool';
|
|
@@ -190,7 +76,7 @@ export function receiveAndDeposit(options: ReceiveAndDepositOptions) {
|
|
|
190
76
|
null,
|
|
191
77
|
'vector<null>'
|
|
192
78
|
] satisfies (string | null)[];
|
|
193
|
-
const parameterNames = ["
|
|
79
|
+
const parameterNames = ["recording", "adminCap", "pool", "coins"];
|
|
194
80
|
return (tx: Transaction) => tx.moveCall({
|
|
195
81
|
package: packageAddress,
|
|
196
82
|
module: 'recording_royalty_pool',
|
|
@@ -199,19 +85,19 @@ export function receiveAndDeposit(options: ReceiveAndDepositOptions) {
|
|
|
199
85
|
typeArguments: options.typeArguments
|
|
200
86
|
});
|
|
201
87
|
}
|
|
202
|
-
export interface
|
|
203
|
-
vault: RawTransactionArgument<string>;
|
|
88
|
+
export interface RedeemAndDepositArguments {
|
|
204
89
|
recording: RawTransactionArgument<string>;
|
|
90
|
+
adminCap: RawTransactionArgument<string>;
|
|
205
91
|
pool: RawTransactionArgument<string>;
|
|
206
|
-
|
|
92
|
+
value: RawTransactionArgument<number | bigint>;
|
|
207
93
|
}
|
|
208
|
-
export interface
|
|
94
|
+
export interface RedeemAndDepositOptions {
|
|
209
95
|
package?: string;
|
|
210
|
-
arguments:
|
|
211
|
-
vault: RawTransactionArgument<string>,
|
|
96
|
+
arguments: RedeemAndDepositArguments | [
|
|
212
97
|
recording: RawTransactionArgument<string>,
|
|
98
|
+
adminCap: RawTransactionArgument<string>,
|
|
213
99
|
pool: RawTransactionArgument<string>,
|
|
214
|
-
|
|
100
|
+
value: RawTransactionArgument<number | bigint>
|
|
215
101
|
];
|
|
216
102
|
typeArguments: [
|
|
217
103
|
string,
|
|
@@ -220,53 +106,22 @@ export interface SweepAndDepositOptions {
|
|
|
220
106
|
];
|
|
221
107
|
}
|
|
222
108
|
/**
|
|
223
|
-
* Redeem
|
|
224
|
-
*
|
|
225
|
-
*
|
|
226
|
-
* Funds sent during the current consensus commit are not yet settled and remain
|
|
227
|
-
* available for a later sweep. Aborts with `ENoSettledFunds` when the settled
|
|
228
|
-
* amount is zero. The framework caps the reported amount at `u64::MAX`; any excess
|
|
229
|
-
* remains for a later sweep.
|
|
109
|
+
* Redeem `value` from the Recording's funds accumulator and deposit it into the
|
|
110
|
+
* canonical pool derived from that same Recording.
|
|
230
111
|
*/
|
|
231
|
-
export function
|
|
112
|
+
export function redeemAndDeposit(options: RedeemAndDepositOptions) {
|
|
232
113
|
const packageAddress = options.package ?? '@local-pkg/recording_royalty_pool';
|
|
233
114
|
const argumentsTypes = [
|
|
234
115
|
null,
|
|
235
116
|
null,
|
|
236
117
|
null,
|
|
237
|
-
|
|
238
|
-
] satisfies (string | null)[];
|
|
239
|
-
const parameterNames = ["vault", "recording", "pool", "root"];
|
|
240
|
-
return (tx: Transaction) => tx.moveCall({
|
|
241
|
-
package: packageAddress,
|
|
242
|
-
module: 'recording_royalty_pool',
|
|
243
|
-
function: 'sweep_and_deposit',
|
|
244
|
-
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
245
|
-
typeArguments: options.typeArguments
|
|
246
|
-
});
|
|
247
|
-
}
|
|
248
|
-
export interface IsInstalledArguments {
|
|
249
|
-
vault: RawTransactionArgument<string>;
|
|
250
|
-
}
|
|
251
|
-
export interface IsInstalledOptions {
|
|
252
|
-
package?: string;
|
|
253
|
-
arguments: IsInstalledArguments | [
|
|
254
|
-
vault: RawTransactionArgument<string>
|
|
255
|
-
];
|
|
256
|
-
typeArguments: [
|
|
257
|
-
string
|
|
258
|
-
];
|
|
259
|
-
}
|
|
260
|
-
export function isInstalled(options: IsInstalledOptions) {
|
|
261
|
-
const packageAddress = options.package ?? '@local-pkg/recording_royalty_pool';
|
|
262
|
-
const argumentsTypes = [
|
|
263
|
-
null
|
|
118
|
+
'u64'
|
|
264
119
|
] satisfies (string | null)[];
|
|
265
|
-
const parameterNames = ["
|
|
120
|
+
const parameterNames = ["recording", "adminCap", "pool", "value"];
|
|
266
121
|
return (tx: Transaction) => tx.moveCall({
|
|
267
122
|
package: packageAddress,
|
|
268
123
|
module: 'recording_royalty_pool',
|
|
269
|
-
function: '
|
|
124
|
+
function: 'redeem_and_deposit',
|
|
270
125
|
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
271
126
|
typeArguments: options.typeArguments
|
|
272
127
|
});
|
|
@@ -285,7 +140,7 @@ export interface PoolAddressOptions {
|
|
|
285
140
|
string
|
|
286
141
|
];
|
|
287
142
|
}
|
|
288
|
-
/**
|
|
143
|
+
/** Canonical pool address for this Recording, share type, and Currency. */
|
|
289
144
|
export function poolAddress(options: PoolAddressOptions) {
|
|
290
145
|
const packageAddress = options.package ?? '@local-pkg/recording_royalty_pool';
|
|
291
146
|
const argumentsTypes = [
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
/** Vault adapter for Recording royalty-pool Actions. */
|
|
7
|
+
|
|
8
|
+
import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
|
|
9
|
+
import { normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';
|
|
10
|
+
export interface InstallArguments {
|
|
11
|
+
vault: RawTransactionArgument<string>;
|
|
12
|
+
vaultAdminCap: RawTransactionArgument<string>;
|
|
13
|
+
}
|
|
14
|
+
export interface InstallOptions {
|
|
15
|
+
package?: string;
|
|
16
|
+
arguments: InstallArguments | [
|
|
17
|
+
vault: RawTransactionArgument<string>,
|
|
18
|
+
vaultAdminCap: RawTransactionArgument<string>
|
|
19
|
+
];
|
|
20
|
+
typeArguments: [
|
|
21
|
+
string
|
|
22
|
+
];
|
|
23
|
+
}
|
|
24
|
+
export function install(options: InstallOptions) {
|
|
25
|
+
const packageAddress = options.package ?? '@local-pkg/recording_royalty_pool_plugin';
|
|
26
|
+
const argumentsTypes = [
|
|
27
|
+
null,
|
|
28
|
+
null
|
|
29
|
+
] satisfies (string | null)[];
|
|
30
|
+
const parameterNames = ["vault", "vaultAdminCap"];
|
|
31
|
+
return (tx: Transaction) => tx.moveCall({
|
|
32
|
+
package: packageAddress,
|
|
33
|
+
module: 'recording_royalty_pool_plugin',
|
|
34
|
+
function: 'install',
|
|
35
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
36
|
+
typeArguments: options.typeArguments
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
export interface UninstallArguments {
|
|
40
|
+
vault: RawTransactionArgument<string>;
|
|
41
|
+
vaultAdminCap: RawTransactionArgument<string>;
|
|
42
|
+
}
|
|
43
|
+
export interface UninstallOptions {
|
|
44
|
+
package?: string;
|
|
45
|
+
arguments: UninstallArguments | [
|
|
46
|
+
vault: RawTransactionArgument<string>,
|
|
47
|
+
vaultAdminCap: RawTransactionArgument<string>
|
|
48
|
+
];
|
|
49
|
+
typeArguments: [
|
|
50
|
+
string
|
|
51
|
+
];
|
|
52
|
+
}
|
|
53
|
+
export function uninstall(options: UninstallOptions) {
|
|
54
|
+
const packageAddress = options.package ?? '@local-pkg/recording_royalty_pool_plugin';
|
|
55
|
+
const argumentsTypes = [
|
|
56
|
+
null,
|
|
57
|
+
null
|
|
58
|
+
] satisfies (string | null)[];
|
|
59
|
+
const parameterNames = ["vault", "vaultAdminCap"];
|
|
60
|
+
return (tx: Transaction) => tx.moveCall({
|
|
61
|
+
package: packageAddress,
|
|
62
|
+
module: 'recording_royalty_pool_plugin',
|
|
63
|
+
function: 'uninstall',
|
|
64
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
65
|
+
typeArguments: options.typeArguments
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
export interface IsInstalledArguments {
|
|
69
|
+
vault: RawTransactionArgument<string>;
|
|
70
|
+
}
|
|
71
|
+
export interface IsInstalledOptions {
|
|
72
|
+
package?: string;
|
|
73
|
+
arguments: IsInstalledArguments | [
|
|
74
|
+
vault: RawTransactionArgument<string>
|
|
75
|
+
];
|
|
76
|
+
typeArguments: [
|
|
77
|
+
string
|
|
78
|
+
];
|
|
79
|
+
}
|
|
80
|
+
export function isInstalled(options: IsInstalledOptions) {
|
|
81
|
+
const packageAddress = options.package ?? '@local-pkg/recording_royalty_pool_plugin';
|
|
82
|
+
const argumentsTypes = [
|
|
83
|
+
null
|
|
84
|
+
] satisfies (string | null)[];
|
|
85
|
+
const parameterNames = ["vault"];
|
|
86
|
+
return (tx: Transaction) => tx.moveCall({
|
|
87
|
+
package: packageAddress,
|
|
88
|
+
module: 'recording_royalty_pool_plugin',
|
|
89
|
+
function: 'is_installed',
|
|
90
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
91
|
+
typeArguments: options.typeArguments
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
export interface ReceiveAndDepositArguments {
|
|
95
|
+
vault: RawTransactionArgument<string>;
|
|
96
|
+
recording: RawTransactionArgument<string>;
|
|
97
|
+
pool: RawTransactionArgument<string>;
|
|
98
|
+
coins: TransactionArgument;
|
|
99
|
+
}
|
|
100
|
+
export interface ReceiveAndDepositOptions {
|
|
101
|
+
package?: string;
|
|
102
|
+
arguments: ReceiveAndDepositArguments | [
|
|
103
|
+
vault: RawTransactionArgument<string>,
|
|
104
|
+
recording: RawTransactionArgument<string>,
|
|
105
|
+
pool: RawTransactionArgument<string>,
|
|
106
|
+
coins: TransactionArgument
|
|
107
|
+
];
|
|
108
|
+
typeArguments: [
|
|
109
|
+
string,
|
|
110
|
+
string,
|
|
111
|
+
string
|
|
112
|
+
];
|
|
113
|
+
}
|
|
114
|
+
export function receiveAndDeposit(options: ReceiveAndDepositOptions) {
|
|
115
|
+
const packageAddress = options.package ?? '@local-pkg/recording_royalty_pool_plugin';
|
|
116
|
+
const argumentsTypes = [
|
|
117
|
+
null,
|
|
118
|
+
null,
|
|
119
|
+
null,
|
|
120
|
+
'vector<null>'
|
|
121
|
+
] satisfies (string | null)[];
|
|
122
|
+
const parameterNames = ["vault", "recording", "pool", "coins"];
|
|
123
|
+
return (tx: Transaction) => tx.moveCall({
|
|
124
|
+
package: packageAddress,
|
|
125
|
+
module: 'recording_royalty_pool_plugin',
|
|
126
|
+
function: 'receive_and_deposit',
|
|
127
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
128
|
+
typeArguments: options.typeArguments
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
export interface RedeemAndDepositArguments {
|
|
132
|
+
vault: RawTransactionArgument<string>;
|
|
133
|
+
recording: RawTransactionArgument<string>;
|
|
134
|
+
pool: RawTransactionArgument<string>;
|
|
135
|
+
value: RawTransactionArgument<number | bigint>;
|
|
136
|
+
}
|
|
137
|
+
export interface RedeemAndDepositOptions {
|
|
138
|
+
package?: string;
|
|
139
|
+
arguments: RedeemAndDepositArguments | [
|
|
140
|
+
vault: RawTransactionArgument<string>,
|
|
141
|
+
recording: RawTransactionArgument<string>,
|
|
142
|
+
pool: RawTransactionArgument<string>,
|
|
143
|
+
value: RawTransactionArgument<number | bigint>
|
|
144
|
+
];
|
|
145
|
+
typeArguments: [
|
|
146
|
+
string,
|
|
147
|
+
string,
|
|
148
|
+
string
|
|
149
|
+
];
|
|
150
|
+
}
|
|
151
|
+
export function redeemAndDeposit(options: RedeemAndDepositOptions) {
|
|
152
|
+
const packageAddress = options.package ?? '@local-pkg/recording_royalty_pool_plugin';
|
|
153
|
+
const argumentsTypes = [
|
|
154
|
+
null,
|
|
155
|
+
null,
|
|
156
|
+
null,
|
|
157
|
+
'u64'
|
|
158
|
+
] satisfies (string | null)[];
|
|
159
|
+
const parameterNames = ["vault", "recording", "pool", "value"];
|
|
160
|
+
return (tx: Transaction) => tx.moveCall({
|
|
161
|
+
package: packageAddress,
|
|
162
|
+
module: 'recording_royalty_pool_plugin',
|
|
163
|
+
function: 'redeem_and_deposit',
|
|
164
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
165
|
+
typeArguments: options.typeArguments
|
|
166
|
+
});
|
|
167
|
+
}
|
|
@@ -3,5 +3,6 @@
|
|
|
3
3
|
**************************************************************/
|
|
4
4
|
import { MoveTuple } from '../utils/index.js';
|
|
5
5
|
import { bcs } from '@mysten/sui/bcs';
|
|
6
|
-
|
|
6
|
+
import type {} from "@mysten/bcs";
|
|
7
|
+
const $moduleName = '@local-pkg/recording_royalty_pool_plugin::witness';
|
|
7
8
|
export const Witness = new MoveTuple({ name: `${$moduleName}::Witness`, fields: [bcs.bool()] });
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
**************************************************************/
|
|
4
4
|
import { MoveEnum, MoveStruct, MoveTuple } from '../../../utils/index.js';
|
|
5
5
|
import { bcs } from '@mysten/sui/bcs';
|
|
6
|
-
|
|
6
|
+
import type {} from "@mysten/bcs";
|
|
7
|
+
const $moduleName = '0xf35cf353a62cef01084b51a9cf3da4c64c8724685ad1862f2f8284b71bd26c1a::walrus_data';
|
|
7
8
|
/**
|
|
8
9
|
* Confidentiality of a stored blob: cleartext, or encrypted with an access policy.
|
|
9
10
|
* Only applies to standalone blobs — a quilt patch is a slice of a shared quilt
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
/**
|
|
7
7
|
* The evolvable cover art value used by the recording/release cover art
|
|
8
8
|
* extensions.
|
|
9
|
-
*
|
|
9
|
+
*
|
|
10
10
|
* CoverArt format changes over time (static-only → +animated → future formats).
|
|
11
11
|
* Keeping it in an extension rather than immutable core means a new format is a
|
|
12
12
|
* republish of this small package (or a brand-new cover art standard), not of the
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
|
|
16
16
|
import { MoveStruct } from '../../../utils/index.js';
|
|
17
17
|
import { bcs } from '@mysten/sui/bcs';
|
|
18
|
-
import
|
|
18
|
+
import type {} from "@mysten/bcs";
|
|
19
|
+
import * as walrus_data from '../0xf35cf353a62cef01084b51a9cf3da4c64c8724685ad1862f2f8284b71bd26c1a/walrus_data.js';
|
|
19
20
|
const $moduleName = 'cover_art::cover_art';
|
|
20
21
|
export const CoverArt = new MoveStruct({ name: `${$moduleName}::CoverArt`, fields: {
|
|
21
22
|
still: walrus_data.WalrusData,
|
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
/**
|
|
7
7
|
* `PerTrack<Data>` — one `Data` value per track of a release, held in tracklist
|
|
8
8
|
* order.
|
|
9
|
-
*
|
|
9
|
+
*
|
|
10
10
|
* A release's tracks are a flat, ordered `vector<Track>`, frozen at release
|
|
11
11
|
* creation. `PerTrack` is the parallel array to that list: index `i` holds the
|
|
12
12
|
* payload for the `i`-th track. It is the shared shape behind per-track release
|
|
13
13
|
* metadata such as cover art (`PerTrack<Option<CoverArt>>`) or genre — and the
|
|
14
14
|
* natural home for display grouping (disc/side boundaries), which core
|
|
15
15
|
* deliberately does not store.
|
|
16
|
-
*
|
|
16
|
+
*
|
|
17
17
|
* Construction reads the `Release` and sizes/validates the array against the
|
|
18
18
|
* tracklist length, so a `PerTrack` is parallel to the tracklist _by construction_
|
|
19
19
|
* — an extension cannot attach a misaligned array. Because a release's tracklist
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
23
|
import { type BcsType, bcs } from '@mysten/sui/bcs';
|
|
24
|
+
import type {} from "@mysten/bcs";
|
|
24
25
|
import { MoveTuple } from '../../../utils/index.js';
|
|
25
26
|
const $moduleName = 'per_track::per_track';
|
|
26
27
|
/**
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Release cover art: an album-level cover plus optional per-track cover overrides.
|
|
8
8
|
* Stored as a dynamic field on the release's UID, set/cleared via the release's
|
|
9
9
|
* cap-gated `uid_mut`.
|
|
10
|
-
*
|
|
10
|
+
*
|
|
11
11
|
* Cover art is presentation, not objective recording data, so it lives on the
|
|
12
12
|
* release (the consumer object) rather than the recording. A track's effective
|
|
13
13
|
* cover resolves as: its per-track override if set, else the album cover. The
|
|
@@ -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 cover_art from './deps/cover_art/cover_art.js';
|
|
22
23
|
import * as per_track from './deps/per_track/per_track.js';
|
|
@@ -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 */
|
|
@@ -5,24 +5,25 @@
|
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* First-party credits extension for releases.
|
|
8
|
-
*
|
|
8
|
+
*
|
|
9
9
|
* Attribution (top-line billing) is display-oriented and varies across platforms,
|
|
10
10
|
* so it lives here as a dynamic field on the release rather than in immutable
|
|
11
11
|
* core. The data is attached under `ExtensionKey()` via the release's cap-gated
|
|
12
12
|
* `uid_mut`, so every mutation is authorized by the release's admin and credits
|
|
13
13
|
* survive into any lifecycle state (they may be attached before or after the
|
|
14
14
|
* release 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 release-credits standard against the same
|
|
18
18
|
* `Release`. Credits are NOT read by the economics — they are attribution.
|
|
19
|
-
*
|
|
19
|
+
*
|
|
20
20
|
* A release credit carries exactly one role: a party is billed as either a
|
|
21
21
|
* `Primary` or a `Featured` artist on the release.
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
24
|
import { MoveTuple, MoveStruct, normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';
|
|
25
25
|
import { bcs } from '@mysten/sui/bcs';
|
|
26
|
+
import type {} from "@mysten/bcs";
|
|
26
27
|
import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
|
|
27
28
|
import * as vec_map from './deps/sui/vec_map.js';
|
|
28
29
|
import * as credit from './deps/miso_credit/credit.js';
|
|
@@ -8,18 +8,18 @@
|
|
|
8
8
|
* commercial packaging of recordings (an album, single, EP), and a release credit
|
|
9
9
|
* captures top-line billing: a party is either a primary artist or a featured
|
|
10
10
|
* artist on the release.
|
|
11
|
-
*
|
|
11
|
+
*
|
|
12
12
|
* ### Design
|
|
13
|
-
*
|
|
13
|
+
*
|
|
14
14
|
* `ReleasePartyRole` is a closed enum: variants can only be constructed and
|
|
15
15
|
* matched inside this module, so the `new_*_role` constructors are the external
|
|
16
16
|
* write-API and `name()` is the external read-API.
|
|
17
|
-
*
|
|
17
|
+
*
|
|
18
18
|
* - **No level axis and no `Custom` escape hatch.** Release billing is a small,
|
|
19
19
|
* fixed vocabulary: `Primary` or `Featured`.
|
|
20
20
|
* - **`name()` is the canonical identifier**, returned as a stable PascalCase
|
|
21
21
|
* token (`"Primary"` / `"Featured"`).
|
|
22
|
-
*
|
|
22
|
+
*
|
|
23
23
|
* These identifiers are Miso's own canonical vocabulary; any overlap with an
|
|
24
24
|
* external standard (e.g. DDEX) is coincidental, not a reproduction of it.
|
|
25
25
|
*/
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
/**
|
|
7
7
|
* What a release says about itself — the paragraph that runs under the title,
|
|
8
8
|
* written by whoever holds the release's admin cap, and believed.
|
|
9
|
-
*
|
|
9
|
+
*
|
|
10
10
|
* A free string, deliberately. Nothing on-chain reads it and nothing derives from
|
|
11
11
|
* it: this is editorial prose, not a fact the protocol can check. The facts a
|
|
12
12
|
* release carries that _are_ checkable — its tracklist, its splits, its state —
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
* they can be queried rather than read. What is left over is what a person wants
|
|
16
16
|
* to say, and the only useful thing to do with it is store it and attribute it to
|
|
17
17
|
* the cap holder.
|
|
18
|
-
*
|
|
18
|
+
*
|
|
19
19
|
* One slot, not a set. A release has one thing to say about itself; per-track
|
|
20
20
|
* notes and per-language translations are different concerns and would be
|
|
21
21
|
* different extensions. Folding either in here would turn a paragraph into a
|
|
22
22
|
* schema, and a schema is exactly what prose is not.
|
|
23
|
-
*
|
|
23
|
+
*
|
|
24
24
|
* The 8 KB ceiling is storage hygiene, not an editorial opinion — a backstop
|
|
25
25
|
* against pathological bloat in a shared object, deliberately set well above any
|
|
26
26
|
* description anyone is expected to write. It is the most generous free-text bound
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
* one that is too high costs only the gas of the writer who fills it. A
|
|
30
30
|
* description is also edited rarely, so the cost of rewriting the field in full
|
|
31
31
|
* lands on almost nobody.
|
|
32
|
-
*
|
|
32
|
+
*
|
|
33
33
|
* Genuinely long-form writing — an essay, a full set of liner notes — still
|
|
34
34
|
* belongs where the artwork goes, in a Walrus blob referenced by an extension.
|
|
35
35
|
* Nothing here stops someone using the whole 8 KB; the bound is a limit, not a
|
|
36
36
|
* recommendation.
|
|
37
|
-
*
|
|
37
|
+
*
|
|
38
38
|
* Attaching nothing and attaching a description are distinct states: absence means
|
|
39
39
|
* nobody has written one, which is why an empty string is rejected rather than
|
|
40
40
|
* stored. There is no such thing as an empty description.
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
|
|
43
43
|
import { MoveTuple, MoveStruct, normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';
|
|
44
44
|
import { bcs } from '@mysten/sui/bcs';
|
|
45
|
+
import type {} from "@mysten/bcs";
|
|
45
46
|
import { type Transaction } from '@mysten/sui/transactions';
|
|
46
47
|
const $moduleName = '@local-pkg/release_description::release_description';
|
|
47
48
|
export const ExtensionKey = new MoveTuple({ name: `${$moduleName}::ExtensionKey`, fields: [bcs.bool()] });
|