-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
54 lines (54 loc) · 1.89 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.4
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: PawnShopContract
network: matic
source:
address: "0x0c9FA52D7Ed12a6316d3738c80931eCbC6C49907"
abi: PawnShopContract
startBlock: 45492576
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- AuctionBidAccepted
- AuctionBidClosed
- AuctionBidOpened
- BidExecuted
- PositionClaimed
- PositionClosed
- PositionOpened
- PositionRedeemed
- UpdateController
abis:
- name: PawnShopContract
file: ./abis/PawnShopContract.json
- name: ERC20
file: ./abis/ERC20Contract.json
- name: ERC721
file: ./abis/ERC721Contract.json
- name: PriceCalculator
file: ./abis/PriceCalculator.json
eventHandlers:
- event: AuctionBidAccepted(indexed address,uint256,uint256)
handler: handleAuctionBidAccepted
- event: AuctionBidClosed(uint256,uint256)
handler: handleAuctionBidClosed
- event: AuctionBidOpened(uint256,uint256,uint256,address)
handler: handleAuctionBidOpened
- event: BidExecuted(uint256,uint256,uint256,address,address)
handler: handleBidExecuted
- event: PositionClaimed(indexed address,uint256)
handler: handlePositionClaimed
- event: PositionClosed(indexed address,uint256)
handler: handlePositionClosed
- event: PositionOpened(indexed address,uint256,address,uint256,uint256,address,uint256,uint256,uint256)
handler: handlePositionOpened
- event: PositionRedeemed(indexed address,uint256)
handler: handlePositionRedeemed
- event: PlatformFeeChanged(uint256,uint256)
handler: handlePlatformFeeChanged
file: ./src/pawn-shop.listener.ts