Skip to content

Commit

Permalink
refactor(cli): separate address command to tool
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperFluffy committed Nov 12, 2024
1 parent d387f5f commit 5503c05
Show file tree
Hide file tree
Showing 8 changed files with 676 additions and 60 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace]
exclude = ["tools/protobuf-compiler", "tools/solidity-compiler"]
exclude = ["tools/protobuf-compiler", "tools/solidity-compiler", "tools/astria-address"]

members = [
"crates/astria-bridge-contracts",
Expand Down
55 changes: 0 additions & 55 deletions crates/astria-cli/src/sequencer/address.rs

This file was deleted.

4 changes: 0 additions & 4 deletions crates/astria-cli/src/sequencer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use clap::Subcommand;
use color_eyre::eyre;

mod account;
mod address;
mod balance;
mod block_height;
mod bridge_account;
Expand All @@ -26,7 +25,6 @@ impl Command {
pub(super) async fn run(self) -> eyre::Result<()> {
match self.command {
SubCommand::Account(account) => account.run().await,
SubCommand::Address(address) => address.run(),
SubCommand::Balance(balance) => balance.run().await,
SubCommand::BlockHeight(block_height) => block_height.run().await,
SubCommand::BridgeLock(bridge_lock) => bridge_lock.run().await,
Expand All @@ -48,8 +46,6 @@ impl Command {
enum SubCommand {
/// Commands for interacting with Sequencer accounts
Account(account::Command),
/// Utilities for constructing and inspecting sequencer addresses
Address(address::Command),
/// Commands for interacting with Sequencer balances
Balance(balance::Command),
/// Commands for interacting with Sequencer block heights
Expand Down
Loading

0 comments on commit 5503c05

Please sign in to comment.