-
Notifications
You must be signed in to change notification settings - Fork 1
/
subgraph.yaml
91 lines (91 loc) · 3.21 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
90
91
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
# DAI to USD
- kind: ethereum/contract
name: AccessControlledAggregatorDAItoUSD
network: mumbai
source:
startBlock: 3782887
address: "0x5498BB86BC934c8D34FDA08E81D444153d0D06aD"
abi: AccessControlledAggregator
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
# For Initial Creation of Feed Entity
- RoundDetailsUpdated
- NewRound
- AnswerUpdated
abis:
- name: AccessControlledAggregator
file: ./abis/AccessControlledAggregator.json
eventHandlers:
# For Initial Creation of Feed Entity
- event: RoundDetailsUpdated(indexed uint128,indexed uint32,indexed uint32,uint32,uint32)
handler: handleRoundDetailsUpdated
- event: NewRound(indexed uint256,indexed address,uint256)
handler: handlerNewRound
- event: AnswerUpdated(indexed int256,indexed uint256,uint256)
handler: handleAnswerUpdated
file: ./src/handler.ts
# USDC to USD
- kind: ethereum/contract
name: AccessControlledAggregatorUSDCtoUSD
network: mumbai
source:
startBlock: 3782886
address: "0xFadfF79bA04F169386646a43869B66B39c7E0858"
abi: AccessControlledAggregator
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
# For Initial Creation of Feed Entity
- RoundDetailsUpdated
- NewRound
- AnswerUpdated
abis:
- name: AccessControlledAggregator
file: ./abis/AccessControlledAggregator.json
eventHandlers:
# For Initial Creation of Feed Entity
- event: RoundDetailsUpdated(indexed uint128,indexed uint32,indexed uint32,uint32,uint32)
handler: handleRoundDetailsUpdated
- event: NewRound(indexed uint256,indexed address,uint256)
handler: handlerNewRound
- event: AnswerUpdated(indexed int256,indexed uint256,uint256)
handler: handleAnswerUpdated
file: ./src/handler.ts
# USDT to USD
- kind: ethereum/contract
name: AccessControlledAggregatorUSDTtoUSD
network: mumbai
source:
startBlock: 3782884
address: "0x84b9B910527Ad5C03A9Ca831909E21e236EA7b06"
abi: AccessControlledAggregator
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
# For Initial Creation of Feed Entity
- RoundDetailsUpdated
- NewRound
- AnswerUpdated
abis:
- name: AccessControlledAggregator
file: ./abis/AccessControlledAggregator.json
eventHandlers:
# For Initial Creation of Feed Entity
- event: RoundDetailsUpdated(indexed uint128,indexed uint32,indexed uint32,uint32,uint32)
handler: handleRoundDetailsUpdated
- event: NewRound(indexed uint256,indexed address,uint256)
handler: handlerNewRound
- event: AnswerUpdated(indexed int256,indexed uint256,uint256)
handler: handleAnswerUpdated
file: ./src/handler.ts