Trait common::prelude::OnNewSymbolsRelayed
source · pub trait OnNewSymbolsRelayed<Symbol> {
// Required method
fn on_new_symbols_relayed(
oracle_variant: Oracle,
symbols: BTreeSet<Symbol>
) -> Result<(), DispatchError>;
}
Expand description
Hook-like trait for oracles to capture newly relayed symbols.
A struct implementing this trait can be specified in oracle pallet Config so that it will be called every time new symbols were relayed.