This repository has been 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
initProvider
to check for existence ofrawCall
function
1.2.0
Release Notes
- Update Node engine to
10.9.0
and NPM to6.4.1
- Added
generate
andgenerateToAddress
for working withregtest
chains
1.1.0
Release Notes
- Moved
Contract.constructDataHex()
toEncoder.constructData()
static method. Now you can generate a data hex for asendtocontract
orcallcontract
statically.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.
Contract
has been removed from the module exports. You can now create aContract
instance from yourQweb3
instance withqweb3.Contract(contractAddress, contractAbi)
. It will use the same provider set in the Qweb3 instance.Encoder
has been added as part of yourQweb3
instance. eg.qweb3.encoder.uintToHex()
. But it is also an exported class in the module.Decoder
has been added as part of yourQweb3
instance. eg.qweb3.decoder.toQtumAddress()
. But it is also an exported class in the module.Utils
has been added as part of yourQweb3
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 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 torawCall
only.
The purpose of this refactor was meant to ensure compatibility of other Providers
like the QryptoRPCProvider
.
0.9.0
Release Notes
- Updated
HttpProvider
to useaxios
networking module HttpProvider.request
renamed 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
decodeCall
inDecoder
0.8.0
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
Release Notes
- Add
backupwallet
- Add
importwallet