Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- toLedgerScriptHash :: PolicyId -> ScriptHash StandardCrypto
- toLedgerPolicyID :: PolicyId -> PolicyID StandardCrypto
- toPlutusCurrencySymbol :: PolicyId -> CurrencySymbol
- fromPlutusCurrencySymbol :: MonadFail m => CurrencySymbol -> m PolicyId
Orphans
Type conversions
toLedgerScriptHash :: PolicyId -> ScriptHash StandardCrypto Source #
toLedgerPolicyID :: PolicyId -> PolicyID StandardCrypto Source #
Convert Cardano api PolicyId
to Cardano ledger PolicyID
.
toPlutusCurrencySymbol :: PolicyId -> CurrencySymbol Source #
Convert Cardano api PolicyId
to Plutus CurrencySymbol
.
fromPlutusCurrencySymbol :: MonadFail m => CurrencySymbol -> m PolicyId Source #
Convert a plutus CurrencySymbol
into a cardano-api PolicyId
.