Copyright | (c) 2024 GYELD GMBH |
---|---|
License | Apache 2.0 |
Maintainer | [email protected] |
Stability | develop |
Safe Haskell | None |
Language | GHC2021 |
GeniusYield.Types.Script.ScriptHash
Description
Synopsis
- data GYScriptHash
- scriptHashFromApi :: ScriptHash -> GYScriptHash
- scriptHashToApi :: GYScriptHash -> ScriptHash
- scriptHashToLedger :: GYScriptHash -> ScriptHash
- scriptHashFromLedger :: ScriptHash -> GYScriptHash
- apiHashToPlutus :: ScriptHash -> ScriptHash
- scriptHashToPlutus :: GYScriptHash -> ScriptHash
- type GYValidatorHash = GYScriptHash
- validatorHashToPlutus :: GYValidatorHash -> ScriptHash
- validatorHashFromPlutus :: ScriptHash -> Either PlutusToCardanoError GYValidatorHash
- validatorHashToApi :: GYValidatorHash -> ScriptHash
- validatorHashFromApi :: ScriptHash -> GYValidatorHash
- type GYStakeValidatorHash = GYScriptHash
- stakeValidatorHashToPlutus :: GYStakeValidatorHash -> ScriptHash
- stakeValidatorHashFromPlutus :: ScriptHash -> Either PlutusToCardanoError GYStakeValidatorHash
- stakeValidatorHashToApi :: GYStakeValidatorHash -> ScriptHash
- stakeValidatorHashFromApi :: ScriptHash -> GYStakeValidatorHash
Documentation
data GYScriptHash #
Instances
scriptHashToLedger :: GYScriptHash -> ScriptHash #
Convert to corresponding ledger representation.
scriptHashFromLedger :: ScriptHash -> GYScriptHash #
Convert from corresponding ledger representation.
apiHashToPlutus :: ScriptHash -> ScriptHash #
type GYValidatorHash = GYScriptHash #
Deprecated: Use GYScriptHash.
validatorHashFromPlutus :: ScriptHash -> Either PlutusToCardanoError GYValidatorHash #
>>>
validatorHashFromPlutus "cabdd19b58d4299fde05b53c2c0baf978bf9ade734b490fc0cc8b7d0"
Right (GYScriptHash "cabdd19b58d4299fde05b53c2c0baf978bf9ade734b490fc0cc8b7d0")
>>>
validatorHashFromPlutus "cabdd19b58d4299fde05b53c2c0baf978bf9ade734b490fc0cc8b7"
Left (DeserialiseRawBytesError {ptceTag = "validatorHashFromPlutus: cabdd19b58d4299fde05b53c2c0baf978bf9ade734b490fc0cc8b7, error: SerialiseAsRawBytesError {unSerialiseAsRawBytesError = \"Unable to deserialise ScriptHash\"}"})
type GYStakeValidatorHash = GYScriptHash #
Deprecated: Use GYScriptHash.
stakeValidatorHashFromPlutus :: ScriptHash -> Either PlutusToCardanoError GYStakeValidatorHash #
>>>
stakeValidatorHashFromPlutus "cabdd19b58d4299fde05b53c2c0baf978bf9ade734b490fc0cc8b7d0"
Right (GYScriptHash "cabdd19b58d4299fde05b53c2c0baf978bf9ade734b490fc0cc8b7d0")
>>>
stakeValidatorHashFromPlutus "cabdd19b58d4299fde05b53c2c0baf978bf9ade734b490fc0cc8b7"
Left (DeserialiseRawBytesError {ptceTag = "stakeValidatorHashFromPlutus: cabdd19b58d4299fde05b53c2c0baf978bf9ade734b490fc0cc8b7, error: SerialiseAsRawBytesError {unSerialiseAsRawBytesError = \"Unable to deserialise ScriptHash\"}"})