@secondts/bark-react-native 0.3.2 → 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 +72 -0
- package/cpp/generated/bark.hpp +4 -0
- package/lib/commonjs/generated/bark-ffi.js.map +1 -1
- package/lib/commonjs/generated/bark.js +166 -354
- 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 +166 -354
- package/lib/module/generated/bark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts +4 -0
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark.d.ts +125 -316
- package/lib/typescript/commonjs/src/generated/bark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark-ffi.d.ts +4 -0
- package/lib/typescript/module/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark.d.ts +125 -316
- package/lib/typescript/module/src/generated/bark.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/generated/bark-ffi.ts +10 -0
- package/src/generated/bark.ts +660 -721
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
|
*/
|
|
@@ -4186,6 +4004,17 @@ export interface WalletInterface {
|
|
|
4186
4004
|
feeRateSatPerVb: /*u64*/ bigint | undefined,
|
|
4187
4005
|
asyncOpts_?: { signal: AbortSignal }
|
|
4188
4006
|
): /*throws*/ Promise<ExitClaimTransaction>;
|
|
4007
|
+
/**
|
|
4008
|
+
* Estimate the fee for an arkoor payment
|
|
4009
|
+
*
|
|
4010
|
+
* # Arguments
|
|
4011
|
+
*
|
|
4012
|
+
* * `amount_sats` - Amount to send in sats
|
|
4013
|
+
*/
|
|
4014
|
+
estimateArkoorPaymentFee(
|
|
4015
|
+
amountSats: /*u64*/ bigint,
|
|
4016
|
+
asyncOpts_?: { signal: AbortSignal }
|
|
4017
|
+
): /*throws*/ Promise<FeeEstimate>;
|
|
4189
4018
|
/**
|
|
4190
4019
|
* Estimate the fee for a board operation
|
|
4191
4020
|
*
|
|
@@ -4431,14 +4260,14 @@ export interface WalletInterface {
|
|
|
4431
4260
|
* More thorough than maintenance() - also syncs onchain wallet and exits.
|
|
4432
4261
|
*/
|
|
4433
4262
|
maintenanceWithOnchain(
|
|
4434
|
-
onchainWallet:
|
|
4263
|
+
onchainWallet: OnchainWalletLike,
|
|
4435
4264
|
asyncOpts_?: { signal: AbortSignal }
|
|
4436
4265
|
): /*throws*/ Promise<void>;
|
|
4437
4266
|
/**
|
|
4438
4267
|
* Perform maintenance with onchain wallet in delegated mode
|
|
4439
4268
|
*/
|
|
4440
4269
|
maintenanceWithOnchainDelegated(
|
|
4441
|
-
onchainWallet:
|
|
4270
|
+
onchainWallet: OnchainWalletLike,
|
|
4442
4271
|
asyncOpts_?: { signal: AbortSignal }
|
|
4443
4272
|
): /*throws*/ Promise<void>;
|
|
4444
4273
|
/**
|
|
@@ -4474,7 +4303,7 @@ export interface WalletInterface {
|
|
|
4474
4303
|
* Call `cancel_next_notification_wait()` to unblock a pending wait without
|
|
4475
4304
|
* destroying the stream.
|
|
4476
4305
|
*/
|
|
4477
|
-
notifications():
|
|
4306
|
+
notifications(): NotificationHolderLike;
|
|
4478
4307
|
offboardAll(
|
|
4479
4308
|
bitcoinAddress: string,
|
|
4480
4309
|
asyncOpts_?: { signal: AbortSignal }
|
|
@@ -4585,7 +4414,7 @@ export interface WalletInterface {
|
|
|
4585
4414
|
* * `fee_rate_sat_per_vb` - Optional fee rate override in sats/vB
|
|
4586
4415
|
*/
|
|
4587
4416
|
progressExits(
|
|
4588
|
-
onchainWallet:
|
|
4417
|
+
onchainWallet: OnchainWalletLike,
|
|
4589
4418
|
feeRateSatPerVb: /*u64*/ bigint | undefined,
|
|
4590
4419
|
asyncOpts_?: { signal: AbortSignal }
|
|
4591
4420
|
): /*throws*/ Promise<Array<ExitProgressStatus>>;
|
|
@@ -4682,7 +4511,7 @@ export interface WalletInterface {
|
|
|
4682
4511
|
* Sync exit state (checks status but doesn't progress)
|
|
4683
4512
|
*/
|
|
4684
4513
|
syncExits(
|
|
4685
|
-
onchainWallet:
|
|
4514
|
+
onchainWallet: OnchainWalletLike,
|
|
4686
4515
|
asyncOpts_?: { signal: AbortSignal }
|
|
4687
4516
|
): /*throws*/ Promise<void>;
|
|
4688
4517
|
/**
|
|
@@ -4721,11 +4550,15 @@ export interface WalletInterface {
|
|
|
4721
4550
|
): /*throws*/ Promise<boolean>;
|
|
4722
4551
|
vtxos(asyncOpts_?: { signal: AbortSignal }): /*throws*/ Promise<Array<Vtxo>>;
|
|
4723
4552
|
}
|
|
4553
|
+
/**
|
|
4554
|
+
* @deprecated Use `WalletLike` instead.
|
|
4555
|
+
*/
|
|
4556
|
+
export type WalletInterface = WalletLike;
|
|
4724
4557
|
|
|
4725
4558
|
/**
|
|
4726
4559
|
* The main Bark wallet interface for Ark operations
|
|
4727
4560
|
*/
|
|
4728
|
-
export class Wallet extends UniffiAbstractObject implements
|
|
4561
|
+
export class Wallet extends UniffiAbstractObject implements WalletLike {
|
|
4729
4562
|
readonly [uniffiTypeNameSymbol] = "Wallet";
|
|
4730
4563
|
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
4731
4564
|
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
@@ -4745,7 +4578,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
|
|
|
4745
4578
|
datadir: string,
|
|
4746
4579
|
forceRescan: boolean,
|
|
4747
4580
|
asyncOpts_?: { signal: AbortSignal }
|
|
4748
|
-
): Promise<
|
|
4581
|
+
): Promise<WalletLike> /*throws*/ {
|
|
4749
4582
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4750
4583
|
try {
|
|
4751
4584
|
return await uniffiRustCallAsync(
|
|
@@ -4785,10 +4618,10 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
|
|
|
4785
4618
|
mnemonic: string,
|
|
4786
4619
|
config: Config,
|
|
4787
4620
|
datadir: string,
|
|
4788
|
-
onchainWallet:
|
|
4621
|
+
onchainWallet: OnchainWalletLike,
|
|
4789
4622
|
forceRescan: boolean,
|
|
4790
4623
|
asyncOpts_?: { signal: AbortSignal }
|
|
4791
|
-
): Promise<
|
|
4624
|
+
): Promise<WalletLike> /*throws*/ {
|
|
4792
4625
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4793
4626
|
try {
|
|
4794
4627
|
return await uniffiRustCallAsync(
|
|
@@ -4830,7 +4663,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
|
|
|
4830
4663
|
config: Config,
|
|
4831
4664
|
datadir: string,
|
|
4832
4665
|
asyncOpts_?: { signal: AbortSignal }
|
|
4833
|
-
): Promise<
|
|
4666
|
+
): Promise<WalletLike> /*throws*/ {
|
|
4834
4667
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4835
4668
|
try {
|
|
4836
4669
|
return await uniffiRustCallAsync(
|
|
@@ -4869,9 +4702,9 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
|
|
|
4869
4702
|
mnemonic: string,
|
|
4870
4703
|
config: Config,
|
|
4871
4704
|
datadir: string,
|
|
4872
|
-
onchainWallet:
|
|
4705
|
+
onchainWallet: OnchainWalletLike,
|
|
4873
4706
|
asyncOpts_?: { signal: AbortSignal }
|
|
4874
|
-
): Promise<
|
|
4707
|
+
): Promise<WalletLike> /*throws*/ {
|
|
4875
4708
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4876
4709
|
try {
|
|
4877
4710
|
return await uniffiRustCallAsync(
|
|
@@ -5064,7 +4897,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
|
|
|
5064
4897
|
* Board all funds from onchain wallet into Ark
|
|
5065
4898
|
*/
|
|
5066
4899
|
async boardAll(
|
|
5067
|
-
onchainWallet:
|
|
4900
|
+
onchainWallet: OnchainWalletLike,
|
|
5068
4901
|
asyncOpts_?: { signal: AbortSignal }
|
|
5069
4902
|
): Promise<PendingBoard> /*throws*/ {
|
|
5070
4903
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
@@ -5106,7 +4939,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
|
|
|
5106
4939
|
* Board a specific amount from onchain wallet into Ark
|
|
5107
4940
|
*/
|
|
5108
4941
|
async boardAmount(
|
|
5109
|
-
onchainWallet:
|
|
4942
|
+
onchainWallet: OnchainWalletLike,
|
|
5110
4943
|
amountSats: /*u64*/ bigint,
|
|
5111
4944
|
asyncOpts_?: { signal: AbortSignal }
|
|
5112
4945
|
): Promise<PendingBoard> /*throws*/ {
|
|
@@ -5270,6 +5103,51 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
|
|
|
5270
5103
|
}
|
|
5271
5104
|
}
|
|
5272
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
|
+
|
|
5273
5151
|
/**
|
|
5274
5152
|
* Cancel a specific pending round
|
|
5275
5153
|
*/
|
|
@@ -5482,6 +5360,52 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
|
|
|
5482
5360
|
}
|
|
5483
5361
|
}
|
|
5484
5362
|
|
|
5363
|
+
/**
|
|
5364
|
+
* Estimate the fee for an arkoor payment
|
|
5365
|
+
*
|
|
5366
|
+
* # Arguments
|
|
5367
|
+
*
|
|
5368
|
+
* * `amount_sats` - Amount to send in sats
|
|
5369
|
+
*/
|
|
5370
|
+
async estimateArkoorPaymentFee(
|
|
5371
|
+
amountSats: /*u64*/ bigint,
|
|
5372
|
+
asyncOpts_?: { signal: AbortSignal }
|
|
5373
|
+
): Promise<FeeEstimate> /*throws*/ {
|
|
5374
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
5375
|
+
try {
|
|
5376
|
+
return await uniffiRustCallAsync(
|
|
5377
|
+
/*rustCaller:*/ uniffiCaller,
|
|
5378
|
+
/*rustFutureFunc:*/ () => {
|
|
5379
|
+
return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_arkoor_payment_fee(
|
|
5380
|
+
uniffiTypeWalletObjectFactory.clonePointer(this),
|
|
5381
|
+
FfiConverterUInt64.lower(amountSats)
|
|
5382
|
+
);
|
|
5383
|
+
},
|
|
5384
|
+
/*pollFunc:*/ nativeModule()
|
|
5385
|
+
.ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer,
|
|
5386
|
+
/*cancelFunc:*/ nativeModule()
|
|
5387
|
+
.ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer,
|
|
5388
|
+
/*completeFunc:*/ nativeModule()
|
|
5389
|
+
.ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer,
|
|
5390
|
+
/*freeFunc:*/ nativeModule()
|
|
5391
|
+
.ubrn_ffi_bark_ffi_rust_future_free_rust_buffer,
|
|
5392
|
+
/*liftFunc:*/ FfiConverterTypeFeeEstimate.lift.bind(
|
|
5393
|
+
FfiConverterTypeFeeEstimate
|
|
5394
|
+
),
|
|
5395
|
+
/*liftString:*/ FfiConverterString.lift,
|
|
5396
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
5397
|
+
/*errorHandler:*/ FfiConverterTypeBarkError.lift.bind(
|
|
5398
|
+
FfiConverterTypeBarkError
|
|
5399
|
+
)
|
|
5400
|
+
);
|
|
5401
|
+
} catch (__error: any) {
|
|
5402
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
5403
|
+
__error.stack = __stack;
|
|
5404
|
+
}
|
|
5405
|
+
throw __error;
|
|
5406
|
+
}
|
|
5407
|
+
}
|
|
5408
|
+
|
|
5485
5409
|
/**
|
|
5486
5410
|
* Estimate the fee for a board operation
|
|
5487
5411
|
*
|
|
@@ -6555,7 +6479,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
|
|
|
6555
6479
|
* More thorough than maintenance() - also syncs onchain wallet and exits.
|
|
6556
6480
|
*/
|
|
6557
6481
|
async maintenanceWithOnchain(
|
|
6558
|
-
onchainWallet:
|
|
6482
|
+
onchainWallet: OnchainWalletLike,
|
|
6559
6483
|
asyncOpts_?: { signal: AbortSignal }
|
|
6560
6484
|
): Promise<void> /*throws*/ {
|
|
6561
6485
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
@@ -6593,7 +6517,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
|
|
|
6593
6517
|
* Perform maintenance with onchain wallet in delegated mode
|
|
6594
6518
|
*/
|
|
6595
6519
|
async maintenanceWithOnchainDelegated(
|
|
6596
|
-
onchainWallet:
|
|
6520
|
+
onchainWallet: OnchainWalletLike,
|
|
6597
6521
|
asyncOpts_?: { signal: AbortSignal }
|
|
6598
6522
|
): Promise<void> /*throws*/ {
|
|
6599
6523
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
@@ -6827,7 +6751,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
|
|
|
6827
6751
|
* Call `cancel_next_notification_wait()` to unblock a pending wait without
|
|
6828
6752
|
* destroying the stream.
|
|
6829
6753
|
*/
|
|
6830
|
-
notifications():
|
|
6754
|
+
notifications(): NotificationHolderLike {
|
|
6831
6755
|
return FfiConverterTypeNotificationHolder.lift(
|
|
6832
6756
|
uniffiCaller.rustCall(
|
|
6833
6757
|
/*caller:*/ (callStatus) => {
|
|
@@ -7462,7 +7386,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
|
|
|
7462
7386
|
* * `fee_rate_sat_per_vb` - Optional fee rate override in sats/vB
|
|
7463
7387
|
*/
|
|
7464
7388
|
async progressExits(
|
|
7465
|
-
onchainWallet:
|
|
7389
|
+
onchainWallet: OnchainWalletLike,
|
|
7466
7390
|
feeRateSatPerVb: /*u64*/ bigint | undefined,
|
|
7467
7391
|
asyncOpts_?: { signal: AbortSignal }
|
|
7468
7392
|
): Promise<Array<ExitProgressStatus>> /*throws*/ {
|
|
@@ -7987,7 +7911,7 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
|
|
|
7987
7911
|
* Sync exit state (checks status but doesn't progress)
|
|
7988
7912
|
*/
|
|
7989
7913
|
async syncExits(
|
|
7990
|
-
onchainWallet:
|
|
7914
|
+
onchainWallet: OnchainWalletLike,
|
|
7991
7915
|
asyncOpts_?: { signal: AbortSignal }
|
|
7992
7916
|
): Promise<void> /*throws*/ {
|
|
7993
7917
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
@@ -8237,70 +8161,69 @@ export class Wallet extends UniffiAbstractObject implements WalletInterface {
|
|
|
8237
8161
|
}
|
|
8238
8162
|
}
|
|
8239
8163
|
|
|
8240
|
-
const uniffiTypeWalletObjectFactory: UniffiObjectFactory<
|
|
8241
|
-
|
|
8242
|
-
|
|
8243
|
-
create(
|
|
8244
|
-
|
|
8245
|
-
|
|
8246
|
-
|
|
8247
|
-
|
|
8248
|
-
|
|
8249
|
-
},
|
|
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
|
+
},
|
|
8250
8173
|
|
|
8251
|
-
|
|
8252
|
-
|
|
8253
|
-
|
|
8254
|
-
|
|
8255
|
-
|
|
8256
|
-
|
|
8257
|
-
|
|
8258
|
-
|
|
8259
|
-
|
|
8260
|
-
|
|
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
|
+
},
|
|
8261
8184
|
|
|
8262
|
-
|
|
8263
|
-
|
|
8264
|
-
|
|
8185
|
+
unbless(ptr: UniffiGcObject) {
|
|
8186
|
+
ptr.markDestroyed();
|
|
8187
|
+
},
|
|
8265
8188
|
|
|
8266
|
-
|
|
8267
|
-
|
|
8268
|
-
|
|
8269
|
-
|
|
8270
|
-
|
|
8271
|
-
|
|
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
|
+
},
|
|
8272
8195
|
|
|
8273
|
-
|
|
8274
|
-
|
|
8275
|
-
|
|
8276
|
-
|
|
8277
|
-
|
|
8278
|
-
|
|
8279
|
-
|
|
8280
|
-
|
|
8281
|
-
|
|
8282
|
-
|
|
8283
|
-
|
|
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
|
+
},
|
|
8284
8207
|
|
|
8285
|
-
|
|
8286
|
-
|
|
8287
|
-
|
|
8288
|
-
|
|
8289
|
-
|
|
8290
|
-
|
|
8291
|
-
|
|
8292
|
-
|
|
8293
|
-
|
|
8294
|
-
|
|
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
|
+
},
|
|
8295
8218
|
|
|
8296
|
-
|
|
8297
|
-
|
|
8298
|
-
|
|
8299
|
-
|
|
8300
|
-
|
|
8301
|
-
|
|
8302
|
-
|
|
8303
|
-
// 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
|
|
8304
8227
|
const FfiConverterTypeWallet = new FfiConverterObject(
|
|
8305
8228
|
uniffiTypeWalletObjectFactory
|
|
8306
8229
|
);
|
|
@@ -8454,7 +8377,7 @@ function uniffiEnsureInitialized() {
|
|
|
8454
8377
|
}
|
|
8455
8378
|
if (
|
|
8456
8379
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_notificationholder_cancel_next_notification_wait() !==
|
|
8457
|
-
|
|
8380
|
+
6047
|
|
8458
8381
|
) {
|
|
8459
8382
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8460
8383
|
"uniffi_bark_ffi_checksum_method_notificationholder_cancel_next_notification_wait"
|
|
@@ -8462,7 +8385,7 @@ function uniffiEnsureInitialized() {
|
|
|
8462
8385
|
}
|
|
8463
8386
|
if (
|
|
8464
8387
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_notificationholder_next_notification() !==
|
|
8465
|
-
|
|
8388
|
+
33597
|
|
8466
8389
|
) {
|
|
8467
8390
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8468
8391
|
"uniffi_bark_ffi_checksum_method_notificationholder_next_notification"
|
|
@@ -8470,7 +8393,7 @@ function uniffiEnsureInitialized() {
|
|
|
8470
8393
|
}
|
|
8471
8394
|
if (
|
|
8472
8395
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_balance() !==
|
|
8473
|
-
|
|
8396
|
+
56626
|
|
8474
8397
|
) {
|
|
8475
8398
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8476
8399
|
"uniffi_bark_ffi_checksum_method_onchainwallet_balance"
|
|
@@ -8478,7 +8401,7 @@ function uniffiEnsureInitialized() {
|
|
|
8478
8401
|
}
|
|
8479
8402
|
if (
|
|
8480
8403
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_new_address() !==
|
|
8481
|
-
|
|
8404
|
+
54598
|
|
8482
8405
|
) {
|
|
8483
8406
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8484
8407
|
"uniffi_bark_ffi_checksum_method_onchainwallet_new_address"
|
|
@@ -8486,7 +8409,7 @@ function uniffiEnsureInitialized() {
|
|
|
8486
8409
|
}
|
|
8487
8410
|
if (
|
|
8488
8411
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_send() !==
|
|
8489
|
-
|
|
8412
|
+
27783
|
|
8490
8413
|
) {
|
|
8491
8414
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8492
8415
|
"uniffi_bark_ffi_checksum_method_onchainwallet_send"
|
|
@@ -8494,7 +8417,7 @@ function uniffiEnsureInitialized() {
|
|
|
8494
8417
|
}
|
|
8495
8418
|
if (
|
|
8496
8419
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_sync() !==
|
|
8497
|
-
|
|
8420
|
+
9607
|
|
8498
8421
|
) {
|
|
8499
8422
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8500
8423
|
"uniffi_bark_ffi_checksum_method_onchainwallet_sync"
|
|
@@ -8502,7 +8425,7 @@ function uniffiEnsureInitialized() {
|
|
|
8502
8425
|
}
|
|
8503
8426
|
if (
|
|
8504
8427
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_all_exits_claimable_at_height() !==
|
|
8505
|
-
|
|
8428
|
+
41888
|
|
8506
8429
|
) {
|
|
8507
8430
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8508
8431
|
"uniffi_bark_ffi_checksum_method_wallet_all_exits_claimable_at_height"
|
|
@@ -8510,7 +8433,7 @@ function uniffiEnsureInitialized() {
|
|
|
8510
8433
|
}
|
|
8511
8434
|
if (
|
|
8512
8435
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_all_vtxos() !==
|
|
8513
|
-
|
|
8436
|
+
41609
|
|
8514
8437
|
) {
|
|
8515
8438
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8516
8439
|
"uniffi_bark_ffi_checksum_method_wallet_all_vtxos"
|
|
@@ -8518,7 +8441,7 @@ function uniffiEnsureInitialized() {
|
|
|
8518
8441
|
}
|
|
8519
8442
|
if (
|
|
8520
8443
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_ark_info() !==
|
|
8521
|
-
|
|
8444
|
+
47096
|
|
8522
8445
|
) {
|
|
8523
8446
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8524
8447
|
"uniffi_bark_ffi_checksum_method_wallet_ark_info"
|
|
@@ -8526,7 +8449,7 @@ function uniffiEnsureInitialized() {
|
|
|
8526
8449
|
}
|
|
8527
8450
|
if (
|
|
8528
8451
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_balance() !==
|
|
8529
|
-
|
|
8452
|
+
53107
|
|
8530
8453
|
) {
|
|
8531
8454
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8532
8455
|
"uniffi_bark_ffi_checksum_method_wallet_balance"
|
|
@@ -8534,7 +8457,7 @@ function uniffiEnsureInitialized() {
|
|
|
8534
8457
|
}
|
|
8535
8458
|
if (
|
|
8536
8459
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_all() !==
|
|
8537
|
-
|
|
8460
|
+
6211
|
|
8538
8461
|
) {
|
|
8539
8462
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8540
8463
|
"uniffi_bark_ffi_checksum_method_wallet_board_all"
|
|
@@ -8542,7 +8465,7 @@ function uniffiEnsureInitialized() {
|
|
|
8542
8465
|
}
|
|
8543
8466
|
if (
|
|
8544
8467
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_amount() !==
|
|
8545
|
-
|
|
8468
|
+
57213
|
|
8546
8469
|
) {
|
|
8547
8470
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8548
8471
|
"uniffi_bark_ffi_checksum_method_wallet_board_amount"
|
|
@@ -8550,7 +8473,7 @@ function uniffiEnsureInitialized() {
|
|
|
8550
8473
|
}
|
|
8551
8474
|
if (
|
|
8552
8475
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice() !==
|
|
8553
|
-
|
|
8476
|
+
8901
|
|
8554
8477
|
) {
|
|
8555
8478
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8556
8479
|
"uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice"
|
|
@@ -8558,7 +8481,7 @@ function uniffiEnsureInitialized() {
|
|
|
8558
8481
|
}
|
|
8559
8482
|
if (
|
|
8560
8483
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_broadcast_tx() !==
|
|
8561
|
-
|
|
8484
|
+
10756
|
|
8562
8485
|
) {
|
|
8563
8486
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8564
8487
|
"uniffi_bark_ffi_checksum_method_wallet_broadcast_tx"
|
|
@@ -8566,15 +8489,23 @@ function uniffiEnsureInitialized() {
|
|
|
8566
8489
|
}
|
|
8567
8490
|
if (
|
|
8568
8491
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_all_pending_rounds() !==
|
|
8569
|
-
|
|
8492
|
+
48474
|
|
8570
8493
|
) {
|
|
8571
8494
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8572
8495
|
"uniffi_bark_ffi_checksum_method_wallet_cancel_all_pending_rounds"
|
|
8573
8496
|
);
|
|
8574
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
|
+
}
|
|
8575
8506
|
if (
|
|
8576
8507
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_pending_round() !==
|
|
8577
|
-
|
|
8508
|
+
63049
|
|
8578
8509
|
) {
|
|
8579
8510
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8580
8511
|
"uniffi_bark_ffi_checksum_method_wallet_cancel_pending_round"
|
|
@@ -8582,7 +8513,7 @@ function uniffiEnsureInitialized() {
|
|
|
8582
8513
|
}
|
|
8583
8514
|
if (
|
|
8584
8515
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_check_lightning_payment() !==
|
|
8585
|
-
|
|
8516
|
+
22806
|
|
8586
8517
|
) {
|
|
8587
8518
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8588
8519
|
"uniffi_bark_ffi_checksum_method_wallet_check_lightning_payment"
|
|
@@ -8590,7 +8521,7 @@ function uniffiEnsureInitialized() {
|
|
|
8590
8521
|
}
|
|
8591
8522
|
if (
|
|
8592
8523
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_claimable_lightning_receive_balance_sats() !==
|
|
8593
|
-
|
|
8524
|
+
13170
|
|
8594
8525
|
) {
|
|
8595
8526
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8596
8527
|
"uniffi_bark_ffi_checksum_method_wallet_claimable_lightning_receive_balance_sats"
|
|
@@ -8598,7 +8529,7 @@ function uniffiEnsureInitialized() {
|
|
|
8598
8529
|
}
|
|
8599
8530
|
if (
|
|
8600
8531
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_config() !==
|
|
8601
|
-
|
|
8532
|
+
52641
|
|
8602
8533
|
) {
|
|
8603
8534
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8604
8535
|
"uniffi_bark_ffi_checksum_method_wallet_config"
|
|
@@ -8606,15 +8537,23 @@ function uniffiEnsureInitialized() {
|
|
|
8606
8537
|
}
|
|
8607
8538
|
if (
|
|
8608
8539
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_drain_exits() !==
|
|
8609
|
-
|
|
8540
|
+
24496
|
|
8610
8541
|
) {
|
|
8611
8542
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8612
8543
|
"uniffi_bark_ffi_checksum_method_wallet_drain_exits"
|
|
8613
8544
|
);
|
|
8614
8545
|
}
|
|
8546
|
+
if (
|
|
8547
|
+
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_arkoor_payment_fee() !==
|
|
8548
|
+
5843
|
|
8549
|
+
) {
|
|
8550
|
+
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8551
|
+
"uniffi_bark_ffi_checksum_method_wallet_estimate_arkoor_payment_fee"
|
|
8552
|
+
);
|
|
8553
|
+
}
|
|
8615
8554
|
if (
|
|
8616
8555
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee() !==
|
|
8617
|
-
|
|
8556
|
+
17847
|
|
8618
8557
|
) {
|
|
8619
8558
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8620
8559
|
"uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee"
|
|
@@ -8622,7 +8561,7 @@ function uniffiEnsureInitialized() {
|
|
|
8622
8561
|
}
|
|
8623
8562
|
if (
|
|
8624
8563
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee() !==
|
|
8625
|
-
|
|
8564
|
+
45860
|
|
8626
8565
|
) {
|
|
8627
8566
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8628
8567
|
"uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee"
|
|
@@ -8630,7 +8569,7 @@ function uniffiEnsureInitialized() {
|
|
|
8630
8569
|
}
|
|
8631
8570
|
if (
|
|
8632
8571
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_send_fee() !==
|
|
8633
|
-
|
|
8572
|
+
18556
|
|
8634
8573
|
) {
|
|
8635
8574
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8636
8575
|
"uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_send_fee"
|
|
@@ -8638,7 +8577,7 @@ function uniffiEnsureInitialized() {
|
|
|
8638
8577
|
}
|
|
8639
8578
|
if (
|
|
8640
8579
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_all_fee() !==
|
|
8641
|
-
|
|
8580
|
+
26906
|
|
8642
8581
|
) {
|
|
8643
8582
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8644
8583
|
"uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_all_fee"
|
|
@@ -8646,7 +8585,7 @@ function uniffiEnsureInitialized() {
|
|
|
8646
8585
|
}
|
|
8647
8586
|
if (
|
|
8648
8587
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_fee() !==
|
|
8649
|
-
|
|
8588
|
+
3254
|
|
8650
8589
|
) {
|
|
8651
8590
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8652
8591
|
"uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_fee"
|
|
@@ -8654,7 +8593,7 @@ function uniffiEnsureInitialized() {
|
|
|
8654
8593
|
}
|
|
8655
8594
|
if (
|
|
8656
8595
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_refresh_fee() !==
|
|
8657
|
-
|
|
8596
|
+
47327
|
|
8658
8597
|
) {
|
|
8659
8598
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8660
8599
|
"uniffi_bark_ffi_checksum_method_wallet_estimate_refresh_fee"
|
|
@@ -8662,7 +8601,7 @@ function uniffiEnsureInitialized() {
|
|
|
8662
8601
|
}
|
|
8663
8602
|
if (
|
|
8664
8603
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_send_onchain_fee() !==
|
|
8665
|
-
|
|
8604
|
+
61285
|
|
8666
8605
|
) {
|
|
8667
8606
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8668
8607
|
"uniffi_bark_ffi_checksum_method_wallet_estimate_send_onchain_fee"
|
|
@@ -8670,7 +8609,7 @@ function uniffiEnsureInitialized() {
|
|
|
8670
8609
|
}
|
|
8671
8610
|
if (
|
|
8672
8611
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_fingerprint() !==
|
|
8673
|
-
|
|
8612
|
+
59618
|
|
8674
8613
|
) {
|
|
8675
8614
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8676
8615
|
"uniffi_bark_ffi_checksum_method_wallet_fingerprint"
|
|
@@ -8678,7 +8617,7 @@ function uniffiEnsureInitialized() {
|
|
|
8678
8617
|
}
|
|
8679
8618
|
if (
|
|
8680
8619
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_exit_status() !==
|
|
8681
|
-
|
|
8620
|
+
45568
|
|
8682
8621
|
) {
|
|
8683
8622
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8684
8623
|
"uniffi_bark_ffi_checksum_method_wallet_get_exit_status"
|
|
@@ -8686,7 +8625,7 @@ function uniffiEnsureInitialized() {
|
|
|
8686
8625
|
}
|
|
8687
8626
|
if (
|
|
8688
8627
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_exit_vtxos() !==
|
|
8689
|
-
|
|
8628
|
+
49255
|
|
8690
8629
|
) {
|
|
8691
8630
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8692
8631
|
"uniffi_bark_ffi_checksum_method_wallet_get_exit_vtxos"
|
|
@@ -8694,7 +8633,7 @@ function uniffiEnsureInitialized() {
|
|
|
8694
8633
|
}
|
|
8695
8634
|
if (
|
|
8696
8635
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_expiring_vtxos() !==
|
|
8697
|
-
|
|
8636
|
+
30365
|
|
8698
8637
|
) {
|
|
8699
8638
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8700
8639
|
"uniffi_bark_ffi_checksum_method_wallet_get_expiring_vtxos"
|
|
@@ -8702,7 +8641,7 @@ function uniffiEnsureInitialized() {
|
|
|
8702
8641
|
}
|
|
8703
8642
|
if (
|
|
8704
8643
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_first_expiring_vtxo_blockheight() !==
|
|
8705
|
-
|
|
8644
|
+
17196
|
|
8706
8645
|
) {
|
|
8707
8646
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8708
8647
|
"uniffi_bark_ffi_checksum_method_wallet_get_first_expiring_vtxo_blockheight"
|
|
@@ -8710,7 +8649,7 @@ function uniffiEnsureInitialized() {
|
|
|
8710
8649
|
}
|
|
8711
8650
|
if (
|
|
8712
8651
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_next_required_refresh_blockheight() !==
|
|
8713
|
-
|
|
8652
|
+
37879
|
|
8714
8653
|
) {
|
|
8715
8654
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8716
8655
|
"uniffi_bark_ffi_checksum_method_wallet_get_next_required_refresh_blockheight"
|
|
@@ -8718,7 +8657,7 @@ function uniffiEnsureInitialized() {
|
|
|
8718
8657
|
}
|
|
8719
8658
|
if (
|
|
8720
8659
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_vtxo_by_id() !==
|
|
8721
|
-
|
|
8660
|
+
35493
|
|
8722
8661
|
) {
|
|
8723
8662
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8724
8663
|
"uniffi_bark_ffi_checksum_method_wallet_get_vtxo_by_id"
|
|
@@ -8726,7 +8665,7 @@ function uniffiEnsureInitialized() {
|
|
|
8726
8665
|
}
|
|
8727
8666
|
if (
|
|
8728
8667
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_vtxos_to_refresh() !==
|
|
8729
|
-
|
|
8668
|
+
42602
|
|
8730
8669
|
) {
|
|
8731
8670
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8732
8671
|
"uniffi_bark_ffi_checksum_method_wallet_get_vtxos_to_refresh"
|
|
@@ -8734,7 +8673,7 @@ function uniffiEnsureInitialized() {
|
|
|
8734
8673
|
}
|
|
8735
8674
|
if (
|
|
8736
8675
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_has_pending_exits() !==
|
|
8737
|
-
|
|
8676
|
+
46353
|
|
8738
8677
|
) {
|
|
8739
8678
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8740
8679
|
"uniffi_bark_ffi_checksum_method_wallet_has_pending_exits"
|
|
@@ -8742,7 +8681,7 @@ function uniffiEnsureInitialized() {
|
|
|
8742
8681
|
}
|
|
8743
8682
|
if (
|
|
8744
8683
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_history() !==
|
|
8745
|
-
|
|
8684
|
+
39257
|
|
8746
8685
|
) {
|
|
8747
8686
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8748
8687
|
"uniffi_bark_ffi_checksum_method_wallet_history"
|
|
@@ -8750,7 +8689,7 @@ function uniffiEnsureInitialized() {
|
|
|
8750
8689
|
}
|
|
8751
8690
|
if (
|
|
8752
8691
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_history_by_payment_method() !==
|
|
8753
|
-
|
|
8692
|
+
53117
|
|
8754
8693
|
) {
|
|
8755
8694
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8756
8695
|
"uniffi_bark_ffi_checksum_method_wallet_history_by_payment_method"
|
|
@@ -8758,7 +8697,7 @@ function uniffiEnsureInitialized() {
|
|
|
8758
8697
|
}
|
|
8759
8698
|
if (
|
|
8760
8699
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_import_vtxo() !==
|
|
8761
|
-
|
|
8700
|
+
49309
|
|
8762
8701
|
) {
|
|
8763
8702
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8764
8703
|
"uniffi_bark_ffi_checksum_method_wallet_import_vtxo"
|
|
@@ -8766,7 +8705,7 @@ function uniffiEnsureInitialized() {
|
|
|
8766
8705
|
}
|
|
8767
8706
|
if (
|
|
8768
8707
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status() !==
|
|
8769
|
-
|
|
8708
|
+
8110
|
|
8770
8709
|
) {
|
|
8771
8710
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8772
8711
|
"uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status"
|
|
@@ -8774,7 +8713,7 @@ function uniffiEnsureInitialized() {
|
|
|
8774
8713
|
}
|
|
8775
8714
|
if (
|
|
8776
8715
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits() !==
|
|
8777
|
-
|
|
8716
|
+
28301
|
|
8778
8717
|
) {
|
|
8779
8718
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8780
8719
|
"uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits"
|
|
@@ -8782,7 +8721,7 @@ function uniffiEnsureInitialized() {
|
|
|
8782
8721
|
}
|
|
8783
8722
|
if (
|
|
8784
8723
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_mailbox_authorization() !==
|
|
8785
|
-
|
|
8724
|
+
29750
|
|
8786
8725
|
) {
|
|
8787
8726
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8788
8727
|
"uniffi_bark_ffi_checksum_method_wallet_mailbox_authorization"
|
|
@@ -8790,7 +8729,7 @@ function uniffiEnsureInitialized() {
|
|
|
8790
8729
|
}
|
|
8791
8730
|
if (
|
|
8792
8731
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_mailbox_identifier() !==
|
|
8793
|
-
|
|
8732
|
+
36484
|
|
8794
8733
|
) {
|
|
8795
8734
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8796
8735
|
"uniffi_bark_ffi_checksum_method_wallet_mailbox_identifier"
|
|
@@ -8798,7 +8737,7 @@ function uniffiEnsureInitialized() {
|
|
|
8798
8737
|
}
|
|
8799
8738
|
if (
|
|
8800
8739
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance() !==
|
|
8801
|
-
|
|
8740
|
+
7229
|
|
8802
8741
|
) {
|
|
8803
8742
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8804
8743
|
"uniffi_bark_ffi_checksum_method_wallet_maintenance"
|
|
@@ -8806,7 +8745,7 @@ function uniffiEnsureInitialized() {
|
|
|
8806
8745
|
}
|
|
8807
8746
|
if (
|
|
8808
8747
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_delegated() !==
|
|
8809
|
-
|
|
8748
|
+
33231
|
|
8810
8749
|
) {
|
|
8811
8750
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8812
8751
|
"uniffi_bark_ffi_checksum_method_wallet_maintenance_delegated"
|
|
@@ -8814,7 +8753,7 @@ function uniffiEnsureInitialized() {
|
|
|
8814
8753
|
}
|
|
8815
8754
|
if (
|
|
8816
8755
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_refresh() !==
|
|
8817
|
-
|
|
8756
|
+
41843
|
|
8818
8757
|
) {
|
|
8819
8758
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8820
8759
|
"uniffi_bark_ffi_checksum_method_wallet_maintenance_refresh"
|
|
@@ -8822,7 +8761,7 @@ function uniffiEnsureInitialized() {
|
|
|
8822
8761
|
}
|
|
8823
8762
|
if (
|
|
8824
8763
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain() !==
|
|
8825
|
-
|
|
8764
|
+
64685
|
|
8826
8765
|
) {
|
|
8827
8766
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8828
8767
|
"uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain"
|
|
@@ -8830,7 +8769,7 @@ function uniffiEnsureInitialized() {
|
|
|
8830
8769
|
}
|
|
8831
8770
|
if (
|
|
8832
8771
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain_delegated() !==
|
|
8833
|
-
|
|
8772
|
+
4380
|
|
8834
8773
|
) {
|
|
8835
8774
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8836
8775
|
"uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain_delegated"
|
|
@@ -8838,7 +8777,7 @@ function uniffiEnsureInitialized() {
|
|
|
8838
8777
|
}
|
|
8839
8778
|
if (
|
|
8840
8779
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_maybe_schedule_maintenance_refresh() !==
|
|
8841
|
-
|
|
8780
|
+
26561
|
|
8842
8781
|
) {
|
|
8843
8782
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8844
8783
|
"uniffi_bark_ffi_checksum_method_wallet_maybe_schedule_maintenance_refresh"
|
|
@@ -8846,7 +8785,7 @@ function uniffiEnsureInitialized() {
|
|
|
8846
8785
|
}
|
|
8847
8786
|
if (
|
|
8848
8787
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_network() !==
|
|
8849
|
-
|
|
8788
|
+
62844
|
|
8850
8789
|
) {
|
|
8851
8790
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8852
8791
|
"uniffi_bark_ffi_checksum_method_wallet_network"
|
|
@@ -8854,7 +8793,7 @@ function uniffiEnsureInitialized() {
|
|
|
8854
8793
|
}
|
|
8855
8794
|
if (
|
|
8856
8795
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_new_address() !==
|
|
8857
|
-
|
|
8796
|
+
52843
|
|
8858
8797
|
) {
|
|
8859
8798
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8860
8799
|
"uniffi_bark_ffi_checksum_method_wallet_new_address"
|
|
@@ -8862,7 +8801,7 @@ function uniffiEnsureInitialized() {
|
|
|
8862
8801
|
}
|
|
8863
8802
|
if (
|
|
8864
8803
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_new_address_with_index() !==
|
|
8865
|
-
|
|
8804
|
+
42716
|
|
8866
8805
|
) {
|
|
8867
8806
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8868
8807
|
"uniffi_bark_ffi_checksum_method_wallet_new_address_with_index"
|
|
@@ -8870,7 +8809,7 @@ function uniffiEnsureInitialized() {
|
|
|
8870
8809
|
}
|
|
8871
8810
|
if (
|
|
8872
8811
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_next_round_start_time() !==
|
|
8873
|
-
|
|
8812
|
+
59834
|
|
8874
8813
|
) {
|
|
8875
8814
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8876
8815
|
"uniffi_bark_ffi_checksum_method_wallet_next_round_start_time"
|
|
@@ -8878,7 +8817,7 @@ function uniffiEnsureInitialized() {
|
|
|
8878
8817
|
}
|
|
8879
8818
|
if (
|
|
8880
8819
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_notifications() !==
|
|
8881
|
-
|
|
8820
|
+
2291
|
|
8882
8821
|
) {
|
|
8883
8822
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8884
8823
|
"uniffi_bark_ffi_checksum_method_wallet_notifications"
|
|
@@ -8886,7 +8825,7 @@ function uniffiEnsureInitialized() {
|
|
|
8886
8825
|
}
|
|
8887
8826
|
if (
|
|
8888
8827
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_all() !==
|
|
8889
|
-
|
|
8828
|
+
16535
|
|
8890
8829
|
) {
|
|
8891
8830
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8892
8831
|
"uniffi_bark_ffi_checksum_method_wallet_offboard_all"
|
|
@@ -8894,7 +8833,7 @@ function uniffiEnsureInitialized() {
|
|
|
8894
8833
|
}
|
|
8895
8834
|
if (
|
|
8896
8835
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_vtxos() !==
|
|
8897
|
-
|
|
8836
|
+
13685
|
|
8898
8837
|
) {
|
|
8899
8838
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8900
8839
|
"uniffi_bark_ffi_checksum_method_wallet_offboard_vtxos"
|
|
@@ -8902,7 +8841,7 @@ function uniffiEnsureInitialized() {
|
|
|
8902
8841
|
}
|
|
8903
8842
|
if (
|
|
8904
8843
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_address() !==
|
|
8905
|
-
|
|
8844
|
+
61803
|
|
8906
8845
|
) {
|
|
8907
8846
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8908
8847
|
"uniffi_bark_ffi_checksum_method_wallet_pay_lightning_address"
|
|
@@ -8910,7 +8849,7 @@ function uniffiEnsureInitialized() {
|
|
|
8910
8849
|
}
|
|
8911
8850
|
if (
|
|
8912
8851
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_invoice() !==
|
|
8913
|
-
|
|
8852
|
+
52071
|
|
8914
8853
|
) {
|
|
8915
8854
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8916
8855
|
"uniffi_bark_ffi_checksum_method_wallet_pay_lightning_invoice"
|
|
@@ -8918,7 +8857,7 @@ function uniffiEnsureInitialized() {
|
|
|
8918
8857
|
}
|
|
8919
8858
|
if (
|
|
8920
8859
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer() !==
|
|
8921
|
-
|
|
8860
|
+
53647
|
|
8922
8861
|
) {
|
|
8923
8862
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8924
8863
|
"uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer"
|
|
@@ -8926,7 +8865,7 @@ function uniffiEnsureInitialized() {
|
|
|
8926
8865
|
}
|
|
8927
8866
|
if (
|
|
8928
8867
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_peak_address() !==
|
|
8929
|
-
|
|
8868
|
+
7833
|
|
8930
8869
|
) {
|
|
8931
8870
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8932
8871
|
"uniffi_bark_ffi_checksum_method_wallet_peak_address"
|
|
@@ -8934,7 +8873,7 @@ function uniffiEnsureInitialized() {
|
|
|
8934
8873
|
}
|
|
8935
8874
|
if (
|
|
8936
8875
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_peek_address() !==
|
|
8937
|
-
|
|
8876
|
+
6861
|
|
8938
8877
|
) {
|
|
8939
8878
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8940
8879
|
"uniffi_bark_ffi_checksum_method_wallet_peek_address"
|
|
@@ -8942,7 +8881,7 @@ function uniffiEnsureInitialized() {
|
|
|
8942
8881
|
}
|
|
8943
8882
|
if (
|
|
8944
8883
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_board_vtxos() !==
|
|
8945
|
-
|
|
8884
|
+
7372
|
|
8946
8885
|
) {
|
|
8947
8886
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8948
8887
|
"uniffi_bark_ffi_checksum_method_wallet_pending_board_vtxos"
|
|
@@ -8950,7 +8889,7 @@ function uniffiEnsureInitialized() {
|
|
|
8950
8889
|
}
|
|
8951
8890
|
if (
|
|
8952
8891
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_boards() !==
|
|
8953
|
-
|
|
8892
|
+
2627
|
|
8954
8893
|
) {
|
|
8955
8894
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8956
8895
|
"uniffi_bark_ffi_checksum_method_wallet_pending_boards"
|
|
@@ -8958,7 +8897,7 @@ function uniffiEnsureInitialized() {
|
|
|
8958
8897
|
}
|
|
8959
8898
|
if (
|
|
8960
8899
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_exits_total_sats() !==
|
|
8961
|
-
|
|
8900
|
+
11288
|
|
8962
8901
|
) {
|
|
8963
8902
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8964
8903
|
"uniffi_bark_ffi_checksum_method_wallet_pending_exits_total_sats"
|
|
@@ -8966,7 +8905,7 @@ function uniffiEnsureInitialized() {
|
|
|
8966
8905
|
}
|
|
8967
8906
|
if (
|
|
8968
8907
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_receives() !==
|
|
8969
|
-
|
|
8908
|
+
36627
|
|
8970
8909
|
) {
|
|
8971
8910
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8972
8911
|
"uniffi_bark_ffi_checksum_method_wallet_pending_lightning_receives"
|
|
@@ -8974,7 +8913,7 @@ function uniffiEnsureInitialized() {
|
|
|
8974
8913
|
}
|
|
8975
8914
|
if (
|
|
8976
8915
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_send_vtxos() !==
|
|
8977
|
-
|
|
8916
|
+
2936
|
|
8978
8917
|
) {
|
|
8979
8918
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8980
8919
|
"uniffi_bark_ffi_checksum_method_wallet_pending_lightning_send_vtxos"
|
|
@@ -8982,7 +8921,7 @@ function uniffiEnsureInitialized() {
|
|
|
8982
8921
|
}
|
|
8983
8922
|
if (
|
|
8984
8923
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_sends() !==
|
|
8985
|
-
|
|
8924
|
+
29185
|
|
8986
8925
|
) {
|
|
8987
8926
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8988
8927
|
"uniffi_bark_ffi_checksum_method_wallet_pending_lightning_sends"
|
|
@@ -8990,7 +8929,7 @@ function uniffiEnsureInitialized() {
|
|
|
8990
8929
|
}
|
|
8991
8930
|
if (
|
|
8992
8931
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_round_input_vtxos() !==
|
|
8993
|
-
|
|
8932
|
+
47726
|
|
8994
8933
|
) {
|
|
8995
8934
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
8996
8935
|
"uniffi_bark_ffi_checksum_method_wallet_pending_round_input_vtxos"
|
|
@@ -8998,7 +8937,7 @@ function uniffiEnsureInitialized() {
|
|
|
8998
8937
|
}
|
|
8999
8938
|
if (
|
|
9000
8939
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_round_states() !==
|
|
9001
|
-
|
|
8940
|
+
40607
|
|
9002
8941
|
) {
|
|
9003
8942
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9004
8943
|
"uniffi_bark_ffi_checksum_method_wallet_pending_round_states"
|
|
@@ -9006,7 +8945,7 @@ function uniffiEnsureInitialized() {
|
|
|
9006
8945
|
}
|
|
9007
8946
|
if (
|
|
9008
8947
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_progress_exits() !==
|
|
9009
|
-
|
|
8948
|
+
56322
|
|
9010
8949
|
) {
|
|
9011
8950
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9012
8951
|
"uniffi_bark_ffi_checksum_method_wallet_progress_exits"
|
|
@@ -9014,7 +8953,7 @@ function uniffiEnsureInitialized() {
|
|
|
9014
8953
|
}
|
|
9015
8954
|
if (
|
|
9016
8955
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_progress_pending_rounds() !==
|
|
9017
|
-
|
|
8956
|
+
32996
|
|
9018
8957
|
) {
|
|
9019
8958
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9020
8959
|
"uniffi_bark_ffi_checksum_method_wallet_progress_pending_rounds"
|
|
@@ -9022,7 +8961,7 @@ function uniffiEnsureInitialized() {
|
|
|
9022
8961
|
}
|
|
9023
8962
|
if (
|
|
9024
8963
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_properties() !==
|
|
9025
|
-
|
|
8964
|
+
34379
|
|
9026
8965
|
) {
|
|
9027
8966
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9028
8967
|
"uniffi_bark_ffi_checksum_method_wallet_properties"
|
|
@@ -9030,7 +8969,7 @@ function uniffiEnsureInitialized() {
|
|
|
9030
8969
|
}
|
|
9031
8970
|
if (
|
|
9032
8971
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_server() !==
|
|
9033
|
-
|
|
8972
|
+
8899
|
|
9034
8973
|
) {
|
|
9035
8974
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9036
8975
|
"uniffi_bark_ffi_checksum_method_wallet_refresh_server"
|
|
@@ -9038,7 +8977,7 @@ function uniffiEnsureInitialized() {
|
|
|
9038
8977
|
}
|
|
9039
8978
|
if (
|
|
9040
8979
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos() !==
|
|
9041
|
-
|
|
8980
|
+
34165
|
|
9042
8981
|
) {
|
|
9043
8982
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9044
8983
|
"uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos"
|
|
@@ -9046,7 +8985,7 @@ function uniffiEnsureInitialized() {
|
|
|
9046
8985
|
}
|
|
9047
8986
|
if (
|
|
9048
8987
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated() !==
|
|
9049
|
-
|
|
8988
|
+
16216
|
|
9050
8989
|
) {
|
|
9051
8990
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9052
8991
|
"uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated"
|
|
@@ -9054,7 +8993,7 @@ function uniffiEnsureInitialized() {
|
|
|
9054
8993
|
}
|
|
9055
8994
|
if (
|
|
9056
8995
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment() !==
|
|
9057
|
-
|
|
8996
|
+
30372
|
|
9058
8997
|
) {
|
|
9059
8998
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9060
8999
|
"uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment"
|
|
@@ -9062,7 +9001,7 @@ function uniffiEnsureInitialized() {
|
|
|
9062
9001
|
}
|
|
9063
9002
|
if (
|
|
9064
9003
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_onchain() !==
|
|
9065
|
-
|
|
9004
|
+
41628
|
|
9066
9005
|
) {
|
|
9067
9006
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9068
9007
|
"uniffi_bark_ffi_checksum_method_wallet_send_onchain"
|
|
@@ -9070,7 +9009,7 @@ function uniffiEnsureInitialized() {
|
|
|
9070
9009
|
}
|
|
9071
9010
|
if (
|
|
9072
9011
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sign_exit_claim_inputs() !==
|
|
9073
|
-
|
|
9012
|
+
57734
|
|
9074
9013
|
) {
|
|
9075
9014
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9076
9015
|
"uniffi_bark_ffi_checksum_method_wallet_sign_exit_claim_inputs"
|
|
@@ -9078,7 +9017,7 @@ function uniffiEnsureInitialized() {
|
|
|
9078
9017
|
}
|
|
9079
9018
|
if (
|
|
9080
9019
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_spendable_vtxos() !==
|
|
9081
|
-
|
|
9020
|
+
50283
|
|
9082
9021
|
) {
|
|
9083
9022
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9084
9023
|
"uniffi_bark_ffi_checksum_method_wallet_spendable_vtxos"
|
|
@@ -9086,7 +9025,7 @@ function uniffiEnsureInitialized() {
|
|
|
9086
9025
|
}
|
|
9087
9026
|
if (
|
|
9088
9027
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_entire_wallet() !==
|
|
9089
|
-
|
|
9028
|
+
64743
|
|
9090
9029
|
) {
|
|
9091
9030
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9092
9031
|
"uniffi_bark_ffi_checksum_method_wallet_start_exit_for_entire_wallet"
|
|
@@ -9094,14 +9033,14 @@ function uniffiEnsureInitialized() {
|
|
|
9094
9033
|
}
|
|
9095
9034
|
if (
|
|
9096
9035
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos() !==
|
|
9097
|
-
|
|
9036
|
+
26632
|
|
9098
9037
|
) {
|
|
9099
9038
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9100
9039
|
"uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos"
|
|
9101
9040
|
);
|
|
9102
9041
|
}
|
|
9103
9042
|
if (
|
|
9104
|
-
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync() !==
|
|
9043
|
+
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync() !== 22105
|
|
9105
9044
|
) {
|
|
9106
9045
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9107
9046
|
"uniffi_bark_ffi_checksum_method_wallet_sync"
|
|
@@ -9109,7 +9048,7 @@ function uniffiEnsureInitialized() {
|
|
|
9109
9048
|
}
|
|
9110
9049
|
if (
|
|
9111
9050
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_exits() !==
|
|
9112
|
-
|
|
9051
|
+
48880
|
|
9113
9052
|
) {
|
|
9114
9053
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9115
9054
|
"uniffi_bark_ffi_checksum_method_wallet_sync_exits"
|
|
@@ -9117,7 +9056,7 @@ function uniffiEnsureInitialized() {
|
|
|
9117
9056
|
}
|
|
9118
9057
|
if (
|
|
9119
9058
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_pending_boards() !==
|
|
9120
|
-
|
|
9059
|
+
54161
|
|
9121
9060
|
) {
|
|
9122
9061
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9123
9062
|
"uniffi_bark_ffi_checksum_method_wallet_sync_pending_boards"
|
|
@@ -9125,7 +9064,7 @@ function uniffiEnsureInitialized() {
|
|
|
9125
9064
|
}
|
|
9126
9065
|
if (
|
|
9127
9066
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_all_lightning_receives() !==
|
|
9128
|
-
|
|
9067
|
+
8024
|
|
9129
9068
|
) {
|
|
9130
9069
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9131
9070
|
"uniffi_bark_ffi_checksum_method_wallet_try_claim_all_lightning_receives"
|
|
@@ -9133,7 +9072,7 @@ function uniffiEnsureInitialized() {
|
|
|
9133
9072
|
}
|
|
9134
9073
|
if (
|
|
9135
9074
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_lightning_receive() !==
|
|
9136
|
-
|
|
9075
|
+
15026
|
|
9137
9076
|
) {
|
|
9138
9077
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9139
9078
|
"uniffi_bark_ffi_checksum_method_wallet_try_claim_lightning_receive"
|
|
@@ -9141,14 +9080,14 @@ function uniffiEnsureInitialized() {
|
|
|
9141
9080
|
}
|
|
9142
9081
|
if (
|
|
9143
9082
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address() !==
|
|
9144
|
-
|
|
9083
|
+
40498
|
|
9145
9084
|
) {
|
|
9146
9085
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9147
9086
|
"uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address"
|
|
9148
9087
|
);
|
|
9149
9088
|
}
|
|
9150
9089
|
if (
|
|
9151
|
-
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_vtxos() !==
|
|
9090
|
+
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_vtxos() !== 25706
|
|
9152
9091
|
) {
|
|
9153
9092
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9154
9093
|
"uniffi_bark_ffi_checksum_method_wallet_vtxos"
|
|
@@ -9204,7 +9143,7 @@ function uniffiEnsureInitialized() {
|
|
|
9204
9143
|
}
|
|
9205
9144
|
if (
|
|
9206
9145
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance() !==
|
|
9207
|
-
|
|
9146
|
+
16407
|
|
9208
9147
|
) {
|
|
9209
9148
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9210
9149
|
"uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance"
|
|
@@ -9212,7 +9151,7 @@ function uniffiEnsureInitialized() {
|
|
|
9212
9151
|
}
|
|
9213
9152
|
if (
|
|
9214
9153
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_tx() !==
|
|
9215
|
-
|
|
9154
|
+
7671
|
|
9216
9155
|
) {
|
|
9217
9156
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9218
9157
|
"uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_tx"
|
|
@@ -9220,7 +9159,7 @@ function uniffiEnsureInitialized() {
|
|
|
9220
9159
|
}
|
|
9221
9160
|
if (
|
|
9222
9161
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_drain_tx() !==
|
|
9223
|
-
|
|
9162
|
+
15428
|
|
9224
9163
|
) {
|
|
9225
9164
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9226
9165
|
"uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_drain_tx"
|
|
@@ -9228,7 +9167,7 @@ function uniffiEnsureInitialized() {
|
|
|
9228
9167
|
}
|
|
9229
9168
|
if (
|
|
9230
9169
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_finish_tx() !==
|
|
9231
|
-
|
|
9170
|
+
2070
|
|
9232
9171
|
) {
|
|
9233
9172
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9234
9173
|
"uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_finish_tx"
|
|
@@ -9236,7 +9175,7 @@ function uniffiEnsureInitialized() {
|
|
|
9236
9175
|
}
|
|
9237
9176
|
if (
|
|
9238
9177
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx() !==
|
|
9239
|
-
|
|
9178
|
+
35041
|
|
9240
9179
|
) {
|
|
9241
9180
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9242
9181
|
"uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx"
|
|
@@ -9244,7 +9183,7 @@ function uniffiEnsureInitialized() {
|
|
|
9244
9183
|
}
|
|
9245
9184
|
if (
|
|
9246
9185
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block() !==
|
|
9247
|
-
|
|
9186
|
+
2541
|
|
9248
9187
|
) {
|
|
9249
9188
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9250
9189
|
"uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block"
|
|
@@ -9252,7 +9191,7 @@ function uniffiEnsureInitialized() {
|
|
|
9252
9191
|
}
|
|
9253
9192
|
if (
|
|
9254
9193
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_spending_tx() !==
|
|
9255
|
-
|
|
9194
|
+
27495
|
|
9256
9195
|
) {
|
|
9257
9196
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9258
9197
|
"uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_spending_tx"
|
|
@@ -9260,7 +9199,7 @@ function uniffiEnsureInitialized() {
|
|
|
9260
9199
|
}
|
|
9261
9200
|
if (
|
|
9262
9201
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp() !==
|
|
9263
|
-
|
|
9202
|
+
34889
|
|
9264
9203
|
) {
|
|
9265
9204
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9266
9205
|
"uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp"
|
|
@@ -9268,7 +9207,7 @@ function uniffiEnsureInitialized() {
|
|
|
9268
9207
|
}
|
|
9269
9208
|
if (
|
|
9270
9209
|
nativeModule().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp() !==
|
|
9271
|
-
|
|
9210
|
+
41685
|
|
9272
9211
|
) {
|
|
9273
9212
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
9274
9213
|
"uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp"
|