@misonetwork/sdk 0.7.0 → 0.8.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 +181 -139
- package/dist/client.d.ts +1225 -8
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +43 -19
- package/dist/client.js.map +1 -1
- package/dist/contracts/composition_credits/composition_credits.d.ts +181 -0
- package/dist/contracts/composition_credits/composition_credits.d.ts.map +1 -0
- package/dist/contracts/composition_credits/composition_credits.js +109 -0
- package/dist/contracts/composition_credits/composition_credits.js.map +1 -0
- package/dist/contracts/composition_credits/composition_party_role.d.ts +119 -0
- package/dist/contracts/composition_credits/composition_party_role.d.ts.map +1 -0
- package/dist/contracts/composition_credits/composition_party_role.js +139 -0
- package/dist/contracts/composition_credits/composition_party_role.js.map +1 -0
- package/dist/contracts/composition_credits/deps/miso_credit/credit.d.ts +24 -0
- package/dist/contracts/composition_credits/deps/miso_credit/credit.d.ts.map +1 -0
- package/dist/contracts/composition_credits/deps/miso_credit/credit.js +23 -0
- package/dist/contracts/composition_credits/deps/miso_credit/credit.js.map +1 -0
- package/dist/contracts/composition_credits/deps/sui/vec_map.d.ts +37 -0
- package/dist/contracts/composition_credits/deps/sui/vec_map.d.ts.map +1 -0
- package/dist/contracts/composition_credits/deps/sui/vec_map.js +28 -0
- package/dist/contracts/composition_credits/deps/sui/vec_map.js.map +1 -0
- package/dist/contracts/miso/composition.d.ts +1 -1
- package/dist/contracts/miso/composition.js +2 -2
- package/dist/contracts/miso/deps/bps/bps.d.ts +1 -1
- package/dist/contracts/miso/deps/bps/bps.js +1 -1
- package/dist/contracts/miso/recording.d.ts +1 -1
- package/dist/contracts/miso/recording.js +1 -1
- package/dist/contracts/miso/release.d.ts +61 -37
- package/dist/contracts/miso/release.d.ts.map +1 -1
- package/dist/contracts/miso/release.js +65 -38
- package/dist/contracts/miso/release.js.map +1 -1
- package/dist/contracts/miso/track.d.ts +2 -2
- package/dist/contracts/miso/track.js +2 -2
- package/dist/contracts/recording_advisory/recording_advisory.d.ts +194 -0
- package/dist/contracts/recording_advisory/recording_advisory.d.ts.map +1 -0
- package/dist/contracts/recording_advisory/recording_advisory.js +204 -0
- package/dist/contracts/recording_advisory/recording_advisory.js.map +1 -0
- package/dist/contracts/recording_credits/deps/miso_credit/credit.d.ts +24 -0
- package/dist/contracts/recording_credits/deps/miso_credit/credit.d.ts.map +1 -0
- package/dist/contracts/recording_credits/deps/miso_credit/credit.js +23 -0
- package/dist/contracts/recording_credits/deps/miso_credit/credit.js.map +1 -0
- package/dist/contracts/recording_credits/deps/sui/vec_map.d.ts +37 -0
- package/dist/contracts/recording_credits/deps/sui/vec_map.d.ts.map +1 -0
- package/dist/contracts/recording_credits/deps/sui/vec_map.js +28 -0
- package/dist/contracts/recording_credits/deps/sui/vec_map.js.map +1 -0
- package/dist/contracts/recording_credits/deps/sui/vec_set.d.ts +21 -0
- package/dist/contracts/recording_credits/deps/sui/vec_set.d.ts.map +1 -0
- package/dist/contracts/recording_credits/deps/sui/vec_set.js +20 -0
- package/dist/contracts/recording_credits/deps/sui/vec_set.js.map +1 -0
- package/dist/contracts/recording_credits/recording_credits.d.ts +2313 -0
- package/dist/contracts/recording_credits/recording_credits.d.ts.map +1 -0
- package/dist/contracts/recording_credits/recording_credits.js +270 -0
- package/dist/contracts/recording_credits/recording_credits.js.map +1 -0
- package/dist/contracts/recording_credits/recording_party_role.d.ts +1174 -0
- package/dist/contracts/recording_credits/recording_party_role.d.ts.map +1 -0
- package/dist/contracts/recording_credits/recording_party_role.js +692 -0
- package/dist/contracts/recording_credits/recording_party_role.js.map +1 -0
- package/dist/contracts/recording_language/deps/language_code/language_code.d.ts +6 -0
- package/dist/contracts/recording_language/deps/language_code/language_code.d.ts.map +1 -0
- package/dist/contracts/recording_language/deps/language_code/language_code.js +8 -0
- package/dist/contracts/recording_language/deps/language_code/language_code.js.map +1 -0
- package/dist/contracts/recording_language/recording_language.d.ts +152 -0
- package/dist/contracts/recording_language/recording_language.d.ts.map +1 -0
- package/dist/contracts/recording_language/recording_language.js +149 -0
- package/dist/contracts/recording_language/recording_language.js.map +1 -0
- package/dist/contracts/recording_master_reference/deps/ori/walrus_data.d.ts +52 -0
- package/dist/contracts/recording_master_reference/deps/ori/walrus_data.d.ts.map +1 -0
- package/dist/contracts/recording_master_reference/deps/ori/walrus_data.js +37 -0
- package/dist/contracts/recording_master_reference/deps/ori/walrus_data.js.map +1 -0
- package/dist/contracts/recording_master_reference/recording_master_reference.d.ts +131 -0
- package/dist/contracts/recording_master_reference/recording_master_reference.d.ts.map +1 -0
- package/dist/contracts/recording_master_reference/recording_master_reference.js +121 -0
- package/dist/contracts/recording_master_reference/recording_master_reference.js.map +1 -0
- package/dist/contracts/recording_preview/deps/ori/walrus_data.d.ts +52 -0
- package/dist/contracts/recording_preview/deps/ori/walrus_data.d.ts.map +1 -0
- package/dist/contracts/recording_preview/deps/ori/walrus_data.js +37 -0
- package/dist/contracts/recording_preview/deps/ori/walrus_data.js.map +1 -0
- package/dist/contracts/recording_preview/recording_preview.d.ts +104 -0
- package/dist/contracts/recording_preview/recording_preview.d.ts.map +1 -0
- package/dist/contracts/recording_preview/recording_preview.js +94 -0
- package/dist/contracts/recording_preview/recording_preview.js.map +1 -0
- package/dist/contracts/release_cover_art/deps/0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78/walrus_data.d.ts +52 -0
- package/dist/contracts/release_cover_art/deps/0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78/walrus_data.d.ts.map +1 -0
- package/dist/contracts/release_cover_art/deps/0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78/walrus_data.js +37 -0
- package/dist/contracts/release_cover_art/deps/0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78/walrus_data.js.map +1 -0
- package/dist/contracts/release_cover_art/deps/cover_art/cover_art.d.ts +46 -0
- package/dist/contracts/release_cover_art/deps/cover_art/cover_art.d.ts.map +1 -0
- package/dist/contracts/release_cover_art/deps/cover_art/cover_art.js +21 -0
- package/dist/contracts/release_cover_art/deps/cover_art/cover_art.js.map +1 -0
- package/dist/contracts/release_cover_art/deps/per_track/per_track.d.ts +33 -0
- package/dist/contracts/release_cover_art/deps/per_track/per_track.d.ts.map +1 -0
- package/dist/contracts/release_cover_art/deps/per_track/per_track.js +32 -0
- package/dist/contracts/release_cover_art/deps/per_track/per_track.js.map +1 -0
- package/dist/contracts/release_cover_art/release_cover_art.d.ts +300 -0
- package/dist/contracts/release_cover_art/release_cover_art.d.ts.map +1 -0
- package/dist/contracts/release_cover_art/release_cover_art.js +168 -0
- package/dist/contracts/release_cover_art/release_cover_art.js.map +1 -0
- package/dist/contracts/release_credits/deps/miso_credit/credit.d.ts +24 -0
- package/dist/contracts/release_credits/deps/miso_credit/credit.d.ts.map +1 -0
- package/dist/contracts/release_credits/deps/miso_credit/credit.js +23 -0
- package/dist/contracts/release_credits/deps/miso_credit/credit.js.map +1 -0
- package/dist/contracts/release_credits/deps/sui/vec_map.d.ts +37 -0
- package/dist/contracts/release_credits/deps/sui/vec_map.d.ts.map +1 -0
- package/dist/contracts/release_credits/deps/sui/vec_map.js +28 -0
- package/dist/contracts/release_credits/deps/sui/vec_map.js.map +1 -0
- package/dist/contracts/release_credits/release_credits.d.ts +142 -0
- package/dist/contracts/release_credits/release_credits.d.ts.map +1 -0
- package/dist/contracts/release_credits/release_credits.js +108 -0
- package/dist/contracts/release_credits/release_credits.js.map +1 -0
- package/dist/contracts/release_credits/release_party_role.d.ts +58 -0
- package/dist/contracts/release_credits/release_party_role.d.ts.map +1 -0
- package/dist/contracts/release_credits/release_party_role.js +66 -0
- package/dist/contracts/release_credits/release_party_role.js.map +1 -0
- package/dist/contracts/release_description/release_description.d.ts +112 -0
- package/dist/contracts/release_description/release_description.d.ts.map +1 -0
- package/dist/contracts/release_description/release_description.js +123 -0
- package/dist/contracts/release_description/release_description.js.map +1 -0
- package/dist/contracts/release_dsp_link/release_dsp_link.d.ts +644 -0
- package/dist/contracts/release_dsp_link/release_dsp_link.d.ts.map +1 -0
- package/dist/contracts/release_dsp_link/release_dsp_link.js +556 -0
- package/dist/contracts/release_dsp_link/release_dsp_link.js.map +1 -0
- package/dist/contracts/release_genre/deps/per_track/per_track.d.ts +33 -0
- package/dist/contracts/release_genre/deps/per_track/per_track.d.ts.map +1 -0
- package/dist/contracts/release_genre/deps/per_track/per_track.js +32 -0
- package/dist/contracts/release_genre/deps/per_track/per_track.js.map +1 -0
- package/dist/contracts/release_genre/release_genre.d.ts +193 -0
- package/dist/contracts/release_genre/release_genre.d.ts.map +1 -0
- package/dist/contracts/release_genre/release_genre.js +207 -0
- package/dist/contracts/release_genre/release_genre.js.map +1 -0
- package/dist/contracts/release_kind/release_kind.d.ts +98 -0
- package/dist/contracts/release_kind/release_kind.d.ts.map +1 -0
- package/dist/contracts/release_kind/release_kind.js +109 -0
- package/dist/contracts/release_kind/release_kind.js.map +1 -0
- package/dist/contracts/release_snapshot_bundle/deps/ori/walrus_data.d.ts +52 -0
- package/dist/contracts/release_snapshot_bundle/deps/ori/walrus_data.d.ts.map +1 -0
- package/dist/contracts/release_snapshot_bundle/deps/ori/walrus_data.js +37 -0
- package/dist/contracts/release_snapshot_bundle/deps/ori/walrus_data.js.map +1 -0
- package/dist/contracts/release_snapshot_bundle/release_snapshot_bundle.d.ts +91 -0
- package/dist/contracts/release_snapshot_bundle/release_snapshot_bundle.d.ts.map +1 -0
- package/dist/contracts/release_snapshot_bundle/release_snapshot_bundle.js +91 -0
- package/dist/contracts/release_snapshot_bundle/release_snapshot_bundle.js.map +1 -0
- package/dist/contracts/routed_stake/deps/royalty_pool/stake.d.ts +54 -0
- package/dist/contracts/routed_stake/deps/royalty_pool/stake.d.ts.map +1 -0
- package/dist/contracts/routed_stake/deps/royalty_pool/stake.js +37 -0
- package/dist/contracts/routed_stake/deps/royalty_pool/stake.js.map +1 -0
- package/dist/contracts/routed_stake/deps/std/type_name.d.ts +18 -0
- package/dist/contracts/routed_stake/deps/std/type_name.d.ts.map +1 -0
- package/dist/contracts/routed_stake/deps/std/type_name.js +20 -0
- package/dist/contracts/routed_stake/deps/std/type_name.js.map +1 -0
- package/dist/contracts/routed_stake/deps/sui/balance.d.ts +13 -0
- package/dist/contracts/routed_stake/deps/sui/balance.d.ts.map +1 -0
- package/dist/contracts/routed_stake/deps/sui/balance.js +15 -0
- package/dist/contracts/routed_stake/deps/sui/balance.js.map +1 -0
- package/dist/contracts/routed_stake/deps/sui/vec_map.d.ts +37 -0
- package/dist/contracts/routed_stake/deps/sui/vec_map.d.ts.map +1 -0
- package/dist/contracts/routed_stake/deps/sui/vec_map.js +28 -0
- package/dist/contracts/routed_stake/deps/sui/vec_map.js.map +1 -0
- package/dist/contracts/routed_stake/routed_stake.d.ts +356 -0
- package/dist/contracts/routed_stake/routed_stake.d.ts.map +1 -0
- package/dist/contracts/routed_stake/routed_stake.js +311 -0
- package/dist/contracts/routed_stake/routed_stake.js.map +1 -0
- package/dist/contracts/royalty_pool/deps/std/type_name.d.ts +18 -0
- package/dist/contracts/royalty_pool/deps/std/type_name.d.ts.map +1 -0
- package/dist/contracts/royalty_pool/deps/std/type_name.js +20 -0
- package/dist/contracts/royalty_pool/deps/std/type_name.js.map +1 -0
- package/dist/contracts/royalty_pool/deps/sui/balance.d.ts +13 -0
- package/dist/contracts/royalty_pool/deps/sui/balance.d.ts.map +1 -0
- package/dist/contracts/royalty_pool/deps/sui/balance.js +15 -0
- package/dist/contracts/royalty_pool/deps/sui/balance.js.map +1 -0
- package/dist/contracts/royalty_pool/deps/sui/vec_map.d.ts +37 -0
- package/dist/contracts/royalty_pool/deps/sui/vec_map.d.ts.map +1 -0
- package/dist/contracts/royalty_pool/deps/sui/vec_map.js +28 -0
- package/dist/contracts/royalty_pool/deps/sui/vec_map.js.map +1 -0
- package/dist/contracts/royalty_pool/pool.d.ts +394 -0
- package/dist/contracts/royalty_pool/pool.d.ts.map +1 -0
- package/dist/contracts/royalty_pool/pool.js +387 -0
- package/dist/contracts/royalty_pool/pool.js.map +1 -0
- package/dist/contracts/royalty_pool/stake.d.ts +202 -0
- package/dist/contracts/royalty_pool/stake.d.ts.map +1 -0
- package/dist/contracts/royalty_pool/stake.js +197 -0
- package/dist/contracts/royalty_pool/stake.js.map +1 -0
- package/dist/contracts.d.ts +37 -3
- package/dist/contracts.d.ts.map +1 -1
- package/dist/contracts.js +42 -8
- package/dist/contracts.js.map +1 -1
- package/dist/deployments.d.ts +46 -12
- package/dist/deployments.d.ts.map +1 -1
- package/dist/deployments.js +119 -11
- package/dist/deployments.js.map +1 -1
- package/dist/events.d.ts +1081 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/events.js +124 -0
- package/dist/events.js.map +1 -0
- package/dist/execute.d.ts.map +1 -1
- package/dist/execute.js +0 -4
- package/dist/execute.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.js.map +1 -1
- package/dist/numeric.d.ts +5 -0
- package/dist/numeric.d.ts.map +1 -0
- package/dist/numeric.js +21 -0
- package/dist/numeric.js.map +1 -0
- package/dist/packages.d.ts +159 -0
- package/dist/packages.d.ts.map +1 -0
- package/dist/packages.js +179 -0
- package/dist/packages.js.map +1 -0
- package/dist/parsers.d.ts +5 -1
- package/dist/parsers.d.ts.map +1 -1
- package/dist/parsers.js +18 -2
- package/dist/parsers.js.map +1 -1
- package/dist/queries.d.ts +92 -0
- package/dist/queries.d.ts.map +1 -1
- package/dist/queries.js +132 -23
- package/dist/queries.js.map +1 -1
- package/dist/transactions.d.ts +96 -3
- package/dist/transactions.d.ts.map +1 -1
- package/dist/transactions.js +123 -11
- package/dist/transactions.js.map +1 -1
- package/dist/types.d.ts +18 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/view.d.ts +6 -5
- package/dist/view.d.ts.map +1 -1
- package/dist/view.js +8 -2
- package/dist/view.js.map +1 -1
- package/package.json +14 -4
- package/src/client.ts +57 -23
- package/src/contracts/composition_credits/composition_credits.ts +169 -0
- package/src/contracts/composition_credits/composition_party_role.ts +189 -0
- package/src/contracts/composition_credits/deps/miso_credit/credit.ts +27 -0
- package/src/contracts/composition_credits/deps/sui/vec_map.ts +33 -0
- package/src/contracts/miso/composition.ts +8 -8
- package/src/contracts/miso/deps/bps/bps.ts +3 -3
- package/src/contracts/miso/recording.ts +10 -10
- package/src/contracts/miso/release.ts +103 -67
- package/src/contracts/miso/track.ts +5 -5
- package/src/contracts/recording_advisory/recording_advisory.ts +315 -0
- package/src/contracts/recording_credits/deps/miso_credit/credit.ts +27 -0
- package/src/contracts/recording_credits/deps/sui/vec_map.ts +33 -0
- package/src/contracts/recording_credits/deps/sui/vec_set.ts +21 -0
- package/src/contracts/recording_credits/recording_credits.ts +458 -0
- package/src/contracts/recording_credits/recording_party_role.ts +1041 -0
- package/src/contracts/recording_language/deps/language_code/language_code.ts +7 -0
- package/src/contracts/recording_language/recording_language.ts +237 -0
- package/src/contracts/recording_master_reference/deps/ori/walrus_data.ts +36 -0
- package/src/contracts/recording_master_reference/recording_master_reference.ts +181 -0
- package/src/contracts/recording_preview/deps/ori/walrus_data.ts +36 -0
- package/src/contracts/recording_preview/recording_preview.ts +154 -0
- package/src/contracts/release_cover_art/deps/0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78/walrus_data.ts +36 -0
- package/src/contracts/release_cover_art/deps/cover_art/cover_art.ts +23 -0
- package/src/contracts/release_cover_art/deps/per_track/per_track.ts +36 -0
- package/src/contracts/release_cover_art/release_cover_art.ts +251 -0
- package/src/contracts/release_credits/deps/miso_credit/credit.ts +27 -0
- package/src/contracts/release_credits/deps/sui/vec_map.ts +33 -0
- package/src/contracts/release_credits/release_credits.ts +156 -0
- package/src/contracts/release_credits/release_party_role.ts +87 -0
- package/src/contracts/release_description/release_description.ts +167 -0
- package/src/contracts/release_dsp_link/release_dsp_link.ts +813 -0
- package/src/contracts/release_genre/deps/per_track/per_track.ts +36 -0
- package/src/contracts/release_genre/release_genre.ts +314 -0
- package/src/contracts/release_kind/release_kind.ts +153 -0
- package/src/contracts/release_snapshot_bundle/deps/ori/walrus_data.ts +36 -0
- package/src/contracts/release_snapshot_bundle/release_snapshot_bundle.ts +124 -0
- package/src/contracts/routed_stake/deps/royalty_pool/stake.ts +39 -0
- package/src/contracts/routed_stake/deps/std/type_name.ts +22 -0
- package/src/contracts/routed_stake/deps/sui/balance.ts +17 -0
- package/src/contracts/routed_stake/deps/sui/vec_map.ts +33 -0
- package/src/contracts/routed_stake/routed_stake.ts +508 -0
- package/src/contracts/royalty_pool/deps/std/type_name.ts +22 -0
- package/src/contracts/royalty_pool/deps/sui/balance.ts +17 -0
- package/src/contracts/royalty_pool/deps/sui/vec_map.ts +33 -0
- package/src/contracts/royalty_pool/pool.ts +613 -0
- package/src/contracts/royalty_pool/stake.ts +317 -0
- package/src/contracts.ts +59 -6
- package/src/deployments.ts +160 -22
- package/src/events.ts +129 -0
- package/src/execute.ts +0 -4
- package/src/index.ts +6 -3
- package/src/internal.ts +0 -4
- package/src/numeric.ts +25 -0
- package/src/packages.ts +251 -0
- package/src/parsers.ts +32 -2
- package/src/queries.ts +227 -25
- package/src/transactions.ts +254 -12
- package/src/types.ts +20 -0
- package/src/view.ts +12 -6
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/**
|
|
5
|
+
* A pointer to a recording's master audio — nothing more.
|
|
6
|
+
*
|
|
7
|
+
* The value is a bare `ori::WalrusData` blob reference. This extension makes no
|
|
8
|
+
* claim about what the blob contains: not its codec, not its sample rate, not its
|
|
9
|
+
* duration, not that it is even audio. The only assertion is that the holder of
|
|
10
|
+
* the recording's admin cap says this blob is the master. Everything else is
|
|
11
|
+
* client-side convention.
|
|
12
|
+
*
|
|
13
|
+
* That thinness is the point. Miso's attested path — the Nautilus-verified master
|
|
14
|
+
* flow (`audio_ingester` producing a `miso_audio::Audio`), deferred — carries
|
|
15
|
+
* channel count, bit depth, sample rate, sample count and a PCM digest, and every
|
|
16
|
+
* one of those is backed by a Nautilus enclave signature over the measured audio.
|
|
17
|
+
* Until that path is running, stating the same fields _unverified_ would dress an
|
|
18
|
+
* assertion up as a measurement. A pointer cannot be mistaken for a measurement.
|
|
19
|
+
*
|
|
20
|
+
* # This extension is a holdover
|
|
21
|
+
*
|
|
22
|
+
* It exists to carry the catalogue until enclave ingestion is ready, and it is
|
|
23
|
+
* meant to be removed rather than grown. When a recording's master is ingested for
|
|
24
|
+
* real, attach the attested master via the ingester's master flow and call
|
|
25
|
+
* `unset_master_reference` here. The two never need to coexist, and this package
|
|
26
|
+
* deliberately holds nothing the attested path cannot restate.
|
|
27
|
+
*
|
|
28
|
+
* Resist adding fields. Anything worth asserting about the audio is worth
|
|
29
|
+
* attesting, and belongs in the ingested `Audio` rather than here.
|
|
30
|
+
*/
|
|
31
|
+
import { MoveTuple, MoveStruct, normalizeMoveArguments } from "../utils/index.js";
|
|
32
|
+
import { bcs } from '@mysten/sui/bcs';
|
|
33
|
+
import {} from '@mysten/sui/transactions';
|
|
34
|
+
import * as walrus_data from "./deps/ori/walrus_data.js";
|
|
35
|
+
const $moduleName = '@local-pkg/recording_master_reference::recording_master_reference';
|
|
36
|
+
export const ExtensionKey = new MoveTuple({ name: `${$moduleName}::ExtensionKey`, fields: [bcs.bool()] });
|
|
37
|
+
export const MasterReferenceSetEvent = new MoveStruct({ name: `${$moduleName}::MasterReferenceSetEvent`, fields: {
|
|
38
|
+
recording_id: bcs.Address,
|
|
39
|
+
reference: walrus_data.WalrusData
|
|
40
|
+
} });
|
|
41
|
+
export const MasterReferenceUnsetEvent = new MoveStruct({ name: `${$moduleName}::MasterReferenceUnsetEvent`, fields: {
|
|
42
|
+
recording_id: bcs.Address
|
|
43
|
+
} });
|
|
44
|
+
/**
|
|
45
|
+
* Sets (or replaces) the recording's master reference.
|
|
46
|
+
*
|
|
47
|
+
* The reference must be a standalone blob. A quilt patch is rejected: a master is
|
|
48
|
+
* addressed and fetched on its own, and batching it with unrelated files would
|
|
49
|
+
* make its identity depend on what it happened to be stored alongside. Encrypted
|
|
50
|
+
* blobs are accepted — a sealed master is the expected shape once access control
|
|
51
|
+
* lands, and the reference is the same either way.
|
|
52
|
+
*/
|
|
53
|
+
export function setMasterReference(options) {
|
|
54
|
+
const packageAddress = options.package ?? '@local-pkg/recording_master_reference';
|
|
55
|
+
const argumentsTypes = [
|
|
56
|
+
null,
|
|
57
|
+
null,
|
|
58
|
+
null
|
|
59
|
+
];
|
|
60
|
+
const parameterNames = ["self", "cap", "reference"];
|
|
61
|
+
return (tx) => tx.moveCall({
|
|
62
|
+
package: packageAddress,
|
|
63
|
+
module: 'recording_master_reference',
|
|
64
|
+
function: 'set_master_reference',
|
|
65
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
66
|
+
typeArguments: options.typeArguments
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Removes the master reference, if any. Idempotent.
|
|
71
|
+
*
|
|
72
|
+
* The intended use is migration: once an attested master is attached via the
|
|
73
|
+
* Nautilus-verified master flow (deferred), this reference has nothing left to say
|
|
74
|
+
* and should go.
|
|
75
|
+
*/
|
|
76
|
+
export function unsetMasterReference(options) {
|
|
77
|
+
const packageAddress = options.package ?? '@local-pkg/recording_master_reference';
|
|
78
|
+
const argumentsTypes = [
|
|
79
|
+
null,
|
|
80
|
+
null
|
|
81
|
+
];
|
|
82
|
+
const parameterNames = ["self", "cap"];
|
|
83
|
+
return (tx) => tx.moveCall({
|
|
84
|
+
package: packageAddress,
|
|
85
|
+
module: 'recording_master_reference',
|
|
86
|
+
function: 'unset_master_reference',
|
|
87
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
88
|
+
typeArguments: options.typeArguments
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
/** Whether a master reference is attached to this recording. */
|
|
92
|
+
export function hasMasterReference(options) {
|
|
93
|
+
const packageAddress = options.package ?? '@local-pkg/recording_master_reference';
|
|
94
|
+
const argumentsTypes = [
|
|
95
|
+
null
|
|
96
|
+
];
|
|
97
|
+
const parameterNames = ["self"];
|
|
98
|
+
return (tx) => tx.moveCall({
|
|
99
|
+
package: packageAddress,
|
|
100
|
+
module: 'recording_master_reference',
|
|
101
|
+
function: 'has_master_reference',
|
|
102
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
103
|
+
typeArguments: options.typeArguments
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
/** The recording's master reference. Aborts if none is attached. */
|
|
107
|
+
export function masterReference(options) {
|
|
108
|
+
const packageAddress = options.package ?? '@local-pkg/recording_master_reference';
|
|
109
|
+
const argumentsTypes = [
|
|
110
|
+
null
|
|
111
|
+
];
|
|
112
|
+
const parameterNames = ["self"];
|
|
113
|
+
return (tx) => tx.moveCall({
|
|
114
|
+
package: packageAddress,
|
|
115
|
+
module: 'recording_master_reference',
|
|
116
|
+
function: 'master_reference',
|
|
117
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
118
|
+
typeArguments: options.typeArguments
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
//# sourceMappingURL=recording_master_reference.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recording_master_reference.js","sourceRoot":"","sources":["../../../src/contracts/recording_master_reference/recording_master_reference.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,sBAAsB,EAA+B,MAAM,mBAAmB,CAAC;AAC/G,OAAO,EAAE,GAAG,EAAE,M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M,cAAc,GAAG,CAAC,MAAM,CAAC,CAAC;IAChC,OAAO,CAAC,EAAe,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC;QACpC,OAAO,EAAE,cAAc;QACvB,MAAM,EAAE,4BAA4B;QACpC,QAAQ,EAAE,kBAAkB;QAC5B,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;QACpF,aAAa,EAAE,OAAO,CAAC,aAAa;KACvC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
import { MoveEnum, MoveStruct, MoveTuple } from '../../../utils/index.ts';
|
|
5
|
+
/**
|
|
6
|
+
* Confidentiality of a stored blob: cleartext, or encrypted with an access policy.
|
|
7
|
+
* Only applies to standalone blobs — a quilt patch is a slice of a shared quilt
|
|
8
|
+
* blob and can never be the direct product of an encryption.
|
|
9
|
+
*/
|
|
10
|
+
export declare const Confidentiality: MoveEnum<{
|
|
11
|
+
/** The blob is stored in the clear. */
|
|
12
|
+
Unencrypted: null;
|
|
13
|
+
/**
|
|
14
|
+
* The blob is AES-encrypted. `dek` is the AES data-encryption key sealed via Seal
|
|
15
|
+
* — a small ciphertext stored on-chain, not the blob bytes. The sealed DEK is
|
|
16
|
+
* itself a Seal `EncryptedObject`, which already carries the decryption-policy
|
|
17
|
+
* package id, so no separate policy field is stored here. Decryption is gated by
|
|
18
|
+
* that policy package's `seal_approve`, not by this library.
|
|
19
|
+
*/
|
|
20
|
+
Encrypted: MoveStruct<{
|
|
21
|
+
dek: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
22
|
+
length: number;
|
|
23
|
+
}, string>;
|
|
24
|
+
}, "Confidentiality.Encrypted">;
|
|
25
|
+
}, "ori::walrus_data::Confidentiality">;
|
|
26
|
+
/** Represents either a standalone Walrus blob or a patch within a quilt. */
|
|
27
|
+
export declare const WalrusData: MoveEnum<{
|
|
28
|
+
/** A standalone Walrus blob. Fields: blob_id, confidentiality. */
|
|
29
|
+
Blob: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">, MoveEnum<{
|
|
30
|
+
/** The blob is stored in the clear. */
|
|
31
|
+
Unencrypted: null;
|
|
32
|
+
/**
|
|
33
|
+
* The blob is AES-encrypted. `dek` is the AES data-encryption key sealed via Seal
|
|
34
|
+
* — a small ciphertext stored on-chain, not the blob bytes. The sealed DEK is
|
|
35
|
+
* itself a Seal `EncryptedObject`, which already carries the decryption-policy
|
|
36
|
+
* package id, so no separate policy field is stored here. Decryption is gated by
|
|
37
|
+
* that policy package's `seal_approve`, not by this library.
|
|
38
|
+
*/
|
|
39
|
+
Encrypted: MoveStruct<{
|
|
40
|
+
dek: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
41
|
+
length: number;
|
|
42
|
+
}, string>;
|
|
43
|
+
}, "Confidentiality.Encrypted">;
|
|
44
|
+
}, "ori::walrus_data::Confidentiality">], "WalrusData.Blob">;
|
|
45
|
+
/**
|
|
46
|
+
* A patch within a Walrus quilt. Fields: quilt_id, version, start_index,
|
|
47
|
+
* end_index. Always a plaintext reference into a (possibly separately encrypted)
|
|
48
|
+
* quilt blob.
|
|
49
|
+
*/
|
|
50
|
+
QuiltPatch: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">, import("@mysten/sui/bcs").BcsType<number, number, "u8">, import("@mysten/sui/bcs").BcsType<number, number, "u16">, import("@mysten/sui/bcs").BcsType<number, number, "u16">], "WalrusData.QuiltPatch">;
|
|
51
|
+
}, "ori::walrus_data::WalrusData">;
|
|
52
|
+
//# sourceMappingURL=walrus_data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"walrus_data.d.ts","sourceRoot":"","sources":["../../../../../src/contracts/recording_preview/deps/ori/walrus_data.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAChE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAG1E;;;;GAIG;AACH,eAAO,MAAM,eAAe;IACpB,uCAAuC;;IAEvC;;;;;;OAMG;;;;;;uCAIH,CAAC;AACT,4EAA4E;AAC5E,eAAO,MAAM,UAAU;IACf,kEAAkE;;QAflE,uCAAuC;;QAEvC;;;;;;WAMG;;;;;;;IASH;;;;OAIG;;kCAEH,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
import { MoveEnum, MoveStruct, MoveTuple } from "../../../utils/index.js";
|
|
5
|
+
import { bcs } from '@mysten/sui/bcs';
|
|
6
|
+
const $moduleName = 'ori::walrus_data';
|
|
7
|
+
/**
|
|
8
|
+
* Confidentiality of a stored blob: cleartext, or encrypted with an access policy.
|
|
9
|
+
* Only applies to standalone blobs — a quilt patch is a slice of a shared quilt
|
|
10
|
+
* blob and can never be the direct product of an encryption.
|
|
11
|
+
*/
|
|
12
|
+
export const Confidentiality = new MoveEnum({ name: `${$moduleName}::Confidentiality`, fields: {
|
|
13
|
+
/** The blob is stored in the clear. */
|
|
14
|
+
Unencrypted: null,
|
|
15
|
+
/**
|
|
16
|
+
* The blob is AES-encrypted. `dek` is the AES data-encryption key sealed via Seal
|
|
17
|
+
* — a small ciphertext stored on-chain, not the blob bytes. The sealed DEK is
|
|
18
|
+
* itself a Seal `EncryptedObject`, which already carries the decryption-policy
|
|
19
|
+
* package id, so no separate policy field is stored here. Decryption is gated by
|
|
20
|
+
* that policy package's `seal_approve`, not by this library.
|
|
21
|
+
*/
|
|
22
|
+
Encrypted: new MoveStruct({ name: `Confidentiality.Encrypted`, fields: {
|
|
23
|
+
dek: bcs.vector(bcs.u8())
|
|
24
|
+
} })
|
|
25
|
+
} });
|
|
26
|
+
/** Represents either a standalone Walrus blob or a patch within a quilt. */
|
|
27
|
+
export const WalrusData = new MoveEnum({ name: `${$moduleName}::WalrusData`, fields: {
|
|
28
|
+
/** A standalone Walrus blob. Fields: blob_id, confidentiality. */
|
|
29
|
+
Blob: new MoveTuple({ name: `WalrusData.Blob`, fields: [bcs.u256(), Confidentiality] }),
|
|
30
|
+
/**
|
|
31
|
+
* A patch within a Walrus quilt. Fields: quilt_id, version, start_index,
|
|
32
|
+
* end_index. Always a plaintext reference into a (possibly separately encrypted)
|
|
33
|
+
* quilt blob.
|
|
34
|
+
*/
|
|
35
|
+
QuiltPatch: new MoveTuple({ name: `WalrusData.QuiltPatch`, fields: [bcs.u256(), bcs.u8(), bcs.u16(), bcs.u16()] })
|
|
36
|
+
} });
|
|
37
|
+
//# sourceMappingURL=walrus_data.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"walrus_data.js","sourceRoot":"","sources":["../../../../../src/contracts/recording_preview/deps/ori/walrus_data.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAChE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,MAAM,WAAW,GAAG,kBAAkB,CAAC;AACvC;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,QAAQ,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,mBAAmB,EAAE,MAAM,EAAE;QACvF,uCAAuC;QACvC,WAAW,EAAE,IAAI;QACjB;;;;;;WAMG;QACH,SAAS,EAAE,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,2BAA2B,EAAE,MAAM,EAAE;gBAC/D,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC;aAC5B,EAAE,CAAC;KACX,EAAE,CAAC,CAAC;AACT,4EAA4E;AAC5E,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,QAAQ,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,cAAc,EAAE,MAAM,EAAE;QAC7E,kEAAkE;QAClE,IAAI,EAAE,IAAI,SAAS,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,eAAe,CAAC,EAAE,CAAC;QACvF;;;;WAIG;QACH,UAAU,EAAE,IAAI,SAAS,CAAC,EAAE,IAAI,EAAE,uBAAuB,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,GAAG,CAAC,EAAE,EAAE,EAAE,GAAG,CAAC,GAAG,EAAE,EAAE,GAAG,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC;KACrH,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/**
|
|
5
|
+
* Recording audio preview: a short, public teaser clip for a recording, stored as
|
|
6
|
+
* a dynamic field on the recording's UID, set/cleared via the recording's
|
|
7
|
+
* cap-gated `uid_mut`.
|
|
8
|
+
*
|
|
9
|
+
* V1 is deliberately minimal: the value is a bare `ori::WalrusData` blob reference
|
|
10
|
+
* — no ingestion or attestation ties the preview to the recording's master. What
|
|
11
|
+
* the blob contains (codec, duration, clip offset) is client-side convention, not
|
|
12
|
+
* protocol state. An attested preview standard can ship later as its own extension
|
|
13
|
+
* without touching this one.
|
|
14
|
+
*/
|
|
15
|
+
import { MoveTuple, MoveStruct, type RawTransactionArgument } from '../utils/index.ts';
|
|
16
|
+
import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
|
|
17
|
+
export declare const ExtensionKey: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">], "@local-pkg/recording_preview::recording_preview::ExtensionKey">;
|
|
18
|
+
export declare const PreviewSetEvent: MoveStruct<{
|
|
19
|
+
recording_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
20
|
+
preview: import("../utils/index.ts").MoveEnum<{
|
|
21
|
+
Blob: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">, import("../utils/index.ts").MoveEnum<{
|
|
22
|
+
Unencrypted: null;
|
|
23
|
+
Encrypted: MoveStruct<{
|
|
24
|
+
dek: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
25
|
+
length: number;
|
|
26
|
+
}, string>;
|
|
27
|
+
}, "Confidentiality.Encrypted">;
|
|
28
|
+
}, "ori::walrus_data::Confidentiality">], "WalrusData.Blob">;
|
|
29
|
+
QuiltPatch: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">, import("@mysten/sui/bcs").BcsType<number, number, "u8">, import("@mysten/sui/bcs").BcsType<number, number, "u16">, import("@mysten/sui/bcs").BcsType<number, number, "u16">], "WalrusData.QuiltPatch">;
|
|
30
|
+
}, "ori::walrus_data::WalrusData">;
|
|
31
|
+
}, "@local-pkg/recording_preview::recording_preview::PreviewSetEvent">;
|
|
32
|
+
export declare const PreviewUnsetEvent: MoveStruct<{
|
|
33
|
+
recording_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
34
|
+
}, "@local-pkg/recording_preview::recording_preview::PreviewUnsetEvent">;
|
|
35
|
+
export interface SetPreviewArguments {
|
|
36
|
+
self: RawTransactionArgument<string>;
|
|
37
|
+
cap: RawTransactionArgument<string>;
|
|
38
|
+
preview: TransactionArgument;
|
|
39
|
+
}
|
|
40
|
+
export interface SetPreviewOptions {
|
|
41
|
+
package?: string;
|
|
42
|
+
arguments: SetPreviewArguments | [
|
|
43
|
+
self: RawTransactionArgument<string>,
|
|
44
|
+
cap: RawTransactionArgument<string>,
|
|
45
|
+
preview: TransactionArgument
|
|
46
|
+
];
|
|
47
|
+
typeArguments: [
|
|
48
|
+
string,
|
|
49
|
+
string
|
|
50
|
+
];
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Sets (or replaces) the recording's preview. The reference must be a standalone
|
|
54
|
+
* Walrus blob.
|
|
55
|
+
*/
|
|
56
|
+
export declare function setPreview(options: SetPreviewOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
57
|
+
export interface UnsetPreviewArguments {
|
|
58
|
+
self: RawTransactionArgument<string>;
|
|
59
|
+
cap: RawTransactionArgument<string>;
|
|
60
|
+
}
|
|
61
|
+
export interface UnsetPreviewOptions {
|
|
62
|
+
package?: string;
|
|
63
|
+
arguments: UnsetPreviewArguments | [
|
|
64
|
+
self: RawTransactionArgument<string>,
|
|
65
|
+
cap: RawTransactionArgument<string>
|
|
66
|
+
];
|
|
67
|
+
typeArguments: [
|
|
68
|
+
string,
|
|
69
|
+
string
|
|
70
|
+
];
|
|
71
|
+
}
|
|
72
|
+
/** Removes the preview, if any. */
|
|
73
|
+
export declare function unsetPreview(options: UnsetPreviewOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
74
|
+
export interface HasPreviewArguments {
|
|
75
|
+
self: RawTransactionArgument<string>;
|
|
76
|
+
}
|
|
77
|
+
export interface HasPreviewOptions {
|
|
78
|
+
package?: string;
|
|
79
|
+
arguments: HasPreviewArguments | [
|
|
80
|
+
self: RawTransactionArgument<string>
|
|
81
|
+
];
|
|
82
|
+
typeArguments: [
|
|
83
|
+
string,
|
|
84
|
+
string
|
|
85
|
+
];
|
|
86
|
+
}
|
|
87
|
+
/** Returns whether a preview is attached to this recording. */
|
|
88
|
+
export declare function hasPreview(options: HasPreviewOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
89
|
+
export interface PreviewArguments {
|
|
90
|
+
self: RawTransactionArgument<string>;
|
|
91
|
+
}
|
|
92
|
+
export interface PreviewOptions {
|
|
93
|
+
package?: string;
|
|
94
|
+
arguments: PreviewArguments | [
|
|
95
|
+
self: RawTransactionArgument<string>
|
|
96
|
+
];
|
|
97
|
+
typeArguments: [
|
|
98
|
+
string,
|
|
99
|
+
string
|
|
100
|
+
];
|
|
101
|
+
}
|
|
102
|
+
/** Borrows the preview's Walrus reference. Aborts if none is attached. */
|
|
103
|
+
export declare function preview(options: PreviewOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
104
|
+
//# sourceMappingURL=recording_preview.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recording_preview.d.ts","sourceRoot":"","sources":["../../../src/contracts/recording_preview/recording_preview.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAA0B,KAAK,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAE/G,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAGtF,eAAO,MAAM,YAAY,oJAAgF,CAAC;AAC1G,eAAO,MAAM,eAAe;;;;;;;;;;;;;sEAGpB,CAAC;AACT,eAAO,MAAM,iBAAiB;;wEAEtB,CAAC;AACT,MAAM,WAAW,mBAAmB;IAChC,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;IACrC,GAAG,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;IACpC,OAAO,EAAE,mBAAmB,CAAC;CAChC;AACD,MAAM,WAAW,iBAAiB;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,mBAAmB,GAAG;QAC7B,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;QACpC,GAAG,EAAE,sBAAsB,CAAC,MAAM,CAAC;QACnC,OAAO,EAAE,mBAAmB;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AC;IACF,aAAa,EAAE;QACX,MAAM;QACN,MAAM;KACT,CAAC;CACL;AACD,0EAA0E;AAC1E,wBAAgB,OAAO,CAAC,OAAO,EAAE,cAAc,IAMnC,IAAI,WAAW,0DAO1B"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/**
|
|
5
|
+
* Recording audio preview: a short, public teaser clip for a recording, stored as
|
|
6
|
+
* a dynamic field on the recording's UID, set/cleared via the recording's
|
|
7
|
+
* cap-gated `uid_mut`.
|
|
8
|
+
*
|
|
9
|
+
* V1 is deliberately minimal: the value is a bare `ori::WalrusData` blob reference
|
|
10
|
+
* — no ingestion or attestation ties the preview to the recording's master. What
|
|
11
|
+
* the blob contains (codec, duration, clip offset) is client-side convention, not
|
|
12
|
+
* protocol state. An attested preview standard can ship later as its own extension
|
|
13
|
+
* without touching this one.
|
|
14
|
+
*/
|
|
15
|
+
import { MoveTuple, MoveStruct, normalizeMoveArguments } from "../utils/index.js";
|
|
16
|
+
import { bcs } from '@mysten/sui/bcs';
|
|
17
|
+
import {} from '@mysten/sui/transactions';
|
|
18
|
+
import * as walrus_data from "./deps/ori/walrus_data.js";
|
|
19
|
+
const $moduleName = '@local-pkg/recording_preview::recording_preview';
|
|
20
|
+
export const ExtensionKey = new MoveTuple({ name: `${$moduleName}::ExtensionKey`, fields: [bcs.bool()] });
|
|
21
|
+
export const PreviewSetEvent = new MoveStruct({ name: `${$moduleName}::PreviewSetEvent`, fields: {
|
|
22
|
+
recording_id: bcs.Address,
|
|
23
|
+
preview: walrus_data.WalrusData
|
|
24
|
+
} });
|
|
25
|
+
export const PreviewUnsetEvent = new MoveStruct({ name: `${$moduleName}::PreviewUnsetEvent`, fields: {
|
|
26
|
+
recording_id: bcs.Address
|
|
27
|
+
} });
|
|
28
|
+
/**
|
|
29
|
+
* Sets (or replaces) the recording's preview. The reference must be a standalone
|
|
30
|
+
* Walrus blob.
|
|
31
|
+
*/
|
|
32
|
+
export function setPreview(options) {
|
|
33
|
+
const packageAddress = options.package ?? '@local-pkg/recording_preview';
|
|
34
|
+
const argumentsTypes = [
|
|
35
|
+
null,
|
|
36
|
+
null,
|
|
37
|
+
null
|
|
38
|
+
];
|
|
39
|
+
const parameterNames = ["self", "cap", "preview"];
|
|
40
|
+
return (tx) => tx.moveCall({
|
|
41
|
+
package: packageAddress,
|
|
42
|
+
module: 'recording_preview',
|
|
43
|
+
function: 'set_preview',
|
|
44
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
45
|
+
typeArguments: options.typeArguments
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
/** Removes the preview, if any. */
|
|
49
|
+
export function unsetPreview(options) {
|
|
50
|
+
const packageAddress = options.package ?? '@local-pkg/recording_preview';
|
|
51
|
+
const argumentsTypes = [
|
|
52
|
+
null,
|
|
53
|
+
null
|
|
54
|
+
];
|
|
55
|
+
const parameterNames = ["self", "cap"];
|
|
56
|
+
return (tx) => tx.moveCall({
|
|
57
|
+
package: packageAddress,
|
|
58
|
+
module: 'recording_preview',
|
|
59
|
+
function: 'unset_preview',
|
|
60
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
61
|
+
typeArguments: options.typeArguments
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
/** Returns whether a preview is attached to this recording. */
|
|
65
|
+
export function hasPreview(options) {
|
|
66
|
+
const packageAddress = options.package ?? '@local-pkg/recording_preview';
|
|
67
|
+
const argumentsTypes = [
|
|
68
|
+
null
|
|
69
|
+
];
|
|
70
|
+
const parameterNames = ["self"];
|
|
71
|
+
return (tx) => tx.moveCall({
|
|
72
|
+
package: packageAddress,
|
|
73
|
+
module: 'recording_preview',
|
|
74
|
+
function: 'has_preview',
|
|
75
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
76
|
+
typeArguments: options.typeArguments
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
/** Borrows the preview's Walrus reference. Aborts if none is attached. */
|
|
80
|
+
export function preview(options) {
|
|
81
|
+
const packageAddress = options.package ?? '@local-pkg/recording_preview';
|
|
82
|
+
const argumentsTypes = [
|
|
83
|
+
null
|
|
84
|
+
];
|
|
85
|
+
const parameterNames = ["self"];
|
|
86
|
+
return (tx) => tx.moveCall({
|
|
87
|
+
package: packageAddress,
|
|
88
|
+
module: 'recording_preview',
|
|
89
|
+
function: 'preview',
|
|
90
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
91
|
+
typeArguments: options.typeArguments
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=recording_preview.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recording_preview.js","sourceRoot":"","sources":["../../../src/contracts/recording_preview/recording_preview.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,sBAAsB,EAA+B,MAAM,mBAAmB,CAAC;AAC/G,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,EAA8C,MAAM,0BAA0B,CAAC;AACtF,OAAO,KAAK,WAAW,MAAM,2BAA2B,CAAC;AACzD,MAAM,WAAW,GAAG,iDAAiD,CAAC;AACtE,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,SAAS,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,gBAAgB,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC;AAC1G,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,mBAAmB,EAAE,MAAM,EAAE;QACzF,YAAY,EAAE,GAAG,CAAC,OAA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AAE,cAAc,CAAC;QACpF,aAAa,EAAE,OAAO,CAAC,aAAa;KACvC,CAAC,CAAC;AACP,CAAC;AAcD,+DAA+D;AAC/D,MAAM,UAAU,UAAU,CAAC,OAA0B;IACjD,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,IAAI,8BAA8B,CAAC;IACzE,MAAM,cAAc,GAAG;QACnB,IAAI;KACqB,CAAC;IAC9B,MAAM,cAAc,GAAG,CAAC,MAAM,CAAC,CAAC;IAChC,OAAO,CAAC,EAAe,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC;QACpC,OAAO,EAAE,cAAc;QACvB,MAAM,EAAE,mBAAmB;QAC3B,QAAQ,EAAE,aAAa;QACvB,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;QACpF,aAAa,EAAE,OAAO,CAAC,aAAa;KACvC,CAAC,CAAC;AACP,CAAC;AAcD,0EAA0E;AAC1E,MAAM,UAAU,OAAO,CAAC,OAAuB;IAC3C,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,IAAI,8BAA8B,CAAC;IACzE,MAAM,cAAc,GAAG;QACnB,IAAI;KACqB,CAAC;IAC9B,MAAM,cAAc,GAAG,CAAC,MAAM,CAAC,CAAC;IAChC,OAAO,CAAC,EAAe,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC;QACpC,OAAO,EAAE,cAAc;QACvB,MAAM,EAAE,mBAAmB;QAC3B,QAAQ,EAAE,SAAS;QACnB,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;QACpF,aAAa,EAAE,OAAO,CAAC,aAAa;KACvC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
import { MoveEnum, MoveStruct, MoveTuple } from '../../../utils/index.ts';
|
|
5
|
+
/**
|
|
6
|
+
* Confidentiality of a stored blob: cleartext, or encrypted with an access policy.
|
|
7
|
+
* Only applies to standalone blobs — a quilt patch is a slice of a shared quilt
|
|
8
|
+
* blob and can never be the direct product of an encryption.
|
|
9
|
+
*/
|
|
10
|
+
export declare const Confidentiality: MoveEnum<{
|
|
11
|
+
/** The blob is stored in the clear. */
|
|
12
|
+
Unencrypted: null;
|
|
13
|
+
/**
|
|
14
|
+
* The blob is AES-encrypted. `dek` is the AES data-encryption key sealed via Seal
|
|
15
|
+
* — a small ciphertext stored on-chain, not the blob bytes. The sealed DEK is
|
|
16
|
+
* itself a Seal `EncryptedObject`, which already carries the decryption-policy
|
|
17
|
+
* package id, so no separate policy field is stored here. Decryption is gated by
|
|
18
|
+
* that policy package's `seal_approve`, not by this library.
|
|
19
|
+
*/
|
|
20
|
+
Encrypted: MoveStruct<{
|
|
21
|
+
dek: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
22
|
+
length: number;
|
|
23
|
+
}, string>;
|
|
24
|
+
}, "Confidentiality.Encrypted">;
|
|
25
|
+
}, "0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78::walrus_data::Confidentiality">;
|
|
26
|
+
/** Represents either a standalone Walrus blob or a patch within a quilt. */
|
|
27
|
+
export declare const WalrusData: MoveEnum<{
|
|
28
|
+
/** A standalone Walrus blob. Fields: blob_id, confidentiality. */
|
|
29
|
+
Blob: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">, MoveEnum<{
|
|
30
|
+
/** The blob is stored in the clear. */
|
|
31
|
+
Unencrypted: null;
|
|
32
|
+
/**
|
|
33
|
+
* The blob is AES-encrypted. `dek` is the AES data-encryption key sealed via Seal
|
|
34
|
+
* — a small ciphertext stored on-chain, not the blob bytes. The sealed DEK is
|
|
35
|
+
* itself a Seal `EncryptedObject`, which already carries the decryption-policy
|
|
36
|
+
* package id, so no separate policy field is stored here. Decryption is gated by
|
|
37
|
+
* that policy package's `seal_approve`, not by this library.
|
|
38
|
+
*/
|
|
39
|
+
Encrypted: MoveStruct<{
|
|
40
|
+
dek: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
41
|
+
length: number;
|
|
42
|
+
}, string>;
|
|
43
|
+
}, "Confidentiality.Encrypted">;
|
|
44
|
+
}, "0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78::walrus_data::Confidentiality">], "WalrusData.Blob">;
|
|
45
|
+
/**
|
|
46
|
+
* A patch within a Walrus quilt. Fields: quilt_id, version, start_index,
|
|
47
|
+
* end_index. Always a plaintext reference into a (possibly separately encrypted)
|
|
48
|
+
* quilt blob.
|
|
49
|
+
*/
|
|
50
|
+
QuiltPatch: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">, import("@mysten/sui/bcs").BcsType<number, number, "u8">, import("@mysten/sui/bcs").BcsType<number, number, "u16">, import("@mysten/sui/bcs").BcsType<number, number, "u16">], "WalrusData.QuiltPatch">;
|
|
51
|
+
}, "0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78::walrus_data::WalrusData">;
|
|
52
|
+
//# sourceMappingURL=walrus_data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"walrus_data.d.ts","sourceRoot":"","sources":["../../../../../src/contracts/release_cover_art/deps/0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78/walrus_data.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAChE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAG1E;;;;GAIG;AACH,eAAO,MAAM,eAAe;IACpB,uCAAuC;;IAEvC;;;;;;OAMG;;;;;;sGAIH,CAAC;AACT,4EAA4E;AAC5E,eAAO,MAAM,UAAU;IACf,kEAAkE;;QAflE,uCAAuC;;QAEvC;;;;;;WAMG;;;;;;;IASH;;;;OAIG;;iGAEH,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
import { MoveEnum, MoveStruct, MoveTuple } from "../../../utils/index.js";
|
|
5
|
+
import { bcs } from '@mysten/sui/bcs';
|
|
6
|
+
const $moduleName = '0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78::walrus_data';
|
|
7
|
+
/**
|
|
8
|
+
* Confidentiality of a stored blob: cleartext, or encrypted with an access policy.
|
|
9
|
+
* Only applies to standalone blobs — a quilt patch is a slice of a shared quilt
|
|
10
|
+
* blob and can never be the direct product of an encryption.
|
|
11
|
+
*/
|
|
12
|
+
export const Confidentiality = new MoveEnum({ name: `${$moduleName}::Confidentiality`, fields: {
|
|
13
|
+
/** The blob is stored in the clear. */
|
|
14
|
+
Unencrypted: null,
|
|
15
|
+
/**
|
|
16
|
+
* The blob is AES-encrypted. `dek` is the AES data-encryption key sealed via Seal
|
|
17
|
+
* — a small ciphertext stored on-chain, not the blob bytes. The sealed DEK is
|
|
18
|
+
* itself a Seal `EncryptedObject`, which already carries the decryption-policy
|
|
19
|
+
* package id, so no separate policy field is stored here. Decryption is gated by
|
|
20
|
+
* that policy package's `seal_approve`, not by this library.
|
|
21
|
+
*/
|
|
22
|
+
Encrypted: new MoveStruct({ name: `Confidentiality.Encrypted`, fields: {
|
|
23
|
+
dek: bcs.vector(bcs.u8())
|
|
24
|
+
} })
|
|
25
|
+
} });
|
|
26
|
+
/** Represents either a standalone Walrus blob or a patch within a quilt. */
|
|
27
|
+
export const WalrusData = new MoveEnum({ name: `${$moduleName}::WalrusData`, fields: {
|
|
28
|
+
/** A standalone Walrus blob. Fields: blob_id, confidentiality. */
|
|
29
|
+
Blob: new MoveTuple({ name: `WalrusData.Blob`, fields: [bcs.u256(), Confidentiality] }),
|
|
30
|
+
/**
|
|
31
|
+
* A patch within a Walrus quilt. Fields: quilt_id, version, start_index,
|
|
32
|
+
* end_index. Always a plaintext reference into a (possibly separately encrypted)
|
|
33
|
+
* quilt blob.
|
|
34
|
+
*/
|
|
35
|
+
QuiltPatch: new MoveTuple({ name: `WalrusData.QuiltPatch`, fields: [bcs.u256(), bcs.u8(), bcs.u16(), bcs.u16()] })
|
|
36
|
+
} });
|
|
37
|
+
//# sourceMappingURL=walrus_data.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"walrus_data.js","sourceRoot":"","sources":["../../../../../src/contracts/release_cover_art/deps/0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78/walrus_data.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAChE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,MAAM,WAAW,GAAG,iFAAiF,CAAC;AACtG;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,QAAQ,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,mBAAmB,EAAE,MAAM,EAAE;QACvF,uCAAuC;QACvC,WAAW,EAAE,IAAI;QACjB;;;;;;WAMG;QACH,SAAS,EAAE,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,2BAA2B,EAAE,MAAM,EAAE;gBAC/D,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC;aAC5B,EAAE,CAAC;KACX,EAAE,CAAC,CAAC;AACT,4EAA4E;AAC5E,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,QAAQ,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,cAAc,EAAE,MAAM,EAAE;QAC7E,kEAAkE;QAClE,IAAI,EAAE,IAAI,SAAS,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,eAAe,CAAC,EAAE,CAAC;QACvF;;;;WAIG;QACH,UAAU,EAAE,IAAI,SAAS,CAAC,EAAE,IAAI,EAAE,uBAAuB,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,GAAG,CAAC,EAAE,EAAE,EAAE,GAAG,CAAC,GAAG,EAAE,EAAE,GAAG,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC;KACrH,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/**
|
|
5
|
+
* The evolvable cover art value used by the recording/release cover art
|
|
6
|
+
* extensions.
|
|
7
|
+
*
|
|
8
|
+
* CoverArt format changes over time (static-only → +animated → future formats).
|
|
9
|
+
* Keeping it in an extension rather than immutable core means a new format is a
|
|
10
|
+
* republish of this small package (or a brand-new cover art standard), not of the
|
|
11
|
+
* frozen protocol. `CoverArt` references external storage via `ori::WalrusData`.
|
|
12
|
+
*/
|
|
13
|
+
import { MoveStruct } from '../../../utils/index.ts';
|
|
14
|
+
export declare const CoverArt: MoveStruct<{
|
|
15
|
+
still: import("../../../utils/index.ts").MoveEnum<{
|
|
16
|
+
Blob: import("../../../utils/index.ts").MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">, import("../../../utils/index.ts").MoveEnum<{
|
|
17
|
+
Unencrypted: null;
|
|
18
|
+
Encrypted: MoveStruct<{
|
|
19
|
+
dek: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
20
|
+
length: number;
|
|
21
|
+
}, string>;
|
|
22
|
+
}, "Confidentiality.Encrypted">;
|
|
23
|
+
}, "0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78::walrus_data::Confidentiality">], "WalrusData.Blob">;
|
|
24
|
+
QuiltPatch: import("../../../utils/index.ts").MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">, import("@mysten/sui/bcs").BcsType<number, number, "u8">, import("@mysten/sui/bcs").BcsType<number, number, "u16">, import("@mysten/sui/bcs").BcsType<number, number, "u16">], "WalrusData.QuiltPatch">;
|
|
25
|
+
}, "0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78::walrus_data::WalrusData">;
|
|
26
|
+
animated: import("@mysten/sui/bcs").BcsType<import("@mysten/bcs").EnumOutputShapeWithKeys<{
|
|
27
|
+
Blob: [string, import("@mysten/bcs").EnumOutputShapeWithKeys<{
|
|
28
|
+
Unencrypted: true;
|
|
29
|
+
Encrypted: {
|
|
30
|
+
dek: number[];
|
|
31
|
+
};
|
|
32
|
+
}, "Unencrypted" | "Encrypted">];
|
|
33
|
+
QuiltPatch: [string, number, number, number];
|
|
34
|
+
}, "Blob" | "QuiltPatch"> | null, import("@mysten/bcs").EnumInputShape<{
|
|
35
|
+
Blob: readonly [string | number | bigint, import("@mysten/bcs").EnumInputShape<{
|
|
36
|
+
Unencrypted: boolean | object | null;
|
|
37
|
+
Encrypted: {
|
|
38
|
+
dek: Iterable<number> & {
|
|
39
|
+
length: number;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
}>];
|
|
43
|
+
QuiltPatch: readonly [string | number | bigint, number, number, number];
|
|
44
|
+
}> | null | undefined, "Option<0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78::walrus_data::WalrusData>">;
|
|
45
|
+
}, "cover_art::cover_art::CoverArt">;
|
|
46
|
+
//# sourceMappingURL=cover_art.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cover_art.d.ts","sourceRoot":"","sources":["../../../../../src/contracts/release_cover_art/deps/cover_art/cover_art.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;GAQG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAIrD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAGb,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/**
|
|
5
|
+
* The evolvable cover art value used by the recording/release cover art
|
|
6
|
+
* extensions.
|
|
7
|
+
*
|
|
8
|
+
* CoverArt format changes over time (static-only → +animated → future formats).
|
|
9
|
+
* Keeping it in an extension rather than immutable core means a new format is a
|
|
10
|
+
* republish of this small package (or a brand-new cover art standard), not of the
|
|
11
|
+
* frozen protocol. `CoverArt` references external storage via `ori::WalrusData`.
|
|
12
|
+
*/
|
|
13
|
+
import { MoveStruct } from "../../../utils/index.js";
|
|
14
|
+
import { bcs } from '@mysten/sui/bcs';
|
|
15
|
+
import * as walrus_data from "../0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78/walrus_data.js";
|
|
16
|
+
const $moduleName = 'cover_art::cover_art';
|
|
17
|
+
export const CoverArt = new MoveStruct({ name: `${$moduleName}::CoverArt`, fields: {
|
|
18
|
+
still: walrus_data.WalrusData,
|
|
19
|
+
animated: bcs.option(walrus_data.WalrusData)
|
|
20
|
+
} });
|
|
21
|
+
//# sourceMappingURL=cover_art.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cover_art.js","sourceRoot":"","sources":["../../../../../src/contracts/release_cover_art/deps/cover_art/cover_art.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;GAQG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,KAAK,WAAW,MAAM,sFAAsF,CAAC;AACpH,MAAM,WAAW,GAAG,sBAAsB,CAAC;AAC3C,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,YAAY,EAAE,MAAM,EAAE;QAC3E,KAAK,EAAE,WAAW,CAAC,UAAU;QAC7B,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,UAAU,CAAC;KAC/C,EAAE,CAAC,CAAC"}
|