Skip to content

Commit

Permalink
Merge pull request #58 from rustaceanrob/imports-09-26
Browse files Browse the repository at this point in the history
fix(examples): no direct `kyoto` dependency
  • Loading branch information
rustaceanrob authored Sep 27, 2024
2 parents 03ccae1 + cbb8c32 commit 7694ab2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions examples/signet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ use bdk_chain::{
IndexedTxGraph, SpkIterator,
};
use bdk_kyoto::logger::PrintLogger;
use bdk_kyoto::Client;
use kyoto::chain::checkpoints::HeaderCheckpoint;
use kyoto::core::builder::NodeBuilder;
use bdk_kyoto::{Client, HeaderCheckpoint, NodeBuilder};

const TARGET_INDEX: u32 = 20;

Expand Down
2 changes: 1 addition & 1 deletion examples/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ use std::net::{IpAddr, Ipv4Addr};

use bdk_kyoto::builder::LightClientBuilder;
use bdk_kyoto::logger::TraceLogger;
use bdk_kyoto::{ServiceFlags, TrustedPeer};
use bdk_wallet::bitcoin::Network;
use bdk_wallet::{KeychainKind, Wallet};
use kyoto::{ServiceFlags, TrustedPeer};

/// Peer address whitelist
const PEERS: &[IpAddr] = &[IpAddr::V4(Ipv4Addr::new(23, 137, 57, 100))];
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ pub mod logger;
pub use bdk_chain::local_chain::MissingGenesisError;
pub use kyoto::{
ClientError, DatabaseError, HeaderCheckpoint, Node, NodeBuilder, NodeMessage, NodeState,
Receiver, ScriptBuf, Transaction, TrustedPeer, TxBroadcastPolicy, Txid, Warning,
Receiver, ScriptBuf, ServiceFlags, Transaction, TrustedPeer, TxBroadcastPolicy, Txid, Warning,
MAINNET_HEADER_CP, SIGNET_HEADER_CP,
};

Expand Down

0 comments on commit 7694ab2

Please sign in to comment.