-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsubgraph.yaml
108 lines (108 loc) · 3.09 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
specVersion: 0.0.5
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: factory
network: base-testnet
source:
address: "0x96356d414a925FC98bEe2e1954bab6971FF99825"
abi: factory
startBlock: 9141195
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- AdminChanged
- BeaconUpgraded
- Upgraded
abis:
- name: factory
file: ./abis/factory.json
- name: vault
file: ./abis/vault.json
- name: ERC20
file: ./abis/erc20.json
- name: ERC20BYTES
file: ./abis/erc20Bytes.json
eventHandlers:
- event: CreateVault(indexed uint256,address[],address,uint256,string,address)
handler: handleCreateVault
- event: UpdatedAcceptedToken(address)
handler: handleUpdatedAcceptedToken
- event: UpdatedFee(uint64,uint64)
handler: handleUpdatedFee
- event: UpdatedTierData((uint256,uint64)[])
handler: handleUpdatedTierData
file: ./src/factory.ts
- kind: ethereum
name: treasury
network: base-testnet
source:
address: "0x7BBC140F4C46baE7358d7283dd778c716E4eA1b5"
abi: treasury
startBlock: 9141082
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- treasuryAdminChanged
- treasuryBeaconUpgraded
- FundWithdrawn
- Initialized
- RoleAdminChanged
- RoleGranted
- RoleRevoked
- treasuryUpgraded
abis:
- name: treasury
file: ./abis/treasury.json
- name: ERC20
file: ./abis/erc20.json
- name: ERC20BYTES
file: ./abis/erc20Bytes.json
eventHandlers:
- event: FundWithdrawn(address,address,uint256)
handler: handleFundWithdrawn
file: ./src/treasury.ts
templates:
- name: Vault
kind: ethereum/contract
network: base-testnet
source:
abi: vault
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
file: ./src/vault.ts
entities:
- Vault
abis:
- name: vault
file: ./abis/vault.json
- name: ERC20
file: ./abis/erc20.json
- name: ERC20BYTES
file: ./abis/erc20Bytes.json
eventHandlers:
- event: AdminWithdraw(address,uint256)
handler: handleAdminWithdraw
- event: CopyTrade(uint256[])
handler: handleCopyTrade
- event: FeeDistribution(uint256,uint256)
handler: handleFeeDistribution
- event: Invest(address,uint256)
handler: handleInvest
- event: Paused(address)
handler: handlePaused
- event: Purchased(uint256[])
handler: handlePurchased
- event: Unpaused(address)
handler: handleUnpaused
- event: Withdraw(address,uint256,uint256)
handler: handleWithdraw
- event: WithdrawTrade(address,uint256,uint256[])
handler: handleWithdrawTrade