Closed ngua closed 2 years ago
OK, looks like we might need to use evaluateTransactionExecutionUnits
from Cardano.Api
for this
It turns out this will be horribly complex to do from the server. Instead we can use Ogmios v5.2.0 (after upgrading) and use it EvaluateTx
protocol:
https://ogmios.dev/mini-protocols/local-tx-submission/#evaluatetx
I'm going to close this in favor of #167 where calling the Ogmios protocol will be implemented
We need to figure out how to calculate the various fields of the CSL-style
Redeemer
type which is much different from the Plutus-style redeemer an end user will encounter.Our definition is:
index
might correspond to the index of the input which is being spent with the redeemer.ex_units
might be significantly harder to figure outMore context/discussion: https://github.com/Emurgo/cardano-serialization-lib/issues/241