@@ -22,22 +22,22 @@ service Query {
22
22
23
23
// Rewards returns rewards for a specific address.
24
24
rpc Rewards (QueryRewardsRequest ) returns (QueryRewardsResponse ) {
25
- option (google.api.http ).get = "/restake/v1beta1/lockers/{locker_address }/rewards" ;
25
+ option (google.api.http ).get = "/restake/v1beta1/stakers/{staker_address }/rewards" ;
26
26
}
27
27
28
28
// Reward returns a reward for a specific address and a key.
29
29
rpc Reward (QueryRewardRequest ) returns (QueryRewardResponse ) {
30
- option (google.api.http ).get = "/restake/v1beta1/lockers/{locker_address }/rewards/{key}" ;
30
+ option (google.api.http ).get = "/restake/v1beta1/stakers/{staker_address }/rewards/{key}" ;
31
31
}
32
32
33
33
// Locks returns all lock information for a specific address.
34
34
rpc Locks (QueryLocksRequest ) returns (QueryLocksResponse ) {
35
- option (google.api.http ).get = "/restake/v1beta1/lockers/{locker_address }/locks" ;
35
+ option (google.api.http ).get = "/restake/v1beta1/stakers/{staker_address }/locks" ;
36
36
}
37
37
38
38
// Lock returns a lock information for a specific address and a key.
39
39
rpc Lock (QueryLockRequest ) returns (QueryLockResponse ) {
40
- option (google.api.http ).get = "/restake/v1beta1/lockers/{locker_address }/locks/{key}" ;
40
+ option (google.api.http ).get = "/restake/v1beta1/stakers/{staker_address }/locks/{key}" ;
41
41
}
42
42
}
43
43
@@ -70,16 +70,16 @@ message QueryKeyResponse {
70
70
71
71
// QueryRewardsRequest represents the request type for the Query/Rewards RPC method.
72
72
message QueryRewardsRequest {
73
- // locker_address is the target address to query rewards.
74
- string locker_address = 1 ;
73
+ // staker_address is the target address to query rewards.
74
+ string staker_address = 1 ;
75
75
76
76
// pagination defines optional pagination parameters.
77
77
cosmos.base.query.v1beta1.PageRequest pagination = 2 ;
78
78
}
79
79
80
80
// QueryRewardsResponse represents the response type for the Query/Rewards RPC method.
81
81
message QueryRewardsResponse {
82
- // rewards is a list of rewards for the locker .
82
+ // rewards is a list of rewards for the staker .
83
83
repeated Reward rewards = 1 ;
84
84
85
85
// pagination defines pagination parameters in the response.
@@ -88,31 +88,31 @@ message QueryRewardsResponse {
88
88
89
89
// QueryRewardRequest represents the request type for the Query/Reward RPC method.
90
90
message QueryRewardRequest {
91
- // locker_address is the target address to query reward.
92
- string locker_address = 1 ;
91
+ // staker_address is the target address to query reward.
92
+ string staker_address = 1 ;
93
93
94
94
// key is the target key to query reward.
95
95
string key = 2 ;
96
96
}
97
97
98
98
// QueryRewardResponse represents the response type for the Query/Reward RPC method.
99
99
message QueryRewardResponse {
100
- // reward is the reward for the locker and the key.
100
+ // reward is the reward for the staker and the key.
101
101
Reward reward = 1 [(gogoproto.nullable ) = false ];
102
102
}
103
103
104
104
// QueryLocksRequest represents the request type for the Query/Locks RPC method.
105
105
message QueryLocksRequest {
106
- // locker_address is the target address to query locks.
107
- string locker_address = 1 ;
106
+ // staker_address is the target address to query locks.
107
+ string staker_address = 1 ;
108
108
109
109
// pagination defines optional pagination parameters.
110
110
cosmos.base.query.v1beta1.PageRequest pagination = 2 ;
111
111
}
112
112
113
113
// QueryLocksResponse represents the response type for the Query/Locks RPC method.
114
114
message QueryLocksResponse {
115
- // locks is a list of locks of the locker .
115
+ // locks is a list of locks of the staker .
116
116
repeated LockResponse locks = 1 ;
117
117
118
118
// pagination defines pagination parameters in the response.
@@ -121,15 +121,15 @@ message QueryLocksResponse {
121
121
122
122
// QueryLockRequest represents the request type for the Query/Lock RPC method.
123
123
message QueryLockRequest {
124
- // locker_address is the target address to query lock.
125
- string locker_address = 1 ;
124
+ // staker_address is the target address to query lock.
125
+ string staker_address = 1 ;
126
126
127
127
// key is the target key to query reward.
128
128
string key = 2 ;
129
129
}
130
130
131
131
// QueryLockResponse represents the response type for the Query/Lock RPC method.
132
132
message QueryLockResponse {
133
- // lock is the lock of the locker and the key.
133
+ // lock is the lock of the staker and the key.
134
134
LockResponse lock = 1 [(gogoproto.nullable ) = false ];
135
135
}
0 commit comments