1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Add description for the incoming transactions controller (#9759)

This comment block describes the responsibilities of this controller.
This was motivated by a suggestion made during review of #9755 [1]

[1]: https://github.com/MetaMask/metamask-extension/pull/9755#discussion_r514400479
This commit is contained in:
Mark Stacey 2020-10-30 11:33:35 -02:30 committed by GitHub
parent ff7ce81c73
commit 4bacb9144f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,6 +18,13 @@ const fetch = fetchWithTimeout({
timeout: 30000,
})
/**
* This controller is responsible for retrieving incoming transactions. Etherscan is polled once every block to check
* for new incoming transactions for the current selected account on the current network
*
* Note that only the built-in Infura networks are supported (i.e. anything in `INFURA_PROVIDER_TYPES`). We will not
* attempt to retrieve incoming transactions on any custom RPC endpoints.
*/
export default class IncomingTransactionsController {
constructor (opts = {}) {