Commit c2ffb95
committed
refactor: encapsulate provider logic in utils/provider.ts, eliminate ethQuery from transaction-controller
Replace all ethQuery/EthQuery usage with a new rpcRequest() utility that
accepts messenger + chainId/networkClientId + method + params. Any file
can now send RPC requests without passing around ethQuery instances.
- Add utils/provider.ts with rpcRequest() and getProvider() functions
- Migrate all utils, gas-flows, helpers, hooks, and TransactionController
- Update GasFeeFlowRequest type: ethQuery -> networkClientId (BREAKING)
- Update determineTransactionType signature to options object (BREAKING)
- Remove @metamask/eth-query dependency
- Update all test files to match new signatures1 parent d3cfc50 commit c2ffb95
41 files changed
Lines changed: 1173 additions & 831 deletions
File tree
- packages/transaction-controller
- src
- gas-flows
- helpers
- hooks
- utils
- tests
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
61 | 65 | | |
62 | 66 | | |
63 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
64 | 72 | | |
65 | 73 | | |
66 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | 63 | | |
65 | 64 | | |
66 | 65 | | |
| |||
0 commit comments