-
Notifications
You must be signed in to change notification settings - Fork 1
/
schema.graphql
60 lines (51 loc) · 1.12 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
type Account @entity {
id: ID! # account address
stakes: [Stake] @derivedFrom(field: "account") #virtual field
totalStake: BigInt!
rewards: [Reward] @derivedFrom(field: "account") #virtual field
rewardsClaimed: [RewardsClaimed] @derivedFrom(field: "account") #virtual field
totalRewards: BigInt!
totalClaimed: BigInt!
totalPending: BigInt!
}
type Stake @entity {
id: ID! # Extrinsic hash
account: Account!
amount: BigInt!
era: BigInt!
blockNumber: BigInt!
}
type DeveloperReward @entity {
id: ID! # Transaction hash
era: BigInt!
account: Account!
amount: BigInt!
}
type PalletInfo @entity {
id: ID! # always 0
currentEra: BigInt!
}
type DappStakingEra @entity {
id: ID! # Transaction hash
era: BigInt!
blockNumber: BigInt!
}
type RaffleDone @entity {
id: ID! # Transaction hash
era: BigInt!
total_rewards: BigInt!
nb_winners: BigInt!
nb_participants: BigInt!
total_value: BigInt!
}
type Reward @entity {
id: ID! # Transaction hash
account: Account!
era: BigInt!
amount: BigInt!
}
type RewardsClaimed @entity {
id: ID! # Transaction hash
account: Account!
amount: BigInt!
}