ghost-eye/src/action.rs
Uncle Stretch 9e911fce01
added ability to rename existing wallet
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
2024-12-03 19:56:47 +03:00

77 lines
1.7 KiB
Rust

use serde::{Deserialize, Serialize};
use strum::Display;
use subxt::utils::H256;
use subxt::config::substrate::DigestItem;
use crate::{
types::{EraInfo, CasperExtrinsicDetails},
};
use subxt::utils::AccountId32;
#[derive(Debug, Clone, PartialEq, Eq, Display, Serialize, Deserialize)]
pub enum Action {
Tick,
Render,
Resize(u16, u16),
Suspend,
Resume,
Quit,
ClearScreen,
Error(String),
Help,
SetMode(crate::app::Mode),
SetActiveScreen(crate::app::Mode),
UsedExplorerBlock(Option<u32>),
UsedExplorerLog(Option<String>),
UsedAccount(AccountId32),
NewAccount(String),
RenameAccount(String),
UpdateAccountName(String),
NewBestBlock(u32),
NewBestHash(H256),
NewFinalizedBlock(u32),
NewFinalizedHash(H256),
BestBlockUpdated(u32),
ExtrinsicsLength(u32, usize),
GetBlockAuthor(H256, Vec<DigestItem>),
SetBlockAuthor(H256, String),
GetNodeName,
GetSystemHealth,
GetGenesisHash,
GetChainName,
GetChainVersion,
GetPendingExtrinsics,
GetLatestBlock,
GetFinalizedBlock,
GetActiveEra,
GetEpochProgress,
GetValidators,
SetNodeName(Option<String>),
SetSystemHealth(Option<usize>, bool, bool),
SetGenesisHash(Option<H256>),
SetChainName(Option<String>),
SetChainVersion(Option<String>),
BestBlockInformation(H256, u32),
FinalizedBlockInformation(H256, u32),
ExtrinsicsForBlock(u32, Vec<CasperExtrinsicDetails>),
SetActiveEra(EraInfo),
SetEpochProgress(u64, u64),
SetPendingExtrinsicsLength(usize),
GetTotalIssuance,
GetExistentialDeposit,
SetExistentialDeposit(u128),
SetTotalIssuance(u128),
}