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.

Required Methods§

source

fn on_new_symbols_relayed( oracle_variant: Oracle, symbols: BTreeSet<Symbol> ) -> Result<(), DispatchError>

Upload newly relayed symbols to oracle proxy

  • symbols: which symbols to upload

Implementations on Foreign Types§

source§

impl<Symbol> OnNewSymbolsRelayed<Symbol> for ()

source§

fn on_new_symbols_relayed( _oracle_variant: Oracle, _symbols: BTreeSet<Symbol> ) -> Result<(), DispatchError>

Implementors§