Add Chain 138 registry entry, README, and canonical layout
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
9
.gitignore
vendored
Normal file
9
.gitignore
vendored
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# OS
|
||||||
|
.DS_Store
|
||||||
|
Thumbs.db
|
||||||
|
|
||||||
|
# Editor
|
||||||
|
*.swp
|
||||||
|
*.swo
|
||||||
|
.idea/
|
||||||
|
.vscode/
|
||||||
41
README.md
Normal file
41
README.md
Normal file
@@ -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 <chain>` (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`
|
||||||
26
registry-entry-chain138.json
Normal file
26
registry-entry-chain138.json
Normal file
@@ -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"
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user