Expand description
A collection of higher lever helpers for offchain calls.
Modules§
- http
- A high-level helpers for making HTTP requests from Offchain Workers.
- storage
- A set of storage helpers for offchain workers.
- storage_
lock - Off-chain Storage Lock
- testing
- Utilities for offchain calls testing.
Structs§
- Capabilities
- Execution context extra capabilities.
- Duration
- Duration type
- Http
Request Id - Opaque type for offchain http requests.
- KeyType
Id - An identifier for a type of cryptographic key.
- Limited
Externalities - An
*Externalities
implementation with limited capabilities. - Offchain
DbExt - The offchain database extension that will be registered at the Substrate externalities.
- Offchain
Worker Ext - The offchain worker extension that will be registered at the Substrate externalities.
- Opaque
Multiaddr - Simple blob to hold a
Multiaddr
without committing to its format. - Opaque
Network State - A blob to hold information about the local node’s network state without committing to its format.
- Timestamp
- Opaque timestamp type
- Transaction
Pool Ext - An externalities extension to submit transactions to the pool.
Enums§
- Http
Error - An error enum returned by some http methods.
- Http
Request Status - Status of the HTTP request
- Offchain
Overlayed Change - Change to be applied to the offchain worker db in regards to a key.
- Storage
Kind - A type of supported crypto.
Constants§
- STORAGE_
PREFIX - Persistent storage prefix used by the Offchain Worker API when creating a DB key.
Traits§
- DbExternalities
- A externalities extension for accessing the Offchain DB.
- Externalities
- An extended externalities for offchain workers.
- Offchain
Storage - Offchain DB persistent (non-fork-aware) storage.
- Transaction
Pool - Abstraction over transaction pool.