Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions proto/kyve/delegation/v1beta1/tx.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
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/stakers/types_delegation_v1beta1";

/*
NOTICE:
This file needs to be kept for backwards compatibility with the governance module.
Otherwise, it is not possible to decode legacy delegation param update proposals.
*/


// 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 {}
2 changes: 2 additions & 0 deletions x/stakers/types/codec.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package types

import (
"github.com/KYVENetwork/chain/x/stakers/types_delegation_v1beta1"
"github.com/KYVENetwork/chain/x/stakers/types_v1beta1"
"github.com/cosmos/cosmos-sdk/codec"
codecTypes "github.com/cosmos/cosmos-sdk/codec/types"
Expand All @@ -23,6 +24,7 @@ func RegisterInterfaces(registry codecTypes.InterfaceRegistry) {
registry.RegisterImplementations((*sdk.Msg)(nil), &MsgLeavePool{})
registry.RegisterImplementations((*sdk.Msg)(nil), &MsgUpdateParams{})
registry.RegisterImplementations((*sdk.Msg)(nil), &types_v1beta1.MsgUpdateParams{})
registry.RegisterImplementations((*sdk.Msg)(nil), &types_delegation_v1beta1.MsgUpdateParams{})
}

var Amino = codec.NewLegacyAmino()
Expand Down
Loading