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
Name | Type | Description |
---|---|---|
a | struct IForceMoveApp.VariablePart | State being transitioned from. |
b | struct IForceMoveApp.VariablePart | State being transitioned to. |
turnNumB | uint48 | Turn number being transitioned to. |
nParticipants | uint256 | Number of participants in this state channel. |