Skip to content

Integrate RNS Registry into EnsController #5973

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/controller-utils/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,4 +194,5 @@ export const CHAIN_ID_TO_ETHERS_NETWORK_NAME_MAP: Record<
[ChainId['linea-sepolia']]: BuiltInNetworkName.LineaSepolia,
[ChainId['linea-mainnet']]: BuiltInNetworkName.LineaMainnet,
[ChainId.aurora]: BuiltInNetworkName.Aurora,
[ChainId['rootstock-mainnet']]: BuiltInNetworkName.RootstockMainnet,
};
2 changes: 2 additions & 0 deletions packages/controller-utils/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export enum BuiltInNetworkName {
MegaETHTestnet = 'megaeth-testnet',
MonadTestnet = 'monad-testnet',
BaseMainnet = 'base-mainnet',
RootstockMainnet = 'rootstock-mainnet',
}

/**
Expand All @@ -98,6 +99,7 @@ export const ChainId = {
[BuiltInNetworkName.MegaETHTestnet]: '0x18c6', // toHex(6342)
[BuiltInNetworkName.MonadTestnet]: '0x279f', // toHex(10143)
[BuiltInNetworkName.BaseMainnet]: '0x2105', // toHex(8453)
[BuiltInNetworkName.RootstockMainnet]: '0x1e', // toHex(30)
} as const;
export type ChainId = (typeof ChainId)[keyof typeof ChainId];

Expand Down
2 changes: 2 additions & 0 deletions packages/ens-controller/src/EnsController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ export const DEFAULT_ENS_NETWORK_MAP: Record<number, Hex> = {
17000: '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e',
// Sepolia
11155111: '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e',
// Rootstock Mainnet
30: '0xcb868aeabd31e2b66f74e9a55cf064abb31a4ad5',
};

/**
Expand Down