-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject.yaml
90 lines (86 loc) · 3.49 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
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: 4220540 # first block on juno-1 4136532
#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:
- handler: handlePropose
kind: cosmos/MessageHandler
filter:
type: "/cosmwasm.wasm.v1.MsgExecuteContract"
contractCall: "propose"
contract: "juno18mtjkdrdmq83pcz5qa0r67x2csrs3knsgyrxdq5ygfjhywdjxv0qj2ugw6"
- handler: handleVote
kind: cosmos/MessageHandler
filter:
type: "/cosmwasm.wasm.v1.MsgExecuteContract"
contractCall: "vote"
contract: "juno18mtjkdrdmq83pcz5qa0r67x2csrs3knsgyrxdq5ygfjhywdjxv0qj2ugw6"
- handler: handleExecute
kind: cosmos/MessageHandler
filter:
type: "/cosmwasm.wasm.v1.MsgExecuteContract"
contractCall: "execute"
contract: "juno18mtjkdrdmq83pcz5qa0r67x2csrs3knsgyrxdq5ygfjhywdjxv0qj2ugw6"
- handler: handleClose
kind: cosmos/MessageHandler
filter:
type: "/cosmwasm.wasm.v1.MsgExecuteContract"
contractCall: "close"
contract: "juno18mtjkdrdmq83pcz5qa0r67x2csrs3knsgyrxdq5ygfjhywdjxv0qj2ugw6"
- handler: handleUpdateConfig
kind: cosmos/MessageHandler
filter:
type: "/cosmwasm.wasm.v1.MsgExecuteContract"
contractCall: "update_config"
contract: "juno18mtjkdrdmq83pcz5qa0r67x2csrs3knsgyrxdq5ygfjhywdjxv0qj2ugw6"
- handler: handleAddProposalHook
kind: cosmos/MessageHandler
filter:
type: "/cosmwasm.wasm.v1.MsgExecuteContract"
contractCall: "add_proposal_hook"
contract: "juno18mtjkdrdmq83pcz5qa0r67x2csrs3knsgyrxdq5ygfjhywdjxv0qj2ugw6"
- handler: handleRemoveProposalHook
kind: cosmos/MessageHandler
filter:
type: "/cosmwasm.wasm.v1.MsgExecuteContract"
contractCall: "remove_proposal_hook"
contract: "juno18mtjkdrdmq83pcz5qa0r67x2csrs3knsgyrxdq5ygfjhywdjxv0qj2ugw6"
- handler: handleAddVoteHook
kind: cosmos/MessageHandler
filter:
type: "/cosmwasm.wasm.v1.MsgExecuteContract"
contractCall: "add_vote_hook"
contract: "juno18mtjkdrdmq83pcz5qa0r67x2csrs3knsgyrxdq5ygfjhywdjxv0qj2ugw6"
- handler: handleRemoveVoteHook
kind: cosmos/MessageHandler
filter:
type: "/cosmwasm.wasm.v1.MsgExecuteContract"
contractCall: "remove_vote_hook"
contract: "juno18mtjkdrdmq83pcz5qa0r67x2csrs3knsgyrxdq5ygfjhywdjxv0qj2ugw6"