joshstevens19 / rindexer

A no-code blazing fast EVM indexer tool built in rust.
https://rindexer.xyz
MIT License
267 stars 24 forks source link

Fictional logs, no real activity #67

Closed ztxtz closed 1 month ago

ztxtz commented 1 month ago

config:

name: usdc
project_type: no-code
networks:
- name: ethereum
  chain_id: 1
  rpc: https://mainnet.infura.io/v3/redacted
storage:
  postgres:
    enabled: true
contracts:
- name: USDC
  details:
  - network: ethereum
    address: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
    start_block: 18000000
    end_block: 20398334
  abi: ./abis/usdc.json
  include_events:
  - approve

run:

> rindexer start all
27 July - 16:31:15.799080  INFO Starting rindexer no code
27 July - 16:31:15.799462  INFO Setting up postgres
27 July - 16:31:15.808902  INFO Creating tables for usdc
27 July - 16:31:15.809138  INFO Creating schema if not exists: usdc_usdc
27 July - 16:31:15.819057  INFO Created tables for usdc
27 July - 16:31:15.823670  INFO Networks enabled: ethereum
27 July - 16:31:15.824396  INFO Events registered to index:
27 July - 16:31:15.824621  INFO Temp dropping constraints relationships from the database for historic indexing for speed reasons
27 July - 16:31:15.824816  INFO Starting GraphQL server
27 July - 16:31:15.843023  INFO Temp dropping indexes from the database for historic indexing for speed reasons
27 July - 16:31:15.865696  INFO Historical indexing complete - time taken: 6.506292ms
27 July - 16:31:15.865711  INFO Applying indexes if any back to the database as historic resync is complete
27 July - 16:31:16.647328  INFO 🦀 GraphQL API ready at http://localhost:3001/graphql Playground - http://localhost:3001/playground

outcome:

joshstevens19 commented 1 month ago

Have you made sure your event name is completely correct it’s normally Approval with a capital A (approve itself is a function not an event) - i can make this none case sensitive and also log out nothing on starting indexing to avoid people making this mistake but please make it match exactly the event name in ABI as I think that is your error

joshstevens19 commented 1 month ago

https://github.com/joshstevens19/rindexer/commit/de92672e06d4ad9ef1f19f36e4eaf5b8beed38c8 to throw next time if somoene makes the same mistake