forked from maksim-tolo/dragonereum-subgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
156 lines (156 loc) · 6.2 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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
specVersion: 0.0.2
description: Subgraph for Dragonereum blockchain game
repository: https://github.com/dragonereum/dragonereum-subgraph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: EggStorage
network: matic
source:
address: "0x7418A04cFbA74211303b780C9882e29718b7B9c8"
abi: EggStorage
startBlock: 15794864
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- User
- Egg
abis:
- name: EggStorage
file: ./abis/EggStorage.json
eventHandlers:
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleEggTransfer
file: ./src/index.ts
- kind: ethereum/contract
name: DragonStorage
network: matic
source:
address: "0x531a4eA9451E61aa5d929A8D127f5f706575e1Cf"
abi: DragonStorage
startBlock: 15794864
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- User
- Dragon
abis:
- name: DragonStorage
file: ./abis/DragonStorage.json
eventHandlers:
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleDragonTransfer
file: ./src/index.ts
- kind: ethereum/contract
name: Events
network: matic
source:
address: "0x7F40bCD640A9Fc1D7Fe801B071Eba67d11764797"
abi: Events
startBlock: 15794864
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- User
- UserBattlesStat
- Dragon
- Egg
- DragonTactic
- DragonBattlesStat
- DragonSkill
- DragonSpecialAttack
- DragonSpecialDefense
- DragonSpecialPeacefulSkill
- DragonHealthAndMana
- BattleHealthAndMana
- Auction
- GoldAuction
- Battle
- DragonBattleSnapshot
- GladiatorBattle
abis:
- name: Events
file: ./abis/Events.json
- name: Getter
file: ./abis/Getter.json
blockHandlers:
- handler: handleBlock
eventHandlers:
- event: GenesisEggBought(indexed address,indexed uint256,uint256)
handler: handleGenesisEggBought
- event: EggSentToNest(indexed address,indexed uint256)
handler: handleEggSentToNest
- event: EggHatched(indexed address,indexed uint256,indexed uint256)
handler: handleEggHatched
- event: DragonUpgraded(indexed uint256)
handler: handleDragonUpgraded
- event: EggCreated(indexed address,indexed uint256)
handler: handleEggCreated
- event: DragonOnSale(indexed address,indexed uint256)
handler: handleDragonOnSale
- event: DragonRemovedFromSale(indexed address,indexed uint256)
handler: handleDragonRemovedFromSale
- event: DragonRemovedFromBreeding(indexed address,indexed uint256)
handler: handleDragonRemovedFromBreeding
- event: DragonOnBreeding(indexed address,indexed uint256)
handler: handleDragonOnBreeding
- event: DragonBought(indexed address,indexed address,indexed uint256,uint256)
handler: handleDragonBought
- event: DragonBreedingBought(indexed address,indexed address,indexed uint256,uint256)
handler: handleDragonBreedingBought
- event: EggOnSale(indexed address,indexed uint256)
handler: handleEggOnSale
- event: EggRemovedFromSale(indexed address,indexed uint256)
handler: handleEggRemovedFromSale
- event: EggBought(indexed address,indexed address,indexed uint256,uint256)
handler: handleEggBought
- event: GoldSellOrderCreated(indexed address,uint256,uint256)
handler: handleGoldSellOrderCreated
- event: GoldSellOrderCancelled(indexed address)
handler: handleGoldSellOrderCancelled
- event: GoldSold(indexed address,indexed address,uint256,uint256)
handler: handleGoldSold
- event: GoldBuyOrderCreated(indexed address,uint256,uint256)
handler: handleGoldBuyOrderCreated
- event: GoldBuyOrderCancelled(indexed address)
handler: handleGoldBuyOrderCancelled
- event: GoldBought(indexed address,indexed address,uint256,uint256)
handler: handleGoldBought
- event: DragonNameSet(indexed uint256,bytes32)
handler: handleDragonNameSet
- event: DragonTacticsSet(indexed uint256,uint8,uint8)
handler: handleDragonTacticsSet
- event: UserNameSet(indexed address,bytes32)
handler: handleUserNameSet
- event: BattleEnded(indexed uint256,uint256,uint256,uint256,indexed uint256,indexed uint256,bool,uint256)
handler: handleBattleEnded
- event: BattleHealthAndMana(indexed uint256,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32)
handler: handleBattleHealthAndMana
- event: BattleTacticsAndBuffs(indexed uint256,uint8,uint8,uint8,uint8,uint32[5],uint32[5])
handler: handleBattleTacticsAndBuffs
- event: GladiatorBattleCreated(indexed uint256,indexed address,indexed uint256,uint256,bool)
handler: handleGladiatorBattleCreated
- event: GladiatorBattleOpponentSelected(indexed uint256,indexed uint256)
handler: handleGladiatorBattleOpponentSelected
- event: GladiatorBattleCancelled(indexed uint256)
handler: handleGladiatorBattleCancelled
- event: GladiatorBattleEnded(indexed uint256,uint256,indexed address,indexed address,uint256,bool)
handler: handleGladiatorBattleEnded
- event: SkillSet(indexed uint256)
handler: handleSkillSet
- event: SkillUsed(indexed uint256,indexed uint256)
handler: handleSkillUsed
- event: SkillBought(indexed address,indexed address,uint256,indexed uint256,uint256)
handler: handleSkillBought
- event: SkillOnSale(indexed address,indexed uint256)
handler: handleSkillOnSaleEvent
- event: SkillRemovedFromSale(indexed address,indexed uint256)
handler: handleSkillRemovedFromSaleEvent
file: ./src/index.ts