Safe Haskell | None |
---|---|
Language | Haskell2010 |
A state machine with two states and two roles that take turns.
Documentation
data PingPongState Source #
Instances
Instances
data PingPongError Source #
PingPongContractError ContractError | |
PingPongSMError SMContractError | |
StoppedUnexpectedly |
Instances
type PingPongSchema = (((Endpoint "initialise" () .\/ Endpoint "ping" ()) .\/ Endpoint "pong" ()) .\/ Endpoint "stop" ()) .\/ Endpoint "wait" () Source #
runPing :: forall w. Contract w PingPongSchema PingPongError () Source #
runPong :: forall w. Contract w PingPongSchema PingPongError () Source #
ping :: forall w. Promise w PingPongSchema PingPongError () Source #
pong :: forall w. Promise w PingPongSchema PingPongError () Source #
initialise :: forall w. Promise w PingPongSchema PingPongError () Source #
runStop :: forall w. Promise w PingPongSchema PingPongError () Source #
runWaitForUpdate :: forall w. Contract w PingPongSchema PingPongError (Maybe (OnChainState PingPongState Input)) Source #
combined :: Contract (Last PingPongState) PingPongSchema PingPongError () Source #
simplePingPong :: Contract (Last PingPongState) PingPongSchema PingPongError () Source #
simplePingPongAuto :: Contract (Last PingPongState) PingPongSchema PingPongError () Source #