@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,92 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/**
|
|
5
|
+
* Attaches `PlatformLink<Data>` records to a `Party` — one independent link per
|
|
6
|
+
* platform type (`set_link<XData>`, `set_link<SpotifyData>`, …), each in its own
|
|
7
|
+
* dynamic field keyed by `Data`. Adding one platform never rewrites another's, and
|
|
8
|
+
* a new platform needs no change here.
|
|
9
|
+
*
|
|
10
|
+
* This one module serves every platform (social, music, anything) because it is
|
|
11
|
+
* generic over `Data`; the payload types live in their own small packages
|
|
12
|
+
* (`party_social`, `party_music`, …). All writes are gated by the `PartyAdminCap`
|
|
13
|
+
* via `uid_mut`; views are permissionless. Events are phantom-typed per platform
|
|
14
|
+
* so an indexer can see which platform changed — dynamic-field mutations are not
|
|
15
|
+
* otherwise observable. These events carry no payload by convention: they are
|
|
16
|
+
* change signals, and the indexer re-reads the field. (Small, stable payloads are
|
|
17
|
+
* the exception elsewhere — `party_media`'s quilt id or a role or tag string.)
|
|
18
|
+
*/
|
|
19
|
+
import { MoveStruct, normalizeMoveArguments } from "../utils/index.js";
|
|
20
|
+
import { bcs } from '@mysten/sui/bcs';
|
|
21
|
+
import {} from '@mysten/sui/transactions';
|
|
22
|
+
const $moduleName = '@local-pkg/party_platform_link::party_platform_link';
|
|
23
|
+
export const LinkSetEvent = new MoveStruct({ name: `${$moduleName}::LinkSetEvent<phantom Data>`, fields: {
|
|
24
|
+
party_id: bcs.Address
|
|
25
|
+
} });
|
|
26
|
+
export const LinkClearedEvent = new MoveStruct({ name: `${$moduleName}::LinkClearedEvent<phantom Data>`, fields: {
|
|
27
|
+
party_id: bcs.Address
|
|
28
|
+
} });
|
|
29
|
+
/** Sets (or replaces) a platform's link on the party. */
|
|
30
|
+
export function setLink(options) {
|
|
31
|
+
const packageAddress = options.package ?? '@local-pkg/party_platform_link';
|
|
32
|
+
const argumentsTypes = [
|
|
33
|
+
null,
|
|
34
|
+
null,
|
|
35
|
+
null
|
|
36
|
+
];
|
|
37
|
+
const parameterNames = ["self", "cap", "link"];
|
|
38
|
+
return (tx) => tx.moveCall({
|
|
39
|
+
package: packageAddress,
|
|
40
|
+
module: 'party_platform_link',
|
|
41
|
+
function: 'set_link',
|
|
42
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
43
|
+
typeArguments: options.typeArguments
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
/** Clears a platform's link from the party. No-op if unset. */
|
|
47
|
+
export function clearLink(options) {
|
|
48
|
+
const packageAddress = options.package ?? '@local-pkg/party_platform_link';
|
|
49
|
+
const argumentsTypes = [
|
|
50
|
+
null,
|
|
51
|
+
null
|
|
52
|
+
];
|
|
53
|
+
const parameterNames = ["self", "cap"];
|
|
54
|
+
return (tx) => tx.moveCall({
|
|
55
|
+
package: packageAddress,
|
|
56
|
+
module: 'party_platform_link',
|
|
57
|
+
function: 'clear_link',
|
|
58
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
59
|
+
typeArguments: options.typeArguments
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
/** Whether the party has a link for this platform. */
|
|
63
|
+
export function hasLink(options) {
|
|
64
|
+
const packageAddress = options.package ?? '@local-pkg/party_platform_link';
|
|
65
|
+
const argumentsTypes = [
|
|
66
|
+
null
|
|
67
|
+
];
|
|
68
|
+
const parameterNames = ["self"];
|
|
69
|
+
return (tx) => tx.moveCall({
|
|
70
|
+
package: packageAddress,
|
|
71
|
+
module: 'party_platform_link',
|
|
72
|
+
function: 'has_link',
|
|
73
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
74
|
+
typeArguments: options.typeArguments
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
/** The party's link for this platform, if set. */
|
|
78
|
+
export function link(options) {
|
|
79
|
+
const packageAddress = options.package ?? '@local-pkg/party_platform_link';
|
|
80
|
+
const argumentsTypes = [
|
|
81
|
+
null
|
|
82
|
+
];
|
|
83
|
+
const parameterNames = ["self"];
|
|
84
|
+
return (tx) => tx.moveCall({
|
|
85
|
+
package: packageAddress,
|
|
86
|
+
module: 'party_platform_link',
|
|
87
|
+
function: 'link',
|
|
88
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
89
|
+
typeArguments: options.typeArguments
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
//# sourceMappingURL=party_platform_link.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"party_platform_link.js","sourceRoot":"","sources":["../../../src/contracts/party_platform_link/party_platform_link.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,sBAAsB,EAA+B,MAAM,mBAAmB,CAAC;AACpG,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,EAA8C,MAAM,0BAA0B,CAAC;AACtF,MAAM,WAAW,GAAG,qDAAqD,CAAC;AAC1E,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,8BAA8B,EAAE,MAAM,EAAE;QACjG,QAAQ,EAAE,GAAG,CAAC,OAAO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AE,OAAO,CAAC,aAAa;KACvC,CAAC,CAAC;AACP,CAAC;AAaD,sDAAsD;AACtD,MAAM,UAAU,OAAO,CAAC,OAAuB;IAC3C,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,IAAI,gCAAgC,CAAC;IAC3E,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,qBAAqB;QAC7B,QAAQ,EAAE,UAAU;QACpB,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;QACpF,aAAa,EAAE,OAAO,CAAC,aAAa;KACvC,CAAC,CAAC;AACP,CAAC;AAaD,kDAAkD;AAClD,MAAM,UAAU,IAAI,CAAC,OAAoB;IACrC,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,IAAI,gCAAgC,CAAC;IAC3E,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,qBAAqB;QAC7B,QAAQ,EAAE,MAAM;QAChB,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,233 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/**
|
|
5
|
+
* Professional / industry payloads for the `platform_link` primitive: an artist's
|
|
6
|
+
* own website, booking/management/publisher/label pages, EPK, and creator-support
|
|
7
|
+
* platforms (Patreon, Substack, Ko-fi).
|
|
8
|
+
*
|
|
9
|
+
* Two shapes here. A website / booking page / EPK has **no reconstructable
|
|
10
|
+
* handle** — the URL _is_ the identity — so those store a full `url`. The creator
|
|
11
|
+
* platforms have a handle like the social/music payloads and store just that, with
|
|
12
|
+
* the URL rebuilt client-side. All validated non-empty plus the shared max-length
|
|
13
|
+
* backstops (`platform_link::max_identifier_length()` / `max_url_length()`).
|
|
14
|
+
*/
|
|
15
|
+
import { MoveStruct, type RawTransactionArgument } from '../utils/index.ts';
|
|
16
|
+
import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
|
|
17
|
+
export declare const WebsiteData: MoveStruct<{
|
|
18
|
+
url: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
19
|
+
}, "@local-pkg/party_pro_link::party_pro_link::WebsiteData">;
|
|
20
|
+
export declare const BookingPageData: MoveStruct<{
|
|
21
|
+
url: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
22
|
+
}, "@local-pkg/party_pro_link::party_pro_link::BookingPageData">;
|
|
23
|
+
export declare const ManagementPageData: MoveStruct<{
|
|
24
|
+
url: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
25
|
+
}, "@local-pkg/party_pro_link::party_pro_link::ManagementPageData">;
|
|
26
|
+
export declare const PublisherPageData: MoveStruct<{
|
|
27
|
+
url: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
28
|
+
}, "@local-pkg/party_pro_link::party_pro_link::PublisherPageData">;
|
|
29
|
+
export declare const LabelPageData: MoveStruct<{
|
|
30
|
+
url: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
31
|
+
}, "@local-pkg/party_pro_link::party_pro_link::LabelPageData">;
|
|
32
|
+
export declare const EpkData: MoveStruct<{
|
|
33
|
+
url: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
34
|
+
}, "@local-pkg/party_pro_link::party_pro_link::EpkData">;
|
|
35
|
+
export declare const PatreonData: MoveStruct<{
|
|
36
|
+
handle: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
37
|
+
}, "@local-pkg/party_pro_link::party_pro_link::PatreonData">;
|
|
38
|
+
export declare const SubstackData: MoveStruct<{
|
|
39
|
+
subdomain: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
40
|
+
}, "@local-pkg/party_pro_link::party_pro_link::SubstackData">;
|
|
41
|
+
export declare const KofiData: MoveStruct<{
|
|
42
|
+
handle: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
43
|
+
}, "@local-pkg/party_pro_link::party_pro_link::KofiData">;
|
|
44
|
+
export interface WebsiteArguments {
|
|
45
|
+
url: RawTransactionArgument<string>;
|
|
46
|
+
}
|
|
47
|
+
export interface WebsiteOptions {
|
|
48
|
+
package?: string;
|
|
49
|
+
arguments: WebsiteArguments | [
|
|
50
|
+
url: RawTransactionArgument<string>
|
|
51
|
+
];
|
|
52
|
+
}
|
|
53
|
+
/** Builds a website link from a full URL. Aborts if empty. */
|
|
54
|
+
export declare function website(options: WebsiteOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
55
|
+
export interface BookingPageArguments {
|
|
56
|
+
url: RawTransactionArgument<string>;
|
|
57
|
+
}
|
|
58
|
+
export interface BookingPageOptions {
|
|
59
|
+
package?: string;
|
|
60
|
+
arguments: BookingPageArguments | [
|
|
61
|
+
url: RawTransactionArgument<string>
|
|
62
|
+
];
|
|
63
|
+
}
|
|
64
|
+
/** Builds a booking-page link from a full URL. Aborts if empty. */
|
|
65
|
+
export declare function bookingPage(options: BookingPageOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
66
|
+
export interface ManagementPageArguments {
|
|
67
|
+
url: RawTransactionArgument<string>;
|
|
68
|
+
}
|
|
69
|
+
export interface ManagementPageOptions {
|
|
70
|
+
package?: string;
|
|
71
|
+
arguments: ManagementPageArguments | [
|
|
72
|
+
url: RawTransactionArgument<string>
|
|
73
|
+
];
|
|
74
|
+
}
|
|
75
|
+
/** Builds a management-page link from a full URL. Aborts if empty. */
|
|
76
|
+
export declare function managementPage(options: ManagementPageOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
77
|
+
export interface PublisherPageArguments {
|
|
78
|
+
url: RawTransactionArgument<string>;
|
|
79
|
+
}
|
|
80
|
+
export interface PublisherPageOptions {
|
|
81
|
+
package?: string;
|
|
82
|
+
arguments: PublisherPageArguments | [
|
|
83
|
+
url: RawTransactionArgument<string>
|
|
84
|
+
];
|
|
85
|
+
}
|
|
86
|
+
/** Builds a publisher-page link from a full URL. Aborts if empty. */
|
|
87
|
+
export declare function publisherPage(options: PublisherPageOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
88
|
+
export interface LabelPageArguments {
|
|
89
|
+
url: RawTransactionArgument<string>;
|
|
90
|
+
}
|
|
91
|
+
export interface LabelPageOptions {
|
|
92
|
+
package?: string;
|
|
93
|
+
arguments: LabelPageArguments | [
|
|
94
|
+
url: RawTransactionArgument<string>
|
|
95
|
+
];
|
|
96
|
+
}
|
|
97
|
+
/** Builds a label-page link from a full URL. Aborts if empty. */
|
|
98
|
+
export declare function labelPage(options: LabelPageOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
99
|
+
export interface EpkArguments {
|
|
100
|
+
url: RawTransactionArgument<string>;
|
|
101
|
+
}
|
|
102
|
+
export interface EpkOptions {
|
|
103
|
+
package?: string;
|
|
104
|
+
arguments: EpkArguments | [
|
|
105
|
+
url: RawTransactionArgument<string>
|
|
106
|
+
];
|
|
107
|
+
}
|
|
108
|
+
/** Builds an EPK link from a full URL. Aborts if empty. */
|
|
109
|
+
export declare function epk(options: EpkOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
110
|
+
export interface PatreonArguments {
|
|
111
|
+
handle: RawTransactionArgument<string>;
|
|
112
|
+
}
|
|
113
|
+
export interface PatreonOptions {
|
|
114
|
+
package?: string;
|
|
115
|
+
arguments: PatreonArguments | [
|
|
116
|
+
handle: RawTransactionArgument<string>
|
|
117
|
+
];
|
|
118
|
+
}
|
|
119
|
+
/** Builds a Patreon link from a handle. Aborts if empty. */
|
|
120
|
+
export declare function patreon(options: PatreonOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
121
|
+
export interface SubstackArguments {
|
|
122
|
+
subdomain: RawTransactionArgument<string>;
|
|
123
|
+
}
|
|
124
|
+
export interface SubstackOptions {
|
|
125
|
+
package?: string;
|
|
126
|
+
arguments: SubstackArguments | [
|
|
127
|
+
subdomain: RawTransactionArgument<string>
|
|
128
|
+
];
|
|
129
|
+
}
|
|
130
|
+
/** Builds a Substack link from a subdomain. Aborts if empty. */
|
|
131
|
+
export declare function substack(options: SubstackOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
132
|
+
export interface KofiArguments {
|
|
133
|
+
handle: RawTransactionArgument<string>;
|
|
134
|
+
}
|
|
135
|
+
export interface KofiOptions {
|
|
136
|
+
package?: string;
|
|
137
|
+
arguments: KofiArguments | [
|
|
138
|
+
handle: RawTransactionArgument<string>
|
|
139
|
+
];
|
|
140
|
+
}
|
|
141
|
+
/** Builds a Ko-fi link from a handle. Aborts if empty. */
|
|
142
|
+
export declare function kofi(options: KofiOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
143
|
+
export interface WebsiteUrlArguments {
|
|
144
|
+
self: TransactionArgument;
|
|
145
|
+
}
|
|
146
|
+
export interface WebsiteUrlOptions {
|
|
147
|
+
package?: string;
|
|
148
|
+
arguments: WebsiteUrlArguments | [
|
|
149
|
+
self: TransactionArgument
|
|
150
|
+
];
|
|
151
|
+
}
|
|
152
|
+
export declare function websiteUrl(options: WebsiteUrlOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
153
|
+
export interface BookingUrlArguments {
|
|
154
|
+
self: TransactionArgument;
|
|
155
|
+
}
|
|
156
|
+
export interface BookingUrlOptions {
|
|
157
|
+
package?: string;
|
|
158
|
+
arguments: BookingUrlArguments | [
|
|
159
|
+
self: TransactionArgument
|
|
160
|
+
];
|
|
161
|
+
}
|
|
162
|
+
export declare function bookingUrl(options: BookingUrlOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
163
|
+
export interface ManagementUrlArguments {
|
|
164
|
+
self: TransactionArgument;
|
|
165
|
+
}
|
|
166
|
+
export interface ManagementUrlOptions {
|
|
167
|
+
package?: string;
|
|
168
|
+
arguments: ManagementUrlArguments | [
|
|
169
|
+
self: TransactionArgument
|
|
170
|
+
];
|
|
171
|
+
}
|
|
172
|
+
export declare function managementUrl(options: ManagementUrlOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
173
|
+
export interface PublisherUrlArguments {
|
|
174
|
+
self: TransactionArgument;
|
|
175
|
+
}
|
|
176
|
+
export interface PublisherUrlOptions {
|
|
177
|
+
package?: string;
|
|
178
|
+
arguments: PublisherUrlArguments | [
|
|
179
|
+
self: TransactionArgument
|
|
180
|
+
];
|
|
181
|
+
}
|
|
182
|
+
export declare function publisherUrl(options: PublisherUrlOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
183
|
+
export interface LabelUrlArguments {
|
|
184
|
+
self: TransactionArgument;
|
|
185
|
+
}
|
|
186
|
+
export interface LabelUrlOptions {
|
|
187
|
+
package?: string;
|
|
188
|
+
arguments: LabelUrlArguments | [
|
|
189
|
+
self: TransactionArgument
|
|
190
|
+
];
|
|
191
|
+
}
|
|
192
|
+
export declare function labelUrl(options: LabelUrlOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
193
|
+
export interface EpkUrlArguments {
|
|
194
|
+
self: TransactionArgument;
|
|
195
|
+
}
|
|
196
|
+
export interface EpkUrlOptions {
|
|
197
|
+
package?: string;
|
|
198
|
+
arguments: EpkUrlArguments | [
|
|
199
|
+
self: TransactionArgument
|
|
200
|
+
];
|
|
201
|
+
}
|
|
202
|
+
export declare function epkUrl(options: EpkUrlOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
203
|
+
export interface PatreonHandleArguments {
|
|
204
|
+
self: TransactionArgument;
|
|
205
|
+
}
|
|
206
|
+
export interface PatreonHandleOptions {
|
|
207
|
+
package?: string;
|
|
208
|
+
arguments: PatreonHandleArguments | [
|
|
209
|
+
self: TransactionArgument
|
|
210
|
+
];
|
|
211
|
+
}
|
|
212
|
+
export declare function patreonHandle(options: PatreonHandleOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
213
|
+
export interface SubstackSubdomainArguments {
|
|
214
|
+
self: TransactionArgument;
|
|
215
|
+
}
|
|
216
|
+
export interface SubstackSubdomainOptions {
|
|
217
|
+
package?: string;
|
|
218
|
+
arguments: SubstackSubdomainArguments | [
|
|
219
|
+
self: TransactionArgument
|
|
220
|
+
];
|
|
221
|
+
}
|
|
222
|
+
export declare function substackSubdomain(options: SubstackSubdomainOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
223
|
+
export interface KofiHandleArguments {
|
|
224
|
+
self: TransactionArgument;
|
|
225
|
+
}
|
|
226
|
+
export interface KofiHandleOptions {
|
|
227
|
+
package?: string;
|
|
228
|
+
arguments: KofiHandleArguments | [
|
|
229
|
+
self: TransactionArgument
|
|
230
|
+
];
|
|
231
|
+
}
|
|
232
|
+
export declare function kofiHandle(options: KofiHandleOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
233
|
+
//# sourceMappingURL=party_pro_link.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"party_pro_link.d.ts","sourceRoot":"","sources":["../../../src/contracts/party_pro_link/party_pro_link.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,UAAU,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,eAAe,GAAG;QACzB,IAAI,EAAE,mBAAmB;KAC5B,CAAC;CACL;AACD,wBAAgB,MAAM,CAAC,OAAO,EAAE,aAAa,IAMjC,IAAI,WAAW,0DAM1B;AACD,MAAM,WAAW,sBAAsB;IACnC,IAAI,EAAE,mBAAmB,CAAC;CAC7B;AACD,MAAM,WAAW,oBAAoB;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,sBAAsB,GAAG;QAChC,IAAI,EAAE,mBAAmB;KAC5B,CAAC;CACL;AACD,wBAAgB,aAAa,CAAC,OAAO,EAAE,oBAAoB,IAM/C,IAAI,WAAW,0DAM1B;AACD,MAAM,WAAW,0BAA0B;IACvC,IAAI,EAAE,mBAAmB,CAAC;CAC7B;AACD,MAAM,WAAW,wBAAwB;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,0BAA0B,GAAG;QACpC,IAAI,EAAE,mBAAmB;KAC5B,CAAC;CACL;AACD,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,wBAAwB,IAMvD,IAAI,WAAW,0DAM1B;AACD,MAAM,WAAW,mBAAmB;IAChC,IAAI,EAAE,mBAAmB,CAAC;CAC7B;AACD,MAAM,WAAW,iBAAiB;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,mBAAmB,GAAG;QAC7B,IAAI,EAAE,mBAAmB;KAC5B,CAAC;CACL;AACD,wBAAgB,UAAU,CAAC,OAAO,EAAE,iBAAiB,IAMzC,IAAI,WAAW,0DAM1B"}
|
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/**
|
|
5
|
+
* Professional / industry payloads for the `platform_link` primitive: an artist's
|
|
6
|
+
* own website, booking/management/publisher/label pages, EPK, and creator-support
|
|
7
|
+
* platforms (Patreon, Substack, Ko-fi).
|
|
8
|
+
*
|
|
9
|
+
* Two shapes here. A website / booking page / EPK has **no reconstructable
|
|
10
|
+
* handle** — the URL _is_ the identity — so those store a full `url`. The creator
|
|
11
|
+
* platforms have a handle like the social/music payloads and store just that, with
|
|
12
|
+
* the URL rebuilt client-side. All validated non-empty plus the shared max-length
|
|
13
|
+
* backstops (`platform_link::max_identifier_length()` / `max_url_length()`).
|
|
14
|
+
*/
|
|
15
|
+
import { MoveStruct, normalizeMoveArguments } from "../utils/index.js";
|
|
16
|
+
import { bcs } from '@mysten/sui/bcs';
|
|
17
|
+
import {} from '@mysten/sui/transactions';
|
|
18
|
+
const $moduleName = '@local-pkg/party_pro_link::party_pro_link';
|
|
19
|
+
export const WebsiteData = new MoveStruct({ name: `${$moduleName}::WebsiteData`, fields: {
|
|
20
|
+
url: bcs.string()
|
|
21
|
+
} });
|
|
22
|
+
export const BookingPageData = new MoveStruct({ name: `${$moduleName}::BookingPageData`, fields: {
|
|
23
|
+
url: bcs.string()
|
|
24
|
+
} });
|
|
25
|
+
export const ManagementPageData = new MoveStruct({ name: `${$moduleName}::ManagementPageData`, fields: {
|
|
26
|
+
url: bcs.string()
|
|
27
|
+
} });
|
|
28
|
+
export const PublisherPageData = new MoveStruct({ name: `${$moduleName}::PublisherPageData`, fields: {
|
|
29
|
+
url: bcs.string()
|
|
30
|
+
} });
|
|
31
|
+
export const LabelPageData = new MoveStruct({ name: `${$moduleName}::LabelPageData`, fields: {
|
|
32
|
+
url: bcs.string()
|
|
33
|
+
} });
|
|
34
|
+
export const EpkData = new MoveStruct({ name: `${$moduleName}::EpkData`, fields: {
|
|
35
|
+
url: bcs.string()
|
|
36
|
+
} });
|
|
37
|
+
export const PatreonData = new MoveStruct({ name: `${$moduleName}::PatreonData`, fields: {
|
|
38
|
+
handle: bcs.string()
|
|
39
|
+
} });
|
|
40
|
+
export const SubstackData = new MoveStruct({ name: `${$moduleName}::SubstackData`, fields: {
|
|
41
|
+
subdomain: bcs.string()
|
|
42
|
+
} });
|
|
43
|
+
export const KofiData = new MoveStruct({ name: `${$moduleName}::KofiData`, fields: {
|
|
44
|
+
handle: bcs.string()
|
|
45
|
+
} });
|
|
46
|
+
/** Builds a website link from a full URL. Aborts if empty. */
|
|
47
|
+
export function website(options) {
|
|
48
|
+
const packageAddress = options.package ?? '@local-pkg/party_pro_link';
|
|
49
|
+
const argumentsTypes = [
|
|
50
|
+
'0x1::string::String'
|
|
51
|
+
];
|
|
52
|
+
const parameterNames = ["url"];
|
|
53
|
+
return (tx) => tx.moveCall({
|
|
54
|
+
package: packageAddress,
|
|
55
|
+
module: 'party_pro_link',
|
|
56
|
+
function: 'website',
|
|
57
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
/** Builds a booking-page link from a full URL. Aborts if empty. */
|
|
61
|
+
export function bookingPage(options) {
|
|
62
|
+
const packageAddress = options.package ?? '@local-pkg/party_pro_link';
|
|
63
|
+
const argumentsTypes = [
|
|
64
|
+
'0x1::string::String'
|
|
65
|
+
];
|
|
66
|
+
const parameterNames = ["url"];
|
|
67
|
+
return (tx) => tx.moveCall({
|
|
68
|
+
package: packageAddress,
|
|
69
|
+
module: 'party_pro_link',
|
|
70
|
+
function: 'booking_page',
|
|
71
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
/** Builds a management-page link from a full URL. Aborts if empty. */
|
|
75
|
+
export function managementPage(options) {
|
|
76
|
+
const packageAddress = options.package ?? '@local-pkg/party_pro_link';
|
|
77
|
+
const argumentsTypes = [
|
|
78
|
+
'0x1::string::String'
|
|
79
|
+
];
|
|
80
|
+
const parameterNames = ["url"];
|
|
81
|
+
return (tx) => tx.moveCall({
|
|
82
|
+
package: packageAddress,
|
|
83
|
+
module: 'party_pro_link',
|
|
84
|
+
function: 'management_page',
|
|
85
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
/** Builds a publisher-page link from a full URL. Aborts if empty. */
|
|
89
|
+
export function publisherPage(options) {
|
|
90
|
+
const packageAddress = options.package ?? '@local-pkg/party_pro_link';
|
|
91
|
+
const argumentsTypes = [
|
|
92
|
+
'0x1::string::String'
|
|
93
|
+
];
|
|
94
|
+
const parameterNames = ["url"];
|
|
95
|
+
return (tx) => tx.moveCall({
|
|
96
|
+
package: packageAddress,
|
|
97
|
+
module: 'party_pro_link',
|
|
98
|
+
function: 'publisher_page',
|
|
99
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
/** Builds a label-page link from a full URL. Aborts if empty. */
|
|
103
|
+
export function labelPage(options) {
|
|
104
|
+
const packageAddress = options.package ?? '@local-pkg/party_pro_link';
|
|
105
|
+
const argumentsTypes = [
|
|
106
|
+
'0x1::string::String'
|
|
107
|
+
];
|
|
108
|
+
const parameterNames = ["url"];
|
|
109
|
+
return (tx) => tx.moveCall({
|
|
110
|
+
package: packageAddress,
|
|
111
|
+
module: 'party_pro_link',
|
|
112
|
+
function: 'label_page',
|
|
113
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
/** Builds an EPK link from a full URL. Aborts if empty. */
|
|
117
|
+
export function epk(options) {
|
|
118
|
+
const packageAddress = options.package ?? '@local-pkg/party_pro_link';
|
|
119
|
+
const argumentsTypes = [
|
|
120
|
+
'0x1::string::String'
|
|
121
|
+
];
|
|
122
|
+
const parameterNames = ["url"];
|
|
123
|
+
return (tx) => tx.moveCall({
|
|
124
|
+
package: packageAddress,
|
|
125
|
+
module: 'party_pro_link',
|
|
126
|
+
function: 'epk',
|
|
127
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
/** Builds a Patreon link from a handle. Aborts if empty. */
|
|
131
|
+
export function patreon(options) {
|
|
132
|
+
const packageAddress = options.package ?? '@local-pkg/party_pro_link';
|
|
133
|
+
const argumentsTypes = [
|
|
134
|
+
'0x1::string::String'
|
|
135
|
+
];
|
|
136
|
+
const parameterNames = ["handle"];
|
|
137
|
+
return (tx) => tx.moveCall({
|
|
138
|
+
package: packageAddress,
|
|
139
|
+
module: 'party_pro_link',
|
|
140
|
+
function: 'patreon',
|
|
141
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
/** Builds a Substack link from a subdomain. Aborts if empty. */
|
|
145
|
+
export function substack(options) {
|
|
146
|
+
const packageAddress = options.package ?? '@local-pkg/party_pro_link';
|
|
147
|
+
const argumentsTypes = [
|
|
148
|
+
'0x1::string::String'
|
|
149
|
+
];
|
|
150
|
+
const parameterNames = ["subdomain"];
|
|
151
|
+
return (tx) => tx.moveCall({
|
|
152
|
+
package: packageAddress,
|
|
153
|
+
module: 'party_pro_link',
|
|
154
|
+
function: 'substack',
|
|
155
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
/** Builds a Ko-fi link from a handle. Aborts if empty. */
|
|
159
|
+
export function kofi(options) {
|
|
160
|
+
const packageAddress = options.package ?? '@local-pkg/party_pro_link';
|
|
161
|
+
const argumentsTypes = [
|
|
162
|
+
'0x1::string::String'
|
|
163
|
+
];
|
|
164
|
+
const parameterNames = ["handle"];
|
|
165
|
+
return (tx) => tx.moveCall({
|
|
166
|
+
package: packageAddress,
|
|
167
|
+
module: 'party_pro_link',
|
|
168
|
+
function: 'kofi',
|
|
169
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
export function websiteUrl(options) {
|
|
173
|
+
const packageAddress = options.package ?? '@local-pkg/party_pro_link';
|
|
174
|
+
const argumentsTypes = [
|
|
175
|
+
null
|
|
176
|
+
];
|
|
177
|
+
const parameterNames = ["self"];
|
|
178
|
+
return (tx) => tx.moveCall({
|
|
179
|
+
package: packageAddress,
|
|
180
|
+
module: 'party_pro_link',
|
|
181
|
+
function: 'website_url',
|
|
182
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
export function bookingUrl(options) {
|
|
186
|
+
const packageAddress = options.package ?? '@local-pkg/party_pro_link';
|
|
187
|
+
const argumentsTypes = [
|
|
188
|
+
null
|
|
189
|
+
];
|
|
190
|
+
const parameterNames = ["self"];
|
|
191
|
+
return (tx) => tx.moveCall({
|
|
192
|
+
package: packageAddress,
|
|
193
|
+
module: 'party_pro_link',
|
|
194
|
+
function: 'booking_url',
|
|
195
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
export function managementUrl(options) {
|
|
199
|
+
const packageAddress = options.package ?? '@local-pkg/party_pro_link';
|
|
200
|
+
const argumentsTypes = [
|
|
201
|
+
null
|
|
202
|
+
];
|
|
203
|
+
const parameterNames = ["self"];
|
|
204
|
+
return (tx) => tx.moveCall({
|
|
205
|
+
package: packageAddress,
|
|
206
|
+
module: 'party_pro_link',
|
|
207
|
+
function: 'management_url',
|
|
208
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
export function publisherUrl(options) {
|
|
212
|
+
const packageAddress = options.package ?? '@local-pkg/party_pro_link';
|
|
213
|
+
const argumentsTypes = [
|
|
214
|
+
null
|
|
215
|
+
];
|
|
216
|
+
const parameterNames = ["self"];
|
|
217
|
+
return (tx) => tx.moveCall({
|
|
218
|
+
package: packageAddress,
|
|
219
|
+
module: 'party_pro_link',
|
|
220
|
+
function: 'publisher_url',
|
|
221
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
export function labelUrl(options) {
|
|
225
|
+
const packageAddress = options.package ?? '@local-pkg/party_pro_link';
|
|
226
|
+
const argumentsTypes = [
|
|
227
|
+
null
|
|
228
|
+
];
|
|
229
|
+
const parameterNames = ["self"];
|
|
230
|
+
return (tx) => tx.moveCall({
|
|
231
|
+
package: packageAddress,
|
|
232
|
+
module: 'party_pro_link',
|
|
233
|
+
function: 'label_url',
|
|
234
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
export function epkUrl(options) {
|
|
238
|
+
const packageAddress = options.package ?? '@local-pkg/party_pro_link';
|
|
239
|
+
const argumentsTypes = [
|
|
240
|
+
null
|
|
241
|
+
];
|
|
242
|
+
const parameterNames = ["self"];
|
|
243
|
+
return (tx) => tx.moveCall({
|
|
244
|
+
package: packageAddress,
|
|
245
|
+
module: 'party_pro_link',
|
|
246
|
+
function: 'epk_url',
|
|
247
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
export function patreonHandle(options) {
|
|
251
|
+
const packageAddress = options.package ?? '@local-pkg/party_pro_link';
|
|
252
|
+
const argumentsTypes = [
|
|
253
|
+
null
|
|
254
|
+
];
|
|
255
|
+
const parameterNames = ["self"];
|
|
256
|
+
return (tx) => tx.moveCall({
|
|
257
|
+
package: packageAddress,
|
|
258
|
+
module: 'party_pro_link',
|
|
259
|
+
function: 'patreon_handle',
|
|
260
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
export function substackSubdomain(options) {
|
|
264
|
+
const packageAddress = options.package ?? '@local-pkg/party_pro_link';
|
|
265
|
+
const argumentsTypes = [
|
|
266
|
+
null
|
|
267
|
+
];
|
|
268
|
+
const parameterNames = ["self"];
|
|
269
|
+
return (tx) => tx.moveCall({
|
|
270
|
+
package: packageAddress,
|
|
271
|
+
module: 'party_pro_link',
|
|
272
|
+
function: 'substack_subdomain',
|
|
273
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
export function kofiHandle(options) {
|
|
277
|
+
const packageAddress = options.package ?? '@local-pkg/party_pro_link';
|
|
278
|
+
const argumentsTypes = [
|
|
279
|
+
null
|
|
280
|
+
];
|
|
281
|
+
const parameterNames = ["self"];
|
|
282
|
+
return (tx) => tx.moveCall({
|
|
283
|
+
package: packageAddress,
|
|
284
|
+
module: 'party_pro_link',
|
|
285
|
+
function: 'kofi_handle',
|
|
286
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
//# sourceMappingURL=party_pro_link.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"party_pro_link.js","sourceRoot":"","sources":["../../../src/contracts/party_pro_link/party_pro_link.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,UAAU,EAAE,sBAAsB,EAA+B,MAAM,mBAAmB,CAAC;AACpG,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,EAA8C,MAAM,0BAA0B,CAAC;AACtF,MAAM,WAAW,GAAG,2CAA2C,CAAC;AAChE,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,eAAe,EAAE,MAAM,EAAE;QACjF,GAAG,EAAE,GAAG,CAAC,MAAM,EAAE;KACpB,EAAE,CAAC,CAAC;AACT,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,GAA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sB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;KACvF,CAAC,CAAC;AACP,CAAC;AAUD,MAAM,UAAU,iBAAiB,CAAC,OAAiC;IAC/D,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,IAAI,2BAA2B,CAAC;IACtE,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,gBAAgB;QACxB,QAAQ,EAAE,oBAAoB;QAC9B,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;KACvF,CAAC,CAAC;AACP,CAAC;AAUD,MAAM,UAAU,UAAU,CAAC,OAA0B;IACjD,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,IAAI,2BAA2B,CAAC;IACtE,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,gBAAgB;QACxB,QAAQ,EAAE,aAAa;QACvB,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;KACvF,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
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.ts';
|
|
14
|
+
export declare const CountryCode: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<string, string, "string">], "country_code::country_code::CountryCode">;
|
|
15
|
+
//# sourceMappingURL=country_code.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"country_code.d.ts","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;AAGpD,eAAO,MAAM,WAAW,8HAAiF,CAAC"}
|