@@ -28,7 +28,7 @@ message CommissionRates {
28
28
option (gogoproto.goproto_stringer ) = false ;
29
29
30
30
// rate is the commission rate charged to delegators, as a fraction.
31
- string rate = 1 [(gogoproto.customtype ) = "github.com/cosmos/cosmos-sdk/types.Dec" , (gogoproto.nullable ) = false ];
31
+ string rate = 1 [(gogoproto.customtype ) = "github.com/cosmos/cosmos-sdk/types.Dec" , (gogoproto.nullable ) = false ];
32
32
// max_rate defines the maximum commission rate which validator can ever charge, as a fraction.
33
33
string max_rate = 2 [
34
34
(gogoproto.moretags ) = "yaml:\"max_rate\"" ,
@@ -49,9 +49,9 @@ message Commission {
49
49
option (gogoproto.goproto_stringer ) = false ;
50
50
51
51
// commission_rates defines the initial commission rates to be used for creating a validator.
52
- CommissionRates commission_rates = 1 [(gogoproto.embed ) = true , (gogoproto.nullable ) = false ];
52
+ CommissionRates commission_rates = 1 [(gogoproto.embed ) = true , (gogoproto.nullable ) = false ];
53
53
// update_time is the last time the commission rate was changed.
54
- google.protobuf.Timestamp update_time = 2
54
+ google.protobuf.Timestamp update_time = 2
55
55
[(gogoproto.nullable ) = false , (gogoproto.stdtime ) = true , (gogoproto.moretags ) = "yaml:\"update_time\"" ];
56
56
}
57
57
@@ -61,15 +61,15 @@ message Description {
61
61
option (gogoproto.goproto_stringer ) = false ;
62
62
63
63
// moniker defines a human-readable name for the validator.
64
- string moniker = 1 ;
64
+ string moniker = 1 ;
65
65
// identity defines an optional identity signature (ex. UPort or Keybase).
66
- string identity = 2 ;
66
+ string identity = 2 ;
67
67
// website defines an optional website link.
68
- string website = 3 ;
68
+ string website = 3 ;
69
69
// security_contact defines an optional email for security contact.
70
70
string security_contact = 4 [(gogoproto.moretags ) = "yaml:\"security_contact\"" ];
71
71
// details define other optional details.
72
- string details = 5 ;
72
+ string details = 5 ;
73
73
}
74
74
75
75
// Validator defines a validator, together with the total amount of the
@@ -86,12 +86,12 @@ message Validator {
86
86
option (gogoproto.goproto_getters ) = false ;
87
87
88
88
// operator_address defines the address of the validator's operator; bech encoded in JSON.
89
- string operator_address = 1 [(gogoproto.moretags ) = "yaml:\"operator_address\"" ];
89
+ string operator_address = 1 [(gogoproto.moretags ) = "yaml:\"operator_address\"" ];
90
90
// consensus_pubkey is the consensus public key of the validator, as a Protobuf Any.
91
91
google.protobuf.Any consensus_pubkey = 2
92
92
[(cosmos_proto.accepts_interface ) = "cosmos.crypto.PubKey", (gogoproto.moretags) = "yaml:\"consensus_pubkey\"" ];
93
93
// jailed defined whether the validator has been jailed from bonded status or not.
94
- bool jailed = 3 ;
94
+ bool jailed = 3 ;
95
95
// status is the validator status (bonded/unbonding/unbonded).
96
96
BondStatus status = 4 ;
97
97
// tokens define the delegated tokens (incl. self-delegation).
@@ -103,16 +103,16 @@ message Validator {
103
103
(gogoproto.nullable ) = false
104
104
];
105
105
// description defines the description terms for the validator.
106
- Description description = 7 [(gogoproto.nullable ) = false ];
106
+ Description description = 7 [(gogoproto.nullable ) = false ];
107
107
// unbonding_height defines, if unbonding, the height at which this validator has begun unbonding.
108
- int64 unbonding_height = 8 [(gogoproto.moretags ) = "yaml:\"unbonding_height\"" ];
108
+ int64 unbonding_height = 8 [(gogoproto.moretags ) = "yaml:\"unbonding_height\"" ];
109
109
// unbonding_time defines, if unbonding, the min time for the validator to complete unbonding.
110
- google.protobuf.Timestamp unbonding_time = 9
110
+ google.protobuf.Timestamp unbonding_time = 9
111
111
[(gogoproto.nullable ) = false , (gogoproto.stdtime ) = true , (gogoproto.moretags ) = "yaml:\"unbonding_time\"" ];
112
112
// commission defines the commission parameters.
113
- Commission commission = 10 [(gogoproto.nullable ) = false ];
113
+ Commission commission = 10 [(gogoproto.nullable ) = false ];
114
114
// min_self_delegation is the validator's self declared minimum self delegation.
115
- string min_self_delegation = 11 [
115
+ string min_self_delegation = 11 [
116
116
(gogoproto.moretags ) = "yaml:\"min_self_delegation\"" ,
117
117
(gogoproto.customtype ) = "github.com/cosmos/cosmos-sdk/types.Int" ,
118
118
(gogoproto.nullable ) = false
@@ -201,9 +201,9 @@ message UnbondingDelegation {
201
201
option (gogoproto.goproto_stringer ) = false ;
202
202
203
203
// delegator_address is the bech32-encoded address of the delegator.
204
- string delegator_address = 1 [(gogoproto.moretags ) = "yaml:\"delegator_address\"" ];
204
+ string delegator_address = 1 [(gogoproto.moretags ) = "yaml:\"delegator_address\"" ];
205
205
// validator_address is the bech32-encoded address of the validator.
206
- string validator_address = 2 [(gogoproto.moretags ) = "yaml:\"validator_address\"" ];
206
+ string validator_address = 2 [(gogoproto.moretags ) = "yaml:\"validator_address\"" ];
207
207
// entries are the unbonding delegation entries.
208
208
repeated UnbondingDelegationEntry entries = 3 [(gogoproto.nullable ) = false ]; // unbonding delegation entries
209
209
}
@@ -214,7 +214,7 @@ message UnbondingDelegationEntry {
214
214
option (gogoproto.goproto_stringer ) = false ;
215
215
216
216
// creation_height is the height which the unbonding took place.
217
- int64 creation_height = 1 [(gogoproto.moretags ) = "yaml:\"creation_height\"" ];
217
+ int64 creation_height = 1 [(gogoproto.moretags ) = "yaml:\"creation_height\"" ];
218
218
// completion_time is the unix time for unbonding completion.
219
219
google.protobuf.Timestamp completion_time = 2
220
220
[(gogoproto.nullable ) = false , (gogoproto.stdtime ) = true , (gogoproto.moretags ) = "yaml:\"completion_time\"" ];
@@ -234,7 +234,7 @@ message RedelegationEntry {
234
234
option (gogoproto.goproto_stringer ) = false ;
235
235
236
236
// creation_height defines the height which the redelegation took place.
237
- int64 creation_height = 1 [(gogoproto.moretags ) = "yaml:\"creation_height\"" ];
237
+ int64 creation_height = 1 [(gogoproto.moretags ) = "yaml:\"creation_height\"" ];
238
238
// completion_time defines the unix time for redelegation completion.
239
239
google.protobuf.Timestamp completion_time = 2
240
240
[(gogoproto.nullable ) = false , (gogoproto.stdtime ) = true , (gogoproto.moretags ) = "yaml:\"completion_time\"" ];
@@ -257,13 +257,13 @@ message Redelegation {
257
257
option (gogoproto.goproto_stringer ) = false ;
258
258
259
259
// delegator_address is the bech32-encoded address of the delegator.
260
- string delegator_address = 1 [(gogoproto.moretags ) = "yaml:\"delegator_address\"" ];
260
+ string delegator_address = 1 [(gogoproto.moretags ) = "yaml:\"delegator_address\"" ];
261
261
// validator_src_address is the validator redelegation source operator address.
262
- string validator_src_address = 2 [(gogoproto.moretags ) = "yaml:\"validator_src_address\"" ];
262
+ string validator_src_address = 2 [(gogoproto.moretags ) = "yaml:\"validator_src_address\"" ];
263
263
// validator_dst_address is the validator redelegation destination operator address.
264
- string validator_dst_address = 3 [(gogoproto.moretags ) = "yaml:\"validator_dst_address\"" ];
264
+ string validator_dst_address = 3 [(gogoproto.moretags ) = "yaml:\"validator_dst_address\"" ];
265
265
// entries are the redelegation entries.
266
- repeated RedelegationEntry entries = 4 [(gogoproto.nullable ) = false ]; // redelegation entries
266
+ repeated RedelegationEntry entries = 4 [(gogoproto.nullable ) = false ]; // redelegation entries
267
267
}
268
268
269
269
// Params defines the parameters for the staking module.
@@ -275,13 +275,13 @@ message Params {
275
275
google.protobuf.Duration unbonding_time = 1
276
276
[(gogoproto.nullable ) = false , (gogoproto.stdduration ) = true , (gogoproto.moretags ) = "yaml:\"unbonding_time\"" ];
277
277
// max_validators is the maximum number of validators.
278
- uint32 max_validators = 2 [(gogoproto.moretags ) = "yaml:\"max_validators\"" ];
278
+ uint32 max_validators = 2 [(gogoproto.moretags ) = "yaml:\"max_validators\"" ];
279
279
// max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio).
280
- uint32 max_entries = 3 [(gogoproto.moretags ) = "yaml:\"max_entries\"" ];
280
+ uint32 max_entries = 3 [(gogoproto.moretags ) = "yaml:\"max_entries\"" ];
281
281
// historical_entries is the number of historical entries to persist.
282
282
uint32 historical_entries = 4 [(gogoproto.moretags ) = "yaml:\"historical_entries\"" ];
283
283
// bond_denom defines the bondable coin denomination.
284
- string bond_denom = 5 [(gogoproto.moretags ) = "yaml:\"bond_denom\"" ];
284
+ string bond_denom = 5 [(gogoproto.moretags ) = "yaml:\"bond_denom\"" ];
285
285
}
286
286
287
287
// DelegationResponse is equivalent to Delegation except that it contains a
0 commit comments