Skip to content

Commit

Permalink
Add Serialized trait
Browse files Browse the repository at this point in the history
  • Loading branch information
grunch committed Jul 25, 2023
1 parent fd3dce4 commit 020d12b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ BITCOIN_EXPLORER_API_REGTEST=http://localhost:3000/regtest/api
# BITCOIN_ELECTRUM_API_MAINNET=mempool.space:50001
# BITCOIN_ELECTRUM_API_TESTNET=mempool.space:60001
# BITCOIN_ELECTRUM_API_SIGNET=mempool.space:60601
LNDHUB_ENDPOINT=https://lndhubx.bitmask.app
LNDHUB_ENDPOINT=https://lndhubx-prod.bitmask.app
#LNDHUB_ENDPOINT=https://lndhubx.bitmask.app
# CARBONADO_ENDPOINT=https://qvijq4x0ei.execute-api.us-east-2.amazonaws.com/dev/carbonado
BITMASK_ENDPOINT=http://localhost:7071
CARBONADO_ENDPOINT=http://localhost:7070/carbonado
Expand Down
6 changes: 3 additions & 3 deletions src/lightning.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,13 @@ pub struct PayInvoiceResponse {
}

/// Check payment response
#[derive(Debug, Deserialize)]
#[derive(Debug, Serialize, Deserialize)]
pub struct CheckPaymentResponse {
paid: bool,
}

/// Swap BTC onchain to Lightning response
#[derive(Debug, Deserialize)]
#[derive(Debug, Serialize, Deserialize)]
pub struct SwapBtcLnResponse {
pub address: String,
pub commitment: String,
Expand All @@ -148,7 +148,7 @@ pub struct SwapLnBTCRequest {
}

/// Swap Lightning to BTC onchain response
#[derive(Debug, Deserialize)]
#[derive(Debug, Serialize, Deserialize)]
pub struct SwapLnBtcResponse {
pub bolt11_invoice: String,
pub fee_sats: u32,
Expand Down

0 comments on commit 020d12b

Please sign in to comment.