-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.yaml
33 lines (30 loc) · 1.69 KB
/
config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: DlistingP # Name of the project
description: Uniswap indexing # Description of the project
networks: # Configuration of the blockchain networks that the project is deployed on
- id: 1 # Chain identifier of the network
rpc_config:
url: https://mainnet.infura.io/v3/a25f838e411243c3af3a3c1c17143b59 # RPC URL that will be used to subscribe to blockchain data on this network
unstable__sync_config:
initial_block_interval: 10000 # Integer
backoff_multiplicative: 0.8 # Float
acceleration_additive: 2000 # Integer
interval_ceiling: 10000 # Integer
backoff_millis: 5000 # Integer
query_timeout_millis: 20000 # Integer
start_block: 12376729 # Initial block from which the indexer will start listening for events
contracts: # Configuration for each contract
- name: UniswapV3Pool # User-defined contract name
abi_file_path: abis/UniswapV3Pool.json # File location of the contract ABI
address: "0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640" # An array of addresses that the contract is deployed to on the network
handler: src/EventHandlers.js # Location of the file that handles the events emitted by this contract
events: # Configuration for each event emitted by this contract that the indexer will listen for
- event: Swap # Name of the first "Swap" event
requiredEntities: # The name of the required entity (must match an entity defined in `schema.graphql`)
- name: Asset
- name: Pool
- name: Time
- event: Mint
requiredEntities:
- name: Asset
- name: Pool
- name: Time