feat: add lowball broadcast support with API key for all transaction types (#489)

This commit is contained in:
yse
2024-09-20 13:04:49 +02:00
committed by GitHub
parent 2446751bc4
commit 189e257f89
21 changed files with 250 additions and 135 deletions

View File

@@ -234,6 +234,7 @@ fun asConfig(config: ReadableMap): Config? {
} else {
null
}
val breezApiKey = if (hasNonNullKey(config, "breezApiKey")) config.getString("breezApiKey") else null
return Config(
liquidElectrumUrl,
bitcoinElectrumUrl,
@@ -243,6 +244,7 @@ fun asConfig(config: ReadableMap): Config? {
paymentTimeoutSec,
zeroConfMinFeeRateMsat,
zeroConfMaxAmountSat,
breezApiKey,
)
}
@@ -256,6 +258,7 @@ fun readableMapOf(config: Config): ReadableMap =
"paymentTimeoutSec" to config.paymentTimeoutSec,
"zeroConfMinFeeRateMsat" to config.zeroConfMinFeeRateMsat,
"zeroConfMaxAmountSat" to config.zeroConfMaxAmountSat,
"breezApiKey" to config.breezApiKey,
)
fun asConfigList(arr: ReadableArray): List<Config> {