Skip to content

Commit

Permalink
Release v0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed May 23, 2022
1 parent 1244ec9 commit e81e693
Show file tree
Hide file tree
Showing 11 changed files with 40 additions and 58 deletions.
23 changes: 11 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 7 additions & 14 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ members = [".", "rpc", "cli"]
[package]
name = "lnp_node"
description = "LNP node"
version = "0.6.0-beta.2"
version = "0.6.0"
authors = ["Dr. Maxim Orlovsky <[email protected]>"]
license = "MIT"
keywords = ["bitcoin", "bifi", "lightning-network", "smart-contracts", "lnp"]
edition = "2018"
readme = "README.md"
build = "build.rs"
exclude = [".github", "Dockerfile", ".dockerignore", "cli", "rpc", "shell", "contrib", "doc"]
exclude = [".github", "Dockerfile", ".dockerignore", "contrib", "doc"]

[lib]
name = "lnp_node"
Expand Down Expand Up @@ -45,17 +45,10 @@ required-features = ["server"]
# LNP/BP crates
amplify = "3.12.0"
strict_encoding = { version = "1.8.1", features = ["miniscript"] }
descriptor-wallet = { version = "0.6.1", features = ["keygen"] }
# >>> Remove from here all crates upon descriptor-wallet 0.6 release
psbt = { version = "0.6.0", features = ["sign"] }
descriptors = "0.6.0"
bitcoin_onchain = { version = "0.6.0", features = ["electrum"] }
bitcoin_hd = "0.6.0"
slip132 = "0.6.0"
# <<<
descriptor-wallet = { version = "0.6.1", features = ["keygen", "miniscript", "electrum"] }
lnpbp = "0.6.0"
lnp-core = { version = "0.6.0-beta.2", git = "https://github.com/LNP-BP/lnp-core" }
lnp_rpc = { version = "0.6.0-beta.2", path = "./rpc" }
lnp-core = "0.6.0"
lnp_rpc = { version = "0.6.0", path = "./rpc" }
internet2 = { version = "0.6.1", features = ["keygen", "url"] }
microservices = { version = "0.6.1", default-features = false, features = ["node", "peer"] }
# Bitcoin
Expand Down Expand Up @@ -86,8 +79,8 @@ amplify = "3.12.0"
lnpbp = "0.6.0"
bitcoin = "0.28.1"
lightning-invoice = "0.14.0"
lnp-core = { version = "0.6.0-beta.2", git = "https://github.com/LNP-BP/lnp-core" }
lnp_rpc = { version = "0.6.0-beta.2", path = "./rpc" }
lnp-core = "0.6.0"
lnp_rpc = { version = "0.6.0", path = "./rpc" }
internet2 = "0.6.1"
microservices = { version = "0.6.1", default-features = false, features = ["peer"] }
clap = { version = "3.1", features = ["env"] }
Expand Down
9 changes: 0 additions & 9 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
// along with this software.
// If not, see <https://opensource.org/licenses/MIT>.

#[macro_use]
extern crate amplify;
#[macro_use]
extern crate clap;

Expand All @@ -25,12 +23,6 @@ pub mod opts {
include!("src/opts.rs");
}

pub mod cli {
pub mod lnp_node {
pub use crate::opts;
}
include!("cli/src/opts.rs");
}
pub mod lnpd {
include!("src/lnpd/opts.rs");
}
Expand Down Expand Up @@ -60,7 +52,6 @@ fn main() -> Result<(), configure_me_codegen::Error> {
watchd::Opts::command(),
routed::Opts::command(),
signd::Opts::command(),
cli::Opts::command(),
]
.iter_mut()
{
Expand Down
8 changes: 4 additions & 4 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "lnp-cli"
description = "LNP node command-line interface"
version = "0.6.0-beta.2"
version = "0.6.0"
authors = ["Dr. Maxim Orlovsky <[email protected]>"]
license = "MIT"
keywords = ["bitcoin", "node", "lightning-network", "smart-contracts", "lnp"]
Expand All @@ -15,10 +15,10 @@ name = "lnp-cli"

[dependencies]
amplify = "3.12.0"
lnp-core = { version = "0.6.0-beta.2", git = "https://github.com/LNP-BP/lnp-core" }
lnp_rpc = { version = "0.6.0-beta.2", path = "../rpc" }
lnp-core = "0.6.0"
lnp_rpc = { version = "0.6.0", path = "../rpc" }
lightning-invoice = "0.14.0"
internet2 = "0.6.1"
microservices = { version = "0.6.1", default-features = false, features = ["cli"] }
clap = { version = "3.1", features = ["derive"] }
clap = { version = "3.1", features = ["derive", "env"] }
log = "0.4.14"
6 changes: 3 additions & 3 deletions rpc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "lnp_rpc"
description = "LNP node RPC API"
version = "0.6.0-beta.2"
version = "0.6.0"
authors = ["Dr. Maxim Orlovsky <[email protected]>"]
license = "MIT"
keywords = ["bitcoin", "node", "lightning-network", "smart-contracts", "rpc"]
Expand All @@ -14,12 +14,12 @@ name = "lnp_rpc"
[dependencies]
amplify = "3.12.0"
strict_encoding = "1.8.1"
lnp-core = { version = "0.6.0-beta.2", git = "https://github.com/LNP-BP/lnp-core" }
lnp-core = "0.6.0"
lnpbp = "0.6.0"
bitcoin = { version = "0.28.1", features = ["rand"] }
lightning-invoice = "0.14.0"
internet2 = "0.6.1"
microservices = { version = "0.6.1", default-features = false }
microservices = { version = "0.6.1", default-features = false, features = ["client"] }
descriptor-wallet = "0.6.1"
serde_crate = { package = "serde", version = "1", features = ["derive"], optional = true }
serde_with = { version = "1.8", optional = true }
Expand Down
3 changes: 1 addition & 2 deletions rpc/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ use std::time::Duration;

use colored::Colorize;
use internet2::ZmqType;
use microservices::esb;
use microservices::esb::BusId;
use microservices::esb::{self, BusId};

use crate::{BusMsg, ClientId, Error, OptionDetails, RpcMsg, ServiceId};

Expand Down
4 changes: 2 additions & 2 deletions src/bin/lnpd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ fn init(config: &Config, key_path: &Path) -> Result<(), Error> {

use bitcoin::secp256k1::Secp256k1;
use bitcoin::util::bip32::{ChildNumber, DerivationPath, ExtendedPrivKey};
use bitcoin_hd::{TerminalStep, TrackingAccount};
use lnp_node::lnpd::funding::FundingWallet;
use lnp_node::{LNP_NODE_FUNDING_WALLET, LNP_NODE_MASTER_KEY_FILE};
use miniscript::descriptor::{Descriptor, Wpkh};
use psbt::sign::MemorySigningAccount;
use wallet::hd::{TerminalStep, TrackingAccount};
use wallet::psbt::sign::MemorySigningAccount;

let secp = Secp256k1::new();
let chain_index = config.chain.chain_params().is_testnet as u16;
Expand Down
2 changes: 1 addition & 1 deletion src/bus/ctl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ use lnp::channel::bolt::{CommonParams, LocalKeyset, PeerParams, Policy};
use lnp::p2p::legacy::{ChannelId, OpenChannel, PaymentOnion};
use lnp::router::gossip::LocalChannelInfo;
use lnp_rpc::{ChannelInfo, Failure, OptionDetails, PeerInfo};
use psbt::Psbt;
use strict_encoding::{NetworkDecode, NetworkEncode};
use wallet::hlc::HashLock;
use wallet::psbt::Psbt;
use wallet::scripts::PubkeyScript;

use crate::rpc::{ClientId, ServiceId};
Expand Down
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use bitcoin::util::bip32;
use internet2::{presentation, transport};
use lnp::router;
use microservices::esb;
use psbt::sign::SignError;
use wallet::psbt::sign::SignError;

use crate::bus::ServiceBus;
use crate::channeld;
Expand Down
18 changes: 9 additions & 9 deletions src/lnpd/funding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,22 @@ use amplify::{IoError, Slice32, Wrapper};
use bitcoin::secp256k1::{self, Secp256k1};
use bitcoin::util::bip32::ChildNumber;
use bitcoin::{Address, EcdsaSighashType, Network, OutPoint, Txid};
use bitcoin_hd::{
DerivationSubpath, DeriveError, Descriptor as DescriptorExt, SegmentIndexes, TrackingAccount,
UnhardenedIndex,
};
use bitcoin_onchain::{ResolveUtxo, UtxoResolverError};
use descriptors::locks::{LockTime, SeqNo};
use descriptors::InputDescriptor;
use electrum_client::{Client as ElectrumClient, ElectrumApi};
use lnp::channel::PsbtLnpFunding;
use lnp::p2p::legacy::TempChannelId;
use lnpbp::chain::{Chain, ConversionImpossibleError};
use miniscript::psbt::PsbtExt;
use miniscript::{Descriptor, DescriptorTrait, ForEachKey};
use psbt::construct::Construct;
use psbt::Psbt;
use strict_encoding::{StrictDecode, StrictEncode};
use wallet::descriptors::locks::{LockTime, SeqNo};
use wallet::descriptors::InputDescriptor;
use wallet::hd::{
DerivationSubpath, DeriveError, Descriptor as DescriptorExt, SegmentIndexes, TrackingAccount,
UnhardenedIndex,
};
use wallet::onchain::{ResolveUtxo, UtxoResolverError};
use wallet::psbt::construct::Construct;
use wallet::psbt::Psbt;
use wallet::scripts::PubkeyScript;

// The default fee rate is 2 sats per kilo-vbyte
Expand Down
2 changes: 1 addition & 1 deletion src/signd/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ use lnp::channel::bolt::LocalKeyset;
use lnp::p2p::legacy::ChannelId;
use lnpbp::chain::Chain;
use microservices::esb::{self, Handler};
use psbt::sign::{MemoryKeyProvider, MemorySigningAccount, SecretProvider, SignAll};
use strict_encoding::StrictDecode;
use wallet::psbt::sign::{MemoryKeyProvider, MemorySigningAccount, SecretProvider, SignAll};

use crate::bus::{BusMsg, CtlMsg, ServiceBus};
use crate::rpc::ServiceId;
Expand Down

0 comments on commit e81e693

Please sign in to comment.