-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph-governor.template.yaml
36 lines (35 loc) · 1.19 KB
/
subgraph-governor.template.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
# Generated from mustache template for network: {{network}}
specVersion: 0.0.4
description: Pangolin is a decentralized exchange.
repository: https://github.com/pangolindex/subgraph-pangolin-hedera
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: GovernorPango
network: {{network}}
source:
address: "{{GovernorPango.address}}"
abi: GovernorPango
startBlock: {{GovernorPango.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/governorPango/governorPango.ts
entities:
- Proposal
abis:
- name: GovernorPango
file: ./abis/GovernorPango.json
eventHandlers:
- event: ProposalCreated(uint64,int64,address[],uint256[],string[],bytes[],uint40,uint40,string)
handler: handleNewProposal
- event: ProposalCanceled(uint64)
handler: handleProposalCanceled
- event: ProposalExecuted(uint64)
handler: handleProposalExecuted
- event: VoteCast(uint64,bool,uint96)
handler: handleVoteCast
- event: ProposalQueued(uint64,uint40)
handler: handleProposalQueued