-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.rinkeby.yaml
109 lines (109 loc) · 3.67 KB
/
subgraph.rinkeby.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
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Steward
network: rinkeby
source:
address: "0x229Cb219F056A9097b2744594Bc37597380854E8"
abi: Steward
startBlock: 6845273
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/Steward.json
- name: Token
file: ./abis/Token.json
eventHandlers:
# v0 events
- event: LogBuy(indexed address,indexed uint256)
handler: handleLogBuy
- event: LogPriceChange(indexed uint256)
handler: handleLogPriceChange
- event: LogForeclosure(indexed address)
handler: handleLogForeclosure
- event: LogCollection(indexed uint256)
handler: handleLogCollection
- event: LogRemainingDepositUpdate(indexed address,indexed uint256)
handler: handleLogRemainingDepositUpdate
# v0 and v1 events
- event: AddToken(indexed uint256,uint256)
handler: handleAddToken
# 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
# v2 events
- event: AddToken(indexed uint256,uint256,uint256)
handler: handleAddTokenV2
- event: CollectLoyalty(indexed uint256,indexed address,uint256)
handler: handleCollectLoyalty
# 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: rinkeby
# source:
# address: "0x73d3e04eFA1F26861aa80D4b933484Ec2DbDF410"
# abi: Token
# startBlock: 6845273udo
# mapping:
# kind: ethereum/events
# apiVersion: 0.0.4
# language: wasm/assemblyscript
# entities:
# - MinterAdded
# - MinterRemoved
# - Transfer
# - Approval
# - ApprovalForAll
# abis:
# - name: Token
# file: ./abis/Token.json
# eventHandlers:
# - 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