-
Notifications
You must be signed in to change notification settings - Fork 1
/
schema.graphql
77 lines (66 loc) · 1.51 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 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
period: BigInt
subPeriod: String
blockNumber: BigInt!
}
type DAppReward @entity {
id: ID! # Transaction hash
era: BigInt!
tierId: BigInt!
beneficiary: Account!
amount: BigInt!
}
type PalletInfo @entity {
id: ID! # always 0
currentEra: BigInt
currentPeriod: BigInt
currentSubPeriod: String
}
type DAppStakingEra @entity {
id: ID! # Transaction hash
era: BigInt!
blockNumber: BigInt!
}
type DAppSubPeriod @entity {
id: ID! # Transaction hash
period: BigInt!
subPeriod: String!
blockNumber: BigInt!
}
type RaffleDone @entity {
id: ID! # Transaction hash
era: BigInt!
totalRewards: BigInt!
nbWinners: BigInt!
nbParticipants: BigInt!
totalValue: BigInt!
}
type RaffleSkipped @entity {
id: ID! # Transaction hash
era: 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!
}