-
-
Notifications
You must be signed in to change notification settings - Fork 230
feat: add linea networks support #1423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 networks I 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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@VGau I added some more tests yesterday so be sure to do a pull on your side if you need to add any more changes.
Regardless, everything here looks good to me.
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-infura
package version to 8.1.0 to support linea networksChanges
@metamask/controller-utils
TESTNET_TICKER_SYMBOLS
,BUILT_IN_NETWORKS
,NETWORK_ID_TO_ETHERS_NETWORK_NAME_MAP
,InfuraNetworkType
,NetworkType
,BuiltInNetworkName
,ChainId
,NetworkId
, andNetworksTicker
isNetworkType
will now return true when givenlinea-mainnet
orlinea-goerli
@metamask/network-controller
linea-mainnet
andlinea-goerli
@metamask/eth-json-rpc-infura
package version to 8.1.0 to support Linea networks@metamask/transaction-controller
approveTransaction
,stopTransaction
, andspeedUpTransaction
to use proper chain ID and network ID when creating transaction for Linea networksReferences
Checklist