@bennyblader/ddk-rn 0.3.33 → 0.3.36

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.
@@ -10,6 +10,7 @@ exports.createCet = createCet;
10
10
  exports.createCetAdaptorPointsFromOracleInfo = createCetAdaptorPointsFromOracleInfo;
11
11
  exports.createCetAdaptorSignatureFromOracleInfo = createCetAdaptorSignatureFromOracleInfo;
12
12
  exports.createCetAdaptorSigsFromOracleInfo = createCetAdaptorSigsFromOracleInfo;
13
+ exports.createCetAdaptorSigsFromPoints = createCetAdaptorSigsFromPoints;
13
14
  exports.createCets = createCets;
14
15
  exports.createDlcTransactions = createDlcTransactions;
15
16
  exports.createExtkeyFromParentPath = createExtkeyFromParentPath;
@@ -47,9 +48,9 @@ const uniffiCaller = new _uniffiBindgenReactNative.UniffiRustCaller(() => ({
47
48
  }));
48
49
  const uniffiIsDebug =
49
50
  // @ts-ignore -- The process global might not be defined
50
- typeof process !== 'object' ||
51
+ typeof process !== "object" ||
51
52
  // @ts-ignore -- The process global might not be defined
52
- process?.env?.NODE_ENV !== 'production' || true;
53
+ process?.env?.NODE_ENV !== "production" || true;
53
54
  // Public interface members begin here.
54
55
 
55
56
  function addSignatureToTransaction(tx, signature, pubkey, inputIndex) /*throws*/{
@@ -100,6 +101,14 @@ function createCetAdaptorSigsFromOracleInfo(cets, oracleInfo, fundingSecretKey,
100
101
  })()(FfiConverterArrayTypeTransaction.lower(cets), FfiConverterArrayTypeOracleInfo.lower(oracleInfo), FfiConverterArrayUInt8.lower(fundingSecretKey), FfiConverterArrayUInt8.lower(fundingScriptPubkey), _uniffiBindgenReactNative.FfiConverterUInt64.lower(fundOutputValue), FfiConverterArrayArrayArrayArrayUInt8.lower(msgs), callStatus);
101
102
  }, /*liftString:*/FfiConverterString.lift));
102
103
  }
104
+ function createCetAdaptorSigsFromPoints(cets, adaptorPoints, fundingSecretKey, fundingScriptPubkey, fundOutputValue) /*throws*/{
105
+ return FfiConverterArrayTypeAdaptorSignature.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeDLCError.lift.bind(FfiConverterTypeDLCError), /*caller:*/callStatus => {
106
+ return (() => {
107
+ console.debug(`-- uniffi_ddk_ffi_fn_func_create_cet_adaptor_sigs_from_points`);
108
+ return (0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_fn_func_create_cet_adaptor_sigs_from_points;
109
+ })()(FfiConverterArrayTypeTransaction.lower(cets), FfiConverterArrayArrayUInt8.lower(adaptorPoints), FfiConverterArrayUInt8.lower(fundingSecretKey), FfiConverterArrayUInt8.lower(fundingScriptPubkey), _uniffiBindgenReactNative.FfiConverterUInt64.lower(fundOutputValue), callStatus);
110
+ }, /*liftString:*/FfiConverterString.lift));
111
+ }
103
112
  function createCets(fundTxId, fundVout, localFinalScriptPubkey, remoteFinalScriptPubkey, outcomes, lockTime, localSerialId, remoteSerialId) /*throws*/{
104
113
  return FfiConverterArrayTypeTransaction.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeDLCError.lift.bind(FfiConverterTypeDLCError), /*caller:*/callStatus => {
105
114
  return (() => {
@@ -333,6 +342,7 @@ const FfiConverterTypeAdaptorSignature = (() => {
333
342
  return FfiConverterArrayUInt8.allocationSize(value.signature) + FfiConverterArrayUInt8.allocationSize(value.proof);
334
343
  }
335
344
  }
345
+ ;
336
346
  return new FFIConverter();
337
347
  })();
338
348
  /**
@@ -386,6 +396,7 @@ const FfiConverterTypeCetAdaptorSignatureDebugInfo = (() => {
386
396
  return FfiConverterArrayUInt8.allocationSize(value.sighash) + FfiConverterArrayUInt8.allocationSize(value.adaptorPoint) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.inputIndex) + FfiConverterArrayUInt8.allocationSize(value.scriptPubkey) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.value) + FfiConverterString.allocationSize(value.cetTxid) + FfiConverterArrayUInt8.allocationSize(value.cetRaw);
387
397
  }
388
398
  }
399
+ ;
389
400
  return new FFIConverter();
390
401
  })();
391
402
  /**
@@ -431,6 +442,7 @@ const FfiConverterTypeChangeOutputAndFees = (() => {
431
442
  return FfiConverterTypeTxOutput.allocationSize(value.changeOutput) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.fundFee) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.cetFee);
432
443
  }
433
444
  }
445
+ ;
434
446
  return new FFIConverter();
435
447
  })();
436
448
  /**
@@ -486,6 +498,7 @@ const FfiConverterTypeDlcInputInfo = (() => {
486
498
  return FfiConverterTypeTransaction.allocationSize(value.fundTx) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.fundVout) + FfiConverterArrayUInt8.allocationSize(value.localFundPubkey) + FfiConverterArrayUInt8.allocationSize(value.remoteFundPubkey) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.fundAmount) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.maxWitnessLen) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.inputSerialId) + FfiConverterArrayUInt8.allocationSize(value.contractId);
487
499
  }
488
500
  }
501
+ ;
489
502
  return new FFIConverter();
490
503
  })();
491
504
  /**
@@ -533,6 +546,7 @@ const FfiConverterTypeDlcTransactions = (() => {
533
546
  return FfiConverterTypeTransaction.allocationSize(value.fund) + FfiConverterArrayTypeTransaction.allocationSize(value.cets) + FfiConverterTypeTransaction.allocationSize(value.refund) + FfiConverterArrayUInt8.allocationSize(value.fundingScriptPubkey);
534
547
  }
535
548
  }
549
+ ;
536
550
  return new FFIConverter();
537
551
  })();
538
552
  /**
@@ -576,6 +590,7 @@ const FfiConverterTypeOracleInfo = (() => {
576
590
  return FfiConverterArrayUInt8.allocationSize(value.publicKey) + FfiConverterArrayArrayUInt8.allocationSize(value.nonces);
577
591
  }
578
592
  }
593
+ ;
579
594
  return new FFIConverter();
580
595
  })();
581
596
  /**
@@ -633,6 +648,7 @@ const FfiConverterTypePartyParams = (() => {
633
648
  return FfiConverterArrayUInt8.allocationSize(value.fundPubkey) + FfiConverterArrayUInt8.allocationSize(value.changeScriptPubkey) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.changeSerialId) + FfiConverterArrayUInt8.allocationSize(value.payoutScriptPubkey) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.payoutSerialId) + FfiConverterArrayTypeTxInputInfo.allocationSize(value.inputs) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.inputAmount) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.collateral) + FfiConverterArrayTypeDlcInputInfo.allocationSize(value.dlcInputs);
634
649
  }
635
650
  }
651
+ ;
636
652
  return new FFIConverter();
637
653
  })();
638
654
  /**
@@ -676,6 +692,7 @@ const FfiConverterTypePayout = (() => {
676
692
  return _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.offer) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.accept);
677
693
  }
678
694
  }
695
+ ;
679
696
  return new FFIConverter();
680
697
  })();
681
698
  /**
@@ -725,6 +742,7 @@ const FfiConverterTypeTransaction = (() => {
725
742
  return _uniffiBindgenReactNative.FfiConverterInt32.allocationSize(value.version) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.lockTime) + FfiConverterArrayTypeTxInput.allocationSize(value.inputs) + FfiConverterArrayTypeTxOutput.allocationSize(value.outputs) + FfiConverterArrayUInt8.allocationSize(value.rawBytes);
726
743
  }
727
744
  }
745
+ ;
728
746
  return new FFIConverter();
729
747
  })();
730
748
  /**
@@ -774,6 +792,7 @@ const FfiConverterTypeTxInput = (() => {
774
792
  return FfiConverterString.allocationSize(value.txid) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.vout) + FfiConverterArrayUInt8.allocationSize(value.scriptSig) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.sequence) + FfiConverterArrayArrayUInt8.allocationSize(value.witness);
775
793
  }
776
794
  }
795
+ ;
777
796
  return new FFIConverter();
778
797
  })();
779
798
  /**
@@ -823,6 +842,7 @@ const FfiConverterTypeTxInputInfo = (() => {
823
842
  return FfiConverterString.allocationSize(value.txid) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.vout) + FfiConverterArrayUInt8.allocationSize(value.scriptSig) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.maxWitnessLength) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.serialId);
824
843
  }
825
844
  }
845
+ ;
826
846
  return new FFIConverter();
827
847
  })();
828
848
  /**
@@ -866,6 +886,7 @@ const FfiConverterTypeTxOutput = (() => {
866
886
  return _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.value) + FfiConverterArrayUInt8.allocationSize(value.scriptPubkey);
867
887
  }
868
888
  }
889
+ ;
869
890
  return new FFIConverter();
870
891
  })();
871
892
  const stringConverter = {
@@ -895,7 +916,7 @@ const DlcError = exports.DlcError = (() => {
895
916
  * @private
896
917
  * This field is private and should not be used.
897
918
  */
898
- [_uniffiBindgenReactNative.uniffiTypeNameSymbol] = 'DlcError';
919
+ [_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "DlcError";
899
920
  /**
900
921
  * @private
901
922
  * This field is private and should not be used.
@@ -903,7 +924,7 @@ const DlcError = exports.DlcError = (() => {
903
924
  [_uniffiBindgenReactNative.variantOrdinalSymbol] = 1;
904
925
  tag = DlcError_Tags.InvalidSignature;
905
926
  constructor(message) {
906
- super('DlcError', 'InvalidSignature', message);
927
+ super("DlcError", "InvalidSignature", message);
907
928
  }
908
929
  static instanceOf(e) {
909
930
  return instanceOf(e) && e[_uniffiBindgenReactNative.variantOrdinalSymbol] === 1;
@@ -914,7 +935,7 @@ const DlcError = exports.DlcError = (() => {
914
935
  * @private
915
936
  * This field is private and should not be used.
916
937
  */
917
- [_uniffiBindgenReactNative.uniffiTypeNameSymbol] = 'DlcError';
938
+ [_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "DlcError";
918
939
  /**
919
940
  * @private
920
941
  * This field is private and should not be used.
@@ -922,7 +943,7 @@ const DlcError = exports.DlcError = (() => {
922
943
  [_uniffiBindgenReactNative.variantOrdinalSymbol] = 2;
923
944
  tag = DlcError_Tags.InvalidPublicKey;
924
945
  constructor(message) {
925
- super('DlcError', 'InvalidPublicKey', message);
946
+ super("DlcError", "InvalidPublicKey", message);
926
947
  }
927
948
  static instanceOf(e) {
928
949
  return instanceOf(e) && e[_uniffiBindgenReactNative.variantOrdinalSymbol] === 2;
@@ -933,7 +954,7 @@ const DlcError = exports.DlcError = (() => {
933
954
  * @private
934
955
  * This field is private and should not be used.
935
956
  */
936
- [_uniffiBindgenReactNative.uniffiTypeNameSymbol] = 'DlcError';
957
+ [_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "DlcError";
937
958
  /**
938
959
  * @private
939
960
  * This field is private and should not be used.
@@ -941,7 +962,7 @@ const DlcError = exports.DlcError = (() => {
941
962
  [_uniffiBindgenReactNative.variantOrdinalSymbol] = 3;
942
963
  tag = DlcError_Tags.InvalidTransaction;
943
964
  constructor(message) {
944
- super('DlcError', 'InvalidTransaction', message);
965
+ super("DlcError", "InvalidTransaction", message);
945
966
  }
946
967
  static instanceOf(e) {
947
968
  return instanceOf(e) && e[_uniffiBindgenReactNative.variantOrdinalSymbol] === 3;
@@ -952,7 +973,7 @@ const DlcError = exports.DlcError = (() => {
952
973
  * @private
953
974
  * This field is private and should not be used.
954
975
  */
955
- [_uniffiBindgenReactNative.uniffiTypeNameSymbol] = 'DlcError';
976
+ [_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "DlcError";
956
977
  /**
957
978
  * @private
958
979
  * This field is private and should not be used.
@@ -960,7 +981,7 @@ const DlcError = exports.DlcError = (() => {
960
981
  [_uniffiBindgenReactNative.variantOrdinalSymbol] = 4;
961
982
  tag = DlcError_Tags.InsufficientFunds;
962
983
  constructor(message) {
963
- super('DlcError', 'InsufficientFunds', message);
984
+ super("DlcError", "InsufficientFunds", message);
964
985
  }
965
986
  static instanceOf(e) {
966
987
  return instanceOf(e) && e[_uniffiBindgenReactNative.variantOrdinalSymbol] === 4;
@@ -971,7 +992,7 @@ const DlcError = exports.DlcError = (() => {
971
992
  * @private
972
993
  * This field is private and should not be used.
973
994
  */
974
- [_uniffiBindgenReactNative.uniffiTypeNameSymbol] = 'DlcError';
995
+ [_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "DlcError";
975
996
  /**
976
997
  * @private
977
998
  * This field is private and should not be used.
@@ -979,7 +1000,7 @@ const DlcError = exports.DlcError = (() => {
979
1000
  [_uniffiBindgenReactNative.variantOrdinalSymbol] = 5;
980
1001
  tag = DlcError_Tags.InvalidArgument;
981
1002
  constructor(message) {
982
- super('DlcError', 'InvalidArgument', message);
1003
+ super("DlcError", "InvalidArgument", message);
983
1004
  }
984
1005
  static instanceOf(e) {
985
1006
  return instanceOf(e) && e[_uniffiBindgenReactNative.variantOrdinalSymbol] === 5;
@@ -990,7 +1011,7 @@ const DlcError = exports.DlcError = (() => {
990
1011
  * @private
991
1012
  * This field is private and should not be used.
992
1013
  */
993
- [_uniffiBindgenReactNative.uniffiTypeNameSymbol] = 'DlcError';
1014
+ [_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "DlcError";
994
1015
  /**
995
1016
  * @private
996
1017
  * This field is private and should not be used.
@@ -998,7 +1019,7 @@ const DlcError = exports.DlcError = (() => {
998
1019
  [_uniffiBindgenReactNative.variantOrdinalSymbol] = 6;
999
1020
  tag = DlcError_Tags.SerializationError;
1000
1021
  constructor(message) {
1001
- super('DlcError', 'SerializationError', message);
1022
+ super("DlcError", "SerializationError", message);
1002
1023
  }
1003
1024
  static instanceOf(e) {
1004
1025
  return instanceOf(e) && e[_uniffiBindgenReactNative.variantOrdinalSymbol] === 6;
@@ -1009,7 +1030,7 @@ const DlcError = exports.DlcError = (() => {
1009
1030
  * @private
1010
1031
  * This field is private and should not be used.
1011
1032
  */
1012
- [_uniffiBindgenReactNative.uniffiTypeNameSymbol] = 'DlcError';
1033
+ [_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "DlcError";
1013
1034
  /**
1014
1035
  * @private
1015
1036
  * This field is private and should not be used.
@@ -1017,7 +1038,7 @@ const DlcError = exports.DlcError = (() => {
1017
1038
  [_uniffiBindgenReactNative.variantOrdinalSymbol] = 7;
1018
1039
  tag = DlcError_Tags.Secp256k1Error;
1019
1040
  constructor(message) {
1020
- super('DlcError', 'Secp256k1Error', message);
1041
+ super("DlcError", "Secp256k1Error", message);
1021
1042
  }
1022
1043
  static instanceOf(e) {
1023
1044
  return instanceOf(e) && e[_uniffiBindgenReactNative.variantOrdinalSymbol] === 7;
@@ -1028,7 +1049,7 @@ const DlcError = exports.DlcError = (() => {
1028
1049
  * @private
1029
1050
  * This field is private and should not be used.
1030
1051
  */
1031
- [_uniffiBindgenReactNative.uniffiTypeNameSymbol] = 'DlcError';
1052
+ [_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "DlcError";
1032
1053
  /**
1033
1054
  * @private
1034
1055
  * This field is private and should not be used.
@@ -1036,7 +1057,7 @@ const DlcError = exports.DlcError = (() => {
1036
1057
  [_uniffiBindgenReactNative.variantOrdinalSymbol] = 8;
1037
1058
  tag = DlcError_Tags.MiniscriptError;
1038
1059
  constructor(message) {
1039
- super('DlcError', 'MiniscriptError', message);
1060
+ super("DlcError", "MiniscriptError", message);
1040
1061
  }
1041
1062
  static instanceOf(e) {
1042
1063
  return instanceOf(e) && e[_uniffiBindgenReactNative.variantOrdinalSymbol] === 8;
@@ -1047,7 +1068,7 @@ const DlcError = exports.DlcError = (() => {
1047
1068
  * @private
1048
1069
  * This field is private and should not be used.
1049
1070
  */
1050
- [_uniffiBindgenReactNative.uniffiTypeNameSymbol] = 'DlcError';
1071
+ [_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "DlcError";
1051
1072
  /**
1052
1073
  * @private
1053
1074
  * This field is private and should not be used.
@@ -1055,7 +1076,7 @@ const DlcError = exports.DlcError = (() => {
1055
1076
  [_uniffiBindgenReactNative.variantOrdinalSymbol] = 9;
1056
1077
  tag = DlcError_Tags.InvalidNetwork;
1057
1078
  constructor(message) {
1058
- super('DlcError', 'InvalidNetwork', message);
1079
+ super("DlcError", "InvalidNetwork", message);
1059
1080
  }
1060
1081
  static instanceOf(e) {
1061
1082
  return instanceOf(e) && e[_uniffiBindgenReactNative.variantOrdinalSymbol] === 9;
@@ -1066,7 +1087,7 @@ const DlcError = exports.DlcError = (() => {
1066
1087
  * @private
1067
1088
  * This field is private and should not be used.
1068
1089
  */
1069
- [_uniffiBindgenReactNative.uniffiTypeNameSymbol] = 'DlcError';
1090
+ [_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "DlcError";
1070
1091
  /**
1071
1092
  * @private
1072
1093
  * This field is private and should not be used.
@@ -1074,7 +1095,7 @@ const DlcError = exports.DlcError = (() => {
1074
1095
  [_uniffiBindgenReactNative.variantOrdinalSymbol] = 10;
1075
1096
  tag = DlcError_Tags.KeyError;
1076
1097
  constructor(message) {
1077
- super('DlcError', 'KeyError', message);
1098
+ super("DlcError", "KeyError", message);
1078
1099
  }
1079
1100
  static instanceOf(e) {
1080
1101
  return instanceOf(e) && e[_uniffiBindgenReactNative.variantOrdinalSymbol] === 10;
@@ -1083,7 +1104,7 @@ const DlcError = exports.DlcError = (() => {
1083
1104
 
1084
1105
  // Utility function which does not rely on instanceof.
1085
1106
  function instanceOf(e) {
1086
- return e[_uniffiBindgenReactNative.uniffiTypeNameSymbol] === 'DlcError';
1107
+ return e[_uniffiBindgenReactNative.uniffiTypeNameSymbol] === "DlcError";
1087
1108
  }
1088
1109
  return {
1089
1110
  InvalidSignature,
@@ -1157,7 +1178,7 @@ const ExtendedKey = exports.ExtendedKey = (() => {
1157
1178
  * @private
1158
1179
  * This field is private and should not be used.
1159
1180
  */
1160
- [_uniffiBindgenReactNative.uniffiTypeNameSymbol] = 'ExtendedKey';
1181
+ [_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "ExtendedKey";
1161
1182
  /**
1162
1183
  * @private
1163
1184
  * This field is private and should not be used.
@@ -1165,7 +1186,7 @@ const ExtendedKey = exports.ExtendedKey = (() => {
1165
1186
  [_uniffiBindgenReactNative.variantOrdinalSymbol] = 1;
1166
1187
  tag = ExtendedKey_Tags.InvalidMnemonic;
1167
1188
  constructor(message) {
1168
- super('ExtendedKey', 'InvalidMnemonic', message);
1189
+ super("ExtendedKey", "InvalidMnemonic", message);
1169
1190
  }
1170
1191
  static instanceOf(e) {
1171
1192
  return instanceOf(e) && e[_uniffiBindgenReactNative.variantOrdinalSymbol] === 1;
@@ -1176,7 +1197,7 @@ const ExtendedKey = exports.ExtendedKey = (() => {
1176
1197
  * @private
1177
1198
  * This field is private and should not be used.
1178
1199
  */
1179
- [_uniffiBindgenReactNative.uniffiTypeNameSymbol] = 'ExtendedKey';
1200
+ [_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "ExtendedKey";
1180
1201
  /**
1181
1202
  * @private
1182
1203
  * This field is private and should not be used.
@@ -1184,7 +1205,7 @@ const ExtendedKey = exports.ExtendedKey = (() => {
1184
1205
  [_uniffiBindgenReactNative.variantOrdinalSymbol] = 2;
1185
1206
  tag = ExtendedKey_Tags.InvalidXpriv;
1186
1207
  constructor(message) {
1187
- super('ExtendedKey', 'InvalidXpriv', message);
1208
+ super("ExtendedKey", "InvalidXpriv", message);
1188
1209
  }
1189
1210
  static instanceOf(e) {
1190
1211
  return instanceOf(e) && e[_uniffiBindgenReactNative.variantOrdinalSymbol] === 2;
@@ -1195,7 +1216,7 @@ const ExtendedKey = exports.ExtendedKey = (() => {
1195
1216
  * @private
1196
1217
  * This field is private and should not be used.
1197
1218
  */
1198
- [_uniffiBindgenReactNative.uniffiTypeNameSymbol] = 'ExtendedKey';
1219
+ [_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "ExtendedKey";
1199
1220
  /**
1200
1221
  * @private
1201
1222
  * This field is private and should not be used.
@@ -1203,7 +1224,7 @@ const ExtendedKey = exports.ExtendedKey = (() => {
1203
1224
  [_uniffiBindgenReactNative.variantOrdinalSymbol] = 3;
1204
1225
  tag = ExtendedKey_Tags.InvalidXpub;
1205
1226
  constructor(message) {
1206
- super('ExtendedKey', 'InvalidXpub', message);
1227
+ super("ExtendedKey", "InvalidXpub", message);
1207
1228
  }
1208
1229
  static instanceOf(e) {
1209
1230
  return instanceOf(e) && e[_uniffiBindgenReactNative.variantOrdinalSymbol] === 3;
@@ -1214,7 +1235,7 @@ const ExtendedKey = exports.ExtendedKey = (() => {
1214
1235
  * @private
1215
1236
  * This field is private and should not be used.
1216
1237
  */
1217
- [_uniffiBindgenReactNative.uniffiTypeNameSymbol] = 'ExtendedKey';
1238
+ [_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "ExtendedKey";
1218
1239
  /**
1219
1240
  * @private
1220
1241
  * This field is private and should not be used.
@@ -1222,7 +1243,7 @@ const ExtendedKey = exports.ExtendedKey = (() => {
1222
1243
  [_uniffiBindgenReactNative.variantOrdinalSymbol] = 4;
1223
1244
  tag = ExtendedKey_Tags.InvalidDerivationPath;
1224
1245
  constructor(message) {
1225
- super('ExtendedKey', 'InvalidDerivationPath', message);
1246
+ super("ExtendedKey", "InvalidDerivationPath", message);
1226
1247
  }
1227
1248
  static instanceOf(e) {
1228
1249
  return instanceOf(e) && e[_uniffiBindgenReactNative.variantOrdinalSymbol] === 4;
@@ -1231,7 +1252,7 @@ const ExtendedKey = exports.ExtendedKey = (() => {
1231
1252
 
1232
1253
  // Utility function which does not rely on instanceof.
1233
1254
  function instanceOf(e) {
1234
- return e[_uniffiBindgenReactNative.uniffiTypeNameSymbol] === 'ExtendedKey';
1255
+ return e[_uniffiBindgenReactNative.uniffiTypeNameSymbol] === "ExtendedKey";
1235
1256
  }
1236
1257
  return {
1237
1258
  InvalidMnemonic,
@@ -1331,94 +1352,97 @@ function uniffiEnsureInitialized() {
1331
1352
  throw new _uniffiBindgenReactNative.UniffiInternalError.ContractVersionMismatch(scaffoldingContractVersion, bindingsContractVersion);
1332
1353
  }
1333
1354
  if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_add_signature_to_transaction() !== 1337) {
1334
- throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_add_signature_to_transaction');
1355
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_add_signature_to_transaction");
1335
1356
  }
1336
1357
  if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_convert_mnemonic_to_seed() !== 65049) {
1337
- throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_convert_mnemonic_to_seed');
1358
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_convert_mnemonic_to_seed");
1338
1359
  }
1339
1360
  if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_create_cet() !== 23081) {
1340
- throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_create_cet');
1361
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_create_cet");
1341
1362
  }
1342
1363
  if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_create_cet_adaptor_points_from_oracle_info() !== 6552) {
1343
- throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_create_cet_adaptor_points_from_oracle_info');
1364
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_create_cet_adaptor_points_from_oracle_info");
1344
1365
  }
1345
1366
  if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_create_cet_adaptor_signature_from_oracle_info() !== 65174) {
1346
- throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_create_cet_adaptor_signature_from_oracle_info');
1367
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_create_cet_adaptor_signature_from_oracle_info");
1347
1368
  }
1348
1369
  if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_create_cet_adaptor_sigs_from_oracle_info() !== 15699) {
1349
- throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_create_cet_adaptor_sigs_from_oracle_info');
1370
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_create_cet_adaptor_sigs_from_oracle_info");
1371
+ }
1372
+ if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_create_cet_adaptor_sigs_from_points() !== 33705) {
1373
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_create_cet_adaptor_sigs_from_points");
1350
1374
  }
1351
1375
  if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_create_cets() !== 50529) {
1352
- throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_create_cets');
1376
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_create_cets");
1353
1377
  }
1354
1378
  if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_create_dlc_transactions() !== 29518) {
1355
- throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_create_dlc_transactions');
1379
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_create_dlc_transactions");
1356
1380
  }
1357
1381
  if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_create_extkey_from_parent_path() !== 26671) {
1358
- throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_create_extkey_from_parent_path');
1382
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_create_extkey_from_parent_path");
1359
1383
  }
1360
1384
  if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_create_extkey_from_seed() !== 12526) {
1361
- throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_create_extkey_from_seed');
1385
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_create_extkey_from_seed");
1362
1386
  }
1363
1387
  if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_create_fund_tx_locking_script() !== 2761) {
1364
- throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_create_fund_tx_locking_script');
1388
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_create_fund_tx_locking_script");
1365
1389
  }
1366
1390
  if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_create_refund_transaction() !== 57261) {
1367
- throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_create_refund_transaction');
1391
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_create_refund_transaction");
1368
1392
  }
1369
1393
  if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_create_spliced_dlc_transactions() !== 19497) {
1370
- throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_create_spliced_dlc_transactions');
1394
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_create_spliced_dlc_transactions");
1371
1395
  }
1372
1396
  if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_create_xpriv_from_parent_path() !== 34808) {
1373
- throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_create_xpriv_from_parent_path');
1397
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_create_xpriv_from_parent_path");
1374
1398
  }
1375
1399
  if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_extract_ecdsa_signature_from_oracle_signatures() !== 8006) {
1376
- throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_extract_ecdsa_signature_from_oracle_signatures');
1400
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_extract_ecdsa_signature_from_oracle_signatures");
1377
1401
  }
1378
1402
  if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_get_cet_adaptor_signature_inputs() !== 14595) {
1379
- throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_get_cet_adaptor_signature_inputs');
1403
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_get_cet_adaptor_signature_inputs");
1380
1404
  }
1381
1405
  if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_get_cet_sighash() !== 10643) {
1382
- throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_get_cet_sighash');
1406
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_get_cet_sighash");
1383
1407
  }
1384
1408
  if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_get_change_output_and_fees() !== 44150) {
1385
- throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_get_change_output_and_fees');
1409
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_get_change_output_and_fees");
1386
1410
  }
1387
1411
  if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_get_pubkey_from_extkey() !== 64637) {
1388
- throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_get_pubkey_from_extkey');
1412
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_get_pubkey_from_extkey");
1389
1413
  }
1390
1414
  if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_get_raw_funding_transaction_input_signature() !== 35708) {
1391
- throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_get_raw_funding_transaction_input_signature');
1415
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_get_raw_funding_transaction_input_signature");
1392
1416
  }
1393
1417
  if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_get_total_input_vsize() !== 38213) {
1394
- throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_get_total_input_vsize');
1418
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_get_total_input_vsize");
1395
1419
  }
1396
1420
  if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_get_xpub_from_xpriv() !== 44344) {
1397
- throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_get_xpub_from_xpriv');
1421
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_get_xpub_from_xpriv");
1398
1422
  }
1399
1423
  if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_is_dust_output() !== 64174) {
1400
- throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_is_dust_output');
1424
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_is_dust_output");
1401
1425
  }
1402
1426
  if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_sign_cet() !== 43957) {
1403
- throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_sign_cet');
1427
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_sign_cet");
1404
1428
  }
1405
1429
  if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_sign_fund_transaction_input() !== 50531) {
1406
- throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_sign_fund_transaction_input');
1430
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_sign_fund_transaction_input");
1407
1431
  }
1408
1432
  if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_sign_multi_sig_input() !== 14569) {
1409
- throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_sign_multi_sig_input');
1433
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_sign_multi_sig_input");
1410
1434
  }
1411
1435
  if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_verify_cet_adaptor_sig_from_oracle_info() !== 52232) {
1412
- throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_verify_cet_adaptor_sig_from_oracle_info');
1436
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_verify_cet_adaptor_sig_from_oracle_info");
1413
1437
  }
1414
1438
  if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_verify_cet_adaptor_sigs_from_oracle_info() !== 14181) {
1415
- throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_verify_cet_adaptor_sigs_from_oracle_info');
1439
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_verify_cet_adaptor_sigs_from_oracle_info");
1416
1440
  }
1417
1441
  if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_verify_fund_tx_signature() !== 27316) {
1418
- throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_verify_fund_tx_signature');
1442
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_verify_fund_tx_signature");
1419
1443
  }
1420
1444
  if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_version() !== 22317) {
1421
- throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_ddk_ffi_checksum_func_version');
1445
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_version");
1422
1446
  }
1423
1447
  }
1424
1448
  var _default = exports.default = Object.freeze({