@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
|
@@ -1,334 +0,0 @@
|
|
|
1
|
-
/**************************************************************
|
|
2
|
-
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
-
**************************************************************/
|
|
4
|
-
/**
|
|
5
|
-
* A release's record production — its _Pressing_.
|
|
6
|
-
*
|
|
7
|
-
* A release has exactly one pressing, and the pressing is one uncapped run of
|
|
8
|
-
* records: every copy ever made draws its number from this single counter,
|
|
9
|
-
* forever. There are no editions, no supply caps, and no sold-out state — scarcity
|
|
10
|
-
* on Miso is what a record _accrues_ (playtime above all), not how few of it were
|
|
11
|
-
* printed. The pressing owns two things and only two things: the **run** the
|
|
12
|
-
* records number against, and the **switch** that stops it.
|
|
13
|
-
*
|
|
14
|
-
* ```text
|
|
15
|
-
* Release
|
|
16
|
-
* └─ Pressing the run, and when it sells at all PressingKey()
|
|
17
|
-
* ├─ PressingAdminCap authority over price and state PressingAdminCapKey()
|
|
18
|
-
* ├─ Listing<SUI> what it costs in one currency ListingKey<SUI>()
|
|
19
|
-
* └─ Listing<USDC>
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* # Everything is address math
|
|
23
|
-
*
|
|
24
|
-
* A pressing's UID is derived off its release's UID at a singleton key, its admin
|
|
25
|
-
* cap's and each listing's off the pressing's, and records off the pressing's at
|
|
26
|
-
* their number. So every object in the tree is reachable from the release id
|
|
27
|
-
* alone, by pure computation — no registry, no pointer that has to be maintained,
|
|
28
|
-
* and no stored set of listings: a listing either exists at its derived address or
|
|
29
|
-
* it does not (`listing::has_listing`), and `ListingOpenedEvent<Currency>`
|
|
30
|
-
* enumerates them for an indexer. It also makes the number sequence gap-free for
|
|
31
|
-
* free, and every record verifiable against its pressing from chain state alone by
|
|
32
|
-
* comparing the certificate and derived address.
|
|
33
|
-
*
|
|
34
|
-
* # Starting and stopping is state, never teardown
|
|
35
|
-
*
|
|
36
|
-
* Nothing here is ever destroyed, sealed, or wound down — deleting a pressing
|
|
37
|
-
* would strand its whole derived subtree, so there is no destructor at all. The
|
|
38
|
-
* run's lifecycle is `Scheduled → Active → Paused → Active`: it opens itself at
|
|
39
|
-
* its drop moment (no artist transaction, and nobody can buy early), and after
|
|
40
|
-
* that the artist stops and starts it at will. The first transition is real, not
|
|
41
|
-
* computed — the first sale past the start rewrites `Scheduled` to `Active` inside
|
|
42
|
-
* `mint_next`, which is why `Scheduled` only ever describes a run still waiting.
|
|
43
|
-
* Below it, each listing's `Enabled | Disabled` governs one currency. A run that
|
|
44
|
-
* is paused or not yet open sells in no currency, whatever the listings say.
|
|
45
|
-
*
|
|
46
|
-
* There is no end state and no expiry: an uncapped, permanent run has nothing to
|
|
47
|
-
* count down to, and a time-limited sale is scarcity theater this design rejects.
|
|
48
|
-
* An artist ending a campaign pauses it.
|
|
49
|
-
*
|
|
50
|
-
* # Authority
|
|
51
|
-
*
|
|
52
|
-
* Opening a pressing needs the release's `ReleaseAdminCap`, enforced by the
|
|
53
|
-
* protocol's `release::uid_mut`, and hands back a `PressingAdminCap`. Everything
|
|
54
|
-
* after that — pricing, pausing, opening listings — authorizes against the
|
|
55
|
-
* pressing cap alone.
|
|
56
|
-
*
|
|
57
|
-
* The split is deliberate and it is about money, not tidiness. `ReleaseAdminCap`
|
|
58
|
-
* yields `release::uid_mut`, and `balance::withdraw_funds_from_object` is gated on
|
|
59
|
-
* `&mut UID` alone — so the release cap can withdraw the sales revenue that `buy`
|
|
60
|
-
* forwards to the release's address. Under one cap, "may reprice a listing" and
|
|
61
|
-
* "may take the money" would be the same grant. The caps may be held together. If
|
|
62
|
-
* separated, the pressing cap remains issuance authority: it controls listing
|
|
63
|
-
* creation, price, and availability, but cannot withdraw revenue.
|
|
64
|
-
*/
|
|
65
|
-
import { MoveTuple, MoveEnum, MoveStruct, type RawTransactionArgument } from '../utils/index.js';
|
|
66
|
-
import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
|
|
67
|
-
export declare const PressingKey: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">], "@local-pkg/miso_pressing::pressing::PressingKey">;
|
|
68
|
-
export declare const PressingAdminCapKey: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">], "@local-pkg/miso_pressing::pressing::PressingAdminCapKey">;
|
|
69
|
-
/**
|
|
70
|
-
* Whether the run sells, over every currency at once. The lifecycle runs
|
|
71
|
-
* `Scheduled → Active → Paused → Active`: a pressing opens itself at its drop
|
|
72
|
-
* moment, then the artist stops and starts it at will.
|
|
73
|
-
*/
|
|
74
|
-
export declare const PressingState: MoveEnum<{
|
|
75
|
-
/**
|
|
76
|
-
* Opens the moment the clock passes `start_timestamp_ms` (Unix ms), with no
|
|
77
|
-
* further action from anyone. A start already in the past sells now.
|
|
78
|
-
*
|
|
79
|
-
* This is a _transitional_ state: the first sale past the start rewrites it to
|
|
80
|
-
* `Active` (in `mint_next`, before any sales logic), so a run reads `Scheduled`
|
|
81
|
-
* only while it is still waiting. Between the start and that first sale the run
|
|
82
|
-
* already sells — `is_selling` answers against the clock — so nobody has to go
|
|
83
|
-
* first for the drop to be open.
|
|
84
|
-
*
|
|
85
|
-
* Consequence worth knowing: once the transition fires the start time is gone from
|
|
86
|
-
* the object. `PressingOpenedEvent` and `PressingStateChangedEvent` carry it, so
|
|
87
|
-
* "when was this run scheduled for" is an event-log question, not an object read.
|
|
88
|
-
*/
|
|
89
|
-
Scheduled: MoveStruct<{
|
|
90
|
-
start_timestamp_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
91
|
-
}, "PressingState.Scheduled">;
|
|
92
|
-
/** Selling, subject to each listing's own state. */
|
|
93
|
-
Active: null;
|
|
94
|
-
/** Selling in no currency, whatever the listings say. */
|
|
95
|
-
Paused: null;
|
|
96
|
-
}, "@local-pkg/miso_pressing::pressing::PressingState">;
|
|
97
|
-
export declare const Pressing: MoveStruct<{
|
|
98
|
-
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
99
|
-
/** The release these records are copies of. */
|
|
100
|
-
release_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
101
|
-
/** Whether the run sells at all, in any currency. */
|
|
102
|
-
state: MoveEnum<{
|
|
103
|
-
/**
|
|
104
|
-
* Opens the moment the clock passes `start_timestamp_ms` (Unix ms), with no
|
|
105
|
-
* further action from anyone. A start already in the past sells now.
|
|
106
|
-
*
|
|
107
|
-
* This is a _transitional_ state: the first sale past the start rewrites it to
|
|
108
|
-
* `Active` (in `mint_next`, before any sales logic), so a run reads `Scheduled`
|
|
109
|
-
* only while it is still waiting. Between the start and that first sale the run
|
|
110
|
-
* already sells — `is_selling` answers against the clock — so nobody has to go
|
|
111
|
-
* first for the drop to be open.
|
|
112
|
-
*
|
|
113
|
-
* Consequence worth knowing: once the transition fires the start time is gone from
|
|
114
|
-
* the object. `PressingOpenedEvent` and `PressingStateChangedEvent` carry it, so
|
|
115
|
-
* "when was this run scheduled for" is an event-log question, not an object read.
|
|
116
|
-
*/
|
|
117
|
-
Scheduled: MoveStruct<{
|
|
118
|
-
start_timestamp_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
119
|
-
}, "PressingState.Scheduled">;
|
|
120
|
-
/** Selling, subject to each listing's own state. */
|
|
121
|
-
Active: null;
|
|
122
|
-
/** Selling in no currency, whatever the listings say. */
|
|
123
|
-
Paused: null;
|
|
124
|
-
}, "@local-pkg/miso_pressing::pressing::PressingState">;
|
|
125
|
-
/**
|
|
126
|
-
* Records pressed so far; also the most recent number. Read on every mint — this
|
|
127
|
-
* is the sequence itself, not a statistic.
|
|
128
|
-
*/
|
|
129
|
-
supply: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
130
|
-
}, "@local-pkg/miso_pressing::pressing::Pressing">;
|
|
131
|
-
export declare const PressingAdminCap: MoveStruct<{
|
|
132
|
-
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
133
|
-
/** The pressing this cap controls. Every mutator asserts against it. */
|
|
134
|
-
pressing_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
135
|
-
}, "@local-pkg/miso_pressing::pressing::PressingAdminCap">;
|
|
136
|
-
export declare const PressingOpenedEvent: MoveStruct<{
|
|
137
|
-
pressing_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
138
|
-
release_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
139
|
-
state: MoveEnum<{
|
|
140
|
-
/**
|
|
141
|
-
* Opens the moment the clock passes `start_timestamp_ms` (Unix ms), with no
|
|
142
|
-
* further action from anyone. A start already in the past sells now.
|
|
143
|
-
*
|
|
144
|
-
* This is a _transitional_ state: the first sale past the start rewrites it to
|
|
145
|
-
* `Active` (in `mint_next`, before any sales logic), so a run reads `Scheduled`
|
|
146
|
-
* only while it is still waiting. Between the start and that first sale the run
|
|
147
|
-
* already sells — `is_selling` answers against the clock — so nobody has to go
|
|
148
|
-
* first for the drop to be open.
|
|
149
|
-
*
|
|
150
|
-
* Consequence worth knowing: once the transition fires the start time is gone from
|
|
151
|
-
* the object. `PressingOpenedEvent` and `PressingStateChangedEvent` carry it, so
|
|
152
|
-
* "when was this run scheduled for" is an event-log question, not an object read.
|
|
153
|
-
*/
|
|
154
|
-
Scheduled: MoveStruct<{
|
|
155
|
-
start_timestamp_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
156
|
-
}, "PressingState.Scheduled">;
|
|
157
|
-
/** Selling, subject to each listing's own state. */
|
|
158
|
-
Active: null;
|
|
159
|
-
/** Selling in no currency, whatever the listings say. */
|
|
160
|
-
Paused: null;
|
|
161
|
-
}, "@local-pkg/miso_pressing::pressing::PressingState">;
|
|
162
|
-
}, "@local-pkg/miso_pressing::pressing::PressingOpenedEvent">;
|
|
163
|
-
export declare const PressingStateChangedEvent: MoveStruct<{
|
|
164
|
-
pressing_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
165
|
-
state: MoveEnum<{
|
|
166
|
-
/**
|
|
167
|
-
* Opens the moment the clock passes `start_timestamp_ms` (Unix ms), with no
|
|
168
|
-
* further action from anyone. A start already in the past sells now.
|
|
169
|
-
*
|
|
170
|
-
* This is a _transitional_ state: the first sale past the start rewrites it to
|
|
171
|
-
* `Active` (in `mint_next`, before any sales logic), so a run reads `Scheduled`
|
|
172
|
-
* only while it is still waiting. Between the start and that first sale the run
|
|
173
|
-
* already sells — `is_selling` answers against the clock — so nobody has to go
|
|
174
|
-
* first for the drop to be open.
|
|
175
|
-
*
|
|
176
|
-
* Consequence worth knowing: once the transition fires the start time is gone from
|
|
177
|
-
* the object. `PressingOpenedEvent` and `PressingStateChangedEvent` carry it, so
|
|
178
|
-
* "when was this run scheduled for" is an event-log question, not an object read.
|
|
179
|
-
*/
|
|
180
|
-
Scheduled: MoveStruct<{
|
|
181
|
-
start_timestamp_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
182
|
-
}, "PressingState.Scheduled">;
|
|
183
|
-
/** Selling, subject to each listing's own state. */
|
|
184
|
-
Active: null;
|
|
185
|
-
/** Selling in no currency, whatever the listings say. */
|
|
186
|
-
Paused: null;
|
|
187
|
-
}, "@local-pkg/miso_pressing::pressing::PressingState">;
|
|
188
|
-
}, "@local-pkg/miso_pressing::pressing::PressingStateChangedEvent">;
|
|
189
|
-
export interface NewScheduledStateArguments {
|
|
190
|
-
startTimestampMs: RawTransactionArgument<number | bigint>;
|
|
191
|
-
}
|
|
192
|
-
export interface NewScheduledStateOptions {
|
|
193
|
-
package?: string;
|
|
194
|
-
arguments: NewScheduledStateArguments | [
|
|
195
|
-
startTimestampMs: RawTransactionArgument<number | bigint>
|
|
196
|
-
];
|
|
197
|
-
}
|
|
198
|
-
/** The scheduled state: the run opens itself at `start_timestamp_ms` (Unix ms). */
|
|
199
|
-
export declare function newScheduledState(options: NewScheduledStateOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
200
|
-
export interface NewActiveStateOptions {
|
|
201
|
-
package?: string;
|
|
202
|
-
arguments?: [
|
|
203
|
-
];
|
|
204
|
-
}
|
|
205
|
-
/** The active state: the run sells, subject to each listing's own state. */
|
|
206
|
-
export declare function newActiveState(options?: NewActiveStateOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
207
|
-
export interface NewPausedStateOptions {
|
|
208
|
-
package?: string;
|
|
209
|
-
arguments?: [
|
|
210
|
-
];
|
|
211
|
-
}
|
|
212
|
-
/** The paused state: the run sells in no currency. */
|
|
213
|
-
export declare function newPausedState(options?: NewPausedStateOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
214
|
-
export interface NewArguments {
|
|
215
|
-
release: RawTransactionArgument<string>;
|
|
216
|
-
cap: RawTransactionArgument<string>;
|
|
217
|
-
state: TransactionArgument;
|
|
218
|
-
}
|
|
219
|
-
export interface NewOptions {
|
|
220
|
-
package?: string;
|
|
221
|
-
arguments: NewArguments | [
|
|
222
|
-
release: RawTransactionArgument<string>,
|
|
223
|
-
cap: RawTransactionArgument<string>,
|
|
224
|
-
state: TransactionArgument
|
|
225
|
-
];
|
|
226
|
-
}
|
|
227
|
-
/**
|
|
228
|
-
* Open a release's pressing in `state` — `Scheduled` for a drop moment, `Active`
|
|
229
|
-
* to sell immediately, `Paused` to set it up quietly. Returns it unshared, so the
|
|
230
|
-
* same transaction can list it (`listing::new`) before `share` puts it on chain,
|
|
231
|
-
* plus the cap that governs it from here on. Neither value has `drop`, so neither
|
|
232
|
-
* can be lost by forgetting.
|
|
233
|
-
*
|
|
234
|
-
* Claim-once on `PressingKey()` means a release's pressing can only ever be opened
|
|
235
|
-
* here, exactly once; calling this twice for the same release aborts.
|
|
236
|
-
*/
|
|
237
|
-
export declare function _new(options: NewOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
238
|
-
export interface ShareArguments {
|
|
239
|
-
self: RawTransactionArgument<string>;
|
|
240
|
-
}
|
|
241
|
-
export interface ShareOptions {
|
|
242
|
-
package?: string;
|
|
243
|
-
arguments: ShareArguments | [
|
|
244
|
-
self: RawTransactionArgument<string>
|
|
245
|
-
];
|
|
246
|
-
}
|
|
247
|
-
/**
|
|
248
|
-
* Put the pressing on chain. `new` hands back an unshared `Pressing` so the same
|
|
249
|
-
* transaction can list it first; this is the last call in that sequence.
|
|
250
|
-
*/
|
|
251
|
-
export declare function share(options: ShareOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
252
|
-
export interface SetStateArguments {
|
|
253
|
-
self: RawTransactionArgument<string>;
|
|
254
|
-
cap: RawTransactionArgument<string>;
|
|
255
|
-
state: TransactionArgument;
|
|
256
|
-
}
|
|
257
|
-
export interface SetStateOptions {
|
|
258
|
-
package?: string;
|
|
259
|
-
arguments: SetStateArguments | [
|
|
260
|
-
self: RawTransactionArgument<string>,
|
|
261
|
-
cap: RawTransactionArgument<string>,
|
|
262
|
-
state: TransactionArgument
|
|
263
|
-
];
|
|
264
|
-
}
|
|
265
|
-
/**
|
|
266
|
-
* Move the run between its three modes — schedule it, open it, stop it. Takes
|
|
267
|
-
* effect across every currency at once, regardless of any listing's own state.
|
|
268
|
-
*/
|
|
269
|
-
export declare function setState(options: SetStateOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
270
|
-
export interface DeriveIdArguments {
|
|
271
|
-
releaseId: RawTransactionArgument<string>;
|
|
272
|
-
}
|
|
273
|
-
export interface DeriveIdOptions {
|
|
274
|
-
package?: string;
|
|
275
|
-
arguments: DeriveIdArguments | [
|
|
276
|
-
releaseId: RawTransactionArgument<string>
|
|
277
|
-
];
|
|
278
|
-
}
|
|
279
|
-
/**
|
|
280
|
-
* The address `release_id`'s pressing occupies — pure address math, computable
|
|
281
|
-
* before the pressing has been opened.
|
|
282
|
-
*/
|
|
283
|
-
export declare function deriveId(options: DeriveIdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
284
|
-
export interface ReleaseIdArguments {
|
|
285
|
-
self: RawTransactionArgument<string>;
|
|
286
|
-
}
|
|
287
|
-
export interface ReleaseIdOptions {
|
|
288
|
-
package?: string;
|
|
289
|
-
arguments: ReleaseIdArguments | [
|
|
290
|
-
self: RawTransactionArgument<string>
|
|
291
|
-
];
|
|
292
|
-
}
|
|
293
|
-
export declare function releaseId(options: ReleaseIdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
294
|
-
export interface SupplyArguments {
|
|
295
|
-
self: RawTransactionArgument<string>;
|
|
296
|
-
}
|
|
297
|
-
export interface SupplyOptions {
|
|
298
|
-
package?: string;
|
|
299
|
-
arguments: SupplyArguments | [
|
|
300
|
-
self: RawTransactionArgument<string>
|
|
301
|
-
];
|
|
302
|
-
}
|
|
303
|
-
/** Records pressed so far; also the most recent number. */
|
|
304
|
-
export declare function supply(options: SupplyOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
305
|
-
export interface IsSellingArguments {
|
|
306
|
-
self: RawTransactionArgument<string>;
|
|
307
|
-
}
|
|
308
|
-
export interface IsSellingOptions {
|
|
309
|
-
package?: string;
|
|
310
|
-
arguments: IsSellingArguments | [
|
|
311
|
-
self: RawTransactionArgument<string>
|
|
312
|
-
];
|
|
313
|
-
}
|
|
314
|
-
/**
|
|
315
|
-
* Whether the run sells _right now_ — the question `buy` actually asks.
|
|
316
|
-
* `Scheduled` answers it against the clock, so a run past its start that has not
|
|
317
|
-
* yet had a sale to settle it reads as selling, which it is.
|
|
318
|
-
*/
|
|
319
|
-
export declare function isSelling(options: IsSellingOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
320
|
-
export interface PressingAdminCapPressingIdArguments {
|
|
321
|
-
cap: RawTransactionArgument<string>;
|
|
322
|
-
}
|
|
323
|
-
export interface PressingAdminCapPressingIdOptions {
|
|
324
|
-
package?: string;
|
|
325
|
-
arguments: PressingAdminCapPressingIdArguments | [
|
|
326
|
-
cap: RawTransactionArgument<string>
|
|
327
|
-
];
|
|
328
|
-
}
|
|
329
|
-
/**
|
|
330
|
-
* The pressing this cap controls. Public so a custody layer holding the cap can
|
|
331
|
-
* tell what it governs without the `Pressing` object.
|
|
332
|
-
*/
|
|
333
|
-
export declare function pressingAdminCapPressingId(options: PressingAdminCapPressingIdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
334
|
-
//# sourceMappingURL=pressing.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pressing.d.ts","sourceRoot":"","sources":["../../../src/contracts/miso_pressing/pressing.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAA0B,KAAK,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEzH,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEtF,eAAO,MAAM,WAAW,sIAA+E,CAAC;AACxG,eAAO,MAAM,mBAAmB,8IAAuF,CAAC;AACxH;;;;GAIG;AACH,eAAO,MAAM,aAAa;IAClB;;;;;;;;;;;;;QAaI;;;;IAIJ,oDAAoD;;IAEpD,yDAAyD;;uDAEzD,CAAC;AACT,eAAO,MAAM,QAAQ;;IAEb,+CAA+C;;IAE/C,qDAAqD;;QA1BrD;;;;;;;;;;;;;YAaI;;;;QAIJ,oDAAoD;;QAEpD,yDAAyD;;;IASzD;;;OAGG;;kDAEH,CAAC;AACT,eAAO,MAAM,gBAAgB;;IAErB,wEAAwE;;0DAExE,CAAC;AACT,eAAO,MAAM,mBAAmB;;;;QAvCxB;;;;;;;;;;;;;YAaI;;;;QAIJ,oDAAoD;;QAEpD,yDAAyD;;;6DAwBzD,CAAC;AACT,eAAO,MAAM,yBAAyB;;;QA5C9B;;;;;;;;;;;;;YAaI;;;;QAIJ,oDAAoD;;QAEpD,yDAAyD;;;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
2
|
-
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
-
**************************************************************/
|
|
4
|
-
/**
|
|
5
|
-
* A release's record production — its _Pressing_.
|
|
6
|
-
*
|
|
7
|
-
* A release has exactly one pressing, and the pressing is one uncapped run of
|
|
8
|
-
* records: every copy ever made draws its number from this single counter,
|
|
9
|
-
* forever. There are no editions, no supply caps, and no sold-out state — scarcity
|
|
10
|
-
* on Miso is what a record _accrues_ (playtime above all), not how few of it were
|
|
11
|
-
* printed. The pressing owns two things and only two things: the **run** the
|
|
12
|
-
* records number against, and the **switch** that stops it.
|
|
13
|
-
*
|
|
14
|
-
* ```text
|
|
15
|
-
* Release
|
|
16
|
-
* └─ Pressing the run, and when it sells at all PressingKey()
|
|
17
|
-
* ├─ PressingAdminCap authority over price and state PressingAdminCapKey()
|
|
18
|
-
* ├─ Listing<SUI> what it costs in one currency ListingKey<SUI>()
|
|
19
|
-
* └─ Listing<USDC>
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* # Everything is address math
|
|
23
|
-
*
|
|
24
|
-
* A pressing's UID is derived off its release's UID at a singleton key, its admin
|
|
25
|
-
* cap's and each listing's off the pressing's, and records off the pressing's at
|
|
26
|
-
* their number. So every object in the tree is reachable from the release id
|
|
27
|
-
* alone, by pure computation — no registry, no pointer that has to be maintained,
|
|
28
|
-
* and no stored set of listings: a listing either exists at its derived address or
|
|
29
|
-
* it does not (`listing::has_listing`), and `ListingOpenedEvent<Currency>`
|
|
30
|
-
* enumerates them for an indexer. It also makes the number sequence gap-free for
|
|
31
|
-
* free, and every record verifiable against its pressing from chain state alone by
|
|
32
|
-
* comparing the certificate and derived address.
|
|
33
|
-
*
|
|
34
|
-
* # Starting and stopping is state, never teardown
|
|
35
|
-
*
|
|
36
|
-
* Nothing here is ever destroyed, sealed, or wound down — deleting a pressing
|
|
37
|
-
* would strand its whole derived subtree, so there is no destructor at all. The
|
|
38
|
-
* run's lifecycle is `Scheduled → Active → Paused → Active`: it opens itself at
|
|
39
|
-
* its drop moment (no artist transaction, and nobody can buy early), and after
|
|
40
|
-
* that the artist stops and starts it at will. The first transition is real, not
|
|
41
|
-
* computed — the first sale past the start rewrites `Scheduled` to `Active` inside
|
|
42
|
-
* `mint_next`, which is why `Scheduled` only ever describes a run still waiting.
|
|
43
|
-
* Below it, each listing's `Enabled | Disabled` governs one currency. A run that
|
|
44
|
-
* is paused or not yet open sells in no currency, whatever the listings say.
|
|
45
|
-
*
|
|
46
|
-
* There is no end state and no expiry: an uncapped, permanent run has nothing to
|
|
47
|
-
* count down to, and a time-limited sale is scarcity theater this design rejects.
|
|
48
|
-
* An artist ending a campaign pauses it.
|
|
49
|
-
*
|
|
50
|
-
* # Authority
|
|
51
|
-
*
|
|
52
|
-
* Opening a pressing needs the release's `ReleaseAdminCap`, enforced by the
|
|
53
|
-
* protocol's `release::uid_mut`, and hands back a `PressingAdminCap`. Everything
|
|
54
|
-
* after that — pricing, pausing, opening listings — authorizes against the
|
|
55
|
-
* pressing cap alone.
|
|
56
|
-
*
|
|
57
|
-
* The split is deliberate and it is about money, not tidiness. `ReleaseAdminCap`
|
|
58
|
-
* yields `release::uid_mut`, and `balance::withdraw_funds_from_object` is gated on
|
|
59
|
-
* `&mut UID` alone — so the release cap can withdraw the sales revenue that `buy`
|
|
60
|
-
* forwards to the release's address. Under one cap, "may reprice a listing" and
|
|
61
|
-
* "may take the money" would be the same grant. The caps may be held together. If
|
|
62
|
-
* separated, the pressing cap remains issuance authority: it controls listing
|
|
63
|
-
* creation, price, and availability, but cannot withdraw revenue.
|
|
64
|
-
*/
|
|
65
|
-
import { MoveTuple, MoveEnum, MoveStruct, normalizeMoveArguments } from '../utils/index.js';
|
|
66
|
-
import { bcs } from '@mysten/sui/bcs';
|
|
67
|
-
import {} from '@mysten/sui/transactions';
|
|
68
|
-
const $moduleName = '@local-pkg/miso_pressing::pressing';
|
|
69
|
-
export const PressingKey = new MoveTuple({ name: `${$moduleName}::PressingKey`, fields: [bcs.bool()] });
|
|
70
|
-
export const PressingAdminCapKey = new MoveTuple({ name: `${$moduleName}::PressingAdminCapKey`, fields: [bcs.bool()] });
|
|
71
|
-
/**
|
|
72
|
-
* Whether the run sells, over every currency at once. The lifecycle runs
|
|
73
|
-
* `Scheduled → Active → Paused → Active`: a pressing opens itself at its drop
|
|
74
|
-
* moment, then the artist stops and starts it at will.
|
|
75
|
-
*/
|
|
76
|
-
export const PressingState = new MoveEnum({ name: `${$moduleName}::PressingState`, fields: {
|
|
77
|
-
/**
|
|
78
|
-
* Opens the moment the clock passes `start_timestamp_ms` (Unix ms), with no
|
|
79
|
-
* further action from anyone. A start already in the past sells now.
|
|
80
|
-
*
|
|
81
|
-
* This is a _transitional_ state: the first sale past the start rewrites it to
|
|
82
|
-
* `Active` (in `mint_next`, before any sales logic), so a run reads `Scheduled`
|
|
83
|
-
* only while it is still waiting. Between the start and that first sale the run
|
|
84
|
-
* already sells — `is_selling` answers against the clock — so nobody has to go
|
|
85
|
-
* first for the drop to be open.
|
|
86
|
-
*
|
|
87
|
-
* Consequence worth knowing: once the transition fires the start time is gone from
|
|
88
|
-
* the object. `PressingOpenedEvent` and `PressingStateChangedEvent` carry it, so
|
|
89
|
-
* "when was this run scheduled for" is an event-log question, not an object read.
|
|
90
|
-
*/
|
|
91
|
-
Scheduled: new MoveStruct({ name: `PressingState.Scheduled`, fields: {
|
|
92
|
-
start_timestamp_ms: bcs.u64()
|
|
93
|
-
} }),
|
|
94
|
-
/** Selling, subject to each listing's own state. */
|
|
95
|
-
Active: null,
|
|
96
|
-
/** Selling in no currency, whatever the listings say. */
|
|
97
|
-
Paused: null
|
|
98
|
-
} });
|
|
99
|
-
export const Pressing = new MoveStruct({ name: `${$moduleName}::Pressing`, fields: {
|
|
100
|
-
id: bcs.Address,
|
|
101
|
-
/** The release these records are copies of. */
|
|
102
|
-
release_id: bcs.Address,
|
|
103
|
-
/** Whether the run sells at all, in any currency. */
|
|
104
|
-
state: PressingState,
|
|
105
|
-
/**
|
|
106
|
-
* Records pressed so far; also the most recent number. Read on every mint — this
|
|
107
|
-
* is the sequence itself, not a statistic.
|
|
108
|
-
*/
|
|
109
|
-
supply: bcs.u64()
|
|
110
|
-
} });
|
|
111
|
-
export const PressingAdminCap = new MoveStruct({ name: `${$moduleName}::PressingAdminCap`, fields: {
|
|
112
|
-
id: bcs.Address,
|
|
113
|
-
/** The pressing this cap controls. Every mutator asserts against it. */
|
|
114
|
-
pressing_id: bcs.Address
|
|
115
|
-
} });
|
|
116
|
-
export const PressingOpenedEvent = new MoveStruct({ name: `${$moduleName}::PressingOpenedEvent`, fields: {
|
|
117
|
-
pressing_id: bcs.Address,
|
|
118
|
-
release_id: bcs.Address,
|
|
119
|
-
state: PressingState
|
|
120
|
-
} });
|
|
121
|
-
export const PressingStateChangedEvent = new MoveStruct({ name: `${$moduleName}::PressingStateChangedEvent`, fields: {
|
|
122
|
-
pressing_id: bcs.Address,
|
|
123
|
-
state: PressingState
|
|
124
|
-
} });
|
|
125
|
-
/** The scheduled state: the run opens itself at `start_timestamp_ms` (Unix ms). */
|
|
126
|
-
export function newScheduledState(options) {
|
|
127
|
-
const packageAddress = options.package ?? '@local-pkg/miso_pressing';
|
|
128
|
-
const argumentsTypes = [
|
|
129
|
-
'u64'
|
|
130
|
-
];
|
|
131
|
-
const parameterNames = ["startTimestampMs"];
|
|
132
|
-
return (tx) => tx.moveCall({
|
|
133
|
-
package: packageAddress,
|
|
134
|
-
module: 'pressing',
|
|
135
|
-
function: 'new_scheduled_state',
|
|
136
|
-
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
/** The active state: the run sells, subject to each listing's own state. */
|
|
140
|
-
export function newActiveState(options = {}) {
|
|
141
|
-
const packageAddress = options.package ?? '@local-pkg/miso_pressing';
|
|
142
|
-
return (tx) => tx.moveCall({
|
|
143
|
-
package: packageAddress,
|
|
144
|
-
module: 'pressing',
|
|
145
|
-
function: 'new_active_state',
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
|
-
/** The paused state: the run sells in no currency. */
|
|
149
|
-
export function newPausedState(options = {}) {
|
|
150
|
-
const packageAddress = options.package ?? '@local-pkg/miso_pressing';
|
|
151
|
-
return (tx) => tx.moveCall({
|
|
152
|
-
package: packageAddress,
|
|
153
|
-
module: 'pressing',
|
|
154
|
-
function: 'new_paused_state',
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
/**
|
|
158
|
-
* Open a release's pressing in `state` — `Scheduled` for a drop moment, `Active`
|
|
159
|
-
* to sell immediately, `Paused` to set it up quietly. Returns it unshared, so the
|
|
160
|
-
* same transaction can list it (`listing::new`) before `share` puts it on chain,
|
|
161
|
-
* plus the cap that governs it from here on. Neither value has `drop`, so neither
|
|
162
|
-
* can be lost by forgetting.
|
|
163
|
-
*
|
|
164
|
-
* Claim-once on `PressingKey()` means a release's pressing can only ever be opened
|
|
165
|
-
* here, exactly once; calling this twice for the same release aborts.
|
|
166
|
-
*/
|
|
167
|
-
export function _new(options) {
|
|
168
|
-
const packageAddress = options.package ?? '@local-pkg/miso_pressing';
|
|
169
|
-
const argumentsTypes = [
|
|
170
|
-
null,
|
|
171
|
-
null,
|
|
172
|
-
null
|
|
173
|
-
];
|
|
174
|
-
const parameterNames = ["release", "cap", "state"];
|
|
175
|
-
return (tx) => tx.moveCall({
|
|
176
|
-
package: packageAddress,
|
|
177
|
-
module: 'pressing',
|
|
178
|
-
function: 'new',
|
|
179
|
-
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
180
|
-
});
|
|
181
|
-
}
|
|
182
|
-
/**
|
|
183
|
-
* Put the pressing on chain. `new` hands back an unshared `Pressing` so the same
|
|
184
|
-
* transaction can list it first; this is the last call in that sequence.
|
|
185
|
-
*/
|
|
186
|
-
export function share(options) {
|
|
187
|
-
const packageAddress = options.package ?? '@local-pkg/miso_pressing';
|
|
188
|
-
const argumentsTypes = [
|
|
189
|
-
null
|
|
190
|
-
];
|
|
191
|
-
const parameterNames = ["self"];
|
|
192
|
-
return (tx) => tx.moveCall({
|
|
193
|
-
package: packageAddress,
|
|
194
|
-
module: 'pressing',
|
|
195
|
-
function: 'share',
|
|
196
|
-
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
197
|
-
});
|
|
198
|
-
}
|
|
199
|
-
/**
|
|
200
|
-
* Move the run between its three modes — schedule it, open it, stop it. Takes
|
|
201
|
-
* effect across every currency at once, regardless of any listing's own state.
|
|
202
|
-
*/
|
|
203
|
-
export function setState(options) {
|
|
204
|
-
const packageAddress = options.package ?? '@local-pkg/miso_pressing';
|
|
205
|
-
const argumentsTypes = [
|
|
206
|
-
null,
|
|
207
|
-
null,
|
|
208
|
-
null
|
|
209
|
-
];
|
|
210
|
-
const parameterNames = ["self", "cap", "state"];
|
|
211
|
-
return (tx) => tx.moveCall({
|
|
212
|
-
package: packageAddress,
|
|
213
|
-
module: 'pressing',
|
|
214
|
-
function: 'set_state',
|
|
215
|
-
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
216
|
-
});
|
|
217
|
-
}
|
|
218
|
-
/**
|
|
219
|
-
* The address `release_id`'s pressing occupies — pure address math, computable
|
|
220
|
-
* before the pressing has been opened.
|
|
221
|
-
*/
|
|
222
|
-
export function deriveId(options) {
|
|
223
|
-
const packageAddress = options.package ?? '@local-pkg/miso_pressing';
|
|
224
|
-
const argumentsTypes = [
|
|
225
|
-
'0x2::object::ID'
|
|
226
|
-
];
|
|
227
|
-
const parameterNames = ["releaseId"];
|
|
228
|
-
return (tx) => tx.moveCall({
|
|
229
|
-
package: packageAddress,
|
|
230
|
-
module: 'pressing',
|
|
231
|
-
function: 'derive_id',
|
|
232
|
-
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
233
|
-
});
|
|
234
|
-
}
|
|
235
|
-
export function releaseId(options) {
|
|
236
|
-
const packageAddress = options.package ?? '@local-pkg/miso_pressing';
|
|
237
|
-
const argumentsTypes = [
|
|
238
|
-
null
|
|
239
|
-
];
|
|
240
|
-
const parameterNames = ["self"];
|
|
241
|
-
return (tx) => tx.moveCall({
|
|
242
|
-
package: packageAddress,
|
|
243
|
-
module: 'pressing',
|
|
244
|
-
function: 'release_id',
|
|
245
|
-
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
246
|
-
});
|
|
247
|
-
}
|
|
248
|
-
/** Records pressed so far; also the most recent number. */
|
|
249
|
-
export function supply(options) {
|
|
250
|
-
const packageAddress = options.package ?? '@local-pkg/miso_pressing';
|
|
251
|
-
const argumentsTypes = [
|
|
252
|
-
null
|
|
253
|
-
];
|
|
254
|
-
const parameterNames = ["self"];
|
|
255
|
-
return (tx) => tx.moveCall({
|
|
256
|
-
package: packageAddress,
|
|
257
|
-
module: 'pressing',
|
|
258
|
-
function: 'supply',
|
|
259
|
-
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
260
|
-
});
|
|
261
|
-
}
|
|
262
|
-
/**
|
|
263
|
-
* Whether the run sells _right now_ — the question `buy` actually asks.
|
|
264
|
-
* `Scheduled` answers it against the clock, so a run past its start that has not
|
|
265
|
-
* yet had a sale to settle it reads as selling, which it is.
|
|
266
|
-
*/
|
|
267
|
-
export function isSelling(options) {
|
|
268
|
-
const packageAddress = options.package ?? '@local-pkg/miso_pressing';
|
|
269
|
-
const argumentsTypes = [
|
|
270
|
-
null,
|
|
271
|
-
'0x2::clock::Clock'
|
|
272
|
-
];
|
|
273
|
-
const parameterNames = ["self"];
|
|
274
|
-
return (tx) => tx.moveCall({
|
|
275
|
-
package: packageAddress,
|
|
276
|
-
module: 'pressing',
|
|
277
|
-
function: 'is_selling',
|
|
278
|
-
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
279
|
-
});
|
|
280
|
-
}
|
|
281
|
-
/**
|
|
282
|
-
* The pressing this cap controls. Public so a custody layer holding the cap can
|
|
283
|
-
* tell what it governs without the `Pressing` object.
|
|
284
|
-
*/
|
|
285
|
-
export function pressingAdminCapPressingId(options) {
|
|
286
|
-
const packageAddress = options.package ?? '@local-pkg/miso_pressing';
|
|
287
|
-
const argumentsTypes = [
|
|
288
|
-
null
|
|
289
|
-
];
|
|
290
|
-
const parameterNames = ["cap"];
|
|
291
|
-
return (tx) => tx.moveCall({
|
|
292
|
-
package: packageAddress,
|
|
293
|
-
module: 'pressing',
|
|
294
|
-
function: 'pressing_admin_cap_pressing_id',
|
|
295
|
-
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
296
|
-
});
|
|
297
|
-
}
|
|
298
|
-
//# sourceMappingURL=pressing.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pressing.js","sourceRoot":"","sources":["../../../src/contracts/miso_pressing/pressing.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,sBAAsB,EAA+B,MAAM,mBAAmB,CAAC;AACzH,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,EAA8C,MAAM,0BAA0B,CAAC;AACtF,MAAM,WAAW,GAAG,oCAAoC,CAAC;AACzD,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,SAAS,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,eAAe,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC;AACxG,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,SAAS,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,uBAAuB,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC;AACxH;;;;GAIG;AACH,MAA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cAAc,EAAE,cAAc,CAAC;KACvF,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"witness.d.ts","sourceRoot":"","sources":["../../../src/contracts/party_wallet/witness.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAG9C,eAAO,MAAM,OAAO,gIAA2E,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"witness.js","sourceRoot":"","sources":["../../../src/contracts/party_wallet/witness.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,MAAM,WAAW,GAAG,kCAAkC,CAAC;AACvD,MAAM,CAAC,MAAM,OAAO,GAAG,IAAI,SAAS,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,WAAW,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"witness.d.ts","sourceRoot":"","sources":["../../../src/contracts/recording_royalty_pool/witness.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAG9C,eAAO,MAAM,OAAO,0IAA2E,CAAC"}
|