docs: Chain 138 alignment audit + deprecate stale token-addresses master #1
Reference in New Issue
Block a user
Delete Branch "devin/1776556175-chain138-alignment-audit"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Chain 138 alignment audit
Requested by @nsatoshi (Devin session
10c48192bc54424e82d856b10a83c9ff).What
docs/CHAIN138_ALIGNMENT_AUDIT_2026-04-18.md— full drift report over 67 unique Chain-138 addresses collected from 7 canonical sources, cross-checked against live on-chain state athttps://rpc-core.d-bis.org(chainId0x8a/ 138).docs/data/chain138-alignment.json— machine-readable findings for downstream tooling/codegen.docs/CHAIN138_TOKEN_ADDRESSES.mdbanner-deprecated (only 5 of 15+ tokens, 0 of 43 infrastructure contracts, last updated 2026-01-31 vs. 2026-03-27 canonical inventory).Sources consulted
LedgerLive/docs/CHAIN138_TOKEN_ADDRESSES.md— purported master (v1.0, 2026-01-31)smom-dbis-138/config/address-inventory.chain138.json— infrastructure inventory (2026-03-27)smom-dbis-138/config/runtime-env.chain138.json— runtime env surface (2026-03-27)smom-dbis-138/services/token-aggregation/src/config/canonical-tokens.tsdbis_core/src/core/defi/tezos-usdtz/allowlist.config.tsexplorer-monorepo/backend/config/metamask/DUAL_CHAIN_TOKEN_LIST.tokenlist.json(v1.3.4, 2026-04-04)smom-dbis-138/docs/ADDRESS_MAPPING.md— genesis ↔ deployed mappingHeadline findings
cAUDC,cCADC,cCHFC,cEURC,cEURT,cGBPC,cGBPT,cJPYC,cXAUC,cXAUT+ rawUSDT/USDC/wXRP.0xC02aaA39…Cc2returnsdecimals=0on-chain — the genesis pre-deploy is a non-ERC20 shim; the real WETH9 bytecode lives at0x3304b747…E6perADDRESS_MAPPING.md.0xf4BB2e28…A9fworks correctly (18 decimals,Wrapped Ether v10).LedgerLive/docs/CONTRACT_ADDRESSES_REFERENCE.mdandCONTRACT_INVENTORY_AND_VERIFICATION.mdare linked from the master doc but return 404 (files never existed in this repo).Recommended follow-ups (listed in audit doc §9)
smom-dbis-138/config/address-inventory.chain138.jsonas the single on-box source of truth; generateDUAL_CHAIN_TOKEN_LIST.tokenlist.json,allowlist.config.tsChain-138 block, andcanonical-tokens.tsChain-138 entries from it via codegen.CHAIN138_TOKEN_ADDRESSES.mdWETH entry at the real deployed0x3304b747…E6, or redeploy canonical WETH9 at the genesis slot.dbis_core/allowlist.config.ts.Verification
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.