Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: remove global network from transaction controller (#4920)
- Remove the following constructor options: - `blockTracker` - `isMultichainEnabled` - `onNetworkStateChange` - `provider` - Require `networkClientId` option in calls to `addTransaction`. - Make `networkClientId` required in `TransactionMeta` type. - Remove global instances of: - `PendingTransactionTracker` - `IncomingTransactionHelper` - `NonceTracker`. - Replace `wipeTransactions` method arguments with object containing optional `chainId` and `address` properties. - Require `networkClientId` argument in: - `getNonceLock` - `estimateGas` - `estimateGasBuffered` - Remove `filterToCurrentNetwork` option from `getTransactions` method. - Add `networkClientId` argument to `handleMethodData` method. - Add `MethodDataHelper` to encapsulate `handleMethodData` method logic. - Replace `getProvider` and `getEthQuery` methods with `getNetworkClient` method in `MultichainTrackingHelper`. - Created nested debug loggers per chain in `PendingTransactionTracker` and `IncomingTransactionHelper`. - Create dedicated debug logger for `MultichainTrackingHelper` with additional logs.
- Loading branch information