-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
90 lines (82 loc) · 2.4 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
type ARECBank @entity {
id: ID!
timeTrx: String!
blockHeight: String!
numARTTokens: Int!
ARTTokens: [Bytes!]!
}
type ARTToken @entity {
id: ID!
numPaymentToken: Int!
totalAmountDeposit: BigInt!
totalAmountSold: BigInt!
paymentTokens: [Bytes!]!
}
type ARTTokenSale @entity {
id: ID!
salePrices: BigInt!
timesOfSale: BigInt!
saleIncomes: BigInt!
withdrawValues: BigInt!
}
type Token @entity {
id: ID!
symbol: String!
name: String!
decimals: BigInt!
totalSupply: BigInt!
}
type PlantStakeInfo @entity {
id: ID!
stakeUserCounter: Int!
stakeTxCounter: Int!
allStakeAmount: BigInt!
allRewardAmount: BigInt!
}
type PlantStakeUser @entity {
id: ID!
stakeTxCounter: Int!
allStakeAmount: BigInt!
allRewardAmount: BigInt!
}
type PlantStakeTx @entity {
id: ID!
stakeTxSN: Int!
staker: String!
nonce: Int!
stakeType: String!
txid: String!
cspMiner: String!
amount: BigInt!
reward: BigInt!
}
type StakingRewardsInfo @entity {
id: ID!
periodStart: Int!
periodEnd: Int!
lastUpdateTime: Int!
lastBlockHeight: BigInt!
totalStakes: BigInt!
totalRewardStakes: BigInt!
totalNormalStakes: BigInt!
totalBoostStakes: BigInt!
rewardRate: BigInt!
rewardPerStakeLast: BigInt!
capMinerBoost: BigInt!
rateBoost: Int!
minerStaked: Int!
stakeCounter: Int!
unstakeCounter: Int!
}
type StakingRewardsUser @entity {
id: ID!
lastTimeUser: Int!
lastBlockHeightUser: BigInt!
totalStakesUser: BigInt!
totalRewardStakesUser: BigInt!
totalNormalStakesUser: BigInt!
totalBoostStakesUser: BigInt!
minerStakedUser: Int!
stakeCounterUser: Int!
unstakeCounterUser: Int!
}