-
Notifications
You must be signed in to change notification settings - Fork 22
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
Replace only AdaSupportedInEra
and MultiAssetSupportedInEra
with eons
#254
Replace only AdaSupportedInEra
and MultiAssetSupportedInEra
with eons
#254
Conversation
8b5035d
to
ef8ae2c
Compare
ef8ae2c
to
0976162
Compare
|
||
import Data.Typeable (Typeable) | ||
|
||
class IsByronToAllegraEra era where |
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.
Is this necessary? Where is it being used. Do you have a cli branch integrated?
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.
IsByronToAllegraEra
I can delete.
|
||
AdaOnlyInByronEra :: OnlyAdaSupportedInEra ByronEra | ||
AdaOnlyInShelleyEra :: OnlyAdaSupportedInEra ShelleyEra | ||
AdaOnlyInAllegraEra :: OnlyAdaSupportedInEra AllegraEra |
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.
Unfortunately Byron is included here in the original feature type, which is why the replacement eon also includes Byron.
5c0e397
to
6523019
Compare
TxOutDatumNone ReferenceScriptNone | ||
|
||
|
||
toByronTxOut :: TxOut ctx ByronEra -> Maybe Byron.TxOut | ||
toByronTxOut (TxOut (AddressInEra ByronAddressInAnyEra (ByronAddress addr)) | ||
(TxOutAdaOnly AdaOnlyInByronEra value) _ _) = |
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.
We have special handling to make Byron look like Shelley. This is why we need ByronToAllegraEra
.
…onToAllegraEra functions
…InEra once rather than in each era
…nwardsConway instead.
…nzoOrBabbageEraOnwards instead.
6523019
to
d50df2c
Compare
…s or forEraInEon instead.
…-prefix-and-add-Cmd-suffix Remove `EraBased` prefix and add `Cmd` suffix
Changelog
Context
Conversion to eons provides access to support code like constraint summoning and eon promotion.
Checklist
See Running tests for more details
.cabal
files are updatedhlint
. See.github/workflows/check-hlint.yml
to get thehlint
versionstylish-haskell
. See.github/workflows/stylish-haskell.yml
to get thestylish-haskell
versionghc-8.10.7
andghc-9.2.7