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.
4 years ago
Whymarrh Whitby
a8863a3446
Fix consistent-return issues ( #9192 )
...
See [`consistent-return`](https://eslint.org/docs/rules/consistent-return ) for more information.
This change enables `consistent-return` and fixes the issues raised by the rule.
4 years ago
Thomas Huang
f02478e026
Clear AccountTracker accounts and CachedBalances on createNewVaultAndRestore ( #9023 )
4 years ago
Mark Stacey
429af23ea0
Fix account tracker optimization ( #8936 )
...
An optimization in `account-tracker.js` was being skipped consistently
due to a type error (a number was being compared to a string).
The optimization in this case was to update the balances for all
accounts with a single request, rather than one request per account.
4 years ago
Mark Stacey
9a624dd24c
Revert the revert of "LoginPerSite"
...
This reverts commit 466ece4588
, which has
the message:
"Revert "Merge pull request #7599 from MetaMask/Version-v7.7.0" (#7648 )"
This effectively re-introduces the changes from the "LoginPerSite" PR.
5 years ago
Erik Marks
f748664638
Cleanup network enums ( #8627 )
...
* cleanup & consolidate network enums
5 years ago
Whymarrh Whitby
f5a125fe61
Move export defaults statements alongside their objects ( #8525 )
5 years ago
Whymarrh Whitby
a78cf0ef3a
Enable arrow-parens ESLint rule
5 years ago
Mark Stacey
ac01c5c89a
Consistent jsdoc syntax ( #7755 )
...
* Specify type before parameter name
Various JSDoc `@param` entries were specified as `name {type}` rather
than `{type} name`.
A couple of `@return` entries have been given types as well.
* Use JSDoc optional syntax rather than Closure syntax
* Use @returns rather than @return
* Use consistent built-in type capitalization
Primitive types are lower-case, and Object is upper-case.
* Separate param/return description with a dash
5 years ago
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
5 years ago
Mark Stacey
466ece4588
Revert "Merge pull request #7599 from MetaMask/Version-v7.7.0" ( #7648 )
...
This reverts commit 1110287fe1
, reversing
changes made to 72eb233ee9
.
5 years ago
Whymarrh Whitby
aa41057628
Update ESLint rules for curly braces style ( #7477 )
...
* eslint: Enable curly and brace-style
* yarn lint --fix
5 years ago
Erik Marks
38f6550951
fix rinkeby spelling ( #7148 )
5 years ago
Whymarrh Whitby
4d88e1cf86
Enable indent linting via ESLint ( #6936 )
...
* Enable indent linting via ESLint
* yarn run lint:fix
5 years ago
Jenny Pollack
c6e84ccf45
account tracker - update accounts from balanceChecker contract ( #6181 )
...
* account tracker - update accounts from balanceChecker contract
* fall back to getBalance if the contract query fails
6 years ago
Dan Miller
eb32ccb0c7
Ensure account-tracker currentBlockNumber is set on first block update.
6 years ago
kumavis
a2654108be
account-tracker - only track blocks when there are activeControllerConnections
6 years ago
brunobar79
992e7f1b5a
fix merge conflicts
6 years ago
kumavis
91accee2c6
account-tracker - guard against empty block
7 years ago
kumavis
eb2423799d
controllers - account-tracker - refactor + update for eth-block-tracker@4
7 years ago
Dan
6bc8cc819a
Merge branch 'develop' into i3725-refactor-send-component-
7 years ago
Dan
69920045e9
Minor fixes in a number of docs.
7 years ago
Dan
9f12c26d44
Even more documentation for various controllers and libs.
7 years ago
frankiebee
da209a9cfd
dont aggresively query account data
7 years ago
Dan Finlay
a10a600cce
Linted
7 years ago
Dan Finlay
d89394a7c9
Make account tracking much more reactive
7 years ago
Dan Finlay
75177ce34c
Make account tracking more reactive
...
We were doing a lot of conditional observation & updating.
Pulled out a bunch of that for generic observer/syncers.
7 years ago
kumavis
7d499df8e3
account-tracker - remove unused import
7 years ago
kumavis
89e690fc79
account-tracker - use new block-tracker block format
7 years ago
Dan Finlay
8d3fec42d0
Fix bug where block gas limit was incorrectly parsed.
7 years ago
Dan Finlay
2eca5455c0
Move obs store into account-tracker instead of inheriting
7 years ago
Dan Finlay
3bedcd3582
Restore blockGasLimit to account-tracker
7 years ago
Dan Finlay
11c8c07bfc
Refactor eth-store into account-tracker
...
EthStore was only being used for tracking account balances and nonces now, so I removed its block-tracking duties, renamed it account-tracker, and removed it as a dependency from `KeyringController`, so that KRC can go live on without a hard dep on it.
7 years ago
Dan Finlay
977405fc7d
Remove dead code from eth-store
7 years ago
Kevin Serrano
2b7d842498
Update gasblocklimit params with every block.
8 years ago
Thomas Huang
6bdb4c8728
Fix linting warnings
8 years ago
Kevin Serrano
1b7326048d
Add current block number and hash to the state.
8 years ago
kumavis
bc4efa1807
eth-store - update store state after manipulating
8 years ago
kumavis
99d6a329a2
eths-store - eagerly set current block
8 years ago
kumavis
b233e7e37c
eth-store - cbs default to noop
8 years ago
kumavis
73edfc9f31
eth-store - convert to obs-store subclass
8 years ago
kumavis
ef81bde98b
eth-store - emit update on new account add
8 years ago
Dan Finlay
6c99d09404
Fixed bugs with sanity-checking
...
- Was incorrectly calling some eth-query methods (left over from old local eth-query)
- Was still passing block to getAccount in addAccount
- Now emitting update only after all account balances are loaded, reducing UI update traffic.
8 years ago
Dan Finlay
a107b66854
Caught typo
8 years ago
Dan Finlay
18e6d266c1
Add descriptive comment
8 years ago
Dan Finlay
381a60695d
Linted
8 years ago
Dan Finlay
3588aabdf2
Removed reliance on eth-store internal custom eth-query
8 years ago
Dan Finlay
08351f801a
Move eth-store@1.1.0 into local repo.
8 years ago