Copyright | (c) 2024 GYELD GMBH |
---|---|
License | Apache 2.0 |
Maintainer | [email protected] |
Stability | develop |
Safe Haskell | Safe-Inferred |
Language | GHC2021 |
Synopsis
- data GYUrl
- textToUrl ∷ MonadFail m ⇒ Text → m GYUrl
- unsafeTextToUrl ∷ Text → GYUrl
- urlToText ∷ GYUrl → Text
- type GYAnchorData = ByteString
- data GYAnchorDataHash
- hashAnchorData ∷ GYAnchorData → GYAnchorDataHash
- data GYAnchor = GYAnchor {}
- anchorToLedger ∷ GYAnchor → Anchor StandardCrypto
- anchorFromLedger ∷ Anchor StandardCrypto → GYAnchor
Documentation
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"})
unsafeTextToUrl ∷ Text → GYUrl #
type GYAnchorData = ByteString #
Anchor data.
data GYAnchorDataHash #
Hash of anchor data. >>> hashAnchorData "Hello, World!" GYAnchorDataHash (SafeHash "511bc81dde11180838c562c82bb35f3223f46061ebde4a955c27b3f489cf1e03")
Instances
Show GYAnchorDataHash # | |
Defined in GeniusYield.Types.Anchor showsPrec ∷ Int → GYAnchorDataHash → ShowS # show ∷ GYAnchorDataHash → String # showList ∷ [GYAnchorDataHash] → ShowS # | |
Eq GYAnchorDataHash # | |
Defined in GeniusYield.Types.Anchor | |
Ord GYAnchorDataHash # | |
Defined in GeniusYield.Types.Anchor compare ∷ GYAnchorDataHash → GYAnchorDataHash → Ordering # (<) ∷ GYAnchorDataHash → GYAnchorDataHash → Bool # (<=) ∷ GYAnchorDataHash → GYAnchorDataHash → Bool # (>) ∷ GYAnchorDataHash → GYAnchorDataHash → Bool # (>=) ∷ GYAnchorDataHash → GYAnchorDataHash → Bool # max ∷ GYAnchorDataHash → GYAnchorDataHash → GYAnchorDataHash # min ∷ GYAnchorDataHash → GYAnchorDataHash → GYAnchorDataHash # |
hashAnchorData ∷ GYAnchorData → GYAnchorDataHash #
Hash anchor data.