Skip to content

Add Chain 138 (Defi Oracle Meta Mainnet)#4738

Open
defiQUG wants to merge 1 commit into
trustwallet:masterfrom
defiQUG:codex/add-chain138-wallet-core
Open

Add Chain 138 (Defi Oracle Meta Mainnet)#4738
defiQUG wants to merge 1 commit into
trustwallet:masterfrom
defiQUG:codex/add-chain138-wallet-core

Conversation

@defiQUG

@defiQUG defiQUG commented Apr 18, 2026

Copy link
Copy Markdown

What changed

This PR adds basic Wallet Core support for Defi Oracle Meta Mainnet (chainId 138, id: dfiometa) as an EVM-compatible chain.

Included changes:

  • add the Chain 138 registry entry to registry.json
  • add TWCoinTypeDefiOracleMetaMainnet
  • extend address-derivation coverage for the new EVM chain
  • add a chain-specific TWCoinType configuration test

Chain details

  • Chain name: Defi Oracle Meta Mainnet
  • Chain ID: 138
  • Registry ID: dfiometa
  • Native currency: ETH
  • Explorer: https://explorer.d-bis.org
  • Public RPC: https://rpc-http-pub.d-bis.org

Why

Chain 138 is an EVM-compatible network and should be handled as a standard Ethereum-family chain in Wallet Core so users can derive addresses and resolve chain metadata without manual workarounds.

Scope note

This PR is for chain support only.

It does not add ERC-20 asset metadata such as:

  • WETH9
  • GRU v2 tokens
  • token logos / token-list entries

Those belong to separate token-asset / assets-app submission flows rather than the Wallet Core chain-registry change itself.

Validation

  • jq empty registry.json
  • cd rust && cargo test -p tw_tests --test coin_address_derivation_test

References

@defiQUG defiQUG requested a review from a team as a code owner April 18, 2026 12:27
@defiQUG defiQUG requested a review from BSCSecChef as a code owner May 28, 2026 03:48
@defiQUG

defiQUG commented May 28, 2026

Copy link
Copy Markdown
Author

Cross-link: support question in #4744 (“do derivation addresses need exchanging?”) — answered there: no. Chain 138 uses standard EVM derivation (m/44'/60'/0'/0/0); same 0x address as Ethereum for the same mnemonic. This PR only adds chain metadata + tests; no user wallet migration.

Rebased onto current master (conflicts with SeiEVM/HypeEVM enum slots resolved); branch is mergeable.

@defiQUG

defiQUG commented May 28, 2026

Copy link
Copy Markdown
Author

Assets PR opened for canonical Chain 138 tokens (16) + chain info: trustwallet/assets#36922 — pairs with this wallet-core change (dfiometa / coin_type 10000138).

@defiQUG

defiQUG commented Jun 1, 2026

Copy link
Copy Markdown
Author

Merge request — assets PRs blocked on this

Chain 138 assets submissions are waiting on wallet-core registration (dfiometa, coin type 10000138). Trust assets bot reports No token files found on dfiometa PRs until this merges:

Branch is rebased on master (ahead by 3, behind 0). Standard EVM derivation only — no custom address scheme.

Kindly review and merge when ready. Thank you.

@defiQUG defiQUG force-pushed the codex/add-chain138-wallet-core branch from c7a6d51 to 00249af Compare June 10, 2026 10:36
@defiQUG

defiQUG commented Jun 10, 2026

Copy link
Copy Markdown
Author

Refresh: rebased onto latest master (2026-06-10) — resolved TWCoinType / derivation test conflicts with SeiEVM + HyperEVM upstream additions.

@mdmamun198710

Copy link
Copy Markdown

What is erc20 wallet I am added in this coin

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.

2 participants