-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathschema.graphql
136 lines (124 loc) · 2.43 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
type SpecVersion @entity {
id: ID! #specVersion
blockHeight: BigInt!
}
type Block @entity {
id: ID!
number: Int! @index
hash: String! @index(unique: true)
timestamp: Date! @index(unique: true)
parentHash: String!
stateRoot: String!
extrinsicsRoot: String!
runtimeVersion: Int!
nbExtrinsics: Int!
nbEvents: Int!
author: String @index
sessionId: Int @index
}
type Session @entity {
id: ID!
validators: [String]!
}
type Extrinsic @entity {
id: ID!
block: Block!
txHash: String! @index(unique: true)
module: String! @index
call: String! @index
blockHeight: BigInt! @index
success: Boolean!
isSigned: Boolean!
extrinsicIndex: Int!
hash: String! @index(unique: true)
timestamp: Date! @index
signer: String! @index
signature: String!
fees: String
feesRounded: Float @index
nonce: Int!
argsName: [String]!
argsValue: [String]!
nbEvents: Int!
}
type Event @entity {
id: ID!
block: Block!
extrinsicId: String
module: String! @index
event: String! @index
blockHeight: BigInt! @index
eventIndex: Int!
call: String! @index
argsName: [String]!
argsValue: [String]!
timestamp: Date! @index
}
type Log @entity {
id: ID!
block: Block!
type: String!
engine: String
data: String!
}
type HeaderExtension @entity {
id: ID!
block: Block!
version: String
}
type Commitment @entity {
id: ID!
block: Block!
headerExtension: HeaderExtension!
rows: Int
cols: Int
dataRoot: String @index
commitment: String
}
type AppLookup @entity {
id: ID!
block: Block!
headerExtension: HeaderExtension!
size: Int
index: String
}
type TransferEntity @entity {
id: ID!
blockId: String! @index
blockHash: String!
extrinsicId: String!
timestamp: Date! @index
from: String! @index
to: String! @index
currency: String!
amount: String!
amountRounded: Float! @index
}
type AccountEntity @entity {
id: ID!
validator: Boolean
validatorSessionParticipated: Int
amount: String
amountFrozen: String
amountTotal: String
amountRounded: Float @index
amountFrozenRounded: Float @index
amountTotalRounded: Float @index
createdAt: Date!
updatedAt: Date!
timestampCreation: Date! @index
}
type DataSubmission @entity {
id: ID!
extrinsicId: String!
timestamp: Date! @index
byteSize: Int! @index
appId: Int! @index
signer: String! @index
fees: Float
feesPerMb: Float @index
}
type AccounToUpdateValue @entity {
id: ID!
accounts: [String]!
}