-
Notifications
You must be signed in to change notification settings - Fork 9
/
subgraph.polter.template.yaml
164 lines (161 loc) · 9.55 KB
/
subgraph.polter.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
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
157
158
159
160
161
162
specVersion: 0.0.4
# features:
# - grafting
# graft:
# base: QmQ2wyvSmj7fdjtWdKYSNvcLLg9xxoheEAdkYMbiUS7Phu # Subgraph ID of base subgraph
# block: 62782000 # Block number
description: Aavegotchi Core Matic
repository:
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: AavegotchiDiamond
network: "{{network}}"
source:
address: "{{coreAddress}}"
abi: AavegotchiDiamond
startBlock: {{coreStartBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/mappings/polter.ts
entities:
- User
abis:
- name: AavegotchiDiamond
file: ./abis/AavegotchiDiamond.json
# - name: RealmDiamond
# file: ./abis/RealmDiamond.json
eventHandlers:
- event: IncreaseStake(indexed uint256,uint256)
handler: handleIncreaseStake
- event: DecreaseStake(indexed uint256,uint256)
handler: handleDecreaseStake
- event: SpendSkillpoints(indexed uint256,int16[4])
handler: handleSpendSkillpoints
- event: ResetSkillpoints(indexed uint256)
handler: handleResetSkillpoints
- event: EquipWearables(indexed uint256,uint16[16],uint16[16])
handler: handleEquipWearables
- event: EquipDelegatedWearables(indexed uint256,uint256[16],uint256[16])
handler: handleEquipDelegatedWearables
- event: SetAavegotchiName(indexed uint256,string,string)
handler: handleSetAavegotchiName
- event: UseConsumables(indexed uint256,uint256[],uint256[])
handler: handleUseConsumables
- event: GrantExperience(uint256[],uint256[])
handler: handleGrantExperience
- event: AavegotchiInteract(indexed uint256,uint256)
handler: handleAavegotchiInteract
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleTransfer
- event: ERC721ListingAdd(indexed uint256,indexed address,address,uint256,indexed uint256,uint256)
handler: handleERC721ListingAdd
- event: ERC721ExecutedListing(indexed uint256,indexed address,address,address,uint256,indexed uint256,uint256,uint256)
handler: handleERC721ExecutedListing
- event: ERC721ListingCancelled(indexed uint256,uint256,uint256)
handler: handleERC721ListingCancelled
- event: ERC721ListingRemoved(indexed uint256,uint256,uint256)
handler: handleERC721ListingRemoved
- event: ERC1155ListingAdd(indexed uint256,indexed address,address,uint256,indexed uint256,uint256,uint256,uint256)
handler: handleERC1155ListingAdd
- event: ERC1155ExecutedListing(indexed uint256,indexed address,address,address,uint256,indexed uint256,uint256,uint256,uint256)
handler: handleERC1155ExecutedListing
- event: ERC1155ListingCancelled(indexed uint256,uint256,uint256)
handler: handleERC1155ListingCancelled
- event: ERC1155ListingRemoved(indexed uint256,uint256,uint256)
handler: handleERC1155ListingRemoved
- event: UpdateERC1155Listing(indexed uint256,uint256,uint256,uint256)
handler: handleERC1155ListingUpdated
- event: AddItemType((string,string,string,int8[6],bool[16],uint8[],(uint8,uint8,uint8,uint8),uint256,uint256,uint256,uint32,uint8,bool,uint16,bool,uint8,int16,uint32))
handler: handleAddItemType
- event: AddWearableSet((string,uint8[],uint16[],int8[5]))
handler: handleAddWearableSet
- event: PurchaseItemsWithGhst(indexed address,indexed address,uint256[],uint256[],uint256)
handler: handlePurchaseItemsWithGhst
- event: PurchaseItemsWithVouchers(indexed address,indexed address,uint256[],uint256[])
handler: handlePurchaseItemsWithVouchers
- event: MigrateVouchers(indexed address,uint256[],uint256[])
handler: handleMigrateVouchers
- event: UpdateWearableSet(uint256,(string,uint8[],uint16[],int8[5]))
handler: handleUpdateWearableSet
- event: ItemTypeMaxQuantity(uint256[],uint256[])
handler: handleItemTypeMaxQuantity
- event: ExperienceTransfer(indexed uint256,indexed uint256,uint256)
handler: handleExperienceTransfer
- event: ItemModifiersSet(uint256,int8[6],uint8)
handler: handleItemModifiersSet
- event: WearableSlotPositionsSet(uint256,bool[16])
handler: handleWearableSlotPositionsSet
- event: MintPortals(indexed address,indexed address,uint256,uint256,uint256)
handler: handleMintPortals
- event: RemoveExperience(uint256[],uint256[])
handler: handleRemoveExperience
- event: UpdateItemPrice(uint256,uint256)
handler: handleUpdateItemPrice
- event: WhitelistCreated(indexed uint32)
handler: handleWhitelistCreated
- event: WhitelistUpdated(indexed uint32)
handler: handleWhitelistUpdated
- event: WhitelistOwnershipTransferred(indexed uint32,indexed address)
handler: handleWhitelistOwnershipTransferred
- event: GotchiLendingCancel(indexed uint32,uint256)
handler: handleGotchiLendingCancel
- event: ERC1155ExecutedToRecipient(indexed uint256,indexed address,indexed address)
handler: handleERC1155ExecutedToRecipient
- event: ERC721ExecutedToRecipient(indexed uint256,indexed address,indexed address)
handler: handleERC721ExecutedToRecipient
- event: GotchiLendingAdded(indexed uint32,indexed address,indexed uint32,uint96,uint32,uint8[3],address,address,uint32,address[],uint256)
handler: handleGotchiLendingAdded
- event: GotchiLendingClaimed(indexed uint32,indexed address,indexed address,uint32,uint96,uint32,uint8[3],address,address,uint32,address[],uint256[],uint256)
handler: handleGotchiLendingClaimed
- event: GotchiLendingEnded(indexed uint32,indexed address,indexed address,uint32,uint96,uint32,uint8[3],address,address,uint32,address[],uint256)
handler: handleGotchiLendingEnded
- event: GotchiLendingExecuted(indexed uint32,indexed address,indexed address,uint32,uint96,uint32,uint8[3],address,address,uint32,address[],uint256)
handler: handleGotchiLendingExecuted
- event: GotchiLendingCanceled(indexed uint32,indexed address,indexed uint32,uint96,uint32,uint8[3],address,address,uint32,address[],uint256)
handler: handleGotchiLendingCanceled
- event: WhitelistAccessRightSet(indexed uint32,indexed uint256,indexed uint256)
handler: handleWhitelistAccessRightSet
- event: UpdateItemType(indexed uint256,(string,string,string,int8[6],bool[16],uint8[],(uint8,uint8,uint8,uint8),uint256,uint256,uint256,uint32,uint8,bool,uint16,bool,uint8,int16,uint32))
handler: handleUpdateItemType
- event: ERC721ListingWhitelistSet(indexed uint256,uint32)
handler: handleERC721ListingWhitelistSet
- event: ERC721ListingPriceUpdate(indexed uint256,uint256,uint256)
handler: handleERC721ListingPriceUpdate
- event: ERC1155ListingWhitelistSet(indexed uint256,uint32)
handler: handleERC1155ListingWhitelistSet
- event: ERC1155ListingPriceUpdate(indexed uint256,uint256,uint256)
handler: handleERC1155ListingPriceUpdate
- event: GotchiLendingAdded((uint32,address,uint32,uint96,uint32,uint8[3],address,address,uint32,address[],uint256,uint256))
handler: handleGotchiLendingAdded2
- event: GotchiLendingExecuted((uint32,address,address,uint32,uint96,uint32,uint8[3],address,address,uint32,address[],uint256,uint256))
handler: handleGotchiLendingExecuted2
- event: GotchiLendingCancelled((uint32,address,uint32,uint96,uint32,uint8[3],address,address,uint32,address[],uint256,uint256))
handler: handleGotchiLendingCancelled2
- event: GotchiLendingClaimed((uint32,address,address,uint32,uint96,uint32,uint8[3],address,address,uint32,address[],uint256[],uint256,uint256))
handler: handleGotchiLendingClaimed2
- event: GotchiLendingEnded((uint32,address,address,uint32,uint96,uint32,uint8[3],address,address,uint32,address[],uint256,uint256))
handler: handleGotchiLendingEnded2
- event: ERC721BuyOrderAdded(indexed uint256,indexed address,address,uint256,indexed uint256,uint256,uint256,bytes32,uint256)
handler: handleERC721BuyOrderAdded
- event: ERC721BuyOrderExecuted(indexed uint256,indexed address,address,address,uint256,uint256,uint256)
handler: handleERC721BuyOrderExecuted
- event: ERC721BuyOrderCanceled(indexed uint256,uint256)
handler: handleERC721BuyOrderCanceled
- event: RoleGranted(indexed uint256,indexed bytes32,indexed address,uint64,bool,bytes)
handler: handleRoleGranted
- event: RoleRevoked(indexed uint256,indexed bytes32,indexed address)
handler: handleRoleRevoked
- event: TokensCommitted(indexed address,indexed uint256,indexed address,uint256,uint256)
handler: handleTokensCommitted
- event: TokensReleased(indexed uint256)
handler: handleTokensReleased
- event: ERC1155BuyOrderAdd(indexed uint256,indexed address,address,uint256,indexed uint256,uint256,uint256,uint256,uint256)
handler: handleERC1155BuyOrderAdd
- event: ERC1155BuyOrderExecute(indexed uint256,indexed address,address,address,uint256,indexed uint256,uint256,uint256,uint256)
handler: handleERC1155BuyOrderExecute
- event: ERC1155BuyOrderCancel(indexed uint256,uint256)
handler: handleERC1155BuyOrderCancel