From c7f762e83c84c368fedae94363f3222167471364 Mon Sep 17 00:00:00 2001 From: 223880 Date: Fri, 21 Jun 2024 07:34:02 -0300 Subject: [PATCH] Add fee for RBF and UTXOs --- src/lending/fee.rs | 58 ++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 56 insertions(+), 2 deletions(-) diff --git a/src/lending/fee.rs b/src/lending/fee.rs index 1997fe4..29bbb30 100644 --- a/src/lending/fee.rs +++ b/src/lending/fee.rs @@ -1,4 +1,58 @@ -use crate::RBF; +use bitcoin::BumpFee:::RBF; -impl RBF = { +fn main() { + let mut rbf = RBF::new(); +} + +fn bump_fee() { + let mut rbf = RBF::new(); + rbf.bump_fee(); +} + +fn bump_fee_with_conf() { + let mut rbf = RBF::new(); + rbf.bump_fee_with_conf(); +} +fn bump_fee_with_conf_and_utxo() { + let mut rbf = RBF::new(); + rbf.bump_fee_with_conf_and_utxo(); +} +fn bump_fee_with_conf_and_utxo_and_utxo_provider() { + let mut rbf = RBF::new(); + rbf.bump_fee_with_conf_and_utxo_and_utxo_provider(); +} + +fn get_utxo_provider() { + let mut rbf = RBF::new(); + rbf.get_utxo_provider(); +} + +fn set_utxo_provider() { + let mut rbf = RBF::new(); + rbf.set_utxo_provider(); +} + +fn set_utxo_provider_with_conf() { + let mut rbf = RBF::new(); + rbf.set_utxo_provider_with_conf(); +} + +fn set_utxo_provider_with_conf_and_utxo() { + let mut rbf = RBF::new(); + rbf.set_utxo_provider_with_conf_and_utxo(); +} + +fn set_utxo_provider_with_conf_and_utxo_and_utxo_provider() { + let mut rbf = RBF::new(); + rbf.set_utxo_provider_with_conf_and_utxo_and_utxo_provider(); +} +impl RBF { + pub fn new() -> Self { + RBF + } +} +impl bump_fee { + pub fn new() -> Self { + bump_fee + } }