Trait pallet_robonomics_liability::traits::Agreement  
source · pub trait Agreement<AccountId> {
    type Technical: Parameter;
    type Economical: Parameter;
    // Required methods
    fn technical(&self) -> Self::Technical;
    fn economical(&self) -> Self::Economical;
    fn promisee(&self) -> AccountId;
    fn promisor(&self) -> AccountId;
    fn verify(&self) -> bool;
}Expand description
Agreement between two participants around technical/economical aspects.
Required Associated Types§
sourcetype Technical: Parameter
 
type Technical: Parameter
Technical parameter of agreement. Usually in this parameter one party of agreement provide technical information like task description, parameters and some additional data.
sourcetype Economical: Parameter
 
type Economical: Parameter
Economical parameter of agreement. Usually in this parameter one party set task cost for another party. To come an agreement both parties should be agree with this parameter.
Required Methods§
sourcefn economical(&self) -> Self::Economical
 
fn economical(&self) -> Self::Economical
Get Economical parameter of agreement.