Crate essential_node_types

Crate essential_node_types 

Source
Expand description

Core types used within this implementation of the Essential protocol.

Modules§

block
The Block type and related implementations.
block_notify
Wrappers around tokio’s watch channel for notifying of new blocks.
contract_registry
Functions for constructing keys into the “contract registry” contract state.
program_registry
Functions for constructing keys into the “program registry” contract state.

Structs§

BigBang
Describes how to construct the big-bang (aka “genesis”) block.
Block
An essential block.
BlockHeader
The block header, containing metadata about the block.

Constants§

DEFAULT_BIG_BANG
The default big-bang configuration.

Functions§

block_state_mutations
Generate the mutations required for a solution that sets the block state to the given block number and timestamp.
block_state_solution
Generate a solution that sets the block state to the given block number and timestamp.
register_contract_mutations
Generate the mutations required to register a given contract within the big bang’s “contract registry” contract. This is useful for constructing contract deployment Solutions.
register_contract_solution
Create a solution for registering the given contract at the given contract registry.
register_program_mutations
Generate the mutations required to register a given program within the big bang’s “program registry” contract. This is useful for constructing program deployment Solutions.
register_program_solution
Create a solution for registering the given program at the given program registry.