827c13b69e
dont build netstack in CI additional rust 2024 fixes fixes removed temp.rs first round of cleanup removed duplicated NS types moved gateway probe to the monorepo
31 lines
737 B
Rust
31 lines
737 B
Rust
// Copyright 2023 - Nym Technologies SA <contact@nymtech.net>
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
use sqlx::FromRow;
|
|
use sqlx::types::time::OffsetDateTime;
|
|
|
|
#[derive(Debug, Clone, Eq, PartialEq, Hash, FromRow)]
|
|
pub struct Validator {
|
|
pub consensus_address: String,
|
|
pub consensus_pubkey: String,
|
|
}
|
|
|
|
#[derive(Debug, Clone, FromRow)]
|
|
pub struct Block {
|
|
pub height: i64,
|
|
pub hash: String,
|
|
pub num_txs: u32,
|
|
pub total_gas: i64,
|
|
pub proposer_address: String,
|
|
pub timestamp: OffsetDateTime,
|
|
}
|
|
|
|
#[derive(Debug, Clone, FromRow)]
|
|
pub struct CommitSignature {
|
|
pub height: i64,
|
|
pub validator_address: String,
|
|
pub voting_power: i64,
|
|
pub proposer_priority: i64,
|
|
pub timestamp: OffsetDateTime,
|
|
}
|