accesscontrol-explorer
accesscontrol-explorer copied to clipboard
Use EIP-3770 and CAIP-10 chain-prefixed addresses for multichain support
EIP-3770 addresses look like eth:0x0DA0C3e52C977Ed3cBc641fF02DD271c3ED55aFe or poly:0x0DA0C3e52C977Ed3cBc641fF02DD271c3ED55aFe. They map to CAIP-10 identifiers which look like eip155:1:0x0DA0C3e52C977Ed3cBc641fF02DD271c3ED55aFe.
We should support EIP-3770 but also CAIP-10 as not all chains will be covered by the former. Support for EIP-3770 should be built by mapping to CAIP-10 under the hood.
I'd propose to have URLs formatted in this way, maybe /eth:0x1234...5678/contract.
The search bar should also support entering a chain-prefixed address.