Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
translateTimelock ∷ (Era era1, Era era2, EraCrypto era1 ~ EraCrypto era2) ⇒ Timelock era1 → Timelock era2 Source #
This function deconstructs and then reconstructs the timelock script to prove the compiler that we can arbirarily switch out the eras as long as the cryptos for both eras are the same.
Instances
Orphan instances
Crypto c ⇒ EraScript (MaryEra c) Source # | Since Timelock scripts are a strictly backwards compatible extension of
MultiSig scripts, we can use the same |
upgradeScript ∷ Script (PreviousEra (MaryEra c)) → Script (MaryEra c) Source # scriptPrefixTag ∷ Script (MaryEra c) → ByteString Source # getNativeScript ∷ Script (MaryEra c) → Maybe (NativeScript (MaryEra c)) Source # fromNativeScript ∷ NativeScript (MaryEra c) → Script (MaryEra c) Source # |