@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,387 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/**
|
|
5
|
+
* A fixed-price or minimum-price Record Shop listing for one Pressing.
|
|
6
|
+
*
|
|
7
|
+
* There is no Record Shop singleton. Each `Listing<Currency>` derives directly
|
|
8
|
+
* from its Pressing and is independently shared, so currencies and Pressings
|
|
9
|
+
* remain separate consensus lanes except for their common edition sequence.
|
|
10
|
+
*/
|
|
11
|
+
import { MoveTuple, MoveEnum, MoveStruct, type RawTransactionArgument } from '../utils/index.js';
|
|
12
|
+
import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
|
|
13
|
+
export declare const ListingKey: MoveTuple<readonly [import("@mysten/bcs").BcsType<boolean, boolean, "bool">], "@local-pkg/miso_record_shop::listing::ListingKey<phantom Currency>">;
|
|
14
|
+
/** Payment rule for a Listing. */
|
|
15
|
+
export declare const Pricing: MoveEnum<{
|
|
16
|
+
/** Require payment to equal the configured price. */
|
|
17
|
+
Fixed: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
18
|
+
/** Require payment to be at least the configured price. */
|
|
19
|
+
Floor: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
20
|
+
}, "@local-pkg/miso_record_shop::listing::Pricing">;
|
|
21
|
+
/** Whether purchases are accepted. */
|
|
22
|
+
export declare const State: MoveEnum<{
|
|
23
|
+
Enabled: null;
|
|
24
|
+
Disabled: null;
|
|
25
|
+
}, "@local-pkg/miso_record_shop::listing::State">;
|
|
26
|
+
export declare const Listing: MoveStruct<{
|
|
27
|
+
/** The Listing's derived object identity. */
|
|
28
|
+
id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
29
|
+
/** The release that receives payments from this Listing. */
|
|
30
|
+
release_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
31
|
+
/** The Pressing from which this Listing purchases Records. */
|
|
32
|
+
pressing_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
33
|
+
/** The active payment rule. */
|
|
34
|
+
pricing: MoveEnum<{
|
|
35
|
+
/** Require payment to equal the configured price. */
|
|
36
|
+
Fixed: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
37
|
+
/** Require payment to be at least the configured price. */
|
|
38
|
+
Floor: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
39
|
+
}, "@local-pkg/miso_record_shop::listing::Pricing">;
|
|
40
|
+
/** Whether the Listing currently accepts purchases. */
|
|
41
|
+
state: MoveEnum<{
|
|
42
|
+
Enabled: null;
|
|
43
|
+
Disabled: null;
|
|
44
|
+
}, "@local-pkg/miso_record_shop::listing::State">;
|
|
45
|
+
}, "@local-pkg/miso_record_shop::listing::Listing<phantom Currency>">;
|
|
46
|
+
export declare const ListingCreatedEvent: MoveStruct<{
|
|
47
|
+
/** The newly created Listing. */
|
|
48
|
+
listing_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
49
|
+
/** The release that receives Listing payments. */
|
|
50
|
+
release_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
51
|
+
/** The Pressing sold by the Listing. */
|
|
52
|
+
pressing_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
53
|
+
/** The Listing's initial payment rule. */
|
|
54
|
+
pricing: MoveEnum<{
|
|
55
|
+
/** Require payment to equal the configured price. */
|
|
56
|
+
Fixed: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
57
|
+
/** Require payment to be at least the configured price. */
|
|
58
|
+
Floor: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
59
|
+
}, "@local-pkg/miso_record_shop::listing::Pricing">;
|
|
60
|
+
/** The Listing's initial state. */
|
|
61
|
+
state: MoveEnum<{
|
|
62
|
+
Enabled: null;
|
|
63
|
+
Disabled: null;
|
|
64
|
+
}, "@local-pkg/miso_record_shop::listing::State">;
|
|
65
|
+
}, "@local-pkg/miso_record_shop::listing::ListingCreatedEvent<phantom Currency>">;
|
|
66
|
+
export declare const ListingPriceChangedEvent: MoveStruct<{
|
|
67
|
+
/** The updated Listing. */
|
|
68
|
+
listing_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
69
|
+
/** The new payment rule. */
|
|
70
|
+
pricing: MoveEnum<{
|
|
71
|
+
/** Require payment to equal the configured price. */
|
|
72
|
+
Fixed: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
73
|
+
/** Require payment to be at least the configured price. */
|
|
74
|
+
Floor: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
75
|
+
}, "@local-pkg/miso_record_shop::listing::Pricing">;
|
|
76
|
+
}, "@local-pkg/miso_record_shop::listing::ListingPriceChangedEvent<phantom Currency>">;
|
|
77
|
+
export declare const ListingStateChangedEvent: MoveStruct<{
|
|
78
|
+
/** The updated Listing. */
|
|
79
|
+
listing_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
80
|
+
/** The new Listing state. */
|
|
81
|
+
state: MoveEnum<{
|
|
82
|
+
Enabled: null;
|
|
83
|
+
Disabled: null;
|
|
84
|
+
}, "@local-pkg/miso_record_shop::listing::State">;
|
|
85
|
+
}, "@local-pkg/miso_record_shop::listing::ListingStateChangedEvent<phantom Currency>">;
|
|
86
|
+
export declare const RecordSoldEvent: MoveStruct<{
|
|
87
|
+
/** The Listing that completed the sale. */
|
|
88
|
+
listing_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
89
|
+
/** The purchased Record. */
|
|
90
|
+
record_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
91
|
+
/** The release that received payment. */
|
|
92
|
+
release_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
93
|
+
/** The Pressing that issued the Record. */
|
|
94
|
+
pressing_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
95
|
+
/** The edition represented by the Pressing. */
|
|
96
|
+
edition: import("@mysten/bcs").BcsType<number, number, "u16">;
|
|
97
|
+
/** The Record's number within its edition. */
|
|
98
|
+
number: import("@mysten/bcs").BcsType<number, number, "u32">;
|
|
99
|
+
/** The defining type of the purchase currency. */
|
|
100
|
+
purchase_currency: MoveStruct<{
|
|
101
|
+
name: import("@mysten/bcs").BcsType<string, string, "string">;
|
|
102
|
+
}, "std::type_name::TypeName">;
|
|
103
|
+
/** The amount paid for the Record. */
|
|
104
|
+
purchase_price: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
105
|
+
/** The transaction sender who purchased the Record. */
|
|
106
|
+
purchased_by: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
107
|
+
/** The purchase time in Unix milliseconds from Sui's Clock. */
|
|
108
|
+
purchased_timestamp_ms: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
109
|
+
/** The payment rule accepted for the sale. */
|
|
110
|
+
pricing: MoveEnum<{
|
|
111
|
+
/** Require payment to equal the configured price. */
|
|
112
|
+
Fixed: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
113
|
+
/** Require payment to be at least the configured price. */
|
|
114
|
+
Floor: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
115
|
+
}, "@local-pkg/miso_record_shop::listing::Pricing">;
|
|
116
|
+
}, "@local-pkg/miso_record_shop::listing::RecordSoldEvent<phantom Currency>">;
|
|
117
|
+
export interface FixedArguments {
|
|
118
|
+
price: RawTransactionArgument<number | bigint>;
|
|
119
|
+
}
|
|
120
|
+
export interface FixedOptions {
|
|
121
|
+
package?: string;
|
|
122
|
+
arguments: FixedArguments | [
|
|
123
|
+
price: RawTransactionArgument<number | bigint>
|
|
124
|
+
];
|
|
125
|
+
}
|
|
126
|
+
/** Construct an exact-payment pricing rule. */
|
|
127
|
+
export declare function fixed(options: FixedOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
128
|
+
export interface FloorArguments {
|
|
129
|
+
price: RawTransactionArgument<number | bigint>;
|
|
130
|
+
}
|
|
131
|
+
export interface FloorOptions {
|
|
132
|
+
package?: string;
|
|
133
|
+
arguments: FloorArguments | [
|
|
134
|
+
price: RawTransactionArgument<number | bigint>
|
|
135
|
+
];
|
|
136
|
+
}
|
|
137
|
+
/** Construct a minimum-payment pricing rule. */
|
|
138
|
+
export declare function floor(options: FloorOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
139
|
+
export interface EnabledOptions {
|
|
140
|
+
package?: string;
|
|
141
|
+
arguments?: [
|
|
142
|
+
];
|
|
143
|
+
}
|
|
144
|
+
/** Construct the state that accepts purchases. */
|
|
145
|
+
export declare function enabled(options?: EnabledOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
146
|
+
export interface DisabledOptions {
|
|
147
|
+
package?: string;
|
|
148
|
+
arguments?: [
|
|
149
|
+
];
|
|
150
|
+
}
|
|
151
|
+
/** Construct the state that rejects purchases. */
|
|
152
|
+
export declare function disabled(options?: DisabledOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
153
|
+
export interface NewArguments {
|
|
154
|
+
pressing: RawTransactionArgument<string>;
|
|
155
|
+
cap: RawTransactionArgument<string>;
|
|
156
|
+
pricing: TransactionArgument;
|
|
157
|
+
}
|
|
158
|
+
export interface NewOptions {
|
|
159
|
+
package?: string;
|
|
160
|
+
arguments: NewArguments | [
|
|
161
|
+
pressing: RawTransactionArgument<string>,
|
|
162
|
+
cap: RawTransactionArgument<string>,
|
|
163
|
+
pricing: TransactionArgument
|
|
164
|
+
];
|
|
165
|
+
typeArguments: [
|
|
166
|
+
string
|
|
167
|
+
];
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Create the permanent Listing for `Currency` under this Pressing.
|
|
171
|
+
*
|
|
172
|
+
* The Listing starts enabled and is returned unshared so callers can compose
|
|
173
|
+
* further configuration before calling `share`.
|
|
174
|
+
*/
|
|
175
|
+
export declare function _new(options: NewOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
176
|
+
export interface ShareArguments {
|
|
177
|
+
self: RawTransactionArgument<string>;
|
|
178
|
+
}
|
|
179
|
+
export interface ShareOptions {
|
|
180
|
+
package?: string;
|
|
181
|
+
arguments: ShareArguments | [
|
|
182
|
+
self: RawTransactionArgument<string>
|
|
183
|
+
];
|
|
184
|
+
typeArguments: [
|
|
185
|
+
string
|
|
186
|
+
];
|
|
187
|
+
}
|
|
188
|
+
/** Share a newly created Listing. */
|
|
189
|
+
export declare function share(options: ShareOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
190
|
+
export interface SetPriceArguments {
|
|
191
|
+
self: RawTransactionArgument<string>;
|
|
192
|
+
cap: RawTransactionArgument<string>;
|
|
193
|
+
pricing: TransactionArgument;
|
|
194
|
+
}
|
|
195
|
+
export interface SetPriceOptions {
|
|
196
|
+
package?: string;
|
|
197
|
+
arguments: SetPriceArguments | [
|
|
198
|
+
self: RawTransactionArgument<string>,
|
|
199
|
+
cap: RawTransactionArgument<string>,
|
|
200
|
+
pricing: TransactionArgument
|
|
201
|
+
];
|
|
202
|
+
typeArguments: [
|
|
203
|
+
string
|
|
204
|
+
];
|
|
205
|
+
}
|
|
206
|
+
/** Change the payment rule using the capability for the bound Pressing. */
|
|
207
|
+
export declare function setPrice(options: SetPriceOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
208
|
+
export interface SetStateArguments {
|
|
209
|
+
self: RawTransactionArgument<string>;
|
|
210
|
+
cap: RawTransactionArgument<string>;
|
|
211
|
+
state: TransactionArgument;
|
|
212
|
+
}
|
|
213
|
+
export interface SetStateOptions {
|
|
214
|
+
package?: string;
|
|
215
|
+
arguments: SetStateArguments | [
|
|
216
|
+
self: RawTransactionArgument<string>,
|
|
217
|
+
cap: RawTransactionArgument<string>,
|
|
218
|
+
state: TransactionArgument
|
|
219
|
+
];
|
|
220
|
+
typeArguments: [
|
|
221
|
+
string
|
|
222
|
+
];
|
|
223
|
+
}
|
|
224
|
+
/** Enable or disable purchases using the capability for the bound Pressing. */
|
|
225
|
+
export declare function setState(options: SetStateOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
226
|
+
export interface PurchaseArguments {
|
|
227
|
+
self: RawTransactionArgument<string>;
|
|
228
|
+
pressing: RawTransactionArgument<string>;
|
|
229
|
+
payment: TransactionArgument;
|
|
230
|
+
expectedPricing: TransactionArgument;
|
|
231
|
+
}
|
|
232
|
+
export interface PurchaseOptions {
|
|
233
|
+
package?: string;
|
|
234
|
+
arguments: PurchaseArguments | [
|
|
235
|
+
self: RawTransactionArgument<string>,
|
|
236
|
+
pressing: RawTransactionArgument<string>,
|
|
237
|
+
payment: TransactionArgument,
|
|
238
|
+
expectedPricing: TransactionArgument
|
|
239
|
+
];
|
|
240
|
+
typeArguments: [
|
|
241
|
+
string
|
|
242
|
+
];
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Purchase and return the next Record from the bound Pressing.
|
|
246
|
+
*
|
|
247
|
+
* `expected_pricing` protects the buyer against stale price or pricing-rule
|
|
248
|
+
* changes. The entire payment is deposited into the Release object's funds
|
|
249
|
+
* accumulator; a Floor overpayment is not refunded. The caller decides how to
|
|
250
|
+
* transfer or compose the returned Record.
|
|
251
|
+
*/
|
|
252
|
+
export declare function purchase(options: PurchaseOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
253
|
+
export interface ReleaseIdArguments {
|
|
254
|
+
self: RawTransactionArgument<string>;
|
|
255
|
+
}
|
|
256
|
+
export interface ReleaseIdOptions {
|
|
257
|
+
package?: string;
|
|
258
|
+
arguments: ReleaseIdArguments | [
|
|
259
|
+
self: RawTransactionArgument<string>
|
|
260
|
+
];
|
|
261
|
+
typeArguments: [
|
|
262
|
+
string
|
|
263
|
+
];
|
|
264
|
+
}
|
|
265
|
+
/** Return the release that receives Listing payments. */
|
|
266
|
+
export declare function releaseId(options: ReleaseIdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
267
|
+
export interface PressingIdArguments {
|
|
268
|
+
self: RawTransactionArgument<string>;
|
|
269
|
+
}
|
|
270
|
+
export interface PressingIdOptions {
|
|
271
|
+
package?: string;
|
|
272
|
+
arguments: PressingIdArguments | [
|
|
273
|
+
self: RawTransactionArgument<string>
|
|
274
|
+
];
|
|
275
|
+
typeArguments: [
|
|
276
|
+
string
|
|
277
|
+
];
|
|
278
|
+
}
|
|
279
|
+
/** Return the Pressing sold by this Listing. */
|
|
280
|
+
export declare function pressingId(options: PressingIdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
281
|
+
export interface PricingArguments {
|
|
282
|
+
self: RawTransactionArgument<string>;
|
|
283
|
+
}
|
|
284
|
+
export interface PricingOptions {
|
|
285
|
+
package?: string;
|
|
286
|
+
arguments: PricingArguments | [
|
|
287
|
+
self: RawTransactionArgument<string>
|
|
288
|
+
];
|
|
289
|
+
typeArguments: [
|
|
290
|
+
string
|
|
291
|
+
];
|
|
292
|
+
}
|
|
293
|
+
/** Return this Listing's payment rule. */
|
|
294
|
+
export declare function pricing(options: PricingOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
295
|
+
export interface PriceArguments {
|
|
296
|
+
self: RawTransactionArgument<string>;
|
|
297
|
+
}
|
|
298
|
+
export interface PriceOptions {
|
|
299
|
+
package?: string;
|
|
300
|
+
arguments: PriceArguments | [
|
|
301
|
+
self: RawTransactionArgument<string>
|
|
302
|
+
];
|
|
303
|
+
typeArguments: [
|
|
304
|
+
string
|
|
305
|
+
];
|
|
306
|
+
}
|
|
307
|
+
/** Return the amount configured by this Listing's payment rule. */
|
|
308
|
+
export declare function price(options: PriceOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
309
|
+
export interface StateArguments {
|
|
310
|
+
self: RawTransactionArgument<string>;
|
|
311
|
+
}
|
|
312
|
+
export interface StateOptions {
|
|
313
|
+
package?: string;
|
|
314
|
+
arguments: StateArguments | [
|
|
315
|
+
self: RawTransactionArgument<string>
|
|
316
|
+
];
|
|
317
|
+
typeArguments: [
|
|
318
|
+
string
|
|
319
|
+
];
|
|
320
|
+
}
|
|
321
|
+
/** Return this Listing's current state. */
|
|
322
|
+
export declare function state(options: StateOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
323
|
+
export interface IsEnabledArguments {
|
|
324
|
+
self: RawTransactionArgument<string>;
|
|
325
|
+
}
|
|
326
|
+
export interface IsEnabledOptions {
|
|
327
|
+
package?: string;
|
|
328
|
+
arguments: IsEnabledArguments | [
|
|
329
|
+
self: RawTransactionArgument<string>
|
|
330
|
+
];
|
|
331
|
+
typeArguments: [
|
|
332
|
+
string
|
|
333
|
+
];
|
|
334
|
+
}
|
|
335
|
+
/** Return whether this Listing currently accepts purchases. */
|
|
336
|
+
export declare function isEnabled(options: IsEnabledOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
337
|
+
export interface IsDisabledArguments {
|
|
338
|
+
self: RawTransactionArgument<string>;
|
|
339
|
+
}
|
|
340
|
+
export interface IsDisabledOptions {
|
|
341
|
+
package?: string;
|
|
342
|
+
arguments: IsDisabledArguments | [
|
|
343
|
+
self: RawTransactionArgument<string>
|
|
344
|
+
];
|
|
345
|
+
typeArguments: [
|
|
346
|
+
string
|
|
347
|
+
];
|
|
348
|
+
}
|
|
349
|
+
/** Return whether this Listing currently rejects purchases. */
|
|
350
|
+
export declare function isDisabled(options: IsDisabledOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
351
|
+
export interface IsFixedArguments {
|
|
352
|
+
pricing: TransactionArgument;
|
|
353
|
+
}
|
|
354
|
+
export interface IsFixedOptions {
|
|
355
|
+
package?: string;
|
|
356
|
+
arguments: IsFixedArguments | [
|
|
357
|
+
pricing: TransactionArgument
|
|
358
|
+
];
|
|
359
|
+
}
|
|
360
|
+
/** Return whether `pricing` requires an exact payment. */
|
|
361
|
+
export declare function isFixed(options: IsFixedOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
362
|
+
export interface IsFloorArguments {
|
|
363
|
+
pricing: TransactionArgument;
|
|
364
|
+
}
|
|
365
|
+
export interface IsFloorOptions {
|
|
366
|
+
package?: string;
|
|
367
|
+
arguments: IsFloorArguments | [
|
|
368
|
+
pricing: TransactionArgument
|
|
369
|
+
];
|
|
370
|
+
}
|
|
371
|
+
/** Return whether `pricing` permits payment above its configured floor. */
|
|
372
|
+
export declare function isFloor(options: IsFloorOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
373
|
+
export interface DeriveAddressArguments {
|
|
374
|
+
pressingId: RawTransactionArgument<string>;
|
|
375
|
+
}
|
|
376
|
+
export interface DeriveAddressOptions {
|
|
377
|
+
package?: string;
|
|
378
|
+
arguments: DeriveAddressArguments | [
|
|
379
|
+
pressingId: RawTransactionArgument<string>
|
|
380
|
+
];
|
|
381
|
+
typeArguments: [
|
|
382
|
+
string
|
|
383
|
+
];
|
|
384
|
+
}
|
|
385
|
+
/** Derive the one Listing address for `(pressing_id, Currency)`. */
|
|
386
|
+
export declare function deriveAddress(options: DeriveAddressOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
387
|
+
//# sourceMappingURL=listing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listing.d.ts","sourceRoot":"","sources":["../../../src/contracts/miso_record_shop/listing.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAA0B,KAAK,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAGzH,OAAO,EAAE,KAAK,WAA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