@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,3 +1,4 @@
1
+ //#endregion
1
2
  //#region src/bytes/advanced.d.ts
2
3
  /**
3
4
  * Represents the possible encoding formats for converting bytes.
@@ -260,15 +261,8 @@ declare class Codec<Encodable, Decoded = Encodable> {
260
261
  decodeOr<T>(decodable: BytesLike, fallback: T, config?: {
261
262
  isExtraFieldIgnored?: boolean;
262
263
  }): Decoded | T;
263
- static from<Encodable, Decoded = Encodable>({
264
- encode,
265
- decode,
266
- byteLength
267
- }: CodecLike<Encodable, Decoded>): Codec<Encodable, Decoded>;
268
- map<NewEncodable = Encodable, NewDecoded = Decoded>({
269
- inMap,
270
- outMap
271
- }: {
264
+ static from<Encodable, Decoded = Encodable>({ encode, decode, byteLength }: CodecLike<Encodable, Decoded>): Codec<Encodable, Decoded>;
265
+ map<NewEncodable = Encodable, NewDecoded = Decoded>({ inMap, outMap }: {
272
266
  inMap?: (encodable: NewEncodable) => Encodable;
273
267
  outMap?: (decoded: Decoded) => NewDecoded;
274
268
  }): Codec<NewEncodable, NewDecoded>;
@@ -278,6 +272,105 @@ declare class Codec<Encodable, Decoded = Encodable> {
278
272
  type EncodableType<T extends CodecLike<any, any>> = T extends CodecLike<infer Encodable, unknown> ? Encodable : never;
279
273
  type DecodedType<T extends CodecLike<any, any>> = T extends CodecLike<any, infer Decoded> ? Decoded : never;
280
274
  //#endregion
275
+ //#region src/molecule/codec.d.ts
276
+ /**
277
+ * Vector with fixed size item codec
278
+ * @param itemCodec fixed-size vector item codec
279
+ */
280
+ declare function fixedItemVec<Encodable, Decoded>(itemCodec: CodecLike<Encodable, Decoded>): Codec<Array<Encodable>, Array<Decoded>>;
281
+ /**
282
+ * Vector with dynamic size item codec, you can create a recursive vector with this function
283
+ * @param itemCodec the vector item codec. It can be fixed-size or dynamic-size.
284
+ */
285
+ declare function dynItemVec<Encodable, Decoded>(itemCodec: CodecLike<Encodable, Decoded>): Codec<Array<Encodable>, Array<Decoded>>;
286
+ /**
287
+ * General vector codec, if `itemCodec` is fixed size type, it will create a fixvec codec, otherwise a dynvec codec will be created.
288
+ * @param itemCodec
289
+ */
290
+ declare function vector<Encodable, Decoded>(itemCodec: CodecLike<Encodable, Decoded>): Codec<Array<Encodable>, Array<Decoded>>;
291
+ /**
292
+ * Option is a dynamic-size type.
293
+ * Serializing an option depends on whether it is empty or not:
294
+ * - if it's empty, there is zero bytes (the size is 0).
295
+ * - if it's not empty, just serialize the inner item (the size is same as the inner item's size).
296
+ * @param innerCodec
297
+ */
298
+ declare function option<Encodable, Decoded>(innerCodec: CodecLike<Encodable, Decoded>): Codec<Encodable | undefined | null, Decoded | undefined>;
299
+ /**
300
+ * Wrap the encoded value with a fixed-length buffer
301
+ * @param codec
302
+ */
303
+ declare function byteVec<Encodable, Decoded>(codec: CodecLike<Encodable, Decoded>): Codec<Encodable, Decoded>;
304
+ type EncodableRecordOptionalKeys<T extends Record<string, CodecLike<any, any>>> = { [K in keyof T]: Extract<EncodableType<T[K]>, undefined> extends never ? never : K; }[keyof T];
305
+ type EncodableRecord<T extends Record<string, CodecLike<any, any>>> = { [key in keyof Pick<T, EncodableRecordOptionalKeys<T>>]+?: EncodableType<T[key]>; } & { [key in keyof Omit<T, EncodableRecordOptionalKeys<T>>]: EncodableType<T[key]>; };
306
+ type DecodedRecordOptionalKeys<T extends Record<string, CodecLike<any, any>>> = { [K in keyof T]: Extract<DecodedType<T[K]>, undefined> extends never ? never : K; }[keyof T];
307
+ type DecodedRecord<T extends Record<string, CodecLike<any, any>>> = { [key in keyof Pick<T, DecodedRecordOptionalKeys<T>>]+?: DecodedType<T[key]>; } & { [key in keyof Omit<T, DecodedRecordOptionalKeys<T>>]: DecodedType<T[key]>; };
308
+ /**
309
+ * Table is a dynamic-size type. It can be considered as a dynvec but the length is fixed.
310
+ * @param codecLayout
311
+ */
312
+ declare function table<T extends Record<string, CodecLike<any, any>>, Encodable extends EncodableRecord<T>, Decoded extends DecodedRecord<T>>(codecLayout: T): Codec<Encodable, Decoded>;
313
+ type UnionEncodable<T extends Record<string, CodecLike<any, any>>, K extends keyof T = keyof T> = K extends unknown ? {
314
+ type: K;
315
+ value: EncodableType<T[K]>;
316
+ } : never;
317
+ type UnionDecoded<T extends Record<string, CodecLike<any, any>>, K extends keyof T = keyof T> = K extends unknown ? {
318
+ type: K;
319
+ value: DecodedType<T[K]>;
320
+ } : never;
321
+ type UnionMatchHandlers<CodecType extends CodecLike<any, UnionDecoded<any, any>>, Result> = { [T in DecodedType<CodecType>["type"]]: (value: Extract<DecodedType<CodecType>, {
322
+ type: T;
323
+ }>["value"]) => Result; };
324
+ /**
325
+ * Constructs a union codec that can serialize and deserialize values tagged with a type identifier.
326
+ *
327
+ * If all variants have the same fixed size, the resulting union codec is fixed-size (header + payload).
328
+ * Otherwise, it falls back to a dynamic-size codec.
329
+ *
330
+ * Serialization format:
331
+ * 1. 4-byte little-endian unsigned integer for the variant index.
332
+ * 2. Encoded bytes of the selected variant.
333
+ *
334
+ * @typeParam T
335
+ * A record mapping variant names to codecs.
336
+ * @param codecLayout
337
+ * An object whose keys are variant names and values are codecs for each variant.
338
+ * @param fields
339
+ * Optional mapping from variant names to custom numeric IDs. If omitted, the index
340
+ * of each variant in `codecLayout` is used as its ID.
341
+ *
342
+ *
343
+ * @example
344
+ * // Dynamic union without custom numeric IDs
345
+ * union({ cafe: Uint8, bee: Uint16 })
346
+ *
347
+ * // Dynamic union with custom numeric IDs
348
+ * union({ cafe: Uint8, bee: Uint16 }, { cafe: 0xcafe, bee: 0xbee })
349
+ *
350
+ * // Fixed-size union without custom numeric IDs
351
+ * const PaddedUint8 = struct({ data : u8, padding : u8 })
352
+ * union({ cafe: PaddedUint8, bee: Uint16 });
353
+ *
354
+ * // Fixed-size union with custom numeric IDs
355
+ * union({ cafe: PaddedUint8, bee: Uint16 }, { cafe: 0xcafe, bee: 0xbee })
356
+ */
357
+ declare function union<T extends Record<string, CodecLike<any, any>>>(codecLayout: T, fields?: Record<keyof T, number | undefined | null>): Codec<UnionEncodable<T> | {
358
+ inner: UnionEncodable<T>;
359
+ }, UnionDecoded<T>>;
360
+ /**
361
+ * Struct is a fixed-size type: all fields in struct are fixed-size and it has a fixed quantity of fields.
362
+ * The size of a struct is the sum of all fields' size.
363
+ * @param codecLayout a object contains all fields' codec
364
+ */
365
+ declare function struct<T extends Record<string, CodecLike<any, any>>, Encodable extends EncodableRecord<T>, Decoded extends DecodedRecord<T>>(codecLayout: T): Codec<Encodable, Decoded>;
366
+ /**
367
+ * The array is a fixed-size type: it has a fixed-size inner type and a fixed length.
368
+ * The size of an array is the size of inner type times the length.
369
+ * @param itemCodec the fixed-size array item codec
370
+ * @param itemCount
371
+ */
372
+ declare function array<Encodable, Decoded>(itemCodec: CodecLike<Encodable, Decoded>, itemCount: number): Codec<Array<Encodable>, Array<Decoded>>;
373
+ //#endregion
281
374
  //#region src/num/index.d.ts
282
375
  /**
283
376
  * Represents a numeric value as a bigint.
@@ -624,12 +717,328 @@ declare abstract class Entity {
624
717
  * @throws Will throw an error if the entity is not serializable
625
718
  */
626
719
  from(_: SubTypeLike): SubType;
627
- Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/any;
720
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
721
+ /**
722
+ * Generate a base class of CCC to create a serializable Union instance.
723
+ * This should be used with the {@link codec} decorator.
724
+ * @public
725
+ */
726
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
727
+ readonly inner: DecodedType<CodecType>;
728
+ /**
729
+ * Match the union type with a set of handlers.
730
+ * @public
731
+ * @param handlers - A map of type-specific handlers, all variants must be handled if no default handler `_` is provided.
732
+ * @returns The result returned by the matching handler.
733
+ */
734
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
735
+ _?: undefined | null;
736
+ }): Result;
737
+ /**
738
+ * Match the union type with a set of handlers.
739
+ * @public
740
+ * @param handlers - A map of type-specific handlers, unmatched variants will be handled by the default handler `_`.
741
+ * @returns The result returned by the matching handler.
742
+ */
743
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
744
+ _: (inner: DecodedType<CodecType>) => Result;
745
+ }): Result;
746
+ /**
747
+ * Convert the entity to bytes
748
+ * @public
749
+ * @returns The bytes representation of the entity
750
+ */
751
+ toBytes(): Bytes$1;
752
+ /**
753
+ * Create a clone of the entity
754
+ * @public
755
+ * @returns A clone of the entity
756
+ */
757
+ clone(): SubType_1;
758
+ /**
759
+ * Check if the entity is equal to another entity
760
+ * @public
761
+ * @param other - The other entity to compare with
762
+ * @returns True if the entities are equal, false otherwise
763
+ */
764
+ eq(other: SubTypeLike_1): boolean;
765
+ /**
766
+ * Calculate the hash of the entity
767
+ * @public
768
+ * @returns The hash of the entity
769
+ */
770
+ hash(): Hex;
771
+ /**
772
+ * Convert the entity to a full-byte untrimmed Hex representation
773
+ * @public
774
+ * @returns The entity full-byte untrimmed hexadecimal representation
775
+ */
776
+ toHex(): Hex;
777
+ }) & {
778
+ /**
779
+ * The bytes length of the entity, if it is fixed, otherwise undefined
780
+ * @public
781
+ * @static
782
+ */
783
+ byteLength?: number;
784
+ /**
785
+ * Encode the entity into bytes
786
+ * @public
787
+ * @static
788
+ * @param _ - The entity to encode
789
+ * @returns The encoded bytes
790
+ * @throws Will throw an error if the entity is not serializable
791
+ */
792
+ encode(_: SubTypeLike_1): Bytes$1;
793
+ /**
794
+ * Decode the entity from bytes
795
+ * @public
796
+ * @static
797
+ * @param _ - The bytes to decode
798
+ * @returns The decoded entity
799
+ * @throws Will throw an error if the entity is not serializable
800
+ */
801
+ decode(_: BytesLike): SubType_1;
802
+ /**
803
+ * Create an entity from bytes
804
+ * @public
805
+ * @static
806
+ * @param _ - The bytes to create the entity from
807
+ * @returns The created entity
808
+ * @throws Will throw an error if the entity is not serializable
809
+ */
810
+ fromBytes(_bytes: BytesLike): SubType_1;
811
+ /**
812
+ * Create an entity from a serializable object
813
+ * @public
814
+ * @static
815
+ * @param _ - The serializable object to create the entity from
816
+ * @returns The created entity
817
+ * @throws Will throw an error if the entity is not serializable
818
+ */
819
+ from(_: SubTypeLike_1): SubType_1;
820
+ /**
821
+ * Generate a base class of CCC to create a serializable instance.
822
+ * This should be used with the {@link codec} decorator.
823
+ * @public
824
+ */
825
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
826
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
827
+ };
628
828
  };
829
+ /**
830
+ * Convert the entity to bytes.
831
+ * @public
832
+ * @returns The bytes representation of the entity.
833
+ */
629
834
  abstract toBytes(): Bytes$1;
835
+ /**
836
+ * Calculate the hash of the entity.
837
+ * @public
838
+ * @returns The hash of the entity.
839
+ */
630
840
  abstract hash(): Hex;
841
+ /**
842
+ * Convert the entity to a full-byte untrimmed Hex representation.
843
+ * @public
844
+ * @returns The entity full-byte untrimmed hexadecimal representation.
845
+ */
631
846
  abstract toHex(): Hex;
847
+ /**
848
+ * Create a clone of the entity.
849
+ * @public
850
+ * @returns A clone of the entity.
851
+ */
632
852
  abstract clone(): Entity;
853
+ /**
854
+ * Generate a base class of CCC to create a serializable Union instance.
855
+ * This should be used with the {@link codec} decorator.
856
+ * @public
857
+ */
858
+ static BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): (abstract new (inner: DecodedType<CodecType>) => {
859
+ readonly inner: DecodedType<CodecType>;
860
+ /**
861
+ * Match the union type with a set of handlers.
862
+ * @public
863
+ * @param handlers - A map of type-specific handlers, all variants must be handled if no default handler `_` is provided.
864
+ * @returns The result returned by the matching handler.
865
+ */
866
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
867
+ _?: undefined | null;
868
+ }): Result;
869
+ /**
870
+ * Match the union type with a set of handlers.
871
+ * @public
872
+ * @param handlers - A map of type-specific handlers, unmatched variants will be handled by the default handler `_`.
873
+ * @returns The result returned by the matching handler.
874
+ */
875
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
876
+ _: (inner: DecodedType<CodecType>) => Result;
877
+ }): Result;
878
+ /**
879
+ * Convert the entity to bytes
880
+ * @public
881
+ * @returns The bytes representation of the entity
882
+ */
883
+ toBytes(): Bytes$1;
884
+ /**
885
+ * Create a clone of the entity
886
+ * @public
887
+ * @returns A clone of the entity
888
+ */
889
+ clone(): SubType;
890
+ /**
891
+ * Check if the entity is equal to another entity
892
+ * @public
893
+ * @param other - The other entity to compare with
894
+ * @returns True if the entities are equal, false otherwise
895
+ */
896
+ eq(other: SubTypeLike): boolean;
897
+ /**
898
+ * Calculate the hash of the entity
899
+ * @public
900
+ * @returns The hash of the entity
901
+ */
902
+ hash(): Hex;
903
+ /**
904
+ * Convert the entity to a full-byte untrimmed Hex representation
905
+ * @public
906
+ * @returns The entity full-byte untrimmed hexadecimal representation
907
+ */
908
+ toHex(): Hex;
909
+ }) & {
910
+ /**
911
+ * The bytes length of the entity, if it is fixed, otherwise undefined
912
+ * @public
913
+ * @static
914
+ */
915
+ byteLength?: number;
916
+ /**
917
+ * Encode the entity into bytes
918
+ * @public
919
+ * @static
920
+ * @param _ - The entity to encode
921
+ * @returns The encoded bytes
922
+ * @throws Will throw an error if the entity is not serializable
923
+ */
924
+ encode(_: SubTypeLike): Bytes$1;
925
+ /**
926
+ * Decode the entity from bytes
927
+ * @public
928
+ * @static
929
+ * @param _ - The bytes to decode
930
+ * @returns The decoded entity
931
+ * @throws Will throw an error if the entity is not serializable
932
+ */
933
+ decode(_: BytesLike): SubType;
934
+ /**
935
+ * Create an entity from bytes
936
+ * @public
937
+ * @static
938
+ * @param _ - The bytes to create the entity from
939
+ * @returns The created entity
940
+ * @throws Will throw an error if the entity is not serializable
941
+ */
942
+ fromBytes(_bytes: BytesLike): SubType;
943
+ /**
944
+ * Create an entity from a serializable object
945
+ * @public
946
+ * @static
947
+ * @param _ - The serializable object to create the entity from
948
+ * @returns The created entity
949
+ * @throws Will throw an error if the entity is not serializable
950
+ */
951
+ from(_: SubTypeLike): SubType;
952
+ /**
953
+ * Generate a base class of CCC to create a serializable instance.
954
+ * This should be used with the {@link codec} decorator.
955
+ * @public
956
+ */
957
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
958
+ /**
959
+ * Convert the entity to bytes
960
+ * @public
961
+ * @returns The bytes representation of the entity
962
+ */
963
+ toBytes(): Bytes$1;
964
+ /**
965
+ * Create a clone of the entity
966
+ * @public
967
+ * @returns A clone of the entity
968
+ */
969
+ clone(): SubType_1;
970
+ /**
971
+ * Check if the entity is equal to another entity
972
+ * @public
973
+ * @param other - The other entity to compare with
974
+ * @returns True if the entities are equal, false otherwise
975
+ */
976
+ eq(other: SubTypeLike_1): boolean;
977
+ /**
978
+ * Calculate the hash of the entity
979
+ * @public
980
+ * @returns The hash of the entity
981
+ */
982
+ hash(): Hex;
983
+ /**
984
+ * Convert the entity to a full-byte untrimmed Hex representation
985
+ * @public
986
+ * @returns The entity full-byte untrimmed hexadecimal representation
987
+ */
988
+ toHex(): Hex;
989
+ }) & {
990
+ /**
991
+ * The bytes length of the entity, if it is fixed, otherwise undefined
992
+ * @public
993
+ * @static
994
+ */
995
+ byteLength?: number;
996
+ /**
997
+ * Encode the entity into bytes
998
+ * @public
999
+ * @static
1000
+ * @param _ - The entity to encode
1001
+ * @returns The encoded bytes
1002
+ * @throws Will throw an error if the entity is not serializable
1003
+ */
1004
+ encode(_: SubTypeLike_1): Bytes$1;
1005
+ /**
1006
+ * Decode the entity from bytes
1007
+ * @public
1008
+ * @static
1009
+ * @param _ - The bytes to decode
1010
+ * @returns The decoded entity
1011
+ * @throws Will throw an error if the entity is not serializable
1012
+ */
1013
+ decode(_: BytesLike): SubType_1;
1014
+ /**
1015
+ * Create an entity from bytes
1016
+ * @public
1017
+ * @static
1018
+ * @param _ - The bytes to create the entity from
1019
+ * @returns The created entity
1020
+ * @throws Will throw an error if the entity is not serializable
1021
+ */
1022
+ fromBytes(_bytes: BytesLike): SubType_1;
1023
+ /**
1024
+ * Create an entity from a serializable object
1025
+ * @public
1026
+ * @static
1027
+ * @param _ - The serializable object to create the entity from
1028
+ * @returns The created entity
1029
+ * @throws Will throw an error if the entity is not serializable
1030
+ */
1031
+ from(_: SubTypeLike_1): SubType_1;
1032
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
1033
+ /**
1034
+ * Generate a base class of CCC to create a serializable Union instance.
1035
+ * This should be used with the {@link codec} decorator.
1036
+ * @public
1037
+ */
1038
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
1039
+ };
1040
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
1041
+ };
633
1042
  }
634
1043
  /**
635
1044
  * A class decorator to add methods implementation on the {@link Entity.Base} class
@@ -1026,100 +1435,6 @@ declare function keystoreDecrypt(keystore: unknown, password: string): Promise<{
1026
1435
  chainCode: Bytes$1;
1027
1436
  }>;
1028
1437
  //#endregion
1029
- //#region src/molecule/codec.d.ts
1030
- /**
1031
- * Vector with fixed size item codec
1032
- * @param itemCodec fixed-size vector item codec
1033
- */
1034
- declare function fixedItemVec<Encodable, Decoded>(itemCodec: CodecLike<Encodable, Decoded>): Codec<Array<Encodable>, Array<Decoded>>;
1035
- /**
1036
- * Vector with dynamic size item codec, you can create a recursive vector with this function
1037
- * @param itemCodec the vector item codec. It can be fixed-size or dynamic-size.
1038
- */
1039
- declare function dynItemVec<Encodable, Decoded>(itemCodec: CodecLike<Encodable, Decoded>): Codec<Array<Encodable>, Array<Decoded>>;
1040
- /**
1041
- * General vector codec, if `itemCodec` is fixed size type, it will create a fixvec codec, otherwise a dynvec codec will be created.
1042
- * @param itemCodec
1043
- */
1044
- declare function vector<Encodable, Decoded>(itemCodec: CodecLike<Encodable, Decoded>): Codec<Array<Encodable>, Array<Decoded>>;
1045
- /**
1046
- * Option is a dynamic-size type.
1047
- * Serializing an option depends on whether it is empty or not:
1048
- * - if it's empty, there is zero bytes (the size is 0).
1049
- * - if it's not empty, just serialize the inner item (the size is same as the inner item's size).
1050
- * @param innerCodec
1051
- */
1052
- declare function option<Encodable, Decoded>(innerCodec: CodecLike<Encodable, Decoded>): Codec<Encodable | undefined | null, Decoded | undefined>;
1053
- /**
1054
- * Wrap the encoded value with a fixed-length buffer
1055
- * @param codec
1056
- */
1057
- declare function byteVec<Encodable, Decoded>(codec: CodecLike<Encodable, Decoded>): Codec<Encodable, Decoded>;
1058
- type EncodableRecordOptionalKeys<T extends Record<string, CodecLike<any, any>>> = { [K in keyof T]: Extract<EncodableType<T[K]>, undefined> extends never ? never : K }[keyof T];
1059
- type EncodableRecord<T extends Record<string, CodecLike<any, any>>> = { [key in keyof Pick<T, EncodableRecordOptionalKeys<T>>]+?: EncodableType<T[key]> } & { [key in keyof Omit<T, EncodableRecordOptionalKeys<T>>]: EncodableType<T[key]> };
1060
- type DecodedRecordOptionalKeys<T extends Record<string, CodecLike<any, any>>> = { [K in keyof T]: Extract<DecodedType<T[K]>, undefined> extends never ? never : K }[keyof T];
1061
- type DecodedRecord<T extends Record<string, CodecLike<any, any>>> = { [key in keyof Pick<T, DecodedRecordOptionalKeys<T>>]+?: DecodedType<T[key]> } & { [key in keyof Omit<T, DecodedRecordOptionalKeys<T>>]: DecodedType<T[key]> };
1062
- /**
1063
- * Table is a dynamic-size type. It can be considered as a dynvec but the length is fixed.
1064
- * @param codecLayout
1065
- */
1066
- declare function table<T extends Record<string, CodecLike<any, any>>, Encodable extends EncodableRecord<T>, Decoded extends DecodedRecord<T>>(codecLayout: T): Codec<Encodable, Decoded>;
1067
- type UnionEncodable<T extends Record<string, CodecLike<any, any>>, K extends keyof T = keyof T> = K extends unknown ? {
1068
- type: K;
1069
- value: EncodableType<T[K]>;
1070
- } : never;
1071
- type UnionDecoded<T extends Record<string, CodecLike<any, any>>, K extends keyof T = keyof T> = K extends unknown ? {
1072
- type: K;
1073
- value: DecodedType<T[K]>;
1074
- } : never;
1075
- /**
1076
- * Constructs a union codec that can serialize and deserialize values tagged with a type identifier.
1077
- *
1078
- * If all variants have the same fixed size, the resulting union codec is fixed-size (header + payload).
1079
- * Otherwise, it falls back to a dynamic-size codec.
1080
- *
1081
- * Serialization format:
1082
- * 1. 4-byte little-endian unsigned integer for the variant index.
1083
- * 2. Encoded bytes of the selected variant.
1084
- *
1085
- * @typeParam T
1086
- * A record mapping variant names to codecs.
1087
- * @param codecLayout
1088
- * An object whose keys are variant names and values are codecs for each variant.
1089
- * @param fields
1090
- * Optional mapping from variant names to custom numeric IDs. If omitted, the index
1091
- * of each variant in `codecLayout` is used as its ID.
1092
- *
1093
- *
1094
- * @example
1095
- * // Dynamic union without custom numeric IDs
1096
- * union({ cafe: Uint8, bee: Uint16 })
1097
- *
1098
- * // Dynamic union with custom numeric IDs
1099
- * union({ cafe: Uint8, bee: Uint16 }, { cafe: 0xcafe, bee: 0xbee })
1100
- *
1101
- * // Fixed-size union without custom numeric IDs
1102
- * const PaddedUint8 = struct({ data : u8, padding : u8 })
1103
- * union({ cafe: PaddedUint8, bee: Uint16 });
1104
- *
1105
- * // Fixed-size union with custom numeric IDs
1106
- * union({ cafe: PaddedUint8, bee: Uint16 }, { cafe: 0xcafe, bee: 0xbee })
1107
- */
1108
- declare function union<T extends Record<string, CodecLike<any, any>>>(codecLayout: T, fields?: Record<keyof T, number | undefined | null>): Codec<UnionEncodable<T>, UnionDecoded<T>>;
1109
- /**
1110
- * Struct is a fixed-size type: all fields in struct are fixed-size and it has a fixed quantity of fields.
1111
- * The size of a struct is the sum of all fields' size.
1112
- * @param codecLayout a object contains all fields' codec
1113
- */
1114
- declare function struct<T extends Record<string, CodecLike<any, any>>, Encodable extends EncodableRecord<T>, Decoded extends DecodedRecord<T>>(codecLayout: T): Codec<Encodable, Decoded>;
1115
- /**
1116
- * The array is a fixed-size type: it has a fixed-size inner type and a fixed length.
1117
- * The size of an array is the size of inner type times the length.
1118
- * @param itemCodec the fixed-size array item codec
1119
- * @param itemCount
1120
- */
1121
- declare function array<Encodable, Decoded>(itemCodec: CodecLike<Encodable, Decoded>, itemCount: number): Codec<Array<Encodable>, Array<Decoded>>;
1122
- //#endregion
1123
1438
  //#region src/molecule/predefined.d.ts
1124
1439
  declare const Uint8Opt: Codec<NumLike | null | undefined, number | undefined>;
1125
1440
  declare const Uint8Vec: Codec<NumLike[], number[]>;
@@ -1154,7 +1469,7 @@ declare const String: Codec<string, string>;
1154
1469
  declare const StringVec: Codec<string[], string[]>;
1155
1470
  declare const StringOpt: Codec<string | null | undefined, string | undefined>;
1156
1471
  declare namespace barrel_d_exports$1 {
1157
- export { CodecBool as Bool, BoolOpt, BoolVec, CodecByte as Byte, CodecByte16 as Byte16, Byte16Opt, Byte16Vec, CodecByte32 as Byte32, Byte32Opt, Byte32Vec, CodecByte4 as Byte4, Byte4Opt, Byte4Vec, CodecByte8 as Byte8, Byte8Opt, Byte8Vec, ByteOpt, ByteVec, Bytes, BytesOpt, BytesVec, Codec, CodecLike, DecodedRecord, DecodedRecordOptionalKeys, DecodedType, EncodableRecord, EncodableRecordOptionalKeys, EncodableType, Entity, String, StringOpt, StringVec, CodecUint128 as Uint128, CodecUint128BE as Uint128BE, CodecUint128LE as Uint128LE, Uint128Opt, Uint128Vec, CodecUint16 as Uint16, CodecUint16BE as Uint16BE, CodecUint16LE as Uint16LE, Uint16Opt, Uint16Vec, CodecUint256 as Uint256, CodecUint256BE as Uint256BE, CodecUint256LE as Uint256LE, Uint256Opt, Uint256Vec, CodecUint32 as Uint32, CodecUint32BE as Uint32BE, CodecUint32LE as Uint32LE, Uint32Opt, Uint32Vec, CodecUint512 as Uint512, CodecUint512BE as Uint512BE, CodecUint512LE as Uint512LE, Uint512Opt, Uint512Vec, CodecUint64 as Uint64, CodecUint64BE as Uint64BE, CodecUint64LE as Uint64LE, Uint64Opt, Uint64Vec, CodecUint8 as Uint8, Uint8Opt, Uint8Vec, array, byteVec, codec, dynItemVec, fixedItemVec, option, struct, table, codecUint as uint, codecUintNumber as uintNumber, union, vector };
1472
+ export { CodecBool as Bool, BoolOpt, BoolVec, CodecByte as Byte, CodecByte16 as Byte16, Byte16Opt, Byte16Vec, CodecByte32 as Byte32, Byte32Opt, Byte32Vec, CodecByte4 as Byte4, Byte4Opt, Byte4Vec, CodecByte8 as Byte8, Byte8Opt, Byte8Vec, ByteOpt, ByteVec, Bytes, BytesOpt, BytesVec, Codec, CodecLike, DecodedRecord, DecodedRecordOptionalKeys, DecodedType, EncodableRecord, EncodableRecordOptionalKeys, EncodableType, Entity, String, StringOpt, StringVec, CodecUint128 as Uint128, CodecUint128BE as Uint128BE, CodecUint128LE as Uint128LE, Uint128Opt, Uint128Vec, CodecUint16 as Uint16, CodecUint16BE as Uint16BE, CodecUint16LE as Uint16LE, Uint16Opt, Uint16Vec, CodecUint256 as Uint256, CodecUint256BE as Uint256BE, CodecUint256LE as Uint256LE, Uint256Opt, Uint256Vec, CodecUint32 as Uint32, CodecUint32BE as Uint32BE, CodecUint32LE as Uint32LE, Uint32Opt, Uint32Vec, CodecUint512 as Uint512, CodecUint512BE as Uint512BE, CodecUint512LE as Uint512LE, Uint512Opt, Uint512Vec, CodecUint64 as Uint64, CodecUint64BE as Uint64BE, CodecUint64LE as Uint64LE, Uint64Opt, Uint64Vec, CodecUint8 as Uint8, Uint8Opt, Uint8Vec, UnionDecoded, UnionEncodable, UnionMatchHandlers, array, byteVec, codec, dynItemVec, fixedItemVec, option, struct, table, codecUint as uint, codecUintNumber as uintNumber, union, vector };
1158
1473
  }
1159
1474
  //#endregion
1160
1475
  //#region src/signer/btc/psbt.d.ts
@@ -1763,6 +2078,42 @@ declare function messageHashCkbSecp256k1(message: string | BytesLike): Hex;
1763
2078
  */
1764
2079
  declare function verifyMessageCkbSecp256k1(message: string | BytesLike, signature: string, publicKey: string): boolean;
1765
2080
  //#endregion
2081
+ //#region src/signer/ckb/signerCkbAlwaysSuccess.d.ts
2082
+ /**
2083
+ * A signer for the well-known always-success lock script.
2084
+ *
2085
+ * The always-success script does not require a signature, so signing a
2086
+ * transaction only needs to add its cell dependency.
2087
+ *
2088
+ * @public
2089
+ */
2090
+ declare class SignerCkbAlwaysSuccess extends Signer {
2091
+ get type(): SignerType;
2092
+ get signType(): SignerSignType;
2093
+ /**
2094
+ * Creates an instance of SignerCkbAlwaysSuccess.
2095
+ *
2096
+ * @param client - The client instance used for communication and resolving
2097
+ * the always-success deployment.
2098
+ */
2099
+ constructor(client: Client);
2100
+ connect(): Promise<void>;
2101
+ isConnected(): Promise<boolean>;
2102
+ getInternalAddress(): Promise<string>;
2103
+ /**
2104
+ * Gets the address of the always-success lock script.
2105
+ */
2106
+ getAddressObjs(): Promise<Address[]>;
2107
+ /**
2108
+ * Adds the always-success cell dependency to a transaction.
2109
+ */
2110
+ prepareTransaction(txLike: TransactionLike): Promise<Transaction>;
2111
+ /**
2112
+ * The always-success script requires no signature.
2113
+ */
2114
+ signOnlyTransaction(txLike: TransactionLike): Promise<Transaction>;
2115
+ }
2116
+ //#endregion
1766
2117
  //#region src/signer/ckb/signerCkbPublicKey.d.ts
1767
2118
  /**
1768
2119
  * @public
@@ -1899,7 +2250,65 @@ declare const MultisigCkbWitness_base: (abstract new () => {
1899
2250
  decode(_: BytesLike): SubType;
1900
2251
  fromBytes(_bytes: BytesLike): SubType;
1901
2252
  from(_: SubTypeLike): SubType;
1902
- Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/any;
2253
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
2254
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
2255
+ readonly inner: DecodedType<CodecType>;
2256
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
2257
+ _?: undefined | null;
2258
+ }): Result;
2259
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
2260
+ _: (inner: DecodedType<CodecType>) => Result;
2261
+ }): Result;
2262
+ toBytes(): Bytes$1;
2263
+ clone(): SubType_1;
2264
+ eq(other: SubTypeLike_1): boolean;
2265
+ hash(): Hex;
2266
+ toHex(): Hex;
2267
+ }) & {
2268
+ byteLength?: number;
2269
+ encode(_: SubTypeLike_1): Bytes$1;
2270
+ decode(_: BytesLike): SubType_1;
2271
+ fromBytes(_bytes: BytesLike): SubType_1;
2272
+ from(_: SubTypeLike_1): SubType_1;
2273
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
2274
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
2275
+ };
2276
+ };
2277
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): (abstract new (inner: DecodedType<CodecType>) => {
2278
+ readonly inner: DecodedType<CodecType>;
2279
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
2280
+ _?: undefined | null;
2281
+ }): Result;
2282
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
2283
+ _: (inner: DecodedType<CodecType>) => Result;
2284
+ }): Result;
2285
+ toBytes(): Bytes$1;
2286
+ clone(): SubType;
2287
+ eq(other: SubTypeLike): boolean;
2288
+ hash(): Hex;
2289
+ toHex(): Hex;
2290
+ }) & {
2291
+ byteLength?: number;
2292
+ encode(_: SubTypeLike): Bytes$1;
2293
+ decode(_: BytesLike): SubType;
2294
+ fromBytes(_bytes: BytesLike): SubType;
2295
+ from(_: SubTypeLike): SubType;
2296
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
2297
+ toBytes(): Bytes$1;
2298
+ clone(): SubType_1;
2299
+ eq(other: SubTypeLike_1): boolean;
2300
+ hash(): Hex;
2301
+ toHex(): Hex;
2302
+ }) & {
2303
+ byteLength?: number;
2304
+ encode(_: SubTypeLike_1): Bytes$1;
2305
+ decode(_: BytesLike): SubType_1;
2306
+ fromBytes(_bytes: BytesLike): SubType_1;
2307
+ from(_: SubTypeLike_1): SubType_1;
2308
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
2309
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
2310
+ };
2311
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
1903
2312
  };
1904
2313
  };
1905
2314
  /**
@@ -2527,7 +2936,7 @@ declare function buildNostrEventFromMessage(message: string | BytesLike): NostrE
2527
2936
  declare function nostrEventHash(event: NostrEvent): Bytes$1;
2528
2937
  declare function verifyMessageNostrEvent(message: string | BytesLike, signature: string, address: string): boolean;
2529
2938
  declare namespace barrel_d_exports {
2530
- 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 };
2939
+ export { Address, AddressLike, Bytes$1 as Bytes, BytesLike, Cell, CellAny, CellAnyLike, CellDep, CellDepInfo, CellDepInfoLike, CellDepLike, CellDepVec, CellInput, CellInputLike, CellInputVec, CellLike, CellOutput, CellOutputLike, CellOutputVec, Client, ClientBlock, ClientBlockHeader, ClientBlockHeaderLike, ClientBlockLike, ClientBlockUncle, ClientBlockUncleLike, ClientCache, ClientCacheMemory, ClientFindCellsResponse, ClientFindTransactionsGroupedResponse, ClientFindTransactionsResponse, ClientIndexerSearchKey, ClientIndexerSearchKeyFilter, ClientIndexerSearchKeyFilterLike, ClientIndexerSearchKeyLike, ClientIndexerSearchKeyTransaction, ClientIndexerSearchKeyTransactionLike, ClientJsonRpc, ClientJsonRpcConfig, ClientPublicMainnet, ClientPublicTestnet, ClientTransactionResponse, ClientTransactionResponseLike, Codec, CodecBool, CodecByte, CodecByte16, CodecByte32, CodecByte4, CodecByte8, CodecBytes, CodecLike, CodecRaw, CodecUint128, CodecUint128BE, CodecUint128LE, CodecUint16, CodecUint16BE, CodecUint16LE, CodecUint256, CodecUint256BE, CodecUint256LE, CodecUint32, CodecUint32BE, CodecUint32LE, CodecUint512, CodecUint512BE, CodecUint512LE, CodecUint64, CodecUint64BE, CodecUint64LE, CodecUint8, Constructor, DecodedType, DepType, DepTypeCodec, DepTypeLike, EncodableType, Entity, Epoch, EpochLike, ErrorClientBase, ErrorClientBaseLike, ErrorClientDuplicatedTransaction, ErrorClientMaxFeeRateExceeded, ErrorClientRBFRejected, ErrorClientResolveUnknown, ErrorClientVerification, ErrorClientWaitTransactionTimeout, ErrorTransactionInsufficientCapacity, ErrorTransactionInsufficientCoin, FixedPoint, FixedPointLike, HASH_CKB_LENGTH, HASH_CKB_SHORT_LENGTH, HashType, HashTypeCodec, HashTypeLike, Hasher, HasherCkb, HasherKeecak256, Hex, HexLike, InputToSign, InputToSignLike, KnownScript, LumosTransactionSkeletonType, MultisigCkbWitness, MultisigCkbWitnessLike, NetworkPreference, NostrEvent, Num, NumLike, One, OutPoint, OutPointLike, OutputsValidator, RawTransaction, RequestorJsonRpc, RequestorJsonRpcConfig, SECP256K1_SIGNATURE_LENGTH, Script, ScriptInfo, ScriptInfoLike, ScriptLike, ScriptOpt, ScriptVec, SignPsbtOptions, SignPsbtOptionsLike, Signature, Signer, SignerAlwaysError, SignerBtc, SignerBtcPublicKeyReadonly, SignerCkbAlwaysSuccess, SignerCkbPrivateKey, SignerCkbPublicKey, SignerCkbScriptReadonly, SignerDoge, SignerDogeAddressReadonly, SignerDogePrivateKey, SignerDummy, SignerEvm, SignerEvmAddressReadonly, SignerInfo, SignerMultisig, SignerMultisigCkbPrivateKey, SignerMultisigCkbReadonly, SignerMultisigNotEnoughSignaturesError, SignerNostr, SignerNostrPrivateKey, SignerNostrPublicKeyReadonly, SignerOpenLink, SignerSignType, SignerType, Since, SinceLike, Transaction, TransactionLike, TransactionStatus, Wallet, WitnessArgs, WitnessArgsLike, Zero, apply, btcEcdsaPublicKeyHash, btcP2pkhAddressFromPublicKey, btcPublicKeyFromP2pkhAddress, btcVarLengthBytesFrom, buildNostrEventFromMessage, bytesConcat, bytesConcatTo, bytesEq, bytesFrom, bytesLen, bytesLenUnsafe, bytesTo, calcDaoClaimEpoch, calcDaoProfit, codec, codecPadding, codecUint, codecUintNumber, depTypeFrom, depTypeFromBytes, depTypeToBytes, epochFrom, epochFromHex, epochToHex, fixedPointFrom, fixedPointToString, gcd, hashCkb, hashCkbShort, hashTypeFrom, hashTypeFromBytes, hashTypeId, hashTypeToBytes, hexFrom, isDaoOutputLimitExceeded, isWebview, keystoreDecrypt, keystoreEncrypt, messageHashBtcEcdsa, messageHashCkbSecp256k1, messageHashDogeEcdsa, barrel_d_exports$1 as mol, nostrEventHash, numBeFromBytes, numBeToBytes, numFrom, numFromBytes, numLeFromBytes, numLeToBytes, numMax, numMin, numToBytes, numToHex, recoverMessageSecp256k1, reduceAsync, signMessageSecp256k1, sleep, stringify, udtBalanceFrom, verifyMessageBtcEcdsa, verifyMessageCkbSecp256k1, verifyMessageDogeEcdsa, verifyMessageEvmPersonal, verifyMessageJoyId, verifyMessageNostrEvent, verifyMessageSecp256k1 };
2531
2940
  }
2532
2941
  //#endregion
2533
2942
  //#region src/client/clientTypes.advanced.d.ts
@@ -2932,7 +3341,65 @@ declare const Epoch_base: (abstract new () => {
2932
3341
  decode(_: BytesLike): SubType;
2933
3342
  fromBytes(_bytes: BytesLike): SubType;
2934
3343
  from(_: SubTypeLike): SubType;
2935
- Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/any;
3344
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
3345
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
3346
+ readonly inner: DecodedType<CodecType>;
3347
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
3348
+ _?: undefined | null;
3349
+ }): Result;
3350
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
3351
+ _: (inner: DecodedType<CodecType>) => Result;
3352
+ }): Result;
3353
+ toBytes(): Bytes$1;
3354
+ clone(): SubType_1;
3355
+ eq(other: SubTypeLike_1): boolean;
3356
+ hash(): Hex;
3357
+ toHex(): Hex;
3358
+ }) & {
3359
+ byteLength?: number;
3360
+ encode(_: SubTypeLike_1): Bytes$1;
3361
+ decode(_: BytesLike): SubType_1;
3362
+ fromBytes(_bytes: BytesLike): SubType_1;
3363
+ from(_: SubTypeLike_1): SubType_1;
3364
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
3365
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
3366
+ };
3367
+ };
3368
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): (abstract new (inner: DecodedType<CodecType>) => {
3369
+ readonly inner: DecodedType<CodecType>;
3370
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
3371
+ _?: undefined | null;
3372
+ }): Result;
3373
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
3374
+ _: (inner: DecodedType<CodecType>) => Result;
3375
+ }): Result;
3376
+ toBytes(): Bytes$1;
3377
+ clone(): SubType;
3378
+ eq(other: SubTypeLike): boolean;
3379
+ hash(): Hex;
3380
+ toHex(): Hex;
3381
+ }) & {
3382
+ byteLength?: number;
3383
+ encode(_: SubTypeLike): Bytes$1;
3384
+ decode(_: BytesLike): SubType;
3385
+ fromBytes(_bytes: BytesLike): SubType;
3386
+ from(_: SubTypeLike): SubType;
3387
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
3388
+ toBytes(): Bytes$1;
3389
+ clone(): SubType_1;
3390
+ eq(other: SubTypeLike_1): boolean;
3391
+ hash(): Hex;
3392
+ toHex(): Hex;
3393
+ }) & {
3394
+ byteLength?: number;
3395
+ encode(_: SubTypeLike_1): Bytes$1;
3396
+ decode(_: BytesLike): SubType_1;
3397
+ fromBytes(_bytes: BytesLike): SubType_1;
3398
+ from(_: SubTypeLike_1): SubType_1;
3399
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
3400
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
3401
+ };
3402
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
2936
3403
  };
2937
3404
  };
2938
3405
  /**
@@ -3197,10 +3664,10 @@ declare enum KnownScript {
3197
3664
  NervosDao = "NervosDao",
3198
3665
  Secp256k1Blake160 = "Secp256k1Blake160",
3199
3666
  Secp256k1Multisig = "Secp256k1Multisig",
3200
- Secp256k1MultisigV2Beta = "Secp256k1MultisigV2Beta",
3201
- // Fix rare failing case (https://github.com/nervosnetwork/ckb-system-scripts/pull/98)
3202
- Secp256k1MultisigV2 = "Secp256k1MultisigV2",
3203
- // Enhanced since handling (https://github.com/nervosnetwork/ckb-system-scripts/pull/99)
3667
+ Secp256k1MultisigV2Beta = "Secp256k1MultisigV2Beta" // Fix rare failing case (https://github.com/nervosnetwork/ckb-system-scripts/pull/98)
3668
+ ,
3669
+ Secp256k1MultisigV2 = "Secp256k1MultisigV2" // Enhanced since handling (https://github.com/nervosnetwork/ckb-system-scripts/pull/99)
3670
+ ,
3204
3671
  AnyoneCanPay = "AnyoneCanPay",
3205
3672
  TypeId = "TypeId",
3206
3673
  SUdt = "SUdt",
@@ -3308,7 +3775,65 @@ declare const Script_base: (abstract new () => {
3308
3775
  decode(_: BytesLike): SubType;
3309
3776
  fromBytes(_bytes: BytesLike): SubType;
3310
3777
  from(_: SubTypeLike): SubType;
3311
- Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/any;
3778
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
3779
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
3780
+ readonly inner: DecodedType<CodecType>;
3781
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
3782
+ _?: undefined | null;
3783
+ }): Result;
3784
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
3785
+ _: (inner: DecodedType<CodecType>) => Result;
3786
+ }): Result;
3787
+ toBytes(): Bytes$1;
3788
+ clone(): SubType_1;
3789
+ eq(other: SubTypeLike_1): boolean;
3790
+ hash(): Hex;
3791
+ toHex(): Hex;
3792
+ }) & {
3793
+ byteLength?: number;
3794
+ encode(_: SubTypeLike_1): Bytes$1;
3795
+ decode(_: BytesLike): SubType_1;
3796
+ fromBytes(_bytes: BytesLike): SubType_1;
3797
+ from(_: SubTypeLike_1): SubType_1;
3798
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
3799
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
3800
+ };
3801
+ };
3802
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): (abstract new (inner: DecodedType<CodecType>) => {
3803
+ readonly inner: DecodedType<CodecType>;
3804
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
3805
+ _?: undefined | null;
3806
+ }): Result;
3807
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
3808
+ _: (inner: DecodedType<CodecType>) => Result;
3809
+ }): Result;
3810
+ toBytes(): Bytes$1;
3811
+ clone(): SubType;
3812
+ eq(other: SubTypeLike): boolean;
3813
+ hash(): Hex;
3814
+ toHex(): Hex;
3815
+ }) & {
3816
+ byteLength?: number;
3817
+ encode(_: SubTypeLike): Bytes$1;
3818
+ decode(_: BytesLike): SubType;
3819
+ fromBytes(_bytes: BytesLike): SubType;
3820
+ from(_: SubTypeLike): SubType;
3821
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
3822
+ toBytes(): Bytes$1;
3823
+ clone(): SubType_1;
3824
+ eq(other: SubTypeLike_1): boolean;
3825
+ hash(): Hex;
3826
+ toHex(): Hex;
3827
+ }) & {
3828
+ byteLength?: number;
3829
+ encode(_: SubTypeLike_1): Bytes$1;
3830
+ decode(_: BytesLike): SubType_1;
3831
+ fromBytes(_bytes: BytesLike): SubType_1;
3832
+ from(_: SubTypeLike_1): SubType_1;
3833
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
3834
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
3835
+ };
3836
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
3312
3837
  };
3313
3838
  };
3314
3839
  /**
@@ -3502,7 +4027,65 @@ declare const OutPoint_base: (abstract new () => {
3502
4027
  decode(_: BytesLike): SubType;
3503
4028
  fromBytes(_bytes: BytesLike): SubType;
3504
4029
  from(_: SubTypeLike): SubType;
3505
- Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/any;
4030
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4031
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
4032
+ readonly inner: DecodedType<CodecType>;
4033
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
4034
+ _?: undefined | null;
4035
+ }): Result;
4036
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4037
+ _: (inner: DecodedType<CodecType>) => Result;
4038
+ }): Result;
4039
+ toBytes(): Bytes$1;
4040
+ clone(): SubType_1;
4041
+ eq(other: SubTypeLike_1): boolean;
4042
+ hash(): Hex;
4043
+ toHex(): Hex;
4044
+ }) & {
4045
+ byteLength?: number;
4046
+ encode(_: SubTypeLike_1): Bytes$1;
4047
+ decode(_: BytesLike): SubType_1;
4048
+ fromBytes(_bytes: BytesLike): SubType_1;
4049
+ from(_: SubTypeLike_1): SubType_1;
4050
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4051
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
4052
+ };
4053
+ };
4054
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): (abstract new (inner: DecodedType<CodecType>) => {
4055
+ readonly inner: DecodedType<CodecType>;
4056
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
4057
+ _?: undefined | null;
4058
+ }): Result;
4059
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4060
+ _: (inner: DecodedType<CodecType>) => Result;
4061
+ }): Result;
4062
+ toBytes(): Bytes$1;
4063
+ clone(): SubType;
4064
+ eq(other: SubTypeLike): boolean;
4065
+ hash(): Hex;
4066
+ toHex(): Hex;
4067
+ }) & {
4068
+ byteLength?: number;
4069
+ encode(_: SubTypeLike): Bytes$1;
4070
+ decode(_: BytesLike): SubType;
4071
+ fromBytes(_bytes: BytesLike): SubType;
4072
+ from(_: SubTypeLike): SubType;
4073
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
4074
+ toBytes(): Bytes$1;
4075
+ clone(): SubType_1;
4076
+ eq(other: SubTypeLike_1): boolean;
4077
+ hash(): Hex;
4078
+ toHex(): Hex;
4079
+ }) & {
4080
+ byteLength?: number;
4081
+ encode(_: SubTypeLike_1): Bytes$1;
4082
+ decode(_: BytesLike): SubType_1;
4083
+ fromBytes(_bytes: BytesLike): SubType_1;
4084
+ from(_: SubTypeLike_1): SubType_1;
4085
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
4086
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4087
+ };
4088
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
3506
4089
  };
3507
4090
  };
3508
4091
  /**
@@ -3586,7 +4169,65 @@ declare const CellOutput_base: (abstract new () => {
3586
4169
  decode(_: BytesLike): SubType;
3587
4170
  fromBytes(_bytes: BytesLike): SubType;
3588
4171
  from(_: SubTypeLike): SubType;
3589
- Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/any;
4172
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4173
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
4174
+ readonly inner: DecodedType<CodecType>;
4175
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
4176
+ _?: undefined | null;
4177
+ }): Result;
4178
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4179
+ _: (inner: DecodedType<CodecType>) => Result;
4180
+ }): Result;
4181
+ toBytes(): Bytes$1;
4182
+ clone(): SubType_1;
4183
+ eq(other: SubTypeLike_1): boolean;
4184
+ hash(): Hex;
4185
+ toHex(): Hex;
4186
+ }) & {
4187
+ byteLength?: number;
4188
+ encode(_: SubTypeLike_1): Bytes$1;
4189
+ decode(_: BytesLike): SubType_1;
4190
+ fromBytes(_bytes: BytesLike): SubType_1;
4191
+ from(_: SubTypeLike_1): SubType_1;
4192
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4193
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
4194
+ };
4195
+ };
4196
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): (abstract new (inner: DecodedType<CodecType>) => {
4197
+ readonly inner: DecodedType<CodecType>;
4198
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
4199
+ _?: undefined | null;
4200
+ }): Result;
4201
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4202
+ _: (inner: DecodedType<CodecType>) => Result;
4203
+ }): Result;
4204
+ toBytes(): Bytes$1;
4205
+ clone(): SubType;
4206
+ eq(other: SubTypeLike): boolean;
4207
+ hash(): Hex;
4208
+ toHex(): Hex;
4209
+ }) & {
4210
+ byteLength?: number;
4211
+ encode(_: SubTypeLike): Bytes$1;
4212
+ decode(_: BytesLike): SubType;
4213
+ fromBytes(_bytes: BytesLike): SubType;
4214
+ from(_: SubTypeLike): SubType;
4215
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
4216
+ toBytes(): Bytes$1;
4217
+ clone(): SubType_1;
4218
+ eq(other: SubTypeLike_1): boolean;
4219
+ hash(): Hex;
4220
+ toHex(): Hex;
4221
+ }) & {
4222
+ byteLength?: number;
4223
+ encode(_: SubTypeLike_1): Bytes$1;
4224
+ decode(_: BytesLike): SubType_1;
4225
+ fromBytes(_bytes: BytesLike): SubType_1;
4226
+ from(_: SubTypeLike_1): SubType_1;
4227
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
4228
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4229
+ };
4230
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
3590
4231
  };
3591
4232
  };
3592
4233
  /**
@@ -3884,7 +4525,65 @@ declare const Since_base: (abstract new () => {
3884
4525
  decode(_: BytesLike): SubType;
3885
4526
  fromBytes(_bytes: BytesLike): SubType;
3886
4527
  from(_: SubTypeLike): SubType;
3887
- Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/any;
4528
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4529
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
4530
+ readonly inner: DecodedType<CodecType>;
4531
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
4532
+ _?: undefined | null;
4533
+ }): Result;
4534
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4535
+ _: (inner: DecodedType<CodecType>) => Result;
4536
+ }): Result;
4537
+ toBytes(): Bytes$1;
4538
+ clone(): SubType_1;
4539
+ eq(other: SubTypeLike_1): boolean;
4540
+ hash(): Hex;
4541
+ toHex(): Hex;
4542
+ }) & {
4543
+ byteLength?: number;
4544
+ encode(_: SubTypeLike_1): Bytes$1;
4545
+ decode(_: BytesLike): SubType_1;
4546
+ fromBytes(_bytes: BytesLike): SubType_1;
4547
+ from(_: SubTypeLike_1): SubType_1;
4548
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4549
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
4550
+ };
4551
+ };
4552
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): (abstract new (inner: DecodedType<CodecType>) => {
4553
+ readonly inner: DecodedType<CodecType>;
4554
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
4555
+ _?: undefined | null;
4556
+ }): Result;
4557
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4558
+ _: (inner: DecodedType<CodecType>) => Result;
4559
+ }): Result;
4560
+ toBytes(): Bytes$1;
4561
+ clone(): SubType;
4562
+ eq(other: SubTypeLike): boolean;
4563
+ hash(): Hex;
4564
+ toHex(): Hex;
4565
+ }) & {
4566
+ byteLength?: number;
4567
+ encode(_: SubTypeLike): Bytes$1;
4568
+ decode(_: BytesLike): SubType;
4569
+ fromBytes(_bytes: BytesLike): SubType;
4570
+ from(_: SubTypeLike): SubType;
4571
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
4572
+ toBytes(): Bytes$1;
4573
+ clone(): SubType_1;
4574
+ eq(other: SubTypeLike_1): boolean;
4575
+ hash(): Hex;
4576
+ toHex(): Hex;
4577
+ }) & {
4578
+ byteLength?: number;
4579
+ encode(_: SubTypeLike_1): Bytes$1;
4580
+ decode(_: BytesLike): SubType_1;
4581
+ fromBytes(_bytes: BytesLike): SubType_1;
4582
+ from(_: SubTypeLike_1): SubType_1;
4583
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
4584
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4585
+ };
4586
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
3888
4587
  };
3889
4588
  };
3890
4589
  /**
@@ -3985,7 +4684,65 @@ declare const CellInput_base: (abstract new () => {
3985
4684
  decode(_: BytesLike): SubType;
3986
4685
  fromBytes(_bytes: BytesLike): SubType;
3987
4686
  from(_: SubTypeLike): SubType;
3988
- Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/any;
4687
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4688
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
4689
+ readonly inner: DecodedType<CodecType>;
4690
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
4691
+ _?: undefined | null;
4692
+ }): Result;
4693
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4694
+ _: (inner: DecodedType<CodecType>) => Result;
4695
+ }): Result;
4696
+ toBytes(): Bytes$1;
4697
+ clone(): SubType_1;
4698
+ eq(other: SubTypeLike_1): boolean;
4699
+ hash(): Hex;
4700
+ toHex(): Hex;
4701
+ }) & {
4702
+ byteLength?: number;
4703
+ encode(_: SubTypeLike_1): Bytes$1;
4704
+ decode(_: BytesLike): SubType_1;
4705
+ fromBytes(_bytes: BytesLike): SubType_1;
4706
+ from(_: SubTypeLike_1): SubType_1;
4707
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4708
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
4709
+ };
4710
+ };
4711
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): (abstract new (inner: DecodedType<CodecType>) => {
4712
+ readonly inner: DecodedType<CodecType>;
4713
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
4714
+ _?: undefined | null;
4715
+ }): Result;
4716
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4717
+ _: (inner: DecodedType<CodecType>) => Result;
4718
+ }): Result;
4719
+ toBytes(): Bytes$1;
4720
+ clone(): SubType;
4721
+ eq(other: SubTypeLike): boolean;
4722
+ hash(): Hex;
4723
+ toHex(): Hex;
4724
+ }) & {
4725
+ byteLength?: number;
4726
+ encode(_: SubTypeLike): Bytes$1;
4727
+ decode(_: BytesLike): SubType;
4728
+ fromBytes(_bytes: BytesLike): SubType;
4729
+ from(_: SubTypeLike): SubType;
4730
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
4731
+ toBytes(): Bytes$1;
4732
+ clone(): SubType_1;
4733
+ eq(other: SubTypeLike_1): boolean;
4734
+ hash(): Hex;
4735
+ toHex(): Hex;
4736
+ }) & {
4737
+ byteLength?: number;
4738
+ encode(_: SubTypeLike_1): Bytes$1;
4739
+ decode(_: BytesLike): SubType_1;
4740
+ fromBytes(_bytes: BytesLike): SubType_1;
4741
+ from(_: SubTypeLike_1): SubType_1;
4742
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
4743
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4744
+ };
4745
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
3989
4746
  };
3990
4747
  };
3991
4748
  /**
@@ -4084,7 +4841,65 @@ declare const CellDep_base: (abstract new () => {
4084
4841
  decode(_: BytesLike): SubType;
4085
4842
  fromBytes(_bytes: BytesLike): SubType;
4086
4843
  from(_: SubTypeLike): SubType;
4087
- Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/any;
4844
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4845
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
4846
+ readonly inner: DecodedType<CodecType>;
4847
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
4848
+ _?: undefined | null;
4849
+ }): Result;
4850
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4851
+ _: (inner: DecodedType<CodecType>) => Result;
4852
+ }): Result;
4853
+ toBytes(): Bytes$1;
4854
+ clone(): SubType_1;
4855
+ eq(other: SubTypeLike_1): boolean;
4856
+ hash(): Hex;
4857
+ toHex(): Hex;
4858
+ }) & {
4859
+ byteLength?: number;
4860
+ encode(_: SubTypeLike_1): Bytes$1;
4861
+ decode(_: BytesLike): SubType_1;
4862
+ fromBytes(_bytes: BytesLike): SubType_1;
4863
+ from(_: SubTypeLike_1): SubType_1;
4864
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4865
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
4866
+ };
4867
+ };
4868
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): (abstract new (inner: DecodedType<CodecType>) => {
4869
+ readonly inner: DecodedType<CodecType>;
4870
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
4871
+ _?: undefined | null;
4872
+ }): Result;
4873
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4874
+ _: (inner: DecodedType<CodecType>) => Result;
4875
+ }): Result;
4876
+ toBytes(): Bytes$1;
4877
+ clone(): SubType;
4878
+ eq(other: SubTypeLike): boolean;
4879
+ hash(): Hex;
4880
+ toHex(): Hex;
4881
+ }) & {
4882
+ byteLength?: number;
4883
+ encode(_: SubTypeLike): Bytes$1;
4884
+ decode(_: BytesLike): SubType;
4885
+ fromBytes(_bytes: BytesLike): SubType;
4886
+ from(_: SubTypeLike): SubType;
4887
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
4888
+ toBytes(): Bytes$1;
4889
+ clone(): SubType_1;
4890
+ eq(other: SubTypeLike_1): boolean;
4891
+ hash(): Hex;
4892
+ toHex(): Hex;
4893
+ }) & {
4894
+ byteLength?: number;
4895
+ encode(_: SubTypeLike_1): Bytes$1;
4896
+ decode(_: BytesLike): SubType_1;
4897
+ fromBytes(_bytes: BytesLike): SubType_1;
4898
+ from(_: SubTypeLike_1): SubType_1;
4899
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
4900
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4901
+ };
4902
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4088
4903
  };
4089
4904
  };
4090
4905
  /**
@@ -4160,7 +4975,65 @@ declare const WitnessArgs_base: (abstract new () => {
4160
4975
  decode(_: BytesLike): SubType;
4161
4976
  fromBytes(_bytes: BytesLike): SubType;
4162
4977
  from(_: SubTypeLike): SubType;
4163
- Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/any;
4978
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4979
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
4980
+ readonly inner: DecodedType<CodecType>;
4981
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
4982
+ _?: undefined | null;
4983
+ }): Result;
4984
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
4985
+ _: (inner: DecodedType<CodecType>) => Result;
4986
+ }): Result;
4987
+ toBytes(): Bytes$1;
4988
+ clone(): SubType_1;
4989
+ eq(other: SubTypeLike_1): boolean;
4990
+ hash(): Hex;
4991
+ toHex(): Hex;
4992
+ }) & {
4993
+ byteLength?: number;
4994
+ encode(_: SubTypeLike_1): Bytes$1;
4995
+ decode(_: BytesLike): SubType_1;
4996
+ fromBytes(_bytes: BytesLike): SubType_1;
4997
+ from(_: SubTypeLike_1): SubType_1;
4998
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4999
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
5000
+ };
5001
+ };
5002
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): (abstract new (inner: DecodedType<CodecType>) => {
5003
+ readonly inner: DecodedType<CodecType>;
5004
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
5005
+ _?: undefined | null;
5006
+ }): Result;
5007
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
5008
+ _: (inner: DecodedType<CodecType>) => Result;
5009
+ }): Result;
5010
+ toBytes(): Bytes$1;
5011
+ clone(): SubType;
5012
+ eq(other: SubTypeLike): boolean;
5013
+ hash(): Hex;
5014
+ toHex(): Hex;
5015
+ }) & {
5016
+ byteLength?: number;
5017
+ encode(_: SubTypeLike): Bytes$1;
5018
+ decode(_: BytesLike): SubType;
5019
+ fromBytes(_bytes: BytesLike): SubType;
5020
+ from(_: SubTypeLike): SubType;
5021
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
5022
+ toBytes(): Bytes$1;
5023
+ clone(): SubType_1;
5024
+ eq(other: SubTypeLike_1): boolean;
5025
+ hash(): Hex;
5026
+ toHex(): Hex;
5027
+ }) & {
5028
+ byteLength?: number;
5029
+ encode(_: SubTypeLike_1): Bytes$1;
5030
+ decode(_: BytesLike): SubType_1;
5031
+ fromBytes(_bytes: BytesLike): SubType_1;
5032
+ from(_: SubTypeLike_1): SubType_1;
5033
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
5034
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
5035
+ };
5036
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4164
5037
  };
4165
5038
  };
4166
5039
  /**
@@ -4252,7 +5125,65 @@ declare const Transaction_base: (abstract new () => {
4252
5125
  decode(_: BytesLike): SubType;
4253
5126
  fromBytes(_bytes: BytesLike): SubType;
4254
5127
  from(_: SubTypeLike): SubType;
4255
- Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/any;
5128
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
5129
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new (inner: DecodedType<CodecType>) => {
5130
+ readonly inner: DecodedType<CodecType>;
5131
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
5132
+ _?: undefined | null;
5133
+ }): Result;
5134
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
5135
+ _: (inner: DecodedType<CodecType>) => Result;
5136
+ }): Result;
5137
+ toBytes(): Bytes$1;
5138
+ clone(): SubType_1;
5139
+ eq(other: SubTypeLike_1): boolean;
5140
+ hash(): Hex;
5141
+ toHex(): Hex;
5142
+ }) & {
5143
+ byteLength?: number;
5144
+ encode(_: SubTypeLike_1): Bytes$1;
5145
+ decode(_: BytesLike): SubType_1;
5146
+ fromBytes(_bytes: BytesLike): SubType_1;
5147
+ from(_: SubTypeLike_1): SubType_1;
5148
+ Base<SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
5149
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
5150
+ };
5151
+ };
5152
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): (abstract new (inner: DecodedType<CodecType>) => {
5153
+ readonly inner: DecodedType<CodecType>;
5154
+ match<Result>(handlers: UnionMatchHandlers<CodecType, Result> & {
5155
+ _?: undefined | null;
5156
+ }): Result;
5157
+ match<Result>(handlers: Partial<UnionMatchHandlers<CodecType, Result>> & {
5158
+ _: (inner: DecodedType<CodecType>) => Result;
5159
+ }): Result;
5160
+ toBytes(): Bytes$1;
5161
+ clone(): SubType;
5162
+ eq(other: SubTypeLike): boolean;
5163
+ hash(): Hex;
5164
+ toHex(): Hex;
5165
+ }) & {
5166
+ byteLength?: number;
5167
+ encode(_: SubTypeLike): Bytes$1;
5168
+ decode(_: BytesLike): SubType;
5169
+ fromBytes(_bytes: BytesLike): SubType;
5170
+ from(_: SubTypeLike): SubType;
5171
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): (abstract new () => {
5172
+ toBytes(): Bytes$1;
5173
+ clone(): SubType_1;
5174
+ eq(other: SubTypeLike_1): boolean;
5175
+ hash(): Hex;
5176
+ toHex(): Hex;
5177
+ }) & {
5178
+ byteLength?: number;
5179
+ encode(_: SubTypeLike_1): Bytes$1;
5180
+ decode(_: BytesLike): SubType_1;
5181
+ fromBytes(_bytes: BytesLike): SubType_1;
5182
+ from(_: SubTypeLike_1): SubType_1;
5183
+ Base<SubTypeLike_1, SubType_1 = SubTypeLike_1>(): /*elided*/ any;
5184
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
5185
+ };
5186
+ BaseUnion<CodecType extends CodecLike<any, UnionDecoded<any, any>>, SubTypeLike, SubType = SubTypeLike>(): /*elided*/ any;
4256
5187
  };
4257
5188
  };
4258
5189
  /**
@@ -4532,25 +5463,45 @@ declare class Transaction extends Transaction_base {
4532
5463
  */
4533
5464
  addCellDepsOfKnownScripts(client: Client, ...scripts: (KnownScript | KnownScript[])[]): Promise<void>;
4534
5465
  /**
4535
- * Set output data at index.
5466
+ * Sets output data at an index.
5467
+ *
5468
+ * @deprecated Use {@link setOutputData} instead.
5469
+ */
5470
+ setOutputDataAt(index: number, data: HexLike): void;
5471
+ /**
5472
+ * Sets output data at an index, filling any skipped positions with empty data.
4536
5473
  *
4537
5474
  * @param index - The index of the output data.
4538
5475
  * @param data - The data to set.
5476
+ * @throws If `index` is invalid or does not identify an existing output.
4539
5477
  *
4540
5478
  * @example
4541
5479
  * ```typescript
4542
- * tx.setOutputDataAt(0, "0x00");
5480
+ * tx.setOutputData(0, "0x00");
4543
5481
  * ```
4544
5482
  */
4545
- setOutputDataAt(index: number, data: HexLike): void;
5483
+ setOutputData(index: number, data: HexLike): void;
5484
+ /**
5485
+ * Gets the data associated with an output.
5486
+ *
5487
+ * @param index - The output index.
5488
+ * @returns The output data, or `undefined` if the index is invalid or out of bounds.
5489
+ *
5490
+ * @example
5491
+ * ```typescript
5492
+ * const data = tx.getOutputData(0);
5493
+ * ```
5494
+ */
5495
+ getOutputData(index: NumLike): Hex | undefined;
4546
5496
  /**
4547
- * get input
5497
+ * Gets an input.
4548
5498
  *
4549
- * @param index - The cell input index
5499
+ * @param index - The cell input index.
5500
+ * @returns The input, or `undefined` if the index is invalid or out of bounds.
4550
5501
  *
4551
5502
  * @example
4552
5503
  * ```typescript
4553
- * await tx.getInput(0);
5504
+ * tx.getInput(0);
4554
5505
  * ```
4555
5506
  */
4556
5507
  getInput(index: NumLike): CellInput | undefined;
@@ -4566,13 +5517,14 @@ declare class Transaction extends Transaction_base {
4566
5517
  */
4567
5518
  addInput(inputLike: CellInputLike): number;
4568
5519
  /**
4569
- * get output
5520
+ * Gets an output cell together with its data.
4570
5521
  *
4571
- * @param index - The cell output index
5522
+ * @param index - The cell output index.
5523
+ * @returns The output cell, or `undefined` if the index is invalid or out of bounds.
4572
5524
  *
4573
5525
  * @example
4574
5526
  * ```typescript
4575
- * await tx.getOutput(0);
5527
+ * tx.getOutput(0);
4576
5528
  * ```
4577
5529
  */
4578
5530
  getOutput(index: NumLike): CellAny | undefined;
@@ -4621,52 +5573,143 @@ declare class Transaction extends Transaction_base {
4621
5573
  addOutput(cellLike: CellAnyLike): number;
4622
5574
  addOutput(outputLike: CellOutputLike, outputDataLike?: HexLike | null): number;
4623
5575
  /**
4624
- * Get witness at index as WitnessArgs
5576
+ * Sets or appends an output cell.
5577
+ *
5578
+ * An index equal to the current output count appends the cell. Existing
5579
+ * outputs are replaced together with their corresponding output data.
5580
+ *
5581
+ * @param index - The output index to set, from zero through the current output count.
5582
+ * @param cellLike - A cell-like object containing both the output and its data.
5583
+ * @throws If `index` is not a valid array index or is greater than the output count.
5584
+ *
5585
+ * @example
5586
+ * ```typescript
5587
+ * tx.setOutput(0, {
5588
+ * cellOutput: { lock: recipientLock },
5589
+ * outputData: "0x1234",
5590
+ * });
5591
+ * ```
5592
+ */
5593
+ setOutput(index: number, cellLike: CellAnyLike): void;
5594
+ /**
5595
+ * Sets or appends an output and its data.
5596
+ *
5597
+ * @param index - The output index to set, from zero through the current output count.
5598
+ * @param outputLike - The cell output to set.
5599
+ * @param outputDataLike - The output data, defaulting to `"0x"`.
5600
+ * @throws If `index` is not a valid array index or is greater than the output count.
5601
+ *
5602
+ * @example
5603
+ * ```typescript
5604
+ * tx.setOutput(0, { lock: recipientLock }, "0x1234");
5605
+ * ```
5606
+ */
5607
+ setOutput(index: number, outputLike: CellOutputLike, outputDataLike?: HexLike | null): void;
5608
+ /**
5609
+ * Sets or appends an input.
5610
+ *
5611
+ * An index equal to the current input count appends the input using
5612
+ * {@link addInput}, preserving witness alignment. An existing index replaces
5613
+ * only that input.
5614
+ *
5615
+ * @param index - The input index to set, from zero through the current input count.
5616
+ * @param inputLike - The cell input to set.
5617
+ * @throws If `index` is not a valid array index or is greater than the input count.
5618
+ *
5619
+ * @example
5620
+ * ```typescript
5621
+ * tx.setInput(0, {
5622
+ * previousOutput: { txHash: "0x...", index: 0 },
5623
+ * });
5624
+ * ```
5625
+ */
5626
+ setInput(index: number, inputLike: CellInputLike): void;
5627
+ /**
5628
+ * Gets a raw witness.
5629
+ *
5630
+ * @param index - The witness index.
5631
+ * @returns The witness, or `undefined` if the index is invalid or out of bounds.
5632
+ *
5633
+ * @example
5634
+ * ```typescript
5635
+ * const witness = tx.getWitness(0);
5636
+ * ```
5637
+ */
5638
+ getWitness(index: NumLike): Hex | undefined;
5639
+ /**
5640
+ * Gets the witness at an index as `WitnessArgs`.
4625
5641
  *
4626
5642
  * @param index - The index of the witness.
4627
5643
  * @returns The witness parsed as WitnessArgs.
4628
5644
  *
4629
5645
  * @example
4630
5646
  * ```typescript
4631
- * const witnessArgs = tx.getWitnessArgsAt(0);
5647
+ * const witnessArgs = tx.getWitnessArgs(0);
4632
5648
  * ```
4633
5649
  */
4634
- getWitnessArgsAt(index: number): WitnessArgs | undefined;
5650
+ getWitnessArgs(index: NumLike): WitnessArgs | undefined;
4635
5651
  /**
4636
- * Get witness at index as WitnessArgs, throw if failed to decode
5652
+ * Gets the witness at an index as `WitnessArgs`, throwing if decoding fails.
4637
5653
  *
4638
5654
  * @param index - The index of the witness.
4639
5655
  * @returns The witness parsed as WitnessArgs.
5656
+ * @throws If the witness cannot be decoded as `WitnessArgs`.
4640
5657
  *
4641
5658
  * @example
4642
5659
  * ```typescript
4643
- * const witnessArgs = tx.getWitnessArgsAtUnsafe(0);
5660
+ * const witnessArgs = tx.getWitnessArgsUnsafe(0);
4644
5661
  * ```
4645
5662
  */
4646
- getWitnessArgsAtUnsafe(index: number): WitnessArgs | undefined;
5663
+ getWitnessArgsUnsafe(index: NumLike): WitnessArgs | undefined;
4647
5664
  /**
4648
- * Set witness at index by WitnessArgs
5665
+ * Sets a witness at an index from `WitnessArgs`.
4649
5666
  *
4650
5667
  * @param index - The index of the witness.
4651
- * @param witness - The WitnessArgs to set.
5668
+ * @param witnessLike - The WitnessArgs-like value to set.
5669
+ * @throws If `index` is not a valid array index.
4652
5670
  *
4653
5671
  * @example
4654
5672
  * ```typescript
4655
- * await tx.setWitnessArgsAt(0, witnessArgs);
5673
+ * tx.setWitnessArgs(0, witnessArgs);
4656
5674
  * ```
4657
5675
  */
4658
- setWitnessArgsAt(index: number, witness: WitnessArgs): void;
5676
+ setWitnessArgs(index: number, witnessLike: WitnessArgsLike): void;
4659
5677
  /**
4660
- * Set witness at index
5678
+ * Sets a witness at an index, filling any skipped positions with empty witnesses.
4661
5679
  *
4662
5680
  * @param index - The index of the witness.
4663
5681
  * @param witness - The witness to set.
5682
+ * @throws If `index` is not a valid array index.
4664
5683
  *
4665
5684
  * @example
4666
5685
  * ```typescript
4667
- * await tx.setWitnessAt(0, witness);
5686
+ * tx.setWitness(0, witness);
4668
5687
  * ```
4669
5688
  */
5689
+ setWitness(index: number, witness: HexLike): void;
5690
+ /**
5691
+ * Gets the witness at an index as `WitnessArgs`.
5692
+ *
5693
+ * @deprecated Use {@link getWitnessArgs} instead.
5694
+ */
5695
+ getWitnessArgsAt(index: NumLike): WitnessArgs | undefined;
5696
+ /**
5697
+ * Gets the witness at an index as `WitnessArgs`, throwing if decoding fails.
5698
+ *
5699
+ * @deprecated Use {@link getWitnessArgsUnsafe} instead.
5700
+ */
5701
+ getWitnessArgsAtUnsafe(index: NumLike): WitnessArgs | undefined;
5702
+ /**
5703
+ * Sets a witness at an index from `WitnessArgs`.
5704
+ *
5705
+ * @deprecated Use {@link setWitnessArgs} instead.
5706
+ */
5707
+ setWitnessArgsAt(index: number, witnessLike: WitnessArgsLike): void;
5708
+ /**
5709
+ * Sets a witness at an index.
5710
+ *
5711
+ * @deprecated Use {@link setWitness} instead.
5712
+ */
4670
5713
  setWitnessAt(index: number, witness: HexLike): void;
4671
5714
  /**
4672
5715
  * Prepare dummy witness for sighash all method
@@ -5991,17 +7034,7 @@ declare class JsonRpcTransformers {
5991
7034
  static cellDepTo(cellDep: JsonRpcCellDep): CellDep;
5992
7035
  static transactionFrom(txLike: TransactionLike): JsonRpcTransaction;
5993
7036
  static transactionTo(tx: JsonRpcTransaction): Transaction;
5994
- static transactionResponseTo({
5995
- cycles,
5996
- tx_status: {
5997
- status,
5998
- block_number,
5999
- block_hash,
6000
- tx_index,
6001
- reason
6002
- },
6003
- transaction
6004
- }: {
7037
+ static transactionResponseTo({ cycles, tx_status: { status, block_number, block_hash, tx_index, reason }, transaction }: {
6005
7038
  cycles?: NumLike;
6006
7039
  tx_status: {
6007
7040
  status: TransactionStatus;
@@ -6018,10 +7051,7 @@ declare class JsonRpcTransformers {
6018
7051
  static rangeFrom([a, b]: [NumLike, NumLike]): [Hex, Hex];
6019
7052
  static indexerSearchKeyFilterFrom(filter: ClientIndexerSearchKeyFilter): JsonRpcIndexerSearchKeyFilter;
6020
7053
  static indexerSearchKeyFrom(keyLike: ClientIndexerSearchKeyLike): JsonRpcIndexerSearchKey;
6021
- static findCellsResponseTo({
6022
- last_cursor,
6023
- objects
6024
- }: {
7054
+ static findCellsResponseTo({ last_cursor, objects }: {
6025
7055
  last_cursor: string;
6026
7056
  objects: {
6027
7057
  out_point: JsonRpcOutPoint;
@@ -6030,10 +7060,7 @@ declare class JsonRpcTransformers {
6030
7060
  }[];
6031
7061
  }): ClientFindCellsResponse;
6032
7062
  static indexerSearchKeyTransactionFrom(keyLike: ClientIndexerSearchKeyTransactionLike): JsonRpcIndexerSearchKeyTransaction;
6033
- static findTransactionsResponseTo({
6034
- last_cursor,
6035
- objects
6036
- }: JsonRpcIndexerFindTransactionsResponse | JsonRpcIndexerFindTransactionsGroupedResponse): ClientFindTransactionsResponse | ClientFindTransactionsGroupedResponse;
7063
+ static findTransactionsResponseTo({ last_cursor, objects }: JsonRpcIndexerFindTransactionsResponse | JsonRpcIndexerFindTransactionsGroupedResponse): ClientFindTransactionsResponse | ClientFindTransactionsGroupedResponse;
6037
7064
  }
6038
7065
  //#endregion
6039
7066
  //#region src/hasher/advanced.d.ts
@@ -6042,5 +7069,5 @@ declare namespace advancedBarrel_d_exports {
6042
7069
  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 };
6043
7070
  }
6044
7071
  //#endregion
6045
- export { CellDep as $, AddressLike as $i, SignerCkbPublicKey as $n, CodecByte16 as $r, ClientFindCellsResponse as $t, DEP_TYPES as A, apply as Ai, verifyMessageNostrEvent as An, RequestorJsonRpc as Ar, HashTypeCodec as At, ClientPublicTestnet as B, numFrom as Bi, SignerDummy as Bn, HASH_CKB_SHORT_LENGTH as Br, Epoch as Bt, DEFAULT_CONFIRMED_BLOCK_TIME as C, CodecUint8 as Ci, ClientCollectableSearchKeyLike as Cn, InputToSign as Cr, depTypeFrom as Ct, filterNumByRange as D, Entity as Di, barrel_d_exports as Dn, barrel_d_exports$1 as Dr, udtBalanceFrom as Dt, filterData as E, codecUintNumber as Ei, clientSearchKeyRangeFrom as En, SignPsbtOptionsLike as Er, isDaoOutputLimitExceeded as Et, NUM_TO_HASH_TYPE as F, stringify as Fi, verifyMessageEvmPersonal as Fn, TransportHttp as Fr, ScriptVec as Ft, ClientCacheMemory as G, numMin as Gi, SignerDoge as Gn, FixedPoint as Gr, CellDepInfo as Gt, ClientJsonRpc as H, numLeFromBytes as Hi, verifyMessageDogeEcdsa as Hn, hashCkb as Hr, epochFrom as Ht, ADDRESS_BECH32_LIMIT as I, Num as Ii, SignerEvmAddressReadonly as In, JsonRpcPayload as Ir, hashTypeFrom as It, ErrorTransactionInsufficientCoin as J, Codec as Ji, MultisigCkbWitness as Jn, Zero as Jr, ClientBlockHeader as Jt, ClientCache as K, numToBytes as Ki, verifyMessageJoyId as Kn, FixedPointLike as Kr, CellDepInfoLike as Kt, AddressFormat as L, NumLike as Li, SignerEvm as Ln, Transport as Lr, hashTypeFromBytes as Lt, NUM_TO_DEP_TYPE as M, isWebview as Mi, SignerNostrPublicKeyReadonly as Mn, TransportFallback as Mr, Script as Mt, HASH_TYPES as N, reduceAsync as Ni, NostrEvent as Nn, transportFromUri as Nr, ScriptLike as Nt, filterScript as O, codec as Oi, buildNostrEventFromMessage as On, keystoreDecrypt as Or, LumosTransactionSkeletonType as Ot, HASH_TYPE_TO_NUM as P, sleep as Pi, SignerNostr as Pn, TransportWebSocket as Pr, ScriptOpt as Pt, CellAnyLike as Q, Address as Qi, SignerCkbPrivateKey as Qn, CodecByte as Qr, ClientBlockUncleLike as Qt, addressFromPayload as R, numBeFromBytes as Ri, SignerOpenLink as Rn, HasherKeecak256 as Rr, hashTypeToBytes as Rt, CellRecord as S, CodecUint64LE as Si, ClientCollectableSearchKeyFilterLike as Sn, Wallet as Sr, calcDaoProfit as St, filterCell as T, codecUint as Ti, DEFAULT_MIN_FEE_RATE as Tn, SignPsbtOptions as Tr, depTypeToBytes as Tt, ClientJsonRpcConfig as U, numLeToBytes as Ui, SignerDogePrivateKey as Un, hashCkbShort as Ur, epochFromHex as Ut, ClientPublicMainnet as V, numFromBytes as Vi, messageHashDogeEcdsa as Vn, HasherCkb as Vr, EpochLike as Vt, Client as W, numMax as Wi, SignerDogeAddressReadonly as Wn, Hasher as Wr, epochToHex as Wt, Cell as X, DecodedType as Xi, SignerMultisigCkbReadonly as Xn, fixedPointToString as Xr, ClientBlockLike as Xt, hashTypeId as Y, CodecLike as Yi, MultisigCkbWitnessLike as Yn, fixedPointFrom as Yr, ClientBlockHeaderLike as Yt, CellAny as Z, EncodableType as Zi, SignerCkbScriptReadonly as Zn, CodecBool as Zr, ClientBlockUncle as Zt, JsonRpcOutPoint as _, CodecUint512 as _i, ErrorClientWaitTransactionTimeout as _n, SignerInfo as _r, Transaction as _t, JsonRpcBlockHeader as a, Bytes$1 as aa, CodecUint128 as ai, ClientIndexerSearchKeyLike as an, verifyMessageSecp256k1 as ar, CellLike as at, TESTNET_SCRIPTS as b, CodecUint64 as bi, ScriptInfoLike as bn, SignerSignType as br, WitnessArgsLike as bt, JsonRpcCellInput as c, bytesConcatTo as ca, CodecUint16 as ci, ClientTransactionResponse as cn, btcPublicKeyFromP2pkhAddress as cr, CellOutputVec as ct, JsonRpcHashType as d, bytesTo as da, CodecUint256 as di, ErrorClientBaseLike as dn, verifyMessageBtcEcdsa as dr, DepTypeLike as dt, Hex as ea, CodecByte32 as ei, ClientFindTransactionsGroupedResponse as en, SECP256K1_SIGNATURE_LENGTH as er, CellDepLike as et, JsonRpcIndexerFindTransactionsGroupedResponse as f, BytesFromEncoding as fa, CodecUint256BE as fi, ErrorClientDuplicatedTransaction as fn, SignerBtcPublicKeyReadonly as fr, OutPoint as ft, JsonRpcIndexerSearchKeyTransaction as g, CodecUint32LE as gi, ErrorClientVerification as gn, Signer as gr, SinceLike as gt, JsonRpcIndexerSearchKeyFilter as h, CodecUint32BE as hi, ErrorClientResolveUnknown as hn, Signature as hr, Since as ht, JsonRpcBlock as i, hexFrom as ia, CodecRaw as ii, ClientIndexerSearchKeyFilterLike as in, verifyMessageCkbSecp256k1 as ir, CellInputVec as it, DEP_TYPE_TO_NUM as j, gcd as ji, SignerNostrPrivateKey as jn, RequestorJsonRpcConfig as jr, HashTypeLike as jt, filterScriptByLenRange as k, Constructor as ki, nostrEventHash as kn, keystoreEncrypt as kr, HashType as kt, JsonRpcCellOutput as l, bytesEq as la, CodecUint16BE as li, ClientTransactionResponseLike as ln, btcVarLengthBytesFrom as lr, DepType as lt, JsonRpcIndexerSearchKey as m, CodecUint32 as mi, ErrorClientRBFRejected as mn, NetworkPreference as mr, RawTransaction as mt, CKB_BLAKE2B_PERSONAL as n, bytesLen as na, CodecByte8 as ni, ClientIndexerSearchKey as nn, recoverMessageSecp256k1 as nr, CellInput as nt, JsonRpcBlockUncle as o, BytesLike as oa, CodecUint128BE as oi, ClientIndexerSearchKeyTransaction as on, btcEcdsaPublicKeyHash as or, CellOutput as ot, JsonRpcIndexerFindTransactionsResponse as p, CodecUint256LE as pi, ErrorClientMaxFeeRateExceeded as pn, SignerBtc as pr, OutPointLike as pt, ErrorTransactionInsufficientCapacity as q, numToHex as qi, SignerMultisigCkbPrivateKey as qn, One as qr, ClientBlock as qt, JsonRpcTransformers as r, bytesLenUnsafe as ra, CodecBytes as ri, ClientIndexerSearchKeyFilter as rn, signMessageSecp256k1 as rr, CellInputLike as rt, JsonRpcCellDep as s, bytesConcat as sa, CodecUint128LE as si, ClientIndexerSearchKeyTransactionLike as sn, btcP2pkhAddressFromPublicKey as sr, CellOutputLike as st, advancedBarrel_d_exports as t, HexLike as ta, CodecByte4 as ti, ClientFindTransactionsResponse as tn, messageHashCkbSecp256k1 as tr, CellDepVec as tt, JsonRpcDepType as u, bytesFrom as ua, CodecUint16LE as ui, ErrorClientBase as un, messageHashBtcEcdsa as ur, DepTypeCodec as ut, JsonRpcScript as v, CodecUint512BE as vi, OutputsValidator as vn, SignerMultisig as vr, TransactionLike as vt, MapLru as w, codecPadding as wi, DEFAULT_MAX_FEE_RATE as wn, InputToSignLike as wr, depTypeFromBytes as wt, MAINNET_SCRIPTS as x, CodecUint64BE as xi, TransactionStatus as xn, SignerType as xr, calcDaoClaimEpoch as xt, JsonRpcTransaction as y, CodecUint512LE as yi, ScriptInfo as yn, SignerMultisigNotEnoughSignaturesError as yr, WitnessArgs as yt, addressPayloadFromString as z, numBeToBytes as zi, SignerAlwaysError as zn, HASH_CKB_LENGTH as zr, KnownScript as zt };
6046
- //# sourceMappingURL=advancedBarrel-66JgvInl.d.mts.map
7072
+ 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 };
7073
+ //# sourceMappingURL=advancedBarrel-CJAh6sm8.d.ts.map