[][src]Crate pallet_plasma

Plasma Module

The Plasma module provides functionality for handling layer2 dispute logics. This refer to: https://github.com/cryptoeconomicslab/ovm-contracts/blob/master/contracts/UniversalAdjudicationContract.sol

Overview

Plasma Module is a module that is responsible for processing specific to Plasma. It calls the OVM Module and the specified smart contract function. The Plasma Module has one "Commitment" and "Deposit" address per application. These are each defined by decl_child_storage. decl_child_storage! is a macro that implements DB in SubTrie. This sets AccountId as the key value. This is like a contract address. Specifically, implements with reference to AccountDb of contract module.

This is modularized Commitment, Deposit and CompiledPredicate contracts in the Ethereum.

Structs

AddressInclusionProof
AddressTreeNode
Checkpoint
Deserializer
Exit
ExitDeposit
InclusionProof
IntervalInclusionProof
IntervalTreeNode
Module
Property

Property stands for dispute logic and we can claim every Properties to Adjudicator Contract. Property has its predicate address and array of input.

Range
SimpleAddressDeterminer

Simple plapps address determiner.

StateUpdate

Enums

Call

Dispatchable calls.

Decision

The game decision by predicates.

Error

Error for the staking module.

RawEvent

Events for this module.

Traits

PlappsAddressFor
Trait

Type Definitions

AddressInclusionProofOf
AddressTreeNodeOf
BalanceOf
CheckpointOf
DispatchResultT
Event

RawEvent specialized for the configuration Trait

ExitDepositOf
ExitOf
InclusionProofOf
IntervalInclusionProofOf
IntervalTreeNodeOf
PropertyOf
RangeOf
StateUpdateOf