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 39d10c4
Show file tree
Hide file tree
Showing 10 changed files with 695 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
4 changes: 4 additions & 0 deletions crates/astria-cli/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed ICS20 withdrawal source when using channel with more than one
port/channel combo. [#1768](https://github.com/astriaorg/astria/pull/1768)

### Removed

- Removed `sequeuncer address` subcommand [#1803](https://github.com/astriaorg/astria/pull/1803)

## [0.5.1] - 2024-10-23

### Added
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
15 changes: 15 additions & 0 deletions tools/astria-address/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!-- markdownlint-disable no-duplicate-heading -->

# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Added

- Initial release [#1803](https://github.com/astriaorg/astria/pull/1803)

Loading

0 comments on commit 39d10c4

Please sign in to comment.