@ckb-ccc/spore 1.5.17 → 1.6.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 (225) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/advanced.d.mts +3 -0
  3. package/dist/advanced.mjs +1 -0
  4. package/dist/advancedBarrel.d.mts +30 -0
  5. package/dist/advancedBarrel.d.mts.map +1 -0
  6. package/dist/advancedBarrel.mjs +1 -0
  7. package/dist/barrel-B4pnDQ_D.d.mts +324 -0
  8. package/dist/barrel-B4pnDQ_D.d.mts.map +1 -0
  9. package/dist/barrel-C4fV1nUf.mjs +2 -0
  10. package/dist/barrel-C4fV1nUf.mjs.map +1 -0
  11. package/dist/barrel.d.mts +3 -0
  12. package/dist/barrel.mjs +1 -0
  13. package/dist/cluster-KsFIhwZx.mjs +2 -0
  14. package/dist/cluster-KsFIhwZx.mjs.map +1 -0
  15. package/dist/index.d.mts +3 -0
  16. package/dist/index.mjs +1 -0
  17. package/dist/rolldown-runtime-DK3Fl9T5.mjs +1 -0
  18. package/dist/types-1b682ehT.d.mts +1048 -0
  19. package/dist/types-1b682ehT.d.mts.map +1 -0
  20. package/dist.commonjs/advanced.d.ts +3 -3
  21. package/dist.commonjs/advanced.js +1 -41
  22. package/dist.commonjs/advancedBarrel.d.ts +29 -4
  23. package/dist.commonjs/advancedBarrel.d.ts.map +1 -1
  24. package/dist.commonjs/advancedBarrel.js +1 -20
  25. package/dist.commonjs/barrel-Dj_LwfvL.js +2 -0
  26. package/dist.commonjs/barrel-Dj_LwfvL.js.map +1 -0
  27. package/dist.commonjs/barrel-DsEUm55S.d.ts +324 -0
  28. package/dist.commonjs/barrel-DsEUm55S.d.ts.map +1 -0
  29. package/dist.commonjs/barrel.d.ts +3 -5
  30. package/dist.commonjs/barrel.js +1 -43
  31. package/dist.commonjs/cluster-CGo0DCM9.js +2 -0
  32. package/dist.commonjs/cluster-CGo0DCM9.js.map +1 -0
  33. package/dist.commonjs/index.d.ts +3 -3
  34. package/dist.commonjs/index.js +1 -41
  35. package/dist.commonjs/types-DjAlFsfK.d.ts +1050 -0
  36. package/dist.commonjs/types-DjAlFsfK.d.ts.map +1 -0
  37. package/package.json +30 -33
  38. package/src/cobuild/index.ts +10 -10
  39. package/src/codec/cluster.ts +2 -2
  40. package/src/codec/spore.ts +1 -1
  41. package/src/spore/advanced.ts +2 -2
  42. package/tsdown.config.mts +43 -0
  43. package/dist/advanced.d.ts +0 -3
  44. package/dist/advanced.d.ts.map +0 -1
  45. package/dist/advanced.js +0 -2
  46. package/dist/advancedBarrel.d.ts +0 -5
  47. package/dist/advancedBarrel.d.ts.map +0 -1
  48. package/dist/advancedBarrel.js +0 -4
  49. package/dist/barrel.d.ts +0 -5
  50. package/dist/barrel.d.ts.map +0 -1
  51. package/dist/barrel.js +0 -4
  52. package/dist/cluster/index.d.ts +0 -95
  53. package/dist/cluster/index.d.ts.map +0 -1
  54. package/dist/cluster/index.js +0 -165
  55. package/dist/cobuild/index.d.ts +0 -12
  56. package/dist/cobuild/index.d.ts.map +0 -1
  57. package/dist/cobuild/index.js +0 -167
  58. package/dist/codec/cluster.d.ts +0 -34
  59. package/dist/codec/cluster.d.ts.map +0 -1
  60. package/dist/codec/cluster.js +0 -62
  61. package/dist/codec/cobuild/buildingPacket.d.ts +0 -268
  62. package/dist/codec/cobuild/buildingPacket.d.ts.map +0 -1
  63. package/dist/codec/cobuild/buildingPacket.js +0 -33
  64. package/dist/codec/cobuild/index.d.ts +0 -4
  65. package/dist/codec/cobuild/index.d.ts.map +0 -1
  66. package/dist/codec/cobuild/index.js +0 -3
  67. package/dist/codec/cobuild/sporeAction.d.ts +0 -589
  68. package/dist/codec/cobuild/sporeAction.d.ts.map +0 -1
  69. package/dist/codec/cobuild/sporeAction.js +0 -90
  70. package/dist/codec/cobuild/witnessLayout.d.ts +0 -126
  71. package/dist/codec/cobuild/witnessLayout.d.ts.map +0 -1
  72. package/dist/codec/cobuild/witnessLayout.js +0 -26
  73. package/dist/codec/index.d.ts +0 -4
  74. package/dist/codec/index.d.ts.map +0 -1
  75. package/dist/codec/index.js +0 -3
  76. package/dist/codec/spore.d.ts +0 -10
  77. package/dist/codec/spore.d.ts.map +0 -1
  78. package/dist/codec/spore.js +0 -16
  79. package/dist/dob/api/decode.d.ts +0 -8
  80. package/dist/dob/api/decode.d.ts.map +0 -1
  81. package/dist/dob/api/decode.js +0 -63
  82. package/dist/dob/api/encode.d.ts +0 -5
  83. package/dist/dob/api/encode.d.ts.map +0 -1
  84. package/dist/dob/api/encode.js +0 -81
  85. package/dist/dob/api/index.d.ts +0 -3
  86. package/dist/dob/api/index.d.ts.map +0 -1
  87. package/dist/dob/api/index.js +0 -2
  88. package/dist/dob/config/index.d.ts +0 -2
  89. package/dist/dob/config/index.d.ts.map +0 -1
  90. package/dist/dob/config/index.js +0 -1
  91. package/dist/dob/config/predefined.d.ts +0 -8
  92. package/dist/dob/config/predefined.d.ts.map +0 -1
  93. package/dist/dob/config/predefined.js +0 -59
  94. package/dist/dob/helper/check.d.ts +0 -5
  95. package/dist/dob/helper/check.d.ts.map +0 -1
  96. package/dist/dob/helper/check.js +0 -75
  97. package/dist/dob/helper/error.d.ts +0 -2
  98. package/dist/dob/helper/error.d.ts.map +0 -1
  99. package/dist/dob/helper/error.js +0 -40
  100. package/dist/dob/helper/index.d.ts +0 -4
  101. package/dist/dob/helper/index.d.ts.map +0 -1
  102. package/dist/dob/helper/index.js +0 -3
  103. package/dist/dob/helper/object.d.ts +0 -59
  104. package/dist/dob/helper/object.d.ts.map +0 -1
  105. package/dist/dob/helper/object.js +0 -1
  106. package/dist/dob/index.d.ts +0 -4
  107. package/dist/dob/index.d.ts.map +0 -1
  108. package/dist/dob/index.js +0 -3
  109. package/dist/helper/index.d.ts +0 -7
  110. package/dist/helper/index.d.ts.map +0 -1
  111. package/dist/helper/index.js +0 -18
  112. package/dist/index.d.ts +0 -3
  113. package/dist/index.d.ts.map +0 -1
  114. package/dist/index.js +0 -2
  115. package/dist/predefined/advanced.d.ts +0 -3
  116. package/dist/predefined/advanced.d.ts.map +0 -1
  117. package/dist/predefined/advanced.js +0 -2
  118. package/dist/predefined/index.d.ts +0 -3
  119. package/dist/predefined/index.d.ts.map +0 -1
  120. package/dist/predefined/index.js +0 -2
  121. package/dist/predefined/mainnet.advanced.d.ts +0 -4
  122. package/dist/predefined/mainnet.advanced.d.ts.map +0 -1
  123. package/dist/predefined/mainnet.advanced.js +0 -61
  124. package/dist/predefined/testnet.advanced.d.ts +0 -4
  125. package/dist/predefined/testnet.advanced.d.ts.map +0 -1
  126. package/dist/predefined/testnet.advanced.js +0 -88
  127. package/dist/predefined/types.d.ts +0 -17
  128. package/dist/predefined/types.d.ts.map +0 -1
  129. package/dist/predefined/types.js +0 -18
  130. package/dist/predefined/utils.d.ts +0 -7
  131. package/dist/predefined/utils.d.ts.map +0 -1
  132. package/dist/predefined/utils.js +0 -26
  133. package/dist/spore/advanced.d.ts +0 -4
  134. package/dist/spore/advanced.d.ts.map +0 -1
  135. package/dist/spore/advanced.js +0 -54
  136. package/dist/spore/index.d.ts +0 -129
  137. package/dist/spore/index.d.ts.map +0 -1
  138. package/dist/spore/index.js +0 -218
  139. package/dist.commonjs/advanced.d.ts.map +0 -1
  140. package/dist.commonjs/barrel.d.ts.map +0 -1
  141. package/dist.commonjs/cluster/index.d.ts +0 -95
  142. package/dist.commonjs/cluster/index.d.ts.map +0 -1
  143. package/dist.commonjs/cluster/index.js +0 -173
  144. package/dist.commonjs/cobuild/index.d.ts +0 -12
  145. package/dist.commonjs/cobuild/index.d.ts.map +0 -1
  146. package/dist.commonjs/cobuild/index.js +0 -178
  147. package/dist.commonjs/codec/cluster.d.ts +0 -34
  148. package/dist.commonjs/codec/cluster.d.ts.map +0 -1
  149. package/dist.commonjs/codec/cluster.js +0 -71
  150. package/dist.commonjs/codec/cobuild/buildingPacket.d.ts +0 -268
  151. package/dist.commonjs/codec/cobuild/buildingPacket.d.ts.map +0 -1
  152. package/dist.commonjs/codec/cobuild/buildingPacket.js +0 -36
  153. package/dist.commonjs/codec/cobuild/index.d.ts +0 -4
  154. package/dist.commonjs/codec/cobuild/index.d.ts.map +0 -1
  155. package/dist.commonjs/codec/cobuild/index.js +0 -19
  156. package/dist.commonjs/codec/cobuild/sporeAction.d.ts +0 -589
  157. package/dist.commonjs/codec/cobuild/sporeAction.d.ts.map +0 -1
  158. package/dist.commonjs/codec/cobuild/sporeAction.js +0 -93
  159. package/dist.commonjs/codec/cobuild/witnessLayout.d.ts +0 -126
  160. package/dist.commonjs/codec/cobuild/witnessLayout.d.ts.map +0 -1
  161. package/dist.commonjs/codec/cobuild/witnessLayout.js +0 -29
  162. package/dist.commonjs/codec/index.d.ts +0 -4
  163. package/dist.commonjs/codec/index.d.ts.map +0 -1
  164. package/dist.commonjs/codec/index.js +0 -19
  165. package/dist.commonjs/codec/spore.d.ts +0 -10
  166. package/dist.commonjs/codec/spore.d.ts.map +0 -1
  167. package/dist.commonjs/codec/spore.js +0 -21
  168. package/dist.commonjs/dob/api/decode.d.ts +0 -8
  169. package/dist.commonjs/dob/api/decode.d.ts.map +0 -1
  170. package/dist.commonjs/dob/api/decode.js +0 -70
  171. package/dist.commonjs/dob/api/encode.d.ts +0 -5
  172. package/dist.commonjs/dob/api/encode.d.ts.map +0 -1
  173. package/dist.commonjs/dob/api/encode.js +0 -86
  174. package/dist.commonjs/dob/api/index.d.ts +0 -3
  175. package/dist.commonjs/dob/api/index.d.ts.map +0 -1
  176. package/dist.commonjs/dob/api/index.js +0 -18
  177. package/dist.commonjs/dob/config/index.d.ts +0 -2
  178. package/dist.commonjs/dob/config/index.d.ts.map +0 -1
  179. package/dist.commonjs/dob/config/index.js +0 -17
  180. package/dist.commonjs/dob/config/predefined.d.ts +0 -8
  181. package/dist.commonjs/dob/config/predefined.d.ts.map +0 -1
  182. package/dist.commonjs/dob/config/predefined.js +0 -63
  183. package/dist.commonjs/dob/helper/check.d.ts +0 -5
  184. package/dist.commonjs/dob/helper/check.d.ts.map +0 -1
  185. package/dist.commonjs/dob/helper/check.js +0 -80
  186. package/dist.commonjs/dob/helper/error.d.ts +0 -2
  187. package/dist.commonjs/dob/helper/error.d.ts.map +0 -1
  188. package/dist.commonjs/dob/helper/error.js +0 -43
  189. package/dist.commonjs/dob/helper/index.d.ts +0 -4
  190. package/dist.commonjs/dob/helper/index.d.ts.map +0 -1
  191. package/dist.commonjs/dob/helper/index.js +0 -19
  192. package/dist.commonjs/dob/helper/object.d.ts +0 -59
  193. package/dist.commonjs/dob/helper/object.d.ts.map +0 -1
  194. package/dist.commonjs/dob/helper/object.js +0 -2
  195. package/dist.commonjs/dob/index.d.ts +0 -4
  196. package/dist.commonjs/dob/index.d.ts.map +0 -1
  197. package/dist.commonjs/dob/index.js +0 -19
  198. package/dist.commonjs/helper/index.d.ts +0 -7
  199. package/dist.commonjs/helper/index.d.ts.map +0 -1
  200. package/dist.commonjs/helper/index.js +0 -21
  201. package/dist.commonjs/index.d.ts.map +0 -1
  202. package/dist.commonjs/predefined/advanced.d.ts +0 -3
  203. package/dist.commonjs/predefined/advanced.d.ts.map +0 -1
  204. package/dist.commonjs/predefined/advanced.js +0 -18
  205. package/dist.commonjs/predefined/index.d.ts +0 -3
  206. package/dist.commonjs/predefined/index.d.ts.map +0 -1
  207. package/dist.commonjs/predefined/index.js +0 -18
  208. package/dist.commonjs/predefined/mainnet.advanced.d.ts +0 -4
  209. package/dist.commonjs/predefined/mainnet.advanced.d.ts.map +0 -1
  210. package/dist.commonjs/predefined/mainnet.advanced.js +0 -64
  211. package/dist.commonjs/predefined/testnet.advanced.d.ts +0 -4
  212. package/dist.commonjs/predefined/testnet.advanced.d.ts.map +0 -1
  213. package/dist.commonjs/predefined/testnet.advanced.js +0 -91
  214. package/dist.commonjs/predefined/types.d.ts +0 -17
  215. package/dist.commonjs/predefined/types.d.ts.map +0 -1
  216. package/dist.commonjs/predefined/types.js +0 -22
  217. package/dist.commonjs/predefined/utils.d.ts +0 -7
  218. package/dist.commonjs/predefined/utils.d.ts.map +0 -1
  219. package/dist.commonjs/predefined/utils.js +0 -32
  220. package/dist.commonjs/spore/advanced.d.ts +0 -4
  221. package/dist.commonjs/spore/advanced.d.ts.map +0 -1
  222. package/dist.commonjs/spore/advanced.js +0 -57
  223. package/dist.commonjs/spore/index.d.ts +0 -129
  224. package/dist.commonjs/spore/index.d.ts.map +0 -1
  225. package/dist.commonjs/spore/index.js +0 -227
@@ -1,589 +0,0 @@
1
- import { ccc, mol } from "@ckb-ccc/core";
2
- export declare const Address: mol.Codec<{
3
- type: "Script";
4
- value: ccc.ScriptLike;
5
- }, {
6
- type: "Script";
7
- value: ccc.Script;
8
- }>;
9
- /**
10
- * Spore
11
- */
12
- export declare const CreateSpore: mol.Codec<mol.EncodableRecord<{
13
- sporeId: mol.Codec<ccc.BytesLike, `0x${string}`>;
14
- to: mol.Codec<{
15
- type: "Script";
16
- value: ccc.ScriptLike;
17
- }, {
18
- type: "Script";
19
- value: ccc.Script;
20
- }>;
21
- dataHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
22
- }>, mol.DecodedRecord<{
23
- sporeId: mol.Codec<ccc.BytesLike, `0x${string}`>;
24
- to: mol.Codec<{
25
- type: "Script";
26
- value: ccc.ScriptLike;
27
- }, {
28
- type: "Script";
29
- value: ccc.Script;
30
- }>;
31
- dataHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
32
- }>>;
33
- export declare const TransferSpore: mol.Codec<mol.EncodableRecord<{
34
- sporeId: mol.Codec<ccc.BytesLike, `0x${string}`>;
35
- from: mol.Codec<{
36
- type: "Script";
37
- value: ccc.ScriptLike;
38
- }, {
39
- type: "Script";
40
- value: ccc.Script;
41
- }>;
42
- to: mol.Codec<{
43
- type: "Script";
44
- value: ccc.ScriptLike;
45
- }, {
46
- type: "Script";
47
- value: ccc.Script;
48
- }>;
49
- }>, mol.DecodedRecord<{
50
- sporeId: mol.Codec<ccc.BytesLike, `0x${string}`>;
51
- from: mol.Codec<{
52
- type: "Script";
53
- value: ccc.ScriptLike;
54
- }, {
55
- type: "Script";
56
- value: ccc.Script;
57
- }>;
58
- to: mol.Codec<{
59
- type: "Script";
60
- value: ccc.ScriptLike;
61
- }, {
62
- type: "Script";
63
- value: ccc.Script;
64
- }>;
65
- }>>;
66
- export declare const MeltSpore: mol.Codec<mol.EncodableRecord<{
67
- sporeId: mol.Codec<ccc.BytesLike, `0x${string}`>;
68
- from: mol.Codec<{
69
- type: "Script";
70
- value: ccc.ScriptLike;
71
- }, {
72
- type: "Script";
73
- value: ccc.Script;
74
- }>;
75
- }>, mol.DecodedRecord<{
76
- sporeId: mol.Codec<ccc.BytesLike, `0x${string}`>;
77
- from: mol.Codec<{
78
- type: "Script";
79
- value: ccc.ScriptLike;
80
- }, {
81
- type: "Script";
82
- value: ccc.Script;
83
- }>;
84
- }>>;
85
- /**
86
- * Cluster
87
- */
88
- export declare const CreateCluster: mol.Codec<mol.EncodableRecord<{
89
- clusterId: mol.Codec<ccc.BytesLike, `0x${string}`>;
90
- to: mol.Codec<{
91
- type: "Script";
92
- value: ccc.ScriptLike;
93
- }, {
94
- type: "Script";
95
- value: ccc.Script;
96
- }>;
97
- dataHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
98
- }>, mol.DecodedRecord<{
99
- clusterId: mol.Codec<ccc.BytesLike, `0x${string}`>;
100
- to: mol.Codec<{
101
- type: "Script";
102
- value: ccc.ScriptLike;
103
- }, {
104
- type: "Script";
105
- value: ccc.Script;
106
- }>;
107
- dataHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
108
- }>>;
109
- export declare const TransferCluster: mol.Codec<mol.EncodableRecord<{
110
- clusterId: mol.Codec<ccc.BytesLike, `0x${string}`>;
111
- from: mol.Codec<{
112
- type: "Script";
113
- value: ccc.ScriptLike;
114
- }, {
115
- type: "Script";
116
- value: ccc.Script;
117
- }>;
118
- to: mol.Codec<{
119
- type: "Script";
120
- value: ccc.ScriptLike;
121
- }, {
122
- type: "Script";
123
- value: ccc.Script;
124
- }>;
125
- }>, mol.DecodedRecord<{
126
- clusterId: mol.Codec<ccc.BytesLike, `0x${string}`>;
127
- from: mol.Codec<{
128
- type: "Script";
129
- value: ccc.ScriptLike;
130
- }, {
131
- type: "Script";
132
- value: ccc.Script;
133
- }>;
134
- to: mol.Codec<{
135
- type: "Script";
136
- value: ccc.ScriptLike;
137
- }, {
138
- type: "Script";
139
- value: ccc.Script;
140
- }>;
141
- }>>;
142
- /**
143
- * ClusterProxy
144
- */
145
- export declare const CreateClusterProxy: mol.Codec<mol.EncodableRecord<{
146
- clusterId: mol.Codec<ccc.BytesLike, `0x${string}`>;
147
- clusterProxyId: mol.Codec<ccc.BytesLike, `0x${string}`>;
148
- to: mol.Codec<{
149
- type: "Script";
150
- value: ccc.ScriptLike;
151
- }, {
152
- type: "Script";
153
- value: ccc.Script;
154
- }>;
155
- }>, mol.DecodedRecord<{
156
- clusterId: mol.Codec<ccc.BytesLike, `0x${string}`>;
157
- clusterProxyId: mol.Codec<ccc.BytesLike, `0x${string}`>;
158
- to: mol.Codec<{
159
- type: "Script";
160
- value: ccc.ScriptLike;
161
- }, {
162
- type: "Script";
163
- value: ccc.Script;
164
- }>;
165
- }>>;
166
- export declare const TransferClusterProxy: mol.Codec<mol.EncodableRecord<{
167
- clusterId: mol.Codec<ccc.BytesLike, `0x${string}`>;
168
- clusterProxyId: mol.Codec<ccc.BytesLike, `0x${string}`>;
169
- from: mol.Codec<{
170
- type: "Script";
171
- value: ccc.ScriptLike;
172
- }, {
173
- type: "Script";
174
- value: ccc.Script;
175
- }>;
176
- to: mol.Codec<{
177
- type: "Script";
178
- value: ccc.ScriptLike;
179
- }, {
180
- type: "Script";
181
- value: ccc.Script;
182
- }>;
183
- }>, mol.DecodedRecord<{
184
- clusterId: mol.Codec<ccc.BytesLike, `0x${string}`>;
185
- clusterProxyId: mol.Codec<ccc.BytesLike, `0x${string}`>;
186
- from: mol.Codec<{
187
- type: "Script";
188
- value: ccc.ScriptLike;
189
- }, {
190
- type: "Script";
191
- value: ccc.Script;
192
- }>;
193
- to: mol.Codec<{
194
- type: "Script";
195
- value: ccc.ScriptLike;
196
- }, {
197
- type: "Script";
198
- value: ccc.Script;
199
- }>;
200
- }>>;
201
- export declare const MeltClusterProxy: mol.Codec<mol.EncodableRecord<{
202
- clusterId: mol.Codec<ccc.BytesLike, `0x${string}`>;
203
- clusterProxyId: mol.Codec<ccc.BytesLike, `0x${string}`>;
204
- from: mol.Codec<{
205
- type: "Script";
206
- value: ccc.ScriptLike;
207
- }, {
208
- type: "Script";
209
- value: ccc.Script;
210
- }>;
211
- }>, mol.DecodedRecord<{
212
- clusterId: mol.Codec<ccc.BytesLike, `0x${string}`>;
213
- clusterProxyId: mol.Codec<ccc.BytesLike, `0x${string}`>;
214
- from: mol.Codec<{
215
- type: "Script";
216
- value: ccc.ScriptLike;
217
- }, {
218
- type: "Script";
219
- value: ccc.Script;
220
- }>;
221
- }>>;
222
- /**
223
- * ClusterAgent
224
- */
225
- export declare const CreateClusterAgent: mol.Codec<mol.EncodableRecord<{
226
- clusterId: mol.Codec<ccc.BytesLike, `0x${string}`>;
227
- clusterProxyId: mol.Codec<ccc.BytesLike, `0x${string}`>;
228
- to: mol.Codec<{
229
- type: "Script";
230
- value: ccc.ScriptLike;
231
- }, {
232
- type: "Script";
233
- value: ccc.Script;
234
- }>;
235
- }>, mol.DecodedRecord<{
236
- clusterId: mol.Codec<ccc.BytesLike, `0x${string}`>;
237
- clusterProxyId: mol.Codec<ccc.BytesLike, `0x${string}`>;
238
- to: mol.Codec<{
239
- type: "Script";
240
- value: ccc.ScriptLike;
241
- }, {
242
- type: "Script";
243
- value: ccc.Script;
244
- }>;
245
- }>>;
246
- export declare const TransferClusterAgent: mol.Codec<mol.EncodableRecord<{
247
- clusterId: mol.Codec<ccc.BytesLike, `0x${string}`>;
248
- from: mol.Codec<{
249
- type: "Script";
250
- value: ccc.ScriptLike;
251
- }, {
252
- type: "Script";
253
- value: ccc.Script;
254
- }>;
255
- to: mol.Codec<{
256
- type: "Script";
257
- value: ccc.ScriptLike;
258
- }, {
259
- type: "Script";
260
- value: ccc.Script;
261
- }>;
262
- }>, mol.DecodedRecord<{
263
- clusterId: mol.Codec<ccc.BytesLike, `0x${string}`>;
264
- from: mol.Codec<{
265
- type: "Script";
266
- value: ccc.ScriptLike;
267
- }, {
268
- type: "Script";
269
- value: ccc.Script;
270
- }>;
271
- to: mol.Codec<{
272
- type: "Script";
273
- value: ccc.ScriptLike;
274
- }, {
275
- type: "Script";
276
- value: ccc.Script;
277
- }>;
278
- }>>;
279
- export declare const MeltClusterAgent: mol.Codec<mol.EncodableRecord<{
280
- clusterId: mol.Codec<ccc.BytesLike, `0x${string}`>;
281
- from: mol.Codec<{
282
- type: "Script";
283
- value: ccc.ScriptLike;
284
- }, {
285
- type: "Script";
286
- value: ccc.Script;
287
- }>;
288
- }>, mol.DecodedRecord<{
289
- clusterId: mol.Codec<ccc.BytesLike, `0x${string}`>;
290
- from: mol.Codec<{
291
- type: "Script";
292
- value: ccc.ScriptLike;
293
- }, {
294
- type: "Script";
295
- value: ccc.Script;
296
- }>;
297
- }>>;
298
- /**
299
- * Spore ScriptInfo Actions
300
- */
301
- export declare const SporeAction: mol.Codec<{
302
- type: "CreateSpore";
303
- value: {} & {
304
- sporeId: ccc.BytesLike;
305
- to: {
306
- type: "Script";
307
- value: ccc.ScriptLike;
308
- };
309
- dataHash: ccc.BytesLike;
310
- };
311
- } | {
312
- type: "TransferSpore";
313
- value: {} & {
314
- sporeId: ccc.BytesLike;
315
- to: {
316
- type: "Script";
317
- value: ccc.ScriptLike;
318
- };
319
- from: {
320
- type: "Script";
321
- value: ccc.ScriptLike;
322
- };
323
- };
324
- } | {
325
- type: "MeltSpore";
326
- value: {} & {
327
- sporeId: ccc.BytesLike;
328
- from: {
329
- type: "Script";
330
- value: ccc.ScriptLike;
331
- };
332
- };
333
- } | {
334
- type: "CreateCluster";
335
- value: {} & {
336
- to: {
337
- type: "Script";
338
- value: ccc.ScriptLike;
339
- };
340
- dataHash: ccc.BytesLike;
341
- clusterId: ccc.BytesLike;
342
- };
343
- } | {
344
- type: "TransferCluster";
345
- value: {} & {
346
- to: {
347
- type: "Script";
348
- value: ccc.ScriptLike;
349
- };
350
- from: {
351
- type: "Script";
352
- value: ccc.ScriptLike;
353
- };
354
- clusterId: ccc.BytesLike;
355
- };
356
- } | {
357
- type: "CreateClusterProxy";
358
- value: {} & {
359
- to: {
360
- type: "Script";
361
- value: ccc.ScriptLike;
362
- };
363
- clusterId: ccc.BytesLike;
364
- clusterProxyId: ccc.BytesLike;
365
- };
366
- } | {
367
- type: "TransferClusterProxy";
368
- value: {} & {
369
- to: {
370
- type: "Script";
371
- value: ccc.ScriptLike;
372
- };
373
- from: {
374
- type: "Script";
375
- value: ccc.ScriptLike;
376
- };
377
- clusterId: ccc.BytesLike;
378
- clusterProxyId: ccc.BytesLike;
379
- };
380
- } | {
381
- type: "MeltClusterProxy";
382
- value: {} & {
383
- from: {
384
- type: "Script";
385
- value: ccc.ScriptLike;
386
- };
387
- clusterId: ccc.BytesLike;
388
- clusterProxyId: ccc.BytesLike;
389
- };
390
- } | {
391
- type: "CreateClusterAgent";
392
- value: {} & {
393
- to: {
394
- type: "Script";
395
- value: ccc.ScriptLike;
396
- };
397
- clusterId: ccc.BytesLike;
398
- clusterProxyId: ccc.BytesLike;
399
- };
400
- } | {
401
- type: "TransferClusterAgent";
402
- value: {} & {
403
- to: {
404
- type: "Script";
405
- value: ccc.ScriptLike;
406
- };
407
- from: {
408
- type: "Script";
409
- value: ccc.ScriptLike;
410
- };
411
- clusterId: ccc.BytesLike;
412
- };
413
- } | {
414
- type: "MeltClusterAgent";
415
- value: {} & {
416
- from: {
417
- type: "Script";
418
- value: ccc.ScriptLike;
419
- };
420
- clusterId: ccc.BytesLike;
421
- };
422
- }, {
423
- type: "CreateSpore";
424
- value: mol.DecodedRecord<{
425
- sporeId: mol.Codec<ccc.BytesLike, `0x${string}`>;
426
- to: mol.Codec<{
427
- type: "Script";
428
- value: ccc.ScriptLike;
429
- }, {
430
- type: "Script";
431
- value: ccc.Script;
432
- }>;
433
- dataHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
434
- }>;
435
- } | {
436
- type: "TransferSpore";
437
- value: mol.DecodedRecord<{
438
- sporeId: mol.Codec<ccc.BytesLike, `0x${string}`>;
439
- from: mol.Codec<{
440
- type: "Script";
441
- value: ccc.ScriptLike;
442
- }, {
443
- type: "Script";
444
- value: ccc.Script;
445
- }>;
446
- to: mol.Codec<{
447
- type: "Script";
448
- value: ccc.ScriptLike;
449
- }, {
450
- type: "Script";
451
- value: ccc.Script;
452
- }>;
453
- }>;
454
- } | {
455
- type: "MeltSpore";
456
- value: mol.DecodedRecord<{
457
- sporeId: mol.Codec<ccc.BytesLike, `0x${string}`>;
458
- from: mol.Codec<{
459
- type: "Script";
460
- value: ccc.ScriptLike;
461
- }, {
462
- type: "Script";
463
- value: ccc.Script;
464
- }>;
465
- }>;
466
- } | {
467
- type: "CreateCluster";
468
- value: mol.DecodedRecord<{
469
- clusterId: mol.Codec<ccc.BytesLike, `0x${string}`>;
470
- to: mol.Codec<{
471
- type: "Script";
472
- value: ccc.ScriptLike;
473
- }, {
474
- type: "Script";
475
- value: ccc.Script;
476
- }>;
477
- dataHash: mol.Codec<ccc.BytesLike, `0x${string}`>;
478
- }>;
479
- } | {
480
- type: "TransferCluster";
481
- value: mol.DecodedRecord<{
482
- clusterId: mol.Codec<ccc.BytesLike, `0x${string}`>;
483
- from: mol.Codec<{
484
- type: "Script";
485
- value: ccc.ScriptLike;
486
- }, {
487
- type: "Script";
488
- value: ccc.Script;
489
- }>;
490
- to: mol.Codec<{
491
- type: "Script";
492
- value: ccc.ScriptLike;
493
- }, {
494
- type: "Script";
495
- value: ccc.Script;
496
- }>;
497
- }>;
498
- } | {
499
- type: "CreateClusterProxy";
500
- value: mol.DecodedRecord<{
501
- clusterId: mol.Codec<ccc.BytesLike, `0x${string}`>;
502
- clusterProxyId: mol.Codec<ccc.BytesLike, `0x${string}`>;
503
- to: mol.Codec<{
504
- type: "Script";
505
- value: ccc.ScriptLike;
506
- }, {
507
- type: "Script";
508
- value: ccc.Script;
509
- }>;
510
- }>;
511
- } | {
512
- type: "TransferClusterProxy";
513
- value: mol.DecodedRecord<{
514
- clusterId: mol.Codec<ccc.BytesLike, `0x${string}`>;
515
- clusterProxyId: mol.Codec<ccc.BytesLike, `0x${string}`>;
516
- from: mol.Codec<{
517
- type: "Script";
518
- value: ccc.ScriptLike;
519
- }, {
520
- type: "Script";
521
- value: ccc.Script;
522
- }>;
523
- to: mol.Codec<{
524
- type: "Script";
525
- value: ccc.ScriptLike;
526
- }, {
527
- type: "Script";
528
- value: ccc.Script;
529
- }>;
530
- }>;
531
- } | {
532
- type: "MeltClusterProxy";
533
- value: mol.DecodedRecord<{
534
- clusterId: mol.Codec<ccc.BytesLike, `0x${string}`>;
535
- clusterProxyId: mol.Codec<ccc.BytesLike, `0x${string}`>;
536
- from: mol.Codec<{
537
- type: "Script";
538
- value: ccc.ScriptLike;
539
- }, {
540
- type: "Script";
541
- value: ccc.Script;
542
- }>;
543
- }>;
544
- } | {
545
- type: "CreateClusterAgent";
546
- value: mol.DecodedRecord<{
547
- clusterId: mol.Codec<ccc.BytesLike, `0x${string}`>;
548
- clusterProxyId: mol.Codec<ccc.BytesLike, `0x${string}`>;
549
- to: mol.Codec<{
550
- type: "Script";
551
- value: ccc.ScriptLike;
552
- }, {
553
- type: "Script";
554
- value: ccc.Script;
555
- }>;
556
- }>;
557
- } | {
558
- type: "TransferClusterAgent";
559
- value: mol.DecodedRecord<{
560
- clusterId: mol.Codec<ccc.BytesLike, `0x${string}`>;
561
- from: mol.Codec<{
562
- type: "Script";
563
- value: ccc.ScriptLike;
564
- }, {
565
- type: "Script";
566
- value: ccc.Script;
567
- }>;
568
- to: mol.Codec<{
569
- type: "Script";
570
- value: ccc.ScriptLike;
571
- }, {
572
- type: "Script";
573
- value: ccc.Script;
574
- }>;
575
- }>;
576
- } | {
577
- type: "MeltClusterAgent";
578
- value: mol.DecodedRecord<{
579
- clusterId: mol.Codec<ccc.BytesLike, `0x${string}`>;
580
- from: mol.Codec<{
581
- type: "Script";
582
- value: ccc.ScriptLike;
583
- }, {
584
- type: "Script";
585
- value: ccc.Script;
586
- }>;
587
- }>;
588
- }>;
589
- //# sourceMappingURL=sporeAction.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sporeAction.d.ts","sourceRoot":"","sources":["../../../src/codec/cobuild/sporeAction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAEzC,eAAO,MAAM,OAAO;;;;;;EAElB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;GAItB,CAAC;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAIxB,CAAC;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;GAGpB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;GAIxB,CAAC;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAI1B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;GAI7B,CAAC;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAK/B,CAAC;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;GAI3B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;GAI7B,CAAC;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAI/B,CAAC;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;GAG3B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBtB,CAAC"}
@@ -1,90 +0,0 @@
1
- import { ccc, mol } from "@ckb-ccc/core";
2
- export const Address = mol.union({
3
- Script: ccc.Script,
4
- });
5
- /**
6
- * Spore
7
- */
8
- export const CreateSpore = mol.table({
9
- sporeId: mol.Byte32,
10
- to: Address,
11
- dataHash: mol.Byte32,
12
- });
13
- export const TransferSpore = mol.table({
14
- sporeId: mol.Byte32,
15
- from: Address,
16
- to: Address,
17
- });
18
- export const MeltSpore = mol.table({
19
- sporeId: mol.Byte32,
20
- from: Address,
21
- });
22
- /**
23
- * Cluster
24
- */
25
- export const CreateCluster = mol.table({
26
- clusterId: mol.Byte32,
27
- to: Address,
28
- dataHash: mol.Byte32,
29
- });
30
- export const TransferCluster = mol.table({
31
- clusterId: mol.Byte32,
32
- from: Address,
33
- to: Address,
34
- });
35
- /**
36
- * ClusterProxy
37
- */
38
- export const CreateClusterProxy = mol.table({
39
- clusterId: mol.Byte32,
40
- clusterProxyId: mol.Byte32,
41
- to: Address,
42
- });
43
- export const TransferClusterProxy = mol.table({
44
- clusterId: mol.Byte32,
45
- clusterProxyId: mol.Byte32,
46
- from: Address,
47
- to: Address,
48
- });
49
- export const MeltClusterProxy = mol.table({
50
- clusterId: mol.Byte32,
51
- clusterProxyId: mol.Byte32,
52
- from: Address,
53
- });
54
- /**
55
- * ClusterAgent
56
- */
57
- export const CreateClusterAgent = mol.table({
58
- clusterId: mol.Byte32,
59
- clusterProxyId: mol.Byte32,
60
- to: Address,
61
- });
62
- export const TransferClusterAgent = mol.table({
63
- clusterId: mol.Byte32,
64
- from: Address,
65
- to: Address,
66
- });
67
- export const MeltClusterAgent = mol.table({
68
- clusterId: mol.Byte32,
69
- from: Address,
70
- });
71
- /**
72
- * Spore ScriptInfo Actions
73
- */
74
- export const SporeAction = mol.union({
75
- // Spore
76
- CreateSpore,
77
- TransferSpore,
78
- MeltSpore,
79
- // Cluster
80
- CreateCluster,
81
- TransferCluster,
82
- // ClusterProxy
83
- CreateClusterProxy,
84
- TransferClusterProxy,
85
- MeltClusterProxy,
86
- // ClusterAgent
87
- CreateClusterAgent,
88
- TransferClusterAgent,
89
- MeltClusterAgent,
90
- });