-
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
Fork API server context into random and sequential variants. #808
Milestone
Comments
jonathanknowles
changed the title
Fork API context into random and sequential.
Fork API server context into random and sequential variants.
Oct 11, 2019
This was referenced Oct 11, 2019
iohk-bors bot
added a commit
that referenced
this issue
Oct 14, 2019
809: Provide `KeyToAddress` instance for `(Jormungandr n) RndKey` type. r=jonathanknowles a=jonathanknowles # Issue Number #808 # Overview This PR provides a missing `KeyToAddress` instance for the `(Jormungandr n) RndKey` type. It's identical to the instance provided within `cardano-http-bridge`, namely for the `(HttpBridge 'Mainnet) RndKey` type. Co-authored-by: Jonathan Knowles <[email protected]>
iohk-bors bot
added a commit
that referenced
this issue
Oct 14, 2019
810: Fork API server context into random and sequential variants. r=KtorZ a=jonathanknowles # Issue Number #808 # Overview This PR forks the API server context into two variants: 1. a _**random**_ context that corresponds to _**Byron**_ wallets. 2. a _**sequential**_ context that corresponds to _**modern**_ wallets. # Remaining Work - [x] Discriminate between _**random**_ and _**sequential**_ wallets at the file-system level. 816: Network information endpoint r=KtorZ a=KtorZ # Issue Number <!-- Put here a reference to the issue this PR relates to and which requirements it tackles --> N/A # Overview <!-- Detail in a few bullet points the work accomplished in this PR --> - [x] I have renamed 'WalletState' to 'SyncProgress', for we'll also use this in the network information endpoint and.. it truly is just about the syncing progress. - [x] I have reviewed the swagger specification network information endpoint to better reflect the information we're going to return. Basically, the `localBlockchainHeight` does not make much sense for us at this level, because there's actually a local height per wallet. So this information will better be located in each wallets directly. - [x] Added a field `pendingSince` for transactions. I shouldn't have done that in this PR but I did it as I was updating the swagger. This is not related to the networking endpoint so it might get a little confusing in the review. - [x] I've also re-generated all the golden API tests because I was getting a lot of warnings about files not being up-to-date (nothing to do with this PR but it seems that we haven't updated them along the way....) # Comments <!-- Additional comments or screenshots to attach if any --> Some screenshot of the swagger specification: ![Screenshot from 2019-10-14 12-09-15](https://user-images.githubusercontent.com/5680256/66757422-72cf2e00-ee9c-11e9-8740-8063689c0985.png) ![Screenshot from 2019-10-14 12-06-26](https://user-images.githubusercontent.com/5680256/66757428-75ca1e80-ee9c-11e9-82f4-6c90c723e9cd.png) <!-- Don't forget to: ✓ Self-review your changes to make sure nothing unexpected slipped through ✓ Assign yourself to the PR ✓ Assign one or several reviewer(s) ✓ Once created, link this PR to its corresponding ticket ✓ Acknowledge any changes required to the Wiki --> Co-authored-by: Jonathan Knowles <[email protected]> Co-authored-by: KtorZ <[email protected]>
iohk-bors bot
added a commit
that referenced
this issue
Oct 14, 2019
810: Fork API server context into random and sequential variants. r=KtorZ a=jonathanknowles # Issue Number #808 # Overview This PR forks the API server context into two variants: 1. a _**random**_ context that corresponds to _**Byron**_ wallets. 2. a _**sequential**_ context that corresponds to _**modern**_ wallets. # Remaining Work - [x] Discriminate between _**random**_ and _**sequential**_ wallets at the file-system level. Co-authored-by: Jonathan Knowles <[email protected]>
iohk-bors bot
added a commit
that referenced
this issue
Oct 15, 2019
810: Fork API server context into random and sequential variants. r=jonathanknowles a=jonathanknowles # Issue Number #808 # Overview This PR forks the API server context into two variants: 1. a _**random**_ context that corresponds to _**Byron**_ wallets. 2. a _**sequential**_ context that corresponds to _**modern**_ wallets. # Remaining Work - [x] Discriminate between _**random**_ and _**sequential**_ wallets at the file-system level. Co-authored-by: Jonathan Knowles <[email protected]>
lgtm! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Context
The compatibility API server (which supports operations on Byron-style wallets) will require access to two contexts:
Decision
Fork the existing API server context into two separate contexts, as described above. The compatibility API server should be given a definition similar to:
Most operations on this API will only require access to the random context, but the migrateByronWallet operation will require access to both contexts.
Acceptance Criteria
databases and sequential wallet databases.
QA
Build integration tests to verify that:
createWallet
API function results in a database file with theseq
prefix.createByronWallet
API function results in a database file with thernd
prefix.listWallets
API function only lists wallets whose database filenames have theseq
prefix.listByronWallets
API function only lists wallets whose database filenames have thernd
prefix.getWallet
API function with a wallet ID that corresponds to a Byron wallet returns a wallet not found error.getByronWallet
API function with a wallet ID that corresponds to a new-style wallet returns a wallet not found error.PR
The text was updated successfully, but these errors were encountered: