pub struct BlockHeaderBuilder { /* private fields */ }

Implementations§

source§

impl BlockHeaderBuilder

source

pub fn new() -> Self

source

pub fn with_parent_hash(&mut self, parent_hash: H256) -> &mut Self

source

pub fn with_height(&mut self, height: u64) -> &mut Self

source

pub fn with_timestamp(&mut self, timestamp: u64) -> &mut Self

source

pub fn with_author(&mut self, author: Address) -> &mut Self

source

pub fn with_transactions_root(&mut self, transactions_root: H256) -> &mut Self

source

pub fn with_deferred_state_root( &mut self, deferred_state_root: H256 ) -> &mut Self

source

pub fn with_deferred_receipts_root( &mut self, deferred_receipts_root: H256 ) -> &mut Self

source

pub fn with_deferred_logs_bloom_hash( &mut self, deferred_logs_bloom_hash: H256 ) -> &mut Self

source

pub fn with_blame(&mut self, blame: u32) -> &mut Self

source

pub fn with_difficulty(&mut self, difficulty: U256) -> &mut Self

source

pub fn with_adaptive(&mut self, adaptive: bool) -> &mut Self

source

pub fn with_gas_limit(&mut self, gas_limit: U256) -> &mut Self

source

pub fn with_referee_hashes(&mut self, referee_hashes: Vec<H256>) -> &mut Self

source

pub fn with_custom(&mut self, custom: Vec<Bytes>) -> &mut Self

source

pub fn with_nonce(&mut self, nonce: U256) -> &mut Self

source

pub fn with_pos_reference( &mut self, pos_reference: Option<PosBlockId> ) -> &mut Self

source

pub fn with_base_price( &mut self, maybe_base_price: Option<SpaceMap<U256>> ) -> &mut Self

source

pub fn build(&self) -> BlockHeader

source

pub fn compute_block_logs_bloom_hash(receipts: &Vec<Arc<BlockReceipts>>) -> H256

source

pub fn compute_aggregated_bloom(blooms: Vec<Bloom>) -> Bloom

source

pub fn compute_blame_state_root_vec_root(roots: Vec<H256>) -> H256

source

pub fn compute_blame_state_root_incremental( first_root: H256, remaining_root: H256 ) -> H256

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

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

§

fn vzip(self) -> V