forked from jamesbayly/juno-terra-developer-fund-votes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.yaml
35 lines (33 loc) · 1.17 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
specVersion: 1.0.0
name: juno-terra-developer-fund-votes
version: 0.0.1
runner:
node:
name: "@subql/node-cosmos"
version: ">=0.1.0"
query:
name: "@subql/query"
version: "*"
description: >-
This project indexes all votes made on the Terra Developer Fund
repository: https://github.com/jamesbayly/juno-terra-developer-fund-votes
schema:
file: ./schema.graphql
network:
chainId: juno-1
endpoint: https://rpc.juno-1.api.onfinality.io
dictionary: https://api.subquery.network/sq/subquery/cosmos-juno-dictionary
dataSources:
- kind: cosmos/Runtime
startBlock: 3246370 # The block when the first proposal in this fund was created
mapping:
file: "./dist/index.js"
handlers:
- handler: handleTerraDeveloperFund
kind: cosmos/MessageHandler
filter:
type: "/cosmwasm.wasm.v1.MsgExecuteContract"
# Filter to only messages with the vote function call
contractCall: "vote" # The name of the contract function that was called
values: # This is the specific smart contract that we are subscribing to
contract: "juno1lgnstas4ruflg0eta394y8epq67s4rzhg5anssz3rc5zwvjmmvcql6qps2"