ord 0.27.1

◉ Ordinal wallet and block explorer
Documentation
use super::*;

pub mod accept;
pub mod create;

#[derive(Debug, Parser)]
pub(crate) enum Offer {
  #[command(about = "Accept offer to buy inscription")]
  Accept(accept::Accept),
  #[command(about = "Create offer to buy inscription")]
  Create(create::Create),
}

impl Offer {
  pub(crate) fn run(self, wallet: Wallet) -> SubcommandResult {
    match self {
      Self::Accept(accept) => accept.run(wallet),
      Self::Create(create) => create.run(wallet),
    }
  }
}