@ckb-ccc/core 0.0.7-alpha.1 → 0.0.7-alpha.2

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 (118) hide show
  1. package/dist/ckb/transaction.d.ts.map +1 -1
  2. package/dist/ckb/transaction.js +2 -2
  3. package/dist.commonjs/address/address.advanced.d.ts +24 -29
  4. package/dist.commonjs/address/address.advanced.js +89 -115
  5. package/dist.commonjs/address/advanced.d.ts +1 -1
  6. package/dist.commonjs/address/advanced.js +14 -30
  7. package/dist.commonjs/address/index.d.ts +44 -51
  8. package/dist.commonjs/address/index.js +65 -84
  9. package/dist.commonjs/advanced.d.ts +1 -1
  10. package/dist.commonjs/advanced.js +22 -47
  11. package/dist.commonjs/advancedBarrel.d.ts +1 -1
  12. package/dist.commonjs/advancedBarrel.js +14 -30
  13. package/dist.commonjs/barrel.d.ts +1 -1
  14. package/dist.commonjs/barrel.js +14 -30
  15. package/dist.commonjs/bytes/advanced.d.ts +2 -11
  16. package/dist.commonjs/bytes/index.d.ts +3 -9
  17. package/dist.commonjs/bytes/index.js +26 -28
  18. package/dist.commonjs/ckb/advanced.d.ts +1 -1
  19. package/dist.commonjs/ckb/advanced.js +22 -47
  20. package/dist.commonjs/ckb/index.d.ts +1 -1
  21. package/dist.commonjs/ckb/index.js +14 -30
  22. package/dist.commonjs/ckb/molecule.advanced/generated.d.ts +260 -420
  23. package/dist.commonjs/ckb/molecule.advanced/generated.js +1332 -1536
  24. package/dist.commonjs/ckb/molecule.advanced/index.d.ts +3 -3
  25. package/dist.commonjs/ckb/molecule.advanced/index.js +18 -34
  26. package/dist.commonjs/ckb/script.advanced.d.ts +1 -1
  27. package/dist.commonjs/ckb/script.advanced.js +9 -12
  28. package/dist.commonjs/ckb/script.d.ts +117 -121
  29. package/dist.commonjs/ckb/script.js +176 -220
  30. package/dist.commonjs/ckb/transaction.advanced.d.ts +1 -1
  31. package/dist.commonjs/ckb/transaction.advanced.js +4 -4
  32. package/dist.commonjs/ckb/transaction.d.ts +717 -792
  33. package/dist.commonjs/ckb/transaction.d.ts.map +1 -1
  34. package/dist.commonjs/ckb/transaction.js +1155 -1383
  35. package/dist.commonjs/client/advanced.d.ts +1 -1
  36. package/dist.commonjs/client/advanced.js +14 -30
  37. package/dist.commonjs/client/client.advanced.d.ts +6 -23
  38. package/dist.commonjs/client/client.advanced.js +61 -89
  39. package/dist.commonjs/client/client.d.ts +53 -113
  40. package/dist.commonjs/client/client.js +181 -214
  41. package/dist.commonjs/client/clientPublicMainnet.advanced.d.ts +4 -8
  42. package/dist.commonjs/client/clientPublicMainnet.advanced.js +127 -144
  43. package/dist.commonjs/client/clientPublicMainnet.d.ts +6 -8
  44. package/dist.commonjs/client/clientPublicMainnet.js +15 -17
  45. package/dist.commonjs/client/clientPublicTestnet.advanced.d.ts +3 -6
  46. package/dist.commonjs/client/clientPublicTestnet.advanced.js +179 -204
  47. package/dist.commonjs/client/clientPublicTestnet.d.ts +6 -8
  48. package/dist.commonjs/client/clientPublicTestnet.js +13 -13
  49. package/dist.commonjs/client/clientTypes.advanced.d.ts +14 -14
  50. package/dist.commonjs/client/clientTypes.advanced.js +1 -1
  51. package/dist.commonjs/client/clientTypes.d.ts +26 -51
  52. package/dist.commonjs/client/clientTypes.js +22 -56
  53. package/dist.commonjs/client/index.d.ts +1 -1
  54. package/dist.commonjs/client/index.js +14 -30
  55. package/dist.commonjs/client/jsonRpc/advanced.d.ts +1 -1
  56. package/dist.commonjs/client/jsonRpc/advanced.js +14 -30
  57. package/dist.commonjs/client/jsonRpc/index.d.ts +75 -94
  58. package/dist.commonjs/client/jsonRpc/index.js +108 -135
  59. package/dist.commonjs/client/jsonRpc/transformers.d.ts +36 -76
  60. package/dist.commonjs/client/jsonRpc/transformers.js +152 -174
  61. package/dist.commonjs/client/jsonRpc/types.d.ts +38 -38
  62. package/dist.commonjs/fixedPoint/index.d.ts +3 -9
  63. package/dist.commonjs/fixedPoint/index.js +20 -26
  64. package/dist.commonjs/fixedPoint/index.test.d.ts +1 -1
  65. package/dist.commonjs/fixedPoint/index.test.js +36 -42
  66. package/dist.commonjs/hasher/advanced.d.ts +1 -1
  67. package/dist.commonjs/hasher/index.d.ts +36 -36
  68. package/dist.commonjs/hasher/index.js +47 -54
  69. package/dist.commonjs/hex/index.d.ts +1 -1
  70. package/dist.commonjs/hex/index.js +1 -1
  71. package/dist.commonjs/index.d.ts +1 -1
  72. package/dist.commonjs/index.js +22 -47
  73. package/dist.commonjs/num/index.d.ts +1 -1
  74. package/dist.commonjs/num/index.js +27 -39
  75. package/dist.commonjs/signer/btc/index.d.ts +1 -1
  76. package/dist.commonjs/signer/btc/index.js +14 -30
  77. package/dist.commonjs/signer/btc/signerBtc.d.ts +47 -47
  78. package/dist.commonjs/signer/btc/signerBtc.js +66 -89
  79. package/dist.commonjs/signer/btc/signerBtcPublicKeyReadonly.d.ts +45 -45
  80. package/dist.commonjs/signer/btc/signerBtcPublicKeyReadonly.js +52 -52
  81. package/dist.commonjs/signer/btc/verify.d.ts +2 -6
  82. package/dist.commonjs/signer/btc/verify.js +3 -10
  83. package/dist.commonjs/signer/ckb/index.d.ts +1 -1
  84. package/dist.commonjs/signer/ckb/index.js +14 -30
  85. package/dist.commonjs/signer/ckb/signerCkbScriptReadonly.d.ts +45 -45
  86. package/dist.commonjs/signer/ckb/signerCkbScriptReadonly.js +56 -56
  87. package/dist.commonjs/signer/ckb/verifyJoyId.d.ts +2 -6
  88. package/dist.commonjs/signer/ckb/verifyJoyId.js +8 -11
  89. package/dist.commonjs/signer/dummy/alwaysError.d.ts +4 -4
  90. package/dist.commonjs/signer/dummy/alwaysError.js +7 -7
  91. package/dist.commonjs/signer/dummy/dummy.d.ts +7 -7
  92. package/dist.commonjs/signer/dummy/dummy.js +16 -16
  93. package/dist.commonjs/signer/dummy/index.d.ts +1 -1
  94. package/dist.commonjs/signer/dummy/index.js +14 -30
  95. package/dist.commonjs/signer/dummy/openLink.d.ts +4 -4
  96. package/dist.commonjs/signer/dummy/openLink.js +7 -7
  97. package/dist.commonjs/signer/evm/index.d.ts +1 -1
  98. package/dist.commonjs/signer/evm/index.js +14 -30
  99. package/dist.commonjs/signer/evm/signerEvm.d.ts +38 -42
  100. package/dist.commonjs/signer/evm/signerEvm.js +70 -105
  101. package/dist.commonjs/signer/evm/signerEvmAddressReadonly.d.ts +37 -37
  102. package/dist.commonjs/signer/evm/signerEvmAddressReadonly.js +42 -42
  103. package/dist.commonjs/signer/evm/verify.d.ts +2 -6
  104. package/dist.commonjs/signer/evm/verify.js +2 -7
  105. package/dist.commonjs/signer/index.d.ts +1 -1
  106. package/dist.commonjs/signer/index.js +14 -30
  107. package/dist.commonjs/signer/nostr/index.d.ts +1 -1
  108. package/dist.commonjs/signer/nostr/index.js +14 -30
  109. package/dist.commonjs/signer/nostr/signerNostr.d.ts +57 -57
  110. package/dist.commonjs/signer/nostr/signerNostr.js +71 -100
  111. package/dist.commonjs/signer/nostr/verify.d.ts +3 -9
  112. package/dist.commonjs/signer/nostr/verify.js +39 -50
  113. package/dist.commonjs/signer/signer/index.d.ts +150 -156
  114. package/dist.commonjs/signer/signer/index.js +181 -208
  115. package/dist.commonjs/utils/index.d.ts +8 -38
  116. package/dist.commonjs/utils/index.js +12 -18
  117. package/package.json +2 -2
  118. package/src/ckb/transaction.ts +3 -2
@@ -31,485 +31,325 @@ export function SerializeBlockV1(value: any): ArrayBuffer;
31
31
  export function SerializeCellbaseWitness(value: any): ArrayBuffer;
32
32
  export function SerializeWitnessArgs(value: any): ArrayBuffer;
33
33
  export class Uint32 {
34
- static size(): number;
35
- constructor(
36
- reader: any,
37
- {
38
- validate,
39
- }?: {
40
- validate?: boolean | undefined;
41
- },
42
- );
43
- view: DataView;
44
- validate(compatible?: boolean): void;
45
- indexAt(i: any): number;
46
- raw(): ArrayBuffer;
47
- toBigEndianUint32(): number;
48
- toLittleEndianUint32(): number;
34
+ static size(): number;
35
+ constructor(reader: any, { validate }?: {
36
+ validate?: boolean | undefined;
37
+ });
38
+ view: DataView;
39
+ validate(compatible?: boolean): void;
40
+ indexAt(i: any): number;
41
+ raw(): ArrayBuffer;
42
+ toBigEndianUint32(): number;
43
+ toLittleEndianUint32(): number;
49
44
  }
50
45
  export class Uint64 {
51
- static size(): number;
52
- constructor(
53
- reader: any,
54
- {
55
- validate,
56
- }?: {
57
- validate?: boolean | undefined;
58
- },
59
- );
60
- view: DataView;
61
- validate(compatible?: boolean): void;
62
- indexAt(i: any): number;
63
- raw(): ArrayBuffer;
46
+ static size(): number;
47
+ constructor(reader: any, { validate }?: {
48
+ validate?: boolean | undefined;
49
+ });
50
+ view: DataView;
51
+ validate(compatible?: boolean): void;
52
+ indexAt(i: any): number;
53
+ raw(): ArrayBuffer;
64
54
  }
65
55
  export class Uint128 {
66
- static size(): number;
67
- constructor(
68
- reader: any,
69
- {
70
- validate,
71
- }?: {
72
- validate?: boolean | undefined;
73
- },
74
- );
75
- view: DataView;
76
- validate(compatible?: boolean): void;
77
- indexAt(i: any): number;
78
- raw(): ArrayBuffer;
56
+ static size(): number;
57
+ constructor(reader: any, { validate }?: {
58
+ validate?: boolean | undefined;
59
+ });
60
+ view: DataView;
61
+ validate(compatible?: boolean): void;
62
+ indexAt(i: any): number;
63
+ raw(): ArrayBuffer;
79
64
  }
80
65
  export class Byte32 {
81
- static size(): number;
82
- constructor(
83
- reader: any,
84
- {
85
- validate,
86
- }?: {
87
- validate?: boolean | undefined;
88
- },
89
- );
90
- view: DataView;
91
- validate(compatible?: boolean): void;
92
- indexAt(i: any): number;
93
- raw(): ArrayBuffer;
66
+ static size(): number;
67
+ constructor(reader: any, { validate }?: {
68
+ validate?: boolean | undefined;
69
+ });
70
+ view: DataView;
71
+ validate(compatible?: boolean): void;
72
+ indexAt(i: any): number;
73
+ raw(): ArrayBuffer;
94
74
  }
95
75
  export class Uint256 {
96
- static size(): number;
97
- constructor(
98
- reader: any,
99
- {
100
- validate,
101
- }?: {
102
- validate?: boolean | undefined;
103
- },
104
- );
105
- view: DataView;
106
- validate(compatible?: boolean): void;
107
- indexAt(i: any): number;
108
- raw(): ArrayBuffer;
76
+ static size(): number;
77
+ constructor(reader: any, { validate }?: {
78
+ validate?: boolean | undefined;
79
+ });
80
+ view: DataView;
81
+ validate(compatible?: boolean): void;
82
+ indexAt(i: any): number;
83
+ raw(): ArrayBuffer;
109
84
  }
110
85
  export class Bytes {
111
- constructor(
112
- reader: any,
113
- {
114
- validate,
115
- }?: {
116
- validate?: boolean | undefined;
117
- },
118
- );
119
- view: DataView;
120
- validate(compatible?: boolean): void;
121
- raw(): ArrayBuffer;
122
- indexAt(i: any): number;
123
- length(): number;
86
+ constructor(reader: any, { validate }?: {
87
+ validate?: boolean | undefined;
88
+ });
89
+ view: DataView;
90
+ validate(compatible?: boolean): void;
91
+ raw(): ArrayBuffer;
92
+ indexAt(i: any): number;
93
+ length(): number;
124
94
  }
125
95
  export class BytesOpt {
126
- constructor(
127
- reader: any,
128
- {
129
- validate,
130
- }?: {
131
- validate?: boolean | undefined;
132
- },
133
- );
134
- view: DataView;
135
- validate(compatible?: boolean): void;
136
- value(): Bytes;
137
- hasValue(): boolean;
96
+ constructor(reader: any, { validate }?: {
97
+ validate?: boolean | undefined;
98
+ });
99
+ view: DataView;
100
+ validate(compatible?: boolean): void;
101
+ value(): Bytes;
102
+ hasValue(): boolean;
138
103
  }
139
104
  export class BytesOptVec {
140
- constructor(
141
- reader: any,
142
- {
143
- validate,
144
- }?: {
145
- validate?: boolean | undefined;
146
- },
147
- );
148
- view: DataView;
149
- validate(compatible?: boolean): void;
150
- length(): number;
151
- indexAt(i: any): BytesOpt;
105
+ constructor(reader: any, { validate }?: {
106
+ validate?: boolean | undefined;
107
+ });
108
+ view: DataView;
109
+ validate(compatible?: boolean): void;
110
+ length(): number;
111
+ indexAt(i: any): BytesOpt;
152
112
  }
153
113
  export class BytesVec {
154
- constructor(
155
- reader: any,
156
- {
157
- validate,
158
- }?: {
159
- validate?: boolean | undefined;
160
- },
161
- );
162
- view: DataView;
163
- validate(compatible?: boolean): void;
164
- length(): number;
165
- indexAt(i: any): Bytes;
114
+ constructor(reader: any, { validate }?: {
115
+ validate?: boolean | undefined;
116
+ });
117
+ view: DataView;
118
+ validate(compatible?: boolean): void;
119
+ length(): number;
120
+ indexAt(i: any): Bytes;
166
121
  }
167
122
  export class Byte32Vec {
168
- constructor(
169
- reader: any,
170
- {
171
- validate,
172
- }?: {
173
- validate?: boolean | undefined;
174
- },
175
- );
176
- view: DataView;
177
- validate(compatible?: boolean): void;
178
- indexAt(i: any): Byte32;
179
- length(): number;
123
+ constructor(reader: any, { validate }?: {
124
+ validate?: boolean | undefined;
125
+ });
126
+ view: DataView;
127
+ validate(compatible?: boolean): void;
128
+ indexAt(i: any): Byte32;
129
+ length(): number;
180
130
  }
181
131
  export class ScriptOpt {
182
- constructor(
183
- reader: any,
184
- {
185
- validate,
186
- }?: {
187
- validate?: boolean | undefined;
188
- },
189
- );
190
- view: DataView;
191
- validate(compatible?: boolean): void;
192
- value(): Script;
193
- hasValue(): boolean;
132
+ constructor(reader: any, { validate }?: {
133
+ validate?: boolean | undefined;
134
+ });
135
+ view: DataView;
136
+ validate(compatible?: boolean): void;
137
+ value(): Script;
138
+ hasValue(): boolean;
194
139
  }
195
140
  export class ProposalShortId {
196
- static size(): number;
197
- constructor(
198
- reader: any,
199
- {
200
- validate,
201
- }?: {
202
- validate?: boolean | undefined;
203
- },
204
- );
205
- view: DataView;
206
- validate(compatible?: boolean): void;
207
- indexAt(i: any): number;
208
- raw(): ArrayBuffer;
141
+ static size(): number;
142
+ constructor(reader: any, { validate }?: {
143
+ validate?: boolean | undefined;
144
+ });
145
+ view: DataView;
146
+ validate(compatible?: boolean): void;
147
+ indexAt(i: any): number;
148
+ raw(): ArrayBuffer;
209
149
  }
210
150
  export class UncleBlockVec {
211
- constructor(
212
- reader: any,
213
- {
214
- validate,
215
- }?: {
216
- validate?: boolean | undefined;
217
- },
218
- );
219
- view: DataView;
220
- validate(compatible?: boolean): void;
221
- length(): number;
222
- indexAt(i: any): UncleBlock;
151
+ constructor(reader: any, { validate }?: {
152
+ validate?: boolean | undefined;
153
+ });
154
+ view: DataView;
155
+ validate(compatible?: boolean): void;
156
+ length(): number;
157
+ indexAt(i: any): UncleBlock;
223
158
  }
224
159
  export class TransactionVec {
225
- constructor(
226
- reader: any,
227
- {
228
- validate,
229
- }?: {
230
- validate?: boolean | undefined;
231
- },
232
- );
233
- view: DataView;
234
- validate(compatible?: boolean): void;
235
- length(): number;
236
- indexAt(i: any): Transaction;
160
+ constructor(reader: any, { validate }?: {
161
+ validate?: boolean | undefined;
162
+ });
163
+ view: DataView;
164
+ validate(compatible?: boolean): void;
165
+ length(): number;
166
+ indexAt(i: any): Transaction;
237
167
  }
238
168
  export class ProposalShortIdVec {
239
- constructor(
240
- reader: any,
241
- {
242
- validate,
243
- }?: {
244
- validate?: boolean | undefined;
245
- },
246
- );
247
- view: DataView;
248
- validate(compatible?: boolean): void;
249
- indexAt(i: any): ProposalShortId;
250
- length(): number;
169
+ constructor(reader: any, { validate }?: {
170
+ validate?: boolean | undefined;
171
+ });
172
+ view: DataView;
173
+ validate(compatible?: boolean): void;
174
+ indexAt(i: any): ProposalShortId;
175
+ length(): number;
251
176
  }
252
177
  export class CellDepVec {
253
- constructor(
254
- reader: any,
255
- {
256
- validate,
257
- }?: {
258
- validate?: boolean | undefined;
259
- },
260
- );
261
- view: DataView;
262
- validate(compatible?: boolean): void;
263
- indexAt(i: any): CellDep;
264
- length(): number;
178
+ constructor(reader: any, { validate }?: {
179
+ validate?: boolean | undefined;
180
+ });
181
+ view: DataView;
182
+ validate(compatible?: boolean): void;
183
+ indexAt(i: any): CellDep;
184
+ length(): number;
265
185
  }
266
186
  export class CellInputVec {
267
- constructor(
268
- reader: any,
269
- {
270
- validate,
271
- }?: {
272
- validate?: boolean | undefined;
273
- },
274
- );
275
- view: DataView;
276
- validate(compatible?: boolean): void;
277
- indexAt(i: any): CellInput;
278
- length(): number;
187
+ constructor(reader: any, { validate }?: {
188
+ validate?: boolean | undefined;
189
+ });
190
+ view: DataView;
191
+ validate(compatible?: boolean): void;
192
+ indexAt(i: any): CellInput;
193
+ length(): number;
279
194
  }
280
195
  export class CellOutputVec {
281
- constructor(
282
- reader: any,
283
- {
284
- validate,
285
- }?: {
286
- validate?: boolean | undefined;
287
- },
288
- );
289
- view: DataView;
290
- validate(compatible?: boolean): void;
291
- length(): number;
292
- indexAt(i: any): CellOutput;
196
+ constructor(reader: any, { validate }?: {
197
+ validate?: boolean | undefined;
198
+ });
199
+ view: DataView;
200
+ validate(compatible?: boolean): void;
201
+ length(): number;
202
+ indexAt(i: any): CellOutput;
293
203
  }
294
204
  export class Script {
295
- constructor(
296
- reader: any,
297
- {
298
- validate,
299
- }?: {
300
- validate?: boolean | undefined;
301
- },
302
- );
303
- view: DataView;
304
- validate(compatible?: boolean): void;
305
- getCodeHash(): Byte32;
306
- getHashType(): number;
307
- getArgs(): Bytes;
205
+ constructor(reader: any, { validate }?: {
206
+ validate?: boolean | undefined;
207
+ });
208
+ view: DataView;
209
+ validate(compatible?: boolean): void;
210
+ getCodeHash(): Byte32;
211
+ getHashType(): number;
212
+ getArgs(): Bytes;
308
213
  }
309
214
  export class OutPoint {
310
- static size(): number;
311
- constructor(
312
- reader: any,
313
- {
314
- validate,
315
- }?: {
316
- validate?: boolean | undefined;
317
- },
318
- );
319
- view: DataView;
320
- getTxHash(): Byte32;
321
- getIndex(): Uint32;
322
- validate(compatible?: boolean): void;
215
+ static size(): number;
216
+ constructor(reader: any, { validate }?: {
217
+ validate?: boolean | undefined;
218
+ });
219
+ view: DataView;
220
+ getTxHash(): Byte32;
221
+ getIndex(): Uint32;
222
+ validate(compatible?: boolean): void;
323
223
  }
324
224
  export class CellInput {
325
- static size(): number;
326
- constructor(
327
- reader: any,
328
- {
329
- validate,
330
- }?: {
331
- validate?: boolean | undefined;
332
- },
333
- );
334
- view: DataView;
335
- getSince(): Uint64;
336
- getPreviousOutput(): OutPoint;
337
- validate(compatible?: boolean): void;
225
+ static size(): number;
226
+ constructor(reader: any, { validate }?: {
227
+ validate?: boolean | undefined;
228
+ });
229
+ view: DataView;
230
+ getSince(): Uint64;
231
+ getPreviousOutput(): OutPoint;
232
+ validate(compatible?: boolean): void;
338
233
  }
339
234
  export class CellOutput {
340
- constructor(
341
- reader: any,
342
- {
343
- validate,
344
- }?: {
345
- validate?: boolean | undefined;
346
- },
347
- );
348
- view: DataView;
349
- validate(compatible?: boolean): void;
350
- getCapacity(): Uint64;
351
- getLock(): Script;
352
- getType(): ScriptOpt;
235
+ constructor(reader: any, { validate }?: {
236
+ validate?: boolean | undefined;
237
+ });
238
+ view: DataView;
239
+ validate(compatible?: boolean): void;
240
+ getCapacity(): Uint64;
241
+ getLock(): Script;
242
+ getType(): ScriptOpt;
353
243
  }
354
244
  export class CellDep {
355
- static size(): number;
356
- constructor(
357
- reader: any,
358
- {
359
- validate,
360
- }?: {
361
- validate?: boolean | undefined;
362
- },
363
- );
364
- view: DataView;
365
- getOutPoint(): OutPoint;
366
- getDepType(): number;
367
- validate(compatible?: boolean): void;
245
+ static size(): number;
246
+ constructor(reader: any, { validate }?: {
247
+ validate?: boolean | undefined;
248
+ });
249
+ view: DataView;
250
+ getOutPoint(): OutPoint;
251
+ getDepType(): number;
252
+ validate(compatible?: boolean): void;
368
253
  }
369
254
  export class RawTransaction {
370
- constructor(
371
- reader: any,
372
- {
373
- validate,
374
- }?: {
375
- validate?: boolean | undefined;
376
- },
377
- );
378
- view: DataView;
379
- validate(compatible?: boolean): void;
380
- getVersion(): Uint32;
381
- getCellDeps(): CellDepVec;
382
- getHeaderDeps(): Byte32Vec;
383
- getInputs(): CellInputVec;
384
- getOutputs(): CellOutputVec;
385
- getOutputsData(): BytesVec;
255
+ constructor(reader: any, { validate }?: {
256
+ validate?: boolean | undefined;
257
+ });
258
+ view: DataView;
259
+ validate(compatible?: boolean): void;
260
+ getVersion(): Uint32;
261
+ getCellDeps(): CellDepVec;
262
+ getHeaderDeps(): Byte32Vec;
263
+ getInputs(): CellInputVec;
264
+ getOutputs(): CellOutputVec;
265
+ getOutputsData(): BytesVec;
386
266
  }
387
267
  export class Transaction {
388
- constructor(
389
- reader: any,
390
- {
391
- validate,
392
- }?: {
393
- validate?: boolean | undefined;
394
- },
395
- );
396
- view: DataView;
397
- validate(compatible?: boolean): void;
398
- getRaw(): RawTransaction;
399
- getWitnesses(): BytesVec;
268
+ constructor(reader: any, { validate }?: {
269
+ validate?: boolean | undefined;
270
+ });
271
+ view: DataView;
272
+ validate(compatible?: boolean): void;
273
+ getRaw(): RawTransaction;
274
+ getWitnesses(): BytesVec;
400
275
  }
401
276
  export class RawHeader {
402
- static size(): number;
403
- constructor(
404
- reader: any,
405
- {
406
- validate,
407
- }?: {
408
- validate?: boolean | undefined;
409
- },
410
- );
411
- view: DataView;
412
- getVersion(): Uint32;
413
- getCompactTarget(): Uint32;
414
- getTimestamp(): Uint64;
415
- getNumber(): Uint64;
416
- getEpoch(): Uint64;
417
- getParentHash(): Byte32;
418
- getTransactionsRoot(): Byte32;
419
- getProposalsHash(): Byte32;
420
- getExtraHash(): Byte32;
421
- getDao(): Byte32;
422
- validate(compatible?: boolean): void;
277
+ static size(): number;
278
+ constructor(reader: any, { validate }?: {
279
+ validate?: boolean | undefined;
280
+ });
281
+ view: DataView;
282
+ getVersion(): Uint32;
283
+ getCompactTarget(): Uint32;
284
+ getTimestamp(): Uint64;
285
+ getNumber(): Uint64;
286
+ getEpoch(): Uint64;
287
+ getParentHash(): Byte32;
288
+ getTransactionsRoot(): Byte32;
289
+ getProposalsHash(): Byte32;
290
+ getExtraHash(): Byte32;
291
+ getDao(): Byte32;
292
+ validate(compatible?: boolean): void;
423
293
  }
424
294
  export class Header {
425
- static size(): number;
426
- constructor(
427
- reader: any,
428
- {
429
- validate,
430
- }?: {
431
- validate?: boolean | undefined;
432
- },
433
- );
434
- view: DataView;
435
- getRaw(): RawHeader;
436
- getNonce(): Uint128;
437
- validate(compatible?: boolean): void;
295
+ static size(): number;
296
+ constructor(reader: any, { validate }?: {
297
+ validate?: boolean | undefined;
298
+ });
299
+ view: DataView;
300
+ getRaw(): RawHeader;
301
+ getNonce(): Uint128;
302
+ validate(compatible?: boolean): void;
438
303
  }
439
304
  export class UncleBlock {
440
- constructor(
441
- reader: any,
442
- {
443
- validate,
444
- }?: {
445
- validate?: boolean | undefined;
446
- },
447
- );
448
- view: DataView;
449
- validate(compatible?: boolean): void;
450
- getHeader(): Header;
451
- getProposals(): ProposalShortIdVec;
305
+ constructor(reader: any, { validate }?: {
306
+ validate?: boolean | undefined;
307
+ });
308
+ view: DataView;
309
+ validate(compatible?: boolean): void;
310
+ getHeader(): Header;
311
+ getProposals(): ProposalShortIdVec;
452
312
  }
453
313
  export class Block {
454
- constructor(
455
- reader: any,
456
- {
457
- validate,
458
- }?: {
459
- validate?: boolean | undefined;
460
- },
461
- );
462
- view: DataView;
463
- validate(compatible?: boolean): void;
464
- getHeader(): Header;
465
- getUncles(): UncleBlockVec;
466
- getTransactions(): TransactionVec;
467
- getProposals(): ProposalShortIdVec;
314
+ constructor(reader: any, { validate }?: {
315
+ validate?: boolean | undefined;
316
+ });
317
+ view: DataView;
318
+ validate(compatible?: boolean): void;
319
+ getHeader(): Header;
320
+ getUncles(): UncleBlockVec;
321
+ getTransactions(): TransactionVec;
322
+ getProposals(): ProposalShortIdVec;
468
323
  }
469
324
  export class BlockV1 {
470
- constructor(
471
- reader: any,
472
- {
473
- validate,
474
- }?: {
475
- validate?: boolean | undefined;
476
- },
477
- );
478
- view: DataView;
479
- validate(compatible?: boolean): void;
480
- getHeader(): Header;
481
- getUncles(): UncleBlockVec;
482
- getTransactions(): TransactionVec;
483
- getProposals(): ProposalShortIdVec;
484
- getExtension(): Bytes;
325
+ constructor(reader: any, { validate }?: {
326
+ validate?: boolean | undefined;
327
+ });
328
+ view: DataView;
329
+ validate(compatible?: boolean): void;
330
+ getHeader(): Header;
331
+ getUncles(): UncleBlockVec;
332
+ getTransactions(): TransactionVec;
333
+ getProposals(): ProposalShortIdVec;
334
+ getExtension(): Bytes;
485
335
  }
486
336
  export class CellbaseWitness {
487
- constructor(
488
- reader: any,
489
- {
490
- validate,
491
- }?: {
492
- validate?: boolean | undefined;
493
- },
494
- );
495
- view: DataView;
496
- validate(compatible?: boolean): void;
497
- getLock(): Script;
498
- getMessage(): Bytes;
337
+ constructor(reader: any, { validate }?: {
338
+ validate?: boolean | undefined;
339
+ });
340
+ view: DataView;
341
+ validate(compatible?: boolean): void;
342
+ getLock(): Script;
343
+ getMessage(): Bytes;
499
344
  }
500
345
  export class WitnessArgs {
501
- constructor(
502
- reader: any,
503
- {
504
- validate,
505
- }?: {
506
- validate?: boolean | undefined;
507
- },
508
- );
509
- view: DataView;
510
- validate(compatible?: boolean): void;
511
- getLock(): BytesOpt;
512
- getInputType(): BytesOpt;
513
- getOutputType(): BytesOpt;
514
- }
515
- //# sourceMappingURL=generated.d.ts.map
346
+ constructor(reader: any, { validate }?: {
347
+ validate?: boolean | undefined;
348
+ });
349
+ view: DataView;
350
+ validate(compatible?: boolean): void;
351
+ getLock(): BytesOpt;
352
+ getInputType(): BytesOpt;
353
+ getOutputType(): BytesOpt;
354
+ }
355
+ //# sourceMappingURL=generated.d.ts.map