-
Notifications
You must be signed in to change notification settings - Fork 2
/
subgraph.template.yaml
86 lines (86 loc) · 2.91 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
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: WiseToken
network: {{ network }}
source:
address: '{{ wiseToken.address }}'
abi: WiseToken
startBlock: {{ wiseToken.startBlock }}
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Stake
abis:
- name: WiseToken
file: ./abis/WiseToken.json
eventHandlers:
- event: StakeStart(indexed bytes16,indexed address,indexed address,uint256,uint256,uint256,uint256,uint256,uint256)
handler: handleStakeStart
- event: StakeEnd(indexed bytes16,indexed address,indexed address,uint256,uint256,uint256,uint256,uint256,uint256)
handler: handleStakeEnd
- event: InterestScraped(indexed bytes16,indexed address,uint256,uint256,uint256,uint256,uint256)
handler: handleInterestScraped
- event: NewGlobals(uint256,uint256,uint256,uint256,indexed uint256)
handler: handleNewGlobals
- event: NewSharePrice(uint256,uint256,uint64)
handler: handleNewSharePrice
callHandlers:
- function: giveStatus(address)
handler: handleGiveStatus
file: ./src/mapping-wiseToken.ts
- kind: ethereum/contract
name: LiquidityTransformer
network: {{ network }}
source:
address: '{{ liquidityTransformer.address }}'
abi: LiquidityTransformer
startBlock: {{ liquidityTransformer.startBlock }}
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Transaction
- User
- Reservation
- Referral
- UserReservationDay
- GlobalReservationDay
abis:
- name: LiquidityTransformer
file: ./abis/LiquidityTransformer.json
eventHandlers:
- event: WiseReservation(indexed address,indexed uint256,uint256)
handler: handleWiseReservation
- event: ReferralAdded(indexed address,indexed address,uint256)
handler: handleReferralAdded
- event: GeneratedStaticSupply(indexed uint256,uint256)
handler: handleGeneratedStaticSupply
- event: GeneratedRandomSupply(indexed uint256,uint256)
handler: handleGeneratedRandomSupply
file: ./src/mapping-liquidityTransformer.ts
- kind: ethereum/contract
name: RefundSponsor
network: {{ network }}
source:
address: '{{ refundSponsor.address }}'
abi: RefundSponsor
startBlock: {{ refundSponsor.startBlock }}
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- User
abis:
- name: RefundSponsor
file: ./abis/RefundSponsor.json
eventHandlers:
- event: RefundIssued(address,uint256)
handler: handleRefundIssued
file: ./src/mapping-refundSponsor.ts