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

Releases: bodhiproject/qweb3.js

1.2.2

09 Oct 03:57
de2cde7
Compare
Choose a tag to compare

Release Notes

  • Added error handling for Contract.send and Contract.call. Throws an Error object now.

1.2.1

30 Sep 08:46
702c4f9
Compare
Choose a tag to compare

Release Notes

  • Updated to use Qtum Client 0.16.1
  • Remove deprecated getInfo
  • Changed validation for initProvider to check for existence of rawCall function

1.2.0

04 Sep 08:14
e0fd2d6
Compare
Choose a tag to compare

Release Notes

  • Update Node engine to 10.9.0 and NPM to 6.4.1
  • Added generate and generateToAddress for working with regtest chains

1.1.0

15 Aug 08:06
aa022d1
Compare
Choose a tag to compare

Release Notes

  • Moved Contract.constructDataHex() to Encoder.constructData() static method. Now you can generate a data hex for a sendtocontract or callcontract statically. Contract.send() and Contract.call() are still available convenience methods to call these.
  • Moved Contract.validateMethodAndArgs() to Encoder.validateMethodAndArgs() static method.

1.0.0 - Breaking Changes! Please Read!

13 Aug 14:13
2d765ed
Compare
Choose a tag to compare

Migrating to 1.0.0

This release brings some changes that will require updates from those using existing Qweb3 versions.

  • Contract has been removed from the module exports. You can now create a Contract instance from your Qweb3 instance with qweb3.Contract(contractAddress, contractAbi). It will use the same provider set in the Qweb3 instance.
  • Encoder has been added as part of your Qweb3 instance. eg. qweb3.encoder.uintToHex(). But it is also an exported class in the module.
  • Decoder has been added as part of your Qweb3 instance. eg. qweb3.decoder.toQtumAddress(). But it is also an exported class in the module.
  • Utils has been added as part of your Qweb3 instance. eg. qweb3.utils.appendHexPrefix(). But it is also an exported class in the module.
  • Formatter has been removed and it's functions were merged into Decoder. Formatter.searchLogOutput() -> Decoder.decodeSearchLog(). Formatter. callOutput() -> Decoder.decodeCall()

The Qweb3 constructor now accepts three different types:

  1. URL string - This is the same as before. It will create an HttpProvider for you.
  2. HttpProvider - It will accept an HttpProvider instance if ever needed.
  3. QryptoRPCProvider - This provider is specifically used in our Qrypto Wallet Chrome Extension. It has limited calling ability to rawCall only.

The purpose of this refactor was meant to ensure compatibility of other Providers like the QryptoRPCProvider.

0.9.0

08 Aug 05:45
5faf4a2
Compare
Choose a tag to compare

Release Notes

  • Updated HttpProvider to use axios networking module
  • HttpProvider.request renamed to rawCall. This should not affect anyone as it is used internally.
  • Fixed broken tests

0.8.2

30 Jul 08:27
ec3f454
Compare
Choose a tag to compare

Release Notes

  • Expose Encoder

0.8.1

24 Jul 10:30
c006270
Compare
Choose a tag to compare

Release Notes

  • Added decodeCall in Decoder

0.8.0

10 Jun 07:28
51c450e
Compare
Choose a tag to compare

Release Notes

Important: This version requires updating your Qtum client to 0.15.1.

  • Updated sendtoaddress params to match new client params.
  • Refactored tests to use .env file for environment setup. See the readme for further instructions.
  • Run certain tests based on whether it is a clean environment (good for CI test environments).

0.7.7

25 Apr 21:30
5bb293f
Compare
Choose a tag to compare

Release Notes

  • Add backupwallet
  • Add importwallet