-
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
Enable transaction support in integration tests for cardano-http-bridge #258
Conversation
6509b05
to
124f026
Compare
|
||
-- | A faucet / genesis UTxO generate from the configuration.yaml. | ||
-- The secret key can be generated using `cardano-keygen`, and then, using | ||
-- `deriveForstHDAddress` from cardano-sl to get the corresponding address key. |
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.
deriveFirstHDAddress
?
-- | Get the first address for that wallet | ||
let (Right seed) = fromMnemonic @'[15] mnemonics | ||
let (Right pwd) = fromText "cardano-wallet" | ||
let addr0 = firstAddress (seed, pwd) |
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 suppose It would be actually quite useful to implement the listAddress
endpoint and use it for this...
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.
Hmmm.. Yes, and no. The wallets above aren't in the API yet. That's the whole point, we simply create a transaction to the corresponding addresses, and, if restored, the wallets will already have some funds :)
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.
(would be clearer with the next incoming PR, but generally speaking, I do agree about implementing the listAddress
endpoint. I think I'll tackle that as part of the debt).
Looks good (but does not compile ;) ) |
124f026
to
95d08dd
Compare
Yes, just noticed some functionalities moved from a module to another :) .. Fixed. |
…ding some context about the request
3ae6341
to
e9f85a0
Compare
… test to show it works
…tility to generate wallet with funds
Moved all function implementations under a 'where' clause for better readability. This also allows for doing some extra bootstraping prior to creating the wallet layer
e9f85a0
to
55154e9
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 👍
Issue Number
#220
Overview
Comments
To be done: initialize a hundred wallets with funds by making an initial "setup" transaction to addresses we control (with known mnemonics). Later, these wallets can be restored and used in integration scenarios.