DelmOrg/delm-concept/1.0.0

NOTE: the latest version is 2.3.0

Concept.Contract

This is part of the standard library for Delm.

type Basic

Blockchain base types.

type alias Contract msg model =
{ constructor : ( Global -> FunctionIO -> model, InterfaceIO )
, update :
msg -> Global -> model -> ( Requirements, model, FunctionIO )
}

Contract specification.

Function parameter positions.

Interfaces.

Implementation type for Interfaces.

deploy : Contract msg model -> Program () model msg

Syntax sugar, not meant to be used directly.

interpret : ContractCore msg model -> Program () (Model model) Msg

Interpreter function.