Skip to content
New issue

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

Complete native token information. #63

Open
GabrielCamba opened this issue Sep 7, 2022 · 0 comments
Open

Complete native token information. #63

GabrielCamba opened this issue Sep 7, 2022 · 0 comments
Assignees
Labels
Protofire Subgraph Subgraph related task

Comments

@GabrielCamba
Copy link
Contributor

Based on this comment will be better to complete the native token information with the name, decimals and symbols.

In case of this query:

{
  token(id: "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee") {
    address
    name
    symbol
    decimals
  }
}

We are getting this result:

{
  "data": {
    "token": {
      "address": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
      "name": "",
      "symbol": "",
      "decimals": 18
    }
  }

Expected result gc:

  "data": {
    "token": {
      "address": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
      "name": "Native XDAI",
      "symbol": "XDAI",
      "decimals": 18
    }
  }

Expected result mainnet:

  "data": {
    "token": {
      "address": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
      "name": "Native Ether",
      "symbol": "ETH",
      "decimals": 18
    }
  }
@GabrielCamba GabrielCamba added Protofire Subgraph Subgraph related task labels Sep 7, 2022
@GabrielCamba GabrielCamba self-assigned this Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Protofire Subgraph Subgraph related task
Projects
None yet
Development

No branches or pull requests

1 participant