-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
127 lines (127 loc) · 4.61 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
specVersion: 0.0.5
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: marketplace
network: mumbai
source:
address: "0xd39fa85E38664eFD43ec1F7d5B2b71CD12DC6ce1"
abi: marketplace
startBlock: 36629854
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- AmountReceived
- AmountSent
- AuctionCancelled
- AuctionConfirmed
- AuctionCreated
- AuctionEnded
- OwnershipTransferred
- PlacedBid
abis:
- name: marketplace
file: ./abis/ marketplace.json
eventHandlers:
- event: AmountReceived(address,uint256)
handler: handleAmountReceived
- event: AmountSent(indexed address,indexed uint256)
handler: handleAmountSent
- event: AuctionCancelled(uint256,uint256,address,bool)
handler: handleAuctionCancelled
- event: AuctionConfirmed(uint256,address,uint256,bool)
handler: handleAuctionConfirmed
- event: AuctionCreated(uint256,uint256,address,uint256,uint256,uint256,bool,bool,address,bool)
handler: handleAuctionCreated
- event: AuctionEnded(uint256,address,uint256,bool,bool)
handler: handleAuctionEnded
- event: OwnershipTransferred(indexed address,indexed address)
handler: handleOwnershipTransferred
- event: PlacedBid(uint256,address,uint256,uint256,uint256)
handler: handlePlacedBid
file: ./src/marketplace.ts
- kind: ethereum
name: fisch
network: mumbai
source:
address: "0x916aD713Feeb9ACadA68722b246c93b01dEBcca2"
abi: fisch
startBlock: 36629836
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Approval
- ApprovalForAll
- AssetPromotedToCollateral
- MintedNft
- fischOwnershipTransferred
- Transfer
abis:
- name: fisch
file: ./abis/fisch.json
eventHandlers:
- event: Approval(indexed address,indexed address,indexed uint256)
handler: handleApproval
- event: ApprovalForAll(indexed address,indexed address,bool)
handler: handleApprovalForAll
- event: AssetPromotedToCollateral(uint256,bool)
handler: handleAssetPromotedToCollateral
- event: MintedNft(address,string,string,uint256,uint256,string,uint256,uint256,uint256,string,bool,string,bool)
handler: handleMintedNft
- event: OwnershipTransferred(indexed address,indexed address)
handler: handleOwnershipTransferred
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleTransfer
file: ./src/fisch.ts
- kind: ethereum
name: loan
network: mumbai
source:
address: "0xf96066c652406793da5b6eF86d505c9f46078a5a"
abi: loan
startBlock: 36629896
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- CollateralLiquidated
- FundsAdded
- LoanApproved
- LoanBorrowed
- LoanCancelled
- LoanCreated
- LoanLocked
- LoanRepayed
- LoanUnLocked
- loanOwnershipTransferred
abis:
- name: loan
file: ./abis/loan.json
eventHandlers:
- event: CollateralLiquidated(uint256,uint256,address,address,uint256,address,uint256,uint256,uint256,bool,uint256)
handler: handleCollateralLiquidated
- event: FundsAdded(uint256,uint256,address,uint256)
handler: handleFundsAdded
- event: LoanApproved(uint256,uint256,address,address,uint256,uint256,uint256,bool)
handler: handleLoanApproved
- event: LoanBorrowed(uint256,uint256,uint256,address,address,uint256,uint256,uint256,uint256,uint256,uint256,address,bool,bool)
handler: handleLoanBorrowed
- event: LoanCancelled(uint256,address,uint256,bool)
handler: handleLoanCancelled
- event: LoanCreated(uint256,uint256,uint256,uint256,uint256,uint256,uint256,bool,bool,address,uint256)
handler: handleLoanCreated
- event: LoanLocked(uint256,bool)
handler: handleLoanLocked
- event: LoanRepayed(uint256,uint256,address,address,uint256,uint256,uint256,uint256,uint256,bool)
handler: handleLoanRepayed
- event: LoanUnLocked(uint256,bool)
handler: handleLoanUnLocked
- event: OwnershipTransferred(indexed address,indexed address)
handler: handleOwnershipTransferred
file: ./src/loan.ts