Skip to content

Latest commit

 

History

History

explorer

Explorer

Go Reference Go Report Card

See #167 to learn more.

To access the clickhouse database, you can use the following command from the docker image:

$ clickhouse-client --database=clickhouse_test --user=clickhouse_test --password=clickhouse_test

Directory Structure.

explorer
├── api: API server
├── backfill: Chain level backfilling service to populate the database
├── cmd: CLI commands
├── config: Configuration files
├── consumer: Consumes data from Scribe and populates the Explorer database
│   ├── client: Client for the Scribe consumer
│   ├── fetcher: Fetches data from Scribe, BridgeConfig contract, and Swap contract
│   └── parser: Parses and stores events
├── contracts: Smart contracts and their generated interfaces/utils
│   ├── bridge: Bridge smart contract applications
│   ├── bridgeconfig: BridgeConfig smart contract applications
│   ├── contracts: Raw flattened smart contracts and test contracts
│   └── swap: Swap smart contract applications
├── db: Database interface
│   └── sql: Database writer, reader, and migrations
├── graphql: GraphQL implementation for the Explorer's recorded data
│   ├── client: The client interface for the GraphQL server
│   ├── contrib: Generator for the GraphQL schema
│   └── server: The server implementation for GraphQL
│       └── graph: The server's models, resolvers, and schemas
├── node: Live Explorer node
├── testutil: Test utilities
└── types: Explorer specific types