[][src]Trait pallet_plasm_lockdrop::LockOracle

pub trait LockOracle {
    fn uri() -> &'static str;

    fn check(
        tx_hash: H256,
        public_key: Public,
        duration: u64,
        value: u128
    ) -> Result<bool, ()> { ... } }

HTTP source of blockchain transactions.

Required methods

fn uri() -> &'static str

HTTP request URI

Loading content...

Provided methods

fn check(
    tx_hash: H256,
    public_key: Public,
    duration: u64,
    value: u128
) -> Result<bool, ()>

Check lock transaction data. Note: this method requires off-chain worker context.

Loading content...

Implementors

impl LockOracle for BitcoinLock[src]

impl LockOracle for EthereumLock[src]

Loading content...