-
Notifications
You must be signed in to change notification settings - Fork 1
/
subgraph.yaml
160 lines (160 loc) · 5.16 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
specVersion: 0.0.5
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: IERC721
network: base
source:
abi: IERC721
startBlock: 12603676
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- transfer
- transaction
- account
abis:
- name: IERC721
file: ./node_modules/@openzeppelin/contracts/build/contracts/IERC721.json
- name: IERC721Metadata
file: ./node_modules/@openzeppelin/contracts/build/contracts/IERC721Metadata.json
- name: Contract721
file: ./abis/Contract721.json
eventHandlers:
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleTransfer
file: ./src/eip721/index.ts
- kind: ethereum
name: Protocol
network: base
source:
address: "0xC14c58b9986279CC6f685e3D51e0367BCFeB2b05"
abi: Protocol
startBlock: 12603676
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- supportedCollection
- protocol
- saleInfo
abis:
- name: Protocol
file: ./abis/Protocol.json
- name: IERC721
file: ./node_modules/@openzeppelin/contracts/build/contracts/IERC721.json
- name: IERC721Metadata
file: ./node_modules/@openzeppelin/contracts/build/contracts/IERC721Metadata.json
- name: Contract721
file: ./abis/Contract721.json
eventHandlers:
- event: CollectionAdded(indexed address,address,uint256)
handler: handleCollectionAdded
- event: CollectionRemoved(indexed address)
handler: handleCollectionRemoval
- event: CollectionUpdated(indexed address,address,uint256)
handler: handleCollectionUpdate
- event: CollectionVerificationStatus(indexed address,uint8,string)
handler: handleCollectionVerification
- event: RevenueWithdrawn(indexed address,uint256)
handler: handleRevenueWithdrawn
- event: protocolFeeUpdated(uint256)
handler: handleFeeUpdate
- event: ProtocolCreated(indexed address,string,uint16,uint16)
handler: handleProtocolCreation
- event: ProtocolRemoved(indexed address)
handler: handleProtocolRemoval
file: ./src/contracts/protocol.ts
- kind: ethereum
name: TokenLocker
network: base
source:
address: "0xA3C32c5F83d1669038baADa2b17db84C7BB15CeF"
abi: TokenLocker
startBlock: 12603676
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- lockId
abis:
- name: TokenLocker
file: ./abis/TokenLocker.json
eventHandlers:
- event: Deposit(indexed bytes32,indexed address,indexed address,address,uint256[],uint256)
handler: handleDeposit
- event: Liquidate(bytes32,address)
handler: handleLiquidation
- event: Withdraw(indexed bytes32)
handler: handleWithdrawal
file: ./src/contracts/tokenlocker.ts
- kind: ethereum
name: P2PLending
network: base
source:
address: "0xe92C6c2Bf27d9d929091dB016104397cFc247292"
abi: P2PLending
startBlock: 12603676
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- loanContract
- loanBid
abis:
- name: P2PLending
file: ./abis/P2PLending.json
eventHandlers:
- event: BidClosed(indexed bytes32,indexed address)
handler: handleCancelledBid
- event: BidOpened(indexed bytes32,indexed address,uint16)
handler: handleNewBid
- event: ContractActive(indexed bytes32,indexed address,uint16,uint256,uint256)
handler: handleContractActive
- event: ContractClosed(indexed bytes32)
handler: handleContractClosed
- event: ContractOpened(indexed bytes32,indexed address,indexed bytes32,uint256,uint16,uint256)
handler: handleContractOpened
- event: Liquidate(indexed bytes32)
handler: handleLiquidation
- event: LoanRepaid(indexed bytes32,uint256)
handler: handleLoansRepaid
- event: LostBid(indexed bytes32,indexed address,uint256)
handler: handleLostBid
- event: UpdateProtocolFees(uint16,uint16)
handler: handleProtocolFeeUpdate
file: ./src/contracts/p2plending.ts
templates:
- name: CollectionMetadata
kind: file/ipfs
mapping:
apiVersion: 0.0.7
language: wasm/assemblyscript
file: ./src/collectionmapping.ts
handler: handleMetadata
entities:
- CollectionMetadata
abis:
- name: Contract721
file: ./abis/Contract721.json
- name: TokenMetadata
kind: file/ipfs
mapping:
apiVersion: 0.0.7
language: wasm/assemblyscript
file: ./src/metamapping.ts
handler: handleMetadata
entities:
- TokenMetadata
- TokenAttribute
abis:
- name: Contract721
file: ./abis/Contract721.json
features:
- fullTextSearch