[][src]Module sp_runtime::offchain

A collection of higher lever helpers for offchain calls.

Modules

http

A high-level helpers for making HTTP requests from Offchain Workers.

storage

In-memory implementation of offchain workers database.

storage

A set of storage helpers for offchain workers.

storage_lock

Off-chain Storage Lock

testing

Utilities for offchain calls testing.

Structs

Capabilities

A set of capabilities

Duration

Duration type

HttpRequestId

Opaque type for offchain http requests.

KeyTypeId

An identifier for a type of cryptographic key.

LimitedExternalities

An OffchainExternalities implementation with limited capabilities.

OffchainExt

The offchain extension that will be registered at the Substrate externalities.

OpaqueMultiaddr

Simple blob to hold a Multiaddr without committing to its format.

OpaqueNetworkState

A blob to hold information about the local node's network state without committing to its format.

OpaquePeerId

Simple blob to hold a PeerId without committing to its format.

Timestamp

Opaque timestamp type

TransactionPoolExt

An externalities extension to submit transactions to the pool.

Enums

Capability

Execution context extra capabilities.

HttpError

An error enum returned by some http methods.

HttpRequestStatus

Status of the HTTP request

StorageKind

A type of supported crypto.

Constants

STORAGE_PREFIX

Local storage prefix used by the Offchain Worker API to

Traits

Externalities

An extended externalities for offchain workers.

OffchainStorage

Offchain workers local storage.

TransactionPool

Abstraction over transaction pool.