@misofm/sdk 0.9.0 → 0.11.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 +88 -56
- package/dist/client.d.ts +121 -18
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +200 -44
- package/dist/client.js.map +1 -1
- package/dist/contracts/composition_routed_stake/composition_routed_stake.d.ts +205 -0
- package/dist/contracts/composition_routed_stake/composition_routed_stake.d.ts.map +1 -0
- package/dist/contracts/composition_routed_stake/composition_routed_stake.js +184 -0
- package/dist/contracts/composition_routed_stake/composition_routed_stake.js.map +1 -0
- package/dist/contracts/composition_routed_stake/witness.d.ts +7 -0
- package/dist/contracts/composition_routed_stake/witness.d.ts.map +1 -0
- package/dist/contracts/composition_routed_stake/witness.js +9 -0
- package/dist/contracts/composition_routed_stake/witness.js.map +1 -0
- package/dist/contracts/composition_royalty_pool/composition_royalty_pool.d.ts +89 -28
- package/dist/contracts/composition_royalty_pool/composition_royalty_pool.d.ts.map +1 -1
- package/dist/contracts/composition_royalty_pool/composition_royalty_pool.js +84 -23
- package/dist/contracts/composition_royalty_pool/composition_royalty_pool.js.map +1 -1
- package/dist/contracts/composition_royalty_pool/witness.d.ts +6 -0
- package/dist/contracts/composition_royalty_pool/witness.d.ts.map +1 -0
- package/dist/contracts/composition_royalty_pool/witness.js +8 -0
- package/dist/contracts/composition_royalty_pool/witness.js.map +1 -0
- package/dist/contracts/genre/genre.d.ts +96 -0
- package/dist/contracts/genre/genre.d.ts.map +1 -0
- package/dist/contracts/genre/genre.js +107 -0
- package/dist/contracts/genre/genre.js.map +1 -0
- 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_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/recording_royalty_pool/recording_royalty_pool.d.ts +90 -28
- package/dist/contracts/recording_royalty_pool/recording_royalty_pool.d.ts.map +1 -1
- package/dist/contracts/recording_royalty_pool/recording_royalty_pool.js +84 -23
- package/dist/contracts/recording_royalty_pool/recording_royalty_pool.js.map +1 -1
- package/dist/contracts/recording_royalty_pool/witness.d.ts +6 -0
- package/dist/contracts/recording_royalty_pool/witness.d.ts.map +1 -0
- package/dist/contracts/recording_royalty_pool/witness.js +8 -0
- package/dist/contracts/recording_royalty_pool/witness.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_revenue_distributor/release_revenue_distributor.d.ts +106 -0
- package/dist/contracts/release_revenue_distributor/release_revenue_distributor.d.ts.map +1 -0
- package/dist/contracts/release_revenue_distributor/release_revenue_distributor.js +113 -0
- package/dist/contracts/release_revenue_distributor/release_revenue_distributor.js.map +1 -0
- package/dist/contracts/release_revenue_distributor/witness.d.ts +7 -0
- package/dist/contracts/release_revenue_distributor/witness.d.ts.map +1 -0
- package/dist/contracts/release_revenue_distributor/witness.js +9 -0
- package/dist/contracts/release_revenue_distributor/witness.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/pool.d.ts +27 -17
- package/dist/contracts/royalty_pool/pool.d.ts.map +1 -1
- package/dist/contracts/royalty_pool/pool.js +26 -17
- package/dist/contracts/royalty_pool/pool.js.map +1 -1
- package/dist/contracts/vault/deps/sui/bag.d.ts +35 -0
- package/dist/contracts/vault/deps/sui/bag.d.ts.map +1 -0
- package/dist/contracts/vault/deps/sui/bag.js +37 -0
- package/dist/contracts/vault/deps/sui/bag.js.map +1 -0
- package/dist/contracts/vault/deps/sui/borrow.d.ts +20 -0
- package/dist/contracts/vault/deps/sui/borrow.d.ts.map +1 -0
- package/dist/contracts/vault/deps/sui/borrow.js +21 -0
- package/dist/contracts/vault/deps/sui/borrow.js.map +1 -0
- package/dist/contracts/vault/vault.d.ts +276 -0
- package/dist/contracts/vault/vault.d.ts.map +1 -0
- package/dist/contracts/vault/vault.js +274 -0
- package/dist/contracts/vault/vault.js.map +1 -0
- package/dist/contracts.d.ts +13 -2
- package/dist/contracts.d.ts.map +1 -1
- package/dist/contracts.js +15 -7
- package/dist/contracts.js.map +1 -1
- package/dist/cover.d.ts +17 -3
- package/dist/cover.d.ts.map +1 -1
- package/dist/cover.js +43 -20
- package/dist/cover.js.map +1 -1
- package/dist/credits.d.ts +31 -12
- package/dist/credits.d.ts.map +1 -1
- package/dist/credits.js +41 -25
- package/dist/credits.js.map +1 -1
- package/dist/deployments.d.ts +30 -57
- package/dist/deployments.d.ts.map +1 -1
- package/dist/deployments.js +5 -53
- package/dist/deployments.js.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/dist/pressing.d.ts +8 -7
- package/dist/pressing.d.ts.map +1 -1
- package/dist/pressing.js +91 -32
- package/dist/pressing.js.map +1 -1
- package/dist/read/artist.js +3 -3
- package/dist/read/artist.js.map +1 -1
- package/dist/read/catalog.d.ts +14 -9
- package/dist/read/catalog.d.ts.map +1 -1
- package/dist/read/catalog.js +71 -37
- package/dist/read/catalog.js.map +1 -1
- package/dist/read/client.d.ts +4 -2
- package/dist/read/client.d.ts.map +1 -1
- package/dist/read/client.js +15 -4
- package/dist/read/client.js.map +1 -1
- package/dist/read/config.d.ts +14 -11
- package/dist/read/config.d.ts.map +1 -1
- package/dist/read/config.js +10 -37
- package/dist/read/config.js.map +1 -1
- package/dist/read/index.d.ts +2 -2
- 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/receipts.d.ts +24 -7
- package/dist/read/receipts.d.ts.map +1 -1
- package/dist/read/receipts.js +78 -25
- package/dist/read/receipts.js.map +1 -1
- package/dist/read/types.d.ts +43 -25
- package/dist/read/types.d.ts.map +1 -1
- package/dist/read/types.js +2 -2
- package/dist/read/types.js.map +1 -1
- package/dist/recording-extensions.d.ts +37 -0
- package/dist/recording-extensions.d.ts.map +1 -0
- package/dist/recording-extensions.js +61 -0
- package/dist/recording-extensions.js.map +1 -0
- package/dist/release-extensions.d.ts +84 -0
- package/dist/release-extensions.d.ts.map +1 -0
- package/dist/release-extensions.js +160 -0
- package/dist/release-extensions.js.map +1 -0
- package/dist/release-graph.d.ts +17 -26
- package/dist/release-graph.d.ts.map +1 -1
- package/dist/release-graph.js +55 -49
- package/dist/release-graph.js.map +1 -1
- package/dist/transactions.d.ts +43 -24
- package/dist/transactions.d.ts.map +1 -1
- package/dist/transactions.js +48 -27
- package/dist/transactions.js.map +1 -1
- package/dist/vault.d.ts +268 -0
- package/dist/vault.d.ts.map +1 -0
- package/dist/vault.js +389 -0
- package/dist/vault.js.map +1 -0
- package/package.json +17 -11
- package/src/client.ts +399 -61
- package/src/contracts/composition_routed_stake/composition_routed_stake.ts +346 -0
- package/src/contracts/composition_routed_stake/witness.ts +11 -0
- package/src/contracts/composition_royalty_pool/composition_royalty_pool.ts +151 -35
- package/src/contracts/composition_royalty_pool/witness.ts +7 -0
- package/src/contracts/genre/genre.ts +151 -0
- package/src/contracts/recording_advisory/recording_advisory.ts +315 -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/recording_royalty_pool/recording_royalty_pool.ts +152 -35
- package/src/contracts/recording_royalty_pool/witness.ts +7 -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_revenue_distributor/release_revenue_distributor.ts +178 -0
- package/src/contracts/release_revenue_distributor/witness.ts +11 -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/pool.ts +34 -24
- package/src/contracts/vault/deps/sui/bag.ts +39 -0
- package/src/contracts/vault/deps/sui/borrow.ts +25 -0
- package/src/contracts/vault/vault.ts +454 -0
- package/src/contracts.ts +16 -9
- package/src/cover.ts +62 -37
- package/src/credits.ts +64 -51
- package/src/deployments.ts +35 -97
- package/src/index.ts +11 -5
- package/src/pressing.ts +135 -39
- package/src/read/artist.ts +3 -3
- package/src/read/catalog.ts +99 -44
- package/src/read/client.ts +20 -4
- package/src/read/config.ts +23 -49
- package/src/read/index.ts +3 -1
- package/src/read/receipts.ts +103 -26
- package/src/read/types.ts +44 -27
- package/src/recording-extensions.ts +102 -0
- package/src/release-extensions.ts +261 -0
- package/src/release-graph.ts +68 -81
- package/src/transactions.ts +79 -53
- package/src/vault.ts +777 -0
- package/dist/contracts/miso_drop/drop.d.ts +0 -550
- package/dist/contracts/miso_drop/drop.d.ts.map +0 -1
- package/dist/contracts/miso_drop/drop.js +0 -523
- package/dist/contracts/miso_drop/drop.js.map +0 -1
- package/dist/contracts/release_registry/release_registry.d.ts +0 -114
- package/dist/contracts/release_registry/release_registry.d.ts.map +0 -1
- package/dist/contracts/release_registry/release_registry.js +0 -119
- package/dist/contracts/release_registry/release_registry.js.map +0 -1
- package/dist/drop.d.ts +0 -127
- package/dist/drop.d.ts.map +0 -1
- package/dist/drop.js +0 -202
- package/dist/drop.js.map +0 -1
- package/dist/extensions/royalty-pool.d.ts +0 -32
- package/dist/extensions/royalty-pool.d.ts.map +0 -1
- package/dist/extensions/royalty-pool.js +0 -33
- package/dist/extensions/royalty-pool.js.map +0 -1
- package/src/contracts/miso_drop/drop.ts +0 -798
- package/src/contracts/release_registry/release_registry.ts +0 -160
- package/src/drop.ts +0 -376
- package/src/extensions/royalty-pool.ts +0 -90
|
@@ -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,MAAM,iBAAiB,CAAC;AACtC,OAAO,EAA8C,MAAM,0BAA0B,CAAC;AACtF,OAAO,KAAK,WAAW,MAAM,2BAA2B,CAAC;AACzD,MAAM,WAAW,GAAG,mEAAmE,CAAC;AACxF,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,uBAAuB,GAAG,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,2BAA2B,EAAE,MAAM,EAAE;QACzG,YAAY,EAAE,GAAG,CAAC,OAAO;QACzB,SAAS,EAAE,WAAW,CAAC,UAAU;KACpC,EAAE,CAAC,CAAC;AACT,MAAM,CAAC,MAAM,yBAAyB,GAAG,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,6BAA6B,EAAE,MAAM,EAAE;QAC7G,Y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AAC,OAAO,IAAI,uCAAuC,CAAC;IAClF,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,4BAA4B;QACpC,QAAQ,EAAE,sBAAsB;QAChC,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;QACpF,aAAa,EAAE,OAAO,CAAC,aAAa;KACvC,CAAC,CAAC;AACP,CAAC;AAcD,oEAAoE;AACpE,MAAM,UAAU,eAAe,CAAC,OAA+B;IAC3D,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,IAAI,uCAAuC,CAAC;IAClF,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,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.js';
|
|
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.js';
|
|
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.js").MoveEnum<{
|
|
21
|
+
Blob: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">, import("../utils/index.js").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;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BAAmB;IAChC,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;CACxC;AACD,MAAM,WAAW,iBAAiB;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,mBAAmB,GAAG;QAC7B,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;KACvC,CAAC;IACF,aAAa,EAAE;QACX,MAAM;QACN,MAAM;KACT,CAAC;CACL;AACD,+DAA+D;AAC/D,wBAAgB,UAAU,CAAC,OAAO,EAAE,iBAAiB,IAMzC,IAAI,WAAW,0DAO1B;AACD,MAAM,WAAW,gBAAgB;IAC7B,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;CACxC;AACD,MAAM,WAAW,cAAc;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,gBAAgB,GAAG;QAC1B,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;KACvC,CAAC;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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,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"}
|
|
@@ -2,28 +2,58 @@
|
|
|
2
2
|
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
3
|
**************************************************************/
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Vault-authorized royalty-pool business logic for Miso Recordings.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* transfers) or `redeem_and_deposit` (for funds-accumulator balances).
|
|
12
|
-
*
|
|
13
|
-
* All three entry points require `&RecordingAdminCap`, so timing of fold
|
|
14
|
-
* operations stays under admin control.
|
|
7
|
+
* The plugin temporarily leases the RecordingAdminCap from its Vault, uses it only
|
|
8
|
+
* to reach the matching Recording UID, and returns it before calling external pool
|
|
9
|
+
* logic. Pools remain derived from the Recording, not the Vault, so their
|
|
10
|
+
* canonical identity survives vault replacement.
|
|
15
11
|
*/
|
|
16
12
|
import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
|
|
17
13
|
import { type RawTransactionArgument } from '../utils/index.js';
|
|
14
|
+
export interface InstallArguments {
|
|
15
|
+
vault: RawTransactionArgument<string>;
|
|
16
|
+
vaultAdminCap: RawTransactionArgument<string>;
|
|
17
|
+
}
|
|
18
|
+
export interface InstallOptions {
|
|
19
|
+
package?: string;
|
|
20
|
+
arguments: InstallArguments | [
|
|
21
|
+
vault: RawTransactionArgument<string>,
|
|
22
|
+
vaultAdminCap: RawTransactionArgument<string>
|
|
23
|
+
];
|
|
24
|
+
typeArguments: [
|
|
25
|
+
string
|
|
26
|
+
];
|
|
27
|
+
}
|
|
28
|
+
/** Authorize this package on a Recording capability Vault. */
|
|
29
|
+
export declare function install(options: InstallOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
30
|
+
export interface UninstallArguments {
|
|
31
|
+
vault: RawTransactionArgument<string>;
|
|
32
|
+
vaultAdminCap: RawTransactionArgument<string>;
|
|
33
|
+
}
|
|
34
|
+
export interface UninstallOptions {
|
|
35
|
+
package?: string;
|
|
36
|
+
arguments: UninstallArguments | [
|
|
37
|
+
vault: RawTransactionArgument<string>,
|
|
38
|
+
vaultAdminCap: RawTransactionArgument<string>
|
|
39
|
+
];
|
|
40
|
+
typeArguments: [
|
|
41
|
+
string
|
|
42
|
+
];
|
|
43
|
+
}
|
|
44
|
+
/** Revoke this package from a Recording capability Vault. */
|
|
45
|
+
export declare function uninstall(options: UninstallOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
18
46
|
export interface InitializePoolArguments {
|
|
47
|
+
vault: RawTransactionArgument<string>;
|
|
19
48
|
recording: RawTransactionArgument<string>;
|
|
20
|
-
|
|
49
|
+
vaultAdminCap: RawTransactionArgument<string>;
|
|
21
50
|
}
|
|
22
51
|
export interface InitializePoolOptions {
|
|
23
52
|
package?: string;
|
|
24
53
|
arguments: InitializePoolArguments | [
|
|
54
|
+
vault: RawTransactionArgument<string>,
|
|
25
55
|
recording: RawTransactionArgument<string>,
|
|
26
|
-
|
|
56
|
+
vaultAdminCap: RawTransactionArgument<string>
|
|
27
57
|
];
|
|
28
58
|
typeArguments: [
|
|
29
59
|
string,
|
|
@@ -32,24 +62,26 @@ export interface InitializePoolOptions {
|
|
|
32
62
|
];
|
|
33
63
|
}
|
|
34
64
|
/**
|
|
35
|
-
* Create
|
|
36
|
-
*
|
|
37
|
-
*
|
|
65
|
+
* Create and share the canonical pool derived from this Recording.
|
|
66
|
+
*
|
|
67
|
+
* The matching VaultAdminCap chooses which Currency pools may be created. The
|
|
68
|
+
* result cannot be redirected: the pool ID is claimed from the Recording UID and
|
|
69
|
+
* is typed by both RecordingShare and Currency.
|
|
38
70
|
*/
|
|
39
71
|
export declare function initializePool(options: InitializePoolOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
40
72
|
export interface ReceiveAndDepositArguments {
|
|
73
|
+
vault: RawTransactionArgument<string>;
|
|
41
74
|
recording: RawTransactionArgument<string>;
|
|
42
|
-
cap: RawTransactionArgument<string>;
|
|
43
|
-
coins: TransactionArgument;
|
|
44
75
|
pool: RawTransactionArgument<string>;
|
|
76
|
+
coins: TransactionArgument;
|
|
45
77
|
}
|
|
46
78
|
export interface ReceiveAndDepositOptions {
|
|
47
79
|
package?: string;
|
|
48
80
|
arguments: ReceiveAndDepositArguments | [
|
|
81
|
+
vault: RawTransactionArgument<string>,
|
|
49
82
|
recording: RawTransactionArgument<string>,
|
|
50
|
-
|
|
51
|
-
coins: TransactionArgument
|
|
52
|
-
pool: RawTransactionArgument<string>
|
|
83
|
+
pool: RawTransactionArgument<string>,
|
|
84
|
+
coins: TransactionArgument
|
|
53
85
|
];
|
|
54
86
|
typeArguments: [
|
|
55
87
|
string,
|
|
@@ -58,23 +90,24 @@ export interface ReceiveAndDepositOptions {
|
|
|
58
90
|
];
|
|
59
91
|
}
|
|
60
92
|
/**
|
|
61
|
-
* Receive
|
|
62
|
-
*
|
|
93
|
+
* Receive coins sent to the Recording and deposit them into its canonical pool.
|
|
94
|
+
* Anyone may crank this after the plugin is installed, but the funds can only
|
|
95
|
+
* reach the pool derived from this Recording.
|
|
63
96
|
*/
|
|
64
97
|
export declare function receiveAndDeposit(options: ReceiveAndDepositOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
65
98
|
export interface RedeemAndDepositArguments {
|
|
99
|
+
vault: RawTransactionArgument<string>;
|
|
66
100
|
recording: RawTransactionArgument<string>;
|
|
67
|
-
cap: RawTransactionArgument<string>;
|
|
68
|
-
value: RawTransactionArgument<number | bigint>;
|
|
69
101
|
pool: RawTransactionArgument<string>;
|
|
102
|
+
value: RawTransactionArgument<number | bigint>;
|
|
70
103
|
}
|
|
71
104
|
export interface RedeemAndDepositOptions {
|
|
72
105
|
package?: string;
|
|
73
106
|
arguments: RedeemAndDepositArguments | [
|
|
107
|
+
vault: RawTransactionArgument<string>,
|
|
74
108
|
recording: RawTransactionArgument<string>,
|
|
75
|
-
|
|
76
|
-
value: RawTransactionArgument<number | bigint
|
|
77
|
-
pool: RawTransactionArgument<string>
|
|
109
|
+
pool: RawTransactionArgument<string>,
|
|
110
|
+
value: RawTransactionArgument<number | bigint>
|
|
78
111
|
];
|
|
79
112
|
typeArguments: [
|
|
80
113
|
string,
|
|
@@ -83,8 +116,37 @@ export interface RedeemAndDepositOptions {
|
|
|
83
116
|
];
|
|
84
117
|
}
|
|
85
118
|
/**
|
|
86
|
-
* Redeem
|
|
87
|
-
*
|
|
119
|
+
* Redeem funds accumulated at the Recording address and deposit them into its
|
|
120
|
+
* canonical pool. Anyone may crank this after installation.
|
|
88
121
|
*/
|
|
89
122
|
export declare function redeemAndDeposit(options: RedeemAndDepositOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
123
|
+
export interface IsInstalledArguments {
|
|
124
|
+
vault: RawTransactionArgument<string>;
|
|
125
|
+
}
|
|
126
|
+
export interface IsInstalledOptions {
|
|
127
|
+
package?: string;
|
|
128
|
+
arguments: IsInstalledArguments | [
|
|
129
|
+
vault: RawTransactionArgument<string>
|
|
130
|
+
];
|
|
131
|
+
typeArguments: [
|
|
132
|
+
string
|
|
133
|
+
];
|
|
134
|
+
}
|
|
135
|
+
export declare function isInstalled(options: IsInstalledOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
136
|
+
export interface PoolAddressArguments {
|
|
137
|
+
recording: RawTransactionArgument<string>;
|
|
138
|
+
}
|
|
139
|
+
export interface PoolAddressOptions {
|
|
140
|
+
package?: string;
|
|
141
|
+
arguments: PoolAddressArguments | [
|
|
142
|
+
recording: RawTransactionArgument<string>
|
|
143
|
+
];
|
|
144
|
+
typeArguments: [
|
|
145
|
+
string,
|
|
146
|
+
string,
|
|
147
|
+
string
|
|
148
|
+
];
|
|
149
|
+
}
|
|
150
|
+
/** The canonical pool address for this Recording, share type, and Currency. */
|
|
151
|
+
export declare function poolAddress(options: PoolAddressOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
90
152
|
//# sourceMappingURL=recording_royalty_pool.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recording_royalty_pool.d.ts","sourceRoot":"","sources":["../../../src/contracts/recording_royalty_pool/recording_royalty_pool.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE
|
|
1
|
+
{"version":3,"file":"recording_royalty_pool.d.ts","sourceRoot":"","sources":["../../../src/contracts/recording_royalty_pool/recording_royalty_pool.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;GAOG;AAEH,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACtF,OAAO,EAA0B,KAAK,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACxF,MAAM,WAAW,gBAAgB;IAC7B,KAAK,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;IACtC,aAAa,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;CACjD;AACD,MAAM,WAAW,cAAc;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,gBAAgB,GAAG;QAC1B,KAAK,EAAE,sBAAsB,CAAC,MAAM,CAAC;QACrC,aAAa,EAAE,sBAAsB,CAAC,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