Skip to content
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

feat(linea): support token detection on linea mainnet and linea goerli networks #1799

Merged
merged 1 commit into from
Oct 10, 2023
Merged
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
4 changes: 4 additions & 0 deletions packages/assets-controllers/src/AssetsContractController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ export const SINGLE_CALL_BALANCES_ADDRESS_BY_CHAINID: Record<Hex, string> = {
'0xD023D153a0DFa485130ECFdE2FAA7e612EF94818',
[SupportedTokenDetectionNetworks.aurora]:
'0x1286415D333855237f89Df27D388127181448538',
[SupportedTokenDetectionNetworks.linea_goerli]:
'0x10dAd7Ca3921471f616db788D9300DC97Db01783',
[SupportedTokenDetectionNetworks.linea_mainnet]:
'0xF62e6a41561b3650a69Bb03199C735e3E3328c0D',
};

export const MISSING_PROVIDER_ERROR =
Expand Down
2 changes: 2 additions & 0 deletions packages/assets-controllers/src/assetsUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ export enum SupportedTokenDetectionNetworks {
polygon = '0x89', // decimal: 137
avax = '0xa86a', // decimal: 43114
aurora = '0x4e454152', // decimal: 1313161554
linea_goerli = '0xe704', // decimal: 59140
linea_mainnet = '0xe708', // decimal: 59144
}

/**
Expand Down