| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
PlutusLedgerApi.V1
Description
The interface to Plutus V1 for the ledger.
Synopsis
- newtype ScriptHash = ScriptHash {}
- newtype Redeemer = Redeemer {}
- newtype RedeemerHash = RedeemerHash BuiltinByteString
- newtype Datum = Datum {}
- newtype DatumHash = DatumHash BuiltinByteString
- newtype Context = Context BuiltinData
- data ScriptError
- = EvaluationError ![Text] !String
- | EvaluationException !String !String
- type SerialisedScript = ShortByteString
- data ScriptForEvaluation
- data ScriptDecodeError
- = CBORDeserialiseError !DeserialiseFailureInfo
- | RemainderError !ByteString
- | LedgerLanguageNotAvailableError { }
- | PlutusCoreLanguageNotAvailableError { }
- newtype ScriptNamedDeBruijn = ScriptNamedDeBruijn (Program NamedDeBruijn DefaultUni DefaultFun ())
- serialisedScript :: ScriptForEvaluation -> SerialisedScript
- deserialisedScript :: ScriptForEvaluation -> ScriptNamedDeBruijn
- serialiseCompiledCode :: CompiledCode a -> SerialisedScript
- serialiseUPLC :: Program DeBruijn DefaultUni DefaultFun () -> SerialisedScript
- deserialiseScript :: MonadError ScriptDecodeError m => MajorProtocolVersion -> SerialisedScript -> m ScriptForEvaluation
- uncheckedDeserialiseUPLC :: SerialisedScript -> Program DeBruijn DefaultUni DefaultFun ()
- evaluateScriptRestricting :: MajorProtocolVersion -> VerboseMode -> EvaluationContext -> ExBudget -> ScriptForEvaluation -> [Data] -> (LogOutput, Either EvaluationError ExBudget)
- evaluateScriptCounting :: MajorProtocolVersion -> VerboseMode -> EvaluationContext -> ScriptForEvaluation -> [Data] -> (LogOutput, Either EvaluationError ExBudget)
- newtype MajorProtocolVersion = MajorProtocolVersion {}
- data ExBudget = ExBudget {}
- newtype ExCPU = ExCPU CostingInteger
- newtype ExMemory = ExMemory CostingInteger
- data SatInt
- fromSatInt :: Num a => SatInt -> a
- data ParamName
- = AddInteger'cpu'arguments'intercept
- | AddInteger'cpu'arguments'slope
- | AddInteger'memory'arguments'intercept
- | AddInteger'memory'arguments'slope
- | AppendByteString'cpu'arguments'intercept
- | AppendByteString'cpu'arguments'slope
- | AppendByteString'memory'arguments'intercept
- | AppendByteString'memory'arguments'slope
- | AppendString'cpu'arguments'intercept
- | AppendString'cpu'arguments'slope
- | AppendString'memory'arguments'intercept
- | AppendString'memory'arguments'slope
- | BData'cpu'arguments
- | BData'memory'arguments
- | Blake2b_256'cpu'arguments'intercept
- | Blake2b_256'cpu'arguments'slope
- | Blake2b_256'memory'arguments
- | CekApplyCost'exBudgetCPU
- | CekApplyCost'exBudgetMemory
- | CekBuiltinCost'exBudgetCPU
- | CekBuiltinCost'exBudgetMemory
- | CekConstCost'exBudgetCPU
- | CekConstCost'exBudgetMemory
- | CekDelayCost'exBudgetCPU
- | CekDelayCost'exBudgetMemory
- | CekForceCost'exBudgetCPU
- | CekForceCost'exBudgetMemory
- | CekLamCost'exBudgetCPU
- | CekLamCost'exBudgetMemory
- | CekStartupCost'exBudgetCPU
- | CekStartupCost'exBudgetMemory
- | CekVarCost'exBudgetCPU
- | CekVarCost'exBudgetMemory
- | ChooseData'cpu'arguments
- | ChooseData'memory'arguments
- | ChooseList'cpu'arguments
- | ChooseList'memory'arguments
- | ChooseUnit'cpu'arguments
- | ChooseUnit'memory'arguments
- | ConsByteString'cpu'arguments'intercept
- | ConsByteString'cpu'arguments'slope
- | ConsByteString'memory'arguments'intercept
- | ConsByteString'memory'arguments'slope
- | ConstrData'cpu'arguments
- | ConstrData'memory'arguments
- | DecodeUtf8'cpu'arguments'intercept
- | DecodeUtf8'cpu'arguments'slope
- | DecodeUtf8'memory'arguments'intercept
- | DecodeUtf8'memory'arguments'slope
- | DivideInteger'cpu'arguments'constant
- | DivideInteger'cpu'arguments'model'arguments'intercept
- | DivideInteger'cpu'arguments'model'arguments'slope
- | DivideInteger'memory'arguments'intercept
- | DivideInteger'memory'arguments'minimum
- | DivideInteger'memory'arguments'slope
- | EncodeUtf8'cpu'arguments'intercept
- | EncodeUtf8'cpu'arguments'slope
- | EncodeUtf8'memory'arguments'intercept
- | EncodeUtf8'memory'arguments'slope
- | EqualsByteString'cpu'arguments'constant
- | EqualsByteString'cpu'arguments'intercept
- | EqualsByteString'cpu'arguments'slope
- | EqualsByteString'memory'arguments
- | EqualsData'cpu'arguments'intercept
- | EqualsData'cpu'arguments'slope
- | EqualsData'memory'arguments
- | EqualsInteger'cpu'arguments'intercept
- | EqualsInteger'cpu'arguments'slope
- | EqualsInteger'memory'arguments
- | EqualsString'cpu'arguments'constant
- | EqualsString'cpu'arguments'intercept
- | EqualsString'cpu'arguments'slope
- | EqualsString'memory'arguments
- | FstPair'cpu'arguments
- | FstPair'memory'arguments
- | HeadList'cpu'arguments
- | HeadList'memory'arguments
- | IData'cpu'arguments
- | IData'memory'arguments
- | IfThenElse'cpu'arguments
- | IfThenElse'memory'arguments
- | IndexByteString'cpu'arguments
- | IndexByteString'memory'arguments
- | LengthOfByteString'cpu'arguments
- | LengthOfByteString'memory'arguments
- | LessThanByteString'cpu'arguments'intercept
- | LessThanByteString'cpu'arguments'slope
- | LessThanByteString'memory'arguments
- | LessThanEqualsByteString'cpu'arguments'intercept
- | LessThanEqualsByteString'cpu'arguments'slope
- | LessThanEqualsByteString'memory'arguments
- | LessThanEqualsInteger'cpu'arguments'intercept
- | LessThanEqualsInteger'cpu'arguments'slope
- | LessThanEqualsInteger'memory'arguments
- | LessThanInteger'cpu'arguments'intercept
- | LessThanInteger'cpu'arguments'slope
- | LessThanInteger'memory'arguments
- | ListData'cpu'arguments
- | ListData'memory'arguments
- | MapData'cpu'arguments
- | MapData'memory'arguments
- | MkCons'cpu'arguments
- | MkCons'memory'arguments
- | MkNilData'cpu'arguments
- | MkNilData'memory'arguments
- | MkNilPairData'cpu'arguments
- | MkNilPairData'memory'arguments
- | MkPairData'cpu'arguments
- | MkPairData'memory'arguments
- | ModInteger'cpu'arguments'constant
- | ModInteger'cpu'arguments'model'arguments'intercept
- | ModInteger'cpu'arguments'model'arguments'slope
- | ModInteger'memory'arguments'intercept
- | ModInteger'memory'arguments'minimum
- | ModInteger'memory'arguments'slope
- | MultiplyInteger'cpu'arguments'intercept
- | MultiplyInteger'cpu'arguments'slope
- | MultiplyInteger'memory'arguments'intercept
- | MultiplyInteger'memory'arguments'slope
- | NullList'cpu'arguments
- | NullList'memory'arguments
- | QuotientInteger'cpu'arguments'constant
- | QuotientInteger'cpu'arguments'model'arguments'intercept
- | QuotientInteger'cpu'arguments'model'arguments'slope
- | QuotientInteger'memory'arguments'intercept
- | QuotientInteger'memory'arguments'minimum
- | QuotientInteger'memory'arguments'slope
- | RemainderInteger'cpu'arguments'constant
- | RemainderInteger'cpu'arguments'model'arguments'intercept
- | RemainderInteger'cpu'arguments'model'arguments'slope
- | RemainderInteger'memory'arguments'intercept
- | RemainderInteger'memory'arguments'minimum
- | RemainderInteger'memory'arguments'slope
- | Sha2_256'cpu'arguments'intercept
- | Sha2_256'cpu'arguments'slope
- | Sha2_256'memory'arguments
- | Sha3_256'cpu'arguments'intercept
- | Sha3_256'cpu'arguments'slope
- | Sha3_256'memory'arguments
- | SliceByteString'cpu'arguments'intercept
- | SliceByteString'cpu'arguments'slope
- | SliceByteString'memory'arguments'intercept
- | SliceByteString'memory'arguments'slope
- | SndPair'cpu'arguments
- | SndPair'memory'arguments
- | SubtractInteger'cpu'arguments'intercept
- | SubtractInteger'cpu'arguments'slope
- | SubtractInteger'memory'arguments'intercept
- | SubtractInteger'memory'arguments'slope
- | TailList'cpu'arguments
- | TailList'memory'arguments
- | Trace'cpu'arguments
- | Trace'memory'arguments
- | UnBData'cpu'arguments
- | UnBData'memory'arguments
- | UnConstrData'cpu'arguments
- | UnConstrData'memory'arguments
- | UnIData'cpu'arguments
- | UnIData'memory'arguments
- | UnListData'cpu'arguments
- | UnListData'memory'arguments
- | UnMapData'cpu'arguments
- | UnMapData'memory'arguments
- | VerifyEd25519Signature'cpu'arguments'intercept
- | VerifyEd25519Signature'cpu'arguments'slope
- | VerifyEd25519Signature'memory'arguments
- | SerialiseData'cpu'arguments'intercept
- | SerialiseData'cpu'arguments'slope
- | SerialiseData'memory'arguments'intercept
- | SerialiseData'memory'arguments'slope
- | VerifyEcdsaSecp256k1Signature'cpu'arguments
- | VerifyEcdsaSecp256k1Signature'memory'arguments
- | VerifySchnorrSecp256k1Signature'cpu'arguments'intercept
- | VerifySchnorrSecp256k1Signature'cpu'arguments'slope
- | VerifySchnorrSecp256k1Signature'memory'arguments
- | CekConstrCost'exBudgetCPU
- | CekConstrCost'exBudgetMemory
- | CekCaseCost'exBudgetCPU
- | CekCaseCost'exBudgetMemory
- | Bls12_381_G1_add'cpu'arguments
- | Bls12_381_G1_add'memory'arguments
- | Bls12_381_G1_compress'cpu'arguments
- | Bls12_381_G1_compress'memory'arguments
- | Bls12_381_G1_equal'cpu'arguments
- | Bls12_381_G1_equal'memory'arguments
- | Bls12_381_G1_hashToGroup'cpu'arguments'intercept
- | Bls12_381_G1_hashToGroup'cpu'arguments'slope
- | Bls12_381_G1_hashToGroup'memory'arguments
- | Bls12_381_G1_neg'cpu'arguments
- | Bls12_381_G1_neg'memory'arguments
- | Bls12_381_G1_scalarMul'cpu'arguments'intercept
- | Bls12_381_G1_scalarMul'cpu'arguments'slope
- | Bls12_381_G1_scalarMul'memory'arguments
- | Bls12_381_G1_uncompress'cpu'arguments
- | Bls12_381_G1_uncompress'memory'arguments
- | Bls12_381_G2_add'cpu'arguments
- | Bls12_381_G2_add'memory'arguments
- | Bls12_381_G2_compress'cpu'arguments
- | Bls12_381_G2_compress'memory'arguments
- | Bls12_381_G2_equal'cpu'arguments
- | Bls12_381_G2_equal'memory'arguments
- | Bls12_381_G2_hashToGroup'cpu'arguments'intercept
- | Bls12_381_G2_hashToGroup'cpu'arguments'slope
- | Bls12_381_G2_hashToGroup'memory'arguments
- | Bls12_381_G2_neg'cpu'arguments
- | Bls12_381_G2_neg'memory'arguments
- | Bls12_381_G2_scalarMul'cpu'arguments'intercept
- | Bls12_381_G2_scalarMul'cpu'arguments'slope
- | Bls12_381_G2_scalarMul'memory'arguments
- | Bls12_381_G2_uncompress'cpu'arguments
- | Bls12_381_G2_uncompress'memory'arguments
- | Bls12_381_finalVerify'cpu'arguments
- | Bls12_381_finalVerify'memory'arguments
- | Bls12_381_millerLoop'cpu'arguments
- | Bls12_381_millerLoop'memory'arguments
- | Bls12_381_mulMlResult'cpu'arguments
- | Bls12_381_mulMlResult'memory'arguments
- | Keccak_256'cpu'arguments'intercept
- | Keccak_256'cpu'arguments'slope
- | Keccak_256'memory'arguments
- | Blake2b_224'cpu'arguments'intercept
- | Blake2b_224'cpu'arguments'slope
- | Blake2b_224'memory'arguments
- | IntegerToByteString'cpu'arguments'c0
- | IntegerToByteString'cpu'arguments'c1
- | IntegerToByteString'cpu'arguments'c2
- | IntegerToByteString'memory'arguments'intercept
- | IntegerToByteString'memory'arguments'slope
- | ByteStringToInteger'cpu'arguments'c0
- | ByteStringToInteger'cpu'arguments'c1
- | ByteStringToInteger'cpu'arguments'c2
- | ByteStringToInteger'memory'arguments'intercept
- | ByteStringToInteger'memory'arguments'slope
- | AndByteString'cpu'arguments'intercept
- | AndByteString'cpu'arguments'slope1
- | AndByteString'cpu'arguments'slope2
- | AndByteString'memory'arguments'intercept
- | AndByteString'memory'arguments'slope
- | OrByteString'cpu'arguments'intercept
- | OrByteString'cpu'arguments'slope1
- | OrByteString'cpu'arguments'slope2
- | OrByteString'memory'arguments'intercept
- | OrByteString'memory'arguments'slope
- | XorByteString'cpu'arguments'intercept
- | XorByteString'cpu'arguments'slope1
- | XorByteString'cpu'arguments'slope2
- | XorByteString'memory'arguments'intercept
- | XorByteString'memory'arguments'slope
- | ComplementByteString'cpu'arguments'intercept
- | ComplementByteString'cpu'arguments'slope
- | ComplementByteString'memory'arguments'intercept
- | ComplementByteString'memory'arguments'slope
- | ReadBit'cpu'arguments
- | ReadBit'memory'arguments
- | WriteBits'cpu'arguments'intercept
- | WriteBits'cpu'arguments'slope
- | WriteBits'memory'arguments'intercept
- | WriteBits'memory'arguments'slope
- | ReplicateByte'cpu'arguments'intercept
- | ReplicateByte'cpu'arguments'slope
- | ReplicateByte'memory'arguments'intercept
- | ReplicateByte'memory'arguments'slope
- | ShiftByteString'cpu'arguments'intercept
- | ShiftByteString'cpu'arguments'slope
- | ShiftByteString'memory'arguments'intercept
- | ShiftByteString'memory'arguments'slope
- | RotateByteString'cpu'arguments'intercept
- | RotateByteString'cpu'arguments'slope
- | RotateByteString'memory'arguments'intercept
- | RotateByteString'memory'arguments'slope
- | CountSetBits'cpu'arguments'intercept
- | CountSetBits'cpu'arguments'slope
- | CountSetBits'memory'arguments
- | FindFirstSetBit'cpu'arguments'intercept
- | FindFirstSetBit'cpu'arguments'slope
- | FindFirstSetBit'memory'arguments
- | Ripemd_160'cpu'arguments'intercept
- | Ripemd_160'cpu'arguments'slope
- | Ripemd_160'memory'arguments
- | ExpModInteger'cpu'arguments'coefficient00
- | ExpModInteger'cpu'arguments'coefficient11
- | ExpModInteger'cpu'arguments'coefficient12
- | ExpModInteger'memory'arguments'intercept
- | ExpModInteger'memory'arguments'slope
- | DropList'cpu'arguments'intercept
- | DropList'cpu'arguments'slope
- | DropList'memory'arguments
- | LengthOfArray'cpu'arguments
- | LengthOfArray'memory'arguments
- | ListToArray'cpu'arguments'intercept
- | ListToArray'cpu'arguments'slope
- | ListToArray'memory'arguments'intercept
- | ListToArray'memory'arguments'slope
- | IndexArray'cpu'arguments
- | IndexArray'memory'arguments
- | Bls12_381_G1_multiScalarMul'cpu'arguments'intercept
- | Bls12_381_G1_multiScalarMul'cpu'arguments'slope
- | Bls12_381_G1_multiScalarMul'memory'arguments
- | Bls12_381_G2_multiScalarMul'cpu'arguments'intercept
- | Bls12_381_G2_multiScalarMul'cpu'arguments'slope
- | Bls12_381_G2_multiScalarMul'memory'arguments
- | InsertCoin'cpu'arguments'intercept
- | InsertCoin'cpu'arguments'slope
- | InsertCoin'memory'arguments'intercept
- | InsertCoin'memory'arguments'slope
- | LookupCoin'cpu'arguments'intercept
- | LookupCoin'cpu'arguments'slope
- | LookupCoin'memory'arguments
- | UnionValue'cpu'arguments'c00
- | UnionValue'cpu'arguments'c10
- | UnionValue'cpu'arguments'c01
- | UnionValue'cpu'arguments'c11
- | UnionValue'memory'arguments'intercept
- | UnionValue'memory'arguments'slope
- | ValueContains'cpu'arguments'constant
- | ValueContains'cpu'arguments'model'arguments'intercept
- | ValueContains'cpu'arguments'model'arguments'slope1
- | ValueContains'cpu'arguments'model'arguments'slope2
- | ValueContains'memory'arguments
- | ValueData'cpu'arguments'intercept
- | ValueData'cpu'arguments'slope
- | ValueData'memory'arguments'intercept
- | ValueData'memory'arguments'slope
- | UnValueData'cpu'arguments'c0
- | UnValueData'cpu'arguments'c1
- | UnValueData'cpu'arguments'c2
- | UnValueData'memory'arguments'intercept
- | UnValueData'memory'arguments'slope
- | ScaleValue'cpu'arguments'intercept
- | ScaleValue'cpu'arguments'slope
- | ScaleValue'memory'arguments'intercept
- | ScaleValue'memory'arguments'slope
- tagWithParamNames :: (Enum k, Bounded k, MonadError CostModelApplyError m, MonadWriter [CostModelApplyWarn] m) => [Int64] -> m [(k, Int64)]
- data EvaluationError
- = CekError !(CekEvaluationException NamedDeBruijn DefaultUni DefaultFun)
- | DeBruijnError !FreeVariableError
- | CodecError !ScriptDecodeError
- | CostModelParameterMismatch
- | InvalidReturnValue
- data EvaluationContext
- class AsScriptDecodeError r where
- _ScriptDecodeError :: Prism' r ScriptDecodeError
- _CBORDeserialiseError :: Prism' r DeserialiseFailureInfo
- _RemainderError :: Prism' r ByteString
- _LedgerLanguageNotAvailableError :: Prism' r (PlutusLedgerLanguage, MajorProtocolVersion, MajorProtocolVersion)
- _PlutusCoreLanguageNotAvailableError :: Prism' r (Version, PlutusLedgerLanguage, MajorProtocolVersion)
- type LogOutput = [Text]
- data VerboseMode
- evaluateTerm :: ExBudgetMode cost DefaultUni DefaultFun -> MajorProtocolVersion -> VerboseMode -> EvaluationContext -> Term NamedDeBruijn DefaultUni DefaultFun () -> CekReport cost NamedDeBruijn DefaultUni DefaultFun
- mkDynEvaluationContext :: MonadError CostModelApplyError m => PlutusLedgerLanguage -> (MajorProtocolVersion -> CaserBuiltin DefaultUni) -> [BuiltinSemanticsVariant DefaultFun] -> (MajorProtocolVersion -> BuiltinSemanticsVariant DefaultFun) -> CostModelParams -> m EvaluationContext
- toMachineParameters :: MajorProtocolVersion -> EvaluationContext -> DefaultMachineParameters
- mkTermToEvaluate :: MonadError EvaluationError m => PlutusLedgerLanguage -> MajorProtocolVersion -> ScriptForEvaluation -> [Data] -> m (Term NamedDeBruijn DefaultUni DefaultFun ())
- assertWellFormedCostModelParams :: MonadError CostModelApplyError m => CostModelParams -> m ()
- mkEvaluationContext :: (MonadError CostModelApplyError m, MonadWriter [CostModelApplyWarn] m) => [Int64] -> m EvaluationContext
- type CostModelParams = Map Text Int64
- data CostModelApplyError
- data TxInfo = TxInfo {
- txInfoInputs :: [TxInInfo]
- txInfoOutputs :: [TxOut]
- txInfoFee :: Value
- txInfoMint :: Value
- txInfoDCert :: [DCert]
- txInfoWdrl :: [(StakingCredential, Integer)]
- txInfoValidRange :: POSIXTimeRange
- txInfoSignatories :: [PubKeyHash]
- txInfoData :: [(DatumHash, Datum)]
- txInfoId :: TxId
- data ScriptContext = ScriptContext {}
- data ScriptPurpose
- newtype TxId = TxId {}
- data TxOut = TxOut {}
- data TxOutRef = TxOutRef {
- txOutRefId :: TxId
- txOutRefIdx :: Integer
- data TxInInfo = TxInInfo {}
- findOwnInput :: ScriptContext -> Maybe TxInInfo
- findDatum :: DatumHash -> TxInfo -> Maybe Datum
- findDatumHash :: Datum -> TxInfo -> Maybe DatumHash
- findTxInByTxOutRef :: TxOutRef -> TxInfo -> Maybe TxInInfo
- findContinuingOutputs :: ScriptContext -> [Integer]
- getContinuingOutputs :: ScriptContext -> [TxOut]
- pubKeyOutputsAt :: PubKeyHash -> TxInfo -> [Value]
- valuePaidTo :: TxInfo -> PubKeyHash -> Value
- spendsOutput :: TxInfo -> TxId -> Integer -> Bool
- txSignedBy :: TxInfo -> PubKeyHash -> Bool
- valueSpent :: TxInfo -> Value
- valueProduced :: TxInfo -> Value
- ownCurrencySymbol :: ScriptContext -> CurrencySymbol
- data BuiltinByteString
- toBuiltin :: HasToBuiltin a => a -> ToBuiltin a
- fromBuiltin :: HasFromBuiltin arep => arep -> FromBuiltin arep
- toOpaque :: HasToOpaque a arep => a -> arep
- fromOpaque :: HasFromOpaque arep a => arep -> a
- newtype LedgerBytes = LedgerBytes {}
- data LedgerBytesError
- fromBytes :: ByteString -> LedgerBytes
- fromHex :: ByteString -> Either LedgerBytesError LedgerBytes
- bytes :: LedgerBytes -> ByteString
- encodeByteString :: ByteString -> Text
- data DCert
- data StakingCredential
- data Credential
- newtype Value = Value {}
- newtype Lovelace = Lovelace {}
- currencySymbolValueOf :: Value -> CurrencySymbol -> Integer
- flattenValue :: Value -> [(CurrencySymbol, TokenName, Integer)]
- isZero :: Value -> Bool
- lovelaceValue :: Lovelace -> Value
- lovelaceValueOf :: Value -> Lovelace
- scale :: Module s v => s -> v -> v
- singleton :: CurrencySymbol -> TokenName -> Integer -> Value
- split :: Value -> (Value, Value)
- unionWith :: (Integer -> Integer -> Integer) -> Value -> Value -> Value
- valueOf :: Value -> CurrencySymbol -> TokenName -> Integer
- newtype CurrencySymbol = CurrencySymbol {}
- currencySymbol :: ByteString -> CurrencySymbol
- adaSymbol :: CurrencySymbol
- symbols :: Value -> [CurrencySymbol]
- newtype TokenName = TokenName {}
- tokenName :: ByteString -> TokenName
- adaToken :: TokenName
- newtype AssetClass = AssetClass {}
- assetClass :: CurrencySymbol -> TokenName -> AssetClass
- assetClassValue :: AssetClass -> Integer -> Value
- assetClassValueOf :: Value -> AssetClass -> Integer
- data Address = Address {}
- pubKeyHashAddress :: PubKeyHash -> Address
- toPubKeyHash :: Address -> Maybe PubKeyHash
- toScriptHash :: Address -> Maybe ScriptHash
- scriptHashAddress :: ScriptHash -> Address
- stakingCredential :: Address -> Maybe StakingCredential
- newtype PubKeyHash = PubKeyHash {}
- newtype POSIXTime = POSIXTime {}
- type POSIXTimeRange = Interval POSIXTime
- newtype DiffMilliSeconds = DiffMilliSeconds Integer
- fromMilliSeconds :: DiffMilliSeconds -> POSIXTime
- data Interval a = Interval {
- ivFrom :: LowerBound a
- ivTo :: UpperBound a
- data Extended a
- type Closure = Bool
- data UpperBound a = UpperBound (Extended a) Closure
- data LowerBound a = LowerBound (Extended a) Closure
- never :: Interval a
- always :: Interval a
- from :: a -> Interval a
- to :: a -> Interval a
- lowerBound :: a -> LowerBound a
- upperBound :: a -> UpperBound a
- strictLowerBound :: a -> LowerBound a
- strictUpperBound :: a -> UpperBound a
- member :: (Enum a, Ord a) => a -> Interval a -> Bool
- interval :: a -> a -> Interval a
- hull :: (Enum a, Ord a) => Interval a -> Interval a -> Interval a
- intersection :: (Enum a, Ord a) => Interval a -> Interval a -> Interval a
- overlaps :: (Enum a, Ord a) => Interval a -> Interval a -> Bool
- contains :: (Enum a, Ord a) => Interval a -> Interval a -> Bool
- isEmpty :: (Enum a, Ord a) => Interval a -> Bool
- before :: (Enum a, Ord a) => a -> Interval a -> Bool
- after :: (Enum a, Ord a) => a -> Interval a -> Bool
- data Data
- data BuiltinData = BuiltinData ~Data
- class ToData a where
- toBuiltinData :: a -> BuiltinData
- class FromData a where
- fromBuiltinData :: BuiltinData -> Maybe a
- class UnsafeFromData a where
- unsafeFromBuiltinData :: BuiltinData -> a
- toData :: ToData a => a -> Data
- fromData :: FromData a => Data -> Maybe a
- unsafeFromData :: UnsafeFromData a => Data -> a
- dataToBuiltinData :: Data -> BuiltinData
- builtinDataToData :: BuiltinData -> Data
- class Monad m => MonadError e (m :: Type -> Type) | m -> e
Scripts
newtype ScriptHash Source #
Type representing the BLAKE2b-224 hash of a script. 28 bytes.
This is a simple type without any validation, use with caution. You may want to add checks for its invariants. See the Shelley ledger specification.
Constructors
| ScriptHash | |
Fields | |
Instances
Redeemer is a wrapper around Data values that are used as redeemers in transaction inputs.
Constructors
| Redeemer | |
Fields | |
Instances
| Generic Redeemer Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts Associated Types
| |||||
| Show Redeemer Source # | |||||
| NFData Redeemer Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts | |||||
| Eq Redeemer Source # | |||||
| Ord Redeemer Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts | |||||
| HasBlueprintDefinition Redeemer Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts Associated Types
Methods definitionId :: DefinitionId | |||||
| Eq Redeemer Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts | |||||
| FromData Redeemer Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts Methods fromBuiltinData :: BuiltinData -> Maybe Redeemer # | |||||
| ToData Redeemer Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts Methods toBuiltinData :: Redeemer -> BuiltinData # | |||||
| UnsafeFromData Redeemer Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts Methods | |||||
| Show Redeemer Source # | |||||
| Pretty Redeemer Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts | |||||
| Serialise Redeemer Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts Methods encode :: Redeemer -> Encoding encodeList :: [Redeemer] -> Encoding decodeList :: Decoder s [Redeemer] | |||||
| HasBlueprintSchema Redeemer referencedTypes Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts Methods schema :: Schema referencedTypes | |||||
| Lift DefaultUni Redeemer Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts | |||||
| Typeable DefaultUni Redeemer Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts | |||||
| type Rep Redeemer Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts type Rep Redeemer = D1 ('MetaData "Redeemer" "PlutusLedgerApi.V1.Scripts" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'True) (C1 ('MetaCons "Redeemer" 'PrefixI 'True) (S1 ('MetaSel ('Just "getRedeemer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinData))) | |||||
| type Unroll Redeemer Source # | |||||
newtype RedeemerHash Source #
Type representing the BLAKE2b-256 hash of a redeemer. 32 bytes.
This is a simple type without any validation, use with caution. You may want to add checks for its invariants. See the Shelley ledger specification.
Constructors
| RedeemerHash BuiltinByteString |
Instances
| IsString RedeemerHash Source # | from hex encoding | ||||
Defined in PlutusLedgerApi.V1.Scripts Methods fromString :: String -> RedeemerHash Source # | |||||
| Generic RedeemerHash Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts Associated Types
Methods from :: RedeemerHash -> Rep RedeemerHash x Source # to :: Rep RedeemerHash x -> RedeemerHash Source # | |||||
| Show RedeemerHash Source # | using hex encoding | ||||
Defined in PlutusLedgerApi.V1.Scripts | |||||
| NFData RedeemerHash Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts Methods rnf :: RedeemerHash -> () Source # | |||||
| Eq RedeemerHash Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts Methods (==) :: RedeemerHash -> RedeemerHash -> Bool Source # (/=) :: RedeemerHash -> RedeemerHash -> Bool Source # | |||||
| Ord RedeemerHash Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts Methods compare :: RedeemerHash -> RedeemerHash -> Ordering Source # (<) :: RedeemerHash -> RedeemerHash -> Bool Source # (<=) :: RedeemerHash -> RedeemerHash -> Bool Source # (>) :: RedeemerHash -> RedeemerHash -> Bool Source # (>=) :: RedeemerHash -> RedeemerHash -> Bool Source # max :: RedeemerHash -> RedeemerHash -> RedeemerHash Source # min :: RedeemerHash -> RedeemerHash -> RedeemerHash Source # | |||||
| HasBlueprintDefinition RedeemerHash Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts Associated Types
Methods definitionId :: DefinitionId | |||||
| Eq RedeemerHash Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts Methods (==) :: RedeemerHash -> RedeemerHash -> Bool | |||||
| FromData RedeemerHash Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts Methods | |||||
| ToData RedeemerHash Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts Methods | |||||
| UnsafeFromData RedeemerHash Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts Methods | |||||
| Ord RedeemerHash Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts Methods compare :: RedeemerHash -> RedeemerHash -> Ordering (<) :: RedeemerHash -> RedeemerHash -> Bool (<=) :: RedeemerHash -> RedeemerHash -> Bool (>) :: RedeemerHash -> RedeemerHash -> Bool (>=) :: RedeemerHash -> RedeemerHash -> Bool max :: RedeemerHash -> RedeemerHash -> RedeemerHash min :: RedeemerHash -> RedeemerHash -> RedeemerHash | |||||
| Show RedeemerHash Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts | |||||
| Pretty RedeemerHash Source # | using hex encoding | ||||
Defined in PlutusLedgerApi.V1.Scripts | |||||
| HasBlueprintSchema RedeemerHash referencedTypes Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts Methods schema :: Schema referencedTypes | |||||
| Lift DefaultUni RedeemerHash Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts Methods lift :: RedeemerHash -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ()) | |||||
| Typeable DefaultUni RedeemerHash Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts Methods typeRep :: Proxy RedeemerHash -> RTCompile DefaultUni fun (Type TyName DefaultUni ()) | |||||
| type Rep RedeemerHash Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts type Rep RedeemerHash = D1 ('MetaData "RedeemerHash" "PlutusLedgerApi.V1.Scripts" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'True) (C1 ('MetaCons "RedeemerHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinByteString))) | |||||
| type Unroll RedeemerHash Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts type Unroll RedeemerHash = Insert RedeemerHash (GUnroll (IfStuckRep (RepIsStuckError RedeemerHash :: Type -> Type) (Rep RedeemerHash))) | |||||
Datum is a wrapper around Data values which are used as data in transaction outputs.
Constructors
| Datum | |
Fields | |
Instances
| Generic Datum Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts Associated Types
| |||||
| Show Datum Source # | |||||
| NFData Datum Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts | |||||
| Eq Datum Source # | |||||
| Ord Datum Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts | |||||
| HasBlueprintDefinition Datum Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts Associated Types
Methods definitionId :: DefinitionId | |||||
| Eq Datum Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts | |||||
| FromData Datum Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts Methods fromBuiltinData :: BuiltinData -> Maybe Datum # | |||||
| ToData Datum Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts Methods toBuiltinData :: Datum -> BuiltinData # | |||||
| UnsafeFromData Datum Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts Methods | |||||
| Show Datum Source # | |||||
| Pretty Datum Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts | |||||
| Serialise Datum Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts | |||||
| HasBlueprintSchema Datum referencedTypes Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts Methods schema :: Schema referencedTypes | |||||
| Lift DefaultUni Datum Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts | |||||
| Typeable DefaultUni Datum Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts | |||||
| type Rep Datum Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts type Rep Datum = D1 ('MetaData "Datum" "PlutusLedgerApi.V1.Scripts" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'True) (C1 ('MetaCons "Datum" 'PrefixI 'True) (S1 ('MetaSel ('Just "getDatum") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinData))) | |||||
| type Unroll Datum Source # | |||||
Type representing the BLAKE2b-256 hash of a datum. 32 bytes.
This is a simple type without any validation, use with caution. You may want to add checks for its invariants. See the Shelley ledger specification.
Constructors
| DatumHash BuiltinByteString |
Instances
| IsString DatumHash Source # | from hex encoding | ||||
Defined in PlutusLedgerApi.V1.Scripts Methods fromString :: String -> DatumHash Source # | |||||
| Generic DatumHash Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts Associated Types
| |||||
| Show DatumHash Source # | using hex encoding | ||||
| NFData DatumHash Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts | |||||
| Eq DatumHash Source # | |||||
| Ord DatumHash Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts | |||||
| HasBlueprintDefinition DatumHash Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts Associated Types
Methods definitionId :: DefinitionId | |||||
| Eq DatumHash Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts | |||||
| FromData DatumHash Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts Methods | |||||
| ToData DatumHash Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts Methods toBuiltinData :: DatumHash -> BuiltinData # | |||||
| UnsafeFromData DatumHash Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts Methods | |||||
| Ord DatumHash Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts | |||||
| Show DatumHash Source # | |||||
| Pretty DatumHash Source # | using hex encoding | ||||
Defined in PlutusLedgerApi.V1.Scripts | |||||
| HasBlueprintSchema DatumHash referencedTypes Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts Methods schema :: Schema referencedTypes | |||||
| Lift DefaultUni DatumHash Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts | |||||
| Typeable DefaultUni DatumHash Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts | |||||
| type Rep DatumHash Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts type Rep DatumHash = D1 ('MetaData "DatumHash" "PlutusLedgerApi.V1.Scripts" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'True) (C1 ('MetaCons "DatumHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinByteString))) | |||||
| type Unroll DatumHash Source # | |||||
Information about the state of the blockchain and about the transaction
that is currently being validated, represented as a value in Data.
Constructors
| Context BuiltinData |
data ScriptError Source #
A higher-level evaluation error.
Constructors
| EvaluationError ![Text] !String | Expected behavior of the engine (e.g. user-provided error) |
| EvaluationException !String !String | Unexpected behavior of the engine (a bug) |
Instances
| Generic ScriptError Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts Associated Types
Methods from :: ScriptError -> Rep ScriptError x Source # to :: Rep ScriptError x -> ScriptError Source # | |||||
| Show ScriptError Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts | |||||
| NFData ScriptError Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts Methods rnf :: ScriptError -> () Source # | |||||
| Eq ScriptError Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts Methods (==) :: ScriptError -> ScriptError -> Bool Source # (/=) :: ScriptError -> ScriptError -> Bool Source # | |||||
| HasBlueprintDefinition ScriptError Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts Associated Types
Methods definitionId :: DefinitionId | |||||
| type Rep ScriptError Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts type Rep ScriptError = D1 ('MetaData "ScriptError" "PlutusLedgerApi.V1.Scripts" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'False) (C1 ('MetaCons "EvaluationError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [Text]) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 String)) :+: C1 ('MetaCons "EvaluationException" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 String) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 String))) | |||||
| type Unroll ScriptError Source # | |||||
Defined in PlutusLedgerApi.V1.Scripts type Unroll ScriptError = Insert ScriptError (GUnroll (IfStuckRep (RepIsStuckError ScriptError :: Type -> Type) (Rep ScriptError))) | |||||
Script (de)serialization
type SerialisedScript = ShortByteString Source #
Scripts to the ledger are serialised bytestrings.
data ScriptForEvaluation Source #
A Plutus script ready to be evaluated on-chain, via evaluateScriptRestricting.
Instances
| Generic ScriptForEvaluation Source # | |||||
Defined in PlutusLedgerApi.Common.SerialisedScript Associated Types
Methods from :: ScriptForEvaluation -> Rep ScriptForEvaluation x Source # to :: Rep ScriptForEvaluation x -> ScriptForEvaluation Source # | |||||
| Show ScriptForEvaluation Source # | |||||
Defined in PlutusLedgerApi.Common.SerialisedScript | |||||
| NFData ScriptForEvaluation Source # | |||||
Defined in PlutusLedgerApi.Common.SerialisedScript Methods rnf :: ScriptForEvaluation -> () Source # | |||||
| Eq ScriptForEvaluation Source # | |||||
Defined in PlutusLedgerApi.Common.SerialisedScript Methods (==) :: ScriptForEvaluation -> ScriptForEvaluation -> Bool Source # (/=) :: ScriptForEvaluation -> ScriptForEvaluation -> Bool Source # | |||||
| NoThunks ScriptForEvaluation Source # | |||||
Defined in PlutusLedgerApi.Common.SerialisedScript Methods noThunks :: Context -> ScriptForEvaluation -> IO (Maybe ThunkInfo) wNoThunks :: Context -> ScriptForEvaluation -> IO (Maybe ThunkInfo) | |||||
| type Rep ScriptForEvaluation Source # | |||||
Defined in PlutusLedgerApi.Common.SerialisedScript type Rep ScriptForEvaluation = D1 ('MetaData "ScriptForEvaluation" "PlutusLedgerApi.Common.SerialisedScript" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'False) (C1 ('MetaCons "UnsafeScriptForEvaluation" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SerialisedScript) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ScriptNamedDeBruijn))) | |||||
data ScriptDecodeError Source #
An error that occurred during script deserialization.
Constructors
| CBORDeserialiseError !DeserialiseFailureInfo | an error from the underlying CBOR/serialise library |
| RemainderError !ByteString | Script was successfully parsed, but more (runaway) bytes encountered after script's position |
| LedgerLanguageNotAvailableError | the plutus version of the given script is not enabled yet |
Fields
| |
| PlutusCoreLanguageNotAvailableError | |
Fields
| |
Instances
| Exception ScriptDecodeError Source # | |
Defined in PlutusLedgerApi.Common.SerialisedScript Methods toException :: ScriptDecodeError -> SomeException Source # fromException :: SomeException -> Maybe ScriptDecodeError Source # | |
| Show ScriptDecodeError Source # | |
Defined in PlutusLedgerApi.Common.SerialisedScript | |
| Eq ScriptDecodeError Source # | |
Defined in PlutusLedgerApi.Common.SerialisedScript Methods (==) :: ScriptDecodeError -> ScriptDecodeError -> Bool Source # (/=) :: ScriptDecodeError -> ScriptDecodeError -> Bool Source # | |
| AsScriptDecodeError ScriptDecodeError Source # | |
Defined in PlutusLedgerApi.Common.SerialisedScript Methods _ScriptDecodeError :: Prism' ScriptDecodeError ScriptDecodeError Source # _CBORDeserialiseError :: Prism' ScriptDecodeError DeserialiseFailureInfo Source # _RemainderError :: Prism' ScriptDecodeError ByteString Source # _LedgerLanguageNotAvailableError :: Prism' ScriptDecodeError (PlutusLedgerLanguage, MajorProtocolVersion, MajorProtocolVersion) Source # _PlutusCoreLanguageNotAvailableError :: Prism' ScriptDecodeError (Version, PlutusLedgerLanguage, MajorProtocolVersion) Source # | |
| Pretty ScriptDecodeError Source # | |
Defined in PlutusLedgerApi.Common.SerialisedScript | |
newtype ScriptNamedDeBruijn Source #
A script with named de-bruijn indices.
Constructors
| ScriptNamedDeBruijn (Program NamedDeBruijn DefaultUni DefaultFun ()) |
Instances
| Generic ScriptNamedDeBruijn Source # | |||||
Defined in PlutusLedgerApi.Common.SerialisedScript Associated Types
Methods from :: ScriptNamedDeBruijn -> Rep ScriptNamedDeBruijn x Source # to :: Rep ScriptNamedDeBruijn x -> ScriptNamedDeBruijn Source # | |||||
| Show ScriptNamedDeBruijn Source # | |||||
Defined in PlutusLedgerApi.Common.SerialisedScript | |||||
| NFData ScriptNamedDeBruijn Source # | |||||
Defined in PlutusLedgerApi.Common.SerialisedScript Methods rnf :: ScriptNamedDeBruijn -> () Source # | |||||
| Eq ScriptNamedDeBruijn Source # | |||||
Defined in PlutusLedgerApi.Common.SerialisedScript Methods (==) :: ScriptNamedDeBruijn -> ScriptNamedDeBruijn -> Bool Source # (/=) :: ScriptNamedDeBruijn -> ScriptNamedDeBruijn -> Bool Source # | |||||
| type Rep ScriptNamedDeBruijn Source # | |||||
Defined in PlutusLedgerApi.Common.SerialisedScript type Rep ScriptNamedDeBruijn = D1 ('MetaData "ScriptNamedDeBruijn" "PlutusLedgerApi.Common.SerialisedScript" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'True) (C1 ('MetaCons "ScriptNamedDeBruijn" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Program NamedDeBruijn DefaultUni DefaultFun ())))) | |||||
serialisedScript :: ScriptForEvaluation -> SerialisedScript Source #
Get a SerialisedScript from a ScriptForEvaluation. O(1).
deserialisedScript :: ScriptForEvaluation -> ScriptNamedDeBruijn Source #
Get a ScriptNamedDeBruijn from a ScriptForEvaluation. O(1).
serialiseCompiledCode :: CompiledCode a -> SerialisedScript Source #
Turns a program which was compiled using the 'PlutusTx' toolchain into a binary format that is understood by the network and can be stored on-chain.
serialiseUPLC :: Program DeBruijn DefaultUni DefaultFun () -> SerialisedScript Source #
Turns a program's AST (most likely manually constructed) into a binary format that is understood by the network and can be stored on-chain.
Arguments
| :: MonadError ScriptDecodeError m | |
| => MajorProtocolVersion | which major protocol version the script was submitted in. |
| -> SerialisedScript | the script to deserialise. |
| -> m ScriptForEvaluation |
The deserialization from a serialised script into a ScriptForEvaluation,
ready to be evaluated on-chain.
Called inside phase-1 validation (i.e., deserialisation error is a phase-1 error).
uncheckedDeserialiseUPLC :: SerialisedScript -> Program DeBruijn DefaultUni DefaultFun () Source #
Deserialises a SerialisedScript back into an AST. Does *not* do
ledger-language-version-specific checks like for allowable builtins.
Running scripts
evaluateScriptRestricting Source #
Arguments
| :: MajorProtocolVersion | Which major protocol version to run the operation in |
| -> VerboseMode | Whether to produce log output |
| -> EvaluationContext | Includes the cost model to use for tallying up the execution costs |
| -> ExBudget | The resource budget which must not be exceeded during evaluation |
| -> ScriptForEvaluation | The script to evaluate |
| -> [Data] | The arguments to the script |
| -> (LogOutput, Either EvaluationError ExBudget) |
Evaluates a script, with a cost model and a budget that restricts how many resources it can use according to the cost model. Also returns the budget that was actually used.
Can be used to calculate budgets for scripts, but even in this case you must give a limit to guard against scripts that run for a long time or loop.
evaluateScriptCounting Source #
Arguments
| :: MajorProtocolVersion | Which major protocol version to run the operation in |
| -> VerboseMode | Whether to produce log output |
| -> EvaluationContext | Includes the cost model to use for tallying up the execution costs |
| -> ScriptForEvaluation | The script to evaluate |
| -> [Data] | The arguments to the script |
| -> (LogOutput, Either EvaluationError ExBudget) |
Evaluates a script, returning the minimum budget that the script would need
to evaluate successfully. This will take as long as the script takes, if you need to
limit the execution time of the script also, you can use evaluateScriptRestricting, which
also returns the used budget.
Protocol version
newtype MajorProtocolVersion Source #
This represents the major component of the Cardano protocol version. The ledger can only supply the major component of the protocol version, not the minor component, and Plutus should only need to care about the major component anyway. This relies on careful understanding between us and the ledger as to what this means.
Constructors
| MajorProtocolVersion | |
Fields | |
Instances
| Enum MajorProtocolVersion Source # | |||||
Defined in PlutusLedgerApi.Common.ProtocolVersions Methods succ :: MajorProtocolVersion -> MajorProtocolVersion Source # pred :: MajorProtocolVersion -> MajorProtocolVersion Source # toEnum :: Int -> MajorProtocolVersion Source # fromEnum :: MajorProtocolVersion -> Int Source # enumFrom :: MajorProtocolVersion -> [MajorProtocolVersion] Source # enumFromThen :: MajorProtocolVersion -> MajorProtocolVersion -> [MajorProtocolVersion] Source # enumFromTo :: MajorProtocolVersion -> MajorProtocolVersion -> [MajorProtocolVersion] Source # enumFromThenTo :: MajorProtocolVersion -> MajorProtocolVersion -> MajorProtocolVersion -> [MajorProtocolVersion] Source # | |||||
| Generic MajorProtocolVersion Source # | |||||
Defined in PlutusLedgerApi.Common.ProtocolVersions Associated Types
Methods from :: MajorProtocolVersion -> Rep MajorProtocolVersion x Source # to :: Rep MajorProtocolVersion x -> MajorProtocolVersion Source # | |||||
| Show MajorProtocolVersion Source # | |||||
Defined in PlutusLedgerApi.Common.ProtocolVersions | |||||
| Eq MajorProtocolVersion Source # | |||||
Defined in PlutusLedgerApi.Common.ProtocolVersions Methods (==) :: MajorProtocolVersion -> MajorProtocolVersion -> Bool Source # (/=) :: MajorProtocolVersion -> MajorProtocolVersion -> Bool Source # | |||||
| Ord MajorProtocolVersion Source # | |||||
Defined in PlutusLedgerApi.Common.ProtocolVersions Methods compare :: MajorProtocolVersion -> MajorProtocolVersion -> Ordering Source # (<) :: MajorProtocolVersion -> MajorProtocolVersion -> Bool Source # (<=) :: MajorProtocolVersion -> MajorProtocolVersion -> Bool Source # (>) :: MajorProtocolVersion -> MajorProtocolVersion -> Bool Source # (>=) :: MajorProtocolVersion -> MajorProtocolVersion -> Bool Source # max :: MajorProtocolVersion -> MajorProtocolVersion -> MajorProtocolVersion Source # min :: MajorProtocolVersion -> MajorProtocolVersion -> MajorProtocolVersion Source # | |||||
| Pretty MajorProtocolVersion Source # | |||||
Defined in PlutusLedgerApi.Common.ProtocolVersions | |||||
| Serialise MajorProtocolVersion Source # | |||||
Defined in PlutusLedgerApi.Common.ProtocolVersions Methods encode :: MajorProtocolVersion -> Encoding decode :: Decoder s MajorProtocolVersion encodeList :: [MajorProtocolVersion] -> Encoding decodeList :: Decoder s [MajorProtocolVersion] | |||||
| type Rep MajorProtocolVersion Source # | |||||
Defined in PlutusLedgerApi.Common.ProtocolVersions type Rep MajorProtocolVersion = D1 ('MetaData "MajorProtocolVersion" "PlutusLedgerApi.Common.ProtocolVersions" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'True) (C1 ('MetaCons "MajorProtocolVersion" 'PrefixI 'True) (S1 ('MetaSel ('Just "getMajorProtocolVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) | |||||
Costing-related types
Constructors
| ExBudget | |
Fields | |
Instances
| FromJSON ExBudget | |||||
Defined in PlutusCore.Evaluation.Machine.ExBudget | |||||
| ToJSON ExBudget | |||||
Defined in PlutusCore.Evaluation.Machine.ExBudget Methods toEncoding :: ExBudget -> Encoding toJSONList :: [ExBudget] -> Value toEncodingList :: [ExBudget] -> Encoding | |||||
| Monoid ExBudget | |||||
| Semigroup ExBudget | |||||
| Generic ExBudget | |||||
Defined in PlutusCore.Evaluation.Machine.ExBudget Associated Types
| |||||
| Show ExBudget | |||||
| NFData ExBudget | |||||
Defined in PlutusCore.Evaluation.Machine.ExBudget | |||||
| Eq ExBudget | |||||
| NoThunks ExBudget | |||||
| Pretty ExBudget | |||||
Defined in PlutusCore.Evaluation.Machine.ExBudget | |||||
| Serialise ExBudget | |||||
Defined in PlutusCore.Evaluation.Machine.ExBudget Methods encode :: ExBudget -> Encoding encodeList :: [ExBudget] -> Encoding decodeList :: Decoder s [ExBudget] | |||||
| PrettyBy config ExBudget | |||||
Defined in PlutusCore.Evaluation.Machine.ExBudget | |||||
| Lift ExBudget | |||||
| type Rep ExBudget | |||||
Defined in PlutusCore.Evaluation.Machine.ExBudget type Rep ExBudget = D1 ('MetaData "ExBudget" "PlutusCore.Evaluation.Machine.ExBudget" "plutus-core-1.60.0.0-LXFqBsoUlXsJIEqLytHte7" 'False) (C1 ('MetaCons "ExBudget" 'PrefixI 'True) (S1 ('MetaSel ('Just "exBudgetCPU") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedUnpack) (Rec0 ExCPU) :*: S1 ('MetaSel ('Just "exBudgetMemory") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedUnpack) (Rec0 ExMemory))) | |||||
Constructors
| ExCPU CostingInteger |
Instances
| FromJSON ExCPU | |||||
Defined in PlutusCore.Evaluation.Machine.ExMemory | |||||
| ToJSON ExCPU | |||||
Defined in PlutusCore.Evaluation.Machine.ExMemory Methods toEncoding :: ExCPU -> Encoding toJSONList :: [ExCPU] -> Value toEncodingList :: [ExCPU] -> Encoding | |||||
| Monoid ExCPU | |||||
| Semigroup ExCPU | |||||
| Bounded ExCPU | |||||
| Generic ExCPU | |||||
Defined in PlutusCore.Evaluation.Machine.ExMemory Associated Types
| |||||
| Num ExCPU | |||||
Defined in PlutusCore.Evaluation.Machine.ExMemory | |||||
| Read ExCPU | |||||
| Show ExCPU | |||||
| NFData ExCPU | |||||
Defined in PlutusCore.Evaluation.Machine.ExMemory | |||||
| Eq ExCPU | |||||
| Ord ExCPU | |||||
Defined in PlutusCore.Evaluation.Machine.ExMemory | |||||
| NoThunks ExCPU | |||||
| Pretty ExCPU | |||||
Defined in PlutusCore.Evaluation.Machine.ExMemory | |||||
| Serialise ExCPU | |||||
Defined in PlutusCore.Evaluation.Machine.ExMemory | |||||
| PrettyBy config ExCPU | |||||
Defined in PlutusCore.Evaluation.Machine.ExMemory | |||||
| Lift ExCPU | |||||
| type Rep ExCPU | |||||
Defined in PlutusCore.Evaluation.Machine.ExMemory | |||||
Constructors
| ExMemory CostingInteger |
Instances
| FromJSON ExMemory | |||||
Defined in PlutusCore.Evaluation.Machine.ExMemory | |||||
| ToJSON ExMemory | |||||
Defined in PlutusCore.Evaluation.Machine.ExMemory Methods toEncoding :: ExMemory -> Encoding toJSONList :: [ExMemory] -> Value toEncodingList :: [ExMemory] -> Encoding | |||||
| Monoid ExMemory | |||||
| Semigroup ExMemory | |||||
| Bounded ExMemory | |||||
| Generic ExMemory | |||||
Defined in PlutusCore.Evaluation.Machine.ExMemory Associated Types
| |||||
| Num ExMemory | |||||
Defined in PlutusCore.Evaluation.Machine.ExMemory Methods (+) :: ExMemory -> ExMemory -> ExMemory Source # (-) :: ExMemory -> ExMemory -> ExMemory Source # (*) :: ExMemory -> ExMemory -> ExMemory Source # negate :: ExMemory -> ExMemory Source # abs :: ExMemory -> ExMemory Source # signum :: ExMemory -> ExMemory Source # fromInteger :: Integer -> ExMemory Source # | |||||
| Read ExMemory | |||||
| Show ExMemory | |||||
| NFData ExMemory | |||||
Defined in PlutusCore.Evaluation.Machine.ExMemory | |||||
| Eq ExMemory | |||||
| Ord ExMemory | |||||
Defined in PlutusCore.Evaluation.Machine.ExMemory | |||||
| NoThunks ExMemory | |||||
| Pretty ExMemory | |||||
Defined in PlutusCore.Evaluation.Machine.ExMemory | |||||
| Serialise ExMemory | |||||
Defined in PlutusCore.Evaluation.Machine.ExMemory Methods encode :: ExMemory -> Encoding encodeList :: [ExMemory] -> Encoding decodeList :: Decoder s [ExMemory] | |||||
| PrettyBy config ExMemory | |||||
Defined in PlutusCore.Evaluation.Machine.ExMemory | |||||
| Lift ExMemory | |||||
| type Rep ExMemory | |||||
Defined in PlutusCore.Evaluation.Machine.ExMemory type Rep ExMemory = D1 ('MetaData "ExMemory" "PlutusCore.Evaluation.Machine.ExMemory" "plutus-core-1.60.0.0-LXFqBsoUlXsJIEqLytHte7" 'True) (C1 ('MetaCons "ExMemory" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CostingInteger))) | |||||
Instances
| FromJSON SatInt | |||||
Defined in Data.SatInt | |||||
| ToJSON SatInt | |||||
Defined in Data.SatInt Methods toEncoding :: SatInt -> Encoding toJSONList :: [SatInt] -> Value toEncodingList :: [SatInt] -> Encoding | |||||
| Bits SatInt | |||||
Defined in Data.SatInt Methods (.&.) :: SatInt -> SatInt -> SatInt Source # (.|.) :: SatInt -> SatInt -> SatInt Source # xor :: SatInt -> SatInt -> SatInt Source # complement :: SatInt -> SatInt Source # shift :: SatInt -> Int -> SatInt Source # rotate :: SatInt -> Int -> SatInt Source # setBit :: SatInt -> Int -> SatInt Source # clearBit :: SatInt -> Int -> SatInt Source # complementBit :: SatInt -> Int -> SatInt Source # testBit :: SatInt -> Int -> Bool Source # bitSizeMaybe :: SatInt -> Maybe Int Source # bitSize :: SatInt -> Int Source # isSigned :: SatInt -> Bool Source # shiftL :: SatInt -> Int -> SatInt Source # unsafeShiftL :: SatInt -> Int -> SatInt Source # shiftR :: SatInt -> Int -> SatInt Source # unsafeShiftR :: SatInt -> Int -> SatInt Source # rotateL :: SatInt -> Int -> SatInt Source # | |||||
| FiniteBits SatInt | |||||
Defined in Data.SatInt Methods finiteBitSize :: SatInt -> Int Source # countLeadingZeros :: SatInt -> Int Source # countTrailingZeros :: SatInt -> Int Source # | |||||
| Bounded SatInt | |||||
| Generic SatInt | |||||
Defined in Data.SatInt Associated Types
| |||||
| Num SatInt | |||||
| Read SatInt | |||||
| Show SatInt | |||||
| FromField SatInt | |||||
Defined in Data.SatInt Methods parseField :: Field -> Parser SatInt | |||||
| NFData SatInt | |||||
Defined in Data.SatInt | |||||
| Eq SatInt | |||||
| Ord SatInt | |||||
| NoThunks SatInt | |||||
| Prim SatInt | |||||
Defined in Data.SatInt Methods sizeOfType# :: Proxy SatInt -> Int# alignmentOfType# :: Proxy SatInt -> Int# alignment# :: SatInt -> Int# indexByteArray# :: ByteArray# -> Int# -> SatInt readByteArray# :: MutableByteArray# s -> Int# -> State# s -> (# State# s, SatInt #) writeByteArray# :: MutableByteArray# s -> Int# -> SatInt -> State# s -> State# s setByteArray# :: MutableByteArray# s -> Int# -> Int# -> SatInt -> State# s -> State# s indexOffAddr# :: Addr# -> Int# -> SatInt readOffAddr# :: Addr# -> Int# -> State# s -> (# State# s, SatInt #) writeOffAddr# :: Addr# -> Int# -> SatInt -> State# s -> State# s setOffAddr# :: Addr# -> Int# -> Int# -> SatInt -> State# s -> State# s | |||||
| Serialise SatInt | |||||
Defined in Data.SatInt | |||||
| Lift SatInt | |||||
| type Rep SatInt | |||||
Defined in Data.SatInt | |||||
fromSatInt :: Num a => SatInt -> a #
The enumeration of all possible cost model parameter names for this language version.
IMPORTANT: The order of appearance of the data constructors here matters. DO NOT REORDER. See Note [Quotation marks in cost model parameter constructors] See Note [Cost model parameters from the ledger's point of view]
Constructors
| AddInteger'cpu'arguments'intercept | |
| AddInteger'cpu'arguments'slope | |
| AddInteger'memory'arguments'intercept | |
| AddInteger'memory'arguments'slope | |
| AppendByteString'cpu'arguments'intercept | |
| AppendByteString'cpu'arguments'slope | |
| AppendByteString'memory'arguments'intercept | |
| AppendByteString'memory'arguments'slope | |
| AppendString'cpu'arguments'intercept | |
| AppendString'cpu'arguments'slope | |
| AppendString'memory'arguments'intercept | |
| AppendString'memory'arguments'slope | |
| BData'cpu'arguments | |
| BData'memory'arguments | |
| Blake2b_256'cpu'arguments'intercept | |
| Blake2b_256'cpu'arguments'slope | |
| Blake2b_256'memory'arguments | |
| CekApplyCost'exBudgetCPU | |
| CekApplyCost'exBudgetMemory | |
| CekBuiltinCost'exBudgetCPU | |
| CekBuiltinCost'exBudgetMemory | |
| CekConstCost'exBudgetCPU | |
| CekConstCost'exBudgetMemory | |
| CekDelayCost'exBudgetCPU | |
| CekDelayCost'exBudgetMemory | |
| CekForceCost'exBudgetCPU | |
| CekForceCost'exBudgetMemory | |
| CekLamCost'exBudgetCPU | |
| CekLamCost'exBudgetMemory | |
| CekStartupCost'exBudgetCPU | |
| CekStartupCost'exBudgetMemory | |
| CekVarCost'exBudgetCPU | |
| CekVarCost'exBudgetMemory | |
| ChooseData'cpu'arguments | |
| ChooseData'memory'arguments | |
| ChooseList'cpu'arguments | |
| ChooseList'memory'arguments | |
| ChooseUnit'cpu'arguments | |
| ChooseUnit'memory'arguments | |
| ConsByteString'cpu'arguments'intercept | |
| ConsByteString'cpu'arguments'slope | |
| ConsByteString'memory'arguments'intercept | |
| ConsByteString'memory'arguments'slope | |
| ConstrData'cpu'arguments | |
| ConstrData'memory'arguments | |
| DecodeUtf8'cpu'arguments'intercept | |
| DecodeUtf8'cpu'arguments'slope | |
| DecodeUtf8'memory'arguments'intercept | |
| DecodeUtf8'memory'arguments'slope | |
| DivideInteger'cpu'arguments'constant | |
| DivideInteger'cpu'arguments'model'arguments'intercept | |
| DivideInteger'cpu'arguments'model'arguments'slope | |
| DivideInteger'memory'arguments'intercept | |
| DivideInteger'memory'arguments'minimum | |
| DivideInteger'memory'arguments'slope | |
| EncodeUtf8'cpu'arguments'intercept | |
| EncodeUtf8'cpu'arguments'slope | |
| EncodeUtf8'memory'arguments'intercept | |
| EncodeUtf8'memory'arguments'slope | |
| EqualsByteString'cpu'arguments'constant | |
| EqualsByteString'cpu'arguments'intercept | |
| EqualsByteString'cpu'arguments'slope | |
| EqualsByteString'memory'arguments | |
| EqualsData'cpu'arguments'intercept | |
| EqualsData'cpu'arguments'slope | |
| EqualsData'memory'arguments | |
| EqualsInteger'cpu'arguments'intercept | |
| EqualsInteger'cpu'arguments'slope | |
| EqualsInteger'memory'arguments | |
| EqualsString'cpu'arguments'constant | |
| EqualsString'cpu'arguments'intercept | |
| EqualsString'cpu'arguments'slope | |
| EqualsString'memory'arguments | |
| FstPair'cpu'arguments | |
| FstPair'memory'arguments | |
| HeadList'cpu'arguments | |
| HeadList'memory'arguments | |
| IData'cpu'arguments | |
| IData'memory'arguments | |
| IfThenElse'cpu'arguments | |
| IfThenElse'memory'arguments | |
| IndexByteString'cpu'arguments | |
| IndexByteString'memory'arguments | |
| LengthOfByteString'cpu'arguments | |
| LengthOfByteString'memory'arguments | |
| LessThanByteString'cpu'arguments'intercept | |
| LessThanByteString'cpu'arguments'slope | |
| LessThanByteString'memory'arguments | |
| LessThanEqualsByteString'cpu'arguments'intercept | |
| LessThanEqualsByteString'cpu'arguments'slope | |
| LessThanEqualsByteString'memory'arguments | |
| LessThanEqualsInteger'cpu'arguments'intercept | |
| LessThanEqualsInteger'cpu'arguments'slope | |
| LessThanEqualsInteger'memory'arguments | |
| LessThanInteger'cpu'arguments'intercept | |
| LessThanInteger'cpu'arguments'slope | |
| LessThanInteger'memory'arguments | |
| ListData'cpu'arguments | |
| ListData'memory'arguments | |
| MapData'cpu'arguments | |
| MapData'memory'arguments | |
| MkCons'cpu'arguments | |
| MkCons'memory'arguments | |
| MkNilData'cpu'arguments | |
| MkNilData'memory'arguments | |
| MkNilPairData'cpu'arguments | |
| MkNilPairData'memory'arguments | |
| MkPairData'cpu'arguments | |
| MkPairData'memory'arguments | |
| ModInteger'cpu'arguments'constant | |
| ModInteger'cpu'arguments'model'arguments'intercept | |
| ModInteger'cpu'arguments'model'arguments'slope | |
| ModInteger'memory'arguments'intercept | |
| ModInteger'memory'arguments'minimum | |
| ModInteger'memory'arguments'slope | |
| MultiplyInteger'cpu'arguments'intercept | |
| MultiplyInteger'cpu'arguments'slope | |
| MultiplyInteger'memory'arguments'intercept | |
| MultiplyInteger'memory'arguments'slope | |
| NullList'cpu'arguments | |
| NullList'memory'arguments | |
| QuotientInteger'cpu'arguments'constant | |
| QuotientInteger'cpu'arguments'model'arguments'intercept | |
| QuotientInteger'cpu'arguments'model'arguments'slope | |
| QuotientInteger'memory'arguments'intercept | |
| QuotientInteger'memory'arguments'minimum | |
| QuotientInteger'memory'arguments'slope | |
| RemainderInteger'cpu'arguments'constant | |
| RemainderInteger'cpu'arguments'model'arguments'intercept | |
| RemainderInteger'cpu'arguments'model'arguments'slope | |
| RemainderInteger'memory'arguments'intercept | |
| RemainderInteger'memory'arguments'minimum | |
| RemainderInteger'memory'arguments'slope | |
| Sha2_256'cpu'arguments'intercept | |
| Sha2_256'cpu'arguments'slope | |
| Sha2_256'memory'arguments | |
| Sha3_256'cpu'arguments'intercept | |
| Sha3_256'cpu'arguments'slope | |
| Sha3_256'memory'arguments | |
| SliceByteString'cpu'arguments'intercept | |
| SliceByteString'cpu'arguments'slope | |
| SliceByteString'memory'arguments'intercept | |
| SliceByteString'memory'arguments'slope | |
| SndPair'cpu'arguments | |
| SndPair'memory'arguments | |
| SubtractInteger'cpu'arguments'intercept | |
| SubtractInteger'cpu'arguments'slope | |
| SubtractInteger'memory'arguments'intercept | |
| SubtractInteger'memory'arguments'slope | |
| TailList'cpu'arguments | |
| TailList'memory'arguments | |
| Trace'cpu'arguments | |
| Trace'memory'arguments | |
| UnBData'cpu'arguments | |
| UnBData'memory'arguments | |
| UnConstrData'cpu'arguments | |
| UnConstrData'memory'arguments | |
| UnIData'cpu'arguments | |
| UnIData'memory'arguments | |
| UnListData'cpu'arguments | |
| UnListData'memory'arguments | |
| UnMapData'cpu'arguments | |
| UnMapData'memory'arguments | |
| VerifyEd25519Signature'cpu'arguments'intercept | |
| VerifyEd25519Signature'cpu'arguments'slope | |
| VerifyEd25519Signature'memory'arguments | |
| SerialiseData'cpu'arguments'intercept | |
| SerialiseData'cpu'arguments'slope | |
| SerialiseData'memory'arguments'intercept | |
| SerialiseData'memory'arguments'slope | |
| VerifyEcdsaSecp256k1Signature'cpu'arguments | |
| VerifyEcdsaSecp256k1Signature'memory'arguments | |
| VerifySchnorrSecp256k1Signature'cpu'arguments'intercept | |
| VerifySchnorrSecp256k1Signature'cpu'arguments'slope | |
| VerifySchnorrSecp256k1Signature'memory'arguments | |
| CekConstrCost'exBudgetCPU | |
| CekConstrCost'exBudgetMemory | |
| CekCaseCost'exBudgetCPU | |
| CekCaseCost'exBudgetMemory | |
| Bls12_381_G1_add'cpu'arguments | |
| Bls12_381_G1_add'memory'arguments | |
| Bls12_381_G1_compress'cpu'arguments | |
| Bls12_381_G1_compress'memory'arguments | |
| Bls12_381_G1_equal'cpu'arguments | |
| Bls12_381_G1_equal'memory'arguments | |
| Bls12_381_G1_hashToGroup'cpu'arguments'intercept | |
| Bls12_381_G1_hashToGroup'cpu'arguments'slope | |
| Bls12_381_G1_hashToGroup'memory'arguments | |
| Bls12_381_G1_neg'cpu'arguments | |
| Bls12_381_G1_neg'memory'arguments | |
| Bls12_381_G1_scalarMul'cpu'arguments'intercept | |
| Bls12_381_G1_scalarMul'cpu'arguments'slope | |
| Bls12_381_G1_scalarMul'memory'arguments | |
| Bls12_381_G1_uncompress'cpu'arguments | |
| Bls12_381_G1_uncompress'memory'arguments | |
| Bls12_381_G2_add'cpu'arguments | |
| Bls12_381_G2_add'memory'arguments | |
| Bls12_381_G2_compress'cpu'arguments | |
| Bls12_381_G2_compress'memory'arguments | |
| Bls12_381_G2_equal'cpu'arguments | |
| Bls12_381_G2_equal'memory'arguments | |
| Bls12_381_G2_hashToGroup'cpu'arguments'intercept | |
| Bls12_381_G2_hashToGroup'cpu'arguments'slope | |
| Bls12_381_G2_hashToGroup'memory'arguments | |
| Bls12_381_G2_neg'cpu'arguments | |
| Bls12_381_G2_neg'memory'arguments | |
| Bls12_381_G2_scalarMul'cpu'arguments'intercept | |
| Bls12_381_G2_scalarMul'cpu'arguments'slope | |
| Bls12_381_G2_scalarMul'memory'arguments | |
| Bls12_381_G2_uncompress'cpu'arguments | |
| Bls12_381_G2_uncompress'memory'arguments | |
| Bls12_381_finalVerify'cpu'arguments | |
| Bls12_381_finalVerify'memory'arguments | |
| Bls12_381_millerLoop'cpu'arguments | |
| Bls12_381_millerLoop'memory'arguments | |
| Bls12_381_mulMlResult'cpu'arguments | |
| Bls12_381_mulMlResult'memory'arguments | |
| Keccak_256'cpu'arguments'intercept | |
| Keccak_256'cpu'arguments'slope | |
| Keccak_256'memory'arguments | |
| Blake2b_224'cpu'arguments'intercept | |
| Blake2b_224'cpu'arguments'slope | |
| Blake2b_224'memory'arguments | |
| IntegerToByteString'cpu'arguments'c0 | |
| IntegerToByteString'cpu'arguments'c1 | |
| IntegerToByteString'cpu'arguments'c2 | |
| IntegerToByteString'memory'arguments'intercept | |
| IntegerToByteString'memory'arguments'slope | |
| ByteStringToInteger'cpu'arguments'c0 | |
| ByteStringToInteger'cpu'arguments'c1 | |
| ByteStringToInteger'cpu'arguments'c2 | |
| ByteStringToInteger'memory'arguments'intercept | |
| ByteStringToInteger'memory'arguments'slope | |
| AndByteString'cpu'arguments'intercept | |
| AndByteString'cpu'arguments'slope1 | |
| AndByteString'cpu'arguments'slope2 | |
| AndByteString'memory'arguments'intercept | |
| AndByteString'memory'arguments'slope | |
| OrByteString'cpu'arguments'intercept | |
| OrByteString'cpu'arguments'slope1 | |
| OrByteString'cpu'arguments'slope2 | |
| OrByteString'memory'arguments'intercept | |
| OrByteString'memory'arguments'slope | |
| XorByteString'cpu'arguments'intercept | |
| XorByteString'cpu'arguments'slope1 | |
| XorByteString'cpu'arguments'slope2 | |
| XorByteString'memory'arguments'intercept | |
| XorByteString'memory'arguments'slope | |
| ComplementByteString'cpu'arguments'intercept | |
| ComplementByteString'cpu'arguments'slope | |
| ComplementByteString'memory'arguments'intercept | |
| ComplementByteString'memory'arguments'slope | |
| ReadBit'cpu'arguments | |
| ReadBit'memory'arguments | |
| WriteBits'cpu'arguments'intercept | |
| WriteBits'cpu'arguments'slope | |
| WriteBits'memory'arguments'intercept | |
| WriteBits'memory'arguments'slope | |
| ReplicateByte'cpu'arguments'intercept | |
| ReplicateByte'cpu'arguments'slope | |
| ReplicateByte'memory'arguments'intercept | |
| ReplicateByte'memory'arguments'slope | |
| ShiftByteString'cpu'arguments'intercept | |
| ShiftByteString'cpu'arguments'slope | |
| ShiftByteString'memory'arguments'intercept | |
| ShiftByteString'memory'arguments'slope | |
| RotateByteString'cpu'arguments'intercept | |
| RotateByteString'cpu'arguments'slope | |
| RotateByteString'memory'arguments'intercept | |
| RotateByteString'memory'arguments'slope | |
| CountSetBits'cpu'arguments'intercept | |
| CountSetBits'cpu'arguments'slope | |
| CountSetBits'memory'arguments | |
| FindFirstSetBit'cpu'arguments'intercept | |
| FindFirstSetBit'cpu'arguments'slope | |
| FindFirstSetBit'memory'arguments | |
| Ripemd_160'cpu'arguments'intercept | |
| Ripemd_160'cpu'arguments'slope | |
| Ripemd_160'memory'arguments | |
| ExpModInteger'cpu'arguments'coefficient00 | |
| ExpModInteger'cpu'arguments'coefficient11 | |
| ExpModInteger'cpu'arguments'coefficient12 | |
| ExpModInteger'memory'arguments'intercept | |
| ExpModInteger'memory'arguments'slope | |
| DropList'cpu'arguments'intercept | |
| DropList'cpu'arguments'slope | |
| DropList'memory'arguments | |
| LengthOfArray'cpu'arguments | |
| LengthOfArray'memory'arguments | |
| ListToArray'cpu'arguments'intercept | |
| ListToArray'cpu'arguments'slope | |
| ListToArray'memory'arguments'intercept | |
| ListToArray'memory'arguments'slope | |
| IndexArray'cpu'arguments | |
| IndexArray'memory'arguments | |
| Bls12_381_G1_multiScalarMul'cpu'arguments'intercept | |
| Bls12_381_G1_multiScalarMul'cpu'arguments'slope | |
| Bls12_381_G1_multiScalarMul'memory'arguments | |
| Bls12_381_G2_multiScalarMul'cpu'arguments'intercept | |
| Bls12_381_G2_multiScalarMul'cpu'arguments'slope | |
| Bls12_381_G2_multiScalarMul'memory'arguments | |
| InsertCoin'cpu'arguments'intercept | |
| InsertCoin'cpu'arguments'slope | |
| InsertCoin'memory'arguments'intercept | |
| InsertCoin'memory'arguments'slope | |
| LookupCoin'cpu'arguments'intercept | |
| LookupCoin'cpu'arguments'slope | |
| LookupCoin'memory'arguments | |
| UnionValue'cpu'arguments'c00 | |
| UnionValue'cpu'arguments'c10 | |
| UnionValue'cpu'arguments'c01 | |
| UnionValue'cpu'arguments'c11 | |
| UnionValue'memory'arguments'intercept | |
| UnionValue'memory'arguments'slope | |
| ValueContains'cpu'arguments'constant | |
| ValueContains'cpu'arguments'model'arguments'intercept | |
| ValueContains'cpu'arguments'model'arguments'slope1 | |
| ValueContains'cpu'arguments'model'arguments'slope2 | |
| ValueContains'memory'arguments | |
| ValueData'cpu'arguments'intercept | |
| ValueData'cpu'arguments'slope | |
| ValueData'memory'arguments'intercept | |
| ValueData'memory'arguments'slope | |
| UnValueData'cpu'arguments'c0 | |
| UnValueData'cpu'arguments'c1 | |
| UnValueData'cpu'arguments'c2 | |
| UnValueData'memory'arguments'intercept | |
| UnValueData'memory'arguments'slope | |
| ScaleValue'cpu'arguments'intercept | |
| ScaleValue'cpu'arguments'slope | |
| ScaleValue'memory'arguments'intercept | |
| ScaleValue'memory'arguments'slope |
Instances
| Bounded ParamName Source # | |||||
| Enum ParamName Source # | |||||
Defined in PlutusLedgerApi.V1.ParamName Methods succ :: ParamName -> ParamName Source # pred :: ParamName -> ParamName Source # toEnum :: Int -> ParamName Source # fromEnum :: ParamName -> Int Source # enumFrom :: ParamName -> [ParamName] Source # enumFromThen :: ParamName -> ParamName -> [ParamName] Source # enumFromTo :: ParamName -> ParamName -> [ParamName] Source # enumFromThenTo :: ParamName -> ParamName -> ParamName -> [ParamName] Source # | |||||
| Generic ParamName Source # | |||||
Defined in PlutusLedgerApi.V1.ParamName Associated Types
| |||||
| Ix ParamName Source # | |||||
Defined in PlutusLedgerApi.V1.ParamName Methods range :: (ParamName, ParamName) -> [ParamName] Source # index :: (ParamName, ParamName) -> ParamName -> Int Source # unsafeIndex :: (ParamName, ParamName) -> ParamName -> Int Source # inRange :: (ParamName, ParamName) -> ParamName -> Bool Source # | |||||
| Eq ParamName Source # | |||||
| Ord ParamName Source # | |||||
Defined in PlutusLedgerApi.V1.ParamName | |||||
| IsParamName ParamName Source # | |||||
Defined in PlutusLedgerApi.V1.ParamName | |||||
| type Rep ParamName Source # | |||||
Defined in PlutusLedgerApi.V1.ParamName type Rep ParamName = D1 ('MetaData "ParamName" "PlutusLedgerApi.V1.ParamName" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'False) ((((((((C1 ('MetaCons "AddInteger'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AddInteger'cpu'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "AddInteger'memory'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "AddInteger'memory'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AppendByteString'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "AppendByteString'cpu'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AppendByteString'memory'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "AppendByteString'memory'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "AppendString'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AppendString'cpu'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "AppendString'memory'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AppendString'memory'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "BData'cpu'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "BData'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Blake2b_256'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "Blake2b_256'cpu'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Blake2b_256'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "CekApplyCost'exBudgetCPU" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "CekApplyCost'exBudgetMemory" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CekBuiltinCost'exBudgetCPU" 'PrefixI 'False) (U1 :: Type -> Type)))))) :+: ((((C1 ('MetaCons "CekBuiltinCost'exBudgetMemory" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CekConstCost'exBudgetCPU" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "CekConstCost'exBudgetMemory" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "CekDelayCost'exBudgetCPU" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CekDelayCost'exBudgetMemory" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "CekForceCost'exBudgetCPU" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CekForceCost'exBudgetMemory" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "CekLamCost'exBudgetCPU" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "CekLamCost'exBudgetMemory" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CekStartupCost'exBudgetCPU" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "CekStartupCost'exBudgetMemory" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CekVarCost'exBudgetCPU" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "CekVarCost'exBudgetMemory" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ChooseData'cpu'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ChooseData'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "ChooseList'cpu'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ChooseList'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ChooseUnit'cpu'arguments" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "ChooseUnit'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ConsByteString'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ConsByteString'cpu'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type))))))) :+: (((((C1 ('MetaCons "ConsByteString'memory'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ConsByteString'memory'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ConstrData'cpu'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ConstrData'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DecodeUtf8'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "DecodeUtf8'cpu'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DecodeUtf8'memory'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "DecodeUtf8'memory'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "DivideInteger'cpu'arguments'constant" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DivideInteger'cpu'arguments'model'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "DivideInteger'cpu'arguments'model'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DivideInteger'memory'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "DivideInteger'memory'arguments'minimum" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "DivideInteger'memory'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "EncodeUtf8'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "EncodeUtf8'cpu'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "EncodeUtf8'memory'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "EncodeUtf8'memory'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "EqualsByteString'cpu'arguments'constant" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "EqualsByteString'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "EqualsByteString'cpu'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type)))))) :+: ((((C1 ('MetaCons "EqualsByteString'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "EqualsData'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "EqualsData'cpu'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "EqualsData'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "EqualsInteger'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "EqualsInteger'cpu'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "EqualsInteger'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "EqualsString'cpu'arguments'constant" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "EqualsString'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "EqualsString'cpu'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "EqualsString'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FstPair'cpu'arguments" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "FstPair'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "HeadList'cpu'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "HeadList'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "IData'cpu'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "IData'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "IfThenElse'cpu'arguments" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "IfThenElse'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "IndexByteString'cpu'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "IndexByteString'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type)))))))) :+: ((((((C1 ('MetaCons "LengthOfByteString'cpu'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LengthOfByteString'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "LessThanByteString'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "LessThanByteString'cpu'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LessThanByteString'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "LessThanEqualsByteString'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LessThanEqualsByteString'cpu'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "LessThanEqualsByteString'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "LessThanEqualsInteger'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LessThanEqualsInteger'cpu'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "LessThanEqualsInteger'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LessThanInteger'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "LessThanInteger'cpu'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "LessThanInteger'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ListData'cpu'arguments" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "ListData'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MapData'cpu'arguments" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "MapData'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "MkCons'cpu'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MkCons'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type)))))) :+: ((((C1 ('MetaCons "MkNilData'cpu'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MkNilData'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "MkNilPairData'cpu'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "MkNilPairData'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MkPairData'cpu'arguments" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "MkPairData'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ModInteger'cpu'arguments'constant" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ModInteger'cpu'arguments'model'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ModInteger'cpu'arguments'model'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ModInteger'memory'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "ModInteger'memory'arguments'minimum" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ModInteger'memory'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "MultiplyInteger'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "MultiplyInteger'cpu'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MultiplyInteger'memory'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "MultiplyInteger'memory'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "NullList'cpu'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NullList'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "QuotientInteger'cpu'arguments'constant" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "QuotientInteger'cpu'arguments'model'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "QuotientInteger'cpu'arguments'model'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type))))))) :+: (((((C1 ('MetaCons "QuotientInteger'memory'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "QuotientInteger'memory'arguments'minimum" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "QuotientInteger'memory'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "RemainderInteger'cpu'arguments'constant" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "RemainderInteger'cpu'arguments'model'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "RemainderInteger'cpu'arguments'model'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "RemainderInteger'memory'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "RemainderInteger'memory'arguments'minimum" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "RemainderInteger'memory'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Sha2_256'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "Sha2_256'cpu'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Sha2_256'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Sha3_256'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Sha3_256'cpu'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Sha3_256'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "SliceByteString'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "SliceByteString'cpu'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SliceByteString'memory'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "SliceByteString'memory'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "SndPair'cpu'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SndPair'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type)))))) :+: ((((C1 ('MetaCons "SubtractInteger'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SubtractInteger'cpu'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "SubtractInteger'memory'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "SubtractInteger'memory'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TailList'cpu'arguments" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "TailList'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Trace'cpu'arguments" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Trace'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "UnBData'cpu'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "UnBData'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "UnConstrData'cpu'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "UnConstrData'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "UnIData'cpu'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "UnIData'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "UnListData'cpu'arguments" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "UnListData'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "UnMapData'cpu'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "UnMapData'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "VerifyEd25519Signature'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "VerifyEd25519Signature'cpu'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "VerifyEd25519Signature'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type))))))))) :+: (((((((C1 ('MetaCons "SerialiseData'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SerialiseData'cpu'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "SerialiseData'memory'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "SerialiseData'memory'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "VerifyEcdsaSecp256k1Signature'cpu'arguments" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "VerifyEcdsaSecp256k1Signature'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "VerifySchnorrSecp256k1Signature'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "VerifySchnorrSecp256k1Signature'cpu'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "VerifySchnorrSecp256k1Signature'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CekConstrCost'exBudgetCPU" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "CekConstrCost'exBudgetMemory" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CekCaseCost'exBudgetCPU" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "CekCaseCost'exBudgetMemory" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Bls12_381_G1_add'cpu'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Bls12_381_G1_add'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "Bls12_381_G1_compress'cpu'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Bls12_381_G1_compress'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Bls12_381_G1_equal'cpu'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Bls12_381_G1_equal'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Bls12_381_G1_hashToGroup'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type)))))) :+: ((((C1 ('MetaCons "Bls12_381_G1_hashToGroup'cpu'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Bls12_381_G1_hashToGroup'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Bls12_381_G1_neg'cpu'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Bls12_381_G1_neg'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Bls12_381_G1_scalarMul'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "Bls12_381_G1_scalarMul'cpu'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Bls12_381_G1_scalarMul'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Bls12_381_G1_uncompress'cpu'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Bls12_381_G1_uncompress'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Bls12_381_G2_add'cpu'arguments" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "Bls12_381_G2_add'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Bls12_381_G2_compress'cpu'arguments" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Bls12_381_G2_compress'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Bls12_381_G2_equal'cpu'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Bls12_381_G2_equal'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "Bls12_381_G2_hashToGroup'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Bls12_381_G2_hashToGroup'cpu'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Bls12_381_G2_hashToGroup'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "Bls12_381_G2_neg'cpu'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Bls12_381_G2_neg'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Bls12_381_G2_scalarMul'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type))))))) :+: (((((C1 ('MetaCons "Bls12_381_G2_scalarMul'cpu'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Bls12_381_G2_scalarMul'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Bls12_381_G2_uncompress'cpu'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Bls12_381_G2_uncompress'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Bls12_381_finalVerify'cpu'arguments" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "Bls12_381_finalVerify'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Bls12_381_millerLoop'cpu'arguments" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Bls12_381_millerLoop'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Bls12_381_mulMlResult'cpu'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Bls12_381_mulMlResult'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "Keccak_256'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Keccak_256'cpu'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Keccak_256'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Blake2b_224'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Blake2b_224'cpu'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "Blake2b_224'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "IntegerToByteString'cpu'arguments'c0" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "IntegerToByteString'cpu'arguments'c1" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "IntegerToByteString'cpu'arguments'c2" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "IntegerToByteString'memory'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "IntegerToByteString'memory'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type)))))) :+: ((((C1 ('MetaCons "ByteStringToInteger'cpu'arguments'c0" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ByteStringToInteger'cpu'arguments'c1" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ByteStringToInteger'cpu'arguments'c2" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ByteStringToInteger'memory'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ByteStringToInteger'memory'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "AndByteString'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AndByteString'cpu'arguments'slope1" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "AndByteString'cpu'arguments'slope2" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "AndByteString'memory'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AndByteString'memory'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "OrByteString'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "OrByteString'cpu'arguments'slope1" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "OrByteString'cpu'arguments'slope2" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "OrByteString'memory'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "OrByteString'memory'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "XorByteString'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "XorByteString'cpu'arguments'slope1" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "XorByteString'cpu'arguments'slope2" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "XorByteString'memory'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "XorByteString'memory'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ComplementByteString'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type)))))))) :+: ((((((C1 ('MetaCons "ComplementByteString'cpu'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ComplementByteString'memory'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ComplementByteString'memory'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ReadBit'cpu'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ReadBit'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "WriteBits'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "WriteBits'cpu'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "WriteBits'memory'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "WriteBits'memory'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ReplicateByte'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "ReplicateByte'cpu'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ReplicateByte'memory'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ReplicateByte'memory'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ShiftByteString'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ShiftByteString'cpu'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "ShiftByteString'memory'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ShiftByteString'memory'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "RotateByteString'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "RotateByteString'cpu'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "RotateByteString'memory'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type)))))) :+: ((((C1 ('MetaCons "RotateByteString'memory'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CountSetBits'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "CountSetBits'cpu'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "CountSetBits'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FindFirstSetBit'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "FindFirstSetBit'cpu'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FindFirstSetBit'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Ripemd_160'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Ripemd_160'cpu'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Ripemd_160'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "ExpModInteger'cpu'arguments'coefficient00" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ExpModInteger'cpu'arguments'coefficient11" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ExpModInteger'cpu'arguments'coefficient12" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ExpModInteger'memory'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ExpModInteger'memory'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "DropList'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "DropList'cpu'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DropList'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "LengthOfArray'cpu'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "LengthOfArray'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ListToArray'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type))))))) :+: (((((C1 ('MetaCons "ListToArray'cpu'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ListToArray'memory'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ListToArray'memory'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "IndexArray'cpu'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "IndexArray'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "Bls12_381_G1_multiScalarMul'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Bls12_381_G1_multiScalarMul'cpu'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Bls12_381_G1_multiScalarMul'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Bls12_381_G2_multiScalarMul'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Bls12_381_G2_multiScalarMul'cpu'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "Bls12_381_G2_multiScalarMul'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "InsertCoin'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "InsertCoin'cpu'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "InsertCoin'memory'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "InsertCoin'memory'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "LookupCoin'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "LookupCoin'cpu'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LookupCoin'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "UnionValue'cpu'arguments'c00" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "UnionValue'cpu'arguments'c10" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "UnionValue'cpu'arguments'c01" 'PrefixI 'False) (U1 :: Type -> Type)))))) :+: ((((C1 ('MetaCons "UnionValue'cpu'arguments'c11" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "UnionValue'memory'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "UnionValue'memory'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ValueContains'cpu'arguments'constant" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ValueContains'cpu'arguments'model'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "ValueContains'cpu'arguments'model'arguments'slope1" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ValueContains'cpu'arguments'model'arguments'slope2" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ValueContains'memory'arguments" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ValueData'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ValueData'cpu'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "ValueData'memory'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ValueData'memory'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "UnValueData'cpu'arguments'c0" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "UnValueData'cpu'arguments'c1" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "UnValueData'cpu'arguments'c2" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "UnValueData'memory'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "UnValueData'memory'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ScaleValue'cpu'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "ScaleValue'cpu'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ScaleValue'memory'arguments'intercept" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ScaleValue'memory'arguments'slope" 'PrefixI 'False) (U1 :: Type -> Type)))))))))) | |||||
tagWithParamNames :: (Enum k, Bounded k, MonadError CostModelApplyError m, MonadWriter [CostModelApplyWarn] m) => [Int64] -> m [(k, Int64)] Source #
Given an ordered list of parameter values, tag them with their parameter names. If the passed parameter values are more than expected: the function will ignore the extraneous values at the tail of the list, if the passed values are less than expected: the function will throw an error; for more information, see Note [Cost model parameters from the ledger's point of view]
Evaluation
data EvaluationError Source #
Errors that can be thrown when evaluating a Plutus script.
Constructors
| CekError !(CekEvaluationException NamedDeBruijn DefaultUni DefaultFun) | An error from the evaluator itself |
| DeBruijnError !FreeVariableError | An error in the pre-evaluation step of converting from de-Bruijn indices |
| CodecError !ScriptDecodeError | A deserialisation error TODO: make this error more informative when we have more information about what went wrong |
| CostModelParameterMismatch | An error indicating that the cost model parameters didn't match what we expected |
| InvalidReturnValue | The script evaluated to a value that is not a valid return value. |
Instances
| Show EvaluationError Source # | |
Defined in PlutusLedgerApi.Common.Eval | |
| Eq EvaluationError Source # | |
Defined in PlutusLedgerApi.Common.Eval Methods (==) :: EvaluationError -> EvaluationError -> Bool Source # (/=) :: EvaluationError -> EvaluationError -> Bool Source # | |
| AsScriptDecodeError EvaluationError Source # | |
Defined in PlutusLedgerApi.Common.Eval Methods _ScriptDecodeError :: Prism' EvaluationError ScriptDecodeError Source # _CBORDeserialiseError :: Prism' EvaluationError DeserialiseFailureInfo Source # _RemainderError :: Prism' EvaluationError ByteString Source # _LedgerLanguageNotAvailableError :: Prism' EvaluationError (PlutusLedgerLanguage, MajorProtocolVersion, MajorProtocolVersion) Source # _PlutusCoreLanguageNotAvailableError :: Prism' EvaluationError (Version, PlutusLedgerLanguage, MajorProtocolVersion) Source # | |
| Pretty EvaluationError Source # | |
Defined in PlutusLedgerApi.Common.Eval | |
data EvaluationContext Source #
An opaque type that contains all the static parameters that the evaluator needs to evaluate a script. This is so that they can be computed once and cached, rather than being recomputed on every evaluation.
Different protocol versions may require different bundles of machine parameters, which allows us for
example to tweak the shape of the costing function of a builtin, so that the builtin costs less.
Currently this means that we have to create multiple DefaultMachineParameters per language
version, which we put into a cache (represented by an association list) in order to avoid costly
recomputation of machine parameters.
In order to get the appropriate DefaultMachineParameters at validation time we look it up in the
cache using a semantics variant as a key. We compute the semantics variant from the protocol
version using the stored function. Note that the semantics variant depends on the language version
too, but the latter is known statically (because each language version has its own evaluation
context), hence there's no reason to require it to be provided at runtime.
To say it differently, there's a matrix of semantics variants indexed by (LL, PV) pairs and we
cache its particular row corresponding to the statically given LL in an EvaluationContext.
The reason why we associate a DefaultMachineParameters with a semantics variant rather than a
protocol version are
- generally there are far more protocol versions than semantics variants supported by a specific language version, so we save on pointless duplication of bundles of machine parameters
- builtins don't know anything about protocol versions, only semantics variants. It is therefore more semantically precise to associate bundles of machine parameters with semantics variants than with protocol versions
Instances
| Generic EvaluationContext Source # | |||||
Defined in PlutusLedgerApi.Common.Eval Associated Types
Methods from :: EvaluationContext -> Rep EvaluationContext x Source # to :: Rep EvaluationContext x -> EvaluationContext Source # | |||||
| NFData EvaluationContext Source # | |||||
Defined in PlutusLedgerApi.Common.Eval Methods rnf :: EvaluationContext -> () Source # | |||||
| NoThunks EvaluationContext Source # | |||||
Defined in PlutusLedgerApi.Common.Eval Methods noThunks :: Context -> EvaluationContext -> IO (Maybe ThunkInfo) wNoThunks :: Context -> EvaluationContext -> IO (Maybe ThunkInfo) | |||||
| type Rep EvaluationContext Source # | |||||
Defined in PlutusLedgerApi.Common.Eval type Rep EvaluationContext = D1 ('MetaData "EvaluationContext" "PlutusLedgerApi.Common.Eval" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'False) (C1 ('MetaCons "EvaluationContext" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_evalCtxLedgerLang") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 PlutusLedgerLanguage) :*: S1 ('MetaSel ('Just "_evalCtxCaserBuiltin") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (MajorProtocolVersion -> CaserBuiltin DefaultUni))) :*: (S1 ('MetaSel ('Just "_evalCtxToSemVar") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (MajorProtocolVersion -> BuiltinSemanticsVariant DefaultFun)) :*: S1 ('MetaSel ('Just "_evalCtxMachParsCache") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [(BuiltinSemanticsVariant DefaultFun, DefaultMachineVariantParameters)])))) | |||||
class AsScriptDecodeError r where Source #
Minimal complete definition
Methods
_ScriptDecodeError :: Prism' r ScriptDecodeError Source #
_CBORDeserialiseError :: Prism' r DeserialiseFailureInfo Source #
_RemainderError :: Prism' r ByteString Source #
_LedgerLanguageNotAvailableError :: Prism' r (PlutusLedgerLanguage, MajorProtocolVersion, MajorProtocolVersion) Source #
_PlutusCoreLanguageNotAvailableError :: Prism' r (Version, PlutusLedgerLanguage, MajorProtocolVersion) Source #
Instances
| AsScriptDecodeError EvaluationError Source # | |
Defined in PlutusLedgerApi.Common.Eval Methods _ScriptDecodeError :: Prism' EvaluationError ScriptDecodeError Source # _CBORDeserialiseError :: Prism' EvaluationError DeserialiseFailureInfo Source # _RemainderError :: Prism' EvaluationError ByteString Source # _LedgerLanguageNotAvailableError :: Prism' EvaluationError (PlutusLedgerLanguage, MajorProtocolVersion, MajorProtocolVersion) Source # _PlutusCoreLanguageNotAvailableError :: Prism' EvaluationError (Version, PlutusLedgerLanguage, MajorProtocolVersion) Source # | |
| AsScriptDecodeError ScriptDecodeError Source # | |
Defined in PlutusLedgerApi.Common.SerialisedScript Methods _ScriptDecodeError :: Prism' ScriptDecodeError ScriptDecodeError Source # _CBORDeserialiseError :: Prism' ScriptDecodeError DeserialiseFailureInfo Source # _RemainderError :: Prism' ScriptDecodeError ByteString Source # _LedgerLanguageNotAvailableError :: Prism' ScriptDecodeError (PlutusLedgerLanguage, MajorProtocolVersion, MajorProtocolVersion) Source # _PlutusCoreLanguageNotAvailableError :: Prism' ScriptDecodeError (Version, PlutusLedgerLanguage, MajorProtocolVersion) Source # | |
type LogOutput = [Text] Source #
The type of the executed script's accumulated log output: a list of Text.
It will be an empty list if the VerboseMode is set to Quiet.
data VerboseMode Source #
A simple toggle indicating whether or not we should accumulate logs during script execution.
Instances
| Eq VerboseMode Source # | |
Defined in PlutusLedgerApi.Common.Eval Methods (==) :: VerboseMode -> VerboseMode -> Bool Source # (/=) :: VerboseMode -> VerboseMode -> Bool Source # | |
evaluateTerm :: ExBudgetMode cost DefaultUni DefaultFun -> MajorProtocolVersion -> VerboseMode -> EvaluationContext -> Term NamedDeBruijn DefaultUni DefaultFun () -> CekReport cost NamedDeBruijn DefaultUni DefaultFun Source #
Evaluate a fully-applied term using the CEK machine. Useful for mimicking the behaviour of the on-chain evaluator.
mkDynEvaluationContext :: MonadError CostModelApplyError m => PlutusLedgerLanguage -> (MajorProtocolVersion -> CaserBuiltin DefaultUni) -> [BuiltinSemanticsVariant DefaultFun] -> (MajorProtocolVersion -> BuiltinSemanticsVariant DefaultFun) -> CostModelParams -> m EvaluationContext Source #
Create an EvaluationContext given all builtin semantics variants supported by the provided
language version.
The input is a Map of Texts to cost integer values (aka CostModelParams, CostModel)
See Note [Inlining meanings of builtins].
IMPORTANT: the toSemVar argument computes the semantics variant for each MajorProtocolVersion
and it must only return semantics variants from the semVars list, as well as cover ANY
MajorProtocolVersion, including those that do not exist yet (i.e. toSemVar must never fail).
IMPORTANT: The evaluation context of every Plutus version must be recreated upon a protocol update with the updated cost model parameters.
toMachineParameters :: MajorProtocolVersion -> EvaluationContext -> DefaultMachineParameters Source #
Arguments
| :: MonadError EvaluationError m | |
| => PlutusLedgerLanguage | the Plutus ledger language of the script under execution. |
| -> MajorProtocolVersion | which major protocol version to run the operation in |
| -> ScriptForEvaluation | the script to evaluate |
| -> [Data] | the arguments that the script's underlying term will be applied to |
| -> m (Term NamedDeBruijn DefaultUni DefaultFun ()) |
Shared helper for the evaluation functions: evaluateScriptCounting and evaluateScriptRestricting,
Given a ScriptForEvaluation:
1) applies the term to a list of Data arguments (e.g. Datum, Redeemer, ScriptContext)
2) checks that the applied-term is well-scoped
3) returns the applied-term
assertWellFormedCostModelParams :: MonadError CostModelApplyError m => CostModelParams -> m () Source #
Evaluation context
Arguments
| :: (MonadError CostModelApplyError m, MonadWriter [CostModelApplyWarn] m) | |
| => [Int64] | the (updated) cost model parameters of the protocol |
| -> m EvaluationContext |
Build the EvaluationContext.
The input is a list of cost model parameters (which are integer values) passed from the ledger.
IMPORTANT: the cost model parameters MUST appear in the correct order,
matching the names in ParamName. If the parameters are
supplied in the wrong order then script cost calculations will be incorrect.
IMPORTANT: The evaluation context of every Plutus version must be recreated upon a protocol update with the updated cost model parameters.
type CostModelParams = Map Text Int64 #
data CostModelApplyError #
Constructors
| CMUnknownParamError !Text | |
| CMInternalReadError | |
| CMInternalWriteError !String |
Instances
| Data CostModelApplyError | |||||
Defined in PlutusCore.Evaluation.Machine.CostModelInterface Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CostModelApplyError -> c CostModelApplyError Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CostModelApplyError Source # toConstr :: CostModelApplyError -> Constr Source # dataTypeOf :: CostModelApplyError -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CostModelApplyError) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CostModelApplyError) Source # gmapT :: (forall b. Data b => b -> b) -> CostModelApplyError -> CostModelApplyError Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CostModelApplyError -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CostModelApplyError -> r Source # gmapQ :: (forall d. Data d => d -> u) -> CostModelApplyError -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> CostModelApplyError -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> CostModelApplyError -> m CostModelApplyError Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CostModelApplyError -> m CostModelApplyError Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CostModelApplyError -> m CostModelApplyError Source # | |||||
| Exception CostModelApplyError | |||||
| Generic CostModelApplyError | |||||
Defined in PlutusCore.Evaluation.Machine.CostModelInterface Associated Types
Methods from :: CostModelApplyError -> Rep CostModelApplyError x Source # to :: Rep CostModelApplyError x -> CostModelApplyError Source # | |||||
| Show CostModelApplyError | |||||
| NFData CostModelApplyError | |||||
Defined in PlutusCore.Evaluation.Machine.CostModelInterface Methods rnf :: CostModelApplyError -> () Source # | |||||
| Eq CostModelApplyError | |||||
Defined in PlutusCore.Evaluation.Machine.CostModelInterface Methods (==) :: CostModelApplyError -> CostModelApplyError -> Bool Source # (/=) :: CostModelApplyError -> CostModelApplyError -> Bool Source # | |||||
| NoThunks CostModelApplyError | |||||
Defined in PlutusCore.Evaluation.Machine.CostModelInterface Methods noThunks :: Context -> CostModelApplyError -> IO (Maybe ThunkInfo) wNoThunks :: Context -> CostModelApplyError -> IO (Maybe ThunkInfo) | |||||
| Pretty CostModelApplyError | |||||
| type Rep CostModelApplyError | |||||
Defined in PlutusCore.Evaluation.Machine.CostModelInterface type Rep CostModelApplyError = D1 ('MetaData "CostModelApplyError" "PlutusCore.Evaluation.Machine.CostModelInterface" "plutus-core-1.60.0.0-LXFqBsoUlXsJIEqLytHte7" 'False) (C1 ('MetaCons "CMUnknownParamError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text)) :+: (C1 ('MetaCons "CMInternalReadError" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CMInternalWriteError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 String)))) | |||||
Script Context
A pending transaction. This is the view as seen by validator scripts, so some details are stripped out.
Constructors
| TxInfo | |
Fields
| |
Instances
| Generic TxInfo Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts Associated Types
| |||||
| Show TxInfo Source # | |||||
| Eq TxInfo Source # | |||||
| HasBlueprintDefinition TxInfo Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts Associated Types
Methods definitionId :: DefinitionId | |||||
| Eq TxInfo Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts | |||||
| FromData TxInfo Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts Methods fromBuiltinData :: BuiltinData -> Maybe TxInfo # | |||||
| ToData TxInfo Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts Methods toBuiltinData :: TxInfo -> BuiltinData # | |||||
| UnsafeFromData TxInfo Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts Methods | |||||
| Pretty TxInfo Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts | |||||
| (HasSchemaDefinition [TxInInfo] referencedTypes, HasSchemaDefinition [TxOut] referencedTypes, HasSchemaDefinition Value referencedTypes, HasSchemaDefinition [DCert] referencedTypes, HasSchemaDefinition [(StakingCredential, Integer)] referencedTypes, HasSchemaDefinition POSIXTimeRange referencedTypes, HasSchemaDefinition [PubKeyHash] referencedTypes, HasSchemaDefinition [(DatumHash, Datum)] referencedTypes, HasSchemaDefinition TxId referencedTypes) => HasBlueprintSchema TxInfo referencedTypes Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts Methods schema :: Schema referencedTypes | |||||
| Lift DefaultUni TxInfo Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts | |||||
| Typeable DefaultUni TxInfo Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts | |||||
| type Rep TxInfo Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts type Rep TxInfo = D1 ('MetaData "TxInfo" "PlutusLedgerApi.V1.Contexts" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'False) (C1 ('MetaCons "TxInfo" 'PrefixI 'True) (((S1 ('MetaSel ('Just "txInfoInputs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [TxInInfo]) :*: S1 ('MetaSel ('Just "txInfoOutputs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [TxOut])) :*: (S1 ('MetaSel ('Just "txInfoFee") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Value) :*: (S1 ('MetaSel ('Just "txInfoMint") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Value) :*: S1 ('MetaSel ('Just "txInfoDCert") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [DCert])))) :*: ((S1 ('MetaSel ('Just "txInfoWdrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [(StakingCredential, Integer)]) :*: S1 ('MetaSel ('Just "txInfoValidRange") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 POSIXTimeRange)) :*: (S1 ('MetaSel ('Just "txInfoSignatories") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [PubKeyHash]) :*: (S1 ('MetaSel ('Just "txInfoData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [(DatumHash, Datum)]) :*: S1 ('MetaSel ('Just "txInfoId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TxId)))))) | |||||
| type Unroll TxInfo Source # | |||||
data ScriptContext Source #
The context that the currently-executing script can access.
Constructors
| ScriptContext | |
Fields
| |
Instances
| Generic ScriptContext Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts Associated Types
Methods from :: ScriptContext -> Rep ScriptContext x Source # to :: Rep ScriptContext x -> ScriptContext Source # | |||||
| Show ScriptContext Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts | |||||
| Eq ScriptContext Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts Methods (==) :: ScriptContext -> ScriptContext -> Bool Source # (/=) :: ScriptContext -> ScriptContext -> Bool Source # | |||||
| Eq ScriptContext Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts Methods (==) :: ScriptContext -> ScriptContext -> Bool | |||||
| FromData ScriptContext Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts Methods | |||||
| ToData ScriptContext Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts Methods | |||||
| UnsafeFromData ScriptContext Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts Methods | |||||
| Pretty ScriptContext Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts | |||||
| (HasSchemaDefinition TxInfo referencedTypes, HasSchemaDefinition ScriptPurpose referencedTypes) => HasBlueprintSchema ScriptContext referencedTypes Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts Methods schema :: Schema referencedTypes | |||||
| Lift DefaultUni ScriptContext Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts Methods lift :: ScriptContext -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ()) | |||||
| Typeable DefaultUni ScriptContext Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts Methods typeRep :: Proxy ScriptContext -> RTCompile DefaultUni fun (Type TyName DefaultUni ()) | |||||
| type Rep ScriptContext Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts type Rep ScriptContext = D1 ('MetaData "ScriptContext" "PlutusLedgerApi.V1.Contexts" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" '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 Source #
Purpose of the script that is currently running
Instances
| Generic ScriptPurpose Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts Associated Types
Methods from :: ScriptPurpose -> Rep ScriptPurpose x Source # to :: Rep ScriptPurpose x -> ScriptPurpose Source # | |||||
| Show ScriptPurpose Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts | |||||
| Eq ScriptPurpose Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts Methods (==) :: ScriptPurpose -> ScriptPurpose -> Bool Source # (/=) :: ScriptPurpose -> ScriptPurpose -> Bool Source # | |||||
| Ord ScriptPurpose Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts Methods compare :: ScriptPurpose -> ScriptPurpose -> Ordering Source # (<) :: ScriptPurpose -> ScriptPurpose -> Bool Source # (<=) :: ScriptPurpose -> ScriptPurpose -> Bool Source # (>) :: ScriptPurpose -> ScriptPurpose -> Bool Source # (>=) :: ScriptPurpose -> ScriptPurpose -> Bool Source # max :: ScriptPurpose -> ScriptPurpose -> ScriptPurpose Source # min :: ScriptPurpose -> ScriptPurpose -> ScriptPurpose Source # | |||||
| HasBlueprintDefinition ScriptPurpose Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts Associated Types
Methods definitionId :: DefinitionId | |||||
| Eq ScriptPurpose Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts Methods (==) :: ScriptPurpose -> ScriptPurpose -> Bool | |||||
| FromData ScriptPurpose Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts Methods | |||||
| ToData ScriptPurpose Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts Methods | |||||
| UnsafeFromData ScriptPurpose Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts Methods | |||||
| Pretty ScriptPurpose Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts | |||||
| (HasSchemaDefinition CurrencySymbol referencedTypes, HasSchemaDefinition TxOutRef referencedTypes, HasSchemaDefinition StakingCredential referencedTypes, HasSchemaDefinition DCert referencedTypes) => HasBlueprintSchema ScriptPurpose referencedTypes Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts Methods schema :: Schema referencedTypes | |||||
| Lift DefaultUni ScriptPurpose Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts Methods lift :: ScriptPurpose -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ()) | |||||
| Typeable DefaultUni ScriptPurpose Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts Methods typeRep :: Proxy ScriptPurpose -> RTCompile DefaultUni fun (Type TyName DefaultUni ()) | |||||
| type Rep ScriptPurpose Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts type Rep ScriptPurpose = D1 ('MetaData "ScriptPurpose" "PlutusLedgerApi.V1.Contexts" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" '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)))) | |||||
| type Unroll ScriptPurpose Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts type Unroll ScriptPurpose = Insert ScriptPurpose (GUnroll (IfStuckRep (RepIsStuckError ScriptPurpose :: Type -> Type) (Rep ScriptPurpose))) | |||||
A transaction ID, i.e. the hash of a transaction. Hashed with BLAKE2b-256. 32 byte.
This is a simple type without any validation, use with caution. You may want to add checks for its invariants. See the Shelley ledger specification.
Constructors
| TxId | |
Fields | |
Instances
| IsString TxId Source # | from hex encoding | ||||
Defined in PlutusLedgerApi.V1.Tx Methods fromString :: String -> TxId Source # | |||||
| Generic TxId Source # | |||||
Defined in PlutusLedgerApi.V1.Tx Associated Types
| |||||
| Show TxId Source # | using hex encoding | ||||
| NFData TxId Source # | |||||
Defined in PlutusLedgerApi.V1.Tx | |||||
| Eq TxId Source # | |||||
| Ord TxId Source # | |||||
Defined in PlutusLedgerApi.V1.Tx | |||||
| HasBlueprintDefinition TxId Source # | |||||
Defined in PlutusLedgerApi.V1.Tx Associated Types
Methods definitionId :: DefinitionId | |||||
| Eq TxId Source # | |||||
Defined in PlutusLedgerApi.V1.Tx | |||||
| FromData TxId Source # | |||||
Defined in PlutusLedgerApi.V1.Tx Methods fromBuiltinData :: BuiltinData -> Maybe TxId # | |||||
| ToData TxId Source # | |||||
Defined in PlutusLedgerApi.V1.Tx Methods toBuiltinData :: TxId -> BuiltinData # | |||||
| UnsafeFromData TxId Source # | |||||
Defined in PlutusLedgerApi.V1.Tx Methods | |||||
| Ord TxId Source # | |||||
| Pretty TxId Source # | using hex encoding | ||||
Defined in PlutusLedgerApi.V1.Tx | |||||
| HasSchemaDefinition BuiltinByteString referencedTypes => HasBlueprintSchema TxId referencedTypes Source # | |||||
Defined in PlutusLedgerApi.V1.Tx Methods schema :: Schema referencedTypes | |||||
| Lift DefaultUni TxId Source # | |||||
Defined in PlutusLedgerApi.V1.Tx | |||||
| Typeable DefaultUni TxId Source # | |||||
Defined in PlutusLedgerApi.V1.Tx | |||||
| type Rep TxId Source # | |||||
Defined in PlutusLedgerApi.V1.Tx type Rep TxId = D1 ('MetaData "TxId" "PlutusLedgerApi.V1.Tx" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'True) (C1 ('MetaCons "TxId" 'PrefixI 'True) (S1 ('MetaSel ('Just "getTxId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinByteString))) | |||||
| type Unroll TxId Source # | |||||
A transaction output, consisting of a target address (Address), a value (Value),
and optionally a datum hash (DatumHash).
Constructors
| TxOut | |
Fields | |
Instances
| Generic TxOut Source # | |||||
Defined in PlutusLedgerApi.V1.Tx Associated Types
| |||||
| Show TxOut Source # | |||||
| NFData TxOut Source # | |||||
Defined in PlutusLedgerApi.V1.Tx | |||||
| Eq TxOut Source # | |||||
| HasBlueprintDefinition TxOut Source # | |||||
Defined in PlutusLedgerApi.V1.Tx Associated Types
Methods definitionId :: DefinitionId | |||||
| Eq TxOut Source # | |||||
Defined in PlutusLedgerApi.V1.Tx | |||||
| FromData TxOut Source # | |||||
Defined in PlutusLedgerApi.V1.Tx Methods fromBuiltinData :: BuiltinData -> Maybe TxOut # | |||||
| ToData TxOut Source # | |||||
Defined in PlutusLedgerApi.V1.Tx Methods toBuiltinData :: TxOut -> BuiltinData # | |||||
| UnsafeFromData TxOut Source # | |||||
Defined in PlutusLedgerApi.V1.Tx Methods | |||||
| Pretty TxOut Source # | |||||
Defined in PlutusLedgerApi.V1.Tx | |||||
| (HasSchemaDefinition Address referencedTypes, HasSchemaDefinition Value referencedTypes, HasSchemaDefinition (Maybe DatumHash) referencedTypes) => HasBlueprintSchema TxOut referencedTypes Source # | |||||
Defined in PlutusLedgerApi.V1.Tx Methods schema :: Schema referencedTypes | |||||
| Lift DefaultUni TxOut Source # | |||||
Defined in PlutusLedgerApi.V1.Tx | |||||
| Typeable DefaultUni TxOut Source # | |||||
Defined in PlutusLedgerApi.V1.Tx | |||||
| type Rep TxOut Source # | |||||
Defined in PlutusLedgerApi.V1.Tx type Rep TxOut = D1 ('MetaData "TxOut" "PlutusLedgerApi.V1.Tx" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'False) (C1 ('MetaCons "TxOut" 'PrefixI 'True) (S1 ('MetaSel ('Just "txOutAddress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Address) :*: (S1 ('MetaSel ('Just "txOutValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Value) :*: S1 ('MetaSel ('Just "txOutDatumHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe DatumHash))))) | |||||
| type Unroll TxOut Source # | |||||
A reference to a transaction output. This is a
pair of a transaction ID (TxId), and an index indicating which of the outputs
of that transaction we are referring to.
Constructors
| TxOutRef | |
Fields
| |
Instances
| Generic TxOutRef Source # | |||||
Defined in PlutusLedgerApi.V1.Tx Associated Types
| |||||
| Show TxOutRef Source # | |||||
| NFData TxOutRef Source # | |||||
Defined in PlutusLedgerApi.V1.Tx | |||||
| Eq TxOutRef Source # | |||||
| Ord TxOutRef Source # | |||||
Defined in PlutusLedgerApi.V1.Tx | |||||
| HasBlueprintDefinition TxOutRef Source # | |||||
Defined in PlutusLedgerApi.V1.Tx Associated Types
Methods definitionId :: DefinitionId | |||||
| Eq TxOutRef Source # | |||||
Defined in PlutusLedgerApi.V1.Tx | |||||
| FromData TxOutRef Source # | |||||
Defined in PlutusLedgerApi.V1.Tx Methods fromBuiltinData :: BuiltinData -> Maybe TxOutRef # | |||||
| ToData TxOutRef Source # | |||||
Defined in PlutusLedgerApi.V1.Tx Methods toBuiltinData :: TxOutRef -> BuiltinData # | |||||
| UnsafeFromData TxOutRef Source # | |||||
Defined in PlutusLedgerApi.V1.Tx Methods | |||||
| Pretty TxOutRef Source # | |||||
Defined in PlutusLedgerApi.V1.Tx | |||||
| (HasSchemaDefinition TxId referencedTypes, HasSchemaDefinition Integer referencedTypes) => HasBlueprintSchema TxOutRef referencedTypes Source # | |||||
Defined in PlutusLedgerApi.V1.Tx Methods schema :: Schema referencedTypes | |||||
| Lift DefaultUni TxOutRef Source # | |||||
Defined in PlutusLedgerApi.V1.Tx | |||||
| Typeable DefaultUni TxOutRef Source # | |||||
Defined in PlutusLedgerApi.V1.Tx | |||||
| type Rep TxOutRef Source # | |||||
Defined in PlutusLedgerApi.V1.Tx type Rep TxOutRef = D1 ('MetaData "TxOutRef" "PlutusLedgerApi.V1.Tx" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'False) (C1 ('MetaCons "TxOutRef" 'PrefixI 'True) (S1 ('MetaSel ('Just "txOutRefId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TxId) :*: S1 ('MetaSel ('Just "txOutRefIdx") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer))) | |||||
| type Unroll TxOutRef Source # | |||||
An input of a pending transaction.
Constructors
| TxInInfo | |
Fields | |
Instances
| Generic TxInInfo Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts Associated Types
| |||||
| Show TxInInfo Source # | |||||
| Eq TxInInfo Source # | |||||
| HasBlueprintDefinition TxInInfo Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts Associated Types
Methods definitionId :: DefinitionId | |||||
| Eq TxInInfo Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts | |||||
| FromData TxInInfo Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts Methods fromBuiltinData :: BuiltinData -> Maybe TxInInfo # | |||||
| ToData TxInInfo Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts Methods toBuiltinData :: TxInInfo -> BuiltinData # | |||||
| UnsafeFromData TxInInfo Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts Methods | |||||
| Pretty TxInInfo Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts | |||||
| (HasSchemaDefinition TxOutRef referencedTypes, HasSchemaDefinition TxOut referencedTypes) => HasBlueprintSchema TxInInfo referencedTypes Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts Methods schema :: Schema referencedTypes | |||||
| Lift DefaultUni TxInInfo Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts | |||||
| Typeable DefaultUni TxInInfo Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts | |||||
| type Rep TxInInfo Source # | |||||
Defined in PlutusLedgerApi.V1.Contexts type Rep TxInInfo = D1 ('MetaData "TxInInfo" "PlutusLedgerApi.V1.Contexts" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'False) (C1 ('MetaCons "TxInInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "txInInfoOutRef") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TxOutRef) :*: S1 ('MetaSel ('Just "txInInfoResolved") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TxOut))) | |||||
| type Unroll TxInInfo Source # | |||||
findOwnInput :: ScriptContext -> Maybe TxInInfo Source #
Find the input currently being validated.
findDatum :: DatumHash -> TxInfo -> Maybe Datum Source #
Find the data corresponding to a data hash, if there is one
findDatumHash :: Datum -> TxInfo -> Maybe DatumHash Source #
Find the hash of a datum, if it is part of the pending transaction's hashes
findContinuingOutputs :: ScriptContext -> [Integer] Source #
Finds all the outputs that pay to the same script address that we are currently spending from, if any.
getContinuingOutputs :: ScriptContext -> [TxOut] Source #
Get all the outputs that pay to the same script address we are currently spending from, if any.
pubKeyOutputsAt :: PubKeyHash -> TxInfo -> [Value] Source #
Get the values paid to a public key address by a pending transaction.
valuePaidTo :: TxInfo -> PubKeyHash -> Value Source #
Get the total value paid to a public key address by a pending transaction.
spendsOutput :: TxInfo -> TxId -> Integer -> Bool Source #
Check if the pending transaction spends a specific transaction output (identified by the hash of a transaction and an index into that transactions' outputs)
txSignedBy :: TxInfo -> PubKeyHash -> Bool Source #
Check if a transaction was signed by the given public key.
valueSpent :: TxInfo -> Value Source #
Get the total value of inputs spent by this transaction.
valueProduced :: TxInfo -> Value Source #
Get the total value of outputs produced by this transaction.
ownCurrencySymbol :: ScriptContext -> CurrencySymbol Source #
The CurrencySymbol of the current validator script.
Builtins
data BuiltinByteString #
Instances
| Data BuiltinByteString | |||||
Defined in PlutusTx.Builtins.Internal Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> BuiltinByteString -> c BuiltinByteString Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c BuiltinByteString Source # toConstr :: BuiltinByteString -> Constr Source # dataTypeOf :: BuiltinByteString -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c BuiltinByteString) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c BuiltinByteString) Source # gmapT :: (forall b. Data b => b -> b) -> BuiltinByteString -> BuiltinByteString Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> BuiltinByteString -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> BuiltinByteString -> r Source # gmapQ :: (forall d. Data d => d -> u) -> BuiltinByteString -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> BuiltinByteString -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> BuiltinByteString -> m BuiltinByteString Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> BuiltinByteString -> m BuiltinByteString Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> BuiltinByteString -> m BuiltinByteString Source # | |||||
| Monoid BuiltinByteString | |||||
Defined in PlutusTx.Builtins.Internal Methods mempty :: BuiltinByteString Source # mappend :: BuiltinByteString -> BuiltinByteString -> BuiltinByteString Source # mconcat :: [BuiltinByteString] -> BuiltinByteString Source # | |||||
| Semigroup BuiltinByteString | |||||
Defined in PlutusTx.Builtins.Internal Methods (<>) :: BuiltinByteString -> BuiltinByteString -> BuiltinByteString Source # sconcat :: NonEmpty BuiltinByteString -> BuiltinByteString Source # stimes :: Integral b => b -> BuiltinByteString -> BuiltinByteString Source # | |||||
| Show BuiltinByteString | |||||
Defined in PlutusTx.Builtins.Internal | |||||
| NFData BuiltinByteString | |||||
Defined in PlutusTx.Builtins.Internal Methods rnf :: BuiltinByteString -> () Source # | |||||
| Eq BuiltinByteString | |||||
Defined in PlutusTx.Builtins.Internal Methods (==) :: BuiltinByteString -> BuiltinByteString -> Bool Source # (/=) :: BuiltinByteString -> BuiltinByteString -> Bool Source # | |||||
| Ord BuiltinByteString | |||||
Defined in PlutusTx.Builtins.Internal Methods compare :: BuiltinByteString -> BuiltinByteString -> Ordering Source # (<) :: BuiltinByteString -> BuiltinByteString -> Bool Source # (<=) :: BuiltinByteString -> BuiltinByteString -> Bool Source # (>) :: BuiltinByteString -> BuiltinByteString -> Bool Source # (>=) :: BuiltinByteString -> BuiltinByteString -> Bool Source # max :: BuiltinByteString -> BuiltinByteString -> BuiltinByteString Source # min :: BuiltinByteString -> BuiltinByteString -> BuiltinByteString Source # | |||||
| Hashable BuiltinByteString | |||||
Defined in PlutusTx.Builtins.Internal | |||||
| ByteArray BuiltinByteString | |||||
Defined in PlutusTx.Builtins.Internal | |||||
| ByteArrayAccess BuiltinByteString | |||||
Defined in PlutusTx.Builtins.Internal Methods length :: BuiltinByteString -> Int withByteArray :: BuiltinByteString -> (Ptr p -> IO a) -> IO a copyByteArrayToPtr :: BuiltinByteString -> Ptr p -> IO () | |||||
| HasBlueprintDefinition BuiltinByteString | |||||
Defined in PlutusTx.Blueprint.Definition.Unroll Associated Types
Methods definitionId :: DefinitionId | |||||
| HasFromBuiltin BuiltinByteString | |||||
Defined in PlutusTx.Builtins.HasBuiltin Associated Types
Methods fromBuiltin :: BuiltinByteString -> FromBuiltin BuiltinByteString # | |||||
| MkNil BuiltinByteString | |||||
Defined in PlutusTx.Builtins.HasOpaque Methods mkNil :: BuiltinList BuiltinByteString | |||||
| Eq BuiltinByteString | |||||
Defined in PlutusTx.Eq.Class Methods (==) :: BuiltinByteString -> BuiltinByteString -> Bool | |||||
| FromData BuiltinByteString | |||||
Defined in PlutusTx.IsData.Class Methods | |||||
| ToData BuiltinByteString | |||||
Defined in PlutusTx.IsData.Class Methods | |||||
| UnsafeFromData BuiltinByteString | |||||
Defined in PlutusTx.IsData.Class Methods | |||||
| Monoid BuiltinByteString | |||||
Defined in PlutusTx.Monoid Methods | |||||
| Ord BuiltinByteString | |||||
Defined in PlutusTx.Ord.Class Methods compare :: BuiltinByteString -> BuiltinByteString -> Ordering (<) :: BuiltinByteString -> BuiltinByteString -> Bool (<=) :: BuiltinByteString -> BuiltinByteString -> Bool (>) :: BuiltinByteString -> BuiltinByteString -> Bool (>=) :: BuiltinByteString -> BuiltinByteString -> Bool max :: BuiltinByteString -> BuiltinByteString -> BuiltinByteString min :: BuiltinByteString -> BuiltinByteString -> BuiltinByteString | |||||
| Semigroup BuiltinByteString | |||||
Defined in PlutusTx.Semigroup Methods (<>) :: BuiltinByteString -> BuiltinByteString -> BuiltinByteString | |||||
| Pretty BuiltinByteString | |||||
Defined in PlutusTx.Builtins.Internal | |||||
| Serialise BuiltinByteString | |||||
Defined in PlutusTx.Builtins.Internal Methods encode :: BuiltinByteString -> Encoding decode :: Decoder s BuiltinByteString encodeList :: [BuiltinByteString] -> Encoding decodeList :: Decoder s [BuiltinByteString] | |||||
| HasBlueprintSchema BuiltinByteString referencedTypes | |||||
Defined in PlutusTx.Blueprint.Class Methods schema :: Schema referencedTypes | |||||
| HasFromOpaque BuiltinByteString BuiltinByteString | |||||
Defined in PlutusTx.Builtins.HasOpaque Methods | |||||
| HasToOpaque BuiltinByteString BuiltinByteString | |||||
Defined in PlutusTx.Builtins.HasOpaque Methods | |||||
| HasTermLevel uni ByteString => Lift uni BuiltinByteString | |||||
Defined in PlutusTx.Lift.Class Methods lift :: BuiltinByteString -> RTCompile uni fun (Term TyName Name uni fun ()) | |||||
| HasTypeLevel uni ByteString => Typeable uni BuiltinByteString | |||||
Defined in PlutusTx.Lift.Class Methods typeRep :: Proxy BuiltinByteString -> RTCompile uni fun (Type TyName uni ()) | |||||
| type Unroll BuiltinByteString | |||||
Defined in PlutusTx.Blueprint.Definition.Unroll | |||||
| type FromBuiltin BuiltinByteString | |||||
Defined in PlutusTx.Builtins.HasBuiltin | |||||
fromBuiltin :: HasFromBuiltin arep => arep -> FromBuiltin arep #
fromOpaque :: HasFromOpaque arep a => arep -> a #
Bytes
newtype LedgerBytes Source #
Constructors
| LedgerBytes | |
Fields | |
Instances
| IsString LedgerBytes Source # | Read in arbitrary This is mostly used together with GHC's OverloadedStrings extension
to specify at the source code any IMPORTANT: the | ||||
Defined in PlutusLedgerApi.V1.Bytes Methods fromString :: String -> LedgerBytes Source # | |||||
| Generic LedgerBytes Source # | |||||
Defined in PlutusLedgerApi.V1.Bytes Associated Types
Methods from :: LedgerBytes -> Rep LedgerBytes x Source # to :: Rep LedgerBytes x -> LedgerBytes Source # | |||||
| Show LedgerBytes Source # | The | ||||
Defined in PlutusLedgerApi.V1.Bytes | |||||
| NFData LedgerBytes Source # | |||||
Defined in PlutusLedgerApi.V1.Bytes Methods rnf :: LedgerBytes -> () Source # | |||||
| Eq LedgerBytes Source # | |||||
Defined in PlutusLedgerApi.V1.Bytes Methods (==) :: LedgerBytes -> LedgerBytes -> Bool Source # (/=) :: LedgerBytes -> LedgerBytes -> Bool Source # | |||||
| Ord LedgerBytes Source # | |||||
Defined in PlutusLedgerApi.V1.Bytes Methods compare :: LedgerBytes -> LedgerBytes -> Ordering Source # (<) :: LedgerBytes -> LedgerBytes -> Bool Source # (<=) :: LedgerBytes -> LedgerBytes -> Bool Source # (>) :: LedgerBytes -> LedgerBytes -> Bool Source # (>=) :: LedgerBytes -> LedgerBytes -> Bool Source # max :: LedgerBytes -> LedgerBytes -> LedgerBytes Source # min :: LedgerBytes -> LedgerBytes -> LedgerBytes Source # | |||||
| HasBlueprintDefinition LedgerBytes Source # | |||||
Defined in PlutusLedgerApi.V1.Bytes Associated Types
Methods definitionId :: DefinitionId | |||||
| Eq LedgerBytes Source # | |||||
Defined in PlutusLedgerApi.V1.Bytes Methods (==) :: LedgerBytes -> LedgerBytes -> Bool | |||||
| FromData LedgerBytes Source # | |||||
Defined in PlutusLedgerApi.V1.Bytes Methods | |||||
| ToData LedgerBytes Source # | |||||
Defined in PlutusLedgerApi.V1.Bytes Methods toBuiltinData :: LedgerBytes -> BuiltinData # | |||||
| UnsafeFromData LedgerBytes Source # | |||||
Defined in PlutusLedgerApi.V1.Bytes Methods | |||||
| Ord LedgerBytes Source # | |||||
Defined in PlutusLedgerApi.V1.Bytes Methods compare :: LedgerBytes -> LedgerBytes -> Ordering (<) :: LedgerBytes -> LedgerBytes -> Bool (<=) :: LedgerBytes -> LedgerBytes -> Bool (>) :: LedgerBytes -> LedgerBytes -> Bool (>=) :: LedgerBytes -> LedgerBytes -> Bool max :: LedgerBytes -> LedgerBytes -> LedgerBytes min :: LedgerBytes -> LedgerBytes -> LedgerBytes | |||||
| Pretty LedgerBytes Source # | |||||
Defined in PlutusLedgerApi.V1.Bytes | |||||
| HasBlueprintSchema LedgerBytes referencedTypes Source # | |||||
Defined in PlutusLedgerApi.V1.Bytes Methods schema :: Schema referencedTypes | |||||
| Lift DefaultUni LedgerBytes Source # | |||||
Defined in PlutusLedgerApi.V1.Bytes Methods lift :: LedgerBytes -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ()) | |||||
| Typeable DefaultUni LedgerBytes Source # | |||||
Defined in PlutusLedgerApi.V1.Bytes Methods typeRep :: Proxy LedgerBytes -> RTCompile DefaultUni fun (Type TyName DefaultUni ()) | |||||
| type Rep LedgerBytes Source # | |||||
Defined in PlutusLedgerApi.V1.Bytes type Rep LedgerBytes = D1 ('MetaData "LedgerBytes" "PlutusLedgerApi.V1.Bytes" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'True) (C1 ('MetaCons "LedgerBytes" 'PrefixI 'True) (S1 ('MetaSel ('Just "getLedgerBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinByteString))) | |||||
| type Unroll LedgerBytes Source # | |||||
Defined in PlutusLedgerApi.V1.Bytes type Unroll LedgerBytes = Insert LedgerBytes (GUnroll (IfStuckRep (RepIsStuckError LedgerBytes :: Type -> Type) (Rep LedgerBytes))) | |||||
data LedgerBytesError Source #
An error that is encountered when converting a ByteString to a LedgerBytes.
Constructors
| UnpairedDigit | Odd number of bytes in the original bytestring. |
| NotHexit !Char | A non-hex digit character ([^A-Fa-f0-9]) encountered during decoding. |
Instances
| Exception LedgerBytesError Source # | |
Defined in PlutusLedgerApi.V1.Bytes Methods toException :: LedgerBytesError -> SomeException Source # fromException :: SomeException -> Maybe LedgerBytesError Source # | |
| Show LedgerBytesError Source # | |
Defined in PlutusLedgerApi.V1.Bytes | |
fromBytes :: ByteString -> LedgerBytes Source #
Lift a Haskell bytestring to the Plutus abstraction LedgerBytes
fromHex :: ByteString -> Either LedgerBytesError LedgerBytes Source #
Convert a hex-encoded (Base16) ByteString to a LedgerBytes.
May return an error (LedgerBytesError).
bytes :: LedgerBytes -> ByteString Source #
Extract the Haskell bytestring from inside the Plutus opaque LedgerBytes.
encodeByteString :: ByteString -> Text Source #
Encode a ByteString value to Base16 (i.e. hexadecimal), then
decode with UTF-8 to a Text.
Certificates
A representation of the ledger DCert. Some information is digested, and not included
Constructors
| DCertDelegRegKey StakingCredential | |
| DCertDelegDeRegKey StakingCredential | |
| DCertDelegDelegate | |
Fields
| |
| DCertPoolRegister | A digest of the PoolParams |
Fields
| |
| DCertPoolRetire PubKeyHash Integer | The retirement certificate and the Epoch in which the retirement will take place |
| DCertGenesis | A really terse Digest |
| DCertMir | Another really terse Digest |
Instances
| Generic DCert Source # | |||||
Defined in PlutusLedgerApi.V1.DCert Associated Types
| |||||
| Show DCert Source # | |||||
| NFData DCert Source # | |||||
Defined in PlutusLedgerApi.V1.DCert | |||||
| Eq DCert Source # | |||||
| Ord DCert Source # | |||||
Defined in PlutusLedgerApi.V1.DCert | |||||
| HasBlueprintDefinition DCert Source # | |||||
Defined in PlutusLedgerApi.V1.DCert Associated Types
Methods definitionId :: DefinitionId | |||||
| Eq DCert Source # | |||||
Defined in PlutusLedgerApi.V1.DCert | |||||
| FromData DCert Source # | |||||
Defined in PlutusLedgerApi.V1.DCert Methods fromBuiltinData :: BuiltinData -> Maybe DCert # | |||||
| ToData DCert Source # | |||||
Defined in PlutusLedgerApi.V1.DCert Methods toBuiltinData :: DCert -> BuiltinData # | |||||
| UnsafeFromData DCert Source # | |||||
Defined in PlutusLedgerApi.V1.DCert Methods | |||||
| Show DCert Source # | |||||
| Pretty DCert Source # | |||||
Defined in PlutusLedgerApi.V1.DCert | |||||
| (HasSchemaDefinition StakingCredential referencedTypes, HasSchemaDefinition PubKeyHash referencedTypes, HasSchemaDefinition Integer referencedTypes) => HasBlueprintSchema DCert referencedTypes Source # | |||||
Defined in PlutusLedgerApi.V1.DCert Methods schema :: Schema referencedTypes | |||||
| Lift DefaultUni DCert Source # | |||||
Defined in PlutusLedgerApi.V1.DCert | |||||
| Typeable DefaultUni DCert Source # | |||||
Defined in PlutusLedgerApi.V1.DCert | |||||
| type Rep DCert Source # | |||||
Defined in PlutusLedgerApi.V1.DCert type Rep DCert = D1 ('MetaData "DCert" "PlutusLedgerApi.V1.DCert" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'False) ((C1 ('MetaCons "DCertDelegRegKey" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 StakingCredential)) :+: (C1 ('MetaCons "DCertDelegDeRegKey" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 StakingCredential)) :+: C1 ('MetaCons "DCertDelegDelegate" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 StakingCredential) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PubKeyHash)))) :+: ((C1 ('MetaCons "DCertPoolRegister" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PubKeyHash) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PubKeyHash)) :+: C1 ('MetaCons "DCertPoolRetire" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PubKeyHash) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer))) :+: (C1 ('MetaCons "DCertGenesis" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DCertMir" 'PrefixI 'False) (U1 :: Type -> Type)))) | |||||
| type Unroll DCert Source # | |||||
Credentials
data StakingCredential Source #
Staking credential used to assign rewards.
Constructors
| StakingHash Credential | The staking hash is the |
| StakingPtr | The certificate pointer, constructed by the given
slot number, transaction and certificate indices.
NB: The fields should really be all |
Instances
| Generic StakingCredential Source # | |||||
Defined in PlutusLedgerApi.V1.Credential Associated Types
Methods from :: StakingCredential -> Rep StakingCredential x Source # to :: Rep StakingCredential x -> StakingCredential Source # | |||||
| Show StakingCredential Source # | |||||
Defined in PlutusLedgerApi.V1.Credential | |||||
| NFData StakingCredential Source # | |||||
Defined in PlutusLedgerApi.V1.Credential Methods rnf :: StakingCredential -> () Source # | |||||
| Eq StakingCredential Source # | |||||
Defined in PlutusLedgerApi.V1.Credential Methods (==) :: StakingCredential -> StakingCredential -> Bool Source # (/=) :: StakingCredential -> StakingCredential -> Bool Source # | |||||
| Ord StakingCredential Source # | |||||
Defined in PlutusLedgerApi.V1.Credential Methods compare :: StakingCredential -> StakingCredential -> Ordering Source # (<) :: StakingCredential -> StakingCredential -> Bool Source # (<=) :: StakingCredential -> StakingCredential -> Bool Source # (>) :: StakingCredential -> StakingCredential -> Bool Source # (>=) :: StakingCredential -> StakingCredential -> Bool Source # max :: StakingCredential -> StakingCredential -> StakingCredential Source # min :: StakingCredential -> StakingCredential -> StakingCredential Source # | |||||
| HasBlueprintDefinition StakingCredential Source # | |||||
Defined in PlutusLedgerApi.V1.Credential Associated Types
Methods definitionId :: DefinitionId | |||||
| Eq StakingCredential Source # | |||||
Defined in PlutusLedgerApi.V1.Credential Methods (==) :: StakingCredential -> StakingCredential -> Bool | |||||
| FromData StakingCredential Source # | |||||
Defined in PlutusLedgerApi.V1.Credential Methods | |||||
| ToData StakingCredential Source # | |||||
Defined in PlutusLedgerApi.V1.Credential Methods | |||||
| UnsafeFromData StakingCredential Source # | |||||
Defined in PlutusLedgerApi.V1.Credential Methods | |||||
| Show StakingCredential Source # | |||||
Defined in PlutusLedgerApi.V1.Credential | |||||
| Pretty StakingCredential Source # | |||||
Defined in PlutusLedgerApi.V1.Credential | |||||
| (HasSchemaDefinition Credential referencedTypes, HasSchemaDefinition Integer referencedTypes) => HasBlueprintSchema StakingCredential referencedTypes Source # | |||||
Defined in PlutusLedgerApi.V1.Credential Methods schema :: Schema referencedTypes | |||||
| Lift DefaultUni StakingCredential Source # | |||||
Defined in PlutusLedgerApi.V1.Credential Methods lift :: StakingCredential -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ()) | |||||
| Typeable DefaultUni StakingCredential Source # | |||||
Defined in PlutusLedgerApi.V1.Credential Methods typeRep :: Proxy StakingCredential -> RTCompile DefaultUni fun (Type TyName DefaultUni ()) | |||||
| type Rep StakingCredential Source # | |||||
Defined in PlutusLedgerApi.V1.Credential type Rep StakingCredential = D1 ('MetaData "StakingCredential" "PlutusLedgerApi.V1.Credential" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'False) (C1 ('MetaCons "StakingHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Credential)) :+: C1 ('MetaCons "StakingPtr" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer)))) | |||||
| type Unroll StakingCredential Source # | |||||
Defined in PlutusLedgerApi.V1.Credential type Unroll StakingCredential = Insert StakingCredential (GUnroll (IfStuckRep (RepIsStuckError StakingCredential :: Type -> Type) (Rep StakingCredential))) | |||||
data Credential Source #
Credentials required to unlock a transaction output.
Constructors
| PubKeyCredential PubKeyHash | The transaction that spends this output must be signed by the private key.
See |
| ScriptCredential ScriptHash | The transaction that spends this output must include the validator script and
be accepted by the validator. See |
Instances
| Generic Credential Source # | |||||
Defined in PlutusLedgerApi.V1.Credential Associated Types
| |||||
| Show Credential Source # | |||||
Defined in PlutusLedgerApi.V1.Credential | |||||
| NFData Credential Source # | |||||
Defined in PlutusLedgerApi.V1.Credential Methods rnf :: Credential -> () Source # | |||||
| Eq Credential Source # | |||||
Defined in PlutusLedgerApi.V1.Credential Methods (==) :: Credential -> Credential -> Bool Source # (/=) :: Credential -> Credential -> Bool Source # | |||||
| Ord Credential Source # | |||||
Defined in PlutusLedgerApi.V1.Credential Methods compare :: Credential -> Credential -> Ordering Source # (<) :: Credential -> Credential -> Bool Source # (<=) :: Credential -> Credential -> Bool Source # (>) :: Credential -> Credential -> Bool Source # (>=) :: Credential -> Credential -> Bool Source # max :: Credential -> Credential -> Credential Source # min :: Credential -> Credential -> Credential Source # | |||||
| HasBlueprintDefinition Credential Source # | |||||
Defined in PlutusLedgerApi.V1.Credential Associated Types
Methods definitionId :: DefinitionId | |||||
| Eq Credential Source # | |||||
Defined in PlutusLedgerApi.V1.Credential Methods (==) :: Credential -> Credential -> Bool | |||||
| FromData Credential Source # | |||||
Defined in PlutusLedgerApi.V1.Credential Methods | |||||
| ToData Credential Source # | |||||
Defined in PlutusLedgerApi.V1.Credential Methods toBuiltinData :: Credential -> BuiltinData # | |||||
| UnsafeFromData Credential Source # | |||||
Defined in PlutusLedgerApi.V1.Credential Methods | |||||
| Show Credential Source # | |||||
Defined in PlutusLedgerApi.V1.Credential | |||||
| Pretty Credential Source # | |||||
Defined in PlutusLedgerApi.V1.Credential | |||||
| (HasSchemaDefinition PubKeyHash referencedTypes, HasSchemaDefinition ScriptHash referencedTypes) => HasBlueprintSchema Credential referencedTypes Source # | |||||
Defined in PlutusLedgerApi.V1.Credential Methods schema :: Schema referencedTypes | |||||
| Lift DefaultUni Credential Source # | |||||
Defined in PlutusLedgerApi.V1.Credential Methods lift :: Credential -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ()) | |||||
| Typeable DefaultUni Credential Source # | |||||
Defined in PlutusLedgerApi.V1.Credential Methods typeRep :: Proxy Credential -> RTCompile DefaultUni fun (Type TyName DefaultUni ()) | |||||
| type Rep Credential Source # | |||||
Defined in PlutusLedgerApi.V1.Credential type Rep Credential = D1 ('MetaData "Credential" "PlutusLedgerApi.V1.Credential" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" '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 ScriptHash))) | |||||
| type Unroll Credential Source # | |||||
Defined in PlutusLedgerApi.V1.Credential type Unroll Credential = Insert Credential (GUnroll (IfStuckRep (RepIsStuckError Credential :: Type -> Type) (Rep Credential))) | |||||
Value
The Value type represents a collection of amounts of different currencies.
We can think of Value as a vector space whose dimensions are currencies.
Operations on currencies are usually implemented pointwise. That is,
we apply the operation to the quantities for each currency in turn. So
when we add two Values the resulting Value has, for each currency,
the sum of the quantities of that particular currency in the argument
Value. The effect of this is that the currencies in the Value are "independent",
and are operated on separately.
Whenever we need to get the quantity of a currency in a Value where there
is no explicit quantity of that currency in the Value, then the quantity is
taken to be zero.
There is no 'Ord Value' instance since Value is only a partial order, so compare can't
do the right thing in some cases.
Instances
| Data Value Source # | |||||
Defined in PlutusLedgerApi.V1.Value Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Value -> c Value Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Value Source # toConstr :: Value -> Constr Source # dataTypeOf :: Value -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Value) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Value) Source # gmapT :: (forall b. Data b => b -> b) -> Value -> Value Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Value -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Value -> r Source # gmapQ :: (forall d. Data d => d -> u) -> Value -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> Value -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Value -> m Value Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Value -> m Value Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Value -> m Value Source # | |||||
| Monoid Value Source # | |||||
| Semigroup Value Source # | |||||
| Generic Value Source # | |||||
Defined in PlutusLedgerApi.V1.Value Associated Types
| |||||
| Show Value Source # | |||||
| NFData Value Source # | |||||
Defined in PlutusLedgerApi.V1.Value | |||||
| Eq Value Source # | |||||
| HasBlueprintDefinition Value Source # | |||||
Defined in PlutusLedgerApi.V1.Value Associated Types
Methods definitionId :: DefinitionId | |||||
| Eq Value Source # | |||||
Defined in PlutusLedgerApi.V1.Value | |||||
| FromData Value Source # | |||||
Defined in PlutusLedgerApi.V1.Value Methods fromBuiltinData :: BuiltinData -> Maybe Value # | |||||
| ToData Value Source # | |||||
Defined in PlutusLedgerApi.V1.Value Methods toBuiltinData :: Value -> BuiltinData # | |||||
| UnsafeFromData Value Source # | |||||
Defined in PlutusLedgerApi.V1.Value Methods | |||||
| JoinSemiLattice Value Source # | |||||
Defined in PlutusLedgerApi.V1.Value | |||||
| MeetSemiLattice Value Source # | |||||
Defined in PlutusLedgerApi.V1.Value | |||||
| Group Value Source # | |||||
Defined in PlutusLedgerApi.V1.Value | |||||
| Monoid Value Source # | |||||
Defined in PlutusLedgerApi.V1.Value | |||||
| AdditiveGroup Value Source # | |||||
Defined in PlutusLedgerApi.V1.Value | |||||
| AdditiveMonoid Value Source # | |||||
Defined in PlutusLedgerApi.V1.Value | |||||
| AdditiveSemigroup Value Source # | |||||
Defined in PlutusLedgerApi.V1.Value | |||||
| Semigroup Value Source # | |||||
Defined in PlutusLedgerApi.V1.Value | |||||
| Pretty Value Source # | |||||
Defined in PlutusLedgerApi.V1.Value | |||||
| HasBlueprintSchema Value referencedTypes Source # | |||||
Defined in PlutusLedgerApi.V1.Value Methods schema :: Schema referencedTypes | |||||
| Lift DefaultUni Value Source # | |||||
Defined in PlutusLedgerApi.V1.Value | |||||
| Module Integer Value Source # | |||||
| Typeable DefaultUni Value Source # | |||||
Defined in PlutusLedgerApi.V1.Value | |||||
| type Rep Value Source # | |||||
Defined in PlutusLedgerApi.V1.Value type Rep Value = D1 ('MetaData "Value" "PlutusLedgerApi.V1.Value" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'True) (C1 ('MetaCons "Value" 'PrefixI 'True) (S1 ('MetaSel ('Just "getValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map CurrencySymbol (Map TokenName Integer))))) | |||||
| type Unroll Value Source # | |||||
Defined in PlutusLedgerApi.V1.Value | |||||
Constructors
| Lovelace | |
Fields | |
Instances
| Enum Lovelace Source # | |||||
Defined in PlutusLedgerApi.V1.Value Methods succ :: Lovelace -> Lovelace Source # pred :: Lovelace -> Lovelace Source # toEnum :: Int -> Lovelace Source # fromEnum :: Lovelace -> Int Source # enumFrom :: Lovelace -> [Lovelace] Source # enumFromThen :: Lovelace -> Lovelace -> [Lovelace] Source # enumFromTo :: Lovelace -> Lovelace -> [Lovelace] Source # enumFromThenTo :: Lovelace -> Lovelace -> Lovelace -> [Lovelace] Source # | |||||
| Generic Lovelace Source # | |||||
Defined in PlutusLedgerApi.V1.Value Associated Types
| |||||
| Num Lovelace Source # | |||||
Defined in PlutusLedgerApi.V1.Value Methods (+) :: Lovelace -> Lovelace -> Lovelace Source # (-) :: Lovelace -> Lovelace -> Lovelace Source # (*) :: Lovelace -> Lovelace -> Lovelace Source # negate :: Lovelace -> Lovelace Source # abs :: Lovelace -> Lovelace Source # signum :: Lovelace -> Lovelace Source # fromInteger :: Integer -> Lovelace Source # | |||||
| Real Lovelace Source # | |||||
Defined in PlutusLedgerApi.V1.Value Methods toRational :: Lovelace -> Rational Source # | |||||
| Show Lovelace Source # | |||||
| Eq Lovelace Source # | |||||
| Ord Lovelace Source # | |||||
Defined in PlutusLedgerApi.V1.Value | |||||
| HasBlueprintDefinition Lovelace Source # | |||||
Defined in PlutusLedgerApi.V1.Value Associated Types
Methods definitionId :: DefinitionId | |||||
| Eq Lovelace Source # | |||||
Defined in PlutusLedgerApi.V1.Value | |||||
| FromData Lovelace Source # | |||||
Defined in PlutusLedgerApi.V1.Value Methods fromBuiltinData :: BuiltinData -> Maybe Lovelace # | |||||
| ToData Lovelace Source # | |||||
Defined in PlutusLedgerApi.V1.Value Methods toBuiltinData :: Lovelace -> BuiltinData # | |||||
| UnsafeFromData Lovelace Source # | |||||
Defined in PlutusLedgerApi.V1.Value Methods | |||||
| AdditiveGroup Lovelace Source # | |||||
Defined in PlutusLedgerApi.V1.Value | |||||
| AdditiveMonoid Lovelace Source # | |||||
Defined in PlutusLedgerApi.V1.Value | |||||
| AdditiveSemigroup Lovelace Source # | |||||
Defined in PlutusLedgerApi.V1.Value | |||||
| Ord Lovelace Source # | |||||
Defined in PlutusLedgerApi.V1.Value | |||||
| Show Lovelace Source # | |||||
| Pretty Lovelace Source # | |||||
Defined in PlutusLedgerApi.V1.Value | |||||
| HasBlueprintSchema Lovelace referencedTypes Source # | |||||
Defined in PlutusLedgerApi.V1.Value Methods schema :: Schema referencedTypes | |||||
| Lift DefaultUni Lovelace Source # | |||||
Defined in PlutusLedgerApi.V1.Value | |||||
| Typeable DefaultUni Lovelace Source # | |||||
Defined in PlutusLedgerApi.V1.Value | |||||
| type Rep Lovelace Source # | |||||
Defined in PlutusLedgerApi.V1.Value | |||||
| type Unroll Lovelace Source # | |||||
currencySymbolValueOf :: Value -> CurrencySymbol -> Integer Source #
Get the total value of the currency symbol in the Value map.
Assumes that the underlying map doesn't contain duplicate keys.
Note that each token of the currency symbol may have a value that is positive, zero or negative.
flattenValue :: Value -> [(CurrencySymbol, TokenName, Integer)] Source #
Convert a Value to a simple list, keeping only the non-zero amounts.
Note that the result isn't sorted, meaning v1 == v2 doesn't generally imply
flattenValue v1 == flattenValue v2. Additionally, the entries in the
result are listed in reverse order of the underlying data of the original ‘Value’.
For instance, the lovelace entry which ordinarily appears first in the ‘Value’
will appear last in the result.
Also assumes that there are no duplicate keys in the Value Map.
singleton :: CurrencySymbol -> TokenName -> Integer -> Value Source #
Make a Value containing only the given quantity of the given currency.
unionWith :: (Integer -> Integer -> Integer) -> Value -> Value -> Value Source #
Combine two Value maps with the argument function.
Assumes the well-definedness of the two maps.
valueOf :: Value -> CurrencySymbol -> TokenName -> Integer Source #
Get the quantity of the given currency in the Value.
Assumes that the underlying map doesn't contain duplicate keys.
Currency symbols
newtype CurrencySymbol Source #
ByteString representing the currency, hashed with BLAKE2b-224.
It is empty for Ada, 28 bytes for MintingPolicyHash.
Forms an AssetClass along with TokenName.
A Value is a map from CurrencySymbol's to a map from TokenName to an Integer.
This is a simple type without any validation, use with caution. You may want to add checks for its invariants. See the Shelley ledger specification.
Constructors
| CurrencySymbol | |
Fields | |
Instances
| Data CurrencySymbol Source # | |||||
Defined in PlutusLedgerApi.V1.Value Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CurrencySymbol -> c CurrencySymbol Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CurrencySymbol Source # toConstr :: CurrencySymbol -> Constr Source # dataTypeOf :: CurrencySymbol -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CurrencySymbol) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CurrencySymbol) Source # gmapT :: (forall b. Data b => b -> b) -> CurrencySymbol -> CurrencySymbol Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CurrencySymbol -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CurrencySymbol -> r Source # gmapQ :: (forall d. Data d => d -> u) -> CurrencySymbol -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> CurrencySymbol -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> CurrencySymbol -> m CurrencySymbol Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CurrencySymbol -> m CurrencySymbol Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CurrencySymbol -> m CurrencySymbol Source # | |||||
| Generic CurrencySymbol Source # | |||||
Defined in PlutusLedgerApi.V1.Value Associated Types
Methods from :: CurrencySymbol -> Rep CurrencySymbol x Source # to :: Rep CurrencySymbol x -> CurrencySymbol Source # | |||||
| Show CurrencySymbol Source # | using hex encoding | ||||
Defined in PlutusLedgerApi.V1.Value | |||||
| NFData CurrencySymbol Source # | |||||
Defined in PlutusLedgerApi.V1.Value Methods rnf :: CurrencySymbol -> () Source # | |||||
| Eq CurrencySymbol Source # | |||||
Defined in PlutusLedgerApi.V1.Value Methods (==) :: CurrencySymbol -> CurrencySymbol -> Bool Source # (/=) :: CurrencySymbol -> CurrencySymbol -> Bool Source # | |||||
| Ord CurrencySymbol Source # | |||||
Defined in PlutusLedgerApi.V1.Value Methods compare :: CurrencySymbol -> CurrencySymbol -> Ordering Source # (<) :: CurrencySymbol -> CurrencySymbol -> Bool Source # (<=) :: CurrencySymbol -> CurrencySymbol -> Bool Source # (>) :: CurrencySymbol -> CurrencySymbol -> Bool Source # (>=) :: CurrencySymbol -> CurrencySymbol -> Bool Source # max :: CurrencySymbol -> CurrencySymbol -> CurrencySymbol Source # min :: CurrencySymbol -> CurrencySymbol -> CurrencySymbol Source # | |||||
| HasBlueprintDefinition CurrencySymbol Source # | |||||
Defined in PlutusLedgerApi.V1.Value Associated Types
Methods definitionId :: DefinitionId | |||||
| Eq CurrencySymbol Source # | |||||
Defined in PlutusLedgerApi.V1.Value Methods (==) :: CurrencySymbol -> CurrencySymbol -> Bool | |||||
| FromData CurrencySymbol Source # | |||||
Defined in PlutusLedgerApi.V1.Value Methods | |||||
| ToData CurrencySymbol Source # | |||||
Defined in PlutusLedgerApi.V1.Value Methods | |||||
| UnsafeFromData CurrencySymbol Source # | |||||
Defined in PlutusLedgerApi.V1.Value Methods | |||||
| Ord CurrencySymbol Source # | |||||
Defined in PlutusLedgerApi.V1.Value Methods compare :: CurrencySymbol -> CurrencySymbol -> Ordering (<) :: CurrencySymbol -> CurrencySymbol -> Bool (<=) :: CurrencySymbol -> CurrencySymbol -> Bool (>) :: CurrencySymbol -> CurrencySymbol -> Bool (>=) :: CurrencySymbol -> CurrencySymbol -> Bool max :: CurrencySymbol -> CurrencySymbol -> CurrencySymbol min :: CurrencySymbol -> CurrencySymbol -> CurrencySymbol | |||||
| Pretty CurrencySymbol Source # | using hex encoding | ||||
Defined in PlutusLedgerApi.V1.Value | |||||
| HasBlueprintSchema CurrencySymbol referencedTypes Source # | |||||
Defined in PlutusLedgerApi.V1.Value Methods schema :: Schema referencedTypes | |||||
| Lift DefaultUni CurrencySymbol Source # | |||||
Defined in PlutusLedgerApi.V1.Value Methods lift :: CurrencySymbol -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ()) | |||||
| Typeable DefaultUni CurrencySymbol Source # | |||||
Defined in PlutusLedgerApi.V1.Value Methods typeRep :: Proxy CurrencySymbol -> RTCompile DefaultUni fun (Type TyName DefaultUni ()) | |||||
| type Rep CurrencySymbol Source # | |||||
Defined in PlutusLedgerApi.V1.Value type Rep CurrencySymbol = D1 ('MetaData "CurrencySymbol" "PlutusLedgerApi.V1.Value" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'True) (C1 ('MetaCons "CurrencySymbol" 'PrefixI 'True) (S1 ('MetaSel ('Just "unCurrencySymbol") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinByteString))) | |||||
| type Unroll CurrencySymbol Source # | |||||
Defined in PlutusLedgerApi.V1.Value type Unroll CurrencySymbol = Insert CurrencySymbol (GUnroll (IfStuckRep (RepIsStuckError CurrencySymbol :: Type -> Type) (Rep CurrencySymbol))) | |||||
currencySymbol :: ByteString -> CurrencySymbol Source #
Creates CurrencySymbol from raw ByteString.
adaSymbol :: CurrencySymbol Source #
The CurrencySymbol of the Ada currency.
symbols :: Value -> [CurrencySymbol] Source #
The list of CurrencySymbols of a Value.
Token names
ByteString of a name of a token.
Shown as hex-encoded bytes.
Should be no longer than 32 bytes, empty for Ada.
Forms an AssetClass along with a CurrencySymbol.
This is a simple type without any validation, use with caution. You may want to add checks for its invariants. See the Shelley ledger specification.
Constructors
| TokenName | |
Fields | |
Instances
| Data TokenName Source # | |||||
Defined in PlutusLedgerApi.V1.Value Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TokenName -> c TokenName Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TokenName Source # toConstr :: TokenName -> Constr Source # dataTypeOf :: TokenName -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c TokenName) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TokenName) Source # gmapT :: (forall b. Data b => b -> b) -> TokenName -> TokenName Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TokenName -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TokenName -> r Source # gmapQ :: (forall d. Data d => d -> u) -> TokenName -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> TokenName -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> TokenName -> m TokenName Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TokenName -> m TokenName Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TokenName -> m TokenName Source # | |||||
| Generic TokenName Source # | |||||
Defined in PlutusLedgerApi.V1.Value Associated Types
| |||||
| Show TokenName Source # | |||||
| NFData TokenName Source # | |||||
Defined in PlutusLedgerApi.V1.Value | |||||
| Eq TokenName Source # | |||||
| Ord TokenName Source # | |||||
Defined in PlutusLedgerApi.V1.Value | |||||
| HasBlueprintDefinition TokenName Source # | |||||
Defined in PlutusLedgerApi.V1.Value Associated Types
Methods definitionId :: DefinitionId | |||||
| Eq TokenName Source # | |||||
Defined in PlutusLedgerApi.V1.Value | |||||
| FromData TokenName Source # | |||||
Defined in PlutusLedgerApi.V1.Value Methods | |||||
| ToData TokenName Source # | |||||
Defined in PlutusLedgerApi.V1.Value Methods toBuiltinData :: TokenName -> BuiltinData # | |||||
| UnsafeFromData TokenName Source # | |||||
Defined in PlutusLedgerApi.V1.Value Methods | |||||
| Ord TokenName Source # | |||||
Defined in PlutusLedgerApi.V1.Value | |||||
| Pretty TokenName Source # | |||||
Defined in PlutusLedgerApi.V1.Value | |||||
| HasBlueprintSchema TokenName referencedTypes Source # | |||||
Defined in PlutusLedgerApi.V1.Value Methods schema :: Schema referencedTypes | |||||
| Lift DefaultUni TokenName Source # | |||||
Defined in PlutusLedgerApi.V1.Value | |||||
| Typeable DefaultUni TokenName Source # | |||||
Defined in PlutusLedgerApi.V1.Value | |||||
| type Rep TokenName Source # | |||||
Defined in PlutusLedgerApi.V1.Value type Rep TokenName = D1 ('MetaData "TokenName" "PlutusLedgerApi.V1.Value" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'True) (C1 ('MetaCons "TokenName" 'PrefixI 'True) (S1 ('MetaSel ('Just "unTokenName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinByteString))) | |||||
| type Unroll TokenName Source # | |||||
tokenName :: ByteString -> TokenName Source #
Creates TokenName from raw ByteString.
Asset classes
newtype AssetClass Source #
An asset class, identified by a CurrencySymbol and a TokenName.
Constructors
| AssetClass | |
Fields | |
Instances
| Data AssetClass Source # | |||||
Defined in PlutusLedgerApi.V1.Value Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> AssetClass -> c AssetClass Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c AssetClass Source # toConstr :: AssetClass -> Constr Source # dataTypeOf :: AssetClass -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c AssetClass) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AssetClass) Source # gmapT :: (forall b. Data b => b -> b) -> AssetClass -> AssetClass Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> AssetClass -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> AssetClass -> r Source # gmapQ :: (forall d. Data d => d -> u) -> AssetClass -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> AssetClass -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> AssetClass -> m AssetClass Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> AssetClass -> m AssetClass Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> AssetClass -> m AssetClass Source # | |||||
| Generic AssetClass Source # | |||||
Defined in PlutusLedgerApi.V1.Value Associated Types
| |||||
| Show AssetClass Source # | |||||
Defined in PlutusLedgerApi.V1.Value | |||||
| NFData AssetClass Source # | |||||
Defined in PlutusLedgerApi.V1.Value Methods rnf :: AssetClass -> () Source # | |||||
| Eq AssetClass Source # | |||||
Defined in PlutusLedgerApi.V1.Value Methods (==) :: AssetClass -> AssetClass -> Bool Source # (/=) :: AssetClass -> AssetClass -> Bool Source # | |||||
| Ord AssetClass Source # | |||||
Defined in PlutusLedgerApi.V1.Value Methods compare :: AssetClass -> AssetClass -> Ordering Source # (<) :: AssetClass -> AssetClass -> Bool Source # (<=) :: AssetClass -> AssetClass -> Bool Source # (>) :: AssetClass -> AssetClass -> Bool Source # (>=) :: AssetClass -> AssetClass -> Bool Source # max :: AssetClass -> AssetClass -> AssetClass Source # min :: AssetClass -> AssetClass -> AssetClass Source # | |||||
| HasBlueprintDefinition AssetClass Source # | |||||
Defined in PlutusLedgerApi.V1.Value Associated Types
Methods definitionId :: DefinitionId | |||||
| Eq AssetClass Source # | |||||
Defined in PlutusLedgerApi.V1.Value Methods (==) :: AssetClass -> AssetClass -> Bool | |||||
| FromData AssetClass Source # | |||||
Defined in PlutusLedgerApi.V1.Value Methods | |||||
| ToData AssetClass Source # | |||||
Defined in PlutusLedgerApi.V1.Value Methods toBuiltinData :: AssetClass -> BuiltinData # | |||||
| UnsafeFromData AssetClass Source # | |||||
Defined in PlutusLedgerApi.V1.Value Methods | |||||
| Ord AssetClass Source # | |||||
Defined in PlutusLedgerApi.V1.Value Methods compare :: AssetClass -> AssetClass -> Ordering (<) :: AssetClass -> AssetClass -> Bool (<=) :: AssetClass -> AssetClass -> Bool (>) :: AssetClass -> AssetClass -> Bool (>=) :: AssetClass -> AssetClass -> Bool max :: AssetClass -> AssetClass -> AssetClass min :: AssetClass -> AssetClass -> AssetClass | |||||
| Pretty AssetClass Source # | |||||
Defined in PlutusLedgerApi.V1.Value | |||||
| HasBlueprintSchema AssetClass referencedTypes Source # | |||||
Defined in PlutusLedgerApi.V1.Value Methods schema :: Schema referencedTypes | |||||
| Lift DefaultUni AssetClass Source # | |||||
Defined in PlutusLedgerApi.V1.Value Methods lift :: AssetClass -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ()) | |||||
| Typeable DefaultUni AssetClass Source # | |||||
Defined in PlutusLedgerApi.V1.Value Methods typeRep :: Proxy AssetClass -> RTCompile DefaultUni fun (Type TyName DefaultUni ()) | |||||
| type Rep AssetClass Source # | |||||
Defined in PlutusLedgerApi.V1.Value type Rep AssetClass = D1 ('MetaData "AssetClass" "PlutusLedgerApi.V1.Value" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'True) (C1 ('MetaCons "AssetClass" 'PrefixI 'True) (S1 ('MetaSel ('Just "unAssetClass") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (CurrencySymbol, TokenName)))) | |||||
| type Unroll AssetClass Source # | |||||
Defined in PlutusLedgerApi.V1.Value type Unroll AssetClass = Insert AssetClass (GUnroll (IfStuckRep (RepIsStuckError AssetClass :: Type -> Type) (Rep AssetClass))) | |||||
assetClass :: CurrencySymbol -> TokenName -> AssetClass Source #
The curried version of AssetClass constructor
assetClassValue :: AssetClass -> Integer -> Value Source #
A Value containing the given amount of the asset class.
assetClassValueOf :: Value -> AssetClass -> Integer Source #
Get the quantity of the given AssetClass class in the Value.
Addresses
An address may contain two credentials,
the payment credential and optionally a StakingCredential.
Constructors
| Address | |
Fields
| |
Instances
| Generic Address Source # | |||||
Defined in PlutusLedgerApi.V1.Address Associated Types
| |||||
| Show Address Source # | |||||
| NFData Address Source # | |||||
Defined in PlutusLedgerApi.V1.Address | |||||
| Eq Address Source # | |||||
| Ord Address Source # | |||||
Defined in PlutusLedgerApi.V1.Address | |||||
| HasBlueprintDefinition Address Source # | |||||
Defined in PlutusLedgerApi.V1.Address Associated Types
Methods definitionId :: DefinitionId | |||||
| Eq Address Source # | |||||
Defined in PlutusLedgerApi.V1.Address | |||||
| FromData Address Source # | |||||
Defined in PlutusLedgerApi.V1.Address Methods fromBuiltinData :: BuiltinData -> Maybe Address # | |||||
| ToData Address Source # | |||||
Defined in PlutusLedgerApi.V1.Address Methods toBuiltinData :: Address -> BuiltinData # | |||||
| UnsafeFromData Address Source # | |||||
Defined in PlutusLedgerApi.V1.Address Methods | |||||
| Pretty Address Source # | |||||
Defined in PlutusLedgerApi.V1.Address | |||||
| (HasSchemaDefinition Credential referencedTypes, HasSchemaDefinition (Maybe StakingCredential) referencedTypes) => HasBlueprintSchema Address referencedTypes Source # | |||||
Defined in PlutusLedgerApi.V1.Address Methods schema :: Schema referencedTypes | |||||
| Lift DefaultUni Address Source # | |||||
Defined in PlutusLedgerApi.V1.Address | |||||
| Typeable DefaultUni Address Source # | |||||
Defined in PlutusLedgerApi.V1.Address | |||||
| type Rep Address Source # | |||||
Defined in PlutusLedgerApi.V1.Address type Rep Address = D1 ('MetaData "Address" "PlutusLedgerApi.V1.Address" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" '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)))) | |||||
| type Unroll Address Source # | |||||
pubKeyHashAddress :: PubKeyHash -> Address Source #
The address that should be targeted by a transaction output locked by the public key with the given hash.
toPubKeyHash :: Address -> Maybe PubKeyHash Source #
The PubKeyHash of the address, if any
toScriptHash :: Address -> Maybe ScriptHash Source #
The validator hash of the address, if any
scriptHashAddress :: ScriptHash -> Address Source #
The address that should be used by a transaction output locked by the given validator script hash.
stakingCredential :: Address -> Maybe StakingCredential Source #
The staking credential of an address (if any)
Crypto
newtype PubKeyHash Source #
The hash of a public key. This is frequently used to identify the public key, rather than the key itself. Hashed with BLAKE2b-224. 28 bytes.
This is a simple type without any validation, use with caution. You may want to add checks for its invariants. See the Shelley ledger specification.
Constructors
| PubKeyHash | |
Fields | |
Instances
| IsString PubKeyHash Source # | from hex encoding | ||||
Defined in PlutusLedgerApi.V1.Crypto Methods fromString :: String -> PubKeyHash Source # | |||||
| Generic PubKeyHash Source # | |||||
Defined in PlutusLedgerApi.V1.Crypto Associated Types
| |||||
| Show PubKeyHash Source # | using hex encoding | ||||
Defined in PlutusLedgerApi.V1.Crypto | |||||
| NFData PubKeyHash Source # | |||||
Defined in PlutusLedgerApi.V1.Crypto Methods rnf :: PubKeyHash -> () Source # | |||||
| Eq PubKeyHash Source # | |||||
Defined in PlutusLedgerApi.V1.Crypto Methods (==) :: PubKeyHash -> PubKeyHash -> Bool Source # (/=) :: PubKeyHash -> PubKeyHash -> Bool Source # | |||||
| Ord PubKeyHash Source # | |||||
Defined in PlutusLedgerApi.V1.Crypto Methods compare :: PubKeyHash -> PubKeyHash -> Ordering Source # (<) :: PubKeyHash -> PubKeyHash -> Bool Source # (<=) :: PubKeyHash -> PubKeyHash -> Bool Source # (>) :: PubKeyHash -> PubKeyHash -> Bool Source # (>=) :: PubKeyHash -> PubKeyHash -> Bool Source # max :: PubKeyHash -> PubKeyHash -> PubKeyHash Source # min :: PubKeyHash -> PubKeyHash -> PubKeyHash Source # | |||||
| HasBlueprintDefinition PubKeyHash Source # | |||||
Defined in PlutusLedgerApi.V1.Crypto Associated Types
Methods definitionId :: DefinitionId | |||||
| Eq PubKeyHash Source # | |||||
Defined in PlutusLedgerApi.V1.Crypto Methods (==) :: PubKeyHash -> PubKeyHash -> Bool | |||||
| FromData PubKeyHash Source # | |||||
Defined in PlutusLedgerApi.V1.Crypto Methods | |||||
| ToData PubKeyHash Source # | |||||
Defined in PlutusLedgerApi.V1.Crypto Methods toBuiltinData :: PubKeyHash -> BuiltinData # | |||||
| UnsafeFromData PubKeyHash Source # | |||||
Defined in PlutusLedgerApi.V1.Crypto Methods | |||||
| Ord PubKeyHash Source # | |||||
Defined in PlutusLedgerApi.V1.Crypto Methods compare :: PubKeyHash -> PubKeyHash -> Ordering (<) :: PubKeyHash -> PubKeyHash -> Bool (<=) :: PubKeyHash -> PubKeyHash -> Bool (>) :: PubKeyHash -> PubKeyHash -> Bool (>=) :: PubKeyHash -> PubKeyHash -> Bool max :: PubKeyHash -> PubKeyHash -> PubKeyHash min :: PubKeyHash -> PubKeyHash -> PubKeyHash | |||||
| Show PubKeyHash Source # | |||||
Defined in PlutusLedgerApi.V1.Crypto | |||||
| Pretty PubKeyHash Source # | using hex encoding | ||||
Defined in PlutusLedgerApi.V1.Crypto | |||||
| HasBlueprintSchema PubKeyHash referenedTypes Source # | |||||
Defined in PlutusLedgerApi.V1.Crypto Methods schema :: Schema referenedTypes | |||||
| Lift DefaultUni PubKeyHash Source # | |||||
Defined in PlutusLedgerApi.V1.Crypto Methods lift :: PubKeyHash -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ()) | |||||
| Typeable DefaultUni PubKeyHash Source # | |||||
Defined in PlutusLedgerApi.V1.Crypto Methods typeRep :: Proxy PubKeyHash -> RTCompile DefaultUni fun (Type TyName DefaultUni ()) | |||||
| type Rep PubKeyHash Source # | |||||
Defined in PlutusLedgerApi.V1.Crypto type Rep PubKeyHash = D1 ('MetaData "PubKeyHash" "PlutusLedgerApi.V1.Crypto" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'True) (C1 ('MetaCons "PubKeyHash" 'PrefixI 'True) (S1 ('MetaSel ('Just "getPubKeyHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinByteString))) | |||||
| type Unroll PubKeyHash Source # | |||||
Defined in PlutusLedgerApi.V1.Crypto | |||||
Time
POSIX time is measured as the number of milliseconds since 1970-01-01T00:00:00Z.
This is not the same as Haskell's POSIXTime
Constructors
| POSIXTime | |
Fields | |
Instances
| Enum POSIXTime Source # | |||||
Defined in PlutusLedgerApi.V1.Time Methods succ :: POSIXTime -> POSIXTime Source # pred :: POSIXTime -> POSIXTime Source # toEnum :: Int -> POSIXTime Source # fromEnum :: POSIXTime -> Int Source # enumFrom :: POSIXTime -> [POSIXTime] Source # enumFromThen :: POSIXTime -> POSIXTime -> [POSIXTime] Source # enumFromTo :: POSIXTime -> POSIXTime -> [POSIXTime] Source # enumFromThenTo :: POSIXTime -> POSIXTime -> POSIXTime -> [POSIXTime] Source # | |||||
| Generic POSIXTime Source # | |||||
Defined in PlutusLedgerApi.V1.Time Associated Types
| |||||
| Num POSIXTime Source # | |||||
Defined in PlutusLedgerApi.V1.Time Methods (+) :: POSIXTime -> POSIXTime -> POSIXTime Source # (-) :: POSIXTime -> POSIXTime -> POSIXTime Source # (*) :: POSIXTime -> POSIXTime -> POSIXTime Source # negate :: POSIXTime -> POSIXTime Source # abs :: POSIXTime -> POSIXTime Source # signum :: POSIXTime -> POSIXTime Source # fromInteger :: Integer -> POSIXTime Source # | |||||
| Integral POSIXTime Source # | |||||
Defined in PlutusLedgerApi.V1.Time Methods quot :: POSIXTime -> POSIXTime -> POSIXTime Source # rem :: POSIXTime -> POSIXTime -> POSIXTime Source # div :: POSIXTime -> POSIXTime -> POSIXTime Source # mod :: POSIXTime -> POSIXTime -> POSIXTime Source # quotRem :: POSIXTime -> POSIXTime -> (POSIXTime, POSIXTime) Source # divMod :: POSIXTime -> POSIXTime -> (POSIXTime, POSIXTime) Source # | |||||
| Real POSIXTime Source # | |||||
Defined in PlutusLedgerApi.V1.Time Methods toRational :: POSIXTime -> Rational Source # | |||||
| Show POSIXTime Source # | |||||
| NFData POSIXTime Source # | |||||
Defined in PlutusLedgerApi.V1.Time | |||||
| Eq POSIXTime Source # | |||||
| Ord POSIXTime Source # | |||||
Defined in PlutusLedgerApi.V1.Time | |||||
| HasBlueprintDefinition POSIXTime Source # | |||||
Defined in PlutusLedgerApi.V1.Time Associated Types
Methods definitionId :: DefinitionId | |||||
| Enum POSIXTime Source # | |||||
| Eq POSIXTime Source # | |||||
Defined in PlutusLedgerApi.V1.Time | |||||
| FromData POSIXTime Source # | |||||
Defined in PlutusLedgerApi.V1.Time Methods | |||||
| ToData POSIXTime Source # | |||||
Defined in PlutusLedgerApi.V1.Time Methods toBuiltinData :: POSIXTime -> BuiltinData # | |||||
| UnsafeFromData POSIXTime Source # | |||||
Defined in PlutusLedgerApi.V1.Time Methods | |||||
| AdditiveGroup POSIXTime Source # | |||||
Defined in PlutusLedgerApi.V1.Time | |||||
| AdditiveMonoid POSIXTime Source # | |||||
Defined in PlutusLedgerApi.V1.Time | |||||
| AdditiveSemigroup POSIXTime Source # | |||||
Defined in PlutusLedgerApi.V1.Time | |||||
| Ord POSIXTime Source # | |||||
Defined in PlutusLedgerApi.V1.Time | |||||
| Pretty POSIXTime Source # | |||||
Defined in PlutusLedgerApi.V1.Time | |||||
| HasBlueprintSchema POSIXTime referencedTypes Source # | |||||
Defined in PlutusLedgerApi.V1.Time Methods schema :: Schema referencedTypes | |||||
| Lift DefaultUni POSIXTime Source # | |||||
Defined in PlutusLedgerApi.V1.Time | |||||
| Typeable DefaultUni POSIXTime Source # | |||||
Defined in PlutusLedgerApi.V1.Time | |||||
| type Rep POSIXTime Source # | |||||
Defined in PlutusLedgerApi.V1.Time | |||||
| type Unroll POSIXTime Source # | |||||
newtype DiffMilliSeconds Source #
This is a length of time, as measured by a number of milliseconds.
Constructors
| DiffMilliSeconds Integer |
Instances
| Enum DiffMilliSeconds Source # | |||||
Defined in PlutusLedgerApi.V1.Time Methods succ :: DiffMilliSeconds -> DiffMilliSeconds Source # pred :: DiffMilliSeconds -> DiffMilliSeconds Source # toEnum :: Int -> DiffMilliSeconds Source # fromEnum :: DiffMilliSeconds -> Int Source # enumFrom :: DiffMilliSeconds -> [DiffMilliSeconds] Source # enumFromThen :: DiffMilliSeconds -> DiffMilliSeconds -> [DiffMilliSeconds] Source # enumFromTo :: DiffMilliSeconds -> DiffMilliSeconds -> [DiffMilliSeconds] Source # enumFromThenTo :: DiffMilliSeconds -> DiffMilliSeconds -> DiffMilliSeconds -> [DiffMilliSeconds] Source # | |||||
| Generic DiffMilliSeconds Source # | |||||
Defined in PlutusLedgerApi.V1.Time Associated Types
Methods from :: DiffMilliSeconds -> Rep DiffMilliSeconds x Source # to :: Rep DiffMilliSeconds x -> DiffMilliSeconds Source # | |||||
| Num DiffMilliSeconds Source # | |||||
Defined in PlutusLedgerApi.V1.Time Methods (+) :: DiffMilliSeconds -> DiffMilliSeconds -> DiffMilliSeconds Source # (-) :: DiffMilliSeconds -> DiffMilliSeconds -> DiffMilliSeconds Source # (*) :: DiffMilliSeconds -> DiffMilliSeconds -> DiffMilliSeconds Source # negate :: DiffMilliSeconds -> DiffMilliSeconds Source # abs :: DiffMilliSeconds -> DiffMilliSeconds Source # | |||||
| Integral DiffMilliSeconds Source # | |||||
Defined in PlutusLedgerApi.V1.Time Methods quot :: DiffMilliSeconds -> DiffMilliSeconds -> DiffMilliSeconds Source # rem :: DiffMilliSeconds -> DiffMilliSeconds -> DiffMilliSeconds Source # div :: DiffMilliSeconds -> DiffMilliSeconds -> DiffMilliSeconds Source # mod :: DiffMilliSeconds -> DiffMilliSeconds -> DiffMilliSeconds Source # quotRem :: DiffMilliSeconds -> DiffMilliSeconds -> (DiffMilliSeconds, DiffMilliSeconds) Source # divMod :: DiffMilliSeconds -> DiffMilliSeconds -> (DiffMilliSeconds, DiffMilliSeconds) Source # toInteger :: DiffMilliSeconds -> Integer Source # | |||||
| Real DiffMilliSeconds Source # | |||||
Defined in PlutusLedgerApi.V1.Time Methods | |||||
| Show DiffMilliSeconds Source # | |||||
Defined in PlutusLedgerApi.V1.Time | |||||
| NFData DiffMilliSeconds Source # | |||||
Defined in PlutusLedgerApi.V1.Time Methods rnf :: DiffMilliSeconds -> () Source # | |||||
| Eq DiffMilliSeconds Source # | |||||
Defined in PlutusLedgerApi.V1.Time Methods (==) :: DiffMilliSeconds -> DiffMilliSeconds -> Bool Source # (/=) :: DiffMilliSeconds -> DiffMilliSeconds -> Bool Source # | |||||
| Ord DiffMilliSeconds Source # | |||||
Defined in PlutusLedgerApi.V1.Time Methods compare :: DiffMilliSeconds -> DiffMilliSeconds -> Ordering Source # (<) :: DiffMilliSeconds -> DiffMilliSeconds -> Bool Source # (<=) :: DiffMilliSeconds -> DiffMilliSeconds -> Bool Source # (>) :: DiffMilliSeconds -> DiffMilliSeconds -> Bool Source # (>=) :: DiffMilliSeconds -> DiffMilliSeconds -> Bool Source # max :: DiffMilliSeconds -> DiffMilliSeconds -> DiffMilliSeconds Source # min :: DiffMilliSeconds -> DiffMilliSeconds -> DiffMilliSeconds Source # | |||||
| HasBlueprintDefinition DiffMilliSeconds Source # | |||||
Defined in PlutusLedgerApi.V1.Time Associated Types
Methods definitionId :: DefinitionId | |||||
| Eq DiffMilliSeconds Source # | |||||
Defined in PlutusLedgerApi.V1.Time Methods (==) :: DiffMilliSeconds -> DiffMilliSeconds -> Bool | |||||
| FromData DiffMilliSeconds Source # | |||||
Defined in PlutusLedgerApi.V1.Time Methods | |||||
| ToData DiffMilliSeconds Source # | |||||
Defined in PlutusLedgerApi.V1.Time Methods | |||||
| UnsafeFromData DiffMilliSeconds Source # | |||||
Defined in PlutusLedgerApi.V1.Time Methods | |||||
| AdditiveGroup DiffMilliSeconds Source # | |||||
Defined in PlutusLedgerApi.V1.Time Methods (-) :: DiffMilliSeconds -> DiffMilliSeconds -> DiffMilliSeconds | |||||
| AdditiveMonoid DiffMilliSeconds Source # | |||||
Defined in PlutusLedgerApi.V1.Time Methods | |||||
| AdditiveSemigroup DiffMilliSeconds Source # | |||||
Defined in PlutusLedgerApi.V1.Time Methods (+) :: DiffMilliSeconds -> DiffMilliSeconds -> DiffMilliSeconds | |||||
| Ord DiffMilliSeconds Source # | |||||
Defined in PlutusLedgerApi.V1.Time Methods compare :: DiffMilliSeconds -> DiffMilliSeconds -> Ordering (<) :: DiffMilliSeconds -> DiffMilliSeconds -> Bool (<=) :: DiffMilliSeconds -> DiffMilliSeconds -> Bool (>) :: DiffMilliSeconds -> DiffMilliSeconds -> Bool (>=) :: DiffMilliSeconds -> DiffMilliSeconds -> Bool max :: DiffMilliSeconds -> DiffMilliSeconds -> DiffMilliSeconds min :: DiffMilliSeconds -> DiffMilliSeconds -> DiffMilliSeconds | |||||
| HasBlueprintSchema DiffMilliSeconds referencedTypes Source # | |||||
Defined in PlutusLedgerApi.V1.Time Methods schema :: Schema referencedTypes | |||||
| Lift DefaultUni DiffMilliSeconds Source # | |||||
Defined in PlutusLedgerApi.V1.Time Methods lift :: DiffMilliSeconds -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ()) | |||||
| Typeable DefaultUni DiffMilliSeconds Source # | |||||
Defined in PlutusLedgerApi.V1.Time Methods typeRep :: Proxy DiffMilliSeconds -> RTCompile DefaultUni fun (Type TyName DefaultUni ()) | |||||
| type Rep DiffMilliSeconds Source # | |||||
Defined in PlutusLedgerApi.V1.Time type Rep DiffMilliSeconds = D1 ('MetaData "DiffMilliSeconds" "PlutusLedgerApi.V1.Time" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'True) (C1 ('MetaCons "DiffMilliSeconds" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer))) | |||||
| type Unroll DiffMilliSeconds Source # | |||||
Defined in PlutusLedgerApi.V1.Time type Unroll DiffMilliSeconds = Insert DiffMilliSeconds (GUnroll (IfStuckRep (RepIsStuckError DiffMilliSeconds :: Type -> Type) (Rep DiffMilliSeconds))) | |||||
fromMilliSeconds :: DiffMilliSeconds -> POSIXTime Source #
Simple conversion from DiffMilliSeconds to POSIXTime.
Intervals
An interval of as.
The interval may be either closed or open at either end, meaning that the endpoints may or may not be included in the interval.
The interval can also be unbounded on either side.
The Eq instance gives equality of the intervals, not structural equality.
There is no Ord instance, but contains gives a partial order.
Note that some of the functions on Interval rely on Enum in order to
handle non-inclusive endpoints. For this reason, it may not be safe to
use Intervals with non-inclusive endpoints on types whose Enum
instances have partial methods.
Constructors
| Interval | |
Fields
| |
Instances
| Functor Interval Source # | |||||
Defined in PlutusLedgerApi.V1.Interval | |||||
| (Typeable DefaultUni a, Lift DefaultUni (LowerBound a), Lift DefaultUni (UpperBound a)) => Lift DefaultUni (Interval a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval | |||||
| Generic (Interval a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval Associated Types
| |||||
| Show a => Show (Interval a) Source # | |||||
| NFData a => NFData (Interval a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval | |||||
| (Enum a, Ord a) => Eq (Interval a) Source # | |||||
| HasBlueprintDefinition a => HasBlueprintDefinition (Interval a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval Associated Types
Methods definitionId :: DefinitionId | |||||
| (Enum a, Ord a) => Eq (Interval a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval | |||||
| FromData a => FromData (Interval a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval Methods fromBuiltinData :: BuiltinData -> Maybe (Interval a) # | |||||
| ToData a => ToData (Interval a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval Methods toBuiltinData :: Interval a -> BuiltinData # | |||||
| UnsafeFromData a => UnsafeFromData (Interval a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval Methods unsafeFromBuiltinData :: BuiltinData -> Interval a # | |||||
| (Enum a, Ord a) => BoundedJoinSemiLattice (Interval a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval | |||||
| (Enum a, Ord a) => BoundedMeetSemiLattice (Interval a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval | |||||
| (Enum a, Ord a) => JoinSemiLattice (Interval a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval | |||||
| (Enum a, Ord a) => MeetSemiLattice (Interval a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval | |||||
| Pretty a => Pretty (Interval a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval | |||||
| (HasBlueprintDefinition a, HasSchemaDefinition (LowerBound a) referencedTypes, HasSchemaDefinition (UpperBound a) referencedTypes) => HasBlueprintSchema (Interval a) referencedTypes Source # | |||||
Defined in PlutusLedgerApi.V1.Interval Methods schema :: Schema referencedTypes | |||||
| Typeable DefaultUni Interval Source # | |||||
Defined in PlutusLedgerApi.V1.Interval | |||||
| type Rep (Interval a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval type Rep (Interval a) = D1 ('MetaData "Interval" "PlutusLedgerApi.V1.Interval" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" '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)))) | |||||
| type Unroll (Interval a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval | |||||
A set extended with a positive and negative infinity.
Instances
| Functor Extended Source # | |||||
Defined in PlutusLedgerApi.V1.Interval | |||||
| (Typeable DefaultUni a, Lift DefaultUni a) => Lift DefaultUni (Extended a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval | |||||
| Generic (Extended a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval Associated Types
| |||||
| Show a => Show (Extended a) Source # | |||||
| NFData a => NFData (Extended a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval | |||||
| Eq a => Eq (Extended a) Source # | |||||
| Ord a => Ord (Extended a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval Methods compare :: Extended a -> Extended a -> Ordering Source # (<) :: Extended a -> Extended a -> Bool Source # (<=) :: Extended a -> Extended a -> Bool Source # (>) :: Extended a -> Extended a -> Bool Source # (>=) :: Extended a -> Extended a -> Bool Source # | |||||
| HasBlueprintDefinition a => HasBlueprintDefinition (Extended a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval Associated Types
Methods definitionId :: DefinitionId | |||||
| Eq a => Eq (Extended a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval | |||||
| FromData a => FromData (Extended a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval Methods fromBuiltinData :: BuiltinData -> Maybe (Extended a) # | |||||
| ToData a => ToData (Extended a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval Methods toBuiltinData :: Extended a -> BuiltinData # | |||||
| UnsafeFromData a => UnsafeFromData (Extended a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval Methods unsafeFromBuiltinData :: BuiltinData -> Extended a # | |||||
| Ord a => Ord (Extended a) Source # | |||||
| Pretty a => Pretty (Extended a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval | |||||
| (HasBlueprintDefinition a, HasSchemaDefinition a referencedTypes) => HasBlueprintSchema (Extended a) referencedTypes Source # | |||||
Defined in PlutusLedgerApi.V1.Interval Methods schema :: Schema referencedTypes | |||||
| Typeable DefaultUni Extended Source # | |||||
Defined in PlutusLedgerApi.V1.Interval | |||||
| type Rep (Extended a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval type Rep (Extended a) = D1 ('MetaData "Extended" "PlutusLedgerApi.V1.Interval" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" '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))) | |||||
| type Unroll (Extended a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval | |||||
data UpperBound a Source #
The upper bound of an interval.
Constructors
| UpperBound (Extended a) Closure |
Instances
| Functor UpperBound Source # | |||||
Defined in PlutusLedgerApi.V1.Interval Methods fmap :: (a -> b) -> UpperBound a -> UpperBound b | |||||
| (Typeable DefaultUni a, Lift DefaultUni (Extended a)) => Lift DefaultUni (UpperBound a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval Methods lift :: UpperBound a -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ()) | |||||
| Generic (UpperBound a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval Associated Types
Methods from :: UpperBound a -> Rep (UpperBound a) x Source # to :: Rep (UpperBound a) x -> UpperBound a Source # | |||||
| Show a => Show (UpperBound a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval | |||||
| NFData a => NFData (UpperBound a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval Methods rnf :: UpperBound a -> () Source # | |||||
| (Enum a, Eq a) => Eq (UpperBound a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval Methods (==) :: UpperBound a -> UpperBound a -> Bool Source # (/=) :: UpperBound a -> UpperBound a -> Bool Source # | |||||
| (Enum a, Ord a) => Ord (UpperBound a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval Methods compare :: UpperBound a -> UpperBound a -> Ordering Source # (<) :: UpperBound a -> UpperBound a -> Bool Source # (<=) :: UpperBound a -> UpperBound a -> Bool Source # (>) :: UpperBound a -> UpperBound a -> Bool Source # (>=) :: UpperBound a -> UpperBound a -> Bool Source # max :: UpperBound a -> UpperBound a -> UpperBound a Source # min :: UpperBound a -> UpperBound a -> UpperBound a Source # | |||||
| HasBlueprintDefinition (Extended a) => HasBlueprintDefinition (UpperBound a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval Associated Types
Methods definitionId :: DefinitionId | |||||
| (Enum a, Eq a) => Eq (UpperBound a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval Methods (==) :: UpperBound a -> UpperBound a -> Bool | |||||
| FromData a => FromData (UpperBound a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval Methods fromBuiltinData :: BuiltinData -> Maybe (UpperBound a) # | |||||
| ToData a => ToData (UpperBound a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval Methods toBuiltinData :: UpperBound a -> BuiltinData # | |||||
| UnsafeFromData a => UnsafeFromData (UpperBound a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval Methods unsafeFromBuiltinData :: BuiltinData -> UpperBound a # | |||||
| (Enum a, Ord a) => Ord (UpperBound a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval Methods compare :: UpperBound a -> UpperBound a -> Ordering (<) :: UpperBound a -> UpperBound a -> Bool (<=) :: UpperBound a -> UpperBound a -> Bool (>) :: UpperBound a -> UpperBound a -> Bool (>=) :: UpperBound a -> UpperBound a -> Bool max :: UpperBound a -> UpperBound a -> UpperBound a min :: UpperBound a -> UpperBound a -> UpperBound a | |||||
| Pretty a => Pretty (UpperBound a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval | |||||
| (HasSchemaDefinition a referencedTypes, HasBlueprintDefinition a, HasSchemaDefinition (Extended a) referencedTypes, HasSchemaDefinition Closure referencedTypes) => HasBlueprintSchema (UpperBound a) referencedTypes Source # | |||||
Defined in PlutusLedgerApi.V1.Interval Methods schema :: Schema referencedTypes | |||||
| Typeable DefaultUni UpperBound Source # | |||||
Defined in PlutusLedgerApi.V1.Interval Methods typeRep :: Proxy UpperBound -> RTCompile DefaultUni fun (Type TyName DefaultUni ()) | |||||
| type Rep (UpperBound a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval type Rep (UpperBound a) = D1 ('MetaData "UpperBound" "PlutusLedgerApi.V1.Interval" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" '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))) | |||||
| type Unroll (UpperBound a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval | |||||
data LowerBound a Source #
The lower bound of an interval.
Constructors
| LowerBound (Extended a) Closure |
Instances
| Functor LowerBound Source # | |||||
Defined in PlutusLedgerApi.V1.Interval Methods fmap :: (a -> b) -> LowerBound a -> LowerBound b | |||||
| (Typeable DefaultUni a, Lift DefaultUni (Extended a)) => Lift DefaultUni (LowerBound a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval Methods lift :: LowerBound a -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ()) | |||||
| Generic (LowerBound a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval Associated Types
Methods from :: LowerBound a -> Rep (LowerBound a) x Source # to :: Rep (LowerBound a) x -> LowerBound a Source # | |||||
| Show a => Show (LowerBound a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval | |||||
| NFData a => NFData (LowerBound a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval Methods rnf :: LowerBound a -> () Source # | |||||
| (Enum a, Eq a) => Eq (LowerBound a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval Methods (==) :: LowerBound a -> LowerBound a -> Bool Source # (/=) :: LowerBound a -> LowerBound a -> Bool Source # | |||||
| (Enum a, Ord a) => Ord (LowerBound a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval Methods compare :: LowerBound a -> LowerBound a -> Ordering Source # (<) :: LowerBound a -> LowerBound a -> Bool Source # (<=) :: LowerBound a -> LowerBound a -> Bool Source # (>) :: LowerBound a -> LowerBound a -> Bool Source # (>=) :: LowerBound a -> LowerBound a -> Bool Source # max :: LowerBound a -> LowerBound a -> LowerBound a Source # min :: LowerBound a -> LowerBound a -> LowerBound a Source # | |||||
| HasBlueprintDefinition (Extended a) => HasBlueprintDefinition (LowerBound a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval Associated Types
Methods definitionId :: DefinitionId | |||||
| (Enum a, Eq a) => Eq (LowerBound a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval Methods (==) :: LowerBound a -> LowerBound a -> Bool | |||||
| FromData a => FromData (LowerBound a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval Methods fromBuiltinData :: BuiltinData -> Maybe (LowerBound a) # | |||||
| ToData a => ToData (LowerBound a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval Methods toBuiltinData :: LowerBound a -> BuiltinData # | |||||
| UnsafeFromData a => UnsafeFromData (LowerBound a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval Methods unsafeFromBuiltinData :: BuiltinData -> LowerBound a # | |||||
| (Enum a, Ord a) => Ord (LowerBound a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval Methods compare :: LowerBound a -> LowerBound a -> Ordering (<) :: LowerBound a -> LowerBound a -> Bool (<=) :: LowerBound a -> LowerBound a -> Bool (>) :: LowerBound a -> LowerBound a -> Bool (>=) :: LowerBound a -> LowerBound a -> Bool max :: LowerBound a -> LowerBound a -> LowerBound a min :: LowerBound a -> LowerBound a -> LowerBound a | |||||
| Pretty a => Pretty (LowerBound a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval | |||||
| (HasSchemaDefinition a referencedTypes, HasBlueprintDefinition a, HasSchemaDefinition (Extended a) referencedTypes, HasSchemaDefinition Closure referencedTypes) => HasBlueprintSchema (LowerBound a) referencedTypes Source # | |||||
Defined in PlutusLedgerApi.V1.Interval Methods schema :: Schema referencedTypes | |||||
| Typeable DefaultUni LowerBound Source # | |||||
Defined in PlutusLedgerApi.V1.Interval Methods typeRep :: Proxy LowerBound -> RTCompile DefaultUni fun (Type TyName DefaultUni ()) | |||||
| type Rep (LowerBound a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval type Rep (LowerBound a) = D1 ('MetaData "LowerBound" "PlutusLedgerApi.V1.Interval" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" '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))) | |||||
| type Unroll (LowerBound a) Source # | |||||
Defined in PlutusLedgerApi.V1.Interval | |||||
from :: a -> Interval a Source #
from a is an Interval that includes all values that are
greater than or equal to a. In math. notation: [a,+∞]
to :: a -> Interval a Source #
to a is an Interval that includes all values that are
smaller than or equal to a. In math. notation: [-∞,a]
lowerBound :: a -> LowerBound a Source #
Construct a lower bound from a value. The resulting bound includes all values that are equal or greater than the input value.
upperBound :: a -> UpperBound a Source #
Construct an upper bound from a value. The resulting bound includes all values that are equal or smaller than the input value.
strictLowerBound :: a -> LowerBound a Source #
Construct a strict lower bound from a value. The resulting bound includes all values that are (strictly) greater than the input value.
strictUpperBound :: a -> UpperBound a Source #
Construct a strict upper bound from a value. The resulting bound includes all values that are (strictly) smaller than the input value.
member :: (Enum a, Ord a) => a -> Interval a -> Bool Source #
Check whether a value is in an interval.
interval :: a -> a -> Interval a Source #
interval a b includes all values that are greater than or equal to a
and smaller than or equal to b. Therefore it includes a and b. In math. notation: [a,b]
hull :: (Enum a, Ord a) => Interval a -> Interval a -> Interval a Source #
'hull a b' is the smallest interval containing a and b.
intersection :: (Enum a, Ord a) => Interval a -> Interval a -> Interval a Source #
'intersection a b' is the largest interval that is contained in a and in
b, if it exists.
overlaps :: (Enum a, Ord a) => Interval a -> Interval a -> Bool Source #
Check whether two intervals overlap, that is, whether there is a value that is a member of both intervals.
before :: (Enum a, Ord a) => a -> Interval a -> Bool Source #
Check if a value is earlier than the beginning of an Interval.
after :: (Enum a, Ord a) => a -> Interval a -> Bool Source #
Check if a value is later than the end of an Interval.
Data
Instances
| Data Data | |||||||||||||
Defined in PlutusCore.Data Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Data -> c Data Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Data Source # toConstr :: Data -> Constr Source # dataTypeOf :: Data -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Data) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Data) Source # gmapT :: (forall b. Data b => b -> b) -> Data -> Data Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Data -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Data -> r Source # gmapQ :: (forall d. Data d => d -> u) -> Data -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> Data -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Data -> m Data Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Data -> m Data Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Data -> m Data Source # | |||||||||||||
| Generic Data | |||||||||||||
Defined in PlutusCore.Data Associated Types
| |||||||||||||
| Read Data | |||||||||||||
| Show Data | |||||||||||||
| NFData Data | |||||||||||||
Defined in PlutusCore.Data | |||||||||||||
| Eq Data | |||||||||||||
| Ord Data | |||||||||||||
| Hashable Data | |||||||||||||
Defined in PlutusCore.Data | |||||||||||||
| NoThunks Data | |||||||||||||
| ExMemoryUsage Data | |||||||||||||
Defined in PlutusCore.Evaluation.Machine.ExMemoryUsage Methods memoryUsage :: Data -> CostRose | |||||||||||||
| HasToBuiltin Data | |||||||||||||
Defined in PlutusTx.Builtins.HasBuiltin Associated Types
| |||||||||||||
| Pretty Data | |||||||||||||
Defined in PlutusCore.Data | |||||||||||||
| Serialise Data | |||||||||||||
Defined in PlutusCore.Data | |||||||||||||
| PrettyBy ConstConfig Data | |||||||||||||
Defined in PlutusCore.Pretty.PrettyConst | |||||||||||||
| KnownBuiltinTypeIn DefaultUni term Data => MakeKnownIn DefaultUni term Data | |||||||||||||
Defined in PlutusCore.Default.Universe | |||||||||||||
| KnownBuiltinTypeIn DefaultUni term Data => ReadKnownIn DefaultUni term Data | |||||||||||||
Defined in PlutusCore.Default.Universe | |||||||||||||
| Contains DefaultUni Data | |||||||||||||
Defined in PlutusCore.Default.Universe | |||||||||||||
| KnownBuiltinTypeAst tyname DefaultUni Data => KnownTypeAst tyname DefaultUni Data | |||||||||||||
Defined in PlutusCore.Default.Universe Associated Types
Methods typeAst :: Type tyname DefaultUni () | |||||||||||||
| type Rep Data | |||||||||||||
Defined in PlutusCore.Data type Rep Data = D1 ('MetaData "Data" "PlutusCore.Data" "plutus-core-1.60.0.0-LXFqBsoUlXsJIEqLytHte7" 'False) ((C1 ('MetaCons "Constr" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Data])) :+: C1 ('MetaCons "Map" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [(Data, Data)]))) :+: (C1 ('MetaCons "List" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Data])) :+: (C1 ('MetaCons "I" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer)) :+: C1 ('MetaCons "B" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString))))) | |||||||||||||
| type ToBuiltin Data | |||||||||||||
Defined in PlutusTx.Builtins.HasBuiltin | |||||||||||||
| type IsBuiltin DefaultUni Data | |||||||||||||
Defined in PlutusCore.Default.Universe | |||||||||||||
| type ToBinds DefaultUni acc Data | |||||||||||||
Defined in PlutusCore.Default.Universe | |||||||||||||
| type ToHoles DefaultUni hole Data | |||||||||||||
Defined in PlutusCore.Default.Universe | |||||||||||||
data BuiltinData #
Constructors
| BuiltinData ~Data |
Instances
| Data BuiltinData | |||||
Defined in PlutusTx.Builtins.Internal Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> BuiltinData -> c BuiltinData Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c BuiltinData Source # toConstr :: BuiltinData -> Constr Source # dataTypeOf :: BuiltinData -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c BuiltinData) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c BuiltinData) Source # gmapT :: (forall b. Data b => b -> b) -> BuiltinData -> BuiltinData Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> BuiltinData -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> BuiltinData -> r Source # gmapQ :: (forall d. Data d => d -> u) -> BuiltinData -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> BuiltinData -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> BuiltinData -> m BuiltinData Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> BuiltinData -> m BuiltinData Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> BuiltinData -> m BuiltinData Source # | |||||
| Generic BuiltinData | |||||
Defined in PlutusTx.Builtins.Internal Associated Types
Methods from :: BuiltinData -> Rep BuiltinData x Source # to :: Rep BuiltinData x -> BuiltinData Source # | |||||
| Show BuiltinData | |||||
Defined in PlutusTx.Builtins.Internal | |||||
| NFData BuiltinData | |||||
Defined in PlutusTx.Builtins.Internal Methods rnf :: BuiltinData -> () Source # | |||||
| Eq BuiltinData | |||||
Defined in PlutusTx.Builtins.Internal Methods (==) :: BuiltinData -> BuiltinData -> Bool Source # (/=) :: BuiltinData -> BuiltinData -> Bool Source # | |||||
| Ord BuiltinData | |||||
Defined in PlutusTx.Builtins.Internal Methods compare :: BuiltinData -> BuiltinData -> Ordering Source # (<) :: BuiltinData -> BuiltinData -> Bool Source # (<=) :: BuiltinData -> BuiltinData -> Bool Source # (>) :: BuiltinData -> BuiltinData -> Bool Source # (>=) :: BuiltinData -> BuiltinData -> Bool Source # max :: BuiltinData -> BuiltinData -> BuiltinData Source # min :: BuiltinData -> BuiltinData -> BuiltinData Source # | |||||
| HasBlueprintDefinition BuiltinData | |||||
Defined in PlutusTx.Blueprint.Definition.Unroll Associated Types
Methods definitionId :: DefinitionId | |||||
| HasFromBuiltin BuiltinData | |||||
Defined in PlutusTx.Builtins.HasBuiltin Associated Types
Methods fromBuiltin :: BuiltinData -> FromBuiltin BuiltinData # | |||||
| MkNil BuiltinData | |||||
Defined in PlutusTx.Builtins.HasOpaque Methods mkNil :: BuiltinList BuiltinData | |||||
| Eq BuiltinData | |||||
Defined in PlutusTx.Eq.Class Methods (==) :: BuiltinData -> BuiltinData -> Bool | |||||
| FromData BuiltinData | |||||
Defined in PlutusTx.IsData.Class Methods | |||||
| ToData BuiltinData | |||||
Defined in PlutusTx.IsData.Class Methods toBuiltinData :: BuiltinData -> BuiltinData # | |||||
| UnsafeFromData BuiltinData | |||||
Defined in PlutusTx.IsData.Class Methods | |||||
| Pretty BuiltinData | |||||
Defined in PlutusTx.Builtins.Internal | |||||
| HasBlueprintSchema BuiltinData referencedTypes | |||||
Defined in PlutusTx.Blueprint.Class Methods schema :: Schema referencedTypes | |||||
| HasFromOpaque BuiltinData BuiltinData | |||||
Defined in PlutusTx.Builtins.HasOpaque Methods fromOpaque :: BuiltinData -> BuiltinData # | |||||
| HasToOpaque BuiltinData BuiltinData | |||||
Defined in PlutusTx.Builtins.HasOpaque Methods toOpaque :: BuiltinData -> BuiltinData # | |||||
| HasTermLevel uni Data => Lift uni BuiltinData | |||||
Defined in PlutusTx.Lift.Class Methods lift :: BuiltinData -> RTCompile uni fun (Term TyName Name uni fun ()) | |||||
| HasTypeLevel uni Data => Typeable uni BuiltinData | |||||
Defined in PlutusTx.Lift.Class Methods typeRep :: Proxy BuiltinData -> RTCompile uni fun (Type TyName uni ()) | |||||
| HasToOpaque (BuiltinData, BuiltinData) (BuiltinPair BuiltinData BuiltinData) | |||||
Defined in PlutusTx.Builtins.HasOpaque Methods toOpaque :: (BuiltinData, BuiltinData) -> BuiltinPair BuiltinData BuiltinData # | |||||
| type Rep BuiltinData | |||||
Defined in PlutusTx.Builtins.Internal type Rep BuiltinData = D1 ('MetaData "BuiltinData" "PlutusTx.Builtins.Internal" "plutus-tx-1.60.0.0-2VI8qZOpowK2Zo3DTnqORk" 'False) (C1 ('MetaCons "BuiltinData" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceLazy 'DecidedLazy) (Rec0 Data))) | |||||
| type Unroll BuiltinData | |||||
Defined in PlutusTx.Blueprint.Definition.Unroll | |||||
| type FromBuiltin BuiltinData | |||||
Defined in PlutusTx.Builtins.HasBuiltin | |||||
Methods
toBuiltinData :: a -> BuiltinData #
Instances
| ToData Void | |
Defined in PlutusTx.IsData.Class Methods toBuiltinData :: Void -> BuiltinData # | |
| ToData Address Source # | |
Defined in PlutusLedgerApi.V1.Address Methods toBuiltinData :: Address -> BuiltinData # | |
| ToData LedgerBytes Source # | |
Defined in PlutusLedgerApi.V1.Bytes Methods toBuiltinData :: LedgerBytes -> BuiltinData # | |
| ToData ScriptContext Source # | |
Defined in PlutusLedgerApi.V1.Contexts Methods | |
| ToData ScriptPurpose Source # | |
Defined in PlutusLedgerApi.V1.Contexts Methods | |
| ToData TxInInfo Source # | |
Defined in PlutusLedgerApi.V1.Contexts Methods toBuiltinData :: TxInInfo -> BuiltinData # | |
| ToData TxInfo Source # | |
Defined in PlutusLedgerApi.V1.Contexts Methods toBuiltinData :: TxInfo -> BuiltinData # | |
| ToData Credential Source # | |
Defined in PlutusLedgerApi.V1.Credential Methods toBuiltinData :: Credential -> BuiltinData # | |
| ToData StakingCredential Source # | |
Defined in PlutusLedgerApi.V1.Credential Methods | |
| ToData PubKeyHash Source # | |
Defined in PlutusLedgerApi.V1.Crypto Methods toBuiltinData :: PubKeyHash -> BuiltinData # | |
| ToData DCert Source # | |
Defined in PlutusLedgerApi.V1.DCert Methods toBuiltinData :: DCert -> BuiltinData # | |
| ToData Address Source # | |
Defined in PlutusLedgerApi.V1.Data.Address Methods toBuiltinData :: Address -> BuiltinData # | |
| ToData ScriptContext Source # | |
Defined in PlutusLedgerApi.V1.Data.Contexts Methods | |
| ToData ScriptPurpose Source # | |
Defined in PlutusLedgerApi.V1.Data.Contexts Methods | |
| ToData TxInInfo Source # | |
Defined in PlutusLedgerApi.V1.Data.Contexts Methods toBuiltinData :: TxInInfo -> BuiltinData # | |
| ToData TxInfo Source # | |
Defined in PlutusLedgerApi.V1.Data.Contexts Methods toBuiltinData :: TxInfo -> BuiltinData # | |
| ToData Credential Source # | |
Defined in PlutusLedgerApi.V1.Data.Credential Methods toBuiltinData :: Credential -> BuiltinData # | |
| ToData StakingCredential Source # | |
Defined in PlutusLedgerApi.V1.Data.Credential Methods | |
| ToData DCert Source # | |
Defined in PlutusLedgerApi.V1.Data.DCert Methods toBuiltinData :: DCert -> BuiltinData # | |
| ToData DiffMilliSeconds Source # | |
Defined in PlutusLedgerApi.V1.Data.Time Methods | |
| ToData POSIXTime Source # | |
Defined in PlutusLedgerApi.V1.Data.Time Methods toBuiltinData :: POSIXTime -> BuiltinData # | |
| ToData TxId Source # | |
Defined in PlutusLedgerApi.V1.Data.Tx Methods toBuiltinData :: TxId -> BuiltinData # | |
| ToData TxOut Source # | |
Defined in PlutusLedgerApi.V1.Data.Tx Methods toBuiltinData :: TxOut -> BuiltinData # | |
| ToData TxOutRef Source # | |
Defined in PlutusLedgerApi.V1.Data.Tx Methods toBuiltinData :: TxOutRef -> BuiltinData # | |
| ToData AssetClass Source # | |
Defined in PlutusLedgerApi.V1.Data.Value Methods toBuiltinData :: AssetClass -> BuiltinData # | |
| ToData CurrencySymbol Source # | |
Defined in PlutusLedgerApi.V1.Data.Value Methods | |
| ToData Lovelace Source # | |
Defined in PlutusLedgerApi.V1.Data.Value Methods toBuiltinData :: Lovelace -> BuiltinData # | |
| ToData TokenName Source # | |
Defined in PlutusLedgerApi.V1.Data.Value Methods toBuiltinData :: TokenName -> BuiltinData # | |
| ToData Value Source # | |
Defined in PlutusLedgerApi.V1.Data.Value Methods toBuiltinData :: Value -> BuiltinData # | |
| ToData Datum Source # | |
Defined in PlutusLedgerApi.V1.Scripts Methods toBuiltinData :: Datum -> BuiltinData # | |
| ToData DatumHash Source # | |
Defined in PlutusLedgerApi.V1.Scripts Methods toBuiltinData :: DatumHash -> BuiltinData # | |
| ToData Redeemer Source # | |
Defined in PlutusLedgerApi.V1.Scripts Methods toBuiltinData :: Redeemer -> BuiltinData # | |
| ToData RedeemerHash Source # | |
Defined in PlutusLedgerApi.V1.Scripts Methods | |
| ToData ScriptHash Source # | |
Defined in PlutusLedgerApi.V1.Scripts Methods toBuiltinData :: ScriptHash -> BuiltinData # | |
| ToData DiffMilliSeconds Source # | |
Defined in PlutusLedgerApi.V1.Time Methods | |
| ToData POSIXTime Source # | |
Defined in PlutusLedgerApi.V1.Time Methods toBuiltinData :: POSIXTime -> BuiltinData # | |
| ToData RedeemerPtr Source # | |
Defined in PlutusLedgerApi.V1.Tx Methods toBuiltinData :: RedeemerPtr -> BuiltinData # | |
| ToData ScriptTag Source # | |
Defined in PlutusLedgerApi.V1.Tx Methods toBuiltinData :: ScriptTag -> BuiltinData # | |
| ToData TxId Source # | |
Defined in PlutusLedgerApi.V1.Tx Methods toBuiltinData :: TxId -> BuiltinData # | |
| ToData TxOut Source # | |
Defined in PlutusLedgerApi.V1.Tx Methods toBuiltinData :: TxOut -> BuiltinData # | |
| ToData TxOutRef Source # | |
Defined in PlutusLedgerApi.V1.Tx Methods toBuiltinData :: TxOutRef -> BuiltinData # | |
| ToData AssetClass Source # | |
Defined in PlutusLedgerApi.V1.Value Methods toBuiltinData :: AssetClass -> BuiltinData # | |
| ToData CurrencySymbol Source # | |
Defined in PlutusLedgerApi.V1.Value Methods | |
| ToData Lovelace Source # | |
Defined in PlutusLedgerApi.V1.Value Methods toBuiltinData :: Lovelace -> BuiltinData # | |
| ToData TokenName Source # | |
Defined in PlutusLedgerApi.V1.Value Methods toBuiltinData :: TokenName -> BuiltinData # | |
| ToData Value Source # | |
Defined in PlutusLedgerApi.V1.Value Methods toBuiltinData :: Value -> BuiltinData # | |
| ToData ScriptContext Source # | |
Defined in PlutusLedgerApi.V2.Contexts Methods | |
| ToData TxInInfo Source # | |
Defined in PlutusLedgerApi.V2.Contexts Methods toBuiltinData :: TxInInfo -> BuiltinData # | |
| ToData TxInfo Source # | |
Defined in PlutusLedgerApi.V2.Contexts Methods toBuiltinData :: TxInfo -> BuiltinData # | |
| ToData ScriptContext Source # | |
Defined in PlutusLedgerApi.V2.Data.Contexts Methods | |
| ToData TxInInfo Source # | |
Defined in PlutusLedgerApi.V2.Data.Contexts Methods toBuiltinData :: TxInInfo -> BuiltinData # | |
| ToData TxInfo Source # | |
Defined in PlutusLedgerApi.V2.Data.Contexts Methods toBuiltinData :: TxInfo -> BuiltinData # | |
| ToData OutputDatum Source # | |
Defined in PlutusLedgerApi.V2.Data.Tx Methods toBuiltinData :: OutputDatum -> BuiltinData # | |
| ToData TxOut Source # | |
Defined in PlutusLedgerApi.V2.Data.Tx Methods toBuiltinData :: TxOut -> BuiltinData # | |
| ToData OutputDatum Source # | |
Defined in PlutusLedgerApi.V2.Tx Methods toBuiltinData :: OutputDatum -> BuiltinData # | |
| ToData TxOut Source # | |
Defined in PlutusLedgerApi.V2.Tx Methods toBuiltinData :: TxOut -> BuiltinData # | |
| ToData ChangedParameters Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods | |
| ToData ColdCommitteeCredential Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods | |
| ToData Committee Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods toBuiltinData :: Committee -> BuiltinData # | |
| ToData Constitution Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods | |
| ToData DRep Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods toBuiltinData :: DRep -> BuiltinData # | |
| ToData DRepCredential Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods | |
| ToData Delegatee Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods toBuiltinData :: Delegatee -> BuiltinData # | |
| ToData GovernanceAction Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods | |
| ToData GovernanceActionId Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods | |
| ToData HotCommitteeCredential Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods | |
| ToData ProposalProcedure Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods | |
| ToData ProtocolVersion Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods | |
| ToData ScriptContext Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods | |
| ToData ScriptInfo Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods toBuiltinData :: ScriptInfo -> BuiltinData # | |
| ToData ScriptPurpose Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods | |
| ToData TxCert Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods toBuiltinData :: TxCert -> BuiltinData # | |
| ToData TxInInfo Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods toBuiltinData :: TxInInfo -> BuiltinData # | |
| ToData TxInfo Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods toBuiltinData :: TxInfo -> BuiltinData # | |
| ToData Vote Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods toBuiltinData :: Vote -> BuiltinData # | |
| ToData Voter Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods toBuiltinData :: Voter -> BuiltinData # | |
| ToData ChangedParameters Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |
| ToData ColdCommitteeCredential Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |
| ToData Committee Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods toBuiltinData :: Committee -> BuiltinData # | |
| ToData Constitution Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |
| ToData DRep Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods toBuiltinData :: DRep -> BuiltinData # | |
| ToData DRepCredential Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |
| ToData Delegatee Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods toBuiltinData :: Delegatee -> BuiltinData # | |
| ToData GovernanceAction Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |
| ToData GovernanceActionId Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |
| ToData HotCommitteeCredential Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |
| ToData ProposalProcedure Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |
| ToData ProtocolVersion Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |
| ToData ScriptContext Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |
| ToData ScriptInfo Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods toBuiltinData :: ScriptInfo -> BuiltinData # | |
| ToData ScriptPurpose Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |
| ToData TxCert Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods toBuiltinData :: TxCert -> BuiltinData # | |
| ToData TxInInfo Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods toBuiltinData :: TxInInfo -> BuiltinData # | |
| ToData TxInfo Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods toBuiltinData :: TxInfo -> BuiltinData # | |
| ToData Vote Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods toBuiltinData :: Vote -> BuiltinData # | |
| ToData Voter Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods toBuiltinData :: Voter -> BuiltinData # | |
| ToData MintValue Source # | |
Defined in PlutusLedgerApi.V3.Data.MintValue Methods toBuiltinData :: MintValue -> BuiltinData # | |
| ToData TxId Source # | |
Defined in PlutusLedgerApi.V3.Data.Tx Methods toBuiltinData :: TxId -> BuiltinData # | |
| ToData TxOutRef Source # | |
Defined in PlutusLedgerApi.V3.Data.Tx Methods toBuiltinData :: TxOutRef -> BuiltinData # | |
| ToData MintValue Source # | |
Defined in PlutusLedgerApi.V3.MintValue Methods toBuiltinData :: MintValue -> BuiltinData # | |
| ToData TxId Source # | |
Defined in PlutusLedgerApi.V3.Tx Methods toBuiltinData :: TxId -> BuiltinData # | |
| ToData TxOutRef Source # | |
Defined in PlutusLedgerApi.V3.Tx Methods toBuiltinData :: TxOutRef -> BuiltinData # | |
| ToData BuiltinBLS12_381_G1_Element | |
Defined in PlutusTx.IsData.Class Methods toBuiltinData :: BuiltinBLS12_381_G1_Element -> BuiltinData # | |
| ToData BuiltinBLS12_381_G2_Element | |
Defined in PlutusTx.IsData.Class Methods toBuiltinData :: BuiltinBLS12_381_G2_Element -> BuiltinData # | |
| (TypeError ('Text "toBuiltinData is not supported for BuiltinBLS12_381_MlResult") :: Constraint) => ToData BuiltinBLS12_381_MlResult | |
Defined in PlutusTx.IsData.Class Methods toBuiltinData :: BuiltinBLS12_381_MlResult -> BuiltinData # | |
| ToData BuiltinByteString | |
Defined in PlutusTx.IsData.Class Methods | |
| ToData BuiltinData | |
Defined in PlutusTx.IsData.Class Methods toBuiltinData :: BuiltinData -> BuiltinData # | |
| ToData Rational | |
Defined in PlutusTx.Ratio Methods toBuiltinData :: Rational -> BuiltinData # | |
| ToData Sqrt | |
Defined in PlutusTx.Sqrt Methods toBuiltinData :: Sqrt -> BuiltinData # | |
| ToData Integer | |
Defined in PlutusTx.IsData.Class Methods toBuiltinData :: Integer -> BuiltinData # | |
| (TypeError ('Text "Int is not supported, use Integer instead") :: Constraint) => ToData Int | |
Defined in PlutusTx.IsData.Class Methods toBuiltinData :: Int -> BuiltinData # | |
| ToData (Extended a) Source # | |
Defined in PlutusLedgerApi.V1.Data.Interval Methods toBuiltinData :: Extended a -> BuiltinData # | |
| ToData (Interval a) Source # | |
Defined in PlutusLedgerApi.V1.Data.Interval Methods toBuiltinData :: Interval a -> BuiltinData # | |
| ToData (LowerBound a) Source # | |
Defined in PlutusLedgerApi.V1.Data.Interval Methods toBuiltinData :: LowerBound a -> BuiltinData # | |
| ToData (UpperBound a) Source # | |
Defined in PlutusLedgerApi.V1.Data.Interval Methods toBuiltinData :: UpperBound a -> BuiltinData # | |
| ToData a => ToData (Extended a) Source # | |
Defined in PlutusLedgerApi.V1.Interval Methods toBuiltinData :: Extended a -> BuiltinData # | |
| ToData a => ToData (Interval a) Source # | |
Defined in PlutusLedgerApi.V1.Interval Methods toBuiltinData :: Interval a -> BuiltinData # | |
| ToData a => ToData (LowerBound a) Source # | |
Defined in PlutusLedgerApi.V1.Interval Methods toBuiltinData :: LowerBound a -> BuiltinData # | |
| ToData a => ToData (UpperBound a) Source # | |
Defined in PlutusLedgerApi.V1.Interval Methods toBuiltinData :: UpperBound a -> BuiltinData # | |
| ToData (List a) | |
Defined in PlutusTx.Data.List Methods toBuiltinData :: List a -> BuiltinData # | |
| ToData a => ToData [a] | |
Defined in PlutusTx.IsData.Class Methods toBuiltinData :: [a] -> BuiltinData # | |
| (ToData k, ToData v) => ToData (Map k v) | |
Defined in PlutusTx.AssocMap Methods toBuiltinData :: Map k v -> BuiltinData # | |
| ToData (Map k a) | |
Defined in PlutusTx.Data.AssocMap Methods toBuiltinData :: Map k a -> BuiltinData # | |
| (ToData a, ToData b) => ToData (These a b) | |
Defined in PlutusTx.These Methods toBuiltinData :: These a b -> BuiltinData # | |
Methods
fromBuiltinData :: BuiltinData -> Maybe a #
Instances
| FromData Void | |
Defined in PlutusTx.IsData.Class Methods fromBuiltinData :: BuiltinData -> Maybe Void # | |
| FromData Address Source # | |
Defined in PlutusLedgerApi.V1.Address Methods fromBuiltinData :: BuiltinData -> Maybe Address # | |
| FromData LedgerBytes Source # | |
Defined in PlutusLedgerApi.V1.Bytes Methods | |
| FromData ScriptContext Source # | |
Defined in PlutusLedgerApi.V1.Contexts Methods | |
| FromData ScriptPurpose Source # | |
Defined in PlutusLedgerApi.V1.Contexts Methods | |
| FromData TxInInfo Source # | |
Defined in PlutusLedgerApi.V1.Contexts Methods fromBuiltinData :: BuiltinData -> Maybe TxInInfo # | |
| FromData TxInfo Source # | |
Defined in PlutusLedgerApi.V1.Contexts Methods fromBuiltinData :: BuiltinData -> Maybe TxInfo # | |
| FromData Credential Source # | |
Defined in PlutusLedgerApi.V1.Credential Methods | |
| FromData StakingCredential Source # | |
Defined in PlutusLedgerApi.V1.Credential Methods | |
| FromData PubKeyHash Source # | |
Defined in PlutusLedgerApi.V1.Crypto Methods | |
| FromData DCert Source # | |
Defined in PlutusLedgerApi.V1.DCert Methods fromBuiltinData :: BuiltinData -> Maybe DCert # | |
| FromData Address Source # | |
Defined in PlutusLedgerApi.V1.Data.Address Methods fromBuiltinData :: BuiltinData -> Maybe Address # | |
| FromData ScriptContext Source # | |
Defined in PlutusLedgerApi.V1.Data.Contexts Methods | |
| FromData ScriptPurpose Source # | |
Defined in PlutusLedgerApi.V1.Data.Contexts Methods | |
| FromData TxInInfo Source # | |
Defined in PlutusLedgerApi.V1.Data.Contexts Methods fromBuiltinData :: BuiltinData -> Maybe TxInInfo # | |
| FromData TxInfo Source # | |
Defined in PlutusLedgerApi.V1.Data.Contexts Methods fromBuiltinData :: BuiltinData -> Maybe TxInfo # | |
| FromData Credential Source # | |
Defined in PlutusLedgerApi.V1.Data.Credential Methods | |
| FromData StakingCredential Source # | |
Defined in PlutusLedgerApi.V1.Data.Credential Methods | |
| FromData DCert Source # | |
Defined in PlutusLedgerApi.V1.Data.DCert Methods fromBuiltinData :: BuiltinData -> Maybe DCert # | |
| FromData DiffMilliSeconds Source # | |
Defined in PlutusLedgerApi.V1.Data.Time Methods | |
| FromData POSIXTime Source # | |
Defined in PlutusLedgerApi.V1.Data.Time Methods | |
| FromData TxId Source # | |
Defined in PlutusLedgerApi.V1.Data.Tx Methods fromBuiltinData :: BuiltinData -> Maybe TxId # | |
| FromData TxOut Source # | |
Defined in PlutusLedgerApi.V1.Data.Tx Methods fromBuiltinData :: BuiltinData -> Maybe TxOut # | |
| FromData TxOutRef Source # | |
Defined in PlutusLedgerApi.V1.Data.Tx Methods fromBuiltinData :: BuiltinData -> Maybe TxOutRef # | |
| FromData AssetClass Source # | |
Defined in PlutusLedgerApi.V1.Data.Value Methods | |
| FromData CurrencySymbol Source # | |
Defined in PlutusLedgerApi.V1.Data.Value Methods | |
| FromData Lovelace Source # | |
Defined in PlutusLedgerApi.V1.Data.Value Methods fromBuiltinData :: BuiltinData -> Maybe Lovelace # | |
| FromData TokenName Source # | |
Defined in PlutusLedgerApi.V1.Data.Value Methods | |
| FromData Value Source # | |
Defined in PlutusLedgerApi.V1.Data.Value Methods fromBuiltinData :: BuiltinData -> Maybe Value # | |
| FromData Datum Source # | |
Defined in PlutusLedgerApi.V1.Scripts Methods fromBuiltinData :: BuiltinData -> Maybe Datum # | |
| FromData DatumHash Source # | |
Defined in PlutusLedgerApi.V1.Scripts Methods | |
| FromData Redeemer Source # | |
Defined in PlutusLedgerApi.V1.Scripts Methods fromBuiltinData :: BuiltinData -> Maybe Redeemer # | |
| FromData RedeemerHash Source # | |
Defined in PlutusLedgerApi.V1.Scripts Methods | |
| FromData ScriptHash Source # | |
Defined in PlutusLedgerApi.V1.Scripts Methods | |
| FromData DiffMilliSeconds Source # | |
Defined in PlutusLedgerApi.V1.Time Methods | |
| FromData POSIXTime Source # | |
Defined in PlutusLedgerApi.V1.Time Methods | |
| FromData RedeemerPtr Source # | |
Defined in PlutusLedgerApi.V1.Tx Methods | |
| FromData ScriptTag Source # | |
Defined in PlutusLedgerApi.V1.Tx Methods | |
| FromData TxId Source # | |
Defined in PlutusLedgerApi.V1.Tx Methods fromBuiltinData :: BuiltinData -> Maybe TxId # | |
| FromData TxOut Source # | |
Defined in PlutusLedgerApi.V1.Tx Methods fromBuiltinData :: BuiltinData -> Maybe TxOut # | |
| FromData TxOutRef Source # | |
Defined in PlutusLedgerApi.V1.Tx Methods fromBuiltinData :: BuiltinData -> Maybe TxOutRef # | |
| FromData AssetClass Source # | |
Defined in PlutusLedgerApi.V1.Value Methods | |
| FromData CurrencySymbol Source # | |
Defined in PlutusLedgerApi.V1.Value Methods | |
| FromData Lovelace Source # | |
Defined in PlutusLedgerApi.V1.Value Methods fromBuiltinData :: BuiltinData -> Maybe Lovelace # | |
| FromData TokenName Source # | |
Defined in PlutusLedgerApi.V1.Value Methods | |
| FromData Value Source # | |
Defined in PlutusLedgerApi.V1.Value Methods fromBuiltinData :: BuiltinData -> Maybe Value # | |
| FromData ScriptContext Source # | |
Defined in PlutusLedgerApi.V2.Contexts Methods | |
| FromData TxInInfo Source # | |
Defined in PlutusLedgerApi.V2.Contexts Methods fromBuiltinData :: BuiltinData -> Maybe TxInInfo # | |
| FromData TxInfo Source # | |
Defined in PlutusLedgerApi.V2.Contexts Methods fromBuiltinData :: BuiltinData -> Maybe TxInfo # | |
| FromData ScriptContext Source # | |
Defined in PlutusLedgerApi.V2.Data.Contexts Methods | |
| FromData TxInInfo Source # | |
Defined in PlutusLedgerApi.V2.Data.Contexts Methods fromBuiltinData :: BuiltinData -> Maybe TxInInfo # | |
| FromData TxInfo Source # | |
Defined in PlutusLedgerApi.V2.Data.Contexts Methods fromBuiltinData :: BuiltinData -> Maybe TxInfo # | |
| FromData OutputDatum Source # | |
Defined in PlutusLedgerApi.V2.Data.Tx Methods | |
| FromData TxOut Source # | |
Defined in PlutusLedgerApi.V2.Data.Tx Methods fromBuiltinData :: BuiltinData -> Maybe TxOut # | |
| FromData OutputDatum Source # | |
Defined in PlutusLedgerApi.V2.Tx Methods | |
| FromData TxOut Source # | |
Defined in PlutusLedgerApi.V2.Tx Methods fromBuiltinData :: BuiltinData -> Maybe TxOut # | |
| FromData ChangedParameters Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods | |
| FromData ColdCommitteeCredential Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods fromBuiltinData :: BuiltinData -> Maybe ColdCommitteeCredential # | |
| FromData Committee Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods | |
| FromData Constitution Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods | |
| FromData DRep Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods fromBuiltinData :: BuiltinData -> Maybe DRep # | |
| FromData DRepCredential Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods | |
| FromData Delegatee Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods | |
| FromData GovernanceAction Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods | |
| FromData GovernanceActionId Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods fromBuiltinData :: BuiltinData -> Maybe GovernanceActionId # | |
| FromData HotCommitteeCredential Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods fromBuiltinData :: BuiltinData -> Maybe HotCommitteeCredential # | |
| FromData ProposalProcedure Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods | |
| FromData ProtocolVersion Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods | |
| FromData ScriptContext Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods | |
| FromData ScriptInfo Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods | |
| FromData ScriptPurpose Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods | |
| FromData TxCert Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods fromBuiltinData :: BuiltinData -> Maybe TxCert # | |
| FromData TxInInfo Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods fromBuiltinData :: BuiltinData -> Maybe TxInInfo # | |
| FromData TxInfo Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods fromBuiltinData :: BuiltinData -> Maybe TxInfo # | |
| FromData Vote Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods fromBuiltinData :: BuiltinData -> Maybe Vote # | |
| FromData Voter Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods fromBuiltinData :: BuiltinData -> Maybe Voter # | |
| FromData ChangedParameters Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |
| FromData ColdCommitteeCredential Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods fromBuiltinData :: BuiltinData -> Maybe ColdCommitteeCredential # | |
| FromData Committee Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |
| FromData Constitution Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |
| FromData DRep Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods fromBuiltinData :: BuiltinData -> Maybe DRep # | |
| FromData DRepCredential Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |
| FromData Delegatee Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |
| FromData GovernanceAction Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |
| FromData GovernanceActionId Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods fromBuiltinData :: BuiltinData -> Maybe GovernanceActionId # | |
| FromData HotCommitteeCredential Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods fromBuiltinData :: BuiltinData -> Maybe HotCommitteeCredential # | |
| FromData ProposalProcedure Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |
| FromData ProtocolVersion Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |
| FromData ScriptContext Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |
| FromData ScriptInfo Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |
| FromData ScriptPurpose Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |
| FromData TxCert Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods fromBuiltinData :: BuiltinData -> Maybe TxCert # | |
| FromData TxInInfo Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods fromBuiltinData :: BuiltinData -> Maybe TxInInfo # | |
| FromData TxInfo Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods fromBuiltinData :: BuiltinData -> Maybe TxInfo # | |
| FromData Vote Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods fromBuiltinData :: BuiltinData -> Maybe Vote # | |
| FromData Voter Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods fromBuiltinData :: BuiltinData -> Maybe Voter # | |
| FromData MintValue Source # | |
Defined in PlutusLedgerApi.V3.Data.MintValue Methods | |
| FromData TxId Source # | |
Defined in PlutusLedgerApi.V3.Data.Tx Methods fromBuiltinData :: BuiltinData -> Maybe TxId # | |
| FromData TxOutRef Source # | |
Defined in PlutusLedgerApi.V3.Data.Tx Methods fromBuiltinData :: BuiltinData -> Maybe TxOutRef # | |
| FromData MintValue Source # | |
Defined in PlutusLedgerApi.V3.MintValue Methods | |
| FromData TxId Source # | |
Defined in PlutusLedgerApi.V3.Tx Methods fromBuiltinData :: BuiltinData -> Maybe TxId # | |
| FromData TxOutRef Source # | |
Defined in PlutusLedgerApi.V3.Tx Methods fromBuiltinData :: BuiltinData -> Maybe TxOutRef # | |
| FromData BuiltinBLS12_381_G1_Element | |
Defined in PlutusTx.IsData.Class Methods fromBuiltinData :: BuiltinData -> Maybe BuiltinBLS12_381_G1_Element # | |
| FromData BuiltinBLS12_381_G2_Element | |
Defined in PlutusTx.IsData.Class Methods fromBuiltinData :: BuiltinData -> Maybe BuiltinBLS12_381_G2_Element # | |
| (TypeError ('Text "fromBuiltinData is not supported for BuiltinBLS12_381_MlResult") :: Constraint) => FromData BuiltinBLS12_381_MlResult | |
Defined in PlutusTx.IsData.Class Methods fromBuiltinData :: BuiltinData -> Maybe BuiltinBLS12_381_MlResult # | |
| FromData BuiltinByteString | |
Defined in PlutusTx.IsData.Class Methods | |
| FromData BuiltinData | |
Defined in PlutusTx.IsData.Class Methods | |
| FromData Rational | |
Defined in PlutusTx.Ratio Methods fromBuiltinData :: BuiltinData -> Maybe Rational # | |
| FromData Sqrt | |
Defined in PlutusTx.Sqrt Methods fromBuiltinData :: BuiltinData -> Maybe Sqrt # | |
| FromData Integer | |
Defined in PlutusTx.IsData.Class Methods fromBuiltinData :: BuiltinData -> Maybe Integer # | |
| (TypeError ('Text "Int is not supported, use Integer instead") :: Constraint) => FromData Int | |
Defined in PlutusTx.IsData.Class Methods fromBuiltinData :: BuiltinData -> Maybe Int # | |
| FromData (Extended a) Source # | |
Defined in PlutusLedgerApi.V1.Data.Interval Methods fromBuiltinData :: BuiltinData -> Maybe (Extended a) # | |
| FromData (Interval a) Source # | |
Defined in PlutusLedgerApi.V1.Data.Interval Methods fromBuiltinData :: BuiltinData -> Maybe (Interval a) # | |
| FromData (LowerBound a) Source # | |
Defined in PlutusLedgerApi.V1.Data.Interval Methods fromBuiltinData :: BuiltinData -> Maybe (LowerBound a) # | |
| FromData (UpperBound a) Source # | |
Defined in PlutusLedgerApi.V1.Data.Interval Methods fromBuiltinData :: BuiltinData -> Maybe (UpperBound a) # | |
| FromData a => FromData (Extended a) Source # | |
Defined in PlutusLedgerApi.V1.Interval Methods fromBuiltinData :: BuiltinData -> Maybe (Extended a) # | |
| FromData a => FromData (Interval a) Source # | |
Defined in PlutusLedgerApi.V1.Interval Methods fromBuiltinData :: BuiltinData -> Maybe (Interval a) # | |
| FromData a => FromData (LowerBound a) Source # | |
Defined in PlutusLedgerApi.V1.Interval Methods fromBuiltinData :: BuiltinData -> Maybe (LowerBound a) # | |
| FromData a => FromData (UpperBound a) Source # | |
Defined in PlutusLedgerApi.V1.Interval Methods fromBuiltinData :: BuiltinData -> Maybe (UpperBound a) # | |
| FromData (List a) | |
Defined in PlutusTx.Data.List Methods fromBuiltinData :: BuiltinData -> Maybe (List a) # | |
| FromData a => FromData [a] | |
Defined in PlutusTx.IsData.Class Methods fromBuiltinData :: BuiltinData -> Maybe [a] # | |
| (FromData k, FromData v) => FromData (Map k v) | |
Defined in PlutusTx.AssocMap Methods fromBuiltinData :: BuiltinData -> Maybe (Map k v) # | |
| FromData (Map k a) | |
Defined in PlutusTx.Data.AssocMap Methods fromBuiltinData :: BuiltinData -> Maybe (Map k a) # | |
| (FromData a, FromData b) => FromData (These a b) | |
Defined in PlutusTx.These Methods fromBuiltinData :: BuiltinData -> Maybe (These a b) # | |
class UnsafeFromData a where #
Methods
unsafeFromBuiltinData :: BuiltinData -> a #
Instances
| UnsafeFromData Void | |
Defined in PlutusTx.IsData.Class Methods | |
| UnsafeFromData Address Source # | |
Defined in PlutusLedgerApi.V1.Address Methods | |
| UnsafeFromData LedgerBytes Source # | |
Defined in PlutusLedgerApi.V1.Bytes Methods | |
| UnsafeFromData ScriptContext Source # | |
Defined in PlutusLedgerApi.V1.Contexts Methods | |
| UnsafeFromData ScriptPurpose Source # | |
Defined in PlutusLedgerApi.V1.Contexts Methods | |
| UnsafeFromData TxInInfo Source # | |
Defined in PlutusLedgerApi.V1.Contexts Methods | |
| UnsafeFromData TxInfo Source # | |
Defined in PlutusLedgerApi.V1.Contexts Methods | |
| UnsafeFromData Credential Source # | |
Defined in PlutusLedgerApi.V1.Credential Methods | |
| UnsafeFromData StakingCredential Source # | |
Defined in PlutusLedgerApi.V1.Credential Methods | |
| UnsafeFromData PubKeyHash Source # | |
Defined in PlutusLedgerApi.V1.Crypto Methods | |
| UnsafeFromData DCert Source # | |
Defined in PlutusLedgerApi.V1.DCert Methods | |
| UnsafeFromData Address Source # | |
Defined in PlutusLedgerApi.V1.Data.Address Methods | |
| UnsafeFromData ScriptContext Source # | |
Defined in PlutusLedgerApi.V1.Data.Contexts Methods | |
| UnsafeFromData ScriptPurpose Source # | |
Defined in PlutusLedgerApi.V1.Data.Contexts Methods | |
| UnsafeFromData TxInInfo Source # | |
Defined in PlutusLedgerApi.V1.Data.Contexts Methods | |
| UnsafeFromData TxInfo Source # | |
Defined in PlutusLedgerApi.V1.Data.Contexts Methods | |
| UnsafeFromData Credential Source # | |
Defined in PlutusLedgerApi.V1.Data.Credential Methods | |
| UnsafeFromData StakingCredential Source # | |
Defined in PlutusLedgerApi.V1.Data.Credential Methods | |
| UnsafeFromData DCert Source # | |
Defined in PlutusLedgerApi.V1.Data.DCert Methods | |
| UnsafeFromData DiffMilliSeconds Source # | |
Defined in PlutusLedgerApi.V1.Data.Time Methods | |
| UnsafeFromData POSIXTime Source # | |
Defined in PlutusLedgerApi.V1.Data.Time Methods | |
| UnsafeFromData TxId Source # | |
Defined in PlutusLedgerApi.V1.Data.Tx Methods | |
| UnsafeFromData TxOut Source # | |
Defined in PlutusLedgerApi.V1.Data.Tx Methods | |
| UnsafeFromData TxOutRef Source # | |
Defined in PlutusLedgerApi.V1.Data.Tx Methods | |
| UnsafeFromData AssetClass Source # | |
Defined in PlutusLedgerApi.V1.Data.Value Methods | |
| UnsafeFromData CurrencySymbol Source # | |
Defined in PlutusLedgerApi.V1.Data.Value Methods | |
| UnsafeFromData Lovelace Source # | |
Defined in PlutusLedgerApi.V1.Data.Value Methods | |
| UnsafeFromData TokenName Source # | |
Defined in PlutusLedgerApi.V1.Data.Value Methods | |
| UnsafeFromData Value Source # | |
Defined in PlutusLedgerApi.V1.Data.Value Methods | |
| UnsafeFromData Datum Source # | |
Defined in PlutusLedgerApi.V1.Scripts Methods | |
| UnsafeFromData DatumHash Source # | |
Defined in PlutusLedgerApi.V1.Scripts Methods | |
| UnsafeFromData Redeemer Source # | |
Defined in PlutusLedgerApi.V1.Scripts Methods | |
| UnsafeFromData RedeemerHash Source # | |
Defined in PlutusLedgerApi.V1.Scripts Methods | |
| UnsafeFromData ScriptHash Source # | |
Defined in PlutusLedgerApi.V1.Scripts Methods | |
| UnsafeFromData DiffMilliSeconds Source # | |
Defined in PlutusLedgerApi.V1.Time Methods | |
| UnsafeFromData POSIXTime Source # | |
Defined in PlutusLedgerApi.V1.Time Methods | |
| UnsafeFromData RedeemerPtr Source # | |
Defined in PlutusLedgerApi.V1.Tx Methods | |
| UnsafeFromData ScriptTag Source # | |
Defined in PlutusLedgerApi.V1.Tx Methods | |
| UnsafeFromData TxId Source # | |
Defined in PlutusLedgerApi.V1.Tx Methods | |
| UnsafeFromData TxOut Source # | |
Defined in PlutusLedgerApi.V1.Tx Methods | |
| UnsafeFromData TxOutRef Source # | |
Defined in PlutusLedgerApi.V1.Tx Methods | |
| UnsafeFromData AssetClass Source # | |
Defined in PlutusLedgerApi.V1.Value Methods | |
| UnsafeFromData CurrencySymbol Source # | |
Defined in PlutusLedgerApi.V1.Value Methods | |
| UnsafeFromData Lovelace Source # | |
Defined in PlutusLedgerApi.V1.Value Methods | |
| UnsafeFromData TokenName Source # | |
Defined in PlutusLedgerApi.V1.Value Methods | |
| UnsafeFromData Value Source # | |
Defined in PlutusLedgerApi.V1.Value Methods | |
| UnsafeFromData ScriptContext Source # | |
Defined in PlutusLedgerApi.V2.Contexts Methods | |
| UnsafeFromData TxInInfo Source # | |
Defined in PlutusLedgerApi.V2.Contexts Methods | |
| UnsafeFromData TxInfo Source # | |
Defined in PlutusLedgerApi.V2.Contexts Methods | |
| UnsafeFromData ScriptContext Source # | |
Defined in PlutusLedgerApi.V2.Data.Contexts Methods | |
| UnsafeFromData TxInInfo Source # | |
Defined in PlutusLedgerApi.V2.Data.Contexts Methods | |
| UnsafeFromData TxInfo Source # | |
Defined in PlutusLedgerApi.V2.Data.Contexts Methods | |
| UnsafeFromData OutputDatum Source # | |
Defined in PlutusLedgerApi.V2.Data.Tx Methods | |
| UnsafeFromData TxOut Source # | |
Defined in PlutusLedgerApi.V2.Data.Tx Methods | |
| UnsafeFromData OutputDatum Source # | |
Defined in PlutusLedgerApi.V2.Tx Methods | |
| UnsafeFromData TxOut Source # | |
Defined in PlutusLedgerApi.V2.Tx Methods | |
| UnsafeFromData ChangedParameters Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods | |
| UnsafeFromData ColdCommitteeCredential Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods unsafeFromBuiltinData :: BuiltinData -> ColdCommitteeCredential # | |
| UnsafeFromData Committee Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods | |
| UnsafeFromData Constitution Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods | |
| UnsafeFromData DRep Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods | |
| UnsafeFromData DRepCredential Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods | |
| UnsafeFromData Delegatee Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods | |
| UnsafeFromData GovernanceAction Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods | |
| UnsafeFromData GovernanceActionId Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods unsafeFromBuiltinData :: BuiltinData -> GovernanceActionId # | |
| UnsafeFromData HotCommitteeCredential Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods unsafeFromBuiltinData :: BuiltinData -> HotCommitteeCredential # | |
| UnsafeFromData ProposalProcedure Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods | |
| UnsafeFromData ProtocolVersion Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods | |
| UnsafeFromData ScriptContext Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods | |
| UnsafeFromData ScriptInfo Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods | |
| UnsafeFromData ScriptPurpose Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods | |
| UnsafeFromData TxCert Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods | |
| UnsafeFromData TxInInfo Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods | |
| UnsafeFromData TxInfo Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods | |
| UnsafeFromData Vote Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods | |
| UnsafeFromData Voter Source # | |
Defined in PlutusLedgerApi.V3.Contexts Methods | |
| UnsafeFromData ChangedParameters Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |
| UnsafeFromData ColdCommitteeCredential Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods unsafeFromBuiltinData :: BuiltinData -> ColdCommitteeCredential # | |
| UnsafeFromData Committee Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |
| UnsafeFromData Constitution Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |
| UnsafeFromData DRep Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |
| UnsafeFromData DRepCredential Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |
| UnsafeFromData Delegatee Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |
| UnsafeFromData GovernanceAction Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |
| UnsafeFromData GovernanceActionId Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods unsafeFromBuiltinData :: BuiltinData -> GovernanceActionId # | |
| UnsafeFromData HotCommitteeCredential Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods unsafeFromBuiltinData :: BuiltinData -> HotCommitteeCredential # | |
| UnsafeFromData ProposalProcedure Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |
| UnsafeFromData ProtocolVersion Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |
| UnsafeFromData ScriptContext Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |
| UnsafeFromData ScriptInfo Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |
| UnsafeFromData ScriptPurpose Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |
| UnsafeFromData TxCert Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |
| UnsafeFromData TxInInfo Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |
| UnsafeFromData TxInfo Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |
| UnsafeFromData Vote Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |
| UnsafeFromData Voter Source # | |
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |
| UnsafeFromData MintValue Source # | |
Defined in PlutusLedgerApi.V3.Data.MintValue Methods | |
| UnsafeFromData TxId Source # | |
Defined in PlutusLedgerApi.V3.Data.Tx Methods | |
| UnsafeFromData TxOutRef Source # | |
Defined in PlutusLedgerApi.V3.Data.Tx Methods | |
| UnsafeFromData MintValue Source # | |
Defined in PlutusLedgerApi.V3.MintValue Methods | |
| UnsafeFromData TxId Source # | |
Defined in PlutusLedgerApi.V3.Tx Methods | |
| UnsafeFromData TxOutRef Source # | |
Defined in PlutusLedgerApi.V3.Tx Methods | |
| UnsafeFromData BuiltinBLS12_381_G1_Element | |
Defined in PlutusTx.IsData.Class Methods unsafeFromBuiltinData :: BuiltinData -> BuiltinBLS12_381_G1_Element # | |
| UnsafeFromData BuiltinBLS12_381_G2_Element | |
Defined in PlutusTx.IsData.Class Methods unsafeFromBuiltinData :: BuiltinData -> BuiltinBLS12_381_G2_Element # | |
| (TypeError ('Text "unsafeFromBuiltinData is not supported for BuiltinBLS12_381_MlResult") :: Constraint) => UnsafeFromData BuiltinBLS12_381_MlResult | |
Defined in PlutusTx.IsData.Class Methods unsafeFromBuiltinData :: BuiltinData -> BuiltinBLS12_381_MlResult # | |
| UnsafeFromData BuiltinByteString | |
Defined in PlutusTx.IsData.Class Methods | |
| UnsafeFromData BuiltinData | |
Defined in PlutusTx.IsData.Class Methods | |
| UnsafeFromData Rational | |
Defined in PlutusTx.Ratio Methods | |
| UnsafeFromData Sqrt | |
Defined in PlutusTx.Sqrt Methods unsafeFromBuiltinData :: BuiltinData -> Sqrt # | |
| UnsafeFromData Integer | |
Defined in PlutusTx.IsData.Class Methods | |
| (TypeError ('Text "Int is not supported, use Integer instead") :: Constraint) => UnsafeFromData Int | |
Defined in PlutusTx.IsData.Class Methods unsafeFromBuiltinData :: BuiltinData -> Int # | |
| UnsafeFromData (Extended a) Source # | |
Defined in PlutusLedgerApi.V1.Data.Interval Methods unsafeFromBuiltinData :: BuiltinData -> Extended a # | |
| UnsafeFromData (Interval a) Source # | |
Defined in PlutusLedgerApi.V1.Data.Interval Methods unsafeFromBuiltinData :: BuiltinData -> Interval a # | |
| UnsafeFromData (LowerBound a) Source # | |
Defined in PlutusLedgerApi.V1.Data.Interval Methods unsafeFromBuiltinData :: BuiltinData -> LowerBound a # | |
| UnsafeFromData (UpperBound a) Source # | |
Defined in PlutusLedgerApi.V1.Data.Interval Methods unsafeFromBuiltinData :: BuiltinData -> UpperBound a # | |
| UnsafeFromData a => UnsafeFromData (Extended a) Source # | |
Defined in PlutusLedgerApi.V1.Interval Methods unsafeFromBuiltinData :: BuiltinData -> Extended a # | |
| UnsafeFromData a => UnsafeFromData (Interval a) Source # | |
Defined in PlutusLedgerApi.V1.Interval Methods unsafeFromBuiltinData :: BuiltinData -> Interval a # | |
| UnsafeFromData a => UnsafeFromData (LowerBound a) Source # | |
Defined in PlutusLedgerApi.V1.Interval Methods unsafeFromBuiltinData :: BuiltinData -> LowerBound a # | |
| UnsafeFromData a => UnsafeFromData (UpperBound a) Source # | |
Defined in PlutusLedgerApi.V1.Interval Methods unsafeFromBuiltinData :: BuiltinData -> UpperBound a # | |
| UnsafeFromData (List a) | |
Defined in PlutusTx.Data.List Methods unsafeFromBuiltinData :: BuiltinData -> List a # | |
| UnsafeFromData a => UnsafeFromData [a] | |
Defined in PlutusTx.IsData.Class Methods unsafeFromBuiltinData :: BuiltinData -> [a] # | |
| (UnsafeFromData k, UnsafeFromData v) => UnsafeFromData (Map k v) | |
Defined in PlutusTx.AssocMap Methods unsafeFromBuiltinData :: BuiltinData -> Map k v # | |
| UnsafeFromData (Map k a) | |
Defined in PlutusTx.Data.AssocMap Methods unsafeFromBuiltinData :: BuiltinData -> Map k a # | |
| (UnsafeFromData a, UnsafeFromData b) => UnsafeFromData (These a b) | |
Defined in PlutusTx.These Methods unsafeFromBuiltinData :: BuiltinData -> These a b # | |
unsafeFromData :: UnsafeFromData a => Data -> a #
dataToBuiltinData :: Data -> BuiltinData #
builtinDataToData :: BuiltinData -> Data #
Errors
class Monad m => MonadError e (m :: Type -> Type) | m -> e Source #
The strategy of combining computations that can throw exceptions by bypassing bound functions from the point an exception is thrown to the point that it is handled.
Is parameterized over the type of error information and
the monad type constructor.
It is common to use as the monad type constructor
for an error monad in which error descriptions take the form of strings.
In that case and many other common cases the resulting monad is already defined
as an instance of the Either StringMonadError class.
You can also define your own error type and/or use a monad type constructor
other than or Either String.
In these cases you will have to explicitly define instances of the Either IOErrorMonadError
class.
(If you are using the deprecated Control.Monad.Error or
Control.Monad.Trans.Error, you may also have to define an Error instance.)
Minimal complete definition
Instances
| MonadError IOException IO | |
Defined in Control.Monad.Error.Class Methods throwError :: IOException -> IO a Source # catchError :: IO a -> (IOException -> IO a) -> IO a Source # | |
| MonadError BuiltinError BuiltinResult | |
Defined in PlutusCore.Builtin.Result Methods throwError :: BuiltinError -> BuiltinResult a Source # catchError :: BuiltinResult a -> (BuiltinError -> BuiltinResult a) -> BuiltinResult a Source # | |
| MonadError () EvaluationResult | |
Defined in PlutusCore.Evaluation.Result Methods throwError :: () -> EvaluationResult a Source # catchError :: EvaluationResult a -> (() -> EvaluationResult a) -> EvaluationResult a Source # | |
| MonadError () Maybe | Since: mtl-2.2.2 |
Defined in Control.Monad.Error.Class Methods throwError :: () -> Maybe a Source # catchError :: Maybe a -> (() -> Maybe a) -> Maybe a Source # | |
| MonadError e (Either e) | |
Defined in Control.Monad.Error.Class Methods throwError :: e -> Either e a Source # catchError :: Either e a -> (e -> Either e a) -> Either e a Source # | |
| MonadError e m => MonadError e (Free m) | |
Defined in Control.Monad.Free Methods throwError :: e -> Free m a Source # catchError :: Free m a -> (e -> Free m a) -> Free m a Source # | |
| MonadError e m => MonadError e (GenT m) | |
Defined in Hedgehog.Internal.Gen Methods throwError :: e -> GenT m a Source # catchError :: GenT m a -> (e -> GenT m a) -> GenT m a Source # | |
| MonadError e m => MonadError e (PropertyT m) | |
Defined in Hedgehog.Internal.Property Methods throwError :: e -> PropertyT m a Source # catchError :: PropertyT m a -> (e -> PropertyT m a) -> PropertyT m a Source # | |
| MonadError e m => MonadError e (TestT m) | |
Defined in Hedgehog.Internal.Property Methods throwError :: e -> TestT m a Source # catchError :: TestT m a -> (e -> TestT m a) -> TestT m a Source # | |
| MonadError e m => MonadError e (TreeT m) | |
Defined in Hedgehog.Internal.Tree Methods throwError :: e -> TreeT m a Source # catchError :: TreeT m a -> (e -> TreeT m a) -> TreeT m a Source # | |
| MonadError e m => MonadError e (ListT m) | |
Defined in ListT Methods throwError :: e -> ListT m a Source # catchError :: ListT m a -> (e -> ListT m a) -> ListT m a Source # | |
| MonadError e m => MonadError e (QuoteT m) | |
Defined in PlutusCore.Quote Methods throwError :: e -> QuoteT m a Source # catchError :: QuoteT m a -> (e -> QuoteT m a) -> QuoteT m a Source # | |
| MonadError e m => MonadError e (ResourceT m) | |
Defined in Control.Monad.Trans.Resource.Internal Methods throwError :: e -> ResourceT m a Source # catchError :: ResourceT m a -> (e -> ResourceT m a) -> ResourceT m a Source # | |
| MonadError e m => MonadError e (MaybeT m) | |
Defined in Control.Monad.Error.Class Methods throwError :: e -> MaybeT m a Source # catchError :: MaybeT m a -> (e -> MaybeT m a) -> MaybeT m a Source # | |
| (Functor f, MonadError e m) => MonadError e (FreeT f m) | |
Defined in Control.Monad.Trans.Free Methods throwError :: e -> FreeT f m a Source # catchError :: FreeT f m a -> (e -> FreeT f m a) -> FreeT f m a Source # | |
| (Monoid w, MonadError e m) => MonadError e (AccumT w m) | Since: mtl-2.3 |
Defined in Control.Monad.Error.Class Methods throwError :: e -> AccumT w m a Source # catchError :: AccumT w m a -> (e -> AccumT w m a) -> AccumT w m a Source # | |
| Monad m => MonadError e (ExceptT e m) | Since: mtl-2.2 |
Defined in Control.Monad.Error.Class Methods throwError :: e -> ExceptT e m a Source # catchError :: ExceptT e m a -> (e -> ExceptT e m a) -> ExceptT e m a Source # | |
| MonadError e m => MonadError e (IdentityT m) | |
Defined in Control.Monad.Error.Class Methods throwError :: e -> IdentityT m a Source # catchError :: IdentityT m a -> (e -> IdentityT m a) -> IdentityT m a Source # | |
| MonadError e m => MonadError e (ReaderT r m) | |
Defined in Control.Monad.Error.Class Methods throwError :: e -> ReaderT r m a Source # catchError :: ReaderT r m a -> (e -> ReaderT r m a) -> ReaderT r m a Source # | |
| MonadError e m => MonadError e (StateT s m) | |
Defined in Control.Monad.Error.Class Methods throwError :: e -> StateT s m a Source # catchError :: StateT s m a -> (e -> StateT s m a) -> StateT s m a Source # | |
| MonadError e m => MonadError e (StateT s m) | |
Defined in Control.Monad.Error.Class Methods throwError :: e -> StateT s m a Source # catchError :: StateT s m a -> (e -> StateT s m a) -> StateT s m a Source # | |
| (Monoid w, MonadError e m) => MonadError e (WriterT w m) | Since: mtl-2.3 |
Defined in Control.Monad.Error.Class Methods throwError :: e -> WriterT w m a Source # catchError :: WriterT w m a -> (e -> WriterT w m a) -> WriterT w m a Source # | |
| (Monoid w, MonadError e m) => MonadError e (WriterT w m) | |
Defined in Control.Monad.Error.Class Methods throwError :: e -> WriterT w m a Source # catchError :: WriterT w m a -> (e -> WriterT w m a) -> WriterT w m a Source # | |
| (Monoid w, MonadError e m) => MonadError e (WriterT w m) | |
Defined in Control.Monad.Error.Class Methods throwError :: e -> WriterT w m a Source # catchError :: WriterT w m a -> (e -> WriterT w m a) -> WriterT w m a Source # | |
| (Monoid w, MonadError e m) => MonadError e (RWST r w s m) | Since: mtl-2.3 |
Defined in Control.Monad.Error.Class Methods throwError :: e -> RWST r w s m a Source # catchError :: RWST r w s m a -> (e -> RWST r w s m a) -> RWST r w s m a Source # | |
| (Monoid w, MonadError e m) => MonadError e (RWST r w s m) | |
Defined in Control.Monad.Error.Class Methods throwError :: e -> RWST r w s m a Source # catchError :: RWST r w s m a -> (e -> RWST r w s m a) -> RWST r w s m a Source # | |
| (Monoid w, MonadError e m) => MonadError e (RWST r w s m) | |
Defined in Control.Monad.Error.Class Methods throwError :: e -> RWST r w s m a Source # catchError :: RWST r w s m a -> (e -> RWST r w s m a) -> RWST r w s m a Source # | |
| MonadError e m => MonadError e (DefT key uni fun ann m) | |
Defined in PlutusIR.Compiler.Definitions Methods throwError :: e -> DefT key uni fun ann m a Source # catchError :: DefT key uni fun ann m a -> (e -> DefT key uni fun ann m a) -> DefT key uni fun ann m a Source # | |
| ThrowableBuiltins uni fun => MonadError (CekEvaluationException NamedDeBruijn uni fun) (CekM uni fun s) | |
Defined in UntypedPlutusCore.Evaluation.Machine.Cek.Internal Methods throwError :: CekEvaluationException NamedDeBruijn uni fun -> CekM uni fun s a Source # catchError :: CekM uni fun s a -> (CekEvaluationException NamedDeBruijn uni fun -> CekM uni fun s a) -> CekM uni fun s a Source # | |