Trait sc_offchain::OffchainWorkerApi[][src]

pub trait OffchainWorkerApi<Block>: Core<Block> where
    Block: Block
{ pub fn offchain_worker_before_version_2(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        number: <<Block as Block>::Header as Header>::Number
    ) -> Result<(), Self::Error> { ... }
pub fn offchain_worker_before_version_2_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        number: <<Block as Block>::Header as Header>::Number
    ) -> Result<(), Self::Error> { ... }
pub fn offchain_worker(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        header: &<Block as Block>::Header
    ) -> Result<(), Self::Error> { ... }
pub fn offchain_worker_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        header: &<Block as Block>::Header
    ) -> Result<(), Self::Error> { ... } }

The offchain worker api.

Provided methods

pub fn offchain_worker_before_version_2(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    number: <<Block as Block>::Header as Header>::Number
) -> Result<(), Self::Error>
[src]

👎 Deprecated

Starts the off-chain task for given block number.

pub fn offchain_worker_before_version_2_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext,
    number: <<Block as Block>::Header as Header>::Number
) -> Result<(), Self::Error>
[src]

👎 Deprecated

Starts the off-chain task for given block number.

pub fn offchain_worker(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    header: &<Block as Block>::Header
) -> Result<(), Self::Error>
[src]

Starts the off-chain task for given block header.

pub fn offchain_worker_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext,
    header: &<Block as Block>::Header
) -> Result<(), Self::Error>
[src]

Starts the off-chain task for given block header.

Loading content...

Trait Implementations

impl<Block, __Sr_Api_Error__> RuntimeApiInfo for dyn OffchainWorkerApi<Block, Error = __Sr_Api_Error__> + 'static where
    Block: Block
[src]

Implementors

Loading content...