Expand description
Useful layer implementations for the provider. Currently this
module contains the AnvilLayer
, AnvilProvider
and ChainLayer
types.
Structs§
- Anvil
Layer anvil-node
- A layer that wraps an
Anvil
config. - Anvil
Provider anvil-node
- A provider that wraps an
AnvilInstance
, preventing the instance from being dropped while the provider is in use. - Asserter
Non-WebAssembly - Container for pushing responses into the
MockProvider
. - Cache
Layer Non-WebAssembly - A provider layer that caches RPC responses and serves them on subsequent requests.
- Cache
Provider Non-WebAssembly - The
CacheProvider
holds the underlying in-memory LRU cache and overrides methods from theProvider
trait. It attempts to fetch from the cache and fallbacks to the RPC in case of a cache miss. - Chain
Layer - A layer that wraps a
NamedChain
. The layer will be used to set the client’s poll interval based on the average block time for this chain. - Mock
Layer Non-WebAssembly - A mock provider layer that returns responses that have been pushed to the
Asserter
. - Mock
Provider Non-WebAssembly - A mock provider implementation that returns responses from the
Asserter
. - Shared
Cache Non-WebAssembly - Shareable cache.
Enums§
- Mock
Error Non-WebAssembly - A
MockProvider
error. - Mock
Response Non-WebAssembly - A mock response that can be pushed into the asserter.