diff --git a/app/upgrades.go b/app/upgrades.go index 5a975247..7b3b0ba2 100644 --- a/app/upgrades.go +++ b/app/upgrades.go @@ -38,6 +38,7 @@ func (app App) RegisterUpgradeHandlers() { app.registerUpgrade0_3_0Rc8(upgradeInfo) app.registerUpgrade0_3_1Rc1(upgradeInfo) app.registerUpgrade0_3_1Rc2(upgradeInfo) + app.registerUpgrade0_3_1(upgradeInfo) } // performs upgrade from v0.1.3 to v0.1.4 @@ -183,6 +184,16 @@ func (app *App) registerUpgrade0_3_1Rc2(_ upgradetypes.Plan) { ) } +func (app *App) registerUpgrade0_3_1(_ upgradetypes.Plan) { + const planName = "v0.3.1" + app.UpgradeKeeper.SetUpgradeHandler(planName, + func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) { + ctx.Logger().Info("Upgrade handler execution", "name", planName) + return app.mm.RunMigrations(ctx, app.configurator, fromVM) + }, + ) +} + // helper function to check if the store loader should be upgraded func (app *App) storeUpgrade(planName string, ui upgradetypes.Plan, stores storetypes.StoreUpgrades) { if ui.Name == planName && !app.UpgradeKeeper.IsSkipHeight(ui.Height) { diff --git a/proto/ojo/oracle/v1/tx.proto b/proto/ojo/oracle/v1/tx.proto index a980b231..ed922a89 100644 --- a/proto/ojo/oracle/v1/tx.proto +++ b/proto/ojo/oracle/v1/tx.proto @@ -26,6 +26,10 @@ service Msg { rpc DelegateFeedConsent(MsgDelegateFeedConsent) returns (MsgDelegateFeedConsentResponse); + // LegacyGovUpdateParams defines the legacy message that updates the oracle parameters. + rpc LegacyGovUpdateParams(MsgLegacyGovUpdateParams) + returns (MsgLegacyGovUpdateParamsResponse); + // GovUpdateParams updates the oracle parameters. rpc GovUpdateParams(MsgGovUpdateParams) returns (MsgGovUpdateParamsResponse); @@ -98,6 +102,24 @@ message MsgDelegateFeedConsent { // type. message MsgDelegateFeedConsentResponse {} +// MsgLegacyGovUpdateParams defines the Msg/MsgLegacyGovUpdateParams request type. +message MsgLegacyGovUpdateParams { + option (gogoproto.equal) = true; + option (gogoproto.goproto_getters) = false; + option (gogoproto.goproto_stringer) = false; + option (cosmos.msg.v1.signer) = "authority"; + + // authority is the address of the governance account. + string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string title = 2; + string description = 3; + repeated string keys = 4; + Params changes = 5 [ (gogoproto.nullable) = false ]; +} + +// MsgLegacyGovUpdateParams defines the Msg/MsgLegacyGovUpdateParams response type. +message MsgLegacyGovUpdateParamsResponse {} + // MsgGovUpdateParams defines the Msg/GovUpdateParams request type. message MsgGovUpdateParams { option (gogoproto.equal) = true; @@ -121,7 +143,6 @@ message MsgGovUpdateParams { // MsgGovUpdateParamsResponse defines the Msg/GovUpdateParams response type. message MsgGovUpdateParamsResponse {} - // MsgGovAddDenoms defines the Msg/GovAddDenoms request type. message MsgGovAddDenoms { option (gogoproto.equal) = true; diff --git a/x/oracle/keeper/msg_server.go b/x/oracle/keeper/msg_server.go index b85f29cc..6c2f503e 100644 --- a/x/oracle/keeper/msg_server.go +++ b/x/oracle/keeper/msg_server.go @@ -2,6 +2,7 @@ package keeper import ( "context" + "fmt" "strings" "cosmossdk.io/errors" @@ -140,6 +141,111 @@ func (ms msgServer) DelegateFeedConsent( return &types.MsgDelegateFeedConsentResponse{}, err } +func (ms msgServer) LegacyGovUpdateParams( + goCtx context.Context, + msg *types.MsgLegacyGovUpdateParams, +) (*types.MsgLegacyGovUpdateParamsResponse, error) { + if msg.Authority != ms.authority { + err := errors.Wrapf( + types.ErrNoGovAuthority, + "invalid authority; expected %s, got %s", + ms.authority, + msg.Authority, + ) + return nil, err + } + + ctx := sdk.UnwrapSDKContext(goCtx) + + for _, key := range msg.Keys { + switch key { + case string(types.KeyVotePeriod): + ms.SetVotePeriod(ctx, msg.Changes.VotePeriod) + + case string(types.KeyVoteThreshold): + ms.SetVoteThreshold(ctx, msg.Changes.VoteThreshold) + + case string(types.KeyRewardBands): + ms.SetRewardBand(ctx, msg.Changes.RewardBands) + + case string(types.KeyRewardDistributionWindow): + if msg.Changes.RewardDistributionWindow < ms.Keeper.VotePeriod(ctx) { + return nil, fmt.Errorf("oracle parameter RewardDistributionWindow must be greater than or equal with VotePeriod") + } + ms.SetRewardDistributionWindow(ctx, msg.Changes.RewardDistributionWindow) + + case string(types.KeyAcceptList): + accept := msg.Changes.AcceptList.Normalize() + mandatory := ms.Keeper.MandatoryList(ctx).Normalize() + if !accept.ContainDenoms(mandatory) { + return nil, fmt.Errorf("denom in MandatoryList not present in AcceptList") + } + ms.SetAcceptList(ctx, accept) + + case string(types.KeyMandatoryList): + mandatory := msg.Changes.MandatoryList.Normalize() + accept := ms.Keeper.AcceptList(ctx).Normalize() + if !accept.ContainDenoms(mandatory) { + return nil, fmt.Errorf("denom in MandatoryList not present in AcceptList") + } + ms.SetMandatoryList(ctx, mandatory) + + case string(types.KeySlashFraction): + ms.SetSlashFraction(ctx, msg.Changes.SlashFraction) + + case string(types.KeySlashWindow): + if msg.Changes.SlashWindow < ms.Keeper.VotePeriod(ctx) { + return nil, fmt.Errorf("oracle parameter SlashWindow must be greater than or equal with VotePeriod") + } + ms.SetSlashWindow(ctx, msg.Changes.SlashWindow) + + case string(types.KeyMinValidPerWindow): + ms.SetMinValidPerWindow(ctx, msg.Changes.MinValidPerWindow) + + case string(types.KeyHistoricStampPeriod): + if msg.Changes.HistoricStampPeriod < 1 { + return nil, fmt.Errorf("oracle parameters HistoricStampPeriod must be greater than 0") + } + if msg.Changes.HistoricStampPeriod > ms.Keeper.MedianStampPeriod(ctx) { + return nil, fmt.Errorf("oracle parameter HistoricStampPeriod must be less than or equal with MedianStampPeriod") + } + if msg.Changes.HistoricStampPeriod%ms.Keeper.VotePeriod(ctx) != 0 { + return nil, fmt.Errorf("oracle parameters HistoricStampPeriod must be exact multiples of VotePeriod") + } + ms.SetHistoricStampPeriod(ctx, msg.Changes.HistoricStampPeriod) + + case string(types.KeyMedianStampPeriod): + if msg.Changes.MedianStampPeriod < 1 { + return nil, fmt.Errorf("oracle parameters MedianStampPeriod must be greater than 0") + } + if msg.Changes.MedianStampPeriod < ms.Keeper.HistoricStampPeriod(ctx) { + return nil, fmt.Errorf("oracle parameter MedianStampPeriod must be greater than or equal with HistoricStampPeriod") + } + if msg.Changes.MedianStampPeriod%ms.Keeper.VotePeriod(ctx) != 0 { + return nil, fmt.Errorf("oracle parameters MedianStampPeriod must be exact multiples of VotePeriod") + } + ms.SetMedianStampPeriod(ctx, msg.Changes.MedianStampPeriod) + + case string(types.KeyMaximumPriceStamps): + if msg.Changes.MaximumPriceStamps < 1 { + return nil, fmt.Errorf("oracle parameters MaximumPriceStamps must be greater than 0") + } + ms.SetMaximumPriceStamps(ctx, msg.Changes.MaximumPriceStamps) + + case string(types.KeyMaximumMedianStamps): + if msg.Changes.MaximumMedianStamps < 1 { + return nil, fmt.Errorf("oracle parameters MaximumMedianStamps must be greater than 0") + } + ms.SetMaximumMedianStamps(ctx, msg.Changes.MaximumMedianStamps) + + default: + return nil, fmt.Errorf("%s is not an existing oracle param key", key) + } + } + + return &types.MsgLegacyGovUpdateParamsResponse{}, nil +} + func (ms msgServer) GovUpdateParams( goCtx context.Context, msg *types.MsgGovUpdateParams, diff --git a/x/oracle/types/codec.go b/x/oracle/types/codec.go index c342a090..b53aac0d 100644 --- a/x/oracle/types/codec.go +++ b/x/oracle/types/codec.go @@ -33,6 +33,7 @@ func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { cdc.RegisterConcrete(&MsgAggregateExchangeRatePrevote{}, "ojo/oracle/MsgAggregateExchangeRatePrevote", nil) cdc.RegisterConcrete(&MsgAggregateExchangeRateVote{}, "ojo/oracle/MsgAggregateExchangeRateVote", nil) cdc.RegisterConcrete(&MsgDelegateFeedConsent{}, "ojo/oracle/MsgDelegateFeedConsent", nil) + cdc.RegisterConcrete(&MsgLegacyGovUpdateParams{}, "ojo/oracle/MsgLegacyGovUpdateParams", nil) cdc.RegisterConcrete(&MsgGovUpdateParams{}, "ojo/oracle/MsgGovUpdateParams", nil) cdc.RegisterConcrete(&MsgGovAddDenoms{}, "ojo/oracle/MsgGovAddDenoms", nil) cdc.RegisterConcrete(&MsgGovRemoveCurrencyPairProviders{}, "ojo/oracle/MsgGovRemoveCurrencyPairProviders", nil) @@ -49,6 +50,7 @@ func RegisterInterfaces(registry codectypes.InterfaceRegistry) { &MsgDelegateFeedConsent{}, &MsgAggregateExchangeRatePrevote{}, &MsgAggregateExchangeRateVote{}, + &MsgLegacyGovUpdateParams{}, &MsgGovUpdateParams{}, &MsgGovAddDenoms{}, &MsgGovRemoveCurrencyPairProviders{}, @@ -57,6 +59,7 @@ func RegisterInterfaces(registry codectypes.InterfaceRegistry) { registry.RegisterImplementations( (*govtypes.Content)(nil), + &MsgLegacyGovUpdateParams{}, &MsgGovUpdateParams{}, &MsgGovAddDenoms{}, &MsgGovRemoveCurrencyPairProviders{}, diff --git a/x/oracle/types/msgs.go b/x/oracle/types/msgs.go index e938e3e2..713d3f07 100644 --- a/x/oracle/types/msgs.go +++ b/x/oracle/types/msgs.go @@ -1,6 +1,8 @@ package types import ( + "fmt" + "github.com/cometbft/cometbft/crypto/tmhash" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" @@ -13,6 +15,7 @@ var ( _ sdk.Msg = &MsgDelegateFeedConsent{} _ sdk.Msg = &MsgAggregateExchangeRatePrevote{} _ sdk.Msg = &MsgAggregateExchangeRateVote{} + _ sdk.Msg = &MsgLegacyGovUpdateParams{} _ sdk.Msg = &MsgGovUpdateParams{} _ sdk.Msg = &MsgGovCancelUpdateParamPlan{} ) @@ -172,6 +175,120 @@ func (msg MsgDelegateFeedConsent) ValidateBasic() error { return nil } +// NewLegacyMsgUpdateParams will creates a new LegacyMsgUpdateParams instance +func NewLegacyMsgUpdateParams( + authority string, + title string, + description string, + keys []string, + changes Params, +) *MsgLegacyGovUpdateParams { + return &MsgLegacyGovUpdateParams{ + Title: title, + Description: description, + Authority: authority, + Keys: keys, + Changes: changes, + } +} + +// Type implements Msg interface +func (msg MsgLegacyGovUpdateParams) Type() string { return sdk.MsgTypeURL(&msg) } + +// String implements the Stringer interface. +func (msg MsgLegacyGovUpdateParams) String() string { + out, _ := yaml.Marshal(msg) + return string(out) +} + +// GetSigners implements Msg +func (msg MsgLegacyGovUpdateParams) GetSigners() []sdk.AccAddress { + return checkers.Signers(msg.Authority) +} + +// ValidateBasic implements Msg and validates params for each param key +// specified in the proposal. If one param is invalid, the whole proposal +// will fail to go through. +func (msg MsgLegacyGovUpdateParams) ValidateBasic() error { + if err := checkers.ValidateProposal(msg.Title, msg.Description, msg.Authority); err != nil { + return err + } + + for _, key := range msg.Keys { + switch key { + case string(KeyVotePeriod): + if err := validateVotePeriod(msg.Changes.VotePeriod); err != nil { + return err + } + + case string(KeyVoteThreshold): + if err := validateVoteThreshold(msg.Changes.VoteThreshold); err != nil { + return err + } + + case string(KeyRewardBands): + if err := validateRewardBands(msg.Changes.RewardBands); err != nil { + return err + } + + case string(KeyRewardDistributionWindow): + if err := validateRewardDistributionWindow(msg.Changes.RewardDistributionWindow); err != nil { + return err + } + + case string(KeyAcceptList): + if err := validateDenomList(msg.Changes.AcceptList); err != nil { + return err + } + + case string(KeyMandatoryList): + if err := validateDenomList(msg.Changes.MandatoryList); err != nil { + return err + } + + case string(KeySlashFraction): + if err := validateSlashFraction(msg.Changes.SlashFraction); err != nil { + return err + } + + case string(KeySlashWindow): + if err := validateSlashWindow(msg.Changes.SlashWindow); err != nil { + return err + } + + case string(KeyMinValidPerWindow): + if err := validateMinValidPerWindow(msg.Changes.MinValidPerWindow); err != nil { + return err + } + + case string(KeyHistoricStampPeriod): + if err := validateHistoricStampPeriod(msg.Changes.HistoricStampPeriod); err != nil { + return err + } + + case string(KeyMedianStampPeriod): + if err := validateMedianStampPeriod(msg.Changes.MedianStampPeriod); err != nil { + return err + } + + case string(KeyMaximumPriceStamps): + if err := validateMaximumPriceStamps(msg.Changes.MaximumPriceStamps); err != nil { + return err + } + + case string(KeyMaximumMedianStamps): + if err := validateMaximumMedianStamps(msg.Changes.MaximumMedianStamps); err != nil { + return err + } + + default: + return fmt.Errorf("%s is not an existing oracle param key", key) + } + } + + return nil +} + // NewMsgUpdateParams will creates a new MsgUpdateParams instance func NewMsgUpdateParams(authority, title, description string, plan ParamUpdatePlan) *MsgGovUpdateParams { return &MsgGovUpdateParams{ diff --git a/x/oracle/types/proposal.go b/x/oracle/types/proposal.go index 12274e0b..410465ac 100644 --- a/x/oracle/types/proposal.go +++ b/x/oracle/types/proposal.go @@ -5,6 +5,7 @@ import ( ) var ( + proposalTypeMsgLegacyGovUpdateParams = MsgLegacyGovUpdateParams{}.String() proposalTypeMsgGovUpdateParams = MsgGovUpdateParams{}.String() proposalTypeMsgGovCancelUpdateParams = MsgGovCancelUpdateParamPlan{}.String() proposalTypeMsgGovAddDenoms = MsgGovAddDenoms{}.String() @@ -13,6 +14,7 @@ var ( ) func init() { + gov.RegisterProposalType(proposalTypeMsgLegacyGovUpdateParams) gov.RegisterProposalType(proposalTypeMsgGovUpdateParams) gov.RegisterProposalType(proposalTypeMsgGovCancelUpdateParams) gov.RegisterProposalType(proposalTypeMsgGovAddDenoms) @@ -20,6 +22,23 @@ func init() { gov.RegisterProposalType(proposalTypeMsgGovRemoveCurrencyDeviationThresholds) } +// Implements Proposal Interface +var _ gov.Content = &MsgLegacyGovUpdateParams{} + +// GetTitle returns the title of a community pool spend proposal. +func (msg *MsgLegacyGovUpdateParams) GetTitle() string { return msg.Title } + +// GetDescription returns the description of a community pool spend proposal. +func (msg *MsgLegacyGovUpdateParams) GetDescription() string { return msg.Description } + +// GetDescription returns the routing key of a community pool spend proposal. +func (msg *MsgLegacyGovUpdateParams) ProposalRoute() string { return RouterKey } + +// ProposalType returns the type of a community pool spend proposal. +func (msg *MsgLegacyGovUpdateParams) ProposalType() string { + return proposalTypeMsgLegacyGovUpdateParams +} + // Implements Proposal Interface var _ gov.Content = &MsgGovUpdateParams{} diff --git a/x/oracle/types/tx.pb.go b/x/oracle/types/tx.pb.go index 39373133..34fbb661 100644 --- a/x/oracle/types/tx.pb.go +++ b/x/oracle/types/tx.pb.go @@ -273,6 +273,85 @@ func (m *MsgDelegateFeedConsentResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgDelegateFeedConsentResponse proto.InternalMessageInfo +// MsgLegacyGovUpdateParams defines the Msg/MsgLegacyGovUpdateParams request type. +type MsgLegacyGovUpdateParams struct { + // authority is the address of the governance account. + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + Keys []string `protobuf:"bytes,4,rep,name=keys,proto3" json:"keys,omitempty"` + Changes Params `protobuf:"bytes,5,opt,name=changes,proto3" json:"changes"` +} + +func (m *MsgLegacyGovUpdateParams) Reset() { *m = MsgLegacyGovUpdateParams{} } +func (*MsgLegacyGovUpdateParams) ProtoMessage() {} +func (*MsgLegacyGovUpdateParams) Descriptor() ([]byte, []int) { + return fileDescriptor_58d45810177a43e8, []int{6} +} +func (m *MsgLegacyGovUpdateParams) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgLegacyGovUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgLegacyGovUpdateParams.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgLegacyGovUpdateParams) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgLegacyGovUpdateParams.Merge(m, src) +} +func (m *MsgLegacyGovUpdateParams) XXX_Size() int { + return m.Size() +} +func (m *MsgLegacyGovUpdateParams) XXX_DiscardUnknown() { + xxx_messageInfo_MsgLegacyGovUpdateParams.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgLegacyGovUpdateParams proto.InternalMessageInfo + +// MsgLegacyGovUpdateParams defines the Msg/MsgLegacyGovUpdateParams response type. +type MsgLegacyGovUpdateParamsResponse struct { +} + +func (m *MsgLegacyGovUpdateParamsResponse) Reset() { *m = MsgLegacyGovUpdateParamsResponse{} } +func (m *MsgLegacyGovUpdateParamsResponse) String() string { return proto.CompactTextString(m) } +func (*MsgLegacyGovUpdateParamsResponse) ProtoMessage() {} +func (*MsgLegacyGovUpdateParamsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_58d45810177a43e8, []int{7} +} +func (m *MsgLegacyGovUpdateParamsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgLegacyGovUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgLegacyGovUpdateParamsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgLegacyGovUpdateParamsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgLegacyGovUpdateParamsResponse.Merge(m, src) +} +func (m *MsgLegacyGovUpdateParamsResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgLegacyGovUpdateParamsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgLegacyGovUpdateParamsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgLegacyGovUpdateParamsResponse proto.InternalMessageInfo + // MsgGovUpdateParams defines the Msg/GovUpdateParams request type. type MsgGovUpdateParams struct { // authority is the address of the governance account. @@ -288,7 +367,7 @@ type MsgGovUpdateParams struct { func (m *MsgGovUpdateParams) Reset() { *m = MsgGovUpdateParams{} } func (*MsgGovUpdateParams) ProtoMessage() {} func (*MsgGovUpdateParams) Descriptor() ([]byte, []int) { - return fileDescriptor_58d45810177a43e8, []int{6} + return fileDescriptor_58d45810177a43e8, []int{8} } func (m *MsgGovUpdateParams) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -325,7 +404,7 @@ func (m *MsgGovUpdateParamsResponse) Reset() { *m = MsgGovUpdateParamsRe func (m *MsgGovUpdateParamsResponse) String() string { return proto.CompactTextString(m) } func (*MsgGovUpdateParamsResponse) ProtoMessage() {} func (*MsgGovUpdateParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_58d45810177a43e8, []int{7} + return fileDescriptor_58d45810177a43e8, []int{9} } func (m *MsgGovUpdateParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -382,7 +461,7 @@ type MsgGovAddDenoms struct { func (m *MsgGovAddDenoms) Reset() { *m = MsgGovAddDenoms{} } func (*MsgGovAddDenoms) ProtoMessage() {} func (*MsgGovAddDenoms) Descriptor() ([]byte, []int) { - return fileDescriptor_58d45810177a43e8, []int{8} + return fileDescriptor_58d45810177a43e8, []int{10} } func (m *MsgGovAddDenoms) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -419,7 +498,7 @@ func (m *MsgGovAddDenomsResponse) Reset() { *m = MsgGovAddDenomsResponse func (m *MsgGovAddDenomsResponse) String() string { return proto.CompactTextString(m) } func (*MsgGovAddDenomsResponse) ProtoMessage() {} func (*MsgGovAddDenomsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_58d45810177a43e8, []int{9} + return fileDescriptor_58d45810177a43e8, []int{11} } func (m *MsgGovAddDenomsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -465,7 +544,7 @@ type MsgGovRemoveCurrencyPairProviders struct { func (m *MsgGovRemoveCurrencyPairProviders) Reset() { *m = MsgGovRemoveCurrencyPairProviders{} } func (*MsgGovRemoveCurrencyPairProviders) ProtoMessage() {} func (*MsgGovRemoveCurrencyPairProviders) Descriptor() ([]byte, []int) { - return fileDescriptor_58d45810177a43e8, []int{10} + return fileDescriptor_58d45810177a43e8, []int{12} } func (m *MsgGovRemoveCurrencyPairProviders) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -506,7 +585,7 @@ func (m *MsgGovRemoveCurrencyPairProvidersResponse) String() string { } func (*MsgGovRemoveCurrencyPairProvidersResponse) ProtoMessage() {} func (*MsgGovRemoveCurrencyPairProvidersResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_58d45810177a43e8, []int{11} + return fileDescriptor_58d45810177a43e8, []int{13} } func (m *MsgGovRemoveCurrencyPairProvidersResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -554,7 +633,7 @@ func (m *MsgGovRemoveCurrencyDeviationThresholds) Reset() { } func (*MsgGovRemoveCurrencyDeviationThresholds) ProtoMessage() {} func (*MsgGovRemoveCurrencyDeviationThresholds) Descriptor() ([]byte, []int) { - return fileDescriptor_58d45810177a43e8, []int{12} + return fileDescriptor_58d45810177a43e8, []int{14} } func (m *MsgGovRemoveCurrencyDeviationThresholds) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -595,7 +674,7 @@ func (m *MsgGovRemoveCurrencyDeviationThresholdsResponse) String() string { } func (*MsgGovRemoveCurrencyDeviationThresholdsResponse) ProtoMessage() {} func (*MsgGovRemoveCurrencyDeviationThresholdsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_58d45810177a43e8, []int{13} + return fileDescriptor_58d45810177a43e8, []int{15} } func (m *MsgGovRemoveCurrencyDeviationThresholdsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -639,7 +718,7 @@ type MsgGovCancelUpdateParamPlan struct { func (m *MsgGovCancelUpdateParamPlan) Reset() { *m = MsgGovCancelUpdateParamPlan{} } func (*MsgGovCancelUpdateParamPlan) ProtoMessage() {} func (*MsgGovCancelUpdateParamPlan) Descriptor() ([]byte, []int) { - return fileDescriptor_58d45810177a43e8, []int{14} + return fileDescriptor_58d45810177a43e8, []int{16} } func (m *MsgGovCancelUpdateParamPlan) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -676,7 +755,7 @@ func (m *MsgGovCancelUpdateParamPlanResponse) Reset() { *m = MsgGovCance func (m *MsgGovCancelUpdateParamPlanResponse) String() string { return proto.CompactTextString(m) } func (*MsgGovCancelUpdateParamPlanResponse) ProtoMessage() {} func (*MsgGovCancelUpdateParamPlanResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_58d45810177a43e8, []int{15} + return fileDescriptor_58d45810177a43e8, []int{17} } func (m *MsgGovCancelUpdateParamPlanResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -712,6 +791,8 @@ func init() { proto.RegisterType((*MsgAggregateExchangeRateVoteResponse)(nil), "ojo.oracle.v1.MsgAggregateExchangeRateVoteResponse") proto.RegisterType((*MsgDelegateFeedConsent)(nil), "ojo.oracle.v1.MsgDelegateFeedConsent") proto.RegisterType((*MsgDelegateFeedConsentResponse)(nil), "ojo.oracle.v1.MsgDelegateFeedConsentResponse") + proto.RegisterType((*MsgLegacyGovUpdateParams)(nil), "ojo.oracle.v1.MsgLegacyGovUpdateParams") + proto.RegisterType((*MsgLegacyGovUpdateParamsResponse)(nil), "ojo.oracle.v1.MsgLegacyGovUpdateParamsResponse") proto.RegisterType((*MsgGovUpdateParams)(nil), "ojo.oracle.v1.MsgGovUpdateParams") proto.RegisterType((*MsgGovUpdateParamsResponse)(nil), "ojo.oracle.v1.MsgGovUpdateParamsResponse") proto.RegisterType((*MsgGovAddDenoms)(nil), "ojo.oracle.v1.MsgGovAddDenoms") @@ -727,79 +808,125 @@ func init() { func init() { proto.RegisterFile("ojo/oracle/v1/tx.proto", fileDescriptor_58d45810177a43e8) } var fileDescriptor_58d45810177a43e8 = []byte{ - // 1116 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x57, 0xbf, 0x73, 0x1b, 0x45, - 0x14, 0xd6, 0xc5, 0x3f, 0x62, 0x3d, 0x63, 0x4c, 0x2e, 0x8e, 0x2d, 0x5f, 0xcc, 0x9d, 0x73, 0x71, - 0x8c, 0x95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83, 0xc2, - 0x00, 0x27, 0xca, 0x13, 0x35, 0xa6, 0x23, 0xa0, 0xe5, 0x31, 0xad, 0x18, 0xd4, 0x41, 0x77, 0x16, - 0xf4, 0x64, 0x16, 0x31, 0xd1, 0x17, 0x0a, 0xa8, 0x9b, 0xcc, 0xdd, 0x20, 0xf5, 0x0f, 0x6b, 0x4e, - 0x38, 0x61, 0x44, 0x51, 0x95, 0xa9, 0x0f, 0x20, 0x8b, 0xf6, 0x78, 0x85, 0x50, 0x8f, 0x1f, 0x44, - 0x2c, 0x73, 0xbf, 0xfc, 0xb8, 0x38, 0x11, 0x6d, 0x86, 0x55, 0xc7, 0xa1, 0x98, 0xb1, 0xf7, 0x39, - 0xf5, 0x02, 0xd7, 0x6a, 0x43, 0xd5, 0x09, 0x18, 0xe2, 0x1e, 0xf7, 0x23, 0xa2, 0x96, 0x5c, 0xa8, - 0xb3, 0x30, 0xea, 0x60, 0x66, 0x53, 0xaf, 0xc6, 0x3d, 0x12, 0xc8, 0x19, 0x59, 0x9d, 0x26, 0xf5, - 0x21, 0x0c, 0xd6, 0x7c, 0x14, 0x88, 0x81, 0x8c, 0x2e, 0xeb, 0x85, 0x53, 0x3b, 0xb5, 0x20, 0x48, - 0x45, 0xfc, 0x7c, 0x14, 0x94, 0x06, 0x0f, 0x1b, 0x46, 0xc6, 0x12, 0x11, 0x2b, 0x5a, 0x28, 0xf6, - 0x1b, 0x29, 0x58, 0xf9, 0xec, 0x8f, 0x1f, 0xee, 0xb6, 0xd9, 0x98, 0x33, 0xa0, 0x9d, 0xd5, 0x16, - 0x4b, 0xff, 0x6b, 0x08, 0xc6, 0xa5, 0x7b, 0xd5, 0x71, 0xd6, 0x71, 0x40, 0x5e, 0x82, 0xee, 0x49, - 0x18, 0xae, 0x60, 0xcf, 0xad, 0x70, 0xa1, 0x7c, 0xc0, 0x8a, 0x56, 0xea, 0x23, 0x00, 0x27, 0x64, - 0x54, 0xf6, 0x3d, 0xc6, 0x73, 0x43, 0xb3,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 0xeb, 0x49, 0xf7, 0xab, 0x3b, 0x67, 0x73, 0x25, 0xc0, 0xb4, 0xc5, 0xbe, 0x60, - 0x71, 0xb1, 0x32, 0x8c, 0x77, 0xdf, 0x91, 0x6e, 0x9d, 0xcd, 0xd0, 0x05, 0xd1, 0xf2, 0xe7, 0x42, - 0xe2, 0x02, 0x8f, 0xe1, 0x95, 0x53, 0x37, 0x11, 0x3d, 0x31, 0x34, 0xf6, 0x6b, 0xf3, 0xe9, 0xfe, - 0x38, 0xef, 0x57, 0x0a, 0xe8, 0xe7, 0x9c, 0xed, 0x6f, 0x26, 0xa6, 0x4a, 0x89, 0xd0, 0x1e, 0x5e, - 0x34, 0x22, 0xa6, 0xf3, 0xad, 0x02, 0x73, 0xfd, 0x9d, 0x67, 0x7d, 0x94, 0x48, 0x88, 0xd3, 0xde, - 0xfa, 0x7f, 0x71, 0x31, 0xc1, 0x4f, 0x20, 0xd7, 0xf3, 0x30, 0xb9, 0x9b, 0x98, 0x3b, 0x11, 0xab, - 0x2d, 0xf7, 0x8f, 0x6d, 0xd5, 0x2e, 0x6d, 0x1c, 0xfe, 0xae, 0x67, 0x0e, 0x8f, 0x75, 0xe5, 0xf9, - 0xb1, 0xae, 0xfc, 0x76, 0xac, 0x2b, 0x5f, 0x9f, 0xe8, 0x99, 0xe7, 0x27, 0x7a, 0xe6, 0xd7, 0x13, - 0x3d, 0xf3, 0x51, 0xbe, 0xe3, 0x42, 0x46, 0x76, 0xc8, 0x62, 0x80, 0xf9, 0x13, 0x42, 0x77, 0xc3, - 0xe7, 0xe2, 0x7e, 0xeb, 0xf3, 0x53, 0xdc, 0xcb, 0xb6, 0x87, 0xc5, 0xb7, 0xe7, 0xfd, 0xff, 0x02, - 0x00, 0x00, 0xff, 0xff, 0x4a, 0x82, 0x54, 0xbb, 0x0a, 0x0f, 0x00, 0x00, -} + // 1188 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x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e, 0x02, 0xd2, 0xd0, + 0xf3, 0xeb, 0x56, 0x64, 0xed, 0x48, 0xac, 0x5c, 0x1c, 0x1d, 0xdb, 0xe9, 0x5d, 0xda, 0x3c, 0xfc, + 0x4d, 0x49, 0x1c, 0x1e, 0x29, 0xc2, 0xd3, 0x23, 0x45, 0xf8, 0xf5, 0x48, 0x11, 0xbe, 0x3e, 0x56, + 0x12, 0x4f, 0x8f, 0x95, 0xc4, 0x2f, 0xc7, 0x4a, 0xe2, 0xc3, 0x5c, 0xcf, 0x1d, 0x90, 0xec, 0x92, + 0x65, 0x07, 0x7b, 0x8f, 0x88, 0xbb, 0xe7, 0x3f, 0x17, 0x0e, 0x3a, 0xff, 0x04, 0xb0, 0xab, 0xe0, + 0xce, 0x38, 0xfb, 0x1b, 0xe0, 0xce, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x0e, 0x61, 0xdf, 0x36, + 0x95, 0x10, 0x00, 0x00, +} + +func (this *MsgLegacyGovUpdateParams) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + that1, ok := that.(*MsgLegacyGovUpdateParams) + if !ok { + that2, ok := that.(MsgLegacyGovUpdateParams) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.Authority != that1.Authority { + return false + } + if this.Title != that1.Title { + return false + } + if this.Description != that1.Description { + return false + } + if len(this.Keys) != len(that1.Keys) { + return false + } + for i := range this.Keys { + if this.Keys[i] != that1.Keys[i] { + return false + } + } + if !this.Changes.Equal(&that1.Changes) { + return false + } + return true +} func (this *MsgGovUpdateParams) Equal(that interface{}) bool { if that == nil { return this == nil @@ -1036,6 +1163,8 @@ type MsgClient interface { AggregateExchangeRateVote(ctx context.Context, in *MsgAggregateExchangeRateVote, opts ...grpc.CallOption) (*MsgAggregateExchangeRateVoteResponse, error) // DelegateFeedConsent defines a method for setting the feeder delegation. DelegateFeedConsent(ctx context.Context, in *MsgDelegateFeedConsent, opts ...grpc.CallOption) (*MsgDelegateFeedConsentResponse, error) + // LegacyGovUpdateParams defines the legacy message that updates the oracle parameters. + LegacyGovUpdateParams(ctx context.Context, in *MsgLegacyGovUpdateParams, opts ...grpc.CallOption) (*MsgLegacyGovUpdateParamsResponse, error) // GovUpdateParams updates the oracle parameters. GovUpdateParams(ctx context.Context, in *MsgGovUpdateParams, opts ...grpc.CallOption) (*MsgGovUpdateParamsResponse, error) // GovAddDenoms updates the oracle parameters to include a new tokens. @@ -1085,6 +1214,15 @@ func (c *msgClient) DelegateFeedConsent(ctx context.Context, in *MsgDelegateFeed return out, nil } +func (c *msgClient) LegacyGovUpdateParams(ctx context.Context, in *MsgLegacyGovUpdateParams, opts ...grpc.CallOption) (*MsgLegacyGovUpdateParamsResponse, error) { + out := new(MsgLegacyGovUpdateParamsResponse) + err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Msg/LegacyGovUpdateParams", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *msgClient) GovUpdateParams(ctx context.Context, in *MsgGovUpdateParams, opts ...grpc.CallOption) (*MsgGovUpdateParamsResponse, error) { out := new(MsgGovUpdateParamsResponse) err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Msg/GovUpdateParams", in, out, opts...) @@ -1140,6 +1278,8 @@ type MsgServer interface { AggregateExchangeRateVote(context.Context, *MsgAggregateExchangeRateVote) (*MsgAggregateExchangeRateVoteResponse, error) // DelegateFeedConsent defines a method for setting the feeder delegation. DelegateFeedConsent(context.Context, *MsgDelegateFeedConsent) (*MsgDelegateFeedConsentResponse, error) + // LegacyGovUpdateParams defines the legacy message that updates the oracle parameters. + LegacyGovUpdateParams(context.Context, *MsgLegacyGovUpdateParams) (*MsgLegacyGovUpdateParamsResponse, error) // GovUpdateParams updates the oracle parameters. GovUpdateParams(context.Context, *MsgGovUpdateParams) (*MsgGovUpdateParamsResponse, error) // GovAddDenoms updates the oracle parameters to include a new tokens. @@ -1167,6 +1307,9 @@ func (*UnimplementedMsgServer) AggregateExchangeRateVote(ctx context.Context, re func (*UnimplementedMsgServer) DelegateFeedConsent(ctx context.Context, req *MsgDelegateFeedConsent) (*MsgDelegateFeedConsentResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DelegateFeedConsent not implemented") } +func (*UnimplementedMsgServer) LegacyGovUpdateParams(ctx context.Context, req *MsgLegacyGovUpdateParams) (*MsgLegacyGovUpdateParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method LegacyGovUpdateParams not implemented") +} func (*UnimplementedMsgServer) GovUpdateParams(ctx context.Context, req *MsgGovUpdateParams) (*MsgGovUpdateParamsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GovUpdateParams not implemented") } @@ -1241,6 +1384,24 @@ func _Msg_DelegateFeedConsent_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } +func _Msg_LegacyGovUpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgLegacyGovUpdateParams) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).LegacyGovUpdateParams(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ojo.oracle.v1.Msg/LegacyGovUpdateParams", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).LegacyGovUpdateParams(ctx, req.(*MsgLegacyGovUpdateParams)) + } + return interceptor(ctx, in, info, handler) +} + func _Msg_GovUpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(MsgGovUpdateParams) if err := dec(in); err != nil { @@ -1347,6 +1508,10 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ MethodName: "DelegateFeedConsent", Handler: _Msg_DelegateFeedConsent_Handler, }, + { + MethodName: "LegacyGovUpdateParams", + Handler: _Msg_LegacyGovUpdateParams_Handler, + }, { MethodName: "GovUpdateParams", Handler: _Msg_GovUpdateParams_Handler, @@ -1573,6 +1738,92 @@ func (m *MsgDelegateFeedConsentResponse) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } +func (m *MsgLegacyGovUpdateParams) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgLegacyGovUpdateParams) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgLegacyGovUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Changes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + if len(m.Keys) > 0 { + for iNdEx := len(m.Keys) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Keys[iNdEx]) + copy(dAtA[i:], m.Keys[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.Keys[iNdEx]))) + i-- + dAtA[i] = 0x22 + } + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintTx(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x1a + } + if len(m.Title) > 0 { + i -= len(m.Title) + copy(dAtA[i:], m.Title) + i = encodeVarintTx(dAtA, i, uint64(len(m.Title))) + i-- + dAtA[i] = 0x12 + } + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgLegacyGovUpdateParamsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgLegacyGovUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgLegacyGovUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + func (m *MsgGovUpdateParams) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -2126,6 +2377,44 @@ func (m *MsgDelegateFeedConsentResponse) Size() (n int) { return n } +func (m *MsgLegacyGovUpdateParams) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Title) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.Keys) > 0 { + for _, s := range m.Keys { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } + } + l = m.Changes.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgLegacyGovUpdateParamsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + func (m *MsgGovUpdateParams) Size() (n int) { if m == nil { return 0 @@ -2921,6 +3210,267 @@ func (m *MsgDelegateFeedConsentResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *MsgLegacyGovUpdateParams) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgLegacyGovUpdateParams: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgLegacyGovUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Title = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Keys", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Keys = append(m.Keys, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Changes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Changes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgLegacyGovUpdateParamsResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgLegacyGovUpdateParamsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgLegacyGovUpdateParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *MsgGovUpdateParams) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0