Veyronn Documentation
Chain Package
Use Veyronn chain definitions, configuration, units, ABIs, and EIP-712 schemas.
The @veyronn/chain workspace package keeps browser, BFF, indexer, keeper, tests, and scripts on the same protocol types.
Chain definitions
import { robinhoodChain, robinhoodChainTestnet } from "@veyronn/chain";
console.log(robinhoodChain.id); // 4663
console.log(robinhoodChainTestnet.id); // 46630
The definitions include native ETH, official RPC defaults, and Blockscout explorers.
Runtime configuration
loadVeyronnConfig reads chain ID, RPC, contract addresses, deployment block, confirmations, and service settings from environment variables. It rejects unsupported chain IDs.
Typed data
The package exports canonical EIP-712 schemas for:
- signed oracle reports
- delegated intent messages
Always use the shared domain and message builders. Hand-constructed type definitions can produce signatures that appear valid in the wallet but fail contract or keeper verification.
Units
Protocol USD values use six decimals. Convert user input to integer micro-USD at boundaries and keep bigint internally. Avoid JavaScript floating-point arithmetic for transaction values.
ABIs
Generated JSON ABIs cover:
VeyronnProtocolCollateralVaultSignedOracleRouter- mainnet
OracleRouter StrategyNFTConditionalEvaluator- testnet collateral and feed helpers
Regenerate ABIs after contract interface changes:
npm --workspace @veyronn/chain run generate:abis
Then rebuild all consumers and rerun contract, service, and web checks.