1+ /*
2+ * Copyright 2020 The caver-java Authors
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the “License”);
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an “AS IS” BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+
17+ package com .klaytn .caver .methods .response ;
18+
19+ import java .util .Map ;
20+
21+ import org .web3j .protocol .core .Response ;
22+
23+ import com .fasterxml .jackson .annotation .JsonProperty ;
24+
25+ import java .util .List ;
26+
27+ public class RewardsAccumulated extends Response <RewardsAccumulated .RewardsAccumulatedData > {
28+ public static class RewardsAccumulatedData {
29+
30+ @ JsonProperty ("firstBlockTime" )
31+ private String firstBlockTime ;
32+
33+ @ JsonProperty ("lastBlockTime" )
34+ private String lastBlockTime ;
35+
36+ @ JsonProperty ("firstBlock" )
37+ private String firstBlock ;
38+
39+ @ JsonProperty ("lastBlock" )
40+ private String lastBlock ;
41+
42+ @ JsonProperty ("totalMinted" )
43+ private String totalMinted ;
44+
45+ @ JsonProperty ("totalTxFee" )
46+ private String totalTxFee ;
47+
48+ @ JsonProperty ("totalBurntTxFee" )
49+ private String totalBurntTxFee ;
50+
51+ @ JsonProperty ("totalProposerRewards" )
52+ private String totalProposerRewards ;
53+
54+ @ JsonProperty ("totalStakingRewards" )
55+ private String totalStakingRewards ;
56+
57+ @ JsonProperty ("totalKFFRewards" )
58+ private String totalKFFRewards ;
59+
60+ @ JsonProperty ("totalKCFRewards" )
61+ private String totalKCFRewards ;
62+
63+ /**
64+ * mapping from reward recipient to amounts
65+ */
66+ @ JsonProperty ("rewards" )
67+ private Map <String , String > rewards ;
68+
69+ public RewardsAccumulatedData () {}
70+ public RewardsAccumulatedData (
71+ String firstBlockTime ,
72+ String lastBlockTime ,
73+ String firstBlock ,
74+ String lastBlock ,
75+ String totalMinted ,
76+ String totalTxFee ,
77+ String totalBurntTxFee ,
78+ String totalProposerRewards ,
79+ String totalStakingRewards ,
80+ String totalKFFRewards ,
81+ String totalKCFRewards ,
82+ Map <String , String > Rewards
83+ ) {
84+ this .firstBlockTime = firstBlockTime ;
85+ this .lastBlockTime = lastBlockTime ;
86+ this .firstBlock = firstBlock ;
87+ this .lastBlock = lastBlock ;
88+ this .totalMinted = totalMinted ;
89+ this .totalTxFee = totalTxFee ;
90+ this .totalBurntTxFee = totalBurntTxFee ;
91+ this .totalProposerRewards = totalProposerRewards ;
92+ this .totalStakingRewards = totalStakingRewards ;
93+ this .totalKFFRewards = totalKFFRewards ;
94+ this .totalKCFRewards = totalKCFRewards ;
95+ this .rewards = rewards ;
96+ }
97+ }
98+ }
0 commit comments