@secondts/bark-react-native 0.3.3 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BarkReactNative.podspec +1 -1
- package/README.md +1 -1
- package/cpp/generated/bark.cpp +36 -0
- package/cpp/generated/bark.hpp +2 -0
- package/lib/commonjs/generated/bark-ffi.js.map +1 -1
- package/lib/commonjs/generated/bark.js +143 -355
- package/lib/commonjs/generated/bark.js.map +1 -1
- package/lib/module/generated/bark-ffi.js.map +1 -1
- package/lib/module/generated/bark.js +143 -355
- package/lib/module/generated/bark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts +2 -0
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark.d.ts +105 -316
- package/lib/typescript/commonjs/src/generated/bark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark-ffi.d.ts +2 -0
- package/lib/typescript/module/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark.d.ts +105 -316
- package/lib/typescript/module/src/generated/bark.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/generated/bark-ffi.ts +5 -0
- package/src/generated/bark.ts +596 -722
package/src/generated/bark.ts
CHANGED
|
@@ -546,21 +546,8 @@ export const AddressWithIndex = (() => {
|
|
|
546
546
|
);
|
|
547
547
|
})();
|
|
548
548
|
return Object.freeze({
|
|
549
|
-
/**
|
|
550
|
-
* Create a frozen instance of {@link AddressWithIndex}, with defaults specified
|
|
551
|
-
* in Rust, in the {@link bark} crate.
|
|
552
|
-
*/
|
|
553
549
|
create,
|
|
554
|
-
|
|
555
|
-
/**
|
|
556
|
-
* Create a frozen instance of {@link AddressWithIndex}, with defaults specified
|
|
557
|
-
* in Rust, in the {@link bark} crate.
|
|
558
|
-
*/
|
|
559
550
|
new: create,
|
|
560
|
-
|
|
561
|
-
/**
|
|
562
|
-
* Defaults specified in the {@link bark} crate.
|
|
563
|
-
*/
|
|
564
551
|
defaults: () => Object.freeze(defaults()) as Partial<AddressWithIndex>,
|
|
565
552
|
});
|
|
566
553
|
})();
|
|
@@ -627,7 +614,7 @@ export type ArkInfo = {
|
|
|
627
614
|
/**
|
|
628
615
|
* Maximum amount of a VTXO in sats (null if no limit)
|
|
629
616
|
*/
|
|
630
|
-
maxVtxoAmountSats
|
|
617
|
+
maxVtxoAmountSats?: /*u64*/ bigint;
|
|
631
618
|
/**
|
|
632
619
|
* The number of confirmations required to register a board vtxo
|
|
633
620
|
*/
|
|
@@ -665,21 +652,8 @@ export const ArkInfo = (() => {
|
|
|
665
652
|
return uniffiCreateRecord<ArkInfo, ReturnType<typeof defaults>>(defaults);
|
|
666
653
|
})();
|
|
667
654
|
return Object.freeze({
|
|
668
|
-
/**
|
|
669
|
-
* Create a frozen instance of {@link ArkInfo}, with defaults specified
|
|
670
|
-
* in Rust, in the {@link bark} crate.
|
|
671
|
-
*/
|
|
672
655
|
create,
|
|
673
|
-
|
|
674
|
-
/**
|
|
675
|
-
* Create a frozen instance of {@link ArkInfo}, with defaults specified
|
|
676
|
-
* in Rust, in the {@link bark} crate.
|
|
677
|
-
*/
|
|
678
656
|
new: create,
|
|
679
|
-
|
|
680
|
-
/**
|
|
681
|
-
* Defaults specified in the {@link bark} crate.
|
|
682
|
-
*/
|
|
683
657
|
defaults: () => Object.freeze(defaults()) as Partial<ArkInfo>,
|
|
684
658
|
});
|
|
685
659
|
})();
|
|
@@ -787,21 +761,8 @@ export const Balance = (() => {
|
|
|
787
761
|
return uniffiCreateRecord<Balance, ReturnType<typeof defaults>>(defaults);
|
|
788
762
|
})();
|
|
789
763
|
return Object.freeze({
|
|
790
|
-
/**
|
|
791
|
-
* Create a frozen instance of {@link Balance}, with defaults specified
|
|
792
|
-
* in Rust, in the {@link bark} crate.
|
|
793
|
-
*/
|
|
794
764
|
create,
|
|
795
|
-
|
|
796
|
-
/**
|
|
797
|
-
* Create a frozen instance of {@link Balance}, with defaults specified
|
|
798
|
-
* in Rust, in the {@link bark} crate.
|
|
799
|
-
*/
|
|
800
765
|
new: create,
|
|
801
|
-
|
|
802
|
-
/**
|
|
803
|
-
* Defaults specified in the {@link bark} crate.
|
|
804
|
-
*/
|
|
805
766
|
defaults: () => Object.freeze(defaults()) as Partial<Balance>,
|
|
806
767
|
});
|
|
807
768
|
})();
|
|
@@ -858,21 +819,8 @@ export const BlockRef = (() => {
|
|
|
858
819
|
return uniffiCreateRecord<BlockRef, ReturnType<typeof defaults>>(defaults);
|
|
859
820
|
})();
|
|
860
821
|
return Object.freeze({
|
|
861
|
-
/**
|
|
862
|
-
* Create a frozen instance of {@link BlockRef}, with defaults specified
|
|
863
|
-
* in Rust, in the {@link bark} crate.
|
|
864
|
-
*/
|
|
865
822
|
create,
|
|
866
|
-
|
|
867
|
-
/**
|
|
868
|
-
* Create a frozen instance of {@link BlockRef}, with defaults specified
|
|
869
|
-
* in Rust, in the {@link bark} crate.
|
|
870
|
-
*/
|
|
871
823
|
new: create,
|
|
872
|
-
|
|
873
|
-
/**
|
|
874
|
-
* Defaults specified in the {@link bark} crate.
|
|
875
|
-
*/
|
|
876
824
|
defaults: () => Object.freeze(defaults()) as Partial<BlockRef>,
|
|
877
825
|
});
|
|
878
826
|
})();
|
|
@@ -908,26 +856,30 @@ export type Config = {
|
|
|
908
856
|
* Ark server address
|
|
909
857
|
*/
|
|
910
858
|
serverAddress: string;
|
|
859
|
+
/**
|
|
860
|
+
* Access token for private Ark servers (sent as `ark-access-token` HTTP header)
|
|
861
|
+
*/
|
|
862
|
+
serverAccessToken?: string;
|
|
911
863
|
/**
|
|
912
864
|
* Esplora HTTP REST server address
|
|
913
865
|
*/
|
|
914
|
-
esploraAddress
|
|
866
|
+
esploraAddress?: string;
|
|
915
867
|
/**
|
|
916
868
|
* Bitcoind RPC server address
|
|
917
869
|
*/
|
|
918
|
-
bitcoindAddress
|
|
870
|
+
bitcoindAddress?: string;
|
|
919
871
|
/**
|
|
920
872
|
* Bitcoind RPC cookie file path
|
|
921
873
|
*/
|
|
922
|
-
bitcoindCookiefile
|
|
874
|
+
bitcoindCookiefile?: string;
|
|
923
875
|
/**
|
|
924
876
|
* Bitcoind RPC username
|
|
925
877
|
*/
|
|
926
|
-
bitcoindUser
|
|
878
|
+
bitcoindUser?: string;
|
|
927
879
|
/**
|
|
928
880
|
* Bitcoind RPC password
|
|
929
881
|
*/
|
|
930
|
-
bitcoindPass
|
|
882
|
+
bitcoindPass?: string;
|
|
931
883
|
/**
|
|
932
884
|
* Bitcoin network
|
|
933
885
|
*/
|
|
@@ -935,31 +887,31 @@ export type Config = {
|
|
|
935
887
|
/**
|
|
936
888
|
* Number of blocks before expiration to refresh VTXOs
|
|
937
889
|
*/
|
|
938
|
-
vtxoRefreshExpiryThreshold
|
|
890
|
+
vtxoRefreshExpiryThreshold?: /*u32*/ number;
|
|
939
891
|
/**
|
|
940
892
|
* Upper limit of blocks needed to safely exit VTXOs
|
|
941
893
|
*/
|
|
942
|
-
vtxoExitMargin
|
|
894
|
+
vtxoExitMargin?: /*u16*/ number;
|
|
943
895
|
/**
|
|
944
896
|
* Number of blocks to claim a HTLC-recv VTXO
|
|
945
897
|
*/
|
|
946
|
-
htlcRecvClaimDelta
|
|
898
|
+
htlcRecvClaimDelta?: /*u16*/ number;
|
|
947
899
|
/**
|
|
948
900
|
* Fallback fee rate in sat/kWu
|
|
949
901
|
*/
|
|
950
|
-
fallbackFeeRate
|
|
902
|
+
fallbackFeeRate?: /*u64*/ bigint;
|
|
951
903
|
/**
|
|
952
904
|
* Confirmations required before considering a round tx fully confirmed
|
|
953
905
|
*/
|
|
954
|
-
roundTxRequiredConfirmations
|
|
906
|
+
roundTxRequiredConfirmations?: /*u32*/ number;
|
|
955
907
|
/**
|
|
956
908
|
* Fast sync interval for daemon tasks (lightning sync) in seconds
|
|
957
909
|
*/
|
|
958
|
-
daemonFastSyncIntervalSecs
|
|
910
|
+
daemonFastSyncIntervalSecs?: /*u64*/ bigint;
|
|
959
911
|
/**
|
|
960
912
|
* Slow sync interval for daemon tasks (onchain, exits, boards, etc.) in seconds
|
|
961
913
|
*/
|
|
962
|
-
daemonSlowSyncIntervalSecs
|
|
914
|
+
daemonSlowSyncIntervalSecs?: /*u64*/ bigint;
|
|
963
915
|
};
|
|
964
916
|
|
|
965
917
|
/**
|
|
@@ -971,21 +923,8 @@ export const Config = (() => {
|
|
|
971
923
|
return uniffiCreateRecord<Config, ReturnType<typeof defaults>>(defaults);
|
|
972
924
|
})();
|
|
973
925
|
return Object.freeze({
|
|
974
|
-
/**
|
|
975
|
-
* Create a frozen instance of {@link Config}, with defaults specified
|
|
976
|
-
* in Rust, in the {@link bark} crate.
|
|
977
|
-
*/
|
|
978
926
|
create,
|
|
979
|
-
|
|
980
|
-
/**
|
|
981
|
-
* Create a frozen instance of {@link Config}, with defaults specified
|
|
982
|
-
* in Rust, in the {@link bark} crate.
|
|
983
|
-
*/
|
|
984
927
|
new: create,
|
|
985
|
-
|
|
986
|
-
/**
|
|
987
|
-
* Defaults specified in the {@link bark} crate.
|
|
988
|
-
*/
|
|
989
928
|
defaults: () => Object.freeze(defaults()) as Partial<Config>,
|
|
990
929
|
});
|
|
991
930
|
})();
|
|
@@ -996,6 +935,7 @@ const FfiConverterTypeConfig = (() => {
|
|
|
996
935
|
read(from: RustBuffer): TypeName {
|
|
997
936
|
return {
|
|
998
937
|
serverAddress: FfiConverterString.read(from),
|
|
938
|
+
serverAccessToken: FfiConverterOptionalString.read(from),
|
|
999
939
|
esploraAddress: FfiConverterOptionalString.read(from),
|
|
1000
940
|
bitcoindAddress: FfiConverterOptionalString.read(from),
|
|
1001
941
|
bitcoindCookiefile: FfiConverterOptionalString.read(from),
|
|
@@ -1013,6 +953,7 @@ const FfiConverterTypeConfig = (() => {
|
|
|
1013
953
|
}
|
|
1014
954
|
write(value: TypeName, into: RustBuffer): void {
|
|
1015
955
|
FfiConverterString.write(value.serverAddress, into);
|
|
956
|
+
FfiConverterOptionalString.write(value.serverAccessToken, into);
|
|
1016
957
|
FfiConverterOptionalString.write(value.esploraAddress, into);
|
|
1017
958
|
FfiConverterOptionalString.write(value.bitcoindAddress, into);
|
|
1018
959
|
FfiConverterOptionalString.write(value.bitcoindCookiefile, into);
|
|
@@ -1033,6 +974,7 @@ const FfiConverterTypeConfig = (() => {
|
|
|
1033
974
|
allocationSize(value: TypeName): number {
|
|
1034
975
|
return (
|
|
1035
976
|
FfiConverterString.allocationSize(value.serverAddress) +
|
|
977
|
+
FfiConverterOptionalString.allocationSize(value.serverAccessToken) +
|
|
1036
978
|
FfiConverterOptionalString.allocationSize(value.esploraAddress) +
|
|
1037
979
|
FfiConverterOptionalString.allocationSize(value.bitcoindAddress) +
|
|
1038
980
|
FfiConverterOptionalString.allocationSize(value.bitcoindCookiefile) +
|
|
@@ -1079,7 +1021,7 @@ export type CpfpParams = {
|
|
|
1079
1021
|
/**
|
|
1080
1022
|
* Current package fee in sats (only required for RBF)
|
|
1081
1023
|
*/
|
|
1082
|
-
currentPackageFeeSats
|
|
1024
|
+
currentPackageFeeSats?: /*u64*/ bigint;
|
|
1083
1025
|
};
|
|
1084
1026
|
|
|
1085
1027
|
/**
|
|
@@ -1093,21 +1035,8 @@ export const CpfpParams = (() => {
|
|
|
1093
1035
|
);
|
|
1094
1036
|
})();
|
|
1095
1037
|
return Object.freeze({
|
|
1096
|
-
/**
|
|
1097
|
-
* Create a frozen instance of {@link CpfpParams}, with defaults specified
|
|
1098
|
-
* in Rust, in the {@link bark} crate.
|
|
1099
|
-
*/
|
|
1100
1038
|
create,
|
|
1101
|
-
|
|
1102
|
-
/**
|
|
1103
|
-
* Create a frozen instance of {@link CpfpParams}, with defaults specified
|
|
1104
|
-
* in Rust, in the {@link bark} crate.
|
|
1105
|
-
*/
|
|
1106
1039
|
new: create,
|
|
1107
|
-
|
|
1108
|
-
/**
|
|
1109
|
-
* Defaults specified in the {@link bark} crate.
|
|
1110
|
-
*/
|
|
1111
1040
|
defaults: () => Object.freeze(defaults()) as Partial<CpfpParams>,
|
|
1112
1041
|
});
|
|
1113
1042
|
})();
|
|
@@ -1160,21 +1089,8 @@ export const Destination = (() => {
|
|
|
1160
1089
|
);
|
|
1161
1090
|
})();
|
|
1162
1091
|
return Object.freeze({
|
|
1163
|
-
/**
|
|
1164
|
-
* Create a frozen instance of {@link Destination}, with defaults specified
|
|
1165
|
-
* in Rust, in the {@link bark} crate.
|
|
1166
|
-
*/
|
|
1167
1092
|
create,
|
|
1168
|
-
|
|
1169
|
-
/**
|
|
1170
|
-
* Create a frozen instance of {@link Destination}, with defaults specified
|
|
1171
|
-
* in Rust, in the {@link bark} crate.
|
|
1172
|
-
*/
|
|
1173
1093
|
new: create,
|
|
1174
|
-
|
|
1175
|
-
/**
|
|
1176
|
-
* Defaults specified in the {@link bark} crate.
|
|
1177
|
-
*/
|
|
1178
1094
|
defaults: () => Object.freeze(defaults()) as Partial<Destination>,
|
|
1179
1095
|
});
|
|
1180
1096
|
})();
|
|
@@ -1228,21 +1144,8 @@ export const ExitClaimTransaction = (() => {
|
|
|
1228
1144
|
>(defaults);
|
|
1229
1145
|
})();
|
|
1230
1146
|
return Object.freeze({
|
|
1231
|
-
/**
|
|
1232
|
-
* Create a frozen instance of {@link ExitClaimTransaction}, with defaults specified
|
|
1233
|
-
* in Rust, in the {@link bark} crate.
|
|
1234
|
-
*/
|
|
1235
1147
|
create,
|
|
1236
|
-
|
|
1237
|
-
/**
|
|
1238
|
-
* Create a frozen instance of {@link ExitClaimTransaction}, with defaults specified
|
|
1239
|
-
* in Rust, in the {@link bark} crate.
|
|
1240
|
-
*/
|
|
1241
1148
|
new: create,
|
|
1242
|
-
|
|
1243
|
-
/**
|
|
1244
|
-
* Defaults specified in the {@link bark} crate.
|
|
1245
|
-
*/
|
|
1246
1149
|
defaults: () => Object.freeze(defaults()) as Partial<ExitClaimTransaction>,
|
|
1247
1150
|
});
|
|
1248
1151
|
})();
|
|
@@ -1285,7 +1188,7 @@ export type ExitProgressStatus = {
|
|
|
1285
1188
|
/**
|
|
1286
1189
|
* Error if any occurred
|
|
1287
1190
|
*/
|
|
1288
|
-
error
|
|
1191
|
+
error?: string;
|
|
1289
1192
|
};
|
|
1290
1193
|
|
|
1291
1194
|
/**
|
|
@@ -1299,21 +1202,8 @@ export const ExitProgressStatus = (() => {
|
|
|
1299
1202
|
);
|
|
1300
1203
|
})();
|
|
1301
1204
|
return Object.freeze({
|
|
1302
|
-
/**
|
|
1303
|
-
* Create a frozen instance of {@link ExitProgressStatus}, with defaults specified
|
|
1304
|
-
* in Rust, in the {@link bark} crate.
|
|
1305
|
-
*/
|
|
1306
1205
|
create,
|
|
1307
|
-
|
|
1308
|
-
/**
|
|
1309
|
-
* Create a frozen instance of {@link ExitProgressStatus}, with defaults specified
|
|
1310
|
-
* in Rust, in the {@link bark} crate.
|
|
1311
|
-
*/
|
|
1312
1206
|
new: create,
|
|
1313
|
-
|
|
1314
|
-
/**
|
|
1315
|
-
* Defaults specified in the {@link bark} crate.
|
|
1316
|
-
*/
|
|
1317
1207
|
defaults: () => Object.freeze(defaults()) as Partial<ExitProgressStatus>,
|
|
1318
1208
|
});
|
|
1319
1209
|
})();
|
|
@@ -1359,7 +1249,7 @@ export type ExitTransactionStatus = {
|
|
|
1359
1249
|
/**
|
|
1360
1250
|
* State history (if requested)
|
|
1361
1251
|
*/
|
|
1362
|
-
history
|
|
1252
|
+
history?: Array<string>;
|
|
1363
1253
|
/**
|
|
1364
1254
|
* Number of transactions
|
|
1365
1255
|
*/
|
|
@@ -1378,21 +1268,8 @@ export const ExitTransactionStatus = (() => {
|
|
|
1378
1268
|
>(defaults);
|
|
1379
1269
|
})();
|
|
1380
1270
|
return Object.freeze({
|
|
1381
|
-
/**
|
|
1382
|
-
* Create a frozen instance of {@link ExitTransactionStatus}, with defaults specified
|
|
1383
|
-
* in Rust, in the {@link bark} crate.
|
|
1384
|
-
*/
|
|
1385
1271
|
create,
|
|
1386
|
-
|
|
1387
|
-
/**
|
|
1388
|
-
* Create a frozen instance of {@link ExitTransactionStatus}, with defaults specified
|
|
1389
|
-
* in Rust, in the {@link bark} crate.
|
|
1390
|
-
*/
|
|
1391
1272
|
new: create,
|
|
1392
|
-
|
|
1393
|
-
/**
|
|
1394
|
-
* Defaults specified in the {@link bark} crate.
|
|
1395
|
-
*/
|
|
1396
1273
|
defaults: () => Object.freeze(defaults()) as Partial<ExitTransactionStatus>,
|
|
1397
1274
|
});
|
|
1398
1275
|
})();
|
|
@@ -1457,21 +1334,8 @@ export const ExitVtxo = (() => {
|
|
|
1457
1334
|
return uniffiCreateRecord<ExitVtxo, ReturnType<typeof defaults>>(defaults);
|
|
1458
1335
|
})();
|
|
1459
1336
|
return Object.freeze({
|
|
1460
|
-
/**
|
|
1461
|
-
* Create a frozen instance of {@link ExitVtxo}, with defaults specified
|
|
1462
|
-
* in Rust, in the {@link bark} crate.
|
|
1463
|
-
*/
|
|
1464
1337
|
create,
|
|
1465
|
-
|
|
1466
|
-
/**
|
|
1467
|
-
* Create a frozen instance of {@link ExitVtxo}, with defaults specified
|
|
1468
|
-
* in Rust, in the {@link bark} crate.
|
|
1469
|
-
*/
|
|
1470
1338
|
new: create,
|
|
1471
|
-
|
|
1472
|
-
/**
|
|
1473
|
-
* Defaults specified in the {@link bark} crate.
|
|
1474
|
-
*/
|
|
1475
1339
|
defaults: () => Object.freeze(defaults()) as Partial<ExitVtxo>,
|
|
1476
1340
|
});
|
|
1477
1341
|
})();
|
|
@@ -1540,21 +1404,8 @@ export const FeeEstimate = (() => {
|
|
|
1540
1404
|
);
|
|
1541
1405
|
})();
|
|
1542
1406
|
return Object.freeze({
|
|
1543
|
-
/**
|
|
1544
|
-
* Create a frozen instance of {@link FeeEstimate}, with defaults specified
|
|
1545
|
-
* in Rust, in the {@link bark} crate.
|
|
1546
|
-
*/
|
|
1547
1407
|
create,
|
|
1548
|
-
|
|
1549
|
-
/**
|
|
1550
|
-
* Create a frozen instance of {@link FeeEstimate}, with defaults specified
|
|
1551
|
-
* in Rust, in the {@link bark} crate.
|
|
1552
|
-
*/
|
|
1553
1408
|
new: create,
|
|
1554
|
-
|
|
1555
|
-
/**
|
|
1556
|
-
* Defaults specified in the {@link bark} crate.
|
|
1557
|
-
*/
|
|
1558
1409
|
defaults: () => Object.freeze(defaults()) as Partial<FeeEstimate>,
|
|
1559
1410
|
});
|
|
1560
1411
|
})();
|
|
@@ -1613,21 +1464,8 @@ export const LightningInvoice = (() => {
|
|
|
1613
1464
|
);
|
|
1614
1465
|
})();
|
|
1615
1466
|
return Object.freeze({
|
|
1616
|
-
/**
|
|
1617
|
-
* Create a frozen instance of {@link LightningInvoice}, with defaults specified
|
|
1618
|
-
* in Rust, in the {@link bark} crate.
|
|
1619
|
-
*/
|
|
1620
1467
|
create,
|
|
1621
|
-
|
|
1622
|
-
/**
|
|
1623
|
-
* Create a frozen instance of {@link LightningInvoice}, with defaults specified
|
|
1624
|
-
* in Rust, in the {@link bark} crate.
|
|
1625
|
-
*/
|
|
1626
1468
|
new: create,
|
|
1627
|
-
|
|
1628
|
-
/**
|
|
1629
|
-
* Defaults specified in the {@link bark} crate.
|
|
1630
|
-
*/
|
|
1631
1469
|
defaults: () => Object.freeze(defaults()) as Partial<LightningInvoice>,
|
|
1632
1470
|
});
|
|
1633
1471
|
})();
|
|
@@ -1692,21 +1530,8 @@ export const LightningReceive = (() => {
|
|
|
1692
1530
|
);
|
|
1693
1531
|
})();
|
|
1694
1532
|
return Object.freeze({
|
|
1695
|
-
/**
|
|
1696
|
-
* Create a frozen instance of {@link LightningReceive}, with defaults specified
|
|
1697
|
-
* in Rust, in the {@link bark} crate.
|
|
1698
|
-
*/
|
|
1699
1533
|
create,
|
|
1700
|
-
|
|
1701
|
-
/**
|
|
1702
|
-
* Create a frozen instance of {@link LightningReceive}, with defaults specified
|
|
1703
|
-
* in Rust, in the {@link bark} crate.
|
|
1704
|
-
*/
|
|
1705
1534
|
new: create,
|
|
1706
|
-
|
|
1707
|
-
/**
|
|
1708
|
-
* Defaults specified in the {@link bark} crate.
|
|
1709
|
-
*/
|
|
1710
1535
|
defaults: () => Object.freeze(defaults()) as Partial<LightningReceive>,
|
|
1711
1536
|
});
|
|
1712
1537
|
})();
|
|
@@ -1762,7 +1587,7 @@ export type LightningSend = {
|
|
|
1762
1587
|
/**
|
|
1763
1588
|
* Payment preimage (only present if payment completed)
|
|
1764
1589
|
*/
|
|
1765
|
-
preimage
|
|
1590
|
+
preimage?: string;
|
|
1766
1591
|
};
|
|
1767
1592
|
|
|
1768
1593
|
/**
|
|
@@ -1776,21 +1601,8 @@ export const LightningSend = (() => {
|
|
|
1776
1601
|
);
|
|
1777
1602
|
})();
|
|
1778
1603
|
return Object.freeze({
|
|
1779
|
-
/**
|
|
1780
|
-
* Create a frozen instance of {@link LightningSend}, with defaults specified
|
|
1781
|
-
* in Rust, in the {@link bark} crate.
|
|
1782
|
-
*/
|
|
1783
1604
|
create,
|
|
1784
|
-
|
|
1785
|
-
/**
|
|
1786
|
-
* Create a frozen instance of {@link LightningSend}, with defaults specified
|
|
1787
|
-
* in Rust, in the {@link bark} crate.
|
|
1788
|
-
*/
|
|
1789
1605
|
new: create,
|
|
1790
|
-
|
|
1791
|
-
/**
|
|
1792
|
-
* Defaults specified in the {@link bark} crate.
|
|
1793
|
-
*/
|
|
1794
1606
|
defaults: () => Object.freeze(defaults()) as Partial<LightningSend>,
|
|
1795
1607
|
});
|
|
1796
1608
|
})();
|
|
@@ -1891,7 +1703,7 @@ export type Movement = {
|
|
|
1891
1703
|
/**
|
|
1892
1704
|
* Completed at timestamp (null if not completed)
|
|
1893
1705
|
*/
|
|
1894
|
-
completedAt
|
|
1706
|
+
completedAt?: string;
|
|
1895
1707
|
};
|
|
1896
1708
|
|
|
1897
1709
|
/**
|
|
@@ -1903,21 +1715,8 @@ export const Movement = (() => {
|
|
|
1903
1715
|
return uniffiCreateRecord<Movement, ReturnType<typeof defaults>>(defaults);
|
|
1904
1716
|
})();
|
|
1905
1717
|
return Object.freeze({
|
|
1906
|
-
/**
|
|
1907
|
-
* Create a frozen instance of {@link Movement}, with defaults specified
|
|
1908
|
-
* in Rust, in the {@link bark} crate.
|
|
1909
|
-
*/
|
|
1910
1718
|
create,
|
|
1911
|
-
|
|
1912
|
-
/**
|
|
1913
|
-
* Create a frozen instance of {@link Movement}, with defaults specified
|
|
1914
|
-
* in Rust, in the {@link bark} crate.
|
|
1915
|
-
*/
|
|
1916
1719
|
new: create,
|
|
1917
|
-
|
|
1918
|
-
/**
|
|
1919
|
-
* Defaults specified in the {@link bark} crate.
|
|
1920
|
-
*/
|
|
1921
1720
|
defaults: () => Object.freeze(defaults()) as Partial<Movement>,
|
|
1922
1721
|
});
|
|
1923
1722
|
})();
|
|
@@ -2008,21 +1807,8 @@ export const OffboardResult = (() => {
|
|
|
2008
1807
|
);
|
|
2009
1808
|
})();
|
|
2010
1809
|
return Object.freeze({
|
|
2011
|
-
/**
|
|
2012
|
-
* Create a frozen instance of {@link OffboardResult}, with defaults specified
|
|
2013
|
-
* in Rust, in the {@link bark} crate.
|
|
2014
|
-
*/
|
|
2015
1810
|
create,
|
|
2016
|
-
|
|
2017
|
-
/**
|
|
2018
|
-
* Create a frozen instance of {@link OffboardResult}, with defaults specified
|
|
2019
|
-
* in Rust, in the {@link bark} crate.
|
|
2020
|
-
*/
|
|
2021
1811
|
new: create,
|
|
2022
|
-
|
|
2023
|
-
/**
|
|
2024
|
-
* Defaults specified in the {@link bark} crate.
|
|
2025
|
-
*/
|
|
2026
1812
|
defaults: () => Object.freeze(defaults()) as Partial<OffboardResult>,
|
|
2027
1813
|
});
|
|
2028
1814
|
})();
|
|
@@ -2074,21 +1860,8 @@ export const OnchainBalance = (() => {
|
|
|
2074
1860
|
);
|
|
2075
1861
|
})();
|
|
2076
1862
|
return Object.freeze({
|
|
2077
|
-
/**
|
|
2078
|
-
* Create a frozen instance of {@link OnchainBalance}, with defaults specified
|
|
2079
|
-
* in Rust, in the {@link bark} crate.
|
|
2080
|
-
*/
|
|
2081
1863
|
create,
|
|
2082
|
-
|
|
2083
|
-
/**
|
|
2084
|
-
* Create a frozen instance of {@link OnchainBalance}, with defaults specified
|
|
2085
|
-
* in Rust, in the {@link bark} crate.
|
|
2086
|
-
*/
|
|
2087
1864
|
new: create,
|
|
2088
|
-
|
|
2089
|
-
/**
|
|
2090
|
-
* Defaults specified in the {@link bark} crate.
|
|
2091
|
-
*/
|
|
2092
1865
|
defaults: () => Object.freeze(defaults()) as Partial<OnchainBalance>,
|
|
2093
1866
|
});
|
|
2094
1867
|
})();
|
|
@@ -2136,21 +1909,8 @@ export const OutPoint = (() => {
|
|
|
2136
1909
|
return uniffiCreateRecord<OutPoint, ReturnType<typeof defaults>>(defaults);
|
|
2137
1910
|
})();
|
|
2138
1911
|
return Object.freeze({
|
|
2139
|
-
/**
|
|
2140
|
-
* Create a frozen instance of {@link OutPoint}, with defaults specified
|
|
2141
|
-
* in Rust, in the {@link bark} crate.
|
|
2142
|
-
*/
|
|
2143
1912
|
create,
|
|
2144
|
-
|
|
2145
|
-
/**
|
|
2146
|
-
* Create a frozen instance of {@link OutPoint}, with defaults specified
|
|
2147
|
-
* in Rust, in the {@link bark} crate.
|
|
2148
|
-
*/
|
|
2149
1913
|
new: create,
|
|
2150
|
-
|
|
2151
|
-
/**
|
|
2152
|
-
* Defaults specified in the {@link bark} crate.
|
|
2153
|
-
*/
|
|
2154
1914
|
defaults: () => Object.freeze(defaults()) as Partial<OutPoint>,
|
|
2155
1915
|
});
|
|
2156
1916
|
})();
|
|
@@ -2207,21 +1967,8 @@ export const PendingBoard = (() => {
|
|
|
2207
1967
|
);
|
|
2208
1968
|
})();
|
|
2209
1969
|
return Object.freeze({
|
|
2210
|
-
/**
|
|
2211
|
-
* Create a frozen instance of {@link PendingBoard}, with defaults specified
|
|
2212
|
-
* in Rust, in the {@link bark} crate.
|
|
2213
|
-
*/
|
|
2214
1970
|
create,
|
|
2215
|
-
|
|
2216
|
-
/**
|
|
2217
|
-
* Create a frozen instance of {@link PendingBoard}, with defaults specified
|
|
2218
|
-
* in Rust, in the {@link bark} crate.
|
|
2219
|
-
*/
|
|
2220
1971
|
new: create,
|
|
2221
|
-
|
|
2222
|
-
/**
|
|
2223
|
-
* Defaults specified in the {@link bark} crate.
|
|
2224
|
-
*/
|
|
2225
1972
|
defaults: () => Object.freeze(defaults()) as Partial<PendingBoard>,
|
|
2226
1973
|
});
|
|
2227
1974
|
})();
|
|
@@ -2277,21 +2024,8 @@ export const RoundState = (() => {
|
|
|
2277
2024
|
);
|
|
2278
2025
|
})();
|
|
2279
2026
|
return Object.freeze({
|
|
2280
|
-
/**
|
|
2281
|
-
* Create a frozen instance of {@link RoundState}, with defaults specified
|
|
2282
|
-
* in Rust, in the {@link bark} crate.
|
|
2283
|
-
*/
|
|
2284
2027
|
create,
|
|
2285
|
-
|
|
2286
|
-
/**
|
|
2287
|
-
* Create a frozen instance of {@link RoundState}, with defaults specified
|
|
2288
|
-
* in Rust, in the {@link bark} crate.
|
|
2289
|
-
*/
|
|
2290
2028
|
new: create,
|
|
2291
|
-
|
|
2292
|
-
/**
|
|
2293
|
-
* Defaults specified in the {@link bark} crate.
|
|
2294
|
-
*/
|
|
2295
2029
|
defaults: () => Object.freeze(defaults()) as Partial<RoundState>,
|
|
2296
2030
|
});
|
|
2297
2031
|
})();
|
|
@@ -2354,21 +2088,8 @@ export const Vtxo = (() => {
|
|
|
2354
2088
|
return uniffiCreateRecord<Vtxo, ReturnType<typeof defaults>>(defaults);
|
|
2355
2089
|
})();
|
|
2356
2090
|
return Object.freeze({
|
|
2357
|
-
/**
|
|
2358
|
-
* Create a frozen instance of {@link Vtxo}, with defaults specified
|
|
2359
|
-
* in Rust, in the {@link bark} crate.
|
|
2360
|
-
*/
|
|
2361
2091
|
create,
|
|
2362
|
-
|
|
2363
|
-
/**
|
|
2364
|
-
* Create a frozen instance of {@link Vtxo}, with defaults specified
|
|
2365
|
-
* in Rust, in the {@link bark} crate.
|
|
2366
|
-
*/
|
|
2367
2092
|
new: create,
|
|
2368
|
-
|
|
2369
|
-
/**
|
|
2370
|
-
* Defaults specified in the {@link bark} crate.
|
|
2371
|
-
*/
|
|
2372
2093
|
defaults: () => Object.freeze(defaults()) as Partial<Vtxo>,
|
|
2373
2094
|
});
|
|
2374
2095
|
})();
|
|
@@ -2424,21 +2145,8 @@ export const WalletProperties = (() => {
|
|
|
2424
2145
|
);
|
|
2425
2146
|
})();
|
|
2426
2147
|
return Object.freeze({
|
|
2427
|
-
/**
|
|
2428
|
-
* Create a frozen instance of {@link WalletProperties}, with defaults specified
|
|
2429
|
-
* in Rust, in the {@link bark} crate.
|
|
2430
|
-
*/
|
|
2431
2148
|
create,
|
|
2432
|
-
|
|
2433
|
-
/**
|
|
2434
|
-
* Create a frozen instance of {@link WalletProperties}, with defaults specified
|
|
2435
|
-
* in Rust, in the {@link bark} crate.
|
|
2436
|
-
*/
|
|
2437
2149
|
new: create,
|
|
2438
|
-
|
|
2439
|
-
/**
|
|
2440
|
-
* Defaults specified in the {@link bark} crate.
|
|
2441
|
-
*/
|
|
2442
2150
|
defaults: () => Object.freeze(defaults()) as Partial<WalletProperties>,
|
|
2443
2151
|
});
|
|
2444
2152
|
})();
|
|
@@ -2515,25 +2223,29 @@ export enum BarkError_Tags {
|
|
|
2515
2223
|
*/
|
|
2516
2224
|
export const BarkError = (() => {
|
|
2517
2225
|
type Network__interface = {
|
|
2518
|
-
|
|
2519
|
-
errorMessage: string
|
|
2226
|
+
tag: BarkError_Tags.Network;
|
|
2227
|
+
inner: Readonly<{ errorMessage: string }>;
|
|
2520
2228
|
};
|
|
2521
2229
|
|
|
2522
2230
|
class Network_ extends UniffiError implements Network__interface {
|
|
2231
|
+
/**
|
|
2232
|
+
* @private
|
|
2233
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2234
|
+
*/
|
|
2523
2235
|
readonly [uniffiTypeNameSymbol] = "BarkError";
|
|
2524
|
-
readonly
|
|
2525
|
-
readonly errorMessage: string
|
|
2526
|
-
constructor(
|
|
2236
|
+
readonly tag = BarkError_Tags.Network;
|
|
2237
|
+
readonly inner: Readonly<{ errorMessage: string }>;
|
|
2238
|
+
constructor(inner: { errorMessage: string }) {
|
|
2527
2239
|
super("BarkError", "Network");
|
|
2528
|
-
this.
|
|
2240
|
+
this.inner = Object.freeze(inner);
|
|
2529
2241
|
}
|
|
2530
2242
|
|
|
2531
|
-
static new(
|
|
2532
|
-
return new Network_(
|
|
2243
|
+
static new(inner: { errorMessage: string }): Network_ {
|
|
2244
|
+
return new Network_(inner);
|
|
2533
2245
|
}
|
|
2534
2246
|
|
|
2535
2247
|
static instanceOf(obj: any): obj is Network_ {
|
|
2536
|
-
return obj.
|
|
2248
|
+
return obj.tag === BarkError_Tags.Network;
|
|
2537
2249
|
}
|
|
2538
2250
|
|
|
2539
2251
|
static hasInner(obj: any): obj is Network_ {
|
|
@@ -2541,30 +2253,34 @@ export const BarkError = (() => {
|
|
|
2541
2253
|
}
|
|
2542
2254
|
|
|
2543
2255
|
static getInner(obj: Network_): Readonly<{ errorMessage: string }> {
|
|
2544
|
-
return
|
|
2256
|
+
return obj.inner;
|
|
2545
2257
|
}
|
|
2546
2258
|
}
|
|
2547
2259
|
|
|
2548
2260
|
type Database__interface = {
|
|
2549
|
-
|
|
2550
|
-
errorMessage: string
|
|
2261
|
+
tag: BarkError_Tags.Database;
|
|
2262
|
+
inner: Readonly<{ errorMessage: string }>;
|
|
2551
2263
|
};
|
|
2552
2264
|
|
|
2553
2265
|
class Database_ extends UniffiError implements Database__interface {
|
|
2266
|
+
/**
|
|
2267
|
+
* @private
|
|
2268
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2269
|
+
*/
|
|
2554
2270
|
readonly [uniffiTypeNameSymbol] = "BarkError";
|
|
2555
|
-
readonly
|
|
2556
|
-
readonly errorMessage: string
|
|
2557
|
-
constructor(
|
|
2271
|
+
readonly tag = BarkError_Tags.Database;
|
|
2272
|
+
readonly inner: Readonly<{ errorMessage: string }>;
|
|
2273
|
+
constructor(inner: { errorMessage: string }) {
|
|
2558
2274
|
super("BarkError", "Database");
|
|
2559
|
-
this.
|
|
2275
|
+
this.inner = Object.freeze(inner);
|
|
2560
2276
|
}
|
|
2561
2277
|
|
|
2562
|
-
static new(
|
|
2563
|
-
return new Database_(
|
|
2278
|
+
static new(inner: { errorMessage: string }): Database_ {
|
|
2279
|
+
return new Database_(inner);
|
|
2564
2280
|
}
|
|
2565
2281
|
|
|
2566
2282
|
static instanceOf(obj: any): obj is Database_ {
|
|
2567
|
-
return obj.
|
|
2283
|
+
return obj.tag === BarkError_Tags.Database;
|
|
2568
2284
|
}
|
|
2569
2285
|
|
|
2570
2286
|
static hasInner(obj: any): obj is Database_ {
|
|
@@ -2572,33 +2288,37 @@ export const BarkError = (() => {
|
|
|
2572
2288
|
}
|
|
2573
2289
|
|
|
2574
2290
|
static getInner(obj: Database_): Readonly<{ errorMessage: string }> {
|
|
2575
|
-
return
|
|
2291
|
+
return obj.inner;
|
|
2576
2292
|
}
|
|
2577
2293
|
}
|
|
2578
2294
|
|
|
2579
2295
|
type InvalidMnemonic__interface = {
|
|
2580
|
-
|
|
2581
|
-
errorMessage: string
|
|
2296
|
+
tag: BarkError_Tags.InvalidMnemonic;
|
|
2297
|
+
inner: Readonly<{ errorMessage: string }>;
|
|
2582
2298
|
};
|
|
2583
2299
|
|
|
2584
2300
|
class InvalidMnemonic_
|
|
2585
2301
|
extends UniffiError
|
|
2586
2302
|
implements InvalidMnemonic__interface
|
|
2587
2303
|
{
|
|
2304
|
+
/**
|
|
2305
|
+
* @private
|
|
2306
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2307
|
+
*/
|
|
2588
2308
|
readonly [uniffiTypeNameSymbol] = "BarkError";
|
|
2589
|
-
readonly
|
|
2590
|
-
readonly errorMessage: string
|
|
2591
|
-
constructor(
|
|
2309
|
+
readonly tag = BarkError_Tags.InvalidMnemonic;
|
|
2310
|
+
readonly inner: Readonly<{ errorMessage: string }>;
|
|
2311
|
+
constructor(inner: { errorMessage: string }) {
|
|
2592
2312
|
super("BarkError", "InvalidMnemonic");
|
|
2593
|
-
this.
|
|
2313
|
+
this.inner = Object.freeze(inner);
|
|
2594
2314
|
}
|
|
2595
2315
|
|
|
2596
|
-
static new(
|
|
2597
|
-
return new InvalidMnemonic_(
|
|
2316
|
+
static new(inner: { errorMessage: string }): InvalidMnemonic_ {
|
|
2317
|
+
return new InvalidMnemonic_(inner);
|
|
2598
2318
|
}
|
|
2599
2319
|
|
|
2600
2320
|
static instanceOf(obj: any): obj is InvalidMnemonic_ {
|
|
2601
|
-
return obj.
|
|
2321
|
+
return obj.tag === BarkError_Tags.InvalidMnemonic;
|
|
2602
2322
|
}
|
|
2603
2323
|
|
|
2604
2324
|
static hasInner(obj: any): obj is InvalidMnemonic_ {
|
|
@@ -2606,33 +2326,37 @@ export const BarkError = (() => {
|
|
|
2606
2326
|
}
|
|
2607
2327
|
|
|
2608
2328
|
static getInner(obj: InvalidMnemonic_): Readonly<{ errorMessage: string }> {
|
|
2609
|
-
return
|
|
2329
|
+
return obj.inner;
|
|
2610
2330
|
}
|
|
2611
2331
|
}
|
|
2612
2332
|
|
|
2613
2333
|
type InvalidAddress__interface = {
|
|
2614
|
-
|
|
2615
|
-
errorMessage: string
|
|
2334
|
+
tag: BarkError_Tags.InvalidAddress;
|
|
2335
|
+
inner: Readonly<{ errorMessage: string }>;
|
|
2616
2336
|
};
|
|
2617
2337
|
|
|
2618
2338
|
class InvalidAddress_
|
|
2619
2339
|
extends UniffiError
|
|
2620
2340
|
implements InvalidAddress__interface
|
|
2621
2341
|
{
|
|
2342
|
+
/**
|
|
2343
|
+
* @private
|
|
2344
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2345
|
+
*/
|
|
2622
2346
|
readonly [uniffiTypeNameSymbol] = "BarkError";
|
|
2623
|
-
readonly
|
|
2624
|
-
readonly errorMessage: string
|
|
2625
|
-
constructor(
|
|
2347
|
+
readonly tag = BarkError_Tags.InvalidAddress;
|
|
2348
|
+
readonly inner: Readonly<{ errorMessage: string }>;
|
|
2349
|
+
constructor(inner: { errorMessage: string }) {
|
|
2626
2350
|
super("BarkError", "InvalidAddress");
|
|
2627
|
-
this.
|
|
2351
|
+
this.inner = Object.freeze(inner);
|
|
2628
2352
|
}
|
|
2629
2353
|
|
|
2630
|
-
static new(
|
|
2631
|
-
return new InvalidAddress_(
|
|
2354
|
+
static new(inner: { errorMessage: string }): InvalidAddress_ {
|
|
2355
|
+
return new InvalidAddress_(inner);
|
|
2632
2356
|
}
|
|
2633
2357
|
|
|
2634
2358
|
static instanceOf(obj: any): obj is InvalidAddress_ {
|
|
2635
|
-
return obj.
|
|
2359
|
+
return obj.tag === BarkError_Tags.InvalidAddress;
|
|
2636
2360
|
}
|
|
2637
2361
|
|
|
2638
2362
|
static hasInner(obj: any): obj is InvalidAddress_ {
|
|
@@ -2640,33 +2364,37 @@ export const BarkError = (() => {
|
|
|
2640
2364
|
}
|
|
2641
2365
|
|
|
2642
2366
|
static getInner(obj: InvalidAddress_): Readonly<{ errorMessage: string }> {
|
|
2643
|
-
return
|
|
2367
|
+
return obj.inner;
|
|
2644
2368
|
}
|
|
2645
2369
|
}
|
|
2646
2370
|
|
|
2647
2371
|
type InvalidInvoice__interface = {
|
|
2648
|
-
|
|
2649
|
-
errorMessage: string
|
|
2372
|
+
tag: BarkError_Tags.InvalidInvoice;
|
|
2373
|
+
inner: Readonly<{ errorMessage: string }>;
|
|
2650
2374
|
};
|
|
2651
2375
|
|
|
2652
2376
|
class InvalidInvoice_
|
|
2653
2377
|
extends UniffiError
|
|
2654
2378
|
implements InvalidInvoice__interface
|
|
2655
2379
|
{
|
|
2380
|
+
/**
|
|
2381
|
+
* @private
|
|
2382
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2383
|
+
*/
|
|
2656
2384
|
readonly [uniffiTypeNameSymbol] = "BarkError";
|
|
2657
|
-
readonly
|
|
2658
|
-
readonly errorMessage: string
|
|
2659
|
-
constructor(
|
|
2385
|
+
readonly tag = BarkError_Tags.InvalidInvoice;
|
|
2386
|
+
readonly inner: Readonly<{ errorMessage: string }>;
|
|
2387
|
+
constructor(inner: { errorMessage: string }) {
|
|
2660
2388
|
super("BarkError", "InvalidInvoice");
|
|
2661
|
-
this.
|
|
2389
|
+
this.inner = Object.freeze(inner);
|
|
2662
2390
|
}
|
|
2663
2391
|
|
|
2664
|
-
static new(
|
|
2665
|
-
return new InvalidInvoice_(
|
|
2392
|
+
static new(inner: { errorMessage: string }): InvalidInvoice_ {
|
|
2393
|
+
return new InvalidInvoice_(inner);
|
|
2666
2394
|
}
|
|
2667
2395
|
|
|
2668
2396
|
static instanceOf(obj: any): obj is InvalidInvoice_ {
|
|
2669
|
-
return obj.
|
|
2397
|
+
return obj.tag === BarkError_Tags.InvalidInvoice;
|
|
2670
2398
|
}
|
|
2671
2399
|
|
|
2672
2400
|
static hasInner(obj: any): obj is InvalidInvoice_ {
|
|
@@ -2674,30 +2402,34 @@ export const BarkError = (() => {
|
|
|
2674
2402
|
}
|
|
2675
2403
|
|
|
2676
2404
|
static getInner(obj: InvalidInvoice_): Readonly<{ errorMessage: string }> {
|
|
2677
|
-
return
|
|
2405
|
+
return obj.inner;
|
|
2678
2406
|
}
|
|
2679
2407
|
}
|
|
2680
2408
|
|
|
2681
2409
|
type InvalidPsbt__interface = {
|
|
2682
|
-
|
|
2683
|
-
errorMessage: string
|
|
2410
|
+
tag: BarkError_Tags.InvalidPsbt;
|
|
2411
|
+
inner: Readonly<{ errorMessage: string }>;
|
|
2684
2412
|
};
|
|
2685
2413
|
|
|
2686
2414
|
class InvalidPsbt_ extends UniffiError implements InvalidPsbt__interface {
|
|
2415
|
+
/**
|
|
2416
|
+
* @private
|
|
2417
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2418
|
+
*/
|
|
2687
2419
|
readonly [uniffiTypeNameSymbol] = "BarkError";
|
|
2688
|
-
readonly
|
|
2689
|
-
readonly errorMessage: string
|
|
2690
|
-
constructor(
|
|
2420
|
+
readonly tag = BarkError_Tags.InvalidPsbt;
|
|
2421
|
+
readonly inner: Readonly<{ errorMessage: string }>;
|
|
2422
|
+
constructor(inner: { errorMessage: string }) {
|
|
2691
2423
|
super("BarkError", "InvalidPsbt");
|
|
2692
|
-
this.
|
|
2424
|
+
this.inner = Object.freeze(inner);
|
|
2693
2425
|
}
|
|
2694
2426
|
|
|
2695
|
-
static new(
|
|
2696
|
-
return new InvalidPsbt_(
|
|
2427
|
+
static new(inner: { errorMessage: string }): InvalidPsbt_ {
|
|
2428
|
+
return new InvalidPsbt_(inner);
|
|
2697
2429
|
}
|
|
2698
2430
|
|
|
2699
2431
|
static instanceOf(obj: any): obj is InvalidPsbt_ {
|
|
2700
|
-
return obj.
|
|
2432
|
+
return obj.tag === BarkError_Tags.InvalidPsbt;
|
|
2701
2433
|
}
|
|
2702
2434
|
|
|
2703
2435
|
static hasInner(obj: any): obj is InvalidPsbt_ {
|
|
@@ -2705,37 +2437,37 @@ export const BarkError = (() => {
|
|
|
2705
2437
|
}
|
|
2706
2438
|
|
|
2707
2439
|
static getInner(obj: InvalidPsbt_): Readonly<{ errorMessage: string }> {
|
|
2708
|
-
return
|
|
2440
|
+
return obj.inner;
|
|
2709
2441
|
}
|
|
2710
2442
|
}
|
|
2711
2443
|
|
|
2712
2444
|
type InvalidTransaction__interface = {
|
|
2713
|
-
|
|
2714
|
-
errorMessage: string
|
|
2445
|
+
tag: BarkError_Tags.InvalidTransaction;
|
|
2446
|
+
inner: Readonly<{ errorMessage: string }>;
|
|
2715
2447
|
};
|
|
2716
2448
|
|
|
2717
2449
|
class InvalidTransaction_
|
|
2718
2450
|
extends UniffiError
|
|
2719
2451
|
implements InvalidTransaction__interface
|
|
2720
2452
|
{
|
|
2453
|
+
/**
|
|
2454
|
+
* @private
|
|
2455
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2456
|
+
*/
|
|
2721
2457
|
readonly [uniffiTypeNameSymbol] = "BarkError";
|
|
2722
|
-
readonly
|
|
2723
|
-
readonly errorMessage: string
|
|
2724
|
-
constructor(
|
|
2458
|
+
readonly tag = BarkError_Tags.InvalidTransaction;
|
|
2459
|
+
readonly inner: Readonly<{ errorMessage: string }>;
|
|
2460
|
+
constructor(inner: { errorMessage: string }) {
|
|
2725
2461
|
super("BarkError", "InvalidTransaction");
|
|
2726
|
-
this.
|
|
2462
|
+
this.inner = Object.freeze(inner);
|
|
2727
2463
|
}
|
|
2728
2464
|
|
|
2729
|
-
static new({
|
|
2730
|
-
|
|
2731
|
-
}: {
|
|
2732
|
-
errorMessage: string;
|
|
2733
|
-
}): InvalidTransaction_ {
|
|
2734
|
-
return new InvalidTransaction_({ errorMessage });
|
|
2465
|
+
static new(inner: { errorMessage: string }): InvalidTransaction_ {
|
|
2466
|
+
return new InvalidTransaction_(inner);
|
|
2735
2467
|
}
|
|
2736
2468
|
|
|
2737
2469
|
static instanceOf(obj: any): obj is InvalidTransaction_ {
|
|
2738
|
-
return obj.
|
|
2470
|
+
return obj.tag === BarkError_Tags.InvalidTransaction;
|
|
2739
2471
|
}
|
|
2740
2472
|
|
|
2741
2473
|
static hasInner(obj: any): obj is InvalidTransaction_ {
|
|
@@ -2745,33 +2477,37 @@ export const BarkError = (() => {
|
|
|
2745
2477
|
static getInner(
|
|
2746
2478
|
obj: InvalidTransaction_
|
|
2747
2479
|
): Readonly<{ errorMessage: string }> {
|
|
2748
|
-
return
|
|
2480
|
+
return obj.inner;
|
|
2749
2481
|
}
|
|
2750
2482
|
}
|
|
2751
2483
|
|
|
2752
2484
|
type InsufficientFunds__interface = {
|
|
2753
|
-
|
|
2754
|
-
errorMessage: string
|
|
2485
|
+
tag: BarkError_Tags.InsufficientFunds;
|
|
2486
|
+
inner: Readonly<{ errorMessage: string }>;
|
|
2755
2487
|
};
|
|
2756
2488
|
|
|
2757
2489
|
class InsufficientFunds_
|
|
2758
2490
|
extends UniffiError
|
|
2759
2491
|
implements InsufficientFunds__interface
|
|
2760
2492
|
{
|
|
2493
|
+
/**
|
|
2494
|
+
* @private
|
|
2495
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2496
|
+
*/
|
|
2761
2497
|
readonly [uniffiTypeNameSymbol] = "BarkError";
|
|
2762
|
-
readonly
|
|
2763
|
-
readonly errorMessage: string
|
|
2764
|
-
constructor(
|
|
2498
|
+
readonly tag = BarkError_Tags.InsufficientFunds;
|
|
2499
|
+
readonly inner: Readonly<{ errorMessage: string }>;
|
|
2500
|
+
constructor(inner: { errorMessage: string }) {
|
|
2765
2501
|
super("BarkError", "InsufficientFunds");
|
|
2766
|
-
this.
|
|
2502
|
+
this.inner = Object.freeze(inner);
|
|
2767
2503
|
}
|
|
2768
2504
|
|
|
2769
|
-
static new(
|
|
2770
|
-
return new InsufficientFunds_(
|
|
2505
|
+
static new(inner: { errorMessage: string }): InsufficientFunds_ {
|
|
2506
|
+
return new InsufficientFunds_(inner);
|
|
2771
2507
|
}
|
|
2772
2508
|
|
|
2773
2509
|
static instanceOf(obj: any): obj is InsufficientFunds_ {
|
|
2774
|
-
return obj.
|
|
2510
|
+
return obj.tag === BarkError_Tags.InsufficientFunds;
|
|
2775
2511
|
}
|
|
2776
2512
|
|
|
2777
2513
|
static hasInner(obj: any): obj is InsufficientFunds_ {
|
|
@@ -2781,30 +2517,34 @@ export const BarkError = (() => {
|
|
|
2781
2517
|
static getInner(
|
|
2782
2518
|
obj: InsufficientFunds_
|
|
2783
2519
|
): Readonly<{ errorMessage: string }> {
|
|
2784
|
-
return
|
|
2520
|
+
return obj.inner;
|
|
2785
2521
|
}
|
|
2786
2522
|
}
|
|
2787
2523
|
|
|
2788
2524
|
type NotFound__interface = {
|
|
2789
|
-
|
|
2790
|
-
errorMessage: string
|
|
2525
|
+
tag: BarkError_Tags.NotFound;
|
|
2526
|
+
inner: Readonly<{ errorMessage: string }>;
|
|
2791
2527
|
};
|
|
2792
2528
|
|
|
2793
2529
|
class NotFound_ extends UniffiError implements NotFound__interface {
|
|
2530
|
+
/**
|
|
2531
|
+
* @private
|
|
2532
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2533
|
+
*/
|
|
2794
2534
|
readonly [uniffiTypeNameSymbol] = "BarkError";
|
|
2795
|
-
readonly
|
|
2796
|
-
readonly errorMessage: string
|
|
2797
|
-
constructor(
|
|
2535
|
+
readonly tag = BarkError_Tags.NotFound;
|
|
2536
|
+
readonly inner: Readonly<{ errorMessage: string }>;
|
|
2537
|
+
constructor(inner: { errorMessage: string }) {
|
|
2798
2538
|
super("BarkError", "NotFound");
|
|
2799
|
-
this.
|
|
2539
|
+
this.inner = Object.freeze(inner);
|
|
2800
2540
|
}
|
|
2801
2541
|
|
|
2802
|
-
static new(
|
|
2803
|
-
return new NotFound_(
|
|
2542
|
+
static new(inner: { errorMessage: string }): NotFound_ {
|
|
2543
|
+
return new NotFound_(inner);
|
|
2804
2544
|
}
|
|
2805
2545
|
|
|
2806
2546
|
static instanceOf(obj: any): obj is NotFound_ {
|
|
2807
|
-
return obj.
|
|
2547
|
+
return obj.tag === BarkError_Tags.NotFound;
|
|
2808
2548
|
}
|
|
2809
2549
|
|
|
2810
2550
|
static hasInner(obj: any): obj is NotFound_ {
|
|
@@ -2812,33 +2552,37 @@ export const BarkError = (() => {
|
|
|
2812
2552
|
}
|
|
2813
2553
|
|
|
2814
2554
|
static getInner(obj: NotFound_): Readonly<{ errorMessage: string }> {
|
|
2815
|
-
return
|
|
2555
|
+
return obj.inner;
|
|
2816
2556
|
}
|
|
2817
2557
|
}
|
|
2818
2558
|
|
|
2819
2559
|
type ServerConnection__interface = {
|
|
2820
|
-
|
|
2821
|
-
errorMessage: string
|
|
2560
|
+
tag: BarkError_Tags.ServerConnection;
|
|
2561
|
+
inner: Readonly<{ errorMessage: string }>;
|
|
2822
2562
|
};
|
|
2823
2563
|
|
|
2824
2564
|
class ServerConnection_
|
|
2825
2565
|
extends UniffiError
|
|
2826
2566
|
implements ServerConnection__interface
|
|
2827
2567
|
{
|
|
2568
|
+
/**
|
|
2569
|
+
* @private
|
|
2570
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2571
|
+
*/
|
|
2828
2572
|
readonly [uniffiTypeNameSymbol] = "BarkError";
|
|
2829
|
-
readonly
|
|
2830
|
-
readonly errorMessage: string
|
|
2831
|
-
constructor(
|
|
2573
|
+
readonly tag = BarkError_Tags.ServerConnection;
|
|
2574
|
+
readonly inner: Readonly<{ errorMessage: string }>;
|
|
2575
|
+
constructor(inner: { errorMessage: string }) {
|
|
2832
2576
|
super("BarkError", "ServerConnection");
|
|
2833
|
-
this.
|
|
2577
|
+
this.inner = Object.freeze(inner);
|
|
2834
2578
|
}
|
|
2835
2579
|
|
|
2836
|
-
static new(
|
|
2837
|
-
return new ServerConnection_(
|
|
2580
|
+
static new(inner: { errorMessage: string }): ServerConnection_ {
|
|
2581
|
+
return new ServerConnection_(inner);
|
|
2838
2582
|
}
|
|
2839
2583
|
|
|
2840
2584
|
static instanceOf(obj: any): obj is ServerConnection_ {
|
|
2841
|
-
return obj.
|
|
2585
|
+
return obj.tag === BarkError_Tags.ServerConnection;
|
|
2842
2586
|
}
|
|
2843
2587
|
|
|
2844
2588
|
static hasInner(obj: any): obj is ServerConnection_ {
|
|
@@ -2848,30 +2592,34 @@ export const BarkError = (() => {
|
|
|
2848
2592
|
static getInner(
|
|
2849
2593
|
obj: ServerConnection_
|
|
2850
2594
|
): Readonly<{ errorMessage: string }> {
|
|
2851
|
-
return
|
|
2595
|
+
return obj.inner;
|
|
2852
2596
|
}
|
|
2853
2597
|
}
|
|
2854
2598
|
|
|
2855
2599
|
type Internal__interface = {
|
|
2856
|
-
|
|
2857
|
-
errorMessage: string
|
|
2600
|
+
tag: BarkError_Tags.Internal;
|
|
2601
|
+
inner: Readonly<{ errorMessage: string }>;
|
|
2858
2602
|
};
|
|
2859
2603
|
|
|
2860
2604
|
class Internal_ extends UniffiError implements Internal__interface {
|
|
2605
|
+
/**
|
|
2606
|
+
* @private
|
|
2607
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2608
|
+
*/
|
|
2861
2609
|
readonly [uniffiTypeNameSymbol] = "BarkError";
|
|
2862
|
-
readonly
|
|
2863
|
-
readonly errorMessage: string
|
|
2864
|
-
constructor(
|
|
2610
|
+
readonly tag = BarkError_Tags.Internal;
|
|
2611
|
+
readonly inner: Readonly<{ errorMessage: string }>;
|
|
2612
|
+
constructor(inner: { errorMessage: string }) {
|
|
2865
2613
|
super("BarkError", "Internal");
|
|
2866
|
-
this.
|
|
2614
|
+
this.inner = Object.freeze(inner);
|
|
2867
2615
|
}
|
|
2868
2616
|
|
|
2869
|
-
static new(
|
|
2870
|
-
return new Internal_(
|
|
2617
|
+
static new(inner: { errorMessage: string }): Internal_ {
|
|
2618
|
+
return new Internal_(inner);
|
|
2871
2619
|
}
|
|
2872
2620
|
|
|
2873
2621
|
static instanceOf(obj: any): obj is Internal_ {
|
|
2874
|
-
return obj.
|
|
2622
|
+
return obj.tag === BarkError_Tags.Internal;
|
|
2875
2623
|
}
|
|
2876
2624
|
|
|
2877
2625
|
static hasInner(obj: any): obj is Internal_ {
|
|
@@ -2879,37 +2627,37 @@ export const BarkError = (() => {
|
|
|
2879
2627
|
}
|
|
2880
2628
|
|
|
2881
2629
|
static getInner(obj: Internal_): Readonly<{ errorMessage: string }> {
|
|
2882
|
-
return
|
|
2630
|
+
return obj.inner;
|
|
2883
2631
|
}
|
|
2884
2632
|
}
|
|
2885
2633
|
|
|
2886
2634
|
type OnchainWalletRequired__interface = {
|
|
2887
|
-
|
|
2888
|
-
errorMessage: string
|
|
2635
|
+
tag: BarkError_Tags.OnchainWalletRequired;
|
|
2636
|
+
inner: Readonly<{ errorMessage: string }>;
|
|
2889
2637
|
};
|
|
2890
2638
|
|
|
2891
2639
|
class OnchainWalletRequired_
|
|
2892
2640
|
extends UniffiError
|
|
2893
2641
|
implements OnchainWalletRequired__interface
|
|
2894
2642
|
{
|
|
2643
|
+
/**
|
|
2644
|
+
* @private
|
|
2645
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2646
|
+
*/
|
|
2895
2647
|
readonly [uniffiTypeNameSymbol] = "BarkError";
|
|
2896
|
-
readonly
|
|
2897
|
-
readonly errorMessage: string
|
|
2898
|
-
constructor(
|
|
2648
|
+
readonly tag = BarkError_Tags.OnchainWalletRequired;
|
|
2649
|
+
readonly inner: Readonly<{ errorMessage: string }>;
|
|
2650
|
+
constructor(inner: { errorMessage: string }) {
|
|
2899
2651
|
super("BarkError", "OnchainWalletRequired");
|
|
2900
|
-
this.
|
|
2652
|
+
this.inner = Object.freeze(inner);
|
|
2901
2653
|
}
|
|
2902
2654
|
|
|
2903
|
-
static new({
|
|
2904
|
-
|
|
2905
|
-
}: {
|
|
2906
|
-
errorMessage: string;
|
|
2907
|
-
}): OnchainWalletRequired_ {
|
|
2908
|
-
return new OnchainWalletRequired_({ errorMessage });
|
|
2655
|
+
static new(inner: { errorMessage: string }): OnchainWalletRequired_ {
|
|
2656
|
+
return new OnchainWalletRequired_(inner);
|
|
2909
2657
|
}
|
|
2910
2658
|
|
|
2911
2659
|
static instanceOf(obj: any): obj is OnchainWalletRequired_ {
|
|
2912
|
-
return obj.
|
|
2660
|
+
return obj.tag === BarkError_Tags.OnchainWalletRequired;
|
|
2913
2661
|
}
|
|
2914
2662
|
|
|
2915
2663
|
static hasInner(obj: any): obj is OnchainWalletRequired_ {
|
|
@@ -2919,30 +2667,34 @@ export const BarkError = (() => {
|
|
|
2919
2667
|
static getInner(
|
|
2920
2668
|
obj: OnchainWalletRequired_
|
|
2921
2669
|
): Readonly<{ errorMessage: string }> {
|
|
2922
|
-
return
|
|
2670
|
+
return obj.inner;
|
|
2923
2671
|
}
|
|
2924
2672
|
}
|
|
2925
2673
|
|
|
2926
2674
|
type InvalidVtxoId__interface = {
|
|
2927
|
-
|
|
2928
|
-
errorMessage: string
|
|
2675
|
+
tag: BarkError_Tags.InvalidVtxoId;
|
|
2676
|
+
inner: Readonly<{ errorMessage: string }>;
|
|
2929
2677
|
};
|
|
2930
2678
|
|
|
2931
2679
|
class InvalidVtxoId_ extends UniffiError implements InvalidVtxoId__interface {
|
|
2680
|
+
/**
|
|
2681
|
+
* @private
|
|
2682
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2683
|
+
*/
|
|
2932
2684
|
readonly [uniffiTypeNameSymbol] = "BarkError";
|
|
2933
|
-
readonly
|
|
2934
|
-
readonly errorMessage: string
|
|
2935
|
-
constructor(
|
|
2685
|
+
readonly tag = BarkError_Tags.InvalidVtxoId;
|
|
2686
|
+
readonly inner: Readonly<{ errorMessage: string }>;
|
|
2687
|
+
constructor(inner: { errorMessage: string }) {
|
|
2936
2688
|
super("BarkError", "InvalidVtxoId");
|
|
2937
|
-
this.
|
|
2689
|
+
this.inner = Object.freeze(inner);
|
|
2938
2690
|
}
|
|
2939
2691
|
|
|
2940
|
-
static new(
|
|
2941
|
-
return new InvalidVtxoId_(
|
|
2692
|
+
static new(inner: { errorMessage: string }): InvalidVtxoId_ {
|
|
2693
|
+
return new InvalidVtxoId_(inner);
|
|
2942
2694
|
}
|
|
2943
2695
|
|
|
2944
2696
|
static instanceOf(obj: any): obj is InvalidVtxoId_ {
|
|
2945
|
-
return obj.
|
|
2697
|
+
return obj.tag === BarkError_Tags.InvalidVtxoId;
|
|
2946
2698
|
}
|
|
2947
2699
|
|
|
2948
2700
|
static hasInner(obj: any): obj is InvalidVtxoId_ {
|
|
@@ -2950,37 +2702,37 @@ export const BarkError = (() => {
|
|
|
2950
2702
|
}
|
|
2951
2703
|
|
|
2952
2704
|
static getInner(obj: InvalidVtxoId_): Readonly<{ errorMessage: string }> {
|
|
2953
|
-
return
|
|
2705
|
+
return obj.inner;
|
|
2954
2706
|
}
|
|
2955
2707
|
}
|
|
2956
2708
|
|
|
2957
2709
|
type ServerPubkeyChanged__interface = {
|
|
2958
|
-
|
|
2959
|
-
errorMessage: string
|
|
2710
|
+
tag: BarkError_Tags.ServerPubkeyChanged;
|
|
2711
|
+
inner: Readonly<{ errorMessage: string }>;
|
|
2960
2712
|
};
|
|
2961
2713
|
|
|
2962
2714
|
class ServerPubkeyChanged_
|
|
2963
2715
|
extends UniffiError
|
|
2964
2716
|
implements ServerPubkeyChanged__interface
|
|
2965
2717
|
{
|
|
2718
|
+
/**
|
|
2719
|
+
* @private
|
|
2720
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2721
|
+
*/
|
|
2966
2722
|
readonly [uniffiTypeNameSymbol] = "BarkError";
|
|
2967
|
-
readonly
|
|
2968
|
-
readonly errorMessage: string
|
|
2969
|
-
constructor(
|
|
2723
|
+
readonly tag = BarkError_Tags.ServerPubkeyChanged;
|
|
2724
|
+
readonly inner: Readonly<{ errorMessage: string }>;
|
|
2725
|
+
constructor(inner: { errorMessage: string }) {
|
|
2970
2726
|
super("BarkError", "ServerPubkeyChanged");
|
|
2971
|
-
this.
|
|
2727
|
+
this.inner = Object.freeze(inner);
|
|
2972
2728
|
}
|
|
2973
2729
|
|
|
2974
|
-
static new({
|
|
2975
|
-
|
|
2976
|
-
}: {
|
|
2977
|
-
errorMessage: string;
|
|
2978
|
-
}): ServerPubkeyChanged_ {
|
|
2979
|
-
return new ServerPubkeyChanged_({ errorMessage });
|
|
2730
|
+
static new(inner: { errorMessage: string }): ServerPubkeyChanged_ {
|
|
2731
|
+
return new ServerPubkeyChanged_(inner);
|
|
2980
2732
|
}
|
|
2981
2733
|
|
|
2982
2734
|
static instanceOf(obj: any): obj is ServerPubkeyChanged_ {
|
|
2983
|
-
return obj.
|
|
2735
|
+
return obj.tag === BarkError_Tags.ServerPubkeyChanged;
|
|
2984
2736
|
}
|
|
2985
2737
|
|
|
2986
2738
|
static hasInner(obj: any): obj is ServerPubkeyChanged_ {
|
|
@@ -2990,7 +2742,7 @@ export const BarkError = (() => {
|
|
|
2990
2742
|
static getInner(
|
|
2991
2743
|
obj: ServerPubkeyChanged_
|
|
2992
2744
|
): Readonly<{ errorMessage: string }> {
|
|
2993
|
-
return
|
|
2745
|
+
return obj.inner;
|
|
2994
2746
|
}
|
|
2995
2747
|
}
|
|
2996
2748
|
|
|
@@ -3093,75 +2845,89 @@ const FfiConverterTypeBarkError = (() => {
|
|
|
3093
2845
|
}
|
|
3094
2846
|
}
|
|
3095
2847
|
write(value: TypeName, into: RustBuffer): void {
|
|
3096
|
-
switch (value.
|
|
2848
|
+
switch (value.tag) {
|
|
3097
2849
|
case BarkError_Tags.Network: {
|
|
3098
2850
|
ordinalConverter.write(1, into);
|
|
3099
|
-
|
|
2851
|
+
const inner = value.inner;
|
|
2852
|
+
FfiConverterString.write(inner.errorMessage, into);
|
|
3100
2853
|
return;
|
|
3101
2854
|
}
|
|
3102
2855
|
case BarkError_Tags.Database: {
|
|
3103
2856
|
ordinalConverter.write(2, into);
|
|
3104
|
-
|
|
2857
|
+
const inner = value.inner;
|
|
2858
|
+
FfiConverterString.write(inner.errorMessage, into);
|
|
3105
2859
|
return;
|
|
3106
2860
|
}
|
|
3107
2861
|
case BarkError_Tags.InvalidMnemonic: {
|
|
3108
2862
|
ordinalConverter.write(3, into);
|
|
3109
|
-
|
|
2863
|
+
const inner = value.inner;
|
|
2864
|
+
FfiConverterString.write(inner.errorMessage, into);
|
|
3110
2865
|
return;
|
|
3111
2866
|
}
|
|
3112
2867
|
case BarkError_Tags.InvalidAddress: {
|
|
3113
2868
|
ordinalConverter.write(4, into);
|
|
3114
|
-
|
|
2869
|
+
const inner = value.inner;
|
|
2870
|
+
FfiConverterString.write(inner.errorMessage, into);
|
|
3115
2871
|
return;
|
|
3116
2872
|
}
|
|
3117
2873
|
case BarkError_Tags.InvalidInvoice: {
|
|
3118
2874
|
ordinalConverter.write(5, into);
|
|
3119
|
-
|
|
2875
|
+
const inner = value.inner;
|
|
2876
|
+
FfiConverterString.write(inner.errorMessage, into);
|
|
3120
2877
|
return;
|
|
3121
2878
|
}
|
|
3122
2879
|
case BarkError_Tags.InvalidPsbt: {
|
|
3123
2880
|
ordinalConverter.write(6, into);
|
|
3124
|
-
|
|
2881
|
+
const inner = value.inner;
|
|
2882
|
+
FfiConverterString.write(inner.errorMessage, into);
|
|
3125
2883
|
return;
|
|
3126
2884
|
}
|
|
3127
2885
|
case BarkError_Tags.InvalidTransaction: {
|
|
3128
2886
|
ordinalConverter.write(7, into);
|
|
3129
|
-
|
|
2887
|
+
const inner = value.inner;
|
|
2888
|
+
FfiConverterString.write(inner.errorMessage, into);
|
|
3130
2889
|
return;
|
|
3131
2890
|
}
|
|
3132
2891
|
case BarkError_Tags.InsufficientFunds: {
|
|
3133
2892
|
ordinalConverter.write(8, into);
|
|
3134
|
-
|
|
2893
|
+
const inner = value.inner;
|
|
2894
|
+
FfiConverterString.write(inner.errorMessage, into);
|
|
3135
2895
|
return;
|
|
3136
2896
|
}
|
|
3137
2897
|
case BarkError_Tags.NotFound: {
|
|
3138
2898
|
ordinalConverter.write(9, into);
|
|
3139
|
-
|
|
2899
|
+
const inner = value.inner;
|
|
2900
|
+
FfiConverterString.write(inner.errorMessage, into);
|
|
3140
2901
|
return;
|
|
3141
2902
|
}
|
|
3142
2903
|
case BarkError_Tags.ServerConnection: {
|
|
3143
2904
|
ordinalConverter.write(10, into);
|
|
3144
|
-
|
|
2905
|
+
const inner = value.inner;
|
|
2906
|
+
FfiConverterString.write(inner.errorMessage, into);
|
|
3145
2907
|
return;
|
|
3146
2908
|
}
|
|
3147
2909
|
case BarkError_Tags.Internal: {
|
|
3148
2910
|
ordinalConverter.write(11, into);
|
|
3149
|
-
|
|
2911
|
+
const inner = value.inner;
|
|
2912
|
+
FfiConverterString.write(inner.errorMessage, into);
|
|
3150
2913
|
return;
|
|
3151
2914
|
}
|
|
3152
2915
|
case BarkError_Tags.OnchainWalletRequired: {
|
|
3153
2916
|
ordinalConverter.write(12, into);
|
|
3154
|
-
|
|
2917
|
+
const inner = value.inner;
|
|
2918
|
+
FfiConverterString.write(inner.errorMessage, into);
|
|
3155
2919
|
return;
|
|
3156
2920
|
}
|
|
3157
2921
|
case BarkError_Tags.InvalidVtxoId: {
|
|
3158
2922
|
ordinalConverter.write(13, into);
|
|
3159
|
-
|
|
2923
|
+
const inner = value.inner;
|
|
2924
|
+
FfiConverterString.write(inner.errorMessage, into);
|
|
3160
2925
|
return;
|
|
3161
2926
|
}
|
|
3162
2927
|
case BarkError_Tags.ServerPubkeyChanged: {
|
|
3163
2928
|
ordinalConverter.write(14, into);
|
|
3164
|
-
|
|
2929
|
+
const inner = value.inner;
|
|
2930
|
+
FfiConverterString.write(inner.errorMessage, into);
|
|
3165
2931
|
return;
|
|
3166
2932
|
}
|
|
3167
2933
|
default:
|
|
@@ -3170,75 +2936,89 @@ const FfiConverterTypeBarkError = (() => {
|
|
|
3170
2936
|
}
|
|
3171
2937
|
}
|
|
3172
2938
|
allocationSize(value: TypeName): number {
|
|
3173
|
-
switch (value.
|
|
2939
|
+
switch (value.tag) {
|
|
3174
2940
|
case BarkError_Tags.Network: {
|
|
2941
|
+
const inner = value.inner;
|
|
3175
2942
|
let size = ordinalConverter.allocationSize(1);
|
|
3176
|
-
size += FfiConverterString.allocationSize(
|
|
2943
|
+
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
3177
2944
|
return size;
|
|
3178
2945
|
}
|
|
3179
2946
|
case BarkError_Tags.Database: {
|
|
2947
|
+
const inner = value.inner;
|
|
3180
2948
|
let size = ordinalConverter.allocationSize(2);
|
|
3181
|
-
size += FfiConverterString.allocationSize(
|
|
2949
|
+
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
3182
2950
|
return size;
|
|
3183
2951
|
}
|
|
3184
2952
|
case BarkError_Tags.InvalidMnemonic: {
|
|
2953
|
+
const inner = value.inner;
|
|
3185
2954
|
let size = ordinalConverter.allocationSize(3);
|
|
3186
|
-
size += FfiConverterString.allocationSize(
|
|
2955
|
+
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
3187
2956
|
return size;
|
|
3188
2957
|
}
|
|
3189
2958
|
case BarkError_Tags.InvalidAddress: {
|
|
2959
|
+
const inner = value.inner;
|
|
3190
2960
|
let size = ordinalConverter.allocationSize(4);
|
|
3191
|
-
size += FfiConverterString.allocationSize(
|
|
2961
|
+
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
3192
2962
|
return size;
|
|
3193
2963
|
}
|
|
3194
2964
|
case BarkError_Tags.InvalidInvoice: {
|
|
2965
|
+
const inner = value.inner;
|
|
3195
2966
|
let size = ordinalConverter.allocationSize(5);
|
|
3196
|
-
size += FfiConverterString.allocationSize(
|
|
2967
|
+
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
3197
2968
|
return size;
|
|
3198
2969
|
}
|
|
3199
2970
|
case BarkError_Tags.InvalidPsbt: {
|
|
2971
|
+
const inner = value.inner;
|
|
3200
2972
|
let size = ordinalConverter.allocationSize(6);
|
|
3201
|
-
size += FfiConverterString.allocationSize(
|
|
2973
|
+
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
3202
2974
|
return size;
|
|
3203
2975
|
}
|
|
3204
2976
|
case BarkError_Tags.InvalidTransaction: {
|
|
2977
|
+
const inner = value.inner;
|
|
3205
2978
|
let size = ordinalConverter.allocationSize(7);
|
|
3206
|
-
size += FfiConverterString.allocationSize(
|
|
2979
|
+
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
3207
2980
|
return size;
|
|
3208
2981
|
}
|
|
3209
2982
|
case BarkError_Tags.InsufficientFunds: {
|
|
2983
|
+
const inner = value.inner;
|
|
3210
2984
|
let size = ordinalConverter.allocationSize(8);
|
|
3211
|
-
size += FfiConverterString.allocationSize(
|
|
2985
|
+
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
3212
2986
|
return size;
|
|
3213
2987
|
}
|
|
3214
2988
|
case BarkError_Tags.NotFound: {
|
|
2989
|
+
const inner = value.inner;
|
|
3215
2990
|
let size = ordinalConverter.allocationSize(9);
|
|
3216
|
-
size += FfiConverterString.allocationSize(
|
|
2991
|
+
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
3217
2992
|
return size;
|
|
3218
2993
|
}
|
|
3219
2994
|
case BarkError_Tags.ServerConnection: {
|
|
2995
|
+
const inner = value.inner;
|
|
3220
2996
|
let size = ordinalConverter.allocationSize(10);
|
|
3221
|
-
size += FfiConverterString.allocationSize(
|
|
2997
|
+
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
3222
2998
|
return size;
|
|
3223
2999
|
}
|
|
3224
3000
|
case BarkError_Tags.Internal: {
|
|
3001
|
+
const inner = value.inner;
|
|
3225
3002
|
let size = ordinalConverter.allocationSize(11);
|
|
3226
|
-
size += FfiConverterString.allocationSize(
|
|
3003
|
+
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
3227
3004
|
return size;
|
|
3228
3005
|
}
|
|
3229
3006
|
case BarkError_Tags.OnchainWalletRequired: {
|
|
3007
|
+
const inner = value.inner;
|
|
3230
3008
|
let size = ordinalConverter.allocationSize(12);
|
|
3231
|
-
size += FfiConverterString.allocationSize(
|
|
3009
|
+
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
3232
3010
|
return size;
|
|
3233
3011
|
}
|
|
3234
3012
|
case BarkError_Tags.InvalidVtxoId: {
|
|
3013
|
+
const inner = value.inner;
|
|
3235
3014
|
let size = ordinalConverter.allocationSize(13);
|
|
3236
|
-
size += FfiConverterString.allocationSize(
|
|
3015
|
+
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
3237
3016
|
return size;
|
|
3238
3017
|
}
|
|
3239
3018
|
case BarkError_Tags.ServerPubkeyChanged: {
|
|
3019
|
+
const inner = value.inner;
|
|
3240
3020
|
let size = ordinalConverter.allocationSize(14);
|
|
3241
|
-
size += FfiConverterString.allocationSize(
|
|
3021
|
+
size += FfiConverterString.allocationSize(inner.errorMessage);
|
|
3242
3022
|
return size;
|
|
3243
3023
|
}
|
|
3244
3024
|
default:
|
|
@@ -3307,8 +3087,8 @@ export enum WalletNotification_Tags {
|
|
|
3307
3087
|
*/
|
|
3308
3088
|
export const WalletNotification = (() => {
|
|
3309
3089
|
type MovementCreated__interface = {
|
|
3310
|
-
|
|
3311
|
-
movement: Movement
|
|
3090
|
+
tag: WalletNotification_Tags.MovementCreated;
|
|
3091
|
+
inner: Readonly<{ movement: Movement }>;
|
|
3312
3092
|
};
|
|
3313
3093
|
|
|
3314
3094
|
/**
|
|
@@ -3318,26 +3098,30 @@ export const WalletNotification = (() => {
|
|
|
3318
3098
|
extends UniffiEnum
|
|
3319
3099
|
implements MovementCreated__interface
|
|
3320
3100
|
{
|
|
3101
|
+
/**
|
|
3102
|
+
* @private
|
|
3103
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3104
|
+
*/
|
|
3321
3105
|
readonly [uniffiTypeNameSymbol] = "WalletNotification";
|
|
3322
|
-
readonly
|
|
3323
|
-
readonly movement: Movement
|
|
3324
|
-
constructor(
|
|
3106
|
+
readonly tag = WalletNotification_Tags.MovementCreated;
|
|
3107
|
+
readonly inner: Readonly<{ movement: Movement }>;
|
|
3108
|
+
constructor(inner: { movement: Movement }) {
|
|
3325
3109
|
super("WalletNotification", "MovementCreated");
|
|
3326
|
-
this.
|
|
3110
|
+
this.inner = Object.freeze(inner);
|
|
3327
3111
|
}
|
|
3328
3112
|
|
|
3329
|
-
static new(
|
|
3330
|
-
return new MovementCreated_(
|
|
3113
|
+
static new(inner: { movement: Movement }): MovementCreated_ {
|
|
3114
|
+
return new MovementCreated_(inner);
|
|
3331
3115
|
}
|
|
3332
3116
|
|
|
3333
3117
|
static instanceOf(obj: any): obj is MovementCreated_ {
|
|
3334
|
-
return obj.
|
|
3118
|
+
return obj.tag === WalletNotification_Tags.MovementCreated;
|
|
3335
3119
|
}
|
|
3336
3120
|
}
|
|
3337
3121
|
|
|
3338
3122
|
type MovementUpdated__interface = {
|
|
3339
|
-
|
|
3340
|
-
movement: Movement
|
|
3123
|
+
tag: WalletNotification_Tags.MovementUpdated;
|
|
3124
|
+
inner: Readonly<{ movement: Movement }>;
|
|
3341
3125
|
};
|
|
3342
3126
|
|
|
3343
3127
|
/**
|
|
@@ -3347,25 +3131,29 @@ export const WalletNotification = (() => {
|
|
|
3347
3131
|
extends UniffiEnum
|
|
3348
3132
|
implements MovementUpdated__interface
|
|
3349
3133
|
{
|
|
3134
|
+
/**
|
|
3135
|
+
* @private
|
|
3136
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3137
|
+
*/
|
|
3350
3138
|
readonly [uniffiTypeNameSymbol] = "WalletNotification";
|
|
3351
|
-
readonly
|
|
3352
|
-
readonly movement: Movement
|
|
3353
|
-
constructor(
|
|
3139
|
+
readonly tag = WalletNotification_Tags.MovementUpdated;
|
|
3140
|
+
readonly inner: Readonly<{ movement: Movement }>;
|
|
3141
|
+
constructor(inner: { movement: Movement }) {
|
|
3354
3142
|
super("WalletNotification", "MovementUpdated");
|
|
3355
|
-
this.
|
|
3143
|
+
this.inner = Object.freeze(inner);
|
|
3356
3144
|
}
|
|
3357
3145
|
|
|
3358
|
-
static new(
|
|
3359
|
-
return new MovementUpdated_(
|
|
3146
|
+
static new(inner: { movement: Movement }): MovementUpdated_ {
|
|
3147
|
+
return new MovementUpdated_(inner);
|
|
3360
3148
|
}
|
|
3361
3149
|
|
|
3362
3150
|
static instanceOf(obj: any): obj is MovementUpdated_ {
|
|
3363
|
-
return obj.
|
|
3151
|
+
return obj.tag === WalletNotification_Tags.MovementUpdated;
|
|
3364
3152
|
}
|
|
3365
3153
|
}
|
|
3366
3154
|
|
|
3367
3155
|
type ChannelLagging__interface = {
|
|
3368
|
-
|
|
3156
|
+
tag: WalletNotification_Tags.ChannelLagging;
|
|
3369
3157
|
};
|
|
3370
3158
|
|
|
3371
3159
|
/**
|
|
@@ -3375,8 +3163,12 @@ export const WalletNotification = (() => {
|
|
|
3375
3163
|
extends UniffiEnum
|
|
3376
3164
|
implements ChannelLagging__interface
|
|
3377
3165
|
{
|
|
3166
|
+
/**
|
|
3167
|
+
* @private
|
|
3168
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3169
|
+
*/
|
|
3378
3170
|
readonly [uniffiTypeNameSymbol] = "WalletNotification";
|
|
3379
|
-
readonly
|
|
3171
|
+
readonly tag = WalletNotification_Tags.ChannelLagging;
|
|
3380
3172
|
constructor() {
|
|
3381
3173
|
super("WalletNotification", "ChannelLagging");
|
|
3382
3174
|
}
|
|
@@ -3386,7 +3178,7 @@ export const WalletNotification = (() => {
|
|
|
3386
3178
|
}
|
|
3387
3179
|
|
|
3388
3180
|
static instanceOf(obj: any): obj is ChannelLagging_ {
|
|
3389
|
-
return obj.
|
|
3181
|
+
return obj.tag === WalletNotification_Tags.ChannelLagging;
|
|
3390
3182
|
}
|
|
3391
3183
|
}
|
|
3392
3184
|
|
|
@@ -3435,15 +3227,17 @@ const FfiConverterTypeWalletNotification = (() => {
|
|
|
3435
3227
|
}
|
|
3436
3228
|
}
|
|
3437
3229
|
write(value: TypeName, into: RustBuffer): void {
|
|
3438
|
-
switch (value.
|
|
3230
|
+
switch (value.tag) {
|
|
3439
3231
|
case WalletNotification_Tags.MovementCreated: {
|
|
3440
3232
|
ordinalConverter.write(1, into);
|
|
3441
|
-
|
|
3233
|
+
const inner = value.inner;
|
|
3234
|
+
FfiConverterTypeMovement.write(inner.movement, into);
|
|
3442
3235
|
return;
|
|
3443
3236
|
}
|
|
3444
3237
|
case WalletNotification_Tags.MovementUpdated: {
|
|
3445
3238
|
ordinalConverter.write(2, into);
|
|
3446
|
-
|
|
3239
|
+
const inner = value.inner;
|
|
3240
|
+
FfiConverterTypeMovement.write(inner.movement, into);
|
|
3447
3241
|
return;
|
|
3448
3242
|
}
|
|
3449
3243
|
case WalletNotification_Tags.ChannelLagging: {
|
|
@@ -3456,15 +3250,17 @@ const FfiConverterTypeWalletNotification = (() => {
|
|
|
3456
3250
|
}
|
|
3457
3251
|
}
|
|
3458
3252
|
allocationSize(value: TypeName): number {
|
|
3459
|
-
switch (value.
|
|
3253
|
+
switch (value.tag) {
|
|
3460
3254
|
case WalletNotification_Tags.MovementCreated: {
|
|
3255
|
+
const inner = value.inner;
|
|
3461
3256
|
let size = ordinalConverter.allocationSize(1);
|
|
3462
|
-
size += FfiConverterTypeMovement.allocationSize(
|
|
3257
|
+
size += FfiConverterTypeMovement.allocationSize(inner.movement);
|
|
3463
3258
|
return size;
|
|
3464
3259
|
}
|
|
3465
3260
|
case WalletNotification_Tags.MovementUpdated: {
|
|
3261
|
+
const inner = value.inner;
|
|
3466
3262
|
let size = ordinalConverter.allocationSize(2);
|
|
3467
|
-
size += FfiConverterTypeMovement.allocationSize(
|
|
3263
|
+
size += FfiConverterTypeMovement.allocationSize(inner.movement);
|
|
3468
3264
|
return size;
|
|
3469
3265
|
}
|
|
3470
3266
|
case WalletNotification_Tags.ChannelLagging: {
|
|
@@ -3488,7 +3284,7 @@ const FfiConverterTypeWalletNotification = (() => {
|
|
|
3488
3284
|
* Each call to `Wallet.notifications()` creates an independent stream backed
|
|
3489
3285
|
* by a new broadcast receiver. Only one consumer loop per holder is assumed.
|
|
3490
3286
|
*/
|
|
3491
|
-
export interface
|
|
3287
|
+
export interface NotificationHolderLike {
|
|
3492
3288
|
/**
|
|
3493
3289
|
* Cancel the currently pending `next_notification()` wait.
|
|
3494
3290
|
*
|
|
@@ -3514,6 +3310,10 @@ export interface NotificationHolderInterface {
|
|
|
3514
3310
|
signal: AbortSignal;
|
|
3515
3311
|
}): /*throws*/ Promise<WalletNotification | undefined>;
|
|
3516
3312
|
}
|
|
3313
|
+
/**
|
|
3314
|
+
* @deprecated Use `NotificationHolderLike` instead.
|
|
3315
|
+
*/
|
|
3316
|
+
export type NotificationHolderInterface = NotificationHolderLike;
|
|
3517
3317
|
|
|
3518
3318
|
/**
|
|
3519
3319
|
* Pull-based handle for consuming wallet notifications.
|
|
@@ -3527,7 +3327,7 @@ export interface NotificationHolderInterface {
|
|
|
3527
3327
|
*/
|
|
3528
3328
|
export class NotificationHolder
|
|
3529
3329
|
extends UniffiAbstractObject
|
|
3530
|
-
implements
|
|
3330
|
+
implements NotificationHolderLike
|
|
3531
3331
|
{
|
|
3532
3332
|
readonly [uniffiTypeNameSymbol] = "NotificationHolder";
|
|
3533
3333
|
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
@@ -3627,10 +3427,10 @@ export class NotificationHolder
|
|
|
3627
3427
|
}
|
|
3628
3428
|
}
|
|
3629
3429
|
|
|
3630
|
-
const uniffiTypeNotificationHolderObjectFactory: UniffiObjectFactory<
|
|
3430
|
+
const uniffiTypeNotificationHolderObjectFactory: UniffiObjectFactory<NotificationHolderLike> =
|
|
3631
3431
|
(() => {
|
|
3632
3432
|
return {
|
|
3633
|
-
create(pointer: UniffiHandle):
|
|
3433
|
+
create(pointer: UniffiHandle): NotificationHolderLike {
|
|
3634
3434
|
const instance = Object.create(NotificationHolder.prototype);
|
|
3635
3435
|
instance[pointerLiteralSymbol] = pointer;
|
|
3636
3436
|
instance[destructorGuardSymbol] = this.bless(pointer);
|
|
@@ -3653,14 +3453,14 @@ const uniffiTypeNotificationHolderObjectFactory: UniffiObjectFactory<Notificatio
|
|
|
3653
3453
|
ptr.markDestroyed();
|
|
3654
3454
|
},
|
|
3655
3455
|
|
|
3656
|
-
pointer(obj:
|
|
3456
|
+
pointer(obj: NotificationHolderLike): UniffiHandle {
|
|
3657
3457
|
if ((obj as any)[destructorGuardSymbol] === undefined) {
|
|
3658
3458
|
throw new UniffiInternalError.UnexpectedNullPointer();
|
|
3659
3459
|
}
|
|
3660
3460
|
return (obj as any)[pointerLiteralSymbol];
|
|
3661
3461
|
},
|
|
3662
3462
|
|
|
3663
|
-
clonePointer(obj:
|
|
3463
|
+
clonePointer(obj: NotificationHolderLike): UniffiHandle {
|
|
3664
3464
|
const pointer = this.pointer(obj);
|
|
3665
3465
|
return uniffiCaller.rustCall(
|
|
3666
3466
|
/*caller:*/ (callStatus) =>
|
|
@@ -3683,7 +3483,7 @@ const uniffiTypeNotificationHolderObjectFactory: UniffiObjectFactory<Notificatio
|
|
|
3683
3483
|
);
|
|
3684
3484
|
},
|
|
3685
3485
|
|
|
3686
|
-
isConcreteType(obj: any): obj is
|
|
3486
|
+
isConcreteType(obj: any): obj is NotificationHolderLike {
|
|
3687
3487
|
return (
|
|
3688
3488
|
obj[destructorGuardSymbol] &&
|
|
3689
3489
|
obj[uniffiTypeNameSymbol] === "NotificationHolder"
|
|
@@ -3691,7 +3491,7 @@ const uniffiTypeNotificationHolderObjectFactory: UniffiObjectFactory<Notificatio
|
|
|
3691
3491
|
},
|
|
3692
3492
|
};
|
|
3693
3493
|
})();
|
|
3694
|
-
// FfiConverter for
|
|
3494
|
+
// FfiConverter for NotificationHolderLike
|
|
3695
3495
|
const FfiConverterTypeNotificationHolder = new FfiConverterObject(
|
|
3696
3496
|
uniffiTypeNotificationHolderObjectFactory
|
|
3697
3497
|
);
|
|
@@ -3703,7 +3503,7 @@ const FfiConverterTypeNotificationHolder = new FfiConverterObject(
|
|
|
3703
3503
|
* - Default: BDK-based wallet (built-in)
|
|
3704
3504
|
* - Custom: Your own wallet implementation via callbacks
|
|
3705
3505
|
*/
|
|
3706
|
-
export interface
|
|
3506
|
+
export interface OnchainWalletLike {
|
|
3707
3507
|
/**
|
|
3708
3508
|
* Get the onchain wallet balance
|
|
3709
3509
|
*/
|
|
@@ -3732,6 +3532,10 @@ export interface OnchainWalletInterface {
|
|
|
3732
3532
|
signal: AbortSignal;
|
|
3733
3533
|
}): /*throws*/ Promise</*u64*/ bigint>;
|
|
3734
3534
|
}
|
|
3535
|
+
/**
|
|
3536
|
+
* @deprecated Use `OnchainWalletLike` instead.
|
|
3537
|
+
*/
|
|
3538
|
+
export type OnchainWalletInterface = OnchainWalletLike;
|
|
3735
3539
|
|
|
3736
3540
|
/**
|
|
3737
3541
|
* Onchain Bitcoin wallet for boarding and exits
|
|
@@ -3742,7 +3546,7 @@ export interface OnchainWalletInterface {
|
|
|
3742
3546
|
*/
|
|
3743
3547
|
export class OnchainWallet
|
|
3744
3548
|
extends UniffiAbstractObject
|
|
3745
|
-
implements
|
|
3549
|
+
implements OnchainWalletLike
|
|
3746
3550
|
{
|
|
3747
3551
|
readonly [uniffiTypeNameSymbol] = "OnchainWallet";
|
|
3748
3552
|
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
@@ -3764,7 +3568,7 @@ export class OnchainWallet
|
|
|
3764
3568
|
*/
|
|
3765
3569
|
static custom(
|
|
3766
3570
|
callbacks: CustomOnchainWalletCallbacks
|
|
3767
|
-
):
|
|
3571
|
+
): OnchainWalletLike /*throws*/ {
|
|
3768
3572
|
return FfiConverterTypeOnchainWallet.lift(
|
|
3769
3573
|
uniffiCaller.rustCallWithError(
|
|
3770
3574
|
/*liftError:*/ FfiConverterTypeBarkError.lift.bind(
|
|
@@ -3792,7 +3596,7 @@ export class OnchainWallet
|
|
|
3792
3596
|
config: Config,
|
|
3793
3597
|
datadir: string,
|
|
3794
3598
|
asyncOpts_?: { signal: AbortSignal }
|
|
3795
|
-
): Promise<
|
|
3599
|
+
): Promise<OnchainWalletLike> /*throws*/ {
|
|
3796
3600
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3797
3601
|
try {
|
|
3798
3602
|
return await uniffiRustCallAsync(
|
|
@@ -4003,10 +3807,10 @@ export class OnchainWallet
|
|
|
4003
3807
|
}
|
|
4004
3808
|
}
|
|
4005
3809
|
|
|
4006
|
-
const uniffiTypeOnchainWalletObjectFactory: UniffiObjectFactory<
|
|
3810
|
+
const uniffiTypeOnchainWalletObjectFactory: UniffiObjectFactory<OnchainWalletLike> =
|
|
4007
3811
|
(() => {
|
|
4008
3812
|
return {
|
|
4009
|
-
create(pointer: UniffiHandle):
|
|
3813
|
+
create(pointer: UniffiHandle): OnchainWalletLike {
|
|
4010
3814
|
const instance = Object.create(OnchainWallet.prototype);
|
|
4011
3815
|
instance[pointerLiteralSymbol] = pointer;
|
|
4012
3816
|
instance[destructorGuardSymbol] = this.bless(pointer);
|
|
@@ -4029,14 +3833,14 @@ const uniffiTypeOnchainWalletObjectFactory: UniffiObjectFactory<OnchainWalletInt
|
|
|
4029
3833
|
ptr.markDestroyed();
|
|
4030
3834
|
},
|
|
4031
3835
|
|
|
4032
|
-
pointer(obj:
|
|
3836
|
+
pointer(obj: OnchainWalletLike): UniffiHandle {
|
|
4033
3837
|
if ((obj as any)[destructorGuardSymbol] === undefined) {
|
|
4034
3838
|
throw new UniffiInternalError.UnexpectedNullPointer();
|
|
4035
3839
|
}
|
|
4036
3840
|
return (obj as any)[pointerLiteralSymbol];
|
|
4037
3841
|
},
|
|
4038
3842
|
|
|
4039
|
-
clonePointer(obj:
|
|
3843
|
+
clonePointer(obj: OnchainWalletLike): UniffiHandle {
|
|
4040
3844
|
const pointer = this.pointer(obj);
|
|
4041
3845
|
return uniffiCaller.rustCall(
|
|
4042
3846
|
/*caller:*/ (callStatus) =>
|
|
@@ -4059,7 +3863,7 @@ const uniffiTypeOnchainWalletObjectFactory: UniffiObjectFactory<OnchainWalletInt
|
|
|
4059
3863
|
);
|
|
4060
3864
|
},
|
|
4061
3865
|
|
|
4062
|
-
isConcreteType(obj: any): obj is
|
|
3866
|
+
isConcreteType(obj: any): obj is OnchainWalletLike {
|
|
4063
3867
|
return (
|
|
4064
3868
|
obj[destructorGuardSymbol] &&
|
|
4065
3869
|
obj[uniffiTypeNameSymbol] === "OnchainWallet"
|
|
@@ -4067,7 +3871,7 @@ const uniffiTypeOnchainWalletObjectFactory: UniffiObjectFactory<OnchainWalletInt
|
|
|
4067
3871
|
},
|
|
4068
3872
|
};
|
|
4069
3873
|
})();
|
|
4070
|
-
// FfiConverter for
|
|
3874
|
+
// FfiConverter for OnchainWalletLike
|
|
4071
3875
|
const FfiConverterTypeOnchainWallet = new FfiConverterObject(
|
|
4072
3876
|
uniffiTypeOnchainWalletObjectFactory
|
|
4073
3877
|
);
|
|
@@ -4075,7 +3879,7 @@ const FfiConverterTypeOnchainWallet = new FfiConverterObject(
|
|
|
4075
3879
|
/**
|
|
4076
3880
|
* The main Bark wallet interface for Ark operations
|
|
4077
3881
|
*/
|
|
4078
|
-
export interface
|
|
3882
|
+
export interface WalletLike {
|
|
4079
3883
|
/**
|
|
4080
3884
|
* Get earliest block height when all exits will be claimable
|
|
4081
3885
|
*
|
|
@@ -4099,14 +3903,14 @@ export interface WalletInterface {
|
|
|
4099
3903
|
* Board all funds from onchain wallet into Ark
|
|
4100
3904
|
*/
|
|
4101
3905
|
boardAll(
|
|
4102
|
-
onchainWallet:
|
|
3906
|
+
onchainWallet: OnchainWalletLike,
|
|
4103
3907
|
asyncOpts_?: { signal: AbortSignal }
|
|
4104
3908
|
): /*throws*/ Promise<PendingBoard>;
|
|
4105
3909
|
/**
|
|
4106
3910
|
* Board a specific amount from onchain wallet into Ark
|
|
4107
3911
|
*/
|
|
4108
3912
|
boardAmount(
|
|
4109
|
-
onchainWallet:
|
|
3913
|
+
onchainWallet: OnchainWalletLike,
|
|
4110
3914
|
amountSats: /*u64*/ bigint,
|
|
4111
3915
|
asyncOpts_?: { signal: AbortSignal }
|
|
4112
3916
|
): /*throws*/ Promise<PendingBoard>;
|
|
@@ -4136,6 +3940,20 @@ export interface WalletInterface {
|
|
|
4136
3940
|
cancelAllPendingRounds(asyncOpts_?: {
|
|
4137
3941
|
signal: AbortSignal;
|
|
4138
3942
|
}): /*throws*/ Promise<void>;
|
|
3943
|
+
/**
|
|
3944
|
+
* Cancel a pending lightning receive by payment hash
|
|
3945
|
+
*
|
|
3946
|
+
* Server will refuse if HTLCs already granted, preimage already revealed,
|
|
3947
|
+
* or receive already finished.
|
|
3948
|
+
*
|
|
3949
|
+
* # Arguments
|
|
3950
|
+
*
|
|
3951
|
+
* * `payment_hash` - Payment hash as hex string
|
|
3952
|
+
*/
|
|
3953
|
+
cancelLightningReceive(
|
|
3954
|
+
paymentHash: string,
|
|
3955
|
+
asyncOpts_?: { signal: AbortSignal }
|
|
3956
|
+
): /*throws*/ Promise<void>;
|
|
4139
3957
|
/**
|
|
4140
3958
|
* Cancel a specific pending round
|
|
4141
3959
|
*/
|
|
@@ -4442,14 +4260,14 @@ export interface WalletInterface {
|
|
|
4442
4260
|
* More thorough than maintenance() - also syncs onchain wallet and exits.
|
|
4443
4261
|
*/
|
|
4444
4262
|
maintenanceWithOnchain(
|
|
4445
|
-
onchainWallet:
|
|
4263
|
+
onchainWallet: OnchainWalletLike,
|
|
4446
4264
|
asyncOpts_?: { signal: AbortSignal }
|
|
4447
4265
|
): /*throws*/ Promise<void>;
|
|
4448
4266
|
/**
|
|
4449
4267
|
* Perform maintenance with onchain wallet in delegated mode
|
|
4450
4268
|
*/
|
|
4451
4269
|
maintenanceWithOnchainDelegated(
|
|
4452
|
-
onchainWallet:
|
|
4270
|
+
onchainWallet: OnchainWalletLike,
|
|
4453
4271
|
asyncOpts_?: { signal: AbortSignal }
|
|
4454
4272
|
): /*throws*/ Promise<void>;
|
|
4455
4273
|
/**
|
|
@@ -4485,7 +4303,7 @@ export interface WalletInterface {
|
|
|
4485
4303
|
* Call `cancel_next_notification_wait()` to unblock a pending wait without
|
|
4486
4304
|
* destroying the stream.
|
|
4487
4305
|
*/
|
|
4488
|
-
notifications():
|
|
4306
|
+
notifications(): NotificationHolderLike;
|
|
4489
4307
|
offboardAll(
|
|
4490
4308
|
bitcoinAddress: string,
|
|
4491
4309
|
asyncOpts_?: { signal: AbortSignal }
|
|
@@ -4596,7 +4414,7 @@ export interface WalletInterface {
|
|
|
4596
4414
|
* * `fee_rate_sat_per_vb` - Optional fee rate override in sats/vB
|
|
4597
4415
|
*/
|
|
4598
4416
|
progressExits(
|
|
4599
|
-
onchainWallet:
|
|
4417
|
+
onchainWallet: OnchainWalletLike,
|
|
4600
4418
|
feeRateSatPerVb: /*u64*/ bigint | undefined,
|
|
4601
4419
|
asyncOpts_?: { signal: AbortSignal }
|
|
4602
4420
|
): /*throws*/ Promise<Array<ExitProgressStatus>>;
|
|
@@ -4693,7 +4511,7 @@ export interface WalletInterface {
|
|
|
4693
4511
|
* Sync exit state (checks status but doesn't progress)
|
|
4694
4512
|
*/
|
|
4695
4513
|
syncExits(
|
|
4696
|
-
onchainWallet:
|
|
4514
|
+
onchainWallet: OnchainWalletLike,
|
|
4697
4515
|
asyncOpts_?: { signal: AbortSignal }
|
|
4698
4516
|
): /*throws*/ Promise<void>;
|
|
4699
4517
|
/**
|
|
@@ -4732,11 +4550,15 @@ export interface WalletInterface {
|
|
|
4732
4550
|
): /*throws*/ Promise<boolean>;
|
|
4733
4551
|
vtxos(asyncOpts_?: { signal: AbortSignal }): /*throws*/ Promise<Array<Vtxo>>;
|
|
4734
4552
|
}
|
|
4553
|
+
/**
|
|
4554
|
+
* @deprecated Use `WalletLike` instead.
|
|
4555
|
+
*/
|
|
4556
|
+
export type WalletInterface = WalletLike;
|
|
4735
4557
|
|
|
4736
4558
|
/**
|
|
4737
4559
|
* The main Bark wallet interface for Ark operations
|
|
4738
4560
|
*/
|
|
4739
|
-
export class Wallet extends UniffiAbstractObject implements
|
|
4561
|
+
export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
4740
4562
|
readonly [uniffiTypeNameSymbol] = "Wallet";
|
|
4741
4563
|
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
4742
4564
|
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
@@ -4756,7 +4578,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
|
|
|
4756
4578
|
datadir: string,
|
|
4757
4579
|
forceRescan: boolean,
|
|
4758
4580
|
asyncOpts_?: { signal: AbortSignal }
|
|
4759
|
-
): Promise<
|
|
4581
|
+
): Promise<WalletLike> /*throws*/ {
|
|
4760
4582
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4761
4583
|
try {
|
|
4762
4584
|
return await uniffiRustCallAsync(
|
|
@@ -4796,10 +4618,10 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
|
|
|
4796
4618
|
mnemonic: string,
|
|
4797
4619
|
config: Config,
|
|
4798
4620
|
datadir: string,
|
|
4799
|
-
onchainWallet:
|
|
4621
|
+
onchainWallet: OnchainWalletLike,
|
|
4800
4622
|
forceRescan: boolean,
|
|
4801
4623
|
asyncOpts_?: { signal: AbortSignal }
|
|
4802
|
-
): Promise<
|
|
4624
|
+
): Promise<WalletLike> /*throws*/ {
|
|
4803
4625
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4804
4626
|
try {
|
|
4805
4627
|
return await uniffiRustCallAsync(
|
|
@@ -4841,7 +4663,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
|
|
|
4841
4663
|
config: Config,
|
|
4842
4664
|
datadir: string,
|
|
4843
4665
|
asyncOpts_?: { signal: AbortSignal }
|
|
4844
|
-
): Promise<
|
|
4666
|
+
): Promise<WalletLike> /*throws*/ {
|
|
4845
4667
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4846
4668
|
try {
|
|
4847
4669
|
return await uniffiRustCallAsync(
|
|
@@ -4880,9 +4702,9 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
|
|
|
4880
4702
|
mnemonic: string,
|
|
4881
4703
|
config: Config,
|
|
4882
4704
|
datadir: string,
|
|
4883
|
-
onchainWallet:
|
|
4705
|
+
onchainWallet: OnchainWalletLike,
|
|
4884
4706
|
asyncOpts_?: { signal: AbortSignal }
|
|
4885
|
-
): Promise<
|
|
4707
|
+
): Promise<WalletLike> /*throws*/ {
|
|
4886
4708
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4887
4709
|
try {
|
|
4888
4710
|
return await uniffiRustCallAsync(
|
|
@@ -5075,7 +4897,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
|
|
|
5075
4897
|
* Board all funds from onchain wallet into Ark
|
|
5076
4898
|
*/
|
|
5077
4899
|
async boardAll(
|
|
5078
|
-
onchainWallet:
|
|
4900
|
+
onchainWallet: OnchainWalletLike,
|
|
5079
4901
|
asyncOpts_?: { signal: AbortSignal }
|
|
5080
4902
|
): Promise<PendingBoard> /*throws*/ {
|
|
5081
4903
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
@@ -5117,7 +4939,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
|
|
|
5117
4939
|
* Board a specific amount from onchain wallet into Ark
|
|
5118
4940
|
*/
|
|
5119
4941
|
async boardAmount(
|
|
5120
|
-
onchainWallet:
|
|
4942
|
+
onchainWallet: OnchainWalletLike,
|
|
5121
4943
|
amountSats: /*u64*/ bigint,
|
|
5122
4944
|
asyncOpts_?: { signal: AbortSignal }
|
|
5123
4945
|
): Promise<PendingBoard> /*throws*/ {
|
|
@@ -5281,6 +5103,51 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
|
|
|
5281
5103
|
}
|
|
5282
5104
|
}
|
|
5283
5105
|
|
|
5106
|
+
/**
|
|
5107
|
+
* Cancel a pending lightning receive by payment hash
|
|
5108
|
+
*
|
|
5109
|
+
* Server will refuse if HTLCs already granted, preimage already revealed,
|
|
5110
|
+
* or receive already finished.
|
|
5111
|
+
*
|
|
5112
|
+
* # Arguments
|
|
5113
|
+
*
|
|
5114
|
+
* * `payment_hash` - Payment hash as hex string
|
|
5115
|
+
*/
|
|
5116
|
+
async cancelLightningReceive(
|
|
5117
|
+
paymentHash: string,
|
|
5118
|
+
asyncOpts_?: { signal: AbortSignal }
|
|
5119
|
+
): Promise<void> /*throws*/ {
|
|
5120
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
5121
|
+
try {
|
|
5122
|
+
return await uniffiRustCallAsync(
|
|
5123
|
+
/*rustCaller:*/ uniffiCaller,
|
|
5124
|
+
/*rustFutureFunc:*/ () => {
|
|
5125
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_cancel_lightning_receive(
|
|
5126
|
+
uniffiTypeWalletObjectFactory.clonePointer(this),
|
|
5127
|
+
FfiConverterString.lower(paymentHash)
|
|
5128
|
+
);
|
|
5129
|
+
},
|
|
5130
|
+
/*pollFunc:*/ nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_void,
|
|
5131
|
+
/*cancelFunc:*/ nativeModule()
|
|
5132
|
+
.ubrn_ffi_bark_ffi_rust_future_cancel_void,
|
|
5133
|
+
/*completeFunc:*/ nativeModule()
|
|
5134
|
+
.ubrn_ffi_bark_ffi_rust_future_complete_void,
|
|
5135
|
+
/*freeFunc:*/ nativeModule().ubrn_ffi_bark_ffi_rust_future_free_void,
|
|
5136
|
+
/*liftFunc:*/ (_v) => {},
|
|
5137
|
+
/*liftString:*/ FfiConverterString.lift,
|
|
5138
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
5139
|
+
/*errorHandler:*/ FfiConverterTypeBarkError.lift.bind(
|
|
5140
|
+
FfiConverterTypeBarkError
|
|
5141
|
+
)
|
|
5142
|
+
);
|
|
5143
|
+
} catch (__error: any) {
|
|
5144
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
5145
|
+
__error.stack = __stack;
|
|
5146
|
+
}
|
|
5147
|
+
throw __error;
|
|
5148
|
+
}
|
|
5149
|
+
}
|
|
5150
|
+
|
|
5284
5151
|
/**
|
|
5285
5152
|
* Cancel a specific pending round
|
|
5286
5153
|
*/
|
|
@@ -6612,7 +6479,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
|
|
|
6612
6479
|
* More thorough than maintenance() - also syncs onchain wallet and exits.
|
|
6613
6480
|
*/
|
|
6614
6481
|
async maintenanceWithOnchain(
|
|
6615
|
-
onchainWallet:
|
|
6482
|
+
onchainWallet: OnchainWalletLike,
|
|
6616
6483
|
asyncOpts_?: { signal: AbortSignal }
|
|
6617
6484
|
): Promise<void> /*throws*/ {
|
|
6618
6485
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
@@ -6650,7 +6517,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
|
|
|
6650
6517
|
* Perform maintenance with onchain wallet in delegated mode
|
|
6651
6518
|
*/
|
|
6652
6519
|
async maintenanceWithOnchainDelegated(
|
|
6653
|
-
onchainWallet:
|
|
6520
|
+
onchainWallet: OnchainWalletLike,
|
|
6654
6521
|
asyncOpts_?: { signal: AbortSignal }
|
|
6655
6522
|
): Promise<void> /*throws*/ {
|
|
6656
6523
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
@@ -6884,7 +6751,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
|
|
|
6884
6751
|
* Call `cancel_next_notification_wait()` to unblock a pending wait without
|
|
6885
6752
|
* destroying the stream.
|
|
6886
6753
|
*/
|
|
6887
|
-
notifications():
|
|
6754
|
+
notifications(): NotificationHolderLike {
|
|
6888
6755
|
return FfiConverterTypeNotificationHolder.lift(
|
|
6889
6756
|
uniffiCaller.rustCall(
|
|
6890
6757
|
/*caller:*/ (callStatus) => {
|
|
@@ -7519,7 +7386,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
|
|
|
7519
7386
|
* * `fee_rate_sat_per_vb` - Optional fee rate override in sats/vB
|
|
7520
7387
|
*/
|
|
7521
7388
|
async progressExits(
|
|
7522
|
-
onchainWallet:
|
|
7389
|
+
onchainWallet: OnchainWalletLike,
|
|
7523
7390
|
feeRateSatPerVb: /*u64*/ bigint | undefined,
|
|
7524
7391
|
asyncOpts_?: { signal: AbortSignal }
|
|
7525
7392
|
): Promise<Array<ExitProgressStatus>> /*throws*/ {
|
|
@@ -8044,7 +7911,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
|
|
|
8044
7911
|
* Sync exit state (checks status but doesn't progress)
|
|
8045
7912
|
*/
|
|
8046
7913
|
async syncExits(
|
|
8047
|
-
onchainWallet:
|
|
7914
|
+
onchainWallet: OnchainWalletLike,
|
|
8048
7915
|
asyncOpts_?: { signal: AbortSignal }
|
|
8049
7916
|
): Promise<void> /*throws*/ {
|
|
8050
7917
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
@@ -8294,70 +8161,69 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
|
|
|
8294
8161
|
}
|
|
8295
8162
|
}
|
|
8296
8163
|
|
|
8297
|
-
const uniffiTypeWalletObjectFactory: UniffiObjectFactory<
|
|
8298
|
-
|
|
8299
|
-
|
|
8300
|
-
create(
|
|
8301
|
-
|
|
8302
|
-
|
|
8303
|
-
|
|
8304
|
-
|
|
8305
|
-
|
|
8306
|
-
},
|
|
8164
|
+
const uniffiTypeWalletObjectFactory: UniffiObjectFactory<WalletLike> = (() => {
|
|
8165
|
+
return {
|
|
8166
|
+
create(pointer: UniffiHandle): WalletLike {
|
|
8167
|
+
const instance = Object.create(Wallet.prototype);
|
|
8168
|
+
instance[pointerLiteralSymbol] = pointer;
|
|
8169
|
+
instance[destructorGuardSymbol] = this.bless(pointer);
|
|
8170
|
+
instance[uniffiTypeNameSymbol] = "Wallet";
|
|
8171
|
+
return instance;
|
|
8172
|
+
},
|
|
8307
8173
|
|
|
8308
|
-
|
|
8309
|
-
|
|
8310
|
-
|
|
8311
|
-
|
|
8312
|
-
|
|
8313
|
-
|
|
8314
|
-
|
|
8315
|
-
|
|
8316
|
-
|
|
8317
|
-
|
|
8174
|
+
bless(p: UniffiHandle): UniffiGcObject {
|
|
8175
|
+
return uniffiCaller.rustCall(
|
|
8176
|
+
/*caller:*/ (status) =>
|
|
8177
|
+
nativeModule().ubrn_uniffi_internal_fn_method_wallet_ffi__bless_pointer(
|
|
8178
|
+
p,
|
|
8179
|
+
status
|
|
8180
|
+
),
|
|
8181
|
+
/*liftString:*/ FfiConverterString.lift
|
|
8182
|
+
);
|
|
8183
|
+
},
|
|
8318
8184
|
|
|
8319
|
-
|
|
8320
|
-
|
|
8321
|
-
|
|
8185
|
+
unbless(ptr: UniffiGcObject) {
|
|
8186
|
+
ptr.markDestroyed();
|
|
8187
|
+
},
|
|
8322
8188
|
|
|
8323
|
-
|
|
8324
|
-
|
|
8325
|
-
|
|
8326
|
-
|
|
8327
|
-
|
|
8328
|
-
|
|
8189
|
+
pointer(obj: WalletLike): UniffiHandle {
|
|
8190
|
+
if ((obj as any)[destructorGuardSymbol] === undefined) {
|
|
8191
|
+
throw new UniffiInternalError.UnexpectedNullPointer();
|
|
8192
|
+
}
|
|
8193
|
+
return (obj as any)[pointerLiteralSymbol];
|
|
8194
|
+
},
|
|
8329
8195
|
|
|
8330
|
-
|
|
8331
|
-
|
|
8332
|
-
|
|
8333
|
-
|
|
8334
|
-
|
|
8335
|
-
|
|
8336
|
-
|
|
8337
|
-
|
|
8338
|
-
|
|
8339
|
-
|
|
8340
|
-
|
|
8196
|
+
clonePointer(obj: WalletLike): UniffiHandle {
|
|
8197
|
+
const pointer = this.pointer(obj);
|
|
8198
|
+
return uniffiCaller.rustCall(
|
|
8199
|
+
/*caller:*/ (callStatus) =>
|
|
8200
|
+
nativeModule().ubrn_uniffi_bark_ffi_fn_clone_wallet(
|
|
8201
|
+
pointer,
|
|
8202
|
+
callStatus
|
|
8203
|
+
),
|
|
8204
|
+
/*liftString:*/ FfiConverterString.lift
|
|
8205
|
+
);
|
|
8206
|
+
},
|
|
8341
8207
|
|
|
8342
|
-
|
|
8343
|
-
|
|
8344
|
-
|
|
8345
|
-
|
|
8346
|
-
|
|
8347
|
-
|
|
8348
|
-
|
|
8349
|
-
|
|
8350
|
-
|
|
8351
|
-
|
|
8208
|
+
freePointer(pointer: UniffiHandle): void {
|
|
8209
|
+
uniffiCaller.rustCall(
|
|
8210
|
+
/*caller:*/ (callStatus) =>
|
|
8211
|
+
nativeModule().ubrn_uniffi_bark_ffi_fn_free_wallet(
|
|
8212
|
+
pointer,
|
|
8213
|
+
callStatus
|
|
8214
|
+
),
|
|
8215
|
+
/*liftString:*/ FfiConverterString.lift
|
|
8216
|
+
);
|
|
8217
|
+
},
|
|
8352
8218
|
|
|
8353
|
-
|
|
8354
|
-
|
|
8355
|
-
|
|
8356
|
-
|
|
8357
|
-
|
|
8358
|
-
|
|
8359
|
-
|
|
8360
|
-
// FfiConverter for
|
|
8219
|
+
isConcreteType(obj: any): obj is WalletLike {
|
|
8220
|
+
return (
|
|
8221
|
+
obj[destructorGuardSymbol] && obj[uniffiTypeNameSymbol] === "Wallet"
|
|
8222
|
+
);
|
|
8223
|
+
},
|
|
8224
|
+
};
|
|
8225
|
+
})();
|
|
8226
|
+
// FfiConverter for WalletLike
|
|
8361
8227
|
const FfiConverterTypeWallet = new FfiConverterObject(
|
|
8362
8228
|
uniffiTypeWalletObjectFactory
|
|
8363
8229
|
);
|
|
@@ -8511,7 +8377,7 @@ function uniffiEnsureInitialized() {
|
|
|
8511
8377
|
}
|
|
8512
8378
|
if (
|
|
8513
8379
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_notificationholder_cancel_next_notification_wait() !==
|
|
8514
|
-
|
|
8380
|
+
6047
|
|
8515
8381
|
) {
|
|
8516
8382
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8517
8383
|
"uniffi_bark_ffi_checksum_method_notificationholder_cancel_next_notification_wait"
|
|
@@ -8519,7 +8385,7 @@ function uniffiEnsureInitialized() {
|
|
|
8519
8385
|
}
|
|
8520
8386
|
if (
|
|
8521
8387
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_notificationholder_next_notification() !==
|
|
8522
|
-
|
|
8388
|
+
33597
|
|
8523
8389
|
) {
|
|
8524
8390
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8525
8391
|
"uniffi_bark_ffi_checksum_method_notificationholder_next_notification"
|
|
@@ -8527,7 +8393,7 @@ function uniffiEnsureInitialized() {
|
|
|
8527
8393
|
}
|
|
8528
8394
|
if (
|
|
8529
8395
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_balance() !==
|
|
8530
|
-
|
|
8396
|
+
56626
|
|
8531
8397
|
) {
|
|
8532
8398
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8533
8399
|
"uniffi_bark_ffi_checksum_method_onchainwallet_balance"
|
|
@@ -8535,7 +8401,7 @@ function uniffiEnsureInitialized() {
|
|
|
8535
8401
|
}
|
|
8536
8402
|
if (
|
|
8537
8403
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_new_address() !==
|
|
8538
|
-
|
|
8404
|
+
54598
|
|
8539
8405
|
) {
|
|
8540
8406
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8541
8407
|
"uniffi_bark_ffi_checksum_method_onchainwallet_new_address"
|
|
@@ -8543,7 +8409,7 @@ function uniffiEnsureInitialized() {
|
|
|
8543
8409
|
}
|
|
8544
8410
|
if (
|
|
8545
8411
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_send() !==
|
|
8546
|
-
|
|
8412
|
+
27783
|
|
8547
8413
|
) {
|
|
8548
8414
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8549
8415
|
"uniffi_bark_ffi_checksum_method_onchainwallet_send"
|
|
@@ -8551,7 +8417,7 @@ function uniffiEnsureInitialized() {
|
|
|
8551
8417
|
}
|
|
8552
8418
|
if (
|
|
8553
8419
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_sync() !==
|
|
8554
|
-
|
|
8420
|
+
9607
|
|
8555
8421
|
) {
|
|
8556
8422
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8557
8423
|
"uniffi_bark_ffi_checksum_method_onchainwallet_sync"
|
|
@@ -8559,7 +8425,7 @@ function uniffiEnsureInitialized() {
|
|
|
8559
8425
|
}
|
|
8560
8426
|
if (
|
|
8561
8427
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_all_exits_claimable_at_height() !==
|
|
8562
|
-
|
|
8428
|
+
41888
|
|
8563
8429
|
) {
|
|
8564
8430
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8565
8431
|
"uniffi_bark_ffi_checksum_method_wallet_all_exits_claimable_at_height"
|
|
@@ -8567,7 +8433,7 @@ function uniffiEnsureInitialized() {
|
|
|
8567
8433
|
}
|
|
8568
8434
|
if (
|
|
8569
8435
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_all_vtxos() !==
|
|
8570
|
-
|
|
8436
|
+
41609
|
|
8571
8437
|
) {
|
|
8572
8438
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8573
8439
|
"uniffi_bark_ffi_checksum_method_wallet_all_vtxos"
|
|
@@ -8575,7 +8441,7 @@ function uniffiEnsureInitialized() {
|
|
|
8575
8441
|
}
|
|
8576
8442
|
if (
|
|
8577
8443
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_ark_info() !==
|
|
8578
|
-
|
|
8444
|
+
47096
|
|
8579
8445
|
) {
|
|
8580
8446
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8581
8447
|
"uniffi_bark_ffi_checksum_method_wallet_ark_info"
|
|
@@ -8583,7 +8449,7 @@ function uniffiEnsureInitialized() {
|
|
|
8583
8449
|
}
|
|
8584
8450
|
if (
|
|
8585
8451
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_balance() !==
|
|
8586
|
-
|
|
8452
|
+
53107
|
|
8587
8453
|
) {
|
|
8588
8454
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8589
8455
|
"uniffi_bark_ffi_checksum_method_wallet_balance"
|
|
@@ -8591,7 +8457,7 @@ function uniffiEnsureInitialized() {
|
|
|
8591
8457
|
}
|
|
8592
8458
|
if (
|
|
8593
8459
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_all() !==
|
|
8594
|
-
|
|
8460
|
+
6211
|
|
8595
8461
|
) {
|
|
8596
8462
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8597
8463
|
"uniffi_bark_ffi_checksum_method_wallet_board_all"
|
|
@@ -8599,7 +8465,7 @@ function uniffiEnsureInitialized() {
|
|
|
8599
8465
|
}
|
|
8600
8466
|
if (
|
|
8601
8467
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_amount() !==
|
|
8602
|
-
|
|
8468
|
+
57213
|
|
8603
8469
|
) {
|
|
8604
8470
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8605
8471
|
"uniffi_bark_ffi_checksum_method_wallet_board_amount"
|
|
@@ -8607,7 +8473,7 @@ function uniffiEnsureInitialized() {
|
|
|
8607
8473
|
}
|
|
8608
8474
|
if (
|
|
8609
8475
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice() !==
|
|
8610
|
-
|
|
8476
|
+
8901
|
|
8611
8477
|
) {
|
|
8612
8478
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8613
8479
|
"uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice"
|
|
@@ -8615,7 +8481,7 @@ function uniffiEnsureInitialized() {
|
|
|
8615
8481
|
}
|
|
8616
8482
|
if (
|
|
8617
8483
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_broadcast_tx() !==
|
|
8618
|
-
|
|
8484
|
+
10756
|
|
8619
8485
|
) {
|
|
8620
8486
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8621
8487
|
"uniffi_bark_ffi_checksum_method_wallet_broadcast_tx"
|
|
@@ -8623,15 +8489,23 @@ function uniffiEnsureInitialized() {
|
|
|
8623
8489
|
}
|
|
8624
8490
|
if (
|
|
8625
8491
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_all_pending_rounds() !==
|
|
8626
|
-
|
|
8492
|
+
48474
|
|
8627
8493
|
) {
|
|
8628
8494
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8629
8495
|
"uniffi_bark_ffi_checksum_method_wallet_cancel_all_pending_rounds"
|
|
8630
8496
|
);
|
|
8631
8497
|
}
|
|
8498
|
+
if (
|
|
8499
|
+
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_lightning_receive() !==
|
|
8500
|
+
45189
|
|
8501
|
+
) {
|
|
8502
|
+
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8503
|
+
"uniffi_bark_ffi_checksum_method_wallet_cancel_lightning_receive"
|
|
8504
|
+
);
|
|
8505
|
+
}
|
|
8632
8506
|
if (
|
|
8633
8507
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_pending_round() !==
|
|
8634
|
-
|
|
8508
|
+
63049
|
|
8635
8509
|
) {
|
|
8636
8510
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8637
8511
|
"uniffi_bark_ffi_checksum_method_wallet_cancel_pending_round"
|
|
@@ -8639,7 +8513,7 @@ function uniffiEnsureInitialized() {
|
|
|
8639
8513
|
}
|
|
8640
8514
|
if (
|
|
8641
8515
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_check_lightning_payment() !==
|
|
8642
|
-
|
|
8516
|
+
22806
|
|
8643
8517
|
) {
|
|
8644
8518
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8645
8519
|
"uniffi_bark_ffi_checksum_method_wallet_check_lightning_payment"
|
|
@@ -8647,7 +8521,7 @@ function uniffiEnsureInitialized() {
|
|
|
8647
8521
|
}
|
|
8648
8522
|
if (
|
|
8649
8523
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_claimable_lightning_receive_balance_sats() !==
|
|
8650
|
-
|
|
8524
|
+
13170
|
|
8651
8525
|
) {
|
|
8652
8526
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8653
8527
|
"uniffi_bark_ffi_checksum_method_wallet_claimable_lightning_receive_balance_sats"
|
|
@@ -8655,7 +8529,7 @@ function uniffiEnsureInitialized() {
|
|
|
8655
8529
|
}
|
|
8656
8530
|
if (
|
|
8657
8531
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_config() !==
|
|
8658
|
-
|
|
8532
|
+
52641
|
|
8659
8533
|
) {
|
|
8660
8534
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8661
8535
|
"uniffi_bark_ffi_checksum_method_wallet_config"
|
|
@@ -8663,7 +8537,7 @@ function uniffiEnsureInitialized() {
|
|
|
8663
8537
|
}
|
|
8664
8538
|
if (
|
|
8665
8539
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_drain_exits() !==
|
|
8666
|
-
|
|
8540
|
+
24496
|
|
8667
8541
|
) {
|
|
8668
8542
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8669
8543
|
"uniffi_bark_ffi_checksum_method_wallet_drain_exits"
|
|
@@ -8671,7 +8545,7 @@ function uniffiEnsureInitialized() {
|
|
|
8671
8545
|
}
|
|
8672
8546
|
if (
|
|
8673
8547
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_arkoor_payment_fee() !==
|
|
8674
|
-
|
|
8548
|
+
5843
|
|
8675
8549
|
) {
|
|
8676
8550
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8677
8551
|
"uniffi_bark_ffi_checksum_method_wallet_estimate_arkoor_payment_fee"
|
|
@@ -8679,7 +8553,7 @@ function uniffiEnsureInitialized() {
|
|
|
8679
8553
|
}
|
|
8680
8554
|
if (
|
|
8681
8555
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee() !==
|
|
8682
|
-
|
|
8556
|
+
17847
|
|
8683
8557
|
) {
|
|
8684
8558
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8685
8559
|
"uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee"
|
|
@@ -8687,7 +8561,7 @@ function uniffiEnsureInitialized() {
|
|
|
8687
8561
|
}
|
|
8688
8562
|
if (
|
|
8689
8563
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee() !==
|
|
8690
|
-
|
|
8564
|
+
45860
|
|
8691
8565
|
) {
|
|
8692
8566
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8693
8567
|
"uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee"
|
|
@@ -8695,7 +8569,7 @@ function uniffiEnsureInitialized() {
|
|
|
8695
8569
|
}
|
|
8696
8570
|
if (
|
|
8697
8571
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_send_fee() !==
|
|
8698
|
-
|
|
8572
|
+
18556
|
|
8699
8573
|
) {
|
|
8700
8574
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8701
8575
|
"uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_send_fee"
|
|
@@ -8703,7 +8577,7 @@ function uniffiEnsureInitialized() {
|
|
|
8703
8577
|
}
|
|
8704
8578
|
if (
|
|
8705
8579
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_all_fee() !==
|
|
8706
|
-
|
|
8580
|
+
26906
|
|
8707
8581
|
) {
|
|
8708
8582
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8709
8583
|
"uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_all_fee"
|
|
@@ -8711,7 +8585,7 @@ function uniffiEnsureInitialized() {
|
|
|
8711
8585
|
}
|
|
8712
8586
|
if (
|
|
8713
8587
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_fee() !==
|
|
8714
|
-
|
|
8588
|
+
3254
|
|
8715
8589
|
) {
|
|
8716
8590
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8717
8591
|
"uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_fee"
|
|
@@ -8719,7 +8593,7 @@ function uniffiEnsureInitialized() {
|
|
|
8719
8593
|
}
|
|
8720
8594
|
if (
|
|
8721
8595
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_refresh_fee() !==
|
|
8722
|
-
|
|
8596
|
+
47327
|
|
8723
8597
|
) {
|
|
8724
8598
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8725
8599
|
"uniffi_bark_ffi_checksum_method_wallet_estimate_refresh_fee"
|
|
@@ -8727,7 +8601,7 @@ function uniffiEnsureInitialized() {
|
|
|
8727
8601
|
}
|
|
8728
8602
|
if (
|
|
8729
8603
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_send_onchain_fee() !==
|
|
8730
|
-
|
|
8604
|
+
61285
|
|
8731
8605
|
) {
|
|
8732
8606
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8733
8607
|
"uniffi_bark_ffi_checksum_method_wallet_estimate_send_onchain_fee"
|
|
@@ -8735,7 +8609,7 @@ function uniffiEnsureInitialized() {
|
|
|
8735
8609
|
}
|
|
8736
8610
|
if (
|
|
8737
8611
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_fingerprint() !==
|
|
8738
|
-
|
|
8612
|
+
59618
|
|
8739
8613
|
) {
|
|
8740
8614
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8741
8615
|
"uniffi_bark_ffi_checksum_method_wallet_fingerprint"
|
|
@@ -8743,7 +8617,7 @@ function uniffiEnsureInitialized() {
|
|
|
8743
8617
|
}
|
|
8744
8618
|
if (
|
|
8745
8619
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_exit_status() !==
|
|
8746
|
-
|
|
8620
|
+
45568
|
|
8747
8621
|
) {
|
|
8748
8622
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8749
8623
|
"uniffi_bark_ffi_checksum_method_wallet_get_exit_status"
|
|
@@ -8751,7 +8625,7 @@ function uniffiEnsureInitialized() {
|
|
|
8751
8625
|
}
|
|
8752
8626
|
if (
|
|
8753
8627
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_exit_vtxos() !==
|
|
8754
|
-
|
|
8628
|
+
49255
|
|
8755
8629
|
) {
|
|
8756
8630
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8757
8631
|
"uniffi_bark_ffi_checksum_method_wallet_get_exit_vtxos"
|
|
@@ -8759,7 +8633,7 @@ function uniffiEnsureInitialized() {
|
|
|
8759
8633
|
}
|
|
8760
8634
|
if (
|
|
8761
8635
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_expiring_vtxos() !==
|
|
8762
|
-
|
|
8636
|
+
30365
|
|
8763
8637
|
) {
|
|
8764
8638
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8765
8639
|
"uniffi_bark_ffi_checksum_method_wallet_get_expiring_vtxos"
|
|
@@ -8767,7 +8641,7 @@ function uniffiEnsureInitialized() {
|
|
|
8767
8641
|
}
|
|
8768
8642
|
if (
|
|
8769
8643
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_first_expiring_vtxo_blockheight() !==
|
|
8770
|
-
|
|
8644
|
+
17196
|
|
8771
8645
|
) {
|
|
8772
8646
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8773
8647
|
"uniffi_bark_ffi_checksum_method_wallet_get_first_expiring_vtxo_blockheight"
|
|
@@ -8775,7 +8649,7 @@ function uniffiEnsureInitialized() {
|
|
|
8775
8649
|
}
|
|
8776
8650
|
if (
|
|
8777
8651
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_next_required_refresh_blockheight() !==
|
|
8778
|
-
|
|
8652
|
+
37879
|
|
8779
8653
|
) {
|
|
8780
8654
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8781
8655
|
"uniffi_bark_ffi_checksum_method_wallet_get_next_required_refresh_blockheight"
|
|
@@ -8783,7 +8657,7 @@ function uniffiEnsureInitialized() {
|
|
|
8783
8657
|
}
|
|
8784
8658
|
if (
|
|
8785
8659
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_vtxo_by_id() !==
|
|
8786
|
-
|
|
8660
|
+
35493
|
|
8787
8661
|
) {
|
|
8788
8662
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8789
8663
|
"uniffi_bark_ffi_checksum_method_wallet_get_vtxo_by_id"
|
|
@@ -8791,7 +8665,7 @@ function uniffiEnsureInitialized() {
|
|
|
8791
8665
|
}
|
|
8792
8666
|
if (
|
|
8793
8667
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_vtxos_to_refresh() !==
|
|
8794
|
-
|
|
8668
|
+
42602
|
|
8795
8669
|
) {
|
|
8796
8670
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8797
8671
|
"uniffi_bark_ffi_checksum_method_wallet_get_vtxos_to_refresh"
|
|
@@ -8799,7 +8673,7 @@ function uniffiEnsureInitialized() {
|
|
|
8799
8673
|
}
|
|
8800
8674
|
if (
|
|
8801
8675
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_has_pending_exits() !==
|
|
8802
|
-
|
|
8676
|
+
46353
|
|
8803
8677
|
) {
|
|
8804
8678
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8805
8679
|
"uniffi_bark_ffi_checksum_method_wallet_has_pending_exits"
|
|
@@ -8807,7 +8681,7 @@ function uniffiEnsureInitialized() {
|
|
|
8807
8681
|
}
|
|
8808
8682
|
if (
|
|
8809
8683
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_history() !==
|
|
8810
|
-
|
|
8684
|
+
39257
|
|
8811
8685
|
) {
|
|
8812
8686
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8813
8687
|
"uniffi_bark_ffi_checksum_method_wallet_history"
|
|
@@ -8815,7 +8689,7 @@ function uniffiEnsureInitialized() {
|
|
|
8815
8689
|
}
|
|
8816
8690
|
if (
|
|
8817
8691
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_history_by_payment_method() !==
|
|
8818
|
-
|
|
8692
|
+
53117
|
|
8819
8693
|
) {
|
|
8820
8694
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8821
8695
|
"uniffi_bark_ffi_checksum_method_wallet_history_by_payment_method"
|
|
@@ -8823,7 +8697,7 @@ function uniffiEnsureInitialized() {
|
|
|
8823
8697
|
}
|
|
8824
8698
|
if (
|
|
8825
8699
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_import_vtxo() !==
|
|
8826
|
-
|
|
8700
|
+
49309
|
|
8827
8701
|
) {
|
|
8828
8702
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8829
8703
|
"uniffi_bark_ffi_checksum_method_wallet_import_vtxo"
|
|
@@ -8831,7 +8705,7 @@ function uniffiEnsureInitialized() {
|
|
|
8831
8705
|
}
|
|
8832
8706
|
if (
|
|
8833
8707
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status() !==
|
|
8834
|
-
|
|
8708
|
+
8110
|
|
8835
8709
|
) {
|
|
8836
8710
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8837
8711
|
"uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status"
|
|
@@ -8839,7 +8713,7 @@ function uniffiEnsureInitialized() {
|
|
|
8839
8713
|
}
|
|
8840
8714
|
if (
|
|
8841
8715
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits() !==
|
|
8842
|
-
|
|
8716
|
+
28301
|
|
8843
8717
|
) {
|
|
8844
8718
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8845
8719
|
"uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits"
|
|
@@ -8847,7 +8721,7 @@ function uniffiEnsureInitialized() {
|
|
|
8847
8721
|
}
|
|
8848
8722
|
if (
|
|
8849
8723
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_mailbox_authorization() !==
|
|
8850
|
-
|
|
8724
|
+
29750
|
|
8851
8725
|
) {
|
|
8852
8726
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8853
8727
|
"uniffi_bark_ffi_checksum_method_wallet_mailbox_authorization"
|
|
@@ -8855,7 +8729,7 @@ function uniffiEnsureInitialized() {
|
|
|
8855
8729
|
}
|
|
8856
8730
|
if (
|
|
8857
8731
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_mailbox_identifier() !==
|
|
8858
|
-
|
|
8732
|
+
36484
|
|
8859
8733
|
) {
|
|
8860
8734
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8861
8735
|
"uniffi_bark_ffi_checksum_method_wallet_mailbox_identifier"
|
|
@@ -8863,7 +8737,7 @@ function uniffiEnsureInitialized() {
|
|
|
8863
8737
|
}
|
|
8864
8738
|
if (
|
|
8865
8739
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance() !==
|
|
8866
|
-
|
|
8740
|
+
7229
|
|
8867
8741
|
) {
|
|
8868
8742
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8869
8743
|
"uniffi_bark_ffi_checksum_method_wallet_maintenance"
|
|
@@ -8871,7 +8745,7 @@ function uniffiEnsureInitialized() {
|
|
|
8871
8745
|
}
|
|
8872
8746
|
if (
|
|
8873
8747
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_delegated() !==
|
|
8874
|
-
|
|
8748
|
+
33231
|
|
8875
8749
|
) {
|
|
8876
8750
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8877
8751
|
"uniffi_bark_ffi_checksum_method_wallet_maintenance_delegated"
|
|
@@ -8879,7 +8753,7 @@ function uniffiEnsureInitialized() {
|
|
|
8879
8753
|
}
|
|
8880
8754
|
if (
|
|
8881
8755
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_refresh() !==
|
|
8882
|
-
|
|
8756
|
+
41843
|
|
8883
8757
|
) {
|
|
8884
8758
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8885
8759
|
"uniffi_bark_ffi_checksum_method_wallet_maintenance_refresh"
|
|
@@ -8887,7 +8761,7 @@ function uniffiEnsureInitialized() {
|
|
|
8887
8761
|
}
|
|
8888
8762
|
if (
|
|
8889
8763
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain() !==
|
|
8890
|
-
|
|
8764
|
+
64685
|
|
8891
8765
|
) {
|
|
8892
8766
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8893
8767
|
"uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain"
|
|
@@ -8895,7 +8769,7 @@ function uniffiEnsureInitialized() {
|
|
|
8895
8769
|
}
|
|
8896
8770
|
if (
|
|
8897
8771
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain_delegated() !==
|
|
8898
|
-
|
|
8772
|
+
4380
|
|
8899
8773
|
) {
|
|
8900
8774
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8901
8775
|
"uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain_delegated"
|
|
@@ -8903,7 +8777,7 @@ function uniffiEnsureInitialized() {
|
|
|
8903
8777
|
}
|
|
8904
8778
|
if (
|
|
8905
8779
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maybe_schedule_maintenance_refresh() !==
|
|
8906
|
-
|
|
8780
|
+
26561
|
|
8907
8781
|
) {
|
|
8908
8782
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8909
8783
|
"uniffi_bark_ffi_checksum_method_wallet_maybe_schedule_maintenance_refresh"
|
|
@@ -8911,7 +8785,7 @@ function uniffiEnsureInitialized() {
|
|
|
8911
8785
|
}
|
|
8912
8786
|
if (
|
|
8913
8787
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_network() !==
|
|
8914
|
-
|
|
8788
|
+
62844
|
|
8915
8789
|
) {
|
|
8916
8790
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8917
8791
|
"uniffi_bark_ffi_checksum_method_wallet_network"
|
|
@@ -8919,7 +8793,7 @@ function uniffiEnsureInitialized() {
|
|
|
8919
8793
|
}
|
|
8920
8794
|
if (
|
|
8921
8795
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_new_address() !==
|
|
8922
|
-
|
|
8796
|
+
52843
|
|
8923
8797
|
) {
|
|
8924
8798
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8925
8799
|
"uniffi_bark_ffi_checksum_method_wallet_new_address"
|
|
@@ -8927,7 +8801,7 @@ function uniffiEnsureInitialized() {
|
|
|
8927
8801
|
}
|
|
8928
8802
|
if (
|
|
8929
8803
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_new_address_with_index() !==
|
|
8930
|
-
|
|
8804
|
+
42716
|
|
8931
8805
|
) {
|
|
8932
8806
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8933
8807
|
"uniffi_bark_ffi_checksum_method_wallet_new_address_with_index"
|
|
@@ -8935,7 +8809,7 @@ function uniffiEnsureInitialized() {
|
|
|
8935
8809
|
}
|
|
8936
8810
|
if (
|
|
8937
8811
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_next_round_start_time() !==
|
|
8938
|
-
|
|
8812
|
+
59834
|
|
8939
8813
|
) {
|
|
8940
8814
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8941
8815
|
"uniffi_bark_ffi_checksum_method_wallet_next_round_start_time"
|
|
@@ -8943,7 +8817,7 @@ function uniffiEnsureInitialized() {
|
|
|
8943
8817
|
}
|
|
8944
8818
|
if (
|
|
8945
8819
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_notifications() !==
|
|
8946
|
-
|
|
8820
|
+
2291
|
|
8947
8821
|
) {
|
|
8948
8822
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8949
8823
|
"uniffi_bark_ffi_checksum_method_wallet_notifications"
|
|
@@ -8951,7 +8825,7 @@ function uniffiEnsureInitialized() {
|
|
|
8951
8825
|
}
|
|
8952
8826
|
if (
|
|
8953
8827
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_all() !==
|
|
8954
|
-
|
|
8828
|
+
16535
|
|
8955
8829
|
) {
|
|
8956
8830
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8957
8831
|
"uniffi_bark_ffi_checksum_method_wallet_offboard_all"
|
|
@@ -8959,7 +8833,7 @@ function uniffiEnsureInitialized() {
|
|
|
8959
8833
|
}
|
|
8960
8834
|
if (
|
|
8961
8835
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_vtxos() !==
|
|
8962
|
-
|
|
8836
|
+
13685
|
|
8963
8837
|
) {
|
|
8964
8838
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8965
8839
|
"uniffi_bark_ffi_checksum_method_wallet_offboard_vtxos"
|
|
@@ -8967,7 +8841,7 @@ function uniffiEnsureInitialized() {
|
|
|
8967
8841
|
}
|
|
8968
8842
|
if (
|
|
8969
8843
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_address() !==
|
|
8970
|
-
|
|
8844
|
+
61803
|
|
8971
8845
|
) {
|
|
8972
8846
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8973
8847
|
"uniffi_bark_ffi_checksum_method_wallet_pay_lightning_address"
|
|
@@ -8975,7 +8849,7 @@ function uniffiEnsureInitialized() {
|
|
|
8975
8849
|
}
|
|
8976
8850
|
if (
|
|
8977
8851
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_invoice() !==
|
|
8978
|
-
|
|
8852
|
+
52071
|
|
8979
8853
|
) {
|
|
8980
8854
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8981
8855
|
"uniffi_bark_ffi_checksum_method_wallet_pay_lightning_invoice"
|
|
@@ -8983,7 +8857,7 @@ function uniffiEnsureInitialized() {
|
|
|
8983
8857
|
}
|
|
8984
8858
|
if (
|
|
8985
8859
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer() !==
|
|
8986
|
-
|
|
8860
|
+
53647
|
|
8987
8861
|
) {
|
|
8988
8862
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8989
8863
|
"uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer"
|
|
@@ -8991,7 +8865,7 @@ function uniffiEnsureInitialized() {
|
|
|
8991
8865
|
}
|
|
8992
8866
|
if (
|
|
8993
8867
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_peak_address() !==
|
|
8994
|
-
|
|
8868
|
+
7833
|
|
8995
8869
|
) {
|
|
8996
8870
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8997
8871
|
"uniffi_bark_ffi_checksum_method_wallet_peak_address"
|
|
@@ -8999,7 +8873,7 @@ function uniffiEnsureInitialized() {
|
|
|
8999
8873
|
}
|
|
9000
8874
|
if (
|
|
9001
8875
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_peek_address() !==
|
|
9002
|
-
|
|
8876
|
+
6861
|
|
9003
8877
|
) {
|
|
9004
8878
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9005
8879
|
"uniffi_bark_ffi_checksum_method_wallet_peek_address"
|
|
@@ -9007,7 +8881,7 @@ function uniffiEnsureInitialized() {
|
|
|
9007
8881
|
}
|
|
9008
8882
|
if (
|
|
9009
8883
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_board_vtxos() !==
|
|
9010
|
-
|
|
8884
|
+
7372
|
|
9011
8885
|
) {
|
|
9012
8886
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9013
8887
|
"uniffi_bark_ffi_checksum_method_wallet_pending_board_vtxos"
|
|
@@ -9015,7 +8889,7 @@ function uniffiEnsureInitialized() {
|
|
|
9015
8889
|
}
|
|
9016
8890
|
if (
|
|
9017
8891
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_boards() !==
|
|
9018
|
-
|
|
8892
|
+
2627
|
|
9019
8893
|
) {
|
|
9020
8894
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9021
8895
|
"uniffi_bark_ffi_checksum_method_wallet_pending_boards"
|
|
@@ -9023,7 +8897,7 @@ function uniffiEnsureInitialized() {
|
|
|
9023
8897
|
}
|
|
9024
8898
|
if (
|
|
9025
8899
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_exits_total_sats() !==
|
|
9026
|
-
|
|
8900
|
+
11288
|
|
9027
8901
|
) {
|
|
9028
8902
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9029
8903
|
"uniffi_bark_ffi_checksum_method_wallet_pending_exits_total_sats"
|
|
@@ -9031,7 +8905,7 @@ function uniffiEnsureInitialized() {
|
|
|
9031
8905
|
}
|
|
9032
8906
|
if (
|
|
9033
8907
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_receives() !==
|
|
9034
|
-
|
|
8908
|
+
36627
|
|
9035
8909
|
) {
|
|
9036
8910
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9037
8911
|
"uniffi_bark_ffi_checksum_method_wallet_pending_lightning_receives"
|
|
@@ -9039,7 +8913,7 @@ function uniffiEnsureInitialized() {
|
|
|
9039
8913
|
}
|
|
9040
8914
|
if (
|
|
9041
8915
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_send_vtxos() !==
|
|
9042
|
-
|
|
8916
|
+
2936
|
|
9043
8917
|
) {
|
|
9044
8918
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9045
8919
|
"uniffi_bark_ffi_checksum_method_wallet_pending_lightning_send_vtxos"
|
|
@@ -9047,7 +8921,7 @@ function uniffiEnsureInitialized() {
|
|
|
9047
8921
|
}
|
|
9048
8922
|
if (
|
|
9049
8923
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_sends() !==
|
|
9050
|
-
|
|
8924
|
+
29185
|
|
9051
8925
|
) {
|
|
9052
8926
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9053
8927
|
"uniffi_bark_ffi_checksum_method_wallet_pending_lightning_sends"
|
|
@@ -9055,7 +8929,7 @@ function uniffiEnsureInitialized() {
|
|
|
9055
8929
|
}
|
|
9056
8930
|
if (
|
|
9057
8931
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_round_input_vtxos() !==
|
|
9058
|
-
|
|
8932
|
+
47726
|
|
9059
8933
|
) {
|
|
9060
8934
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9061
8935
|
"uniffi_bark_ffi_checksum_method_wallet_pending_round_input_vtxos"
|
|
@@ -9063,7 +8937,7 @@ function uniffiEnsureInitialized() {
|
|
|
9063
8937
|
}
|
|
9064
8938
|
if (
|
|
9065
8939
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_round_states() !==
|
|
9066
|
-
|
|
8940
|
+
40607
|
|
9067
8941
|
) {
|
|
9068
8942
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9069
8943
|
"uniffi_bark_ffi_checksum_method_wallet_pending_round_states"
|
|
@@ -9071,7 +8945,7 @@ function uniffiEnsureInitialized() {
|
|
|
9071
8945
|
}
|
|
9072
8946
|
if (
|
|
9073
8947
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_progress_exits() !==
|
|
9074
|
-
|
|
8948
|
+
56322
|
|
9075
8949
|
) {
|
|
9076
8950
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9077
8951
|
"uniffi_bark_ffi_checksum_method_wallet_progress_exits"
|
|
@@ -9079,7 +8953,7 @@ function uniffiEnsureInitialized() {
|
|
|
9079
8953
|
}
|
|
9080
8954
|
if (
|
|
9081
8955
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_progress_pending_rounds() !==
|
|
9082
|
-
|
|
8956
|
+
32996
|
|
9083
8957
|
) {
|
|
9084
8958
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9085
8959
|
"uniffi_bark_ffi_checksum_method_wallet_progress_pending_rounds"
|
|
@@ -9087,7 +8961,7 @@ function uniffiEnsureInitialized() {
|
|
|
9087
8961
|
}
|
|
9088
8962
|
if (
|
|
9089
8963
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_properties() !==
|
|
9090
|
-
|
|
8964
|
+
34379
|
|
9091
8965
|
) {
|
|
9092
8966
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9093
8967
|
"uniffi_bark_ffi_checksum_method_wallet_properties"
|
|
@@ -9095,7 +8969,7 @@ function uniffiEnsureInitialized() {
|
|
|
9095
8969
|
}
|
|
9096
8970
|
if (
|
|
9097
8971
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_server() !==
|
|
9098
|
-
|
|
8972
|
+
8899
|
|
9099
8973
|
) {
|
|
9100
8974
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9101
8975
|
"uniffi_bark_ffi_checksum_method_wallet_refresh_server"
|
|
@@ -9103,7 +8977,7 @@ function uniffiEnsureInitialized() {
|
|
|
9103
8977
|
}
|
|
9104
8978
|
if (
|
|
9105
8979
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos() !==
|
|
9106
|
-
|
|
8980
|
+
34165
|
|
9107
8981
|
) {
|
|
9108
8982
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9109
8983
|
"uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos"
|
|
@@ -9111,7 +8985,7 @@ function uniffiEnsureInitialized() {
|
|
|
9111
8985
|
}
|
|
9112
8986
|
if (
|
|
9113
8987
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated() !==
|
|
9114
|
-
|
|
8988
|
+
16216
|
|
9115
8989
|
) {
|
|
9116
8990
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9117
8991
|
"uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated"
|
|
@@ -9119,7 +8993,7 @@ function uniffiEnsureInitialized() {
|
|
|
9119
8993
|
}
|
|
9120
8994
|
if (
|
|
9121
8995
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment() !==
|
|
9122
|
-
|
|
8996
|
+
30372
|
|
9123
8997
|
) {
|
|
9124
8998
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9125
8999
|
"uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment"
|
|
@@ -9127,7 +9001,7 @@ function uniffiEnsureInitialized() {
|
|
|
9127
9001
|
}
|
|
9128
9002
|
if (
|
|
9129
9003
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_onchain() !==
|
|
9130
|
-
|
|
9004
|
+
41628
|
|
9131
9005
|
) {
|
|
9132
9006
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9133
9007
|
"uniffi_bark_ffi_checksum_method_wallet_send_onchain"
|
|
@@ -9135,7 +9009,7 @@ function uniffiEnsureInitialized() {
|
|
|
9135
9009
|
}
|
|
9136
9010
|
if (
|
|
9137
9011
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sign_exit_claim_inputs() !==
|
|
9138
|
-
|
|
9012
|
+
57734
|
|
9139
9013
|
) {
|
|
9140
9014
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9141
9015
|
"uniffi_bark_ffi_checksum_method_wallet_sign_exit_claim_inputs"
|
|
@@ -9143,7 +9017,7 @@ function uniffiEnsureInitialized() {
|
|
|
9143
9017
|
}
|
|
9144
9018
|
if (
|
|
9145
9019
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_spendable_vtxos() !==
|
|
9146
|
-
|
|
9020
|
+
50283
|
|
9147
9021
|
) {
|
|
9148
9022
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9149
9023
|
"uniffi_bark_ffi_checksum_method_wallet_spendable_vtxos"
|
|
@@ -9151,7 +9025,7 @@ function uniffiEnsureInitialized() {
|
|
|
9151
9025
|
}
|
|
9152
9026
|
if (
|
|
9153
9027
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_entire_wallet() !==
|
|
9154
|
-
|
|
9028
|
+
64743
|
|
9155
9029
|
) {
|
|
9156
9030
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9157
9031
|
"uniffi_bark_ffi_checksum_method_wallet_start_exit_for_entire_wallet"
|
|
@@ -9159,14 +9033,14 @@ function uniffiEnsureInitialized() {
|
|
|
9159
9033
|
}
|
|
9160
9034
|
if (
|
|
9161
9035
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos() !==
|
|
9162
|
-
|
|
9036
|
+
26632
|
|
9163
9037
|
) {
|
|
9164
9038
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9165
9039
|
"uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos"
|
|
9166
9040
|
);
|
|
9167
9041
|
}
|
|
9168
9042
|
if (
|
|
9169
|
-
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync() !==
|
|
9043
|
+
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync() !== 22105
|
|
9170
9044
|
) {
|
|
9171
9045
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9172
9046
|
"uniffi_bark_ffi_checksum_method_wallet_sync"
|
|
@@ -9174,7 +9048,7 @@ function uniffiEnsureInitialized() {
|
|
|
9174
9048
|
}
|
|
9175
9049
|
if (
|
|
9176
9050
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_exits() !==
|
|
9177
|
-
|
|
9051
|
+
48880
|
|
9178
9052
|
) {
|
|
9179
9053
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9180
9054
|
"uniffi_bark_ffi_checksum_method_wallet_sync_exits"
|
|
@@ -9182,7 +9056,7 @@ function uniffiEnsureInitialized() {
|
|
|
9182
9056
|
}
|
|
9183
9057
|
if (
|
|
9184
9058
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_pending_boards() !==
|
|
9185
|
-
|
|
9059
|
+
54161
|
|
9186
9060
|
) {
|
|
9187
9061
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9188
9062
|
"uniffi_bark_ffi_checksum_method_wallet_sync_pending_boards"
|
|
@@ -9190,7 +9064,7 @@ function uniffiEnsureInitialized() {
|
|
|
9190
9064
|
}
|
|
9191
9065
|
if (
|
|
9192
9066
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_all_lightning_receives() !==
|
|
9193
|
-
|
|
9067
|
+
8024
|
|
9194
9068
|
) {
|
|
9195
9069
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9196
9070
|
"uniffi_bark_ffi_checksum_method_wallet_try_claim_all_lightning_receives"
|
|
@@ -9198,7 +9072,7 @@ function uniffiEnsureInitialized() {
|
|
|
9198
9072
|
}
|
|
9199
9073
|
if (
|
|
9200
9074
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_lightning_receive() !==
|
|
9201
|
-
|
|
9075
|
+
15026
|
|
9202
9076
|
) {
|
|
9203
9077
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9204
9078
|
"uniffi_bark_ffi_checksum_method_wallet_try_claim_lightning_receive"
|
|
@@ -9206,14 +9080,14 @@ function uniffiEnsureInitialized() {
|
|
|
9206
9080
|
}
|
|
9207
9081
|
if (
|
|
9208
9082
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address() !==
|
|
9209
|
-
|
|
9083
|
+
40498
|
|
9210
9084
|
) {
|
|
9211
9085
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9212
9086
|
"uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address"
|
|
9213
9087
|
);
|
|
9214
9088
|
}
|
|
9215
9089
|
if (
|
|
9216
|
-
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_vtxos() !==
|
|
9090
|
+
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_vtxos() !== 25706
|
|
9217
9091
|
) {
|
|
9218
9092
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9219
9093
|
"uniffi_bark_ffi_checksum_method_wallet_vtxos"
|
|
@@ -9269,7 +9143,7 @@ function uniffiEnsureInitialized() {
|
|
|
9269
9143
|
}
|
|
9270
9144
|
if (
|
|
9271
9145
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance() !==
|
|
9272
|
-
|
|
9146
|
+
16407
|
|
9273
9147
|
) {
|
|
9274
9148
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9275
9149
|
"uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance"
|
|
@@ -9277,7 +9151,7 @@ function uniffiEnsureInitialized() {
|
|
|
9277
9151
|
}
|
|
9278
9152
|
if (
|
|
9279
9153
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_tx() !==
|
|
9280
|
-
|
|
9154
|
+
7671
|
|
9281
9155
|
) {
|
|
9282
9156
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9283
9157
|
"uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_tx"
|
|
@@ -9285,7 +9159,7 @@ function uniffiEnsureInitialized() {
|
|
|
9285
9159
|
}
|
|
9286
9160
|
if (
|
|
9287
9161
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_drain_tx() !==
|
|
9288
|
-
|
|
9162
|
+
15428
|
|
9289
9163
|
) {
|
|
9290
9164
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9291
9165
|
"uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_drain_tx"
|
|
@@ -9293,7 +9167,7 @@ function uniffiEnsureInitialized() {
|
|
|
9293
9167
|
}
|
|
9294
9168
|
if (
|
|
9295
9169
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_finish_tx() !==
|
|
9296
|
-
|
|
9170
|
+
2070
|
|
9297
9171
|
) {
|
|
9298
9172
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9299
9173
|
"uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_finish_tx"
|
|
@@ -9301,7 +9175,7 @@ function uniffiEnsureInitialized() {
|
|
|
9301
9175
|
}
|
|
9302
9176
|
if (
|
|
9303
9177
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx() !==
|
|
9304
|
-
|
|
9178
|
+
35041
|
|
9305
9179
|
) {
|
|
9306
9180
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9307
9181
|
"uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx"
|
|
@@ -9309,7 +9183,7 @@ function uniffiEnsureInitialized() {
|
|
|
9309
9183
|
}
|
|
9310
9184
|
if (
|
|
9311
9185
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block() !==
|
|
9312
|
-
|
|
9186
|
+
2541
|
|
9313
9187
|
) {
|
|
9314
9188
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9315
9189
|
"uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block"
|
|
@@ -9317,7 +9191,7 @@ function uniffiEnsureInitialized() {
|
|
|
9317
9191
|
}
|
|
9318
9192
|
if (
|
|
9319
9193
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_spending_tx() !==
|
|
9320
|
-
|
|
9194
|
+
27495
|
|
9321
9195
|
) {
|
|
9322
9196
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9323
9197
|
"uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_spending_tx"
|
|
@@ -9325,7 +9199,7 @@ function uniffiEnsureInitialized() {
|
|
|
9325
9199
|
}
|
|
9326
9200
|
if (
|
|
9327
9201
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp() !==
|
|
9328
|
-
|
|
9202
|
+
34889
|
|
9329
9203
|
) {
|
|
9330
9204
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9331
9205
|
"uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp"
|
|
@@ -9333,7 +9207,7 @@ function uniffiEnsureInitialized() {
|
|
|
9333
9207
|
}
|
|
9334
9208
|
if (
|
|
9335
9209
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp() !==
|
|
9336
|
-
|
|
9210
|
+
41685
|
|
9337
9211
|
) {
|
|
9338
9212
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9339
9213
|
"uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp"
|