Skip to content

Commit

Permalink
Remove old NFT mint and verify commands (ordinals#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Sep 1, 2022
1 parent a4f8973 commit d3ed942
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 261 deletions.
66 changes: 7 additions & 59 deletions Cargo.lock

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

2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ autotests = false

[dependencies]
anyhow = { version = "1.0.56", features = ["backtrace"] }
async-rustls = "0.2.0"
axum = "0.5.6"
axum-server = "0.4.0"
bitcoin = "0.28.1"
Expand All @@ -30,7 +29,6 @@ rust-embed = "6.4.0"
rustls = "0.20.6"
rustls-acme = { version = "0.5.0", features = ["axum"] }
serde = { version = "1.0.137", features = ["derive"] }
serde_cbor = "0.11.2"
serde_json = "1.0.81"
sys-info = "0.9.1"
tokio = { version = "1.17.0", features = ["rt-multi-thread"] }
Expand Down
15 changes: 5 additions & 10 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ use {
epoch::Epoch,
height::Height,
index::{Index, List},
nft::Nft,
options::Options,
ordinal::Ordinal,
purse::Purse,
Expand All @@ -34,14 +33,12 @@ use {
blockdata::{constants::COIN_VALUE, transaction::TxOut},
consensus::{Decodable, Encodable},
hash_types::BlockHash,
hashes::{sha256, sha256d, Hash, HashEngine},
hashes::{sha256d, Hash},
secp256k1::{
self,
rand::{self, thread_rng},
schnorr::Signature,
KeyPair, Secp256k1, XOnlyPublicKey,
rand::{self},
Secp256k1,
},
util::{key::PrivateKey, psbt::PartiallySignedTransaction},
util::psbt::PartiallySignedTransaction,
Address, Block, Network, OutPoint, Transaction, Txid,
},
chrono::{DateTime, NaiveDateTime, Utc},
Expand All @@ -54,8 +51,7 @@ use {
collections::VecDeque,
env,
fmt::{self, Display, Formatter},
fs,
io::{self, Write},
fs, io,
net::ToSocketAddrs,
ops::{Add, AddAssign, Deref, Sub},
path::{Path, PathBuf},
Expand Down Expand Up @@ -98,7 +94,6 @@ mod degree;
mod epoch;
mod height;
mod index;
mod nft;
mod options;
mod ordinal;
mod purse;
Expand Down
88 changes: 0 additions & 88 deletions src/nft.rs

This file was deleted.

6 changes: 0 additions & 6 deletions src/subcommand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@ mod find;
mod index;
mod info;
mod list;
mod mint;
mod name;
mod range;
mod server;
mod supply;
mod traits;
mod verify;
mod wallet;

#[derive(Debug, Parser)]
Expand All @@ -21,13 +19,11 @@ pub(crate) enum Subcommand {
Index,
Info,
List(list::List),
Mint(mint::Mint),
Name(name::Name),
Range(range::Range),
Server(server::Server),
Supply,
Traits(traits::Traits),
Verify(verify::Verify),
#[clap(subcommand)]
Wallet(wallet::Wallet),
}
Expand All @@ -40,13 +36,11 @@ impl Subcommand {
Self::Index => index::run(options),
Self::Info => info::run(options),
Self::List(list) => list.run(options),
Self::Mint(mint) => mint.run(),
Self::Name(name) => name.run(),
Self::Range(range) => range.run(),
Self::Server(server) => server.run(options),
Self::Supply => supply::run(),
Self::Traits(traits) => traits.run(),
Self::Verify(verify) => verify.run(),
Self::Wallet(wallet) => wallet.run(options),
}
}
Expand Down
33 changes: 0 additions & 33 deletions src/subcommand/mint.rs

This file was deleted.

Loading

0 comments on commit d3ed942

Please sign in to comment.