@exodus/models
Advanced tools
Comparing version 2.1.1 to 2.2.0
@@ -0,1 +1,7 @@ | ||
2.2.0 / 2019-08-06 | ||
------------------ | ||
- Handle `tx.feeAmount` for NEO being a GAS currency | ||
- Remove `fee-estimator` | ||
2.1.1 / 2019-07-26 | ||
@@ -2,0 +8,0 @@ ------------------ |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.UtxoCollection = exports.TxSet = exports.Tx = exports.getFeeEstimator = exports.AddressSet = exports.Address = void 0; | ||
exports.UtxoCollection = exports.TxSet = exports.Tx = exports.AddressSet = exports.Address = void 0; | ||
@@ -17,4 +17,2 @@ var _address = _interopRequireDefault(require("./address")); | ||
var _feeEstimator = _interopRequireDefault(require("./utxo-collection/fee-estimator")); | ||
var _utxoCollection = _interopRequireDefault(require("./utxo-collection")); | ||
@@ -28,4 +26,2 @@ | ||
exports.AddressSet = AddressSet; | ||
const getFeeEstimator = _feeEstimator.default; | ||
exports.getFeeEstimator = getFeeEstimator; | ||
const Tx = _tx.default; | ||
@@ -32,0 +28,0 @@ exports.Tx = Tx; |
@@ -56,2 +56,3 @@ "use strict"; | ||
if (String(json.feeAmount).endsWith('BTC')) coinName = 'bitcoin'; | ||
if (String(json.feeAmount).endsWith('GAS')) coinName = 'neogas'; | ||
tx.feeAmount = parseCurrency(json.feeAmount, coinName); | ||
@@ -58,0 +59,0 @@ } else if (json.feeAmount && !json.coinName && (0, _currency.isNumberUnit)(json.feeAmount)) { |
{ | ||
"name": "@exodus/models", | ||
"version": "2.1.1", | ||
"version": "2.2.0", | ||
"description": "Exodus models", | ||
@@ -17,4 +17,3 @@ "main": "lib/index.js", | ||
"lodash": "^4.17.11", | ||
"proxy-freeze": "^1.0.0", | ||
"varuint-bitcoin": "^1.1.0" | ||
"proxy-freeze": "^1.0.0" | ||
}, | ||
@@ -21,0 +20,0 @@ "devDependencies": { |
5
30999
10
761
- Removedvaruint-bitcoin@^1.1.0
- Removedsafe-buffer@5.2.1(transitive)
- Removedvaruint-bitcoin@1.1.2(transitive)