-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathschema.graphql
More file actions
109 lines (98 loc) · 2.04 KB
/
Copy pathschema.graphql
File metadata and controls
109 lines (98 loc) · 2.04 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
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
interface ChannelTransaction {
id: ID!
timestamp: Int!
}
type Channel implements ChannelTransaction @entity {
""" channel id """
id: ID!
creator: Bytes!
""" channel id """
channelId: Bytes!
tokenAddr: Bytes!
tokenAmount: BigInt!
validUntil: BigInt!
validators: [Bytes!]!
spec: String!
timestamp: Int!
channelWithdraw: [ChannelWithdraw!] @derivedFrom(field: "channel")
ChannelWithdrawExpired: [ChannelWithdrawExpired!] @derivedFrom(field: "channel")
}
type ChannelWithdrawExpired implements ChannelTransaction @entity {
""" transaction hash + ':' + channeLid + ':' + logIndex """
id: ID!
channel: Channel!
user: Bytes!
amount: BigInt!
timestamp: Int!
}
type ChannelWithdraw implements ChannelTransaction @entity {
""" transaction hash + ':' + user + ':' + logIndex """
id: ID!
user: Bytes!
channel: Channel!
amount: BigInt!
timestamp: Int!
}
interface StakingTransaction {
""" ID transaction hash """
id: ID!
owner: Bytes!
bondId: Bytes!
timestamp: Int!
}
type Bond implements StakingTransaction @entity {
""" ID transaction hash """
id: ID!
bondId: Bytes!
owner: Bytes!
amount: BigInt!
poolId: Bytes!
nonce: BigInt!
slashedAtStart: BigInt!
timestamp: Int!
}
type UnbondRequest implements StakingTransaction @entity {
""" ID transaction hash """
id: ID!
owner: Bytes!
bondId: Bytes!
willUnlock: BigInt!
timestamp: Int!
}
type Unbond implements StakingTransaction @entity {
""" ID transaction hash """
id: ID!
owner: Bytes!
bondId: Bytes!
timestamp: Int!
}
type Slash @entity {
""" ID transaction hash """
id: ID!
poolId: Bytes!
newSlashPts: BigInt!
timestamp: Int!
}
type Identity @entity {
""" id """
id: ID!
timestamp: Int!
}
type IdentityPrivilege @entity {
""" id + address """
id: ID!
identity: Bytes!
address: Bytes!
level: Int!
timestamp: Int!
lastUpdateTimestamp: Int!
}
type IdentityRoutine @entity {
""" id + hash """
id: ID!
identity: Bytes!
hash: Bytes!
authorized: Boolean!
timestamp: Int!
lastUpdateTimestamp: Int!
}