Struct vapcore_miner::service_transaction_checker::ServiceTransactionChecker[][src]

pub struct ServiceTransactionChecker { /* fields omitted */ }

Service transactions checker.

Implementations

impl ServiceTransactionChecker[src]

pub fn check<C: CallContract + RegistrarClient>(
    &self,
    client: &C,
    tx: &SignedTransaction
) -> Result<bool, String>
[src]

Checks if given address in tx is whitelisted to send service transactions.

pub fn check_address<C>(
    &self,
    client: &C,
    sender: Address
) -> Result<bool, String> where
    C: CallContract + RegistrarClient
[src]

Checks if given address is whitelisted to send service transactions.

pub fn refresh_cache<C>(&self, client: &C) -> Result<bool, String> where
    C: CallContract + RegistrarClient
[src]

Refresh certified addresses cache

Trait Implementations

impl Clone for ServiceTransactionChecker[src]

impl Default for ServiceTransactionChecker[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,