@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
|
@@ -0,0 +1,603 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* A fixed-price or minimum-price Record Shop listing for one Pressing.
|
|
8
|
+
*
|
|
9
|
+
* There is no Record Shop singleton. Each `Listing<Currency>` derives directly
|
|
10
|
+
* from its Pressing and is independently shared, so currencies and Pressings
|
|
11
|
+
* remain separate consensus lanes except for their common edition sequence.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import { MoveTuple, MoveEnum, MoveStruct, normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';
|
|
15
|
+
import { bcs } from '@mysten/sui/bcs';
|
|
16
|
+
import type {} from "@mysten/bcs";
|
|
17
|
+
import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
|
|
18
|
+
import * as type_name from './deps/std/type_name.js';
|
|
19
|
+
const $moduleName = '@local-pkg/miso_record_shop::listing';
|
|
20
|
+
export const ListingKey = new MoveTuple({ name: `${$moduleName}::ListingKey<phantom Currency>`, fields: [bcs.bool()] });
|
|
21
|
+
/** Payment rule for a Listing. */
|
|
22
|
+
export const Pricing = new MoveEnum({ name: `${$moduleName}::Pricing`, fields: {
|
|
23
|
+
/** Require payment to equal the configured price. */
|
|
24
|
+
Fixed: bcs.u64(),
|
|
25
|
+
/** Require payment to be at least the configured price. */
|
|
26
|
+
Floor: bcs.u64()
|
|
27
|
+
} });
|
|
28
|
+
/** Whether purchases are accepted. */
|
|
29
|
+
export const State = new MoveEnum({ name: `${$moduleName}::State`, fields: {
|
|
30
|
+
Enabled: null,
|
|
31
|
+
Disabled: null
|
|
32
|
+
} });
|
|
33
|
+
export const Listing = new MoveStruct({ name: `${$moduleName}::Listing<phantom Currency>`, fields: {
|
|
34
|
+
/** The Listing's derived object identity. */
|
|
35
|
+
id: bcs.Address,
|
|
36
|
+
/** The release that receives payments from this Listing. */
|
|
37
|
+
release_id: bcs.Address,
|
|
38
|
+
/** The Pressing from which this Listing purchases Records. */
|
|
39
|
+
pressing_id: bcs.Address,
|
|
40
|
+
/** The active payment rule. */
|
|
41
|
+
pricing: Pricing,
|
|
42
|
+
/** Whether the Listing currently accepts purchases. */
|
|
43
|
+
state: State
|
|
44
|
+
} });
|
|
45
|
+
export const ListingCreatedEvent = new MoveStruct({ name: `${$moduleName}::ListingCreatedEvent<phantom Currency>`, fields: {
|
|
46
|
+
/** The newly created Listing. */
|
|
47
|
+
listing_id: bcs.Address,
|
|
48
|
+
/** The release that receives Listing payments. */
|
|
49
|
+
release_id: bcs.Address,
|
|
50
|
+
/** The Pressing sold by the Listing. */
|
|
51
|
+
pressing_id: bcs.Address,
|
|
52
|
+
/** The Listing's initial payment rule. */
|
|
53
|
+
pricing: Pricing,
|
|
54
|
+
/** The Listing's initial state. */
|
|
55
|
+
state: State
|
|
56
|
+
} });
|
|
57
|
+
export const ListingPriceChangedEvent = new MoveStruct({ name: `${$moduleName}::ListingPriceChangedEvent<phantom Currency>`, fields: {
|
|
58
|
+
/** The updated Listing. */
|
|
59
|
+
listing_id: bcs.Address,
|
|
60
|
+
/** The new payment rule. */
|
|
61
|
+
pricing: Pricing
|
|
62
|
+
} });
|
|
63
|
+
export const ListingStateChangedEvent = new MoveStruct({ name: `${$moduleName}::ListingStateChangedEvent<phantom Currency>`, fields: {
|
|
64
|
+
/** The updated Listing. */
|
|
65
|
+
listing_id: bcs.Address,
|
|
66
|
+
/** The new Listing state. */
|
|
67
|
+
state: State
|
|
68
|
+
} });
|
|
69
|
+
export const RecordSoldEvent = new MoveStruct({ name: `${$moduleName}::RecordSoldEvent<phantom Currency>`, fields: {
|
|
70
|
+
/** The Listing that completed the sale. */
|
|
71
|
+
listing_id: bcs.Address,
|
|
72
|
+
/** The purchased Record. */
|
|
73
|
+
record_id: bcs.Address,
|
|
74
|
+
/** The release that received payment. */
|
|
75
|
+
release_id: bcs.Address,
|
|
76
|
+
/** The Pressing that issued the Record. */
|
|
77
|
+
pressing_id: bcs.Address,
|
|
78
|
+
/** The edition represented by the Pressing. */
|
|
79
|
+
edition: bcs.u16(),
|
|
80
|
+
/** The Record's number within its edition. */
|
|
81
|
+
number: bcs.u32(),
|
|
82
|
+
/** The defining type of the purchase currency. */
|
|
83
|
+
purchase_currency: type_name.TypeName,
|
|
84
|
+
/** The amount paid for the Record. */
|
|
85
|
+
purchase_price: bcs.u64(),
|
|
86
|
+
/** The transaction sender who purchased the Record. */
|
|
87
|
+
purchased_by: bcs.Address,
|
|
88
|
+
/** The purchase time in Unix milliseconds from Sui's Clock. */
|
|
89
|
+
purchased_timestamp_ms: bcs.u64(),
|
|
90
|
+
/** The payment rule accepted for the sale. */
|
|
91
|
+
pricing: Pricing
|
|
92
|
+
} });
|
|
93
|
+
export interface FixedArguments {
|
|
94
|
+
price: RawTransactionArgument<number | bigint>;
|
|
95
|
+
}
|
|
96
|
+
export interface FixedOptions {
|
|
97
|
+
package?: string;
|
|
98
|
+
arguments: FixedArguments | [
|
|
99
|
+
price: RawTransactionArgument<number | bigint>
|
|
100
|
+
];
|
|
101
|
+
}
|
|
102
|
+
/** Construct an exact-payment pricing rule. */
|
|
103
|
+
export function fixed(options: FixedOptions) {
|
|
104
|
+
const packageAddress = options.package ?? '@local-pkg/miso_record_shop';
|
|
105
|
+
const argumentsTypes = [
|
|
106
|
+
'u64'
|
|
107
|
+
] satisfies (string | null)[];
|
|
108
|
+
const parameterNames = ["price"];
|
|
109
|
+
return (tx: Transaction) => tx.moveCall({
|
|
110
|
+
package: packageAddress,
|
|
111
|
+
module: 'listing',
|
|
112
|
+
function: 'fixed',
|
|
113
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
export interface FloorArguments {
|
|
117
|
+
price: RawTransactionArgument<number | bigint>;
|
|
118
|
+
}
|
|
119
|
+
export interface FloorOptions {
|
|
120
|
+
package?: string;
|
|
121
|
+
arguments: FloorArguments | [
|
|
122
|
+
price: RawTransactionArgument<number | bigint>
|
|
123
|
+
];
|
|
124
|
+
}
|
|
125
|
+
/** Construct a minimum-payment pricing rule. */
|
|
126
|
+
export function floor(options: FloorOptions) {
|
|
127
|
+
const packageAddress = options.package ?? '@local-pkg/miso_record_shop';
|
|
128
|
+
const argumentsTypes = [
|
|
129
|
+
'u64'
|
|
130
|
+
] satisfies (string | null)[];
|
|
131
|
+
const parameterNames = ["price"];
|
|
132
|
+
return (tx: Transaction) => tx.moveCall({
|
|
133
|
+
package: packageAddress,
|
|
134
|
+
module: 'listing',
|
|
135
|
+
function: 'floor',
|
|
136
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
export interface EnabledOptions {
|
|
140
|
+
package?: string;
|
|
141
|
+
arguments?: [
|
|
142
|
+
];
|
|
143
|
+
}
|
|
144
|
+
/** Construct the state that accepts purchases. */
|
|
145
|
+
export function enabled(options: EnabledOptions = {}) {
|
|
146
|
+
const packageAddress = options.package ?? '@local-pkg/miso_record_shop';
|
|
147
|
+
return (tx: Transaction) => tx.moveCall({
|
|
148
|
+
package: packageAddress,
|
|
149
|
+
module: 'listing',
|
|
150
|
+
function: 'enabled',
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
export interface DisabledOptions {
|
|
154
|
+
package?: string;
|
|
155
|
+
arguments?: [
|
|
156
|
+
];
|
|
157
|
+
}
|
|
158
|
+
/** Construct the state that rejects purchases. */
|
|
159
|
+
export function disabled(options: DisabledOptions = {}) {
|
|
160
|
+
const packageAddress = options.package ?? '@local-pkg/miso_record_shop';
|
|
161
|
+
return (tx: Transaction) => tx.moveCall({
|
|
162
|
+
package: packageAddress,
|
|
163
|
+
module: 'listing',
|
|
164
|
+
function: 'disabled',
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
export interface NewArguments {
|
|
168
|
+
pressing: RawTransactionArgument<string>;
|
|
169
|
+
cap: RawTransactionArgument<string>;
|
|
170
|
+
pricing: TransactionArgument;
|
|
171
|
+
}
|
|
172
|
+
export interface NewOptions {
|
|
173
|
+
package?: string;
|
|
174
|
+
arguments: NewArguments | [
|
|
175
|
+
pressing: RawTransactionArgument<string>,
|
|
176
|
+
cap: RawTransactionArgument<string>,
|
|
177
|
+
pricing: TransactionArgument
|
|
178
|
+
];
|
|
179
|
+
typeArguments: [
|
|
180
|
+
string
|
|
181
|
+
];
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Create the permanent Listing for `Currency` under this Pressing.
|
|
185
|
+
*
|
|
186
|
+
* The Listing starts enabled and is returned unshared so callers can compose
|
|
187
|
+
* further configuration before calling `share`.
|
|
188
|
+
*/
|
|
189
|
+
export function _new(options: NewOptions) {
|
|
190
|
+
const packageAddress = options.package ?? '@local-pkg/miso_record_shop';
|
|
191
|
+
const argumentsTypes = [
|
|
192
|
+
null,
|
|
193
|
+
null,
|
|
194
|
+
null
|
|
195
|
+
] satisfies (string | null)[];
|
|
196
|
+
const parameterNames = ["pressing", "cap", "pricing"];
|
|
197
|
+
return (tx: Transaction) => tx.moveCall({
|
|
198
|
+
package: packageAddress,
|
|
199
|
+
module: 'listing',
|
|
200
|
+
function: 'new',
|
|
201
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
202
|
+
typeArguments: options.typeArguments
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
export interface ShareArguments {
|
|
206
|
+
self: RawTransactionArgument<string>;
|
|
207
|
+
}
|
|
208
|
+
export interface ShareOptions {
|
|
209
|
+
package?: string;
|
|
210
|
+
arguments: ShareArguments | [
|
|
211
|
+
self: RawTransactionArgument<string>
|
|
212
|
+
];
|
|
213
|
+
typeArguments: [
|
|
214
|
+
string
|
|
215
|
+
];
|
|
216
|
+
}
|
|
217
|
+
/** Share a newly created Listing. */
|
|
218
|
+
export function share(options: ShareOptions) {
|
|
219
|
+
const packageAddress = options.package ?? '@local-pkg/miso_record_shop';
|
|
220
|
+
const argumentsTypes = [
|
|
221
|
+
null
|
|
222
|
+
] satisfies (string | null)[];
|
|
223
|
+
const parameterNames = ["self"];
|
|
224
|
+
return (tx: Transaction) => tx.moveCall({
|
|
225
|
+
package: packageAddress,
|
|
226
|
+
module: 'listing',
|
|
227
|
+
function: 'share',
|
|
228
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
229
|
+
typeArguments: options.typeArguments
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
export interface SetPriceArguments {
|
|
233
|
+
self: RawTransactionArgument<string>;
|
|
234
|
+
cap: RawTransactionArgument<string>;
|
|
235
|
+
pricing: TransactionArgument;
|
|
236
|
+
}
|
|
237
|
+
export interface SetPriceOptions {
|
|
238
|
+
package?: string;
|
|
239
|
+
arguments: SetPriceArguments | [
|
|
240
|
+
self: RawTransactionArgument<string>,
|
|
241
|
+
cap: RawTransactionArgument<string>,
|
|
242
|
+
pricing: TransactionArgument
|
|
243
|
+
];
|
|
244
|
+
typeArguments: [
|
|
245
|
+
string
|
|
246
|
+
];
|
|
247
|
+
}
|
|
248
|
+
/** Change the payment rule using the capability for the bound Pressing. */
|
|
249
|
+
export function setPrice(options: SetPriceOptions) {
|
|
250
|
+
const packageAddress = options.package ?? '@local-pkg/miso_record_shop';
|
|
251
|
+
const argumentsTypes = [
|
|
252
|
+
null,
|
|
253
|
+
null,
|
|
254
|
+
null
|
|
255
|
+
] satisfies (string | null)[];
|
|
256
|
+
const parameterNames = ["self", "cap", "pricing"];
|
|
257
|
+
return (tx: Transaction) => tx.moveCall({
|
|
258
|
+
package: packageAddress,
|
|
259
|
+
module: 'listing',
|
|
260
|
+
function: 'set_price',
|
|
261
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
262
|
+
typeArguments: options.typeArguments
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
export interface SetStateArguments {
|
|
266
|
+
self: RawTransactionArgument<string>;
|
|
267
|
+
cap: RawTransactionArgument<string>;
|
|
268
|
+
state: TransactionArgument;
|
|
269
|
+
}
|
|
270
|
+
export interface SetStateOptions {
|
|
271
|
+
package?: string;
|
|
272
|
+
arguments: SetStateArguments | [
|
|
273
|
+
self: RawTransactionArgument<string>,
|
|
274
|
+
cap: RawTransactionArgument<string>,
|
|
275
|
+
state: TransactionArgument
|
|
276
|
+
];
|
|
277
|
+
typeArguments: [
|
|
278
|
+
string
|
|
279
|
+
];
|
|
280
|
+
}
|
|
281
|
+
/** Enable or disable purchases using the capability for the bound Pressing. */
|
|
282
|
+
export function setState(options: SetStateOptions) {
|
|
283
|
+
const packageAddress = options.package ?? '@local-pkg/miso_record_shop';
|
|
284
|
+
const argumentsTypes = [
|
|
285
|
+
null,
|
|
286
|
+
null,
|
|
287
|
+
null
|
|
288
|
+
] satisfies (string | null)[];
|
|
289
|
+
const parameterNames = ["self", "cap", "state"];
|
|
290
|
+
return (tx: Transaction) => tx.moveCall({
|
|
291
|
+
package: packageAddress,
|
|
292
|
+
module: 'listing',
|
|
293
|
+
function: 'set_state',
|
|
294
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
295
|
+
typeArguments: options.typeArguments
|
|
296
|
+
});
|
|
297
|
+
}
|
|
298
|
+
export interface PurchaseArguments {
|
|
299
|
+
self: RawTransactionArgument<string>;
|
|
300
|
+
pressing: RawTransactionArgument<string>;
|
|
301
|
+
payment: TransactionArgument;
|
|
302
|
+
expectedPricing: TransactionArgument;
|
|
303
|
+
}
|
|
304
|
+
export interface PurchaseOptions {
|
|
305
|
+
package?: string;
|
|
306
|
+
arguments: PurchaseArguments | [
|
|
307
|
+
self: RawTransactionArgument<string>,
|
|
308
|
+
pressing: RawTransactionArgument<string>,
|
|
309
|
+
payment: TransactionArgument,
|
|
310
|
+
expectedPricing: TransactionArgument
|
|
311
|
+
];
|
|
312
|
+
typeArguments: [
|
|
313
|
+
string
|
|
314
|
+
];
|
|
315
|
+
}
|
|
316
|
+
/**
|
|
317
|
+
* Purchase and return the next Record from the bound Pressing.
|
|
318
|
+
*
|
|
319
|
+
* `expected_pricing` protects the buyer against stale price or pricing-rule
|
|
320
|
+
* changes. The entire payment is deposited into the Release object's funds
|
|
321
|
+
* accumulator; a Floor overpayment is not refunded. The caller decides how to
|
|
322
|
+
* transfer or compose the returned Record.
|
|
323
|
+
*/
|
|
324
|
+
export function purchase(options: PurchaseOptions) {
|
|
325
|
+
const packageAddress = options.package ?? '@local-pkg/miso_record_shop';
|
|
326
|
+
const argumentsTypes = [
|
|
327
|
+
null,
|
|
328
|
+
null,
|
|
329
|
+
null,
|
|
330
|
+
null,
|
|
331
|
+
'0x2::clock::Clock'
|
|
332
|
+
] satisfies (string | null)[];
|
|
333
|
+
const parameterNames = ["self", "pressing", "payment", "expectedPricing"];
|
|
334
|
+
return (tx: Transaction) => tx.moveCall({
|
|
335
|
+
package: packageAddress,
|
|
336
|
+
module: 'listing',
|
|
337
|
+
function: 'purchase',
|
|
338
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
339
|
+
typeArguments: options.typeArguments
|
|
340
|
+
});
|
|
341
|
+
}
|
|
342
|
+
export interface ReleaseIdArguments {
|
|
343
|
+
self: RawTransactionArgument<string>;
|
|
344
|
+
}
|
|
345
|
+
export interface ReleaseIdOptions {
|
|
346
|
+
package?: string;
|
|
347
|
+
arguments: ReleaseIdArguments | [
|
|
348
|
+
self: RawTransactionArgument<string>
|
|
349
|
+
];
|
|
350
|
+
typeArguments: [
|
|
351
|
+
string
|
|
352
|
+
];
|
|
353
|
+
}
|
|
354
|
+
/** Return the release that receives Listing payments. */
|
|
355
|
+
export function releaseId(options: ReleaseIdOptions) {
|
|
356
|
+
const packageAddress = options.package ?? '@local-pkg/miso_record_shop';
|
|
357
|
+
const argumentsTypes = [
|
|
358
|
+
null
|
|
359
|
+
] satisfies (string | null)[];
|
|
360
|
+
const parameterNames = ["self"];
|
|
361
|
+
return (tx: Transaction) => tx.moveCall({
|
|
362
|
+
package: packageAddress,
|
|
363
|
+
module: 'listing',
|
|
364
|
+
function: 'release_id',
|
|
365
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
366
|
+
typeArguments: options.typeArguments
|
|
367
|
+
});
|
|
368
|
+
}
|
|
369
|
+
export interface PressingIdArguments {
|
|
370
|
+
self: RawTransactionArgument<string>;
|
|
371
|
+
}
|
|
372
|
+
export interface PressingIdOptions {
|
|
373
|
+
package?: string;
|
|
374
|
+
arguments: PressingIdArguments | [
|
|
375
|
+
self: RawTransactionArgument<string>
|
|
376
|
+
];
|
|
377
|
+
typeArguments: [
|
|
378
|
+
string
|
|
379
|
+
];
|
|
380
|
+
}
|
|
381
|
+
/** Return the Pressing sold by this Listing. */
|
|
382
|
+
export function pressingId(options: PressingIdOptions) {
|
|
383
|
+
const packageAddress = options.package ?? '@local-pkg/miso_record_shop';
|
|
384
|
+
const argumentsTypes = [
|
|
385
|
+
null
|
|
386
|
+
] satisfies (string | null)[];
|
|
387
|
+
const parameterNames = ["self"];
|
|
388
|
+
return (tx: Transaction) => tx.moveCall({
|
|
389
|
+
package: packageAddress,
|
|
390
|
+
module: 'listing',
|
|
391
|
+
function: 'pressing_id',
|
|
392
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
393
|
+
typeArguments: options.typeArguments
|
|
394
|
+
});
|
|
395
|
+
}
|
|
396
|
+
export interface PricingArguments {
|
|
397
|
+
self: RawTransactionArgument<string>;
|
|
398
|
+
}
|
|
399
|
+
export interface PricingOptions {
|
|
400
|
+
package?: string;
|
|
401
|
+
arguments: PricingArguments | [
|
|
402
|
+
self: RawTransactionArgument<string>
|
|
403
|
+
];
|
|
404
|
+
typeArguments: [
|
|
405
|
+
string
|
|
406
|
+
];
|
|
407
|
+
}
|
|
408
|
+
/** Return this Listing's payment rule. */
|
|
409
|
+
export function pricing(options: PricingOptions) {
|
|
410
|
+
const packageAddress = options.package ?? '@local-pkg/miso_record_shop';
|
|
411
|
+
const argumentsTypes = [
|
|
412
|
+
null
|
|
413
|
+
] satisfies (string | null)[];
|
|
414
|
+
const parameterNames = ["self"];
|
|
415
|
+
return (tx: Transaction) => tx.moveCall({
|
|
416
|
+
package: packageAddress,
|
|
417
|
+
module: 'listing',
|
|
418
|
+
function: 'pricing',
|
|
419
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
420
|
+
typeArguments: options.typeArguments
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
export interface PriceArguments {
|
|
424
|
+
self: RawTransactionArgument<string>;
|
|
425
|
+
}
|
|
426
|
+
export interface PriceOptions {
|
|
427
|
+
package?: string;
|
|
428
|
+
arguments: PriceArguments | [
|
|
429
|
+
self: RawTransactionArgument<string>
|
|
430
|
+
];
|
|
431
|
+
typeArguments: [
|
|
432
|
+
string
|
|
433
|
+
];
|
|
434
|
+
}
|
|
435
|
+
/** Return the amount configured by this Listing's payment rule. */
|
|
436
|
+
export function price(options: PriceOptions) {
|
|
437
|
+
const packageAddress = options.package ?? '@local-pkg/miso_record_shop';
|
|
438
|
+
const argumentsTypes = [
|
|
439
|
+
null
|
|
440
|
+
] satisfies (string | null)[];
|
|
441
|
+
const parameterNames = ["self"];
|
|
442
|
+
return (tx: Transaction) => tx.moveCall({
|
|
443
|
+
package: packageAddress,
|
|
444
|
+
module: 'listing',
|
|
445
|
+
function: 'price',
|
|
446
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
447
|
+
typeArguments: options.typeArguments
|
|
448
|
+
});
|
|
449
|
+
}
|
|
450
|
+
export interface StateArguments {
|
|
451
|
+
self: RawTransactionArgument<string>;
|
|
452
|
+
}
|
|
453
|
+
export interface StateOptions {
|
|
454
|
+
package?: string;
|
|
455
|
+
arguments: StateArguments | [
|
|
456
|
+
self: RawTransactionArgument<string>
|
|
457
|
+
];
|
|
458
|
+
typeArguments: [
|
|
459
|
+
string
|
|
460
|
+
];
|
|
461
|
+
}
|
|
462
|
+
/** Return this Listing's current state. */
|
|
463
|
+
export function state(options: StateOptions) {
|
|
464
|
+
const packageAddress = options.package ?? '@local-pkg/miso_record_shop';
|
|
465
|
+
const argumentsTypes = [
|
|
466
|
+
null
|
|
467
|
+
] satisfies (string | null)[];
|
|
468
|
+
const parameterNames = ["self"];
|
|
469
|
+
return (tx: Transaction) => tx.moveCall({
|
|
470
|
+
package: packageAddress,
|
|
471
|
+
module: 'listing',
|
|
472
|
+
function: 'state',
|
|
473
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
474
|
+
typeArguments: options.typeArguments
|
|
475
|
+
});
|
|
476
|
+
}
|
|
477
|
+
export interface IsEnabledArguments {
|
|
478
|
+
self: RawTransactionArgument<string>;
|
|
479
|
+
}
|
|
480
|
+
export interface IsEnabledOptions {
|
|
481
|
+
package?: string;
|
|
482
|
+
arguments: IsEnabledArguments | [
|
|
483
|
+
self: RawTransactionArgument<string>
|
|
484
|
+
];
|
|
485
|
+
typeArguments: [
|
|
486
|
+
string
|
|
487
|
+
];
|
|
488
|
+
}
|
|
489
|
+
/** Return whether this Listing currently accepts purchases. */
|
|
490
|
+
export function isEnabled(options: IsEnabledOptions) {
|
|
491
|
+
const packageAddress = options.package ?? '@local-pkg/miso_record_shop';
|
|
492
|
+
const argumentsTypes = [
|
|
493
|
+
null
|
|
494
|
+
] satisfies (string | null)[];
|
|
495
|
+
const parameterNames = ["self"];
|
|
496
|
+
return (tx: Transaction) => tx.moveCall({
|
|
497
|
+
package: packageAddress,
|
|
498
|
+
module: 'listing',
|
|
499
|
+
function: 'is_enabled',
|
|
500
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
501
|
+
typeArguments: options.typeArguments
|
|
502
|
+
});
|
|
503
|
+
}
|
|
504
|
+
export interface IsDisabledArguments {
|
|
505
|
+
self: RawTransactionArgument<string>;
|
|
506
|
+
}
|
|
507
|
+
export interface IsDisabledOptions {
|
|
508
|
+
package?: string;
|
|
509
|
+
arguments: IsDisabledArguments | [
|
|
510
|
+
self: RawTransactionArgument<string>
|
|
511
|
+
];
|
|
512
|
+
typeArguments: [
|
|
513
|
+
string
|
|
514
|
+
];
|
|
515
|
+
}
|
|
516
|
+
/** Return whether this Listing currently rejects purchases. */
|
|
517
|
+
export function isDisabled(options: IsDisabledOptions) {
|
|
518
|
+
const packageAddress = options.package ?? '@local-pkg/miso_record_shop';
|
|
519
|
+
const argumentsTypes = [
|
|
520
|
+
null
|
|
521
|
+
] satisfies (string | null)[];
|
|
522
|
+
const parameterNames = ["self"];
|
|
523
|
+
return (tx: Transaction) => tx.moveCall({
|
|
524
|
+
package: packageAddress,
|
|
525
|
+
module: 'listing',
|
|
526
|
+
function: 'is_disabled',
|
|
527
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
528
|
+
typeArguments: options.typeArguments
|
|
529
|
+
});
|
|
530
|
+
}
|
|
531
|
+
export interface IsFixedArguments {
|
|
532
|
+
pricing: TransactionArgument;
|
|
533
|
+
}
|
|
534
|
+
export interface IsFixedOptions {
|
|
535
|
+
package?: string;
|
|
536
|
+
arguments: IsFixedArguments | [
|
|
537
|
+
pricing: TransactionArgument
|
|
538
|
+
];
|
|
539
|
+
}
|
|
540
|
+
/** Return whether `pricing` requires an exact payment. */
|
|
541
|
+
export function isFixed(options: IsFixedOptions) {
|
|
542
|
+
const packageAddress = options.package ?? '@local-pkg/miso_record_shop';
|
|
543
|
+
const argumentsTypes = [
|
|
544
|
+
null
|
|
545
|
+
] satisfies (string | null)[];
|
|
546
|
+
const parameterNames = ["pricing"];
|
|
547
|
+
return (tx: Transaction) => tx.moveCall({
|
|
548
|
+
package: packageAddress,
|
|
549
|
+
module: 'listing',
|
|
550
|
+
function: 'is_fixed',
|
|
551
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
552
|
+
});
|
|
553
|
+
}
|
|
554
|
+
export interface IsFloorArguments {
|
|
555
|
+
pricing: TransactionArgument;
|
|
556
|
+
}
|
|
557
|
+
export interface IsFloorOptions {
|
|
558
|
+
package?: string;
|
|
559
|
+
arguments: IsFloorArguments | [
|
|
560
|
+
pricing: TransactionArgument
|
|
561
|
+
];
|
|
562
|
+
}
|
|
563
|
+
/** Return whether `pricing` permits payment above its configured floor. */
|
|
564
|
+
export function isFloor(options: IsFloorOptions) {
|
|
565
|
+
const packageAddress = options.package ?? '@local-pkg/miso_record_shop';
|
|
566
|
+
const argumentsTypes = [
|
|
567
|
+
null
|
|
568
|
+
] satisfies (string | null)[];
|
|
569
|
+
const parameterNames = ["pricing"];
|
|
570
|
+
return (tx: Transaction) => tx.moveCall({
|
|
571
|
+
package: packageAddress,
|
|
572
|
+
module: 'listing',
|
|
573
|
+
function: 'is_floor',
|
|
574
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
575
|
+
});
|
|
576
|
+
}
|
|
577
|
+
export interface DeriveAddressArguments {
|
|
578
|
+
pressingId: RawTransactionArgument<string>;
|
|
579
|
+
}
|
|
580
|
+
export interface DeriveAddressOptions {
|
|
581
|
+
package?: string;
|
|
582
|
+
arguments: DeriveAddressArguments | [
|
|
583
|
+
pressingId: RawTransactionArgument<string>
|
|
584
|
+
];
|
|
585
|
+
typeArguments: [
|
|
586
|
+
string
|
|
587
|
+
];
|
|
588
|
+
}
|
|
589
|
+
/** Derive the one Listing address for `(pressing_id, Currency)`. */
|
|
590
|
+
export function deriveAddress(options: DeriveAddressOptions) {
|
|
591
|
+
const packageAddress = options.package ?? '@local-pkg/miso_record_shop';
|
|
592
|
+
const argumentsTypes = [
|
|
593
|
+
'0x2::object::ID'
|
|
594
|
+
] satisfies (string | null)[];
|
|
595
|
+
const parameterNames = ["pressingId"];
|
|
596
|
+
return (tx: Transaction) => tx.moveCall({
|
|
597
|
+
package: packageAddress,
|
|
598
|
+
module: 'listing',
|
|
599
|
+
function: 'derive_address',
|
|
600
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
601
|
+
typeArguments: options.typeArguments
|
|
602
|
+
});
|
|
603
|
+
}
|
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
**************************************************************/
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
/**
|
|
6
|
+
/** Module-controlled authority used by the Miso Record Shop to mint Records. */
|
|
7
7
|
|
|
8
8
|
import { MoveTuple } from '../utils/index.js';
|
|
9
9
|
import { bcs } from '@mysten/sui/bcs';
|
|
10
|
-
|
|
10
|
+
import type {} from "@mysten/bcs";
|
|
11
|
+
const $moduleName = '@local-pkg/miso_record_shop::witness';
|
|
11
12
|
export const Witness = new MoveTuple({ name: `${$moduleName}::Witness`, fields: [bcs.bool()] });
|