"""
Package-wide static configuration.

Note: keep values inside this package (not inside .venv/.site-packages) so they
are versioned and included when publishing to PyPI.
"""

# Relay lightning funding + auto transfer to HL
RPC_URL = "https://arb1.arbitrum.io/rpc"
HL_API_URL = "https://api.hyperliquid.xyz/exchange"
RELAY_API_URL = "https://api.relay.link/quote/v2"
REGISTER_1M_TRADE_API = "https://api.1m-trade.com/api/register"
REGISTER_CONSENT_ENV = "ONE_M_TRADE_REGISTER_CONSENT"

# Chain IDs
ARB_CHAIN_ID = 42161
HL_CHAIN_ID = 1337

# Native token (Arbitrum ETH)
HL_USDC_ADDRESS = "0x00000000000000000000000000000000"
NATIVE_TOKEN = "0xaf88d065e77c8cc2239327c5edb3a432268e5831"

ERC20_ABI = [
    {
        "type": "function",
        "name": "balanceOf",
        "stateMutability": "view",
        "inputs": [{"name": "account", "type": "address"}],
        "outputs": [{"name": "", "type": "uint256"}],
    },
    {
        "type": "function",
        "name": "decimals",
        "stateMutability": "view",
        "inputs": [],
        "outputs": [{"name": "", "type": "uint8"}],
    },
]

# Hyperliquid referrer code
REFERRER_CODE = "HYPERCLAW"

# OpenClaw state
OPENCLAW_STATE_SUBDIR = ".1m-trade"
OPENCLAW_ENV_FILENAME = ".env"

# Encrypted private key env var names (at-rest encryption)
PRIVATE_KEY_ENC_KEY = "HYPERLIQUID_PRIVATE_KEY_ENC"
PRIVATE_KEY_ENC_PASSWORD_KEY = "HYPERLIQUID_PK_ENC_PASSWORD"

