forked from decentralizedlabs/defifa-subgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
83 lines (83 loc) · 2.22 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
specVersion: 0.0.4
schema:
file: ./schema.graphql
description: 0.2.15
dataSources:
- kind: ethereum
name: DefifaDeployer
network: goerli
source:
abi: DefifaDeployer
address: "0xC6929Ebd1bFab08240ec7506B56e0C1E3FA6758B"
startBlock: 9149382
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Contract
abis:
- name: DefifaDeployer
file: ./abis/DefifaDeployer.json
- name: DefifaNFT
file: ./abis/DefifaNFT.json
eventHandlers:
- event: LaunchGame(indexed uint256,indexed address,indexed address,address,address)
handler: handleLaunchGame
file: ./src/mappings/defifa-deployer.ts
- kind: ethereum
name: DefifaGovernor
network: goerli
source:
abi: DefifaGovernor
address: "0xa4c924802Ef97E95E4bFa305a7D19C8851e1ac45"
startBlock: 9149382
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
file: ./src/mappings/defifa-governor.ts
entities:
- Scorecard
abis:
- name: DefifaGovernor
file: ./abis/IDefifaGovernor.json
eventHandlers:
- event: ScorecardSubmitted(indexed uint256,indexed uint256,(uint256,uint256)[],bool,address)
handler: handleScorecardSubmitted
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: TokenMetadata
kind: file/ipfs
network: goerli
mapping:
apiVersion: 0.0.7
language: wasm/assemblyscript
file: ./src/mappings/token-metadata.ts
handler: handleMetadata
entities:
- TokenMetadata
abis:
- name: DefifaNFT
file: ./abis/DefifaNFT.json