@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,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/composition_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/composition_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"}
@@ -1,87 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- /**
5
- * Cap-gated royalty-pool extension for `Composition`.
6
- *
7
- * Royalty payers send `Coin<Currency>` directly to the composition's address — a
8
- * stable, well-known inbox available from the composition's creation. The
9
- * composition admin (cap holder) folds those funds into the underlying
10
- * `royalty_pool::pool::RoyaltyPool` via `receive_and_deposit` (for direct coin
11
- * transfers) or `redeem_and_deposit` (for funds-accumulator balances).
12
- *
13
- * All three entry points require `&CompositionAdminCap`, so timing of fold
14
- * operations stays under admin control.
15
- */
16
- import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
17
- import { type RawTransactionArgument } from '../utils/index.js';
18
- export interface InitializePoolArguments {
19
- composition: RawTransactionArgument<string>;
20
- cap: RawTransactionArgument<string>;
21
- }
22
- export interface InitializePoolOptions {
23
- package?: string;
24
- arguments: InitializePoolArguments | [
25
- composition: RawTransactionArgument<string>,
26
- cap: RawTransactionArgument<string>
27
- ];
28
- typeArguments: [
29
- string,
30
- string
31
- ];
32
- }
33
- /**
34
- * Create a royalty pool for a composition. Pool address derives from
35
- * `(composition_id, Currency)` — calling twice with the same Currency aborts
36
- * because the address is already claimed.
37
- */
38
- export declare function initializePool(options: InitializePoolOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
39
- export interface ReceiveAndDepositArguments {
40
- composition: RawTransactionArgument<string>;
41
- cap: RawTransactionArgument<string>;
42
- coins: TransactionArgument;
43
- pool: RawTransactionArgument<string>;
44
- }
45
- export interface ReceiveAndDepositOptions {
46
- package?: string;
47
- arguments: ReceiveAndDepositArguments | [
48
- composition: RawTransactionArgument<string>,
49
- cap: RawTransactionArgument<string>,
50
- coins: TransactionArgument,
51
- pool: RawTransactionArgument<string>
52
- ];
53
- typeArguments: [
54
- string,
55
- string
56
- ];
57
- }
58
- /**
59
- * Receive `Coin<Currency>` objects sent to the composition's address and fold them
60
- * into the pool's accumulator.
61
- */
62
- export declare function receiveAndDeposit(options: ReceiveAndDepositOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
63
- export interface RedeemAndDepositArguments {
64
- composition: RawTransactionArgument<string>;
65
- cap: RawTransactionArgument<string>;
66
- value: RawTransactionArgument<number | bigint>;
67
- pool: RawTransactionArgument<string>;
68
- }
69
- export interface RedeemAndDepositOptions {
70
- package?: string;
71
- arguments: RedeemAndDepositArguments | [
72
- composition: RawTransactionArgument<string>,
73
- cap: RawTransactionArgument<string>,
74
- value: RawTransactionArgument<number | bigint>,
75
- pool: RawTransactionArgument<string>
76
- ];
77
- typeArguments: [
78
- string,
79
- string
80
- ];
81
- }
82
- /**
83
- * Redeem `value` base units from the composition's funds accumulator and fold the
84
- * resulting balance into the pool's accumulator.
85
- */
86
- export declare function redeemAndDeposit(options: RedeemAndDepositOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
87
- //# sourceMappingURL=composition_royalty_pool.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"composition_royalty_pool.d.ts","sourceRoot":"","sources":["../../../src/contracts/composition_royalty_pool/composition_royalty_pool.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACtF,OAAO,EAA0B,KAAK,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACxF,MAAM,WAAW,uBAAuB;IACpC,WAAW,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;IAC5C,GAAG,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;CACvC;AACD,MAAM,WAAW,qBAAqB;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,uBAAuB,GAAG;QACjC,WAAW,EAAE,sBAAsB,CAAC,MAAM,CAAC;QAC3C,GAAG,EAAE,sBAAsB,CAAC,MAAM,CAAC;KACtC,CAAC;IACF,aAAa,EAAE;QACX,MAAM;QACN,MAAM;KACT,CAAC;CACL;AACD;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,qBAAqB,IAOjD,IAAI,WAAW,0DAO1B;AACD,MAAM,WAAW,0BAA0B;IACvC,WAAW,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;IAC5C,GAAG,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;IACpC,KAAK,EAAE,mBAAmB,CAAC;IAC3B,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;CACxC;AACD,MAAM,WAAW,wBAAwB;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,0BAA0B,GAAG;QACpC,WAAW,EAAE,sBAAsB,CAAC,MAAM,CAAC;QAC3C,GAAG,EAAE,sBAAsB,CAAC,MAAM,CAAC;QACnC,KAAK,EAAE,mBAAmB;QAC1B,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;KACvC,CAAC;IACF,aAAa,EAAE;QACX,MAAM;QACN,MAAM;KACT,CAAC;CACL;AACD;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,wBAAwB,IASvD,IAAI,WAAW,0DAO1B;AACD,MAAM,WAAW,yBAAyB;IACtC,WAAW,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;IAC5C,GAAG,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;IACpC,KAAK,EAAE,sBAAsB,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IAC/C,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;CACxC;AACD,MAAM,WAAW,uBAAuB;IACpC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,yBAAyB,GAAG;QACnC,WAAW,EAAE,sBAAsB,CAAC,MAAM,CAAC;QAC3C,GAAG,EAAE,sBAAsB,CAAC,MAAM,CAAC;QACnC,KAAK,EAAE,sBAAsB,CAAC,MAAM,GAAG,MAAM,CAAC;QAC9C,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;KACvC,CAAC;IACF,aAAa,EAAE;QACX,MAAM;QACN,MAAM;KACT,CAAC;CACL;AACD;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,uBAAuB,IASrD,IAAI,WAAW,0DAO1B"}
@@ -1,80 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- /**
5
- * Cap-gated royalty-pool extension for `Composition`.
6
- *
7
- * Royalty payers send `Coin<Currency>` directly to the composition's address — a
8
- * stable, well-known inbox available from the composition's creation. The
9
- * composition admin (cap holder) folds those funds into the underlying
10
- * `royalty_pool::pool::RoyaltyPool` via `receive_and_deposit` (for direct coin
11
- * transfers) or `redeem_and_deposit` (for funds-accumulator balances).
12
- *
13
- * All three entry points require `&CompositionAdminCap`, so timing of fold
14
- * operations stays under admin control.
15
- */
16
- import {} from '@mysten/sui/transactions';
17
- import { normalizeMoveArguments } from '../utils/index.js';
18
- /**
19
- * Create a royalty pool for a composition. Pool address derives from
20
- * `(composition_id, Currency)` — calling twice with the same Currency aborts
21
- * because the address is already claimed.
22
- */
23
- export function initializePool(options) {
24
- const packageAddress = options.package ?? '@local-pkg/composition_royalty_pool';
25
- const argumentsTypes = [
26
- null,
27
- null
28
- ];
29
- const parameterNames = ["composition", "cap"];
30
- return (tx) => tx.moveCall({
31
- package: packageAddress,
32
- module: 'composition_royalty_pool',
33
- function: 'initialize_pool',
34
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
35
- typeArguments: options.typeArguments
36
- });
37
- }
38
- /**
39
- * Receive `Coin<Currency>` objects sent to the composition's address and fold them
40
- * into the pool's accumulator.
41
- */
42
- export function receiveAndDeposit(options) {
43
- const packageAddress = options.package ?? '@local-pkg/composition_royalty_pool';
44
- const argumentsTypes = [
45
- null,
46
- null,
47
- 'vector<null>',
48
- null
49
- ];
50
- const parameterNames = ["composition", "cap", "coins", "pool"];
51
- return (tx) => tx.moveCall({
52
- package: packageAddress,
53
- module: 'composition_royalty_pool',
54
- function: 'receive_and_deposit',
55
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
56
- typeArguments: options.typeArguments
57
- });
58
- }
59
- /**
60
- * Redeem `value` base units from the composition's funds accumulator and fold the
61
- * resulting balance into the pool's accumulator.
62
- */
63
- export function redeemAndDeposit(options) {
64
- const packageAddress = options.package ?? '@local-pkg/composition_royalty_pool';
65
- const argumentsTypes = [
66
- null,
67
- null,
68
- 'u64',
69
- null
70
- ];
71
- const parameterNames = ["composition", "cap", "value", "pool"];
72
- return (tx) => tx.moveCall({
73
- package: packageAddress,
74
- module: 'composition_royalty_pool',
75
- function: 'redeem_and_deposit',
76
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
77
- typeArguments: options.typeArguments
78
- });
79
- }
80
- //# sourceMappingURL=composition_royalty_pool.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"composition_royalty_pool.js","sourceRoot":"","sources":["../../../src/contracts/composition_royalty_pool/composition_royalty_pool.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;GAWG;AAEH,OAAO,EAA8C,MAAM,0BAA0B,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAA+B,MAAM,mBAAmB,CAAC;AAgBxF;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAAC,OAA8B;IACzD,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,IAAI,qCAAqC,CAAC;IAChF,MAAM,cAAc,GAAG;QACnB,IAAI;QACJ,IAAI;KACqB,CAAC;IAC9B,MAAM,cAAc,GAAG,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;IAC9C,OAAO,CAAC,EAAe,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC;QACpC,OAAO,EAAE,cAAc;QACvB,MAAM,EAAE,0BAA0B;QAClC,QAAQ,EAAE,iBAAiB;QAC3B,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;QACpF,aAAa,EAAE,OAAO,CAAC,aAAa;KACvC,CAAC,CAAC;AACP,CAAC;AAoBD;;;GAGG;AACH,MAAM,UAAU,iBAAiB,CAAC,OAAiC;IAC/D,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,IAAI,qCAAqC,CAAC;IAChF,MAAM,cAAc,GAAG;QACnB,IAAI;QACJ,IAAI;QACJ,cAAc;QACd,IAAI;KACqB,CAAC;IAC9B,MAAM,cAAc,GAAG,CAAC,aAAa,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC/D,OAAO,CAAC,EAAe,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC;QACpC,OAAO,EAAE,cAAc;QACvB,MAAM,EAAE,0BAA0B;QAClC,QAAQ,EAAE,qBAAqB;QAC/B,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;QACpF,aAAa,EAAE,OAAO,CAAC,aAAa;KACvC,CAAC,CAAC;AACP,CAAC;AAoBD;;;GAGG;AACH,MAAM,UAAU,gBAAgB,CAAC,OAAgC;IAC7D,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,IAAI,qCAAqC,CAAC;IAChF,MAAM,cAAc,GAAG;QACnB,IAAI;QACJ,IAAI;QACJ,KAAK;QACL,IAAI;KACqB,CAAC;IAC9B,MAAM,cAAc,GAAG,CAAC,aAAa,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC/D,OAAO,CAAC,EAAe,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC;QACpC,OAAO,EAAE,cAAc;QACvB,MAAM,EAAE,0BAA0B;QAClC,QAAQ,EAAE,oBAAoB;QAC9B,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;QACpF,aAAa,EAAE,OAAO,CAAC,aAAa;KACvC,CAAC,CAAC;AACP,CAAC"}
@@ -1,85 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- /**
5
- * The evolvable cover art value used by the recording/release cover art
6
- * extensions.
7
- *
8
- * CoverArt format changes over time (static-only → +animated → future formats).
9
- * Keeping it in an extension rather than immutable core means a new format is a
10
- * republish of this small package (or a brand-new cover art standard), not of the
11
- * frozen protocol. `CoverArt` references external storage via `ori::WalrusData`.
12
- */
13
- import { MoveStruct } from '../utils/index.js';
14
- import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
15
- export declare const CoverArt: MoveStruct<{
16
- still: import("../utils/index.js").MoveEnum<{
17
- Blob: import("../utils/index.js").MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">, import("../utils/index.js").MoveEnum<{
18
- Unencrypted: null;
19
- Encrypted: MoveStruct<{
20
- dek: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
21
- length: number;
22
- }, string>;
23
- }, "Confidentiality.Encrypted">;
24
- }, "ori::walrus_data::Confidentiality">], "WalrusData.Blob">;
25
- QuiltPatch: import("../utils/index.js").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">;
26
- }, "ori::walrus_data::WalrusData">;
27
- animated: import("@mysten/sui/bcs").BcsType<import("@mysten/bcs").EnumOutputShapeWithKeys<{
28
- Blob: [string, import("@mysten/bcs").EnumOutputShapeWithKeys<{
29
- Unencrypted: true;
30
- Encrypted: {
31
- dek: number[];
32
- };
33
- }, "Unencrypted" | "Encrypted">];
34
- QuiltPatch: [string, number, number, number];
35
- }, "Blob" | "QuiltPatch"> | null, import("@mysten/bcs").EnumInputShape<{
36
- Blob: readonly [string | number | bigint, import("@mysten/bcs").EnumInputShape<{
37
- Unencrypted: boolean | object | null;
38
- Encrypted: {
39
- dek: Iterable<number> & {
40
- length: number;
41
- };
42
- };
43
- }>];
44
- QuiltPatch: readonly [string | number | bigint, number, number, number];
45
- }> | null | undefined, "Option<ori::walrus_data::WalrusData>">;
46
- }, "@local-pkg/cover_art::cover_art::CoverArt">;
47
- export interface NewArguments {
48
- still: TransactionArgument;
49
- animated: TransactionArgument;
50
- }
51
- export interface NewOptions {
52
- package?: string;
53
- arguments: NewArguments | [
54
- still: TransactionArgument,
55
- animated: TransactionArgument
56
- ];
57
- }
58
- /**
59
- * Creates cover art with a still image and optional animated version. Both
60
- * references must be Walrus blobs.
61
- */
62
- export declare function _new(options: NewOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
63
- export interface StillArguments {
64
- self: TransactionArgument;
65
- }
66
- export interface StillOptions {
67
- package?: string;
68
- arguments: StillArguments | [
69
- self: TransactionArgument
70
- ];
71
- }
72
- /** Returns a reference to the still image data. */
73
- export declare function still(options: StillOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
74
- export interface AnimatedArguments {
75
- self: TransactionArgument;
76
- }
77
- export interface AnimatedOptions {
78
- package?: string;
79
- arguments: AnimatedArguments | [
80
- self: TransactionArgument
81
- ];
82
- }
83
- /** Returns a reference to the optional animated cover art data. */
84
- export declare function animated(options: AnimatedOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
85
- //# sourceMappingURL=cover_art.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cover_art.d.ts","sourceRoot":"","sources":["../../../src/contracts/cover_art/cover_art.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;GAQG;AAEH,OAAO,EAAE,UAAU,EAA0B,MAAM,mBAAmB,CAAC;AAEvE,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAGtF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+CAGb,CAAC;AACT,MAAM,WAAW,YAAY;IACzB,KAAK,EAAE,mBAAmB,CAAC;IAC3B,QAAQ,EAAE,mBAAmB,CAAC;CACjC;AACD,MAAM,WAAW,UAAU;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,YAAY,GAAG;QACtB,KAAK,EAAE,mBAAmB;QAC1B,QAAQ,EAAE,mBAAmB;KAChC,CAAC;CACL;AACD;;;GAGG;AACH,wBAAgB,IAAI,CAAC,OAAO,EAAE,UAAU,IAO5B,IAAI,WAAW,0DAM1B;AACD,MAAM,WAAW,cAAc;IAC3B,IAAI,EAAE,mBAAmB,CAAC;CAC7B;AACD,MAAM,WAAW,YAAY;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,cAAc,GAAG;QACxB,IAAI,EAAE,mBAAmB;KAC5B,CAAC;CACL;AACD,mDAAmD;AACnD,wBAAgB,KAAK,CAAC,OAAO,EAAE,YAAY,IAM/B,IAAI,WAAW,0DAM1B;AACD,MAAM,WAAW,iBAAiB;IAC9B,IAAI,EAAE,mBAAmB,CAAC;CAC7B;AACD,MAAM,WAAW,eAAe;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,iBAAiB,GAAG;QAC3B,IAAI,EAAE,mBAAmB;KAC5B,CAAC;CACL;AACD,mEAAmE;AACnE,wBAAgB,QAAQ,CAAC,OAAO,EAAE,eAAe,IAMrC,IAAI,WAAW,0DAM1B"}
@@ -1,68 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- /**
5
- * The evolvable cover art value used by the recording/release cover art
6
- * extensions.
7
- *
8
- * CoverArt format changes over time (static-only → +animated → future formats).
9
- * Keeping it in an extension rather than immutable core means a new format is a
10
- * republish of this small package (or a brand-new cover art standard), not of the
11
- * frozen protocol. `CoverArt` references external storage via `ori::WalrusData`.
12
- */
13
- import { MoveStruct, normalizeMoveArguments } from '../utils/index.js';
14
- import { bcs } from '@mysten/sui/bcs';
15
- import {} from '@mysten/sui/transactions';
16
- import * as walrus_data from './deps/ori/walrus_data.js';
17
- const $moduleName = '@local-pkg/cover_art::cover_art';
18
- export const CoverArt = new MoveStruct({ name: `${$moduleName}::CoverArt`, fields: {
19
- still: walrus_data.WalrusData,
20
- animated: bcs.option(walrus_data.WalrusData)
21
- } });
22
- /**
23
- * Creates cover art with a still image and optional animated version. Both
24
- * references must be Walrus blobs.
25
- */
26
- export function _new(options) {
27
- const packageAddress = options.package ?? '@local-pkg/cover_art';
28
- const argumentsTypes = [
29
- null,
30
- null
31
- ];
32
- const parameterNames = ["still", "animated"];
33
- return (tx) => tx.moveCall({
34
- package: packageAddress,
35
- module: 'cover_art',
36
- function: 'new',
37
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
38
- });
39
- }
40
- /** Returns a reference to the still image data. */
41
- export function still(options) {
42
- const packageAddress = options.package ?? '@local-pkg/cover_art';
43
- const argumentsTypes = [
44
- null
45
- ];
46
- const parameterNames = ["self"];
47
- return (tx) => tx.moveCall({
48
- package: packageAddress,
49
- module: 'cover_art',
50
- function: 'still',
51
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
52
- });
53
- }
54
- /** Returns a reference to the optional animated cover art data. */
55
- export function animated(options) {
56
- const packageAddress = options.package ?? '@local-pkg/cover_art';
57
- const argumentsTypes = [
58
- null
59
- ];
60
- const parameterNames = ["self"];
61
- return (tx) => tx.moveCall({
62
- package: packageAddress,
63
- module: 'cover_art',
64
- function: 'animated',
65
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
66
- });
67
- }
68
- //# sourceMappingURL=cover_art.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cover_art.js","sourceRoot":"","sources":["../../../src/contracts/cover_art/cover_art.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;GAQG;AAEH,OAAO,EAAE,UAAU,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,EAA8C,MAAM,0BAA0B,CAAC;AACtF,OAAO,KAAK,WAAW,MAAM,2BAA2B,CAAC;AACzD,MAAM,WAAW,GAAG,iCAAiC,CAAC;AACtD,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,YAAY,EAAE,MAAM,EAAE;QAC3E,KAAK,EAAE,WAAW,CAAC,UAAU;QAC7B,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,UAAU,CAAC;KAC/C,EAAE,CAAC,CAAC;AAYT;;;GAGG;AACH,MAAM,UAAU,IAAI,CAAC,OAAmB;IACpC,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,IAAI,sBAAsB,CAAC;IACjE,MAAM,cAAc,GAAG;QACnB,IAAI;QACJ,IAAI;KACqB,CAAC;IAC9B,MAAM,cAAc,GAAG,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;IAC7C,OAAO,CAAC,EAAe,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC;QACpC,OAAO,EAAE,cAAc;QACvB,MAAM,EAAE,WAAW;QACnB,QAAQ,EAAE,KAAK;QACf,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;KACvF,CAAC,CAAC;AACP,CAAC;AAUD,mDAAmD;AACnD,MAAM,UAAU,KAAK,CAAC,OAAqB;IACvC,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,IAAI,sBAAsB,CAAC;IACjE,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,WAAW;QACnB,QAAQ,EAAE,OAAO;QACjB,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;KACvF,CAAC,CAAC;AACP,CAAC;AAUD,mEAAmE;AACnE,MAAM,UAAU,QAAQ,CAAC,OAAwB;IAC7C,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,IAAI,sBAAsB,CAAC;IACjE,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,WAAW;QACnB,QAAQ,EAAE,UAAU;QACpB,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC;KACvF,CAAC,CAAC;AACP,CAAC"}
@@ -1,52 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- import { MoveEnum, MoveStruct, MoveTuple } from '../../../utils/index.js';
5
- /**
6
- * Confidentiality of a stored blob: cleartext, or encrypted with an access policy.
7
- * Only applies to standalone blobs — a quilt patch is a slice of a shared quilt
8
- * blob and can never be the direct product of an encryption.
9
- */
10
- export declare const Confidentiality: MoveEnum<{
11
- /** The blob is stored in the clear. */
12
- Unencrypted: null;
13
- /**
14
- * The blob is AES-encrypted. `dek` is the AES data-encryption key sealed via Seal
15
- * — a small ciphertext stored on-chain, not the blob bytes. The sealed DEK is
16
- * itself a Seal `EncryptedObject`, which already carries the decryption-policy
17
- * package id, so no separate policy field is stored here. Decryption is gated by
18
- * that policy package's `seal_approve`, not by this library.
19
- */
20
- Encrypted: MoveStruct<{
21
- dek: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
22
- length: number;
23
- }, string>;
24
- }, "Confidentiality.Encrypted">;
25
- }, "ori::walrus_data::Confidentiality">;
26
- /** Represents either a standalone Walrus blob or a patch within a quilt. */
27
- export declare const WalrusData: MoveEnum<{
28
- /** A standalone Walrus blob. Fields: blob_id, confidentiality. */
29
- Blob: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">, MoveEnum<{
30
- /** The blob is stored in the clear. */
31
- Unencrypted: null;
32
- /**
33
- * The blob is AES-encrypted. `dek` is the AES data-encryption key sealed via Seal
34
- * — a small ciphertext stored on-chain, not the blob bytes. The sealed DEK is
35
- * itself a Seal `EncryptedObject`, which already carries the decryption-policy
36
- * package id, so no separate policy field is stored here. Decryption is gated by
37
- * that policy package's `seal_approve`, not by this library.
38
- */
39
- Encrypted: MoveStruct<{
40
- dek: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
41
- length: number;
42
- }, string>;
43
- }, "Confidentiality.Encrypted">;
44
- }, "ori::walrus_data::Confidentiality">], "WalrusData.Blob">;
45
- /**
46
- * A patch within a Walrus quilt. Fields: quilt_id, version, start_index,
47
- * end_index. Always a plaintext reference into a (possibly separately encrypted)
48
- * quilt blob.
49
- */
50
- 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">;
51
- }, "ori::walrus_data::WalrusData">;
52
- //# sourceMappingURL=walrus_data.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"walrus_data.d.ts","sourceRoot":"","sources":["../../../../../src/contracts/cover_art/deps/ori/walrus_data.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAChE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAG1E;;;;GAIG;AACH,eAAO,MAAM,eAAe;IACpB,uCAAuC;;IAEvC;;;;;;OAMG;;;;;;uCAIH,CAAC;AACT,4EAA4E;AAC5E,eAAO,MAAM,UAAU;IACf,kEAAkE;;QAflE,uCAAuC;;QAEvC;;;;;;WAMG;;;;;;;IASH;;;;OAIG;;kCAEH,CAAC"}
@@ -1,37 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- import { MoveEnum, MoveStruct, MoveTuple } from '../../../utils/index.js';
5
- import { bcs } from '@mysten/sui/bcs';
6
- const $moduleName = 'ori::walrus_data';
7
- /**
8
- * Confidentiality of a stored blob: cleartext, or encrypted with an access policy.
9
- * Only applies to standalone blobs — a quilt patch is a slice of a shared quilt
10
- * blob and can never be the direct product of an encryption.
11
- */
12
- export const Confidentiality = new MoveEnum({ name: `${$moduleName}::Confidentiality`, fields: {
13
- /** The blob is stored in the clear. */
14
- Unencrypted: null,
15
- /**
16
- * The blob is AES-encrypted. `dek` is the AES data-encryption key sealed via Seal
17
- * — a small ciphertext stored on-chain, not the blob bytes. The sealed DEK is
18
- * itself a Seal `EncryptedObject`, which already carries the decryption-policy
19
- * package id, so no separate policy field is stored here. Decryption is gated by
20
- * that policy package's `seal_approve`, not by this library.
21
- */
22
- Encrypted: new MoveStruct({ name: `Confidentiality.Encrypted`, fields: {
23
- dek: bcs.vector(bcs.u8())
24
- } })
25
- } });
26
- /** Represents either a standalone Walrus blob or a patch within a quilt. */
27
- export const WalrusData = new MoveEnum({ name: `${$moduleName}::WalrusData`, fields: {
28
- /** A standalone Walrus blob. Fields: blob_id, confidentiality. */
29
- Blob: new MoveTuple({ name: `WalrusData.Blob`, fields: [bcs.u256(), Confidentiality] }),
30
- /**
31
- * A patch within a Walrus quilt. Fields: quilt_id, version, start_index,
32
- * end_index. Always a plaintext reference into a (possibly separately encrypted)
33
- * quilt blob.
34
- */
35
- QuiltPatch: new MoveTuple({ name: `WalrusData.QuiltPatch`, fields: [bcs.u256(), bcs.u8(), bcs.u16(), bcs.u16()] })
36
- } });
37
- //# sourceMappingURL=walrus_data.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"walrus_data.js","sourceRoot":"","sources":["../../../../../src/contracts/cover_art/deps/ori/walrus_data.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAChE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,MAAM,WAAW,GAAG,kBAAkB,CAAC;AACvC;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,QAAQ,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,mBAAmB,EAAE,MAAM,EAAE;QACvF,uCAAuC;QACvC,WAAW,EAAE,IAAI;QACjB;;;;;;WAMG;QACH,SAAS,EAAE,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,2BAA2B,EAAE,MAAM,EAAE;gBAC/D,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC;aAC5B,EAAE,CAAC;KACX,EAAE,CAAC,CAAC;AACT,4EAA4E;AAC5E,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,QAAQ,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,cAAc,EAAE,MAAM,EAAE;QAC7E,kEAAkE;QAClE,IAAI,EAAE,IAAI,SAAS,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,eAAe,CAAC,EAAE,CAAC;QACvF;;;;WAIG;QACH,UAAU,EAAE,IAAI,SAAS,CAAC,EAAE,IAAI,EAAE,uBAAuB,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,GAAG,CAAC,EAAE,EAAE,EAAE,GAAG,CAAC,GAAG,EAAE,EAAE,GAAG,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC;KACrH,EAAE,CAAC,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/recording_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/recording_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/recording_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"}