IForceMoveApp.sol

View Source: contracts/interfaces/IForceMoveApp.sol

โ†˜ Derived Contracts: CountingApp, HashLockedSwap, SingleAssetPayments, TrivialApp

The IForceMoveApp 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 IForceMoveApp.VariablePart a, struct IForceMoveApp.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 IForceMoveApp.VariablePartState being transitioned from.
bstruct IForceMoveApp.VariablePartState being transitioned to.
turnNumBuint48Turn number being transitioned to.
nParticipantsuint256Number of participants in this state channel.