Reference

Trading deployment configuration

The local deployment script solidity/ts/trading/deploy/deploy-local.mts reads the environment variables below. No public trading deployment manifest is bundled; the client derives and checks its contracts at startup.

Environment variables

Name Meaning Default
TRADING_RPC_URL JSON-RPC endpoint http://127.0.0.1:8545
TRADING_DEPLOYER Unlocked RPC account First eth_accounts entry
ZOLTAR_DEPLOYMENT_MANIFEST Existing matching core manifest Required
TRADING_FEE_BPS Immutable trading fee 30

TRADING_FEE_BPS must be a whole number from 0 to 9999. The script stops when the RPC chain ID differs from the core manifest's, when the manifest's SecurityPoolFactory has no code on that chain, or when the RPC exposes no account. Manifests must not contain secrets.

Deployment manifest

bun run trading:deploy:local writes solidity/deployments/trading/local.json for scripts and integration environments. The file is git-ignored because local addresses are ephemeral. A generated manifest contains:

Pairs never appear as static deployment inputs. Discover them dynamically with getPair(pool), verify with isPair, or derive the deterministic address with predictPair. Review a manifest before publishing it, and never copy local ephemeral addresses into a public-network file.

What the client derives

The standalone client reads no environment variables. At startup it uses:

Quote and simulation behavior is described in the Trading SDK.