-
Notifications
You must be signed in to change notification settings - Fork 4
/
project.yaml
42 lines (40 loc) · 1.71 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
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
# This endpoint must be a public non-pruned archive node
# Public nodes may be rate limited, which can affect indexing speed
# When developing your project we suggest getting a private API key
# You can get them from OnFinality for free https://app.onfinality.io
# https://documentation.onfinality.io/support/the-enhanced-api-service
endpoint: https://juno.api.onfinality.io/public
# Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing
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
startBlock: 4136532 # Where Juno-4 was created, you'll need to find a juno-3 endpoint for previous data
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"