Skip to content

add chain name to addresses.json when TOML files are eventually removed #999

@blmalone

Description

@blmalone

This is purely a UX consideration. When I'm debugging I was relying on the TOML files quite a bit. IT would be nice to tell, at a glance, what chainID the chain is for in the addresses.json file.

Something like this (being conscious about introducing a breaking change):

  "10": {
    "AddressManager": "0xdE1FCfB0851916CA5101820A69b13a4E276bd81F",
    "AnchorStateRegistryProxy": "0x1c68ECfbf9C8B1E6C0677965b3B9Ecf9A104305b",
    "BatchSubmitter": "0x6887246668a3b87F54DeB3b94Ba47a6f63F32985",
    "Challenger": "0x9BA6e03D8B90dE867373Db8cF1A58d2F7F006b3A",
    "DelayedWETHProxy": "0x323dFC63c9B83CB83f40325AaB74b245937cbdF0",
    "DisputeGameFactoryProxy": "0xe5965Ab5962eDc7477C8520243A95517CD252fA9",
    "FaultDisputeGame": "0x5738a876359b48A65d35482C93B43e2c1147B32B",
    "Guardian": "0x09f7150D8c019BeF34450d6920f6B3608ceFdAf2",
    "L1CrossDomainMessengerProxy": "0x25ace71c97B33Cc4729CF772ae268934F7ab5fA1",
    "L1ERC721BridgeProxy": "0x5a7749f83b81B301cAb5f48EB8516B986DAef23D",
    "L1StandardBridgeProxy": "0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1",
    "MIPS": "0xF027F4A985560fb13324e943edf55ad6F1d15Dc1",
    "OptimismMintableERC20FactoryProxy": "0x75505a97BD334E7BD3C476893285569C4136Fa0F",
    "OptimismPortalProxy": "0xbEb5Fc579115071764c7423A4f12eDde41f106Ed",
    "PermissionedDisputeGame": "0x1Ae178eBFEECd51709432EA5f37845Da0414EdFe",
    "PreimageOracle": "0x1fb8cdFc6831fc866Ed9C51aF8817Da5c287aDD3",
    "Proposer": "0x473300df21D047806A082244b417f96b32f13A33",
    "ProxyAdmin": "0x543bA4AADBAb8f9025686Bd03993043599c6fB04",
    "ProxyAdminOwner": "0x5a0Aae59D09fccBdDb6C6CcEB07B7279367C3d2A",
    "SuperchainConfig": "0x95703e0982140D16f8ebA6d158FccEde42f04a4C",
    "SystemConfigOwner": "0x847B5c174615B1B7fDF770882256e2D3E95b9D92",
    "SystemConfigProxy": "0x229047fed2591dbec1eF1118d64F7aF3dB9EB290",
    "UnsafeBlockSigner": "0xAAAA45d9549EDA09E70937013520214382Ffc4A2",
    "chainInfo": {
       "name": "OP Mainnet"
    }
  }

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions