You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I came across a problem while adding new features in the scripts to automatically use the guardrail scripts for submitting a protocol-parameter or treasury-withdrawal action on conway (v10). The problem is, that there is no way to calculate the correct execution units costs for a given plutus script (file) without a synced live node running.
Because the only implementation we currently have is within the transaction build command.
By using the transaction build command and the option --calculate-plutus-script-cost FILE we get an output like:
Which is super nice, and the values for the execution units can than later be used for a transaction building via transaction build-raw for example. BUT, this does not work in offline mode.
When it comes to governance, we need a feature in cardano-cli to calculate the correct execution units for a governance action that involves the guardrails script.
Two possible options to integrate that?
A new command that takes the protocol-parameters file, the action-file and the compiled plutus-script file.
Adding the --calculate-plutus-script-cost parameter option into the build-estimate command.
So we can do such calculations also offline without a connected online node, which would also come in handy of doing automated tests or optimizations via iterations.
The text was updated successfully, but these errors were encountered:
I came across a problem while adding new features in the scripts to automatically use the guardrail scripts for submitting a protocol-parameter or treasury-withdrawal action on conway (v10). The problem is, that there is no way to calculate the correct execution units costs for a given plutus script (file) without a synced live node running.
Because the only implementation we currently have is within the
transaction build
command.By using the
transaction build
command and the option--calculate-plutus-script-cost FILE
we get an output like:Which is super nice, and the values for the execution units can than later be used for a transaction building via
transaction build-raw
for example. BUT, this does not work in offline mode.When it comes to governance, we need a feature in cardano-cli to calculate the correct execution units for a governance action that involves the guardrails script.
Two possible options to integrate that?
protocol-parameters
file, theaction-file
and thecompiled plutus-script
file.--calculate-plutus-script-cost
parameter option into thebuild-estimate
command.So we can do such calculations also offline without a connected online node, which would also come in handy of doing automated tests or optimizations via iterations.
The text was updated successfully, but these errors were encountered: