feat: add linea networks support#1423
Conversation
mcmire
left a comment
There was a problem hiding this comment.
Looks good, but I just had one suggestion.
|
Also, there are some differences between the "Description" and "Changes" sections in the PR description that perhaps we ought to clarify better:
With that in mind, something you might want to highlight in the Description is, why did you have to upgrade As for Changes, I think you could borrow from what you have in the Description. What if you updated Changes to the following? ### `@metamask/controller-utils`
- **ADDED:** Add Linea networks to `TESTNET_TICKER_SYMBOLS`, `BUILT_IN_NETWORKS`, `NETWORK_ID_TO_ETHERS_NETWORK_NAME_MAP`, `InfuraNetworkType`, `NetworkType`, `BuiltInNetworkName`, `ChainId`, `NetworkId`, and `NetworksTicker`
- `isNetworkType` will now return true when given `linea-mainnet` or `linea-goerli`
### `@metamask/network-controller`
- **ADDED:** Add support for Infura provider types `linea-mainnet` and `linea-goerli`
- **CHANGED:** Update `@metamask/eth-json-rpc-infura` package version to 8.1.0 to support Linea networks
### `@metamask/transaction-controller`
- **CHANGED:** Update `approveTransaction`, `stopTransaction`, and `speedUpTransaction` to use proper chain ID and network ID when creating transaction for Linea networksI filled in what I thought was a proper summary of the changes to the transaction controller from what I could guess, but feel free to clarify that further if you have more knowledge. This should help us when building the changelog for a new release. |
Thanks for you comment @mcmire :) I updated "Changes" part in the PR description. Regarding this |
|
@VGau Thanks! I think it would be good to add a test, even if it's just for |
b0314d4 to
45672b5
Compare
|
Updated dependencies detected. Learn more about Socket for GitHub ↗︎
|
|
@VGau Is this ready for another review? |
45672b5 to
17a9fef
Compare
mcmire
left a comment
There was a problem hiding this comment.
This looks good to me! Sorry for the long wait on this.
|
The test failures for |
|
@metamaskbot publish-preview |
|
Ah, I see, this is from a fork, so we can't create a preview-build. Temp PR created here: #1478 |
|
Here are the preview builds for anyone who wants to test this in extension (note: you'll need to first add |
Requested change won't be addressed at this time, but may be considered in the future
- Added linea networks support in controller utils - Added linea networks support in network controller - Added linea networks support in transaction controller - Updated `@metamask/eth-json-rpc-infura` package version to 8.1.0 to support linea networks Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com>
- Added linea networks support in controller utils - Added linea networks support in network controller - Added linea networks support in transaction controller - Updated `@metamask/eth-json-rpc-infura` package version to 8.1.0 to support linea networks Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com>
Description
@metamask/eth-json-rpc-infurapackage version to 8.1.0 to support linea networksChanges
@metamask/controller-utilsTESTNET_TICKER_SYMBOLS,BUILT_IN_NETWORKS,NETWORK_ID_TO_ETHERS_NETWORK_NAME_MAP,InfuraNetworkType,NetworkType,BuiltInNetworkName,ChainId,NetworkId, andNetworksTickerisNetworkTypewill now return true when givenlinea-mainnetorlinea-goerli@metamask/network-controllerlinea-mainnetandlinea-goerli@metamask/eth-json-rpc-infurapackage version to 8.1.0 to support Linea networks@metamask/transaction-controllerapproveTransaction,stopTransaction, andspeedUpTransactionto use proper chain ID and network ID when creating transaction for Linea networksReferences
Checklist