-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into mbreithecker/prepare-upgrade-2
- Loading branch information
Showing
28 changed files
with
2,306 additions
and
538 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
syntax = "proto3"; | ||
|
||
package kyve.delegation.v1beta1; | ||
|
||
import "cosmos/msg/v1/msg.proto"; | ||
import "cosmos_proto/cosmos.proto"; | ||
|
||
option go_package = "github.com/KYVENetwork/chain/x/delegation/types"; | ||
|
||
// Msg defines the Msg service. | ||
service Msg { | ||
option (cosmos.msg.v1.service) = true; | ||
|
||
// UpdateParams defines a governance operation for updating the x/delegation module | ||
// parameters. The authority is hard-coded to the x/gov module account. | ||
rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); | ||
} | ||
|
||
// MsgUpdateParams defines a SDK message for updating the module parameters. | ||
message MsgUpdateParams { | ||
option (cosmos.msg.v1.signer) = "authority"; | ||
// authority is the address of the governance account. | ||
string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; | ||
|
||
// payload defines the x/delegation parameters to update. | ||
string payload = 2; | ||
} | ||
|
||
// MsgUpdateParamsResponse defines the Msg/UpdateParams response type. | ||
message MsgUpdateParamsResponse {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
proto/kyve/stakers/v1beta1/events.proto → proto/kyve/stakers/v1/events.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
proto/kyve/stakers/v1beta1/genesis.proto → proto/kyve/stakers/v1/genesis.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
proto/kyve/stakers/v1beta1/params.proto → proto/kyve/stakers/v1/params.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
syntax = "proto3"; | ||
|
||
package kyve.stakers.v1beta1; | ||
package kyve.stakers.v1; | ||
|
||
import "gogoproto/gogo.proto"; | ||
|
||
|
6 changes: 3 additions & 3 deletions
6
proto/kyve/stakers/v1beta1/query.proto → proto/kyve/stakers/v1/query.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
proto/kyve/stakers/v1beta1/stakers.proto → proto/kyve/stakers/v1/stakers.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
syntax = "proto3"; | ||
|
||
package kyve.stakers.v1; | ||
|
||
import "cosmos/msg/v1/msg.proto"; | ||
import "cosmos_proto/cosmos.proto"; | ||
import "gogoproto/gogo.proto"; | ||
|
||
option go_package = "github.com/KYVENetwork/chain/x/stakers/types"; | ||
|
||
// Msg defines the Msg service. | ||
service Msg { | ||
option (cosmos.msg.v1.service) = true; | ||
// JoinPool ... | ||
rpc JoinPool(MsgJoinPool) returns (MsgJoinPoolResponse); | ||
// LeavePool ... | ||
rpc LeavePool(MsgLeavePool) returns (MsgLeavePoolResponse); | ||
|
||
// UpdateCommission ... | ||
rpc UpdateCommission(MsgUpdateCommission) returns (MsgUpdateCommissionResponse); | ||
// UpdateStakeFraction ... | ||
rpc UpdateStakeFraction(MsgUpdateStakeFraction) returns (MsgUpdateStakeFractionResponse); | ||
|
||
// UpdateParams defines a governance operation for updating the x/stakers module | ||
// parameters. The authority is hard-coded to the x/gov module account. | ||
rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); | ||
} | ||
|
||
// MsgUpdateCommission ... | ||
message MsgUpdateCommission { | ||
option (cosmos.msg.v1.signer) = "creator"; | ||
// creator ... | ||
string creator = 1; | ||
// pool_id ... | ||
uint64 pool_id = 2; | ||
// commission ... | ||
string commission = 3 [ | ||
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", | ||
(gogoproto.nullable) = false | ||
]; | ||
} | ||
|
||
// MsgUpdateCommissionResponse ... | ||
message MsgUpdateCommissionResponse {} | ||
|
||
// MsgUpdateStakeFraction ... | ||
message MsgUpdateStakeFraction { | ||
option (cosmos.msg.v1.signer) = "creator"; | ||
// creator ... | ||
string creator = 1; | ||
// pool_id ... | ||
uint64 pool_id = 2; | ||
// commission ... | ||
string stake_fraction = 3 [ | ||
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", | ||
(gogoproto.nullable) = false | ||
]; | ||
} | ||
|
||
// MsgUpdateStakeFractionResponse ... | ||
message MsgUpdateStakeFractionResponse {} | ||
|
||
// MsgJoinPool ... | ||
message MsgJoinPool { | ||
option (cosmos.msg.v1.signer) = "creator"; | ||
// creator ... | ||
string creator = 1; | ||
// pool_id ... | ||
uint64 pool_id = 2; | ||
// pool_address ... | ||
string pool_address = 3; | ||
// amount ... | ||
uint64 amount = 4; | ||
// commission ... | ||
string commission = 5 [ | ||
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", | ||
(gogoproto.nullable) = false | ||
]; | ||
// stake_fraction ... | ||
string stake_fraction = 6 [ | ||
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", | ||
(gogoproto.nullable) = false | ||
]; | ||
} | ||
|
||
// MsgJoinPoolResponse ... | ||
message MsgJoinPoolResponse {} | ||
|
||
// MsgLeavePool ... | ||
message MsgLeavePool { | ||
option (cosmos.msg.v1.signer) = "creator"; | ||
// creator ... | ||
string creator = 1; | ||
// pool_id ... | ||
uint64 pool_id = 2; | ||
} | ||
|
||
// MsgReactivateStakerResponse ... | ||
message MsgLeavePoolResponse {} | ||
|
||
// MsgUpdateParams defines a SDK message for updating the module parameters. | ||
message MsgUpdateParams { | ||
option (cosmos.msg.v1.signer) = "authority"; | ||
// authority is the address of the governance account. | ||
string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; | ||
|
||
// payload defines the x/stakers parameters to update. | ||
string payload = 2; | ||
} | ||
|
||
// MsgUpdateParamsResponse defines the Msg/UpdateParams response type. | ||
message MsgUpdateParamsResponse {} |
Oops, something went wrong.