atlas-cardano-0.5.0: Application backend for Plutus smart contracts on Cardano
Copyright(c) 2023 GYELD GMBH
LicenseApache 2.0
Maintainer[email protected]
Stabilitydevelop
Safe HaskellSafe-Inferred
LanguageGHC2021

GeniusYield.Types.Datum

Description

 
Synopsis

Datum

data GYDatum #

Datum

In the GY system we always include datums in transactions so this simple type is sufficient.

Instances

Instances details
Show GYDatum # 
Instance details

Defined in GeniusYield.Types.Datum

Eq GYDatum # 
Instance details

Defined in GeniusYield.Types.Datum

Methods

(==)GYDatumGYDatumBool Source #

(/=)GYDatumGYDatumBool Source #

Ord GYDatum # 
Instance details

Defined in GeniusYield.Types.Datum

FromData GYDatum # 
Instance details

Defined in GeniusYield.Types.Datum

ToData GYDatum # 
Instance details

Defined in GeniusYield.Types.Datum

datumToApi'GYDatumHashableScriptData #

Convert a GYDatum to HashableScriptData from Cardano Api.

NOTE: This function is to be used only when generating for new outputs in a transaction as doing datumFromApi` followed by datumToApi` does not guarantee same low level CBOR representation of the high level data type.

datumToPlutusGYDatumDatum #

Convert a GYDatum to Datum from Plutus

datumToPlutus'GYDatumBuiltinData #

Convert a GYDatum to BuiltinData from Plutus

datumFromPlutusDatumGYDatum #

Get a GYDatum from a Plutus Datum

datumFromPlutusDataToData a ⇒ a → GYDatum #

Get a GYDatum from any Plutus ToData type.

hashDatumGYDatumGYDatumHash #

Returns the GYDatumHash of the given GYDatum

Datum hash

data GYDatumHash #

Instances

Instances details
FromJSON GYDatumHash # 
Instance details

Defined in GeniusYield.Types.Datum

ToJSON GYDatumHash # 
Instance details

Defined in GeniusYield.Types.Datum

IsString GYDatumHash # 
Instance details

Defined in GeniusYield.Types.Datum

Show GYDatumHash # 
Instance details

Defined in GeniusYield.Types.Datum

Eq GYDatumHash # 
Instance details

Defined in GeniusYield.Types.Datum

Ord GYDatumHash # 
Instance details

Defined in GeniusYield.Types.Datum

ToHttpApiData GYDatumHash # 
Instance details

Defined in GeniusYield.Types.Datum

FromField GYDatumHash # 
Instance details

Defined in GeniusYield.Types.Datum

ToField GYDatumHash # 
Instance details

Defined in GeniusYield.Types.Datum