MCPcopy Create free account
hub / github.com/ChainSafe/Delorean-Protocol / AddressCache

Class AddressCache

fendermint/eth/api/src/cache.rs:85–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83/// Facilitate Ethereum address <-> Actor ID lookups.
84#[derive(Clone)]
85pub struct AddressCache<C> {
86 client: FendermintClient<C>,
87 addr_to_id: Cache<Address, ActorID>,
88 id_to_addr: Cache<ActorID, Address>,
89 addr_to_actor_type: Cache<Address, ActorType>,
90 cid_to_actor_type: Cache<Cid, ActorType>,
91}
92
93impl<C> AddressCache<C>
94where

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected