Brad Decker
5a233e4634
colocate tests in flat structure ( #10655 )
4 years ago
Thomas Huang
3ba91df387
Unifies unit tests filename suffix to .test.js ( #10607 )
...
* Unifies the filename suffix to .test.js
* Display @babel/no-invalid-this rule for tx-controller.test.js
* Add test file extension to test:unit:global
4 years ago
Erik Marks
76a2a9bb8b
@metamask/eslint config@5.0.0 ( #10358 )
...
* @metamask/eslint-config@5.0.0
* Update eslintrc and prettierrc
* yarn lint:fix
4 years ago
Brad Decker
2ebf8756a4
[RFC] add prettier to eslint ( #8595 )
4 years ago
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
4 years ago
Brad Decker
c97493cc13
rename Ethereum Main Network -> Etherum Mainnet ( #9411 )
4 years ago
Whymarrh Whitby
e2dedaacdb
Use Infura v3 API ( #9368 )
...
* Use eth-json-rpc-infura@5.0.0
* Use Infura v3 API
* Add example .metamaskrc file
4 years ago
Whymarrh Whitby
6ab12001e3
Fix prefer-destructuring issues ( #9263 )
...
See [`prefer-destructuring`](https://eslint.org/docs/rules/prefer-destructuring ) for more information.
This change enables `prefer-destructuring` and fixes the issues raised by the rule.
4 years ago
Whymarrh Whitby
c11888f287
Fix no-empty-function issues ( #9216 )
...
See [`no-empty-function`](https://eslint.org/docs/rules/no-empty-function ) for more information.
This change enables `no-empty-function` and fixes the issues raised by the rule.
4 years ago
Erik Marks
948a4c8316
fixup! call initializeProvider where necessary
4 years ago
Erik Marks
30a59bb867
call initializeProvider where necessary
4 years ago
Erik Marks
93f695d3c6
fix timing-reliant network controller test
4 years ago
Erik Marks
826d1462f0
fixup! call initializeProvider where necessary
4 years ago
Erik Marks
b3e5befe74
call initializeProvider where necessary
4 years ago
Erik Marks
5cb22ee8df
fix timing-reliant network controller test
4 years ago
Erik Marks
f97f95cc86
Fix kovan chain ID constant ( #8913 )
4 years ago
Erik Marks
f748664638
Cleanup network enums ( #8627 )
...
* cleanup & consolidate network enums
5 years ago
Whymarrh Whitby
4f3fc95d50
Update ESLint rules for test suite ( #8023 )
...
* Use @metamask/eslint-config@1.1.0
* Use eslint-plugin-mocha@6.2.2
* Mark root ESLint config as root
* Update Mocha ESLint rules with shared ESLint config
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
Frankie
514be408f8
I#6704 eth_getTransactionByHash will now check metamask's local history for pending transactions ( #7327 )
...
* tests - create tests for pending middlewares
* transactions - add r,s,v values to the txMeta to match the JSON rpc response
* network - add new middleware for eth_getTransactionByHash that the checks pending tx's for a response value
* transactions/pending - use getTransactionReceipt for checking if tx is in a block
* meta - file rename
5 years ago
Paul Bouchon
0db0a187c8
feature: add Goerli support ( #6459 )
6 years ago
HackyMiner
54a8ade266
Add support for RPC endpoints with custom chain IDs ( #5134 )
6 years ago
brunobar79
992e7f1b5a
fix merge conflicts
6 years ago
brunobar79
0da41263ac
fix warning for unit tests
6 years ago
kumavis
2b54d948da
test - remove .only from unit tests
7 years ago
tmashuang
13ebb0b455
Moved loose some loose test files to sub folders
7 years ago
kumavis
eaa5a48c91
test - unit - network - get providerProxy via public method
7 years ago
kumavis
d2aa36f866
test - network controller - remove tests for deprecated APIs + update tests
7 years ago
Alexander Tseung
9e41f58af2
Clean up network config
7 years ago
Thomas
ae795c9770
Persist rinkeby.infura.io and clean nock after
7 years ago
Thomas
f9de87af51
Using noop to not lose it
7 years ago
Thomas Huang
8f7094a73d
Network controller nock
7 years ago
Thomas Huang
33182efb13
Offline testing
7 years ago
kumavis
8da0d0b28a
Revert "NetworkController refactor for new EthClient interface"
7 years ago
kumavis
0f8d7dacb1
network-controller - use obj-proxy for providerProxy
7 years ago
kumavis
f2d9b75e94
network controller - refactor to use _setProvider
7 years ago
frankiebee
4f887c6a62
fix test
7 years ago
frankiebee
b654eb9b1f
wrap block tracker in events proxy
7 years ago
kumavis
da16f39626
Merge branch 'master' of github.com:MetaMask/metamask-extension into greenkeeper/initial
7 years ago
kumavis
4445ba1569
tx cont - add argument for provider constructor
7 years ago
Thomas Huang
13e6672028
Linting
8 years ago
frankiebee
e23c0f98fa
clean up test
8 years ago
frankiebee
db982cf795
stop polling when switching networks
8 years ago
frankiebee
243eeff7cb
Fix for tests
8 years ago