-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
120 lines (120 loc) · 3.63 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
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
specVersion: 0.0.2
description: Capital DEX is a decentralized legally protected exchange primarily for security tokens.
repository: https://github.com/CurioTeam/capital-dex-subgraph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: EthUsdRate
network: mainnet
source:
address: '0x37bC7498f4FF12C19678ee8fE19d713b87F6a9e6'
abi: AggregatorInterface
startBlock: 12382429
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/mappings/rates/ethusd.ts
entities: [ ]
abis:
- name: AggregatorInterface
file: ./node_modules/@chainlink/contracts/abi/v0.7/AggregatorInterface.json
eventHandlers:
- event: AnswerUpdated(indexed int256,indexed uint256,uint256)
handler: handleAnswerUpdated
- kind: ethereum/contract
name: ChfUsdRate
network: mainnet
source:
address: '0x7C8719f3683585A242a67c73F6f3C98362004Da4'
abi: AggregatorInterface
startBlock: 12382429
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/mappings/rates/chfusd.ts
entities: [ ]
abis:
- name: AggregatorInterface
file: ./node_modules/@chainlink/contracts/abi/v0.7/AggregatorInterface.json
eventHandlers:
- event: AnswerUpdated(indexed int256,indexed uint256,uint256)
handler: handleAnswerUpdated
- kind: ethereum/contract
name: CapitalDexFactory
network: mainnet
source:
address: '0x03407772F5EBFB9B10Df007A2DD6FFf4EdE47B53'
abi: Factory
startBlock: 11529924
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/mappings/factory.ts
entities:
- Pair
- Token
abis:
- name: Factory
file: ./abis/factory.json
- name: ERC20
file: ./abis/ERC20.json
- name: ERC20SymbolBytes
file: ./abis/ERC20SymbolBytes.json
- name: ERC20NameBytes
file: ./abis/ERC20NameBytes.json
eventHandlers:
- event: PairCreated(indexed address,indexed address,address,uint256)
handler: handleNewCapitalDexPair
- kind: ethereum/contract
name: Ct1UsdRate
network: mainnet
source:
address: '0x6c008f90527Eb9Fc4762b331C5A8A1fEAe2542C9'
abi: Spotter
startBlock: 12494329
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/mappings/rates/ct1usd.ts
entities: [ ]
abis:
- name: Spotter
file: ./abis/spotter.json
eventHandlers:
- event: Poke(bytes32,bytes32,uint256)
handler: handlePoke
templates:
- kind: ethereum/contract
name: Pair
network: mainnet
source:
abi: Pair
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/mappings/core.ts
entities:
- Pair
- Token
abis:
- name: Pair
file: ./abis/pair.json
- name: Factory
file: ./abis/factory.json
eventHandlers:
- event: Mint(indexed address,uint256,uint256)
handler: handleMint
- event: Burn(indexed address,uint256,uint256,indexed address)
handler: handleBurn
- event: Swap(indexed address,uint256,uint256,uint256,uint256,indexed address)
handler: handleSwap
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
- event: Sync(uint112,uint112)
handler: handleSync