We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
veezywqp@uniswap/token-lists
1.0.0-beta.26
`@uniswap/token-lists` was updated to allow objects to be nested 2 levels deep as of `1.0.0-beta.26`
here is a proposed schema for representing the cross chain token info in the extensions:
bridgeInfo is an extension that contains a map of other chain ID to an object containing other token info, like so
bridgeInfo
"tokens": [ { // ... "chainId": "<source chain id>", "extensions": { "bridgeInfo": { "<destination chain id>": { "tokenAddress": "<token address on destination chain id>", "originBridgeAddress": "<optional address of the bridge contract on the source chain id>", "destBridgeAddress": "<optional address of the bridge contract on the destination chain id>" } } } }, { // ... "chainId": "<destination chain id>", "extensions": { "bridgeInfo": { "<source chain id>": { "tokenAddress": "<token address on source chain id>", "originBridgeAddress": "<optional address of the bridge contract on the destination chain id>", "destBridgeAddress": "<optional address of the bridge contract on the source chain id>" } } } }, // ... ]
e.g.: https://github.com/Uniswap/token-lists/blob/e2a796f3f021949b986b9ac9f84a17be92498702/test/schema/example-crosschain.tokenlist.json
Originally posted by @moodysalem in #51 (comment)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
here is a proposed schema for representing the cross chain token info in the extensions:
bridgeInfo
is an extension that contains a map of other chain ID to an object containing other token info, like soe.g.:
https://github.com/Uniswap/token-lists/blob/e2a796f3f021949b986b9ac9f84a17be92498702/test/schema/example-crosschain.tokenlist.json
Originally posted by @moodysalem in #51 (comment)
The text was updated successfully, but these errors were encountered: