diff --git a/package-lock.json b/package-lock.json index bbee366fd60b7330ec3b119e0840cc90a2001456..e4f9778ddb04712448f33304f27dda997dd025c1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,9 +5,9 @@ "requires": true, "dependencies": { "@parity/abi": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/@parity/abi/-/abi-2.1.2.tgz", - "integrity": "sha512-DVH7aEZrSc0seimtehO6pCkkJ/oqXZanAXJXKqgk6x1vSc276pAk7xOcMNe3RKio7VfnIi9c05tqqTX8hUG5hw==", + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/@parity/abi/-/abi-2.1.3.tgz", + "integrity": "sha512-FETrNnu9+uQiICpCpFIDidesWYS4ditXvGn/zjVZunlPXCdX4HbBzHECSNbaULzZOBO+AV+CC/Qf/zITaf78Lw==", "requires": { "bignumber.js": "3.0.1", "js-sha3": "0.5.5", @@ -15,12 +15,12 @@ } }, "@parity/api": { - "version": "2.1.20", - "resolved": "https://registry.npmjs.org/@parity/api/-/api-2.1.20.tgz", - "integrity": "sha512-kl50p0644oDp13zlsu5VmuhstUa4CrgcZQOV+ybQ8cnXT3eVD743S0a5zC9n8Y4RJbLxHUsM7oDkbTG3cj+/OA==", + "version": "2.1.15", + "resolved": "https://registry.npmjs.org/@parity/api/-/api-2.1.15.tgz", + "integrity": "sha512-RXh4QjT3uKuir+uxjdduVbrF4llppfSToCJ9Yw6LJ7cn9SyV3LMR0MM9xuQSDLX7DXze1FXNWe1rSFQaG3YLTw==", "requires": { - "@parity/abi": "2.1.2", - "@parity/jsonrpc": "2.1.4", + "@parity/abi": "2.1.3", + "@parity/jsonrpc": "2.1.5", "@parity/wordlist": "1.1.0", "bignumber.js": "3.0.1", "blockies": "0.0.2", @@ -30,25 +30,13 @@ "isomorphic-fetch": "2.2.1", "js-sha3": "0.5.5", "lodash": "4.17.4", - "store": "2.0.12", - "websocket": "1.0.25" + "store": "2.0.12" }, "dependencies": { "store": { "version": "2.0.12", "resolved": "https://registry.npmjs.org/store/-/store-2.0.12.tgz", "integrity": "sha1-jFNOKguDH3K3X8XxEZhXxE711ZM=" - }, - "websocket": { - "version": "1.0.25", - "resolved": "https://registry.npmjs.org/websocket/-/websocket-1.0.25.tgz", - "integrity": "sha512-M58njvi6ZxVb5k7kpnHh2BvNKuBWiwIYvsToErBzWhvBZYwlEiLcyLrG41T1jRcrY9ettqPYEqduLI7ul54CVQ==", - "requires": { - "debug": "2.6.9", - "nan": "2.8.0", - "typedarray-to-buffer": "3.1.2", - "yaeti": "0.0.6" - } } } }, @@ -57,15 +45,15 @@ "dev": true }, "@parity/dapp-dapp-methods": { - "version": "github:js-dist-paritytech/dapp-dapp-methods#b649fb9056d49bbf4fde719f91a4cfcaf529f9f6", + "version": "github:js-dist-paritytech/dapp-dapp-methods#01dcabc56ecea95cdc87dde81598b7e8469375d6", "dev": true, "requires": { - "@parity/api": "2.1.20", - "@parity/mobx": "1.0.7", - "@parity/ui": "3.0.24", - "mobx": "3.5.1", + "@parity/api": "2.1.15", + "@parity/mobx": "1.1.2", + "@parity/ui": "3.1.4", + "mobx": "3.6.1", "mobx-react": "4.3.5", - "prop-types": "15.6.0", + "prop-types": "15.6.1", "react": "16.2.0", "react-dom": "16.2.0", "react-intl": "2.4.0", @@ -74,16 +62,97 @@ "semantic-ui-react": "0.77.2" }, "dependencies": { + "@parity/ui": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/@parity/ui/-/ui-3.1.4.tgz", + "integrity": "sha512-aG79IOxMBeRsu92Zlq3QsR6Z6PAmlhmOdU9tQP+F9XB/44Y4sGxfSDNucGucWz/Jz0VGerJn53CoACa4Yj5uYA==", + "dev": true, + "requires": { + "@parity/api": "2.1.15", + "@parity/etherscan": "2.1.3", + "@parity/mobx": "1.1.2", + "@parity/shared": "2.2.24", + "babel-runtime": "6.26.0", + "bignumber.js": "4.1.0", + "brace": "0.11.0", + "date-difference": "1.0.0", + "eventemitter3": "2.0.3", + "file-saver": "1.3.3", + "geopattern": "1.2.3", + "js-sha3": "0.6.1", + "keycode": "2.1.9", + "lodash": "4.17.4", + "moment": "2.19.2", + "qrcode-generator": "1.3.1", + "react-ace": "5.7.0", + "react-copy-to-clipboard": "5.0.1", + "react-datetime": "2.11.0", + "react-dom": "16.1.1", + "react-dropzone": "4.2.3", + "react-element-to-jsx-string": "13.1.0", + "react-event-listener": "0.5.3", + "react-intl": "2.4.0", + "react-markdown": "3.0.2", + "react-portal": "4.0.0", + "react-qr-reader": "2.0.1", + "react-redux": "5.0.6", + "react-router": "3.2.0", + "react-tooltip": "3.4.0", + "recharts": "1.0.0-beta.2", + "redux": "3.7.2", + "semantic-ui-css": "2.2.12", + "semantic-ui-react": "0.76.0", + "zxcvbn": "4.4.2" + }, + "dependencies": { + "react-dom": { + "version": "16.1.1", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-16.1.1.tgz", + "integrity": "sha512-q06jiwST8SEPAMIEkAsu7BgynEZtqF87VrTc70XsW7nxVhWEu2Y4MF5UfxxHQO/mNtQHQWP0YcFxmwm9oMrMaQ==", + "dev": true, + "requires": { + "fbjs": "0.8.16", + "loose-envify": "1.3.1", + "object-assign": "4.1.1", + "prop-types": "15.6.1" + } + }, + "semantic-ui-react": { + "version": "0.76.0", + "resolved": "https://registry.npmjs.org/semantic-ui-react/-/semantic-ui-react-0.76.0.tgz", + "integrity": "sha512-CdiIT8n7ZwUlytZkYsQMnaVGmoIZI/mVs4lijvLcR568kcnlRkYYaFKhMLq5tFDQU6+QhdTD+8WebF7ov0Ql6Q==", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "classnames": "2.2.5", + "lodash": "4.17.4", + "prop-types": "15.6.1" + } + } + } + }, + "bignumber.js": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-4.1.0.tgz", + "integrity": "sha512-eJzYkFYy9L4JzXsbymsFn3p54D+llV27oTQ+ziJG7WFRheJcNZilgVXMG0LoZtlQSKBsJdWtLFqOD0u+U0jZKA==", + "dev": true + }, + "js-sha3": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.6.1.tgz", + "integrity": "sha1-W4n3enR3Z5h39YxKB1JAk0sflcA=", + "dev": true + }, "mobx": { - "version": "3.5.1", - "resolved": "https://registry.npmjs.org/mobx/-/mobx-3.5.1.tgz", - "integrity": "sha1-jmguxTXPROBABbnjfi32asyXWkI=", + "version": "3.6.1", + "resolved": "https://registry.npmjs.org/mobx/-/mobx-3.6.1.tgz", + "integrity": "sha1-rmOo8A4UhadA0Pka4val9o4wO+o=", "dev": true }, "prop-types": { - "version": "15.6.0", - "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.6.0.tgz", - "integrity": "sha1-zq8IMCL8RrSjX2nhPvda7Q1jmFY=", + "version": "15.6.1", + "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.6.1.tgz", + "integrity": "sha512-4ec7bY1Y66LymSUOH/zARVYObB23AT2h8cf6e/O6ZALB/N0sqZFEx7rq6EYPX2MkOdKORuooI/H5k9TlR4q7kQ==", "dev": true, "requires": { "fbjs": "0.8.16", @@ -100,7 +169,7 @@ "fbjs": "0.8.16", "loose-envify": "1.3.1", "object-assign": "4.1.1", - "prop-types": "15.6.0" + "prop-types": "15.6.1" } }, "react-dom": { @@ -112,7 +181,7 @@ "fbjs": "0.8.16", "loose-envify": "1.3.1", "object-assign": "4.1.1", - "prop-types": "15.6.0" + "prop-types": "15.6.1" } }, "semantic-ui-react": { @@ -125,21 +194,20 @@ "classnames": "2.2.5", "fbjs": "0.8.16", "lodash": "4.17.4", - "prop-types": "15.6.0" + "prop-types": "15.6.1" } } } }, "@parity/dapp-dapp-visible": { - "version": "github:js-dist-paritytech/dapp-dapp-visible#28546f312ea9877ebeea9c52afea1e7ec943cd0d", + "version": "github:js-dist-paritytech/dapp-dapp-visible#14e6499495a3421c4a6da4728b8d99dfa1656e1c", "dev": true, "requires": { - "@parity/api": "2.1.20", - "@parity/mobx": "1.0.7", - "@parity/ui": "3.0.24", - "mobx": "3.5.1", + "@parity/api": "2.1.15", + "@parity/ui": "3.1.4", + "mobx": "3.6.1", "mobx-react": "4.3.5", - "prop-types": "15.6.0", + "prop-types": "15.6.1", "react": "16.2.0", "react-dom": "16.2.0", "react-intl": "2.4.0", @@ -148,16 +216,97 @@ "semantic-ui-react": "0.77.2" }, "dependencies": { + "@parity/ui": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/@parity/ui/-/ui-3.1.4.tgz", + "integrity": "sha512-aG79IOxMBeRsu92Zlq3QsR6Z6PAmlhmOdU9tQP+F9XB/44Y4sGxfSDNucGucWz/Jz0VGerJn53CoACa4Yj5uYA==", + "dev": true, + "requires": { + "@parity/api": "2.1.15", + "@parity/etherscan": "2.1.3", + "@parity/mobx": "1.1.2", + "@parity/shared": "2.2.24", + "babel-runtime": "6.26.0", + "bignumber.js": "4.1.0", + "brace": "0.11.0", + "date-difference": "1.0.0", + "eventemitter3": "2.0.3", + "file-saver": "1.3.3", + "geopattern": "1.2.3", + "js-sha3": "0.6.1", + "keycode": "2.1.9", + "lodash": "4.17.4", + "moment": "2.19.2", + "qrcode-generator": "1.3.1", + "react-ace": "5.7.0", + "react-copy-to-clipboard": "5.0.1", + "react-datetime": "2.11.0", + "react-dom": "16.1.1", + "react-dropzone": "4.2.3", + "react-element-to-jsx-string": "13.1.0", + "react-event-listener": "0.5.3", + "react-intl": "2.4.0", + "react-markdown": "3.0.2", + "react-portal": "4.0.0", + "react-qr-reader": "2.0.1", + "react-redux": "5.0.6", + "react-router": "3.2.0", + "react-tooltip": "3.4.0", + "recharts": "1.0.0-beta.2", + "redux": "3.7.2", + "semantic-ui-css": "2.2.12", + "semantic-ui-react": "0.76.0", + "zxcvbn": "4.4.2" + }, + "dependencies": { + "react-dom": { + "version": "16.1.1", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-16.1.1.tgz", + "integrity": "sha512-q06jiwST8SEPAMIEkAsu7BgynEZtqF87VrTc70XsW7nxVhWEu2Y4MF5UfxxHQO/mNtQHQWP0YcFxmwm9oMrMaQ==", + "dev": true, + "requires": { + "fbjs": "0.8.16", + "loose-envify": "1.3.1", + "object-assign": "4.1.1", + "prop-types": "15.6.1" + } + }, + "semantic-ui-react": { + "version": "0.76.0", + "resolved": "https://registry.npmjs.org/semantic-ui-react/-/semantic-ui-react-0.76.0.tgz", + "integrity": "sha512-CdiIT8n7ZwUlytZkYsQMnaVGmoIZI/mVs4lijvLcR568kcnlRkYYaFKhMLq5tFDQU6+QhdTD+8WebF7ov0Ql6Q==", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "classnames": "2.2.5", + "lodash": "4.17.4", + "prop-types": "15.6.1" + } + } + } + }, + "bignumber.js": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-4.1.0.tgz", + "integrity": "sha512-eJzYkFYy9L4JzXsbymsFn3p54D+llV27oTQ+ziJG7WFRheJcNZilgVXMG0LoZtlQSKBsJdWtLFqOD0u+U0jZKA==", + "dev": true + }, + "js-sha3": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.6.1.tgz", + "integrity": "sha1-W4n3enR3Z5h39YxKB1JAk0sflcA=", + "dev": true + }, "mobx": { - "version": "3.5.1", - "resolved": "https://registry.npmjs.org/mobx/-/mobx-3.5.1.tgz", - "integrity": "sha1-jmguxTXPROBABbnjfi32asyXWkI=", + "version": "3.6.1", + "resolved": "https://registry.npmjs.org/mobx/-/mobx-3.6.1.tgz", + "integrity": "sha1-rmOo8A4UhadA0Pka4val9o4wO+o=", "dev": true }, "prop-types": { - "version": "15.6.0", - "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.6.0.tgz", - "integrity": "sha1-zq8IMCL8RrSjX2nhPvda7Q1jmFY=", + "version": "15.6.1", + "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.6.1.tgz", + "integrity": "sha512-4ec7bY1Y66LymSUOH/zARVYObB23AT2h8cf6e/O6ZALB/N0sqZFEx7rq6EYPX2MkOdKORuooI/H5k9TlR4q7kQ==", "dev": true, "requires": { "fbjs": "0.8.16", @@ -174,7 +323,7 @@ "fbjs": "0.8.16", "loose-envify": "1.3.1", "object-assign": "4.1.1", - "prop-types": "15.6.0" + "prop-types": "15.6.1" } }, "react-dom": { @@ -186,7 +335,7 @@ "fbjs": "0.8.16", "loose-envify": "1.3.1", "object-assign": "4.1.1", - "prop-types": "15.6.0" + "prop-types": "15.6.1" } }, "semantic-ui-react": { @@ -199,7 +348,7 @@ "classnames": "2.2.5", "fbjs": "0.8.16", "lodash": "4.17.4", - "prop-types": "15.6.0" + "prop-types": "15.6.1" } } } @@ -228,13 +377,13 @@ "version": "github:js-dist-paritytech/dapp-status#ea6a3c01d64bd57c5fadf2264efa719a61e70a29", "dev": true, "requires": { - "@parity/api": "2.1.20", - "@parity/mobx": "1.0.7", - "@parity/ui": "3.0.24", + "@parity/api": "2.1.15", + "@parity/mobx": "1.1.2", + "@parity/ui": "3.1.3", "format-number": "3.0.0", - "mobx": "3.5.1", + "mobx": "3.6.0", "mobx-react": "4.3.5", - "prop-types": "15.6.0", + "prop-types": "15.6.1", "react": "16.2.0", "react-dom": "16.2.0", "react-intl": "2.4.0", @@ -245,15 +394,15 @@ }, "dependencies": { "mobx": { - "version": "3.5.1", - "resolved": "https://registry.npmjs.org/mobx/-/mobx-3.5.1.tgz", - "integrity": "sha1-jmguxTXPROBABbnjfi32asyXWkI=", + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/mobx/-/mobx-3.6.0.tgz", + "integrity": "sha1-IN4Hm34Vh0oQXVROnynbiiIp+eM=", "dev": true }, "prop-types": { - "version": "15.6.0", - "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.6.0.tgz", - "integrity": "sha1-zq8IMCL8RrSjX2nhPvda7Q1jmFY=", + "version": "15.6.1", + "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.6.1.tgz", + "integrity": "sha512-4ec7bY1Y66LymSUOH/zARVYObB23AT2h8cf6e/O6ZALB/N0sqZFEx7rq6EYPX2MkOdKORuooI/H5k9TlR4q7kQ==", "dev": true, "requires": { "fbjs": "0.8.16", @@ -270,7 +419,7 @@ "fbjs": "0.8.16", "loose-envify": "1.3.1", "object-assign": "4.1.1", - "prop-types": "15.6.0" + "prop-types": "15.6.1" } }, "react-dom": { @@ -282,7 +431,7 @@ "fbjs": "0.8.16", "loose-envify": "1.3.1", "object-assign": "4.1.1", - "prop-types": "15.6.0" + "prop-types": "15.6.1" } } } @@ -300,7 +449,7 @@ "resolved": "https://registry.npmjs.org/@parity/etherscan/-/etherscan-2.1.3.tgz", "integrity": "sha512-GtQMaE8t7PDOcz/K4Ud+Z6EELB47+qG5V6R7iTJ4DcueXVgiMAXK5OiNeKF3Qjd1/M4FIJdFm5NTSdC7bR38+Q==", "requires": { - "@parity/api": "2.1.20", + "@parity/api": "2.1.15", "bignumber.js": "3.0.1", "es6-promise": "4.1.1", "node-fetch": "1.7.3", @@ -309,9 +458,9 @@ } }, "@parity/jsonrpc": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/@parity/jsonrpc/-/jsonrpc-2.1.4.tgz", - "integrity": "sha512-gGX1LMGxF6Ma4fAbpY3awK0IpB+ARjCH87m/fq8vvUr+5/Z/ywXjjmauPqA435vyjnW4STd2l9FVREVz4wv08A==" + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@parity/jsonrpc/-/jsonrpc-2.1.5.tgz", + "integrity": "sha512-M6aLgssTfqloNgVFuzxSQ3J5RJ5T9g4a4wka1QVumaud7e4ubFjuJgR0F+0aQ/H1zdiTSMDHSmoaeAp8UoE4fA==" }, "@parity/ledger": { "version": "2.1.2", @@ -325,24 +474,119 @@ } }, "@parity/mobx": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/@parity/mobx/-/mobx-1.0.7.tgz", - "integrity": "sha512-HC9VFcFnZ+h/YZWSiA2vIJcXK2yhLNFipPxAIMkDMClgNX9sOxrItmjmTfETAlHVM/axO2FIluLCd3VO/Xze8w==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@parity/mobx/-/mobx-1.1.2.tgz", + "integrity": "sha512-ctAYYGYVVWwoPjn1TdWMdKZRLEGgcgUvSLUFrHbr+IBq3T+2fUedMLcIxGzEOatd/Y7s+YKvk9S1TcT954GH8g==", "requires": { - "@parity/ledger": "2.1.2" + "@parity/jsonrpc": "2.1.5", + "@parity/ledger": "2.1.2", + "@parity/shared": "2.2.24" + }, + "dependencies": { + "@parity/jsonrpc": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@parity/jsonrpc/-/jsonrpc-2.1.5.tgz", + "integrity": "sha512-M6aLgssTfqloNgVFuzxSQ3J5RJ5T9g4a4wka1QVumaud7e4ubFjuJgR0F+0aQ/H1zdiTSMDHSmoaeAp8UoE4fA==" + } } }, "@parity/plugin-signer-account": { - "version": "github:parity-js/plugin-signer-account#c1272caa242c8b97dac78e5d0b1e068614657fdc" + "version": "github:parity-js/plugin-signer-account#3acd84ba1965f9ee419edd04d84e13e097e6d661", + "requires": { + "@parity/mobx": "1.1.2", + "@parity/ui": "3.1.3", + "lodash": "4.17.5", + "prop-types": "15.6.1", + "react-intl": "2.4.0", + "semantic-ui-react": "0.78.3" + }, + "dependencies": { + "lodash": { + "version": "4.17.5", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.5.tgz", + "integrity": "sha512-svL3uiZf1RwhH+cWrfZn3A4+U58wbP0tGVTLQPbjplZxZ8ROD9VLuNgsRniTlLe7OlSqR79RUehXgpBW/s0IQw==" + }, + "prop-types": { + "version": "15.6.1", + "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.6.1.tgz", + "integrity": "sha512-4ec7bY1Y66LymSUOH/zARVYObB23AT2h8cf6e/O6ZALB/N0sqZFEx7rq6EYPX2MkOdKORuooI/H5k9TlR4q7kQ==", + "requires": { + "fbjs": "0.8.16", + "loose-envify": "1.3.1", + "object-assign": "4.1.1" + } + }, + "semantic-ui-react": { + "version": "0.78.3", + "resolved": "https://registry.npmjs.org/semantic-ui-react/-/semantic-ui-react-0.78.3.tgz", + "integrity": "sha512-JRmuqjyigCehHfzrS2ir5nGoytZWCifU8G2T++G/CMdahUJBME7S6E9rU7WW9Qg2Fqn2aJIxfn6Ry/rlOTJDOw==", + "requires": { + "babel-runtime": "6.26.0", + "classnames": "2.2.5", + "fbjs": "0.8.16", + "lodash": "4.17.5", + "prop-types": "15.6.1" + } + } + } }, "@parity/plugin-signer-default": { - "version": "github:parity-js/plugin-signer-default#9a47bded9d6d70b69bb2f719732bd6f7854d1842" + "version": "github:parity-js/plugin-signer-default#dcf8cf23bb050070b6a691413b974b5c2d7d1ce6", + "requires": { + "@parity/ui": "3.1.3", + "lodash": "4.17.5", + "react-intl": "2.4.0", + "semantic-ui-react": "0.78.3" + }, + "dependencies": { + "lodash": { + "version": "4.17.5", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.5.tgz", + "integrity": "sha512-svL3uiZf1RwhH+cWrfZn3A4+U58wbP0tGVTLQPbjplZxZ8ROD9VLuNgsRniTlLe7OlSqR79RUehXgpBW/s0IQw==" + }, + "semantic-ui-react": { + "version": "0.78.3", + "resolved": "https://registry.npmjs.org/semantic-ui-react/-/semantic-ui-react-0.78.3.tgz", + "integrity": "sha512-JRmuqjyigCehHfzrS2ir5nGoytZWCifU8G2T++G/CMdahUJBME7S6E9rU7WW9Qg2Fqn2aJIxfn6Ry/rlOTJDOw==", + "requires": { + "babel-runtime": "6.26.0", + "classnames": "2.2.5", + "fbjs": "0.8.16", + "lodash": "4.17.5", + "prop-types": "15.5.10" + } + } + } }, "@parity/plugin-signer-hardware": { - "version": "github:parity-js/plugin-signer-hardware#4320d818a053d4efae890b74a7476e4c8dc6ba10" + "version": "github:parity-js/plugin-signer-hardware#e8b8a4e67adc37870e370d22805632d08012b9ee", + "requires": { + "@parity/ui": "3.1.3", + "lodash.pick": "4.4.0", + "react-intl": "2.4.0", + "semantic-ui-react": "0.78.3" + }, + "dependencies": { + "semantic-ui-react": { + "version": "0.78.3", + "resolved": "https://registry.npmjs.org/semantic-ui-react/-/semantic-ui-react-0.78.3.tgz", + "integrity": "sha512-JRmuqjyigCehHfzrS2ir5nGoytZWCifU8G2T++G/CMdahUJBME7S6E9rU7WW9Qg2Fqn2aJIxfn6Ry/rlOTJDOw==", + "requires": { + "babel-runtime": "6.26.0", + "classnames": "2.2.5", + "fbjs": "0.8.16", + "lodash": "4.17.4", + "prop-types": "15.5.10" + } + } + } }, "@parity/plugin-signer-qr": { - "version": "github:parity-js/plugin-signer-qr#2d1fafad347ba53eaf58c14265d4d07631d6a45c" + "version": "github:parity-js/plugin-signer-qr#c275ba13524e9f6759079fabd10faf49cc00cfc0", + "requires": { + "@parity/ui": "3.1.3", + "react-intl": "2.4.0" + } }, "@parity/shared": { "version": "2.2.24", @@ -403,13 +647,13 @@ } }, "@parity/ui": { - "version": "3.0.24", - "resolved": "https://registry.npmjs.org/@parity/ui/-/ui-3.0.24.tgz", - "integrity": "sha512-NxrIbM9fq3SaPkdi2mtV/wMmKcl95PSyJHvcTL61lXxRmXTqa9OIOSuS4uCcHSKQARdtIoRlr9vq9SL1tj12Rg==", + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/@parity/ui/-/ui-3.1.3.tgz", + "integrity": "sha512-o0fhHqQ+JmI796C0D/SiIVSCwRpw8RAnUBVWsaOogHgNJAoMsWvY9CDtpvlEXjxqWnVQxJWf8SDeiK9TnCleBQ==", "requires": { - "@parity/api": "2.1.20", + "@parity/api": "2.1.15", "@parity/etherscan": "2.1.3", - "@parity/mobx": "1.0.7", + "@parity/mobx": "1.1.2", "@parity/shared": "2.2.24", "babel-runtime": "6.26.0", "bignumber.js": "4.1.0", @@ -1278,7 +1522,7 @@ "requires": { "find-up": "2.1.0", "istanbul-lib-instrument": "1.9.1", - "test-exclude": "4.1.1" + "test-exclude": "4.2.0" }, "dependencies": { "find-up": { @@ -4084,6 +4328,7 @@ "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, "requires": { "ms": "2.0.0" } @@ -8393,7 +8638,8 @@ "is-typedarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=" + "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", + "dev": true }, "is-utf8": { "version": "0.2.1", @@ -8643,7 +8889,7 @@ "string-length": "1.0.1", "throat": "3.2.0", "which": "1.3.0", - "worker-farm": "1.5.2", + "worker-farm": "1.5.4", "yargs": "7.1.0" } }, @@ -8788,7 +9034,7 @@ "jest-docblock": "20.0.3", "micromatch": "2.3.11", "sane": "1.6.0", - "worker-farm": "1.5.2" + "worker-farm": "1.5.4" } }, "jest-jasmine2": { @@ -9192,9 +9438,6 @@ "verror": "1.10.0" } }, - "jsqr": { - "version": "git+https://github.com/cozmo/jsQR.git#1fb946a235abdc7709f04cd0e4aa316a3b6eae70" - }, "jsx-ast-utils": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-1.4.1.tgz", @@ -9600,6 +9843,11 @@ "resolved": "https://registry.npmjs.org/lodash.omitby/-/lodash.omitby-4.6.0.tgz", "integrity": "sha1-XBX/R1StVVAWtTwEExHo8HkgR5E=" }, + "lodash.pick": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/lodash.pick/-/lodash.pick-4.4.0.tgz", + "integrity": "sha1-UvBWEP/53tQiYRRB7R/BI6AwAbM=" + }, "lodash.pickby": { "version": "4.6.0", "resolved": "https://registry.npmjs.org/lodash.pickby/-/lodash.pickby-4.6.0.tgz", @@ -10134,7 +10382,8 @@ "ms": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true }, "multicast-dns": { "version": "6.2.1", @@ -12985,6 +13234,11 @@ "jsqr": "git+https://github.com/cozmo/jsQR.git#1fb946a235abdc7709f04cd0e4aa316a3b6eae70", "prop-types": "15.5.10", "webrtc-adapter": "5.0.6" + }, + "dependencies": { + "jsqr": { + "version": "git+https://github.com/cozmo/jsQR.git#1fb946a235abdc7709f04cd0e4aa316a3b6eae70" + } } }, "react-redux": { @@ -13448,7 +13702,7 @@ "dev": true, "requires": { "loader-utils": "1.1.0", - "postcss": "6.0.17", + "postcss": "6.0.19", "postcss-load-config": "1.2.0", "schema-utils": "0.3.0" }, @@ -13471,9 +13725,9 @@ "dev": true }, "postcss": { - "version": "6.0.17", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.17.tgz", - "integrity": "sha512-Bl1nybsSzWYbP8O4gAVD8JIjZIul9hLNOPTGBIlVmZNUnNAGL+W0cpYWzVwfImZOwumct4c1SDvSbncVWKtXUw==", + "version": "6.0.19", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.19.tgz", + "integrity": "sha512-f13HRz0HtVwVaEuW6J6cOUCBLFtymhgyLPV7t4QEk2UD3twRI9IluDcQNdzQdBpiixkXj2OmzejhhTbSbDxNTg==", "dev": true, "requires": { "chalk": "2.3.1", @@ -14569,9 +14823,9 @@ } }, "rtcpeerconnection-shim": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/rtcpeerconnection-shim/-/rtcpeerconnection-shim-1.2.7.tgz", - "integrity": "sha512-7tYTolrsNQ2QZVhayA775v/RlG7bZ6D55iBan2Vkya6YslSlBr0hQim+6ire2qGDUxe9HwRvhGqBlbewMfvOyg==", + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/rtcpeerconnection-shim/-/rtcpeerconnection-shim-1.2.8.tgz", + "integrity": "sha512-5Sx90FGru1sQw9aGOM+kHU4i6mbP8eJPgxliu2X3Syhg8qgDybx8dpDTxUwfJvPnubXFnZeRNl59DWr4AttJKQ==", "requires": { "sdp": "2.6.0" } @@ -15780,7 +16034,7 @@ "requires": { "del": "2.2.2", "sw-precache": "5.2.1", - "uglify-js": "3.3.10" + "uglify-js": "3.3.12" }, "dependencies": { "commander": { @@ -15796,9 +16050,9 @@ "dev": true }, "uglify-js": { - "version": "3.3.10", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.3.10.tgz", - "integrity": "sha512-dNib7aUDNZFJNTXFyq0CDmLRVOsnY1F+IQgt2FAOdZFx2+LvKVLbbIb/fL+BYKCv3YH3bPCE/6M/JaxChtQLHQ==", + "version": "3.3.12", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.3.12.tgz", + "integrity": "sha512-4jxrTXlV0HaXTsNILfXW0eey7Qo8qHYM6ih5ZNh45erDWU2GHmKDmekwBTskDb12h+kdd2DBvdzqVb47YzNmTA==", "dev": true, "requires": { "commander": "2.14.1", @@ -15959,9 +16213,9 @@ } }, "test-exclude": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-4.1.1.tgz", - "integrity": "sha512-35+Asrsk3XHJDBgf/VRFexPgh3UyETv8IAn/LRTiZjVy6rjPVqdEk8dJcJYBzl1w0XCJM48lvTy8SfEsCWS4nA==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-4.2.0.tgz", + "integrity": "sha512-8hMFzjxbPv6xSlwGhXSvOMJ/vTy3bkng+2pxmf6E1z6VF7I9nIyNfvHtaw+NBPgvz647gADBbMSbwLfZYppT/w==", "dev": true, "requires": { "arrify": "1.0.1", @@ -16220,6 +16474,7 @@ "version": "3.1.2", "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.2.tgz", "integrity": "sha1-EBezLZhP9VbroQD1AViauhrOLgQ=", + "dev": true, "requires": { "is-typedarray": "1.0.0" } @@ -17210,7 +17465,7 @@ "resolved": "https://registry.npmjs.org/webrtc-adapter/-/webrtc-adapter-5.0.6.tgz", "integrity": "sha512-dh2hPQFOPP0tLEYlFxtGI5vuQmRqkOdYni5wMKUHIx5I2dw0TJ1HdG7P+UechRWt6TvwPWhtbjVNQcQf1KXJmQ==", "requires": { - "rtcpeerconnection-shim": "1.2.7", + "rtcpeerconnection-shim": "1.2.8", "sdp": "2.6.0" } }, @@ -17356,13 +17611,30 @@ "dev": true }, "worker-farm": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/worker-farm/-/worker-farm-1.5.2.tgz", - "integrity": "sha512-XxiQ9kZN5n6mmnW+mFJ+wXjNNI/Nx4DIdaAKLX1Bn6LYBWlN/zaBhu34DQYPZ1AJobQuu67S2OfDdNSVULvXkQ==", + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/worker-farm/-/worker-farm-1.5.4.tgz", + "integrity": "sha512-ITyClEvcfv0ozqJl1vmWFWhvI+OIrkbInYqkEPE50wFPXj8J9Gd3FYf8+CkZJXJJsQBYe+2DvmoK9Zhx5w8W+w==", "dev": true, "requires": { - "errno": "0.1.4", + "errno": "0.1.7", "xtend": "4.0.1" + }, + "dependencies": { + "errno": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/errno/-/errno-0.1.7.tgz", + "integrity": "sha512-MfrRBDWzIWifgq6tJj60gkAwtLNb6sQPlcFrSOflcP1aFmmruKQ2wRnze/8V6kgyz7H3FF8Npzv78mZ7XLLflg==", + "dev": true, + "requires": { + "prr": "1.0.1" + } + }, + "prr": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/prr/-/prr-1.0.1.tgz", + "integrity": "sha1-0/wRS6BplaRexok/SEzrHXj19HY=", + "dev": true + } } }, "wrap-ansi": { @@ -17446,7 +17718,8 @@ "yaeti": { "version": "0.0.6", "resolved": "https://registry.npmjs.org/yaeti/-/yaeti-0.0.6.tgz", - "integrity": "sha1-8m9ITXJoTPQr7ft2lwqhYI+/lXc=" + "integrity": "sha1-8m9ITXJoTPQr7ft2lwqhYI+/lXc=", + "dev": true }, "yallist": { "version": "2.1.2", diff --git a/package.json b/package.json index 0c8409fa1c64a316b87e348635c3c8c5d4c04695..f2536138111d82164f2fe8b4c869d739bf4468a2 100644 --- a/package.json +++ b/package.json @@ -142,13 +142,13 @@ "yargs": "6.6.0" }, "dependencies": { - "@parity/api": "2.1.20", - "@parity/plugin-signer-account": "parity-js/plugin-signer-account#c1272caa242c8b97dac78e5d0b1e068614657fdc", - "@parity/plugin-signer-default": "parity-js/plugin-signer-default#9a47bded9d6d70b69bb2f719732bd6f7854d1842", - "@parity/plugin-signer-hardware": "parity-js/plugin-signer-hardware#4320d818a053d4efae890b74a7476e4c8dc6ba10", - "@parity/plugin-signer-qr": "parity-js/plugin-signer-qr#2d1fafad347ba53eaf58c14265d4d07631d6a45c", + "@parity/api": "2.1.15", + "@parity/plugin-signer-account": "github:parity-js/plugin-signer-account#3acd84ba1965f9ee419edd04d84e13e097e6d661", + "@parity/plugin-signer-default": "github:parity-js/plugin-signer-default#dcf8cf23bb050070b6a691413b974b5c2d7d1ce6", + "@parity/plugin-signer-hardware": "github:parity-js/plugin-signer-hardware#e8b8a4e67adc37870e370d22805632d08012b9ee", + "@parity/plugin-signer-qr": "github:parity-js/plugin-signer-qr#c275ba13524e9f6759079fabd10faf49cc00cfc0", "@parity/shared": "2.2.24", - "@parity/ui": "3.0.24", + "@parity/ui": "3.1.3", "is-electron": "2.1.0", "keythereum": "1.0.2", "lodash.flatten": "4.4.0", diff --git a/src/Signer/Embedded/embedded.js b/src/Signer/Embedded/embedded.js index 8fa0524fe6519cdd070bb44923095e072add3677..ae435446774856ad8191670811047002ef499e7f 100644 --- a/src/Signer/Embedded/embedded.js +++ b/src/Signer/Embedded/embedded.js @@ -14,12 +14,8 @@ // You should have received a copy of the GNU General Public License // along with Parity. If not, see . -import React, { Component } from 'react'; -import PropTypes from 'prop-types'; -import { connect } from 'react-redux'; -import { bindActionCreators } from 'redux'; +import React from 'react'; -import * as RequestsActions from '@parity/shared/lib/redux/providers/signerActions'; import Container from '@parity/ui/lib/Container'; import PendingList from '../PendingList'; @@ -30,65 +26,10 @@ const CONTAINER_STYLE = { background: 'transparent' }; -class Embedded extends Component { - static contextTypes = { - api: PropTypes.object.isRequired - }; +const Embedded = () => + +; - static propTypes = { - accounts: PropTypes.object.isRequired, - actions: PropTypes.shape({ - startConfirmRequest: PropTypes.func.isRequired, - startRejectRequest: PropTypes.func.isRequired - }).isRequired, - gasLimit: PropTypes.object.isRequired, - netVersion: PropTypes.string.isRequired, - pending: PropTypes.array.isRequired - }; - - render () { - const { accounts, actions, gasLimit, netVersion, pending } = this.props; - - return ( - - - - ); - } -} - -function mapStateToProps (state) { - const { gasLimit, netVersion } = state.nodeStatus; - const { accounts } = state.personal; - const { pending } = state.signer; - const { actions } = state; - - // TODO: Use the pending store & actions inside that store to confirm/reject, get rid of the Redux interface - - return { - accounts, - actions, - gasLimit, - netVersion, - pending - }; -} - -function mapDispatchToProps (dispatch) { - return { - actions: bindActionCreators(RequestsActions, dispatch) - }; -} - -export default connect( - mapStateToProps, - mapDispatchToProps -)(Embedded); +export default Embedded; diff --git a/src/Signer/PendingItem/pendingItem.js b/src/Signer/PendingItem/pendingItem.js index 79981cc02871f4e002c6849ce63e5facd439c29a..d7b030ef1db7866ab40e1538486e87cfd4ce2c80 100644 --- a/src/Signer/PendingItem/pendingItem.js +++ b/src/Signer/PendingItem/pendingItem.js @@ -31,7 +31,8 @@ const DEFAULT_ORIGIN = { details: '' }; -function PendingItem ({ accounts, className, data: { date, id, isSending, payload, origin }, gasLimit, isFocussed, netVersion, onConfirm, onReject }) { +function PendingItem ({ accounts, className, data, isFocused }) { + const { payload } = data; const Handler = pluginStore.findHandler(payload, accounts); if (!Handler) { @@ -47,24 +48,8 @@ function PendingItem ({ accounts, className, data: { date, id, isSending, payloa ); } - const _onConfirm = (data) => onConfirm(Object.assign({ id: id.toNumber(), payload }, data)); - const _onReject = () => onReject({ id: id.toNumber() }); - return ( - + ); } @@ -72,11 +57,7 @@ PendingItem.propTypes = { accounts: PropTypes.object.isRequired, className: PropTypes.string, data: PropTypes.object.isRequired, - gasLimit: PropTypes.object.isRequired, - netVersion: PropTypes.string.isRequired, - isFocussed: PropTypes.bool.isRequired, - onConfirm: PropTypes.func.isRequired, - onReject: PropTypes.func.isRequired + isFocused: PropTypes.bool }; export default observer(PendingItem); diff --git a/src/Signer/PendingList/pendingList.js b/src/Signer/PendingList/pendingList.js index 6dcd2a8c95ed8c0e4077a0ab957a4d5c2a4f3586..9cc982fcc50f71e66365cbc0f3e1a1ec4eb93021 100644 --- a/src/Signer/PendingList/pendingList.js +++ b/src/Signer/PendingList/pendingList.js @@ -15,54 +15,67 @@ // along with Parity. If not, see . import BigNumber from 'bignumber.js'; -import React from 'react'; +import React, { Component } from 'react'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; +import { observer } from 'mobx-react'; +import AccountsStore from '../../ParityBar/accountStore'; import PendingItem from '../PendingItem'; +import PendingStore from '../pendingStore'; import styles from './pendingList.css'; -export default function PendingList ({ accounts, className, gasLimit, netVersion, onConfirm, onReject, pendingItems }) { - if (!pendingItems.length) { +@observer +class PendingList extends Component { + static contextTypes = { + api: PropTypes.object.isRequired + }; + + static propTypes = { + className: PropTypes.string + }; + + accountsStore = AccountsStore.get(this.context.api); + pendingStore = PendingStore.get(this.context.api); + + render () { + const { className } = this.props; + const { allAccounts } = this.accountsStore; // An array of accounts + const allAccountsInfo = allAccounts.reduce((acc, value) => { // We create a addr->account map + acc[value.address] = value; + return acc; + }, {}); + const { pending } = this.pendingStore; + + if (!pending.length) { + return ( +
+ +
+ ); + } + return ( -
- +
+ { + pending + .sort((a, b) => new BigNumber(a.id).cmp(b.id)) + .map((data, index) => ( + + )) + }
); } - - return ( -
- { - pendingItems - .sort((a, b) => new BigNumber(a.id).cmp(b.id)) - .map((data, index) => ( - - )) - } -
- ); } -PendingList.propTypes = { - accounts: PropTypes.object.isRequired, - className: PropTypes.string, - gasLimit: PropTypes.object.isRequired, - netVersion: PropTypes.string.isRequired, - onConfirm: PropTypes.func.isRequired, - onReject: PropTypes.func.isRequired, - pendingItems: PropTypes.array.isRequired -}; +export default PendingList; diff --git a/src/Status/SignerPending/RequestItem/requestItem.js b/src/Status/SignerPending/RequestItem/requestItem.js index f96bd7859711a390594f8d98335e7d2c48098b82..9df359f6bc362aff9a77e89d14fcf064cd2e1565 100644 --- a/src/Status/SignerPending/RequestItem/requestItem.js +++ b/src/Status/SignerPending/RequestItem/requestItem.js @@ -31,14 +31,12 @@ import EtherValue from '../EtherValue'; import styles from './requestItem.css'; @observer -@connect(({ tokens }, { transaction }) => ({ - token: Object.values(tokens).find(({ address }) => address === transaction.to) -})) +@connect(({ tokens }) => ({ tokens })) class RequestItem extends Component { static propTypes = { onClick: PropTypes.func.isRequired, - transaction: PropTypes.object.isRequired, - token: PropTypes.object + request: PropTypes.object.isRequired, + tokens: PropTypes.array }; static contextTypes = { @@ -52,7 +50,10 @@ class RequestItem extends Component { methodDecodingStore = MethodDecodingStore.get(this.context.api); componentWillMount () { - const { transaction } = this.props; + const { payload } = this.props.request; + const transaction = payload.sendTransaction || payload.signTransaction; + + if (!transaction) { return; } // Decode the transaction and put it into the state this.methodDecodingStore @@ -62,56 +63,153 @@ class RequestItem extends Component { })); } - renderDescription = () => { - // Decide what to display in the description, depending - // on what type of transaction we're dealing with - const { token } = this.props; - const { - inputs, - signature, - contract, - deploy - } = this.state.decoded; - - if (deploy) { - return this.renderDeploy(); + /** + * Get the author of a request + * TODO Duplicate code of https://github.com/Parity-JS/ui/blob/master/src/Signer/Request/request.js#L54-L69 + */ + getRequestAuthor = () => { + const { payload } = this.props.request; + + if (payload.sign) { + return payload.sign.address; + } + if (payload.decrypt) { + return payload.decrypt.address; } + const transaction = payload.sendTransaction || payload.signTransaction; - if (contract && signature) { - if (token && TOKEN_METHODS[signature] && inputs) { - return this.renderTokenTransfer(); - } - return this.renderContractMethod(); + if (transaction) { + return transaction.from; } + }; - return this.renderValueTransfer(); - } + render () { + const { onClick } = this.props; - renderDeploy = () => { return ( + + + + + + + + + {this.renderDescription()} + + + ); + } + + /** + * Render description when calling a contract method + */ + renderContractMethod = (transaction) => ( + - ); - }; + {this.renderRecipient(transaction.to)} + + ); - renderContractMethod = () => { - const { transaction } = this.props; + /** + * Render description when decrypting a message with parity_decrypt + */ + renderDecrypt = () => ( + + ); - return ( - - - {this.renderRecipient(transaction.to)} - - ); - }; + /** + * Render description when deploying a contract + */ + renderDeploy = () => ( + + ); + + /** + * Render the description of the request + */ + renderDescription = () => { + const { payload } = this.props.request; + + // Decide what to display in the description, depending + // on what type of transaction we're dealing with + if (payload.sign) { + return this.renderSign(); + } + if (payload.decrypt) { + return this.renderDecrypt(); + } + const transaction = payload.sendTransaction || payload.signTransaction; + + if (transaction) { + const { tokens } = this.props; + const token = Object.values(tokens).find(({ address }) => address === transaction.to); + + if (!this.state.decoded) { return null; } + + const { + inputs, + signature, + contract, + deploy + } = this.state.decoded; + + if (deploy) { + return this.renderDeploy(transaction); + } + + if (contract && signature) { + if (token && TOKEN_METHODS[signature] && inputs) { + return this.renderTokenTransfer(transaction, token); + } + return this.renderContractMethod(transaction); + } - renderTokenTransfer = () => { - const { token } = this.props; + return this.renderValueTransfer(transaction); + } + return null; + } + + /** + * Render recipient (of token transfer or eth transfer) + */ + renderRecipient = address => ( + + ); + + /** + * Render description when signing some data with eth_sign + */ + renderSign = () => ( + + ); + + /** + * Render description when transferring tokens + */ + renderTokenTransfer = (transaction, token) => { const { inputs } = this.state.decoded; const valueInput = inputs.find(({ name }) => name === '_value'); const toInput = inputs.find(({ name }) => name === '_to'); @@ -119,7 +217,7 @@ class RequestItem extends Component { return ( { - const { transaction } = this.props; - - return ( - - - } - } - /> - {this.renderRecipient(transaction.to)} - - ); - }; - - renderRecipient = address => ( - + /** + * Render description when transferring ETH + */ + renderValueTransfer = (transaction) => ( + + + } + } + /> + {this.renderRecipient(transaction.to)} + ); - - render () { - const { transaction, onClick } = this.props; - - if (!this.state.decoded) { return null; } - - return ( - - - - - - - - - {this.renderDescription()} - - - ); - } } export default RequestItem; diff --git a/src/Status/SignerPending/signerPending.js b/src/Status/SignerPending/signerPending.js index 024e4527293385646713b5e4e47835ae92e1a1c6..ab3b99536e9fe078b5e7399d26020c917812c660 100644 --- a/src/Status/SignerPending/signerPending.js +++ b/src/Status/SignerPending/signerPending.js @@ -74,7 +74,7 @@ class SignerPending extends Component { {this.store.pending.map(request => ( diff --git a/src/SyncWarning/syncWarning.js b/src/SyncWarning/syncWarning.js index 8b36afcf843942437da58c633e0e9cff75f44631..dd5c7f0969430360ab599bd43baf38318403b981 100644 --- a/src/SyncWarning/syncWarning.js +++ b/src/SyncWarning/syncWarning.js @@ -17,14 +17,13 @@ import React from 'react'; import PropTypes from 'prop-types'; import { observer } from 'mobx-react'; - -import StatusIndicator from '@parity/ui/lib/StatusIndicator'; +import StatusIndicator from '@parity/ui/lib/StatusIndicator'; // TODO use this instead of @parity/mobx import styles from './syncWarning.css'; function SyncWarning ({ className }, { api }) { const statusStore = StatusIndicator.Store.get(api); - const isOk = !statusStore.health.overall || (!statusStore.health.overall.isNotReadyYet && statusStore.health.overall.status === 'ok'); + const isOk = !statusStore.nodeHealth.overall || (!statusStore.nodeHealth.overall.isNotReadyYet && statusStore.nodeHealth.overall.status === 'ok'); if (isOk) { return null; @@ -34,9 +33,9 @@ function SyncWarning ({ className }, { api }) {
{ - statusStore.health.overall.message.map((message) => ( + statusStore.nodeHealth.overall.message.map((message) => (

- { message } + {message}

)) } diff --git a/src/index.parity.js b/src/index.parity.js index 66c86445457c93cd8c70e7eb1fb43ffa0fb98c28..18b73b0b92c01107db7a501db4b5a08a4bc2014c 100644 --- a/src/index.parity.js +++ b/src/index.parity.js @@ -95,9 +95,9 @@ function renderUI (token) { // testing, signer plugins require('@parity/plugin-signer-account'); - require('@parity/plugin-signer-default'); require('@parity/plugin-signer-hardware'); require('@parity/plugin-signer-qr'); + require('@parity/plugin-signer-default'); } const token = retrieveToken();