@secondts/bark-react-native 0.5.3 → 0.6.2
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/README.md +1 -1
- package/cpp/generated/bark.cpp +971 -652
- package/cpp/generated/bark.hpp +30 -16
- package/lib/commonjs/generated/bark-ffi.js.map +1 -1
- package/lib/commonjs/generated/bark.js +879 -1140
- 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 +876 -1139
- package/lib/module/generated/bark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts +37 -23
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark.d.ts +353 -1345
- package/lib/typescript/commonjs/src/generated/bark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark-ffi.d.ts +37 -23
- package/lib/typescript/module/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark.d.ts +353 -1345
- package/lib/typescript/module/src/generated/bark.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/generated/bark-ffi.ts +111 -39
- package/src/generated/bark.ts +2243 -2876
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default = exports.WalletProperties = exports.WalletNotification_Tags = exports.WalletNotification = exports.Wallet = exports.Vtxo = exports.RoundState = exports.PendingBoard = exports.OutPoint = exports.OnchainWallet = exports.OnchainBalance = exports.OffboardResult = exports.NotificationHolder = exports.Network = exports.Movement = exports.LogLevel = exports.LightningSend = exports.LightningReceive = exports.LightningInvoice = exports.FeeEstimate = exports.ExitVtxo = exports.ExitTransactionStatus = exports.ExitProgressStatus = exports.ExitClaimTransaction = exports.Destination = exports.CpfpParams = exports.Config = exports.BlockRef = exports.BarkError_Tags = exports.BarkError = exports.Balance = exports.ArkInfo = exports.AddressWithIndex = void 0;
|
|
6
|
+
exports.default = exports.WalletProperties = exports.WalletNotification_Tags = exports.WalletNotification = exports.Wallet = exports.Vtxo = exports.RoundState = exports.PendingBoard = exports.OutPoint = exports.OnchainWallet = exports.OnchainBalance = exports.OffboardResult = exports.NotificationHolder = exports.Network = exports.Movement = exports.LogLevel = exports.LightningSend = exports.LightningReceive = exports.LightningInvoice = exports.FeeEstimate = exports.ExitVtxo = exports.ExitTransactionStatus = exports.ExitProgressStatus = exports.ExitClaimTransaction = exports.Destination = exports.CustomOnchainWalletCallbacksImpl = exports.CpfpParams = exports.Config = exports.BlockRef = exports.BarkLoggerImpl = exports.BarkError_Tags = exports.BarkError = exports.Balance = exports.ArkInfo = exports.AddressWithIndex = void 0;
|
|
7
7
|
exports.extractTxFromPsbt = extractTxFromPsbt;
|
|
8
8
|
exports.generateMnemonic = generateMnemonic;
|
|
9
9
|
exports.setLogger = setLogger;
|
|
@@ -30,240 +30,64 @@ typeof process !== "object" ||
|
|
|
30
30
|
process?.env?.NODE_ENV !== "production" || false;
|
|
31
31
|
// Public interface members begin here.
|
|
32
32
|
|
|
33
|
+
/**
|
|
34
|
+
* Extract a signed transaction from a PSBT
|
|
35
|
+
*
|
|
36
|
+
* Takes a base64-encoded PSBT and extracts the final signed transaction.
|
|
37
|
+
* This is useful after signing a PSBT (e.g., from drain_exits) before broadcasting.
|
|
38
|
+
*
|
|
39
|
+
* # Arguments
|
|
40
|
+
*
|
|
41
|
+
* * `psbt_base64` - Base64-encoded PSBT string
|
|
42
|
+
*
|
|
43
|
+
* # Returns
|
|
44
|
+
*
|
|
45
|
+
* Hex-encoded signed transaction ready for broadcasting
|
|
46
|
+
*/
|
|
33
47
|
function extractTxFromPsbt(psbtBase64) /*throws*/{
|
|
34
48
|
return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
|
|
35
49
|
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_func_extract_tx_from_psbt(FfiConverterString.lower(psbtBase64), callStatus);
|
|
36
50
|
}, /*liftString:*/FfiConverterString.lift));
|
|
37
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* Generate a new 12-word BIP39 mnemonic
|
|
54
|
+
*/
|
|
38
55
|
function generateMnemonic() /*throws*/{
|
|
39
56
|
return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
|
|
40
57
|
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_func_generate_mnemonic(callStatus);
|
|
41
58
|
}, /*liftString:*/FfiConverterString.lift));
|
|
42
59
|
}
|
|
43
60
|
/**
|
|
44
|
-
*
|
|
45
|
-
*
|
|
61
|
+
* Validate an Ark address (basic format check only)
|
|
62
|
+
*
|
|
63
|
+
* This only validates the format of the address, not whether it belongs
|
|
64
|
+
* to a specific Ark server. For full validation against a connected server,
|
|
65
|
+
* use Wallet::validate_arkoor_address() instead.
|
|
46
66
|
*/
|
|
47
|
-
function setLogger(logger, maxLevel) /*throws*/{
|
|
48
|
-
uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
|
|
49
|
-
(0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_func_set_logger(FfiConverterTypeBarkLogger.lower(logger), FfiConverterTypeLogLevel.lower(maxLevel), callStatus);
|
|
50
|
-
}, /*liftString:*/FfiConverterString.lift);
|
|
51
|
-
}
|
|
52
67
|
function validateArkAddress(address) /*throws*/{
|
|
53
68
|
return _uniffiBindgenReactNative.FfiConverterBool.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
|
|
54
69
|
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_func_validate_ark_address(FfiConverterString.lower(address), callStatus);
|
|
55
70
|
}, /*liftString:*/FfiConverterString.lift));
|
|
56
71
|
}
|
|
72
|
+
/**
|
|
73
|
+
* Validate a BIP39 mnemonic phrase
|
|
74
|
+
*/
|
|
57
75
|
function validateMnemonic(mnemonic) /*throws*/{
|
|
58
76
|
return _uniffiBindgenReactNative.FfiConverterBool.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
|
|
59
77
|
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_func_validate_mnemonic(FfiConverterString.lower(mnemonic), callStatus);
|
|
60
78
|
}, /*liftString:*/FfiConverterString.lift));
|
|
61
79
|
}
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Foreign sink for log records. Implement in Dart/Swift/Kotlin and pass to
|
|
65
|
-
* [set_logger]. The `log()` method must not call back into bark APIs that
|
|
66
|
-
* emit log records.
|
|
67
|
-
*/
|
|
68
|
-
|
|
69
|
-
// Put the implementation in a struct so we don't pollute the top-level namespace
|
|
70
|
-
const uniffiCallbackInterfaceBarkLogger = {
|
|
71
|
-
// Create the VTable using a series of closures.
|
|
72
|
-
// ts automatically converts these into C callback functions.
|
|
73
|
-
vtable: {
|
|
74
|
-
log: (uniffiHandle, level, target, message) => {
|
|
75
|
-
const uniffiMakeCall = () => {
|
|
76
|
-
const jsCallback = FfiConverterTypeBarkLogger.lift(uniffiHandle);
|
|
77
|
-
return jsCallback.log(FfiConverterTypeLogLevel.lift(level), FfiConverterString.lift(target), FfiConverterString.lift(message));
|
|
78
|
-
};
|
|
79
|
-
const uniffiResult = _uniffiBindgenReactNative.UniffiResult.ready();
|
|
80
|
-
const uniffiHandleSuccess = obj => {};
|
|
81
|
-
const uniffiHandleError = (code, errBuf) => {
|
|
82
|
-
_uniffiBindgenReactNative.UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
83
|
-
};
|
|
84
|
-
(0, _uniffiBindgenReactNative.uniffiTraitInterfaceCall)(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*lowerString:*/FfiConverterString.lower);
|
|
85
|
-
return uniffiResult;
|
|
86
|
-
},
|
|
87
|
-
uniffiFree: uniffiHandle => {
|
|
88
|
-
// BarkLogger: this will throw a stale handle error if the handle isn't found.
|
|
89
|
-
FfiConverterTypeBarkLogger.drop(uniffiHandle);
|
|
90
|
-
},
|
|
91
|
-
uniffiClone: uniffiHandle => {
|
|
92
|
-
return FfiConverterTypeBarkLogger.clone(uniffiHandle);
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
register: () => {
|
|
96
|
-
(0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_init_callback_vtable_barklogger(uniffiCallbackInterfaceBarkLogger.vtable);
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
// FfiConverter protocol for callback interfaces
|
|
101
|
-
const FfiConverterTypeBarkLogger = new _uniffiBindgenReactNative.FfiConverterCallback();
|
|
102
|
-
|
|
103
80
|
/**
|
|
104
|
-
*
|
|
81
|
+
* Install the foreign logger.
|
|
105
82
|
*
|
|
106
|
-
*
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
// Put the implementation in a struct so we don't pollute the top-level namespace
|
|
110
|
-
const uniffiCallbackInterfaceCustomOnchainWalletCallbacks = {
|
|
111
|
-
// Create the VTable using a series of closures.
|
|
112
|
-
// ts automatically converts these into C callback functions.
|
|
113
|
-
vtable: {
|
|
114
|
-
getBalance: uniffiHandle => {
|
|
115
|
-
const uniffiMakeCall = () => {
|
|
116
|
-
const jsCallback = FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);
|
|
117
|
-
return jsCallback.getBalance();
|
|
118
|
-
};
|
|
119
|
-
const uniffiResult = _uniffiBindgenReactNative.UniffiResult.ready();
|
|
120
|
-
const uniffiHandleSuccess = obj => {
|
|
121
|
-
_uniffiBindgenReactNative.UniffiResult.writeSuccess(uniffiResult, _uniffiBindgenReactNative.FfiConverterUInt64.lower(obj));
|
|
122
|
-
};
|
|
123
|
-
const uniffiHandleError = (code, errBuf) => {
|
|
124
|
-
_uniffiBindgenReactNative.UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
125
|
-
};
|
|
126
|
-
(0, _uniffiBindgenReactNative.uniffiTraitInterfaceCallWithError)(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/BarkError.instanceOf, /*lowerError:*/FfiConverterTypeBarkError.lower.bind(FfiConverterTypeBarkError), /*lowerString:*/FfiConverterString.lower);
|
|
127
|
-
return uniffiResult;
|
|
128
|
-
},
|
|
129
|
-
prepareTx: (uniffiHandle, destinations, feeRateSatPerVb) => {
|
|
130
|
-
const uniffiMakeCall = () => {
|
|
131
|
-
const jsCallback = FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);
|
|
132
|
-
return jsCallback.prepareTx(FfiConverterArrayTypeDestination.lift(destinations), _uniffiBindgenReactNative.FfiConverterUInt64.lift(feeRateSatPerVb));
|
|
133
|
-
};
|
|
134
|
-
const uniffiResult = _uniffiBindgenReactNative.UniffiResult.ready();
|
|
135
|
-
const uniffiHandleSuccess = obj => {
|
|
136
|
-
_uniffiBindgenReactNative.UniffiResult.writeSuccess(uniffiResult, FfiConverterString.lower(obj));
|
|
137
|
-
};
|
|
138
|
-
const uniffiHandleError = (code, errBuf) => {
|
|
139
|
-
_uniffiBindgenReactNative.UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
140
|
-
};
|
|
141
|
-
(0, _uniffiBindgenReactNative.uniffiTraitInterfaceCallWithError)(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/BarkError.instanceOf, /*lowerError:*/FfiConverterTypeBarkError.lower.bind(FfiConverterTypeBarkError), /*lowerString:*/FfiConverterString.lower);
|
|
142
|
-
return uniffiResult;
|
|
143
|
-
},
|
|
144
|
-
prepareDrainTx: (uniffiHandle, address, feeRateSatPerVb) => {
|
|
145
|
-
const uniffiMakeCall = () => {
|
|
146
|
-
const jsCallback = FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);
|
|
147
|
-
return jsCallback.prepareDrainTx(FfiConverterString.lift(address), _uniffiBindgenReactNative.FfiConverterUInt64.lift(feeRateSatPerVb));
|
|
148
|
-
};
|
|
149
|
-
const uniffiResult = _uniffiBindgenReactNative.UniffiResult.ready();
|
|
150
|
-
const uniffiHandleSuccess = obj => {
|
|
151
|
-
_uniffiBindgenReactNative.UniffiResult.writeSuccess(uniffiResult, FfiConverterString.lower(obj));
|
|
152
|
-
};
|
|
153
|
-
const uniffiHandleError = (code, errBuf) => {
|
|
154
|
-
_uniffiBindgenReactNative.UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
155
|
-
};
|
|
156
|
-
(0, _uniffiBindgenReactNative.uniffiTraitInterfaceCallWithError)(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/BarkError.instanceOf, /*lowerError:*/FfiConverterTypeBarkError.lower.bind(FfiConverterTypeBarkError), /*lowerString:*/FfiConverterString.lower);
|
|
157
|
-
return uniffiResult;
|
|
158
|
-
},
|
|
159
|
-
finishTx: (uniffiHandle, psbtBase64) => {
|
|
160
|
-
const uniffiMakeCall = () => {
|
|
161
|
-
const jsCallback = FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);
|
|
162
|
-
return jsCallback.finishTx(FfiConverterString.lift(psbtBase64));
|
|
163
|
-
};
|
|
164
|
-
const uniffiResult = _uniffiBindgenReactNative.UniffiResult.ready();
|
|
165
|
-
const uniffiHandleSuccess = obj => {
|
|
166
|
-
_uniffiBindgenReactNative.UniffiResult.writeSuccess(uniffiResult, FfiConverterString.lower(obj));
|
|
167
|
-
};
|
|
168
|
-
const uniffiHandleError = (code, errBuf) => {
|
|
169
|
-
_uniffiBindgenReactNative.UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
170
|
-
};
|
|
171
|
-
(0, _uniffiBindgenReactNative.uniffiTraitInterfaceCallWithError)(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/BarkError.instanceOf, /*lowerError:*/FfiConverterTypeBarkError.lower.bind(FfiConverterTypeBarkError), /*lowerString:*/FfiConverterString.lower);
|
|
172
|
-
return uniffiResult;
|
|
173
|
-
},
|
|
174
|
-
getWalletTx: (uniffiHandle, txid) => {
|
|
175
|
-
const uniffiMakeCall = () => {
|
|
176
|
-
const jsCallback = FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);
|
|
177
|
-
return jsCallback.getWalletTx(FfiConverterString.lift(txid));
|
|
178
|
-
};
|
|
179
|
-
const uniffiResult = _uniffiBindgenReactNative.UniffiResult.ready();
|
|
180
|
-
const uniffiHandleSuccess = obj => {
|
|
181
|
-
_uniffiBindgenReactNative.UniffiResult.writeSuccess(uniffiResult, FfiConverterOptionalString.lower(obj));
|
|
182
|
-
};
|
|
183
|
-
const uniffiHandleError = (code, errBuf) => {
|
|
184
|
-
_uniffiBindgenReactNative.UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
185
|
-
};
|
|
186
|
-
(0, _uniffiBindgenReactNative.uniffiTraitInterfaceCallWithError)(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/BarkError.instanceOf, /*lowerError:*/FfiConverterTypeBarkError.lower.bind(FfiConverterTypeBarkError), /*lowerString:*/FfiConverterString.lower);
|
|
187
|
-
return uniffiResult;
|
|
188
|
-
},
|
|
189
|
-
getWalletTxConfirmedBlock: (uniffiHandle, txid) => {
|
|
190
|
-
const uniffiMakeCall = () => {
|
|
191
|
-
const jsCallback = FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);
|
|
192
|
-
return jsCallback.getWalletTxConfirmedBlock(FfiConverterString.lift(txid));
|
|
193
|
-
};
|
|
194
|
-
const uniffiResult = _uniffiBindgenReactNative.UniffiResult.ready();
|
|
195
|
-
const uniffiHandleSuccess = obj => {
|
|
196
|
-
_uniffiBindgenReactNative.UniffiResult.writeSuccess(uniffiResult, FfiConverterOptionalTypeBlockRef.lower(obj));
|
|
197
|
-
};
|
|
198
|
-
const uniffiHandleError = (code, errBuf) => {
|
|
199
|
-
_uniffiBindgenReactNative.UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
200
|
-
};
|
|
201
|
-
(0, _uniffiBindgenReactNative.uniffiTraitInterfaceCallWithError)(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/BarkError.instanceOf, /*lowerError:*/FfiConverterTypeBarkError.lower.bind(FfiConverterTypeBarkError), /*lowerString:*/FfiConverterString.lower);
|
|
202
|
-
return uniffiResult;
|
|
203
|
-
},
|
|
204
|
-
getSpendingTx: (uniffiHandle, outpoint) => {
|
|
205
|
-
const uniffiMakeCall = () => {
|
|
206
|
-
const jsCallback = FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);
|
|
207
|
-
return jsCallback.getSpendingTx(FfiConverterTypeOutPoint.lift(outpoint));
|
|
208
|
-
};
|
|
209
|
-
const uniffiResult = _uniffiBindgenReactNative.UniffiResult.ready();
|
|
210
|
-
const uniffiHandleSuccess = obj => {
|
|
211
|
-
_uniffiBindgenReactNative.UniffiResult.writeSuccess(uniffiResult, FfiConverterOptionalString.lower(obj));
|
|
212
|
-
};
|
|
213
|
-
const uniffiHandleError = (code, errBuf) => {
|
|
214
|
-
_uniffiBindgenReactNative.UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
215
|
-
};
|
|
216
|
-
(0, _uniffiBindgenReactNative.uniffiTraitInterfaceCallWithError)(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/BarkError.instanceOf, /*lowerError:*/FfiConverterTypeBarkError.lower.bind(FfiConverterTypeBarkError), /*lowerString:*/FfiConverterString.lower);
|
|
217
|
-
return uniffiResult;
|
|
218
|
-
},
|
|
219
|
-
makeSignedP2aCpfp: (uniffiHandle, params) => {
|
|
220
|
-
const uniffiMakeCall = () => {
|
|
221
|
-
const jsCallback = FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);
|
|
222
|
-
return jsCallback.makeSignedP2aCpfp(FfiConverterTypeCpfpParams.lift(params));
|
|
223
|
-
};
|
|
224
|
-
const uniffiResult = _uniffiBindgenReactNative.UniffiResult.ready();
|
|
225
|
-
const uniffiHandleSuccess = obj => {
|
|
226
|
-
_uniffiBindgenReactNative.UniffiResult.writeSuccess(uniffiResult, FfiConverterString.lower(obj));
|
|
227
|
-
};
|
|
228
|
-
const uniffiHandleError = (code, errBuf) => {
|
|
229
|
-
_uniffiBindgenReactNative.UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
230
|
-
};
|
|
231
|
-
(0, _uniffiBindgenReactNative.uniffiTraitInterfaceCallWithError)(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/BarkError.instanceOf, /*lowerError:*/FfiConverterTypeBarkError.lower.bind(FfiConverterTypeBarkError), /*lowerString:*/FfiConverterString.lower);
|
|
232
|
-
return uniffiResult;
|
|
233
|
-
},
|
|
234
|
-
storeSignedP2aCpfp: (uniffiHandle, txHex) => {
|
|
235
|
-
const uniffiMakeCall = () => {
|
|
236
|
-
const jsCallback = FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);
|
|
237
|
-
return jsCallback.storeSignedP2aCpfp(FfiConverterString.lift(txHex));
|
|
238
|
-
};
|
|
239
|
-
const uniffiResult = _uniffiBindgenReactNative.UniffiResult.ready();
|
|
240
|
-
const uniffiHandleSuccess = obj => {};
|
|
241
|
-
const uniffiHandleError = (code, errBuf) => {
|
|
242
|
-
_uniffiBindgenReactNative.UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
243
|
-
};
|
|
244
|
-
(0, _uniffiBindgenReactNative.uniffiTraitInterfaceCallWithError)(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/BarkError.instanceOf, /*lowerError:*/FfiConverterTypeBarkError.lower.bind(FfiConverterTypeBarkError), /*lowerString:*/FfiConverterString.lower);
|
|
245
|
-
return uniffiResult;
|
|
246
|
-
},
|
|
247
|
-
uniffiFree: uniffiHandle => {
|
|
248
|
-
// CustomOnchainWalletCallbacks: this will throw a stale handle error if the handle isn't found.
|
|
249
|
-
FfiConverterTypeCustomOnchainWalletCallbacks.drop(uniffiHandle);
|
|
250
|
-
},
|
|
251
|
-
uniffiClone: uniffiHandle => {
|
|
252
|
-
return FfiConverterTypeCustomOnchainWalletCallbacks.clone(uniffiHandle);
|
|
253
|
-
}
|
|
254
|
-
},
|
|
255
|
-
register: () => {
|
|
256
|
-
(0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_init_callback_vtable_customonchainwalletcallbacks(uniffiCallbackInterfaceCustomOnchainWalletCallbacks.vtable);
|
|
257
|
-
}
|
|
258
|
-
};
|
|
259
|
-
|
|
260
|
-
// FfiConverter protocol for callback interfaces
|
|
261
|
-
const FfiConverterTypeCustomOnchainWalletCallbacks = new _uniffiBindgenReactNative.FfiConverterCallback();
|
|
262
|
-
|
|
263
|
-
/**
|
|
264
|
-
* An Ark address with its derivation index
|
|
83
|
+
* On first call, installs the bridge with `log::set_logger`. Subsequent calls
|
|
84
|
+
* will return an error.
|
|
265
85
|
*/
|
|
266
|
-
|
|
86
|
+
function setLogger(logger, maxLevel) /*throws*/{
|
|
87
|
+
uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
|
|
88
|
+
(0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_func_set_logger(FfiConverterTypeBarkLogger.lower(logger), FfiConverterTypeLogLevel.lower(maxLevel), callStatus);
|
|
89
|
+
}, /*liftString:*/FfiConverterString.lift);
|
|
90
|
+
}
|
|
267
91
|
/**
|
|
268
92
|
* Generated factory for {@link AddressWithIndex} record objects.
|
|
269
93
|
*/
|
|
@@ -296,11 +120,6 @@ const FfiConverterTypeAddressWithIndex = (() => {
|
|
|
296
120
|
}
|
|
297
121
|
return new FFIConverter();
|
|
298
122
|
})();
|
|
299
|
-
|
|
300
|
-
/**
|
|
301
|
-
* Ark server configuration information
|
|
302
|
-
*/
|
|
303
|
-
|
|
304
123
|
/**
|
|
305
124
|
* Generated factory for {@link ArkInfo} record objects.
|
|
306
125
|
*/
|
|
@@ -331,9 +150,9 @@ const FfiConverterTypeArkInfo = (() => {
|
|
|
331
150
|
requiredBoardConfirmations: _uniffiBindgenReactNative.FfiConverterUInt32.read(from),
|
|
332
151
|
maxUserInvoiceCltvDelta: _uniffiBindgenReactNative.FfiConverterUInt16.read(from),
|
|
333
152
|
minBoardAmountSats: _uniffiBindgenReactNative.FfiConverterUInt64.read(from),
|
|
334
|
-
offboardFeerateSatPerVb: _uniffiBindgenReactNative.FfiConverterUInt64.read(from),
|
|
335
153
|
lnReceiveAntiDosRequired: _uniffiBindgenReactNative.FfiConverterBool.read(from),
|
|
336
|
-
feeScheduleJson: FfiConverterString.read(from)
|
|
154
|
+
feeScheduleJson: FfiConverterString.read(from),
|
|
155
|
+
maxVtxoExitDepth: _uniffiBindgenReactNative.FfiConverterUInt16.read(from)
|
|
337
156
|
};
|
|
338
157
|
}
|
|
339
158
|
write(value, into) {
|
|
@@ -349,21 +168,16 @@ const FfiConverterTypeArkInfo = (() => {
|
|
|
349
168
|
_uniffiBindgenReactNative.FfiConverterUInt32.write(value.requiredBoardConfirmations, into);
|
|
350
169
|
_uniffiBindgenReactNative.FfiConverterUInt16.write(value.maxUserInvoiceCltvDelta, into);
|
|
351
170
|
_uniffiBindgenReactNative.FfiConverterUInt64.write(value.minBoardAmountSats, into);
|
|
352
|
-
_uniffiBindgenReactNative.FfiConverterUInt64.write(value.offboardFeerateSatPerVb, into);
|
|
353
171
|
_uniffiBindgenReactNative.FfiConverterBool.write(value.lnReceiveAntiDosRequired, into);
|
|
354
172
|
FfiConverterString.write(value.feeScheduleJson, into);
|
|
173
|
+
_uniffiBindgenReactNative.FfiConverterUInt16.write(value.maxVtxoExitDepth, into);
|
|
355
174
|
}
|
|
356
175
|
allocationSize(value) {
|
|
357
|
-
return FfiConverterTypeNetwork.allocationSize(value.network) + FfiConverterString.allocationSize(value.serverPubkey) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.roundIntervalSecs) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.nbRoundNonces) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.vtxoExitDelta) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.vtxoExpiryDelta) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.htlcSendExpiryDelta) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.htlcExpiryDelta) + FfiConverterOptionalUInt64.allocationSize(value.maxVtxoAmountSats) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.requiredBoardConfirmations) + _uniffiBindgenReactNative.FfiConverterUInt16.allocationSize(value.maxUserInvoiceCltvDelta) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.minBoardAmountSats) + _uniffiBindgenReactNative.
|
|
176
|
+
return FfiConverterTypeNetwork.allocationSize(value.network) + FfiConverterString.allocationSize(value.serverPubkey) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.roundIntervalSecs) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.nbRoundNonces) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.vtxoExitDelta) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.vtxoExpiryDelta) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.htlcSendExpiryDelta) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.htlcExpiryDelta) + FfiConverterOptionalUInt64.allocationSize(value.maxVtxoAmountSats) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.requiredBoardConfirmations) + _uniffiBindgenReactNative.FfiConverterUInt16.allocationSize(value.maxUserInvoiceCltvDelta) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.minBoardAmountSats) + _uniffiBindgenReactNative.FfiConverterBool.allocationSize(value.lnReceiveAntiDosRequired) + FfiConverterString.allocationSize(value.feeScheduleJson) + _uniffiBindgenReactNative.FfiConverterUInt16.allocationSize(value.maxVtxoExitDepth);
|
|
358
177
|
}
|
|
359
178
|
}
|
|
360
179
|
return new FFIConverter();
|
|
361
180
|
})();
|
|
362
|
-
|
|
363
|
-
/**
|
|
364
|
-
* Detailed balance breakdown of the wallet
|
|
365
|
-
*/
|
|
366
|
-
|
|
367
181
|
/**
|
|
368
182
|
* Generated factory for {@link Balance} record objects.
|
|
369
183
|
*/
|
|
@@ -441,11 +255,6 @@ const FfiConverterTypeBlockRef = (() => {
|
|
|
441
255
|
}
|
|
442
256
|
return new FFIConverter();
|
|
443
257
|
})();
|
|
444
|
-
|
|
445
|
-
/**
|
|
446
|
-
* Configuration for creating/opening a Bark wallet
|
|
447
|
-
*/
|
|
448
|
-
|
|
449
258
|
/**
|
|
450
259
|
* Generated factory for {@link Config} record objects.
|
|
451
260
|
*/
|
|
@@ -477,8 +286,10 @@ const FfiConverterTypeConfig = (() => {
|
|
|
477
286
|
htlcRecvClaimDelta: FfiConverterOptionalUInt16.read(from),
|
|
478
287
|
fallbackFeeRate: FfiConverterOptionalUInt64.read(from),
|
|
479
288
|
roundTxRequiredConfirmations: FfiConverterOptionalUInt32.read(from),
|
|
480
|
-
|
|
481
|
-
|
|
289
|
+
daemonSyncIntervalSecs: FfiConverterOptionalUInt64.read(from),
|
|
290
|
+
offboardRequiredConfirmations: FfiConverterOptionalUInt32.read(from),
|
|
291
|
+
daemonManualSync: FfiConverterOptionalBool.read(from),
|
|
292
|
+
lightningReceiveClaimRetries: FfiConverterOptionalUInt8.read(from)
|
|
482
293
|
};
|
|
483
294
|
}
|
|
484
295
|
write(value, into) {
|
|
@@ -495,11 +306,13 @@ const FfiConverterTypeConfig = (() => {
|
|
|
495
306
|
FfiConverterOptionalUInt16.write(value.htlcRecvClaimDelta, into);
|
|
496
307
|
FfiConverterOptionalUInt64.write(value.fallbackFeeRate, into);
|
|
497
308
|
FfiConverterOptionalUInt32.write(value.roundTxRequiredConfirmations, into);
|
|
498
|
-
FfiConverterOptionalUInt64.write(value.
|
|
499
|
-
|
|
309
|
+
FfiConverterOptionalUInt64.write(value.daemonSyncIntervalSecs, into);
|
|
310
|
+
FfiConverterOptionalUInt32.write(value.offboardRequiredConfirmations, into);
|
|
311
|
+
FfiConverterOptionalBool.write(value.daemonManualSync, into);
|
|
312
|
+
FfiConverterOptionalUInt8.write(value.lightningReceiveClaimRetries, into);
|
|
500
313
|
}
|
|
501
314
|
allocationSize(value) {
|
|
502
|
-
return FfiConverterString.allocationSize(value.serverAddress) + FfiConverterOptionalString.allocationSize(value.serverAccessToken) + FfiConverterOptionalString.allocationSize(value.esploraAddress) + FfiConverterOptionalString.allocationSize(value.bitcoindAddress) + FfiConverterOptionalString.allocationSize(value.bitcoindCookiefile) + FfiConverterOptionalString.allocationSize(value.bitcoindUser) + FfiConverterOptionalString.allocationSize(value.bitcoindPass) + FfiConverterTypeNetwork.allocationSize(value.network) + FfiConverterOptionalUInt32.allocationSize(value.vtxoRefreshExpiryThreshold) + FfiConverterOptionalUInt16.allocationSize(value.vtxoExitMargin) + FfiConverterOptionalUInt16.allocationSize(value.htlcRecvClaimDelta) + FfiConverterOptionalUInt64.allocationSize(value.fallbackFeeRate) + FfiConverterOptionalUInt32.allocationSize(value.roundTxRequiredConfirmations) + FfiConverterOptionalUInt64.allocationSize(value.
|
|
315
|
+
return FfiConverterString.allocationSize(value.serverAddress) + FfiConverterOptionalString.allocationSize(value.serverAccessToken) + FfiConverterOptionalString.allocationSize(value.esploraAddress) + FfiConverterOptionalString.allocationSize(value.bitcoindAddress) + FfiConverterOptionalString.allocationSize(value.bitcoindCookiefile) + FfiConverterOptionalString.allocationSize(value.bitcoindUser) + FfiConverterOptionalString.allocationSize(value.bitcoindPass) + FfiConverterTypeNetwork.allocationSize(value.network) + FfiConverterOptionalUInt32.allocationSize(value.vtxoRefreshExpiryThreshold) + FfiConverterOptionalUInt16.allocationSize(value.vtxoExitMargin) + FfiConverterOptionalUInt16.allocationSize(value.htlcRecvClaimDelta) + FfiConverterOptionalUInt64.allocationSize(value.fallbackFeeRate) + FfiConverterOptionalUInt32.allocationSize(value.roundTxRequiredConfirmations) + FfiConverterOptionalUInt64.allocationSize(value.daemonSyncIntervalSecs) + FfiConverterOptionalUInt32.allocationSize(value.offboardRequiredConfirmations) + FfiConverterOptionalBool.allocationSize(value.daemonManualSync) + FfiConverterOptionalUInt8.allocationSize(value.lightningReceiveClaimRetries);
|
|
503
316
|
}
|
|
504
317
|
}
|
|
505
318
|
return new FFIConverter();
|
|
@@ -701,7 +514,7 @@ const FfiConverterTypeExitTransactionStatus = (() => {
|
|
|
701
514
|
})();
|
|
702
515
|
|
|
703
516
|
/**
|
|
704
|
-
* A VTXO
|
|
517
|
+
* A VTXO that is being unilaterally exited
|
|
705
518
|
*/
|
|
706
519
|
|
|
707
520
|
/**
|
|
@@ -740,11 +553,6 @@ const FfiConverterTypeExitVtxo = (() => {
|
|
|
740
553
|
}
|
|
741
554
|
return new FFIConverter();
|
|
742
555
|
})();
|
|
743
|
-
|
|
744
|
-
/**
|
|
745
|
-
* Result of a fee estimation
|
|
746
|
-
*/
|
|
747
|
-
|
|
748
556
|
/**
|
|
749
557
|
* Generated factory for {@link FeeEstimate} record objects.
|
|
750
558
|
*/
|
|
@@ -781,11 +589,6 @@ const FfiConverterTypeFeeEstimate = (() => {
|
|
|
781
589
|
}
|
|
782
590
|
return new FFIConverter();
|
|
783
591
|
})();
|
|
784
|
-
|
|
785
|
-
/**
|
|
786
|
-
* Result of creating a BOLT11 invoice
|
|
787
|
-
*/
|
|
788
|
-
|
|
789
592
|
/**
|
|
790
593
|
* Generated factory for {@link LightningInvoice} record objects.
|
|
791
594
|
*/
|
|
@@ -805,24 +608,21 @@ const FfiConverterTypeLightningInvoice = (() => {
|
|
|
805
608
|
read(from) {
|
|
806
609
|
return {
|
|
807
610
|
invoice: FfiConverterString.read(from),
|
|
611
|
+
paymentHash: FfiConverterString.read(from),
|
|
808
612
|
amountSats: _uniffiBindgenReactNative.FfiConverterUInt64.read(from)
|
|
809
613
|
};
|
|
810
614
|
}
|
|
811
615
|
write(value, into) {
|
|
812
616
|
FfiConverterString.write(value.invoice, into);
|
|
617
|
+
FfiConverterString.write(value.paymentHash, into);
|
|
813
618
|
_uniffiBindgenReactNative.FfiConverterUInt64.write(value.amountSats, into);
|
|
814
619
|
}
|
|
815
620
|
allocationSize(value) {
|
|
816
|
-
return FfiConverterString.allocationSize(value.invoice) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.amountSats);
|
|
621
|
+
return FfiConverterString.allocationSize(value.invoice) + FfiConverterString.allocationSize(value.paymentHash) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.amountSats);
|
|
817
622
|
}
|
|
818
623
|
}
|
|
819
624
|
return new FFIConverter();
|
|
820
625
|
})();
|
|
821
|
-
|
|
822
|
-
/**
|
|
823
|
-
* Status of a pending Lightning receive
|
|
824
|
-
*/
|
|
825
|
-
|
|
826
626
|
/**
|
|
827
627
|
* Generated factory for {@link LightningReceive} record objects.
|
|
828
628
|
*/
|
|
@@ -842,6 +642,7 @@ const FfiConverterTypeLightningReceive = (() => {
|
|
|
842
642
|
read(from) {
|
|
843
643
|
return {
|
|
844
644
|
paymentHash: FfiConverterString.read(from),
|
|
645
|
+
paymentPreimage: FfiConverterString.read(from),
|
|
845
646
|
invoice: FfiConverterString.read(from),
|
|
846
647
|
amountSats: _uniffiBindgenReactNative.FfiConverterUInt64.read(from),
|
|
847
648
|
hasHtlcVtxos: _uniffiBindgenReactNative.FfiConverterBool.read(from),
|
|
@@ -850,22 +651,18 @@ const FfiConverterTypeLightningReceive = (() => {
|
|
|
850
651
|
}
|
|
851
652
|
write(value, into) {
|
|
852
653
|
FfiConverterString.write(value.paymentHash, into);
|
|
654
|
+
FfiConverterString.write(value.paymentPreimage, into);
|
|
853
655
|
FfiConverterString.write(value.invoice, into);
|
|
854
656
|
_uniffiBindgenReactNative.FfiConverterUInt64.write(value.amountSats, into);
|
|
855
657
|
_uniffiBindgenReactNative.FfiConverterBool.write(value.hasHtlcVtxos, into);
|
|
856
658
|
_uniffiBindgenReactNative.FfiConverterBool.write(value.preimageRevealed, into);
|
|
857
659
|
}
|
|
858
660
|
allocationSize(value) {
|
|
859
|
-
return FfiConverterString.allocationSize(value.paymentHash) + FfiConverterString.allocationSize(value.invoice) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.amountSats) + _uniffiBindgenReactNative.FfiConverterBool.allocationSize(value.hasHtlcVtxos) + _uniffiBindgenReactNative.FfiConverterBool.allocationSize(value.preimageRevealed);
|
|
661
|
+
return FfiConverterString.allocationSize(value.paymentHash) + FfiConverterString.allocationSize(value.paymentPreimage) + FfiConverterString.allocationSize(value.invoice) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.amountSats) + _uniffiBindgenReactNative.FfiConverterBool.allocationSize(value.hasHtlcVtxos) + _uniffiBindgenReactNative.FfiConverterBool.allocationSize(value.preimageRevealed);
|
|
860
662
|
}
|
|
861
663
|
}
|
|
862
664
|
return new FFIConverter();
|
|
863
665
|
})();
|
|
864
|
-
|
|
865
|
-
/**
|
|
866
|
-
* Lightning send payment information
|
|
867
|
-
*/
|
|
868
|
-
|
|
869
666
|
/**
|
|
870
667
|
* Generated factory for {@link LightningSend} record objects.
|
|
871
668
|
*/
|
|
@@ -902,11 +699,6 @@ const FfiConverterTypeLightningSend = (() => {
|
|
|
902
699
|
}
|
|
903
700
|
return new FFIConverter();
|
|
904
701
|
})();
|
|
905
|
-
|
|
906
|
-
/**
|
|
907
|
-
* Wallet movement/transaction record
|
|
908
|
-
*/
|
|
909
|
-
|
|
910
702
|
/**
|
|
911
703
|
* Generated factory for {@link Movement} record objects.
|
|
912
704
|
*/
|
|
@@ -967,11 +759,6 @@ const FfiConverterTypeMovement = (() => {
|
|
|
967
759
|
}
|
|
968
760
|
return new FFIConverter();
|
|
969
761
|
})();
|
|
970
|
-
|
|
971
|
-
/**
|
|
972
|
-
* Result of an offboard operation
|
|
973
|
-
*/
|
|
974
|
-
|
|
975
762
|
/**
|
|
976
763
|
* Generated factory for {@link OffboardResult} record objects.
|
|
977
764
|
*/
|
|
@@ -1002,11 +789,6 @@ const FfiConverterTypeOffboardResult = (() => {
|
|
|
1002
789
|
}
|
|
1003
790
|
return new FFIConverter();
|
|
1004
791
|
})();
|
|
1005
|
-
|
|
1006
|
-
/**
|
|
1007
|
-
* Onchain Bitcoin wallet balance
|
|
1008
|
-
*/
|
|
1009
|
-
|
|
1010
792
|
/**
|
|
1011
793
|
* Generated factory for {@link OnchainBalance} record objects.
|
|
1012
794
|
*/
|
|
@@ -1078,11 +860,6 @@ const FfiConverterTypeOutPoint = (() => {
|
|
|
1078
860
|
}
|
|
1079
861
|
return new FFIConverter();
|
|
1080
862
|
})();
|
|
1081
|
-
|
|
1082
|
-
/**
|
|
1083
|
-
* Pending board transaction information
|
|
1084
|
-
*/
|
|
1085
|
-
|
|
1086
863
|
/**
|
|
1087
864
|
* Generated factory for {@link PendingBoard} record objects.
|
|
1088
865
|
*/
|
|
@@ -1154,11 +931,6 @@ const FfiConverterTypeRoundState = (() => {
|
|
|
1154
931
|
}
|
|
1155
932
|
return new FFIConverter();
|
|
1156
933
|
})();
|
|
1157
|
-
|
|
1158
|
-
/**
|
|
1159
|
-
* Simplified view of a VTXO
|
|
1160
|
-
*/
|
|
1161
|
-
|
|
1162
934
|
/**
|
|
1163
935
|
* Generated factory for {@link Vtxo} record objects.
|
|
1164
936
|
*/
|
|
@@ -1181,7 +953,9 @@ const FfiConverterTypeVtxo = (() => {
|
|
|
1181
953
|
amountSats: _uniffiBindgenReactNative.FfiConverterUInt64.read(from),
|
|
1182
954
|
expiryHeight: _uniffiBindgenReactNative.FfiConverterUInt32.read(from),
|
|
1183
955
|
kind: FfiConverterString.read(from),
|
|
1184
|
-
state: FfiConverterString.read(from)
|
|
956
|
+
state: FfiConverterString.read(from),
|
|
957
|
+
exitDepth: _uniffiBindgenReactNative.FfiConverterUInt32.read(from),
|
|
958
|
+
exitTxWeightWu: _uniffiBindgenReactNative.FfiConverterUInt64.read(from)
|
|
1185
959
|
};
|
|
1186
960
|
}
|
|
1187
961
|
write(value, into) {
|
|
@@ -1190,18 +964,15 @@ const FfiConverterTypeVtxo = (() => {
|
|
|
1190
964
|
_uniffiBindgenReactNative.FfiConverterUInt32.write(value.expiryHeight, into);
|
|
1191
965
|
FfiConverterString.write(value.kind, into);
|
|
1192
966
|
FfiConverterString.write(value.state, into);
|
|
967
|
+
_uniffiBindgenReactNative.FfiConverterUInt32.write(value.exitDepth, into);
|
|
968
|
+
_uniffiBindgenReactNative.FfiConverterUInt64.write(value.exitTxWeightWu, into);
|
|
1193
969
|
}
|
|
1194
970
|
allocationSize(value) {
|
|
1195
|
-
return FfiConverterString.allocationSize(value.id) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.amountSats) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.expiryHeight) + FfiConverterString.allocationSize(value.kind) + FfiConverterString.allocationSize(value.state);
|
|
971
|
+
return FfiConverterString.allocationSize(value.id) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.amountSats) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.expiryHeight) + FfiConverterString.allocationSize(value.kind) + FfiConverterString.allocationSize(value.state) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.exitDepth) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.exitTxWeightWu);
|
|
1196
972
|
}
|
|
1197
973
|
}
|
|
1198
974
|
return new FFIConverter();
|
|
1199
975
|
})();
|
|
1200
|
-
|
|
1201
|
-
/**
|
|
1202
|
-
* Read-only properties of the wallet
|
|
1203
|
-
*/
|
|
1204
|
-
|
|
1205
976
|
/**
|
|
1206
977
|
* Generated factory for {@link WalletProperties} record objects.
|
|
1207
978
|
*/
|
|
@@ -1262,7 +1033,7 @@ let BarkError_Tags = exports.BarkError_Tags = /*#__PURE__*/function (BarkError_T
|
|
|
1262
1033
|
return BarkError_Tags;
|
|
1263
1034
|
}({});
|
|
1264
1035
|
/**
|
|
1265
|
-
* Error types that can occur when using the Bark wallet
|
|
1036
|
+
* Error types that can occur when using the Bark wallet FFI
|
|
1266
1037
|
*/
|
|
1267
1038
|
const BarkError = exports.BarkError = (() => {
|
|
1268
1039
|
class Network_ extends _uniffiBindgenReactNative.UniffiError {
|
|
@@ -1624,7 +1395,7 @@ const BarkError = exports.BarkError = (() => {
|
|
|
1624
1395
|
})();
|
|
1625
1396
|
|
|
1626
1397
|
/**
|
|
1627
|
-
* Error types that can occur when using the Bark wallet
|
|
1398
|
+
* Error types that can occur when using the Bark wallet FFI
|
|
1628
1399
|
*/
|
|
1629
1400
|
|
|
1630
1401
|
// FfiConverter for enum BarkError
|
|
@@ -1907,7 +1678,7 @@ const FfiConverterTypeBarkError = (() => {
|
|
|
1907
1678
|
})();
|
|
1908
1679
|
|
|
1909
1680
|
/**
|
|
1910
|
-
* Severity of a log record
|
|
1681
|
+
* Severity of a log record.
|
|
1911
1682
|
*/
|
|
1912
1683
|
let LogLevel = exports.LogLevel = /*#__PURE__*/function (LogLevel) {
|
|
1913
1684
|
LogLevel[LogLevel["Error"] = 0] = "Error";
|
|
@@ -1956,10 +1727,6 @@ const FfiConverterTypeLogLevel = (() => {
|
|
|
1956
1727
|
}
|
|
1957
1728
|
return new FFIConverter();
|
|
1958
1729
|
})();
|
|
1959
|
-
|
|
1960
|
-
/**
|
|
1961
|
-
* Bitcoin network types
|
|
1962
|
-
*/
|
|
1963
1730
|
let Network = exports.Network = /*#__PURE__*/function (Network) {
|
|
1964
1731
|
Network[Network["Bitcoin"] = 0] = "Bitcoin";
|
|
1965
1732
|
Network[Network["Testnet"] = 1] = "Testnet";
|
|
@@ -2057,7 +1824,7 @@ const WalletNotification = exports.WalletNotification = (() => {
|
|
|
2057
1824
|
}
|
|
2058
1825
|
}
|
|
2059
1826
|
/**
|
|
2060
|
-
* The notification channel is lagging (
|
|
1827
|
+
* The notification channel is lagging (notifications were dropped)
|
|
2061
1828
|
*/
|
|
2062
1829
|
class ChannelLagging_ extends _uniffiBindgenReactNative.UniffiEnum {
|
|
2063
1830
|
/**
|
|
@@ -2166,107 +1933,62 @@ const FfiConverterTypeWalletNotification = (() => {
|
|
|
2166
1933
|
})();
|
|
2167
1934
|
|
|
2168
1935
|
/**
|
|
2169
|
-
*
|
|
2170
|
-
*
|
|
2171
|
-
* Obtain via `Wallet.notifications()`. Call `next_notification()` in a loop
|
|
2172
|
-
* to receive events. Call `cancel_next_notification_wait()` to unblock a
|
|
2173
|
-
* pending wait without destroying the underlying stream.
|
|
1936
|
+
* Foreign-implemented sink for log records.
|
|
2174
1937
|
*
|
|
2175
|
-
*
|
|
2176
|
-
*
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
/**
|
|
2180
|
-
* @deprecated Use `NotificationHolderLike` instead.
|
|
1938
|
+
* IMPORTANT: implementations must not call back into bark APIs that
|
|
1939
|
+
* themselves emit log records, or the foreign runtime may stack-overflow
|
|
1940
|
+
* or deadlock.
|
|
2181
1941
|
*/
|
|
2182
1942
|
|
|
2183
1943
|
/**
|
|
2184
|
-
*
|
|
2185
|
-
*
|
|
2186
|
-
* Obtain via `Wallet.notifications()`. Call `next_notification()` in a loop
|
|
2187
|
-
* to receive events. Call `cancel_next_notification_wait()` to unblock a
|
|
2188
|
-
* pending wait without destroying the underlying stream.
|
|
1944
|
+
* Foreign-implemented sink for log records.
|
|
2189
1945
|
*
|
|
2190
|
-
*
|
|
2191
|
-
*
|
|
1946
|
+
* IMPORTANT: implementations must not call back into bark APIs that
|
|
1947
|
+
* themselves emit log records, or the foreign runtime may stack-overflow
|
|
1948
|
+
* or deadlock.
|
|
2192
1949
|
*/
|
|
2193
|
-
class
|
|
2194
|
-
[_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "
|
|
1950
|
+
class BarkLoggerImpl extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
1951
|
+
[_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "BarkLoggerImpl";
|
|
2195
1952
|
// No primary constructor declared for this class.
|
|
2196
1953
|
constructor(pointer) {
|
|
2197
1954
|
super();
|
|
2198
1955
|
this[_uniffiBindgenReactNative.pointerLiteralSymbol] = pointer;
|
|
2199
|
-
this[_uniffiBindgenReactNative.destructorGuardSymbol] =
|
|
1956
|
+
this[_uniffiBindgenReactNative.destructorGuardSymbol] = uniffiTypeBarkLoggerImplObjectFactory.bless(pointer);
|
|
2200
1957
|
}
|
|
2201
|
-
|
|
2202
|
-
/**
|
|
2203
|
-
* Cancel the currently pending `next_notification()` wait.
|
|
2204
|
-
*
|
|
2205
|
-
* Causes a blocked `next_notification()` to return null.
|
|
2206
|
-
* Has no effect when no wait is active.
|
|
2207
|
-
* Does NOT destroy the underlying stream; subsequent calls to
|
|
2208
|
-
* `next_notification()` will still work.
|
|
2209
|
-
*/
|
|
2210
|
-
cancelNextNotificationWait() {
|
|
1958
|
+
log(level, target, message) {
|
|
2211
1959
|
uniffiCaller.rustCall(/*caller:*/callStatus => {
|
|
2212
|
-
(0, _barkFfi.default)().
|
|
1960
|
+
(0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_barklogger_log(uniffiTypeBarkLoggerImplObjectFactory.clonePointer(this), FfiConverterTypeLogLevel.lower(level), FfiConverterString.lower(target), FfiConverterString.lower(message), callStatus);
|
|
2213
1961
|
}, /*liftString:*/FfiConverterString.lift);
|
|
2214
1962
|
}
|
|
2215
1963
|
|
|
2216
|
-
/**
|
|
2217
|
-
* Wait for the next notification.
|
|
2218
|
-
*
|
|
2219
|
-
* Returns null if the wait was cancelled via `cancel_next_notification_wait()`
|
|
2220
|
-
* or if the wallet's notification source was shut down permanently.
|
|
2221
|
-
*
|
|
2222
|
-
* After a cancellation this method can be called again normally — the
|
|
2223
|
-
* underlying stream is preserved and a fresh cancel channel is set up on
|
|
2224
|
-
* every entry.
|
|
2225
|
-
*
|
|
2226
|
-
* Throws `BarkError.Internal` if called concurrently on the same holder.
|
|
2227
|
-
*/
|
|
2228
|
-
async nextNotification(asyncOpts_) /*throws*/{
|
|
2229
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2230
|
-
try {
|
|
2231
|
-
return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2232
|
-
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_notificationholder_next_notification(uniffiTypeNotificationHolderObjectFactory.clonePointer(this));
|
|
2233
|
-
}, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalTypeWalletNotification.lift.bind(FfiConverterOptionalTypeWalletNotification), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2234
|
-
} catch (__error) {
|
|
2235
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
2236
|
-
__error.stack = __stack;
|
|
2237
|
-
}
|
|
2238
|
-
throw __error;
|
|
2239
|
-
}
|
|
2240
|
-
}
|
|
2241
|
-
|
|
2242
1964
|
/**
|
|
2243
1965
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
2244
1966
|
*/
|
|
2245
1967
|
uniffiDestroy() {
|
|
2246
1968
|
const ptr = this[_uniffiBindgenReactNative.destructorGuardSymbol];
|
|
2247
1969
|
if (ptr !== undefined) {
|
|
2248
|
-
const pointer =
|
|
2249
|
-
|
|
2250
|
-
|
|
1970
|
+
const pointer = uniffiTypeBarkLoggerImplObjectFactory.pointer(this);
|
|
1971
|
+
uniffiTypeBarkLoggerImplObjectFactory.freePointer(pointer);
|
|
1972
|
+
uniffiTypeBarkLoggerImplObjectFactory.unbless(ptr);
|
|
2251
1973
|
delete this[_uniffiBindgenReactNative.destructorGuardSymbol];
|
|
2252
1974
|
}
|
|
2253
1975
|
}
|
|
2254
1976
|
static instanceOf(obj) {
|
|
2255
|
-
return
|
|
1977
|
+
return uniffiTypeBarkLoggerImplObjectFactory.isConcreteType(obj);
|
|
2256
1978
|
}
|
|
2257
1979
|
}
|
|
2258
|
-
exports.
|
|
2259
|
-
const
|
|
1980
|
+
exports.BarkLoggerImpl = BarkLoggerImpl;
|
|
1981
|
+
const uniffiTypeBarkLoggerImplObjectFactory = (() => {
|
|
2260
1982
|
return {
|
|
2261
1983
|
create(pointer) {
|
|
2262
|
-
const instance = Object.create(
|
|
1984
|
+
const instance = Object.create(BarkLoggerImpl.prototype);
|
|
2263
1985
|
instance[_uniffiBindgenReactNative.pointerLiteralSymbol] = pointer;
|
|
2264
1986
|
instance[_uniffiBindgenReactNative.destructorGuardSymbol] = this.bless(pointer);
|
|
2265
|
-
instance[_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "
|
|
1987
|
+
instance[_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "BarkLoggerImpl";
|
|
2266
1988
|
return instance;
|
|
2267
1989
|
},
|
|
2268
1990
|
bless(p) {
|
|
2269
|
-
return uniffiCaller.rustCall(/*caller:*/status => (0, _barkFfi.default)().
|
|
1991
|
+
return uniffiCaller.rustCall(/*caller:*/status => (0, _barkFfi.default)().ubrn_uniffi_internal_fn_method_barklogger_ffi__bless_pointer(p, status), /*liftString:*/FfiConverterString.lift);
|
|
2270
1992
|
},
|
|
2271
1993
|
unbless(ptr) {
|
|
2272
1994
|
ptr.markDestroyed();
|
|
@@ -2279,148 +2001,198 @@ const uniffiTypeNotificationHolderObjectFactory = (() => {
|
|
|
2279
2001
|
},
|
|
2280
2002
|
clonePointer(obj) {
|
|
2281
2003
|
const pointer = this.pointer(obj);
|
|
2282
|
-
return uniffiCaller.rustCall(/*caller:*/callStatus => (0, _barkFfi.default)().
|
|
2004
|
+
return uniffiCaller.rustCall(/*caller:*/callStatus => (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_clone_barklogger(pointer, callStatus), /*liftString:*/FfiConverterString.lift);
|
|
2283
2005
|
},
|
|
2284
2006
|
freePointer(pointer) {
|
|
2285
|
-
uniffiCaller.rustCall(/*caller:*/callStatus => (0, _barkFfi.default)().
|
|
2007
|
+
uniffiCaller.rustCall(/*caller:*/callStatus => (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_free_barklogger(pointer, callStatus), /*liftString:*/FfiConverterString.lift);
|
|
2286
2008
|
},
|
|
2287
2009
|
isConcreteType(obj) {
|
|
2288
|
-
return obj[_uniffiBindgenReactNative.destructorGuardSymbol] && obj[_uniffiBindgenReactNative.uniffiTypeNameSymbol] === "
|
|
2010
|
+
return obj[_uniffiBindgenReactNative.destructorGuardSymbol] && obj[_uniffiBindgenReactNative.uniffiTypeNameSymbol] === "BarkLoggerImpl";
|
|
2289
2011
|
}
|
|
2290
2012
|
};
|
|
2291
2013
|
})();
|
|
2292
|
-
// FfiConverter for
|
|
2293
|
-
const
|
|
2014
|
+
// FfiConverter for BarkLogger
|
|
2015
|
+
const FfiConverterTypeBarkLogger = new _uniffiBindgenReactNative.FfiConverterObjectWithCallbacks(uniffiTypeBarkLoggerImplObjectFactory);
|
|
2294
2016
|
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2017
|
+
// Add a vtavble for the callbacks that go in BarkLogger.
|
|
2018
|
+
|
|
2019
|
+
// Put the implementation in a struct so we don't pollute the top-level namespace
|
|
2020
|
+
const uniffiCallbackInterfaceBarkLogger = {
|
|
2021
|
+
// Create the VTable using a series of closures.
|
|
2022
|
+
// ts automatically converts these into C callback functions.
|
|
2023
|
+
vtable: {
|
|
2024
|
+
log: (uniffiHandle, level, target, message) => {
|
|
2025
|
+
const uniffiMakeCall = () => {
|
|
2026
|
+
const jsCallback = FfiConverterTypeBarkLogger.lift(uniffiHandle);
|
|
2027
|
+
return jsCallback.log(FfiConverterTypeLogLevel.lift(level), FfiConverterString.lift(target), FfiConverterString.lift(message));
|
|
2028
|
+
};
|
|
2029
|
+
const uniffiResult = _uniffiBindgenReactNative.UniffiResult.ready();
|
|
2030
|
+
const uniffiHandleSuccess = obj => {};
|
|
2031
|
+
const uniffiHandleError = (code, errBuf) => {
|
|
2032
|
+
_uniffiBindgenReactNative.UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
2033
|
+
};
|
|
2034
|
+
(0, _uniffiBindgenReactNative.uniffiTraitInterfaceCall)(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*lowerString:*/FfiConverterString.lower);
|
|
2035
|
+
return uniffiResult;
|
|
2036
|
+
},
|
|
2037
|
+
uniffiFree: uniffiHandle => {
|
|
2038
|
+
// BarkLogger: this will throw a stale handle error if the handle isn't found.
|
|
2039
|
+
FfiConverterTypeBarkLogger.drop(uniffiHandle);
|
|
2040
|
+
},
|
|
2041
|
+
uniffiClone: uniffiHandle => {
|
|
2042
|
+
return FfiConverterTypeBarkLogger.clone(uniffiHandle);
|
|
2043
|
+
}
|
|
2044
|
+
},
|
|
2045
|
+
register: () => {
|
|
2046
|
+
(0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_init_callback_vtable_barklogger(uniffiCallbackInterfaceBarkLogger.vtable);
|
|
2047
|
+
}
|
|
2048
|
+
};
|
|
2302
2049
|
|
|
2303
2050
|
/**
|
|
2304
|
-
*
|
|
2051
|
+
* Callback interface for custom onchain wallet implementations
|
|
2052
|
+
*
|
|
2053
|
+
* Foreign languages implement this trait to provide their own wallet functionality.
|
|
2305
2054
|
*/
|
|
2306
2055
|
|
|
2307
2056
|
/**
|
|
2308
|
-
*
|
|
2057
|
+
* Callback interface for custom onchain wallet implementations
|
|
2309
2058
|
*
|
|
2310
|
-
*
|
|
2311
|
-
* - Default: BDK-based wallet (built-in)
|
|
2312
|
-
* - Custom: Your own wallet implementation via callbacks
|
|
2059
|
+
* Foreign languages implement this trait to provide their own wallet functionality.
|
|
2313
2060
|
*/
|
|
2314
|
-
class
|
|
2315
|
-
[_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "
|
|
2061
|
+
class CustomOnchainWalletCallbacksImpl extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
2062
|
+
[_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "CustomOnchainWalletCallbacksImpl";
|
|
2316
2063
|
// No primary constructor declared for this class.
|
|
2317
2064
|
constructor(pointer) {
|
|
2318
2065
|
super();
|
|
2319
2066
|
this[_uniffiBindgenReactNative.pointerLiteralSymbol] = pointer;
|
|
2320
|
-
this[_uniffiBindgenReactNative.destructorGuardSymbol] =
|
|
2067
|
+
this[_uniffiBindgenReactNative.destructorGuardSymbol] = uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.bless(pointer);
|
|
2068
|
+
}
|
|
2069
|
+
|
|
2070
|
+
/**
|
|
2071
|
+
* Get the wallet balance in satoshis
|
|
2072
|
+
*/
|
|
2073
|
+
getBalance() /*throws*/{
|
|
2074
|
+
return _uniffiBindgenReactNative.FfiConverterUInt64.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
|
|
2075
|
+
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_balance(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this), callStatus);
|
|
2076
|
+
}, /*liftString:*/FfiConverterString.lift));
|
|
2321
2077
|
}
|
|
2322
2078
|
|
|
2323
2079
|
/**
|
|
2324
|
-
*
|
|
2080
|
+
* Prepare a transaction to send to given destinations
|
|
2081
|
+
*
|
|
2082
|
+
* # Arguments
|
|
2083
|
+
* * `destinations` - List of destinations with addresses and amounts
|
|
2084
|
+
* * `fee_rate_sat_per_vb` - Fee rate in sats per vbyte
|
|
2325
2085
|
*
|
|
2326
|
-
*
|
|
2327
|
-
*
|
|
2328
|
-
* Your implementation must handle all wallet operations via the callbacks interface.
|
|
2086
|
+
* # Returns
|
|
2087
|
+
* Base64-encoded PSBT
|
|
2329
2088
|
*/
|
|
2330
|
-
|
|
2331
|
-
return
|
|
2332
|
-
return (0, _barkFfi.default)().
|
|
2089
|
+
prepareTx(destinations, feeRateSatPerVb) /*throws*/{
|
|
2090
|
+
return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
|
|
2091
|
+
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_prepare_tx(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this), FfiConverterArrayTypeDestination.lower(destinations), _uniffiBindgenReactNative.FfiConverterUInt64.lower(feeRateSatPerVb), callStatus);
|
|
2333
2092
|
}, /*liftString:*/FfiConverterString.lift));
|
|
2334
2093
|
}
|
|
2335
2094
|
|
|
2336
2095
|
/**
|
|
2337
|
-
*
|
|
2096
|
+
* Prepare a transaction that drains the wallet to a single address
|
|
2097
|
+
*
|
|
2098
|
+
* # Arguments
|
|
2099
|
+
* * `address` - Bitcoin address to drain to
|
|
2100
|
+
* * `fee_rate_sat_per_vb` - Fee rate in sats per vbyte
|
|
2338
2101
|
*
|
|
2339
|
-
*
|
|
2340
|
-
*
|
|
2102
|
+
* # Returns
|
|
2103
|
+
* Base64-encoded PSBT
|
|
2341
2104
|
*/
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_constructor_onchainwallet_default(FfiConverterString.lower(mnemonic), FfiConverterTypeConfig.lower(config), FfiConverterString.lower(datadir));
|
|
2347
|
-
}, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterTypeOnchainWallet.lift.bind(FfiConverterTypeOnchainWallet), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2348
|
-
} catch (__error) {
|
|
2349
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
2350
|
-
__error.stack = __stack;
|
|
2351
|
-
}
|
|
2352
|
-
throw __error;
|
|
2353
|
-
}
|
|
2105
|
+
prepareDrainTx(address, feeRateSatPerVb) /*throws*/{
|
|
2106
|
+
return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
|
|
2107
|
+
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_prepare_drain_tx(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this), FfiConverterString.lower(address), _uniffiBindgenReactNative.FfiConverterUInt64.lower(feeRateSatPerVb), callStatus);
|
|
2108
|
+
}, /*liftString:*/FfiConverterString.lift));
|
|
2354
2109
|
}
|
|
2355
2110
|
|
|
2356
2111
|
/**
|
|
2357
|
-
*
|
|
2112
|
+
* Sign and finalize a PSBT
|
|
2113
|
+
*
|
|
2114
|
+
* # Arguments
|
|
2115
|
+
* * `psbt_base64` - Base64-encoded PSBT
|
|
2116
|
+
*
|
|
2117
|
+
* # Returns
|
|
2118
|
+
* Base64-encoded fully signed PSBT (all witnesses filled in)
|
|
2358
2119
|
*/
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_onchainwallet_balance(uniffiTypeOnchainWalletObjectFactory.clonePointer(this));
|
|
2364
|
-
}, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeOnchainBalance.lift.bind(FfiConverterTypeOnchainBalance), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2365
|
-
} catch (__error) {
|
|
2366
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
2367
|
-
__error.stack = __stack;
|
|
2368
|
-
}
|
|
2369
|
-
throw __error;
|
|
2370
|
-
}
|
|
2120
|
+
finishPsbt(psbtBase64) /*throws*/{
|
|
2121
|
+
return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
|
|
2122
|
+
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_finish_psbt(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this), FfiConverterString.lower(psbtBase64), callStatus);
|
|
2123
|
+
}, /*liftString:*/FfiConverterString.lift));
|
|
2371
2124
|
}
|
|
2372
2125
|
|
|
2373
2126
|
/**
|
|
2374
|
-
*
|
|
2127
|
+
* Get a wallet transaction by txid
|
|
2128
|
+
*
|
|
2129
|
+
* # Arguments
|
|
2130
|
+
* * `txid` - Transaction ID as hex string
|
|
2131
|
+
*
|
|
2132
|
+
* # Returns
|
|
2133
|
+
* Hex-encoded transaction, or null if not found
|
|
2375
2134
|
*/
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_onchainwallet_new_address(uniffiTypeOnchainWalletObjectFactory.clonePointer(this));
|
|
2381
|
-
}, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2382
|
-
} catch (__error) {
|
|
2383
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
2384
|
-
__error.stack = __stack;
|
|
2385
|
-
}
|
|
2386
|
-
throw __error;
|
|
2387
|
-
}
|
|
2135
|
+
getWalletTx(txid) /*throws*/{
|
|
2136
|
+
return FfiConverterOptionalString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
|
|
2137
|
+
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_wallet_tx(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this), FfiConverterString.lower(txid), callStatus);
|
|
2138
|
+
}, /*liftString:*/FfiConverterString.lift));
|
|
2388
2139
|
}
|
|
2389
2140
|
|
|
2390
2141
|
/**
|
|
2391
|
-
*
|
|
2392
|
-
*
|
|
2142
|
+
* Get the block hash where a transaction was confirmed
|
|
2143
|
+
*
|
|
2144
|
+
* # Arguments
|
|
2145
|
+
* * `txid` - Transaction ID as hex string
|
|
2146
|
+
*
|
|
2147
|
+
* # Returns
|
|
2148
|
+
* Block reference with height and hash, or null if unconfirmed
|
|
2393
2149
|
*/
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_onchainwallet_send(uniffiTypeOnchainWalletObjectFactory.clonePointer(this), FfiConverterString.lower(address), _uniffiBindgenReactNative.FfiConverterUInt64.lower(amountSats), _uniffiBindgenReactNative.FfiConverterUInt64.lower(feeRateSatPerVb));
|
|
2399
|
-
}, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2400
|
-
} catch (__error) {
|
|
2401
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
2402
|
-
__error.stack = __stack;
|
|
2403
|
-
}
|
|
2404
|
-
throw __error;
|
|
2405
|
-
}
|
|
2150
|
+
getWalletTxConfirmedBlock(txid) /*throws*/{
|
|
2151
|
+
return FfiConverterOptionalTypeBlockRef.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
|
|
2152
|
+
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this), FfiConverterString.lower(txid), callStatus);
|
|
2153
|
+
}, /*liftString:*/FfiConverterString.lift));
|
|
2406
2154
|
}
|
|
2407
2155
|
|
|
2408
2156
|
/**
|
|
2409
|
-
*
|
|
2410
|
-
*
|
|
2157
|
+
* Find transaction that spends a given output
|
|
2158
|
+
*
|
|
2159
|
+
* # Arguments
|
|
2160
|
+
* * `outpoint` - Transaction outpoint to check
|
|
2161
|
+
*
|
|
2162
|
+
* # Returns
|
|
2163
|
+
* Hex-encoded spending transaction, or null if unspent
|
|
2411
2164
|
*/
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2165
|
+
getSpendingTx(outpoint) /*throws*/{
|
|
2166
|
+
return FfiConverterOptionalString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
|
|
2167
|
+
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_spending_tx(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this), FfiConverterTypeOutPoint.lower(outpoint), callStatus);
|
|
2168
|
+
}, /*liftString:*/FfiConverterString.lift));
|
|
2169
|
+
}
|
|
2170
|
+
|
|
2171
|
+
/**
|
|
2172
|
+
* Create a signed P2A CPFP transaction
|
|
2173
|
+
*
|
|
2174
|
+
* # Arguments
|
|
2175
|
+
* * `params` - CPFP transaction parameters
|
|
2176
|
+
*
|
|
2177
|
+
* # Returns
|
|
2178
|
+
* Hex-encoded signed CPFP transaction
|
|
2179
|
+
*/
|
|
2180
|
+
makeSignedP2aCpfp(params) /*throws*/{
|
|
2181
|
+
return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
|
|
2182
|
+
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_make_signed_p2a_cpfp(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this), FfiConverterTypeCpfpParams.lower(params), callStatus);
|
|
2183
|
+
}, /*liftString:*/FfiConverterString.lift));
|
|
2184
|
+
}
|
|
2185
|
+
|
|
2186
|
+
/**
|
|
2187
|
+
* Store a signed P2A CPFP transaction in the wallet
|
|
2188
|
+
*
|
|
2189
|
+
* # Arguments
|
|
2190
|
+
* * `tx_hex` - Hex-encoded transaction
|
|
2191
|
+
*/
|
|
2192
|
+
storeSignedP2aCpfp(txHex) /*throws*/{
|
|
2193
|
+
uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
|
|
2194
|
+
(0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_store_signed_p2a_cpfp(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this), FfiConverterString.lower(txHex), callStatus);
|
|
2195
|
+
}, /*liftString:*/FfiConverterString.lift);
|
|
2424
2196
|
}
|
|
2425
2197
|
|
|
2426
2198
|
/**
|
|
@@ -2429,28 +2201,28 @@ class OnchainWallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
2429
2201
|
uniffiDestroy() {
|
|
2430
2202
|
const ptr = this[_uniffiBindgenReactNative.destructorGuardSymbol];
|
|
2431
2203
|
if (ptr !== undefined) {
|
|
2432
|
-
const pointer =
|
|
2433
|
-
|
|
2434
|
-
|
|
2204
|
+
const pointer = uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.pointer(this);
|
|
2205
|
+
uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.freePointer(pointer);
|
|
2206
|
+
uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.unbless(ptr);
|
|
2435
2207
|
delete this[_uniffiBindgenReactNative.destructorGuardSymbol];
|
|
2436
2208
|
}
|
|
2437
2209
|
}
|
|
2438
2210
|
static instanceOf(obj) {
|
|
2439
|
-
return
|
|
2211
|
+
return uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.isConcreteType(obj);
|
|
2440
2212
|
}
|
|
2441
2213
|
}
|
|
2442
|
-
exports.
|
|
2443
|
-
const
|
|
2214
|
+
exports.CustomOnchainWalletCallbacksImpl = CustomOnchainWalletCallbacksImpl;
|
|
2215
|
+
const uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory = (() => {
|
|
2444
2216
|
return {
|
|
2445
2217
|
create(pointer) {
|
|
2446
|
-
const instance = Object.create(
|
|
2218
|
+
const instance = Object.create(CustomOnchainWalletCallbacksImpl.prototype);
|
|
2447
2219
|
instance[_uniffiBindgenReactNative.pointerLiteralSymbol] = pointer;
|
|
2448
2220
|
instance[_uniffiBindgenReactNative.destructorGuardSymbol] = this.bless(pointer);
|
|
2449
|
-
instance[_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "
|
|
2221
|
+
instance[_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "CustomOnchainWalletCallbacksImpl";
|
|
2450
2222
|
return instance;
|
|
2451
2223
|
},
|
|
2452
2224
|
bless(p) {
|
|
2453
|
-
return uniffiCaller.rustCall(/*caller:*/status => (0, _barkFfi.default)().
|
|
2225
|
+
return uniffiCaller.rustCall(/*caller:*/status => (0, _barkFfi.default)().ubrn_uniffi_internal_fn_method_customonchainwalletcallbacks_ffi__bless_pointer(p, status), /*liftString:*/FfiConverterString.lift);
|
|
2454
2226
|
},
|
|
2455
2227
|
unbless(ptr) {
|
|
2456
2228
|
ptr.markDestroyed();
|
|
@@ -2463,48 +2235,404 @@ const uniffiTypeOnchainWalletObjectFactory = (() => {
|
|
|
2463
2235
|
},
|
|
2464
2236
|
clonePointer(obj) {
|
|
2465
2237
|
const pointer = this.pointer(obj);
|
|
2466
|
-
return uniffiCaller.rustCall(/*caller:*/callStatus => (0, _barkFfi.default)().
|
|
2238
|
+
return uniffiCaller.rustCall(/*caller:*/callStatus => (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_clone_customonchainwalletcallbacks(pointer, callStatus), /*liftString:*/FfiConverterString.lift);
|
|
2467
2239
|
},
|
|
2468
2240
|
freePointer(pointer) {
|
|
2469
|
-
uniffiCaller.rustCall(/*caller:*/callStatus => (0, _barkFfi.default)().
|
|
2241
|
+
uniffiCaller.rustCall(/*caller:*/callStatus => (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_free_customonchainwalletcallbacks(pointer, callStatus), /*liftString:*/FfiConverterString.lift);
|
|
2470
2242
|
},
|
|
2471
2243
|
isConcreteType(obj) {
|
|
2472
|
-
return obj[_uniffiBindgenReactNative.destructorGuardSymbol] && obj[_uniffiBindgenReactNative.uniffiTypeNameSymbol] === "
|
|
2244
|
+
return obj[_uniffiBindgenReactNative.destructorGuardSymbol] && obj[_uniffiBindgenReactNative.uniffiTypeNameSymbol] === "CustomOnchainWalletCallbacksImpl";
|
|
2473
2245
|
}
|
|
2474
2246
|
};
|
|
2475
2247
|
})();
|
|
2476
|
-
// FfiConverter for
|
|
2477
|
-
const
|
|
2248
|
+
// FfiConverter for CustomOnchainWalletCallbacks
|
|
2249
|
+
const FfiConverterTypeCustomOnchainWalletCallbacks = new _uniffiBindgenReactNative.FfiConverterObjectWithCallbacks(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory);
|
|
2478
2250
|
|
|
2479
|
-
|
|
2480
|
-
* The main Bark wallet interface for Ark operations
|
|
2481
|
-
*/
|
|
2482
|
-
|
|
2483
|
-
/**
|
|
2484
|
-
* @deprecated Use `WalletLike` instead.
|
|
2485
|
-
*/
|
|
2486
|
-
|
|
2487
|
-
/**
|
|
2488
|
-
* The main Bark wallet interface for Ark operations
|
|
2489
|
-
*/
|
|
2490
|
-
class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
2491
|
-
[_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "Wallet";
|
|
2492
|
-
// No primary constructor declared for this class.
|
|
2493
|
-
constructor(pointer) {
|
|
2494
|
-
super();
|
|
2495
|
-
this[_uniffiBindgenReactNative.pointerLiteralSymbol] = pointer;
|
|
2496
|
-
this[_uniffiBindgenReactNative.destructorGuardSymbol] = uniffiTypeWalletObjectFactory.bless(pointer);
|
|
2497
|
-
}
|
|
2251
|
+
// Add a vtavble for the callbacks that go in CustomOnchainWalletCallbacks.
|
|
2498
2252
|
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2253
|
+
// Put the implementation in a struct so we don't pollute the top-level namespace
|
|
2254
|
+
const uniffiCallbackInterfaceCustomOnchainWalletCallbacks = {
|
|
2255
|
+
// Create the VTable using a series of closures.
|
|
2256
|
+
// ts automatically converts these into C callback functions.
|
|
2257
|
+
vtable: {
|
|
2258
|
+
getBalance: uniffiHandle => {
|
|
2259
|
+
const uniffiMakeCall = () => {
|
|
2260
|
+
const jsCallback = FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);
|
|
2261
|
+
return jsCallback.getBalance();
|
|
2262
|
+
};
|
|
2263
|
+
const uniffiResult = _uniffiBindgenReactNative.UniffiResult.ready();
|
|
2264
|
+
const uniffiHandleSuccess = obj => {
|
|
2265
|
+
_uniffiBindgenReactNative.UniffiResult.writeSuccess(uniffiResult, _uniffiBindgenReactNative.FfiConverterUInt64.lower(obj));
|
|
2266
|
+
};
|
|
2267
|
+
const uniffiHandleError = (code, errBuf) => {
|
|
2268
|
+
_uniffiBindgenReactNative.UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
2269
|
+
};
|
|
2270
|
+
(0, _uniffiBindgenReactNative.uniffiTraitInterfaceCallWithError)(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/BarkError.instanceOf, /*lowerError:*/FfiConverterTypeBarkError.lower.bind(FfiConverterTypeBarkError), /*lowerString:*/FfiConverterString.lower);
|
|
2271
|
+
return uniffiResult;
|
|
2272
|
+
},
|
|
2273
|
+
prepareTx: (uniffiHandle, destinations, feeRateSatPerVb) => {
|
|
2274
|
+
const uniffiMakeCall = () => {
|
|
2275
|
+
const jsCallback = FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);
|
|
2276
|
+
return jsCallback.prepareTx(FfiConverterArrayTypeDestination.lift(destinations), _uniffiBindgenReactNative.FfiConverterUInt64.lift(feeRateSatPerVb));
|
|
2277
|
+
};
|
|
2278
|
+
const uniffiResult = _uniffiBindgenReactNative.UniffiResult.ready();
|
|
2279
|
+
const uniffiHandleSuccess = obj => {
|
|
2280
|
+
_uniffiBindgenReactNative.UniffiResult.writeSuccess(uniffiResult, FfiConverterString.lower(obj));
|
|
2281
|
+
};
|
|
2282
|
+
const uniffiHandleError = (code, errBuf) => {
|
|
2283
|
+
_uniffiBindgenReactNative.UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
2284
|
+
};
|
|
2285
|
+
(0, _uniffiBindgenReactNative.uniffiTraitInterfaceCallWithError)(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/BarkError.instanceOf, /*lowerError:*/FfiConverterTypeBarkError.lower.bind(FfiConverterTypeBarkError), /*lowerString:*/FfiConverterString.lower);
|
|
2286
|
+
return uniffiResult;
|
|
2287
|
+
},
|
|
2288
|
+
prepareDrainTx: (uniffiHandle, address, feeRateSatPerVb) => {
|
|
2289
|
+
const uniffiMakeCall = () => {
|
|
2290
|
+
const jsCallback = FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);
|
|
2291
|
+
return jsCallback.prepareDrainTx(FfiConverterString.lift(address), _uniffiBindgenReactNative.FfiConverterUInt64.lift(feeRateSatPerVb));
|
|
2292
|
+
};
|
|
2293
|
+
const uniffiResult = _uniffiBindgenReactNative.UniffiResult.ready();
|
|
2294
|
+
const uniffiHandleSuccess = obj => {
|
|
2295
|
+
_uniffiBindgenReactNative.UniffiResult.writeSuccess(uniffiResult, FfiConverterString.lower(obj));
|
|
2296
|
+
};
|
|
2297
|
+
const uniffiHandleError = (code, errBuf) => {
|
|
2298
|
+
_uniffiBindgenReactNative.UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
2299
|
+
};
|
|
2300
|
+
(0, _uniffiBindgenReactNative.uniffiTraitInterfaceCallWithError)(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/BarkError.instanceOf, /*lowerError:*/FfiConverterTypeBarkError.lower.bind(FfiConverterTypeBarkError), /*lowerString:*/FfiConverterString.lower);
|
|
2301
|
+
return uniffiResult;
|
|
2302
|
+
},
|
|
2303
|
+
finishPsbt: (uniffiHandle, psbtBase64) => {
|
|
2304
|
+
const uniffiMakeCall = () => {
|
|
2305
|
+
const jsCallback = FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);
|
|
2306
|
+
return jsCallback.finishPsbt(FfiConverterString.lift(psbtBase64));
|
|
2307
|
+
};
|
|
2308
|
+
const uniffiResult = _uniffiBindgenReactNative.UniffiResult.ready();
|
|
2309
|
+
const uniffiHandleSuccess = obj => {
|
|
2310
|
+
_uniffiBindgenReactNative.UniffiResult.writeSuccess(uniffiResult, FfiConverterString.lower(obj));
|
|
2311
|
+
};
|
|
2312
|
+
const uniffiHandleError = (code, errBuf) => {
|
|
2313
|
+
_uniffiBindgenReactNative.UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
2314
|
+
};
|
|
2315
|
+
(0, _uniffiBindgenReactNative.uniffiTraitInterfaceCallWithError)(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/BarkError.instanceOf, /*lowerError:*/FfiConverterTypeBarkError.lower.bind(FfiConverterTypeBarkError), /*lowerString:*/FfiConverterString.lower);
|
|
2316
|
+
return uniffiResult;
|
|
2317
|
+
},
|
|
2318
|
+
getWalletTx: (uniffiHandle, txid) => {
|
|
2319
|
+
const uniffiMakeCall = () => {
|
|
2320
|
+
const jsCallback = FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);
|
|
2321
|
+
return jsCallback.getWalletTx(FfiConverterString.lift(txid));
|
|
2322
|
+
};
|
|
2323
|
+
const uniffiResult = _uniffiBindgenReactNative.UniffiResult.ready();
|
|
2324
|
+
const uniffiHandleSuccess = obj => {
|
|
2325
|
+
_uniffiBindgenReactNative.UniffiResult.writeSuccess(uniffiResult, FfiConverterOptionalString.lower(obj));
|
|
2326
|
+
};
|
|
2327
|
+
const uniffiHandleError = (code, errBuf) => {
|
|
2328
|
+
_uniffiBindgenReactNative.UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
2329
|
+
};
|
|
2330
|
+
(0, _uniffiBindgenReactNative.uniffiTraitInterfaceCallWithError)(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/BarkError.instanceOf, /*lowerError:*/FfiConverterTypeBarkError.lower.bind(FfiConverterTypeBarkError), /*lowerString:*/FfiConverterString.lower);
|
|
2331
|
+
return uniffiResult;
|
|
2332
|
+
},
|
|
2333
|
+
getWalletTxConfirmedBlock: (uniffiHandle, txid) => {
|
|
2334
|
+
const uniffiMakeCall = () => {
|
|
2335
|
+
const jsCallback = FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);
|
|
2336
|
+
return jsCallback.getWalletTxConfirmedBlock(FfiConverterString.lift(txid));
|
|
2337
|
+
};
|
|
2338
|
+
const uniffiResult = _uniffiBindgenReactNative.UniffiResult.ready();
|
|
2339
|
+
const uniffiHandleSuccess = obj => {
|
|
2340
|
+
_uniffiBindgenReactNative.UniffiResult.writeSuccess(uniffiResult, FfiConverterOptionalTypeBlockRef.lower(obj));
|
|
2341
|
+
};
|
|
2342
|
+
const uniffiHandleError = (code, errBuf) => {
|
|
2343
|
+
_uniffiBindgenReactNative.UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
2344
|
+
};
|
|
2345
|
+
(0, _uniffiBindgenReactNative.uniffiTraitInterfaceCallWithError)(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/BarkError.instanceOf, /*lowerError:*/FfiConverterTypeBarkError.lower.bind(FfiConverterTypeBarkError), /*lowerString:*/FfiConverterString.lower);
|
|
2346
|
+
return uniffiResult;
|
|
2347
|
+
},
|
|
2348
|
+
getSpendingTx: (uniffiHandle, outpoint) => {
|
|
2349
|
+
const uniffiMakeCall = () => {
|
|
2350
|
+
const jsCallback = FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);
|
|
2351
|
+
return jsCallback.getSpendingTx(FfiConverterTypeOutPoint.lift(outpoint));
|
|
2352
|
+
};
|
|
2353
|
+
const uniffiResult = _uniffiBindgenReactNative.UniffiResult.ready();
|
|
2354
|
+
const uniffiHandleSuccess = obj => {
|
|
2355
|
+
_uniffiBindgenReactNative.UniffiResult.writeSuccess(uniffiResult, FfiConverterOptionalString.lower(obj));
|
|
2356
|
+
};
|
|
2357
|
+
const uniffiHandleError = (code, errBuf) => {
|
|
2358
|
+
_uniffiBindgenReactNative.UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
2359
|
+
};
|
|
2360
|
+
(0, _uniffiBindgenReactNative.uniffiTraitInterfaceCallWithError)(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/BarkError.instanceOf, /*lowerError:*/FfiConverterTypeBarkError.lower.bind(FfiConverterTypeBarkError), /*lowerString:*/FfiConverterString.lower);
|
|
2361
|
+
return uniffiResult;
|
|
2362
|
+
},
|
|
2363
|
+
makeSignedP2aCpfp: (uniffiHandle, params) => {
|
|
2364
|
+
const uniffiMakeCall = () => {
|
|
2365
|
+
const jsCallback = FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);
|
|
2366
|
+
return jsCallback.makeSignedP2aCpfp(FfiConverterTypeCpfpParams.lift(params));
|
|
2367
|
+
};
|
|
2368
|
+
const uniffiResult = _uniffiBindgenReactNative.UniffiResult.ready();
|
|
2369
|
+
const uniffiHandleSuccess = obj => {
|
|
2370
|
+
_uniffiBindgenReactNative.UniffiResult.writeSuccess(uniffiResult, FfiConverterString.lower(obj));
|
|
2371
|
+
};
|
|
2372
|
+
const uniffiHandleError = (code, errBuf) => {
|
|
2373
|
+
_uniffiBindgenReactNative.UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
2374
|
+
};
|
|
2375
|
+
(0, _uniffiBindgenReactNative.uniffiTraitInterfaceCallWithError)(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/BarkError.instanceOf, /*lowerError:*/FfiConverterTypeBarkError.lower.bind(FfiConverterTypeBarkError), /*lowerString:*/FfiConverterString.lower);
|
|
2376
|
+
return uniffiResult;
|
|
2377
|
+
},
|
|
2378
|
+
storeSignedP2aCpfp: (uniffiHandle, txHex) => {
|
|
2379
|
+
const uniffiMakeCall = () => {
|
|
2380
|
+
const jsCallback = FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);
|
|
2381
|
+
return jsCallback.storeSignedP2aCpfp(FfiConverterString.lift(txHex));
|
|
2382
|
+
};
|
|
2383
|
+
const uniffiResult = _uniffiBindgenReactNative.UniffiResult.ready();
|
|
2384
|
+
const uniffiHandleSuccess = obj => {};
|
|
2385
|
+
const uniffiHandleError = (code, errBuf) => {
|
|
2386
|
+
_uniffiBindgenReactNative.UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
2387
|
+
};
|
|
2388
|
+
(0, _uniffiBindgenReactNative.uniffiTraitInterfaceCallWithError)(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/BarkError.instanceOf, /*lowerError:*/FfiConverterTypeBarkError.lower.bind(FfiConverterTypeBarkError), /*lowerString:*/FfiConverterString.lower);
|
|
2389
|
+
return uniffiResult;
|
|
2390
|
+
},
|
|
2391
|
+
uniffiFree: uniffiHandle => {
|
|
2392
|
+
// CustomOnchainWalletCallbacks: this will throw a stale handle error if the handle isn't found.
|
|
2393
|
+
FfiConverterTypeCustomOnchainWalletCallbacks.drop(uniffiHandle);
|
|
2394
|
+
},
|
|
2395
|
+
uniffiClone: uniffiHandle => {
|
|
2396
|
+
return FfiConverterTypeCustomOnchainWalletCallbacks.clone(uniffiHandle);
|
|
2397
|
+
}
|
|
2398
|
+
},
|
|
2399
|
+
register: () => {
|
|
2400
|
+
(0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_init_callback_vtable_customonchainwalletcallbacks(uniffiCallbackInterfaceCustomOnchainWalletCallbacks.vtable);
|
|
2401
|
+
}
|
|
2402
|
+
};
|
|
2403
|
+
|
|
2404
|
+
/**
|
|
2405
|
+
* Pull-based notification handle exposed over FFI.
|
|
2406
|
+
*
|
|
2407
|
+
* Obtain via `Wallet::notifications()`. Call `next_notification()` in a loop
|
|
2408
|
+
* to receive events. Call `cancel_next_notification_wait()` to unblock a
|
|
2409
|
+
* pending wait without destroying the underlying stream.
|
|
2410
|
+
*
|
|
2411
|
+
* Each call to `Wallet::notifications()` creates an independent stream backed
|
|
2412
|
+
* by a new broadcast receiver — existing holders are unaffected.
|
|
2413
|
+
*
|
|
2414
|
+
* This holder is intended for a single consumer loop. Concurrent calls to
|
|
2415
|
+
* `next_notification()` on the same holder are not supported and will return
|
|
2416
|
+
* `None` immediately.
|
|
2417
|
+
*/
|
|
2418
|
+
|
|
2419
|
+
/**
|
|
2420
|
+
* @deprecated Use `NotificationHolderLike` instead.
|
|
2421
|
+
*/
|
|
2422
|
+
|
|
2423
|
+
/**
|
|
2424
|
+
* Pull-based notification handle exposed over FFI.
|
|
2425
|
+
*
|
|
2426
|
+
* Obtain via `Wallet::notifications()`. Call `next_notification()` in a loop
|
|
2427
|
+
* to receive events. Call `cancel_next_notification_wait()` to unblock a
|
|
2428
|
+
* pending wait without destroying the underlying stream.
|
|
2429
|
+
*
|
|
2430
|
+
* Each call to `Wallet::notifications()` creates an independent stream backed
|
|
2431
|
+
* by a new broadcast receiver — existing holders are unaffected.
|
|
2432
|
+
*
|
|
2433
|
+
* This holder is intended for a single consumer loop. Concurrent calls to
|
|
2434
|
+
* `next_notification()` on the same holder are not supported and will return
|
|
2435
|
+
* `None` immediately.
|
|
2436
|
+
*/
|
|
2437
|
+
class NotificationHolder extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
2438
|
+
[_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "NotificationHolder";
|
|
2439
|
+
// No primary constructor declared for this class.
|
|
2440
|
+
constructor(pointer) {
|
|
2441
|
+
super();
|
|
2442
|
+
this[_uniffiBindgenReactNative.pointerLiteralSymbol] = pointer;
|
|
2443
|
+
this[_uniffiBindgenReactNative.destructorGuardSymbol] = uniffiTypeNotificationHolderObjectFactory.bless(pointer);
|
|
2444
|
+
}
|
|
2445
|
+
|
|
2446
|
+
/**
|
|
2447
|
+
* Cancel the currently pending `next_notification()` wait.
|
|
2448
|
+
*
|
|
2449
|
+
* Causes a blocked `next_notification()` to return `None`.
|
|
2450
|
+
* Has no effect if no wait is currently active.
|
|
2451
|
+
*
|
|
2452
|
+
* This does NOT destroy the underlying `NotificationStream`; a subsequent
|
|
2453
|
+
* call to `next_notification()` will work normally and wait for new events.
|
|
2454
|
+
*/
|
|
2455
|
+
cancelNextNotificationWait() {
|
|
2456
|
+
uniffiCaller.rustCall(/*caller:*/callStatus => {
|
|
2457
|
+
(0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_notificationholder_cancel_next_notification_wait(uniffiTypeNotificationHolderObjectFactory.clonePointer(this), callStatus);
|
|
2458
|
+
}, /*liftString:*/FfiConverterString.lift);
|
|
2459
|
+
}
|
|
2460
|
+
|
|
2461
|
+
/**
|
|
2462
|
+
* Wait for the next wallet notification.
|
|
2463
|
+
*
|
|
2464
|
+
* Returns `None` when:
|
|
2465
|
+
* - `cancel_next_notification_wait()` was called while this was pending
|
|
2466
|
+
* (cancellation only affects the current wait; the stream lives on)
|
|
2467
|
+
* - The wallet's notification source was shut down permanently
|
|
2468
|
+
*
|
|
2469
|
+
* Returns `Err(BarkError::Internal)` if called concurrently on the same holder.
|
|
2470
|
+
*
|
|
2471
|
+
* After a cancellation this method can be called again normally — the
|
|
2472
|
+
* underlying `NotificationStream` is preserved in `self.stream` and a
|
|
2473
|
+
* fresh per-wait cancel channel is created on every entry.
|
|
2474
|
+
*/
|
|
2475
|
+
async nextNotification(asyncOpts_) /*throws*/{
|
|
2476
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2477
|
+
try {
|
|
2478
|
+
return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2479
|
+
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_notificationholder_next_notification(uniffiTypeNotificationHolderObjectFactory.clonePointer(this));
|
|
2480
|
+
}, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalTypeWalletNotification.lift.bind(FfiConverterOptionalTypeWalletNotification), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2481
|
+
} catch (__error) {
|
|
2482
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
2483
|
+
__error.stack = __stack;
|
|
2484
|
+
}
|
|
2485
|
+
throw __error;
|
|
2486
|
+
}
|
|
2487
|
+
}
|
|
2488
|
+
|
|
2489
|
+
/**
|
|
2490
|
+
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
2491
|
+
*/
|
|
2492
|
+
uniffiDestroy() {
|
|
2493
|
+
const ptr = this[_uniffiBindgenReactNative.destructorGuardSymbol];
|
|
2494
|
+
if (ptr !== undefined) {
|
|
2495
|
+
const pointer = uniffiTypeNotificationHolderObjectFactory.pointer(this);
|
|
2496
|
+
uniffiTypeNotificationHolderObjectFactory.freePointer(pointer);
|
|
2497
|
+
uniffiTypeNotificationHolderObjectFactory.unbless(ptr);
|
|
2498
|
+
delete this[_uniffiBindgenReactNative.destructorGuardSymbol];
|
|
2499
|
+
}
|
|
2500
|
+
}
|
|
2501
|
+
static instanceOf(obj) {
|
|
2502
|
+
return uniffiTypeNotificationHolderObjectFactory.isConcreteType(obj);
|
|
2503
|
+
}
|
|
2504
|
+
}
|
|
2505
|
+
exports.NotificationHolder = NotificationHolder;
|
|
2506
|
+
const uniffiTypeNotificationHolderObjectFactory = (() => {
|
|
2507
|
+
return {
|
|
2508
|
+
create(pointer) {
|
|
2509
|
+
const instance = Object.create(NotificationHolder.prototype);
|
|
2510
|
+
instance[_uniffiBindgenReactNative.pointerLiteralSymbol] = pointer;
|
|
2511
|
+
instance[_uniffiBindgenReactNative.destructorGuardSymbol] = this.bless(pointer);
|
|
2512
|
+
instance[_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "NotificationHolder";
|
|
2513
|
+
return instance;
|
|
2514
|
+
},
|
|
2515
|
+
bless(p) {
|
|
2516
|
+
return uniffiCaller.rustCall(/*caller:*/status => (0, _barkFfi.default)().ubrn_uniffi_internal_fn_method_notificationholder_ffi__bless_pointer(p, status), /*liftString:*/FfiConverterString.lift);
|
|
2517
|
+
},
|
|
2518
|
+
unbless(ptr) {
|
|
2519
|
+
ptr.markDestroyed();
|
|
2520
|
+
},
|
|
2521
|
+
pointer(obj) {
|
|
2522
|
+
if (obj[_uniffiBindgenReactNative.destructorGuardSymbol] === undefined) {
|
|
2523
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedNullPointer();
|
|
2524
|
+
}
|
|
2525
|
+
return obj[_uniffiBindgenReactNative.pointerLiteralSymbol];
|
|
2526
|
+
},
|
|
2527
|
+
clonePointer(obj) {
|
|
2528
|
+
const pointer = this.pointer(obj);
|
|
2529
|
+
return uniffiCaller.rustCall(/*caller:*/callStatus => (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_clone_notificationholder(pointer, callStatus), /*liftString:*/FfiConverterString.lift);
|
|
2530
|
+
},
|
|
2531
|
+
freePointer(pointer) {
|
|
2532
|
+
uniffiCaller.rustCall(/*caller:*/callStatus => (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_free_notificationholder(pointer, callStatus), /*liftString:*/FfiConverterString.lift);
|
|
2533
|
+
},
|
|
2534
|
+
isConcreteType(obj) {
|
|
2535
|
+
return obj[_uniffiBindgenReactNative.destructorGuardSymbol] && obj[_uniffiBindgenReactNative.uniffiTypeNameSymbol] === "NotificationHolder";
|
|
2536
|
+
}
|
|
2537
|
+
};
|
|
2538
|
+
})();
|
|
2539
|
+
// FfiConverter for NotificationHolderLike
|
|
2540
|
+
const FfiConverterTypeNotificationHolder = new _uniffiBindgenReactNative.FfiConverterObject(uniffiTypeNotificationHolderObjectFactory);
|
|
2541
|
+
|
|
2542
|
+
/**
|
|
2543
|
+
* UniFFI-facing onchain wallet. Supports two backends:
|
|
2544
|
+
* - BDK (real onchain wallet via `bark::onchain::OnchainWallet`)
|
|
2545
|
+
* - Callback (foreign-language implementation)
|
|
2546
|
+
*/
|
|
2547
|
+
|
|
2548
|
+
/**
|
|
2549
|
+
* @deprecated Use `OnchainWalletLike` instead.
|
|
2550
|
+
*/
|
|
2551
|
+
|
|
2552
|
+
/**
|
|
2553
|
+
* UniFFI-facing onchain wallet. Supports two backends:
|
|
2554
|
+
* - BDK (real onchain wallet via `bark::onchain::OnchainWallet`)
|
|
2555
|
+
* - Callback (foreign-language implementation)
|
|
2556
|
+
*/
|
|
2557
|
+
class OnchainWallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
2558
|
+
[_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "OnchainWallet";
|
|
2559
|
+
// No primary constructor declared for this class.
|
|
2560
|
+
constructor(pointer) {
|
|
2561
|
+
super();
|
|
2562
|
+
this[_uniffiBindgenReactNative.pointerLiteralSymbol] = pointer;
|
|
2563
|
+
this[_uniffiBindgenReactNative.destructorGuardSymbol] = uniffiTypeOnchainWalletObjectFactory.bless(pointer);
|
|
2564
|
+
}
|
|
2565
|
+
|
|
2566
|
+
/**
|
|
2567
|
+
* Callback-backed wallet for foreign-language implementations.
|
|
2568
|
+
*/
|
|
2569
|
+
static custom(callbacks) /*throws*/{
|
|
2570
|
+
return FfiConverterTypeOnchainWallet.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
|
|
2571
|
+
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_constructor_onchainwallet_custom(FfiConverterTypeCustomOnchainWalletCallbacks.lower(callbacks), callStatus);
|
|
2572
|
+
}, /*liftString:*/FfiConverterString.lift));
|
|
2573
|
+
}
|
|
2574
|
+
|
|
2575
|
+
/**
|
|
2576
|
+
* BDK-backed wallet. Opens the shared sqlite cache.
|
|
2577
|
+
*/
|
|
2578
|
+
static async default_(mnemonic, config, datadir, asyncOpts_) /*throws*/{
|
|
2579
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2580
|
+
try {
|
|
2581
|
+
return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2582
|
+
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_constructor_onchainwallet_default(FfiConverterString.lower(mnemonic), FfiConverterTypeConfig.lower(config), FfiConverterString.lower(datadir));
|
|
2583
|
+
}, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterTypeOnchainWallet.lift.bind(FfiConverterTypeOnchainWallet), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2584
|
+
} catch (__error) {
|
|
2585
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
2586
|
+
__error.stack = __stack;
|
|
2587
|
+
}
|
|
2588
|
+
throw __error;
|
|
2589
|
+
}
|
|
2590
|
+
}
|
|
2591
|
+
async balance(asyncOpts_) /*throws*/{
|
|
2592
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2593
|
+
try {
|
|
2594
|
+
return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2595
|
+
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_onchainwallet_balance(uniffiTypeOnchainWalletObjectFactory.clonePointer(this));
|
|
2596
|
+
}, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeOnchainBalance.lift.bind(FfiConverterTypeOnchainBalance), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2597
|
+
} catch (__error) {
|
|
2598
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
2599
|
+
__error.stack = __stack;
|
|
2600
|
+
}
|
|
2601
|
+
throw __error;
|
|
2602
|
+
}
|
|
2603
|
+
}
|
|
2604
|
+
async newAddress(asyncOpts_) /*throws*/{
|
|
2605
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2606
|
+
try {
|
|
2607
|
+
return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2608
|
+
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_onchainwallet_new_address(uniffiTypeOnchainWalletObjectFactory.clonePointer(this));
|
|
2609
|
+
}, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2610
|
+
} catch (__error) {
|
|
2611
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
2612
|
+
__error.stack = __stack;
|
|
2613
|
+
}
|
|
2614
|
+
throw __error;
|
|
2615
|
+
}
|
|
2616
|
+
}
|
|
2617
|
+
async send(address, amountSats, feeRateSatPerVb, asyncOpts_) /*throws*/{
|
|
2618
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2619
|
+
try {
|
|
2620
|
+
return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2621
|
+
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_onchainwallet_send(uniffiTypeOnchainWalletObjectFactory.clonePointer(this), FfiConverterString.lower(address), _uniffiBindgenReactNative.FfiConverterUInt64.lower(amountSats), _uniffiBindgenReactNative.FfiConverterUInt64.lower(feeRateSatPerVb));
|
|
2622
|
+
}, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2623
|
+
} catch (__error) {
|
|
2624
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
2625
|
+
__error.stack = __stack;
|
|
2626
|
+
}
|
|
2627
|
+
throw __error;
|
|
2628
|
+
}
|
|
2629
|
+
}
|
|
2630
|
+
async sync(asyncOpts_) /*throws*/{
|
|
2631
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2632
|
+
try {
|
|
2633
|
+
return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2634
|
+
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_onchainwallet_sync(uniffiTypeOnchainWalletObjectFactory.clonePointer(this));
|
|
2635
|
+
}, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/_uniffiBindgenReactNative.FfiConverterUInt64.lift.bind(_uniffiBindgenReactNative.FfiConverterUInt64), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2508
2636
|
} catch (__error) {
|
|
2509
2637
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
2510
2638
|
__error.stack = __stack;
|
|
@@ -2514,8 +2642,106 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
2514
2642
|
}
|
|
2515
2643
|
|
|
2516
2644
|
/**
|
|
2517
|
-
*
|
|
2645
|
+
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
2518
2646
|
*/
|
|
2647
|
+
uniffiDestroy() {
|
|
2648
|
+
const ptr = this[_uniffiBindgenReactNative.destructorGuardSymbol];
|
|
2649
|
+
if (ptr !== undefined) {
|
|
2650
|
+
const pointer = uniffiTypeOnchainWalletObjectFactory.pointer(this);
|
|
2651
|
+
uniffiTypeOnchainWalletObjectFactory.freePointer(pointer);
|
|
2652
|
+
uniffiTypeOnchainWalletObjectFactory.unbless(ptr);
|
|
2653
|
+
delete this[_uniffiBindgenReactNative.destructorGuardSymbol];
|
|
2654
|
+
}
|
|
2655
|
+
}
|
|
2656
|
+
static instanceOf(obj) {
|
|
2657
|
+
return uniffiTypeOnchainWalletObjectFactory.isConcreteType(obj);
|
|
2658
|
+
}
|
|
2659
|
+
}
|
|
2660
|
+
exports.OnchainWallet = OnchainWallet;
|
|
2661
|
+
const uniffiTypeOnchainWalletObjectFactory = (() => {
|
|
2662
|
+
return {
|
|
2663
|
+
create(pointer) {
|
|
2664
|
+
const instance = Object.create(OnchainWallet.prototype);
|
|
2665
|
+
instance[_uniffiBindgenReactNative.pointerLiteralSymbol] = pointer;
|
|
2666
|
+
instance[_uniffiBindgenReactNative.destructorGuardSymbol] = this.bless(pointer);
|
|
2667
|
+
instance[_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "OnchainWallet";
|
|
2668
|
+
return instance;
|
|
2669
|
+
},
|
|
2670
|
+
bless(p) {
|
|
2671
|
+
return uniffiCaller.rustCall(/*caller:*/status => (0, _barkFfi.default)().ubrn_uniffi_internal_fn_method_onchainwallet_ffi__bless_pointer(p, status), /*liftString:*/FfiConverterString.lift);
|
|
2672
|
+
},
|
|
2673
|
+
unbless(ptr) {
|
|
2674
|
+
ptr.markDestroyed();
|
|
2675
|
+
},
|
|
2676
|
+
pointer(obj) {
|
|
2677
|
+
if (obj[_uniffiBindgenReactNative.destructorGuardSymbol] === undefined) {
|
|
2678
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedNullPointer();
|
|
2679
|
+
}
|
|
2680
|
+
return obj[_uniffiBindgenReactNative.pointerLiteralSymbol];
|
|
2681
|
+
},
|
|
2682
|
+
clonePointer(obj) {
|
|
2683
|
+
const pointer = this.pointer(obj);
|
|
2684
|
+
return uniffiCaller.rustCall(/*caller:*/callStatus => (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_clone_onchainwallet(pointer, callStatus), /*liftString:*/FfiConverterString.lift);
|
|
2685
|
+
},
|
|
2686
|
+
freePointer(pointer) {
|
|
2687
|
+
uniffiCaller.rustCall(/*caller:*/callStatus => (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_free_onchainwallet(pointer, callStatus), /*liftString:*/FfiConverterString.lift);
|
|
2688
|
+
},
|
|
2689
|
+
isConcreteType(obj) {
|
|
2690
|
+
return obj[_uniffiBindgenReactNative.destructorGuardSymbol] && obj[_uniffiBindgenReactNative.uniffiTypeNameSymbol] === "OnchainWallet";
|
|
2691
|
+
}
|
|
2692
|
+
};
|
|
2693
|
+
})();
|
|
2694
|
+
// FfiConverter for OnchainWalletLike
|
|
2695
|
+
const FfiConverterTypeOnchainWallet = new _uniffiBindgenReactNative.FfiConverterObject(uniffiTypeOnchainWalletObjectFactory);
|
|
2696
|
+
|
|
2697
|
+
/**
|
|
2698
|
+
* UniFFI-facing Bark wallet.
|
|
2699
|
+
*
|
|
2700
|
+
* Wraps `core::Wallet` and adds:
|
|
2701
|
+
* - `run_async` runtime offload on every entry point
|
|
2702
|
+
* - mailbox processor task + cancellation on drop
|
|
2703
|
+
* - LNURL `pay_lightning_address`
|
|
2704
|
+
* - Daemon control methods
|
|
2705
|
+
* - Notification holder
|
|
2706
|
+
* - Callback onchain dispatch
|
|
2707
|
+
*/
|
|
2708
|
+
|
|
2709
|
+
/**
|
|
2710
|
+
* @deprecated Use `WalletLike` instead.
|
|
2711
|
+
*/
|
|
2712
|
+
|
|
2713
|
+
/**
|
|
2714
|
+
* UniFFI-facing Bark wallet.
|
|
2715
|
+
*
|
|
2716
|
+
* Wraps `core::Wallet` and adds:
|
|
2717
|
+
* - `run_async` runtime offload on every entry point
|
|
2718
|
+
* - mailbox processor task + cancellation on drop
|
|
2719
|
+
* - LNURL `pay_lightning_address`
|
|
2720
|
+
* - Daemon control methods
|
|
2721
|
+
* - Notification holder
|
|
2722
|
+
* - Callback onchain dispatch
|
|
2723
|
+
*/
|
|
2724
|
+
class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
2725
|
+
[_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "Wallet";
|
|
2726
|
+
// No primary constructor declared for this class.
|
|
2727
|
+
constructor(pointer) {
|
|
2728
|
+
super();
|
|
2729
|
+
this[_uniffiBindgenReactNative.pointerLiteralSymbol] = pointer;
|
|
2730
|
+
this[_uniffiBindgenReactNative.destructorGuardSymbol] = uniffiTypeWalletObjectFactory.bless(pointer);
|
|
2731
|
+
}
|
|
2732
|
+
static async create(mnemonic, config, datadir, forceRescan, asyncOpts_) /*throws*/{
|
|
2733
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2734
|
+
try {
|
|
2735
|
+
return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2736
|
+
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_constructor_wallet_create(FfiConverterString.lower(mnemonic), FfiConverterTypeConfig.lower(config), FfiConverterString.lower(datadir), _uniffiBindgenReactNative.FfiConverterBool.lower(forceRescan));
|
|
2737
|
+
}, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterTypeWallet.lift.bind(FfiConverterTypeWallet), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2738
|
+
} catch (__error) {
|
|
2739
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
2740
|
+
__error.stack = __stack;
|
|
2741
|
+
}
|
|
2742
|
+
throw __error;
|
|
2743
|
+
}
|
|
2744
|
+
}
|
|
2519
2745
|
static async createWithOnchain(mnemonic, config, datadir, onchainWallet, forceRescan, asyncOpts_) /*throws*/{
|
|
2520
2746
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2521
2747
|
try {
|
|
@@ -2529,10 +2755,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
2529
2755
|
throw __error;
|
|
2530
2756
|
}
|
|
2531
2757
|
}
|
|
2532
|
-
|
|
2533
|
-
/**
|
|
2534
|
-
* Open an existing Bark wallet
|
|
2535
|
-
*/
|
|
2536
2758
|
static async open(mnemonic, config, datadir, asyncOpts_) /*throws*/{
|
|
2537
2759
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2538
2760
|
try {
|
|
@@ -2548,12 +2770,7 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
2548
2770
|
}
|
|
2549
2771
|
|
|
2550
2772
|
/**
|
|
2551
|
-
* Open an existing
|
|
2552
|
-
* optionally with onchain capabilities.
|
|
2553
|
-
*
|
|
2554
|
-
* The daemon runs in the background and is stopped when the wallet is dropped.
|
|
2555
|
-
* Callback-based onchain wallets are not supported for daemon mode and the
|
|
2556
|
-
* wallet will be opened without onchain capabilities in that case.
|
|
2773
|
+
* Open an existing wallet and start running the daemon.
|
|
2557
2774
|
*/
|
|
2558
2775
|
static async openWithDaemon(mnemonic, config, datadir, onchainWallet, asyncOpts_) /*throws*/{
|
|
2559
2776
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
@@ -2568,10 +2785,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
2568
2785
|
throw __error;
|
|
2569
2786
|
}
|
|
2570
2787
|
}
|
|
2571
|
-
|
|
2572
|
-
/**
|
|
2573
|
-
* Open an existing Bark wallet WITH onchain capabilities
|
|
2574
|
-
*/
|
|
2575
2788
|
static async openWithOnchain(mnemonic, config, datadir, onchainWallet, asyncOpts_) /*throws*/{
|
|
2576
2789
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2577
2790
|
try {
|
|
@@ -2585,12 +2798,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
2585
2798
|
throw __error;
|
|
2586
2799
|
}
|
|
2587
2800
|
}
|
|
2588
|
-
|
|
2589
|
-
/**
|
|
2590
|
-
* Get earliest block height when all exits will be claimable
|
|
2591
|
-
*
|
|
2592
|
-
* Returns null if no exits or any exit has undetermined claimability.
|
|
2593
|
-
*/
|
|
2594
2801
|
async allExitsClaimableAtHeight(asyncOpts_) /*throws*/{
|
|
2595
2802
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2596
2803
|
try {
|
|
@@ -2604,10 +2811,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
2604
2811
|
throw __error;
|
|
2605
2812
|
}
|
|
2606
2813
|
}
|
|
2607
|
-
|
|
2608
|
-
/**
|
|
2609
|
-
* Get all VTXOs (including spent)
|
|
2610
|
-
*/
|
|
2611
2814
|
async allVtxos(asyncOpts_) /*throws*/{
|
|
2612
2815
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2613
2816
|
try {
|
|
@@ -2621,10 +2824,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
2621
2824
|
throw __error;
|
|
2622
2825
|
}
|
|
2623
2826
|
}
|
|
2624
|
-
|
|
2625
|
-
/**
|
|
2626
|
-
* Get Ark server info (null if not connected)
|
|
2627
|
-
*/
|
|
2628
2827
|
async arkInfo(asyncOpts_) {
|
|
2629
2828
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2630
2829
|
try {
|
|
@@ -2651,10 +2850,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
2651
2850
|
throw __error;
|
|
2652
2851
|
}
|
|
2653
2852
|
}
|
|
2654
|
-
|
|
2655
|
-
/**
|
|
2656
|
-
* Board all funds from onchain wallet into Ark
|
|
2657
|
-
*/
|
|
2658
2853
|
async boardAll(onchainWallet, asyncOpts_) /*throws*/{
|
|
2659
2854
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2660
2855
|
try {
|
|
@@ -2668,10 +2863,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
2668
2863
|
throw __error;
|
|
2669
2864
|
}
|
|
2670
2865
|
}
|
|
2671
|
-
|
|
2672
|
-
/**
|
|
2673
|
-
* Board a specific amount from onchain wallet into Ark
|
|
2674
|
-
*/
|
|
2675
2866
|
async boardAmount(onchainWallet, amountSats, asyncOpts_) /*throws*/{
|
|
2676
2867
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2677
2868
|
try {
|
|
@@ -2698,19 +2889,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
2698
2889
|
throw __error;
|
|
2699
2890
|
}
|
|
2700
2891
|
}
|
|
2701
|
-
|
|
2702
|
-
/**
|
|
2703
|
-
* Broadcast a signed transaction to the Bitcoin network
|
|
2704
|
-
*
|
|
2705
|
-
* Takes a hex-encoded transaction and broadcasts it via the wallet's chain source.
|
|
2706
|
-
* This is useful after extracting a transaction from a PSBT using extract_tx_from_psbt.
|
|
2707
|
-
*
|
|
2708
|
-
* # Arguments
|
|
2709
|
-
*
|
|
2710
|
-
* * `tx_hex` - Hex-encoded signed transaction
|
|
2711
|
-
*
|
|
2712
|
-
* Returns the transaction ID (txid) of the broadcasted transaction
|
|
2713
|
-
*/
|
|
2714
2892
|
async broadcastTx(txHex, asyncOpts_) /*throws*/{
|
|
2715
2893
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2716
2894
|
try {
|
|
@@ -2724,10 +2902,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
2724
2902
|
throw __error;
|
|
2725
2903
|
}
|
|
2726
2904
|
}
|
|
2727
|
-
|
|
2728
|
-
/**
|
|
2729
|
-
* Cancel all pending rounds
|
|
2730
|
-
*/
|
|
2731
2905
|
async cancelAllPendingRounds(asyncOpts_) /*throws*/{
|
|
2732
2906
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2733
2907
|
try {
|
|
@@ -2741,17 +2915,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
2741
2915
|
throw __error;
|
|
2742
2916
|
}
|
|
2743
2917
|
}
|
|
2744
|
-
|
|
2745
|
-
/**
|
|
2746
|
-
* Cancel a pending lightning receive by payment hash
|
|
2747
|
-
*
|
|
2748
|
-
* Server will refuse if HTLCs already granted, preimage already revealed,
|
|
2749
|
-
* or receive already finished.
|
|
2750
|
-
*
|
|
2751
|
-
* # Arguments
|
|
2752
|
-
*
|
|
2753
|
-
* * `payment_hash` - Payment hash as hex string
|
|
2754
|
-
*/
|
|
2755
2918
|
async cancelLightningReceive(paymentHash, asyncOpts_) /*throws*/{
|
|
2756
2919
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2757
2920
|
try {
|
|
@@ -2765,10 +2928,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
2765
2928
|
throw __error;
|
|
2766
2929
|
}
|
|
2767
2930
|
}
|
|
2768
|
-
|
|
2769
|
-
/**
|
|
2770
|
-
* Cancel a specific pending round
|
|
2771
|
-
*/
|
|
2772
2931
|
async cancelPendingRound(roundId, asyncOpts_) /*throws*/{
|
|
2773
2932
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2774
2933
|
try {
|
|
@@ -2782,17 +2941,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
2782
2941
|
throw __error;
|
|
2783
2942
|
}
|
|
2784
2943
|
}
|
|
2785
|
-
|
|
2786
|
-
/**
|
|
2787
|
-
* Check lightning payment status by payment hash
|
|
2788
|
-
*
|
|
2789
|
-
* # Arguments
|
|
2790
|
-
*
|
|
2791
|
-
* * `payment_hash` - Payment hash as hex string
|
|
2792
|
-
* * `wait` - Whether to wait for the payment to complete
|
|
2793
|
-
*
|
|
2794
|
-
* Returns the preimage if payment is successful, null if still pending
|
|
2795
|
-
*/
|
|
2796
2944
|
async checkLightningPayment(paymentHash, wait, asyncOpts_) /*throws*/{
|
|
2797
2945
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2798
2946
|
try {
|
|
@@ -2806,10 +2954,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
2806
2954
|
throw __error;
|
|
2807
2955
|
}
|
|
2808
2956
|
}
|
|
2809
|
-
|
|
2810
|
-
/**
|
|
2811
|
-
* Get claimable lightning receive balance
|
|
2812
|
-
*/
|
|
2813
2957
|
async claimableLightningReceiveBalanceSats(asyncOpts_) /*throws*/{
|
|
2814
2958
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2815
2959
|
try {
|
|
@@ -2823,10 +2967,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
2823
2967
|
throw __error;
|
|
2824
2968
|
}
|
|
2825
2969
|
}
|
|
2826
|
-
|
|
2827
|
-
/**
|
|
2828
|
-
* Get wallet config
|
|
2829
|
-
*/
|
|
2830
2970
|
async config(asyncOpts_) {
|
|
2831
2971
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2832
2972
|
try {
|
|
@@ -2840,19 +2980,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
2840
2980
|
throw __error;
|
|
2841
2981
|
}
|
|
2842
2982
|
}
|
|
2843
|
-
|
|
2844
|
-
/**
|
|
2845
|
-
* Drain claimable exits to an address
|
|
2846
|
-
*
|
|
2847
|
-
* Builds a signed PSBT that claims exited funds and sends them to the address.
|
|
2848
|
-
* The PSBT can be broadcast directly or modified before broadcasting.
|
|
2849
|
-
*
|
|
2850
|
-
* # Arguments
|
|
2851
|
-
*
|
|
2852
|
-
* * `vtxo_ids` - List of claimable VTXO IDs to drain (empty = drain all)
|
|
2853
|
-
* * `address` - Bitcoin address to send claimed funds to
|
|
2854
|
-
* * `fee_rate_sat_per_vb` - Optional fee rate override in sats/vB
|
|
2855
|
-
*/
|
|
2856
2983
|
async drainExits(vtxoIds, address, feeRateSatPerVb, asyncOpts_) /*throws*/{
|
|
2857
2984
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2858
2985
|
try {
|
|
@@ -2866,14 +2993,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
2866
2993
|
throw __error;
|
|
2867
2994
|
}
|
|
2868
2995
|
}
|
|
2869
|
-
|
|
2870
|
-
/**
|
|
2871
|
-
* Estimate the fee for an arkoor payment
|
|
2872
|
-
*
|
|
2873
|
-
* # Arguments
|
|
2874
|
-
*
|
|
2875
|
-
* * `amount_sats` - Amount to send in sats
|
|
2876
|
-
*/
|
|
2877
2996
|
async estimateArkoorPaymentFee(amountSats, asyncOpts_) /*throws*/{
|
|
2878
2997
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2879
2998
|
try {
|
|
@@ -2887,14 +3006,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
2887
3006
|
throw __error;
|
|
2888
3007
|
}
|
|
2889
3008
|
}
|
|
2890
|
-
|
|
2891
|
-
/**
|
|
2892
|
-
* Estimate the fee for a board operation
|
|
2893
|
-
*
|
|
2894
|
-
* # Arguments
|
|
2895
|
-
*
|
|
2896
|
-
* * `amount_sats` - Amount to board in sats
|
|
2897
|
-
*/
|
|
2898
3009
|
async estimateBoardFee(amountSats, asyncOpts_) /*throws*/{
|
|
2899
3010
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2900
3011
|
try {
|
|
@@ -2908,14 +3019,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
2908
3019
|
throw __error;
|
|
2909
3020
|
}
|
|
2910
3021
|
}
|
|
2911
|
-
|
|
2912
|
-
/**
|
|
2913
|
-
* Estimate the fee for a lightning receive
|
|
2914
|
-
*
|
|
2915
|
-
* # Arguments
|
|
2916
|
-
*
|
|
2917
|
-
* * `amount_sats` - Amount to receive in sats
|
|
2918
|
-
*/
|
|
2919
3022
|
async estimateLightningReceiveFee(amountSats, asyncOpts_) /*throws*/{
|
|
2920
3023
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2921
3024
|
try {
|
|
@@ -2929,14 +3032,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
2929
3032
|
throw __error;
|
|
2930
3033
|
}
|
|
2931
3034
|
}
|
|
2932
|
-
|
|
2933
|
-
/**
|
|
2934
|
-
* Estimate the fee for a lightning send
|
|
2935
|
-
*
|
|
2936
|
-
* # Arguments
|
|
2937
|
-
*
|
|
2938
|
-
* * `amount_sats` - Amount to send in sats
|
|
2939
|
-
*/
|
|
2940
3035
|
async estimateLightningSendFee(amountSats, asyncOpts_) /*throws*/{
|
|
2941
3036
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2942
3037
|
try {
|
|
@@ -2950,14 +3045,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
2950
3045
|
throw __error;
|
|
2951
3046
|
}
|
|
2952
3047
|
}
|
|
2953
|
-
|
|
2954
|
-
/**
|
|
2955
|
-
* Estimate the fee for offboarding all spendable VTXOs
|
|
2956
|
-
*
|
|
2957
|
-
* # Arguments
|
|
2958
|
-
*
|
|
2959
|
-
* * `address` - Destination address for the offboard
|
|
2960
|
-
*/
|
|
2961
3048
|
async estimateOffboardAllFee(address, asyncOpts_) /*throws*/{
|
|
2962
3049
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2963
3050
|
try {
|
|
@@ -2971,15 +3058,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
2971
3058
|
throw __error;
|
|
2972
3059
|
}
|
|
2973
3060
|
}
|
|
2974
|
-
|
|
2975
|
-
/**
|
|
2976
|
-
* Estimate the fee for an offboard operation
|
|
2977
|
-
*
|
|
2978
|
-
* # Arguments
|
|
2979
|
-
*
|
|
2980
|
-
* * `address` - Destination address for the offboard
|
|
2981
|
-
* * `vtxo_ids` - VTXOs to offboard
|
|
2982
|
-
*/
|
|
2983
3061
|
async estimateOffboardFee(address, vtxoIds, asyncOpts_) /*throws*/{
|
|
2984
3062
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
2985
3063
|
try {
|
|
@@ -2993,14 +3071,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
2993
3071
|
throw __error;
|
|
2994
3072
|
}
|
|
2995
3073
|
}
|
|
2996
|
-
|
|
2997
|
-
/**
|
|
2998
|
-
* Estimate the fee for a refresh operation
|
|
2999
|
-
*
|
|
3000
|
-
* # Arguments
|
|
3001
|
-
*
|
|
3002
|
-
* * `vtxo_ids` - VTXOs to refresh
|
|
3003
|
-
*/
|
|
3004
3074
|
async estimateRefreshFee(vtxoIds, asyncOpts_) /*throws*/{
|
|
3005
3075
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3006
3076
|
try {
|
|
@@ -3014,15 +3084,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3014
3084
|
throw __error;
|
|
3015
3085
|
}
|
|
3016
3086
|
}
|
|
3017
|
-
|
|
3018
|
-
/**
|
|
3019
|
-
* Estimate the fee for a send onchain operation
|
|
3020
|
-
*
|
|
3021
|
-
* # Arguments
|
|
3022
|
-
*
|
|
3023
|
-
* * `address` - Destination address
|
|
3024
|
-
* * `amount_sats` - Amount to send in sats
|
|
3025
|
-
*/
|
|
3026
3087
|
async estimateSendOnchainFee(address, amountSats, asyncOpts_) /*throws*/{
|
|
3027
3088
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3028
3089
|
try {
|
|
@@ -3036,27 +3097,11 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3036
3097
|
throw __error;
|
|
3037
3098
|
}
|
|
3038
3099
|
}
|
|
3039
|
-
|
|
3040
|
-
/**
|
|
3041
|
-
* Get the wallet's BIP32 fingerprint
|
|
3042
|
-
*/
|
|
3043
3100
|
fingerprint() {
|
|
3044
3101
|
return FfiConverterString.lift(uniffiCaller.rustCall(/*caller:*/callStatus => {
|
|
3045
3102
|
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_fingerprint(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
|
|
3046
3103
|
}, /*liftString:*/FfiConverterString.lift));
|
|
3047
3104
|
}
|
|
3048
|
-
|
|
3049
|
-
/**
|
|
3050
|
-
* Get detailed exit status for a specific VTXO
|
|
3051
|
-
*
|
|
3052
|
-
* Returns detailed status including current state, history, and transactions.
|
|
3053
|
-
*
|
|
3054
|
-
* # Arguments
|
|
3055
|
-
*
|
|
3056
|
-
* * `vtxo_id` - The VTXO ID to check
|
|
3057
|
-
* * `include_history` - Whether to include full state machine history
|
|
3058
|
-
* * `include_transactions` - Whether to include transaction details
|
|
3059
|
-
*/
|
|
3060
3105
|
async getExitStatus(vtxoId, includeHistory, includeTransactions, asyncOpts_) /*throws*/{
|
|
3061
3106
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3062
3107
|
try {
|
|
@@ -3068,12 +3113,8 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3068
3113
|
__error.stack = __stack;
|
|
3069
3114
|
}
|
|
3070
3115
|
throw __error;
|
|
3071
|
-
}
|
|
3072
|
-
}
|
|
3073
|
-
|
|
3074
|
-
/**
|
|
3075
|
-
* Get all VTXOs currently in exit process
|
|
3076
|
-
*/
|
|
3116
|
+
}
|
|
3117
|
+
}
|
|
3077
3118
|
async getExitVtxos(asyncOpts_) /*throws*/{
|
|
3078
3119
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3079
3120
|
try {
|
|
@@ -3087,10 +3128,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3087
3128
|
throw __error;
|
|
3088
3129
|
}
|
|
3089
3130
|
}
|
|
3090
|
-
|
|
3091
|
-
/**
|
|
3092
|
-
* Get VTXOs expiring within threshold blocks
|
|
3093
|
-
*/
|
|
3094
3131
|
async getExpiringVtxos(thresholdBlocks, asyncOpts_) /*throws*/{
|
|
3095
3132
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3096
3133
|
try {
|
|
@@ -3104,12 +3141,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3104
3141
|
throw __error;
|
|
3105
3142
|
}
|
|
3106
3143
|
}
|
|
3107
|
-
|
|
3108
|
-
/**
|
|
3109
|
-
* Get the block height of the first expiring VTXO
|
|
3110
|
-
*
|
|
3111
|
-
* Returns null if there are no spendable VTXOs.
|
|
3112
|
-
*/
|
|
3113
3144
|
async getFirstExpiringVtxoBlockheight(asyncOpts_) /*throws*/{
|
|
3114
3145
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3115
3146
|
try {
|
|
@@ -3123,13 +3154,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3123
3154
|
throw __error;
|
|
3124
3155
|
}
|
|
3125
3156
|
}
|
|
3126
|
-
|
|
3127
|
-
/**
|
|
3128
|
-
* Get the next block height when a refresh should be performed
|
|
3129
|
-
*
|
|
3130
|
-
* This is calculated as the first expiring VTXO height minus the refresh threshold.
|
|
3131
|
-
* Returns null if there are no VTXOs to refresh.
|
|
3132
|
-
*/
|
|
3133
3157
|
async getNextRequiredRefreshBlockheight(asyncOpts_) /*throws*/{
|
|
3134
3158
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3135
3159
|
try {
|
|
@@ -3143,10 +3167,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3143
3167
|
throw __error;
|
|
3144
3168
|
}
|
|
3145
3169
|
}
|
|
3146
|
-
|
|
3147
|
-
/**
|
|
3148
|
-
* Get a specific VTXO by ID
|
|
3149
|
-
*/
|
|
3150
3170
|
async getVtxoById(vtxoId, asyncOpts_) /*throws*/{
|
|
3151
3171
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3152
3172
|
try {
|
|
@@ -3160,10 +3180,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3160
3180
|
throw __error;
|
|
3161
3181
|
}
|
|
3162
3182
|
}
|
|
3163
|
-
|
|
3164
|
-
/**
|
|
3165
|
-
* Get VTXOs that should be refreshed
|
|
3166
|
-
*/
|
|
3167
3183
|
async getVtxosToRefresh(asyncOpts_) /*throws*/{
|
|
3168
3184
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3169
3185
|
try {
|
|
@@ -3177,10 +3193,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3177
3193
|
throw __error;
|
|
3178
3194
|
}
|
|
3179
3195
|
}
|
|
3180
|
-
|
|
3181
|
-
/**
|
|
3182
|
-
* Check if any exits are pending
|
|
3183
|
-
*/
|
|
3184
3196
|
async hasPendingExits(asyncOpts_) /*throws*/{
|
|
3185
3197
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3186
3198
|
try {
|
|
@@ -3194,10 +3206,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3194
3206
|
throw __error;
|
|
3195
3207
|
}
|
|
3196
3208
|
}
|
|
3197
|
-
|
|
3198
|
-
/**
|
|
3199
|
-
* Get all wallet movements (transaction history)
|
|
3200
|
-
*/
|
|
3201
3209
|
async history(asyncOpts_) /*throws*/{
|
|
3202
3210
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3203
3211
|
try {
|
|
@@ -3211,15 +3219,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3211
3219
|
throw __error;
|
|
3212
3220
|
}
|
|
3213
3221
|
}
|
|
3214
|
-
|
|
3215
|
-
/**
|
|
3216
|
-
* Get wallet movements filtered by payment method
|
|
3217
|
-
*
|
|
3218
|
-
* # Arguments
|
|
3219
|
-
*
|
|
3220
|
-
* * `payment_method_type` - Type (e.g. "ark", "bitcoin", "invoice", "offer", "lightning_address", "custom")
|
|
3221
|
-
* * `payment_method_value` - Value (e.g. an address or invoice string)
|
|
3222
|
-
*/
|
|
3223
3222
|
async historyByPaymentMethod(paymentMethodType, paymentMethodValue, asyncOpts_) /*throws*/{
|
|
3224
3223
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3225
3224
|
try {
|
|
@@ -3233,17 +3232,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3233
3232
|
throw __error;
|
|
3234
3233
|
}
|
|
3235
3234
|
}
|
|
3236
|
-
|
|
3237
|
-
/**
|
|
3238
|
-
* Import a serialized VTXO into the wallet
|
|
3239
|
-
*
|
|
3240
|
-
* Allows recovering VTXOs by importing their serialized form.
|
|
3241
|
-
* The VTXO data should be base64-encoded.
|
|
3242
|
-
*
|
|
3243
|
-
* # Arguments
|
|
3244
|
-
*
|
|
3245
|
-
* * `vtxo_base64` - Base64-encoded serialized VTXO
|
|
3246
|
-
*/
|
|
3247
3235
|
async importVtxo(vtxoBase64, asyncOpts_) /*throws*/{
|
|
3248
3236
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3249
3237
|
try {
|
|
@@ -3257,14 +3245,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3257
3245
|
throw __error;
|
|
3258
3246
|
}
|
|
3259
3247
|
}
|
|
3260
|
-
|
|
3261
|
-
/**
|
|
3262
|
-
* Get lightning receive status by payment hash
|
|
3263
|
-
*
|
|
3264
|
-
* # Arguments
|
|
3265
|
-
*
|
|
3266
|
-
* * `payment_hash` - Payment hash as hex string
|
|
3267
|
-
*/
|
|
3268
3248
|
async lightningReceiveStatus(paymentHash, asyncOpts_) /*throws*/{
|
|
3269
3249
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3270
3250
|
try {
|
|
@@ -3278,12 +3258,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3278
3258
|
throw __error;
|
|
3279
3259
|
}
|
|
3280
3260
|
}
|
|
3281
|
-
|
|
3282
|
-
/**
|
|
3283
|
-
* List all exits that are claimable
|
|
3284
|
-
*
|
|
3285
|
-
* Returns exits ready to be drained to onchain wallet.
|
|
3286
|
-
*/
|
|
3287
3261
|
async listClaimableExits(asyncOpts_) /*throws*/{
|
|
3288
3262
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3289
3263
|
try {
|
|
@@ -3297,31 +3271,11 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3297
3271
|
throw __error;
|
|
3298
3272
|
}
|
|
3299
3273
|
}
|
|
3300
|
-
|
|
3301
|
-
/**
|
|
3302
|
-
* Create a new authorization for your server mailbox
|
|
3303
|
-
*
|
|
3304
|
-
* This generates an authorization token that can be used to manage
|
|
3305
|
-
* your server mailbox. Useful for delegating mailbox access.
|
|
3306
|
-
*
|
|
3307
|
-
* Returns the mailbox authorization as a hex-encoded string.
|
|
3308
|
-
*/
|
|
3309
3274
|
mailboxAuthorization() /*throws*/{
|
|
3310
3275
|
return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
|
|
3311
3276
|
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_mailbox_authorization(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
|
|
3312
3277
|
}, /*liftString:*/FfiConverterString.lift));
|
|
3313
3278
|
}
|
|
3314
|
-
|
|
3315
|
-
/**
|
|
3316
|
-
* Get the mailbox identifier for push notifications
|
|
3317
|
-
*
|
|
3318
|
-
* This identifier can be registered with a push notification service
|
|
3319
|
-
* to receive alerts when VTXOs arrive in your mailbox. The mailbox
|
|
3320
|
-
* receives all incoming VTXOs regardless of source (arkoor payments,
|
|
3321
|
-
* Lightning receives, or round outputs).
|
|
3322
|
-
*
|
|
3323
|
-
* Returns the mailbox identifier as a hex-encoded public key.
|
|
3324
|
-
*/
|
|
3325
3279
|
mailboxIdentifier() /*throws*/{
|
|
3326
3280
|
return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
|
|
3327
3281
|
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_mailbox_identifier(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
|
|
@@ -3340,13 +3294,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3340
3294
|
throw __error;
|
|
3341
3295
|
}
|
|
3342
3296
|
}
|
|
3343
|
-
|
|
3344
|
-
/**
|
|
3345
|
-
* Perform maintenance in delegated (non-interactive) mode
|
|
3346
|
-
*
|
|
3347
|
-
* This schedules refresh operations but doesn't wait for completion.
|
|
3348
|
-
* Use this when you want to queue operations without blocking.
|
|
3349
|
-
*/
|
|
3350
3297
|
async maintenanceDelegated(asyncOpts_) /*throws*/{
|
|
3351
3298
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3352
3299
|
try {
|
|
@@ -3360,10 +3307,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3360
3307
|
throw __error;
|
|
3361
3308
|
}
|
|
3362
3309
|
}
|
|
3363
|
-
|
|
3364
|
-
/**
|
|
3365
|
-
* Perform maintenance refresh
|
|
3366
|
-
*/
|
|
3367
3310
|
async maintenanceRefresh(asyncOpts_) /*throws*/{
|
|
3368
3311
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3369
3312
|
try {
|
|
@@ -3377,12 +3320,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3377
3320
|
throw __error;
|
|
3378
3321
|
}
|
|
3379
3322
|
}
|
|
3380
|
-
|
|
3381
|
-
/**
|
|
3382
|
-
* Full maintenance including onchain wallet sync
|
|
3383
|
-
*
|
|
3384
|
-
* More thorough than maintenance() - also syncs onchain wallet and exits.
|
|
3385
|
-
*/
|
|
3386
3323
|
async maintenanceWithOnchain(onchainWallet, asyncOpts_) /*throws*/{
|
|
3387
3324
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3388
3325
|
try {
|
|
@@ -3396,10 +3333,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3396
3333
|
throw __error;
|
|
3397
3334
|
}
|
|
3398
3335
|
}
|
|
3399
|
-
|
|
3400
|
-
/**
|
|
3401
|
-
* Perform maintenance with onchain wallet in delegated mode
|
|
3402
|
-
*/
|
|
3403
3336
|
async maintenanceWithOnchainDelegated(onchainWallet, asyncOpts_) /*throws*/{
|
|
3404
3337
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3405
3338
|
try {
|
|
@@ -3413,12 +3346,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3413
3346
|
throw __error;
|
|
3414
3347
|
}
|
|
3415
3348
|
}
|
|
3416
|
-
|
|
3417
|
-
/**
|
|
3418
|
-
* Schedule a maintenance refresh if VTXOs need refreshing
|
|
3419
|
-
*
|
|
3420
|
-
* Returns the round ID if a refresh was scheduled, null otherwise.
|
|
3421
|
-
*/
|
|
3422
3349
|
async maybeScheduleMaintenanceRefresh(asyncOpts_) /*throws*/{
|
|
3423
3350
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3424
3351
|
try {
|
|
@@ -3432,10 +3359,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3432
3359
|
throw __error;
|
|
3433
3360
|
}
|
|
3434
3361
|
}
|
|
3435
|
-
|
|
3436
|
-
/**
|
|
3437
|
-
* Get the Bitcoin network this wallet is using
|
|
3438
|
-
*/
|
|
3439
3362
|
async network(asyncOpts_) /*throws*/{
|
|
3440
3363
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3441
3364
|
try {
|
|
@@ -3462,10 +3385,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3462
3385
|
throw __error;
|
|
3463
3386
|
}
|
|
3464
3387
|
}
|
|
3465
|
-
|
|
3466
|
-
/**
|
|
3467
|
-
* Generate a new address and return it with its index
|
|
3468
|
-
*/
|
|
3469
3388
|
async newAddressWithIndex(asyncOpts_) /*throws*/{
|
|
3470
3389
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3471
3390
|
try {
|
|
@@ -3479,11 +3398,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3479
3398
|
throw __error;
|
|
3480
3399
|
}
|
|
3481
3400
|
}
|
|
3482
|
-
|
|
3483
|
-
/**
|
|
3484
|
-
* Get the timestamp when the next round will start (Unix timestamp in seconds)
|
|
3485
|
-
* Returns an error if the server hasn't provided round timing info
|
|
3486
|
-
*/
|
|
3487
3401
|
async nextRoundStartTime(asyncOpts_) /*throws*/{
|
|
3488
3402
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3489
3403
|
try {
|
|
@@ -3497,14 +3411,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3497
3411
|
throw __error;
|
|
3498
3412
|
}
|
|
3499
3413
|
}
|
|
3500
|
-
|
|
3501
|
-
/**
|
|
3502
|
-
* Get a pull-based notification holder for this wallet.
|
|
3503
|
-
*
|
|
3504
|
-
* Call `next_notification()` in a loop to receive events.
|
|
3505
|
-
* Call `cancel_next_notification_wait()` to unblock a pending wait without
|
|
3506
|
-
* destroying the stream.
|
|
3507
|
-
*/
|
|
3508
3414
|
notifications() {
|
|
3509
3415
|
return FfiConverterTypeNotificationHolder.lift(uniffiCaller.rustCall(/*caller:*/callStatus => {
|
|
3510
3416
|
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_notifications(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
|
|
@@ -3523,10 +3429,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3523
3429
|
throw __error;
|
|
3524
3430
|
}
|
|
3525
3431
|
}
|
|
3526
|
-
|
|
3527
|
-
/**
|
|
3528
|
-
* Offboard specific VTXOs to a Bitcoin address
|
|
3529
|
-
*/
|
|
3530
3432
|
async offboardVtxos(vtxoIds, bitcoinAddress, asyncOpts_) /*throws*/{
|
|
3531
3433
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3532
3434
|
try {
|
|
@@ -3540,6 +3442,10 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3540
3442
|
throw __error;
|
|
3541
3443
|
}
|
|
3542
3444
|
}
|
|
3445
|
+
|
|
3446
|
+
/**
|
|
3447
|
+
* Pay to a Lightning Address (LNURL). UniFFI-only — lnurl-rs is not wasm-compatible.
|
|
3448
|
+
*/
|
|
3543
3449
|
async payLightningAddress(lightningAddress, amountSats, comment, asyncOpts_) /*throws*/{
|
|
3544
3450
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3545
3451
|
try {
|
|
@@ -3566,15 +3472,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3566
3472
|
throw __error;
|
|
3567
3473
|
}
|
|
3568
3474
|
}
|
|
3569
|
-
|
|
3570
|
-
/**
|
|
3571
|
-
* Pay a BOLT12 lightning offer
|
|
3572
|
-
*
|
|
3573
|
-
* # Arguments
|
|
3574
|
-
*
|
|
3575
|
-
* * `offer` - BOLT12 offer string
|
|
3576
|
-
* * `amount_sats` - Optional amount in sats (required if offer doesn't specify amount)
|
|
3577
|
-
*/
|
|
3578
3475
|
async payLightningOffer(offer, amountSats, asyncOpts_) /*throws*/{
|
|
3579
3476
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3580
3477
|
try {
|
|
@@ -3588,27 +3485,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3588
3485
|
throw __error;
|
|
3589
3486
|
}
|
|
3590
3487
|
}
|
|
3591
|
-
|
|
3592
|
-
/**
|
|
3593
|
-
* DEPRECATED: use `peek_address` instead
|
|
3594
|
-
*/
|
|
3595
|
-
async peakAddress(index, asyncOpts_) /*throws*/{
|
|
3596
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3597
|
-
try {
|
|
3598
|
-
return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3599
|
-
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_peak_address(uniffiTypeWalletObjectFactory.clonePointer(this), _uniffiBindgenReactNative.FfiConverterUInt32.lower(index));
|
|
3600
|
-
}, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3601
|
-
} catch (__error) {
|
|
3602
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
3603
|
-
__error.stack = __stack;
|
|
3604
|
-
}
|
|
3605
|
-
throw __error;
|
|
3606
|
-
}
|
|
3607
|
-
}
|
|
3608
|
-
|
|
3609
|
-
/**
|
|
3610
|
-
* Peek at an address at a specific index
|
|
3611
|
-
*/
|
|
3612
3488
|
async peekAddress(index, asyncOpts_) /*throws*/{
|
|
3613
3489
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3614
3490
|
try {
|
|
@@ -3622,10 +3498,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3622
3498
|
throw __error;
|
|
3623
3499
|
}
|
|
3624
3500
|
}
|
|
3625
|
-
|
|
3626
|
-
/**
|
|
3627
|
-
* Get all VTXOs that are part of pending boards
|
|
3628
|
-
*/
|
|
3629
3501
|
async pendingBoardVtxos(asyncOpts_) /*throws*/{
|
|
3630
3502
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3631
3503
|
try {
|
|
@@ -3639,10 +3511,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3639
3511
|
throw __error;
|
|
3640
3512
|
}
|
|
3641
3513
|
}
|
|
3642
|
-
|
|
3643
|
-
/**
|
|
3644
|
-
* Get all pending board operations
|
|
3645
|
-
*/
|
|
3646
3514
|
async pendingBoards(asyncOpts_) /*throws*/{
|
|
3647
3515
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3648
3516
|
try {
|
|
@@ -3656,10 +3524,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3656
3524
|
throw __error;
|
|
3657
3525
|
}
|
|
3658
3526
|
}
|
|
3659
|
-
|
|
3660
|
-
/**
|
|
3661
|
-
* Get total amount in pending exits (sats)
|
|
3662
|
-
*/
|
|
3663
3527
|
async pendingExitsTotalSats(asyncOpts_) /*throws*/{
|
|
3664
3528
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3665
3529
|
try {
|
|
@@ -3673,10 +3537,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3673
3537
|
throw __error;
|
|
3674
3538
|
}
|
|
3675
3539
|
}
|
|
3676
|
-
|
|
3677
|
-
/**
|
|
3678
|
-
* Get all pending lightning receives
|
|
3679
|
-
*/
|
|
3680
3540
|
async pendingLightningReceives(asyncOpts_) /*throws*/{
|
|
3681
3541
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3682
3542
|
try {
|
|
@@ -3690,10 +3550,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3690
3550
|
throw __error;
|
|
3691
3551
|
}
|
|
3692
3552
|
}
|
|
3693
|
-
|
|
3694
|
-
/**
|
|
3695
|
-
* Get VTXOs locked in pending Lightning sends
|
|
3696
|
-
*/
|
|
3697
3553
|
async pendingLightningSendVtxos(asyncOpts_) /*throws*/{
|
|
3698
3554
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3699
3555
|
try {
|
|
@@ -3707,10 +3563,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3707
3563
|
throw __error;
|
|
3708
3564
|
}
|
|
3709
3565
|
}
|
|
3710
|
-
|
|
3711
|
-
/**
|
|
3712
|
-
* Get all pending lightning sends
|
|
3713
|
-
*/
|
|
3714
3566
|
async pendingLightningSends(asyncOpts_) /*throws*/{
|
|
3715
3567
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3716
3568
|
try {
|
|
@@ -3724,10 +3576,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3724
3576
|
throw __error;
|
|
3725
3577
|
}
|
|
3726
3578
|
}
|
|
3727
|
-
|
|
3728
|
-
/**
|
|
3729
|
-
* Get VTXOs being used as inputs in pending rounds
|
|
3730
|
-
*/
|
|
3731
3579
|
async pendingRoundInputVtxos(asyncOpts_) /*throws*/{
|
|
3732
3580
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3733
3581
|
try {
|
|
@@ -3741,10 +3589,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3741
3589
|
throw __error;
|
|
3742
3590
|
}
|
|
3743
3591
|
}
|
|
3744
|
-
|
|
3745
|
-
/**
|
|
3746
|
-
* Get all pending round states
|
|
3747
|
-
*/
|
|
3748
3592
|
async pendingRoundStates(asyncOpts_) /*throws*/{
|
|
3749
3593
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3750
3594
|
try {
|
|
@@ -3758,18 +3602,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3758
3602
|
throw __error;
|
|
3759
3603
|
}
|
|
3760
3604
|
}
|
|
3761
|
-
|
|
3762
|
-
/**
|
|
3763
|
-
* Progress unilateral exits (broadcast, fee bump, advance state machine)
|
|
3764
|
-
*
|
|
3765
|
-
* This is the critical method for actually moving exits forward.
|
|
3766
|
-
* Call periodically after starting exits.
|
|
3767
|
-
*
|
|
3768
|
-
* # Arguments
|
|
3769
|
-
*
|
|
3770
|
-
* * `onchain_wallet` - Onchain wallet for building exit transactions
|
|
3771
|
-
* * `fee_rate_sat_per_vb` - Optional fee rate override in sats/vB
|
|
3772
|
-
*/
|
|
3773
3605
|
async progressExits(onchainWallet, feeRateSatPerVb, asyncOpts_) /*throws*/{
|
|
3774
3606
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3775
3607
|
try {
|
|
@@ -3783,12 +3615,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3783
3615
|
throw __error;
|
|
3784
3616
|
}
|
|
3785
3617
|
}
|
|
3786
|
-
|
|
3787
|
-
/**
|
|
3788
|
-
* Progress pending rounds
|
|
3789
|
-
*
|
|
3790
|
-
* Advances the state of all pending rounds. Call periodically.
|
|
3791
|
-
*/
|
|
3792
3618
|
async progressPendingRounds(asyncOpts_) /*throws*/{
|
|
3793
3619
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3794
3620
|
try {
|
|
@@ -3802,10 +3628,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3802
3628
|
throw __error;
|
|
3803
3629
|
}
|
|
3804
3630
|
}
|
|
3805
|
-
|
|
3806
|
-
/**
|
|
3807
|
-
* Get wallet properties
|
|
3808
|
-
*/
|
|
3809
3631
|
async properties(asyncOpts_) /*throws*/{
|
|
3810
3632
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3811
3633
|
try {
|
|
@@ -3819,12 +3641,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3819
3641
|
throw __error;
|
|
3820
3642
|
}
|
|
3821
3643
|
}
|
|
3822
|
-
|
|
3823
|
-
/**
|
|
3824
|
-
* Refresh the Ark server connection
|
|
3825
|
-
*
|
|
3826
|
-
* Re-establishes connection if it was lost.
|
|
3827
|
-
*/
|
|
3828
3644
|
async refreshServer(asyncOpts_) /*throws*/{
|
|
3829
3645
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3830
3646
|
try {
|
|
@@ -3838,10 +3654,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3838
3654
|
throw __error;
|
|
3839
3655
|
}
|
|
3840
3656
|
}
|
|
3841
|
-
|
|
3842
|
-
/**
|
|
3843
|
-
* Refresh specific VTXOs
|
|
3844
|
-
*/
|
|
3845
3657
|
async refreshVtxos(vtxoIds, asyncOpts_) /*throws*/{
|
|
3846
3658
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3847
3659
|
try {
|
|
@@ -3855,12 +3667,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3855
3667
|
throw __error;
|
|
3856
3668
|
}
|
|
3857
3669
|
}
|
|
3858
|
-
|
|
3859
|
-
/**
|
|
3860
|
-
* Refresh VTXOs in delegated (non-interactive) mode
|
|
3861
|
-
*
|
|
3862
|
-
* Returns the round state if a refresh was scheduled, null otherwise.
|
|
3863
|
-
*/
|
|
3864
3670
|
async refreshVtxosDelegated(vtxoIds, asyncOpts_) /*throws*/{
|
|
3865
3671
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3866
3672
|
try {
|
|
@@ -3874,16 +3680,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3874
3680
|
throw __error;
|
|
3875
3681
|
}
|
|
3876
3682
|
}
|
|
3877
|
-
|
|
3878
|
-
/**
|
|
3879
|
-
* Start a background daemon for the wallet.
|
|
3880
|
-
*
|
|
3881
|
-
* The daemon performs periodic syncs, exit progression and other
|
|
3882
|
-
* background work. It is stopped automatically when the wallet is dropped.
|
|
3883
|
-
* Callback-based onchain wallets are not supported for daemon mode and the
|
|
3884
|
-
* daemon will run without onchain capabilities in that case.
|
|
3885
|
-
* Calling this multiple times stops the previous daemon and starts a new one.
|
|
3886
|
-
*/
|
|
3887
3683
|
async runDaemon(onchainWallet, asyncOpts_) /*throws*/{
|
|
3888
3684
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3889
3685
|
try {
|
|
@@ -3923,19 +3719,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3923
3719
|
throw __error;
|
|
3924
3720
|
}
|
|
3925
3721
|
}
|
|
3926
|
-
|
|
3927
|
-
/**
|
|
3928
|
-
* Sign exit claim inputs in an external PSBT
|
|
3929
|
-
*
|
|
3930
|
-
* This is useful if you want to combine exit claims with other inputs
|
|
3931
|
-
* in a single transaction.
|
|
3932
|
-
*
|
|
3933
|
-
* # Arguments
|
|
3934
|
-
*
|
|
3935
|
-
* * `psbt_base64` - Base64-encoded PSBT to sign
|
|
3936
|
-
*
|
|
3937
|
-
* Returns the signed PSBT
|
|
3938
|
-
*/
|
|
3939
3722
|
async signExitClaimInputs(psbtBase64, asyncOpts_) /*throws*/{
|
|
3940
3723
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3941
3724
|
try {
|
|
@@ -3949,10 +3732,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3949
3732
|
throw __error;
|
|
3950
3733
|
}
|
|
3951
3734
|
}
|
|
3952
|
-
|
|
3953
|
-
/**
|
|
3954
|
-
* Get all spendable VTXOs
|
|
3955
|
-
*/
|
|
3956
3735
|
async spendableVtxos(asyncOpts_) /*throws*/{
|
|
3957
3736
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3958
3737
|
try {
|
|
@@ -3966,10 +3745,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3966
3745
|
throw __error;
|
|
3967
3746
|
}
|
|
3968
3747
|
}
|
|
3969
|
-
|
|
3970
|
-
/**
|
|
3971
|
-
* Start unilateral exit for the entire wallet
|
|
3972
|
-
*/
|
|
3973
3748
|
async startExitForEntireWallet(asyncOpts_) /*throws*/{
|
|
3974
3749
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3975
3750
|
try {
|
|
@@ -3983,12 +3758,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3983
3758
|
throw __error;
|
|
3984
3759
|
}
|
|
3985
3760
|
}
|
|
3986
|
-
|
|
3987
|
-
/**
|
|
3988
|
-
* Start unilateral exit for specific VTXOs
|
|
3989
|
-
*
|
|
3990
|
-
* Marks specific VTXOs for exit. Call progress_exits() to actually advance them.
|
|
3991
|
-
*/
|
|
3992
3761
|
async startExitForVtxos(vtxoIds, asyncOpts_) /*throws*/{
|
|
3993
3762
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3994
3763
|
try {
|
|
@@ -4002,10 +3771,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
4002
3771
|
throw __error;
|
|
4003
3772
|
}
|
|
4004
3773
|
}
|
|
4005
|
-
|
|
4006
|
-
/**
|
|
4007
|
-
* Stop the running daemon if any. No-op otherwise.
|
|
4008
|
-
*/
|
|
4009
3774
|
async stopDaemon(asyncOpts_) /*throws*/{
|
|
4010
3775
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4011
3776
|
try {
|
|
@@ -4019,12 +3784,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
4019
3784
|
throw __error;
|
|
4020
3785
|
}
|
|
4021
3786
|
}
|
|
4022
|
-
|
|
4023
|
-
/**
|
|
4024
|
-
* Lightweight sync with Ark server and blockchain
|
|
4025
|
-
* Note: Bark's sync() handles errors internally with logging.
|
|
4026
|
-
* The Throws annotation is for forward compatibility only.
|
|
4027
|
-
*/
|
|
4028
3787
|
async sync(asyncOpts_) /*throws*/{
|
|
4029
3788
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4030
3789
|
try {
|
|
@@ -4038,10 +3797,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
4038
3797
|
throw __error;
|
|
4039
3798
|
}
|
|
4040
3799
|
}
|
|
4041
|
-
|
|
4042
|
-
/**
|
|
4043
|
-
* Sync exit state (checks status but doesn't progress)
|
|
4044
|
-
*/
|
|
4045
3800
|
async syncExits(onchainWallet, asyncOpts_) /*throws*/{
|
|
4046
3801
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4047
3802
|
try {
|
|
@@ -4055,10 +3810,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
4055
3810
|
throw __error;
|
|
4056
3811
|
}
|
|
4057
3812
|
}
|
|
4058
|
-
|
|
4059
|
-
/**
|
|
4060
|
-
* Sync pending board transactions
|
|
4061
|
-
*/
|
|
4062
3813
|
async syncPendingBoards(asyncOpts_) /*throws*/{
|
|
4063
3814
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4064
3815
|
try {
|
|
@@ -4085,15 +3836,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
4085
3836
|
throw __error;
|
|
4086
3837
|
}
|
|
4087
3838
|
}
|
|
4088
|
-
|
|
4089
|
-
/**
|
|
4090
|
-
* Try to claim a specific lightning receive by payment hash
|
|
4091
|
-
*
|
|
4092
|
-
* # Arguments
|
|
4093
|
-
*
|
|
4094
|
-
* * `payment_hash` - Payment hash as hex string
|
|
4095
|
-
* * `wait` - Whether to wait for claim to complete
|
|
4096
|
-
*/
|
|
4097
3839
|
async tryClaimLightningReceive(paymentHash, wait, asyncOpts_) /*throws*/{
|
|
4098
3840
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4099
3841
|
try {
|
|
@@ -4107,14 +3849,6 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
4107
3849
|
throw __error;
|
|
4108
3850
|
}
|
|
4109
3851
|
}
|
|
4110
|
-
|
|
4111
|
-
/**
|
|
4112
|
-
* Validate an Ark address against the connected server
|
|
4113
|
-
*
|
|
4114
|
-
* This performs full validation including checking if the address
|
|
4115
|
-
* belongs to the currently connected Ark server.
|
|
4116
|
-
* For basic format validation only, use validate_ark_address() instead.
|
|
4117
|
-
*/
|
|
4118
3852
|
async validateArkoorAddress(address, asyncOpts_) /*throws*/{
|
|
4119
3853
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4120
3854
|
try {
|
|
@@ -4195,6 +3929,9 @@ const uniffiTypeWalletObjectFactory = (() => {
|
|
|
4195
3929
|
// FfiConverter for WalletLike
|
|
4196
3930
|
const FfiConverterTypeWallet = new _uniffiBindgenReactNative.FfiConverterObject(uniffiTypeWalletObjectFactory);
|
|
4197
3931
|
|
|
3932
|
+
// FfiConverter for boolean | undefined
|
|
3933
|
+
const FfiConverterOptionalBool = new _uniffiBindgenReactNative.FfiConverterOptional(_uniffiBindgenReactNative.FfiConverterBool);
|
|
3934
|
+
|
|
4198
3935
|
// FfiConverter for ArkInfo | undefined
|
|
4199
3936
|
const FfiConverterOptionalTypeArkInfo = new _uniffiBindgenReactNative.FfiConverterOptional(FfiConverterTypeArkInfo);
|
|
4200
3937
|
|
|
@@ -4222,6 +3959,9 @@ const FfiConverterOptionalUInt32 = new _uniffiBindgenReactNative.FfiConverterOpt
|
|
|
4222
3959
|
// FfiConverter for /*u64*/bigint | undefined
|
|
4223
3960
|
const FfiConverterOptionalUInt64 = new _uniffiBindgenReactNative.FfiConverterOptional(_uniffiBindgenReactNative.FfiConverterUInt64);
|
|
4224
3961
|
|
|
3962
|
+
// FfiConverter for /*u8*/number | undefined
|
|
3963
|
+
const FfiConverterOptionalUInt8 = new _uniffiBindgenReactNative.FfiConverterOptional(_uniffiBindgenReactNative.FfiConverterUInt8);
|
|
3964
|
+
|
|
4225
3965
|
// FfiConverter for Array<Destination>
|
|
4226
3966
|
const FfiConverterArrayTypeDestination = new _uniffiBindgenReactNative.FfiConverterArray(FfiConverterTypeDestination);
|
|
4227
3967
|
|
|
@@ -4279,348 +4019,345 @@ function uniffiEnsureInitialized() {
|
|
|
4279
4019
|
if (bindingsContractVersion !== scaffoldingContractVersion) {
|
|
4280
4020
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ContractVersionMismatch(scaffoldingContractVersion, bindingsContractVersion);
|
|
4281
4021
|
}
|
|
4282
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_func_extract_tx_from_psbt() !==
|
|
4022
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_func_extract_tx_from_psbt() !== 16937) {
|
|
4283
4023
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_extract_tx_from_psbt");
|
|
4284
4024
|
}
|
|
4285
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_func_generate_mnemonic() !==
|
|
4025
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_func_generate_mnemonic() !== 10284) {
|
|
4286
4026
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_generate_mnemonic");
|
|
4287
4027
|
}
|
|
4288
|
-
if ((0, _barkFfi.default)().
|
|
4289
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_set_logger");
|
|
4290
|
-
}
|
|
4291
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_func_validate_ark_address() !== 49932) {
|
|
4028
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_func_validate_ark_address() !== 6717) {
|
|
4292
4029
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_validate_ark_address");
|
|
4293
4030
|
}
|
|
4294
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_func_validate_mnemonic() !==
|
|
4031
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_func_validate_mnemonic() !== 2618) {
|
|
4295
4032
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_validate_mnemonic");
|
|
4296
4033
|
}
|
|
4297
|
-
if ((0, _barkFfi.default)().
|
|
4034
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_func_set_logger() !== 376) {
|
|
4035
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_set_logger");
|
|
4036
|
+
}
|
|
4037
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_notificationholder_cancel_next_notification_wait() !== 45269) {
|
|
4298
4038
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_notificationholder_cancel_next_notification_wait");
|
|
4299
4039
|
}
|
|
4300
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_notificationholder_next_notification() !==
|
|
4040
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_notificationholder_next_notification() !== 320) {
|
|
4301
4041
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_notificationholder_next_notification");
|
|
4302
4042
|
}
|
|
4303
|
-
if ((0, _barkFfi.default)().
|
|
4043
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance() !== 38086) {
|
|
4044
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance");
|
|
4045
|
+
}
|
|
4046
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_tx() !== 25200) {
|
|
4047
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_tx");
|
|
4048
|
+
}
|
|
4049
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_drain_tx() !== 29583) {
|
|
4050
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_drain_tx");
|
|
4051
|
+
}
|
|
4052
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_finish_psbt() !== 10227) {
|
|
4053
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_finish_psbt");
|
|
4054
|
+
}
|
|
4055
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx() !== 10525) {
|
|
4056
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx");
|
|
4057
|
+
}
|
|
4058
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block() !== 57629) {
|
|
4059
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block");
|
|
4060
|
+
}
|
|
4061
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_spending_tx() !== 36118) {
|
|
4062
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_spending_tx");
|
|
4063
|
+
}
|
|
4064
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp() !== 38903) {
|
|
4065
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp");
|
|
4066
|
+
}
|
|
4067
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp() !== 41506) {
|
|
4068
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp");
|
|
4069
|
+
}
|
|
4070
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_barklogger_log() !== 8627) {
|
|
4071
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_barklogger_log");
|
|
4072
|
+
}
|
|
4073
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_balance() !== 10540) {
|
|
4304
4074
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_balance");
|
|
4305
4075
|
}
|
|
4306
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_new_address() !==
|
|
4076
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_new_address() !== 27918) {
|
|
4307
4077
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_new_address");
|
|
4308
4078
|
}
|
|
4309
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_send() !==
|
|
4079
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_send() !== 12509) {
|
|
4310
4080
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_send");
|
|
4311
4081
|
}
|
|
4312
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_sync() !==
|
|
4082
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_sync() !== 38870) {
|
|
4313
4083
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_sync");
|
|
4314
4084
|
}
|
|
4315
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_all_exits_claimable_at_height() !==
|
|
4085
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_all_exits_claimable_at_height() !== 35095) {
|
|
4316
4086
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_all_exits_claimable_at_height");
|
|
4317
4087
|
}
|
|
4318
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_all_vtxos() !==
|
|
4088
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_all_vtxos() !== 38449) {
|
|
4319
4089
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_all_vtxos");
|
|
4320
4090
|
}
|
|
4321
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_ark_info() !==
|
|
4091
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_ark_info() !== 37357) {
|
|
4322
4092
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_ark_info");
|
|
4323
4093
|
}
|
|
4324
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_balance() !==
|
|
4094
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_balance() !== 26361) {
|
|
4325
4095
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_balance");
|
|
4326
4096
|
}
|
|
4327
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_all() !==
|
|
4097
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_all() !== 26567) {
|
|
4328
4098
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_board_all");
|
|
4329
4099
|
}
|
|
4330
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_amount() !==
|
|
4100
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_amount() !== 40800) {
|
|
4331
4101
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_board_amount");
|
|
4332
4102
|
}
|
|
4333
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice() !==
|
|
4103
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice() !== 18425) {
|
|
4334
4104
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice");
|
|
4335
4105
|
}
|
|
4336
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_broadcast_tx() !==
|
|
4106
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_broadcast_tx() !== 48884) {
|
|
4337
4107
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_broadcast_tx");
|
|
4338
4108
|
}
|
|
4339
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_all_pending_rounds() !==
|
|
4109
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_all_pending_rounds() !== 49283) {
|
|
4340
4110
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_cancel_all_pending_rounds");
|
|
4341
4111
|
}
|
|
4342
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_lightning_receive() !==
|
|
4112
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_lightning_receive() !== 7354) {
|
|
4343
4113
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_cancel_lightning_receive");
|
|
4344
4114
|
}
|
|
4345
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_pending_round() !==
|
|
4115
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_pending_round() !== 21817) {
|
|
4346
4116
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_cancel_pending_round");
|
|
4347
4117
|
}
|
|
4348
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_check_lightning_payment() !==
|
|
4118
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_check_lightning_payment() !== 2315) {
|
|
4349
4119
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_check_lightning_payment");
|
|
4350
4120
|
}
|
|
4351
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_claimable_lightning_receive_balance_sats() !==
|
|
4121
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_claimable_lightning_receive_balance_sats() !== 57824) {
|
|
4352
4122
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_claimable_lightning_receive_balance_sats");
|
|
4353
4123
|
}
|
|
4354
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_config() !==
|
|
4124
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_config() !== 35661) {
|
|
4355
4125
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_config");
|
|
4356
4126
|
}
|
|
4357
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_drain_exits() !==
|
|
4127
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_drain_exits() !== 61748) {
|
|
4358
4128
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_drain_exits");
|
|
4359
4129
|
}
|
|
4360
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_arkoor_payment_fee() !==
|
|
4130
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_arkoor_payment_fee() !== 54949) {
|
|
4361
4131
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_arkoor_payment_fee");
|
|
4362
4132
|
}
|
|
4363
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee() !==
|
|
4133
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee() !== 2350) {
|
|
4364
4134
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee");
|
|
4365
4135
|
}
|
|
4366
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee() !==
|
|
4136
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee() !== 35587) {
|
|
4367
4137
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee");
|
|
4368
4138
|
}
|
|
4369
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_send_fee() !==
|
|
4139
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_send_fee() !== 16837) {
|
|
4370
4140
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_send_fee");
|
|
4371
4141
|
}
|
|
4372
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_all_fee() !==
|
|
4142
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_all_fee() !== 18596) {
|
|
4373
4143
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_all_fee");
|
|
4374
4144
|
}
|
|
4375
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_fee() !==
|
|
4145
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_fee() !== 13570) {
|
|
4376
4146
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_fee");
|
|
4377
4147
|
}
|
|
4378
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_refresh_fee() !==
|
|
4148
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_refresh_fee() !== 51683) {
|
|
4379
4149
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_refresh_fee");
|
|
4380
4150
|
}
|
|
4381
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_send_onchain_fee() !==
|
|
4151
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_send_onchain_fee() !== 53725) {
|
|
4382
4152
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_send_onchain_fee");
|
|
4383
4153
|
}
|
|
4384
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_fingerprint() !==
|
|
4154
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_fingerprint() !== 31048) {
|
|
4385
4155
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_fingerprint");
|
|
4386
4156
|
}
|
|
4387
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_exit_status() !==
|
|
4157
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_exit_status() !== 849) {
|
|
4388
4158
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_exit_status");
|
|
4389
4159
|
}
|
|
4390
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_exit_vtxos() !==
|
|
4160
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_exit_vtxos() !== 62832) {
|
|
4391
4161
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_exit_vtxos");
|
|
4392
4162
|
}
|
|
4393
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_expiring_vtxos() !==
|
|
4163
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_expiring_vtxos() !== 62926) {
|
|
4394
4164
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_expiring_vtxos");
|
|
4395
4165
|
}
|
|
4396
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_first_expiring_vtxo_blockheight() !==
|
|
4166
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_first_expiring_vtxo_blockheight() !== 9891) {
|
|
4397
4167
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_first_expiring_vtxo_blockheight");
|
|
4398
4168
|
}
|
|
4399
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_next_required_refresh_blockheight() !==
|
|
4169
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_next_required_refresh_blockheight() !== 60321) {
|
|
4400
4170
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_next_required_refresh_blockheight");
|
|
4401
4171
|
}
|
|
4402
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_vtxo_by_id() !==
|
|
4172
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_vtxo_by_id() !== 54348) {
|
|
4403
4173
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_vtxo_by_id");
|
|
4404
4174
|
}
|
|
4405
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_vtxos_to_refresh() !==
|
|
4175
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_get_vtxos_to_refresh() !== 56166) {
|
|
4406
4176
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_get_vtxos_to_refresh");
|
|
4407
4177
|
}
|
|
4408
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_has_pending_exits() !==
|
|
4178
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_has_pending_exits() !== 31064) {
|
|
4409
4179
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_has_pending_exits");
|
|
4410
4180
|
}
|
|
4411
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_history() !==
|
|
4181
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_history() !== 49526) {
|
|
4412
4182
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_history");
|
|
4413
4183
|
}
|
|
4414
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_history_by_payment_method() !==
|
|
4184
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_history_by_payment_method() !== 49277) {
|
|
4415
4185
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_history_by_payment_method");
|
|
4416
4186
|
}
|
|
4417
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_import_vtxo() !==
|
|
4187
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_import_vtxo() !== 58528) {
|
|
4418
4188
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_import_vtxo");
|
|
4419
4189
|
}
|
|
4420
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status() !==
|
|
4190
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status() !== 37213) {
|
|
4421
4191
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status");
|
|
4422
4192
|
}
|
|
4423
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits() !==
|
|
4193
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits() !== 46928) {
|
|
4424
4194
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits");
|
|
4425
4195
|
}
|
|
4426
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_mailbox_authorization() !==
|
|
4196
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_mailbox_authorization() !== 37256) {
|
|
4427
4197
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_mailbox_authorization");
|
|
4428
4198
|
}
|
|
4429
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_mailbox_identifier() !==
|
|
4199
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_mailbox_identifier() !== 4339) {
|
|
4430
4200
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_mailbox_identifier");
|
|
4431
4201
|
}
|
|
4432
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance() !==
|
|
4202
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance() !== 42287) {
|
|
4433
4203
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_maintenance");
|
|
4434
4204
|
}
|
|
4435
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_delegated() !==
|
|
4205
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_delegated() !== 20659) {
|
|
4436
4206
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_maintenance_delegated");
|
|
4437
4207
|
}
|
|
4438
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_refresh() !==
|
|
4208
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_refresh() !== 13823) {
|
|
4439
4209
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_maintenance_refresh");
|
|
4440
4210
|
}
|
|
4441
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain() !==
|
|
4211
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain() !== 41935) {
|
|
4442
4212
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain");
|
|
4443
4213
|
}
|
|
4444
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain_delegated() !==
|
|
4214
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain_delegated() !== 23897) {
|
|
4445
4215
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain_delegated");
|
|
4446
4216
|
}
|
|
4447
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_maybe_schedule_maintenance_refresh() !==
|
|
4217
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_maybe_schedule_maintenance_refresh() !== 24944) {
|
|
4448
4218
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_maybe_schedule_maintenance_refresh");
|
|
4449
4219
|
}
|
|
4450
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_network() !==
|
|
4220
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_network() !== 28437) {
|
|
4451
4221
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_network");
|
|
4452
4222
|
}
|
|
4453
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_new_address() !==
|
|
4223
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_new_address() !== 46889) {
|
|
4454
4224
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_new_address");
|
|
4455
4225
|
}
|
|
4456
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_new_address_with_index() !==
|
|
4226
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_new_address_with_index() !== 26065) {
|
|
4457
4227
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_new_address_with_index");
|
|
4458
4228
|
}
|
|
4459
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_next_round_start_time() !==
|
|
4229
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_next_round_start_time() !== 18913) {
|
|
4460
4230
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_next_round_start_time");
|
|
4461
4231
|
}
|
|
4462
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_notifications() !==
|
|
4232
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_notifications() !== 4292) {
|
|
4463
4233
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_notifications");
|
|
4464
4234
|
}
|
|
4465
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_all() !==
|
|
4235
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_all() !== 33338) {
|
|
4466
4236
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_offboard_all");
|
|
4467
4237
|
}
|
|
4468
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_vtxos() !==
|
|
4238
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_vtxos() !== 45323) {
|
|
4469
4239
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_offboard_vtxos");
|
|
4470
4240
|
}
|
|
4471
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_address() !==
|
|
4241
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_address() !== 48668) {
|
|
4472
4242
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pay_lightning_address");
|
|
4473
4243
|
}
|
|
4474
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_invoice() !==
|
|
4244
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_invoice() !== 64416) {
|
|
4475
4245
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pay_lightning_invoice");
|
|
4476
4246
|
}
|
|
4477
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer() !==
|
|
4247
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer() !== 7458) {
|
|
4478
4248
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer");
|
|
4479
4249
|
}
|
|
4480
|
-
if ((0, _barkFfi.default)().
|
|
4481
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_peak_address");
|
|
4482
|
-
}
|
|
4483
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_peek_address() !== 6861) {
|
|
4250
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_peek_address() !== 55042) {
|
|
4484
4251
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_peek_address");
|
|
4485
4252
|
}
|
|
4486
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_board_vtxos() !==
|
|
4253
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_board_vtxos() !== 25647) {
|
|
4487
4254
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_board_vtxos");
|
|
4488
4255
|
}
|
|
4489
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_boards() !==
|
|
4256
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_boards() !== 41590) {
|
|
4490
4257
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_boards");
|
|
4491
4258
|
}
|
|
4492
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_exits_total_sats() !==
|
|
4259
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_exits_total_sats() !== 8001) {
|
|
4493
4260
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_exits_total_sats");
|
|
4494
4261
|
}
|
|
4495
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_receives() !==
|
|
4262
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_receives() !== 59673) {
|
|
4496
4263
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_lightning_receives");
|
|
4497
4264
|
}
|
|
4498
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_send_vtxos() !==
|
|
4265
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_send_vtxos() !== 43740) {
|
|
4499
4266
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_lightning_send_vtxos");
|
|
4500
4267
|
}
|
|
4501
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_sends() !==
|
|
4268
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_sends() !== 47848) {
|
|
4502
4269
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_lightning_sends");
|
|
4503
4270
|
}
|
|
4504
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_round_input_vtxos() !==
|
|
4271
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_round_input_vtxos() !== 21093) {
|
|
4505
4272
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_round_input_vtxos");
|
|
4506
4273
|
}
|
|
4507
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_round_states() !==
|
|
4274
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_round_states() !== 3426) {
|
|
4508
4275
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_round_states");
|
|
4509
4276
|
}
|
|
4510
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_progress_exits() !==
|
|
4277
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_progress_exits() !== 27512) {
|
|
4511
4278
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_progress_exits");
|
|
4512
4279
|
}
|
|
4513
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_progress_pending_rounds() !==
|
|
4280
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_progress_pending_rounds() !== 2915) {
|
|
4514
4281
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_progress_pending_rounds");
|
|
4515
4282
|
}
|
|
4516
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_properties() !==
|
|
4283
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_properties() !== 47133) {
|
|
4517
4284
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_properties");
|
|
4518
4285
|
}
|
|
4519
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_server() !==
|
|
4286
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_server() !== 2646) {
|
|
4520
4287
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_refresh_server");
|
|
4521
4288
|
}
|
|
4522
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos() !==
|
|
4289
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos() !== 18792) {
|
|
4523
4290
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos");
|
|
4524
4291
|
}
|
|
4525
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated() !==
|
|
4292
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated() !== 32568) {
|
|
4526
4293
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated");
|
|
4527
4294
|
}
|
|
4528
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_run_daemon() !==
|
|
4295
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_run_daemon() !== 62932) {
|
|
4529
4296
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_run_daemon");
|
|
4530
4297
|
}
|
|
4531
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment() !==
|
|
4298
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment() !== 50386) {
|
|
4532
4299
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment");
|
|
4533
4300
|
}
|
|
4534
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_onchain() !==
|
|
4301
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_onchain() !== 38644) {
|
|
4535
4302
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_send_onchain");
|
|
4536
4303
|
}
|
|
4537
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_sign_exit_claim_inputs() !==
|
|
4304
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_sign_exit_claim_inputs() !== 53765) {
|
|
4538
4305
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_sign_exit_claim_inputs");
|
|
4539
4306
|
}
|
|
4540
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_spendable_vtxos() !==
|
|
4307
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_spendable_vtxos() !== 65142) {
|
|
4541
4308
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_spendable_vtxos");
|
|
4542
4309
|
}
|
|
4543
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_entire_wallet() !==
|
|
4310
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_entire_wallet() !== 31961) {
|
|
4544
4311
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_start_exit_for_entire_wallet");
|
|
4545
4312
|
}
|
|
4546
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos() !==
|
|
4313
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos() !== 34614) {
|
|
4547
4314
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos");
|
|
4548
4315
|
}
|
|
4549
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_stop_daemon() !==
|
|
4316
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_stop_daemon() !== 27848) {
|
|
4550
4317
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_stop_daemon");
|
|
4551
4318
|
}
|
|
4552
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync() !==
|
|
4319
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync() !== 38360) {
|
|
4553
4320
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_sync");
|
|
4554
4321
|
}
|
|
4555
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_exits() !==
|
|
4322
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_exits() !== 47734) {
|
|
4556
4323
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_sync_exits");
|
|
4557
4324
|
}
|
|
4558
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_pending_boards() !==
|
|
4325
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_pending_boards() !== 49211) {
|
|
4559
4326
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_sync_pending_boards");
|
|
4560
4327
|
}
|
|
4561
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_all_lightning_receives() !==
|
|
4328
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_all_lightning_receives() !== 63130) {
|
|
4562
4329
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_try_claim_all_lightning_receives");
|
|
4563
4330
|
}
|
|
4564
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_lightning_receive() !==
|
|
4331
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_lightning_receive() !== 9806) {
|
|
4565
4332
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_try_claim_lightning_receive");
|
|
4566
4333
|
}
|
|
4567
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address() !==
|
|
4334
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address() !== 55064) {
|
|
4568
4335
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address");
|
|
4569
4336
|
}
|
|
4570
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_vtxos() !==
|
|
4337
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_vtxos() !== 5883) {
|
|
4571
4338
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_vtxos");
|
|
4572
4339
|
}
|
|
4573
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_constructor_onchainwallet_custom() !==
|
|
4340
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_constructor_onchainwallet_custom() !== 1549) {
|
|
4574
4341
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_onchainwallet_custom");
|
|
4575
4342
|
}
|
|
4576
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_constructor_onchainwallet_default() !==
|
|
4343
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_constructor_onchainwallet_default() !== 3877) {
|
|
4577
4344
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_onchainwallet_default");
|
|
4578
4345
|
}
|
|
4579
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_create() !==
|
|
4346
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_create() !== 60393) {
|
|
4580
4347
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_wallet_create");
|
|
4581
4348
|
}
|
|
4582
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_create_with_onchain() !==
|
|
4349
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_create_with_onchain() !== 55243) {
|
|
4583
4350
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_wallet_create_with_onchain");
|
|
4584
4351
|
}
|
|
4585
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open() !==
|
|
4352
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open() !== 36564) {
|
|
4586
4353
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_wallet_open");
|
|
4587
4354
|
}
|
|
4588
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open_with_daemon() !==
|
|
4355
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open_with_daemon() !== 9668) {
|
|
4589
4356
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_wallet_open_with_daemon");
|
|
4590
4357
|
}
|
|
4591
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open_with_onchain() !==
|
|
4358
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open_with_onchain() !== 39500) {
|
|
4592
4359
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_wallet_open_with_onchain");
|
|
4593
4360
|
}
|
|
4594
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_barklogger_log() !== 1414) {
|
|
4595
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_barklogger_log");
|
|
4596
|
-
}
|
|
4597
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance() !== 16407) {
|
|
4598
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance");
|
|
4599
|
-
}
|
|
4600
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_tx() !== 7671) {
|
|
4601
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_tx");
|
|
4602
|
-
}
|
|
4603
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_drain_tx() !== 15428) {
|
|
4604
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_drain_tx");
|
|
4605
|
-
}
|
|
4606
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_finish_tx() !== 2070) {
|
|
4607
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_finish_tx");
|
|
4608
|
-
}
|
|
4609
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx() !== 35041) {
|
|
4610
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx");
|
|
4611
|
-
}
|
|
4612
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block() !== 2541) {
|
|
4613
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block");
|
|
4614
|
-
}
|
|
4615
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_spending_tx() !== 27495) {
|
|
4616
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_spending_tx");
|
|
4617
|
-
}
|
|
4618
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp() !== 34889) {
|
|
4619
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp");
|
|
4620
|
-
}
|
|
4621
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp() !== 41685) {
|
|
4622
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp");
|
|
4623
|
-
}
|
|
4624
4361
|
uniffiCallbackInterfaceBarkLogger.register();
|
|
4625
4362
|
uniffiCallbackInterfaceCustomOnchainWalletCallbacks.register();
|
|
4626
4363
|
}
|
|
@@ -4631,9 +4368,11 @@ var _default = exports.default = Object.freeze({
|
|
|
4631
4368
|
FfiConverterTypeArkInfo,
|
|
4632
4369
|
FfiConverterTypeBalance,
|
|
4633
4370
|
FfiConverterTypeBarkError,
|
|
4371
|
+
FfiConverterTypeBarkLogger,
|
|
4634
4372
|
FfiConverterTypeBlockRef,
|
|
4635
4373
|
FfiConverterTypeConfig,
|
|
4636
4374
|
FfiConverterTypeCpfpParams,
|
|
4375
|
+
FfiConverterTypeCustomOnchainWalletCallbacks,
|
|
4637
4376
|
FfiConverterTypeDestination,
|
|
4638
4377
|
FfiConverterTypeExitClaimTransaction,
|
|
4639
4378
|
FfiConverterTypeExitProgressStatus,
|