timechain_runtime::apis

Trait NetworksInterface

Source
pub trait NetworksInterface {
    // Required methods
    fn networks() -> Vec<u16>;
    fn gateway(network: u16) -> Option<[u8; 32]>;
    fn next_batch_size(network: u16, block_height: u64) -> u32;
    fn batch_gas_params(network: u16) -> BatchGasParams;
    fn shard_task_limit(network: u16) -> u32;
    fn shard_size(network: u16) -> u16;
    fn shard_threshold(network: u16) -> u16;
}

Required Methods§

Source

fn networks() -> Vec<u16>

Source

fn gateway(network: u16) -> Option<[u8; 32]>

Source

fn next_batch_size(network: u16, block_height: u64) -> u32

Source

fn batch_gas_params(network: u16) -> BatchGasParams

Source

fn shard_task_limit(network: u16) -> u32

Source

fn shard_size(network: u16) -> u16

Source

fn shard_threshold(network: u16) -> u16

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T> NetworksInterface for Pallet<T>
where T: Config,

Source§

fn networks() -> Vec<u16>

Source§

fn gateway(network: u16) -> Option<[u8; 32]>

Source§

fn next_batch_size(network: u16, block_height: u64) -> u32

Source§

fn batch_gas_params(network: u16) -> BatchGasParams

Source§

fn shard_task_limit(network: u16) -> u32

Source§

fn shard_size(network: u16) -> u16

Source§

fn shard_threshold(network: u16) -> u16

Implementors§