ethereum-optimism / op-analytics

Onchain Data, Utilities, References, and other Analytics on Optimism
111 stars 51 forks source link

Build Tokens Table #934

Open MSilb7 opened 4 weeks ago

MSilb7 commented 4 weeks ago

Pre-Reqs:

Steps:

  1. Get list of ERC20/721/1155 tokens from either 1) logs (filter to token transfer events) or 2) token transfer pipelines
  2. Call the token contract using an RPC, and read values for relevant fields (i.e. name, symbol, decimals) - also assign a field for token standard i. Note: We also need to pull the mint/burn address for interop, but need to check what function this is.
  3. Build a tokens data table with the schema: blockchain | contract_address |symbol | name | decimals (if available) | token standard | ... [other columns]

Other Notes:

Use cases:

Next steps:

MSilb7 commented 2 weeks ago

cc @chuxinh on the prereq tables

Also TBD if we use the goldsky pipelines or build our own