@misofm/sdk 0.15.11 → 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.
- package/README.md +145 -53
- package/dist/client.d.ts +156 -48
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +289 -48
- package/dist/client.js.map +1 -1
- package/dist/contracts/composition_royalty_pool/composition_royalty_pool.d.ts +11 -11
- package/dist/contracts/composition_royalty_pool/composition_royalty_pool.d.ts.map +1 -1
- package/dist/contracts/composition_royalty_pool/composition_royalty_pool.js +9 -9
- package/dist/contracts/composition_royalty_pool/composition_royalty_pool.js.map +1 -1
- package/dist/contracts/miso_record/deps/std/type_name.d.ts.map +1 -0
- package/dist/contracts/miso_record/deps/std/type_name.js.map +1 -0
- package/dist/contracts/miso_record/deps/sui/vec_set.d.ts +21 -0
- package/dist/contracts/miso_record/deps/sui/vec_set.d.ts.map +1 -0
- package/dist/contracts/miso_record/deps/sui/vec_set.js +20 -0
- package/dist/contracts/miso_record/deps/sui/vec_set.js.map +1 -0
- package/dist/contracts/miso_record/pressing.d.ts +327 -0
- package/dist/contracts/miso_record/pressing.d.ts.map +1 -0
- package/dist/contracts/miso_record/pressing.js +345 -0
- package/dist/contracts/miso_record/pressing.js.map +1 -0
- package/dist/contracts/miso_record/record.d.ts +190 -0
- package/dist/contracts/miso_record/record.d.ts.map +1 -0
- package/dist/contracts/miso_record/record.js +226 -0
- package/dist/contracts/miso_record/record.js.map +1 -0
- package/dist/contracts/miso_record_shop/deps/std/type_name.d.ts +18 -0
- package/dist/contracts/miso_record_shop/deps/std/type_name.d.ts.map +1 -0
- package/dist/contracts/miso_record_shop/deps/std/type_name.js +20 -0
- package/dist/contracts/miso_record_shop/deps/std/type_name.js.map +1 -0
- package/dist/contracts/miso_record_shop/listing.d.ts +387 -0
- package/dist/contracts/miso_record_shop/listing.d.ts.map +1 -0
- package/dist/contracts/miso_record_shop/listing.js +380 -0
- package/dist/contracts/miso_record_shop/listing.js.map +1 -0
- package/dist/contracts/miso_record_shop/witness.d.ts +7 -0
- package/dist/contracts/miso_record_shop/witness.d.ts.map +1 -0
- package/dist/contracts/miso_record_shop/witness.js +9 -0
- package/dist/contracts/miso_record_shop/witness.js.map +1 -0
- package/dist/contracts/recording_royalty_pool/recording_royalty_pool.d.ts +10 -12
- package/dist/contracts/recording_royalty_pool/recording_royalty_pool.d.ts.map +1 -1
- package/dist/contracts/recording_royalty_pool/recording_royalty_pool.js +8 -10
- package/dist/contracts/recording_royalty_pool/recording_royalty_pool.js.map +1 -1
- package/dist/contracts.d.ts +3 -3
- package/dist/contracts.d.ts.map +1 -1
- package/dist/contracts.js +5 -4
- package/dist/contracts.js.map +1 -1
- package/dist/deployments.d.ts +37 -4
- package/dist/deployments.d.ts.map +1 -1
- package/dist/deployments.js +40 -2
- package/dist/deployments.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/mix.d.ts +144 -0
- package/dist/mix.d.ts.map +1 -0
- package/dist/mix.js +656 -0
- package/dist/mix.js.map +1 -0
- package/dist/pressing.d.ts +72 -156
- package/dist/pressing.d.ts.map +1 -1
- package/dist/pressing.js +269 -261
- package/dist/pressing.js.map +1 -1
- package/dist/publication.d.ts +5 -2
- package/dist/publication.d.ts.map +1 -1
- package/dist/publication.js +57 -32
- package/dist/publication.js.map +1 -1
- package/dist/read/catalog.d.ts +8 -5
- package/dist/read/catalog.d.ts.map +1 -1
- package/dist/read/catalog.js +47 -35
- package/dist/read/catalog.js.map +1 -1
- package/dist/read/config.d.ts +6 -4
- package/dist/read/config.d.ts.map +1 -1
- package/dist/read/config.js +1 -2
- package/dist/read/config.js.map +1 -1
- package/dist/read/index.d.ts +1 -1
- 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/internal/scalars.d.ts.map +1 -1
- package/dist/read/internal/scalars.js +4 -3
- package/dist/read/internal/scalars.js.map +1 -1
- package/dist/read/internal/walrus.d.ts.map +1 -1
- package/dist/read/internal/walrus.js +2 -1
- package/dist/read/internal/walrus.js.map +1 -1
- package/dist/read/receipts.d.ts +21 -12
- package/dist/read/receipts.d.ts.map +1 -1
- package/dist/read/receipts.js +159 -56
- package/dist/read/receipts.js.map +1 -1
- package/dist/read/types.d.ts +34 -24
- package/dist/read/types.d.ts.map +1 -1
- package/dist/read/wallet.d.ts.map +1 -1
- package/dist/read/wallet.js +31 -46
- package/dist/read/wallet.js.map +1 -1
- package/dist/vault.d.ts +40 -11
- package/dist/vault.d.ts.map +1 -1
- package/dist/vault.js +94 -22
- package/dist/vault.js.map +1 -1
- package/package.json +10 -3
- package/src/client.ts +386 -72
- package/src/contracts/composition_royalty_pool/composition_royalty_pool.ts +15 -15
- package/src/contracts/miso_record/deps/sui/vec_set.ts +21 -0
- package/src/contracts/miso_record/pressing.ts +522 -0
- package/src/contracts/miso_record/record.ts +338 -0
- package/src/contracts/miso_record_shop/deps/std/type_name.ts +22 -0
- package/src/contracts/miso_record_shop/listing.ts +602 -0
- package/src/contracts/miso_record_shop/witness.ts +11 -0
- package/src/contracts/recording_royalty_pool/recording_royalty_pool.ts +14 -16
- package/src/contracts.ts +5 -4
- package/src/deployments.ts +131 -38
- package/src/index.ts +2 -0
- package/src/mix.ts +910 -0
- package/src/pressing.ts +428 -423
- package/src/publication.ts +62 -33
- package/src/read/catalog.ts +49 -34
- package/src/read/config.ts +7 -7
- package/src/read/index.ts +9 -1
- package/src/read/internal/scalars.ts +4 -2
- package/src/read/internal/walrus.ts +2 -1
- package/src/read/receipts.ts +181 -66
- package/src/read/types.ts +35 -22
- package/src/read/wallet.ts +29 -50
- package/src/vault.ts +142 -32
- package/dist/contracts/miso_pressing/certificate.d.ts +0 -89
- package/dist/contracts/miso_pressing/certificate.d.ts.map +0 -1
- package/dist/contracts/miso_pressing/certificate.js +0 -108
- package/dist/contracts/miso_pressing/certificate.js.map +0 -1
- package/dist/contracts/miso_pressing/deps/std/type_name.d.ts.map +0 -1
- package/dist/contracts/miso_pressing/deps/std/type_name.js.map +0 -1
- package/dist/contracts/miso_pressing/listing.d.ts +0 -434
- package/dist/contracts/miso_pressing/listing.d.ts.map +0 -1
- package/dist/contracts/miso_pressing/listing.js +0 -401
- package/dist/contracts/miso_pressing/listing.js.map +0 -1
- package/dist/contracts/miso_pressing/pressing.d.ts +0 -334
- package/dist/contracts/miso_pressing/pressing.d.ts.map +0 -1
- package/dist/contracts/miso_pressing/pressing.js +0 -298
- package/dist/contracts/miso_pressing/pressing.js.map +0 -1
- package/src/contracts/miso_pressing/certificate.ts +0 -164
- package/src/contracts/miso_pressing/listing.ts +0 -592
- package/src/contracts/miso_pressing/pressing.ts +0 -399
- /package/dist/contracts/{miso_pressing → miso_record}/deps/std/type_name.d.ts +0 -0
- /package/dist/contracts/{miso_pressing → miso_record}/deps/std/type_name.js +0 -0
- /package/src/contracts/{miso_pressing → miso_record}/deps/std/type_name.ts +0 -0
|
@@ -0,0 +1,226 @@
|
|
|
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, normalizeMoveArguments } from '../utils/index.js';
|
|
12
|
+
import { bcs } from '@mysten/sui/bcs';
|
|
13
|
+
import {} from '@mysten/sui/transactions';
|
|
14
|
+
import * as type_name from './deps/std/type_name.js';
|
|
15
|
+
const $moduleName = '@local-pkg/miso_record::record';
|
|
16
|
+
export const Record = new MoveStruct({ name: `${$moduleName}::Record`, fields: {
|
|
17
|
+
id: bcs.Address,
|
|
18
|
+
/** The release this Record is a copy of. */
|
|
19
|
+
release_id: bcs.Address,
|
|
20
|
+
/** The edition-scoped Pressing that minted this Record. */
|
|
21
|
+
pressing_id: bcs.Address,
|
|
22
|
+
/** The edition represented by `pressing_id`. */
|
|
23
|
+
edition: bcs.u16(),
|
|
24
|
+
/** This Record's number within its edition. */
|
|
25
|
+
number: bcs.u32(),
|
|
26
|
+
/** The defining type of the currency used for this purchase. */
|
|
27
|
+
purchase_currency: type_name.TypeName,
|
|
28
|
+
/** The actual amount paid, including any accepted overpayment. */
|
|
29
|
+
purchase_price: bcs.u64(),
|
|
30
|
+
/** The transaction sender who purchased this Record. */
|
|
31
|
+
purchased_by: bcs.Address,
|
|
32
|
+
/** When this Record was purchased, in Unix milliseconds from Sui's Clock. */
|
|
33
|
+
purchased_timestamp_ms: bcs.u64()
|
|
34
|
+
} });
|
|
35
|
+
export const RecordKey = new MoveTuple({ name: `${$moduleName}::RecordKey`, fields: [bcs.u32()] });
|
|
36
|
+
export const RecordCreatedEvent = new MoveStruct({ name: `${$moduleName}::RecordCreatedEvent`, fields: {
|
|
37
|
+
/** The newly created Record. */
|
|
38
|
+
record_id: bcs.Address,
|
|
39
|
+
/** The release represented by the Record. */
|
|
40
|
+
release_id: bcs.Address,
|
|
41
|
+
/** The Pressing that issued the Record. */
|
|
42
|
+
pressing_id: bcs.Address,
|
|
43
|
+
/** The edition represented by the Pressing. */
|
|
44
|
+
edition: bcs.u16(),
|
|
45
|
+
/** The Record's number within the edition. */
|
|
46
|
+
number: bcs.u32()
|
|
47
|
+
} });
|
|
48
|
+
export const RecordDestroyedEvent = new MoveStruct({ name: `${$moduleName}::RecordDestroyedEvent`, fields: {
|
|
49
|
+
/** The destroyed Record. */
|
|
50
|
+
record_id: bcs.Address,
|
|
51
|
+
/** The Pressing that issued the Record. */
|
|
52
|
+
pressing_id: bcs.Address
|
|
53
|
+
} });
|
|
54
|
+
/**
|
|
55
|
+
* Destroy a Record. Detach any dynamic-field extensions first or they become
|
|
56
|
+
* inaccessible.
|
|
57
|
+
*/
|
|
58
|
+
export function destroy(options) {
|
|
59
|
+
const packageAddress = options.package ?? '@local-pkg/miso_record';
|
|
60
|
+
const argumentsTypes = [
|
|
61
|
+
null
|
|
62
|
+
];
|
|
63
|
+
const parameterNames = ["self"];
|
|
64
|
+
return (tx) => tx.moveCall({
|
|
65
|
+
package: packageAddress,
|
|
66
|
+
module: 'record',
|
|
67
|
+
function: 'destroy',
|
|
68
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
/** Borrow the Record UID for read-only extensions. */
|
|
72
|
+
export function uid(options) {
|
|
73
|
+
const packageAddress = options.package ?? '@local-pkg/miso_record';
|
|
74
|
+
const argumentsTypes = [
|
|
75
|
+
null
|
|
76
|
+
];
|
|
77
|
+
const parameterNames = ["self"];
|
|
78
|
+
return (tx) => tx.moveCall({
|
|
79
|
+
package: packageAddress,
|
|
80
|
+
module: 'record',
|
|
81
|
+
function: 'uid',
|
|
82
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
/** Mutably borrow the Record UID for owner-authorized extensions. */
|
|
86
|
+
export function uidMut(options) {
|
|
87
|
+
const packageAddress = options.package ?? '@local-pkg/miso_record';
|
|
88
|
+
const argumentsTypes = [
|
|
89
|
+
null
|
|
90
|
+
];
|
|
91
|
+
const parameterNames = ["self"];
|
|
92
|
+
return (tx) => tx.moveCall({
|
|
93
|
+
package: packageAddress,
|
|
94
|
+
module: 'record',
|
|
95
|
+
function: 'uid_mut',
|
|
96
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
/** Return the release represented by this Record. */
|
|
100
|
+
export function releaseId(options) {
|
|
101
|
+
const packageAddress = options.package ?? '@local-pkg/miso_record';
|
|
102
|
+
const argumentsTypes = [
|
|
103
|
+
null
|
|
104
|
+
];
|
|
105
|
+
const parameterNames = ["self"];
|
|
106
|
+
return (tx) => tx.moveCall({
|
|
107
|
+
package: packageAddress,
|
|
108
|
+
module: 'record',
|
|
109
|
+
function: 'release_id',
|
|
110
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
/** Return the Pressing that issued this Record. */
|
|
114
|
+
export function pressingId(options) {
|
|
115
|
+
const packageAddress = options.package ?? '@local-pkg/miso_record';
|
|
116
|
+
const argumentsTypes = [
|
|
117
|
+
null
|
|
118
|
+
];
|
|
119
|
+
const parameterNames = ["self"];
|
|
120
|
+
return (tx) => tx.moveCall({
|
|
121
|
+
package: packageAddress,
|
|
122
|
+
module: 'record',
|
|
123
|
+
function: 'pressing_id',
|
|
124
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
/** Return this Record's edition number. */
|
|
128
|
+
export function edition(options) {
|
|
129
|
+
const packageAddress = options.package ?? '@local-pkg/miso_record';
|
|
130
|
+
const argumentsTypes = [
|
|
131
|
+
null
|
|
132
|
+
];
|
|
133
|
+
const parameterNames = ["self"];
|
|
134
|
+
return (tx) => tx.moveCall({
|
|
135
|
+
package: packageAddress,
|
|
136
|
+
module: 'record',
|
|
137
|
+
function: 'edition',
|
|
138
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
/** Return this Record's number within its edition. */
|
|
142
|
+
export function number(options) {
|
|
143
|
+
const packageAddress = options.package ?? '@local-pkg/miso_record';
|
|
144
|
+
const argumentsTypes = [
|
|
145
|
+
null
|
|
146
|
+
];
|
|
147
|
+
const parameterNames = ["self"];
|
|
148
|
+
return (tx) => tx.moveCall({
|
|
149
|
+
package: packageAddress,
|
|
150
|
+
module: 'record',
|
|
151
|
+
function: 'number',
|
|
152
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
/** Return the defining type of the purchase currency. */
|
|
156
|
+
export function purchaseCurrency(options) {
|
|
157
|
+
const packageAddress = options.package ?? '@local-pkg/miso_record';
|
|
158
|
+
const argumentsTypes = [
|
|
159
|
+
null
|
|
160
|
+
];
|
|
161
|
+
const parameterNames = ["self"];
|
|
162
|
+
return (tx) => tx.moveCall({
|
|
163
|
+
package: packageAddress,
|
|
164
|
+
module: 'record',
|
|
165
|
+
function: 'purchase_currency',
|
|
166
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
/** Return the amount paid for this Record. */
|
|
170
|
+
export function purchasePrice(options) {
|
|
171
|
+
const packageAddress = options.package ?? '@local-pkg/miso_record';
|
|
172
|
+
const argumentsTypes = [
|
|
173
|
+
null
|
|
174
|
+
];
|
|
175
|
+
const parameterNames = ["self"];
|
|
176
|
+
return (tx) => tx.moveCall({
|
|
177
|
+
package: packageAddress,
|
|
178
|
+
module: 'record',
|
|
179
|
+
function: 'purchase_price',
|
|
180
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
/** Return the transaction sender who purchased this Record. */
|
|
184
|
+
export function purchasedBy(options) {
|
|
185
|
+
const packageAddress = options.package ?? '@local-pkg/miso_record';
|
|
186
|
+
const argumentsTypes = [
|
|
187
|
+
null
|
|
188
|
+
];
|
|
189
|
+
const parameterNames = ["self"];
|
|
190
|
+
return (tx) => tx.moveCall({
|
|
191
|
+
package: packageAddress,
|
|
192
|
+
module: 'record',
|
|
193
|
+
function: 'purchased_by',
|
|
194
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
/** Return the purchase time in Unix milliseconds from Sui's Clock. */
|
|
198
|
+
export function purchasedTimestampMs(options) {
|
|
199
|
+
const packageAddress = options.package ?? '@local-pkg/miso_record';
|
|
200
|
+
const argumentsTypes = [
|
|
201
|
+
null
|
|
202
|
+
];
|
|
203
|
+
const parameterNames = ["self"];
|
|
204
|
+
return (tx) => tx.moveCall({
|
|
205
|
+
package: packageAddress,
|
|
206
|
+
module: 'record',
|
|
207
|
+
function: 'purchased_timestamp_ms',
|
|
208
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
/** Derive the Record address for `number` in `pressing_id`'s edition. */
|
|
212
|
+
export function deriveAddress(options) {
|
|
213
|
+
const packageAddress = options.package ?? '@local-pkg/miso_record';
|
|
214
|
+
const argumentsTypes = [
|
|
215
|
+
'0x2::object::ID',
|
|
216
|
+
'u32'
|
|
217
|
+
];
|
|
218
|
+
const parameterNames = ["pressingId", "number"];
|
|
219
|
+
return (tx) => tx.moveCall({
|
|
220
|
+
package: packageAddress,
|
|
221
|
+
module: 'record',
|
|
222
|
+
function: 'derive_address',
|
|
223
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
//# sourceMappingURL=record.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"record.js","sourceRoot":"","sources":["../../../src/contracts/miso_record/record.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;GAMG;AAEH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,sBAAsB,EAA+B,MAAM,mBAAmB,CAAC;AAC/G,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,EAAoB,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,SAAS,MAAM,yBAAyB,CAAC;AACrD,MAAM,WAAW,GAAG,gCAAg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AC,OAAO,IAAI,wBAAwB,CAAC;IACnE,MAAM,cAAc,GAAG;QACnB,IAAI;KACqB,CAAC;IAC9B,MAAM,cAAc,GAAG,CAAC,MAAM,CAAC,CAAC;IAChC,OAAO,CAAC,EAAe,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC;QACpC,OAAO,EAAE,cAAc;QACvB,MAAM,EAAE,QAAQ;QAChB,QAAQ,EAAE,wBAAwB;QAClC,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;KACvF,CAAC,CAAC;AACP,CAAC;AAYD,yEAAyE;AACzE,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,YAAY,EAAE,QAAQ,CAAC,CAAC;IAChD,OAAO,CAAC,EAAe,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC;QACpC,OAAO,EAAE,cAAc;QACvB,MAAM,EAAE,QAAQ;QAChB,QAAQ,EAAE,gBAAgB;QAC1B,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;KACvF,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/** Functionality for converting Move types into values. Use with care! */
|
|
5
|
+
import { MoveStruct } from '../../../utils/index.js';
|
|
6
|
+
export declare const TypeName: MoveStruct<{
|
|
7
|
+
/**
|
|
8
|
+
* String representation of the type. All types are represented using their source
|
|
9
|
+
* syntax: "u8", "u64", "bool", "address", "vector", and so on for primitive types.
|
|
10
|
+
* Struct types are represented as fully qualified type names; e.g.
|
|
11
|
+
* `00000000000000000000000000000001::string::String` or
|
|
12
|
+
* `0000000000000000000000000000000a::module_name1::type_name1<0000000000000000000000000000000a::module_name2::type_name2<u64>>`
|
|
13
|
+
* Addresses are hex-encoded lowercase values of length ADDRESS_LENGTH (16, 20, or
|
|
14
|
+
* 32 depending on the Move platform)
|
|
15
|
+
*/
|
|
16
|
+
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
17
|
+
}, "std::type_name::TypeName">;
|
|
18
|
+
//# sourceMappingURL=type_name.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type_name.d.ts","sourceRoot":"","sources":["../../../../../src/contracts/miso_record_shop/deps/std/type_name.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE,0EAA0E;AAE1E,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAGrD,eAAO,MAAM,QAAQ;IACb;;;;;;;;SAQK;;8BAEL,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/** Functionality for converting Move types into values. Use with care! */
|
|
5
|
+
import { MoveStruct } from '../../../utils/index.js';
|
|
6
|
+
import { bcs } from '@mysten/sui/bcs';
|
|
7
|
+
const $moduleName = 'std::type_name';
|
|
8
|
+
export const TypeName = new MoveStruct({ name: `${$moduleName}::TypeName`, fields: {
|
|
9
|
+
/**
|
|
10
|
+
* String representation of the type. All types are represented using their source
|
|
11
|
+
* syntax: "u8", "u64", "bool", "address", "vector", and so on for primitive types.
|
|
12
|
+
* Struct types are represented as fully qualified type names; e.g.
|
|
13
|
+
* `00000000000000000000000000000001::string::String` or
|
|
14
|
+
* `0000000000000000000000000000000a::module_name1::type_name1<0000000000000000000000000000000a::module_name2::type_name2<u64>>`
|
|
15
|
+
* Addresses are hex-encoded lowercase values of length ADDRESS_LENGTH (16, 20, or
|
|
16
|
+
* 32 depending on the Move platform)
|
|
17
|
+
*/
|
|
18
|
+
name: bcs.string()
|
|
19
|
+
} });
|
|
20
|
+
//# sourceMappingURL=type_name.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type_name.js","sourceRoot":"","sources":["../../../../../src/contracts/miso_record_shop/deps/std/type_name.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE,0EAA0E;AAE1E,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,MAAM,WAAW,GAAG,gBAAgB,CAAC;AACrC,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,YAAY,EAAE,MAAM,EAAE;QAC3E;;;;;;;;aAQK;QACL,IAAI,EAAE,GAAG,CAAC,MAAM,EAAE;KACrB,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/**
|
|
5
|
+
* A fixed-price or minimum-price Record Shop listing for one Pressing.
|
|
6
|
+
*
|
|
7
|
+
* There is no Record Shop singleton. Each `Listing<Currency>` derives directly
|
|
8
|
+
* from its Pressing and is independently shared, so currencies and Pressings
|
|
9
|
+
* remain separate consensus lanes except for their common edition sequence.
|
|
10
|
+
*/
|
|
11
|
+
import { MoveTuple, MoveEnum, MoveStruct, type RawTransactionArgument } from '../utils/index.js';
|
|
12
|
+
import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
|
|
13
|
+
export declare const ListingKey: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">], "@local-pkg/miso_record_shop::listing::ListingKey<phantom Currency>">;
|
|
14
|
+
/** Payment rule for a Listing. */
|
|
15
|
+
export declare const Pricing: MoveEnum<{
|
|
16
|
+
/** Require payment to equal the configured price. */
|
|
17
|
+
Fixed: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
18
|
+
/** Require payment to be at least the configured price. */
|
|
19
|
+
Floor: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
20
|
+
}, "@local-pkg/miso_record_shop::listing::Pricing">;
|
|
21
|
+
/** Whether purchases are accepted. */
|
|
22
|
+
export declare const State: MoveEnum<{
|
|
23
|
+
Enabled: null;
|
|
24
|
+
Disabled: null;
|
|
25
|
+
}, "@local-pkg/miso_record_shop::listing::State">;
|
|
26
|
+
export declare const Listing: MoveStruct<{
|
|
27
|
+
/** The Listing's derived object identity. */
|
|
28
|
+
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
29
|
+
/** The release that receives payments from this Listing. */
|
|
30
|
+
release_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
31
|
+
/** The Pressing from which this Listing purchases Records. */
|
|
32
|
+
pressing_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
33
|
+
/** The active payment rule. */
|
|
34
|
+
pricing: MoveEnum<{
|
|
35
|
+
/** Require payment to equal the configured price. */
|
|
36
|
+
Fixed: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
37
|
+
/** Require payment to be at least the configured price. */
|
|
38
|
+
Floor: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
39
|
+
}, "@local-pkg/miso_record_shop::listing::Pricing">;
|
|
40
|
+
/** Whether the Listing currently accepts purchases. */
|
|
41
|
+
state: MoveEnum<{
|
|
42
|
+
Enabled: null;
|
|
43
|
+
Disabled: null;
|
|
44
|
+
}, "@local-pkg/miso_record_shop::listing::State">;
|
|
45
|
+
}, "@local-pkg/miso_record_shop::listing::Listing<phantom Currency>">;
|
|
46
|
+
export declare const ListingCreatedEvent: MoveStruct<{
|
|
47
|
+
/** The newly created Listing. */
|
|
48
|
+
listing_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
49
|
+
/** The release that receives Listing payments. */
|
|
50
|
+
release_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
51
|
+
/** The Pressing sold by the Listing. */
|
|
52
|
+
pressing_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
53
|
+
/** The Listing's initial payment rule. */
|
|
54
|
+
pricing: MoveEnum<{
|
|
55
|
+
/** Require payment to equal the configured price. */
|
|
56
|
+
Fixed: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
57
|
+
/** Require payment to be at least the configured price. */
|
|
58
|
+
Floor: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
59
|
+
}, "@local-pkg/miso_record_shop::listing::Pricing">;
|
|
60
|
+
/** The Listing's initial state. */
|
|
61
|
+
state: MoveEnum<{
|
|
62
|
+
Enabled: null;
|
|
63
|
+
Disabled: null;
|
|
64
|
+
}, "@local-pkg/miso_record_shop::listing::State">;
|
|
65
|
+
}, "@local-pkg/miso_record_shop::listing::ListingCreatedEvent<phantom Currency>">;
|
|
66
|
+
export declare const ListingPriceChangedEvent: MoveStruct<{
|
|
67
|
+
/** The updated Listing. */
|
|
68
|
+
listing_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
69
|
+
/** The new payment rule. */
|
|
70
|
+
pricing: MoveEnum<{
|
|
71
|
+
/** Require payment to equal the configured price. */
|
|
72
|
+
Fixed: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
73
|
+
/** Require payment to be at least the configured price. */
|
|
74
|
+
Floor: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
75
|
+
}, "@local-pkg/miso_record_shop::listing::Pricing">;
|
|
76
|
+
}, "@local-pkg/miso_record_shop::listing::ListingPriceChangedEvent<phantom Currency>">;
|
|
77
|
+
export declare const ListingStateChangedEvent: MoveStruct<{
|
|
78
|
+
/** The updated Listing. */
|
|
79
|
+
listing_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
80
|
+
/** The new Listing state. */
|
|
81
|
+
state: MoveEnum<{
|
|
82
|
+
Enabled: null;
|
|
83
|
+
Disabled: null;
|
|
84
|
+
}, "@local-pkg/miso_record_shop::listing::State">;
|
|
85
|
+
}, "@local-pkg/miso_record_shop::listing::ListingStateChangedEvent<phantom Currency>">;
|
|
86
|
+
export declare const RecordSoldEvent: MoveStruct<{
|
|
87
|
+
/** The Listing that completed the sale. */
|
|
88
|
+
listing_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
89
|
+
/** The purchased Record. */
|
|
90
|
+
record_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
91
|
+
/** The release that received payment. */
|
|
92
|
+
release_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
93
|
+
/** The Pressing that issued the Record. */
|
|
94
|
+
pressing_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
95
|
+
/** The edition represented by the Pressing. */
|
|
96
|
+
edition: import("@mysten/sui/bcs").BcsType<number, number, "u16">;
|
|
97
|
+
/** The Record's number within its edition. */
|
|
98
|
+
number: import("@mysten/sui/bcs").BcsType<number, number, "u32">;
|
|
99
|
+
/** The defining type of the purchase currency. */
|
|
100
|
+
purchase_currency: MoveStruct<{
|
|
101
|
+
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
102
|
+
}, "std::type_name::TypeName">;
|
|
103
|
+
/** The amount paid for the Record. */
|
|
104
|
+
purchase_price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
105
|
+
/** The transaction sender who purchased the Record. */
|
|
106
|
+
purchased_by: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
107
|
+
/** The purchase time in Unix milliseconds from Sui's Clock. */
|
|
108
|
+
purchased_timestamp_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
109
|
+
/** The payment rule accepted for the sale. */
|
|
110
|
+
pricing: MoveEnum<{
|
|
111
|
+
/** Require payment to equal the configured price. */
|
|
112
|
+
Fixed: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
113
|
+
/** Require payment to be at least the configured price. */
|
|
114
|
+
Floor: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
115
|
+
}, "@local-pkg/miso_record_shop::listing::Pricing">;
|
|
116
|
+
}, "@local-pkg/miso_record_shop::listing::RecordSoldEvent<phantom Currency>">;
|
|
117
|
+
export interface FixedArguments {
|
|
118
|
+
price: RawTransactionArgument<number | bigint>;
|
|
119
|
+
}
|
|
120
|
+
export interface FixedOptions {
|
|
121
|
+
package?: string;
|
|
122
|
+
arguments: FixedArguments | [
|
|
123
|
+
price: RawTransactionArgument<number | bigint>
|
|
124
|
+
];
|
|
125
|
+
}
|
|
126
|
+
/** Construct an exact-payment pricing rule. */
|
|
127
|
+
export declare function fixed(options: FixedOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
128
|
+
export interface FloorArguments {
|
|
129
|
+
price: RawTransactionArgument<number | bigint>;
|
|
130
|
+
}
|
|
131
|
+
export interface FloorOptions {
|
|
132
|
+
package?: string;
|
|
133
|
+
arguments: FloorArguments | [
|
|
134
|
+
price: RawTransactionArgument<number | bigint>
|
|
135
|
+
];
|
|
136
|
+
}
|
|
137
|
+
/** Construct a minimum-payment pricing rule. */
|
|
138
|
+
export declare function floor(options: FloorOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
139
|
+
export interface EnabledOptions {
|
|
140
|
+
package?: string;
|
|
141
|
+
arguments?: [
|
|
142
|
+
];
|
|
143
|
+
}
|
|
144
|
+
/** Construct the state that accepts purchases. */
|
|
145
|
+
export declare function enabled(options?: EnabledOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
146
|
+
export interface DisabledOptions {
|
|
147
|
+
package?: string;
|
|
148
|
+
arguments?: [
|
|
149
|
+
];
|
|
150
|
+
}
|
|
151
|
+
/** Construct the state that rejects purchases. */
|
|
152
|
+
export declare function disabled(options?: DisabledOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
153
|
+
export interface NewArguments {
|
|
154
|
+
pressing: RawTransactionArgument<string>;
|
|
155
|
+
cap: RawTransactionArgument<string>;
|
|
156
|
+
pricing: TransactionArgument;
|
|
157
|
+
}
|
|
158
|
+
export interface NewOptions {
|
|
159
|
+
package?: string;
|
|
160
|
+
arguments: NewArguments | [
|
|
161
|
+
pressing: RawTransactionArgument<string>,
|
|
162
|
+
cap: RawTransactionArgument<string>,
|
|
163
|
+
pricing: TransactionArgument
|
|
164
|
+
];
|
|
165
|
+
typeArguments: [
|
|
166
|
+
string
|
|
167
|
+
];
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Create the permanent Listing for `Currency` under this Pressing.
|
|
171
|
+
*
|
|
172
|
+
* The Listing starts enabled and is returned unshared so callers can compose
|
|
173
|
+
* further configuration before calling `share`.
|
|
174
|
+
*/
|
|
175
|
+
export declare function _new(options: NewOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
176
|
+
export interface ShareArguments {
|
|
177
|
+
self: RawTransactionArgument<string>;
|
|
178
|
+
}
|
|
179
|
+
export interface ShareOptions {
|
|
180
|
+
package?: string;
|
|
181
|
+
arguments: ShareArguments | [
|
|
182
|
+
self: RawTransactionArgument<string>
|
|
183
|
+
];
|
|
184
|
+
typeArguments: [
|
|
185
|
+
string
|
|
186
|
+
];
|
|
187
|
+
}
|
|
188
|
+
/** Share a newly created Listing. */
|
|
189
|
+
export declare function share(options: ShareOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
190
|
+
export interface SetPriceArguments {
|
|
191
|
+
self: RawTransactionArgument<string>;
|
|
192
|
+
cap: RawTransactionArgument<string>;
|
|
193
|
+
pricing: TransactionArgument;
|
|
194
|
+
}
|
|
195
|
+
export interface SetPriceOptions {
|
|
196
|
+
package?: string;
|
|
197
|
+
arguments: SetPriceArguments | [
|
|
198
|
+
self: RawTransactionArgument<string>,
|
|
199
|
+
cap: RawTransactionArgument<string>,
|
|
200
|
+
pricing: TransactionArgument
|
|
201
|
+
];
|
|
202
|
+
typeArguments: [
|
|
203
|
+
string
|
|
204
|
+
];
|
|
205
|
+
}
|
|
206
|
+
/** Change the payment rule using the capability for the bound Pressing. */
|
|
207
|
+
export declare function setPrice(options: SetPriceOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
208
|
+
export interface SetStateArguments {
|
|
209
|
+
self: RawTransactionArgument<string>;
|
|
210
|
+
cap: RawTransactionArgument<string>;
|
|
211
|
+
state: TransactionArgument;
|
|
212
|
+
}
|
|
213
|
+
export interface SetStateOptions {
|
|
214
|
+
package?: string;
|
|
215
|
+
arguments: SetStateArguments | [
|
|
216
|
+
self: RawTransactionArgument<string>,
|
|
217
|
+
cap: RawTransactionArgument<string>,
|
|
218
|
+
state: TransactionArgument
|
|
219
|
+
];
|
|
220
|
+
typeArguments: [
|
|
221
|
+
string
|
|
222
|
+
];
|
|
223
|
+
}
|
|
224
|
+
/** Enable or disable purchases using the capability for the bound Pressing. */
|
|
225
|
+
export declare function setState(options: SetStateOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
226
|
+
export interface PurchaseArguments {
|
|
227
|
+
self: RawTransactionArgument<string>;
|
|
228
|
+
pressing: RawTransactionArgument<string>;
|
|
229
|
+
payment: TransactionArgument;
|
|
230
|
+
expectedPricing: TransactionArgument;
|
|
231
|
+
}
|
|
232
|
+
export interface PurchaseOptions {
|
|
233
|
+
package?: string;
|
|
234
|
+
arguments: PurchaseArguments | [
|
|
235
|
+
self: RawTransactionArgument<string>,
|
|
236
|
+
pressing: RawTransactionArgument<string>,
|
|
237
|
+
payment: TransactionArgument,
|
|
238
|
+
expectedPricing: TransactionArgument
|
|
239
|
+
];
|
|
240
|
+
typeArguments: [
|
|
241
|
+
string
|
|
242
|
+
];
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Purchase and return the next Record from the bound Pressing.
|
|
246
|
+
*
|
|
247
|
+
* `expected_pricing` protects the buyer against stale price or pricing-rule
|
|
248
|
+
* changes. The entire payment is deposited into the Release object's funds
|
|
249
|
+
* accumulator; a Floor overpayment is not refunded. The caller decides how to
|
|
250
|
+
* transfer or compose the returned Record.
|
|
251
|
+
*/
|
|
252
|
+
export declare function purchase(options: PurchaseOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
253
|
+
export interface ReleaseIdArguments {
|
|
254
|
+
self: RawTransactionArgument<string>;
|
|
255
|
+
}
|
|
256
|
+
export interface ReleaseIdOptions {
|
|
257
|
+
package?: string;
|
|
258
|
+
arguments: ReleaseIdArguments | [
|
|
259
|
+
self: RawTransactionArgument<string>
|
|
260
|
+
];
|
|
261
|
+
typeArguments: [
|
|
262
|
+
string
|
|
263
|
+
];
|
|
264
|
+
}
|
|
265
|
+
/** Return the release that receives Listing payments. */
|
|
266
|
+
export declare function releaseId(options: ReleaseIdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
267
|
+
export interface PressingIdArguments {
|
|
268
|
+
self: RawTransactionArgument<string>;
|
|
269
|
+
}
|
|
270
|
+
export interface PressingIdOptions {
|
|
271
|
+
package?: string;
|
|
272
|
+
arguments: PressingIdArguments | [
|
|
273
|
+
self: RawTransactionArgument<string>
|
|
274
|
+
];
|
|
275
|
+
typeArguments: [
|
|
276
|
+
string
|
|
277
|
+
];
|
|
278
|
+
}
|
|
279
|
+
/** Return the Pressing sold by this Listing. */
|
|
280
|
+
export declare function pressingId(options: PressingIdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
281
|
+
export interface PricingArguments {
|
|
282
|
+
self: RawTransactionArgument<string>;
|
|
283
|
+
}
|
|
284
|
+
export interface PricingOptions {
|
|
285
|
+
package?: string;
|
|
286
|
+
arguments: PricingArguments | [
|
|
287
|
+
self: RawTransactionArgument<string>
|
|
288
|
+
];
|
|
289
|
+
typeArguments: [
|
|
290
|
+
string
|
|
291
|
+
];
|
|
292
|
+
}
|
|
293
|
+
/** Return this Listing's payment rule. */
|
|
294
|
+
export declare function pricing(options: PricingOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
295
|
+
export interface PriceArguments {
|
|
296
|
+
self: RawTransactionArgument<string>;
|
|
297
|
+
}
|
|
298
|
+
export interface PriceOptions {
|
|
299
|
+
package?: string;
|
|
300
|
+
arguments: PriceArguments | [
|
|
301
|
+
self: RawTransactionArgument<string>
|
|
302
|
+
];
|
|
303
|
+
typeArguments: [
|
|
304
|
+
string
|
|
305
|
+
];
|
|
306
|
+
}
|
|
307
|
+
/** Return the amount configured by this Listing's payment rule. */
|
|
308
|
+
export declare function price(options: PriceOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
309
|
+
export interface StateArguments {
|
|
310
|
+
self: RawTransactionArgument<string>;
|
|
311
|
+
}
|
|
312
|
+
export interface StateOptions {
|
|
313
|
+
package?: string;
|
|
314
|
+
arguments: StateArguments | [
|
|
315
|
+
self: RawTransactionArgument<string>
|
|
316
|
+
];
|
|
317
|
+
typeArguments: [
|
|
318
|
+
string
|
|
319
|
+
];
|
|
320
|
+
}
|
|
321
|
+
/** Return this Listing's current state. */
|
|
322
|
+
export declare function state(options: StateOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
323
|
+
export interface IsEnabledArguments {
|
|
324
|
+
self: RawTransactionArgument<string>;
|
|
325
|
+
}
|
|
326
|
+
export interface IsEnabledOptions {
|
|
327
|
+
package?: string;
|
|
328
|
+
arguments: IsEnabledArguments | [
|
|
329
|
+
self: RawTransactionArgument<string>
|
|
330
|
+
];
|
|
331
|
+
typeArguments: [
|
|
332
|
+
string
|
|
333
|
+
];
|
|
334
|
+
}
|
|
335
|
+
/** Return whether this Listing currently accepts purchases. */
|
|
336
|
+
export declare function isEnabled(options: IsEnabledOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
337
|
+
export interface IsDisabledArguments {
|
|
338
|
+
self: RawTransactionArgument<string>;
|
|
339
|
+
}
|
|
340
|
+
export interface IsDisabledOptions {
|
|
341
|
+
package?: string;
|
|
342
|
+
arguments: IsDisabledArguments | [
|
|
343
|
+
self: RawTransactionArgument<string>
|
|
344
|
+
];
|
|
345
|
+
typeArguments: [
|
|
346
|
+
string
|
|
347
|
+
];
|
|
348
|
+
}
|
|
349
|
+
/** Return whether this Listing currently rejects purchases. */
|
|
350
|
+
export declare function isDisabled(options: IsDisabledOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
351
|
+
export interface IsFixedArguments {
|
|
352
|
+
pricing: TransactionArgument;
|
|
353
|
+
}
|
|
354
|
+
export interface IsFixedOptions {
|
|
355
|
+
package?: string;
|
|
356
|
+
arguments: IsFixedArguments | [
|
|
357
|
+
pricing: TransactionArgument
|
|
358
|
+
];
|
|
359
|
+
}
|
|
360
|
+
/** Return whether `pricing` requires an exact payment. */
|
|
361
|
+
export declare function isFixed(options: IsFixedOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
362
|
+
export interface IsFloorArguments {
|
|
363
|
+
pricing: TransactionArgument;
|
|
364
|
+
}
|
|
365
|
+
export interface IsFloorOptions {
|
|
366
|
+
package?: string;
|
|
367
|
+
arguments: IsFloorArguments | [
|
|
368
|
+
pricing: TransactionArgument
|
|
369
|
+
];
|
|
370
|
+
}
|
|
371
|
+
/** Return whether `pricing` permits payment above its configured floor. */
|
|
372
|
+
export declare function isFloor(options: IsFloorOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
373
|
+
export interface DeriveAddressArguments {
|
|
374
|
+
pressingId: RawTransactionArgument<string>;
|
|
375
|
+
}
|
|
376
|
+
export interface DeriveAddressOptions {
|
|
377
|
+
package?: string;
|
|
378
|
+
arguments: DeriveAddressArguments | [
|
|
379
|
+
pressingId: RawTransactionArgument<string>
|
|
380
|
+
];
|
|
381
|
+
typeArguments: [
|
|
382
|
+
string
|
|
383
|
+
];
|
|
384
|
+
}
|
|
385
|
+
/** Derive the one Listing address for `(pressing_id, Currency)`. */
|
|
386
|
+
export declare function deriveAddress(options: DeriveAddressOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
387
|
+
//# sourceMappingURL=listing.d.ts.map
|