@misonetwork/sdk 0.2.2 → 0.3.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.
Files changed (165) hide show
  1. package/README.md +44 -98
  2. package/dist/contracts.d.ts +0 -12
  3. package/dist/contracts.d.ts.map +1 -1
  4. package/dist/contracts.js +3 -16
  5. package/dist/contracts.js.map +1 -1
  6. package/dist/index.d.ts +0 -3
  7. package/dist/index.d.ts.map +1 -1
  8. package/dist/index.js +3 -3
  9. package/dist/index.js.map +1 -1
  10. package/dist/internal.d.ts +0 -3
  11. package/dist/internal.d.ts.map +1 -1
  12. package/dist/internal.js +0 -4
  13. package/dist/internal.js.map +1 -1
  14. package/dist/queries.d.ts.map +1 -1
  15. package/dist/queries.js.map +1 -1
  16. package/package.json +1 -13
  17. package/src/contracts.ts +3 -19
  18. package/src/index.ts +3 -3
  19. package/src/internal.ts +10 -15
  20. package/src/queries.ts +5 -4
  21. package/dist/contracts/composition_credits/composition_credits.d.ts +0 -181
  22. package/dist/contracts/composition_credits/composition_credits.d.ts.map +0 -1
  23. package/dist/contracts/composition_credits/composition_credits.js +0 -109
  24. package/dist/contracts/composition_credits/composition_credits.js.map +0 -1
  25. package/dist/contracts/composition_credits/composition_party_role.d.ts +0 -119
  26. package/dist/contracts/composition_credits/composition_party_role.d.ts.map +0 -1
  27. package/dist/contracts/composition_credits/composition_party_role.js +0 -139
  28. package/dist/contracts/composition_credits/composition_party_role.js.map +0 -1
  29. package/dist/contracts/composition_credits/deps/miso_credit/credit.d.ts +0 -24
  30. package/dist/contracts/composition_credits/deps/miso_credit/credit.d.ts.map +0 -1
  31. package/dist/contracts/composition_credits/deps/miso_credit/credit.js +0 -23
  32. package/dist/contracts/composition_credits/deps/miso_credit/credit.js.map +0 -1
  33. package/dist/contracts/composition_credits/deps/sui/vec_map.d.ts +0 -37
  34. package/dist/contracts/composition_credits/deps/sui/vec_map.d.ts.map +0 -1
  35. package/dist/contracts/composition_credits/deps/sui/vec_map.js +0 -28
  36. package/dist/contracts/composition_credits/deps/sui/vec_map.js.map +0 -1
  37. package/dist/contracts/composition_royalty_pool/composition_royalty_pool.d.ts +0 -87
  38. package/dist/contracts/composition_royalty_pool/composition_royalty_pool.d.ts.map +0 -1
  39. package/dist/contracts/composition_royalty_pool/composition_royalty_pool.js +0 -80
  40. package/dist/contracts/composition_royalty_pool/composition_royalty_pool.js.map +0 -1
  41. package/dist/contracts/cover_art/cover_art.d.ts +0 -85
  42. package/dist/contracts/cover_art/cover_art.d.ts.map +0 -1
  43. package/dist/contracts/cover_art/cover_art.js +0 -68
  44. package/dist/contracts/cover_art/cover_art.js.map +0 -1
  45. package/dist/contracts/cover_art/deps/ori/walrus_data.d.ts +0 -52
  46. package/dist/contracts/cover_art/deps/ori/walrus_data.d.ts.map +0 -1
  47. package/dist/contracts/cover_art/deps/ori/walrus_data.js +0 -37
  48. package/dist/contracts/cover_art/deps/ori/walrus_data.js.map +0 -1
  49. package/dist/contracts/recording_credits/deps/miso_credit/credit.d.ts +0 -24
  50. package/dist/contracts/recording_credits/deps/miso_credit/credit.d.ts.map +0 -1
  51. package/dist/contracts/recording_credits/deps/miso_credit/credit.js +0 -23
  52. package/dist/contracts/recording_credits/deps/miso_credit/credit.js.map +0 -1
  53. package/dist/contracts/recording_credits/deps/sui/vec_map.d.ts +0 -37
  54. package/dist/contracts/recording_credits/deps/sui/vec_map.d.ts.map +0 -1
  55. package/dist/contracts/recording_credits/deps/sui/vec_map.js +0 -28
  56. package/dist/contracts/recording_credits/deps/sui/vec_map.js.map +0 -1
  57. package/dist/contracts/recording_credits/deps/sui/vec_set.d.ts +0 -21
  58. package/dist/contracts/recording_credits/deps/sui/vec_set.d.ts.map +0 -1
  59. package/dist/contracts/recording_credits/deps/sui/vec_set.js +0 -20
  60. package/dist/contracts/recording_credits/deps/sui/vec_set.js.map +0 -1
  61. package/dist/contracts/recording_credits/recording_credits.d.ts +0 -2313
  62. package/dist/contracts/recording_credits/recording_credits.d.ts.map +0 -1
  63. package/dist/contracts/recording_credits/recording_credits.js +0 -270
  64. package/dist/contracts/recording_credits/recording_credits.js.map +0 -1
  65. package/dist/contracts/recording_credits/recording_party_role.d.ts +0 -1174
  66. package/dist/contracts/recording_credits/recording_party_role.d.ts.map +0 -1
  67. package/dist/contracts/recording_credits/recording_party_role.js +0 -692
  68. package/dist/contracts/recording_credits/recording_party_role.js.map +0 -1
  69. package/dist/contracts/recording_royalty_pool/recording_royalty_pool.d.ts +0 -90
  70. package/dist/contracts/recording_royalty_pool/recording_royalty_pool.d.ts.map +0 -1
  71. package/dist/contracts/recording_royalty_pool/recording_royalty_pool.js +0 -80
  72. package/dist/contracts/recording_royalty_pool/recording_royalty_pool.js.map +0 -1
  73. package/dist/contracts/release_cover_art/deps/0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78/walrus_data.d.ts +0 -52
  74. package/dist/contracts/release_cover_art/deps/0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78/walrus_data.d.ts.map +0 -1
  75. package/dist/contracts/release_cover_art/deps/0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78/walrus_data.js +0 -37
  76. package/dist/contracts/release_cover_art/deps/0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78/walrus_data.js.map +0 -1
  77. package/dist/contracts/release_cover_art/deps/cover_art/cover_art.d.ts +0 -46
  78. package/dist/contracts/release_cover_art/deps/cover_art/cover_art.d.ts.map +0 -1
  79. package/dist/contracts/release_cover_art/deps/cover_art/cover_art.js +0 -21
  80. package/dist/contracts/release_cover_art/deps/cover_art/cover_art.js.map +0 -1
  81. package/dist/contracts/release_cover_art/deps/per_track/per_track.d.ts +0 -33
  82. package/dist/contracts/release_cover_art/deps/per_track/per_track.d.ts.map +0 -1
  83. package/dist/contracts/release_cover_art/deps/per_track/per_track.js +0 -32
  84. package/dist/contracts/release_cover_art/deps/per_track/per_track.js.map +0 -1
  85. package/dist/contracts/release_cover_art/release_cover_art.d.ts +0 -300
  86. package/dist/contracts/release_cover_art/release_cover_art.d.ts.map +0 -1
  87. package/dist/contracts/release_cover_art/release_cover_art.js +0 -168
  88. package/dist/contracts/release_cover_art/release_cover_art.js.map +0 -1
  89. package/dist/contracts/release_credits/deps/miso_credit/credit.d.ts +0 -24
  90. package/dist/contracts/release_credits/deps/miso_credit/credit.d.ts.map +0 -1
  91. package/dist/contracts/release_credits/deps/miso_credit/credit.js +0 -23
  92. package/dist/contracts/release_credits/deps/miso_credit/credit.js.map +0 -1
  93. package/dist/contracts/release_credits/deps/sui/vec_map.d.ts +0 -37
  94. package/dist/contracts/release_credits/deps/sui/vec_map.d.ts.map +0 -1
  95. package/dist/contracts/release_credits/deps/sui/vec_map.js +0 -28
  96. package/dist/contracts/release_credits/deps/sui/vec_map.js.map +0 -1
  97. package/dist/contracts/release_credits/release_credits.d.ts +0 -142
  98. package/dist/contracts/release_credits/release_credits.d.ts.map +0 -1
  99. package/dist/contracts/release_credits/release_credits.js +0 -108
  100. package/dist/contracts/release_credits/release_credits.js.map +0 -1
  101. package/dist/contracts/release_credits/release_party_role.d.ts +0 -58
  102. package/dist/contracts/release_credits/release_party_role.d.ts.map +0 -1
  103. package/dist/contracts/release_credits/release_party_role.js +0 -66
  104. package/dist/contracts/release_credits/release_party_role.js.map +0 -1
  105. package/dist/contracts/royalty_pool/deps/std/type_name.d.ts +0 -18
  106. package/dist/contracts/royalty_pool/deps/std/type_name.d.ts.map +0 -1
  107. package/dist/contracts/royalty_pool/deps/std/type_name.js +0 -20
  108. package/dist/contracts/royalty_pool/deps/std/type_name.js.map +0 -1
  109. package/dist/contracts/royalty_pool/deps/sui/balance.d.ts +0 -13
  110. package/dist/contracts/royalty_pool/deps/sui/balance.d.ts.map +0 -1
  111. package/dist/contracts/royalty_pool/deps/sui/balance.js +0 -15
  112. package/dist/contracts/royalty_pool/deps/sui/balance.js.map +0 -1
  113. package/dist/contracts/royalty_pool/deps/sui/vec_map.d.ts +0 -37
  114. package/dist/contracts/royalty_pool/deps/sui/vec_map.d.ts.map +0 -1
  115. package/dist/contracts/royalty_pool/deps/sui/vec_map.js +0 -28
  116. package/dist/contracts/royalty_pool/deps/sui/vec_map.js.map +0 -1
  117. package/dist/contracts/royalty_pool/pool.d.ts +0 -358
  118. package/dist/contracts/royalty_pool/pool.d.ts.map +0 -1
  119. package/dist/contracts/royalty_pool/pool.js +0 -352
  120. package/dist/contracts/royalty_pool/pool.js.map +0 -1
  121. package/dist/contracts/royalty_pool/stake.d.ts +0 -202
  122. package/dist/contracts/royalty_pool/stake.d.ts.map +0 -1
  123. package/dist/contracts/royalty_pool/stake.js +0 -197
  124. package/dist/contracts/royalty_pool/stake.js.map +0 -1
  125. package/dist/cover.d.ts +0 -48
  126. package/dist/cover.d.ts.map +0 -1
  127. package/dist/cover.js +0 -68
  128. package/dist/cover.js.map +0 -1
  129. package/dist/credits.d.ts +0 -171
  130. package/dist/credits.d.ts.map +0 -1
  131. package/dist/credits.js +0 -360
  132. package/dist/credits.js.map +0 -1
  133. package/dist/extensions/royalty-pool.d.ts +0 -32
  134. package/dist/extensions/royalty-pool.d.ts.map +0 -1
  135. package/dist/extensions/royalty-pool.js +0 -33
  136. package/dist/extensions/royalty-pool.js.map +0 -1
  137. package/src/contracts/composition_credits/composition_credits.ts +0 -169
  138. package/src/contracts/composition_credits/composition_party_role.ts +0 -189
  139. package/src/contracts/composition_credits/deps/miso_credit/credit.ts +0 -27
  140. package/src/contracts/composition_credits/deps/sui/vec_map.ts +0 -33
  141. package/src/contracts/composition_royalty_pool/composition_royalty_pool.ts +0 -135
  142. package/src/contracts/cover_art/cover_art.ts +0 -99
  143. package/src/contracts/cover_art/deps/ori/walrus_data.ts +0 -36
  144. package/src/contracts/recording_credits/deps/miso_credit/credit.ts +0 -27
  145. package/src/contracts/recording_credits/deps/sui/vec_map.ts +0 -33
  146. package/src/contracts/recording_credits/deps/sui/vec_set.ts +0 -21
  147. package/src/contracts/recording_credits/recording_credits.ts +0 -458
  148. package/src/contracts/recording_credits/recording_party_role.ts +0 -1041
  149. package/src/contracts/recording_royalty_pool/recording_royalty_pool.ts +0 -138
  150. package/src/contracts/release_cover_art/deps/0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78/walrus_data.ts +0 -36
  151. package/src/contracts/release_cover_art/deps/cover_art/cover_art.ts +0 -23
  152. package/src/contracts/release_cover_art/deps/per_track/per_track.ts +0 -36
  153. package/src/contracts/release_cover_art/release_cover_art.ts +0 -251
  154. package/src/contracts/release_credits/deps/miso_credit/credit.ts +0 -27
  155. package/src/contracts/release_credits/deps/sui/vec_map.ts +0 -33
  156. package/src/contracts/release_credits/release_credits.ts +0 -156
  157. package/src/contracts/release_credits/release_party_role.ts +0 -87
  158. package/src/contracts/royalty_pool/deps/std/type_name.ts +0 -22
  159. package/src/contracts/royalty_pool/deps/sui/balance.ts +0 -17
  160. package/src/contracts/royalty_pool/deps/sui/vec_map.ts +0 -33
  161. package/src/contracts/royalty_pool/pool.ts +0 -577
  162. package/src/contracts/royalty_pool/stake.ts +0 -317
  163. package/src/cover.ts +0 -136
  164. package/src/credits.ts +0 -645
  165. package/src/extensions/royalty-pool.ts +0 -85
@@ -1,692 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- /**
5
- * Defines the roles that parties can hold on a recording. Recordings are audio
6
- * performances of compositions, and these roles represent the various production
7
- * and performance contributions.
8
- *
9
- * ### Design
10
- *
11
- * `RecordingPartyRole` is a closed enum: variants can only be constructed and
12
- * matched inside this module, so the `new_*_role` constructors are the external
13
- * write-API and `name()` is the external read-API.
14
- *
15
- * - **Seniority is a separate axis.** Most roles carry an optional
16
- * `RecordingPartyRoleLevel` (Lead, Assistant, Additional, …). Industry variants
17
- * like "Second Engineer" or "Additional Producer" are expressed as a base role
18
- * plus a level, not as their own variants — this keeps the role set compact
19
- * without losing the distinction.
20
- * - **`Custom` is the escape hatch.** The canonical variants cover the common
21
- * vocabulary; anything outside it is a `Custom(name, level)` whose name is
22
- * validated like an instrument name. Prefer a canonical variant when one fits.
23
- * - **`name()` is the canonical identifier**, returned as a stable PascalCase
24
- * token (e.g. `"MixingEngineer"`). It doubles as an on-chain match key and as
25
- * the seed for off-chain display/localization. For `Custom`, `name()` returns
26
- * the user-supplied string; for `Instrumentalist`, it returns
27
- * `"Instrumentalist"` (the instrument itself is read off-chain).
28
- *
29
- * These identifiers are Miso's own canonical vocabulary; any overlap with an
30
- * external standard (e.g. DDEX) is coincidental, not a reproduction of it.
31
- */
32
- import { MoveEnum, MoveTuple, normalizeMoveArguments } from '../utils/index.js';
33
- import { bcs } from '@mysten/sui/bcs';
34
- import {} from '@mysten/sui/transactions';
35
- const $moduleName = '@local-pkg/recording_credits::recording_party_role';
36
- /** Indicates the seniority or prominence level of a party. */
37
- export const RecordingPartyRoleLevel = new MoveEnum({ name: `${$moduleName}::RecordingPartyRoleLevel`, fields: {
38
- /** Additional/supplementary party. */
39
- Additional: null,
40
- /** Assistant to the primary party. */
41
- Assistant: null,
42
- /** Associate-level party. */
43
- Associate: null,
44
- /** Backing/support role (e.g., backing vocals). */
45
- Backing: null,
46
- /** Executive-level oversight role. */
47
- Executive: null,
48
- /** Featured prominently on the recording. */
49
- Featured: null,
50
- /** Lead/primary party in this role. */
51
- Lead: null,
52
- /** Primary artist on the recording. */
53
- Primary: null,
54
- /** Principal party with primary responsibility. */
55
- Principal: null
56
- } });
57
- /**
58
- * Represents a party's role on a recording. Most roles carry an optional level to
59
- * indicate seniority/prominence; `ArtistsAndRepertoire` and `Copyist` are
60
- * clerical/business roles that do not.
61
- */
62
- export const RecordingPartyRole = new MoveEnum({ name: `${$moduleName}::RecordingPartyRole`, fields: {
63
- /** Performed voice acting or spoken-word performance. */
64
- Actor: bcs.option(RecordingPartyRoleLevel),
65
- /** Arranged the musical parts for the recording. */
66
- Arranger: bcs.option(RecordingPartyRoleLevel),
67
- /** A&R representative who discovered or developed the artist. */
68
- ArtistsAndRepertoire: null,
69
- /** Led the band or backing ensemble. */
70
- BandLeader: bcs.option(RecordingPartyRoleLevel),
71
- /** Performed as part of a choir. */
72
- Choir: bcs.option(RecordingPartyRoleLevel),
73
- /** Directed the choir performance. */
74
- ChoirMaster: bcs.option(RecordingPartyRoleLevel),
75
- /** Lead performer of an orchestra/ensemble (e.g. first-chair). */
76
- ConcertMaster: bcs.option(RecordingPartyRoleLevel),
77
- /** Conducted the orchestra or ensemble. */
78
- Conductor: bcs.option(RecordingPartyRoleLevel),
79
- /** Hired and managed session musicians. */
80
- Contractor: bcs.option(RecordingPartyRoleLevel),
81
- /** Prepared written music parts for performers. */
82
- Copyist: null,
83
- /** Performed/assembled the recording as a disc jockey. */
84
- DJ: bcs.option(RecordingPartyRoleLevel),
85
- /** Edited and compiled audio takes. */
86
- Editor: bcs.option(RecordingPartyRoleLevel),
87
- /** General engineering contribution not covered by a specific engineer role. */
88
- Engineer: bcs.option(RecordingPartyRoleLevel),
89
- /** Performed as part of a musical ensemble. */
90
- Ensemble: bcs.option(RecordingPartyRoleLevel),
91
- /** Played an instrument on the recording. Carries the instrument name. */
92
- Instrumentalist: new MoveTuple({ name: `RecordingPartyRole.Instrumentalist`, fields: [bcs.string(), bcs.option(RecordingPartyRoleLevel)] }),
93
- /** Mastered the final audio for distribution. */
94
- MasteringEngineer: bcs.option(RecordingPartyRoleLevel),
95
- /** Mixed the multitrack recording into stereo/surround. */
96
- MixingEngineer: bcs.option(RecordingPartyRoleLevel),
97
- /** Directed the musical performance. */
98
- MusicDirector: bcs.option(RecordingPartyRoleLevel),
99
- /** Oversaw music selection and licensing. */
100
- MusicSupervisor: bcs.option(RecordingPartyRoleLevel),
101
- /** Narrated spoken content. */
102
- Narrator: bcs.option(RecordingPartyRoleLevel),
103
- /** Performed as part of an orchestra. */
104
- Orchestra: bcs.option(RecordingPartyRoleLevel),
105
- /** Created orchestral arrangements. */
106
- Orchestrator: bcs.option(RecordingPartyRoleLevel),
107
- /** Performed on the recording (general performer). */
108
- Performer: bcs.option(RecordingPartyRoleLevel),
109
- /** Oversaw the creative and technical aspects of the recording. */
110
- Producer: bcs.option(RecordingPartyRoleLevel),
111
- /** Programmed beats, synths, or electronic elements. */
112
- Programmer: bcs.option(RecordingPartyRoleLevel),
113
- /** Operated recording equipment during sessions. */
114
- RecordingEngineer: bcs.option(RecordingPartyRoleLevel),
115
- /** Created a remix of the recording. */
116
- RemixingEngineer: bcs.option(RecordingPartyRoleLevel),
117
- /** Performed a solo part. */
118
- Soloist: bcs.option(RecordingPartyRoleLevel),
119
- /** Created sound effects or sonic textures. */
120
- SoundDesigner: bcs.option(RecordingPartyRoleLevel),
121
- /** Delivered spoken-word or presentation content. */
122
- Speaker: bcs.option(RecordingPartyRoleLevel),
123
- /** Provided vocals on the recording. */
124
- Vocalist: bcs.option(RecordingPartyRoleLevel),
125
- /**
126
- * A user-defined role not covered by a canonical variant. Carries the role name
127
- * (validated like an instrument name) and an optional level. An escape hatch —
128
- * prefer a canonical variant when one fits.
129
- */
130
- Custom: new MoveTuple({ name: `RecordingPartyRole.Custom`, fields: [bcs.string(), bcs.option(RecordingPartyRoleLevel)] })
131
- } });
132
- /** Creates a new Actor role with optional level. */
133
- export function newActorRole(options) {
134
- const packageAddress = options.package ?? '@local-pkg/recording_credits';
135
- const argumentsTypes = [
136
- null
137
- ];
138
- const parameterNames = ["level"];
139
- return (tx) => tx.moveCall({
140
- package: packageAddress,
141
- module: 'recording_party_role',
142
- function: 'new_actor_role',
143
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
144
- });
145
- }
146
- /** Creates a new Arranger role with optional level. */
147
- export function newArrangerRole(options) {
148
- const packageAddress = options.package ?? '@local-pkg/recording_credits';
149
- const argumentsTypes = [
150
- null
151
- ];
152
- const parameterNames = ["level"];
153
- return (tx) => tx.moveCall({
154
- package: packageAddress,
155
- module: 'recording_party_role',
156
- function: 'new_arranger_role',
157
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
158
- });
159
- }
160
- /** Creates a new Artists & Repertoire role. */
161
- export function newArtistsAndRepertoireRole(options = {}) {
162
- const packageAddress = options.package ?? '@local-pkg/recording_credits';
163
- return (tx) => tx.moveCall({
164
- package: packageAddress,
165
- module: 'recording_party_role',
166
- function: 'new_artists_and_repertoire_role',
167
- });
168
- }
169
- /** Creates a new Band Leader role with optional level. */
170
- export function newBandLeaderRole(options) {
171
- const packageAddress = options.package ?? '@local-pkg/recording_credits';
172
- const argumentsTypes = [
173
- null
174
- ];
175
- const parameterNames = ["level"];
176
- return (tx) => tx.moveCall({
177
- package: packageAddress,
178
- module: 'recording_party_role',
179
- function: 'new_band_leader_role',
180
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
181
- });
182
- }
183
- /** Creates a new Choir role with optional level. */
184
- export function newChoirRole(options) {
185
- const packageAddress = options.package ?? '@local-pkg/recording_credits';
186
- const argumentsTypes = [
187
- null
188
- ];
189
- const parameterNames = ["level"];
190
- return (tx) => tx.moveCall({
191
- package: packageAddress,
192
- module: 'recording_party_role',
193
- function: 'new_choir_role',
194
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
195
- });
196
- }
197
- /** Creates a new Choir Master role with optional level. */
198
- export function newChoirMasterRole(options) {
199
- const packageAddress = options.package ?? '@local-pkg/recording_credits';
200
- const argumentsTypes = [
201
- null
202
- ];
203
- const parameterNames = ["level"];
204
- return (tx) => tx.moveCall({
205
- package: packageAddress,
206
- module: 'recording_party_role',
207
- function: 'new_choir_master_role',
208
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
209
- });
210
- }
211
- /** Creates a new Concert Master role with optional level. */
212
- export function newConcertMasterRole(options) {
213
- const packageAddress = options.package ?? '@local-pkg/recording_credits';
214
- const argumentsTypes = [
215
- null
216
- ];
217
- const parameterNames = ["level"];
218
- return (tx) => tx.moveCall({
219
- package: packageAddress,
220
- module: 'recording_party_role',
221
- function: 'new_concert_master_role',
222
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
223
- });
224
- }
225
- /** Creates a new Conductor role with optional level. */
226
- export function newConductorRole(options) {
227
- const packageAddress = options.package ?? '@local-pkg/recording_credits';
228
- const argumentsTypes = [
229
- null
230
- ];
231
- const parameterNames = ["level"];
232
- return (tx) => tx.moveCall({
233
- package: packageAddress,
234
- module: 'recording_party_role',
235
- function: 'new_conductor_role',
236
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
237
- });
238
- }
239
- /** Creates a new Contractor role with optional level. */
240
- export function newContractorRole(options) {
241
- const packageAddress = options.package ?? '@local-pkg/recording_credits';
242
- const argumentsTypes = [
243
- null
244
- ];
245
- const parameterNames = ["level"];
246
- return (tx) => tx.moveCall({
247
- package: packageAddress,
248
- module: 'recording_party_role',
249
- function: 'new_contractor_role',
250
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
251
- });
252
- }
253
- /** Creates a new Copyist role. */
254
- export function newCopyistRole(options = {}) {
255
- const packageAddress = options.package ?? '@local-pkg/recording_credits';
256
- return (tx) => tx.moveCall({
257
- package: packageAddress,
258
- module: 'recording_party_role',
259
- function: 'new_copyist_role',
260
- });
261
- }
262
- /** Creates a new DJ role with optional level. */
263
- export function newDjRole(options) {
264
- const packageAddress = options.package ?? '@local-pkg/recording_credits';
265
- const argumentsTypes = [
266
- null
267
- ];
268
- const parameterNames = ["level"];
269
- return (tx) => tx.moveCall({
270
- package: packageAddress,
271
- module: 'recording_party_role',
272
- function: 'new_dj_role',
273
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
274
- });
275
- }
276
- /** Creates a new Editor role with optional level. */
277
- export function newEditorRole(options) {
278
- const packageAddress = options.package ?? '@local-pkg/recording_credits';
279
- const argumentsTypes = [
280
- null
281
- ];
282
- const parameterNames = ["level"];
283
- return (tx) => tx.moveCall({
284
- package: packageAddress,
285
- module: 'recording_party_role',
286
- function: 'new_editor_role',
287
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
288
- });
289
- }
290
- /** Creates a new (general) Engineer role with optional level. */
291
- export function newEngineerRole(options) {
292
- const packageAddress = options.package ?? '@local-pkg/recording_credits';
293
- const argumentsTypes = [
294
- null
295
- ];
296
- const parameterNames = ["level"];
297
- return (tx) => tx.moveCall({
298
- package: packageAddress,
299
- module: 'recording_party_role',
300
- function: 'new_engineer_role',
301
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
302
- });
303
- }
304
- /** Creates a new Ensemble role with optional level. */
305
- export function newEnsembleRole(options) {
306
- const packageAddress = options.package ?? '@local-pkg/recording_credits';
307
- const argumentsTypes = [
308
- null
309
- ];
310
- const parameterNames = ["level"];
311
- return (tx) => tx.moveCall({
312
- package: packageAddress,
313
- module: 'recording_party_role',
314
- function: 'new_ensemble_role',
315
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
316
- });
317
- }
318
- /**
319
- * Creates a new Instrumentalist role with instrument name and optional level. The
320
- * instrument name freezes into credits, so it is validated here.
321
- */
322
- export function newInstrumentalistRole(options) {
323
- const packageAddress = options.package ?? '@local-pkg/recording_credits';
324
- const argumentsTypes = [
325
- '0x1::string::String',
326
- null
327
- ];
328
- const parameterNames = ["instrument", "level"];
329
- return (tx) => tx.moveCall({
330
- package: packageAddress,
331
- module: 'recording_party_role',
332
- function: 'new_instrumentalist_role',
333
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
334
- });
335
- }
336
- /** Creates a new Mastering Engineer role with optional level. */
337
- export function newMasteringEngineerRole(options) {
338
- const packageAddress = options.package ?? '@local-pkg/recording_credits';
339
- const argumentsTypes = [
340
- null
341
- ];
342
- const parameterNames = ["level"];
343
- return (tx) => tx.moveCall({
344
- package: packageAddress,
345
- module: 'recording_party_role',
346
- function: 'new_mastering_engineer_role',
347
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
348
- });
349
- }
350
- /** Creates a new Mixing Engineer role with optional level. */
351
- export function newMixingEngineerRole(options) {
352
- const packageAddress = options.package ?? '@local-pkg/recording_credits';
353
- const argumentsTypes = [
354
- null
355
- ];
356
- const parameterNames = ["level"];
357
- return (tx) => tx.moveCall({
358
- package: packageAddress,
359
- module: 'recording_party_role',
360
- function: 'new_mixing_engineer_role',
361
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
362
- });
363
- }
364
- /** Creates a new Music Director role with optional level. */
365
- export function newMusicDirectorRole(options) {
366
- const packageAddress = options.package ?? '@local-pkg/recording_credits';
367
- const argumentsTypes = [
368
- null
369
- ];
370
- const parameterNames = ["level"];
371
- return (tx) => tx.moveCall({
372
- package: packageAddress,
373
- module: 'recording_party_role',
374
- function: 'new_music_director_role',
375
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
376
- });
377
- }
378
- /** Creates a new Music Supervisor role with optional level. */
379
- export function newMusicSupervisorRole(options) {
380
- const packageAddress = options.package ?? '@local-pkg/recording_credits';
381
- const argumentsTypes = [
382
- null
383
- ];
384
- const parameterNames = ["level"];
385
- return (tx) => tx.moveCall({
386
- package: packageAddress,
387
- module: 'recording_party_role',
388
- function: 'new_music_supervisor_role',
389
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
390
- });
391
- }
392
- /** Creates a new Narrator role with optional level. */
393
- export function newNarratorRole(options) {
394
- const packageAddress = options.package ?? '@local-pkg/recording_credits';
395
- const argumentsTypes = [
396
- null
397
- ];
398
- const parameterNames = ["level"];
399
- return (tx) => tx.moveCall({
400
- package: packageAddress,
401
- module: 'recording_party_role',
402
- function: 'new_narrator_role',
403
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
404
- });
405
- }
406
- /** Creates a new Orchestra role with optional level. */
407
- export function newOrchestraRole(options) {
408
- const packageAddress = options.package ?? '@local-pkg/recording_credits';
409
- const argumentsTypes = [
410
- null
411
- ];
412
- const parameterNames = ["level"];
413
- return (tx) => tx.moveCall({
414
- package: packageAddress,
415
- module: 'recording_party_role',
416
- function: 'new_orchestra_role',
417
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
418
- });
419
- }
420
- /** Creates a new Orchestrator role with optional level. */
421
- export function newOrchestratorRole(options) {
422
- const packageAddress = options.package ?? '@local-pkg/recording_credits';
423
- const argumentsTypes = [
424
- null
425
- ];
426
- const parameterNames = ["level"];
427
- return (tx) => tx.moveCall({
428
- package: packageAddress,
429
- module: 'recording_party_role',
430
- function: 'new_orchestrator_role',
431
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
432
- });
433
- }
434
- /** Creates a new Performer role with optional level. */
435
- export function newPerformerRole(options) {
436
- const packageAddress = options.package ?? '@local-pkg/recording_credits';
437
- const argumentsTypes = [
438
- null
439
- ];
440
- const parameterNames = ["level"];
441
- return (tx) => tx.moveCall({
442
- package: packageAddress,
443
- module: 'recording_party_role',
444
- function: 'new_performer_role',
445
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
446
- });
447
- }
448
- /** Creates a new Producer role with optional level. */
449
- export function newProducerRole(options) {
450
- const packageAddress = options.package ?? '@local-pkg/recording_credits';
451
- const argumentsTypes = [
452
- null
453
- ];
454
- const parameterNames = ["level"];
455
- return (tx) => tx.moveCall({
456
- package: packageAddress,
457
- module: 'recording_party_role',
458
- function: 'new_producer_role',
459
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
460
- });
461
- }
462
- /** Creates a new Programmer role with optional level. */
463
- export function newProgrammerRole(options) {
464
- const packageAddress = options.package ?? '@local-pkg/recording_credits';
465
- const argumentsTypes = [
466
- null
467
- ];
468
- const parameterNames = ["level"];
469
- return (tx) => tx.moveCall({
470
- package: packageAddress,
471
- module: 'recording_party_role',
472
- function: 'new_programmer_role',
473
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
474
- });
475
- }
476
- /** Creates a new Recording Engineer role with optional level. */
477
- export function newRecordingEngineerRole(options) {
478
- const packageAddress = options.package ?? '@local-pkg/recording_credits';
479
- const argumentsTypes = [
480
- null
481
- ];
482
- const parameterNames = ["level"];
483
- return (tx) => tx.moveCall({
484
- package: packageAddress,
485
- module: 'recording_party_role',
486
- function: 'new_recording_engineer_role',
487
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
488
- });
489
- }
490
- /** Creates a new Remixing Engineer role with optional level. */
491
- export function newRemixingEngineerRole(options) {
492
- const packageAddress = options.package ?? '@local-pkg/recording_credits';
493
- const argumentsTypes = [
494
- null
495
- ];
496
- const parameterNames = ["level"];
497
- return (tx) => tx.moveCall({
498
- package: packageAddress,
499
- module: 'recording_party_role',
500
- function: 'new_remixing_engineer_role',
501
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
502
- });
503
- }
504
- /** Creates a new Soloist role with optional level. */
505
- export function newSoloistRole(options) {
506
- const packageAddress = options.package ?? '@local-pkg/recording_credits';
507
- const argumentsTypes = [
508
- null
509
- ];
510
- const parameterNames = ["level"];
511
- return (tx) => tx.moveCall({
512
- package: packageAddress,
513
- module: 'recording_party_role',
514
- function: 'new_soloist_role',
515
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
516
- });
517
- }
518
- /** Creates a new Sound Designer role with optional level. */
519
- export function newSoundDesignerRole(options) {
520
- const packageAddress = options.package ?? '@local-pkg/recording_credits';
521
- const argumentsTypes = [
522
- null
523
- ];
524
- const parameterNames = ["level"];
525
- return (tx) => tx.moveCall({
526
- package: packageAddress,
527
- module: 'recording_party_role',
528
- function: 'new_sound_designer_role',
529
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
530
- });
531
- }
532
- /** Creates a new Speaker role with optional level. */
533
- export function newSpeakerRole(options) {
534
- const packageAddress = options.package ?? '@local-pkg/recording_credits';
535
- const argumentsTypes = [
536
- null
537
- ];
538
- const parameterNames = ["level"];
539
- return (tx) => tx.moveCall({
540
- package: packageAddress,
541
- module: 'recording_party_role',
542
- function: 'new_speaker_role',
543
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
544
- });
545
- }
546
- /** Creates a new Vocalist role with optional level. */
547
- export function newVocalistRole(options) {
548
- const packageAddress = options.package ?? '@local-pkg/recording_credits';
549
- const argumentsTypes = [
550
- null
551
- ];
552
- const parameterNames = ["level"];
553
- return (tx) => tx.moveCall({
554
- package: packageAddress,
555
- module: 'recording_party_role',
556
- function: 'new_vocalist_role',
557
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
558
- });
559
- }
560
- /**
561
- * Creates a new Custom role with a user-defined name and optional level. The name
562
- * freezes into credits, so it is validated like an instrument name. Prefer a
563
- * canonical variant when one fits.
564
- */
565
- export function newCustomRole(options) {
566
- const packageAddress = options.package ?? '@local-pkg/recording_credits';
567
- const argumentsTypes = [
568
- '0x1::string::String',
569
- null
570
- ];
571
- const parameterNames = ["roleName", "level"];
572
- return (tx) => tx.moveCall({
573
- package: packageAddress,
574
- module: 'recording_party_role',
575
- function: 'new_custom_role',
576
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
577
- });
578
- }
579
- /** Creates an Additional level. */
580
- export function newAdditionalRoleLevel(options = {}) {
581
- const packageAddress = options.package ?? '@local-pkg/recording_credits';
582
- return (tx) => tx.moveCall({
583
- package: packageAddress,
584
- module: 'recording_party_role',
585
- function: 'new_additional_role_level',
586
- });
587
- }
588
- /** Creates an Assistant level. */
589
- export function newAssistantRoleLevel(options = {}) {
590
- const packageAddress = options.package ?? '@local-pkg/recording_credits';
591
- return (tx) => tx.moveCall({
592
- package: packageAddress,
593
- module: 'recording_party_role',
594
- function: 'new_assistant_role_level',
595
- });
596
- }
597
- /** Creates an Associate level. */
598
- export function newAssociateRoleLevel(options = {}) {
599
- const packageAddress = options.package ?? '@local-pkg/recording_credits';
600
- return (tx) => tx.moveCall({
601
- package: packageAddress,
602
- module: 'recording_party_role',
603
- function: 'new_associate_role_level',
604
- });
605
- }
606
- /** Creates a Backing level. */
607
- export function newBackingRoleLevel(options = {}) {
608
- const packageAddress = options.package ?? '@local-pkg/recording_credits';
609
- return (tx) => tx.moveCall({
610
- package: packageAddress,
611
- module: 'recording_party_role',
612
- function: 'new_backing_role_level',
613
- });
614
- }
615
- /** Creates an Executive level. */
616
- export function newExecutiveRoleLevel(options = {}) {
617
- const packageAddress = options.package ?? '@local-pkg/recording_credits';
618
- return (tx) => tx.moveCall({
619
- package: packageAddress,
620
- module: 'recording_party_role',
621
- function: 'new_executive_role_level',
622
- });
623
- }
624
- /** Creates a Featured level. */
625
- export function newFeaturedRoleLevel(options = {}) {
626
- const packageAddress = options.package ?? '@local-pkg/recording_credits';
627
- return (tx) => tx.moveCall({
628
- package: packageAddress,
629
- module: 'recording_party_role',
630
- function: 'new_featured_role_level',
631
- });
632
- }
633
- /** Creates a Lead level. */
634
- export function newLeadRoleLevel(options = {}) {
635
- const packageAddress = options.package ?? '@local-pkg/recording_credits';
636
- return (tx) => tx.moveCall({
637
- package: packageAddress,
638
- module: 'recording_party_role',
639
- function: 'new_lead_role_level',
640
- });
641
- }
642
- /** Creates a Primary level. */
643
- export function newPrimaryRoleLevel(options = {}) {
644
- const packageAddress = options.package ?? '@local-pkg/recording_credits';
645
- return (tx) => tx.moveCall({
646
- package: packageAddress,
647
- module: 'recording_party_role',
648
- function: 'new_primary_role_level',
649
- });
650
- }
651
- /** Creates a Principal level. */
652
- export function newPrincipalRoleLevel(options = {}) {
653
- const packageAddress = options.package ?? '@local-pkg/recording_credits';
654
- return (tx) => tx.moveCall({
655
- package: packageAddress,
656
- module: 'recording_party_role',
657
- function: 'new_principal_role_level',
658
- });
659
- }
660
- /** Returns the optional level associated with this role. */
661
- export function level(options) {
662
- const packageAddress = options.package ?? '@local-pkg/recording_credits';
663
- const argumentsTypes = [
664
- null
665
- ];
666
- const parameterNames = ["self"];
667
- return (tx) => tx.moveCall({
668
- package: packageAddress,
669
- module: 'recording_party_role',
670
- function: 'level',
671
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
672
- });
673
- }
674
- /**
675
- * Returns the canonical identifier of the role as a stable PascalCase token. For
676
- * `Custom`, returns the user-supplied name; for `Instrumentalist`, returns
677
- * `"Instrumentalist"` (the instrument is read off-chain).
678
- */
679
- export function name(options) {
680
- const packageAddress = options.package ?? '@local-pkg/recording_credits';
681
- const argumentsTypes = [
682
- null
683
- ];
684
- const parameterNames = ["self"];
685
- return (tx) => tx.moveCall({
686
- package: packageAddress,
687
- module: 'recording_party_role',
688
- function: 'name',
689
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
690
- });
691
- }
692
- //# sourceMappingURL=recording_party_role.js.map