Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
223880 committed Jun 29, 2024
1 parent 1747386 commit 4c45906
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 7 deletions.
9 changes: 9 additions & 0 deletions src/bin/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[package]

name = "Bin"
version = "0.1.0"
edition = "2021"

[dependencies]

log = "0.4"
31 changes: 24 additions & 7 deletions src/bin/lightning_lendingd.rs
Original file line number Diff line number Diff line change
@@ -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);

}

0 comments on commit 4c45906

Please sign in to comment.