Remove tuples from JSON RPC responses (#7806) (#7811)

automerge
This commit is contained in:
mergify[bot]
2020-01-15 00:32:03 -08:00
committed by Grimes
parent 214aba6d2f
commit 5681a24896
21 changed files with 446 additions and 348 deletions

View File

@@ -5,6 +5,7 @@ use std::{cmp, fmt, iter::FromIterator};
/// An Account with data that is stored on chain
#[repr(C)]
#[derive(Serialize, Deserialize, Clone, Default)]
#[serde(rename_all = "camelCase")]
pub struct Account {
/// lamports in the account
pub lamports: u64,

View File

@@ -13,6 +13,7 @@ pub const MINIMUM_SLOTS_PER_EPOCH: u64 = 32;
#[repr(C)]
#[derive(Debug, Clone, Copy, PartialEq, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct EpochSchedule {
/// The maximum number of slots in each epoch.
pub slots_per_epoch: u64,