-
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add new bifrost messages for new lnpbp feature "swap". * implement `swapd` for performing swap. * launch `swapd` from `lnpd` and enable user to perform swap via RPC.
- Loading branch information
1 parent
35f921e
commit c915b43
Showing
26 changed files
with
1,243 additions
and
97 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#![recursion_limit = "256"] | ||
// Coding conventions | ||
#![deny( | ||
non_upper_case_globals, | ||
non_camel_case_types, | ||
non_snake_case, | ||
unused_mut, | ||
unused_imports, | ||
dead_code, | ||
missing_docs | ||
)] | ||
//! Main executable for swapd: microservice for performing submarine swap. | ||
//! transactions. | ||
|
||
#[macro_use] | ||
extern crate log; | ||
|
||
use clap::Parser; | ||
use lnp_node::swapd::Opts; | ||
use lnp_node::Config; | ||
|
||
fn main() { | ||
println!("swapd: submarine swap service"); | ||
|
||
let mut opts = Opts::parse(); | ||
trace!("Command-line arguments: {:?}", &opts); | ||
opts.process(); | ||
trace!("Processed arguments: {:?}", &opts); | ||
|
||
let config: Config = opts.clone().into(); | ||
trace!("Daemon configuration: {:?}", &config); | ||
debug!("MSG RPC socket {}", &config.msg_endpoint); | ||
debug!("CTL RPC socket {}", &config.ctl_endpoint); | ||
|
||
debug!("Starting runtime ..."); | ||
// swapd::run(config).expect("Error running swapd runtime"); | ||
|
||
todo!(); | ||
unreachable!() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.