dex-assets-validate

command
v1.3.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2026 License: BSD-3-Clause Imports: 8 Imported by: 0

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]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL