@misonetwork/sdk 0.2.2 → 0.3.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.
Files changed (167) 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 +7 -3
  11. package/dist/internal.d.ts.map +1 -1
  12. package/dist/internal.js +22 -4
  13. package/dist/internal.js.map +1 -1
  14. package/dist/queries.d.ts +8 -0
  15. package/dist/queries.d.ts.map +1 -1
  16. package/dist/queries.js +30 -8
  17. package/dist/queries.js.map +1 -1
  18. package/package.json +1 -13
  19. package/src/contracts.ts +3 -19
  20. package/src/index.ts +3 -3
  21. package/src/internal.ts +34 -15
  22. package/src/queries.ts +40 -12
  23. package/dist/contracts/composition_credits/composition_credits.d.ts +0 -181
  24. package/dist/contracts/composition_credits/composition_credits.d.ts.map +0 -1
  25. package/dist/contracts/composition_credits/composition_credits.js +0 -109
  26. package/dist/contracts/composition_credits/composition_credits.js.map +0 -1
  27. package/dist/contracts/composition_credits/composition_party_role.d.ts +0 -119
  28. package/dist/contracts/composition_credits/composition_party_role.d.ts.map +0 -1
  29. package/dist/contracts/composition_credits/composition_party_role.js +0 -139
  30. package/dist/contracts/composition_credits/composition_party_role.js.map +0 -1
  31. package/dist/contracts/composition_credits/deps/miso_credit/credit.d.ts +0 -24
  32. package/dist/contracts/composition_credits/deps/miso_credit/credit.d.ts.map +0 -1
  33. package/dist/contracts/composition_credits/deps/miso_credit/credit.js +0 -23
  34. package/dist/contracts/composition_credits/deps/miso_credit/credit.js.map +0 -1
  35. package/dist/contracts/composition_credits/deps/sui/vec_map.d.ts +0 -37
  36. package/dist/contracts/composition_credits/deps/sui/vec_map.d.ts.map +0 -1
  37. package/dist/contracts/composition_credits/deps/sui/vec_map.js +0 -28
  38. package/dist/contracts/composition_credits/deps/sui/vec_map.js.map +0 -1
  39. package/dist/contracts/composition_royalty_pool/composition_royalty_pool.d.ts +0 -87
  40. package/dist/contracts/composition_royalty_pool/composition_royalty_pool.d.ts.map +0 -1
  41. package/dist/contracts/composition_royalty_pool/composition_royalty_pool.js +0 -80
  42. package/dist/contracts/composition_royalty_pool/composition_royalty_pool.js.map +0 -1
  43. package/dist/contracts/cover_art/cover_art.d.ts +0 -85
  44. package/dist/contracts/cover_art/cover_art.d.ts.map +0 -1
  45. package/dist/contracts/cover_art/cover_art.js +0 -68
  46. package/dist/contracts/cover_art/cover_art.js.map +0 -1
  47. package/dist/contracts/cover_art/deps/ori/walrus_data.d.ts +0 -52
  48. package/dist/contracts/cover_art/deps/ori/walrus_data.d.ts.map +0 -1
  49. package/dist/contracts/cover_art/deps/ori/walrus_data.js +0 -37
  50. package/dist/contracts/cover_art/deps/ori/walrus_data.js.map +0 -1
  51. package/dist/contracts/recording_credits/deps/miso_credit/credit.d.ts +0 -24
  52. package/dist/contracts/recording_credits/deps/miso_credit/credit.d.ts.map +0 -1
  53. package/dist/contracts/recording_credits/deps/miso_credit/credit.js +0 -23
  54. package/dist/contracts/recording_credits/deps/miso_credit/credit.js.map +0 -1
  55. package/dist/contracts/recording_credits/deps/sui/vec_map.d.ts +0 -37
  56. package/dist/contracts/recording_credits/deps/sui/vec_map.d.ts.map +0 -1
  57. package/dist/contracts/recording_credits/deps/sui/vec_map.js +0 -28
  58. package/dist/contracts/recording_credits/deps/sui/vec_map.js.map +0 -1
  59. package/dist/contracts/recording_credits/deps/sui/vec_set.d.ts +0 -21
  60. package/dist/contracts/recording_credits/deps/sui/vec_set.d.ts.map +0 -1
  61. package/dist/contracts/recording_credits/deps/sui/vec_set.js +0 -20
  62. package/dist/contracts/recording_credits/deps/sui/vec_set.js.map +0 -1
  63. package/dist/contracts/recording_credits/recording_credits.d.ts +0 -2313
  64. package/dist/contracts/recording_credits/recording_credits.d.ts.map +0 -1
  65. package/dist/contracts/recording_credits/recording_credits.js +0 -270
  66. package/dist/contracts/recording_credits/recording_credits.js.map +0 -1
  67. package/dist/contracts/recording_credits/recording_party_role.d.ts +0 -1174
  68. package/dist/contracts/recording_credits/recording_party_role.d.ts.map +0 -1
  69. package/dist/contracts/recording_credits/recording_party_role.js +0 -692
  70. package/dist/contracts/recording_credits/recording_party_role.js.map +0 -1
  71. package/dist/contracts/recording_royalty_pool/recording_royalty_pool.d.ts +0 -90
  72. package/dist/contracts/recording_royalty_pool/recording_royalty_pool.d.ts.map +0 -1
  73. package/dist/contracts/recording_royalty_pool/recording_royalty_pool.js +0 -80
  74. package/dist/contracts/recording_royalty_pool/recording_royalty_pool.js.map +0 -1
  75. package/dist/contracts/release_cover_art/deps/0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78/walrus_data.d.ts +0 -52
  76. package/dist/contracts/release_cover_art/deps/0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78/walrus_data.d.ts.map +0 -1
  77. package/dist/contracts/release_cover_art/deps/0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78/walrus_data.js +0 -37
  78. package/dist/contracts/release_cover_art/deps/0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78/walrus_data.js.map +0 -1
  79. package/dist/contracts/release_cover_art/deps/cover_art/cover_art.d.ts +0 -46
  80. package/dist/contracts/release_cover_art/deps/cover_art/cover_art.d.ts.map +0 -1
  81. package/dist/contracts/release_cover_art/deps/cover_art/cover_art.js +0 -21
  82. package/dist/contracts/release_cover_art/deps/cover_art/cover_art.js.map +0 -1
  83. package/dist/contracts/release_cover_art/deps/per_track/per_track.d.ts +0 -33
  84. package/dist/contracts/release_cover_art/deps/per_track/per_track.d.ts.map +0 -1
  85. package/dist/contracts/release_cover_art/deps/per_track/per_track.js +0 -32
  86. package/dist/contracts/release_cover_art/deps/per_track/per_track.js.map +0 -1
  87. package/dist/contracts/release_cover_art/release_cover_art.d.ts +0 -300
  88. package/dist/contracts/release_cover_art/release_cover_art.d.ts.map +0 -1
  89. package/dist/contracts/release_cover_art/release_cover_art.js +0 -168
  90. package/dist/contracts/release_cover_art/release_cover_art.js.map +0 -1
  91. package/dist/contracts/release_credits/deps/miso_credit/credit.d.ts +0 -24
  92. package/dist/contracts/release_credits/deps/miso_credit/credit.d.ts.map +0 -1
  93. package/dist/contracts/release_credits/deps/miso_credit/credit.js +0 -23
  94. package/dist/contracts/release_credits/deps/miso_credit/credit.js.map +0 -1
  95. package/dist/contracts/release_credits/deps/sui/vec_map.d.ts +0 -37
  96. package/dist/contracts/release_credits/deps/sui/vec_map.d.ts.map +0 -1
  97. package/dist/contracts/release_credits/deps/sui/vec_map.js +0 -28
  98. package/dist/contracts/release_credits/deps/sui/vec_map.js.map +0 -1
  99. package/dist/contracts/release_credits/release_credits.d.ts +0 -142
  100. package/dist/contracts/release_credits/release_credits.d.ts.map +0 -1
  101. package/dist/contracts/release_credits/release_credits.js +0 -108
  102. package/dist/contracts/release_credits/release_credits.js.map +0 -1
  103. package/dist/contracts/release_credits/release_party_role.d.ts +0 -58
  104. package/dist/contracts/release_credits/release_party_role.d.ts.map +0 -1
  105. package/dist/contracts/release_credits/release_party_role.js +0 -66
  106. package/dist/contracts/release_credits/release_party_role.js.map +0 -1
  107. package/dist/contracts/royalty_pool/deps/std/type_name.d.ts +0 -18
  108. package/dist/contracts/royalty_pool/deps/std/type_name.d.ts.map +0 -1
  109. package/dist/contracts/royalty_pool/deps/std/type_name.js +0 -20
  110. package/dist/contracts/royalty_pool/deps/std/type_name.js.map +0 -1
  111. package/dist/contracts/royalty_pool/deps/sui/balance.d.ts +0 -13
  112. package/dist/contracts/royalty_pool/deps/sui/balance.d.ts.map +0 -1
  113. package/dist/contracts/royalty_pool/deps/sui/balance.js +0 -15
  114. package/dist/contracts/royalty_pool/deps/sui/balance.js.map +0 -1
  115. package/dist/contracts/royalty_pool/deps/sui/vec_map.d.ts +0 -37
  116. package/dist/contracts/royalty_pool/deps/sui/vec_map.d.ts.map +0 -1
  117. package/dist/contracts/royalty_pool/deps/sui/vec_map.js +0 -28
  118. package/dist/contracts/royalty_pool/deps/sui/vec_map.js.map +0 -1
  119. package/dist/contracts/royalty_pool/pool.d.ts +0 -358
  120. package/dist/contracts/royalty_pool/pool.d.ts.map +0 -1
  121. package/dist/contracts/royalty_pool/pool.js +0 -352
  122. package/dist/contracts/royalty_pool/pool.js.map +0 -1
  123. package/dist/contracts/royalty_pool/stake.d.ts +0 -202
  124. package/dist/contracts/royalty_pool/stake.d.ts.map +0 -1
  125. package/dist/contracts/royalty_pool/stake.js +0 -197
  126. package/dist/contracts/royalty_pool/stake.js.map +0 -1
  127. package/dist/cover.d.ts +0 -48
  128. package/dist/cover.d.ts.map +0 -1
  129. package/dist/cover.js +0 -68
  130. package/dist/cover.js.map +0 -1
  131. package/dist/credits.d.ts +0 -171
  132. package/dist/credits.d.ts.map +0 -1
  133. package/dist/credits.js +0 -360
  134. package/dist/credits.js.map +0 -1
  135. package/dist/extensions/royalty-pool.d.ts +0 -32
  136. package/dist/extensions/royalty-pool.d.ts.map +0 -1
  137. package/dist/extensions/royalty-pool.js +0 -33
  138. package/dist/extensions/royalty-pool.js.map +0 -1
  139. package/src/contracts/composition_credits/composition_credits.ts +0 -169
  140. package/src/contracts/composition_credits/composition_party_role.ts +0 -189
  141. package/src/contracts/composition_credits/deps/miso_credit/credit.ts +0 -27
  142. package/src/contracts/composition_credits/deps/sui/vec_map.ts +0 -33
  143. package/src/contracts/composition_royalty_pool/composition_royalty_pool.ts +0 -135
  144. package/src/contracts/cover_art/cover_art.ts +0 -99
  145. package/src/contracts/cover_art/deps/ori/walrus_data.ts +0 -36
  146. package/src/contracts/recording_credits/deps/miso_credit/credit.ts +0 -27
  147. package/src/contracts/recording_credits/deps/sui/vec_map.ts +0 -33
  148. package/src/contracts/recording_credits/deps/sui/vec_set.ts +0 -21
  149. package/src/contracts/recording_credits/recording_credits.ts +0 -458
  150. package/src/contracts/recording_credits/recording_party_role.ts +0 -1041
  151. package/src/contracts/recording_royalty_pool/recording_royalty_pool.ts +0 -138
  152. package/src/contracts/release_cover_art/deps/0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78/walrus_data.ts +0 -36
  153. package/src/contracts/release_cover_art/deps/cover_art/cover_art.ts +0 -23
  154. package/src/contracts/release_cover_art/deps/per_track/per_track.ts +0 -36
  155. package/src/contracts/release_cover_art/release_cover_art.ts +0 -251
  156. package/src/contracts/release_credits/deps/miso_credit/credit.ts +0 -27
  157. package/src/contracts/release_credits/deps/sui/vec_map.ts +0 -33
  158. package/src/contracts/release_credits/release_credits.ts +0 -156
  159. package/src/contracts/release_credits/release_party_role.ts +0 -87
  160. package/src/contracts/royalty_pool/deps/std/type_name.ts +0 -22
  161. package/src/contracts/royalty_pool/deps/sui/balance.ts +0 -17
  162. package/src/contracts/royalty_pool/deps/sui/vec_map.ts +0 -33
  163. package/src/contracts/royalty_pool/pool.ts +0 -577
  164. package/src/contracts/royalty_pool/stake.ts +0 -317
  165. package/src/cover.ts +0 -136
  166. package/src/credits.ts +0 -645
  167. package/src/extensions/royalty-pool.ts +0 -85
@@ -1,142 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- /**
5
- * First-party credits extension for releases.
6
- *
7
- * Attribution (top-line billing) is display-oriented and varies across platforms,
8
- * so it lives here as a dynamic field on the release rather than in immutable
9
- * core. The data is attached under `ExtensionKey()` via the release's cap-gated
10
- * `uid_mut`, so every mutation is authorized by the release's admin and credits
11
- * survive into any lifecycle state (they may be attached before or after the
12
- * release is published).
13
- *
14
- * This is Miso's canonical credits standard; because it is an extension, other
15
- * parties may publish their own release-credits standard against the same
16
- * `Release`. Credits are NOT read by the economics — they are attribution.
17
- *
18
- * A release credit carries exactly one role: a party is billed as either a
19
- * `Primary` or a `Featured` artist on the release.
20
- */
21
- import { MoveTuple, MoveStruct, type RawTransactionArgument } from '../utils/index.js';
22
- import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
23
- export declare const ExtensionKey: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">], "@local-pkg/release_credits::release_credits::ExtensionKey">;
24
- export declare const ReleaseCredits: MoveStruct<{
25
- /** Map of party IDs to their credit (display name + role). */
26
- credits: MoveStruct<{
27
- contents: import("@mysten/sui/bcs").BcsType<{
28
- key: string;
29
- value: {
30
- display_name: string;
31
- roles: import("@mysten/bcs").EnumOutputShapeWithKeys<{
32
- Primary: true;
33
- Featured: true;
34
- }, "Featured" | "Primary">[];
35
- };
36
- }[], Iterable<{
37
- key: string | Uint8Array<ArrayBufferLike>;
38
- value: {
39
- display_name: string;
40
- roles: Iterable<import("@mysten/bcs").EnumInputShape<{
41
- Primary: boolean | object | null;
42
- Featured: boolean | object | null;
43
- }>> & {
44
- length: number;
45
- };
46
- };
47
- }> & {
48
- length: number;
49
- }, string>;
50
- }, "0x2::vec_map::VecMap<bytes[32], miso_credit::credit::Credit<@local-pkg/release_credits::release_party_role::ReleasePartyRole>>">;
51
- }, "@local-pkg/release_credits::release_credits::ReleaseCredits">;
52
- export declare const CreditAddedEvent: MoveStruct<{
53
- release_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
54
- party_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
55
- credit: MoveStruct<{
56
- display_name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
57
- roles: import("@mysten/sui/bcs").BcsType<import("@mysten/bcs").EnumOutputShapeWithKeys<{
58
- Primary: true;
59
- Featured: true;
60
- }, "Featured" | "Primary">[], Iterable<import("@mysten/bcs").EnumInputShape<{
61
- Primary: boolean | object | null;
62
- Featured: boolean | object | null;
63
- }>> & {
64
- length: number;
65
- }, string>;
66
- }, "miso_credit::credit::Credit<@local-pkg/release_credits::release_party_role::ReleasePartyRole>">;
67
- }, "@local-pkg/release_credits::release_credits::CreditAddedEvent">;
68
- export declare const CreditRemovedEvent: MoveStruct<{
69
- release_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
70
- party_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
71
- credit: MoveStruct<{
72
- display_name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
73
- roles: import("@mysten/sui/bcs").BcsType<import("@mysten/bcs").EnumOutputShapeWithKeys<{
74
- Primary: true;
75
- Featured: true;
76
- }, "Featured" | "Primary">[], Iterable<import("@mysten/bcs").EnumInputShape<{
77
- Primary: boolean | object | null;
78
- Featured: boolean | object | null;
79
- }>> & {
80
- length: number;
81
- }, string>;
82
- }, "miso_credit::credit::Credit<@local-pkg/release_credits::release_party_role::ReleasePartyRole>">;
83
- }, "@local-pkg/release_credits::release_credits::CreditRemovedEvent">;
84
- export interface AddCreditArguments {
85
- self: RawTransactionArgument<string>;
86
- cap: RawTransactionArgument<string>;
87
- party: RawTransactionArgument<string>;
88
- credit: TransactionArgument;
89
- }
90
- export interface AddCreditOptions {
91
- package?: string;
92
- arguments: AddCreditArguments | [
93
- self: RawTransactionArgument<string>,
94
- cap: RawTransactionArgument<string>,
95
- party: RawTransactionArgument<string>,
96
- credit: TransactionArgument
97
- ];
98
- }
99
- /**
100
- * Adds a credit for a party on the release, lazily creating the credits record on
101
- * first use. Each credit must carry exactly one role (Primary or Featured), and a
102
- * party may hold at most one credit. Requires the release's admin capability.
103
- */
104
- export declare function addCredit(options: AddCreditOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
105
- export interface RemoveCreditArguments {
106
- self: RawTransactionArgument<string>;
107
- cap: RawTransactionArgument<string>;
108
- partyId: RawTransactionArgument<string>;
109
- }
110
- export interface RemoveCreditOptions {
111
- package?: string;
112
- arguments: RemoveCreditArguments | [
113
- self: RawTransactionArgument<string>,
114
- cap: RawTransactionArgument<string>,
115
- partyId: RawTransactionArgument<string>
116
- ];
117
- }
118
- /** Removes a party's credit. Requires the release's admin capability. */
119
- export declare function removeCredit(options: RemoveCreditOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
120
- export interface HasCreditsArguments {
121
- self: RawTransactionArgument<string>;
122
- }
123
- export interface HasCreditsOptions {
124
- package?: string;
125
- arguments: HasCreditsArguments | [
126
- self: RawTransactionArgument<string>
127
- ];
128
- }
129
- /** Returns whether a credits record has been attached to this release yet. */
130
- export declare function hasCredits(options: HasCreditsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
131
- export interface CreditsArguments {
132
- self: RawTransactionArgument<string>;
133
- }
134
- export interface CreditsOptions {
135
- package?: string;
136
- arguments: CreditsArguments | [
137
- self: RawTransactionArgument<string>
138
- ];
139
- }
140
- /** Returns the party-to-credit map. Aborts if no credits are attached. */
141
- export declare function credits(options: CreditsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
142
- //# sourceMappingURL=release_credits.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"release_credits.d.ts","sourceRoot":"","sources":["../../../src/contracts/release_credits/release_credits.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;;;;;;GAgBG;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;AAKtF,eAAO,MAAM,YAAY,gJAAgF,CAAC;AAC1G,eAAO,MAAM,cAAc;IACnB,8DAA8D;;;;;;;;;;;;;;;;;;;;;;;;;;iEAE9D,CAAC;AACT,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;mEAIrB,CAAC;AACT,eAAO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MAAM,WAAW,iBAAiB;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,mBAAmB,GAAG;QAC7B,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;KACvC,CAAC;CACL;AACD,8EAA8E;AAC9E,wBAAgB,UAAU,CAAC,OAAO,EAAE,iBAAiB,IAMzC,IAAI,WAAW,0DAM1B;AACD,MAAM,WAAW,gBAAgB;IAC7B,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;CACxC;AACD,MAAM,WAAW,cAAc;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,gBAAgB,GAAG;QAC1B,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;KACvC,CAAC;CACL;AACD,0EAA0E;AAC1E,wBAAgB,OAAO,CAAC,OAAO,EAAE,cAAc,IAMnC,IAAI,WAAW,0DAM1B"}
@@ -1,108 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- /**
5
- * First-party credits extension for releases.
6
- *
7
- * Attribution (top-line billing) is display-oriented and varies across platforms,
8
- * so it lives here as a dynamic field on the release rather than in immutable
9
- * core. The data is attached under `ExtensionKey()` via the release's cap-gated
10
- * `uid_mut`, so every mutation is authorized by the release's admin and credits
11
- * survive into any lifecycle state (they may be attached before or after the
12
- * release is published).
13
- *
14
- * This is Miso's canonical credits standard; because it is an extension, other
15
- * parties may publish their own release-credits standard against the same
16
- * `Release`. Credits are NOT read by the economics — they are attribution.
17
- *
18
- * A release credit carries exactly one role: a party is billed as either a
19
- * `Primary` or a `Featured` artist on the release.
20
- */
21
- import { MoveTuple, MoveStruct, normalizeMoveArguments } from '../utils/index.js';
22
- import { bcs } from '@mysten/sui/bcs';
23
- import {} from '@mysten/sui/transactions';
24
- import * as vec_map from './deps/sui/vec_map.js';
25
- import * as credit from './deps/miso_credit/credit.js';
26
- import * as release_party_role from './release_party_role.js';
27
- const $moduleName = '@local-pkg/release_credits::release_credits';
28
- export const ExtensionKey = new MoveTuple({ name: `${$moduleName}::ExtensionKey`, fields: [bcs.bool()] });
29
- export const ReleaseCredits = new MoveStruct({ name: `${$moduleName}::ReleaseCredits`, fields: {
30
- /** Map of party IDs to their credit (display name + role). */
31
- credits: vec_map.VecMap(bcs.Address, credit.Credit(release_party_role.ReleasePartyRole))
32
- } });
33
- export const CreditAddedEvent = new MoveStruct({ name: `${$moduleName}::CreditAddedEvent`, fields: {
34
- release_id: bcs.Address,
35
- party_id: bcs.Address,
36
- credit: credit.Credit(release_party_role.ReleasePartyRole)
37
- } });
38
- export const CreditRemovedEvent = new MoveStruct({ name: `${$moduleName}::CreditRemovedEvent`, fields: {
39
- release_id: bcs.Address,
40
- party_id: bcs.Address,
41
- credit: credit.Credit(release_party_role.ReleasePartyRole)
42
- } });
43
- /**
44
- * Adds a credit for a party on the release, lazily creating the credits record on
45
- * first use. Each credit must carry exactly one role (Primary or Featured), and a
46
- * party may hold at most one credit. Requires the release's admin capability.
47
- */
48
- export function addCredit(options) {
49
- const packageAddress = options.package ?? '@local-pkg/release_credits';
50
- const argumentsTypes = [
51
- null,
52
- null,
53
- null,
54
- null
55
- ];
56
- const parameterNames = ["self", "cap", "party", "credit"];
57
- return (tx) => tx.moveCall({
58
- package: packageAddress,
59
- module: 'release_credits',
60
- function: 'add_credit',
61
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
62
- });
63
- }
64
- /** Removes a party's credit. Requires the release's admin capability. */
65
- export function removeCredit(options) {
66
- const packageAddress = options.package ?? '@local-pkg/release_credits';
67
- const argumentsTypes = [
68
- null,
69
- null,
70
- '0x2::object::ID'
71
- ];
72
- const parameterNames = ["self", "cap", "partyId"];
73
- return (tx) => tx.moveCall({
74
- package: packageAddress,
75
- module: 'release_credits',
76
- function: 'remove_credit',
77
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
78
- });
79
- }
80
- /** Returns whether a credits record has been attached to this release yet. */
81
- export function hasCredits(options) {
82
- const packageAddress = options.package ?? '@local-pkg/release_credits';
83
- const argumentsTypes = [
84
- null
85
- ];
86
- const parameterNames = ["self"];
87
- return (tx) => tx.moveCall({
88
- package: packageAddress,
89
- module: 'release_credits',
90
- function: 'has_credits',
91
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
92
- });
93
- }
94
- /** Returns the party-to-credit map. Aborts if no credits are attached. */
95
- export function credits(options) {
96
- const packageAddress = options.package ?? '@local-pkg/release_credits';
97
- const argumentsTypes = [
98
- null
99
- ];
100
- const parameterNames = ["self"];
101
- return (tx) => tx.moveCall({
102
- package: packageAddress,
103
- module: 'release_credits',
104
- function: 'credits',
105
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
106
- });
107
- }
108
- //# sourceMappingURL=release_credits.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"release_credits.js","sourceRoot":"","sources":["../../../src/contracts/release_credits/release_credits.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;;;;;;GAgBG;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,OAAO,MAAM,uBAAuB,CAAC;AACjD,OAAO,KAAK,MAAM,MAAM,8BAA8B,CAAC;AACvD,OAAO,KAAK,kBAAkB,MAAM,yBAAyB,CAAC;AAC9D,MAAM,WAAW,GAAG,6CAA6C,CAAC;AAClE,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,cAAc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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,iBAAiB;QACzB,QAAQ,EAAE,SAAS;QACnB,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;KACvF,CAAC,CAAC;AACP,CAAC"}
@@ -1,58 +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 release. Releases are the
6
- * commercial packaging of recordings (an album, single, EP), and a release credit
7
- * captures top-line billing: a party is either a primary artist or a featured
8
- * artist on the release.
9
- *
10
- * ### Design
11
- *
12
- * `ReleasePartyRole` is a closed enum: variants can only be constructed and
13
- * matched inside this module, so the `new_*_role` constructors are the external
14
- * write-API and `name()` is the external read-API.
15
- *
16
- * - **No level axis and no `Custom` escape hatch.** Release billing is a small,
17
- * fixed vocabulary: `Primary` or `Featured`.
18
- * - **`name()` is the canonical identifier**, returned as a stable PascalCase
19
- * token (`"Primary"` / `"Featured"`).
20
- *
21
- * These identifiers are Miso's own canonical vocabulary; any overlap with an
22
- * external standard (e.g. DDEX) is coincidental, not a reproduction of it.
23
- */
24
- import { MoveEnum } from '../utils/index.js';
25
- import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
26
- /** Represents a party's billing on a release. */
27
- export declare const ReleasePartyRole: MoveEnum<{
28
- /** A primary (headline) artist on the release. */
29
- Primary: null;
30
- /** A featured (guest) artist on the release. */
31
- Featured: null;
32
- }, "@local-pkg/release_credits::release_party_role::ReleasePartyRole">;
33
- export interface NewPrimaryRoleOptions {
34
- package?: string;
35
- arguments?: [
36
- ];
37
- }
38
- /** Creates a new Primary role. */
39
- export declare function newPrimaryRole(options?: NewPrimaryRoleOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
40
- export interface NewFeaturedRoleOptions {
41
- package?: string;
42
- arguments?: [
43
- ];
44
- }
45
- /** Creates a new Featured role. */
46
- export declare function newFeaturedRole(options?: NewFeaturedRoleOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
47
- export interface NameArguments {
48
- self: TransactionArgument;
49
- }
50
- export interface NameOptions {
51
- package?: string;
52
- arguments: NameArguments | [
53
- self: TransactionArgument
54
- ];
55
- }
56
- /** Returns the canonical identifier of the role as a stable PascalCase token. */
57
- export declare function name(options: NameOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
58
- //# sourceMappingURL=release_party_role.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"release_party_role.d.ts","sourceRoot":"","sources":["../../../src/contracts/release_credits/release_party_role.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,QAAQ,EAA0B,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEtF,iDAAiD;AACjD,eAAO,MAAM,gBAAgB;IACrB,kDAAkD;;IAElD,gDAAgD;;sEAEhD,CAAC;AACT,MAAM,WAAW,qBAAqB;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE;KACX,CAAC;CACL;AACD,kCAAkC;AAClC,wBAAgB,cAAc,CAAC,OAAO,GAAE,qBAA0B,IAEtD,IAAI,WAAW,0DAK1B;AACD,MAAM,WAAW,sBAAsB;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE;KACX,CAAC;CACL;AACD,mCAAmC;AACnC,wBAAgB,eAAe,CAAC,OAAO,GAAE,sBAA2B,IAExD,IAAI,WAAW,0DAK1B;AACD,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,mBAAmB,CAAC;CAC7B;AACD,MAAM,WAAW,WAAW;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,aAAa,GAAG;QACvB,IAAI,EAAE,mBAAmB;KAC5B,CAAC;CACL;AACD,iFAAiF;AACjF,wBAAgB,IAAI,CAAC,OAAO,EAAE,WAAW,IAM7B,IAAI,WAAW,0DAM1B"}
@@ -1,66 +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 release. Releases are the
6
- * commercial packaging of recordings (an album, single, EP), and a release credit
7
- * captures top-line billing: a party is either a primary artist or a featured
8
- * artist on the release.
9
- *
10
- * ### Design
11
- *
12
- * `ReleasePartyRole` is a closed enum: variants can only be constructed and
13
- * matched inside this module, so the `new_*_role` constructors are the external
14
- * write-API and `name()` is the external read-API.
15
- *
16
- * - **No level axis and no `Custom` escape hatch.** Release billing is a small,
17
- * fixed vocabulary: `Primary` or `Featured`.
18
- * - **`name()` is the canonical identifier**, returned as a stable PascalCase
19
- * token (`"Primary"` / `"Featured"`).
20
- *
21
- * These identifiers are Miso's own canonical vocabulary; any overlap with an
22
- * external standard (e.g. DDEX) is coincidental, not a reproduction of it.
23
- */
24
- import { MoveEnum, normalizeMoveArguments } from '../utils/index.js';
25
- import {} from '@mysten/sui/transactions';
26
- const $moduleName = '@local-pkg/release_credits::release_party_role';
27
- /** Represents a party's billing on a release. */
28
- export const ReleasePartyRole = new MoveEnum({ name: `${$moduleName}::ReleasePartyRole`, fields: {
29
- /** A primary (headline) artist on the release. */
30
- Primary: null,
31
- /** A featured (guest) artist on the release. */
32
- Featured: null
33
- } });
34
- /** Creates a new Primary role. */
35
- export function newPrimaryRole(options = {}) {
36
- const packageAddress = options.package ?? '@local-pkg/release_credits';
37
- return (tx) => tx.moveCall({
38
- package: packageAddress,
39
- module: 'release_party_role',
40
- function: 'new_primary_role',
41
- });
42
- }
43
- /** Creates a new Featured role. */
44
- export function newFeaturedRole(options = {}) {
45
- const packageAddress = options.package ?? '@local-pkg/release_credits';
46
- return (tx) => tx.moveCall({
47
- package: packageAddress,
48
- module: 'release_party_role',
49
- function: 'new_featured_role',
50
- });
51
- }
52
- /** Returns the canonical identifier of the role as a stable PascalCase token. */
53
- export function name(options) {
54
- const packageAddress = options.package ?? '@local-pkg/release_credits';
55
- const argumentsTypes = [
56
- null
57
- ];
58
- const parameterNames = ["self"];
59
- return (tx) => tx.moveCall({
60
- package: packageAddress,
61
- module: 'release_party_role',
62
- function: 'name',
63
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
64
- });
65
- }
66
- //# sourceMappingURL=release_party_role.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"release_party_role.js","sourceRoot":"","sources":["../../../src/contracts/release_credits/release_party_role.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,QAAQ,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAA8C,MAAM,0BAA0B,CAAC;AACtF,MAAM,WAAW,GAAG,gDAAgD,CAAC;AACrE,iDAAiD;AACjD,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,QAAQ,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,oBAAoB,EAAE,MAAM,EAAE;QACzF,kDAAkD;QAClD,OAAO,EAAE,IAAI;QACb,gDAAgD;QAChD,QAAQ,EAAE,IAAI;KACjB,EAAE,CAAC,CAAC;AAMT,kCAAkC;AAClC,MAAM,UAAU,cAAc,CAAC,UAAiC,EAAE;IAC9D,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,IAAI,4BAA4B,CAAC;IACvE,OAAO,CAAC,EAAe,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC;QACpC,OAAO,EAAE,cAAc;QACvB,MAAM,EAAE,oBAAoB;QAC5B,QAAQ,EAAE,kBAAkB;KAC/B,CAAC,CAAC;AACP,CAAC;AAMD,mCAAmC;AACnC,MAAM,UAAU,eAAe,CAAC,UAAkC,EAAE;IAChE,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,IAAI,4BAA4B,CAAC;IACvE,OAAO,CAAC,EAAe,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC;QACpC,OAAO,EAAE,cAAc;QACvB,MAAM,EAAE,oBAAoB;QAC5B,QAAQ,EAAE,mBAAmB;KAChC,CAAC,CAAC;AACP,CAAC;AAUD,iFAAiF;AACjF,MAAM,UAAU,IAAI,CAAC,OAAoB;IACrC,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,IAAI,4BAA4B,CAAC;IACvE,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,oBAAoB;QAC5B,QAAQ,EAAE,MAAM;QAChB,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;KACvF,CAAC,CAAC;AACP,CAAC"}
@@ -1,18 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- /** Functionality for converting Move types into values. Use with care! */
5
- import { MoveStruct } from '../../../utils/index.js';
6
- export declare const TypeName: MoveStruct<{
7
- /**
8
- * String representation of the type. All types are represented using their source
9
- * syntax: "u8", "u64", "bool", "address", "vector", and so on for primitive types.
10
- * Struct types are represented as fully qualified type names; e.g.
11
- * `00000000000000000000000000000001::string::String` or
12
- * `0000000000000000000000000000000a::module_name1::type_name1<0000000000000000000000000000000a::module_name2::type_name2<u64>>`
13
- * Addresses are hex-encoded lowercase values of length ADDRESS_LENGTH (16, 20, or
14
- * 32 depending on the Move platform)
15
- */
16
- name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
17
- }, "std::type_name::TypeName">;
18
- //# sourceMappingURL=type_name.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"type_name.d.ts","sourceRoot":"","sources":["../../../../../src/contracts/royalty_pool/deps/std/type_name.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE,0EAA0E;AAE1E,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAGrD,eAAO,MAAM,QAAQ;IACb;;;;;;;;SAQK;;8BAEL,CAAC"}
@@ -1,20 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- /** Functionality for converting Move types into values. Use with care! */
5
- import { MoveStruct } from '../../../utils/index.js';
6
- import { bcs } from '@mysten/sui/bcs';
7
- const $moduleName = 'std::type_name';
8
- export const TypeName = new MoveStruct({ name: `${$moduleName}::TypeName`, fields: {
9
- /**
10
- * String representation of the type. All types are represented using their source
11
- * syntax: "u8", "u64", "bool", "address", "vector", and so on for primitive types.
12
- * Struct types are represented as fully qualified type names; e.g.
13
- * `00000000000000000000000000000001::string::String` or
14
- * `0000000000000000000000000000000a::module_name1::type_name1<0000000000000000000000000000000a::module_name2::type_name2<u64>>`
15
- * Addresses are hex-encoded lowercase values of length ADDRESS_LENGTH (16, 20, or
16
- * 32 depending on the Move platform)
17
- */
18
- name: bcs.string()
19
- } });
20
- //# sourceMappingURL=type_name.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"type_name.js","sourceRoot":"","sources":["../../../../../src/contracts/royalty_pool/deps/std/type_name.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE,0EAA0E;AAE1E,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,MAAM,WAAW,GAAG,gBAAgB,CAAC;AACrC,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,YAAY,EAAE,MAAM,EAAE;QAC3E;;;;;;;;aAQK;QACL,IAAI,EAAE,GAAG,CAAC,MAAM,EAAE;KACrB,EAAE,CAAC,CAAC"}
@@ -1,13 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- /**
5
- * A storable handler for Balances in general. Is used in the `Coin` module to
6
- * allow balance operations and can be used to implement custom coins with `Supply`
7
- * and `Balance`s.
8
- */
9
- import { MoveStruct } from '../../../utils/index.js';
10
- export declare const Balance: MoveStruct<{
11
- value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
12
- }, "0x2::balance::Balance<phantom T>">;
13
- //# sourceMappingURL=balance.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"balance.d.ts","sourceRoot":"","sources":["../../../../../src/contracts/royalty_pool/deps/sui/balance.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;GAIG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAGrD,eAAO,MAAM,OAAO;;sCAEZ,CAAC"}
@@ -1,15 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- /**
5
- * A storable handler for Balances in general. Is used in the `Coin` module to
6
- * allow balance operations and can be used to implement custom coins with `Supply`
7
- * and `Balance`s.
8
- */
9
- import { MoveStruct } from '../../../utils/index.js';
10
- import { bcs } from '@mysten/sui/bcs';
11
- const $moduleName = '0x2::balance';
12
- export const Balance = new MoveStruct({ name: `${$moduleName}::Balance<phantom T>`, fields: {
13
- value: bcs.u64()
14
- } });
15
- //# sourceMappingURL=balance.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"balance.js","sourceRoot":"","sources":["../../../../../src/contracts/royalty_pool/deps/sui/balance.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;GAIG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,MAAM,WAAW,GAAG,cAAc,CAAC;AACnC,MAAM,CAAC,MAAM,OAAO,GAAG,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,sBAAsB,EAAE,MAAM,EAAE;QACpF,KAAK,EAAE,GAAG,CAAC,GAAG,EAAE;KACnB,EAAE,CAAC,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/royalty_pool/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/royalty_pool/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"}