SingleAssetPayments.sol

View Source: contracts/examples/SingleAssetPayments.sol

โ†— Extends: IForceMoveApp

The SingleAssetPayments contract complies with the ForceMoveApp interface and implements a simple payment channel with a single asset type only.


Functions


validTransition

Encodes the payment channel update rules.

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

Returns

true if the transition conforms to the 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.
Last updated on by geoknee