-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.graphql
More file actions
63 lines (48 loc) · 1.28 KB
/
schema.graphql
File metadata and controls
63 lines (48 loc) · 1.28 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
52
53
54
55
56
57
58
59
60
61
62
63
#
# Provides information about an Ethereum account
#
type Account @entity {
" Equals to: <accountAddress>"
id: ID!
" Account address "
address: Bytes!
" Token balances that this account holds "
balances: [AccountBalance!]! @derivedFrom(field: "account")
}
#
# Current token balance of a particular Ethereum account
#
type AccountBalance @entity {
" Equals to: <accountAddress>-<tokenAddress>"
id: ID!
" Account address "
account: Account!
" Current account balance "
amount: BigDecimal!
" Block number in which the balance was last modified "
block: BigInt
" Last modified timestamp in seconds "
modified: BigInt
" Hash of the last transaction that modified the balance "
transaction: Bytes
}
#
# Token balance of a particular Ethereum account in a certain timestamp. This entity is used to
# provide information about evolution of account balances
#
type AccountBalanceSnapshot @entity {
" Equals to: <accountAddress>-<tokenAddress>-<timestamp>"
id: ID!
" Account address "
account: Account!
" Account balance "
amount: BigDecimal!
# TODO: Add description and check if could be non-optional
#event: TokenEvent
" Block number "
block: BigInt!
" Timestamp in seconds "
timestamp: BigInt!
" Transaction hash "
transaction: Bytes!
}