forked from subquery/subql-dictionary
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathschema.graphql
76 lines (68 loc) · 1.35 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
type SpecVersion @entity {
id: ID! #specVersion
blockHeight: BigInt!
}
type Block @entity{
id: ID!
number: Int!
hash: String! @index(unique:true)
timestamp: Date! @index(unique:true)
parentHash: String!
stateRoot: String!
extrinsicsRoot: String!
runtimeVersion: Int!
nbExtrinsics: 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
description: ExtrinsicDescription!
signer: String! @index
signature: String!
fees: String
feesRounded: Float
nonce: Int!
argsName: [String]!
argsValue: [String]!
nbEvents: Int!
}
type ExtrinsicDescription @entity{
id: ID!
module: String!
call: String!
description: String!
}
type Event @entity {
id: ID!
block: Block!
extrinsicId: String
module: String! @index
event: String! @index
blockHeight: BigInt! @index
eventIndex: Int!
call: String! @index
description: EventDescription!
argsName: [String]!
argsValue: [String]!
}
type EventDescription @entity{
id: ID!
module: String!
call: String!
description: String!
}