@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 @@
|
|
|
1
|
+
{"version":3,"file":"pressing.js","sourceRoot":"","sources":["../../../src/contracts/miso_record/pressing.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;GAQG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,sBAAsB,EAA+B,MAAM,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AI,wBAAwB,CAAC;IACnE,MAAM,cAAc,GAAG;QACnB,iBAAiB;QACjB,KAAK;KACoB,CAAC;IAC9B,MAAM,cAAc,GAAG,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;IAChD,OAAO,CAAC,EAAe,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC;QACpC,OAAO,EAAE,cAAc;QACvB,MAAM,EAAE,UAAU;QAClB,QAAQ,EAAE,gBAAgB;QAC1B,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;KACvF,CAAC,CAAC;AACP,CAAC;AAUD,oDAAoD;AACpD,MAAM,UAAU,qBAAqB,CAAC,OAAqC;IACvE,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,IAAI,wBAAwB,CAAC;IACnE,MAAM,cAAc,GAAG;QACnB,iBAAiB;KACQ,CAAC;IAC9B,MAAM,cAAc,GAAG,CAAC,YAAY,CAAC,CAAC;IACtC,OAAO,CAAC,EAAe,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC;QACpC,OAAO,EAAE,cAAc;QACvB,MAAM,EAAE,UAAU;QAClB,QAAQ,EAAE,0BAA0B;QACpC,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;KACvF,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/**
|
|
5
|
+
* An owned purchase minted from one edition of a Miso release.
|
|
6
|
+
*
|
|
7
|
+
* `Pressing` owns issuance. This module owns only the Record asset and its
|
|
8
|
+
* deterministic identity within that Pressing. Distribution mechanics such as
|
|
9
|
+
* pricing and payment validation live in authorized distributor packages.
|
|
10
|
+
*/
|
|
11
|
+
import { MoveStruct, MoveTuple, type RawTransactionArgument } from '../utils/index.js';
|
|
12
|
+
import { type Transaction } from '@mysten/sui/transactions';
|
|
13
|
+
export declare const Record: MoveStruct<{
|
|
14
|
+
id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
15
|
+
/** The release this Record is a copy of. */
|
|
16
|
+
release_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
17
|
+
/** The edition-scoped Pressing that minted this Record. */
|
|
18
|
+
pressing_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
19
|
+
/** The edition represented by `pressing_id`. */
|
|
20
|
+
edition: import("@mysten/bcs").BcsType<number, number, "u16">;
|
|
21
|
+
/** This Record's number within its edition. */
|
|
22
|
+
number: import("@mysten/bcs").BcsType<number, number, "u32">;
|
|
23
|
+
/** The defining type of the currency used for this purchase. */
|
|
24
|
+
purchase_currency: MoveStruct<{
|
|
25
|
+
name: import("@mysten/bcs").BcsType<string, string, "string">;
|
|
26
|
+
}, "std::type_name::TypeName">;
|
|
27
|
+
/** The actual amount paid, including any accepted overpayment. */
|
|
28
|
+
purchase_price: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
29
|
+
/** The transaction sender who purchased this Record. */
|
|
30
|
+
purchased_by: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
31
|
+
/** When this Record was purchased, in Unix milliseconds from Sui's Clock. */
|
|
32
|
+
purchased_timestamp_ms: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
33
|
+
}, "@local-pkg/miso_record::record::Record">;
|
|
34
|
+
export declare const RecordKey: MoveTuple<readonly [import("@mysten/bcs").BcsType<number, number, "u32">], "@local-pkg/miso_record::record::RecordKey">;
|
|
35
|
+
export declare const RecordCreatedEvent: MoveStruct<{
|
|
36
|
+
/** The newly created Record. */
|
|
37
|
+
record_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
38
|
+
/** The release represented by the Record. */
|
|
39
|
+
release_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
40
|
+
/** The Pressing that issued the Record. */
|
|
41
|
+
pressing_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
42
|
+
/** The edition represented by the Pressing. */
|
|
43
|
+
edition: import("@mysten/bcs").BcsType<number, number, "u16">;
|
|
44
|
+
/** The Record's number within the edition. */
|
|
45
|
+
number: import("@mysten/bcs").BcsType<number, number, "u32">;
|
|
46
|
+
}, "@local-pkg/miso_record::record::RecordCreatedEvent">;
|
|
47
|
+
export declare const RecordDestroyedEvent: MoveStruct<{
|
|
48
|
+
/** The destroyed Record. */
|
|
49
|
+
record_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
50
|
+
/** The Pressing that issued the Record. */
|
|
51
|
+
pressing_id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
52
|
+
}, "@local-pkg/miso_record::record::RecordDestroyedEvent">;
|
|
53
|
+
export interface DestroyArguments {
|
|
54
|
+
self: RawTransactionArgument<string>;
|
|
55
|
+
}
|
|
56
|
+
export interface DestroyOptions {
|
|
57
|
+
package?: string;
|
|
58
|
+
arguments: DestroyArguments | [
|
|
59
|
+
self: RawTransactionArgument<string>
|
|
60
|
+
];
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Destroy a Record. Detach any dynamic-field extensions first or they become
|
|
64
|
+
* inaccessible.
|
|
65
|
+
*/
|
|
66
|
+
export declare function destroy(options: DestroyOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
67
|
+
export interface UidArguments {
|
|
68
|
+
self: RawTransactionArgument<string>;
|
|
69
|
+
}
|
|
70
|
+
export interface UidOptions {
|
|
71
|
+
package?: string;
|
|
72
|
+
arguments: UidArguments | [
|
|
73
|
+
self: RawTransactionArgument<string>
|
|
74
|
+
];
|
|
75
|
+
}
|
|
76
|
+
/** Borrow the Record UID for read-only extensions. */
|
|
77
|
+
export declare function uid(options: UidOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
78
|
+
export interface UidMutArguments {
|
|
79
|
+
self: RawTransactionArgument<string>;
|
|
80
|
+
}
|
|
81
|
+
export interface UidMutOptions {
|
|
82
|
+
package?: string;
|
|
83
|
+
arguments: UidMutArguments | [
|
|
84
|
+
self: RawTransactionArgument<string>
|
|
85
|
+
];
|
|
86
|
+
}
|
|
87
|
+
/** Mutably borrow the Record UID for owner-authorized extensions. */
|
|
88
|
+
export declare function uidMut(options: UidMutOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
89
|
+
export interface ReleaseIdArguments {
|
|
90
|
+
self: RawTransactionArgument<string>;
|
|
91
|
+
}
|
|
92
|
+
export interface ReleaseIdOptions {
|
|
93
|
+
package?: string;
|
|
94
|
+
arguments: ReleaseIdArguments | [
|
|
95
|
+
self: RawTransactionArgument<string>
|
|
96
|
+
];
|
|
97
|
+
}
|
|
98
|
+
/** Return the release represented by this Record. */
|
|
99
|
+
export declare function releaseId(options: ReleaseIdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
100
|
+
export interface PressingIdArguments {
|
|
101
|
+
self: RawTransactionArgument<string>;
|
|
102
|
+
}
|
|
103
|
+
export interface PressingIdOptions {
|
|
104
|
+
package?: string;
|
|
105
|
+
arguments: PressingIdArguments | [
|
|
106
|
+
self: RawTransactionArgument<string>
|
|
107
|
+
];
|
|
108
|
+
}
|
|
109
|
+
/** Return the Pressing that issued this Record. */
|
|
110
|
+
export declare function pressingId(options: PressingIdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
111
|
+
export interface EditionArguments {
|
|
112
|
+
self: RawTransactionArgument<string>;
|
|
113
|
+
}
|
|
114
|
+
export interface EditionOptions {
|
|
115
|
+
package?: string;
|
|
116
|
+
arguments: EditionArguments | [
|
|
117
|
+
self: RawTransactionArgument<string>
|
|
118
|
+
];
|
|
119
|
+
}
|
|
120
|
+
/** Return this Record's edition number. */
|
|
121
|
+
export declare function edition(options: EditionOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
122
|
+
export interface NumberArguments {
|
|
123
|
+
self: RawTransactionArgument<string>;
|
|
124
|
+
}
|
|
125
|
+
export interface NumberOptions {
|
|
126
|
+
package?: string;
|
|
127
|
+
arguments: NumberArguments | [
|
|
128
|
+
self: RawTransactionArgument<string>
|
|
129
|
+
];
|
|
130
|
+
}
|
|
131
|
+
/** Return this Record's number within its edition. */
|
|
132
|
+
export declare function number(options: NumberOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
133
|
+
export interface PurchaseCurrencyArguments {
|
|
134
|
+
self: RawTransactionArgument<string>;
|
|
135
|
+
}
|
|
136
|
+
export interface PurchaseCurrencyOptions {
|
|
137
|
+
package?: string;
|
|
138
|
+
arguments: PurchaseCurrencyArguments | [
|
|
139
|
+
self: RawTransactionArgument<string>
|
|
140
|
+
];
|
|
141
|
+
}
|
|
142
|
+
/** Return the defining type of the purchase currency. */
|
|
143
|
+
export declare function purchaseCurrency(options: PurchaseCurrencyOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
144
|
+
export interface PurchasePriceArguments {
|
|
145
|
+
self: RawTransactionArgument<string>;
|
|
146
|
+
}
|
|
147
|
+
export interface PurchasePriceOptions {
|
|
148
|
+
package?: string;
|
|
149
|
+
arguments: PurchasePriceArguments | [
|
|
150
|
+
self: RawTransactionArgument<string>
|
|
151
|
+
];
|
|
152
|
+
}
|
|
153
|
+
/** Return the amount paid for this Record. */
|
|
154
|
+
export declare function purchasePrice(options: PurchasePriceOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
155
|
+
export interface PurchasedByArguments {
|
|
156
|
+
self: RawTransactionArgument<string>;
|
|
157
|
+
}
|
|
158
|
+
export interface PurchasedByOptions {
|
|
159
|
+
package?: string;
|
|
160
|
+
arguments: PurchasedByArguments | [
|
|
161
|
+
self: RawTransactionArgument<string>
|
|
162
|
+
];
|
|
163
|
+
}
|
|
164
|
+
/** Return the transaction sender who purchased this Record. */
|
|
165
|
+
export declare function purchasedBy(options: PurchasedByOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
166
|
+
export interface PurchasedTimestampMsArguments {
|
|
167
|
+
self: RawTransactionArgument<string>;
|
|
168
|
+
}
|
|
169
|
+
export interface PurchasedTimestampMsOptions {
|
|
170
|
+
package?: string;
|
|
171
|
+
arguments: PurchasedTimestampMsArguments | [
|
|
172
|
+
self: RawTransactionArgument<string>
|
|
173
|
+
];
|
|
174
|
+
}
|
|
175
|
+
/** Return the purchase time in Unix milliseconds from Sui's Clock. */
|
|
176
|
+
export declare function purchasedTimestampMs(options: PurchasedTimestampMsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
177
|
+
export interface DeriveAddressArguments {
|
|
178
|
+
pressingId: RawTransactionArgument<string>;
|
|
179
|
+
number: RawTransactionArgument<number>;
|
|
180
|
+
}
|
|
181
|
+
export interface DeriveAddressOptions {
|
|
182
|
+
package?: string;
|
|
183
|
+
arguments: DeriveAddressArguments | [
|
|
184
|
+
pressingId: RawTransactionArgument<string>,
|
|
185
|
+
number: RawTransactionArgument<number>
|
|
186
|
+
];
|
|
187
|
+
}
|
|
188
|
+
/** Derive the Record address for `number` in `pressing_id`'s edition. */
|
|
189
|
+
export declare function deriveAddress(options: DeriveAddressOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
190
|
+
//# sourceMappingURL=record.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../../src/contracts/miso_record/record.ts"],"names":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,sBAAsB,CAAC,MAAM,CAAC;KACvC,CAAC;CACL;AACD,+DAA+D;AAC/D,wBAAgB,WAAW,CAAC,OAAO,EAAE,kBAAkB,IAM3C,IAAI,WAAW,0DAM1B;AACD,MAAM,WAAW,6BAA6B;IAC1C,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;CACxC;AACD,MAAM,WAAW,2BAA2B;IACxC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,6BAA6B,GAAG;QACvC,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;KACvC,CAAC;CACL;AACD,sEAAsE;AACtE,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,2BAA2B,IAM7D,IAAI,WAAW,0DAM1B;AACD,MAAM,WAAW,sBAAsB;IACnC,UAAU,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;IAC3C,MAAM,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;CAC1C;AACD,MAAM,WAAW,oBAAoB;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,sBAAsB,GAAG;QAChC,UAAU,EAAE,sBAAsB,CAAC,MAAM,CAAC;QAC1C,MAAM,EAAE,sBAAsB,CAAC,MAAM,CAAC;KACzC,CAAC;CACL;AACD,yEAAyE;AACzE,wBAAgB,aAAa,CAAC,OAAO,EAAE,oBAAoB,IAO/C,IAAI,WAAW,0DAM1B"}
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/**
|
|
5
|
+
* An owned purchase minted from one edition of a Miso release.
|
|
6
|
+
*
|
|
7
|
+
* `Pressing` owns issuance. This module owns only the Record asset and its
|
|
8
|
+
* deterministic identity within that Pressing. Distribution mechanics such as
|
|
9
|
+
* pricing and payment validation live in authorized distributor packages.
|
|
10
|
+
*/
|
|
11
|
+
import { MoveStruct, MoveTuple, normalizeMoveArguments } from '../utils/index.js';
|
|
12
|
+
import { bcs } from '@mysten/sui/bcs';
|
|
13
|
+
import {} from '@mysten/sui/transactions';
|
|
14
|
+
import * as type_name from './deps/std/type_name.js';
|
|
15
|
+
const $moduleName = '@local-pkg/miso_record::record';
|
|
16
|
+
export const Record = new MoveStruct({ name: `${$moduleName}::Record`, fields: {
|
|
17
|
+
id: bcs.Address,
|
|
18
|
+
/** The release this Record is a copy of. */
|
|
19
|
+
release_id: bcs.Address,
|
|
20
|
+
/** The edition-scoped Pressing that minted this Record. */
|
|
21
|
+
pressing_id: bcs.Address,
|
|
22
|
+
/** The edition represented by `pressing_id`. */
|
|
23
|
+
edition: bcs.u16(),
|
|
24
|
+
/** This Record's number within its edition. */
|
|
25
|
+
number: bcs.u32(),
|
|
26
|
+
/** The defining type of the currency used for this purchase. */
|
|
27
|
+
purchase_currency: type_name.TypeName,
|
|
28
|
+
/** The actual amount paid, including any accepted overpayment. */
|
|
29
|
+
purchase_price: bcs.u64(),
|
|
30
|
+
/** The transaction sender who purchased this Record. */
|
|
31
|
+
purchased_by: bcs.Address,
|
|
32
|
+
/** When this Record was purchased, in Unix milliseconds from Sui's Clock. */
|
|
33
|
+
purchased_timestamp_ms: bcs.u64()
|
|
34
|
+
} });
|
|
35
|
+
export const RecordKey = new MoveTuple({ name: `${$moduleName}::RecordKey`, fields: [bcs.u32()] });
|
|
36
|
+
export const RecordCreatedEvent = new MoveStruct({ name: `${$moduleName}::RecordCreatedEvent`, fields: {
|
|
37
|
+
/** The newly created Record. */
|
|
38
|
+
record_id: bcs.Address,
|
|
39
|
+
/** The release represented by the Record. */
|
|
40
|
+
release_id: bcs.Address,
|
|
41
|
+
/** The Pressing that issued the Record. */
|
|
42
|
+
pressing_id: bcs.Address,
|
|
43
|
+
/** The edition represented by the Pressing. */
|
|
44
|
+
edition: bcs.u16(),
|
|
45
|
+
/** The Record's number within the edition. */
|
|
46
|
+
number: bcs.u32()
|
|
47
|
+
} });
|
|
48
|
+
export const RecordDestroyedEvent = new MoveStruct({ name: `${$moduleName}::RecordDestroyedEvent`, fields: {
|
|
49
|
+
/** The destroyed Record. */
|
|
50
|
+
record_id: bcs.Address,
|
|
51
|
+
/** The Pressing that issued the Record. */
|
|
52
|
+
pressing_id: bcs.Address
|
|
53
|
+
} });
|
|
54
|
+
/**
|
|
55
|
+
* Destroy a Record. Detach any dynamic-field extensions first or they become
|
|
56
|
+
* inaccessible.
|
|
57
|
+
*/
|
|
58
|
+
export function destroy(options) {
|
|
59
|
+
const packageAddress = options.package ?? '@local-pkg/miso_record';
|
|
60
|
+
const argumentsTypes = [
|
|
61
|
+
null
|
|
62
|
+
];
|
|
63
|
+
const parameterNames = ["self"];
|
|
64
|
+
return (tx) => tx.moveCall({
|
|
65
|
+
package: packageAddress,
|
|
66
|
+
module: 'record',
|
|
67
|
+
function: 'destroy',
|
|
68
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
/** Borrow the Record UID for read-only extensions. */
|
|
72
|
+
export function uid(options) {
|
|
73
|
+
const packageAddress = options.package ?? '@local-pkg/miso_record';
|
|
74
|
+
const argumentsTypes = [
|
|
75
|
+
null
|
|
76
|
+
];
|
|
77
|
+
const parameterNames = ["self"];
|
|
78
|
+
return (tx) => tx.moveCall({
|
|
79
|
+
package: packageAddress,
|
|
80
|
+
module: 'record',
|
|
81
|
+
function: 'uid',
|
|
82
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
/** Mutably borrow the Record UID for owner-authorized extensions. */
|
|
86
|
+
export function uidMut(options) {
|
|
87
|
+
const packageAddress = options.package ?? '@local-pkg/miso_record';
|
|
88
|
+
const argumentsTypes = [
|
|
89
|
+
null
|
|
90
|
+
];
|
|
91
|
+
const parameterNames = ["self"];
|
|
92
|
+
return (tx) => tx.moveCall({
|
|
93
|
+
package: packageAddress,
|
|
94
|
+
module: 'record',
|
|
95
|
+
function: 'uid_mut',
|
|
96
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
/** Return the release represented by this Record. */
|
|
100
|
+
export function releaseId(options) {
|
|
101
|
+
const packageAddress = options.package ?? '@local-pkg/miso_record';
|
|
102
|
+
const argumentsTypes = [
|
|
103
|
+
null
|
|
104
|
+
];
|
|
105
|
+
const parameterNames = ["self"];
|
|
106
|
+
return (tx) => tx.moveCall({
|
|
107
|
+
package: packageAddress,
|
|
108
|
+
module: 'record',
|
|
109
|
+
function: 'release_id',
|
|
110
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
/** Return the Pressing that issued this Record. */
|
|
114
|
+
export function pressingId(options) {
|
|
115
|
+
const packageAddress = options.package ?? '@local-pkg/miso_record';
|
|
116
|
+
const argumentsTypes = [
|
|
117
|
+
null
|
|
118
|
+
];
|
|
119
|
+
const parameterNames = ["self"];
|
|
120
|
+
return (tx) => tx.moveCall({
|
|
121
|
+
package: packageAddress,
|
|
122
|
+
module: 'record',
|
|
123
|
+
function: 'pressing_id',
|
|
124
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
/** Return this Record's edition number. */
|
|
128
|
+
export function edition(options) {
|
|
129
|
+
const packageAddress = options.package ?? '@local-pkg/miso_record';
|
|
130
|
+
const argumentsTypes = [
|
|
131
|
+
null
|
|
132
|
+
];
|
|
133
|
+
const parameterNames = ["self"];
|
|
134
|
+
return (tx) => tx.moveCall({
|
|
135
|
+
package: packageAddress,
|
|
136
|
+
module: 'record',
|
|
137
|
+
function: 'edition',
|
|
138
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
/** Return this Record's number within its edition. */
|
|
142
|
+
export function number(options) {
|
|
143
|
+
const packageAddress = options.package ?? '@local-pkg/miso_record';
|
|
144
|
+
const argumentsTypes = [
|
|
145
|
+
null
|
|
146
|
+
];
|
|
147
|
+
const parameterNames = ["self"];
|
|
148
|
+
return (tx) => tx.moveCall({
|
|
149
|
+
package: packageAddress,
|
|
150
|
+
module: 'record',
|
|
151
|
+
function: 'number',
|
|
152
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
/** Return the defining type of the purchase currency. */
|
|
156
|
+
export function purchaseCurrency(options) {
|
|
157
|
+
const packageAddress = options.package ?? '@local-pkg/miso_record';
|
|
158
|
+
const argumentsTypes = [
|
|
159
|
+
null
|
|
160
|
+
];
|
|
161
|
+
const parameterNames = ["self"];
|
|
162
|
+
return (tx) => tx.moveCall({
|
|
163
|
+
package: packageAddress,
|
|
164
|
+
module: 'record',
|
|
165
|
+
function: 'purchase_currency',
|
|
166
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
/** Return the amount paid for this Record. */
|
|
170
|
+
export function purchasePrice(options) {
|
|
171
|
+
const packageAddress = options.package ?? '@local-pkg/miso_record';
|
|
172
|
+
const argumentsTypes = [
|
|
173
|
+
null
|
|
174
|
+
];
|
|
175
|
+
const parameterNames = ["self"];
|
|
176
|
+
return (tx) => tx.moveCall({
|
|
177
|
+
package: packageAddress,
|
|
178
|
+
module: 'record',
|
|
179
|
+
function: 'purchase_price',
|
|
180
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
/** Return the transaction sender who purchased this Record. */
|
|
184
|
+
export function purchasedBy(options) {
|
|
185
|
+
const packageAddress = options.package ?? '@local-pkg/miso_record';
|
|
186
|
+
const argumentsTypes = [
|
|
187
|
+
null
|
|
188
|
+
];
|
|
189
|
+
const parameterNames = ["self"];
|
|
190
|
+
return (tx) => tx.moveCall({
|
|
191
|
+
package: packageAddress,
|
|
192
|
+
module: 'record',
|
|
193
|
+
function: 'purchased_by',
|
|
194
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
/** Return the purchase time in Unix milliseconds from Sui's Clock. */
|
|
198
|
+
export function purchasedTimestampMs(options) {
|
|
199
|
+
const packageAddress = options.package ?? '@local-pkg/miso_record';
|
|
200
|
+
const argumentsTypes = [
|
|
201
|
+
null
|
|
202
|
+
];
|
|
203
|
+
const parameterNames = ["self"];
|
|
204
|
+
return (tx) => tx.moveCall({
|
|
205
|
+
package: packageAddress,
|
|
206
|
+
module: 'record',
|
|
207
|
+
function: 'purchased_timestamp_ms',
|
|
208
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
/** Derive the Record address for `number` in `pressing_id`'s edition. */
|
|
212
|
+
export function deriveAddress(options) {
|
|
213
|
+
const packageAddress = options.package ?? '@local-pkg/miso_record';
|
|
214
|
+
const argumentsTypes = [
|
|
215
|
+
'0x2::object::ID',
|
|
216
|
+
'u32'
|
|
217
|
+
];
|
|
218
|
+
const parameterNames = ["pressingId", "number"];
|
|
219
|
+
return (tx) => tx.moveCall({
|
|
220
|
+
package: packageAddress,
|
|
221
|
+
module: 'record',
|
|
222
|
+
function: 'derive_address',
|
|
223
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
//# sourceMappingURL=record.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"record.js","sourceRoot":"","sources":["../../../src/contracts/miso_record/record.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;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MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/** Functionality for converting Move types into values. Use with care! */
|
|
5
|
+
import { MoveStruct } from '../../../utils/index.js';
|
|
6
|
+
export declare const TypeName: MoveStruct<{
|
|
7
|
+
/**
|
|
8
|
+
* String representation of the type. All types are represented using their source
|
|
9
|
+
* syntax: "u8", "u64", "bool", "address", "vector", and so on for primitive types.
|
|
10
|
+
* Struct types are represented as fully qualified type names; e.g.
|
|
11
|
+
* `00000000000000000000000000000001::string::String` or
|
|
12
|
+
* `0000000000000000000000000000000a::module_name1::type_name1<0000000000000000000000000000000a::module_name2::type_name2<u64>>`
|
|
13
|
+
* Addresses are hex-encoded lowercase values of length ADDRESS_LENGTH (16, 20, or
|
|
14
|
+
* 32 depending on the Move platform)
|
|
15
|
+
*/
|
|
16
|
+
name: import("@mysten/bcs").BcsType<string, string, "string">;
|
|
17
|
+
}, "std::type_name::TypeName">;
|
|
18
|
+
//# sourceMappingURL=type_name.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type_name.d.ts","sourceRoot":"","sources":["../../../../../src/contracts/miso_record_shop/deps/std/type_name.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE,0EAA0E;AAE1E,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAIrD,eAAO,MAAM,QAAQ;IACb;;;;;;;;SAQK;;8BAEL,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/** Functionality for converting Move types into values. Use with care! */
|
|
5
|
+
import { MoveStruct } from '../../../utils/index.js';
|
|
6
|
+
import { bcs } from '@mysten/sui/bcs';
|
|
7
|
+
const $moduleName = 'std::type_name';
|
|
8
|
+
export const TypeName = new MoveStruct({ name: `${$moduleName}::TypeName`, fields: {
|
|
9
|
+
/**
|
|
10
|
+
* String representation of the type. All types are represented using their source
|
|
11
|
+
* syntax: "u8", "u64", "bool", "address", "vector", and so on for primitive types.
|
|
12
|
+
* Struct types are represented as fully qualified type names; e.g.
|
|
13
|
+
* `00000000000000000000000000000001::string::String` or
|
|
14
|
+
* `0000000000000000000000000000000a::module_name1::type_name1<0000000000000000000000000000000a::module_name2::type_name2<u64>>`
|
|
15
|
+
* Addresses are hex-encoded lowercase values of length ADDRESS_LENGTH (16, 20, or
|
|
16
|
+
* 32 depending on the Move platform)
|
|
17
|
+
*/
|
|
18
|
+
name: bcs.string()
|
|
19
|
+
} });
|
|
20
|
+
//# sourceMappingURL=type_name.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type_name.js","sourceRoot":"","sources":["../../../../../src/contracts/miso_record_shop/deps/std/type_name.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE,0EAA0E;AAE1E,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAEtC,MAAM,WAAW,GAAG,gBAAgB,CAAC;AACrC,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,YAAY,EAAE,MAAM,EAAE;QAC3E;;;;;;;;aAQK;QACL,IAAI,EAAE,GAAG,CAAC,MAAM,EAAE;KACrB,EAAE,CAAC,CAAC"}
|