@ckb-ccc/core 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 (623) hide show
  1. package/CHANGELOG.md +375 -0
  2. package/README.md +41 -0
  3. package/dist/address/address.advanced.d.ts +65 -0
  4. package/dist/address/address.advanced.d.ts.map +1 -0
  5. package/dist/address/address.advanced.js +147 -0
  6. package/dist/address/advanced.d.ts +2 -0
  7. package/dist/address/advanced.d.ts.map +1 -0
  8. package/dist/address/advanced.js +1 -0
  9. package/dist/address/index.d.ts +58 -0
  10. package/dist/address/index.d.ts.map +1 -0
  11. package/dist/address/index.js +78 -0
  12. package/dist/advanced.d.ts +3 -0
  13. package/dist/advanced.d.ts.map +1 -0
  14. package/dist/advanced.js +2 -0
  15. package/dist/advancedBarrel.d.ts +7 -0
  16. package/dist/advancedBarrel.d.ts.map +1 -0
  17. package/dist/advancedBarrel.js +6 -0
  18. package/dist/barrel.d.ts +14 -0
  19. package/dist/barrel.d.ts.map +1 -0
  20. package/dist/barrel.js +13 -0
  21. package/dist/bytes/advanced.d.ts +6 -0
  22. package/dist/bytes/advanced.d.ts.map +1 -0
  23. package/dist/bytes/advanced.js +1 -0
  24. package/dist/bytes/index.d.ts +108 -0
  25. package/dist/bytes/index.d.ts.map +1 -0
  26. package/dist/bytes/index.js +151 -0
  27. package/dist/ckb/advanced.d.ts +3 -0
  28. package/dist/ckb/advanced.d.ts.map +1 -0
  29. package/dist/ckb/advanced.js +2 -0
  30. package/dist/ckb/index.d.ts +4 -0
  31. package/dist/ckb/index.d.ts.map +1 -0
  32. package/dist/ckb/index.js +3 -0
  33. package/dist/ckb/script.advanced.d.ts +5 -0
  34. package/dist/ckb/script.advanced.d.ts.map +1 -0
  35. package/dist/ckb/script.advanced.js +13 -0
  36. package/dist/ckb/script.d.ts +143 -0
  37. package/dist/ckb/script.d.ts.map +1 -0
  38. package/dist/ckb/script.js +167 -0
  39. package/dist/ckb/transaction.advanced.d.ts +5 -0
  40. package/dist/ckb/transaction.advanced.d.ts.map +1 -0
  41. package/dist/ckb/transaction.advanced.js +9 -0
  42. package/dist/ckb/transaction.d.ts +893 -0
  43. package/dist/ckb/transaction.d.ts.map +1 -0
  44. package/dist/ckb/transaction.js +1299 -0
  45. package/dist/ckb/transactionLumos.d.ts +30 -0
  46. package/dist/ckb/transactionLumos.d.ts.map +1 -0
  47. package/dist/ckb/transactionLumos.js +1 -0
  48. package/dist/client/advanced.d.ts +6 -0
  49. package/dist/client/advanced.d.ts.map +1 -0
  50. package/dist/client/advanced.js +5 -0
  51. package/dist/client/cache/advanced.d.ts +2 -0
  52. package/dist/client/cache/advanced.d.ts.map +1 -0
  53. package/dist/client/cache/advanced.js +1 -0
  54. package/dist/client/cache/cache.d.ts +91 -0
  55. package/dist/client/cache/cache.d.ts.map +1 -0
  56. package/dist/client/cache/cache.js +128 -0
  57. package/dist/client/cache/index.d.ts +3 -0
  58. package/dist/client/cache/index.d.ts.map +1 -0
  59. package/dist/client/cache/index.js +2 -0
  60. package/dist/client/cache/memory.advanced.d.ts +22 -0
  61. package/dist/client/cache/memory.advanced.d.ts.map +1 -0
  62. package/dist/client/cache/memory.advanced.js +118 -0
  63. package/dist/client/cache/memory.d.ts +44 -0
  64. package/dist/client/cache/memory.d.ts.map +1 -0
  65. package/dist/client/cache/memory.js +137 -0
  66. package/dist/client/client.d.ts +98 -0
  67. package/dist/client/client.d.ts.map +1 -0
  68. package/dist/client/client.js +323 -0
  69. package/dist/client/clientPublicMainnet.advanced.d.ts +3 -0
  70. package/dist/client/clientPublicMainnet.advanced.d.ts.map +1 -0
  71. package/dist/client/clientPublicMainnet.advanced.js +326 -0
  72. package/dist/client/clientPublicMainnet.d.ts +16 -0
  73. package/dist/client/clientPublicMainnet.d.ts.map +1 -0
  74. package/dist/client/clientPublicMainnet.js +40 -0
  75. package/dist/client/clientPublicTestnet.advanced.d.ts +3 -0
  76. package/dist/client/clientPublicTestnet.advanced.d.ts.map +1 -0
  77. package/dist/client/clientPublicTestnet.advanced.js +336 -0
  78. package/dist/client/clientPublicTestnet.d.ts +16 -0
  79. package/dist/client/clientPublicTestnet.d.ts.map +1 -0
  80. package/dist/client/clientPublicTestnet.js +40 -0
  81. package/dist/client/clientTypes.advanced.d.ts +26 -0
  82. package/dist/client/clientTypes.advanced.d.ts.map +1 -0
  83. package/dist/client/clientTypes.advanced.js +7 -0
  84. package/dist/client/clientTypes.d.ts +360 -0
  85. package/dist/client/clientTypes.d.ts.map +1 -0
  86. package/dist/client/clientTypes.js +259 -0
  87. package/dist/client/index.d.ts +7 -0
  88. package/dist/client/index.d.ts.map +1 -0
  89. package/dist/client/index.js +6 -0
  90. package/dist/client/jsonRpc/advanced.d.ts +3 -0
  91. package/dist/client/jsonRpc/advanced.d.ts.map +1 -0
  92. package/dist/client/jsonRpc/advanced.js +2 -0
  93. package/dist/client/jsonRpc/client.d.ts +160 -0
  94. package/dist/client/jsonRpc/client.d.ts.map +1 -0
  95. package/dist/client/jsonRpc/client.js +220 -0
  96. package/dist/client/jsonRpc/index.d.ts +2 -0
  97. package/dist/client/jsonRpc/index.d.ts.map +1 -0
  98. package/dist/client/jsonRpc/index.js +1 -0
  99. package/dist/client/jsonRpc/transformers.d.ts +51 -0
  100. package/dist/client/jsonRpc/transformers.d.ts.map +1 -0
  101. package/dist/client/jsonRpc/transformers.js +246 -0
  102. package/dist/client/jsonRpc/types.d.ts +101 -0
  103. package/dist/client/jsonRpc/types.d.ts.map +1 -0
  104. package/dist/client/jsonRpc/types.js +1 -0
  105. package/dist/fixedPoint/index.d.ts +55 -0
  106. package/dist/fixedPoint/index.d.ts.map +1 -0
  107. package/dist/fixedPoint/index.js +68 -0
  108. package/dist/hasher/advanced.d.ts +2 -0
  109. package/dist/hasher/advanced.d.ts.map +1 -0
  110. package/dist/hasher/advanced.js +1 -0
  111. package/dist/hasher/hasher.d.ts +35 -0
  112. package/dist/hasher/hasher.d.ts.map +1 -0
  113. package/dist/hasher/hasher.js +1 -0
  114. package/dist/hasher/hasherCkb.d.ts +73 -0
  115. package/dist/hasher/hasherCkb.d.ts.map +1 -0
  116. package/dist/hasher/hasherCkb.js +88 -0
  117. package/dist/hasher/hasherKeecak256.d.ts +41 -0
  118. package/dist/hasher/hasherKeecak256.d.ts.map +1 -0
  119. package/dist/hasher/hasherKeecak256.js +46 -0
  120. package/dist/hasher/index.d.ts +4 -0
  121. package/dist/hasher/index.d.ts.map +1 -0
  122. package/dist/hasher/index.js +3 -0
  123. package/dist/hex/index.d.ts +27 -0
  124. package/dist/hex/index.d.ts.map +1 -0
  125. package/dist/hex/index.js +17 -0
  126. package/dist/index.d.ts +3 -0
  127. package/dist/index.d.ts.map +1 -0
  128. package/dist/index.js +2 -0
  129. package/dist/jsonRpc/advanced.d.ts +2 -0
  130. package/dist/jsonRpc/advanced.d.ts.map +1 -0
  131. package/dist/jsonRpc/advanced.js +1 -0
  132. package/dist/jsonRpc/index.d.ts +2 -0
  133. package/dist/jsonRpc/index.d.ts.map +1 -0
  134. package/dist/jsonRpc/index.js +1 -0
  135. package/dist/jsonRpc/requestor.d.ts +49 -0
  136. package/dist/jsonRpc/requestor.d.ts.map +1 -0
  137. package/dist/jsonRpc/requestor.js +109 -0
  138. package/dist/jsonRpc/transports/advanced.d.ts +6 -0
  139. package/dist/jsonRpc/transports/advanced.d.ts.map +1 -0
  140. package/dist/jsonRpc/transports/advanced.js +5 -0
  141. package/dist/jsonRpc/transports/factory.d.ts +6 -0
  142. package/dist/jsonRpc/transports/factory.d.ts.map +1 -0
  143. package/dist/jsonRpc/transports/factory.js +8 -0
  144. package/dist/jsonRpc/transports/fallback.d.ts +8 -0
  145. package/dist/jsonRpc/transports/fallback.d.ts.map +1 -0
  146. package/dist/jsonRpc/transports/fallback.js +22 -0
  147. package/dist/jsonRpc/transports/http.d.ts +8 -0
  148. package/dist/jsonRpc/transports/http.d.ts.map +1 -0
  149. package/dist/jsonRpc/transports/http.js +22 -0
  150. package/dist/jsonRpc/transports/transport.d.ts +18 -0
  151. package/dist/jsonRpc/transports/transport.d.ts.map +1 -0
  152. package/dist/jsonRpc/transports/transport.js +1 -0
  153. package/dist/jsonRpc/transports/webSocket.d.ts +11 -0
  154. package/dist/jsonRpc/transports/webSocket.d.ts.map +1 -0
  155. package/dist/jsonRpc/transports/webSocket.js +87 -0
  156. package/dist/keystore/index.d.ts +31 -0
  157. package/dist/keystore/index.d.ts.map +1 -0
  158. package/dist/keystore/index.js +106 -0
  159. package/dist/molecule/barrel.d.ts +4 -0
  160. package/dist/molecule/barrel.d.ts.map +1 -0
  161. package/dist/molecule/barrel.js +3 -0
  162. package/dist/molecule/codec.d.ts +120 -0
  163. package/dist/molecule/codec.d.ts.map +1 -0
  164. package/dist/molecule/codec.js +468 -0
  165. package/dist/molecule/entity.d.ts +119 -0
  166. package/dist/molecule/entity.d.ts.map +1 -0
  167. package/dist/molecule/entity.js +134 -0
  168. package/dist/molecule/index.d.ts +2 -0
  169. package/dist/molecule/index.d.ts.map +1 -0
  170. package/dist/molecule/index.js +1 -0
  171. package/dist/molecule/predefined.d.ts +57 -0
  172. package/dist/molecule/predefined.d.ts.map +1 -0
  173. package/dist/molecule/predefined.js +83 -0
  174. package/dist/num/index.d.ts +148 -0
  175. package/dist/num/index.d.ts.map +1 -0
  176. package/dist/num/index.js +188 -0
  177. package/dist/package.json +3 -0
  178. package/dist/signer/btc/index.d.ts +4 -0
  179. package/dist/signer/btc/index.d.ts.map +1 -0
  180. package/dist/signer/btc/index.js +3 -0
  181. package/dist/signer/btc/signerBtc.d.ts +59 -0
  182. package/dist/signer/btc/signerBtc.d.ts.map +1 -0
  183. package/dist/signer/btc/signerBtc.js +83 -0
  184. package/dist/signer/btc/signerBtcPublicKeyReadonly.d.ts +55 -0
  185. package/dist/signer/btc/signerBtcPublicKeyReadonly.d.ts.map +1 -0
  186. package/dist/signer/btc/signerBtcPublicKeyReadonly.js +61 -0
  187. package/dist/signer/btc/verify.d.ts +19 -0
  188. package/dist/signer/btc/verify.d.ts.map +1 -0
  189. package/dist/signer/btc/verify.js +33 -0
  190. package/dist/signer/ckb/index.d.ts +6 -0
  191. package/dist/signer/ckb/index.d.ts.map +1 -0
  192. package/dist/signer/ckb/index.js +5 -0
  193. package/dist/signer/ckb/signerCkbPrivateKey.d.ts +16 -0
  194. package/dist/signer/ckb/signerCkbPrivateKey.d.ts.map +1 -0
  195. package/dist/signer/ckb/signerCkbPrivateKey.js +42 -0
  196. package/dist/signer/ckb/signerCkbPublicKey.d.ts +27 -0
  197. package/dist/signer/ckb/signerCkbPublicKey.d.ts.map +1 -0
  198. package/dist/signer/ckb/signerCkbPublicKey.js +105 -0
  199. package/dist/signer/ckb/signerCkbScriptReadonly.d.ts +56 -0
  200. package/dist/signer/ckb/signerCkbScriptReadonly.d.ts.map +1 -0
  201. package/dist/signer/ckb/signerCkbScriptReadonly.js +66 -0
  202. package/dist/signer/ckb/verifyCkbSecp256k1.d.ts +11 -0
  203. package/dist/signer/ckb/verifyCkbSecp256k1.d.ts.map +1 -0
  204. package/dist/signer/ckb/verifyCkbSecp256k1.js +20 -0
  205. package/dist/signer/ckb/verifyJoyId.d.ts +6 -0
  206. package/dist/signer/ckb/verifyJoyId.d.ts.map +1 -0
  207. package/dist/signer/ckb/verifyJoyId.js +16 -0
  208. package/dist/signer/doge/index.d.ts +5 -0
  209. package/dist/signer/doge/index.d.ts.map +1 -0
  210. package/dist/signer/doge/index.js +4 -0
  211. package/dist/signer/doge/signerDoge.d.ts +52 -0
  212. package/dist/signer/doge/signerDoge.d.ts.map +1 -0
  213. package/dist/signer/doge/signerDoge.js +82 -0
  214. package/dist/signer/doge/signerDogeAddressReadonly.d.ts +41 -0
  215. package/dist/signer/doge/signerDogeAddressReadonly.d.ts.map +1 -0
  216. package/dist/signer/doge/signerDogeAddressReadonly.js +45 -0
  217. package/dist/signer/doge/signerDogePrivateKey.d.ts +52 -0
  218. package/dist/signer/doge/signerDogePrivateKey.d.ts.map +1 -0
  219. package/dist/signer/doge/signerDogePrivateKey.js +68 -0
  220. package/dist/signer/doge/verify.d.ts +6 -0
  221. package/dist/signer/doge/verify.d.ts.map +1 -0
  222. package/dist/signer/doge/verify.js +19 -0
  223. package/dist/signer/dummy/alwaysError.d.ts +12 -0
  224. package/dist/signer/dummy/alwaysError.d.ts.map +1 -0
  225. package/dist/signer/dummy/alwaysError.js +13 -0
  226. package/dist/signer/dummy/dummy.d.ts +15 -0
  227. package/dist/signer/dummy/dummy.d.ts.map +1 -0
  228. package/dist/signer/dummy/dummy.js +22 -0
  229. package/dist/signer/dummy/index.d.ts +4 -0
  230. package/dist/signer/dummy/index.d.ts.map +1 -0
  231. package/dist/signer/dummy/index.js +3 -0
  232. package/dist/signer/dummy/openLink.d.ts +12 -0
  233. package/dist/signer/dummy/openLink.d.ts.map +1 -0
  234. package/dist/signer/dummy/openLink.js +13 -0
  235. package/dist/signer/evm/index.d.ts +4 -0
  236. package/dist/signer/evm/index.d.ts.map +1 -0
  237. package/dist/signer/evm/index.js +3 -0
  238. package/dist/signer/evm/signerEvm.d.ts +59 -0
  239. package/dist/signer/evm/signerEvm.d.ts.map +1 -0
  240. package/dist/signer/evm/signerEvm.js +139 -0
  241. package/dist/signer/evm/signerEvmAddressReadonly.d.ts +47 -0
  242. package/dist/signer/evm/signerEvmAddressReadonly.d.ts.map +1 -0
  243. package/dist/signer/evm/signerEvmAddressReadonly.js +51 -0
  244. package/dist/signer/evm/verify.d.ts +6 -0
  245. package/dist/signer/evm/verify.d.ts.map +1 -0
  246. package/dist/signer/evm/verify.js +9 -0
  247. package/dist/signer/index.d.ts +8 -0
  248. package/dist/signer/index.d.ts.map +1 -0
  249. package/dist/signer/index.js +7 -0
  250. package/dist/signer/nostr/index.d.ts +4 -0
  251. package/dist/signer/nostr/index.d.ts.map +1 -0
  252. package/dist/signer/nostr/index.js +3 -0
  253. package/dist/signer/nostr/signerNostr.d.ts +72 -0
  254. package/dist/signer/nostr/signerNostr.d.ts.map +1 -0
  255. package/dist/signer/nostr/signerNostr.js +88 -0
  256. package/dist/signer/nostr/signerNostrPrivateKey.d.ts +12 -0
  257. package/dist/signer/nostr/signerNostrPrivateKey.d.ts.map +1 -0
  258. package/dist/signer/nostr/signerNostrPrivateKey.js +28 -0
  259. package/dist/signer/nostr/verify.d.ts +9 -0
  260. package/dist/signer/nostr/verify.d.ts.map +1 -0
  261. package/dist/signer/nostr/verify.js +55 -0
  262. package/dist/signer/signer/index.d.ts +237 -0
  263. package/dist/signer/signer/index.d.ts.map +1 -0
  264. package/dist/signer/signer/index.js +274 -0
  265. package/dist/utils/index.d.ts +97 -0
  266. package/dist/utils/index.d.ts.map +1 -0
  267. package/dist/utils/index.js +55 -0
  268. package/dist.commonjs/address/address.advanced.d.ts +65 -0
  269. package/dist.commonjs/address/address.advanced.d.ts.map +1 -0
  270. package/dist.commonjs/address/address.advanced.js +152 -0
  271. package/dist.commonjs/address/advanced.d.ts +2 -0
  272. package/dist.commonjs/address/advanced.d.ts.map +1 -0
  273. package/dist.commonjs/address/advanced.js +17 -0
  274. package/dist.commonjs/address/index.d.ts +58 -0
  275. package/dist.commonjs/address/index.d.ts.map +1 -0
  276. package/dist.commonjs/address/index.js +82 -0
  277. package/dist.commonjs/advanced.d.ts +3 -0
  278. package/dist.commonjs/advanced.d.ts.map +1 -0
  279. package/dist.commonjs/advanced.js +41 -0
  280. package/dist.commonjs/advancedBarrel.d.ts +7 -0
  281. package/dist.commonjs/advancedBarrel.d.ts.map +1 -0
  282. package/dist.commonjs/advancedBarrel.js +22 -0
  283. package/dist.commonjs/barrel.d.ts +14 -0
  284. package/dist.commonjs/barrel.d.ts.map +1 -0
  285. package/dist.commonjs/barrel.js +29 -0
  286. package/dist.commonjs/bytes/advanced.d.ts +6 -0
  287. package/dist.commonjs/bytes/advanced.d.ts.map +1 -0
  288. package/dist.commonjs/bytes/advanced.js +2 -0
  289. package/dist.commonjs/bytes/index.d.ts +108 -0
  290. package/dist.commonjs/bytes/index.d.ts.map +1 -0
  291. package/dist.commonjs/bytes/index.js +158 -0
  292. package/dist.commonjs/ckb/advanced.d.ts +3 -0
  293. package/dist.commonjs/ckb/advanced.d.ts.map +1 -0
  294. package/dist.commonjs/ckb/advanced.js +18 -0
  295. package/dist.commonjs/ckb/index.d.ts +4 -0
  296. package/dist.commonjs/ckb/index.d.ts.map +1 -0
  297. package/dist.commonjs/ckb/index.js +19 -0
  298. package/dist.commonjs/ckb/script.advanced.d.ts +5 -0
  299. package/dist.commonjs/ckb/script.advanced.d.ts.map +1 -0
  300. package/dist.commonjs/ckb/script.advanced.js +16 -0
  301. package/dist.commonjs/ckb/script.d.ts +143 -0
  302. package/dist.commonjs/ckb/script.d.ts.map +1 -0
  303. package/dist.commonjs/ckb/script.js +173 -0
  304. package/dist.commonjs/ckb/transaction.advanced.d.ts +5 -0
  305. package/dist.commonjs/ckb/transaction.advanced.d.ts.map +1 -0
  306. package/dist.commonjs/ckb/transaction.advanced.js +12 -0
  307. package/dist.commonjs/ckb/transaction.d.ts +893 -0
  308. package/dist.commonjs/ckb/transaction.d.ts.map +1 -0
  309. package/dist.commonjs/ckb/transaction.js +1310 -0
  310. package/dist.commonjs/ckb/transactionLumos.d.ts +30 -0
  311. package/dist.commonjs/ckb/transactionLumos.d.ts.map +1 -0
  312. package/dist.commonjs/ckb/transactionLumos.js +2 -0
  313. package/dist.commonjs/client/advanced.d.ts +6 -0
  314. package/dist.commonjs/client/advanced.d.ts.map +1 -0
  315. package/dist.commonjs/client/advanced.js +21 -0
  316. package/dist.commonjs/client/cache/advanced.d.ts +2 -0
  317. package/dist.commonjs/client/cache/advanced.d.ts.map +1 -0
  318. package/dist.commonjs/client/cache/advanced.js +17 -0
  319. package/dist.commonjs/client/cache/cache.d.ts +91 -0
  320. package/dist.commonjs/client/cache/cache.d.ts.map +1 -0
  321. package/dist.commonjs/client/cache/cache.js +132 -0
  322. package/dist.commonjs/client/cache/index.d.ts +3 -0
  323. package/dist.commonjs/client/cache/index.d.ts.map +1 -0
  324. package/dist.commonjs/client/cache/index.js +18 -0
  325. package/dist.commonjs/client/cache/memory.advanced.d.ts +22 -0
  326. package/dist.commonjs/client/cache/memory.advanced.d.ts.map +1 -0
  327. package/dist.commonjs/client/cache/memory.advanced.js +127 -0
  328. package/dist.commonjs/client/cache/memory.d.ts +44 -0
  329. package/dist.commonjs/client/cache/memory.d.ts.map +1 -0
  330. package/dist.commonjs/client/cache/memory.js +141 -0
  331. package/dist.commonjs/client/client.d.ts +98 -0
  332. package/dist.commonjs/client/client.d.ts.map +1 -0
  333. package/dist.commonjs/client/client.js +327 -0
  334. package/dist.commonjs/client/clientPublicMainnet.advanced.d.ts +3 -0
  335. package/dist.commonjs/client/clientPublicMainnet.advanced.d.ts.map +1 -0
  336. package/dist.commonjs/client/clientPublicMainnet.advanced.js +329 -0
  337. package/dist.commonjs/client/clientPublicMainnet.d.ts +16 -0
  338. package/dist.commonjs/client/clientPublicMainnet.d.ts.map +1 -0
  339. package/dist.commonjs/client/clientPublicMainnet.js +47 -0
  340. package/dist.commonjs/client/clientPublicTestnet.advanced.d.ts +3 -0
  341. package/dist.commonjs/client/clientPublicTestnet.advanced.d.ts.map +1 -0
  342. package/dist.commonjs/client/clientPublicTestnet.advanced.js +339 -0
  343. package/dist.commonjs/client/clientPublicTestnet.d.ts +16 -0
  344. package/dist.commonjs/client/clientPublicTestnet.d.ts.map +1 -0
  345. package/dist.commonjs/client/clientPublicTestnet.js +47 -0
  346. package/dist.commonjs/client/clientTypes.advanced.d.ts +26 -0
  347. package/dist.commonjs/client/clientTypes.advanced.d.ts.map +1 -0
  348. package/dist.commonjs/client/clientTypes.advanced.js +11 -0
  349. package/dist.commonjs/client/clientTypes.d.ts +360 -0
  350. package/dist.commonjs/client/clientTypes.d.ts.map +1 -0
  351. package/dist.commonjs/client/clientTypes.js +278 -0
  352. package/dist.commonjs/client/index.d.ts +7 -0
  353. package/dist.commonjs/client/index.d.ts.map +1 -0
  354. package/dist.commonjs/client/index.js +22 -0
  355. package/dist.commonjs/client/jsonRpc/advanced.d.ts +3 -0
  356. package/dist.commonjs/client/jsonRpc/advanced.d.ts.map +1 -0
  357. package/dist.commonjs/client/jsonRpc/advanced.js +18 -0
  358. package/dist.commonjs/client/jsonRpc/client.d.ts +160 -0
  359. package/dist.commonjs/client/jsonRpc/client.d.ts.map +1 -0
  360. package/dist.commonjs/client/jsonRpc/client.js +224 -0
  361. package/dist.commonjs/client/jsonRpc/index.d.ts +2 -0
  362. package/dist.commonjs/client/jsonRpc/index.d.ts.map +1 -0
  363. package/dist.commonjs/client/jsonRpc/index.js +17 -0
  364. package/dist.commonjs/client/jsonRpc/transformers.d.ts +51 -0
  365. package/dist.commonjs/client/jsonRpc/transformers.d.ts.map +1 -0
  366. package/dist.commonjs/client/jsonRpc/transformers.js +250 -0
  367. package/dist.commonjs/client/jsonRpc/types.d.ts +101 -0
  368. package/dist.commonjs/client/jsonRpc/types.d.ts.map +1 -0
  369. package/dist.commonjs/client/jsonRpc/types.js +2 -0
  370. package/dist.commonjs/fixedPoint/index.d.ts +55 -0
  371. package/dist.commonjs/fixedPoint/index.d.ts.map +1 -0
  372. package/dist.commonjs/fixedPoint/index.js +73 -0
  373. package/dist.commonjs/hasher/advanced.d.ts +2 -0
  374. package/dist.commonjs/hasher/advanced.d.ts.map +1 -0
  375. package/dist.commonjs/hasher/advanced.js +4 -0
  376. package/dist.commonjs/hasher/hasher.d.ts +35 -0
  377. package/dist.commonjs/hasher/hasher.d.ts.map +1 -0
  378. package/dist.commonjs/hasher/hasher.js +2 -0
  379. package/dist.commonjs/hasher/hasherCkb.d.ts +73 -0
  380. package/dist.commonjs/hasher/hasherCkb.d.ts.map +1 -0
  381. package/dist.commonjs/hasher/hasherCkb.js +94 -0
  382. package/dist.commonjs/hasher/hasherKeecak256.d.ts +41 -0
  383. package/dist.commonjs/hasher/hasherKeecak256.d.ts.map +1 -0
  384. package/dist.commonjs/hasher/hasherKeecak256.js +50 -0
  385. package/dist.commonjs/hasher/index.d.ts +4 -0
  386. package/dist.commonjs/hasher/index.d.ts.map +1 -0
  387. package/dist.commonjs/hasher/index.js +19 -0
  388. package/dist.commonjs/hex/index.d.ts +27 -0
  389. package/dist.commonjs/hex/index.d.ts.map +1 -0
  390. package/dist.commonjs/hex/index.js +20 -0
  391. package/dist.commonjs/index.d.ts +3 -0
  392. package/dist.commonjs/index.d.ts.map +1 -0
  393. package/dist.commonjs/index.js +41 -0
  394. package/dist.commonjs/jsonRpc/advanced.d.ts +2 -0
  395. package/dist.commonjs/jsonRpc/advanced.d.ts.map +1 -0
  396. package/dist.commonjs/jsonRpc/advanced.js +17 -0
  397. package/dist.commonjs/jsonRpc/index.d.ts +2 -0
  398. package/dist.commonjs/jsonRpc/index.d.ts.map +1 -0
  399. package/dist.commonjs/jsonRpc/index.js +17 -0
  400. package/dist.commonjs/jsonRpc/requestor.d.ts +49 -0
  401. package/dist.commonjs/jsonRpc/requestor.d.ts.map +1 -0
  402. package/dist.commonjs/jsonRpc/requestor.js +113 -0
  403. package/dist.commonjs/jsonRpc/transports/advanced.d.ts +6 -0
  404. package/dist.commonjs/jsonRpc/transports/advanced.d.ts.map +1 -0
  405. package/dist.commonjs/jsonRpc/transports/advanced.js +21 -0
  406. package/dist.commonjs/jsonRpc/transports/factory.d.ts +6 -0
  407. package/dist.commonjs/jsonRpc/transports/factory.d.ts.map +1 -0
  408. package/dist.commonjs/jsonRpc/transports/factory.js +11 -0
  409. package/dist.commonjs/jsonRpc/transports/fallback.d.ts +8 -0
  410. package/dist.commonjs/jsonRpc/transports/fallback.d.ts.map +1 -0
  411. package/dist.commonjs/jsonRpc/transports/fallback.js +26 -0
  412. package/dist.commonjs/jsonRpc/transports/http.d.ts +8 -0
  413. package/dist.commonjs/jsonRpc/transports/http.d.ts.map +1 -0
  414. package/dist.commonjs/jsonRpc/transports/http.js +26 -0
  415. package/dist.commonjs/jsonRpc/transports/transport.d.ts +18 -0
  416. package/dist.commonjs/jsonRpc/transports/transport.d.ts.map +1 -0
  417. package/dist.commonjs/jsonRpc/transports/transport.js +2 -0
  418. package/dist.commonjs/jsonRpc/transports/webSocket.d.ts +11 -0
  419. package/dist.commonjs/jsonRpc/transports/webSocket.d.ts.map +1 -0
  420. package/dist.commonjs/jsonRpc/transports/webSocket.js +94 -0
  421. package/dist.commonjs/keystore/index.d.ts +31 -0
  422. package/dist.commonjs/keystore/index.d.ts.map +1 -0
  423. package/dist.commonjs/keystore/index.js +110 -0
  424. package/dist.commonjs/molecule/barrel.d.ts +4 -0
  425. package/dist.commonjs/molecule/barrel.d.ts.map +1 -0
  426. package/dist.commonjs/molecule/barrel.js +19 -0
  427. package/dist.commonjs/molecule/codec.d.ts +120 -0
  428. package/dist.commonjs/molecule/codec.d.ts.map +1 -0
  429. package/dist.commonjs/molecule/codec.js +483 -0
  430. package/dist.commonjs/molecule/entity.d.ts +119 -0
  431. package/dist.commonjs/molecule/entity.d.ts.map +1 -0
  432. package/dist.commonjs/molecule/entity.js +139 -0
  433. package/dist.commonjs/molecule/index.d.ts +2 -0
  434. package/dist.commonjs/molecule/index.d.ts.map +1 -0
  435. package/dist.commonjs/molecule/index.js +37 -0
  436. package/dist.commonjs/molecule/predefined.d.ts +57 -0
  437. package/dist.commonjs/molecule/predefined.d.ts.map +1 -0
  438. package/dist.commonjs/molecule/predefined.js +87 -0
  439. package/dist.commonjs/num/index.d.ts +148 -0
  440. package/dist.commonjs/num/index.d.ts.map +1 -0
  441. package/dist.commonjs/num/index.js +200 -0
  442. package/dist.commonjs/package.json +3 -0
  443. package/dist.commonjs/signer/btc/index.d.ts +4 -0
  444. package/dist.commonjs/signer/btc/index.d.ts.map +1 -0
  445. package/dist.commonjs/signer/btc/index.js +19 -0
  446. package/dist.commonjs/signer/btc/signerBtc.d.ts +59 -0
  447. package/dist.commonjs/signer/btc/signerBtc.d.ts.map +1 -0
  448. package/dist.commonjs/signer/btc/signerBtc.js +87 -0
  449. package/dist.commonjs/signer/btc/signerBtcPublicKeyReadonly.d.ts +55 -0
  450. package/dist.commonjs/signer/btc/signerBtcPublicKeyReadonly.d.ts.map +1 -0
  451. package/dist.commonjs/signer/btc/signerBtcPublicKeyReadonly.js +65 -0
  452. package/dist.commonjs/signer/btc/verify.d.ts +19 -0
  453. package/dist.commonjs/signer/btc/verify.d.ts.map +1 -0
  454. package/dist.commonjs/signer/btc/verify.js +42 -0
  455. package/dist.commonjs/signer/ckb/index.d.ts +6 -0
  456. package/dist.commonjs/signer/ckb/index.d.ts.map +1 -0
  457. package/dist.commonjs/signer/ckb/index.js +21 -0
  458. package/dist.commonjs/signer/ckb/signerCkbPrivateKey.d.ts +16 -0
  459. package/dist.commonjs/signer/ckb/signerCkbPrivateKey.d.ts.map +1 -0
  460. package/dist.commonjs/signer/ckb/signerCkbPrivateKey.js +46 -0
  461. package/dist.commonjs/signer/ckb/signerCkbPublicKey.d.ts +27 -0
  462. package/dist.commonjs/signer/ckb/signerCkbPublicKey.d.ts.map +1 -0
  463. package/dist.commonjs/signer/ckb/signerCkbPublicKey.js +109 -0
  464. package/dist.commonjs/signer/ckb/signerCkbScriptReadonly.d.ts +56 -0
  465. package/dist.commonjs/signer/ckb/signerCkbScriptReadonly.d.ts.map +1 -0
  466. package/dist.commonjs/signer/ckb/signerCkbScriptReadonly.js +70 -0
  467. package/dist.commonjs/signer/ckb/verifyCkbSecp256k1.d.ts +11 -0
  468. package/dist.commonjs/signer/ckb/verifyCkbSecp256k1.d.ts.map +1 -0
  469. package/dist.commonjs/signer/ckb/verifyCkbSecp256k1.js +24 -0
  470. package/dist.commonjs/signer/ckb/verifyJoyId.d.ts +6 -0
  471. package/dist.commonjs/signer/ckb/verifyJoyId.d.ts.map +1 -0
  472. package/dist.commonjs/signer/ckb/verifyJoyId.js +19 -0
  473. package/dist.commonjs/signer/doge/index.d.ts +5 -0
  474. package/dist.commonjs/signer/doge/index.d.ts.map +1 -0
  475. package/dist.commonjs/signer/doge/index.js +20 -0
  476. package/dist.commonjs/signer/doge/signerDoge.d.ts +52 -0
  477. package/dist.commonjs/signer/doge/signerDoge.d.ts.map +1 -0
  478. package/dist.commonjs/signer/doge/signerDoge.js +89 -0
  479. package/dist.commonjs/signer/doge/signerDogeAddressReadonly.d.ts +41 -0
  480. package/dist.commonjs/signer/doge/signerDogeAddressReadonly.d.ts.map +1 -0
  481. package/dist.commonjs/signer/doge/signerDogeAddressReadonly.js +49 -0
  482. package/dist.commonjs/signer/doge/signerDogePrivateKey.d.ts +52 -0
  483. package/dist.commonjs/signer/doge/signerDogePrivateKey.d.ts.map +1 -0
  484. package/dist.commonjs/signer/doge/signerDogePrivateKey.js +72 -0
  485. package/dist.commonjs/signer/doge/verify.d.ts +6 -0
  486. package/dist.commonjs/signer/doge/verify.d.ts.map +1 -0
  487. package/dist.commonjs/signer/doge/verify.js +22 -0
  488. package/dist.commonjs/signer/dummy/alwaysError.d.ts +12 -0
  489. package/dist.commonjs/signer/dummy/alwaysError.d.ts.map +1 -0
  490. package/dist.commonjs/signer/dummy/alwaysError.js +17 -0
  491. package/dist.commonjs/signer/dummy/dummy.d.ts +15 -0
  492. package/dist.commonjs/signer/dummy/dummy.d.ts.map +1 -0
  493. package/dist.commonjs/signer/dummy/dummy.js +26 -0
  494. package/dist.commonjs/signer/dummy/index.d.ts +4 -0
  495. package/dist.commonjs/signer/dummy/index.d.ts.map +1 -0
  496. package/dist.commonjs/signer/dummy/index.js +19 -0
  497. package/dist.commonjs/signer/dummy/openLink.d.ts +12 -0
  498. package/dist.commonjs/signer/dummy/openLink.d.ts.map +1 -0
  499. package/dist.commonjs/signer/dummy/openLink.js +17 -0
  500. package/dist.commonjs/signer/evm/index.d.ts +4 -0
  501. package/dist.commonjs/signer/evm/index.d.ts.map +1 -0
  502. package/dist.commonjs/signer/evm/index.js +19 -0
  503. package/dist.commonjs/signer/evm/signerEvm.d.ts +59 -0
  504. package/dist.commonjs/signer/evm/signerEvm.d.ts.map +1 -0
  505. package/dist.commonjs/signer/evm/signerEvm.js +143 -0
  506. package/dist.commonjs/signer/evm/signerEvmAddressReadonly.d.ts +47 -0
  507. package/dist.commonjs/signer/evm/signerEvmAddressReadonly.d.ts.map +1 -0
  508. package/dist.commonjs/signer/evm/signerEvmAddressReadonly.js +55 -0
  509. package/dist.commonjs/signer/evm/verify.d.ts +6 -0
  510. package/dist.commonjs/signer/evm/verify.d.ts.map +1 -0
  511. package/dist.commonjs/signer/evm/verify.js +12 -0
  512. package/dist.commonjs/signer/index.d.ts +8 -0
  513. package/dist.commonjs/signer/index.d.ts.map +1 -0
  514. package/dist.commonjs/signer/index.js +23 -0
  515. package/dist.commonjs/signer/nostr/index.d.ts +4 -0
  516. package/dist.commonjs/signer/nostr/index.d.ts.map +1 -0
  517. package/dist.commonjs/signer/nostr/index.js +19 -0
  518. package/dist.commonjs/signer/nostr/signerNostr.d.ts +72 -0
  519. package/dist.commonjs/signer/nostr/signerNostr.d.ts.map +1 -0
  520. package/dist.commonjs/signer/nostr/signerNostr.js +92 -0
  521. package/dist.commonjs/signer/nostr/signerNostrPrivateKey.d.ts +12 -0
  522. package/dist.commonjs/signer/nostr/signerNostrPrivateKey.d.ts.map +1 -0
  523. package/dist.commonjs/signer/nostr/signerNostrPrivateKey.js +32 -0
  524. package/dist.commonjs/signer/nostr/verify.d.ts +9 -0
  525. package/dist.commonjs/signer/nostr/verify.d.ts.map +1 -0
  526. package/dist.commonjs/signer/nostr/verify.js +60 -0
  527. package/dist.commonjs/signer/signer/index.d.ts +237 -0
  528. package/dist.commonjs/signer/signer/index.d.ts.map +1 -0
  529. package/dist.commonjs/signer/signer/index.js +280 -0
  530. package/dist.commonjs/utils/index.d.ts +97 -0
  531. package/dist.commonjs/utils/index.d.ts.map +1 -0
  532. package/dist.commonjs/utils/index.js +62 -0
  533. package/jest.config.js +5 -0
  534. package/package.json +80 -0
  535. package/src/address/address.advanced.ts +182 -0
  536. package/src/address/advanced.ts +1 -0
  537. package/src/address/index.ts +127 -0
  538. package/src/advanced.ts +2 -0
  539. package/src/advancedBarrel.ts +6 -0
  540. package/src/barrel.ts +13 -0
  541. package/src/bytes/advanced.ts +14 -0
  542. package/src/bytes/index.ts +184 -0
  543. package/src/ckb/advanced.ts +2 -0
  544. package/src/ckb/index.ts +3 -0
  545. package/src/ckb/script.advanced.ts +15 -0
  546. package/src/ckb/script.ts +214 -0
  547. package/src/ckb/transaction.advanced.ts +11 -0
  548. package/src/ckb/transaction.ts +1781 -0
  549. package/src/ckb/transactionLumos.ts +27 -0
  550. package/src/client/advanced.ts +5 -0
  551. package/src/client/cache/advanced.ts +1 -0
  552. package/src/client/cache/cache.ts +188 -0
  553. package/src/client/cache/index.ts +2 -0
  554. package/src/client/cache/memory.advanced.ts +190 -0
  555. package/src/client/cache/memory.ts +219 -0
  556. package/src/client/client.ts +703 -0
  557. package/src/client/clientPublicMainnet.advanced.ts +372 -0
  558. package/src/client/clientPublicMainnet.ts +54 -0
  559. package/src/client/clientPublicTestnet.advanced.ts +384 -0
  560. package/src/client/clientPublicTestnet.ts +54 -0
  561. package/src/client/clientTypes.advanced.ts +30 -0
  562. package/src/client/clientTypes.ts +590 -0
  563. package/src/client/index.ts +6 -0
  564. package/src/client/jsonRpc/advanced.ts +2 -0
  565. package/src/client/jsonRpc/client.ts +397 -0
  566. package/src/client/jsonRpc/index.ts +1 -0
  567. package/src/client/jsonRpc/transformers.ts +358 -0
  568. package/src/client/jsonRpc/types.ts +115 -0
  569. package/src/fixedPoint/index.ts +92 -0
  570. package/src/hasher/advanced.ts +1 -0
  571. package/src/hasher/hasher.ts +38 -0
  572. package/src/hasher/hasherCkb.ts +107 -0
  573. package/src/hasher/hasherKeecak256.ts +55 -0
  574. package/src/hasher/index.ts +3 -0
  575. package/src/hex/index.ts +30 -0
  576. package/src/index.ts +2 -0
  577. package/src/jsonRpc/advanced.ts +1 -0
  578. package/src/jsonRpc/index.ts +1 -0
  579. package/src/jsonRpc/requestor.ts +166 -0
  580. package/src/jsonRpc/transports/advanced.ts +5 -0
  581. package/src/jsonRpc/transports/factory.ts +10 -0
  582. package/src/jsonRpc/transports/fallback.ts +27 -0
  583. package/src/jsonRpc/transports/http.ts +28 -0
  584. package/src/jsonRpc/transports/transport.ts +18 -0
  585. package/src/jsonRpc/transports/webSocket.ts +114 -0
  586. package/src/keystore/index.ts +162 -0
  587. package/src/molecule/barrel.ts +3 -0
  588. package/src/molecule/codec.ts +651 -0
  589. package/src/molecule/entity.ts +183 -0
  590. package/src/molecule/index.ts +1 -0
  591. package/src/molecule/predefined.ts +97 -0
  592. package/src/num/index.ts +217 -0
  593. package/src/signer/btc/index.ts +3 -0
  594. package/src/signer/btc/signerBtc.ts +126 -0
  595. package/src/signer/btc/signerBtcPublicKeyReadonly.ts +73 -0
  596. package/src/signer/btc/verify.ts +49 -0
  597. package/src/signer/ckb/index.ts +5 -0
  598. package/src/signer/ckb/signerCkbPrivateKey.ts +65 -0
  599. package/src/signer/ckb/signerCkbPublicKey.ts +151 -0
  600. package/src/signer/ckb/signerCkbScriptReadonly.ts +78 -0
  601. package/src/signer/ckb/verifyCkbSecp256k1.ts +33 -0
  602. package/src/signer/ckb/verifyJoyId.ts +27 -0
  603. package/src/signer/doge/index.ts +4 -0
  604. package/src/signer/doge/signerDoge.ts +116 -0
  605. package/src/signer/doge/signerDogeAddressReadonly.ts +52 -0
  606. package/src/signer/doge/signerDogePrivateKey.ts +97 -0
  607. package/src/signer/doge/verify.ts +40 -0
  608. package/src/signer/dummy/alwaysError.ts +20 -0
  609. package/src/signer/dummy/dummy.ts +31 -0
  610. package/src/signer/dummy/index.ts +3 -0
  611. package/src/signer/dummy/openLink.ts +20 -0
  612. package/src/signer/evm/index.ts +3 -0
  613. package/src/signer/evm/signerEvm.ts +259 -0
  614. package/src/signer/evm/signerEvmAddressReadonly.ts +60 -0
  615. package/src/signer/evm/verify.ts +19 -0
  616. package/src/signer/index.ts +7 -0
  617. package/src/signer/nostr/index.ts +3 -0
  618. package/src/signer/nostr/signerNostr.ts +141 -0
  619. package/src/signer/nostr/signerNostrPrivateKey.ts +37 -0
  620. package/src/signer/nostr/verify.ts +72 -0
  621. package/src/signer/signer/index.ts +468 -0
  622. package/src/utils/index.ts +198 -0
  623. package/typedoc.json +6 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,375 @@
1
+ # @ckb-ccc/core
2
+
3
+ ## 0.0.0-canary-20250214032000
4
+
5
+ ### Minor Changes
6
+
7
+ - [#159](https://github.com/ckb-devrel/ccc/pull/159) [`80e605d`](https://github.com/ckb-devrel/ccc/commit/80e605d0645e87b4e8b5be85c63322f7a3926e38) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): stringify util
8
+
9
+ - [#158](https://github.com/ckb-devrel/ccc/pull/158) [`d584059`](https://github.com/ckb-devrel/ccc/commit/d584059644e8bcd3a0ea8b0314fdcbb68ee66013) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): more rpc calls cache
10
+
11
+ - [#153](https://github.com/ckb-devrel/ccc/pull/153) [`1e88ad8`](https://github.com/ckb-devrel/ccc/commit/1e88ad8743428b46b28fe790bd559b96df8a6ce4) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): fee rate checks
12
+
13
+ - [#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
14
+
15
+ ### Patch Changes
16
+
17
+ - [#153](https://github.com/ckb-devrel/ccc/pull/153) [`def62a0`](https://github.com/ckb-devrel/ccc/commit/def62a08bf908c6a21fe91c8db2c60848a2ada52) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(core): uncatched websocket error
18
+
19
+ - [#159](https://github.com/ckb-devrel/ccc/pull/159) [`d7728d9`](https://github.com/ckb-devrel/ccc/commit/d7728d9edb46c9c5a2bfeb342fc68a8b1c0fec5d) Thanks [@Hanssen0](https://github.com/Hanssen0)! - chore(core): remove ankr public node from default
20
+
21
+ ## 1.5.0
22
+
23
+ ### Minor Changes
24
+
25
+ - [#141](https://github.com/ckb-devrel/ccc/pull/141) [`28c211d`](https://github.com/ckb-devrel/ccc/commit/28c211d839a2d2305eca56e82ba7da144aa3df4a) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): TransportFallback
26
+
27
+ ## 1.4.0
28
+
29
+ ### Minor Changes
30
+
31
+ - [#140](https://github.com/ckb-devrel/ccc/pull/140) [`f429087`](https://github.com/ckb-devrel/ccc/commit/f4290874dfab3fe58844e5169673c5d47bda64e3) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): SignerNostrPrivateKey
32
+
33
+ ### Patch Changes
34
+
35
+ - [#138](https://github.com/ckb-devrel/ccc/pull/138) [`3fdb2c4`](https://github.com/ckb-devrel/ccc/commit/3fdb2c477d0b2766b231e436b8f396f047b02634) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(core): codec should throw if byteLength mismatch
36
+
37
+ ## 1.3.1
38
+
39
+ ### Patch Changes
40
+
41
+ - [`a48cccf`](https://github.com/ckb-devrel/ccc/commit/a48cccfae3ce6b3456a5eb863f207e7e5a6e568f) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(core): numFrom("0x") should be zero
42
+
43
+ ## 1.3.0
44
+
45
+ ### Minor 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
+ - [#131](https://github.com/ckb-devrel/ccc/pull/131) [`c2c4c26`](https://github.com/ckb-devrel/ccc/commit/c2c4c264e04461948e4b913b2f22054e6032ddc8) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): RequestorJsonRpc
50
+
51
+ - [#131](https://github.com/ckb-devrel/ccc/pull/131) [`b6a73fa`](https://github.com/ckb-devrel/ccc/commit/b6a73fa9628ebdff51cb8f246309654cd53e36f2) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): extra molecule codecs
52
+
53
+ - [#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: SSRI & UDT SDK
54
+
55
+ ### Patch Changes
56
+
57
+ - [#131](https://github.com/ckb-devrel/ccc/pull/131) [`4dbf4fd`](https://github.com/ckb-devrel/ccc/commit/4dbf4fd8021cf14d05282706a7667ea7d108fb09) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(core): numFrom("0x") should be 0
58
+
59
+ ## 1.2.3
60
+
61
+ ### Patch Changes
62
+
63
+ - [#127](https://github.com/ckb-devrel/ccc/pull/127) [`01263bd`](https://github.com/ckb-devrel/ccc/commit/01263bd8c601fa8fcdfa24be52601716e1864843) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix: numFromBytes modifies the args
64
+
65
+ ## 1.2.2
66
+
67
+ ### Patch Changes
68
+
69
+ - [#120](https://github.com/ckb-devrel/ccc/pull/120) [`7886e3d`](https://github.com/ckb-devrel/ccc/commit/7886e3d89e9ca8f3514a2044c6dd4e8ec6b49933) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix: support ws:// rpc
70
+
71
+ ## 1.2.1
72
+
73
+ ### Patch Changes
74
+
75
+ - [#118](https://github.com/ckb-devrel/ccc/pull/118) [`94e2618`](https://github.com/ckb-devrel/ccc/commit/94e26182515e09d6086ec5b653d091f117a499e6) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix: client concurrent should be FIFO
76
+
77
+ ## 1.2.0
78
+
79
+ ### Minor Changes
80
+
81
+ - [#116](https://github.com/ckb-devrel/ccc/pull/116) [`128e87b`](https://github.com/ckb-devrel/ccc/commit/128e87b5ca3e97bfe7842e76f786aa6aec010797) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat: Client LRU cache
82
+
83
+ ## 1.1.1
84
+
85
+ ### Patch Changes
86
+
87
+ - [#114](https://github.com/ckb-devrel/ccc/pull/114) [`925991c`](https://github.com/ckb-devrel/ccc/commit/925991c8a24b1f34667e30b28b69812e936e3928) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix: udtBalanceFrom
88
+
89
+ ## 1.1.0
90
+
91
+ ### Minor Changes
92
+
93
+ - [#112](https://github.com/ckb-devrel/ccc/pull/112) [`ddc0a28`](https://github.com/ckb-devrel/ccc/commit/ddc0a281c3d1dfa6ebc990dae92994f026dfddcc) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat: set maxConcurrent for ClientJsonRpc
94
+
95
+ ## 1.0.1
96
+
97
+ ### Patch Changes
98
+
99
+ - [#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
100
+
101
+ - [#109](https://github.com/ckb-devrel/ccc/pull/109) [`94caaca`](https://github.com/ckb-devrel/ccc/commit/94caaca11c63752a25282d42f51161c94397dec6) Thanks [@Hanssen0](https://github.com/Hanssen0)! - refactor: remove redundant code
102
+
103
+ ## 1.0.0
104
+
105
+ ### Major Changes
106
+
107
+ - [#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
108
+
109
+ ## 0.1.2
110
+
111
+ ### Patch Changes
112
+
113
+ - [#103](https://github.com/ckb-devrel/ccc/pull/103) [`c1cb910`](https://github.com/ckb-devrel/ccc/commit/c1cb91091780c7b33fbbd683ef8edc9f11452ecd) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix: ccc core commonjs
114
+
115
+ ## 0.1.1
116
+
117
+ ### Patch Changes
118
+
119
+ - [#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
120
+
121
+ ## 0.1.0
122
+
123
+ ### Minor Changes
124
+
125
+ - [#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
126
+
127
+ ### Patch Changes
128
+
129
+ - [#72](https://github.com/ckb-devrel/ccc/pull/72) [`a3d5359`](https://github.com/ckb-devrel/ccc/commit/a3d53595f6dd11f2f59cdf0086b3d7ce558a2fdd) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(core): reopen websocket
130
+
131
+ - [#69](https://github.com/ckb-devrel/ccc/pull/69) [`8824ff2`](https://github.com/ckb-devrel/ccc/commit/8824ff27af3b76186f1a7d6db8c907cd66f09d6a) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): Client.waitTransaction
132
+
133
+ - [#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
134
+ feat: spore searcher
135
+
136
+ - [#70](https://github.com/ckb-devrel/ccc/pull/70) [`acfc050`](https://github.com/ckb-devrel/ccc/commit/acfc0502cd6beb48b9310dec8411dcd630507366) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(core): websocket transport
137
+
138
+ - [#64](https://github.com/ckb-devrel/ccc/pull/64) [`1720d5a`](https://github.com/ckb-devrel/ccc/commit/1720d5a398543f1c6e24763eeaf15d84cd2214bf) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): ckb proxy locks
139
+
140
+ - [#96](https://github.com/ckb-devrel/ccc/pull/96) [`e63a06e`](https://github.com/ckb-devrel/ccc/commit/e63a06ee75ac8595208d216dec88a4228c465e23) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat: support doge signer
141
+
142
+ - [#67](https://github.com/ckb-devrel/ccc/pull/67) [`c092988`](https://github.com/ckb-devrel/ccc/commit/c092988e7765b9ac79498d6bd72a6a2f62859b6f) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): auto fee rate
143
+
144
+ - [`50f2ce0`](https://github.com/ckb-devrel/ccc/commit/50f2ce08e74cb3fbeae926267d42e28b426fd7f4) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(core): missing mol types
145
+
146
+ - [#92](https://github.com/ckb-devrel/ccc/pull/92) [`4709384`](https://github.com/ckb-devrel/ccc/commit/4709384e37188991cb937b16f99f47ca82c912b8) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix: `epochFromHex` failed if the arg is not 7 bytes
147
+
148
+ ## 0.1.0-alpha.7
149
+
150
+ ### Patch Changes
151
+
152
+ - [#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
153
+ feat: spore searcher
154
+
155
+ ## 0.1.0-alpha.6
156
+
157
+ ### Patch Changes
158
+
159
+ - [#92](https://github.com/ckb-devrel/ccc/pull/92) [`4709384`](https://github.com/ckb-devrel/ccc/commit/4709384e37188991cb937b16f99f47ca82c912b8) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix: `epochFromHex` failed if the arg is not 7 bytes
160
+
161
+ ## 0.1.0-alpha.5
162
+
163
+ ### Patch Changes
164
+
165
+ - [`50f2ce0`](https://github.com/ckb-devrel/ccc/commit/50f2ce08e74cb3fbeae926267d42e28b426fd7f4) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(core): missing mol types
166
+
167
+ ## 0.1.0-alpha.4
168
+
169
+ ### Minor Changes
170
+
171
+ - [#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
172
+
173
+ ## 0.0.16-alpha.3
174
+
175
+ ### Patch Changes
176
+
177
+ - [#72](https://github.com/ckb-devrel/ccc/pull/72) [`a3d5359`](https://github.com/ckb-devrel/ccc/commit/a3d53595f6dd11f2f59cdf0086b3d7ce558a2fdd) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(core): reopen websocket
178
+
179
+ ## 0.0.16-alpha.2
180
+
181
+ ### Patch Changes
182
+
183
+ - [#70](https://github.com/ckb-devrel/ccc/pull/70) [`acfc050`](https://github.com/ckb-devrel/ccc/commit/acfc0502cd6beb48b9310dec8411dcd630507366) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(core): websocket transport
184
+
185
+ ## 0.0.16-alpha.1
186
+
187
+ ### Patch Changes
188
+
189
+ - [#69](https://github.com/ckb-devrel/ccc/pull/69) [`8824ff2`](https://github.com/ckb-devrel/ccc/commit/8824ff27af3b76186f1a7d6db8c907cd66f09d6a) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): Client.waitTransaction
190
+
191
+ - [#67](https://github.com/ckb-devrel/ccc/pull/67) [`c092988`](https://github.com/ckb-devrel/ccc/commit/c092988e7765b9ac79498d6bd72a6a2f62859b6f) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): auto fee rate
192
+
193
+ ## 0.0.16-alpha.0
194
+
195
+ ### Patch Changes
196
+
197
+ - [#64](https://github.com/ckb-devrel/ccc/pull/64) [`1720d5a`](https://github.com/ckb-devrel/ccc/commit/1720d5a398543f1c6e24763eeaf15d84cd2214bf) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): ckb proxy locks
198
+
199
+ ## 0.0.15
200
+
201
+ ### Patch Changes
202
+
203
+ - [`8f2560a`](https://github.com/ckb-devrel/ccc/commit/8f2560ab0e5619654fff7c5eacda8425385f908e) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(core): typed client errors
204
+
205
+ ## 0.0.14
206
+
207
+ ### Patch Changes
208
+
209
+ - [`5e942f8`](https://github.com/ckb-devrel/ccc/commit/5e942f8f1ed678abdb7ab9716f5449f0714cea53) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(core): numLeFromBytes should not modify args
210
+
211
+ - [`f5b5938`](https://github.com/ckb-devrel/ccc/commit/f5b5938ab8f9c0a338dfd6765fe717f7ad1b1dd8) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): ErrorClient types
212
+
213
+ - ErrorClientRBFRejected
214
+ - ErrorClientDuplicatedTransaction
215
+
216
+ - [#56](https://github.com/ckb-devrel/ccc/pull/56) [`f13f4d3`](https://github.com/ckb-devrel/ccc/commit/f13f4d319ca66b571029a65e945e3a038bfeea25) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): Signer.findTransactions
217
+
218
+ - [#50](https://github.com/ckb-devrel/ccc/pull/50) [`7ba62a0`](https://github.com/ckb-devrel/ccc/commit/7ba62a056f17808fe5684786c00c2dff80bb7d1d) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(core): jsonrpc id conflict
219
+
220
+ - [`2164efd`](https://github.com/ckb-devrel/ccc/commit/2164efd6d834c1917ad5f4a514dc25941f937185) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): Support ACP addresses for private key signer
221
+
222
+ - [`e5bd2ad`](https://github.com/ckb-devrel/ccc/commit/e5bd2ad5de4b42a22c422ecfc42056750f69b88b) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(core): since encoding
223
+
224
+ - [#48](https://github.com/ckb-devrel/ccc/pull/48) [`aae3e06`](https://github.com/ckb-devrel/ccc/commit/aae3e0679fb940dd8c12ac9be12a4b53277a339d) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): readable client error
225
+
226
+ ## 0.0.14-alpha.2
227
+
228
+ ### Patch Changes
229
+
230
+ - [#50](https://github.com/ckb-devrel/ccc/pull/50) [`7ba62a0`](https://github.com/ckb-devrel/ccc/commit/7ba62a056f17808fe5684786c00c2dff80bb7d1d) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(core): jsonrpc id conflict
231
+
232
+ ## 0.0.14-alpha.1
233
+
234
+ ### Patch Changes
235
+
236
+ - [`5e942f8`](https://github.com/ckb-devrel/ccc/commit/5e942f8f1ed678abdb7ab9716f5449f0714cea53) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(core): numLeFromBytes should not modify args
237
+
238
+ - [`e5bd2ad`](https://github.com/ckb-devrel/ccc/commit/e5bd2ad5de4b42a22c422ecfc42056750f69b88b) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(core): since encoding
239
+
240
+ - [#48](https://github.com/ckb-devrel/ccc/pull/48) [`aae3e06`](https://github.com/ckb-devrel/ccc/commit/aae3e0679fb940dd8c12ac9be12a4b53277a339d) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): readable client error
241
+
242
+ ## 0.0.14-alpha.0
243
+
244
+ ### Patch Changes
245
+
246
+ - [`f5b5938`](https://github.com/ckb-devrel/ccc/commit/f5b5938ab8f9c0a338dfd6765fe717f7ad1b1dd8) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): ErrorClient types
247
+
248
+ - ErrorClientRBFRejected
249
+ - ErrorClientDuplicatedTransaction
250
+
251
+ - [`2164efd`](https://github.com/ckb-devrel/ccc/commit/2164efd6d834c1917ad5f4a514dc25941f937185) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): Support ACP addresses for private key signer
252
+
253
+ ## 0.0.13
254
+
255
+ ### Patch Changes
256
+
257
+ - [`3378e85`](https://github.com/ckb-devrel/ccc/commit/3378e85b32797f5cdc1943b9ecaca1fd1d9fad5e) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): web socket
258
+
259
+ - [`8629449`](https://github.com/ckb-devrel/ccc/commit/86294490e76fc2a1cee20f827883e02fceca6e8b) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): ClientCache.clear
260
+
261
+ replaced ClientCache.revertTransactions
262
+
263
+ - [`6d62032`](https://github.com/ckb-devrel/ccc/commit/6d620326f42f8c48eff9deb95578cf28d7bf5c97) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(core): recordCells should not add usableCells
264
+
265
+ - [`3658797`](https://github.com/ckb-devrel/ccc/commit/3658797e67c42c56b20fa66481d0455ed019e69f) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): node.js websocket
266
+
267
+ - [#25](https://github.com/ckb-devrel/ccc/pull/25) [`69c10fd`](https://github.com/ckb-devrel/ccc/commit/69c10fdfcd507433c13b15d17015dca4687afb97) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(utxo-global): switchNetwork
268
+
269
+ - [`600cc13`](https://github.com/ckb-devrel/ccc/commit/600cc137ac6eb7c5b2533670de6df29d82f1b9e1) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): extra infos in the response of getTransaction
270
+
271
+ - blockNumber
272
+ - blockHash
273
+ - cycles
274
+ - reason (When failed)
275
+ - txIndex (After CKB 0.118)
276
+
277
+ - [`642f731`](https://github.com/ckb-devrel/ccc/commit/642f7317f4951ef801f1245aea96c40b4b6fb73e) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): custom ClientCache
278
+
279
+ - [`96dbb61`](https://github.com/ckb-devrel/ccc/commit/96dbb6107d2071b9383350ddd578557746227054) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): custom client cache
280
+
281
+ - [`0462a4e`](https://github.com/ckb-devrel/ccc/commit/0462a4ee101926f0da857173626dc4ab879e3b56) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): Client.getCellLive
282
+
283
+ - [`52156f9`](https://github.com/ckb-devrel/ccc/commit/52156f9df9cae9e0b71b77b49cda0e4d73e76142) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): ClientCache.revertTransaction
284
+
285
+ - [`63606db`](https://github.com/ckb-devrel/ccc/commit/63606db908f95bfc857430083932144d1ef4deef) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(coree): typed errors
286
+
287
+ - [`44c7fee`](https://github.com/ckb-devrel/ccc/commit/44c7feed37369836268fba21884418682f15254b) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(core): completeInputs
288
+
289
+ - [`1043c2b`](https://github.com/ckb-devrel/ccc/commit/1043c2bc211ec283b88dba3b81feef98e4185c0e) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): nervos dao script
290
+
291
+ - [`079e20e`](https://github.com/ckb-devrel/ccc/commit/079e20ef14cf9a7c06bbaddf3e92cbfbb005da11) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): more APIs. Since parsing.
292
+
293
+ - [`1f999f8`](https://github.com/ckb-devrel/ccc/commit/1f999f854beb255b3cd9dbbc5a7268e75442b3db) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): ClientCache.markTransactions
294
+
295
+ - [`a69a9dc`](https://github.com/ckb-devrel/ccc/commit/a69a9dc0c722f7b4cfa36b2ae8ecba4dcde0db90) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(core): completeInputsAll
296
+
297
+ - [`ed154d1`](https://github.com/ckb-devrel/ccc/commit/ed154d189e239907ad686ec51ac8133b6d5eb895) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): Signer.findCells
298
+
299
+ ## 0.0.13-alpha.8
300
+
301
+ ### Patch Changes
302
+
303
+ - [`8629449`](https://github.com/ckb-devrel/ccc/commit/86294490e76fc2a1cee20f827883e02fceca6e8b) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): ClientCache.clear
304
+
305
+ replaced ClientCache.revertTransactions
306
+
307
+ - [`52156f9`](https://github.com/ckb-devrel/ccc/commit/52156f9df9cae9e0b71b77b49cda0e4d73e76142) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): ClientCache.revertTransaction
308
+
309
+ - [`63606db`](https://github.com/ckb-devrel/ccc/commit/63606db908f95bfc857430083932144d1ef4deef) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(coree): typed errors
310
+
311
+ ## 0.0.13-alpha.7
312
+
313
+ ### Patch Changes
314
+
315
+ - [`1043c2b`](https://github.com/ckb-devrel/ccc/commit/1043c2bc211ec283b88dba3b81feef98e4185c0e) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): nervos dao script
316
+
317
+ - [`079e20e`](https://github.com/ckb-devrel/ccc/commit/079e20ef14cf9a7c06bbaddf3e92cbfbb005da11) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): more APIs. Since parsing.
318
+
319
+ - [`ed154d1`](https://github.com/ckb-devrel/ccc/commit/ed154d189e239907ad686ec51ac8133b6d5eb895) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): Signer.findCells
320
+
321
+ ## 0.0.13-alpha.6
322
+
323
+ ### Patch Changes
324
+
325
+ - [#25](https://github.com/ckb-devrel/ccc/pull/25) [`69c10fd`](https://github.com/ckb-devrel/ccc/commit/69c10fdfcd507433c13b15d17015dca4687afb97) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(utxo-global): switchNetwork
326
+
327
+ - [`44c7fee`](https://github.com/ckb-devrel/ccc/commit/44c7feed37369836268fba21884418682f15254b) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(core): completeInputs
328
+
329
+ ## 0.0.13-alpha.5
330
+
331
+ ### Patch Changes
332
+
333
+ - [`6d62032`](https://github.com/ckb-devrel/ccc/commit/6d620326f42f8c48eff9deb95578cf28d7bf5c97) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(core): recordCells should not add usableCells
334
+
335
+ ## 0.0.13-alpha.4
336
+
337
+ ### Patch Changes
338
+
339
+ - [`3658797`](https://github.com/ckb-devrel/ccc/commit/3658797e67c42c56b20fa66481d0455ed019e69f) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): node.js websocket
340
+
341
+ - [`642f731`](https://github.com/ckb-devrel/ccc/commit/642f7317f4951ef801f1245aea96c40b4b6fb73e) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): custom ClientCache
342
+
343
+ ## 0.0.13-alpha.3
344
+
345
+ ### Patch Changes
346
+
347
+ - [`1f999f8`](https://github.com/ckb-devrel/ccc/commit/1f999f854beb255b3cd9dbbc5a7268e75442b3db) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): ClientCache.markTransactions
348
+
349
+ ## 0.0.13-alpha.2
350
+
351
+ ### Patch Changes
352
+
353
+ - [`96dbb61`](https://github.com/ckb-devrel/ccc/commit/96dbb6107d2071b9383350ddd578557746227054) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): custom client cache
354
+
355
+ ## 0.0.13-alpha.1
356
+
357
+ ### Patch Changes
358
+
359
+ - [`3378e85`](https://github.com/ckb-devrel/ccc/commit/3378e85b32797f5cdc1943b9ecaca1fd1d9fad5e) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): web socket
360
+
361
+ - [`a69a9dc`](https://github.com/ckb-devrel/ccc/commit/a69a9dc0c722f7b4cfa36b2ae8ecba4dcde0db90) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(core): completeInputsAll
362
+
363
+ ## 0.0.13-alpha.0
364
+
365
+ ### Patch Changes
366
+
367
+ - [`600cc13`](https://github.com/ckb-devrel/ccc/commit/600cc137ac6eb7c5b2533670de6df29d82f1b9e1) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): extra infos in the response of getTransaction
368
+
369
+ - blockNumber
370
+ - blockHash
371
+ - cycles
372
+ - reason (When failed)
373
+ - txIndex (After CKB 0.118)
374
+
375
+ ## 0.0.12
package/README.md ADDED
@@ -0,0 +1,41 @@
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 Core
9
+ </h1>
10
+
11
+ <p align="center">
12
+ <a href="https://www.npmjs.com/package/@ckb-ccc/core"><img
13
+ alt="NPM Version" src="https://img.shields.io/npm/v/%40ckb-ccc%2Fcore"
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
+ <h3 align="center">
40
+ 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>.
41
+ </h3>
@@ -0,0 +1,65 @@
1
+ import { Client } from "../client/index.js";
2
+ import { type AddressLike } from "./index.js";
3
+ /**
4
+ * Parses an address string into an address information object.
5
+ *
6
+ * @param address - The address string to parse.
7
+ * @returns An object containing the address prefix, address format, and payload array.
8
+ *
9
+ * @throws Will throw an error if the address format is unknown.
10
+ *
11
+ * @example
12
+ * ```typescript
13
+ * const addressInfo = addressPayloadFromString("ckt1112139193129");
14
+ * console.log(addressInfo.prefix); // Outputs the address prefix
15
+ * console.log(addressInfo.format); // Outputs the address format
16
+ * console.log(addressInfo.payload); // Outputs the payload array
17
+ * ```
18
+ */
19
+ export declare function addressPayloadFromString(address: string): {
20
+ prefix: string;
21
+ format: AddressFormat;
22
+ payload: number[];
23
+ };
24
+ /**
25
+ * Converts an address payload into an address-like object.
26
+ *
27
+ * @param prefix - The address prefix.
28
+ * @param format - The format of the address, as defined by the AddressFormat enum.
29
+ * @param payload - The payload array containing the address data.
30
+ * @param client - The client instance used to fetch known scripts.
31
+ * @returns A promise that resolves to an AddressLike object.
32
+ *
33
+ * @throws Will throw an error if the payload length is insufficient or if the script type is unknown.
34
+ *
35
+ * @example
36
+ * ```typescript
37
+ * const address = await addressFromPayload("ckt", AddressFormat.Full, [/* payload data *\/], client);
38
+ * console.log(address.script); // Outputs the script object
39
+ * console.log(address.prefix); // Outputs the address prefix
40
+ * ```
41
+ */
42
+ export declare function addressFromPayload(prefix: string, format: AddressFormat, payload: number[], client: Client): Promise<AddressLike>;
43
+ export declare enum AddressFormat {
44
+ /**
45
+ * full version identifies the hashType
46
+ */
47
+ Full = 0,
48
+ /**
49
+ * @deprecated
50
+ * short version for locks with Known codeHash, deprecated
51
+ */
52
+ Short = 1,
53
+ /**
54
+ * @deprecated
55
+ * full version with hashType = "Data", deprecated
56
+ */
57
+ FullData = 2,
58
+ /**
59
+ * @deprecated
60
+ * full version with hashType = "Type", deprecated
61
+ */
62
+ FullType = 4
63
+ }
64
+ export declare const ADDRESS_BECH32_LIMIT = 1023;
65
+ //# sourceMappingURL=address.advanced.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"address.advanced.d.ts","sourceRoot":"","sources":["../../src/address/address.advanced.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAe,MAAM,oBAAoB,CAAC;AAEzD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C;;;;;;;;;;;;;;;GAeG;AAEH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,MAAM,GAAG;IACzD,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,aAAa,CAAC;IACtB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CA+BA;AAED;;;;;;;;;;;;;;;;;GAiBG;AAEH,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,MAAM,EAAE,EACjB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,WAAW,CAAC,CAyEtB;AAED,oBAAY,aAAa;IACvB;;OAEG;IACH,IAAI,IAAO;IACX;;;OAGG;IACH,KAAK,IAAO;IACZ;;;OAGG;IACH,QAAQ,IAAO;IACf;;;OAGG;IACH,QAAQ,IAAO;CAChB;AAED,eAAO,MAAM,oBAAoB,OAAO,CAAC"}
@@ -0,0 +1,147 @@
1
+ import { bech32, bech32m } from "bech32";
2
+ import { Script, hashTypeFromBytes } from "../ckb/index.js";
3
+ import { KnownScript } from "../client/index.js";
4
+ import { hexFrom } from "../hex/index.js";
5
+ /**
6
+ * Parses an address string into an address information object.
7
+ *
8
+ * @param address - The address string to parse.
9
+ * @returns An object containing the address prefix, address format, and payload array.
10
+ *
11
+ * @throws Will throw an error if the address format is unknown.
12
+ *
13
+ * @example
14
+ * ```typescript
15
+ * const addressInfo = addressPayloadFromString("ckt1112139193129");
16
+ * console.log(addressInfo.prefix); // Outputs the address prefix
17
+ * console.log(addressInfo.format); // Outputs the address format
18
+ * console.log(addressInfo.payload); // Outputs the payload array
19
+ * ```
20
+ */
21
+ export function addressPayloadFromString(address) {
22
+ // Try parse full format address
23
+ try {
24
+ const { words, prefix } = bech32m.decode(address, ADDRESS_BECH32_LIMIT);
25
+ const decoded = bech32m.fromWords(words);
26
+ const formatType = decoded[0];
27
+ const payload = decoded.slice(1);
28
+ if (formatType === AddressFormat.Full) {
29
+ return { prefix, format: AddressFormat.Full, payload };
30
+ }
31
+ }
32
+ catch (_) { }
33
+ // Try parse legacy 2019 format address
34
+ try {
35
+ const { prefix, words } = bech32.decode(address, ADDRESS_BECH32_LIMIT);
36
+ const decoded = bech32.fromWords(words);
37
+ const formatType = decoded[0];
38
+ const payload = decoded.slice(1);
39
+ if ([
40
+ AddressFormat.FullData,
41
+ AddressFormat.FullType,
42
+ AddressFormat.Short,
43
+ ].includes(formatType)) {
44
+ return { prefix, format: formatType, payload };
45
+ }
46
+ }
47
+ catch (_) { }
48
+ throw Error(`Unknown address format ${address}`);
49
+ }
50
+ /**
51
+ * Converts an address payload into an address-like object.
52
+ *
53
+ * @param prefix - The address prefix.
54
+ * @param format - The format of the address, as defined by the AddressFormat enum.
55
+ * @param payload - The payload array containing the address data.
56
+ * @param client - The client instance used to fetch known scripts.
57
+ * @returns A promise that resolves to an AddressLike object.
58
+ *
59
+ * @throws Will throw an error if the payload length is insufficient or if the script type is unknown.
60
+ *
61
+ * @example
62
+ * ```typescript
63
+ * const address = await addressFromPayload("ckt", AddressFormat.Full, [/* payload data *\/], client);
64
+ * console.log(address.script); // Outputs the script object
65
+ * console.log(address.prefix); // Outputs the address prefix
66
+ * ```
67
+ */
68
+ export async function addressFromPayload(prefix, format, payload, client) {
69
+ if (format === AddressFormat.Full) {
70
+ if (payload.length < 32 + 1) {
71
+ throw new Error(`Invalid full address without enough payload ${hexFrom(payload)}`);
72
+ }
73
+ return {
74
+ script: {
75
+ codeHash: payload.slice(0, 32),
76
+ hashType: hashTypeFromBytes(payload.slice(32, 33)),
77
+ args: payload.slice(33),
78
+ },
79
+ prefix,
80
+ };
81
+ }
82
+ if (format === AddressFormat.FullData) {
83
+ if (payload.length < 32) {
84
+ throw new Error(`Invalid full data address without enough payload ${hexFrom(payload)}`);
85
+ }
86
+ return {
87
+ script: {
88
+ codeHash: payload.slice(0, 32),
89
+ hashType: "data",
90
+ args: payload.slice(32),
91
+ },
92
+ prefix,
93
+ };
94
+ }
95
+ if (format === AddressFormat.FullType) {
96
+ if (payload.length < 32) {
97
+ throw new Error(`Invalid full type address without enough payload ${hexFrom(payload)}`);
98
+ }
99
+ return {
100
+ script: {
101
+ codeHash: payload.slice(0, 32),
102
+ hashType: "type",
103
+ args: payload.slice(32),
104
+ },
105
+ prefix,
106
+ };
107
+ }
108
+ // format === AddressFormat.Short
109
+ if (payload.length !== 21) {
110
+ throw new Error(`Invalid short address without enough payload ${hexFrom(payload)}`);
111
+ }
112
+ const script = [
113
+ KnownScript.Secp256k1Blake160,
114
+ KnownScript.Secp256k1Multisig,
115
+ KnownScript.AnyoneCanPay,
116
+ ][payload[0]];
117
+ if (script === undefined) {
118
+ throw new Error(`Invalid short address with unknown script ${hexFrom(payload)}`);
119
+ }
120
+ return {
121
+ script: await Script.fromKnownScript(client, script, payload.slice(1)),
122
+ prefix,
123
+ };
124
+ }
125
+ export var AddressFormat;
126
+ (function (AddressFormat) {
127
+ /**
128
+ * full version identifies the hashType
129
+ */
130
+ AddressFormat[AddressFormat["Full"] = 0] = "Full";
131
+ /**
132
+ * @deprecated
133
+ * short version for locks with Known codeHash, deprecated
134
+ */
135
+ AddressFormat[AddressFormat["Short"] = 1] = "Short";
136
+ /**
137
+ * @deprecated
138
+ * full version with hashType = "Data", deprecated
139
+ */
140
+ AddressFormat[AddressFormat["FullData"] = 2] = "FullData";
141
+ /**
142
+ * @deprecated
143
+ * full version with hashType = "Type", deprecated
144
+ */
145
+ AddressFormat[AddressFormat["FullType"] = 4] = "FullType";
146
+ })(AddressFormat || (AddressFormat = {}));
147
+ export const ADDRESS_BECH32_LIMIT = 1023;
@@ -0,0 +1,2 @@
1
+ export * from "./address.advanced.js";
2
+ //# sourceMappingURL=advanced.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"advanced.d.ts","sourceRoot":"","sources":["../../src/address/advanced.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1 @@
1
+ export * from "./address.advanced.js";