diff --git a/CHANGELOG.md b/CHANGELOG.md index 49d5f805e2..1f1d433711 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -54,6 +54,10 @@ Ref: https://keepachangelog.com/en/1.0.0/ - [2134](https://github.com/umee-network/umee/pull/2134) Bump CometBFT to 34.29. +### API Breaking + +- [2140](https://github.com/umee-network/umee/pull/2140) + ## [v5.1.0](https://github.com/umee-network/umee/releases/tag/v5.1.0) - 2023-07-07 ### Bug Fixes diff --git a/proto/umee/ugov/v1/events.proto b/proto/umee/ugov/v1/events.proto index 5f573f6e15..4da45564e9 100644 --- a/proto/umee/ugov/v1/events.proto +++ b/proto/umee/ugov/v1/events.proto @@ -8,9 +8,9 @@ import "gogoproto/gogo.proto"; option go_package = "github.com/umee-network/umee/v5/x/ugov"; option (gogoproto.goproto_getters_all) = false; -// EventMinTxFees is emitted when MsgGovUpdateMinFees is correctly executed. -message EventMinTxFees { - repeated cosmos.base.v1beta1.DecCoin min_tx_fees = 1 [(gogoproto.nullable) = false]; +// EventMinGasPrice is emitted when MsgGovUpdateMinGasPrice is correctly executed. +message EventMinGasPrice { + repeated cosmos.base.v1beta1.DecCoin min_gas_prices = 1 [(gogoproto.nullable) = false]; } // EventEmergencyGroup is emitted when MsgGovSetEmergencyGroup is correctly executed. diff --git a/x/ugov/events.pb.go b/x/ugov/events.pb.go index d8d2e524c7..a2ed607097 100644 --- a/x/ugov/events.pb.go +++ b/x/ugov/events.pb.go @@ -25,23 +25,23 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -// EventMinTxFees is emitted when MsgGovUpdateMinFees is correctly executed. -type EventMinTxFees struct { - MinTxFees []types.DecCoin `protobuf:"bytes,1,rep,name=min_tx_fees,json=minTxFees,proto3" json:"min_tx_fees"` +// EventMinGasPrice is emitted when MsgGovUpdateMinGasPrice is correctly executed. +type EventMinGasPrice struct { + MinGasPrices []types.DecCoin `protobuf:"bytes,1,rep,name=min_gas_prices,json=minGasPrices,proto3" json:"min_gas_prices"` } -func (m *EventMinTxFees) Reset() { *m = EventMinTxFees{} } -func (m *EventMinTxFees) String() string { return proto.CompactTextString(m) } -func (*EventMinTxFees) ProtoMessage() {} -func (*EventMinTxFees) Descriptor() ([]byte, []int) { +func (m *EventMinGasPrice) Reset() { *m = EventMinGasPrice{} } +func (m *EventMinGasPrice) String() string { return proto.CompactTextString(m) } +func (*EventMinGasPrice) ProtoMessage() {} +func (*EventMinGasPrice) Descriptor() ([]byte, []int) { return fileDescriptor_0885cdf0808da4ea, []int{0} } -func (m *EventMinTxFees) XXX_Unmarshal(b []byte) error { +func (m *EventMinGasPrice) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *EventMinTxFees) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *EventMinGasPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_EventMinTxFees.Marshal(b, m, deterministic) + return xxx_messageInfo_EventMinGasPrice.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -51,17 +51,17 @@ func (m *EventMinTxFees) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return b[:n], nil } } -func (m *EventMinTxFees) XXX_Merge(src proto.Message) { - xxx_messageInfo_EventMinTxFees.Merge(m, src) +func (m *EventMinGasPrice) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventMinGasPrice.Merge(m, src) } -func (m *EventMinTxFees) XXX_Size() int { +func (m *EventMinGasPrice) XXX_Size() int { return m.Size() } -func (m *EventMinTxFees) XXX_DiscardUnknown() { - xxx_messageInfo_EventMinTxFees.DiscardUnknown(m) +func (m *EventMinGasPrice) XXX_DiscardUnknown() { + xxx_messageInfo_EventMinGasPrice.DiscardUnknown(m) } -var xxx_messageInfo_EventMinTxFees proto.InternalMessageInfo +var xxx_messageInfo_EventMinGasPrice proto.InternalMessageInfo // EventEmergencyGroup is emitted when MsgGovSetEmergencyGroup is correctly executed. type EventEmergencyGroup struct { @@ -102,37 +102,37 @@ func (m *EventEmergencyGroup) XXX_DiscardUnknown() { var xxx_messageInfo_EventEmergencyGroup proto.InternalMessageInfo func init() { - proto.RegisterType((*EventMinTxFees)(nil), "umee.ugov.v1.EventMinTxFees") + proto.RegisterType((*EventMinGasPrice)(nil), "umee.ugov.v1.EventMinGasPrice") proto.RegisterType((*EventEmergencyGroup)(nil), "umee.ugov.v1.EventEmergencyGroup") } func init() { proto.RegisterFile("umee/ugov/v1/events.proto", fileDescriptor_0885cdf0808da4ea) } var fileDescriptor_0885cdf0808da4ea = []byte{ - // 306 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x90, 0xc1, 0x4e, 0xf2, 0x40, - 0x14, 0x85, 0xdb, 0xfc, 0x7f, 0x4c, 0x28, 0x06, 0x13, 0x64, 0x01, 0xc4, 0x8c, 0x84, 0x85, 0x61, - 0xc3, 0x4c, 0xaa, 0xf1, 0x01, 0xa8, 0xa0, 0x2b, 0x37, 0xc8, 0xc2, 0xb8, 0x69, 0x68, 0xb9, 0x8e, - 0x8d, 0x99, 0xb9, 0x64, 0x66, 0x3a, 0xe2, 0x5b, 0xf8, 0x30, 0x3e, 0x04, 0x4b, 0xe2, 0xca, 0x95, - 0x51, 0x78, 0x11, 0x33, 0x6d, 0x59, 0xb8, 0x9b, 0x73, 0xce, 0xe4, 0x7c, 0xb9, 0x27, 0xe8, 0xe4, - 0x02, 0x80, 0xe5, 0x1c, 0x2d, 0xb3, 0x21, 0x03, 0x0b, 0xd2, 0x68, 0xba, 0x54, 0x68, 0xb0, 0x79, - 0xe8, 0x22, 0xea, 0x22, 0x6a, 0xc3, 0x2e, 0x49, 0x51, 0x0b, 0xd4, 0x2c, 0x99, 0x6b, 0x60, 0x36, - 0x4c, 0xc0, 0xcc, 0x43, 0x96, 0x62, 0x26, 0xcb, 0xdf, 0xdd,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0x00, + // 308 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x90, 0x41, 0x4a, 0xc3, 0x40, + 0x18, 0x85, 0x13, 0x14, 0xc1, 0x58, 0xaa, 0xd4, 0x2e, 0xda, 0x22, 0x63, 0xe9, 0x42, 0xba, 0xe9, + 0x0c, 0x51, 0x3c, 0x40, 0x6b, 0x4b, 0xdd, 0x08, 0x52, 0x37, 0x22, 0x42, 0x49, 0xa6, 0x3f, 0xe3, + 0x20, 0x99, 0xbf, 0xcc, 0x24, 0xa3, 0xde, 0xc2, 0xc3, 0x78, 0x88, 0x2e, 0x8b, 0x2b, 0x57, 0xa2, + 0xcd, 0x45, 0x64, 0x92, 0x88, 0xb8, 0xfb, 0xdf, 0x7b, 0x3f, 0xdf, 0x83, 0x17, 0xb4, 0xb3, 0x04, + 0x80, 0x65, 0x02, 0x2d, 0xb3, 0x21, 0x03, 0x0b, 0x2a, 0x35, 0x74, 0xa9, 0x31, 0xc5, 0x46, 0xcd, + 0x45, 0xd4, 0x45, 0xd4, 0x86, 0x1d, 0xc2, 0xd1, 0x24, 0x68, 0x58, 0x1c, 0x19, 0x60, 0x36, 0x8c, + 0x21, 0x8d, 0x42, 0xc6, 0x51, 0xaa, 0xf2, 0xbb, 0xd3, 0x2e, 0xf3, 0x79, 0xa1, 0x58, 0x29, 0xaa, + 0xa8, 0x29, 0x50, 0x60, 0xe9, 0xbb, 0xab, 0x74, 0x7b, 0xf7, 0xc1, 0xc1, 0xc4, 0xd5, 0x5d, 0x49, + 0x35, 0x8d, 0xcc, 0xb5, 0x96, 0x1c, 0x1a, 0x97, 0x41, 0x3d, 0x91, 0x6a, 0x2e, 0x22, 0xc7, 0x91, + 0x1c, 0x4c, 0xcb, 0xef, 0x6e, 0xf5, 0xf7, 0x4e, 0x8f, 0x68, 0x05, 0x74, 0xed, 0xb4, 0x6a, 0xa7, + 0x63, 0xe0, 0x17, 0x28, 0xd5, 0x68, 0x7b, 0xf5, 0x79, 0xec, 0xcd, 0x6a, 0xc9, 0x1f, 0xc8, 0xf4, + 0x6e, 0x83, 0xc3, 0x82, 0x3e, 0x49, 0x40, 0x0b, 0x50, 0xfc, 0x65, 0xaa, 0x31, 0x5b, 0x36, 0x86, + 0xc1, 0x3e, 0xfc, 0x3a, 0x73, 0xe1, 0xac, 0x96, 0xdf, 0xf5, 0xfb, 0xbb, 0xa3, 0xd6, 0xfb, 0xdb, + 0xa0, 0x59, 0x95, 0x0c, 0x17, 0x0b, 0x0d, 0xc6, 0xdc, 0xa4, 0x5a, 0x2a, 0x31, 0xab, 0xc3, 0x3f, + 0xc4, 0x68, 0xbc, 0xfa, 0x26, 0xde, 0x6a, 0x43, 0xfc, 0xf5, 0x86, 0xf8, 0x5f, 0x1b, 0xe2, 0xbf, + 0xe6, 0xc4, 0x5b, 0xe7, 0xc4, 0xfb, 0xc8, 0x89, 0x77, 0x77, 0x22, 0x64, 0xfa, 0x90, 0xc5, 0x94, + 0x63, 0xc2, 0xdc, 0x7e, 0x03, 0x05, 0xe9, 0x13, 0xea, 0xc7, 0x42, 0x30, 0x7b, 0xce, 0x9e, 0x8b, + 0xb1, 0xe3, 0x9d, 0x62, 0x84, 0xb3, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xa2, 0x47, 0x3b, 0x1f, + 0x80, 0x01, 0x00, 0x00, } -func (m *EventMinTxFees) Marshal() (dAtA []byte, err error) { +func (m *EventMinGasPrice) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -142,20 +142,20 @@ func (m *EventMinTxFees) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *EventMinTxFees) MarshalTo(dAtA []byte) (int, error) { +func (m *EventMinGasPrice) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *EventMinTxFees) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *EventMinGasPrice) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.MinTxFees) > 0 { - for iNdEx := len(m.MinTxFees) - 1; iNdEx >= 0; iNdEx-- { + if len(m.MinGasPrices) > 0 { + for iNdEx := len(m.MinGasPrices) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.MinTxFees[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.MinGasPrices[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -210,14 +210,14 @@ func encodeVarintEvents(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } -func (m *EventMinTxFees) Size() (n int) { +func (m *EventMinGasPrice) Size() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.MinTxFees) > 0 { - for _, e := range m.MinTxFees { + if len(m.MinGasPrices) > 0 { + for _, e := range m.MinGasPrices { l = e.Size() n += 1 + l + sovEvents(uint64(l)) } @@ -244,7 +244,7 @@ func sovEvents(x uint64) (n int) { func sozEvents(x uint64) (n int) { return sovEvents(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *EventMinTxFees) Unmarshal(dAtA []byte) error { +func (m *EventMinGasPrice) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -267,15 +267,15 @@ func (m *EventMinTxFees) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EventMinTxFees: wiretype end group for non-group") + return fmt.Errorf("proto: EventMinGasPrice: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EventMinTxFees: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EventMinGasPrice: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MinTxFees", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field MinGasPrices", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -302,8 +302,8 @@ func (m *EventMinTxFees) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.MinTxFees = append(m.MinTxFees, types.DecCoin{}) - if err := m.MinTxFees[len(m.MinTxFees)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.MinGasPrices = append(m.MinGasPrices, types.DecCoin{}) + if err := m.MinGasPrices[len(m.MinGasPrices)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex diff --git a/x/ugov/keeper/msg_server.go b/x/ugov/keeper/msg_server.go index 59573ed964..de8c8a1b02 100644 --- a/x/ugov/keeper/msg_server.go +++ b/x/ugov/keeper/msg_server.go @@ -29,8 +29,8 @@ func (m msgServer) GovUpdateMinGasPrice(ctx context.Context, msg *ugov.MsgGovUpd if err := k.SetMinGasPrice(msg.MinGasPrice); err != nil { return nil, err } - sdkutil.Emit(&sdkCtx, &ugov.EventMinTxFees{ - MinTxFees: sdk.NewDecCoins(msg.MinGasPrice), + sdkutil.Emit(&sdkCtx, &ugov.EventMinGasPrice{ + MinGasPrices: sdk.NewDecCoins(msg.MinGasPrice), }) return &ugov.MsgGovUpdateMinGasPriceResponse{}, nil