-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.mumbai.yaml
93 lines (93 loc) · 2.92 KB
/
subgraph.mumbai.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
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Steward
network: mumbai
source:
address: "0xE44056eff470b1e505c3776601685c97A6966887"
abi: Steward
startBlock: 6333145
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- LogBuy
- LogPriceChange
- LogForeclosure
- LogCollection
- LogRemainingDepositUpdate
- AddToken
- Buy
- PriceChange
- Foreclosure
- RemainingDepositUpdate
- CollectPatronage
- CollectLoyalty
- ArtistCommission
- AddTokenV3
- UpgradeToV3
abis:
- name: Steward
file: ./abis/matic/WildcardSteward_v3_matic.json
- name: Token
file: ./abis/matic/ERC721Patronage_v1.json
eventHandlers:
# v1 and v2 events
- event: Buy(indexed uint256,indexed address,uint256)
handler: handleBuy
- event: PriceChange(indexed uint256,uint256)
handler: handlePriceChange
# - event: Foreclosure(indexed address)
# handler: handleForeclosure
- event: RemainingDepositUpdate(indexed address,uint256)
handler: handleRemainingDepositUpdate
- event: CollectPatronage(indexed uint256,indexed address,uint256,uint256)
handler: handleCollectPatronage
# v3 events
- event: AddTokenV3(indexed uint256,uint256,uint256)
handler: handleAddTokenV3
# - event: CollectLoyalty(indexed address, uint256)
# handler: handleCollectLoyaltyV3
# - event: ArtistCommission(uint256 indexed,address,uint256)
- event: UpgradeToV3()
handler: handleUpgradeToV3
# handler: handleArtistCommission
file: ./src/steward.ts
- kind: ethereum/contract
name: Token
network: mumbai
source:
address: "0x0bDD24C8A2173Bb93ee8AbBF1C00b3cd846e4BC7"
abi: Token
startBlock: 6333145
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Init
- MinterAdded
- MinterRemoved
- Transfer
- Approval
- ApprovalForAll
abis:
- name: Token
file: ./abis/matic/ERC721Patronage_v1.json
eventHandlers:
- event: Init()
handler: handleERC721Init
- event: MinterAdded(indexed address)
handler: handleMinterAdded
- event: MinterRemoved(indexed address)
handler: handleMinterRemoved
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleTransfer
- event: Approval(indexed address,indexed address,indexed uint256)
handler: handleApproval
- event: ApprovalForAll(indexed address,indexed address,bool)
handler: handleApprovalForAll
file: ./src/token.ts