cardano-rpc
Safe HaskellNone
LanguageHaskell2010

Cardano.Rpc.Server.Internal.UtxoRpc.Type.Script

Synopsis

Documentation

scriptToUtxoRpcScript :: Script lang -> Proto Script Source #

Convert a script to the UTxO RPC Script message, dispatching on the script language to select the corresponding oneof field.

TODO: remove together with the old-API TxOutput pipeline, https://github.com/IntersectMBO/cardano-api/issues/1264

ledgerScriptToUtxoRpcScript :: ShelleyBasedEra era -> Script (ShelleyLedgerEra era) -> Proto Script Source #

Convert a ledger script to the UTxO RPC Script message, dispatching native scripts to the NativeScript oneof field and plutus scripts to the field of their language version.

ledgerNativeScriptToUtxoRpcNativeScript :: ShelleyBasedEra era -> NativeScript (ShelleyLedgerEra era) -> Proto NativeScript Source #

Convert a ledger native script directly to the UTxO RPC NativeScript message.

Each group of eras has its own concrete native script type: MultiSig at Shelley, Timelock from Allegra up to Conway (all sharing the same six view patterns), and Dijkstra's own type, which additionally supports a guard script.