@ckb-ccc/core 1.18.1 → 2.0.0-next.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.
- package/CHANGELOG.md +42 -0
- package/dist/address.advanced-LxntWbev.mjs +2 -0
- package/dist/address.advanced-LxntWbev.mjs.map +1 -0
- package/dist/advanced.d.mts +1 -1
- package/dist/advanced.mjs +1 -1
- package/{dist.commonjs/advancedBarrel-CJAh6sm8.d.ts → dist/advancedBarrel-BHwnMJqR.d.mts} +749 -382
- package/dist/advancedBarrel-BHwnMJqR.d.mts.map +1 -0
- package/dist/advancedBarrel.d.mts +1 -1
- package/dist/advancedBarrel.mjs +1 -1
- package/dist/barrel-C-BaV9Pe.mjs +7 -0
- package/dist/barrel-C-BaV9Pe.mjs.map +1 -0
- package/dist/barrel.d.mts +2 -2
- package/dist/barrel.mjs +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist.commonjs/address.advanced-BqcYOpZn.js +2 -0
- package/dist.commonjs/address.advanced-BqcYOpZn.js.map +1 -0
- package/dist.commonjs/advanced.d.ts +1 -1
- package/dist.commonjs/advanced.js +1 -1
- package/{dist/advancedBarrel-BbbHx4z4.d.mts → dist.commonjs/advancedBarrel-DNdhwiU0.d.ts} +750 -381
- package/dist.commonjs/advancedBarrel-DNdhwiU0.d.ts.map +1 -0
- package/dist.commonjs/advancedBarrel.d.ts +1 -1
- package/dist.commonjs/advancedBarrel.js +1 -1
- package/dist.commonjs/{barrel-C_zSgXKn.js → barrel-BBOmj4RJ.js} +10 -10
- package/dist.commonjs/barrel-BBOmj4RJ.js.map +1 -0
- package/dist.commonjs/barrel.d.ts +2 -2
- package/dist.commonjs/barrel.js +1 -1
- package/dist.commonjs/index.d.ts +2 -2
- package/dist.commonjs/index.js +1 -1
- package/package.json +1 -1
- package/src/ckb/epoch.ts +44 -26
- package/src/ckb/script.ts +23 -46
- package/src/ckb/transaction.ts +200 -196
- package/src/client/client.ts +2 -2
- package/src/client/jsonRpc/client.ts +3 -7
- package/src/codec/codec.ts +65 -40
- package/src/codec/entity.ts +95 -67
- package/src/codec/predefined.ts +11 -0
- package/src/molecule/codec.ts +116 -8
- package/src/molecule/predefined.ts +1 -0
- package/src/signer/ckb/signerMultisigCkbReadonly.ts +36 -24
- package/src/signer/ckb/verifyJoyId.ts +39 -11
- package/src/signer/index.ts +17 -0
- package/src/signer/signer/index.ts +11 -0
- package/src/signer/signerFromSignature.ts +65 -0
- package/src/utils/index.ts +108 -26
- package/dist/address.advanced-Dw4qPDGb.mjs +0 -2
- package/dist/address.advanced-Dw4qPDGb.mjs.map +0 -1
- package/dist/advancedBarrel-BbbHx4z4.d.mts.map +0 -1
- package/dist/barrel-BsC1djHG.mjs +0 -7
- package/dist/barrel-BsC1djHG.mjs.map +0 -1
- package/dist.commonjs/address.advanced-DG1gpW7t.js +0 -2
- package/dist.commonjs/address.advanced-DG1gpW7t.js.map +0 -1
- package/dist.commonjs/advancedBarrel-CJAh6sm8.d.ts.map +0 -1
- package/dist.commonjs/barrel-C_zSgXKn.js.map +0 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
//#endregion
|
|
1
2
|
//#region src/bytes/advanced.d.ts
|
|
2
3
|
/**
|
|
3
4
|
* Represents the possible encoding formats for converting bytes.
|
|
@@ -241,29 +242,32 @@ declare class Address {
|
|
|
241
242
|
//#endregion
|
|
242
243
|
//#region src/codec/codec.d.ts
|
|
243
244
|
type CodecLike<Encodable, Decoded = Encodable> = {
|
|
244
|
-
|
|
245
|
-
|
|
245
|
+
encode: (encodable: Encodable) => BytesLike;
|
|
246
|
+
decode: (decodable: Bytes$1, config?: {
|
|
246
247
|
isExtraFieldIgnored?: boolean;
|
|
247
248
|
}) => Decoded;
|
|
248
|
-
|
|
249
|
+
from?: ((encoded: Encodable) => Decoded) | null;
|
|
250
|
+
byteLength?: number;
|
|
249
251
|
};
|
|
250
252
|
declare class Codec<Encodable, Decoded = Encodable> {
|
|
251
253
|
readonly encode: (encodable: Encodable) => Bytes$1;
|
|
252
254
|
readonly decode: (decodable: BytesLike, config?: {
|
|
253
255
|
isExtraFieldIgnored?: boolean;
|
|
254
256
|
}) => Decoded;
|
|
257
|
+
readonly from: (encodable: Encodable) => Decoded;
|
|
255
258
|
readonly byteLength?: number | undefined;
|
|
256
259
|
constructor(encode: (encodable: Encodable) => Bytes$1, decode: (decodable: BytesLike, config?: {
|
|
257
260
|
isExtraFieldIgnored?: boolean;
|
|
258
|
-
}) => Decoded, byteLength?: number | undefined);
|
|
261
|
+
}) => Decoded, from: (encodable: Encodable) => Decoded, byteLength?: number | undefined);
|
|
259
262
|
encodeOr<T>(encodable: Encodable, fallback: T): Bytes$1 | T;
|
|
260
263
|
decodeOr<T>(decodable: BytesLike, fallback: T, config?: {
|
|
261
264
|
isExtraFieldIgnored?: boolean;
|
|
262
265
|
}): Decoded | T;
|
|
263
|
-
static from<Encodable, Decoded = Encodable>(
|
|
264
|
-
map<NewEncodable = Encodable, NewDecoded = Decoded>({ inMap, outMap }: {
|
|
266
|
+
static from<Encodable, Decoded = Encodable>(codecLike: CodecLike<Encodable, Decoded>): Codec<Encodable, Decoded>;
|
|
267
|
+
map<NewEncodable = Encodable, NewDecoded = Decoded>({ inMap, outMap, from }: {
|
|
265
268
|
inMap?: (encodable: NewEncodable) => Encodable;
|
|
266
269
|
outMap?: (decoded: Decoded) => NewDecoded;
|
|
270
|
+
from?: (encodable: NewEncodable) => NewDecoded;
|
|
267
271
|
}): Codec<NewEncodable, NewDecoded>;
|
|
268
272
|
mapIn<NewEncodable>(map: (encodable: NewEncodable) => Encodable): Codec<NewEncodable, Decoded>;
|
|
269
273
|
mapOut<NewDecoded>(map: (decoded: Decoded) => NewDecoded): Codec<Encodable, NewDecoded>;
|
|
@@ -276,12 +280,12 @@ type DecodedType<T extends CodecLike<any, any>> = T extends CodecLike<any, infer
|
|
|
276
280
|
* Vector with fixed size item codec
|
|
277
281
|
* @param itemCodec fixed-size vector item codec
|
|
278
282
|
*/
|
|
279
|
-
declare function fixedItemVec<Encodable, Decoded>(
|
|
283
|
+
declare function fixedItemVec<Encodable, Decoded>(itemCodecLike: CodecLike<Encodable, Decoded>): Codec<Array<Encodable>, Array<Decoded>>;
|
|
280
284
|
/**
|
|
281
285
|
* Vector with dynamic size item codec, you can create a recursive vector with this function
|
|
282
286
|
* @param itemCodec the vector item codec. It can be fixed-size or dynamic-size.
|
|
283
287
|
*/
|
|
284
|
-
declare function dynItemVec<Encodable, Decoded>(
|
|
288
|
+
declare function dynItemVec<Encodable, Decoded>(itemCodecLike: CodecLike<Encodable, Decoded>): Codec<Array<Encodable>, Array<Decoded>>;
|
|
285
289
|
/**
|
|
286
290
|
* General vector codec, if `itemCodec` is fixed size type, it will create a fixvec codec, otherwise a dynvec codec will be created.
|
|
287
291
|
* @param itemCodec
|
|
@@ -294,12 +298,12 @@ declare function vector<Encodable, Decoded>(itemCodec: CodecLike<Encodable, Deco
|
|
|
294
298
|
* - if it's not empty, just serialize the inner item (the size is same as the inner item's size).
|
|
295
299
|
* @param innerCodec
|
|
296
300
|
*/
|
|
297
|
-
declare function option<Encodable, Decoded>(
|
|
301
|
+
declare function option<Encodable, Decoded>(innerCodecLike: CodecLike<Encodable, Decoded>): Codec<Encodable | undefined | null, Decoded | undefined>;
|
|
298
302
|
/**
|
|
299
303
|
* Wrap the encoded value with a fixed-length buffer
|
|
300
304
|
* @param codec
|
|
301
305
|
*/
|
|
302
|
-
declare function byteVec<Encodable, Decoded>(
|
|
306
|
+
declare function byteVec<Encodable, Decoded>(codecLike: CodecLike<Encodable, Decoded>): Codec<Encodable, Decoded>;
|
|
303
307
|
type EncodableRecordOptionalKeys<T extends Record<string, CodecLike<any, any>>> = { [K in keyof T]: Extract<EncodableType<T[K]>, undefined> extends never ? never : K; }[keyof T];
|
|
304
308
|
type EncodableRecord<T extends Record<string, CodecLike<any, any>>> = { [key in keyof Pick<T, EncodableRecordOptionalKeys<T>>]+?: EncodableType<T[key]>; } & { [key in keyof Omit<T, EncodableRecordOptionalKeys<T>>]: EncodableType<T[key]>; };
|
|
305
309
|
type DecodedRecordOptionalKeys<T extends Record<string, CodecLike<any, any>>> = { [K in keyof T]: Extract<DecodedType<T[K]>, undefined> extends never ? never : K; }[keyof T];
|
|
@@ -308,7 +312,7 @@ type DecodedRecord<T extends Record<string, CodecLike<any, any>>> = { [key in ke
|
|
|
308
312
|
* Table is a dynamic-size type. It can be considered as a dynvec but the length is fixed.
|
|
309
313
|
* @param codecLayout
|
|
310
314
|
*/
|
|
311
|
-
declare function table<T extends Record<string, CodecLike<any, any>>, Encodable extends EncodableRecord<T>, Decoded extends DecodedRecord<T>>(
|
|
315
|
+
declare function table<T extends Record<string, CodecLike<any, any>>, Encodable extends EncodableRecord<T>, Decoded extends DecodedRecord<T>>(codecLayoutLike: T): Codec<Encodable, Decoded>;
|
|
312
316
|
type UnionEncodable<T extends Record<string, CodecLike<any, any>>, K extends keyof T = keyof T> = K extends unknown ? {
|
|
313
317
|
type: K;
|
|
314
318
|
value: EncodableType<T[K]>;
|
|
@@ -353,7 +357,7 @@ type UnionMatchHandlers<CodecType extends CodecLike<any, UnionDecoded<any, any>>
|
|
|
353
357
|
* // Fixed-size union with custom numeric IDs
|
|
354
358
|
* union({ cafe: PaddedUint8, bee: Uint16 }, { cafe: 0xcafe, bee: 0xbee })
|
|
355
359
|
*/
|
|
356
|
-
declare function union<T extends Record<string, CodecLike<any, any>>>(
|
|
360
|
+
declare function union<T extends Record<string, CodecLike<any, any>>>(codecLayoutLike: T, fields?: Record<keyof T, number | undefined | null>): Codec<UnionEncodable<T> | {
|
|
357
361
|
inner: UnionEncodable<T>;
|
|
358
362
|
}, UnionDecoded<T>>;
|
|
359
363
|
/**
|
|
@@ -361,14 +365,14 @@ declare function union<T extends Record<string, CodecLike<any, any>>>(codecLayou
|
|
|
361
365
|
* The size of a struct is the sum of all fields' size.
|
|
362
366
|
* @param codecLayout a object contains all fields' codec
|
|
363
367
|
*/
|
|
364
|
-
declare function struct<T extends Record<string, CodecLike<any, any>>, Encodable extends EncodableRecord<T>, Decoded extends DecodedRecord<T>>(
|
|
368
|
+
declare function struct<T extends Record<string, CodecLike<any, any>>, Encodable extends EncodableRecord<T>, Decoded extends DecodedRecord<T>>(codecLayoutLike: T): Codec<Encodable, Decoded>;
|
|
365
369
|
/**
|
|
366
370
|
* The array is a fixed-size type: it has a fixed-size inner type and a fixed length.
|
|
367
371
|
* The size of an array is the size of inner type times the length.
|
|
368
372
|
* @param itemCodec the fixed-size array item codec
|
|
369
373
|
* @param itemCount
|
|
370
374
|
*/
|
|
371
|
-
declare function array<Encodable, Decoded>(
|
|
375
|
+
declare function array<Encodable, Decoded>(itemCodecLike: CodecLike<Encodable, Decoded>, itemCount: number): Codec<Array<Encodable>, Array<Decoded>>;
|
|
372
376
|
//#endregion
|
|
373
377
|
//#region src/num/index.d.ts
|
|
374
378
|
/**
|
|
@@ -591,24 +595,43 @@ declare function apply<T, R>(transformer: (val: T) => R, value: undefined | null
|
|
|
591
595
|
*/
|
|
592
596
|
declare function apply<T, R>(transformer: (val: T) => R, value: T | undefined | null): R | undefined;
|
|
593
597
|
/**
|
|
594
|
-
* Similar to Array.reduce, but
|
|
598
|
+
* Similar to Array.reduce, but works on any iterable.
|
|
599
|
+
* @public
|
|
600
|
+
*
|
|
601
|
+
* @param values - The value or iterable to be reduced.
|
|
602
|
+
* @param accumulator - A callback to be called for each value. If it returns null or undefined, the previous result will be kept.
|
|
603
|
+
* @returns The accumulated result.
|
|
604
|
+
*/
|
|
605
|
+
declare function reduce<T>(values: T | Iterable<T>, accumulator: (a: T, b: T, i: number) => T | undefined | null | void): T;
|
|
606
|
+
/**
|
|
607
|
+
* Similar to Array.reduce, but works on any iterable.
|
|
595
608
|
* @public
|
|
596
609
|
*
|
|
597
|
-
* @param values - The
|
|
598
|
-
* @param accumulator - A callback to be called for each value. If it returns null, the previous result will be kept.
|
|
610
|
+
* @param values - The value or iterable to be reduced.
|
|
611
|
+
* @param accumulator - A callback to be called for each value. If it returns null or undefined, the previous result will be kept.
|
|
612
|
+
* @param init - The initial value.
|
|
599
613
|
* @returns The accumulated result.
|
|
600
614
|
*/
|
|
601
|
-
declare function
|
|
615
|
+
declare function reduce<T, V>(values: V | Iterable<V>, accumulator: (a: T, b: V, i: number) => T | undefined | null | void, init: T): T;
|
|
602
616
|
/**
|
|
603
|
-
* Similar to Array.reduce, but the accumulator can
|
|
617
|
+
* Similar to Array.reduce, but works on async iterables and the accumulator can return a Promise.
|
|
604
618
|
* @public
|
|
605
619
|
*
|
|
606
|
-
* @param values - The
|
|
607
|
-
* @param accumulator - A callback to be called for each value. If it returns null, the previous result will be kept.
|
|
620
|
+
* @param values - The value, iterable, or async iterable to be reduced.
|
|
621
|
+
* @param accumulator - A callback to be called for each value. If it returns null or undefined, the previous result will be kept.
|
|
622
|
+
* @returns The accumulated result.
|
|
623
|
+
*/
|
|
624
|
+
declare function reduceAsync<T>(values: T | Iterable<T> | AsyncIterable<T>, accumulator: (a: T, b: T, i: number) => Promise<T | undefined | null | void> | T | undefined | null | void): Promise<T>;
|
|
625
|
+
/**
|
|
626
|
+
* Similar to Array.reduce, but works on async iterables and the accumulator can return a Promise.
|
|
627
|
+
* @public
|
|
628
|
+
*
|
|
629
|
+
* @param values - The value, iterable, or async iterable to be reduced.
|
|
630
|
+
* @param accumulator - A callback to be called for each value. If it returns null or undefined, the previous result will be kept.
|
|
608
631
|
* @param init - The initial value.
|
|
609
632
|
* @returns The accumulated result.
|
|
610
633
|
*/
|
|
611
|
-
declare function reduceAsync<T, V>(values: V
|
|
634
|
+
declare function reduceAsync<T, V>(values: V | Iterable<V> | AsyncIterable<V>, accumulator: (a: T, b: V, i: number) => Promise<T | undefined | null | void> | T | undefined | null | void, init: T | Promise<T>): Promise<T>;
|
|
612
635
|
declare function sleep(ms: NumLike): Promise<unknown>;
|
|
613
636
|
type Constructor<T, Args extends any[] = any[]> = {
|
|
614
637
|
new (...args: Args): T;
|
|
@@ -688,25 +711,31 @@ declare abstract class Entity {
|
|
|
688
711
|
* @returns The encoded bytes
|
|
689
712
|
* @throws Will throw an error if the entity is not serializable
|
|
690
713
|
*/
|
|
691
|
-
encode(_: SubTypeLike)
|
|
714
|
+
encode: (_: SubTypeLike) => Bytes$1;
|
|
692
715
|
/**
|
|
693
716
|
* Decode the entity from bytes
|
|
694
717
|
* @public
|
|
695
718
|
* @static
|
|
696
719
|
* @param _ - The bytes to decode
|
|
720
|
+
* @param _config - The configuration for decoding, including whether to ignore extra fields
|
|
697
721
|
* @returns The decoded entity
|
|
698
722
|
* @throws Will throw an error if the entity is not serializable
|
|
699
723
|
*/
|
|
700
|
-
decode(_: BytesLike
|
|
724
|
+
decode: (_: BytesLike, _config?: {
|
|
725
|
+
isExtraFieldIgnored?: boolean;
|
|
726
|
+
}) => SubType;
|
|
701
727
|
/**
|
|
702
728
|
* Create an entity from bytes
|
|
703
729
|
* @public
|
|
704
730
|
* @static
|
|
705
731
|
* @param _ - The bytes to create the entity from
|
|
732
|
+
* @param _config - The configuration for decoding, including whether to ignore extra fields
|
|
706
733
|
* @returns The created entity
|
|
707
734
|
* @throws Will throw an error if the entity is not serializable
|
|
708
735
|
*/
|
|
709
|
-
fromBytes(_bytes: BytesLike
|
|
736
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
737
|
+
isExtraFieldIgnored?: boolean;
|
|
738
|
+
}) => SubType;
|
|
710
739
|
/**
|
|
711
740
|
* Create an entity from a serializable object
|
|
712
741
|
* @public
|
|
@@ -715,7 +744,7 @@ declare abstract class Entity {
|
|
|
715
744
|
* @returns The created entity
|
|
716
745
|
* @throws Will throw an error if the entity is not serializable
|
|
717
746
|
*/
|
|
718
|
-
from(_: SubTypeLike)
|
|
747
|
+
from: (_: SubTypeLike) => SubType;
|
|
719
748
|
Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
720
749
|
/**
|
|
721
750
|
* Generate a base class of CCC to create a serializable Union instance.
|
|
@@ -788,25 +817,31 @@ declare abstract class Entity {
|
|
|
788
817
|
* @returns The encoded bytes
|
|
789
818
|
* @throws Will throw an error if the entity is not serializable
|
|
790
819
|
*/
|
|
791
|
-
encode(_: SubTypeLike_1)
|
|
820
|
+
encode: (_: SubTypeLike_1) => Bytes$1;
|
|
792
821
|
/**
|
|
793
822
|
* Decode the entity from bytes
|
|
794
823
|
* @public
|
|
795
824
|
* @static
|
|
796
825
|
* @param _ - The bytes to decode
|
|
826
|
+
* @param _config - The configuration for decoding, including whether to ignore extra fields
|
|
797
827
|
* @returns The decoded entity
|
|
798
828
|
* @throws Will throw an error if the entity is not serializable
|
|
799
829
|
*/
|
|
800
|
-
decode(_: BytesLike
|
|
830
|
+
decode: (_: BytesLike, _config?: {
|
|
831
|
+
isExtraFieldIgnored?: boolean;
|
|
832
|
+
} | undefined) => SubType_1;
|
|
801
833
|
/**
|
|
802
834
|
* Create an entity from bytes
|
|
803
835
|
* @public
|
|
804
836
|
* @static
|
|
805
837
|
* @param _ - The bytes to create the entity from
|
|
838
|
+
* @param _config - The configuration for decoding, including whether to ignore extra fields
|
|
806
839
|
* @returns The created entity
|
|
807
840
|
* @throws Will throw an error if the entity is not serializable
|
|
808
841
|
*/
|
|
809
|
-
fromBytes(_bytes: BytesLike
|
|
842
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
843
|
+
isExtraFieldIgnored?: boolean;
|
|
844
|
+
} | undefined) => SubType_1;
|
|
810
845
|
/**
|
|
811
846
|
* Create an entity from a serializable object
|
|
812
847
|
* @public
|
|
@@ -815,7 +850,7 @@ declare abstract class Entity {
|
|
|
815
850
|
* @returns The created entity
|
|
816
851
|
* @throws Will throw an error if the entity is not serializable
|
|
817
852
|
*/
|
|
818
|
-
from(_: SubTypeLike_1)
|
|
853
|
+
from: (_: SubTypeLike_1) => SubType_1;
|
|
819
854
|
/**
|
|
820
855
|
* Generate a base class of CCC to create a serializable instance.
|
|
821
856
|
* This should be used with the {@link codec} decorator.
|
|
@@ -920,25 +955,31 @@ declare abstract class Entity {
|
|
|
920
955
|
* @returns The encoded bytes
|
|
921
956
|
* @throws Will throw an error if the entity is not serializable
|
|
922
957
|
*/
|
|
923
|
-
encode(_: SubTypeLike)
|
|
958
|
+
encode: (_: SubTypeLike) => Bytes$1;
|
|
924
959
|
/**
|
|
925
960
|
* Decode the entity from bytes
|
|
926
961
|
* @public
|
|
927
962
|
* @static
|
|
928
963
|
* @param _ - The bytes to decode
|
|
964
|
+
* @param _config - The configuration for decoding, including whether to ignore extra fields
|
|
929
965
|
* @returns The decoded entity
|
|
930
966
|
* @throws Will throw an error if the entity is not serializable
|
|
931
967
|
*/
|
|
932
|
-
decode(_: BytesLike
|
|
968
|
+
decode: (_: BytesLike, _config?: {
|
|
969
|
+
isExtraFieldIgnored?: boolean;
|
|
970
|
+
} | undefined) => SubType;
|
|
933
971
|
/**
|
|
934
972
|
* Create an entity from bytes
|
|
935
973
|
* @public
|
|
936
974
|
* @static
|
|
937
975
|
* @param _ - The bytes to create the entity from
|
|
976
|
+
* @param _config - The configuration for decoding, including whether to ignore extra fields
|
|
938
977
|
* @returns The created entity
|
|
939
978
|
* @throws Will throw an error if the entity is not serializable
|
|
940
979
|
*/
|
|
941
|
-
fromBytes(_bytes: BytesLike
|
|
980
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
981
|
+
isExtraFieldIgnored?: boolean;
|
|
982
|
+
} | undefined) => SubType;
|
|
942
983
|
/**
|
|
943
984
|
* Create an entity from a serializable object
|
|
944
985
|
* @public
|
|
@@ -947,7 +988,7 @@ declare abstract class Entity {
|
|
|
947
988
|
* @returns The created entity
|
|
948
989
|
* @throws Will throw an error if the entity is not serializable
|
|
949
990
|
*/
|
|
950
|
-
from(_: SubTypeLike)
|
|
991
|
+
from: (_: SubTypeLike) => SubType;
|
|
951
992
|
/**
|
|
952
993
|
* Generate a base class of CCC to create a serializable instance.
|
|
953
994
|
* This should be used with the {@link codec} decorator.
|
|
@@ -1000,25 +1041,31 @@ declare abstract class Entity {
|
|
|
1000
1041
|
* @returns The encoded bytes
|
|
1001
1042
|
* @throws Will throw an error if the entity is not serializable
|
|
1002
1043
|
*/
|
|
1003
|
-
encode(_: SubTypeLike_1)
|
|
1044
|
+
encode: (_: SubTypeLike_1) => Bytes$1;
|
|
1004
1045
|
/**
|
|
1005
1046
|
* Decode the entity from bytes
|
|
1006
1047
|
* @public
|
|
1007
1048
|
* @static
|
|
1008
1049
|
* @param _ - The bytes to decode
|
|
1050
|
+
* @param _config - The configuration for decoding, including whether to ignore extra fields
|
|
1009
1051
|
* @returns The decoded entity
|
|
1010
1052
|
* @throws Will throw an error if the entity is not serializable
|
|
1011
1053
|
*/
|
|
1012
|
-
decode(_: BytesLike
|
|
1054
|
+
decode: (_: BytesLike, _config?: {
|
|
1055
|
+
isExtraFieldIgnored?: boolean;
|
|
1056
|
+
}) => SubType_1;
|
|
1013
1057
|
/**
|
|
1014
1058
|
* Create an entity from bytes
|
|
1015
1059
|
* @public
|
|
1016
1060
|
* @static
|
|
1017
1061
|
* @param _ - The bytes to create the entity from
|
|
1062
|
+
* @param _config - The configuration for decoding, including whether to ignore extra fields
|
|
1018
1063
|
* @returns The created entity
|
|
1019
1064
|
* @throws Will throw an error if the entity is not serializable
|
|
1020
1065
|
*/
|
|
1021
|
-
fromBytes(_bytes: BytesLike
|
|
1066
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
1067
|
+
isExtraFieldIgnored?: boolean;
|
|
1068
|
+
}) => SubType_1;
|
|
1022
1069
|
/**
|
|
1023
1070
|
* Create an entity from a serializable object
|
|
1024
1071
|
* @public
|
|
@@ -1027,7 +1074,7 @@ declare abstract class Entity {
|
|
|
1027
1074
|
* @returns The created entity
|
|
1028
1075
|
* @throws Will throw an error if the entity is not serializable
|
|
1029
1076
|
*/
|
|
1030
|
-
from(_: SubTypeLike_1)
|
|
1077
|
+
from: (_: SubTypeLike_1) => SubType_1;
|
|
1031
1078
|
Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
|
|
1032
1079
|
/**
|
|
1033
1080
|
* Generate a base class of CCC to create a serializable Union instance.
|
|
@@ -1043,31 +1090,32 @@ declare abstract class Entity {
|
|
|
1043
1090
|
* A class decorator to add methods implementation on the {@link Entity.Base} class
|
|
1044
1091
|
* @example
|
|
1045
1092
|
* ```typescript
|
|
1046
|
-
*
|
|
1047
|
-
* mol.
|
|
1048
|
-
*
|
|
1049
|
-
*
|
|
1050
|
-
*
|
|
1051
|
-
*
|
|
1052
|
-
* )
|
|
1093
|
+
* const ScriptCodec = mol.table({
|
|
1094
|
+
* codeHash: mol.Byte32,
|
|
1095
|
+
* hashType: HashTypeCodec,
|
|
1096
|
+
* args: mol.Bytes,
|
|
1097
|
+
* });
|
|
1098
|
+
* export type ScriptLike = EncodableType<typeof ScriptCodec>;
|
|
1099
|
+
* @codec(ScriptCodec)
|
|
1053
1100
|
* export class Script extends Entity.Base<ScriptLike, Script>() {
|
|
1054
|
-
*
|
|
1101
|
+
* public codeHash: Hex;
|
|
1102
|
+
* public hashType: HashType;
|
|
1103
|
+
* public args: Hex;
|
|
1104
|
+
*
|
|
1105
|
+
* constructor({ codeHash, hashType, args }: DecodedType<typeof ScriptCodec>) {
|
|
1106
|
+
* super();
|
|
1107
|
+
*
|
|
1108
|
+
* this.codeHash = codeHash;
|
|
1109
|
+
* this.hashType = hashType;
|
|
1110
|
+
* this.args = args;
|
|
1111
|
+
* }
|
|
1055
1112
|
* }
|
|
1056
1113
|
* ```
|
|
1057
1114
|
*/
|
|
1058
|
-
declare function codec<Encodable, TypeLike extends Encodable,
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
}) => Decoded;
|
|
1063
|
-
byteLength?: number;
|
|
1064
|
-
}): <Type extends TypeLike, ConstructorType extends Constructor<Type> & {
|
|
1065
|
-
from(decoded: TypeLike): Type;
|
|
1066
|
-
byteLength?: number;
|
|
1067
|
-
encode(encodable: TypeLike): Bytes$1;
|
|
1068
|
-
decode(bytesLike: BytesLike): Type;
|
|
1069
|
-
fromBytes(bytes: BytesLike): Type;
|
|
1070
|
-
}>(Constructor: ConstructorType, ..._: unknown[]) => ConstructorType;
|
|
1115
|
+
declare function codec<Encodable, Decoded>(codecLike: CodecLike<Encodable, Decoded>): <TypeLike extends Encodable, Type extends TypeLike, ConstructorType extends Constructor<Type, [Decoded, ...any[]]>>(Constructor: ConstructorType & Omit<CodecLike<TypeLike, Type>, "from"> & {
|
|
1116
|
+
from: (encodable: TypeLike | Decoded) => Type;
|
|
1117
|
+
fromBytes: (bytes: BytesLike) => Type;
|
|
1118
|
+
}, ..._: unknown[]) => void;
|
|
1071
1119
|
//#endregion
|
|
1072
1120
|
//#region src/codec/predefined.d.ts
|
|
1073
1121
|
/**
|
|
@@ -1597,7 +1645,7 @@ declare class Signature {
|
|
|
1597
1645
|
* This class provides methods to connect, get addresses, and sign transactions.
|
|
1598
1646
|
* @public
|
|
1599
1647
|
*/
|
|
1600
|
-
declare abstract class Signer {
|
|
1648
|
+
declare abstract class Signer$1 {
|
|
1601
1649
|
protected client_: Client;
|
|
1602
1650
|
constructor(client_: Client);
|
|
1603
1651
|
abstract get type(): SignerType;
|
|
@@ -1605,6 +1653,7 @@ declare abstract class Signer {
|
|
|
1605
1653
|
get client(): Client;
|
|
1606
1654
|
matchNetworkPreference(preferences: NetworkPreference[], currentNetwork: string | undefined): NetworkPreference | undefined;
|
|
1607
1655
|
static verifyMessage(message: string | BytesLike, signature: Signature): Promise<boolean>;
|
|
1656
|
+
static fromSignature(_client: Client, _signature: Signature, _message?: string | BytesLike | null, ..._addresses: (string | string[])[]): Promise<Signer$1 | undefined>;
|
|
1608
1657
|
/**
|
|
1609
1658
|
* Connects to the signer.
|
|
1610
1659
|
*
|
|
@@ -1776,7 +1825,7 @@ declare abstract class Signer {
|
|
|
1776
1825
|
* An abstract class representing a multisig signer.
|
|
1777
1826
|
* @public
|
|
1778
1827
|
*/
|
|
1779
|
-
declare abstract class SignerMultisig extends Signer {
|
|
1828
|
+
declare abstract class SignerMultisig extends Signer$1 {
|
|
1780
1829
|
/**
|
|
1781
1830
|
* Get the number of members in the multisig script.
|
|
1782
1831
|
* @returns The number of members.
|
|
@@ -1853,8 +1902,8 @@ declare class SignerMultisigNotEnoughSignaturesError extends Error {
|
|
|
1853
1902
|
*/
|
|
1854
1903
|
declare class SignerInfo {
|
|
1855
1904
|
name: string;
|
|
1856
|
-
signer: Signer;
|
|
1857
|
-
constructor(name: string, signer: Signer);
|
|
1905
|
+
signer: Signer$1;
|
|
1906
|
+
constructor(name: string, signer: Signer$1);
|
|
1858
1907
|
}
|
|
1859
1908
|
/**
|
|
1860
1909
|
* Represents a wallet with a name, icon, and an array of signer information.
|
|
@@ -1872,7 +1921,7 @@ type Wallet = {
|
|
|
1872
1921
|
* as well as signing transactions.
|
|
1873
1922
|
* @public
|
|
1874
1923
|
*/
|
|
1875
|
-
declare abstract class SignerBtc extends Signer {
|
|
1924
|
+
declare abstract class SignerBtc extends Signer$1 {
|
|
1876
1925
|
get type(): SignerType;
|
|
1877
1926
|
get signType(): SignerSignType;
|
|
1878
1927
|
/**
|
|
@@ -2086,7 +2135,7 @@ declare function verifyMessageCkbSecp256k1(message: string | BytesLike, signatur
|
|
|
2086
2135
|
*
|
|
2087
2136
|
* @public
|
|
2088
2137
|
*/
|
|
2089
|
-
declare class SignerCkbAlwaysSuccess extends Signer {
|
|
2138
|
+
declare class SignerCkbAlwaysSuccess extends Signer$1 {
|
|
2090
2139
|
get type(): SignerType;
|
|
2091
2140
|
get signType(): SignerSignType;
|
|
2092
2141
|
/**
|
|
@@ -2117,7 +2166,7 @@ declare class SignerCkbAlwaysSuccess extends Signer {
|
|
|
2117
2166
|
/**
|
|
2118
2167
|
* @public
|
|
2119
2168
|
*/
|
|
2120
|
-
declare class SignerCkbPublicKey extends Signer {
|
|
2169
|
+
declare class SignerCkbPublicKey extends Signer$1 {
|
|
2121
2170
|
get type(): SignerType;
|
|
2122
2171
|
get signType(): SignerSignType;
|
|
2123
2172
|
readonly publicKey: Hex;
|
|
@@ -2156,7 +2205,7 @@ declare class SignerCkbPrivateKey extends SignerCkbPublicKey {
|
|
|
2156
2205
|
*
|
|
2157
2206
|
* @public
|
|
2158
2207
|
*/
|
|
2159
|
-
declare class SignerCkbScriptReadonly extends Signer {
|
|
2208
|
+
declare class SignerCkbScriptReadonly extends Signer$1 {
|
|
2160
2209
|
/**
|
|
2161
2210
|
* The type of the signer.
|
|
2162
2211
|
*/
|
|
@@ -2225,6 +2274,12 @@ type MultisigCkbWitnessLike = ({
|
|
|
2225
2274
|
mustMatch?: NumLike | null;
|
|
2226
2275
|
signatures?: HexLike[] | null;
|
|
2227
2276
|
};
|
|
2277
|
+
declare const MultisigCkbWitnessCodec: Codec<MultisigCkbWitnessLike, {
|
|
2278
|
+
publicKeyHashes: `0x${string}`[];
|
|
2279
|
+
threshold: number;
|
|
2280
|
+
mustMatch: number;
|
|
2281
|
+
signatures: `0x${string}`[];
|
|
2282
|
+
}>;
|
|
2228
2283
|
declare const MultisigCkbWitness_base: (abstract new () => {
|
|
2229
2284
|
toBytes(): Bytes$1;
|
|
2230
2285
|
clone(): MultisigCkbWitness;
|
|
@@ -2233,10 +2288,14 @@ declare const MultisigCkbWitness_base: (abstract new () => {
|
|
|
2233
2288
|
toHex(): Hex;
|
|
2234
2289
|
}) & {
|
|
2235
2290
|
byteLength?: number;
|
|
2236
|
-
encode(_: MultisigCkbWitnessLike)
|
|
2237
|
-
decode(_: BytesLike
|
|
2238
|
-
|
|
2239
|
-
|
|
2291
|
+
encode: (_: MultisigCkbWitnessLike) => Bytes$1;
|
|
2292
|
+
decode: (_: BytesLike, _config?: {
|
|
2293
|
+
isExtraFieldIgnored?: boolean;
|
|
2294
|
+
} | undefined) => MultisigCkbWitness;
|
|
2295
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
2296
|
+
isExtraFieldIgnored?: boolean;
|
|
2297
|
+
} | undefined) => MultisigCkbWitness;
|
|
2298
|
+
from: (_: MultisigCkbWitnessLike) => MultisigCkbWitness;
|
|
2240
2299
|
Base<SubTypeLike, SubType = SubTypeLike>(): (abstract new () => {
|
|
2241
2300
|
toBytes(): Bytes$1;
|
|
2242
2301
|
clone(): SubType;
|
|
@@ -2245,10 +2304,14 @@ declare const MultisigCkbWitness_base: (abstract new () => {
|
|
|
2245
2304
|
toHex(): Hex;
|
|
2246
2305
|
}) & {
|
|
2247
2306
|
byteLength?: number;
|
|
2248
|
-
encode(_: SubTypeLike)
|
|
2249
|
-
decode(_: BytesLike
|
|
2250
|
-
|
|
2251
|
-
|
|
2307
|
+
encode: (_: SubTypeLike) => Bytes$1;
|
|
2308
|
+
decode: (_: BytesLike, _config?: {
|
|
2309
|
+
isExtraFieldIgnored?: boolean;
|
|
2310
|
+
}) => SubType;
|
|
2311
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
2312
|
+
isExtraFieldIgnored?: boolean;
|
|
2313
|
+
}) => SubType;
|
|
2314
|
+
from: (_: SubTypeLike) => SubType;
|
|
2252
2315
|
Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
2253
2316
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
|
|
2254
2317
|
readonly inner: DecodedType<CodecType>;
|
|
@@ -2265,10 +2328,14 @@ declare const MultisigCkbWitness_base: (abstract new () => {
|
|
|
2265
2328
|
toHex(): Hex;
|
|
2266
2329
|
}) & {
|
|
2267
2330
|
byteLength?: number;
|
|
2268
|
-
encode(_: SubTypeLike_1)
|
|
2269
|
-
decode(_: BytesLike
|
|
2270
|
-
|
|
2271
|
-
|
|
2331
|
+
encode: (_: SubTypeLike_1) => Bytes$1;
|
|
2332
|
+
decode: (_: BytesLike, _config?: {
|
|
2333
|
+
isExtraFieldIgnored?: boolean;
|
|
2334
|
+
} | undefined) => SubType_1;
|
|
2335
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
2336
|
+
isExtraFieldIgnored?: boolean;
|
|
2337
|
+
} | undefined) => SubType_1;
|
|
2338
|
+
from: (_: SubTypeLike_1) => SubType_1;
|
|
2272
2339
|
Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
2273
2340
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
|
|
2274
2341
|
};
|
|
@@ -2288,10 +2355,14 @@ declare const MultisigCkbWitness_base: (abstract new () => {
|
|
|
2288
2355
|
toHex(): Hex;
|
|
2289
2356
|
}) & {
|
|
2290
2357
|
byteLength?: number;
|
|
2291
|
-
encode(_: SubTypeLike)
|
|
2292
|
-
decode(_: BytesLike
|
|
2293
|
-
|
|
2294
|
-
|
|
2358
|
+
encode: (_: SubTypeLike) => Bytes$1;
|
|
2359
|
+
decode: (_: BytesLike, _config?: {
|
|
2360
|
+
isExtraFieldIgnored?: boolean;
|
|
2361
|
+
} | undefined) => SubType;
|
|
2362
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
2363
|
+
isExtraFieldIgnored?: boolean;
|
|
2364
|
+
} | undefined) => SubType;
|
|
2365
|
+
from: (_: SubTypeLike) => SubType;
|
|
2295
2366
|
Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
|
|
2296
2367
|
toBytes(): Bytes$1;
|
|
2297
2368
|
clone(): SubType_1;
|
|
@@ -2300,10 +2371,14 @@ declare const MultisigCkbWitness_base: (abstract new () => {
|
|
|
2300
2371
|
toHex(): Hex;
|
|
2301
2372
|
}) & {
|
|
2302
2373
|
byteLength?: number;
|
|
2303
|
-
encode(_: SubTypeLike_1)
|
|
2304
|
-
decode(_: BytesLike
|
|
2305
|
-
|
|
2306
|
-
|
|
2374
|
+
encode: (_: SubTypeLike_1) => Bytes$1;
|
|
2375
|
+
decode: (_: BytesLike, _config?: {
|
|
2376
|
+
isExtraFieldIgnored?: boolean;
|
|
2377
|
+
}) => SubType_1;
|
|
2378
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
2379
|
+
isExtraFieldIgnored?: boolean;
|
|
2380
|
+
}) => SubType_1;
|
|
2381
|
+
from: (_: SubTypeLike_1) => SubType_1;
|
|
2307
2382
|
Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
|
|
2308
2383
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
2309
2384
|
};
|
|
@@ -2325,7 +2400,7 @@ declare class MultisigCkbWitness extends MultisigCkbWitness_base {
|
|
|
2325
2400
|
* @param mustMatch - The number of signatures that must match.
|
|
2326
2401
|
* @param signatures - The signatures.
|
|
2327
2402
|
*/
|
|
2328
|
-
constructor(publicKeyHashes
|
|
2403
|
+
constructor({ publicKeyHashes, threshold, mustMatch, signatures }: DecodedType<typeof MultisigCkbWitnessCodec>);
|
|
2329
2404
|
/**
|
|
2330
2405
|
* Create a MultisigCkbWitness from a MultisigCkbWitnessLike.
|
|
2331
2406
|
*
|
|
@@ -2548,7 +2623,7 @@ declare function verifyMessageJoyId(message: string | BytesLike, signature: stri
|
|
|
2548
2623
|
* as well as signing transactions.
|
|
2549
2624
|
* @public
|
|
2550
2625
|
*/
|
|
2551
|
-
declare abstract class SignerDoge extends Signer {
|
|
2626
|
+
declare abstract class SignerDoge extends Signer$1 {
|
|
2552
2627
|
get type(): SignerType;
|
|
2553
2628
|
get signType(): SignerSignType;
|
|
2554
2629
|
/**
|
|
@@ -2701,7 +2776,7 @@ declare function verifyMessageDogeEcdsa(message: string | BytesLike, signature:
|
|
|
2701
2776
|
/**
|
|
2702
2777
|
* @public
|
|
2703
2778
|
*/
|
|
2704
|
-
declare abstract class SignerDummy extends Signer {
|
|
2779
|
+
declare abstract class SignerDummy extends Signer$1 {
|
|
2705
2780
|
readonly type: SignerType;
|
|
2706
2781
|
get signType(): SignerSignType;
|
|
2707
2782
|
constructor(client: Client, type: SignerType);
|
|
@@ -2736,7 +2811,7 @@ declare class SignerOpenLink extends SignerDummy {
|
|
|
2736
2811
|
* This class provides methods to get EVM account, internal address, and signing transactions.
|
|
2737
2812
|
* @public
|
|
2738
2813
|
*/
|
|
2739
|
-
declare abstract class SignerEvm extends Signer {
|
|
2814
|
+
declare abstract class SignerEvm extends Signer$1 {
|
|
2740
2815
|
get type(): SignerType;
|
|
2741
2816
|
get signType(): SignerSignType;
|
|
2742
2817
|
/**
|
|
@@ -2851,7 +2926,7 @@ interface NostrEvent {
|
|
|
2851
2926
|
/**
|
|
2852
2927
|
* @public
|
|
2853
2928
|
*/
|
|
2854
|
-
declare abstract class SignerNostr extends Signer {
|
|
2929
|
+
declare abstract class SignerNostr extends Signer$1 {
|
|
2855
2930
|
static CKB_SIG_HASH_ALL_TAG: string;
|
|
2856
2931
|
static CKB_UNLOCK_EVENT_KIND: number;
|
|
2857
2932
|
static CKB_UNLOCK_EVENT_CONTENT: string;
|
|
@@ -2934,8 +3009,26 @@ declare class SignerNostrPrivateKey extends SignerNostrPublicKeyReadonly {
|
|
|
2934
3009
|
declare function buildNostrEventFromMessage(message: string | BytesLike): NostrEvent;
|
|
2935
3010
|
declare function nostrEventHash(event: NostrEvent): Bytes$1;
|
|
2936
3011
|
declare function verifyMessageNostrEvent(message: string | BytesLike, signature: string, address: string): boolean;
|
|
3012
|
+
//#endregion
|
|
3013
|
+
//#region src/signer/signerFromSignature.d.ts
|
|
3014
|
+
/**
|
|
3015
|
+
* Creates a signer from a signature.
|
|
3016
|
+
*
|
|
3017
|
+
* @param client - The client instance.
|
|
3018
|
+
* @param signature - The signature to create the signer from.
|
|
3019
|
+
* @param message - The message that was signed.
|
|
3020
|
+
* @param addresses - The addresses to check against the signer.
|
|
3021
|
+
* @returns The signer if the signature is valid and the addresses match, otherwise undefined.
|
|
3022
|
+
* @throws Error if the signature sign type is unknown.
|
|
3023
|
+
*/
|
|
3024
|
+
declare function signerFromSignature(client: Client, signature: Signature, message?: string | BytesLike | null, ...addresses: (string | string[])[]): Promise<Signer$1 | undefined>;
|
|
3025
|
+
//#endregion
|
|
3026
|
+
//#region src/signer/index.d.ts
|
|
3027
|
+
declare abstract class Signer extends Signer$1 {
|
|
3028
|
+
static fromSignature(client: Client, signature: Signature, message?: string | BytesLike | null, ...addresses: (string | string[])[]): Promise<Signer | undefined>;
|
|
3029
|
+
}
|
|
2937
3030
|
declare namespace barrel_d_exports {
|
|
2938
|
-
export { Address, AddressLike, Bytes$1 as Bytes, BytesLike, Cell, CellAny, CellAnyLike, CellDep, CellDepInfo, CellDepInfoLike, CellDepLike, CellDepVec, CellInput, CellInputLike, CellInputVec, CellLike, CellOutput, CellOutputLike, CellOutputVec, Client, ClientBlock, ClientBlockHeader, ClientBlockHeaderLike, ClientBlockLike, ClientBlockUncle, ClientBlockUncleLike, ClientCache, ClientCacheMemory, ClientFindCellsResponse, ClientFindTransactionsGroupedResponse, ClientFindTransactionsResponse, ClientIndexerSearchKey, ClientIndexerSearchKeyFilter, ClientIndexerSearchKeyFilterLike, ClientIndexerSearchKeyLike, ClientIndexerSearchKeyTransaction, ClientIndexerSearchKeyTransactionLike, ClientJsonRpc, ClientJsonRpcConfig, ClientPublicMainnet, ClientPublicTestnet, ClientTransactionResponse, ClientTransactionResponseLike, Codec, CodecBool, CodecByte, CodecByte16, CodecByte32, CodecByte4, CodecByte8, CodecBytes, CodecLike, CodecRaw, CodecUint128, CodecUint128BE, CodecUint128LE, CodecUint16, CodecUint16BE, CodecUint16LE, CodecUint256, CodecUint256BE, CodecUint256LE, CodecUint32, CodecUint32BE, CodecUint32LE, CodecUint512, CodecUint512BE, CodecUint512LE, CodecUint64, CodecUint64BE, CodecUint64LE, CodecUint8, Constructor, DecodedType, DepType, DepTypeCodec, DepTypeLike, EncodableType, Entity, Epoch, EpochLike, ErrorClientBase, ErrorClientBaseLike, ErrorClientDuplicatedTransaction, ErrorClientMaxFeeRateExceeded, ErrorClientRBFRejected, ErrorClientResolveUnknown, ErrorClientVerification, ErrorClientWaitTransactionTimeout, ErrorTransactionInsufficientCapacity, ErrorTransactionInsufficientCoin, FixedPoint, FixedPointLike, HASH_CKB_LENGTH, HASH_CKB_SHORT_LENGTH, HashType, HashTypeCodec, HashTypeLike, Hasher, HasherCkb, HasherKeecak256, Hex, HexLike, InputToSign, InputToSignLike, KnownScript, LumosTransactionSkeletonType, MultisigCkbWitness, MultisigCkbWitnessLike, NetworkPreference, NostrEvent, Num, NumLike, One, OutPoint, OutPointLike, OutputsValidator, RawTransaction, RequestorJsonRpc, RequestorJsonRpcConfig, SECP256K1_SIGNATURE_LENGTH, Script, ScriptInfo, ScriptInfoLike, ScriptLike, ScriptOpt, ScriptVec, SignPsbtOptions, SignPsbtOptionsLike, Signature, Signer, SignerAlwaysError, SignerBtc, SignerBtcPublicKeyReadonly, SignerCkbAlwaysSuccess, SignerCkbPrivateKey, SignerCkbPublicKey, SignerCkbScriptReadonly, SignerDoge, SignerDogeAddressReadonly, SignerDogePrivateKey, SignerDummy, SignerEvm, SignerEvmAddressReadonly, SignerInfo, SignerMultisig, SignerMultisigCkbPrivateKey, SignerMultisigCkbReadonly, SignerMultisigNotEnoughSignaturesError, SignerNostr, SignerNostrPrivateKey, SignerNostrPublicKeyReadonly, SignerOpenLink, SignerSignType, SignerType, Since, SinceLike, Transaction, TransactionLike, TransactionStatus, Wallet, WitnessArgs, WitnessArgsLike, Zero, apply, btcEcdsaPublicKeyHash, btcP2pkhAddressFromPublicKey, btcPublicKeyFromP2pkhAddress, btcVarLengthBytesFrom, buildNostrEventFromMessage, bytesConcat, bytesConcatTo, bytesEq, bytesFrom, bytesLen, bytesLenUnsafe, bytesTo, calcDaoClaimEpoch, calcDaoProfit, codec, codecPadding, codecUint, codecUintNumber, depTypeFrom, depTypeFromBytes, depTypeToBytes, epochFrom, epochFromHex, epochToHex, fixedPointFrom, fixedPointToString, gcd, hashCkb, hashCkbShort, hashTypeFrom, hashTypeFromBytes, hashTypeId, hashTypeToBytes, hexFrom, isDaoOutputLimitExceeded, isWebview, keystoreDecrypt, keystoreEncrypt, messageHashBtcEcdsa, messageHashCkbSecp256k1, messageHashDogeEcdsa, barrel_d_exports$1 as mol, nostrEventHash, numBeFromBytes, numBeToBytes, numFrom, numFromBytes, numLeFromBytes, numLeToBytes, numMax, numMin, numToBytes, numToHex, recoverMessageSecp256k1, reduceAsync, signMessageSecp256k1, sleep, stringify, udtBalanceFrom, verifyMessageBtcEcdsa, verifyMessageCkbSecp256k1, verifyMessageDogeEcdsa, verifyMessageEvmPersonal, verifyMessageJoyId, verifyMessageNostrEvent, verifyMessageSecp256k1 };
|
|
3031
|
+
export { Address, AddressLike, Bytes$1 as Bytes, BytesLike, Cell, CellAny, CellAnyLike, CellDep, CellDepInfo, CellDepInfoLike, CellDepLike, CellDepVec, CellInput, CellInputLike, CellInputVec, CellLike, CellOutput, CellOutputLike, CellOutputVec, Client, ClientBlock, ClientBlockHeader, ClientBlockHeaderLike, ClientBlockLike, ClientBlockUncle, ClientBlockUncleLike, ClientCache, ClientCacheMemory, ClientFindCellsResponse, ClientFindTransactionsGroupedResponse, ClientFindTransactionsResponse, ClientIndexerSearchKey, ClientIndexerSearchKeyFilter, ClientIndexerSearchKeyFilterLike, ClientIndexerSearchKeyLike, ClientIndexerSearchKeyTransaction, ClientIndexerSearchKeyTransactionLike, ClientJsonRpc, ClientJsonRpcConfig, ClientPublicMainnet, ClientPublicTestnet, ClientTransactionResponse, ClientTransactionResponseLike, Codec, CodecBool, CodecByte, CodecByte16, CodecByte32, CodecByte4, CodecByte8, CodecBytes, CodecLike, CodecRaw, CodecUint128, CodecUint128BE, CodecUint128LE, CodecUint16, CodecUint16BE, CodecUint16LE, CodecUint256, CodecUint256BE, CodecUint256LE, CodecUint32, CodecUint32BE, CodecUint32LE, CodecUint512, CodecUint512BE, CodecUint512LE, CodecUint64, CodecUint64BE, CodecUint64LE, CodecUint8, Constructor, DecodedType, DepType, DepTypeCodec, DepTypeLike, EncodableType, Entity, Epoch, EpochLike, ErrorClientBase, ErrorClientBaseLike, ErrorClientDuplicatedTransaction, ErrorClientMaxFeeRateExceeded, ErrorClientRBFRejected, ErrorClientResolveUnknown, ErrorClientVerification, ErrorClientWaitTransactionTimeout, ErrorTransactionInsufficientCapacity, ErrorTransactionInsufficientCoin, FixedPoint, FixedPointLike, HASH_CKB_LENGTH, HASH_CKB_SHORT_LENGTH, HashType, HashTypeCodec, HashTypeLike, Hasher, HasherCkb, HasherKeecak256, Hex, HexLike, InputToSign, InputToSignLike, KnownScript, LumosTransactionSkeletonType, MultisigCkbWitness, MultisigCkbWitnessLike, NetworkPreference, NostrEvent, Num, NumLike, One, OutPoint, OutPointLike, OutputsValidator, RawTransaction, RequestorJsonRpc, RequestorJsonRpcConfig, SECP256K1_SIGNATURE_LENGTH, Script, ScriptInfo, ScriptInfoLike, ScriptLike, ScriptOpt, ScriptVec, SignPsbtOptions, SignPsbtOptionsLike, Signature, Signer, SignerAlwaysError, SignerBtc, SignerBtcPublicKeyReadonly, SignerCkbAlwaysSuccess, SignerCkbPrivateKey, SignerCkbPublicKey, SignerCkbScriptReadonly, SignerDoge, SignerDogeAddressReadonly, SignerDogePrivateKey, SignerDummy, SignerEvm, SignerEvmAddressReadonly, SignerInfo, SignerMultisig, SignerMultisigCkbPrivateKey, SignerMultisigCkbReadonly, SignerMultisigNotEnoughSignaturesError, SignerNostr, SignerNostrPrivateKey, SignerNostrPublicKeyReadonly, SignerOpenLink, SignerSignType, SignerType, Since, SinceLike, Transaction, TransactionLike, TransactionStatus, Wallet, WitnessArgs, WitnessArgsLike, Zero, apply, btcEcdsaPublicKeyHash, btcP2pkhAddressFromPublicKey, btcPublicKeyFromP2pkhAddress, btcVarLengthBytesFrom, buildNostrEventFromMessage, bytesConcat, bytesConcatTo, bytesEq, bytesFrom, bytesLen, bytesLenUnsafe, bytesTo, calcDaoClaimEpoch, calcDaoProfit, codec, codecPadding, codecUint, codecUintNumber, depTypeFrom, depTypeFromBytes, depTypeToBytes, epochFrom, epochFromHex, epochToHex, fixedPointFrom, fixedPointToString, gcd, hashCkb, hashCkbShort, hashTypeFrom, hashTypeFromBytes, hashTypeId, hashTypeToBytes, hexFrom, isDaoOutputLimitExceeded, isWebview, keystoreDecrypt, keystoreEncrypt, messageHashBtcEcdsa, messageHashCkbSecp256k1, messageHashDogeEcdsa, barrel_d_exports$1 as mol, nostrEventHash, numBeFromBytes, numBeToBytes, numFrom, numFromBytes, numLeFromBytes, numLeToBytes, numMax, numMin, numToBytes, numToHex, recoverMessageSecp256k1, reduce, reduceAsync, signMessageSecp256k1, signerFromSignature, sleep, stringify, udtBalanceFrom, verifyMessageBtcEcdsa, verifyMessageCkbSecp256k1, verifyMessageDogeEcdsa, verifyMessageEvmPersonal, verifyMessageJoyId, verifyMessageNostrEvent, verifyMessageSecp256k1 };
|
|
2939
3032
|
}
|
|
2940
3033
|
//#endregion
|
|
2941
3034
|
//#region src/client/clientTypes.advanced.d.ts
|
|
@@ -3316,6 +3409,17 @@ type EpochLike = [NumLike, NumLike, NumLike] | {
|
|
|
3316
3409
|
numerator: NumLike;
|
|
3317
3410
|
denominator: NumLike;
|
|
3318
3411
|
} | Num | Hex;
|
|
3412
|
+
declare const EpochCodec: Codec<EncodableRecord<{
|
|
3413
|
+
padding: Codec<void | null | undefined, void>;
|
|
3414
|
+
denominator: Codec<NumLike, bigint>;
|
|
3415
|
+
numerator: Codec<NumLike, bigint>;
|
|
3416
|
+
integer: Codec<NumLike, bigint>;
|
|
3417
|
+
}>, DecodedRecord<{
|
|
3418
|
+
padding: Codec<void | null | undefined, void>;
|
|
3419
|
+
denominator: Codec<NumLike, bigint>;
|
|
3420
|
+
numerator: Codec<NumLike, bigint>;
|
|
3421
|
+
integer: Codec<NumLike, bigint>;
|
|
3422
|
+
}>>;
|
|
3319
3423
|
declare const Epoch_base: (abstract new () => {
|
|
3320
3424
|
toBytes(): Bytes$1;
|
|
3321
3425
|
clone(): Epoch;
|
|
@@ -3324,10 +3428,14 @@ declare const Epoch_base: (abstract new () => {
|
|
|
3324
3428
|
toHex(): Hex;
|
|
3325
3429
|
}) & {
|
|
3326
3430
|
byteLength?: number;
|
|
3327
|
-
encode(_: EpochLike)
|
|
3328
|
-
decode(_: BytesLike
|
|
3329
|
-
|
|
3330
|
-
|
|
3431
|
+
encode: (_: EpochLike) => Bytes$1;
|
|
3432
|
+
decode: (_: BytesLike, _config?: {
|
|
3433
|
+
isExtraFieldIgnored?: boolean;
|
|
3434
|
+
} | undefined) => Epoch;
|
|
3435
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
3436
|
+
isExtraFieldIgnored?: boolean;
|
|
3437
|
+
} | undefined) => Epoch;
|
|
3438
|
+
from: (_: EpochLike) => Epoch;
|
|
3331
3439
|
Base<SubTypeLike, SubType = SubTypeLike>(): (abstract new () => {
|
|
3332
3440
|
toBytes(): Bytes$1;
|
|
3333
3441
|
clone(): SubType;
|
|
@@ -3336,10 +3444,14 @@ declare const Epoch_base: (abstract new () => {
|
|
|
3336
3444
|
toHex(): Hex;
|
|
3337
3445
|
}) & {
|
|
3338
3446
|
byteLength?: number;
|
|
3339
|
-
encode(_: SubTypeLike)
|
|
3340
|
-
decode(_: BytesLike
|
|
3341
|
-
|
|
3342
|
-
|
|
3447
|
+
encode: (_: SubTypeLike) => Bytes$1;
|
|
3448
|
+
decode: (_: BytesLike, _config?: {
|
|
3449
|
+
isExtraFieldIgnored?: boolean;
|
|
3450
|
+
}) => SubType;
|
|
3451
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
3452
|
+
isExtraFieldIgnored?: boolean;
|
|
3453
|
+
}) => SubType;
|
|
3454
|
+
from: (_: SubTypeLike) => SubType;
|
|
3343
3455
|
Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
3344
3456
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
|
|
3345
3457
|
readonly inner: DecodedType<CodecType>;
|
|
@@ -3356,10 +3468,14 @@ declare const Epoch_base: (abstract new () => {
|
|
|
3356
3468
|
toHex(): Hex;
|
|
3357
3469
|
}) & {
|
|
3358
3470
|
byteLength?: number;
|
|
3359
|
-
encode(_: SubTypeLike_1)
|
|
3360
|
-
decode(_: BytesLike
|
|
3361
|
-
|
|
3362
|
-
|
|
3471
|
+
encode: (_: SubTypeLike_1) => Bytes$1;
|
|
3472
|
+
decode: (_: BytesLike, _config?: {
|
|
3473
|
+
isExtraFieldIgnored?: boolean;
|
|
3474
|
+
} | undefined) => SubType_1;
|
|
3475
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
3476
|
+
isExtraFieldIgnored?: boolean;
|
|
3477
|
+
} | undefined) => SubType_1;
|
|
3478
|
+
from: (_: SubTypeLike_1) => SubType_1;
|
|
3363
3479
|
Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
3364
3480
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
|
|
3365
3481
|
};
|
|
@@ -3379,10 +3495,14 @@ declare const Epoch_base: (abstract new () => {
|
|
|
3379
3495
|
toHex(): Hex;
|
|
3380
3496
|
}) & {
|
|
3381
3497
|
byteLength?: number;
|
|
3382
|
-
encode(_: SubTypeLike)
|
|
3383
|
-
decode(_: BytesLike
|
|
3384
|
-
|
|
3385
|
-
|
|
3498
|
+
encode: (_: SubTypeLike) => Bytes$1;
|
|
3499
|
+
decode: (_: BytesLike, _config?: {
|
|
3500
|
+
isExtraFieldIgnored?: boolean;
|
|
3501
|
+
} | undefined) => SubType;
|
|
3502
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
3503
|
+
isExtraFieldIgnored?: boolean;
|
|
3504
|
+
} | undefined) => SubType;
|
|
3505
|
+
from: (_: SubTypeLike) => SubType;
|
|
3386
3506
|
Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
|
|
3387
3507
|
toBytes(): Bytes$1;
|
|
3388
3508
|
clone(): SubType_1;
|
|
@@ -3391,10 +3511,14 @@ declare const Epoch_base: (abstract new () => {
|
|
|
3391
3511
|
toHex(): Hex;
|
|
3392
3512
|
}) & {
|
|
3393
3513
|
byteLength?: number;
|
|
3394
|
-
encode(_: SubTypeLike_1)
|
|
3395
|
-
decode(_: BytesLike
|
|
3396
|
-
|
|
3397
|
-
|
|
3514
|
+
encode: (_: SubTypeLike_1) => Bytes$1;
|
|
3515
|
+
decode: (_: BytesLike, _config?: {
|
|
3516
|
+
isExtraFieldIgnored?: boolean;
|
|
3517
|
+
}) => SubType_1;
|
|
3518
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
3519
|
+
isExtraFieldIgnored?: boolean;
|
|
3520
|
+
}) => SubType_1;
|
|
3521
|
+
from: (_: SubTypeLike_1) => SubType_1;
|
|
3398
3522
|
Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
|
|
3399
3523
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
3400
3524
|
};
|
|
@@ -3431,7 +3555,7 @@ declare class Epoch extends Epoch_base {
|
|
|
3431
3555
|
* @param numerator - Fractional numerator (Num).
|
|
3432
3556
|
* @param denominator - Fractional denominator (Num).
|
|
3433
3557
|
*/
|
|
3434
|
-
constructor(integer
|
|
3558
|
+
constructor({ integer, numerator, denominator }: Omit<DecodedType<typeof EpochCodec>, "padding">);
|
|
3435
3559
|
/**
|
|
3436
3560
|
* Normalize simpler base invariants:
|
|
3437
3561
|
* - If denominator === 0, set denominator to 1 and numerator to 0 for arithmetic convenience.
|
|
@@ -3742,26 +3866,47 @@ declare function hashTypeToBytes(hashType: HashTypeLike): Bytes$1;
|
|
|
3742
3866
|
* ```
|
|
3743
3867
|
*/
|
|
3744
3868
|
declare function hashTypeFromBytes(bytes: BytesLike): HashType;
|
|
3869
|
+
declare const ScriptCodec: Codec<EncodableRecord<{
|
|
3870
|
+
codeHash: Codec<BytesLike, `0x${string}`>;
|
|
3871
|
+
hashType: Codec<HashTypeLike, HashType>;
|
|
3872
|
+
args: Codec<BytesLike, `0x${string}`>;
|
|
3873
|
+
}>, DecodedRecord<{
|
|
3874
|
+
codeHash: Codec<BytesLike, `0x${string}`>;
|
|
3875
|
+
hashType: Codec<HashTypeLike, HashType>;
|
|
3876
|
+
args: Codec<BytesLike, `0x${string}`>;
|
|
3877
|
+
}>>;
|
|
3745
3878
|
/**
|
|
3746
3879
|
* @public
|
|
3747
3880
|
*/
|
|
3748
|
-
type ScriptLike =
|
|
3749
|
-
codeHash: BytesLike;
|
|
3750
|
-
hashType: HashTypeLike;
|
|
3751
|
-
args: BytesLike;
|
|
3752
|
-
};
|
|
3881
|
+
type ScriptLike = EncodableType<typeof ScriptCodec>;
|
|
3753
3882
|
declare const Script_base: (abstract new () => {
|
|
3754
3883
|
toBytes(): Bytes$1;
|
|
3755
3884
|
clone(): Script;
|
|
3756
|
-
eq(other:
|
|
3885
|
+
eq(other: {} & {
|
|
3886
|
+
codeHash: BytesLike;
|
|
3887
|
+
hashType: HashTypeLike;
|
|
3888
|
+
args: BytesLike;
|
|
3889
|
+
}): boolean;
|
|
3757
3890
|
hash(): Hex;
|
|
3758
3891
|
toHex(): Hex;
|
|
3759
3892
|
}) & {
|
|
3760
3893
|
byteLength?: number;
|
|
3761
|
-
encode(_:
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3894
|
+
encode: (_: {} & {
|
|
3895
|
+
codeHash: BytesLike;
|
|
3896
|
+
hashType: HashTypeLike;
|
|
3897
|
+
args: BytesLike;
|
|
3898
|
+
}) => Bytes$1;
|
|
3899
|
+
decode: (_: BytesLike, _config?: {
|
|
3900
|
+
isExtraFieldIgnored?: boolean;
|
|
3901
|
+
} | undefined) => Script;
|
|
3902
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
3903
|
+
isExtraFieldIgnored?: boolean;
|
|
3904
|
+
} | undefined) => Script;
|
|
3905
|
+
from: (_: {} & {
|
|
3906
|
+
codeHash: BytesLike;
|
|
3907
|
+
hashType: HashTypeLike;
|
|
3908
|
+
args: BytesLike;
|
|
3909
|
+
}) => Script;
|
|
3765
3910
|
Base<SubTypeLike, SubType = SubTypeLike>(): (abstract new () => {
|
|
3766
3911
|
toBytes(): Bytes$1;
|
|
3767
3912
|
clone(): SubType;
|
|
@@ -3770,10 +3915,14 @@ declare const Script_base: (abstract new () => {
|
|
|
3770
3915
|
toHex(): Hex;
|
|
3771
3916
|
}) & {
|
|
3772
3917
|
byteLength?: number;
|
|
3773
|
-
encode(_: SubTypeLike)
|
|
3774
|
-
decode(_: BytesLike
|
|
3775
|
-
|
|
3776
|
-
|
|
3918
|
+
encode: (_: SubTypeLike) => Bytes$1;
|
|
3919
|
+
decode: (_: BytesLike, _config?: {
|
|
3920
|
+
isExtraFieldIgnored?: boolean;
|
|
3921
|
+
}) => SubType;
|
|
3922
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
3923
|
+
isExtraFieldIgnored?: boolean;
|
|
3924
|
+
}) => SubType;
|
|
3925
|
+
from: (_: SubTypeLike) => SubType;
|
|
3777
3926
|
Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
3778
3927
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
|
|
3779
3928
|
readonly inner: DecodedType<CodecType>;
|
|
@@ -3790,10 +3939,14 @@ declare const Script_base: (abstract new () => {
|
|
|
3790
3939
|
toHex(): Hex;
|
|
3791
3940
|
}) & {
|
|
3792
3941
|
byteLength?: number;
|
|
3793
|
-
encode(_: SubTypeLike_1)
|
|
3794
|
-
decode(_: BytesLike
|
|
3795
|
-
|
|
3796
|
-
|
|
3942
|
+
encode: (_: SubTypeLike_1) => Bytes$1;
|
|
3943
|
+
decode: (_: BytesLike, _config?: {
|
|
3944
|
+
isExtraFieldIgnored?: boolean;
|
|
3945
|
+
} | undefined) => SubType_1;
|
|
3946
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
3947
|
+
isExtraFieldIgnored?: boolean;
|
|
3948
|
+
} | undefined) => SubType_1;
|
|
3949
|
+
from: (_: SubTypeLike_1) => SubType_1;
|
|
3797
3950
|
Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
3798
3951
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
|
|
3799
3952
|
};
|
|
@@ -3813,10 +3966,14 @@ declare const Script_base: (abstract new () => {
|
|
|
3813
3966
|
toHex(): Hex;
|
|
3814
3967
|
}) & {
|
|
3815
3968
|
byteLength?: number;
|
|
3816
|
-
encode(_: SubTypeLike)
|
|
3817
|
-
decode(_: BytesLike
|
|
3818
|
-
|
|
3819
|
-
|
|
3969
|
+
encode: (_: SubTypeLike) => Bytes$1;
|
|
3970
|
+
decode: (_: BytesLike, _config?: {
|
|
3971
|
+
isExtraFieldIgnored?: boolean;
|
|
3972
|
+
} | undefined) => SubType;
|
|
3973
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
3974
|
+
isExtraFieldIgnored?: boolean;
|
|
3975
|
+
} | undefined) => SubType;
|
|
3976
|
+
from: (_: SubTypeLike) => SubType;
|
|
3820
3977
|
Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
|
|
3821
3978
|
toBytes(): Bytes$1;
|
|
3822
3979
|
clone(): SubType_1;
|
|
@@ -3825,10 +3982,14 @@ declare const Script_base: (abstract new () => {
|
|
|
3825
3982
|
toHex(): Hex;
|
|
3826
3983
|
}) & {
|
|
3827
3984
|
byteLength?: number;
|
|
3828
|
-
encode(_: SubTypeLike_1)
|
|
3829
|
-
decode(_: BytesLike
|
|
3830
|
-
|
|
3831
|
-
|
|
3985
|
+
encode: (_: SubTypeLike_1) => Bytes$1;
|
|
3986
|
+
decode: (_: BytesLike, _config?: {
|
|
3987
|
+
isExtraFieldIgnored?: boolean;
|
|
3988
|
+
}) => SubType_1;
|
|
3989
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
3990
|
+
isExtraFieldIgnored?: boolean;
|
|
3991
|
+
}) => SubType_1;
|
|
3992
|
+
from: (_: SubTypeLike_1) => SubType_1;
|
|
3832
3993
|
Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
|
|
3833
3994
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
3834
3995
|
};
|
|
@@ -3849,7 +4010,7 @@ declare class Script extends Script_base {
|
|
|
3849
4010
|
* @param hashType - The hash type of the script.
|
|
3850
4011
|
* @param args - The arguments for the script.
|
|
3851
4012
|
*/
|
|
3852
|
-
constructor(codeHash
|
|
4013
|
+
constructor({ codeHash, hashType, args }: DecodedType<typeof ScriptCodec>);
|
|
3853
4014
|
get occupiedSize(): number;
|
|
3854
4015
|
/**
|
|
3855
4016
|
* Clone a script.
|
|
@@ -3874,22 +4035,6 @@ declare class Script extends Script_base {
|
|
|
3874
4035
|
* ```
|
|
3875
4036
|
*/
|
|
3876
4037
|
eq(other: ScriptLike): boolean;
|
|
3877
|
-
/**
|
|
3878
|
-
* Creates a Script instance from a ScriptLike object.
|
|
3879
|
-
*
|
|
3880
|
-
* @param script - A ScriptLike object or an instance of Script.
|
|
3881
|
-
* @returns A Script instance.
|
|
3882
|
-
*
|
|
3883
|
-
* @example
|
|
3884
|
-
* ```typescript
|
|
3885
|
-
* const script = Script.from({
|
|
3886
|
-
* codeHash: "0x1234...",
|
|
3887
|
-
* hashType: "type",
|
|
3888
|
-
* args: "0xabcd..."
|
|
3889
|
-
* });
|
|
3890
|
-
* ```
|
|
3891
|
-
*/
|
|
3892
|
-
static from(script: ScriptLike): Script;
|
|
3893
4038
|
/**
|
|
3894
4039
|
* Creates a Script instance from client and known script.
|
|
3895
4040
|
*
|
|
@@ -3909,8 +4054,16 @@ declare class Script extends Script_base {
|
|
|
3909
4054
|
*/
|
|
3910
4055
|
static fromKnownScript(client: Client, knownScript: KnownScript, args: HexLike): Promise<Script>;
|
|
3911
4056
|
}
|
|
3912
|
-
declare const ScriptOpt: Codec<
|
|
3913
|
-
|
|
4057
|
+
declare const ScriptOpt: Codec<({} & {
|
|
4058
|
+
codeHash: BytesLike;
|
|
4059
|
+
hashType: HashTypeLike;
|
|
4060
|
+
args: BytesLike;
|
|
4061
|
+
}) | null | undefined, Script | undefined>;
|
|
4062
|
+
declare const ScriptVec: Codec<({} & {
|
|
4063
|
+
codeHash: BytesLike;
|
|
4064
|
+
hashType: HashTypeLike;
|
|
4065
|
+
args: BytesLike;
|
|
4066
|
+
})[], Script[]>;
|
|
3914
4067
|
//#endregion
|
|
3915
4068
|
//#region src/ckb/transactionLumos.d.ts
|
|
3916
4069
|
interface LumosTransactionSkeletonType {
|
|
@@ -3998,22 +4151,42 @@ declare function depTypeFromBytes(bytes: BytesLike): DepType;
|
|
|
3998
4151
|
/**
|
|
3999
4152
|
* @public
|
|
4000
4153
|
*/
|
|
4001
|
-
|
|
4002
|
-
txHash:
|
|
4003
|
-
index: NumLike
|
|
4004
|
-
}
|
|
4154
|
+
declare const OutPointCodec: Codec<EncodableRecord<{
|
|
4155
|
+
txHash: Codec<BytesLike, `0x${string}`>;
|
|
4156
|
+
index: Codec<NumLike, number>;
|
|
4157
|
+
}>, DecodedRecord<{
|
|
4158
|
+
txHash: Codec<BytesLike, `0x${string}`>;
|
|
4159
|
+
index: Codec<NumLike, number>;
|
|
4160
|
+
}>>;
|
|
4161
|
+
/**
|
|
4162
|
+
* @public
|
|
4163
|
+
*/
|
|
4164
|
+
type OutPointLike = EncodableType<typeof OutPointCodec>;
|
|
4005
4165
|
declare const OutPoint_base: (abstract new () => {
|
|
4006
4166
|
toBytes(): Bytes$1;
|
|
4007
4167
|
clone(): OutPoint;
|
|
4008
|
-
eq(other:
|
|
4168
|
+
eq(other: {} & {
|
|
4169
|
+
txHash: BytesLike;
|
|
4170
|
+
index: NumLike;
|
|
4171
|
+
}): boolean;
|
|
4009
4172
|
hash(): Hex;
|
|
4010
4173
|
toHex(): Hex;
|
|
4011
4174
|
}) & {
|
|
4012
4175
|
byteLength?: number;
|
|
4013
|
-
encode(_:
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4176
|
+
encode: (_: {} & {
|
|
4177
|
+
txHash: BytesLike;
|
|
4178
|
+
index: NumLike;
|
|
4179
|
+
}) => Bytes$1;
|
|
4180
|
+
decode: (_: BytesLike, _config?: {
|
|
4181
|
+
isExtraFieldIgnored?: boolean;
|
|
4182
|
+
} | undefined) => OutPoint;
|
|
4183
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
4184
|
+
isExtraFieldIgnored?: boolean;
|
|
4185
|
+
} | undefined) => OutPoint;
|
|
4186
|
+
from: (_: {} & {
|
|
4187
|
+
txHash: BytesLike;
|
|
4188
|
+
index: NumLike;
|
|
4189
|
+
}) => OutPoint;
|
|
4017
4190
|
Base<SubTypeLike, SubType = SubTypeLike>(): (abstract new () => {
|
|
4018
4191
|
toBytes(): Bytes$1;
|
|
4019
4192
|
clone(): SubType;
|
|
@@ -4022,10 +4195,14 @@ declare const OutPoint_base: (abstract new () => {
|
|
|
4022
4195
|
toHex(): Hex;
|
|
4023
4196
|
}) & {
|
|
4024
4197
|
byteLength?: number;
|
|
4025
|
-
encode(_: SubTypeLike)
|
|
4026
|
-
decode(_: BytesLike
|
|
4027
|
-
|
|
4028
|
-
|
|
4198
|
+
encode: (_: SubTypeLike) => Bytes$1;
|
|
4199
|
+
decode: (_: BytesLike, _config?: {
|
|
4200
|
+
isExtraFieldIgnored?: boolean;
|
|
4201
|
+
}) => SubType;
|
|
4202
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
4203
|
+
isExtraFieldIgnored?: boolean;
|
|
4204
|
+
}) => SubType;
|
|
4205
|
+
from: (_: SubTypeLike) => SubType;
|
|
4029
4206
|
Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
4030
4207
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
|
|
4031
4208
|
readonly inner: DecodedType<CodecType>;
|
|
@@ -4042,10 +4219,14 @@ declare const OutPoint_base: (abstract new () => {
|
|
|
4042
4219
|
toHex(): Hex;
|
|
4043
4220
|
}) & {
|
|
4044
4221
|
byteLength?: number;
|
|
4045
|
-
encode(_: SubTypeLike_1)
|
|
4046
|
-
decode(_: BytesLike
|
|
4047
|
-
|
|
4048
|
-
|
|
4222
|
+
encode: (_: SubTypeLike_1) => Bytes$1;
|
|
4223
|
+
decode: (_: BytesLike, _config?: {
|
|
4224
|
+
isExtraFieldIgnored?: boolean;
|
|
4225
|
+
} | undefined) => SubType_1;
|
|
4226
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
4227
|
+
isExtraFieldIgnored?: boolean;
|
|
4228
|
+
} | undefined) => SubType_1;
|
|
4229
|
+
from: (_: SubTypeLike_1) => SubType_1;
|
|
4049
4230
|
Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
4050
4231
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
|
|
4051
4232
|
};
|
|
@@ -4065,10 +4246,14 @@ declare const OutPoint_base: (abstract new () => {
|
|
|
4065
4246
|
toHex(): Hex;
|
|
4066
4247
|
}) & {
|
|
4067
4248
|
byteLength?: number;
|
|
4068
|
-
encode(_: SubTypeLike)
|
|
4069
|
-
decode(_: BytesLike
|
|
4070
|
-
|
|
4071
|
-
|
|
4249
|
+
encode: (_: SubTypeLike) => Bytes$1;
|
|
4250
|
+
decode: (_: BytesLike, _config?: {
|
|
4251
|
+
isExtraFieldIgnored?: boolean;
|
|
4252
|
+
} | undefined) => SubType;
|
|
4253
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
4254
|
+
isExtraFieldIgnored?: boolean;
|
|
4255
|
+
} | undefined) => SubType;
|
|
4256
|
+
from: (_: SubTypeLike) => SubType;
|
|
4072
4257
|
Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
|
|
4073
4258
|
toBytes(): Bytes$1;
|
|
4074
4259
|
clone(): SubType_1;
|
|
@@ -4077,10 +4262,14 @@ declare const OutPoint_base: (abstract new () => {
|
|
|
4077
4262
|
toHex(): Hex;
|
|
4078
4263
|
}) & {
|
|
4079
4264
|
byteLength?: number;
|
|
4080
|
-
encode(_: SubTypeLike_1)
|
|
4081
|
-
decode(_: BytesLike
|
|
4082
|
-
|
|
4083
|
-
|
|
4265
|
+
encode: (_: SubTypeLike_1) => Bytes$1;
|
|
4266
|
+
decode: (_: BytesLike, _config?: {
|
|
4267
|
+
isExtraFieldIgnored?: boolean;
|
|
4268
|
+
}) => SubType_1;
|
|
4269
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
4270
|
+
isExtraFieldIgnored?: boolean;
|
|
4271
|
+
}) => SubType_1;
|
|
4272
|
+
from: (_: SubTypeLike_1) => SubType_1;
|
|
4084
4273
|
Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
|
|
4085
4274
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
4086
4275
|
};
|
|
@@ -4099,19 +4288,7 @@ declare class OutPoint extends OutPoint_base {
|
|
|
4099
4288
|
* @param txHash - The transaction hash.
|
|
4100
4289
|
* @param index - The index of the output in the transaction.
|
|
4101
4290
|
*/
|
|
4102
|
-
constructor(txHash
|
|
4103
|
-
/**
|
|
4104
|
-
* Creates an OutPoint instance from an OutPointLike object.
|
|
4105
|
-
*
|
|
4106
|
-
* @param outPoint - An OutPointLike object or an instance of OutPoint.
|
|
4107
|
-
* @returns An OutPoint instance.
|
|
4108
|
-
*
|
|
4109
|
-
* @example
|
|
4110
|
-
* ```typescript
|
|
4111
|
-
* const outPoint = OutPoint.from({ txHash: "0x...", index: 0 });
|
|
4112
|
-
* ```
|
|
4113
|
-
*/
|
|
4114
|
-
static from(outPoint: OutPointLike): OutPoint;
|
|
4291
|
+
constructor({ txHash, index }: DecodedType<typeof OutPointCodec>);
|
|
4115
4292
|
/**
|
|
4116
4293
|
* Clone a OutPoint.
|
|
4117
4294
|
*
|
|
@@ -4136,6 +4313,26 @@ declare class OutPoint extends OutPoint_base {
|
|
|
4136
4313
|
*/
|
|
4137
4314
|
eq(other: OutPointLike): boolean;
|
|
4138
4315
|
}
|
|
4316
|
+
/**
|
|
4317
|
+
* @public
|
|
4318
|
+
*/
|
|
4319
|
+
declare const CellOutputCodec: Codec<EncodableRecord<{
|
|
4320
|
+
capacity: Codec<NumLike, bigint>;
|
|
4321
|
+
lock: typeof Script;
|
|
4322
|
+
type: Codec<({} & {
|
|
4323
|
+
codeHash: BytesLike;
|
|
4324
|
+
hashType: HashTypeLike;
|
|
4325
|
+
args: BytesLike;
|
|
4326
|
+
}) | null | undefined, Script | undefined>;
|
|
4327
|
+
}>, DecodedRecord<{
|
|
4328
|
+
capacity: Codec<NumLike, bigint>;
|
|
4329
|
+
lock: typeof Script;
|
|
4330
|
+
type: Codec<({} & {
|
|
4331
|
+
codeHash: BytesLike;
|
|
4332
|
+
hashType: HashTypeLike;
|
|
4333
|
+
args: BytesLike;
|
|
4334
|
+
}) | null | undefined, Script | undefined>;
|
|
4335
|
+
}>>;
|
|
4139
4336
|
/**
|
|
4140
4337
|
* @public
|
|
4141
4338
|
*/
|
|
@@ -4152,10 +4349,14 @@ declare const CellOutput_base: (abstract new () => {
|
|
|
4152
4349
|
toHex(): Hex;
|
|
4153
4350
|
}) & {
|
|
4154
4351
|
byteLength?: number;
|
|
4155
|
-
encode(_: CellOutputLike)
|
|
4156
|
-
decode(_: BytesLike
|
|
4157
|
-
|
|
4158
|
-
|
|
4352
|
+
encode: (_: CellOutputLike) => Bytes$1;
|
|
4353
|
+
decode: (_: BytesLike, _config?: {
|
|
4354
|
+
isExtraFieldIgnored?: boolean;
|
|
4355
|
+
} | undefined) => CellOutput;
|
|
4356
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
4357
|
+
isExtraFieldIgnored?: boolean;
|
|
4358
|
+
} | undefined) => CellOutput;
|
|
4359
|
+
from: (_: CellOutputLike) => CellOutput;
|
|
4159
4360
|
Base<SubTypeLike, SubType = SubTypeLike>(): (abstract new () => {
|
|
4160
4361
|
toBytes(): Bytes$1;
|
|
4161
4362
|
clone(): SubType;
|
|
@@ -4164,10 +4365,14 @@ declare const CellOutput_base: (abstract new () => {
|
|
|
4164
4365
|
toHex(): Hex;
|
|
4165
4366
|
}) & {
|
|
4166
4367
|
byteLength?: number;
|
|
4167
|
-
encode(_: SubTypeLike)
|
|
4168
|
-
decode(_: BytesLike
|
|
4169
|
-
|
|
4170
|
-
|
|
4368
|
+
encode: (_: SubTypeLike) => Bytes$1;
|
|
4369
|
+
decode: (_: BytesLike, _config?: {
|
|
4370
|
+
isExtraFieldIgnored?: boolean;
|
|
4371
|
+
}) => SubType;
|
|
4372
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
4373
|
+
isExtraFieldIgnored?: boolean;
|
|
4374
|
+
}) => SubType;
|
|
4375
|
+
from: (_: SubTypeLike) => SubType;
|
|
4171
4376
|
Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
4172
4377
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
|
|
4173
4378
|
readonly inner: DecodedType<CodecType>;
|
|
@@ -4184,10 +4389,14 @@ declare const CellOutput_base: (abstract new () => {
|
|
|
4184
4389
|
toHex(): Hex;
|
|
4185
4390
|
}) & {
|
|
4186
4391
|
byteLength?: number;
|
|
4187
|
-
encode(_: SubTypeLike_1)
|
|
4188
|
-
decode(_: BytesLike
|
|
4189
|
-
|
|
4190
|
-
|
|
4392
|
+
encode: (_: SubTypeLike_1) => Bytes$1;
|
|
4393
|
+
decode: (_: BytesLike, _config?: {
|
|
4394
|
+
isExtraFieldIgnored?: boolean;
|
|
4395
|
+
} | undefined) => SubType_1;
|
|
4396
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
4397
|
+
isExtraFieldIgnored?: boolean;
|
|
4398
|
+
} | undefined) => SubType_1;
|
|
4399
|
+
from: (_: SubTypeLike_1) => SubType_1;
|
|
4191
4400
|
Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
4192
4401
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
|
|
4193
4402
|
};
|
|
@@ -4207,10 +4416,14 @@ declare const CellOutput_base: (abstract new () => {
|
|
|
4207
4416
|
toHex(): Hex;
|
|
4208
4417
|
}) & {
|
|
4209
4418
|
byteLength?: number;
|
|
4210
|
-
encode(_: SubTypeLike)
|
|
4211
|
-
decode(_: BytesLike
|
|
4212
|
-
|
|
4213
|
-
|
|
4419
|
+
encode: (_: SubTypeLike) => Bytes$1;
|
|
4420
|
+
decode: (_: BytesLike, _config?: {
|
|
4421
|
+
isExtraFieldIgnored?: boolean;
|
|
4422
|
+
} | undefined) => SubType;
|
|
4423
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
4424
|
+
isExtraFieldIgnored?: boolean;
|
|
4425
|
+
} | undefined) => SubType;
|
|
4426
|
+
from: (_: SubTypeLike) => SubType;
|
|
4214
4427
|
Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
|
|
4215
4428
|
toBytes(): Bytes$1;
|
|
4216
4429
|
clone(): SubType_1;
|
|
@@ -4219,10 +4432,14 @@ declare const CellOutput_base: (abstract new () => {
|
|
|
4219
4432
|
toHex(): Hex;
|
|
4220
4433
|
}) & {
|
|
4221
4434
|
byteLength?: number;
|
|
4222
|
-
encode(_: SubTypeLike_1)
|
|
4223
|
-
decode(_: BytesLike
|
|
4224
|
-
|
|
4225
|
-
|
|
4435
|
+
encode: (_: SubTypeLike_1) => Bytes$1;
|
|
4436
|
+
decode: (_: BytesLike, _config?: {
|
|
4437
|
+
isExtraFieldIgnored?: boolean;
|
|
4438
|
+
}) => SubType_1;
|
|
4439
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
4440
|
+
isExtraFieldIgnored?: boolean;
|
|
4441
|
+
}) => SubType_1;
|
|
4442
|
+
from: (_: SubTypeLike_1) => SubType_1;
|
|
4226
4443
|
Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
|
|
4227
4444
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
4228
4445
|
};
|
|
@@ -4235,7 +4452,7 @@ declare const CellOutput_base: (abstract new () => {
|
|
|
4235
4452
|
declare class CellOutput extends CellOutput_base {
|
|
4236
4453
|
capacity: Num;
|
|
4237
4454
|
lock: Script;
|
|
4238
|
-
type?: Script
|
|
4455
|
+
type?: Script;
|
|
4239
4456
|
/**
|
|
4240
4457
|
* Creates an instance of CellOutput.
|
|
4241
4458
|
*
|
|
@@ -4243,7 +4460,7 @@ declare class CellOutput extends CellOutput_base {
|
|
|
4243
4460
|
* @param lock - The lock script of the cell.
|
|
4244
4461
|
* @param type - The optional type script of the cell.
|
|
4245
4462
|
*/
|
|
4246
|
-
constructor(capacity
|
|
4463
|
+
constructor({ capacity, lock, type }: DecodedType<typeof CellOutputCodec>);
|
|
4247
4464
|
get occupiedSize(): number;
|
|
4248
4465
|
/**
|
|
4249
4466
|
* Creates a CellOutput instance from a CellOutputLike object.
|
|
@@ -4500,6 +4717,7 @@ type SinceLike = {
|
|
|
4500
4717
|
metric: "blockNumber" | "epoch" | "timestamp";
|
|
4501
4718
|
value: NumLike;
|
|
4502
4719
|
} | NumLike;
|
|
4720
|
+
declare const SinceCodec: Codec<SinceLike, Pick<Since, "relative" | "metric" | "value">>;
|
|
4503
4721
|
declare const Since_base: (abstract new () => {
|
|
4504
4722
|
toBytes(): Bytes$1;
|
|
4505
4723
|
clone(): Since;
|
|
@@ -4508,10 +4726,14 @@ declare const Since_base: (abstract new () => {
|
|
|
4508
4726
|
toHex(): Hex;
|
|
4509
4727
|
}) & {
|
|
4510
4728
|
byteLength?: number;
|
|
4511
|
-
encode(_: SinceLike)
|
|
4512
|
-
decode(_: BytesLike
|
|
4513
|
-
|
|
4514
|
-
|
|
4729
|
+
encode: (_: SinceLike) => Bytes$1;
|
|
4730
|
+
decode: (_: BytesLike, _config?: {
|
|
4731
|
+
isExtraFieldIgnored?: boolean;
|
|
4732
|
+
} | undefined) => Since;
|
|
4733
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
4734
|
+
isExtraFieldIgnored?: boolean;
|
|
4735
|
+
} | undefined) => Since;
|
|
4736
|
+
from: (_: SinceLike) => Since;
|
|
4515
4737
|
Base<SubTypeLike, SubType = SubTypeLike>(): (abstract new () => {
|
|
4516
4738
|
toBytes(): Bytes$1;
|
|
4517
4739
|
clone(): SubType;
|
|
@@ -4520,10 +4742,14 @@ declare const Since_base: (abstract new () => {
|
|
|
4520
4742
|
toHex(): Hex;
|
|
4521
4743
|
}) & {
|
|
4522
4744
|
byteLength?: number;
|
|
4523
|
-
encode(_: SubTypeLike)
|
|
4524
|
-
decode(_: BytesLike
|
|
4525
|
-
|
|
4526
|
-
|
|
4745
|
+
encode: (_: SubTypeLike) => Bytes$1;
|
|
4746
|
+
decode: (_: BytesLike, _config?: {
|
|
4747
|
+
isExtraFieldIgnored?: boolean;
|
|
4748
|
+
}) => SubType;
|
|
4749
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
4750
|
+
isExtraFieldIgnored?: boolean;
|
|
4751
|
+
}) => SubType;
|
|
4752
|
+
from: (_: SubTypeLike) => SubType;
|
|
4527
4753
|
Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
4528
4754
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
|
|
4529
4755
|
readonly inner: DecodedType<CodecType>;
|
|
@@ -4540,10 +4766,14 @@ declare const Since_base: (abstract new () => {
|
|
|
4540
4766
|
toHex(): Hex;
|
|
4541
4767
|
}) & {
|
|
4542
4768
|
byteLength?: number;
|
|
4543
|
-
encode(_: SubTypeLike_1)
|
|
4544
|
-
decode(_: BytesLike
|
|
4545
|
-
|
|
4546
|
-
|
|
4769
|
+
encode: (_: SubTypeLike_1) => Bytes$1;
|
|
4770
|
+
decode: (_: BytesLike, _config?: {
|
|
4771
|
+
isExtraFieldIgnored?: boolean;
|
|
4772
|
+
} | undefined) => SubType_1;
|
|
4773
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
4774
|
+
isExtraFieldIgnored?: boolean;
|
|
4775
|
+
} | undefined) => SubType_1;
|
|
4776
|
+
from: (_: SubTypeLike_1) => SubType_1;
|
|
4547
4777
|
Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
4548
4778
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
|
|
4549
4779
|
};
|
|
@@ -4563,10 +4793,14 @@ declare const Since_base: (abstract new () => {
|
|
|
4563
4793
|
toHex(): Hex;
|
|
4564
4794
|
}) & {
|
|
4565
4795
|
byteLength?: number;
|
|
4566
|
-
encode(_: SubTypeLike)
|
|
4567
|
-
decode(_: BytesLike
|
|
4568
|
-
|
|
4569
|
-
|
|
4796
|
+
encode: (_: SubTypeLike) => Bytes$1;
|
|
4797
|
+
decode: (_: BytesLike, _config?: {
|
|
4798
|
+
isExtraFieldIgnored?: boolean;
|
|
4799
|
+
} | undefined) => SubType;
|
|
4800
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
4801
|
+
isExtraFieldIgnored?: boolean;
|
|
4802
|
+
} | undefined) => SubType;
|
|
4803
|
+
from: (_: SubTypeLike) => SubType;
|
|
4570
4804
|
Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
|
|
4571
4805
|
toBytes(): Bytes$1;
|
|
4572
4806
|
clone(): SubType_1;
|
|
@@ -4575,10 +4809,14 @@ declare const Since_base: (abstract new () => {
|
|
|
4575
4809
|
toHex(): Hex;
|
|
4576
4810
|
}) & {
|
|
4577
4811
|
byteLength?: number;
|
|
4578
|
-
encode(_: SubTypeLike_1)
|
|
4579
|
-
decode(_: BytesLike
|
|
4580
|
-
|
|
4581
|
-
|
|
4812
|
+
encode: (_: SubTypeLike_1) => Bytes$1;
|
|
4813
|
+
decode: (_: BytesLike, _config?: {
|
|
4814
|
+
isExtraFieldIgnored?: boolean;
|
|
4815
|
+
}) => SubType_1;
|
|
4816
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
4817
|
+
isExtraFieldIgnored?: boolean;
|
|
4818
|
+
}) => SubType_1;
|
|
4819
|
+
from: (_: SubTypeLike_1) => SubType_1;
|
|
4582
4820
|
Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
|
|
4583
4821
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
4584
4822
|
};
|
|
@@ -4595,11 +4833,9 @@ declare class Since extends Since_base {
|
|
|
4595
4833
|
/**
|
|
4596
4834
|
* Creates an instance of Since.
|
|
4597
4835
|
*
|
|
4598
|
-
* @param
|
|
4599
|
-
* @param metric - The metric of since
|
|
4600
|
-
* @param value - The value of since
|
|
4836
|
+
* @param num - The since representation value.
|
|
4601
4837
|
*/
|
|
4602
|
-
constructor(
|
|
4838
|
+
constructor({ relative, metric, value }: DecodedType<typeof SinceCodec>);
|
|
4603
4839
|
/**
|
|
4604
4840
|
* Clone a Since.
|
|
4605
4841
|
*
|
|
@@ -4647,6 +4883,16 @@ declare class Since extends Since_base {
|
|
|
4647
4883
|
*/
|
|
4648
4884
|
static fromNum(numLike: NumLike): Since;
|
|
4649
4885
|
}
|
|
4886
|
+
/**
|
|
4887
|
+
* @public
|
|
4888
|
+
*/
|
|
4889
|
+
declare const CellInputCodec: Codec<EncodableRecord<{
|
|
4890
|
+
since: typeof Since;
|
|
4891
|
+
previousOutput: typeof OutPoint;
|
|
4892
|
+
}>, DecodedRecord<{
|
|
4893
|
+
since: typeof Since;
|
|
4894
|
+
previousOutput: typeof OutPoint;
|
|
4895
|
+
}>>;
|
|
4650
4896
|
/**
|
|
4651
4897
|
* @public
|
|
4652
4898
|
*/
|
|
@@ -4667,10 +4913,14 @@ declare const CellInput_base: (abstract new () => {
|
|
|
4667
4913
|
toHex(): Hex;
|
|
4668
4914
|
}) & {
|
|
4669
4915
|
byteLength?: number;
|
|
4670
|
-
encode(_: CellInputLike)
|
|
4671
|
-
decode(_: BytesLike
|
|
4672
|
-
|
|
4673
|
-
|
|
4916
|
+
encode: (_: CellInputLike) => Bytes$1;
|
|
4917
|
+
decode: (_: BytesLike, _config?: {
|
|
4918
|
+
isExtraFieldIgnored?: boolean;
|
|
4919
|
+
} | undefined) => CellInput;
|
|
4920
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
4921
|
+
isExtraFieldIgnored?: boolean;
|
|
4922
|
+
} | undefined) => CellInput;
|
|
4923
|
+
from: (_: CellInputLike) => CellInput;
|
|
4674
4924
|
Base<SubTypeLike, SubType = SubTypeLike>(): (abstract new () => {
|
|
4675
4925
|
toBytes(): Bytes$1;
|
|
4676
4926
|
clone(): SubType;
|
|
@@ -4679,10 +4929,14 @@ declare const CellInput_base: (abstract new () => {
|
|
|
4679
4929
|
toHex(): Hex;
|
|
4680
4930
|
}) & {
|
|
4681
4931
|
byteLength?: number;
|
|
4682
|
-
encode(_: SubTypeLike)
|
|
4683
|
-
decode(_: BytesLike
|
|
4684
|
-
|
|
4685
|
-
|
|
4932
|
+
encode: (_: SubTypeLike) => Bytes$1;
|
|
4933
|
+
decode: (_: BytesLike, _config?: {
|
|
4934
|
+
isExtraFieldIgnored?: boolean;
|
|
4935
|
+
}) => SubType;
|
|
4936
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
4937
|
+
isExtraFieldIgnored?: boolean;
|
|
4938
|
+
}) => SubType;
|
|
4939
|
+
from: (_: SubTypeLike) => SubType;
|
|
4686
4940
|
Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
4687
4941
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
|
|
4688
4942
|
readonly inner: DecodedType<CodecType>;
|
|
@@ -4699,10 +4953,14 @@ declare const CellInput_base: (abstract new () => {
|
|
|
4699
4953
|
toHex(): Hex;
|
|
4700
4954
|
}) & {
|
|
4701
4955
|
byteLength?: number;
|
|
4702
|
-
encode(_: SubTypeLike_1)
|
|
4703
|
-
decode(_: BytesLike
|
|
4704
|
-
|
|
4705
|
-
|
|
4956
|
+
encode: (_: SubTypeLike_1) => Bytes$1;
|
|
4957
|
+
decode: (_: BytesLike, _config?: {
|
|
4958
|
+
isExtraFieldIgnored?: boolean;
|
|
4959
|
+
} | undefined) => SubType_1;
|
|
4960
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
4961
|
+
isExtraFieldIgnored?: boolean;
|
|
4962
|
+
} | undefined) => SubType_1;
|
|
4963
|
+
from: (_: SubTypeLike_1) => SubType_1;
|
|
4706
4964
|
Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
4707
4965
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
|
|
4708
4966
|
};
|
|
@@ -4722,10 +4980,14 @@ declare const CellInput_base: (abstract new () => {
|
|
|
4722
4980
|
toHex(): Hex;
|
|
4723
4981
|
}) & {
|
|
4724
4982
|
byteLength?: number;
|
|
4725
|
-
encode(_: SubTypeLike)
|
|
4726
|
-
decode(_: BytesLike
|
|
4727
|
-
|
|
4728
|
-
|
|
4983
|
+
encode: (_: SubTypeLike) => Bytes$1;
|
|
4984
|
+
decode: (_: BytesLike, _config?: {
|
|
4985
|
+
isExtraFieldIgnored?: boolean;
|
|
4986
|
+
} | undefined) => SubType;
|
|
4987
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
4988
|
+
isExtraFieldIgnored?: boolean;
|
|
4989
|
+
} | undefined) => SubType;
|
|
4990
|
+
from: (_: SubTypeLike) => SubType;
|
|
4729
4991
|
Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
|
|
4730
4992
|
toBytes(): Bytes$1;
|
|
4731
4993
|
clone(): SubType_1;
|
|
@@ -4734,10 +4996,14 @@ declare const CellInput_base: (abstract new () => {
|
|
|
4734
4996
|
toHex(): Hex;
|
|
4735
4997
|
}) & {
|
|
4736
4998
|
byteLength?: number;
|
|
4737
|
-
encode(_: SubTypeLike_1)
|
|
4738
|
-
decode(_: BytesLike
|
|
4739
|
-
|
|
4740
|
-
|
|
4999
|
+
encode: (_: SubTypeLike_1) => Bytes$1;
|
|
5000
|
+
decode: (_: BytesLike, _config?: {
|
|
5001
|
+
isExtraFieldIgnored?: boolean;
|
|
5002
|
+
}) => SubType_1;
|
|
5003
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
5004
|
+
isExtraFieldIgnored?: boolean;
|
|
5005
|
+
}) => SubType_1;
|
|
5006
|
+
from: (_: SubTypeLike_1) => SubType_1;
|
|
4741
5007
|
Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
|
|
4742
5008
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
4743
5009
|
};
|
|
@@ -4750,8 +5016,8 @@ declare const CellInput_base: (abstract new () => {
|
|
|
4750
5016
|
declare class CellInput extends CellInput_base {
|
|
4751
5017
|
previousOutput: OutPoint;
|
|
4752
5018
|
since: Num;
|
|
4753
|
-
cellOutput?: CellOutput
|
|
4754
|
-
outputData?: Hex
|
|
5019
|
+
cellOutput?: CellOutput;
|
|
5020
|
+
outputData?: Hex;
|
|
4755
5021
|
/**
|
|
4756
5022
|
* Creates an instance of CellInput.
|
|
4757
5023
|
*
|
|
@@ -4760,7 +5026,10 @@ declare class CellInput extends CellInput_base {
|
|
|
4760
5026
|
* @param cellOutput - The optional cell output associated with the cell input.
|
|
4761
5027
|
* @param outputData - The optional output data associated with the cell input.
|
|
4762
5028
|
*/
|
|
4763
|
-
constructor(previousOutput
|
|
5029
|
+
constructor({ previousOutput, since, cellOutput, outputData }: DecodedType<typeof CellInputCodec> & {
|
|
5030
|
+
cellOutput?: CellOutput;
|
|
5031
|
+
outputData?: Hex;
|
|
5032
|
+
});
|
|
4764
5033
|
/**
|
|
4765
5034
|
* Creates a CellInput instance from a CellInputLike object.
|
|
4766
5035
|
*
|
|
@@ -4812,22 +5081,51 @@ declare const CellInputVec: Codec<CellInputLike[], CellInput[]>;
|
|
|
4812
5081
|
/**
|
|
4813
5082
|
* @public
|
|
4814
5083
|
*/
|
|
4815
|
-
|
|
4816
|
-
outPoint:
|
|
4817
|
-
depType: DepTypeLike
|
|
4818
|
-
}
|
|
5084
|
+
declare const CellDepCodec: Codec<EncodableRecord<{
|
|
5085
|
+
outPoint: typeof OutPoint;
|
|
5086
|
+
depType: Codec<DepTypeLike, DepType>;
|
|
5087
|
+
}>, DecodedRecord<{
|
|
5088
|
+
outPoint: typeof OutPoint;
|
|
5089
|
+
depType: Codec<DepTypeLike, DepType>;
|
|
5090
|
+
}>>;
|
|
5091
|
+
/**
|
|
5092
|
+
* @public
|
|
5093
|
+
*/
|
|
5094
|
+
type CellDepLike = EncodableType<typeof CellDepCodec>;
|
|
4819
5095
|
declare const CellDep_base: (abstract new () => {
|
|
4820
5096
|
toBytes(): Bytes$1;
|
|
4821
5097
|
clone(): CellDep;
|
|
4822
|
-
eq(other:
|
|
5098
|
+
eq(other: {} & {
|
|
5099
|
+
outPoint: {} & {
|
|
5100
|
+
txHash: BytesLike;
|
|
5101
|
+
index: NumLike;
|
|
5102
|
+
};
|
|
5103
|
+
depType: DepTypeLike;
|
|
5104
|
+
}): boolean;
|
|
4823
5105
|
hash(): Hex;
|
|
4824
5106
|
toHex(): Hex;
|
|
4825
5107
|
}) & {
|
|
4826
5108
|
byteLength?: number;
|
|
4827
|
-
encode(_:
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
5109
|
+
encode: (_: {} & {
|
|
5110
|
+
outPoint: {} & {
|
|
5111
|
+
txHash: BytesLike;
|
|
5112
|
+
index: NumLike;
|
|
5113
|
+
};
|
|
5114
|
+
depType: DepTypeLike;
|
|
5115
|
+
}) => Bytes$1;
|
|
5116
|
+
decode: (_: BytesLike, _config?: {
|
|
5117
|
+
isExtraFieldIgnored?: boolean;
|
|
5118
|
+
} | undefined) => CellDep;
|
|
5119
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
5120
|
+
isExtraFieldIgnored?: boolean;
|
|
5121
|
+
} | undefined) => CellDep;
|
|
5122
|
+
from: (_: {} & {
|
|
5123
|
+
outPoint: {} & {
|
|
5124
|
+
txHash: BytesLike;
|
|
5125
|
+
index: NumLike;
|
|
5126
|
+
};
|
|
5127
|
+
depType: DepTypeLike;
|
|
5128
|
+
}) => CellDep;
|
|
4831
5129
|
Base<SubTypeLike, SubType = SubTypeLike>(): (abstract new () => {
|
|
4832
5130
|
toBytes(): Bytes$1;
|
|
4833
5131
|
clone(): SubType;
|
|
@@ -4836,10 +5134,14 @@ declare const CellDep_base: (abstract new () => {
|
|
|
4836
5134
|
toHex(): Hex;
|
|
4837
5135
|
}) & {
|
|
4838
5136
|
byteLength?: number;
|
|
4839
|
-
encode(_: SubTypeLike)
|
|
4840
|
-
decode(_: BytesLike
|
|
4841
|
-
|
|
4842
|
-
|
|
5137
|
+
encode: (_: SubTypeLike) => Bytes$1;
|
|
5138
|
+
decode: (_: BytesLike, _config?: {
|
|
5139
|
+
isExtraFieldIgnored?: boolean;
|
|
5140
|
+
}) => SubType;
|
|
5141
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
5142
|
+
isExtraFieldIgnored?: boolean;
|
|
5143
|
+
}) => SubType;
|
|
5144
|
+
from: (_: SubTypeLike) => SubType;
|
|
4843
5145
|
Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
4844
5146
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
|
|
4845
5147
|
readonly inner: DecodedType<CodecType>;
|
|
@@ -4856,10 +5158,14 @@ declare const CellDep_base: (abstract new () => {
|
|
|
4856
5158
|
toHex(): Hex;
|
|
4857
5159
|
}) & {
|
|
4858
5160
|
byteLength?: number;
|
|
4859
|
-
encode(_: SubTypeLike_1)
|
|
4860
|
-
decode(_: BytesLike
|
|
4861
|
-
|
|
4862
|
-
|
|
5161
|
+
encode: (_: SubTypeLike_1) => Bytes$1;
|
|
5162
|
+
decode: (_: BytesLike, _config?: {
|
|
5163
|
+
isExtraFieldIgnored?: boolean;
|
|
5164
|
+
} | undefined) => SubType_1;
|
|
5165
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
5166
|
+
isExtraFieldIgnored?: boolean;
|
|
5167
|
+
} | undefined) => SubType_1;
|
|
5168
|
+
from: (_: SubTypeLike_1) => SubType_1;
|
|
4863
5169
|
Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
4864
5170
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
|
|
4865
5171
|
};
|
|
@@ -4879,10 +5185,14 @@ declare const CellDep_base: (abstract new () => {
|
|
|
4879
5185
|
toHex(): Hex;
|
|
4880
5186
|
}) & {
|
|
4881
5187
|
byteLength?: number;
|
|
4882
|
-
encode(_: SubTypeLike)
|
|
4883
|
-
decode(_: BytesLike
|
|
4884
|
-
|
|
4885
|
-
|
|
5188
|
+
encode: (_: SubTypeLike) => Bytes$1;
|
|
5189
|
+
decode: (_: BytesLike, _config?: {
|
|
5190
|
+
isExtraFieldIgnored?: boolean;
|
|
5191
|
+
} | undefined) => SubType;
|
|
5192
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
5193
|
+
isExtraFieldIgnored?: boolean;
|
|
5194
|
+
} | undefined) => SubType;
|
|
5195
|
+
from: (_: SubTypeLike) => SubType;
|
|
4886
5196
|
Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
|
|
4887
5197
|
toBytes(): Bytes$1;
|
|
4888
5198
|
clone(): SubType_1;
|
|
@@ -4891,10 +5201,14 @@ declare const CellDep_base: (abstract new () => {
|
|
|
4891
5201
|
toHex(): Hex;
|
|
4892
5202
|
}) & {
|
|
4893
5203
|
byteLength?: number;
|
|
4894
|
-
encode(_: SubTypeLike_1)
|
|
4895
|
-
decode(_: BytesLike
|
|
4896
|
-
|
|
4897
|
-
|
|
5204
|
+
encode: (_: SubTypeLike_1) => Bytes$1;
|
|
5205
|
+
decode: (_: BytesLike, _config?: {
|
|
5206
|
+
isExtraFieldIgnored?: boolean;
|
|
5207
|
+
}) => SubType_1;
|
|
5208
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
5209
|
+
isExtraFieldIgnored?: boolean;
|
|
5210
|
+
}) => SubType_1;
|
|
5211
|
+
from: (_: SubTypeLike_1) => SubType_1;
|
|
4898
5212
|
Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
|
|
4899
5213
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
4900
5214
|
};
|
|
@@ -4913,22 +5227,7 @@ declare class CellDep extends CellDep_base {
|
|
|
4913
5227
|
* @param outPoint - The outpoint of the cell dependency.
|
|
4914
5228
|
* @param depType - The dependency type.
|
|
4915
5229
|
*/
|
|
4916
|
-
constructor(outPoint
|
|
4917
|
-
/**
|
|
4918
|
-
* Creates a CellDep instance from a CellDepLike object.
|
|
4919
|
-
*
|
|
4920
|
-
* @param cellDep - A CellDepLike object or an instance of CellDep.
|
|
4921
|
-
* @returns A CellDep instance.
|
|
4922
|
-
*
|
|
4923
|
-
* @example
|
|
4924
|
-
* ```typescript
|
|
4925
|
-
* const cellDep = CellDep.from({
|
|
4926
|
-
* outPoint: { txHash: "0x...", index: 0 },
|
|
4927
|
-
* depType: "depGroup"
|
|
4928
|
-
* });
|
|
4929
|
-
* ```
|
|
4930
|
-
*/
|
|
4931
|
-
static from(cellDep: CellDepLike): CellDep;
|
|
5230
|
+
constructor({ outPoint, depType }: DecodedType<typeof CellDepCodec>);
|
|
4932
5231
|
/**
|
|
4933
5232
|
* Clone a CellDep.
|
|
4934
5233
|
*
|
|
@@ -4941,27 +5240,57 @@ declare class CellDep extends CellDep_base {
|
|
|
4941
5240
|
*/
|
|
4942
5241
|
clone(): CellDep;
|
|
4943
5242
|
}
|
|
4944
|
-
declare const CellDepVec: Codec<
|
|
5243
|
+
declare const CellDepVec: Codec<({} & {
|
|
5244
|
+
outPoint: {} & {
|
|
5245
|
+
txHash: BytesLike;
|
|
5246
|
+
index: NumLike;
|
|
5247
|
+
};
|
|
5248
|
+
depType: DepTypeLike;
|
|
5249
|
+
})[], CellDep[]>;
|
|
4945
5250
|
/**
|
|
4946
5251
|
* @public
|
|
4947
5252
|
*/
|
|
4948
|
-
|
|
4949
|
-
lock
|
|
4950
|
-
inputType
|
|
4951
|
-
outputType
|
|
4952
|
-
}
|
|
5253
|
+
declare const WitnessArgsCodec: Codec<EncodableRecord<{
|
|
5254
|
+
lock: Codec<BytesLike | null | undefined, `0x${string}` | undefined>;
|
|
5255
|
+
inputType: Codec<BytesLike | null | undefined, `0x${string}` | undefined>;
|
|
5256
|
+
outputType: Codec<BytesLike | null | undefined, `0x${string}` | undefined>;
|
|
5257
|
+
}>, DecodedRecord<{
|
|
5258
|
+
lock: Codec<BytesLike | null | undefined, `0x${string}` | undefined>;
|
|
5259
|
+
inputType: Codec<BytesLike | null | undefined, `0x${string}` | undefined>;
|
|
5260
|
+
outputType: Codec<BytesLike | null | undefined, `0x${string}` | undefined>;
|
|
5261
|
+
}>>;
|
|
5262
|
+
/**
|
|
5263
|
+
* @public
|
|
5264
|
+
*/
|
|
5265
|
+
type WitnessArgsLike = EncodableType<typeof WitnessArgsCodec>;
|
|
4953
5266
|
declare const WitnessArgs_base: (abstract new () => {
|
|
4954
5267
|
toBytes(): Bytes$1;
|
|
4955
5268
|
clone(): WitnessArgs;
|
|
4956
|
-
eq(other:
|
|
5269
|
+
eq(other: {
|
|
5270
|
+
lock?: BytesLike | null | undefined;
|
|
5271
|
+
inputType?: BytesLike | null | undefined;
|
|
5272
|
+
outputType?: BytesLike | null | undefined;
|
|
5273
|
+
} & {}): boolean;
|
|
4957
5274
|
hash(): Hex;
|
|
4958
5275
|
toHex(): Hex;
|
|
4959
5276
|
}) & {
|
|
4960
5277
|
byteLength?: number;
|
|
4961
|
-
encode(_:
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
5278
|
+
encode: (_: {
|
|
5279
|
+
lock?: BytesLike | null | undefined;
|
|
5280
|
+
inputType?: BytesLike | null | undefined;
|
|
5281
|
+
outputType?: BytesLike | null | undefined;
|
|
5282
|
+
} & {}) => Bytes$1;
|
|
5283
|
+
decode: (_: BytesLike, _config?: {
|
|
5284
|
+
isExtraFieldIgnored?: boolean;
|
|
5285
|
+
} | undefined) => WitnessArgs;
|
|
5286
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
5287
|
+
isExtraFieldIgnored?: boolean;
|
|
5288
|
+
} | undefined) => WitnessArgs;
|
|
5289
|
+
from: (_: {
|
|
5290
|
+
lock?: BytesLike | null | undefined;
|
|
5291
|
+
inputType?: BytesLike | null | undefined;
|
|
5292
|
+
outputType?: BytesLike | null | undefined;
|
|
5293
|
+
} & {}) => WitnessArgs;
|
|
4965
5294
|
Base<SubTypeLike, SubType = SubTypeLike>(): (abstract new () => {
|
|
4966
5295
|
toBytes(): Bytes$1;
|
|
4967
5296
|
clone(): SubType;
|
|
@@ -4970,10 +5299,14 @@ declare const WitnessArgs_base: (abstract new () => {
|
|
|
4970
5299
|
toHex(): Hex;
|
|
4971
5300
|
}) & {
|
|
4972
5301
|
byteLength?: number;
|
|
4973
|
-
encode(_: SubTypeLike)
|
|
4974
|
-
decode(_: BytesLike
|
|
4975
|
-
|
|
4976
|
-
|
|
5302
|
+
encode: (_: SubTypeLike) => Bytes$1;
|
|
5303
|
+
decode: (_: BytesLike, _config?: {
|
|
5304
|
+
isExtraFieldIgnored?: boolean;
|
|
5305
|
+
}) => SubType;
|
|
5306
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
5307
|
+
isExtraFieldIgnored?: boolean;
|
|
5308
|
+
}) => SubType;
|
|
5309
|
+
from: (_: SubTypeLike) => SubType;
|
|
4977
5310
|
Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
4978
5311
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
|
|
4979
5312
|
readonly inner: DecodedType<CodecType>;
|
|
@@ -4990,10 +5323,14 @@ declare const WitnessArgs_base: (abstract new () => {
|
|
|
4990
5323
|
toHex(): Hex;
|
|
4991
5324
|
}) & {
|
|
4992
5325
|
byteLength?: number;
|
|
4993
|
-
encode(_: SubTypeLike_1)
|
|
4994
|
-
decode(_: BytesLike
|
|
4995
|
-
|
|
4996
|
-
|
|
5326
|
+
encode: (_: SubTypeLike_1) => Bytes$1;
|
|
5327
|
+
decode: (_: BytesLike, _config?: {
|
|
5328
|
+
isExtraFieldIgnored?: boolean;
|
|
5329
|
+
} | undefined) => SubType_1;
|
|
5330
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
5331
|
+
isExtraFieldIgnored?: boolean;
|
|
5332
|
+
} | undefined) => SubType_1;
|
|
5333
|
+
from: (_: SubTypeLike_1) => SubType_1;
|
|
4997
5334
|
Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
4998
5335
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
|
|
4999
5336
|
};
|
|
@@ -5013,10 +5350,14 @@ declare const WitnessArgs_base: (abstract new () => {
|
|
|
5013
5350
|
toHex(): Hex;
|
|
5014
5351
|
}) & {
|
|
5015
5352
|
byteLength?: number;
|
|
5016
|
-
encode(_: SubTypeLike)
|
|
5017
|
-
decode(_: BytesLike
|
|
5018
|
-
|
|
5019
|
-
|
|
5353
|
+
encode: (_: SubTypeLike) => Bytes$1;
|
|
5354
|
+
decode: (_: BytesLike, _config?: {
|
|
5355
|
+
isExtraFieldIgnored?: boolean;
|
|
5356
|
+
} | undefined) => SubType;
|
|
5357
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
5358
|
+
isExtraFieldIgnored?: boolean;
|
|
5359
|
+
} | undefined) => SubType;
|
|
5360
|
+
from: (_: SubTypeLike) => SubType;
|
|
5020
5361
|
Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
|
|
5021
5362
|
toBytes(): Bytes$1;
|
|
5022
5363
|
clone(): SubType_1;
|
|
@@ -5025,10 +5366,14 @@ declare const WitnessArgs_base: (abstract new () => {
|
|
|
5025
5366
|
toHex(): Hex;
|
|
5026
5367
|
}) & {
|
|
5027
5368
|
byteLength?: number;
|
|
5028
|
-
encode(_: SubTypeLike_1)
|
|
5029
|
-
decode(_: BytesLike
|
|
5030
|
-
|
|
5031
|
-
|
|
5369
|
+
encode: (_: SubTypeLike_1) => Bytes$1;
|
|
5370
|
+
decode: (_: BytesLike, _config?: {
|
|
5371
|
+
isExtraFieldIgnored?: boolean;
|
|
5372
|
+
}) => SubType_1;
|
|
5373
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
5374
|
+
isExtraFieldIgnored?: boolean;
|
|
5375
|
+
}) => SubType_1;
|
|
5376
|
+
from: (_: SubTypeLike_1) => SubType_1;
|
|
5032
5377
|
Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
|
|
5033
5378
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
5034
5379
|
};
|
|
@@ -5039,9 +5384,9 @@ declare const WitnessArgs_base: (abstract new () => {
|
|
|
5039
5384
|
* @public
|
|
5040
5385
|
*/
|
|
5041
5386
|
declare class WitnessArgs extends WitnessArgs_base {
|
|
5042
|
-
lock?: Hex
|
|
5043
|
-
inputType?: Hex
|
|
5044
|
-
outputType?: Hex
|
|
5387
|
+
lock?: Hex;
|
|
5388
|
+
inputType?: Hex;
|
|
5389
|
+
outputType?: Hex;
|
|
5045
5390
|
/**
|
|
5046
5391
|
* Creates an instance of WitnessArgs.
|
|
5047
5392
|
*
|
|
@@ -5049,23 +5394,7 @@ declare class WitnessArgs extends WitnessArgs_base {
|
|
|
5049
5394
|
* @param inputType - The optional input type field of the witness.
|
|
5050
5395
|
* @param outputType - The optional output type field of the witness.
|
|
5051
5396
|
*/
|
|
5052
|
-
constructor(lock
|
|
5053
|
-
/**
|
|
5054
|
-
* Creates a WitnessArgs instance from a WitnessArgsLike object.
|
|
5055
|
-
*
|
|
5056
|
-
* @param witnessArgs - A WitnessArgsLike object or an instance of WitnessArgs.
|
|
5057
|
-
* @returns A WitnessArgs instance.
|
|
5058
|
-
*
|
|
5059
|
-
* @example
|
|
5060
|
-
* ```typescript
|
|
5061
|
-
* const witnessArgs = WitnessArgs.from({
|
|
5062
|
-
* lock: "0x...",
|
|
5063
|
-
* inputType: "0x...",
|
|
5064
|
-
* outputType: "0x..."
|
|
5065
|
-
* });
|
|
5066
|
-
* ```
|
|
5067
|
-
*/
|
|
5068
|
-
static from(witnessArgs: WitnessArgsLike): WitnessArgs;
|
|
5397
|
+
constructor({ lock, inputType, outputType }: DecodedType<typeof WitnessArgsCodec>);
|
|
5069
5398
|
}
|
|
5070
5399
|
/**
|
|
5071
5400
|
* Convert a bytes to a num.
|
|
@@ -5075,14 +5404,26 @@ declare class WitnessArgs extends WitnessArgs_base {
|
|
|
5075
5404
|
declare function udtBalanceFrom(dataLike: BytesLike): Num;
|
|
5076
5405
|
declare const RawTransaction: Codec<EncodableRecord<{
|
|
5077
5406
|
version: Codec<NumLike, number>;
|
|
5078
|
-
cellDeps: Codec<
|
|
5407
|
+
cellDeps: Codec<({} & {
|
|
5408
|
+
outPoint: {} & {
|
|
5409
|
+
txHash: BytesLike;
|
|
5410
|
+
index: NumLike;
|
|
5411
|
+
};
|
|
5412
|
+
depType: DepTypeLike;
|
|
5413
|
+
})[], CellDep[]>;
|
|
5079
5414
|
headerDeps: Codec<BytesLike[], `0x${string}`[]>;
|
|
5080
5415
|
inputs: Codec<CellInputLike[], CellInput[]>;
|
|
5081
5416
|
outputs: Codec<CellOutputLike[], CellOutput[]>;
|
|
5082
5417
|
outputsData: Codec<BytesLike[], `0x${string}`[]>;
|
|
5083
5418
|
}>, DecodedRecord<{
|
|
5084
5419
|
version: Codec<NumLike, number>;
|
|
5085
|
-
cellDeps: Codec<
|
|
5420
|
+
cellDeps: Codec<({} & {
|
|
5421
|
+
outPoint: {} & {
|
|
5422
|
+
txHash: BytesLike;
|
|
5423
|
+
index: NumLike;
|
|
5424
|
+
};
|
|
5425
|
+
depType: DepTypeLike;
|
|
5426
|
+
})[], CellDep[]>;
|
|
5086
5427
|
headerDeps: Codec<BytesLike[], `0x${string}`[]>;
|
|
5087
5428
|
inputs: Codec<CellInputLike[], CellInput[]>;
|
|
5088
5429
|
outputs: Codec<CellOutputLike[], CellOutput[]>;
|
|
@@ -5108,10 +5449,14 @@ declare const Transaction_base: (abstract new () => {
|
|
|
5108
5449
|
toHex(): Hex;
|
|
5109
5450
|
}) & {
|
|
5110
5451
|
byteLength?: number;
|
|
5111
|
-
encode(_: TransactionLike)
|
|
5112
|
-
decode(_: BytesLike
|
|
5113
|
-
|
|
5114
|
-
|
|
5452
|
+
encode: (_: TransactionLike) => Bytes$1;
|
|
5453
|
+
decode: (_: BytesLike, _config?: {
|
|
5454
|
+
isExtraFieldIgnored?: boolean;
|
|
5455
|
+
} | undefined) => Transaction;
|
|
5456
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
5457
|
+
isExtraFieldIgnored?: boolean;
|
|
5458
|
+
} | undefined) => Transaction;
|
|
5459
|
+
from: (_: TransactionLike) => Transaction;
|
|
5115
5460
|
Base<SubTypeLike, SubType = SubTypeLike>(): (abstract new () => {
|
|
5116
5461
|
toBytes(): Bytes$1;
|
|
5117
5462
|
clone(): SubType;
|
|
@@ -5120,10 +5465,14 @@ declare const Transaction_base: (abstract new () => {
|
|
|
5120
5465
|
toHex(): Hex;
|
|
5121
5466
|
}) & {
|
|
5122
5467
|
byteLength?: number;
|
|
5123
|
-
encode(_: SubTypeLike)
|
|
5124
|
-
decode(_: BytesLike
|
|
5125
|
-
|
|
5126
|
-
|
|
5468
|
+
encode: (_: SubTypeLike) => Bytes$1;
|
|
5469
|
+
decode: (_: BytesLike, _config?: {
|
|
5470
|
+
isExtraFieldIgnored?: boolean;
|
|
5471
|
+
}) => SubType;
|
|
5472
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
5473
|
+
isExtraFieldIgnored?: boolean;
|
|
5474
|
+
}) => SubType;
|
|
5475
|
+
from: (_: SubTypeLike) => SubType;
|
|
5127
5476
|
Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
5128
5477
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
|
|
5129
5478
|
readonly inner: DecodedType<CodecType>;
|
|
@@ -5140,10 +5489,14 @@ declare const Transaction_base: (abstract new () => {
|
|
|
5140
5489
|
toHex(): Hex;
|
|
5141
5490
|
}) & {
|
|
5142
5491
|
byteLength?: number;
|
|
5143
|
-
encode(_: SubTypeLike_1)
|
|
5144
|
-
decode(_: BytesLike
|
|
5145
|
-
|
|
5146
|
-
|
|
5492
|
+
encode: (_: SubTypeLike_1) => Bytes$1;
|
|
5493
|
+
decode: (_: BytesLike, _config?: {
|
|
5494
|
+
isExtraFieldIgnored?: boolean;
|
|
5495
|
+
} | undefined) => SubType_1;
|
|
5496
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
5497
|
+
isExtraFieldIgnored?: boolean;
|
|
5498
|
+
} | undefined) => SubType_1;
|
|
5499
|
+
from: (_: SubTypeLike_1) => SubType_1;
|
|
5147
5500
|
Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
5148
5501
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
|
|
5149
5502
|
};
|
|
@@ -5163,10 +5516,14 @@ declare const Transaction_base: (abstract new () => {
|
|
|
5163
5516
|
toHex(): Hex;
|
|
5164
5517
|
}) & {
|
|
5165
5518
|
byteLength?: number;
|
|
5166
|
-
encode(_: SubTypeLike)
|
|
5167
|
-
decode(_: BytesLike
|
|
5168
|
-
|
|
5169
|
-
|
|
5519
|
+
encode: (_: SubTypeLike) => Bytes$1;
|
|
5520
|
+
decode: (_: BytesLike, _config?: {
|
|
5521
|
+
isExtraFieldIgnored?: boolean;
|
|
5522
|
+
} | undefined) => SubType;
|
|
5523
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
5524
|
+
isExtraFieldIgnored?: boolean;
|
|
5525
|
+
} | undefined) => SubType;
|
|
5526
|
+
from: (_: SubTypeLike) => SubType;
|
|
5170
5527
|
Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
|
|
5171
5528
|
toBytes(): Bytes$1;
|
|
5172
5529
|
clone(): SubType_1;
|
|
@@ -5175,10 +5532,14 @@ declare const Transaction_base: (abstract new () => {
|
|
|
5175
5532
|
toHex(): Hex;
|
|
5176
5533
|
}) & {
|
|
5177
5534
|
byteLength?: number;
|
|
5178
|
-
encode(_: SubTypeLike_1)
|
|
5179
|
-
decode(_: BytesLike
|
|
5180
|
-
|
|
5181
|
-
|
|
5535
|
+
encode: (_: SubTypeLike_1) => Bytes$1;
|
|
5536
|
+
decode: (_: BytesLike, _config?: {
|
|
5537
|
+
isExtraFieldIgnored?: boolean;
|
|
5538
|
+
}) => SubType_1;
|
|
5539
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
5540
|
+
isExtraFieldIgnored?: boolean;
|
|
5541
|
+
}) => SubType_1;
|
|
5542
|
+
from: (_: SubTypeLike_1) => SubType_1;
|
|
5182
5543
|
Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
|
|
5183
5544
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
5184
5545
|
};
|
|
@@ -5207,7 +5568,15 @@ declare class Transaction extends Transaction_base {
|
|
|
5207
5568
|
* @param outputsData - The data associated with the outputs.
|
|
5208
5569
|
* @param witnesses - The witnesses of the transaction.
|
|
5209
5570
|
*/
|
|
5210
|
-
constructor(version
|
|
5571
|
+
constructor({ version, cellDeps, headerDeps, inputs, outputs, outputsData, witnesses }: {
|
|
5572
|
+
version: Num;
|
|
5573
|
+
cellDeps: CellDep[];
|
|
5574
|
+
headerDeps: Hex[];
|
|
5575
|
+
inputs: CellInput[];
|
|
5576
|
+
outputs: CellOutput[];
|
|
5577
|
+
outputsData: Hex[];
|
|
5578
|
+
witnesses: Hex[];
|
|
5579
|
+
});
|
|
5211
5580
|
/**
|
|
5212
5581
|
* Creates a default Transaction instance with empty fields.
|
|
5213
5582
|
*
|
|
@@ -6166,8 +6535,8 @@ declare abstract class Client {
|
|
|
6166
6535
|
*/
|
|
6167
6536
|
abstract getKnownScript(script: KnownScript): Promise<ScriptInfo>;
|
|
6168
6537
|
abstract getFeeRateStatistics(blockRange?: NumLike): Promise<{
|
|
6169
|
-
mean
|
|
6170
|
-
median
|
|
6538
|
+
mean?: Num;
|
|
6539
|
+
median?: Num;
|
|
6171
6540
|
}>;
|
|
6172
6541
|
/**
|
|
6173
6542
|
* Get the recommended transaction fee rate based on recent blocks.
|
|
@@ -7068,5 +7437,5 @@ declare namespace advancedBarrel_d_exports {
|
|
|
7068
7437
|
export { ADDRESS_BECH32_LIMIT, AddressFormat, BytesFromEncoding, CKB_BLAKE2B_PERSONAL, CellRecord, ClientCollectableSearchKeyFilterLike, ClientCollectableSearchKeyLike, DEFAULT_CONFIRMED_BLOCK_TIME, DEFAULT_MAX_FEE_RATE, DEFAULT_MIN_FEE_RATE, DEP_TYPES, DEP_TYPE_TO_NUM, HASH_TYPES, HASH_TYPE_TO_NUM, JsonRpcBlock, JsonRpcBlockHeader, JsonRpcBlockUncle, JsonRpcCellDep, JsonRpcCellInput, JsonRpcCellOutput, JsonRpcDepType, JsonRpcHashType, JsonRpcIndexerFindTransactionsGroupedResponse, JsonRpcIndexerFindTransactionsResponse, JsonRpcIndexerSearchKey, JsonRpcIndexerSearchKeyFilter, JsonRpcIndexerSearchKeyTransaction, JsonRpcOutPoint, JsonRpcPayload, JsonRpcScript, JsonRpcTransaction, JsonRpcTransformers, MAINNET_SCRIPTS, MapLru, NUM_TO_DEP_TYPE, NUM_TO_HASH_TYPE, TESTNET_SCRIPTS, Transport, TransportFallback, TransportHttp, TransportWebSocket, addressFromPayload, addressPayloadFromString, clientSearchKeyRangeFrom, filterCell, filterData, filterNumByRange, filterScript, filterScriptByLenRange, transportFromUri };
|
|
7069
7438
|
}
|
|
7070
7439
|
//#endregion
|
|
7071
|
-
export { CellDep as $,
|
|
7072
|
-
//# sourceMappingURL=advancedBarrel-
|
|
7440
|
+
export { CellDep as $, DecodedType as $i, SignerCkbScriptReadonly as $n, CodecBool as $r, ClientFindCellsResponse as $t, DEP_TYPES as A, codec as Ai, buildNostrEventFromMessage as An, keystoreDecrypt as Ar, HashTypeCodec as At, ClientPublicTestnet as B, NumLike as Bi, SignerOpenLink as Bn, HasherKeecak256 as Br, Epoch as Bt, DEFAULT_CONFIRMED_BLOCK_TIME as C, CodecUint64BE as Ci, ClientCollectableSearchKeyLike as Cn, SignerType as Cr, depTypeFrom as Ct, filterNumByRange as D, codecUint as Di, barrel_d_exports as Dn, SignPsbtOptions as Dr, udtBalanceFrom as Dt, filterData as E, codecPadding as Ei, clientSearchKeyRangeFrom as En, InputToSignLike as Er, isDaoOutputLimitExceeded as Et, NUM_TO_HASH_TYPE as F, reduce as Fi, NostrEvent as Fn, transportFromUri as Fr, ScriptVec as Ft, ClientCacheMemory as G, numLeFromBytes as Gi, SignerDogePrivateKey as Gn, hashCkbShort as Gr, CellDepInfo as Gt, ClientJsonRpc as H, numBeToBytes as Hi, SignerDummy as Hn, HASH_CKB_SHORT_LENGTH as Hr, epochFrom as Ht, ADDRESS_BECH32_LIMIT as I, reduceAsync as Ii, SignerNostr as In, TransportWebSocket as Ir, hashTypeFrom as It, ErrorTransactionInsufficientCoin as J, numMin as Ji, verifyMessageJoyId as Jn, FixedPointLike as Jr, ClientBlockHeader as Jt, ClientCache as K, numLeToBytes as Ki, SignerDogeAddressReadonly as Kn, Hasher as Kr, CellDepInfoLike as Kt, AddressFormat as L, sleep as Li, verifyMessageEvmPersonal as Ln, TransportHttp as Lr, hashTypeFromBytes as Lt, NUM_TO_DEP_TYPE as M, apply as Mi, verifyMessageNostrEvent as Mn, RequestorJsonRpc as Mr, Script as Mt, HASH_TYPES as N, gcd as Ni, SignerNostrPrivateKey as Nn, RequestorJsonRpcConfig as Nr, ScriptLike as Nt, filterScript as O, codecUintNumber as Oi, Signer as On, SignPsbtOptionsLike as Or, LumosTransactionSkeletonType as Ot, HASH_TYPE_TO_NUM as P, isWebview as Pi, SignerNostrPublicKeyReadonly as Pn, TransportFallback as Pr, ScriptOpt as Pt, CellAnyLike as Q, CodecLike as Qi, SignerMultisigCkbReadonly as Qn, fixedPointToString as Qr, ClientBlockUncleLike as Qt, addressFromPayload as R, stringify as Ri, SignerEvmAddressReadonly as Rn, JsonRpcPayload as Rr, hashTypeToBytes as Rt, CellRecord as S, CodecUint64 as Si, ClientCollectableSearchKeyFilterLike as Sn, SignerSignType as Sr, calcDaoProfit as St, filterCell as T, CodecUint8 as Ti, DEFAULT_MIN_FEE_RATE as Tn, InputToSign as Tr, depTypeToBytes as Tt, ClientJsonRpcConfig as U, numFrom as Ui, messageHashDogeEcdsa as Un, HasherCkb as Ur, epochFromHex as Ut, ClientPublicMainnet as V, numBeFromBytes as Vi, SignerAlwaysError as Vn, HASH_CKB_LENGTH as Vr, EpochLike as Vt, Client as W, numFromBytes as Wi, verifyMessageDogeEcdsa as Wn, hashCkb as Wr, epochToHex as Wt, Cell as X, numToHex as Xi, MultisigCkbWitness as Xn, Zero as Xr, ClientBlockLike as Xt, hashTypeId as Y, numToBytes as Yi, SignerMultisigCkbPrivateKey as Yn, One as Yr, ClientBlockHeaderLike as Yt, CellAny as Z, Codec as Zi, MultisigCkbWitnessLike as Zn, fixedPointFrom as Zr, ClientBlockUncle as Zt, JsonRpcOutPoint as _, CodecUint32BE as _i, ErrorClientWaitTransactionTimeout as _n, NetworkPreference as _r, Transaction as _t, JsonRpcBlockHeader as a, bytesLen as aa, CodecBytes as ai, ClientIndexerSearchKeyLike as an, recoverMessageSecp256k1 as ar, CellLike as at, TESTNET_SCRIPTS as b, CodecUint512BE as bi, ScriptInfoLike as bn, SignerMultisig as br, WitnessArgsLike as bt, JsonRpcCellInput as c, Bytes$1 as ca, CodecUint128BE as ci, ClientTransactionResponse as cn, verifyMessageSecp256k1 as cr, CellOutputVec as ct, JsonRpcHashType as d, bytesConcatTo as da, CodecUint16BE as di, ErrorClientBaseLike as dn, btcPublicKeyFromP2pkhAddress as dr, DepTypeLike as dt, EncodableType as ea, CodecByte as ei, ClientFindTransactionsGroupedResponse as en, SignerCkbPrivateKey as er, CellDepLike as et, JsonRpcIndexerFindTransactionsGroupedResponse as f, bytesEq as fa, CodecUint16LE as fi, ErrorClientDuplicatedTransaction as fn, btcVarLengthBytesFrom as fr, OutPoint as ft, JsonRpcIndexerSearchKeyTransaction as g, CodecUint32 as gi, ErrorClientVerification as gn, SignerBtc as gr, SinceLike as gt, JsonRpcIndexerSearchKeyFilter as h, BytesFromEncoding as ha, CodecUint256LE as hi, ErrorClientResolveUnknown as hn, SignerBtcPublicKeyReadonly as hr, Since as ht, JsonRpcBlock as i, HexLike as ia, CodecByte8 as ii, ClientIndexerSearchKeyFilterLike as in, messageHashCkbSecp256k1 as ir, CellInputVec as it, DEP_TYPE_TO_NUM as j, Constructor as ji, nostrEventHash as jn, keystoreEncrypt as jr, HashTypeLike as jt, filterScriptByLenRange as k, Entity as ki, signerFromSignature as kn, barrel_d_exports$1 as kr, HashType as kt, JsonRpcCellOutput as l, BytesLike as la, CodecUint128LE as li, ClientTransactionResponseLike as ln, btcEcdsaPublicKeyHash as lr, DepType as lt, JsonRpcIndexerSearchKey as m, bytesTo as ma, CodecUint256BE as mi, ErrorClientRBFRejected as mn, verifyMessageBtcEcdsa as mr, RawTransaction as mt, CKB_BLAKE2B_PERSONAL as n, AddressLike as na, CodecByte32 as ni, ClientIndexerSearchKey as nn, SignerCkbAlwaysSuccess as nr, CellInput as nt, JsonRpcBlockUncle as o, bytesLenUnsafe as oa, CodecRaw as oi, ClientIndexerSearchKeyTransaction as on, signMessageSecp256k1 as or, CellOutput as ot, JsonRpcIndexerFindTransactionsResponse as p, bytesFrom as pa, CodecUint256 as pi, ErrorClientMaxFeeRateExceeded as pn, messageHashBtcEcdsa as pr, OutPointLike as pt, ErrorTransactionInsufficientCapacity as q, numMax as qi, SignerDoge as qn, FixedPoint as qr, ClientBlock as qt, JsonRpcTransformers as r, Hex as ra, CodecByte4 as ri, ClientIndexerSearchKeyFilter as rn, SECP256K1_SIGNATURE_LENGTH as rr, CellInputLike as rt, JsonRpcCellDep as s, hexFrom as sa, CodecUint128 as si, ClientIndexerSearchKeyTransactionLike as sn, verifyMessageCkbSecp256k1 as sr, CellOutputLike as st, advancedBarrel_d_exports as t, Address as ta, CodecByte16 as ti, ClientFindTransactionsResponse as tn, SignerCkbPublicKey as tr, CellDepVec as tt, JsonRpcDepType as u, bytesConcat as ua, CodecUint16 as ui, ErrorClientBase as un, btcP2pkhAddressFromPublicKey as ur, DepTypeCodec as ut, JsonRpcScript as v, CodecUint32LE as vi, OutputsValidator as vn, Signature as vr, TransactionLike as vt, MapLru as w, CodecUint64LE as wi, DEFAULT_MAX_FEE_RATE as wn, Wallet as wr, depTypeFromBytes as wt, MAINNET_SCRIPTS as x, CodecUint512LE as xi, TransactionStatus as xn, SignerMultisigNotEnoughSignaturesError as xr, calcDaoClaimEpoch as xt, JsonRpcTransaction as y, CodecUint512 as yi, ScriptInfo as yn, SignerInfo as yr, WitnessArgs as yt, addressPayloadFromString as z, Num as zi, SignerEvm as zn, Transport as zr, KnownScript as zt };
|
|
7441
|
+
//# sourceMappingURL=advancedBarrel-DNdhwiU0.d.ts.map
|