@ckb-ccc/core 1.16.0 → 1.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/dist/address.advanced-DpcI420e.mjs +2 -0
  3. package/dist/address.advanced-DpcI420e.mjs.map +1 -0
  4. package/dist/advanced.d.mts +1 -1
  5. package/dist/advanced.mjs +1 -1
  6. package/dist/{advancedBarrel-4xTrm-An.d.mts → advancedBarrel-Bk19lQjR.d.mts} +1151 -161
  7. package/dist/advancedBarrel-Bk19lQjR.d.mts.map +1 -0
  8. package/dist/advancedBarrel.d.mts +1 -1
  9. package/dist/advancedBarrel.mjs +1 -1
  10. package/dist/barrel-BwuHQ4NS.mjs +7 -0
  11. package/dist/barrel-BwuHQ4NS.mjs.map +1 -0
  12. package/dist/barrel.d.mts +1 -1
  13. package/dist/barrel.mjs +1 -1
  14. package/dist/index.d.mts +1 -1
  15. package/dist/index.mjs +1 -1
  16. package/dist.commonjs/address.advanced--1eOp1GP.js +2 -0
  17. package/dist.commonjs/address.advanced--1eOp1GP.js.map +1 -0
  18. package/dist.commonjs/advanced.d.ts +1 -1
  19. package/dist.commonjs/advanced.js +1 -1
  20. package/dist.commonjs/{advancedBarrel-XD_hMVay.d.ts → advancedBarrel-DrAHz5UG.d.ts} +1151 -161
  21. package/dist.commonjs/advancedBarrel-DrAHz5UG.d.ts.map +1 -0
  22. package/dist.commonjs/advancedBarrel.d.ts +1 -1
  23. package/dist.commonjs/advancedBarrel.js +1 -1
  24. package/dist.commonjs/barrel-BIo8E9Ci.js +21 -0
  25. package/dist.commonjs/barrel-BIo8E9Ci.js.map +1 -0
  26. package/dist.commonjs/barrel.d.ts +1 -1
  27. package/dist.commonjs/barrel.js +1 -1
  28. package/dist.commonjs/index.d.ts +1 -1
  29. package/dist.commonjs/index.js +1 -1
  30. package/dist.commonjs/rolldown-runtime-DWNI8pZO.js +1 -0
  31. package/package.json +4 -3
  32. package/src/ckb/epoch.ts +9 -9
  33. package/src/ckb/script.ts +10 -2
  34. package/src/ckb/transaction.ts +301 -75
  35. package/src/client/jsonRpc/client.ts +7 -3
  36. package/src/codec/entity.ts +93 -0
  37. package/src/molecule/codec.ts +44 -20
  38. package/src/signer/btc/signerBtc.ts +1 -1
  39. package/src/signer/ckb/signerCkbPrivateKey.ts +2 -3
  40. package/src/signer/ckb/signerMultisigCkbReadonly.ts +5 -5
  41. package/src/signer/doge/signerDoge.ts +1 -1
  42. package/src/signer/evm/signerEvm.ts +2 -2
  43. package/src/signer/nostr/signerNostr.ts +1 -1
  44. package/dist/address.advanced-8N_Hcv6p.mjs +0 -2
  45. package/dist/address.advanced-8N_Hcv6p.mjs.map +0 -1
  46. package/dist/advancedBarrel-4xTrm-An.d.mts.map +0 -1
  47. package/dist/barrel-D3tMRxi5.mjs +0 -7
  48. package/dist/barrel-D3tMRxi5.mjs.map +0 -1
  49. package/dist.commonjs/address.advanced-CUIioHfv.js +0 -2
  50. package/dist.commonjs/address.advanced-CUIioHfv.js.map +0 -1
  51. package/dist.commonjs/advancedBarrel-XD_hMVay.d.ts.map +0 -1
  52. package/dist.commonjs/barrel-D6tLiPED.js +0 -21
  53. package/dist.commonjs/barrel-D6tLiPED.js.map +0 -1
@@ -261,15 +261,8 @@ declare class Codec<Encodable, Decoded = Encodable> {
261
261
  decodeOr<T>(decodable: BytesLike, fallback: T, config?: {
262
262
  isExtraFieldIgnored?: boolean;
263
263
  }): Decoded | T;
264
- static from<Encodable, Decoded = Encodable>({
265
- encode,
266
- decode,
267
- byteLength
268
- }: CodecLike<Encodable, Decoded>): Codec<Encodable, Decoded>;
269
- map<NewEncodable = Encodable, NewDecoded = Decoded>({
270
- inMap,
271
- outMap
272
- }: {
264
+ static from<Encodable, Decoded = Encodable>({ encode, decode, byteLength }: CodecLike<Encodable, Decoded>): Codec<Encodable, Decoded>;
265
+ map<NewEncodable = Encodable, NewDecoded = Decoded>({ inMap, outMap }: {
273
266
  inMap?: (encodable: NewEncodable) => Encodable;
274
267
  outMap?: (decoded: Decoded) => NewDecoded;
275
268
  }): Codec<NewEncodable, NewDecoded>;
@@ -279,6 +272,105 @@ declare class Codec<Encodable, Decoded = Encodable> {
279
272
  type EncodableType<T extends CodecLike<any, any>> = T extends CodecLike<infer Encodable, unknown> ? Encodable : never;
280
273
  type DecodedType<T extends CodecLike<any, any>> = T extends CodecLike<any, infer Decoded> ? Decoded : never;
281
274
  //#endregion
275
+ //#region src/molecule/codec.d.ts
276
+ /**
277
+ * Vector with fixed size item codec
278
+ * @param itemCodec fixed-size vector item codec
279
+ */
280
+ declare function fixedItemVec<Encodable, Decoded>(itemCodec: CodecLike<Encodable, Decoded>): Codec<Array<Encodable>, Array<Decoded>>;
281
+ /**
282
+ * Vector with dynamic size item codec, you can create a recursive vector with this function
283
+ * @param itemCodec the vector item codec. It can be fixed-size or dynamic-size.
284
+ */
285
+ declare function dynItemVec<Encodable, Decoded>(itemCodec: CodecLike<Encodable, Decoded>): Codec<Array<Encodable>, Array<Decoded>>;
286
+ /**
287
+ * General vector codec, if `itemCodec` is fixed size type, it will create a fixvec codec, otherwise a dynvec codec will be created.
288
+ * @param itemCodec
289
+ */
290
+ declare function vector<Encodable, Decoded>(itemCodec: CodecLike<Encodable, Decoded>): Codec<Array<Encodable>, Array<Decoded>>;
291
+ /**
292
+ * Option is a dynamic-size type.
293
+ * Serializing an option depends on whether it is empty or not:
294
+ * - if it's empty, there is zero bytes (the size is 0).
295
+ * - if it's not empty, just serialize the inner item (the size is same as the inner item's size).
296
+ * @param innerCodec
297
+ */
298
+ declare function option<Encodable, Decoded>(innerCodec: CodecLike<Encodable, Decoded>): Codec<Encodable | undefined | null, Decoded | undefined>;
299
+ /**
300
+ * Wrap the encoded value with a fixed-length buffer
301
+ * @param codec
302
+ */
303
+ declare function byteVec<Encodable, Decoded>(codec: CodecLike<Encodable, Decoded>): Codec<Encodable, Decoded>;
304
+ 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
+ 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
+ type DecodedRecordOptionalKeys<T extends Record<string, CodecLike<any, any>>> = { [K in keyof T]: Extract<DecodedType<T[K]>, undefined> extends never ? never : K; }[keyof T];
307
+ type DecodedRecord<T extends Record<string, CodecLike<any, any>>> = { [key in keyof Pick<T, DecodedRecordOptionalKeys<T>>]+?: DecodedType<T[key]>; } & { [key in keyof Omit<T, DecodedRecordOptionalKeys<T>>]: DecodedType<T[key]>; };
308
+ /**
309
+ * Table is a dynamic-size type. It can be considered as a dynvec but the length is fixed.
310
+ * @param codecLayout
311
+ */
312
+ declare function table<T extends Record<string, CodecLike<any, any>>, Encodable extends EncodableRecord<T>, Decoded extends DecodedRecord<T>>(codecLayout: T): Codec<Encodable, Decoded>;
313
+ type UnionEncodable<T extends Record<string, CodecLike<any, any>>, K extends keyof T = keyof T> = K extends unknown ? {
314
+ type: K;
315
+ value: EncodableType<T[K]>;
316
+ } : never;
317
+ type UnionDecoded<T extends Record<string, CodecLike<any, any>>, K extends keyof T = keyof T> = K extends unknown ? {
318
+ type: K;
319
+ value: DecodedType<T[K]>;
320
+ } : never;
321
+ type UnionMatchHandlers<CodecType extends CodecLike<any, UnionDecoded<any, any>>, Result> = { [T in DecodedType<CodecType>["type"]]: (value: Extract<DecodedType<CodecType>, {
322
+ type: T;
323
+ }>["value"]) => Result; };
324
+ /**
325
+ * Constructs a union codec that can serialize and deserialize values tagged with a type identifier.
326
+ *
327
+ * If all variants have the same fixed size, the resulting union codec is fixed-size (header + payload).
328
+ * Otherwise, it falls back to a dynamic-size codec.
329
+ *
330
+ * Serialization format:
331
+ * 1. 4-byte little-endian unsigned integer for the variant index.
332
+ * 2. Encoded bytes of the selected variant.
333
+ *
334
+ * @typeParam T
335
+ * A record mapping variant names to codecs.
336
+ * @param codecLayout
337
+ * An object whose keys are variant names and values are codecs for each variant.
338
+ * @param fields
339
+ * Optional mapping from variant names to custom numeric IDs. If omitted, the index
340
+ * of each variant in `codecLayout` is used as its ID.
341
+ *
342
+ *
343
+ * @example
344
+ * // Dynamic union without custom numeric IDs
345
+ * union({ cafe: Uint8, bee: Uint16 })
346
+ *
347
+ * // Dynamic union with custom numeric IDs
348
+ * union({ cafe: Uint8, bee: Uint16 }, { cafe: 0xcafe, bee: 0xbee })
349
+ *
350
+ * // Fixed-size union without custom numeric IDs
351
+ * const PaddedUint8 = struct({ data : u8, padding : u8 })
352
+ * union({ cafe: PaddedUint8, bee: Uint16 });
353
+ *
354
+ * // Fixed-size union with custom numeric IDs
355
+ * union({ cafe: PaddedUint8, bee: Uint16 }, { cafe: 0xcafe, bee: 0xbee })
356
+ */
357
+ declare function union<T extends Record<string, CodecLike<any, any>>>(codecLayout: T, fields?: Record<keyof T, number | undefined | null>): Codec<UnionEncodable<T> | {
358
+ inner: UnionEncodable<T>;
359
+ }, UnionDecoded<T>>;
360
+ /**
361
+ * Struct is a fixed-size type: all fields in struct are fixed-size and it has a fixed quantity of fields.
362
+ * The size of a struct is the sum of all fields' size.
363
+ * @param codecLayout a object contains all fields' codec
364
+ */
365
+ declare function struct<T extends Record<string, CodecLike<any, any>>, Encodable extends EncodableRecord<T>, Decoded extends DecodedRecord<T>>(codecLayout: T): Codec<Encodable, Decoded>;
366
+ /**
367
+ * The array is a fixed-size type: it has a fixed-size inner type and a fixed length.
368
+ * The size of an array is the size of inner type times the length.
369
+ * @param itemCodec the fixed-size array item codec
370
+ * @param itemCount
371
+ */
372
+ declare function array<Encodable, Decoded>(itemCodec: CodecLike<Encodable, Decoded>, itemCount: number): Codec<Array<Encodable>, Array<Decoded>>;
373
+ //#endregion
282
374
  //#region src/num/index.d.ts
283
375
  /**
284
376
  * Represents a numeric value as a bigint.
@@ -625,12 +717,328 @@ declare abstract class Entity {
625
717
  * @throws Will throw an error if the entity is not serializable
626
718
  */
627
719
  from(_: SubTypeLike): SubType;
628
- Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/any;
720
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
721
+ /**
722
+ * Generate a base class of CCC to create a serializable Union instance.
723
+ * This should be used with the {@link codec} decorator.
724
+ * @public
725
+ */
726
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
727
+ readonly inner: DecodedType<CodecType>;
728
+ /**
729
+ * Match the union type with a set of handlers.
730
+ * @public
731
+ * @param handlers - A map of type-specific handlers, all variants must be handled if no default handler `_` is provided.
732
+ * @returns The result returned by the matching handler.
733
+ */
734
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
735
+ _?: undefined | null;
736
+ }): Result;
737
+ /**
738
+ * Match the union type with a set of handlers.
739
+ * @public
740
+ * @param handlers - A map of type-specific handlers, unmatched variants will be handled by the default handler `_`.
741
+ * @returns The result returned by the matching handler.
742
+ */
743
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
744
+ _: (inner: DecodedType<CodecType>) => Result;
745
+ }): Result;
746
+ /**
747
+ * Convert the entity to bytes
748
+ * @public
749
+ * @returns The bytes representation of the entity
750
+ */
751
+ toBytes(): Bytes$1;
752
+ /**
753
+ * Create a clone of the entity
754
+ * @public
755
+ * @returns A clone of the entity
756
+ */
757
+ clone(): SubType_1;
758
+ /**
759
+ * Check if the entity is equal to another entity
760
+ * @public
761
+ * @param other - The other entity to compare with
762
+ * @returns True if the entities are equal, false otherwise
763
+ */
764
+ eq(other: SubTypeLike_1): boolean;
765
+ /**
766
+ * Calculate the hash of the entity
767
+ * @public
768
+ * @returns The hash of the entity
769
+ */
770
+ hash(): Hex;
771
+ /**
772
+ * Convert the entity to a full-byte untrimmed Hex representation
773
+ * @public
774
+ * @returns The entity full-byte untrimmed hexadecimal representation
775
+ */
776
+ toHex(): Hex;
777
+ }) & {
778
+ /**
779
+ * The bytes length of the entity, if it is fixed, otherwise undefined
780
+ * @public
781
+ * @static
782
+ */
783
+ byteLength?: number;
784
+ /**
785
+ * Encode the entity into bytes
786
+ * @public
787
+ * @static
788
+ * @param _ - The entity to encode
789
+ * @returns The encoded bytes
790
+ * @throws Will throw an error if the entity is not serializable
791
+ */
792
+ encode(_: SubTypeLike_1): Bytes$1;
793
+ /**
794
+ * Decode the entity from bytes
795
+ * @public
796
+ * @static
797
+ * @param _ - The bytes to decode
798
+ * @returns The decoded entity
799
+ * @throws Will throw an error if the entity is not serializable
800
+ */
801
+ decode(_: BytesLike): SubType_1;
802
+ /**
803
+ * Create an entity from bytes
804
+ * @public
805
+ * @static
806
+ * @param _ - The bytes to create the entity from
807
+ * @returns The created entity
808
+ * @throws Will throw an error if the entity is not serializable
809
+ */
810
+ fromBytes(_bytes: BytesLike): SubType_1;
811
+ /**
812
+ * Create an entity from a serializable object
813
+ * @public
814
+ * @static
815
+ * @param _ - The serializable object to create the entity from
816
+ * @returns The created entity
817
+ * @throws Will throw an error if the entity is not serializable
818
+ */
819
+ from(_: SubTypeLike_1): SubType_1;
820
+ /**
821
+ * Generate a base class of CCC to create a serializable instance.
822
+ * This should be used with the {@link codec} decorator.
823
+ * @public
824
+ */
825
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
826
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
827
+ };
629
828
  };
829
+ /**
830
+ * Convert the entity to bytes.
831
+ * @public
832
+ * @returns The bytes representation of the entity.
833
+ */
630
834
  abstract toBytes(): Bytes$1;
835
+ /**
836
+ * Calculate the hash of the entity.
837
+ * @public
838
+ * @returns The hash of the entity.
839
+ */
631
840
  abstract hash(): Hex;
841
+ /**
842
+ * Convert the entity to a full-byte untrimmed Hex representation.
843
+ * @public
844
+ * @returns The entity full-byte untrimmed hexadecimal representation.
845
+ */
632
846
  abstract toHex(): Hex;
847
+ /**
848
+ * Create a clone of the entity.
849
+ * @public
850
+ * @returns A clone of the entity.
851
+ */
633
852
  abstract clone(): Entity;
853
+ /**
854
+ * Generate a base class of CCC to create a serializable Union instance.
855
+ * This should be used with the {@link codec} decorator.
856
+ * @public
857
+ */
858
+ static BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): (abstract new (inner: DecodedType<CodecType>) => {
859
+ readonly inner: DecodedType<CodecType>;
860
+ /**
861
+ * Match the union type with a set of handlers.
862
+ * @public
863
+ * @param handlers - A map of type-specific handlers, all variants must be handled if no default handler `_` is provided.
864
+ * @returns The result returned by the matching handler.
865
+ */
866
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
867
+ _?: undefined | null;
868
+ }): Result;
869
+ /**
870
+ * Match the union type with a set of handlers.
871
+ * @public
872
+ * @param handlers - A map of type-specific handlers, unmatched variants will be handled by the default handler `_`.
873
+ * @returns The result returned by the matching handler.
874
+ */
875
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
876
+ _: (inner: DecodedType<CodecType>) => Result;
877
+ }): Result;
878
+ /**
879
+ * Convert the entity to bytes
880
+ * @public
881
+ * @returns The bytes representation of the entity
882
+ */
883
+ toBytes(): Bytes$1;
884
+ /**
885
+ * Create a clone of the entity
886
+ * @public
887
+ * @returns A clone of the entity
888
+ */
889
+ clone(): SubType;
890
+ /**
891
+ * Check if the entity is equal to another entity
892
+ * @public
893
+ * @param other - The other entity to compare with
894
+ * @returns True if the entities are equal, false otherwise
895
+ */
896
+ eq(other: SubTypeLike): boolean;
897
+ /**
898
+ * Calculate the hash of the entity
899
+ * @public
900
+ * @returns The hash of the entity
901
+ */
902
+ hash(): Hex;
903
+ /**
904
+ * Convert the entity to a full-byte untrimmed Hex representation
905
+ * @public
906
+ * @returns The entity full-byte untrimmed hexadecimal representation
907
+ */
908
+ toHex(): Hex;
909
+ }) & {
910
+ /**
911
+ * The bytes length of the entity, if it is fixed, otherwise undefined
912
+ * @public
913
+ * @static
914
+ */
915
+ byteLength?: number;
916
+ /**
917
+ * Encode the entity into bytes
918
+ * @public
919
+ * @static
920
+ * @param _ - The entity to encode
921
+ * @returns The encoded bytes
922
+ * @throws Will throw an error if the entity is not serializable
923
+ */
924
+ encode(_: SubTypeLike): Bytes$1;
925
+ /**
926
+ * Decode the entity from bytes
927
+ * @public
928
+ * @static
929
+ * @param _ - The bytes to decode
930
+ * @returns The decoded entity
931
+ * @throws Will throw an error if the entity is not serializable
932
+ */
933
+ decode(_: BytesLike): SubType;
934
+ /**
935
+ * Create an entity from bytes
936
+ * @public
937
+ * @static
938
+ * @param _ - The bytes to create the entity from
939
+ * @returns The created entity
940
+ * @throws Will throw an error if the entity is not serializable
941
+ */
942
+ fromBytes(_bytes: BytesLike): SubType;
943
+ /**
944
+ * Create an entity from a serializable object
945
+ * @public
946
+ * @static
947
+ * @param _ - The serializable object to create the entity from
948
+ * @returns The created entity
949
+ * @throws Will throw an error if the entity is not serializable
950
+ */
951
+ from(_: SubTypeLike): SubType;
952
+ /**
953
+ * Generate a base class of CCC to create a serializable instance.
954
+ * This should be used with the {@link codec} decorator.
955
+ * @public
956
+ */
957
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
958
+ /**
959
+ * Convert the entity to bytes
960
+ * @public
961
+ * @returns The bytes representation of the entity
962
+ */
963
+ toBytes(): Bytes$1;
964
+ /**
965
+ * Create a clone of the entity
966
+ * @public
967
+ * @returns A clone of the entity
968
+ */
969
+ clone(): SubType_1;
970
+ /**
971
+ * Check if the entity is equal to another entity
972
+ * @public
973
+ * @param other - The other entity to compare with
974
+ * @returns True if the entities are equal, false otherwise
975
+ */
976
+ eq(other: SubTypeLike_1): boolean;
977
+ /**
978
+ * Calculate the hash of the entity
979
+ * @public
980
+ * @returns The hash of the entity
981
+ */
982
+ hash(): Hex;
983
+ /**
984
+ * Convert the entity to a full-byte untrimmed Hex representation
985
+ * @public
986
+ * @returns The entity full-byte untrimmed hexadecimal representation
987
+ */
988
+ toHex(): Hex;
989
+ }) & {
990
+ /**
991
+ * The bytes length of the entity, if it is fixed, otherwise undefined
992
+ * @public
993
+ * @static
994
+ */
995
+ byteLength?: number;
996
+ /**
997
+ * Encode the entity into bytes
998
+ * @public
999
+ * @static
1000
+ * @param _ - The entity to encode
1001
+ * @returns The encoded bytes
1002
+ * @throws Will throw an error if the entity is not serializable
1003
+ */
1004
+ encode(_: SubTypeLike_1): Bytes$1;
1005
+ /**
1006
+ * Decode the entity from bytes
1007
+ * @public
1008
+ * @static
1009
+ * @param _ - The bytes to decode
1010
+ * @returns The decoded entity
1011
+ * @throws Will throw an error if the entity is not serializable
1012
+ */
1013
+ decode(_: BytesLike): SubType_1;
1014
+ /**
1015
+ * Create an entity from bytes
1016
+ * @public
1017
+ * @static
1018
+ * @param _ - The bytes to create the entity from
1019
+ * @returns The created entity
1020
+ * @throws Will throw an error if the entity is not serializable
1021
+ */
1022
+ fromBytes(_bytes: BytesLike): SubType_1;
1023
+ /**
1024
+ * Create an entity from a serializable object
1025
+ * @public
1026
+ * @static
1027
+ * @param _ - The serializable object to create the entity from
1028
+ * @returns The created entity
1029
+ * @throws Will throw an error if the entity is not serializable
1030
+ */
1031
+ from(_: SubTypeLike_1): SubType_1;
1032
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
1033
+ /**
1034
+ * Generate a base class of CCC to create a serializable Union instance.
1035
+ * This should be used with the {@link codec} decorator.
1036
+ * @public
1037
+ */
1038
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
1039
+ };
1040
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
1041
+ };
634
1042
  }
635
1043
  /**
636
1044
  * A class decorator to add methods implementation on the {@link Entity.Base} class
@@ -1027,100 +1435,6 @@ declare function keystoreDecrypt(keystore: unknown, password: string): Promise<{
1027
1435
  chainCode: Bytes$1;
1028
1436
  }>;
1029
1437
  //#endregion
1030
- //#region src/molecule/codec.d.ts
1031
- /**
1032
- * Vector with fixed size item codec
1033
- * @param itemCodec fixed-size vector item codec
1034
- */
1035
- declare function fixedItemVec<Encodable, Decoded>(itemCodec: CodecLike<Encodable, Decoded>): Codec<Array<Encodable>, Array<Decoded>>;
1036
- /**
1037
- * Vector with dynamic size item codec, you can create a recursive vector with this function
1038
- * @param itemCodec the vector item codec. It can be fixed-size or dynamic-size.
1039
- */
1040
- declare function dynItemVec<Encodable, Decoded>(itemCodec: CodecLike<Encodable, Decoded>): Codec<Array<Encodable>, Array<Decoded>>;
1041
- /**
1042
- * General vector codec, if `itemCodec` is fixed size type, it will create a fixvec codec, otherwise a dynvec codec will be created.
1043
- * @param itemCodec
1044
- */
1045
- declare function vector<Encodable, Decoded>(itemCodec: CodecLike<Encodable, Decoded>): Codec<Array<Encodable>, Array<Decoded>>;
1046
- /**
1047
- * Option is a dynamic-size type.
1048
- * Serializing an option depends on whether it is empty or not:
1049
- * - if it's empty, there is zero bytes (the size is 0).
1050
- * - if it's not empty, just serialize the inner item (the size is same as the inner item's size).
1051
- * @param innerCodec
1052
- */
1053
- declare function option<Encodable, Decoded>(innerCodec: CodecLike<Encodable, Decoded>): Codec<Encodable | undefined | null, Decoded | undefined>;
1054
- /**
1055
- * Wrap the encoded value with a fixed-length buffer
1056
- * @param codec
1057
- */
1058
- declare function byteVec<Encodable, Decoded>(codec: CodecLike<Encodable, Decoded>): Codec<Encodable, Decoded>;
1059
- type EncodableRecordOptionalKeys<T extends Record<string, CodecLike<any, any>>> = { [K in keyof T]: Extract<EncodableType<T[K]>, undefined> extends never ? never : K }[keyof T];
1060
- 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]> };
1061
- type DecodedRecordOptionalKeys<T extends Record<string, CodecLike<any, any>>> = { [K in keyof T]: Extract<DecodedType<T[K]>, undefined> extends never ? never : K }[keyof T];
1062
- type DecodedRecord<T extends Record<string, CodecLike<any, any>>> = { [key in keyof Pick<T, DecodedRecordOptionalKeys<T>>]+?: DecodedType<T[key]> } & { [key in keyof Omit<T, DecodedRecordOptionalKeys<T>>]: DecodedType<T[key]> };
1063
- /**
1064
- * Table is a dynamic-size type. It can be considered as a dynvec but the length is fixed.
1065
- * @param codecLayout
1066
- */
1067
- declare function table<T extends Record<string, CodecLike<any, any>>, Encodable extends EncodableRecord<T>, Decoded extends DecodedRecord<T>>(codecLayout: T): Codec<Encodable, Decoded>;
1068
- type UnionEncodable<T extends Record<string, CodecLike<any, any>>, K extends keyof T = keyof T> = K extends unknown ? {
1069
- type: K;
1070
- value: EncodableType<T[K]>;
1071
- } : never;
1072
- type UnionDecoded<T extends Record<string, CodecLike<any, any>>, K extends keyof T = keyof T> = K extends unknown ? {
1073
- type: K;
1074
- value: DecodedType<T[K]>;
1075
- } : never;
1076
- /**
1077
- * Constructs a union codec that can serialize and deserialize values tagged with a type identifier.
1078
- *
1079
- * If all variants have the same fixed size, the resulting union codec is fixed-size (header + payload).
1080
- * Otherwise, it falls back to a dynamic-size codec.
1081
- *
1082
- * Serialization format:
1083
- * 1. 4-byte little-endian unsigned integer for the variant index.
1084
- * 2. Encoded bytes of the selected variant.
1085
- *
1086
- * @typeParam T
1087
- * A record mapping variant names to codecs.
1088
- * @param codecLayout
1089
- * An object whose keys are variant names and values are codecs for each variant.
1090
- * @param fields
1091
- * Optional mapping from variant names to custom numeric IDs. If omitted, the index
1092
- * of each variant in `codecLayout` is used as its ID.
1093
- *
1094
- *
1095
- * @example
1096
- * // Dynamic union without custom numeric IDs
1097
- * union({ cafe: Uint8, bee: Uint16 })
1098
- *
1099
- * // Dynamic union with custom numeric IDs
1100
- * union({ cafe: Uint8, bee: Uint16 }, { cafe: 0xcafe, bee: 0xbee })
1101
- *
1102
- * // Fixed-size union without custom numeric IDs
1103
- * const PaddedUint8 = struct({ data : u8, padding : u8 })
1104
- * union({ cafe: PaddedUint8, bee: Uint16 });
1105
- *
1106
- * // Fixed-size union with custom numeric IDs
1107
- * union({ cafe: PaddedUint8, bee: Uint16 }, { cafe: 0xcafe, bee: 0xbee })
1108
- */
1109
- declare function union<T extends Record<string, CodecLike<any, any>>>(codecLayout: T, fields?: Record<keyof T, number | undefined | null>): Codec<UnionEncodable<T>, UnionDecoded<T>>;
1110
- /**
1111
- * Struct is a fixed-size type: all fields in struct are fixed-size and it has a fixed quantity of fields.
1112
- * The size of a struct is the sum of all fields' size.
1113
- * @param codecLayout a object contains all fields' codec
1114
- */
1115
- declare function struct<T extends Record<string, CodecLike<any, any>>, Encodable extends EncodableRecord<T>, Decoded extends DecodedRecord<T>>(codecLayout: T): Codec<Encodable, Decoded>;
1116
- /**
1117
- * The array is a fixed-size type: it has a fixed-size inner type and a fixed length.
1118
- * The size of an array is the size of inner type times the length.
1119
- * @param itemCodec the fixed-size array item codec
1120
- * @param itemCount
1121
- */
1122
- declare function array<Encodable, Decoded>(itemCodec: CodecLike<Encodable, Decoded>, itemCount: number): Codec<Array<Encodable>, Array<Decoded>>;
1123
- //#endregion
1124
1438
  //#region src/molecule/predefined.d.ts
1125
1439
  declare const Uint8Opt: Codec<NumLike | null | undefined, number | undefined>;
1126
1440
  declare const Uint8Vec: Codec<NumLike[], number[]>;
@@ -1155,7 +1469,7 @@ declare const String: Codec<string, string>;
1155
1469
  declare const StringVec: Codec<string[], string[]>;
1156
1470
  declare const StringOpt: Codec<string | null | undefined, string | undefined>;
1157
1471
  declare namespace barrel_d_exports$1 {
1158
- export { CodecBool as Bool, BoolOpt, BoolVec, CodecByte as Byte, CodecByte16 as Byte16, Byte16Opt, Byte16Vec, CodecByte32 as Byte32, Byte32Opt, Byte32Vec, CodecByte4 as Byte4, Byte4Opt, Byte4Vec, CodecByte8 as Byte8, Byte8Opt, Byte8Vec, ByteOpt, ByteVec, Bytes, BytesOpt, BytesVec, Codec, CodecLike, DecodedRecord, DecodedRecordOptionalKeys, DecodedType, EncodableRecord, EncodableRecordOptionalKeys, EncodableType, Entity, String, StringOpt, StringVec, CodecUint128 as Uint128, CodecUint128BE as Uint128BE, CodecUint128LE as Uint128LE, Uint128Opt, Uint128Vec, CodecUint16 as Uint16, CodecUint16BE as Uint16BE, CodecUint16LE as Uint16LE, Uint16Opt, Uint16Vec, CodecUint256 as Uint256, CodecUint256BE as Uint256BE, CodecUint256LE as Uint256LE, Uint256Opt, Uint256Vec, CodecUint32 as Uint32, CodecUint32BE as Uint32BE, CodecUint32LE as Uint32LE, Uint32Opt, Uint32Vec, CodecUint512 as Uint512, CodecUint512BE as Uint512BE, CodecUint512LE as Uint512LE, Uint512Opt, Uint512Vec, CodecUint64 as Uint64, CodecUint64BE as Uint64BE, CodecUint64LE as Uint64LE, Uint64Opt, Uint64Vec, CodecUint8 as Uint8, Uint8Opt, Uint8Vec, array, byteVec, codec, dynItemVec, fixedItemVec, option, struct, table, codecUint as uint, codecUintNumber as uintNumber, union, vector };
1472
+ export { CodecBool as Bool, BoolOpt, BoolVec, CodecByte as Byte, CodecByte16 as Byte16, Byte16Opt, Byte16Vec, CodecByte32 as Byte32, Byte32Opt, Byte32Vec, CodecByte4 as Byte4, Byte4Opt, Byte4Vec, CodecByte8 as Byte8, Byte8Opt, Byte8Vec, ByteOpt, ByteVec, Bytes, BytesOpt, BytesVec, Codec, CodecLike, DecodedRecord, DecodedRecordOptionalKeys, DecodedType, EncodableRecord, EncodableRecordOptionalKeys, EncodableType, Entity, String, StringOpt, StringVec, CodecUint128 as Uint128, CodecUint128BE as Uint128BE, CodecUint128LE as Uint128LE, Uint128Opt, Uint128Vec, CodecUint16 as Uint16, CodecUint16BE as Uint16BE, CodecUint16LE as Uint16LE, Uint16Opt, Uint16Vec, CodecUint256 as Uint256, CodecUint256BE as Uint256BE, CodecUint256LE as Uint256LE, Uint256Opt, Uint256Vec, CodecUint32 as Uint32, CodecUint32BE as Uint32BE, CodecUint32LE as Uint32LE, Uint32Opt, Uint32Vec, CodecUint512 as Uint512, CodecUint512BE as Uint512BE, CodecUint512LE as Uint512LE, Uint512Opt, Uint512Vec, CodecUint64 as Uint64, CodecUint64BE as Uint64BE, CodecUint64LE as Uint64LE, Uint64Opt, Uint64Vec, CodecUint8 as Uint8, Uint8Opt, Uint8Vec, UnionDecoded, UnionEncodable, UnionMatchHandlers, array, byteVec, codec, dynItemVec, fixedItemVec, option, struct, table, codecUint as uint, codecUintNumber as uintNumber, union, vector };
1159
1473
  }
1160
1474
  //#endregion
1161
1475
  //#region src/signer/btc/psbt.d.ts
@@ -1900,7 +2214,65 @@ declare const MultisigCkbWitness_base: (abstract new () => {
1900
2214
  decode(_: BytesLike): SubType;
1901
2215
  fromBytes(_bytes: BytesLike): SubType;
1902
2216
  from(_: SubTypeLike): SubType;
1903
- Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/any;
2217
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
2218
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
2219
+ readonly inner: DecodedType<CodecType>;
2220
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
2221
+ _?: undefined | null;
2222
+ }): Result;
2223
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
2224
+ _: (inner: DecodedType<CodecType>) => Result;
2225
+ }): Result;
2226
+ toBytes(): Bytes$1;
2227
+ clone(): SubType_1;
2228
+ eq(other: SubTypeLike_1): boolean;
2229
+ hash(): Hex;
2230
+ toHex(): Hex;
2231
+ }) & {
2232
+ byteLength?: number;
2233
+ encode(_: SubTypeLike_1): Bytes$1;
2234
+ decode(_: BytesLike): SubType_1;
2235
+ fromBytes(_bytes: BytesLike): SubType_1;
2236
+ from(_: SubTypeLike_1): SubType_1;
2237
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
2238
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
2239
+ };
2240
+ };
2241
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): (abstract new (inner: DecodedType<CodecType>) => {
2242
+ readonly inner: DecodedType<CodecType>;
2243
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
2244
+ _?: undefined | null;
2245
+ }): Result;
2246
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
2247
+ _: (inner: DecodedType<CodecType>) => Result;
2248
+ }): Result;
2249
+ toBytes(): Bytes$1;
2250
+ clone(): SubType;
2251
+ eq(other: SubTypeLike): boolean;
2252
+ hash(): Hex;
2253
+ toHex(): Hex;
2254
+ }) & {
2255
+ byteLength?: number;
2256
+ encode(_: SubTypeLike): Bytes$1;
2257
+ decode(_: BytesLike): SubType;
2258
+ fromBytes(_bytes: BytesLike): SubType;
2259
+ from(_: SubTypeLike): SubType;
2260
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
2261
+ toBytes(): Bytes$1;
2262
+ clone(): SubType_1;
2263
+ eq(other: SubTypeLike_1): boolean;
2264
+ hash(): Hex;
2265
+ toHex(): Hex;
2266
+ }) & {
2267
+ byteLength?: number;
2268
+ encode(_: SubTypeLike_1): Bytes$1;
2269
+ decode(_: BytesLike): SubType_1;
2270
+ fromBytes(_bytes: BytesLike): SubType_1;
2271
+ from(_: SubTypeLike_1): SubType_1;
2272
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
2273
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
2274
+ };
2275
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
1904
2276
  };
1905
2277
  };
1906
2278
  /**
@@ -2933,7 +3305,65 @@ declare const Epoch_base: (abstract new () => {
2933
3305
  decode(_: BytesLike): SubType;
2934
3306
  fromBytes(_bytes: BytesLike): SubType;
2935
3307
  from(_: SubTypeLike): SubType;
2936
- Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/any;
3308
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
3309
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
3310
+ readonly inner: DecodedType<CodecType>;
3311
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
3312
+ _?: undefined | null;
3313
+ }): Result;
3314
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
3315
+ _: (inner: DecodedType<CodecType>) => Result;
3316
+ }): Result;
3317
+ toBytes(): Bytes$1;
3318
+ clone(): SubType_1;
3319
+ eq(other: SubTypeLike_1): boolean;
3320
+ hash(): Hex;
3321
+ toHex(): Hex;
3322
+ }) & {
3323
+ byteLength?: number;
3324
+ encode(_: SubTypeLike_1): Bytes$1;
3325
+ decode(_: BytesLike): SubType_1;
3326
+ fromBytes(_bytes: BytesLike): SubType_1;
3327
+ from(_: SubTypeLike_1): SubType_1;
3328
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
3329
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
3330
+ };
3331
+ };
3332
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): (abstract new (inner: DecodedType<CodecType>) => {
3333
+ readonly inner: DecodedType<CodecType>;
3334
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
3335
+ _?: undefined | null;
3336
+ }): Result;
3337
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
3338
+ _: (inner: DecodedType<CodecType>) => Result;
3339
+ }): Result;
3340
+ toBytes(): Bytes$1;
3341
+ clone(): SubType;
3342
+ eq(other: SubTypeLike): boolean;
3343
+ hash(): Hex;
3344
+ toHex(): Hex;
3345
+ }) & {
3346
+ byteLength?: number;
3347
+ encode(_: SubTypeLike): Bytes$1;
3348
+ decode(_: BytesLike): SubType;
3349
+ fromBytes(_bytes: BytesLike): SubType;
3350
+ from(_: SubTypeLike): SubType;
3351
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
3352
+ toBytes(): Bytes$1;
3353
+ clone(): SubType_1;
3354
+ eq(other: SubTypeLike_1): boolean;
3355
+ hash(): Hex;
3356
+ toHex(): Hex;
3357
+ }) & {
3358
+ byteLength?: number;
3359
+ encode(_: SubTypeLike_1): Bytes$1;
3360
+ decode(_: BytesLike): SubType_1;
3361
+ fromBytes(_bytes: BytesLike): SubType_1;
3362
+ from(_: SubTypeLike_1): SubType_1;
3363
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
3364
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
3365
+ };
3366
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
2937
3367
  };
2938
3368
  };
2939
3369
  /**
@@ -2950,7 +3380,7 @@ declare const Epoch_base: (abstract new () => {
2950
3380
  * - Supports arithmetic (add/sub), comparison and conversion utilities.
2951
3381
  *
2952
3382
  * @example
2953
- * const e = new Epoch(1n, 1n, 2n); // 1 + 1/2
3383
+ * const e = Epoch.from([1n, 1n, 2n]); // 1 + 1/2
2954
3384
  *
2955
3385
  * @remarks
2956
3386
  * This class is primarily a thin value-object; operations return new Epoch instances.
@@ -3198,10 +3628,10 @@ declare enum KnownScript {
3198
3628
  NervosDao = "NervosDao",
3199
3629
  Secp256k1Blake160 = "Secp256k1Blake160",
3200
3630
  Secp256k1Multisig = "Secp256k1Multisig",
3201
- Secp256k1MultisigV2Beta = "Secp256k1MultisigV2Beta",
3202
- // Fix rare failing case (https://github.com/nervosnetwork/ckb-system-scripts/pull/98)
3203
- Secp256k1MultisigV2 = "Secp256k1MultisigV2",
3204
- // Enhanced since handling (https://github.com/nervosnetwork/ckb-system-scripts/pull/99)
3631
+ Secp256k1MultisigV2Beta = "Secp256k1MultisigV2Beta" // Fix rare failing case (https://github.com/nervosnetwork/ckb-system-scripts/pull/98)
3632
+ ,
3633
+ Secp256k1MultisigV2 = "Secp256k1MultisigV2" // Enhanced since handling (https://github.com/nervosnetwork/ckb-system-scripts/pull/99)
3634
+ ,
3205
3635
  AnyoneCanPay = "AnyoneCanPay",
3206
3636
  TypeId = "TypeId",
3207
3637
  SUdt = "SUdt",
@@ -3309,7 +3739,65 @@ declare const Script_base: (abstract new () => {
3309
3739
  decode(_: BytesLike): SubType;
3310
3740
  fromBytes(_bytes: BytesLike): SubType;
3311
3741
  from(_: SubTypeLike): SubType;
3312
- Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/any;
3742
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
3743
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
3744
+ readonly inner: DecodedType<CodecType>;
3745
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
3746
+ _?: undefined | null;
3747
+ }): Result;
3748
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
3749
+ _: (inner: DecodedType<CodecType>) => Result;
3750
+ }): Result;
3751
+ toBytes(): Bytes$1;
3752
+ clone(): SubType_1;
3753
+ eq(other: SubTypeLike_1): boolean;
3754
+ hash(): Hex;
3755
+ toHex(): Hex;
3756
+ }) & {
3757
+ byteLength?: number;
3758
+ encode(_: SubTypeLike_1): Bytes$1;
3759
+ decode(_: BytesLike): SubType_1;
3760
+ fromBytes(_bytes: BytesLike): SubType_1;
3761
+ from(_: SubTypeLike_1): SubType_1;
3762
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
3763
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
3764
+ };
3765
+ };
3766
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): (abstract new (inner: DecodedType<CodecType>) => {
3767
+ readonly inner: DecodedType<CodecType>;
3768
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
3769
+ _?: undefined | null;
3770
+ }): Result;
3771
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
3772
+ _: (inner: DecodedType<CodecType>) => Result;
3773
+ }): Result;
3774
+ toBytes(): Bytes$1;
3775
+ clone(): SubType;
3776
+ eq(other: SubTypeLike): boolean;
3777
+ hash(): Hex;
3778
+ toHex(): Hex;
3779
+ }) & {
3780
+ byteLength?: number;
3781
+ encode(_: SubTypeLike): Bytes$1;
3782
+ decode(_: BytesLike): SubType;
3783
+ fromBytes(_bytes: BytesLike): SubType;
3784
+ from(_: SubTypeLike): SubType;
3785
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
3786
+ toBytes(): Bytes$1;
3787
+ clone(): SubType_1;
3788
+ eq(other: SubTypeLike_1): boolean;
3789
+ hash(): Hex;
3790
+ toHex(): Hex;
3791
+ }) & {
3792
+ byteLength?: number;
3793
+ encode(_: SubTypeLike_1): Bytes$1;
3794
+ decode(_: BytesLike): SubType_1;
3795
+ fromBytes(_bytes: BytesLike): SubType_1;
3796
+ from(_: SubTypeLike_1): SubType_1;
3797
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
3798
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
3799
+ };
3800
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
3313
3801
  };
3314
3802
  };
3315
3803
  /**
@@ -3503,7 +3991,65 @@ declare const OutPoint_base: (abstract new () => {
3503
3991
  decode(_: BytesLike): SubType;
3504
3992
  fromBytes(_bytes: BytesLike): SubType;
3505
3993
  from(_: SubTypeLike): SubType;
3506
- Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/any;
3994
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
3995
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
3996
+ readonly inner: DecodedType<CodecType>;
3997
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
3998
+ _?: undefined | null;
3999
+ }): Result;
4000
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4001
+ _: (inner: DecodedType<CodecType>) => Result;
4002
+ }): Result;
4003
+ toBytes(): Bytes$1;
4004
+ clone(): SubType_1;
4005
+ eq(other: SubTypeLike_1): boolean;
4006
+ hash(): Hex;
4007
+ toHex(): Hex;
4008
+ }) & {
4009
+ byteLength?: number;
4010
+ encode(_: SubTypeLike_1): Bytes$1;
4011
+ decode(_: BytesLike): SubType_1;
4012
+ fromBytes(_bytes: BytesLike): SubType_1;
4013
+ from(_: SubTypeLike_1): SubType_1;
4014
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4015
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
4016
+ };
4017
+ };
4018
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): (abstract new (inner: DecodedType<CodecType>) => {
4019
+ readonly inner: DecodedType<CodecType>;
4020
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
4021
+ _?: undefined | null;
4022
+ }): Result;
4023
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4024
+ _: (inner: DecodedType<CodecType>) => Result;
4025
+ }): Result;
4026
+ toBytes(): Bytes$1;
4027
+ clone(): SubType;
4028
+ eq(other: SubTypeLike): boolean;
4029
+ hash(): Hex;
4030
+ toHex(): Hex;
4031
+ }) & {
4032
+ byteLength?: number;
4033
+ encode(_: SubTypeLike): Bytes$1;
4034
+ decode(_: BytesLike): SubType;
4035
+ fromBytes(_bytes: BytesLike): SubType;
4036
+ from(_: SubTypeLike): SubType;
4037
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
4038
+ toBytes(): Bytes$1;
4039
+ clone(): SubType_1;
4040
+ eq(other: SubTypeLike_1): boolean;
4041
+ hash(): Hex;
4042
+ toHex(): Hex;
4043
+ }) & {
4044
+ byteLength?: number;
4045
+ encode(_: SubTypeLike_1): Bytes$1;
4046
+ decode(_: BytesLike): SubType_1;
4047
+ fromBytes(_bytes: BytesLike): SubType_1;
4048
+ from(_: SubTypeLike_1): SubType_1;
4049
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
4050
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4051
+ };
4052
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
3507
4053
  };
3508
4054
  };
3509
4055
  /**
@@ -3587,7 +4133,65 @@ declare const CellOutput_base: (abstract new () => {
3587
4133
  decode(_: BytesLike): SubType;
3588
4134
  fromBytes(_bytes: BytesLike): SubType;
3589
4135
  from(_: SubTypeLike): SubType;
3590
- Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/any;
4136
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4137
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
4138
+ readonly inner: DecodedType<CodecType>;
4139
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
4140
+ _?: undefined | null;
4141
+ }): Result;
4142
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4143
+ _: (inner: DecodedType<CodecType>) => Result;
4144
+ }): Result;
4145
+ toBytes(): Bytes$1;
4146
+ clone(): SubType_1;
4147
+ eq(other: SubTypeLike_1): boolean;
4148
+ hash(): Hex;
4149
+ toHex(): Hex;
4150
+ }) & {
4151
+ byteLength?: number;
4152
+ encode(_: SubTypeLike_1): Bytes$1;
4153
+ decode(_: BytesLike): SubType_1;
4154
+ fromBytes(_bytes: BytesLike): SubType_1;
4155
+ from(_: SubTypeLike_1): SubType_1;
4156
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4157
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
4158
+ };
4159
+ };
4160
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): (abstract new (inner: DecodedType<CodecType>) => {
4161
+ readonly inner: DecodedType<CodecType>;
4162
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
4163
+ _?: undefined | null;
4164
+ }): Result;
4165
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4166
+ _: (inner: DecodedType<CodecType>) => Result;
4167
+ }): Result;
4168
+ toBytes(): Bytes$1;
4169
+ clone(): SubType;
4170
+ eq(other: SubTypeLike): boolean;
4171
+ hash(): Hex;
4172
+ toHex(): Hex;
4173
+ }) & {
4174
+ byteLength?: number;
4175
+ encode(_: SubTypeLike): Bytes$1;
4176
+ decode(_: BytesLike): SubType;
4177
+ fromBytes(_bytes: BytesLike): SubType;
4178
+ from(_: SubTypeLike): SubType;
4179
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
4180
+ toBytes(): Bytes$1;
4181
+ clone(): SubType_1;
4182
+ eq(other: SubTypeLike_1): boolean;
4183
+ hash(): Hex;
4184
+ toHex(): Hex;
4185
+ }) & {
4186
+ byteLength?: number;
4187
+ encode(_: SubTypeLike_1): Bytes$1;
4188
+ decode(_: BytesLike): SubType_1;
4189
+ fromBytes(_bytes: BytesLike): SubType_1;
4190
+ from(_: SubTypeLike_1): SubType_1;
4191
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
4192
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4193
+ };
4194
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
3591
4195
  };
3592
4196
  };
3593
4197
  /**
@@ -3885,7 +4489,65 @@ declare const Since_base: (abstract new () => {
3885
4489
  decode(_: BytesLike): SubType;
3886
4490
  fromBytes(_bytes: BytesLike): SubType;
3887
4491
  from(_: SubTypeLike): SubType;
3888
- Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/any;
4492
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4493
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
4494
+ readonly inner: DecodedType<CodecType>;
4495
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
4496
+ _?: undefined | null;
4497
+ }): Result;
4498
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4499
+ _: (inner: DecodedType<CodecType>) => Result;
4500
+ }): Result;
4501
+ toBytes(): Bytes$1;
4502
+ clone(): SubType_1;
4503
+ eq(other: SubTypeLike_1): boolean;
4504
+ hash(): Hex;
4505
+ toHex(): Hex;
4506
+ }) & {
4507
+ byteLength?: number;
4508
+ encode(_: SubTypeLike_1): Bytes$1;
4509
+ decode(_: BytesLike): SubType_1;
4510
+ fromBytes(_bytes: BytesLike): SubType_1;
4511
+ from(_: SubTypeLike_1): SubType_1;
4512
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4513
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
4514
+ };
4515
+ };
4516
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): (abstract new (inner: DecodedType<CodecType>) => {
4517
+ readonly inner: DecodedType<CodecType>;
4518
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
4519
+ _?: undefined | null;
4520
+ }): Result;
4521
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4522
+ _: (inner: DecodedType<CodecType>) => Result;
4523
+ }): Result;
4524
+ toBytes(): Bytes$1;
4525
+ clone(): SubType;
4526
+ eq(other: SubTypeLike): boolean;
4527
+ hash(): Hex;
4528
+ toHex(): Hex;
4529
+ }) & {
4530
+ byteLength?: number;
4531
+ encode(_: SubTypeLike): Bytes$1;
4532
+ decode(_: BytesLike): SubType;
4533
+ fromBytes(_bytes: BytesLike): SubType;
4534
+ from(_: SubTypeLike): SubType;
4535
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
4536
+ toBytes(): Bytes$1;
4537
+ clone(): SubType_1;
4538
+ eq(other: SubTypeLike_1): boolean;
4539
+ hash(): Hex;
4540
+ toHex(): Hex;
4541
+ }) & {
4542
+ byteLength?: number;
4543
+ encode(_: SubTypeLike_1): Bytes$1;
4544
+ decode(_: BytesLike): SubType_1;
4545
+ fromBytes(_bytes: BytesLike): SubType_1;
4546
+ from(_: SubTypeLike_1): SubType_1;
4547
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
4548
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4549
+ };
4550
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
3889
4551
  };
3890
4552
  };
3891
4553
  /**
@@ -3986,7 +4648,65 @@ declare const CellInput_base: (abstract new () => {
3986
4648
  decode(_: BytesLike): SubType;
3987
4649
  fromBytes(_bytes: BytesLike): SubType;
3988
4650
  from(_: SubTypeLike): SubType;
3989
- Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/any;
4651
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4652
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
4653
+ readonly inner: DecodedType<CodecType>;
4654
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
4655
+ _?: undefined | null;
4656
+ }): Result;
4657
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4658
+ _: (inner: DecodedType<CodecType>) => Result;
4659
+ }): Result;
4660
+ toBytes(): Bytes$1;
4661
+ clone(): SubType_1;
4662
+ eq(other: SubTypeLike_1): boolean;
4663
+ hash(): Hex;
4664
+ toHex(): Hex;
4665
+ }) & {
4666
+ byteLength?: number;
4667
+ encode(_: SubTypeLike_1): Bytes$1;
4668
+ decode(_: BytesLike): SubType_1;
4669
+ fromBytes(_bytes: BytesLike): SubType_1;
4670
+ from(_: SubTypeLike_1): SubType_1;
4671
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4672
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
4673
+ };
4674
+ };
4675
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): (abstract new (inner: DecodedType<CodecType>) => {
4676
+ readonly inner: DecodedType<CodecType>;
4677
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
4678
+ _?: undefined | null;
4679
+ }): Result;
4680
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4681
+ _: (inner: DecodedType<CodecType>) => Result;
4682
+ }): Result;
4683
+ toBytes(): Bytes$1;
4684
+ clone(): SubType;
4685
+ eq(other: SubTypeLike): boolean;
4686
+ hash(): Hex;
4687
+ toHex(): Hex;
4688
+ }) & {
4689
+ byteLength?: number;
4690
+ encode(_: SubTypeLike): Bytes$1;
4691
+ decode(_: BytesLike): SubType;
4692
+ fromBytes(_bytes: BytesLike): SubType;
4693
+ from(_: SubTypeLike): SubType;
4694
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
4695
+ toBytes(): Bytes$1;
4696
+ clone(): SubType_1;
4697
+ eq(other: SubTypeLike_1): boolean;
4698
+ hash(): Hex;
4699
+ toHex(): Hex;
4700
+ }) & {
4701
+ byteLength?: number;
4702
+ encode(_: SubTypeLike_1): Bytes$1;
4703
+ decode(_: BytesLike): SubType_1;
4704
+ fromBytes(_bytes: BytesLike): SubType_1;
4705
+ from(_: SubTypeLike_1): SubType_1;
4706
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
4707
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4708
+ };
4709
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
3990
4710
  };
3991
4711
  };
3992
4712
  /**
@@ -4085,7 +4805,65 @@ declare const CellDep_base: (abstract new () => {
4085
4805
  decode(_: BytesLike): SubType;
4086
4806
  fromBytes(_bytes: BytesLike): SubType;
4087
4807
  from(_: SubTypeLike): SubType;
4088
- Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/any;
4808
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4809
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
4810
+ readonly inner: DecodedType<CodecType>;
4811
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
4812
+ _?: undefined | null;
4813
+ }): Result;
4814
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4815
+ _: (inner: DecodedType<CodecType>) => Result;
4816
+ }): Result;
4817
+ toBytes(): Bytes$1;
4818
+ clone(): SubType_1;
4819
+ eq(other: SubTypeLike_1): boolean;
4820
+ hash(): Hex;
4821
+ toHex(): Hex;
4822
+ }) & {
4823
+ byteLength?: number;
4824
+ encode(_: SubTypeLike_1): Bytes$1;
4825
+ decode(_: BytesLike): SubType_1;
4826
+ fromBytes(_bytes: BytesLike): SubType_1;
4827
+ from(_: SubTypeLike_1): SubType_1;
4828
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4829
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
4830
+ };
4831
+ };
4832
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): (abstract new (inner: DecodedType<CodecType>) => {
4833
+ readonly inner: DecodedType<CodecType>;
4834
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
4835
+ _?: undefined | null;
4836
+ }): Result;
4837
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4838
+ _: (inner: DecodedType<CodecType>) => Result;
4839
+ }): Result;
4840
+ toBytes(): Bytes$1;
4841
+ clone(): SubType;
4842
+ eq(other: SubTypeLike): boolean;
4843
+ hash(): Hex;
4844
+ toHex(): Hex;
4845
+ }) & {
4846
+ byteLength?: number;
4847
+ encode(_: SubTypeLike): Bytes$1;
4848
+ decode(_: BytesLike): SubType;
4849
+ fromBytes(_bytes: BytesLike): SubType;
4850
+ from(_: SubTypeLike): SubType;
4851
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
4852
+ toBytes(): Bytes$1;
4853
+ clone(): SubType_1;
4854
+ eq(other: SubTypeLike_1): boolean;
4855
+ hash(): Hex;
4856
+ toHex(): Hex;
4857
+ }) & {
4858
+ byteLength?: number;
4859
+ encode(_: SubTypeLike_1): Bytes$1;
4860
+ decode(_: BytesLike): SubType_1;
4861
+ fromBytes(_bytes: BytesLike): SubType_1;
4862
+ from(_: SubTypeLike_1): SubType_1;
4863
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
4864
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4865
+ };
4866
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4089
4867
  };
4090
4868
  };
4091
4869
  /**
@@ -4161,7 +4939,65 @@ declare const WitnessArgs_base: (abstract new () => {
4161
4939
  decode(_: BytesLike): SubType;
4162
4940
  fromBytes(_bytes: BytesLike): SubType;
4163
4941
  from(_: SubTypeLike): SubType;
4164
- Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/any;
4942
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4943
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
4944
+ readonly inner: DecodedType<CodecType>;
4945
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
4946
+ _?: undefined | null;
4947
+ }): Result;
4948
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4949
+ _: (inner: DecodedType<CodecType>) => Result;
4950
+ }): Result;
4951
+ toBytes(): Bytes$1;
4952
+ clone(): SubType_1;
4953
+ eq(other: SubTypeLike_1): boolean;
4954
+ hash(): Hex;
4955
+ toHex(): Hex;
4956
+ }) & {
4957
+ byteLength?: number;
4958
+ encode(_: SubTypeLike_1): Bytes$1;
4959
+ decode(_: BytesLike): SubType_1;
4960
+ fromBytes(_bytes: BytesLike): SubType_1;
4961
+ from(_: SubTypeLike_1): SubType_1;
4962
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4963
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
4964
+ };
4965
+ };
4966
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): (abstract new (inner: DecodedType<CodecType>) => {
4967
+ readonly inner: DecodedType<CodecType>;
4968
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
4969
+ _?: undefined | null;
4970
+ }): Result;
4971
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4972
+ _: (inner: DecodedType<CodecType>) => Result;
4973
+ }): Result;
4974
+ toBytes(): Bytes$1;
4975
+ clone(): SubType;
4976
+ eq(other: SubTypeLike): boolean;
4977
+ hash(): Hex;
4978
+ toHex(): Hex;
4979
+ }) & {
4980
+ byteLength?: number;
4981
+ encode(_: SubTypeLike): Bytes$1;
4982
+ decode(_: BytesLike): SubType;
4983
+ fromBytes(_bytes: BytesLike): SubType;
4984
+ from(_: SubTypeLike): SubType;
4985
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
4986
+ toBytes(): Bytes$1;
4987
+ clone(): SubType_1;
4988
+ eq(other: SubTypeLike_1): boolean;
4989
+ hash(): Hex;
4990
+ toHex(): Hex;
4991
+ }) & {
4992
+ byteLength?: number;
4993
+ encode(_: SubTypeLike_1): Bytes$1;
4994
+ decode(_: BytesLike): SubType_1;
4995
+ fromBytes(_bytes: BytesLike): SubType_1;
4996
+ from(_: SubTypeLike_1): SubType_1;
4997
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
4998
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4999
+ };
5000
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4165
5001
  };
4166
5002
  };
4167
5003
  /**
@@ -4253,7 +5089,65 @@ declare const Transaction_base: (abstract new () => {
4253
5089
  decode(_: BytesLike): SubType;
4254
5090
  fromBytes(_bytes: BytesLike): SubType;
4255
5091
  from(_: SubTypeLike): SubType;
4256
- Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/any;
5092
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
5093
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
5094
+ readonly inner: DecodedType<CodecType>;
5095
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
5096
+ _?: undefined | null;
5097
+ }): Result;
5098
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
5099
+ _: (inner: DecodedType<CodecType>) => Result;
5100
+ }): Result;
5101
+ toBytes(): Bytes$1;
5102
+ clone(): SubType_1;
5103
+ eq(other: SubTypeLike_1): boolean;
5104
+ hash(): Hex;
5105
+ toHex(): Hex;
5106
+ }) & {
5107
+ byteLength?: number;
5108
+ encode(_: SubTypeLike_1): Bytes$1;
5109
+ decode(_: BytesLike): SubType_1;
5110
+ fromBytes(_bytes: BytesLike): SubType_1;
5111
+ from(_: SubTypeLike_1): SubType_1;
5112
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
5113
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
5114
+ };
5115
+ };
5116
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): (abstract new (inner: DecodedType<CodecType>) => {
5117
+ readonly inner: DecodedType<CodecType>;
5118
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
5119
+ _?: undefined | null;
5120
+ }): Result;
5121
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
5122
+ _: (inner: DecodedType<CodecType>) => Result;
5123
+ }): Result;
5124
+ toBytes(): Bytes$1;
5125
+ clone(): SubType;
5126
+ eq(other: SubTypeLike): boolean;
5127
+ hash(): Hex;
5128
+ toHex(): Hex;
5129
+ }) & {
5130
+ byteLength?: number;
5131
+ encode(_: SubTypeLike): Bytes$1;
5132
+ decode(_: BytesLike): SubType;
5133
+ fromBytes(_bytes: BytesLike): SubType;
5134
+ from(_: SubTypeLike): SubType;
5135
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
5136
+ toBytes(): Bytes$1;
5137
+ clone(): SubType_1;
5138
+ eq(other: SubTypeLike_1): boolean;
5139
+ hash(): Hex;
5140
+ toHex(): Hex;
5141
+ }) & {
5142
+ byteLength?: number;
5143
+ encode(_: SubTypeLike_1): Bytes$1;
5144
+ decode(_: BytesLike): SubType_1;
5145
+ fromBytes(_bytes: BytesLike): SubType_1;
5146
+ from(_: SubTypeLike_1): SubType_1;
5147
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
5148
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
5149
+ };
5150
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4257
5151
  };
4258
5152
  };
4259
5153
  /**
@@ -4533,25 +5427,45 @@ declare class Transaction extends Transaction_base {
4533
5427
  */
4534
5428
  addCellDepsOfKnownScripts(client: Client, ...scripts: (KnownScript | KnownScript[])[]): Promise<void>;
4535
5429
  /**
4536
- * Set output data at index.
5430
+ * Sets output data at an index.
5431
+ *
5432
+ * @deprecated Use {@link setOutputData} instead.
5433
+ */
5434
+ setOutputDataAt(index: number, data: HexLike): void;
5435
+ /**
5436
+ * Sets output data at an index, filling any skipped positions with empty data.
4537
5437
  *
4538
5438
  * @param index - The index of the output data.
4539
5439
  * @param data - The data to set.
5440
+ * @throws If `index` is invalid or does not identify an existing output.
4540
5441
  *
4541
5442
  * @example
4542
5443
  * ```typescript
4543
- * tx.setOutputDataAt(0, "0x00");
5444
+ * tx.setOutputData(0, "0x00");
4544
5445
  * ```
4545
5446
  */
4546
- setOutputDataAt(index: number, data: HexLike): void;
5447
+ setOutputData(index: number, data: HexLike): void;
4547
5448
  /**
4548
- * get input
5449
+ * Gets the data associated with an output.
4549
5450
  *
4550
- * @param index - The cell input index
5451
+ * @param index - The output index.
5452
+ * @returns The output data, or `undefined` if the index is invalid or out of bounds.
4551
5453
  *
4552
5454
  * @example
4553
5455
  * ```typescript
4554
- * await tx.getInput(0);
5456
+ * const data = tx.getOutputData(0);
5457
+ * ```
5458
+ */
5459
+ getOutputData(index: NumLike): Hex | undefined;
5460
+ /**
5461
+ * Gets an input.
5462
+ *
5463
+ * @param index - The cell input index.
5464
+ * @returns The input, or `undefined` if the index is invalid or out of bounds.
5465
+ *
5466
+ * @example
5467
+ * ```typescript
5468
+ * tx.getInput(0);
4555
5469
  * ```
4556
5470
  */
4557
5471
  getInput(index: NumLike): CellInput | undefined;
@@ -4567,13 +5481,14 @@ declare class Transaction extends Transaction_base {
4567
5481
  */
4568
5482
  addInput(inputLike: CellInputLike): number;
4569
5483
  /**
4570
- * get output
5484
+ * Gets an output cell together with its data.
4571
5485
  *
4572
- * @param index - The cell output index
5486
+ * @param index - The cell output index.
5487
+ * @returns The output cell, or `undefined` if the index is invalid or out of bounds.
4573
5488
  *
4574
5489
  * @example
4575
5490
  * ```typescript
4576
- * await tx.getOutput(0);
5491
+ * tx.getOutput(0);
4577
5492
  * ```
4578
5493
  */
4579
5494
  getOutput(index: NumLike): CellAny | undefined;
@@ -4622,52 +5537,143 @@ declare class Transaction extends Transaction_base {
4622
5537
  addOutput(cellLike: CellAnyLike): number;
4623
5538
  addOutput(outputLike: CellOutputLike, outputDataLike?: HexLike | null): number;
4624
5539
  /**
4625
- * Get witness at index as WitnessArgs
5540
+ * Sets or appends an output cell.
5541
+ *
5542
+ * An index equal to the current output count appends the cell. Existing
5543
+ * outputs are replaced together with their corresponding output data.
5544
+ *
5545
+ * @param index - The output index to set, from zero through the current output count.
5546
+ * @param cellLike - A cell-like object containing both the output and its data.
5547
+ * @throws If `index` is not a valid array index or is greater than the output count.
5548
+ *
5549
+ * @example
5550
+ * ```typescript
5551
+ * tx.setOutput(0, {
5552
+ * cellOutput: { lock: recipientLock },
5553
+ * outputData: "0x1234",
5554
+ * });
5555
+ * ```
5556
+ */
5557
+ setOutput(index: number, cellLike: CellAnyLike): void;
5558
+ /**
5559
+ * Sets or appends an output and its data.
5560
+ *
5561
+ * @param index - The output index to set, from zero through the current output count.
5562
+ * @param outputLike - The cell output to set.
5563
+ * @param outputDataLike - The output data, defaulting to `"0x"`.
5564
+ * @throws If `index` is not a valid array index or is greater than the output count.
5565
+ *
5566
+ * @example
5567
+ * ```typescript
5568
+ * tx.setOutput(0, { lock: recipientLock }, "0x1234");
5569
+ * ```
5570
+ */
5571
+ setOutput(index: number, outputLike: CellOutputLike, outputDataLike?: HexLike | null): void;
5572
+ /**
5573
+ * Sets or appends an input.
5574
+ *
5575
+ * An index equal to the current input count appends the input using
5576
+ * {@link addInput}, preserving witness alignment. An existing index replaces
5577
+ * only that input.
5578
+ *
5579
+ * @param index - The input index to set, from zero through the current input count.
5580
+ * @param inputLike - The cell input to set.
5581
+ * @throws If `index` is not a valid array index or is greater than the input count.
5582
+ *
5583
+ * @example
5584
+ * ```typescript
5585
+ * tx.setInput(0, {
5586
+ * previousOutput: { txHash: "0x...", index: 0 },
5587
+ * });
5588
+ * ```
5589
+ */
5590
+ setInput(index: number, inputLike: CellInputLike): void;
5591
+ /**
5592
+ * Gets a raw witness.
5593
+ *
5594
+ * @param index - The witness index.
5595
+ * @returns The witness, or `undefined` if the index is invalid or out of bounds.
5596
+ *
5597
+ * @example
5598
+ * ```typescript
5599
+ * const witness = tx.getWitness(0);
5600
+ * ```
5601
+ */
5602
+ getWitness(index: NumLike): Hex | undefined;
5603
+ /**
5604
+ * Gets the witness at an index as `WitnessArgs`.
4626
5605
  *
4627
5606
  * @param index - The index of the witness.
4628
5607
  * @returns The witness parsed as WitnessArgs.
4629
5608
  *
4630
5609
  * @example
4631
5610
  * ```typescript
4632
- * const witnessArgs = tx.getWitnessArgsAt(0);
5611
+ * const witnessArgs = tx.getWitnessArgs(0);
4633
5612
  * ```
4634
5613
  */
4635
- getWitnessArgsAt(index: number): WitnessArgs | undefined;
5614
+ getWitnessArgs(index: NumLike): WitnessArgs | undefined;
4636
5615
  /**
4637
- * Get witness at index as WitnessArgs, throw if failed to decode
5616
+ * Gets the witness at an index as `WitnessArgs`, throwing if decoding fails.
4638
5617
  *
4639
5618
  * @param index - The index of the witness.
4640
5619
  * @returns The witness parsed as WitnessArgs.
5620
+ * @throws If the witness cannot be decoded as `WitnessArgs`.
4641
5621
  *
4642
5622
  * @example
4643
5623
  * ```typescript
4644
- * const witnessArgs = tx.getWitnessArgsAtUnsafe(0);
5624
+ * const witnessArgs = tx.getWitnessArgsUnsafe(0);
4645
5625
  * ```
4646
5626
  */
4647
- getWitnessArgsAtUnsafe(index: number): WitnessArgs | undefined;
5627
+ getWitnessArgsUnsafe(index: NumLike): WitnessArgs | undefined;
4648
5628
  /**
4649
- * Set witness at index by WitnessArgs
5629
+ * Sets a witness at an index from `WitnessArgs`.
4650
5630
  *
4651
5631
  * @param index - The index of the witness.
4652
- * @param witness - The WitnessArgs to set.
5632
+ * @param witnessLike - The WitnessArgs-like value to set.
5633
+ * @throws If `index` is not a valid array index.
4653
5634
  *
4654
5635
  * @example
4655
5636
  * ```typescript
4656
- * await tx.setWitnessArgsAt(0, witnessArgs);
5637
+ * tx.setWitnessArgs(0, witnessArgs);
4657
5638
  * ```
4658
5639
  */
4659
- setWitnessArgsAt(index: number, witness: WitnessArgs): void;
5640
+ setWitnessArgs(index: number, witnessLike: WitnessArgsLike): void;
4660
5641
  /**
4661
- * Set witness at index
5642
+ * Sets a witness at an index, filling any skipped positions with empty witnesses.
4662
5643
  *
4663
5644
  * @param index - The index of the witness.
4664
5645
  * @param witness - The witness to set.
5646
+ * @throws If `index` is not a valid array index.
4665
5647
  *
4666
5648
  * @example
4667
5649
  * ```typescript
4668
- * await tx.setWitnessAt(0, witness);
5650
+ * tx.setWitness(0, witness);
4669
5651
  * ```
4670
5652
  */
5653
+ setWitness(index: number, witness: HexLike): void;
5654
+ /**
5655
+ * Gets the witness at an index as `WitnessArgs`.
5656
+ *
5657
+ * @deprecated Use {@link getWitnessArgs} instead.
5658
+ */
5659
+ getWitnessArgsAt(index: NumLike): WitnessArgs | undefined;
5660
+ /**
5661
+ * Gets the witness at an index as `WitnessArgs`, throwing if decoding fails.
5662
+ *
5663
+ * @deprecated Use {@link getWitnessArgsUnsafe} instead.
5664
+ */
5665
+ getWitnessArgsAtUnsafe(index: NumLike): WitnessArgs | undefined;
5666
+ /**
5667
+ * Sets a witness at an index from `WitnessArgs`.
5668
+ *
5669
+ * @deprecated Use {@link setWitnessArgs} instead.
5670
+ */
5671
+ setWitnessArgsAt(index: number, witnessLike: WitnessArgsLike): void;
5672
+ /**
5673
+ * Sets a witness at an index.
5674
+ *
5675
+ * @deprecated Use {@link setWitness} instead.
5676
+ */
4671
5677
  setWitnessAt(index: number, witness: HexLike): void;
4672
5678
  /**
4673
5679
  * Prepare dummy witness for sighash all method
@@ -5992,17 +6998,7 @@ declare class JsonRpcTransformers {
5992
6998
  static cellDepTo(cellDep: JsonRpcCellDep): CellDep;
5993
6999
  static transactionFrom(txLike: TransactionLike): JsonRpcTransaction;
5994
7000
  static transactionTo(tx: JsonRpcTransaction): Transaction;
5995
- static transactionResponseTo({
5996
- cycles,
5997
- tx_status: {
5998
- status,
5999
- block_number,
6000
- block_hash,
6001
- tx_index,
6002
- reason
6003
- },
6004
- transaction
6005
- }: {
7001
+ static transactionResponseTo({ cycles, tx_status: { status, block_number, block_hash, tx_index, reason }, transaction }: {
6006
7002
  cycles?: NumLike;
6007
7003
  tx_status: {
6008
7004
  status: TransactionStatus;
@@ -6019,10 +7015,7 @@ declare class JsonRpcTransformers {
6019
7015
  static rangeFrom([a, b]: [NumLike, NumLike]): [Hex, Hex];
6020
7016
  static indexerSearchKeyFilterFrom(filter: ClientIndexerSearchKeyFilter): JsonRpcIndexerSearchKeyFilter;
6021
7017
  static indexerSearchKeyFrom(keyLike: ClientIndexerSearchKeyLike): JsonRpcIndexerSearchKey;
6022
- static findCellsResponseTo({
6023
- last_cursor,
6024
- objects
6025
- }: {
7018
+ static findCellsResponseTo({ last_cursor, objects }: {
6026
7019
  last_cursor: string;
6027
7020
  objects: {
6028
7021
  out_point: JsonRpcOutPoint;
@@ -6031,10 +7024,7 @@ declare class JsonRpcTransformers {
6031
7024
  }[];
6032
7025
  }): ClientFindCellsResponse;
6033
7026
  static indexerSearchKeyTransactionFrom(keyLike: ClientIndexerSearchKeyTransactionLike): JsonRpcIndexerSearchKeyTransaction;
6034
- static findTransactionsResponseTo({
6035
- last_cursor,
6036
- objects
6037
- }: JsonRpcIndexerFindTransactionsResponse | JsonRpcIndexerFindTransactionsGroupedResponse): ClientFindTransactionsResponse | ClientFindTransactionsGroupedResponse;
7027
+ static findTransactionsResponseTo({ last_cursor, objects }: JsonRpcIndexerFindTransactionsResponse | JsonRpcIndexerFindTransactionsGroupedResponse): ClientFindTransactionsResponse | ClientFindTransactionsGroupedResponse;
6038
7028
  }
6039
7029
  //#endregion
6040
7030
  //#region src/hasher/advanced.d.ts
@@ -6044,4 +7034,4 @@ declare namespace advancedBarrel_d_exports {
6044
7034
  }
6045
7035
  //#endregion
6046
7036
  export { CellDep as $, AddressLike as $i, SignerCkbPublicKey as $n, CodecByte16 as $r, ClientFindCellsResponse as $t, DEP_TYPES as A, apply as Ai, verifyMessageNostrEvent as An, RequestorJsonRpc as Ar, HashTypeCodec as At, ClientPublicTestnet as B, numFrom as Bi, SignerDummy as Bn, HASH_CKB_SHORT_LENGTH as Br, Epoch as Bt, DEFAULT_CONFIRMED_BLOCK_TIME as C, CodecUint8 as Ci, ClientCollectableSearchKeyLike as Cn, InputToSign as Cr, depTypeFrom as Ct, filterNumByRange as D, Entity as Di, barrel_d_exports as Dn, barrel_d_exports$1 as Dr, udtBalanceFrom as Dt, filterData as E, codecUintNumber as Ei, clientSearchKeyRangeFrom as En, SignPsbtOptionsLike as Er, isDaoOutputLimitExceeded as Et, NUM_TO_HASH_TYPE as F, stringify as Fi, verifyMessageEvmPersonal as Fn, TransportHttp as Fr, ScriptVec as Ft, ClientCacheMemory as G, numMin as Gi, SignerDoge as Gn, FixedPoint as Gr, CellDepInfo as Gt, ClientJsonRpc as H, numLeFromBytes as Hi, verifyMessageDogeEcdsa as Hn, hashCkb as Hr, epochFrom as Ht, ADDRESS_BECH32_LIMIT as I, Num as Ii, SignerEvmAddressReadonly as In, JsonRpcPayload as Ir, hashTypeFrom as It, ErrorTransactionInsufficientCoin as J, Codec as Ji, MultisigCkbWitness as Jn, Zero as Jr, ClientBlockHeader as Jt, ClientCache as K, numToBytes as Ki, verifyMessageJoyId as Kn, FixedPointLike as Kr, CellDepInfoLike as Kt, AddressFormat as L, NumLike as Li, SignerEvm as Ln, Transport as Lr, hashTypeFromBytes as Lt, NUM_TO_DEP_TYPE as M, isWebview as Mi, SignerNostrPublicKeyReadonly as Mn, TransportFallback as Mr, Script as Mt, HASH_TYPES as N, reduceAsync as Ni, NostrEvent as Nn, transportFromUri as Nr, ScriptLike as Nt, filterScript as O, codec as Oi, buildNostrEventFromMessage as On, keystoreDecrypt as Or, LumosTransactionSkeletonType as Ot, HASH_TYPE_TO_NUM as P, sleep as Pi, SignerNostr as Pn, TransportWebSocket as Pr, ScriptOpt as Pt, CellAnyLike as Q, Address as Qi, SignerCkbPrivateKey as Qn, CodecByte as Qr, ClientBlockUncleLike as Qt, addressFromPayload as R, numBeFromBytes as Ri, SignerOpenLink as Rn, HasherKeecak256 as Rr, hashTypeToBytes as Rt, CellRecord as S, CodecUint64LE as Si, ClientCollectableSearchKeyFilterLike as Sn, Wallet as Sr, calcDaoProfit as St, filterCell as T, codecUint as Ti, DEFAULT_MIN_FEE_RATE as Tn, SignPsbtOptions as Tr, depTypeToBytes as Tt, ClientJsonRpcConfig as U, numLeToBytes as Ui, SignerDogePrivateKey as Un, hashCkbShort as Ur, epochFromHex as Ut, ClientPublicMainnet as V, numFromBytes as Vi, messageHashDogeEcdsa as Vn, HasherCkb as Vr, EpochLike as Vt, Client as W, numMax as Wi, SignerDogeAddressReadonly as Wn, Hasher as Wr, epochToHex as Wt, Cell as X, DecodedType as Xi, SignerMultisigCkbReadonly as Xn, fixedPointToString as Xr, ClientBlockLike as Xt, hashTypeId as Y, CodecLike as Yi, MultisigCkbWitnessLike as Yn, fixedPointFrom as Yr, ClientBlockHeaderLike as Yt, CellAny as Z, EncodableType as Zi, SignerCkbScriptReadonly as Zn, CodecBool as Zr, ClientBlockUncle as Zt, JsonRpcOutPoint as _, CodecUint512 as _i, ErrorClientWaitTransactionTimeout as _n, SignerInfo as _r, Transaction as _t, JsonRpcBlockHeader as a, Bytes$1 as aa, CodecUint128 as ai, ClientIndexerSearchKeyLike as an, verifyMessageSecp256k1 as ar, CellLike as at, TESTNET_SCRIPTS as b, CodecUint64 as bi, ScriptInfoLike as bn, SignerSignType as br, WitnessArgsLike as bt, JsonRpcCellInput as c, bytesConcatTo as ca, CodecUint16 as ci, ClientTransactionResponse as cn, btcPublicKeyFromP2pkhAddress as cr, CellOutputVec as ct, JsonRpcHashType as d, bytesTo as da, CodecUint256 as di, ErrorClientBaseLike as dn, verifyMessageBtcEcdsa as dr, DepTypeLike as dt, Hex as ea, CodecByte32 as ei, ClientFindTransactionsGroupedResponse as en, SECP256K1_SIGNATURE_LENGTH as er, CellDepLike as et, JsonRpcIndexerFindTransactionsGroupedResponse as f, BytesFromEncoding as fa, CodecUint256BE as fi, ErrorClientDuplicatedTransaction as fn, SignerBtcPublicKeyReadonly as fr, OutPoint as ft, JsonRpcIndexerSearchKeyTransaction as g, CodecUint32LE as gi, ErrorClientVerification as gn, Signer as gr, SinceLike as gt, JsonRpcIndexerSearchKeyFilter as h, CodecUint32BE as hi, ErrorClientResolveUnknown as hn, Signature as hr, Since as ht, JsonRpcBlock as i, hexFrom as ia, CodecRaw as ii, ClientIndexerSearchKeyFilterLike as in, verifyMessageCkbSecp256k1 as ir, CellInputVec as it, DEP_TYPE_TO_NUM as j, gcd as ji, SignerNostrPrivateKey as jn, RequestorJsonRpcConfig as jr, HashTypeLike as jt, filterScriptByLenRange as k, Constructor as ki, nostrEventHash as kn, keystoreEncrypt as kr, HashType as kt, JsonRpcCellOutput as l, bytesEq as la, CodecUint16BE as li, ClientTransactionResponseLike as ln, btcVarLengthBytesFrom as lr, DepType as lt, JsonRpcIndexerSearchKey as m, CodecUint32 as mi, ErrorClientRBFRejected as mn, NetworkPreference as mr, RawTransaction as mt, CKB_BLAKE2B_PERSONAL as n, bytesLen as na, CodecByte8 as ni, ClientIndexerSearchKey as nn, recoverMessageSecp256k1 as nr, CellInput as nt, JsonRpcBlockUncle as o, BytesLike as oa, CodecUint128BE as oi, ClientIndexerSearchKeyTransaction as on, btcEcdsaPublicKeyHash as or, CellOutput as ot, JsonRpcIndexerFindTransactionsResponse as p, CodecUint256LE as pi, ErrorClientMaxFeeRateExceeded as pn, SignerBtc as pr, OutPointLike as pt, ErrorTransactionInsufficientCapacity as q, numToHex as qi, SignerMultisigCkbPrivateKey as qn, One as qr, ClientBlock as qt, JsonRpcTransformers as r, bytesLenUnsafe as ra, CodecBytes as ri, ClientIndexerSearchKeyFilter as rn, signMessageSecp256k1 as rr, CellInputLike as rt, JsonRpcCellDep as s, bytesConcat as sa, CodecUint128LE as si, ClientIndexerSearchKeyTransactionLike as sn, btcP2pkhAddressFromPublicKey as sr, CellOutputLike as st, advancedBarrel_d_exports as t, HexLike as ta, CodecByte4 as ti, ClientFindTransactionsResponse as tn, messageHashCkbSecp256k1 as tr, CellDepVec as tt, JsonRpcDepType as u, bytesFrom as ua, CodecUint16LE as ui, ErrorClientBase as un, messageHashBtcEcdsa as ur, DepTypeCodec as ut, JsonRpcScript as v, CodecUint512BE as vi, OutputsValidator as vn, SignerMultisig as vr, TransactionLike as vt, MapLru as w, codecPadding as wi, DEFAULT_MAX_FEE_RATE as wn, InputToSignLike as wr, depTypeFromBytes as wt, MAINNET_SCRIPTS as x, CodecUint64BE as xi, TransactionStatus as xn, SignerType as xr, calcDaoClaimEpoch as xt, JsonRpcTransaction as y, CodecUint512LE as yi, ScriptInfo as yn, SignerMultisigNotEnoughSignaturesError as yr, WitnessArgs as yt, addressPayloadFromString as z, numBeToBytes as zi, SignerAlwaysError as zn, HASH_CKB_LENGTH as zr, KnownScript as zt };
6047
- //# sourceMappingURL=advancedBarrel-XD_hMVay.d.ts.map
7037
+ //# sourceMappingURL=advancedBarrel-DrAHz5UG.d.ts.map