This repository has been archived by the owner on Aug 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
75 lines (75 loc) · 2.4 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
specVersion: 0.0.3
description: xdefi-subgraph
repository: https://github.com/xdefilab/xdefi-subgraph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Factory
network: mainnet
source:
address: "0x23C088198347edb873946FCff77E42401a1A93d2"
abi: Factory
startBlock: 12028800
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/mappings/factory.ts
entities:
- XDEFI
abis:
- name: Factory
file: ./abis/XFactory.json
eventHandlers:
- event: LOG_NEW_POOL(indexed address,indexed address)
handler: handleNewPool
templates:
- kind: ethereum/contract
name: Pool
network: mainnet
source:
abi: Pool
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/mappings/pool.ts
entities:
- Pool
- XDEFI
- Swap
abis:
- name: Pool
file: ./abis/XPool.json
- name: XPToken
file: ./abis/XPToken.json
- name: XPTokenBytes
file: ./abis/XPTokenBytes32.json
eventHandlers:
- event: LOG_CALL(indexed bytes4,indexed address,bytes)
topic0: "0x92eefe9b00000000000000000000000000000000000000000000000000000000"
handler: handleSetController
- event: LOG_EXIT_FEE(uint256)
handler: handleSetExitFee
- event: LOG_FINAL(uint256)
handler: handleFinalize
- event: LOG_BIND(indexed address,indexed address,uint256,uint256)
handler: handleBind
- event: LOG_JOIN(indexed address,indexed address,uint256)
handler: handleJoinPool
- event: LOG_EXIT(indexed address,indexed address,uint256)
handler: handleExitPool
- event: LOG_SWAP(indexed address,indexed address,indexed address,uint256,uint256)
handler: handleSwap
- event: LOG_REFER(indexed address,indexed address,indexed address,uint256)
handler: handleRefer
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
- event: UPDATE_FARM(indexed address,bool)
handler: handleUpdateFarm
- event: LOG_UPDATE_SAFU(indexed address,uint256)
handler: handleUpdateSafu
callHandlers:
- function: gulp(address)
handler: handleGulp