@ckb-ccc/spore 0.0.0-canary-20250214032000

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 (230) hide show
  1. package/CHANGELOG.md +181 -0
  2. package/README.md +43 -0
  3. package/dist/advanced.d.ts +3 -0
  4. package/dist/advanced.d.ts.map +1 -0
  5. package/dist/advanced.js +2 -0
  6. package/dist/advancedBarrel.d.ts +5 -0
  7. package/dist/advancedBarrel.d.ts.map +1 -0
  8. package/dist/advancedBarrel.js +4 -0
  9. package/dist/barrel.d.ts +5 -0
  10. package/dist/barrel.d.ts.map +1 -0
  11. package/dist/barrel.js +4 -0
  12. package/dist/cluster/index.d.ts +76 -0
  13. package/dist/cluster/index.d.ts.map +1 -0
  14. package/dist/cluster/index.js +128 -0
  15. package/dist/cobuild/index.d.ts +12 -0
  16. package/dist/cobuild/index.d.ts.map +1 -0
  17. package/dist/cobuild/index.js +168 -0
  18. package/dist/codec/cluster.d.ts +34 -0
  19. package/dist/codec/cluster.d.ts.map +1 -0
  20. package/dist/codec/cluster.js +62 -0
  21. package/dist/codec/cobuild/buildingPacket.d.ts +268 -0
  22. package/dist/codec/cobuild/buildingPacket.d.ts.map +1 -0
  23. package/dist/codec/cobuild/buildingPacket.js +33 -0
  24. package/dist/codec/cobuild/index.d.ts +4 -0
  25. package/dist/codec/cobuild/index.d.ts.map +1 -0
  26. package/dist/codec/cobuild/index.js +3 -0
  27. package/dist/codec/cobuild/sporeAction.d.ts +589 -0
  28. package/dist/codec/cobuild/sporeAction.d.ts.map +1 -0
  29. package/dist/codec/cobuild/sporeAction.js +90 -0
  30. package/dist/codec/cobuild/witnessLayout.d.ts +126 -0
  31. package/dist/codec/cobuild/witnessLayout.d.ts.map +1 -0
  32. package/dist/codec/cobuild/witnessLayout.js +26 -0
  33. package/dist/codec/index.d.ts +4 -0
  34. package/dist/codec/index.d.ts.map +1 -0
  35. package/dist/codec/index.js +3 -0
  36. package/dist/codec/spore.d.ts +10 -0
  37. package/dist/codec/spore.d.ts.map +1 -0
  38. package/dist/codec/spore.js +16 -0
  39. package/dist/dob/api/decode.d.ts +8 -0
  40. package/dist/dob/api/decode.d.ts.map +1 -0
  41. package/dist/dob/api/decode.js +63 -0
  42. package/dist/dob/api/encode.d.ts +5 -0
  43. package/dist/dob/api/encode.d.ts.map +1 -0
  44. package/dist/dob/api/encode.js +77 -0
  45. package/dist/dob/api/index.d.ts +3 -0
  46. package/dist/dob/api/index.d.ts.map +1 -0
  47. package/dist/dob/api/index.js +2 -0
  48. package/dist/dob/config/index.d.ts +2 -0
  49. package/dist/dob/config/index.d.ts.map +1 -0
  50. package/dist/dob/config/index.js +1 -0
  51. package/dist/dob/config/predefined.d.ts +8 -0
  52. package/dist/dob/config/predefined.d.ts.map +1 -0
  53. package/dist/dob/config/predefined.js +59 -0
  54. package/dist/dob/helper/check.d.ts +5 -0
  55. package/dist/dob/helper/check.d.ts.map +1 -0
  56. package/dist/dob/helper/check.js +75 -0
  57. package/dist/dob/helper/error.d.ts +2 -0
  58. package/dist/dob/helper/error.d.ts.map +1 -0
  59. package/dist/dob/helper/error.js +40 -0
  60. package/dist/dob/helper/index.d.ts +4 -0
  61. package/dist/dob/helper/index.d.ts.map +1 -0
  62. package/dist/dob/helper/index.js +3 -0
  63. package/dist/dob/helper/object.d.ts +59 -0
  64. package/dist/dob/helper/object.d.ts.map +1 -0
  65. package/dist/dob/helper/object.js +1 -0
  66. package/dist/dob/index.d.ts +4 -0
  67. package/dist/dob/index.d.ts.map +1 -0
  68. package/dist/dob/index.js +3 -0
  69. package/dist/helper/index.d.ts +7 -0
  70. package/dist/helper/index.d.ts.map +1 -0
  71. package/dist/helper/index.js +18 -0
  72. package/dist/index.d.ts +3 -0
  73. package/dist/index.d.ts.map +1 -0
  74. package/dist/index.js +2 -0
  75. package/dist/package.json +3 -0
  76. package/dist/predefined/advanced.d.ts +3 -0
  77. package/dist/predefined/advanced.d.ts.map +1 -0
  78. package/dist/predefined/advanced.js +2 -0
  79. package/dist/predefined/index.d.ts +3 -0
  80. package/dist/predefined/index.d.ts.map +1 -0
  81. package/dist/predefined/index.js +2 -0
  82. package/dist/predefined/mainnet.advanced.d.ts +4 -0
  83. package/dist/predefined/mainnet.advanced.d.ts.map +1 -0
  84. package/dist/predefined/mainnet.advanced.js +61 -0
  85. package/dist/predefined/testnet.advanced.d.ts +4 -0
  86. package/dist/predefined/testnet.advanced.d.ts.map +1 -0
  87. package/dist/predefined/testnet.advanced.js +88 -0
  88. package/dist/predefined/types.d.ts +17 -0
  89. package/dist/predefined/types.d.ts.map +1 -0
  90. package/dist/predefined/types.js +18 -0
  91. package/dist/predefined/utils.d.ts +7 -0
  92. package/dist/predefined/utils.d.ts.map +1 -0
  93. package/dist/predefined/utils.js +26 -0
  94. package/dist/spore/advanced.d.ts +4 -0
  95. package/dist/spore/advanced.d.ts.map +1 -0
  96. package/dist/spore/advanced.js +50 -0
  97. package/dist/spore/index.d.ts +103 -0
  98. package/dist/spore/index.d.ts.map +1 -0
  99. package/dist/spore/index.js +171 -0
  100. package/dist.commonjs/advanced.d.ts +3 -0
  101. package/dist.commonjs/advanced.d.ts.map +1 -0
  102. package/dist.commonjs/advanced.js +41 -0
  103. package/dist.commonjs/advancedBarrel.d.ts +5 -0
  104. package/dist.commonjs/advancedBarrel.d.ts.map +1 -0
  105. package/dist.commonjs/advancedBarrel.js +20 -0
  106. package/dist.commonjs/barrel.d.ts +5 -0
  107. package/dist.commonjs/barrel.d.ts.map +1 -0
  108. package/dist.commonjs/barrel.js +43 -0
  109. package/dist.commonjs/cluster/index.d.ts +76 -0
  110. package/dist.commonjs/cluster/index.d.ts.map +1 -0
  111. package/dist.commonjs/cluster/index.js +135 -0
  112. package/dist.commonjs/cobuild/index.d.ts +12 -0
  113. package/dist.commonjs/cobuild/index.d.ts.map +1 -0
  114. package/dist.commonjs/cobuild/index.js +179 -0
  115. package/dist.commonjs/codec/cluster.d.ts +34 -0
  116. package/dist.commonjs/codec/cluster.d.ts.map +1 -0
  117. package/dist.commonjs/codec/cluster.js +71 -0
  118. package/dist.commonjs/codec/cobuild/buildingPacket.d.ts +268 -0
  119. package/dist.commonjs/codec/cobuild/buildingPacket.d.ts.map +1 -0
  120. package/dist.commonjs/codec/cobuild/buildingPacket.js +36 -0
  121. package/dist.commonjs/codec/cobuild/index.d.ts +4 -0
  122. package/dist.commonjs/codec/cobuild/index.d.ts.map +1 -0
  123. package/dist.commonjs/codec/cobuild/index.js +19 -0
  124. package/dist.commonjs/codec/cobuild/sporeAction.d.ts +589 -0
  125. package/dist.commonjs/codec/cobuild/sporeAction.d.ts.map +1 -0
  126. package/dist.commonjs/codec/cobuild/sporeAction.js +93 -0
  127. package/dist.commonjs/codec/cobuild/witnessLayout.d.ts +126 -0
  128. package/dist.commonjs/codec/cobuild/witnessLayout.d.ts.map +1 -0
  129. package/dist.commonjs/codec/cobuild/witnessLayout.js +29 -0
  130. package/dist.commonjs/codec/index.d.ts +4 -0
  131. package/dist.commonjs/codec/index.d.ts.map +1 -0
  132. package/dist.commonjs/codec/index.js +19 -0
  133. package/dist.commonjs/codec/spore.d.ts +10 -0
  134. package/dist.commonjs/codec/spore.d.ts.map +1 -0
  135. package/dist.commonjs/codec/spore.js +21 -0
  136. package/dist.commonjs/dob/api/decode.d.ts +8 -0
  137. package/dist.commonjs/dob/api/decode.d.ts.map +1 -0
  138. package/dist.commonjs/dob/api/decode.js +70 -0
  139. package/dist.commonjs/dob/api/encode.d.ts +5 -0
  140. package/dist.commonjs/dob/api/encode.d.ts.map +1 -0
  141. package/dist.commonjs/dob/api/encode.js +82 -0
  142. package/dist.commonjs/dob/api/index.d.ts +3 -0
  143. package/dist.commonjs/dob/api/index.d.ts.map +1 -0
  144. package/dist.commonjs/dob/api/index.js +18 -0
  145. package/dist.commonjs/dob/config/index.d.ts +2 -0
  146. package/dist.commonjs/dob/config/index.d.ts.map +1 -0
  147. package/dist.commonjs/dob/config/index.js +17 -0
  148. package/dist.commonjs/dob/config/predefined.d.ts +8 -0
  149. package/dist.commonjs/dob/config/predefined.d.ts.map +1 -0
  150. package/dist.commonjs/dob/config/predefined.js +63 -0
  151. package/dist.commonjs/dob/helper/check.d.ts +5 -0
  152. package/dist.commonjs/dob/helper/check.d.ts.map +1 -0
  153. package/dist.commonjs/dob/helper/check.js +80 -0
  154. package/dist.commonjs/dob/helper/error.d.ts +2 -0
  155. package/dist.commonjs/dob/helper/error.d.ts.map +1 -0
  156. package/dist.commonjs/dob/helper/error.js +43 -0
  157. package/dist.commonjs/dob/helper/index.d.ts +4 -0
  158. package/dist.commonjs/dob/helper/index.d.ts.map +1 -0
  159. package/dist.commonjs/dob/helper/index.js +19 -0
  160. package/dist.commonjs/dob/helper/object.d.ts +59 -0
  161. package/dist.commonjs/dob/helper/object.d.ts.map +1 -0
  162. package/dist.commonjs/dob/helper/object.js +2 -0
  163. package/dist.commonjs/dob/index.d.ts +4 -0
  164. package/dist.commonjs/dob/index.d.ts.map +1 -0
  165. package/dist.commonjs/dob/index.js +19 -0
  166. package/dist.commonjs/helper/index.d.ts +7 -0
  167. package/dist.commonjs/helper/index.d.ts.map +1 -0
  168. package/dist.commonjs/helper/index.js +21 -0
  169. package/dist.commonjs/index.d.ts +3 -0
  170. package/dist.commonjs/index.d.ts.map +1 -0
  171. package/dist.commonjs/index.js +41 -0
  172. package/dist.commonjs/package.json +3 -0
  173. package/dist.commonjs/predefined/advanced.d.ts +3 -0
  174. package/dist.commonjs/predefined/advanced.d.ts.map +1 -0
  175. package/dist.commonjs/predefined/advanced.js +18 -0
  176. package/dist.commonjs/predefined/index.d.ts +3 -0
  177. package/dist.commonjs/predefined/index.d.ts.map +1 -0
  178. package/dist.commonjs/predefined/index.js +18 -0
  179. package/dist.commonjs/predefined/mainnet.advanced.d.ts +4 -0
  180. package/dist.commonjs/predefined/mainnet.advanced.d.ts.map +1 -0
  181. package/dist.commonjs/predefined/mainnet.advanced.js +64 -0
  182. package/dist.commonjs/predefined/testnet.advanced.d.ts +4 -0
  183. package/dist.commonjs/predefined/testnet.advanced.d.ts.map +1 -0
  184. package/dist.commonjs/predefined/testnet.advanced.js +91 -0
  185. package/dist.commonjs/predefined/types.d.ts +17 -0
  186. package/dist.commonjs/predefined/types.d.ts.map +1 -0
  187. package/dist.commonjs/predefined/types.js +22 -0
  188. package/dist.commonjs/predefined/utils.d.ts +7 -0
  189. package/dist.commonjs/predefined/utils.d.ts.map +1 -0
  190. package/dist.commonjs/predefined/utils.js +32 -0
  191. package/dist.commonjs/spore/advanced.d.ts +4 -0
  192. package/dist.commonjs/spore/advanced.d.ts.map +1 -0
  193. package/dist.commonjs/spore/advanced.js +53 -0
  194. package/dist.commonjs/spore/index.d.ts +103 -0
  195. package/dist.commonjs/spore/index.d.ts.map +1 -0
  196. package/dist.commonjs/spore/index.js +179 -0
  197. package/package.json +64 -0
  198. package/src/advanced.ts +2 -0
  199. package/src/advancedBarrel.ts +4 -0
  200. package/src/barrel.ts +4 -0
  201. package/src/cluster/index.ts +236 -0
  202. package/src/cobuild/index.ts +219 -0
  203. package/src/codec/cluster.ts +128 -0
  204. package/src/codec/cobuild/buildingPacket.ts +41 -0
  205. package/src/codec/cobuild/index.ts +3 -0
  206. package/src/codec/cobuild/sporeAction.ts +99 -0
  207. package/src/codec/cobuild/witnessLayout.ts +34 -0
  208. package/src/codec/index.ts +3 -0
  209. package/src/codec/spore.ts +27 -0
  210. package/src/dob/api/decode.ts +89 -0
  211. package/src/dob/api/encode.ts +84 -0
  212. package/src/dob/api/index.ts +2 -0
  213. package/src/dob/config/index.ts +1 -0
  214. package/src/dob/config/predefined.ts +71 -0
  215. package/src/dob/helper/check.ts +107 -0
  216. package/src/dob/helper/error.ts +41 -0
  217. package/src/dob/helper/index.ts +3 -0
  218. package/src/dob/helper/object.ts +66 -0
  219. package/src/dob/index.ts +3 -0
  220. package/src/helper/index.ts +35 -0
  221. package/src/index.ts +2 -0
  222. package/src/predefined/advanced.ts +2 -0
  223. package/src/predefined/index.ts +2 -0
  224. package/src/predefined/mainnet.advanced.ts +76 -0
  225. package/src/predefined/testnet.advanced.ts +107 -0
  226. package/src/predefined/types.ts +37 -0
  227. package/src/predefined/utils.ts +56 -0
  228. package/src/spore/advanced.ts +72 -0
  229. package/src/spore/index.ts +297 -0
  230. package/typedoc.json +6 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,181 @@
1
+ # @ckb-ccc/spore
2
+
3
+ ## 0.0.0-canary-20250214032000
4
+
5
+ ### Patch Changes
6
+
7
+ - [#158](https://github.com/ckb-devrel/ccc/pull/158) [`6f10589`](https://github.com/ckb-devrel/ccc/commit/6f1058977e7aa113808fa74793f1ad5d672626d2) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): Transaction utils
8
+
9
+ - Updated dependencies [[`80e605d`](https://github.com/ckb-devrel/ccc/commit/80e605d0645e87b4e8b5be85c63322f7a3926e38), [`def62a0`](https://github.com/ckb-devrel/ccc/commit/def62a08bf908c6a21fe91c8db2c60848a2ada52), [`d584059`](https://github.com/ckb-devrel/ccc/commit/d584059644e8bcd3a0ea8b0314fdcbb68ee66013), [`1e88ad8`](https://github.com/ckb-devrel/ccc/commit/1e88ad8743428b46b28fe790bd559b96df8a6ce4), [`6f10589`](https://github.com/ckb-devrel/ccc/commit/6f1058977e7aa113808fa74793f1ad5d672626d2), [`d7728d9`](https://github.com/ckb-devrel/ccc/commit/d7728d9edb46c9c5a2bfeb342fc68a8b1c0fec5d)]:
10
+ - @ckb-ccc/core@0.0.0-canary-20250214032000
11
+
12
+ ## 1.2.1
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies [[`28c211d`](https://github.com/ckb-devrel/ccc/commit/28c211d839a2d2305eca56e82ba7da144aa3df4a)]:
17
+ - @ckb-ccc/core@1.5.0
18
+
19
+ ## 1.2.0
20
+
21
+ ### Minor Changes
22
+
23
+ - [#136](https://github.com/ckb-devrel/ccc/pull/136) [`a1d5626`](https://github.com/ckb-devrel/ccc/commit/a1d56266da68602495054ad6b627b998ef27f04d) Thanks [@ashuralyk](https://github.com/ashuralyk)! - feat(spore): support decoding rendered dob data from spore data and cluster data
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies [[`3fdb2c4`](https://github.com/ckb-devrel/ccc/commit/3fdb2c477d0b2766b231e436b8f396f047b02634), [`f429087`](https://github.com/ckb-devrel/ccc/commit/f4290874dfab3fe58844e5169673c5d47bda64e3)]:
28
+ - @ckb-ccc/core@1.4.0
29
+
30
+ ## 1.1.1
31
+
32
+ ### Patch Changes
33
+
34
+ - [`5d4517e`](https://github.com/ckb-devrel/ccc/commit/5d4517e049b541b2a695db7821c4cfc2218678e0) Thanks [@sfsf332](https://github.com/sfsf332)! - refactor(spore): unified findSpore(s) interface
35
+
36
+ - Updated dependencies [[`a48cccf`](https://github.com/ckb-devrel/ccc/commit/a48cccfae3ce6b3456a5eb863f207e7e5a6e568f)]:
37
+ - @ckb-ccc/core@1.3.1
38
+
39
+ ## 1.1.0
40
+
41
+ ### Minor Changes
42
+
43
+ - [#130](https://github.com/ckb-devrel/ccc/pull/130) [`8c97c85`](https://github.com/ckb-devrel/ccc/commit/8c97c851db4a2d940c7e59116ca7620cfd0afae1) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat: export backend packages in @ckb-ccc/shell
44
+
45
+ ### Patch Changes
46
+
47
+ - [#131](https://github.com/ckb-devrel/ccc/pull/131) [`4c76f9e`](https://github.com/ckb-devrel/ccc/commit/4c76f9e2a93a226fcfc4c32a5378bb531bfff08f) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): Transaction.completeInputs(Add/AtLeast)One
48
+
49
+ - Updated dependencies [[`4dbf4fd`](https://github.com/ckb-devrel/ccc/commit/4dbf4fd8021cf14d05282706a7667ea7d108fb09), [`4c76f9e`](https://github.com/ckb-devrel/ccc/commit/4c76f9e2a93a226fcfc4c32a5378bb531bfff08f), [`c2c4c26`](https://github.com/ckb-devrel/ccc/commit/c2c4c264e04461948e4b913b2f22054e6032ddc8), [`b6a73fa`](https://github.com/ckb-devrel/ccc/commit/b6a73fa9628ebdff51cb8f246309654cd53e36f2), [`8c97c85`](https://github.com/ckb-devrel/ccc/commit/8c97c851db4a2d940c7e59116ca7620cfd0afae1)]:
50
+ - @ckb-ccc/core@1.3.0
51
+
52
+ ## 1.0.8
53
+
54
+ ### Patch Changes
55
+
56
+ - Updated dependencies [[`01263bd`](https://github.com/ckb-devrel/ccc/commit/01263bd8c601fa8fcdfa24be52601716e1864843)]:
57
+ - @ckb-ccc/core@1.2.3
58
+
59
+ ## 1.0.7
60
+
61
+ ### Patch Changes
62
+
63
+ - [#123](https://github.com/ckb-devrel/ccc/pull/123) [`7e64eea`](https://github.com/ckb-devrel/ccc/commit/7e64eeac15268725358f74b531a3013c9189979c) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix: spore cluster lock proxy
64
+
65
+ ## 1.0.6
66
+
67
+ ### Patch Changes
68
+
69
+ - Updated dependencies [[`7886e3d`](https://github.com/ckb-devrel/ccc/commit/7886e3d89e9ca8f3514a2044c6dd4e8ec6b49933)]:
70
+ - @ckb-ccc/core@1.2.2
71
+
72
+ ## 1.0.5
73
+
74
+ ### Patch Changes
75
+
76
+ - Updated dependencies [[`94e2618`](https://github.com/ckb-devrel/ccc/commit/94e26182515e09d6086ec5b653d091f117a499e6)]:
77
+ - @ckb-ccc/core@1.2.1
78
+
79
+ ## 1.0.4
80
+
81
+ ### Patch Changes
82
+
83
+ - Updated dependencies [[`128e87b`](https://github.com/ckb-devrel/ccc/commit/128e87b5ca3e97bfe7842e76f786aa6aec010797)]:
84
+ - @ckb-ccc/core@1.2.0
85
+
86
+ ## 1.0.3
87
+
88
+ ### Patch Changes
89
+
90
+ - Updated dependencies [[`925991c`](https://github.com/ckb-devrel/ccc/commit/925991c8a24b1f34667e30b28b69812e936e3928)]:
91
+ - @ckb-ccc/core@1.1.1
92
+
93
+ ## 1.0.2
94
+
95
+ ### Patch Changes
96
+
97
+ - Updated dependencies [[`ddc0a28`](https://github.com/ckb-devrel/ccc/commit/ddc0a281c3d1dfa6ebc990dae92994f026dfddcc)]:
98
+ - @ckb-ccc/core@1.1.0
99
+
100
+ ## 1.0.1
101
+
102
+ ### Patch Changes
103
+
104
+ - [#111](https://github.com/ckb-devrel/ccc/pull/111) [`719055b`](https://github.com/ckb-devrel/ccc/commit/719055b404f31b40362f51714b9f11c85b857581) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix: call stack overflow caused by spread operator
105
+
106
+ - Updated dependencies [[`719055b`](https://github.com/ckb-devrel/ccc/commit/719055b404f31b40362f51714b9f11c85b857581), [`94caaca`](https://github.com/ckb-devrel/ccc/commit/94caaca11c63752a25282d42f51161c94397dec6)]:
107
+ - @ckb-ccc/core@1.0.1
108
+
109
+ ## 1.0.0
110
+
111
+ ### Major Changes
112
+
113
+ - [#107](https://github.com/ckb-devrel/ccc/pull/107) [`b99f55f`](https://github.com/ckb-devrel/ccc/commit/b99f55f74e64106391ce53f7d0bd0fa7522023cc) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat: molecule
114
+
115
+ ### Patch Changes
116
+
117
+ - Updated dependencies [[`b99f55f`](https://github.com/ckb-devrel/ccc/commit/b99f55f74e64106391ce53f7d0bd0fa7522023cc)]:
118
+ - @ckb-ccc/core@1.0.0
119
+
120
+ ## 0.1.2
121
+
122
+ ### Patch Changes
123
+
124
+ - Updated dependencies [[`c1cb910`](https://github.com/ckb-devrel/ccc/commit/c1cb91091780c7b33fbbd683ef8edc9f11452ecd)]:
125
+ - @ckb-ccc/core@0.1.2
126
+
127
+ ## 0.1.1
128
+
129
+ ### Patch Changes
130
+
131
+ - [#101](https://github.com/ckb-devrel/ccc/pull/101) [`d9affcc`](https://github.com/ckb-devrel/ccc/commit/d9affcc01c7b839b227e4d79bcb66e717577502a) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix: commonjs
132
+
133
+ - Updated dependencies [[`d9affcc`](https://github.com/ckb-devrel/ccc/commit/d9affcc01c7b839b227e4d79bcb66e717577502a)]:
134
+ - @ckb-ccc/core@0.1.1
135
+
136
+ ## 0.1.0
137
+
138
+ ### Minor Changes
139
+
140
+ - [#74](https://github.com/ckb-devrel/ccc/pull/74) [`f21d7e4`](https://github.com/ckb-devrel/ccc/commit/f21d7e4cf422edab4a836ef6d678b620594fef8d) Thanks [@Hanssen0](https://github.com/Hanssen0)! - add spore package and some known scripts
141
+
142
+ ### Patch Changes
143
+
144
+ - [#88](https://github.com/ckb-devrel/ccc/pull/88) [`f07a506`](https://github.com/ckb-devrel/ccc/commit/f07a506bd6fc27fe659a17d2f7baaeec54716d81) Thanks [@ashuralyk](https://github.com/ashuralyk)! - feat: molecule codec
145
+ feat: spore searcher
146
+ - Updated dependencies [[`a3d5359`](https://github.com/ckb-devrel/ccc/commit/a3d53595f6dd11f2f59cdf0086b3d7ce558a2fdd), [`8824ff2`](https://github.com/ckb-devrel/ccc/commit/8824ff27af3b76186f1a7d6db8c907cd66f09d6a), [`f07a506`](https://github.com/ckb-devrel/ccc/commit/f07a506bd6fc27fe659a17d2f7baaeec54716d81), [`f21d7e4`](https://github.com/ckb-devrel/ccc/commit/f21d7e4cf422edab4a836ef6d678b620594fef8d), [`acfc050`](https://github.com/ckb-devrel/ccc/commit/acfc0502cd6beb48b9310dec8411dcd630507366), [`1720d5a`](https://github.com/ckb-devrel/ccc/commit/1720d5a398543f1c6e24763eeaf15d84cd2214bf), [`e63a06e`](https://github.com/ckb-devrel/ccc/commit/e63a06ee75ac8595208d216dec88a4228c465e23), [`c092988`](https://github.com/ckb-devrel/ccc/commit/c092988e7765b9ac79498d6bd72a6a2f62859b6f), [`50f2ce0`](https://github.com/ckb-devrel/ccc/commit/50f2ce08e74cb3fbeae926267d42e28b426fd7f4), [`4709384`](https://github.com/ckb-devrel/ccc/commit/4709384e37188991cb937b16f99f47ca82c912b8)]:
147
+ - @ckb-ccc/core@0.1.0
148
+
149
+ ## 0.1.0-alpha.5
150
+
151
+ ### Patch Changes
152
+
153
+ - [#88](https://github.com/ckb-devrel/ccc/pull/88) [`f07a506`](https://github.com/ckb-devrel/ccc/commit/f07a506bd6fc27fe659a17d2f7baaeec54716d81) Thanks [@ashuralyk](https://github.com/ashuralyk)! - feat: molecule codec
154
+ feat: spore searcher
155
+ - Updated dependencies [[`f07a506`](https://github.com/ckb-devrel/ccc/commit/f07a506bd6fc27fe659a17d2f7baaeec54716d81)]:
156
+ - @ckb-ccc/core@0.1.0-alpha.7
157
+
158
+ ## 0.1.0-alpha.4
159
+
160
+ ### Patch Changes
161
+
162
+ - Updated dependencies [[`4709384`](https://github.com/ckb-devrel/ccc/commit/4709384e37188991cb937b16f99f47ca82c912b8)]:
163
+ - @ckb-ccc/core@0.1.0-alpha.6
164
+
165
+ ## 0.1.0-alpha.3
166
+
167
+ ### Patch Changes
168
+
169
+ - Updated dependencies [[`50f2ce0`](https://github.com/ckb-devrel/ccc/commit/50f2ce08e74cb3fbeae926267d42e28b426fd7f4)]:
170
+ - @ckb-ccc/core@0.1.0-alpha.5
171
+
172
+ ## 0.1.0-alpha.2
173
+
174
+ ### Minor Changes
175
+
176
+ - [#74](https://github.com/ckb-devrel/ccc/pull/74) [`f21d7e4`](https://github.com/ckb-devrel/ccc/commit/f21d7e4cf422edab4a836ef6d678b620594fef8d) Thanks [@Hanssen0](https://github.com/Hanssen0)! - add spore package and some known scripts
177
+
178
+ ### Patch Changes
179
+
180
+ - Updated dependencies [[`f21d7e4`](https://github.com/ckb-devrel/ccc/commit/f21d7e4cf422edab4a836ef6d678b620594fef8d)]:
181
+ - @ckb-ccc/core@0.1.0-alpha.4
package/README.md ADDED
@@ -0,0 +1,43 @@
1
+ <p align="center">
2
+ <a href="https://app.ckbccc.com/">
3
+ <img alt="Logo" src="https://raw.githubusercontent.com/ckb-devrel/ccc/master/assets/logoAndText.svg" style="height: 8rem; max-width: 90%; padding: 0.5rem 0;" />
4
+ </a>
5
+ </p>
6
+
7
+ <h1 align="center" style="font-size: 48px;">
8
+ CCC's support for Spore protocol
9
+ </h1>
10
+
11
+ <p align="center">
12
+ <a href="https://www.npmjs.com/package/@ckb-ccc/spore"><img
13
+ alt="NPM Version" src="https://img.shields.io/npm/v/%40ckb-ccc%2Fspore"
14
+ /></a>
15
+ <img alt="GitHub commit activity" src="https://img.shields.io/github/commit-activity/m/ckb-devrel/ccc" />
16
+ <img alt="GitHub last commit" src="https://img.shields.io/github/last-commit/ckb-devrel/ccc/master" />
17
+ <img alt="GitHub branch check runs" src="https://img.shields.io/github/check-runs/ckb-devrel/ccc/master" />
18
+ <a href="https://live.ckbccc.com/"><img
19
+ alt="Playground" src="https://img.shields.io/website?url=https%3A%2F%2Flive.ckbccc.com%2F&label=Playground"
20
+ /></a>
21
+ <a href="https://app.ckbccc.com/"><img
22
+ alt="App" src="https://img.shields.io/website?url=https%3A%2F%2Fapp.ckbccc.com%2F&label=App"
23
+ /></a>
24
+ <a href="https://docs.ckbccc.com/"><img
25
+ alt="Docs" src="https://img.shields.io/website?url=https%3A%2F%2Fdocs.ckbccc.com%2F&label=Docs"
26
+ /></a>
27
+ </p>
28
+
29
+ <p align="center">
30
+ CCC - CKBers' Codebase is a one-stop solution for your CKB JS/TS ecosystem development.
31
+ <br />
32
+ Empower yourself with CCC to discover the unlimited potential of CKB.
33
+ <br />
34
+ Interoperate with wallets from different chain ecosystems.
35
+ <br />
36
+ Fully enabling CKB's Turing completeness and cryptographic freedom power.
37
+ </p>
38
+
39
+ For non-developers, you can also [try CCC's app now here](https://app.ckbccc.com/). It showcases how to use CCC for some basic scenarios in CKB.
40
+
41
+ <h3 align="center">
42
+ Read more about CCC on <a href="https://docs.ckbccc.com">our website</a> or <a href="https://github.com/ckb-devrel/ccc">GitHub Repo</a>.
43
+ </h3>
@@ -0,0 +1,3 @@
1
+ export * from "./advancedBarrel.js";
2
+ export * as sporeA from "./advancedBarrel.js";
3
+ //# sourceMappingURL=advanced.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"advanced.d.ts","sourceRoot":"","sources":["../src/advanced.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,OAAO,KAAK,MAAM,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./advancedBarrel.js";
2
+ export * as sporeA from "./advancedBarrel.js";
@@ -0,0 +1,5 @@
1
+ export * from "./cobuild/index.js";
2
+ export * from "./codec/index.js";
3
+ export * from "./predefined/advanced.js";
4
+ export * from "./spore/advanced.js";
5
+ //# sourceMappingURL=advancedBarrel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"advancedBarrel.d.ts","sourceRoot":"","sources":["../src/advancedBarrel.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from "./cobuild/index.js";
2
+ export * from "./codec/index.js";
3
+ export * from "./predefined/advanced.js";
4
+ export * from "./spore/advanced.js";
@@ -0,0 +1,5 @@
1
+ export * from "./cluster/index.js";
2
+ export * as dob from "./dob/index.js";
3
+ export * from "./predefined/index.js";
4
+ export * from "./spore/index.js";
5
+ //# sourceMappingURL=barrel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"barrel.d.ts","sourceRoot":"","sources":["../src/barrel.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,OAAO,KAAK,GAAG,MAAM,gBAAgB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC"}
package/dist/barrel.js ADDED
@@ -0,0 +1,4 @@
1
+ export * from "./cluster/index.js";
2
+ export * as dob from "./dob/index.js";
3
+ export * from "./predefined/index.js";
4
+ export * from "./spore/index.js";
@@ -0,0 +1,76 @@
1
+ import { ccc } from "@ckb-ccc/core";
2
+ import { ClusterDataView } from "../codec/index.js";
3
+ import { SporeScriptInfo, SporeScriptInfoLike } from "../predefined/index.js";
4
+ export declare function findCluster(client: ccc.Client, id: ccc.HexLike, scripts?: SporeScriptInfoLike[]): Promise<{
5
+ cell: ccc.Cell;
6
+ cluster: ccc.Cell;
7
+ clusterData: ClusterDataView;
8
+ scriptInfo: SporeScriptInfo;
9
+ } | undefined>;
10
+ export declare function assertCluster(client: ccc.Client, args: ccc.HexLike, scripts?: SporeScriptInfoLike[]): Promise<{
11
+ cell: ccc.Cell;
12
+ scriptInfo: SporeScriptInfo;
13
+ }>;
14
+ /**
15
+ * Create a new Cluster cell
16
+ *
17
+ * @param signer who takes the responsibility to balance and sign the transaction
18
+ * @param data specific format of data required by Cluster protocol
19
+ * @param to the owner of the Cluster cell, which will be replaced with signer if not provided
20
+ * @param tx the transaction skeleton, if not provided, a new one will be created
21
+ * @param scriptInfo the script info of new cluster, default spore version if undefined
22
+ * @param scriptInfoHash the script info hash used in cobuild
23
+ * @returns
24
+ * - **tx**: a new transaction that contains created Cluster cell
25
+ * - **id**: the id of the created Cluster cell
26
+ */
27
+ export declare function createSporeCluster(params: {
28
+ signer: ccc.Signer;
29
+ data: ClusterDataView;
30
+ to?: ccc.ScriptLike;
31
+ tx?: ccc.TransactionLike;
32
+ scriptInfo?: SporeScriptInfoLike;
33
+ scriptInfoHash?: ccc.HexLike;
34
+ }): Promise<{
35
+ tx: ccc.Transaction;
36
+ id: ccc.Hex;
37
+ }>;
38
+ /**
39
+ * Transfer a Cluster cell
40
+ *
41
+ * @param signer who takes the responsibility to balance and sign the transaction
42
+ * @param id the id of the Cluster cell to be transferred
43
+ * @param to the new owner of the Cluster cell
44
+ * @param tx the transaction skeleton, if not provided, a new one will be created
45
+ * @param scriptInfoHash the script info hash used in cobuild
46
+ * @returns
47
+ * - **tx**: a new transaction that contains transferred Cluster cell
48
+ */
49
+ export declare function transferSporeCluster(params: {
50
+ signer: ccc.Signer;
51
+ id: ccc.HexLike;
52
+ to: ccc.ScriptLike;
53
+ tx?: ccc.TransactionLike;
54
+ scriptInfoHash?: ccc.HexLike;
55
+ }): Promise<{
56
+ tx: ccc.Transaction;
57
+ }>;
58
+ /**
59
+ * Search on-chain clusters under the signer's control
60
+ *
61
+ * @param signer the owner of clusters
62
+ * @param order the order in creation time of clusters
63
+ * @param scriptInfos the deployed script infos of clusters
64
+ */
65
+ export declare function findSporeClustersBySigner({ signer, order, limit, scriptInfos, }: {
66
+ signer: ccc.Signer;
67
+ order?: "asc" | "desc";
68
+ limit?: number;
69
+ scriptInfos?: SporeScriptInfoLike[];
70
+ }): AsyncGenerator<{
71
+ cell: ccc.Cell;
72
+ cluster: ccc.Cell;
73
+ clusterData: ClusterDataView;
74
+ scriptInfo: SporeScriptInfo;
75
+ }>;
76
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cluster/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAMpC,OAAO,EACL,eAAe,EAGhB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,eAAe,EACf,mBAAmB,EAGpB,MAAM,wBAAwB,CAAC;AAEhC,wBAAsB,WAAW,CAC/B,MAAM,EAAE,GAAG,CAAC,MAAM,EAClB,EAAE,EAAE,GAAG,CAAC,OAAO,EACf,OAAO,CAAC,EAAE,mBAAmB,EAAE,GAC9B,OAAO,CACN;IACE,IAAI,EAAE,GAAG,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,GAAG,CAAC,IAAI,CAAC;IAClB,WAAW,EAAE,eAAe,CAAC;IAC7B,UAAU,EAAE,eAAe,CAAC;CAC7B,GACD,SAAS,CACZ,CAgBA;AAED,wBAAsB,aAAa,CACjC,MAAM,EAAE,GAAG,CAAC,MAAM,EAClB,IAAI,EAAE,GAAG,CAAC,OAAO,EACjB,OAAO,CAAC,EAAE,mBAAmB,EAAE,GAC9B,OAAO,CAAC;IACT,IAAI,EAAE,GAAG,CAAC,IAAI,CAAC;IACf,UAAU,EAAE,eAAe,CAAC;CAC7B,CAAC,CAQD;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,kBAAkB,CAAC,MAAM,EAAE;IAC/C,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC;IACnB,IAAI,EAAE,eAAe,CAAC;IACtB,EAAE,CAAC,EAAE,GAAG,CAAC,UAAU,CAAC;IACpB,EAAE,CAAC,EAAE,GAAG,CAAC,eAAe,CAAC;IACzB,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,cAAc,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;CAC9B,GAAG,OAAO,CAAC;IACV,EAAE,EAAE,GAAG,CAAC,WAAW,CAAC;IACpB,EAAE,EAAE,GAAG,CAAC,GAAG,CAAC;CACb,CAAC,CAwCD;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,oBAAoB,CAAC,MAAM,EAAE;IACjD,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC;IACnB,EAAE,EAAE,GAAG,CAAC,OAAO,CAAC;IAChB,EAAE,EAAE,GAAG,CAAC,UAAU,CAAC;IACnB,EAAE,CAAC,EAAE,GAAG,CAAC,eAAe,CAAC;IACzB,cAAc,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;CAC9B,GAAG,OAAO,CAAC;IACV,EAAE,EAAE,GAAG,CAAC,WAAW,CAAC;CACrB,CAAC,CAmCD;AAED;;;;;;GAMG;AACH,wBAAuB,yBAAyB,CAAC,EAC/C,MAAM,EACN,KAAK,EACL,KAAK,EACL,WAAW,GACZ,EAAE;IACD,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,mBAAmB,EAAE,CAAC;CACrC,GAAG,cAAc,CAAC;IACjB,IAAI,EAAE,GAAG,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,GAAG,CAAC,IAAI,CAAC;IAClB,WAAW,EAAE,eAAe,CAAC;IAC7B,UAAU,EAAE,eAAe,CAAC;CAC7B,CAAC,CA0BD"}
@@ -0,0 +1,128 @@
1
+ import { ccc } from "@ckb-ccc/core";
2
+ import { assembleCreateClusterAction, assembleTransferClusterAction, prepareSporeTransaction, } from "../advanced.js";
3
+ import { packRawClusterData, unpackToRawClusterData, } from "../codec/index.js";
4
+ import { findSingletonCellByArgs } from "../helper/index.js";
5
+ import { SporeScriptInfo, getClusterScriptInfo, getClusterScriptInfos, } from "../predefined/index.js";
6
+ export async function findCluster(client, id, scripts) {
7
+ const found = await findSingletonCellByArgs(client, id, scripts ?? Object.values(getClusterScriptInfos(client)));
8
+ if (!found) {
9
+ return;
10
+ }
11
+ return {
12
+ cell: found.cell,
13
+ cluster: found.cell,
14
+ clusterData: unpackToRawClusterData(found.cell.outputData),
15
+ scriptInfo: found.scriptInfo,
16
+ };
17
+ }
18
+ export async function assertCluster(client, args, scripts) {
19
+ const res = await findCluster(client, args, scripts);
20
+ if (!res) {
21
+ throw new Error(`Cluster ${ccc.hexFrom(args)} not found`);
22
+ }
23
+ return res;
24
+ }
25
+ /**
26
+ * Create a new Cluster cell
27
+ *
28
+ * @param signer who takes the responsibility to balance and sign the transaction
29
+ * @param data specific format of data required by Cluster protocol
30
+ * @param to the owner of the Cluster cell, which will be replaced with signer if not provided
31
+ * @param tx the transaction skeleton, if not provided, a new one will be created
32
+ * @param scriptInfo the script info of new cluster, default spore version if undefined
33
+ * @param scriptInfoHash the script info hash used in cobuild
34
+ * @returns
35
+ * - **tx**: a new transaction that contains created Cluster cell
36
+ * - **id**: the id of the created Cluster cell
37
+ */
38
+ export async function createSporeCluster(params) {
39
+ const { signer, data, to, scriptInfoHash } = params;
40
+ const scriptInfo = params.scriptInfo ?? getClusterScriptInfo(signer.client);
41
+ // prepare transaction
42
+ const tx = ccc.Transaction.from(params.tx ?? {});
43
+ await tx.completeInputsAtLeastOne(signer);
44
+ // build cluster cell
45
+ const id = ccc.hashTypeId(tx.inputs[0], tx.outputs.length);
46
+ const packedClusterData = packRawClusterData(data);
47
+ tx.addOutput({
48
+ lock: to ?? (await signer.getRecommendedAddressObj()).script,
49
+ type: {
50
+ ...scriptInfo,
51
+ args: id,
52
+ },
53
+ }, packedClusterData);
54
+ // complete cellDeps
55
+ await tx.addCellDepInfos(signer.client, scriptInfo.cellDeps);
56
+ // generate cobuild action
57
+ const actions = scriptInfo.cobuild
58
+ ? [
59
+ assembleCreateClusterAction(tx.outputs[tx.outputs.length - 1], packedClusterData, scriptInfoHash),
60
+ ]
61
+ : [];
62
+ return {
63
+ tx: await prepareSporeTransaction(signer, tx, actions),
64
+ id,
65
+ };
66
+ }
67
+ /**
68
+ * Transfer a Cluster cell
69
+ *
70
+ * @param signer who takes the responsibility to balance and sign the transaction
71
+ * @param id the id of the Cluster cell to be transferred
72
+ * @param to the new owner of the Cluster cell
73
+ * @param tx the transaction skeleton, if not provided, a new one will be created
74
+ * @param scriptInfoHash the script info hash used in cobuild
75
+ * @returns
76
+ * - **tx**: a new transaction that contains transferred Cluster cell
77
+ */
78
+ export async function transferSporeCluster(params) {
79
+ const { signer, id, to, scriptInfoHash } = params;
80
+ // prepare transaction
81
+ const tx = ccc.Transaction.from(params.tx ?? {});
82
+ // build cluster cell
83
+ const { cell: cluster, scriptInfo } = await assertCluster(signer.client, id);
84
+ tx.addInput(cluster);
85
+ tx.addOutput({
86
+ lock: to,
87
+ type: cluster.cellOutput.type,
88
+ }, cluster.outputData);
89
+ // complete cellDeps
90
+ await tx.addCellDepInfos(signer.client, scriptInfo.cellDeps);
91
+ // generate cobuild action
92
+ const actions = scriptInfo.cobuild
93
+ ? [
94
+ assembleTransferClusterAction(cluster.cellOutput, tx.outputs[tx.outputs.length - 1], scriptInfoHash),
95
+ ]
96
+ : [];
97
+ return {
98
+ tx: await prepareSporeTransaction(signer, tx, actions),
99
+ };
100
+ }
101
+ /**
102
+ * Search on-chain clusters under the signer's control
103
+ *
104
+ * @param signer the owner of clusters
105
+ * @param order the order in creation time of clusters
106
+ * @param scriptInfos the deployed script infos of clusters
107
+ */
108
+ export async function* findSporeClustersBySigner({ signer, order, limit, scriptInfos, }) {
109
+ for (const scriptInfo of scriptInfos ??
110
+ Object.values(getClusterScriptInfos(signer.client))) {
111
+ if (!scriptInfo) {
112
+ continue;
113
+ }
114
+ for await (const cluster of signer.findCells({
115
+ script: {
116
+ ...scriptInfo,
117
+ args: "",
118
+ },
119
+ }, true, order, limit)) {
120
+ yield {
121
+ cell: cluster,
122
+ cluster,
123
+ clusterData: unpackToRawClusterData(cluster.outputData),
124
+ scriptInfo: SporeScriptInfo.from(scriptInfo),
125
+ };
126
+ }
127
+ }
128
+ }
@@ -0,0 +1,12 @@
1
+ import { ccc, mol } from "@ckb-ccc/core";
2
+ import { Action, ActionVec, WitnessLayout } from "../codec/index.js";
3
+ export declare function assembleCreateSporeAction(sporeOutput: ccc.CellOutputLike, sporeData: ccc.BytesLike, scriptInfoHash?: ccc.HexLike): mol.EncodableType<typeof Action>;
4
+ export declare function assembleTransferSporeAction(sporeInput: ccc.CellOutputLike, sporeOutput: ccc.CellOutputLike, scriptInfoHash?: ccc.HexLike): mol.EncodableType<typeof Action>;
5
+ export declare function assembleMeltSporeAction(sporeInput: ccc.CellOutputLike, scriptInfoHash?: ccc.HexLike): mol.EncodableType<typeof Action>;
6
+ export declare function assembleCreateClusterAction(clusterOutput: ccc.CellOutputLike, clusterData: ccc.BytesLike, scriptInfoHash?: ccc.HexLike): mol.EncodableType<typeof Action>;
7
+ export declare function assembleTransferClusterAction(clusterInput: ccc.CellOutputLike, clusterOutput: ccc.CellOutputLike, scriptInfoHash?: ccc.HexLike): mol.EncodableType<typeof Action>;
8
+ export declare function prepareSporeTransaction(signer: ccc.Signer, txLike: ccc.TransactionLike, actions: mol.EncodableType<typeof ActionVec>): Promise<ccc.Transaction>;
9
+ export declare function unpackCommonCobuildProof(data: ccc.HexLike): mol.EncodableType<typeof WitnessLayout> | undefined;
10
+ export declare function extractCobuildActionsFromTx(tx: ccc.Transaction): mol.EncodableType<typeof ActionVec>;
11
+ export declare function injectCobuild(tx: ccc.Transaction, actions: mol.EncodableType<typeof ActionVec>): void;
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cobuild/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EACL,MAAM,EACN,SAAS,EAET,aAAa,EACd,MAAM,mBAAmB,CAAC;AAG3B,wBAAgB,yBAAyB,CACvC,WAAW,EAAE,GAAG,CAAC,cAAc,EAC/B,SAAS,EAAE,GAAG,CAAC,SAAS,EACxB,cAAc,GAAE,GAAG,CAAC,OAAmC,GACtD,GAAG,CAAC,aAAa,CAAC,OAAO,MAAM,CAAC,CAsBlC;AAED,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,GAAG,CAAC,cAAc,EAC9B,WAAW,EAAE,GAAG,CAAC,cAAc,EAC/B,cAAc,GAAE,GAAG,CAAC,OAAmC,GACtD,GAAG,CAAC,aAAa,CAAC,OAAO,MAAM,CAAC,CA0BlC;AAED,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,GAAG,CAAC,cAAc,EAC9B,cAAc,GAAE,GAAG,CAAC,OAAmC,GACtD,GAAG,CAAC,aAAa,CAAC,OAAO,MAAM,CAAC,CAqBlC;AAED,wBAAgB,2BAA2B,CACzC,aAAa,EAAE,GAAG,CAAC,cAAc,EACjC,WAAW,EAAE,GAAG,CAAC,SAAS,EAC1B,cAAc,GAAE,GAAG,CAAC,OAAmC,GACtD,GAAG,CAAC,aAAa,CAAC,OAAO,MAAM,CAAC,CAsBlC;AAED,wBAAgB,6BAA6B,CAC3C,YAAY,EAAE,GAAG,CAAC,cAAc,EAChC,aAAa,EAAE,GAAG,CAAC,cAAc,EACjC,cAAc,GAAE,GAAG,CAAC,OAAmC,GACtD,GAAG,CAAC,aAAa,CAAC,OAAO,MAAM,CAAC,CAyBlC;AAED,wBAAsB,uBAAuB,CAC3C,MAAM,EAAE,GAAG,CAAC,MAAM,EAClB,MAAM,EAAE,GAAG,CAAC,eAAe,EAC3B,OAAO,EAAE,GAAG,CAAC,aAAa,CAAC,OAAO,SAAS,CAAC,GAC3C,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAW1B;AAED,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,GAAG,CAAC,OAAO,GAChB,GAAG,CAAC,aAAa,CAAC,OAAO,aAAa,CAAC,GAAG,SAAS,CAMrD;AAED,wBAAgB,2BAA2B,CACzC,EAAE,EAAE,GAAG,CAAC,WAAW,GAClB,GAAG,CAAC,aAAa,CAAC,OAAO,SAAS,CAAC,CAiBrC;AAED,wBAAgB,aAAa,CAC3B,EAAE,EAAE,GAAG,CAAC,WAAW,EACnB,OAAO,EAAE,GAAG,CAAC,aAAa,CAAC,OAAO,SAAS,CAAC,GAC3C,IAAI,CAaN"}