Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
Merge pull request #677 from LiskHQ/676-update_lisk_elements
Browse files Browse the repository at this point in the history
Update lisk-elements version - Closes #676
  • Loading branch information
shuse2 authored Dec 7, 2018
2 parents 05774d3 + 8651f87 commit 9aaa712
Show file tree
Hide file tree
Showing 32 changed files with 175 additions and 122 deletions.
117 changes: 87 additions & 30 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@
"/default_config.json"
],
"dependencies": {
"@liskhq/lisk-api-client": "1.1.1",
"@liskhq/lisk-constants": "1.1.1",
"@liskhq/lisk-cryptography": "1.1.1",
"@liskhq/lisk-passphrase": "1.1.1",
"@liskhq/lisk-transactions": "1.1.1",
"@liskhq/lisk-api-client": "2.0.0",
"@liskhq/lisk-constants": "1.2.0",
"@liskhq/lisk-cryptography": "2.0.0",
"@liskhq/lisk-passphrase": "2.0.0",
"@liskhq/lisk-transactions": "2.0.0",
"@oclif/command": "1.5.0",
"@oclif/config": "1.7.4",
"@oclif/errors": "1.2.0",
Expand Down
2 changes: 1 addition & 1 deletion src/commands/account/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
*/
import { flags as flagParser } from '@oclif/command';
import cryptography from '@liskhq/lisk-cryptography';
import * as cryptography from '@liskhq/lisk-cryptography';
import BaseCommand from '../../base';
import { createMnemonicPassphrase } from '../../utils/mnemonic';

Expand Down
2 changes: 1 addition & 1 deletion src/commands/account/get.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
*/
import BaseCommand from '../../base';
import getAPIClient from '../../utils/api';
import { getAPIClient } from '../../utils/api';
import { query } from '../../utils/query';

export default class GetCommand extends BaseCommand {
Expand Down
6 changes: 3 additions & 3 deletions src/commands/account/show.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
* Removal or modification of this copyright notice is prohibited.
*
*/
import cryptography from '@liskhq/lisk-cryptography';
import * as cryptography from '@liskhq/lisk-cryptography';
import { flags as flagParser } from '@oclif/command';
import BaseCommand from '../../base';
import getInputsFromSources from '../../utils/input';
import commonFlags from '../../utils/flags';
import { getInputsFromSources } from '../../utils/input';
import { flags as commonFlags } from '../../utils/flags';

const processInput = ({ passphrase }) => {
const { privateKey, publicKey } = cryptography.getKeys(passphrase);
Expand Down
2 changes: 1 addition & 1 deletion src/commands/block/get.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
*/
import BaseCommand from '../../base';
import getAPIClient from '../../utils/api';
import { getAPIClient } from '../../utils/api';
import { query } from '../../utils/query';

export default class GetCommand extends BaseCommand {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/config/set.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
*/
import url from 'url';
import cryptography from '@liskhq/lisk-cryptography';
import * as cryptography from '@liskhq/lisk-cryptography';
import BaseCommand from '../../base';
import {
CONFIG_VARIABLES,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/delegate/get.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
*/
import BaseCommand from '../../base';
import getAPIClient from '../../utils/api';
import { getAPIClient } from '../../utils/api';
import { query } from '../../utils/query';

export default class GetCommand extends BaseCommand {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/delegate/voters.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
import { flags as flagParser } from '@oclif/command';
import BaseCommand from '../../base';
import getAPIClient from '../../utils/api';
import { getAPIClient } from '../../utils/api';
import { query } from '../../utils/query';
import { SORT_FIELDS } from '../../utils/constants';

Expand Down
2 changes: 1 addition & 1 deletion src/commands/delegate/votes.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
import { flags as flagParser } from '@oclif/command';
import BaseCommand from '../../base';
import getAPIClient from '../../utils/api';
import { getAPIClient } from '../../utils/api';
import { query } from '../../utils/query';
import { SORT_FIELDS } from '../../utils/constants';

Expand Down
6 changes: 3 additions & 3 deletions src/commands/message/decrypt.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
*
*/
import { flags as flagParser } from '@oclif/command';
import cryptography from '@liskhq/lisk-cryptography';
import * as cryptography from '@liskhq/lisk-cryptography';
import BaseCommand from '../../base';
import { ValidationError } from '../../utils/error';
import getInputsFromSources from '../../utils/input';
import commonFlags from '../../utils/flags';
import { getInputsFromSources } from '../../utils/input';
import { flags as commonFlags } from '../../utils/flags';

const processInputs = (nonce, senderPublicKey, message) => ({
passphrase,
Expand Down
6 changes: 3 additions & 3 deletions src/commands/message/encrypt.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
*
*/
import { flags as flagParser } from '@oclif/command';
import cryptography from '@liskhq/lisk-cryptography';
import * as cryptography from '@liskhq/lisk-cryptography';
import BaseCommand from '../../base';
import { ValidationError } from '../../utils/error';
import getInputsFromSources from '../../utils/input';
import commonFlags from '../../utils/flags';
import { getInputsFromSources } from '../../utils/input';
import { flags as commonFlags } from '../../utils/flags';

const processInputs = (recipientPublicKey, message) => ({
passphrase,
Expand Down
6 changes: 3 additions & 3 deletions src/commands/message/sign.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
*
*/
import { flags as flagParser } from '@oclif/command';
import cryptography from '@liskhq/lisk-cryptography';
import * as cryptography from '@liskhq/lisk-cryptography';
import BaseCommand from '../../base';
import { ValidationError } from '../../utils/error';
import getInputsFromSources from '../../utils/input';
import commonFlags from '../../utils/flags';
import { getInputsFromSources } from '../../utils/input';
import { flags as commonFlags } from '../../utils/flags';

const processInputs = message => ({ passphrase, data }) =>
cryptography.signMessageWithPassphrase(message || data, passphrase);
Expand Down
6 changes: 3 additions & 3 deletions src/commands/message/verify.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
*
*/
import { flags as flagParser } from '@oclif/command';
import cryptography from '@liskhq/lisk-cryptography';
import * as cryptography from '@liskhq/lisk-cryptography';
import BaseCommand from '../../base';
import { ValidationError } from '../../utils/error';
import getInputsFromSources from '../../utils/input';
import commonFlags from '../../utils/flags';
import { getInputsFromSources } from '../../utils/input';
import { flags as commonFlags } from '../../utils/flags';

const processInputs = (publicKey, signature, message) => ({ data }) => ({
verified: cryptography.verifyMessageWithPublicKey({
Expand Down
Loading

0 comments on commit 9aaa712

Please sign in to comment.