This repository was archived by the owner on Sep 3, 2019. It is now read-only.
Releases: bodhiproject/qweb3.js
Releases · bodhiproject/qweb3.js
1.2.2
1.2.1
Release Notes
- Updated to use Qtum Client 0.16.1
- Remove deprecated
getInfo - Changed validation for
initProviderto check for existence ofrawCallfunction
1.2.0
Release Notes
- Update Node engine to
10.9.0and NPM to6.4.1 - Added
generateandgenerateToAddressfor working withregtestchains
1.1.0
Release Notes
- Moved
Contract.constructDataHex()toEncoder.constructData()static method. Now you can generate a data hex for asendtocontractorcallcontractstatically.Contract.send()andContract.call()are still available convenience methods to call these. - Moved
Contract.validateMethodAndArgs()toEncoder.validateMethodAndArgs()static method.
1.0.0 - Breaking Changes! Please Read!
Migrating to 1.0.0
This release brings some changes that will require updates from those using existing Qweb3 versions.
Contracthas been removed from the module exports. You can now create aContractinstance from yourQweb3instance withqweb3.Contract(contractAddress, contractAbi). It will use the same provider set in the Qweb3 instance.Encoderhas been added as part of yourQweb3instance. eg.qweb3.encoder.uintToHex(). But it is also an exported class in the module.Decoderhas been added as part of yourQweb3instance. eg.qweb3.decoder.toQtumAddress(). But it is also an exported class in the module.Utilshas been added as part of yourQweb3instance. eg.qweb3.utils.appendHexPrefix(). But it is also an exported class in the module.Formatterhas been removed and it's functions were merged intoDecoder.Formatter.searchLogOutput() -> Decoder.decodeSearchLog().Formatter. callOutput() -> Decoder.decodeCall()
The Qweb3 constructor now accepts three different types:
URL string- This is the same as before. It will create an HttpProvider for you.HttpProvider- It will accept an HttpProvider instance if ever needed.QryptoRPCProvider- This provider is specifically used in our Qrypto Wallet Chrome Extension. It has limited calling ability torawCallonly.
The purpose of this refactor was meant to ensure compatibility of other Providers like the QryptoRPCProvider.
0.9.0
Release Notes
- Updated
HttpProviderto useaxiosnetworking module HttpProvider.requestrenamed torawCall. This should not affect anyone as it is used internally.- Fixed broken tests
0.8.2
Release Notes
- Expose
Encoder
0.8.1
Release Notes
- Added
decodeCallinDecoder
0.8.0
Release Notes
Important: This version requires updating your Qtum client to 0.15.1.
- Updated
sendtoaddressparams 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
Release Notes
- Add
backupwallet - Add
importwallet