Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- toLedgerPolicyID :: PolicyId -> PolicyID StandardCrypto
- toPlutusCurrencySymbol :: PolicyId -> CurrencySymbol
- fromPlutusCurrencySymbol :: MonadFail m => CurrencySymbol -> m PolicyId
Orphans
Type conversions
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
.