Struct vapjson::spec::vapash::VapashParams[][src]

pub struct VapashParams {
    pub minimum_difficulty: Uint,
    pub difficulty_bound_divisor: Uint,
    pub difficulty_increment_divisor: Option<Uint>,
    pub metropolis_difficulty_increment_divisor: Option<Uint>,
    pub duration_limit: Option<Uint>,
    pub homestead_transition: Option<Uint>,
    pub block_reward: Option<BlockReward>,
    pub block_reward_contract_transition: Option<Uint>,
    pub block_reward_contract_address: Option<Address>,
    pub block_reward_contract_code: Option<Bytes>,
    pub dao_hardfork_transition: Option<Uint>,
    pub dao_hardfork_beneficiary: Option<Address>,
    pub dao_hardfork_accounts: Option<Vec<Address>>,
    pub difficulty_hardfork_transition: Option<Uint>,
    pub difficulty_hardfork_bound_divisor: Option<Uint>,
    pub bomb_defuse_transition: Option<Uint>,
    pub eip100b_transition: Option<Uint>,
    pub ecip1010_pause_transition: Option<Uint>,
    pub ecip1010_continue_transition: Option<Uint>,
    pub ecip1017_era_rounds: Option<Uint>,
    pub difficulty_bomb_delays: Option<BTreeMap<Uint, Uint>>,
    pub expip2_transition: Option<Uint>,
    pub expip2_duration_limit: Option<Uint>,
    pub progpow_transition: Option<Uint>,
}

Deserializable doppelganger of VapashParams.

Fields

minimum_difficulty: Uint

See main VapashParams docs.

difficulty_bound_divisor: Uint

See main VapashParams docs.

difficulty_increment_divisor: Option<Uint>

See main VapashParams docs.

metropolis_difficulty_increment_divisor: Option<Uint>

See main VapashParams docs.

duration_limit: Option<Uint>

See main VapashParams docs.

homestead_transition: Option<Uint>

See main VapashParams docs.

block_reward: Option<BlockReward>

Reward per block in wei.

block_reward_contract_transition: Option<Uint>

Block at which the block reward contract should start being used.

block_reward_contract_address: Option<Address>

Block reward contract address (setting the block reward contract overrides all other block reward parameters).

block_reward_contract_code: Option<Bytes>

Block reward code. This overrides the block reward contract address.

dao_hardfork_transition: Option<Uint>

See main VapashParams docs.

dao_hardfork_beneficiary: Option<Address>

See main VapashParams docs.

dao_hardfork_accounts: Option<Vec<Address>>

See main VapashParams docs.

difficulty_hardfork_transition: Option<Uint>

See main VapashParams docs.

difficulty_hardfork_bound_divisor: Option<Uint>

See main VapashParams docs.

bomb_defuse_transition: Option<Uint>

See main VapashParams docs.

eip100b_transition: Option<Uint>

See main VapashParams docs.

ecip1010_pause_transition: Option<Uint>

See main VapashParams docs.

ecip1010_continue_transition: Option<Uint>

See main VapashParams docs.

ecip1017_era_rounds: Option<Uint>

See main VapashParams docs.

difficulty_bomb_delays: Option<BTreeMap<Uint, Uint>>

Delays of difficulty bombs.

expip2_transition: Option<Uint>

EXPIP-2 block height

expip2_duration_limit: Option<Uint>

EXPIP-2 duration limit

progpow_transition: Option<Uint>

Block to transition to progpow

Trait Implementations

impl Clone for VapashParams[src]

impl Debug for VapashParams[src]

impl<'de> Deserialize<'de> for VapashParams[src]

impl PartialEq<VapashParams> for VapashParams[src]

impl StructuralPartialEq for VapashParams[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,