@@ -59,6 +59,7 @@ type bucket struct {
59
59
candidate string
60
60
stakedAmount string
61
61
stakedDuration uint32
62
+ autoStake bool
62
63
createTime string
63
64
stakeStartTime string
64
65
unstakeStartTime string
@@ -83,6 +84,7 @@ func newBucket(bucketpb *iotextypes.VoteBucket) (*bucket, error) {
83
84
candidate : bucketpb .CandidateAddress ,
84
85
stakedAmount : util .RauToString (amount , util .IotxDecimalNum ),
85
86
stakedDuration : bucketpb .StakedDuration ,
87
+ autoStake : bucketpb .AutoStake ,
86
88
createTime : ptypes .TimestampString (bucketpb .CreateTime ),
87
89
stakeStartTime : ptypes .TimestampString (bucketpb .StakeStartTime ),
88
90
unstakeStartTime : unstakeStartTimeFormat ,
@@ -97,6 +99,7 @@ func (b *bucket) String() string {
97
99
lines = append (lines , fmt .Sprintf ("candidate: %s" , b .candidate ))
98
100
lines = append (lines , fmt .Sprintf ("stakedAmount: %s IOTX" , b .stakedAmount ))
99
101
lines = append (lines , fmt .Sprintf ("stakedDuration: %d days" , b .stakedDuration ))
102
+ lines = append (lines , fmt .Sprintf ("autoStake: %v" , b .autoStake ))
100
103
lines = append (lines , fmt .Sprintf ("createTime: %s" , b .createTime ))
101
104
lines = append (lines , fmt .Sprintf ("stakeStartTime: %s" , b .stakeStartTime ))
102
105
lines = append (lines , fmt .Sprintf ("unstakeStartTime: %s" , b .unstakeStartTime ))
0 commit comments