explorer

command module
v0.0.36 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2022 License: MIT Imports: 3 Imported by: 0

README

Explorer

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

Documentation

Overview

Package main: entry point for the cli.

Directories

Path Synopsis
Package api provides the api for the explorer service.
Package api provides the api for the explorer service.
Package backfill provides a command to backfill the consumer database.
Package backfill provides a command to backfill the consumer database.
Package cmd CLI infra
Package cmd CLI infra
Package config handles config data decoded from config.yaml for the explorer service.
Package config handles config data decoded from config.yaml for the explorer service.
Package consumer provides a consumer for the database.
Package consumer provides a consumer for the database.
client
Package client provides a GraphQL client for consuming logs.
Package client provides a GraphQL client for consuming logs.
client/contrib
Package main generates a GQL client.
Package main generates a GQL client.
fetcher
Package fetcher provides fetchers to fetch data from Scribe, BridgeConfig, and Swap.
Package fetcher provides fetchers to fetch data from Scribe, BridgeConfig, and Swap.
parser
Package parser provides the logic to parse and store events.
Package parser provides the logic to parse and store events.
parser/tokendata
Package tokendata contains the token data service
Package tokendata contains the token data service
contracts
bridge
Code generated by synapse abigen DO NOT EDIT.
Code generated by synapse abigen DO NOT EDIT.
bridge/bridgev1
Code generated by synapse abigen DO NOT EDIT.
Code generated by synapse abigen DO NOT EDIT.
bridge/testbridge
Code generated by synapse abigen DO NOT EDIT.
Code generated by synapse abigen DO NOT EDIT.
bridge/testbridgev1
Code generated by synapse abigen DO NOT EDIT.
Code generated by synapse abigen DO NOT EDIT.
bridgeconfig
Code generated by synapse abigen DO NOT EDIT.
Code generated by synapse abigen DO NOT EDIT.
messagebus
Package messagebus Go interface for synapse-contracts/.../MessageBusUpgradeable.sol
Package messagebus Go interface for synapse-contracts/.../MessageBusUpgradeable.sol
messagebus/testmessagebus
Package testmessagebus generates test abis for synapse-contracts/.../MessageBusUpgradeable.sol
Package testmessagebus generates test abis for synapse-contracts/.../MessageBusUpgradeable.sol
swap
Package swap Go interface for synapse-contracts/.../SwapFlashLoan.sol
Package swap Go interface for synapse-contracts/.../SwapFlashLoan.sol
swap/testswap
Code generated by synapse abigen DO NOT EDIT.
Code generated by synapse abigen DO NOT EDIT.
db
Package db provides the database for the consumer service.
Package db provides the database for the consumer service.
sql
Package sql contains the sql store.
Package sql contains the sql store.
Package graphql provides a GraphQL API for the explorer service.
Package graphql provides a GraphQL API for the explorer service.
contrib
generate gql schema
generate gql schema
server
Package server provides the GraphQL server.
Package server provides the GraphQL server.
server/graph
Package graph implements the GraphQL schema and resolvers.
Package graph implements the GraphQL schema and resolvers.
server/graph/model
Package model provides the GraphQL model for the explorer service.
Package model provides the GraphQL model for the explorer service.
server/graph/resolver
Package resolvers provides the GraphQL resolver for the explorer service.
Package resolvers provides the GraphQL resolver for the explorer service.
Package node contains the node for the explorer service.
Package node contains the node for the explorer service.
Package static contains static config files
Package static contains static config files
Package testutil is used for deploying test contracts and generic testing functions
Package testutil is used for deploying test contracts and generic testing functions
clickhouse
Package clickhouse spins up a temp clickhouse db with docker.
Package clickhouse spins up a temp clickhouse db with docker.
testcontracts
Package testcontracts provides a set of test contracts for use in tests.
Package testcontracts provides a set of test contracts for use in tests.
types
bridge
Package bridge provides types for Bridge events.
Package bridge provides types for Bridge events.
messagebus
Package messagebus provides types for Message events.
Package messagebus provides types for Message events.
swap
Package swap provides types for Swap events.
Package swap provides types for Swap events.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL