Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NW release 5.0.3 #374

Merged
merged 28 commits into from
May 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
da1290c
Fix token decimals
vbaranov Apr 22, 2020
1561400
Return back import contract tests
vbaranov Apr 22, 2020
3d12d82
Return back search tokens tests
vbaranov Apr 22, 2020
e0f9a49
Disable temp import contract tests
vbaranov Apr 23, 2020
ef65a72
Fix test
vbaranov Apr 23, 2020
f31f0f5
CHANGEGLOG entry
vbaranov Apr 23, 2020
cf7adc0
Merge pull request #363 from poanetwork/fix-token-decimals-temp
vbaranov Apr 23, 2020
ed841f7
Increase max token symbol length up to 12
vbaranov Apr 29, 2020
7a0a069
Refactoring: var -> let, const
vbaranov Apr 29, 2020
6dd83a3
var -> let, const. Fix tests
vbaranov Apr 29, 2020
d228a9c
Merge pull request #367 from poanetwork/vb-refactoring
vbaranov Apr 29, 2020
051813f
Extend available Symbol length to 22 to support yDAI+yUSDC+yUSDT+yTUSD
vbaranov Apr 29, 2020
1fa277b
Keystore file import without password
vbaranov Apr 29, 2020
89466a2
Merge pull request #366 from poanetwork/vb-fix-custom-symbol-max-length
vbaranov Apr 29, 2020
2b0e113
Add CHANGELOG entry
vbaranov Apr 29, 2020
22ab411
Merge branch 'develop' into vb-json-import-without-password
vbaranov Apr 29, 2020
724903a
Merge pull request #368 from poanetwork/vb-json-import-without-password
vbaranov Apr 29, 2020
b20644d
RSK: fix GasPrice calculation (changed output of minimumGasPrice)
vbaranov Apr 29, 2020
1799d54
Add CHANGELOG entry
vbaranov Apr 29, 2020
18d6474
Fix unit tests
vbaranov Apr 29, 2020
13dc7f5
Merge pull request #369 from poanetwork/vb-rsk-gas-price
vbaranov Apr 29, 2020
5b11748
Update RSK contracts metadata repo
vbaranov Apr 30, 2020
dcc03ca
Update CHANGELOG
vbaranov Apr 30, 2020
c296d70
Merge pull request #372 from poanetwork/rsk-update-contract-metadata
vbaranov Apr 30, 2020
c9def98
Add Stake token
vbaranov May 1, 2020
9757995
Add CHANGELOG entry
vbaranov May 1, 2020
c60cf06
Merge pull request #373 from poanetwork/vb-stake-token
vbaranov May 1, 2020
5e49fa7
Bump version: 5.0.3
vbaranov May 1, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

## Current Master

## 5.0.3 Fri May 01 2020

- [#373](https://github.com/poanetwork/nifty-wallet/pull/373) - (Feature) Add STAKE token
- [#372](https://github.com/poanetwork/nifty-wallet/pull/372) - (Chore) Update RSK contracts metadata repo
- [#369](https://github.com/poanetwork/nifty-wallet/pull/369) - (Fix) RSK: fix GasPrice calculation (changed interface of minimumGasPrice - hex instead of integer)
- [#368](https://github.com/poanetwork/nifty-wallet/pull/368) - (Fix) Ability to import Keystore file if it is not secured by password
- [#366](https://github.com/poanetwork/nifty-wallet/pull/366) - (Fix) Increase max token symbol length up to 12
- [#363](https://github.com/poanetwork/nifty-wallet/pull/363) - (Fix) token decimals display in pending tx screen

## 5.0.2 Thu Apr 16 2020

- [#359](https://github.com/poanetwork/nifty-wallet/pull/359) - (Fix) Fix exposed accounts in wallet locked state
Expand Down
2 changes: 1 addition & 1 deletion app/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "__MSG_appName__",
"short_name": "__MSG_appName__",
"version": "5.0.2",
"version": "5.0.3",
"manifest_version": 2,
"author": "POA Network",
"description": "__MSG_appDescription__",
Expand Down
94 changes: 47 additions & 47 deletions app/scripts/chromereload.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
// // The reload client has a compatibility with livereload.
// // WARNING: only supports reload command.

// var LIVERELOAD_HOST = 'localhost:';
// var LIVERELOAD_PORT = 35729;
// var connection = new WebSocket('ws://' + LIVERELOAD_HOST + LIVERELOAD_PORT + '/livereload');
// const LIVERELOAD_HOST = 'localhost:';
// const LIVERELOAD_PORT = 35729;
// const connection = new WebSocket('ws://' + LIVERELOAD_HOST + LIVERELOAD_PORT + '/livereload');

// connection.onopen = function(event) {
// var hello = {
// const hello = {
// command: 'hello',
// protocols: ['http://livereload.com/protocols/official-7']
// };
Expand All @@ -23,7 +23,7 @@

// connection.onmessage = function (e) {
// if (e.data) {
// var data = JSON.parse(e.data);
// const data = JSON.parse(e.data);
// if (data && data.command === 'reload') {
// extension.runtime.reload();
// }
Expand All @@ -32,9 +32,9 @@

window.LiveReloadOptions = { host: 'localhost' };

(function e (t, n, r) { function s (o, u) { if (!n[o]) { if (!t[o]) { var a = typeof require === 'function' && require; if (!u && a) return a(o, !0); if (i) return i(o, !0); var f = new Error("Cannot find module '" + o + "'"); throw f.code = 'MODULE_NOT_FOUND', f } var l = n[o] = {exports: {}}; t[o][0].call(l.exports, function (e) { var n = t[o][1][e]; return s(n ? n : e) }, l, l.exports, e, t, n, r) } return n[o].exports } var i = typeof require === 'function' && require; for (var o = 0; o < r.length; o++)s(r[o]); return s })({1: [function (require, module, exports) {
(function e (t, n, r) { function s (o, u) { if (!n[o]) { if (!t[o]) { let a = typeof require === 'function' && require; if (!u && a) return a(o, !0); if (i) return i(o, !0); let f = new Error("Cannot find module '" + o + "'"); throw f.code = 'MODULE_NOT_FOUND', f } let l = n[o] = {exports: {}}; t[o][0].call(l.exports, function (e) { let n = t[o][1][e]; return s(n ? n : e) }, l, l.exports, e, t, n, r) } return n[o].exports } let i = typeof require === 'function' && require; for (let o = 0; o < r.length; o++)s(r[o]); return s })({1: [function (require, module, exports) {
(function () {
var Connector, PROTOCOL_6, PROTOCOL_7, Parser, Version, _ref
let Connector, PROTOCOL_6, PROTOCOL_7, Parser, Version, _ref

_ref = require('./protocol'), Parser = _ref.Parser, PROTOCOL_6 = _ref.PROTOCOL_6, PROTOCOL_7 = _ref.PROTOCOL_7

Expand Down Expand Up @@ -166,7 +166,7 @@ window.LiveReloadOptions = { host: 'localhost' };
}

Connector.prototype._onopen = function (e) {
var hello
let hello
this.handlers.socketConnected()
this._disconnectionReason = 'handshake-failed'
hello = {
Expand Down Expand Up @@ -204,7 +204,7 @@ window.LiveReloadOptions = { host: 'localhost' };
}).call(this)
}, {'./protocol': 6}], 2: [function (require, module, exports) {
(function () {
var CustomEvents
let CustomEvents

CustomEvents = {
bind: function (element, eventName, handler) {
Expand All @@ -222,7 +222,7 @@ window.LiveReloadOptions = { host: 'localhost' };
}
},
fire: function (element, eventName) {
var event
let event
if (element.addEventListener) {
event = document.createEvent('HTMLEvents')
event.initEvent(eventName, true, true)
Expand All @@ -243,7 +243,7 @@ window.LiveReloadOptions = { host: 'localhost' };
}).call(this)
}, {}], 3: [function (require, module, exports) {
(function () {
var LessPlugin
let LessPlugin

module.exports = LessPlugin = (function () {
LessPlugin.identifier = 'less'
Expand All @@ -268,9 +268,9 @@ window.LiveReloadOptions = { host: 'localhost' };
}

LessPlugin.prototype.reloadLess = function (path) {
var link, links, _i, _len
let link, links, _i, _len
links = (function () {
var _i, _len, _ref, _results
let _i, _len, _ref, _results
_ref = document.getElementsByTagName('link')
_results = []
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
Expand Down Expand Up @@ -304,7 +304,7 @@ window.LiveReloadOptions = { host: 'localhost' };
}).call(this)
}, {}], 4: [function (require, module, exports) {
(function () {
var Connector, LiveReload, Options, Reloader, Timer,
let Connector, LiveReload, Options, Reloader, Timer,
__hasProp = {}.hasOwnProperty

Connector = require('./connector').Connector
Expand All @@ -317,7 +317,7 @@ window.LiveReloadOptions = { host: 'localhost' };

exports.LiveReload = LiveReload = (function () {
function LiveReload (window) {
var k, v, _ref
let k, v, _ref
this.window = window
this.listeners = {}
this.plugins = []
Expand Down Expand Up @@ -358,7 +358,7 @@ window.LiveReloadOptions = { host: 'localhost' };
})(this),
connected: (function (_this) {
return function (protocol) {
var _base
let _base
if (typeof (_base = _this.listeners).connect === 'function') {
_base.connect()
}
Expand All @@ -381,7 +381,7 @@ window.LiveReloadOptions = { host: 'localhost' };
})(this),
disconnected: (function (_this) {
return function (reason, nextDelay) {
var _base
let _base
if (typeof (_base = _this.listeners).disconnect === 'function') {
_base.disconnect()
}
Expand Down Expand Up @@ -426,7 +426,7 @@ window.LiveReloadOptions = { host: 'localhost' };
}

LiveReload.prototype.performReload = function (message) {
var _ref, _ref1
let _ref, _ref1
this.log('LiveReload received reload request: ' + (JSON.stringify(message, null, 2)))
return this.reloader.reload(message.path, {
liveCSS: (_ref = message.liveCSS) != null ? _ref : true,
Expand All @@ -442,7 +442,7 @@ window.LiveReloadOptions = { host: 'localhost' };
}

LiveReload.prototype.shutDown = function () {
var _base
let _base
if (!this.initialized) {
return
}
Expand All @@ -456,7 +456,7 @@ window.LiveReloadOptions = { host: 'localhost' };
}

LiveReload.prototype.addPlugin = function (pluginClass) {
var plugin
let plugin
if (!this.initialized) {
return
}
Expand All @@ -481,7 +481,7 @@ window.LiveReloadOptions = { host: 'localhost' };
}

LiveReload.prototype.analyze = function () {
var plugin, pluginData, pluginsData, _i, _len, _ref
let plugin, pluginData, pluginsData, _i, _len, _ref
if (!this.initialized) {
return
}
Expand All @@ -507,7 +507,7 @@ window.LiveReloadOptions = { host: 'localhost' };
}).call(this)
}, {'./connector': 1, './options': 5, './reloader': 7, './timer': 9}], 5: [function (require, module, exports) {
(function () {
var Options
let Options

exports.Options = Options = (function () {
function Options () {
Expand Down Expand Up @@ -536,7 +536,7 @@ window.LiveReloadOptions = { host: 'localhost' };
})()

Options.extract = function (document) {
var element, keyAndValue, m, mm, options, pair, src, _i, _j, _len, _len1, _ref, _ref1
let element, keyAndValue, m, mm, options, pair, src, _i, _j, _len, _len1, _ref, _ref1
_ref = document.getElementsByTagName('script')
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
element = _ref[_i]
Expand Down Expand Up @@ -566,8 +566,8 @@ window.LiveReloadOptions = { host: 'localhost' };
}).call(this)
}, {}], 6: [function (require, module, exports) {
(function () {
var PROTOCOL_6, PROTOCOL_7, Parser, ProtocolError,
__indexOf = [].indexOf || function (item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i } return -1 }
let PROTOCOL_6, PROTOCOL_7, Parser, ProtocolError,
__indexOf = [].indexOf || function (item) { for (let i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i } return -1 }

exports.PROTOCOL_6 = PROTOCOL_6 = 'http://livereload.com/protocols/official-6'

Expand All @@ -592,7 +592,7 @@ window.LiveReloadOptions = { host: 'localhost' };
}

Parser.prototype.process = function (data) {
var command, e, message, options, _ref
let command, e, message, options, _ref
try {
if (this.protocol == null) {
if (data.match(/^!!ver:([\d.]+)$/)) {
Expand Down Expand Up @@ -638,7 +638,7 @@ window.LiveReloadOptions = { host: 'localhost' };
}

Parser.prototype._parseMessage = function (data, validCommands) {
var e, message, _ref
let e, message, _ref
try {
message = JSON.parse(data)
} catch (_error) {
Expand All @@ -659,10 +659,10 @@ window.LiveReloadOptions = { host: 'localhost' };
}).call(this)
}, {}], 7: [function (require, module, exports) {
(function () {
var IMAGE_STYLES, Reloader, numberOfMatchingSegments, pathFromUrl, pathsMatch, pickBestMatch, splitUrl
let IMAGE_STYLES, Reloader, numberOfMatchingSegments, pathFromUrl, pathsMatch, pickBestMatch, splitUrl

splitUrl = function (url) {
var hash, index, params
let hash, index, params
if ((index = url.indexOf('#')) >= 0) {
hash = url.slice(index)
url = url.slice(0, index)
Expand All @@ -683,7 +683,7 @@ window.LiveReloadOptions = { host: 'localhost' };
}

pathFromUrl = function (url) {
var path
let path
url = splitUrl(url).url
if (url.indexOf('file://') === 0) {
path = url.replace(/^file:\/\/(localhost)?/, '')
Expand All @@ -694,7 +694,7 @@ window.LiveReloadOptions = { host: 'localhost' };
}

pickBestMatch = function (path, objects, pathFunc) {
var bestMatch, object, score, _i, _len
let bestMatch, object, score, _i, _len
bestMatch = {
score: 0,
}
Expand All @@ -716,7 +716,7 @@ window.LiveReloadOptions = { host: 'localhost' };
}

numberOfMatchingSegments = function (path1, path2) {
var comps1, comps2, eqCount, len
let comps1, comps2, eqCount, len
path1 = path1.replace(/^\/+/, '').toLowerCase()
path2 = path2.replace(/^\/+/, '').toLowerCase()
if (path1 === path2) {
Expand Down Expand Up @@ -765,7 +765,7 @@ window.LiveReloadOptions = { host: 'localhost' };
}

Reloader.prototype.reload = function (path, options) {
var plugin, _base, _i, _len, _ref
let plugin, _base, _i, _len, _ref
this.options = options
if ((_base = this.options).stylesheetReloadTimeout == null) {
_base.stylesheetReloadTimeout = 15000
Expand Down Expand Up @@ -798,7 +798,7 @@ window.LiveReloadOptions = { host: 'localhost' };
}

Reloader.prototype.reloadImages = function (path) {
var expando, img, selector, styleNames, styleSheet, _i, _j, _k, _l, _len, _len1, _len2, _len3, _ref, _ref1, _ref2, _ref3, _results
let expando, img, selector, styleNames, styleSheet, _i, _j, _k, _l, _len, _len1, _len2, _len3, _ref, _ref1, _ref2, _ref3, _results
expando = this.generateUniqueString()
_ref = this.document.images
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
Expand Down Expand Up @@ -829,7 +829,7 @@ window.LiveReloadOptions = { host: 'localhost' };
}

Reloader.prototype.reloadStylesheetImages = function (styleSheet, path, expando) {
var e, rule, rules, styleNames, _i, _j, _len, _len1
let e, rule, rules, styleNames, _i, _j, _len, _len1
try {
rules = styleSheet != null ? styleSheet.cssRules : void 0
} catch (_error) {
Expand Down Expand Up @@ -857,7 +857,7 @@ window.LiveReloadOptions = { host: 'localhost' };
}

Reloader.prototype.reloadStyleImages = function (style, styleNames, path, expando) {
var newValue, styleName, value, _i, _len
let newValue, styleName, value, _i, _len
for (_i = 0, _len = styleNames.length; _i < _len; _i++) {
styleName = styleNames[_i]
value = style[styleName]
Expand All @@ -879,9 +879,9 @@ window.LiveReloadOptions = { host: 'localhost' };
}

Reloader.prototype.reloadStylesheet = function (path) {
var imported, link, links, match, style, _i, _j, _k, _l, _len, _len1, _len2, _len3, _ref, _ref1
let imported, link, links, match, style, _i, _j, _k, _l, _len, _len1, _len2, _len3, _ref, _ref1
links = (function () {
var _i, _len, _ref, _results
let _i, _len, _ref, _results
_ref = this.document.getElementsByTagName('link')
_results = []
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
Expand Down Expand Up @@ -936,7 +936,7 @@ window.LiveReloadOptions = { host: 'localhost' };
}

Reloader.prototype.collectImportedStylesheets = function (link, styleSheet, result) {
var e, index, rule, rules, _i, _len
let e, index, rule, rules, _i, _len
try {
rules = styleSheet != null ? styleSheet.cssRules : void 0
} catch (_error) {
Expand Down Expand Up @@ -965,7 +965,7 @@ window.LiveReloadOptions = { host: 'localhost' };
}

Reloader.prototype.waitUntilCssLoads = function (clone, func) {
var callbackExecuted, executeCallback, poll
let callbackExecuted, executeCallback, poll
callbackExecuted = false
executeCallback = (function (_this) {
return function () {
Expand Down Expand Up @@ -1003,7 +1003,7 @@ window.LiveReloadOptions = { host: 'localhost' };
}

Reloader.prototype.reattachStylesheetLink = function (link) {
var clone, parent
let clone, parent
if (link.__LiveReload_pendingRemoval) {
return
}
Expand All @@ -1025,14 +1025,14 @@ window.LiveReloadOptions = { host: 'localhost' };
}
return this.waitUntilCssLoads(clone, (function (_this) {
return function () {
var additionalWaitingTime
let additionalWaitingTime
if (/AppleWebKit/.test(navigator.userAgent)) {
additionalWaitingTime = 5
} else {
additionalWaitingTime = 200
}
return _this.Timer.start(additionalWaitingTime, function () {
var _ref
let _ref
if (!link.parentNode) {
return
}
Expand All @@ -1045,7 +1045,7 @@ window.LiveReloadOptions = { host: 'localhost' };
}

Reloader.prototype.reattachImportedRule = function (_arg) {
var href, index, link, media, newRule, parent, rule, tempLink
let href, index, link, media, newRule, parent, rule, tempLink
rule = _arg.rule, index = _arg.index, link = _arg.link
parent = rule.parentStyleSheet
href = this.generateCacheBustUrl(rule.href)
Expand Down Expand Up @@ -1087,7 +1087,7 @@ window.LiveReloadOptions = { host: 'localhost' };
}

Reloader.prototype.generateCacheBustUrl = function (url, expando) {
var hash, oldParams, originalUrl, params, _ref
let hash, oldParams, originalUrl, params, _ref
if (expando == null) {
expando = this.generateUniqueString()
}
Expand Down Expand Up @@ -1117,7 +1117,7 @@ window.LiveReloadOptions = { host: 'localhost' };
}).call(this)
}, {}], 8: [function (require, module, exports) {
(function () {
var CustomEvents, LiveReload, k
let CustomEvents, LiveReload, k

CustomEvents = require('./customevents')

Expand Down Expand Up @@ -1149,7 +1149,7 @@ window.LiveReloadOptions = { host: 'localhost' };
}).call(this)
}, {'./customevents': 2, './less': 3, './livereload': 4}], 9: [function (require, module, exports) {
(function () {
var Timer
let Timer

exports.Timer = Timer = (function () {
function Timer (func) {
Expand Down
Loading