-
Notifications
You must be signed in to change notification settings - Fork 7
/
subgraph.yaml
96 lines (95 loc) · 3.17 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
specVersion: 0.0.4
schema:
file: ./dhedge.graphql
dataSources:
- kind: ethereum/contract
name: DHedgeFactory
network: mainnet
source:
address: '0x03D20ef9bdc19736F5e8Baf92D02C8661a5941F7'
abi: DHedgeFactory
startBlock: 11106315
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- DaoAddressSet
- DaoFeeSet
- ExitFeeCooldownSet
- ExitFeeSet
- FundCreated
- MaximumSupportedAssetCountSet
- OwnershipTransferred
- ProxyCreated
abis:
- name: DHedgeFactory
file: ./abis/DHedgeFactory.json
eventHandlers:
- event: DaoAddressSet(address)
handler: handleDaoAddressSet
- event: DaoFeeSet(uint256,uint256)
handler: handleDaoFeeSet
- event: ExitFeeCooldownSet(uint256)
handler: handleExitFeeCooldownSet
- event: ExitFeeSet(uint256,uint256)
handler: handleExitFeeSet
- event: FundCreated(address,bool,string,string,address,uint256,uint256,uint256)
handler: handleFundCreated
- event: MaximumSupportedAssetCountSet(uint256)
handler: handleMaximumSupportedAssetCountSet
- event: OwnershipTransferred(indexed address,indexed address)
handler: handleOwnershipTransferred
- event: ProxyCreated(address)
handler: handleProxyCreated
file: ./src/factory.ts
templates:
- kind: ethereum/contract
name: DHedge
network: mainnet
source:
abi: DHedge
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Approval
- AssetAdded
- AssetRemoved
- Deposit
- Exchange
- ManagerFeeMinted
- ManagerFeeSet
- ManagerUpdated
- PoolPrivacyUpdated
- Transfer
- Withdrawal
- Pool
abis:
- name: DHedge
file: ./abis/DHedge.json
eventHandlers:
- event: Approval(indexed address,indexed address,uint256)
handler: handleApproval
- event: AssetAdded(address,address,bytes32)
handler: handleAssetAdded
- event: AssetRemoved(address,address,bytes32)
handler: handleAssetRemoved
- event: Deposit(address,address,uint256,uint256,uint256,uint256,uint256,uint256)
handler: handleDeposit
- event: Exchange(address,address,bytes32,uint256,bytes32,uint256,uint256)
handler: handleExchange
- event: ManagerFeeMinted(address,address,uint256,uint256,uint256,uint256)
handler: handleManagerFeeMinted
- event: ManagerFeeSet(address,address,uint256,uint256)
handler: handleManagerFeeSet
- event: ManagerUpdated(address,string)
handler: handleManagerUpdated
- event: PoolPrivacyUpdated(bool)
handler: handlePoolPrivacyUpdated
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
- event: Withdrawal(address,address,uint256,uint256,uint256,uint256,uint256,uint256)
handler: handleWithdrawal
file: ./src/dhedge.ts