@ckb-ccc/core 0.0.6-alpha.0 → 0.0.7-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (215) hide show
  1. package/dist/address/address.advanced.d.ts.map +1 -1
  2. package/dist/address/address.advanced.js +2 -5
  3. package/dist/address/index.d.ts +1 -1
  4. package/dist/address/index.d.ts.map +1 -1
  5. package/dist/address/index.js +2 -5
  6. package/dist/ckb/script.d.ts +43 -1
  7. package/dist/ckb/script.d.ts.map +1 -1
  8. package/dist/ckb/script.js +51 -0
  9. package/dist/ckb/transaction.d.ts +198 -21
  10. package/dist/ckb/transaction.d.ts.map +1 -1
  11. package/dist/ckb/transaction.js +437 -21
  12. package/dist/client/advanced.d.ts +2 -0
  13. package/dist/client/advanced.d.ts.map +1 -1
  14. package/dist/client/advanced.js +2 -0
  15. package/dist/client/client.advanced.d.ts +10 -0
  16. package/dist/client/client.advanced.d.ts.map +1 -0
  17. package/dist/client/client.advanced.js +80 -0
  18. package/dist/client/client.d.ts +44 -8
  19. package/dist/client/client.d.ts.map +1 -1
  20. package/dist/client/client.js +137 -9
  21. package/dist/client/clientPublicMainnet.advanced.d.ts +4 -2
  22. package/dist/client/clientPublicMainnet.advanced.d.ts.map +1 -1
  23. package/dist/client/clientPublicMainnet.advanced.js +102 -0
  24. package/dist/client/clientPublicMainnet.d.ts +4 -2
  25. package/dist/client/clientPublicMainnet.d.ts.map +1 -1
  26. package/dist/client/clientPublicMainnet.js +5 -1
  27. package/dist/client/clientPublicTestnet.advanced.d.ts +4 -2
  28. package/dist/client/clientPublicTestnet.advanced.d.ts.map +1 -1
  29. package/dist/client/clientPublicTestnet.advanced.js +151 -0
  30. package/dist/client/clientPublicTestnet.d.ts +4 -2
  31. package/dist/client/clientPublicTestnet.d.ts.map +1 -1
  32. package/dist/client/clientPublicTestnet.js +6 -1
  33. package/dist/client/clientTypes.advanced.d.ts +23 -0
  34. package/dist/client/clientTypes.advanced.d.ts.map +1 -0
  35. package/dist/client/clientTypes.advanced.js +4 -0
  36. package/dist/client/clientTypes.d.ts +22 -36
  37. package/dist/client/clientTypes.d.ts.map +1 -1
  38. package/dist/client/clientTypes.js +15 -12
  39. package/dist/client/jsonRpc/index.d.ts +3 -3
  40. package/dist/client/jsonRpc/index.d.ts.map +1 -1
  41. package/dist/client/jsonRpc/index.js +3 -3
  42. package/dist/client/jsonRpc/transformers.d.ts +5 -7
  43. package/dist/client/jsonRpc/transformers.d.ts.map +1 -1
  44. package/dist/client/jsonRpc/transformers.js +8 -6
  45. package/dist/hasher/index.d.ts +1 -1
  46. package/dist/hasher/index.d.ts.map +1 -1
  47. package/dist/hasher/index.js +4 -2
  48. package/dist/num/index.d.ts +12 -0
  49. package/dist/num/index.d.ts.map +1 -1
  50. package/dist/num/index.js +21 -0
  51. package/dist/signer/btc/signerBtc.d.ts.map +1 -1
  52. package/dist/signer/btc/signerBtc.js +2 -1
  53. package/dist/signer/evm/signerEvm.d.ts.map +1 -1
  54. package/dist/signer/evm/signerEvm.js +5 -3
  55. package/dist/signer/nostr/signerNostr.d.ts.map +1 -1
  56. package/dist/signer/nostr/signerNostr.js +2 -1
  57. package/dist/utils/index.d.ts +1 -1
  58. package/dist/utils/index.d.ts.map +1 -1
  59. package/dist/utils/index.js +1 -1
  60. package/dist.commonjs/address/address.advanced.d.ts +29 -24
  61. package/dist.commonjs/address/address.advanced.d.ts.map +1 -1
  62. package/dist.commonjs/address/address.advanced.js +115 -92
  63. package/dist.commonjs/address/advanced.d.ts +1 -1
  64. package/dist.commonjs/address/advanced.js +30 -14
  65. package/dist.commonjs/address/index.d.ts +51 -44
  66. package/dist.commonjs/address/index.d.ts.map +1 -1
  67. package/dist.commonjs/address/index.js +84 -68
  68. package/dist.commonjs/advanced.d.ts +1 -1
  69. package/dist.commonjs/advanced.js +47 -22
  70. package/dist.commonjs/advancedBarrel.d.ts +1 -1
  71. package/dist.commonjs/advancedBarrel.js +30 -14
  72. package/dist.commonjs/barrel.d.ts +1 -1
  73. package/dist.commonjs/barrel.js +30 -14
  74. package/dist.commonjs/bytes/advanced.d.ts +11 -2
  75. package/dist.commonjs/bytes/index.d.ts +9 -3
  76. package/dist.commonjs/bytes/index.js +28 -26
  77. package/dist.commonjs/ckb/advanced.d.ts +1 -1
  78. package/dist.commonjs/ckb/advanced.js +47 -22
  79. package/dist.commonjs/ckb/index.d.ts +1 -1
  80. package/dist.commonjs/ckb/index.js +30 -14
  81. package/dist.commonjs/ckb/molecule.advanced/generated.d.ts +420 -260
  82. package/dist.commonjs/ckb/molecule.advanced/generated.js +1536 -1332
  83. package/dist.commonjs/ckb/molecule.advanced/index.d.ts +3 -3
  84. package/dist.commonjs/ckb/molecule.advanced/index.js +34 -18
  85. package/dist.commonjs/ckb/script.advanced.d.ts +1 -1
  86. package/dist.commonjs/ckb/script.advanced.js +12 -9
  87. package/dist.commonjs/ckb/script.d.ts +123 -77
  88. package/dist.commonjs/ckb/script.d.ts.map +1 -1
  89. package/dist.commonjs/ckb/script.js +221 -126
  90. package/dist.commonjs/ckb/transaction.advanced.d.ts +1 -1
  91. package/dist.commonjs/ckb/transaction.advanced.js +4 -4
  92. package/dist.commonjs/ckb/transaction.d.ts +796 -544
  93. package/dist.commonjs/ckb/transaction.d.ts.map +1 -1
  94. package/dist.commonjs/ckb/transaction.js +1371 -725
  95. package/dist.commonjs/client/advanced.d.ts +3 -1
  96. package/dist.commonjs/client/advanced.d.ts.map +1 -1
  97. package/dist.commonjs/client/advanced.js +32 -14
  98. package/dist.commonjs/client/client.advanced.d.ts +27 -0
  99. package/dist.commonjs/client/client.advanced.d.ts.map +1 -0
  100. package/dist.commonjs/client/client.advanced.js +116 -0
  101. package/dist.commonjs/client/client.d.ts +118 -22
  102. package/dist.commonjs/client/client.d.ts.map +1 -1
  103. package/dist.commonjs/client/client.js +218 -56
  104. package/dist.commonjs/client/clientPublicMainnet.advanced.d.ts +9 -3
  105. package/dist.commonjs/client/clientPublicMainnet.advanced.d.ts.map +1 -1
  106. package/dist.commonjs/client/clientPublicMainnet.advanced.js +144 -25
  107. package/dist.commonjs/client/clientPublicMainnet.d.ts +9 -5
  108. package/dist.commonjs/client/clientPublicMainnet.d.ts.map +1 -1
  109. package/dist.commonjs/client/clientPublicMainnet.js +18 -12
  110. package/dist.commonjs/client/clientPublicTestnet.advanced.d.ts +8 -3
  111. package/dist.commonjs/client/clientPublicTestnet.advanced.d.ts.map +1 -1
  112. package/dist.commonjs/client/clientPublicTestnet.advanced.js +204 -28
  113. package/dist.commonjs/client/clientPublicTestnet.d.ts +9 -5
  114. package/dist.commonjs/client/clientPublicTestnet.d.ts.map +1 -1
  115. package/dist.commonjs/client/clientPublicTestnet.js +14 -9
  116. package/dist.commonjs/client/clientTypes.advanced.d.ts +23 -0
  117. package/dist.commonjs/client/clientTypes.advanced.d.ts.map +1 -0
  118. package/dist.commonjs/client/clientTypes.advanced.js +8 -0
  119. package/dist.commonjs/client/clientTypes.d.ts +57 -46
  120. package/dist.commonjs/client/clientTypes.d.ts.map +1 -1
  121. package/dist.commonjs/client/clientTypes.js +60 -22
  122. package/dist.commonjs/client/index.d.ts +1 -1
  123. package/dist.commonjs/client/index.js +30 -14
  124. package/dist.commonjs/client/jsonRpc/advanced.d.ts +1 -1
  125. package/dist.commonjs/client/jsonRpc/advanced.js +30 -14
  126. package/dist.commonjs/client/jsonRpc/index.d.ts +94 -75
  127. package/dist.commonjs/client/jsonRpc/index.d.ts.map +1 -1
  128. package/dist.commonjs/client/jsonRpc/index.js +135 -108
  129. package/dist.commonjs/client/jsonRpc/transformers.d.ts +76 -38
  130. package/dist.commonjs/client/jsonRpc/transformers.d.ts.map +1 -1
  131. package/dist.commonjs/client/jsonRpc/transformers.js +174 -150
  132. package/dist.commonjs/client/jsonRpc/types.d.ts +38 -38
  133. package/dist.commonjs/fixedPoint/index.d.ts +9 -3
  134. package/dist.commonjs/fixedPoint/index.js +26 -20
  135. package/dist.commonjs/fixedPoint/index.test.d.ts +1 -1
  136. package/dist.commonjs/fixedPoint/index.test.js +42 -36
  137. package/dist.commonjs/hasher/advanced.d.ts +1 -1
  138. package/dist.commonjs/hasher/index.d.ts +37 -37
  139. package/dist.commonjs/hasher/index.d.ts.map +1 -1
  140. package/dist.commonjs/hasher/index.js +55 -46
  141. package/dist.commonjs/hex/index.d.ts +1 -1
  142. package/dist.commonjs/hex/index.js +1 -1
  143. package/dist.commonjs/index.d.ts +1 -1
  144. package/dist.commonjs/index.js +47 -22
  145. package/dist.commonjs/num/index.d.ts +13 -1
  146. package/dist.commonjs/num/index.d.ts.map +1 -1
  147. package/dist.commonjs/num/index.js +53 -19
  148. package/dist.commonjs/signer/btc/index.d.ts +1 -1
  149. package/dist.commonjs/signer/btc/index.js +30 -14
  150. package/dist.commonjs/signer/btc/signerBtc.d.ts +47 -47
  151. package/dist.commonjs/signer/btc/signerBtc.d.ts.map +1 -1
  152. package/dist.commonjs/signer/btc/signerBtc.js +89 -65
  153. package/dist.commonjs/signer/btc/signerBtcPublicKeyReadonly.d.ts +45 -45
  154. package/dist.commonjs/signer/btc/signerBtcPublicKeyReadonly.js +52 -52
  155. package/dist.commonjs/signer/btc/verify.d.ts +6 -2
  156. package/dist.commonjs/signer/btc/verify.js +10 -3
  157. package/dist.commonjs/signer/ckb/index.d.ts +1 -1
  158. package/dist.commonjs/signer/ckb/index.js +30 -14
  159. package/dist.commonjs/signer/ckb/signerCkbScriptReadonly.d.ts +45 -45
  160. package/dist.commonjs/signer/ckb/signerCkbScriptReadonly.js +56 -56
  161. package/dist.commonjs/signer/ckb/verifyJoyId.d.ts +6 -2
  162. package/dist.commonjs/signer/ckb/verifyJoyId.js +11 -8
  163. package/dist.commonjs/signer/dummy/alwaysError.d.ts +4 -4
  164. package/dist.commonjs/signer/dummy/alwaysError.js +7 -7
  165. package/dist.commonjs/signer/dummy/dummy.d.ts +7 -7
  166. package/dist.commonjs/signer/dummy/dummy.js +16 -16
  167. package/dist.commonjs/signer/dummy/index.d.ts +1 -1
  168. package/dist.commonjs/signer/dummy/index.js +30 -14
  169. package/dist.commonjs/signer/dummy/openLink.d.ts +4 -4
  170. package/dist.commonjs/signer/dummy/openLink.js +7 -7
  171. package/dist.commonjs/signer/evm/index.d.ts +1 -1
  172. package/dist.commonjs/signer/evm/index.js +30 -14
  173. package/dist.commonjs/signer/evm/signerEvm.d.ts +42 -38
  174. package/dist.commonjs/signer/evm/signerEvm.d.ts.map +1 -1
  175. package/dist.commonjs/signer/evm/signerEvm.js +105 -68
  176. package/dist.commonjs/signer/evm/signerEvmAddressReadonly.d.ts +37 -37
  177. package/dist.commonjs/signer/evm/signerEvmAddressReadonly.js +42 -42
  178. package/dist.commonjs/signer/evm/verify.d.ts +6 -2
  179. package/dist.commonjs/signer/evm/verify.js +7 -2
  180. package/dist.commonjs/signer/index.d.ts +1 -1
  181. package/dist.commonjs/signer/index.js +30 -14
  182. package/dist.commonjs/signer/nostr/index.d.ts +1 -1
  183. package/dist.commonjs/signer/nostr/index.js +30 -14
  184. package/dist.commonjs/signer/nostr/signerNostr.d.ts +57 -57
  185. package/dist.commonjs/signer/nostr/signerNostr.d.ts.map +1 -1
  186. package/dist.commonjs/signer/nostr/signerNostr.js +100 -70
  187. package/dist.commonjs/signer/nostr/verify.d.ts +9 -3
  188. package/dist.commonjs/signer/nostr/verify.js +50 -39
  189. package/dist.commonjs/signer/signer/index.d.ts +156 -150
  190. package/dist.commonjs/signer/signer/index.js +208 -181
  191. package/dist.commonjs/utils/index.d.ts +38 -8
  192. package/dist.commonjs/utils/index.d.ts.map +1 -1
  193. package/dist.commonjs/utils/index.js +18 -12
  194. package/package.json +2 -2
  195. package/src/address/address.advanced.ts +2 -5
  196. package/src/address/index.ts +2 -5
  197. package/src/ckb/script.ts +62 -2
  198. package/src/ckb/transaction.ts +634 -46
  199. package/src/client/advanced.ts +2 -0
  200. package/src/client/client.advanced.ts +134 -0
  201. package/src/client/client.ts +225 -16
  202. package/src/client/clientPublicMainnet.advanced.ts +116 -2
  203. package/src/client/clientPublicMainnet.ts +8 -3
  204. package/src/client/clientPublicTestnet.advanced.ts +171 -2
  205. package/src/client/clientPublicTestnet.ts +9 -3
  206. package/src/client/clientTypes.advanced.ts +26 -0
  207. package/src/client/clientTypes.ts +41 -43
  208. package/src/client/jsonRpc/index.ts +4 -4
  209. package/src/client/jsonRpc/transformers.ts +13 -11
  210. package/src/hasher/index.ts +4 -2
  211. package/src/num/index.ts +22 -0
  212. package/src/signer/btc/signerBtc.ts +2 -1
  213. package/src/signer/evm/signerEvm.ts +5 -3
  214. package/src/signer/nostr/signerNostr.ts +2 -1
  215. package/src/utils/index.ts +6 -2
@@ -1,41 +1,41 @@
1
1
  import { BytesLike } from "../bytes";
2
2
  import { Hex } from "../hex";
3
3
  export declare class Hasher {
4
- private readonly hasher;
5
- /**
6
- * Creates an instance of Hasher.
7
- *
8
- * @param outLength - The output length of the hash in bytes. Default is 32.
9
- * @param personal - The personal string for the Blake2b algorithm. Default is CKB_BLAKE2B_PERSONAL.
10
- */
11
- constructor(outLength?: number, personal?: string);
12
- /**
13
- * Updates the hash with the given data.
14
- *
15
- * @param data - The data to update the hash with.
16
- * @returns The current Hasher instance for chaining.
17
- *
18
- * @example
19
- * ```typescript
20
- * const hasher = new Hasher();
21
- * hasher.update("some data").update("more data");
22
- * const hash = hasher.digest();
23
- * ```
24
- */
25
- update(data: BytesLike): Hasher;
26
- /**
27
- * Finalizes the hash and returns the digest as a hexadecimal string.
28
- *
29
- * @returns The hexadecimal string representation of the hash.
30
- *
31
- * @example
32
- * ```typescript
33
- * const hasher = new Hasher();
34
- * hasher.update("some data");
35
- * const hash = hasher.digest(); // Outputs something like "0x..."
36
- * ```
37
- */
38
- digest(): Hex;
4
+ private readonly hasher;
5
+ /**
6
+ * Creates an instance of Hasher.
7
+ *
8
+ * @param outLength - The output length of the hash in bytes. Default is 32.
9
+ * @param personal - The personal string for the Blake2b algorithm. Default is CKB_BLAKE2B_PERSONAL.
10
+ */
11
+ constructor(outLength?: number, personal?: string);
12
+ /**
13
+ * Updates the hash with the given data.
14
+ *
15
+ * @param data - The data to update the hash with.
16
+ * @returns The current Hasher instance for chaining.
17
+ *
18
+ * @example
19
+ * ```typescript
20
+ * const hasher = new Hasher();
21
+ * hasher.update("some data").update("more data");
22
+ * const hash = hasher.digest();
23
+ * ```
24
+ */
25
+ update(data: BytesLike): Hasher;
26
+ /**
27
+ * Finalizes the hash and returns the digest as a hexadecimal string.
28
+ *
29
+ * @returns The hexadecimal string representation of the hash.
30
+ *
31
+ * @example
32
+ * ```typescript
33
+ * const hasher = new Hasher();
34
+ * hasher.update("some data");
35
+ * const hash = hasher.digest(); // Outputs something like "0x..."
36
+ * ```
37
+ */
38
+ digest(): Hex;
39
39
  }
40
40
  /**
41
41
  * Computes the CKB hash of the given data using the Blake2b algorithm.
@@ -48,5 +48,5 @@ export declare class Hasher {
48
48
  * const hash = ckbHash("some data"); // Outputs something like "0x..."
49
49
  * ```
50
50
  */
51
- export declare function ckbHash(data: BytesLike): Hex;
52
- //# sourceMappingURL=index.d.ts.map
51
+ export declare function ckbHash(...data: BytesLike[]): Hex;
52
+ //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hasher/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAa,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAG7B,qBAAa,MAAM;IACjB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAU;IAEjC;;;;;OAKG;gBAES,SAAS,SAAK,EAAE,QAAQ,SAAuB;IAS3D;;;;;;;;;;;;OAYG;IAEH,MAAM,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM;IAK/B;;;;;;;;;;;OAWG;IAEH,MAAM,IAAI,GAAG;CAGd;AAED;;;;;;;;;;GAUG;AAEH,wBAAgB,OAAO,CAAC,IAAI,EAAE,SAAS,GAAG,GAAG,CAE5C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hasher/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAa,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAG7B,qBAAa,MAAM;IACjB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAU;IAEjC;;;;;OAKG;gBAES,SAAS,SAAK,EAAE,QAAQ,SAAuB;IAS3D;;;;;;;;;;;;OAYG;IAEH,MAAM,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM;IAK/B;;;;;;;;;;;OAWG;IAEH,MAAM,IAAI,GAAG;CAGd;AAED;;;;;;;;;;GAUG;AAEH,wBAAgB,OAAO,CAAC,GAAG,IAAI,EAAE,SAAS,EAAE,GAAG,GAAG,CAIjD"}
@@ -1,54 +1,61 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
2
+ var __importDefault =
3
+ (this && this.__importDefault) ||
4
+ function (mod) {
5
+ return mod && mod.__esModule ? mod : { default: mod };
6
+ };
5
7
  Object.defineProperty(exports, "__esModule", { value: true });
6
8
  exports.ckbHash = exports.Hasher = void 0;
7
9
  const blake2b_1 = __importDefault(require("blake2b"));
8
10
  const bytes_1 = require("../bytes");
9
11
  const advanced_1 = require("./advanced");
10
12
  class Hasher {
11
- /**
12
- * Creates an instance of Hasher.
13
- *
14
- * @param outLength - The output length of the hash in bytes. Default is 32.
15
- * @param personal - The personal string for the Blake2b algorithm. Default is CKB_BLAKE2B_PERSONAL.
16
- */
17
- constructor(outLength = 32, personal = advanced_1.CKB_BLAKE2B_PERSONAL) {
18
- this.hasher = (0, blake2b_1.default)(outLength, undefined, undefined, (0, bytes_1.bytesFrom)(personal, "utf8"));
19
- }
20
- /**
21
- * Updates the hash with the given data.
22
- *
23
- * @param data - The data to update the hash with.
24
- * @returns The current Hasher instance for chaining.
25
- *
26
- * @example
27
- * ```typescript
28
- * const hasher = new Hasher();
29
- * hasher.update("some data").update("more data");
30
- * const hash = hasher.digest();
31
- * ```
32
- */
33
- update(data) {
34
- this.hasher.update((0, bytes_1.bytesFrom)(data));
35
- return this;
36
- }
37
- /**
38
- * Finalizes the hash and returns the digest as a hexadecimal string.
39
- *
40
- * @returns The hexadecimal string representation of the hash.
41
- *
42
- * @example
43
- * ```typescript
44
- * const hasher = new Hasher();
45
- * hasher.update("some data");
46
- * const hash = hasher.digest(); // Outputs something like "0x..."
47
- * ```
48
- */
49
- digest() {
50
- return `0x${this.hasher.digest("hex")}`;
51
- }
13
+ /**
14
+ * Creates an instance of Hasher.
15
+ *
16
+ * @param outLength - The output length of the hash in bytes. Default is 32.
17
+ * @param personal - The personal string for the Blake2b algorithm. Default is CKB_BLAKE2B_PERSONAL.
18
+ */
19
+ constructor(outLength = 32, personal = advanced_1.CKB_BLAKE2B_PERSONAL) {
20
+ this.hasher = (0, blake2b_1.default)(
21
+ outLength,
22
+ undefined,
23
+ undefined,
24
+ (0, bytes_1.bytesFrom)(personal, "utf8"),
25
+ );
26
+ }
27
+ /**
28
+ * Updates the hash with the given data.
29
+ *
30
+ * @param data - The data to update the hash with.
31
+ * @returns The current Hasher instance for chaining.
32
+ *
33
+ * @example
34
+ * ```typescript
35
+ * const hasher = new Hasher();
36
+ * hasher.update("some data").update("more data");
37
+ * const hash = hasher.digest();
38
+ * ```
39
+ */
40
+ update(data) {
41
+ this.hasher.update((0, bytes_1.bytesFrom)(data));
42
+ return this;
43
+ }
44
+ /**
45
+ * Finalizes the hash and returns the digest as a hexadecimal string.
46
+ *
47
+ * @returns The hexadecimal string representation of the hash.
48
+ *
49
+ * @example
50
+ * ```typescript
51
+ * const hasher = new Hasher();
52
+ * hasher.update("some data");
53
+ * const hash = hasher.digest(); // Outputs something like "0x..."
54
+ * ```
55
+ */
56
+ digest() {
57
+ return `0x${this.hasher.digest("hex")}`;
58
+ }
52
59
  }
53
60
  exports.Hasher = Hasher;
54
61
  /**
@@ -62,7 +69,9 @@ exports.Hasher = Hasher;
62
69
  * const hash = ckbHash("some data"); // Outputs something like "0x..."
63
70
  * ```
64
71
  */
65
- function ckbHash(data) {
66
- return new Hasher().update(data).digest();
72
+ function ckbHash(...data) {
73
+ const hasher = new Hasher();
74
+ data.forEach((d) => hasher.update(d));
75
+ return hasher.digest();
67
76
  }
68
77
  exports.ckbHash = ckbHash;
@@ -21,4 +21,4 @@ export type HexLike = BytesLike;
21
21
  * ```
22
22
  */
23
23
  export declare function hexFrom(hex: HexLike): Hex;
24
- //# sourceMappingURL=index.d.ts.map
24
+ //# sourceMappingURL=index.d.ts.map
@@ -15,6 +15,6 @@ const bytes_1 = require("../bytes");
15
15
  * ```
16
16
  */
17
17
  function hexFrom(hex) {
18
- return `0x${(0, bytes_1.bytesTo)((0, bytes_1.bytesFrom)(hex), "hex")}`;
18
+ return `0x${(0, bytes_1.bytesTo)((0, bytes_1.bytesFrom)(hex), "hex")}`;
19
19
  }
20
20
  exports.hexFrom = hexFrom;
@@ -1,3 +1,3 @@
1
1
  export * from "./barrel";
2
2
  export * as ccc from "./barrel";
3
- //# sourceMappingURL=index.d.ts.map
3
+ //# sourceMappingURL=index.d.ts.map
@@ -1,30 +1,55 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
20
- };
21
- var __importStar = (this && this.__importStar) || function (mod) {
2
+ var __createBinding =
3
+ (this && this.__createBinding) ||
4
+ (Object.create
5
+ ? function (o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (
9
+ !desc ||
10
+ ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)
11
+ ) {
12
+ desc = {
13
+ enumerable: true,
14
+ get: function () {
15
+ return m[k];
16
+ },
17
+ };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
20
+ }
21
+ : function (o, m, k, k2) {
22
+ if (k2 === undefined) k2 = k;
23
+ o[k2] = m[k];
24
+ });
25
+ var __setModuleDefault =
26
+ (this && this.__setModuleDefault) ||
27
+ (Object.create
28
+ ? function (o, v) {
29
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
30
+ }
31
+ : function (o, v) {
32
+ o["default"] = v;
33
+ });
34
+ var __exportStar =
35
+ (this && this.__exportStar) ||
36
+ function (m, exports) {
37
+ for (var p in m)
38
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p))
39
+ __createBinding(exports, m, p);
40
+ };
41
+ var __importStar =
42
+ (this && this.__importStar) ||
43
+ function (mod) {
22
44
  if (mod && mod.__esModule) return mod;
23
45
  var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
46
+ if (mod != null)
47
+ for (var k in mod)
48
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
49
+ __createBinding(result, mod, k);
25
50
  __setModuleDefault(result, mod);
26
51
  return result;
27
- };
52
+ };
28
53
  Object.defineProperty(exports, "__esModule", { value: true });
29
54
  exports.ccc = void 0;
30
55
  __exportStar(require("./barrel"), exports);
@@ -9,6 +9,18 @@ export type Num = bigint;
9
9
  * It can be a string, number, bigint, or HexLike.
10
10
  */
11
11
  export type NumLike = string | number | bigint | HexLike;
12
+ /**
13
+ * Get the max among all numbers.
14
+ *
15
+ * @param numbers - numbers.
16
+ * @returns The max numbers among them.
17
+ *
18
+ * @example
19
+ * ```typescript
20
+ * numMax(1, 2, 3); // Outputs 3n
21
+ * ```
22
+ */
23
+ export declare function numMax(a: NumLike, ...numbers: NumLike[]): Num;
12
24
  /**
13
25
  * Converts a NumLike value to a Num (bigint).
14
26
  *
@@ -109,4 +121,4 @@ export declare function numLeFromBytes(val: BytesLike): Num;
109
121
  * ```
110
122
  */
111
123
  export declare function numBeFromBytes(val: BytesLike): Num;
112
- //# sourceMappingURL=index.d.ts.map
124
+ //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/num/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAA0B,MAAM,UAAU,CAAC;AACpE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAW,MAAM,QAAQ,CAAC;AAE/C;;GAEG;AACH,MAAM,MAAM,GAAG,GAAG,MAAM,CAAC;AAEzB;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAEzD;;;;;;;;;;;GAWG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,CAUzC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,CAE1C;AAED;;;;;;;;;;;GAWG;AAEH,wBAAgB,UAAU,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAE9D;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAEhE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAUhE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,SAAS,GAAG,GAAG,CAEhD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,SAAS,GAAG,GAAG,CAElD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,SAAS,GAAG,GAAG,CAElD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/num/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAA0B,MAAM,UAAU,CAAC;AACpE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAW,MAAM,QAAQ,CAAC;AAE/C;;GAEG;AACH,MAAM,MAAM,GAAG,GAAG,MAAM,CAAC;AAEzB;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAEzD;;;;;;;;;;GAUG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,OAAO,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,GAAG,GAAG,CAS7D;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,CAUzC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,CAE1C;AAED;;;;;;;;;;;GAWG;AAEH,wBAAgB,UAAU,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAE9D;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAEhE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAUhE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,SAAS,GAAG,GAAG,CAEhD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,SAAS,GAAG,GAAG,CAElD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,SAAS,GAAG,GAAG,CAElD"}
@@ -1,8 +1,39 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.numBeFromBytes = exports.numLeFromBytes = exports.numFromBytes = exports.numBeToBytes = exports.numLeToBytes = exports.numToBytes = exports.numToHex = exports.numFrom = void 0;
3
+ exports.numBeFromBytes =
4
+ exports.numLeFromBytes =
5
+ exports.numFromBytes =
6
+ exports.numBeToBytes =
7
+ exports.numLeToBytes =
8
+ exports.numToBytes =
9
+ exports.numToHex =
10
+ exports.numFrom =
11
+ exports.numMax =
12
+ void 0;
4
13
  const bytes_1 = require("../bytes");
5
14
  const hex_1 = require("../hex");
15
+ /**
16
+ * Get the max among all numbers.
17
+ *
18
+ * @param numbers - numbers.
19
+ * @returns The max numbers among them.
20
+ *
21
+ * @example
22
+ * ```typescript
23
+ * numMax(1, 2, 3); // Outputs 3n
24
+ * ```
25
+ */
26
+ function numMax(a, ...numbers) {
27
+ let max = numFrom(a);
28
+ numbers.forEach((nLike) => {
29
+ const n = numFrom(nLike);
30
+ if (n > max) {
31
+ max = n;
32
+ }
33
+ });
34
+ return max;
35
+ }
36
+ exports.numMax = numMax;
6
37
  /**
7
38
  * Converts a NumLike value to a Num (bigint).
8
39
  *
@@ -16,13 +47,13 @@ const hex_1 = require("../hex");
16
47
  * ```
17
48
  */
18
49
  function numFrom(val) {
19
- if (typeof val === "bigint") {
20
- return val;
21
- }
22
- if (typeof val === "string" || typeof val === "number") {
23
- return BigInt(val);
24
- }
25
- return BigInt((0, hex_1.hexFrom)(val));
50
+ if (typeof val === "bigint") {
51
+ return val;
52
+ }
53
+ if (typeof val === "string" || typeof val === "number") {
54
+ return BigInt(val);
55
+ }
56
+ return BigInt((0, hex_1.hexFrom)(val));
26
57
  }
27
58
  exports.numFrom = numFrom;
28
59
  /**
@@ -37,7 +68,7 @@ exports.numFrom = numFrom;
37
68
  * ```
38
69
  */
39
70
  function numToHex(val) {
40
- return `0x${numFrom(val).toString(16)}`;
71
+ return `0x${numFrom(val).toString(16)}`;
41
72
  }
42
73
  exports.numToHex = numToHex;
43
74
  /**
@@ -53,7 +84,7 @@ exports.numToHex = numToHex;
53
84
  * ```
54
85
  */
55
86
  function numToBytes(val, bytes) {
56
- return numLeToBytes(val, bytes);
87
+ return numLeToBytes(val, bytes);
57
88
  }
58
89
  exports.numToBytes = numToBytes;
59
90
  /**
@@ -69,7 +100,7 @@ exports.numToBytes = numToBytes;
69
100
  * ```
70
101
  */
71
102
  function numLeToBytes(val, bytes) {
72
- return numBeToBytes(val, bytes).reverse();
103
+ return numBeToBytes(val, bytes).reverse();
73
104
  }
74
105
  exports.numLeToBytes = numLeToBytes;
75
106
  /**
@@ -85,11 +116,14 @@ exports.numLeToBytes = numLeToBytes;
85
116
  * ```
86
117
  */
87
118
  function numBeToBytes(val, bytes) {
88
- const rawBytes = (0, bytes_1.bytesFrom)(numFrom(val).toString(16));
89
- if (bytes == null) {
90
- return rawBytes;
91
- }
92
- return (0, bytes_1.bytesConcat)(Array.from(Array(bytes - rawBytes.length), () => 0), rawBytes);
119
+ const rawBytes = (0, bytes_1.bytesFrom)(numFrom(val).toString(16));
120
+ if (bytes == null) {
121
+ return rawBytes;
122
+ }
123
+ return (0, bytes_1.bytesConcat)(
124
+ Array.from(Array(bytes - rawBytes.length), () => 0),
125
+ rawBytes,
126
+ );
93
127
  }
94
128
  exports.numBeToBytes = numBeToBytes;
95
129
  /**
@@ -104,7 +138,7 @@ exports.numBeToBytes = numBeToBytes;
104
138
  * ```
105
139
  */
106
140
  function numFromBytes(val) {
107
- return numLeFromBytes(val);
141
+ return numLeFromBytes(val);
108
142
  }
109
143
  exports.numFromBytes = numFromBytes;
110
144
  /**
@@ -119,7 +153,7 @@ exports.numFromBytes = numFromBytes;
119
153
  * ```
120
154
  */
121
155
  function numLeFromBytes(val) {
122
- return numBeFromBytes((0, bytes_1.bytesFrom)(val).reverse());
156
+ return numBeFromBytes((0, bytes_1.bytesFrom)(val).reverse());
123
157
  }
124
158
  exports.numLeFromBytes = numLeFromBytes;
125
159
  /**
@@ -134,6 +168,6 @@ exports.numLeFromBytes = numLeFromBytes;
134
168
  * ```
135
169
  */
136
170
  function numBeFromBytes(val) {
137
- return numFrom((0, bytes_1.bytesFrom)(val));
171
+ return numFrom((0, bytes_1.bytesFrom)(val));
138
172
  }
139
173
  exports.numBeFromBytes = numBeFromBytes;
@@ -1,4 +1,4 @@
1
1
  export * from "./signerBtc";
2
2
  export * from "./signerBtcPublicKeyReadonly";
3
3
  export * from "./verify";
4
- //# sourceMappingURL=index.d.ts.map
4
+ //# sourceMappingURL=index.d.ts.map
@@ -1,18 +1,34 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
2
+ var __createBinding =
3
+ (this && this.__createBinding) ||
4
+ (Object.create
5
+ ? function (o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (
9
+ !desc ||
10
+ ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)
11
+ ) {
12
+ desc = {
13
+ enumerable: true,
14
+ get: function () {
15
+ return m[k];
16
+ },
17
+ };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
20
+ }
21
+ : function (o, m, k, k2) {
22
+ if (k2 === undefined) k2 = k;
23
+ o[k2] = m[k];
24
+ });
25
+ var __exportStar =
26
+ (this && this.__exportStar) ||
27
+ function (m, exports) {
28
+ for (var p in m)
29
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p))
30
+ __createBinding(exports, m, p);
31
+ };
16
32
  Object.defineProperty(exports, "__esModule", { value: true });
17
33
  __exportStar(require("./signerBtc"), exports);
18
34
  __exportStar(require("./signerBtcPublicKeyReadonly"), exports);
@@ -8,51 +8,51 @@ import { Signer, SignerSignType, SignerType } from "../signer";
8
8
  * as well as signing transactions.
9
9
  */
10
10
  export declare abstract class SignerBtc extends Signer {
11
- get type(): SignerType;
12
- get signType(): SignerSignType;
13
- /**
14
- * Gets the Bitcoin account associated with the signer.
15
- *
16
- * @returns A promise that resolves to a string representing the Bitcoin account.
17
- */
18
- abstract getBtcAccount(): Promise<string>;
19
- /**
20
- * Gets the Bitcoin public key associated with the signer.
21
- *
22
- * @returns A promise that resolves to a HexLike value representing the Bitcoin public key.
23
- */
24
- abstract getBtcPublicKey(): Promise<HexLike>;
25
- /**
26
- * Gets the internal address, which is the Bitcoin account in this case.
27
- *
28
- * @returns A promise that resolves to a string representing the internal address.
29
- */
30
- getInternalAddress(): Promise<string>;
31
- /**
32
- * Gets the identity, which is the Bitcoin public key in this case.
33
- *
34
- * @returns A promise that resolves to a string representing the identity
35
- */
36
- getIdentity(): Promise<string>;
37
- /**
38
- * Gets an array of Address objects representing the known script addresses for the signer.
39
- *
40
- * @returns A promise that resolves to an array of Address objects.
41
- */
42
- getAddressObjs(): Promise<Address[]>;
43
- /**
44
- * prepare a transaction before signing. This method is not implemented and should be overridden by subclasses.
45
- *
46
- * @param txLike - The transaction to prepare, represented as a TransactionLike object.
47
- * @returns A promise that resolves to the prepared Transaction object.
48
- */
49
- prepareTransaction(txLike: TransactionLike): Promise<Transaction>;
50
- /**
51
- * Signs a transaction without modifying it.
52
- *
53
- * @param txLike - The transaction to sign, represented as a TransactionLike object.
54
- * @returns A promise that resolves to a signed Transaction object.
55
- */
56
- signOnlyTransaction(txLike: TransactionLike): Promise<Transaction>;
11
+ get type(): SignerType;
12
+ get signType(): SignerSignType;
13
+ /**
14
+ * Gets the Bitcoin account associated with the signer.
15
+ *
16
+ * @returns A promise that resolves to a string representing the Bitcoin account.
17
+ */
18
+ abstract getBtcAccount(): Promise<string>;
19
+ /**
20
+ * Gets the Bitcoin public key associated with the signer.
21
+ *
22
+ * @returns A promise that resolves to a HexLike value representing the Bitcoin public key.
23
+ */
24
+ abstract getBtcPublicKey(): Promise<HexLike>;
25
+ /**
26
+ * Gets the internal address, which is the Bitcoin account in this case.
27
+ *
28
+ * @returns A promise that resolves to a string representing the internal address.
29
+ */
30
+ getInternalAddress(): Promise<string>;
31
+ /**
32
+ * Gets the identity, which is the Bitcoin public key in this case.
33
+ *
34
+ * @returns A promise that resolves to a string representing the identity
35
+ */
36
+ getIdentity(): Promise<string>;
37
+ /**
38
+ * Gets an array of Address objects representing the known script addresses for the signer.
39
+ *
40
+ * @returns A promise that resolves to an array of Address objects.
41
+ */
42
+ getAddressObjs(): Promise<Address[]>;
43
+ /**
44
+ * prepare a transaction before signing. This method is not implemented and should be overridden by subclasses.
45
+ *
46
+ * @param txLike - The transaction to prepare, represented as a TransactionLike object.
47
+ * @returns A promise that resolves to the prepared Transaction object.
48
+ */
49
+ prepareTransaction(txLike: TransactionLike): Promise<Transaction>;
50
+ /**
51
+ * Signs a transaction without modifying it.
52
+ *
53
+ * @param txLike - The transaction to sign, represented as a TransactionLike object.
54
+ * @returns A promise that resolves to a signed Transaction object.
55
+ */
56
+ signOnlyTransaction(txLike: TransactionLike): Promise<Transaction>;
57
57
  }
58
- //# sourceMappingURL=signerBtc.d.ts.map
58
+ //# sourceMappingURL=signerBtc.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"signerBtc.d.ts","sourceRoot":"","sources":["../../../src/signer/btc/signerBtc.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,WAAW,EAAE,eAAe,EAAe,MAAM,WAAW,CAAC;AAEtE,OAAO,EAAE,OAAO,EAAW,MAAM,WAAW,CAAC;AAE7C,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE/D;;;;GAIG;AACH,8BAAsB,SAAU,SAAQ,MAAM;IAC5C,IAAI,IAAI,IAAI,UAAU,CAErB;IAED,IAAI,QAAQ,IAAI,cAAc,CAE7B;IAED;;;;OAIG;IACH,QAAQ,CAAC,aAAa,IAAI,OAAO,CAAC,MAAM,CAAC;IAEzC;;;;OAIG;IACH,QAAQ,CAAC,eAAe,IAAI,OAAO,CAAC,OAAO,CAAC;IAE5C;;;;OAIG;IACG,kBAAkB,IAAI,OAAO,CAAC,MAAM,CAAC;IAI3C;;;;OAIG;IACG,WAAW,IAAI,OAAO,CAAC,MAAM,CAAC;IAIpC;;;;OAIG;IACG,cAAc,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;IAa1C;;;;;OAKG;IACG,kBAAkB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,WAAW,CAAC;IAOvE;;;;;OAKG;IACG,mBAAmB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,WAAW,CAAC;CA+BzE"}
1
+ {"version":3,"file":"signerBtc.d.ts","sourceRoot":"","sources":["../../../src/signer/btc/signerBtc.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,WAAW,EAAE,eAAe,EAAe,MAAM,WAAW,CAAC;AAEtE,OAAO,EAAE,OAAO,EAAW,MAAM,WAAW,CAAC;AAE7C,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE/D;;;;GAIG;AACH,8BAAsB,SAAU,SAAQ,MAAM;IAC5C,IAAI,IAAI,IAAI,UAAU,CAErB;IAED,IAAI,QAAQ,IAAI,cAAc,CAE7B;IAED;;;;OAIG;IACH,QAAQ,CAAC,aAAa,IAAI,OAAO,CAAC,MAAM,CAAC;IAEzC;;;;OAIG;IACH,QAAQ,CAAC,eAAe,IAAI,OAAO,CAAC,OAAO,CAAC;IAE5C;;;;OAIG;IACG,kBAAkB,IAAI,OAAO,CAAC,MAAM,CAAC;IAI3C;;;;OAIG;IACG,WAAW,IAAI,OAAO,CAAC,MAAM,CAAC;IAIpC;;;;OAIG;IACG,cAAc,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;IAa1C;;;;;OAKG;IACG,kBAAkB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,WAAW,CAAC;IAQvE;;;;;OAKG;IACG,mBAAmB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,WAAW,CAAC;CA+BzE"}