-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No need to check quantity, PT distribution when minting tokens #712
Conversation
Transactions CostsSizes and execution budgets for Hydra protocol transactions. Note that unlisted parameters are currently using
Script summary
Cost of Init Transaction
Cost of Commit TransactionCurrently only one UTxO per commit allowed (this is about to change soon)
Cost of CollectCom Transaction
Cost of Close Transaction
Cost of Contest Transaction
Cost of Abort TransactionSome variation because of random mixture of still initial and already committed outputs.
Cost of FanOut TransactionInvolves spending head output and burning head tokens. Uses ada-only UTxO for better comparability.
|
@@ -52,10 +52,11 @@ validate initialValidator headValidator seedInput action context = | |||
validateTokensMinting :: ValidatorHash -> ValidatorHash -> TxOutRef -> ScriptContext -> Bool | |||
validateTokensMinting initialValidator headValidator seedInput context = | |||
traceIfFalse "minted wrong" $ | |||
participationTokensAreDistributed currency initialValidator txInfo nParties | |||
seedInputIsConsumed | |||
-- TODO remove below checks and Init mutations |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will be addressed once the off-chain logic is tested.
this is also needed to be removed in order to generate valid cluster specs.
9aaee77
to
f66b0ed
Compare
…number PT tokens distributed
…wrong number PT tokens distributed
Also it was failing for the wrong reason (List empty) Meaning we should add a constraint such that: length parties == length cardanoKeys && not (null cardanoKeys)
There is a member with more than 1 PT token minted
ae02d0f
to
f2cca96
Compare
Marked as invalid. Following this approach is called "Limited Minting Policy", but although this GAP currently exists, we want to move forward with a different approach called "Full Minting Policy". |
Actors check off-chain whether an initTx is well-formed during observation