Skip to content
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

Align spec with code #2243

Merged
merged 2 commits into from
Apr 21, 2021
Merged

Align spec with code #2243

merged 2 commits into from
Apr 21, 2021

Conversation

polinavino
Copy link
Contributor

Some scratch notes about code which came up during review (PR with details about these to follow):

Word64 vs natural use
597 Params : Maybe (LangDepView era)
PlutusScript Script_plc
Datum/redeemer aliases
newset = mapMaybeSet (getLanguageView pp) langs — needs type signature
Match txbody field names and order!
Validity interval
Auxiliary data - script and metadata type mismatch
ValidatedTx vs Tx in spec?
Bootstrap witnesses, key witnesses - these are sets
feesOK - check that there are redeemers instead of non-0 ExUnits
Replace Val.inject (Val.coin with function
Txins is JUST txins like in Shelley, does not also include fee inputs - use ones defined in alonzo Tx, not Shelley
System time conversion check is not implemented
indexof ∈ PolicyID → Value → Ix takes set of PolicyIDs instead
txInfo doesn’t take Language, and is called transTx
collectNNScriptInputs order wrong
collectTwoPhaseScriptInputs should have noData error
evalScripts should only be for non native scripts
Check also validateScript
collectNNScriptInputs vs collectTwoPhaseScriptInputs why are they both there and different?
TODO add spec constants - network ID , system time, and epoch info
Move network id body check to UTXO
Add outputsAttrsTooBig to spec?

Copy link
Contributor

@WhatisRT WhatisRT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@polinavino polinavino merged commit dcdbc38 into master Apr 21, 2021
@iohk-bors iohk-bors bot deleted the polina/align-spec branch April 21, 2021 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants