-
Notifications
You must be signed in to change notification settings - Fork 2
/
subgraph.yaml
89 lines (88 loc) · 2.93 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
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: CrowdfundFactory
network: mainnet
source:
address: "0x224B867bA9dB850671f5a0Fc6B75A2A825Ce8e19"
abi: CrowdfundFactory
startBlock: 12812000 #12814079 #12814081
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- Crowdfund
- EditionsContract
abis:
- name: CrowdfundFactory
file: ./abis/CrowdfundFactory.json
- name: TieredCrowdfundProxy
file: ./abis/TieredCrowdfundProxy.json
eventHandlers:
- event: CrowdfundDeployed(address,string,string,address)
handler: handleCrowdfundDeployed
file: ./src/mappings/crowdfundfactory.ts
templates:
- kind: ethereum/contract
name: CrowdfundLogic
network: mainnet
source:
abi: CrowdfundLogic
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
file: ./src/mappings/crowdfundlogic.ts
entities:
- Contribution
- Contributor
- Crowdfund
abis:
- name: CrowdfundLogic
file: ./abis/CrowdfundLogic.json
- name: TieredCrowdfundProxy
file: ./abis/TieredCrowdfundProxy.json
eventHandlers:
# - event: Approval(indexed address,indexed address,uint256)
# handler: handleApproval
# - event: BidAccepted(uint256)
# handler: handleBidAccepted
- event: Contribution(address,uint256)
handler: handleContribution
- event: FundingClosed(uint256,uint256)
handler: handleFundingClosed
# - event: Redeemed(address,uint256)
# handler: handleRedeemed
# - event: Transfer(indexed address,indexed address,uint256)
# handler: handleTransfer
- kind: ethereum/contract
name: CrowdfundEditions
network: mainnet
source:
abi: CrowdfundEditions
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
file: ./src/mappings/editions.ts
entities:
- Contributor
- Crowdfund
- Edition
- EditionContribution
abis:
- name: CrowdfundEditions
file: ./abis/CrowdfundEditions.json
eventHandlers:
# - event: Approval(indexed address,indexed address,indexed uint256)
# - event: ApprovalForAll(indexed address,indexed address,bool)
- event: EditionCreated(uint256,uint256,address,indexed uint256,bytes32)
handler: handleEditionCreated
# - event: EditionCreatorChanged(indexed address,indexed address)
- event: EditionPurchased(indexed uint256,indexed uint256,uint256,uint256,address,address)
handler: handleEditionPurchased
# - event: OwnershipTransferred(indexed address,indexed address)
# - event: Transfer(indexed address,indexed address,indexed uint256)