From 58c6345084ead0b0eba13966fdb5cceea6061551 Mon Sep 17 00:00:00 2001 From: defiQUG Date: Thu, 12 Feb 2026 16:17:32 -0800 Subject: [PATCH] Add Chain 138 registry entry, README, and canonical layout Co-authored-by: Cursor --- .gitignore | 9 ++++++++ README.md | 41 ++++++++++++++++++++++++++++++++++++ registry-entry-chain138.json | 26 +++++++++++++++++++++++ 3 files changed, 76 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 registry-entry-chain138.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8e74920 --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +# OS +.DS_Store +Thumbs.db + +# Editor +*.swp +*.swo +.idea/ +.vscode/ diff --git a/README.md b/README.md new file mode 100644 index 0000000..c1105b9 --- /dev/null +++ b/README.md @@ -0,0 +1,41 @@ +# Trust Wallet Integration — Chain 138 (Defi Oracle Meta Mainnet) + +**Status:** ✅ Completed (materials ready for Wallet Core PR) + +This repository holds materials for adding **Defi Oracle Meta Mainnet (Chain ID 138)** to Trust Wallet: registry entry, docs, and any patches for [trustwallet/wallet-core](https://github.com/trustwallet/wallet-core). + +## Repository + +- **Remote:** https://github.com/bis-innovations/TrustWallet_Integrations.git +- **Canonical path:** `~/projects/TrustWallet-Integration` (sibling to `proxmox`) + +## Contents + +- **README.md** (this file) +- **registry-entry-chain138.json** — Suggested `registry.json` entry for wallet-core; use with Trust’s [New EVM-compatible chain](https://developer.trustwallet.com/developer/wallet-core/newblockchain/newevmchain) steps. + +## Usage + +1. Clone [trustwallet/wallet-core](https://github.com/trustwallet/wallet-core). +2. Add the content of `registry-entry-chain138.json` to `registry.json` (appropriate position for EVM chains). +3. Run: `cd codegen-v2 && cargo run -- new-evmchain ` (see Trust docs for exact CLI). +4. Extend derivation tests, build, and open a PR to wallet-core. + +## Chain 138 spec (quick reference) + +| Field | Value | +|-------|--------| +| Chain name | Defi Oracle Meta Mainnet | +| Chain ID | 138 (0x8a) | +| Derivation | m/44'/60'/0'/0/0 | +| CoinID | 10000138 (10000000 + chainId) | +| RPC | https://rpc-http-pub.d-bis.org, https://rpc.d-bis.org | +| Explorer | https://explorer.d-bis.org | + +## Documentation (proxmox workspace) + +Full user steps, Wallet Core PR process, and rationale: + +- **Add Chain 138 to Trust Wallet:** `proxmox/docs/04-configuration/ADD_CHAIN138_TO_TRUST_WALLET.md` +- **Wallet ecosystem (why Snap, Ledger Live, Trust):** `proxmox/docs/04-configuration/CHAIN138_WALLET_ECOSYSTEM_AND_RATIONALE.md` +- **Repo layout (all wallet repos in ~/projects/):** `proxmox/docs/04-configuration/CHAIN138_WALLET_REPOSITORIES.md` diff --git a/registry-entry-chain138.json b/registry-entry-chain138.json new file mode 100644 index 0000000..e007636 --- /dev/null +++ b/registry-entry-chain138.json @@ -0,0 +1,26 @@ +{ + "id": "dfiometa", + "name": "Defi Oracle Meta Mainnet", + "coinId": 10000138, + "symbol": "ETH", + "decimals": 18, + "blockchain": "Ethereum", + "derivation": [ + { "path": "m/44'/60'/0'/0/0" } + ], + "curve": "secp256k1", + "publicKeyType": "secp256k1Extended", + "chainId": "138", + "addressHasher": "keccak256", + "explorer": { + "url": "https://explorer.d-bis.org", + "txPath": "/tx/", + "accountPath": "/address/" + }, + "info": { + "url": "https://d-bis.org", + "source": "https://github.com/bis-innovations", + "rpc": "https://rpc-http-pub.d-bis.org", + "documentation": "https://d-bis.org" + } +}