Releases: CityOfZion/neon-js
v2.2.1: Empty string
- Fixes empty string error for
fixed82num
. This fixes the error forgetToken
when retrieving balance of zero
v2.2.0: NEP6 Wallet
-
Added new Wallet class as implementation for NEP6
-
Upgraded Account class to fit NEP6 implementation
-
Transaction now modifies Balance upon construction.
-
Add
getToken
toapi.nep5
which is a summation ofgetTokenBalance
andgetTokenInfo
-
Add
VMZip
method for better VM result parsing -
Add
hexstring2str
method -
Bugfix
getTokenBalance
throwing when getting an address with zero balance -
Bugfix
doTransferToken
sending gas to wrong address
Build Balance
Build lib
for 2.1.0
Balance
V2.1.0
-
Balance as an ES6 class.
verifyAssets
to validate unspent coins against a given NEO node. Used to check if balance is fully synced and usable.applyTx
to apply a spending of a Transaction to the Balance. Allows a Balance to be used to build another Transaction without waiting for sync.- Data structure reworked. AssetBalances are now tucked under
assets
. UseassetSymbols
to discover the keys for lookup.
// This array contains all the symbols of the assets available in this Balance
balance.assetSymbols = ['NEO', 'GAS']
// Lookup assets using their symbols
balance.assets = {
NEO: {balance: 1, unspent: [ Object ], spent: [], unconfirmed: []}
GAS: {balance: 25.1, unspent: [ Object ], spent: [], unconfirmed: []}
}
- Added
doTransferToken
toapi/nep5
- Unit tests for
utils
- Typescript typings fixed
2.0.0
2.0.0
- Introduction of ES6 classes such as
Account
,Query
, Transaction` for better usability - Exposure of modules through named exports using ES6 conventions:
rpc
,sc
,tx
,u
,CONST
,wallet
,api
- Semantic version kept as default export.
Note: There are breaking changes when upgrading from 1.1.1.
Changelog: http://cityofzion.io/neon-js/2.0.0/changelog.html Not guaranteed to catch all breaking changes
Final 1.1 release with new documentation setup
1.1.1
- Bugfix to _emitNum.
- Add documentation process.
- Modify Neon API to allow for external signing function.
This is the last release for v1.1.x. Do expect breaking changes coming up next.
API rewrite with transaction construction
Breaking changes to API and significant improvements for transaction construction
nep2 + more comprehensive address validation
1.0.4 additional nep2 method
nep2 support
1.0.2 add nep2 support