Module

Ctl.Internal.Types.Val

#Val

data Val

A long-integer-backed Value that can be negative and does not overflow. Used in CTL internally instead of the ledger-style Value type to simplify overflow handling.

Constructors

Instances

#Split

class Split (a :: Type)  where

Split a value into its positive and non-positive parts. The first element of the tuple contains the non-positive parts of the value, the second element contains the positive parts. The convention is non-positive parts are negated to make them positive in the output.

Members

Instances

#leq

leq :: Val -> Val -> Boolean

#checkBinRel

#checkPred

#getCoin

#getAssetQuantity

#pprintVal

#fromCoin

#fromValue

#toValue

#fromMultiAsset

#fromMint

#minus

minus :: Val -> Val -> Val

#mapThese

mapThese :: forall (a :: Type) (b :: Type) (k :: Type) (v :: Type). Ord k => (v -> These a b) -> Map k v -> (Map k a) /\ (Map k b)

Modules