Add zero-amount Receive Chain Swap (#538)

Add support for Zero-Amount Receive Chain Swaps
This commit is contained in:
ok300
2024-12-09 16:10:52 +00:00
committed by GitHub
parent 790dfa91be
commit cfc883ae00
20 changed files with 571 additions and 60 deletions

View File

@@ -8,7 +8,7 @@ use boltz_client::{
SubmarinePair, SwapTree,
},
util::secrets::Preimage,
PublicKey,
Amount, PublicKey,
};
use sdk_common::invoice::parse_invoice;
@@ -313,4 +313,16 @@ impl Swapper for MockSwapper {
fn get_bolt12_invoice(&self, _offer: &str, _amount_sat: u64) -> Result<String, PaymentError> {
unimplemented!()
}
fn get_zero_amount_chain_swap_quote(&self, swap_id: &str) -> Result<Amount, PaymentError> {
unimplemented!()
}
fn accept_zero_amount_chain_swap_quote(
&self,
_swap_id: &str,
_server_lockup_sat: u64,
) -> Result<(), PaymentError> {
unimplemented!()
}
}