question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update to only use lisk-sdk

See original GitHub issue

Expected behavior

lisk-core should be able to be built only using lisk-sdk.

Actual behavior

It uses multiple packages. @liskhq/lisk-cryptography @liskhq/lisk-transactions etc

Which version(s) does this affect? (Environment, OS, etc…)

2.0-

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
michielmulderscommented, Aug 6, 2019

@shuse2 comment: It’s because SDK is in javascript. It’s not creating this link to the lisk-transactions. If we use directly from SDK, it doesn’t know about the lisk-transactions in Typescript way.

0reactions
michielmulderscommented, Aug 6, 2019

If you compare the exported interface of tx and crypto. crypto: node_modules/@liskhq/lisk-transactions/dist-node/index.d.ts

import * as constants from './constants';
export * from './buffer';
export * from './convert';
export * from './encrypt';
export * from './hash';
export * from './keys';
export * from './sign';
export { constants };

–> All public interfaces are exported.

tx: node_modules/@liskhq/lisk-transactions/dist-node/index.d.ts

import * as BigNum from '@liskhq/bignum';
import { transfer } from './0_transfer';
import { TransferTransaction } from './0_transfer_transaction';
import { registerSecondPassphrase } from './1_register_second_passphrase';
import { SecondSignatureTransaction } from './1_second_signature_transaction';
import { DelegateTransaction } from './2_delegate_transaction';
import { registerDelegate } from './2_register_delegate';
import { castVotes } from './3_cast_votes';
import { VoteTransaction } from './3_vote_transaction';
import { MultisignatureTransaction } from './4_multisignature_transaction';
import { registerMultisignature } from './4_register_multisignature_account';
import { createDapp } from './5_create_dapp';
...

–> Only few public interfaces are exported. The issue happens because we use types that are not exported as input for certain functions that are exposed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use only necessary dependencies · Issue #3494 - GitHub
Libraries Module Required Cost to remove Priority of removing "body‑parser": "1.18.3", API x N/A N/A "compression": "1.7.3", API x N/A N/A "cors": "2.8.5", API x N/A...
Read more >
Prerequisites :: Lisk documentation
The Prerequisites describes the required dependencies, including the ports, toolchain components & the installation with NPM.
Read more >
lisk-sdk - npm
The only application built using the Lisk SDK currently feasible for production usage is Lisk Core, the client of the Lisk network itself....
Read more >
HackOnLisk - Devpost
Build your own blockchain application with the Lisk SDK in JavaScript. ... There are only 3 days left to complete your submission for...
Read more >
Developing a Blockchain Application with Lisk SDK 5.1.0
To develop a blockchain application using the Lisk SDK 5.1.0, Backend Developer Nazar Hussain went on stage at Kühlhaus.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found