@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
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Streaming deep links for a Miso release, one Digital Service Provider (DSP) at a
|
|
8
8
|
* time. Attaches `DspLinkData` records to a `miso::release::Release`: an
|
|
9
9
|
* album-level link per DSP, plus an optional per-track link per DSP.
|
|
10
|
-
*
|
|
10
|
+
*
|
|
11
11
|
* `DspLinkData` is a single built-in enum with one variant per DSP, holding that
|
|
12
12
|
* DSP's native identifier(s) — e.g. a Spotify album id, or Apple Music's
|
|
13
13
|
* `(storefront, album_id, track_id)`. URLs are never stored: a client rebuilds the
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
* discriminant matching declaration order, via `platform()`), so each DSP occupies
|
|
17
17
|
* its own independent dynamic field on the release's `UID` — adding or clearing
|
|
18
18
|
* one DSP's link never touches another's.
|
|
19
|
-
*
|
|
19
|
+
*
|
|
20
20
|
* Two levels per DSP: the album-level link is the single `DspLinkData` stored
|
|
21
21
|
* under `ReleaseLinkKey(platform)`; the per-track links are a
|
|
22
22
|
* `PerTrack<Option<DspLinkData>>` stored under `TrackLinksKey(platform)` (one slot
|
|
23
23
|
* per track, aligned to the tracklist by construction). A track whose slot is
|
|
24
24
|
* `none` inherits the album-level link at the frontend.
|
|
25
|
-
*
|
|
25
|
+
*
|
|
26
26
|
* Streaming presence is presentation, not protocol-verifiable state, so it lives
|
|
27
27
|
* on the release (the consumer object), not the recording. All writes are gated by
|
|
28
28
|
* the `ReleaseAdminCap` via `uid_mut`; views are permissionless.
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
|
|
31
31
|
import { MoveTuple, MoveEnum, MoveStruct, normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';
|
|
32
32
|
import { bcs } from '@mysten/sui/bcs';
|
|
33
|
+
import type {} from "@mysten/bcs";
|
|
33
34
|
import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
|
|
34
35
|
const $moduleName = '@local-pkg/release_dsp_link::release_dsp_link';
|
|
35
36
|
export const ReleaseLinkKey = new MoveTuple({ name: `${$moduleName}::ReleaseLinkKey`, fields: [bcs.u8()] });
|
|
@@ -42,11 +43,10 @@ export const TrackLinksKey = new MoveTuple({ name: `${$moduleName}::TrackLinksKe
|
|
|
42
43
|
* album/track flag.
|
|
43
44
|
*
|
|
44
45
|
* **Variant order is frozen.** Storage keys off `platform()`, a `u8` discriminant
|
|
45
|
-
* matching declaration order (`Spotify = 0` … `YouTubeMusic = 7`).
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
* dynamic-field keys, stay stable.
|
|
46
|
+
* matching declaration order (`Spotify = 0` … `YouTubeMusic = 7`). This immutable
|
|
47
|
+
* package never changes those indices. Supporting another platform requires a new
|
|
48
|
+
* immutable package identity and an explicit client/data migration; existing
|
|
49
|
+
* variants are never reordered.
|
|
50
50
|
*/
|
|
51
51
|
export const DspLinkData = new MoveEnum({ name: `${$moduleName}::DspLinkData`, fields: {
|
|
52
52
|
/**
|
|
@@ -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
|
/**
|
|
@@ -6,15 +6,15 @@
|
|
|
6
6
|
/**
|
|
7
7
|
* Genre assignment for a Miso release: an album-level primary + secondary genres,
|
|
8
8
|
* plus optional per-track primary overrides.
|
|
9
|
-
*
|
|
9
|
+
*
|
|
10
10
|
* Genre is presentation, not objective recording data, so it is assigned on the
|
|
11
11
|
* release (the consumer object), not the recording. Stored as a single
|
|
12
12
|
* `ReleaseGenre` dynamic field on the release's UID, gated by the
|
|
13
13
|
* `ReleaseAdminCap`.
|
|
14
|
-
*
|
|
14
|
+
*
|
|
15
15
|
* A track's effective primary genre resolves as: its per-track override if set,
|
|
16
16
|
* else the album primary.
|
|
17
|
-
*
|
|
17
|
+
*
|
|
18
18
|
* A genre is either the album primary or a secondary, never both — the two are
|
|
19
19
|
* kept disjoint: setting the primary to a current secondary aborts (remove it from
|
|
20
20
|
* the secondaries first), and adding the current primary as a secondary aborts.
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
|
|
23
23
|
import { MoveTuple, MoveStruct, normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';
|
|
24
24
|
import { bcs } from '@mysten/sui/bcs';
|
|
25
|
+
import type {} from "@mysten/bcs";
|
|
25
26
|
import { type Transaction } from '@mysten/sui/transactions';
|
|
26
27
|
import * as per_track from './deps/per_track/per_track.js';
|
|
27
28
|
const $moduleName = '@local-pkg/release_genre::release_genre';
|
|
@@ -6,24 +6,24 @@
|
|
|
6
6
|
/**
|
|
7
7
|
* What a release calls itself — "Album", "EP", "Mixtape", "Split" — asserted by
|
|
8
8
|
* whoever holds the release's admin cap, and believed.
|
|
9
|
-
*
|
|
9
|
+
*
|
|
10
10
|
* Deliberately a free string rather than an enum. An enum would not decide the
|
|
11
11
|
* classification (the admin still picks) but it would decide the _menu_, and
|
|
12
12
|
* deciding which self-descriptions are legitimate is not the protocol's job.
|
|
13
13
|
* Artists release beat tapes and splits and things nobody has named yet; a closed
|
|
14
14
|
* set would make each of those a package swap, and in the meantime would quietly
|
|
15
15
|
* push releases into whichever official-looking box fit worst.
|
|
16
|
-
*
|
|
16
|
+
*
|
|
17
17
|
* Nothing here derives the value or checks it for plausibility. A four-track
|
|
18
18
|
* release may call itself an Album and a twelve-track one an EP; both happen, and
|
|
19
19
|
* the artist's intent is the fact worth recording. The only checks are structural
|
|
20
20
|
* — non-empty and bounded — so the field stays storable.
|
|
21
|
-
*
|
|
21
|
+
*
|
|
22
22
|
* This is the opposite call from `release_genre`, on purpose. Genre is a curated
|
|
23
23
|
* vocabulary because discovery and reward-eligibility depend on releases agreeing
|
|
24
24
|
* with each other about what a genre _is_. Nothing depends on two releases
|
|
25
25
|
* agreeing about what an EP is.
|
|
26
|
-
*
|
|
26
|
+
*
|
|
27
27
|
* The cost of that freedom lands on readers: "EP", "ep" and "Extended Play" are
|
|
28
28
|
* three distinct values here. Clients that group or facet by kind should normalise
|
|
29
29
|
* (case-fold at minimum) rather than expect canonical strings.
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
|
|
32
32
|
import { MoveTuple, MoveStruct, normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';
|
|
33
33
|
import { bcs } from '@mysten/sui/bcs';
|
|
34
|
+
import type {} from "@mysten/bcs";
|
|
34
35
|
import { type Transaction } from '@mysten/sui/transactions';
|
|
35
36
|
const $moduleName = '@local-pkg/release_kind::release_kind';
|
|
36
37
|
export const ExtensionKey = new MoveTuple({ name: `${$moduleName}::ExtensionKey`, fields: [bcs.bool()] });
|
|
@@ -4,17 +4,16 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* Revenue is split from the immutable Release tracklist and sent to
|
|
10
|
-
* Recording
|
|
11
|
-
*
|
|
12
|
-
* plugins may subsequently fold those funds into canonical Recording royalty
|
|
13
|
-
* pools.
|
|
7
|
+
* Raw-cap Release revenue actions.
|
|
8
|
+
*
|
|
9
|
+
* Revenue is split from the immutable Release tracklist and sent to the
|
|
10
|
+
* corresponding Recording addresses. Callers select only funds already held by the
|
|
11
|
+
* Release; they cannot select recipients or alter split amounts.
|
|
14
12
|
*/
|
|
15
13
|
|
|
16
14
|
import { MoveStruct, normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';
|
|
17
15
|
import { bcs } from '@mysten/sui/bcs';
|
|
16
|
+
import type {} from "@mysten/bcs";
|
|
18
17
|
import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
|
|
19
18
|
const $moduleName = '@local-pkg/release_revenue_distributor::release_revenue_distributor';
|
|
20
19
|
export const ReleaseTrackRevenueDistributedEvent = new MoveStruct({ name: `${$moduleName}::ReleaseTrackRevenueDistributedEvent<phantom Currency>`, fields: {
|
|
@@ -29,104 +28,93 @@ export const ReleaseRevenueDistributedEvent = new MoveStruct({ name: `${$moduleN
|
|
|
29
28
|
total_distributed: bcs.u64(),
|
|
30
29
|
remainder: bcs.u64()
|
|
31
30
|
} });
|
|
32
|
-
export interface
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
export interface RedeemAndDistributeArguments {
|
|
32
|
+
release: RawTransactionArgument<string>;
|
|
33
|
+
adminCap: RawTransactionArgument<string>;
|
|
34
|
+
value: RawTransactionArgument<number | bigint>;
|
|
35
35
|
}
|
|
36
|
-
export interface
|
|
36
|
+
export interface RedeemAndDistributeOptions {
|
|
37
37
|
package?: string;
|
|
38
|
-
arguments:
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
arguments: RedeemAndDistributeArguments | [
|
|
39
|
+
release: RawTransactionArgument<string>,
|
|
40
|
+
adminCap: RawTransactionArgument<string>,
|
|
41
|
+
value: RawTransactionArgument<number | bigint>
|
|
41
42
|
];
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
export function install(options: InstallOptions) {
|
|
45
|
-
const packageAddress = options.package ?? '@local-pkg/release_revenue_distributor';
|
|
46
|
-
const argumentsTypes = [
|
|
47
|
-
null,
|
|
48
|
-
null
|
|
49
|
-
] satisfies (string | null)[];
|
|
50
|
-
const parameterNames = ["vault", "vaultAdminCap"];
|
|
51
|
-
return (tx: Transaction) => tx.moveCall({
|
|
52
|
-
package: packageAddress,
|
|
53
|
-
module: 'release_revenue_distributor',
|
|
54
|
-
function: 'install',
|
|
55
|
-
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
export interface UninstallArguments {
|
|
59
|
-
vault: RawTransactionArgument<string>;
|
|
60
|
-
vaultAdminCap: RawTransactionArgument<string>;
|
|
61
|
-
}
|
|
62
|
-
export interface UninstallOptions {
|
|
63
|
-
package?: string;
|
|
64
|
-
arguments: UninstallArguments | [
|
|
65
|
-
vault: RawTransactionArgument<string>,
|
|
66
|
-
vaultAdminCap: RawTransactionArgument<string>
|
|
43
|
+
typeArguments: [
|
|
44
|
+
string
|
|
67
45
|
];
|
|
68
46
|
}
|
|
69
|
-
/**
|
|
70
|
-
|
|
47
|
+
/**
|
|
48
|
+
* Redeem `value` from the Release accumulator and distribute it according to the
|
|
49
|
+
* immutable tracklist.
|
|
50
|
+
*/
|
|
51
|
+
export function redeemAndDistribute(options: RedeemAndDistributeOptions) {
|
|
71
52
|
const packageAddress = options.package ?? '@local-pkg/release_revenue_distributor';
|
|
72
53
|
const argumentsTypes = [
|
|
73
54
|
null,
|
|
74
|
-
null
|
|
55
|
+
null,
|
|
56
|
+
'u64'
|
|
75
57
|
] satisfies (string | null)[];
|
|
76
|
-
const parameterNames = ["
|
|
58
|
+
const parameterNames = ["release", "adminCap", "value"];
|
|
77
59
|
return (tx: Transaction) => tx.moveCall({
|
|
78
60
|
package: packageAddress,
|
|
79
61
|
module: 'release_revenue_distributor',
|
|
80
|
-
function: '
|
|
62
|
+
function: 'redeem_and_distribute',
|
|
81
63
|
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
64
|
+
typeArguments: options.typeArguments
|
|
82
65
|
});
|
|
83
66
|
}
|
|
84
|
-
export interface
|
|
85
|
-
vault: RawTransactionArgument<string>;
|
|
67
|
+
export interface RedeemAllAndDistributeArguments {
|
|
86
68
|
release: RawTransactionArgument<string>;
|
|
87
|
-
|
|
69
|
+
adminCap: RawTransactionArgument<string>;
|
|
70
|
+
root: RawTransactionArgument<string>;
|
|
88
71
|
}
|
|
89
|
-
export interface
|
|
72
|
+
export interface RedeemAllAndDistributeOptions {
|
|
90
73
|
package?: string;
|
|
91
|
-
arguments:
|
|
92
|
-
vault: RawTransactionArgument<string>,
|
|
74
|
+
arguments: RedeemAllAndDistributeArguments | [
|
|
93
75
|
release: RawTransactionArgument<string>,
|
|
94
|
-
|
|
76
|
+
adminCap: RawTransactionArgument<string>,
|
|
77
|
+
root: RawTransactionArgument<string>
|
|
95
78
|
];
|
|
96
79
|
typeArguments: [
|
|
97
80
|
string
|
|
98
81
|
];
|
|
99
82
|
}
|
|
100
83
|
/**
|
|
101
|
-
* Redeem
|
|
102
|
-
*
|
|
84
|
+
* Redeem all Release funds settled at the start of the current consensus commit
|
|
85
|
+
* and distribute them according to the immutable tracklist.
|
|
86
|
+
*
|
|
87
|
+
* The framework snapshot is capped at `u64::MAX`; excess funds, newly sent funds,
|
|
88
|
+
* and per-track flooring remainder settle for a later call. This fixed crank
|
|
89
|
+
* prevents permissionless adapters from selecting dust-sized fragments. A zero
|
|
90
|
+
* settled snapshot is an idempotent no-op.
|
|
103
91
|
*/
|
|
104
|
-
export function
|
|
92
|
+
export function redeemAllAndDistribute(options: RedeemAllAndDistributeOptions) {
|
|
105
93
|
const packageAddress = options.package ?? '@local-pkg/release_revenue_distributor';
|
|
106
94
|
const argumentsTypes = [
|
|
107
95
|
null,
|
|
108
96
|
null,
|
|
109
|
-
|
|
97
|
+
null
|
|
110
98
|
] satisfies (string | null)[];
|
|
111
|
-
const parameterNames = ["
|
|
99
|
+
const parameterNames = ["release", "adminCap", "root"];
|
|
112
100
|
return (tx: Transaction) => tx.moveCall({
|
|
113
101
|
package: packageAddress,
|
|
114
102
|
module: 'release_revenue_distributor',
|
|
115
|
-
function: '
|
|
103
|
+
function: 'redeem_all_and_distribute',
|
|
116
104
|
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
117
105
|
typeArguments: options.typeArguments
|
|
118
106
|
});
|
|
119
107
|
}
|
|
120
108
|
export interface ReceiveAndDistributeArguments {
|
|
121
|
-
vault: RawTransactionArgument<string>;
|
|
122
109
|
release: RawTransactionArgument<string>;
|
|
110
|
+
adminCap: RawTransactionArgument<string>;
|
|
123
111
|
coins: TransactionArgument;
|
|
124
112
|
}
|
|
125
113
|
export interface ReceiveAndDistributeOptions {
|
|
126
114
|
package?: string;
|
|
127
115
|
arguments: ReceiveAndDistributeArguments | [
|
|
128
|
-
vault: RawTransactionArgument<string>,
|
|
129
116
|
release: RawTransactionArgument<string>,
|
|
117
|
+
adminCap: RawTransactionArgument<string>,
|
|
130
118
|
coins: TransactionArgument
|
|
131
119
|
];
|
|
132
120
|
typeArguments: [
|
|
@@ -134,9 +122,8 @@ export interface ReceiveAndDistributeOptions {
|
|
|
134
122
|
];
|
|
135
123
|
}
|
|
136
124
|
/**
|
|
137
|
-
* Receive selected
|
|
138
|
-
*
|
|
139
|
-
* after installation.
|
|
125
|
+
* Receive selected coins sent to the Release and distribute their combined value
|
|
126
|
+
* according to the immutable tracklist.
|
|
140
127
|
*/
|
|
141
128
|
export function receiveAndDistribute(options: ReceiveAndDistributeOptions) {
|
|
142
129
|
const packageAddress = options.package ?? '@local-pkg/release_revenue_distributor';
|
|
@@ -145,7 +132,7 @@ export function receiveAndDistribute(options: ReceiveAndDistributeOptions) {
|
|
|
145
132
|
null,
|
|
146
133
|
'vector<null>'
|
|
147
134
|
] satisfies (string | null)[];
|
|
148
|
-
const parameterNames = ["
|
|
135
|
+
const parameterNames = ["release", "adminCap", "coins"];
|
|
149
136
|
return (tx: Transaction) => tx.moveCall({
|
|
150
137
|
package: packageAddress,
|
|
151
138
|
module: 'release_revenue_distributor',
|
|
@@ -153,26 +140,4 @@ export function receiveAndDistribute(options: ReceiveAndDistributeOptions) {
|
|
|
153
140
|
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
154
141
|
typeArguments: options.typeArguments
|
|
155
142
|
});
|
|
156
|
-
}
|
|
157
|
-
export interface IsInstalledArguments {
|
|
158
|
-
vault: RawTransactionArgument<string>;
|
|
159
|
-
}
|
|
160
|
-
export interface IsInstalledOptions {
|
|
161
|
-
package?: string;
|
|
162
|
-
arguments: IsInstalledArguments | [
|
|
163
|
-
vault: RawTransactionArgument<string>
|
|
164
|
-
];
|
|
165
|
-
}
|
|
166
|
-
export function isInstalled(options: IsInstalledOptions) {
|
|
167
|
-
const packageAddress = options.package ?? '@local-pkg/release_revenue_distributor';
|
|
168
|
-
const argumentsTypes = [
|
|
169
|
-
null
|
|
170
|
-
] satisfies (string | null)[];
|
|
171
|
-
const parameterNames = ["vault"];
|
|
172
|
-
return (tx: Transaction) => tx.moveCall({
|
|
173
|
-
package: packageAddress,
|
|
174
|
-
module: 'release_revenue_distributor',
|
|
175
|
-
function: 'is_installed',
|
|
176
|
-
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
177
|
-
});
|
|
178
143
|
}
|
package/src/contracts/release_revenue_distributor_plugin/release_revenue_distributor_plugin.ts
ADDED
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
/** Vault adapter for Release revenue-distribution 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
|
+
}
|
|
21
|
+
export function install(options: InstallOptions) {
|
|
22
|
+
const packageAddress = options.package ?? '@local-pkg/release_revenue_distributor_plugin';
|
|
23
|
+
const argumentsTypes = [
|
|
24
|
+
null,
|
|
25
|
+
null
|
|
26
|
+
] satisfies (string | null)[];
|
|
27
|
+
const parameterNames = ["vault", "vaultAdminCap"];
|
|
28
|
+
return (tx: Transaction) => tx.moveCall({
|
|
29
|
+
package: packageAddress,
|
|
30
|
+
module: 'release_revenue_distributor_plugin',
|
|
31
|
+
function: 'install',
|
|
32
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
export interface UninstallArguments {
|
|
36
|
+
vault: RawTransactionArgument<string>;
|
|
37
|
+
vaultAdminCap: RawTransactionArgument<string>;
|
|
38
|
+
}
|
|
39
|
+
export interface UninstallOptions {
|
|
40
|
+
package?: string;
|
|
41
|
+
arguments: UninstallArguments | [
|
|
42
|
+
vault: RawTransactionArgument<string>,
|
|
43
|
+
vaultAdminCap: RawTransactionArgument<string>
|
|
44
|
+
];
|
|
45
|
+
}
|
|
46
|
+
export function uninstall(options: UninstallOptions) {
|
|
47
|
+
const packageAddress = options.package ?? '@local-pkg/release_revenue_distributor_plugin';
|
|
48
|
+
const argumentsTypes = [
|
|
49
|
+
null,
|
|
50
|
+
null
|
|
51
|
+
] satisfies (string | null)[];
|
|
52
|
+
const parameterNames = ["vault", "vaultAdminCap"];
|
|
53
|
+
return (tx: Transaction) => tx.moveCall({
|
|
54
|
+
package: packageAddress,
|
|
55
|
+
module: 'release_revenue_distributor_plugin',
|
|
56
|
+
function: 'uninstall',
|
|
57
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
export interface IsInstalledArguments {
|
|
61
|
+
vault: RawTransactionArgument<string>;
|
|
62
|
+
}
|
|
63
|
+
export interface IsInstalledOptions {
|
|
64
|
+
package?: string;
|
|
65
|
+
arguments: IsInstalledArguments | [
|
|
66
|
+
vault: RawTransactionArgument<string>
|
|
67
|
+
];
|
|
68
|
+
}
|
|
69
|
+
export function isInstalled(options: IsInstalledOptions) {
|
|
70
|
+
const packageAddress = options.package ?? '@local-pkg/release_revenue_distributor_plugin';
|
|
71
|
+
const argumentsTypes = [
|
|
72
|
+
null
|
|
73
|
+
] satisfies (string | null)[];
|
|
74
|
+
const parameterNames = ["vault"];
|
|
75
|
+
return (tx: Transaction) => tx.moveCall({
|
|
76
|
+
package: packageAddress,
|
|
77
|
+
module: 'release_revenue_distributor_plugin',
|
|
78
|
+
function: 'is_installed',
|
|
79
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
export interface ReceiveAndDistributeArguments {
|
|
83
|
+
vault: RawTransactionArgument<string>;
|
|
84
|
+
release: RawTransactionArgument<string>;
|
|
85
|
+
coins: TransactionArgument;
|
|
86
|
+
}
|
|
87
|
+
export interface ReceiveAndDistributeOptions {
|
|
88
|
+
package?: string;
|
|
89
|
+
arguments: ReceiveAndDistributeArguments | [
|
|
90
|
+
vault: RawTransactionArgument<string>,
|
|
91
|
+
release: RawTransactionArgument<string>,
|
|
92
|
+
coins: TransactionArgument
|
|
93
|
+
];
|
|
94
|
+
typeArguments: [
|
|
95
|
+
string
|
|
96
|
+
];
|
|
97
|
+
}
|
|
98
|
+
export function receiveAndDistribute(options: ReceiveAndDistributeOptions) {
|
|
99
|
+
const packageAddress = options.package ?? '@local-pkg/release_revenue_distributor_plugin';
|
|
100
|
+
const argumentsTypes = [
|
|
101
|
+
null,
|
|
102
|
+
null,
|
|
103
|
+
'vector<null>'
|
|
104
|
+
] satisfies (string | null)[];
|
|
105
|
+
const parameterNames = ["vault", "release", "coins"];
|
|
106
|
+
return (tx: Transaction) => tx.moveCall({
|
|
107
|
+
package: packageAddress,
|
|
108
|
+
module: 'release_revenue_distributor_plugin',
|
|
109
|
+
function: 'receive_and_distribute',
|
|
110
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
111
|
+
typeArguments: options.typeArguments
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
export interface RedeemAllAndDistributeArguments {
|
|
115
|
+
vault: RawTransactionArgument<string>;
|
|
116
|
+
release: RawTransactionArgument<string>;
|
|
117
|
+
root: RawTransactionArgument<string>;
|
|
118
|
+
}
|
|
119
|
+
export interface RedeemAllAndDistributeOptions {
|
|
120
|
+
package?: string;
|
|
121
|
+
arguments: RedeemAllAndDistributeArguments | [
|
|
122
|
+
vault: RawTransactionArgument<string>,
|
|
123
|
+
release: RawTransactionArgument<string>,
|
|
124
|
+
root: RawTransactionArgument<string>
|
|
125
|
+
];
|
|
126
|
+
typeArguments: [
|
|
127
|
+
string
|
|
128
|
+
];
|
|
129
|
+
}
|
|
130
|
+
export function redeemAllAndDistribute(options: RedeemAllAndDistributeOptions) {
|
|
131
|
+
const packageAddress = options.package ?? '@local-pkg/release_revenue_distributor_plugin';
|
|
132
|
+
const argumentsTypes = [
|
|
133
|
+
null,
|
|
134
|
+
null,
|
|
135
|
+
null
|
|
136
|
+
] satisfies (string | null)[];
|
|
137
|
+
const parameterNames = ["vault", "release", "root"];
|
|
138
|
+
return (tx: Transaction) => tx.moveCall({
|
|
139
|
+
package: packageAddress,
|
|
140
|
+
module: 'release_revenue_distributor_plugin',
|
|
141
|
+
function: 'redeem_all_and_distribute',
|
|
142
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
143
|
+
typeArguments: options.typeArguments
|
|
144
|
+
});
|
|
145
|
+
}
|
package/src/contracts/{composition_royalty_pool → release_revenue_distributor_plugin}/witness.ts
RENAMED
|
@@ -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/release_revenue_distributor_plugin::witness';
|
|
7
8
|
export const Witness = new MoveTuple({ name: `${$moduleName}::Witness`, fields: [bcs.bool()] });
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
|
|
26
26
|
import { MoveStruct } from '../../../utils/index.js';
|
|
27
27
|
import { bcs } from '@mysten/sui/bcs';
|
|
28
|
+
import type {} from "@mysten/bcs";
|
|
28
29
|
import * as balance from '../sui/balance.js';
|
|
29
30
|
import * as vec_map from '../sui/vec_map.js';
|
|
30
31
|
import * as type_name from '../std/type_name.js';
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import { MoveStruct } from '../../../utils/index.js';
|
|
9
9
|
import { bcs } from '@mysten/sui/bcs';
|
|
10
|
+
import type {} from "@mysten/bcs";
|
|
10
11
|
const $moduleName = 'std::type_name';
|
|
11
12
|
export const TypeName = new MoveStruct({ name: `${$moduleName}::TypeName`, fields: {
|
|
12
13
|
/**
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
import { MoveStruct } from '../../../utils/index.js';
|
|
13
13
|
import { bcs } from '@mysten/sui/bcs';
|
|
14
|
+
import type {} from "@mysten/bcs";
|
|
14
15
|
const $moduleName = '0x2::balance';
|
|
15
16
|
export const Balance = new MoveStruct({ name: `${$moduleName}::Balance<phantom T>`, fields: {
|
|
16
17
|
value: bcs.u64()
|
|
@@ -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,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* A stake whose rewards are irrevocably routed to its parent's royalty pool.
|
|
8
|
-
*
|
|
8
|
+
*
|
|
9
9
|
* A `RoutedStake<StakeShare, PoolShare>` is a derived object of any UID-bearing
|
|
10
10
|
* parent (same pattern as `RoyaltyPool`). It wraps a `Stake<StakeShare>` — shares
|
|
11
11
|
* of some other asset that the parent owns — and commits the rewards that stake
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* the same parent. The wrapper exists precisely so the raw `Stake` is never
|
|
15
15
|
* exposed — a bare shared `Stake` would let any caller claim its rewards and keep
|
|
16
16
|
* them.
|
|
17
|
-
*
|
|
17
|
+
*
|
|
18
18
|
* Because the route is fixed, the wrapper is safe to share: `sweep` is
|
|
19
19
|
* permissionless, and it does not matter who calls it, since the money can only go
|
|
20
20
|
* one place. Lifecycle operations (`register`, `unregister`, `unstake`, `restake`)
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
* are gated because a stake registers at most once per `Currency`: a
|
|
24
24
|
* permissionless register could grief by binding the stake to a garbage same-typed
|
|
25
25
|
* pool, permanently blocking the real one for that currency.
|
|
26
|
-
*
|
|
26
|
+
*
|
|
27
27
|
* The derivation key encodes only `StakeShare` — at most one routed stake per
|
|
28
28
|
* `(parent, StakeShare)` pair, whatever `PoolShare` it used (the same
|
|
29
29
|
* burned-by-first-claim consequence as `RoyaltyPoolKey`; the parent's cap-gated
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
|
|
35
35
|
import { MoveStruct, 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
|
import * as stake_1 from './deps/royalty_pool/stake.js';
|
|
39
40
|
const $moduleName = '@local-pkg/routed_stake::routed_stake';
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import { MoveStruct } from '../../../utils/index.js';
|
|
9
9
|
import { bcs } from '@mysten/sui/bcs';
|
|
10
|
+
import type {} from "@mysten/bcs";
|
|
10
11
|
const $moduleName = 'std::type_name';
|
|
11
12
|
export const TypeName = new MoveStruct({ name: `${$moduleName}::TypeName`, fields: {
|
|
12
13
|
/**
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
import { MoveStruct } from '../../../utils/index.js';
|
|
13
13
|
import { bcs } from '@mysten/sui/bcs';
|
|
14
|
+
import type {} from "@mysten/bcs";
|
|
14
15
|
const $moduleName = '0x2::balance';
|
|
15
16
|
export const Balance = new MoveStruct({ name: `${$moduleName}::Balance<phantom T>`, fields: {
|
|
16
17
|
value: bcs.u64()
|
|
@@ -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 */
|
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
|
|
61
61
|
import { MoveStruct, MoveTuple, normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';
|
|
62
62
|
import { bcs } from '@mysten/sui/bcs';
|
|
63
|
+
import type {} from "@mysten/bcs";
|
|
63
64
|
import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
|
|
64
65
|
import * as balance_1 from './deps/sui/balance.js';
|
|
65
66
|
const $moduleName = '@local-pkg/royalty_pool::pool';
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
|
|
26
26
|
import { MoveStruct, normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';
|
|
27
27
|
import { bcs } from '@mysten/sui/bcs';
|
|
28
|
+
import type {} from "@mysten/bcs";
|
|
28
29
|
import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
|
|
29
30
|
import * as balance_1 from './deps/sui/balance.js';
|
|
30
31
|
import * as vec_map from './deps/sui/vec_map.js';
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* a handle into the object system to retrieve those keys and values. Note that
|
|
11
11
|
* this means that `Bag` values with exactly the same key-value mapping will not be
|
|
12
12
|
* equal, with `==`, at runtime. For example
|
|
13
|
-
*
|
|
13
|
+
*
|
|
14
14
|
* ```
|
|
15
15
|
* let bag1 = bag::new();
|
|
16
16
|
* let bag2 = bag::new();
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* // bag1 does not equal bag2, despite having the same entries
|
|
22
22
|
* assert!(&bag1 != &bag2);
|
|
23
23
|
* ```
|
|
24
|
-
*
|
|
24
|
+
*
|
|
25
25
|
* At it's core, `sui::bag` is a wrapper around `UID` that allows for access to
|
|
26
26
|
* `sui::dynamic_field` while preventing accidentally stranding field values. A
|
|
27
27
|
* `UID` can be deleted, even if it has dynamic fields associated with it, but a
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
|
|
31
31
|
import { MoveStruct } from '../../../utils/index.js';
|
|
32
32
|
import { bcs } from '@mysten/sui/bcs';
|
|
33
|
+
import type {} from "@mysten/bcs";
|
|
33
34
|
const $moduleName = '0x2::bag';
|
|
34
35
|
export const Bag = new MoveStruct({ name: `${$moduleName}::Bag`, fields: {
|
|
35
36
|
/** the ID of this bag */
|