Skip to content

feat(statics): support tokens on dynamically onboarded EVM chains#8717

Merged
shubham-damkondwar merged 1 commit intomasterfrom
CECHO-952/dynamic-evm-token-support-in-statics
May 8, 2026
Merged

feat(statics): support tokens on dynamically onboarded EVM chains#8717
shubham-damkondwar merged 1 commit intomasterfrom
CECHO-952/dynamic-evm-token-support-in-statics

Conversation

@shubham-damkondwar
Copy link
Copy Markdown
Contributor

Two gates in statics silently dropped tokens for chain families not present at module load time:

  • Gate 1: networkFeatureMapForTokens only covered static CoinFamily values.
    => Added registerNetworkTokenFeatures() and getNetworkTokenFeatures() to allow runtime registration of token features for new families. createTokenMapUsingTrimmedConfigDetails

  • Gate 2: erc20ChainToNameMap was built once from static coins, so dynamic families were absent from initializerMap. Added a EVM compatibility check inside createToken: if the token's network is EVM compatible, the family is added to erc20ChainToNameMap before the existing loop runs, ensuring initializerMap[family] = erc20Token.

TICKET: CECHO-952

@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 8, 2026

CECHO-952

  Two gates in statics silently dropped tokens for chain families not
  present at module load time:

  - Gate 1: networkFeatureMapForTokens only covered static CoinFamily
    values. Added registerNetworkTokenFeatures() and
    getNetworkTokenFeatures() to allow runtime registration of token
    features for new families. createTokenMapUsingTrimmedConfigDetails
  - Gate 2: erc20ChainToNameMap was built once from static coins, so
    dynamic families were absent from both initializerMap and the switch
    case routing. Added a chainId-based check inside createToken: if the
    token's network carries a numeric chainId (EVM indicator), the family
    is added to erc20ChainToNameMap before the existing loop runs,
    ensuring initializerMap[family] = erc20Token and the switch case
    resolves correctly.

  CECHO-952

TICKET: CECHO-952
@shubham-damkondwar shubham-damkondwar force-pushed the CECHO-952/dynamic-evm-token-support-in-statics branch from 20a8d42 to fa4f74e Compare May 8, 2026 07:30
@shubham-damkondwar shubham-damkondwar marked this pull request as ready for review May 8, 2026 08:33
@shubham-damkondwar shubham-damkondwar requested a review from a team as a code owner May 8, 2026 08:33
@shubham-damkondwar shubham-damkondwar merged commit d473c4c into master May 8, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants