plutus-ledger-1.2.0.0: Wallet API
Safe HaskellNone
LanguageHaskell2010

Ledger

Synopsis

Documentation

data SatInt #

Instances

Instances details
Bounded SatInt 
Instance details

Defined in Data.SatInt

Enum SatInt 
Instance details

Defined in Data.SatInt

Eq SatInt 
Instance details

Defined in Data.SatInt

Integral SatInt 
Instance details

Defined in Data.SatInt

Num SatInt 
Instance details

Defined in Data.SatInt

Ord SatInt 
Instance details

Defined in Data.SatInt

Read SatInt 
Instance details

Defined in Data.SatInt

Real SatInt 
Instance details

Defined in Data.SatInt

Show SatInt 
Instance details

Defined in Data.SatInt

Generic SatInt 
Instance details

Defined in Data.SatInt

Associated Types

type Rep SatInt :: Type -> Type Source #

Bits SatInt 
Instance details

Defined in Data.SatInt

FiniteBits SatInt 
Instance details

Defined in Data.SatInt

NFData SatInt 
Instance details

Defined in Data.SatInt

Methods

rnf :: SatInt -> () Source #

Prim SatInt 
Instance details

Defined in Data.SatInt

FromJSON SatInt 
Instance details

Defined in Data.SatInt

Methods

parseJSON :: Value -> Parser SatInt

parseJSONList :: Value -> Parser [SatInt]

ToJSON SatInt 
Instance details

Defined in Data.SatInt

Methods

toJSON :: SatInt -> Value

toEncoding :: SatInt -> Encoding

toJSONList :: [SatInt] -> Value

toEncodingList :: [SatInt] -> Encoding

NoThunks SatInt 
Instance details

Defined in Data.SatInt

Methods

noThunks :: Context -> SatInt -> IO (Maybe ThunkInfo)

wNoThunks :: Context -> SatInt -> IO (Maybe ThunkInfo)

showTypeOf :: Proxy SatInt -> String

FromField SatInt 
Instance details

Defined in Data.SatInt

Methods

parseField :: Field -> Parser SatInt

ExMemoryUsage SatInt 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Lift SatInt 
Instance details

Defined in Data.SatInt

type Rep SatInt 
Instance details

Defined in Data.SatInt

type Rep SatInt = D1 ('MetaData "SatInt" "Data.SatInt" "plutus-core-1.0.0.1-6wMiyL0yerXJu56t8zBoKx" 'True) (C1 ('MetaCons "SI" 'PrefixI 'True) (S1 ('MetaSel ('Just "unSatInt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))

newtype ExMemory #

Constructors

ExMemory CostingInteger 

Instances

Instances details
Eq ExMemory 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Num ExMemory 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Ord ExMemory 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Show ExMemory 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Generic ExMemory 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Associated Types

type Rep ExMemory :: Type -> Type Source #

Semigroup ExMemory 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Monoid ExMemory 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

NFData ExMemory 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Methods

rnf :: ExMemory -> () Source #

FromJSON ExMemory 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Methods

parseJSON :: Value -> Parser ExMemory

parseJSONList :: Value -> Parser [ExMemory]

ToJSON ExMemory 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Methods

toJSON :: ExMemory -> Value

toEncoding :: ExMemory -> Encoding

toJSONList :: [ExMemory] -> Value

toEncodingList :: [ExMemory] -> Encoding

Pretty ExMemory 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Methods

pretty :: ExMemory -> Doc ann #

prettyList :: [ExMemory] -> Doc ann #

NoThunks ExMemory 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Methods

noThunks :: Context -> ExMemory -> IO (Maybe ThunkInfo)

wNoThunks :: Context -> ExMemory -> IO (Maybe ThunkInfo)

showTypeOf :: Proxy ExMemory -> String

ExMemoryUsage ExMemory 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Lift ExMemory 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

PrettyBy config ExMemory 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Methods

prettyBy :: config -> ExMemory -> Doc ann

prettyListBy :: config -> [ExMemory] -> Doc ann

type Rep ExMemory 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

type Rep ExMemory = D1 ('MetaData "ExMemory" "PlutusCore.Evaluation.Machine.ExMemory" "plutus-core-1.0.0.1-6wMiyL0yerXJu56t8zBoKx" 'True) (C1 ('MetaCons "ExMemory" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CostingInteger)))

data ExBudget #

Constructors

ExBudget 

Instances

Instances details
Eq ExBudget 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExBudget

Show ExBudget 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExBudget

Generic ExBudget 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExBudget

Associated Types

type Rep ExBudget :: Type -> Type Source #

Semigroup ExBudget 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExBudget

Monoid ExBudget 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExBudget

NFData ExBudget 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExBudget

Methods

rnf :: ExBudget -> () Source #

FromJSON ExBudget 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExBudget

Methods

parseJSON :: Value -> Parser ExBudget

parseJSONList :: Value -> Parser [ExBudget]

ToJSON ExBudget 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExBudget

Methods

toJSON :: ExBudget -> Value

toEncoding :: ExBudget -> Encoding

toJSONList :: [ExBudget] -> Value

toEncodingList :: [ExBudget] -> Encoding

Pretty ExBudget 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExBudget

Methods

pretty :: ExBudget -> Doc ann #

prettyList :: [ExBudget] -> Doc ann #

NoThunks ExBudget 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExBudget

Methods

noThunks :: Context -> ExBudget -> IO (Maybe ThunkInfo)

wNoThunks :: Context -> ExBudget -> IO (Maybe ThunkInfo)

showTypeOf :: Proxy ExBudget -> String

Lift ExBudget 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExBudget

PrettyBy config ExBudget 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExBudget

Methods

prettyBy :: config -> ExBudget -> Doc ann

prettyListBy :: config -> [ExBudget] -> Doc ann

type Rep ExBudget 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExBudget

type Rep ExBudget = D1 ('MetaData "ExBudget" "PlutusCore.Evaluation.Machine.ExBudget" "plutus-core-1.0.0.1-6wMiyL0yerXJu56t8zBoKx" 'False) (C1 ('MetaCons "ExBudget" 'PrefixI 'True) (S1 ('MetaSel ('Just "exBudgetCPU") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedUnpack) (Rec0 ExCPU) :*: S1 ('MetaSel ('Just "exBudgetMemory") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedUnpack) (Rec0 ExMemory)))

newtype ExCPU #

Constructors

ExCPU CostingInteger 

Instances

Instances details
Eq ExCPU 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Methods

(==) :: ExCPU -> ExCPU -> Bool Source #

(/=) :: ExCPU -> ExCPU -> Bool Source #

Num ExCPU 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Ord ExCPU 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Show ExCPU 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Generic ExCPU 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Associated Types

type Rep ExCPU :: Type -> Type Source #

Methods

from :: ExCPU -> Rep ExCPU x Source #

to :: Rep ExCPU x -> ExCPU Source #

Semigroup ExCPU 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Monoid ExCPU 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

NFData ExCPU 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Methods

rnf :: ExCPU -> () Source #

FromJSON ExCPU 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Methods

parseJSON :: Value -> Parser ExCPU

parseJSONList :: Value -> Parser [ExCPU]

ToJSON ExCPU 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Methods

toJSON :: ExCPU -> Value

toEncoding :: ExCPU -> Encoding

toJSONList :: [ExCPU] -> Value

toEncodingList :: [ExCPU] -> Encoding

Pretty ExCPU 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Methods

pretty :: ExCPU -> Doc ann #

prettyList :: [ExCPU] -> Doc ann #

NoThunks ExCPU 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Methods

noThunks :: Context -> ExCPU -> IO (Maybe ThunkInfo)

wNoThunks :: Context -> ExCPU -> IO (Maybe ThunkInfo)

showTypeOf :: Proxy ExCPU -> String

Lift ExCPU 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

PrettyBy config ExCPU 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Methods

prettyBy :: config -> ExCPU -> Doc ann

prettyListBy :: config -> [ExCPU] -> Doc ann

type Rep ExCPU 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

type Rep ExCPU = D1 ('MetaData "ExCPU" "PlutusCore.Evaluation.Machine.ExMemory" "plutus-core-1.0.0.1-6wMiyL0yerXJu56t8zBoKx" 'True) (C1 ('MetaCons "ExCPU" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CostingInteger)))

fromSymbol :: CurrencySymbol -> ValidatorHash #

ownCurrencySymbol :: ScriptContext -> CurrencySymbol #

spendsOutput :: TxInfo -> TxId -> Integer -> Bool #

valueProduced :: TxInfo -> Value #

valueSpent :: TxInfo -> Value #

data ScriptContext #

Instances

Instances details
Eq ScriptContext 
Instance details

Defined in Plutus.V1.Ledger.Contexts

Show ScriptContext 
Instance details

Defined in Plutus.V1.Ledger.Contexts

Generic ScriptContext 
Instance details

Defined in Plutus.V1.Ledger.Contexts

Associated Types

type Rep ScriptContext :: Type -> Type Source #

Eq ScriptContext 
Instance details

Defined in Plutus.V1.Ledger.Contexts

Pretty ScriptContext 
Instance details

Defined in Plutus.V1.Ledger.Contexts

Methods

pretty :: ScriptContext -> Doc ann #

prettyList :: [ScriptContext] -> Doc ann #

FromData ScriptContext 
Instance details

Defined in Plutus.V1.Ledger.Contexts

Methods

fromBuiltinData :: BuiltinData -> Maybe ScriptContext

ToData ScriptContext 
Instance details

Defined in Plutus.V1.Ledger.Contexts

Methods

toBuiltinData :: ScriptContext -> BuiltinData

UnsafeFromData ScriptContext 
Instance details

Defined in Plutus.V1.Ledger.Contexts

Methods

unsafeFromBuiltinData :: BuiltinData -> ScriptContext

IsScriptContext ScriptContext 
Instance details

Defined in Plutus.Script.Utils.Typed

Methods

mkUntypedValidator :: (UnsafeFromData d, UnsafeFromData r) => (d -> r -> ScriptContext -> Bool) -> UntypedValidator #

mkUntypedStakeValidator :: UnsafeFromData r => (r -> ScriptContext -> Bool) -> UntypedStakeValidator #

mkUntypedMintingPolicy :: UnsafeFromData r => (r -> ScriptContext -> Bool) -> UntypedMintingPolicy #

Lift DefaultUni ScriptContext 
Instance details

Defined in Plutus.V1.Ledger.Contexts

Methods

lift :: ScriptContext -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni ScriptContext 
Instance details

Defined in Plutus.V1.Ledger.Contexts

Methods

typeRep :: Proxy ScriptContext -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep ScriptContext 
Instance details

Defined in Plutus.V1.Ledger.Contexts

type Rep ScriptContext = D1 ('MetaData "ScriptContext" "Plutus.V1.Ledger.Contexts" "plutus-ledger-api-1.0.0.1-6EvbyJiK8IAAVEtnIJDu5Z" 'False) (C1 ('MetaCons "ScriptContext" 'PrefixI 'True) (S1 ('MetaSel ('Just "scriptContextTxInfo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TxInfo) :*: S1 ('MetaSel ('Just "scriptContextPurpose") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ScriptPurpose)))

data ScriptPurpose #

Instances

Instances details
Eq ScriptPurpose 
Instance details

Defined in Plutus.V1.Ledger.Contexts

Ord ScriptPurpose Source # 
Instance details

Defined in Ledger.Contexts.Orphans

Show ScriptPurpose 
Instance details

Defined in Plutus.V1.Ledger.Contexts

Generic ScriptPurpose 
Instance details

Defined in Plutus.V1.Ledger.Contexts

Associated Types

type Rep ScriptPurpose :: Type -> Type Source #

Eq ScriptPurpose 
Instance details

Defined in Plutus.V1.Ledger.Contexts

Pretty ScriptPurpose 
Instance details

Defined in Plutus.V1.Ledger.Contexts

Methods

pretty :: ScriptPurpose -> Doc ann #

prettyList :: [ScriptPurpose] -> Doc ann #

FromData ScriptPurpose 
Instance details

Defined in Plutus.V1.Ledger.Contexts

Methods

fromBuiltinData :: BuiltinData -> Maybe ScriptPurpose

ToData ScriptPurpose 
Instance details

Defined in Plutus.V1.Ledger.Contexts

Methods

toBuiltinData :: ScriptPurpose -> BuiltinData

UnsafeFromData ScriptPurpose 
Instance details

Defined in Plutus.V1.Ledger.Contexts

Methods

unsafeFromBuiltinData :: BuiltinData -> ScriptPurpose

Lift DefaultUni ScriptPurpose 
Instance details

Defined in Plutus.V1.Ledger.Contexts

Methods

lift :: ScriptPurpose -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni ScriptPurpose 
Instance details

Defined in Plutus.V1.Ledger.Contexts

Methods

typeRep :: Proxy ScriptPurpose -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep ScriptPurpose 
Instance details

Defined in Plutus.V1.Ledger.Contexts

type Rep ScriptPurpose = D1 ('MetaData "ScriptPurpose" "Plutus.V1.Ledger.Contexts" "plutus-ledger-api-1.0.0.1-6EvbyJiK8IAAVEtnIJDu5Z" 'False) ((C1 ('MetaCons "Minting" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CurrencySymbol)) :+: C1 ('MetaCons "Spending" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TxOutRef))) :+: (C1 ('MetaCons "Rewarding" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 StakingCredential)) :+: C1 ('MetaCons "Certifying" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DCert))))

data TxInInfo #

Constructors

TxInInfo 

Instances

Instances details
Eq TxInInfo 
Instance details

Defined in Plutus.V1.Ledger.Contexts

Show TxInInfo 
Instance details

Defined in Plutus.V1.Ledger.Contexts

Generic TxInInfo 
Instance details

Defined in Plutus.V1.Ledger.Contexts

Associated Types

type Rep TxInInfo :: Type -> Type Source #

Eq TxInInfo 
Instance details

Defined in Plutus.V1.Ledger.Contexts

Methods

(==) :: TxInInfo -> TxInInfo -> Bool

Pretty TxInInfo 
Instance details

Defined in Plutus.V1.Ledger.Contexts

Methods

pretty :: TxInInfo -> Doc ann #

prettyList :: [TxInInfo] -> Doc ann #

FromData TxInInfo 
Instance details

Defined in Plutus.V1.Ledger.Contexts

Methods

fromBuiltinData :: BuiltinData -> Maybe TxInInfo

ToData TxInInfo 
Instance details

Defined in Plutus.V1.Ledger.Contexts

Methods

toBuiltinData :: TxInInfo -> BuiltinData

UnsafeFromData TxInInfo 
Instance details

Defined in Plutus.V1.Ledger.Contexts

Methods

unsafeFromBuiltinData :: BuiltinData -> TxInInfo

Lift DefaultUni TxInInfo 
Instance details

Defined in Plutus.V1.Ledger.Contexts

Methods

lift :: TxInInfo -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni TxInInfo 
Instance details

Defined in Plutus.V1.Ledger.Contexts

Methods

typeRep :: Proxy TxInInfo -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep TxInInfo 
Instance details

Defined in Plutus.V1.Ledger.Contexts

type Rep TxInInfo = D1 ('MetaData "TxInInfo" "Plutus.V1.Ledger.Contexts" "plutus-ledger-api-1.0.0.1-6EvbyJiK8IAAVEtnIJDu5Z" 'False) (C1 ('MetaCons "TxInInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "txInInfoOutRef") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TxOutRef) :*: S1 ('MetaSel ('Just "txInInfoResolved") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TxOut)))

data TxInfo #

Instances

Instances details
Eq TxInfo 
Instance details

Defined in Plutus.V1.Ledger.Contexts

Show TxInfo 
Instance details

Defined in Plutus.V1.Ledger.Contexts

Generic TxInfo 
Instance details

Defined in Plutus.V1.Ledger.Contexts

Associated Types

type Rep TxInfo :: Type -> Type Source #

Eq TxInfo 
Instance details

Defined in Plutus.V1.Ledger.Contexts

Methods

(==) :: TxInfo -> TxInfo -> Bool

Pretty TxInfo 
Instance details

Defined in Plutus.V1.Ledger.Contexts

Methods

pretty :: TxInfo -> Doc ann #

prettyList :: [TxInfo] -> Doc ann #

FromData TxInfo 
Instance details

Defined in Plutus.V1.Ledger.Contexts

Methods

fromBuiltinData :: BuiltinData -> Maybe TxInfo

ToData TxInfo 
Instance details

Defined in Plutus.V1.Ledger.Contexts

Methods

toBuiltinData :: TxInfo -> BuiltinData

UnsafeFromData TxInfo 
Instance details

Defined in Plutus.V1.Ledger.Contexts

Methods

unsafeFromBuiltinData :: BuiltinData -> TxInfo

Lift DefaultUni TxInfo 
Instance details

Defined in Plutus.V1.Ledger.Contexts

Methods

lift :: TxInfo -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni TxInfo 
Instance details

Defined in Plutus.V1.Ledger.Contexts

Methods

typeRep :: Proxy TxInfo -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep TxInfo 
Instance details

Defined in Plutus.V1.Ledger.Contexts

data TxOutRef #

Constructors

TxOutRef 

Fields

Instances

Instances details
Eq TxOutRef 
Instance details

Defined in Plutus.V1.Ledger.Tx

Ord TxOutRef 
Instance details

Defined in Plutus.V1.Ledger.Tx

Show TxOutRef 
Instance details

Defined in Plutus.V1.Ledger.Tx

Generic TxOutRef 
Instance details

Defined in Plutus.V1.Ledger.Tx

Associated Types

type Rep TxOutRef :: Type -> Type Source #

NFData TxOutRef 
Instance details

Defined in Plutus.V1.Ledger.Tx

Methods

rnf :: TxOutRef -> () Source #

Serialise TxOutRef 
Instance details

Defined in Ledger.Tx.Orphans.V1

Methods

encode :: TxOutRef -> Encoding

decode :: Decoder s TxOutRef

encodeList :: [TxOutRef] -> Encoding

decodeList :: Decoder s [TxOutRef]

FromJSON TxOutRef 
Instance details

Defined in Ledger.Tx.Orphans.V1

Methods

parseJSON :: Value -> Parser TxOutRef

parseJSONList :: Value -> Parser [TxOutRef]

FromJSONKey TxOutRef 
Instance details

Defined in Ledger.Tx.Orphans.V1

Methods

fromJSONKey :: FromJSONKeyFunction TxOutRef

fromJSONKeyList :: FromJSONKeyFunction [TxOutRef]

ToJSON TxOutRef 
Instance details

Defined in Ledger.Tx.Orphans.V1

Methods

toJSON :: TxOutRef -> Value

toEncoding :: TxOutRef -> Encoding

toJSONList :: [TxOutRef] -> Value

toEncodingList :: [TxOutRef] -> Encoding

ToJSONKey TxOutRef 
Instance details

Defined in Ledger.Tx.Orphans.V1

Methods

toJSONKey :: ToJSONKeyFunction TxOutRef

toJSONKeyList :: ToJSONKeyFunction [TxOutRef]

Eq TxOutRef 
Instance details

Defined in Plutus.V1.Ledger.Tx

Methods

(==) :: TxOutRef -> TxOutRef -> Bool

Pretty TxOutRef 
Instance details

Defined in Plutus.V1.Ledger.Tx

Methods

pretty :: TxOutRef -> Doc ann #

prettyList :: [TxOutRef] -> Doc ann #

FromData TxOutRef 
Instance details

Defined in Plutus.V1.Ledger.Tx

Methods

fromBuiltinData :: BuiltinData -> Maybe TxOutRef

ToData TxOutRef 
Instance details

Defined in Plutus.V1.Ledger.Tx

Methods

toBuiltinData :: TxOutRef -> BuiltinData

UnsafeFromData TxOutRef 
Instance details

Defined in Plutus.V1.Ledger.Tx

Methods

unsafeFromBuiltinData :: BuiltinData -> TxOutRef

Lift DefaultUni TxOutRef 
Instance details

Defined in Plutus.V1.Ledger.Tx

Methods

lift :: TxOutRef -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni TxOutRef 
Instance details

Defined in Plutus.V1.Ledger.Tx

Methods

typeRep :: Proxy TxOutRef -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep TxOutRef 
Instance details

Defined in Plutus.V1.Ledger.Tx

type Rep TxOutRef = D1 ('MetaData "TxOutRef" "Plutus.V1.Ledger.Tx" "plutus-ledger-api-1.0.0.1-6EvbyJiK8IAAVEtnIJDu5Z" 'False) (C1 ('MetaCons "TxOutRef" 'PrefixI 'True) (S1 ('MetaSel ('Just "txOutRefId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TxId) :*: S1 ('MetaSel ('Just "txOutRefIdx") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer)))

newtype POSIXTime #

Constructors

POSIXTime 

Instances

Instances details
Enum POSIXTime 
Instance details

Defined in Plutus.V1.Ledger.Time

Eq POSIXTime 
Instance details

Defined in Plutus.V1.Ledger.Time

Integral POSIXTime 
Instance details

Defined in Plutus.V1.Ledger.Time

Num POSIXTime 
Instance details

Defined in Plutus.V1.Ledger.Time

Ord POSIXTime 
Instance details

Defined in Plutus.V1.Ledger.Time

Real POSIXTime 
Instance details

Defined in Plutus.V1.Ledger.Time

Show POSIXTime 
Instance details

Defined in Plutus.V1.Ledger.Time

Generic POSIXTime 
Instance details

Defined in Plutus.V1.Ledger.Time

Associated Types

type Rep POSIXTime :: Type -> Type Source #

NFData POSIXTime 
Instance details

Defined in Plutus.V1.Ledger.Time

Methods

rnf :: POSIXTime -> () Source #

Serialise POSIXTime 
Instance details

Defined in Ledger.Orphans

Methods

encode :: POSIXTime -> Encoding

decode :: Decoder s POSIXTime

encodeList :: [POSIXTime] -> Encoding

decodeList :: Decoder s [POSIXTime]

Hashable POSIXTime 
Instance details

Defined in Ledger.Orphans

FromJSON POSIXTime

Custom FromJSON instance which allows to parse a JSON number to a POSIXTime value. The parsed JSON value MUST be an Integer or else the parsing fails.

Instance details

Defined in Ledger.Orphans

Methods

parseJSON :: Value -> Parser POSIXTime

parseJSONList :: Value -> Parser [POSIXTime]

ToJSON POSIXTime

Custom ToJSON instance which allows to simply convert a POSIXTime value to a JSON number.

Instance details

Defined in Ledger.Orphans

Methods

toJSON :: POSIXTime -> Value

toEncoding :: POSIXTime -> Encoding

toJSONList :: [POSIXTime] -> Value

toEncodingList :: [POSIXTime] -> Encoding

Enum POSIXTime 
Instance details

Defined in Plutus.V1.Ledger.Time

Eq POSIXTime 
Instance details

Defined in Plutus.V1.Ledger.Time

Methods

(==) :: POSIXTime -> POSIXTime -> Bool

AdditiveGroup POSIXTime 
Instance details

Defined in Plutus.V1.Ledger.Time

AdditiveMonoid POSIXTime 
Instance details

Defined in Plutus.V1.Ledger.Time

Methods

zero :: POSIXTime

AdditiveSemigroup POSIXTime 
Instance details

Defined in Plutus.V1.Ledger.Time

Ord POSIXTime 
Instance details

Defined in Plutus.V1.Ledger.Time

Pretty POSIXTime 
Instance details

Defined in Plutus.V1.Ledger.Time

Methods

pretty :: POSIXTime -> Doc ann #

prettyList :: [POSIXTime] -> Doc ann #

FromData POSIXTime 
Instance details

Defined in Plutus.V1.Ledger.Time

Methods

fromBuiltinData :: BuiltinData -> Maybe POSIXTime

ToData POSIXTime 
Instance details

Defined in Plutus.V1.Ledger.Time

Methods

toBuiltinData :: POSIXTime -> BuiltinData

UnsafeFromData POSIXTime 
Instance details

Defined in Plutus.V1.Ledger.Time

Methods

unsafeFromBuiltinData :: BuiltinData -> POSIXTime

Lift DefaultUni POSIXTime 
Instance details

Defined in Plutus.V1.Ledger.Time

Methods

lift :: POSIXTime -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni POSIXTime 
Instance details

Defined in Plutus.V1.Ledger.Time

Methods

typeRep :: Proxy POSIXTime -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep POSIXTime 
Instance details

Defined in Plutus.V1.Ledger.Time

type Rep POSIXTime = D1 ('MetaData "POSIXTime" "Plutus.V1.Ledger.Time" "plutus-ledger-api-1.0.0.1-6EvbyJiK8IAAVEtnIJDu5Z" 'True) (C1 ('MetaCons "POSIXTime" 'PrefixI 'True) (S1 ('MetaSel ('Just "getPOSIXTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer)))

newtype PubKeyHash #

Constructors

PubKeyHash 

Fields

Instances

Instances details
Eq PubKeyHash 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Ord PubKeyHash 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Show PubKeyHash 
Instance details

Defined in Plutus.V1.Ledger.Crypto

IsString PubKeyHash 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Generic PubKeyHash 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Associated Types

type Rep PubKeyHash :: Type -> Type Source #

NFData PubKeyHash 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Methods

rnf :: PubKeyHash -> () Source #

Serialise PubKeyHash 
Instance details

Defined in Ledger.Crypto.Orphans

Methods

encode :: PubKeyHash -> Encoding

decode :: Decoder s PubKeyHash

encodeList :: [PubKeyHash] -> Encoding

decodeList :: Decoder s [PubKeyHash]

Hashable PubKeyHash 
Instance details

Defined in Ledger.Crypto.Orphans

FromJSON PubKeyHash 
Instance details

Defined in Ledger.Crypto.Orphans

Methods

parseJSON :: Value -> Parser PubKeyHash

parseJSONList :: Value -> Parser [PubKeyHash]

FromJSONKey PubKeyHash 
Instance details

Defined in Ledger.Crypto.Orphans

Methods

fromJSONKey :: FromJSONKeyFunction PubKeyHash

fromJSONKeyList :: FromJSONKeyFunction [PubKeyHash]

ToJSON PubKeyHash 
Instance details

Defined in Ledger.Crypto.Orphans

Methods

toJSON :: PubKeyHash -> Value

toEncoding :: PubKeyHash -> Encoding

toJSONList :: [PubKeyHash] -> Value

toEncodingList :: [PubKeyHash] -> Encoding

ToJSONKey PubKeyHash 
Instance details

Defined in Ledger.Crypto.Orphans

Methods

toJSONKey :: ToJSONKeyFunction PubKeyHash

toJSONKeyList :: ToJSONKeyFunction [PubKeyHash]

Eq PubKeyHash 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Methods

(==) :: PubKeyHash -> PubKeyHash -> Bool

Ord PubKeyHash 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Pretty PubKeyHash 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Methods

pretty :: PubKeyHash -> Doc ann #

prettyList :: [PubKeyHash] -> Doc ann #

FromData PubKeyHash 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Methods

fromBuiltinData :: BuiltinData -> Maybe PubKeyHash

ToData PubKeyHash 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Methods

toBuiltinData :: PubKeyHash -> BuiltinData

UnsafeFromData PubKeyHash 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Methods

unsafeFromBuiltinData :: BuiltinData -> PubKeyHash

Newtype PubKeyHash 
Instance details

Defined in Ledger.Crypto.Orphans

Associated Types

type O PubKeyHash

Lift DefaultUni PubKeyHash 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Methods

lift :: PubKeyHash -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni PubKeyHash 
Instance details

Defined in Plutus.V1.Ledger.Crypto

Methods

typeRep :: Proxy PubKeyHash -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep PubKeyHash 
Instance details

Defined in Plutus.V1.Ledger.Crypto

type Rep PubKeyHash = D1 ('MetaData "PubKeyHash" "Plutus.V1.Ledger.Crypto" "plutus-ledger-api-1.0.0.1-6EvbyJiK8IAAVEtnIJDu5Z" 'True) (C1 ('MetaCons "PubKeyHash" 'PrefixI 'True) (S1 ('MetaSel ('Just "getPubKeyHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinByteString)))
type O PubKeyHash 
Instance details

Defined in Ledger.Crypto.Orphans

type O PubKeyHash = GO (Rep PubKeyHash)

newtype DatumHash #

Constructors

DatumHash BuiltinByteString 

Instances

Instances details
Eq DatumHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Ord DatumHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Show DatumHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

IsString DatumHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Generic DatumHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Associated Types

type Rep DatumHash :: Type -> Type Source #

NFData DatumHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

rnf :: DatumHash -> () Source #

Serialise DatumHash 
Instance details

Defined in Ledger.Scripts.Orphans

Methods

encode :: DatumHash -> Encoding

decode :: Decoder s DatumHash

encodeList :: [DatumHash] -> Encoding

decodeList :: Decoder s [DatumHash]

Hashable DatumHash 
Instance details

Defined in Ledger.Scripts.Orphans

FromJSON DatumHash 
Instance details

Defined in Ledger.Scripts.Orphans

Methods

parseJSON :: Value -> Parser DatumHash

parseJSONList :: Value -> Parser [DatumHash]

FromJSONKey DatumHash 
Instance details

Defined in Ledger.Scripts.Orphans

Methods

fromJSONKey :: FromJSONKeyFunction DatumHash

fromJSONKeyList :: FromJSONKeyFunction [DatumHash]

ToJSON DatumHash 
Instance details

Defined in Ledger.Scripts.Orphans

Methods

toJSON :: DatumHash -> Value

toEncoding :: DatumHash -> Encoding

toJSONList :: [DatumHash] -> Value

toEncodingList :: [DatumHash] -> Encoding

ToJSONKey DatumHash 
Instance details

Defined in Ledger.Scripts.Orphans

Methods

toJSONKey :: ToJSONKeyFunction DatumHash

toJSONKeyList :: ToJSONKeyFunction [DatumHash]

Eq DatumHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

(==) :: DatumHash -> DatumHash -> Bool

Ord DatumHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Pretty DatumHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

pretty :: DatumHash -> Doc ann #

prettyList :: [DatumHash] -> Doc ann #

FromData DatumHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

fromBuiltinData :: BuiltinData -> Maybe DatumHash

ToData DatumHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

toBuiltinData :: DatumHash -> BuiltinData

UnsafeFromData DatumHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

unsafeFromBuiltinData :: BuiltinData -> DatumHash

Lift DefaultUni DatumHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

lift :: DatumHash -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni DatumHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

typeRep :: Proxy DatumHash -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep DatumHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

type Rep DatumHash = D1 ('MetaData "DatumHash" "Plutus.V1.Ledger.Scripts" "plutus-ledger-api-1.0.0.1-6EvbyJiK8IAAVEtnIJDu5Z" 'True) (C1 ('MetaCons "DatumHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinByteString)))

newtype Datum #

Constructors

Datum 

Fields

Instances

Instances details
Eq Datum 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

(==) :: Datum -> Datum -> Bool Source #

(/=) :: Datum -> Datum -> Bool Source #

Ord Datum 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Show Datum 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Generic Datum 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Associated Types

type Rep Datum :: Type -> Type Source #

Methods

from :: Datum -> Rep Datum x Source #

to :: Rep Datum x -> Datum Source #

NFData Datum 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

rnf :: Datum -> () Source #

Serialise Datum 
Instance details

Defined in Ledger.Scripts.Orphans

Methods

encode :: Datum -> Encoding

decode :: Decoder s Datum

encodeList :: [Datum] -> Encoding

decodeList :: Decoder s [Datum]

FromJSON Datum 
Instance details

Defined in Ledger.Scripts.Orphans

Methods

parseJSON :: Value -> Parser Datum

parseJSONList :: Value -> Parser [Datum]

ToJSON Datum 
Instance details

Defined in Ledger.Scripts.Orphans

Methods

toJSON :: Datum -> Value

toEncoding :: Datum -> Encoding

toJSONList :: [Datum] -> Value

toEncodingList :: [Datum] -> Encoding

Eq Datum 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

(==) :: Datum -> Datum -> Bool

Pretty Datum 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

pretty :: Datum -> Doc ann #

prettyList :: [Datum] -> Doc ann #

FromData Datum 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

fromBuiltinData :: BuiltinData -> Maybe Datum

ToData Datum 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

toBuiltinData :: Datum -> BuiltinData

UnsafeFromData Datum 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

unsafeFromBuiltinData :: BuiltinData -> Datum

Lift DefaultUni Datum 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

lift :: Datum -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni Datum 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

typeRep :: Proxy Datum -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep Datum 
Instance details

Defined in Plutus.V1.Ledger.Scripts

type Rep Datum = D1 ('MetaData "Datum" "Plutus.V1.Ledger.Scripts" "plutus-ledger-api-1.0.0.1-6EvbyJiK8IAAVEtnIJDu5Z" 'True) (C1 ('MetaCons "Datum" 'PrefixI 'True) (S1 ('MetaSel ('Just "getDatum") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinData)))

data Interval a #

Constructors

Interval 

Fields

Instances

Instances details
Functor Interval 
Instance details

Defined in Plutus.V1.Ledger.Interval

Methods

fmap :: (a -> b) -> Interval a -> Interval b

(Typeable DefaultUni a, Lift DefaultUni (LowerBound a), Lift DefaultUni (UpperBound a)) => Lift DefaultUni (Interval a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Methods

lift :: Interval a -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Eq a => Eq (Interval a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Methods

(==) :: Interval a -> Interval a -> Bool Source #

(/=) :: Interval a -> Interval a -> Bool Source #

Ord a => Ord (Interval a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Show a => Show (Interval a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Generic (Interval a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Associated Types

type Rep (Interval a) :: Type -> Type Source #

Methods

from :: Interval a -> Rep (Interval a) x Source #

to :: Rep (Interval a) x -> Interval a Source #

NFData a => NFData (Interval a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Methods

rnf :: Interval a -> () Source #

Serialise a => Serialise (Interval a) 
Instance details

Defined in Ledger.Slot

Methods

encode :: Interval a -> Encoding

decode :: Decoder s (Interval a)

encodeList :: [Interval a] -> Encoding

decodeList :: Decoder s [Interval a]

Hashable a => Hashable (Interval a) 
Instance details

Defined in Ledger.Slot

Methods

hashWithSalt :: Int -> Interval a -> Int

hash :: Interval a -> Int

FromJSON a => FromJSON (Interval a) 
Instance details

Defined in Ledger.Slot

Methods

parseJSON :: Value -> Parser (Interval a)

parseJSONList :: Value -> Parser [Interval a]

ToJSON a => ToJSON (Interval a) 
Instance details

Defined in Ledger.Slot

Methods

toJSON :: Interval a -> Value

toEncoding :: Interval a -> Encoding

toJSONList :: [Interval a] -> Value

toEncodingList :: [Interval a] -> Encoding

Eq a => Eq (Interval a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Methods

(==) :: Interval a -> Interval a -> Bool

Ord a => BoundedJoinSemiLattice (Interval a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Methods

bottom :: Interval a

Ord a => BoundedMeetSemiLattice (Interval a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Methods

top :: Interval a

Ord a => JoinSemiLattice (Interval a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Methods

(\/) :: Interval a -> Interval a -> Interval a

Ord a => MeetSemiLattice (Interval a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Methods

(/\) :: Interval a -> Interval a -> Interval a

Pretty a => Pretty (Interval a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Methods

pretty :: Interval a -> Doc ann #

prettyList :: [Interval a] -> Doc ann #

FromData a => FromData (Interval a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Methods

fromBuiltinData :: BuiltinData -> Maybe (Interval a)

ToData a => ToData (Interval a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Methods

toBuiltinData :: Interval a -> BuiltinData

UnsafeFromData a => UnsafeFromData (Interval a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Methods

unsafeFromBuiltinData :: BuiltinData -> Interval a

Typeable DefaultUni Interval 
Instance details

Defined in Plutus.V1.Ledger.Interval

Methods

typeRep :: Proxy Interval -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep (Interval a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

type Rep (Interval a) = D1 ('MetaData "Interval" "Plutus.V1.Ledger.Interval" "plutus-ledger-api-1.0.0.1-6EvbyJiK8IAAVEtnIJDu5Z" 'False) (C1 ('MetaCons "Interval" 'PrefixI 'True) (S1 ('MetaSel ('Just "ivFrom") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (LowerBound a)) :*: S1 ('MetaSel ('Just "ivTo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (UpperBound a))))

newtype ValidatorHash #

Constructors

ValidatorHash BuiltinByteString 

Instances

Instances details
Eq ValidatorHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Ord ValidatorHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Show ValidatorHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

IsString ValidatorHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Generic ValidatorHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Associated Types

type Rep ValidatorHash :: Type -> Type Source #

NFData ValidatorHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

rnf :: ValidatorHash -> () Source #

Serialise ValidatorHash 
Instance details

Defined in Ledger.Scripts.Orphans

Methods

encode :: ValidatorHash -> Encoding

decode :: Decoder s ValidatorHash

encodeList :: [ValidatorHash] -> Encoding

decodeList :: Decoder s [ValidatorHash]

Hashable ValidatorHash 
Instance details

Defined in Ledger.Scripts.Orphans

FromJSON ValidatorHash 
Instance details

Defined in Ledger.Scripts.Orphans

Methods

parseJSON :: Value -> Parser ValidatorHash

parseJSONList :: Value -> Parser [ValidatorHash]

FromJSONKey ValidatorHash 
Instance details

Defined in Ledger.Scripts.Orphans

Methods

fromJSONKey :: FromJSONKeyFunction ValidatorHash

fromJSONKeyList :: FromJSONKeyFunction [ValidatorHash]

ToJSON ValidatorHash 
Instance details

Defined in Ledger.Scripts.Orphans

Methods

toJSON :: ValidatorHash -> Value

toEncoding :: ValidatorHash -> Encoding

toJSONList :: [ValidatorHash] -> Value

toEncodingList :: [ValidatorHash] -> Encoding

ToJSONKey ValidatorHash 
Instance details

Defined in Ledger.Scripts.Orphans

Methods

toJSONKey :: ToJSONKeyFunction ValidatorHash

toJSONKeyList :: ToJSONKeyFunction [ValidatorHash]

Eq ValidatorHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Ord ValidatorHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Pretty ValidatorHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

pretty :: ValidatorHash -> Doc ann #

prettyList :: [ValidatorHash] -> Doc ann #

FromData ValidatorHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

fromBuiltinData :: BuiltinData -> Maybe ValidatorHash

ToData ValidatorHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

toBuiltinData :: ValidatorHash -> BuiltinData

UnsafeFromData ValidatorHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

unsafeFromBuiltinData :: BuiltinData -> ValidatorHash

Lift DefaultUni ValidatorHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

lift :: ValidatorHash -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni ValidatorHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

typeRep :: Proxy ValidatorHash -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep ValidatorHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

type Rep ValidatorHash = D1 ('MetaData "ValidatorHash" "Plutus.V1.Ledger.Scripts" "plutus-ledger-api-1.0.0.1-6EvbyJiK8IAAVEtnIJDu5Z" 'True) (C1 ('MetaCons "ValidatorHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinByteString)))

newtype MintingPolicyHash #

Constructors

MintingPolicyHash BuiltinByteString 

Instances

Instances details
Eq MintingPolicyHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Ord MintingPolicyHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Show MintingPolicyHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

IsString MintingPolicyHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Generic MintingPolicyHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Associated Types

type Rep MintingPolicyHash :: Type -> Type Source #

NFData MintingPolicyHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

rnf :: MintingPolicyHash -> () Source #

Serialise MintingPolicyHash 
Instance details

Defined in Ledger.Scripts.Orphans

Methods

encode :: MintingPolicyHash -> Encoding

decode :: Decoder s MintingPolicyHash

encodeList :: [MintingPolicyHash] -> Encoding

decodeList :: Decoder s [MintingPolicyHash]

Hashable MintingPolicyHash 
Instance details

Defined in Ledger.Scripts.Orphans

FromJSON MintingPolicyHash 
Instance details

Defined in Ledger.Scripts.Orphans

Methods

parseJSON :: Value -> Parser MintingPolicyHash

parseJSONList :: Value -> Parser [MintingPolicyHash]

FromJSONKey MintingPolicyHash 
Instance details

Defined in Ledger.Scripts.Orphans

Methods

fromJSONKey :: FromJSONKeyFunction MintingPolicyHash

fromJSONKeyList :: FromJSONKeyFunction [MintingPolicyHash]

ToJSON MintingPolicyHash 
Instance details

Defined in Ledger.Scripts.Orphans

ToJSONKey MintingPolicyHash 
Instance details

Defined in Ledger.Scripts.Orphans

Methods

toJSONKey :: ToJSONKeyFunction MintingPolicyHash

toJSONKeyList :: ToJSONKeyFunction [MintingPolicyHash]

Eq MintingPolicyHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Ord MintingPolicyHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Pretty MintingPolicyHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

pretty :: MintingPolicyHash -> Doc ann #

prettyList :: [MintingPolicyHash] -> Doc ann #

FromData MintingPolicyHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

fromBuiltinData :: BuiltinData -> Maybe MintingPolicyHash

ToData MintingPolicyHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

toBuiltinData :: MintingPolicyHash -> BuiltinData

UnsafeFromData MintingPolicyHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

unsafeFromBuiltinData :: BuiltinData -> MintingPolicyHash

Lift DefaultUni MintingPolicyHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

lift :: MintingPolicyHash -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni MintingPolicyHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

typeRep :: Proxy MintingPolicyHash -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep MintingPolicyHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

type Rep MintingPolicyHash = D1 ('MetaData "MintingPolicyHash" "Plutus.V1.Ledger.Scripts" "plutus-ledger-api-1.0.0.1-6EvbyJiK8IAAVEtnIJDu5Z" 'True) (C1 ('MetaCons "MintingPolicyHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinByteString)))

isPayToScriptOut :: TxOut -> Bool #

isPubKeyOut :: TxOut -> Bool #

pubKeyHashTxOut :: Value -> PubKeyHash -> TxOut #

pubKeyTxIns :: Fold (Set TxIn) TxIn #

scriptTxIns :: Fold (Set TxIn) TxIn #

data RedeemerPtr #

Instances

Instances details
Eq RedeemerPtr 
Instance details

Defined in Plutus.V1.Ledger.Tx

Ord RedeemerPtr 
Instance details

Defined in Plutus.V1.Ledger.Tx

Show RedeemerPtr 
Instance details

Defined in Plutus.V1.Ledger.Tx

Generic RedeemerPtr 
Instance details

Defined in Plutus.V1.Ledger.Tx

Associated Types

type Rep RedeemerPtr :: Type -> Type Source #

NFData RedeemerPtr 
Instance details

Defined in Plutus.V1.Ledger.Tx

Methods

rnf :: RedeemerPtr -> () Source #

Serialise RedeemerPtr 
Instance details

Defined in Ledger.Tx.Orphans.V1

Methods

encode :: RedeemerPtr -> Encoding

decode :: Decoder s RedeemerPtr

encodeList :: [RedeemerPtr] -> Encoding

decodeList :: Decoder s [RedeemerPtr]

FromJSON RedeemerPtr 
Instance details

Defined in Ledger.Tx.Orphans.V1

Methods

parseJSON :: Value -> Parser RedeemerPtr

parseJSONList :: Value -> Parser [RedeemerPtr]

FromJSONKey RedeemerPtr 
Instance details

Defined in Ledger.Tx.Orphans.V1

Methods

fromJSONKey :: FromJSONKeyFunction RedeemerPtr

fromJSONKeyList :: FromJSONKeyFunction [RedeemerPtr]

ToJSON RedeemerPtr 
Instance details

Defined in Ledger.Tx.Orphans.V1

Methods

toJSON :: RedeemerPtr -> Value

toEncoding :: RedeemerPtr -> Encoding

toJSONList :: [RedeemerPtr] -> Value

toEncodingList :: [RedeemerPtr] -> Encoding

ToJSONKey RedeemerPtr 
Instance details

Defined in Ledger.Tx.Orphans.V1

Methods

toJSONKey :: ToJSONKeyFunction RedeemerPtr

toJSONKeyList :: ToJSONKeyFunction [RedeemerPtr]

type Rep RedeemerPtr 
Instance details

Defined in Plutus.V1.Ledger.Tx

type Rep RedeemerPtr = D1 ('MetaData "RedeemerPtr" "Plutus.V1.Ledger.Tx" "plutus-ledger-api-1.0.0.1-6EvbyJiK8IAAVEtnIJDu5Z" 'False) (C1 ('MetaCons "RedeemerPtr" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ScriptTag) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer)))

data ScriptTag #

Constructors

Spend 
Mint 
Cert 
Reward 

Instances

Instances details
Eq ScriptTag 
Instance details

Defined in Plutus.V1.Ledger.Tx

Ord ScriptTag 
Instance details

Defined in Plutus.V1.Ledger.Tx

Show ScriptTag 
Instance details

Defined in Plutus.V1.Ledger.Tx

Generic ScriptTag 
Instance details

Defined in Plutus.V1.Ledger.Tx

Associated Types

type Rep ScriptTag :: Type -> Type Source #

NFData ScriptTag 
Instance details

Defined in Plutus.V1.Ledger.Tx

Methods

rnf :: ScriptTag -> () Source #

Serialise ScriptTag 
Instance details

Defined in Ledger.Tx.Orphans.V1

Methods

encode :: ScriptTag -> Encoding

decode :: Decoder s ScriptTag

encodeList :: [ScriptTag] -> Encoding

decodeList :: Decoder s [ScriptTag]

FromJSON ScriptTag 
Instance details

Defined in Ledger.Tx.Orphans.V1

Methods

parseJSON :: Value -> Parser ScriptTag

parseJSONList :: Value -> Parser [ScriptTag]

ToJSON ScriptTag 
Instance details

Defined in Ledger.Tx.Orphans.V1

Methods

toJSON :: ScriptTag -> Value

toEncoding :: ScriptTag -> Encoding

toJSONList :: [ScriptTag] -> Value

toEncodingList :: [ScriptTag] -> Encoding

type Rep ScriptTag 
Instance details

Defined in Plutus.V1.Ledger.Tx

type Rep ScriptTag = D1 ('MetaData "ScriptTag" "Plutus.V1.Ledger.Tx" "plutus-ledger-api-1.0.0.1-6EvbyJiK8IAAVEtnIJDu5Z" 'False) ((C1 ('MetaCons "Spend" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Mint" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Cert" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Reward" 'PrefixI 'False) (U1 :: Type -> Type)))

newtype Validator #

Constructors

Validator 

Fields

Instances

Instances details
Eq Validator 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Ord Validator 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Show Validator 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Generic Validator 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Associated Types

type Rep Validator :: Type -> Type Source #

NFData Validator 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

rnf :: Validator -> () Source #

Serialise Validator 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

encode :: Validator -> Encoding

decode :: Decoder s Validator

encodeList :: [Validator] -> Encoding

decodeList :: Decoder s [Validator]

FromJSON Validator 
Instance details

Defined in Ledger.Scripts.Orphans

Methods

parseJSON :: Value -> Parser Validator

parseJSONList :: Value -> Parser [Validator]

ToJSON Validator 
Instance details

Defined in Ledger.Scripts.Orphans

Methods

toJSON :: Validator -> Value

toEncoding :: Validator -> Encoding

toJSONList :: [Validator] -> Value

toEncodingList :: [Validator] -> Encoding

Pretty Validator 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

pretty :: Validator -> Doc ann #

prettyList :: [Validator] -> Doc ann #

type Rep Validator 
Instance details

Defined in Plutus.V1.Ledger.Scripts

type Rep Validator = D1 ('MetaData "Validator" "Plutus.V1.Ledger.Scripts" "plutus-ledger-api-1.0.0.1-6EvbyJiK8IAAVEtnIJDu5Z" 'True) (C1 ('MetaCons "Validator" 'PrefixI 'True) (S1 ('MetaSel ('Just "getValidator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Script)))

newtype Redeemer #

Constructors

Redeemer 

Fields

Instances

Instances details
Eq Redeemer 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Ord Redeemer 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Show Redeemer 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Generic Redeemer 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Associated Types

type Rep Redeemer :: Type -> Type Source #

NFData Redeemer 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

rnf :: Redeemer -> () Source #

Serialise Redeemer 
Instance details

Defined in Ledger.Scripts.Orphans

Methods

encode :: Redeemer -> Encoding

decode :: Decoder s Redeemer

encodeList :: [Redeemer] -> Encoding

decodeList :: Decoder s [Redeemer]

FromJSON Redeemer 
Instance details

Defined in Ledger.Scripts.Orphans

Methods

parseJSON :: Value -> Parser Redeemer

parseJSONList :: Value -> Parser [Redeemer]

ToJSON Redeemer 
Instance details

Defined in Ledger.Scripts.Orphans

Methods

toJSON :: Redeemer -> Value

toEncoding :: Redeemer -> Encoding

toJSONList :: [Redeemer] -> Value

toEncodingList :: [Redeemer] -> Encoding

Eq Redeemer 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

(==) :: Redeemer -> Redeemer -> Bool

Pretty Redeemer 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

pretty :: Redeemer -> Doc ann #

prettyList :: [Redeemer] -> Doc ann #

FromData Redeemer 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

fromBuiltinData :: BuiltinData -> Maybe Redeemer

ToData Redeemer 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

toBuiltinData :: Redeemer -> BuiltinData

UnsafeFromData Redeemer 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

unsafeFromBuiltinData :: BuiltinData -> Redeemer

Lift DefaultUni Redeemer 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

lift :: Redeemer -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni Redeemer 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

typeRep :: Proxy Redeemer -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep Redeemer 
Instance details

Defined in Plutus.V1.Ledger.Scripts

type Rep Redeemer = D1 ('MetaData "Redeemer" "Plutus.V1.Ledger.Scripts" "plutus-ledger-api-1.0.0.1-6EvbyJiK8IAAVEtnIJDu5Z" 'True) (C1 ('MetaCons "Redeemer" 'PrefixI 'True) (S1 ('MetaSel ('Just "getRedeemer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinData)))

data Address #

Instances

Instances details
Eq Address 
Instance details

Defined in Plutus.V1.Ledger.Address

Ord Address 
Instance details

Defined in Plutus.V1.Ledger.Address

Show Address 
Instance details

Defined in Plutus.V1.Ledger.Address

Generic Address 
Instance details

Defined in Plutus.V1.Ledger.Address

Associated Types

type Rep Address :: Type -> Type Source #

NFData Address 
Instance details

Defined in Plutus.V1.Ledger.Address

Methods

rnf :: Address -> () Source #

Serialise Address 
Instance details

Defined in Ledger.Address.Orphans

Methods

encode :: Address -> Encoding

decode :: Decoder s Address

encodeList :: [Address] -> Encoding

decodeList :: Decoder s [Address]

FromJSON Address 
Instance details

Defined in Ledger.Address.Orphans

Methods

parseJSON :: Value -> Parser Address

parseJSONList :: Value -> Parser [Address]

ToJSON Address 
Instance details

Defined in Ledger.Address.Orphans

Methods

toJSON :: Address -> Value

toEncoding :: Address -> Encoding

toJSONList :: [Address] -> Value

toEncodingList :: [Address] -> Encoding

Eq Address 
Instance details

Defined in Plutus.V1.Ledger.Address

Methods

(==) :: Address -> Address -> Bool

Pretty Address 
Instance details

Defined in Plutus.V1.Ledger.Address

Methods

pretty :: Address -> Doc ann #

prettyList :: [Address] -> Doc ann #

FromData Address 
Instance details

Defined in Plutus.V1.Ledger.Address

Methods

fromBuiltinData :: BuiltinData -> Maybe Address

ToData Address 
Instance details

Defined in Plutus.V1.Ledger.Address

Methods

toBuiltinData :: Address -> BuiltinData

UnsafeFromData Address 
Instance details

Defined in Plutus.V1.Ledger.Address

Methods

unsafeFromBuiltinData :: BuiltinData -> Address

Lift DefaultUni Address 
Instance details

Defined in Plutus.V1.Ledger.Address

Methods

lift :: Address -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni Address 
Instance details

Defined in Plutus.V1.Ledger.Address

Methods

typeRep :: Proxy Address -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep Address 
Instance details

Defined in Plutus.V1.Ledger.Address

type Rep Address = D1 ('MetaData "Address" "Plutus.V1.Ledger.Address" "plutus-ledger-api-1.0.0.1-6EvbyJiK8IAAVEtnIJDu5Z" 'False) (C1 ('MetaCons "Address" 'PrefixI 'True) (S1 ('MetaSel ('Just "addressCredential") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Credential) :*: S1 ('MetaSel ('Just "addressStakingCredential") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe StakingCredential))))

applyArguments :: Script -> [Data] -> Script #

evaluateScript :: MonadError ScriptError m => Script -> m (ExBudget, [Text]) #

fromCompiledCode :: CompiledCode a -> Script #

mkMintingPolicyScript :: CompiledCode (BuiltinData -> BuiltinData -> ()) -> MintingPolicy #

mkStakeValidatorScript :: CompiledCode (BuiltinData -> BuiltinData -> ()) -> StakeValidator #

mkValidatorScript :: CompiledCode (BuiltinData -> BuiltinData -> BuiltinData -> ()) -> Validator #

runScript :: MonadError ScriptError m => Context -> Validator -> Datum -> Redeemer -> m (ExBudget, [Text]) #

newtype Context #

Constructors

Context BuiltinData 

Instances

Instances details
Show Context 
Instance details

Defined in Plutus.V1.Ledger.Scripts

FromJSON Context 
Instance details

Defined in Ledger.Scripts.Orphans

Methods

parseJSON :: Value -> Parser Context

parseJSONList :: Value -> Parser [Context]

ToJSON Context 
Instance details

Defined in Ledger.Scripts.Orphans

Methods

toJSON :: Context -> Value

toEncoding :: Context -> Encoding

toJSONList :: [Context] -> Value

toEncodingList :: [Context] -> Encoding

Pretty Context 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

pretty :: Context -> Doc ann #

prettyList :: [Context] -> Doc ann #

newtype MintingPolicy #

Constructors

MintingPolicy 

Instances

Instances details
Eq MintingPolicy 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Ord MintingPolicy 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Show MintingPolicy 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Generic MintingPolicy 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Associated Types

type Rep MintingPolicy :: Type -> Type Source #

NFData MintingPolicy 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

rnf :: MintingPolicy -> () Source #

Serialise MintingPolicy 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

encode :: MintingPolicy -> Encoding

decode :: Decoder s MintingPolicy

encodeList :: [MintingPolicy] -> Encoding

decodeList :: Decoder s [MintingPolicy]

FromJSON MintingPolicy 
Instance details

Defined in Ledger.Scripts.Orphans

Methods

parseJSON :: Value -> Parser MintingPolicy

parseJSONList :: Value -> Parser [MintingPolicy]

ToJSON MintingPolicy 
Instance details

Defined in Ledger.Scripts.Orphans

Methods

toJSON :: MintingPolicy -> Value

toEncoding :: MintingPolicy -> Encoding

toJSONList :: [MintingPolicy] -> Value

toEncodingList :: [MintingPolicy] -> Encoding

Pretty MintingPolicy 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

pretty :: MintingPolicy -> Doc ann #

prettyList :: [MintingPolicy] -> Doc ann #

type Rep MintingPolicy 
Instance details

Defined in Plutus.V1.Ledger.Scripts

type Rep MintingPolicy = D1 ('MetaData "MintingPolicy" "Plutus.V1.Ledger.Scripts" "plutus-ledger-api-1.0.0.1-6EvbyJiK8IAAVEtnIJDu5Z" 'True) (C1 ('MetaCons "MintingPolicy" 'PrefixI 'True) (S1 ('MetaSel ('Just "getMintingPolicy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Script)))

newtype RedeemerHash #

Constructors

RedeemerHash BuiltinByteString 

Instances

Instances details
Eq RedeemerHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Ord RedeemerHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Show RedeemerHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

IsString RedeemerHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Generic RedeemerHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Associated Types

type Rep RedeemerHash :: Type -> Type Source #

NFData RedeemerHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

rnf :: RedeemerHash -> () Source #

Serialise RedeemerHash 
Instance details

Defined in Ledger.Scripts.Orphans

Methods

encode :: RedeemerHash -> Encoding

decode :: Decoder s RedeemerHash

encodeList :: [RedeemerHash] -> Encoding

decodeList :: Decoder s [RedeemerHash]

Hashable RedeemerHash 
Instance details

Defined in Ledger.Scripts.Orphans

FromJSON RedeemerHash 
Instance details

Defined in Ledger.Scripts.Orphans

Methods

parseJSON :: Value -> Parser RedeemerHash

parseJSONList :: Value -> Parser [RedeemerHash]

FromJSONKey RedeemerHash 
Instance details

Defined in Ledger.Scripts.Orphans

Methods

fromJSONKey :: FromJSONKeyFunction RedeemerHash

fromJSONKeyList :: FromJSONKeyFunction [RedeemerHash]

ToJSON RedeemerHash 
Instance details

Defined in Ledger.Scripts.Orphans

Methods

toJSON :: RedeemerHash -> Value

toEncoding :: RedeemerHash -> Encoding

toJSONList :: [RedeemerHash] -> Value

toEncodingList :: [RedeemerHash] -> Encoding

ToJSONKey RedeemerHash 
Instance details

Defined in Ledger.Scripts.Orphans

Methods

toJSONKey :: ToJSONKeyFunction RedeemerHash

toJSONKeyList :: ToJSONKeyFunction [RedeemerHash]

Eq RedeemerHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Ord RedeemerHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Pretty RedeemerHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

pretty :: RedeemerHash -> Doc ann #

prettyList :: [RedeemerHash] -> Doc ann #

FromData RedeemerHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

fromBuiltinData :: BuiltinData -> Maybe RedeemerHash

ToData RedeemerHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

toBuiltinData :: RedeemerHash -> BuiltinData

UnsafeFromData RedeemerHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

unsafeFromBuiltinData :: BuiltinData -> RedeemerHash

Lift DefaultUni RedeemerHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

lift :: RedeemerHash -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni RedeemerHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

typeRep :: Proxy RedeemerHash -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep RedeemerHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

type Rep RedeemerHash = D1 ('MetaData "RedeemerHash" "Plutus.V1.Ledger.Scripts" "plutus-ledger-api-1.0.0.1-6EvbyJiK8IAAVEtnIJDu5Z" 'True) (C1 ('MetaCons "RedeemerHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinByteString)))

newtype Script #

Constructors

Script 

Fields

  • unScript :: Program DeBruijn DefaultUni DefaultFun ()
     

Instances

Instances details
Eq Script 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Ord Script 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Show Script 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Generic Script 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Associated Types

type Rep Script :: Type -> Type Source #

NFData Script 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

rnf :: Script -> () Source #

Serialise Script 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

encode :: Script -> Encoding

decode :: Decoder s Script

encodeList :: [Script] -> Encoding

decodeList :: Decoder s [Script]

FromJSON Script 
Instance details

Defined in Ledger.Scripts.Orphans

Methods

parseJSON :: Value -> Parser Script

parseJSONList :: Value -> Parser [Script]

ToJSON Script 
Instance details

Defined in Ledger.Scripts.Orphans

Methods

toJSON :: Script -> Value

toEncoding :: Script -> Encoding

toJSONList :: [Script] -> Value

toEncodingList :: [Script] -> Encoding

type Rep Script 
Instance details

Defined in Plutus.V1.Ledger.Scripts

type Rep Script = D1 ('MetaData "Script" "Plutus.V1.Ledger.Scripts" "plutus-ledger-api-1.0.0.1-6EvbyJiK8IAAVEtnIJDu5Z" 'True) (C1 ('MetaCons "Script" 'PrefixI 'True) (S1 ('MetaSel ('Just "unScript") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Program DeBruijn DefaultUni DefaultFun ()))))

data ScriptError #

Instances

Instances details
Eq ScriptError 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Show ScriptError 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Generic ScriptError 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Associated Types

type Rep ScriptError :: Type -> Type Source #

NFData ScriptError 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

rnf :: ScriptError -> () Source #

FromJSON ScriptError 
Instance details

Defined in Ledger.Orphans

Methods

parseJSON :: Value -> Parser ScriptError

parseJSONList :: Value -> Parser [ScriptError]

ToJSON ScriptError 
Instance details

Defined in Ledger.Orphans

Methods

toJSON :: ScriptError -> Value

toEncoding :: ScriptError -> Encoding

toJSONList :: [ScriptError] -> Value

toEncodingList :: [ScriptError] -> Encoding

type Rep ScriptError 
Instance details

Defined in Plutus.V1.Ledger.Scripts

newtype ScriptHash #

Constructors

ScriptHash 

Fields

Instances

Instances details
Eq ScriptHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Ord ScriptHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Show ScriptHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

IsString ScriptHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Generic ScriptHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Associated Types

type Rep ScriptHash :: Type -> Type Source #

NFData ScriptHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

rnf :: ScriptHash -> () Source #

Serialise ScriptHash 
Instance details

Defined in Ledger.Scripts.Orphans

Methods

encode :: ScriptHash -> Encoding

decode :: Decoder s ScriptHash

encodeList :: [ScriptHash] -> Encoding

decodeList :: Decoder s [ScriptHash]

Hashable ScriptHash 
Instance details

Defined in Ledger.Scripts.Orphans

FromJSON ScriptHash 
Instance details

Defined in Ledger.Scripts.Orphans

Methods

parseJSON :: Value -> Parser ScriptHash

parseJSONList :: Value -> Parser [ScriptHash]

FromJSONKey ScriptHash 
Instance details

Defined in Ledger.Scripts.Orphans

Methods

fromJSONKey :: FromJSONKeyFunction ScriptHash

fromJSONKeyList :: FromJSONKeyFunction [ScriptHash]

ToJSON ScriptHash 
Instance details

Defined in Ledger.Scripts.Orphans

Methods

toJSON :: ScriptHash -> Value

toEncoding :: ScriptHash -> Encoding

toJSONList :: [ScriptHash] -> Value

toEncodingList :: [ScriptHash] -> Encoding

ToJSONKey ScriptHash 
Instance details

Defined in Ledger.Scripts.Orphans

Methods

toJSONKey :: ToJSONKeyFunction ScriptHash

toJSONKeyList :: ToJSONKeyFunction [ScriptHash]

Eq ScriptHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

(==) :: ScriptHash -> ScriptHash -> Bool

Ord ScriptHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Pretty ScriptHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

pretty :: ScriptHash -> Doc ann #

prettyList :: [ScriptHash] -> Doc ann #

FromData ScriptHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

fromBuiltinData :: BuiltinData -> Maybe ScriptHash

ToData ScriptHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

toBuiltinData :: ScriptHash -> BuiltinData

UnsafeFromData ScriptHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

unsafeFromBuiltinData :: BuiltinData -> ScriptHash

Lift DefaultUni ScriptHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

lift :: ScriptHash -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni ScriptHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

typeRep :: Proxy ScriptHash -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep ScriptHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

type Rep ScriptHash = D1 ('MetaData "ScriptHash" "Plutus.V1.Ledger.Scripts" "plutus-ledger-api-1.0.0.1-6EvbyJiK8IAAVEtnIJDu5Z" 'True) (C1 ('MetaCons "ScriptHash" 'PrefixI 'True) (S1 ('MetaSel ('Just "getScriptHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinByteString)))

newtype StakeValidator #

Constructors

StakeValidator 

Instances

Instances details
Eq StakeValidator 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Ord StakeValidator 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Show StakeValidator 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Generic StakeValidator 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Associated Types

type Rep StakeValidator :: Type -> Type Source #

NFData StakeValidator 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

rnf :: StakeValidator -> () Source #

Serialise StakeValidator 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

encode :: StakeValidator -> Encoding

decode :: Decoder s StakeValidator

encodeList :: [StakeValidator] -> Encoding

decodeList :: Decoder s [StakeValidator]

FromJSON StakeValidator 
Instance details

Defined in Ledger.Scripts.Orphans

Methods

parseJSON :: Value -> Parser StakeValidator

parseJSONList :: Value -> Parser [StakeValidator]

ToJSON StakeValidator 
Instance details

Defined in Ledger.Scripts.Orphans

Methods

toJSON :: StakeValidator -> Value

toEncoding :: StakeValidator -> Encoding

toJSONList :: [StakeValidator] -> Value

toEncodingList :: [StakeValidator] -> Encoding

Pretty StakeValidator 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

pretty :: StakeValidator -> Doc ann #

prettyList :: [StakeValidator] -> Doc ann #

type Rep StakeValidator 
Instance details

Defined in Plutus.V1.Ledger.Scripts

type Rep StakeValidator = D1 ('MetaData "StakeValidator" "Plutus.V1.Ledger.Scripts" "plutus-ledger-api-1.0.0.1-6EvbyJiK8IAAVEtnIJDu5Z" 'True) (C1 ('MetaCons "StakeValidator" 'PrefixI 'True) (S1 ('MetaSel ('Just "getStakeValidator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Script)))

newtype StakeValidatorHash #

Constructors

StakeValidatorHash BuiltinByteString 

Instances

Instances details
Eq StakeValidatorHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Ord StakeValidatorHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Show StakeValidatorHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

IsString StakeValidatorHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Generic StakeValidatorHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Associated Types

type Rep StakeValidatorHash :: Type -> Type Source #

NFData StakeValidatorHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

rnf :: StakeValidatorHash -> () Source #

Serialise StakeValidatorHash 
Instance details

Defined in Ledger.Scripts.Orphans

Methods

encode :: StakeValidatorHash -> Encoding

decode :: Decoder s StakeValidatorHash

encodeList :: [StakeValidatorHash] -> Encoding

decodeList :: Decoder s [StakeValidatorHash]

Hashable StakeValidatorHash 
Instance details

Defined in Ledger.Scripts.Orphans

FromJSON StakeValidatorHash 
Instance details

Defined in Ledger.Scripts.Orphans

Methods

parseJSON :: Value -> Parser StakeValidatorHash

parseJSONList :: Value -> Parser [StakeValidatorHash]

FromJSONKey StakeValidatorHash 
Instance details

Defined in Ledger.Scripts.Orphans

Methods

fromJSONKey :: FromJSONKeyFunction StakeValidatorHash

fromJSONKeyList :: FromJSONKeyFunction [StakeValidatorHash]

ToJSON StakeValidatorHash 
Instance details

Defined in Ledger.Scripts.Orphans

ToJSONKey StakeValidatorHash 
Instance details

Defined in Ledger.Scripts.Orphans

Methods

toJSONKey :: ToJSONKeyFunction StakeValidatorHash

toJSONKeyList :: ToJSONKeyFunction [StakeValidatorHash]

Eq StakeValidatorHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Ord StakeValidatorHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Pretty StakeValidatorHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

pretty :: StakeValidatorHash -> Doc ann #

prettyList :: [StakeValidatorHash] -> Doc ann #

FromData StakeValidatorHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

fromBuiltinData :: BuiltinData -> Maybe StakeValidatorHash

ToData StakeValidatorHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

toBuiltinData :: StakeValidatorHash -> BuiltinData

UnsafeFromData StakeValidatorHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

unsafeFromBuiltinData :: BuiltinData -> StakeValidatorHash

Lift DefaultUni StakeValidatorHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

lift :: StakeValidatorHash -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni StakeValidatorHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

Methods

typeRep :: Proxy StakeValidatorHash -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep StakeValidatorHash 
Instance details

Defined in Plutus.V1.Ledger.Scripts

type Rep StakeValidatorHash = D1 ('MetaData "StakeValidatorHash" "Plutus.V1.Ledger.Scripts" "plutus-ledger-api-1.0.0.1-6EvbyJiK8IAAVEtnIJDu5Z" 'True) (C1 ('MetaCons "StakeValidatorHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinByteString)))

examplePlutusScriptAlwaysFails :: WitCtx witctx -> PlutusScript PlutusScriptV1 #

examplePlutusScriptAlwaysSucceeds :: WitCtx witctx -> PlutusScript PlutusScriptV1 #

selectAsset :: Value -> AssetId -> Quantity #

valueFromList :: [(AssetId, Quantity)] -> Value #

valueToList :: Value -> [(AssetId, Quantity)] #

data WitCtx witctx where #

Constructors

WitCtxTxIn :: WitCtx WitCtxTxIn 
WitCtxMint :: WitCtx WitCtxMint 
WitCtxStake :: WitCtx WitCtxStake 

newtype TxId #

Constructors

TxId (Hash StandardCrypto EraIndependentTxBody) 

Instances

Instances details
Eq TxId 
Instance details

Defined in Cardano.Api.TxIn

Methods

(==) :: TxId -> TxId -> Bool Source #

(/=) :: TxId -> TxId -> Bool Source #

Ord TxId 
Instance details

Defined in Cardano.Api.TxIn

Show TxId 
Instance details

Defined in Cardano.Api.TxIn

IsString TxId 
Instance details

Defined in Cardano.Api.TxIn

Generic TxId Source # 
Instance details

Defined in Ledger.Tx.Orphans

Associated Types

type Rep TxId :: Type -> Type Source #

Methods

from :: TxId -> Rep TxId x Source #

to :: Rep TxId x -> TxId Source #

Serialise TxId 
Instance details

Defined in Ledger.Tx.Orphans

Methods

encode :: TxId -> Encoding

decode :: Decoder s TxId

encodeList :: [TxId] -> Encoding

decodeList :: Decoder s [TxId]

FromJSON TxId 
Instance details

Defined in Cardano.Api.TxIn

Methods

parseJSON :: Value -> Parser TxId

parseJSONList :: Value -> Parser [TxId]

FromJSONKey TxId 
Instance details

Defined in Cardano.Api.TxIn

Methods

fromJSONKey :: FromJSONKeyFunction TxId

fromJSONKeyList :: FromJSONKeyFunction [TxId]

ToJSON TxId 
Instance details

Defined in Cardano.Api.TxIn

Methods

toJSON :: TxId -> Value

toEncoding :: TxId -> Encoding

toJSONList :: [TxId] -> Value

toEncodingList :: [TxId] -> Encoding

ToJSONKey TxId 
Instance details

Defined in Cardano.Api.TxIn

Methods

toJSONKey :: ToJSONKeyFunction TxId

toJSONKeyList :: ToJSONKeyFunction [TxId]

Pretty TxId Source # 
Instance details

Defined in Ledger.Tx.Orphans

Methods

pretty :: TxId -> Doc ann #

prettyList :: [TxId] -> Doc ann #

HasTypeProxy TxId 
Instance details

Defined in Cardano.Api.TxIn

Associated Types

data AsType TxId

Methods

proxyToAsType :: Proxy TxId -> AsType TxId

SerialiseAsRawBytes TxId 
Instance details

Defined in Cardano.Api.TxIn

Methods

serialiseToRawBytes :: TxId -> ByteString

deserialiseFromRawBytes :: AsType TxId -> ByteString -> Maybe TxId

type Rep TxId Source # 
Instance details

Defined in Ledger.Tx.Orphans

type Rep TxId = D1 ('MetaData "TxId" "Cardano.Api.TxIn" "cardano-api-1.35.4-DlJBOMjUMEP4jWrRjidGIP" 'True) (C1 ('MetaCons "TxId" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Hash StandardCrypto EraIndependentTxBody))))
data AsType TxId 
Instance details

Defined in Cardano.Api.TxIn

data AsType TxId = AsTxId

data TxIn #

Constructors

TxIn TxId TxIx 

Instances

Instances details
Eq TxIn 
Instance details

Defined in Cardano.Api.TxIn

Methods

(==) :: TxIn -> TxIn -> Bool Source #

(/=) :: TxIn -> TxIn -> Bool Source #

Ord TxIn 
Instance details

Defined in Cardano.Api.TxIn

Show TxIn 
Instance details

Defined in Cardano.Api.TxIn

Generic TxIn Source # 
Instance details

Defined in Ledger.Tx.Orphans

Associated Types

type Rep TxIn :: Type -> Type Source #

Methods

from :: TxIn -> Rep TxIn x Source #

to :: Rep TxIn x -> TxIn Source #

Serialise TxIn 
Instance details

Defined in Ledger.Tx.Orphans

Methods

encode :: TxIn -> Encoding

decode :: Decoder s TxIn

encodeList :: [TxIn] -> Encoding

decodeList :: Decoder s [TxIn]

FromJSON TxIn 
Instance details

Defined in Cardano.Api.TxIn

Methods

parseJSON :: Value -> Parser TxIn

parseJSONList :: Value -> Parser [TxIn]

FromJSONKey TxIn 
Instance details

Defined in Cardano.Api.TxIn

Methods

fromJSONKey :: FromJSONKeyFunction TxIn

fromJSONKeyList :: FromJSONKeyFunction [TxIn]

ToJSON TxIn 
Instance details

Defined in Cardano.Api.TxIn

Methods

toJSON :: TxIn -> Value

toEncoding :: TxIn -> Encoding

toJSONList :: [TxIn] -> Value

toEncodingList :: [TxIn] -> Encoding

ToJSONKey TxIn 
Instance details

Defined in Cardano.Api.TxIn

Methods

toJSONKey :: ToJSONKeyFunction TxIn

toJSONKeyList :: ToJSONKeyFunction [TxIn]

Pretty TxIn Source # 
Instance details

Defined in Ledger.Tx.Orphans

Methods

pretty :: TxIn -> Doc ann #

prettyList :: [TxIn] -> Doc ann #

type Rep TxIn Source # 
Instance details

Defined in Ledger.Tx.Orphans

type Rep TxIn = D1 ('MetaData "TxIn" "Cardano.Api.TxIn" "cardano-api-1.35.4-DlJBOMjUMEP4jWrRjidGIP" 'False) (C1 ('MetaCons "TxIn" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TxId) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TxIx)))

newtype TxIx #

Constructors

TxIx Word 

Instances

Instances details
Enum TxIx 
Instance details

Defined in Cardano.Api.TxIn

Eq TxIx 
Instance details

Defined in Cardano.Api.TxIn

Methods

(==) :: TxIx -> TxIx -> Bool Source #

(/=) :: TxIx -> TxIx -> Bool Source #

Ord TxIx 
Instance details

Defined in Cardano.Api.TxIn

Show TxIx 
Instance details

Defined in Cardano.Api.TxIn

Generic TxIx Source # 
Instance details

Defined in Ledger.Tx.Orphans

Associated Types

type Rep TxIx :: Type -> Type Source #

Methods

from :: TxIx -> Rep TxIx x Source #

to :: Rep TxIx x -> TxIx Source #

Serialise TxIx 
Instance details

Defined in Ledger.Tx.Orphans

Methods

encode :: TxIx -> Encoding

decode :: Decoder s TxIx

encodeList :: [TxIx] -> Encoding

decodeList :: Decoder s [TxIx]

FromJSON TxIx 
Instance details

Defined in Cardano.Api.TxIn

Methods

parseJSON :: Value -> Parser TxIx

parseJSONList :: Value -> Parser [TxIx]

ToJSON TxIx 
Instance details

Defined in Cardano.Api.TxIn

Methods

toJSON :: TxIx -> Value

toEncoding :: TxIx -> Encoding

toJSONList :: [TxIx] -> Value

toEncodingList :: [TxIx] -> Encoding

type Rep TxIx Source # 
Instance details

Defined in Ledger.Tx.Orphans

type Rep TxIx = D1 ('MetaData "TxIx" "Cardano.Api.TxIn" "cardano-api-1.35.4-DlJBOMjUMEP4jWrRjidGIP" 'True) (C1 ('MetaCons "TxIx" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word)))

data AssetId #

Instances

Instances details
Eq AssetId 
Instance details

Defined in Cardano.Api.Value

Ord AssetId 
Instance details

Defined in Cardano.Api.Value

Show AssetId 
Instance details

Defined in Cardano.Api.Value

Generic AssetId Source # 
Instance details

Defined in Ledger.Value.Orphans

Associated Types

type Rep AssetId :: Type -> Type Source #

Serialise AssetId 
Instance details

Defined in Ledger.Value.Orphans

Methods

encode :: AssetId -> Encoding

decode :: Decoder s AssetId

encodeList :: [AssetId] -> Encoding

decodeList :: Decoder s [AssetId]

FromJSON AssetId 
Instance details

Defined in Ledger.Value.Orphans

Methods

parseJSON :: Value -> Parser AssetId

parseJSONList :: Value -> Parser [AssetId]

ToJSON AssetId 
Instance details

Defined in Ledger.Value.Orphans

Methods

toJSON :: AssetId -> Value

toEncoding :: AssetId -> Encoding

toJSONList :: [AssetId] -> Value

toEncodingList :: [AssetId] -> Encoding

Pretty AssetId Source # 
Instance details

Defined in Ledger.Value.Orphans

Methods

pretty :: AssetId -> Doc ann #

prettyList :: [AssetId] -> Doc ann #

type Rep AssetId Source # 
Instance details

Defined in Ledger.Value.Orphans

type Rep AssetId = D1 ('MetaData "AssetId" "Cardano.Api.Value" "cardano-api-1.35.4-DlJBOMjUMEP4jWrRjidGIP" 'False) (C1 ('MetaCons "AdaAssetId" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AssetId" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 PolicyId) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 AssetName)))

data AssetName #

Instances

Instances details
Eq AssetName 
Instance details

Defined in Cardano.Api.Value

Ord AssetName 
Instance details

Defined in Cardano.Api.Value

Show AssetName 
Instance details

Defined in Cardano.Api.Value

IsString AssetName 
Instance details

Defined in Cardano.Api.Value

Serialise AssetName 
Instance details

Defined in Ledger.Value.Orphans

Methods

encode :: AssetName -> Encoding

decode :: Decoder s AssetName

encodeList :: [AssetName] -> Encoding

decodeList :: Decoder s [AssetName]

FromJSON AssetName 
Instance details

Defined in Cardano.Api.Value

Methods

parseJSON :: Value -> Parser AssetName

parseJSONList :: Value -> Parser [AssetName]

FromJSONKey AssetName 
Instance details

Defined in Cardano.Api.Value

Methods

fromJSONKey :: FromJSONKeyFunction AssetName

fromJSONKeyList :: FromJSONKeyFunction [AssetName]

ToJSON AssetName 
Instance details

Defined in Cardano.Api.Value

Methods

toJSON :: AssetName -> Value

toEncoding :: AssetName -> Encoding

toJSONList :: [AssetName] -> Value

toEncodingList :: [AssetName] -> Encoding

ToJSONKey AssetName 
Instance details

Defined in Cardano.Api.Value

Methods

toJSONKey :: ToJSONKeyFunction AssetName

toJSONKeyList :: ToJSONKeyFunction [AssetName]

HasTypeProxy AssetName 
Instance details

Defined in Cardano.Api.Value

Associated Types

data AsType AssetName

SerialiseAsRawBytes AssetName 
Instance details

Defined in Cardano.Api.Value

Methods

serialiseToRawBytes :: AssetName -> ByteString

deserialiseFromRawBytes :: AsType AssetName -> ByteString -> Maybe AssetName

data AsType AssetName 
Instance details

Defined in Cardano.Api.Value

data AsType AssetName = AsAssetName

newtype Lovelace #

Constructors

Lovelace Integer 

Instances

Instances details
Enum Lovelace 
Instance details

Defined in Cardano.Api.Value

Eq Lovelace 
Instance details

Defined in Cardano.Api.Value

Integral Lovelace 
Instance details

Defined in Cardano.Api.Value

Num Lovelace 
Instance details

Defined in Cardano.Api.Value

Ord Lovelace 
Instance details

Defined in Cardano.Api.Value

Real Lovelace 
Instance details

Defined in Cardano.Api.Value

Show Lovelace 
Instance details

Defined in Cardano.Api.Value

Generic Lovelace Source # 
Instance details

Defined in Ledger.Orphans

Associated Types

type Rep Lovelace :: Type -> Type Source #

Semigroup Lovelace 
Instance details

Defined in Cardano.Api.Value

Monoid Lovelace 
Instance details

Defined in Cardano.Api.Value

Serialise Lovelace 
Instance details

Defined in Ledger.Value.Orphans

Methods

encode :: Lovelace -> Encoding

decode :: Decoder s Lovelace

encodeList :: [Lovelace] -> Encoding

decodeList :: Decoder s [Lovelace]

FromJSON Lovelace 
Instance details

Defined in Cardano.Api.Value

Methods

parseJSON :: Value -> Parser Lovelace

parseJSONList :: Value -> Parser [Lovelace]

ToJSON Lovelace 
Instance details

Defined in Cardano.Api.Value

Methods

toJSON :: Lovelace -> Value

toEncoding :: Lovelace -> Encoding

toJSONList :: [Lovelace] -> Value

toEncodingList :: [Lovelace] -> Encoding

Pretty Lovelace Source # 
Instance details

Defined in Ledger.Value.Orphans

Methods

pretty :: Lovelace -> Doc ann #

prettyList :: [Lovelace] -> Doc ann #

FromCBOR Lovelace 
Instance details

Defined in Cardano.Api.Value

Methods

fromCBOR :: Decoder s Lovelace

label :: Proxy Lovelace -> Text

ToCBOR Lovelace 
Instance details

Defined in Cardano.Api.Value

Methods

toCBOR :: Lovelace -> Encoding

encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy Lovelace -> Size

encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [Lovelace] -> Size

type Rep Lovelace Source # 
Instance details

Defined in Ledger.Orphans

type Rep Lovelace = D1 ('MetaData "Lovelace" "Cardano.Api.Value" "cardano-api-1.35.4-DlJBOMjUMEP4jWrRjidGIP" 'True) (C1 ('MetaCons "Lovelace" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer)))

data PolicyId #

Instances

Instances details
Eq PolicyId 
Instance details

Defined in Cardano.Api.Value

Ord PolicyId 
Instance details

Defined in Cardano.Api.Value

Show PolicyId 
Instance details

Defined in Cardano.Api.Value

IsString PolicyId 
Instance details

Defined in Cardano.Api.Value

Generic PolicyId Source # 
Instance details

Defined in Ledger.Orphans

Associated Types

type Rep PolicyId :: Type -> Type Source #

Serialise PolicyId 
Instance details

Defined in Ledger.Value.Orphans

Methods

encode :: PolicyId -> Encoding

decode :: Decoder s PolicyId

encodeList :: [PolicyId] -> Encoding

decodeList :: Decoder s [PolicyId]

FromJSON PolicyId 
Instance details

Defined in Cardano.Api.Value

Methods

parseJSON :: Value -> Parser PolicyId

parseJSONList :: Value -> Parser [PolicyId]

FromJSONKey PolicyId 
Instance details

Defined in Ledger.Tx.CardanoAPI.Internal

Methods

fromJSONKey :: FromJSONKeyFunction PolicyId

fromJSONKeyList :: FromJSONKeyFunction [PolicyId]

ToJSON PolicyId 
Instance details

Defined in Cardano.Api.Value

Methods

toJSON :: PolicyId -> Value

toEncoding :: PolicyId -> Encoding

toJSONList :: [PolicyId] -> Value

toEncodingList :: [PolicyId] -> Encoding

ToJSONKey PolicyId 
Instance details

Defined in Ledger.Tx.CardanoAPI.Internal

Methods

toJSONKey :: ToJSONKeyFunction PolicyId

toJSONKeyList :: ToJSONKeyFunction [PolicyId]

HasTypeProxy PolicyId 
Instance details

Defined in Cardano.Api.Value

Associated Types

data AsType PolicyId

Methods

proxyToAsType :: Proxy PolicyId -> AsType PolicyId

SerialiseAsRawBytes PolicyId 
Instance details

Defined in Cardano.Api.Value

Methods

serialiseToRawBytes :: PolicyId -> ByteString

deserialiseFromRawBytes :: AsType PolicyId -> ByteString -> Maybe PolicyId

type Rep PolicyId Source # 
Instance details

Defined in Ledger.Orphans

type Rep PolicyId = D1 ('MetaData "PolicyId" "Cardano.Api.Value" "cardano-api-1.35.4-DlJBOMjUMEP4jWrRjidGIP" 'True) (C1 ('MetaCons "PolicyId" 'PrefixI 'True) (S1 ('MetaSel ('Just "unPolicyId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ScriptHash)))
data AsType PolicyId 
Instance details

Defined in Cardano.Api.Value

data AsType PolicyId = AsPolicyId

data Value #

Instances

Instances details
Eq Value 
Instance details

Defined in Cardano.Api.Value

Methods

(==) :: Value -> Value -> Bool Source #

(/=) :: Value -> Value -> Bool Source #

Show Value 
Instance details

Defined in Cardano.Api.Value

Semigroup Value 
Instance details

Defined in Cardano.Api.Value

Monoid Value 
Instance details

Defined in Cardano.Api.Value

Serialise Value 
Instance details

Defined in Ledger.Value.Orphans

Methods

encode :: Value -> Encoding

decode :: Decoder s Value

encodeList :: [Value] -> Encoding

decodeList :: Decoder s [Value]

FromJSON Value 
Instance details

Defined in Cardano.Api.Value

Methods

parseJSON :: Value0 -> Parser Value

parseJSONList :: Value0 -> Parser [Value]

ToJSON Value 
Instance details

Defined in Cardano.Api.Value

Methods

toJSON :: Value -> Value0

toEncoding :: Value -> Encoding

toJSONList :: [Value] -> Value0

toEncodingList :: [Value] -> Encoding

JoinSemiLattice Value 
Instance details

Defined in Ledger.Value.CardanoAPI

Methods

(\/) :: Value -> Value -> Value

Pretty Value Source # 
Instance details

Defined in Ledger.Value.Orphans

Methods

pretty :: Value -> Doc ann #

prettyList :: [Value] -> Doc ann #

dataHash :: BuiltinData -> BuiltinByteString #

data Language #

Constructors

PlutusV1 
PlutusV2 

Instances

Instances details
Bounded Language 
Instance details

Defined in Cardano.Ledger.Alonzo.Language

Enum Language 
Instance details

Defined in Cardano.Ledger.Alonzo.Language

Eq Language 
Instance details

Defined in Cardano.Ledger.Alonzo.Language

Ord Language 
Instance details

Defined in Cardano.Ledger.Alonzo.Language

Show Language 
Instance details

Defined in Cardano.Ledger.Alonzo.Language

Ix Language 
Instance details

Defined in Cardano.Ledger.Alonzo.Language

Generic Language 
Instance details

Defined in Cardano.Ledger.Alonzo.Language

Associated Types

type Rep Language :: Type -> Type Source #

NFData Language 
Instance details

Defined in Cardano.Ledger.Alonzo.Language

Methods

rnf :: Language -> () Source #

NoThunks Language 
Instance details

Defined in Cardano.Ledger.Alonzo.Language

Methods

noThunks :: Context -> Language -> IO (Maybe ThunkInfo)

wNoThunks :: Context -> Language -> IO (Maybe ThunkInfo)

showTypeOf :: Proxy Language -> String

FromCBOR Language 
Instance details

Defined in Cardano.Ledger.Alonzo.Language

Methods

fromCBOR :: Decoder s Language

label :: Proxy Language -> Text

ToCBOR Language 
Instance details

Defined in Cardano.Ledger.Alonzo.Language

Methods

toCBOR :: Language -> Encoding

encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy Language -> Size

encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [Language] -> Size

type Rep Language 
Instance details

Defined in Cardano.Ledger.Alonzo.Language

type Rep Language = D1 ('MetaData "Language" "Cardano.Ledger.Alonzo.Language" "cardano-ledger-alonzo-0.1.0.0-9kQ50A9XcYDHq5wCBkTOc6" 'False) (C1 ('MetaCons "PlutusV1" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PlutusV2" 'PrefixI 'False) (U1 :: Type -> Type))

data Versioned script #

Constructors

Versioned 

Fields

Instances

Instances details
Functor Versioned 
Instance details

Defined in Plutus.Script.Utils.Scripts

Methods

fmap :: (a -> b) -> Versioned a -> Versioned b Source #

(<$) :: a -> Versioned b -> Versioned a Source #

Eq script => Eq (Versioned script) 
Instance details

Defined in Plutus.Script.Utils.Scripts

Methods

(==) :: Versioned script -> Versioned script -> Bool Source #

(/=) :: Versioned script -> Versioned script -> Bool Source #

Ord script => Ord (Versioned script) 
Instance details

Defined in Plutus.Script.Utils.Scripts

Methods

compare :: Versioned script -> Versioned script -> Ordering Source #

(<) :: Versioned script -> Versioned script -> Bool Source #

(<=) :: Versioned script -> Versioned script -> Bool Source #

(>) :: Versioned script -> Versioned script -> Bool Source #

(>=) :: Versioned script -> Versioned script -> Bool Source #

max :: Versioned script -> Versioned script -> Versioned script Source #

min :: Versioned script -> Versioned script -> Versioned script Source #

Show script => Show (Versioned script) 
Instance details

Defined in Plutus.Script.Utils.Scripts

Methods

showsPrec :: Int -> Versioned script -> ShowS Source #

show :: Versioned script -> String Source #

showList :: [Versioned script] -> ShowS Source #

Generic (Versioned script) 
Instance details

Defined in Plutus.Script.Utils.Scripts

Associated Types

type Rep (Versioned script) :: Type -> Type Source #

Methods

from :: Versioned script -> Rep (Versioned script) x Source #

to :: Rep (Versioned script) x -> Versioned script Source #

Serialise script => Serialise (Versioned script) 
Instance details

Defined in Plutus.Script.Utils.Scripts

Methods

encode :: Versioned script -> Encoding

decode :: Decoder s (Versioned script)

encodeList :: [Versioned script] -> Encoding

decodeList :: Decoder s [Versioned script]

FromJSON script => FromJSON (Versioned script) 
Instance details

Defined in Plutus.Script.Utils.Scripts

Methods

parseJSON :: Value -> Parser (Versioned script)

parseJSONList :: Value -> Parser [Versioned script]

ToJSON script => ToJSON (Versioned script) 
Instance details

Defined in Plutus.Script.Utils.Scripts

Methods

toJSON :: Versioned script -> Value

toEncoding :: Versioned script -> Encoding

toJSONList :: [Versioned script] -> Value

toEncodingList :: [Versioned script] -> Encoding

Pretty script => Pretty (Versioned script) 
Instance details

Defined in Plutus.Script.Utils.Scripts

Methods

pretty :: Versioned script -> Doc ann #

prettyList :: [Versioned script] -> Doc ann #

type Rep (Versioned script) 
Instance details

Defined in Plutus.Script.Utils.Scripts

type Rep (Versioned script) = D1 ('MetaData "Versioned" "Plutus.Script.Utils.Scripts" "plutus-script-utils-1.2.0.0-5TpLCy32WGLK5IaOxcwe9j" 'False) (C1 ('MetaCons "Versioned" 'PrefixI 'True) (S1 ('MetaSel ('Just "unversioned") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 script) :*: S1 ('MetaSel ('Just "version") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Language)))

to :: a -> Interval a #

from :: a -> Interval a #

after :: Ord a => a -> Interval a -> Bool #

before :: Ord a => a -> Interval a -> Bool #

contains :: Ord a => Interval a -> Interval a -> Bool #

hull :: Ord a => Interval a -> Interval a -> Interval a #

intersection :: Ord a => Interval a -> Interval a -> Interval a #

interval :: a -> a -> Interval a #

isEmpty :: (Enum a, Ord a) => Interval a -> Bool #

member :: Ord a => a -> Interval a -> Bool #

overlaps :: (Enum a, Ord a) => Interval a -> Interval a -> Bool #

singleton :: a -> Interval a #

type Closure = Bool #

data Extended a #

Constructors

NegInf 
Finite a 
PosInf 

Instances

Instances details
Functor Extended 
Instance details

Defined in Plutus.V1.Ledger.Interval

Methods

fmap :: (a -> b) -> Extended a -> Extended b

(Typeable DefaultUni a, Lift DefaultUni a) => Lift DefaultUni (Extended a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Methods

lift :: Extended a -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Eq a => Eq (Extended a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Methods

(==) :: Extended a -> Extended a -> Bool Source #

(/=) :: Extended a -> Extended a -> Bool Source #

Ord a => Ord (Extended a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Show a => Show (Extended a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Generic (Extended a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Associated Types

type Rep (Extended a) :: Type -> Type Source #

Methods

from :: Extended a -> Rep (Extended a) x Source #

to :: Rep (Extended a) x -> Extended a Source #

NFData a => NFData (Extended a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Methods

rnf :: Extended a -> () Source #

Serialise a => Serialise (Extended a) 
Instance details

Defined in Ledger.Slot

Methods

encode :: Extended a -> Encoding

decode :: Decoder s (Extended a)

encodeList :: [Extended a] -> Encoding

decodeList :: Decoder s [Extended a]

Hashable a => Hashable (Extended a) 
Instance details

Defined in Ledger.Slot

Methods

hashWithSalt :: Int -> Extended a -> Int

hash :: Extended a -> Int

FromJSON a => FromJSON (Extended a) 
Instance details

Defined in Ledger.Slot

Methods

parseJSON :: Value -> Parser (Extended a)

parseJSONList :: Value -> Parser [Extended a]

ToJSON a => ToJSON (Extended a) 
Instance details

Defined in Ledger.Slot

Methods

toJSON :: Extended a -> Value

toEncoding :: Extended a -> Encoding

toJSONList :: [Extended a] -> Value

toEncodingList :: [Extended a] -> Encoding

Eq a => Eq (Extended a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Methods

(==) :: Extended a -> Extended a -> Bool

Ord a => Ord (Extended a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Methods

compare :: Extended a -> Extended a -> Ordering

(<) :: Extended a -> Extended a -> Bool

(<=) :: Extended a -> Extended a -> Bool

(>) :: Extended a -> Extended a -> Bool

(>=) :: Extended a -> Extended a -> Bool

max :: Extended a -> Extended a -> Extended a

min :: Extended a -> Extended a -> Extended a

Pretty a => Pretty (Extended a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Methods

pretty :: Extended a -> Doc ann #

prettyList :: [Extended a] -> Doc ann #

FromData a => FromData (Extended a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Methods

fromBuiltinData :: BuiltinData -> Maybe (Extended a)

ToData a => ToData (Extended a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Methods

toBuiltinData :: Extended a -> BuiltinData

UnsafeFromData a => UnsafeFromData (Extended a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Methods

unsafeFromBuiltinData :: BuiltinData -> Extended a

Typeable DefaultUni Extended 
Instance details

Defined in Plutus.V1.Ledger.Interval

Methods

typeRep :: Proxy Extended -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep (Extended a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

type Rep (Extended a) = D1 ('MetaData "Extended" "Plutus.V1.Ledger.Interval" "plutus-ledger-api-1.0.0.1-6EvbyJiK8IAAVEtnIJDu5Z" 'False) (C1 ('MetaCons "NegInf" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Finite" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a)) :+: C1 ('MetaCons "PosInf" 'PrefixI 'False) (U1 :: Type -> Type)))

data LowerBound a #

Constructors

LowerBound (Extended a) Closure 

Instances

Instances details
Functor LowerBound 
Instance details

Defined in Plutus.V1.Ledger.Interval

Methods

fmap :: (a -> b) -> LowerBound a -> LowerBound b

(Typeable DefaultUni a, Lift DefaultUni (Extended a)) => Lift DefaultUni (LowerBound a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Methods

lift :: LowerBound a -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Eq a => Eq (LowerBound a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Ord a => Ord (LowerBound a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Show a => Show (LowerBound a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Generic (LowerBound a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Associated Types

type Rep (LowerBound a) :: Type -> Type Source #

Methods

from :: LowerBound a -> Rep (LowerBound a) x Source #

to :: Rep (LowerBound a) x -> LowerBound a Source #

NFData a => NFData (LowerBound a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Methods

rnf :: LowerBound a -> () Source #

Serialise a => Serialise (LowerBound a) 
Instance details

Defined in Ledger.Slot

Methods

encode :: LowerBound a -> Encoding

decode :: Decoder s (LowerBound a)

encodeList :: [LowerBound a] -> Encoding

decodeList :: Decoder s [LowerBound a]

Hashable a => Hashable (LowerBound a) 
Instance details

Defined in Ledger.Slot

Methods

hashWithSalt :: Int -> LowerBound a -> Int

hash :: LowerBound a -> Int

FromJSON a => FromJSON (LowerBound a) 
Instance details

Defined in Ledger.Slot

Methods

parseJSON :: Value -> Parser (LowerBound a)

parseJSONList :: Value -> Parser [LowerBound a]

ToJSON a => ToJSON (LowerBound a) 
Instance details

Defined in Ledger.Slot

Methods

toJSON :: LowerBound a -> Value

toEncoding :: LowerBound a -> Encoding

toJSONList :: [LowerBound a] -> Value

toEncodingList :: [LowerBound a] -> Encoding

Eq a => Eq (LowerBound a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Methods

(==) :: LowerBound a -> LowerBound a -> Bool

Ord a => Ord (LowerBound a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Pretty a => Pretty (LowerBound a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Methods

pretty :: LowerBound a -> Doc ann #

prettyList :: [LowerBound a] -> Doc ann #

FromData a => FromData (LowerBound a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Methods

fromBuiltinData :: BuiltinData -> Maybe (LowerBound a)

ToData a => ToData (LowerBound a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Methods

toBuiltinData :: LowerBound a -> BuiltinData

UnsafeFromData a => UnsafeFromData (LowerBound a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Methods

unsafeFromBuiltinData :: BuiltinData -> LowerBound a

Typeable DefaultUni LowerBound 
Instance details

Defined in Plutus.V1.Ledger.Interval

Methods

typeRep :: Proxy LowerBound -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep (LowerBound a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

type Rep (LowerBound a) = D1 ('MetaData "LowerBound" "Plutus.V1.Ledger.Interval" "plutus-ledger-api-1.0.0.1-6EvbyJiK8IAAVEtnIJDu5Z" 'False) (C1 ('MetaCons "LowerBound" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Extended a)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Closure)))

data UpperBound a #

Constructors

UpperBound (Extended a) Closure 

Instances

Instances details
Functor UpperBound 
Instance details

Defined in Plutus.V1.Ledger.Interval

Methods

fmap :: (a -> b) -> UpperBound a -> UpperBound b

(Typeable DefaultUni a, Lift DefaultUni (Extended a)) => Lift DefaultUni (UpperBound a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Methods

lift :: UpperBound a -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Eq a => Eq (UpperBound a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Ord a => Ord (UpperBound a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Show a => Show (UpperBound a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Generic (UpperBound a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Associated Types

type Rep (UpperBound a) :: Type -> Type Source #

Methods

from :: UpperBound a -> Rep (UpperBound a) x Source #

to :: Rep (UpperBound a) x -> UpperBound a Source #

NFData a => NFData (UpperBound a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Methods

rnf :: UpperBound a -> () Source #

Serialise a => Serialise (UpperBound a) 
Instance details

Defined in Ledger.Slot

Methods

encode :: UpperBound a -> Encoding

decode :: Decoder s (UpperBound a)

encodeList :: [UpperBound a] -> Encoding

decodeList :: Decoder s [UpperBound a]

Hashable a => Hashable (UpperBound a) 
Instance details

Defined in Ledger.Slot

Methods

hashWithSalt :: Int -> UpperBound a -> Int

hash :: UpperBound a -> Int

FromJSON a => FromJSON (UpperBound a) 
Instance details

Defined in Ledger.Slot

Methods

parseJSON :: Value -> Parser (UpperBound a)

parseJSONList :: Value -> Parser [UpperBound a]

ToJSON a => ToJSON (UpperBound a) 
Instance details

Defined in Ledger.Slot

Methods

toJSON :: UpperBound a -> Value

toEncoding :: UpperBound a -> Encoding

toJSONList :: [UpperBound a] -> Value

toEncodingList :: [UpperBound a] -> Encoding

Eq a => Eq (UpperBound a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Methods

(==) :: UpperBound a -> UpperBound a -> Bool

Ord a => Ord (UpperBound a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Pretty a => Pretty (UpperBound a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Methods

pretty :: UpperBound a -> Doc ann #

prettyList :: [UpperBound a] -> Doc ann #

FromData a => FromData (UpperBound a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Methods

fromBuiltinData :: BuiltinData -> Maybe (UpperBound a)

ToData a => ToData (UpperBound a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Methods

toBuiltinData :: UpperBound a -> BuiltinData

UnsafeFromData a => UnsafeFromData (UpperBound a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

Methods

unsafeFromBuiltinData :: BuiltinData -> UpperBound a

Typeable DefaultUni UpperBound 
Instance details

Defined in Plutus.V1.Ledger.Interval

Methods

typeRep :: Proxy UpperBound -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep (UpperBound a) 
Instance details

Defined in Plutus.V1.Ledger.Interval

type Rep (UpperBound a) = D1 ('MetaData "UpperBound" "Plutus.V1.Ledger.Interval" "plutus-ledger-api-1.0.0.1-6EvbyJiK8IAAVEtnIJDu5Z" 'False) (C1 ('MetaCons "UpperBound" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Extended a)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Closure)))

newtype DiffMilliSeconds #

Instances

Instances details
Enum DiffMilliSeconds 
Instance details

Defined in Plutus.V1.Ledger.Time

Eq DiffMilliSeconds 
Instance details

Defined in Plutus.V1.Ledger.Time

Integral DiffMilliSeconds 
Instance details

Defined in Plutus.V1.Ledger.Time

Num DiffMilliSeconds 
Instance details

Defined in Plutus.V1.Ledger.Time

Ord DiffMilliSeconds 
Instance details

Defined in Plutus.V1.Ledger.Time

Real DiffMilliSeconds 
Instance details

Defined in Plutus.V1.Ledger.Time

Show DiffMilliSeconds 
Instance details

Defined in Plutus.V1.Ledger.Time

Generic DiffMilliSeconds 
Instance details

Defined in Plutus.V1.Ledger.Time

Associated Types

type Rep DiffMilliSeconds :: Type -> Type Source #

NFData DiffMilliSeconds 
Instance details

Defined in Plutus.V1.Ledger.Time

Methods

rnf :: DiffMilliSeconds -> () Source #

Eq DiffMilliSeconds 
Instance details

Defined in Plutus.V1.Ledger.Time

AdditiveGroup DiffMilliSeconds 
Instance details

Defined in Plutus.V1.Ledger.Time

AdditiveMonoid DiffMilliSeconds 
Instance details

Defined in Plutus.V1.Ledger.Time

AdditiveSemigroup DiffMilliSeconds 
Instance details

Defined in Plutus.V1.Ledger.Time

Ord DiffMilliSeconds 
Instance details

Defined in Plutus.V1.Ledger.Time

FromData DiffMilliSeconds 
Instance details

Defined in Plutus.V1.Ledger.Time

Methods

fromBuiltinData :: BuiltinData -> Maybe DiffMilliSeconds

ToData DiffMilliSeconds 
Instance details

Defined in Plutus.V1.Ledger.Time

Methods

toBuiltinData :: DiffMilliSeconds -> BuiltinData

UnsafeFromData DiffMilliSeconds 
Instance details

Defined in Plutus.V1.Ledger.Time

Methods

unsafeFromBuiltinData :: BuiltinData -> DiffMilliSeconds

Lift DefaultUni DiffMilliSeconds 
Instance details

Defined in Plutus.V1.Ledger.Time

Methods

lift :: DiffMilliSeconds -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni DiffMilliSeconds 
Instance details

Defined in Plutus.V1.Ledger.Time

Methods

typeRep :: Proxy DiffMilliSeconds -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep DiffMilliSeconds 
Instance details

Defined in Plutus.V1.Ledger.Time

type Rep DiffMilliSeconds = D1 ('MetaData "DiffMilliSeconds" "Plutus.V1.Ledger.Time" "plutus-ledger-api-1.0.0.1-6EvbyJiK8IAAVEtnIJDu5Z" 'True) (C1 ('MetaCons "DiffMilliSeconds" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer)))

newtype Slot Source #

The slot number. This is a good proxy for time, since on the Cardano blockchain slots pass at a constant rate.

Constructors

Slot 

Fields

Instances

Instances details
Enum Slot Source # 
Instance details

Defined in Ledger.Slot

Eq Slot Source # 
Instance details

Defined in Ledger.Slot

Methods

(==) :: Slot -> Slot -> Bool Source #

(/=) :: Slot -> Slot -> Bool Source #

Integral Slot Source # 
Instance details

Defined in Ledger.Slot

Data Slot Source # 
Instance details

Defined in Ledger.Slot

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Slot -> c Slot Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Slot Source #

toConstr :: Slot -> Constr Source #

dataTypeOf :: Slot -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Slot) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Slot) Source #

gmapT :: (forall b. Data b => b -> b) -> Slot -> Slot Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Slot -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Slot -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> Slot -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Slot -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Slot -> m Slot Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Slot -> m Slot Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Slot -> m Slot Source #

Num Slot Source # 
Instance details

Defined in Ledger.Slot

Ord Slot Source # 
Instance details

Defined in Ledger.Slot

Real Slot Source # 
Instance details

Defined in Ledger.Slot

Show Slot Source # 
Instance details

Defined in Ledger.Slot

Generic Slot Source # 
Instance details

Defined in Ledger.Slot

Associated Types

type Rep Slot :: Type -> Type Source #

Methods

from :: Slot -> Rep Slot x Source #

to :: Rep Slot x -> Slot Source #

Serialise Slot Source # 
Instance details

Defined in Ledger.Slot

Methods

encode :: Slot -> Encoding

decode :: Decoder s Slot

encodeList :: [Slot] -> Encoding

decodeList :: Decoder s [Slot]

Hashable Slot Source # 
Instance details

Defined in Ledger.Slot

Methods

hashWithSalt :: Int -> Slot -> Int

hash :: Slot -> Int

FromJSON Slot Source # 
Instance details

Defined in Ledger.Slot

Methods

parseJSON :: Value -> Parser Slot

parseJSONList :: Value -> Parser [Slot]

FromJSONKey Slot Source # 
Instance details

Defined in Ledger.Slot

Methods

fromJSONKey :: FromJSONKeyFunction Slot

fromJSONKeyList :: FromJSONKeyFunction [Slot]

ToJSON Slot Source # 
Instance details

Defined in Ledger.Slot

Methods

toJSON :: Slot -> Value

toEncoding :: Slot -> Encoding

toJSONList :: [Slot] -> Value

toEncodingList :: [Slot] -> Encoding

ToJSONKey Slot Source # 
Instance details

Defined in Ledger.Slot

Methods

toJSONKey :: ToJSONKeyFunction Slot

toJSONKeyList :: ToJSONKeyFunction [Slot]

Enum Slot Source # 
Instance details

Defined in Ledger.Slot

Eq Slot Source # 
Instance details

Defined in Ledger.Slot

Methods

(==) :: Slot -> Slot -> Bool

AdditiveGroup Slot Source # 
Instance details

Defined in Ledger.Slot

Methods

(-) :: Slot -> Slot -> Slot

AdditiveMonoid Slot Source # 
Instance details

Defined in Ledger.Slot

Methods

zero :: Slot

AdditiveSemigroup Slot Source # 
Instance details

Defined in Ledger.Slot

Methods

(+) :: Slot -> Slot -> Slot

Ord Slot Source # 
Instance details

Defined in Ledger.Slot

Methods

compare :: Slot -> Slot -> Ordering

(<) :: Slot -> Slot -> Bool

(<=) :: Slot -> Slot -> Bool

(>) :: Slot -> Slot -> Bool

(>=) :: Slot -> Slot -> Bool

max :: Slot -> Slot -> Slot

min :: Slot -> Slot -> Slot

Pretty Slot Source # 
Instance details

Defined in Ledger.Slot

Methods

pretty :: Slot -> Doc ann #

prettyList :: [Slot] -> Doc ann #

FromData Slot Source # 
Instance details

Defined in Ledger.Slot

Methods

fromBuiltinData :: BuiltinData -> Maybe Slot

ToData Slot Source # 
Instance details

Defined in Ledger.Slot

Methods

toBuiltinData :: Slot -> BuiltinData

UnsafeFromData Slot Source # 
Instance details

Defined in Ledger.Slot

Methods

unsafeFromBuiltinData :: BuiltinData -> Slot

Lift DefaultUni Slot Source # 
Instance details

Defined in Ledger.Slot

Methods

lift :: Slot -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni Slot Source # 
Instance details

Defined in Ledger.Slot

Methods

typeRep :: Proxy Slot -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep Slot Source # 
Instance details

Defined in Ledger.Slot

type Rep Slot = D1 ('MetaData "Slot" "Ledger.Slot" "plutus-ledger-1.2.0.0-8dOSOspdVv7Hd909lHBnfn" 'True) (C1 ('MetaCons "Slot" 'PrefixI 'True) (S1 ('MetaSel ('Just "getSlot") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer)))

width :: SlotRange -> Maybe Integer Source #

Number of Slots covered by the interval, if finite. width (from x) == Nothing.

newtype Signature Source #

A message with a cryptographic signature.

Constructors

Signature 

Fields

Instances

Instances details
Eq Signature Source # 
Instance details

Defined in Ledger.Crypto

Ord Signature Source # 
Instance details

Defined in Ledger.Crypto

Show Signature Source # 
Instance details

Defined in Ledger.Crypto

Generic Signature Source # 
Instance details

Defined in Ledger.Crypto

Associated Types

type Rep Signature :: Type -> Type Source #

Serialise Signature Source # 
Instance details

Defined in Ledger.Crypto

Methods

encode :: Signature -> Encoding

decode :: Decoder s Signature

encodeList :: [Signature] -> Encoding

decodeList :: Decoder s [Signature]

FromJSON Signature Source # 
Instance details

Defined in Ledger.Crypto

Methods

parseJSON :: Value -> Parser Signature

parseJSONList :: Value -> Parser [Signature]

ToJSON Signature Source # 
Instance details

Defined in Ledger.Crypto

Methods

toJSON :: Signature -> Value

toEncoding :: Signature -> Encoding

toJSONList :: [Signature] -> Value

toEncodingList :: [Signature] -> Encoding

Eq Signature Source # 
Instance details

Defined in Ledger.Crypto

Methods

(==) :: Signature -> Signature -> Bool

Ord Signature Source # 
Instance details

Defined in Ledger.Crypto

Pretty Signature Source # 
Instance details

Defined in Ledger.Crypto

Methods

pretty :: Signature -> Doc ann #

prettyList :: [Signature] -> Doc ann #

FromData Signature Source # 
Instance details

Defined in Ledger.Crypto

Methods

fromBuiltinData :: BuiltinData -> Maybe Signature

ToData Signature Source # 
Instance details

Defined in Ledger.Crypto

Methods

toBuiltinData :: Signature -> BuiltinData

UnsafeFromData Signature Source # 
Instance details

Defined in Ledger.Crypto

Methods

unsafeFromBuiltinData :: BuiltinData -> Signature

Lift DefaultUni Signature Source # 
Instance details

Defined in Ledger.Crypto

Methods

lift :: Signature -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni Signature Source # 
Instance details

Defined in Ledger.Crypto

Methods

typeRep :: Proxy Signature -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep Signature Source # 
Instance details

Defined in Ledger.Crypto

type Rep Signature = D1 ('MetaData "Signature" "Ledger.Crypto" "plutus-ledger-1.2.0.0-8dOSOspdVv7Hd909lHBnfn" 'True) (C1 ('MetaCons "Signature" 'PrefixI 'True) (S1 ('MetaSel ('Just "getSignature") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinByteString)))

newtype Passphrase Source #

Passphrase newtype to mark intent

Constructors

Passphrase 

Fields

Instances

Instances details
Show Passphrase Source # 
Instance details

Defined in Ledger.Crypto

IsString Passphrase Source # 
Instance details

Defined in Ledger.Crypto

newtype PubKey Source #

Constructors

PubKey 

Fields

Instances

Instances details
Eq PubKey Source # 
Instance details

Defined in Ledger.Crypto

Ord PubKey Source # 
Instance details

Defined in Ledger.Crypto

Show PubKey Source # 
Instance details

Defined in Ledger.Crypto

IsString PubKey Source # 
Instance details

Defined in Ledger.Crypto

Generic PubKey Source # 
Instance details

Defined in Ledger.Crypto

Associated Types

type Rep PubKey :: Type -> Type Source #

Serialise PubKey Source # 
Instance details

Defined in Ledger.Crypto

Methods

encode :: PubKey -> Encoding

decode :: Decoder s PubKey

encodeList :: [PubKey] -> Encoding

decodeList :: Decoder s [PubKey]

FromJSON PubKey Source # 
Instance details

Defined in Ledger.Crypto

Methods

parseJSON :: Value -> Parser PubKey

parseJSONList :: Value -> Parser [PubKey]

FromJSONKey PubKey Source # 
Instance details

Defined in Ledger.Crypto

Methods

fromJSONKey :: FromJSONKeyFunction PubKey

fromJSONKeyList :: FromJSONKeyFunction [PubKey]

ToJSON PubKey Source # 
Instance details

Defined in Ledger.Crypto

Methods

toJSON :: PubKey -> Value

toEncoding :: PubKey -> Encoding

toJSONList :: [PubKey] -> Value

toEncodingList :: [PubKey] -> Encoding

ToJSONKey PubKey Source # 
Instance details

Defined in Ledger.Crypto

Methods

toJSONKey :: ToJSONKeyFunction PubKey

toJSONKeyList :: ToJSONKeyFunction [PubKey]

Eq PubKey Source # 
Instance details

Defined in Ledger.Crypto

Methods

(==) :: PubKey -> PubKey -> Bool

Ord PubKey Source # 
Instance details

Defined in Ledger.Crypto

Pretty PubKey Source # 
Instance details

Defined in Ledger.Crypto

Methods

pretty :: PubKey -> Doc ann #

prettyList :: [PubKey] -> Doc ann #

FromData PubKey Source # 
Instance details

Defined in Ledger.Crypto

Methods

fromBuiltinData :: BuiltinData -> Maybe PubKey

ToData PubKey Source # 
Instance details

Defined in Ledger.Crypto

Methods

toBuiltinData :: PubKey -> BuiltinData

UnsafeFromData PubKey Source # 
Instance details

Defined in Ledger.Crypto

Methods

unsafeFromBuiltinData :: BuiltinData -> PubKey

Newtype PubKey Source # 
Instance details

Defined in Ledger.Crypto

Associated Types

type O PubKey

Methods

pack :: O PubKey -> PubKey

unpack :: PubKey -> O PubKey

Lift DefaultUni PubKey Source # 
Instance details

Defined in Ledger.Crypto

Methods

lift :: PubKey -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni PubKey Source # 
Instance details

Defined in Ledger.Crypto

Methods

typeRep :: Proxy PubKey -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep PubKey Source # 
Instance details

Defined in Ledger.Crypto

type Rep PubKey = D1 ('MetaData "PubKey" "Ledger.Crypto" "plutus-ledger-1.2.0.0-8dOSOspdVv7Hd909lHBnfn" 'True) (C1 ('MetaCons "PubKey" 'PrefixI 'True) (S1 ('MetaSel ('Just "getPubKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LedgerBytes)))
type O PubKey Source # 
Instance details

Defined in Ledger.Crypto

type O PubKey = GO (Rep PubKey)

newtype PrivateKey Source #

A cryptographic private key.

Constructors

PrivateKey 

Fields

Instances

Instances details
Eq PrivateKey Source # 
Instance details

Defined in Ledger.Crypto

Ord PrivateKey Source # 
Instance details

Defined in Ledger.Crypto

Show PrivateKey Source # 
Instance details

Defined in Ledger.Crypto

Generic PrivateKey Source # 
Instance details

Defined in Ledger.Crypto

Associated Types

type Rep PrivateKey :: Type -> Type Source #

Serialise PrivateKey Source # 
Instance details

Defined in Ledger.Crypto

Methods

encode :: PrivateKey -> Encoding

decode :: Decoder s PrivateKey

encodeList :: [PrivateKey] -> Encoding

decodeList :: Decoder s [PrivateKey]

Hashable PrivateKey Source # 
Instance details

Defined in Ledger.Crypto

FromJSON PrivateKey Source # 
Instance details

Defined in Ledger.Crypto

Methods

parseJSON :: Value -> Parser PrivateKey

parseJSONList :: Value -> Parser [PrivateKey]

FromJSONKey PrivateKey Source # 
Instance details

Defined in Ledger.Crypto

Methods

fromJSONKey :: FromJSONKeyFunction PrivateKey

fromJSONKeyList :: FromJSONKeyFunction [PrivateKey]

ToJSON PrivateKey Source # 
Instance details

Defined in Ledger.Crypto

Methods

toJSON :: PrivateKey -> Value

toEncoding :: PrivateKey -> Encoding

toJSONList :: [PrivateKey] -> Value

toEncodingList :: [PrivateKey] -> Encoding

ToJSONKey PrivateKey Source # 
Instance details

Defined in Ledger.Crypto

Methods

toJSONKey :: ToJSONKeyFunction PrivateKey

toJSONKeyList :: ToJSONKeyFunction [PrivateKey]

Eq PrivateKey Source # 
Instance details

Defined in Ledger.Crypto

Methods

(==) :: PrivateKey -> PrivateKey -> Bool

Ord PrivateKey Source # 
Instance details

Defined in Ledger.Crypto

Pretty PrivateKey Source # 
Instance details

Defined in Ledger.Crypto

Methods

pretty :: PrivateKey -> Doc ann #

prettyList :: [PrivateKey] -> Doc ann #

FromData PrivateKey Source # 
Instance details

Defined in Ledger.Crypto

Methods

fromBuiltinData :: BuiltinData -> Maybe PrivateKey

ToData PrivateKey Source # 
Instance details

Defined in Ledger.Crypto

Methods

toBuiltinData :: PrivateKey -> BuiltinData

UnsafeFromData PrivateKey Source # 
Instance details

Defined in Ledger.Crypto

Methods

unsafeFromBuiltinData :: BuiltinData -> PrivateKey

Newtype PrivateKey Source # 
Instance details

Defined in Ledger.Crypto

Associated Types

type O PrivateKey

FromHttpApiData PrivateKey 
Instance details

Defined in Ledger.Orphans

Methods

parseUrlPiece :: Text -> Either Text PrivateKey

parseHeader :: ByteString -> Either Text PrivateKey

parseQueryParam :: Text -> Either Text PrivateKey

ToHttpApiData PrivateKey 
Instance details

Defined in Ledger.Orphans

Methods

toUrlPiece :: PrivateKey -> Text

toEncodedUrlPiece :: PrivateKey -> Builder

toHeader :: PrivateKey -> ByteString

toQueryParam :: PrivateKey -> Text

Lift DefaultUni PrivateKey Source # 
Instance details

Defined in Ledger.Crypto

Methods

lift :: PrivateKey -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni PrivateKey Source # 
Instance details

Defined in Ledger.Crypto

Methods

typeRep :: Proxy PrivateKey -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep PrivateKey Source # 
Instance details

Defined in Ledger.Crypto

type Rep PrivateKey = D1 ('MetaData "PrivateKey" "Ledger.Crypto" "plutus-ledger-1.2.0.0-8dOSOspdVv7Hd909lHBnfn" 'True) (C1 ('MetaCons "PrivateKey" 'PrefixI 'True) (S1 ('MetaSel ('Just "getPrivateKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LedgerBytes)))
type O PrivateKey Source # 
Instance details

Defined in Ledger.Crypto

type O PrivateKey = GO (Rep PrivateKey)

pubKeyHash :: PubKey -> PubKeyHash Source #

Compute the hash of a public key.

signedBy :: ByteArrayAccess a => Signature -> PubKey -> a -> Bool Source #

Check whether the given Signature was signed by the private key corresponding to the given public key.

signTx :: TxId -> XPrv -> Passphrase -> Signature Source #

Sign the hash of a transaction using a private key and passphrase.

signTx' :: TxId -> XPrv -> Signature Source #

Sign the hash of a transaction using a private key that has no passphrase.

sign :: ByteArrayAccess a => a -> XPrv -> Passphrase -> Signature Source #

Sign a message using a private key and passphrase.

sign' :: ByteArrayAccess a => a -> XPrv -> Signature Source #

Sign a message using a private key with no passphrase.

generateFromSeed :: ByteString -> Passphrase -> XPrv Source #

Generate a private key from a seed phrase and passphrase

generateFromSeed' :: ByteString -> XPrv Source #

Generate a private key from a seed phrase without a passphrase.

newtype PaymentPubKey Source #

Constructors

PaymentPubKey 

Instances

Instances details
Eq PaymentPubKey Source # 
Instance details

Defined in Ledger.Address

Ord PaymentPubKey Source # 
Instance details

Defined in Ledger.Address

Show PaymentPubKey Source # 
Instance details

Defined in Ledger.Address

Generic PaymentPubKey Source # 
Instance details

Defined in Ledger.Address

Associated Types

type Rep PaymentPubKey :: Type -> Type Source #

Serialise PaymentPubKey Source # 
Instance details

Defined in Ledger.Address

Methods

encode :: PaymentPubKey -> Encoding

decode :: Decoder s PaymentPubKey

encodeList :: [PaymentPubKey] -> Encoding

decodeList :: Decoder s [PaymentPubKey]

FromJSON PaymentPubKey Source # 
Instance details

Defined in Ledger.Address

Methods

parseJSON :: Value -> Parser PaymentPubKey

parseJSONList :: Value -> Parser [PaymentPubKey]

FromJSONKey PaymentPubKey Source # 
Instance details

Defined in Ledger.Address

Methods

fromJSONKey :: FromJSONKeyFunction PaymentPubKey

fromJSONKeyList :: FromJSONKeyFunction [PaymentPubKey]

ToJSON PaymentPubKey Source # 
Instance details

Defined in Ledger.Address

Methods

toJSON :: PaymentPubKey -> Value

toEncoding :: PaymentPubKey -> Encoding

toJSONList :: [PaymentPubKey] -> Value

toEncodingList :: [PaymentPubKey] -> Encoding

ToJSONKey PaymentPubKey Source # 
Instance details

Defined in Ledger.Address

Methods

toJSONKey :: ToJSONKeyFunction PaymentPubKey

toJSONKeyList :: ToJSONKeyFunction [PaymentPubKey]

Eq PaymentPubKey Source # 
Instance details

Defined in Ledger.Address

Ord PaymentPubKey Source # 
Instance details

Defined in Ledger.Address

Pretty PaymentPubKey Source # 
Instance details

Defined in Ledger.Address

Methods

pretty :: PaymentPubKey -> Doc ann #

prettyList :: [PaymentPubKey] -> Doc ann #

FromData PaymentPubKey Source # 
Instance details

Defined in Ledger.Address

Methods

fromBuiltinData :: BuiltinData -> Maybe PaymentPubKey

ToData PaymentPubKey Source # 
Instance details

Defined in Ledger.Address

Methods

toBuiltinData :: PaymentPubKey -> BuiltinData

UnsafeFromData PaymentPubKey Source # 
Instance details

Defined in Ledger.Address

Methods

unsafeFromBuiltinData :: BuiltinData -> PaymentPubKey

Lift DefaultUni PaymentPubKey Source # 
Instance details

Defined in Ledger.Address

Methods

lift :: PaymentPubKey -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni PaymentPubKey Source # 
Instance details

Defined in Ledger.Address

Methods

typeRep :: Proxy PaymentPubKey -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep PaymentPubKey Source # 
Instance details

Defined in Ledger.Address

type Rep PaymentPubKey = D1 ('MetaData "PaymentPubKey" "Ledger.Address" "plutus-ledger-1.2.0.0-8dOSOspdVv7Hd909lHBnfn" 'True) (C1 ('MetaCons "PaymentPubKey" 'PrefixI 'True) (S1 ('MetaSel ('Just "unPaymentPubKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PubKey)))

newtype PaymentPrivateKey Source #

Constructors

PaymentPrivateKey 

Fields

type CardanoAddress = AddressInEra BabbageEra Source #

cardanoPubKeyHash :: AddressInEra era -> Maybe PubKeyHash Source #

toPlutusAddress :: AddressInEra era -> Address Source #

toPlutusPubKeyHash :: Hash PaymentKey -> PubKeyHash Source #

newtype PaymentPubKeyHash Source #

Instances

Instances details
Eq PaymentPubKeyHash Source # 
Instance details

Defined in Ledger.Address

Ord PaymentPubKeyHash Source # 
Instance details

Defined in Ledger.Address

Show PaymentPubKeyHash Source # 
Instance details

Defined in Ledger.Address

Generic PaymentPubKeyHash Source # 
Instance details

Defined in Ledger.Address

Associated Types

type Rep PaymentPubKeyHash :: Type -> Type Source #

Serialise PaymentPubKeyHash Source # 
Instance details

Defined in Ledger.Address

Methods

encode :: PaymentPubKeyHash -> Encoding

decode :: Decoder s PaymentPubKeyHash

encodeList :: [PaymentPubKeyHash] -> Encoding

decodeList :: Decoder s [PaymentPubKeyHash]

Hashable PaymentPubKeyHash Source # 
Instance details

Defined in Ledger.Address

FromJSON PaymentPubKeyHash Source # 
Instance details

Defined in Ledger.Address

Methods

parseJSON :: Value -> Parser PaymentPubKeyHash

parseJSONList :: Value -> Parser [PaymentPubKeyHash]

FromJSONKey PaymentPubKeyHash Source # 
Instance details

Defined in Ledger.Address

Methods

fromJSONKey :: FromJSONKeyFunction PaymentPubKeyHash

fromJSONKeyList :: FromJSONKeyFunction [PaymentPubKeyHash]

ToJSON PaymentPubKeyHash Source # 
Instance details

Defined in Ledger.Address

ToJSONKey PaymentPubKeyHash Source # 
Instance details

Defined in Ledger.Address

Methods

toJSONKey :: ToJSONKeyFunction PaymentPubKeyHash

toJSONKeyList :: ToJSONKeyFunction [PaymentPubKeyHash]

Eq PaymentPubKeyHash Source # 
Instance details

Defined in Ledger.Address

Ord PaymentPubKeyHash Source # 
Instance details

Defined in Ledger.Address

Pretty PaymentPubKeyHash Source # 
Instance details

Defined in Ledger.Address

Methods

pretty :: PaymentPubKeyHash -> Doc ann #

prettyList :: [PaymentPubKeyHash] -> Doc ann #

FromData PaymentPubKeyHash Source # 
Instance details

Defined in Ledger.Address

Methods

fromBuiltinData :: BuiltinData -> Maybe PaymentPubKeyHash

ToData PaymentPubKeyHash Source # 
Instance details

Defined in Ledger.Address

Methods

toBuiltinData :: PaymentPubKeyHash -> BuiltinData

UnsafeFromData PaymentPubKeyHash Source # 
Instance details

Defined in Ledger.Address

Methods

unsafeFromBuiltinData :: BuiltinData -> PaymentPubKeyHash

Lift DefaultUni PaymentPubKeyHash Source # 
Instance details

Defined in Ledger.Address

Methods

lift :: PaymentPubKeyHash -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni PaymentPubKeyHash Source # 
Instance details

Defined in Ledger.Address

Methods

typeRep :: Proxy PaymentPubKeyHash -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep PaymentPubKeyHash Source # 
Instance details

Defined in Ledger.Address

type Rep PaymentPubKeyHash = D1 ('MetaData "PaymentPubKeyHash" "Ledger.Address" "plutus-ledger-1.2.0.0-8dOSOspdVv7Hd909lHBnfn" 'True) (C1 ('MetaCons "PaymentPubKeyHash" 'PrefixI 'True) (S1 ('MetaSel ('Just "unPaymentPubKeyHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PubKeyHash)))

newtype StakePubKey Source #

Constructors

StakePubKey 

Instances

Instances details
Eq StakePubKey Source # 
Instance details

Defined in Ledger.Address

Ord StakePubKey Source # 
Instance details

Defined in Ledger.Address

Show StakePubKey Source # 
Instance details

Defined in Ledger.Address

Generic StakePubKey Source # 
Instance details

Defined in Ledger.Address

Associated Types

type Rep StakePubKey :: Type -> Type Source #

Serialise StakePubKey Source # 
Instance details

Defined in Ledger.Address

Methods

encode :: StakePubKey -> Encoding

decode :: Decoder s StakePubKey

encodeList :: [StakePubKey] -> Encoding

decodeList :: Decoder s [StakePubKey]

FromJSON StakePubKey Source # 
Instance details

Defined in Ledger.Address

Methods

parseJSON :: Value -> Parser StakePubKey

parseJSONList :: Value -> Parser [StakePubKey]

FromJSONKey StakePubKey Source # 
Instance details

Defined in Ledger.Address

Methods

fromJSONKey :: FromJSONKeyFunction StakePubKey

fromJSONKeyList :: FromJSONKeyFunction [StakePubKey]

ToJSON StakePubKey Source # 
Instance details

Defined in Ledger.Address

Methods

toJSON :: StakePubKey -> Value

toEncoding :: StakePubKey -> Encoding

toJSONList :: [StakePubKey] -> Value

toEncodingList :: [StakePubKey] -> Encoding

ToJSONKey StakePubKey Source # 
Instance details

Defined in Ledger.Address

Methods

toJSONKey :: ToJSONKeyFunction StakePubKey

toJSONKeyList :: ToJSONKeyFunction [StakePubKey]

Eq StakePubKey Source # 
Instance details

Defined in Ledger.Address

Ord StakePubKey Source # 
Instance details

Defined in Ledger.Address

Pretty StakePubKey Source # 
Instance details

Defined in Ledger.Address

Methods

pretty :: StakePubKey -> Doc ann #

prettyList :: [StakePubKey] -> Doc ann #

FromData StakePubKey Source # 
Instance details

Defined in Ledger.Address

Methods

fromBuiltinData :: BuiltinData -> Maybe StakePubKey

ToData StakePubKey Source # 
Instance details

Defined in Ledger.Address

Methods

toBuiltinData :: StakePubKey -> BuiltinData

UnsafeFromData StakePubKey Source # 
Instance details

Defined in Ledger.Address

Methods

unsafeFromBuiltinData :: BuiltinData -> StakePubKey

Lift DefaultUni StakePubKey Source # 
Instance details

Defined in Ledger.Address

Methods

lift :: StakePubKey -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni StakePubKey Source # 
Instance details

Defined in Ledger.Address

Methods

typeRep :: Proxy StakePubKey -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep StakePubKey Source # 
Instance details

Defined in Ledger.Address

type Rep StakePubKey = D1 ('MetaData "StakePubKey" "Ledger.Address" "plutus-ledger-1.2.0.0-8dOSOspdVv7Hd909lHBnfn" 'True) (C1 ('MetaCons "StakePubKey" 'PrefixI 'True) (S1 ('MetaSel ('Just "unStakePubKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PubKey)))

newtype StakePubKeyHash Source #

Instances

Instances details
Eq StakePubKeyHash Source # 
Instance details

Defined in Ledger.Address

Ord StakePubKeyHash Source # 
Instance details

Defined in Ledger.Address

Show StakePubKeyHash Source # 
Instance details

Defined in Ledger.Address

Generic StakePubKeyHash Source # 
Instance details

Defined in Ledger.Address

Associated Types

type Rep StakePubKeyHash :: Type -> Type Source #

Serialise StakePubKeyHash Source # 
Instance details

Defined in Ledger.Address

Methods

encode :: StakePubKeyHash -> Encoding

decode :: Decoder s StakePubKeyHash

encodeList :: [StakePubKeyHash] -> Encoding

decodeList :: Decoder s [StakePubKeyHash]

Hashable StakePubKeyHash Source # 
Instance details

Defined in Ledger.Address

FromJSON StakePubKeyHash Source # 
Instance details

Defined in Ledger.Address

Methods

parseJSON :: Value -> Parser StakePubKeyHash

parseJSONList :: Value -> Parser [StakePubKeyHash]

FromJSONKey StakePubKeyHash Source # 
Instance details

Defined in Ledger.Address

Methods

fromJSONKey :: FromJSONKeyFunction StakePubKeyHash

fromJSONKeyList :: FromJSONKeyFunction [StakePubKeyHash]

ToJSON StakePubKeyHash Source # 
Instance details

Defined in Ledger.Address

Methods

toJSON :: StakePubKeyHash -> Value

toEncoding :: StakePubKeyHash -> Encoding

toJSONList :: [StakePubKeyHash] -> Value

toEncodingList :: [StakePubKeyHash] -> Encoding

ToJSONKey StakePubKeyHash Source # 
Instance details

Defined in Ledger.Address

Methods

toJSONKey :: ToJSONKeyFunction StakePubKeyHash

toJSONKeyList :: ToJSONKeyFunction [StakePubKeyHash]

Eq StakePubKeyHash Source # 
Instance details

Defined in Ledger.Address

Ord StakePubKeyHash Source # 
Instance details

Defined in Ledger.Address

Pretty StakePubKeyHash Source # 
Instance details

Defined in Ledger.Address

Methods

pretty :: StakePubKeyHash -> Doc ann #

prettyList :: [StakePubKeyHash] -> Doc ann #

FromData StakePubKeyHash Source # 
Instance details

Defined in Ledger.Address

Methods

fromBuiltinData :: BuiltinData -> Maybe StakePubKeyHash

ToData StakePubKeyHash Source # 
Instance details

Defined in Ledger.Address

Methods

toBuiltinData :: StakePubKeyHash -> BuiltinData

UnsafeFromData StakePubKeyHash Source # 
Instance details

Defined in Ledger.Address

Methods

unsafeFromBuiltinData :: BuiltinData -> StakePubKeyHash

Lift DefaultUni StakePubKeyHash Source # 
Instance details

Defined in Ledger.Address

Methods

lift :: StakePubKeyHash -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni StakePubKeyHash Source # 
Instance details

Defined in Ledger.Address

Methods

typeRep :: Proxy StakePubKeyHash -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep StakePubKeyHash Source # 
Instance details

Defined in Ledger.Address

type Rep StakePubKeyHash = D1 ('MetaData "StakePubKeyHash" "Ledger.Address" "plutus-ledger-1.2.0.0-8dOSOspdVv7Hd909lHBnfn" 'True) (C1 ('MetaCons "StakePubKeyHash" 'PrefixI 'True) (S1 ('MetaSel ('Just "unStakePubKeyHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PubKeyHash)))

pubKeyHashAddress :: PaymentPubKeyHash -> Maybe StakingCredential -> Address Source #

The address that should be targeted by a transaction output locked by the given public payment key (with its staking credentials).

pubKeyAddress :: PaymentPubKey -> Maybe StakingCredential -> Address Source #

The address that should be targeted by a transaction output locked by the given public key. (with its staking credentials).

scriptValidatorHashAddress :: ValidatorHash -> Maybe StakingCredential -> Address Source #

The address that should be used by a transaction output locked by the given validator script (with its staking credentials).

mkValidatorCardanoAddress :: NetworkId -> Versioned Validator -> AddressInEra BabbageEra Source #

Cardano address of a versioned Validator script.

data ToCardanoError Source #

Instances

Instances details
Eq ToCardanoError Source # 
Instance details

Defined in Ledger.Tx.CardanoAPI.Internal

Show ToCardanoError Source # 
Instance details

Defined in Ledger.Tx.CardanoAPI.Internal

Generic ToCardanoError Source # 
Instance details

Defined in Ledger.Tx.CardanoAPI.Internal

Associated Types

type Rep ToCardanoError :: Type -> Type Source #

FromJSON ToCardanoError Source # 
Instance details

Defined in Ledger.Tx.CardanoAPI.Internal

Methods

parseJSON :: Value -> Parser ToCardanoError

parseJSONList :: Value -> Parser [ToCardanoError]

ToJSON ToCardanoError Source # 
Instance details

Defined in Ledger.Tx.CardanoAPI.Internal

Methods

toJSON :: ToCardanoError -> Value

toEncoding :: ToCardanoError -> Encoding

toJSONList :: [ToCardanoError] -> Value

toEncodingList :: [ToCardanoError] -> Encoding

Pretty ToCardanoError Source # 
Instance details

Defined in Ledger.Tx.CardanoAPI.Internal

Methods

pretty :: ToCardanoError -> Doc ann #

prettyList :: [ToCardanoError] -> Doc ann #

type Rep ToCardanoError Source # 
Instance details

Defined in Ledger.Tx.CardanoAPI.Internal

type Rep ToCardanoError = D1 ('MetaData "ToCardanoError" "Ledger.Tx.CardanoAPI.Internal" "plutus-ledger-1.2.0.0-8dOSOspdVv7Hd909lHBnfn" 'False) (((C1 ('MetaCons "TxBodyError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String)) :+: (C1 ('MetaCons "DeserialisationError" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "InvalidValidityRange" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "ValueNotPureAda" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "OutputHasZeroAda" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "StakingPointersNotSupported" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SimpleScriptsNotSupportedToCardano" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: (((C1 ('MetaCons "MissingInputValidator" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MissingDatum" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "MissingMintingPolicy" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ScriptPurposeNotSupported" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ScriptTag)))) :+: ((C1 ('MetaCons "MissingMintingPolicyRedeemer" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MissingStakeValidator" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "UnsupportedPlutusVersion" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Language)) :+: C1 ('MetaCons "Tag" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ToCardanoError))))))

data CardanoTx where Source #

Cardano tx from any era.

Constructors

CardanoTx :: IsCardanoEra era => Tx era -> EraInMode era CardanoMode -> CardanoTx 

Bundled Patterns

pattern CardanoEmulatorEraTx :: Tx BabbageEra -> CardanoTx 

Instances

Instances details
Eq CardanoTx Source # 
Instance details

Defined in Ledger.Tx.CardanoAPI.Internal

Show CardanoTx Source # 
Instance details

Defined in Ledger.Tx.CardanoAPI.Internal

Serialise CardanoTx Source # 
Instance details

Defined in Ledger.Tx.CardanoAPI.Internal

Methods

encode :: CardanoTx -> Encoding

decode :: Decoder s CardanoTx

encodeList :: [CardanoTx] -> Encoding

decodeList :: Decoder s [CardanoTx]

FromJSON CardanoTx Source #

Converting CardanoTx to JSON.

If the "tx" field is from an unknown era, the JSON parser will print an error at runtime while parsing.

Instance details

Defined in Ledger.Tx.CardanoAPI.Internal

Methods

parseJSON :: Value -> Parser CardanoTx

parseJSONList :: Value -> Parser [CardanoTx]

ToJSON CardanoTx Source # 
Instance details

Defined in Ledger.Tx.CardanoAPI.Internal

Methods

toJSON :: CardanoTx -> Value

toEncoding :: CardanoTx -> Encoding

toJSONList :: [CardanoTx] -> Value

toEncodingList :: [CardanoTx] -> Encoding

Pretty CardanoTx Source # 
Instance details

Defined in Ledger.Tx

Methods

pretty :: CardanoTx -> Doc ann #

prettyList :: [CardanoTx] -> Doc ann #

combine :: Monoid m => (AssetId -> Quantity -> Quantity -> m) -> Value -> Value -> m Source #

type ReferenceScript = ReferenceScript BabbageEra Source #

newtype TxOut Source #

Constructors

TxOut 

Fields

Instances

Instances details
Eq TxOut Source # 
Instance details

Defined in Ledger.Tx.Internal

Methods

(==) :: TxOut -> TxOut -> Bool Source #

(/=) :: TxOut -> TxOut -> Bool Source #

Show TxOut Source # 
Instance details

Defined in Ledger.Tx.Internal

Generic TxOut Source # 
Instance details

Defined in Ledger.Tx.Internal

Associated Types

type Rep TxOut :: Type -> Type Source #

Methods

from :: TxOut -> Rep TxOut x Source #

to :: Rep TxOut x -> TxOut Source #

Serialise TxOut Source # 
Instance details

Defined in Ledger.Tx.Internal

Methods

encode :: TxOut -> Encoding

decode :: Decoder s TxOut

encodeList :: [TxOut] -> Encoding

decodeList :: Decoder s [TxOut]

FromJSON TxOut Source # 
Instance details

Defined in Ledger.Tx.Internal

Methods

parseJSON :: Value -> Parser TxOut

parseJSONList :: Value -> Parser [TxOut]

ToJSON TxOut Source # 
Instance details

Defined in Ledger.Tx.Internal

Methods

toJSON :: TxOut -> Value

toEncoding :: TxOut -> Encoding

toJSONList :: [TxOut] -> Value

toEncodingList :: [TxOut] -> Encoding

Pretty TxOut Source # 
Instance details

Defined in Ledger.Tx.Internal

Methods

pretty :: TxOut -> Doc ann #

prettyList :: [TxOut] -> Doc ann #

FromCBOR TxOut Source # 
Instance details

Defined in Ledger.Tx.Internal

Methods

fromCBOR :: Decoder s TxOut

label :: Proxy TxOut -> Text

ToCBOR TxOut Source # 
Instance details

Defined in Ledger.Tx.Internal

Methods

toCBOR :: TxOut -> Encoding

encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy TxOut -> Size

encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [TxOut] -> Size

type Rep TxOut Source # 
Instance details

Defined in Ledger.Tx.Internal

type Rep TxOut = D1 ('MetaData "TxOut" "Ledger.Tx.Internal" "plutus-ledger-1.2.0.0-8dOSOspdVv7Hd909lHBnfn" 'True) (C1 ('MetaCons "TxOut" 'PrefixI 'True) (S1 ('MetaSel ('Just "getTxOut") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (TxOut CtxTx BabbageEra))))

data Certificate Source #

Constructors

Certificate 

Fields

Instances

Instances details
Eq Certificate Source # 
Instance details

Defined in Ledger.Tx.Internal

Show Certificate Source # 
Instance details

Defined in Ledger.Tx.Internal

Generic Certificate Source # 
Instance details

Defined in Ledger.Tx.Internal

Associated Types

type Rep Certificate :: Type -> Type Source #

Serialise Certificate Source # 
Instance details

Defined in Ledger.Tx.Internal

Methods

encode :: Certificate -> Encoding

decode :: Decoder s Certificate

encodeList :: [Certificate] -> Encoding

decodeList :: Decoder s [Certificate]

FromJSON Certificate Source # 
Instance details

Defined in Ledger.Tx.Internal

Methods

parseJSON :: Value -> Parser Certificate

parseJSONList :: Value -> Parser [Certificate]

ToJSON Certificate Source # 
Instance details

Defined in Ledger.Tx.Internal

Methods

toJSON :: Certificate -> Value

toEncoding :: Certificate -> Encoding

toJSONList :: [Certificate] -> Value

toEncodingList :: [Certificate] -> Encoding

Pretty Certificate Source # 
Instance details

Defined in Ledger.Tx.Internal

Methods

pretty :: Certificate -> Doc ann #

prettyList :: [Certificate] -> Doc ann #

type Rep Certificate Source # 
Instance details

Defined in Ledger.Tx.Internal

type Rep Certificate = D1 ('MetaData "Certificate" "Ledger.Tx.Internal" "plutus-ledger-1.2.0.0-8dOSOspdVv7Hd909lHBnfn" 'False) (C1 ('MetaCons "Certificate" 'PrefixI 'True) (S1 ('MetaSel ('Just "certificateDcert") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DCert) :*: S1 ('MetaSel ('Just "certificateRedeemer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Redeemer))))

data Withdrawal Source #

Stake withdrawal, if applicable the script should be included in txScripts.

Constructors

Withdrawal 

Fields

Instances

Instances details
Eq Withdrawal Source # 
Instance details

Defined in Ledger.Tx.Internal

Show Withdrawal Source # 
Instance details

Defined in Ledger.Tx.Internal

Generic Withdrawal Source # 
Instance details

Defined in Ledger.Tx.Internal

Associated Types

type Rep Withdrawal :: Type -> Type Source #

Serialise Withdrawal Source # 
Instance details

Defined in Ledger.Tx.Internal

Methods

encode :: Withdrawal -> Encoding

decode :: Decoder s Withdrawal

encodeList :: [Withdrawal] -> Encoding

decodeList :: Decoder s [Withdrawal]

FromJSON Withdrawal Source # 
Instance details

Defined in Ledger.Tx.Internal

Methods

parseJSON :: Value -> Parser Withdrawal

parseJSONList :: Value -> Parser [Withdrawal]

ToJSON Withdrawal Source # 
Instance details

Defined in Ledger.Tx.Internal

Methods

toJSON :: Withdrawal -> Value

toEncoding :: Withdrawal -> Encoding

toJSONList :: [Withdrawal] -> Value

toEncodingList :: [Withdrawal] -> Encoding

Pretty Withdrawal Source # 
Instance details

Defined in Ledger.Tx.Internal

Methods

pretty :: Withdrawal -> Doc ann #

prettyList :: [Withdrawal] -> Doc ann #

type Rep Withdrawal Source # 
Instance details

Defined in Ledger.Tx.Internal

type Rep Withdrawal = D1 ('MetaData "Withdrawal" "Ledger.Tx.Internal" "plutus-ledger-1.2.0.0-8dOSOspdVv7Hd909lHBnfn" 'False) (C1 ('MetaCons "Withdrawal" 'PrefixI 'True) (S1 ('MetaSel ('Just "withdrawalCredential") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Credential) :*: (S1 ('MetaSel ('Just "withdrawalAmount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer) :*: S1 ('MetaSel ('Just "withdrawalRedeemer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Redeemer)))))

cardanoTxOutValue :: TxOut ctx era -> Value Source #

outValue :: Lens TxOut TxOut Value (TxOutValue BabbageEra) Source #

outValue' :: Lens' TxOut (TxOutValue BabbageEra) Source #

toSizedTxOut :: TxOut -> Sized (TxOut StandardBabbage) Source #

toCtxUTxOTxOut :: TxOut -> TxOut CtxUTxO BabbageEra Source #

txOutDatumHash :: TxOut -> Maybe DatumHash Source #

Get a hash from the stored TxOutDatum (either directly or by hashing the inlined datum)

txOutDatum :: forall d. FromData d => TxOut -> Maybe d Source #

cardanoTxOutDatumHash :: TxOutDatum CtxUTxO BabbageEra -> Maybe (Hash ScriptData) Source #

outAddress :: Lens' TxOut (AddressInEra BabbageEra) Source #

outDatumHash :: Lens TxOut TxOut (Maybe DatumHash) (TxOutDatum CtxTx BabbageEra) Source #

emptyTxBodyContent :: TxBodyContent BuildTx BabbageEra Source #

data ValidationError Source #

A reason why a transaction is invalid.

Constructors

TxOutRefNotFound TxIn

The transaction output consumed by a transaction input could not be found (either because it was already spent, or because there was no transaction with the given hash on the blockchain).

ScriptFailure ScriptError

For pay-to-script outputs: evaluation of the validator script failed.

CardanoLedgerValidationError Text

An error from Cardano.Ledger validation

MaxCollateralInputsExceeded

Balancing failed, it needed more than the maximum number of collateral inputs

Instances

Instances details
Eq ValidationError Source # 
Instance details

Defined in Ledger.Index.Internal

Show ValidationError Source # 
Instance details

Defined in Ledger.Index.Internal

Generic ValidationError Source # 
Instance details

Defined in Ledger.Index.Internal

Associated Types

type Rep ValidationError :: Type -> Type Source #

FromJSON ValidationError Source # 
Instance details

Defined in Ledger.Index.Internal

Methods

parseJSON :: Value -> Parser ValidationError

parseJSONList :: Value -> Parser [ValidationError]

ToJSON ValidationError Source # 
Instance details

Defined in Ledger.Index.Internal

Methods

toJSON :: ValidationError -> Value

toEncoding :: ValidationError -> Encoding

toJSONList :: [ValidationError] -> Value

toEncodingList :: [ValidationError] -> Encoding

Pretty ValidationError Source # 
Instance details

Defined in Ledger.Index.Internal

Methods

pretty :: ValidationError -> Doc ann #

prettyList :: [ValidationError] -> Doc ann #

type Rep ValidationError Source # 
Instance details

Defined in Ledger.Index.Internal

type Rep ValidationError = D1 ('MetaData "ValidationError" "Ledger.Index.Internal" "plutus-ledger-1.2.0.0-8dOSOspdVv7Hd909lHBnfn" 'False) ((C1 ('MetaCons "TxOutRefNotFound" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TxIn)) :+: C1 ('MetaCons "ScriptFailure" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ScriptError))) :+: (C1 ('MetaCons "CardanoLedgerValidationError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :+: C1 ('MetaCons "MaxCollateralInputsExceeded" 'PrefixI 'False) (U1 :: Type -> Type)))

type UtxoIndex = UTxO BabbageEra Source #

The UTxOs of a blockchain indexed by their references.

newtype OnChainTx Source #

A transaction on the blockchain. Invalid transactions are still put on the chain to be able to collect fees.

Constructors

OnChainTx 

Fields

Instances

Instances details
Eq OnChainTx Source # 
Instance details

Defined in Ledger.Index.Internal

Show OnChainTx Source # 
Instance details

Defined in Ledger.Index.Internal

Generic OnChainTx Source # 
Instance details

Defined in Ledger.Index.Internal

Associated Types

type Rep OnChainTx :: Type -> Type Source #

Serialise OnChainTx Source # 
Instance details

Defined in Ledger.Index.Internal

Methods

encode :: OnChainTx -> Encoding

decode :: Decoder s OnChainTx

encodeList :: [OnChainTx] -> Encoding

decodeList :: Decoder s [OnChainTx]

type Rep OnChainTx Source # 
Instance details

Defined in Ledger.Index.Internal

type Rep OnChainTx = D1 ('MetaData "OnChainTx" "Ledger.Index.Internal" "plutus-ledger-1.2.0.0-8dOSOspdVv7Hd909lHBnfn" 'True) (C1 ('MetaCons "OnChainTx" 'PrefixI 'True) (S1 ('MetaSel ('Just "getOnChainTx") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Validated (Tx EmulatorEra)))))

eitherTx :: (CardanoTx -> r) -> (CardanoTx -> r) -> OnChainTx -> r Source #

data ValidationResult Source #

Constructors

FailPhase1 !CardanoTx !ValidationError

A transaction failed to validate in phase 1.

FailPhase2 !OnChainTx !ValidationError !Value

A transaction failed to validate in phase 2. The Value indicates the amount of collateral stored in the transaction.

Success !OnChainTx !RedeemerReport 

Instances

Instances details
Eq ValidationResult Source # 
Instance details

Defined in Ledger.Index.Internal

Show ValidationResult Source # 
Instance details

Defined in Ledger.Index.Internal

Generic ValidationResult Source # 
Instance details

Defined in Ledger.Index.Internal

Associated Types

type Rep ValidationResult :: Type -> Type Source #

FromJSON ValidationResult Source # 
Instance details

Defined in Ledger.Index.Internal

Methods

parseJSON :: Value -> Parser ValidationResult

parseJSONList :: Value -> Parser [ValidationResult]

ToJSON ValidationResult Source # 
Instance details

Defined in Ledger.Index.Internal

Pretty ValidationResult Source # 
Instance details

Defined in Ledger.Index.Internal

Methods

pretty :: ValidationResult -> Doc ann #

prettyList :: [ValidationResult] -> Doc ann #

type Rep ValidationResult Source # 
Instance details

Defined in Ledger.Index.Internal

type RedeemerReport = Map RdmrPtr ([Text], ExUnits) Source #

data ValidationPhase Source #

Constructors

Phase1 
Phase2 

Instances

Instances details
Eq ValidationPhase Source # 
Instance details

Defined in Ledger.Index.Internal

Show ValidationPhase Source # 
Instance details

Defined in Ledger.Index.Internal

Generic ValidationPhase Source # 
Instance details

Defined in Ledger.Index.Internal

Associated Types

type Rep ValidationPhase :: Type -> Type Source #

FromJSON ValidationPhase Source # 
Instance details

Defined in Ledger.Index.Internal

Methods

parseJSON :: Value -> Parser ValidationPhase

parseJSONList :: Value -> Parser [ValidationPhase]

ToJSON ValidationPhase Source # 
Instance details

Defined in Ledger.Index.Internal

Methods

toJSON :: ValidationPhase -> Value

toEncoding :: ValidationPhase -> Encoding

toJSONList :: [ValidationPhase] -> Value

toEncodingList :: [ValidationPhase] -> Encoding

Pretty ValidationPhase Source # 
Instance details

Defined in Ledger.Index.Internal

Methods

pretty :: ValidationPhase -> Doc ann #

prettyList :: [ValidationPhase] -> Doc ann #

type Rep ValidationPhase Source # 
Instance details

Defined in Ledger.Index.Internal

type Rep ValidationPhase = D1 ('MetaData "ValidationPhase" "Ledger.Index.Internal" "plutus-ledger-1.2.0.0-8dOSOspdVv7Hd909lHBnfn" 'False) (C1 ('MetaCons "Phase1" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Phase2" 'PrefixI 'False) (U1 :: Type -> Type))

getEvaluationLogs :: ValidationResult -> [Text] Source #

Get logs from evaluating plutus scripts.

data DatumFromQuery Source #

A datum in a transaction output that comes from a chain index query.

Instances

Instances details
Eq DatumFromQuery Source # 
Instance details

Defined in Ledger.Tx

Show DatumFromQuery Source # 
Instance details

Defined in Ledger.Tx

Generic DatumFromQuery Source # 
Instance details

Defined in Ledger.Tx

Associated Types

type Rep DatumFromQuery :: Type -> Type Source #

Serialise DatumFromQuery Source # 
Instance details

Defined in Ledger.Tx

Methods

encode :: DatumFromQuery -> Encoding

decode :: Decoder s DatumFromQuery

encodeList :: [DatumFromQuery] -> Encoding

decodeList :: Decoder s [DatumFromQuery]

FromJSON DatumFromQuery Source # 
Instance details

Defined in Ledger.Tx

Methods

parseJSON :: Value -> Parser DatumFromQuery

parseJSONList :: Value -> Parser [DatumFromQuery]

ToJSON DatumFromQuery Source # 
Instance details

Defined in Ledger.Tx

Methods

toJSON :: DatumFromQuery -> Value

toEncoding :: DatumFromQuery -> Encoding

toJSONList :: [DatumFromQuery] -> Value

toEncodingList :: [DatumFromQuery] -> Encoding

type Rep DatumFromQuery Source # 
Instance details

Defined in Ledger.Tx

type Rep DatumFromQuery = D1 ('MetaData "DatumFromQuery" "Ledger.Tx" "plutus-ledger-1.2.0.0-8dOSOspdVv7Hd909lHBnfn" 'False) (C1 ('MetaCons "DatumUnknown" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "DatumInline" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Datum)) :+: C1 ('MetaCons "DatumInBody" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Datum))))

data DecoratedTxOut Source #

Offchain view of a transaction output.

Constructors

PublicKeyDecoratedTxOut 

Fields

ScriptDecoratedTxOut 

Fields

Instances

Instances details
Eq DecoratedTxOut Source # 
Instance details

Defined in Ledger.Tx

Show DecoratedTxOut Source # 
Instance details

Defined in Ledger.Tx

Generic DecoratedTxOut Source # 
Instance details

Defined in Ledger.Tx

Associated Types

type Rep DecoratedTxOut :: Type -> Type Source #

Serialise DecoratedTxOut Source # 
Instance details

Defined in Ledger.Tx

Methods

encode :: DecoratedTxOut -> Encoding

decode :: Decoder s DecoratedTxOut

encodeList :: [DecoratedTxOut] -> Encoding

decodeList :: Decoder s [DecoratedTxOut]

FromJSON DecoratedTxOut Source # 
Instance details

Defined in Ledger.Tx

Methods

parseJSON :: Value -> Parser DecoratedTxOut

parseJSONList :: Value -> Parser [DecoratedTxOut]

ToJSON DecoratedTxOut Source # 
Instance details

Defined in Ledger.Tx

Methods

toJSON :: DecoratedTxOut -> Value

toEncoding :: DecoratedTxOut -> Encoding

toJSONList :: [DecoratedTxOut] -> Value

toEncodingList :: [DecoratedTxOut] -> Encoding

Pretty DecoratedTxOut Source # 
Instance details

Defined in Ledger.Tx

Methods

pretty :: DecoratedTxOut -> Doc ann #

prettyList :: [DecoratedTxOut] -> Doc ann #

type Rep DecoratedTxOut Source # 
Instance details

Defined in Ledger.Tx

type Rep DecoratedTxOut = D1 ('MetaData "DecoratedTxOut" "Ledger.Tx" "plutus-ledger-1.2.0.0-8dOSOspdVv7Hd909lHBnfn" 'False) (C1 ('MetaCons "PublicKeyDecoratedTxOut" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_decoratedTxOutPubKeyHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PubKeyHash) :*: S1 ('MetaSel ('Just "_decoratedTxOutStakingCredential") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe StakingCredential))) :*: (S1 ('MetaSel ('Just "_decoratedTxOutValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Value) :*: (S1 ('MetaSel ('Just "_decoratedTxOutPubKeyDatum") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (DatumHash, DatumFromQuery))) :*: S1 ('MetaSel ('Just "_decoratedTxOutReferenceScript") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Versioned Script)))))) :+: C1 ('MetaCons "ScriptDecoratedTxOut" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_decoratedTxOutValidatorHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ValidatorHash) :*: (S1 ('MetaSel ('Just "_decoratedTxOutStakingCredential") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe StakingCredential)) :*: S1 ('MetaSel ('Just "_decoratedTxOutValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Value))) :*: (S1 ('MetaSel ('Just "_decoratedTxOutScriptDatum") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (DatumHash, DatumFromQuery)) :*: (S1 ('MetaSel ('Just "_decoratedTxOutReferenceScript") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Versioned Script))) :*: S1 ('MetaSel ('Just "_decoratedTxOutValidator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Versioned Validator)))))))

toTxInfoTxOut :: DecoratedTxOut -> TxOut Source #

Converts a transaction output from the chain index to the plutus-ledger-api transaction output.

Note that DecoratedTxOut supports features such inline datums and reference scripts which are not supported by V1 TxOut. Converting from DecoratedTxOut to TxOut and back is therefore lossy.

getTxBodyContentInputs :: TxBodyContent ctx era -> [TxIn] Source #

getTxBodyContentCollateralInputs :: TxBodyContent ctx era -> [TxIn] Source #

getTxBodyContentReturnCollateral :: TxBodyContent ctx BabbageEra -> Maybe TxOut Source #

getTxBodyContentMint :: TxBodyContent ctx era -> Value Source #

txBodyContentIns :: Lens' (TxBodyContent BuildTx BabbageEra) [(TxIn, BuildTxWith BuildTx (Witness WitCtxTxIn BabbageEra))] Source #

txBodyContentCollateralIns :: Lens' (TxBodyContent BuildTx BabbageEra) [TxIn] Source #

txBodyContentOuts :: Lens' (TxBodyContent ctx BabbageEra) [TxOut] Source #

type Blockchain = [Block] Source #

A blockchain, which is just a list of blocks, starting with the newest.

type Block = [OnChainTx] Source #

A block on the blockchain. This is just a list of transactions following on from the chain so far.

newtype BlockId Source #

Block identifier (usually a hash)

Constructors

BlockId 

Fields

Instances

Instances details
Eq BlockId Source # 
Instance details

Defined in Ledger.Blockchain

Ord BlockId Source # 
Instance details

Defined in Ledger.Blockchain

Show BlockId Source # 
Instance details

Defined in Ledger.Blockchain

Generic BlockId Source # 
Instance details

Defined in Ledger.Blockchain

Associated Types

type Rep BlockId :: Type -> Type Source #

FromJSON BlockId Source # 
Instance details

Defined in Ledger.Blockchain

Methods

parseJSON :: Value -> Parser BlockId

parseJSONList :: Value -> Parser [BlockId]

ToJSON BlockId Source # 
Instance details

Defined in Ledger.Blockchain

Methods

toJSON :: BlockId -> Value

toEncoding :: BlockId -> Encoding

toJSONList :: [BlockId] -> Value

toEncodingList :: [BlockId] -> Encoding

Pretty BlockId Source # 
Instance details

Defined in Ledger.Blockchain

Methods

pretty :: BlockId -> Doc ann #

prettyList :: [BlockId] -> Doc ann #

type Rep BlockId Source # 
Instance details

Defined in Ledger.Blockchain

type Rep BlockId = D1 ('MetaData "BlockId" "Ledger.Blockchain" "plutus-ledger-1.2.0.0-8dOSOspdVv7Hd909lHBnfn" 'True) (C1 ('MetaCons "BlockId" 'PrefixI 'True) (S1 ('MetaSel ('Just "getBlockId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString)))

consumableInputs :: OnChainTx -> [TxIn] Source #

Outputs consumed from the UTXO set by the OnChainTx

outputsProduced :: OnChainTx -> Map TxIn TxOut Source #

Outputs added to the UTXO set by the OnChainTx

initialise :: Blockchain -> UtxoIndex Source #

Create an index of all UTxOs on the chain.

insert :: CardanoTx -> UtxoIndex -> UtxoIndex Source #

Update the index for the addition of a transaction.

insertCollateral :: CardanoTx -> UtxoIndex -> UtxoIndex Source #

Update the index for the addition of only the collateral inputs of a failed transaction.

insertBlock :: Block -> UtxoIndex -> UtxoIndex Source #

Update the index for the addition of a block.

lookup :: TxIn -> UtxoIndex -> Maybe TxOut Source #

Find an unspent transaction output by the TxOutRef that spends it.

adjustTxOut :: PParams (BabbageEra StandardCrypto) -> TxOut -> ([Lovelace], TxOut) Source #

Adjust a single transaction output so it contains at least the minimum amount of Ada and return the adjustment (if any) and the updated TxOut.

minAdaTxOut :: PParams (BabbageEra StandardCrypto) -> TxOut -> Lovelace Source #

Exact computation of the mimimum Ada required for a given TxOut. TODO: Should be moved to cardano-api-extended once created

minAdaTxOutEstimated :: Ada Source #

Provide a reasonable estimate of the mimimum of Ada required for a TxOut.

An exact estimate of the the mimimum of Ada in a TxOut is determined by two things: - the PParams, more precisely its coinPerUTxOWord parameter. - the size of the TxOut. In many situations though, we need to determine a plausible value for the minimum of Ada needed for a TxOut without knowing much of the TxOut. This function provides a value big enough to balance UTxOs without a large inlined data (larger than a hash) nor a complex val with a lot of minted values. It's superior to the lowest minimum needed for an UTxO, as the lowest value require no datum. An estimate of the minimum required Ada for each tx output.

maxFee :: Ada Source #

TODO Should be calculated based on the maximum script size permitted on the Cardano blockchain.

genesisTxIn :: TxIn Source #

cardano-ledger validation rules require the presence of inputs and we have to provide a stub TxIn for the genesis transaction.

data DCert #

Instances

Instances details
Eq DCert 
Instance details

Defined in Plutus.V1.Ledger.DCert

Methods

(==) :: DCert -> DCert -> Bool Source #

(/=) :: DCert -> DCert -> Bool Source #

Ord DCert 
Instance details

Defined in Plutus.V1.Ledger.DCert

Show DCert 
Instance details

Defined in Plutus.V1.Ledger.DCert

Generic DCert 
Instance details

Defined in Plutus.V1.Ledger.DCert

Associated Types

type Rep DCert :: Type -> Type Source #

Methods

from :: DCert -> Rep DCert x Source #

to :: Rep DCert x -> DCert Source #

NFData DCert 
Instance details

Defined in Plutus.V1.Ledger.DCert

Methods

rnf :: DCert -> () Source #

Serialise DCert 
Instance details

Defined in Ledger.DCert.Orphans

Methods

encode :: DCert -> Encoding

decode :: Decoder s DCert

encodeList :: [DCert] -> Encoding

decodeList :: Decoder s [DCert]

FromJSON DCert 
Instance details

Defined in Ledger.DCert.Orphans

Methods

parseJSON :: Value -> Parser DCert

parseJSONList :: Value -> Parser [DCert]

ToJSON DCert 
Instance details

Defined in Ledger.DCert.Orphans

Methods

toJSON :: DCert -> Value

toEncoding :: DCert -> Encoding

toJSONList :: [DCert] -> Value

toEncodingList :: [DCert] -> Encoding

Eq DCert 
Instance details

Defined in Plutus.V1.Ledger.DCert

Methods

(==) :: DCert -> DCert -> Bool

Pretty DCert 
Instance details

Defined in Plutus.V1.Ledger.DCert

Methods

pretty :: DCert -> Doc ann #

prettyList :: [DCert] -> Doc ann #

FromData DCert 
Instance details

Defined in Plutus.V1.Ledger.DCert

Methods

fromBuiltinData :: BuiltinData -> Maybe DCert

ToData DCert 
Instance details

Defined in Plutus.V1.Ledger.DCert

Methods

toBuiltinData :: DCert -> BuiltinData

UnsafeFromData DCert 
Instance details

Defined in Plutus.V1.Ledger.DCert

Methods

unsafeFromBuiltinData :: BuiltinData -> DCert

Lift DefaultUni DCert 
Instance details

Defined in Plutus.V1.Ledger.DCert

Methods

lift :: DCert -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni DCert 
Instance details

Defined in Plutus.V1.Ledger.DCert

Methods

typeRep :: Proxy DCert -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep DCert 
Instance details

Defined in Plutus.V1.Ledger.DCert

data NetworkId #

Instances

Instances details
Eq NetworkId 
Instance details

Defined in Cardano.Api.NetworkId

Data NetworkId Source # 
Instance details

Defined in Ledger.Orphans

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> NetworkId -> c NetworkId Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c NetworkId Source #

toConstr :: NetworkId -> Constr Source #

dataTypeOf :: NetworkId -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c NetworkId) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c NetworkId) Source #

gmapT :: (forall b. Data b => b -> b) -> NetworkId -> NetworkId Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> NetworkId -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> NetworkId -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> NetworkId -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> NetworkId -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> NetworkId -> m NetworkId Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> NetworkId -> m NetworkId Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> NetworkId -> m NetworkId Source #

Show NetworkId 
Instance details

Defined in Cardano.Api.NetworkId

Generic NetworkId Source # 
Instance details

Defined in Ledger.Orphans

Associated Types

type Rep NetworkId :: Type -> Type Source #

type Rep NetworkId Source # 
Instance details

Defined in Ledger.Orphans

type Rep NetworkId = D1 ('MetaData "NetworkId" "Cardano.Api.NetworkId" "cardano-api-1.35.4-DlJBOMjUMEP4jWrRjidGIP" 'False) (C1 ('MetaCons "Mainnet" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Testnet" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 NetworkMagic)))

data Credential #

Instances

Instances details
Eq Credential 
Instance details

Defined in Plutus.V1.Ledger.Credential

Ord Credential 
Instance details

Defined in Plutus.V1.Ledger.Credential

Show Credential 
Instance details

Defined in Plutus.V1.Ledger.Credential

Generic Credential 
Instance details

Defined in Plutus.V1.Ledger.Credential

Associated Types

type Rep Credential :: Type -> Type Source #

NFData Credential 
Instance details

Defined in Plutus.V1.Ledger.Credential

Methods

rnf :: Credential -> () Source #

Serialise Credential 
Instance details

Defined in Ledger.Credential.Orphans

Methods

encode :: Credential -> Encoding

decode :: Decoder s Credential

encodeList :: [Credential] -> Encoding

decodeList :: Decoder s [Credential]

Hashable Credential 
Instance details

Defined in Ledger.Credential.Orphans

FromJSON Credential 
Instance details

Defined in Ledger.Credential.Orphans

Methods

parseJSON :: Value -> Parser Credential

parseJSONList :: Value -> Parser [Credential]

ToJSON Credential 
Instance details

Defined in Ledger.Credential.Orphans

Methods

toJSON :: Credential -> Value

toEncoding :: Credential -> Encoding

toJSONList :: [Credential] -> Value

toEncodingList :: [Credential] -> Encoding

Eq Credential 
Instance details

Defined in Plutus.V1.Ledger.Credential

Methods

(==) :: Credential -> Credential -> Bool

Pretty Credential 
Instance details

Defined in Plutus.V1.Ledger.Credential

Methods

pretty :: Credential -> Doc ann #

prettyList :: [Credential] -> Doc ann #

FromData Credential 
Instance details

Defined in Plutus.V1.Ledger.Credential

Methods

fromBuiltinData :: BuiltinData -> Maybe Credential

ToData Credential 
Instance details

Defined in Plutus.V1.Ledger.Credential

Methods

toBuiltinData :: Credential -> BuiltinData

UnsafeFromData Credential 
Instance details

Defined in Plutus.V1.Ledger.Credential

Methods

unsafeFromBuiltinData :: BuiltinData -> Credential

Lift DefaultUni Credential 
Instance details

Defined in Plutus.V1.Ledger.Credential

Methods

lift :: Credential -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni Credential 
Instance details

Defined in Plutus.V1.Ledger.Credential

Methods

typeRep :: Proxy Credential -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep Credential 
Instance details

Defined in Plutus.V1.Ledger.Credential

type Rep Credential = D1 ('MetaData "Credential" "Plutus.V1.Ledger.Credential" "plutus-ledger-api-1.0.0.1-6EvbyJiK8IAAVEtnIJDu5Z" 'False) (C1 ('MetaCons "PubKeyCredential" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PubKeyHash)) :+: C1 ('MetaCons "ScriptCredential" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ValidatorHash)))

data StakingCredential #

Instances

Instances details
Eq StakingCredential 
Instance details

Defined in Plutus.V1.Ledger.Credential

Ord StakingCredential 
Instance details

Defined in Plutus.V1.Ledger.Credential

Show StakingCredential 
Instance details

Defined in Plutus.V1.Ledger.Credential

Generic StakingCredential 
Instance details

Defined in Plutus.V1.Ledger.Credential

Associated Types

type Rep StakingCredential :: Type -> Type Source #

NFData StakingCredential 
Instance details

Defined in Plutus.V1.Ledger.Credential

Methods

rnf :: StakingCredential -> () Source #

Serialise StakingCredential 
Instance details

Defined in Ledger.Credential.Orphans

Methods

encode :: StakingCredential -> Encoding

decode :: Decoder s StakingCredential

encodeList :: [StakingCredential] -> Encoding

decodeList :: Decoder s [StakingCredential]

Hashable StakingCredential 
Instance details

Defined in Ledger.Credential.Orphans

FromJSON StakingCredential 
Instance details

Defined in Ledger.Credential.Orphans

Methods

parseJSON :: Value -> Parser StakingCredential

parseJSONList :: Value -> Parser [StakingCredential]

ToJSON StakingCredential 
Instance details

Defined in Ledger.Credential.Orphans

Eq StakingCredential 
Instance details

Defined in Plutus.V1.Ledger.Credential

Pretty StakingCredential 
Instance details

Defined in Plutus.V1.Ledger.Credential

Methods

pretty :: StakingCredential -> Doc ann #

prettyList :: [StakingCredential] -> Doc ann #

FromData StakingCredential 
Instance details

Defined in Plutus.V1.Ledger.Credential

Methods

fromBuiltinData :: BuiltinData -> Maybe StakingCredential

ToData StakingCredential 
Instance details

Defined in Plutus.V1.Ledger.Credential

Methods

toBuiltinData :: StakingCredential -> BuiltinData

UnsafeFromData StakingCredential 
Instance details

Defined in Plutus.V1.Ledger.Credential

Methods

unsafeFromBuiltinData :: BuiltinData -> StakingCredential

Lift DefaultUni StakingCredential 
Instance details

Defined in Plutus.V1.Ledger.Credential

Methods

lift :: StakingCredential -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni StakingCredential 
Instance details

Defined in Plutus.V1.Ledger.Credential

Methods

typeRep :: Proxy StakingCredential -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep StakingCredential 
Instance details

Defined in Plutus.V1.Ledger.Credential