Skip to content
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

Merged
merged 11 commits into from
Jun 4, 2020

Conversation

KtorZ
Copy link
Member

@KtorZ KtorZ commented Jun 3, 2020

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

Screenshot from 2020-06-03 14-52-27

Screenshot from 2020-06-03 14-52-36

@KtorZ KtorZ requested a review from paweljakubas June 3, 2020 13:43
@KtorZ KtorZ self-assigned this Jun 3, 2020
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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Contributor

@paweljakubas paweljakubas left a 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

*
* TODO: Make this configurable upstream in ReDoc.
*/
window.onload = function () {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥇

@KtorZ KtorZ force-pushed the KtorZ/ADP-334/byron-restoration-from-xpub branch from 3faf902 to 030d624 Compare June 3, 2020 14:56
@KtorZ
Copy link
Member Author

KtorZ commented Jun 3, 2020

bors try

iohk-bors bot added a commit that referenced this pull request Jun 3, 2020
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jun 3, 2020

try

Build failed

@KtorZ KtorZ force-pushed the KtorZ/ADP-334/byron-restoration-from-xpub branch from 030d624 to 7e31610 Compare June 3, 2020 15:50
@KtorZ KtorZ force-pushed the KtorZ/ADP-334/byron-restoration-from-xpub branch from 9dce4c7 to 08bfe99 Compare June 4, 2020 13:46
@KtorZ
Copy link
Member Author

KtorZ commented Jun 4, 2020

bors try

iohk-bors bot added a commit that referenced this pull request Jun 4, 2020
@darko-mijic
Copy link

❤️

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jun 4, 2020

try

Build failed

@KtorZ
Copy link
Member Author

KtorZ commented Jun 4, 2020

WHAT IS YOUR PROBLEM HYDRA FFS

@disassembler
Copy link
Contributor

bors try

iohk-bors bot added a commit that referenced this pull request Jun 4, 2020
@KtorZ
Copy link
Member Author

KtorZ commented Jun 4, 2020

@disassembler there's also a failure in the test suite that needs resolution first.

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jun 4, 2020

try

Build failed

@KtorZ
Copy link
Member Author

KtorZ commented Jun 4, 2020

bors try

iohk-bors bot added a commit that referenced this pull request Jun 4, 2020
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jun 4, 2020

try

Build failed

@KtorZ KtorZ merged commit 85dd7bd into master Jun 4, 2020
@KtorZ KtorZ deleted the KtorZ/ADP-334/byron-restoration-from-xpub branch June 4, 2020 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants