@ckb-ccc/core 1.16.1 → 1.18.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 (55) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/dist/address.advanced-Dw4qPDGb.mjs +2 -0
  3. package/dist/address.advanced-Dw4qPDGb.mjs.map +1 -0
  4. package/dist/advanced.d.mts +1 -1
  5. package/dist/advanced.mjs +1 -1
  6. package/{dist.commonjs/advancedBarrel-CiJnF8me.d.ts → dist/advancedBarrel-BbbHx4z4.d.mts} +1188 -163
  7. package/dist/advancedBarrel-BbbHx4z4.d.mts.map +1 -0
  8. package/dist/advancedBarrel.d.mts +1 -1
  9. package/dist/advancedBarrel.mjs +1 -1
  10. package/dist/barrel-BqMBxl8y.mjs +7 -0
  11. package/dist/barrel-BqMBxl8y.mjs.map +1 -0
  12. package/dist/barrel.d.mts +2 -2
  13. package/dist/barrel.mjs +1 -1
  14. package/dist/index.d.mts +2 -2
  15. package/dist/index.mjs +1 -1
  16. package/dist.commonjs/address.advanced-DG1gpW7t.js +2 -0
  17. package/dist.commonjs/address.advanced-DG1gpW7t.js.map +1 -0
  18. package/dist.commonjs/advanced.d.ts +1 -1
  19. package/dist.commonjs/advanced.js +1 -1
  20. package/{dist/advancedBarrel-66JgvInl.d.mts → dist.commonjs/advancedBarrel-CJAh6sm8.d.ts} +1189 -162
  21. package/dist.commonjs/advancedBarrel-CJAh6sm8.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-CbH8-KWr.js +21 -0
  25. package/dist.commonjs/barrel-CbH8-KWr.js.map +1 -0
  26. package/dist.commonjs/barrel.d.ts +2 -2
  27. package/dist.commonjs/barrel.js +1 -1
  28. package/dist.commonjs/index.d.ts +2 -2
  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 +275 -55
  33. package/src/client/jsonRpc/client.ts +7 -3
  34. package/src/codec/entity.ts +93 -0
  35. package/src/jsonRpc/requestor.ts +9 -4
  36. package/src/jsonRpc/transports/fallback.ts +14 -11
  37. package/src/molecule/codec.ts +25 -5
  38. package/src/signer/btc/signerBtc.ts +1 -1
  39. package/src/signer/ckb/index.ts +1 -0
  40. package/src/signer/ckb/signerCkbAlwaysSuccess.ts +71 -0
  41. package/src/signer/ckb/signerCkbPrivateKey.ts +2 -3
  42. package/src/signer/ckb/signerMultisigCkbReadonly.ts +5 -5
  43. package/src/signer/doge/signerDoge.ts +1 -1
  44. package/src/signer/evm/signerEvm.ts +2 -2
  45. package/src/signer/nostr/signerNostr.ts +1 -1
  46. package/dist/address.advanced-C5UrS2uk.mjs +0 -2
  47. package/dist/address.advanced-C5UrS2uk.mjs.map +0 -1
  48. package/dist/advancedBarrel-66JgvInl.d.mts.map +0 -1
  49. package/dist/barrel-yZm3ICzn.mjs +0 -7
  50. package/dist/barrel-yZm3ICzn.mjs.map +0 -1
  51. package/dist.commonjs/address.advanced-CQJ24Iei.js +0 -2
  52. package/dist.commonjs/address.advanced-CQJ24Iei.js.map +0 -1
  53. package/dist.commonjs/advancedBarrel-CiJnF8me.d.ts.map +0 -1
  54. package/dist.commonjs/barrel-CddEgDBp.js +0 -21
  55. package/dist.commonjs/barrel-CddEgDBp.js.map +0 -1
@@ -1,4 +1,3 @@
1
- //#endregion
2
1
  //#region src/bytes/advanced.d.ts
3
2
  /**
4
3
  * Represents the possible encoding formats for converting bytes.
@@ -261,15 +260,8 @@ declare class Codec<Encodable, Decoded = Encodable> {
261
260
  decodeOr<T>(decodable: BytesLike, fallback: T, config?: {
262
261
  isExtraFieldIgnored?: boolean;
263
262
  }): 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
- }: {
263
+ static from<Encodable, Decoded = Encodable>({ encode, decode, byteLength }: CodecLike<Encodable, Decoded>): Codec<Encodable, Decoded>;
264
+ map<NewEncodable = Encodable, NewDecoded = Decoded>({ inMap, outMap }: {
273
265
  inMap?: (encodable: NewEncodable) => Encodable;
274
266
  outMap?: (decoded: Decoded) => NewDecoded;
275
267
  }): Codec<NewEncodable, NewDecoded>;
@@ -279,6 +271,105 @@ declare class Codec<Encodable, Decoded = Encodable> {
279
271
  type EncodableType<T extends CodecLike<any, any>> = T extends CodecLike<infer Encodable, unknown> ? Encodable : never;
280
272
  type DecodedType<T extends CodecLike<any, any>> = T extends CodecLike<any, infer Decoded> ? Decoded : never;
281
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
282
373
  //#region src/num/index.d.ts
283
374
  /**
284
375
  * Represents a numeric value as a bigint.
@@ -625,12 +716,328 @@ declare abstract class Entity {
625
716
  * @throws Will throw an error if the entity is not serializable
626
717
  */
627
718
  from(_: SubTypeLike): SubType;
628
- 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
+ };
629
827
  };
828
+ /**
829
+ * Convert the entity to bytes.
830
+ * @public
831
+ * @returns The bytes representation of the entity.
832
+ */
630
833
  abstract toBytes(): Bytes$1;
834
+ /**
835
+ * Calculate the hash of the entity.
836
+ * @public
837
+ * @returns The hash of the entity.
838
+ */
631
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
+ */
632
845
  abstract toHex(): Hex;
846
+ /**
847
+ * Create a clone of the entity.
848
+ * @public
849
+ * @returns A clone of the entity.
850
+ */
633
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
+ };
634
1041
  }
635
1042
  /**
636
1043
  * A class decorator to add methods implementation on the {@link Entity.Base} class
@@ -1027,100 +1434,6 @@ declare function keystoreDecrypt(keystore: unknown, password: string): Promise<{
1027
1434
  chainCode: Bytes$1;
1028
1435
  }>;
1029
1436
  //#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
1437
  //#region src/molecule/predefined.d.ts
1125
1438
  declare const Uint8Opt: Codec<NumLike | null | undefined, number | undefined>;
1126
1439
  declare const Uint8Vec: Codec<NumLike[], number[]>;
@@ -1155,7 +1468,7 @@ declare const String: Codec<string, string>;
1155
1468
  declare const StringVec: Codec<string[], string[]>;
1156
1469
  declare const StringOpt: Codec<string | null | undefined, string | undefined>;
1157
1470
  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 };
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 };
1159
1472
  }
1160
1473
  //#endregion
1161
1474
  //#region src/signer/btc/psbt.d.ts
@@ -1764,6 +2077,42 @@ declare function messageHashCkbSecp256k1(message: string | BytesLike): Hex;
1764
2077
  */
1765
2078
  declare function verifyMessageCkbSecp256k1(message: string | BytesLike, signature: string, publicKey: string): boolean;
1766
2079
  //#endregion
2080
+ //#region src/signer/ckb/signerCkbAlwaysSuccess.d.ts
2081
+ /**
2082
+ * A signer for the well-known always-success lock script.
2083
+ *
2084
+ * The always-success script does not require a signature, so signing a
2085
+ * transaction only needs to add its cell dependency.
2086
+ *
2087
+ * @public
2088
+ */
2089
+ declare class SignerCkbAlwaysSuccess extends Signer {
2090
+ get type(): SignerType;
2091
+ get signType(): SignerSignType;
2092
+ /**
2093
+ * Creates an instance of SignerCkbAlwaysSuccess.
2094
+ *
2095
+ * @param client - The client instance used for communication and resolving
2096
+ * the always-success deployment.
2097
+ */
2098
+ constructor(client: Client);
2099
+ connect(): Promise<void>;
2100
+ isConnected(): Promise<boolean>;
2101
+ getInternalAddress(): Promise<string>;
2102
+ /**
2103
+ * Gets the address of the always-success lock script.
2104
+ */
2105
+ getAddressObjs(): Promise<Address[]>;
2106
+ /**
2107
+ * Adds the always-success cell dependency to a transaction.
2108
+ */
2109
+ prepareTransaction(txLike: TransactionLike): Promise<Transaction>;
2110
+ /**
2111
+ * The always-success script requires no signature.
2112
+ */
2113
+ signOnlyTransaction(txLike: TransactionLike): Promise<Transaction>;
2114
+ }
2115
+ //#endregion
1767
2116
  //#region src/signer/ckb/signerCkbPublicKey.d.ts
1768
2117
  /**
1769
2118
  * @public
@@ -1900,7 +2249,65 @@ declare const MultisigCkbWitness_base: (abstract new () => {
1900
2249
  decode(_: BytesLike): SubType;
1901
2250
  fromBytes(_bytes: BytesLike): SubType;
1902
2251
  from(_: SubTypeLike): SubType;
1903
- Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/any;
2252
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
2253
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
2254
+ readonly inner: DecodedType<CodecType>;
2255
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
2256
+ _?: undefined | null;
2257
+ }): Result;
2258
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
2259
+ _: (inner: DecodedType<CodecType>) => Result;
2260
+ }): Result;
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, SubType = SubTypeLike>(): /*elided*/ any;
2273
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
2274
+ };
2275
+ };
2276
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): (abstract new (inner: DecodedType<CodecType>) => {
2277
+ readonly inner: DecodedType<CodecType>;
2278
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
2279
+ _?: undefined | null;
2280
+ }): Result;
2281
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
2282
+ _: (inner: DecodedType<CodecType>) => Result;
2283
+ }): Result;
2284
+ toBytes(): Bytes$1;
2285
+ clone(): SubType;
2286
+ eq(other: SubTypeLike): boolean;
2287
+ hash(): Hex;
2288
+ toHex(): Hex;
2289
+ }) & {
2290
+ byteLength?: number;
2291
+ encode(_: SubTypeLike): Bytes$1;
2292
+ decode(_: BytesLike): SubType;
2293
+ fromBytes(_bytes: BytesLike): SubType;
2294
+ from(_: SubTypeLike): SubType;
2295
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
2296
+ toBytes(): Bytes$1;
2297
+ clone(): SubType_1;
2298
+ eq(other: SubTypeLike_1): boolean;
2299
+ hash(): Hex;
2300
+ toHex(): Hex;
2301
+ }) & {
2302
+ byteLength?: number;
2303
+ encode(_: SubTypeLike_1): Bytes$1;
2304
+ decode(_: BytesLike): SubType_1;
2305
+ fromBytes(_bytes: BytesLike): SubType_1;
2306
+ from(_: SubTypeLike_1): SubType_1;
2307
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
2308
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
2309
+ };
2310
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
1904
2311
  };
1905
2312
  };
1906
2313
  /**
@@ -2528,7 +2935,7 @@ declare function buildNostrEventFromMessage(message: string | BytesLike): NostrE
2528
2935
  declare function nostrEventHash(event: NostrEvent): Bytes$1;
2529
2936
  declare function verifyMessageNostrEvent(message: string | BytesLike, signature: string, address: string): boolean;
2530
2937
  declare namespace barrel_d_exports {
2531
- export { Address, AddressLike, Bytes$1 as Bytes, BytesLike, Cell, CellAny, CellAnyLike, CellDep, CellDepInfo, CellDepInfoLike, CellDepLike, CellDepVec, CellInput, CellInputLike, CellInputVec, CellLike, CellOutput, CellOutputLike, CellOutputVec, Client, ClientBlock, ClientBlockHeader, ClientBlockHeaderLike, ClientBlockLike, ClientBlockUncle, ClientBlockUncleLike, ClientCache, ClientCacheMemory, ClientFindCellsResponse, ClientFindTransactionsGroupedResponse, ClientFindTransactionsResponse, ClientIndexerSearchKey, ClientIndexerSearchKeyFilter, ClientIndexerSearchKeyFilterLike, ClientIndexerSearchKeyLike, ClientIndexerSearchKeyTransaction, ClientIndexerSearchKeyTransactionLike, ClientJsonRpc, ClientJsonRpcConfig, ClientPublicMainnet, ClientPublicTestnet, ClientTransactionResponse, ClientTransactionResponseLike, Codec, CodecBool, CodecByte, CodecByte16, CodecByte32, CodecByte4, CodecByte8, CodecBytes, CodecLike, CodecRaw, CodecUint128, CodecUint128BE, CodecUint128LE, CodecUint16, CodecUint16BE, CodecUint16LE, CodecUint256, CodecUint256BE, CodecUint256LE, CodecUint32, CodecUint32BE, CodecUint32LE, CodecUint512, CodecUint512BE, CodecUint512LE, CodecUint64, CodecUint64BE, CodecUint64LE, CodecUint8, Constructor, DecodedType, DepType, DepTypeCodec, DepTypeLike, EncodableType, Entity, Epoch, EpochLike, ErrorClientBase, ErrorClientBaseLike, ErrorClientDuplicatedTransaction, ErrorClientMaxFeeRateExceeded, ErrorClientRBFRejected, ErrorClientResolveUnknown, ErrorClientVerification, ErrorClientWaitTransactionTimeout, ErrorTransactionInsufficientCapacity, ErrorTransactionInsufficientCoin, FixedPoint, FixedPointLike, HASH_CKB_LENGTH, HASH_CKB_SHORT_LENGTH, HashType, HashTypeCodec, HashTypeLike, Hasher, HasherCkb, HasherKeecak256, Hex, HexLike, InputToSign, InputToSignLike, KnownScript, LumosTransactionSkeletonType, MultisigCkbWitness, MultisigCkbWitnessLike, NetworkPreference, NostrEvent, Num, NumLike, One, OutPoint, OutPointLike, OutputsValidator, RawTransaction, RequestorJsonRpc, RequestorJsonRpcConfig, SECP256K1_SIGNATURE_LENGTH, Script, ScriptInfo, ScriptInfoLike, ScriptLike, ScriptOpt, ScriptVec, SignPsbtOptions, SignPsbtOptionsLike, Signature, Signer, SignerAlwaysError, SignerBtc, SignerBtcPublicKeyReadonly, SignerCkbPrivateKey, SignerCkbPublicKey, SignerCkbScriptReadonly, SignerDoge, SignerDogeAddressReadonly, SignerDogePrivateKey, SignerDummy, SignerEvm, SignerEvmAddressReadonly, SignerInfo, SignerMultisig, SignerMultisigCkbPrivateKey, SignerMultisigCkbReadonly, SignerMultisigNotEnoughSignaturesError, SignerNostr, SignerNostrPrivateKey, SignerNostrPublicKeyReadonly, SignerOpenLink, SignerSignType, SignerType, Since, SinceLike, Transaction, TransactionLike, TransactionStatus, Wallet, WitnessArgs, WitnessArgsLike, Zero, apply, btcEcdsaPublicKeyHash, btcP2pkhAddressFromPublicKey, btcPublicKeyFromP2pkhAddress, btcVarLengthBytesFrom, buildNostrEventFromMessage, bytesConcat, bytesConcatTo, bytesEq, bytesFrom, bytesLen, bytesLenUnsafe, bytesTo, calcDaoClaimEpoch, calcDaoProfit, codec, codecPadding, codecUint, codecUintNumber, depTypeFrom, depTypeFromBytes, depTypeToBytes, epochFrom, epochFromHex, epochToHex, fixedPointFrom, fixedPointToString, gcd, hashCkb, hashCkbShort, hashTypeFrom, hashTypeFromBytes, hashTypeId, hashTypeToBytes, hexFrom, isDaoOutputLimitExceeded, isWebview, keystoreDecrypt, keystoreEncrypt, messageHashBtcEcdsa, messageHashCkbSecp256k1, messageHashDogeEcdsa, barrel_d_exports$1 as mol, nostrEventHash, numBeFromBytes, numBeToBytes, numFrom, numFromBytes, numLeFromBytes, numLeToBytes, numMax, numMin, numToBytes, numToHex, recoverMessageSecp256k1, reduceAsync, signMessageSecp256k1, sleep, stringify, udtBalanceFrom, verifyMessageBtcEcdsa, verifyMessageCkbSecp256k1, verifyMessageDogeEcdsa, verifyMessageEvmPersonal, verifyMessageJoyId, verifyMessageNostrEvent, verifyMessageSecp256k1 };
2938
+ export { Address, AddressLike, Bytes$1 as Bytes, BytesLike, Cell, CellAny, CellAnyLike, CellDep, CellDepInfo, CellDepInfoLike, CellDepLike, CellDepVec, CellInput, CellInputLike, CellInputVec, CellLike, CellOutput, CellOutputLike, CellOutputVec, Client, ClientBlock, ClientBlockHeader, ClientBlockHeaderLike, ClientBlockLike, ClientBlockUncle, ClientBlockUncleLike, ClientCache, ClientCacheMemory, ClientFindCellsResponse, ClientFindTransactionsGroupedResponse, ClientFindTransactionsResponse, ClientIndexerSearchKey, ClientIndexerSearchKeyFilter, ClientIndexerSearchKeyFilterLike, ClientIndexerSearchKeyLike, ClientIndexerSearchKeyTransaction, ClientIndexerSearchKeyTransactionLike, ClientJsonRpc, ClientJsonRpcConfig, ClientPublicMainnet, ClientPublicTestnet, ClientTransactionResponse, ClientTransactionResponseLike, Codec, CodecBool, CodecByte, CodecByte16, CodecByte32, CodecByte4, CodecByte8, CodecBytes, CodecLike, CodecRaw, CodecUint128, CodecUint128BE, CodecUint128LE, CodecUint16, CodecUint16BE, CodecUint16LE, CodecUint256, CodecUint256BE, CodecUint256LE, CodecUint32, CodecUint32BE, CodecUint32LE, CodecUint512, CodecUint512BE, CodecUint512LE, CodecUint64, CodecUint64BE, CodecUint64LE, CodecUint8, Constructor, DecodedType, DepType, DepTypeCodec, DepTypeLike, EncodableType, Entity, Epoch, EpochLike, ErrorClientBase, ErrorClientBaseLike, ErrorClientDuplicatedTransaction, ErrorClientMaxFeeRateExceeded, ErrorClientRBFRejected, ErrorClientResolveUnknown, ErrorClientVerification, ErrorClientWaitTransactionTimeout, ErrorTransactionInsufficientCapacity, ErrorTransactionInsufficientCoin, FixedPoint, FixedPointLike, HASH_CKB_LENGTH, HASH_CKB_SHORT_LENGTH, HashType, HashTypeCodec, HashTypeLike, Hasher, HasherCkb, HasherKeecak256, Hex, HexLike, InputToSign, InputToSignLike, KnownScript, LumosTransactionSkeletonType, MultisigCkbWitness, MultisigCkbWitnessLike, NetworkPreference, NostrEvent, Num, NumLike, One, OutPoint, OutPointLike, OutputsValidator, RawTransaction, RequestorJsonRpc, RequestorJsonRpcConfig, SECP256K1_SIGNATURE_LENGTH, Script, ScriptInfo, ScriptInfoLike, ScriptLike, ScriptOpt, ScriptVec, SignPsbtOptions, SignPsbtOptionsLike, Signature, Signer, SignerAlwaysError, SignerBtc, SignerBtcPublicKeyReadonly, SignerCkbAlwaysSuccess, SignerCkbPrivateKey, SignerCkbPublicKey, SignerCkbScriptReadonly, SignerDoge, SignerDogeAddressReadonly, SignerDogePrivateKey, SignerDummy, SignerEvm, SignerEvmAddressReadonly, SignerInfo, SignerMultisig, SignerMultisigCkbPrivateKey, SignerMultisigCkbReadonly, SignerMultisigNotEnoughSignaturesError, SignerNostr, SignerNostrPrivateKey, SignerNostrPublicKeyReadonly, SignerOpenLink, SignerSignType, SignerType, Since, SinceLike, Transaction, TransactionLike, TransactionStatus, Wallet, WitnessArgs, WitnessArgsLike, Zero, apply, btcEcdsaPublicKeyHash, btcP2pkhAddressFromPublicKey, btcPublicKeyFromP2pkhAddress, btcVarLengthBytesFrom, buildNostrEventFromMessage, bytesConcat, bytesConcatTo, bytesEq, bytesFrom, bytesLen, bytesLenUnsafe, bytesTo, calcDaoClaimEpoch, calcDaoProfit, codec, codecPadding, codecUint, codecUintNumber, depTypeFrom, depTypeFromBytes, depTypeToBytes, epochFrom, epochFromHex, epochToHex, fixedPointFrom, fixedPointToString, gcd, hashCkb, hashCkbShort, hashTypeFrom, hashTypeFromBytes, hashTypeId, hashTypeToBytes, hexFrom, isDaoOutputLimitExceeded, isWebview, keystoreDecrypt, keystoreEncrypt, messageHashBtcEcdsa, messageHashCkbSecp256k1, messageHashDogeEcdsa, barrel_d_exports$1 as mol, nostrEventHash, numBeFromBytes, numBeToBytes, numFrom, numFromBytes, numLeFromBytes, numLeToBytes, numMax, numMin, numToBytes, numToHex, recoverMessageSecp256k1, reduceAsync, signMessageSecp256k1, sleep, stringify, udtBalanceFrom, verifyMessageBtcEcdsa, verifyMessageCkbSecp256k1, verifyMessageDogeEcdsa, verifyMessageEvmPersonal, verifyMessageJoyId, verifyMessageNostrEvent, verifyMessageSecp256k1 };
2532
2939
  }
2533
2940
  //#endregion
2534
2941
  //#region src/client/clientTypes.advanced.d.ts
@@ -2933,7 +3340,65 @@ declare const Epoch_base: (abstract new () => {
2933
3340
  decode(_: BytesLike): SubType;
2934
3341
  fromBytes(_bytes: BytesLike): SubType;
2935
3342
  from(_: SubTypeLike): SubType;
2936
- Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/any;
3343
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
3344
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
3345
+ readonly inner: DecodedType<CodecType>;
3346
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
3347
+ _?: undefined | null;
3348
+ }): Result;
3349
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
3350
+ _: (inner: DecodedType<CodecType>) => Result;
3351
+ }): Result;
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, SubType = SubTypeLike>(): /*elided*/ any;
3364
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
3365
+ };
3366
+ };
3367
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): (abstract new (inner: DecodedType<CodecType>) => {
3368
+ readonly inner: DecodedType<CodecType>;
3369
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
3370
+ _?: undefined | null;
3371
+ }): Result;
3372
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
3373
+ _: (inner: DecodedType<CodecType>) => Result;
3374
+ }): Result;
3375
+ toBytes(): Bytes$1;
3376
+ clone(): SubType;
3377
+ eq(other: SubTypeLike): boolean;
3378
+ hash(): Hex;
3379
+ toHex(): Hex;
3380
+ }) & {
3381
+ byteLength?: number;
3382
+ encode(_: SubTypeLike): Bytes$1;
3383
+ decode(_: BytesLike): SubType;
3384
+ fromBytes(_bytes: BytesLike): SubType;
3385
+ from(_: SubTypeLike): SubType;
3386
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
3387
+ toBytes(): Bytes$1;
3388
+ clone(): SubType_1;
3389
+ eq(other: SubTypeLike_1): boolean;
3390
+ hash(): Hex;
3391
+ toHex(): Hex;
3392
+ }) & {
3393
+ byteLength?: number;
3394
+ encode(_: SubTypeLike_1): Bytes$1;
3395
+ decode(_: BytesLike): SubType_1;
3396
+ fromBytes(_bytes: BytesLike): SubType_1;
3397
+ from(_: SubTypeLike_1): SubType_1;
3398
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
3399
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
3400
+ };
3401
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
2937
3402
  };
2938
3403
  };
2939
3404
  /**
@@ -3198,10 +3663,10 @@ declare enum KnownScript {
3198
3663
  NervosDao = "NervosDao",
3199
3664
  Secp256k1Blake160 = "Secp256k1Blake160",
3200
3665
  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)
3666
+ Secp256k1MultisigV2Beta = "Secp256k1MultisigV2Beta" // Fix rare failing case (https://github.com/nervosnetwork/ckb-system-scripts/pull/98)
3667
+ ,
3668
+ Secp256k1MultisigV2 = "Secp256k1MultisigV2" // Enhanced since handling (https://github.com/nervosnetwork/ckb-system-scripts/pull/99)
3669
+ ,
3205
3670
  AnyoneCanPay = "AnyoneCanPay",
3206
3671
  TypeId = "TypeId",
3207
3672
  SUdt = "SUdt",
@@ -3309,7 +3774,65 @@ declare const Script_base: (abstract new () => {
3309
3774
  decode(_: BytesLike): SubType;
3310
3775
  fromBytes(_bytes: BytesLike): SubType;
3311
3776
  from(_: SubTypeLike): SubType;
3312
- Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/any;
3777
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
3778
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
3779
+ readonly inner: DecodedType<CodecType>;
3780
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
3781
+ _?: undefined | null;
3782
+ }): Result;
3783
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
3784
+ _: (inner: DecodedType<CodecType>) => Result;
3785
+ }): Result;
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, SubType = SubTypeLike>(): /*elided*/ any;
3798
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
3799
+ };
3800
+ };
3801
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): (abstract new (inner: DecodedType<CodecType>) => {
3802
+ readonly inner: DecodedType<CodecType>;
3803
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
3804
+ _?: undefined | null;
3805
+ }): Result;
3806
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
3807
+ _: (inner: DecodedType<CodecType>) => Result;
3808
+ }): Result;
3809
+ toBytes(): Bytes$1;
3810
+ clone(): SubType;
3811
+ eq(other: SubTypeLike): boolean;
3812
+ hash(): Hex;
3813
+ toHex(): Hex;
3814
+ }) & {
3815
+ byteLength?: number;
3816
+ encode(_: SubTypeLike): Bytes$1;
3817
+ decode(_: BytesLike): SubType;
3818
+ fromBytes(_bytes: BytesLike): SubType;
3819
+ from(_: SubTypeLike): SubType;
3820
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
3821
+ toBytes(): Bytes$1;
3822
+ clone(): SubType_1;
3823
+ eq(other: SubTypeLike_1): boolean;
3824
+ hash(): Hex;
3825
+ toHex(): Hex;
3826
+ }) & {
3827
+ byteLength?: number;
3828
+ encode(_: SubTypeLike_1): Bytes$1;
3829
+ decode(_: BytesLike): SubType_1;
3830
+ fromBytes(_bytes: BytesLike): SubType_1;
3831
+ from(_: SubTypeLike_1): SubType_1;
3832
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
3833
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
3834
+ };
3835
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
3313
3836
  };
3314
3837
  };
3315
3838
  /**
@@ -3503,7 +4026,65 @@ declare const OutPoint_base: (abstract new () => {
3503
4026
  decode(_: BytesLike): SubType;
3504
4027
  fromBytes(_bytes: BytesLike): SubType;
3505
4028
  from(_: SubTypeLike): SubType;
3506
- Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/any;
4029
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4030
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
4031
+ readonly inner: DecodedType<CodecType>;
4032
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
4033
+ _?: undefined | null;
4034
+ }): Result;
4035
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4036
+ _: (inner: DecodedType<CodecType>) => Result;
4037
+ }): Result;
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, SubType = SubTypeLike>(): /*elided*/ any;
4050
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
4051
+ };
4052
+ };
4053
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): (abstract new (inner: DecodedType<CodecType>) => {
4054
+ readonly inner: DecodedType<CodecType>;
4055
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
4056
+ _?: undefined | null;
4057
+ }): Result;
4058
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4059
+ _: (inner: DecodedType<CodecType>) => Result;
4060
+ }): Result;
4061
+ toBytes(): Bytes$1;
4062
+ clone(): SubType;
4063
+ eq(other: SubTypeLike): boolean;
4064
+ hash(): Hex;
4065
+ toHex(): Hex;
4066
+ }) & {
4067
+ byteLength?: number;
4068
+ encode(_: SubTypeLike): Bytes$1;
4069
+ decode(_: BytesLike): SubType;
4070
+ fromBytes(_bytes: BytesLike): SubType;
4071
+ from(_: SubTypeLike): SubType;
4072
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
4073
+ toBytes(): Bytes$1;
4074
+ clone(): SubType_1;
4075
+ eq(other: SubTypeLike_1): boolean;
4076
+ hash(): Hex;
4077
+ toHex(): Hex;
4078
+ }) & {
4079
+ byteLength?: number;
4080
+ encode(_: SubTypeLike_1): Bytes$1;
4081
+ decode(_: BytesLike): SubType_1;
4082
+ fromBytes(_bytes: BytesLike): SubType_1;
4083
+ from(_: SubTypeLike_1): SubType_1;
4084
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
4085
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4086
+ };
4087
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
3507
4088
  };
3508
4089
  };
3509
4090
  /**
@@ -3587,7 +4168,65 @@ declare const CellOutput_base: (abstract new () => {
3587
4168
  decode(_: BytesLike): SubType;
3588
4169
  fromBytes(_bytes: BytesLike): SubType;
3589
4170
  from(_: SubTypeLike): SubType;
3590
- Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/any;
4171
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4172
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
4173
+ readonly inner: DecodedType<CodecType>;
4174
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
4175
+ _?: undefined | null;
4176
+ }): Result;
4177
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4178
+ _: (inner: DecodedType<CodecType>) => Result;
4179
+ }): Result;
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, SubType = SubTypeLike>(): /*elided*/ any;
4192
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
4193
+ };
4194
+ };
4195
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): (abstract new (inner: DecodedType<CodecType>) => {
4196
+ readonly inner: DecodedType<CodecType>;
4197
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
4198
+ _?: undefined | null;
4199
+ }): Result;
4200
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4201
+ _: (inner: DecodedType<CodecType>) => Result;
4202
+ }): Result;
4203
+ toBytes(): Bytes$1;
4204
+ clone(): SubType;
4205
+ eq(other: SubTypeLike): boolean;
4206
+ hash(): Hex;
4207
+ toHex(): Hex;
4208
+ }) & {
4209
+ byteLength?: number;
4210
+ encode(_: SubTypeLike): Bytes$1;
4211
+ decode(_: BytesLike): SubType;
4212
+ fromBytes(_bytes: BytesLike): SubType;
4213
+ from(_: SubTypeLike): SubType;
4214
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
4215
+ toBytes(): Bytes$1;
4216
+ clone(): SubType_1;
4217
+ eq(other: SubTypeLike_1): boolean;
4218
+ hash(): Hex;
4219
+ toHex(): Hex;
4220
+ }) & {
4221
+ byteLength?: number;
4222
+ encode(_: SubTypeLike_1): Bytes$1;
4223
+ decode(_: BytesLike): SubType_1;
4224
+ fromBytes(_bytes: BytesLike): SubType_1;
4225
+ from(_: SubTypeLike_1): SubType_1;
4226
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
4227
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4228
+ };
4229
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
3591
4230
  };
3592
4231
  };
3593
4232
  /**
@@ -3885,7 +4524,65 @@ declare const Since_base: (abstract new () => {
3885
4524
  decode(_: BytesLike): SubType;
3886
4525
  fromBytes(_bytes: BytesLike): SubType;
3887
4526
  from(_: SubTypeLike): SubType;
3888
- Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/any;
4527
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4528
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
4529
+ readonly inner: DecodedType<CodecType>;
4530
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
4531
+ _?: undefined | null;
4532
+ }): Result;
4533
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4534
+ _: (inner: DecodedType<CodecType>) => Result;
4535
+ }): Result;
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, SubType = SubTypeLike>(): /*elided*/ any;
4548
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
4549
+ };
4550
+ };
4551
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): (abstract new (inner: DecodedType<CodecType>) => {
4552
+ readonly inner: DecodedType<CodecType>;
4553
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
4554
+ _?: undefined | null;
4555
+ }): Result;
4556
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4557
+ _: (inner: DecodedType<CodecType>) => Result;
4558
+ }): Result;
4559
+ toBytes(): Bytes$1;
4560
+ clone(): SubType;
4561
+ eq(other: SubTypeLike): boolean;
4562
+ hash(): Hex;
4563
+ toHex(): Hex;
4564
+ }) & {
4565
+ byteLength?: number;
4566
+ encode(_: SubTypeLike): Bytes$1;
4567
+ decode(_: BytesLike): SubType;
4568
+ fromBytes(_bytes: BytesLike): SubType;
4569
+ from(_: SubTypeLike): SubType;
4570
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
4571
+ toBytes(): Bytes$1;
4572
+ clone(): SubType_1;
4573
+ eq(other: SubTypeLike_1): boolean;
4574
+ hash(): Hex;
4575
+ toHex(): Hex;
4576
+ }) & {
4577
+ byteLength?: number;
4578
+ encode(_: SubTypeLike_1): Bytes$1;
4579
+ decode(_: BytesLike): SubType_1;
4580
+ fromBytes(_bytes: BytesLike): SubType_1;
4581
+ from(_: SubTypeLike_1): SubType_1;
4582
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
4583
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4584
+ };
4585
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
3889
4586
  };
3890
4587
  };
3891
4588
  /**
@@ -3986,7 +4683,65 @@ declare const CellInput_base: (abstract new () => {
3986
4683
  decode(_: BytesLike): SubType;
3987
4684
  fromBytes(_bytes: BytesLike): SubType;
3988
4685
  from(_: SubTypeLike): SubType;
3989
- Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/any;
4686
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4687
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
4688
+ readonly inner: DecodedType<CodecType>;
4689
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
4690
+ _?: undefined | null;
4691
+ }): Result;
4692
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4693
+ _: (inner: DecodedType<CodecType>) => Result;
4694
+ }): Result;
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, SubType = SubTypeLike>(): /*elided*/ any;
4707
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
4708
+ };
4709
+ };
4710
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): (abstract new (inner: DecodedType<CodecType>) => {
4711
+ readonly inner: DecodedType<CodecType>;
4712
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
4713
+ _?: undefined | null;
4714
+ }): Result;
4715
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4716
+ _: (inner: DecodedType<CodecType>) => Result;
4717
+ }): Result;
4718
+ toBytes(): Bytes$1;
4719
+ clone(): SubType;
4720
+ eq(other: SubTypeLike): boolean;
4721
+ hash(): Hex;
4722
+ toHex(): Hex;
4723
+ }) & {
4724
+ byteLength?: number;
4725
+ encode(_: SubTypeLike): Bytes$1;
4726
+ decode(_: BytesLike): SubType;
4727
+ fromBytes(_bytes: BytesLike): SubType;
4728
+ from(_: SubTypeLike): SubType;
4729
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
4730
+ toBytes(): Bytes$1;
4731
+ clone(): SubType_1;
4732
+ eq(other: SubTypeLike_1): boolean;
4733
+ hash(): Hex;
4734
+ toHex(): Hex;
4735
+ }) & {
4736
+ byteLength?: number;
4737
+ encode(_: SubTypeLike_1): Bytes$1;
4738
+ decode(_: BytesLike): SubType_1;
4739
+ fromBytes(_bytes: BytesLike): SubType_1;
4740
+ from(_: SubTypeLike_1): SubType_1;
4741
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
4742
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4743
+ };
4744
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
3990
4745
  };
3991
4746
  };
3992
4747
  /**
@@ -4085,7 +4840,65 @@ declare const CellDep_base: (abstract new () => {
4085
4840
  decode(_: BytesLike): SubType;
4086
4841
  fromBytes(_bytes: BytesLike): SubType;
4087
4842
  from(_: SubTypeLike): SubType;
4088
- Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/any;
4843
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4844
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
4845
+ readonly inner: DecodedType<CodecType>;
4846
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
4847
+ _?: undefined | null;
4848
+ }): Result;
4849
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4850
+ _: (inner: DecodedType<CodecType>) => Result;
4851
+ }): Result;
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, SubType = SubTypeLike>(): /*elided*/ any;
4864
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
4865
+ };
4866
+ };
4867
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): (abstract new (inner: DecodedType<CodecType>) => {
4868
+ readonly inner: DecodedType<CodecType>;
4869
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
4870
+ _?: undefined | null;
4871
+ }): Result;
4872
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4873
+ _: (inner: DecodedType<CodecType>) => Result;
4874
+ }): Result;
4875
+ toBytes(): Bytes$1;
4876
+ clone(): SubType;
4877
+ eq(other: SubTypeLike): boolean;
4878
+ hash(): Hex;
4879
+ toHex(): Hex;
4880
+ }) & {
4881
+ byteLength?: number;
4882
+ encode(_: SubTypeLike): Bytes$1;
4883
+ decode(_: BytesLike): SubType;
4884
+ fromBytes(_bytes: BytesLike): SubType;
4885
+ from(_: SubTypeLike): SubType;
4886
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
4887
+ toBytes(): Bytes$1;
4888
+ clone(): SubType_1;
4889
+ eq(other: SubTypeLike_1): boolean;
4890
+ hash(): Hex;
4891
+ toHex(): Hex;
4892
+ }) & {
4893
+ byteLength?: number;
4894
+ encode(_: SubTypeLike_1): Bytes$1;
4895
+ decode(_: BytesLike): SubType_1;
4896
+ fromBytes(_bytes: BytesLike): SubType_1;
4897
+ from(_: SubTypeLike_1): SubType_1;
4898
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
4899
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4900
+ };
4901
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4089
4902
  };
4090
4903
  };
4091
4904
  /**
@@ -4161,7 +4974,65 @@ declare const WitnessArgs_base: (abstract new () => {
4161
4974
  decode(_: BytesLike): SubType;
4162
4975
  fromBytes(_bytes: BytesLike): SubType;
4163
4976
  from(_: SubTypeLike): SubType;
4164
- Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/any;
4977
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4978
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
4979
+ readonly inner: DecodedType<CodecType>;
4980
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
4981
+ _?: undefined | null;
4982
+ }): Result;
4983
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4984
+ _: (inner: DecodedType<CodecType>) => Result;
4985
+ }): Result;
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, SubType = SubTypeLike>(): /*elided*/ any;
4998
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
4999
+ };
5000
+ };
5001
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): (abstract new (inner: DecodedType<CodecType>) => {
5002
+ readonly inner: DecodedType<CodecType>;
5003
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
5004
+ _?: undefined | null;
5005
+ }): Result;
5006
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
5007
+ _: (inner: DecodedType<CodecType>) => Result;
5008
+ }): Result;
5009
+ toBytes(): Bytes$1;
5010
+ clone(): SubType;
5011
+ eq(other: SubTypeLike): boolean;
5012
+ hash(): Hex;
5013
+ toHex(): Hex;
5014
+ }) & {
5015
+ byteLength?: number;
5016
+ encode(_: SubTypeLike): Bytes$1;
5017
+ decode(_: BytesLike): SubType;
5018
+ fromBytes(_bytes: BytesLike): SubType;
5019
+ from(_: SubTypeLike): SubType;
5020
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
5021
+ toBytes(): Bytes$1;
5022
+ clone(): SubType_1;
5023
+ eq(other: SubTypeLike_1): boolean;
5024
+ hash(): Hex;
5025
+ toHex(): Hex;
5026
+ }) & {
5027
+ byteLength?: number;
5028
+ encode(_: SubTypeLike_1): Bytes$1;
5029
+ decode(_: BytesLike): SubType_1;
5030
+ fromBytes(_bytes: BytesLike): SubType_1;
5031
+ from(_: SubTypeLike_1): SubType_1;
5032
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
5033
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
5034
+ };
5035
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4165
5036
  };
4166
5037
  };
4167
5038
  /**
@@ -4253,7 +5124,65 @@ declare const Transaction_base: (abstract new () => {
4253
5124
  decode(_: BytesLike): SubType;
4254
5125
  fromBytes(_bytes: BytesLike): SubType;
4255
5126
  from(_: SubTypeLike): SubType;
4256
- Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/any;
5127
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
5128
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
5129
+ readonly inner: DecodedType<CodecType>;
5130
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
5131
+ _?: undefined | null;
5132
+ }): Result;
5133
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
5134
+ _: (inner: DecodedType<CodecType>) => Result;
5135
+ }): Result;
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, SubType = SubTypeLike>(): /*elided*/ any;
5148
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
5149
+ };
5150
+ };
5151
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): (abstract new (inner: DecodedType<CodecType>) => {
5152
+ readonly inner: DecodedType<CodecType>;
5153
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
5154
+ _?: undefined | null;
5155
+ }): Result;
5156
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
5157
+ _: (inner: DecodedType<CodecType>) => Result;
5158
+ }): Result;
5159
+ toBytes(): Bytes$1;
5160
+ clone(): SubType;
5161
+ eq(other: SubTypeLike): boolean;
5162
+ hash(): Hex;
5163
+ toHex(): Hex;
5164
+ }) & {
5165
+ byteLength?: number;
5166
+ encode(_: SubTypeLike): Bytes$1;
5167
+ decode(_: BytesLike): SubType;
5168
+ fromBytes(_bytes: BytesLike): SubType;
5169
+ from(_: SubTypeLike): SubType;
5170
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
5171
+ toBytes(): Bytes$1;
5172
+ clone(): SubType_1;
5173
+ eq(other: SubTypeLike_1): boolean;
5174
+ hash(): Hex;
5175
+ toHex(): Hex;
5176
+ }) & {
5177
+ byteLength?: number;
5178
+ encode(_: SubTypeLike_1): Bytes$1;
5179
+ decode(_: BytesLike): SubType_1;
5180
+ fromBytes(_bytes: BytesLike): SubType_1;
5181
+ from(_: SubTypeLike_1): SubType_1;
5182
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
5183
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
5184
+ };
5185
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4257
5186
  };
4258
5187
  };
4259
5188
  /**
@@ -4533,25 +5462,45 @@ declare class Transaction extends Transaction_base {
4533
5462
  */
4534
5463
  addCellDepsOfKnownScripts(client: Client, ...scripts: (KnownScript | KnownScript[])[]): Promise<void>;
4535
5464
  /**
4536
- * Set output data at index.
5465
+ * Sets output data at an index.
5466
+ *
5467
+ * @deprecated Use {@link setOutputData} instead.
5468
+ */
5469
+ setOutputDataAt(index: number, data: HexLike): void;
5470
+ /**
5471
+ * Sets output data at an index, filling any skipped positions with empty data.
4537
5472
  *
4538
5473
  * @param index - The index of the output data.
4539
5474
  * @param data - The data to set.
5475
+ * @throws If `index` is invalid or does not identify an existing output.
4540
5476
  *
4541
5477
  * @example
4542
5478
  * ```typescript
4543
- * tx.setOutputDataAt(0, "0x00");
5479
+ * tx.setOutputData(0, "0x00");
4544
5480
  * ```
4545
5481
  */
4546
- setOutputDataAt(index: number, data: HexLike): void;
5482
+ setOutputData(index: number, data: HexLike): void;
5483
+ /**
5484
+ * Gets the data associated with an output.
5485
+ *
5486
+ * @param index - The output index.
5487
+ * @returns The output data, or `undefined` if the index is invalid or out of bounds.
5488
+ *
5489
+ * @example
5490
+ * ```typescript
5491
+ * const data = tx.getOutputData(0);
5492
+ * ```
5493
+ */
5494
+ getOutputData(index: NumLike): Hex | undefined;
4547
5495
  /**
4548
- * get input
5496
+ * Gets an input.
4549
5497
  *
4550
- * @param index - The cell input index
5498
+ * @param index - The cell input index.
5499
+ * @returns The input, or `undefined` if the index is invalid or out of bounds.
4551
5500
  *
4552
5501
  * @example
4553
5502
  * ```typescript
4554
- * await tx.getInput(0);
5503
+ * tx.getInput(0);
4555
5504
  * ```
4556
5505
  */
4557
5506
  getInput(index: NumLike): CellInput | undefined;
@@ -4567,13 +5516,14 @@ declare class Transaction extends Transaction_base {
4567
5516
  */
4568
5517
  addInput(inputLike: CellInputLike): number;
4569
5518
  /**
4570
- * get output
5519
+ * Gets an output cell together with its data.
4571
5520
  *
4572
- * @param index - The cell output index
5521
+ * @param index - The cell output index.
5522
+ * @returns The output cell, or `undefined` if the index is invalid or out of bounds.
4573
5523
  *
4574
5524
  * @example
4575
5525
  * ```typescript
4576
- * await tx.getOutput(0);
5526
+ * tx.getOutput(0);
4577
5527
  * ```
4578
5528
  */
4579
5529
  getOutput(index: NumLike): CellAny | undefined;
@@ -4622,52 +5572,143 @@ declare class Transaction extends Transaction_base {
4622
5572
  addOutput(cellLike: CellAnyLike): number;
4623
5573
  addOutput(outputLike: CellOutputLike, outputDataLike?: HexLike | null): number;
4624
5574
  /**
4625
- * Get witness at index as WitnessArgs
5575
+ * Sets or appends an output cell.
5576
+ *
5577
+ * An index equal to the current output count appends the cell. Existing
5578
+ * outputs are replaced together with their corresponding output data.
5579
+ *
5580
+ * @param index - The output index to set, from zero through the current output count.
5581
+ * @param cellLike - A cell-like object containing both the output and its data.
5582
+ * @throws If `index` is not a valid array index or is greater than the output count.
5583
+ *
5584
+ * @example
5585
+ * ```typescript
5586
+ * tx.setOutput(0, {
5587
+ * cellOutput: { lock: recipientLock },
5588
+ * outputData: "0x1234",
5589
+ * });
5590
+ * ```
5591
+ */
5592
+ setOutput(index: number, cellLike: CellAnyLike): void;
5593
+ /**
5594
+ * Sets or appends an output and its data.
5595
+ *
5596
+ * @param index - The output index to set, from zero through the current output count.
5597
+ * @param outputLike - The cell output to set.
5598
+ * @param outputDataLike - The output data, defaulting to `"0x"`.
5599
+ * @throws If `index` is not a valid array index or is greater than the output count.
5600
+ *
5601
+ * @example
5602
+ * ```typescript
5603
+ * tx.setOutput(0, { lock: recipientLock }, "0x1234");
5604
+ * ```
5605
+ */
5606
+ setOutput(index: number, outputLike: CellOutputLike, outputDataLike?: HexLike | null): void;
5607
+ /**
5608
+ * Sets or appends an input.
5609
+ *
5610
+ * An index equal to the current input count appends the input using
5611
+ * {@link addInput}, preserving witness alignment. An existing index replaces
5612
+ * only that input.
5613
+ *
5614
+ * @param index - The input index to set, from zero through the current input count.
5615
+ * @param inputLike - The cell input to set.
5616
+ * @throws If `index` is not a valid array index or is greater than the input count.
5617
+ *
5618
+ * @example
5619
+ * ```typescript
5620
+ * tx.setInput(0, {
5621
+ * previousOutput: { txHash: "0x...", index: 0 },
5622
+ * });
5623
+ * ```
5624
+ */
5625
+ setInput(index: number, inputLike: CellInputLike): void;
5626
+ /**
5627
+ * Gets a raw witness.
5628
+ *
5629
+ * @param index - The witness index.
5630
+ * @returns The witness, or `undefined` if the index is invalid or out of bounds.
5631
+ *
5632
+ * @example
5633
+ * ```typescript
5634
+ * const witness = tx.getWitness(0);
5635
+ * ```
5636
+ */
5637
+ getWitness(index: NumLike): Hex | undefined;
5638
+ /**
5639
+ * Gets the witness at an index as `WitnessArgs`.
4626
5640
  *
4627
5641
  * @param index - The index of the witness.
4628
5642
  * @returns The witness parsed as WitnessArgs.
4629
5643
  *
4630
5644
  * @example
4631
5645
  * ```typescript
4632
- * const witnessArgs = tx.getWitnessArgsAt(0);
5646
+ * const witnessArgs = tx.getWitnessArgs(0);
4633
5647
  * ```
4634
5648
  */
4635
- getWitnessArgsAt(index: number): WitnessArgs | undefined;
5649
+ getWitnessArgs(index: NumLike): WitnessArgs | undefined;
4636
5650
  /**
4637
- * Get witness at index as WitnessArgs, throw if failed to decode
5651
+ * Gets the witness at an index as `WitnessArgs`, throwing if decoding fails.
4638
5652
  *
4639
5653
  * @param index - The index of the witness.
4640
5654
  * @returns The witness parsed as WitnessArgs.
5655
+ * @throws If the witness cannot be decoded as `WitnessArgs`.
4641
5656
  *
4642
5657
  * @example
4643
5658
  * ```typescript
4644
- * const witnessArgs = tx.getWitnessArgsAtUnsafe(0);
5659
+ * const witnessArgs = tx.getWitnessArgsUnsafe(0);
4645
5660
  * ```
4646
5661
  */
4647
- getWitnessArgsAtUnsafe(index: number): WitnessArgs | undefined;
5662
+ getWitnessArgsUnsafe(index: NumLike): WitnessArgs | undefined;
4648
5663
  /**
4649
- * Set witness at index by WitnessArgs
5664
+ * Sets a witness at an index from `WitnessArgs`.
4650
5665
  *
4651
5666
  * @param index - The index of the witness.
4652
- * @param witness - The WitnessArgs to set.
5667
+ * @param witnessLike - The WitnessArgs-like value to set.
5668
+ * @throws If `index` is not a valid array index.
4653
5669
  *
4654
5670
  * @example
4655
5671
  * ```typescript
4656
- * await tx.setWitnessArgsAt(0, witnessArgs);
5672
+ * tx.setWitnessArgs(0, witnessArgs);
4657
5673
  * ```
4658
5674
  */
4659
- setWitnessArgsAt(index: number, witness: WitnessArgs): void;
5675
+ setWitnessArgs(index: number, witnessLike: WitnessArgsLike): void;
4660
5676
  /**
4661
- * Set witness at index
5677
+ * Sets a witness at an index, filling any skipped positions with empty witnesses.
4662
5678
  *
4663
5679
  * @param index - The index of the witness.
4664
5680
  * @param witness - The witness to set.
5681
+ * @throws If `index` is not a valid array index.
4665
5682
  *
4666
5683
  * @example
4667
5684
  * ```typescript
4668
- * await tx.setWitnessAt(0, witness);
5685
+ * tx.setWitness(0, witness);
4669
5686
  * ```
4670
5687
  */
5688
+ setWitness(index: number, witness: HexLike): void;
5689
+ /**
5690
+ * Gets the witness at an index as `WitnessArgs`.
5691
+ *
5692
+ * @deprecated Use {@link getWitnessArgs} instead.
5693
+ */
5694
+ getWitnessArgsAt(index: NumLike): WitnessArgs | undefined;
5695
+ /**
5696
+ * Gets the witness at an index as `WitnessArgs`, throwing if decoding fails.
5697
+ *
5698
+ * @deprecated Use {@link getWitnessArgsUnsafe} instead.
5699
+ */
5700
+ getWitnessArgsAtUnsafe(index: NumLike): WitnessArgs | undefined;
5701
+ /**
5702
+ * Sets a witness at an index from `WitnessArgs`.
5703
+ *
5704
+ * @deprecated Use {@link setWitnessArgs} instead.
5705
+ */
5706
+ setWitnessArgsAt(index: number, witnessLike: WitnessArgsLike): void;
5707
+ /**
5708
+ * Sets a witness at an index.
5709
+ *
5710
+ * @deprecated Use {@link setWitness} instead.
5711
+ */
4671
5712
  setWitnessAt(index: number, witness: HexLike): void;
4672
5713
  /**
4673
5714
  * Prepare dummy witness for sighash all method
@@ -5992,17 +7033,7 @@ declare class JsonRpcTransformers {
5992
7033
  static cellDepTo(cellDep: JsonRpcCellDep): CellDep;
5993
7034
  static transactionFrom(txLike: TransactionLike): JsonRpcTransaction;
5994
7035
  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
- }: {
7036
+ static transactionResponseTo({ cycles, tx_status: { status, block_number, block_hash, tx_index, reason }, transaction }: {
6006
7037
  cycles?: NumLike;
6007
7038
  tx_status: {
6008
7039
  status: TransactionStatus;
@@ -6019,10 +7050,7 @@ declare class JsonRpcTransformers {
6019
7050
  static rangeFrom([a, b]: [NumLike, NumLike]): [Hex, Hex];
6020
7051
  static indexerSearchKeyFilterFrom(filter: ClientIndexerSearchKeyFilter): JsonRpcIndexerSearchKeyFilter;
6021
7052
  static indexerSearchKeyFrom(keyLike: ClientIndexerSearchKeyLike): JsonRpcIndexerSearchKey;
6022
- static findCellsResponseTo({
6023
- last_cursor,
6024
- objects
6025
- }: {
7053
+ static findCellsResponseTo({ last_cursor, objects }: {
6026
7054
  last_cursor: string;
6027
7055
  objects: {
6028
7056
  out_point: JsonRpcOutPoint;
@@ -6031,10 +7059,7 @@ declare class JsonRpcTransformers {
6031
7059
  }[];
6032
7060
  }): ClientFindCellsResponse;
6033
7061
  static indexerSearchKeyTransactionFrom(keyLike: ClientIndexerSearchKeyTransactionLike): JsonRpcIndexerSearchKeyTransaction;
6034
- static findTransactionsResponseTo({
6035
- last_cursor,
6036
- objects
6037
- }: JsonRpcIndexerFindTransactionsResponse | JsonRpcIndexerFindTransactionsGroupedResponse): ClientFindTransactionsResponse | ClientFindTransactionsGroupedResponse;
7062
+ static findTransactionsResponseTo({ last_cursor, objects }: JsonRpcIndexerFindTransactionsResponse | JsonRpcIndexerFindTransactionsGroupedResponse): ClientFindTransactionsResponse | ClientFindTransactionsGroupedResponse;
6038
7063
  }
6039
7064
  //#endregion
6040
7065
  //#region src/hasher/advanced.d.ts
@@ -6043,5 +7068,5 @@ declare namespace advancedBarrel_d_exports {
6043
7068
  export { ADDRESS_BECH32_LIMIT, AddressFormat, BytesFromEncoding, CKB_BLAKE2B_PERSONAL, CellRecord, ClientCollectableSearchKeyFilterLike, ClientCollectableSearchKeyLike, DEFAULT_CONFIRMED_BLOCK_TIME, DEFAULT_MAX_FEE_RATE, DEFAULT_MIN_FEE_RATE, DEP_TYPES, DEP_TYPE_TO_NUM, HASH_TYPES, HASH_TYPE_TO_NUM, JsonRpcBlock, JsonRpcBlockHeader, JsonRpcBlockUncle, JsonRpcCellDep, JsonRpcCellInput, JsonRpcCellOutput, JsonRpcDepType, JsonRpcHashType, JsonRpcIndexerFindTransactionsGroupedResponse, JsonRpcIndexerFindTransactionsResponse, JsonRpcIndexerSearchKey, JsonRpcIndexerSearchKeyFilter, JsonRpcIndexerSearchKeyTransaction, JsonRpcOutPoint, JsonRpcPayload, JsonRpcScript, JsonRpcTransaction, JsonRpcTransformers, MAINNET_SCRIPTS, MapLru, NUM_TO_DEP_TYPE, NUM_TO_HASH_TYPE, TESTNET_SCRIPTS, Transport, TransportFallback, TransportHttp, TransportWebSocket, addressFromPayload, addressPayloadFromString, clientSearchKeyRangeFrom, filterCell, filterData, filterNumByRange, filterScript, filterScriptByLenRange, transportFromUri };
6044
7069
  }
6045
7070
  //#endregion
6046
- 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-CiJnF8me.d.ts.map
7071
+ export { CellDep as $, Address as $i, SignerCkbPublicKey as $n, CodecByte as $r, ClientFindCellsResponse as $t, DEP_TYPES as A, Constructor as Ai, verifyMessageNostrEvent as An, keystoreEncrypt as Ar, HashTypeCodec as At, ClientPublicTestnet as B, numBeToBytes as Bi, SignerDummy as Bn, HASH_CKB_LENGTH as Br, Epoch as Bt, DEFAULT_CONFIRMED_BLOCK_TIME as C, CodecUint64LE as Ci, ClientCollectableSearchKeyLike as Cn, Wallet as Cr, depTypeFrom as Ct, filterNumByRange as D, codecUintNumber as Di, barrel_d_exports as Dn, SignPsbtOptionsLike as Dr, udtBalanceFrom as Dt, filterData as E, codecUint as Ei, clientSearchKeyRangeFrom as En, SignPsbtOptions as Er, isDaoOutputLimitExceeded as Et, NUM_TO_HASH_TYPE as F, sleep as Fi, verifyMessageEvmPersonal as Fn, TransportWebSocket as Fr, ScriptVec as Ft, ClientCacheMemory as G, numMax as Gi, SignerDoge as Gn, Hasher as Gr, CellDepInfo as Gt, ClientJsonRpc as H, numFromBytes as Hi, verifyMessageDogeEcdsa as Hn, HasherCkb as Hr, epochFrom as Ht, ADDRESS_BECH32_LIMIT as I, stringify as Ii, SignerEvmAddressReadonly as In, TransportHttp as Ir, hashTypeFrom as It, ErrorTransactionInsufficientCoin as J, numToHex as Ji, MultisigCkbWitness as Jn, One as Jr, ClientBlockHeader as Jt, ClientCache as K, numMin as Ki, verifyMessageJoyId as Kn, FixedPoint as Kr, CellDepInfoLike as Kt, AddressFormat as L, Num as Li, SignerEvm as Ln, JsonRpcPayload as Lr, hashTypeFromBytes as Lt, NUM_TO_DEP_TYPE as M, gcd as Mi, SignerNostrPublicKeyReadonly as Mn, RequestorJsonRpcConfig as Mr, Script as Mt, HASH_TYPES as N, isWebview as Ni, NostrEvent as Nn, TransportFallback as Nr, ScriptLike as Nt, filterScript as O, Entity as Oi, buildNostrEventFromMessage as On, barrel_d_exports$1 as Or, LumosTransactionSkeletonType as Ot, HASH_TYPE_TO_NUM as P, reduceAsync as Pi, SignerNostr as Pn, transportFromUri as Pr, ScriptOpt as Pt, CellAnyLike as Q, EncodableType as Qi, SignerCkbPrivateKey as Qn, CodecBool as Qr, ClientBlockUncleLike as Qt, addressFromPayload as R, NumLike as Ri, SignerOpenLink as Rn, Transport as Rr, hashTypeToBytes as Rt, CellRecord as S, CodecUint64BE as Si, ClientCollectableSearchKeyFilterLike as Sn, SignerType as Sr, calcDaoProfit as St, filterCell as T, codecPadding as Ti, DEFAULT_MIN_FEE_RATE as Tn, InputToSignLike as Tr, depTypeToBytes as Tt, ClientJsonRpcConfig as U, numLeFromBytes as Ui, SignerDogePrivateKey as Un, hashCkb as Ur, epochFromHex as Ut, ClientPublicMainnet as V, numFrom as Vi, messageHashDogeEcdsa as Vn, HASH_CKB_SHORT_LENGTH as Vr, EpochLike as Vt, Client as W, numLeToBytes as Wi, SignerDogeAddressReadonly as Wn, hashCkbShort as Wr, epochToHex as Wt, Cell as X, CodecLike as Xi, SignerMultisigCkbReadonly as Xn, fixedPointFrom as Xr, ClientBlockLike as Xt, hashTypeId as Y, Codec as Yi, MultisigCkbWitnessLike as Yn, Zero as Yr, ClientBlockHeaderLike as Yt, CellAny as Z, DecodedType as Zi, SignerCkbScriptReadonly as Zn, fixedPointToString as Zr, ClientBlockUncle as Zt, JsonRpcOutPoint as _, CodecUint32LE as _i, ErrorClientWaitTransactionTimeout as _n, Signer as _r, Transaction as _t, JsonRpcBlockHeader as a, hexFrom as aa, CodecRaw as ai, ClientIndexerSearchKeyLike as an, verifyMessageCkbSecp256k1 as ar, CellLike as at, TESTNET_SCRIPTS as b, CodecUint512LE as bi, ScriptInfoLike as bn, SignerMultisigNotEnoughSignaturesError as br, WitnessArgsLike as bt, JsonRpcCellInput as c, bytesConcat as ca, CodecUint128LE as ci, ClientTransactionResponse as cn, btcP2pkhAddressFromPublicKey as cr, CellOutputVec as ct, JsonRpcHashType as d, bytesFrom as da, CodecUint16LE as di, ErrorClientBaseLike as dn, messageHashBtcEcdsa as dr, DepTypeLike as dt, AddressLike as ea, CodecByte16 as ei, ClientFindTransactionsGroupedResponse as en, SignerCkbAlwaysSuccess as er, CellDepLike as et, JsonRpcIndexerFindTransactionsGroupedResponse as f, bytesTo as fa, CodecUint256 as fi, ErrorClientDuplicatedTransaction as fn, verifyMessageBtcEcdsa as fr, OutPoint as ft, JsonRpcIndexerSearchKeyTransaction as g, CodecUint32BE as gi, ErrorClientVerification as gn, Signature as gr, SinceLike as gt, JsonRpcIndexerSearchKeyFilter as h, CodecUint32 as hi, ErrorClientResolveUnknown as hn, NetworkPreference as hr, Since as ht, JsonRpcBlock as i, bytesLenUnsafe as ia, CodecBytes as ii, ClientIndexerSearchKeyFilterLike as in, signMessageSecp256k1 as ir, CellInputVec as it, DEP_TYPE_TO_NUM as j, apply as ji, SignerNostrPrivateKey as jn, RequestorJsonRpc as jr, HashTypeLike as jt, filterScriptByLenRange as k, codec as ki, nostrEventHash as kn, keystoreDecrypt as kr, HashType as kt, JsonRpcCellOutput as l, bytesConcatTo as la, CodecUint16 as li, ClientTransactionResponseLike as ln, btcPublicKeyFromP2pkhAddress as lr, DepType as lt, JsonRpcIndexerSearchKey as m, CodecUint256LE as mi, ErrorClientRBFRejected as mn, SignerBtc as mr, RawTransaction as mt, CKB_BLAKE2B_PERSONAL as n, HexLike as na, CodecByte4 as ni, ClientIndexerSearchKey as nn, messageHashCkbSecp256k1 as nr, CellInput as nt, JsonRpcBlockUncle as o, Bytes$1 as oa, CodecUint128 as oi, ClientIndexerSearchKeyTransaction as on, verifyMessageSecp256k1 as or, CellOutput as ot, JsonRpcIndexerFindTransactionsResponse as p, BytesFromEncoding as pa, CodecUint256BE as pi, ErrorClientMaxFeeRateExceeded as pn, SignerBtcPublicKeyReadonly as pr, OutPointLike as pt, ErrorTransactionInsufficientCapacity as q, numToBytes as qi, SignerMultisigCkbPrivateKey as qn, FixedPointLike as qr, ClientBlock as qt, JsonRpcTransformers as r, bytesLen as ra, CodecByte8 as ri, ClientIndexerSearchKeyFilter as rn, recoverMessageSecp256k1 as rr, CellInputLike as rt, JsonRpcCellDep as s, BytesLike as sa, CodecUint128BE as si, ClientIndexerSearchKeyTransactionLike as sn, btcEcdsaPublicKeyHash as sr, CellOutputLike as st, advancedBarrel_d_exports as t, Hex as ta, CodecByte32 as ti, ClientFindTransactionsResponse as tn, SECP256K1_SIGNATURE_LENGTH as tr, CellDepVec as tt, JsonRpcDepType as u, bytesEq as ua, CodecUint16BE as ui, ErrorClientBase as un, btcVarLengthBytesFrom as ur, DepTypeCodec as ut, JsonRpcScript as v, CodecUint512 as vi, OutputsValidator as vn, SignerInfo as vr, TransactionLike as vt, MapLru as w, CodecUint8 as wi, DEFAULT_MAX_FEE_RATE as wn, InputToSign as wr, depTypeFromBytes as wt, MAINNET_SCRIPTS as x, CodecUint64 as xi, TransactionStatus as xn, SignerSignType as xr, calcDaoClaimEpoch as xt, JsonRpcTransaction as y, CodecUint512BE as yi, ScriptInfo as yn, SignerMultisig as yr, WitnessArgs as yt, addressPayloadFromString as z, numBeFromBytes as zi, SignerAlwaysError as zn, HasherKeecak256 as zr, KnownScript as zt };
7072
+ //# sourceMappingURL=advancedBarrel-BbbHx4z4.d.mts.map