Skip to content

Commit

Permalink
Update cli output format for game account
Browse files Browse the repository at this point in the history
  • Loading branch information
DogLooksGood committed Nov 18, 2024
1 parent b70e29f commit fe17025
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,26 +282,25 @@ async fn game_info(addr: &str, transport: Arc<dyn TransportT>) {
println!("Title: {}", game_account.title);
println!("Game bundle: {}", game_account.bundle_addr);
println!("Token address: {}", game_account.token_addr);
println!("Access version: {}", game_account.access_version);
println!("Settle version: {}", game_account.settle_version);
println!("Versions: #S{}, #A{}", game_account.settle_version, game_account.access_version);
println!("Data size: {}", game_account.data.len());
println!("Max players: {}", game_account.max_players);
println!("Entry type: {:?}", game_account.entry_type);
println!("Recipient account: {}", game_account.recipient_addr);
println!("Players:");
for p in game_account.players.iter() {
println!(
"Player[{}] position: {}, @{}",
"Player[{}] position: {}, #A{}",
p.addr, p.position, p.access_version
);
}
println!("Deposits:");
for d in game_account.deposits.iter() {
println!("Deposit: from[{}], amount: {}", d.addr, d.amount);
println!("Deposit: from[{}], amount: {}, #S{}", d.addr, d.amount, d.settle_version);
}
println!("Servers:");
for s in game_account.servers.iter() {
println!("Server[{}]: {} @{}", s.endpoint, s.addr, s.access_version);
println!("Server[{}]: {}, #A{}", s.endpoint, s.addr, s.access_version);
}
println!("Votes:");
for v in game_account.votes.iter() {
Expand Down

0 comments on commit fe17025

Please sign in to comment.