-
Notifications
You must be signed in to change notification settings - Fork 217
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
Scaffold lib/jormungandr
folder
#244
The head ref may contain hidden characters: "anviking/218/j\u00F6rmungandr-blocks"
Conversation
954f44f
to
7dae32b
Compare
lib/jormungandr
folderlib/jormungandr
folder
31d0c2e
to
df0948e
Compare
lib/jormungandr
folderlib/jormungandr
folder
-- rely on a `.env` file to bundle configuration settings together for a given | ||
-- target environment. | ||
|
||
module Cardano.Environment |
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.
I wasn't sure moving lib/{jormungandr, http-bridge}/Cardano/Environment.hs
to cardano-wallet-core
was desired, so I kept the duplication for now.
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.
Well, network discrimination is different on Jörmungandr
, and probably will be too with Shelley Haskell. There are actually only too network (testnet or mainnet) and it's encoded on a single byte (Cf the new address format). Perhaps it'd make sense to rename both modules to Cardano.Environment.{Jormungandr,HttpBridge}
.
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.
Yet, we could factor out in core
the "Internal" bits with the ErrMissingOrInvalidEnvVar
and unsafeLookupEnv
since this is fairly network-agnostic.
Indeed 🙃 |
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.
Thanks for this. I think we can factor our some of the logic in Cardano.Environment
(to core
), and rename both modules in the bridge and jormungandr to implement the specific bits.
86ff6b7
to
fba0951
Compare
ddd0b50
to
693e13e
Compare
- Added System.Environment.Lookup and System.Environment.LookupSpec to core - Removed common parts from - Cardano.Environment.HttpBridge - Cardano.Environment.HttpBridgeSpec - Cardano.Environment.Jormungandr - Cardano.Environment.JormungandrSpec (added)
693e13e
to
588d11e
Compare
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.
lgtm
-- configuration data at runtime using the available environment. | ||
-- | ||
-- This gives us a flexible and portable approach to software configuration, and | ||
-- remove some pain from the development perspective. Prior to starting, the |
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.
s/remove/removes
plural
Issue Number
#218
Overview
lib/jormungandr
based uponlib/http-bridge
{Binary,Compatibility,Transaction}.Jormungandr.hs
, andCardano.Wallet.Binary.JormungandrSpec
Comments