@@ -27,12 +27,15 @@ message CommissionRates {
27
27
option (gogoproto.equal ) = true ;
28
28
option (gogoproto.goproto_stringer ) = false ;
29
29
30
+ // rate is the commission rate charged to delegators, as a fraction.
30
31
string rate = 1 [(gogoproto.customtype ) = "github.com/cosmos/cosmos-sdk/types.Dec" , (gogoproto.nullable ) = false ];
32
+ // max_rate defines the maximum commission rate which validator can ever charge, as a fraction.
31
33
string max_rate = 2 [
32
34
(gogoproto.moretags ) = "yaml:\"max_rate\"" ,
33
35
(gogoproto.customtype ) = "github.com/cosmos/cosmos-sdk/types.Dec" ,
34
36
(gogoproto.nullable ) = false
35
37
];
38
+ // max_change_rate defines the maximum daily increase of the validator commission, as a fraction.
36
39
string max_change_rate = 3 [
37
40
(gogoproto.moretags ) = "yaml:\"max_change_rate\"" ,
38
41
(gogoproto.customtype ) = "github.com/cosmos/cosmos-sdk/types.Dec" ,
@@ -45,7 +48,9 @@ message Commission {
45
48
option (gogoproto.equal ) = true ;
46
49
option (gogoproto.goproto_stringer ) = false ;
47
50
51
+ // commission_rates defines the initial commission rates to be used for creating a validator.
48
52
CommissionRates commission_rates = 1 [(gogoproto.embed ) = true , (gogoproto.nullable ) = false ];
53
+ // update_time is the last time the commission rate was changed.
49
54
google.protobuf.Timestamp update_time = 2
50
55
[(gogoproto.nullable ) = false , (gogoproto.stdtime ) = true , (gogoproto.moretags ) = "yaml:\"update_time\"" ];
51
56
}
@@ -55,10 +60,15 @@ message Description {
55
60
option (gogoproto.equal ) = true ;
56
61
option (gogoproto.goproto_stringer ) = false ;
57
62
63
+ // moniker defines a human-readable name for the validator.
58
64
string moniker = 1 ;
65
+ // identity defines an optional identity signature (ex. UPort or Keybase).
59
66
string identity = 2 ;
67
+ // website defines an optional website link.
60
68
string website = 3 ;
69
+ // security_contact defines an optional email for security contact.
61
70
string security_contact = 4 [(gogoproto.moretags ) = "yaml:\"security_contact\"" ];
71
+ // details define other optional details.
62
72
string details = 5 ;
63
73
}
64
74
@@ -75,22 +85,33 @@ message Validator {
75
85
option (gogoproto.goproto_stringer ) = false ;
76
86
option (gogoproto.goproto_getters ) = false ;
77
87
88
+ // operator_address defines the address of the validator's operator; bech encoded in JSON.
78
89
string operator_address = 1 [(gogoproto.moretags ) = "yaml:\"operator_address\"" ];
90
+ // consensus_pubkey is the consensus public key of the validator, as a Protobuf Any.
79
91
google.protobuf.Any consensus_pubkey = 2
80
92
[(cosmos_proto.accepts_interface ) = "cosmos.crypto.PubKey", (gogoproto.moretags) = "yaml:\"consensus_pubkey\"" ];
93
+ // jailed defined whether the validator has been jailed from bonded status or not.
81
94
bool jailed = 3 ;
95
+ // status is the validator status (bonded/unbonding/unbonded).
82
96
BondStatus status = 4 ;
97
+ // tokens define the delegated tokens (incl. self-delegation).
83
98
string tokens = 5 [(gogoproto.customtype ) = "github.com/cosmos/cosmos-sdk/types.Int" , (gogoproto.nullable ) = false ];
99
+ // delegator_shares defines total shares issued to a validator's delegators.
84
100
string delegator_shares = 6 [
85
101
(gogoproto.moretags ) = "yaml:\"delegator_shares\"" ,
86
102
(gogoproto.customtype ) = "github.com/cosmos/cosmos-sdk/types.Dec" ,
87
103
(gogoproto.nullable ) = false
88
104
];
105
+ // description defines the description terms for the validator.
89
106
Description description = 7 [(gogoproto.nullable ) = false ];
107
+ // unbonding_height defines, if unbonding, the height at which this validator has begun unbonding.
90
108
int64 unbonding_height = 8 [(gogoproto.moretags ) = "yaml:\"unbonding_height\"" ];
109
+ // unbonding_time defines, if unbonding, the min time for the validator to complete unbonding.
91
110
google.protobuf.Timestamp unbonding_time = 9
92
111
[(gogoproto.nullable ) = false , (gogoproto.stdtime ) = true , (gogoproto.moretags ) = "yaml:\"unbonding_time\"" ];
112
+ // commission defines the commission parameters.
93
113
Commission commission = 10 [(gogoproto.nullable ) = false ];
114
+ // min_self_delegation is the validator's self declared minimum self delegation.
94
115
string min_self_delegation = 11 [
95
116
(gogoproto.moretags ) = "yaml:\"min_self_delegation\"" ,
96
117
(gogoproto.customtype ) = "github.com/cosmos/cosmos-sdk/types.Int" ,
@@ -164,8 +185,11 @@ message Delegation {
164
185
option (gogoproto.goproto_getters ) = false ;
165
186
option (gogoproto.goproto_stringer ) = false ;
166
187
188
+ // delegator_address is the bech32-encoded address of the delegator.
167
189
string delegator_address = 1 [(gogoproto.moretags ) = "yaml:\"delegator_address\"" ];
190
+ // validator_address is the bech32-encoded address of the validator.
168
191
string validator_address = 2 [(gogoproto.moretags ) = "yaml:\"validator_address\"" ];
192
+ // shares define the delegation shares received.
169
193
string shares = 3 [(gogoproto.customtype ) = "github.com/cosmos/cosmos-sdk/types.Dec" , (gogoproto.nullable ) = false ];
170
194
}
171
195
@@ -176,8 +200,11 @@ message UnbondingDelegation {
176
200
option (gogoproto.goproto_getters ) = false ;
177
201
option (gogoproto.goproto_stringer ) = false ;
178
202
203
+ // delegator_address is the bech32-encoded address of the delegator.
179
204
string delegator_address = 1 [(gogoproto.moretags ) = "yaml:\"delegator_address\"" ];
205
+ // validator_address is the bech32-encoded address of the validator.
180
206
string validator_address = 2 [(gogoproto.moretags ) = "yaml:\"validator_address\"" ];
207
+ // entries are the unbonding delegation entries.
181
208
repeated UnbondingDelegationEntry entries = 3 [(gogoproto.nullable ) = false ]; // unbonding delegation entries
182
209
}
183
210
@@ -186,14 +213,18 @@ message UnbondingDelegationEntry {
186
213
option (gogoproto.equal ) = true ;
187
214
option (gogoproto.goproto_stringer ) = false ;
188
215
216
+ // creation_height is the height which the unbonding took place.
189
217
int64 creation_height = 1 [(gogoproto.moretags ) = "yaml:\"creation_height\"" ];
218
+ // completion_time is the unix time for unbonding completion.
190
219
google.protobuf.Timestamp completion_time = 2
191
220
[(gogoproto.nullable ) = false , (gogoproto.stdtime ) = true , (gogoproto.moretags ) = "yaml:\"completion_time\"" ];
221
+ // initial_balance defines the tokens initially scheduled to receive at completion.
192
222
string initial_balance = 3 [
193
223
(gogoproto.customtype ) = "github.com/cosmos/cosmos-sdk/types.Int" ,
194
224
(gogoproto.nullable ) = false ,
195
225
(gogoproto.moretags ) = "yaml:\"initial_balance\""
196
226
];
227
+ // balance defines the tokens to receive at completion.
197
228
string balance = 4 [(gogoproto.customtype ) = "github.com/cosmos/cosmos-sdk/types.Int" , (gogoproto.nullable ) = false ];
198
229
}
199
230
@@ -202,14 +233,18 @@ message RedelegationEntry {
202
233
option (gogoproto.equal ) = true ;
203
234
option (gogoproto.goproto_stringer ) = false ;
204
235
236
+ // creation_height defines the height which the redelegation took place.
205
237
int64 creation_height = 1 [(gogoproto.moretags ) = "yaml:\"creation_height\"" ];
238
+ // completion_time defines the unix time for redelegation completion.
206
239
google.protobuf.Timestamp completion_time = 2
207
240
[(gogoproto.nullable ) = false , (gogoproto.stdtime ) = true , (gogoproto.moretags ) = "yaml:\"completion_time\"" ];
241
+ // initial_balance defines the initial balance when redelegation started.
208
242
string initial_balance = 3 [
209
243
(gogoproto.customtype ) = "github.com/cosmos/cosmos-sdk/types.Int" ,
210
244
(gogoproto.nullable ) = false ,
211
245
(gogoproto.moretags ) = "yaml:\"initial_balance\""
212
246
];
247
+ // shares_dst is the amount of destination-validator shares created by redelegation.
213
248
string shares_dst = 4
214
249
[(gogoproto.customtype ) = "github.com/cosmos/cosmos-sdk/types.Dec" , (gogoproto.nullable ) = false ];
215
250
}
@@ -221,9 +256,13 @@ message Redelegation {
221
256
option (gogoproto.goproto_getters ) = false ;
222
257
option (gogoproto.goproto_stringer ) = false ;
223
258
259
+ // delegator_address is the bech32-encoded address of the delegator.
224
260
string delegator_address = 1 [(gogoproto.moretags ) = "yaml:\"delegator_address\"" ];
261
+ // validator_src_address is the validator redelegation source operator address.
225
262
string validator_src_address = 2 [(gogoproto.moretags ) = "yaml:\"validator_src_address\"" ];
263
+ // validator_dst_address is the validator redelegation destination operator address.
226
264
string validator_dst_address = 3 [(gogoproto.moretags ) = "yaml:\"validator_dst_address\"" ];
265
+ // entries are the redelegation entries.
227
266
repeated RedelegationEntry entries = 4 [(gogoproto.nullable ) = false ]; // redelegation entries
228
267
}
229
268
@@ -232,11 +271,16 @@ message Params {
232
271
option (gogoproto.equal ) = true ;
233
272
option (gogoproto.goproto_stringer ) = false ;
234
273
274
+ // unbonding_time is the time duration of unbonding.
235
275
google.protobuf.Duration unbonding_time = 1
236
276
[(gogoproto.nullable ) = false , (gogoproto.stdduration ) = true , (gogoproto.moretags ) = "yaml:\"unbonding_time\"" ];
277
+ // max_validators is the maximum number of validators.
237
278
uint32 max_validators = 2 [(gogoproto.moretags ) = "yaml:\"max_validators\"" ];
279
+ // max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio).
238
280
uint32 max_entries = 3 [(gogoproto.moretags ) = "yaml:\"max_entries\"" ];
281
+ // historical_entries is the number of historical entries to persist.
239
282
uint32 historical_entries = 4 [(gogoproto.moretags ) = "yaml:\"historical_entries\"" ];
283
+ // bond_denom defines the bondable coin denomination.
240
284
string bond_denom = 5 [(gogoproto.moretags ) = "yaml:\"bond_denom\"" ];
241
285
}
242
286
0 commit comments