Documentation
¶
Overview ¶
Command dex-assets-validate is the CI gate for the DEX real-assets-only model. It loads a per-network asset manifest and proves EVERY entry real against the TARGET network's live RPC before a deploy is allowed to proceed:
- the C-Chain eth_chainId matches the manifest's evmChainID,
- the C-Chain consensus id matches the manifest's cChainID,
- every ERC-20 has on-chain code and its declared decimals match decimals(),
- every EVM_NATIVE resolves on the C-Chain,
- every UTXO assetID exists on the X-Chain,
- every market pins to two registered, enabled assets,
- the fail-closed startup gate (no synthetic flags on a value net, no Liquidity/mock/ticker reference) passes.
Exit 0 only when the whole manifest is real and gate-clean; any failure exits non-zero so the deploy job stops. It NEVER mutates anything — it is read-only against the target net.
Usage:
dex-assets-validate \ -manifest dexvm/registry/manifests/assets.mainnet.json \ -evm-rpc https://api.lux.network/ext/bc/C/rpc \ -api-base https://api.lux.network \ [-native-decimals 18]
Click to show internal directories.
Click to hide internal directories.