@zing-protocol/zing-sdk 0.0.16 → 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.
- package/dist/_generated/index.d.ts +0 -2
- package/dist/_generated/index.js +0 -2
- package/dist/_generated/utils/index.d.ts +21 -2
- package/dist/_generated/utils/index.js +35 -11
- package/dist/_generated/zing_framework/coin_utils.js +1 -4
- package/dist/_generated/zing_framework/derived_object_bag.d.ts +4 -3
- package/dist/_generated/zing_framework/derived_object_bag.js +12 -37
- package/dist/_generated/zing_framework/derived_table.d.ts +5 -4
- package/dist/_generated/zing_framework/derived_table.js +12 -33
- package/dist/_generated/zing_governance/admin.d.ts +4 -17
- package/dist/_generated/zing_governance/admin.js +3 -17
- package/dist/_generated/zing_governance/treasury.d.ts +5 -4
- package/dist/_generated/zing_governance/treasury.js +5 -15
- package/dist/_generated/zing_studio/app.d.ts +70 -2
- package/dist/_generated/zing_studio/app.js +154 -100
- package/dist/_generated/zing_studio/article.d.ts +6 -52
- package/dist/_generated/zing_studio/article.js +23 -74
- package/dist/_generated/zing_studio/config.d.ts +34 -3
- package/dist/_generated/zing_studio/config.js +47 -50
- package/dist/_generated/zing_studio/deps/sui/bag.d.ts +25 -3
- package/dist/_generated/zing_studio/deps/sui/bag.js +1 -2
- package/dist/_generated/zing_studio/deps/sui/balance.d.ts +1 -1
- package/dist/_generated/zing_studio/deps/sui/balance.js +1 -1
- package/dist/_generated/zing_studio/deps/sui/coin.d.ts +3 -5
- package/dist/_generated/zing_studio/deps/sui/coin.js +3 -3
- package/dist/_generated/zing_studio/deps/sui/table.d.ts +21 -4
- package/dist/_generated/zing_studio/deps/sui/table.js +2 -3
- package/dist/_generated/zing_studio/deps/walrus/blob.d.ts +2 -6
- package/dist/_generated/zing_studio/deps/walrus/blob.js +1 -2
- package/dist/_generated/zing_studio/deps/walrus/storage_resource.d.ts +1 -3
- package/dist/_generated/zing_studio/deps/walrus/storage_resource.js +1 -2
- package/dist/_generated/zing_studio/deps/zing_framework/derived_object_bag.d.ts +1 -3
- package/dist/_generated/zing_studio/deps/zing_framework/derived_object_bag.js +1 -2
- package/dist/_generated/zing_studio/deps/zing_framework/derived_table.d.ts +2 -4
- package/dist/_generated/zing_studio/deps/zing_framework/derived_table.js +2 -3
- package/dist/_generated/zing_studio/donation.d.ts +6 -14
- package/dist/_generated/zing_studio/donation.js +2 -2
- package/dist/_generated/zing_studio/enclave.d.ts +17 -10
- package/dist/_generated/zing_studio/enclave.js +16 -41
- package/dist/_generated/zing_studio/referral.js +15 -46
- package/dist/_generated/zing_studio/storage.d.ts +13 -17
- package/dist/_generated/zing_studio/storage.js +46 -100
- package/dist/_generated/zing_studio/studio.d.ts +6 -28
- package/dist/_generated/zing_studio/studio.js +23 -96
- package/dist/client/index.d.ts +22 -56
- package/dist/client/index.js +4 -30
- package/dist/components/zing-provider.d.ts +2 -0
- package/dist/components/zing-provider.js +3 -2
- package/dist/getters.d.ts +17 -62
- package/dist/getters.js +62 -56
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/useGetStudio.d.ts +4 -10
- package/dist/hooks/useReclaim.d.ts +0 -10
- package/dist/hooks/useReclaim.js +169 -92
- package/dist/hooks/useSignAndExecuteTransaction.js +4 -1
- package/dist/hooks/useZingInfiniteQueries.d.ts +3 -9
- package/dist/hooks/useZingInfiniteQueries.js +1 -0
- package/dist/hooks/useZingQueries.d.ts +8 -27
- package/dist/hooks/useZingQueries.js +1 -2
- package/dist/hooks/useZingQuery.d.ts +11 -36
- package/dist/hooks/useZingQuery.js +1 -2
- package/dist/lib/utils/index.d.ts +0 -1
- package/dist/lib/utils/index.js +0 -1
- package/dist/lib/utils/reclaim.d.ts +1 -29
- package/dist/lib/utils/reclaim.js +148 -87
- package/dist/mutations/signer.js +1 -1
- package/dist/mutations/walrus.js +1 -1
- package/package.json +1 -1
- package/dist/_generated/zing_framework/deps/sui/object.d.ts +0 -8
- package/dist/_generated/zing_framework/deps/sui/object.js +0 -13
- package/dist/_generated/zing_governance/deps/sui/object.d.ts +0 -8
- package/dist/_generated/zing_governance/deps/sui/object.js +0 -13
- package/dist/_generated/zing_identity/config.d.ts +0 -87
- package/dist/_generated/zing_identity/config.js +0 -98
- package/dist/_generated/zing_identity/deps/std/type_name.d.ts +0 -17
- package/dist/_generated/zing_identity/deps/std/type_name.js +0 -22
- package/dist/_generated/zing_identity/deps/sui/object.d.ts +0 -8
- package/dist/_generated/zing_identity/deps/sui/object.js +0 -13
- package/dist/_generated/zing_identity/deps/sui/object_table.d.ts +0 -12
- package/dist/_generated/zing_identity/deps/sui/object_table.js +0 -23
- package/dist/_generated/zing_identity/deps/sui/table.d.ts +0 -12
- package/dist/_generated/zing_identity/deps/sui/table.js +0 -35
- package/dist/_generated/zing_identity/deps/sui/vec_set.d.ts +0 -17
- package/dist/_generated/zing_identity/deps/sui/vec_set.js +0 -22
- package/dist/_generated/zing_identity/ecdsa.d.ts +0 -81
- package/dist/_generated/zing_identity/ecdsa.js +0 -87
- package/dist/_generated/zing_identity/identity.d.ts +0 -262
- package/dist/_generated/zing_identity/identity.js +0 -294
- package/dist/_generated/zing_identity/reclaim.d.ts +0 -356
- package/dist/_generated/zing_identity/reclaim.js +0 -414
- package/dist/_generated/zing_studio/nitro_attestation.d.ts +0 -148
- package/dist/_generated/zing_studio/nitro_attestation.js +0 -183
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
3
|
**************************************************************/
|
|
4
4
|
import * as coin from "./deps/sui/coin.js";
|
|
5
|
-
import * as object from "./deps/sui/object.js";
|
|
6
5
|
import * as vec_map from "./deps/sui/vec_map.js";
|
|
7
6
|
import * as storage_resource from "./deps/walrus/storage_resource.js";
|
|
8
7
|
import { MoveStruct, normalizeMoveArguments } from "../utils/index.js";
|
|
@@ -66,7 +65,7 @@ export const TreasuryUsageBudget = new MoveStruct({
|
|
|
66
65
|
export const StorageTreasury = new MoveStruct({
|
|
67
66
|
name: `${$moduleName}::StorageTreasury`,
|
|
68
67
|
fields: {
|
|
69
|
-
id:
|
|
68
|
+
id: bcs.Address,
|
|
70
69
|
tier_plan: vec_map.VecMap(bcs.u8(), StorageTier),
|
|
71
70
|
/**
|
|
72
71
|
* Maps epoch number to storage resources available for that epoch Each epoch can
|
|
@@ -89,7 +88,7 @@ export const TreasuryUsage = new MoveStruct({
|
|
|
89
88
|
export const StorageSpace = new MoveStruct({
|
|
90
89
|
name: `${$moduleName}::StorageSpace`,
|
|
91
90
|
fields: {
|
|
92
|
-
id:
|
|
91
|
+
id: bcs.Address,
|
|
93
92
|
owner: bcs.Address,
|
|
94
93
|
/** Storage tier that determines the storage limit and pricing */
|
|
95
94
|
tier: bcs.option(bcs.u8()),
|
|
@@ -107,9 +106,7 @@ export const UsageReceipt = new MoveStruct({
|
|
|
107
106
|
});
|
|
108
107
|
export function treasuryUsageDuration(options) {
|
|
109
108
|
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
110
|
-
const argumentsTypes = [
|
|
111
|
-
`${packageAddress}::storage::TreasuryUsageBudget`,
|
|
112
|
-
];
|
|
109
|
+
const argumentsTypes = [null];
|
|
113
110
|
const parameterNames = ["treasuryUsageBudget"];
|
|
114
111
|
return (tx) => tx.moveCall({
|
|
115
112
|
package: packageAddress,
|
|
@@ -120,9 +117,7 @@ export function treasuryUsageDuration(options) {
|
|
|
120
117
|
}
|
|
121
118
|
export function treasuryUsageMaxBudget(options) {
|
|
122
119
|
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
123
|
-
const argumentsTypes = [
|
|
124
|
-
`${packageAddress}::storage::TreasuryUsageBudget`,
|
|
125
|
-
];
|
|
120
|
+
const argumentsTypes = [null];
|
|
126
121
|
const parameterNames = ["treasuryUsageBudget"];
|
|
127
122
|
return (tx) => tx.moveCall({
|
|
128
123
|
package: packageAddress,
|
|
@@ -133,9 +128,7 @@ export function treasuryUsageMaxBudget(options) {
|
|
|
133
128
|
}
|
|
134
129
|
export function tierPlan(options) {
|
|
135
130
|
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
136
|
-
const argumentsTypes = [
|
|
137
|
-
`${packageAddress}::storage::StorageTreasury`,
|
|
138
|
-
];
|
|
131
|
+
const argumentsTypes = [null];
|
|
139
132
|
const parameterNames = ["self"];
|
|
140
133
|
return (tx) => tx.moveCall({
|
|
141
134
|
package: packageAddress,
|
|
@@ -146,9 +139,7 @@ export function tierPlan(options) {
|
|
|
146
139
|
}
|
|
147
140
|
export function totalUsedStorageSizeByEpoch(options) {
|
|
148
141
|
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
149
|
-
const argumentsTypes = [
|
|
150
|
-
`${packageAddress}::storage::StorageTreasury`,
|
|
151
|
-
];
|
|
142
|
+
const argumentsTypes = [null];
|
|
152
143
|
const parameterNames = ["self"];
|
|
153
144
|
return (tx) => tx.moveCall({
|
|
154
145
|
package: packageAddress,
|
|
@@ -159,9 +150,7 @@ export function totalUsedStorageSizeByEpoch(options) {
|
|
|
159
150
|
}
|
|
160
151
|
export function storagesByEpoch(options) {
|
|
161
152
|
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
162
|
-
const argumentsTypes = [
|
|
163
|
-
`${packageAddress}::storage::StorageTreasury`,
|
|
164
|
-
];
|
|
153
|
+
const argumentsTypes = [null];
|
|
165
154
|
const parameterNames = ["self"];
|
|
166
155
|
return (tx) => tx.moveCall({
|
|
167
156
|
package: packageAddress,
|
|
@@ -172,9 +161,7 @@ export function storagesByEpoch(options) {
|
|
|
172
161
|
}
|
|
173
162
|
export function walTreasury(options) {
|
|
174
163
|
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
175
|
-
const argumentsTypes = [
|
|
176
|
-
`${packageAddress}::storage::StorageTreasury`,
|
|
177
|
-
];
|
|
164
|
+
const argumentsTypes = [null];
|
|
178
165
|
const parameterNames = ["self"];
|
|
179
166
|
return (tx) => tx.moveCall({
|
|
180
167
|
package: packageAddress,
|
|
@@ -185,9 +172,7 @@ export function walTreasury(options) {
|
|
|
185
172
|
}
|
|
186
173
|
export function walTreasuryUsageBudget(options) {
|
|
187
174
|
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
188
|
-
const argumentsTypes = [
|
|
189
|
-
`${packageAddress}::storage::StorageTreasury`,
|
|
190
|
-
];
|
|
175
|
+
const argumentsTypes = [null];
|
|
191
176
|
const parameterNames = ["self"];
|
|
192
177
|
return (tx) => tx.moveCall({
|
|
193
178
|
package: packageAddress,
|
|
@@ -198,9 +183,7 @@ export function walTreasuryUsageBudget(options) {
|
|
|
198
183
|
}
|
|
199
184
|
export function tierPrice(options) {
|
|
200
185
|
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
201
|
-
const argumentsTypes = [
|
|
202
|
-
`${packageAddress}::storage::StorageTier`,
|
|
203
|
-
];
|
|
186
|
+
const argumentsTypes = [null];
|
|
204
187
|
const parameterNames = ["tier"];
|
|
205
188
|
return (tx) => tx.moveCall({
|
|
206
189
|
package: packageAddress,
|
|
@@ -211,9 +194,7 @@ export function tierPrice(options) {
|
|
|
211
194
|
}
|
|
212
195
|
export function tierDurationDays(options) {
|
|
213
196
|
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
214
|
-
const argumentsTypes = [
|
|
215
|
-
`${packageAddress}::storage::StorageTier`,
|
|
216
|
-
];
|
|
197
|
+
const argumentsTypes = [null];
|
|
217
198
|
const parameterNames = ["tier"];
|
|
218
199
|
return (tx) => tx.moveCall({
|
|
219
200
|
package: packageAddress,
|
|
@@ -224,9 +205,7 @@ export function tierDurationDays(options) {
|
|
|
224
205
|
}
|
|
225
206
|
export function tierDuration(options) {
|
|
226
207
|
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
227
|
-
const argumentsTypes = [
|
|
228
|
-
`${packageAddress}::storage::StorageTier`,
|
|
229
|
-
];
|
|
208
|
+
const argumentsTypes = [null];
|
|
230
209
|
const parameterNames = ["tier"];
|
|
231
210
|
return (tx) => tx.moveCall({
|
|
232
211
|
package: packageAddress,
|
|
@@ -237,9 +216,7 @@ export function tierDuration(options) {
|
|
|
237
216
|
}
|
|
238
217
|
export function tierStorageLimit(options) {
|
|
239
218
|
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
240
|
-
const argumentsTypes = [
|
|
241
|
-
`${packageAddress}::storage::StorageTier`,
|
|
242
|
-
];
|
|
219
|
+
const argumentsTypes = [null];
|
|
243
220
|
const parameterNames = ["tier"];
|
|
244
221
|
return (tx) => tx.moveCall({
|
|
245
222
|
package: packageAddress,
|
|
@@ -250,9 +227,7 @@ export function tierStorageLimit(options) {
|
|
|
250
227
|
}
|
|
251
228
|
export function treasuryUsageAccumulatedBudget(options) {
|
|
252
229
|
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
253
|
-
const argumentsTypes = [
|
|
254
|
-
`${packageAddress}::storage::TreasuryUsage`,
|
|
255
|
-
];
|
|
230
|
+
const argumentsTypes = [null];
|
|
256
231
|
const parameterNames = ["treasuryUsage"];
|
|
257
232
|
return (tx) => tx.moveCall({
|
|
258
233
|
package: packageAddress,
|
|
@@ -263,9 +238,7 @@ export function treasuryUsageAccumulatedBudget(options) {
|
|
|
263
238
|
}
|
|
264
239
|
export function treasuryUsageStartAt(options) {
|
|
265
240
|
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
266
|
-
const argumentsTypes = [
|
|
267
|
-
`${packageAddress}::storage::TreasuryUsage`,
|
|
268
|
-
];
|
|
241
|
+
const argumentsTypes = [null];
|
|
269
242
|
const parameterNames = ["treasuryUsage"];
|
|
270
243
|
return (tx) => tx.moveCall({
|
|
271
244
|
package: packageAddress,
|
|
@@ -276,10 +249,7 @@ export function treasuryUsageStartAt(options) {
|
|
|
276
249
|
}
|
|
277
250
|
export function storageLimit(options) {
|
|
278
251
|
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
279
|
-
const argumentsTypes = [
|
|
280
|
-
`${packageAddress}::storage::StorageTreasury`,
|
|
281
|
-
`${packageAddress}::storage::StorageSpace`,
|
|
282
|
-
];
|
|
252
|
+
const argumentsTypes = [null, null];
|
|
283
253
|
const parameterNames = ["self", "storageSpace"];
|
|
284
254
|
return (tx) => tx.moveCall({
|
|
285
255
|
package: packageAddress,
|
|
@@ -290,9 +260,7 @@ export function storageLimit(options) {
|
|
|
290
260
|
}
|
|
291
261
|
export function owner(options) {
|
|
292
262
|
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
293
|
-
const argumentsTypes = [
|
|
294
|
-
`${packageAddress}::storage::StorageSpace`,
|
|
295
|
-
];
|
|
263
|
+
const argumentsTypes = [null];
|
|
296
264
|
const parameterNames = ["storageSpace"];
|
|
297
265
|
return (tx) => tx.moveCall({
|
|
298
266
|
package: packageAddress,
|
|
@@ -303,9 +271,7 @@ export function owner(options) {
|
|
|
303
271
|
}
|
|
304
272
|
export function tier(options) {
|
|
305
273
|
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
306
|
-
const argumentsTypes = [
|
|
307
|
-
`${packageAddress}::storage::StorageSpace`,
|
|
308
|
-
];
|
|
274
|
+
const argumentsTypes = [null];
|
|
309
275
|
const parameterNames = ["storageSpace"];
|
|
310
276
|
return (tx) => tx.moveCall({
|
|
311
277
|
package: packageAddress,
|
|
@@ -317,9 +283,7 @@ export function tier(options) {
|
|
|
317
283
|
/** Returns the storage limit for this storage space */
|
|
318
284
|
export function storageUsed(options) {
|
|
319
285
|
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
320
|
-
const argumentsTypes = [
|
|
321
|
-
`${packageAddress}::storage::StorageSpace`,
|
|
322
|
-
];
|
|
286
|
+
const argumentsTypes = [null];
|
|
323
287
|
const parameterNames = ["storageSpace"];
|
|
324
288
|
return (tx) => tx.moveCall({
|
|
325
289
|
package: packageAddress,
|
|
@@ -330,10 +294,7 @@ export function storageUsed(options) {
|
|
|
330
294
|
}
|
|
331
295
|
export function storageUsedByEpoch(options) {
|
|
332
296
|
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
333
|
-
const argumentsTypes = [
|
|
334
|
-
`${packageAddress}::storage::StorageSpace`,
|
|
335
|
-
"u32",
|
|
336
|
-
];
|
|
297
|
+
const argumentsTypes = [null, "u32"];
|
|
337
298
|
const parameterNames = ["storageSpace", "epoch"];
|
|
338
299
|
return (tx) => tx.moveCall({
|
|
339
300
|
package: packageAddress,
|
|
@@ -344,9 +305,7 @@ export function storageUsedByEpoch(options) {
|
|
|
344
305
|
}
|
|
345
306
|
export function credits(options) {
|
|
346
307
|
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
347
|
-
const argumentsTypes = [
|
|
348
|
-
`${packageAddress}::storage::StorageSpace`,
|
|
349
|
-
];
|
|
308
|
+
const argumentsTypes = [null];
|
|
350
309
|
const parameterNames = ["storageSpace"];
|
|
351
310
|
return (tx) => tx.moveCall({
|
|
352
311
|
package: packageAddress,
|
|
@@ -357,9 +316,7 @@ export function credits(options) {
|
|
|
357
316
|
}
|
|
358
317
|
export function storageSpaceTreasuryUsage(options) {
|
|
359
318
|
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
360
|
-
const argumentsTypes = [
|
|
361
|
-
`${packageAddress}::storage::StorageSpace`,
|
|
362
|
-
];
|
|
319
|
+
const argumentsTypes = [null];
|
|
363
320
|
const parameterNames = ["storageSpace"];
|
|
364
321
|
return (tx) => tx.moveCall({
|
|
365
322
|
package: packageAddress,
|
|
@@ -374,11 +331,7 @@ export function storageSpaceTreasuryUsage(options) {
|
|
|
374
331
|
*/
|
|
375
332
|
export function remainingStorage(options) {
|
|
376
333
|
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
377
|
-
const argumentsTypes = [
|
|
378
|
-
`${packageAddress}::storage::StorageTreasury`,
|
|
379
|
-
`${packageAddress}::storage::StorageSpace`,
|
|
380
|
-
"u32",
|
|
381
|
-
];
|
|
334
|
+
const argumentsTypes = [null, null, "u32"];
|
|
382
335
|
const parameterNames = ["self", "storageSpace", "epoch"];
|
|
383
336
|
return (tx) => tx.moveCall({
|
|
384
337
|
package: packageAddress,
|
|
@@ -390,8 +343,9 @@ export function remainingStorage(options) {
|
|
|
390
343
|
export function updateTierPlan(options) {
|
|
391
344
|
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
392
345
|
const argumentsTypes = [
|
|
393
|
-
|
|
394
|
-
|
|
346
|
+
null,
|
|
347
|
+
null,
|
|
348
|
+
null,
|
|
395
349
|
"u8",
|
|
396
350
|
"u64",
|
|
397
351
|
"u16",
|
|
@@ -399,6 +353,7 @@ export function updateTierPlan(options) {
|
|
|
399
353
|
];
|
|
400
354
|
const parameterNames = [
|
|
401
355
|
"self",
|
|
356
|
+
"config",
|
|
402
357
|
"Cap",
|
|
403
358
|
"tierIndex",
|
|
404
359
|
"price",
|
|
@@ -414,14 +369,15 @@ export function updateTierPlan(options) {
|
|
|
414
369
|
}
|
|
415
370
|
export function updateWalTreasuryUsageBudget(options) {
|
|
416
371
|
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
417
|
-
const argumentsTypes = [
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
"
|
|
421
|
-
"
|
|
422
|
-
"
|
|
372
|
+
const argumentsTypes = [null, null, null, "u8", "u64", "u64"];
|
|
373
|
+
const parameterNames = [
|
|
374
|
+
"self",
|
|
375
|
+
"config",
|
|
376
|
+
"Cap",
|
|
377
|
+
"tierIndex",
|
|
378
|
+
"duration",
|
|
379
|
+
"maxBudget",
|
|
423
380
|
];
|
|
424
|
-
const parameterNames = ["self", "Cap", "tierIndex", "duration", "maxBudget"];
|
|
425
381
|
return (tx) => tx.moveCall({
|
|
426
382
|
package: packageAddress,
|
|
427
383
|
module: "storage",
|
|
@@ -436,14 +392,15 @@ export function updateWalTreasuryUsageBudget(options) {
|
|
|
436
392
|
*/
|
|
437
393
|
export function removeStorageByAdmin(options) {
|
|
438
394
|
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
439
|
-
const argumentsTypes = [
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
"
|
|
444
|
-
"
|
|
395
|
+
const argumentsTypes = [null, null, null, null, "u32", "u64"];
|
|
396
|
+
const parameterNames = [
|
|
397
|
+
"self",
|
|
398
|
+
"walrusSystem",
|
|
399
|
+
"config",
|
|
400
|
+
"Cap",
|
|
401
|
+
"epoch",
|
|
402
|
+
"splitSize",
|
|
445
403
|
];
|
|
446
|
-
const parameterNames = ["self", "walrusSystem", "Cap", "epoch", "splitSize"];
|
|
447
404
|
return (tx) => tx.moveCall({
|
|
448
405
|
package: packageAddress,
|
|
449
406
|
module: "storage",
|
|
@@ -453,9 +410,7 @@ export function removeStorageByAdmin(options) {
|
|
|
453
410
|
}
|
|
454
411
|
export function shareStorageSpace(options) {
|
|
455
412
|
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
456
|
-
const argumentsTypes = [
|
|
457
|
-
`${packageAddress}::storage::StorageSpace`,
|
|
458
|
-
];
|
|
413
|
+
const argumentsTypes = [null];
|
|
459
414
|
const parameterNames = ["storageSpace"];
|
|
460
415
|
return (tx) => tx.moveCall({
|
|
461
416
|
package: packageAddress,
|
|
@@ -466,11 +421,7 @@ export function shareStorageSpace(options) {
|
|
|
466
421
|
}
|
|
467
422
|
export function fundWalTreasury(options) {
|
|
468
423
|
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
469
|
-
const argumentsTypes = [
|
|
470
|
-
`${packageAddress}::storage::StorageTreasury`,
|
|
471
|
-
`${packageAddress}::config::Config`,
|
|
472
|
-
`0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin<${packageAddress}::wal::WAL>`,
|
|
473
|
-
];
|
|
424
|
+
const argumentsTypes = [null, null, null];
|
|
474
425
|
const parameterNames = ["self", "config", "coin"];
|
|
475
426
|
return (tx) => tx.moveCall({
|
|
476
427
|
package: packageAddress,
|
|
@@ -481,12 +432,7 @@ export function fundWalTreasury(options) {
|
|
|
481
432
|
}
|
|
482
433
|
export function addStorageToTreasury(options) {
|
|
483
434
|
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
484
|
-
const argumentsTypes = [
|
|
485
|
-
`${packageAddress}::storage::StorageTreasury`,
|
|
486
|
-
`${packageAddress}::config::Config`,
|
|
487
|
-
`${packageAddress}::system::System`,
|
|
488
|
-
`${packageAddress}::storage_resource::Storage`,
|
|
489
|
-
];
|
|
435
|
+
const argumentsTypes = [null, null, null, null];
|
|
490
436
|
const parameterNames = ["self", "config", "walrusSystem", "storage"];
|
|
491
437
|
return (tx) => tx.moveCall({
|
|
492
438
|
package: packageAddress,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MoveTuple, MoveStruct } from "../utils/index.js";
|
|
2
2
|
import type { RawTransactionArgument } from "../utils/index.js";
|
|
3
3
|
import type { Transaction } from "@mysten/sui/transactions";
|
|
4
|
-
export declare const Period: MoveTuple<import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">
|
|
4
|
+
export declare const Period: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">, import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">], "@local-pkg/zing_studio::studio::Period">;
|
|
5
5
|
export declare const NewStudioEvent: MoveStruct<{
|
|
6
6
|
owner: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
7
7
|
studio_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
@@ -10,12 +10,10 @@ export declare const STUDIO: MoveStruct<{
|
|
|
10
10
|
dummy_field: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
11
11
|
}, "@local-pkg/zing_studio::studio::STUDIO">;
|
|
12
12
|
export declare const Studio: MoveStruct<{
|
|
13
|
-
id:
|
|
14
|
-
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
15
|
-
}, "0x2::object::UID">;
|
|
13
|
+
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
16
14
|
/** The owner of this studio - only they can add/remove works */
|
|
17
15
|
owner: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
18
|
-
period: MoveTuple<import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">
|
|
16
|
+
period: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">, import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">], "@local-pkg/zing_studio::studio::Period">;
|
|
19
17
|
/**
|
|
20
18
|
* The fee amount charged by creators for fans to access their content. (quoted in
|
|
21
19
|
* USD)
|
|
@@ -33,16 +31,12 @@ export declare const Studio: MoveStruct<{
|
|
|
33
31
|
}, "0x2::vec_map::VecMap<u8, u64>">;
|
|
34
32
|
/** membership of your studio and expired timestamp; none means permanent membership */
|
|
35
33
|
membership: MoveStruct<{
|
|
36
|
-
id:
|
|
37
|
-
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
38
|
-
}, "0x2::object::UID">;
|
|
34
|
+
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
39
35
|
size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
40
|
-
}, "zing_framework::derived_table::DerivedTable">;
|
|
36
|
+
}, "zing_framework::derived_table::DerivedTable<phantom K, phantom V>">;
|
|
41
37
|
/** Bag containing the actual asset objects, indexed by their IDs */
|
|
42
38
|
works: MoveStruct<{
|
|
43
|
-
id:
|
|
44
|
-
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
45
|
-
}, "0x2::object::UID">;
|
|
39
|
+
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
46
40
|
size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
47
41
|
}, "zing_framework::derived_object_bag::DerivedObjectBag">;
|
|
48
42
|
encrypted_file_key: import("@mysten/sui/bcs").BcsType<number[] | null, (Iterable<number> & {
|
|
@@ -194,22 +188,6 @@ export interface SealApproveStudioOwnerOptions {
|
|
|
194
188
|
];
|
|
195
189
|
}
|
|
196
190
|
export declare function sealApproveStudioOwner(options: SealApproveStudioOwnerOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
197
|
-
export interface SealApproveRegisteredEnclaveArguments {
|
|
198
|
-
id: RawTransactionArgument<number[]>;
|
|
199
|
-
config: RawTransactionArgument<string>;
|
|
200
|
-
self: RawTransactionArgument<string>;
|
|
201
|
-
enclave: RawTransactionArgument<string>;
|
|
202
|
-
}
|
|
203
|
-
export interface SealApproveRegisteredEnclaveOptions {
|
|
204
|
-
package?: string;
|
|
205
|
-
arguments: SealApproveRegisteredEnclaveArguments | [
|
|
206
|
-
id: RawTransactionArgument<number[]>,
|
|
207
|
-
config: RawTransactionArgument<string>,
|
|
208
|
-
self: RawTransactionArgument<string>,
|
|
209
|
-
enclave: RawTransactionArgument<string>
|
|
210
|
-
];
|
|
211
|
-
}
|
|
212
|
-
export declare function sealApproveRegisteredEnclave(options: SealApproveRegisteredEnclaveOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
213
191
|
export interface SealApproveManagerArguments {
|
|
214
192
|
id: RawTransactionArgument<number[]>;
|
|
215
193
|
config: RawTransactionArgument<string>;
|