-
Notifications
You must be signed in to change notification settings - Fork 2
/
subgraph.yaml
89 lines (89 loc) · 2.55 KB
/
subgraph.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
89
specVersion: 0.0.4
schema:
file: ./schema.graphql
description: 0.1.1
dataSources:
- kind: ethereum
name: DefifaDeployer
network: goerli
source:
abi: DefifaDeployer
address: "0x17cABd6BC8679954476961c73b88f5888F8FF708"
startBlock: 9082549
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Contract
abis:
- name: DefifaDeployer
file: ./abis/DefifaDeployer.json
eventHandlers:
- event: LaunchGame(indexed uint256,indexed address,indexed address,address,address)
handler: handleLaunchGame
file: ./src/mappings/defifa-deployer.ts
templates:
- name: DefifaNFT
kind: ethereum/contract
network: goerli
source:
abi: DefifaNFT
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
file: ./src/mappings/defifa-nft.ts
entities:
- Token
- TokenMetadata
- Owner
- Transfer
- Contract
abis:
- name: DefifaNFT
file: ./abis/DefifaNFT.json
eventHandlers:
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleTransfer
- name: Governor
kind: ethereum/contract
network: goerli
source:
abi: Governor
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
file: ./src/mappings/governor.ts
entities:
- Governor
abis:
- name: Governor
file: ./abis/IGovernorTimelock.json
eventHandlers:
- event: ProposalCanceled(uint256)
handler: handleProposalCanceled
- event: ProposalCreated(uint256,address,address[],uint256[],string[],bytes[],uint256,uint256,string)
handler: handleProposalCreated
- event: ProposalExecuted(uint256)
handler: handleProposalExecuted
- event: ProposalQueued(uint256,uint256)
handler: handleProposalQueued
- event: VoteCast(indexed address,uint256,uint8,uint256,string)
handler: handleVoteCast
- event: VoteCastWithParams(indexed address,uint256,uint8,uint256,string,bytes)
handler: handleVoteCastWithParams
- name: TokenMetadata
kind: file/ipfs
network: goerli
mapping:
apiVersion: 0.0.7
language: wasm/assemblyscript
file: ./src/mappings/metadata.ts
handler: handleMetadata
entities:
- TokenMetadata
abis:
- name: DefifaNFT
file: ./abis/DefifaNFT.json