-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.graphql
81 lines (71 loc) · 1.38 KB
/
schema.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
type ExampleEntity @entity {
id: ID!
count: BigInt!
wallet: Bytes! # address
pool: Bytes! # address
}
type Asset @entity {
id: ID! # TokenAddress_OwnerID
address: Bytes!
name: String
totalVolume: BigInt!
}
type CentroData @entity {
id: ID! #CentroMain Address
totalAssets: [Asset]!
users: BigInt!
wallets: BigInt!
}
type CentroDayData @entity {
id: ID!
date: Int!
totalAssets: [Asset]!
users: BigInt!
wallets: BigInt!
}
type CentroHourData @entity {
id: ID!
hourStartUnix: Int!
totalAssets: [Asset]!
users: BigInt!
wallets: BigInt!
}
type WalletDayData @entity {
id: ID! # Wallet Address + unix time stamp
date: Int!
basis: [Asset]!
assets: [Asset]!
}
type WalletHourData @entity {
id: ID! # Wallet Address + unix time stamp
hourStartUnix: Int!
basis: [Asset]!
assets: [Asset]!
}
type Wallet @entity {
id: ID! # Wallet Address
owner: String!
createdOn: Int! # Unix-time integer
basis: [Asset]!
assets: [Asset]!
byDay: WalletDayData
locked: [ProtocolLock]!
}
interface ProtocolLock {
id: ID! # Protocol Name - wallet address
name: String!
assetsLocked: [Asset]!
assetsEarned: [Asset]!
}
type UbeLock implements ProtocolLock @entity {
id: ID!
name: String!
assetsLocked: [Asset]!
swaps: [Swap]!
}
type Swap @entity {
id: ID! # address-blocknumber-tok1-tok2
blocknumber: Int!
assetIn: Asset!
assetOut: Asset!
}