diff --git a/api/feemarket/feemarket/v1/genesis.pulsar.go b/api/feemarket/feemarket/v1/genesis.pulsar.go index f85d0b6..4a13c4b 100644 --- a/api/feemarket/feemarket/v1/genesis.pulsar.go +++ b/api/feemarket/feemarket/v1/genesis.pulsar.go @@ -15,20 +15,16 @@ import ( ) var ( - md_GenesisState protoreflect.MessageDescriptor - fd_GenesisState_params protoreflect.FieldDescriptor - fd_GenesisState_base_fee protoreflect.FieldDescriptor - fd_GenesisState_learning_rate protoreflect.FieldDescriptor - fd_GenesisState_utilization protoreflect.FieldDescriptor + md_GenesisState protoreflect.MessageDescriptor + fd_GenesisState_params protoreflect.FieldDescriptor + fd_GenesisState_state protoreflect.FieldDescriptor ) func init() { file_feemarket_feemarket_v1_genesis_proto_init() md_GenesisState = File_feemarket_feemarket_v1_genesis_proto.Messages().ByName("GenesisState") fd_GenesisState_params = md_GenesisState.Fields().ByName("params") - fd_GenesisState_base_fee = md_GenesisState.Fields().ByName("base_fee") - fd_GenesisState_learning_rate = md_GenesisState.Fields().ByName("learning_rate") - fd_GenesisState_utilization = md_GenesisState.Fields().ByName("utilization") + fd_GenesisState_state = md_GenesisState.Fields().ByName("state") } var _ protoreflect.Message = (*fastReflection_GenesisState)(nil) @@ -102,21 +98,9 @@ func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, return } } - if x.BaseFee != "" { - value := protoreflect.ValueOfString(x.BaseFee) - if !f(fd_GenesisState_base_fee, value) { - return - } - } - if x.LearningRate != "" { - value := protoreflect.ValueOfString(x.LearningRate) - if !f(fd_GenesisState_learning_rate, value) { - return - } - } - if x.Utilization != nil { - value := protoreflect.ValueOfMessage(x.Utilization.ProtoReflect()) - if !f(fd_GenesisState_utilization, value) { + if x.State != nil { + value := protoreflect.ValueOfMessage(x.State.ProtoReflect()) + if !f(fd_GenesisState_state, value) { return } } @@ -137,12 +121,8 @@ func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool switch fd.FullName() { case "feemarket.feemarket.v1.GenesisState.params": return x.Params != nil - case "feemarket.feemarket.v1.GenesisState.base_fee": - return x.BaseFee != "" - case "feemarket.feemarket.v1.GenesisState.learning_rate": - return x.LearningRate != "" - case "feemarket.feemarket.v1.GenesisState.utilization": - return x.Utilization != nil + case "feemarket.feemarket.v1.GenesisState.state": + return x.State != nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.GenesisState")) @@ -161,12 +141,8 @@ func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "feemarket.feemarket.v1.GenesisState.params": x.Params = nil - case "feemarket.feemarket.v1.GenesisState.base_fee": - x.BaseFee = "" - case "feemarket.feemarket.v1.GenesisState.learning_rate": - x.LearningRate = "" - case "feemarket.feemarket.v1.GenesisState.utilization": - x.Utilization = nil + case "feemarket.feemarket.v1.GenesisState.state": + x.State = nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.GenesisState")) @@ -186,14 +162,8 @@ func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescripto case "feemarket.feemarket.v1.GenesisState.params": value := x.Params return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "feemarket.feemarket.v1.GenesisState.base_fee": - value := x.BaseFee - return protoreflect.ValueOfString(value) - case "feemarket.feemarket.v1.GenesisState.learning_rate": - value := x.LearningRate - return protoreflect.ValueOfString(value) - case "feemarket.feemarket.v1.GenesisState.utilization": - value := x.Utilization + case "feemarket.feemarket.v1.GenesisState.state": + value := x.State return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { @@ -217,12 +187,8 @@ func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value switch fd.FullName() { case "feemarket.feemarket.v1.GenesisState.params": x.Params = value.Message().Interface().(*Params) - case "feemarket.feemarket.v1.GenesisState.base_fee": - x.BaseFee = value.Interface().(string) - case "feemarket.feemarket.v1.GenesisState.learning_rate": - x.LearningRate = value.Interface().(string) - case "feemarket.feemarket.v1.GenesisState.utilization": - x.Utilization = value.Message().Interface().(*BlockUtilization) + case "feemarket.feemarket.v1.GenesisState.state": + x.State = value.Message().Interface().(*State) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.GenesisState")) @@ -248,15 +214,11 @@ func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) p x.Params = new(Params) } return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) - case "feemarket.feemarket.v1.GenesisState.utilization": - if x.Utilization == nil { - x.Utilization = new(BlockUtilization) + case "feemarket.feemarket.v1.GenesisState.state": + if x.State == nil { + x.State = new(State) } - return protoreflect.ValueOfMessage(x.Utilization.ProtoReflect()) - case "feemarket.feemarket.v1.GenesisState.base_fee": - panic(fmt.Errorf("field base_fee of message feemarket.feemarket.v1.GenesisState is not mutable")) - case "feemarket.feemarket.v1.GenesisState.learning_rate": - panic(fmt.Errorf("field learning_rate of message feemarket.feemarket.v1.GenesisState is not mutable")) + return protoreflect.ValueOfMessage(x.State.ProtoReflect()) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.GenesisState")) @@ -273,12 +235,8 @@ func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) case "feemarket.feemarket.v1.GenesisState.params": m := new(Params) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "feemarket.feemarket.v1.GenesisState.base_fee": - return protoreflect.ValueOfString("") - case "feemarket.feemarket.v1.GenesisState.learning_rate": - return protoreflect.ValueOfString("") - case "feemarket.feemarket.v1.GenesisState.utilization": - m := new(BlockUtilization) + case "feemarket.feemarket.v1.GenesisState.state": + m := new(State) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { @@ -353,16 +311,8 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { l = options.Size(x.Params) n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.BaseFee) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.LearningRate) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Utilization != nil { - l = options.Size(x.Utilization) + if x.State != nil { + l = options.Size(x.State) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -394,8 +344,8 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Utilization != nil { - encoded, err := options.Marshal(x.Utilization) + if x.State != nil { + encoded, err := options.Marshal(x.State) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -406,20 +356,6 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x22 - } - if len(x.LearningRate) > 0 { - i -= len(x.LearningRate) - copy(dAtA[i:], x.LearningRate) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.LearningRate))) - i-- - dAtA[i] = 0x1a - } - if len(x.BaseFee) > 0 { - i -= len(x.BaseFee) - copy(dAtA[i:], x.BaseFee) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BaseFee))) - i-- dAtA[i] = 0x12 } if x.Params != nil { @@ -523,71 +459,7 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { iNdEx = postIndex case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BaseFee", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.BaseFee = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LearningRate", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.LearningRate = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Utilization", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field State", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -614,10 +486,10 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.Utilization == nil { - x.Utilization = &BlockUtilization{} + if x.State == nil { + x.State = &State{} } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Utilization); err != nil { + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.State); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -656,74 +528,78 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { } } -var _ protoreflect.List = (*_BlockUtilization_1_list)(nil) +var _ protoreflect.List = (*_State_3_list)(nil) -type _BlockUtilization_1_list struct { +type _State_3_list struct { list *[]uint64 } -func (x *_BlockUtilization_1_list) Len() int { +func (x *_State_3_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_BlockUtilization_1_list) Get(i int) protoreflect.Value { +func (x *_State_3_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfUint64((*x.list)[i]) } -func (x *_BlockUtilization_1_list) Set(i int, value protoreflect.Value) { +func (x *_State_3_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Uint() concreteValue := valueUnwrapped (*x.list)[i] = concreteValue } -func (x *_BlockUtilization_1_list) Append(value protoreflect.Value) { +func (x *_State_3_list) Append(value protoreflect.Value) { valueUnwrapped := value.Uint() concreteValue := valueUnwrapped *x.list = append(*x.list, concreteValue) } -func (x *_BlockUtilization_1_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message BlockUtilization at list field Window as it is not of Message kind")) +func (x *_State_3_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message State at list field Window as it is not of Message kind")) } -func (x *_BlockUtilization_1_list) Truncate(n int) { +func (x *_State_3_list) Truncate(n int) { *x.list = (*x.list)[:n] } -func (x *_BlockUtilization_1_list) NewElement() protoreflect.Value { +func (x *_State_3_list) NewElement() protoreflect.Value { v := uint64(0) return protoreflect.ValueOfUint64(v) } -func (x *_BlockUtilization_1_list) IsValid() bool { +func (x *_State_3_list) IsValid() bool { return x.list != nil } var ( - md_BlockUtilization protoreflect.MessageDescriptor - fd_BlockUtilization_window protoreflect.FieldDescriptor - fd_BlockUtilization_index protoreflect.FieldDescriptor + md_State protoreflect.MessageDescriptor + fd_State_base_fee protoreflect.FieldDescriptor + fd_State_learning_rate protoreflect.FieldDescriptor + fd_State_window protoreflect.FieldDescriptor + fd_State_index protoreflect.FieldDescriptor ) func init() { file_feemarket_feemarket_v1_genesis_proto_init() - md_BlockUtilization = File_feemarket_feemarket_v1_genesis_proto.Messages().ByName("BlockUtilization") - fd_BlockUtilization_window = md_BlockUtilization.Fields().ByName("window") - fd_BlockUtilization_index = md_BlockUtilization.Fields().ByName("index") + md_State = File_feemarket_feemarket_v1_genesis_proto.Messages().ByName("State") + fd_State_base_fee = md_State.Fields().ByName("base_fee") + fd_State_learning_rate = md_State.Fields().ByName("learning_rate") + fd_State_window = md_State.Fields().ByName("window") + fd_State_index = md_State.Fields().ByName("index") } -var _ protoreflect.Message = (*fastReflection_BlockUtilization)(nil) +var _ protoreflect.Message = (*fastReflection_State)(nil) -type fastReflection_BlockUtilization BlockUtilization +type fastReflection_State State -func (x *BlockUtilization) ProtoReflect() protoreflect.Message { - return (*fastReflection_BlockUtilization)(x) +func (x *State) ProtoReflect() protoreflect.Message { + return (*fastReflection_State)(x) } -func (x *BlockUtilization) slowProtoReflect() protoreflect.Message { +func (x *State) slowProtoReflect() protoreflect.Message { mi := &file_feemarket_feemarket_v1_genesis_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -735,43 +611,43 @@ func (x *BlockUtilization) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_BlockUtilization_messageType fastReflection_BlockUtilization_messageType -var _ protoreflect.MessageType = fastReflection_BlockUtilization_messageType{} +var _fastReflection_State_messageType fastReflection_State_messageType +var _ protoreflect.MessageType = fastReflection_State_messageType{} -type fastReflection_BlockUtilization_messageType struct{} +type fastReflection_State_messageType struct{} -func (x fastReflection_BlockUtilization_messageType) Zero() protoreflect.Message { - return (*fastReflection_BlockUtilization)(nil) +func (x fastReflection_State_messageType) Zero() protoreflect.Message { + return (*fastReflection_State)(nil) } -func (x fastReflection_BlockUtilization_messageType) New() protoreflect.Message { - return new(fastReflection_BlockUtilization) +func (x fastReflection_State_messageType) New() protoreflect.Message { + return new(fastReflection_State) } -func (x fastReflection_BlockUtilization_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_BlockUtilization +func (x fastReflection_State_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_State } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_BlockUtilization) Descriptor() protoreflect.MessageDescriptor { - return md_BlockUtilization +func (x *fastReflection_State) Descriptor() protoreflect.MessageDescriptor { + return md_State } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_BlockUtilization) Type() protoreflect.MessageType { - return _fastReflection_BlockUtilization_messageType +func (x *fastReflection_State) Type() protoreflect.MessageType { + return _fastReflection_State_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_BlockUtilization) New() protoreflect.Message { - return new(fastReflection_BlockUtilization) +func (x *fastReflection_State) New() protoreflect.Message { + return new(fastReflection_State) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_BlockUtilization) Interface() protoreflect.ProtoMessage { - return (*BlockUtilization)(x) +func (x *fastReflection_State) Interface() protoreflect.ProtoMessage { + return (*State)(x) } // Range iterates over every populated field in an undefined order, @@ -779,16 +655,28 @@ func (x *fastReflection_BlockUtilization) Interface() protoreflect.ProtoMessage // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_BlockUtilization) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_State) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.BaseFee != "" { + value := protoreflect.ValueOfString(x.BaseFee) + if !f(fd_State_base_fee, value) { + return + } + } + if x.LearningRate != "" { + value := protoreflect.ValueOfString(x.LearningRate) + if !f(fd_State_learning_rate, value) { + return + } + } if len(x.Window) != 0 { - value := protoreflect.ValueOfList(&_BlockUtilization_1_list{list: &x.Window}) - if !f(fd_BlockUtilization_window, value) { + value := protoreflect.ValueOfList(&_State_3_list{list: &x.Window}) + if !f(fd_State_window, value) { return } } if x.Index != uint64(0) { value := protoreflect.ValueOfUint64(x.Index) - if !f(fd_BlockUtilization_index, value) { + if !f(fd_State_index, value) { return } } @@ -805,17 +693,21 @@ func (x *fastReflection_BlockUtilization) Range(f func(protoreflect.FieldDescrip // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_BlockUtilization) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_State) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "feemarket.feemarket.v1.BlockUtilization.window": + case "feemarket.feemarket.v1.State.base_fee": + return x.BaseFee != "" + case "feemarket.feemarket.v1.State.learning_rate": + return x.LearningRate != "" + case "feemarket.feemarket.v1.State.window": return len(x.Window) != 0 - case "feemarket.feemarket.v1.BlockUtilization.index": + case "feemarket.feemarket.v1.State.index": return x.Index != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.BlockUtilization")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.State")) } - panic(fmt.Errorf("message feemarket.feemarket.v1.BlockUtilization does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message feemarket.feemarket.v1.State does not contain field %s", fd.FullName())) } } @@ -825,17 +717,21 @@ func (x *fastReflection_BlockUtilization) Has(fd protoreflect.FieldDescriptor) b // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_BlockUtilization) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_State) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "feemarket.feemarket.v1.BlockUtilization.window": + case "feemarket.feemarket.v1.State.base_fee": + x.BaseFee = "" + case "feemarket.feemarket.v1.State.learning_rate": + x.LearningRate = "" + case "feemarket.feemarket.v1.State.window": x.Window = nil - case "feemarket.feemarket.v1.BlockUtilization.index": + case "feemarket.feemarket.v1.State.index": x.Index = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.BlockUtilization")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.State")) } - panic(fmt.Errorf("message feemarket.feemarket.v1.BlockUtilization does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message feemarket.feemarket.v1.State does not contain field %s", fd.FullName())) } } @@ -845,22 +741,28 @@ func (x *fastReflection_BlockUtilization) Clear(fd protoreflect.FieldDescriptor) // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_BlockUtilization) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_State) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "feemarket.feemarket.v1.BlockUtilization.window": + case "feemarket.feemarket.v1.State.base_fee": + value := x.BaseFee + return protoreflect.ValueOfString(value) + case "feemarket.feemarket.v1.State.learning_rate": + value := x.LearningRate + return protoreflect.ValueOfString(value) + case "feemarket.feemarket.v1.State.window": if len(x.Window) == 0 { - return protoreflect.ValueOfList(&_BlockUtilization_1_list{}) + return protoreflect.ValueOfList(&_State_3_list{}) } - listValue := &_BlockUtilization_1_list{list: &x.Window} + listValue := &_State_3_list{list: &x.Window} return protoreflect.ValueOfList(listValue) - case "feemarket.feemarket.v1.BlockUtilization.index": + case "feemarket.feemarket.v1.State.index": value := x.Index return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.BlockUtilization")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.State")) } - panic(fmt.Errorf("message feemarket.feemarket.v1.BlockUtilization does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message feemarket.feemarket.v1.State does not contain field %s", descriptor.FullName())) } } @@ -874,19 +776,23 @@ func (x *fastReflection_BlockUtilization) Get(descriptor protoreflect.FieldDescr // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_BlockUtilization) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_State) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "feemarket.feemarket.v1.BlockUtilization.window": + case "feemarket.feemarket.v1.State.base_fee": + x.BaseFee = value.Interface().(string) + case "feemarket.feemarket.v1.State.learning_rate": + x.LearningRate = value.Interface().(string) + case "feemarket.feemarket.v1.State.window": lv := value.List() - clv := lv.(*_BlockUtilization_1_list) + clv := lv.(*_State_3_list) x.Window = *clv.list - case "feemarket.feemarket.v1.BlockUtilization.index": + case "feemarket.feemarket.v1.State.index": x.Index = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.BlockUtilization")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.State")) } - panic(fmt.Errorf("message feemarket.feemarket.v1.BlockUtilization does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message feemarket.feemarket.v1.State does not contain field %s", fd.FullName())) } } @@ -900,49 +806,57 @@ func (x *fastReflection_BlockUtilization) Set(fd protoreflect.FieldDescriptor, v // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_BlockUtilization) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_State) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "feemarket.feemarket.v1.BlockUtilization.window": + case "feemarket.feemarket.v1.State.window": if x.Window == nil { x.Window = []uint64{} } - value := &_BlockUtilization_1_list{list: &x.Window} + value := &_State_3_list{list: &x.Window} return protoreflect.ValueOfList(value) - case "feemarket.feemarket.v1.BlockUtilization.index": - panic(fmt.Errorf("field index of message feemarket.feemarket.v1.BlockUtilization is not mutable")) + case "feemarket.feemarket.v1.State.base_fee": + panic(fmt.Errorf("field base_fee of message feemarket.feemarket.v1.State is not mutable")) + case "feemarket.feemarket.v1.State.learning_rate": + panic(fmt.Errorf("field learning_rate of message feemarket.feemarket.v1.State is not mutable")) + case "feemarket.feemarket.v1.State.index": + panic(fmt.Errorf("field index of message feemarket.feemarket.v1.State is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.BlockUtilization")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.State")) } - panic(fmt.Errorf("message feemarket.feemarket.v1.BlockUtilization does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message feemarket.feemarket.v1.State does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_BlockUtilization) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_State) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "feemarket.feemarket.v1.BlockUtilization.window": + case "feemarket.feemarket.v1.State.base_fee": + return protoreflect.ValueOfString("") + case "feemarket.feemarket.v1.State.learning_rate": + return protoreflect.ValueOfString("") + case "feemarket.feemarket.v1.State.window": list := []uint64{} - return protoreflect.ValueOfList(&_BlockUtilization_1_list{list: &list}) - case "feemarket.feemarket.v1.BlockUtilization.index": + return protoreflect.ValueOfList(&_State_3_list{list: &list}) + case "feemarket.feemarket.v1.State.index": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.BlockUtilization")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.State")) } - panic(fmt.Errorf("message feemarket.feemarket.v1.BlockUtilization does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message feemarket.feemarket.v1.State does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_BlockUtilization) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_State) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in feemarket.feemarket.v1.BlockUtilization", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in feemarket.feemarket.v1.State", d.FullName())) } panic("unreachable") } @@ -950,7 +864,7 @@ func (x *fastReflection_BlockUtilization) WhichOneof(d protoreflect.OneofDescrip // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_BlockUtilization) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_State) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -961,7 +875,7 @@ func (x *fastReflection_BlockUtilization) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_BlockUtilization) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_State) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -973,7 +887,7 @@ func (x *fastReflection_BlockUtilization) SetUnknown(fields protoreflect.RawFiel // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_BlockUtilization) IsValid() bool { +func (x *fastReflection_State) IsValid() bool { return x != nil } @@ -983,9 +897,9 @@ func (x *fastReflection_BlockUtilization) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_BlockUtilization) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_State) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*BlockUtilization) + x := input.Message.Interface().(*State) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -997,6 +911,14 @@ func (x *fastReflection_BlockUtilization) ProtoMethods() *protoiface.Methods { var n int var l int _ = l + l = len(x.BaseFee) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.LearningRate) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if len(x.Window) > 0 { l = 0 for _, e := range x.Window { @@ -1017,7 +939,7 @@ func (x *fastReflection_BlockUtilization) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*BlockUtilization) + x := input.Message.Interface().(*State) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1059,6 +981,20 @@ func (x *fastReflection_BlockUtilization) ProtoMethods() *protoiface.Methods { } i = runtime.EncodeVarint(dAtA, i, uint64(pksize2)) i-- + dAtA[i] = 0x1a + } + if len(x.LearningRate) > 0 { + i -= len(x.LearningRate) + copy(dAtA[i:], x.LearningRate) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.LearningRate))) + i-- + dAtA[i] = 0x12 + } + if len(x.BaseFee) > 0 { + i -= len(x.BaseFee) + copy(dAtA[i:], x.BaseFee) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BaseFee))) + i-- dAtA[i] = 0xa } if input.Buf != nil { @@ -1072,7 +1008,7 @@ func (x *fastReflection_BlockUtilization) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*BlockUtilization) + x := input.Message.Interface().(*State) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1104,13 +1040,77 @@ func (x *fastReflection_BlockUtilization) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: BlockUtilization: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: State: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: BlockUtilization: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: State: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BaseFee", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.BaseFee = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LearningRate", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.LearningRate = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: if wireType == 0 { var v uint64 for shift := uint(0); ; shift += 7 { @@ -1263,13 +1263,8 @@ type GenesisState struct { // can be utilized to implement both the base EIP-1559 fee market and // and the AIMD EIP-1559 fee market. Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` - // BaseFee is the current base fee. This is denominated in the fee - // per gas unit. - BaseFee string `protobuf:"bytes,2,opt,name=base_fee,json=baseFee,proto3" json:"base_fee,omitempty"` - // LearningRate is the current learning rate. - LearningRate string `protobuf:"bytes,3,opt,name=learning_rate,json=learningRate,proto3" json:"learning_rate,omitempty"` - // Utilization contains the current state of the AIMD fee market. - Utilization *BlockUtilization `protobuf:"bytes,4,opt,name=utilization,proto3" json:"utilization,omitempty"` + // State contains the current state of the AIMD fee market. + State *State `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` } func (x *GenesisState) Reset() { @@ -1299,44 +1294,36 @@ func (x *GenesisState) GetParams() *Params { return nil } -func (x *GenesisState) GetBaseFee() string { - if x != nil { - return x.BaseFee - } - return "" -} - -func (x *GenesisState) GetLearningRate() string { - if x != nil { - return x.LearningRate - } - return "" -} - -func (x *GenesisState) GetUtilization() *BlockUtilization { +func (x *GenesisState) GetState() *State { if x != nil { - return x.Utilization + return x.State } return nil } -// BlockUtilization contains the current state of the AIMD fee market. This -// structure tracks total block utilization within a window of blocks. -type BlockUtilization struct { +// State is utilized to track the current state of the fee market. This includes +// the current base fee, learning rate, and block utilization within the +// specified AIMD window. +type State struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Window contains a list of the last blocks' utilization - // values. This is used to calculate the next base fee. This - // stores the number of units of gas consumed per block. - Window []uint64 `protobuf:"varint,1,rep,packed,name=window,proto3" json:"window,omitempty"` + // BaseFee is the current base fee. This is denominated in the fee per gas + // unit. + BaseFee string `protobuf:"bytes,1,opt,name=base_fee,json=baseFee,proto3" json:"base_fee,omitempty"` + // LearningRate is the current learning rate. + LearningRate string `protobuf:"bytes,2,opt,name=learning_rate,json=learningRate,proto3" json:"learning_rate,omitempty"` + // Window contains a list of the last blocks' utilization values. This is used + // to calculate the next base fee. This stores the number of units of gas + // consumed per block. + Window []uint64 `protobuf:"varint,3,rep,packed,name=window,proto3" json:"window,omitempty"` // Index is the index of the current block in the block utilization window. Index uint64 `protobuf:"varint,4,opt,name=index,proto3" json:"index,omitempty"` } -func (x *BlockUtilization) Reset() { - *x = BlockUtilization{} +func (x *State) Reset() { + *x = State{} if protoimpl.UnsafeEnabled { mi := &file_feemarket_feemarket_v1_genesis_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1344,25 +1331,39 @@ func (x *BlockUtilization) Reset() { } } -func (x *BlockUtilization) String() string { +func (x *State) String() string { return protoimpl.X.MessageStringOf(x) } -func (*BlockUtilization) ProtoMessage() {} +func (*State) ProtoMessage() {} -// Deprecated: Use BlockUtilization.ProtoReflect.Descriptor instead. -func (*BlockUtilization) Descriptor() ([]byte, []int) { +// Deprecated: Use State.ProtoReflect.Descriptor instead. +func (*State) Descriptor() ([]byte, []int) { return file_feemarket_feemarket_v1_genesis_proto_rawDescGZIP(), []int{1} } -func (x *BlockUtilization) GetWindow() []uint64 { +func (x *State) GetBaseFee() string { + if x != nil { + return x.BaseFee + } + return "" +} + +func (x *State) GetLearningRate() string { + if x != nil { + return x.LearningRate + } + return "" +} + +func (x *State) GetWindow() []uint64 { if x != nil { return x.Window } return nil } -func (x *BlockUtilization) GetIndex() uint64 { +func (x *State) GetIndex() uint64 { if x != nil { return x.Index } @@ -1381,45 +1382,43 @@ var file_feemarket_feemarket_v1_genesis_proto_rawDesc = []byte{ 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2f, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc1, 0x02, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, + 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x87, 0x01, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3c, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x70, 0x61, 0x72, - 0x61, 0x6d, 0x73, 0x12, 0x46, 0x0a, 0x08, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x66, 0x65, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2b, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, - 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, - 0x6e, 0x74, 0x52, 0x07, 0x62, 0x61, 0x73, 0x65, 0x46, 0x65, 0x65, 0x12, 0x59, 0x0a, 0x0d, 0x6c, - 0x65, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x34, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x1b, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x4c, 0x65, - 0x67, 0x61, 0x63, 0x79, 0x44, 0x65, 0x63, 0xd2, 0xb4, 0x2d, 0x0d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x52, 0x0c, 0x6c, 0x65, 0x61, 0x72, 0x6e, 0x69, - 0x6e, 0x67, 0x52, 0x61, 0x74, 0x65, 0x12, 0x50, 0x0a, 0x0b, 0x75, 0x74, 0x69, 0x6c, 0x69, 0x7a, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x66, 0x65, - 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, - 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0b, 0x75, 0x74, 0x69, - 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x40, 0x0a, 0x10, 0x42, 0x6c, 0x6f, 0x63, - 0x6b, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, - 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x18, 0x01, 0x20, 0x03, 0x28, 0x04, 0x52, 0x06, 0x77, 0x69, - 0x6e, 0x64, 0x6f, 0x77, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x42, 0xd9, 0x01, 0x0a, 0x1a, 0x63, - 0x6f, 0x6d, 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x66, 0x65, 0x65, - 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, - 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x33, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x65, 0x65, 0x6d, - 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2f, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2f, - 0x76, 0x31, 0x3b, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x76, 0x31, 0xa2, 0x02, - 0x03, 0x46, 0x46, 0x58, 0xaa, 0x02, 0x16, 0x46, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, - 0x2e, 0x46, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x16, - 0x46, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5c, 0x46, 0x65, 0x65, 0x6d, 0x61, 0x72, - 0x6b, 0x65, 0x74, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x22, 0x46, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, - 0x65, 0x74, 0x5c, 0x46, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5c, 0x56, 0x31, 0x5c, - 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x18, 0x46, 0x65, - 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x3a, 0x3a, 0x46, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, - 0x65, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x61, 0x6d, 0x73, 0x12, 0x39, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x66, + 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0xd8, + 0x01, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x46, 0x0a, 0x08, 0x62, 0x61, 0x73, 0x65, + 0x5f, 0x66, 0x65, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2b, 0xc8, 0xde, 0x1f, 0x00, + 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, + 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0x52, 0x07, 0x62, 0x61, 0x73, 0x65, 0x46, 0x65, 0x65, + 0x12, 0x59, 0x0a, 0x0d, 0x6c, 0x65, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x61, 0x74, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x34, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, + 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, + 0x74, 0x68, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x44, 0x65, 0x63, 0xd2, 0xb4, 0x2d, 0x0d, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x52, 0x0c, 0x6c, + 0x65, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x52, 0x61, 0x74, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x77, + 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x18, 0x03, 0x20, 0x03, 0x28, 0x04, 0x52, 0x06, 0x77, 0x69, 0x6e, + 0x64, 0x6f, 0x77, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x42, 0xd9, 0x01, 0x0a, 0x1a, 0x63, 0x6f, + 0x6d, 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x66, 0x65, 0x65, 0x6d, + 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, + 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x33, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x65, 0x65, 0x6d, 0x61, + 0x72, 0x6b, 0x65, 0x74, 0x2f, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2f, 0x76, + 0x31, 0x3b, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x76, 0x31, 0xa2, 0x02, 0x03, + 0x46, 0x46, 0x58, 0xaa, 0x02, 0x16, 0x46, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, + 0x46, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x16, 0x46, + 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5c, 0x46, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, + 0x65, 0x74, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x22, 0x46, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, + 0x74, 0x5c, 0x46, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5c, 0x56, 0x31, 0x5c, 0x47, + 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x18, 0x46, 0x65, 0x65, + 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x3a, 0x3a, 0x46, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, + 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1436,13 +1435,13 @@ func file_feemarket_feemarket_v1_genesis_proto_rawDescGZIP() []byte { var file_feemarket_feemarket_v1_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_feemarket_feemarket_v1_genesis_proto_goTypes = []interface{}{ - (*GenesisState)(nil), // 0: feemarket.feemarket.v1.GenesisState - (*BlockUtilization)(nil), // 1: feemarket.feemarket.v1.BlockUtilization - (*Params)(nil), // 2: feemarket.feemarket.v1.Params + (*GenesisState)(nil), // 0: feemarket.feemarket.v1.GenesisState + (*State)(nil), // 1: feemarket.feemarket.v1.State + (*Params)(nil), // 2: feemarket.feemarket.v1.Params } var file_feemarket_feemarket_v1_genesis_proto_depIdxs = []int32{ 2, // 0: feemarket.feemarket.v1.GenesisState.params:type_name -> feemarket.feemarket.v1.Params - 1, // 1: feemarket.feemarket.v1.GenesisState.utilization:type_name -> feemarket.feemarket.v1.BlockUtilization + 1, // 1: feemarket.feemarket.v1.GenesisState.state:type_name -> feemarket.feemarket.v1.State 2, // [2:2] is the sub-list for method output_type 2, // [2:2] is the sub-list for method input_type 2, // [2:2] is the sub-list for extension type_name @@ -1470,7 +1469,7 @@ func file_feemarket_feemarket_v1_genesis_proto_init() { } } file_feemarket_feemarket_v1_genesis_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BlockUtilization); i { + switch v := v.(*State); i { case 0: return &v.state case 1: diff --git a/api/feemarket/feemarket/v1/panic.pulsar.go b/api/feemarket/feemarket/v1/panic.pulsar.go deleted file mode 100644 index 3bc8e37..0000000 --- a/api/feemarket/feemarket/v1/panic.pulsar.go +++ /dev/null @@ -1,655 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package feemarketv1 - -import ( - fmt "fmt" - _ "github.com/cosmos/cosmos-proto" - runtime "github.com/cosmos/cosmos-proto/runtime" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_PanicMarket protoreflect.MessageDescriptor - fd_PanicMarket_stateA protoreflect.FieldDescriptor - fd_PanicMarket_stateB protoreflect.FieldDescriptor -) - -func init() { - file_feemarket_feemarket_v1_panic_proto_init() - md_PanicMarket = File_feemarket_feemarket_v1_panic_proto.Messages().ByName("PanicMarket") - fd_PanicMarket_stateA = md_PanicMarket.Fields().ByName("stateA") - fd_PanicMarket_stateB = md_PanicMarket.Fields().ByName("stateB") -} - -var _ protoreflect.Message = (*fastReflection_PanicMarket)(nil) - -type fastReflection_PanicMarket PanicMarket - -func (x *PanicMarket) ProtoReflect() protoreflect.Message { - return (*fastReflection_PanicMarket)(x) -} - -func (x *PanicMarket) slowProtoReflect() protoreflect.Message { - mi := &file_feemarket_feemarket_v1_panic_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_PanicMarket_messageType fastReflection_PanicMarket_messageType -var _ protoreflect.MessageType = fastReflection_PanicMarket_messageType{} - -type fastReflection_PanicMarket_messageType struct{} - -func (x fastReflection_PanicMarket_messageType) Zero() protoreflect.Message { - return (*fastReflection_PanicMarket)(nil) -} -func (x fastReflection_PanicMarket_messageType) New() protoreflect.Message { - return new(fastReflection_PanicMarket) -} -func (x fastReflection_PanicMarket_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_PanicMarket -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_PanicMarket) Descriptor() protoreflect.MessageDescriptor { - return md_PanicMarket -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_PanicMarket) Type() protoreflect.MessageType { - return _fastReflection_PanicMarket_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_PanicMarket) New() protoreflect.Message { - return new(fastReflection_PanicMarket) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_PanicMarket) Interface() protoreflect.ProtoMessage { - return (*PanicMarket)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_PanicMarket) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.StateA != "" { - value := protoreflect.ValueOfString(x.StateA) - if !f(fd_PanicMarket_stateA, value) { - return - } - } - if x.StateB != "" { - value := protoreflect.ValueOfString(x.StateB) - if !f(fd_PanicMarket_stateB, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_PanicMarket) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "feemarket.feemarket.v1.PanicMarket.stateA": - return x.StateA != "" - case "feemarket.feemarket.v1.PanicMarket.stateB": - return x.StateB != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.PanicMarket")) - } - panic(fmt.Errorf("message feemarket.feemarket.v1.PanicMarket does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PanicMarket) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "feemarket.feemarket.v1.PanicMarket.stateA": - x.StateA = "" - case "feemarket.feemarket.v1.PanicMarket.stateB": - x.StateB = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.PanicMarket")) - } - panic(fmt.Errorf("message feemarket.feemarket.v1.PanicMarket does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_PanicMarket) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "feemarket.feemarket.v1.PanicMarket.stateA": - value := x.StateA - return protoreflect.ValueOfString(value) - case "feemarket.feemarket.v1.PanicMarket.stateB": - value := x.StateB - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.PanicMarket")) - } - panic(fmt.Errorf("message feemarket.feemarket.v1.PanicMarket does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PanicMarket) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "feemarket.feemarket.v1.PanicMarket.stateA": - x.StateA = value.Interface().(string) - case "feemarket.feemarket.v1.PanicMarket.stateB": - x.StateB = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.PanicMarket")) - } - panic(fmt.Errorf("message feemarket.feemarket.v1.PanicMarket does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PanicMarket) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "feemarket.feemarket.v1.PanicMarket.stateA": - panic(fmt.Errorf("field stateA of message feemarket.feemarket.v1.PanicMarket is not mutable")) - case "feemarket.feemarket.v1.PanicMarket.stateB": - panic(fmt.Errorf("field stateB of message feemarket.feemarket.v1.PanicMarket is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.PanicMarket")) - } - panic(fmt.Errorf("message feemarket.feemarket.v1.PanicMarket does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_PanicMarket) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "feemarket.feemarket.v1.PanicMarket.stateA": - return protoreflect.ValueOfString("") - case "feemarket.feemarket.v1.PanicMarket.stateB": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.PanicMarket")) - } - panic(fmt.Errorf("message feemarket.feemarket.v1.PanicMarket does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_PanicMarket) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in feemarket.feemarket.v1.PanicMarket", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_PanicMarket) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PanicMarket) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_PanicMarket) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_PanicMarket) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*PanicMarket) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.StateA) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.StateB) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*PanicMarket) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.StateB) > 0 { - i -= len(x.StateB) - copy(dAtA[i:], x.StateB) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.StateB))) - i-- - dAtA[i] = 0x12 - } - if len(x.StateA) > 0 { - i -= len(x.StateA) - copy(dAtA[i:], x.StateA) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.StateA))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*PanicMarket) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PanicMarket: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PanicMarket: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field StateA", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.StateA = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field StateB", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.StateB = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: feemarket/feemarket/v1/panic.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// PanicMarket is a message that contains the information about a panic -// fee market used ONLY for testing -// -// NOTE: Most operations of this fee market will panic for testing. -type PanicMarket struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // State1 represents arbitrary data stored in the implementation. - StateA string `protobuf:"bytes,1,opt,name=stateA,proto3" json:"stateA,omitempty"` - // State2 represents arbitrary data stored in the implementation. - StateB string `protobuf:"bytes,2,opt,name=stateB,proto3" json:"stateB,omitempty"` -} - -func (x *PanicMarket) Reset() { - *x = PanicMarket{} - if protoimpl.UnsafeEnabled { - mi := &file_feemarket_feemarket_v1_panic_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PanicMarket) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PanicMarket) ProtoMessage() {} - -// Deprecated: Use PanicMarket.ProtoReflect.Descriptor instead. -func (*PanicMarket) Descriptor() ([]byte, []int) { - return file_feemarket_feemarket_v1_panic_proto_rawDescGZIP(), []int{0} -} - -func (x *PanicMarket) GetStateA() string { - if x != nil { - return x.StateA - } - return "" -} - -func (x *PanicMarket) GetStateB() string { - if x != nil { - return x.StateB - } - return "" -} - -var File_feemarket_feemarket_v1_panic_proto protoreflect.FileDescriptor - -var file_feemarket_feemarket_v1_panic_proto_rawDesc = []byte{ - 0x0a, 0x22, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2f, 0x66, 0x65, 0x65, 0x6d, - 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x6e, 0x69, 0x63, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, - 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x1a, 0x19, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x71, 0x0a, 0x0b, 0x50, 0x61, 0x6e, 0x69, 0x63, - 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x65, 0x41, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x65, 0x41, 0x12, 0x16, - 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x65, 0x42, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, - 0x73, 0x74, 0x61, 0x74, 0x65, 0x42, 0x3a, 0x32, 0xca, 0xb4, 0x2d, 0x2e, 0x66, 0x65, 0x65, 0x6d, - 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, - 0x76, 0x31, 0x2e, 0x46, 0x65, 0x65, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x6d, 0x70, 0x6c, - 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0xd7, 0x01, 0x0a, 0x1a, 0x63, - 0x6f, 0x6d, 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x66, 0x65, 0x65, - 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x50, 0x61, 0x6e, 0x69, 0x63, - 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x33, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, - 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, - 0x6b, 0x65, 0x74, 0x2f, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2f, 0x76, 0x31, - 0x3b, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x46, - 0x46, 0x58, 0xaa, 0x02, 0x16, 0x46, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x46, - 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x16, 0x46, 0x65, - 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5c, 0x46, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, - 0x74, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x22, 0x46, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, - 0x5c, 0x46, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, - 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x18, 0x46, 0x65, 0x65, 0x6d, - 0x61, 0x72, 0x6b, 0x65, 0x74, 0x3a, 0x3a, 0x46, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, - 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_feemarket_feemarket_v1_panic_proto_rawDescOnce sync.Once - file_feemarket_feemarket_v1_panic_proto_rawDescData = file_feemarket_feemarket_v1_panic_proto_rawDesc -) - -func file_feemarket_feemarket_v1_panic_proto_rawDescGZIP() []byte { - file_feemarket_feemarket_v1_panic_proto_rawDescOnce.Do(func() { - file_feemarket_feemarket_v1_panic_proto_rawDescData = protoimpl.X.CompressGZIP(file_feemarket_feemarket_v1_panic_proto_rawDescData) - }) - return file_feemarket_feemarket_v1_panic_proto_rawDescData -} - -var file_feemarket_feemarket_v1_panic_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_feemarket_feemarket_v1_panic_proto_goTypes = []interface{}{ - (*PanicMarket)(nil), // 0: feemarket.feemarket.v1.PanicMarket -} -var file_feemarket_feemarket_v1_panic_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_feemarket_feemarket_v1_panic_proto_init() } -func file_feemarket_feemarket_v1_panic_proto_init() { - if File_feemarket_feemarket_v1_panic_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_feemarket_feemarket_v1_panic_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PanicMarket); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_feemarket_feemarket_v1_panic_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_feemarket_feemarket_v1_panic_proto_goTypes, - DependencyIndexes: file_feemarket_feemarket_v1_panic_proto_depIdxs, - MessageInfos: file_feemarket_feemarket_v1_panic_proto_msgTypes, - }.Build() - File_feemarket_feemarket_v1_panic_proto = out.File - file_feemarket_feemarket_v1_panic_proto_rawDesc = nil - file_feemarket_feemarket_v1_panic_proto_goTypes = nil - file_feemarket_feemarket_v1_panic_proto_depIdxs = nil -} diff --git a/api/feemarket/feemarket/v1/params.pulsar.go b/api/feemarket/feemarket/v1/params.pulsar.go index 1842131..8aba756 100644 --- a/api/feemarket/feemarket/v1/params.pulsar.go +++ b/api/feemarket/feemarket/v1/params.pulsar.go @@ -26,6 +26,7 @@ var ( fd_Params_target_block_utilization protoreflect.FieldDescriptor fd_Params_max_block_utilization protoreflect.FieldDescriptor fd_Params_window protoreflect.FieldDescriptor + fd_Params_fee_denom protoreflect.FieldDescriptor fd_Params_enabled protoreflect.FieldDescriptor ) @@ -42,6 +43,7 @@ func init() { fd_Params_target_block_utilization = md_Params.Fields().ByName("target_block_utilization") fd_Params_max_block_utilization = md_Params.Fields().ByName("max_block_utilization") fd_Params_window = md_Params.Fields().ByName("window") + fd_Params_fee_denom = md_Params.Fields().ByName("fee_denom") fd_Params_enabled = md_Params.Fields().ByName("enabled") } @@ -170,6 +172,12 @@ func (x *fastReflection_Params) Range(f func(protoreflect.FieldDescriptor, proto return } } + if x.FeeDenom != "" { + value := protoreflect.ValueOfString(x.FeeDenom) + if !f(fd_Params_fee_denom, value) { + return + } + } if x.Enabled != false { value := protoreflect.ValueOfBool(x.Enabled) if !f(fd_Params_enabled, value) { @@ -211,6 +219,8 @@ func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool { return x.MaxBlockUtilization != uint64(0) case "feemarket.feemarket.v1.Params.window": return x.Window != uint64(0) + case "feemarket.feemarket.v1.Params.fee_denom": + return x.FeeDenom != "" case "feemarket.feemarket.v1.Params.enabled": return x.Enabled != false default: @@ -249,6 +259,8 @@ func (x *fastReflection_Params) Clear(fd protoreflect.FieldDescriptor) { x.MaxBlockUtilization = uint64(0) case "feemarket.feemarket.v1.Params.window": x.Window = uint64(0) + case "feemarket.feemarket.v1.Params.fee_denom": + x.FeeDenom = "" case "feemarket.feemarket.v1.Params.enabled": x.Enabled = false default: @@ -297,6 +309,9 @@ func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) pro case "feemarket.feemarket.v1.Params.window": value := x.Window return protoreflect.ValueOfUint64(value) + case "feemarket.feemarket.v1.Params.fee_denom": + value := x.FeeDenom + return protoreflect.ValueOfString(value) case "feemarket.feemarket.v1.Params.enabled": value := x.Enabled return protoreflect.ValueOfBool(value) @@ -340,6 +355,8 @@ func (x *fastReflection_Params) Set(fd protoreflect.FieldDescriptor, value proto x.MaxBlockUtilization = value.Uint() case "feemarket.feemarket.v1.Params.window": x.Window = value.Uint() + case "feemarket.feemarket.v1.Params.fee_denom": + x.FeeDenom = value.Interface().(string) case "feemarket.feemarket.v1.Params.enabled": x.Enabled = value.Bool() default: @@ -382,6 +399,8 @@ func (x *fastReflection_Params) Mutable(fd protoreflect.FieldDescriptor) protore panic(fmt.Errorf("field max_block_utilization of message feemarket.feemarket.v1.Params is not mutable")) case "feemarket.feemarket.v1.Params.window": panic(fmt.Errorf("field window of message feemarket.feemarket.v1.Params is not mutable")) + case "feemarket.feemarket.v1.Params.fee_denom": + panic(fmt.Errorf("field fee_denom of message feemarket.feemarket.v1.Params is not mutable")) case "feemarket.feemarket.v1.Params.enabled": panic(fmt.Errorf("field enabled of message feemarket.feemarket.v1.Params is not mutable")) default: @@ -417,6 +436,8 @@ func (x *fastReflection_Params) NewField(fd protoreflect.FieldDescriptor) protor return protoreflect.ValueOfUint64(uint64(0)) case "feemarket.feemarket.v1.Params.window": return protoreflect.ValueOfUint64(uint64(0)) + case "feemarket.feemarket.v1.Params.fee_denom": + return protoreflect.ValueOfString("") case "feemarket.feemarket.v1.Params.enabled": return protoreflect.ValueOfBool(false) default: @@ -525,6 +546,10 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { if x.Window != 0 { n += 1 + runtime.Sov(uint64(x.Window)) } + l = len(x.FeeDenom) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.Enabled { n += 2 } @@ -565,7 +590,14 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { dAtA[i] = 0 } i-- - dAtA[i] = 0x58 + dAtA[i] = 0x60 + } + if len(x.FeeDenom) > 0 { + i -= len(x.FeeDenom) + copy(dAtA[i:], x.FeeDenom) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.FeeDenom))) + i-- + dAtA[i] = 0x5a } if x.Window != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.Window)) @@ -962,6 +994,38 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { } } case 11: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field FeeDenom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.FeeDenom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 12: if wireType != 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) } @@ -1066,9 +1130,11 @@ type Params struct { // Window defines the window size for calculating an adaptive learning rate // over a moving window of blocks. Window uint64 `protobuf:"varint,10,opt,name=window,proto3" json:"window,omitempty"` + // FeeDenom is the denom that will be used for all fee payments. + FeeDenom string `protobuf:"bytes,11,opt,name=fee_denom,json=feeDenom,proto3" json:"fee_denom,omitempty"` // Enabled is a boolean that determines whether the EIP1559 fee market is // enabled. - Enabled bool `protobuf:"varint,11,opt,name=enabled,proto3" json:"enabled,omitempty"` + Enabled bool `protobuf:"varint,12,opt,name=enabled,proto3" json:"enabled,omitempty"` } func (x *Params) Reset() { @@ -1161,6 +1227,13 @@ func (x *Params) GetWindow() uint64 { return 0 } +func (x *Params) GetFeeDenom() string { + if x != nil { + return x.FeeDenom + } + return "" +} + func (x *Params) GetEnabled() bool { if x != nil { return x.Enabled @@ -1177,7 +1250,7 @@ var file_feemarket_feemarket_v1_params_proto_rawDesc = []byte{ 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd7, + 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf4, 0x05, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x47, 0x0a, 0x05, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x31, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, @@ -1221,23 +1294,25 @@ var file_feemarket_feemarket_v1_params_proto_rawDesc = []byte{ 0x75, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x6d, 0x61, 0x78, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, - 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x12, 0x18, - 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x42, 0xd8, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, - 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, - 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x50, - 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x33, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, - 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, - 0x65, 0x74, 0x2f, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2f, 0x76, 0x31, 0x3b, - 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x46, 0x46, - 0x58, 0xaa, 0x02, 0x16, 0x46, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x46, 0x65, - 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x16, 0x46, 0x65, 0x65, - 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5c, 0x46, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, - 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x22, 0x46, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5c, - 0x46, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x18, 0x46, 0x65, 0x65, 0x6d, 0x61, - 0x72, 0x6b, 0x65, 0x74, 0x3a, 0x3a, 0x46, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x3a, - 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x12, 0x1b, + 0x0a, 0x09, 0x66, 0x65, 0x65, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x0b, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x66, 0x65, 0x65, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x12, 0x18, 0x0a, 0x07, 0x65, + 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, + 0x61, 0x62, 0x6c, 0x65, 0x64, 0x42, 0xd8, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x65, + 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, + 0x74, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x50, 0x72, 0x6f, 0x74, + 0x6f, 0x50, 0x01, 0x5a, 0x33, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, + 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2f, + 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2f, 0x76, 0x31, 0x3b, 0x66, 0x65, 0x65, + 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x46, 0x46, 0x58, 0xaa, 0x02, + 0x16, 0x46, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x46, 0x65, 0x65, 0x6d, 0x61, + 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x16, 0x46, 0x65, 0x65, 0x6d, 0x61, 0x72, + 0x6b, 0x65, 0x74, 0x5c, 0x46, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5c, 0x56, 0x31, + 0xe2, 0x02, 0x22, 0x46, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5c, 0x46, 0x65, 0x65, + 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x18, 0x46, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, + 0x74, 0x3a, 0x3a, 0x46, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x3a, 0x3a, 0x56, 0x31, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/api/feemarket/feemarket/v1/query.pulsar.go b/api/feemarket/feemarket/v1/query.pulsar.go index c455d6d..f7d1058 100644 --- a/api/feemarket/feemarket/v1/query.pulsar.go +++ b/api/feemarket/feemarket/v1/query.pulsar.go @@ -2,6 +2,8 @@ package feemarketv1 import ( + _ "cosmossdk.io/api/amino" + v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1" fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" @@ -805,6 +807,1647 @@ func (x *fastReflection_ParamsResponse) ProtoMethods() *protoiface.Methods { } } +var ( + md_StateRequest protoreflect.MessageDescriptor +) + +func init() { + file_feemarket_feemarket_v1_query_proto_init() + md_StateRequest = File_feemarket_feemarket_v1_query_proto.Messages().ByName("StateRequest") +} + +var _ protoreflect.Message = (*fastReflection_StateRequest)(nil) + +type fastReflection_StateRequest StateRequest + +func (x *StateRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_StateRequest)(x) +} + +func (x *StateRequest) slowProtoReflect() protoreflect.Message { + mi := &file_feemarket_feemarket_v1_query_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_StateRequest_messageType fastReflection_StateRequest_messageType +var _ protoreflect.MessageType = fastReflection_StateRequest_messageType{} + +type fastReflection_StateRequest_messageType struct{} + +func (x fastReflection_StateRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_StateRequest)(nil) +} +func (x fastReflection_StateRequest_messageType) New() protoreflect.Message { + return new(fastReflection_StateRequest) +} +func (x fastReflection_StateRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_StateRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_StateRequest) Descriptor() protoreflect.MessageDescriptor { + return md_StateRequest +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_StateRequest) Type() protoreflect.MessageType { + return _fastReflection_StateRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_StateRequest) New() protoreflect.Message { + return new(fastReflection_StateRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_StateRequest) Interface() protoreflect.ProtoMessage { + return (*StateRequest)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_StateRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_StateRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.StateRequest")) + } + panic(fmt.Errorf("message feemarket.feemarket.v1.StateRequest does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_StateRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.StateRequest")) + } + panic(fmt.Errorf("message feemarket.feemarket.v1.StateRequest does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_StateRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.StateRequest")) + } + panic(fmt.Errorf("message feemarket.feemarket.v1.StateRequest does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_StateRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.StateRequest")) + } + panic(fmt.Errorf("message feemarket.feemarket.v1.StateRequest does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_StateRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.StateRequest")) + } + panic(fmt.Errorf("message feemarket.feemarket.v1.StateRequest does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_StateRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.StateRequest")) + } + panic(fmt.Errorf("message feemarket.feemarket.v1.StateRequest does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_StateRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in feemarket.feemarket.v1.StateRequest", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_StateRequest) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_StateRequest) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_StateRequest) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_StateRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*StateRequest) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*StateRequest) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*StateRequest) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: StateRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: StateRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_StateResponse protoreflect.MessageDescriptor + fd_StateResponse_state protoreflect.FieldDescriptor +) + +func init() { + file_feemarket_feemarket_v1_query_proto_init() + md_StateResponse = File_feemarket_feemarket_v1_query_proto.Messages().ByName("StateResponse") + fd_StateResponse_state = md_StateResponse.Fields().ByName("state") +} + +var _ protoreflect.Message = (*fastReflection_StateResponse)(nil) + +type fastReflection_StateResponse StateResponse + +func (x *StateResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_StateResponse)(x) +} + +func (x *StateResponse) slowProtoReflect() protoreflect.Message { + mi := &file_feemarket_feemarket_v1_query_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_StateResponse_messageType fastReflection_StateResponse_messageType +var _ protoreflect.MessageType = fastReflection_StateResponse_messageType{} + +type fastReflection_StateResponse_messageType struct{} + +func (x fastReflection_StateResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_StateResponse)(nil) +} +func (x fastReflection_StateResponse_messageType) New() protoreflect.Message { + return new(fastReflection_StateResponse) +} +func (x fastReflection_StateResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_StateResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_StateResponse) Descriptor() protoreflect.MessageDescriptor { + return md_StateResponse +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_StateResponse) Type() protoreflect.MessageType { + return _fastReflection_StateResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_StateResponse) New() protoreflect.Message { + return new(fastReflection_StateResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_StateResponse) Interface() protoreflect.ProtoMessage { + return (*StateResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_StateResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.State != nil { + value := protoreflect.ValueOfMessage(x.State.ProtoReflect()) + if !f(fd_StateResponse_state, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_StateResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "feemarket.feemarket.v1.StateResponse.state": + return x.State != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.StateResponse")) + } + panic(fmt.Errorf("message feemarket.feemarket.v1.StateResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_StateResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "feemarket.feemarket.v1.StateResponse.state": + x.State = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.StateResponse")) + } + panic(fmt.Errorf("message feemarket.feemarket.v1.StateResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_StateResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "feemarket.feemarket.v1.StateResponse.state": + value := x.State + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.StateResponse")) + } + panic(fmt.Errorf("message feemarket.feemarket.v1.StateResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_StateResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "feemarket.feemarket.v1.StateResponse.state": + x.State = value.Message().Interface().(*State) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.StateResponse")) + } + panic(fmt.Errorf("message feemarket.feemarket.v1.StateResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_StateResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "feemarket.feemarket.v1.StateResponse.state": + if x.State == nil { + x.State = new(State) + } + return protoreflect.ValueOfMessage(x.State.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.StateResponse")) + } + panic(fmt.Errorf("message feemarket.feemarket.v1.StateResponse does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_StateResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "feemarket.feemarket.v1.StateResponse.state": + m := new(State) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.StateResponse")) + } + panic(fmt.Errorf("message feemarket.feemarket.v1.StateResponse does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_StateResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in feemarket.feemarket.v1.StateResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_StateResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_StateResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_StateResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_StateResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*StateResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.State != nil { + l = options.Size(x.State) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*StateResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.State != nil { + encoded, err := options.Marshal(x.State) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*StateResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: StateResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: StateResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.State == nil { + x.State = &State{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.State); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_BaseFeeRequest protoreflect.MessageDescriptor +) + +func init() { + file_feemarket_feemarket_v1_query_proto_init() + md_BaseFeeRequest = File_feemarket_feemarket_v1_query_proto.Messages().ByName("BaseFeeRequest") +} + +var _ protoreflect.Message = (*fastReflection_BaseFeeRequest)(nil) + +type fastReflection_BaseFeeRequest BaseFeeRequest + +func (x *BaseFeeRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_BaseFeeRequest)(x) +} + +func (x *BaseFeeRequest) slowProtoReflect() protoreflect.Message { + mi := &file_feemarket_feemarket_v1_query_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_BaseFeeRequest_messageType fastReflection_BaseFeeRequest_messageType +var _ protoreflect.MessageType = fastReflection_BaseFeeRequest_messageType{} + +type fastReflection_BaseFeeRequest_messageType struct{} + +func (x fastReflection_BaseFeeRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_BaseFeeRequest)(nil) +} +func (x fastReflection_BaseFeeRequest_messageType) New() protoreflect.Message { + return new(fastReflection_BaseFeeRequest) +} +func (x fastReflection_BaseFeeRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_BaseFeeRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_BaseFeeRequest) Descriptor() protoreflect.MessageDescriptor { + return md_BaseFeeRequest +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_BaseFeeRequest) Type() protoreflect.MessageType { + return _fastReflection_BaseFeeRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_BaseFeeRequest) New() protoreflect.Message { + return new(fastReflection_BaseFeeRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_BaseFeeRequest) Interface() protoreflect.ProtoMessage { + return (*BaseFeeRequest)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_BaseFeeRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_BaseFeeRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.BaseFeeRequest")) + } + panic(fmt.Errorf("message feemarket.feemarket.v1.BaseFeeRequest does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_BaseFeeRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.BaseFeeRequest")) + } + panic(fmt.Errorf("message feemarket.feemarket.v1.BaseFeeRequest does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_BaseFeeRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.BaseFeeRequest")) + } + panic(fmt.Errorf("message feemarket.feemarket.v1.BaseFeeRequest does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_BaseFeeRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.BaseFeeRequest")) + } + panic(fmt.Errorf("message feemarket.feemarket.v1.BaseFeeRequest does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_BaseFeeRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.BaseFeeRequest")) + } + panic(fmt.Errorf("message feemarket.feemarket.v1.BaseFeeRequest does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_BaseFeeRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.BaseFeeRequest")) + } + panic(fmt.Errorf("message feemarket.feemarket.v1.BaseFeeRequest does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_BaseFeeRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in feemarket.feemarket.v1.BaseFeeRequest", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_BaseFeeRequest) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_BaseFeeRequest) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_BaseFeeRequest) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_BaseFeeRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*BaseFeeRequest) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*BaseFeeRequest) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*BaseFeeRequest) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: BaseFeeRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: BaseFeeRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.List = (*_BaseFeeResponse_1_list)(nil) + +type _BaseFeeResponse_1_list struct { + list *[]*v1beta1.Coin +} + +func (x *_BaseFeeResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_BaseFeeResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_BaseFeeResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) + (*x.list)[i] = concreteValue +} + +func (x *_BaseFeeResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) + *x.list = append(*x.list, concreteValue) +} + +func (x *_BaseFeeResponse_1_list) AppendMutable() protoreflect.Value { + v := new(v1beta1.Coin) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_BaseFeeResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_BaseFeeResponse_1_list) NewElement() protoreflect.Value { + v := new(v1beta1.Coin) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_BaseFeeResponse_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_BaseFeeResponse protoreflect.MessageDescriptor + fd_BaseFeeResponse_fee protoreflect.FieldDescriptor +) + +func init() { + file_feemarket_feemarket_v1_query_proto_init() + md_BaseFeeResponse = File_feemarket_feemarket_v1_query_proto.Messages().ByName("BaseFeeResponse") + fd_BaseFeeResponse_fee = md_BaseFeeResponse.Fields().ByName("fee") +} + +var _ protoreflect.Message = (*fastReflection_BaseFeeResponse)(nil) + +type fastReflection_BaseFeeResponse BaseFeeResponse + +func (x *BaseFeeResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_BaseFeeResponse)(x) +} + +func (x *BaseFeeResponse) slowProtoReflect() protoreflect.Message { + mi := &file_feemarket_feemarket_v1_query_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_BaseFeeResponse_messageType fastReflection_BaseFeeResponse_messageType +var _ protoreflect.MessageType = fastReflection_BaseFeeResponse_messageType{} + +type fastReflection_BaseFeeResponse_messageType struct{} + +func (x fastReflection_BaseFeeResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_BaseFeeResponse)(nil) +} +func (x fastReflection_BaseFeeResponse_messageType) New() protoreflect.Message { + return new(fastReflection_BaseFeeResponse) +} +func (x fastReflection_BaseFeeResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_BaseFeeResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_BaseFeeResponse) Descriptor() protoreflect.MessageDescriptor { + return md_BaseFeeResponse +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_BaseFeeResponse) Type() protoreflect.MessageType { + return _fastReflection_BaseFeeResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_BaseFeeResponse) New() protoreflect.Message { + return new(fastReflection_BaseFeeResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_BaseFeeResponse) Interface() protoreflect.ProtoMessage { + return (*BaseFeeResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_BaseFeeResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Fee) != 0 { + value := protoreflect.ValueOfList(&_BaseFeeResponse_1_list{list: &x.Fee}) + if !f(fd_BaseFeeResponse_fee, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_BaseFeeResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "feemarket.feemarket.v1.BaseFeeResponse.fee": + return len(x.Fee) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.BaseFeeResponse")) + } + panic(fmt.Errorf("message feemarket.feemarket.v1.BaseFeeResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_BaseFeeResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "feemarket.feemarket.v1.BaseFeeResponse.fee": + x.Fee = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.BaseFeeResponse")) + } + panic(fmt.Errorf("message feemarket.feemarket.v1.BaseFeeResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_BaseFeeResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "feemarket.feemarket.v1.BaseFeeResponse.fee": + if len(x.Fee) == 0 { + return protoreflect.ValueOfList(&_BaseFeeResponse_1_list{}) + } + listValue := &_BaseFeeResponse_1_list{list: &x.Fee} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.BaseFeeResponse")) + } + panic(fmt.Errorf("message feemarket.feemarket.v1.BaseFeeResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_BaseFeeResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "feemarket.feemarket.v1.BaseFeeResponse.fee": + lv := value.List() + clv := lv.(*_BaseFeeResponse_1_list) + x.Fee = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.BaseFeeResponse")) + } + panic(fmt.Errorf("message feemarket.feemarket.v1.BaseFeeResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_BaseFeeResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "feemarket.feemarket.v1.BaseFeeResponse.fee": + if x.Fee == nil { + x.Fee = []*v1beta1.Coin{} + } + value := &_BaseFeeResponse_1_list{list: &x.Fee} + return protoreflect.ValueOfList(value) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.BaseFeeResponse")) + } + panic(fmt.Errorf("message feemarket.feemarket.v1.BaseFeeResponse does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_BaseFeeResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "feemarket.feemarket.v1.BaseFeeResponse.fee": + list := []*v1beta1.Coin{} + return protoreflect.ValueOfList(&_BaseFeeResponse_1_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: feemarket.feemarket.v1.BaseFeeResponse")) + } + panic(fmt.Errorf("message feemarket.feemarket.v1.BaseFeeResponse does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_BaseFeeResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in feemarket.feemarket.v1.BaseFeeResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_BaseFeeResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_BaseFeeResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_BaseFeeResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_BaseFeeResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*BaseFeeResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if len(x.Fee) > 0 { + for _, e := range x.Fee { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*BaseFeeResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Fee) > 0 { + for iNdEx := len(x.Fee) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Fee[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa + } + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*BaseFeeResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: BaseFeeResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: BaseFeeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Fee", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Fee = append(x.Fee, &v1beta1.Coin{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Fee[len(x.Fee)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.0 @@ -881,6 +2524,132 @@ func (x *ParamsResponse) GetParams() *Params { return nil } +// StateRequest is the request type for the Query/State RPC method. +type StateRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *StateRequest) Reset() { + *x = StateRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_feemarket_feemarket_v1_query_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StateRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StateRequest) ProtoMessage() {} + +// Deprecated: Use StateRequest.ProtoReflect.Descriptor instead. +func (*StateRequest) Descriptor() ([]byte, []int) { + return file_feemarket_feemarket_v1_query_proto_rawDescGZIP(), []int{2} +} + +// StateResponse is the response type for the Query/State RPC method. +type StateResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + State *State `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"` +} + +func (x *StateResponse) Reset() { + *x = StateResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_feemarket_feemarket_v1_query_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StateResponse) ProtoMessage() {} + +// Deprecated: Use StateResponse.ProtoReflect.Descriptor instead. +func (*StateResponse) Descriptor() ([]byte, []int) { + return file_feemarket_feemarket_v1_query_proto_rawDescGZIP(), []int{3} +} + +func (x *StateResponse) GetState() *State { + if x != nil { + return x.State + } + return nil +} + +// BaseFeeRequest is the request type for the Query/BaseFee RPC method. +type BaseFeeRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *BaseFeeRequest) Reset() { + *x = BaseFeeRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_feemarket_feemarket_v1_query_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BaseFeeRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BaseFeeRequest) ProtoMessage() {} + +// Deprecated: Use BaseFeeRequest.ProtoReflect.Descriptor instead. +func (*BaseFeeRequest) Descriptor() ([]byte, []int) { + return file_feemarket_feemarket_v1_query_proto_rawDescGZIP(), []int{4} +} + +// StateResponse is the response type for the Query/BaseFee RPC method. +type BaseFeeResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Fee []*v1beta1.Coin `protobuf:"bytes,1,rep,name=fee,proto3" json:"fee,omitempty"` +} + +func (x *BaseFeeResponse) Reset() { + *x = BaseFeeResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_feemarket_feemarket_v1_query_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BaseFeeResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BaseFeeResponse) ProtoMessage() {} + +// Deprecated: Use BaseFeeResponse.ProtoReflect.Descriptor instead. +func (*BaseFeeResponse) Descriptor() ([]byte, []int) { + return file_feemarket_feemarket_v1_query_proto_rawDescGZIP(), []int{5} +} + +func (x *BaseFeeResponse) GetFee() []*v1beta1.Coin { + if x != nil { + return x.Fee + } + return nil +} + var File_feemarket_feemarket_v1_query_proto protoreflect.FileDescriptor var file_feemarket_feemarket_v1_query_proto_rawDesc = []byte{ @@ -891,23 +2660,59 @@ var file_feemarket_feemarket_v1_query_proto_rawDesc = []byte{ 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x23, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2f, 0x66, 0x65, 0x65, 0x6d, - 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x0f, 0x0a, 0x0d, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x4e, 0x0a, 0x0e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, - 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, - 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x76, - 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, - 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x32, 0x7e, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, - 0x75, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x25, 0x2e, 0x66, 0x65, 0x65, 0x6d, - 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, - 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x26, 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x66, 0x65, 0x65, - 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, - 0x12, 0x14, 0x2f, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2f, 0x76, 0x31, 0x2f, - 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0xd7, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x66, + 0x1a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2f, 0x66, + 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, + 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, + 0x6b, 0x65, 0x74, 0x2f, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2f, 0x76, 0x31, + 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x0f, + 0x0a, 0x0d, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, + 0x4e, 0x0a, 0x0e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x3c, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1e, 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x66, 0x65, + 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, + 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, + 0x0e, 0x0a, 0x0c, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, + 0x4a, 0x0a, 0x0d, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x39, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1d, 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x66, 0x65, 0x65, 0x6d, + 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x04, + 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x10, 0x0a, 0x0e, 0x42, + 0x61, 0x73, 0x65, 0x46, 0x65, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x86, 0x01, + 0x0a, 0x0f, 0x42, 0x61, 0x73, 0x65, 0x46, 0x65, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x73, 0x0a, 0x03, 0x66, 0x65, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x46, 0xc8, 0xde, 0x1f, 0x00, 0xaa, + 0xdf, 0x1f, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x9a, 0xe7, 0xb0, 0x2a, 0x0c, + 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x5f, 0x63, 0x6f, 0x69, 0x6e, 0x73, 0xa8, 0xe7, 0xb0, 0x2a, + 0x01, 0x52, 0x03, 0x66, 0x65, 0x65, 0x32, 0xed, 0x02, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x12, 0x75, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x25, 0x2e, 0x66, 0x65, 0x65, + 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, + 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x26, 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x66, 0x65, + 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1c, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x16, 0x12, 0x14, 0x2f, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2f, 0x76, 0x31, + 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x71, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, + 0x12, 0x24, 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x66, 0x65, 0x65, + 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, + 0x65, 0x74, 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1b, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x12, 0x13, 0x2f, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, + 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x7a, 0x0a, 0x07, 0x42, 0x61, + 0x73, 0x65, 0x46, 0x65, 0x65, 0x12, 0x26, 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, + 0x74, 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x42, + 0x61, 0x73, 0x65, 0x46, 0x65, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, + 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, + 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x46, 0x65, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x12, 0x16, + 0x2f, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, + 0x73, 0x65, 0x5f, 0x66, 0x65, 0x65, 0x42, 0xd7, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x66, 0x65, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x33, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, @@ -936,21 +2741,33 @@ func file_feemarket_feemarket_v1_query_proto_rawDescGZIP() []byte { return file_feemarket_feemarket_v1_query_proto_rawDescData } -var file_feemarket_feemarket_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_feemarket_feemarket_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 6) var file_feemarket_feemarket_v1_query_proto_goTypes = []interface{}{ - (*ParamsRequest)(nil), // 0: feemarket.feemarket.v1.ParamsRequest - (*ParamsResponse)(nil), // 1: feemarket.feemarket.v1.ParamsResponse - (*Params)(nil), // 2: feemarket.feemarket.v1.Params + (*ParamsRequest)(nil), // 0: feemarket.feemarket.v1.ParamsRequest + (*ParamsResponse)(nil), // 1: feemarket.feemarket.v1.ParamsResponse + (*StateRequest)(nil), // 2: feemarket.feemarket.v1.StateRequest + (*StateResponse)(nil), // 3: feemarket.feemarket.v1.StateResponse + (*BaseFeeRequest)(nil), // 4: feemarket.feemarket.v1.BaseFeeRequest + (*BaseFeeResponse)(nil), // 5: feemarket.feemarket.v1.BaseFeeResponse + (*Params)(nil), // 6: feemarket.feemarket.v1.Params + (*State)(nil), // 7: feemarket.feemarket.v1.State + (*v1beta1.Coin)(nil), // 8: cosmos.base.v1beta1.Coin } var file_feemarket_feemarket_v1_query_proto_depIdxs = []int32{ - 2, // 0: feemarket.feemarket.v1.ParamsResponse.params:type_name -> feemarket.feemarket.v1.Params - 0, // 1: feemarket.feemarket.v1.Query.Params:input_type -> feemarket.feemarket.v1.ParamsRequest - 1, // 2: feemarket.feemarket.v1.Query.Params:output_type -> feemarket.feemarket.v1.ParamsResponse - 2, // [2:3] is the sub-list for method output_type - 1, // [1:2] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name + 6, // 0: feemarket.feemarket.v1.ParamsResponse.params:type_name -> feemarket.feemarket.v1.Params + 7, // 1: feemarket.feemarket.v1.StateResponse.state:type_name -> feemarket.feemarket.v1.State + 8, // 2: feemarket.feemarket.v1.BaseFeeResponse.fee:type_name -> cosmos.base.v1beta1.Coin + 0, // 3: feemarket.feemarket.v1.Query.Params:input_type -> feemarket.feemarket.v1.ParamsRequest + 2, // 4: feemarket.feemarket.v1.Query.State:input_type -> feemarket.feemarket.v1.StateRequest + 4, // 5: feemarket.feemarket.v1.Query.BaseFee:input_type -> feemarket.feemarket.v1.BaseFeeRequest + 1, // 6: feemarket.feemarket.v1.Query.Params:output_type -> feemarket.feemarket.v1.ParamsResponse + 3, // 7: feemarket.feemarket.v1.Query.State:output_type -> feemarket.feemarket.v1.StateResponse + 5, // 8: feemarket.feemarket.v1.Query.BaseFee:output_type -> feemarket.feemarket.v1.BaseFeeResponse + 6, // [6:9] is the sub-list for method output_type + 3, // [3:6] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name } func init() { file_feemarket_feemarket_v1_query_proto_init() } @@ -959,6 +2776,7 @@ func file_feemarket_feemarket_v1_query_proto_init() { return } file_feemarket_feemarket_v1_params_proto_init() + file_feemarket_feemarket_v1_genesis_proto_init() if !protoimpl.UnsafeEnabled { file_feemarket_feemarket_v1_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ParamsRequest); i { @@ -984,6 +2802,54 @@ func file_feemarket_feemarket_v1_query_proto_init() { return nil } } + file_feemarket_feemarket_v1_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StateRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_feemarket_feemarket_v1_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StateResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_feemarket_feemarket_v1_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BaseFeeRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_feemarket_feemarket_v1_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BaseFeeResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } type x struct{} out := protoimpl.TypeBuilder{ @@ -991,7 +2857,7 @@ func file_feemarket_feemarket_v1_query_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_feemarket_feemarket_v1_query_proto_rawDesc, NumEnums: 0, - NumMessages: 2, + NumMessages: 6, NumExtensions: 0, NumServices: 1, }, diff --git a/api/feemarket/feemarket/v1/query_grpc.pb.go b/api/feemarket/feemarket/v1/query_grpc.pb.go index 802beb0..d100642 100644 --- a/api/feemarket/feemarket/v1/query_grpc.pb.go +++ b/api/feemarket/feemarket/v1/query_grpc.pb.go @@ -19,7 +19,9 @@ import ( const _ = grpc.SupportPackageIsVersion7 const ( - Query_Params_FullMethodName = "/feemarket.feemarket.v1.Query/Params" + Query_Params_FullMethodName = "/feemarket.feemarket.v1.Query/Params" + Query_State_FullMethodName = "/feemarket.feemarket.v1.Query/State" + Query_BaseFee_FullMethodName = "/feemarket.feemarket.v1.Query/BaseFee" ) // QueryClient is the client API for Query service. @@ -28,6 +30,10 @@ const ( type QueryClient interface { // Params returns the current feemarket module parameters. Params(ctx context.Context, in *ParamsRequest, opts ...grpc.CallOption) (*ParamsResponse, error) + // State returns the current feemarket module state. + State(ctx context.Context, in *StateRequest, opts ...grpc.CallOption) (*StateResponse, error) + // BaseFee returns the current feemarket module base fee. + BaseFee(ctx context.Context, in *BaseFeeRequest, opts ...grpc.CallOption) (*BaseFeeResponse, error) } type queryClient struct { @@ -47,12 +53,34 @@ func (c *queryClient) Params(ctx context.Context, in *ParamsRequest, opts ...grp return out, nil } +func (c *queryClient) State(ctx context.Context, in *StateRequest, opts ...grpc.CallOption) (*StateResponse, error) { + out := new(StateResponse) + err := c.cc.Invoke(ctx, Query_State_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) BaseFee(ctx context.Context, in *BaseFeeRequest, opts ...grpc.CallOption) (*BaseFeeResponse, error) { + out := new(BaseFeeResponse) + err := c.cc.Invoke(ctx, Query_BaseFee_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // QueryServer is the server API for Query service. // All implementations must embed UnimplementedQueryServer // for forward compatibility type QueryServer interface { // Params returns the current feemarket module parameters. Params(context.Context, *ParamsRequest) (*ParamsResponse, error) + // State returns the current feemarket module state. + State(context.Context, *StateRequest) (*StateResponse, error) + // BaseFee returns the current feemarket module base fee. + BaseFee(context.Context, *BaseFeeRequest) (*BaseFeeResponse, error) mustEmbedUnimplementedQueryServer() } @@ -63,6 +91,12 @@ type UnimplementedQueryServer struct { func (UnimplementedQueryServer) Params(context.Context, *ParamsRequest) (*ParamsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") } +func (UnimplementedQueryServer) State(context.Context, *StateRequest) (*StateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method State not implemented") +} +func (UnimplementedQueryServer) BaseFee(context.Context, *BaseFeeRequest) (*BaseFeeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BaseFee not implemented") +} func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {} // UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. @@ -94,6 +128,42 @@ func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interf return interceptor(ctx, in, info, handler) } +func _Query_State_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).State(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_State_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).State(ctx, req.(*StateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_BaseFee_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(BaseFeeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).BaseFee(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_BaseFee_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).BaseFee(ctx, req.(*BaseFeeRequest)) + } + return interceptor(ctx, in, info, handler) +} + // Query_ServiceDesc is the grpc.ServiceDesc for Query service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) @@ -105,6 +175,14 @@ var Query_ServiceDesc = grpc.ServiceDesc{ MethodName: "Params", Handler: _Query_Params_Handler, }, + { + MethodName: "State", + Handler: _Query_State_Handler, + }, + { + MethodName: "BaseFee", + Handler: _Query_BaseFee_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "feemarket/feemarket/v1/query.proto", diff --git a/proto/feemarket/feemarket/v1/query.proto b/proto/feemarket/feemarket/v1/query.proto index e505627..95b8372 100644 --- a/proto/feemarket/feemarket/v1/query.proto +++ b/proto/feemarket/feemarket/v1/query.proto @@ -5,6 +5,8 @@ option go_package = "github.com/skip-mev/feemarket/x/feemarket/types"; import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; +import "cosmos/base/v1beta1/coin.proto"; +import "amino/amino.proto"; import "feemarket/feemarket/v1/params.proto"; import "feemarket/feemarket/v1/genesis.proto"; @@ -23,6 +25,13 @@ service Query { get : "/feemarket/v1/state" }; }; + + // BaseFee returns the current feemarket module base fee. + rpc BaseFee(BaseFeeRequest) returns (BaseFeeResponse) { + option (google.api.http) = { + get : "/feemarket/v1/base_fee" + }; + }; } // ParamsRequest is the request type for the Query/Params RPC method. @@ -36,3 +45,16 @@ message StateRequest {} // StateResponse is the response type for the Query/State RPC method. message StateResponse { State state = 1 [ (gogoproto.nullable) = false ]; } + +// BaseFeeRequest is the request type for the Query/BaseFee RPC method. +message BaseFeeRequest {} + +// StateResponse is the response type for the Query/BaseFee RPC method. +message BaseFeeResponse { + repeated cosmos.base.v1beta1.Coin fees = 1 [ + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true, + (amino.encoding) = "legacy_coins", + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" + ]; +} diff --git a/tests/integration/setup.go b/tests/integration/setup.go index 6f7bda2..a4482d6 100644 --- a/tests/integration/setup.go +++ b/tests/integration/setup.go @@ -16,8 +16,6 @@ import ( "testing" "time" - "github.com/strangelove-ventures/interchaintest/v7" - rpctypes "github.com/cometbft/cometbft/rpc/core/types" comettypes "github.com/cometbft/cometbft/types" "github.com/cosmos/cosmos-sdk/client" @@ -28,6 +26,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + interchaintest "github.com/strangelove-ventures/interchaintest/v7" "github.com/strangelove-ventures/interchaintest/v7/chain/cosmos" "github.com/strangelove-ventures/interchaintest/v7/ibc" "github.com/strangelove-ventures/interchaintest/v7/testutil" @@ -152,6 +151,26 @@ func (s *TestSuite) QueryState() types.State { return state } +func (s *TestSuite) QueryBaseFee() sdk.Coins { + s.T().Helper() + + // cast chain to cosmos-chain + cosmosChain, ok := s.chain.(*cosmos.CosmosChain) + s.Require().True(ok) + // get nodes + nodes := cosmosChain.Nodes() + s.Require().True(len(nodes) > 0) + + // make params query to first node + resp, _, err := nodes[0].ExecQuery(context.Background(), "feemarket", "base-fee") + s.Require().NoError(err) + + // unmarshal state + fees, err := sdk.ParseCoinsNormalized(string(resp)) + s.Require().NoError(err) + return fees +} + // QueryValidators queries for all the network's validators func (s *TestSuite) QueryValidators(chain *cosmos.CosmosChain) []sdk.ValAddress { s.T().Helper() diff --git a/tests/integration/suite.go b/tests/integration/suite.go index e3d4c6c..716ba54 100644 --- a/tests/integration/suite.go +++ b/tests/integration/suite.go @@ -133,6 +133,16 @@ func (s *TestSuite) TestQueryState() { }) } +func (s *TestSuite) TestQueryBaseFee() { + s.Run("query base fee", func() { + // query base fee + fees := s.QueryBaseFee() + + // expect validate to pass + require.NoError(s.T(), fees.Validate(), fees) + }) +} + func (s *TestSuite) TestSendTxUpdating() { ctx := context.Background() @@ -144,11 +154,10 @@ func (s *TestSuite) TestSendTxUpdating() { s.Require().True(len(nodes) > 0) s.Run("expect fee market state to update", func() { - state := s.QueryState() - params := s.QueryParams() + baseFee := s.QueryBaseFee() gas := int64(1000000) - minBaseFee := sdk.NewCoins(sdk.NewCoin(params.FeeDenom, state.BaseFee.MulRaw(gas))) + minBaseFee := baseFee.MulInt(sdk.NewInt(gas)) // send with the exact expected fee txResp, err := s.SendCoins( diff --git a/x/feemarket/client/cli/query.go b/x/feemarket/client/cli/query.go index 851c674..a7f7bc2 100644 --- a/x/feemarket/client/cli/query.go +++ b/x/feemarket/client/cli/query.go @@ -25,6 +25,7 @@ func GetQueryCmd() *cobra.Command { cmd.AddCommand( GetParamsCmd(), GetStateCmd(), + GetBaseFeeCmd(), ) return cmd @@ -83,3 +84,30 @@ func GetStateCmd() *cobra.Command { return cmd } + +// GetBaseFeeCmd returns the cli-command that queries the current feemarket base fee. +func GetBaseFeeCmd() *cobra.Command { + cmd := &cobra.Command{ + Use: "base-fee", + Short: "Query for the current feemarket base fee", + Args: cobra.NoArgs, + RunE: func(cmd *cobra.Command, args []string) error { + clientCtx, err := client.GetClientQueryContext(cmd) + if err != nil { + return err + } + + queryClient := types.NewQueryClient(clientCtx) + resp, err := queryClient.BaseFee(cmd.Context(), &types.BaseFeeRequest{}) + if err != nil { + return err + } + + return clientCtx.PrintString(resp.Fees.String()) + }, + } + + flags.AddQueryFlagsToCmd(cmd) + + return cmd +} diff --git a/x/feemarket/keeper/query_server.go b/x/feemarket/keeper/query_server.go index af0dc58..35640ba 100644 --- a/x/feemarket/keeper/query_server.go +++ b/x/feemarket/keeper/query_server.go @@ -25,11 +25,7 @@ func (q QueryServer) Params(goCtx context.Context, _ *types.ParamsRequest) (*typ ctx := sdk.UnwrapSDKContext(goCtx) params, err := q.k.GetParams(ctx) - if err != nil { - return nil, err - } - - return &types.ParamsResponse{Params: params}, nil + return &types.ParamsResponse{Params: params}, err } // State defines a method that returns the current feemarket state. @@ -37,9 +33,13 @@ func (q QueryServer) State(goCtx context.Context, _ *types.StateRequest) (*types ctx := sdk.UnwrapSDKContext(goCtx) state, err := q.k.GetState(ctx) - if err != nil { - return nil, err - } + return &types.StateResponse{State: state}, err +} + +// BaseFee defines a method that returns the current feemarket base fee. +func (q QueryServer) BaseFee(goCtx context.Context, _ *types.BaseFeeRequest) (*types.BaseFeeResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) - return &types.StateResponse{State: state}, nil + fees, err := q.k.GetMinGasPrices(ctx) + return &types.BaseFeeResponse{Fees: fees}, err } diff --git a/x/feemarket/keeper/query_server_test.go b/x/feemarket/keeper/query_server_test.go index aafdf5f..37fe43b 100644 --- a/x/feemarket/keeper/query_server_test.go +++ b/x/feemarket/keeper/query_server_test.go @@ -67,7 +67,7 @@ func (s *KeeperTestSuite) TestStateRequest() { s.Require().Equal(resp.State, state) }) - s.Run("can get updated params", func() { + s.Run("can get updated state", func() { state := types.State{ BaseFee: math.OneInt(), LearningRate: math.LegacyOneDec(), @@ -90,3 +90,41 @@ func (s *KeeperTestSuite) TestStateRequest() { s.Require().Equal(resp.State, state) }) } + +func (s *KeeperTestSuite) TestBaseFeeRequest() { + s.Run("can get default base fee", func() { + req := &types.BaseFeeRequest{} + resp, err := s.queryServer.BaseFee(s.ctx, req) + s.Require().NoError(err) + s.Require().NotNil(resp) + + fees, err := s.feemarketKeeper.GetMinGasPrices(s.ctx) + s.Require().NoError(err) + + s.Require().Equal(resp.Fees, fees) + }) + + s.Run("can get updated base fee", func() { + state := types.State{ + BaseFee: math.OneInt(), + } + err := s.feemarketKeeper.SetState(s.ctx, state) + s.Require().NoError(err) + + params := types.Params{ + FeeDenom: "test", + } + err = s.feemarketKeeper.SetParams(s.ctx, params) + s.Require().NoError(err) + + req := &types.BaseFeeRequest{} + resp, err := s.queryServer.BaseFee(s.ctx, req) + s.Require().NoError(err) + s.Require().NotNil(resp) + + fees, err := s.feemarketKeeper.GetMinGasPrices(s.ctx) + s.Require().NoError(err) + + s.Require().Equal(resp.Fees, fees) + }) +} diff --git a/x/feemarket/types/query.pb.go b/x/feemarket/types/query.pb.go index 2cb5cd9..0c08ba2 100644 --- a/x/feemarket/types/query.pb.go +++ b/x/feemarket/types/query.pb.go @@ -6,6 +6,9 @@ package types import ( context "context" fmt "fmt" + github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + types "github.com/cosmos/cosmos-sdk/types" + _ "github.com/cosmos/cosmos-sdk/types/tx/amino" _ "github.com/cosmos/gogoproto/gogoproto" grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" @@ -193,11 +196,95 @@ func (m *StateResponse) GetState() State { return State{} } +// BaseFeeRequest is the request type for the Query/BaseFee RPC method. +type BaseFeeRequest struct { +} + +func (m *BaseFeeRequest) Reset() { *m = BaseFeeRequest{} } +func (m *BaseFeeRequest) String() string { return proto.CompactTextString(m) } +func (*BaseFeeRequest) ProtoMessage() {} +func (*BaseFeeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_d683b3b0d8494138, []int{4} +} +func (m *BaseFeeRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BaseFeeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BaseFeeRequest.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 *BaseFeeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_BaseFeeRequest.Merge(m, src) +} +func (m *BaseFeeRequest) XXX_Size() int { + return m.Size() +} +func (m *BaseFeeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_BaseFeeRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_BaseFeeRequest proto.InternalMessageInfo + +// StateResponse is the response type for the Query/BaseFee RPC method. +type BaseFeeResponse struct { + Fees github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=fees,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"fees"` +} + +func (m *BaseFeeResponse) Reset() { *m = BaseFeeResponse{} } +func (m *BaseFeeResponse) String() string { return proto.CompactTextString(m) } +func (*BaseFeeResponse) ProtoMessage() {} +func (*BaseFeeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_d683b3b0d8494138, []int{5} +} +func (m *BaseFeeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BaseFeeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BaseFeeResponse.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 *BaseFeeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_BaseFeeResponse.Merge(m, src) +} +func (m *BaseFeeResponse) XXX_Size() int { + return m.Size() +} +func (m *BaseFeeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_BaseFeeResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_BaseFeeResponse proto.InternalMessageInfo + +func (m *BaseFeeResponse) GetFees() github_com_cosmos_cosmos_sdk_types.Coins { + if m != nil { + return m.Fees + } + return nil +} + func init() { proto.RegisterType((*ParamsRequest)(nil), "feemarket.feemarket.v1.ParamsRequest") proto.RegisterType((*ParamsResponse)(nil), "feemarket.feemarket.v1.ParamsResponse") proto.RegisterType((*StateRequest)(nil), "feemarket.feemarket.v1.StateRequest") proto.RegisterType((*StateResponse)(nil), "feemarket.feemarket.v1.StateResponse") + proto.RegisterType((*BaseFeeRequest)(nil), "feemarket.feemarket.v1.BaseFeeRequest") + proto.RegisterType((*BaseFeeResponse)(nil), "feemarket.feemarket.v1.BaseFeeResponse") } func init() { @@ -205,29 +292,39 @@ func init() { } var fileDescriptor_d683b3b0d8494138 = []byte{ - // 346 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4a, 0x4b, 0x4d, 0xcd, - 0x4d, 0x2c, 0xca, 0x4e, 0x2d, 0xd1, 0x47, 0xb0, 0xca, 0x0c, 0xf5, 0x0b, 0x4b, 0x53, 0x8b, 0x2a, - 0xf5, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0xc4, 0xe0, 0x32, 0x7a, 0x08, 0x56, 0x99, 0xa1, 0x94, - 0x48, 0x7a, 0x7e, 0x7a, 0x3e, 0x58, 0x89, 0x3e, 0x88, 0x05, 0x51, 0x2d, 0x25, 0x93, 0x9e, 0x9f, - 0x9f, 0x9e, 0x93, 0xaa, 0x9f, 0x58, 0x90, 0xa9, 0x9f, 0x98, 0x97, 0x97, 0x5f, 0x92, 0x58, 0x92, - 0x99, 0x9f, 0x57, 0x0c, 0x95, 0x55, 0xc6, 0x61, 0x5f, 0x41, 0x62, 0x51, 0x62, 0x2e, 0x4c, 0x91, - 0x0a, 0x0e, 0x45, 0xe9, 0xa9, 0x79, 0xa9, 0xc5, 0x99, 0x50, 0x55, 0x4a, 0xfc, 0x5c, 0xbc, 0x01, - 0x60, 0x5d, 0x41, 0xa9, 0x85, 0xa5, 0xa9, 0xc5, 0x25, 0x4a, 0x7e, 0x5c, 0x7c, 0x30, 0x81, 0xe2, - 0x82, 0xfc, 0xbc, 0xe2, 0x54, 0x21, 0x1b, 0x2e, 0x36, 0x88, 0xc1, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, - 0xdc, 0x46, 0x72, 0x7a, 0xd8, 0xbd, 0xa2, 0x07, 0xd1, 0xe7, 0xc4, 0x72, 0xe2, 0x9e, 0x3c, 0x43, - 0x10, 0x54, 0x8f, 0x12, 0x1f, 0x17, 0x4f, 0x70, 0x49, 0x62, 0x49, 0x2a, 0xcc, 0x7c, 0x2f, 0x2e, - 0x5e, 0x28, 0x1f, 0x6a, 0xbc, 0x25, 0x17, 0x6b, 0x31, 0x48, 0x00, 0x6a, 0xba, 0x2c, 0x2e, 0xd3, - 0xc1, 0xba, 0xa0, 0x86, 0x43, 0x74, 0x18, 0x7d, 0x64, 0xe4, 0x62, 0x0d, 0x04, 0x85, 0xb1, 0x50, - 0x29, 0x17, 0x1b, 0xc4, 0x76, 0x21, 0x55, 0xfc, 0xae, 0x83, 0x3a, 0x43, 0x4a, 0x8d, 0x90, 0x32, - 0x88, 0xeb, 0x94, 0x64, 0x9a, 0x2e, 0x3f, 0x99, 0xcc, 0x24, 0x26, 0x24, 0x82, 0x2d, 0xa4, 0x85, - 0x0a, 0xb9, 0x58, 0xc1, 0xce, 0x12, 0x52, 0xc1, 0xeb, 0x6a, 0x98, 0xa5, 0xaa, 0x04, 0x54, 0x41, - 0xed, 0x94, 0x06, 0xdb, 0x29, 0x2a, 0x24, 0x8c, 0x6a, 0x27, 0xd8, 0xcf, 0x4e, 0x9e, 0x27, 0x1e, - 0xc9, 0x31, 0x5e, 0x78, 0x24, 0xc7, 0xf8, 0xe0, 0x91, 0x1c, 0xe3, 0x84, 0xc7, 0x72, 0x0c, 0x17, - 0x1e, 0xcb, 0x31, 0xdc, 0x78, 0x2c, 0xc7, 0x10, 0xa5, 0x9f, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, - 0x97, 0x9c, 0x9f, 0xab, 0x5f, 0x9c, 0x9d, 0x59, 0xa0, 0x9b, 0x9b, 0x5a, 0x86, 0x64, 0x42, 0x05, - 0x12, 0xbb, 0xa4, 0xb2, 0x20, 0xb5, 0x38, 0x89, 0x0d, 0x9c, 0x04, 0x8c, 0x01, 0x01, 0x00, 0x00, - 0xff, 0xff, 0x49, 0x79, 0x9e, 0x42, 0xbf, 0x02, 0x00, 0x00, + // 505 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x53, 0x41, 0x6f, 0x12, 0x41, + 0x14, 0x66, 0x6b, 0xc1, 0x64, 0xda, 0x52, 0x1d, 0x2b, 0xa9, 0x58, 0xa7, 0x66, 0x6d, 0x95, 0x34, + 0xe9, 0x4c, 0xc0, 0x93, 0x89, 0x27, 0x4c, 0x9a, 0xe8, 0xc1, 0x28, 0xde, 0xbc, 0x34, 0x03, 0x3e, + 0xd6, 0x0d, 0xdd, 0x9d, 0x85, 0x99, 0x25, 0xe2, 0xd1, 0x93, 0x47, 0x13, 0x6f, 0xfe, 0x02, 0xe3, + 0xa9, 0x3f, 0xa3, 0xc7, 0x26, 0x5e, 0x3c, 0xa9, 0x01, 0x93, 0x9e, 0xfc, 0x0f, 0xcd, 0xce, 0x3c, + 0x28, 0x24, 0xa5, 0x5c, 0xe0, 0xf1, 0xe6, 0x7b, 0xdf, 0x37, 0xef, 0xfb, 0x06, 0xe2, 0xb7, 0x01, + 0x22, 0xd9, 0xeb, 0x80, 0x11, 0x17, 0x55, 0xbf, 0x2a, 0xba, 0x29, 0xf4, 0x06, 0x3c, 0xe9, 0x29, + 0xa3, 0x68, 0x69, 0x72, 0xc2, 0x2f, 0xaa, 0x7e, 0xb5, 0xbc, 0x11, 0xa8, 0x40, 0x59, 0x88, 0xc8, + 0x2a, 0x87, 0x2e, 0x6f, 0x05, 0x4a, 0x05, 0x47, 0x20, 0x64, 0x12, 0x0a, 0x19, 0xc7, 0xca, 0x48, + 0x13, 0xaa, 0x58, 0xe3, 0x29, 0x6b, 0x29, 0x1d, 0x29, 0x2d, 0x9a, 0x52, 0x83, 0xe8, 0x57, 0x9b, + 0x60, 0x64, 0x55, 0xb4, 0x54, 0x18, 0xe3, 0xf9, 0x4d, 0x19, 0x85, 0xb1, 0x12, 0xf6, 0x13, 0x5b, + 0x0f, 0xe6, 0x5c, 0x31, 0x91, 0x3d, 0x19, 0x8d, 0x79, 0x77, 0xe6, 0x80, 0x02, 0x88, 0x41, 0x87, + 0x88, 0xf2, 0xd7, 0xc9, 0xda, 0x2b, 0x3b, 0xd5, 0x80, 0x6e, 0x0a, 0xda, 0xf8, 0x2f, 0x49, 0x71, + 0xdc, 0xd0, 0x89, 0x8a, 0x35, 0xd0, 0xa7, 0xa4, 0xe0, 0x88, 0x37, 0xbd, 0xfb, 0x5e, 0x65, 0xa5, + 0xc6, 0xf8, 0xe5, 0xdb, 0x73, 0x37, 0x57, 0x5f, 0x3e, 0xf9, 0xbd, 0x9d, 0x6b, 0xe0, 0x8c, 0x5f, + 0x24, 0xab, 0x6f, 0x8c, 0x34, 0x30, 0xe6, 0x7f, 0x41, 0xd6, 0xf0, 0x37, 0xd2, 0x3f, 0x21, 0x79, + 0x9d, 0x35, 0x90, 0xfd, 0xde, 0x3c, 0x76, 0x3b, 0x85, 0xe4, 0x6e, 0xc2, 0xbf, 0x41, 0x8a, 0x75, + 0xa9, 0xe1, 0x00, 0x26, 0xec, 0x9f, 0x3d, 0xb2, 0x3e, 0x69, 0xa1, 0x40, 0x4a, 0x96, 0xdb, 0x00, + 0xd9, 0xed, 0xaf, 0x55, 0x56, 0x6a, 0x77, 0xb8, 0xf3, 0x9b, 0x67, 0x7e, 0x73, 0xf4, 0x9b, 0x3f, + 0x53, 0x61, 0x5c, 0x3f, 0xc8, 0xb8, 0x7f, 0xfc, 0xd9, 0xae, 0x04, 0xa1, 0x79, 0x9f, 0x36, 0x79, + 0x4b, 0x45, 0x02, 0xc3, 0x71, 0x5f, 0xfb, 0xfa, 0x5d, 0x47, 0x98, 0x41, 0x02, 0xda, 0x0e, 0xe8, + 0x6f, 0x67, 0xc7, 0x7b, 0xab, 0x47, 0x10, 0xc8, 0xd6, 0xe0, 0x30, 0x4b, 0x4c, 0x7f, 0x3f, 0x3b, + 0xde, 0xf3, 0x1a, 0x56, 0xae, 0xf6, 0x7f, 0x89, 0xe4, 0x5f, 0x67, 0x6f, 0x86, 0xa6, 0xa4, 0xe0, + 0xac, 0xa1, 0xbb, 0x57, 0x5b, 0x87, 0x5b, 0x94, 0x1f, 0x2e, 0x82, 0xb9, 0xcd, 0xfc, 0xad, 0x4f, + 0x3f, 0xff, 0x7d, 0x5d, 0x2a, 0xd1, 0x8d, 0xcb, 0x9e, 0x01, 0xed, 0x92, 0xbc, 0xf5, 0x8c, 0xee, + 0x5c, 0x69, 0xe9, 0x58, 0x74, 0x77, 0x01, 0x0a, 0x35, 0xef, 0x5a, 0xcd, 0xdb, 0xf4, 0xd6, 0xac, + 0xa6, 0x0d, 0x84, 0x7e, 0x24, 0xd7, 0xd1, 0x7d, 0x3a, 0x77, 0x87, 0xd9, 0xc4, 0xca, 0x8f, 0x16, + 0xe2, 0x50, 0x98, 0x59, 0xe1, 0x4d, 0x5a, 0x9a, 0x15, 0xce, 0x62, 0x3c, 0x6c, 0x03, 0xd4, 0x9f, + 0x9f, 0x0c, 0x99, 0x77, 0x3a, 0x64, 0xde, 0xdf, 0x21, 0xf3, 0xbe, 0x8c, 0x58, 0xee, 0x74, 0xc4, + 0x72, 0xbf, 0x46, 0x2c, 0xf7, 0x56, 0x4c, 0xe5, 0xa9, 0x3b, 0x61, 0xb2, 0x1f, 0x41, 0x7f, 0x8a, + 0xe4, 0xc3, 0x54, 0x6d, 0xc3, 0x6d, 0x16, 0xec, 0x7f, 0xe3, 0xf1, 0x79, 0x00, 0x00, 0x00, 0xff, + 0xff, 0xc1, 0x87, 0x84, 0x41, 0x0b, 0x04, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -246,6 +343,8 @@ type QueryClient interface { Params(ctx context.Context, in *ParamsRequest, opts ...grpc.CallOption) (*ParamsResponse, error) // State returns the current feemarket module state. State(ctx context.Context, in *StateRequest, opts ...grpc.CallOption) (*StateResponse, error) + // BaseFee returns the current feemarket module base fee. + BaseFee(ctx context.Context, in *BaseFeeRequest, opts ...grpc.CallOption) (*BaseFeeResponse, error) } type queryClient struct { @@ -274,12 +373,23 @@ func (c *queryClient) State(ctx context.Context, in *StateRequest, opts ...grpc. return out, nil } +func (c *queryClient) BaseFee(ctx context.Context, in *BaseFeeRequest, opts ...grpc.CallOption) (*BaseFeeResponse, error) { + out := new(BaseFeeResponse) + err := c.cc.Invoke(ctx, "/feemarket.feemarket.v1.Query/BaseFee", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // QueryServer is the server API for Query service. type QueryServer interface { // Params returns the current feemarket module parameters. Params(context.Context, *ParamsRequest) (*ParamsResponse, error) // State returns the current feemarket module state. State(context.Context, *StateRequest) (*StateResponse, error) + // BaseFee returns the current feemarket module base fee. + BaseFee(context.Context, *BaseFeeRequest) (*BaseFeeResponse, error) } // UnimplementedQueryServer can be embedded to have forward compatible implementations. @@ -292,6 +402,9 @@ func (*UnimplementedQueryServer) Params(ctx context.Context, req *ParamsRequest) func (*UnimplementedQueryServer) State(ctx context.Context, req *StateRequest) (*StateResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method State not implemented") } +func (*UnimplementedQueryServer) BaseFee(ctx context.Context, req *BaseFeeRequest) (*BaseFeeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BaseFee not implemented") +} func RegisterQueryServer(s grpc1.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) @@ -333,6 +446,24 @@ func _Query_State_Handler(srv interface{}, ctx context.Context, dec func(interfa return interceptor(ctx, in, info, handler) } +func _Query_BaseFee_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(BaseFeeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).BaseFee(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/feemarket.feemarket.v1.Query/BaseFee", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).BaseFee(ctx, req.(*BaseFeeRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "feemarket.feemarket.v1.Query", HandlerType: (*QueryServer)(nil), @@ -345,6 +476,10 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "State", Handler: _Query_State_Handler, }, + { + MethodName: "BaseFee", + Handler: _Query_BaseFee_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "feemarket/feemarket/v1/query.proto", @@ -462,6 +597,66 @@ func (m *StateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *BaseFeeRequest) 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 *BaseFeeRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BaseFeeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *BaseFeeResponse) 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 *BaseFeeResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BaseFeeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Fees) > 0 { + for iNdEx := len(m.Fees) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Fees[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { offset -= sovQuery(v) base := offset @@ -513,6 +708,30 @@ func (m *StateResponse) Size() (n int) { return n } +func (m *BaseFeeRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *BaseFeeResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Fees) > 0 { + for _, e := range m.Fees { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + return n +} + func sovQuery(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -785,6 +1004,140 @@ func (m *StateResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *BaseFeeRequest) 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 ErrIntOverflowQuery + } + 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: BaseFeeRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BaseFeeRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BaseFeeResponse) 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 ErrIntOverflowQuery + } + 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: BaseFeeResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BaseFeeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Fees", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Fees = append(m.Fees, types.Coin{}) + if err := m.Fees[len(m.Fees)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipQuery(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/feemarket/types/query.pb.gw.go b/x/feemarket/types/query.pb.gw.go index ed8c553..4461e56 100644 --- a/x/feemarket/types/query.pb.gw.go +++ b/x/feemarket/types/query.pb.gw.go @@ -69,6 +69,24 @@ func local_request_Query_State_0(ctx context.Context, marshaler runtime.Marshale } +func request_Query_BaseFee_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq BaseFeeRequest + var metadata runtime.ServerMetadata + + msg, err := client.BaseFee(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_BaseFee_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq BaseFeeRequest + var metadata runtime.ServerMetadata + + msg, err := server.BaseFee(ctx, &protoReq) + return msg, metadata, err + +} + // RegisterQueryHandlerServer registers the http handlers for service Query to "mux". // UnaryRPC :call QueryServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. @@ -121,6 +139,29 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) + mux.Handle("GET", pattern_Query_BaseFee_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_BaseFee_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_BaseFee_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -202,6 +243,26 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) + mux.Handle("GET", pattern_Query_BaseFee_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_BaseFee_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_BaseFee_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -209,10 +270,14 @@ var ( pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"feemarket", "v1", "params"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_State_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"feemarket", "v1", "state"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_BaseFee_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"feemarket", "v1", "base_fee"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( forward_Query_Params_0 = runtime.ForwardResponseMessage forward_Query_State_0 = runtime.ForwardResponseMessage + + forward_Query_BaseFee_0 = runtime.ForwardResponseMessage )