ForceMoveApp.sol

View Source: contracts/interfaces/ForceMoveApp.sol

โ†˜ Derived Contracts: CountingApp, SingleAssetPayments, TrivialApp

The ForceMoveApp interface calls for its children to implement an application-specific validTransition function, defining the state machine of a ForceMove state channel DApp.


Structs

VariablePart

struct VariablePart {
bytes outcome,
bytes appData
}

Functions


validTransition

Encodes application-specific rules for a particular ForceMove-compliant state channel.

function validTransition(struct ForceMoveApp.VariablePart a, struct ForceMoveApp.VariablePart b, uint48 turnNumB, uint256 nParticipants) external pure
returns(bool)

Returns

true if the transition conforms to this application's rules, false otherwise

Arguments

NameTypeDescription
astruct ForceMoveApp.VariablePartState being transitioned from.
bstruct ForceMoveApp.VariablePartState being transitioned to.
turnNumBuint48Turn number being transitioned to.
nParticipantsuint256Number of participants in this state channel.
Last updated on by geoknee