@ckb-ccc/core 1.16.1 → 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 (51) hide show
  1. package/CHANGELOG.md +30 -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-66JgvInl.d.mts → advancedBarrel-Bk19lQjR.d.mts} +1150 -160
  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-CiJnF8me.d.ts → advancedBarrel-DrAHz5UG.d.ts} +1150 -160
  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/transaction.ts +256 -44
  33. package/src/client/jsonRpc/client.ts +7 -3
  34. package/src/codec/entity.ts +93 -0
  35. package/src/molecule/codec.ts +25 -5
  36. package/src/signer/btc/signerBtc.ts +1 -1
  37. package/src/signer/ckb/signerCkbPrivateKey.ts +2 -3
  38. package/src/signer/ckb/signerMultisigCkbReadonly.ts +5 -5
  39. package/src/signer/doge/signerDoge.ts +1 -1
  40. package/src/signer/evm/signerEvm.ts +2 -2
  41. package/src/signer/nostr/signerNostr.ts +1 -1
  42. package/dist/address.advanced-C5UrS2uk.mjs +0 -2
  43. package/dist/address.advanced-C5UrS2uk.mjs.map +0 -1
  44. package/dist/advancedBarrel-66JgvInl.d.mts.map +0 -1
  45. package/dist/barrel-yZm3ICzn.mjs +0 -7
  46. package/dist/barrel-yZm3ICzn.mjs.map +0 -1
  47. package/dist.commonjs/address.advanced-CQJ24Iei.js +0 -2
  48. package/dist.commonjs/address.advanced-CQJ24Iei.js.map +0 -1
  49. package/dist.commonjs/advancedBarrel-CiJnF8me.d.ts.map +0 -1
  50. package/dist.commonjs/barrel-CddEgDBp.js +0 -21
  51. package/dist.commonjs/barrel-CddEgDBp.js.map +0 -1
@@ -260,15 +260,8 @@ declare class Codec<Encodable, Decoded = Encodable> {
260
260
  decodeOr<T>(decodable: BytesLike, fallback: T, config?: {
261
261
  isExtraFieldIgnored?: boolean;
262
262
  }): Decoded | T;
263
- static from<Encodable, Decoded = Encodable>({
264
- encode,
265
- decode,
266
- byteLength
267
- }: CodecLike<Encodable, Decoded>): Codec<Encodable, Decoded>;
268
- map<NewEncodable = Encodable, NewDecoded = Decoded>({
269
- inMap,
270
- outMap
271
- }: {
263
+ static from<Encodable, Decoded = Encodable>({ encode, decode, byteLength }: CodecLike<Encodable, Decoded>): Codec<Encodable, Decoded>;
264
+ map<NewEncodable = Encodable, NewDecoded = Decoded>({ inMap, outMap }: {
272
265
  inMap?: (encodable: NewEncodable) => Encodable;
273
266
  outMap?: (decoded: Decoded) => NewDecoded;
274
267
  }): Codec<NewEncodable, NewDecoded>;
@@ -278,6 +271,105 @@ declare class Codec<Encodable, Decoded = Encodable> {
278
271
  type EncodableType<T extends CodecLike<any, any>> = T extends CodecLike<infer Encodable, unknown> ? Encodable : never;
279
272
  type DecodedType<T extends CodecLike<any, any>> = T extends CodecLike<any, infer Decoded> ? Decoded : never;
280
273
  //#endregion
274
+ //#region src/molecule/codec.d.ts
275
+ /**
276
+ * Vector with fixed size item codec
277
+ * @param itemCodec fixed-size vector item codec
278
+ */
279
+ declare function fixedItemVec<Encodable, Decoded>(itemCodec: CodecLike<Encodable, Decoded>): Codec<Array<Encodable>, Array<Decoded>>;
280
+ /**
281
+ * Vector with dynamic size item codec, you can create a recursive vector with this function
282
+ * @param itemCodec the vector item codec. It can be fixed-size or dynamic-size.
283
+ */
284
+ declare function dynItemVec<Encodable, Decoded>(itemCodec: CodecLike<Encodable, Decoded>): Codec<Array<Encodable>, Array<Decoded>>;
285
+ /**
286
+ * General vector codec, if `itemCodec` is fixed size type, it will create a fixvec codec, otherwise a dynvec codec will be created.
287
+ * @param itemCodec
288
+ */
289
+ declare function vector<Encodable, Decoded>(itemCodec: CodecLike<Encodable, Decoded>): Codec<Array<Encodable>, Array<Decoded>>;
290
+ /**
291
+ * Option is a dynamic-size type.
292
+ * Serializing an option depends on whether it is empty or not:
293
+ * - if it's empty, there is zero bytes (the size is 0).
294
+ * - if it's not empty, just serialize the inner item (the size is same as the inner item's size).
295
+ * @param innerCodec
296
+ */
297
+ declare function option<Encodable, Decoded>(innerCodec: CodecLike<Encodable, Decoded>): Codec<Encodable | undefined | null, Decoded | undefined>;
298
+ /**
299
+ * Wrap the encoded value with a fixed-length buffer
300
+ * @param codec
301
+ */
302
+ declare function byteVec<Encodable, Decoded>(codec: CodecLike<Encodable, Decoded>): Codec<Encodable, Decoded>;
303
+ type EncodableRecordOptionalKeys<T extends Record<string, CodecLike<any, any>>> = { [K in keyof T]: Extract<EncodableType<T[K]>, undefined> extends never ? never : K; }[keyof T];
304
+ type EncodableRecord<T extends Record<string, CodecLike<any, any>>> = { [key in keyof Pick<T, EncodableRecordOptionalKeys<T>>]+?: EncodableType<T[key]>; } & { [key in keyof Omit<T, EncodableRecordOptionalKeys<T>>]: EncodableType<T[key]>; };
305
+ type DecodedRecordOptionalKeys<T extends Record<string, CodecLike<any, any>>> = { [K in keyof T]: Extract<DecodedType<T[K]>, undefined> extends never ? never : K; }[keyof T];
306
+ 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]>; };
307
+ /**
308
+ * Table is a dynamic-size type. It can be considered as a dynvec but the length is fixed.
309
+ * @param codecLayout
310
+ */
311
+ declare function table<T extends Record<string, CodecLike<any, any>>, Encodable extends EncodableRecord<T>, Decoded extends DecodedRecord<T>>(codecLayout: T): Codec<Encodable, Decoded>;
312
+ type UnionEncodable<T extends Record<string, CodecLike<any, any>>, K extends keyof T = keyof T> = K extends unknown ? {
313
+ type: K;
314
+ value: EncodableType<T[K]>;
315
+ } : never;
316
+ type UnionDecoded<T extends Record<string, CodecLike<any, any>>, K extends keyof T = keyof T> = K extends unknown ? {
317
+ type: K;
318
+ value: DecodedType<T[K]>;
319
+ } : never;
320
+ type UnionMatchHandlers<CodecType extends CodecLike<any, UnionDecoded<any, any>>, Result> = { [T in DecodedType<CodecType>["type"]]: (value: Extract<DecodedType<CodecType>, {
321
+ type: T;
322
+ }>["value"]) => Result; };
323
+ /**
324
+ * Constructs a union codec that can serialize and deserialize values tagged with a type identifier.
325
+ *
326
+ * If all variants have the same fixed size, the resulting union codec is fixed-size (header + payload).
327
+ * Otherwise, it falls back to a dynamic-size codec.
328
+ *
329
+ * Serialization format:
330
+ * 1. 4-byte little-endian unsigned integer for the variant index.
331
+ * 2. Encoded bytes of the selected variant.
332
+ *
333
+ * @typeParam T
334
+ * A record mapping variant names to codecs.
335
+ * @param codecLayout
336
+ * An object whose keys are variant names and values are codecs for each variant.
337
+ * @param fields
338
+ * Optional mapping from variant names to custom numeric IDs. If omitted, the index
339
+ * of each variant in `codecLayout` is used as its ID.
340
+ *
341
+ *
342
+ * @example
343
+ * // Dynamic union without custom numeric IDs
344
+ * union({ cafe: Uint8, bee: Uint16 })
345
+ *
346
+ * // Dynamic union with custom numeric IDs
347
+ * union({ cafe: Uint8, bee: Uint16 }, { cafe: 0xcafe, bee: 0xbee })
348
+ *
349
+ * // Fixed-size union without custom numeric IDs
350
+ * const PaddedUint8 = struct({ data : u8, padding : u8 })
351
+ * union({ cafe: PaddedUint8, bee: Uint16 });
352
+ *
353
+ * // Fixed-size union with custom numeric IDs
354
+ * union({ cafe: PaddedUint8, bee: Uint16 }, { cafe: 0xcafe, bee: 0xbee })
355
+ */
356
+ declare function union<T extends Record<string, CodecLike<any, any>>>(codecLayout: T, fields?: Record<keyof T, number | undefined | null>): Codec<UnionEncodable<T> | {
357
+ inner: UnionEncodable<T>;
358
+ }, UnionDecoded<T>>;
359
+ /**
360
+ * Struct is a fixed-size type: all fields in struct are fixed-size and it has a fixed quantity of fields.
361
+ * The size of a struct is the sum of all fields' size.
362
+ * @param codecLayout a object contains all fields' codec
363
+ */
364
+ declare function struct<T extends Record<string, CodecLike<any, any>>, Encodable extends EncodableRecord<T>, Decoded extends DecodedRecord<T>>(codecLayout: T): Codec<Encodable, Decoded>;
365
+ /**
366
+ * The array is a fixed-size type: it has a fixed-size inner type and a fixed length.
367
+ * The size of an array is the size of inner type times the length.
368
+ * @param itemCodec the fixed-size array item codec
369
+ * @param itemCount
370
+ */
371
+ declare function array<Encodable, Decoded>(itemCodec: CodecLike<Encodable, Decoded>, itemCount: number): Codec<Array<Encodable>, Array<Decoded>>;
372
+ //#endregion
281
373
  //#region src/num/index.d.ts
282
374
  /**
283
375
  * Represents a numeric value as a bigint.
@@ -624,12 +716,328 @@ declare abstract class Entity {
624
716
  * @throws Will throw an error if the entity is not serializable
625
717
  */
626
718
  from(_: SubTypeLike): SubType;
627
- Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/any;
719
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
720
+ /**
721
+ * Generate a base class of CCC to create a serializable Union instance.
722
+ * This should be used with the {@link codec} decorator.
723
+ * @public
724
+ */
725
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
726
+ readonly inner: DecodedType<CodecType>;
727
+ /**
728
+ * Match the union type with a set of handlers.
729
+ * @public
730
+ * @param handlers - A map of type-specific handlers, all variants must be handled if no default handler `_` is provided.
731
+ * @returns The result returned by the matching handler.
732
+ */
733
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
734
+ _?: undefined | null;
735
+ }): Result;
736
+ /**
737
+ * Match the union type with a set of handlers.
738
+ * @public
739
+ * @param handlers - A map of type-specific handlers, unmatched variants will be handled by the default handler `_`.
740
+ * @returns The result returned by the matching handler.
741
+ */
742
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
743
+ _: (inner: DecodedType<CodecType>) => Result;
744
+ }): Result;
745
+ /**
746
+ * Convert the entity to bytes
747
+ * @public
748
+ * @returns The bytes representation of the entity
749
+ */
750
+ toBytes(): Bytes$1;
751
+ /**
752
+ * Create a clone of the entity
753
+ * @public
754
+ * @returns A clone of the entity
755
+ */
756
+ clone(): SubType_1;
757
+ /**
758
+ * Check if the entity is equal to another entity
759
+ * @public
760
+ * @param other - The other entity to compare with
761
+ * @returns True if the entities are equal, false otherwise
762
+ */
763
+ eq(other: SubTypeLike_1): boolean;
764
+ /**
765
+ * Calculate the hash of the entity
766
+ * @public
767
+ * @returns The hash of the entity
768
+ */
769
+ hash(): Hex;
770
+ /**
771
+ * Convert the entity to a full-byte untrimmed Hex representation
772
+ * @public
773
+ * @returns The entity full-byte untrimmed hexadecimal representation
774
+ */
775
+ toHex(): Hex;
776
+ }) & {
777
+ /**
778
+ * The bytes length of the entity, if it is fixed, otherwise undefined
779
+ * @public
780
+ * @static
781
+ */
782
+ byteLength?: number;
783
+ /**
784
+ * Encode the entity into bytes
785
+ * @public
786
+ * @static
787
+ * @param _ - The entity to encode
788
+ * @returns The encoded bytes
789
+ * @throws Will throw an error if the entity is not serializable
790
+ */
791
+ encode(_: SubTypeLike_1): Bytes$1;
792
+ /**
793
+ * Decode the entity from bytes
794
+ * @public
795
+ * @static
796
+ * @param _ - The bytes to decode
797
+ * @returns The decoded entity
798
+ * @throws Will throw an error if the entity is not serializable
799
+ */
800
+ decode(_: BytesLike): SubType_1;
801
+ /**
802
+ * Create an entity from bytes
803
+ * @public
804
+ * @static
805
+ * @param _ - The bytes to create the entity from
806
+ * @returns The created entity
807
+ * @throws Will throw an error if the entity is not serializable
808
+ */
809
+ fromBytes(_bytes: BytesLike): SubType_1;
810
+ /**
811
+ * Create an entity from a serializable object
812
+ * @public
813
+ * @static
814
+ * @param _ - The serializable object to create the entity from
815
+ * @returns The created entity
816
+ * @throws Will throw an error if the entity is not serializable
817
+ */
818
+ from(_: SubTypeLike_1): SubType_1;
819
+ /**
820
+ * Generate a base class of CCC to create a serializable instance.
821
+ * This should be used with the {@link codec} decorator.
822
+ * @public
823
+ */
824
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
825
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
826
+ };
628
827
  };
828
+ /**
829
+ * Convert the entity to bytes.
830
+ * @public
831
+ * @returns The bytes representation of the entity.
832
+ */
629
833
  abstract toBytes(): Bytes$1;
834
+ /**
835
+ * Calculate the hash of the entity.
836
+ * @public
837
+ * @returns The hash of the entity.
838
+ */
630
839
  abstract hash(): Hex;
840
+ /**
841
+ * Convert the entity to a full-byte untrimmed Hex representation.
842
+ * @public
843
+ * @returns The entity full-byte untrimmed hexadecimal representation.
844
+ */
631
845
  abstract toHex(): Hex;
846
+ /**
847
+ * Create a clone of the entity.
848
+ * @public
849
+ * @returns A clone of the entity.
850
+ */
632
851
  abstract clone(): Entity;
852
+ /**
853
+ * Generate a base class of CCC to create a serializable Union instance.
854
+ * This should be used with the {@link codec} decorator.
855
+ * @public
856
+ */
857
+ static BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): (abstract new (inner: DecodedType<CodecType>) => {
858
+ readonly inner: DecodedType<CodecType>;
859
+ /**
860
+ * Match the union type with a set of handlers.
861
+ * @public
862
+ * @param handlers - A map of type-specific handlers, all variants must be handled if no default handler `_` is provided.
863
+ * @returns The result returned by the matching handler.
864
+ */
865
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
866
+ _?: undefined | null;
867
+ }): Result;
868
+ /**
869
+ * Match the union type with a set of handlers.
870
+ * @public
871
+ * @param handlers - A map of type-specific handlers, unmatched variants will be handled by the default handler `_`.
872
+ * @returns The result returned by the matching handler.
873
+ */
874
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
875
+ _: (inner: DecodedType<CodecType>) => Result;
876
+ }): Result;
877
+ /**
878
+ * Convert the entity to bytes
879
+ * @public
880
+ * @returns The bytes representation of the entity
881
+ */
882
+ toBytes(): Bytes$1;
883
+ /**
884
+ * Create a clone of the entity
885
+ * @public
886
+ * @returns A clone of the entity
887
+ */
888
+ clone(): SubType;
889
+ /**
890
+ * Check if the entity is equal to another entity
891
+ * @public
892
+ * @param other - The other entity to compare with
893
+ * @returns True if the entities are equal, false otherwise
894
+ */
895
+ eq(other: SubTypeLike): boolean;
896
+ /**
897
+ * Calculate the hash of the entity
898
+ * @public
899
+ * @returns The hash of the entity
900
+ */
901
+ hash(): Hex;
902
+ /**
903
+ * Convert the entity to a full-byte untrimmed Hex representation
904
+ * @public
905
+ * @returns The entity full-byte untrimmed hexadecimal representation
906
+ */
907
+ toHex(): Hex;
908
+ }) & {
909
+ /**
910
+ * The bytes length of the entity, if it is fixed, otherwise undefined
911
+ * @public
912
+ * @static
913
+ */
914
+ byteLength?: number;
915
+ /**
916
+ * Encode the entity into bytes
917
+ * @public
918
+ * @static
919
+ * @param _ - The entity to encode
920
+ * @returns The encoded bytes
921
+ * @throws Will throw an error if the entity is not serializable
922
+ */
923
+ encode(_: SubTypeLike): Bytes$1;
924
+ /**
925
+ * Decode the entity from bytes
926
+ * @public
927
+ * @static
928
+ * @param _ - The bytes to decode
929
+ * @returns The decoded entity
930
+ * @throws Will throw an error if the entity is not serializable
931
+ */
932
+ decode(_: BytesLike): SubType;
933
+ /**
934
+ * Create an entity from bytes
935
+ * @public
936
+ * @static
937
+ * @param _ - The bytes to create the entity from
938
+ * @returns The created entity
939
+ * @throws Will throw an error if the entity is not serializable
940
+ */
941
+ fromBytes(_bytes: BytesLike): SubType;
942
+ /**
943
+ * Create an entity from a serializable object
944
+ * @public
945
+ * @static
946
+ * @param _ - The serializable object to create the entity from
947
+ * @returns The created entity
948
+ * @throws Will throw an error if the entity is not serializable
949
+ */
950
+ from(_: SubTypeLike): SubType;
951
+ /**
952
+ * Generate a base class of CCC to create a serializable instance.
953
+ * This should be used with the {@link codec} decorator.
954
+ * @public
955
+ */
956
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
957
+ /**
958
+ * Convert the entity to bytes
959
+ * @public
960
+ * @returns The bytes representation of the entity
961
+ */
962
+ toBytes(): Bytes$1;
963
+ /**
964
+ * Create a clone of the entity
965
+ * @public
966
+ * @returns A clone of the entity
967
+ */
968
+ clone(): SubType_1;
969
+ /**
970
+ * Check if the entity is equal to another entity
971
+ * @public
972
+ * @param other - The other entity to compare with
973
+ * @returns True if the entities are equal, false otherwise
974
+ */
975
+ eq(other: SubTypeLike_1): boolean;
976
+ /**
977
+ * Calculate the hash of the entity
978
+ * @public
979
+ * @returns The hash of the entity
980
+ */
981
+ hash(): Hex;
982
+ /**
983
+ * Convert the entity to a full-byte untrimmed Hex representation
984
+ * @public
985
+ * @returns The entity full-byte untrimmed hexadecimal representation
986
+ */
987
+ toHex(): Hex;
988
+ }) & {
989
+ /**
990
+ * The bytes length of the entity, if it is fixed, otherwise undefined
991
+ * @public
992
+ * @static
993
+ */
994
+ byteLength?: number;
995
+ /**
996
+ * Encode the entity into bytes
997
+ * @public
998
+ * @static
999
+ * @param _ - The entity to encode
1000
+ * @returns The encoded bytes
1001
+ * @throws Will throw an error if the entity is not serializable
1002
+ */
1003
+ encode(_: SubTypeLike_1): Bytes$1;
1004
+ /**
1005
+ * Decode the entity from bytes
1006
+ * @public
1007
+ * @static
1008
+ * @param _ - The bytes to decode
1009
+ * @returns The decoded entity
1010
+ * @throws Will throw an error if the entity is not serializable
1011
+ */
1012
+ decode(_: BytesLike): SubType_1;
1013
+ /**
1014
+ * Create an entity from bytes
1015
+ * @public
1016
+ * @static
1017
+ * @param _ - The bytes to create the entity from
1018
+ * @returns The created entity
1019
+ * @throws Will throw an error if the entity is not serializable
1020
+ */
1021
+ fromBytes(_bytes: BytesLike): SubType_1;
1022
+ /**
1023
+ * Create an entity from a serializable object
1024
+ * @public
1025
+ * @static
1026
+ * @param _ - The serializable object to create the entity from
1027
+ * @returns The created entity
1028
+ * @throws Will throw an error if the entity is not serializable
1029
+ */
1030
+ from(_: SubTypeLike_1): SubType_1;
1031
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
1032
+ /**
1033
+ * Generate a base class of CCC to create a serializable Union instance.
1034
+ * This should be used with the {@link codec} decorator.
1035
+ * @public
1036
+ */
1037
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
1038
+ };
1039
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
1040
+ };
633
1041
  }
634
1042
  /**
635
1043
  * A class decorator to add methods implementation on the {@link Entity.Base} class
@@ -1026,100 +1434,6 @@ declare function keystoreDecrypt(keystore: unknown, password: string): Promise<{
1026
1434
  chainCode: Bytes$1;
1027
1435
  }>;
1028
1436
  //#endregion
1029
- //#region src/molecule/codec.d.ts
1030
- /**
1031
- * Vector with fixed size item codec
1032
- * @param itemCodec fixed-size vector item codec
1033
- */
1034
- declare function fixedItemVec<Encodable, Decoded>(itemCodec: CodecLike<Encodable, Decoded>): Codec<Array<Encodable>, Array<Decoded>>;
1035
- /**
1036
- * Vector with dynamic size item codec, you can create a recursive vector with this function
1037
- * @param itemCodec the vector item codec. It can be fixed-size or dynamic-size.
1038
- */
1039
- declare function dynItemVec<Encodable, Decoded>(itemCodec: CodecLike<Encodable, Decoded>): Codec<Array<Encodable>, Array<Decoded>>;
1040
- /**
1041
- * General vector codec, if `itemCodec` is fixed size type, it will create a fixvec codec, otherwise a dynvec codec will be created.
1042
- * @param itemCodec
1043
- */
1044
- declare function vector<Encodable, Decoded>(itemCodec: CodecLike<Encodable, Decoded>): Codec<Array<Encodable>, Array<Decoded>>;
1045
- /**
1046
- * Option is a dynamic-size type.
1047
- * Serializing an option depends on whether it is empty or not:
1048
- * - if it's empty, there is zero bytes (the size is 0).
1049
- * - if it's not empty, just serialize the inner item (the size is same as the inner item's size).
1050
- * @param innerCodec
1051
- */
1052
- declare function option<Encodable, Decoded>(innerCodec: CodecLike<Encodable, Decoded>): Codec<Encodable | undefined | null, Decoded | undefined>;
1053
- /**
1054
- * Wrap the encoded value with a fixed-length buffer
1055
- * @param codec
1056
- */
1057
- declare function byteVec<Encodable, Decoded>(codec: CodecLike<Encodable, Decoded>): Codec<Encodable, Decoded>;
1058
- type EncodableRecordOptionalKeys<T extends Record<string, CodecLike<any, any>>> = { [K in keyof T]: Extract<EncodableType<T[K]>, undefined> extends never ? never : K }[keyof T];
1059
- 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]> };
1060
- type DecodedRecordOptionalKeys<T extends Record<string, CodecLike<any, any>>> = { [K in keyof T]: Extract<DecodedType<T[K]>, undefined> extends never ? never : K }[keyof T];
1061
- 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]> };
1062
- /**
1063
- * Table is a dynamic-size type. It can be considered as a dynvec but the length is fixed.
1064
- * @param codecLayout
1065
- */
1066
- declare function table<T extends Record<string, CodecLike<any, any>>, Encodable extends EncodableRecord<T>, Decoded extends DecodedRecord<T>>(codecLayout: T): Codec<Encodable, Decoded>;
1067
- type UnionEncodable<T extends Record<string, CodecLike<any, any>>, K extends keyof T = keyof T> = K extends unknown ? {
1068
- type: K;
1069
- value: EncodableType<T[K]>;
1070
- } : never;
1071
- type UnionDecoded<T extends Record<string, CodecLike<any, any>>, K extends keyof T = keyof T> = K extends unknown ? {
1072
- type: K;
1073
- value: DecodedType<T[K]>;
1074
- } : never;
1075
- /**
1076
- * Constructs a union codec that can serialize and deserialize values tagged with a type identifier.
1077
- *
1078
- * If all variants have the same fixed size, the resulting union codec is fixed-size (header + payload).
1079
- * Otherwise, it falls back to a dynamic-size codec.
1080
- *
1081
- * Serialization format:
1082
- * 1. 4-byte little-endian unsigned integer for the variant index.
1083
- * 2. Encoded bytes of the selected variant.
1084
- *
1085
- * @typeParam T
1086
- * A record mapping variant names to codecs.
1087
- * @param codecLayout
1088
- * An object whose keys are variant names and values are codecs for each variant.
1089
- * @param fields
1090
- * Optional mapping from variant names to custom numeric IDs. If omitted, the index
1091
- * of each variant in `codecLayout` is used as its ID.
1092
- *
1093
- *
1094
- * @example
1095
- * // Dynamic union without custom numeric IDs
1096
- * union({ cafe: Uint8, bee: Uint16 })
1097
- *
1098
- * // Dynamic union with custom numeric IDs
1099
- * union({ cafe: Uint8, bee: Uint16 }, { cafe: 0xcafe, bee: 0xbee })
1100
- *
1101
- * // Fixed-size union without custom numeric IDs
1102
- * const PaddedUint8 = struct({ data : u8, padding : u8 })
1103
- * union({ cafe: PaddedUint8, bee: Uint16 });
1104
- *
1105
- * // Fixed-size union with custom numeric IDs
1106
- * union({ cafe: PaddedUint8, bee: Uint16 }, { cafe: 0xcafe, bee: 0xbee })
1107
- */
1108
- declare function union<T extends Record<string, CodecLike<any, any>>>(codecLayout: T, fields?: Record<keyof T, number | undefined | null>): Codec<UnionEncodable<T>, UnionDecoded<T>>;
1109
- /**
1110
- * Struct is a fixed-size type: all fields in struct are fixed-size and it has a fixed quantity of fields.
1111
- * The size of a struct is the sum of all fields' size.
1112
- * @param codecLayout a object contains all fields' codec
1113
- */
1114
- declare function struct<T extends Record<string, CodecLike<any, any>>, Encodable extends EncodableRecord<T>, Decoded extends DecodedRecord<T>>(codecLayout: T): Codec<Encodable, Decoded>;
1115
- /**
1116
- * The array is a fixed-size type: it has a fixed-size inner type and a fixed length.
1117
- * The size of an array is the size of inner type times the length.
1118
- * @param itemCodec the fixed-size array item codec
1119
- * @param itemCount
1120
- */
1121
- declare function array<Encodable, Decoded>(itemCodec: CodecLike<Encodable, Decoded>, itemCount: number): Codec<Array<Encodable>, Array<Decoded>>;
1122
- //#endregion
1123
1437
  //#region src/molecule/predefined.d.ts
1124
1438
  declare const Uint8Opt: Codec<NumLike | null | undefined, number | undefined>;
1125
1439
  declare const Uint8Vec: Codec<NumLike[], number[]>;
@@ -1154,7 +1468,7 @@ declare const String: Codec<string, string>;
1154
1468
  declare const StringVec: Codec<string[], string[]>;
1155
1469
  declare const StringOpt: Codec<string | null | undefined, string | undefined>;
1156
1470
  declare namespace barrel_d_exports$1 {
1157
- 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 };
1471
+ 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 };
1158
1472
  }
1159
1473
  //#endregion
1160
1474
  //#region src/signer/btc/psbt.d.ts
@@ -1899,7 +2213,65 @@ declare const MultisigCkbWitness_base: (abstract new () => {
1899
2213
  decode(_: BytesLike): SubType;
1900
2214
  fromBytes(_bytes: BytesLike): SubType;
1901
2215
  from(_: SubTypeLike): SubType;
1902
- Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/any;
2216
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
2217
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
2218
+ readonly inner: DecodedType<CodecType>;
2219
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
2220
+ _?: undefined | null;
2221
+ }): Result;
2222
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
2223
+ _: (inner: DecodedType<CodecType>) => Result;
2224
+ }): Result;
2225
+ toBytes(): Bytes$1;
2226
+ clone(): SubType_1;
2227
+ eq(other: SubTypeLike_1): boolean;
2228
+ hash(): Hex;
2229
+ toHex(): Hex;
2230
+ }) & {
2231
+ byteLength?: number;
2232
+ encode(_: SubTypeLike_1): Bytes$1;
2233
+ decode(_: BytesLike): SubType_1;
2234
+ fromBytes(_bytes: BytesLike): SubType_1;
2235
+ from(_: SubTypeLike_1): SubType_1;
2236
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
2237
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
2238
+ };
2239
+ };
2240
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): (abstract new (inner: DecodedType<CodecType>) => {
2241
+ readonly inner: DecodedType<CodecType>;
2242
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
2243
+ _?: undefined | null;
2244
+ }): Result;
2245
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
2246
+ _: (inner: DecodedType<CodecType>) => Result;
2247
+ }): Result;
2248
+ toBytes(): Bytes$1;
2249
+ clone(): SubType;
2250
+ eq(other: SubTypeLike): boolean;
2251
+ hash(): Hex;
2252
+ toHex(): Hex;
2253
+ }) & {
2254
+ byteLength?: number;
2255
+ encode(_: SubTypeLike): Bytes$1;
2256
+ decode(_: BytesLike): SubType;
2257
+ fromBytes(_bytes: BytesLike): SubType;
2258
+ from(_: SubTypeLike): SubType;
2259
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
2260
+ toBytes(): Bytes$1;
2261
+ clone(): SubType_1;
2262
+ eq(other: SubTypeLike_1): boolean;
2263
+ hash(): Hex;
2264
+ toHex(): Hex;
2265
+ }) & {
2266
+ byteLength?: number;
2267
+ encode(_: SubTypeLike_1): Bytes$1;
2268
+ decode(_: BytesLike): SubType_1;
2269
+ fromBytes(_bytes: BytesLike): SubType_1;
2270
+ from(_: SubTypeLike_1): SubType_1;
2271
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
2272
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
2273
+ };
2274
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
1903
2275
  };
1904
2276
  };
1905
2277
  /**
@@ -2932,7 +3304,65 @@ declare const Epoch_base: (abstract new () => {
2932
3304
  decode(_: BytesLike): SubType;
2933
3305
  fromBytes(_bytes: BytesLike): SubType;
2934
3306
  from(_: SubTypeLike): SubType;
2935
- Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/any;
3307
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
3308
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
3309
+ readonly inner: DecodedType<CodecType>;
3310
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
3311
+ _?: undefined | null;
3312
+ }): Result;
3313
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
3314
+ _: (inner: DecodedType<CodecType>) => Result;
3315
+ }): Result;
3316
+ toBytes(): Bytes$1;
3317
+ clone(): SubType_1;
3318
+ eq(other: SubTypeLike_1): boolean;
3319
+ hash(): Hex;
3320
+ toHex(): Hex;
3321
+ }) & {
3322
+ byteLength?: number;
3323
+ encode(_: SubTypeLike_1): Bytes$1;
3324
+ decode(_: BytesLike): SubType_1;
3325
+ fromBytes(_bytes: BytesLike): SubType_1;
3326
+ from(_: SubTypeLike_1): SubType_1;
3327
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
3328
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
3329
+ };
3330
+ };
3331
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): (abstract new (inner: DecodedType<CodecType>) => {
3332
+ readonly inner: DecodedType<CodecType>;
3333
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
3334
+ _?: undefined | null;
3335
+ }): Result;
3336
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
3337
+ _: (inner: DecodedType<CodecType>) => Result;
3338
+ }): Result;
3339
+ toBytes(): Bytes$1;
3340
+ clone(): SubType;
3341
+ eq(other: SubTypeLike): boolean;
3342
+ hash(): Hex;
3343
+ toHex(): Hex;
3344
+ }) & {
3345
+ byteLength?: number;
3346
+ encode(_: SubTypeLike): Bytes$1;
3347
+ decode(_: BytesLike): SubType;
3348
+ fromBytes(_bytes: BytesLike): SubType;
3349
+ from(_: SubTypeLike): SubType;
3350
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
3351
+ toBytes(): Bytes$1;
3352
+ clone(): SubType_1;
3353
+ eq(other: SubTypeLike_1): boolean;
3354
+ hash(): Hex;
3355
+ toHex(): Hex;
3356
+ }) & {
3357
+ byteLength?: number;
3358
+ encode(_: SubTypeLike_1): Bytes$1;
3359
+ decode(_: BytesLike): SubType_1;
3360
+ fromBytes(_bytes: BytesLike): SubType_1;
3361
+ from(_: SubTypeLike_1): SubType_1;
3362
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
3363
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
3364
+ };
3365
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
2936
3366
  };
2937
3367
  };
2938
3368
  /**
@@ -3197,10 +3627,10 @@ declare enum KnownScript {
3197
3627
  NervosDao = "NervosDao",
3198
3628
  Secp256k1Blake160 = "Secp256k1Blake160",
3199
3629
  Secp256k1Multisig = "Secp256k1Multisig",
3200
- Secp256k1MultisigV2Beta = "Secp256k1MultisigV2Beta",
3201
- // Fix rare failing case (https://github.com/nervosnetwork/ckb-system-scripts/pull/98)
3202
- Secp256k1MultisigV2 = "Secp256k1MultisigV2",
3203
- // Enhanced since handling (https://github.com/nervosnetwork/ckb-system-scripts/pull/99)
3630
+ Secp256k1MultisigV2Beta = "Secp256k1MultisigV2Beta" // Fix rare failing case (https://github.com/nervosnetwork/ckb-system-scripts/pull/98)
3631
+ ,
3632
+ Secp256k1MultisigV2 = "Secp256k1MultisigV2" // Enhanced since handling (https://github.com/nervosnetwork/ckb-system-scripts/pull/99)
3633
+ ,
3204
3634
  AnyoneCanPay = "AnyoneCanPay",
3205
3635
  TypeId = "TypeId",
3206
3636
  SUdt = "SUdt",
@@ -3308,7 +3738,65 @@ declare const Script_base: (abstract new () => {
3308
3738
  decode(_: BytesLike): SubType;
3309
3739
  fromBytes(_bytes: BytesLike): SubType;
3310
3740
  from(_: SubTypeLike): SubType;
3311
- Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/any;
3741
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
3742
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
3743
+ readonly inner: DecodedType<CodecType>;
3744
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
3745
+ _?: undefined | null;
3746
+ }): Result;
3747
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
3748
+ _: (inner: DecodedType<CodecType>) => Result;
3749
+ }): Result;
3750
+ toBytes(): Bytes$1;
3751
+ clone(): SubType_1;
3752
+ eq(other: SubTypeLike_1): boolean;
3753
+ hash(): Hex;
3754
+ toHex(): Hex;
3755
+ }) & {
3756
+ byteLength?: number;
3757
+ encode(_: SubTypeLike_1): Bytes$1;
3758
+ decode(_: BytesLike): SubType_1;
3759
+ fromBytes(_bytes: BytesLike): SubType_1;
3760
+ from(_: SubTypeLike_1): SubType_1;
3761
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
3762
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
3763
+ };
3764
+ };
3765
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): (abstract new (inner: DecodedType<CodecType>) => {
3766
+ readonly inner: DecodedType<CodecType>;
3767
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
3768
+ _?: undefined | null;
3769
+ }): Result;
3770
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
3771
+ _: (inner: DecodedType<CodecType>) => Result;
3772
+ }): Result;
3773
+ toBytes(): Bytes$1;
3774
+ clone(): SubType;
3775
+ eq(other: SubTypeLike): boolean;
3776
+ hash(): Hex;
3777
+ toHex(): Hex;
3778
+ }) & {
3779
+ byteLength?: number;
3780
+ encode(_: SubTypeLike): Bytes$1;
3781
+ decode(_: BytesLike): SubType;
3782
+ fromBytes(_bytes: BytesLike): SubType;
3783
+ from(_: SubTypeLike): SubType;
3784
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
3785
+ toBytes(): Bytes$1;
3786
+ clone(): SubType_1;
3787
+ eq(other: SubTypeLike_1): boolean;
3788
+ hash(): Hex;
3789
+ toHex(): Hex;
3790
+ }) & {
3791
+ byteLength?: number;
3792
+ encode(_: SubTypeLike_1): Bytes$1;
3793
+ decode(_: BytesLike): SubType_1;
3794
+ fromBytes(_bytes: BytesLike): SubType_1;
3795
+ from(_: SubTypeLike_1): SubType_1;
3796
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
3797
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
3798
+ };
3799
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
3312
3800
  };
3313
3801
  };
3314
3802
  /**
@@ -3502,7 +3990,65 @@ declare const OutPoint_base: (abstract new () => {
3502
3990
  decode(_: BytesLike): SubType;
3503
3991
  fromBytes(_bytes: BytesLike): SubType;
3504
3992
  from(_: SubTypeLike): SubType;
3505
- Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/any;
3993
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
3994
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
3995
+ readonly inner: DecodedType<CodecType>;
3996
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
3997
+ _?: undefined | null;
3998
+ }): Result;
3999
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4000
+ _: (inner: DecodedType<CodecType>) => Result;
4001
+ }): Result;
4002
+ toBytes(): Bytes$1;
4003
+ clone(): SubType_1;
4004
+ eq(other: SubTypeLike_1): boolean;
4005
+ hash(): Hex;
4006
+ toHex(): Hex;
4007
+ }) & {
4008
+ byteLength?: number;
4009
+ encode(_: SubTypeLike_1): Bytes$1;
4010
+ decode(_: BytesLike): SubType_1;
4011
+ fromBytes(_bytes: BytesLike): SubType_1;
4012
+ from(_: SubTypeLike_1): SubType_1;
4013
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4014
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
4015
+ };
4016
+ };
4017
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): (abstract new (inner: DecodedType<CodecType>) => {
4018
+ readonly inner: DecodedType<CodecType>;
4019
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
4020
+ _?: undefined | null;
4021
+ }): Result;
4022
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4023
+ _: (inner: DecodedType<CodecType>) => Result;
4024
+ }): Result;
4025
+ toBytes(): Bytes$1;
4026
+ clone(): SubType;
4027
+ eq(other: SubTypeLike): boolean;
4028
+ hash(): Hex;
4029
+ toHex(): Hex;
4030
+ }) & {
4031
+ byteLength?: number;
4032
+ encode(_: SubTypeLike): Bytes$1;
4033
+ decode(_: BytesLike): SubType;
4034
+ fromBytes(_bytes: BytesLike): SubType;
4035
+ from(_: SubTypeLike): SubType;
4036
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
4037
+ toBytes(): Bytes$1;
4038
+ clone(): SubType_1;
4039
+ eq(other: SubTypeLike_1): boolean;
4040
+ hash(): Hex;
4041
+ toHex(): Hex;
4042
+ }) & {
4043
+ byteLength?: number;
4044
+ encode(_: SubTypeLike_1): Bytes$1;
4045
+ decode(_: BytesLike): SubType_1;
4046
+ fromBytes(_bytes: BytesLike): SubType_1;
4047
+ from(_: SubTypeLike_1): SubType_1;
4048
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
4049
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4050
+ };
4051
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
3506
4052
  };
3507
4053
  };
3508
4054
  /**
@@ -3586,7 +4132,65 @@ declare const CellOutput_base: (abstract new () => {
3586
4132
  decode(_: BytesLike): SubType;
3587
4133
  fromBytes(_bytes: BytesLike): SubType;
3588
4134
  from(_: SubTypeLike): SubType;
3589
- Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/any;
4135
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4136
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
4137
+ readonly inner: DecodedType<CodecType>;
4138
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
4139
+ _?: undefined | null;
4140
+ }): Result;
4141
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4142
+ _: (inner: DecodedType<CodecType>) => Result;
4143
+ }): Result;
4144
+ toBytes(): Bytes$1;
4145
+ clone(): SubType_1;
4146
+ eq(other: SubTypeLike_1): boolean;
4147
+ hash(): Hex;
4148
+ toHex(): Hex;
4149
+ }) & {
4150
+ byteLength?: number;
4151
+ encode(_: SubTypeLike_1): Bytes$1;
4152
+ decode(_: BytesLike): SubType_1;
4153
+ fromBytes(_bytes: BytesLike): SubType_1;
4154
+ from(_: SubTypeLike_1): SubType_1;
4155
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4156
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
4157
+ };
4158
+ };
4159
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): (abstract new (inner: DecodedType<CodecType>) => {
4160
+ readonly inner: DecodedType<CodecType>;
4161
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
4162
+ _?: undefined | null;
4163
+ }): Result;
4164
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4165
+ _: (inner: DecodedType<CodecType>) => Result;
4166
+ }): Result;
4167
+ toBytes(): Bytes$1;
4168
+ clone(): SubType;
4169
+ eq(other: SubTypeLike): boolean;
4170
+ hash(): Hex;
4171
+ toHex(): Hex;
4172
+ }) & {
4173
+ byteLength?: number;
4174
+ encode(_: SubTypeLike): Bytes$1;
4175
+ decode(_: BytesLike): SubType;
4176
+ fromBytes(_bytes: BytesLike): SubType;
4177
+ from(_: SubTypeLike): SubType;
4178
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
4179
+ toBytes(): Bytes$1;
4180
+ clone(): SubType_1;
4181
+ eq(other: SubTypeLike_1): boolean;
4182
+ hash(): Hex;
4183
+ toHex(): Hex;
4184
+ }) & {
4185
+ byteLength?: number;
4186
+ encode(_: SubTypeLike_1): Bytes$1;
4187
+ decode(_: BytesLike): SubType_1;
4188
+ fromBytes(_bytes: BytesLike): SubType_1;
4189
+ from(_: SubTypeLike_1): SubType_1;
4190
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
4191
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4192
+ };
4193
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
3590
4194
  };
3591
4195
  };
3592
4196
  /**
@@ -3884,7 +4488,65 @@ declare const Since_base: (abstract new () => {
3884
4488
  decode(_: BytesLike): SubType;
3885
4489
  fromBytes(_bytes: BytesLike): SubType;
3886
4490
  from(_: SubTypeLike): SubType;
3887
- Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/any;
4491
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4492
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
4493
+ readonly inner: DecodedType<CodecType>;
4494
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
4495
+ _?: undefined | null;
4496
+ }): Result;
4497
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4498
+ _: (inner: DecodedType<CodecType>) => Result;
4499
+ }): Result;
4500
+ toBytes(): Bytes$1;
4501
+ clone(): SubType_1;
4502
+ eq(other: SubTypeLike_1): boolean;
4503
+ hash(): Hex;
4504
+ toHex(): Hex;
4505
+ }) & {
4506
+ byteLength?: number;
4507
+ encode(_: SubTypeLike_1): Bytes$1;
4508
+ decode(_: BytesLike): SubType_1;
4509
+ fromBytes(_bytes: BytesLike): SubType_1;
4510
+ from(_: SubTypeLike_1): SubType_1;
4511
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4512
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
4513
+ };
4514
+ };
4515
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): (abstract new (inner: DecodedType<CodecType>) => {
4516
+ readonly inner: DecodedType<CodecType>;
4517
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
4518
+ _?: undefined | null;
4519
+ }): Result;
4520
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4521
+ _: (inner: DecodedType<CodecType>) => Result;
4522
+ }): Result;
4523
+ toBytes(): Bytes$1;
4524
+ clone(): SubType;
4525
+ eq(other: SubTypeLike): boolean;
4526
+ hash(): Hex;
4527
+ toHex(): Hex;
4528
+ }) & {
4529
+ byteLength?: number;
4530
+ encode(_: SubTypeLike): Bytes$1;
4531
+ decode(_: BytesLike): SubType;
4532
+ fromBytes(_bytes: BytesLike): SubType;
4533
+ from(_: SubTypeLike): SubType;
4534
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
4535
+ toBytes(): Bytes$1;
4536
+ clone(): SubType_1;
4537
+ eq(other: SubTypeLike_1): boolean;
4538
+ hash(): Hex;
4539
+ toHex(): Hex;
4540
+ }) & {
4541
+ byteLength?: number;
4542
+ encode(_: SubTypeLike_1): Bytes$1;
4543
+ decode(_: BytesLike): SubType_1;
4544
+ fromBytes(_bytes: BytesLike): SubType_1;
4545
+ from(_: SubTypeLike_1): SubType_1;
4546
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
4547
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4548
+ };
4549
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
3888
4550
  };
3889
4551
  };
3890
4552
  /**
@@ -3985,7 +4647,65 @@ declare const CellInput_base: (abstract new () => {
3985
4647
  decode(_: BytesLike): SubType;
3986
4648
  fromBytes(_bytes: BytesLike): SubType;
3987
4649
  from(_: SubTypeLike): SubType;
3988
- Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/any;
4650
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4651
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
4652
+ readonly inner: DecodedType<CodecType>;
4653
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
4654
+ _?: undefined | null;
4655
+ }): Result;
4656
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4657
+ _: (inner: DecodedType<CodecType>) => Result;
4658
+ }): Result;
4659
+ toBytes(): Bytes$1;
4660
+ clone(): SubType_1;
4661
+ eq(other: SubTypeLike_1): boolean;
4662
+ hash(): Hex;
4663
+ toHex(): Hex;
4664
+ }) & {
4665
+ byteLength?: number;
4666
+ encode(_: SubTypeLike_1): Bytes$1;
4667
+ decode(_: BytesLike): SubType_1;
4668
+ fromBytes(_bytes: BytesLike): SubType_1;
4669
+ from(_: SubTypeLike_1): SubType_1;
4670
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4671
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
4672
+ };
4673
+ };
4674
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): (abstract new (inner: DecodedType<CodecType>) => {
4675
+ readonly inner: DecodedType<CodecType>;
4676
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
4677
+ _?: undefined | null;
4678
+ }): Result;
4679
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4680
+ _: (inner: DecodedType<CodecType>) => Result;
4681
+ }): Result;
4682
+ toBytes(): Bytes$1;
4683
+ clone(): SubType;
4684
+ eq(other: SubTypeLike): boolean;
4685
+ hash(): Hex;
4686
+ toHex(): Hex;
4687
+ }) & {
4688
+ byteLength?: number;
4689
+ encode(_: SubTypeLike): Bytes$1;
4690
+ decode(_: BytesLike): SubType;
4691
+ fromBytes(_bytes: BytesLike): SubType;
4692
+ from(_: SubTypeLike): SubType;
4693
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
4694
+ toBytes(): Bytes$1;
4695
+ clone(): SubType_1;
4696
+ eq(other: SubTypeLike_1): boolean;
4697
+ hash(): Hex;
4698
+ toHex(): Hex;
4699
+ }) & {
4700
+ byteLength?: number;
4701
+ encode(_: SubTypeLike_1): Bytes$1;
4702
+ decode(_: BytesLike): SubType_1;
4703
+ fromBytes(_bytes: BytesLike): SubType_1;
4704
+ from(_: SubTypeLike_1): SubType_1;
4705
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
4706
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4707
+ };
4708
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
3989
4709
  };
3990
4710
  };
3991
4711
  /**
@@ -4084,7 +4804,65 @@ declare const CellDep_base: (abstract new () => {
4084
4804
  decode(_: BytesLike): SubType;
4085
4805
  fromBytes(_bytes: BytesLike): SubType;
4086
4806
  from(_: SubTypeLike): SubType;
4087
- Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/any;
4807
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4808
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
4809
+ readonly inner: DecodedType<CodecType>;
4810
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
4811
+ _?: undefined | null;
4812
+ }): Result;
4813
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4814
+ _: (inner: DecodedType<CodecType>) => Result;
4815
+ }): Result;
4816
+ toBytes(): Bytes$1;
4817
+ clone(): SubType_1;
4818
+ eq(other: SubTypeLike_1): boolean;
4819
+ hash(): Hex;
4820
+ toHex(): Hex;
4821
+ }) & {
4822
+ byteLength?: number;
4823
+ encode(_: SubTypeLike_1): Bytes$1;
4824
+ decode(_: BytesLike): SubType_1;
4825
+ fromBytes(_bytes: BytesLike): SubType_1;
4826
+ from(_: SubTypeLike_1): SubType_1;
4827
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4828
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
4829
+ };
4830
+ };
4831
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): (abstract new (inner: DecodedType<CodecType>) => {
4832
+ readonly inner: DecodedType<CodecType>;
4833
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
4834
+ _?: undefined | null;
4835
+ }): Result;
4836
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4837
+ _: (inner: DecodedType<CodecType>) => Result;
4838
+ }): Result;
4839
+ toBytes(): Bytes$1;
4840
+ clone(): SubType;
4841
+ eq(other: SubTypeLike): boolean;
4842
+ hash(): Hex;
4843
+ toHex(): Hex;
4844
+ }) & {
4845
+ byteLength?: number;
4846
+ encode(_: SubTypeLike): Bytes$1;
4847
+ decode(_: BytesLike): SubType;
4848
+ fromBytes(_bytes: BytesLike): SubType;
4849
+ from(_: SubTypeLike): SubType;
4850
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
4851
+ toBytes(): Bytes$1;
4852
+ clone(): SubType_1;
4853
+ eq(other: SubTypeLike_1): boolean;
4854
+ hash(): Hex;
4855
+ toHex(): Hex;
4856
+ }) & {
4857
+ byteLength?: number;
4858
+ encode(_: SubTypeLike_1): Bytes$1;
4859
+ decode(_: BytesLike): SubType_1;
4860
+ fromBytes(_bytes: BytesLike): SubType_1;
4861
+ from(_: SubTypeLike_1): SubType_1;
4862
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
4863
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4864
+ };
4865
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4088
4866
  };
4089
4867
  };
4090
4868
  /**
@@ -4160,7 +4938,65 @@ declare const WitnessArgs_base: (abstract new () => {
4160
4938
  decode(_: BytesLike): SubType;
4161
4939
  fromBytes(_bytes: BytesLike): SubType;
4162
4940
  from(_: SubTypeLike): SubType;
4163
- Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/any;
4941
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4942
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
4943
+ readonly inner: DecodedType<CodecType>;
4944
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
4945
+ _?: undefined | null;
4946
+ }): Result;
4947
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4948
+ _: (inner: DecodedType<CodecType>) => Result;
4949
+ }): Result;
4950
+ toBytes(): Bytes$1;
4951
+ clone(): SubType_1;
4952
+ eq(other: SubTypeLike_1): boolean;
4953
+ hash(): Hex;
4954
+ toHex(): Hex;
4955
+ }) & {
4956
+ byteLength?: number;
4957
+ encode(_: SubTypeLike_1): Bytes$1;
4958
+ decode(_: BytesLike): SubType_1;
4959
+ fromBytes(_bytes: BytesLike): SubType_1;
4960
+ from(_: SubTypeLike_1): SubType_1;
4961
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4962
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
4963
+ };
4964
+ };
4965
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): (abstract new (inner: DecodedType<CodecType>) => {
4966
+ readonly inner: DecodedType<CodecType>;
4967
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
4968
+ _?: undefined | null;
4969
+ }): Result;
4970
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4971
+ _: (inner: DecodedType<CodecType>) => Result;
4972
+ }): Result;
4973
+ toBytes(): Bytes$1;
4974
+ clone(): SubType;
4975
+ eq(other: SubTypeLike): boolean;
4976
+ hash(): Hex;
4977
+ toHex(): Hex;
4978
+ }) & {
4979
+ byteLength?: number;
4980
+ encode(_: SubTypeLike): Bytes$1;
4981
+ decode(_: BytesLike): SubType;
4982
+ fromBytes(_bytes: BytesLike): SubType;
4983
+ from(_: SubTypeLike): SubType;
4984
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
4985
+ toBytes(): Bytes$1;
4986
+ clone(): SubType_1;
4987
+ eq(other: SubTypeLike_1): boolean;
4988
+ hash(): Hex;
4989
+ toHex(): Hex;
4990
+ }) & {
4991
+ byteLength?: number;
4992
+ encode(_: SubTypeLike_1): Bytes$1;
4993
+ decode(_: BytesLike): SubType_1;
4994
+ fromBytes(_bytes: BytesLike): SubType_1;
4995
+ from(_: SubTypeLike_1): SubType_1;
4996
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
4997
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4998
+ };
4999
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4164
5000
  };
4165
5001
  };
4166
5002
  /**
@@ -4252,7 +5088,65 @@ declare const Transaction_base: (abstract new () => {
4252
5088
  decode(_: BytesLike): SubType;
4253
5089
  fromBytes(_bytes: BytesLike): SubType;
4254
5090
  from(_: SubTypeLike): SubType;
4255
- Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/any;
5091
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
5092
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
5093
+ readonly inner: DecodedType<CodecType>;
5094
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
5095
+ _?: undefined | null;
5096
+ }): Result;
5097
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
5098
+ _: (inner: DecodedType<CodecType>) => Result;
5099
+ }): Result;
5100
+ toBytes(): Bytes$1;
5101
+ clone(): SubType_1;
5102
+ eq(other: SubTypeLike_1): boolean;
5103
+ hash(): Hex;
5104
+ toHex(): Hex;
5105
+ }) & {
5106
+ byteLength?: number;
5107
+ encode(_: SubTypeLike_1): Bytes$1;
5108
+ decode(_: BytesLike): SubType_1;
5109
+ fromBytes(_bytes: BytesLike): SubType_1;
5110
+ from(_: SubTypeLike_1): SubType_1;
5111
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
5112
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
5113
+ };
5114
+ };
5115
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): (abstract new (inner: DecodedType<CodecType>) => {
5116
+ readonly inner: DecodedType<CodecType>;
5117
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
5118
+ _?: undefined | null;
5119
+ }): Result;
5120
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
5121
+ _: (inner: DecodedType<CodecType>) => Result;
5122
+ }): Result;
5123
+ toBytes(): Bytes$1;
5124
+ clone(): SubType;
5125
+ eq(other: SubTypeLike): boolean;
5126
+ hash(): Hex;
5127
+ toHex(): Hex;
5128
+ }) & {
5129
+ byteLength?: number;
5130
+ encode(_: SubTypeLike): Bytes$1;
5131
+ decode(_: BytesLike): SubType;
5132
+ fromBytes(_bytes: BytesLike): SubType;
5133
+ from(_: SubTypeLike): SubType;
5134
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
5135
+ toBytes(): Bytes$1;
5136
+ clone(): SubType_1;
5137
+ eq(other: SubTypeLike_1): boolean;
5138
+ hash(): Hex;
5139
+ toHex(): Hex;
5140
+ }) & {
5141
+ byteLength?: number;
5142
+ encode(_: SubTypeLike_1): Bytes$1;
5143
+ decode(_: BytesLike): SubType_1;
5144
+ fromBytes(_bytes: BytesLike): SubType_1;
5145
+ from(_: SubTypeLike_1): SubType_1;
5146
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
5147
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
5148
+ };
5149
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4256
5150
  };
4257
5151
  };
4258
5152
  /**
@@ -4532,25 +5426,45 @@ declare class Transaction extends Transaction_base {
4532
5426
  */
4533
5427
  addCellDepsOfKnownScripts(client: Client, ...scripts: (KnownScript | KnownScript[])[]): Promise<void>;
4534
5428
  /**
4535
- * Set output data at index.
5429
+ * Sets output data at an index.
5430
+ *
5431
+ * @deprecated Use {@link setOutputData} instead.
5432
+ */
5433
+ setOutputDataAt(index: number, data: HexLike): void;
5434
+ /**
5435
+ * Sets output data at an index, filling any skipped positions with empty data.
4536
5436
  *
4537
5437
  * @param index - The index of the output data.
4538
5438
  * @param data - The data to set.
5439
+ * @throws If `index` is invalid or does not identify an existing output.
4539
5440
  *
4540
5441
  * @example
4541
5442
  * ```typescript
4542
- * tx.setOutputDataAt(0, "0x00");
5443
+ * tx.setOutputData(0, "0x00");
4543
5444
  * ```
4544
5445
  */
4545
- setOutputDataAt(index: number, data: HexLike): void;
5446
+ setOutputData(index: number, data: HexLike): void;
4546
5447
  /**
4547
- * get input
5448
+ * Gets the data associated with an output.
4548
5449
  *
4549
- * @param index - The cell input index
5450
+ * @param index - The output index.
5451
+ * @returns The output data, or `undefined` if the index is invalid or out of bounds.
4550
5452
  *
4551
5453
  * @example
4552
5454
  * ```typescript
4553
- * await tx.getInput(0);
5455
+ * const data = tx.getOutputData(0);
5456
+ * ```
5457
+ */
5458
+ getOutputData(index: NumLike): Hex | undefined;
5459
+ /**
5460
+ * Gets an input.
5461
+ *
5462
+ * @param index - The cell input index.
5463
+ * @returns The input, or `undefined` if the index is invalid or out of bounds.
5464
+ *
5465
+ * @example
5466
+ * ```typescript
5467
+ * tx.getInput(0);
4554
5468
  * ```
4555
5469
  */
4556
5470
  getInput(index: NumLike): CellInput | undefined;
@@ -4566,13 +5480,14 @@ declare class Transaction extends Transaction_base {
4566
5480
  */
4567
5481
  addInput(inputLike: CellInputLike): number;
4568
5482
  /**
4569
- * get output
5483
+ * Gets an output cell together with its data.
4570
5484
  *
4571
- * @param index - The cell output index
5485
+ * @param index - The cell output index.
5486
+ * @returns The output cell, or `undefined` if the index is invalid or out of bounds.
4572
5487
  *
4573
5488
  * @example
4574
5489
  * ```typescript
4575
- * await tx.getOutput(0);
5490
+ * tx.getOutput(0);
4576
5491
  * ```
4577
5492
  */
4578
5493
  getOutput(index: NumLike): CellAny | undefined;
@@ -4621,52 +5536,143 @@ declare class Transaction extends Transaction_base {
4621
5536
  addOutput(cellLike: CellAnyLike): number;
4622
5537
  addOutput(outputLike: CellOutputLike, outputDataLike?: HexLike | null): number;
4623
5538
  /**
4624
- * Get witness at index as WitnessArgs
5539
+ * Sets or appends an output cell.
5540
+ *
5541
+ * An index equal to the current output count appends the cell. Existing
5542
+ * outputs are replaced together with their corresponding output data.
5543
+ *
5544
+ * @param index - The output index to set, from zero through the current output count.
5545
+ * @param cellLike - A cell-like object containing both the output and its data.
5546
+ * @throws If `index` is not a valid array index or is greater than the output count.
5547
+ *
5548
+ * @example
5549
+ * ```typescript
5550
+ * tx.setOutput(0, {
5551
+ * cellOutput: { lock: recipientLock },
5552
+ * outputData: "0x1234",
5553
+ * });
5554
+ * ```
5555
+ */
5556
+ setOutput(index: number, cellLike: CellAnyLike): void;
5557
+ /**
5558
+ * Sets or appends an output and its data.
5559
+ *
5560
+ * @param index - The output index to set, from zero through the current output count.
5561
+ * @param outputLike - The cell output to set.
5562
+ * @param outputDataLike - The output data, defaulting to `"0x"`.
5563
+ * @throws If `index` is not a valid array index or is greater than the output count.
5564
+ *
5565
+ * @example
5566
+ * ```typescript
5567
+ * tx.setOutput(0, { lock: recipientLock }, "0x1234");
5568
+ * ```
5569
+ */
5570
+ setOutput(index: number, outputLike: CellOutputLike, outputDataLike?: HexLike | null): void;
5571
+ /**
5572
+ * Sets or appends an input.
5573
+ *
5574
+ * An index equal to the current input count appends the input using
5575
+ * {@link addInput}, preserving witness alignment. An existing index replaces
5576
+ * only that input.
5577
+ *
5578
+ * @param index - The input index to set, from zero through the current input count.
5579
+ * @param inputLike - The cell input to set.
5580
+ * @throws If `index` is not a valid array index or is greater than the input count.
5581
+ *
5582
+ * @example
5583
+ * ```typescript
5584
+ * tx.setInput(0, {
5585
+ * previousOutput: { txHash: "0x...", index: 0 },
5586
+ * });
5587
+ * ```
5588
+ */
5589
+ setInput(index: number, inputLike: CellInputLike): void;
5590
+ /**
5591
+ * Gets a raw witness.
5592
+ *
5593
+ * @param index - The witness index.
5594
+ * @returns The witness, or `undefined` if the index is invalid or out of bounds.
5595
+ *
5596
+ * @example
5597
+ * ```typescript
5598
+ * const witness = tx.getWitness(0);
5599
+ * ```
5600
+ */
5601
+ getWitness(index: NumLike): Hex | undefined;
5602
+ /**
5603
+ * Gets the witness at an index as `WitnessArgs`.
4625
5604
  *
4626
5605
  * @param index - The index of the witness.
4627
5606
  * @returns The witness parsed as WitnessArgs.
4628
5607
  *
4629
5608
  * @example
4630
5609
  * ```typescript
4631
- * const witnessArgs = tx.getWitnessArgsAt(0);
5610
+ * const witnessArgs = tx.getWitnessArgs(0);
4632
5611
  * ```
4633
5612
  */
4634
- getWitnessArgsAt(index: number): WitnessArgs | undefined;
5613
+ getWitnessArgs(index: NumLike): WitnessArgs | undefined;
4635
5614
  /**
4636
- * Get witness at index as WitnessArgs, throw if failed to decode
5615
+ * Gets the witness at an index as `WitnessArgs`, throwing if decoding fails.
4637
5616
  *
4638
5617
  * @param index - The index of the witness.
4639
5618
  * @returns The witness parsed as WitnessArgs.
5619
+ * @throws If the witness cannot be decoded as `WitnessArgs`.
4640
5620
  *
4641
5621
  * @example
4642
5622
  * ```typescript
4643
- * const witnessArgs = tx.getWitnessArgsAtUnsafe(0);
5623
+ * const witnessArgs = tx.getWitnessArgsUnsafe(0);
4644
5624
  * ```
4645
5625
  */
4646
- getWitnessArgsAtUnsafe(index: number): WitnessArgs | undefined;
5626
+ getWitnessArgsUnsafe(index: NumLike): WitnessArgs | undefined;
4647
5627
  /**
4648
- * Set witness at index by WitnessArgs
5628
+ * Sets a witness at an index from `WitnessArgs`.
4649
5629
  *
4650
5630
  * @param index - The index of the witness.
4651
- * @param witness - The WitnessArgs to set.
5631
+ * @param witnessLike - The WitnessArgs-like value to set.
5632
+ * @throws If `index` is not a valid array index.
4652
5633
  *
4653
5634
  * @example
4654
5635
  * ```typescript
4655
- * await tx.setWitnessArgsAt(0, witnessArgs);
5636
+ * tx.setWitnessArgs(0, witnessArgs);
4656
5637
  * ```
4657
5638
  */
4658
- setWitnessArgsAt(index: number, witness: WitnessArgs): void;
5639
+ setWitnessArgs(index: number, witnessLike: WitnessArgsLike): void;
4659
5640
  /**
4660
- * Set witness at index
5641
+ * Sets a witness at an index, filling any skipped positions with empty witnesses.
4661
5642
  *
4662
5643
  * @param index - The index of the witness.
4663
5644
  * @param witness - The witness to set.
5645
+ * @throws If `index` is not a valid array index.
4664
5646
  *
4665
5647
  * @example
4666
5648
  * ```typescript
4667
- * await tx.setWitnessAt(0, witness);
5649
+ * tx.setWitness(0, witness);
4668
5650
  * ```
4669
5651
  */
5652
+ setWitness(index: number, witness: HexLike): void;
5653
+ /**
5654
+ * Gets the witness at an index as `WitnessArgs`.
5655
+ *
5656
+ * @deprecated Use {@link getWitnessArgs} instead.
5657
+ */
5658
+ getWitnessArgsAt(index: NumLike): WitnessArgs | undefined;
5659
+ /**
5660
+ * Gets the witness at an index as `WitnessArgs`, throwing if decoding fails.
5661
+ *
5662
+ * @deprecated Use {@link getWitnessArgsUnsafe} instead.
5663
+ */
5664
+ getWitnessArgsAtUnsafe(index: NumLike): WitnessArgs | undefined;
5665
+ /**
5666
+ * Sets a witness at an index from `WitnessArgs`.
5667
+ *
5668
+ * @deprecated Use {@link setWitnessArgs} instead.
5669
+ */
5670
+ setWitnessArgsAt(index: number, witnessLike: WitnessArgsLike): void;
5671
+ /**
5672
+ * Sets a witness at an index.
5673
+ *
5674
+ * @deprecated Use {@link setWitness} instead.
5675
+ */
4670
5676
  setWitnessAt(index: number, witness: HexLike): void;
4671
5677
  /**
4672
5678
  * Prepare dummy witness for sighash all method
@@ -5991,17 +6997,7 @@ declare class JsonRpcTransformers {
5991
6997
  static cellDepTo(cellDep: JsonRpcCellDep): CellDep;
5992
6998
  static transactionFrom(txLike: TransactionLike): JsonRpcTransaction;
5993
6999
  static transactionTo(tx: JsonRpcTransaction): Transaction;
5994
- static transactionResponseTo({
5995
- cycles,
5996
- tx_status: {
5997
- status,
5998
- block_number,
5999
- block_hash,
6000
- tx_index,
6001
- reason
6002
- },
6003
- transaction
6004
- }: {
7000
+ static transactionResponseTo({ cycles, tx_status: { status, block_number, block_hash, tx_index, reason }, transaction }: {
6005
7001
  cycles?: NumLike;
6006
7002
  tx_status: {
6007
7003
  status: TransactionStatus;
@@ -6018,10 +7014,7 @@ declare class JsonRpcTransformers {
6018
7014
  static rangeFrom([a, b]: [NumLike, NumLike]): [Hex, Hex];
6019
7015
  static indexerSearchKeyFilterFrom(filter: ClientIndexerSearchKeyFilter): JsonRpcIndexerSearchKeyFilter;
6020
7016
  static indexerSearchKeyFrom(keyLike: ClientIndexerSearchKeyLike): JsonRpcIndexerSearchKey;
6021
- static findCellsResponseTo({
6022
- last_cursor,
6023
- objects
6024
- }: {
7017
+ static findCellsResponseTo({ last_cursor, objects }: {
6025
7018
  last_cursor: string;
6026
7019
  objects: {
6027
7020
  out_point: JsonRpcOutPoint;
@@ -6030,10 +7023,7 @@ declare class JsonRpcTransformers {
6030
7023
  }[];
6031
7024
  }): ClientFindCellsResponse;
6032
7025
  static indexerSearchKeyTransactionFrom(keyLike: ClientIndexerSearchKeyTransactionLike): JsonRpcIndexerSearchKeyTransaction;
6033
- static findTransactionsResponseTo({
6034
- last_cursor,
6035
- objects
6036
- }: JsonRpcIndexerFindTransactionsResponse | JsonRpcIndexerFindTransactionsGroupedResponse): ClientFindTransactionsResponse | ClientFindTransactionsGroupedResponse;
7026
+ static findTransactionsResponseTo({ last_cursor, objects }: JsonRpcIndexerFindTransactionsResponse | JsonRpcIndexerFindTransactionsGroupedResponse): ClientFindTransactionsResponse | ClientFindTransactionsGroupedResponse;
6037
7027
  }
6038
7028
  //#endregion
6039
7029
  //#region src/hasher/advanced.d.ts
@@ -6043,4 +7033,4 @@ declare namespace advancedBarrel_d_exports {
6043
7033
  }
6044
7034
  //#endregion
6045
7035
  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 };
6046
- //# sourceMappingURL=advancedBarrel-66JgvInl.d.mts.map
7036
+ //# sourceMappingURL=advancedBarrel-Bk19lQjR.d.mts.map