Trait openbrush_contracts::traits::diamond::extensions::diamond_loupe::diamondloupe_external::DiamondLoupe
source · pub trait DiamondLoupe: ContractEnv {
type facetsOutput: ImpliesReturn<Vec<FacetCut>>;
type facetFunctionSelectorsOutput: ImpliesReturn<Vec<Selector>>;
type facetCodeHashesOutput: ImpliesReturn<Vec<Hash>>;
type facetCodeHashOutput: ImpliesReturn<Option<Hash>>;
// Required methods
fn facets(&self) -> Self::facetsOutput;
fn facet_function_selectors(
&self,
facet: Hash
) -> Self::facetFunctionSelectorsOutput;
fn facet_code_hashes(&self) -> Self::facetCodeHashesOutput;
fn facet_code_hash(&self, selector: Selector) -> Self::facetCodeHashOutput;
}
Expand description
Trait which implements functions of Diamond Loupe to lookup the functionality of the diamond contract
Required Associated Types§
sourcetype facetsOutput: ImpliesReturn<Vec<FacetCut>>
type facetsOutput: ImpliesReturn<Vec<FacetCut>>
Output type of the respective trait message.
sourcetype facetFunctionSelectorsOutput: ImpliesReturn<Vec<Selector>>
type facetFunctionSelectorsOutput: ImpliesReturn<Vec<Selector>>
Output type of the respective trait message.
sourcetype facetCodeHashesOutput: ImpliesReturn<Vec<Hash>>
type facetCodeHashesOutput: ImpliesReturn<Vec<Hash>>
Output type of the respective trait message.
sourcetype facetCodeHashOutput: ImpliesReturn<Option<Hash>>
type facetCodeHashOutput: ImpliesReturn<Option<Hash>>
Output type of the respective trait message.