Skip to content

Commit 98e1dd8

Browse files
committed
add proto
1 parent 289c5bc commit 98e1dd8

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
lines changed

proto/restake/v1beta1/query.proto

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,22 @@ service Query {
2222

2323
// Rewards returns rewards for a specific address.
2424
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";
2626
}
2727

2828
// Reward returns a reward for a specific address and a key.
2929
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}";
3131
}
3232

3333
// Locks returns all lock information for a specific address.
3434
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";
3636
}
3737

3838
// Lock returns a lock information for a specific address and a key.
3939
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}";
4141
}
4242
}
4343

@@ -70,16 +70,16 @@ message QueryKeyResponse {
7070

7171
// QueryRewardsRequest represents the request type for the Query/Rewards RPC method.
7272
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;
7575

7676
// pagination defines optional pagination parameters.
7777
cosmos.base.query.v1beta1.PageRequest pagination = 2;
7878
}
7979

8080
// QueryRewardsResponse represents the response type for the Query/Rewards RPC method.
8181
message QueryRewardsResponse {
82-
// rewards is a list of rewards for the locker.
82+
// rewards is a list of rewards for the staker.
8383
repeated Reward rewards = 1;
8484

8585
// pagination defines pagination parameters in the response.
@@ -88,31 +88,31 @@ message QueryRewardsResponse {
8888

8989
// QueryRewardRequest represents the request type for the Query/Reward RPC method.
9090
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;
9393

9494
// key is the target key to query reward.
9595
string key = 2;
9696
}
9797

9898
// QueryRewardResponse represents the response type for the Query/Reward RPC method.
9999
message QueryRewardResponse {
100-
// reward is the reward for the locker and the key.
100+
// reward is the reward for the staker and the key.
101101
Reward reward = 1 [(gogoproto.nullable) = false];
102102
}
103103

104104
// QueryLocksRequest represents the request type for the Query/Locks RPC method.
105105
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;
108108

109109
// pagination defines optional pagination parameters.
110110
cosmos.base.query.v1beta1.PageRequest pagination = 2;
111111
}
112112

113113
// QueryLocksResponse represents the response type for the Query/Locks RPC method.
114114
message QueryLocksResponse {
115-
// locks is a list of locks of the locker.
115+
// locks is a list of locks of the staker.
116116
repeated LockResponse locks = 1;
117117

118118
// pagination defines pagination parameters in the response.
@@ -121,15 +121,15 @@ message QueryLocksResponse {
121121

122122
// QueryLockRequest represents the request type for the Query/Lock RPC method.
123123
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;
126126

127127
// key is the target key to query reward.
128128
string key = 2;
129129
}
130130

131131
// QueryLockResponse represents the response type for the Query/Lock RPC method.
132132
message QueryLockResponse {
133-
// lock is the lock of the locker and the key.
133+
// lock is the lock of the staker and the key.
134134
LockResponse lock = 1 [(gogoproto.nullable) = false];
135135
}

proto/restake/v1beta1/tx.proto

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ service Msg {
1515

1616
// MsgClaimRewards is the request message type for claiming rewards.
1717
message MsgClaimRewards {
18-
option (cosmos.msg.v1.signer) = "locker_address";
18+
option (cosmos.msg.v1.signer) = "staker_address";
1919
option (amino.name) = "restake/MsgClaimRewards";
2020

21-
// locker_address is the address that will claim the rewards.
22-
string locker_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
21+
// staker_address is the address that will claim the rewards.
22+
string staker_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
2323

2424
// key is the key that want to claim rewards from.
2525
string key = 2;

proto/restake/v1beta1/types.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ message Key {
4949
message Lock {
5050
option (gogoproto.equal) = true;
5151

52-
// locker_address is the owner's address of the locker.
53-
string locker_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
52+
// staker_address is the owner's address of the staker.
53+
string staker_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
5454

5555
// key is the key that this lock is locked to.
5656
string key = 2;

0 commit comments

Comments
 (0)