marlowe-runtime-0.0.5: Runtime system for running Marlowe financial contracts on the Cardano Computation Layer
Safe HaskellSafe-Inferred
LanguageHaskell2010

Language.Marlowe.Protocol.Sync.Server

Documentation

newtype MarloweSyncServer m a Source #

Constructors

MarloweSyncServer 

Instances

Instances details
Functor m => Functor (MarloweSyncServer m) Source # 
Instance details

Defined in Language.Marlowe.Protocol.Sync.Server

Methods

fmap :: (a -> b) -> MarloweSyncServer m a -> MarloweSyncServer m b Source #

(<$) :: a -> MarloweSyncServer m b -> MarloweSyncServer m a Source #

data ServerStInit m a Source #

Constructors

ServerStInit 

Fields

Instances

Instances details
Functor m => Functor (ServerStInit m) Source # 
Instance details

Defined in Language.Marlowe.Protocol.Sync.Server

Methods

fmap :: (a -> b) -> ServerStInit m a -> ServerStInit m b Source #

(<$) :: a -> ServerStInit m b -> ServerStInit m a Source #

data ServerStFollow m a where Source #

Constructors

SendMsgContractFound :: BlockHeader -> MarloweVersion v -> CreateStep v -> ServerStIdle v m a -> ServerStFollow m a 
SendMsgContractNotFound :: a -> ServerStFollow m a 

Instances

Instances details
Functor m => Functor (ServerStFollow m) Source # 
Instance details

Defined in Language.Marlowe.Protocol.Sync.Server

Methods

fmap :: (a -> b) -> ServerStFollow m a -> ServerStFollow m b Source #

(<$) :: a -> ServerStFollow m b -> ServerStFollow m a Source #

data ServerStIntersect v m a where Source #

Constructors

SendMsgIntersectFound :: BlockHeader -> ServerStIdle v m a -> ServerStIntersect v m a 
SendMsgIntersectNotFound :: a -> ServerStIntersect v m a 

Instances

Instances details
Functor m => Functor (ServerStIntersect v m) Source # 
Instance details

Defined in Language.Marlowe.Protocol.Sync.Server

Methods

fmap :: (a -> b) -> ServerStIntersect v m a -> ServerStIntersect v m b Source #

(<$) :: a -> ServerStIntersect v m b -> ServerStIntersect v m a Source #

data ServerStIdle v m a Source #

Constructors

ServerStIdle 

Fields

Instances

Instances details
Functor m => Functor (ServerStIdle v m) Source # 
Instance details

Defined in Language.Marlowe.Protocol.Sync.Server

Methods

fmap :: (a -> b) -> ServerStIdle v m a -> ServerStIdle v m b Source #

(<$) :: a -> ServerStIdle v m b -> ServerStIdle v m a Source #

data ServerStNext v m a where Source #

Constructors

SendMsgRollForward :: BlockHeader -> [ContractStep v] -> ServerStIdle v m a -> ServerStNext v m a 
SendMsgRollBackward :: BlockHeader -> ServerStIdle v m a -> ServerStNext v m a 
SendMsgRollBackCreation :: a -> ServerStNext v m a 
SendMsgWait :: ServerStWait v m a -> ServerStNext v m a 

Instances

Instances details
Functor m => Functor (ServerStNext v m) Source # 
Instance details

Defined in Language.Marlowe.Protocol.Sync.Server

Methods

fmap :: (a -> b) -> ServerStNext v m a -> ServerStNext v m b Source #

(<$) :: a -> ServerStNext v m b -> ServerStNext v m a Source #

data ServerStWait v m a Source #

Constructors

ServerStWait 

Fields

Instances

Instances details
Functor m => Functor (ServerStWait v m) Source # 
Instance details

Defined in Language.Marlowe.Protocol.Sync.Server

Methods

fmap :: (a -> b) -> ServerStWait v m a -> ServerStWait v m b Source #

(<$) :: a -> ServerStWait v m b -> ServerStWait v m a Source #

hoistMarloweSyncServer :: forall m n a. Functor m => (forall x. m x -> n x) -> MarloweSyncServer m a -> MarloweSyncServer n a Source #

marloweSyncServerPeer :: forall m a. Functor m => MarloweSyncServer m a -> PeerTraced MarloweSync 'AsServer 'StInit m a Source #