Files
zeekay 5ff9aca513 feat(dex/registry): embed per-network asset manifests + localnet native builder
Make the per-network asset manifests (mainnet/testnet/devnet) available to a node
binary with no filesystem dependency, so the EVM plugin can build the 0x9999
value-path AssetResolver from the CI-approved, content-hashed asset set compiled
into the binary. Selection is by EVM chainID (96369/96368/96370). Localnet (1337),
whose C-Chain id is environment-specific, gets a runtime-rooted native-only manifest
(LocalnetNativeManifest) synthesised from the node's live cChainID — never a constant.

- embedded.go: //go:embed the three manifests; EmbeddedManifestFor(evmChainID) +
  LocalnetNativeManifest(networkID, cChainID).
- manifest.go: split decodeManifestBytes out of loadManifestBytes so the embed path
  and the disk path share one decoder (shape-validate + content-hash + unknown-field
  rejection identical for both).
2026-06-22 20:56:23 -07:00

25 lines
699 B
JSON

{
"network": "devnet",
"networkID": 3,
"evmChainID": 96370,
"cChainID": "Bm8X7THQtS2txLrQWTDXN8a4JDuhP4KGybUE754LLSiVFLQ7v",
"chainLabels": {
"186f101dd98bdebc5c84aef16dd5c15ba2f42f0b8ee5b9194eae11fd91e57b71": "Lux C-Chain (devnet)",
"667d186624a49f77082edabfa7cc34e64520fe837b6b4a21109a16975515892a": "Lux X-Chain (devnet)"
},
"assets": [
{
"networkID": 3,
"chainID": "Bm8X7THQtS2txLrQWTDXN8a4JDuhP4KGybUE754LLSiVFLQ7v",
"assetKind": "EVM_NATIVE",
"canonicalRef": "0x0000000000000000000000000000000000000000",
"decimals": 18,
"symbol": "LUX",
"name": "Lux",
"enabled": true,
"riskTier": 0
}
],
"markets": []
}