@ckb-ccc/core 0.0.4-alpha.8 → 0.0.5-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 (209) hide show
  1. package/README.md +6 -0
  2. package/dist/ckb/transaction.d.ts +85 -2
  3. package/dist/ckb/transaction.d.ts.map +1 -1
  4. package/dist/ckb/transaction.js +152 -7
  5. package/dist/client/client.d.ts +8 -3
  6. package/dist/client/client.d.ts.map +1 -1
  7. package/dist/client/client.js +29 -2
  8. package/dist/client/clientPublicMainnet.advanced.d.ts.map +1 -1
  9. package/dist/client/clientPublicMainnet.advanced.js +4 -0
  10. package/dist/client/clientPublicTestnet.advanced.d.ts.map +1 -1
  11. package/dist/client/clientPublicTestnet.advanced.js +4 -0
  12. package/dist/client/clientTypes.d.ts +48 -1
  13. package/dist/client/clientTypes.d.ts.map +1 -1
  14. package/dist/client/clientTypes.js +27 -1
  15. package/dist/client/jsonRpc/index.d.ts +9 -1
  16. package/dist/client/jsonRpc/index.d.ts.map +1 -1
  17. package/dist/client/jsonRpc/index.js +15 -1
  18. package/dist/client/jsonRpc/transformers.d.ts +17 -3
  19. package/dist/client/jsonRpc/transformers.d.ts.map +1 -1
  20. package/dist/client/jsonRpc/transformers.js +37 -3
  21. package/dist/client/jsonRpc/types.d.ts +15 -0
  22. package/dist/client/jsonRpc/types.d.ts.map +1 -1
  23. package/dist/fixedPoint/index.d.ts.map +1 -1
  24. package/dist/fixedPoint/index.js +4 -1
  25. package/dist/fixedPoint/index.test.d.ts +2 -0
  26. package/dist/fixedPoint/index.test.d.ts.map +1 -0
  27. package/dist/fixedPoint/index.test.js +43 -0
  28. package/dist/signer/btc/signerBtc.d.ts.map +1 -1
  29. package/dist/signer/btc/signerBtc.js +2 -3
  30. package/dist/signer/btc/signerBtcPublicKeyReadonly.d.ts +12 -0
  31. package/dist/signer/btc/signerBtcPublicKeyReadonly.d.ts.map +1 -1
  32. package/dist/signer/btc/signerBtcPublicKeyReadonly.js +16 -0
  33. package/dist/signer/ckb/signerCkbScriptReadonly.d.ts +12 -0
  34. package/dist/signer/ckb/signerCkbScriptReadonly.d.ts.map +1 -1
  35. package/dist/signer/ckb/signerCkbScriptReadonly.js +16 -0
  36. package/dist/signer/evm/signerEvm.d.ts +5 -1
  37. package/dist/signer/evm/signerEvm.d.ts.map +1 -1
  38. package/dist/signer/evm/signerEvm.js +21 -8
  39. package/dist/signer/evm/signerEvmAddressReadonly.d.ts +13 -1
  40. package/dist/signer/evm/signerEvmAddressReadonly.d.ts.map +1 -1
  41. package/dist/signer/evm/signerEvmAddressReadonly.js +16 -0
  42. package/dist/signer/index.d.ts +0 -1
  43. package/dist/signer/index.d.ts.map +1 -1
  44. package/dist/signer/index.js +0 -1
  45. package/dist/signer/signer.d.ts +26 -6
  46. package/dist/signer/signer.d.ts.map +1 -1
  47. package/dist/signer/signer.js +14 -3
  48. package/dist.commonjs/address/address.advanced.d.ts +65 -0
  49. package/dist.commonjs/address/address.advanced.d.ts.map +1 -0
  50. package/dist.commonjs/address/address.advanced.js +149 -0
  51. package/dist.commonjs/address/advanced.d.ts +2 -0
  52. package/dist.commonjs/address/advanced.d.ts.map +1 -0
  53. package/dist.commonjs/address/advanced.js +17 -0
  54. package/dist.commonjs/address/index.d.ts +54 -0
  55. package/dist.commonjs/address/index.d.ts.map +1 -0
  56. package/dist.commonjs/address/index.js +84 -0
  57. package/dist.commonjs/advanced.d.ts +3 -0
  58. package/dist.commonjs/advanced.d.ts.map +1 -0
  59. package/dist.commonjs/advanced.js +31 -0
  60. package/dist.commonjs/advancedBarrel.d.ts +5 -0
  61. package/dist.commonjs/advancedBarrel.d.ts.map +1 -0
  62. package/dist.commonjs/advancedBarrel.js +20 -0
  63. package/dist.commonjs/barrel.d.ts +11 -0
  64. package/dist.commonjs/barrel.d.ts.map +1 -0
  65. package/dist.commonjs/barrel.js +26 -0
  66. package/dist.commonjs/bytes/advanced.d.ts +5 -0
  67. package/dist.commonjs/bytes/advanced.d.ts.map +1 -0
  68. package/dist.commonjs/bytes/advanced.js +2 -0
  69. package/dist.commonjs/bytes/index.d.ts +64 -0
  70. package/dist.commonjs/bytes/index.d.ts.map +1 -0
  71. package/dist.commonjs/bytes/index.js +97 -0
  72. package/dist.commonjs/ckb/advanced.d.ts +4 -0
  73. package/dist.commonjs/ckb/advanced.d.ts.map +1 -0
  74. package/dist.commonjs/ckb/advanced.js +32 -0
  75. package/dist.commonjs/ckb/index.d.ts +3 -0
  76. package/dist.commonjs/ckb/index.d.ts.map +1 -0
  77. package/dist.commonjs/ckb/index.js +18 -0
  78. package/dist.commonjs/ckb/molecule.advanced/generated.d.ts +355 -0
  79. package/dist.commonjs/ckb/molecule.advanced/generated.d.ts.map +1 -0
  80. package/dist.commonjs/ckb/molecule.advanced/generated.js +1536 -0
  81. package/dist.commonjs/ckb/molecule.advanced/index.d.ts +6 -0
  82. package/dist.commonjs/ckb/molecule.advanced/index.d.ts.map +1 -0
  83. package/dist.commonjs/ckb/molecule.advanced/index.js +25 -0
  84. package/dist.commonjs/ckb/script.advanced.d.ts +5 -0
  85. package/dist.commonjs/ckb/script.advanced.d.ts.map +1 -0
  86. package/dist.commonjs/ckb/script.advanced.js +16 -0
  87. package/dist.commonjs/ckb/script.d.ts +126 -0
  88. package/dist.commonjs/ckb/script.d.ts.map +1 -0
  89. package/dist.commonjs/ckb/script.js +188 -0
  90. package/dist.commonjs/ckb/transaction.advanced.d.ts +5 -0
  91. package/dist.commonjs/ckb/transaction.advanced.d.ts.map +1 -0
  92. package/dist.commonjs/ckb/transaction.advanced.js +12 -0
  93. package/dist.commonjs/ckb/transaction.d.ts +616 -0
  94. package/dist.commonjs/ckb/transaction.d.ts.map +1 -0
  95. package/dist.commonjs/ckb/transaction.js +810 -0
  96. package/dist.commonjs/client/advanced.d.ts +4 -0
  97. package/dist.commonjs/client/advanced.d.ts.map +1 -0
  98. package/dist.commonjs/client/advanced.js +19 -0
  99. package/dist.commonjs/client/client.d.ts +24 -0
  100. package/dist.commonjs/client/client.d.ts.map +1 -0
  101. package/dist.commonjs/client/client.js +57 -0
  102. package/dist.commonjs/client/clientPublicMainnet.advanced.d.ts +4 -0
  103. package/dist.commonjs/client/clientPublicMainnet.advanced.d.ts.map +1 -0
  104. package/dist.commonjs/client/clientPublicMainnet.advanced.js +30 -0
  105. package/dist.commonjs/client/clientPublicMainnet.d.ts +9 -0
  106. package/dist.commonjs/client/clientPublicMainnet.d.ts.map +1 -0
  107. package/dist.commonjs/client/clientPublicMainnet.js +17 -0
  108. package/dist.commonjs/client/clientPublicTestnet.advanced.d.ts +4 -0
  109. package/dist.commonjs/client/clientPublicTestnet.advanced.d.ts.map +1 -0
  110. package/dist.commonjs/client/clientPublicTestnet.advanced.js +30 -0
  111. package/dist.commonjs/client/clientPublicTestnet.d.ts +9 -0
  112. package/dist.commonjs/client/clientPublicTestnet.d.ts.map +1 -0
  113. package/dist.commonjs/client/clientPublicTestnet.js +17 -0
  114. package/dist.commonjs/client/clientTypes.d.ts +55 -0
  115. package/dist.commonjs/client/clientTypes.d.ts.map +1 -0
  116. package/dist.commonjs/client/clientTypes.js +31 -0
  117. package/dist.commonjs/client/index.d.ts +6 -0
  118. package/dist.commonjs/client/index.d.ts.map +1 -0
  119. package/dist.commonjs/client/index.js +21 -0
  120. package/dist.commonjs/client/jsonRpc/advanced.d.ts +3 -0
  121. package/dist.commonjs/client/jsonRpc/advanced.d.ts.map +1 -0
  122. package/dist.commonjs/client/jsonRpc/advanced.js +18 -0
  123. package/dist.commonjs/client/jsonRpc/index.d.ts +76 -0
  124. package/dist.commonjs/client/jsonRpc/index.d.ts.map +1 -0
  125. package/dist.commonjs/client/jsonRpc/index.js +142 -0
  126. package/dist.commonjs/client/jsonRpc/transformers.d.ts +42 -0
  127. package/dist.commonjs/client/jsonRpc/transformers.d.ts.map +1 -0
  128. package/dist.commonjs/client/jsonRpc/transformers.js +160 -0
  129. package/dist.commonjs/client/jsonRpc/types.d.ts +56 -0
  130. package/dist.commonjs/client/jsonRpc/types.d.ts.map +1 -0
  131. package/dist.commonjs/client/jsonRpc/types.js +2 -0
  132. package/dist.commonjs/fixedPoint/index.d.ts +49 -0
  133. package/dist.commonjs/fixedPoint/index.d.ts.map +1 -0
  134. package/dist.commonjs/fixedPoint/index.js +68 -0
  135. package/dist.commonjs/fixedPoint/index.test.d.ts +2 -0
  136. package/dist.commonjs/fixedPoint/index.test.d.ts.map +1 -0
  137. package/dist.commonjs/fixedPoint/index.test.js +45 -0
  138. package/dist.commonjs/hasher/advanced.d.ts +2 -0
  139. package/dist.commonjs/hasher/advanced.d.ts.map +1 -0
  140. package/dist.commonjs/hasher/advanced.js +4 -0
  141. package/dist.commonjs/hasher/index.d.ts +52 -0
  142. package/dist.commonjs/hasher/index.d.ts.map +1 -0
  143. package/dist.commonjs/hasher/index.js +68 -0
  144. package/dist.commonjs/hex/index.d.ts +24 -0
  145. package/dist.commonjs/hex/index.d.ts.map +1 -0
  146. package/dist.commonjs/hex/index.js +20 -0
  147. package/dist.commonjs/index.d.ts +3 -0
  148. package/dist.commonjs/index.d.ts.map +1 -0
  149. package/dist.commonjs/index.js +31 -0
  150. package/dist.commonjs/num/index.d.ts +112 -0
  151. package/dist.commonjs/num/index.d.ts.map +1 -0
  152. package/dist.commonjs/num/index.js +139 -0
  153. package/dist.commonjs/signer/btc/index.d.ts +3 -0
  154. package/dist.commonjs/signer/btc/index.d.ts.map +1 -0
  155. package/dist.commonjs/signer/btc/index.js +18 -0
  156. package/dist.commonjs/signer/btc/signerBtc.d.ts +50 -0
  157. package/dist.commonjs/signer/btc/signerBtc.d.ts.map +1 -0
  158. package/dist.commonjs/signer/btc/signerBtc.js +70 -0
  159. package/dist.commonjs/signer/btc/signerBtcPublicKeyReadonly.d.ts +60 -0
  160. package/dist.commonjs/signer/btc/signerBtcPublicKeyReadonly.d.ts.map +1 -0
  161. package/dist.commonjs/signer/btc/signerBtcPublicKeyReadonly.js +72 -0
  162. package/dist.commonjs/signer/ckb/index.d.ts +2 -0
  163. package/dist.commonjs/signer/ckb/index.d.ts.map +1 -0
  164. package/dist.commonjs/signer/ckb/index.js +17 -0
  165. package/dist.commonjs/signer/ckb/signerCkbScriptReadonly.d.ts +59 -0
  166. package/dist.commonjs/signer/ckb/signerCkbScriptReadonly.d.ts.map +1 -0
  167. package/dist.commonjs/signer/ckb/signerCkbScriptReadonly.js +71 -0
  168. package/dist.commonjs/signer/evm/index.d.ts +3 -0
  169. package/dist.commonjs/signer/evm/index.d.ts.map +1 -0
  170. package/dist.commonjs/signer/evm/index.js +18 -0
  171. package/dist.commonjs/signer/evm/signerEvm.d.ts +46 -0
  172. package/dist.commonjs/signer/evm/signerEvm.d.ts.map +1 -0
  173. package/dist.commonjs/signer/evm/signerEvm.js +82 -0
  174. package/dist.commonjs/signer/evm/signerEvmAddressReadonly.d.ts +52 -0
  175. package/dist.commonjs/signer/evm/signerEvmAddressReadonly.d.ts.map +1 -0
  176. package/dist.commonjs/signer/evm/signerEvmAddressReadonly.js +62 -0
  177. package/dist.commonjs/signer/index.d.ts +5 -0
  178. package/dist.commonjs/signer/index.d.ts.map +1 -0
  179. package/dist.commonjs/signer/index.js +20 -0
  180. package/dist.commonjs/signer/signer.d.ts +133 -0
  181. package/dist.commonjs/signer/signer.d.ts.map +1 -0
  182. package/dist.commonjs/signer/signer.js +117 -0
  183. package/dist.commonjs/tsconfig.commonjs.tsbuildinfo +1 -0
  184. package/dist.commonjs/utils/index.d.ts +7 -0
  185. package/dist.commonjs/utils/index.d.ts.map +1 -0
  186. package/dist.commonjs/utils/index.js +10 -0
  187. package/jest.config.js +5 -0
  188. package/package.json +24 -7
  189. package/src/ckb/transaction.ts +198 -3
  190. package/src/client/client.ts +64 -3
  191. package/src/client/clientPublicMainnet.advanced.ts +5 -0
  192. package/src/client/clientPublicTestnet.advanced.ts +5 -0
  193. package/src/client/clientTypes.ts +70 -1
  194. package/src/client/jsonRpc/index.ts +38 -2
  195. package/src/client/jsonRpc/transformers.ts +73 -4
  196. package/src/client/jsonRpc/types.ts +16 -0
  197. package/src/fixedPoint/index.test.ts +55 -0
  198. package/src/fixedPoint/index.ts +7 -1
  199. package/src/signer/btc/signerBtc.ts +6 -3
  200. package/src/signer/btc/signerBtcPublicKeyReadonly.ts +18 -0
  201. package/src/signer/ckb/signerCkbScriptReadonly.ts +18 -0
  202. package/src/signer/evm/signerEvm.ts +56 -14
  203. package/src/signer/evm/signerEvmAddressReadonly.ts +19 -1
  204. package/src/signer/index.ts +0 -1
  205. package/src/signer/signer.ts +29 -3
  206. package/dist/signer/helpers.d.ts +0 -40
  207. package/dist/signer/helpers.d.ts.map +0 -1
  208. package/dist/signer/helpers.js +0 -90
  209. package/src/signer/helpers.ts +0 -122
@@ -0,0 +1,616 @@
1
+ import type { TransactionSkeletonType } from "@ckb-lumos/helpers";
2
+ import { Bytes, BytesLike } from "../bytes";
3
+ import { Client } from "../client";
4
+ import { Hasher } from "../hasher";
5
+ import { Hex, HexLike } from "../hex";
6
+ import { Num, NumLike } from "../num";
7
+ import * as mol from "./molecule.advanced";
8
+ import { Script, ScriptLike } from "./script";
9
+ export type DepTypeLike = string | number | bigint;
10
+ export type DepType = "depGroup" | "code";
11
+ /**
12
+ * Converts a DepTypeLike value to a DepType.
13
+ *
14
+ * @param val - The value to convert, which can be a string, number, or bigint.
15
+ * @returns The corresponding DepType.
16
+ *
17
+ * @throws Will throw an error if the input value is not a valid dep type.
18
+ *
19
+ * @example
20
+ * ```typescript
21
+ * const depType = depTypeFrom(1); // Outputs "code"
22
+ * const depType = depTypeFrom("depGroup"); // Outputs "depGroup"
23
+ * ```
24
+ */
25
+ export declare function depTypeFrom(val: DepTypeLike): DepType;
26
+ /**
27
+ * Converts a DepTypeLike value to its corresponding byte representation.
28
+ *
29
+ * @param depType - The dep type value to convert.
30
+ * @returns A Uint8Array containing the byte representation of the dep type.
31
+ *
32
+ * @example
33
+ * ```typescript
34
+ * const depTypeBytes = depTypeToBytes("code"); // Outputs Uint8Array [1]
35
+ * ```
36
+ */
37
+ export declare function depTypeToBytes(depType: DepTypeLike): Bytes;
38
+ /**
39
+ * Converts a byte-like value to a DepType.
40
+ *
41
+ * @param bytes - The byte-like value to convert.
42
+ * @returns The corresponding DepType.
43
+ *
44
+ * @throws Will throw an error if the input bytes do not correspond to a valid dep type.
45
+ *
46
+ * @example
47
+ * ```typescript
48
+ * const depType = depTypeFromBytes(new Uint8Array([1])); // Outputs "code"
49
+ * ```
50
+ */
51
+ export declare function depTypeFromBytes(bytes: BytesLike): DepType;
52
+ export type OutPointLike = {
53
+ txHash: HexLike;
54
+ index: NumLike;
55
+ };
56
+ export declare class OutPoint {
57
+ txHash: Hex;
58
+ index: Num;
59
+ /**
60
+ * Creates an instance of OutPoint.
61
+ *
62
+ * @param txHash - The transaction hash.
63
+ * @param index - The index of the output in the transaction.
64
+ */
65
+ constructor(txHash: Hex, index: Num);
66
+ /**
67
+ * Creates an OutPoint instance from an OutPointLike object.
68
+ *
69
+ * @param outPoint - An OutPointLike object or an instance of OutPoint.
70
+ * @returns An OutPoint instance.
71
+ *
72
+ * @example
73
+ * ```typescript
74
+ * const outPoint = OutPoint.from({ txHash: "0x...", index: 0 });
75
+ * ```
76
+ */
77
+ static from(outPoint: OutPointLike): OutPoint;
78
+ /**
79
+ * Converts the OutPoint instance to molecule data format.
80
+ *
81
+ * @returns An object representing the outpoint in molecule data format.
82
+ */
83
+ _toMolData(): {
84
+ txHash: Uint8Array;
85
+ index: Uint8Array;
86
+ };
87
+ /**
88
+ * Converts the OutPoint instance to bytes.
89
+ *
90
+ * @returns A Uint8Array containing the outpoint bytes.
91
+ *
92
+ * @example
93
+ * ```typescript
94
+ * const outPointBytes = outPoint.encode();
95
+ * ```
96
+ */
97
+ encode(): Bytes;
98
+ /**
99
+ * Creates an OutPoint instance from a byte-like value or molecule OutPoint.
100
+ *
101
+ * @param bytes - The byte-like value or molecule OutPoint to convert.
102
+ * @returns An OutPoint instance.
103
+ *
104
+ * @example
105
+ * ```typescript
106
+ * const outPoint = OutPoint.fromBytes(new Uint8Array([/* outpoint bytes *\/]));
107
+ * ```
108
+ */
109
+ static fromBytes(bytes: BytesLike | mol.OutPoint): OutPoint;
110
+ }
111
+ export type CellOutputLike = {
112
+ capacity: NumLike;
113
+ lock: ScriptLike;
114
+ type?: ScriptLike;
115
+ };
116
+ export declare class CellOutput {
117
+ capacity: Num;
118
+ lock: Script;
119
+ type?: Script | undefined;
120
+ /**
121
+ * Creates an instance of CellOutput.
122
+ *
123
+ * @param capacity - The capacity of the cell.
124
+ * @param lock - The lock script of the cell.
125
+ * @param type - The optional type script of the cell.
126
+ */
127
+ constructor(capacity: Num, lock: Script, type?: Script | undefined);
128
+ /**
129
+ * Creates a CellOutput instance from a CellOutputLike object.
130
+ *
131
+ * @param cellOutput - A CellOutputLike object or an instance of CellOutput.
132
+ * @returns A CellOutput instance.
133
+ *
134
+ * @example
135
+ * ```typescript
136
+ * const cellOutput = CellOutput.from({
137
+ * capacity: 1000n,
138
+ * lock: { codeHash: "0x...", hashType: "type", args: "0x..." },
139
+ * type: { codeHash: "0x...", hashType: "type", args: "0x..." }
140
+ * });
141
+ * ```
142
+ */
143
+ static from(cellOutput: CellOutputLike): CellOutput;
144
+ /**
145
+ * Converts the CellOutput instance to molecule data format.
146
+ *
147
+ * @returns An object representing the cell output in molecule data format.
148
+ */
149
+ _toMolData(): {
150
+ capacity: Uint8Array;
151
+ lock: {
152
+ codeHash: Uint8Array;
153
+ hashType: Uint8Array;
154
+ args: Uint8Array;
155
+ };
156
+ type: {
157
+ codeHash: Uint8Array;
158
+ hashType: Uint8Array;
159
+ args: Uint8Array;
160
+ } | undefined;
161
+ };
162
+ /**
163
+ * Converts the CellOutput instance to bytes.
164
+ *
165
+ * @returns A Uint8Array containing the cell output bytes.
166
+ *
167
+ * @example
168
+ * ```typescript
169
+ * const cellOutputBytes = cellOutput.toBytes();
170
+ * ```
171
+ */
172
+ toBytes(): Bytes;
173
+ /**
174
+ * Creates a CellOutput instance from a byte-like value or molecule CellOutput.
175
+ *
176
+ * @param bytes - The byte-like value or molecule CellOutput to convert.
177
+ * @returns A CellOutput instance.
178
+ *
179
+ * @example
180
+ * ```typescript
181
+ * const cellOutput = CellOutput.fromBytes(new Uint8Array([/* cell output bytes *\/]));
182
+ * ```
183
+ */
184
+ static fromBytes(bytes: BytesLike | mol.CellOutput): CellOutput;
185
+ }
186
+ export type CellLike = {
187
+ outPoint: OutPointLike;
188
+ cellOutput: CellOutputLike;
189
+ outputData: HexLike;
190
+ blockNumber: NumLike;
191
+ };
192
+ export declare class Cell {
193
+ outPoint: OutPoint;
194
+ cellOutput: CellOutput;
195
+ outputData: Hex;
196
+ blockNumber: Num;
197
+ /**
198
+ * Creates an instance of Cell.
199
+ *
200
+ * @param outPoint - The output point of the cell.
201
+ * @param cellOutput - The cell output of the cell.
202
+ * @param outputData - The output data of the cell.
203
+ * @param blockNumber - The block number of the cell.
204
+ */
205
+ constructor(outPoint: OutPoint, cellOutput: CellOutput, outputData: Hex, blockNumber: Num);
206
+ /**
207
+ * Creates a Cell instance from a CellLike object.
208
+ *
209
+ * @param cell - A CellLike object or an instance of Cell.
210
+ * @returns A Cell instance.
211
+ */
212
+ static from(cell: CellLike): Cell;
213
+ }
214
+ export type CellInputLike = {
215
+ previousOutput: OutPointLike;
216
+ since: NumLike;
217
+ cellOutput?: CellOutputLike;
218
+ outputData?: HexLike;
219
+ blockNumber?: NumLike;
220
+ };
221
+ export declare class CellInput {
222
+ previousOutput: OutPoint;
223
+ since: Num;
224
+ cellOutput?: CellOutput | undefined;
225
+ outputData?: `0x${string}` | undefined;
226
+ blockNumber?: bigint | undefined;
227
+ /**
228
+ * Creates an instance of CellInput.
229
+ *
230
+ * @param previousOutput - The previous outpoint of the cell.
231
+ * @param since - The since value of the cell input.
232
+ * @param cellOutput - The optional cell output associated with the cell input.
233
+ * @param outputData - The optional output data associated with the cell input.
234
+ * @param blockNumber - The optional block number associated with the cell input.
235
+ */
236
+ constructor(previousOutput: OutPoint, since: Num, cellOutput?: CellOutput | undefined, outputData?: `0x${string}` | undefined, blockNumber?: bigint | undefined);
237
+ /**
238
+ * Creates a CellInput instance from a CellInputLike object.
239
+ *
240
+ * @param cellInput - A CellInputLike object or an instance of CellInput.
241
+ * @returns A CellInput instance.
242
+ *
243
+ * @example
244
+ * ```typescript
245
+ * const cellInput = CellInput.from({
246
+ * previousOutput: { txHash: "0x...", index: 0 },
247
+ * since: 0n
248
+ * });
249
+ * ```
250
+ */
251
+ static from(cellInput: CellInputLike): CellInput;
252
+ /**
253
+ * Complete extra infos in the input. Like the output of the out point.
254
+ * The instance will be modified.
255
+ *
256
+ * @returns The completed instance.
257
+ * @example
258
+ * ```typescript
259
+ * if (!cellInput.cellOutput) {
260
+ * await cellInput.completeExtraInfos();
261
+ * }
262
+ * ```
263
+ */
264
+ completeExtraInfos(client: Client): Promise<CellInput>;
265
+ /**
266
+ * Converts the CellInput instance to molecule data format.
267
+ *
268
+ * @returns An object representing the cell input in molecule data format.
269
+ */
270
+ _toMolData(): {
271
+ previousOutput: {
272
+ txHash: Uint8Array;
273
+ index: Uint8Array;
274
+ };
275
+ since: Uint8Array;
276
+ };
277
+ /**
278
+ * Converts the CellInput instance to bytes.
279
+ *
280
+ * @returns A Uint8Array containing the cell input bytes.
281
+ *
282
+ * @example
283
+ * ```typescript
284
+ * const cellInputBytes = cellInput.toBytes();
285
+ * ```
286
+ */
287
+ toBytes(): Bytes;
288
+ /**
289
+ * Creates a CellInput instance from a byte-like value or molecule CellInput.
290
+ *
291
+ * @param bytes - The byte-like value or molecule CellInput to convert.
292
+ * @returns A CellInput instance.
293
+ *
294
+ * @example
295
+ * ```typescript
296
+ * const cellInput = CellInput.fromBytes(new Uint8Array([/* cell input bytes *\/]));
297
+ * ```
298
+ */
299
+ static fromBytes(bytes: BytesLike | mol.CellInput): CellInput;
300
+ }
301
+ export type CellDepLike = {
302
+ outPoint: OutPointLike;
303
+ depType: DepTypeLike;
304
+ };
305
+ export declare class CellDep {
306
+ outPoint: OutPoint;
307
+ depType: DepType;
308
+ /**
309
+ * Creates an instance of CellDep.
310
+ *
311
+ * @param outPoint - The outpoint of the cell dependency.
312
+ * @param depType - The dependency type.
313
+ */
314
+ constructor(outPoint: OutPoint, depType: DepType);
315
+ /**
316
+ * Creates a CellDep instance from a CellDepLike object.
317
+ *
318
+ * @param cellDep - A CellDepLike object or an instance of CellDep.
319
+ * @returns A CellDep instance.
320
+ *
321
+ * @example
322
+ * ```typescript
323
+ * const cellDep = CellDep.from({
324
+ * outPoint: { txHash: "0x...", index: 0 },
325
+ * depType: "depGroup"
326
+ * });
327
+ * ```
328
+ */
329
+ static from(cellDep: CellDepLike): CellDep;
330
+ /**
331
+ * Converts the CellDep instance to molecule data format.
332
+ *
333
+ * @returns An object representing the cell dependency in molecule data format.
334
+ */
335
+ _toMolData(): {
336
+ outPoint: {
337
+ txHash: Uint8Array;
338
+ index: Uint8Array;
339
+ };
340
+ depType: Uint8Array;
341
+ };
342
+ /**
343
+ * Converts the CellDep instance to bytes.
344
+ *
345
+ * @returns A Uint8Array containing the cell dependency bytes.
346
+ *
347
+ * @example
348
+ * ```typescript
349
+ * const cellDepBytes = cellDep.toBytes();
350
+ * ```
351
+ */
352
+ toBytes(): Bytes;
353
+ /**
354
+ * Creates a CellDep instance from a byte-like value or molecule CellDep.
355
+ *
356
+ * @param bytes - The byte-like value or molecule CellDep to convert.
357
+ * @returns A CellDep instance.
358
+ *
359
+ * @example
360
+ * ```typescript
361
+ * const cellDep = CellDep.fromBytes(new Uint8Array([/* cell dep bytes *\/]));
362
+ * ```
363
+ */
364
+ fromBytes(bytes: BytesLike | mol.CellDep): CellDep;
365
+ }
366
+ export type WitnessArgsLike = {
367
+ lock?: HexLike;
368
+ inputType?: HexLike;
369
+ outputType?: HexLike;
370
+ };
371
+ export declare class WitnessArgs {
372
+ lock?: `0x${string}` | undefined;
373
+ inputType?: `0x${string}` | undefined;
374
+ outputType?: `0x${string}` | undefined;
375
+ /**
376
+ * Creates an instance of WitnessArgs.
377
+ *
378
+ * @param lock - The optional lock field of the witness.
379
+ * @param inputType - The optional input type field of the witness.
380
+ * @param outputType - The optional output type field of the witness.
381
+ */
382
+ constructor(lock?: `0x${string}` | undefined, inputType?: `0x${string}` | undefined, outputType?: `0x${string}` | undefined);
383
+ /**
384
+ * Creates a WitnessArgs instance from a WitnessArgsLike object.
385
+ *
386
+ * @param witnessArgs - A WitnessArgsLike object or an instance of WitnessArgs.
387
+ * @returns A WitnessArgs instance.
388
+ *
389
+ * @example
390
+ * ```typescript
391
+ * const witnessArgs = WitnessArgs.from({
392
+ * lock: "0x...",
393
+ * inputType: "0x...",
394
+ * outputType: "0x..."
395
+ * });
396
+ * ```
397
+ */
398
+ static from(witnessArgs: WitnessArgsLike): WitnessArgs;
399
+ /**
400
+ * Converts the WitnessArgs instance to molecule data format.
401
+ *
402
+ * @returns An object representing the witness arguments in molecule data format.
403
+ */
404
+ _toMolData(): {
405
+ lock: Uint8Array | undefined;
406
+ inputType: Uint8Array | undefined;
407
+ outputType: Uint8Array | undefined;
408
+ };
409
+ /**
410
+ * Converts the WitnessArgs instance to bytes.
411
+ *
412
+ * @returns A Uint8Array containing the witness arguments bytes.
413
+ *
414
+ * @example
415
+ * ```typescript
416
+ * const witnessArgsBytes = witnessArgs.toBytes();
417
+ * ```
418
+ */
419
+ toBytes(): Bytes;
420
+ /**
421
+ * Creates a WitnessArgs instance from a byte-like value or molecule WitnessArgs.
422
+ *
423
+ * @param bytes - The byte-like value or molecule WitnessArgs to convert.
424
+ * @returns A WitnessArgs instance.
425
+ *
426
+ * @example
427
+ * ```typescript
428
+ * const witnessArgs = WitnessArgs.fromBytes(new Uint8Array([/* witness args bytes *\/]));
429
+ * ```
430
+ */
431
+ static fromBytes(bytes: BytesLike | mol.WitnessArgs): WitnessArgs;
432
+ }
433
+ export type TransactionLike = {
434
+ version: NumLike;
435
+ cellDeps: CellDepLike[];
436
+ headerDeps: HexLike[];
437
+ inputs: CellInputLike[];
438
+ outputs: CellOutputLike[];
439
+ outputsData: HexLike[];
440
+ witnesses: HexLike[];
441
+ };
442
+ export declare class Transaction {
443
+ version: Num;
444
+ cellDeps: CellDep[];
445
+ headerDeps: Hex[];
446
+ inputs: CellInput[];
447
+ outputs: CellOutput[];
448
+ outputsData: Hex[];
449
+ witnesses: Hex[];
450
+ /**
451
+ * Creates an instance of Transaction.
452
+ *
453
+ * @param version - The version of the transaction.
454
+ * @param cellDeps - The cell dependencies of the transaction.
455
+ * @param headerDeps - The header dependencies of the transaction.
456
+ * @param inputs - The inputs of the transaction.
457
+ * @param outputs - The outputs of the transaction.
458
+ * @param outputsData - The data associated with the outputs.
459
+ * @param witnesses - The witnesses of the transaction.
460
+ */
461
+ constructor(version: Num, cellDeps: CellDep[], headerDeps: Hex[], inputs: CellInput[], outputs: CellOutput[], outputsData: Hex[], witnesses: Hex[]);
462
+ /**
463
+ * Creates a default Transaction instance with empty fields.
464
+ *
465
+ * @returns A default Transaction instance.
466
+ *
467
+ * @example
468
+ * ```typescript
469
+ * const defaultTx = Transaction.default();
470
+ * ```
471
+ */
472
+ static default(): Transaction;
473
+ /**
474
+ * Creates a Transaction instance from a TransactionLike object.
475
+ *
476
+ * @param tx - A TransactionLike object or an instance of Transaction.
477
+ * @returns A Transaction instance.
478
+ *
479
+ * @example
480
+ * ```typescript
481
+ * const transaction = Transaction.from({
482
+ * version: 0,
483
+ * cellDeps: [],
484
+ * headerDeps: [],
485
+ * inputs: [],
486
+ * outputs: [],
487
+ * outputsData: [],
488
+ * witnesses: []
489
+ * });
490
+ * ```
491
+ */
492
+ static from(tx: TransactionLike): Transaction;
493
+ /**
494
+ * Creates a Transaction instance from a Lumos skeleton.
495
+ *
496
+ * @param skeleton - The Lumos transaction skeleton.
497
+ * @returns A Transaction instance.
498
+ *
499
+ * @throws Will throw an error if an input's outPoint is missing.
500
+ *
501
+ * @example
502
+ * ```typescript
503
+ * const transaction = Transaction.fromLumosSkeleton(skeleton);
504
+ * ```
505
+ */
506
+ static fromLumosSkeleton(skeleton: TransactionSkeletonType): Transaction;
507
+ stringify(): string;
508
+ /**
509
+ * Converts the raw transaction data to bytes.
510
+ *
511
+ * @returns A Uint8Array containing the raw transaction bytes.
512
+ *
513
+ * @example
514
+ * ```typescript
515
+ * const rawTxBytes = transaction.rawToBytes();
516
+ * ```
517
+ */
518
+ rawToBytes(): Bytes;
519
+ /**
520
+ * Calculates the hash of the transaction.
521
+ *
522
+ * @returns The hash of the transaction.
523
+ *
524
+ * @example
525
+ * ```typescript
526
+ * const txHash = transaction.hash();
527
+ * ```
528
+ */
529
+ hash(): `0x${string}`;
530
+ /**
531
+ * Hashes a witness and updates the hasher.
532
+ *
533
+ * @param witness - The witness to hash.
534
+ * @param hasher - The hasher instance to update.
535
+ *
536
+ * @example
537
+ * ```typescript
538
+ * Transaction.hashWitnessToHasher("0x...", hasher);
539
+ * ```
540
+ */
541
+ static hashWitnessToHasher(witness: HexLike, hasher: Hasher): void;
542
+ /**
543
+ * Computes the signing hash information for a given script.
544
+ *
545
+ * @param scriptLike - The script associated with the transaction, represented as a ScriptLike object.
546
+ * @param client - The client for complete extra infos in the transaction.
547
+ * @returns A promise that resolves to an object containing the signing message and the witness position,
548
+ * or undefined if no matching input is found.
549
+ *
550
+ * @example
551
+ * ```typescript
552
+ * const signHashInfo = await tx.getSignHashInfo(scriptLike, client);
553
+ * if (signHashInfo) {
554
+ * console.log(signHashInfo.message); // Outputs the signing message
555
+ * console.log(signHashInfo.position); // Outputs the witness position
556
+ * }
557
+ * ```
558
+ */
559
+ getSignHashInfo(scriptLike: ScriptLike, client: Client): Promise<{
560
+ message: Hex;
561
+ position: number;
562
+ } | undefined>;
563
+ /**
564
+ * Find the first occurrence of a input with the specified lock
565
+ *
566
+ * @param scriptLike - The script associated with the transaction, represented as a ScriptLike object.
567
+ * @param client - The client for complete extra infos in the transaction.
568
+ * @returns A promise that resolves to the prepared transaction
569
+ *
570
+ * @example
571
+ * ```typescript
572
+ * const index = await tx.findInputIndexByLock(scriptLike, client);
573
+ * ```
574
+ */
575
+ findInputIndexByLock(scriptLike: ScriptLike, client: Client): Promise<number | undefined>;
576
+ /**
577
+ * Get witness at index as WitnessArgs
578
+ *
579
+ * @param index - The index of the witness.
580
+ * @returns The witness parsed as WitnessArgs.
581
+ *
582
+ * @example
583
+ * ```typescript
584
+ * const witnessArgs = await tx.getWitnessArgsAt(0);
585
+ * ```
586
+ */
587
+ getWitnessArgsAt(index: number): WitnessArgs | undefined;
588
+ /**
589
+ * Set witness at index by WitnessArgs
590
+ *
591
+ * @param index - The index of the witness.
592
+ * @param witness - The WitnessArgs to set.
593
+ * @returns The transaction itself.
594
+ *
595
+ * @example
596
+ * ```typescript
597
+ * await tx.setWitnessArgsAt(0, witnessArgs);
598
+ * ```
599
+ */
600
+ setWitnessArgsAt(index: number, witness: WitnessArgs): Transaction;
601
+ /**
602
+ * Prepare dummy witness for sighash all method
603
+ *
604
+ * @param scriptLike - The script associated with the transaction, represented as a ScriptLike object.
605
+ * @param lockLen - The length of dummy lock bytes.
606
+ * @param client - The client for complete extra infos in the transaction.
607
+ * @returns A promise that resolves to the prepared transaction
608
+ *
609
+ * @example
610
+ * ```typescript
611
+ * await tx.prepareSighashAllWitness(scriptLike, 85, client);
612
+ * ```
613
+ */
614
+ prepareSighashAllWitness(scriptLike: ScriptLike, lockLen: number, client: Client): Promise<Transaction>;
615
+ }
616
+ //# sourceMappingURL=transaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../src/ckb/transaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAa,MAAM,UAAU,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,MAAM,EAAW,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,GAAG,EAAE,OAAO,EAA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