-
Notifications
You must be signed in to change notification settings - Fork 157
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
Remove FakePlutus and intgegrate Real Plutus #2242
Conversation
import qualified Language.PlutusCore.Evaluation.Machine.ExMemory as P (ExCPU (..), ExMemory (..)) | ||
import qualified Language.PlutusTx as P (Data (..)) | ||
import qualified Language.PlutusTx.IsData.Class as P (IsData (..)) | ||
-- Import Plutus stuff in the qualified Module P |
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.
➖
transCostModel :: CostModel -> P.CostModelParameters | ||
transCostModel (CostModel mp) = Map.foldlWithKey' (\ans bytes n -> Map.insert (show bytes) n ans) Map.empty mp | ||
transCostModel :: CostModel -> P.CostModel | ||
transCostModel (CostModel _mp) = undefined -- Map.foldlWithKey' (\ans bytes n -> Map.insert (show bytes) n ans) Map.empty mp |
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 is fine, IMHO, since figuring out where best to validate the cost model is next up on our agenda.
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.
one comment that can be deleted aside, looks great!
Integrate the new additions of Plutus that use the updated notion of a TxInfo and ScriptContext.
This allows us to remove the module FakePlutus which contained a bunch of stubs.
One last issue to resolve is the translation of CostModels which will be in another PR.