Expose fees for review + auto accept

This commit is contained in:
Daniel Granhão
2024-12-20 13:36:30 +00:00
parent 08f0fd26cc
commit 351473a41e
30 changed files with 1195 additions and 367 deletions

View File

@@ -4642,6 +4642,10 @@ final class wire_cst_SdkEvent_PaymentWaitingConfirmation extends ffi.Struct {
external ffi.Pointer<wire_cst_payment> details;
}
final class wire_cst_SdkEvent_PaymentWaitingFeeAcceptance extends ffi.Struct {
external ffi.Pointer<wire_cst_payment> details;
}
final class SdkEventKind extends ffi.Union {
external wire_cst_SdkEvent_PaymentFailed PaymentFailed;
@@ -4654,6 +4658,8 @@ final class SdkEventKind extends ffi.Union {
external wire_cst_SdkEvent_PaymentSucceeded PaymentSucceeded;
external wire_cst_SdkEvent_PaymentWaitingConfirmation PaymentWaitingConfirmation;
external wire_cst_SdkEvent_PaymentWaitingFeeAcceptance PaymentWaitingFeeAcceptance;
}
final class wire_cst_sdk_event extends ffi.Struct {
@@ -4708,6 +4714,8 @@ final class wire_cst_config extends ffi.Struct {
@ffi.Bool()
external bool use_default_external_input_parsers;
external ffi.Pointer<ffi.Uint32> onchain_fee_rate_leeway_sat_per_vbyte;
}
final class wire_cst_connect_request extends ffi.Struct {
@@ -5367,6 +5375,8 @@ typedef DartUniFfiRustFutureContinuationFunction = void Function(ffi.Pointer<ffi
const int ESTIMATED_BTC_CLAIM_TX_VSIZE = 111;
const int ESTIMATED_BTC_LOCKUP_TX_VSIZE = 154;
const double STANDARD_FEE_RATE_SAT_PER_VBYTE = 0.1;
const double LOWBALL_FEE_RATE_SAT_PER_VBYTE = 0.01;