mirror of
https://github.com/luxfi/chains.git
synced 2026-09-24 00:26:00 +00:00
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).
25 lines
702 B
JSON
25 lines
702 B
JSON
{
|
|
"network": "testnet",
|
|
"networkID": 2,
|
|
"evmChainID": 96368,
|
|
"cChainID": "uzPtAE7PHd2TFHaxsvyVqmVbhMuWR4jiEh4XV8uF9uMQEFyUB",
|
|
"chainLabels": {
|
|
"7851bc52f7b0d0bc81c636edcc7d93f9bde8e99a0d9ccba2700323dc1170b621": "Lux C-Chain (testnet)",
|
|
"9c3b502bd747773d3e27590d53e34f57620e7e86fc7925c8186ad7791c0e10fe": "Lux X-Chain (testnet)"
|
|
},
|
|
"assets": [
|
|
{
|
|
"networkID": 2,
|
|
"chainID": "uzPtAE7PHd2TFHaxsvyVqmVbhMuWR4jiEh4XV8uF9uMQEFyUB",
|
|
"assetKind": "EVM_NATIVE",
|
|
"canonicalRef": "0x0000000000000000000000000000000000000000",
|
|
"decimals": 18,
|
|
"symbol": "LUX",
|
|
"name": "Lux",
|
|
"enabled": true,
|
|
"riskTier": 0
|
|
}
|
|
],
|
|
"markets": []
|
|
}
|