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 anAnvil
config. - Anvil
Provider anvil-node
A provider that wraps anAnvilInstance
, preventing the instance from being dropped while the provider is in use. - Cache
Layer Non-WebAssembly A provider layer that caches RPC responses and serves them on subsequent requests. - Cache
Provider Non-WebAssembly TheCacheProvider
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. - 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. - Shared
Cache Non-WebAssembly Shareable cache.