SingleAssetPayments.sol

View Source: contracts/examples/SingleAssetPayments.sol

โ†— Extends: ForceMoveApp

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 ForceMoveApp.VariablePart a, struct ForceMoveApp.VariablePart b, uint48 turnNumB, uint256 nParticipants) public pure
returns(bool)

Returns

true if the transition conforms to the 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