-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.maitc-test-on-goerli.yaml
93 lines (93 loc) · 2.92 KB
/
subgraph.maitc-test-on-goerli.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: goerli
source:
address: "0xF26F8B2c178a0DeBB176c6b18e3F6d243fEEf828"
abi: Steward
startBlock: 3602092
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: goerli
source:
address: "0x886fb500144943D0593467fE19DcaC2309F0b7B6"
abi: Token
startBlock: 3602092
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