@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.
- package/dist/ckb/transaction.d.ts.map +1 -1
- package/dist/ckb/transaction.js +2 -2
- package/dist.commonjs/address/address.advanced.d.ts +24 -29
- package/dist.commonjs/address/address.advanced.js +89 -115
- package/dist.commonjs/address/advanced.d.ts +1 -1
- package/dist.commonjs/address/advanced.js +14 -30
- package/dist.commonjs/address/index.d.ts +44 -51
- package/dist.commonjs/address/index.js +65 -84
- package/dist.commonjs/advanced.d.ts +1 -1
- package/dist.commonjs/advanced.js +22 -47
- package/dist.commonjs/advancedBarrel.d.ts +1 -1
- package/dist.commonjs/advancedBarrel.js +14 -30
- package/dist.commonjs/barrel.d.ts +1 -1
- package/dist.commonjs/barrel.js +14 -30
- package/dist.commonjs/bytes/advanced.d.ts +2 -11
- package/dist.commonjs/bytes/index.d.ts +3 -9
- package/dist.commonjs/bytes/index.js +26 -28
- package/dist.commonjs/ckb/advanced.d.ts +1 -1
- package/dist.commonjs/ckb/advanced.js +22 -47
- package/dist.commonjs/ckb/index.d.ts +1 -1
- package/dist.commonjs/ckb/index.js +14 -30
- package/dist.commonjs/ckb/molecule.advanced/generated.d.ts +260 -420
- package/dist.commonjs/ckb/molecule.advanced/generated.js +1332 -1536
- package/dist.commonjs/ckb/molecule.advanced/index.d.ts +3 -3
- package/dist.commonjs/ckb/molecule.advanced/index.js +18 -34
- package/dist.commonjs/ckb/script.advanced.d.ts +1 -1
- package/dist.commonjs/ckb/script.advanced.js +9 -12
- package/dist.commonjs/ckb/script.d.ts +117 -121
- package/dist.commonjs/ckb/script.js +176 -220
- package/dist.commonjs/ckb/transaction.advanced.d.ts +1 -1
- package/dist.commonjs/ckb/transaction.advanced.js +4 -4
- package/dist.commonjs/ckb/transaction.d.ts +717 -792
- package/dist.commonjs/ckb/transaction.d.ts.map +1 -1
- package/dist.commonjs/ckb/transaction.js +1155 -1383
- package/dist.commonjs/client/advanced.d.ts +1 -1
- package/dist.commonjs/client/advanced.js +14 -30
- package/dist.commonjs/client/client.advanced.d.ts +6 -23
- package/dist.commonjs/client/client.advanced.js +61 -89
- package/dist.commonjs/client/client.d.ts +53 -113
- package/dist.commonjs/client/client.js +181 -214
- package/dist.commonjs/client/clientPublicMainnet.advanced.d.ts +4 -8
- package/dist.commonjs/client/clientPublicMainnet.advanced.js +127 -144
- package/dist.commonjs/client/clientPublicMainnet.d.ts +6 -8
- package/dist.commonjs/client/clientPublicMainnet.js +15 -17
- package/dist.commonjs/client/clientPublicTestnet.advanced.d.ts +3 -6
- package/dist.commonjs/client/clientPublicTestnet.advanced.js +179 -204
- package/dist.commonjs/client/clientPublicTestnet.d.ts +6 -8
- package/dist.commonjs/client/clientPublicTestnet.js +13 -13
- package/dist.commonjs/client/clientTypes.advanced.d.ts +14 -14
- package/dist.commonjs/client/clientTypes.advanced.js +1 -1
- package/dist.commonjs/client/clientTypes.d.ts +26 -51
- package/dist.commonjs/client/clientTypes.js +22 -56
- package/dist.commonjs/client/index.d.ts +1 -1
- package/dist.commonjs/client/index.js +14 -30
- package/dist.commonjs/client/jsonRpc/advanced.d.ts +1 -1
- package/dist.commonjs/client/jsonRpc/advanced.js +14 -30
- package/dist.commonjs/client/jsonRpc/index.d.ts +75 -94
- package/dist.commonjs/client/jsonRpc/index.js +108 -135
- package/dist.commonjs/client/jsonRpc/transformers.d.ts +36 -76
- package/dist.commonjs/client/jsonRpc/transformers.js +152 -174
- package/dist.commonjs/client/jsonRpc/types.d.ts +38 -38
- package/dist.commonjs/fixedPoint/index.d.ts +3 -9
- package/dist.commonjs/fixedPoint/index.js +20 -26
- package/dist.commonjs/fixedPoint/index.test.d.ts +1 -1
- package/dist.commonjs/fixedPoint/index.test.js +36 -42
- package/dist.commonjs/hasher/advanced.d.ts +1 -1
- package/dist.commonjs/hasher/index.d.ts +36 -36
- package/dist.commonjs/hasher/index.js +47 -54
- package/dist.commonjs/hex/index.d.ts +1 -1
- package/dist.commonjs/hex/index.js +1 -1
- package/dist.commonjs/index.d.ts +1 -1
- package/dist.commonjs/index.js +22 -47
- package/dist.commonjs/num/index.d.ts +1 -1
- package/dist.commonjs/num/index.js +27 -39
- package/dist.commonjs/signer/btc/index.d.ts +1 -1
- package/dist.commonjs/signer/btc/index.js +14 -30
- package/dist.commonjs/signer/btc/signerBtc.d.ts +47 -47
- package/dist.commonjs/signer/btc/signerBtc.js +66 -89
- package/dist.commonjs/signer/btc/signerBtcPublicKeyReadonly.d.ts +45 -45
- package/dist.commonjs/signer/btc/signerBtcPublicKeyReadonly.js +52 -52
- package/dist.commonjs/signer/btc/verify.d.ts +2 -6
- package/dist.commonjs/signer/btc/verify.js +3 -10
- package/dist.commonjs/signer/ckb/index.d.ts +1 -1
- package/dist.commonjs/signer/ckb/index.js +14 -30
- package/dist.commonjs/signer/ckb/signerCkbScriptReadonly.d.ts +45 -45
- package/dist.commonjs/signer/ckb/signerCkbScriptReadonly.js +56 -56
- package/dist.commonjs/signer/ckb/verifyJoyId.d.ts +2 -6
- package/dist.commonjs/signer/ckb/verifyJoyId.js +8 -11
- package/dist.commonjs/signer/dummy/alwaysError.d.ts +4 -4
- package/dist.commonjs/signer/dummy/alwaysError.js +7 -7
- package/dist.commonjs/signer/dummy/dummy.d.ts +7 -7
- package/dist.commonjs/signer/dummy/dummy.js +16 -16
- package/dist.commonjs/signer/dummy/index.d.ts +1 -1
- package/dist.commonjs/signer/dummy/index.js +14 -30
- package/dist.commonjs/signer/dummy/openLink.d.ts +4 -4
- package/dist.commonjs/signer/dummy/openLink.js +7 -7
- package/dist.commonjs/signer/evm/index.d.ts +1 -1
- package/dist.commonjs/signer/evm/index.js +14 -30
- package/dist.commonjs/signer/evm/signerEvm.d.ts +38 -42
- package/dist.commonjs/signer/evm/signerEvm.js +70 -105
- package/dist.commonjs/signer/evm/signerEvmAddressReadonly.d.ts +37 -37
- package/dist.commonjs/signer/evm/signerEvmAddressReadonly.js +42 -42
- package/dist.commonjs/signer/evm/verify.d.ts +2 -6
- package/dist.commonjs/signer/evm/verify.js +2 -7
- package/dist.commonjs/signer/index.d.ts +1 -1
- package/dist.commonjs/signer/index.js +14 -30
- package/dist.commonjs/signer/nostr/index.d.ts +1 -1
- package/dist.commonjs/signer/nostr/index.js +14 -30
- package/dist.commonjs/signer/nostr/signerNostr.d.ts +57 -57
- package/dist.commonjs/signer/nostr/signerNostr.js +71 -100
- package/dist.commonjs/signer/nostr/verify.d.ts +3 -9
- package/dist.commonjs/signer/nostr/verify.js +39 -50
- package/dist.commonjs/signer/signer/index.d.ts +150 -156
- package/dist.commonjs/signer/signer/index.js +181 -208
- package/dist.commonjs/utils/index.d.ts +8 -38
- package/dist.commonjs/utils/index.js +12 -18
- package/package.json +2 -2
- 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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
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
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
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
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
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
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
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
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
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
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
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
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
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
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
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
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
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
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
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
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
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
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
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
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
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
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
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
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
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
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
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
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
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
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
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
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
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
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
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
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
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
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
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
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
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
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
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
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
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
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
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
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
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
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
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
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
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
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
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
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
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
|