-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
67 lines (67 loc) · 2.35 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
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Contract
network: mainnet
source:
address: "0x8876819535b48b551c9e97ebc07332c7482b4b2d"
abi: Contract
startBlock: 10956992
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- BuyBaseToken
- ChargeMaintainerFee
- ChargePenalty
- ClaimAssets
- Deposit
- Donate
- OwnershipTransferPrepared
- OwnershipTransferred
- SellBaseToken
- UpdateGasPriceLimit
- UpdateK
- UpdateLiquidityProviderFeeRate
- UpdateMaintainerFeeRate
- Withdraw
- Pair
- Token
abis:
- name: Contract
file: ./abis/Contract.json
- name: ERC20
file: ./abis/ERC20.json
eventHandlers:
- event: BuyBaseToken(indexed address,uint256,uint256)
handler: handleBuyBaseToken
- event: ChargeMaintainerFee(indexed address,bool,uint256)
handler: handleChargeMaintainerFee
- event: ChargePenalty(indexed address,bool,uint256)
handler: handleChargePenalty
- event: ClaimAssets(indexed address,uint256,uint256)
handler: handleClaimAssets
- event: Deposit(indexed address,indexed address,bool,uint256,uint256)
handler: handleDeposit
- event: Donate(uint256,bool)
handler: handleDonate
- event: OwnershipTransferPrepared(indexed address,indexed address)
handler: handleOwnershipTransferPrepared
- event: OwnershipTransferred(indexed address,indexed address)
handler: handleOwnershipTransferred
- event: SellBaseToken(indexed address,uint256,uint256)
handler: handleSellBaseToken
- event: UpdateGasPriceLimit(uint256,uint256)
handler: handleUpdateGasPriceLimit
- event: UpdateK(uint256,uint256)
handler: handleUpdateK
- event: UpdateLiquidityProviderFeeRate(uint256,uint256)
handler: handleUpdateLiquidityProviderFeeRate
- event: UpdateMaintainerFeeRate(uint256,uint256)
handler: handleUpdateMaintainerFeeRate
- event: Withdraw(indexed address,indexed address,bool,uint256,uint256)
handler: handleWithdraw
file: ./src/mapping.ts