Erik Marks
4fef2b7443
Add MAX_SAFE_CHAIN_ID and refactor chain ID validation ( #10224 )
...
* Add MAX_SAFE_CHAIN_ID constant
* Add isSafeChainId to shared utils module
* Move isPrefixedFormattedHexString to shared utils module
* Validate custom RPC chain IDs in network controller
* Update some network controller error messages.
* Add isSafeChainId validation to UI
2021-01-20 15:37:18 -08:00
Erik Marks
7077ee68dc
Add NETWORK_TYPE_RPC constant ( #10203 )
...
* Refactor network display props
* Add NETWORK_TYPE_RPC constant
* Consolidate network constants
2021-01-20 08:49:05 -08:00
Erik Marks
90289ec22a
Further improve organization of constants ( #10200 )
2021-01-20 08:13:14 -08:00
ivigamberdiev
869124c4c9
Fix network settings Kovan block explorer link ( #10117 )
2020-12-25 10:51:47 -08:00
David Walsh
9df5be903b
Use optional chaining for functions ( #9799 )
2020-11-12 11:13:21 -06:00
Erik Marks
876ca136b3
Throw instead of log error
2020-11-11 12:39:26 -08:00
Erik Marks
a714da8069
Ensure submission state is reset on onSubmit error
2020-11-11 12:28:20 -08:00
Erik Marks
53bf9cb766
Disable save button while submitting
2020-11-10 23:39:49 -08:00
Erik Marks
4db9c8b36f
Fix chainId display in network form on save
2020-11-10 22:41:19 -08:00
Erik Marks
efd36adaac
Never disable save button if props chain ID is invalid ( #9808 )
2020-11-05 14:57:11 -08:00
David Walsh
8a3dabb230
Use optional chaining for functions
2020-11-05 10:28:24 -06:00
Erik Marks
ad838df3e6
Display decimal chain ID in network form ( #9780 )
...
* Display network form chain ID in decimal
* Hide chainId tooltip in view mode
* Display chain ID error message in entered format
* Update locale messages
* Rename on change chain ID validator
2020-11-03 20:10:52 -08:00
Brad Decker
2ebf8756a4
[RFC] add prettier to eslint ( #8595 )
2020-11-02 17:41:28 -06:00
Erik Marks
ab8083284b
Merge branch 'develop' into standardize-network-settings
2020-10-29 10:02:19 -07:00
Brad Decker
14161e37da
normalize page font styles ( #9697 )
2020-10-29 11:31:48 -05:00
Erik Marks
2393749809
Simplify routing to fix breakage in popup
2020-10-28 23:34:40 -07:00
Erik Marks
58d19745c9
Add explanatory comment
2020-10-28 23:34:40 -07:00
Erik Marks
47d94489b7
Finish network settings redesign
2020-10-28 23:34:40 -07:00
Erik Marks
c3df1aab8d
Style touchups
2020-10-28 23:34:40 -07:00
Erik Marks
64883aecb0
Improve fullscreen network form appearance
2020-10-28 23:34:40 -07:00
Erik Marks
4a219d9a10
Fix network name overflow
2020-10-28 23:34:40 -07:00
Erik Marks
4ad5e027be
Fix network list arrow styling
2020-10-28 23:34:40 -07:00
Erik Marks
1373a90e27
Hide network form buttons when form is viewOnly
2020-10-28 23:34:40 -07:00
Erik Marks
8a1820c537
Add networks settings routes
2020-10-28 23:34:40 -07:00
Erik Marks
27118fdd98
Fix popup network form appearance; code style
2020-10-28 23:34:40 -07:00
Erik Marks
5530914776
Standardize appearance of network settings
2020-10-28 23:34:40 -07:00
Erik Marks
5b8c07817a
Remove localhost provider type ( #9551 )
...
* Delete localhost provider type
* Use ganache-cli default chain ID for tests
* Delete unused test firstTimeState variable
* Migrate default ganache-cli network to frequentRpcListDetail
* Add default test provider state
* Add test functionality to createJsonRpcClient
* Lint locales
* Update test middleware creation
* fixup! Update test middleware creation
2020-10-12 12:05:40 -07:00
Erik Marks
bf1bb6ca7e
Check specified chain ID against endpoint return value ( #9491 )
...
Adds additional validation to chainId values in the network form, by comparing the specified value against the value returned by the endpoint.
2020-10-07 11:58:22 -02:30
Erik Marks
088d4c34f1
Merge pull request from GHSA-c2xw-px2x-pr65
...
* Remove network config store
* Remove inline networks variable in network controller
* Re-key network controller 'rpcTarget' to 'rpcUrl'
* Require chainId in lookupNetwork, implement eth_chainId
* Require chain ID in network form
* Add alert, migrations, and tests
* Add chainId validation to addToFrequentRpcList
* Update public config state selector to match new network controller
state
* Use network enums in networks-tab.constants
* Ensure chainId in provider config is current
* Update tests
2020-10-06 15:27:02 -02:30
Whymarrh Whitby
e2dedaacdb
Use Infura v3 API ( #9368 )
...
* Use eth-json-rpc-infura@5.0.0
* Use Infura v3 API
* Add example .metamaskrc file
2020-09-10 13:46:00 -02:30
Whymarrh Whitby
b6ccd22d6c
Update ESLint shared config to v3 ( #9274 )
...
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2020-08-19 13:57:05 -02:30
Patryk Łucka
50c4845d05
Add lock icon to default networks ( #9269 )
...
Co-authored-by: Patryk Łucka <patryk.lucka@consensys.net>
2020-08-19 10:01:58 -05:00
Whymarrh Whitby
c1e3c229bc
Fix import/order issues ( #9239 )
...
See [`import/order`](https://eslint.org/docs/rules/import/order ) for more information.
This change enables `import/order` and fixes the issues raised by the rule.
2020-08-18 16:48:25 -02:30
Whymarrh Whitby
b7259e5d6a
Fix radix issues ( #9247 )
...
See [`radix`](https://eslint.org/docs/rules/radix ) for more information.
This change enables `radix` and fixes the issues raised by the rule.
2020-08-18 16:38:22 -02:30
Whymarrh Whitby
5d42a9b773
Fix require-unicode-regexp issues ( #9212 )
...
* Fix require-unicode-regexp issues
See [`require-unicode-regexp`](https://eslint.org/docs/rules/require-unicode-regexp ) for more information.
This change enables `require-unicode-regexp` and fixes the issues raised by the rule.
* Remove case-insensitive flag from regexps
2020-08-14 09:18:42 -02:30
Brad Decker
46ba1ef100
Update font family globally ( #9073 )
2020-07-29 15:04:02 -05:00
Mark Stacey
f46dda0195
Uncomment and fix all auto-fixable stylelint rules ( #8989 )
...
All stylelint rules that can be automatically fixed have been uncommented. The rules are:
* `at-rule-empty-line-before`
* `block-closing-brace-empty-line-before`
* `block-closing-brace-newline-before`
* `block-opening-brace-space-before`
* `color-hex-case`
* `color-hex-length`
* `comment-empty-line-before`
* `declaration-block-semicolon-newline-after`
* `declaration-block-semicolon-space-after`
* `declaration-block-trailing-semicolon`
* `declaration-colon-space-after`
* `declaration-empty-line-before`
* `function-comma-space-after`
* `function-comma-space-before`
* `indentation`
* `length-zero-no-unit`
* `no-eol-whitespace`
* `no-missing-end-of-source-newline`
* `number-leading-zero`
* `number-no-trailing-zeros`
* `rule-empty-line-before`
* `selector-list-comma-newline-after`
* `selector-pseudo-element-colon-notation`
2020-07-15 10:13:40 -03:00
Whymarrh Whitby
4f0a205369
Use eslint@6.8.0 ( #8978 )
...
* Use eslint@6.8.0
* yarn lint:fix
2020-07-14 12:50:41 -02:30
Erik Marks
5aabe2ac75
Warn users to only add custom networks that they trust ( #8789 )
...
* add warning when adding custom network
* give the settings subheader breathing space
2020-06-12 11:21:29 -07:00
Mark Stacey
e3a62cd603
Simplify settings tab render
functions ( #8551 )
...
These `render` functions were just calling `renderContent`. Instead the
`render` function now directly renders the content.
2020-05-07 21:55:25 -03:00
Mark Stacey
ac4e1d4e26
Remove faux <header>
elements ( #8131 )
...
We have been using the HTML `header` tag in various footers. The
`footer` tag is generally more appropriate for use in a footer.
2020-02-27 18:00:20 -04:00
Whymarrh Whitby
169ab8adc9
Remove recompose ( #8097 )
2020-02-24 19:28:26 -03:30
Whymarrh Whitby
da0300d3b1
Enable core ESLint no-mixed-operators rule
2020-02-17 21:06:36 -03:30
Whymarrh Whitby
a78cf0ef3a
Enable arrow-parens ESLint rule
2020-02-15 17:04:21 -03:30
Whymarrh Whitby
92971d3c87
Migrate codebase to use ESM ( #7730 )
...
* Update eslint-plugin-import version
* Convert JS files to use ESM
* Update ESLint rules to check imports
* Fix test:unit:global command env
* Cleanup mock-dev script
2020-01-09 00:04:58 -03:30
Sirius Tsou
9ba3774b5e
Fix Kovan and Rinkeby chain IDs ( #7762 )
2020-01-08 11:26:56 -03:30
ricky
1c4f2aab8f
React 16 upgrade ( #7476 )
...
* Use arrow property initializer functions
* Use pure components where applicable
* Add UNSAFE_ prefix for deprecated lifecycle hooks
* Add allow UNSAFE_
* Removed unused "Component"
* Replace boron with 'fade-modal'
* Upgrade react/no-deprecated to an error
* Paste react-tooltip-component source directly
* Use arrow functions to bind `this`
* Add UNSAFE_ prefix
* Update react-redux, react-router-dom
* Remove things from inlined 'fade-modal'
* Adjust mountWithRouter to get unit tests passing again
* Remove domkit
* Add Wrapper to render-helpers
* Upgrade @storybook/addon-knobs
2019-12-06 11:40:06 -04:00
Whymarrh Whitby
2e69f3233e
eslint: Enable more react/jsx-* rules ( #7592 )
2019-12-03 13:05:44 -03:30
ricky
346c1f2622
Add additional rpcUrl verification ( #7436 )
...
* Add additional url verification
* Add commas
* Address PR feedback
* Use URL over URI
* Update key in other languages
* Add stateKey check
* Split validateUrl into two separate methods
* Remove unused variable
* Add isValidWhenAppended method
2019-11-19 00:11:50 -05:00
Sunghee Lee
87ac07bb35
Refactor validation function ( #7187 )
...
* Update invalidBlockExplorerURL message
* Refactor validation function
2019-09-18 10:57:18 -03:00