-
Notifications
You must be signed in to change notification settings - Fork 5
/
schema.graphql
76 lines (58 loc) · 1.57 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 Block @entity {
id: ID!
number: BigInt
timestamp: Date
parentHash: String
specVersion: Int
extrinsics: [Extrinsic] @derivedFrom(field: "block")
}
type Extrinsic @entity {
id: ID!
method: String
section: String
args: String
signerId: String
nonce: BigInt
timestamp: Date
signature: String
tip: BigInt
isSigned: Boolean
isSuccess: Boolean
block: Block #create relation to block
}
type MultisigAccount @entity {
id: ID!
threshold: Int!
members: [String!]!
# confirmed: [ExecutedMultisig] @derivedFrom(field: "multisigAccount")
}
type MultisigRecord @entity {
id: ID! # multisigAccount-blockHeight-extrinsicIdx
createExtrinsicIdx: String! # blockHeight-extrinsicIdx
module: String!
method: String!
multisigAccount: MultisigAccount!
timestamp: Date
block: Block!
confirmBlock: Block
status: String! # default/cancelled/confirmed
confirmExtrinsicIdx: String
cancelExtrinsicIdx: String
approveRecords: [ApproveRecord] @derivedFrom(field: "multisigRecord")
cancelRecords: [CancelRecord] @derivedFrom(field: "multisigRecord")
}
type ApproveRecord @entity {
id: ID! # accountId-blockHeight-extrinsicIdx
multisigRecord: MultisigRecord!
account: String! # approve account address
approveTimepoint: String! # blockHeight-extrinsicIdx
approveTimestamp: String!
approveType: String!
}
type CancelRecord @entity {
id: ID! # accountId-blockHeight-extrinsicIdx
multisigRecord: MultisigRecord!
account: String! # approve account address
cancelTimepoint: String! # blockHeight-extrinsicIdx
cancelTimestamp: String!
}