-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.graphql
More file actions
39 lines (35 loc) · 833 Bytes
/
schema.graphql
File metadata and controls
39 lines (35 loc) · 833 Bytes
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
type AzraelCollateralClaimed @entity {
id: ID!
lendingId: BigInt! # uint256
claimedAt: BigInt! # uint32
}
type AzraelLendingStopped @entity {
id: ID!
lendingId: BigInt! # uint256
stoppedAt: BigInt! # uint32
}
type AzraelLent @entity {
id: ID!
nftAddress: Bytes! # address
tokenId: BigInt! # uint256
lentAmount: Int! # uint8
lendingId: BigInt! # uint256
lenderAddress: Bytes! # address
maxRentDuration: Int! # uint8
dailyRentPrice: Bytes! # bytes4
nftPrice: Bytes! # bytes4
isERC721: Boolean! # bool
paymentToken: Int! # uint8
}
type AzraelRented @entity {
id: ID!
lendingId: BigInt! # uint256
renterAddress: Bytes! # address
rentDuration: Int! # uint8
rentedAt: BigInt! # uint32
}
type AzraelReturned @entity {
id: ID!
lendingId: BigInt! # uint256
returnedAt: BigInt! # uint32
}