Skip to content

Consider standardized representation of bridged asset relationships (L1 -> L2 or L1 -> L1) #51

@moodysalem

Description

@moodysalem

Token lists may contain tokens on multiple chains, for example Ethereum Mainnet, Rinkeby and Optimism. These tokens can be 'bridged' versions of each other, e.g. DAI might be bridged from Ethereum Mainnet to Optimism. There could be a standard way to represent the relationship between these tokens.

One option for extending the schema:

 {
    "chainId": 1,
    "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
    "symbol": "USDC",
    "name": "USD Coin",
    "decimals": 6,
    "otherChainAddresses": { "420161": "0xAAAA...AAAA" }
}

Other things we may want to include in the token list specification:

  • bridge function ABI
  • bridge contract address on layer 1 and/or layer 2

How we do this depends on the intended usage in the interface. For now, since there is not an obvious way for us to use it as with other token metadata, it's may be ok to use extensions.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions