@misonetwork/sdk 0.2.1 → 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,300 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- /**
5
- * Release cover art: an album-level cover plus optional per-track cover overrides.
6
- * Stored as a dynamic field on the release's UID, set/cleared via the release's
7
- * cap-gated `uid_mut`.
8
- *
9
- * Cover art is presentation, not objective recording data, so it lives on the
10
- * release (the consumer object) rather than the recording. A track's effective
11
- * cover resolves as: its per-track override if set, else the album cover. The
12
- * overrides are a `PerTrack<Option<CoverArt>>` — one slot per track, aligned to
13
- * the release's tracklist by construction (sized from `tracks().length()`).
14
- */
15
- import { MoveTuple, MoveStruct, type RawTransactionArgument } from '../utils/index.js';
16
- import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
17
- export declare const ExtensionKey: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">], "@local-pkg/release_cover_art::release_cover_art::ExtensionKey">;
18
- export declare const ReleaseCoverArt: MoveStruct<{
19
- cover: import("@mysten/sui/bcs").BcsType<{
20
- still: import("@mysten/bcs").EnumOutputShapeWithKeys<{
21
- Blob: [string, import("@mysten/bcs").EnumOutputShapeWithKeys<{
22
- Unencrypted: true;
23
- Encrypted: {
24
- dek: number[];
25
- };
26
- }, "Unencrypted" | "Encrypted">];
27
- QuiltPatch: [string, number, number, number];
28
- }, "Blob" | "QuiltPatch">;
29
- animated: import("@mysten/bcs").EnumOutputShapeWithKeys<{
30
- Blob: [string, import("@mysten/bcs").EnumOutputShapeWithKeys<{
31
- Unencrypted: true;
32
- Encrypted: {
33
- dek: number[];
34
- };
35
- }, "Unencrypted" | "Encrypted">];
36
- QuiltPatch: [string, number, number, number];
37
- }, "Blob" | "QuiltPatch"> | null;
38
- } | null, {
39
- still: import("@mysten/bcs").EnumInputShape<{
40
- Blob: readonly [string | number | bigint, import("@mysten/bcs").EnumInputShape<{
41
- Unencrypted: boolean | object | null;
42
- Encrypted: {
43
- dek: Iterable<number> & {
44
- length: number;
45
- };
46
- };
47
- }>];
48
- QuiltPatch: readonly [string | number | bigint, number, number, number];
49
- }>;
50
- animated: import("@mysten/bcs").EnumInputShape<{
51
- Blob: readonly [string | number | bigint, import("@mysten/bcs").EnumInputShape<{
52
- Unencrypted: boolean | object | null;
53
- Encrypted: {
54
- dek: Iterable<number> & {
55
- length: number;
56
- };
57
- };
58
- }>];
59
- QuiltPatch: readonly [string | number | bigint, number, number, number];
60
- }> | null | undefined;
61
- } | null | undefined, "Option<cover_art::cover_art::CoverArt>">;
62
- track_covers: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<({
63
- still: import("@mysten/bcs").EnumOutputShapeWithKeys<{
64
- Blob: [string, import("@mysten/bcs").EnumOutputShapeWithKeys<{
65
- Unencrypted: true;
66
- Encrypted: {
67
- dek: number[];
68
- };
69
- }, "Unencrypted" | "Encrypted">];
70
- QuiltPatch: [string, number, number, number];
71
- }, "Blob" | "QuiltPatch">;
72
- animated: import("@mysten/bcs").EnumOutputShapeWithKeys<{
73
- Blob: [string, import("@mysten/bcs").EnumOutputShapeWithKeys<{
74
- Unencrypted: true;
75
- Encrypted: {
76
- dek: number[];
77
- };
78
- }, "Unencrypted" | "Encrypted">];
79
- QuiltPatch: [string, number, number, number];
80
- }, "Blob" | "QuiltPatch"> | null;
81
- } | null)[], Iterable<{
82
- still: import("@mysten/bcs").EnumInputShape<{
83
- Blob: readonly [string | number | bigint, import("@mysten/bcs").EnumInputShape<{
84
- Unencrypted: boolean | object | null;
85
- Encrypted: {
86
- dek: Iterable<number> & {
87
- length: number;
88
- };
89
- };
90
- }>];
91
- QuiltPatch: readonly [string | number | bigint, number, number, number];
92
- }>;
93
- animated: import("@mysten/bcs").EnumInputShape<{
94
- Blob: readonly [string | number | bigint, import("@mysten/bcs").EnumInputShape<{
95
- Unencrypted: boolean | object | null;
96
- Encrypted: {
97
- dek: Iterable<number> & {
98
- length: number;
99
- };
100
- };
101
- }>];
102
- QuiltPatch: readonly [string | number | bigint, number, number, number];
103
- }> | null | undefined;
104
- } | null | undefined> & {
105
- length: number;
106
- }, string>], "per_track::per_track::PerTrack<Option<cover_art::cover_art::CoverArt>>">;
107
- }, "@local-pkg/release_cover_art::release_cover_art::ReleaseCoverArt">;
108
- export declare const CoverSetEvent: MoveStruct<{
109
- release_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
110
- /** The full cover art record that was written. */
111
- art: MoveStruct<{
112
- still: import("../utils/index.js").MoveEnum<{
113
- Blob: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">, import("../utils/index.js").MoveEnum<{
114
- Unencrypted: null;
115
- Encrypted: MoveStruct<{
116
- dek: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
117
- length: number;
118
- }, string>;
119
- }, "Confidentiality.Encrypted">;
120
- }, "0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78::walrus_data::Confidentiality">], "WalrusData.Blob">;
121
- QuiltPatch: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">, import("@mysten/sui/bcs").BcsType<number, number, "u8">, import("@mysten/sui/bcs").BcsType<number, number, "u16">, import("@mysten/sui/bcs").BcsType<number, number, "u16">], "WalrusData.QuiltPatch">;
122
- }, "0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78::walrus_data::WalrusData">;
123
- animated: import("@mysten/sui/bcs").BcsType<import("@mysten/bcs").EnumOutputShapeWithKeys<{
124
- Blob: [string, import("@mysten/bcs").EnumOutputShapeWithKeys<{
125
- Unencrypted: true;
126
- Encrypted: {
127
- dek: number[];
128
- };
129
- }, "Unencrypted" | "Encrypted">];
130
- QuiltPatch: [string, number, number, number];
131
- }, "Blob" | "QuiltPatch"> | null, import("@mysten/bcs").EnumInputShape<{
132
- Blob: readonly [string | number | bigint, import("@mysten/bcs").EnumInputShape<{
133
- Unencrypted: boolean | object | null;
134
- Encrypted: {
135
- dek: Iterable<number> & {
136
- length: number;
137
- };
138
- };
139
- }>];
140
- QuiltPatch: readonly [string | number | bigint, number, number, number];
141
- }> | null | undefined, "Option<0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78::walrus_data::WalrusData>">;
142
- }, "cover_art::cover_art::CoverArt">;
143
- }, "@local-pkg/release_cover_art::release_cover_art::CoverSetEvent">;
144
- export declare const CoverUnsetEvent: MoveStruct<{
145
- release_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
146
- }, "@local-pkg/release_cover_art::release_cover_art::CoverUnsetEvent">;
147
- export declare const TrackCoverSetEvent: MoveStruct<{
148
- release_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
149
- track_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
150
- /** The full cover art record that was written. */
151
- art: MoveStruct<{
152
- still: import("../utils/index.js").MoveEnum<{
153
- Blob: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">, import("../utils/index.js").MoveEnum<{
154
- Unencrypted: null;
155
- Encrypted: MoveStruct<{
156
- dek: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
157
- length: number;
158
- }, string>;
159
- }, "Confidentiality.Encrypted">;
160
- }, "0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78::walrus_data::Confidentiality">], "WalrusData.Blob">;
161
- QuiltPatch: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">, import("@mysten/sui/bcs").BcsType<number, number, "u8">, import("@mysten/sui/bcs").BcsType<number, number, "u16">, import("@mysten/sui/bcs").BcsType<number, number, "u16">], "WalrusData.QuiltPatch">;
162
- }, "0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78::walrus_data::WalrusData">;
163
- animated: import("@mysten/sui/bcs").BcsType<import("@mysten/bcs").EnumOutputShapeWithKeys<{
164
- Blob: [string, import("@mysten/bcs").EnumOutputShapeWithKeys<{
165
- Unencrypted: true;
166
- Encrypted: {
167
- dek: number[];
168
- };
169
- }, "Unencrypted" | "Encrypted">];
170
- QuiltPatch: [string, number, number, number];
171
- }, "Blob" | "QuiltPatch"> | null, import("@mysten/bcs").EnumInputShape<{
172
- Blob: readonly [string | number | bigint, import("@mysten/bcs").EnumInputShape<{
173
- Unencrypted: boolean | object | null;
174
- Encrypted: {
175
- dek: Iterable<number> & {
176
- length: number;
177
- };
178
- };
179
- }>];
180
- QuiltPatch: readonly [string | number | bigint, number, number, number];
181
- }> | null | undefined, "Option<0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78::walrus_data::WalrusData>">;
182
- }, "cover_art::cover_art::CoverArt">;
183
- }, "@local-pkg/release_cover_art::release_cover_art::TrackCoverSetEvent">;
184
- export declare const TrackCoverUnsetEvent: MoveStruct<{
185
- release_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
186
- track_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
187
- }, "@local-pkg/release_cover_art::release_cover_art::TrackCoverUnsetEvent">;
188
- export interface SetCoverArguments {
189
- self: RawTransactionArgument<string>;
190
- cap: RawTransactionArgument<string>;
191
- art: TransactionArgument;
192
- }
193
- export interface SetCoverOptions {
194
- package?: string;
195
- arguments: SetCoverArguments | [
196
- self: RawTransactionArgument<string>,
197
- cap: RawTransactionArgument<string>,
198
- art: TransactionArgument
199
- ];
200
- }
201
- /** Sets (or replaces) the album-level cover. */
202
- export declare function setCover(options: SetCoverOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
203
- export interface UnsetCoverArguments {
204
- self: RawTransactionArgument<string>;
205
- cap: RawTransactionArgument<string>;
206
- }
207
- export interface UnsetCoverOptions {
208
- package?: string;
209
- arguments: UnsetCoverArguments | [
210
- self: RawTransactionArgument<string>,
211
- cap: RawTransactionArgument<string>
212
- ];
213
- }
214
- /**
215
- * Removes the album-level cover. Per-track overrides are untouched. Aborts with
216
- * `ENoCoverArt` if no cover art record is attached.
217
- */
218
- export declare function unsetCover(options: UnsetCoverOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
219
- export interface SetTrackCoverArguments {
220
- self: RawTransactionArgument<string>;
221
- cap: RawTransactionArgument<string>;
222
- trackIndex: RawTransactionArgument<number | bigint>;
223
- art: TransactionArgument;
224
- }
225
- export interface SetTrackCoverOptions {
226
- package?: string;
227
- arguments: SetTrackCoverArguments | [
228
- self: RawTransactionArgument<string>,
229
- cap: RawTransactionArgument<string>,
230
- trackIndex: RawTransactionArgument<number | bigint>,
231
- art: TransactionArgument
232
- ];
233
- }
234
- /**
235
- * Sets (or replaces) the cover override for a specific track (by tracklist index).
236
- * Aborts if the index is out of range for the release.
237
- */
238
- export declare function setTrackCover(options: SetTrackCoverOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
239
- export interface UnsetTrackCoverArguments {
240
- self: RawTransactionArgument<string>;
241
- cap: RawTransactionArgument<string>;
242
- trackIndex: RawTransactionArgument<number | bigint>;
243
- }
244
- export interface UnsetTrackCoverOptions {
245
- package?: string;
246
- arguments: UnsetTrackCoverArguments | [
247
- self: RawTransactionArgument<string>,
248
- cap: RawTransactionArgument<string>,
249
- trackIndex: RawTransactionArgument<number | bigint>
250
- ];
251
- }
252
- /**
253
- * Removes the cover override for a specific track — the track then falls back to
254
- * the album cover. Aborts if no cover art record is attached, or if the index is
255
- * out of range for the release.
256
- */
257
- export declare function unsetTrackCover(options: UnsetTrackCoverOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
258
- export interface HasCoverArtArguments {
259
- self: RawTransactionArgument<string>;
260
- }
261
- export interface HasCoverArtOptions {
262
- package?: string;
263
- arguments: HasCoverArtArguments | [
264
- self: RawTransactionArgument<string>
265
- ];
266
- }
267
- /** Returns whether a cover art record is attached to this release. */
268
- export declare function hasCoverArt(options: HasCoverArtOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
269
- export interface CoverArguments {
270
- self: RawTransactionArgument<string>;
271
- }
272
- export interface CoverOptions {
273
- package?: string;
274
- arguments: CoverArguments | [
275
- self: RawTransactionArgument<string>
276
- ];
277
- }
278
- /**
279
- * Returns the album-level cover (none if unset). Aborts if no cover art record is
280
- * attached at all.
281
- */
282
- export declare function cover(options: CoverOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
283
- export interface TrackCoverArguments {
284
- self: RawTransactionArgument<string>;
285
- trackIndex: RawTransactionArgument<number | bigint>;
286
- }
287
- export interface TrackCoverOptions {
288
- package?: string;
289
- arguments: TrackCoverArguments | [
290
- self: RawTransactionArgument<string>,
291
- trackIndex: RawTransactionArgument<number | bigint>
292
- ];
293
- }
294
- /**
295
- * Returns a track's effective cover: its per-track override if set, otherwise the
296
- * album cover (which may itself be none). Aborts if no cover art record is
297
- * attached, or if the track index is out of range.
298
- */
299
- export declare function trackCover(options: TrackCoverOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
300
- //# sourceMappingURL=release_cover_art.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"release_cover_art.d.ts","sourceRoot":"","sources":["../../../src/contracts/release_cover_art/release_cover_art.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAA0B,KAAK,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAE/G,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAItF,eAAO,MAAM,YAAY,oJAAgF,CAAC;AAC1G,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sEAGpB,CAAC;AACT,eAAO,MAAM,aAAa;;IAElB,kDAAkD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oEAElD,CAAC;AACT,eAAO,MAAM,eAAe;;sEAEpB,CAAC;AACT,eAAO,MAAM,kBAAkB;;;IAGvB,kDAAkD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yEAElD,CAAC;AACT,eAAO,MAAM,oBAAoB;;;2EAGzB,CAAC;AACT,MAAM,WAAW,iBAAiB;IAC9B,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;IACrC,GAAG,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;IACpC,GAAG,EAAE,mBAAmB,CAAC;CAC5B;AACD,MAAM,WAAW,eAAe;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EA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B;IAChC,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;IACrC,UAAU,EAAE,sBAAsB,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;CACvD;AACD,MAAM,WAAW,iBAAiB;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,mBAAmB,GAAG;QAC7B,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;QACpC,UAAU,EAAE,sBAAsB,CAAC,MAAM,GAAG,MAAM,CAAC;KACtD,CAAC;CACL;AACD;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,iBAAiB,IAOzC,IAAI,WAAW,0DAM1B"}
@@ -1,168 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- /**
5
- * Release cover art: an album-level cover plus optional per-track cover overrides.
6
- * Stored as a dynamic field on the release's UID, set/cleared via the release's
7
- * cap-gated `uid_mut`.
8
- *
9
- * Cover art is presentation, not objective recording data, so it lives on the
10
- * release (the consumer object) rather than the recording. A track's effective
11
- * cover resolves as: its per-track override if set, else the album cover. The
12
- * overrides are a `PerTrack<Option<CoverArt>>` — one slot per track, aligned to
13
- * the release's tracklist by construction (sized from `tracks().length()`).
14
- */
15
- import { MoveTuple, MoveStruct, normalizeMoveArguments } from '../utils/index.js';
16
- import { bcs } from '@mysten/sui/bcs';
17
- import {} from '@mysten/sui/transactions';
18
- import * as cover_art from './deps/cover_art/cover_art.js';
19
- import * as per_track from './deps/per_track/per_track.js';
20
- const $moduleName = '@local-pkg/release_cover_art::release_cover_art';
21
- export const ExtensionKey = new MoveTuple({ name: `${$moduleName}::ExtensionKey`, fields: [bcs.bool()] });
22
- export const ReleaseCoverArt = new MoveStruct({ name: `${$moduleName}::ReleaseCoverArt`, fields: {
23
- cover: bcs.option(cover_art.CoverArt),
24
- track_covers: per_track.PerTrack(bcs.option(cover_art.CoverArt))
25
- } });
26
- export const CoverSetEvent = new MoveStruct({ name: `${$moduleName}::CoverSetEvent`, fields: {
27
- release_id: bcs.Address,
28
- /** The full cover art record that was written. */
29
- art: cover_art.CoverArt
30
- } });
31
- export const CoverUnsetEvent = new MoveStruct({ name: `${$moduleName}::CoverUnsetEvent`, fields: {
32
- release_id: bcs.Address
33
- } });
34
- export const TrackCoverSetEvent = new MoveStruct({ name: `${$moduleName}::TrackCoverSetEvent`, fields: {
35
- release_id: bcs.Address,
36
- track_index: bcs.u64(),
37
- /** The full cover art record that was written. */
38
- art: cover_art.CoverArt
39
- } });
40
- export const TrackCoverUnsetEvent = new MoveStruct({ name: `${$moduleName}::TrackCoverUnsetEvent`, fields: {
41
- release_id: bcs.Address,
42
- track_index: bcs.u64()
43
- } });
44
- /** Sets (or replaces) the album-level cover. */
45
- export function setCover(options) {
46
- const packageAddress = options.package ?? '@local-pkg/release_cover_art';
47
- const argumentsTypes = [
48
- null,
49
- null,
50
- null
51
- ];
52
- const parameterNames = ["self", "cap", "art"];
53
- return (tx) => tx.moveCall({
54
- package: packageAddress,
55
- module: 'release_cover_art',
56
- function: 'set_cover',
57
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
58
- });
59
- }
60
- /**
61
- * Removes the album-level cover. Per-track overrides are untouched. Aborts with
62
- * `ENoCoverArt` if no cover art record is attached.
63
- */
64
- export function unsetCover(options) {
65
- const packageAddress = options.package ?? '@local-pkg/release_cover_art';
66
- const argumentsTypes = [
67
- null,
68
- null
69
- ];
70
- const parameterNames = ["self", "cap"];
71
- return (tx) => tx.moveCall({
72
- package: packageAddress,
73
- module: 'release_cover_art',
74
- function: 'unset_cover',
75
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
76
- });
77
- }
78
- /**
79
- * Sets (or replaces) the cover override for a specific track (by tracklist index).
80
- * Aborts if the index is out of range for the release.
81
- */
82
- export function setTrackCover(options) {
83
- const packageAddress = options.package ?? '@local-pkg/release_cover_art';
84
- const argumentsTypes = [
85
- null,
86
- null,
87
- 'u64',
88
- null
89
- ];
90
- const parameterNames = ["self", "cap", "trackIndex", "art"];
91
- return (tx) => tx.moveCall({
92
- package: packageAddress,
93
- module: 'release_cover_art',
94
- function: 'set_track_cover',
95
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
96
- });
97
- }
98
- /**
99
- * Removes the cover override for a specific track — the track then falls back to
100
- * the album cover. Aborts if no cover art record is attached, or if the index is
101
- * out of range for the release.
102
- */
103
- export function unsetTrackCover(options) {
104
- const packageAddress = options.package ?? '@local-pkg/release_cover_art';
105
- const argumentsTypes = [
106
- null,
107
- null,
108
- 'u64'
109
- ];
110
- const parameterNames = ["self", "cap", "trackIndex"];
111
- return (tx) => tx.moveCall({
112
- package: packageAddress,
113
- module: 'release_cover_art',
114
- function: 'unset_track_cover',
115
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
116
- });
117
- }
118
- /** Returns whether a cover art record is attached to this release. */
119
- export function hasCoverArt(options) {
120
- const packageAddress = options.package ?? '@local-pkg/release_cover_art';
121
- const argumentsTypes = [
122
- null
123
- ];
124
- const parameterNames = ["self"];
125
- return (tx) => tx.moveCall({
126
- package: packageAddress,
127
- module: 'release_cover_art',
128
- function: 'has_cover_art',
129
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
130
- });
131
- }
132
- /**
133
- * Returns the album-level cover (none if unset). Aborts if no cover art record is
134
- * attached at all.
135
- */
136
- export function cover(options) {
137
- const packageAddress = options.package ?? '@local-pkg/release_cover_art';
138
- const argumentsTypes = [
139
- null
140
- ];
141
- const parameterNames = ["self"];
142
- return (tx) => tx.moveCall({
143
- package: packageAddress,
144
- module: 'release_cover_art',
145
- function: 'cover',
146
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
147
- });
148
- }
149
- /**
150
- * Returns a track's effective cover: its per-track override if set, otherwise the
151
- * album cover (which may itself be none). Aborts if no cover art record is
152
- * attached, or if the track index is out of range.
153
- */
154
- export function trackCover(options) {
155
- const packageAddress = options.package ?? '@local-pkg/release_cover_art';
156
- const argumentsTypes = [
157
- null,
158
- 'u64'
159
- ];
160
- const parameterNames = ["self", "trackIndex"];
161
- return (tx) => tx.moveCall({
162
- package: packageAddress,
163
- module: 'release_cover_art',
164
- function: 'track_cover',
165
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
166
- });
167
- }
168
- //# sourceMappingURL=release_cover_art.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"release_cover_art.js","sourceRoot":"","sources":["../../../src/contracts/release_cover_art/release_cover_art.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;GAUG;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,SAAS,MAAM,+BAA+B,CAAC;AAC3D,OAAO,KAAK,SAAS,MAAM,+BAA+B,CAAC;AAC3D,MAAM,WAAW,GAAG,iDAAiD,CAAC;AACtE,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,SAAS,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,gBAAgB,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC;AAC1G,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,mBAAmB,EAAE,MAAM,EAAE;QACzF,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC;QACrC,YAAY,EAAE,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;KACnE,EAAE,CAAC,CAAC;AACT,MAAM,CAAC,MAAM,aAAa,G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,mBAAmB;QAC3B,QAAQ,EAAE,OAAO;QACjB,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;KACvF,CAAC,CAAC;AACP,CAAC;AAYD;;;;GAIG;AACH,MAAM,UAAU,UAAU,CAAC,OAA0B;IACjD,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,IAAI,8BAA8B,CAAC;IACzE,MAAM,cAAc,GAAG;QACnB,IAAI;QACJ,KAAK;KACoB,CAAC;IAC9B,MAAM,cAAc,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAC9C,OAAO,CAAC,EAAe,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC;QACpC,OAAO,EAAE,cAAc;QACvB,MAAM,EAAE,mBAAmB;QAC3B,QAAQ,EAAE,aAAa;QACvB,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;KACvF,CAAC,CAAC;AACP,CAAC"}
@@ -1,24 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- /**
5
- * Represents a party's credit on a work or activity. A credit pairs a display name
6
- * with one or more roles, identifying how a party contributed to the work.
7
- */
8
- import { type BcsType } from '@mysten/sui/bcs';
9
- import { MoveStruct } from '../../../utils/index.js';
10
- /**
11
- * A credit attributing roles to a party on a work. Generic over the role type to
12
- * support domain-specific roles.
13
- */
14
- export declare function Credit<Role extends BcsType<any>>(...typeParameters: [
15
- Role
16
- ]): MoveStruct<{
17
- /** Human-readable name to display for this credit. */
18
- display_name: BcsType<string, string, "string">;
19
- /** Roles assigned to the credited party. */
20
- roles: BcsType<import("@mysten/bcs").InferBcsType<Role>[], Iterable<import("@mysten/bcs").InferBcsInput<Role>> & {
21
- length: number;
22
- }, string>;
23
- }, `miso_credit::credit::Credit<${Role["name"]}>`>;
24
- //# sourceMappingURL=credit.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"credit.d.ts","sourceRoot":"","sources":["../../../../../src/contracts/release_credits/deps/miso_credit/credit.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;GAGG;AAEH,OAAO,EAAE,KAAK,OAAO,EAAO,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD;;;GAGG;AACH,wBAAgB,MAAM,CAAC,IAAI,SAAS,OAAO,CAAC,GAAG,CAAC,EAAE,GAAG,cAAc,EAAE;IACjE,IAAI;CACP;IAEW,sDAAsD;;IAEtD,4CAA4C;;;;mDAGvD"}
@@ -1,23 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- /**
5
- * Represents a party's credit on a work or activity. A credit pairs a display name
6
- * with one or more roles, identifying how a party contributed to the work.
7
- */
8
- import { bcs } from '@mysten/sui/bcs';
9
- import { MoveStruct } from '../../../utils/index.js';
10
- const $moduleName = 'miso_credit::credit';
11
- /**
12
- * A credit attributing roles to a party on a work. Generic over the role type to
13
- * support domain-specific roles.
14
- */
15
- export function Credit(...typeParameters) {
16
- return new MoveStruct({ name: `${$moduleName}::Credit<${typeParameters[0].name}>`, fields: {
17
- /** Human-readable name to display for this credit. */
18
- display_name: bcs.string(),
19
- /** Roles assigned to the credited party. */
20
- roles: bcs.vector(typeParameters[0])
21
- } });
22
- }
23
- //# sourceMappingURL=credit.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"credit.js","sourceRoot":"","sources":["../../../../../src/contracts/release_credits/deps/miso_credit/credit.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;GAGG;AAEH,OAAO,EAAgB,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,MAAM,WAAW,GAAG,qBAAqB,CAAC;AAC1C;;;GAGG;AACH,MAAM,UAAU,MAAM,CAA4B,GAAG,cAEpD;IACG,OAAO,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,YAAY,cAAc,CAAC,CAAC,CAAC,CAAC,IAAoB,GAAG,EAAE,MAAM,EAAE;YACnG,sDAAsD;YACtD,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE;YAC1B,4CAA4C;YAC5C,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;SACvC,EAAE,CAAC,CAAC;AACb,CAAC"}
@@ -1,37 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- import { type BcsType } from '@mysten/sui/bcs';
5
- import { MoveStruct } from '../../../utils/index.js';
6
- /** An entry in the map */
7
- export declare function Entry<K extends BcsType<any>, V extends BcsType<any>>(...typeParameters: [
8
- K,
9
- V
10
- ]): MoveStruct<{
11
- key: K;
12
- value: V;
13
- }, `0x2::vec_map::Entry<${K["name"]}, ${V["name"]}>`>;
14
- /**
15
- * A map data structure backed by a vector. The map is guaranteed not to contain
16
- * duplicate keys, but entries are _not_ sorted by key--entries are included in
17
- * insertion order. All operations are O(N) in the size of the map--the intention
18
- * of this data structure is only to provide the convenience of programming against
19
- * a map API. Large maps should use handwritten parent/child relationships instead.
20
- * Maps that need sorted iteration rather than insertion order iteration should
21
- * also be handwritten.
22
- */
23
- export declare function VecMap<K extends BcsType<any>, V extends BcsType<any>>(...typeParameters: [
24
- K,
25
- V
26
- ]): MoveStruct<{
27
- contents: BcsType<{
28
- key: K extends BcsType<infer U, any, string> ? U : never;
29
- value: V extends BcsType<infer U, any, string> ? U : never;
30
- }[], Iterable<{
31
- key: K extends BcsType<any, infer U_1, string> ? U_1 : never;
32
- value: V extends BcsType<any, infer U_1, string> ? U_1 : never;
33
- }> & {
34
- length: number;
35
- }, string>;
36
- }, `0x2::vec_map::VecMap<${K["name"]}, ${V["name"]}>`>;
37
- //# sourceMappingURL=vec_map.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vec_map.d.ts","sourceRoot":"","sources":["../../../../../src/contracts/release_credits/deps/sui/vec_map.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAChE,OAAO,EAAE,KAAK,OAAO,EAAO,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD,0BAA0B;AAC1B,wBAAgB,KAAK,CAAC,CAAC,SAAS,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,SAAS,OAAO,CAAC,GAAG,CAAC,EAAE,GAAG,cAAc,EAAE;IACrF,CAAC;IACD,CAAC;CACJ;;;sDAKA;AACD;;;;;;;;GAQG;AACH,wBAAgB,MAAM,CAAC,CAAC,SAAS,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,SAAS,OAAO,CAAC,GAAG,CAAC,EAAE,GAAG,cAAc,EAAE;IACtF,CAAC;IACD,CAAC;CACJ;;;;;;;;;;uDAIA"}
@@ -1,28 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- import { bcs } from '@mysten/sui/bcs';
5
- import { MoveStruct } from '../../../utils/index.js';
6
- const $moduleName = '0x2::vec_map';
7
- /** An entry in the map */
8
- export function Entry(...typeParameters) {
9
- return new MoveStruct({ name: `${$moduleName}::Entry<${typeParameters[0].name}, ${typeParameters[1].name}>`, fields: {
10
- key: typeParameters[0],
11
- value: typeParameters[1]
12
- } });
13
- }
14
- /**
15
- * A map data structure backed by a vector. The map is guaranteed not to contain
16
- * duplicate keys, but entries are _not_ sorted by key--entries are included in
17
- * insertion order. All operations are O(N) in the size of the map--the intention
18
- * of this data structure is only to provide the convenience of programming against
19
- * a map API. Large maps should use handwritten parent/child relationships instead.
20
- * Maps that need sorted iteration rather than insertion order iteration should
21
- * also be handwritten.
22
- */
23
- export function VecMap(...typeParameters) {
24
- return new MoveStruct({ name: `${$moduleName}::VecMap<${typeParameters[0].name}, ${typeParameters[1].name}>`, fields: {
25
- contents: bcs.vector(Entry(typeParameters[0], typeParameters[1]))
26
- } });
27
- }
28
- //# sourceMappingURL=vec_map.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vec_map.js","sourceRoot":"","sources":["../../../../../src/contracts/release_credits/deps/sui/vec_map.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAChE,OAAO,EAAgB,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,MAAM,WAAW,GAAG,cAAc,CAAC;AACnC,0BAA0B;AAC1B,MAAM,UAAU,KAAK,CAAiD,GAAG,cAGxE;IACG,OAAO,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,WAAW,cAAc,CAAC,CAAC,CAAC,CAAC,IAAiB,KAAK,cAAc,CAAC,CAAC,CAAC,CAAC,IAAiB,GAAG,EAAE,MAAM,EAAE;YACvI,GAAG,EAAE,cAAc,CAAC,CAAC,CAAC;YACtB,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC;SAC3B,EAAE,CAAC,CAAC;AACb,CAAC;AACD;;;;;;;;GAQG;AACH,MAAM,UAAU,MAAM,CAAiD,GAAG,cAGzE;IACG,OAAO,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,YAAY,cAAc,CAAC,CAAC,CAAC,CAAC,IAAiB,KAAK,cAAc,CAAC,CAAC,CAAC,CAAC,IAAiB,GAAG,EAAE,MAAM,EAAE;YACxI,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;SACpE,EAAE,CAAC,CAAC;AACb,CAAC"}