Skip to content

Conversation

@TaoshiKen
Copy link

Summary

  • Adds full support for localhost (chain ID 31337) for local development and testing
  • Configures all necessary chain settings, contracts, tokens, and infrastructure for running the interface against a local node

Changes

Chain Configuration:

  • Added LOCALHOST (31337) to chain IDs and contract chain types
  • Configured viem chain definition with local RPC (http://127.0.0.1:8545)
  • Added to CONTRACTS_CHAIN_IDS_DEV and testnet chain list

Contract Addresses:

  • Added all required contract addresses for localhost deployment (DataStore, ExchangeRouter, SyntheticsReader, etc.)
  • Configured Multicall3, Timelock, and other essential contracts

Token Configuration:

  • Added ETH, WETH, BTC, USDC, USDT, and platform tokens (GMX, GM, GLV)
  • Fixed bug: Added LOCALHOST to CHAIN_IDS array to properly populate TOKENS_MAP

Infrastructure:

  • Configured oracle keeper URLs for localhost (http://127.0.0.1:3000)
  • Added batch configuration for local multicall
  • Set up gas payment tokens, execution fees, and gas limits
  • Added RPC and fallback providers

Test plan

  • Verify the interface loads without errors when connected to localhost
  • Confirm token lookups work correctly (no "can't convert undefined to object" errors)
  • Test wallet connection to local node
  • Verify contract interactions work with deployed local contracts

@vercel
Copy link

vercel bot commented Dec 1, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
0xmarkets-interface Error Error Jan 13, 2026 1:53am

@TaoshiKen TaoshiKen changed the title [WIP]: Testnet deploy [WIP]: Testnet Deploy Dec 1, 2025
Enables the app to be used with a local development chain (localhost).

This involves adding the Localhost chain to various configuration files,
including chain definitions, icons, network mappings, and RPC providers.
This allows developers to test and debug the app locally, without
relying on public testnets.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants