forked from subquery/cosmos-subql-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject.yaml
52 lines (50 loc) · 1.87 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
specVersion: 1.0.0
name: juno-subql-starter
version: 0.0.1
runner:
node:
name: "@subql/node-cosmos"
version: ">0.0.1-14"
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
endpoint: https://rpc.juno-1.api.onfinality.io
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"
dataSources:
- kind: cosmos/Runtime
startBlock: 3062001
mapping:
file: "./dist/index.js"
handlers:
- handler: handleBlock
kind: cosmos/BlockHandler
- 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"