Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type ReferenceScript = ReferenceScript BabbageEra
- type MintingWitnessesMap = Map MintingPolicyHash (Redeemer, Maybe (Versioned TxOutRef))
- type ScriptsMap = Map ScriptHash (Versioned Script)
- newtype TxOut = TxOut {
- getTxOut :: TxOut CtxTx BabbageEra
- data Certificate = Certificate {}
- data Withdrawal = Withdrawal {}
- cardanoTxOutValue :: TxOut ctx era -> Value
- txOutValue :: TxOut -> Value
- outValue :: Lens TxOut TxOut Value (TxOutValue BabbageEra)
- outValue' :: Lens' TxOut (TxOutValue BabbageEra)
- toSizedTxOut :: TxOut -> Sized (TxOut StandardBabbage)
- toCtxUTxOTxOut :: TxOut -> TxOut CtxUTxO BabbageEra
- txOutDatumHash :: TxOut -> Maybe DatumHash
- txOutDatum :: forall d. FromData d => TxOut -> Maybe d
- cardanoTxOutDatumHash :: TxOutDatum CtxUTxO BabbageEra -> Maybe (Hash ScriptData)
- txOutPubKey :: TxOut -> Maybe PubKeyHash
- txOutAddress :: TxOut -> CardanoAddress
- outAddress :: Lens' TxOut (AddressInEra BabbageEra)
- outDatumHash :: Lens TxOut TxOut (Maybe DatumHash) (TxOutDatum CtxTx BabbageEra)
- txOutReferenceScript :: TxOut -> ReferenceScript
- outReferenceScript :: Lens' TxOut ReferenceScript
- lookupScript :: ScriptsMap -> ScriptHash -> Maybe (Versioned Script)
- lookupValidator :: ScriptsMap -> ValidatorHash -> Maybe (Versioned Validator)
- lookupMintingPolicy :: ScriptsMap -> MintingPolicyHash -> Maybe (Versioned MintingPolicy)
- lookupStakeValidator :: ScriptsMap -> StakeValidatorHash -> Maybe (Versioned StakeValidator)
- emptyTxBodyContent :: TxBodyContent BuildTx BabbageEra
- data Language
- newtype TxOut = TxOut {
- getTxOut :: TxOut CtxTx BabbageEra
- data TxOutRef = TxOutRef {
- txOutRefId :: TxId
- txOutRefIdx :: Integer
- data Versioned script = Versioned {
- unversioned :: script
- version :: Language
Documentation
type ReferenceScript = ReferenceScript BabbageEra Source #
type MintingWitnessesMap = Map MintingPolicyHash (Redeemer, Maybe (Versioned TxOutRef)) Source #
type ScriptsMap = Map ScriptHash (Versioned Script) Source #
Instances
Eq TxOut Source # | |
Show TxOut Source # | |
Generic TxOut Source # | |
Serialise TxOut Source # | |
Defined in Ledger.Tx.Internal encodeList :: [TxOut] -> Encoding decodeList :: Decoder s [TxOut] | |
FromJSON TxOut Source # | |
Defined in Ledger.Tx.Internal parseJSON :: Value -> Parser TxOut parseJSONList :: Value -> Parser [TxOut] | |
ToJSON TxOut Source # | |
Defined in Ledger.Tx.Internal | |
Pretty TxOut Source # | |
Defined in Ledger.Tx.Internal | |
FromCBOR TxOut Source # | |
ToCBOR TxOut Source # | |
Defined in Ledger.Tx.Internal encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy TxOut -> Size encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [TxOut] -> Size | |
type Rep TxOut Source # | |
Defined in Ledger.Tx.Internal |
data Certificate Source #
Certificate | |
|
Instances
data Withdrawal Source #
Stake withdrawal, if applicable the script should be included in txScripts.
Withdrawal | |
|
Instances
cardanoTxOutValue :: TxOut ctx era -> Value Source #
txOutValue :: TxOut -> Value Source #
toSizedTxOut :: TxOut -> Sized (TxOut StandardBabbage) Source #
toCtxUTxOTxOut :: TxOut -> TxOut CtxUTxO BabbageEra Source #
txOutDatumHash :: TxOut -> Maybe DatumHash Source #
Get a hash from the stored TxOutDatum (either directly or by hashing the inlined datum)
txOutDatum :: forall d. FromData d => TxOut -> Maybe d Source #
cardanoTxOutDatumHash :: TxOutDatum CtxUTxO BabbageEra -> Maybe (Hash ScriptData) Source #
txOutPubKey :: TxOut -> Maybe PubKeyHash Source #
txOutAddress :: TxOut -> CardanoAddress Source #
outAddress :: Lens' TxOut (AddressInEra BabbageEra) Source #
outReferenceScript :: Lens' TxOut ReferenceScript Source #
lookupScript :: ScriptsMap -> ScriptHash -> Maybe (Versioned Script) Source #
lookupValidator :: ScriptsMap -> ValidatorHash -> Maybe (Versioned Validator) Source #
lookupStakeValidator :: ScriptsMap -> StakeValidatorHash -> Maybe (Versioned StakeValidator) Source #
emptyTxBodyContent :: TxBodyContent BuildTx BabbageEra Source #
Instances
Instances
Eq TxOut Source # | |
Show TxOut Source # | |
Generic TxOut Source # | |
Serialise TxOut Source # | |
Defined in Ledger.Tx.Internal encodeList :: [TxOut] -> Encoding decodeList :: Decoder s [TxOut] | |
FromJSON TxOut Source # | |
Defined in Ledger.Tx.Internal parseJSON :: Value -> Parser TxOut parseJSONList :: Value -> Parser [TxOut] | |
ToJSON TxOut Source # | |
Defined in Ledger.Tx.Internal | |
Pretty TxOut Source # | |
Defined in Ledger.Tx.Internal | |
FromCBOR TxOut Source # | |
ToCBOR TxOut Source # | |
Defined in Ledger.Tx.Internal encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy TxOut -> Size encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [TxOut] -> Size | |
type Rep TxOut Source # | |
Defined in Ledger.Tx.Internal |
TxOutRef | |
|
Instances
Versioned | |
|
Instances
Functor Versioned | |
Eq script => Eq (Versioned script) | |
Ord script => Ord (Versioned script) | |
Defined in Plutus.Script.Utils.Scripts compare :: Versioned script -> Versioned script -> Ordering Source # (<) :: Versioned script -> Versioned script -> Bool Source # (<=) :: Versioned script -> Versioned script -> Bool Source # (>) :: Versioned script -> Versioned script -> Bool Source # (>=) :: Versioned script -> Versioned script -> Bool Source # max :: Versioned script -> Versioned script -> Versioned script Source # min :: Versioned script -> Versioned script -> Versioned script Source # | |
Show script => Show (Versioned script) | |
Generic (Versioned script) | |
Serialise script => Serialise (Versioned script) | |
Defined in Plutus.Script.Utils.Scripts encode :: Versioned script -> Encoding decode :: Decoder s (Versioned script) encodeList :: [Versioned script] -> Encoding decodeList :: Decoder s [Versioned script] | |
FromJSON script => FromJSON (Versioned script) | |
Defined in Plutus.Script.Utils.Scripts parseJSON :: Value -> Parser (Versioned script) parseJSONList :: Value -> Parser [Versioned script] | |
ToJSON script => ToJSON (Versioned script) | |
Defined in Plutus.Script.Utils.Scripts toJSON :: Versioned script -> Value toEncoding :: Versioned script -> Encoding toJSONList :: [Versioned script] -> Value toEncodingList :: [Versioned script] -> Encoding | |
Pretty script => Pretty (Versioned script) | |
Defined in Plutus.Script.Utils.Scripts | |
type Rep (Versioned script) | |
Defined in Plutus.Script.Utils.Scripts type Rep (Versioned script) = D1 ('MetaData "Versioned" "Plutus.Script.Utils.Scripts" "plutus-script-utils-1.2.0.0-5TpLCy32WGLK5IaOxcwe9j" 'False) (C1 ('MetaCons "Versioned" 'PrefixI 'True) (S1 ('MetaSel ('Just "unversioned") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 script) :*: S1 ('MetaSel ('Just "version") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Language))) |