-
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 restoration of Byron Sequential wallet from xpub #1721
Conversation
let state = mkSeqStateFromAccountXPub (liftKey accXPub) g | ||
void $ liftHandler $ initWorker @_ @s @k ctx wid | ||
(\wrk -> W.createWallet @(WorkerCtx ctx) @s @k wrk wid wName state) | ||
(\wrk -> W.restoreWallet @(WorkerCtx ctx) @s @t @k wrk wid) | ||
fst <$> getWallet ctx (mkShelleyWallet @_ @s @t @k) (ApiT wid) | ||
fst <$> getWallet ctx mkWallet (ApiT wid) |
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.
👍
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.
looks good. would be good to have integration test illustrating the case. Something like we create wallet like before this PR, then do some txs to it, then delete it, and finally restore this way and checking the balance
specifications/api/index.html
Outdated
* | ||
* TODO: Make this configurable upstream in ReDoc. | ||
*/ | ||
window.onload = function () { |
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.
🥇
3faf902
to
030d624
Compare
bors try |
tryBuild failed |
030d624
to
7e31610
Compare
Instead of mere 'object', they now have significant names
Instead of showing the import from account public key as default
9dce4c7
to
08bfe99
Compare
bors try |
❤️ |
tryBuild failed |
WHAT IS YOUR PROBLEM HYDRA FFS |
bors try |
@disassembler there's also a failure in the test suite that needs resolution first. |
tryBuild failed |
bors try |
tryBuild failed |
Issue Number
ADP-334
Overview
3ef0e95
📍 extend swagger specification to add xpub restoration for byron sequential wallets
5deb64c
📍 extend swagger specification to add xpub restoration for byron sequential wallets
7cc16c1
📍 quick-n-dirty hack of the documentation to explicitely name oneof labels
Instead of mere 'object', they now have significant names
69257ad
📍 show 'standard' wallet as default in API documentation for shelley
Instead of showing the import from account public key as default
58ab322
📍 extend Byron servant API to allow restoring Byrons sequential wallet from xpub
bd8c008
📍 generalize a bit some DSL function to work with both Byron & Shelley wallets
d69de74
📍 fix JSON parsers for posting Byron wallets: there's a new case
0ef9a31
📍 wire hardware wallet integration tests with cardano-node-byron
773ad3a
📍 remove hack in favor and use schema 'title' property instead
c3b2273
📍 extend API specification to support coin selection for byron wallets
08bfe99
📍 turn on coin selection endpoint for byron wallets in byron & shelley servers
Comments