@misonetwork/sdk 0.8.0 → 0.9.1
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 +48 -38
- package/dist/client.d.ts +3 -17
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +18 -3
- package/dist/client.js.map +1 -1
- package/dist/contracts/miso/composition.d.ts +0 -14
- package/dist/contracts/miso/composition.d.ts.map +1 -1
- package/dist/contracts/miso/composition.js +0 -15
- package/dist/contracts/miso/composition.js.map +1 -1
- package/dist/contracts/miso/recording.d.ts +0 -15
- package/dist/contracts/miso/recording.d.ts.map +1 -1
- package/dist/contracts/miso/recording.js +0 -15
- package/dist/contracts/miso/recording.js.map +1 -1
- package/dist/contracts/miso/release.d.ts +0 -11
- package/dist/contracts/miso/release.d.ts.map +1 -1
- package/dist/contracts/miso/release.js +0 -14
- package/dist/contracts/miso/release.js.map +1 -1
- package/dist/contracts/miso_party/deps/sui/vec_set.d.ts +21 -0
- package/dist/contracts/miso_party/deps/sui/vec_set.d.ts.map +1 -0
- package/dist/contracts/miso_party/deps/sui/vec_set.js +20 -0
- package/dist/contracts/miso_party/deps/sui/vec_set.js.map +1 -0
- package/dist/contracts/miso_party/party.d.ts +481 -0
- package/dist/contracts/miso_party/party.d.ts.map +1 -0
- package/dist/contracts/miso_party/party.js +527 -0
- package/dist/contracts/miso_party/party.js.map +1 -0
- package/dist/contracts/party_cta/party_cta.d.ts +120 -0
- package/dist/contracts/party_cta/party_cta.d.ts.map +1 -0
- package/dist/contracts/party_cta/party_cta.js +139 -0
- package/dist/contracts/party_cta/party_cta.js.map +1 -0
- package/dist/contracts/party_genre/party_genre.d.ts +117 -0
- package/dist/contracts/party_genre/party_genre.d.ts.map +1 -0
- package/dist/contracts/party_genre/party_genre.js +131 -0
- package/dist/contracts/party_genre/party_genre.js.map +1 -0
- package/dist/contracts/party_media/party_media.d.ts +86 -0
- package/dist/contracts/party_media/party_media.d.ts.map +1 -0
- package/dist/contracts/party_media/party_media.js +97 -0
- package/dist/contracts/party_media/party_media.js.map +1 -0
- package/dist/contracts/party_music/party_music.d.ts +209 -0
- package/dist/contracts/party_music/party_music.d.ts.map +1 -0
- package/dist/contracts/party_music/party_music.js +259 -0
- package/dist/contracts/party_music/party_music.js.map +1 -0
- package/dist/contracts/party_platform_link/party_platform_link.d.ts +89 -0
- package/dist/contracts/party_platform_link/party_platform_link.d.ts.map +1 -0
- package/dist/contracts/party_platform_link/party_platform_link.js +92 -0
- package/dist/contracts/party_platform_link/party_platform_link.js.map +1 -0
- package/dist/contracts/party_pro_link/party_pro_link.d.ts +233 -0
- package/dist/contracts/party_pro_link/party_pro_link.d.ts.map +1 -0
- package/dist/contracts/party_pro_link/party_pro_link.js +289 -0
- package/dist/contracts/party_pro_link/party_pro_link.js.map +1 -0
- package/dist/contracts/party_profile/deps/country_code/country_code.d.ts +15 -0
- package/dist/contracts/party_profile/deps/country_code/country_code.d.ts.map +1 -0
- package/dist/contracts/party_profile/deps/country_code/country_code.js +17 -0
- package/dist/contracts/party_profile/deps/country_code/country_code.js.map +1 -0
- package/dist/contracts/party_profile/deps/language_code/language_code.d.ts +6 -0
- package/dist/contracts/party_profile/deps/language_code/language_code.d.ts.map +1 -0
- package/dist/contracts/party_profile/deps/language_code/language_code.js +8 -0
- package/dist/contracts/party_profile/deps/language_code/language_code.js.map +1 -0
- package/dist/contracts/party_profile/party_profile.d.ts +133 -0
- package/dist/contracts/party_profile/party_profile.d.ts.map +1 -0
- package/dist/contracts/party_profile/party_profile.js +153 -0
- package/dist/contracts/party_profile/party_profile.js.map +1 -0
- package/dist/contracts/party_roles/party_roles.d.ts +201 -0
- package/dist/contracts/party_roles/party_roles.d.ts.map +1 -0
- package/dist/contracts/party_roles/party_roles.js +237 -0
- package/dist/contracts/party_roles/party_roles.js.map +1 -0
- package/dist/contracts/party_social/party_social.d.ts +258 -0
- package/dist/contracts/party_social/party_social.d.ts.map +1 -0
- package/dist/contracts/party_social/party_social.js +320 -0
- package/dist/contracts/party_social/party_social.js.map +1 -0
- package/dist/contracts/party_tags/party_tags.d.ts +116 -0
- package/dist/contracts/party_tags/party_tags.d.ts.map +1 -0
- package/dist/contracts/party_tags/party_tags.js +130 -0
- package/dist/contracts/party_tags/party_tags.js.map +1 -0
- package/dist/contracts/routed_stake/routed_stake.d.ts +0 -14
- package/dist/contracts/routed_stake/routed_stake.d.ts.map +1 -1
- package/dist/contracts/routed_stake/routed_stake.js +0 -14
- package/dist/contracts/routed_stake/routed_stake.js.map +1 -1
- package/dist/contracts/royalty_pool/pool.d.ts +0 -14
- package/dist/contracts/royalty_pool/pool.d.ts.map +1 -1
- package/dist/contracts/royalty_pool/pool.js +0 -14
- package/dist/contracts/royalty_pool/pool.js.map +1 -1
- package/dist/contracts/royalty_pool/stake.d.ts +6 -13
- package/dist/contracts/royalty_pool/stake.d.ts.map +1 -1
- package/dist/contracts/royalty_pool/stake.js +6 -14
- package/dist/contracts/royalty_pool/stake.js.map +1 -1
- package/dist/contracts.d.ts +13 -2
- package/dist/contracts.d.ts.map +1 -1
- package/dist/contracts.js +14 -2
- package/dist/contracts.js.map +1 -1
- package/dist/deployments.d.ts +73 -14
- package/dist/deployments.d.ts.map +1 -1
- package/dist/deployments.js +53 -13
- package/dist/deployments.js.map +1 -1
- package/dist/events.d.ts +0 -14
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +0 -4
- package/dist/events.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/packages.d.ts +39 -4
- package/dist/packages.d.ts.map +1 -1
- package/dist/packages.js +39 -4
- package/dist/packages.js.map +1 -1
- package/dist/party/client.d.ts +233 -0
- package/dist/party/client.d.ts.map +1 -0
- package/dist/party/client.js +222 -0
- package/dist/party/client.js.map +1 -0
- package/dist/party/extensions/ctas.d.ts +19 -0
- package/dist/party/extensions/ctas.d.ts.map +1 -0
- package/dist/party/extensions/ctas.js +25 -0
- package/dist/party/extensions/ctas.js.map +1 -0
- package/dist/party/extensions/genres.d.ts +27 -0
- package/dist/party/extensions/genres.d.ts.map +1 -0
- package/dist/party/extensions/genres.js +31 -0
- package/dist/party/extensions/genres.js.map +1 -0
- package/dist/party/extensions/links.d.ts +65 -0
- package/dist/party/extensions/links.d.ts.map +1 -0
- package/dist/party/extensions/links.js +117 -0
- package/dist/party/extensions/links.js.map +1 -0
- package/dist/party/extensions/media.d.ts +36 -0
- package/dist/party/extensions/media.d.ts.map +1 -0
- package/dist/party/extensions/media.js +45 -0
- package/dist/party/extensions/media.js.map +1 -0
- package/dist/party/extensions/profile.d.ts +24 -0
- package/dist/party/extensions/profile.d.ts.map +1 -0
- package/dist/party/extensions/profile.js +48 -0
- package/dist/party/extensions/profile.js.map +1 -0
- package/dist/party/extensions/roles.d.ts +37 -0
- package/dist/party/extensions/roles.d.ts.map +1 -0
- package/dist/party/extensions/roles.js +46 -0
- package/dist/party/extensions/roles.js.map +1 -0
- package/dist/party/extensions/tags.d.ts +25 -0
- package/dist/party/extensions/tags.d.ts.map +1 -0
- package/dist/party/extensions/tags.js +25 -0
- package/dist/party/extensions/tags.js.map +1 -0
- package/dist/party/index.d.ts +12 -0
- package/dist/party/index.d.ts.map +1 -0
- package/dist/party/index.js +14 -0
- package/dist/party/index.js.map +1 -0
- package/dist/party/internal.d.ts +15 -0
- package/dist/party/internal.d.ts.map +1 -0
- package/dist/party/internal.js +103 -0
- package/dist/party/internal.js.map +1 -0
- package/dist/party/queries.d.ts +38 -0
- package/dist/party/queries.d.ts.map +1 -0
- package/dist/party/queries.js +232 -0
- package/dist/party/queries.js.map +1 -0
- package/dist/party/transactions.d.ts +74 -0
- package/dist/party/transactions.d.ts.map +1 -0
- package/dist/party/transactions.js +85 -0
- package/dist/party/transactions.js.map +1 -0
- package/dist/party/types.d.ts +54 -0
- package/dist/party/types.d.ts.map +1 -0
- package/dist/party/types.js +4 -0
- package/dist/party/types.js.map +1 -0
- package/package.json +6 -2
- package/src/client.ts +21 -3
- package/src/contracts/miso/composition.ts +0 -27
- package/src/contracts/miso/recording.ts +0 -28
- package/src/contracts/miso/release.ts +0 -23
- package/src/contracts/miso_party/deps/sui/vec_set.ts +21 -0
- package/src/contracts/miso_party/party.ts +797 -0
- package/src/contracts/party_cta/party_cta.ts +212 -0
- package/src/contracts/party_genre/party_genre.ts +199 -0
- package/src/contracts/party_media/party_media.ts +141 -0
- package/src/contracts/party_music/party_music.ts +405 -0
- package/src/contracts/party_platform_link/party_platform_link.ts +148 -0
- package/src/contracts/party_pro_link/party_pro_link.ts +453 -0
- package/src/contracts/party_profile/deps/country_code/country_code.ts +19 -0
- package/src/contracts/party_profile/deps/language_code/language_code.ts +7 -0
- package/src/contracts/party_profile/party_profile.ts +239 -0
- package/src/contracts/party_roles/party_roles.ts +363 -0
- package/src/contracts/party_social/party_social.ts +502 -0
- package/src/contracts/party_tags/party_tags.ts +198 -0
- package/src/contracts/routed_stake/routed_stake.ts +0 -27
- package/src/contracts/royalty_pool/pool.ts +0 -27
- package/src/contracts/royalty_pool/stake.ts +6 -26
- package/src/contracts.ts +15 -2
- package/src/deployments.ts +56 -14
- package/src/events.ts +0 -4
- package/src/index.ts +2 -0
- package/src/packages.ts +40 -8
- package/src/party/client.ts +283 -0
- package/src/party/extensions/ctas.ts +46 -0
- package/src/party/extensions/genres.ts +62 -0
- package/src/party/extensions/links.ts +185 -0
- package/src/party/extensions/media.ts +72 -0
- package/src/party/extensions/profile.ts +81 -0
- package/src/party/extensions/roles.ts +94 -0
- package/src/party/extensions/tags.ts +54 -0
- package/src/party/index.ts +14 -0
- package/src/party/internal.ts +119 -0
- package/src/party/queries.ts +303 -0
- package/src/party/transactions.ts +167 -0
- package/src/party/types.ts +95 -0
- package/dist/contracts/release_snapshot_bundle/deps/ori/walrus_data.d.ts +0 -52
- package/dist/contracts/release_snapshot_bundle/deps/ori/walrus_data.d.ts.map +0 -1
- package/dist/contracts/release_snapshot_bundle/deps/ori/walrus_data.js +0 -37
- package/dist/contracts/release_snapshot_bundle/deps/ori/walrus_data.js.map +0 -1
- package/dist/contracts/release_snapshot_bundle/release_snapshot_bundle.d.ts +0 -91
- package/dist/contracts/release_snapshot_bundle/release_snapshot_bundle.d.ts.map +0 -1
- package/dist/contracts/release_snapshot_bundle/release_snapshot_bundle.js +0 -91
- package/dist/contracts/release_snapshot_bundle/release_snapshot_bundle.js.map +0 -1
- package/src/contracts/release_snapshot_bundle/deps/ori/walrus_data.ts +0 -36
- package/src/contracts/release_snapshot_bundle/release_snapshot_bundle.ts +0 -124
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/**
|
|
5
|
+
* `CountryCode` — a validated ISO 3166-1 alpha-2 country code (e.g. "JP").
|
|
6
|
+
*
|
|
7
|
+
* A sibling to `language_code`: a tiny value primitive that parses a raw string
|
|
8
|
+
* once, checking it against the officially-assigned alpha-2 set, and thereafter
|
|
9
|
+
* carries a type that is provably a real country code. Consumers store
|
|
10
|
+
* `CountryCode` (or `Option<CountryCode>` / `vector<CountryCode>`) and never
|
|
11
|
+
* re-validate. The set lives in bytecode via a macro — no on-chain state.
|
|
12
|
+
*/
|
|
13
|
+
import { MoveTuple } from "../../../utils/index.js";
|
|
14
|
+
import { bcs } from '@mysten/sui/bcs';
|
|
15
|
+
const $moduleName = 'country_code::country_code';
|
|
16
|
+
export const CountryCode = new MoveTuple({ name: `${$moduleName}::CountryCode`, fields: [bcs.string()] });
|
|
17
|
+
//# sourceMappingURL=country_code.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"country_code.js","sourceRoot":"","sources":["../../../../../src/contracts/party_profile/deps/country_code/country_code.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;GAQG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,MAAM,WAAW,GAAG,4BAA4B,CAAC;AACjD,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,SAAS,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,eAAe,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
import { MoveTuple } from '../../../utils/index.ts';
|
|
5
|
+
export declare const LanguageCode: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<string, string, "string">], "language_code::language_code::LanguageCode">;
|
|
6
|
+
//# sourceMappingURL=language_code.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"language_code.d.ts","sourceRoot":"","sources":["../../../../../src/contracts/party_profile/deps/language_code/language_code.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAGpD,eAAO,MAAM,YAAY,iIAAkF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
import { MoveTuple } from "../../../utils/index.js";
|
|
5
|
+
import { bcs } from '@mysten/sui/bcs';
|
|
6
|
+
const $moduleName = 'language_code::language_code';
|
|
7
|
+
export const LanguageCode = new MoveTuple({ name: `${$moduleName}::LanguageCode`, fields: [bcs.string()] });
|
|
8
|
+
//# sourceMappingURL=language_code.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"language_code.js","sourceRoot":"","sources":["../../../../../src/contracts/party_profile/deps/language_code/language_code.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,MAAM,WAAW,GAAG,8BAA8B,CAAC;AACnD,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,SAAS,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,gBAAgB,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/**
|
|
5
|
+
* A party's editable profile card — the free-form identity fields a profile page
|
|
6
|
+
* renders.
|
|
7
|
+
*
|
|
8
|
+
* Stored as a single `Profile` dynamic field on the party's UID, gated by the
|
|
9
|
+
* `PartyAdminCap`; views are permissionless. Deliberately holds only cohesive
|
|
10
|
+
* identity fields — typed or collection-shaped concerns (roles, tags, genres,
|
|
11
|
+
* media, links) each live in their own extension. `country` and `languages` use
|
|
12
|
+
* validated code primitives (`country_code`, `language_code`), so a stored value
|
|
13
|
+
* is always a real code. The party's `name` is NOT duplicated here — it lives on
|
|
14
|
+
* the core `Party` (`party::set_name`) — and the join date comes from the party's
|
|
15
|
+
* creation event (the indexer has it for free).
|
|
16
|
+
*/
|
|
17
|
+
import { MoveTuple, MoveStruct, type RawTransactionArgument } from '../utils/index.ts';
|
|
18
|
+
import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
|
|
19
|
+
export declare const ProfileKey: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">], "@local-pkg/party_profile::party_profile::ProfileKey">;
|
|
20
|
+
export declare const Profile: MoveStruct<{
|
|
21
|
+
bio_short: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
22
|
+
bio_long: import("@mysten/sui/bcs").BcsType<string | null, string | null | undefined, "Option<string>">;
|
|
23
|
+
country: import("@mysten/sui/bcs").BcsType<[string] | null, readonly [string] | null | undefined, "Option<country_code::country_code::CountryCode>">;
|
|
24
|
+
languages: import("@mysten/sui/bcs").BcsType<[string][], Iterable<readonly [string]> & {
|
|
25
|
+
length: number;
|
|
26
|
+
}, string>;
|
|
27
|
+
}, "@local-pkg/party_profile::party_profile::Profile">;
|
|
28
|
+
export declare const ProfileSetEvent: MoveStruct<{
|
|
29
|
+
party_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
30
|
+
}, "@local-pkg/party_profile::party_profile::ProfileSetEvent">;
|
|
31
|
+
export declare const ProfileClearedEvent: MoveStruct<{
|
|
32
|
+
party_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
33
|
+
}, "@local-pkg/party_profile::party_profile::ProfileClearedEvent">;
|
|
34
|
+
export interface SetProfileArguments {
|
|
35
|
+
self: RawTransactionArgument<string>;
|
|
36
|
+
cap: RawTransactionArgument<string>;
|
|
37
|
+
bioShort: RawTransactionArgument<string>;
|
|
38
|
+
bioLong: RawTransactionArgument<string | null>;
|
|
39
|
+
country: TransactionArgument;
|
|
40
|
+
languages: TransactionArgument;
|
|
41
|
+
}
|
|
42
|
+
export interface SetProfileOptions {
|
|
43
|
+
package?: string;
|
|
44
|
+
arguments: SetProfileArguments | [
|
|
45
|
+
self: RawTransactionArgument<string>,
|
|
46
|
+
cap: RawTransactionArgument<string>,
|
|
47
|
+
bioShort: RawTransactionArgument<string>,
|
|
48
|
+
bioLong: RawTransactionArgument<string | null>,
|
|
49
|
+
country: TransactionArgument,
|
|
50
|
+
languages: TransactionArgument
|
|
51
|
+
];
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Sets (creates or replaces) the party's whole profile. The single write entry
|
|
55
|
+
* point: a profile is a cohesive card, edited as a whole and saved in one call.
|
|
56
|
+
*/
|
|
57
|
+
export declare function setProfile(options: SetProfileOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
58
|
+
export interface ClearProfileArguments {
|
|
59
|
+
self: RawTransactionArgument<string>;
|
|
60
|
+
cap: RawTransactionArgument<string>;
|
|
61
|
+
}
|
|
62
|
+
export interface ClearProfileOptions {
|
|
63
|
+
package?: string;
|
|
64
|
+
arguments: ClearProfileArguments | [
|
|
65
|
+
self: RawTransactionArgument<string>,
|
|
66
|
+
cap: RawTransactionArgument<string>
|
|
67
|
+
];
|
|
68
|
+
}
|
|
69
|
+
/** Removes the party's profile. No-op if none is set. */
|
|
70
|
+
export declare function clearProfile(options: ClearProfileOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
71
|
+
export interface HasProfileArguments {
|
|
72
|
+
self: RawTransactionArgument<string>;
|
|
73
|
+
}
|
|
74
|
+
export interface HasProfileOptions {
|
|
75
|
+
package?: string;
|
|
76
|
+
arguments: HasProfileArguments | [
|
|
77
|
+
self: RawTransactionArgument<string>
|
|
78
|
+
];
|
|
79
|
+
}
|
|
80
|
+
/** Whether the party has a profile. */
|
|
81
|
+
export declare function hasProfile(options: HasProfileOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
82
|
+
export interface ProfileArguments {
|
|
83
|
+
self: RawTransactionArgument<string>;
|
|
84
|
+
}
|
|
85
|
+
export interface ProfileOptions {
|
|
86
|
+
package?: string;
|
|
87
|
+
arguments: ProfileArguments | [
|
|
88
|
+
self: RawTransactionArgument<string>
|
|
89
|
+
];
|
|
90
|
+
}
|
|
91
|
+
/** Borrows the party's profile. Aborts if none is set. */
|
|
92
|
+
export declare function profile(options: ProfileOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
93
|
+
export interface BioShortArguments {
|
|
94
|
+
self: TransactionArgument;
|
|
95
|
+
}
|
|
96
|
+
export interface BioShortOptions {
|
|
97
|
+
package?: string;
|
|
98
|
+
arguments: BioShortArguments | [
|
|
99
|
+
self: TransactionArgument
|
|
100
|
+
];
|
|
101
|
+
}
|
|
102
|
+
export declare function bioShort(options: BioShortOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
103
|
+
export interface BioLongArguments {
|
|
104
|
+
self: TransactionArgument;
|
|
105
|
+
}
|
|
106
|
+
export interface BioLongOptions {
|
|
107
|
+
package?: string;
|
|
108
|
+
arguments: BioLongArguments | [
|
|
109
|
+
self: TransactionArgument
|
|
110
|
+
];
|
|
111
|
+
}
|
|
112
|
+
export declare function bioLong(options: BioLongOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
113
|
+
export interface CountryArguments {
|
|
114
|
+
self: TransactionArgument;
|
|
115
|
+
}
|
|
116
|
+
export interface CountryOptions {
|
|
117
|
+
package?: string;
|
|
118
|
+
arguments: CountryArguments | [
|
|
119
|
+
self: TransactionArgument
|
|
120
|
+
];
|
|
121
|
+
}
|
|
122
|
+
export declare function country(options: CountryOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
123
|
+
export interface LanguagesArguments {
|
|
124
|
+
self: TransactionArgument;
|
|
125
|
+
}
|
|
126
|
+
export interface LanguagesOptions {
|
|
127
|
+
package?: string;
|
|
128
|
+
arguments: LanguagesArguments | [
|
|
129
|
+
self: TransactionArgument
|
|
130
|
+
];
|
|
131
|
+
}
|
|
132
|
+
export declare function languages(options: LanguagesOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
133
|
+
//# sourceMappingURL=party_profile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"party_profile.d.ts","sourceRoot":"","sources":["../../../src/contracts/party_profile/party_profile.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAA0B,K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AM,WAAW,cAAc;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,gBAAgB,GAAG;QAC1B,IAAI,EAAE,mBAAmB;KAC5B,CAAC;CACL;AACD,wBAAgB,OAAO,CAAC,OAAO,EAAE,cAAc,IAMnC,IAAI,WAAW,0DAM1B;AACD,MAAM,WAAW,gBAAgB;IAC7B,IAAI,EAAE,mBAAmB,CAAC;CAC7B;AACD,MAAM,WAAW,cAAc;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,gBAAgB,GAAG;QAC1B,IAAI,EAAE,mBAAmB;KAC5B,CAAC;CACL;AACD,wBAAgB,OAAO,CAAC,OAAO,EAAE,cAAc,IAMnC,IAAI,WAAW,0DAM1B;AACD,MAAM,WAAW,kBAAkB;IAC/B,IAAI,EAAE,mBAAmB,CAAC;CAC7B;AACD,MAAM,WAAW,gBAAgB;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,kBAAkB,GAAG;QAC5B,IAAI,EAAE,mBAAmB;KAC5B,CAAC;CACL;AACD,wBAAgB,SAAS,CAAC,OAAO,EAAE,gBAAgB,IAMvC,IAAI,WAAW,0DAM1B"}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/**
|
|
5
|
+
* A party's editable profile card — the free-form identity fields a profile page
|
|
6
|
+
* renders.
|
|
7
|
+
*
|
|
8
|
+
* Stored as a single `Profile` dynamic field on the party's UID, gated by the
|
|
9
|
+
* `PartyAdminCap`; views are permissionless. Deliberately holds only cohesive
|
|
10
|
+
* identity fields — typed or collection-shaped concerns (roles, tags, genres,
|
|
11
|
+
* media, links) each live in their own extension. `country` and `languages` use
|
|
12
|
+
* validated code primitives (`country_code`, `language_code`), so a stored value
|
|
13
|
+
* is always a real code. The party's `name` is NOT duplicated here — it lives on
|
|
14
|
+
* the core `Party` (`party::set_name`) — and the join date comes from the party's
|
|
15
|
+
* creation event (the indexer has it for free).
|
|
16
|
+
*/
|
|
17
|
+
import { MoveTuple, MoveStruct, normalizeMoveArguments } from "../utils/index.js";
|
|
18
|
+
import { bcs } from '@mysten/sui/bcs';
|
|
19
|
+
import {} from '@mysten/sui/transactions';
|
|
20
|
+
import * as country_code from "./deps/country_code/country_code.js";
|
|
21
|
+
import * as language_code from "./deps/language_code/language_code.js";
|
|
22
|
+
const $moduleName = '@local-pkg/party_profile::party_profile';
|
|
23
|
+
export const ProfileKey = new MoveTuple({ name: `${$moduleName}::ProfileKey`, fields: [bcs.bool()] });
|
|
24
|
+
export const Profile = new MoveStruct({ name: `${$moduleName}::Profile`, fields: {
|
|
25
|
+
bio_short: bcs.string(),
|
|
26
|
+
bio_long: bcs.option(bcs.string()),
|
|
27
|
+
country: bcs.option(country_code.CountryCode),
|
|
28
|
+
languages: bcs.vector(language_code.LanguageCode)
|
|
29
|
+
} });
|
|
30
|
+
export const ProfileSetEvent = new MoveStruct({ name: `${$moduleName}::ProfileSetEvent`, fields: {
|
|
31
|
+
party_id: bcs.Address
|
|
32
|
+
} });
|
|
33
|
+
export const ProfileClearedEvent = new MoveStruct({ name: `${$moduleName}::ProfileClearedEvent`, fields: {
|
|
34
|
+
party_id: bcs.Address
|
|
35
|
+
} });
|
|
36
|
+
/**
|
|
37
|
+
* Sets (creates or replaces) the party's whole profile. The single write entry
|
|
38
|
+
* point: a profile is a cohesive card, edited as a whole and saved in one call.
|
|
39
|
+
*/
|
|
40
|
+
export function setProfile(options) {
|
|
41
|
+
const packageAddress = options.package ?? '@local-pkg/party_profile';
|
|
42
|
+
const argumentsTypes = [
|
|
43
|
+
null,
|
|
44
|
+
null,
|
|
45
|
+
'0x1::string::String',
|
|
46
|
+
'0x1::option::Option<0x1::string::String>',
|
|
47
|
+
null,
|
|
48
|
+
'vector<null>'
|
|
49
|
+
];
|
|
50
|
+
const parameterNames = ["self", "cap", "bioShort", "bioLong", "country", "languages"];
|
|
51
|
+
return (tx) => tx.moveCall({
|
|
52
|
+
package: packageAddress,
|
|
53
|
+
module: 'party_profile',
|
|
54
|
+
function: 'set_profile',
|
|
55
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
/** Removes the party's profile. No-op if none is set. */
|
|
59
|
+
export function clearProfile(options) {
|
|
60
|
+
const packageAddress = options.package ?? '@local-pkg/party_profile';
|
|
61
|
+
const argumentsTypes = [
|
|
62
|
+
null,
|
|
63
|
+
null
|
|
64
|
+
];
|
|
65
|
+
const parameterNames = ["self", "cap"];
|
|
66
|
+
return (tx) => tx.moveCall({
|
|
67
|
+
package: packageAddress,
|
|
68
|
+
module: 'party_profile',
|
|
69
|
+
function: 'clear_profile',
|
|
70
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
/** Whether the party has a profile. */
|
|
74
|
+
export function hasProfile(options) {
|
|
75
|
+
const packageAddress = options.package ?? '@local-pkg/party_profile';
|
|
76
|
+
const argumentsTypes = [
|
|
77
|
+
null
|
|
78
|
+
];
|
|
79
|
+
const parameterNames = ["self"];
|
|
80
|
+
return (tx) => tx.moveCall({
|
|
81
|
+
package: packageAddress,
|
|
82
|
+
module: 'party_profile',
|
|
83
|
+
function: 'has_profile',
|
|
84
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
/** Borrows the party's profile. Aborts if none is set. */
|
|
88
|
+
export function profile(options) {
|
|
89
|
+
const packageAddress = options.package ?? '@local-pkg/party_profile';
|
|
90
|
+
const argumentsTypes = [
|
|
91
|
+
null
|
|
92
|
+
];
|
|
93
|
+
const parameterNames = ["self"];
|
|
94
|
+
return (tx) => tx.moveCall({
|
|
95
|
+
package: packageAddress,
|
|
96
|
+
module: 'party_profile',
|
|
97
|
+
function: 'profile',
|
|
98
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
export function bioShort(options) {
|
|
102
|
+
const packageAddress = options.package ?? '@local-pkg/party_profile';
|
|
103
|
+
const argumentsTypes = [
|
|
104
|
+
null
|
|
105
|
+
];
|
|
106
|
+
const parameterNames = ["self"];
|
|
107
|
+
return (tx) => tx.moveCall({
|
|
108
|
+
package: packageAddress,
|
|
109
|
+
module: 'party_profile',
|
|
110
|
+
function: 'bio_short',
|
|
111
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
export function bioLong(options) {
|
|
115
|
+
const packageAddress = options.package ?? '@local-pkg/party_profile';
|
|
116
|
+
const argumentsTypes = [
|
|
117
|
+
null
|
|
118
|
+
];
|
|
119
|
+
const parameterNames = ["self"];
|
|
120
|
+
return (tx) => tx.moveCall({
|
|
121
|
+
package: packageAddress,
|
|
122
|
+
module: 'party_profile',
|
|
123
|
+
function: 'bio_long',
|
|
124
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
export function country(options) {
|
|
128
|
+
const packageAddress = options.package ?? '@local-pkg/party_profile';
|
|
129
|
+
const argumentsTypes = [
|
|
130
|
+
null
|
|
131
|
+
];
|
|
132
|
+
const parameterNames = ["self"];
|
|
133
|
+
return (tx) => tx.moveCall({
|
|
134
|
+
package: packageAddress,
|
|
135
|
+
module: 'party_profile',
|
|
136
|
+
function: 'country',
|
|
137
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
export function languages(options) {
|
|
141
|
+
const packageAddress = options.package ?? '@local-pkg/party_profile';
|
|
142
|
+
const argumentsTypes = [
|
|
143
|
+
null
|
|
144
|
+
];
|
|
145
|
+
const parameterNames = ["self"];
|
|
146
|
+
return (tx) => tx.moveCall({
|
|
147
|
+
package: packageAddress,
|
|
148
|
+
module: 'party_profile',
|
|
149
|
+
function: 'languages',
|
|
150
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
//# sourceMappingURL=party_profile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"party_profile.js","sourceRoot":"","sources":["../../../src/contracts/party_profile/party_profile.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,sBAAsB,EAA+B,MAAM,mBAAmB,CAAC;AAC/G,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,EAA8C,MAAM,0BAA0B,CAAC;AACtF,OAAO,KAAK,YAAY,MAAM,qCAAqC,CAAC;AACpE,OAAO,KAAK,aAAa,MAAM,uCAAuC,CAAC;AACvE,MAAM,WAAW,GAAG,yCAAyC,CAAC;AAC9D,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,SAAS,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,cAAc,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC;AACtG,MAAM,CAAC,MAAM,OAAO,GAAG,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,WAAW,EAAE,MAAM,EAAE;QACzE,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE;QACvB,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC;QAClC,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,YAAY,CAAC,WAAW,CAAC;QAC7C,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,aAAa,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c,CAAC;KACvF,CAAC,CAAC;AACP,CAAC;AAUD,MAAM,UAAU,SAAS,CAAC,OAAyB;IAC/C,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,IAAI,0BAA0B,CAAC;IACrE,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,eAAe;QACvB,QAAQ,EAAE,WAAW;QACrB,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;KACvF,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/**
|
|
5
|
+
* Artist-type roles for a party — what kind of act this is (artist, producer, DJ,
|
|
6
|
+
* band, label, …). A party can hold several.
|
|
7
|
+
*
|
|
8
|
+
* `ArtistRole` is a closed enum with a `Custom` escape hatch, mirroring
|
|
9
|
+
* `composition_party_role`: canonical variants give the frontend a fixed,
|
|
10
|
+
* typo-free set to render icons for, while `Custom(name)` covers anything else.
|
|
11
|
+
* The set mechanics — storage, duplicate and capacity checks, field reclamation —
|
|
12
|
+
* live in the shared `typed_set` primitive; this package keeps the role type, name
|
|
13
|
+
* validation, the capacity, and the typed events. Duplicate / not-present /
|
|
14
|
+
* over-max aborts come from `typed_set` with its own error codes. Gated by the
|
|
15
|
+
* `PartyAdminCap`; views are permissionless.
|
|
16
|
+
*/
|
|
17
|
+
import { MoveTuple, MoveStruct, MoveEnum, type RawTransactionArgument } from '../utils/index.ts';
|
|
18
|
+
import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
|
|
19
|
+
export declare const RolesKey: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">], "@local-pkg/party_roles::party_roles::RolesKey">;
|
|
20
|
+
export declare const RoleAddedEvent: MoveStruct<{
|
|
21
|
+
party_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
22
|
+
role: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
23
|
+
}, "@local-pkg/party_roles::party_roles::RoleAddedEvent">;
|
|
24
|
+
export declare const RoleRemovedEvent: MoveStruct<{
|
|
25
|
+
party_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
26
|
+
role: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
27
|
+
}, "@local-pkg/party_roles::party_roles::RoleRemovedEvent">;
|
|
28
|
+
export declare const RolesClearedEvent: MoveStruct<{
|
|
29
|
+
party_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
30
|
+
}, "@local-pkg/party_roles::party_roles::RolesClearedEvent">;
|
|
31
|
+
/** The kind of act a party represents. Closed enum + `Custom` escape hatch. */
|
|
32
|
+
export declare const ArtistRole: MoveEnum<{
|
|
33
|
+
Artist: null;
|
|
34
|
+
Producer: null;
|
|
35
|
+
Dj: null;
|
|
36
|
+
Composer: null;
|
|
37
|
+
Songwriter: null;
|
|
38
|
+
Band: null;
|
|
39
|
+
Label: null;
|
|
40
|
+
Collective: null;
|
|
41
|
+
/**
|
|
42
|
+
* A user-defined role not covered by a canonical variant (validated). Prefer a
|
|
43
|
+
* canonical variant when one fits.
|
|
44
|
+
*/
|
|
45
|
+
Custom: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
46
|
+
}, "@local-pkg/party_roles::party_roles::ArtistRole">;
|
|
47
|
+
export interface ArtistOptions {
|
|
48
|
+
package?: string;
|
|
49
|
+
arguments?: [
|
|
50
|
+
];
|
|
51
|
+
}
|
|
52
|
+
export declare function artist(options?: ArtistOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
53
|
+
export interface ProducerOptions {
|
|
54
|
+
package?: string;
|
|
55
|
+
arguments?: [
|
|
56
|
+
];
|
|
57
|
+
}
|
|
58
|
+
export declare function producer(options?: ProducerOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
59
|
+
export interface DjOptions {
|
|
60
|
+
package?: string;
|
|
61
|
+
arguments?: [
|
|
62
|
+
];
|
|
63
|
+
}
|
|
64
|
+
export declare function dj(options?: DjOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
65
|
+
export interface ComposerOptions {
|
|
66
|
+
package?: string;
|
|
67
|
+
arguments?: [
|
|
68
|
+
];
|
|
69
|
+
}
|
|
70
|
+
export declare function composer(options?: ComposerOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
71
|
+
export interface SongwriterOptions {
|
|
72
|
+
package?: string;
|
|
73
|
+
arguments?: [
|
|
74
|
+
];
|
|
75
|
+
}
|
|
76
|
+
export declare function songwriter(options?: SongwriterOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
77
|
+
export interface BandOptions {
|
|
78
|
+
package?: string;
|
|
79
|
+
arguments?: [
|
|
80
|
+
];
|
|
81
|
+
}
|
|
82
|
+
export declare function band(options?: BandOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
83
|
+
export interface LabelOptions {
|
|
84
|
+
package?: string;
|
|
85
|
+
arguments?: [
|
|
86
|
+
];
|
|
87
|
+
}
|
|
88
|
+
export declare function label(options?: LabelOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
89
|
+
export interface CollectiveOptions {
|
|
90
|
+
package?: string;
|
|
91
|
+
arguments?: [
|
|
92
|
+
];
|
|
93
|
+
}
|
|
94
|
+
export declare function collective(options?: CollectiveOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
95
|
+
export interface CustomArguments {
|
|
96
|
+
name: RawTransactionArgument<string>;
|
|
97
|
+
}
|
|
98
|
+
export interface CustomOptions {
|
|
99
|
+
package?: string;
|
|
100
|
+
arguments: CustomArguments | [
|
|
101
|
+
name: RawTransactionArgument<string>
|
|
102
|
+
];
|
|
103
|
+
}
|
|
104
|
+
/** Builds a custom role. Aborts if empty or too long. */
|
|
105
|
+
export declare function custom(options: CustomOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
106
|
+
export interface RoleNameArguments {
|
|
107
|
+
self: TransactionArgument;
|
|
108
|
+
}
|
|
109
|
+
export interface RoleNameOptions {
|
|
110
|
+
package?: string;
|
|
111
|
+
arguments: RoleNameArguments | [
|
|
112
|
+
self: TransactionArgument
|
|
113
|
+
];
|
|
114
|
+
}
|
|
115
|
+
/** The canonical name of a role (its own string for `Custom`). */
|
|
116
|
+
export declare function roleName(options: RoleNameOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
117
|
+
export interface AddRoleArguments {
|
|
118
|
+
self: RawTransactionArgument<string>;
|
|
119
|
+
cap: RawTransactionArgument<string>;
|
|
120
|
+
role: TransactionArgument;
|
|
121
|
+
}
|
|
122
|
+
export interface AddRoleOptions {
|
|
123
|
+
package?: string;
|
|
124
|
+
arguments: AddRoleArguments | [
|
|
125
|
+
self: RawTransactionArgument<string>,
|
|
126
|
+
cap: RawTransactionArgument<string>,
|
|
127
|
+
role: TransactionArgument
|
|
128
|
+
];
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Adds a role to the party. Aborts in `typed_set` if already held or the max is
|
|
132
|
+
* reached.
|
|
133
|
+
*/
|
|
134
|
+
export declare function addRole(options: AddRoleOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
135
|
+
export interface RemoveRoleArguments {
|
|
136
|
+
self: RawTransactionArgument<string>;
|
|
137
|
+
cap: RawTransactionArgument<string>;
|
|
138
|
+
role: TransactionArgument;
|
|
139
|
+
}
|
|
140
|
+
export interface RemoveRoleOptions {
|
|
141
|
+
package?: string;
|
|
142
|
+
arguments: RemoveRoleArguments | [
|
|
143
|
+
self: RawTransactionArgument<string>,
|
|
144
|
+
cap: RawTransactionArgument<string>,
|
|
145
|
+
role: TransactionArgument
|
|
146
|
+
];
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Removes a role from the party. Aborts in `typed_set` if not held. The whole
|
|
150
|
+
* field is dropped when the last role leaves.
|
|
151
|
+
*/
|
|
152
|
+
export declare function removeRole(options: RemoveRoleOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
153
|
+
export interface ClearRolesArguments {
|
|
154
|
+
self: RawTransactionArgument<string>;
|
|
155
|
+
cap: RawTransactionArgument<string>;
|
|
156
|
+
}
|
|
157
|
+
export interface ClearRolesOptions {
|
|
158
|
+
package?: string;
|
|
159
|
+
arguments: ClearRolesArguments | [
|
|
160
|
+
self: RawTransactionArgument<string>,
|
|
161
|
+
cap: RawTransactionArgument<string>
|
|
162
|
+
];
|
|
163
|
+
}
|
|
164
|
+
/** Removes the party's entire role set. No-op if none is set. */
|
|
165
|
+
export declare function clearRoles(options: ClearRolesOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
166
|
+
export interface HasRolesArguments {
|
|
167
|
+
self: RawTransactionArgument<string>;
|
|
168
|
+
}
|
|
169
|
+
export interface HasRolesOptions {
|
|
170
|
+
package?: string;
|
|
171
|
+
arguments: HasRolesArguments | [
|
|
172
|
+
self: RawTransactionArgument<string>
|
|
173
|
+
];
|
|
174
|
+
}
|
|
175
|
+
/** Whether the party holds any roles. */
|
|
176
|
+
export declare function hasRoles(options: HasRolesOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
177
|
+
export interface HasRoleArguments {
|
|
178
|
+
self: RawTransactionArgument<string>;
|
|
179
|
+
role: TransactionArgument;
|
|
180
|
+
}
|
|
181
|
+
export interface HasRoleOptions {
|
|
182
|
+
package?: string;
|
|
183
|
+
arguments: HasRoleArguments | [
|
|
184
|
+
self: RawTransactionArgument<string>,
|
|
185
|
+
role: TransactionArgument
|
|
186
|
+
];
|
|
187
|
+
}
|
|
188
|
+
/** Whether the party holds the given role. */
|
|
189
|
+
export declare function hasRole(options: HasRoleOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
190
|
+
export interface RolesArguments {
|
|
191
|
+
self: RawTransactionArgument<string>;
|
|
192
|
+
}
|
|
193
|
+
export interface RolesOptions {
|
|
194
|
+
package?: string;
|
|
195
|
+
arguments: RolesArguments | [
|
|
196
|
+
self: RawTransactionArgument<string>
|
|
197
|
+
];
|
|
198
|
+
}
|
|
199
|
+
/** The party's roles. */
|
|
200
|
+
export declare function roles(options: RolesOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
201
|
+
//# sourceMappingURL=party_roles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"party_roles.d.ts","sourceRoot":"","sources":["../../../src/contracts/party_roles/party_roles.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAA0B,KAAK,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEzH,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEtF,eAAO,MAAM,QAAQ,oIAA4E,CAAC;AAClG,eAAO,MAAM,cAAc;;;yDAGnB,CAAC;AACT,eAAO,MAAM,gBAAgB;;;2DAGrB,CAAC;AACT,eAAO,MAAM,iBAAiB;;4DAEtB,CAAC;AACT,+EAA+E;AAC/E,eAAO,MAAM,UAAU;;;;;;;;;IASf;;;OAGG;;qDAEH,CAAC;AACT,MAAM,WAAW,aAAa;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACj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