Safe Haskell | None |
---|---|
Language | Haskell2010 |
A version of RunContract
for use in the
playground.
Synopsis
- data RunContractPlayground r
- callEndpoint :: forall effs. Member RunContractPlayground effs => Wallet -> String -> Value -> Eff effs ()
- launchContract :: forall effs. Member RunContractPlayground effs => Wallet -> Eff effs ()
- handleRunContractPlayground :: forall w s e effs effs2 a. (ContractConstraints s, Show e, ToJSON e, ToJSON w, Monoid w, Member ContractInstanceIdEff effs, Member (Yield (EmSystemCall effs2 EmulatorMessage a) (Maybe EmulatorMessage)) effs, Member (LogMsg EmulatorEvent') effs2, Member (Error EmulatorRuntimeError) effs2, Member (State EmulatorThreads) effs2, Member MultiAgentEffect effs2, Member (State (Map Wallet ContractInstanceId)) effs2, Member (State (Map Wallet ContractInstanceId)) effs) => NetworkId -> Contract w s e () -> RunContractPlayground ~> Eff effs
Documentation
data RunContractPlayground r Source #
callEndpoint :: forall effs. Member RunContractPlayground effs => Wallet -> String -> Value -> Eff effs () Source #
launchContract :: forall effs. Member RunContractPlayground effs => Wallet -> Eff effs () Source #
handleRunContractPlayground :: forall w s e effs effs2 a. (ContractConstraints s, Show e, ToJSON e, ToJSON w, Monoid w, Member ContractInstanceIdEff effs, Member (Yield (EmSystemCall effs2 EmulatorMessage a) (Maybe EmulatorMessage)) effs, Member (LogMsg EmulatorEvent') effs2, Member (Error EmulatorRuntimeError) effs2, Member (State EmulatorThreads) effs2, Member MultiAgentEffect effs2, Member (State (Map Wallet ContractInstanceId)) effs2, Member (State (Map Wallet ContractInstanceId)) effs) => NetworkId -> Contract w s e () -> RunContractPlayground ~> Eff effs Source #
Handle the RunContractPlayground
effect.