-
Notifications
You must be signed in to change notification settings - Fork 1
/
subgraph.template.yaml
135 lines (135 loc) · 4.46 KB
/
subgraph.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
specVersion: 0.0.2
schema:
file: ./schema.graphql
templates:
# ============================== IdeaToken ==============================
- kind: ethereum/contract
name: IdeaToken
network: {{ network }}
source:
abi: IdeaToken
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- IdeaToken
- IdeaTokenBalance
- IdeaTokenAllowance
- IdeaMarket
- IdeaTokenPricePoint
- FutureDayValueChange
- BlockHandlerValues
abis:
- name: IdeaToken
file: ./res/abis/IdeaToken.json
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
- event: Approval(indexed address,indexed address,uint256)
handler: handleApproval
file: ./src/IdeaToken.ts
dataSources:
# ============================== IdeaTokenFactory ==============================
- kind: ethereum/contract
name: IdeaTokenFactory
network: {{ network }}
source:
address: "{{ IdeaTokenFactory }}"
abi: IdeaTokenFactory
startBlock: {{ startBlock }}
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- IdeaMarket
- IdeaToken
- IdeaTokenFactory
- IdeaTokenPricePoint
- IdeaTokenVolumePoint
- LockedIdeaTokenAmount
- FutureDayValueChange
- BlockHandlerValues
abis:
- name: IdeaTokenFactory
file: ./res/abis/IdeaTokenFactory.json
blockHandlers:
- handler: handleBlock
eventHandlers:
- event: NewMarket(uint256,string,uint256,uint256,uint256,uint256,uint256,bool,address)
handler: handleNewMarket
- event: NewToken(uint256,uint256,string,address,address)
handler: handleNewToken
- event: NewNameVerifier(uint256,address)
handler: handleNewNameVerifier
- event: OwnershipChanged(address,address)
handler: handleOwnershipChanged
- event: NewTradingFee(uint256,uint256)
handler: handleNewTradingFee
- event: NewPlatformFee(uint256,uint256)
handler: handleNewPlatformFee
file: ./src/IdeaTokenFactory.ts
# ============================== IdeaTokenExchange ==============================
- kind: ethereum/contract
name: IdeaTokenExchange
network: {{ network }}
source:
address: "{{ IdeaTokenExchange }}"
abi: IdeaTokenExchange
startBlock: {{ startBlock }}
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- IdeaToken
- IdeaMarket
- IdeaTokenExchange
- IdeaTokenVolumePoint
- FutureDayValueChange
- BlockHandlerValues
abis:
- name: IdeaTokenExchange
file: ./res/abis/IdeaTokenExchange.json
eventHandlers:
- event: NewTokenOwner(address,address)
handler: handleNewTokenOwner
- event: NewPlatformOwner(uint256,address)
handler: handleNewPlatformOwner
- event: InvestedState(uint256,address,uint256,uint256,uint256,uint256,uint256)
handler: handleInvestedState
- event: TokenInterestRedeemed(address,uint256,uint256)
handler: handleTokenInterestRedeemed
- event: PlatformInterestRedeemed(uint256,uint256,uint256)
handler: handlePlatformInterestRedeemed
- event: TradingFeeRedeemed(uint256)
handler: handleTradingFeeRedeemed
- event: PlatformFeeRedeemed(uint256,uint256)
handler: handlePlatformFeeRedeemed
- event: OwnershipChanged(address,address)
handler: handleOwnershipChanged
file: ./src/IdeaTokenExchange.ts
# ============================== IdeaTokenVault ==============================
- kind: ethereum/contract
name: IdeaTokenVault
network: {{ network }}
source:
address: "{{ IdeaTokenVault }}"
abi: IdeaTokenVault
startBlock: {{ startBlock }}
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- LockedIdeaTokenAmount
- FutureDayValueChange
- BlockHandlerValues
abis:
- name: IdeaTokenVault
file: ./res/abis/IdeaTokenVault.json
eventHandlers:
- event: Locked(address,address,uint256,uint256,uint256)
handler: handleLocked
file: ./src/IdeaTokenVault.ts