staking_rs/
lib.rs

1//! # Staking core data structure
2//!
3//! including Staking
4//!
5
6#[derive(Debug)]
7pub struct Staking {
8    /// enable staking or not
9    pub enable : bool,
10
11    /// current block height
12    pub block_height : u64,
13
14    /// validators at current block height
15    pub validators : Vec<String>, 
16
17    /// amount of Native is staking
18    pub weight : u64,
19
20    /// amount of redeem en the way
21    pub redeem : u64,
22
23    /// staking op transactions at current block height
24    pub txs : Vec<String>,
25}
26
27pub fn hello() {
28    println!("Hello, staking!");
29}