@misofm/sdk 0.1.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 (78) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +248 -0
  3. package/dist/catalog.d.ts +31 -0
  4. package/dist/catalog.d.ts.map +1 -0
  5. package/dist/catalog.js +45 -0
  6. package/dist/catalog.js.map +1 -0
  7. package/dist/client.d.ts +134 -0
  8. package/dist/client.d.ts.map +1 -0
  9. package/dist/client.js +113 -0
  10. package/dist/client.js.map +1 -0
  11. package/dist/contracts/miso_pressing/certificate.d.ts +78 -0
  12. package/dist/contracts/miso_pressing/certificate.d.ts.map +1 -0
  13. package/dist/contracts/miso_pressing/certificate.js +91 -0
  14. package/dist/contracts/miso_pressing/certificate.js.map +1 -0
  15. package/dist/contracts/miso_pressing/deps/std/type_name.d.ts +18 -0
  16. package/dist/contracts/miso_pressing/deps/std/type_name.d.ts.map +1 -0
  17. package/dist/contracts/miso_pressing/deps/std/type_name.js +20 -0
  18. package/dist/contracts/miso_pressing/deps/std/type_name.js.map +1 -0
  19. package/dist/contracts/miso_pressing/listing.d.ts +449 -0
  20. package/dist/contracts/miso_pressing/listing.d.ts.map +1 -0
  21. package/dist/contracts/miso_pressing/listing.js +416 -0
  22. package/dist/contracts/miso_pressing/listing.js.map +1 -0
  23. package/dist/contracts/miso_pressing/pressing.d.ts +365 -0
  24. package/dist/contracts/miso_pressing/pressing.d.ts.map +1 -0
  25. package/dist/contracts/miso_pressing/pressing.js +335 -0
  26. package/dist/contracts/miso_pressing/pressing.js.map +1 -0
  27. package/dist/contracts/utils/index.d.ts +31 -0
  28. package/dist/contracts/utils/index.d.ts.map +1 -0
  29. package/dist/contracts/utils/index.js +162 -0
  30. package/dist/contracts/utils/index.js.map +1 -0
  31. package/dist/execute.d.ts +17 -0
  32. package/dist/execute.d.ts.map +1 -0
  33. package/dist/execute.js +21 -0
  34. package/dist/execute.js.map +1 -0
  35. package/dist/index.d.ts +10 -0
  36. package/dist/index.d.ts.map +1 -0
  37. package/dist/index.js +27 -0
  38. package/dist/index.js.map +1 -0
  39. package/dist/pressing.d.ts +223 -0
  40. package/dist/pressing.d.ts.map +1 -0
  41. package/dist/pressing.js +280 -0
  42. package/dist/pressing.js.map +1 -0
  43. package/dist/queries.d.ts +2 -0
  44. package/dist/queries.d.ts.map +1 -0
  45. package/dist/queries.js +8 -0
  46. package/dist/queries.js.map +1 -0
  47. package/dist/release-graph.d.ts +93 -0
  48. package/dist/release-graph.d.ts.map +1 -0
  49. package/dist/release-graph.js +143 -0
  50. package/dist/release-graph.js.map +1 -0
  51. package/dist/share-template.d.ts +3 -0
  52. package/dist/share-template.d.ts.map +1 -0
  53. package/dist/share-template.js +46 -0
  54. package/dist/share-template.js.map +1 -0
  55. package/dist/share.d.ts +66 -0
  56. package/dist/share.d.ts.map +1 -0
  57. package/dist/share.js +156 -0
  58. package/dist/share.js.map +1 -0
  59. package/dist/transactions.d.ts +177 -0
  60. package/dist/transactions.d.ts.map +1 -0
  61. package/dist/transactions.js +237 -0
  62. package/dist/transactions.js.map +1 -0
  63. package/package.json +99 -0
  64. package/src/catalog.ts +77 -0
  65. package/src/client.ts +249 -0
  66. package/src/contracts/miso_pressing/certificate.ts +129 -0
  67. package/src/contracts/miso_pressing/deps/std/type_name.ts +22 -0
  68. package/src/contracts/miso_pressing/listing.ts +621 -0
  69. package/src/contracts/miso_pressing/pressing.ts +454 -0
  70. package/src/contracts/utils/index.ts +229 -0
  71. package/src/execute.ts +34 -0
  72. package/src/index.ts +29 -0
  73. package/src/pressing.ts +497 -0
  74. package/src/queries.ts +9 -0
  75. package/src/release-graph.ts +279 -0
  76. package/src/share-template.ts +55 -0
  77. package/src/share.ts +258 -0
  78. package/src/transactions.ts +440 -0
@@ -0,0 +1,449 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ /**
5
+ * One currency's offer on a pressing — a _Listing_.
6
+ *
7
+ * A listing answers exactly two questions: **what does it cost** and **can you pay
8
+ * in this currency**. Everything about _what you get_ — the run, the number —
9
+ * belongs to the `Pressing`. So a pressing sold in SUI and in USDC has two
10
+ * listings, each with its own price and switch, both drawing on the same number
11
+ * sequence.
12
+ *
13
+ * A listing's UID is derived off its pressing's UID at `ListingKey<Currency>()`,
14
+ * so there is exactly one listing per (pressing, currency) — ever — and its
15
+ * address is computable from the pressing's alone. The key is _phantom-typed_
16
+ * rather than a stored `TypeName`, which makes the currency part of the key's
17
+ * type: distinct currencies are distinct key types, so `derived_object::claim`
18
+ * enforces once-per-currency by itself and the pressing needs no set of currencies
19
+ * to check against. Listings are **permanent**: never destroyed, never replaced.
20
+ * The offer changes _in place_ — repriced, disabled, re-enabled — and the listing
21
+ * keeps its identity through every change.
22
+ *
23
+ * # Price
24
+ *
25
+ * `Fixed` (pay exactly) or `Floor` (pay at least; overpayment is kept as a tip,
26
+ * not refunded). The whole payment forwards to the release's address. Settable
27
+ * with the `PressingAdminCap` (`set_price`) — repricing is an edit, not a teardown
28
+ * — and a change cannot catch a buyer out: a `Fixed` buyer pays _exactly_, so a
29
+ * stale payment aborts against a new price, and a `Floor` buyer never pays more
30
+ * than the balance they sent.
31
+ *
32
+ * Payment is a `Balance<Currency>`, never a `Coin<Currency>`. A coin is a wrapper
33
+ * an object id, an owner, and a wrapping/unwrapping round trip — that this path
34
+ * has no use for: the money comes in from wherever the PTB got it (a withdrawal
35
+ * off the buyer's accumulator, a `coin::into_balance`, a split of some larger
36
+ * balance) and goes straight back out to the release's address via
37
+ * `balance::send_funds`. Taking the bare value means `buy` never mints an object
38
+ * just to destroy it, and never forces the caller to make one either.
39
+ *
40
+ * # Two switches
41
+ *
42
+ * A listing is `Enabled` or `Disabled`; a disabled listing takes no payment in its
43
+ * currency, while the pressing's other currencies carry on. Above it, the
44
+ * pressing's own `Scheduled → Active → Paused` governs every currency at once
45
+ * (`pressing::mint_next`). A sale needs both open.
46
+ *
47
+ * The **when** lives on the pressing, not here: a drop moment is a fact about the
48
+ * release going on sale, not about one payment rail, and a run that opened in SUI
49
+ * at Friday 8pm and in USDC at some other time would have two drop moments and one
50
+ * number sequence. So a listing carries no schedule — only whether its currency is
51
+ * taken.
52
+ *
53
+ * # The certificate
54
+ *
55
+ * What the buyer paid is not part of the record — it is a fact about the _sale_ —
56
+ * so it rides out on the record's `Certificate`, stamped by `pressing::mint_next`
57
+ * alongside the number. One field, written once, in the transaction that pressed
58
+ * the record. `RecordSoldEvent` also snapshots both the accepted `Price` and the
59
+ * amount paid, so an indexer can distinguish fixed sales from floor sales and
60
+ * compute tips without replaying listing state.
61
+ */
62
+ import { MoveTuple, MoveEnum, MoveStruct, type RawTransactionArgument } from '../utils/index.js';
63
+ import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
64
+ export declare const ListingKey: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">], "@local-pkg/miso_pressing::listing::ListingKey<phantom Currency>">;
65
+ /** Pricing policy for a listing. */
66
+ export declare const Price: MoveEnum<{
67
+ /** Pay exactly `amount`. */
68
+ Fixed: MoveStruct<{
69
+ amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
70
+ }, "Price.Fixed">;
71
+ /** Pay at least `amount`; overpayment is forwarded to the release, not refunded. */
72
+ Floor: MoveStruct<{
73
+ amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
74
+ }, "Price.Floor">;
75
+ }, "@local-pkg/miso_pressing::listing::Price">;
76
+ /** Whether this currency is accepted. Set at creation and by `set_state`. */
77
+ export declare const ListingState: MoveEnum<{
78
+ /** Accepting payment in this currency, if the pressing is also active. */
79
+ Enabled: null;
80
+ /** Not accepting payment in this currency. Other currencies are unaffected. */
81
+ Disabled: null;
82
+ }, "@local-pkg/miso_pressing::listing::ListingState">;
83
+ export declare const Listing: MoveStruct<{
84
+ id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
85
+ /** The release whose address collects the proceeds. */
86
+ release_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
87
+ /** The pressing these records come out of. */
88
+ pressing_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
89
+ /** What a buyer must pay per record. */
90
+ price: MoveEnum<{
91
+ /** Pay exactly `amount`. */
92
+ Fixed: MoveStruct<{
93
+ amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
94
+ }, "Price.Fixed">;
95
+ /** Pay at least `amount`; overpayment is forwarded to the release, not refunded. */
96
+ Floor: MoveStruct<{
97
+ amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
98
+ }, "Price.Floor">;
99
+ }, "@local-pkg/miso_pressing::listing::Price">;
100
+ /** Whether this currency is accepted right now. */
101
+ state: MoveEnum<{
102
+ /** Accepting payment in this currency, if the pressing is also active. */
103
+ Enabled: null;
104
+ /** Not accepting payment in this currency. Other currencies are unaffected. */
105
+ Disabled: null;
106
+ }, "@local-pkg/miso_pressing::listing::ListingState">;
107
+ }, "@local-pkg/miso_pressing::listing::Listing<phantom Currency>">;
108
+ export declare const ListingOpenedEvent: MoveStruct<{
109
+ listing_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
110
+ pressing_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
111
+ release_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
112
+ price: MoveEnum<{
113
+ /** Pay exactly `amount`. */
114
+ Fixed: MoveStruct<{
115
+ amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
116
+ }, "Price.Fixed">;
117
+ /** Pay at least `amount`; overpayment is forwarded to the release, not refunded. */
118
+ Floor: MoveStruct<{
119
+ amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
120
+ }, "Price.Floor">;
121
+ }, "@local-pkg/miso_pressing::listing::Price">;
122
+ state: MoveEnum<{
123
+ /** Accepting payment in this currency, if the pressing is also active. */
124
+ Enabled: null;
125
+ /** Not accepting payment in this currency. Other currencies are unaffected. */
126
+ Disabled: null;
127
+ }, "@local-pkg/miso_pressing::listing::ListingState">;
128
+ }, "@local-pkg/miso_pressing::listing::ListingOpenedEvent<phantom Currency>">;
129
+ export declare const RecordSoldEvent: MoveStruct<{
130
+ listing_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
131
+ pressing_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
132
+ release_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
133
+ record_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
134
+ number: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
135
+ /**
136
+ * The offer accepted by this sale. Together with `paid`, this distinguishes a
137
+ * fixed-price sale from a floor-price sale and makes any tip directly computable.
138
+ */
139
+ price: MoveEnum<{
140
+ /** Pay exactly `amount`. */
141
+ Fixed: MoveStruct<{
142
+ amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
143
+ }, "Price.Fixed">;
144
+ /** Pay at least `amount`; overpayment is forwarded to the release, not refunded. */
145
+ Floor: MoveStruct<{
146
+ amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
147
+ }, "Price.Floor">;
148
+ }, "@local-pkg/miso_pressing::listing::Price">;
149
+ paid: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
150
+ buyer: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
151
+ }, "@local-pkg/miso_pressing::listing::RecordSoldEvent<phantom Currency>">;
152
+ export declare const ListingStateChangedEvent: MoveStruct<{
153
+ listing_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
154
+ pressing_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
155
+ state: MoveEnum<{
156
+ /** Accepting payment in this currency, if the pressing is also active. */
157
+ Enabled: null;
158
+ /** Not accepting payment in this currency. Other currencies are unaffected. */
159
+ Disabled: null;
160
+ }, "@local-pkg/miso_pressing::listing::ListingState">;
161
+ }, "@local-pkg/miso_pressing::listing::ListingStateChangedEvent<phantom Currency>">;
162
+ export declare const ListingPriceChangedEvent: MoveStruct<{
163
+ listing_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
164
+ pressing_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
165
+ price: MoveEnum<{
166
+ /** Pay exactly `amount`. */
167
+ Fixed: MoveStruct<{
168
+ amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
169
+ }, "Price.Fixed">;
170
+ /** Pay at least `amount`; overpayment is forwarded to the release, not refunded. */
171
+ Floor: MoveStruct<{
172
+ amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
173
+ }, "Price.Floor">;
174
+ }, "@local-pkg/miso_pressing::listing::Price">;
175
+ }, "@local-pkg/miso_pressing::listing::ListingPriceChangedEvent<phantom Currency>">;
176
+ export interface NewFixedPriceArguments {
177
+ amount: RawTransactionArgument<number | bigint>;
178
+ }
179
+ export interface NewFixedPriceOptions {
180
+ package?: string;
181
+ arguments: NewFixedPriceArguments | [
182
+ amount: RawTransactionArgument<number | bigint>
183
+ ];
184
+ }
185
+ /** A fixed price: a buyer must pay exactly `amount`. */
186
+ export declare function newFixedPrice(options: NewFixedPriceOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
187
+ export interface NewFloorPriceArguments {
188
+ amount: RawTransactionArgument<number | bigint>;
189
+ }
190
+ export interface NewFloorPriceOptions {
191
+ package?: string;
192
+ arguments: NewFloorPriceArguments | [
193
+ amount: RawTransactionArgument<number | bigint>
194
+ ];
195
+ }
196
+ /** A floor price: a buyer must pay at least `amount`; overpayment is kept. */
197
+ export declare function newFloorPrice(options: NewFloorPriceOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
198
+ export interface NewEnabledStateOptions {
199
+ package?: string;
200
+ arguments?: [
201
+ ];
202
+ }
203
+ /** The enabled state: this currency is accepted. */
204
+ export declare function newEnabledState(options?: NewEnabledStateOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
205
+ export interface NewDisabledStateOptions {
206
+ package?: string;
207
+ arguments?: [
208
+ ];
209
+ }
210
+ /** The disabled state: this currency is not accepted. */
211
+ export declare function newDisabledState(options?: NewDisabledStateOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
212
+ export interface NewArguments {
213
+ pressing: RawTransactionArgument<string>;
214
+ cap: RawTransactionArgument<string>;
215
+ price: TransactionArgument;
216
+ state: TransactionArgument;
217
+ }
218
+ export interface NewOptions {
219
+ package?: string;
220
+ arguments: NewArguments | [
221
+ pressing: RawTransactionArgument<string>,
222
+ cap: RawTransactionArgument<string>,
223
+ price: TransactionArgument,
224
+ state: TransactionArgument
225
+ ];
226
+ typeArguments: [
227
+ string
228
+ ];
229
+ }
230
+ /**
231
+ * List the pressing for sale in `Currency` at the given price and state, and share
232
+ * it.
233
+ *
234
+ * Exactly one listing per (pressing, currency), ever: the slot is a derived-object
235
+ * claim on the pressing at `ListingKey<Currency>()`, and listings are never
236
+ * destroyed — so a second call for the same currency aborts in the claim. Every
237
+ * later change to this currency's offer is an edit to this object, not a
238
+ * replacement of it.
239
+ */
240
+ export declare function _new(options: NewOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
241
+ export interface BuyArguments {
242
+ self: RawTransactionArgument<string>;
243
+ pressing: RawTransactionArgument<string>;
244
+ payment: TransactionArgument;
245
+ settings: RawTransactionArgument<string>;
246
+ }
247
+ export interface BuyOptions {
248
+ package?: string;
249
+ arguments: BuyArguments | [
250
+ self: RawTransactionArgument<string>,
251
+ pressing: RawTransactionArgument<string>,
252
+ payment: TransactionArgument,
253
+ settings: RawTransactionArgument<string>
254
+ ];
255
+ typeArguments: [
256
+ string
257
+ ];
258
+ }
259
+ /**
260
+ * Buy one record: pay this listing's price, take the next number out of the
261
+ * pressing.
262
+ *
263
+ * `payment` is a bare `Balance<Currency>` and must satisfy the price (exactly, for
264
+ * `Fixed`; at least, for `Floor`). The ENTIRE payment forwards to the release's
265
+ * address — under `Floor`, anything above the floor is kept as a tip, not
266
+ * refunded. The record's number is the pressing's next 1-based value, shared with
267
+ * every other currency selling the same run, and its UID is derived off the
268
+ * pressing. The sale's terms ride out on the record's `Certificate`. `settings`
269
+ * must authorize this package's `MintWitness`.
270
+ *
271
+ * Both switches must be open: this listing `Enabled`, checked here, and the run
272
+ * selling at this moment, checked in `pressing::mint_next`.
273
+ */
274
+ export declare function buy(options: BuyOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
275
+ export interface SetStateArguments {
276
+ self: RawTransactionArgument<string>;
277
+ cap: RawTransactionArgument<string>;
278
+ state: TransactionArgument;
279
+ }
280
+ export interface SetStateOptions {
281
+ package?: string;
282
+ arguments: SetStateArguments | [
283
+ self: RawTransactionArgument<string>,
284
+ cap: RawTransactionArgument<string>,
285
+ state: TransactionArgument
286
+ ];
287
+ typeArguments: [
288
+ string
289
+ ];
290
+ }
291
+ /**
292
+ * Enable or disable this currency. Leaves every other currency untouched; to stop
293
+ * the whole run at once, pause the pressing (`pressing::set_state`).
294
+ */
295
+ export declare function setState(options: SetStateOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
296
+ export interface SetPriceArguments {
297
+ self: RawTransactionArgument<string>;
298
+ cap: RawTransactionArgument<string>;
299
+ price: TransactionArgument;
300
+ }
301
+ export interface SetPriceOptions {
302
+ package?: string;
303
+ arguments: SetPriceArguments | [
304
+ self: RawTransactionArgument<string>,
305
+ cap: RawTransactionArgument<string>,
306
+ price: TransactionArgument
307
+ ];
308
+ typeArguments: [
309
+ string
310
+ ];
311
+ }
312
+ /**
313
+ * Reprice the listing in place. Safe against in-flight buys by construction: a
314
+ * `Fixed` buyer pays exactly, so a stale payment aborts against the new price, and
315
+ * a `Floor` buyer never pays more than the coin they sent.
316
+ */
317
+ export declare function setPrice(options: SetPriceOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
318
+ export interface DeriveIdArguments {
319
+ pressingId: RawTransactionArgument<string>;
320
+ }
321
+ export interface DeriveIdOptions {
322
+ package?: string;
323
+ arguments: DeriveIdArguments | [
324
+ pressingId: RawTransactionArgument<string>
325
+ ];
326
+ typeArguments: [
327
+ string
328
+ ];
329
+ }
330
+ /**
331
+ * The address `Currency`'s listing on `pressing_id` occupies — pure address math,
332
+ * computable before the listing exists.
333
+ */
334
+ export declare function deriveId(options: DeriveIdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
335
+ export interface HasListingArguments {
336
+ pressing: RawTransactionArgument<string>;
337
+ }
338
+ export interface HasListingOptions {
339
+ package?: string;
340
+ arguments: HasListingArguments | [
341
+ pressing: RawTransactionArgument<string>
342
+ ];
343
+ typeArguments: [
344
+ string
345
+ ];
346
+ }
347
+ /**
348
+ * Whether `pressing` has a listing in `Currency` yet. Reads the derived slot
349
+ * directly, so the pressing stores no set of currencies; to enumerate every
350
+ * listing, index `ListingOpenedEvent<Currency>`.
351
+ */
352
+ export declare function hasListing(options: HasListingOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
353
+ export interface IdArguments {
354
+ self: RawTransactionArgument<string>;
355
+ }
356
+ export interface IdOptions {
357
+ package?: string;
358
+ arguments: IdArguments | [
359
+ self: RawTransactionArgument<string>
360
+ ];
361
+ typeArguments: [
362
+ string
363
+ ];
364
+ }
365
+ export declare function id(options: IdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
366
+ export interface ReleaseIdArguments {
367
+ self: RawTransactionArgument<string>;
368
+ }
369
+ export interface ReleaseIdOptions {
370
+ package?: string;
371
+ arguments: ReleaseIdArguments | [
372
+ self: RawTransactionArgument<string>
373
+ ];
374
+ typeArguments: [
375
+ string
376
+ ];
377
+ }
378
+ export declare function releaseId(options: ReleaseIdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
379
+ export interface PressingIdArguments {
380
+ self: RawTransactionArgument<string>;
381
+ }
382
+ export interface PressingIdOptions {
383
+ package?: string;
384
+ arguments: PressingIdArguments | [
385
+ self: RawTransactionArgument<string>
386
+ ];
387
+ typeArguments: [
388
+ string
389
+ ];
390
+ }
391
+ export declare function pressingId(options: PressingIdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
392
+ export interface PriceArguments {
393
+ self: RawTransactionArgument<string>;
394
+ }
395
+ export interface PriceOptions {
396
+ package?: string;
397
+ arguments: PriceArguments | [
398
+ self: RawTransactionArgument<string>
399
+ ];
400
+ typeArguments: [
401
+ string
402
+ ];
403
+ }
404
+ export declare function price(options: PriceOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
405
+ export interface StateArguments {
406
+ self: RawTransactionArgument<string>;
407
+ }
408
+ export interface StateOptions {
409
+ package?: string;
410
+ arguments: StateArguments | [
411
+ self: RawTransactionArgument<string>
412
+ ];
413
+ typeArguments: [
414
+ string
415
+ ];
416
+ }
417
+ export declare function state(options: StateOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
418
+ export interface IsLiveArguments {
419
+ self: RawTransactionArgument<string>;
420
+ pressing: RawTransactionArgument<string>;
421
+ }
422
+ export interface IsLiveOptions {
423
+ package?: string;
424
+ arguments: IsLiveArguments | [
425
+ self: RawTransactionArgument<string>,
426
+ pressing: RawTransactionArgument<string>
427
+ ];
428
+ typeArguments: [
429
+ string
430
+ ];
431
+ }
432
+ /**
433
+ * Whether `buy` would be accepted right now: the right pressing, this currency
434
+ * enabled, and the run selling at this moment (open, and past its drop time if it
435
+ * has one).
436
+ */
437
+ export declare function isLive(options: IsLiveOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
438
+ export interface AmountArguments {
439
+ self: TransactionArgument;
440
+ }
441
+ export interface AmountOptions {
442
+ package?: string;
443
+ arguments: AmountArguments | [
444
+ self: TransactionArgument
445
+ ];
446
+ }
447
+ /** The price amount (the fixed price, or the floor). */
448
+ export declare function amount(options: AmountOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
449
+ //# sourceMappingURL=listing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listing.d.ts","sourceRoot":"","sources":["../../../src/contracts/miso_pressing/listing.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAA0B,KAAK,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEzH,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEtF,eAAO,MAAM,UAAU,sJAAgG,CAAC;AACxH,oCAAoC;AACpC,eAAO,MAAM,KAAK;IACV,4BAA4B;;;;IAI5B,oFAAoF;;;;8CAIpF,CAAC;AACT,6EAA6E;AAC7E,eAAO,MAAM,YAAY;IACjB,0EAA0E;;IAE1E,+EAA+E;;qDAE/E,CAAC;AACT,eAAO,MAAM,OAAO;;IAEZ,uDAAuD;;IAEvD,8CAA8C;;IAE9C,wCAAwC;;QAtBxC,4BAA4B;;;;QAI5B,oFAAoF;;;;;IAoBpF,mDAAmD;;QAbnD,0EAA0E;;QAE1E,+EAA+E;;;kEAa/E,CAAC;AACT,eAAO,MAAM,kBAAkB;;;;;QA3BvB,4BAA4B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