plutus-core-1.0.0.1: Language library for Plutus Core
Safe Haskell None
Language Haskell2010

PlutusCore.Default

Synopsis

Documentation

data DefaultUni a where Source #

The universe used by default.

Instances

Instances details
HasUniApply DefaultUni Source #
Instance details

Defined in PlutusCore.Default.Universe

Methods

matchUniApply :: DefaultUni tb -> r -> ( forall k l (f :: k -> l) (a :: k). tb ~ Esc (f a) => DefaultUni ( Esc f) -> DefaultUni ( Esc a) -> r) -> r Source #

Closed DefaultUni Source #
Instance details

Defined in PlutusCore.Default.Universe

Associated Types

type Everywhere DefaultUni constr Source #

ToKind DefaultUni Source #
Instance details

Defined in PlutusCore.Default.Universe

Methods

toSingKind :: forall k (a :: k). DefaultUni ( Esc a) -> SingKind k Source #

TestTypesFromTheUniverseAreAllKnown DefaultUni Source #
Instance details

Defined in PlutusCore.Default.Universe

GShow DefaultUni Source #
Instance details

Defined in PlutusCore.Default.Universe

GEq DefaultUni Source #
Instance details

Defined in PlutusCore.Default.Universe

Methods

geq :: forall (a :: k) (b :: k). DefaultUni a -> DefaultUni b -> Maybe (a :~: b) Source #

GCompare DefaultUni Source #
Instance details

Defined in PlutusCore.Default.Universe

Methods

gcompare :: forall (a :: k) (b :: k). DefaultUni a -> DefaultUni b -> GOrdering a b Source #

HasConstantIn DefaultUni term => ReadKnownIn DefaultUni term Int Source #
Instance details

Defined in PlutusCore.Default.Universe

HasConstantIn DefaultUni term => ReadKnownIn DefaultUni term Int64 Source #
Instance details

Defined in PlutusCore.Default.Universe

HasConstantIn DefaultUni term => ReadKnownIn DefaultUni term Data Source #
Instance details

Defined in PlutusCore.Default.Universe

HasConstantIn DefaultUni term => ReadKnownIn DefaultUni term Bool Source #
Instance details

Defined in PlutusCore.Default.Universe

HasConstantIn DefaultUni term => ReadKnownIn DefaultUni term () Source #
Instance details

Defined in PlutusCore.Default.Universe

Methods

readKnown :: Maybe cause -> term -> ReadKnownM cause () Source #

HasConstantIn DefaultUni term => ReadKnownIn DefaultUni term Text Source #
Instance details

Defined in PlutusCore.Default.Universe

HasConstantIn DefaultUni term => ReadKnownIn DefaultUni term ByteString Source #
Instance details

Defined in PlutusCore.Default.Universe

HasConstantIn DefaultUni term => ReadKnownIn DefaultUni term Integer Source #
Instance details

Defined in PlutusCore.Default.Universe

UniOf term ~ DefaultUni => ReadKnownIn DefaultUni term Void Source #
Instance details

Defined in PlutusCore.Examples.Builtins

HasConstantIn DefaultUni term => MakeKnownIn DefaultUni term Int Source #
Instance details

Defined in PlutusCore.Default.Universe

HasConstantIn DefaultUni term => MakeKnownIn DefaultUni term Int64 Source #
Instance details

Defined in PlutusCore.Default.Universe

HasConstantIn DefaultUni term => MakeKnownIn DefaultUni term Data Source #
Instance details

Defined in PlutusCore.Default.Universe

HasConstantIn DefaultUni term => MakeKnownIn DefaultUni term Bool Source #
Instance details

Defined in PlutusCore.Default.Universe

HasConstantIn DefaultUni term => MakeKnownIn DefaultUni term () Source #
Instance details

Defined in PlutusCore.Default.Universe

Methods

makeKnown :: Maybe cause -> () -> MakeKnownM cause term Source #

HasConstantIn DefaultUni term => MakeKnownIn DefaultUni term Text Source #
Instance details

Defined in PlutusCore.Default.Universe

HasConstantIn DefaultUni term => MakeKnownIn DefaultUni term ByteString Source #
Instance details

Defined in PlutusCore.Default.Universe

HasConstantIn DefaultUni term => MakeKnownIn DefaultUni term Integer Source #
Instance details

Defined in PlutusCore.Default.Universe

UniOf term ~ DefaultUni => MakeKnownIn DefaultUni term Void Source #
Instance details

Defined in PlutusCore.Examples.Builtins

( Contains DefaultUni f, Contains DefaultUni a) => Contains DefaultUni (f a :: k2) Source #
Instance details

Defined in PlutusCore.Default.Universe

( HasConstantIn DefaultUni term, Contains DefaultUni [a]) => ReadKnownIn DefaultUni term [a] Source #
Instance details

Defined in PlutusCore.Default.Universe

Methods

readKnown :: Maybe cause -> term -> ReadKnownM cause [a] Source #

( HasConstantIn DefaultUni term, Contains DefaultUni [a]) => MakeKnownIn DefaultUni term [a] Source #
Instance details

Defined in PlutusCore.Default.Universe

Methods

makeKnown :: Maybe cause -> [a] -> MakeKnownM cause term Source #

( HasConstantIn DefaultUni term, Contains DefaultUni (a, b)) => ReadKnownIn DefaultUni term (a, b) Source #
Instance details

Defined in PlutusCore.Default.Universe

Methods

readKnown :: Maybe cause -> term -> ReadKnownM cause (a, b) Source #

( HasConstantIn DefaultUni term, Contains DefaultUni (a, b)) => MakeKnownIn DefaultUni term (a, b) Source #
Instance details

Defined in PlutusCore.Default.Universe

Methods

makeKnown :: Maybe cause -> (a, b) -> MakeKnownM cause term Source #

Show ( DefaultUni a) Source #
Instance details

Defined in PlutusCore.Default.Universe

Contains DefaultUni Bool Source #
Instance details

Defined in PlutusCore.Default.Universe

Contains DefaultUni Integer Source #
Instance details

Defined in PlutusCore.Default.Universe

Contains DefaultUni () Source #
Instance details

Defined in PlutusCore.Default.Universe

Contains DefaultUni ByteString Source #
Instance details

Defined in PlutusCore.Default.Universe

Contains DefaultUni Text Source #
Instance details

Defined in PlutusCore.Default.Universe

Contains DefaultUni Data Source #
Instance details

Defined in PlutusCore.Default.Universe

KnownBuiltinTypeAst DefaultUni Bool => KnownTypeAst DefaultUni Bool Source #
Instance details

Defined in PlutusCore.Default.Universe

KnownTypeAst DefaultUni Int Source #
Instance details

Defined in PlutusCore.Default.Universe

KnownTypeAst DefaultUni Int64 Source #
Instance details

Defined in PlutusCore.Default.Universe

KnownBuiltinTypeAst DefaultUni Integer => KnownTypeAst DefaultUni Integer Source #
Instance details

Defined in PlutusCore.Default.Universe

KnownBuiltinTypeAst DefaultUni () => KnownTypeAst DefaultUni () Source #
Instance details

Defined in PlutusCore.Default.Universe

KnownBuiltinTypeAst DefaultUni ByteString => KnownTypeAst DefaultUni ByteString Source #
Instance details

Defined in PlutusCore.Default.Universe

KnownBuiltinTypeAst DefaultUni Text => KnownTypeAst DefaultUni Text Source #
Instance details

Defined in PlutusCore.Default.Universe

KnownTypeAst DefaultUni Void Source #
Instance details

Defined in PlutusCore.Examples.Builtins

KnownBuiltinTypeAst DefaultUni Data => KnownTypeAst DefaultUni Data Source #
Instance details

Defined in PlutusCore.Default.Universe

KnownBuiltinTypeAst DefaultUni [a] => KnownTypeAst DefaultUni ([a] :: Type ) Source #
Instance details

Defined in PlutusCore.Default.Universe

KnownBuiltinTypeAst DefaultUni (a, b) => KnownTypeAst DefaultUni ((a, b) :: Type ) Source #
Instance details

Defined in PlutusCore.Default.Universe

Associated Types

type ToHoles (a, b) :: [ Hole ] Source #

type ToBinds (a, b) :: [ Some TyNameRep ] Source #

Contains DefaultUni (,) Source #
Instance details

Defined in PlutusCore.Default.Universe

Contains DefaultUni [] Source #
Instance details

Defined in PlutusCore.Default.Universe

type Everywhere DefaultUni constr Source #
Instance details

Defined in PlutusCore.Default.Universe

pattern DefaultUniList :: forall a k1 k2 (f :: k1 -> k2) (a1 :: k1). () => forall . (a ~ Esc (f a1), Esc f ~ Esc []) => DefaultUni ( Esc a1) -> DefaultUni a Source #

pattern DefaultUniPair :: forall a k1 k2 (f1 :: k1 -> k2) (a1 :: k1) k3 k4 (f2 :: k3 -> k4) (a2 :: k3). () => forall . (a ~ Esc (f1 a1), Esc f1 ~ Esc (f2 a2), Esc f2 ~ Esc (,) ) => DefaultUni ( Esc a2) -> DefaultUni ( Esc a1) -> DefaultUni a Source #

module Universe

data DefaultFun Source #

Default built-in functions.

When updating these, make sure to add them to the protocol version listing! See Note [New builtins and protocol versions]

Instances

Instances details
Bounded DefaultFun Source #
Instance details

Defined in PlutusCore.Default.Builtins

Enum DefaultFun Source #
Instance details

Defined in PlutusCore.Default.Builtins

Eq DefaultFun Source #
Instance details

Defined in PlutusCore.Default.Builtins

Ord DefaultFun Source #
Instance details

Defined in PlutusCore.Default.Builtins

Show DefaultFun Source #
Instance details

Defined in PlutusCore.Default.Builtins

Ix DefaultFun Source #
Instance details

Defined in PlutusCore.Default.Builtins

Generic DefaultFun Source #
Instance details

Defined in PlutusCore.Default.Builtins

Hashable DefaultFun Source #
Instance details

Defined in PlutusCore.Default.Builtins

NFData DefaultFun Source #
Instance details

Defined in PlutusCore.Default.Builtins

Flat DefaultFun Source #
Instance details

Defined in PlutusCore.Default.Builtins

Pretty DefaultFun Source #
Instance details

Defined in PlutusCore.Default.Builtins

ExMemoryUsage DefaultFun Source #
Instance details

Defined in PlutusCore.Default.Builtins

PrettyBy PrettyConfigPlc DefaultFun Source #
Instance details

Defined in PlutusCore.Default.Builtins

uni ~ DefaultUni => ToBuiltinMeaning uni DefaultFun Source #
Instance details

Defined in PlutusCore.Default.Builtins

type Rep DefaultFun Source #
Instance details

Defined in PlutusCore.Default.Builtins

type Rep DefaultFun = D1 (' MetaData "DefaultFun" "PlutusCore.Default.Builtins" "plutus-core-1.0.0.1-76bWF9ZEWyb4eDyjHx0kCS" ' False ) ((((( C1 (' MetaCons "AddInteger" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: ( C1 (' MetaCons "SubtractInteger" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: C1 (' MetaCons "MultiplyInteger" ' PrefixI ' False ) ( U1 :: Type -> Type ))) :+: ( C1 (' MetaCons "DivideInteger" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: ( C1 (' MetaCons "QuotientInteger" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: C1 (' MetaCons "RemainderInteger" ' PrefixI ' False ) ( U1 :: Type -> Type )))) :+: (( C1 (' MetaCons "ModInteger" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: ( C1 (' MetaCons "EqualsInteger" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: C1 (' MetaCons "LessThanInteger" ' PrefixI ' False ) ( U1 :: Type -> Type ))) :+: (( C1 (' MetaCons "LessThanEqualsInteger" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: C1 (' MetaCons "AppendByteString" ' PrefixI ' False ) ( U1 :: Type -> Type )) :+: ( C1 (' MetaCons "ConsByteString" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: C1 (' MetaCons "SliceByteString" ' PrefixI ' False ) ( U1 :: Type -> Type ))))) :+: ((( C1 (' MetaCons "LengthOfByteString" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: ( C1 (' MetaCons "IndexByteString" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: C1 (' MetaCons "EqualsByteString" ' PrefixI ' False ) ( U1 :: Type -> Type ))) :+: (( C1 (' MetaCons "LessThanByteString" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: C1 (' MetaCons "LessThanEqualsByteString" ' PrefixI ' False ) ( U1 :: Type -> Type )) :+: ( C1 (' MetaCons "Sha2_256" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: C1 (' MetaCons "Sha3_256" ' PrefixI ' False ) ( U1 :: Type -> Type )))) :+: (( C1 (' MetaCons "Blake2b_256" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: ( C1 (' MetaCons "VerifyEd25519Signature" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: C1 (' MetaCons "VerifyEcdsaSecp256k1Signature" ' PrefixI ' False ) ( U1 :: Type -> Type ))) :+: (( C1 (' MetaCons "VerifySchnorrSecp256k1Signature" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: C1 (' MetaCons "AppendString" ' PrefixI ' False ) ( U1 :: Type -> Type )) :+: ( C1 (' MetaCons "EqualsString" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: C1 (' MetaCons "EncodeUtf8" ' PrefixI ' False ) ( U1 :: Type -> Type )))))) :+: (((( C1 (' MetaCons "DecodeUtf8" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: ( C1 (' MetaCons "IfThenElse" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: C1 (' MetaCons "ChooseUnit" ' PrefixI ' False ) ( U1 :: Type -> Type ))) :+: ( C1 (' MetaCons "Trace" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: ( C1 (' MetaCons "FstPair" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: C1 (' MetaCons "SndPair" ' PrefixI ' False ) ( U1 :: Type -> Type )))) :+: (( C1 (' MetaCons "ChooseList" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: ( C1 (' MetaCons "MkCons" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: C1 (' MetaCons "HeadList" ' PrefixI ' False ) ( U1 :: Type -> Type ))) :+: (( C1 (' MetaCons "TailList" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: C1 (' MetaCons "NullList" ' PrefixI ' False ) ( U1 :: Type -> Type )) :+: ( C1 (' MetaCons "ChooseData" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: C1 (' MetaCons "ConstrData" ' PrefixI ' False ) ( U1 :: Type -> Type ))))) :+: ((( C1 (' MetaCons "MapData" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: ( C1 (' MetaCons "ListData" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: C1 (' MetaCons "IData" ' PrefixI ' False ) ( U1 :: Type -> Type ))) :+: (( C1 (' MetaCons "BData" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: C1 (' MetaCons "UnConstrData" ' PrefixI ' False ) ( U1 :: Type -> Type )) :+: ( C1 (' MetaCons "UnMapData" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: C1 (' MetaCons "UnListData" ' PrefixI ' False ) ( U1 :: Type -> Type )))) :+: (( C1 (' MetaCons "UnIData" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: ( C1 (' MetaCons "UnBData" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: C1 (' MetaCons "EqualsData" ' PrefixI ' False ) ( U1 :: Type -> Type ))) :+: (( C1 (' MetaCons "SerialiseData" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: C1 (' MetaCons "MkPairData" ' PrefixI ' False ) ( U1 :: Type -> Type )) :+: ( C1 (' MetaCons "MkNilData" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: C1 (' MetaCons "MkNilPairData" ' PrefixI ' False ) ( U1 :: Type -> Type )))))))
type CostingPart uni DefaultFun Source #
Instance details

Defined in PlutusCore.Default.Builtins

nonZeroArg :: ( Integer -> Integer -> Integer ) -> Integer -> Integer -> EvaluationResult Integer Source #

Turn a function into another function that returns EvaluationFailure when its second argument is 0 or calls the original function otherwise and wraps the result in EvaluationSuccess . Useful for correctly handling div , mod , etc.

builtinTagWidth :: NumBits Source #

Using 7 bits to encode builtin tags.