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

GeniusYield.Types.Anchor

Description

 
Synopsis

Documentation

data GYUrl #

URL to a JSON payload of metadata. Note that we require URL to be at most 128 bytes. >>> textToUrl "https://geniusyield.co" GYUrl (Url {urlToText = "https://geniusyield.co"})

Instances

Instances details
Show GYUrl # 
Instance details

Defined in GeniusYield.Types.Anchor

Methods

showsPrecIntGYUrlShowS #

showGYUrlString #

showList ∷ [GYUrl] → ShowS #

Eq GYUrl # 
Instance details

Defined in GeniusYield.Types.Anchor

Methods

(==)GYUrlGYUrlBool #

(/=)GYUrlGYUrlBool #

Ord GYUrl # 
Instance details

Defined in GeniusYield.Types.Anchor

Methods

compareGYUrlGYUrlOrdering #

(<)GYUrlGYUrlBool #

(<=)GYUrlGYUrlBool #

(>)GYUrlGYUrlBool #

(>=)GYUrlGYUrlBool #

maxGYUrlGYUrlGYUrl #

minGYUrlGYUrlGYUrl #

textToUrlMonadFail m ⇒ Text → m GYUrl #

Convert a Text to a GYUrl checking that it is at most 128 bytes in the process.

urlToTextGYUrlText #

Convert a GYUrl to a Text.

type GYAnchorData = ByteString #

Anchor data.

data GYAnchorDataHash #

Hash of anchor data. >>> hashAnchorData "Hello, World!" GYAnchorDataHash (SafeHash "511bc81dde11180838c562c82bb35f3223f46061ebde4a955c27b3f489cf1e03")

data GYAnchor #

Anchor.

Constructors

GYAnchor 

Instances

Instances details
Show GYAnchor # 
Instance details

Defined in GeniusYield.Types.Anchor

Methods

showsPrecIntGYAnchorShowS #

showGYAnchorString #

showList ∷ [GYAnchor] → ShowS #

Eq GYAnchor # 
Instance details

Defined in GeniusYield.Types.Anchor

Methods

(==)GYAnchorGYAnchorBool #

(/=)GYAnchorGYAnchorBool #

Ord GYAnchor # 
Instance details

Defined in GeniusYield.Types.Anchor