Skip to content

Commit

Permalink
Remove BDK wallet (ordinals#566)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored Sep 27, 2022
1 parent 1f94e94 commit e1e25f8
Show file tree
Hide file tree
Showing 18 changed files with 16 additions and 1,137 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ autotests = false
anyhow = { version = "1.0.56", features = ["backtrace"] }
axum = "0.5.6"
axum-server = "0.4.0"
bdk = { version = "0.22.0", features = ["rpc", "keys-bip39", "sqlite"] }
bitcoin = "0.28.1"
bitcoincore-rpc = "0.15.0"
boilerplate = { version = "0.2.0", features = ["axum"] }
Expand Down Expand Up @@ -54,6 +53,7 @@ pretty_assertions = "1.2.1"
reqwest = { version = "0.11.10", features = ["blocking"] }
tempfile = "3.2.0"
unindent = "0.1.7"
bdk = { version = "0.22.0", features = ["rpc", "keys-bip39", "sqlite"] }

[[test]]
name = "integration"
Expand Down
21 changes: 2 additions & 19 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,35 +11,19 @@ use {
index::{Index, List},
options::Options,
ordinal::Ordinal,
purse::Purse,
rarity::Rarity,
sat_point::SatPoint,
subcommand::Subcommand,
},
anyhow::{anyhow, bail, Context, Error},
axum::{extract, http::StatusCode, response::Html, response::IntoResponse, routing::get, Router},
axum_server::Handle,
bdk::{
blockchain::rpc::{RpcBlockchain, RpcConfig},
blockchain::{Blockchain, ConfigurableBlockchain},
database::SqliteDatabase,
keys::bip39::{Language, Mnemonic},
template::Bip84,
wallet::{signer::SignOptions, AddressIndex::LastUnused},
wallet::{wallet_name_from_descriptor, SyncOptions},
FeeRate, KeychainKind, LocalUtxo,
},
bitcoin::{
blockdata::{constants::COIN_VALUE, transaction::TxOut},
blockdata::constants::COIN_VALUE,
consensus::{Decodable, Encodable},
hash_types::BlockHash,
hashes::Hash,
secp256k1::{
rand::{self},
Secp256k1,
},
util::psbt::PartiallySignedTransaction,
Address, Block, Network, OutPoint, Transaction, Txid,
Block, Network, OutPoint, Transaction, Txid,
},
chrono::{DateTime, NaiveDateTime, Utc},
clap::Parser,
Expand Down Expand Up @@ -84,7 +68,6 @@ mod height;
mod index;
mod options;
mod ordinal;
mod purse;
mod rarity;
mod sat_point;
mod subcommand;
Expand Down
121 changes: 0 additions & 121 deletions src/purse.rs

This file was deleted.

4 changes: 0 additions & 4 deletions src/subcommand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ mod range;
mod server;
mod supply;
mod traits;
mod wallet;

#[derive(Debug, Parser)]
pub(crate) enum Subcommand {
Expand All @@ -24,8 +23,6 @@ pub(crate) enum Subcommand {
Server(server::Server),
Supply,
Traits(traits::Traits),
#[clap(subcommand)]
Wallet(wallet::Wallet),
}

impl Subcommand {
Expand All @@ -46,7 +43,6 @@ impl Subcommand {
}
Self::Supply => supply::run(),
Self::Traits(traits) => traits.run(),
Self::Wallet(wallet) => wallet.run(options),
}
}
}
31 changes: 0 additions & 31 deletions src/subcommand/wallet.rs

This file was deleted.

6 changes: 0 additions & 6 deletions src/subcommand/wallet/balance.rs

This file was deleted.

12 changes: 0 additions & 12 deletions src/subcommand/wallet/fund.rs

This file was deleted.

36 changes: 0 additions & 36 deletions src/subcommand/wallet/identify.rs

This file was deleted.

5 changes: 0 additions & 5 deletions src/subcommand/wallet/init.rs

This file was deleted.

Loading

0 comments on commit e1e25f8

Please sign in to comment.