@bennyblader/ddk-rn 0.3.38 → 0.3.39

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.
@@ -3,7 +3,7 @@
3
3
  // This file was autogenerated by some hot garbage in the `uniffi-bindgen-react-native` crate.
4
4
  // Trust me, you don't want to mess with it!
5
5
  import nativeModule from "./ddk_ffi-ffi.js";
6
- import { AbstractFfiConverterByteArray, FfiConverterArray, FfiConverterBool, FfiConverterInt32, FfiConverterOptional, FfiConverterUInt32, FfiConverterUInt64, FfiConverterUInt8, UniffiError, UniffiInternalError, UniffiRustCaller, uniffiCreateFfiConverterString, uniffiCreateRecord, uniffiTypeNameSymbol, variantOrdinalSymbol } from "uniffi-bindgen-react-native";
6
+ import { AbstractFfiConverterByteArray, FfiConverterArray, FfiConverterBool, FfiConverterInt32, FfiConverterOptional, FfiConverterUInt32, FfiConverterUInt64, FfiConverterUInt8, UniffiError, UniffiInternalError, UniffiRustCaller, uniffiCreateFfiConverterString, uniffiCreateRecord, uniffiTypeNameSymbol, variantOrdinalSymbol } from 'uniffi-bindgen-react-native';
7
7
 
8
8
  // Get converters from the other files, if any.
9
9
  const uniffiCaller = new UniffiRustCaller(() => ({
@@ -11,9 +11,9 @@ const uniffiCaller = new UniffiRustCaller(() => ({
11
11
  }));
12
12
  const uniffiIsDebug =
13
13
  // @ts-ignore -- The process global might not be defined
14
- typeof process !== "object" ||
14
+ typeof process !== 'object' ||
15
15
  // @ts-ignore -- The process global might not be defined
16
- process?.env?.NODE_ENV !== "production" || true;
16
+ process?.env?.NODE_ENV !== 'production' || true;
17
17
  // Public interface members begin here.
18
18
 
19
19
  export function addSignatureToTransaction(tx, signature, pubkey, inputIndex) /*throws*/{
@@ -80,12 +80,12 @@ export function createCets(fundTxId, fundVout, localFinalScriptPubkey, remoteFin
80
80
  })()(FfiConverterString.lower(fundTxId), FfiConverterUInt32.lower(fundVout), FfiConverterArrayUInt8.lower(localFinalScriptPubkey), FfiConverterArrayUInt8.lower(remoteFinalScriptPubkey), FfiConverterArrayTypePayout.lower(outcomes), FfiConverterUInt32.lower(lockTime), FfiConverterUInt64.lower(localSerialId), FfiConverterUInt64.lower(remoteSerialId), callStatus);
81
81
  }, /*liftString:*/FfiConverterString.lift));
82
82
  }
83
- export function createDlcTransactions(outcomes, localParams, remoteParams, refundLocktime, feeRate, fundLockTime, cetLockTime, fundOutputSerialId) /*throws*/{
83
+ export function createDlcTransactions(outcomes, localParams, remoteParams, refundLocktime, feeRate, fundLockTime, cetLockTime, fundOutputSerialId, contractFlags) /*throws*/{
84
84
  return FfiConverterTypeDlcTransactions.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeDLCError.lift.bind(FfiConverterTypeDLCError), /*caller:*/callStatus => {
85
85
  return (() => {
86
86
  console.debug(`-- uniffi_ddk_ffi_fn_func_create_dlc_transactions`);
87
87
  return nativeModule().ubrn_uniffi_ddk_ffi_fn_func_create_dlc_transactions;
88
- })()(FfiConverterArrayTypePayout.lower(outcomes), FfiConverterTypePartyParams.lower(localParams), FfiConverterTypePartyParams.lower(remoteParams), FfiConverterUInt32.lower(refundLocktime), FfiConverterUInt64.lower(feeRate), FfiConverterUInt32.lower(fundLockTime), FfiConverterUInt32.lower(cetLockTime), FfiConverterUInt64.lower(fundOutputSerialId), callStatus);
88
+ })()(FfiConverterArrayTypePayout.lower(outcomes), FfiConverterTypePartyParams.lower(localParams), FfiConverterTypePartyParams.lower(remoteParams), FfiConverterUInt32.lower(refundLocktime), FfiConverterUInt64.lower(feeRate), FfiConverterUInt32.lower(fundLockTime), FfiConverterUInt32.lower(cetLockTime), FfiConverterUInt64.lower(fundOutputSerialId), FfiConverterUInt8.lower(contractFlags), callStatus);
89
89
  }, /*liftString:*/FfiConverterString.lift));
90
90
  }
91
91
  export function createExtkeyFromParentPath(extkey, path) /*throws*/{
@@ -120,12 +120,12 @@ export function createRefundTransaction(localFinalScriptPubkey, remoteFinalScrip
120
120
  })()(FfiConverterArrayUInt8.lower(localFinalScriptPubkey), FfiConverterArrayUInt8.lower(remoteFinalScriptPubkey), FfiConverterUInt64.lower(localAmount), FfiConverterUInt64.lower(remoteAmount), FfiConverterUInt32.lower(lockTime), FfiConverterString.lower(fundTxId), FfiConverterUInt32.lower(fundVout), callStatus);
121
121
  }, /*liftString:*/FfiConverterString.lift));
122
122
  }
123
- export function createSplicedDlcTransactions(outcomes, localParams, remoteParams, refundLocktime, feeRate, fundLockTime, cetLockTime, fundOutputSerialId) /*throws*/{
123
+ export function createSplicedDlcTransactions(outcomes, localParams, remoteParams, refundLocktime, feeRate, fundLockTime, cetLockTime, fundOutputSerialId, contractFlags) /*throws*/{
124
124
  return FfiConverterTypeDlcTransactions.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeDLCError.lift.bind(FfiConverterTypeDLCError), /*caller:*/callStatus => {
125
125
  return (() => {
126
126
  console.debug(`-- uniffi_ddk_ffi_fn_func_create_spliced_dlc_transactions`);
127
127
  return nativeModule().ubrn_uniffi_ddk_ffi_fn_func_create_spliced_dlc_transactions;
128
- })()(FfiConverterArrayTypePayout.lower(outcomes), FfiConverterTypePartyParams.lower(localParams), FfiConverterTypePartyParams.lower(remoteParams), FfiConverterUInt32.lower(refundLocktime), FfiConverterUInt64.lower(feeRate), FfiConverterUInt32.lower(fundLockTime), FfiConverterUInt32.lower(cetLockTime), FfiConverterUInt64.lower(fundOutputSerialId), callStatus);
128
+ })()(FfiConverterArrayTypePayout.lower(outcomes), FfiConverterTypePartyParams.lower(localParams), FfiConverterTypePartyParams.lower(remoteParams), FfiConverterUInt32.lower(refundLocktime), FfiConverterUInt64.lower(feeRate), FfiConverterUInt32.lower(fundLockTime), FfiConverterUInt32.lower(cetLockTime), FfiConverterUInt64.lower(fundOutputSerialId), FfiConverterUInt8.lower(contractFlags), callStatus);
129
129
  }, /*liftString:*/FfiConverterString.lift));
130
130
  }
131
131
  export function createXprivFromParentPath(seedOrXpriv, baseDerivationPath, network, path) /*throws*/{
@@ -305,7 +305,6 @@ const FfiConverterTypeAdaptorSignature = (() => {
305
305
  return FfiConverterArrayUInt8.allocationSize(value.signature) + FfiConverterArrayUInt8.allocationSize(value.proof);
306
306
  }
307
307
  }
308
- ;
309
308
  return new FFIConverter();
310
309
  })();
311
310
  /**
@@ -359,7 +358,6 @@ const FfiConverterTypeCetAdaptorSignatureDebugInfo = (() => {
359
358
  return FfiConverterArrayUInt8.allocationSize(value.sighash) + FfiConverterArrayUInt8.allocationSize(value.adaptorPoint) + FfiConverterUInt32.allocationSize(value.inputIndex) + FfiConverterArrayUInt8.allocationSize(value.scriptPubkey) + FfiConverterUInt64.allocationSize(value.value) + FfiConverterString.allocationSize(value.cetTxid) + FfiConverterArrayUInt8.allocationSize(value.cetRaw);
360
359
  }
361
360
  }
362
- ;
363
361
  return new FFIConverter();
364
362
  })();
365
363
  /**
@@ -405,7 +403,6 @@ const FfiConverterTypeChangeOutputAndFees = (() => {
405
403
  return FfiConverterTypeTxOutput.allocationSize(value.changeOutput) + FfiConverterUInt64.allocationSize(value.fundFee) + FfiConverterUInt64.allocationSize(value.cetFee);
406
404
  }
407
405
  }
408
- ;
409
406
  return new FFIConverter();
410
407
  })();
411
408
  /**
@@ -461,7 +458,6 @@ const FfiConverterTypeDlcInputInfo = (() => {
461
458
  return FfiConverterTypeTransaction.allocationSize(value.fundTx) + FfiConverterUInt32.allocationSize(value.fundVout) + FfiConverterArrayUInt8.allocationSize(value.localFundPubkey) + FfiConverterArrayUInt8.allocationSize(value.remoteFundPubkey) + FfiConverterUInt64.allocationSize(value.fundAmount) + FfiConverterUInt32.allocationSize(value.maxWitnessLen) + FfiConverterUInt64.allocationSize(value.inputSerialId) + FfiConverterArrayUInt8.allocationSize(value.contractId);
462
459
  }
463
460
  }
464
- ;
465
461
  return new FFIConverter();
466
462
  })();
467
463
  /**
@@ -509,7 +505,6 @@ const FfiConverterTypeDlcTransactions = (() => {
509
505
  return FfiConverterTypeTransaction.allocationSize(value.fund) + FfiConverterArrayTypeTransaction.allocationSize(value.cets) + FfiConverterTypeTransaction.allocationSize(value.refund) + FfiConverterArrayUInt8.allocationSize(value.fundingScriptPubkey);
510
506
  }
511
507
  }
512
- ;
513
508
  return new FFIConverter();
514
509
  })();
515
510
  /**
@@ -553,7 +548,6 @@ const FfiConverterTypeOracleInfo = (() => {
553
548
  return FfiConverterArrayUInt8.allocationSize(value.publicKey) + FfiConverterArrayArrayUInt8.allocationSize(value.nonces);
554
549
  }
555
550
  }
556
- ;
557
551
  return new FFIConverter();
558
552
  })();
559
553
  /**
@@ -611,7 +605,6 @@ const FfiConverterTypePartyParams = (() => {
611
605
  return FfiConverterArrayUInt8.allocationSize(value.fundPubkey) + FfiConverterArrayUInt8.allocationSize(value.changeScriptPubkey) + FfiConverterUInt64.allocationSize(value.changeSerialId) + FfiConverterArrayUInt8.allocationSize(value.payoutScriptPubkey) + FfiConverterUInt64.allocationSize(value.payoutSerialId) + FfiConverterArrayTypeTxInputInfo.allocationSize(value.inputs) + FfiConverterUInt64.allocationSize(value.inputAmount) + FfiConverterUInt64.allocationSize(value.collateral) + FfiConverterArrayTypeDlcInputInfo.allocationSize(value.dlcInputs);
612
606
  }
613
607
  }
614
- ;
615
608
  return new FFIConverter();
616
609
  })();
617
610
  /**
@@ -655,7 +648,6 @@ const FfiConverterTypePayout = (() => {
655
648
  return FfiConverterUInt64.allocationSize(value.offer) + FfiConverterUInt64.allocationSize(value.accept);
656
649
  }
657
650
  }
658
- ;
659
651
  return new FFIConverter();
660
652
  })();
661
653
  /**
@@ -705,7 +697,6 @@ const FfiConverterTypeTransaction = (() => {
705
697
  return FfiConverterInt32.allocationSize(value.version) + FfiConverterUInt32.allocationSize(value.lockTime) + FfiConverterArrayTypeTxInput.allocationSize(value.inputs) + FfiConverterArrayTypeTxOutput.allocationSize(value.outputs) + FfiConverterArrayUInt8.allocationSize(value.rawBytes);
706
698
  }
707
699
  }
708
- ;
709
700
  return new FFIConverter();
710
701
  })();
711
702
  /**
@@ -755,7 +746,6 @@ const FfiConverterTypeTxInput = (() => {
755
746
  return FfiConverterString.allocationSize(value.txid) + FfiConverterUInt32.allocationSize(value.vout) + FfiConverterArrayUInt8.allocationSize(value.scriptSig) + FfiConverterUInt32.allocationSize(value.sequence) + FfiConverterArrayArrayUInt8.allocationSize(value.witness);
756
747
  }
757
748
  }
758
- ;
759
749
  return new FFIConverter();
760
750
  })();
761
751
  /**
@@ -805,7 +795,6 @@ const FfiConverterTypeTxInputInfo = (() => {
805
795
  return FfiConverterString.allocationSize(value.txid) + FfiConverterUInt32.allocationSize(value.vout) + FfiConverterArrayUInt8.allocationSize(value.scriptSig) + FfiConverterUInt32.allocationSize(value.maxWitnessLength) + FfiConverterUInt64.allocationSize(value.serialId);
806
796
  }
807
797
  }
808
- ;
809
798
  return new FFIConverter();
810
799
  })();
811
800
  /**
@@ -849,7 +838,6 @@ const FfiConverterTypeTxOutput = (() => {
849
838
  return FfiConverterUInt64.allocationSize(value.value) + FfiConverterArrayUInt8.allocationSize(value.scriptPubkey);
850
839
  }
851
840
  }
852
- ;
853
841
  return new FFIConverter();
854
842
  })();
855
843
  const stringConverter = {
@@ -879,7 +867,7 @@ export const DlcError = (() => {
879
867
  * @private
880
868
  * This field is private and should not be used.
881
869
  */
882
- [uniffiTypeNameSymbol] = "DlcError";
870
+ [uniffiTypeNameSymbol] = 'DlcError';
883
871
  /**
884
872
  * @private
885
873
  * This field is private and should not be used.
@@ -887,7 +875,7 @@ export const DlcError = (() => {
887
875
  [variantOrdinalSymbol] = 1;
888
876
  tag = DlcError_Tags.InvalidSignature;
889
877
  constructor(message) {
890
- super("DlcError", "InvalidSignature", message);
878
+ super('DlcError', 'InvalidSignature', message);
891
879
  }
892
880
  static instanceOf(e) {
893
881
  return instanceOf(e) && e[variantOrdinalSymbol] === 1;
@@ -898,7 +886,7 @@ export const DlcError = (() => {
898
886
  * @private
899
887
  * This field is private and should not be used.
900
888
  */
901
- [uniffiTypeNameSymbol] = "DlcError";
889
+ [uniffiTypeNameSymbol] = 'DlcError';
902
890
  /**
903
891
  * @private
904
892
  * This field is private and should not be used.
@@ -906,7 +894,7 @@ export const DlcError = (() => {
906
894
  [variantOrdinalSymbol] = 2;
907
895
  tag = DlcError_Tags.InvalidPublicKey;
908
896
  constructor(message) {
909
- super("DlcError", "InvalidPublicKey", message);
897
+ super('DlcError', 'InvalidPublicKey', message);
910
898
  }
911
899
  static instanceOf(e) {
912
900
  return instanceOf(e) && e[variantOrdinalSymbol] === 2;
@@ -917,7 +905,7 @@ export const DlcError = (() => {
917
905
  * @private
918
906
  * This field is private and should not be used.
919
907
  */
920
- [uniffiTypeNameSymbol] = "DlcError";
908
+ [uniffiTypeNameSymbol] = 'DlcError';
921
909
  /**
922
910
  * @private
923
911
  * This field is private and should not be used.
@@ -925,7 +913,7 @@ export const DlcError = (() => {
925
913
  [variantOrdinalSymbol] = 3;
926
914
  tag = DlcError_Tags.InvalidTransaction;
927
915
  constructor(message) {
928
- super("DlcError", "InvalidTransaction", message);
916
+ super('DlcError', 'InvalidTransaction', message);
929
917
  }
930
918
  static instanceOf(e) {
931
919
  return instanceOf(e) && e[variantOrdinalSymbol] === 3;
@@ -936,7 +924,7 @@ export const DlcError = (() => {
936
924
  * @private
937
925
  * This field is private and should not be used.
938
926
  */
939
- [uniffiTypeNameSymbol] = "DlcError";
927
+ [uniffiTypeNameSymbol] = 'DlcError';
940
928
  /**
941
929
  * @private
942
930
  * This field is private and should not be used.
@@ -944,7 +932,7 @@ export const DlcError = (() => {
944
932
  [variantOrdinalSymbol] = 4;
945
933
  tag = DlcError_Tags.InsufficientFunds;
946
934
  constructor(message) {
947
- super("DlcError", "InsufficientFunds", message);
935
+ super('DlcError', 'InsufficientFunds', message);
948
936
  }
949
937
  static instanceOf(e) {
950
938
  return instanceOf(e) && e[variantOrdinalSymbol] === 4;
@@ -955,7 +943,7 @@ export const DlcError = (() => {
955
943
  * @private
956
944
  * This field is private and should not be used.
957
945
  */
958
- [uniffiTypeNameSymbol] = "DlcError";
946
+ [uniffiTypeNameSymbol] = 'DlcError';
959
947
  /**
960
948
  * @private
961
949
  * This field is private and should not be used.
@@ -963,7 +951,7 @@ export const DlcError = (() => {
963
951
  [variantOrdinalSymbol] = 5;
964
952
  tag = DlcError_Tags.InvalidArgument;
965
953
  constructor(message) {
966
- super("DlcError", "InvalidArgument", message);
954
+ super('DlcError', 'InvalidArgument', message);
967
955
  }
968
956
  static instanceOf(e) {
969
957
  return instanceOf(e) && e[variantOrdinalSymbol] === 5;
@@ -974,7 +962,7 @@ export const DlcError = (() => {
974
962
  * @private
975
963
  * This field is private and should not be used.
976
964
  */
977
- [uniffiTypeNameSymbol] = "DlcError";
965
+ [uniffiTypeNameSymbol] = 'DlcError';
978
966
  /**
979
967
  * @private
980
968
  * This field is private and should not be used.
@@ -982,7 +970,7 @@ export const DlcError = (() => {
982
970
  [variantOrdinalSymbol] = 6;
983
971
  tag = DlcError_Tags.SerializationError;
984
972
  constructor(message) {
985
- super("DlcError", "SerializationError", message);
973
+ super('DlcError', 'SerializationError', message);
986
974
  }
987
975
  static instanceOf(e) {
988
976
  return instanceOf(e) && e[variantOrdinalSymbol] === 6;
@@ -993,7 +981,7 @@ export const DlcError = (() => {
993
981
  * @private
994
982
  * This field is private and should not be used.
995
983
  */
996
- [uniffiTypeNameSymbol] = "DlcError";
984
+ [uniffiTypeNameSymbol] = 'DlcError';
997
985
  /**
998
986
  * @private
999
987
  * This field is private and should not be used.
@@ -1001,7 +989,7 @@ export const DlcError = (() => {
1001
989
  [variantOrdinalSymbol] = 7;
1002
990
  tag = DlcError_Tags.Secp256k1Error;
1003
991
  constructor(message) {
1004
- super("DlcError", "Secp256k1Error", message);
992
+ super('DlcError', 'Secp256k1Error', message);
1005
993
  }
1006
994
  static instanceOf(e) {
1007
995
  return instanceOf(e) && e[variantOrdinalSymbol] === 7;
@@ -1012,7 +1000,7 @@ export const DlcError = (() => {
1012
1000
  * @private
1013
1001
  * This field is private and should not be used.
1014
1002
  */
1015
- [uniffiTypeNameSymbol] = "DlcError";
1003
+ [uniffiTypeNameSymbol] = 'DlcError';
1016
1004
  /**
1017
1005
  * @private
1018
1006
  * This field is private and should not be used.
@@ -1020,7 +1008,7 @@ export const DlcError = (() => {
1020
1008
  [variantOrdinalSymbol] = 8;
1021
1009
  tag = DlcError_Tags.MiniscriptError;
1022
1010
  constructor(message) {
1023
- super("DlcError", "MiniscriptError", message);
1011
+ super('DlcError', 'MiniscriptError', message);
1024
1012
  }
1025
1013
  static instanceOf(e) {
1026
1014
  return instanceOf(e) && e[variantOrdinalSymbol] === 8;
@@ -1031,7 +1019,7 @@ export const DlcError = (() => {
1031
1019
  * @private
1032
1020
  * This field is private and should not be used.
1033
1021
  */
1034
- [uniffiTypeNameSymbol] = "DlcError";
1022
+ [uniffiTypeNameSymbol] = 'DlcError';
1035
1023
  /**
1036
1024
  * @private
1037
1025
  * This field is private and should not be used.
@@ -1039,7 +1027,7 @@ export const DlcError = (() => {
1039
1027
  [variantOrdinalSymbol] = 9;
1040
1028
  tag = DlcError_Tags.InvalidNetwork;
1041
1029
  constructor(message) {
1042
- super("DlcError", "InvalidNetwork", message);
1030
+ super('DlcError', 'InvalidNetwork', message);
1043
1031
  }
1044
1032
  static instanceOf(e) {
1045
1033
  return instanceOf(e) && e[variantOrdinalSymbol] === 9;
@@ -1050,7 +1038,7 @@ export const DlcError = (() => {
1050
1038
  * @private
1051
1039
  * This field is private and should not be used.
1052
1040
  */
1053
- [uniffiTypeNameSymbol] = "DlcError";
1041
+ [uniffiTypeNameSymbol] = 'DlcError';
1054
1042
  /**
1055
1043
  * @private
1056
1044
  * This field is private and should not be used.
@@ -1058,7 +1046,7 @@ export const DlcError = (() => {
1058
1046
  [variantOrdinalSymbol] = 10;
1059
1047
  tag = DlcError_Tags.KeyError;
1060
1048
  constructor(message) {
1061
- super("DlcError", "KeyError", message);
1049
+ super('DlcError', 'KeyError', message);
1062
1050
  }
1063
1051
  static instanceOf(e) {
1064
1052
  return instanceOf(e) && e[variantOrdinalSymbol] === 10;
@@ -1067,7 +1055,7 @@ export const DlcError = (() => {
1067
1055
 
1068
1056
  // Utility function which does not rely on instanceof.
1069
1057
  function instanceOf(e) {
1070
- return e[uniffiTypeNameSymbol] === "DlcError";
1058
+ return e[uniffiTypeNameSymbol] === 'DlcError';
1071
1059
  }
1072
1060
  return {
1073
1061
  InvalidSignature,
@@ -1141,7 +1129,7 @@ export const ExtendedKey = (() => {
1141
1129
  * @private
1142
1130
  * This field is private and should not be used.
1143
1131
  */
1144
- [uniffiTypeNameSymbol] = "ExtendedKey";
1132
+ [uniffiTypeNameSymbol] = 'ExtendedKey';
1145
1133
  /**
1146
1134
  * @private
1147
1135
  * This field is private and should not be used.
@@ -1149,7 +1137,7 @@ export const ExtendedKey = (() => {
1149
1137
  [variantOrdinalSymbol] = 1;
1150
1138
  tag = ExtendedKey_Tags.InvalidMnemonic;
1151
1139
  constructor(message) {
1152
- super("ExtendedKey", "InvalidMnemonic", message);
1140
+ super('ExtendedKey', 'InvalidMnemonic', message);
1153
1141
  }
1154
1142
  static instanceOf(e) {
1155
1143
  return instanceOf(e) && e[variantOrdinalSymbol] === 1;
@@ -1160,7 +1148,7 @@ export const ExtendedKey = (() => {
1160
1148
  * @private
1161
1149
  * This field is private and should not be used.
1162
1150
  */
1163
- [uniffiTypeNameSymbol] = "ExtendedKey";
1151
+ [uniffiTypeNameSymbol] = 'ExtendedKey';
1164
1152
  /**
1165
1153
  * @private
1166
1154
  * This field is private and should not be used.
@@ -1168,7 +1156,7 @@ export const ExtendedKey = (() => {
1168
1156
  [variantOrdinalSymbol] = 2;
1169
1157
  tag = ExtendedKey_Tags.InvalidXpriv;
1170
1158
  constructor(message) {
1171
- super("ExtendedKey", "InvalidXpriv", message);
1159
+ super('ExtendedKey', 'InvalidXpriv', message);
1172
1160
  }
1173
1161
  static instanceOf(e) {
1174
1162
  return instanceOf(e) && e[variantOrdinalSymbol] === 2;
@@ -1179,7 +1167,7 @@ export const ExtendedKey = (() => {
1179
1167
  * @private
1180
1168
  * This field is private and should not be used.
1181
1169
  */
1182
- [uniffiTypeNameSymbol] = "ExtendedKey";
1170
+ [uniffiTypeNameSymbol] = 'ExtendedKey';
1183
1171
  /**
1184
1172
  * @private
1185
1173
  * This field is private and should not be used.
@@ -1187,7 +1175,7 @@ export const ExtendedKey = (() => {
1187
1175
  [variantOrdinalSymbol] = 3;
1188
1176
  tag = ExtendedKey_Tags.InvalidXpub;
1189
1177
  constructor(message) {
1190
- super("ExtendedKey", "InvalidXpub", message);
1178
+ super('ExtendedKey', 'InvalidXpub', message);
1191
1179
  }
1192
1180
  static instanceOf(e) {
1193
1181
  return instanceOf(e) && e[variantOrdinalSymbol] === 3;
@@ -1198,7 +1186,7 @@ export const ExtendedKey = (() => {
1198
1186
  * @private
1199
1187
  * This field is private and should not be used.
1200
1188
  */
1201
- [uniffiTypeNameSymbol] = "ExtendedKey";
1189
+ [uniffiTypeNameSymbol] = 'ExtendedKey';
1202
1190
  /**
1203
1191
  * @private
1204
1192
  * This field is private and should not be used.
@@ -1206,7 +1194,7 @@ export const ExtendedKey = (() => {
1206
1194
  [variantOrdinalSymbol] = 4;
1207
1195
  tag = ExtendedKey_Tags.InvalidDerivationPath;
1208
1196
  constructor(message) {
1209
- super("ExtendedKey", "InvalidDerivationPath", message);
1197
+ super('ExtendedKey', 'InvalidDerivationPath', message);
1210
1198
  }
1211
1199
  static instanceOf(e) {
1212
1200
  return instanceOf(e) && e[variantOrdinalSymbol] === 4;
@@ -1215,7 +1203,7 @@ export const ExtendedKey = (() => {
1215
1203
 
1216
1204
  // Utility function which does not rely on instanceof.
1217
1205
  function instanceOf(e) {
1218
- return e[uniffiTypeNameSymbol] === "ExtendedKey";
1206
+ return e[uniffiTypeNameSymbol] === 'ExtendedKey';
1219
1207
  }
1220
1208
  return {
1221
1209
  InvalidMnemonic,
@@ -1315,97 +1303,97 @@ function uniffiEnsureInitialized() {
1315
1303
  throw new UniffiInternalError.ContractVersionMismatch(scaffoldingContractVersion, bindingsContractVersion);
1316
1304
  }
1317
1305
  if (nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_add_signature_to_transaction() !== 1337) {
1318
- throw new UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_add_signature_to_transaction");
1306
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_add_signature_to_transaction');
1319
1307
  }
1320
1308
  if (nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_convert_mnemonic_to_seed() !== 65049) {
1321
- throw new UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_convert_mnemonic_to_seed");
1309
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_convert_mnemonic_to_seed');
1322
1310
  }
1323
1311
  if (nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_create_cet() !== 23081) {
1324
- throw new UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_create_cet");
1312
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_create_cet');
1325
1313
  }
1326
1314
  if (nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_create_cet_adaptor_points_from_oracle_info() !== 6552) {
1327
- throw new UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_create_cet_adaptor_points_from_oracle_info");
1315
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_create_cet_adaptor_points_from_oracle_info');
1328
1316
  }
1329
1317
  if (nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_create_cet_adaptor_signature_from_oracle_info() !== 65174) {
1330
- throw new UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_create_cet_adaptor_signature_from_oracle_info");
1318
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_create_cet_adaptor_signature_from_oracle_info');
1331
1319
  }
1332
1320
  if (nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_create_cet_adaptor_sigs_from_oracle_info() !== 15699) {
1333
- throw new UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_create_cet_adaptor_sigs_from_oracle_info");
1321
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_create_cet_adaptor_sigs_from_oracle_info');
1334
1322
  }
1335
1323
  if (nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_create_cet_adaptor_sigs_from_points() !== 33705) {
1336
- throw new UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_create_cet_adaptor_sigs_from_points");
1324
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_create_cet_adaptor_sigs_from_points');
1337
1325
  }
1338
1326
  if (nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_create_cets() !== 50529) {
1339
- throw new UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_create_cets");
1327
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_create_cets');
1340
1328
  }
1341
- if (nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_create_dlc_transactions() !== 29518) {
1342
- throw new UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_create_dlc_transactions");
1329
+ if (nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_create_dlc_transactions() !== 51134) {
1330
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_create_dlc_transactions');
1343
1331
  }
1344
1332
  if (nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_create_extkey_from_parent_path() !== 26671) {
1345
- throw new UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_create_extkey_from_parent_path");
1333
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_create_extkey_from_parent_path');
1346
1334
  }
1347
1335
  if (nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_create_extkey_from_seed() !== 12526) {
1348
- throw new UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_create_extkey_from_seed");
1336
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_create_extkey_from_seed');
1349
1337
  }
1350
1338
  if (nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_create_fund_tx_locking_script() !== 2761) {
1351
- throw new UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_create_fund_tx_locking_script");
1339
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_create_fund_tx_locking_script');
1352
1340
  }
1353
1341
  if (nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_create_refund_transaction() !== 57261) {
1354
- throw new UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_create_refund_transaction");
1342
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_create_refund_transaction');
1355
1343
  }
1356
- if (nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_create_spliced_dlc_transactions() !== 19497) {
1357
- throw new UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_create_spliced_dlc_transactions");
1344
+ if (nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_create_spliced_dlc_transactions() !== 31130) {
1345
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_create_spliced_dlc_transactions');
1358
1346
  }
1359
1347
  if (nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_create_xpriv_from_parent_path() !== 34808) {
1360
- throw new UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_create_xpriv_from_parent_path");
1348
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_create_xpriv_from_parent_path');
1361
1349
  }
1362
1350
  if (nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_extract_ecdsa_signature_from_oracle_signatures() !== 8006) {
1363
- throw new UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_extract_ecdsa_signature_from_oracle_signatures");
1351
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_extract_ecdsa_signature_from_oracle_signatures');
1364
1352
  }
1365
1353
  if (nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_get_cet_adaptor_signature_inputs() !== 14595) {
1366
- throw new UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_get_cet_adaptor_signature_inputs");
1354
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_get_cet_adaptor_signature_inputs');
1367
1355
  }
1368
1356
  if (nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_get_cet_sighash() !== 10643) {
1369
- throw new UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_get_cet_sighash");
1357
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_get_cet_sighash');
1370
1358
  }
1371
1359
  if (nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_get_change_output_and_fees() !== 44150) {
1372
- throw new UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_get_change_output_and_fees");
1360
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_get_change_output_and_fees');
1373
1361
  }
1374
1362
  if (nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_get_pubkey_from_extkey() !== 64637) {
1375
- throw new UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_get_pubkey_from_extkey");
1363
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_get_pubkey_from_extkey');
1376
1364
  }
1377
1365
  if (nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_get_raw_funding_transaction_input_signature() !== 35708) {
1378
- throw new UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_get_raw_funding_transaction_input_signature");
1366
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_get_raw_funding_transaction_input_signature');
1379
1367
  }
1380
1368
  if (nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_get_total_input_vsize() !== 38213) {
1381
- throw new UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_get_total_input_vsize");
1369
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_get_total_input_vsize');
1382
1370
  }
1383
1371
  if (nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_get_xpub_from_xpriv() !== 44344) {
1384
- throw new UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_get_xpub_from_xpriv");
1372
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_get_xpub_from_xpriv');
1385
1373
  }
1386
1374
  if (nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_is_dust_output() !== 64174) {
1387
- throw new UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_is_dust_output");
1375
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_is_dust_output');
1388
1376
  }
1389
1377
  if (nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_sign_cet() !== 43957) {
1390
- throw new UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_sign_cet");
1378
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_sign_cet');
1391
1379
  }
1392
1380
  if (nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_sign_fund_transaction_input() !== 50531) {
1393
- throw new UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_sign_fund_transaction_input");
1381
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_sign_fund_transaction_input');
1394
1382
  }
1395
1383
  if (nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_sign_multi_sig_input() !== 14569) {
1396
- throw new UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_sign_multi_sig_input");
1384
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_sign_multi_sig_input');
1397
1385
  }
1398
1386
  if (nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_verify_cet_adaptor_sig_from_oracle_info() !== 52232) {
1399
- throw new UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_verify_cet_adaptor_sig_from_oracle_info");
1387
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_verify_cet_adaptor_sig_from_oracle_info');
1400
1388
  }
1401
1389
  if (nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_verify_cet_adaptor_sigs_from_oracle_info() !== 14181) {
1402
- throw new UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_verify_cet_adaptor_sigs_from_oracle_info");
1390
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_verify_cet_adaptor_sigs_from_oracle_info');
1403
1391
  }
1404
1392
  if (nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_verify_fund_tx_signature() !== 27316) {
1405
- throw new UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_verify_fund_tx_signature");
1393
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_verify_fund_tx_signature');
1406
1394
  }
1407
1395
  if (nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_version() !== 22317) {
1408
- throw new UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_version");
1396
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_version');
1409
1397
  }
1410
1398
  }
1411
1399
  export default Object.freeze({