-
Notifications
You must be signed in to change notification settings - Fork 463
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1f1bf5e
commit e507dae
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
...0240425_183853_effectfully_both_MajorProtocolVersion_and_multiple_CostModels.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
### Changed | ||
|
||
`EvaluationContext` now contains: | ||
|
||
- `PlutusLedgerLanguage` -- a ledger language | ||
- `MajorProtocolVersion -> BuiltinSemanticsVariant DefaultFun` -- a function returning a semantics variant for every protocol version | ||
- `[(BuiltinSemanticsVariant DefaultFun, DefaultMachineParameters)]` -- a cache of machine parameters for each semantics variant supported by the ledger language | ||
|
||
Similarly, `mkDynEvaluationContext` now takes additional arguments: | ||
|
||
- `PlutusLedgerLanguage` -- same as above | ||
- `[BuiltinSemanticsVariant DefaultFun]` -- a list of semantics variants supported by the ledger language | ||
- `MajorProtocolVersion -> BuiltinSemanticsVariant DefaultFun` -- same as above | ||
|
||
All this allows us to improve the accuracy of costing in future protocol versions without introducing new ledger languages. |