-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.graphql
More file actions
51 lines (47 loc) · 1.15 KB
/
schema.graphql
File metadata and controls
51 lines (47 loc) · 1.15 KB
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
type AssetsLimitSet @entity(immutable: true) {
id: Bytes!
oldLimit: BigInt! # uint256
newLimit: BigInt! # uint256
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
}
type Deposit @entity(immutable: true) {
id: Bytes!
sender: Bytes! # address
owner: Bytes! # address
assets: BigInt! # uint256
shares: BigInt! # uint256
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
}
type DepositProfit @entity(immutable: true) {
id: Bytes!
caller: Bytes! # address
assets: BigInt! # uint256
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
# custom fields
totalAssets: BigInt! # Result of totalAssets() call
}
type TotalAssetsAdjustment @entity(immutable: true) {
id: Bytes!
oldAssets: BigInt! # uint256
newAssets: BigInt! # uint256
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
}
type Withdraw @entity(immutable: true) {
id: Bytes!
sender: Bytes! # address
receiver: Bytes! # address
owner: Bytes! # address
assets: BigInt! # uint256
shares: BigInt! # uint256
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
}