pub trait Report<Index, AccountId>: RealWorldOracle {
    type Message: Parameter;

    // Required methods
    fn index(&self) -> Index;
    fn sender(&self) -> AccountId;
    fn verify(&self) -> bool;
}
Expand description

During execution one part of agreement should prepare report, it’s parameter of finalize transaction. Technically, lifecycle of liability consist of three steps:

  • Pre-open: parties try come to an agreement;
  • Start: funds of one party locked, second party execute a task;
  • Finish: funds of one party transfered as same as report of executed task published.

Required Associated Types§

source

type Message: Parameter

The report payload.

Required Methods§

source

fn index(&self) -> Index

Agreement indexing type.

source

fn sender(&self) -> AccountId

Sender account.

source

fn verify(&self) -> bool

Check validity report proof.

Implementors§

source§

impl<Index, A, V, I, M> Report<Index, I> for SignedReport<Index, I, V, M>where Index: Parameter, A: IdentifyAccount<AccountId = I>, V: Verify<Signer = A> + Parameter, M: Parameter, I: Parameter,

§

type Message = M