morley-0.6.0: Developer tools for the Michelson Language

Safe HaskellNone
LanguageHaskell2010

Lorentz.EntryPoints.Impl

Description

Common implementations of entrypoints.

Synopsis

Documentation

data EpdPlain Source #

Implementation of ParameterHasEntryPoints which fits for case when your contract exposes multiple entrypoints via having sum type as its parameter.

In particular, each constructor would produce a homonymous entrypoint with argument type equal to type of constructor field (each constructor should have only one field). Constructor called Default will designate the default entrypoint.

Instances
PlainEntryPointsC False cp => EntryPointsDerivation EpdPlain cp Source # 
Instance details

Defined in Lorentz.EntryPoints.Impl

type EpdAllEntryPoints EpdPlain cp Source # 
Instance details

Defined in Lorentz.EntryPoints.Impl

type EpdLookupEntryPoint EpdPlain cp Source # 
Instance details

Defined in Lorentz.EntryPoints.Impl

data EpdRecursive Source #

Similar to EpdPlain, but for case of parameter being defined as several nested datatypes.

In particular, this will traverse sum types recursively, stopping at Michelson primitives (like Natural) and constructors with number of fields different from one.

It does not assign names to intermediate nodes of Or tree, only to the very leaves.