-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
54 lines (54 loc) · 2.58 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
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Contract
network: mainnet
source:
address: "0x60c8572503f739d6BFe592eBAa17c28f9181be80"
abi: Contract
startBlock: 11374556
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Approval #Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}.(`value` is the new allowance).
- Borrow #Emitted when funds are borrowed from pool(borrower Borrower address, amount Amount of funds borrowed from pool, fee Fees collected from this transaction)
- Collected #Emitted when fees are collected(beneficiary Account to receive fees, amount Amount of fees collected)
- Exited #Emitted when someone exits the pool(staker Account exiting, amount Amount unstaking)
- Flushed #Emitted when funds are flushed into curve.fi(currencyAmount Amount of tokens deposited)
- Joined # Emitted when someone joins the pool(staker Account staking, deposited Amount deposited, minted Amount of pool tokens minted)
- JoiningFeeChanged # Emitted when fee is changed(newFee New fee)
- OwnershipTransferred #
- Pulled #Emitted when funds are pulled from curve.fi(yAmount Amount of pool tokens)
- Repaid #Emitted when borrower repays the pool(payer Address of borrower, amount Amount repaid)
- Transfer #Emitted when `value` tokens are moved from one account (`from`) to another (`to`).
abis:
- name: Contract
file: ./abis/Contract.json
eventHandlers:
- event: Approval(indexed address,indexed address,uint256)
handler: handleApproval
- event: Borrow(address,uint256,uint256)
handler: handleBorrow
- event: Collected(indexed address,uint256)
handler: handleCollected
- event: Exited(indexed address,uint256)
handler: handleExited
- event: Flushed(uint256)
handler: handleFlushed
- event: Joined(indexed address,uint256,uint256)
handler: handleJoined
- event: JoiningFeeChanged(uint256)
handler: handleJoiningFeeChanged
- event: OwnershipTransferred(indexed address,indexed address)
handler: handleOwnershipTransferred
- event: Pulled(uint256)
handler: handlePulled
- event: Repaid(indexed address,uint256)
handler: handleRepaid
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
file: ./src/mapping.ts