-
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
Add new address discovery schemes for testing and benchmarking #160
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
c71257d
make the wallet layer state-agnostic (instead of requiring a 'SeqState')
KtorZ f63f8e4
Add stress restoration benchmarks
KtorZ 4bd416b
add extra property tests for the 'putPrivateKey' DB function
KtorZ e3964f2
slightly review README file (move testing bits to Wiki & document ben…
KtorZ File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ It can be used as a component of a frontend such as | |
interface for wallets. Most users who would like to use Cardano should | ||
start with Daedalus. | ||
|
||
## Development | ||
## Overview | ||
|
||
This source code repository contains the next major version of Cardano | ||
Wallet, which has been completely rewritten for the | ||
|
@@ -46,57 +46,15 @@ $ stack build --test --no-run-tests | |
|
||
## How to test | ||
|
||
#### unit | ||
|
||
``` | ||
$ stack test cardano-wallet:unit | ||
``` | ||
|
||
#### integration | ||
|
||
##### pre-requisites | ||
|
||
1. Install our fork of [cardano-http-bridge](https://github.com/KtorZ/cardano-http-bridge) | ||
|
||
``` | ||
$ cargo install --branch cardano-wallet-integration --git https://github.com/KtorZ/cardano-http-bridge.git | ||
``` | ||
|
||
2. Install [cardano-sl@cardano-node-simple](https://github.com/input-output-hk/cardano-sl) | ||
|
||
``` | ||
$ git clone [email protected]:input-output-hk/cardano-sl.git | ||
$ cd cardano-sl | ||
$ stack install cardano-sl-node:exe:cardano-node-simple | ||
``` | ||
|
||
Alternatively, if you're running on linux, you may use a pre-compiled version: | ||
|
||
``` | ||
$ curl -L -o cardano-node-simple-3.0.1.tar.gz https://raw.githubusercontent.com/input-output-hk/cardano-wallet/master/test/data/cardano-node-simple/cardano-node-simple-3.0.1.tar.gz | ||
$ tar xzf cardano-node-simple-3.0.1.tar.gz -C /usr/local/bin && rm cardano-node-simple-3.0.1.tar.gz | ||
``` | ||
|
||
3. Import the initial testnet chain bootstrap for the `cardano-http-bridge` | ||
|
||
``` | ||
$ curl -L -o hermes-testnet.tar.gz https://raw.githubusercontent.com/input-output-hk/cardano-wallet/master/test/data/cardano-http-bridge/hermes-testnet.tar.gz | ||
$ tar xzf hermes-testnet.tar.gz -C $HOME && rm hermes-testnet.tar.gz | ||
``` | ||
|
||
##### test | ||
|
||
``` | ||
$ stack test cardano-wallet:integration | ||
``` | ||
|
||
See [Wiki - Testing](https://github.com/input-output-hk/cardano-wallet/wiki/Testing) | ||
|
||
## Documentation | ||
|
||
* Users of the Cardano Wallet API can refer to the [API Documentation](https://input-output-hk.github.io/cardano-wallet/api/). | ||
* Development-related information can be found in the [Wiki](https://github.com/input-output-hk/cardano-wallet/wiki). | ||
* To help understand the source code, refer to the [Haddock Documentation](https://input-output-hk.github.io/cardano-wallet/haddock/). | ||
|
||
| Link | Audience | | ||
| --- | --- | | ||
| [API Documentation](https://input-output-hk.github.io/cardano-wallet/api/) | Users of the Cardano Wallet API | | ||
| [Haddock Documentation](https://input-output-hk.github.io/cardano-wallet/haddock/) | Haskell Developers using the `cardano-wallet` as a library | | ||
| [Wiki](https://github.com/input-output-hk/cardano-wallet/wiki) | Anyone interested in the project and our development process | | ||
|
||
<hr/> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
A suggestion here: let's remove the
NewWallet
type wrapper here and simply modify the wallet layer signature as follows:Leave the creation of the state to the caller 👍
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.
OK good idea. Turns out
NewWallet
is kind of helpful, so I have added acreateWalletSeq :: WalletLayer SeqState -> NewWallet ExceptT ErrWalletAlreadyExists IO WalletId
.