Skip to content
This repository has been archived by the owner on Jan 12, 2022. It is now read-only.

feat!: update to DAPI Client 0.14 and refactor transport layer #163

Merged
merged 6 commits into from
Jul 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions .nycrc

This file was deleted.

9 changes: 9 additions & 0 deletions .nycrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
nyc:
check-coverage: false
watermarks:
lines: [80, 95]
functions: [80, 95]
branches: [80, 95]
statements: [80, 95]
reporter:
- text
2 changes: 1 addition & 1 deletion docs/getting-started/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Nothing force you to do so, this is mostly an helper provided to you.

Quick note :
- If no mnemonic is provided (nor any privatekey, HDPubKey,...) or if mnemonic is `null`, a mnemonic will be created for you automatically.
- **By default, if not provided, network value will be `testnet`**.
- **By default, if not provided, network value will be `evonet`**.
- If no adapter specified, Wallet-lib will use a in-memory store (and warn you about it).
- If no transport specified, Wallet-lib will connect to DAPI.
- `wallet.getAccount()` is by default equivalent to `wallet.getAccount(0)`, where 0 correspond of the account index as per [BIP44](https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki).
Expand Down
2 changes: 1 addition & 1 deletion docs/storage/createWallet.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Parameters:
| parameters | type | required | Description |
|------------------------|-------------------|------------------| ------------------------------------------------------------------------|
| **walletId** | String | yes | The wallet id to create |
| **network** | Network/String | no (Def: testnet)| The network for the wallet |
| **network** | Network/String | no (Def: evonet) | The network for the wallet |
| **mnemonic** | Mnemonic/String | no (Def: null) | When applicable, the mnemonic used to generate the wallet |
| **type** | String | no (Def: null) | The wallet type to create |

Expand Down
2 changes: 1 addition & 1 deletion docs/wallet/Wallet.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Parameters:

| parameters | type | required | Description |
|------------------------------------------|--------------------|--------------------| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **walletOpts.network** | string/Network | no (def:'testnet') | Use either a string reference to Networks ('livenet', 'testnet') or it's Networks representation |
| **walletOpts.network** | string/Network | no (def:'evonet') | Use either a string reference to Networks ('livenet', 'testnet') or it's Networks representation |
| **walletOpts.mnemonic** | string/Mnemonic | no | If sets at null, generate a new mnemonic. If sets to a valid value, create wallet from mnemonic |
| **walletOpts.passphrase** | string | no | If sets at null, generate a new privateKey. It sets to a valid privateKey, uses it (with the passphrase if provided) to unlock the seed |
| **walletOpts.offlineMode** | boolean | no (def: false) | Set to true to not perform any request to the network |
Expand Down
1 change: 0 additions & 1 deletion examples/wallet-plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const coldStorageAddress = 'yb67GKjkk4AMrJcqoedCjeemFGo9bDovNS';

const wallet = new Wallet({
mode: 'light',
transporter: 'insight',
injectDefaultPlugins: false, // Will not inject default plugins (BIP44, SyncWorker)
// Will add these plugin instead, one is already init to show that both are fine to used.
// The order has it's importance, here ColdStorageWorker will use WalletConsolidator as a depts.
Expand Down
75 changes: 0 additions & 75 deletions fixtures/FakeNet/FakeNet.js

This file was deleted.

21 changes: 0 additions & 21 deletions fixtures/transporters/FakeInvalidTransporter.js

This file was deleted.

22 changes: 0 additions & 22 deletions fixtures/transporters/FakeValidTransporter.js

This file was deleted.

Loading