forked from subquery/cosmos-subql-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.yaml
59 lines (59 loc) · 2.27 KB
/
project.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
specVersion: 1.0.0
name: osmosis-subql-starter
version: 0.0.1
runner:
node:
name: "@subql/node-cosmos"
version: "*"
query:
name: "@subql/query"
version: "*"
description: >-
This project can be use as a starting point for developing your Cosmos
(Osmosis) based SubQuery project. This Cosmos Example Project indexes all swaps on Osmosis' on chain DEX
repository: "https://github.com/subquery/cosmos-subql-starter"
schema:
file: ./schema.graphql
network:
chainId: osmosis-1
# This endpoint must be a public non-pruned archive node
# We recommend providing more than one endpoint for improved reliability, performance, and uptime.
# This is a public node that is rate limited, which will affect indexing speed.
# When developing your project we strongly suggest getting a private API key.
endpoint: ["https://osmosis.api.onfinality.io/public"]
dictionary: "https://api.subquery.network/sq/subquery/cosmos-osmosis-dictionary"
chainTypes:
osmosis.gamm.v1beta1:
file: "./proto/osmosis/gamm/v1beta1/tx.proto"
messages:
- MsgSwapExactAmountIn
osmosis.poolmanager.v1beta1: # needed by MsgSwapExactAmountIn
file: "./proto/osmosis/poolmanager/v1beta1/swap_route.proto"
messages:
- SwapAmountInRoute
cosmos.base.v1beta1: # needed by MsgSwapExactAmountIn
file: "./proto/cosmos/cosmos.base.v1beta1.coin.proto"
messages:
- "Coin"
dataSources:
- kind: cosmos/Runtime
startBlock: 9798050
mapping:
file: ./dist/index.js
handlers:
# Using block handlers slows your project down as they can be executed with each and every block. Only use if you need to
# - handler: handleBlock
# kind: cosmos/BlockHandler
# Using transaction handlers without filters slows your project down as they can be executed with each and every transaction
# - handler: handleTransaction
# kind: cosmos/TransactionHandler
# - handler: handleEvent
# kind: cosmos/EventHandler
# filter:
# type: token_swapped
# messageFilter:
# type: /osmosis.gamm.v1beta1.MsgSwapExactAmountIn
- handler: handleMessage
kind: cosmos/MessageHandler
filter:
type: /osmosis.gamm.v1beta1.MsgSwapExactAmountIn