diff --git a/src/bin/Cargo.toml b/src/bin/Cargo.toml new file mode 100644 index 0000000..04323ad --- /dev/null +++ b/src/bin/Cargo.toml @@ -0,0 +1,9 @@ +[package] + +name = "Bin" +version = "0.1.0" +edition = "2021" + +[dependencies] + +log = "0.4" \ No newline at end of file diff --git a/src/bin/lightning_lendingd.rs b/src/bin/lightning_lendingd.rs index 75e2aaf..7cf7fc0 100644 --- a/src/bin/lightning_lendingd.rs +++ b/src/bin/lightning_lendingd.rs @@ -1,13 +1,30 @@ -use crate::lightning_lending; +extern crate lightning; +extern crate dlc; +extern crate nostr; use lightning::{ln::peer_channel::ChannelDetails, util::logger::Logger}; use dlc::{contract::Contract, payout_curve::PayoutCurve}; use nostr::{self, NodeClient}; - -use lightning_lending::{ - bitcoin::Bitcoin, - nostr::Nostr, - dlc::Dlc, - lightning::Lightning, +use crate::lightning_lending::{ + bitcoin::Bitcoin, + nostr::Nostr, + dlc::Dlc, + lightning::Lightning, }; + +fn main() { + + let logger = Logger::new(); + + // Assuming these `new` methods exist and accept a logger + let lightning = Lightning::new(&logger); + let bitcoin = Bitcoin::new(&logger); + let dlc = Dlc::new(&logger); + let nostr = Nostr::new(&logger); + let contract = Contract::new(&logger); + let payout_curve = PayoutCurve::new(&logger); + let node_client = NodeClient::new(&logger); + +} +