diff --git a/Cargo.lock b/Cargo.lock index 6510efaa6e2f..fab5513ddf8e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2367,7 +2367,7 @@ dependencies = [ [[package]] name = "forest_address" -version = "0.2.1" +version = "0.2.2" dependencies = [ "data-encoding", "data-encoding-macro", diff --git a/types/src/genesis/mod.rs b/types/src/genesis/mod.rs index 6fe6cf5e8cfe..7224c35bd0a8 100644 --- a/types/src/genesis/mod.rs +++ b/types/src/genesis/mod.rs @@ -8,37 +8,39 @@ use serde::Serialize; use vm::TokenAmount; #[derive(Serialize)] -enum ActorType { - // Account, -// MultiSig, +pub enum ActorType { + Account, + MultiSig, } #[derive(Serialize)] +#[serde(rename_all = "PascalCase")] pub struct Actor { - actor_type: ActorType, + pub actor_type: ActorType, #[serde(with = "bigint_ser")] - token_amount: TokenAmount, + pub token_amount: TokenAmount, } #[derive(Serialize)] +#[serde(rename_all = "PascalCase")] pub struct Miner { - owner: Address, - worker: Address, - peer_id: Vec, + pub owner: Address, + pub worker: Address, + pub peer_id: Vec, #[serde(with = "bigint_ser")] - market_balance: TokenAmount, + pub market_balance: TokenAmount, #[serde(with = "bigint_ser")] - power_balance: TokenAmount, - sector_size: SectorSize, + pub power_balance: TokenAmount, + pub sector_size: SectorSize, } #[derive(Serialize)] #[serde(rename_all = "PascalCase")] pub struct Template { - accounts: Vec, - miners: Vec, - network_name: String, + pub accounts: Vec, + pub miners: Vec, + pub network_name: String, // timestamp: SystemTime, }