-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph-pangolin.template.yaml
138 lines (137 loc) · 4.51 KB
/
subgraph-pangolin.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
136
137
138
# Generated from mustache template for network: {{network}}
specVersion: 0.0.4
description: Pangolin is a decentralized exchange.
repository: https://github.com/pangolindex/subgraph-pangolin-hedera
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Factory
network: {{network}}
source:
address: "{{PangolinFactory}}"
abi: Factory
startBlock: {{startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/mappings/factory.ts
entities:
- Pair
- Token
- PairLookup
abis:
- name: Factory
file: ./abis/PangolinFactory.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: handleNewPair
- kind: ethereum/contract
name: StakingPositions
network: {{network}}
source:
address: "{{PangolinStakingPositions}}"
abi: PangolinStakingPositions
startBlock: {{startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/mappings/stakingPositions.ts
entities:
- SingleSideStaking
- StakingPosition
abis:
- name: PangolinStakingPositions
file: ./abis/PangolinStakingPositions.json
eventHandlers:
- event: Staked(indexed uint256,indexed uint256,indexed uint256)
handler: handleStaked
- event: Withdrawn(indexed uint256,indexed uint256,indexed uint256)
handler: handleWithdrawn
- event: PeriodEnded()
handler: handlePeriodEnded
- event: RewardAdded(uint256)
handler: handleRewardAdded
- event: PeriodDurationUpdated(uint256)
handler: handlePeriodDurationUpdated
- event: Evicted(indexed uint256,indexed uint256,indexed address,address,bool)
handler: handleEvicted
- event: SetRentInTinyBars(bool,uint256)
handler: handleSetRentInTinyBars
- kind: ethereum/contract
name: PangoChef
network: {{network}}
source:
address: "{{PangoChef}}"
abi: PangoChef
startBlock: {{startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/mappings/pangoChef.ts
entities:
- Farm
- Reward
abis:
- name: PangoChef
file: ./abis/PangoChef.json
- name: RewarderViaMultiplierForPangoChef
file: ./abis/RewarderViaMultiplierForPangoChef.json
eventHandlers:
- event: PoolInitialized(indexed uint256,indexed address,indexed address)
handler: handlePoolInitialized
- event: Staked(indexed uint256,indexed address,indexed uint256,uint256)
handler: handleStaked
- event: Withdrawn(indexed uint256,indexed address,indexed uint256,uint256)
handler: handleWithdrawn
- event: RewarderSet(indexed uint256,indexed address)
handler: handleRewarderSet
- event: PeriodEnded()
handler: handlePeriodEnded
- event: RewardAdded(uint256)
handler: handleRewardAdded
- event: PeriodDurationUpdated(uint256)
handler: handlePeriodDurationUpdated
- event: WeightSet(indexed uint256,uint256)
handler: handleWeightSet
templates:
- kind: ethereum/contract
name: Pair
network: {{network}}
source:
abi: Pair
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/mappings/core.ts
entities:
- Pair
- Token
abis:
- name: Pair
file: ./abis/PangolinPair.json
- name: Factory
file: ./abis/PangolinFactory.json
eventHandlers:
- event: Mint(indexed address,uint256,uint256)
handler: handleMint
- event: LogicalMint(indexed address,uint256)
handler: handleLogicalMint
- event: Burn(indexed address,uint256,uint256,indexed address)
handler: handleBurn
- event: LogicalBurn(indexed address,uint256)
handler: handleLogicalBurn
- event: Swap(indexed address,uint256,uint256,uint256,uint256,indexed address)
handler: handleSwap
- event: Sync(uint112,uint112)
handler: handleSync