-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstore.graphql
58 lines (49 loc) · 1.57 KB
/
store.graphql
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
enum UnderlyingType {
# real underlying that strategy use (LP token, ALM token, asset)
NATIVE
# single asset of strategy we use as underlying here
VIRTUAL_SINGLE
# the first of final strategy assets we use as underlying here
VIRTUAL_EACH_ASSET
}
# Output column headers must match the following : chain_id, timestamp, creation_block_number, underlying_token_address, underlying_token_index, underlying_token_symbol, underlying_token_decimals, receipt_token_address, receipt_token_symbol, receipt_token_decimals, pool_address, pool_symbol
type Pool @entity {
"{vault_address}-{underlying_token_index}"
id: ID!
# Schema fields
chain_id: Int!
timestamp: Int!
creation_block_number: Int!
underlying_token_address: String!
underlying_token_index: Int!
underlying_token_symbol: String!
underlying_token_decimals: Int!
receipt_token_address: String!
receipt_token_symbol: String!
receipt_token_decimals: Int!
pool_address: String!
pool_symbol: String!
# helper fields
underlying_type: UnderlyingType!
strategy: String!
earned: BigDecimal!
earnedSnapshot: BigDecimal!
}
type Strategy @entity {
id: ID!
vault: String!
}
type VaultUser @entity {
"{user_address}-{vault_address}-{underlying_index}"
id: ID!
"{user_address}"
account: String!
"{vault_address}"
vault: String!
"{underlying_index}"
underlying_token_index: Int!
underlying_token_amount: BigDecimal!
underlying_token_amount_usd: BigDecimal!
earned: BigDecimal!
earnedSnapshot: BigDecimal!
}