@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
|
@@ -1,550 +0,0 @@
|
|
|
1
|
-
/**************************************************************
|
|
2
|
-
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
-
**************************************************************/
|
|
4
|
-
/**
|
|
5
|
-
* A primary record sale — a _Drop_.
|
|
6
|
-
*
|
|
7
|
-
* A `Drop` is a shared object that mints and sells numbered `Record` copies of a
|
|
8
|
-
* release, forwarding each payment to the release's address. Each purchase mints a
|
|
9
|
-
* `Record` whose UID is _derived_ off the `Drop`'s own UID (keyed by the 1-based
|
|
10
|
-
* serial number it was sold at), so every copy is deterministically addressable
|
|
11
|
-
* from its drop and can be minted at most once.
|
|
12
|
-
*
|
|
13
|
-
* # Scarcity is the artist's choice
|
|
14
|
-
*
|
|
15
|
-
* A drop's terms are three enums, each fixed at creation:
|
|
16
|
-
*
|
|
17
|
-
* - `Price` — `Fixed` (pay exactly) or `Floor` (pay at least; overpayment kept);
|
|
18
|
-
* - `Supply` — `Uncapped`, or `Capped { max }` ("1000 records only");
|
|
19
|
-
* - `Window` — `Unbounded { start }`, or `Bounded { start, end }` ("two weeks
|
|
20
|
-
* only").
|
|
21
|
-
*
|
|
22
|
-
* Scarcity is a per-edition decision by the artist, not a protocol stance — and it
|
|
23
|
-
* is never a dead end: fans who miss a drop can always be answered with a new
|
|
24
|
-
* edition. What a drop never has is an access gate: no allowlists, auctions, or
|
|
25
|
-
* raffles — while a drop is live, anyone may buy.
|
|
26
|
-
*
|
|
27
|
-
* # Editions — one live drop per release
|
|
28
|
-
*
|
|
29
|
-
* A release sells through at most ONE drop at a time. `new` opens edition `0`;
|
|
30
|
-
* `new_edition` opens edition `n + 1` by CONSUMING edition `n` — the predecessor
|
|
31
|
-
* shared object is destroyed, so two editions can never sell side by side, and the
|
|
32
|
-
* edition sequence is gap-free by construction (you must hold edition `n` to open
|
|
33
|
-
* `n + 1`). Because a drop is immutable once created, `new_edition` is also the
|
|
34
|
-
* only way to change anything: a new price, a new currency, a fresh run after a
|
|
35
|
-
* sell-out or a closed window — each is simply the next edition.
|
|
36
|
-
*
|
|
37
|
-
* The RELEASE is the parent: drop UIDs are _derived_ off the release's UID (via
|
|
38
|
-
* its cap-gated `uid_mut` extension surface), keyed by `DropKey(edition)`. Every
|
|
39
|
-
* edition's address is therefore computable from the release id alone — and since
|
|
40
|
-
* claim markers outlive the objects they name, a destroyed edition's key can never
|
|
41
|
-
* be claimed again. The release's UID also carries a `CurrentDropKey → ID` dynamic
|
|
42
|
-
* field pointing at the live drop (superseded drops are deleted, so the pointer —
|
|
43
|
-
* not address probing — is how clients find the current edition).
|
|
44
|
-
*
|
|
45
|
-
* # Records
|
|
46
|
-
*
|
|
47
|
-
* Serial numbers restart at 1 each edition: a record is "edition `e`, number `n`
|
|
48
|
-
* (of `max`)", and it stamps the `Currency` and the exact amount paid. A record
|
|
49
|
-
* from a destroyed edition remains verifiable — `record::is_derived_from` is pure
|
|
50
|
-
* address math and does not need the drop object alive.
|
|
51
|
-
*
|
|
52
|
-
* # Authority
|
|
53
|
-
*
|
|
54
|
-
* Opening edition 0 needs the release's `ReleaseAdminCap` (enforced by the
|
|
55
|
-
* protocol's `release::uid_mut`); opening edition `n + 1` needs the cap AND the
|
|
56
|
-
* predecessor drop. Minting is authorized separately: this package presents its
|
|
57
|
-
* `MintWitness`, whose type must be on `miso_record`'s `Settings` allowlist. A
|
|
58
|
-
* different shop with different mechanics is just another package with its own
|
|
59
|
-
* witness — same `Record`, no `miso_record` redeploy.
|
|
60
|
-
*/
|
|
61
|
-
import { MoveTuple, MoveStruct, MoveEnum, type RawTransactionArgument } from '../utils/index.js';
|
|
62
|
-
import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
|
|
63
|
-
export declare const DropKey: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<number, number, "u32">], "@local-pkg/miso_drop::drop::DropKey">;
|
|
64
|
-
export declare const CurrentDropKey: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">], "@local-pkg/miso_drop::drop::CurrentDropKey">;
|
|
65
|
-
export declare const MintWitness: MoveStruct<{
|
|
66
|
-
dummy_field: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
67
|
-
}, "@local-pkg/miso_drop::drop::MintWitness">;
|
|
68
|
-
/** Pricing policy for a drop. */
|
|
69
|
-
export declare const Price: MoveEnum<{
|
|
70
|
-
/** Pay exactly `amount`. */
|
|
71
|
-
Fixed: MoveStruct<{
|
|
72
|
-
amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
73
|
-
}, "Price.Fixed">;
|
|
74
|
-
/** Pay at least `amount`; overpayment is forwarded to the release, not refunded. */
|
|
75
|
-
Floor: MoveStruct<{
|
|
76
|
-
amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
77
|
-
}, "Price.Floor">;
|
|
78
|
-
}, "@local-pkg/miso_drop::drop::Price">;
|
|
79
|
-
/** Supply policy for a drop. */
|
|
80
|
-
export declare const Supply: MoveEnum<{
|
|
81
|
-
/** No quantity limit — the edition never sells out. */
|
|
82
|
-
Uncapped: null;
|
|
83
|
-
/** Sells out after `max` records. */
|
|
84
|
-
Capped: MoveStruct<{
|
|
85
|
-
max: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
86
|
-
}, "Supply.Capped">;
|
|
87
|
-
}, "@local-pkg/miso_drop::drop::Supply">;
|
|
88
|
-
/** When a drop sells. `buy` rejects purchases outside the window. */
|
|
89
|
-
export declare const Window: MoveEnum<{
|
|
90
|
-
/**
|
|
91
|
-
* Opens at `start_timestamp_ms` (Unix ms; may be in the future — a scheduled drop)
|
|
92
|
-
* and never closes.
|
|
93
|
-
*/
|
|
94
|
-
Unbounded: MoveStruct<{
|
|
95
|
-
start_timestamp_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
96
|
-
}, "Window.Unbounded">;
|
|
97
|
-
/** Sells only within `[start_timestamp_ms, end_timestamp_ms]` (Unix ms). */
|
|
98
|
-
Bounded: MoveStruct<{
|
|
99
|
-
start_timestamp_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
100
|
-
end_timestamp_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
101
|
-
}, "Window.Bounded">;
|
|
102
|
-
}, "@local-pkg/miso_drop::drop::Window">;
|
|
103
|
-
export declare const Drop: MoveStruct<{
|
|
104
|
-
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
105
|
-
/** The release these records are copies of. */
|
|
106
|
-
release_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
107
|
-
/** Which edition of the release this is (0 = first drop). */
|
|
108
|
-
edition: import("@mysten/sui/bcs").BcsType<number, number, "u32">;
|
|
109
|
-
/** How much a buyer must pay per record. */
|
|
110
|
-
price: MoveEnum<{
|
|
111
|
-
/** Pay exactly `amount`. */
|
|
112
|
-
Fixed: MoveStruct<{
|
|
113
|
-
amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
114
|
-
}, "Price.Fixed">;
|
|
115
|
-
/** Pay at least `amount`; overpayment is forwarded to the release, not refunded. */
|
|
116
|
-
Floor: MoveStruct<{
|
|
117
|
-
amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
118
|
-
}, "Price.Floor">;
|
|
119
|
-
}, "@local-pkg/miso_drop::drop::Price">;
|
|
120
|
-
/** How many records this edition may ever sell. */
|
|
121
|
-
supply: MoveEnum<{
|
|
122
|
-
/** No quantity limit — the edition never sells out. */
|
|
123
|
-
Uncapped: null;
|
|
124
|
-
/** Sells out after `max` records. */
|
|
125
|
-
Capped: MoveStruct<{
|
|
126
|
-
max: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
127
|
-
}, "Supply.Capped">;
|
|
128
|
-
}, "@local-pkg/miso_drop::drop::Supply">;
|
|
129
|
-
/** Records sold so far; also the most recently sold record's number. */
|
|
130
|
-
quantity_sold: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
131
|
-
/** When this edition sells. */
|
|
132
|
-
window: MoveEnum<{
|
|
133
|
-
/**
|
|
134
|
-
* Opens at `start_timestamp_ms` (Unix ms; may be in the future — a scheduled drop)
|
|
135
|
-
* and never closes.
|
|
136
|
-
*/
|
|
137
|
-
Unbounded: MoveStruct<{
|
|
138
|
-
start_timestamp_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
139
|
-
}, "Window.Unbounded">;
|
|
140
|
-
/** Sells only within `[start_timestamp_ms, end_timestamp_ms]` (Unix ms). */
|
|
141
|
-
Bounded: MoveStruct<{
|
|
142
|
-
start_timestamp_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
143
|
-
end_timestamp_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
144
|
-
}, "Window.Bounded">;
|
|
145
|
-
}, "@local-pkg/miso_drop::drop::Window">;
|
|
146
|
-
}, "@local-pkg/miso_drop::drop::Drop<phantom Currency>">;
|
|
147
|
-
export declare const DropCreatedEvent: MoveStruct<{
|
|
148
|
-
drop_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
149
|
-
release_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
150
|
-
edition: import("@mysten/sui/bcs").BcsType<number, number, "u32">;
|
|
151
|
-
price: MoveEnum<{
|
|
152
|
-
/** Pay exactly `amount`. */
|
|
153
|
-
Fixed: MoveStruct<{
|
|
154
|
-
amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
155
|
-
}, "Price.Fixed">;
|
|
156
|
-
/** Pay at least `amount`; overpayment is forwarded to the release, not refunded. */
|
|
157
|
-
Floor: MoveStruct<{
|
|
158
|
-
amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
159
|
-
}, "Price.Floor">;
|
|
160
|
-
}, "@local-pkg/miso_drop::drop::Price">;
|
|
161
|
-
supply: MoveEnum<{
|
|
162
|
-
/** No quantity limit — the edition never sells out. */
|
|
163
|
-
Uncapped: null;
|
|
164
|
-
/** Sells out after `max` records. */
|
|
165
|
-
Capped: MoveStruct<{
|
|
166
|
-
max: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
167
|
-
}, "Supply.Capped">;
|
|
168
|
-
}, "@local-pkg/miso_drop::drop::Supply">;
|
|
169
|
-
window: MoveEnum<{
|
|
170
|
-
/**
|
|
171
|
-
* Opens at `start_timestamp_ms` (Unix ms; may be in the future — a scheduled drop)
|
|
172
|
-
* and never closes.
|
|
173
|
-
*/
|
|
174
|
-
Unbounded: MoveStruct<{
|
|
175
|
-
start_timestamp_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
176
|
-
}, "Window.Unbounded">;
|
|
177
|
-
/** Sells only within `[start_timestamp_ms, end_timestamp_ms]` (Unix ms). */
|
|
178
|
-
Bounded: MoveStruct<{
|
|
179
|
-
start_timestamp_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
180
|
-
end_timestamp_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
181
|
-
}, "Window.Bounded">;
|
|
182
|
-
}, "@local-pkg/miso_drop::drop::Window">;
|
|
183
|
-
}, "@local-pkg/miso_drop::drop::DropCreatedEvent<phantom Currency>">;
|
|
184
|
-
export declare const RecordSoldEvent: MoveStruct<{
|
|
185
|
-
drop_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
186
|
-
release_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
187
|
-
edition: import("@mysten/sui/bcs").BcsType<number, number, "u32">;
|
|
188
|
-
record_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
189
|
-
number: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
190
|
-
paid: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
191
|
-
buyer: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
192
|
-
}, "@local-pkg/miso_drop::drop::RecordSoldEvent<phantom Currency>">;
|
|
193
|
-
export interface NewFixedPriceArguments {
|
|
194
|
-
amount: RawTransactionArgument<number | bigint>;
|
|
195
|
-
}
|
|
196
|
-
export interface NewFixedPriceOptions {
|
|
197
|
-
package?: string;
|
|
198
|
-
arguments: NewFixedPriceArguments | [
|
|
199
|
-
amount: RawTransactionArgument<number | bigint>
|
|
200
|
-
];
|
|
201
|
-
}
|
|
202
|
-
/** A fixed price: a buyer must pay exactly `amount`. */
|
|
203
|
-
export declare function newFixedPrice(options: NewFixedPriceOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
204
|
-
export interface NewFloorPriceArguments {
|
|
205
|
-
amount: RawTransactionArgument<number | bigint>;
|
|
206
|
-
}
|
|
207
|
-
export interface NewFloorPriceOptions {
|
|
208
|
-
package?: string;
|
|
209
|
-
arguments: NewFloorPriceArguments | [
|
|
210
|
-
amount: RawTransactionArgument<number | bigint>
|
|
211
|
-
];
|
|
212
|
-
}
|
|
213
|
-
/** A floor price: a buyer must pay at least `amount`; overpayment is kept. */
|
|
214
|
-
export declare function newFloorPrice(options: NewFloorPriceOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
215
|
-
export interface NewUncappedSupplyOptions {
|
|
216
|
-
package?: string;
|
|
217
|
-
arguments?: [
|
|
218
|
-
];
|
|
219
|
-
}
|
|
220
|
-
/** An uncapped supply: the edition never sells out. */
|
|
221
|
-
export declare function newUncappedSupply(options?: NewUncappedSupplyOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
222
|
-
export interface NewCappedSupplyArguments {
|
|
223
|
-
max: RawTransactionArgument<number | bigint>;
|
|
224
|
-
}
|
|
225
|
-
export interface NewCappedSupplyOptions {
|
|
226
|
-
package?: string;
|
|
227
|
-
arguments: NewCappedSupplyArguments | [
|
|
228
|
-
max: RawTransactionArgument<number | bigint>
|
|
229
|
-
];
|
|
230
|
-
}
|
|
231
|
-
/**
|
|
232
|
-
* A capped supply: the edition sells out after `max` records. `max` must be at
|
|
233
|
-
* least 1.
|
|
234
|
-
*/
|
|
235
|
-
export declare function newCappedSupply(options: NewCappedSupplyOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
236
|
-
export interface NewUnboundedWindowArguments {
|
|
237
|
-
startTimestampMs: RawTransactionArgument<number | bigint>;
|
|
238
|
-
}
|
|
239
|
-
export interface NewUnboundedWindowOptions {
|
|
240
|
-
package?: string;
|
|
241
|
-
arguments: NewUnboundedWindowArguments | [
|
|
242
|
-
startTimestampMs: RawTransactionArgument<number | bigint>
|
|
243
|
-
];
|
|
244
|
-
}
|
|
245
|
-
/**
|
|
246
|
-
* A window that opens at `start_timestamp_ms` (may be in the future) and never
|
|
247
|
-
* closes.
|
|
248
|
-
*/
|
|
249
|
-
export declare function newUnboundedWindow(options: NewUnboundedWindowOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
250
|
-
export interface NewBoundedWindowArguments {
|
|
251
|
-
startTimestampMs: RawTransactionArgument<number | bigint>;
|
|
252
|
-
endTimestampMs: RawTransactionArgument<number | bigint>;
|
|
253
|
-
}
|
|
254
|
-
export interface NewBoundedWindowOptions {
|
|
255
|
-
package?: string;
|
|
256
|
-
arguments: NewBoundedWindowArguments | [
|
|
257
|
-
startTimestampMs: RawTransactionArgument<number | bigint>,
|
|
258
|
-
endTimestampMs: RawTransactionArgument<number | bigint>
|
|
259
|
-
];
|
|
260
|
-
}
|
|
261
|
-
/**
|
|
262
|
-
* A window selling only within `[start_timestamp_ms, end_timestamp_ms]`. The close
|
|
263
|
-
* must be strictly after the open.
|
|
264
|
-
*/
|
|
265
|
-
export declare function newBoundedWindow(options: NewBoundedWindowOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
266
|
-
export interface NewArguments {
|
|
267
|
-
release: RawTransactionArgument<string>;
|
|
268
|
-
cap: RawTransactionArgument<string>;
|
|
269
|
-
price: TransactionArgument;
|
|
270
|
-
supply: TransactionArgument;
|
|
271
|
-
window: TransactionArgument;
|
|
272
|
-
}
|
|
273
|
-
export interface NewOptions {
|
|
274
|
-
package?: string;
|
|
275
|
-
arguments: NewArguments | [
|
|
276
|
-
release: RawTransactionArgument<string>,
|
|
277
|
-
cap: RawTransactionArgument<string>,
|
|
278
|
-
price: TransactionArgument,
|
|
279
|
-
supply: TransactionArgument,
|
|
280
|
-
window: TransactionArgument
|
|
281
|
-
];
|
|
282
|
-
typeArguments: [
|
|
283
|
-
string
|
|
284
|
-
];
|
|
285
|
-
}
|
|
286
|
-
/**
|
|
287
|
-
* Create and share a release's FIRST drop — edition `0` — selling copies on the
|
|
288
|
-
* given `price` / `supply` / `window` terms. Authorized by the release's admin cap
|
|
289
|
-
* (enforced by `release::uid_mut`). The drop is immutable once created; every
|
|
290
|
-
* later change (price, currency, a fresh run) is `new_edition`.
|
|
291
|
-
*
|
|
292
|
-
* Edition 0's key can only ever be claimed once, so a release's edition sequence
|
|
293
|
-
* can only ever start here — calling `new` twice for the same release aborts.
|
|
294
|
-
*
|
|
295
|
-
* Term validity is enforced at construction (`new_capped_supply`,
|
|
296
|
-
* `new_bounded_window`); the one check left here is temporal — a bounded window
|
|
297
|
-
* must not already be elapsed against the `Clock`.
|
|
298
|
-
*/
|
|
299
|
-
export declare function _new(options: NewOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
300
|
-
export interface NewEditionArguments {
|
|
301
|
-
release: RawTransactionArgument<string>;
|
|
302
|
-
old: RawTransactionArgument<string>;
|
|
303
|
-
cap: RawTransactionArgument<string>;
|
|
304
|
-
price: TransactionArgument;
|
|
305
|
-
supply: TransactionArgument;
|
|
306
|
-
window: TransactionArgument;
|
|
307
|
-
}
|
|
308
|
-
export interface NewEditionOptions {
|
|
309
|
-
package?: string;
|
|
310
|
-
arguments: NewEditionArguments | [
|
|
311
|
-
release: RawTransactionArgument<string>,
|
|
312
|
-
old: RawTransactionArgument<string>,
|
|
313
|
-
cap: RawTransactionArgument<string>,
|
|
314
|
-
price: TransactionArgument,
|
|
315
|
-
supply: TransactionArgument,
|
|
316
|
-
window: TransactionArgument
|
|
317
|
-
];
|
|
318
|
-
typeArguments: [
|
|
319
|
-
string,
|
|
320
|
-
string
|
|
321
|
-
];
|
|
322
|
-
}
|
|
323
|
-
/**
|
|
324
|
-
* Open the NEXT edition of a release's drop, CONSUMING the current one. The
|
|
325
|
-
* predecessor shared object is destroyed — so at most one drop per release is ever
|
|
326
|
-
* live, and this is the one way to change terms: a new price, a new `Currency`, a
|
|
327
|
-
* new supply or window. It may be called while the predecessor is still selling (a
|
|
328
|
-
* cutover) or after it sold out / closed (a fresh run for fans who missed it).
|
|
329
|
-
*
|
|
330
|
-
* Records already sold by the predecessor are untouched and remain verifiable
|
|
331
|
-
* against its (now deleted) id. Serial numbers restart at 1 for the new edition.
|
|
332
|
-
*/
|
|
333
|
-
export declare function newEdition(options: NewEditionOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
334
|
-
export interface BuyArguments {
|
|
335
|
-
self: RawTransactionArgument<string>;
|
|
336
|
-
payment: RawTransactionArgument<string>;
|
|
337
|
-
settings: RawTransactionArgument<string>;
|
|
338
|
-
}
|
|
339
|
-
export interface BuyOptions {
|
|
340
|
-
package?: string;
|
|
341
|
-
arguments: BuyArguments | [
|
|
342
|
-
self: RawTransactionArgument<string>,
|
|
343
|
-
payment: RawTransactionArgument<string>,
|
|
344
|
-
settings: RawTransactionArgument<string>
|
|
345
|
-
];
|
|
346
|
-
typeArguments: [
|
|
347
|
-
string
|
|
348
|
-
];
|
|
349
|
-
}
|
|
350
|
-
/**
|
|
351
|
-
* Buy one record from a live drop — one inside its window with supply left.
|
|
352
|
-
*
|
|
353
|
-
* `payment` must satisfy the price (exactly, for `Fixed`; at least, for `Floor`).
|
|
354
|
-
* The ENTIRE payment is forwarded to the release's address — under `Floor`,
|
|
355
|
-
* anything paid above the floor is kept (a pay-what-you-want tip), not refunded.
|
|
356
|
-
* The sold record's number is the 1-based `quantity_sold` count, its UID is
|
|
357
|
-
* derived off the drop, and it records the drop's `edition`, the `Currency`, and
|
|
358
|
-
* the amount paid. `settings` must authorize this package's `MintWitness`.
|
|
359
|
-
*/
|
|
360
|
-
export declare function buy(options: BuyOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
361
|
-
export interface IdArguments {
|
|
362
|
-
self: RawTransactionArgument<string>;
|
|
363
|
-
}
|
|
364
|
-
export interface IdOptions {
|
|
365
|
-
package?: string;
|
|
366
|
-
arguments: IdArguments | [
|
|
367
|
-
self: RawTransactionArgument<string>
|
|
368
|
-
];
|
|
369
|
-
typeArguments: [
|
|
370
|
-
string
|
|
371
|
-
];
|
|
372
|
-
}
|
|
373
|
-
export declare function id(options: IdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
374
|
-
export interface ReleaseIdArguments {
|
|
375
|
-
self: RawTransactionArgument<string>;
|
|
376
|
-
}
|
|
377
|
-
export interface ReleaseIdOptions {
|
|
378
|
-
package?: string;
|
|
379
|
-
arguments: ReleaseIdArguments | [
|
|
380
|
-
self: RawTransactionArgument<string>
|
|
381
|
-
];
|
|
382
|
-
typeArguments: [
|
|
383
|
-
string
|
|
384
|
-
];
|
|
385
|
-
}
|
|
386
|
-
export declare function releaseId(options: ReleaseIdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
387
|
-
export interface EditionArguments {
|
|
388
|
-
self: RawTransactionArgument<string>;
|
|
389
|
-
}
|
|
390
|
-
export interface EditionOptions {
|
|
391
|
-
package?: string;
|
|
392
|
-
arguments: EditionArguments | [
|
|
393
|
-
self: RawTransactionArgument<string>
|
|
394
|
-
];
|
|
395
|
-
typeArguments: [
|
|
396
|
-
string
|
|
397
|
-
];
|
|
398
|
-
}
|
|
399
|
-
export declare function edition(options: EditionOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
400
|
-
export interface QuantitySoldArguments {
|
|
401
|
-
self: RawTransactionArgument<string>;
|
|
402
|
-
}
|
|
403
|
-
export interface QuantitySoldOptions {
|
|
404
|
-
package?: string;
|
|
405
|
-
arguments: QuantitySoldArguments | [
|
|
406
|
-
self: RawTransactionArgument<string>
|
|
407
|
-
];
|
|
408
|
-
typeArguments: [
|
|
409
|
-
string
|
|
410
|
-
];
|
|
411
|
-
}
|
|
412
|
-
export declare function quantitySold(options: QuantitySoldOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
413
|
-
export interface PriceArguments {
|
|
414
|
-
self: RawTransactionArgument<string>;
|
|
415
|
-
}
|
|
416
|
-
export interface PriceOptions {
|
|
417
|
-
package?: string;
|
|
418
|
-
arguments: PriceArguments | [
|
|
419
|
-
self: RawTransactionArgument<string>
|
|
420
|
-
];
|
|
421
|
-
typeArguments: [
|
|
422
|
-
string
|
|
423
|
-
];
|
|
424
|
-
}
|
|
425
|
-
export declare function price(options: PriceOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
426
|
-
export interface SupplyArguments {
|
|
427
|
-
self: RawTransactionArgument<string>;
|
|
428
|
-
}
|
|
429
|
-
export interface SupplyOptions {
|
|
430
|
-
package?: string;
|
|
431
|
-
arguments: SupplyArguments | [
|
|
432
|
-
self: RawTransactionArgument<string>
|
|
433
|
-
];
|
|
434
|
-
typeArguments: [
|
|
435
|
-
string
|
|
436
|
-
];
|
|
437
|
-
}
|
|
438
|
-
export declare function supply(options: SupplyOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
439
|
-
export interface WindowArguments {
|
|
440
|
-
self: RawTransactionArgument<string>;
|
|
441
|
-
}
|
|
442
|
-
export interface WindowOptions {
|
|
443
|
-
package?: string;
|
|
444
|
-
arguments: WindowArguments | [
|
|
445
|
-
self: RawTransactionArgument<string>
|
|
446
|
-
];
|
|
447
|
-
typeArguments: [
|
|
448
|
-
string
|
|
449
|
-
];
|
|
450
|
-
}
|
|
451
|
-
export declare function window(options: WindowOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
452
|
-
export interface MaxSupplyArguments {
|
|
453
|
-
self: RawTransactionArgument<string>;
|
|
454
|
-
}
|
|
455
|
-
export interface MaxSupplyOptions {
|
|
456
|
-
package?: string;
|
|
457
|
-
arguments: MaxSupplyArguments | [
|
|
458
|
-
self: RawTransactionArgument<string>
|
|
459
|
-
];
|
|
460
|
-
typeArguments: [
|
|
461
|
-
string
|
|
462
|
-
];
|
|
463
|
-
}
|
|
464
|
-
/** Flat projection of `supply`: the cap, or `none` if uncapped. */
|
|
465
|
-
export declare function maxSupply(options: MaxSupplyOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
466
|
-
export interface StartTimestampMsArguments {
|
|
467
|
-
self: RawTransactionArgument<string>;
|
|
468
|
-
}
|
|
469
|
-
export interface StartTimestampMsOptions {
|
|
470
|
-
package?: string;
|
|
471
|
-
arguments: StartTimestampMsArguments | [
|
|
472
|
-
self: RawTransactionArgument<string>
|
|
473
|
-
];
|
|
474
|
-
typeArguments: [
|
|
475
|
-
string
|
|
476
|
-
];
|
|
477
|
-
}
|
|
478
|
-
/** Flat projection of `window`: when the drop opens. */
|
|
479
|
-
export declare function startTimestampMs(options: StartTimestampMsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
480
|
-
export interface EndTimestampMsArguments {
|
|
481
|
-
self: RawTransactionArgument<string>;
|
|
482
|
-
}
|
|
483
|
-
export interface EndTimestampMsOptions {
|
|
484
|
-
package?: string;
|
|
485
|
-
arguments: EndTimestampMsArguments | [
|
|
486
|
-
self: RawTransactionArgument<string>
|
|
487
|
-
];
|
|
488
|
-
typeArguments: [
|
|
489
|
-
string
|
|
490
|
-
];
|
|
491
|
-
}
|
|
492
|
-
/** Flat projection of `window`: the close, or `none` if unbounded. */
|
|
493
|
-
export declare function endTimestampMs(options: EndTimestampMsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
494
|
-
export interface IsSoldOutArguments {
|
|
495
|
-
self: RawTransactionArgument<string>;
|
|
496
|
-
}
|
|
497
|
-
export interface IsSoldOutOptions {
|
|
498
|
-
package?: string;
|
|
499
|
-
arguments: IsSoldOutArguments | [
|
|
500
|
-
self: RawTransactionArgument<string>
|
|
501
|
-
];
|
|
502
|
-
typeArguments: [
|
|
503
|
-
string
|
|
504
|
-
];
|
|
505
|
-
}
|
|
506
|
-
/**
|
|
507
|
-
* Whether the drop has sold every one of its `Capped { max }` records (always
|
|
508
|
-
* `false` for an uncapped drop).
|
|
509
|
-
*/
|
|
510
|
-
export declare function isSoldOut(options: IsSoldOutOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
511
|
-
export interface IsLiveArguments {
|
|
512
|
-
self: RawTransactionArgument<string>;
|
|
513
|
-
}
|
|
514
|
-
export interface IsLiveOptions {
|
|
515
|
-
package?: string;
|
|
516
|
-
arguments: IsLiveArguments | [
|
|
517
|
-
self: RawTransactionArgument<string>
|
|
518
|
-
];
|
|
519
|
-
typeArguments: [
|
|
520
|
-
string
|
|
521
|
-
];
|
|
522
|
-
}
|
|
523
|
-
/** Whether `buy` would be accepted right now: inside the window and not sold out. */
|
|
524
|
-
export declare function isLive(options: IsLiveOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
525
|
-
export interface CurrentDropIdArguments {
|
|
526
|
-
release: RawTransactionArgument<string>;
|
|
527
|
-
}
|
|
528
|
-
export interface CurrentDropIdOptions {
|
|
529
|
-
package?: string;
|
|
530
|
-
arguments: CurrentDropIdArguments | [
|
|
531
|
-
release: RawTransactionArgument<string>
|
|
532
|
-
];
|
|
533
|
-
}
|
|
534
|
-
/**
|
|
535
|
-
* The `ID` of a release's live drop, or `none` if the release has never dropped.
|
|
536
|
-
* (There is always at most one: `new_edition` destroys the predecessor.)
|
|
537
|
-
*/
|
|
538
|
-
export declare function currentDropId(options: CurrentDropIdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
539
|
-
export interface AmountArguments {
|
|
540
|
-
self: TransactionArgument;
|
|
541
|
-
}
|
|
542
|
-
export interface AmountOptions {
|
|
543
|
-
package?: string;
|
|
544
|
-
arguments: AmountArguments | [
|
|
545
|
-
self: TransactionArgument
|
|
546
|
-
];
|
|
547
|
-
}
|
|
548
|
-
/** The price amount (the fixed price, or the floor). */
|
|
549
|
-
export declare function amount(options: AmountOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
550
|
-
//# sourceMappingURL=drop.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"drop.d.ts","sourceRoot":"","sources":["../../../src/contracts/miso_drop/drop.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAA0B,KAAK,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEzH,OAAO,EAAE,KAAK,WAAW,EAAE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