mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2025-12-24 01:14:22 +01:00
Run dart format -l 110
This commit is contained in:
@@ -71,16 +71,14 @@ Future<void> mainImpl(List<String> args) async {
|
||||
for (final target in targets) {
|
||||
print(' Building target $target');
|
||||
await run('rustup target add $target');
|
||||
await run(
|
||||
'cargo build --package breez-liquid-sdk --target=$target $profileArg');
|
||||
await run('cargo build --package breez-liquid-sdk --target=$target $profileArg');
|
||||
}
|
||||
|
||||
await run('mkdir -p mac-lipo ios-sim-lipo');
|
||||
if (opts['local']) {
|
||||
final output = outputs.single;
|
||||
final isIos = output.contains('ios');
|
||||
final shouldBuildFramework =
|
||||
observer.hasChanged(output) || !fileExists(frameworkZip);
|
||||
final shouldBuildFramework = observer.hasChanged(output) || !fileExists(frameworkZip);
|
||||
|
||||
String lipoOut;
|
||||
if (shouldBuildFramework) {
|
||||
@@ -96,21 +94,16 @@ Future<void> mainImpl(List<String> args) async {
|
||||
'-output $framework');
|
||||
} else {
|
||||
final armIos = '../../../target/aarch64-apple-ios/$profile/$libName';
|
||||
var shouldBuildFramework =
|
||||
!fileExists(frameworkZip) || observer.hasChanged(armIos);
|
||||
var shouldBuildFramework = !fileExists(frameworkZip) || observer.hasChanged(armIos);
|
||||
if (!fileExists(iosSimLipo) ||
|
||||
outputs
|
||||
.where((output) => output.contains('ios'))
|
||||
.any(observer.hasChanged)) {
|
||||
outputs.where((output) => output.contains('ios')).any(observer.hasChanged)) {
|
||||
shouldBuildFramework = true;
|
||||
await run('lipo -create -output $iosSimLipo '
|
||||
'../../../target/aarch64-apple-ios-sim/$profile/$libName '
|
||||
'../../../target/x86_64-apple-ios/$profile/$libName ');
|
||||
}
|
||||
if (!fileExists(macLipo) ||
|
||||
outputs
|
||||
.where((output) => output.contains('darwin'))
|
||||
.any(observer.hasChanged)) {
|
||||
outputs.where((output) => output.contains('darwin')).any(observer.hasChanged)) {
|
||||
shouldBuildFramework = true;
|
||||
await run('lipo -create -output $macLipo '
|
||||
'../../../target/aarch64-apple-darwin/$profile/$libName '
|
||||
|
||||
@@ -43,11 +43,9 @@ Future<void> mainImpl(List<String> args) async {
|
||||
final triple = target.triple;
|
||||
final flutterIdentifier = target.flutterIdentifier;
|
||||
await run('rustup target add $triple');
|
||||
await run('${target.compiler} --target $triple $profileArg',
|
||||
args: compilerOpts);
|
||||
await run('${target.compiler} --target $triple $profileArg', args: compilerOpts);
|
||||
await run('mkdir -p $flutterIdentifier');
|
||||
await run(
|
||||
'cp ../target/$triple/$profile/${target.libName} $flutterIdentifier/');
|
||||
await run('cp ../target/$triple/$profile/${target.libName} $flutterIdentifier/');
|
||||
}
|
||||
|
||||
final hasLinux = targets.any((target) => !target.isWindows);
|
||||
|
||||
@@ -14,33 +14,25 @@ Future<void> connect({required ConnectRequest req, dynamic hint}) =>
|
||||
Future<GetInfoResponse> getInfo({required GetInfoRequest req, dynamic hint}) =>
|
||||
RustLib.instance.api.getInfo(req: req, hint: hint);
|
||||
|
||||
Future<PrepareSendResponse> prepareSendPayment(
|
||||
{required PrepareSendRequest req, dynamic hint}) =>
|
||||
Future<PrepareSendResponse> prepareSendPayment({required PrepareSendRequest req, dynamic hint}) =>
|
||||
RustLib.instance.api.prepareSendPayment(req: req, hint: hint);
|
||||
|
||||
Future<SendPaymentResponse> sendPayment(
|
||||
{required PrepareSendResponse req, dynamic hint}) =>
|
||||
Future<SendPaymentResponse> sendPayment({required PrepareSendResponse req, dynamic hint}) =>
|
||||
RustLib.instance.api.sendPayment(req: req, hint: hint);
|
||||
|
||||
Future<PrepareReceiveResponse> prepareReceivePayment(
|
||||
{required PrepareReceiveRequest req, dynamic hint}) =>
|
||||
Future<PrepareReceiveResponse> prepareReceivePayment({required PrepareReceiveRequest req, dynamic hint}) =>
|
||||
RustLib.instance.api.prepareReceivePayment(req: req, hint: hint);
|
||||
|
||||
Future<ReceivePaymentResponse> receivePayment(
|
||||
{required PrepareReceiveResponse req, dynamic hint}) =>
|
||||
Future<ReceivePaymentResponse> receivePayment({required PrepareReceiveResponse req, dynamic hint}) =>
|
||||
RustLib.instance.api.receivePayment(req: req, hint: hint);
|
||||
|
||||
Future<List<Payment>> listPayments(
|
||||
{required bool withScan, required bool includePending, dynamic hint}) =>
|
||||
RustLib.instance.api.listPayments(
|
||||
withScan: withScan, includePending: includePending, hint: hint);
|
||||
Future<List<Payment>> listPayments({required bool withScan, required bool includePending, dynamic hint}) =>
|
||||
RustLib.instance.api.listPayments(withScan: withScan, includePending: includePending, hint: hint);
|
||||
|
||||
Future<String> recoverFunds(
|
||||
{required LBtcReverseRecovery recovery, dynamic hint}) =>
|
||||
Future<String> recoverFunds({required LBtcReverseRecovery recovery, dynamic hint}) =>
|
||||
RustLib.instance.api.recoverFunds(recovery: recovery, hint: hint);
|
||||
|
||||
Future<void> emptyWalletCache({dynamic hint}) =>
|
||||
RustLib.instance.api.emptyWalletCache(hint: hint);
|
||||
Future<void> emptyWalletCache({dynamic hint}) => RustLib.instance.api.emptyWalletCache(hint: hint);
|
||||
|
||||
Future<void> backup({dynamic hint}) => RustLib.instance.api.backup(hint: hint);
|
||||
|
||||
@@ -50,18 +42,15 @@ Future<void> restore({required RestoreRequest req, dynamic hint}) =>
|
||||
// Rust type: RustOpaqueNom<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<LBtcReverseRecovery>>
|
||||
@sealed
|
||||
class LBtcReverseRecovery extends RustOpaque {
|
||||
LBtcReverseRecovery.dcoDecode(List<dynamic> wire)
|
||||
: super.dcoDecode(wire, _kStaticData);
|
||||
LBtcReverseRecovery.dcoDecode(List<dynamic> wire) : super.dcoDecode(wire, _kStaticData);
|
||||
|
||||
LBtcReverseRecovery.sseDecode(int ptr, int externalSizeOnNative)
|
||||
: super.sseDecode(ptr, externalSizeOnNative, _kStaticData);
|
||||
|
||||
static final _kStaticData = RustArcStaticData(
|
||||
rustArcIncrementStrongCount: RustLib
|
||||
.instance.api.rust_arc_increment_strong_count_LBtcReverseRecovery,
|
||||
rustArcDecrementStrongCount: RustLib
|
||||
.instance.api.rust_arc_decrement_strong_count_LBtcReverseRecovery,
|
||||
rustArcDecrementStrongCountPtr: RustLib
|
||||
.instance.api.rust_arc_decrement_strong_count_LBtcReverseRecoveryPtr,
|
||||
rustArcIncrementStrongCount: RustLib.instance.api.rust_arc_increment_strong_count_LBtcReverseRecovery,
|
||||
rustArcDecrementStrongCount: RustLib.instance.api.rust_arc_decrement_strong_count_LBtcReverseRecovery,
|
||||
rustArcDecrementStrongCountPtr:
|
||||
RustLib.instance.api.rust_arc_decrement_strong_count_LBtcReverseRecoveryPtr,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -19,14 +19,12 @@ mixin _$PaymentError {}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $PaymentErrorCopyWith<$Res> {
|
||||
factory $PaymentErrorCopyWith(
|
||||
PaymentError value, $Res Function(PaymentError) then) =
|
||||
factory $PaymentErrorCopyWith(PaymentError value, $Res Function(PaymentError) then) =
|
||||
_$PaymentErrorCopyWithImpl<$Res, PaymentError>;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$PaymentErrorCopyWithImpl<$Res, $Val extends PaymentError>
|
||||
implements $PaymentErrorCopyWith<$Res> {
|
||||
class _$PaymentErrorCopyWithImpl<$Res, $Val extends PaymentError> implements $PaymentErrorCopyWith<$Res> {
|
||||
_$PaymentErrorCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
@@ -37,27 +35,23 @@ class _$PaymentErrorCopyWithImpl<$Res, $Val extends PaymentError>
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$PaymentError_AmountOutOfRangeImplCopyWith<$Res> {
|
||||
factory _$$PaymentError_AmountOutOfRangeImplCopyWith(
|
||||
_$PaymentError_AmountOutOfRangeImpl value,
|
||||
factory _$$PaymentError_AmountOutOfRangeImplCopyWith(_$PaymentError_AmountOutOfRangeImpl value,
|
||||
$Res Function(_$PaymentError_AmountOutOfRangeImpl) then) =
|
||||
__$$PaymentError_AmountOutOfRangeImplCopyWithImpl<$Res>;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$PaymentError_AmountOutOfRangeImplCopyWithImpl<$Res>
|
||||
extends _$PaymentErrorCopyWithImpl<$Res,
|
||||
_$PaymentError_AmountOutOfRangeImpl>
|
||||
extends _$PaymentErrorCopyWithImpl<$Res, _$PaymentError_AmountOutOfRangeImpl>
|
||||
implements _$$PaymentError_AmountOutOfRangeImplCopyWith<$Res> {
|
||||
__$$PaymentError_AmountOutOfRangeImplCopyWithImpl(
|
||||
_$PaymentError_AmountOutOfRangeImpl _value,
|
||||
$Res Function(_$PaymentError_AmountOutOfRangeImpl) _then)
|
||||
_$PaymentError_AmountOutOfRangeImpl _value, $Res Function(_$PaymentError_AmountOutOfRangeImpl) _then)
|
||||
: super(_value, _then);
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$PaymentError_AmountOutOfRangeImpl
|
||||
extends PaymentError_AmountOutOfRange {
|
||||
class _$PaymentError_AmountOutOfRangeImpl extends PaymentError_AmountOutOfRange {
|
||||
const _$PaymentError_AmountOutOfRangeImpl() : super._();
|
||||
|
||||
@override
|
||||
@@ -68,8 +62,7 @@ class _$PaymentError_AmountOutOfRangeImpl
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$PaymentError_AmountOutOfRangeImpl);
|
||||
(other.runtimeType == runtimeType && other is _$PaymentError_AmountOutOfRangeImpl);
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -77,16 +70,14 @@ class _$PaymentError_AmountOutOfRangeImpl
|
||||
}
|
||||
|
||||
abstract class PaymentError_AmountOutOfRange extends PaymentError {
|
||||
const factory PaymentError_AmountOutOfRange() =
|
||||
_$PaymentError_AmountOutOfRangeImpl;
|
||||
const factory PaymentError_AmountOutOfRange() = _$PaymentError_AmountOutOfRangeImpl;
|
||||
const PaymentError_AmountOutOfRange._() : super._();
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$PaymentError_AlreadyClaimedImplCopyWith<$Res> {
|
||||
factory _$$PaymentError_AlreadyClaimedImplCopyWith(
|
||||
_$PaymentError_AlreadyClaimedImpl value,
|
||||
$Res Function(_$PaymentError_AlreadyClaimedImpl) then) =
|
||||
_$PaymentError_AlreadyClaimedImpl value, $Res Function(_$PaymentError_AlreadyClaimedImpl) then) =
|
||||
__$$PaymentError_AlreadyClaimedImplCopyWithImpl<$Res>;
|
||||
}
|
||||
|
||||
@@ -95,8 +86,7 @@ class __$$PaymentError_AlreadyClaimedImplCopyWithImpl<$Res>
|
||||
extends _$PaymentErrorCopyWithImpl<$Res, _$PaymentError_AlreadyClaimedImpl>
|
||||
implements _$$PaymentError_AlreadyClaimedImplCopyWith<$Res> {
|
||||
__$$PaymentError_AlreadyClaimedImplCopyWithImpl(
|
||||
_$PaymentError_AlreadyClaimedImpl _value,
|
||||
$Res Function(_$PaymentError_AlreadyClaimedImpl) _then)
|
||||
_$PaymentError_AlreadyClaimedImpl _value, $Res Function(_$PaymentError_AlreadyClaimedImpl) _then)
|
||||
: super(_value, _then);
|
||||
}
|
||||
|
||||
@@ -113,8 +103,7 @@ class _$PaymentError_AlreadyClaimedImpl extends PaymentError_AlreadyClaimed {
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$PaymentError_AlreadyClaimedImpl);
|
||||
(other.runtimeType == runtimeType && other is _$PaymentError_AlreadyClaimedImpl);
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -122,15 +111,14 @@ class _$PaymentError_AlreadyClaimedImpl extends PaymentError_AlreadyClaimed {
|
||||
}
|
||||
|
||||
abstract class PaymentError_AlreadyClaimed extends PaymentError {
|
||||
const factory PaymentError_AlreadyClaimed() =
|
||||
_$PaymentError_AlreadyClaimedImpl;
|
||||
const factory PaymentError_AlreadyClaimed() = _$PaymentError_AlreadyClaimedImpl;
|
||||
const PaymentError_AlreadyClaimed._() : super._();
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$PaymentError_GenericImplCopyWith<$Res> {
|
||||
factory _$$PaymentError_GenericImplCopyWith(_$PaymentError_GenericImpl value,
|
||||
$Res Function(_$PaymentError_GenericImpl) then) =
|
||||
factory _$$PaymentError_GenericImplCopyWith(
|
||||
_$PaymentError_GenericImpl value, $Res Function(_$PaymentError_GenericImpl) then) =
|
||||
__$$PaymentError_GenericImplCopyWithImpl<$Res>;
|
||||
@useResult
|
||||
$Res call({String err});
|
||||
@@ -140,8 +128,8 @@ abstract class _$$PaymentError_GenericImplCopyWith<$Res> {
|
||||
class __$$PaymentError_GenericImplCopyWithImpl<$Res>
|
||||
extends _$PaymentErrorCopyWithImpl<$Res, _$PaymentError_GenericImpl>
|
||||
implements _$$PaymentError_GenericImplCopyWith<$Res> {
|
||||
__$$PaymentError_GenericImplCopyWithImpl(_$PaymentError_GenericImpl _value,
|
||||
$Res Function(_$PaymentError_GenericImpl) _then)
|
||||
__$$PaymentError_GenericImplCopyWithImpl(
|
||||
_$PaymentError_GenericImpl _value, $Res Function(_$PaymentError_GenericImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@@ -185,28 +173,24 @@ class _$PaymentError_GenericImpl extends PaymentError_Generic {
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$PaymentError_GenericImplCopyWith<_$PaymentError_GenericImpl>
|
||||
get copyWith =>
|
||||
__$$PaymentError_GenericImplCopyWithImpl<_$PaymentError_GenericImpl>(
|
||||
this, _$identity);
|
||||
_$$PaymentError_GenericImplCopyWith<_$PaymentError_GenericImpl> get copyWith =>
|
||||
__$$PaymentError_GenericImplCopyWithImpl<_$PaymentError_GenericImpl>(this, _$identity);
|
||||
}
|
||||
|
||||
abstract class PaymentError_Generic extends PaymentError {
|
||||
const factory PaymentError_Generic({required final String err}) =
|
||||
_$PaymentError_GenericImpl;
|
||||
const factory PaymentError_Generic({required final String err}) = _$PaymentError_GenericImpl;
|
||||
const PaymentError_Generic._() : super._();
|
||||
|
||||
String get err;
|
||||
@JsonKey(ignore: true)
|
||||
_$$PaymentError_GenericImplCopyWith<_$PaymentError_GenericImpl>
|
||||
get copyWith => throw _privateConstructorUsedError;
|
||||
_$$PaymentError_GenericImplCopyWith<_$PaymentError_GenericImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$PaymentError_InvalidInvoiceImplCopyWith<$Res> {
|
||||
factory _$$PaymentError_InvalidInvoiceImplCopyWith(
|
||||
_$PaymentError_InvalidInvoiceImpl value,
|
||||
$Res Function(_$PaymentError_InvalidInvoiceImpl) then) =
|
||||
_$PaymentError_InvalidInvoiceImpl value, $Res Function(_$PaymentError_InvalidInvoiceImpl) then) =
|
||||
__$$PaymentError_InvalidInvoiceImplCopyWithImpl<$Res>;
|
||||
}
|
||||
|
||||
@@ -215,8 +199,7 @@ class __$$PaymentError_InvalidInvoiceImplCopyWithImpl<$Res>
|
||||
extends _$PaymentErrorCopyWithImpl<$Res, _$PaymentError_InvalidInvoiceImpl>
|
||||
implements _$$PaymentError_InvalidInvoiceImplCopyWith<$Res> {
|
||||
__$$PaymentError_InvalidInvoiceImplCopyWithImpl(
|
||||
_$PaymentError_InvalidInvoiceImpl _value,
|
||||
$Res Function(_$PaymentError_InvalidInvoiceImpl) _then)
|
||||
_$PaymentError_InvalidInvoiceImpl _value, $Res Function(_$PaymentError_InvalidInvoiceImpl) _then)
|
||||
: super(_value, _then);
|
||||
}
|
||||
|
||||
@@ -233,8 +216,7 @@ class _$PaymentError_InvalidInvoiceImpl extends PaymentError_InvalidInvoice {
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$PaymentError_InvalidInvoiceImpl);
|
||||
(other.runtimeType == runtimeType && other is _$PaymentError_InvalidInvoiceImpl);
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -242,16 +224,14 @@ class _$PaymentError_InvalidInvoiceImpl extends PaymentError_InvalidInvoice {
|
||||
}
|
||||
|
||||
abstract class PaymentError_InvalidInvoice extends PaymentError {
|
||||
const factory PaymentError_InvalidInvoice() =
|
||||
_$PaymentError_InvalidInvoiceImpl;
|
||||
const factory PaymentError_InvalidInvoice() = _$PaymentError_InvalidInvoiceImpl;
|
||||
const PaymentError_InvalidInvoice._() : super._();
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$PaymentError_InvalidPreimageImplCopyWith<$Res> {
|
||||
factory _$$PaymentError_InvalidPreimageImplCopyWith(
|
||||
_$PaymentError_InvalidPreimageImpl value,
|
||||
$Res Function(_$PaymentError_InvalidPreimageImpl) then) =
|
||||
_$PaymentError_InvalidPreimageImpl value, $Res Function(_$PaymentError_InvalidPreimageImpl) then) =
|
||||
__$$PaymentError_InvalidPreimageImplCopyWithImpl<$Res>;
|
||||
}
|
||||
|
||||
@@ -260,8 +240,7 @@ class __$$PaymentError_InvalidPreimageImplCopyWithImpl<$Res>
|
||||
extends _$PaymentErrorCopyWithImpl<$Res, _$PaymentError_InvalidPreimageImpl>
|
||||
implements _$$PaymentError_InvalidPreimageImplCopyWith<$Res> {
|
||||
__$$PaymentError_InvalidPreimageImplCopyWithImpl(
|
||||
_$PaymentError_InvalidPreimageImpl _value,
|
||||
$Res Function(_$PaymentError_InvalidPreimageImpl) _then)
|
||||
_$PaymentError_InvalidPreimageImpl _value, $Res Function(_$PaymentError_InvalidPreimageImpl) _then)
|
||||
: super(_value, _then);
|
||||
}
|
||||
|
||||
@@ -278,8 +257,7 @@ class _$PaymentError_InvalidPreimageImpl extends PaymentError_InvalidPreimage {
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$PaymentError_InvalidPreimageImpl);
|
||||
(other.runtimeType == runtimeType && other is _$PaymentError_InvalidPreimageImpl);
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -287,16 +265,14 @@ class _$PaymentError_InvalidPreimageImpl extends PaymentError_InvalidPreimage {
|
||||
}
|
||||
|
||||
abstract class PaymentError_InvalidPreimage extends PaymentError {
|
||||
const factory PaymentError_InvalidPreimage() =
|
||||
_$PaymentError_InvalidPreimageImpl;
|
||||
const factory PaymentError_InvalidPreimage() = _$PaymentError_InvalidPreimageImpl;
|
||||
const PaymentError_InvalidPreimage._() : super._();
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$PaymentError_LwkErrorImplCopyWith<$Res> {
|
||||
factory _$$PaymentError_LwkErrorImplCopyWith(
|
||||
_$PaymentError_LwkErrorImpl value,
|
||||
$Res Function(_$PaymentError_LwkErrorImpl) then) =
|
||||
_$PaymentError_LwkErrorImpl value, $Res Function(_$PaymentError_LwkErrorImpl) then) =
|
||||
__$$PaymentError_LwkErrorImplCopyWithImpl<$Res>;
|
||||
@useResult
|
||||
$Res call({String err});
|
||||
@@ -306,8 +282,8 @@ abstract class _$$PaymentError_LwkErrorImplCopyWith<$Res> {
|
||||
class __$$PaymentError_LwkErrorImplCopyWithImpl<$Res>
|
||||
extends _$PaymentErrorCopyWithImpl<$Res, _$PaymentError_LwkErrorImpl>
|
||||
implements _$$PaymentError_LwkErrorImplCopyWith<$Res> {
|
||||
__$$PaymentError_LwkErrorImplCopyWithImpl(_$PaymentError_LwkErrorImpl _value,
|
||||
$Res Function(_$PaymentError_LwkErrorImpl) _then)
|
||||
__$$PaymentError_LwkErrorImplCopyWithImpl(
|
||||
_$PaymentError_LwkErrorImpl _value, $Res Function(_$PaymentError_LwkErrorImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@@ -351,27 +327,24 @@ class _$PaymentError_LwkErrorImpl extends PaymentError_LwkError {
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$PaymentError_LwkErrorImplCopyWith<_$PaymentError_LwkErrorImpl>
|
||||
get copyWith => __$$PaymentError_LwkErrorImplCopyWithImpl<
|
||||
_$PaymentError_LwkErrorImpl>(this, _$identity);
|
||||
_$$PaymentError_LwkErrorImplCopyWith<_$PaymentError_LwkErrorImpl> get copyWith =>
|
||||
__$$PaymentError_LwkErrorImplCopyWithImpl<_$PaymentError_LwkErrorImpl>(this, _$identity);
|
||||
}
|
||||
|
||||
abstract class PaymentError_LwkError extends PaymentError {
|
||||
const factory PaymentError_LwkError({required final String err}) =
|
||||
_$PaymentError_LwkErrorImpl;
|
||||
const factory PaymentError_LwkError({required final String err}) = _$PaymentError_LwkErrorImpl;
|
||||
const PaymentError_LwkError._() : super._();
|
||||
|
||||
String get err;
|
||||
@JsonKey(ignore: true)
|
||||
_$$PaymentError_LwkErrorImplCopyWith<_$PaymentError_LwkErrorImpl>
|
||||
get copyWith => throw _privateConstructorUsedError;
|
||||
_$$PaymentError_LwkErrorImplCopyWith<_$PaymentError_LwkErrorImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$PaymentError_PairsNotFoundImplCopyWith<$Res> {
|
||||
factory _$$PaymentError_PairsNotFoundImplCopyWith(
|
||||
_$PaymentError_PairsNotFoundImpl value,
|
||||
$Res Function(_$PaymentError_PairsNotFoundImpl) then) =
|
||||
_$PaymentError_PairsNotFoundImpl value, $Res Function(_$PaymentError_PairsNotFoundImpl) then) =
|
||||
__$$PaymentError_PairsNotFoundImplCopyWithImpl<$Res>;
|
||||
}
|
||||
|
||||
@@ -380,8 +353,7 @@ class __$$PaymentError_PairsNotFoundImplCopyWithImpl<$Res>
|
||||
extends _$PaymentErrorCopyWithImpl<$Res, _$PaymentError_PairsNotFoundImpl>
|
||||
implements _$$PaymentError_PairsNotFoundImplCopyWith<$Res> {
|
||||
__$$PaymentError_PairsNotFoundImplCopyWithImpl(
|
||||
_$PaymentError_PairsNotFoundImpl _value,
|
||||
$Res Function(_$PaymentError_PairsNotFoundImpl) _then)
|
||||
_$PaymentError_PairsNotFoundImpl _value, $Res Function(_$PaymentError_PairsNotFoundImpl) _then)
|
||||
: super(_value, _then);
|
||||
}
|
||||
|
||||
@@ -398,8 +370,7 @@ class _$PaymentError_PairsNotFoundImpl extends PaymentError_PairsNotFound {
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$PaymentError_PairsNotFoundImpl);
|
||||
(other.runtimeType == runtimeType && other is _$PaymentError_PairsNotFoundImpl);
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -414,8 +385,7 @@ abstract class PaymentError_PairsNotFound extends PaymentError {
|
||||
/// @nodoc
|
||||
abstract class _$$PaymentError_PersistErrorImplCopyWith<$Res> {
|
||||
factory _$$PaymentError_PersistErrorImplCopyWith(
|
||||
_$PaymentError_PersistErrorImpl value,
|
||||
$Res Function(_$PaymentError_PersistErrorImpl) then) =
|
||||
_$PaymentError_PersistErrorImpl value, $Res Function(_$PaymentError_PersistErrorImpl) then) =
|
||||
__$$PaymentError_PersistErrorImplCopyWithImpl<$Res>;
|
||||
}
|
||||
|
||||
@@ -424,8 +394,7 @@ class __$$PaymentError_PersistErrorImplCopyWithImpl<$Res>
|
||||
extends _$PaymentErrorCopyWithImpl<$Res, _$PaymentError_PersistErrorImpl>
|
||||
implements _$$PaymentError_PersistErrorImplCopyWith<$Res> {
|
||||
__$$PaymentError_PersistErrorImplCopyWithImpl(
|
||||
_$PaymentError_PersistErrorImpl _value,
|
||||
$Res Function(_$PaymentError_PersistErrorImpl) _then)
|
||||
_$PaymentError_PersistErrorImpl _value, $Res Function(_$PaymentError_PersistErrorImpl) _then)
|
||||
: super(_value, _then);
|
||||
}
|
||||
|
||||
@@ -442,8 +411,7 @@ class _$PaymentError_PersistErrorImpl extends PaymentError_PersistError {
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$PaymentError_PersistErrorImpl);
|
||||
(other.runtimeType == runtimeType && other is _$PaymentError_PersistErrorImpl);
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -458,8 +426,7 @@ abstract class PaymentError_PersistError extends PaymentError {
|
||||
/// @nodoc
|
||||
abstract class _$$PaymentError_SendErrorImplCopyWith<$Res> {
|
||||
factory _$$PaymentError_SendErrorImplCopyWith(
|
||||
_$PaymentError_SendErrorImpl value,
|
||||
$Res Function(_$PaymentError_SendErrorImpl) then) =
|
||||
_$PaymentError_SendErrorImpl value, $Res Function(_$PaymentError_SendErrorImpl) then) =
|
||||
__$$PaymentError_SendErrorImplCopyWithImpl<$Res>;
|
||||
@useResult
|
||||
$Res call({String err});
|
||||
@@ -470,8 +437,7 @@ class __$$PaymentError_SendErrorImplCopyWithImpl<$Res>
|
||||
extends _$PaymentErrorCopyWithImpl<$Res, _$PaymentError_SendErrorImpl>
|
||||
implements _$$PaymentError_SendErrorImplCopyWith<$Res> {
|
||||
__$$PaymentError_SendErrorImplCopyWithImpl(
|
||||
_$PaymentError_SendErrorImpl _value,
|
||||
$Res Function(_$PaymentError_SendErrorImpl) _then)
|
||||
_$PaymentError_SendErrorImpl _value, $Res Function(_$PaymentError_SendErrorImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@@ -515,27 +481,24 @@ class _$PaymentError_SendErrorImpl extends PaymentError_SendError {
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$PaymentError_SendErrorImplCopyWith<_$PaymentError_SendErrorImpl>
|
||||
get copyWith => __$$PaymentError_SendErrorImplCopyWithImpl<
|
||||
_$PaymentError_SendErrorImpl>(this, _$identity);
|
||||
_$$PaymentError_SendErrorImplCopyWith<_$PaymentError_SendErrorImpl> get copyWith =>
|
||||
__$$PaymentError_SendErrorImplCopyWithImpl<_$PaymentError_SendErrorImpl>(this, _$identity);
|
||||
}
|
||||
|
||||
abstract class PaymentError_SendError extends PaymentError {
|
||||
const factory PaymentError_SendError({required final String err}) =
|
||||
_$PaymentError_SendErrorImpl;
|
||||
const factory PaymentError_SendError({required final String err}) = _$PaymentError_SendErrorImpl;
|
||||
const PaymentError_SendError._() : super._();
|
||||
|
||||
String get err;
|
||||
@JsonKey(ignore: true)
|
||||
_$$PaymentError_SendErrorImplCopyWith<_$PaymentError_SendErrorImpl>
|
||||
get copyWith => throw _privateConstructorUsedError;
|
||||
_$$PaymentError_SendErrorImplCopyWith<_$PaymentError_SendErrorImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$PaymentError_SignerErrorImplCopyWith<$Res> {
|
||||
factory _$$PaymentError_SignerErrorImplCopyWith(
|
||||
_$PaymentError_SignerErrorImpl value,
|
||||
$Res Function(_$PaymentError_SignerErrorImpl) then) =
|
||||
_$PaymentError_SignerErrorImpl value, $Res Function(_$PaymentError_SignerErrorImpl) then) =
|
||||
__$$PaymentError_SignerErrorImplCopyWithImpl<$Res>;
|
||||
@useResult
|
||||
$Res call({String err});
|
||||
@@ -546,8 +509,7 @@ class __$$PaymentError_SignerErrorImplCopyWithImpl<$Res>
|
||||
extends _$PaymentErrorCopyWithImpl<$Res, _$PaymentError_SignerErrorImpl>
|
||||
implements _$$PaymentError_SignerErrorImplCopyWith<$Res> {
|
||||
__$$PaymentError_SignerErrorImplCopyWithImpl(
|
||||
_$PaymentError_SignerErrorImpl _value,
|
||||
$Res Function(_$PaymentError_SignerErrorImpl) _then)
|
||||
_$PaymentError_SignerErrorImpl _value, $Res Function(_$PaymentError_SignerErrorImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@@ -591,18 +553,16 @@ class _$PaymentError_SignerErrorImpl extends PaymentError_SignerError {
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$PaymentError_SignerErrorImplCopyWith<_$PaymentError_SignerErrorImpl>
|
||||
get copyWith => __$$PaymentError_SignerErrorImplCopyWithImpl<
|
||||
_$PaymentError_SignerErrorImpl>(this, _$identity);
|
||||
_$$PaymentError_SignerErrorImplCopyWith<_$PaymentError_SignerErrorImpl> get copyWith =>
|
||||
__$$PaymentError_SignerErrorImplCopyWithImpl<_$PaymentError_SignerErrorImpl>(this, _$identity);
|
||||
}
|
||||
|
||||
abstract class PaymentError_SignerError extends PaymentError {
|
||||
const factory PaymentError_SignerError({required final String err}) =
|
||||
_$PaymentError_SignerErrorImpl;
|
||||
const factory PaymentError_SignerError({required final String err}) = _$PaymentError_SignerErrorImpl;
|
||||
const PaymentError_SignerError._() : super._();
|
||||
|
||||
String get err;
|
||||
@JsonKey(ignore: true)
|
||||
_$$PaymentError_SignerErrorImplCopyWith<_$PaymentError_SignerErrorImpl>
|
||||
get copyWith => throw _privateConstructorUsedError;
|
||||
_$$PaymentError_SignerErrorImplCopyWith<_$PaymentError_SignerErrorImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
@@ -38,19 +38,16 @@ class RustLib extends BaseEntrypoint<RustLibApi, RustLibApiImpl, RustLibWire> {
|
||||
static void dispose() => instance.disposeImpl();
|
||||
|
||||
@override
|
||||
ApiImplConstructor<RustLibApiImpl, RustLibWire> get apiImplConstructor =>
|
||||
RustLibApiImpl.new;
|
||||
ApiImplConstructor<RustLibApiImpl, RustLibWire> get apiImplConstructor => RustLibApiImpl.new;
|
||||
|
||||
@override
|
||||
WireConstructor<RustLibWire> get wireConstructor =>
|
||||
RustLibWire.fromExternalLibrary;
|
||||
WireConstructor<RustLibWire> get wireConstructor => RustLibWire.fromExternalLibrary;
|
||||
|
||||
@override
|
||||
Future<void> executeRustInitializers() async {}
|
||||
|
||||
@override
|
||||
ExternalLibraryLoaderConfig get defaultExternalLibraryLoaderConfig =>
|
||||
kDefaultExternalLibraryLoaderConfig;
|
||||
ExternalLibraryLoaderConfig get defaultExternalLibraryLoaderConfig => kDefaultExternalLibraryLoaderConfig;
|
||||
|
||||
@override
|
||||
String get codegenVersion => '2.0.0-dev.33';
|
||||
@@ -58,8 +55,7 @@ class RustLib extends BaseEntrypoint<RustLibApi, RustLibApiImpl, RustLibWire> {
|
||||
@override
|
||||
int get rustContentHash => -1225779344;
|
||||
|
||||
static const kDefaultExternalLibraryLoaderConfig =
|
||||
ExternalLibraryLoaderConfig(
|
||||
static const kDefaultExternalLibraryLoaderConfig = ExternalLibraryLoaderConfig(
|
||||
stem: 'breez_liquid_sdk',
|
||||
ioDirectory: '../../lib/core/target/release/',
|
||||
webPrefix: 'pkg/',
|
||||
@@ -75,34 +71,25 @@ abstract class RustLibApi extends BaseApi {
|
||||
|
||||
Future<GetInfoResponse> getInfo({required GetInfoRequest req, dynamic hint});
|
||||
|
||||
Future<List<Payment>> listPayments(
|
||||
{required bool withScan, required bool includePending, dynamic hint});
|
||||
Future<List<Payment>> listPayments({required bool withScan, required bool includePending, dynamic hint});
|
||||
|
||||
Future<PrepareReceiveResponse> prepareReceivePayment(
|
||||
{required PrepareReceiveRequest req, dynamic hint});
|
||||
Future<PrepareReceiveResponse> prepareReceivePayment({required PrepareReceiveRequest req, dynamic hint});
|
||||
|
||||
Future<PrepareSendResponse> prepareSendPayment(
|
||||
{required PrepareSendRequest req, dynamic hint});
|
||||
Future<PrepareSendResponse> prepareSendPayment({required PrepareSendRequest req, dynamic hint});
|
||||
|
||||
Future<ReceivePaymentResponse> receivePayment(
|
||||
{required PrepareReceiveResponse req, dynamic hint});
|
||||
Future<ReceivePaymentResponse> receivePayment({required PrepareReceiveResponse req, dynamic hint});
|
||||
|
||||
Future<String> recoverFunds(
|
||||
{required LBtcReverseRecovery recovery, dynamic hint});
|
||||
Future<String> recoverFunds({required LBtcReverseRecovery recovery, dynamic hint});
|
||||
|
||||
Future<void> restore({required RestoreRequest req, dynamic hint});
|
||||
|
||||
Future<SendPaymentResponse> sendPayment(
|
||||
{required PrepareSendResponse req, dynamic hint});
|
||||
Future<SendPaymentResponse> sendPayment({required PrepareSendResponse req, dynamic hint});
|
||||
|
||||
RustArcIncrementStrongCountFnType
|
||||
get rust_arc_increment_strong_count_LBtcReverseRecovery;
|
||||
RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_LBtcReverseRecovery;
|
||||
|
||||
RustArcDecrementStrongCountFnType
|
||||
get rust_arc_decrement_strong_count_LBtcReverseRecovery;
|
||||
RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_LBtcReverseRecovery;
|
||||
|
||||
CrossPlatformFinalizerArg
|
||||
get rust_arc_decrement_strong_count_LBtcReverseRecoveryPtr;
|
||||
CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_LBtcReverseRecoveryPtr;
|
||||
}
|
||||
|
||||
class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
||||
@@ -204,8 +191,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
||||
);
|
||||
|
||||
@override
|
||||
Future<List<Payment>> listPayments(
|
||||
{required bool withScan, required bool includePending, dynamic hint}) {
|
||||
Future<List<Payment>> listPayments({required bool withScan, required bool includePending, dynamic hint}) {
|
||||
return handler.executeNormal(NormalTask(
|
||||
callFfi: (port_) {
|
||||
var arg0 = cst_encode_bool(withScan);
|
||||
@@ -229,8 +215,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
||||
);
|
||||
|
||||
@override
|
||||
Future<PrepareReceiveResponse> prepareReceivePayment(
|
||||
{required PrepareReceiveRequest req, dynamic hint}) {
|
||||
Future<PrepareReceiveResponse> prepareReceivePayment({required PrepareReceiveRequest req, dynamic hint}) {
|
||||
return handler.executeNormal(NormalTask(
|
||||
callFfi: (port_) {
|
||||
var arg0 = cst_encode_box_autoadd_prepare_receive_request(req);
|
||||
@@ -253,8 +238,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
||||
);
|
||||
|
||||
@override
|
||||
Future<PrepareSendResponse> prepareSendPayment(
|
||||
{required PrepareSendRequest req, dynamic hint}) {
|
||||
Future<PrepareSendResponse> prepareSendPayment({required PrepareSendRequest req, dynamic hint}) {
|
||||
return handler.executeNormal(NormalTask(
|
||||
callFfi: (port_) {
|
||||
var arg0 = cst_encode_box_autoadd_prepare_send_request(req);
|
||||
@@ -277,8 +261,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
||||
);
|
||||
|
||||
@override
|
||||
Future<ReceivePaymentResponse> receivePayment(
|
||||
{required PrepareReceiveResponse req, dynamic hint}) {
|
||||
Future<ReceivePaymentResponse> receivePayment({required PrepareReceiveResponse req, dynamic hint}) {
|
||||
return handler.executeNormal(NormalTask(
|
||||
callFfi: (port_) {
|
||||
var arg0 = cst_encode_box_autoadd_prepare_receive_response(req);
|
||||
@@ -301,8 +284,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
||||
);
|
||||
|
||||
@override
|
||||
Future<String> recoverFunds(
|
||||
{required LBtcReverseRecovery recovery, dynamic hint}) {
|
||||
Future<String> recoverFunds({required LBtcReverseRecovery recovery, dynamic hint}) {
|
||||
return handler.executeNormal(NormalTask(
|
||||
callFfi: (port_) {
|
||||
var arg0 =
|
||||
@@ -350,8 +332,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
||||
);
|
||||
|
||||
@override
|
||||
Future<SendPaymentResponse> sendPayment(
|
||||
{required PrepareSendResponse req, dynamic hint}) {
|
||||
Future<SendPaymentResponse> sendPayment({required PrepareSendResponse req, dynamic hint}) {
|
||||
return handler.executeNormal(NormalTask(
|
||||
callFfi: (port_) {
|
||||
var arg0 = cst_encode_box_autoadd_prepare_send_response(req);
|
||||
@@ -373,12 +354,10 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
||||
argNames: ["req"],
|
||||
);
|
||||
|
||||
RustArcIncrementStrongCountFnType
|
||||
get rust_arc_increment_strong_count_LBtcReverseRecovery => wire
|
||||
RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_LBtcReverseRecovery => wire
|
||||
.rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLBtcReverseRecovery;
|
||||
|
||||
RustArcDecrementStrongCountFnType
|
||||
get rust_arc_decrement_strong_count_LBtcReverseRecovery => wire
|
||||
RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_LBtcReverseRecovery => wire
|
||||
.rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLBtcReverseRecovery;
|
||||
|
||||
@protected
|
||||
@@ -428,15 +407,13 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
||||
}
|
||||
|
||||
@protected
|
||||
PrepareReceiveRequest dco_decode_box_autoadd_prepare_receive_request(
|
||||
dynamic raw) {
|
||||
PrepareReceiveRequest dco_decode_box_autoadd_prepare_receive_request(dynamic raw) {
|
||||
// Codec=Dco (DartCObject based), see doc to use other codecs
|
||||
return dco_decode_prepare_receive_request(raw);
|
||||
}
|
||||
|
||||
@protected
|
||||
PrepareReceiveResponse dco_decode_box_autoadd_prepare_receive_response(
|
||||
dynamic raw) {
|
||||
PrepareReceiveResponse dco_decode_box_autoadd_prepare_receive_response(dynamic raw) {
|
||||
// Codec=Dco (DartCObject based), see doc to use other codecs
|
||||
return dco_decode_prepare_receive_response(raw);
|
||||
}
|
||||
@@ -448,8 +425,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
||||
}
|
||||
|
||||
@protected
|
||||
PrepareSendResponse dco_decode_box_autoadd_prepare_send_response(
|
||||
dynamic raw) {
|
||||
PrepareSendResponse dco_decode_box_autoadd_prepare_send_response(dynamic raw) {
|
||||
// Codec=Dco (DartCObject based), see doc to use other codecs
|
||||
return dco_decode_prepare_send_response(raw);
|
||||
}
|
||||
@@ -476,8 +452,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
||||
ConnectRequest dco_decode_connect_request(dynamic raw) {
|
||||
// Codec=Dco (DartCObject based), see doc to use other codecs
|
||||
final arr = raw as List<dynamic>;
|
||||
if (arr.length != 3)
|
||||
throw Exception('unexpected arr length: expect 3 but see ${arr.length}');
|
||||
if (arr.length != 3) throw Exception('unexpected arr length: expect 3 but see ${arr.length}');
|
||||
return ConnectRequest(
|
||||
mnemonic: dco_decode_String(arr[0]),
|
||||
dataDir: dco_decode_opt_String(arr[1]),
|
||||
@@ -489,8 +464,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
||||
GetInfoRequest dco_decode_get_info_request(dynamic raw) {
|
||||
// Codec=Dco (DartCObject based), see doc to use other codecs
|
||||
final arr = raw as List<dynamic>;
|
||||
if (arr.length != 1)
|
||||
throw Exception('unexpected arr length: expect 1 but see ${arr.length}');
|
||||
if (arr.length != 1) throw Exception('unexpected arr length: expect 1 but see ${arr.length}');
|
||||
return GetInfoRequest(
|
||||
withScan: dco_decode_bool(arr[0]),
|
||||
);
|
||||
@@ -500,8 +474,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
||||
GetInfoResponse dco_decode_get_info_response(dynamic raw) {
|
||||
// Codec=Dco (DartCObject based), see doc to use other codecs
|
||||
final arr = raw as List<dynamic>;
|
||||
if (arr.length != 2)
|
||||
throw Exception('unexpected arr length: expect 2 but see ${arr.length}');
|
||||
if (arr.length != 2) throw Exception('unexpected arr length: expect 2 but see ${arr.length}');
|
||||
return GetInfoResponse(
|
||||
balanceSat: dco_decode_u_64(arr[0]),
|
||||
pubkey: dco_decode_String(arr[1]),
|
||||
@@ -554,8 +527,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
||||
Payment dco_decode_payment(dynamic raw) {
|
||||
// Codec=Dco (DartCObject based), see doc to use other codecs
|
||||
final arr = raw as List<dynamic>;
|
||||
if (arr.length != 6)
|
||||
throw Exception('unexpected arr length: expect 6 but see ${arr.length}');
|
||||
if (arr.length != 6) throw Exception('unexpected arr length: expect 6 but see ${arr.length}');
|
||||
return Payment(
|
||||
id: dco_decode_opt_String(arr[0]),
|
||||
timestamp: dco_decode_opt_box_autoadd_u_32(arr[1]),
|
||||
@@ -613,8 +585,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
||||
PrepareReceiveRequest dco_decode_prepare_receive_request(dynamic raw) {
|
||||
// Codec=Dco (DartCObject based), see doc to use other codecs
|
||||
final arr = raw as List<dynamic>;
|
||||
if (arr.length != 1)
|
||||
throw Exception('unexpected arr length: expect 1 but see ${arr.length}');
|
||||
if (arr.length != 1) throw Exception('unexpected arr length: expect 1 but see ${arr.length}');
|
||||
return PrepareReceiveRequest(
|
||||
payerAmountSat: dco_decode_u_64(arr[0]),
|
||||
);
|
||||
@@ -624,8 +595,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
||||
PrepareReceiveResponse dco_decode_prepare_receive_response(dynamic raw) {
|
||||
// Codec=Dco (DartCObject based), see doc to use other codecs
|
||||
final arr = raw as List<dynamic>;
|
||||
if (arr.length != 3)
|
||||
throw Exception('unexpected arr length: expect 3 but see ${arr.length}');
|
||||
if (arr.length != 3) throw Exception('unexpected arr length: expect 3 but see ${arr.length}');
|
||||
return PrepareReceiveResponse(
|
||||
pairHash: dco_decode_String(arr[0]),
|
||||
payerAmountSat: dco_decode_u_64(arr[1]),
|
||||
@@ -637,8 +607,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
||||
PrepareSendRequest dco_decode_prepare_send_request(dynamic raw) {
|
||||
// Codec=Dco (DartCObject based), see doc to use other codecs
|
||||
final arr = raw as List<dynamic>;
|
||||
if (arr.length != 1)
|
||||
throw Exception('unexpected arr length: expect 1 but see ${arr.length}');
|
||||
if (arr.length != 1) throw Exception('unexpected arr length: expect 1 but see ${arr.length}');
|
||||
return PrepareSendRequest(
|
||||
invoice: dco_decode_String(arr[0]),
|
||||
);
|
||||
@@ -648,8 +617,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
||||
PrepareSendResponse dco_decode_prepare_send_response(dynamic raw) {
|
||||
// Codec=Dco (DartCObject based), see doc to use other codecs
|
||||
final arr = raw as List<dynamic>;
|
||||
if (arr.length != 6)
|
||||
throw Exception('unexpected arr length: expect 6 but see ${arr.length}');
|
||||
if (arr.length != 6) throw Exception('unexpected arr length: expect 6 but see ${arr.length}');
|
||||
return PrepareSendResponse(
|
||||
id: dco_decode_String(arr[0]),
|
||||
payerAmountSat: dco_decode_u_64(arr[1]),
|
||||
@@ -664,8 +632,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
||||
ReceivePaymentResponse dco_decode_receive_payment_response(dynamic raw) {
|
||||
// Codec=Dco (DartCObject based), see doc to use other codecs
|
||||
final arr = raw as List<dynamic>;
|
||||
if (arr.length != 2)
|
||||
throw Exception('unexpected arr length: expect 2 but see ${arr.length}');
|
||||
if (arr.length != 2) throw Exception('unexpected arr length: expect 2 but see ${arr.length}');
|
||||
return ReceivePaymentResponse(
|
||||
id: dco_decode_String(arr[0]),
|
||||
invoice: dco_decode_String(arr[1]),
|
||||
@@ -676,8 +643,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
||||
RestoreRequest dco_decode_restore_request(dynamic raw) {
|
||||
// Codec=Dco (DartCObject based), see doc to use other codecs
|
||||
final arr = raw as List<dynamic>;
|
||||
if (arr.length != 1)
|
||||
throw Exception('unexpected arr length: expect 1 but see ${arr.length}');
|
||||
if (arr.length != 1) throw Exception('unexpected arr length: expect 1 but see ${arr.length}');
|
||||
return RestoreRequest(
|
||||
backupPath: dco_decode_opt_String(arr[0]),
|
||||
);
|
||||
@@ -687,8 +653,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
||||
SendPaymentResponse dco_decode_send_payment_response(dynamic raw) {
|
||||
// Codec=Dco (DartCObject based), see doc to use other codecs
|
||||
final arr = raw as List<dynamic>;
|
||||
if (arr.length != 1)
|
||||
throw Exception('unexpected arr length: expect 1 but see ${arr.length}');
|
||||
if (arr.length != 1) throw Exception('unexpected arr length: expect 1 but see ${arr.length}');
|
||||
return SendPaymentResponse(
|
||||
txid: dco_decode_String(arr[0]),
|
||||
);
|
||||
@@ -736,8 +701,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
||||
sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLBtcReverseRecovery(
|
||||
SseDeserializer deserializer) {
|
||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||
return LBtcReverseRecovery.sseDecode(
|
||||
sse_decode_usize(deserializer), sse_decode_i_32(deserializer));
|
||||
return LBtcReverseRecovery.sseDecode(sse_decode_usize(deserializer), sse_decode_i_32(deserializer));
|
||||
}
|
||||
|
||||
@protected
|
||||
@@ -745,8 +709,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
||||
sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLBtcReverseRecovery(
|
||||
SseDeserializer deserializer) {
|
||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||
return LBtcReverseRecovery.sseDecode(
|
||||
sse_decode_usize(deserializer), sse_decode_i_32(deserializer));
|
||||
return LBtcReverseRecovery.sseDecode(sse_decode_usize(deserializer), sse_decode_i_32(deserializer));
|
||||
}
|
||||
|
||||
@protected
|
||||
@@ -763,50 +726,43 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
||||
}
|
||||
|
||||
@protected
|
||||
ConnectRequest sse_decode_box_autoadd_connect_request(
|
||||
SseDeserializer deserializer) {
|
||||
ConnectRequest sse_decode_box_autoadd_connect_request(SseDeserializer deserializer) {
|
||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||
return (sse_decode_connect_request(deserializer));
|
||||
}
|
||||
|
||||
@protected
|
||||
GetInfoRequest sse_decode_box_autoadd_get_info_request(
|
||||
SseDeserializer deserializer) {
|
||||
GetInfoRequest sse_decode_box_autoadd_get_info_request(SseDeserializer deserializer) {
|
||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||
return (sse_decode_get_info_request(deserializer));
|
||||
}
|
||||
|
||||
@protected
|
||||
PrepareReceiveRequest sse_decode_box_autoadd_prepare_receive_request(
|
||||
SseDeserializer deserializer) {
|
||||
PrepareReceiveRequest sse_decode_box_autoadd_prepare_receive_request(SseDeserializer deserializer) {
|
||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||
return (sse_decode_prepare_receive_request(deserializer));
|
||||
}
|
||||
|
||||
@protected
|
||||
PrepareReceiveResponse sse_decode_box_autoadd_prepare_receive_response(
|
||||
SseDeserializer deserializer) {
|
||||
PrepareReceiveResponse sse_decode_box_autoadd_prepare_receive_response(SseDeserializer deserializer) {
|
||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||
return (sse_decode_prepare_receive_response(deserializer));
|
||||
}
|
||||
|
||||
@protected
|
||||
PrepareSendRequest sse_decode_box_autoadd_prepare_send_request(
|
||||
SseDeserializer deserializer) {
|
||||
PrepareSendRequest sse_decode_box_autoadd_prepare_send_request(SseDeserializer deserializer) {
|
||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||
return (sse_decode_prepare_send_request(deserializer));
|
||||
}
|
||||
|
||||
@protected
|
||||
PrepareSendResponse sse_decode_box_autoadd_prepare_send_response(
|
||||
SseDeserializer deserializer) {
|
||||
PrepareSendResponse sse_decode_box_autoadd_prepare_send_response(SseDeserializer deserializer) {
|
||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||
return (sse_decode_prepare_send_response(deserializer));
|
||||
}
|
||||
|
||||
@protected
|
||||
RestoreRequest sse_decode_box_autoadd_restore_request(
|
||||
SseDeserializer deserializer) {
|
||||
RestoreRequest sse_decode_box_autoadd_restore_request(SseDeserializer deserializer) {
|
||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||
return (sse_decode_restore_request(deserializer));
|
||||
}
|
||||
@@ -829,8 +785,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
||||
var var_mnemonic = sse_decode_String(deserializer);
|
||||
var var_dataDir = sse_decode_opt_String(deserializer);
|
||||
var var_network = sse_decode_network(deserializer);
|
||||
return ConnectRequest(
|
||||
mnemonic: var_mnemonic, dataDir: var_dataDir, network: var_network);
|
||||
return ConnectRequest(mnemonic: var_mnemonic, dataDir: var_dataDir, network: var_network);
|
||||
}
|
||||
|
||||
@protected
|
||||
@@ -974,37 +929,31 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
||||
}
|
||||
|
||||
@protected
|
||||
PrepareReceiveRequest sse_decode_prepare_receive_request(
|
||||
SseDeserializer deserializer) {
|
||||
PrepareReceiveRequest sse_decode_prepare_receive_request(SseDeserializer deserializer) {
|
||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||
var var_payerAmountSat = sse_decode_u_64(deserializer);
|
||||
return PrepareReceiveRequest(payerAmountSat: var_payerAmountSat);
|
||||
}
|
||||
|
||||
@protected
|
||||
PrepareReceiveResponse sse_decode_prepare_receive_response(
|
||||
SseDeserializer deserializer) {
|
||||
PrepareReceiveResponse sse_decode_prepare_receive_response(SseDeserializer deserializer) {
|
||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||
var var_pairHash = sse_decode_String(deserializer);
|
||||
var var_payerAmountSat = sse_decode_u_64(deserializer);
|
||||
var var_feesSat = sse_decode_u_64(deserializer);
|
||||
return PrepareReceiveResponse(
|
||||
pairHash: var_pairHash,
|
||||
payerAmountSat: var_payerAmountSat,
|
||||
feesSat: var_feesSat);
|
||||
pairHash: var_pairHash, payerAmountSat: var_payerAmountSat, feesSat: var_feesSat);
|
||||
}
|
||||
|
||||
@protected
|
||||
PrepareSendRequest sse_decode_prepare_send_request(
|
||||
SseDeserializer deserializer) {
|
||||
PrepareSendRequest sse_decode_prepare_send_request(SseDeserializer deserializer) {
|
||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||
var var_invoice = sse_decode_String(deserializer);
|
||||
return PrepareSendRequest(invoice: var_invoice);
|
||||
}
|
||||
|
||||
@protected
|
||||
PrepareSendResponse sse_decode_prepare_send_response(
|
||||
SseDeserializer deserializer) {
|
||||
PrepareSendResponse sse_decode_prepare_send_response(SseDeserializer deserializer) {
|
||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||
var var_id = sse_decode_String(deserializer);
|
||||
var var_payerAmountSat = sse_decode_u_64(deserializer);
|
||||
@@ -1022,8 +971,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
||||
}
|
||||
|
||||
@protected
|
||||
ReceivePaymentResponse sse_decode_receive_payment_response(
|
||||
SseDeserializer deserializer) {
|
||||
ReceivePaymentResponse sse_decode_receive_payment_response(SseDeserializer deserializer) {
|
||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||
var var_id = sse_decode_String(deserializer);
|
||||
var var_invoice = sse_decode_String(deserializer);
|
||||
@@ -1038,8 +986,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
||||
}
|
||||
|
||||
@protected
|
||||
SendPaymentResponse sse_decode_send_payment_response(
|
||||
SseDeserializer deserializer) {
|
||||
SendPaymentResponse sse_decode_send_payment_response(SseDeserializer deserializer) {
|
||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||
var var_txid = sse_decode_String(deserializer);
|
||||
return SendPaymentResponse(txid: var_txid);
|
||||
@@ -1139,8 +1086,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
||||
}
|
||||
|
||||
@protected
|
||||
void sse_encode_AnyhowException(
|
||||
AnyhowException self, SseSerializer serializer) {
|
||||
void sse_encode_AnyhowException(AnyhowException self, SseSerializer serializer) {
|
||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||
throw UnimplementedError('Unreachable ()');
|
||||
}
|
||||
@@ -1154,8 +1100,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
||||
}
|
||||
|
||||
@protected
|
||||
void
|
||||
sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLBtcReverseRecovery(
|
||||
void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLBtcReverseRecovery(
|
||||
LBtcReverseRecovery self, SseSerializer serializer) {
|
||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||
sse_encode_usize(self.sseEncode(move: null), serializer);
|
||||
@@ -1174,22 +1119,19 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
||||
}
|
||||
|
||||
@protected
|
||||
void sse_encode_box_autoadd_connect_request(
|
||||
ConnectRequest self, SseSerializer serializer) {
|
||||
void sse_encode_box_autoadd_connect_request(ConnectRequest self, SseSerializer serializer) {
|
||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||
sse_encode_connect_request(self, serializer);
|
||||
}
|
||||
|
||||
@protected
|
||||
void sse_encode_box_autoadd_get_info_request(
|
||||
GetInfoRequest self, SseSerializer serializer) {
|
||||
void sse_encode_box_autoadd_get_info_request(GetInfoRequest self, SseSerializer serializer) {
|
||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||
sse_encode_get_info_request(self, serializer);
|
||||
}
|
||||
|
||||
@protected
|
||||
void sse_encode_box_autoadd_prepare_receive_request(
|
||||
PrepareReceiveRequest self, SseSerializer serializer) {
|
||||
void sse_encode_box_autoadd_prepare_receive_request(PrepareReceiveRequest self, SseSerializer serializer) {
|
||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||
sse_encode_prepare_receive_request(self, serializer);
|
||||
}
|
||||
@@ -1202,22 +1144,19 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
||||
}
|
||||
|
||||
@protected
|
||||
void sse_encode_box_autoadd_prepare_send_request(
|
||||
PrepareSendRequest self, SseSerializer serializer) {
|
||||
void sse_encode_box_autoadd_prepare_send_request(PrepareSendRequest self, SseSerializer serializer) {
|
||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||
sse_encode_prepare_send_request(self, serializer);
|
||||
}
|
||||
|
||||
@protected
|
||||
void sse_encode_box_autoadd_prepare_send_response(
|
||||
PrepareSendResponse self, SseSerializer serializer) {
|
||||
void sse_encode_box_autoadd_prepare_send_response(PrepareSendResponse self, SseSerializer serializer) {
|
||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||
sse_encode_prepare_send_response(self, serializer);
|
||||
}
|
||||
|
||||
@protected
|
||||
void sse_encode_box_autoadd_restore_request(
|
||||
RestoreRequest self, SseSerializer serializer) {
|
||||
void sse_encode_box_autoadd_restore_request(RestoreRequest self, SseSerializer serializer) {
|
||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||
sse_encode_restore_request(self, serializer);
|
||||
}
|
||||
@@ -1235,8 +1174,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
||||
}
|
||||
|
||||
@protected
|
||||
void sse_encode_connect_request(
|
||||
ConnectRequest self, SseSerializer serializer) {
|
||||
void sse_encode_connect_request(ConnectRequest self, SseSerializer serializer) {
|
||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||
sse_encode_String(self.mnemonic, serializer);
|
||||
sse_encode_opt_String(self.dataDir, serializer);
|
||||
@@ -1244,15 +1182,13 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
||||
}
|
||||
|
||||
@protected
|
||||
void sse_encode_get_info_request(
|
||||
GetInfoRequest self, SseSerializer serializer) {
|
||||
void sse_encode_get_info_request(GetInfoRequest self, SseSerializer serializer) {
|
||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||
sse_encode_bool(self.withScan, serializer);
|
||||
}
|
||||
|
||||
@protected
|
||||
void sse_encode_get_info_response(
|
||||
GetInfoResponse self, SseSerializer serializer) {
|
||||
void sse_encode_get_info_response(GetInfoResponse self, SseSerializer serializer) {
|
||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||
sse_encode_u_64(self.balanceSat, serializer);
|
||||
sse_encode_String(self.pubkey, serializer);
|
||||
@@ -1274,8 +1210,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
||||
}
|
||||
|
||||
@protected
|
||||
void sse_encode_list_prim_u_8_strict(
|
||||
Uint8List self, SseSerializer serializer) {
|
||||
void sse_encode_list_prim_u_8_strict(Uint8List self, SseSerializer serializer) {
|
||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||
sse_encode_i_32(self.length, serializer);
|
||||
serializer.buffer.putUint8List(self);
|
||||
@@ -1366,15 +1301,13 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
||||
}
|
||||
|
||||
@protected
|
||||
void sse_encode_prepare_receive_request(
|
||||
PrepareReceiveRequest self, SseSerializer serializer) {
|
||||
void sse_encode_prepare_receive_request(PrepareReceiveRequest self, SseSerializer serializer) {
|
||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||
sse_encode_u_64(self.payerAmountSat, serializer);
|
||||
}
|
||||
|
||||
@protected
|
||||
void sse_encode_prepare_receive_response(
|
||||
PrepareReceiveResponse self, SseSerializer serializer) {
|
||||
void sse_encode_prepare_receive_response(PrepareReceiveResponse self, SseSerializer serializer) {
|
||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||
sse_encode_String(self.pairHash, serializer);
|
||||
sse_encode_u_64(self.payerAmountSat, serializer);
|
||||
@@ -1382,15 +1315,13 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
||||
}
|
||||
|
||||
@protected
|
||||
void sse_encode_prepare_send_request(
|
||||
PrepareSendRequest self, SseSerializer serializer) {
|
||||
void sse_encode_prepare_send_request(PrepareSendRequest self, SseSerializer serializer) {
|
||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||
sse_encode_String(self.invoice, serializer);
|
||||
}
|
||||
|
||||
@protected
|
||||
void sse_encode_prepare_send_response(
|
||||
PrepareSendResponse self, SseSerializer serializer) {
|
||||
void sse_encode_prepare_send_response(PrepareSendResponse self, SseSerializer serializer) {
|
||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||
sse_encode_String(self.id, serializer);
|
||||
sse_encode_u_64(self.payerAmountSat, serializer);
|
||||
@@ -1401,23 +1332,20 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
||||
}
|
||||
|
||||
@protected
|
||||
void sse_encode_receive_payment_response(
|
||||
ReceivePaymentResponse self, SseSerializer serializer) {
|
||||
void sse_encode_receive_payment_response(ReceivePaymentResponse self, SseSerializer serializer) {
|
||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||
sse_encode_String(self.id, serializer);
|
||||
sse_encode_String(self.invoice, serializer);
|
||||
}
|
||||
|
||||
@protected
|
||||
void sse_encode_restore_request(
|
||||
RestoreRequest self, SseSerializer serializer) {
|
||||
void sse_encode_restore_request(RestoreRequest self, SseSerializer serializer) {
|
||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||
sse_encode_opt_String(self.backupPath, serializer);
|
||||
}
|
||||
|
||||
@protected
|
||||
void sse_encode_send_payment_response(
|
||||
SendPaymentResponse self, SseSerializer serializer) {
|
||||
void sse_encode_send_payment_response(SendPaymentResponse self, SseSerializer serializer) {
|
||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||
sse_encode_String(self.txid, serializer);
|
||||
}
|
||||
|
||||
@@ -20,8 +20,7 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
required super.portManager,
|
||||
});
|
||||
|
||||
CrossPlatformFinalizerArg
|
||||
get rust_arc_decrement_strong_count_LBtcReverseRecoveryPtr => wire
|
||||
CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_LBtcReverseRecoveryPtr => wire
|
||||
._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLBtcReverseRecoveryPtr;
|
||||
|
||||
@protected
|
||||
@@ -50,12 +49,10 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
GetInfoRequest dco_decode_box_autoadd_get_info_request(dynamic raw);
|
||||
|
||||
@protected
|
||||
PrepareReceiveRequest dco_decode_box_autoadd_prepare_receive_request(
|
||||
dynamic raw);
|
||||
PrepareReceiveRequest dco_decode_box_autoadd_prepare_receive_request(dynamic raw);
|
||||
|
||||
@protected
|
||||
PrepareReceiveResponse dco_decode_box_autoadd_prepare_receive_response(
|
||||
dynamic raw);
|
||||
PrepareReceiveResponse dco_decode_box_autoadd_prepare_receive_response(dynamic raw);
|
||||
|
||||
@protected
|
||||
PrepareSendRequest dco_decode_box_autoadd_prepare_send_request(dynamic raw);
|
||||
@@ -167,32 +164,25 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
bool sse_decode_bool(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
ConnectRequest sse_decode_box_autoadd_connect_request(
|
||||
SseDeserializer deserializer);
|
||||
ConnectRequest sse_decode_box_autoadd_connect_request(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
GetInfoRequest sse_decode_box_autoadd_get_info_request(
|
||||
SseDeserializer deserializer);
|
||||
GetInfoRequest sse_decode_box_autoadd_get_info_request(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
PrepareReceiveRequest sse_decode_box_autoadd_prepare_receive_request(
|
||||
SseDeserializer deserializer);
|
||||
PrepareReceiveRequest sse_decode_box_autoadd_prepare_receive_request(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
PrepareReceiveResponse sse_decode_box_autoadd_prepare_receive_response(
|
||||
SseDeserializer deserializer);
|
||||
PrepareReceiveResponse sse_decode_box_autoadd_prepare_receive_response(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
PrepareSendRequest sse_decode_box_autoadd_prepare_send_request(
|
||||
SseDeserializer deserializer);
|
||||
PrepareSendRequest sse_decode_box_autoadd_prepare_send_request(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
PrepareSendResponse sse_decode_box_autoadd_prepare_send_response(
|
||||
SseDeserializer deserializer);
|
||||
PrepareSendResponse sse_decode_box_autoadd_prepare_send_response(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
RestoreRequest sse_decode_box_autoadd_restore_request(
|
||||
SseDeserializer deserializer);
|
||||
RestoreRequest sse_decode_box_autoadd_restore_request(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
int sse_decode_box_autoadd_u_32(SseDeserializer deserializer);
|
||||
@@ -240,31 +230,25 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
PaymentType sse_decode_payment_type(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
PrepareReceiveRequest sse_decode_prepare_receive_request(
|
||||
SseDeserializer deserializer);
|
||||
PrepareReceiveRequest sse_decode_prepare_receive_request(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
PrepareReceiveResponse sse_decode_prepare_receive_response(
|
||||
SseDeserializer deserializer);
|
||||
PrepareReceiveResponse sse_decode_prepare_receive_response(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
PrepareSendRequest sse_decode_prepare_send_request(
|
||||
SseDeserializer deserializer);
|
||||
PrepareSendRequest sse_decode_prepare_send_request(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
PrepareSendResponse sse_decode_prepare_send_response(
|
||||
SseDeserializer deserializer);
|
||||
PrepareSendResponse sse_decode_prepare_send_response(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
ReceivePaymentResponse sse_decode_receive_payment_response(
|
||||
SseDeserializer deserializer);
|
||||
ReceivePaymentResponse sse_decode_receive_payment_response(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
RestoreRequest sse_decode_restore_request(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
SendPaymentResponse sse_decode_send_payment_response(
|
||||
SseDeserializer deserializer);
|
||||
SendPaymentResponse sse_decode_send_payment_response(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
int sse_decode_u_32(SseDeserializer deserializer);
|
||||
@@ -282,8 +266,7 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
int sse_decode_usize(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
ffi.Pointer<wire_cst_list_prim_u_8_strict> cst_encode_AnyhowException(
|
||||
AnyhowException raw) {
|
||||
ffi.Pointer<wire_cst_list_prim_u_8_strict> cst_encode_AnyhowException(AnyhowException raw) {
|
||||
// Codec=Cst (C-struct based), see doc to use other codecs
|
||||
throw UnimplementedError();
|
||||
}
|
||||
@@ -295,8 +278,7 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
}
|
||||
|
||||
@protected
|
||||
ffi.Pointer<wire_cst_connect_request> cst_encode_box_autoadd_connect_request(
|
||||
ConnectRequest raw) {
|
||||
ffi.Pointer<wire_cst_connect_request> cst_encode_box_autoadd_connect_request(ConnectRequest raw) {
|
||||
// Codec=Cst (C-struct based), see doc to use other codecs
|
||||
final ptr = wire.cst_new_box_autoadd_connect_request();
|
||||
cst_api_fill_to_wire_connect_request(raw, ptr.ref);
|
||||
@@ -304,8 +286,7 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
}
|
||||
|
||||
@protected
|
||||
ffi.Pointer<wire_cst_get_info_request>
|
||||
cst_encode_box_autoadd_get_info_request(GetInfoRequest raw) {
|
||||
ffi.Pointer<wire_cst_get_info_request> cst_encode_box_autoadd_get_info_request(GetInfoRequest raw) {
|
||||
// Codec=Cst (C-struct based), see doc to use other codecs
|
||||
final ptr = wire.cst_new_box_autoadd_get_info_request();
|
||||
cst_api_fill_to_wire_get_info_request(raw, ptr.ref);
|
||||
@@ -313,8 +294,7 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
}
|
||||
|
||||
@protected
|
||||
ffi.Pointer<wire_cst_prepare_receive_request>
|
||||
cst_encode_box_autoadd_prepare_receive_request(
|
||||
ffi.Pointer<wire_cst_prepare_receive_request> cst_encode_box_autoadd_prepare_receive_request(
|
||||
PrepareReceiveRequest raw) {
|
||||
// Codec=Cst (C-struct based), see doc to use other codecs
|
||||
final ptr = wire.cst_new_box_autoadd_prepare_receive_request();
|
||||
@@ -323,8 +303,7 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
}
|
||||
|
||||
@protected
|
||||
ffi.Pointer<wire_cst_prepare_receive_response>
|
||||
cst_encode_box_autoadd_prepare_receive_response(
|
||||
ffi.Pointer<wire_cst_prepare_receive_response> cst_encode_box_autoadd_prepare_receive_response(
|
||||
PrepareReceiveResponse raw) {
|
||||
// Codec=Cst (C-struct based), see doc to use other codecs
|
||||
final ptr = wire.cst_new_box_autoadd_prepare_receive_response();
|
||||
@@ -333,8 +312,8 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
}
|
||||
|
||||
@protected
|
||||
ffi.Pointer<wire_cst_prepare_send_request>
|
||||
cst_encode_box_autoadd_prepare_send_request(PrepareSendRequest raw) {
|
||||
ffi.Pointer<wire_cst_prepare_send_request> cst_encode_box_autoadd_prepare_send_request(
|
||||
PrepareSendRequest raw) {
|
||||
// Codec=Cst (C-struct based), see doc to use other codecs
|
||||
final ptr = wire.cst_new_box_autoadd_prepare_send_request();
|
||||
cst_api_fill_to_wire_prepare_send_request(raw, ptr.ref);
|
||||
@@ -342,8 +321,8 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
}
|
||||
|
||||
@protected
|
||||
ffi.Pointer<wire_cst_prepare_send_response>
|
||||
cst_encode_box_autoadd_prepare_send_response(PrepareSendResponse raw) {
|
||||
ffi.Pointer<wire_cst_prepare_send_response> cst_encode_box_autoadd_prepare_send_response(
|
||||
PrepareSendResponse raw) {
|
||||
// Codec=Cst (C-struct based), see doc to use other codecs
|
||||
final ptr = wire.cst_new_box_autoadd_prepare_send_response();
|
||||
cst_api_fill_to_wire_prepare_send_response(raw, ptr.ref);
|
||||
@@ -351,8 +330,7 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
}
|
||||
|
||||
@protected
|
||||
ffi.Pointer<wire_cst_restore_request> cst_encode_box_autoadd_restore_request(
|
||||
RestoreRequest raw) {
|
||||
ffi.Pointer<wire_cst_restore_request> cst_encode_box_autoadd_restore_request(RestoreRequest raw) {
|
||||
// Codec=Cst (C-struct based), see doc to use other codecs
|
||||
final ptr = wire.cst_new_box_autoadd_restore_request();
|
||||
cst_api_fill_to_wire_restore_request(raw, ptr.ref);
|
||||
@@ -372,8 +350,7 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
}
|
||||
|
||||
@protected
|
||||
ffi.Pointer<wire_cst_list_payment> cst_encode_list_payment(
|
||||
List<Payment> raw) {
|
||||
ffi.Pointer<wire_cst_list_payment> cst_encode_list_payment(List<Payment> raw) {
|
||||
// Codec=Cst (C-struct based), see doc to use other codecs
|
||||
final ans = wire.cst_new_list_payment(raw.length);
|
||||
for (var i = 0; i < raw.length; ++i) {
|
||||
@@ -383,8 +360,7 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
}
|
||||
|
||||
@protected
|
||||
ffi.Pointer<wire_cst_list_prim_u_8_strict> cst_encode_list_prim_u_8_strict(
|
||||
Uint8List raw) {
|
||||
ffi.Pointer<wire_cst_list_prim_u_8_strict> cst_encode_list_prim_u_8_strict(Uint8List raw) {
|
||||
// Codec=Cst (C-struct based), see doc to use other codecs
|
||||
final ans = wire.cst_new_list_prim_u_8_strict(raw.length);
|
||||
ans.ref.ptr.asTypedList(raw.length).setAll(0, raw);
|
||||
@@ -392,8 +368,7 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
}
|
||||
|
||||
@protected
|
||||
ffi.Pointer<wire_cst_list_prim_u_8_strict> cst_encode_opt_String(
|
||||
String? raw) {
|
||||
ffi.Pointer<wire_cst_list_prim_u_8_strict> cst_encode_opt_String(String? raw) {
|
||||
// Codec=Cst (C-struct based), see doc to use other codecs
|
||||
return raw == null ? ffi.nullptr : cst_encode_String(raw);
|
||||
}
|
||||
@@ -430,29 +405,25 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
|
||||
@protected
|
||||
void cst_api_fill_to_wire_box_autoadd_prepare_receive_request(
|
||||
PrepareReceiveRequest apiObj,
|
||||
ffi.Pointer<wire_cst_prepare_receive_request> wireObj) {
|
||||
PrepareReceiveRequest apiObj, ffi.Pointer<wire_cst_prepare_receive_request> wireObj) {
|
||||
cst_api_fill_to_wire_prepare_receive_request(apiObj, wireObj.ref);
|
||||
}
|
||||
|
||||
@protected
|
||||
void cst_api_fill_to_wire_box_autoadd_prepare_receive_response(
|
||||
PrepareReceiveResponse apiObj,
|
||||
ffi.Pointer<wire_cst_prepare_receive_response> wireObj) {
|
||||
PrepareReceiveResponse apiObj, ffi.Pointer<wire_cst_prepare_receive_response> wireObj) {
|
||||
cst_api_fill_to_wire_prepare_receive_response(apiObj, wireObj.ref);
|
||||
}
|
||||
|
||||
@protected
|
||||
void cst_api_fill_to_wire_box_autoadd_prepare_send_request(
|
||||
PrepareSendRequest apiObj,
|
||||
ffi.Pointer<wire_cst_prepare_send_request> wireObj) {
|
||||
PrepareSendRequest apiObj, ffi.Pointer<wire_cst_prepare_send_request> wireObj) {
|
||||
cst_api_fill_to_wire_prepare_send_request(apiObj, wireObj.ref);
|
||||
}
|
||||
|
||||
@protected
|
||||
void cst_api_fill_to_wire_box_autoadd_prepare_send_response(
|
||||
PrepareSendResponse apiObj,
|
||||
ffi.Pointer<wire_cst_prepare_send_response> wireObj) {
|
||||
PrepareSendResponse apiObj, ffi.Pointer<wire_cst_prepare_send_response> wireObj) {
|
||||
cst_api_fill_to_wire_prepare_send_response(apiObj, wireObj.ref);
|
||||
}
|
||||
|
||||
@@ -463,22 +434,19 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
}
|
||||
|
||||
@protected
|
||||
void cst_api_fill_to_wire_connect_request(
|
||||
ConnectRequest apiObj, wire_cst_connect_request wireObj) {
|
||||
void cst_api_fill_to_wire_connect_request(ConnectRequest apiObj, wire_cst_connect_request wireObj) {
|
||||
wireObj.mnemonic = cst_encode_String(apiObj.mnemonic);
|
||||
wireObj.data_dir = cst_encode_opt_String(apiObj.dataDir);
|
||||
wireObj.network = cst_encode_network(apiObj.network);
|
||||
}
|
||||
|
||||
@protected
|
||||
void cst_api_fill_to_wire_get_info_request(
|
||||
GetInfoRequest apiObj, wire_cst_get_info_request wireObj) {
|
||||
void cst_api_fill_to_wire_get_info_request(GetInfoRequest apiObj, wire_cst_get_info_request wireObj) {
|
||||
wireObj.with_scan = cst_encode_bool(apiObj.withScan);
|
||||
}
|
||||
|
||||
@protected
|
||||
void cst_api_fill_to_wire_get_info_response(
|
||||
GetInfoResponse apiObj, wire_cst_get_info_response wireObj) {
|
||||
void cst_api_fill_to_wire_get_info_response(GetInfoResponse apiObj, wire_cst_get_info_response wireObj) {
|
||||
wireObj.balance_sat = cst_encode_u_64(apiObj.balanceSat);
|
||||
wireObj.pubkey = cst_encode_String(apiObj.pubkey);
|
||||
}
|
||||
@@ -494,8 +462,7 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
}
|
||||
|
||||
@protected
|
||||
void cst_api_fill_to_wire_payment_error(
|
||||
PaymentError apiObj, wire_cst_payment_error wireObj) {
|
||||
void cst_api_fill_to_wire_payment_error(PaymentError apiObj, wire_cst_payment_error wireObj) {
|
||||
if (apiObj is PaymentError_AmountOutOfRange) {
|
||||
wireObj.tag = 0;
|
||||
return;
|
||||
@@ -554,8 +521,7 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
|
||||
@protected
|
||||
void cst_api_fill_to_wire_prepare_receive_response(
|
||||
PrepareReceiveResponse apiObj,
|
||||
wire_cst_prepare_receive_response wireObj) {
|
||||
PrepareReceiveResponse apiObj, wire_cst_prepare_receive_response wireObj) {
|
||||
wireObj.pair_hash = cst_encode_String(apiObj.pairHash);
|
||||
wireObj.payer_amount_sat = cst_encode_u_64(apiObj.payerAmountSat);
|
||||
wireObj.fees_sat = cst_encode_u_64(apiObj.feesSat);
|
||||
@@ -580,15 +546,13 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
|
||||
@protected
|
||||
void cst_api_fill_to_wire_receive_payment_response(
|
||||
ReceivePaymentResponse apiObj,
|
||||
wire_cst_receive_payment_response wireObj) {
|
||||
ReceivePaymentResponse apiObj, wire_cst_receive_payment_response wireObj) {
|
||||
wireObj.id = cst_encode_String(apiObj.id);
|
||||
wireObj.invoice = cst_encode_String(apiObj.invoice);
|
||||
}
|
||||
|
||||
@protected
|
||||
void cst_api_fill_to_wire_restore_request(
|
||||
RestoreRequest apiObj, wire_cst_restore_request wireObj) {
|
||||
void cst_api_fill_to_wire_restore_request(RestoreRequest apiObj, wire_cst_restore_request wireObj) {
|
||||
wireObj.backup_path = cst_encode_opt_String(apiObj.backupPath);
|
||||
}
|
||||
|
||||
@@ -631,8 +595,7 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
int cst_encode_usize(int raw);
|
||||
|
||||
@protected
|
||||
void sse_encode_AnyhowException(
|
||||
AnyhowException self, SseSerializer serializer);
|
||||
void sse_encode_AnyhowException(AnyhowException self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void
|
||||
@@ -640,8 +603,7 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
LBtcReverseRecovery self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void
|
||||
sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLBtcReverseRecovery(
|
||||
void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLBtcReverseRecovery(
|
||||
LBtcReverseRecovery self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
@@ -651,32 +613,25 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
void sse_encode_bool(bool self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_box_autoadd_connect_request(
|
||||
ConnectRequest self, SseSerializer serializer);
|
||||
void sse_encode_box_autoadd_connect_request(ConnectRequest self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_box_autoadd_get_info_request(
|
||||
GetInfoRequest self, SseSerializer serializer);
|
||||
void sse_encode_box_autoadd_get_info_request(GetInfoRequest self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_box_autoadd_prepare_receive_request(
|
||||
PrepareReceiveRequest self, SseSerializer serializer);
|
||||
void sse_encode_box_autoadd_prepare_receive_request(PrepareReceiveRequest self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_box_autoadd_prepare_receive_response(
|
||||
PrepareReceiveResponse self, SseSerializer serializer);
|
||||
void sse_encode_box_autoadd_prepare_receive_response(PrepareReceiveResponse self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_box_autoadd_prepare_send_request(
|
||||
PrepareSendRequest self, SseSerializer serializer);
|
||||
void sse_encode_box_autoadd_prepare_send_request(PrepareSendRequest self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_box_autoadd_prepare_send_response(
|
||||
PrepareSendResponse self, SseSerializer serializer);
|
||||
void sse_encode_box_autoadd_prepare_send_response(PrepareSendResponse self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_box_autoadd_restore_request(
|
||||
RestoreRequest self, SseSerializer serializer);
|
||||
void sse_encode_box_autoadd_restore_request(RestoreRequest self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_box_autoadd_u_32(int self, SseSerializer serializer);
|
||||
@@ -685,16 +640,13 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
void sse_encode_box_autoadd_u_64(int self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_connect_request(
|
||||
ConnectRequest self, SseSerializer serializer);
|
||||
void sse_encode_connect_request(ConnectRequest self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_get_info_request(
|
||||
GetInfoRequest self, SseSerializer serializer);
|
||||
void sse_encode_get_info_request(GetInfoRequest self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_get_info_response(
|
||||
GetInfoResponse self, SseSerializer serializer);
|
||||
void sse_encode_get_info_response(GetInfoResponse self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_i_32(int self, SseSerializer serializer);
|
||||
@@ -703,8 +655,7 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
void sse_encode_list_payment(List<Payment> self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_list_prim_u_8_strict(
|
||||
Uint8List self, SseSerializer serializer);
|
||||
void sse_encode_list_prim_u_8_strict(Uint8List self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_network(Network self, SseSerializer serializer);
|
||||
@@ -728,32 +679,25 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
void sse_encode_payment_type(PaymentType self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_prepare_receive_request(
|
||||
PrepareReceiveRequest self, SseSerializer serializer);
|
||||
void sse_encode_prepare_receive_request(PrepareReceiveRequest self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_prepare_receive_response(
|
||||
PrepareReceiveResponse self, SseSerializer serializer);
|
||||
void sse_encode_prepare_receive_response(PrepareReceiveResponse self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_prepare_send_request(
|
||||
PrepareSendRequest self, SseSerializer serializer);
|
||||
void sse_encode_prepare_send_request(PrepareSendRequest self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_prepare_send_response(
|
||||
PrepareSendResponse self, SseSerializer serializer);
|
||||
void sse_encode_prepare_send_response(PrepareSendResponse self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_receive_payment_response(
|
||||
ReceivePaymentResponse self, SseSerializer serializer);
|
||||
void sse_encode_receive_payment_response(ReceivePaymentResponse self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_restore_request(
|
||||
RestoreRequest self, SseSerializer serializer);
|
||||
void sse_encode_restore_request(RestoreRequest self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_send_payment_response(
|
||||
SendPaymentResponse self, SseSerializer serializer);
|
||||
void sse_encode_send_payment_response(SendPaymentResponse self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_u_32(int self, SseSerializer serializer);
|
||||
@@ -781,21 +725,16 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
|
||||
/// generated by flutter_rust_bridge
|
||||
class RustLibWire implements BaseWire {
|
||||
factory RustLibWire.fromExternalLibrary(ExternalLibrary lib) =>
|
||||
RustLibWire(lib.ffiDynamicLibrary);
|
||||
factory RustLibWire.fromExternalLibrary(ExternalLibrary lib) => RustLibWire(lib.ffiDynamicLibrary);
|
||||
|
||||
/// Holds the symbol lookup function.
|
||||
final ffi.Pointer<T> Function<T extends ffi.NativeType>(String symbolName)
|
||||
_lookup;
|
||||
final ffi.Pointer<T> Function<T extends ffi.NativeType>(String symbolName) _lookup;
|
||||
|
||||
/// The symbols are looked up in [dynamicLibrary].
|
||||
RustLibWire(ffi.DynamicLibrary dynamicLibrary)
|
||||
: _lookup = dynamicLibrary.lookup;
|
||||
RustLibWire(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup;
|
||||
|
||||
/// The symbols are looked up with [lookup].
|
||||
RustLibWire.fromLookup(
|
||||
ffi.Pointer<T> Function<T extends ffi.NativeType>(String symbolName)
|
||||
lookup)
|
||||
RustLibWire.fromLookup(ffi.Pointer<T> Function<T extends ffi.NativeType>(String symbolName) lookup)
|
||||
: _lookup = lookup;
|
||||
|
||||
void store_dart_post_cobject(
|
||||
@@ -807,10 +746,9 @@ class RustLibWire implements BaseWire {
|
||||
}
|
||||
|
||||
late final _store_dart_post_cobjectPtr =
|
||||
_lookup<ffi.NativeFunction<ffi.Void Function(DartPostCObjectFnType)>>(
|
||||
'store_dart_post_cobject');
|
||||
late final _store_dart_post_cobject = _store_dart_post_cobjectPtr
|
||||
.asFunction<void Function(DartPostCObjectFnType)>();
|
||||
_lookup<ffi.NativeFunction<ffi.Void Function(DartPostCObjectFnType)>>('store_dart_post_cobject');
|
||||
late final _store_dart_post_cobject =
|
||||
_store_dart_post_cobjectPtr.asFunction<void Function(DartPostCObjectFnType)>();
|
||||
|
||||
void wire_backup(
|
||||
int port_,
|
||||
@@ -821,8 +759,7 @@ class RustLibWire implements BaseWire {
|
||||
}
|
||||
|
||||
late final _wire_backupPtr =
|
||||
_lookup<ffi.NativeFunction<ffi.Void Function(ffi.Int64)>>(
|
||||
'frbgen_breez_liquid_wire_backup');
|
||||
_lookup<ffi.NativeFunction<ffi.Void Function(ffi.Int64)>>('frbgen_breez_liquid_wire_backup');
|
||||
late final _wire_backup = _wire_backupPtr.asFunction<void Function(int)>();
|
||||
|
||||
void wire_connect(
|
||||
@@ -835,13 +772,11 @@ class RustLibWire implements BaseWire {
|
||||
);
|
||||
}
|
||||
|
||||
late final _wire_connectPtr = _lookup<
|
||||
ffi.NativeFunction<
|
||||
ffi.Void Function(
|
||||
ffi.Int64, ffi.Pointer<wire_cst_connect_request>)>>(
|
||||
late final _wire_connectPtr =
|
||||
_lookup<ffi.NativeFunction<ffi.Void Function(ffi.Int64, ffi.Pointer<wire_cst_connect_request>)>>(
|
||||
'frbgen_breez_liquid_wire_connect');
|
||||
late final _wire_connect = _wire_connectPtr
|
||||
.asFunction<void Function(int, ffi.Pointer<wire_cst_connect_request>)>();
|
||||
late final _wire_connect =
|
||||
_wire_connectPtr.asFunction<void Function(int, ffi.Pointer<wire_cst_connect_request>)>();
|
||||
|
||||
void wire_empty_wallet_cache(
|
||||
int port_,
|
||||
@@ -851,11 +786,9 @@ class RustLibWire implements BaseWire {
|
||||
);
|
||||
}
|
||||
|
||||
late final _wire_empty_wallet_cachePtr =
|
||||
_lookup<ffi.NativeFunction<ffi.Void Function(ffi.Int64)>>(
|
||||
late final _wire_empty_wallet_cachePtr = _lookup<ffi.NativeFunction<ffi.Void Function(ffi.Int64)>>(
|
||||
'frbgen_breez_liquid_wire_empty_wallet_cache');
|
||||
late final _wire_empty_wallet_cache =
|
||||
_wire_empty_wallet_cachePtr.asFunction<void Function(int)>();
|
||||
late final _wire_empty_wallet_cache = _wire_empty_wallet_cachePtr.asFunction<void Function(int)>();
|
||||
|
||||
void wire_get_info(
|
||||
int port_,
|
||||
@@ -867,13 +800,11 @@ class RustLibWire implements BaseWire {
|
||||
);
|
||||
}
|
||||
|
||||
late final _wire_get_infoPtr = _lookup<
|
||||
ffi.NativeFunction<
|
||||
ffi.Void Function(
|
||||
ffi.Int64, ffi.Pointer<wire_cst_get_info_request>)>>(
|
||||
late final _wire_get_infoPtr =
|
||||
_lookup<ffi.NativeFunction<ffi.Void Function(ffi.Int64, ffi.Pointer<wire_cst_get_info_request>)>>(
|
||||
'frbgen_breez_liquid_wire_get_info');
|
||||
late final _wire_get_info = _wire_get_infoPtr
|
||||
.asFunction<void Function(int, ffi.Pointer<wire_cst_get_info_request>)>();
|
||||
late final _wire_get_info =
|
||||
_wire_get_infoPtr.asFunction<void Function(int, ffi.Pointer<wire_cst_get_info_request>)>();
|
||||
|
||||
void wire_list_payments(
|
||||
int port_,
|
||||
@@ -887,11 +818,10 @@ class RustLibWire implements BaseWire {
|
||||
);
|
||||
}
|
||||
|
||||
late final _wire_list_paymentsPtr = _lookup<
|
||||
ffi.NativeFunction<ffi.Void Function(ffi.Int64, ffi.Bool, ffi.Bool)>>(
|
||||
late final _wire_list_paymentsPtr =
|
||||
_lookup<ffi.NativeFunction<ffi.Void Function(ffi.Int64, ffi.Bool, ffi.Bool)>>(
|
||||
'frbgen_breez_liquid_wire_list_payments');
|
||||
late final _wire_list_payments =
|
||||
_wire_list_paymentsPtr.asFunction<void Function(int, bool, bool)>();
|
||||
late final _wire_list_payments = _wire_list_paymentsPtr.asFunction<void Function(int, bool, bool)>();
|
||||
|
||||
void wire_prepare_receive_payment(
|
||||
int port_,
|
||||
@@ -904,13 +834,10 @@ class RustLibWire implements BaseWire {
|
||||
}
|
||||
|
||||
late final _wire_prepare_receive_paymentPtr = _lookup<
|
||||
ffi.NativeFunction<
|
||||
ffi.Void Function(
|
||||
ffi.Int64, ffi.Pointer<wire_cst_prepare_receive_request>)>>(
|
||||
ffi.NativeFunction<ffi.Void Function(ffi.Int64, ffi.Pointer<wire_cst_prepare_receive_request>)>>(
|
||||
'frbgen_breez_liquid_wire_prepare_receive_payment');
|
||||
late final _wire_prepare_receive_payment =
|
||||
_wire_prepare_receive_paymentPtr.asFunction<
|
||||
void Function(int, ffi.Pointer<wire_cst_prepare_receive_request>)>();
|
||||
late final _wire_prepare_receive_payment = _wire_prepare_receive_paymentPtr
|
||||
.asFunction<void Function(int, ffi.Pointer<wire_cst_prepare_receive_request>)>();
|
||||
|
||||
void wire_prepare_send_payment(
|
||||
int port_,
|
||||
@@ -922,14 +849,11 @@ class RustLibWire implements BaseWire {
|
||||
);
|
||||
}
|
||||
|
||||
late final _wire_prepare_send_paymentPtr = _lookup<
|
||||
ffi.NativeFunction<
|
||||
ffi.Void Function(
|
||||
ffi.Int64, ffi.Pointer<wire_cst_prepare_send_request>)>>(
|
||||
late final _wire_prepare_send_paymentPtr =
|
||||
_lookup<ffi.NativeFunction<ffi.Void Function(ffi.Int64, ffi.Pointer<wire_cst_prepare_send_request>)>>(
|
||||
'frbgen_breez_liquid_wire_prepare_send_payment');
|
||||
late final _wire_prepare_send_payment =
|
||||
_wire_prepare_send_paymentPtr.asFunction<
|
||||
void Function(int, ffi.Pointer<wire_cst_prepare_send_request>)>();
|
||||
late final _wire_prepare_send_payment = _wire_prepare_send_paymentPtr
|
||||
.asFunction<void Function(int, ffi.Pointer<wire_cst_prepare_send_request>)>();
|
||||
|
||||
void wire_receive_payment(
|
||||
int port_,
|
||||
@@ -942,12 +866,10 @@ class RustLibWire implements BaseWire {
|
||||
}
|
||||
|
||||
late final _wire_receive_paymentPtr = _lookup<
|
||||
ffi.NativeFunction<
|
||||
ffi.Void Function(
|
||||
ffi.Int64, ffi.Pointer<wire_cst_prepare_receive_response>)>>(
|
||||
ffi.NativeFunction<ffi.Void Function(ffi.Int64, ffi.Pointer<wire_cst_prepare_receive_response>)>>(
|
||||
'frbgen_breez_liquid_wire_receive_payment');
|
||||
late final _wire_receive_payment = _wire_receive_paymentPtr.asFunction<
|
||||
void Function(int, ffi.Pointer<wire_cst_prepare_receive_response>)>();
|
||||
late final _wire_receive_payment = _wire_receive_paymentPtr
|
||||
.asFunction<void Function(int, ffi.Pointer<wire_cst_prepare_receive_response>)>();
|
||||
|
||||
void wire_recover_funds(
|
||||
int port_,
|
||||
@@ -959,11 +881,9 @@ class RustLibWire implements BaseWire {
|
||||
);
|
||||
}
|
||||
|
||||
late final _wire_recover_fundsPtr =
|
||||
_lookup<ffi.NativeFunction<ffi.Void Function(ffi.Int64, ffi.UintPtr)>>(
|
||||
late final _wire_recover_fundsPtr = _lookup<ffi.NativeFunction<ffi.Void Function(ffi.Int64, ffi.UintPtr)>>(
|
||||
'frbgen_breez_liquid_wire_recover_funds');
|
||||
late final _wire_recover_funds =
|
||||
_wire_recover_fundsPtr.asFunction<void Function(int, int)>();
|
||||
late final _wire_recover_funds = _wire_recover_fundsPtr.asFunction<void Function(int, int)>();
|
||||
|
||||
void wire_restore(
|
||||
int port_,
|
||||
@@ -975,13 +895,11 @@ class RustLibWire implements BaseWire {
|
||||
);
|
||||
}
|
||||
|
||||
late final _wire_restorePtr = _lookup<
|
||||
ffi.NativeFunction<
|
||||
ffi.Void Function(
|
||||
ffi.Int64, ffi.Pointer<wire_cst_restore_request>)>>(
|
||||
late final _wire_restorePtr =
|
||||
_lookup<ffi.NativeFunction<ffi.Void Function(ffi.Int64, ffi.Pointer<wire_cst_restore_request>)>>(
|
||||
'frbgen_breez_liquid_wire_restore');
|
||||
late final _wire_restore = _wire_restorePtr
|
||||
.asFunction<void Function(int, ffi.Pointer<wire_cst_restore_request>)>();
|
||||
late final _wire_restore =
|
||||
_wire_restorePtr.asFunction<void Function(int, ffi.Pointer<wire_cst_restore_request>)>();
|
||||
|
||||
void wire_send_payment(
|
||||
int port_,
|
||||
@@ -993,13 +911,11 @@ class RustLibWire implements BaseWire {
|
||||
);
|
||||
}
|
||||
|
||||
late final _wire_send_paymentPtr = _lookup<
|
||||
ffi.NativeFunction<
|
||||
ffi.Void Function(
|
||||
ffi.Int64, ffi.Pointer<wire_cst_prepare_send_response>)>>(
|
||||
late final _wire_send_paymentPtr =
|
||||
_lookup<ffi.NativeFunction<ffi.Void Function(ffi.Int64, ffi.Pointer<wire_cst_prepare_send_response>)>>(
|
||||
'frbgen_breez_liquid_wire_send_payment');
|
||||
late final _wire_send_payment = _wire_send_paymentPtr.asFunction<
|
||||
void Function(int, ffi.Pointer<wire_cst_prepare_send_response>)>();
|
||||
late final _wire_send_payment =
|
||||
_wire_send_paymentPtr.asFunction<void Function(int, ffi.Pointer<wire_cst_prepare_send_response>)>();
|
||||
|
||||
void
|
||||
rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLBtcReverseRecovery(
|
||||
@@ -1037,88 +953,71 @@ class RustLibWire implements BaseWire {
|
||||
return _cst_new_box_autoadd_connect_request();
|
||||
}
|
||||
|
||||
late final _cst_new_box_autoadd_connect_requestPtr = _lookup<
|
||||
ffi.NativeFunction<ffi.Pointer<wire_cst_connect_request> Function()>>(
|
||||
late final _cst_new_box_autoadd_connect_requestPtr =
|
||||
_lookup<ffi.NativeFunction<ffi.Pointer<wire_cst_connect_request> Function()>>(
|
||||
'frbgen_breez_liquid_cst_new_box_autoadd_connect_request');
|
||||
late final _cst_new_box_autoadd_connect_request =
|
||||
_cst_new_box_autoadd_connect_requestPtr
|
||||
.asFunction<ffi.Pointer<wire_cst_connect_request> Function()>();
|
||||
_cst_new_box_autoadd_connect_requestPtr.asFunction<ffi.Pointer<wire_cst_connect_request> Function()>();
|
||||
|
||||
ffi.Pointer<wire_cst_get_info_request>
|
||||
cst_new_box_autoadd_get_info_request() {
|
||||
ffi.Pointer<wire_cst_get_info_request> cst_new_box_autoadd_get_info_request() {
|
||||
return _cst_new_box_autoadd_get_info_request();
|
||||
}
|
||||
|
||||
late final _cst_new_box_autoadd_get_info_requestPtr = _lookup<
|
||||
ffi
|
||||
.NativeFunction<ffi.Pointer<wire_cst_get_info_request> Function()>>(
|
||||
late final _cst_new_box_autoadd_get_info_requestPtr =
|
||||
_lookup<ffi.NativeFunction<ffi.Pointer<wire_cst_get_info_request> Function()>>(
|
||||
'frbgen_breez_liquid_cst_new_box_autoadd_get_info_request');
|
||||
late final _cst_new_box_autoadd_get_info_request =
|
||||
_cst_new_box_autoadd_get_info_requestPtr
|
||||
late final _cst_new_box_autoadd_get_info_request = _cst_new_box_autoadd_get_info_requestPtr
|
||||
.asFunction<ffi.Pointer<wire_cst_get_info_request> Function()>();
|
||||
|
||||
ffi.Pointer<wire_cst_prepare_receive_request>
|
||||
cst_new_box_autoadd_prepare_receive_request() {
|
||||
ffi.Pointer<wire_cst_prepare_receive_request> cst_new_box_autoadd_prepare_receive_request() {
|
||||
return _cst_new_box_autoadd_prepare_receive_request();
|
||||
}
|
||||
|
||||
late final _cst_new_box_autoadd_prepare_receive_requestPtr = _lookup<
|
||||
ffi.NativeFunction<
|
||||
ffi.Pointer<wire_cst_prepare_receive_request> Function()>>(
|
||||
late final _cst_new_box_autoadd_prepare_receive_requestPtr =
|
||||
_lookup<ffi.NativeFunction<ffi.Pointer<wire_cst_prepare_receive_request> Function()>>(
|
||||
'frbgen_breez_liquid_cst_new_box_autoadd_prepare_receive_request');
|
||||
late final _cst_new_box_autoadd_prepare_receive_request =
|
||||
_cst_new_box_autoadd_prepare_receive_requestPtr.asFunction<
|
||||
ffi.Pointer<wire_cst_prepare_receive_request> Function()>();
|
||||
late final _cst_new_box_autoadd_prepare_receive_request = _cst_new_box_autoadd_prepare_receive_requestPtr
|
||||
.asFunction<ffi.Pointer<wire_cst_prepare_receive_request> Function()>();
|
||||
|
||||
ffi.Pointer<wire_cst_prepare_receive_response>
|
||||
cst_new_box_autoadd_prepare_receive_response() {
|
||||
ffi.Pointer<wire_cst_prepare_receive_response> cst_new_box_autoadd_prepare_receive_response() {
|
||||
return _cst_new_box_autoadd_prepare_receive_response();
|
||||
}
|
||||
|
||||
late final _cst_new_box_autoadd_prepare_receive_responsePtr = _lookup<
|
||||
ffi.NativeFunction<
|
||||
ffi.Pointer<wire_cst_prepare_receive_response> Function()>>(
|
||||
late final _cst_new_box_autoadd_prepare_receive_responsePtr =
|
||||
_lookup<ffi.NativeFunction<ffi.Pointer<wire_cst_prepare_receive_response> Function()>>(
|
||||
'frbgen_breez_liquid_cst_new_box_autoadd_prepare_receive_response');
|
||||
late final _cst_new_box_autoadd_prepare_receive_response =
|
||||
_cst_new_box_autoadd_prepare_receive_responsePtr.asFunction<
|
||||
ffi.Pointer<wire_cst_prepare_receive_response> Function()>();
|
||||
late final _cst_new_box_autoadd_prepare_receive_response = _cst_new_box_autoadd_prepare_receive_responsePtr
|
||||
.asFunction<ffi.Pointer<wire_cst_prepare_receive_response> Function()>();
|
||||
|
||||
ffi.Pointer<wire_cst_prepare_send_request>
|
||||
cst_new_box_autoadd_prepare_send_request() {
|
||||
ffi.Pointer<wire_cst_prepare_send_request> cst_new_box_autoadd_prepare_send_request() {
|
||||
return _cst_new_box_autoadd_prepare_send_request();
|
||||
}
|
||||
|
||||
late final _cst_new_box_autoadd_prepare_send_requestPtr = _lookup<
|
||||
ffi.NativeFunction<
|
||||
ffi.Pointer<wire_cst_prepare_send_request> Function()>>(
|
||||
late final _cst_new_box_autoadd_prepare_send_requestPtr =
|
||||
_lookup<ffi.NativeFunction<ffi.Pointer<wire_cst_prepare_send_request> Function()>>(
|
||||
'frbgen_breez_liquid_cst_new_box_autoadd_prepare_send_request');
|
||||
late final _cst_new_box_autoadd_prepare_send_request =
|
||||
_cst_new_box_autoadd_prepare_send_requestPtr
|
||||
late final _cst_new_box_autoadd_prepare_send_request = _cst_new_box_autoadd_prepare_send_requestPtr
|
||||
.asFunction<ffi.Pointer<wire_cst_prepare_send_request> Function()>();
|
||||
|
||||
ffi.Pointer<wire_cst_prepare_send_response>
|
||||
cst_new_box_autoadd_prepare_send_response() {
|
||||
ffi.Pointer<wire_cst_prepare_send_response> cst_new_box_autoadd_prepare_send_response() {
|
||||
return _cst_new_box_autoadd_prepare_send_response();
|
||||
}
|
||||
|
||||
late final _cst_new_box_autoadd_prepare_send_responsePtr = _lookup<
|
||||
ffi.NativeFunction<
|
||||
ffi.Pointer<wire_cst_prepare_send_response> Function()>>(
|
||||
late final _cst_new_box_autoadd_prepare_send_responsePtr =
|
||||
_lookup<ffi.NativeFunction<ffi.Pointer<wire_cst_prepare_send_response> Function()>>(
|
||||
'frbgen_breez_liquid_cst_new_box_autoadd_prepare_send_response');
|
||||
late final _cst_new_box_autoadd_prepare_send_response =
|
||||
_cst_new_box_autoadd_prepare_send_responsePtr
|
||||
late final _cst_new_box_autoadd_prepare_send_response = _cst_new_box_autoadd_prepare_send_responsePtr
|
||||
.asFunction<ffi.Pointer<wire_cst_prepare_send_response> Function()>();
|
||||
|
||||
ffi.Pointer<wire_cst_restore_request> cst_new_box_autoadd_restore_request() {
|
||||
return _cst_new_box_autoadd_restore_request();
|
||||
}
|
||||
|
||||
late final _cst_new_box_autoadd_restore_requestPtr = _lookup<
|
||||
ffi.NativeFunction<ffi.Pointer<wire_cst_restore_request> Function()>>(
|
||||
late final _cst_new_box_autoadd_restore_requestPtr =
|
||||
_lookup<ffi.NativeFunction<ffi.Pointer<wire_cst_restore_request> Function()>>(
|
||||
'frbgen_breez_liquid_cst_new_box_autoadd_restore_request');
|
||||
late final _cst_new_box_autoadd_restore_request =
|
||||
_cst_new_box_autoadd_restore_requestPtr
|
||||
.asFunction<ffi.Pointer<wire_cst_restore_request> Function()>();
|
||||
_cst_new_box_autoadd_restore_requestPtr.asFunction<ffi.Pointer<wire_cst_restore_request> Function()>();
|
||||
|
||||
ffi.Pointer<ffi.Uint32> cst_new_box_autoadd_u_32(
|
||||
int value,
|
||||
@@ -1131,8 +1030,8 @@ class RustLibWire implements BaseWire {
|
||||
late final _cst_new_box_autoadd_u_32Ptr =
|
||||
_lookup<ffi.NativeFunction<ffi.Pointer<ffi.Uint32> Function(ffi.Uint32)>>(
|
||||
'frbgen_breez_liquid_cst_new_box_autoadd_u_32');
|
||||
late final _cst_new_box_autoadd_u_32 = _cst_new_box_autoadd_u_32Ptr
|
||||
.asFunction<ffi.Pointer<ffi.Uint32> Function(int)>();
|
||||
late final _cst_new_box_autoadd_u_32 =
|
||||
_cst_new_box_autoadd_u_32Ptr.asFunction<ffi.Pointer<ffi.Uint32> Function(int)>();
|
||||
|
||||
ffi.Pointer<ffi.Uint64> cst_new_box_autoadd_u_64(
|
||||
int value,
|
||||
@@ -1145,8 +1044,8 @@ class RustLibWire implements BaseWire {
|
||||
late final _cst_new_box_autoadd_u_64Ptr =
|
||||
_lookup<ffi.NativeFunction<ffi.Pointer<ffi.Uint64> Function(ffi.Uint64)>>(
|
||||
'frbgen_breez_liquid_cst_new_box_autoadd_u_64');
|
||||
late final _cst_new_box_autoadd_u_64 = _cst_new_box_autoadd_u_64Ptr
|
||||
.asFunction<ffi.Pointer<ffi.Uint64> Function(int)>();
|
||||
late final _cst_new_box_autoadd_u_64 =
|
||||
_cst_new_box_autoadd_u_64Ptr.asFunction<ffi.Pointer<ffi.Uint64> Function(int)>();
|
||||
|
||||
ffi.Pointer<wire_cst_list_payment> cst_new_list_payment(
|
||||
int len,
|
||||
@@ -1156,12 +1055,11 @@ class RustLibWire implements BaseWire {
|
||||
);
|
||||
}
|
||||
|
||||
late final _cst_new_list_paymentPtr = _lookup<
|
||||
ffi.NativeFunction<
|
||||
ffi.Pointer<wire_cst_list_payment> Function(
|
||||
ffi.Int32)>>('frbgen_breez_liquid_cst_new_list_payment');
|
||||
late final _cst_new_list_payment = _cst_new_list_paymentPtr
|
||||
.asFunction<ffi.Pointer<wire_cst_list_payment> Function(int)>();
|
||||
late final _cst_new_list_paymentPtr =
|
||||
_lookup<ffi.NativeFunction<ffi.Pointer<wire_cst_list_payment> Function(ffi.Int32)>>(
|
||||
'frbgen_breez_liquid_cst_new_list_payment');
|
||||
late final _cst_new_list_payment =
|
||||
_cst_new_list_paymentPtr.asFunction<ffi.Pointer<wire_cst_list_payment> Function(int)>();
|
||||
|
||||
ffi.Pointer<wire_cst_list_prim_u_8_strict> cst_new_list_prim_u_8_strict(
|
||||
int len,
|
||||
@@ -1171,28 +1069,24 @@ class RustLibWire implements BaseWire {
|
||||
);
|
||||
}
|
||||
|
||||
late final _cst_new_list_prim_u_8_strictPtr = _lookup<
|
||||
ffi.NativeFunction<
|
||||
ffi.Pointer<wire_cst_list_prim_u_8_strict> Function(
|
||||
ffi.Int32)>>('frbgen_breez_liquid_cst_new_list_prim_u_8_strict');
|
||||
late final _cst_new_list_prim_u_8_strict = _cst_new_list_prim_u_8_strictPtr
|
||||
.asFunction<ffi.Pointer<wire_cst_list_prim_u_8_strict> Function(int)>();
|
||||
late final _cst_new_list_prim_u_8_strictPtr =
|
||||
_lookup<ffi.NativeFunction<ffi.Pointer<wire_cst_list_prim_u_8_strict> Function(ffi.Int32)>>(
|
||||
'frbgen_breez_liquid_cst_new_list_prim_u_8_strict');
|
||||
late final _cst_new_list_prim_u_8_strict =
|
||||
_cst_new_list_prim_u_8_strictPtr.asFunction<ffi.Pointer<wire_cst_list_prim_u_8_strict> Function(int)>();
|
||||
|
||||
int dummy_method_to_enforce_bundling() {
|
||||
return _dummy_method_to_enforce_bundling();
|
||||
}
|
||||
|
||||
late final _dummy_method_to_enforce_bundlingPtr =
|
||||
_lookup<ffi.NativeFunction<ffi.Int64 Function()>>(
|
||||
'dummy_method_to_enforce_bundling');
|
||||
_lookup<ffi.NativeFunction<ffi.Int64 Function()>>('dummy_method_to_enforce_bundling');
|
||||
late final _dummy_method_to_enforce_bundling =
|
||||
_dummy_method_to_enforce_bundlingPtr.asFunction<int Function()>();
|
||||
}
|
||||
|
||||
typedef DartPostCObjectFnType
|
||||
= ffi.Pointer<ffi.NativeFunction<DartPostCObjectFnTypeFunction>>;
|
||||
typedef DartPostCObjectFnTypeFunction = ffi.Bool Function(
|
||||
DartPort port_id, ffi.Pointer<ffi.Void> message);
|
||||
typedef DartPostCObjectFnType = ffi.Pointer<ffi.NativeFunction<DartPostCObjectFnTypeFunction>>;
|
||||
typedef DartPostCObjectFnTypeFunction = ffi.Bool Function(DartPort port_id, ffi.Pointer<ffi.Void> message);
|
||||
typedef DartDartPostCObjectFnTypeFunction = bool Function(
|
||||
DartDartPort port_id, ffi.Pointer<ffi.Void> message);
|
||||
typedef DartPort = ffi.Int64;
|
||||
|
||||
@@ -43,9 +43,7 @@ class GetInfoRequest {
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) ||
|
||||
other is GetInfoRequest &&
|
||||
runtimeType == other.runtimeType &&
|
||||
withScan == other.withScan;
|
||||
other is GetInfoRequest && runtimeType == other.runtimeType && withScan == other.withScan;
|
||||
}
|
||||
|
||||
class GetInfoResponse {
|
||||
@@ -154,8 +152,7 @@ class PrepareReceiveResponse {
|
||||
});
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
pairHash.hashCode ^ payerAmountSat.hashCode ^ feesSat.hashCode;
|
||||
int get hashCode => pairHash.hashCode ^ payerAmountSat.hashCode ^ feesSat.hashCode;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
@@ -180,9 +177,7 @@ class PrepareSendRequest {
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) ||
|
||||
other is PrepareSendRequest &&
|
||||
runtimeType == other.runtimeType &&
|
||||
invoice == other.invoice;
|
||||
other is PrepareSendRequest && runtimeType == other.runtimeType && invoice == other.invoice;
|
||||
}
|
||||
|
||||
class PrepareSendResponse {
|
||||
@@ -258,9 +253,7 @@ class RestoreRequest {
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) ||
|
||||
other is RestoreRequest &&
|
||||
runtimeType == other.runtimeType &&
|
||||
backupPath == other.backupPath;
|
||||
other is RestoreRequest && runtimeType == other.runtimeType && backupPath == other.backupPath;
|
||||
}
|
||||
|
||||
class SendPaymentResponse {
|
||||
@@ -276,7 +269,5 @@ class SendPaymentResponse {
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) ||
|
||||
other is SendPaymentResponse &&
|
||||
runtimeType == other.runtimeType &&
|
||||
txid == other.txid;
|
||||
other is SendPaymentResponse && runtimeType == other.runtimeType && txid == other.txid;
|
||||
}
|
||||
|
||||
@@ -9,9 +9,7 @@ void main() {
|
||||
await initApi();
|
||||
});
|
||||
|
||||
test(
|
||||
"after setting up, getInfo should throw exception with 'Not initialized' message",
|
||||
() async {
|
||||
test("after setting up, getInfo should throw exception with 'Not initialized' message", () async {
|
||||
GetInfoRequest req = GetInfoRequest(withScan: true);
|
||||
try {
|
||||
await getInfo(req: req);
|
||||
|
||||
@@ -122,16 +122,13 @@ class _MyAppState extends State<MyApp> {
|
||||
),
|
||||
),
|
||||
ListTile(
|
||||
title: Text(
|
||||
"Pair Hash: ${prepareReceiveResponse.pairHash}"),
|
||||
title: Text("Pair Hash: ${prepareReceiveResponse.pairHash}"),
|
||||
),
|
||||
ListTile(
|
||||
title: Text(
|
||||
"Payer Amount: ${prepareReceiveResponse.payerAmountSat} (in sats)"),
|
||||
title: Text("Payer Amount: ${prepareReceiveResponse.payerAmountSat} (in sats)"),
|
||||
),
|
||||
ListTile(
|
||||
title: Text(
|
||||
"Fees: ${prepareReceiveResponse.feesSat} (in sats)"),
|
||||
title: Text("Fees: ${prepareReceiveResponse.feesSat} (in sats)"),
|
||||
),
|
||||
const SizedBox(height: 16.0),
|
||||
FutureBuilder<ReceivePaymentResponse>(
|
||||
@@ -151,30 +148,23 @@ class _MyAppState extends State<MyApp> {
|
||||
}
|
||||
|
||||
final receivePaymentResponse = snapshot.data!;
|
||||
debugPrint(
|
||||
"Invoice ID: ${receivePaymentResponse.id}");
|
||||
debugPrint(
|
||||
"Invoice: ${receivePaymentResponse.invoice}");
|
||||
debugPrint("Invoice ID: ${receivePaymentResponse.id}");
|
||||
debugPrint("Invoice: ${receivePaymentResponse.invoice}");
|
||||
|
||||
return Column(
|
||||
children: [
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 16.0),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16.0),
|
||||
child: Text(
|
||||
"Invoice for receive payment of 1000 sats",
|
||||
style: Theme.of(context)
|
||||
.textTheme
|
||||
.headlineSmall,
|
||||
style: Theme.of(context).textTheme.headlineSmall,
|
||||
),
|
||||
),
|
||||
ListTile(
|
||||
title: Text(
|
||||
"Invoice ID: ${receivePaymentResponse.id}"),
|
||||
title: Text("Invoice ID: ${receivePaymentResponse.id}"),
|
||||
),
|
||||
ListTile(
|
||||
title: Text(
|
||||
"Invoice: ${receivePaymentResponse.invoice}"),
|
||||
title: Text("Invoice: ${receivePaymentResponse.invoice}"),
|
||||
),
|
||||
],
|
||||
);
|
||||
|
||||
@@ -14,17 +14,14 @@ import 'dart:ffi' as ffi;
|
||||
///
|
||||
class FlutterBreezLiquidBindings {
|
||||
/// Holds the symbol lookup function.
|
||||
final ffi.Pointer<T> Function<T extends ffi.NativeType>(String symbolName)
|
||||
_lookup;
|
||||
final ffi.Pointer<T> Function<T extends ffi.NativeType>(String symbolName) _lookup;
|
||||
|
||||
/// The symbols are looked up in [dynamicLibrary].
|
||||
FlutterBreezLiquidBindings(ffi.DynamicLibrary dynamicLibrary)
|
||||
: _lookup = dynamicLibrary.lookup;
|
||||
FlutterBreezLiquidBindings(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup;
|
||||
|
||||
/// The symbols are looked up with [lookup].
|
||||
FlutterBreezLiquidBindings.fromLookup(
|
||||
ffi.Pointer<T> Function<T extends ffi.NativeType>(String symbolName)
|
||||
lookup)
|
||||
ffi.Pointer<T> Function<T extends ffi.NativeType>(String symbolName) lookup)
|
||||
: _lookup = lookup;
|
||||
|
||||
void store_dart_post_cobject(
|
||||
@@ -36,10 +33,9 @@ class FlutterBreezLiquidBindings {
|
||||
}
|
||||
|
||||
late final _store_dart_post_cobjectPtr =
|
||||
_lookup<ffi.NativeFunction<ffi.Void Function(DartPostCObjectFnType)>>(
|
||||
'store_dart_post_cobject');
|
||||
late final _store_dart_post_cobject = _store_dart_post_cobjectPtr
|
||||
.asFunction<void Function(DartPostCObjectFnType)>();
|
||||
_lookup<ffi.NativeFunction<ffi.Void Function(DartPostCObjectFnType)>>('store_dart_post_cobject');
|
||||
late final _store_dart_post_cobject =
|
||||
_store_dart_post_cobjectPtr.asFunction<void Function(DartPostCObjectFnType)>();
|
||||
|
||||
void frbgen_breez_liquid_wire_backup(
|
||||
int port_,
|
||||
@@ -50,8 +46,7 @@ class FlutterBreezLiquidBindings {
|
||||
}
|
||||
|
||||
late final _frbgen_breez_liquid_wire_backupPtr =
|
||||
_lookup<ffi.NativeFunction<ffi.Void Function(ffi.Int64)>>(
|
||||
'frbgen_breez_liquid_wire_backup');
|
||||
_lookup<ffi.NativeFunction<ffi.Void Function(ffi.Int64)>>('frbgen_breez_liquid_wire_backup');
|
||||
late final _frbgen_breez_liquid_wire_backup =
|
||||
_frbgen_breez_liquid_wire_backupPtr.asFunction<void Function(int)>();
|
||||
|
||||
@@ -65,14 +60,11 @@ class FlutterBreezLiquidBindings {
|
||||
);
|
||||
}
|
||||
|
||||
late final _frbgen_breez_liquid_wire_connectPtr = _lookup<
|
||||
ffi.NativeFunction<
|
||||
ffi.Void Function(
|
||||
ffi.Int64, ffi.Pointer<wire_cst_connect_request>)>>(
|
||||
late final _frbgen_breez_liquid_wire_connectPtr =
|
||||
_lookup<ffi.NativeFunction<ffi.Void Function(ffi.Int64, ffi.Pointer<wire_cst_connect_request>)>>(
|
||||
'frbgen_breez_liquid_wire_connect');
|
||||
late final _frbgen_breez_liquid_wire_connect =
|
||||
_frbgen_breez_liquid_wire_connectPtr.asFunction<
|
||||
void Function(int, ffi.Pointer<wire_cst_connect_request>)>();
|
||||
late final _frbgen_breez_liquid_wire_connect = _frbgen_breez_liquid_wire_connectPtr
|
||||
.asFunction<void Function(int, ffi.Pointer<wire_cst_connect_request>)>();
|
||||
|
||||
void frbgen_breez_liquid_wire_empty_wallet_cache(
|
||||
int port_,
|
||||
@@ -86,8 +78,7 @@ class FlutterBreezLiquidBindings {
|
||||
_lookup<ffi.NativeFunction<ffi.Void Function(ffi.Int64)>>(
|
||||
'frbgen_breez_liquid_wire_empty_wallet_cache');
|
||||
late final _frbgen_breez_liquid_wire_empty_wallet_cache =
|
||||
_frbgen_breez_liquid_wire_empty_wallet_cachePtr
|
||||
.asFunction<void Function(int)>();
|
||||
_frbgen_breez_liquid_wire_empty_wallet_cachePtr.asFunction<void Function(int)>();
|
||||
|
||||
void frbgen_breez_liquid_wire_get_info(
|
||||
int port_,
|
||||
@@ -99,14 +90,11 @@ class FlutterBreezLiquidBindings {
|
||||
);
|
||||
}
|
||||
|
||||
late final _frbgen_breez_liquid_wire_get_infoPtr = _lookup<
|
||||
ffi.NativeFunction<
|
||||
ffi.Void Function(
|
||||
ffi.Int64, ffi.Pointer<wire_cst_get_info_request>)>>(
|
||||
late final _frbgen_breez_liquid_wire_get_infoPtr =
|
||||
_lookup<ffi.NativeFunction<ffi.Void Function(ffi.Int64, ffi.Pointer<wire_cst_get_info_request>)>>(
|
||||
'frbgen_breez_liquid_wire_get_info');
|
||||
late final _frbgen_breez_liquid_wire_get_info =
|
||||
_frbgen_breez_liquid_wire_get_infoPtr.asFunction<
|
||||
void Function(int, ffi.Pointer<wire_cst_get_info_request>)>();
|
||||
late final _frbgen_breez_liquid_wire_get_info = _frbgen_breez_liquid_wire_get_infoPtr
|
||||
.asFunction<void Function(int, ffi.Pointer<wire_cst_get_info_request>)>();
|
||||
|
||||
void frbgen_breez_liquid_wire_list_payments(
|
||||
int port_,
|
||||
@@ -120,12 +108,11 @@ class FlutterBreezLiquidBindings {
|
||||
);
|
||||
}
|
||||
|
||||
late final _frbgen_breez_liquid_wire_list_paymentsPtr = _lookup<
|
||||
ffi.NativeFunction<ffi.Void Function(ffi.Int64, ffi.Bool, ffi.Bool)>>(
|
||||
late final _frbgen_breez_liquid_wire_list_paymentsPtr =
|
||||
_lookup<ffi.NativeFunction<ffi.Void Function(ffi.Int64, ffi.Bool, ffi.Bool)>>(
|
||||
'frbgen_breez_liquid_wire_list_payments');
|
||||
late final _frbgen_breez_liquid_wire_list_payments =
|
||||
_frbgen_breez_liquid_wire_list_paymentsPtr
|
||||
.asFunction<void Function(int, bool, bool)>();
|
||||
_frbgen_breez_liquid_wire_list_paymentsPtr.asFunction<void Function(int, bool, bool)>();
|
||||
|
||||
void frbgen_breez_liquid_wire_prepare_receive_payment(
|
||||
int port_,
|
||||
@@ -138,13 +125,11 @@ class FlutterBreezLiquidBindings {
|
||||
}
|
||||
|
||||
late final _frbgen_breez_liquid_wire_prepare_receive_paymentPtr = _lookup<
|
||||
ffi.NativeFunction<
|
||||
ffi.Void Function(
|
||||
ffi.Int64, ffi.Pointer<wire_cst_prepare_receive_request>)>>(
|
||||
ffi.NativeFunction<ffi.Void Function(ffi.Int64, ffi.Pointer<wire_cst_prepare_receive_request>)>>(
|
||||
'frbgen_breez_liquid_wire_prepare_receive_payment');
|
||||
late final _frbgen_breez_liquid_wire_prepare_receive_payment =
|
||||
_frbgen_breez_liquid_wire_prepare_receive_paymentPtr.asFunction<
|
||||
void Function(int, ffi.Pointer<wire_cst_prepare_receive_request>)>();
|
||||
_frbgen_breez_liquid_wire_prepare_receive_paymentPtr
|
||||
.asFunction<void Function(int, ffi.Pointer<wire_cst_prepare_receive_request>)>();
|
||||
|
||||
void frbgen_breez_liquid_wire_prepare_send_payment(
|
||||
int port_,
|
||||
@@ -156,14 +141,12 @@ class FlutterBreezLiquidBindings {
|
||||
);
|
||||
}
|
||||
|
||||
late final _frbgen_breez_liquid_wire_prepare_send_paymentPtr = _lookup<
|
||||
ffi.NativeFunction<
|
||||
ffi.Void Function(
|
||||
ffi.Int64, ffi.Pointer<wire_cst_prepare_send_request>)>>(
|
||||
late final _frbgen_breez_liquid_wire_prepare_send_paymentPtr =
|
||||
_lookup<ffi.NativeFunction<ffi.Void Function(ffi.Int64, ffi.Pointer<wire_cst_prepare_send_request>)>>(
|
||||
'frbgen_breez_liquid_wire_prepare_send_payment');
|
||||
late final _frbgen_breez_liquid_wire_prepare_send_payment =
|
||||
_frbgen_breez_liquid_wire_prepare_send_paymentPtr.asFunction<
|
||||
void Function(int, ffi.Pointer<wire_cst_prepare_send_request>)>();
|
||||
_frbgen_breez_liquid_wire_prepare_send_paymentPtr
|
||||
.asFunction<void Function(int, ffi.Pointer<wire_cst_prepare_send_request>)>();
|
||||
|
||||
void frbgen_breez_liquid_wire_receive_payment(
|
||||
int port_,
|
||||
@@ -176,13 +159,10 @@ class FlutterBreezLiquidBindings {
|
||||
}
|
||||
|
||||
late final _frbgen_breez_liquid_wire_receive_paymentPtr = _lookup<
|
||||
ffi.NativeFunction<
|
||||
ffi.Void Function(
|
||||
ffi.Int64, ffi.Pointer<wire_cst_prepare_receive_response>)>>(
|
||||
ffi.NativeFunction<ffi.Void Function(ffi.Int64, ffi.Pointer<wire_cst_prepare_receive_response>)>>(
|
||||
'frbgen_breez_liquid_wire_receive_payment');
|
||||
late final _frbgen_breez_liquid_wire_receive_payment =
|
||||
_frbgen_breez_liquid_wire_receive_paymentPtr.asFunction<
|
||||
void Function(int, ffi.Pointer<wire_cst_prepare_receive_response>)>();
|
||||
late final _frbgen_breez_liquid_wire_receive_payment = _frbgen_breez_liquid_wire_receive_paymentPtr
|
||||
.asFunction<void Function(int, ffi.Pointer<wire_cst_prepare_receive_response>)>();
|
||||
|
||||
void frbgen_breez_liquid_wire_recover_funds(
|
||||
int port_,
|
||||
@@ -198,8 +178,7 @@ class FlutterBreezLiquidBindings {
|
||||
_lookup<ffi.NativeFunction<ffi.Void Function(ffi.Int64, ffi.UintPtr)>>(
|
||||
'frbgen_breez_liquid_wire_recover_funds');
|
||||
late final _frbgen_breez_liquid_wire_recover_funds =
|
||||
_frbgen_breez_liquid_wire_recover_fundsPtr
|
||||
.asFunction<void Function(int, int)>();
|
||||
_frbgen_breez_liquid_wire_recover_fundsPtr.asFunction<void Function(int, int)>();
|
||||
|
||||
void frbgen_breez_liquid_wire_restore(
|
||||
int port_,
|
||||
@@ -211,14 +190,11 @@ class FlutterBreezLiquidBindings {
|
||||
);
|
||||
}
|
||||
|
||||
late final _frbgen_breez_liquid_wire_restorePtr = _lookup<
|
||||
ffi.NativeFunction<
|
||||
ffi.Void Function(
|
||||
ffi.Int64, ffi.Pointer<wire_cst_restore_request>)>>(
|
||||
late final _frbgen_breez_liquid_wire_restorePtr =
|
||||
_lookup<ffi.NativeFunction<ffi.Void Function(ffi.Int64, ffi.Pointer<wire_cst_restore_request>)>>(
|
||||
'frbgen_breez_liquid_wire_restore');
|
||||
late final _frbgen_breez_liquid_wire_restore =
|
||||
_frbgen_breez_liquid_wire_restorePtr.asFunction<
|
||||
void Function(int, ffi.Pointer<wire_cst_restore_request>)>();
|
||||
late final _frbgen_breez_liquid_wire_restore = _frbgen_breez_liquid_wire_restorePtr
|
||||
.asFunction<void Function(int, ffi.Pointer<wire_cst_restore_request>)>();
|
||||
|
||||
void frbgen_breez_liquid_wire_send_payment(
|
||||
int port_,
|
||||
@@ -230,14 +206,11 @@ class FlutterBreezLiquidBindings {
|
||||
);
|
||||
}
|
||||
|
||||
late final _frbgen_breez_liquid_wire_send_paymentPtr = _lookup<
|
||||
ffi.NativeFunction<
|
||||
ffi.Void Function(
|
||||
ffi.Int64, ffi.Pointer<wire_cst_prepare_send_response>)>>(
|
||||
late final _frbgen_breez_liquid_wire_send_paymentPtr =
|
||||
_lookup<ffi.NativeFunction<ffi.Void Function(ffi.Int64, ffi.Pointer<wire_cst_prepare_send_response>)>>(
|
||||
'frbgen_breez_liquid_wire_send_payment');
|
||||
late final _frbgen_breez_liquid_wire_send_payment =
|
||||
_frbgen_breez_liquid_wire_send_paymentPtr.asFunction<
|
||||
void Function(int, ffi.Pointer<wire_cst_prepare_send_response>)>();
|
||||
late final _frbgen_breez_liquid_wire_send_payment = _frbgen_breez_liquid_wire_send_paymentPtr
|
||||
.asFunction<void Function(int, ffi.Pointer<wire_cst_prepare_send_response>)>();
|
||||
|
||||
void
|
||||
frbgen_breez_liquid_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLBtcReverseRecovery(
|
||||
@@ -271,29 +244,23 @@ class FlutterBreezLiquidBindings {
|
||||
_frbgen_breez_liquid_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLBtcReverseRecoveryPtr
|
||||
.asFunction<void Function(ffi.Pointer<ffi.Void>)>();
|
||||
|
||||
ffi.Pointer<wire_cst_connect_request>
|
||||
frbgen_breez_liquid_cst_new_box_autoadd_connect_request() {
|
||||
ffi.Pointer<wire_cst_connect_request> frbgen_breez_liquid_cst_new_box_autoadd_connect_request() {
|
||||
return _frbgen_breez_liquid_cst_new_box_autoadd_connect_request();
|
||||
}
|
||||
|
||||
late final _frbgen_breez_liquid_cst_new_box_autoadd_connect_requestPtr =
|
||||
_lookup<
|
||||
ffi.NativeFunction<
|
||||
ffi.Pointer<wire_cst_connect_request> Function()>>(
|
||||
_lookup<ffi.NativeFunction<ffi.Pointer<wire_cst_connect_request> Function()>>(
|
||||
'frbgen_breez_liquid_cst_new_box_autoadd_connect_request');
|
||||
late final _frbgen_breez_liquid_cst_new_box_autoadd_connect_request =
|
||||
_frbgen_breez_liquid_cst_new_box_autoadd_connect_requestPtr
|
||||
.asFunction<ffi.Pointer<wire_cst_connect_request> Function()>();
|
||||
|
||||
ffi.Pointer<wire_cst_get_info_request>
|
||||
frbgen_breez_liquid_cst_new_box_autoadd_get_info_request() {
|
||||
ffi.Pointer<wire_cst_get_info_request> frbgen_breez_liquid_cst_new_box_autoadd_get_info_request() {
|
||||
return _frbgen_breez_liquid_cst_new_box_autoadd_get_info_request();
|
||||
}
|
||||
|
||||
late final _frbgen_breez_liquid_cst_new_box_autoadd_get_info_requestPtr =
|
||||
_lookup<
|
||||
ffi.NativeFunction<
|
||||
ffi.Pointer<wire_cst_get_info_request> Function()>>(
|
||||
_lookup<ffi.NativeFunction<ffi.Pointer<wire_cst_get_info_request> Function()>>(
|
||||
'frbgen_breez_liquid_cst_new_box_autoadd_get_info_request');
|
||||
late final _frbgen_breez_liquid_cst_new_box_autoadd_get_info_request =
|
||||
_frbgen_breez_liquid_cst_new_box_autoadd_get_info_requestPtr
|
||||
@@ -305,14 +272,11 @@ class FlutterBreezLiquidBindings {
|
||||
}
|
||||
|
||||
late final _frbgen_breez_liquid_cst_new_box_autoadd_prepare_receive_requestPtr =
|
||||
_lookup<
|
||||
ffi.NativeFunction<
|
||||
ffi.Pointer<wire_cst_prepare_receive_request> Function()>>(
|
||||
_lookup<ffi.NativeFunction<ffi.Pointer<wire_cst_prepare_receive_request> Function()>>(
|
||||
'frbgen_breez_liquid_cst_new_box_autoadd_prepare_receive_request');
|
||||
late final _frbgen_breez_liquid_cst_new_box_autoadd_prepare_receive_request =
|
||||
_frbgen_breez_liquid_cst_new_box_autoadd_prepare_receive_requestPtr
|
||||
.asFunction<
|
||||
ffi.Pointer<wire_cst_prepare_receive_request> Function()>();
|
||||
.asFunction<ffi.Pointer<wire_cst_prepare_receive_request> Function()>();
|
||||
|
||||
ffi.Pointer<wire_cst_prepare_receive_response>
|
||||
frbgen_breez_liquid_cst_new_box_autoadd_prepare_receive_response() {
|
||||
@@ -320,24 +284,18 @@ class FlutterBreezLiquidBindings {
|
||||
}
|
||||
|
||||
late final _frbgen_breez_liquid_cst_new_box_autoadd_prepare_receive_responsePtr =
|
||||
_lookup<
|
||||
ffi.NativeFunction<
|
||||
ffi.Pointer<wire_cst_prepare_receive_response> Function()>>(
|
||||
_lookup<ffi.NativeFunction<ffi.Pointer<wire_cst_prepare_receive_response> Function()>>(
|
||||
'frbgen_breez_liquid_cst_new_box_autoadd_prepare_receive_response');
|
||||
late final _frbgen_breez_liquid_cst_new_box_autoadd_prepare_receive_response =
|
||||
_frbgen_breez_liquid_cst_new_box_autoadd_prepare_receive_responsePtr
|
||||
.asFunction<
|
||||
ffi.Pointer<wire_cst_prepare_receive_response> Function()>();
|
||||
.asFunction<ffi.Pointer<wire_cst_prepare_receive_response> Function()>();
|
||||
|
||||
ffi.Pointer<wire_cst_prepare_send_request>
|
||||
frbgen_breez_liquid_cst_new_box_autoadd_prepare_send_request() {
|
||||
ffi.Pointer<wire_cst_prepare_send_request> frbgen_breez_liquid_cst_new_box_autoadd_prepare_send_request() {
|
||||
return _frbgen_breez_liquid_cst_new_box_autoadd_prepare_send_request();
|
||||
}
|
||||
|
||||
late final _frbgen_breez_liquid_cst_new_box_autoadd_prepare_send_requestPtr =
|
||||
_lookup<
|
||||
ffi.NativeFunction<
|
||||
ffi.Pointer<wire_cst_prepare_send_request> Function()>>(
|
||||
_lookup<ffi.NativeFunction<ffi.Pointer<wire_cst_prepare_send_request> Function()>>(
|
||||
'frbgen_breez_liquid_cst_new_box_autoadd_prepare_send_request');
|
||||
late final _frbgen_breez_liquid_cst_new_box_autoadd_prepare_send_request =
|
||||
_frbgen_breez_liquid_cst_new_box_autoadd_prepare_send_requestPtr
|
||||
@@ -349,23 +307,18 @@ class FlutterBreezLiquidBindings {
|
||||
}
|
||||
|
||||
late final _frbgen_breez_liquid_cst_new_box_autoadd_prepare_send_responsePtr =
|
||||
_lookup<
|
||||
ffi.NativeFunction<
|
||||
ffi.Pointer<wire_cst_prepare_send_response> Function()>>(
|
||||
_lookup<ffi.NativeFunction<ffi.Pointer<wire_cst_prepare_send_response> Function()>>(
|
||||
'frbgen_breez_liquid_cst_new_box_autoadd_prepare_send_response');
|
||||
late final _frbgen_breez_liquid_cst_new_box_autoadd_prepare_send_response =
|
||||
_frbgen_breez_liquid_cst_new_box_autoadd_prepare_send_responsePtr
|
||||
.asFunction<ffi.Pointer<wire_cst_prepare_send_response> Function()>();
|
||||
|
||||
ffi.Pointer<wire_cst_restore_request>
|
||||
frbgen_breez_liquid_cst_new_box_autoadd_restore_request() {
|
||||
ffi.Pointer<wire_cst_restore_request> frbgen_breez_liquid_cst_new_box_autoadd_restore_request() {
|
||||
return _frbgen_breez_liquid_cst_new_box_autoadd_restore_request();
|
||||
}
|
||||
|
||||
late final _frbgen_breez_liquid_cst_new_box_autoadd_restore_requestPtr =
|
||||
_lookup<
|
||||
ffi.NativeFunction<
|
||||
ffi.Pointer<wire_cst_restore_request> Function()>>(
|
||||
_lookup<ffi.NativeFunction<ffi.Pointer<wire_cst_restore_request> Function()>>(
|
||||
'frbgen_breez_liquid_cst_new_box_autoadd_restore_request');
|
||||
late final _frbgen_breez_liquid_cst_new_box_autoadd_restore_request =
|
||||
_frbgen_breez_liquid_cst_new_box_autoadd_restore_requestPtr
|
||||
@@ -383,8 +336,7 @@ class FlutterBreezLiquidBindings {
|
||||
_lookup<ffi.NativeFunction<ffi.Pointer<ffi.Uint32> Function(ffi.Uint32)>>(
|
||||
'frbgen_breez_liquid_cst_new_box_autoadd_u_32');
|
||||
late final _frbgen_breez_liquid_cst_new_box_autoadd_u_32 =
|
||||
_frbgen_breez_liquid_cst_new_box_autoadd_u_32Ptr
|
||||
.asFunction<ffi.Pointer<ffi.Uint32> Function(int)>();
|
||||
_frbgen_breez_liquid_cst_new_box_autoadd_u_32Ptr.asFunction<ffi.Pointer<ffi.Uint32> Function(int)>();
|
||||
|
||||
ffi.Pointer<ffi.Uint64> frbgen_breez_liquid_cst_new_box_autoadd_u_64(
|
||||
int value,
|
||||
@@ -398,8 +350,7 @@ class FlutterBreezLiquidBindings {
|
||||
_lookup<ffi.NativeFunction<ffi.Pointer<ffi.Uint64> Function(ffi.Uint64)>>(
|
||||
'frbgen_breez_liquid_cst_new_box_autoadd_u_64');
|
||||
late final _frbgen_breez_liquid_cst_new_box_autoadd_u_64 =
|
||||
_frbgen_breez_liquid_cst_new_box_autoadd_u_64Ptr
|
||||
.asFunction<ffi.Pointer<ffi.Uint64> Function(int)>();
|
||||
_frbgen_breez_liquid_cst_new_box_autoadd_u_64Ptr.asFunction<ffi.Pointer<ffi.Uint64> Function(int)>();
|
||||
|
||||
ffi.Pointer<wire_cst_list_payment> frbgen_breez_liquid_cst_new_list_payment(
|
||||
int len,
|
||||
@@ -409,16 +360,13 @@ class FlutterBreezLiquidBindings {
|
||||
);
|
||||
}
|
||||
|
||||
late final _frbgen_breez_liquid_cst_new_list_paymentPtr = _lookup<
|
||||
ffi.NativeFunction<
|
||||
ffi.Pointer<wire_cst_list_payment> Function(
|
||||
ffi.Int32)>>('frbgen_breez_liquid_cst_new_list_payment');
|
||||
late final _frbgen_breez_liquid_cst_new_list_payment =
|
||||
_frbgen_breez_liquid_cst_new_list_paymentPtr
|
||||
late final _frbgen_breez_liquid_cst_new_list_paymentPtr =
|
||||
_lookup<ffi.NativeFunction<ffi.Pointer<wire_cst_list_payment> Function(ffi.Int32)>>(
|
||||
'frbgen_breez_liquid_cst_new_list_payment');
|
||||
late final _frbgen_breez_liquid_cst_new_list_payment = _frbgen_breez_liquid_cst_new_list_paymentPtr
|
||||
.asFunction<ffi.Pointer<wire_cst_list_payment> Function(int)>();
|
||||
|
||||
ffi.Pointer<wire_cst_list_prim_u_8_strict>
|
||||
frbgen_breez_liquid_cst_new_list_prim_u_8_strict(
|
||||
ffi.Pointer<wire_cst_list_prim_u_8_strict> frbgen_breez_liquid_cst_new_list_prim_u_8_strict(
|
||||
int len,
|
||||
) {
|
||||
return _frbgen_breez_liquid_cst_new_list_prim_u_8_strict(
|
||||
@@ -426,21 +374,19 @@ class FlutterBreezLiquidBindings {
|
||||
);
|
||||
}
|
||||
|
||||
late final _frbgen_breez_liquid_cst_new_list_prim_u_8_strictPtr = _lookup<
|
||||
ffi.NativeFunction<
|
||||
ffi.Pointer<wire_cst_list_prim_u_8_strict> Function(
|
||||
ffi.Int32)>>('frbgen_breez_liquid_cst_new_list_prim_u_8_strict');
|
||||
late final _frbgen_breez_liquid_cst_new_list_prim_u_8_strictPtr =
|
||||
_lookup<ffi.NativeFunction<ffi.Pointer<wire_cst_list_prim_u_8_strict> Function(ffi.Int32)>>(
|
||||
'frbgen_breez_liquid_cst_new_list_prim_u_8_strict');
|
||||
late final _frbgen_breez_liquid_cst_new_list_prim_u_8_strict =
|
||||
_frbgen_breez_liquid_cst_new_list_prim_u_8_strictPtr.asFunction<
|
||||
ffi.Pointer<wire_cst_list_prim_u_8_strict> Function(int)>();
|
||||
_frbgen_breez_liquid_cst_new_list_prim_u_8_strictPtr
|
||||
.asFunction<ffi.Pointer<wire_cst_list_prim_u_8_strict> Function(int)>();
|
||||
|
||||
int dummy_method_to_enforce_bundling() {
|
||||
return _dummy_method_to_enforce_bundling();
|
||||
}
|
||||
|
||||
late final _dummy_method_to_enforce_bundlingPtr =
|
||||
_lookup<ffi.NativeFunction<ffi.Int64 Function()>>(
|
||||
'dummy_method_to_enforce_bundling');
|
||||
_lookup<ffi.NativeFunction<ffi.Int64 Function()>>('dummy_method_to_enforce_bundling');
|
||||
late final _dummy_method_to_enforce_bundling =
|
||||
_dummy_method_to_enforce_bundlingPtr.asFunction<int Function()>();
|
||||
}
|
||||
@@ -454,10 +400,8 @@ final class WireSyncRust2DartSse extends ffi.Struct {
|
||||
external int len;
|
||||
}
|
||||
|
||||
typedef DartPostCObjectFnType
|
||||
= ffi.Pointer<ffi.NativeFunction<DartPostCObjectFnTypeFunction>>;
|
||||
typedef DartPostCObjectFnTypeFunction = ffi.Bool Function(
|
||||
DartPort port_id, ffi.Pointer<ffi.Void> message);
|
||||
typedef DartPostCObjectFnType = ffi.Pointer<ffi.NativeFunction<DartPostCObjectFnTypeFunction>>;
|
||||
typedef DartPostCObjectFnTypeFunction = ffi.Bool Function(DartPort port_id, ffi.Pointer<ffi.Void> message);
|
||||
typedef DartDartPostCObjectFnTypeFunction = bool Function(
|
||||
DartDartPort port_id, ffi.Pointer<ffi.Void> message);
|
||||
typedef DartPort = ffi.Int64;
|
||||
|
||||
Reference in New Issue
Block a user