@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,4 +1,3 @@
|
|
|
1
|
-
//#endregion
|
|
2
1
|
//#region src/bytes/advanced.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Represents the possible encoding formats for converting bytes.
|
|
@@ -242,29 +241,32 @@ declare class Address {
|
|
|
242
241
|
//#endregion
|
|
243
242
|
//#region src/codec/codec.d.ts
|
|
244
243
|
type CodecLike<Encodable, Decoded = Encodable> = {
|
|
245
|
-
|
|
246
|
-
|
|
244
|
+
encode: (encodable: Encodable) => BytesLike;
|
|
245
|
+
decode: (decodable: Bytes$1, config?: {
|
|
247
246
|
isExtraFieldIgnored?: boolean;
|
|
248
247
|
}) => Decoded;
|
|
249
|
-
|
|
248
|
+
from?: ((encoded: Encodable) => Decoded) | null;
|
|
249
|
+
byteLength?: number;
|
|
250
250
|
};
|
|
251
251
|
declare class Codec<Encodable, Decoded = Encodable> {
|
|
252
252
|
readonly encode: (encodable: Encodable) => Bytes$1;
|
|
253
253
|
readonly decode: (decodable: BytesLike, config?: {
|
|
254
254
|
isExtraFieldIgnored?: boolean;
|
|
255
255
|
}) => Decoded;
|
|
256
|
+
readonly from: (encodable: Encodable) => Decoded;
|
|
256
257
|
readonly byteLength?: number | undefined;
|
|
257
258
|
constructor(encode: (encodable: Encodable) => Bytes$1, decode: (decodable: BytesLike, config?: {
|
|
258
259
|
isExtraFieldIgnored?: boolean;
|
|
259
|
-
}) => Decoded, byteLength?: number | undefined);
|
|
260
|
+
}) => Decoded, from: (encodable: Encodable) => Decoded, byteLength?: number | undefined);
|
|
260
261
|
encodeOr<T>(encodable: Encodable, fallback: T): Bytes$1 | T;
|
|
261
262
|
decodeOr<T>(decodable: BytesLike, fallback: T, config?: {
|
|
262
263
|
isExtraFieldIgnored?: boolean;
|
|
263
264
|
}): Decoded | T;
|
|
264
|
-
static from<Encodable, Decoded = Encodable>(
|
|
265
|
-
map<NewEncodable = Encodable, NewDecoded = Decoded>({ inMap, outMap }: {
|
|
265
|
+
static from<Encodable, Decoded = Encodable>(codecLike: CodecLike<Encodable, Decoded>): Codec<Encodable, Decoded>;
|
|
266
|
+
map<NewEncodable = Encodable, NewDecoded = Decoded>({ inMap, outMap, from }: {
|
|
266
267
|
inMap?: (encodable: NewEncodable) => Encodable;
|
|
267
268
|
outMap?: (decoded: Decoded) => NewDecoded;
|
|
269
|
+
from?: (encodable: NewEncodable) => NewDecoded;
|
|
268
270
|
}): Codec<NewEncodable, NewDecoded>;
|
|
269
271
|
mapIn<NewEncodable>(map: (encodable: NewEncodable) => Encodable): Codec<NewEncodable, Decoded>;
|
|
270
272
|
mapOut<NewDecoded>(map: (decoded: Decoded) => NewDecoded): Codec<Encodable, NewDecoded>;
|
|
@@ -277,12 +279,12 @@ type DecodedType<T extends CodecLike<any, any>> = T extends CodecLike<any, infer
|
|
|
277
279
|
* Vector with fixed size item codec
|
|
278
280
|
* @param itemCodec fixed-size vector item codec
|
|
279
281
|
*/
|
|
280
|
-
declare function fixedItemVec<Encodable, Decoded>(
|
|
282
|
+
declare function fixedItemVec<Encodable, Decoded>(itemCodecLike: CodecLike<Encodable, Decoded>): Codec<Array<Encodable>, Array<Decoded>>;
|
|
281
283
|
/**
|
|
282
284
|
* Vector with dynamic size item codec, you can create a recursive vector with this function
|
|
283
285
|
* @param itemCodec the vector item codec. It can be fixed-size or dynamic-size.
|
|
284
286
|
*/
|
|
285
|
-
declare function dynItemVec<Encodable, Decoded>(
|
|
287
|
+
declare function dynItemVec<Encodable, Decoded>(itemCodecLike: CodecLike<Encodable, Decoded>): Codec<Array<Encodable>, Array<Decoded>>;
|
|
286
288
|
/**
|
|
287
289
|
* General vector codec, if `itemCodec` is fixed size type, it will create a fixvec codec, otherwise a dynvec codec will be created.
|
|
288
290
|
* @param itemCodec
|
|
@@ -295,12 +297,12 @@ declare function vector<Encodable, Decoded>(itemCodec: CodecLike<Encodable, Deco
|
|
|
295
297
|
* - if it's not empty, just serialize the inner item (the size is same as the inner item's size).
|
|
296
298
|
* @param innerCodec
|
|
297
299
|
*/
|
|
298
|
-
declare function option<Encodable, Decoded>(
|
|
300
|
+
declare function option<Encodable, Decoded>(innerCodecLike: CodecLike<Encodable, Decoded>): Codec<Encodable | undefined | null, Decoded | undefined>;
|
|
299
301
|
/**
|
|
300
302
|
* Wrap the encoded value with a fixed-length buffer
|
|
301
303
|
* @param codec
|
|
302
304
|
*/
|
|
303
|
-
declare function byteVec<Encodable, Decoded>(
|
|
305
|
+
declare function byteVec<Encodable, Decoded>(codecLike: CodecLike<Encodable, Decoded>): Codec<Encodable, Decoded>;
|
|
304
306
|
type EncodableRecordOptionalKeys<T extends Record<string, CodecLike<any, any>>> = { [K in keyof T]: Extract<EncodableType<T[K]>, undefined> extends never ? never : K; }[keyof T];
|
|
305
307
|
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]>; };
|
|
306
308
|
type DecodedRecordOptionalKeys<T extends Record<string, CodecLike<any, any>>> = { [K in keyof T]: Extract<DecodedType<T[K]>, undefined> extends never ? never : K; }[keyof T];
|
|
@@ -309,7 +311,7 @@ type DecodedRecord<T extends Record<string, CodecLike<any, any>>> = { [key in ke
|
|
|
309
311
|
* Table is a dynamic-size type. It can be considered as a dynvec but the length is fixed.
|
|
310
312
|
* @param codecLayout
|
|
311
313
|
*/
|
|
312
|
-
declare function table<T extends Record<string, CodecLike<any, any>>, Encodable extends EncodableRecord<T>, Decoded extends DecodedRecord<T>>(
|
|
314
|
+
declare function table<T extends Record<string, CodecLike<any, any>>, Encodable extends EncodableRecord<T>, Decoded extends DecodedRecord<T>>(codecLayoutLike: T): Codec<Encodable, Decoded>;
|
|
313
315
|
type UnionEncodable<T extends Record<string, CodecLike<any, any>>, K extends keyof T = keyof T> = K extends unknown ? {
|
|
314
316
|
type: K;
|
|
315
317
|
value: EncodableType<T[K]>;
|
|
@@ -354,7 +356,7 @@ type UnionMatchHandlers<CodecType extends CodecLike<any, UnionDecoded<any, any>>
|
|
|
354
356
|
* // Fixed-size union with custom numeric IDs
|
|
355
357
|
* union({ cafe: PaddedUint8, bee: Uint16 }, { cafe: 0xcafe, bee: 0xbee })
|
|
356
358
|
*/
|
|
357
|
-
declare function union<T extends Record<string, CodecLike<any, any>>>(
|
|
359
|
+
declare function union<T extends Record<string, CodecLike<any, any>>>(codecLayoutLike: T, fields?: Record<keyof T, number | undefined | null>): Codec<UnionEncodable<T> | {
|
|
358
360
|
inner: UnionEncodable<T>;
|
|
359
361
|
}, UnionDecoded<T>>;
|
|
360
362
|
/**
|
|
@@ -362,14 +364,14 @@ declare function union<T extends Record<string, CodecLike<any, any>>>(codecLayou
|
|
|
362
364
|
* The size of a struct is the sum of all fields' size.
|
|
363
365
|
* @param codecLayout a object contains all fields' codec
|
|
364
366
|
*/
|
|
365
|
-
declare function struct<T extends Record<string, CodecLike<any, any>>, Encodable extends EncodableRecord<T>, Decoded extends DecodedRecord<T>>(
|
|
367
|
+
declare function struct<T extends Record<string, CodecLike<any, any>>, Encodable extends EncodableRecord<T>, Decoded extends DecodedRecord<T>>(codecLayoutLike: T): Codec<Encodable, Decoded>;
|
|
366
368
|
/**
|
|
367
369
|
* The array is a fixed-size type: it has a fixed-size inner type and a fixed length.
|
|
368
370
|
* The size of an array is the size of inner type times the length.
|
|
369
371
|
* @param itemCodec the fixed-size array item codec
|
|
370
372
|
* @param itemCount
|
|
371
373
|
*/
|
|
372
|
-
declare function array<Encodable, Decoded>(
|
|
374
|
+
declare function array<Encodable, Decoded>(itemCodecLike: CodecLike<Encodable, Decoded>, itemCount: number): Codec<Array<Encodable>, Array<Decoded>>;
|
|
373
375
|
//#endregion
|
|
374
376
|
//#region src/num/index.d.ts
|
|
375
377
|
/**
|
|
@@ -592,24 +594,43 @@ declare function apply<T, R>(transformer: (val: T) => R, value: undefined | null
|
|
|
592
594
|
*/
|
|
593
595
|
declare function apply<T, R>(transformer: (val: T) => R, value: T | undefined | null): R | undefined;
|
|
594
596
|
/**
|
|
595
|
-
* Similar to Array.reduce, but
|
|
597
|
+
* Similar to Array.reduce, but works on any iterable.
|
|
598
|
+
* @public
|
|
599
|
+
*
|
|
600
|
+
* @param values - The value or iterable to be reduced.
|
|
601
|
+
* @param accumulator - A callback to be called for each value. If it returns null or undefined, the previous result will be kept.
|
|
602
|
+
* @returns The accumulated result.
|
|
603
|
+
*/
|
|
604
|
+
declare function reduce<T>(values: T | Iterable<T>, accumulator: (a: T, b: T, i: number) => T | undefined | null | void): T;
|
|
605
|
+
/**
|
|
606
|
+
* Similar to Array.reduce, but works on any iterable.
|
|
596
607
|
* @public
|
|
597
608
|
*
|
|
598
|
-
* @param values - The
|
|
599
|
-
* @param accumulator - A callback to be called for each value. If it returns null, the previous result will be kept.
|
|
609
|
+
* @param values - The value or iterable to be reduced.
|
|
610
|
+
* @param accumulator - A callback to be called for each value. If it returns null or undefined, the previous result will be kept.
|
|
611
|
+
* @param init - The initial value.
|
|
600
612
|
* @returns The accumulated result.
|
|
601
613
|
*/
|
|
602
|
-
declare function
|
|
614
|
+
declare function reduce<T, V>(values: V | Iterable<V>, accumulator: (a: T, b: V, i: number) => T | undefined | null | void, init: T): T;
|
|
603
615
|
/**
|
|
604
|
-
* Similar to Array.reduce, but the accumulator can
|
|
616
|
+
* Similar to Array.reduce, but works on async iterables and the accumulator can return a Promise.
|
|
605
617
|
* @public
|
|
606
618
|
*
|
|
607
|
-
* @param values - The
|
|
608
|
-
* @param accumulator - A callback to be called for each value. If it returns null, the previous result will be kept.
|
|
619
|
+
* @param values - The value, iterable, or async iterable to be reduced.
|
|
620
|
+
* @param accumulator - A callback to be called for each value. If it returns null or undefined, the previous result will be kept.
|
|
621
|
+
* @returns The accumulated result.
|
|
622
|
+
*/
|
|
623
|
+
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>;
|
|
624
|
+
/**
|
|
625
|
+
* Similar to Array.reduce, but works on async iterables and the accumulator can return a Promise.
|
|
626
|
+
* @public
|
|
627
|
+
*
|
|
628
|
+
* @param values - The value, iterable, or async iterable to be reduced.
|
|
629
|
+
* @param accumulator - A callback to be called for each value. If it returns null or undefined, the previous result will be kept.
|
|
609
630
|
* @param init - The initial value.
|
|
610
631
|
* @returns The accumulated result.
|
|
611
632
|
*/
|
|
612
|
-
declare function reduceAsync<T, V>(values: V
|
|
633
|
+
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>;
|
|
613
634
|
declare function sleep(ms: NumLike): Promise<unknown>;
|
|
614
635
|
type Constructor<T, Args extends any[] = any[]> = {
|
|
615
636
|
new (...args: Args): T;
|
|
@@ -689,25 +710,31 @@ declare abstract class Entity {
|
|
|
689
710
|
* @returns The encoded bytes
|
|
690
711
|
* @throws Will throw an error if the entity is not serializable
|
|
691
712
|
*/
|
|
692
|
-
encode(_: SubTypeLike)
|
|
713
|
+
encode: (_: SubTypeLike) => Bytes$1;
|
|
693
714
|
/**
|
|
694
715
|
* Decode the entity from bytes
|
|
695
716
|
* @public
|
|
696
717
|
* @static
|
|
697
718
|
* @param _ - The bytes to decode
|
|
719
|
+
* @param _config - The configuration for decoding, including whether to ignore extra fields
|
|
698
720
|
* @returns The decoded entity
|
|
699
721
|
* @throws Will throw an error if the entity is not serializable
|
|
700
722
|
*/
|
|
701
|
-
decode(_: BytesLike
|
|
723
|
+
decode: (_: BytesLike, _config?: {
|
|
724
|
+
isExtraFieldIgnored?: boolean;
|
|
725
|
+
}) => SubType;
|
|
702
726
|
/**
|
|
703
727
|
* Create an entity from bytes
|
|
704
728
|
* @public
|
|
705
729
|
* @static
|
|
706
730
|
* @param _ - The bytes to create the entity from
|
|
731
|
+
* @param _config - The configuration for decoding, including whether to ignore extra fields
|
|
707
732
|
* @returns The created entity
|
|
708
733
|
* @throws Will throw an error if the entity is not serializable
|
|
709
734
|
*/
|
|
710
|
-
fromBytes(_bytes: BytesLike
|
|
735
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
736
|
+
isExtraFieldIgnored?: boolean;
|
|
737
|
+
}) => SubType;
|
|
711
738
|
/**
|
|
712
739
|
* Create an entity from a serializable object
|
|
713
740
|
* @public
|
|
@@ -716,7 +743,7 @@ declare abstract class Entity {
|
|
|
716
743
|
* @returns The created entity
|
|
717
744
|
* @throws Will throw an error if the entity is not serializable
|
|
718
745
|
*/
|
|
719
|
-
from(_: SubTypeLike)
|
|
746
|
+
from: (_: SubTypeLike) => SubType;
|
|
720
747
|
Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
721
748
|
/**
|
|
722
749
|
* Generate a base class of CCC to create a serializable Union instance.
|
|
@@ -789,25 +816,31 @@ declare abstract class Entity {
|
|
|
789
816
|
* @returns The encoded bytes
|
|
790
817
|
* @throws Will throw an error if the entity is not serializable
|
|
791
818
|
*/
|
|
792
|
-
encode(_: SubTypeLike_1)
|
|
819
|
+
encode: (_: SubTypeLike_1) => Bytes$1;
|
|
793
820
|
/**
|
|
794
821
|
* Decode the entity from bytes
|
|
795
822
|
* @public
|
|
796
823
|
* @static
|
|
797
824
|
* @param _ - The bytes to decode
|
|
825
|
+
* @param _config - The configuration for decoding, including whether to ignore extra fields
|
|
798
826
|
* @returns The decoded entity
|
|
799
827
|
* @throws Will throw an error if the entity is not serializable
|
|
800
828
|
*/
|
|
801
|
-
decode(_: BytesLike
|
|
829
|
+
decode: (_: BytesLike, _config?: {
|
|
830
|
+
isExtraFieldIgnored?: boolean;
|
|
831
|
+
} | undefined) => SubType_1;
|
|
802
832
|
/**
|
|
803
833
|
* Create an entity from bytes
|
|
804
834
|
* @public
|
|
805
835
|
* @static
|
|
806
836
|
* @param _ - The bytes to create the entity from
|
|
837
|
+
* @param _config - The configuration for decoding, including whether to ignore extra fields
|
|
807
838
|
* @returns The created entity
|
|
808
839
|
* @throws Will throw an error if the entity is not serializable
|
|
809
840
|
*/
|
|
810
|
-
fromBytes(_bytes: BytesLike
|
|
841
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
842
|
+
isExtraFieldIgnored?: boolean;
|
|
843
|
+
} | undefined) => SubType_1;
|
|
811
844
|
/**
|
|
812
845
|
* Create an entity from a serializable object
|
|
813
846
|
* @public
|
|
@@ -816,7 +849,7 @@ declare abstract class Entity {
|
|
|
816
849
|
* @returns The created entity
|
|
817
850
|
* @throws Will throw an error if the entity is not serializable
|
|
818
851
|
*/
|
|
819
|
-
from(_: SubTypeLike_1)
|
|
852
|
+
from: (_: SubTypeLike_1) => SubType_1;
|
|
820
853
|
/**
|
|
821
854
|
* Generate a base class of CCC to create a serializable instance.
|
|
822
855
|
* This should be used with the {@link codec} decorator.
|
|
@@ -921,25 +954,31 @@ declare abstract class Entity {
|
|
|
921
954
|
* @returns The encoded bytes
|
|
922
955
|
* @throws Will throw an error if the entity is not serializable
|
|
923
956
|
*/
|
|
924
|
-
encode(_: SubTypeLike)
|
|
957
|
+
encode: (_: SubTypeLike) => Bytes$1;
|
|
925
958
|
/**
|
|
926
959
|
* Decode the entity from bytes
|
|
927
960
|
* @public
|
|
928
961
|
* @static
|
|
929
962
|
* @param _ - The bytes to decode
|
|
963
|
+
* @param _config - The configuration for decoding, including whether to ignore extra fields
|
|
930
964
|
* @returns The decoded entity
|
|
931
965
|
* @throws Will throw an error if the entity is not serializable
|
|
932
966
|
*/
|
|
933
|
-
decode(_: BytesLike
|
|
967
|
+
decode: (_: BytesLike, _config?: {
|
|
968
|
+
isExtraFieldIgnored?: boolean;
|
|
969
|
+
} | undefined) => SubType;
|
|
934
970
|
/**
|
|
935
971
|
* Create an entity from bytes
|
|
936
972
|
* @public
|
|
937
973
|
* @static
|
|
938
974
|
* @param _ - The bytes to create the entity from
|
|
975
|
+
* @param _config - The configuration for decoding, including whether to ignore extra fields
|
|
939
976
|
* @returns The created entity
|
|
940
977
|
* @throws Will throw an error if the entity is not serializable
|
|
941
978
|
*/
|
|
942
|
-
fromBytes(_bytes: BytesLike
|
|
979
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
980
|
+
isExtraFieldIgnored?: boolean;
|
|
981
|
+
} | undefined) => SubType;
|
|
943
982
|
/**
|
|
944
983
|
* Create an entity from a serializable object
|
|
945
984
|
* @public
|
|
@@ -948,7 +987,7 @@ declare abstract class Entity {
|
|
|
948
987
|
* @returns The created entity
|
|
949
988
|
* @throws Will throw an error if the entity is not serializable
|
|
950
989
|
*/
|
|
951
|
-
from(_: SubTypeLike)
|
|
990
|
+
from: (_: SubTypeLike) => SubType;
|
|
952
991
|
/**
|
|
953
992
|
* Generate a base class of CCC to create a serializable instance.
|
|
954
993
|
* This should be used with the {@link codec} decorator.
|
|
@@ -1001,25 +1040,31 @@ declare abstract class Entity {
|
|
|
1001
1040
|
* @returns The encoded bytes
|
|
1002
1041
|
* @throws Will throw an error if the entity is not serializable
|
|
1003
1042
|
*/
|
|
1004
|
-
encode(_: SubTypeLike_1)
|
|
1043
|
+
encode: (_: SubTypeLike_1) => Bytes$1;
|
|
1005
1044
|
/**
|
|
1006
1045
|
* Decode the entity from bytes
|
|
1007
1046
|
* @public
|
|
1008
1047
|
* @static
|
|
1009
1048
|
* @param _ - The bytes to decode
|
|
1049
|
+
* @param _config - The configuration for decoding, including whether to ignore extra fields
|
|
1010
1050
|
* @returns The decoded entity
|
|
1011
1051
|
* @throws Will throw an error if the entity is not serializable
|
|
1012
1052
|
*/
|
|
1013
|
-
decode(_: BytesLike
|
|
1053
|
+
decode: (_: BytesLike, _config?: {
|
|
1054
|
+
isExtraFieldIgnored?: boolean;
|
|
1055
|
+
}) => SubType_1;
|
|
1014
1056
|
/**
|
|
1015
1057
|
* Create an entity from bytes
|
|
1016
1058
|
* @public
|
|
1017
1059
|
* @static
|
|
1018
1060
|
* @param _ - The bytes to create the entity from
|
|
1061
|
+
* @param _config - The configuration for decoding, including whether to ignore extra fields
|
|
1019
1062
|
* @returns The created entity
|
|
1020
1063
|
* @throws Will throw an error if the entity is not serializable
|
|
1021
1064
|
*/
|
|
1022
|
-
fromBytes(_bytes: BytesLike
|
|
1065
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
1066
|
+
isExtraFieldIgnored?: boolean;
|
|
1067
|
+
}) => SubType_1;
|
|
1023
1068
|
/**
|
|
1024
1069
|
* Create an entity from a serializable object
|
|
1025
1070
|
* @public
|
|
@@ -1028,7 +1073,7 @@ declare abstract class Entity {
|
|
|
1028
1073
|
* @returns The created entity
|
|
1029
1074
|
* @throws Will throw an error if the entity is not serializable
|
|
1030
1075
|
*/
|
|
1031
|
-
from(_: SubTypeLike_1)
|
|
1076
|
+
from: (_: SubTypeLike_1) => SubType_1;
|
|
1032
1077
|
Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
|
|
1033
1078
|
/**
|
|
1034
1079
|
* Generate a base class of CCC to create a serializable Union instance.
|
|
@@ -1044,31 +1089,32 @@ declare abstract class Entity {
|
|
|
1044
1089
|
* A class decorator to add methods implementation on the {@link Entity.Base} class
|
|
1045
1090
|
* @example
|
|
1046
1091
|
* ```typescript
|
|
1047
|
-
*
|
|
1048
|
-
* mol.
|
|
1049
|
-
*
|
|
1050
|
-
*
|
|
1051
|
-
*
|
|
1052
|
-
*
|
|
1053
|
-
* )
|
|
1092
|
+
* const ScriptCodec = mol.table({
|
|
1093
|
+
* codeHash: mol.Byte32,
|
|
1094
|
+
* hashType: HashTypeCodec,
|
|
1095
|
+
* args: mol.Bytes,
|
|
1096
|
+
* });
|
|
1097
|
+
* export type ScriptLike = EncodableType<typeof ScriptCodec>;
|
|
1098
|
+
* @codec(ScriptCodec)
|
|
1054
1099
|
* export class Script extends Entity.Base<ScriptLike, Script>() {
|
|
1055
|
-
*
|
|
1100
|
+
* public codeHash: Hex;
|
|
1101
|
+
* public hashType: HashType;
|
|
1102
|
+
* public args: Hex;
|
|
1103
|
+
*
|
|
1104
|
+
* constructor({ codeHash, hashType, args }: DecodedType<typeof ScriptCodec>) {
|
|
1105
|
+
* super();
|
|
1106
|
+
*
|
|
1107
|
+
* this.codeHash = codeHash;
|
|
1108
|
+
* this.hashType = hashType;
|
|
1109
|
+
* this.args = args;
|
|
1110
|
+
* }
|
|
1056
1111
|
* }
|
|
1057
1112
|
* ```
|
|
1058
1113
|
*/
|
|
1059
|
-
declare function codec<Encodable, TypeLike extends Encodable,
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
}) => Decoded;
|
|
1064
|
-
byteLength?: number;
|
|
1065
|
-
}): <Type extends TypeLike, ConstructorType extends Constructor<Type> & {
|
|
1066
|
-
from(decoded: TypeLike): Type;
|
|
1067
|
-
byteLength?: number;
|
|
1068
|
-
encode(encodable: TypeLike): Bytes$1;
|
|
1069
|
-
decode(bytesLike: BytesLike): Type;
|
|
1070
|
-
fromBytes(bytes: BytesLike): Type;
|
|
1071
|
-
}>(Constructor: ConstructorType, ..._: unknown[]) => ConstructorType;
|
|
1114
|
+
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"> & {
|
|
1115
|
+
from: (encodable: TypeLike | Decoded) => Type;
|
|
1116
|
+
fromBytes: (bytes: BytesLike) => Type;
|
|
1117
|
+
}, ..._: unknown[]) => void;
|
|
1072
1118
|
//#endregion
|
|
1073
1119
|
//#region src/codec/predefined.d.ts
|
|
1074
1120
|
/**
|
|
@@ -1598,7 +1644,7 @@ declare class Signature {
|
|
|
1598
1644
|
* This class provides methods to connect, get addresses, and sign transactions.
|
|
1599
1645
|
* @public
|
|
1600
1646
|
*/
|
|
1601
|
-
declare abstract class Signer {
|
|
1647
|
+
declare abstract class Signer$1 {
|
|
1602
1648
|
protected client_: Client;
|
|
1603
1649
|
constructor(client_: Client);
|
|
1604
1650
|
abstract get type(): SignerType;
|
|
@@ -1606,6 +1652,7 @@ declare abstract class Signer {
|
|
|
1606
1652
|
get client(): Client;
|
|
1607
1653
|
matchNetworkPreference(preferences: NetworkPreference[], currentNetwork: string | undefined): NetworkPreference | undefined;
|
|
1608
1654
|
static verifyMessage(message: string | BytesLike, signature: Signature): Promise<boolean>;
|
|
1655
|
+
static fromSignature(_client: Client, _signature: Signature, _message?: string | BytesLike | null, ..._addresses: (string | string[])[]): Promise<Signer$1 | undefined>;
|
|
1609
1656
|
/**
|
|
1610
1657
|
* Connects to the signer.
|
|
1611
1658
|
*
|
|
@@ -1777,7 +1824,7 @@ declare abstract class Signer {
|
|
|
1777
1824
|
* An abstract class representing a multisig signer.
|
|
1778
1825
|
* @public
|
|
1779
1826
|
*/
|
|
1780
|
-
declare abstract class SignerMultisig extends Signer {
|
|
1827
|
+
declare abstract class SignerMultisig extends Signer$1 {
|
|
1781
1828
|
/**
|
|
1782
1829
|
* Get the number of members in the multisig script.
|
|
1783
1830
|
* @returns The number of members.
|
|
@@ -1854,8 +1901,8 @@ declare class SignerMultisigNotEnoughSignaturesError extends Error {
|
|
|
1854
1901
|
*/
|
|
1855
1902
|
declare class SignerInfo {
|
|
1856
1903
|
name: string;
|
|
1857
|
-
signer: Signer;
|
|
1858
|
-
constructor(name: string, signer: Signer);
|
|
1904
|
+
signer: Signer$1;
|
|
1905
|
+
constructor(name: string, signer: Signer$1);
|
|
1859
1906
|
}
|
|
1860
1907
|
/**
|
|
1861
1908
|
* Represents a wallet with a name, icon, and an array of signer information.
|
|
@@ -1873,7 +1920,7 @@ type Wallet = {
|
|
|
1873
1920
|
* as well as signing transactions.
|
|
1874
1921
|
* @public
|
|
1875
1922
|
*/
|
|
1876
|
-
declare abstract class SignerBtc extends Signer {
|
|
1923
|
+
declare abstract class SignerBtc extends Signer$1 {
|
|
1877
1924
|
get type(): SignerType;
|
|
1878
1925
|
get signType(): SignerSignType;
|
|
1879
1926
|
/**
|
|
@@ -2087,7 +2134,7 @@ declare function verifyMessageCkbSecp256k1(message: string | BytesLike, signatur
|
|
|
2087
2134
|
*
|
|
2088
2135
|
* @public
|
|
2089
2136
|
*/
|
|
2090
|
-
declare class SignerCkbAlwaysSuccess extends Signer {
|
|
2137
|
+
declare class SignerCkbAlwaysSuccess extends Signer$1 {
|
|
2091
2138
|
get type(): SignerType;
|
|
2092
2139
|
get signType(): SignerSignType;
|
|
2093
2140
|
/**
|
|
@@ -2118,7 +2165,7 @@ declare class SignerCkbAlwaysSuccess extends Signer {
|
|
|
2118
2165
|
/**
|
|
2119
2166
|
* @public
|
|
2120
2167
|
*/
|
|
2121
|
-
declare class SignerCkbPublicKey extends Signer {
|
|
2168
|
+
declare class SignerCkbPublicKey extends Signer$1 {
|
|
2122
2169
|
get type(): SignerType;
|
|
2123
2170
|
get signType(): SignerSignType;
|
|
2124
2171
|
readonly publicKey: Hex;
|
|
@@ -2157,7 +2204,7 @@ declare class SignerCkbPrivateKey extends SignerCkbPublicKey {
|
|
|
2157
2204
|
*
|
|
2158
2205
|
* @public
|
|
2159
2206
|
*/
|
|
2160
|
-
declare class SignerCkbScriptReadonly extends Signer {
|
|
2207
|
+
declare class SignerCkbScriptReadonly extends Signer$1 {
|
|
2161
2208
|
/**
|
|
2162
2209
|
* The type of the signer.
|
|
2163
2210
|
*/
|
|
@@ -2226,6 +2273,12 @@ type MultisigCkbWitnessLike = ({
|
|
|
2226
2273
|
mustMatch?: NumLike | null;
|
|
2227
2274
|
signatures?: HexLike[] | null;
|
|
2228
2275
|
};
|
|
2276
|
+
declare const MultisigCkbWitnessCodec: Codec<MultisigCkbWitnessLike, {
|
|
2277
|
+
publicKeyHashes: `0x${string}`[];
|
|
2278
|
+
threshold: number;
|
|
2279
|
+
mustMatch: number;
|
|
2280
|
+
signatures: `0x${string}`[];
|
|
2281
|
+
}>;
|
|
2229
2282
|
declare const MultisigCkbWitness_base: (abstract new () => {
|
|
2230
2283
|
toBytes(): Bytes$1;
|
|
2231
2284
|
clone(): MultisigCkbWitness;
|
|
@@ -2234,10 +2287,14 @@ declare const MultisigCkbWitness_base: (abstract new () => {
|
|
|
2234
2287
|
toHex(): Hex;
|
|
2235
2288
|
}) & {
|
|
2236
2289
|
byteLength?: number;
|
|
2237
|
-
encode(_: MultisigCkbWitnessLike)
|
|
2238
|
-
decode(_: BytesLike
|
|
2239
|
-
|
|
2240
|
-
|
|
2290
|
+
encode: (_: MultisigCkbWitnessLike) => Bytes$1;
|
|
2291
|
+
decode: (_: BytesLike, _config?: {
|
|
2292
|
+
isExtraFieldIgnored?: boolean;
|
|
2293
|
+
} | undefined) => MultisigCkbWitness;
|
|
2294
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
2295
|
+
isExtraFieldIgnored?: boolean;
|
|
2296
|
+
} | undefined) => MultisigCkbWitness;
|
|
2297
|
+
from: (_: MultisigCkbWitnessLike) => MultisigCkbWitness;
|
|
2241
2298
|
Base<SubTypeLike, SubType = SubTypeLike>(): (abstract new () => {
|
|
2242
2299
|
toBytes(): Bytes$1;
|
|
2243
2300
|
clone(): SubType;
|
|
@@ -2246,10 +2303,14 @@ declare const MultisigCkbWitness_base: (abstract new () => {
|
|
|
2246
2303
|
toHex(): Hex;
|
|
2247
2304
|
}) & {
|
|
2248
2305
|
byteLength?: number;
|
|
2249
|
-
encode(_: SubTypeLike)
|
|
2250
|
-
decode(_: BytesLike
|
|
2251
|
-
|
|
2252
|
-
|
|
2306
|
+
encode: (_: SubTypeLike) => Bytes$1;
|
|
2307
|
+
decode: (_: BytesLike, _config?: {
|
|
2308
|
+
isExtraFieldIgnored?: boolean;
|
|
2309
|
+
}) => SubType;
|
|
2310
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
2311
|
+
isExtraFieldIgnored?: boolean;
|
|
2312
|
+
}) => SubType;
|
|
2313
|
+
from: (_: SubTypeLike) => SubType;
|
|
2253
2314
|
Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
2254
2315
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
|
|
2255
2316
|
readonly inner: DecodedType<CodecType>;
|
|
@@ -2266,10 +2327,14 @@ declare const MultisigCkbWitness_base: (abstract new () => {
|
|
|
2266
2327
|
toHex(): Hex;
|
|
2267
2328
|
}) & {
|
|
2268
2329
|
byteLength?: number;
|
|
2269
|
-
encode(_: SubTypeLike_1)
|
|
2270
|
-
decode(_: BytesLike
|
|
2271
|
-
|
|
2272
|
-
|
|
2330
|
+
encode: (_: SubTypeLike_1) => Bytes$1;
|
|
2331
|
+
decode: (_: BytesLike, _config?: {
|
|
2332
|
+
isExtraFieldIgnored?: boolean;
|
|
2333
|
+
} | undefined) => SubType_1;
|
|
2334
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
2335
|
+
isExtraFieldIgnored?: boolean;
|
|
2336
|
+
} | undefined) => SubType_1;
|
|
2337
|
+
from: (_: SubTypeLike_1) => SubType_1;
|
|
2273
2338
|
Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
2274
2339
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
|
|
2275
2340
|
};
|
|
@@ -2289,10 +2354,14 @@ declare const MultisigCkbWitness_base: (abstract new () => {
|
|
|
2289
2354
|
toHex(): Hex;
|
|
2290
2355
|
}) & {
|
|
2291
2356
|
byteLength?: number;
|
|
2292
|
-
encode(_: SubTypeLike)
|
|
2293
|
-
decode(_: BytesLike
|
|
2294
|
-
|
|
2295
|
-
|
|
2357
|
+
encode: (_: SubTypeLike) => Bytes$1;
|
|
2358
|
+
decode: (_: BytesLike, _config?: {
|
|
2359
|
+
isExtraFieldIgnored?: boolean;
|
|
2360
|
+
} | undefined) => SubType;
|
|
2361
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
2362
|
+
isExtraFieldIgnored?: boolean;
|
|
2363
|
+
} | undefined) => SubType;
|
|
2364
|
+
from: (_: SubTypeLike) => SubType;
|
|
2296
2365
|
Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
|
|
2297
2366
|
toBytes(): Bytes$1;
|
|
2298
2367
|
clone(): SubType_1;
|
|
@@ -2301,10 +2370,14 @@ declare const MultisigCkbWitness_base: (abstract new () => {
|
|
|
2301
2370
|
toHex(): Hex;
|
|
2302
2371
|
}) & {
|
|
2303
2372
|
byteLength?: number;
|
|
2304
|
-
encode(_: SubTypeLike_1)
|
|
2305
|
-
decode(_: BytesLike
|
|
2306
|
-
|
|
2307
|
-
|
|
2373
|
+
encode: (_: SubTypeLike_1) => Bytes$1;
|
|
2374
|
+
decode: (_: BytesLike, _config?: {
|
|
2375
|
+
isExtraFieldIgnored?: boolean;
|
|
2376
|
+
}) => SubType_1;
|
|
2377
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
2378
|
+
isExtraFieldIgnored?: boolean;
|
|
2379
|
+
}) => SubType_1;
|
|
2380
|
+
from: (_: SubTypeLike_1) => SubType_1;
|
|
2308
2381
|
Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
|
|
2309
2382
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
2310
2383
|
};
|
|
@@ -2326,7 +2399,7 @@ declare class MultisigCkbWitness extends MultisigCkbWitness_base {
|
|
|
2326
2399
|
* @param mustMatch - The number of signatures that must match.
|
|
2327
2400
|
* @param signatures - The signatures.
|
|
2328
2401
|
*/
|
|
2329
|
-
constructor(publicKeyHashes
|
|
2402
|
+
constructor({ publicKeyHashes, threshold, mustMatch, signatures }: DecodedType<typeof MultisigCkbWitnessCodec>);
|
|
2330
2403
|
/**
|
|
2331
2404
|
* Create a MultisigCkbWitness from a MultisigCkbWitnessLike.
|
|
2332
2405
|
*
|
|
@@ -2549,7 +2622,7 @@ declare function verifyMessageJoyId(message: string | BytesLike, signature: stri
|
|
|
2549
2622
|
* as well as signing transactions.
|
|
2550
2623
|
* @public
|
|
2551
2624
|
*/
|
|
2552
|
-
declare abstract class SignerDoge extends Signer {
|
|
2625
|
+
declare abstract class SignerDoge extends Signer$1 {
|
|
2553
2626
|
get type(): SignerType;
|
|
2554
2627
|
get signType(): SignerSignType;
|
|
2555
2628
|
/**
|
|
@@ -2702,7 +2775,7 @@ declare function verifyMessageDogeEcdsa(message: string | BytesLike, signature:
|
|
|
2702
2775
|
/**
|
|
2703
2776
|
* @public
|
|
2704
2777
|
*/
|
|
2705
|
-
declare abstract class SignerDummy extends Signer {
|
|
2778
|
+
declare abstract class SignerDummy extends Signer$1 {
|
|
2706
2779
|
readonly type: SignerType;
|
|
2707
2780
|
get signType(): SignerSignType;
|
|
2708
2781
|
constructor(client: Client, type: SignerType);
|
|
@@ -2737,7 +2810,7 @@ declare class SignerOpenLink extends SignerDummy {
|
|
|
2737
2810
|
* This class provides methods to get EVM account, internal address, and signing transactions.
|
|
2738
2811
|
* @public
|
|
2739
2812
|
*/
|
|
2740
|
-
declare abstract class SignerEvm extends Signer {
|
|
2813
|
+
declare abstract class SignerEvm extends Signer$1 {
|
|
2741
2814
|
get type(): SignerType;
|
|
2742
2815
|
get signType(): SignerSignType;
|
|
2743
2816
|
/**
|
|
@@ -2852,7 +2925,7 @@ interface NostrEvent {
|
|
|
2852
2925
|
/**
|
|
2853
2926
|
* @public
|
|
2854
2927
|
*/
|
|
2855
|
-
declare abstract class SignerNostr extends Signer {
|
|
2928
|
+
declare abstract class SignerNostr extends Signer$1 {
|
|
2856
2929
|
static CKB_SIG_HASH_ALL_TAG: string;
|
|
2857
2930
|
static CKB_UNLOCK_EVENT_KIND: number;
|
|
2858
2931
|
static CKB_UNLOCK_EVENT_CONTENT: string;
|
|
@@ -2935,8 +3008,26 @@ declare class SignerNostrPrivateKey extends SignerNostrPublicKeyReadonly {
|
|
|
2935
3008
|
declare function buildNostrEventFromMessage(message: string | BytesLike): NostrEvent;
|
|
2936
3009
|
declare function nostrEventHash(event: NostrEvent): Bytes$1;
|
|
2937
3010
|
declare function verifyMessageNostrEvent(message: string | BytesLike, signature: string, address: string): boolean;
|
|
3011
|
+
//#endregion
|
|
3012
|
+
//#region src/signer/signerFromSignature.d.ts
|
|
3013
|
+
/**
|
|
3014
|
+
* Creates a signer from a signature.
|
|
3015
|
+
*
|
|
3016
|
+
* @param client - The client instance.
|
|
3017
|
+
* @param signature - The signature to create the signer from.
|
|
3018
|
+
* @param message - The message that was signed.
|
|
3019
|
+
* @param addresses - The addresses to check against the signer.
|
|
3020
|
+
* @returns The signer if the signature is valid and the addresses match, otherwise undefined.
|
|
3021
|
+
* @throws Error if the signature sign type is unknown.
|
|
3022
|
+
*/
|
|
3023
|
+
declare function signerFromSignature(client: Client, signature: Signature, message?: string | BytesLike | null, ...addresses: (string | string[])[]): Promise<Signer$1 | undefined>;
|
|
3024
|
+
//#endregion
|
|
3025
|
+
//#region src/signer/index.d.ts
|
|
3026
|
+
declare abstract class Signer extends Signer$1 {
|
|
3027
|
+
static fromSignature(client: Client, signature: Signature, message?: string | BytesLike | null, ...addresses: (string | string[])[]): Promise<Signer | undefined>;
|
|
3028
|
+
}
|
|
2938
3029
|
declare namespace barrel_d_exports {
|
|
2939
|
-
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 };
|
|
3030
|
+
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 };
|
|
2940
3031
|
}
|
|
2941
3032
|
//#endregion
|
|
2942
3033
|
//#region src/client/clientTypes.advanced.d.ts
|
|
@@ -3317,6 +3408,17 @@ type EpochLike = [NumLike, NumLike, NumLike] | {
|
|
|
3317
3408
|
numerator: NumLike;
|
|
3318
3409
|
denominator: NumLike;
|
|
3319
3410
|
} | Num | Hex;
|
|
3411
|
+
declare const EpochCodec: Codec<EncodableRecord<{
|
|
3412
|
+
padding: Codec<void | null | undefined, void>;
|
|
3413
|
+
denominator: Codec<NumLike, bigint>;
|
|
3414
|
+
numerator: Codec<NumLike, bigint>;
|
|
3415
|
+
integer: Codec<NumLike, bigint>;
|
|
3416
|
+
}>, DecodedRecord<{
|
|
3417
|
+
padding: Codec<void | null | undefined, void>;
|
|
3418
|
+
denominator: Codec<NumLike, bigint>;
|
|
3419
|
+
numerator: Codec<NumLike, bigint>;
|
|
3420
|
+
integer: Codec<NumLike, bigint>;
|
|
3421
|
+
}>>;
|
|
3320
3422
|
declare const Epoch_base: (abstract new () => {
|
|
3321
3423
|
toBytes(): Bytes$1;
|
|
3322
3424
|
clone(): Epoch;
|
|
@@ -3325,10 +3427,14 @@ declare const Epoch_base: (abstract new () => {
|
|
|
3325
3427
|
toHex(): Hex;
|
|
3326
3428
|
}) & {
|
|
3327
3429
|
byteLength?: number;
|
|
3328
|
-
encode(_: EpochLike)
|
|
3329
|
-
decode(_: BytesLike
|
|
3330
|
-
|
|
3331
|
-
|
|
3430
|
+
encode: (_: EpochLike) => Bytes$1;
|
|
3431
|
+
decode: (_: BytesLike, _config?: {
|
|
3432
|
+
isExtraFieldIgnored?: boolean;
|
|
3433
|
+
} | undefined) => Epoch;
|
|
3434
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
3435
|
+
isExtraFieldIgnored?: boolean;
|
|
3436
|
+
} | undefined) => Epoch;
|
|
3437
|
+
from: (_: EpochLike) => Epoch;
|
|
3332
3438
|
Base<SubTypeLike, SubType = SubTypeLike>(): (abstract new () => {
|
|
3333
3439
|
toBytes(): Bytes$1;
|
|
3334
3440
|
clone(): SubType;
|
|
@@ -3337,10 +3443,14 @@ declare const Epoch_base: (abstract new () => {
|
|
|
3337
3443
|
toHex(): Hex;
|
|
3338
3444
|
}) & {
|
|
3339
3445
|
byteLength?: number;
|
|
3340
|
-
encode(_: SubTypeLike)
|
|
3341
|
-
decode(_: BytesLike
|
|
3342
|
-
|
|
3343
|
-
|
|
3446
|
+
encode: (_: SubTypeLike) => Bytes$1;
|
|
3447
|
+
decode: (_: BytesLike, _config?: {
|
|
3448
|
+
isExtraFieldIgnored?: boolean;
|
|
3449
|
+
}) => SubType;
|
|
3450
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
3451
|
+
isExtraFieldIgnored?: boolean;
|
|
3452
|
+
}) => SubType;
|
|
3453
|
+
from: (_: SubTypeLike) => SubType;
|
|
3344
3454
|
Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
3345
3455
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
|
|
3346
3456
|
readonly inner: DecodedType<CodecType>;
|
|
@@ -3357,10 +3467,14 @@ declare const Epoch_base: (abstract new () => {
|
|
|
3357
3467
|
toHex(): Hex;
|
|
3358
3468
|
}) & {
|
|
3359
3469
|
byteLength?: number;
|
|
3360
|
-
encode(_: SubTypeLike_1)
|
|
3361
|
-
decode(_: BytesLike
|
|
3362
|
-
|
|
3363
|
-
|
|
3470
|
+
encode: (_: SubTypeLike_1) => Bytes$1;
|
|
3471
|
+
decode: (_: BytesLike, _config?: {
|
|
3472
|
+
isExtraFieldIgnored?: boolean;
|
|
3473
|
+
} | undefined) => SubType_1;
|
|
3474
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
3475
|
+
isExtraFieldIgnored?: boolean;
|
|
3476
|
+
} | undefined) => SubType_1;
|
|
3477
|
+
from: (_: SubTypeLike_1) => SubType_1;
|
|
3364
3478
|
Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
3365
3479
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
|
|
3366
3480
|
};
|
|
@@ -3380,10 +3494,14 @@ declare const Epoch_base: (abstract new () => {
|
|
|
3380
3494
|
toHex(): Hex;
|
|
3381
3495
|
}) & {
|
|
3382
3496
|
byteLength?: number;
|
|
3383
|
-
encode(_: SubTypeLike)
|
|
3384
|
-
decode(_: BytesLike
|
|
3385
|
-
|
|
3386
|
-
|
|
3497
|
+
encode: (_: SubTypeLike) => Bytes$1;
|
|
3498
|
+
decode: (_: BytesLike, _config?: {
|
|
3499
|
+
isExtraFieldIgnored?: boolean;
|
|
3500
|
+
} | undefined) => SubType;
|
|
3501
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
3502
|
+
isExtraFieldIgnored?: boolean;
|
|
3503
|
+
} | undefined) => SubType;
|
|
3504
|
+
from: (_: SubTypeLike) => SubType;
|
|
3387
3505
|
Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
|
|
3388
3506
|
toBytes(): Bytes$1;
|
|
3389
3507
|
clone(): SubType_1;
|
|
@@ -3392,10 +3510,14 @@ declare const Epoch_base: (abstract new () => {
|
|
|
3392
3510
|
toHex(): Hex;
|
|
3393
3511
|
}) & {
|
|
3394
3512
|
byteLength?: number;
|
|
3395
|
-
encode(_: SubTypeLike_1)
|
|
3396
|
-
decode(_: BytesLike
|
|
3397
|
-
|
|
3398
|
-
|
|
3513
|
+
encode: (_: SubTypeLike_1) => Bytes$1;
|
|
3514
|
+
decode: (_: BytesLike, _config?: {
|
|
3515
|
+
isExtraFieldIgnored?: boolean;
|
|
3516
|
+
}) => SubType_1;
|
|
3517
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
3518
|
+
isExtraFieldIgnored?: boolean;
|
|
3519
|
+
}) => SubType_1;
|
|
3520
|
+
from: (_: SubTypeLike_1) => SubType_1;
|
|
3399
3521
|
Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
|
|
3400
3522
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
3401
3523
|
};
|
|
@@ -3432,7 +3554,7 @@ declare class Epoch extends Epoch_base {
|
|
|
3432
3554
|
* @param numerator - Fractional numerator (Num).
|
|
3433
3555
|
* @param denominator - Fractional denominator (Num).
|
|
3434
3556
|
*/
|
|
3435
|
-
constructor(integer
|
|
3557
|
+
constructor({ integer, numerator, denominator }: Omit<DecodedType<typeof EpochCodec>, "padding">);
|
|
3436
3558
|
/**
|
|
3437
3559
|
* Normalize simpler base invariants:
|
|
3438
3560
|
* - If denominator === 0, set denominator to 1 and numerator to 0 for arithmetic convenience.
|
|
@@ -3743,26 +3865,47 @@ declare function hashTypeToBytes(hashType: HashTypeLike): Bytes$1;
|
|
|
3743
3865
|
* ```
|
|
3744
3866
|
*/
|
|
3745
3867
|
declare function hashTypeFromBytes(bytes: BytesLike): HashType;
|
|
3868
|
+
declare const ScriptCodec: Codec<EncodableRecord<{
|
|
3869
|
+
codeHash: Codec<BytesLike, `0x${string}`>;
|
|
3870
|
+
hashType: Codec<HashTypeLike, HashType>;
|
|
3871
|
+
args: Codec<BytesLike, `0x${string}`>;
|
|
3872
|
+
}>, DecodedRecord<{
|
|
3873
|
+
codeHash: Codec<BytesLike, `0x${string}`>;
|
|
3874
|
+
hashType: Codec<HashTypeLike, HashType>;
|
|
3875
|
+
args: Codec<BytesLike, `0x${string}`>;
|
|
3876
|
+
}>>;
|
|
3746
3877
|
/**
|
|
3747
3878
|
* @public
|
|
3748
3879
|
*/
|
|
3749
|
-
type ScriptLike =
|
|
3750
|
-
codeHash: BytesLike;
|
|
3751
|
-
hashType: HashTypeLike;
|
|
3752
|
-
args: BytesLike;
|
|
3753
|
-
};
|
|
3880
|
+
type ScriptLike = EncodableType<typeof ScriptCodec>;
|
|
3754
3881
|
declare const Script_base: (abstract new () => {
|
|
3755
3882
|
toBytes(): Bytes$1;
|
|
3756
3883
|
clone(): Script;
|
|
3757
|
-
eq(other:
|
|
3884
|
+
eq(other: {} & {
|
|
3885
|
+
codeHash: BytesLike;
|
|
3886
|
+
hashType: HashTypeLike;
|
|
3887
|
+
args: BytesLike;
|
|
3888
|
+
}): boolean;
|
|
3758
3889
|
hash(): Hex;
|
|
3759
3890
|
toHex(): Hex;
|
|
3760
3891
|
}) & {
|
|
3761
3892
|
byteLength?: number;
|
|
3762
|
-
encode(_:
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3893
|
+
encode: (_: {} & {
|
|
3894
|
+
codeHash: BytesLike;
|
|
3895
|
+
hashType: HashTypeLike;
|
|
3896
|
+
args: BytesLike;
|
|
3897
|
+
}) => Bytes$1;
|
|
3898
|
+
decode: (_: BytesLike, _config?: {
|
|
3899
|
+
isExtraFieldIgnored?: boolean;
|
|
3900
|
+
} | undefined) => Script;
|
|
3901
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
3902
|
+
isExtraFieldIgnored?: boolean;
|
|
3903
|
+
} | undefined) => Script;
|
|
3904
|
+
from: (_: {} & {
|
|
3905
|
+
codeHash: BytesLike;
|
|
3906
|
+
hashType: HashTypeLike;
|
|
3907
|
+
args: BytesLike;
|
|
3908
|
+
}) => Script;
|
|
3766
3909
|
Base<SubTypeLike, SubType = SubTypeLike>(): (abstract new () => {
|
|
3767
3910
|
toBytes(): Bytes$1;
|
|
3768
3911
|
clone(): SubType;
|
|
@@ -3771,10 +3914,14 @@ declare const Script_base: (abstract new () => {
|
|
|
3771
3914
|
toHex(): Hex;
|
|
3772
3915
|
}) & {
|
|
3773
3916
|
byteLength?: number;
|
|
3774
|
-
encode(_: SubTypeLike)
|
|
3775
|
-
decode(_: BytesLike
|
|
3776
|
-
|
|
3777
|
-
|
|
3917
|
+
encode: (_: SubTypeLike) => Bytes$1;
|
|
3918
|
+
decode: (_: BytesLike, _config?: {
|
|
3919
|
+
isExtraFieldIgnored?: boolean;
|
|
3920
|
+
}) => SubType;
|
|
3921
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
3922
|
+
isExtraFieldIgnored?: boolean;
|
|
3923
|
+
}) => SubType;
|
|
3924
|
+
from: (_: SubTypeLike) => SubType;
|
|
3778
3925
|
Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
3779
3926
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
|
|
3780
3927
|
readonly inner: DecodedType<CodecType>;
|
|
@@ -3791,10 +3938,14 @@ declare const Script_base: (abstract new () => {
|
|
|
3791
3938
|
toHex(): Hex;
|
|
3792
3939
|
}) & {
|
|
3793
3940
|
byteLength?: number;
|
|
3794
|
-
encode(_: SubTypeLike_1)
|
|
3795
|
-
decode(_: BytesLike
|
|
3796
|
-
|
|
3797
|
-
|
|
3941
|
+
encode: (_: SubTypeLike_1) => Bytes$1;
|
|
3942
|
+
decode: (_: BytesLike, _config?: {
|
|
3943
|
+
isExtraFieldIgnored?: boolean;
|
|
3944
|
+
} | undefined) => SubType_1;
|
|
3945
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
3946
|
+
isExtraFieldIgnored?: boolean;
|
|
3947
|
+
} | undefined) => SubType_1;
|
|
3948
|
+
from: (_: SubTypeLike_1) => SubType_1;
|
|
3798
3949
|
Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
3799
3950
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
|
|
3800
3951
|
};
|
|
@@ -3814,10 +3965,14 @@ declare const Script_base: (abstract new () => {
|
|
|
3814
3965
|
toHex(): Hex;
|
|
3815
3966
|
}) & {
|
|
3816
3967
|
byteLength?: number;
|
|
3817
|
-
encode(_: SubTypeLike)
|
|
3818
|
-
decode(_: BytesLike
|
|
3819
|
-
|
|
3820
|
-
|
|
3968
|
+
encode: (_: SubTypeLike) => Bytes$1;
|
|
3969
|
+
decode: (_: BytesLike, _config?: {
|
|
3970
|
+
isExtraFieldIgnored?: boolean;
|
|
3971
|
+
} | undefined) => SubType;
|
|
3972
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
3973
|
+
isExtraFieldIgnored?: boolean;
|
|
3974
|
+
} | undefined) => SubType;
|
|
3975
|
+
from: (_: SubTypeLike) => SubType;
|
|
3821
3976
|
Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
|
|
3822
3977
|
toBytes(): Bytes$1;
|
|
3823
3978
|
clone(): SubType_1;
|
|
@@ -3826,10 +3981,14 @@ declare const Script_base: (abstract new () => {
|
|
|
3826
3981
|
toHex(): Hex;
|
|
3827
3982
|
}) & {
|
|
3828
3983
|
byteLength?: number;
|
|
3829
|
-
encode(_: SubTypeLike_1)
|
|
3830
|
-
decode(_: BytesLike
|
|
3831
|
-
|
|
3832
|
-
|
|
3984
|
+
encode: (_: SubTypeLike_1) => Bytes$1;
|
|
3985
|
+
decode: (_: BytesLike, _config?: {
|
|
3986
|
+
isExtraFieldIgnored?: boolean;
|
|
3987
|
+
}) => SubType_1;
|
|
3988
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
3989
|
+
isExtraFieldIgnored?: boolean;
|
|
3990
|
+
}) => SubType_1;
|
|
3991
|
+
from: (_: SubTypeLike_1) => SubType_1;
|
|
3833
3992
|
Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
|
|
3834
3993
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
3835
3994
|
};
|
|
@@ -3850,7 +4009,7 @@ declare class Script extends Script_base {
|
|
|
3850
4009
|
* @param hashType - The hash type of the script.
|
|
3851
4010
|
* @param args - The arguments for the script.
|
|
3852
4011
|
*/
|
|
3853
|
-
constructor(codeHash
|
|
4012
|
+
constructor({ codeHash, hashType, args }: DecodedType<typeof ScriptCodec>);
|
|
3854
4013
|
get occupiedSize(): number;
|
|
3855
4014
|
/**
|
|
3856
4015
|
* Clone a script.
|
|
@@ -3875,22 +4034,6 @@ declare class Script extends Script_base {
|
|
|
3875
4034
|
* ```
|
|
3876
4035
|
*/
|
|
3877
4036
|
eq(other: ScriptLike): boolean;
|
|
3878
|
-
/**
|
|
3879
|
-
* Creates a Script instance from a ScriptLike object.
|
|
3880
|
-
*
|
|
3881
|
-
* @param script - A ScriptLike object or an instance of Script.
|
|
3882
|
-
* @returns A Script instance.
|
|
3883
|
-
*
|
|
3884
|
-
* @example
|
|
3885
|
-
* ```typescript
|
|
3886
|
-
* const script = Script.from({
|
|
3887
|
-
* codeHash: "0x1234...",
|
|
3888
|
-
* hashType: "type",
|
|
3889
|
-
* args: "0xabcd..."
|
|
3890
|
-
* });
|
|
3891
|
-
* ```
|
|
3892
|
-
*/
|
|
3893
|
-
static from(script: ScriptLike): Script;
|
|
3894
4037
|
/**
|
|
3895
4038
|
* Creates a Script instance from client and known script.
|
|
3896
4039
|
*
|
|
@@ -3910,8 +4053,16 @@ declare class Script extends Script_base {
|
|
|
3910
4053
|
*/
|
|
3911
4054
|
static fromKnownScript(client: Client, knownScript: KnownScript, args: HexLike): Promise<Script>;
|
|
3912
4055
|
}
|
|
3913
|
-
declare const ScriptOpt: Codec<
|
|
3914
|
-
|
|
4056
|
+
declare const ScriptOpt: Codec<({} & {
|
|
4057
|
+
codeHash: BytesLike;
|
|
4058
|
+
hashType: HashTypeLike;
|
|
4059
|
+
args: BytesLike;
|
|
4060
|
+
}) | null | undefined, Script | undefined>;
|
|
4061
|
+
declare const ScriptVec: Codec<({} & {
|
|
4062
|
+
codeHash: BytesLike;
|
|
4063
|
+
hashType: HashTypeLike;
|
|
4064
|
+
args: BytesLike;
|
|
4065
|
+
})[], Script[]>;
|
|
3915
4066
|
//#endregion
|
|
3916
4067
|
//#region src/ckb/transactionLumos.d.ts
|
|
3917
4068
|
interface LumosTransactionSkeletonType {
|
|
@@ -3999,22 +4150,42 @@ declare function depTypeFromBytes(bytes: BytesLike): DepType;
|
|
|
3999
4150
|
/**
|
|
4000
4151
|
* @public
|
|
4001
4152
|
*/
|
|
4002
|
-
|
|
4003
|
-
txHash:
|
|
4004
|
-
index: NumLike
|
|
4005
|
-
}
|
|
4153
|
+
declare const OutPointCodec: Codec<EncodableRecord<{
|
|
4154
|
+
txHash: Codec<BytesLike, `0x${string}`>;
|
|
4155
|
+
index: Codec<NumLike, number>;
|
|
4156
|
+
}>, DecodedRecord<{
|
|
4157
|
+
txHash: Codec<BytesLike, `0x${string}`>;
|
|
4158
|
+
index: Codec<NumLike, number>;
|
|
4159
|
+
}>>;
|
|
4160
|
+
/**
|
|
4161
|
+
* @public
|
|
4162
|
+
*/
|
|
4163
|
+
type OutPointLike = EncodableType<typeof OutPointCodec>;
|
|
4006
4164
|
declare const OutPoint_base: (abstract new () => {
|
|
4007
4165
|
toBytes(): Bytes$1;
|
|
4008
4166
|
clone(): OutPoint;
|
|
4009
|
-
eq(other:
|
|
4167
|
+
eq(other: {} & {
|
|
4168
|
+
txHash: BytesLike;
|
|
4169
|
+
index: NumLike;
|
|
4170
|
+
}): boolean;
|
|
4010
4171
|
hash(): Hex;
|
|
4011
4172
|
toHex(): Hex;
|
|
4012
4173
|
}) & {
|
|
4013
4174
|
byteLength?: number;
|
|
4014
|
-
encode(_:
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4175
|
+
encode: (_: {} & {
|
|
4176
|
+
txHash: BytesLike;
|
|
4177
|
+
index: NumLike;
|
|
4178
|
+
}) => Bytes$1;
|
|
4179
|
+
decode: (_: BytesLike, _config?: {
|
|
4180
|
+
isExtraFieldIgnored?: boolean;
|
|
4181
|
+
} | undefined) => OutPoint;
|
|
4182
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
4183
|
+
isExtraFieldIgnored?: boolean;
|
|
4184
|
+
} | undefined) => OutPoint;
|
|
4185
|
+
from: (_: {} & {
|
|
4186
|
+
txHash: BytesLike;
|
|
4187
|
+
index: NumLike;
|
|
4188
|
+
}) => OutPoint;
|
|
4018
4189
|
Base<SubTypeLike, SubType = SubTypeLike>(): (abstract new () => {
|
|
4019
4190
|
toBytes(): Bytes$1;
|
|
4020
4191
|
clone(): SubType;
|
|
@@ -4023,10 +4194,14 @@ declare const OutPoint_base: (abstract new () => {
|
|
|
4023
4194
|
toHex(): Hex;
|
|
4024
4195
|
}) & {
|
|
4025
4196
|
byteLength?: number;
|
|
4026
|
-
encode(_: SubTypeLike)
|
|
4027
|
-
decode(_: BytesLike
|
|
4028
|
-
|
|
4029
|
-
|
|
4197
|
+
encode: (_: SubTypeLike) => Bytes$1;
|
|
4198
|
+
decode: (_: BytesLike, _config?: {
|
|
4199
|
+
isExtraFieldIgnored?: boolean;
|
|
4200
|
+
}) => SubType;
|
|
4201
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
4202
|
+
isExtraFieldIgnored?: boolean;
|
|
4203
|
+
}) => SubType;
|
|
4204
|
+
from: (_: SubTypeLike) => SubType;
|
|
4030
4205
|
Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
4031
4206
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
|
|
4032
4207
|
readonly inner: DecodedType<CodecType>;
|
|
@@ -4043,10 +4218,14 @@ declare const OutPoint_base: (abstract new () => {
|
|
|
4043
4218
|
toHex(): Hex;
|
|
4044
4219
|
}) & {
|
|
4045
4220
|
byteLength?: number;
|
|
4046
|
-
encode(_: SubTypeLike_1)
|
|
4047
|
-
decode(_: BytesLike
|
|
4048
|
-
|
|
4049
|
-
|
|
4221
|
+
encode: (_: SubTypeLike_1) => Bytes$1;
|
|
4222
|
+
decode: (_: BytesLike, _config?: {
|
|
4223
|
+
isExtraFieldIgnored?: boolean;
|
|
4224
|
+
} | undefined) => SubType_1;
|
|
4225
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
4226
|
+
isExtraFieldIgnored?: boolean;
|
|
4227
|
+
} | undefined) => SubType_1;
|
|
4228
|
+
from: (_: SubTypeLike_1) => SubType_1;
|
|
4050
4229
|
Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
4051
4230
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
|
|
4052
4231
|
};
|
|
@@ -4066,10 +4245,14 @@ declare const OutPoint_base: (abstract new () => {
|
|
|
4066
4245
|
toHex(): Hex;
|
|
4067
4246
|
}) & {
|
|
4068
4247
|
byteLength?: number;
|
|
4069
|
-
encode(_: SubTypeLike)
|
|
4070
|
-
decode(_: BytesLike
|
|
4071
|
-
|
|
4072
|
-
|
|
4248
|
+
encode: (_: SubTypeLike) => Bytes$1;
|
|
4249
|
+
decode: (_: BytesLike, _config?: {
|
|
4250
|
+
isExtraFieldIgnored?: boolean;
|
|
4251
|
+
} | undefined) => SubType;
|
|
4252
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
4253
|
+
isExtraFieldIgnored?: boolean;
|
|
4254
|
+
} | undefined) => SubType;
|
|
4255
|
+
from: (_: SubTypeLike) => SubType;
|
|
4073
4256
|
Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
|
|
4074
4257
|
toBytes(): Bytes$1;
|
|
4075
4258
|
clone(): SubType_1;
|
|
@@ -4078,10 +4261,14 @@ declare const OutPoint_base: (abstract new () => {
|
|
|
4078
4261
|
toHex(): Hex;
|
|
4079
4262
|
}) & {
|
|
4080
4263
|
byteLength?: number;
|
|
4081
|
-
encode(_: SubTypeLike_1)
|
|
4082
|
-
decode(_: BytesLike
|
|
4083
|
-
|
|
4084
|
-
|
|
4264
|
+
encode: (_: SubTypeLike_1) => Bytes$1;
|
|
4265
|
+
decode: (_: BytesLike, _config?: {
|
|
4266
|
+
isExtraFieldIgnored?: boolean;
|
|
4267
|
+
}) => SubType_1;
|
|
4268
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
4269
|
+
isExtraFieldIgnored?: boolean;
|
|
4270
|
+
}) => SubType_1;
|
|
4271
|
+
from: (_: SubTypeLike_1) => SubType_1;
|
|
4085
4272
|
Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
|
|
4086
4273
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
4087
4274
|
};
|
|
@@ -4100,19 +4287,7 @@ declare class OutPoint extends OutPoint_base {
|
|
|
4100
4287
|
* @param txHash - The transaction hash.
|
|
4101
4288
|
* @param index - The index of the output in the transaction.
|
|
4102
4289
|
*/
|
|
4103
|
-
constructor(txHash
|
|
4104
|
-
/**
|
|
4105
|
-
* Creates an OutPoint instance from an OutPointLike object.
|
|
4106
|
-
*
|
|
4107
|
-
* @param outPoint - An OutPointLike object or an instance of OutPoint.
|
|
4108
|
-
* @returns An OutPoint instance.
|
|
4109
|
-
*
|
|
4110
|
-
* @example
|
|
4111
|
-
* ```typescript
|
|
4112
|
-
* const outPoint = OutPoint.from({ txHash: "0x...", index: 0 });
|
|
4113
|
-
* ```
|
|
4114
|
-
*/
|
|
4115
|
-
static from(outPoint: OutPointLike): OutPoint;
|
|
4290
|
+
constructor({ txHash, index }: DecodedType<typeof OutPointCodec>);
|
|
4116
4291
|
/**
|
|
4117
4292
|
* Clone a OutPoint.
|
|
4118
4293
|
*
|
|
@@ -4137,6 +4312,26 @@ declare class OutPoint extends OutPoint_base {
|
|
|
4137
4312
|
*/
|
|
4138
4313
|
eq(other: OutPointLike): boolean;
|
|
4139
4314
|
}
|
|
4315
|
+
/**
|
|
4316
|
+
* @public
|
|
4317
|
+
*/
|
|
4318
|
+
declare const CellOutputCodec: Codec<EncodableRecord<{
|
|
4319
|
+
capacity: Codec<NumLike, bigint>;
|
|
4320
|
+
lock: typeof Script;
|
|
4321
|
+
type: Codec<({} & {
|
|
4322
|
+
codeHash: BytesLike;
|
|
4323
|
+
hashType: HashTypeLike;
|
|
4324
|
+
args: BytesLike;
|
|
4325
|
+
}) | null | undefined, Script | undefined>;
|
|
4326
|
+
}>, DecodedRecord<{
|
|
4327
|
+
capacity: Codec<NumLike, bigint>;
|
|
4328
|
+
lock: typeof Script;
|
|
4329
|
+
type: Codec<({} & {
|
|
4330
|
+
codeHash: BytesLike;
|
|
4331
|
+
hashType: HashTypeLike;
|
|
4332
|
+
args: BytesLike;
|
|
4333
|
+
}) | null | undefined, Script | undefined>;
|
|
4334
|
+
}>>;
|
|
4140
4335
|
/**
|
|
4141
4336
|
* @public
|
|
4142
4337
|
*/
|
|
@@ -4153,10 +4348,14 @@ declare const CellOutput_base: (abstract new () => {
|
|
|
4153
4348
|
toHex(): Hex;
|
|
4154
4349
|
}) & {
|
|
4155
4350
|
byteLength?: number;
|
|
4156
|
-
encode(_: CellOutputLike)
|
|
4157
|
-
decode(_: BytesLike
|
|
4158
|
-
|
|
4159
|
-
|
|
4351
|
+
encode: (_: CellOutputLike) => Bytes$1;
|
|
4352
|
+
decode: (_: BytesLike, _config?: {
|
|
4353
|
+
isExtraFieldIgnored?: boolean;
|
|
4354
|
+
} | undefined) => CellOutput;
|
|
4355
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
4356
|
+
isExtraFieldIgnored?: boolean;
|
|
4357
|
+
} | undefined) => CellOutput;
|
|
4358
|
+
from: (_: CellOutputLike) => CellOutput;
|
|
4160
4359
|
Base<SubTypeLike, SubType = SubTypeLike>(): (abstract new () => {
|
|
4161
4360
|
toBytes(): Bytes$1;
|
|
4162
4361
|
clone(): SubType;
|
|
@@ -4165,10 +4364,14 @@ declare const CellOutput_base: (abstract new () => {
|
|
|
4165
4364
|
toHex(): Hex;
|
|
4166
4365
|
}) & {
|
|
4167
4366
|
byteLength?: number;
|
|
4168
|
-
encode(_: SubTypeLike)
|
|
4169
|
-
decode(_: BytesLike
|
|
4170
|
-
|
|
4171
|
-
|
|
4367
|
+
encode: (_: SubTypeLike) => Bytes$1;
|
|
4368
|
+
decode: (_: BytesLike, _config?: {
|
|
4369
|
+
isExtraFieldIgnored?: boolean;
|
|
4370
|
+
}) => SubType;
|
|
4371
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
4372
|
+
isExtraFieldIgnored?: boolean;
|
|
4373
|
+
}) => SubType;
|
|
4374
|
+
from: (_: SubTypeLike) => SubType;
|
|
4172
4375
|
Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
4173
4376
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
|
|
4174
4377
|
readonly inner: DecodedType<CodecType>;
|
|
@@ -4185,10 +4388,14 @@ declare const CellOutput_base: (abstract new () => {
|
|
|
4185
4388
|
toHex(): Hex;
|
|
4186
4389
|
}) & {
|
|
4187
4390
|
byteLength?: number;
|
|
4188
|
-
encode(_: SubTypeLike_1)
|
|
4189
|
-
decode(_: BytesLike
|
|
4190
|
-
|
|
4191
|
-
|
|
4391
|
+
encode: (_: SubTypeLike_1) => Bytes$1;
|
|
4392
|
+
decode: (_: BytesLike, _config?: {
|
|
4393
|
+
isExtraFieldIgnored?: boolean;
|
|
4394
|
+
} | undefined) => SubType_1;
|
|
4395
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
4396
|
+
isExtraFieldIgnored?: boolean;
|
|
4397
|
+
} | undefined) => SubType_1;
|
|
4398
|
+
from: (_: SubTypeLike_1) => SubType_1;
|
|
4192
4399
|
Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
4193
4400
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
|
|
4194
4401
|
};
|
|
@@ -4208,10 +4415,14 @@ declare const CellOutput_base: (abstract new () => {
|
|
|
4208
4415
|
toHex(): Hex;
|
|
4209
4416
|
}) & {
|
|
4210
4417
|
byteLength?: number;
|
|
4211
|
-
encode(_: SubTypeLike)
|
|
4212
|
-
decode(_: BytesLike
|
|
4213
|
-
|
|
4214
|
-
|
|
4418
|
+
encode: (_: SubTypeLike) => Bytes$1;
|
|
4419
|
+
decode: (_: BytesLike, _config?: {
|
|
4420
|
+
isExtraFieldIgnored?: boolean;
|
|
4421
|
+
} | undefined) => SubType;
|
|
4422
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
4423
|
+
isExtraFieldIgnored?: boolean;
|
|
4424
|
+
} | undefined) => SubType;
|
|
4425
|
+
from: (_: SubTypeLike) => SubType;
|
|
4215
4426
|
Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
|
|
4216
4427
|
toBytes(): Bytes$1;
|
|
4217
4428
|
clone(): SubType_1;
|
|
@@ -4220,10 +4431,14 @@ declare const CellOutput_base: (abstract new () => {
|
|
|
4220
4431
|
toHex(): Hex;
|
|
4221
4432
|
}) & {
|
|
4222
4433
|
byteLength?: number;
|
|
4223
|
-
encode(_: SubTypeLike_1)
|
|
4224
|
-
decode(_: BytesLike
|
|
4225
|
-
|
|
4226
|
-
|
|
4434
|
+
encode: (_: SubTypeLike_1) => Bytes$1;
|
|
4435
|
+
decode: (_: BytesLike, _config?: {
|
|
4436
|
+
isExtraFieldIgnored?: boolean;
|
|
4437
|
+
}) => SubType_1;
|
|
4438
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
4439
|
+
isExtraFieldIgnored?: boolean;
|
|
4440
|
+
}) => SubType_1;
|
|
4441
|
+
from: (_: SubTypeLike_1) => SubType_1;
|
|
4227
4442
|
Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
|
|
4228
4443
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
4229
4444
|
};
|
|
@@ -4236,7 +4451,7 @@ declare const CellOutput_base: (abstract new () => {
|
|
|
4236
4451
|
declare class CellOutput extends CellOutput_base {
|
|
4237
4452
|
capacity: Num;
|
|
4238
4453
|
lock: Script;
|
|
4239
|
-
type?: Script
|
|
4454
|
+
type?: Script;
|
|
4240
4455
|
/**
|
|
4241
4456
|
* Creates an instance of CellOutput.
|
|
4242
4457
|
*
|
|
@@ -4244,7 +4459,7 @@ declare class CellOutput extends CellOutput_base {
|
|
|
4244
4459
|
* @param lock - The lock script of the cell.
|
|
4245
4460
|
* @param type - The optional type script of the cell.
|
|
4246
4461
|
*/
|
|
4247
|
-
constructor(capacity
|
|
4462
|
+
constructor({ capacity, lock, type }: DecodedType<typeof CellOutputCodec>);
|
|
4248
4463
|
get occupiedSize(): number;
|
|
4249
4464
|
/**
|
|
4250
4465
|
* Creates a CellOutput instance from a CellOutputLike object.
|
|
@@ -4501,6 +4716,7 @@ type SinceLike = {
|
|
|
4501
4716
|
metric: "blockNumber" | "epoch" | "timestamp";
|
|
4502
4717
|
value: NumLike;
|
|
4503
4718
|
} | NumLike;
|
|
4719
|
+
declare const SinceCodec: Codec<SinceLike, Pick<Since, "relative" | "metric" | "value">>;
|
|
4504
4720
|
declare const Since_base: (abstract new () => {
|
|
4505
4721
|
toBytes(): Bytes$1;
|
|
4506
4722
|
clone(): Since;
|
|
@@ -4509,10 +4725,14 @@ declare const Since_base: (abstract new () => {
|
|
|
4509
4725
|
toHex(): Hex;
|
|
4510
4726
|
}) & {
|
|
4511
4727
|
byteLength?: number;
|
|
4512
|
-
encode(_: SinceLike)
|
|
4513
|
-
decode(_: BytesLike
|
|
4514
|
-
|
|
4515
|
-
|
|
4728
|
+
encode: (_: SinceLike) => Bytes$1;
|
|
4729
|
+
decode: (_: BytesLike, _config?: {
|
|
4730
|
+
isExtraFieldIgnored?: boolean;
|
|
4731
|
+
} | undefined) => Since;
|
|
4732
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
4733
|
+
isExtraFieldIgnored?: boolean;
|
|
4734
|
+
} | undefined) => Since;
|
|
4735
|
+
from: (_: SinceLike) => Since;
|
|
4516
4736
|
Base<SubTypeLike, SubType = SubTypeLike>(): (abstract new () => {
|
|
4517
4737
|
toBytes(): Bytes$1;
|
|
4518
4738
|
clone(): SubType;
|
|
@@ -4521,10 +4741,14 @@ declare const Since_base: (abstract new () => {
|
|
|
4521
4741
|
toHex(): Hex;
|
|
4522
4742
|
}) & {
|
|
4523
4743
|
byteLength?: number;
|
|
4524
|
-
encode(_: SubTypeLike)
|
|
4525
|
-
decode(_: BytesLike
|
|
4526
|
-
|
|
4527
|
-
|
|
4744
|
+
encode: (_: SubTypeLike) => Bytes$1;
|
|
4745
|
+
decode: (_: BytesLike, _config?: {
|
|
4746
|
+
isExtraFieldIgnored?: boolean;
|
|
4747
|
+
}) => SubType;
|
|
4748
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
4749
|
+
isExtraFieldIgnored?: boolean;
|
|
4750
|
+
}) => SubType;
|
|
4751
|
+
from: (_: SubTypeLike) => SubType;
|
|
4528
4752
|
Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
4529
4753
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
|
|
4530
4754
|
readonly inner: DecodedType<CodecType>;
|
|
@@ -4541,10 +4765,14 @@ declare const Since_base: (abstract new () => {
|
|
|
4541
4765
|
toHex(): Hex;
|
|
4542
4766
|
}) & {
|
|
4543
4767
|
byteLength?: number;
|
|
4544
|
-
encode(_: SubTypeLike_1)
|
|
4545
|
-
decode(_: BytesLike
|
|
4546
|
-
|
|
4547
|
-
|
|
4768
|
+
encode: (_: SubTypeLike_1) => Bytes$1;
|
|
4769
|
+
decode: (_: BytesLike, _config?: {
|
|
4770
|
+
isExtraFieldIgnored?: boolean;
|
|
4771
|
+
} | undefined) => SubType_1;
|
|
4772
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
4773
|
+
isExtraFieldIgnored?: boolean;
|
|
4774
|
+
} | undefined) => SubType_1;
|
|
4775
|
+
from: (_: SubTypeLike_1) => SubType_1;
|
|
4548
4776
|
Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
4549
4777
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
|
|
4550
4778
|
};
|
|
@@ -4564,10 +4792,14 @@ declare const Since_base: (abstract new () => {
|
|
|
4564
4792
|
toHex(): Hex;
|
|
4565
4793
|
}) & {
|
|
4566
4794
|
byteLength?: number;
|
|
4567
|
-
encode(_: SubTypeLike)
|
|
4568
|
-
decode(_: BytesLike
|
|
4569
|
-
|
|
4570
|
-
|
|
4795
|
+
encode: (_: SubTypeLike) => Bytes$1;
|
|
4796
|
+
decode: (_: BytesLike, _config?: {
|
|
4797
|
+
isExtraFieldIgnored?: boolean;
|
|
4798
|
+
} | undefined) => SubType;
|
|
4799
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
4800
|
+
isExtraFieldIgnored?: boolean;
|
|
4801
|
+
} | undefined) => SubType;
|
|
4802
|
+
from: (_: SubTypeLike) => SubType;
|
|
4571
4803
|
Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
|
|
4572
4804
|
toBytes(): Bytes$1;
|
|
4573
4805
|
clone(): SubType_1;
|
|
@@ -4576,10 +4808,14 @@ declare const Since_base: (abstract new () => {
|
|
|
4576
4808
|
toHex(): Hex;
|
|
4577
4809
|
}) & {
|
|
4578
4810
|
byteLength?: number;
|
|
4579
|
-
encode(_: SubTypeLike_1)
|
|
4580
|
-
decode(_: BytesLike
|
|
4581
|
-
|
|
4582
|
-
|
|
4811
|
+
encode: (_: SubTypeLike_1) => Bytes$1;
|
|
4812
|
+
decode: (_: BytesLike, _config?: {
|
|
4813
|
+
isExtraFieldIgnored?: boolean;
|
|
4814
|
+
}) => SubType_1;
|
|
4815
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
4816
|
+
isExtraFieldIgnored?: boolean;
|
|
4817
|
+
}) => SubType_1;
|
|
4818
|
+
from: (_: SubTypeLike_1) => SubType_1;
|
|
4583
4819
|
Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
|
|
4584
4820
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
4585
4821
|
};
|
|
@@ -4596,11 +4832,9 @@ declare class Since extends Since_base {
|
|
|
4596
4832
|
/**
|
|
4597
4833
|
* Creates an instance of Since.
|
|
4598
4834
|
*
|
|
4599
|
-
* @param
|
|
4600
|
-
* @param metric - The metric of since
|
|
4601
|
-
* @param value - The value of since
|
|
4835
|
+
* @param num - The since representation value.
|
|
4602
4836
|
*/
|
|
4603
|
-
constructor(
|
|
4837
|
+
constructor({ relative, metric, value }: DecodedType<typeof SinceCodec>);
|
|
4604
4838
|
/**
|
|
4605
4839
|
* Clone a Since.
|
|
4606
4840
|
*
|
|
@@ -4648,6 +4882,16 @@ declare class Since extends Since_base {
|
|
|
4648
4882
|
*/
|
|
4649
4883
|
static fromNum(numLike: NumLike): Since;
|
|
4650
4884
|
}
|
|
4885
|
+
/**
|
|
4886
|
+
* @public
|
|
4887
|
+
*/
|
|
4888
|
+
declare const CellInputCodec: Codec<EncodableRecord<{
|
|
4889
|
+
since: typeof Since;
|
|
4890
|
+
previousOutput: typeof OutPoint;
|
|
4891
|
+
}>, DecodedRecord<{
|
|
4892
|
+
since: typeof Since;
|
|
4893
|
+
previousOutput: typeof OutPoint;
|
|
4894
|
+
}>>;
|
|
4651
4895
|
/**
|
|
4652
4896
|
* @public
|
|
4653
4897
|
*/
|
|
@@ -4668,10 +4912,14 @@ declare const CellInput_base: (abstract new () => {
|
|
|
4668
4912
|
toHex(): Hex;
|
|
4669
4913
|
}) & {
|
|
4670
4914
|
byteLength?: number;
|
|
4671
|
-
encode(_: CellInputLike)
|
|
4672
|
-
decode(_: BytesLike
|
|
4673
|
-
|
|
4674
|
-
|
|
4915
|
+
encode: (_: CellInputLike) => Bytes$1;
|
|
4916
|
+
decode: (_: BytesLike, _config?: {
|
|
4917
|
+
isExtraFieldIgnored?: boolean;
|
|
4918
|
+
} | undefined) => CellInput;
|
|
4919
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
4920
|
+
isExtraFieldIgnored?: boolean;
|
|
4921
|
+
} | undefined) => CellInput;
|
|
4922
|
+
from: (_: CellInputLike) => CellInput;
|
|
4675
4923
|
Base<SubTypeLike, SubType = SubTypeLike>(): (abstract new () => {
|
|
4676
4924
|
toBytes(): Bytes$1;
|
|
4677
4925
|
clone(): SubType;
|
|
@@ -4680,10 +4928,14 @@ declare const CellInput_base: (abstract new () => {
|
|
|
4680
4928
|
toHex(): Hex;
|
|
4681
4929
|
}) & {
|
|
4682
4930
|
byteLength?: number;
|
|
4683
|
-
encode(_: SubTypeLike)
|
|
4684
|
-
decode(_: BytesLike
|
|
4685
|
-
|
|
4686
|
-
|
|
4931
|
+
encode: (_: SubTypeLike) => Bytes$1;
|
|
4932
|
+
decode: (_: BytesLike, _config?: {
|
|
4933
|
+
isExtraFieldIgnored?: boolean;
|
|
4934
|
+
}) => SubType;
|
|
4935
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
4936
|
+
isExtraFieldIgnored?: boolean;
|
|
4937
|
+
}) => SubType;
|
|
4938
|
+
from: (_: SubTypeLike) => SubType;
|
|
4687
4939
|
Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
4688
4940
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
|
|
4689
4941
|
readonly inner: DecodedType<CodecType>;
|
|
@@ -4700,10 +4952,14 @@ declare const CellInput_base: (abstract new () => {
|
|
|
4700
4952
|
toHex(): Hex;
|
|
4701
4953
|
}) & {
|
|
4702
4954
|
byteLength?: number;
|
|
4703
|
-
encode(_: SubTypeLike_1)
|
|
4704
|
-
decode(_: BytesLike
|
|
4705
|
-
|
|
4706
|
-
|
|
4955
|
+
encode: (_: SubTypeLike_1) => Bytes$1;
|
|
4956
|
+
decode: (_: BytesLike, _config?: {
|
|
4957
|
+
isExtraFieldIgnored?: boolean;
|
|
4958
|
+
} | undefined) => SubType_1;
|
|
4959
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
4960
|
+
isExtraFieldIgnored?: boolean;
|
|
4961
|
+
} | undefined) => SubType_1;
|
|
4962
|
+
from: (_: SubTypeLike_1) => SubType_1;
|
|
4707
4963
|
Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
4708
4964
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
|
|
4709
4965
|
};
|
|
@@ -4723,10 +4979,14 @@ declare const CellInput_base: (abstract new () => {
|
|
|
4723
4979
|
toHex(): Hex;
|
|
4724
4980
|
}) & {
|
|
4725
4981
|
byteLength?: number;
|
|
4726
|
-
encode(_: SubTypeLike)
|
|
4727
|
-
decode(_: BytesLike
|
|
4728
|
-
|
|
4729
|
-
|
|
4982
|
+
encode: (_: SubTypeLike) => Bytes$1;
|
|
4983
|
+
decode: (_: BytesLike, _config?: {
|
|
4984
|
+
isExtraFieldIgnored?: boolean;
|
|
4985
|
+
} | undefined) => SubType;
|
|
4986
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
4987
|
+
isExtraFieldIgnored?: boolean;
|
|
4988
|
+
} | undefined) => SubType;
|
|
4989
|
+
from: (_: SubTypeLike) => SubType;
|
|
4730
4990
|
Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
|
|
4731
4991
|
toBytes(): Bytes$1;
|
|
4732
4992
|
clone(): SubType_1;
|
|
@@ -4735,10 +4995,14 @@ declare const CellInput_base: (abstract new () => {
|
|
|
4735
4995
|
toHex(): Hex;
|
|
4736
4996
|
}) & {
|
|
4737
4997
|
byteLength?: number;
|
|
4738
|
-
encode(_: SubTypeLike_1)
|
|
4739
|
-
decode(_: BytesLike
|
|
4740
|
-
|
|
4741
|
-
|
|
4998
|
+
encode: (_: SubTypeLike_1) => Bytes$1;
|
|
4999
|
+
decode: (_: BytesLike, _config?: {
|
|
5000
|
+
isExtraFieldIgnored?: boolean;
|
|
5001
|
+
}) => SubType_1;
|
|
5002
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
5003
|
+
isExtraFieldIgnored?: boolean;
|
|
5004
|
+
}) => SubType_1;
|
|
5005
|
+
from: (_: SubTypeLike_1) => SubType_1;
|
|
4742
5006
|
Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
|
|
4743
5007
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
4744
5008
|
};
|
|
@@ -4751,8 +5015,8 @@ declare const CellInput_base: (abstract new () => {
|
|
|
4751
5015
|
declare class CellInput extends CellInput_base {
|
|
4752
5016
|
previousOutput: OutPoint;
|
|
4753
5017
|
since: Num;
|
|
4754
|
-
cellOutput?: CellOutput
|
|
4755
|
-
outputData?: Hex
|
|
5018
|
+
cellOutput?: CellOutput;
|
|
5019
|
+
outputData?: Hex;
|
|
4756
5020
|
/**
|
|
4757
5021
|
* Creates an instance of CellInput.
|
|
4758
5022
|
*
|
|
@@ -4761,7 +5025,10 @@ declare class CellInput extends CellInput_base {
|
|
|
4761
5025
|
* @param cellOutput - The optional cell output associated with the cell input.
|
|
4762
5026
|
* @param outputData - The optional output data associated with the cell input.
|
|
4763
5027
|
*/
|
|
4764
|
-
constructor(previousOutput
|
|
5028
|
+
constructor({ previousOutput, since, cellOutput, outputData }: DecodedType<typeof CellInputCodec> & {
|
|
5029
|
+
cellOutput?: CellOutput;
|
|
5030
|
+
outputData?: Hex;
|
|
5031
|
+
});
|
|
4765
5032
|
/**
|
|
4766
5033
|
* Creates a CellInput instance from a CellInputLike object.
|
|
4767
5034
|
*
|
|
@@ -4813,22 +5080,51 @@ declare const CellInputVec: Codec<CellInputLike[], CellInput[]>;
|
|
|
4813
5080
|
/**
|
|
4814
5081
|
* @public
|
|
4815
5082
|
*/
|
|
4816
|
-
|
|
4817
|
-
outPoint:
|
|
4818
|
-
depType: DepTypeLike
|
|
4819
|
-
}
|
|
5083
|
+
declare const CellDepCodec: Codec<EncodableRecord<{
|
|
5084
|
+
outPoint: typeof OutPoint;
|
|
5085
|
+
depType: Codec<DepTypeLike, DepType>;
|
|
5086
|
+
}>, DecodedRecord<{
|
|
5087
|
+
outPoint: typeof OutPoint;
|
|
5088
|
+
depType: Codec<DepTypeLike, DepType>;
|
|
5089
|
+
}>>;
|
|
5090
|
+
/**
|
|
5091
|
+
* @public
|
|
5092
|
+
*/
|
|
5093
|
+
type CellDepLike = EncodableType<typeof CellDepCodec>;
|
|
4820
5094
|
declare const CellDep_base: (abstract new () => {
|
|
4821
5095
|
toBytes(): Bytes$1;
|
|
4822
5096
|
clone(): CellDep;
|
|
4823
|
-
eq(other:
|
|
5097
|
+
eq(other: {} & {
|
|
5098
|
+
outPoint: {} & {
|
|
5099
|
+
txHash: BytesLike;
|
|
5100
|
+
index: NumLike;
|
|
5101
|
+
};
|
|
5102
|
+
depType: DepTypeLike;
|
|
5103
|
+
}): boolean;
|
|
4824
5104
|
hash(): Hex;
|
|
4825
5105
|
toHex(): Hex;
|
|
4826
5106
|
}) & {
|
|
4827
5107
|
byteLength?: number;
|
|
4828
|
-
encode(_:
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
5108
|
+
encode: (_: {} & {
|
|
5109
|
+
outPoint: {} & {
|
|
5110
|
+
txHash: BytesLike;
|
|
5111
|
+
index: NumLike;
|
|
5112
|
+
};
|
|
5113
|
+
depType: DepTypeLike;
|
|
5114
|
+
}) => Bytes$1;
|
|
5115
|
+
decode: (_: BytesLike, _config?: {
|
|
5116
|
+
isExtraFieldIgnored?: boolean;
|
|
5117
|
+
} | undefined) => CellDep;
|
|
5118
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
5119
|
+
isExtraFieldIgnored?: boolean;
|
|
5120
|
+
} | undefined) => CellDep;
|
|
5121
|
+
from: (_: {} & {
|
|
5122
|
+
outPoint: {} & {
|
|
5123
|
+
txHash: BytesLike;
|
|
5124
|
+
index: NumLike;
|
|
5125
|
+
};
|
|
5126
|
+
depType: DepTypeLike;
|
|
5127
|
+
}) => CellDep;
|
|
4832
5128
|
Base<SubTypeLike, SubType = SubTypeLike>(): (abstract new () => {
|
|
4833
5129
|
toBytes(): Bytes$1;
|
|
4834
5130
|
clone(): SubType;
|
|
@@ -4837,10 +5133,14 @@ declare const CellDep_base: (abstract new () => {
|
|
|
4837
5133
|
toHex(): Hex;
|
|
4838
5134
|
}) & {
|
|
4839
5135
|
byteLength?: number;
|
|
4840
|
-
encode(_: SubTypeLike)
|
|
4841
|
-
decode(_: BytesLike
|
|
4842
|
-
|
|
4843
|
-
|
|
5136
|
+
encode: (_: SubTypeLike) => Bytes$1;
|
|
5137
|
+
decode: (_: BytesLike, _config?: {
|
|
5138
|
+
isExtraFieldIgnored?: boolean;
|
|
5139
|
+
}) => SubType;
|
|
5140
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
5141
|
+
isExtraFieldIgnored?: boolean;
|
|
5142
|
+
}) => SubType;
|
|
5143
|
+
from: (_: SubTypeLike) => SubType;
|
|
4844
5144
|
Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
4845
5145
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
|
|
4846
5146
|
readonly inner: DecodedType<CodecType>;
|
|
@@ -4857,10 +5157,14 @@ declare const CellDep_base: (abstract new () => {
|
|
|
4857
5157
|
toHex(): Hex;
|
|
4858
5158
|
}) & {
|
|
4859
5159
|
byteLength?: number;
|
|
4860
|
-
encode(_: SubTypeLike_1)
|
|
4861
|
-
decode(_: BytesLike
|
|
4862
|
-
|
|
4863
|
-
|
|
5160
|
+
encode: (_: SubTypeLike_1) => Bytes$1;
|
|
5161
|
+
decode: (_: BytesLike, _config?: {
|
|
5162
|
+
isExtraFieldIgnored?: boolean;
|
|
5163
|
+
} | undefined) => SubType_1;
|
|
5164
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
5165
|
+
isExtraFieldIgnored?: boolean;
|
|
5166
|
+
} | undefined) => SubType_1;
|
|
5167
|
+
from: (_: SubTypeLike_1) => SubType_1;
|
|
4864
5168
|
Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
4865
5169
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
|
|
4866
5170
|
};
|
|
@@ -4880,10 +5184,14 @@ declare const CellDep_base: (abstract new () => {
|
|
|
4880
5184
|
toHex(): Hex;
|
|
4881
5185
|
}) & {
|
|
4882
5186
|
byteLength?: number;
|
|
4883
|
-
encode(_: SubTypeLike)
|
|
4884
|
-
decode(_: BytesLike
|
|
4885
|
-
|
|
4886
|
-
|
|
5187
|
+
encode: (_: SubTypeLike) => Bytes$1;
|
|
5188
|
+
decode: (_: BytesLike, _config?: {
|
|
5189
|
+
isExtraFieldIgnored?: boolean;
|
|
5190
|
+
} | undefined) => SubType;
|
|
5191
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
5192
|
+
isExtraFieldIgnored?: boolean;
|
|
5193
|
+
} | undefined) => SubType;
|
|
5194
|
+
from: (_: SubTypeLike) => SubType;
|
|
4887
5195
|
Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
|
|
4888
5196
|
toBytes(): Bytes$1;
|
|
4889
5197
|
clone(): SubType_1;
|
|
@@ -4892,10 +5200,14 @@ declare const CellDep_base: (abstract new () => {
|
|
|
4892
5200
|
toHex(): Hex;
|
|
4893
5201
|
}) & {
|
|
4894
5202
|
byteLength?: number;
|
|
4895
|
-
encode(_: SubTypeLike_1)
|
|
4896
|
-
decode(_: BytesLike
|
|
4897
|
-
|
|
4898
|
-
|
|
5203
|
+
encode: (_: SubTypeLike_1) => Bytes$1;
|
|
5204
|
+
decode: (_: BytesLike, _config?: {
|
|
5205
|
+
isExtraFieldIgnored?: boolean;
|
|
5206
|
+
}) => SubType_1;
|
|
5207
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
5208
|
+
isExtraFieldIgnored?: boolean;
|
|
5209
|
+
}) => SubType_1;
|
|
5210
|
+
from: (_: SubTypeLike_1) => SubType_1;
|
|
4899
5211
|
Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
|
|
4900
5212
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
4901
5213
|
};
|
|
@@ -4914,22 +5226,7 @@ declare class CellDep extends CellDep_base {
|
|
|
4914
5226
|
* @param outPoint - The outpoint of the cell dependency.
|
|
4915
5227
|
* @param depType - The dependency type.
|
|
4916
5228
|
*/
|
|
4917
|
-
constructor(outPoint
|
|
4918
|
-
/**
|
|
4919
|
-
* Creates a CellDep instance from a CellDepLike object.
|
|
4920
|
-
*
|
|
4921
|
-
* @param cellDep - A CellDepLike object or an instance of CellDep.
|
|
4922
|
-
* @returns A CellDep instance.
|
|
4923
|
-
*
|
|
4924
|
-
* @example
|
|
4925
|
-
* ```typescript
|
|
4926
|
-
* const cellDep = CellDep.from({
|
|
4927
|
-
* outPoint: { txHash: "0x...", index: 0 },
|
|
4928
|
-
* depType: "depGroup"
|
|
4929
|
-
* });
|
|
4930
|
-
* ```
|
|
4931
|
-
*/
|
|
4932
|
-
static from(cellDep: CellDepLike): CellDep;
|
|
5229
|
+
constructor({ outPoint, depType }: DecodedType<typeof CellDepCodec>);
|
|
4933
5230
|
/**
|
|
4934
5231
|
* Clone a CellDep.
|
|
4935
5232
|
*
|
|
@@ -4942,27 +5239,57 @@ declare class CellDep extends CellDep_base {
|
|
|
4942
5239
|
*/
|
|
4943
5240
|
clone(): CellDep;
|
|
4944
5241
|
}
|
|
4945
|
-
declare const CellDepVec: Codec<
|
|
5242
|
+
declare const CellDepVec: Codec<({} & {
|
|
5243
|
+
outPoint: {} & {
|
|
5244
|
+
txHash: BytesLike;
|
|
5245
|
+
index: NumLike;
|
|
5246
|
+
};
|
|
5247
|
+
depType: DepTypeLike;
|
|
5248
|
+
})[], CellDep[]>;
|
|
4946
5249
|
/**
|
|
4947
5250
|
* @public
|
|
4948
5251
|
*/
|
|
4949
|
-
|
|
4950
|
-
lock
|
|
4951
|
-
inputType
|
|
4952
|
-
outputType
|
|
4953
|
-
}
|
|
5252
|
+
declare const WitnessArgsCodec: Codec<EncodableRecord<{
|
|
5253
|
+
lock: Codec<BytesLike | null | undefined, `0x${string}` | undefined>;
|
|
5254
|
+
inputType: Codec<BytesLike | null | undefined, `0x${string}` | undefined>;
|
|
5255
|
+
outputType: Codec<BytesLike | null | undefined, `0x${string}` | undefined>;
|
|
5256
|
+
}>, DecodedRecord<{
|
|
5257
|
+
lock: Codec<BytesLike | null | undefined, `0x${string}` | undefined>;
|
|
5258
|
+
inputType: Codec<BytesLike | null | undefined, `0x${string}` | undefined>;
|
|
5259
|
+
outputType: Codec<BytesLike | null | undefined, `0x${string}` | undefined>;
|
|
5260
|
+
}>>;
|
|
5261
|
+
/**
|
|
5262
|
+
* @public
|
|
5263
|
+
*/
|
|
5264
|
+
type WitnessArgsLike = EncodableType<typeof WitnessArgsCodec>;
|
|
4954
5265
|
declare const WitnessArgs_base: (abstract new () => {
|
|
4955
5266
|
toBytes(): Bytes$1;
|
|
4956
5267
|
clone(): WitnessArgs;
|
|
4957
|
-
eq(other:
|
|
5268
|
+
eq(other: {
|
|
5269
|
+
lock?: BytesLike | null | undefined;
|
|
5270
|
+
inputType?: BytesLike | null | undefined;
|
|
5271
|
+
outputType?: BytesLike | null | undefined;
|
|
5272
|
+
} & {}): boolean;
|
|
4958
5273
|
hash(): Hex;
|
|
4959
5274
|
toHex(): Hex;
|
|
4960
5275
|
}) & {
|
|
4961
5276
|
byteLength?: number;
|
|
4962
|
-
encode(_:
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
5277
|
+
encode: (_: {
|
|
5278
|
+
lock?: BytesLike | null | undefined;
|
|
5279
|
+
inputType?: BytesLike | null | undefined;
|
|
5280
|
+
outputType?: BytesLike | null | undefined;
|
|
5281
|
+
} & {}) => Bytes$1;
|
|
5282
|
+
decode: (_: BytesLike, _config?: {
|
|
5283
|
+
isExtraFieldIgnored?: boolean;
|
|
5284
|
+
} | undefined) => WitnessArgs;
|
|
5285
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
5286
|
+
isExtraFieldIgnored?: boolean;
|
|
5287
|
+
} | undefined) => WitnessArgs;
|
|
5288
|
+
from: (_: {
|
|
5289
|
+
lock?: BytesLike | null | undefined;
|
|
5290
|
+
inputType?: BytesLike | null | undefined;
|
|
5291
|
+
outputType?: BytesLike | null | undefined;
|
|
5292
|
+
} & {}) => WitnessArgs;
|
|
4966
5293
|
Base<SubTypeLike, SubType = SubTypeLike>(): (abstract new () => {
|
|
4967
5294
|
toBytes(): Bytes$1;
|
|
4968
5295
|
clone(): SubType;
|
|
@@ -4971,10 +5298,14 @@ declare const WitnessArgs_base: (abstract new () => {
|
|
|
4971
5298
|
toHex(): Hex;
|
|
4972
5299
|
}) & {
|
|
4973
5300
|
byteLength?: number;
|
|
4974
|
-
encode(_: SubTypeLike)
|
|
4975
|
-
decode(_: BytesLike
|
|
4976
|
-
|
|
4977
|
-
|
|
5301
|
+
encode: (_: SubTypeLike) => Bytes$1;
|
|
5302
|
+
decode: (_: BytesLike, _config?: {
|
|
5303
|
+
isExtraFieldIgnored?: boolean;
|
|
5304
|
+
}) => SubType;
|
|
5305
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
5306
|
+
isExtraFieldIgnored?: boolean;
|
|
5307
|
+
}) => SubType;
|
|
5308
|
+
from: (_: SubTypeLike) => SubType;
|
|
4978
5309
|
Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
4979
5310
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
|
|
4980
5311
|
readonly inner: DecodedType<CodecType>;
|
|
@@ -4991,10 +5322,14 @@ declare const WitnessArgs_base: (abstract new () => {
|
|
|
4991
5322
|
toHex(): Hex;
|
|
4992
5323
|
}) & {
|
|
4993
5324
|
byteLength?: number;
|
|
4994
|
-
encode(_: SubTypeLike_1)
|
|
4995
|
-
decode(_: BytesLike
|
|
4996
|
-
|
|
4997
|
-
|
|
5325
|
+
encode: (_: SubTypeLike_1) => Bytes$1;
|
|
5326
|
+
decode: (_: BytesLike, _config?: {
|
|
5327
|
+
isExtraFieldIgnored?: boolean;
|
|
5328
|
+
} | undefined) => SubType_1;
|
|
5329
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
5330
|
+
isExtraFieldIgnored?: boolean;
|
|
5331
|
+
} | undefined) => SubType_1;
|
|
5332
|
+
from: (_: SubTypeLike_1) => SubType_1;
|
|
4998
5333
|
Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
4999
5334
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
|
|
5000
5335
|
};
|
|
@@ -5014,10 +5349,14 @@ declare const WitnessArgs_base: (abstract new () => {
|
|
|
5014
5349
|
toHex(): Hex;
|
|
5015
5350
|
}) & {
|
|
5016
5351
|
byteLength?: number;
|
|
5017
|
-
encode(_: SubTypeLike)
|
|
5018
|
-
decode(_: BytesLike
|
|
5019
|
-
|
|
5020
|
-
|
|
5352
|
+
encode: (_: SubTypeLike) => Bytes$1;
|
|
5353
|
+
decode: (_: BytesLike, _config?: {
|
|
5354
|
+
isExtraFieldIgnored?: boolean;
|
|
5355
|
+
} | undefined) => SubType;
|
|
5356
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
5357
|
+
isExtraFieldIgnored?: boolean;
|
|
5358
|
+
} | undefined) => SubType;
|
|
5359
|
+
from: (_: SubTypeLike) => SubType;
|
|
5021
5360
|
Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
|
|
5022
5361
|
toBytes(): Bytes$1;
|
|
5023
5362
|
clone(): SubType_1;
|
|
@@ -5026,10 +5365,14 @@ declare const WitnessArgs_base: (abstract new () => {
|
|
|
5026
5365
|
toHex(): Hex;
|
|
5027
5366
|
}) & {
|
|
5028
5367
|
byteLength?: number;
|
|
5029
|
-
encode(_: SubTypeLike_1)
|
|
5030
|
-
decode(_: BytesLike
|
|
5031
|
-
|
|
5032
|
-
|
|
5368
|
+
encode: (_: SubTypeLike_1) => Bytes$1;
|
|
5369
|
+
decode: (_: BytesLike, _config?: {
|
|
5370
|
+
isExtraFieldIgnored?: boolean;
|
|
5371
|
+
}) => SubType_1;
|
|
5372
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
5373
|
+
isExtraFieldIgnored?: boolean;
|
|
5374
|
+
}) => SubType_1;
|
|
5375
|
+
from: (_: SubTypeLike_1) => SubType_1;
|
|
5033
5376
|
Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
|
|
5034
5377
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
5035
5378
|
};
|
|
@@ -5040,9 +5383,9 @@ declare const WitnessArgs_base: (abstract new () => {
|
|
|
5040
5383
|
* @public
|
|
5041
5384
|
*/
|
|
5042
5385
|
declare class WitnessArgs extends WitnessArgs_base {
|
|
5043
|
-
lock?: Hex
|
|
5044
|
-
inputType?: Hex
|
|
5045
|
-
outputType?: Hex
|
|
5386
|
+
lock?: Hex;
|
|
5387
|
+
inputType?: Hex;
|
|
5388
|
+
outputType?: Hex;
|
|
5046
5389
|
/**
|
|
5047
5390
|
* Creates an instance of WitnessArgs.
|
|
5048
5391
|
*
|
|
@@ -5050,23 +5393,7 @@ declare class WitnessArgs extends WitnessArgs_base {
|
|
|
5050
5393
|
* @param inputType - The optional input type field of the witness.
|
|
5051
5394
|
* @param outputType - The optional output type field of the witness.
|
|
5052
5395
|
*/
|
|
5053
|
-
constructor(lock
|
|
5054
|
-
/**
|
|
5055
|
-
* Creates a WitnessArgs instance from a WitnessArgsLike object.
|
|
5056
|
-
*
|
|
5057
|
-
* @param witnessArgs - A WitnessArgsLike object or an instance of WitnessArgs.
|
|
5058
|
-
* @returns A WitnessArgs instance.
|
|
5059
|
-
*
|
|
5060
|
-
* @example
|
|
5061
|
-
* ```typescript
|
|
5062
|
-
* const witnessArgs = WitnessArgs.from({
|
|
5063
|
-
* lock: "0x...",
|
|
5064
|
-
* inputType: "0x...",
|
|
5065
|
-
* outputType: "0x..."
|
|
5066
|
-
* });
|
|
5067
|
-
* ```
|
|
5068
|
-
*/
|
|
5069
|
-
static from(witnessArgs: WitnessArgsLike): WitnessArgs;
|
|
5396
|
+
constructor({ lock, inputType, outputType }: DecodedType<typeof WitnessArgsCodec>);
|
|
5070
5397
|
}
|
|
5071
5398
|
/**
|
|
5072
5399
|
* Convert a bytes to a num.
|
|
@@ -5076,14 +5403,26 @@ declare class WitnessArgs extends WitnessArgs_base {
|
|
|
5076
5403
|
declare function udtBalanceFrom(dataLike: BytesLike): Num;
|
|
5077
5404
|
declare const RawTransaction: Codec<EncodableRecord<{
|
|
5078
5405
|
version: Codec<NumLike, number>;
|
|
5079
|
-
cellDeps: Codec<
|
|
5406
|
+
cellDeps: Codec<({} & {
|
|
5407
|
+
outPoint: {} & {
|
|
5408
|
+
txHash: BytesLike;
|
|
5409
|
+
index: NumLike;
|
|
5410
|
+
};
|
|
5411
|
+
depType: DepTypeLike;
|
|
5412
|
+
})[], CellDep[]>;
|
|
5080
5413
|
headerDeps: Codec<BytesLike[], `0x${string}`[]>;
|
|
5081
5414
|
inputs: Codec<CellInputLike[], CellInput[]>;
|
|
5082
5415
|
outputs: Codec<CellOutputLike[], CellOutput[]>;
|
|
5083
5416
|
outputsData: Codec<BytesLike[], `0x${string}`[]>;
|
|
5084
5417
|
}>, DecodedRecord<{
|
|
5085
5418
|
version: Codec<NumLike, number>;
|
|
5086
|
-
cellDeps: Codec<
|
|
5419
|
+
cellDeps: Codec<({} & {
|
|
5420
|
+
outPoint: {} & {
|
|
5421
|
+
txHash: BytesLike;
|
|
5422
|
+
index: NumLike;
|
|
5423
|
+
};
|
|
5424
|
+
depType: DepTypeLike;
|
|
5425
|
+
})[], CellDep[]>;
|
|
5087
5426
|
headerDeps: Codec<BytesLike[], `0x${string}`[]>;
|
|
5088
5427
|
inputs: Codec<CellInputLike[], CellInput[]>;
|
|
5089
5428
|
outputs: Codec<CellOutputLike[], CellOutput[]>;
|
|
@@ -5109,10 +5448,14 @@ declare const Transaction_base: (abstract new () => {
|
|
|
5109
5448
|
toHex(): Hex;
|
|
5110
5449
|
}) & {
|
|
5111
5450
|
byteLength?: number;
|
|
5112
|
-
encode(_: TransactionLike)
|
|
5113
|
-
decode(_: BytesLike
|
|
5114
|
-
|
|
5115
|
-
|
|
5451
|
+
encode: (_: TransactionLike) => Bytes$1;
|
|
5452
|
+
decode: (_: BytesLike, _config?: {
|
|
5453
|
+
isExtraFieldIgnored?: boolean;
|
|
5454
|
+
} | undefined) => Transaction;
|
|
5455
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
5456
|
+
isExtraFieldIgnored?: boolean;
|
|
5457
|
+
} | undefined) => Transaction;
|
|
5458
|
+
from: (_: TransactionLike) => Transaction;
|
|
5116
5459
|
Base<SubTypeLike, SubType = SubTypeLike>(): (abstract new () => {
|
|
5117
5460
|
toBytes(): Bytes$1;
|
|
5118
5461
|
clone(): SubType;
|
|
@@ -5121,10 +5464,14 @@ declare const Transaction_base: (abstract new () => {
|
|
|
5121
5464
|
toHex(): Hex;
|
|
5122
5465
|
}) & {
|
|
5123
5466
|
byteLength?: number;
|
|
5124
|
-
encode(_: SubTypeLike)
|
|
5125
|
-
decode(_: BytesLike
|
|
5126
|
-
|
|
5127
|
-
|
|
5467
|
+
encode: (_: SubTypeLike) => Bytes$1;
|
|
5468
|
+
decode: (_: BytesLike, _config?: {
|
|
5469
|
+
isExtraFieldIgnored?: boolean;
|
|
5470
|
+
}) => SubType;
|
|
5471
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
5472
|
+
isExtraFieldIgnored?: boolean;
|
|
5473
|
+
}) => SubType;
|
|
5474
|
+
from: (_: SubTypeLike) => SubType;
|
|
5128
5475
|
Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
5129
5476
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
|
|
5130
5477
|
readonly inner: DecodedType<CodecType>;
|
|
@@ -5141,10 +5488,14 @@ declare const Transaction_base: (abstract new () => {
|
|
|
5141
5488
|
toHex(): Hex;
|
|
5142
5489
|
}) & {
|
|
5143
5490
|
byteLength?: number;
|
|
5144
|
-
encode(_: SubTypeLike_1)
|
|
5145
|
-
decode(_: BytesLike
|
|
5146
|
-
|
|
5147
|
-
|
|
5491
|
+
encode: (_: SubTypeLike_1) => Bytes$1;
|
|
5492
|
+
decode: (_: BytesLike, _config?: {
|
|
5493
|
+
isExtraFieldIgnored?: boolean;
|
|
5494
|
+
} | undefined) => SubType_1;
|
|
5495
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
5496
|
+
isExtraFieldIgnored?: boolean;
|
|
5497
|
+
} | undefined) => SubType_1;
|
|
5498
|
+
from: (_: SubTypeLike_1) => SubType_1;
|
|
5148
5499
|
Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
5149
5500
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
|
|
5150
5501
|
};
|
|
@@ -5164,10 +5515,14 @@ declare const Transaction_base: (abstract new () => {
|
|
|
5164
5515
|
toHex(): Hex;
|
|
5165
5516
|
}) & {
|
|
5166
5517
|
byteLength?: number;
|
|
5167
|
-
encode(_: SubTypeLike)
|
|
5168
|
-
decode(_: BytesLike
|
|
5169
|
-
|
|
5170
|
-
|
|
5518
|
+
encode: (_: SubTypeLike) => Bytes$1;
|
|
5519
|
+
decode: (_: BytesLike, _config?: {
|
|
5520
|
+
isExtraFieldIgnored?: boolean;
|
|
5521
|
+
} | undefined) => SubType;
|
|
5522
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
5523
|
+
isExtraFieldIgnored?: boolean;
|
|
5524
|
+
} | undefined) => SubType;
|
|
5525
|
+
from: (_: SubTypeLike) => SubType;
|
|
5171
5526
|
Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
|
|
5172
5527
|
toBytes(): Bytes$1;
|
|
5173
5528
|
clone(): SubType_1;
|
|
@@ -5176,10 +5531,14 @@ declare const Transaction_base: (abstract new () => {
|
|
|
5176
5531
|
toHex(): Hex;
|
|
5177
5532
|
}) & {
|
|
5178
5533
|
byteLength?: number;
|
|
5179
|
-
encode(_: SubTypeLike_1)
|
|
5180
|
-
decode(_: BytesLike
|
|
5181
|
-
|
|
5182
|
-
|
|
5534
|
+
encode: (_: SubTypeLike_1) => Bytes$1;
|
|
5535
|
+
decode: (_: BytesLike, _config?: {
|
|
5536
|
+
isExtraFieldIgnored?: boolean;
|
|
5537
|
+
}) => SubType_1;
|
|
5538
|
+
fromBytes: (_bytes: BytesLike, _config?: {
|
|
5539
|
+
isExtraFieldIgnored?: boolean;
|
|
5540
|
+
}) => SubType_1;
|
|
5541
|
+
from: (_: SubTypeLike_1) => SubType_1;
|
|
5183
5542
|
Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
|
|
5184
5543
|
BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
|
|
5185
5544
|
};
|
|
@@ -5208,7 +5567,15 @@ declare class Transaction extends Transaction_base {
|
|
|
5208
5567
|
* @param outputsData - The data associated with the outputs.
|
|
5209
5568
|
* @param witnesses - The witnesses of the transaction.
|
|
5210
5569
|
*/
|
|
5211
|
-
constructor(version
|
|
5570
|
+
constructor({ version, cellDeps, headerDeps, inputs, outputs, outputsData, witnesses }: {
|
|
5571
|
+
version: Num;
|
|
5572
|
+
cellDeps: CellDep[];
|
|
5573
|
+
headerDeps: Hex[];
|
|
5574
|
+
inputs: CellInput[];
|
|
5575
|
+
outputs: CellOutput[];
|
|
5576
|
+
outputsData: Hex[];
|
|
5577
|
+
witnesses: Hex[];
|
|
5578
|
+
});
|
|
5212
5579
|
/**
|
|
5213
5580
|
* Creates a default Transaction instance with empty fields.
|
|
5214
5581
|
*
|
|
@@ -6167,8 +6534,8 @@ declare abstract class Client {
|
|
|
6167
6534
|
*/
|
|
6168
6535
|
abstract getKnownScript(script: KnownScript): Promise<ScriptInfo>;
|
|
6169
6536
|
abstract getFeeRateStatistics(blockRange?: NumLike): Promise<{
|
|
6170
|
-
mean
|
|
6171
|
-
median
|
|
6537
|
+
mean?: Num;
|
|
6538
|
+
median?: Num;
|
|
6172
6539
|
}>;
|
|
6173
6540
|
/**
|
|
6174
6541
|
* Get the recommended transaction fee rate based on recent blocks.
|
|
@@ -7069,5 +7436,5 @@ declare namespace advancedBarrel_d_exports {
|
|
|
7069
7436
|
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 };
|
|
7070
7437
|
}
|
|
7071
7438
|
//#endregion
|
|
7072
|
-
export { CellDep as $,
|
|
7073
|
-
//# sourceMappingURL=advancedBarrel-
|
|
7439
|
+
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 };
|
|
7440
|
+
//# sourceMappingURL=advancedBarrel-BHwnMJqR.d.mts.map
|