@bennyblader/ddk-rn 0.3.39 → 0.3.40
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.
- package/DdkRn.podspec +0 -3
- package/cpp/bennyblader-ddk-rn.cpp +1 -1
- package/cpp/ddk_ffi.cpp +2573 -2485
- package/cpp/ddk_ffi.hpp +255 -97
- package/ddk-ffi/Cargo.lock +1 -1
- package/ddk-ffi/Cargo.toml +1 -1
- package/lib/commonjs/ddk_ffi-ffi.js.map +1 -1
- package/lib/commonjs/ddk_ffi.js +75 -63
- package/lib/commonjs/ddk_ffi.js.map +1 -1
- package/lib/module/ddk_ffi-ffi.js.map +1 -1
- package/lib/module/ddk_ffi.js +76 -64
- package/lib/module/ddk_ffi.js.map +1 -1
- package/lib/typescript/commonjs/src/ddk_ffi-ffi.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ddk_ffi.d.ts +3 -3
- package/lib/typescript/commonjs/src/ddk_ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/ddk_ffi-ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/ddk_ffi.d.ts +3 -3
- package/lib/typescript/module/src/ddk_ffi.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/ddk_ffi-ffi.ts +83 -331
- package/src/ddk_ffi.ts +1885 -2317
package/lib/commonjs/ddk_ffi.js
CHANGED
|
@@ -48,9 +48,9 @@ const uniffiCaller = new _uniffiBindgenReactNative.UniffiRustCaller(() => ({
|
|
|
48
48
|
}));
|
|
49
49
|
const uniffiIsDebug =
|
|
50
50
|
// @ts-ignore -- The process global might not be defined
|
|
51
|
-
typeof process !==
|
|
51
|
+
typeof process !== "object" ||
|
|
52
52
|
// @ts-ignore -- The process global might not be defined
|
|
53
|
-
process?.env?.NODE_ENV !==
|
|
53
|
+
process?.env?.NODE_ENV !== "production" || true;
|
|
54
54
|
// Public interface members begin here.
|
|
55
55
|
|
|
56
56
|
function addSignatureToTransaction(tx, signature, pubkey, inputIndex) /*throws*/{
|
|
@@ -342,6 +342,7 @@ const FfiConverterTypeAdaptorSignature = (() => {
|
|
|
342
342
|
return FfiConverterArrayUInt8.allocationSize(value.signature) + FfiConverterArrayUInt8.allocationSize(value.proof);
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
|
+
;
|
|
345
346
|
return new FFIConverter();
|
|
346
347
|
})();
|
|
347
348
|
/**
|
|
@@ -395,6 +396,7 @@ const FfiConverterTypeCetAdaptorSignatureDebugInfo = (() => {
|
|
|
395
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);
|
|
396
397
|
}
|
|
397
398
|
}
|
|
399
|
+
;
|
|
398
400
|
return new FFIConverter();
|
|
399
401
|
})();
|
|
400
402
|
/**
|
|
@@ -440,6 +442,7 @@ const FfiConverterTypeChangeOutputAndFees = (() => {
|
|
|
440
442
|
return FfiConverterTypeTxOutput.allocationSize(value.changeOutput) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.fundFee) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.cetFee);
|
|
441
443
|
}
|
|
442
444
|
}
|
|
445
|
+
;
|
|
443
446
|
return new FFIConverter();
|
|
444
447
|
})();
|
|
445
448
|
/**
|
|
@@ -495,6 +498,7 @@ const FfiConverterTypeDlcInputInfo = (() => {
|
|
|
495
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);
|
|
496
499
|
}
|
|
497
500
|
}
|
|
501
|
+
;
|
|
498
502
|
return new FFIConverter();
|
|
499
503
|
})();
|
|
500
504
|
/**
|
|
@@ -542,6 +546,7 @@ const FfiConverterTypeDlcTransactions = (() => {
|
|
|
542
546
|
return FfiConverterTypeTransaction.allocationSize(value.fund) + FfiConverterArrayTypeTransaction.allocationSize(value.cets) + FfiConverterTypeTransaction.allocationSize(value.refund) + FfiConverterArrayUInt8.allocationSize(value.fundingScriptPubkey);
|
|
543
547
|
}
|
|
544
548
|
}
|
|
549
|
+
;
|
|
545
550
|
return new FFIConverter();
|
|
546
551
|
})();
|
|
547
552
|
/**
|
|
@@ -585,6 +590,7 @@ const FfiConverterTypeOracleInfo = (() => {
|
|
|
585
590
|
return FfiConverterArrayUInt8.allocationSize(value.publicKey) + FfiConverterArrayArrayUInt8.allocationSize(value.nonces);
|
|
586
591
|
}
|
|
587
592
|
}
|
|
593
|
+
;
|
|
588
594
|
return new FFIConverter();
|
|
589
595
|
})();
|
|
590
596
|
/**
|
|
@@ -642,6 +648,7 @@ const FfiConverterTypePartyParams = (() => {
|
|
|
642
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);
|
|
643
649
|
}
|
|
644
650
|
}
|
|
651
|
+
;
|
|
645
652
|
return new FFIConverter();
|
|
646
653
|
})();
|
|
647
654
|
/**
|
|
@@ -685,6 +692,7 @@ const FfiConverterTypePayout = (() => {
|
|
|
685
692
|
return _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.offer) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.accept);
|
|
686
693
|
}
|
|
687
694
|
}
|
|
695
|
+
;
|
|
688
696
|
return new FFIConverter();
|
|
689
697
|
})();
|
|
690
698
|
/**
|
|
@@ -734,6 +742,7 @@ const FfiConverterTypeTransaction = (() => {
|
|
|
734
742
|
return _uniffiBindgenReactNative.FfiConverterInt32.allocationSize(value.version) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.lockTime) + FfiConverterArrayTypeTxInput.allocationSize(value.inputs) + FfiConverterArrayTypeTxOutput.allocationSize(value.outputs) + FfiConverterArrayUInt8.allocationSize(value.rawBytes);
|
|
735
743
|
}
|
|
736
744
|
}
|
|
745
|
+
;
|
|
737
746
|
return new FFIConverter();
|
|
738
747
|
})();
|
|
739
748
|
/**
|
|
@@ -783,6 +792,7 @@ const FfiConverterTypeTxInput = (() => {
|
|
|
783
792
|
return FfiConverterString.allocationSize(value.txid) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.vout) + FfiConverterArrayUInt8.allocationSize(value.scriptSig) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.sequence) + FfiConverterArrayArrayUInt8.allocationSize(value.witness);
|
|
784
793
|
}
|
|
785
794
|
}
|
|
795
|
+
;
|
|
786
796
|
return new FFIConverter();
|
|
787
797
|
})();
|
|
788
798
|
/**
|
|
@@ -832,6 +842,7 @@ const FfiConverterTypeTxInputInfo = (() => {
|
|
|
832
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);
|
|
833
843
|
}
|
|
834
844
|
}
|
|
845
|
+
;
|
|
835
846
|
return new FFIConverter();
|
|
836
847
|
})();
|
|
837
848
|
/**
|
|
@@ -875,6 +886,7 @@ const FfiConverterTypeTxOutput = (() => {
|
|
|
875
886
|
return _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.value) + FfiConverterArrayUInt8.allocationSize(value.scriptPubkey);
|
|
876
887
|
}
|
|
877
888
|
}
|
|
889
|
+
;
|
|
878
890
|
return new FFIConverter();
|
|
879
891
|
})();
|
|
880
892
|
const stringConverter = {
|
|
@@ -904,7 +916,7 @@ const DlcError = exports.DlcError = (() => {
|
|
|
904
916
|
* @private
|
|
905
917
|
* This field is private and should not be used.
|
|
906
918
|
*/
|
|
907
|
-
[_uniffiBindgenReactNative.uniffiTypeNameSymbol] =
|
|
919
|
+
[_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "DlcError";
|
|
908
920
|
/**
|
|
909
921
|
* @private
|
|
910
922
|
* This field is private and should not be used.
|
|
@@ -912,7 +924,7 @@ const DlcError = exports.DlcError = (() => {
|
|
|
912
924
|
[_uniffiBindgenReactNative.variantOrdinalSymbol] = 1;
|
|
913
925
|
tag = DlcError_Tags.InvalidSignature;
|
|
914
926
|
constructor(message) {
|
|
915
|
-
super(
|
|
927
|
+
super("DlcError", "InvalidSignature", message);
|
|
916
928
|
}
|
|
917
929
|
static instanceOf(e) {
|
|
918
930
|
return instanceOf(e) && e[_uniffiBindgenReactNative.variantOrdinalSymbol] === 1;
|
|
@@ -923,7 +935,7 @@ const DlcError = exports.DlcError = (() => {
|
|
|
923
935
|
* @private
|
|
924
936
|
* This field is private and should not be used.
|
|
925
937
|
*/
|
|
926
|
-
[_uniffiBindgenReactNative.uniffiTypeNameSymbol] =
|
|
938
|
+
[_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "DlcError";
|
|
927
939
|
/**
|
|
928
940
|
* @private
|
|
929
941
|
* This field is private and should not be used.
|
|
@@ -931,7 +943,7 @@ const DlcError = exports.DlcError = (() => {
|
|
|
931
943
|
[_uniffiBindgenReactNative.variantOrdinalSymbol] = 2;
|
|
932
944
|
tag = DlcError_Tags.InvalidPublicKey;
|
|
933
945
|
constructor(message) {
|
|
934
|
-
super(
|
|
946
|
+
super("DlcError", "InvalidPublicKey", message);
|
|
935
947
|
}
|
|
936
948
|
static instanceOf(e) {
|
|
937
949
|
return instanceOf(e) && e[_uniffiBindgenReactNative.variantOrdinalSymbol] === 2;
|
|
@@ -942,7 +954,7 @@ const DlcError = exports.DlcError = (() => {
|
|
|
942
954
|
* @private
|
|
943
955
|
* This field is private and should not be used.
|
|
944
956
|
*/
|
|
945
|
-
[_uniffiBindgenReactNative.uniffiTypeNameSymbol] =
|
|
957
|
+
[_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "DlcError";
|
|
946
958
|
/**
|
|
947
959
|
* @private
|
|
948
960
|
* This field is private and should not be used.
|
|
@@ -950,7 +962,7 @@ const DlcError = exports.DlcError = (() => {
|
|
|
950
962
|
[_uniffiBindgenReactNative.variantOrdinalSymbol] = 3;
|
|
951
963
|
tag = DlcError_Tags.InvalidTransaction;
|
|
952
964
|
constructor(message) {
|
|
953
|
-
super(
|
|
965
|
+
super("DlcError", "InvalidTransaction", message);
|
|
954
966
|
}
|
|
955
967
|
static instanceOf(e) {
|
|
956
968
|
return instanceOf(e) && e[_uniffiBindgenReactNative.variantOrdinalSymbol] === 3;
|
|
@@ -961,7 +973,7 @@ const DlcError = exports.DlcError = (() => {
|
|
|
961
973
|
* @private
|
|
962
974
|
* This field is private and should not be used.
|
|
963
975
|
*/
|
|
964
|
-
[_uniffiBindgenReactNative.uniffiTypeNameSymbol] =
|
|
976
|
+
[_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "DlcError";
|
|
965
977
|
/**
|
|
966
978
|
* @private
|
|
967
979
|
* This field is private and should not be used.
|
|
@@ -969,7 +981,7 @@ const DlcError = exports.DlcError = (() => {
|
|
|
969
981
|
[_uniffiBindgenReactNative.variantOrdinalSymbol] = 4;
|
|
970
982
|
tag = DlcError_Tags.InsufficientFunds;
|
|
971
983
|
constructor(message) {
|
|
972
|
-
super(
|
|
984
|
+
super("DlcError", "InsufficientFunds", message);
|
|
973
985
|
}
|
|
974
986
|
static instanceOf(e) {
|
|
975
987
|
return instanceOf(e) && e[_uniffiBindgenReactNative.variantOrdinalSymbol] === 4;
|
|
@@ -980,7 +992,7 @@ const DlcError = exports.DlcError = (() => {
|
|
|
980
992
|
* @private
|
|
981
993
|
* This field is private and should not be used.
|
|
982
994
|
*/
|
|
983
|
-
[_uniffiBindgenReactNative.uniffiTypeNameSymbol] =
|
|
995
|
+
[_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "DlcError";
|
|
984
996
|
/**
|
|
985
997
|
* @private
|
|
986
998
|
* This field is private and should not be used.
|
|
@@ -988,7 +1000,7 @@ const DlcError = exports.DlcError = (() => {
|
|
|
988
1000
|
[_uniffiBindgenReactNative.variantOrdinalSymbol] = 5;
|
|
989
1001
|
tag = DlcError_Tags.InvalidArgument;
|
|
990
1002
|
constructor(message) {
|
|
991
|
-
super(
|
|
1003
|
+
super("DlcError", "InvalidArgument", message);
|
|
992
1004
|
}
|
|
993
1005
|
static instanceOf(e) {
|
|
994
1006
|
return instanceOf(e) && e[_uniffiBindgenReactNative.variantOrdinalSymbol] === 5;
|
|
@@ -999,7 +1011,7 @@ const DlcError = exports.DlcError = (() => {
|
|
|
999
1011
|
* @private
|
|
1000
1012
|
* This field is private and should not be used.
|
|
1001
1013
|
*/
|
|
1002
|
-
[_uniffiBindgenReactNative.uniffiTypeNameSymbol] =
|
|
1014
|
+
[_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "DlcError";
|
|
1003
1015
|
/**
|
|
1004
1016
|
* @private
|
|
1005
1017
|
* This field is private and should not be used.
|
|
@@ -1007,7 +1019,7 @@ const DlcError = exports.DlcError = (() => {
|
|
|
1007
1019
|
[_uniffiBindgenReactNative.variantOrdinalSymbol] = 6;
|
|
1008
1020
|
tag = DlcError_Tags.SerializationError;
|
|
1009
1021
|
constructor(message) {
|
|
1010
|
-
super(
|
|
1022
|
+
super("DlcError", "SerializationError", message);
|
|
1011
1023
|
}
|
|
1012
1024
|
static instanceOf(e) {
|
|
1013
1025
|
return instanceOf(e) && e[_uniffiBindgenReactNative.variantOrdinalSymbol] === 6;
|
|
@@ -1018,7 +1030,7 @@ const DlcError = exports.DlcError = (() => {
|
|
|
1018
1030
|
* @private
|
|
1019
1031
|
* This field is private and should not be used.
|
|
1020
1032
|
*/
|
|
1021
|
-
[_uniffiBindgenReactNative.uniffiTypeNameSymbol] =
|
|
1033
|
+
[_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "DlcError";
|
|
1022
1034
|
/**
|
|
1023
1035
|
* @private
|
|
1024
1036
|
* This field is private and should not be used.
|
|
@@ -1026,7 +1038,7 @@ const DlcError = exports.DlcError = (() => {
|
|
|
1026
1038
|
[_uniffiBindgenReactNative.variantOrdinalSymbol] = 7;
|
|
1027
1039
|
tag = DlcError_Tags.Secp256k1Error;
|
|
1028
1040
|
constructor(message) {
|
|
1029
|
-
super(
|
|
1041
|
+
super("DlcError", "Secp256k1Error", message);
|
|
1030
1042
|
}
|
|
1031
1043
|
static instanceOf(e) {
|
|
1032
1044
|
return instanceOf(e) && e[_uniffiBindgenReactNative.variantOrdinalSymbol] === 7;
|
|
@@ -1037,7 +1049,7 @@ const DlcError = exports.DlcError = (() => {
|
|
|
1037
1049
|
* @private
|
|
1038
1050
|
* This field is private and should not be used.
|
|
1039
1051
|
*/
|
|
1040
|
-
[_uniffiBindgenReactNative.uniffiTypeNameSymbol] =
|
|
1052
|
+
[_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "DlcError";
|
|
1041
1053
|
/**
|
|
1042
1054
|
* @private
|
|
1043
1055
|
* This field is private and should not be used.
|
|
@@ -1045,7 +1057,7 @@ const DlcError = exports.DlcError = (() => {
|
|
|
1045
1057
|
[_uniffiBindgenReactNative.variantOrdinalSymbol] = 8;
|
|
1046
1058
|
tag = DlcError_Tags.MiniscriptError;
|
|
1047
1059
|
constructor(message) {
|
|
1048
|
-
super(
|
|
1060
|
+
super("DlcError", "MiniscriptError", message);
|
|
1049
1061
|
}
|
|
1050
1062
|
static instanceOf(e) {
|
|
1051
1063
|
return instanceOf(e) && e[_uniffiBindgenReactNative.variantOrdinalSymbol] === 8;
|
|
@@ -1056,7 +1068,7 @@ const DlcError = exports.DlcError = (() => {
|
|
|
1056
1068
|
* @private
|
|
1057
1069
|
* This field is private and should not be used.
|
|
1058
1070
|
*/
|
|
1059
|
-
[_uniffiBindgenReactNative.uniffiTypeNameSymbol] =
|
|
1071
|
+
[_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "DlcError";
|
|
1060
1072
|
/**
|
|
1061
1073
|
* @private
|
|
1062
1074
|
* This field is private and should not be used.
|
|
@@ -1064,7 +1076,7 @@ const DlcError = exports.DlcError = (() => {
|
|
|
1064
1076
|
[_uniffiBindgenReactNative.variantOrdinalSymbol] = 9;
|
|
1065
1077
|
tag = DlcError_Tags.InvalidNetwork;
|
|
1066
1078
|
constructor(message) {
|
|
1067
|
-
super(
|
|
1079
|
+
super("DlcError", "InvalidNetwork", message);
|
|
1068
1080
|
}
|
|
1069
1081
|
static instanceOf(e) {
|
|
1070
1082
|
return instanceOf(e) && e[_uniffiBindgenReactNative.variantOrdinalSymbol] === 9;
|
|
@@ -1075,7 +1087,7 @@ const DlcError = exports.DlcError = (() => {
|
|
|
1075
1087
|
* @private
|
|
1076
1088
|
* This field is private and should not be used.
|
|
1077
1089
|
*/
|
|
1078
|
-
[_uniffiBindgenReactNative.uniffiTypeNameSymbol] =
|
|
1090
|
+
[_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "DlcError";
|
|
1079
1091
|
/**
|
|
1080
1092
|
* @private
|
|
1081
1093
|
* This field is private and should not be used.
|
|
@@ -1083,7 +1095,7 @@ const DlcError = exports.DlcError = (() => {
|
|
|
1083
1095
|
[_uniffiBindgenReactNative.variantOrdinalSymbol] = 10;
|
|
1084
1096
|
tag = DlcError_Tags.KeyError;
|
|
1085
1097
|
constructor(message) {
|
|
1086
|
-
super(
|
|
1098
|
+
super("DlcError", "KeyError", message);
|
|
1087
1099
|
}
|
|
1088
1100
|
static instanceOf(e) {
|
|
1089
1101
|
return instanceOf(e) && e[_uniffiBindgenReactNative.variantOrdinalSymbol] === 10;
|
|
@@ -1092,7 +1104,7 @@ const DlcError = exports.DlcError = (() => {
|
|
|
1092
1104
|
|
|
1093
1105
|
// Utility function which does not rely on instanceof.
|
|
1094
1106
|
function instanceOf(e) {
|
|
1095
|
-
return e[_uniffiBindgenReactNative.uniffiTypeNameSymbol] ===
|
|
1107
|
+
return e[_uniffiBindgenReactNative.uniffiTypeNameSymbol] === "DlcError";
|
|
1096
1108
|
}
|
|
1097
1109
|
return {
|
|
1098
1110
|
InvalidSignature,
|
|
@@ -1166,7 +1178,7 @@ const ExtendedKey = exports.ExtendedKey = (() => {
|
|
|
1166
1178
|
* @private
|
|
1167
1179
|
* This field is private and should not be used.
|
|
1168
1180
|
*/
|
|
1169
|
-
[_uniffiBindgenReactNative.uniffiTypeNameSymbol] =
|
|
1181
|
+
[_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "ExtendedKey";
|
|
1170
1182
|
/**
|
|
1171
1183
|
* @private
|
|
1172
1184
|
* This field is private and should not be used.
|
|
@@ -1174,7 +1186,7 @@ const ExtendedKey = exports.ExtendedKey = (() => {
|
|
|
1174
1186
|
[_uniffiBindgenReactNative.variantOrdinalSymbol] = 1;
|
|
1175
1187
|
tag = ExtendedKey_Tags.InvalidMnemonic;
|
|
1176
1188
|
constructor(message) {
|
|
1177
|
-
super(
|
|
1189
|
+
super("ExtendedKey", "InvalidMnemonic", message);
|
|
1178
1190
|
}
|
|
1179
1191
|
static instanceOf(e) {
|
|
1180
1192
|
return instanceOf(e) && e[_uniffiBindgenReactNative.variantOrdinalSymbol] === 1;
|
|
@@ -1185,7 +1197,7 @@ const ExtendedKey = exports.ExtendedKey = (() => {
|
|
|
1185
1197
|
* @private
|
|
1186
1198
|
* This field is private and should not be used.
|
|
1187
1199
|
*/
|
|
1188
|
-
[_uniffiBindgenReactNative.uniffiTypeNameSymbol] =
|
|
1200
|
+
[_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "ExtendedKey";
|
|
1189
1201
|
/**
|
|
1190
1202
|
* @private
|
|
1191
1203
|
* This field is private and should not be used.
|
|
@@ -1193,7 +1205,7 @@ const ExtendedKey = exports.ExtendedKey = (() => {
|
|
|
1193
1205
|
[_uniffiBindgenReactNative.variantOrdinalSymbol] = 2;
|
|
1194
1206
|
tag = ExtendedKey_Tags.InvalidXpriv;
|
|
1195
1207
|
constructor(message) {
|
|
1196
|
-
super(
|
|
1208
|
+
super("ExtendedKey", "InvalidXpriv", message);
|
|
1197
1209
|
}
|
|
1198
1210
|
static instanceOf(e) {
|
|
1199
1211
|
return instanceOf(e) && e[_uniffiBindgenReactNative.variantOrdinalSymbol] === 2;
|
|
@@ -1204,7 +1216,7 @@ const ExtendedKey = exports.ExtendedKey = (() => {
|
|
|
1204
1216
|
* @private
|
|
1205
1217
|
* This field is private and should not be used.
|
|
1206
1218
|
*/
|
|
1207
|
-
[_uniffiBindgenReactNative.uniffiTypeNameSymbol] =
|
|
1219
|
+
[_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "ExtendedKey";
|
|
1208
1220
|
/**
|
|
1209
1221
|
* @private
|
|
1210
1222
|
* This field is private and should not be used.
|
|
@@ -1212,7 +1224,7 @@ const ExtendedKey = exports.ExtendedKey = (() => {
|
|
|
1212
1224
|
[_uniffiBindgenReactNative.variantOrdinalSymbol] = 3;
|
|
1213
1225
|
tag = ExtendedKey_Tags.InvalidXpub;
|
|
1214
1226
|
constructor(message) {
|
|
1215
|
-
super(
|
|
1227
|
+
super("ExtendedKey", "InvalidXpub", message);
|
|
1216
1228
|
}
|
|
1217
1229
|
static instanceOf(e) {
|
|
1218
1230
|
return instanceOf(e) && e[_uniffiBindgenReactNative.variantOrdinalSymbol] === 3;
|
|
@@ -1223,7 +1235,7 @@ const ExtendedKey = exports.ExtendedKey = (() => {
|
|
|
1223
1235
|
* @private
|
|
1224
1236
|
* This field is private and should not be used.
|
|
1225
1237
|
*/
|
|
1226
|
-
[_uniffiBindgenReactNative.uniffiTypeNameSymbol] =
|
|
1238
|
+
[_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "ExtendedKey";
|
|
1227
1239
|
/**
|
|
1228
1240
|
* @private
|
|
1229
1241
|
* This field is private and should not be used.
|
|
@@ -1231,7 +1243,7 @@ const ExtendedKey = exports.ExtendedKey = (() => {
|
|
|
1231
1243
|
[_uniffiBindgenReactNative.variantOrdinalSymbol] = 4;
|
|
1232
1244
|
tag = ExtendedKey_Tags.InvalidDerivationPath;
|
|
1233
1245
|
constructor(message) {
|
|
1234
|
-
super(
|
|
1246
|
+
super("ExtendedKey", "InvalidDerivationPath", message);
|
|
1235
1247
|
}
|
|
1236
1248
|
static instanceOf(e) {
|
|
1237
1249
|
return instanceOf(e) && e[_uniffiBindgenReactNative.variantOrdinalSymbol] === 4;
|
|
@@ -1240,7 +1252,7 @@ const ExtendedKey = exports.ExtendedKey = (() => {
|
|
|
1240
1252
|
|
|
1241
1253
|
// Utility function which does not rely on instanceof.
|
|
1242
1254
|
function instanceOf(e) {
|
|
1243
|
-
return e[_uniffiBindgenReactNative.uniffiTypeNameSymbol] ===
|
|
1255
|
+
return e[_uniffiBindgenReactNative.uniffiTypeNameSymbol] === "ExtendedKey";
|
|
1244
1256
|
}
|
|
1245
1257
|
return {
|
|
1246
1258
|
InvalidMnemonic,
|
|
@@ -1340,97 +1352,97 @@ function uniffiEnsureInitialized() {
|
|
|
1340
1352
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ContractVersionMismatch(scaffoldingContractVersion, bindingsContractVersion);
|
|
1341
1353
|
}
|
|
1342
1354
|
if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_add_signature_to_transaction() !== 1337) {
|
|
1343
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch(
|
|
1355
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_add_signature_to_transaction");
|
|
1344
1356
|
}
|
|
1345
1357
|
if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_convert_mnemonic_to_seed() !== 65049) {
|
|
1346
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch(
|
|
1358
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_convert_mnemonic_to_seed");
|
|
1347
1359
|
}
|
|
1348
1360
|
if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_create_cet() !== 23081) {
|
|
1349
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch(
|
|
1361
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_create_cet");
|
|
1350
1362
|
}
|
|
1351
1363
|
if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_create_cet_adaptor_points_from_oracle_info() !== 6552) {
|
|
1352
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch(
|
|
1364
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_create_cet_adaptor_points_from_oracle_info");
|
|
1353
1365
|
}
|
|
1354
1366
|
if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_create_cet_adaptor_signature_from_oracle_info() !== 65174) {
|
|
1355
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch(
|
|
1367
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_create_cet_adaptor_signature_from_oracle_info");
|
|
1356
1368
|
}
|
|
1357
1369
|
if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_create_cet_adaptor_sigs_from_oracle_info() !== 15699) {
|
|
1358
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch(
|
|
1370
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_create_cet_adaptor_sigs_from_oracle_info");
|
|
1359
1371
|
}
|
|
1360
1372
|
if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_create_cet_adaptor_sigs_from_points() !== 33705) {
|
|
1361
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch(
|
|
1373
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_create_cet_adaptor_sigs_from_points");
|
|
1362
1374
|
}
|
|
1363
1375
|
if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_create_cets() !== 50529) {
|
|
1364
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch(
|
|
1376
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_create_cets");
|
|
1365
1377
|
}
|
|
1366
1378
|
if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_create_dlc_transactions() !== 51134) {
|
|
1367
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch(
|
|
1379
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_create_dlc_transactions");
|
|
1368
1380
|
}
|
|
1369
1381
|
if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_create_extkey_from_parent_path() !== 26671) {
|
|
1370
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch(
|
|
1382
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_create_extkey_from_parent_path");
|
|
1371
1383
|
}
|
|
1372
1384
|
if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_create_extkey_from_seed() !== 12526) {
|
|
1373
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch(
|
|
1385
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_create_extkey_from_seed");
|
|
1374
1386
|
}
|
|
1375
1387
|
if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_create_fund_tx_locking_script() !== 2761) {
|
|
1376
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch(
|
|
1388
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_create_fund_tx_locking_script");
|
|
1377
1389
|
}
|
|
1378
1390
|
if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_create_refund_transaction() !== 57261) {
|
|
1379
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch(
|
|
1391
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_create_refund_transaction");
|
|
1380
1392
|
}
|
|
1381
1393
|
if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_create_spliced_dlc_transactions() !== 31130) {
|
|
1382
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch(
|
|
1394
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_create_spliced_dlc_transactions");
|
|
1383
1395
|
}
|
|
1384
1396
|
if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_create_xpriv_from_parent_path() !== 34808) {
|
|
1385
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch(
|
|
1397
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_create_xpriv_from_parent_path");
|
|
1386
1398
|
}
|
|
1387
1399
|
if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_extract_ecdsa_signature_from_oracle_signatures() !== 8006) {
|
|
1388
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch(
|
|
1400
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_extract_ecdsa_signature_from_oracle_signatures");
|
|
1389
1401
|
}
|
|
1390
1402
|
if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_get_cet_adaptor_signature_inputs() !== 14595) {
|
|
1391
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch(
|
|
1403
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_get_cet_adaptor_signature_inputs");
|
|
1392
1404
|
}
|
|
1393
1405
|
if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_get_cet_sighash() !== 10643) {
|
|
1394
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch(
|
|
1406
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_get_cet_sighash");
|
|
1395
1407
|
}
|
|
1396
1408
|
if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_get_change_output_and_fees() !== 44150) {
|
|
1397
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch(
|
|
1409
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_get_change_output_and_fees");
|
|
1398
1410
|
}
|
|
1399
1411
|
if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_get_pubkey_from_extkey() !== 64637) {
|
|
1400
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch(
|
|
1412
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_get_pubkey_from_extkey");
|
|
1401
1413
|
}
|
|
1402
1414
|
if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_get_raw_funding_transaction_input_signature() !== 35708) {
|
|
1403
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch(
|
|
1415
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_get_raw_funding_transaction_input_signature");
|
|
1404
1416
|
}
|
|
1405
1417
|
if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_get_total_input_vsize() !== 38213) {
|
|
1406
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch(
|
|
1418
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_get_total_input_vsize");
|
|
1407
1419
|
}
|
|
1408
1420
|
if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_get_xpub_from_xpriv() !== 44344) {
|
|
1409
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch(
|
|
1421
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_get_xpub_from_xpriv");
|
|
1410
1422
|
}
|
|
1411
1423
|
if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_is_dust_output() !== 64174) {
|
|
1412
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch(
|
|
1424
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_is_dust_output");
|
|
1413
1425
|
}
|
|
1414
1426
|
if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_sign_cet() !== 43957) {
|
|
1415
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch(
|
|
1427
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_sign_cet");
|
|
1416
1428
|
}
|
|
1417
1429
|
if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_sign_fund_transaction_input() !== 50531) {
|
|
1418
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch(
|
|
1430
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_sign_fund_transaction_input");
|
|
1419
1431
|
}
|
|
1420
1432
|
if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_sign_multi_sig_input() !== 14569) {
|
|
1421
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch(
|
|
1433
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_sign_multi_sig_input");
|
|
1422
1434
|
}
|
|
1423
1435
|
if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_verify_cet_adaptor_sig_from_oracle_info() !== 52232) {
|
|
1424
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch(
|
|
1436
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_verify_cet_adaptor_sig_from_oracle_info");
|
|
1425
1437
|
}
|
|
1426
1438
|
if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_verify_cet_adaptor_sigs_from_oracle_info() !== 14181) {
|
|
1427
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch(
|
|
1439
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_verify_cet_adaptor_sigs_from_oracle_info");
|
|
1428
1440
|
}
|
|
1429
1441
|
if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_verify_fund_tx_signature() !== 27316) {
|
|
1430
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch(
|
|
1442
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_verify_fund_tx_signature");
|
|
1431
1443
|
}
|
|
1432
1444
|
if ((0, _ddk_ffiFfi.default)().ubrn_uniffi_ddk_ffi_checksum_func_version() !== 22317) {
|
|
1433
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch(
|
|
1445
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_version");
|
|
1434
1446
|
}
|
|
1435
1447
|
}
|
|
1436
1448
|
var _default = exports.default = Object.freeze({
|