Skip to content

Commit 13e5f2b

Browse files
feat(stake-959): adding hoodi testnet config to controllers (#5855)
## Explanation This PR aims to add [hoodi](https://github.com/eth-clients/hoodi) testnet configuration to the current list of supported testnets by Metamask. <!-- Thanks for your contribution! Take a moment to answer these questions so that reviewers have the information they need to properly understand your changes: * What is the current state of things and why does it need to change? * What is the solution your changes offer and how does it work? * Are there any changes whose purpose might not obvious to those unfamiliar with the domain? * If your primary goal was to update one package but you found you had to update another one along the way, why did you do so? * If you had to upgrade a dependency, why did you do so? --> ## References <!-- Are there any issues that this pull request is tied to? Are there other links that reviewers should consult to understand these changes better? Are there client or consumer pull requests to adopt any breaking changes? For example: * Fixes #12345 * Related to #67890 --> ## Changelog <!-- THIS SECTION IS NO LONGER NEEDED. The process for updating changelogs has changed. Please consult the "Updating changelogs" section of the Contributing doc for more. --> ## Checklist - [ ] I've updated the test suite for new or updated code as appropriate - [x] I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate - [x] I've communicated my changes to consumers by [updating changelogs for packages I've changed](https://github.com/MetaMask/core/tree/main/docs/contributing.md#updating-changelogs), highlighting breaking changes as necessary - [ ] I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes Co-authored-by: Nicholas Smith <[email protected]>
1 parent 277165e commit 13e5f2b

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

packages/assets-controllers/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
- Added Base Network for networks to track in `TokenDetectionController` ([#5902](https://github.com/MetaMask/core/pull/5902))
1313
- Network changes were added in `@metamask/controller-utils`
14+
- Added Metamask pooled staking token for Ethereum Hoodi testnet ([#5855](https://github.com/MetaMask/core/pull/5855))
1415

1516
## [68.0.0]
1617

packages/assets-controllers/src/AssetsContractController.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ export const SINGLE_CALL_BALANCES_ADDRESS_BY_CHAINID = {
7777
export const STAKING_CONTRACT_ADDRESS_BY_CHAINID = {
7878
[SupportedStakedBalanceNetworks.mainnet]:
7979
'0x4fef9d741011476750a243ac70b9789a63dd47df',
80-
[SupportedStakedBalanceNetworks.holesky]:
81-
'0x37bf0883c27365cffcd0c4202918df930989891f',
80+
[SupportedStakedBalanceNetworks.hoodi]:
81+
'0xe96ac18cfe5a7af8fe1fe7bc37ff110d88bc67ff',
8282
} as const satisfies Record<Hex, string>;
8383

8484
export const MISSING_PROVIDER_ERROR =
@@ -724,7 +724,7 @@ export class AssetsContractController {
724724
if (
725725
![
726726
SupportedStakedBalanceNetworks.mainnet,
727-
SupportedStakedBalanceNetworks.holesky,
727+
SupportedStakedBalanceNetworks.hoodi,
728728
].includes(chainId as SupportedStakedBalanceNetworks)
729729
) {
730730
return undefined as StakedBalance;

packages/assets-controllers/src/assetsUtil.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ export enum SupportedStakedBalanceNetworks {
200200
mainnet = '0x1', // decimal: 1
201201
// TODO: Either fix this lint violation or explain why it's necessary to ignore.
202202
// eslint-disable-next-line @typescript-eslint/naming-convention
203-
holesky = '0x4268', // decimal: 17000
203+
hoodi = '0x88bb0', // decimal: 560048
204204
}
205205

206206
/**

0 commit comments

Comments
 (0)