forked from subquery/cosmos-subql-starter
-
Notifications
You must be signed in to change notification settings - Fork 1
/
project.yaml
57 lines (55 loc) · 2.35 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
specVersion: 1.0.0
name: juno-subql-starter
version: 0.0.1
runner:
node:
name: "@subql/node-cosmos"
version: ">=0.1.0"
query:
name: "@subql/query"
version: "*"
description: >-
This project can be use as a starting point for developing your Cosmos (Juno) based SubQuery project
repository: https://github.com/subquery/juno-subql-starter
schema:
file: ./schema.graphql
network:
chainId: juno-1
# You must connect to an archive (non-pruned) node
endpoint: https://rpc.juno-1.api.onfinality.io
# Using a dictionary can massively improve indexing speed
dictionary: https://api.subquery.network/sq/subquery/cosmos-juno-dictionary
dataSources:
- kind: cosmos/Runtime
startBlock: 4136532 # first block on juno-1
#chainTypes: # This is a beta feature that allows support for any Cosmos chain by importing the correct protobuf messages
# cosmos.slashing.v1beta1:
# file: "./proto/cosmos/slashing/v1beta1/tx.proto"
# messages:
# - "MsgUnjail"
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 block
# - handler: handleTransaction
# kind: cosmos/TransactionHandler
- handler: handleEvent
kind: cosmos/EventHandler
filter:
type: execute
messageFilter:
type: "/cosmwasm.wasm.v1.MsgExecuteContract"
# contractCall field can be specified here too
#values: # A set of key/value pairs that are present in the message data
#contract: "juno1v99ehkuetkpf0yxdry8ce92yeqaeaa7lyxr2aagkesrw67wcsn8qxpxay0"
- handler: handleMessage
kind: cosmos/MessageHandler
filter:
type: "/cosmwasm.wasm.v1.MsgExecuteContract"
# Filter to only messages with the provide_liquidity function call
#contractCall: "provide_liquidity" # The name of the contract function that was called
#values: # A set of key/value pairs that are present in the message data
#contract: "juno1v99ehkuetkpf0yxdry8ce92yeqaeaa7lyxr2aagkesrw67wcsn8qxpxay0"