@misofm/sdk 0.15.10 → 0.16.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.
Files changed (145) hide show
  1. package/README.md +153 -56
  2. package/dist/client.d.ts +175 -47
  3. package/dist/client.d.ts.map +1 -1
  4. package/dist/client.js +302 -47
  5. package/dist/client.js.map +1 -1
  6. package/dist/contracts/composition_royalty_pool/composition_royalty_pool.d.ts +11 -11
  7. package/dist/contracts/composition_royalty_pool/composition_royalty_pool.d.ts.map +1 -1
  8. package/dist/contracts/composition_royalty_pool/composition_royalty_pool.js +9 -9
  9. package/dist/contracts/composition_royalty_pool/composition_royalty_pool.js.map +1 -1
  10. package/dist/contracts/miso_record/deps/std/type_name.d.ts.map +1 -0
  11. package/dist/contracts/miso_record/deps/std/type_name.js.map +1 -0
  12. package/dist/contracts/miso_record/deps/sui/vec_set.d.ts +21 -0
  13. package/dist/contracts/miso_record/deps/sui/vec_set.d.ts.map +1 -0
  14. package/dist/contracts/miso_record/deps/sui/vec_set.js +20 -0
  15. package/dist/contracts/miso_record/deps/sui/vec_set.js.map +1 -0
  16. package/dist/contracts/miso_record/pressing.d.ts +327 -0
  17. package/dist/contracts/miso_record/pressing.d.ts.map +1 -0
  18. package/dist/contracts/miso_record/pressing.js +345 -0
  19. package/dist/contracts/miso_record/pressing.js.map +1 -0
  20. package/dist/contracts/miso_record/record.d.ts +190 -0
  21. package/dist/contracts/miso_record/record.d.ts.map +1 -0
  22. package/dist/contracts/miso_record/record.js +226 -0
  23. package/dist/contracts/miso_record/record.js.map +1 -0
  24. package/dist/contracts/miso_record_shop/deps/std/type_name.d.ts +18 -0
  25. package/dist/contracts/miso_record_shop/deps/std/type_name.d.ts.map +1 -0
  26. package/dist/contracts/miso_record_shop/deps/std/type_name.js +20 -0
  27. package/dist/contracts/miso_record_shop/deps/std/type_name.js.map +1 -0
  28. package/dist/contracts/miso_record_shop/listing.d.ts +387 -0
  29. package/dist/contracts/miso_record_shop/listing.d.ts.map +1 -0
  30. package/dist/contracts/miso_record_shop/listing.js +380 -0
  31. package/dist/contracts/miso_record_shop/listing.js.map +1 -0
  32. package/dist/contracts/miso_record_shop/witness.d.ts +7 -0
  33. package/dist/contracts/miso_record_shop/witness.d.ts.map +1 -0
  34. package/dist/contracts/miso_record_shop/witness.js +9 -0
  35. package/dist/contracts/miso_record_shop/witness.js.map +1 -0
  36. package/dist/contracts/recording_royalty_pool/recording_royalty_pool.d.ts +10 -12
  37. package/dist/contracts/recording_royalty_pool/recording_royalty_pool.d.ts.map +1 -1
  38. package/dist/contracts/recording_royalty_pool/recording_royalty_pool.js +8 -10
  39. package/dist/contracts/recording_royalty_pool/recording_royalty_pool.js.map +1 -1
  40. package/dist/contracts/vault/vault.d.ts +149 -23
  41. package/dist/contracts/vault/vault.d.ts.map +1 -1
  42. package/dist/contracts/vault/vault.js +144 -18
  43. package/dist/contracts/vault/vault.js.map +1 -1
  44. package/dist/contracts.d.ts +3 -3
  45. package/dist/contracts.d.ts.map +1 -1
  46. package/dist/contracts.js +5 -4
  47. package/dist/contracts.js.map +1 -1
  48. package/dist/deployments.d.ts +47 -11
  49. package/dist/deployments.d.ts.map +1 -1
  50. package/dist/deployments.js +48 -9
  51. package/dist/deployments.js.map +1 -1
  52. package/dist/index.d.ts +2 -0
  53. package/dist/index.d.ts.map +1 -1
  54. package/dist/index.js +2 -0
  55. package/dist/index.js.map +1 -1
  56. package/dist/mix.d.ts +144 -0
  57. package/dist/mix.d.ts.map +1 -0
  58. package/dist/mix.js +656 -0
  59. package/dist/mix.js.map +1 -0
  60. package/dist/pressing.d.ts +72 -156
  61. package/dist/pressing.d.ts.map +1 -1
  62. package/dist/pressing.js +269 -261
  63. package/dist/pressing.js.map +1 -1
  64. package/dist/publication.d.ts +5 -2
  65. package/dist/publication.d.ts.map +1 -1
  66. package/dist/publication.js +63 -34
  67. package/dist/publication.js.map +1 -1
  68. package/dist/read/catalog.d.ts +8 -5
  69. package/dist/read/catalog.d.ts.map +1 -1
  70. package/dist/read/catalog.js +47 -35
  71. package/dist/read/catalog.js.map +1 -1
  72. package/dist/read/config.d.ts +6 -4
  73. package/dist/read/config.d.ts.map +1 -1
  74. package/dist/read/config.js +1 -2
  75. package/dist/read/config.js.map +1 -1
  76. package/dist/read/index.d.ts +1 -1
  77. package/dist/read/index.d.ts.map +1 -1
  78. package/dist/read/index.js +1 -1
  79. package/dist/read/index.js.map +1 -1
  80. package/dist/read/internal/scalars.d.ts.map +1 -1
  81. package/dist/read/internal/scalars.js +4 -3
  82. package/dist/read/internal/scalars.js.map +1 -1
  83. package/dist/read/internal/walrus.d.ts.map +1 -1
  84. package/dist/read/internal/walrus.js +2 -1
  85. package/dist/read/internal/walrus.js.map +1 -1
  86. package/dist/read/receipts.d.ts +21 -12
  87. package/dist/read/receipts.d.ts.map +1 -1
  88. package/dist/read/receipts.js +159 -56
  89. package/dist/read/receipts.js.map +1 -1
  90. package/dist/read/types.d.ts +40 -26
  91. package/dist/read/types.d.ts.map +1 -1
  92. package/dist/read/wallet.d.ts +3 -4
  93. package/dist/read/wallet.d.ts.map +1 -1
  94. package/dist/read/wallet.js +72 -53
  95. package/dist/read/wallet.js.map +1 -1
  96. package/dist/vault.d.ts +71 -15
  97. package/dist/vault.d.ts.map +1 -1
  98. package/dist/vault.js +135 -29
  99. package/dist/vault.js.map +1 -1
  100. package/package.json +10 -3
  101. package/src/client.ts +404 -69
  102. package/src/contracts/composition_royalty_pool/composition_royalty_pool.ts +15 -15
  103. package/src/contracts/miso_record/deps/sui/vec_set.ts +21 -0
  104. package/src/contracts/miso_record/pressing.ts +522 -0
  105. package/src/contracts/miso_record/record.ts +338 -0
  106. package/src/contracts/miso_record_shop/deps/std/type_name.ts +22 -0
  107. package/src/contracts/miso_record_shop/listing.ts +602 -0
  108. package/src/contracts/miso_record_shop/witness.ts +11 -0
  109. package/src/contracts/recording_royalty_pool/recording_royalty_pool.ts +14 -16
  110. package/src/contracts/vault/vault.ts +226 -21
  111. package/src/contracts.ts +5 -4
  112. package/src/deployments.ts +134 -38
  113. package/src/index.ts +2 -0
  114. package/src/mix.ts +910 -0
  115. package/src/pressing.ts +428 -423
  116. package/src/publication.ts +69 -36
  117. package/src/read/catalog.ts +49 -34
  118. package/src/read/config.ts +7 -7
  119. package/src/read/index.ts +9 -1
  120. package/src/read/internal/scalars.ts +4 -2
  121. package/src/read/internal/walrus.ts +2 -1
  122. package/src/read/receipts.ts +181 -66
  123. package/src/read/types.ts +41 -24
  124. package/src/read/wallet.ts +70 -57
  125. package/src/vault.ts +228 -41
  126. package/dist/contracts/miso_pressing/certificate.d.ts +0 -89
  127. package/dist/contracts/miso_pressing/certificate.d.ts.map +0 -1
  128. package/dist/contracts/miso_pressing/certificate.js +0 -108
  129. package/dist/contracts/miso_pressing/certificate.js.map +0 -1
  130. package/dist/contracts/miso_pressing/deps/std/type_name.d.ts.map +0 -1
  131. package/dist/contracts/miso_pressing/deps/std/type_name.js.map +0 -1
  132. package/dist/contracts/miso_pressing/listing.d.ts +0 -434
  133. package/dist/contracts/miso_pressing/listing.d.ts.map +0 -1
  134. package/dist/contracts/miso_pressing/listing.js +0 -401
  135. package/dist/contracts/miso_pressing/listing.js.map +0 -1
  136. package/dist/contracts/miso_pressing/pressing.d.ts +0 -334
  137. package/dist/contracts/miso_pressing/pressing.d.ts.map +0 -1
  138. package/dist/contracts/miso_pressing/pressing.js +0 -298
  139. package/dist/contracts/miso_pressing/pressing.js.map +0 -1
  140. package/src/contracts/miso_pressing/certificate.ts +0 -164
  141. package/src/contracts/miso_pressing/listing.ts +0 -592
  142. package/src/contracts/miso_pressing/pressing.ts +0 -399
  143. /package/dist/contracts/{miso_pressing → miso_record}/deps/std/type_name.d.ts +0 -0
  144. /package/dist/contracts/{miso_pressing → miso_record}/deps/std/type_name.js +0 -0
  145. /package/src/contracts/{miso_pressing → miso_record}/deps/std/type_name.ts +0 -0
@@ -0,0 +1,345 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ /**
5
+ * One edition of a Miso release and the complete lifecycle boundary for its
6
+ * Records.
7
+ *
8
+ * A release may have many Pressings, one at each `PressingKey(edition)`. Each
9
+ * Pressing owns an independent Record sequence, an optional immutable maximum
10
+ * supply, and the set of distributor witness types allowed to mint from that
11
+ * edition. Distributors own delivery mechanics; the Pressing owns issuance.
12
+ */
13
+ import { MoveTuple, MoveStruct, normalizeMoveArguments } from '../utils/index.js';
14
+ import { bcs } from '@mysten/sui/bcs';
15
+ import {} from '@mysten/sui/transactions';
16
+ import * as vec_set from './deps/sui/vec_set.js';
17
+ import * as type_name from './deps/std/type_name.js';
18
+ const $moduleName = '@local-pkg/miso_record::pressing';
19
+ export const PressingKey = new MoveTuple({ name: `${$moduleName}::PressingKey`, fields: [bcs.u16()] });
20
+ export const PressingAdminCapKey = new MoveTuple({ name: `${$moduleName}::PressingAdminCapKey`, fields: [bcs.bool()] });
21
+ export const Pressing = new MoveStruct({ name: `${$moduleName}::Pressing`, fields: {
22
+ /** The Pressing's derived object identity. */
23
+ id: bcs.Address,
24
+ /** The parent release represented by this edition. */
25
+ release_id: bcs.Address,
26
+ /** The edition number. */
27
+ edition: bcs.u16(),
28
+ /** The number of Records issued by this Pressing. */
29
+ supply: bcs.u32(),
30
+ /** The immutable supply ceiling, or `none()` for an uncapped Pressing. */
31
+ max_supply: bcs.option(bcs.u32()),
32
+ /** The defining types of distributors currently permitted to mint. */
33
+ distributors: vec_set.VecSet(type_name.TypeName)
34
+ } });
35
+ export const PressingAdminCap = new MoveStruct({ name: `${$moduleName}::PressingAdminCap`, fields: {
36
+ /** The capability's derived object identity. */
37
+ id: bcs.Address,
38
+ /** The Pressing controlled by this capability. */
39
+ pressing_id: bcs.Address
40
+ } });
41
+ export const PressingCreatedEvent = new MoveStruct({ name: `${$moduleName}::PressingCreatedEvent`, fields: {
42
+ /** The newly created Pressing. */
43
+ pressing_id: bcs.Address,
44
+ /** The parent release. */
45
+ release_id: bcs.Address,
46
+ /** The Pressing's edition number. */
47
+ edition: bcs.u16(),
48
+ /** The immutable supply ceiling, if one exists. */
49
+ max_supply: bcs.option(bcs.u32())
50
+ } });
51
+ export const DistributorAuthorizedEvent = new MoveStruct({ name: `${$moduleName}::DistributorAuthorizedEvent`, fields: {
52
+ /** The configured Pressing. */
53
+ pressing_id: bcs.Address,
54
+ /** The authorized distributor's defining type. */
55
+ distributor: type_name.TypeName
56
+ } });
57
+ export const DistributorRevokedEvent = new MoveStruct({ name: `${$moduleName}::DistributorRevokedEvent`, fields: {
58
+ /** The configured Pressing. */
59
+ pressing_id: bcs.Address,
60
+ /** The revoked distributor's defining type. */
61
+ distributor: type_name.TypeName
62
+ } });
63
+ export const RecordPurchasedEvent = new MoveStruct({ name: `${$moduleName}::RecordPurchasedEvent`, fields: {
64
+ /** The purchased Record. */
65
+ record_id: bcs.Address,
66
+ /** The release represented by the Record. */
67
+ release_id: bcs.Address,
68
+ /** The Pressing that issued the Record. */
69
+ pressing_id: bcs.Address,
70
+ /** The edition represented by the Pressing. */
71
+ edition: bcs.u16(),
72
+ /** The Record's number within its edition. */
73
+ number: bcs.u32(),
74
+ /** The defining type of the purchase currency. */
75
+ purchase_currency: type_name.TypeName,
76
+ /** The amount paid for the Record. */
77
+ purchase_price: bcs.u64(),
78
+ /** The transaction sender who purchased the Record. */
79
+ purchased_by: bcs.Address,
80
+ /** The purchase time in Unix milliseconds from Sui's Clock. */
81
+ purchased_timestamp_ms: bcs.u64(),
82
+ /** The defining type of the distributor that authorized the mint. */
83
+ distributor: type_name.TypeName
84
+ } });
85
+ /**
86
+ * Create one edition's Pressing under its Release.
87
+ *
88
+ * `max_supply = none()` creates an uncapped edition; `some(quantity)` creates a
89
+ * permanently capped edition. The Pressing and its admin capability are returned
90
+ * for composition before the caller shares the Pressing and custodies the
91
+ * capability.
92
+ */
93
+ export function _new(options) {
94
+ const packageAddress = options.package ?? '@local-pkg/miso_record';
95
+ const argumentsTypes = [
96
+ null,
97
+ null,
98
+ 'u16',
99
+ '0x1::option::Option<u32>'
100
+ ];
101
+ const parameterNames = ["release", "releaseCap", "edition", "maxSupply"];
102
+ return (tx) => tx.moveCall({
103
+ package: packageAddress,
104
+ module: 'pressing',
105
+ function: 'new',
106
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
107
+ });
108
+ }
109
+ /** Share a newly created Pressing after configuring its distributors. */
110
+ export function share(options) {
111
+ const packageAddress = options.package ?? '@local-pkg/miso_record';
112
+ const argumentsTypes = [
113
+ null
114
+ ];
115
+ const parameterNames = ["self"];
116
+ return (tx) => tx.moveCall({
117
+ package: packageAddress,
118
+ module: 'pressing',
119
+ function: 'share',
120
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
121
+ });
122
+ }
123
+ /**
124
+ * Authorize distributor witness type `Distributor` for this edition. Reauthorizing
125
+ * an existing distributor is a no-op.
126
+ */
127
+ export function authorizeDistributor(options) {
128
+ const packageAddress = options.package ?? '@local-pkg/miso_record';
129
+ const argumentsTypes = [
130
+ null,
131
+ null
132
+ ];
133
+ const parameterNames = ["self", "cap"];
134
+ return (tx) => tx.moveCall({
135
+ package: packageAddress,
136
+ module: 'pressing',
137
+ function: 'authorize_distributor',
138
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
139
+ typeArguments: options.typeArguments
140
+ });
141
+ }
142
+ /**
143
+ * Revoke distributor witness type `Distributor` for this edition. Revoking a
144
+ * missing distributor is a no-op.
145
+ */
146
+ export function revokeDistributor(options) {
147
+ const packageAddress = options.package ?? '@local-pkg/miso_record';
148
+ const argumentsTypes = [
149
+ null,
150
+ null
151
+ ];
152
+ const parameterNames = ["self", "cap"];
153
+ return (tx) => tx.moveCall({
154
+ package: packageAddress,
155
+ module: 'pressing',
156
+ function: 'revoke_distributor',
157
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
158
+ typeArguments: options.typeArguments
159
+ });
160
+ }
161
+ /**
162
+ * Purchase the next Record by consuming an authorized distributor witness.
163
+ *
164
+ * The Record number is allocated here and cannot be selected by the caller. The
165
+ * returned Record remains composable: the distributor decides whether to transfer,
166
+ * wrap, freeze, or otherwise deliver it.
167
+ */
168
+ export function mint(options) {
169
+ const packageAddress = options.package ?? '@local-pkg/miso_record';
170
+ const argumentsTypes = [
171
+ null,
172
+ `${options.typeArguments[0]}`,
173
+ 'u64',
174
+ '0x2::clock::Clock'
175
+ ];
176
+ const parameterNames = ["self", "Distributor", "purchasePrice"];
177
+ return (tx) => tx.moveCall({
178
+ package: packageAddress,
179
+ module: 'pressing',
180
+ function: 'mint',
181
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
182
+ typeArguments: options.typeArguments
183
+ });
184
+ }
185
+ /** Borrow the Pressing UID for read-only extensions. */
186
+ export function uid(options) {
187
+ const packageAddress = options.package ?? '@local-pkg/miso_record';
188
+ const argumentsTypes = [
189
+ null
190
+ ];
191
+ const parameterNames = ["self"];
192
+ return (tx) => tx.moveCall({
193
+ package: packageAddress,
194
+ module: 'pressing',
195
+ function: 'uid',
196
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
197
+ });
198
+ }
199
+ /**
200
+ * Mutably access the Pressing UID for cap-authorized extensions, including
201
+ * distributor-owned objects derived from this edition.
202
+ */
203
+ export function uidMut(options) {
204
+ const packageAddress = options.package ?? '@local-pkg/miso_record';
205
+ const argumentsTypes = [
206
+ null,
207
+ null
208
+ ];
209
+ const parameterNames = ["self", "cap"];
210
+ return (tx) => tx.moveCall({
211
+ package: packageAddress,
212
+ module: 'pressing',
213
+ function: 'uid_mut',
214
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
215
+ });
216
+ }
217
+ /** Return the release represented by this Pressing. */
218
+ export function releaseId(options) {
219
+ const packageAddress = options.package ?? '@local-pkg/miso_record';
220
+ const argumentsTypes = [
221
+ null
222
+ ];
223
+ const parameterNames = ["self"];
224
+ return (tx) => tx.moveCall({
225
+ package: packageAddress,
226
+ module: 'pressing',
227
+ function: 'release_id',
228
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
229
+ });
230
+ }
231
+ /** Return this Pressing's edition number. */
232
+ export function edition(options) {
233
+ const packageAddress = options.package ?? '@local-pkg/miso_record';
234
+ const argumentsTypes = [
235
+ null
236
+ ];
237
+ const parameterNames = ["self"];
238
+ return (tx) => tx.moveCall({
239
+ package: packageAddress,
240
+ module: 'pressing',
241
+ function: 'edition',
242
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
243
+ });
244
+ }
245
+ /** Return the number of Records issued by this Pressing. */
246
+ export function supply(options) {
247
+ const packageAddress = options.package ?? '@local-pkg/miso_record';
248
+ const argumentsTypes = [
249
+ null
250
+ ];
251
+ const parameterNames = ["self"];
252
+ return (tx) => tx.moveCall({
253
+ package: packageAddress,
254
+ module: 'pressing',
255
+ function: 'supply',
256
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
257
+ });
258
+ }
259
+ /** Return the immutable supply ceiling, if one exists. */
260
+ export function maxSupply(options) {
261
+ const packageAddress = options.package ?? '@local-pkg/miso_record';
262
+ const argumentsTypes = [
263
+ null
264
+ ];
265
+ const parameterNames = ["self"];
266
+ return (tx) => tx.moveCall({
267
+ package: packageAddress,
268
+ module: 'pressing',
269
+ function: 'max_supply',
270
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
271
+ });
272
+ }
273
+ /** Borrow the defining types of all currently authorized distributors. */
274
+ export function distributors(options) {
275
+ const packageAddress = options.package ?? '@local-pkg/miso_record';
276
+ const argumentsTypes = [
277
+ null
278
+ ];
279
+ const parameterNames = ["self"];
280
+ return (tx) => tx.moveCall({
281
+ package: packageAddress,
282
+ module: 'pressing',
283
+ function: 'distributors',
284
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
285
+ });
286
+ }
287
+ /** Return whether `Distributor` is currently authorized to mint. */
288
+ export function isDistributorAuthorized(options) {
289
+ const packageAddress = options.package ?? '@local-pkg/miso_record';
290
+ const argumentsTypes = [
291
+ null
292
+ ];
293
+ const parameterNames = ["self"];
294
+ return (tx) => tx.moveCall({
295
+ package: packageAddress,
296
+ module: 'pressing',
297
+ function: 'is_distributor_authorized',
298
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
299
+ typeArguments: options.typeArguments
300
+ });
301
+ }
302
+ /** Return the Pressing controlled by this capability. */
303
+ export function pressingId(options) {
304
+ const packageAddress = options.package ?? '@local-pkg/miso_record';
305
+ const argumentsTypes = [
306
+ null
307
+ ];
308
+ const parameterNames = ["cap"];
309
+ return (tx) => tx.moveCall({
310
+ package: packageAddress,
311
+ module: 'pressing',
312
+ function: 'pressing_id',
313
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
314
+ });
315
+ }
316
+ /** Derive an edition's Pressing address from its Release ID. */
317
+ export function deriveAddress(options) {
318
+ const packageAddress = options.package ?? '@local-pkg/miso_record';
319
+ const argumentsTypes = [
320
+ '0x2::object::ID',
321
+ 'u16'
322
+ ];
323
+ const parameterNames = ["releaseId", "edition"];
324
+ return (tx) => tx.moveCall({
325
+ package: packageAddress,
326
+ module: 'pressing',
327
+ function: 'derive_address',
328
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
329
+ });
330
+ }
331
+ /** Derive a Pressing's admin capability address. */
332
+ export function deriveAdminCapAddress(options) {
333
+ const packageAddress = options.package ?? '@local-pkg/miso_record';
334
+ const argumentsTypes = [
335
+ '0x2::object::ID'
336
+ ];
337
+ const parameterNames = ["pressingId"];
338
+ return (tx) => tx.moveCall({
339
+ package: packageAddress,
340
+ module: 'pressing',
341
+ function: 'derive_admin_cap_address',
342
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
343
+ });
344
+ }
345
+ //# sourceMappingURL=pressing.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pressing.js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,EAAE,cAAc,EAAE,cAAc,CAAC;KACvF,CAAC,CAAC;AACP,CAAC;AAYD,gEAAgE;AAChE,MAAM,UAAU,aAAa,CAAC,OAA6B;IACvD,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,IAAI,wBAAwB,CAAC;IACnE,MAAM,cAAc,GAAG;QACnB,iBAAiB;QACjB,KAAK;KACoB,CAAC;IAC9B,MAAM,cAAc,GAAG,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;IAChD,OAAO,CAAC,EAAe,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC;QACpC,OAAO,EAAE,cAAc;QACvB,MAAM,EAAE,UAAU;QAClB,QAAQ,EAAE,gBAAgB;QAC1B,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;KACvF,CAAC,CAAC;AACP,CAAC;AAUD,oDAAoD;AACpD,MAAM,UAAU,qBAAqB,CAAC,OAAqC;IACvE,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,IAAI,wBAAwB,CAAC;IACnE,MAAM,cAAc,GAAG;QACnB,iBAAiB;KACQ,CAAC;IAC9B,MAAM,cAAc,GAAG,CAAC,YAAY,CAAC,CAAC;IACtC,OAAO,CAAC,EAAe,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC;QACpC,OAAO,EAAE,cAAc;QACvB,MAAM,EAAE,UAAU;QAClB,QAAQ,EAAE,0BAA0B;QACpC,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;KACvF,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,190 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ /**
5
+ * An owned purchase minted from one edition of a Miso release.
6
+ *
7
+ * `Pressing` owns issuance. This module owns only the Record asset and its
8
+ * deterministic identity within that Pressing. Distribution mechanics such as
9
+ * pricing and payment validation live in authorized distributor packages.
10
+ */
11
+ import { MoveStruct, MoveTuple, type RawTransactionArgument } from '../utils/index.js';
12
+ import { type Transaction } from '@mysten/sui/transactions';
13
+ export declare const Record: MoveStruct<{
14
+ id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
15
+ /** The release this Record is a copy of. */
16
+ release_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
17
+ /** The edition-scoped Pressing that minted this Record. */
18
+ pressing_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
19
+ /** The edition represented by `pressing_id`. */
20
+ edition: import("@mysten/sui/bcs").BcsType<number, number, "u16">;
21
+ /** This Record's number within its edition. */
22
+ number: import("@mysten/sui/bcs").BcsType<number, number, "u32">;
23
+ /** The defining type of the currency used for this purchase. */
24
+ purchase_currency: MoveStruct<{
25
+ name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
26
+ }, "std::type_name::TypeName">;
27
+ /** The actual amount paid, including any accepted overpayment. */
28
+ purchase_price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
29
+ /** The transaction sender who purchased this Record. */
30
+ purchased_by: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
31
+ /** When this Record was purchased, in Unix milliseconds from Sui's Clock. */
32
+ purchased_timestamp_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
33
+ }, "@local-pkg/miso_record::record::Record">;
34
+ export declare const RecordKey: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<number, number, "u32">], "@local-pkg/miso_record::record::RecordKey">;
35
+ export declare const RecordCreatedEvent: MoveStruct<{
36
+ /** The newly created Record. */
37
+ record_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
38
+ /** The release represented by the Record. */
39
+ release_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
40
+ /** The Pressing that issued the Record. */
41
+ pressing_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
42
+ /** The edition represented by the Pressing. */
43
+ edition: import("@mysten/sui/bcs").BcsType<number, number, "u16">;
44
+ /** The Record's number within the edition. */
45
+ number: import("@mysten/sui/bcs").BcsType<number, number, "u32">;
46
+ }, "@local-pkg/miso_record::record::RecordCreatedEvent">;
47
+ export declare const RecordDestroyedEvent: MoveStruct<{
48
+ /** The destroyed Record. */
49
+ record_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
50
+ /** The Pressing that issued the Record. */
51
+ pressing_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
52
+ }, "@local-pkg/miso_record::record::RecordDestroyedEvent">;
53
+ export interface DestroyArguments {
54
+ self: RawTransactionArgument<string>;
55
+ }
56
+ export interface DestroyOptions {
57
+ package?: string;
58
+ arguments: DestroyArguments | [
59
+ self: RawTransactionArgument<string>
60
+ ];
61
+ }
62
+ /**
63
+ * Destroy a Record. Detach any dynamic-field extensions first or they become
64
+ * inaccessible.
65
+ */
66
+ export declare function destroy(options: DestroyOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
67
+ export interface UidArguments {
68
+ self: RawTransactionArgument<string>;
69
+ }
70
+ export interface UidOptions {
71
+ package?: string;
72
+ arguments: UidArguments | [
73
+ self: RawTransactionArgument<string>
74
+ ];
75
+ }
76
+ /** Borrow the Record UID for read-only extensions. */
77
+ export declare function uid(options: UidOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
78
+ export interface UidMutArguments {
79
+ self: RawTransactionArgument<string>;
80
+ }
81
+ export interface UidMutOptions {
82
+ package?: string;
83
+ arguments: UidMutArguments | [
84
+ self: RawTransactionArgument<string>
85
+ ];
86
+ }
87
+ /** Mutably borrow the Record UID for owner-authorized extensions. */
88
+ export declare function uidMut(options: UidMutOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
89
+ export interface ReleaseIdArguments {
90
+ self: RawTransactionArgument<string>;
91
+ }
92
+ export interface ReleaseIdOptions {
93
+ package?: string;
94
+ arguments: ReleaseIdArguments | [
95
+ self: RawTransactionArgument<string>
96
+ ];
97
+ }
98
+ /** Return the release represented by this Record. */
99
+ export declare function releaseId(options: ReleaseIdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
100
+ export interface PressingIdArguments {
101
+ self: RawTransactionArgument<string>;
102
+ }
103
+ export interface PressingIdOptions {
104
+ package?: string;
105
+ arguments: PressingIdArguments | [
106
+ self: RawTransactionArgument<string>
107
+ ];
108
+ }
109
+ /** Return the Pressing that issued this Record. */
110
+ export declare function pressingId(options: PressingIdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
111
+ export interface EditionArguments {
112
+ self: RawTransactionArgument<string>;
113
+ }
114
+ export interface EditionOptions {
115
+ package?: string;
116
+ arguments: EditionArguments | [
117
+ self: RawTransactionArgument<string>
118
+ ];
119
+ }
120
+ /** Return this Record's edition number. */
121
+ export declare function edition(options: EditionOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
122
+ export interface NumberArguments {
123
+ self: RawTransactionArgument<string>;
124
+ }
125
+ export interface NumberOptions {
126
+ package?: string;
127
+ arguments: NumberArguments | [
128
+ self: RawTransactionArgument<string>
129
+ ];
130
+ }
131
+ /** Return this Record's number within its edition. */
132
+ export declare function number(options: NumberOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
133
+ export interface PurchaseCurrencyArguments {
134
+ self: RawTransactionArgument<string>;
135
+ }
136
+ export interface PurchaseCurrencyOptions {
137
+ package?: string;
138
+ arguments: PurchaseCurrencyArguments | [
139
+ self: RawTransactionArgument<string>
140
+ ];
141
+ }
142
+ /** Return the defining type of the purchase currency. */
143
+ export declare function purchaseCurrency(options: PurchaseCurrencyOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
144
+ export interface PurchasePriceArguments {
145
+ self: RawTransactionArgument<string>;
146
+ }
147
+ export interface PurchasePriceOptions {
148
+ package?: string;
149
+ arguments: PurchasePriceArguments | [
150
+ self: RawTransactionArgument<string>
151
+ ];
152
+ }
153
+ /** Return the amount paid for this Record. */
154
+ export declare function purchasePrice(options: PurchasePriceOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
155
+ export interface PurchasedByArguments {
156
+ self: RawTransactionArgument<string>;
157
+ }
158
+ export interface PurchasedByOptions {
159
+ package?: string;
160
+ arguments: PurchasedByArguments | [
161
+ self: RawTransactionArgument<string>
162
+ ];
163
+ }
164
+ /** Return the transaction sender who purchased this Record. */
165
+ export declare function purchasedBy(options: PurchasedByOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
166
+ export interface PurchasedTimestampMsArguments {
167
+ self: RawTransactionArgument<string>;
168
+ }
169
+ export interface PurchasedTimestampMsOptions {
170
+ package?: string;
171
+ arguments: PurchasedTimestampMsArguments | [
172
+ self: RawTransactionArgument<string>
173
+ ];
174
+ }
175
+ /** Return the purchase time in Unix milliseconds from Sui's Clock. */
176
+ export declare function purchasedTimestampMs(options: PurchasedTimestampMsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
177
+ export interface DeriveAddressArguments {
178
+ pressingId: RawTransactionArgument<string>;
179
+ number: RawTransactionArgument<number>;
180
+ }
181
+ export interface DeriveAddressOptions {
182
+ package?: string;
183
+ arguments: DeriveAddressArguments | [
184
+ pressingId: RawTransactionArgument<string>,
185
+ number: RawTransactionArgument<number>
186
+ ];
187
+ }
188
+ /** Derive the Record address for `number` in `pressing_id`'s edition. */
189
+ export declare function deriveAddress(options: DeriveAddressOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
190
+ //# sourceMappingURL=record.d.ts.map
@@ -0,0 +1 @@
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