forked from aavegotchi/gotchiverse-subgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
142 lines (142 loc) · 6.13 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
specVersion: 0.0.4
# features:
# - grafting
# graft:
# base: QmV3UGEkvsvEzL5GcDXqBxHqZyF4au6vPWNNZHLuz1ohSe # Subgraph ID of base subgraph
# block: 28000000 # Block number
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: RealmDiamond
network: matic
source:
address: "0x1d0360bac7299c86ec8e99d0c1c9a95fefaf2a11"
abi: RealmDiamond
startBlock: 20667840
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- ChannelAlchemica
- EquipTileEvent
- UnequipTileEvent
abis:
- name: RealmDiamond
file: ./abis/RealmDiamond.json
- name: InstallationDiamond
file: ./abis/InstallationDiamond.json
- name: TileDiamond
file: ./abis/TileDiamond.json
eventHandlers:
- event: AlchemicaClaimed(indexed uint256,indexed uint256,indexed uint256,uint256,uint256,uint256)
handler: handleAlchemicaClaimed
- event: ChannelAlchemica(indexed uint256,indexed uint256,uint256[4],uint256,uint256)
handler: handleChannelAlchemica
- event: ExitAlchemica(indexed uint256,uint256[])
handler: handleExitAlchemica(indexed uint256,uint256[])
- event: EquipInstallation(uint256,uint256,uint256,uint256)
handler: handleEquipInstallation
- event: InstallationUpgraded(uint256,uint256,uint256,uint256,uint256)
handler: handleInstallationUpgraded
- event: UnequipInstallation(uint256,uint256,uint256,uint256)
handler: handleUnequipInstallation
- event: EquipTile(uint256,uint256,uint256,uint256)
handler: handleEquipTile
- event: UnequipTile(uint256,uint256,uint256,uint256)
handler: handleUnequipTile
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleTransfer
- event: MintParcel(indexed address,indexed uint256)
handler: handleMintParcel
- event: ResyncParcel(uint256)
handler: handleResyncParcel
- event: NFTDisplayStatusUpdated(address,uint256,bool)
handler: handleNFTDisplayStatusUpdated
- event: ParcelAccessRightSet(uint256,uint256,uint256)
handler: handleParcelAccessRightSet
file: ./src/mappings/realm.ts
- kind: ethereum/contract
name: TileDiamond
network: matic
source:
address: "0x9216c31d8146bCB3eA5a9162Dc1702e8AEDCa355"
abi: TileDiamond
startBlock: 27231106
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- MintTileEvent
- TileType
abis:
- name: RealmDiamond
file: ./abis/RealmDiamond.json
- name: InstallationDiamond
file: ./abis/InstallationDiamond.json
- name: TileDiamond
file: ./abis/TileDiamond.json
eventHandlers:
- event: MintTile(indexed address,indexed uint256,uint256)
handler: handleMintTile
- event: MintTiles(indexed address,indexed uint256,uint16)
handler: handleMintTiles
- event: CraftTimeReduced(indexed uint256,uint256)
handler: handleCraftTimeReduced
- event: URI(string,indexed uint256)
handler: handleURI
- event: EditTileType(indexed uint256,(uint8,uint8,bool,uint16,uint32,uint256[4],string))
handler: handleEditTileType
- event: EditDeprecateTime(uint256,uint256)
handler: handleEditDeprecateTime
file: ./src/mappings/tile.ts
- kind: ethereum/contract
name: InstallationDiamond
network: matic
source:
address: "0x19f870bD94A34b3adAa9CaA439d333DA18d6812A"
abi: InstallationDiamond
startBlock: 26540482
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- MintInstallationEvent
- UpgradeInitiatedEvent
- AddInstallationTypeEvent
- EditInstallationTypeEvent
- DeprecateInstallationEvent
abis:
- name: RealmDiamond
file: ./abis/RealmDiamond.json
- name: InstallationDiamond
file: ./abis/InstallationDiamond.json
- name: TileDiamond
file: ./abis/TileDiamond.json
file: ./src/mappings/installation.ts
eventHandlers:
- event: MintInstallation(indexed address,indexed uint256,uint256)
handler: handleMintInstallation
- event: MintInstallations(indexed address,indexed uint256,uint16)
handler: handleMintInstallations
- event: UpgradeInitiated(indexed uint256,uint256,uint256,uint256,uint256,uint256)
handler: handleUpgradeInitiated
- event: AddInstallationType(uint256)
handler: handleAddInstallationType
- event: EditInstallationType(uint256)
handler: handleEditInstallationType
- event: DeprecateInstallation(uint256)
handler: handleDeprecateInstallation
- event: CraftTimeReduced(indexed uint256,uint256)
handler: handleCraftTimeReduced
- event: UpgradeTimeReduced(indexed uint256,indexed uint256,uint256,uint256,uint40)
handler: handleUpgradeTimeReduced
- event: UpgradeFinalized(indexed uint256,uint256,uint256,uint256)
handler: handleUpgradeFinalized
- event: UpgradeQueued(indexed address,indexed uint256,indexed uint256)
handler: handleUpgradeQueued
- event: URI(string,indexed uint256)
handler: handleURI