Skip to main contentA-REX Foundation

Projeto do sistema · AREX-CONF

Configuration

Keep secrets in a local .env (see .env.example) or a secret manager. Never commit keys.

ID do documento
AREX-CONF
Versão
2.0
Data
2026-09-21
Disponível somente em inglês
Esta página está em inglês. Os capítulos do whitepaper e os diagramas estão traduzidos. O padrão normativo permanece no repositório; use Solicitar acesso antecipado para esse texto. Os guias de projeto do sistema e os registros de decisão permanecem em inglês.
FieldValue
Document IDAREX-CONF
Version2.0
Date2026-09-21

Hardhat

hardhat.config.js defines:

  • Solidity 0.8.22, viaIR: true, EVM target paris;
  • optimizer runs = 200 for all contracts, with a per-file override runs = 1 for contracts/reference/core/ARexToken.sol so that the reference token stays under the EIP-170 size limit (24,136 bytes deployed);
  • networks hardhat/localhost (chain id 31337), sepolia, polygon, arbitrum;
  • Ignition (requiredConfirmations: 1), gas reporter (REPORT_GAS=true), Etherscan-style verification keys.

Environment variables

VariablePurpose
PRIVATE_KEYdeployment account for remote networks
SEPOLIA_RPC_URL, POLYGON_RPC_URL, ARBITRUM_RPC_URLRPC endpoints
ETHERSCAN_API_KEY, POLYGONSCAN_API_KEY, ARBISCAN_API_KEYverification
AREX_BASE_URIERC-1155 base URI for scripts/deploy-standard.js and deploy-full-standard.js
AREX_PAYOUT_TOKENERC-20 used by ParametricInsurance in deploy-full-standard.js (skipped if unset)
AREX_INVARIANT_STEPS, AREX_INVARIANT_SEEDinvariant test length and seed
REPORT_GASHardhat gas reporter

Keep secrets in a local .env (see .env.example) or a secret manager. Never commit keys.

Package manager

npm with the committed package-lock.json (npm ci). The repository does not declare a packageManager field for pnpm or yarn: the lockfile and CI are npm-based, and a second lockfile would create version drift.

Network compatibility

A network entry means a deployment path is configured, not that the system was validated there. Before deploying: confirm EVM version support (paris is intentionally conservative), gas limits, finality assumptions, explorer verification and upgrade governance (see SYSTEM-DESIGN.md §8).