@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
|
@@ -113,25 +113,25 @@ export function receiveAndDeposit(options) {
|
|
|
113
113
|
});
|
|
114
114
|
}
|
|
115
115
|
/**
|
|
116
|
-
* Redeem the
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
*
|
|
116
|
+
* Redeem `value` from the Composition's funds accumulator and deposit it into the
|
|
117
|
+
* canonical pool. Anyone may crank this after installation.
|
|
118
|
+
*
|
|
119
|
+
* A PTB can obtain `value` from `sui::balance::settled_funds_value` and pass that
|
|
120
|
+
* command result directly to this function.
|
|
121
121
|
*/
|
|
122
|
-
export function
|
|
122
|
+
export function redeemAndDeposit(options) {
|
|
123
123
|
const packageAddress = options.package ?? '@local-pkg/composition_royalty_pool';
|
|
124
124
|
const argumentsTypes = [
|
|
125
125
|
null,
|
|
126
126
|
null,
|
|
127
127
|
null,
|
|
128
|
-
|
|
128
|
+
'u64'
|
|
129
129
|
];
|
|
130
|
-
const parameterNames = ["vault", "composition", "pool", "
|
|
130
|
+
const parameterNames = ["vault", "composition", "pool", "value"];
|
|
131
131
|
return (tx) => tx.moveCall({
|
|
132
132
|
package: packageAddress,
|
|
133
133
|
module: 'composition_royalty_pool',
|
|
134
|
-
function: '
|
|
134
|
+
function: 'redeem_and_deposit',
|
|
135
135
|
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
136
136
|
typeArguments: options.typeArguments
|
|
137
137
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composition_royalty_pool.js","sourceRoot":"","sources":["../../../src/contracts/composition_royalty_pool/composition_royalty_pool.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;GAOG;AAEH,OAAO,EAA8C,MAAM,0BAA0B,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAA+B,MAAM,mBAAmB,CAAC;AAexF,gEAAgE;AAChE,MAAM,UAAU,OAAO,CAAC,OAAuB;IAC3C,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,IAAI,qCAAqC,CAAC;IAChF,MAAM,cAAc,GAAG;QACnB,IAAI;QACJ,IAAI;KACqB,CAAC;IAC9B,MAAM,cAAc,GAAG,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC;IAClD,OAAO,CAAC,EAAe,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC;QACpC,OAAO,EAAE,cAAc;QACvB,MAAM,EAAE,0BAA0B;QAClC,QAAQ,EAAE,SAAS;QACnB,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;QACpF,aAAa,EAAE,OAAO,CAAC,aAAa;KACvC,CAAC,CAAC;AACP,CAAC;AAeD,+DAA+D;AAC/D,MAAM,UAAU,SAAS,CAAC,OAAyB;IAC/C,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,IAAI,qCAAqC,CAAC;IAChF,MAAM,cAAc,GAAG;QACnB,IAAI;QACJ,IAAI;K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,QAAQ,CAAC;QACpC,OAAO,EAAE,cAAc;QACvB,MAAM,EAAE,0BAA0B;QAClC,QAAQ,EAAE,iBAAiB;QAC3B,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;QACpF,aAAa,EAAE,OAAO,CAAC,aAAa;KACvC,CAAC,CAAC;AACP,CAAC;AAoBD;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAAC,OAAiC;IAC/D,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,IAAI,qCAAqC,CAAC;IAChF,MAAM,cAAc,GAAG;QACnB,IAAI;QACJ,IAAI;QACJ,IAAI;QACJ,cAAc;KACW,CAAC;IAC9B,MAAM,cAAc,GAAG,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;IACjE,OAAO,CAAC,EAAe,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC;QACpC,OAAO,EAAE,cAAc;QACvB,MAAM,EAAE,0BAA0B;QAClC,QAAQ,EAAE,qBAAqB;QAC/B,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;QACpF,aAAa,EAAE,OAAO,CAAC,aAAa;KACvC,CAAC,CAAC;AACP,CAAC;AAoBD;;;;;;GAMG;AACH,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"composition_royalty_pool.js","sourceRoot":"","sources":["../../../src/contracts/composition_royalty_pool/composition_royalty_pool.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;GAOG;AAEH,OAAO,EAA8C,MAAM,0BAA0B,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAA+B,MAAM,mBAAmB,CAAC;AAexF,gEAAgE;AAChE,MAAM,UAAU,OAAO,CAAC,OAAuB;IAC3C,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,IAAI,qCAAqC,CAAC;IAChF,MAAM,cAAc,GAAG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AAM,UAAU,WAAW,CAAC,OAA2B;IACnD,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,IAAI,qCAAqC,CAAC;IAChF,MAAM,cAAc,GAAG;QACnB,IAAI;KACqB,CAAC;IAC9B,MAAM,cAAc,GAAG,CAAC,aAAa,CAAC,CAAC;IACvC,OAAO,CAAC,EAAe,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC;QACpC,OAAO,EAAE,cAAc;QACvB,MAAM,EAAE,0BAA0B;QAClC,QAAQ,EAAE,cAAc;QACxB,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;QACpF,aAAa,EAAE,OAAO,CAAC,aAAa;KACvC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type_name.d.ts","sourceRoot":"","sources":["../../../../../src/contracts/miso_record/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 @@
|
|
|
1
|
+
{"version":3,"file":"type_name.js","sourceRoot":"","sources":["../../../../../src/contracts/miso_record/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,21 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
import { type BcsType } from '@mysten/sui/bcs';
|
|
5
|
+
import { MoveStruct } from '../../../utils/index.js';
|
|
6
|
+
/**
|
|
7
|
+
* A set data structure backed by a vector. The set is guaranteed not to contain
|
|
8
|
+
* duplicate keys. All operations are O(N) in the size of the set
|
|
9
|
+
*
|
|
10
|
+
* - the intention of this data structure is only to provide the convenience of
|
|
11
|
+
* programming against a set API. Sets that need sorted iteration rather than
|
|
12
|
+
* insertion order iteration should be handwritten.
|
|
13
|
+
*/
|
|
14
|
+
export declare function VecSet<K extends BcsType<any>>(...typeParameters: [
|
|
15
|
+
K
|
|
16
|
+
]): MoveStruct<{
|
|
17
|
+
contents: BcsType<import("@mysten/bcs").InferBcsType<K>[], Iterable<import("@mysten/bcs").InferBcsInput<K>> & {
|
|
18
|
+
length: number;
|
|
19
|
+
}, string>;
|
|
20
|
+
}, `0x2::vec_set::VecSet<${K["name"]}>`>;
|
|
21
|
+
//# sourceMappingURL=vec_set.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vec_set.d.ts","sourceRoot":"","sources":["../../../../../src/contracts/miso_record/deps/sui/vec_set.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAChE,OAAO,EAAE,KAAK,OAAO,EAAO,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD;;;;;;;GAOG;AACH,wBAAgB,MAAM,CAAC,CAAC,SAAS,OAAO,CAAC,GAAG,CAAC,EAAE,GAAG,cAAc,EAAE;IAC9D,CAAC;CACJ;;;;yCAIA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
import { bcs } from '@mysten/sui/bcs';
|
|
5
|
+
import { MoveStruct } from '../../../utils/index.js';
|
|
6
|
+
const $moduleName = '0x2::vec_set';
|
|
7
|
+
/**
|
|
8
|
+
* A set data structure backed by a vector. The set is guaranteed not to contain
|
|
9
|
+
* duplicate keys. All operations are O(N) in the size of the set
|
|
10
|
+
*
|
|
11
|
+
* - the intention of this data structure is only to provide the convenience of
|
|
12
|
+
* programming against a set API. Sets that need sorted iteration rather than
|
|
13
|
+
* insertion order iteration should be handwritten.
|
|
14
|
+
*/
|
|
15
|
+
export function VecSet(...typeParameters) {
|
|
16
|
+
return new MoveStruct({ name: `${$moduleName}::VecSet<${typeParameters[0].name}>`, fields: {
|
|
17
|
+
contents: bcs.vector(typeParameters[0])
|
|
18
|
+
} });
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=vec_set.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vec_set.js","sourceRoot":"","sources":["../../../../../src/contracts/miso_record/deps/sui/vec_set.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAChE,OAAO,EAAgB,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,MAAM,WAAW,GAAG,cAAc,CAAC;AACnC;;;;;;;GAOG;AACH,MAAM,UAAU,MAAM,CAAyB,GAAG,cAEjD;IACG,OAAO,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,YAAY,cAAc,CAAC,CAAC,CAAC,CAAC,IAAiB,GAAG,EAAE,MAAM,EAAE;YAChG,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;SAC1C,EAAE,CAAC,CAAC;AACb,CAAC"}
|
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/**
|
|
5
|
+
* One edition of a Miso release and the complete lifecycle boundary for its
|
|
6
|
+
* Records.
|
|
7
|
+
*
|
|
8
|
+
* A release may have many Pressings, one at each `PressingKey(edition)`. Each
|
|
9
|
+
* Pressing owns an independent Record sequence, an optional immutable maximum
|
|
10
|
+
* supply, and the set of distributor witness types allowed to mint from that
|
|
11
|
+
* edition. Distributors own delivery mechanics; the Pressing owns issuance.
|
|
12
|
+
*/
|
|
13
|
+
import { MoveTuple, MoveStruct, type RawTransactionArgument } from '../utils/index.js';
|
|
14
|
+
import { type BcsType } from '@mysten/sui/bcs';
|
|
15
|
+
import { type Transaction } from '@mysten/sui/transactions';
|
|
16
|
+
export declare const PressingKey: MoveTuple<readonly [BcsType<number, number, "u16">], "@local-pkg/miso_record::pressing::PressingKey">;
|
|
17
|
+
export declare const PressingAdminCapKey: MoveTuple<readonly [BcsType<boolean, boolean, "bool">], "@local-pkg/miso_record::pressing::PressingAdminCapKey">;
|
|
18
|
+
export declare const Pressing: MoveStruct<{
|
|
19
|
+
/** The Pressing's derived object identity. */
|
|
20
|
+
id: BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
21
|
+
/** The parent release represented by this edition. */
|
|
22
|
+
release_id: BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
23
|
+
/** The edition number. */
|
|
24
|
+
edition: BcsType<number, number, "u16">;
|
|
25
|
+
/** The number of Records issued by this Pressing. */
|
|
26
|
+
supply: BcsType<number, number, "u32">;
|
|
27
|
+
/** The immutable supply ceiling, or `none()` for an uncapped Pressing. */
|
|
28
|
+
max_supply: BcsType<number | null, number | null | undefined, "Option<u32>">;
|
|
29
|
+
/** The defining types of distributors currently permitted to mint. */
|
|
30
|
+
distributors: MoveStruct<{
|
|
31
|
+
contents: BcsType<{
|
|
32
|
+
name: string;
|
|
33
|
+
}[], Iterable<{
|
|
34
|
+
name: string;
|
|
35
|
+
}> & {
|
|
36
|
+
length: number;
|
|
37
|
+
}, string>;
|
|
38
|
+
}, "0x2::vec_set::VecSet<std::type_name::TypeName>">;
|
|
39
|
+
}, "@local-pkg/miso_record::pressing::Pressing">;
|
|
40
|
+
export declare const PressingAdminCap: MoveStruct<{
|
|
41
|
+
/** The capability's derived object identity. */
|
|
42
|
+
id: BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
43
|
+
/** The Pressing controlled by this capability. */
|
|
44
|
+
pressing_id: BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
45
|
+
}, "@local-pkg/miso_record::pressing::PressingAdminCap">;
|
|
46
|
+
export declare const PressingCreatedEvent: MoveStruct<{
|
|
47
|
+
/** The newly created Pressing. */
|
|
48
|
+
pressing_id: BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
49
|
+
/** The parent release. */
|
|
50
|
+
release_id: BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
51
|
+
/** The Pressing's edition number. */
|
|
52
|
+
edition: BcsType<number, number, "u16">;
|
|
53
|
+
/** The immutable supply ceiling, if one exists. */
|
|
54
|
+
max_supply: BcsType<number | null, number | null | undefined, "Option<u32>">;
|
|
55
|
+
}, "@local-pkg/miso_record::pressing::PressingCreatedEvent">;
|
|
56
|
+
export declare const DistributorAuthorizedEvent: MoveStruct<{
|
|
57
|
+
/** The configured Pressing. */
|
|
58
|
+
pressing_id: BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
59
|
+
/** The authorized distributor's defining type. */
|
|
60
|
+
distributor: MoveStruct<{
|
|
61
|
+
name: BcsType<string, string, "string">;
|
|
62
|
+
}, "std::type_name::TypeName">;
|
|
63
|
+
}, "@local-pkg/miso_record::pressing::DistributorAuthorizedEvent">;
|
|
64
|
+
export declare const DistributorRevokedEvent: MoveStruct<{
|
|
65
|
+
/** The configured Pressing. */
|
|
66
|
+
pressing_id: BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
67
|
+
/** The revoked distributor's defining type. */
|
|
68
|
+
distributor: MoveStruct<{
|
|
69
|
+
name: BcsType<string, string, "string">;
|
|
70
|
+
}, "std::type_name::TypeName">;
|
|
71
|
+
}, "@local-pkg/miso_record::pressing::DistributorRevokedEvent">;
|
|
72
|
+
export declare const RecordPurchasedEvent: MoveStruct<{
|
|
73
|
+
/** The purchased Record. */
|
|
74
|
+
record_id: BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
75
|
+
/** The release represented by the Record. */
|
|
76
|
+
release_id: BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
77
|
+
/** The Pressing that issued the Record. */
|
|
78
|
+
pressing_id: BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
79
|
+
/** The edition represented by the Pressing. */
|
|
80
|
+
edition: BcsType<number, number, "u16">;
|
|
81
|
+
/** The Record's number within its edition. */
|
|
82
|
+
number: BcsType<number, number, "u32">;
|
|
83
|
+
/** The defining type of the purchase currency. */
|
|
84
|
+
purchase_currency: MoveStruct<{
|
|
85
|
+
name: BcsType<string, string, "string">;
|
|
86
|
+
}, "std::type_name::TypeName">;
|
|
87
|
+
/** The amount paid for the Record. */
|
|
88
|
+
purchase_price: BcsType<string, string | number | bigint, "u64">;
|
|
89
|
+
/** The transaction sender who purchased the Record. */
|
|
90
|
+
purchased_by: BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
91
|
+
/** The purchase time in Unix milliseconds from Sui's Clock. */
|
|
92
|
+
purchased_timestamp_ms: BcsType<string, string | number | bigint, "u64">;
|
|
93
|
+
/** The defining type of the distributor that authorized the mint. */
|
|
94
|
+
distributor: MoveStruct<{
|
|
95
|
+
name: BcsType<string, string, "string">;
|
|
96
|
+
}, "std::type_name::TypeName">;
|
|
97
|
+
}, "@local-pkg/miso_record::pressing::RecordPurchasedEvent">;
|
|
98
|
+
export interface NewArguments {
|
|
99
|
+
release: RawTransactionArgument<string>;
|
|
100
|
+
releaseCap: RawTransactionArgument<string>;
|
|
101
|
+
edition: RawTransactionArgument<number>;
|
|
102
|
+
maxSupply: RawTransactionArgument<number | null>;
|
|
103
|
+
}
|
|
104
|
+
export interface NewOptions {
|
|
105
|
+
package?: string;
|
|
106
|
+
arguments: NewArguments | [
|
|
107
|
+
release: RawTransactionArgument<string>,
|
|
108
|
+
releaseCap: RawTransactionArgument<string>,
|
|
109
|
+
edition: RawTransactionArgument<number>,
|
|
110
|
+
maxSupply: RawTransactionArgument<number | null>
|
|
111
|
+
];
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Create one edition's Pressing under its Release.
|
|
115
|
+
*
|
|
116
|
+
* `max_supply = none()` creates an uncapped edition; `some(quantity)` creates a
|
|
117
|
+
* permanently capped edition. The Pressing and its admin capability are returned
|
|
118
|
+
* for composition before the caller shares the Pressing and custodies the
|
|
119
|
+
* capability.
|
|
120
|
+
*/
|
|
121
|
+
export declare function _new(options: NewOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
122
|
+
export interface ShareArguments {
|
|
123
|
+
self: RawTransactionArgument<string>;
|
|
124
|
+
}
|
|
125
|
+
export interface ShareOptions {
|
|
126
|
+
package?: string;
|
|
127
|
+
arguments: ShareArguments | [
|
|
128
|
+
self: RawTransactionArgument<string>
|
|
129
|
+
];
|
|
130
|
+
}
|
|
131
|
+
/** Share a newly created Pressing after configuring its distributors. */
|
|
132
|
+
export declare function share(options: ShareOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
133
|
+
export interface AuthorizeDistributorArguments {
|
|
134
|
+
self: RawTransactionArgument<string>;
|
|
135
|
+
cap: RawTransactionArgument<string>;
|
|
136
|
+
}
|
|
137
|
+
export interface AuthorizeDistributorOptions {
|
|
138
|
+
package?: string;
|
|
139
|
+
arguments: AuthorizeDistributorArguments | [
|
|
140
|
+
self: RawTransactionArgument<string>,
|
|
141
|
+
cap: RawTransactionArgument<string>
|
|
142
|
+
];
|
|
143
|
+
typeArguments: [
|
|
144
|
+
string
|
|
145
|
+
];
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Authorize distributor witness type `Distributor` for this edition. Reauthorizing
|
|
149
|
+
* an existing distributor is a no-op.
|
|
150
|
+
*/
|
|
151
|
+
export declare function authorizeDistributor(options: AuthorizeDistributorOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
152
|
+
export interface RevokeDistributorArguments {
|
|
153
|
+
self: RawTransactionArgument<string>;
|
|
154
|
+
cap: RawTransactionArgument<string>;
|
|
155
|
+
}
|
|
156
|
+
export interface RevokeDistributorOptions {
|
|
157
|
+
package?: string;
|
|
158
|
+
arguments: RevokeDistributorArguments | [
|
|
159
|
+
self: RawTransactionArgument<string>,
|
|
160
|
+
cap: RawTransactionArgument<string>
|
|
161
|
+
];
|
|
162
|
+
typeArguments: [
|
|
163
|
+
string
|
|
164
|
+
];
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Revoke distributor witness type `Distributor` for this edition. Revoking a
|
|
168
|
+
* missing distributor is a no-op.
|
|
169
|
+
*/
|
|
170
|
+
export declare function revokeDistributor(options: RevokeDistributorOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
171
|
+
export interface MintArguments<Distributor extends BcsType<any>> {
|
|
172
|
+
self: RawTransactionArgument<string>;
|
|
173
|
+
Distributor: RawTransactionArgument<Distributor>;
|
|
174
|
+
purchasePrice: RawTransactionArgument<number | bigint>;
|
|
175
|
+
}
|
|
176
|
+
export interface MintOptions<Distributor extends BcsType<any>> {
|
|
177
|
+
package?: string;
|
|
178
|
+
arguments: MintArguments<Distributor> | [
|
|
179
|
+
self: RawTransactionArgument<string>,
|
|
180
|
+
Distributor: RawTransactionArgument<Distributor>,
|
|
181
|
+
purchasePrice: RawTransactionArgument<number | bigint>
|
|
182
|
+
];
|
|
183
|
+
typeArguments: [
|
|
184
|
+
string,
|
|
185
|
+
string
|
|
186
|
+
];
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Purchase the next Record by consuming an authorized distributor witness.
|
|
190
|
+
*
|
|
191
|
+
* The Record number is allocated here and cannot be selected by the caller. The
|
|
192
|
+
* returned Record remains composable: the distributor decides whether to transfer,
|
|
193
|
+
* wrap, freeze, or otherwise deliver it.
|
|
194
|
+
*/
|
|
195
|
+
export declare function mint<Distributor extends BcsType<any>>(options: MintOptions<Distributor>): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
196
|
+
export interface UidArguments {
|
|
197
|
+
self: RawTransactionArgument<string>;
|
|
198
|
+
}
|
|
199
|
+
export interface UidOptions {
|
|
200
|
+
package?: string;
|
|
201
|
+
arguments: UidArguments | [
|
|
202
|
+
self: RawTransactionArgument<string>
|
|
203
|
+
];
|
|
204
|
+
}
|
|
205
|
+
/** Borrow the Pressing UID for read-only extensions. */
|
|
206
|
+
export declare function uid(options: UidOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
207
|
+
export interface UidMutArguments {
|
|
208
|
+
self: RawTransactionArgument<string>;
|
|
209
|
+
cap: RawTransactionArgument<string>;
|
|
210
|
+
}
|
|
211
|
+
export interface UidMutOptions {
|
|
212
|
+
package?: string;
|
|
213
|
+
arguments: UidMutArguments | [
|
|
214
|
+
self: RawTransactionArgument<string>,
|
|
215
|
+
cap: RawTransactionArgument<string>
|
|
216
|
+
];
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Mutably access the Pressing UID for cap-authorized extensions, including
|
|
220
|
+
* distributor-owned objects derived from this edition.
|
|
221
|
+
*/
|
|
222
|
+
export declare function uidMut(options: UidMutOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
223
|
+
export interface ReleaseIdArguments {
|
|
224
|
+
self: RawTransactionArgument<string>;
|
|
225
|
+
}
|
|
226
|
+
export interface ReleaseIdOptions {
|
|
227
|
+
package?: string;
|
|
228
|
+
arguments: ReleaseIdArguments | [
|
|
229
|
+
self: RawTransactionArgument<string>
|
|
230
|
+
];
|
|
231
|
+
}
|
|
232
|
+
/** Return the release represented by this Pressing. */
|
|
233
|
+
export declare function releaseId(options: ReleaseIdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
234
|
+
export interface EditionArguments {
|
|
235
|
+
self: RawTransactionArgument<string>;
|
|
236
|
+
}
|
|
237
|
+
export interface EditionOptions {
|
|
238
|
+
package?: string;
|
|
239
|
+
arguments: EditionArguments | [
|
|
240
|
+
self: RawTransactionArgument<string>
|
|
241
|
+
];
|
|
242
|
+
}
|
|
243
|
+
/** Return this Pressing's edition number. */
|
|
244
|
+
export declare function edition(options: EditionOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
245
|
+
export interface SupplyArguments {
|
|
246
|
+
self: RawTransactionArgument<string>;
|
|
247
|
+
}
|
|
248
|
+
export interface SupplyOptions {
|
|
249
|
+
package?: string;
|
|
250
|
+
arguments: SupplyArguments | [
|
|
251
|
+
self: RawTransactionArgument<string>
|
|
252
|
+
];
|
|
253
|
+
}
|
|
254
|
+
/** Return the number of Records issued by this Pressing. */
|
|
255
|
+
export declare function supply(options: SupplyOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
256
|
+
export interface MaxSupplyArguments {
|
|
257
|
+
self: RawTransactionArgument<string>;
|
|
258
|
+
}
|
|
259
|
+
export interface MaxSupplyOptions {
|
|
260
|
+
package?: string;
|
|
261
|
+
arguments: MaxSupplyArguments | [
|
|
262
|
+
self: RawTransactionArgument<string>
|
|
263
|
+
];
|
|
264
|
+
}
|
|
265
|
+
/** Return the immutable supply ceiling, if one exists. */
|
|
266
|
+
export declare function maxSupply(options: MaxSupplyOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
267
|
+
export interface DistributorsArguments {
|
|
268
|
+
self: RawTransactionArgument<string>;
|
|
269
|
+
}
|
|
270
|
+
export interface DistributorsOptions {
|
|
271
|
+
package?: string;
|
|
272
|
+
arguments: DistributorsArguments | [
|
|
273
|
+
self: RawTransactionArgument<string>
|
|
274
|
+
];
|
|
275
|
+
}
|
|
276
|
+
/** Borrow the defining types of all currently authorized distributors. */
|
|
277
|
+
export declare function distributors(options: DistributorsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
278
|
+
export interface IsDistributorAuthorizedArguments {
|
|
279
|
+
self: RawTransactionArgument<string>;
|
|
280
|
+
}
|
|
281
|
+
export interface IsDistributorAuthorizedOptions {
|
|
282
|
+
package?: string;
|
|
283
|
+
arguments: IsDistributorAuthorizedArguments | [
|
|
284
|
+
self: RawTransactionArgument<string>
|
|
285
|
+
];
|
|
286
|
+
typeArguments: [
|
|
287
|
+
string
|
|
288
|
+
];
|
|
289
|
+
}
|
|
290
|
+
/** Return whether `Distributor` is currently authorized to mint. */
|
|
291
|
+
export declare function isDistributorAuthorized(options: IsDistributorAuthorizedOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
292
|
+
export interface PressingIdArguments {
|
|
293
|
+
cap: RawTransactionArgument<string>;
|
|
294
|
+
}
|
|
295
|
+
export interface PressingIdOptions {
|
|
296
|
+
package?: string;
|
|
297
|
+
arguments: PressingIdArguments | [
|
|
298
|
+
cap: RawTransactionArgument<string>
|
|
299
|
+
];
|
|
300
|
+
}
|
|
301
|
+
/** Return the Pressing controlled by this capability. */
|
|
302
|
+
export declare function pressingId(options: PressingIdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
303
|
+
export interface DeriveAddressArguments {
|
|
304
|
+
releaseId: RawTransactionArgument<string>;
|
|
305
|
+
edition: RawTransactionArgument<number>;
|
|
306
|
+
}
|
|
307
|
+
export interface DeriveAddressOptions {
|
|
308
|
+
package?: string;
|
|
309
|
+
arguments: DeriveAddressArguments | [
|
|
310
|
+
releaseId: RawTransactionArgument<string>,
|
|
311
|
+
edition: RawTransactionArgument<number>
|
|
312
|
+
];
|
|
313
|
+
}
|
|
314
|
+
/** Derive an edition's Pressing address from its Release ID. */
|
|
315
|
+
export declare function deriveAddress(options: DeriveAddressOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
316
|
+
export interface DeriveAdminCapAddressArguments {
|
|
317
|
+
pressingId: RawTransactionArgument<string>;
|
|
318
|
+
}
|
|
319
|
+
export interface DeriveAdminCapAddressOptions {
|
|
320
|
+
package?: string;
|
|
321
|
+
arguments: DeriveAdminCapAddressArguments | [
|
|
322
|
+
pressingId: RawTransactionArgument<string>
|
|
323
|
+
];
|
|
324
|
+
}
|
|
325
|
+
/** Derive a Pressing's admin capability address. */
|
|
326
|
+
export declare function deriveAdminCapAddress(options: DeriveAdminCapAddressOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
327
|
+
//# sourceMappingURL=pressing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pressing.d.ts","sourceRoot":"","sources":["../../../src/contracts/miso_record/pressing.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;GAQG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAA0B,KAAK,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC/G,OAAO,EAAO,KAAK,OAAO,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAI5D,eAAO,MAAM,WAAW,uGAA8E,CAAC;AACvG,eAAO,MAAM,mBAAmB,kHAAuF,CAAC;AACxH,eAAO,MAAM,QAAQ;IACb,8CAA8C;;IAE9C,sDAAsD;;IAEtD,0BAA0B;;IAE1B,qDAAqD;;IAErD,0EAA0E;;IAE1E,sEAAsE;;;;;;;;;;gDAEtE,CAAC;AACT,eAAO,MAAM,gBAAgB;IACrB,gDAAgD;;IAEhD,kDA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