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
704 B
JSON

{
"network": "mainnet",
"networkID": 1,
"evmChainID": 96369,
"cChainID": "2wRdZGeca1qkxzNCq88NWDF5nJ5A9o623vRJKd3FsjRYvuVvvt",
"chainLabels": {
"ff46212f83773a47ac8fc3b800ad4e725743d286f33388e4541408f44de0d512": "Lux C-Chain (mainnet)",
"a98ba25f6a582b4065f46445c7e0636848b66b60079bbf98e5fd88c4d756bd2b": "Lux X-Chain (mainnet)"
},
"assets": [
{
"networkID": 1,
"chainID": "2wRdZGeca1qkxzNCq88NWDF5nJ5A9o623vRJKd3FsjRYvuVvvt",
"assetKind": "EVM_NATIVE",
"canonicalRef": "0x0000000000000000000000000000000000000000",
"decimals": 18,
"symbol": "LUX",
"name": "Lux",
"enabled": true,
"riskTier": 0
}
],
"markets": []
}